From e66b86e4482335a3d86a0e8aee019a2d3937b258 Mon Sep 17 00:00:00 2001 From: stepan <stepan.sindelar@oracle.com> Date: Tue, 27 Dec 2016 18:48:01 +0100 Subject: [PATCH] Refactor tests of random distribution functions Provide parameter values for each distribution separately + honor semantics of common parameters like probability in [0,1] etc. Few minor fixes of bugs discovered along the way. Plus 'pgamma' external implemented. --- .../oracle/truffle/r/library/stats/Cdist.java | 3 +- .../oracle/truffle/r/library/stats/DNorm.java | 35 +- .../oracle/truffle/r/library/stats/DPQ.java | 10 + .../r/library/stats/GammaFunctions.java | 36 +- .../r/library/stats/MathConstants.java | 3 + .../truffle/r/library/stats/MathInit.java | 3 +- .../truffle/r/library/stats/PGamma.java | 38 + .../oracle/truffle/r/library/stats/QBeta.java | 11 +- .../oracle/truffle/r/library/stats/Qt.java | 5 +- .../foreign/CallAndExternalFunctions.java | 6 +- .../truffle/r/test/ExpectedTestOutput.test | 3844 ++++++++--------- .../test/library/stats/TestDistributions.java | 216 + .../library/stats/TestExternal_qbeta.java | 54 - .../test/library/stats/TestStatFunctions.java | 11 +- .../copyrights/gnu_r_welinder.copyright.star | 12 + .../gnu_r_welinder.copyright.star.regex | 1 + mx.fastr/copyrights/overrides | 3 +- 17 files changed, 2069 insertions(+), 2222 deletions(-) rename com.oracle.truffle.r.nodes.builtin/src/com/oracle/truffle/r/nodes/builtin/base/foreign/Dnorm4.java => com.oracle.truffle.r.library/src/com/oracle/truffle/r/library/stats/DNorm.java (53%) create mode 100644 com.oracle.truffle.r.library/src/com/oracle/truffle/r/library/stats/PGamma.java create mode 100644 com.oracle.truffle.r.test/src/com/oracle/truffle/r/test/library/stats/TestDistributions.java delete mode 100644 com.oracle.truffle.r.test/src/com/oracle/truffle/r/test/library/stats/TestExternal_qbeta.java create mode 100644 mx.fastr/copyrights/gnu_r_welinder.copyright.star create mode 100644 mx.fastr/copyrights/gnu_r_welinder.copyright.star.regex diff --git a/com.oracle.truffle.r.library/src/com/oracle/truffle/r/library/stats/Cdist.java b/com.oracle.truffle.r.library/src/com/oracle/truffle/r/library/stats/Cdist.java index 9094f3e34f..907b465efc 100644 --- a/com.oracle.truffle.r.library/src/com/oracle/truffle/r/library/stats/Cdist.java +++ b/com.oracle.truffle.r.library/src/com/oracle/truffle/r/library/stats/Cdist.java @@ -12,6 +12,7 @@ */ package com.oracle.truffle.r.library.stats; +import static com.oracle.truffle.r.library.stats.MathConstants.DBL_MIN; import static com.oracle.truffle.r.nodes.builtin.CastBuilder.Predef.instanceOf; import com.oracle.truffle.api.dsl.Cached; @@ -229,7 +230,7 @@ public abstract class Cdist extends RExternalBuiltinNode.Arg4 { if (bothNonNAN(x[i1], x[i2])) { sum = Math.abs(x[i1] + x[i2]); diff = Math.abs(x[i1] - x[i2]); - if (sum > Double.MIN_VALUE || diff > Double.MIN_VALUE) { + if (sum > DBL_MIN || diff > DBL_MIN) { dev = diff / sum; if (!RRuntime.isNAorNaN(dev) || (!RRuntime.isFinite(diff) && diff == sum && diff --git a/com.oracle.truffle.r.nodes.builtin/src/com/oracle/truffle/r/nodes/builtin/base/foreign/Dnorm4.java b/com.oracle.truffle.r.library/src/com/oracle/truffle/r/library/stats/DNorm.java similarity index 53% rename from com.oracle.truffle.r.nodes.builtin/src/com/oracle/truffle/r/nodes/builtin/base/foreign/Dnorm4.java rename to com.oracle.truffle.r.library/src/com/oracle/truffle/r/library/stats/DNorm.java index f5d055b8b8..5f36543a93 100644 --- a/com.oracle.truffle.r.nodes.builtin/src/com/oracle/truffle/r/nodes/builtin/base/foreign/Dnorm4.java +++ b/com.oracle.truffle.r.library/src/com/oracle/truffle/r/library/stats/DNorm.java @@ -10,18 +10,14 @@ * All rights reserved. */ -package com.oracle.truffle.r.nodes.builtin.base.foreign; +package com.oracle.truffle.r.library.stats; -import com.oracle.truffle.r.library.stats.StatsFunctions.Function3_1; - -/** - * Called from 'dnorm' R wrapper. - */ -public final class Dnorm4 implements Function3_1 { +import static com.oracle.truffle.r.library.stats.MathConstants.M_1_SQRT_2PI; +import static com.oracle.truffle.r.library.stats.MathConstants.M_LN_SQRT_2PI; - private static final double M_LN_SQRT_2PI = 0.918938533204672741780329736406; - private static final double M_1_SQRT_2PI = 0.398942280401432677939946059934; +import com.oracle.truffle.r.library.stats.StatsFunctions.Function3_1; +public final class DNorm implements Function3_1 { @Override public double evaluate(double xa, double mu, double sigma, boolean giveLog) { double x = xa; @@ -29,26 +25,29 @@ public final class Dnorm4 implements Function3_1 { return x + mu + sigma; } - double negInfOrZero = giveLog ? Double.NEGATIVE_INFINITY : 0; // in GnuR R_D__0 if (!Double.isFinite(sigma)) { - return negInfOrZero; - } else if (!Double.isFinite(x) && !Double.isFinite(mu)) { - return Double.NaN; + return DPQ.rd0(giveLog); + } else if (!Double.isFinite(x) && mu == x) { + return RMath.mlError(); } else if (sigma <= 0) { if (sigma < 0) { - // TODO: ML_ERR_return_NAN (what is it supposed to do? GnuR does not print anything) - return Double.NaN; + return RMath.mlError(); } - return (x == mu) ? Double.POSITIVE_INFINITY : negInfOrZero; + return (x == mu) ? Double.POSITIVE_INFINITY : DPQ.rd0(giveLog); } x = (x - mu) / sigma; + x = Math.abs(x); + if (x >= 2 * Math.sqrt(Double.MAX_VALUE)) { + return DPQ.rd0(giveLog); + } + if (!Double.isFinite(x)) { - return negInfOrZero; + return DPQ.rd0(giveLog); } if (giveLog) { - return -(M_LN_SQRT_2PI + 0.5 * x * x + Math.log10(sigma)); + return -(M_LN_SQRT_2PI + 0.5 * x * x + Math.log(sigma)); } return M_1_SQRT_2PI * Math.exp(-0.5 * x * x) / sigma; } diff --git a/com.oracle.truffle.r.library/src/com/oracle/truffle/r/library/stats/DPQ.java b/com.oracle.truffle.r.library/src/com/oracle/truffle/r/library/stats/DPQ.java index 4509a1f646..80f2b7da79 100644 --- a/com.oracle.truffle.r.library/src/com/oracle/truffle/r/library/stats/DPQ.java +++ b/com.oracle.truffle.r.library/src/com/oracle/truffle/r/library/stats/DPQ.java @@ -81,6 +81,7 @@ public final class DPQ { } // R_D_Lval + // Use 0.5 - p + 0.5 to perhaps gain 1 bit of accuracy public static double rdlval(double p, boolean lowerTail) { return lowerTail ? p : 0.5 - p + 0.5; } @@ -163,6 +164,15 @@ public final class DPQ { } } + // R_P_bounds_01 + public static void rpbounds01(double x, double xMin, double xMax, boolean lowerTail, boolean logP) throws EarlyReturn { + if (x <= xMin) { + throw new EarlyReturn(rdt0(lowerTail, logP)); + } else if (x >= xMax) { + throw new EarlyReturn(rdt1(lowerTail, logP)); + } + } + // R_P_bounds_Inf_01 public static void rpboundsinf01(double x, boolean lowerTail, boolean logP) throws EarlyReturn { if (!Double.isFinite(x)) { diff --git a/com.oracle.truffle.r.library/src/com/oracle/truffle/r/library/stats/GammaFunctions.java b/com.oracle.truffle.r.library/src/com/oracle/truffle/r/library/stats/GammaFunctions.java index 645d38b0cf..64c88be84b 100644 --- a/com.oracle.truffle.r.library/src/com/oracle/truffle/r/library/stats/GammaFunctions.java +++ b/com.oracle.truffle.r.library/src/com/oracle/truffle/r/library/stats/GammaFunctions.java @@ -28,6 +28,7 @@ import static com.oracle.truffle.r.library.stats.DPQ.rdtclog; import static com.oracle.truffle.r.library.stats.DPQ.rdtqiv; import static com.oracle.truffle.r.library.stats.DPQ.rlog1exp; import static com.oracle.truffle.r.library.stats.MathConstants.DBL_EPSILON; +import static com.oracle.truffle.r.library.stats.MathConstants.DBL_MIN; import static com.oracle.truffle.r.library.stats.MathConstants.M_1_SQRT_2PI; import static com.oracle.truffle.r.library.stats.MathConstants.M_2PI; import static com.oracle.truffle.r.library.stats.MathConstants.M_LN2; @@ -678,7 +679,7 @@ public abstract class GammaFunctions { if (x == 0) { final double u1p = 1. + 1e-7; final double u1m = 1. - 1e-7; - x = Double.MIN_VALUE; + x = DBL_MIN; pu = pgamma(x, alpha, scale, lowerTail, localLogp); if ((lowerTail && pu > localP * u1p) || (!lowerTail && pu < localP * u1m)) { return 0.; @@ -1165,17 +1166,15 @@ public abstract class GammaFunctions { } } /* ppois_asymp() */ - private static double pgammaRaw(double x, double alph, boolean lowerTail, boolean logp) { + static double pgammaRaw(double x, double alph, boolean lowerTail, boolean logp) { /* Here, assume that (x,alph) are not NA & alph > 0 . */ double res; - // expansion of R_P_bounds_01(x, 0., ML_POSINF); - if (x <= 0) { - return rdt0(lowerTail, logp); - } - if (x >= Double.POSITIVE_INFINITY) { - return rdt1(lowerTail, logp); + try { + DPQ.rpbounds01(x, 0., Double.POSITIVE_INFINITY, lowerTail, logp); + } catch (EarlyReturn e) { + return e.result; } if (x < 1) { @@ -1218,7 +1217,7 @@ public abstract class GammaFunctions { * We lose a fair amount of accuracy to underflow in the cases where the final result is * very close to DBL_MIN. In those cases, simply redo via log space. */ - if (!logp && res < Double.MIN_VALUE / DBL_EPSILON) { + if (!logp && res < DBL_MIN / DBL_EPSILON) { /* with(.Machine, double.xmin / double.eps) #|-> 1.002084e-292 */ return Math.exp(pgammaRaw(x, alph, lowerTail, true)); } else { @@ -1232,8 +1231,7 @@ public abstract class GammaFunctions { return localX + alph + scale; } if (alph < 0. || scale <= 0.) { - // TODO ML_ERR_return_NAN; - return Double.NaN; + return RMath.mlError(); } localX /= scale; if (Double.isNaN(localX)) { /* eg. original x = scale = +Inf */ @@ -1263,10 +1261,10 @@ public abstract class GammaFunctions { if (x < 0) { return rd0(giveLog); } - if (x <= lambda * Double.MIN_VALUE) { + if (x <= lambda * DBL_MIN) { return (rdexp(-lambda, giveLog)); } - if (lambda < x * Double.MIN_VALUE) { + if (lambda < x * DBL_MIN) { return (rdexp(-lambda + x * Math.log(lambda) - lgammafn(x + 1), giveLog)); } return rdfexp(M_2PI * x, -stirlerr(x) - bd0(x, lambda), giveLog); @@ -1284,8 +1282,7 @@ public abstract class GammaFunctions { int j; if (!RRuntime.isFinite(x) || !RRuntime.isFinite(np) || np == 0.0) { - // TODO ML_ERR_return_NAN; - return Double.NaN; + return RMath.mlError(); } if (Math.abs(x - np) < 0.1 * (x + np)) { @@ -1323,8 +1320,7 @@ public abstract class GammaFunctions { } if (sigma <= 0) { if (sigma < 0) { - // TODO ML_ERR_return_NAN; - return Double.NaN; + return RMath.mlError(); } /* sigma == 0 */ return (localX == mu) ? Double.POSITIVE_INFINITY : rd0(giveLog); @@ -1348,8 +1344,7 @@ public abstract class GammaFunctions { return x + shape + scale; } if (shape < 0 || scale <= 0) { - // TODO ML_ERR_return_NAN; - return Double.NaN; + return RMath.mlError(); } if (x < 0) { return rd0(giveLog); @@ -1398,8 +1393,7 @@ public abstract class GammaFunctions { } if (sigma <= 0) { if (sigma < 0) { - // TODO ML_ERR_return_NAN; - return Double.NaN; + return RMath.mlError(); } /* sigma = 0 : */ return (localX < mu) ? rdt0(lowerTail, logp) : rdt1(lowerTail, logp); diff --git a/com.oracle.truffle.r.library/src/com/oracle/truffle/r/library/stats/MathConstants.java b/com.oracle.truffle.r.library/src/com/oracle/truffle/r/library/stats/MathConstants.java index 1f257567fc..f853238a5a 100644 --- a/com.oracle.truffle.r.library/src/com/oracle/truffle/r/library/stats/MathConstants.java +++ b/com.oracle.truffle.r.library/src/com/oracle/truffle/r/library/stats/MathConstants.java @@ -88,6 +88,9 @@ public final class MathConstants { public static final double ML_NAN = Double.NaN; + // Different to Double.MIN_VALUE... + public static final double DBL_MIN = 2.2250738585072014e-308; + /** * Compute the log of a sum from logs of terms, i.e., * diff --git a/com.oracle.truffle.r.library/src/com/oracle/truffle/r/library/stats/MathInit.java b/com.oracle.truffle.r.library/src/com/oracle/truffle/r/library/stats/MathInit.java index 697faaac42..b9cad15bb0 100644 --- a/com.oracle.truffle.r.library/src/com/oracle/truffle/r/library/stats/MathInit.java +++ b/com.oracle.truffle.r.library/src/com/oracle/truffle/r/library/stats/MathInit.java @@ -10,6 +10,7 @@ */ package com.oracle.truffle.r.library.stats; +import static com.oracle.truffle.r.library.stats.MathConstants.DBL_MIN; import static com.oracle.truffle.r.library.stats.MathConstants.M_LOG10_2; import com.oracle.truffle.r.runtime.RInternalError; @@ -26,7 +27,7 @@ public final class MathInit { public static double d1mach(int i) { switch (i) { case 1: - return Double.MIN_VALUE; + return DBL_MIN; case 2: return Double.MAX_VALUE; case 3: diff --git a/com.oracle.truffle.r.library/src/com/oracle/truffle/r/library/stats/PGamma.java b/com.oracle.truffle.r.library/src/com/oracle/truffle/r/library/stats/PGamma.java new file mode 100644 index 0000000000..cdb6e310d7 --- /dev/null +++ b/com.oracle.truffle.r.library/src/com/oracle/truffle/r/library/stats/PGamma.java @@ -0,0 +1,38 @@ +/* + * This material is distributed under the GNU General Public License + * Version 2. You may review the terms of this license at + * http://www.gnu.org/licenses/gpl-2.0.html + * + * Copyright (C) 2005-6 Morten Welinder <terra@gnome.org> + * Copyright (C) 2005-10 The R Foundation + * Copyright (C) 2006-2015 The R Core Team + * Copyright (c) 2016, Oracle and/or its affiliates + * + * All rights reserved. + */ +package com.oracle.truffle.r.library.stats; + +import static com.oracle.truffle.r.library.stats.GammaFunctions.pgammaRaw; + +import com.oracle.truffle.r.library.stats.StatsFunctions.Function3_2; + +public class PGamma implements Function3_2 { + @Override + public double evaluate(double xIn, double alph, double scale, boolean lowerTail, boolean logP) { + if (Double.isNaN(xIn) || Double.isNaN(alph) || Double.isNaN(scale)) { + return xIn + alph + scale; + } + if (alph < 0 || scale < 0) { + return RMath.mlError(); + } + + double x = xIn / scale; + if (Double.isNaN(x)) { + return x; + } + if (alph == 0.) { + return x <= 0 ? DPQ.rdt0(lowerTail, logP) : DPQ.rdt1(lowerTail, logP); + } + return pgammaRaw(x, alph, lowerTail, logP); + } +} diff --git a/com.oracle.truffle.r.library/src/com/oracle/truffle/r/library/stats/QBeta.java b/com.oracle.truffle.r.library/src/com/oracle/truffle/r/library/stats/QBeta.java index 7af7d44a25..bd34ff88ba 100644 --- a/com.oracle.truffle.r.library/src/com/oracle/truffle/r/library/stats/QBeta.java +++ b/com.oracle.truffle.r.library/src/com/oracle/truffle/r/library/stats/QBeta.java @@ -24,6 +24,7 @@ package com.oracle.truffle.r.library.stats; import static com.oracle.truffle.r.library.stats.Arithmetic.powDi; import static com.oracle.truffle.r.library.stats.LBeta.lbeta; import static com.oracle.truffle.r.library.stats.MathConstants.DBL_MANT_DIG; +import static com.oracle.truffle.r.library.stats.MathConstants.DBL_MIN; import static com.oracle.truffle.r.library.stats.MathConstants.DBL_MIN_EXP; import static com.oracle.truffle.r.library.stats.MathConstants.ML_NAN; import static com.oracle.truffle.r.library.stats.MathConstants.M_LN2; @@ -76,7 +77,7 @@ public final class QBeta implements Function3_2 { private static final double const3 = 0.99229; private static final double const4 = 0.04481; - private static final double DBL_very_MIN = Double.MIN_VALUE / 4.; + private static final double DBL_very_MIN = DBL_MIN / 4.; private static final double DBL_log_v_MIN = M_LN2 * (DBL_MIN_EXP - 2); private static final double DBL_1__eps = 0x1.fffffffffffffp-1; // = 1 - 2^-53 @@ -224,8 +225,8 @@ public final class QBeta implements Function3_2 { t = 0.2; debugPrintf( - "qbeta(%g, %g, %g, lower_t=%d, log_p=%d):%s\n" + - " swap_tail=%d, la=%g, u0=%g (bnd: %g (%g)) ", + "qbeta(%g, %g, %g, lower_t=%b, log_p=%b):%s\n" + + " swap_tail=%b, la=%g, u0=%g (bnd: %g (%g)) ", alpha, p, q, lower_tail, log_p, (log_p && (p_ == 0. || p_ == 1.)) ? (p_ == 0. ? " p_=0" : " p_=1") : "", swap_tail, la, u0, @@ -407,7 +408,7 @@ public final class QBeta implements Function3_2 { if (u == Double.NEGATIVE_INFINITY) { debugPrintf(" u = -Inf;"); u = M_LN2 * DBL_MIN_EXP; - xinbta = Double.MIN_VALUE; + xinbta = DBL_MIN; } else { debugPrintf(" bad_init: u=%g, xinbta=%g;", u, xinbta); xinbta = (xinbta > 1.1) // i.e. "way off" @@ -461,7 +462,7 @@ public final class QBeta implements Function3_2 { if (i_pb >= n_N && w * wprev <= 0.) { prev = RMath.fmax2(Math.abs(adj), fpu); } - debugPrintf("N(i=%2d): u=%#20.16g, pb(e^u)=%#12.6g, w=%#15.9g, %s prev=%11g,", + debugPrintf("N(i=%2d): u=%g, pb(e^u)=%g, w=%g, %s prev=%g,", i_pb, u, y, w, (w * wprev <= 0.) ? "new" : "old", prev); g = 1; int i_inn; diff --git a/com.oracle.truffle.r.library/src/com/oracle/truffle/r/library/stats/Qt.java b/com.oracle.truffle.r.library/src/com/oracle/truffle/r/library/stats/Qt.java index 34877af66f..5e97ff315f 100644 --- a/com.oracle.truffle.r.library/src/com/oracle/truffle/r/library/stats/Qt.java +++ b/com.oracle.truffle.r.library/src/com/oracle/truffle/r/library/stats/Qt.java @@ -14,6 +14,7 @@ package com.oracle.truffle.r.library.stats; import static com.oracle.truffle.r.library.stats.MathConstants.DBL_EPSILON; import static com.oracle.truffle.r.library.stats.MathConstants.DBL_MANT_DIG; +import static com.oracle.truffle.r.library.stats.MathConstants.DBL_MIN; import static com.oracle.truffle.r.library.stats.MathConstants.M_1_PI; import static com.oracle.truffle.r.library.stats.MathConstants.M_LN2; import static com.oracle.truffle.r.library.stats.MathConstants.M_PI; @@ -111,7 +112,7 @@ public class Qt implements Function2_2 { double q; if (Math.abs(ndf - 2) < eps) { /* df ~= 2 */ - if (capP > Double.MIN_VALUE) { + if (capP > DBL_MIN) { if (3 * capP < DBL_EPSILON) { /* P ~= 0 */ q = 1 / Math.sqrt(capP); } else if (capP > 0.9) { /* P ~= 1 */ @@ -148,7 +149,7 @@ public class Qt implements Function2_2 { double c = ((20700 * a / b - 98) * a - 16) * a + 96.36; double d = ((94.5 / (b + c) - 3) / b + 1) * Math.sqrt(a * M_PI_2) * ndf; - boolean pOk1 = capP > Double.MIN_VALUE || !logP; + boolean pOk1 = capP > DBL_MIN || !logP; boolean pOk = pOk1; if (pOk1) { y = Math.pow(d * capP, 2.0 / ndf); diff --git a/com.oracle.truffle.r.nodes.builtin/src/com/oracle/truffle/r/nodes/builtin/base/foreign/CallAndExternalFunctions.java b/com.oracle.truffle.r.nodes.builtin/src/com/oracle/truffle/r/nodes/builtin/base/foreign/CallAndExternalFunctions.java index af77f17ef2..6a24292085 100644 --- a/com.oracle.truffle.r.nodes.builtin/src/com/oracle/truffle/r/nodes/builtin/base/foreign/CallAndExternalFunctions.java +++ b/com.oracle.truffle.r.nodes.builtin/src/com/oracle/truffle/r/nodes/builtin/base/foreign/CallAndExternalFunctions.java @@ -51,6 +51,7 @@ import com.oracle.truffle.r.library.stats.CompleteCases; import com.oracle.truffle.r.library.stats.CovcorNodeGen; import com.oracle.truffle.r.library.stats.CutreeNodeGen; import com.oracle.truffle.r.library.stats.DBeta; +import com.oracle.truffle.r.library.stats.DNorm; import com.oracle.truffle.r.library.stats.DPois; import com.oracle.truffle.r.library.stats.Dbinom; import com.oracle.truffle.r.library.stats.Df; @@ -72,6 +73,7 @@ import com.oracle.truffle.r.library.stats.LogNormal.QLNorm; import com.oracle.truffle.r.library.stats.Logis; import com.oracle.truffle.r.library.stats.Logis.DLogis; import com.oracle.truffle.r.library.stats.Logis.RLogis; +import com.oracle.truffle.r.library.stats.PGamma; import com.oracle.truffle.r.library.stats.PPois; import com.oracle.truffle.r.library.stats.Pbeta; import com.oracle.truffle.r.library.stats.Pbinom; @@ -339,6 +341,8 @@ public class CallAndExternalFunctions { return StatsFunctionsFactory.Function3_1NodeGen.create(new Df()); case "dgamma": return StatsFunctionsFactory.Function3_1NodeGen.create(new DGamma()); + case "pgamma": + return StatsFunctionsFactory.Function3_2NodeGen.create(new PGamma()); case "dchisq": return StatsFunctionsFactory.Function2_1NodeGen.create(new Chisq.DChisq()); case "qchisq": @@ -470,7 +474,7 @@ public class CallAndExternalFunctions { return new RInternalCodeBuiltinNode(RContext.getInstance(), "stats", RInternalCode.loadSourceRelativeTo(RandGenerationFunctions.class, "lm.R"), "Cdqrls"); case "dnorm": - return StatsFunctionsFactory.Function3_1NodeGen.create(new Dnorm4()); + return StatsFunctionsFactory.Function3_1NodeGen.create(new DNorm()); // tools case "doTabExpand": diff --git a/com.oracle.truffle.r.test/src/com/oracle/truffle/r/test/ExpectedTestOutput.test b/com.oracle.truffle.r.test/src/com/oracle/truffle/r/test/ExpectedTestOutput.test index 4dad57349f..f6159aecd7 100644 --- a/com.oracle.truffle.r.test/src/com/oracle/truffle/r/test/ExpectedTestOutput.test +++ b/com.oracle.truffle.r.test/src/com/oracle/truffle/r/test/ExpectedTestOutput.test @@ -111555,176 +111555,1684 @@ attr(,"is.truffle.object") #if (length(grep("FastR", R.Version()$version.string)) != 1) { TRUE } else { { x<-rep(1, 100); xi1<-.fastr.identity(x); f<-function(x) { y<-x; y }; f(x); x[1]<-7; xi2<-.fastr.identity(x); xi1 == xi2 } } [1] TRUE -##com.oracle.truffle.r.test.library.stats.TestExternal_covcor.testCovcor# -#.Call(stats:::C_cov, 1:5, 1:5, 4, FALSE) -[1] 2.5 +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDensityFunctions#Output.MayIgnoreWarningContext# +#dbeta(0, -1, 0.5) +[1] NaN +Warning message: +In dbeta(0, -1, 0.5) : NaNs produced + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDensityFunctions#Output.MayIgnoreWarningContext# +#dbeta(0, -Inf, 0.5) +[1] NaN +Warning message: +In dbeta(0, -Inf, 0.5) : NaNs produced + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDensityFunctions#Output.MayIgnoreWarningContext# +#dbeta(0, 0, 0.5) +[1] Inf + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDensityFunctions#Output.MayIgnoreWarningContext# +#dbeta(0, 0.5, -1) +[1] NaN +Warning message: +In dbeta(0, 0.5, -1) : NaNs produced + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDensityFunctions#Output.MayIgnoreWarningContext# +#dbeta(0, 0.5, -Inf) +[1] NaN +Warning message: +In dbeta(0, 0.5, -Inf) : NaNs produced + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDensityFunctions#Output.MayIgnoreWarningContext# +#dbeta(0, 0.5, 0) +[1] 0 + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDensityFunctions#Output.MayIgnoreWarningContext# +#dbeta(0, 0.5, Inf) +[1] Inf + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDensityFunctions#Output.MayIgnoreWarningContext# +#dbeta(0, 0.5, NaN) +[1] NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDensityFunctions#Output.MayIgnoreWarningContext# +#dbeta(0, Inf, 0.5) +[1] 0 + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDensityFunctions#Output.MayIgnoreWarningContext# +#dbeta(0, NaN, 0.5) +[1] NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDensityFunctions#Output.MayIgnoreWarningContext# +#dbeta(c(-Inf, -0.42e-30, 0, 0.42e-30, Inf, NaN), 0.5, 0.5, log=F) +[1] 0.000000e+00 0.000000e+00 Inf 4.911628e+14 0.000000e+00 +[6] NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDensityFunctions#Output.MayIgnoreWarningContext# +#dbeta(c(-Inf, -0.42e-30, 0, 0.42e-30, Inf, NaN), 0.5, 0.5, log=T) +[1] -Inf -Inf Inf 33.8278 -Inf NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDensityFunctions#Output.MayIgnoreWarningContext# +#dbeta(c(0.2, -Inf, -0.42e-30, 0, 0.42e-30, Inf, NaN), 0.1, 3, log=F) +[1] 3.146552e-01 0.000000e+00 0.000000e+00 Inf 2.521492e+26 +[6] 0.000000e+00 NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDensityFunctions#Output.MayIgnoreWarningContext# +#dbeta(c(0.2, -Inf, -0.42e-30, 0, 0.42e-30, Inf, NaN), 0.1, 3, log=T) +[1] -1.156278 -Inf -Inf Inf 60.792063 -Inf NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDensityFunctions#Output.MayIgnoreWarningContext# +#dbeta(c(0.4, -Inf, -0.42e-30, 0, 0.42e-30, Inf, NaN), 0, 0, log=F) +[1] 0 0 0 Inf 0 0 NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDensityFunctions#Output.MayIgnoreWarningContext# +#dbeta(c(0.4, -Inf, -0.42e-30, 0, 0.42e-30, Inf, NaN), 0, 0, log=T) +[1] -Inf -Inf -Inf Inf -Inf -Inf NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDensityFunctions#Output.MayIgnoreWarningContext# +#dbeta(c(0.5, -Inf, -0.42e-30, 0, 0.42e-30, Inf, NaN), 0, Inf, log=F) +[1] 0 0 0 Inf 0 0 NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDensityFunctions#Output.MayIgnoreWarningContext# +#dbeta(c(0.5, -Inf, -0.42e-30, 0, 0.42e-30, Inf, NaN), 0, Inf, log=T) +[1] -Inf -Inf -Inf Inf -Inf -Inf NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDensityFunctions#Output.MayIgnoreWarningContext# +#dbeta(c(0.5, -Inf, -0.42e-30, 0, 0.42e-30, Inf, NaN), 2, 5, log=F) +[1] 9.375e-01 0.000e+00 0.000e+00 0.000e+00 1.260e-29 0.000e+00 NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDensityFunctions#Output.MayIgnoreWarningContext# +#dbeta(c(0.5, -Inf, -0.42e-30, 0, 0.42e-30, Inf, NaN), 2, 5, log=T) +[1] -0.06453852 -Inf -Inf -Inf -66.54385598 +[6] -Inf NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDensityFunctions#Output.MayIgnoreWarningContext# +#dbeta(c(0.6, -Inf, -0.42e-30, 0, 0.42e-30, Inf, NaN), Inf, 0, log=F) +[1] 0 0 0 0 0 0 NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDensityFunctions#Output.MayIgnoreWarningContext# +#dbeta(c(0.6, -Inf, -0.42e-30, 0, 0.42e-30, Inf, NaN), Inf, 0, log=T) +[1] -Inf -Inf -Inf -Inf -Inf -Inf NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDensityFunctions#Output.MayIgnoreWarningContext# +#dbeta(c(0.6, 0.1, 42e-33), 6, 3, log=F) +[1] 2.090189e+00 1.360800e-03 2.195613e-155 + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDensityFunctions#Output.MayIgnoreWarningContext# +#dbeta(c(0.6, 0.1, 42e-33), 6, 3, log=T) +[1] 0.7372544 -6.5996825 -356.1142283 + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDensityFunctions#Output.MayIgnoreWarningContext# +#dcauchy(0, -Inf, -1) +[1] NaN +Warning message: +In dcauchy(0, -Inf, -1) : NaNs produced + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDensityFunctions#Output.MayIgnoreWarningContext# +#dcauchy(0, 0, -Inf) +[1] NaN +Warning message: +In dcauchy(0, 0, -Inf) : NaNs produced + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDensityFunctions#Output.MayIgnoreWarningContext# +#dcauchy(0, 0, Inf) +[1] 0 + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDensityFunctions#Output.MayIgnoreWarningContext# +#dcauchy(0, 0, NaN) +[1] NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDensityFunctions#Output.MayIgnoreWarningContext# +#dcauchy(0, Inf, -1) +[1] NaN +Warning message: +In dcauchy(0, Inf, -1) : NaNs produced + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDensityFunctions#Output.MayIgnoreWarningContext# +#dcauchy(0, NaN, -1) +[1] NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDensityFunctions#Output.MayIgnoreWarningContext# +#dcauchy(c(-5, 42, -Inf, -0.42e-30, 0, 0.42e-30, Inf, NaN), -5, 5, log=F) +[1] 0.0636619772 0.0007124214 0.0000000000 0.0318309886 0.0318309886 +[6] 0.0318309886 0.0000000000 NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDensityFunctions#Output.MayIgnoreWarningContext# +#dcauchy(c(-5, 42, -Inf, -0.42e-30, 0, 0.42e-30, Inf, NaN), -5, 5, log=T) +[1] -2.754168 -7.246841 -Inf -3.447315 -3.447315 -3.447315 -Inf +[8] NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDensityFunctions#Output.MayIgnoreWarningContext# +#dcauchy(c(0, -1, 1, 0.42e-30), -0.01, 0.03, log=F) +[1] 9.549296586 0.009734247 0.009352886 9.549296586 + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDensityFunctions#Output.MayIgnoreWarningContext# +#dcauchy(c(0, -1, 1, 0.42e-30), -0.01, 0.03, log=T) +[1] 2.256467 -4.632105 -4.672070 2.256467 + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDensityFunctions#Output.MayIgnoreWarningContext# +#dcauchy(c(0, -1, 42), 0, -1, log=F) +[1] NaN NaN NaN +Warning message: +In dcauchy(c(0, -1, 42), 0, -1, log = F) : NaNs produced + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDensityFunctions#Output.MayIgnoreWarningContext# +#dcauchy(c(0, -1, 42), 0, -1, log=T) +[1] NaN NaN NaN +Warning message: +In dcauchy(c(0, -1, 42), 0, -1, log = T) : NaNs produced + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDensityFunctions#Output.MayIgnoreWarningContext# +#dexp(0, -1) +[1] NaN +Warning message: +In dexp(0, -1) : NaNs produced + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDensityFunctions#Output.MayIgnoreWarningContext# +#dexp(0, -Inf) +[1] NaN +Warning message: +In dexp(0, -Inf) : NaNs produced + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDensityFunctions#Output.MayIgnoreWarningContext# +#dexp(0, 0) +[1] 0 + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDensityFunctions#Output.MayIgnoreWarningContext# +#dexp(0, Inf) +[1] NaN +Warning message: +In dexp(0, Inf) : NaNs produced + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDensityFunctions#Output.MayIgnoreWarningContext# +#dexp(0, NaN) +[1] NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDensityFunctions#Output.MayIgnoreWarningContext# +#dexp(c(10, -10, -Inf, -0.42e-30, 0, 0.42e-30, Inf, NaN), 13e-20, log=F) +[1] 1.3e-19 0.0e+00 0.0e+00 0.0e+00 1.3e-19 1.3e-19 0.0e+00 NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDensityFunctions#Output.MayIgnoreWarningContext# +#dexp(c(10, -10, -Inf, -0.42e-30, 0, 0.42e-30, Inf, NaN), 13e-20, log=T) +[1] -43.48675 -Inf -Inf -Inf -43.48675 -43.48675 -Inf +[8] NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDensityFunctions#Output.MayIgnoreWarningContext# +#dexp(c(33e123, -Inf, -0.42e-30, 0, 0.42e-30, Inf, NaN), 42e123, log=F) +[1] 0.0e+00 0.0e+00 0.0e+00 4.2e+124 0.0e+00 0.0e+00 NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDensityFunctions#Output.MayIgnoreWarningContext# +#dexp(c(33e123, -Inf, -0.42e-30, 0, 0.42e-30, Inf, NaN), 42e123, log=T) +[1] -1.386000e+249 -Inf -Inf 2.869556e+02 -1.764000e+94 +[6] -Inf NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDensityFunctions#Output.MayIgnoreWarningContext# +#dexp(c(42, -Inf, -0.42e-30, 0, 0.42e-30, Inf, NaN), 42, log=F) +[1] 0 0 0 42 42 0 NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDensityFunctions#Output.MayIgnoreWarningContext# +#dexp(c(42, -Inf, -0.42e-30, 0, 0.42e-30, Inf, NaN), 42, log=T) +[1] -1760.26233 -Inf -Inf 3.73767 3.73767 -Inf +[7] NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDensityFunctions#Output.MayIgnoreWarningContext# +#dgamma(0, -1, scale=2) +[1] NaN +Warning message: +In dgamma(0, -1, scale = 2) : NaNs produced + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDensityFunctions#Output.MayIgnoreWarningContext# +#dgamma(0, -Inf, scale=2) +[1] NaN +Warning message: +In dgamma(0, -Inf, scale = 2) : NaNs produced + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDensityFunctions#Output.MayIgnoreWarningContext# +#dgamma(0, 0, scale=2) +[1] Inf + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDensityFunctions#Output.MayIgnoreWarningContext# +#dgamma(0, 1, -1) +[1] NaN +Warning message: +In dgamma(0, 1, -1) : NaNs produced + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDensityFunctions#Output.MayIgnoreWarningContext# +#dgamma(0, 1, -Inf) +[1] NaN +Warning message: +In dgamma(0, 1, -Inf) : NaNs produced + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDensityFunctions#Output.MayIgnoreWarningContext# +#dgamma(0, 1, 0) +[1] 0 + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDensityFunctions#Output.MayIgnoreWarningContext# +#dgamma(0, 1, Inf) +[1] NaN +Warning message: +In dgamma(0, 1, Inf) : NaNs produced + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDensityFunctions#Output.MayIgnoreWarningContext# +#dgamma(0, 1, NaN) +[1] NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDensityFunctions#Output.MayIgnoreWarningContext# +#dgamma(0, Inf, scale=2) +[1] 0 + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDensityFunctions#Output.MayIgnoreWarningContext# +#dgamma(0, NaN, scale=2) +[1] NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDensityFunctions#Output.MayIgnoreWarningContext# +#dgamma(c(-Inf, -0.42e-30, 0, 0.42e-30, Inf, NaN), 1, scale=2, log=F) +[1] 0.0 0.0 0.5 0.5 0.0 NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDensityFunctions#Output.MayIgnoreWarningContext# +#dgamma(c(-Inf, -0.42e-30, 0, 0.42e-30, Inf, NaN), 1, scale=2, log=T) +[1] -Inf -Inf -0.6931472 -0.6931472 -Inf NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDensityFunctions#Output.MayIgnoreWarningContext# +#dgamma(c(900, 5000, 0), 11e11, scale=23e-11, log=F) +[1] 0 0 0 + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDensityFunctions#Output.MayIgnoreWarningContext# +#dgamma(c(900, 5000, 0), 11e11, scale=23e-11, log=T) +[1] -1.417138e+12 -1.735695e+13 -Inf + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDensityFunctions#Output.MayIgnoreWarningContext# +#dnorm(0, -Inf, -1) +[1] NaN +Warning message: +In dnorm(0, -Inf, -1) : NaNs produced + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDensityFunctions#Output.MayIgnoreWarningContext# +#dnorm(0, 0, -Inf) +[1] 0 + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDensityFunctions#Output.MayIgnoreWarningContext# +#dnorm(0, 0, Inf) +[1] 0 + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDensityFunctions#Output.MayIgnoreWarningContext# +#dnorm(0, 0, NaN) +[1] NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDensityFunctions#Output.MayIgnoreWarningContext# +#dnorm(0, Inf, -1) +[1] NaN +Warning message: +In dnorm(0, Inf, -1) : NaNs produced + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDensityFunctions#Output.MayIgnoreWarningContext# +#dnorm(0, NaN, -1) +[1] NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDensityFunctions#Output.MayIgnoreWarningContext# +#dnorm(c(0), 0, -1, log=F) +[1] NaN +Warning message: +In dnorm(c(0), 0, -1, log = F) : NaNs produced + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDensityFunctions#Output.MayIgnoreWarningContext# +#dnorm(c(0), 0, -1, log=T) +[1] NaN +Warning message: +In dnorm(c(0), 0, -1, log = T) : NaNs produced + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDensityFunctions#Output.MayIgnoreWarningContext# +#dnorm(c(1, -Inf, -0.42e-30, 0, 0.42e-30, Inf, NaN), 0, 0, log=F) +[1] 0 0 0 Inf 0 0 NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDensityFunctions#Output.MayIgnoreWarningContext# +#dnorm(c(1, -Inf, -0.42e-30, 0, 0.42e-30, Inf, NaN), 0, 0, log=T) +[1] -Inf -Inf -Inf Inf -Inf -Inf NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDensityFunctions#Output.MayIgnoreWarningContext# +#dnorm(c(4, -100, 0), 4, 4, log=F) +[1] 9.973557e-02 1.611815e-148 6.049268e-02 + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDensityFunctions#Output.MayIgnoreWarningContext# +#dnorm(c(4, -100, 0), 4, 4, log=T) +[1] -2.305233 -340.305233 -2.805233 + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDensityFunctions#Output.MayIgnoreWarningContext# +#dunif(0, -3, -Inf) +[1] NaN +Warning message: +In dunif(0, -3, -Inf) : NaNs produced + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDensityFunctions#Output.MayIgnoreWarningContext# +#dunif(0, -3, Inf) +[1] 0 + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDensityFunctions#Output.MayIgnoreWarningContext# +#dunif(0, -3, NaN) +[1] NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDensityFunctions#Output.MayIgnoreWarningContext# +#dunif(0, -Inf, 3.3) +[1] 0 + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDensityFunctions#Output.MayIgnoreWarningContext# +#dunif(0, Inf, 3.3) +[1] NaN +Warning message: +In dunif(0, Inf, 3.3) : NaNs produced + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDensityFunctions#Output.MayIgnoreWarningContext# +#dunif(0, NaN, 3.3) +[1] NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDensityFunctions#Output.MayIgnoreWarningContext# +#dunif(c(-3, 2, 3.3, -Inf, -0.42e-30, 0, 0.42e-30, Inf, NaN), -3, 3.3, log=F) +[1] 0.1587302 0.1587302 0.1587302 0.0000000 0.1587302 0.1587302 0.1587302 +[8] 0.0000000 NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDensityFunctions#Output.MayIgnoreWarningContext# +#dunif(c(-3, 2, 3.3, -Inf, -0.42e-30, 0, 0.42e-30, Inf, NaN), -3, 3.3, log=T) +[1] -1.84055 -1.84055 -1.84055 -Inf -1.84055 -1.84055 -1.84055 -Inf +[9] NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#pbeta(0, -1, 0.5) +[1] NaN +Warning message: +In pbeta(0, -1, 0.5) : NaNs produced + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#pbeta(0, -Inf, 0.5) +[1] NaN +Warning message: +In pbeta(0, -Inf, 0.5) : NaNs produced + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#pbeta(0, 0, 0.5) +[1] 0 + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#pbeta(0, 0.5, -1) +[1] NaN +Warning message: +In pbeta(0, 0.5, -1) : NaNs produced + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#pbeta(0, 0.5, -Inf) +[1] NaN +Warning message: +In pbeta(0, 0.5, -Inf) : NaNs produced + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#pbeta(0, 0.5, 0) +[1] 0 + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#pbeta(0, 0.5, Inf) +[1] 0 + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#pbeta(0, 0.5, NaN) +[1] NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#pbeta(0, Inf, 0.5) +[1] 0 + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#pbeta(0, NaN, 0.5) +[1] NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#pbeta(c(-Inf, -0.42e-30, 0, 0.42e-30, Inf, NaN), 0.5, 0.5, lower.tail=F, log.p=F) +[1] 1 1 1 1 0 NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#pbeta(c(-Inf, -0.42e-30, 0, 0.42e-30, Inf, NaN), 0.5, 0.5, lower.tail=F, log.p=T) +[1] 0.000000e+00 0.000000e+00 0.000000e+00 -4.125768e-16 -Inf +[6] NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#pbeta(c(-Inf, -0.42e-30, 0, 0.42e-30, Inf, NaN), 0.5, 0.5, lower.tail=T, log.p=F) +[1] 0.000000e+00 0.000000e+00 0.000000e+00 4.125768e-16 1.000000e+00 +[6] NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#pbeta(c(-Inf, -0.42e-30, 0, 0.42e-30, Inf, NaN), 0.5, 0.5, lower.tail=T, log.p=T) +[1] -Inf -Inf -Inf -35.42411 0.00000 NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#pbeta(c(0.2, -Inf, -0.42e-30, 0, 0.42e-30, Inf, NaN), 0.1, 3, lower.tail=F, log.p=F) +[1] 0.05058572 1.00000000 1.00000000 1.00000000 0.99894097 0.00000000 NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#pbeta(c(0.2, -Inf, -0.42e-30, 0, 0.42e-30, Inf, NaN), 0.1, 3, lower.tail=F, log.p=T) +[1] -2.984085987 0.000000000 0.000000000 0.000000000 -0.001059588 +[6] -Inf NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#pbeta(c(0.2, -Inf, -0.42e-30, 0, 0.42e-30, Inf, NaN), 0.1, 3, lower.tail=T, log.p=F) +[1] 0.949414282 0.000000000 0.000000000 0.000000000 0.001059027 1.000000000 +[7] NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#pbeta(c(0.2, -Inf, -0.42e-30, 0, 0.42e-30, Inf, NaN), 0.1, 3, lower.tail=T, log.p=T) +[1] -0.05191003 -Inf -Inf -Inf -6.85040499 0.00000000 +[7] NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#pbeta(c(0.4, -Inf, -0.42e-30, 0, 0.42e-30, Inf, NaN), 0, 0, lower.tail=F, log.p=F) +[1] 0.5 1.0 1.0 1.0 0.5 0.0 NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#pbeta(c(0.4, -Inf, -0.42e-30, 0, 0.42e-30, Inf, NaN), 0, 0, lower.tail=F, log.p=T) +[1] -0.6931472 0.0000000 0.0000000 0.0000000 -0.6931472 -Inf NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#pbeta(c(0.4, -Inf, -0.42e-30, 0, 0.42e-30, Inf, NaN), 0, 0, lower.tail=T, log.p=F) +[1] 0.5 0.0 0.0 0.0 0.5 1.0 NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#pbeta(c(0.4, -Inf, -0.42e-30, 0, 0.42e-30, Inf, NaN), 0, 0, lower.tail=T, log.p=T) +[1] -0.6931472 -Inf -Inf -Inf -0.6931472 0.0000000 NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#pbeta(c(0.5, -Inf, -0.42e-30, 0, 0.42e-30, Inf, NaN), 0, Inf, lower.tail=F, log.p=F) +[1] 0 1 1 1 0 0 NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#pbeta(c(0.5, -Inf, -0.42e-30, 0, 0.42e-30, Inf, NaN), 0, Inf, lower.tail=F, log.p=T) +[1] -Inf 0 0 0 -Inf -Inf NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#pbeta(c(0.5, -Inf, -0.42e-30, 0, 0.42e-30, Inf, NaN), 0, Inf, lower.tail=T, log.p=F) +[1] 1 0 0 0 1 1 NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#pbeta(c(0.5, -Inf, -0.42e-30, 0, 0.42e-30, Inf, NaN), 0, Inf, lower.tail=T, log.p=T) +[1] 0 -Inf -Inf -Inf 0 0 NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#pbeta(c(0.5, -Inf, -0.42e-30, 0, 0.42e-30, Inf, NaN), 2, 5, lower.tail=F, log.p=F) +[1] 0.109375 1.000000 1.000000 1.000000 1.000000 0.000000 NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#pbeta(c(0.5, -Inf, -0.42e-30, 0, 0.42e-30, Inf, NaN), 2, 5, lower.tail=F, log.p=T) +[1] -2.212973e+00 0.000000e+00 0.000000e+00 0.000000e+00 -2.646000e-60 +[6] -Inf NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#pbeta(c(0.5, -Inf, -0.42e-30, 0, 0.42e-30, Inf, NaN), 2, 5, lower.tail=T, log.p=F) +[1] 8.90625e-01 0.00000e+00 0.00000e+00 0.00000e+00 2.64600e-60 1.00000e+00 +[7] NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#pbeta(c(0.5, -Inf, -0.42e-30, 0, 0.42e-30, Inf, NaN), 2, 5, lower.tail=T, log.p=T) +[1] -0.1158318 -Inf -Inf -Inf -137.1820565 +[6] 0.0000000 NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#pbeta(c(0.6, -Inf, -0.42e-30, 0, 0.42e-30, Inf, NaN), Inf, 0, lower.tail=F, log.p=F) +[1] 1 1 1 1 1 0 NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#pbeta(c(0.6, -Inf, -0.42e-30, 0, 0.42e-30, Inf, NaN), Inf, 0, lower.tail=F, log.p=T) +[1] 0 0 0 0 0 -Inf NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#pbeta(c(0.6, -Inf, -0.42e-30, 0, 0.42e-30, Inf, NaN), Inf, 0, lower.tail=T, log.p=F) +[1] 0 0 0 0 0 1 NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#pbeta(c(0.6, -Inf, -0.42e-30, 0, 0.42e-30, Inf, NaN), Inf, 0, lower.tail=T, log.p=T) +[1] -Inf -Inf -Inf -Inf -Inf 0 NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#pbeta(c(0.6, 0.1, 42e-33), 6, 3, lower.tail=F, log.p=F) +[1] 0.6846054 0.9999766 1.0000000 + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#pbeta(c(0.6, 0.1, 42e-33), 6, 3, lower.tail=F, log.p=T) +[1] -3.789126e-01 -2.341027e-05 -1.536929e-187 + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#pbeta(c(0.6, 0.1, 42e-33), 6, 3, lower.tail=T, log.p=F) +[1] 3.153946e-01 2.341000e-05 1.536929e-187 + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#pbeta(c(0.6, 0.1, 42e-33), 6, 3, lower.tail=T, log.p=T) +[1] -1.153931 -10.662347 -430.153626 + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#pcauchy(0, -Inf, -1) +[1] NaN +Warning message: +In pcauchy(0, -Inf, -1) : NaNs produced + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#pcauchy(0, 0, -Inf) +[1] NaN +Warning message: +In pcauchy(0, 0, -Inf) : NaNs produced + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#pcauchy(0, 0, Inf) +[1] 0.5 + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#pcauchy(0, 0, NaN) +[1] NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#pcauchy(0, Inf, -1) +[1] NaN +Warning message: +In pcauchy(0, Inf, -1) : NaNs produced + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#pcauchy(0, NaN, -1) +[1] NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#pcauchy(c(-5, 42, -Inf, -0.42e-30, 0, 0.42e-30, Inf, NaN), -5, 5, lower.tail=F, log.p=F) +[1] 0.50000000 0.03373587 1.00000000 0.25000000 0.25000000 0.25000000 0.00000000 +[8] NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#pcauchy(c(-5, 42, -Inf, -0.42e-30, 0, 0.42e-30, Inf, NaN), -5, 5, lower.tail=F, log.p=T) +[1] -0.6931472 -3.3891936 0.0000000 -1.3862944 -1.3862944 -1.3862944 -Inf +[8] NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#pcauchy(c(-5, 42, -Inf, -0.42e-30, 0, 0.42e-30, Inf, NaN), -5, 5, lower.tail=T, log.p=F) +[1] 0.5000000 0.9662641 0.0000000 0.7500000 0.7500000 0.7500000 1.0000000 +[8] NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#pcauchy(c(-5, 42, -Inf, -0.42e-30, 0, 0.42e-30, Inf, NaN), -5, 5, lower.tail=T, log.p=T) +[1] -0.69314718 -0.03431805 -Inf -0.28768207 -0.28768207 -0.28768207 +[7] 0.00000000 NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#pcauchy(c(0, -1, 1, 0.42e-30), -0.01, 0.03, lower.tail=F, log.p=F) +[1] 0.39758362 0.99035720 0.00945197 0.39758362 + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#pcauchy(c(0, -1, 1, 0.42e-30), -0.01, 0.03, lower.tail=F, log.p=T) +[1] -0.922350008 -0.009689596 -4.661532090 -0.922350008 + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#pcauchy(c(0, -1, 1, 0.42e-30), -0.01, 0.03, lower.tail=T, log.p=F) +[1] 0.602416382 0.009642803 0.990548030 0.602416382 + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#pcauchy(c(0, -1, 1, 0.42e-30), -0.01, 0.03, lower.tail=T, log.p=T) +[1] -0.506806408 -4.641543417 -0.009496923 -0.506806408 + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#pcauchy(c(0, -1, 42), 0, -1, lower.tail=F, log.p=F) +[1] NaN NaN NaN +Warning message: +In pcauchy(c(0, -1, 42), 0, -1, lower.tail = F, log.p = F) : NaNs produced + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#pcauchy(c(0, -1, 42), 0, -1, lower.tail=F, log.p=T) +[1] NaN NaN NaN +Warning message: +In pcauchy(c(0, -1, 42), 0, -1, lower.tail = F, log.p = T) : NaNs produced + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#pcauchy(c(0, -1, 42), 0, -1, lower.tail=T, log.p=F) +[1] NaN NaN NaN +Warning message: +In pcauchy(c(0, -1, 42), 0, -1, lower.tail = T, log.p = F) : NaNs produced + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#pcauchy(c(0, -1, 42), 0, -1, lower.tail=T, log.p=T) +[1] NaN NaN NaN +Warning message: +In pcauchy(c(0, -1, 42), 0, -1, lower.tail = T, log.p = T) : NaNs produced + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#pexp(0, -1) +[1] NaN +Warning message: +In pexp(0, -1) : NaNs produced + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#pexp(0, -Inf) +[1] 0 + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#pexp(0, 0) +[1] 0 + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#pexp(0, Inf) +[1] 0 + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#pexp(0, NaN) +[1] NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#pexp(c(10, -10, -Inf, -0.42e-30, 0, 0.42e-30, Inf, NaN), 13e-20, lower.tail=F, log.p=F) +[1] 1 1 1 1 1 1 0 NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#pexp(c(10, -10, -Inf, -0.42e-30, 0, 0.42e-30, Inf, NaN), 13e-20, lower.tail=F, log.p=T) +[1] -1.30e-18 0.00e+00 0.00e+00 0.00e+00 0.00e+00 -5.46e-50 -Inf +[8] NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#pexp(c(10, -10, -Inf, -0.42e-30, 0, 0.42e-30, Inf, NaN), 13e-20, lower.tail=T, log.p=F) +[1] 1.30e-18 0.00e+00 0.00e+00 0.00e+00 0.00e+00 5.46e-50 1.00e+00 NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#pexp(c(10, -10, -Inf, -0.42e-30, 0, 0.42e-30, Inf, NaN), 13e-20, lower.tail=T, log.p=T) +[1] -41.18417 -Inf -Inf -Inf -Inf -113.43181 0.00000 +[8] NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#pexp(c(33e123, -Inf, -0.42e-30, 0, 0.42e-30, Inf, NaN), 42e123, lower.tail=F, log.p=F) +[1] 0 1 1 1 0 0 NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#pexp(c(33e123, -Inf, -0.42e-30, 0, 0.42e-30, Inf, NaN), 42e123, lower.tail=F, log.p=T) +[1] -1.386e+249 0.000e+00 0.000e+00 0.000e+00 -1.764e+94 -Inf +[7] NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#pexp(c(33e123, -Inf, -0.42e-30, 0, 0.42e-30, Inf, NaN), 42e123, lower.tail=T, log.p=F) +[1] 1 0 0 0 1 1 NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#pexp(c(33e123, -Inf, -0.42e-30, 0, 0.42e-30, Inf, NaN), 42e123, lower.tail=T, log.p=T) +[1] 0 -Inf -Inf -Inf 0 0 NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#pexp(c(42, -Inf, -0.42e-30, 0, 0.42e-30, Inf, NaN), 42, lower.tail=F, log.p=F) +[1] 0 1 1 1 1 0 NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#pexp(c(42, -Inf, -0.42e-30, 0, 0.42e-30, Inf, NaN), 42, lower.tail=F, log.p=T) +[1] -1.764e+03 0.000e+00 0.000e+00 0.000e+00 -1.764e-29 -Inf NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#pexp(c(42, -Inf, -0.42e-30, 0, 0.42e-30, Inf, NaN), 42, lower.tail=T, log.p=F) +[1] 1.000e+00 0.000e+00 0.000e+00 0.000e+00 1.764e-29 1.000e+00 NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#pexp(c(42, -Inf, -0.42e-30, 0, 0.42e-30, Inf, NaN), 42, lower.tail=T, log.p=T) +[1] 0.00000 -Inf -Inf -Inf -66.20738 0.00000 NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#pgamma(0, -1, scale=2) +[1] NaN +Warning message: +In pgamma(0, -1, scale = 2) : NaNs produced + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#pgamma(0, -Inf, scale=2) +[1] NaN +Warning message: +In pgamma(0, -Inf, scale = 2) : NaNs produced + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#pgamma(0, 0, scale=2) +[1] 0 + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#pgamma(0, 1, -1) +[1] NaN +Warning message: +In pgamma(0, 1, -1) : NaNs produced + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#pgamma(0, 1, -Inf) +[1] NaN +Warning message: +In pgamma(0, 1, -Inf) : NaNs produced + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#pgamma(0, 1, 0) +[1] 0 + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#pgamma(0, 1, Inf) +[1] NaN +Warning message: +In pgamma(0, 1, Inf) : NaNs produced + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#pgamma(0, 1, NaN) +[1] NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#pgamma(0, Inf, scale=2) +[1] 0 + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#pgamma(0, NaN, scale=2) +[1] NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#pgamma(c(-Inf, -0.42e-30, 0, 0.42e-30, Inf, NaN), 1, scale=2, lower.tail=F, log.p=F) +[1] 1 1 1 1 0 NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#pgamma(c(-Inf, -0.42e-30, 0, 0.42e-30, Inf, NaN), 1, scale=2, lower.tail=F, log.p=T) +[1] 0.0e+00 0.0e+00 0.0e+00 -2.1e-31 -Inf NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#pgamma(c(-Inf, -0.42e-30, 0, 0.42e-30, Inf, NaN), 1, scale=2, lower.tail=T, log.p=F) +[1] 0.0e+00 0.0e+00 0.0e+00 2.1e-31 1.0e+00 NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#pgamma(c(-Inf, -0.42e-30, 0, 0.42e-30, Inf, NaN), 1, scale=2, lower.tail=T, log.p=T) +[1] -Inf -Inf -Inf -70.6382 0.0000 NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#pgamma(c(900, 5000, 0), 11e11, scale=23e-11, lower.tail=F, log.p=F) +[1] 0 0 1 + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#pgamma(c(900, 5000, 0), 11e11, scale=23e-11, lower.tail=F, log.p=T) +[1] -1.417138e+12 -1.735695e+13 0.000000e+00 + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#pgamma(c(900, 5000, 0), 11e11, scale=23e-11, lower.tail=T, log.p=F) +[1] 1 1 0 + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#pgamma(c(900, 5000, 0), 11e11, scale=23e-11, lower.tail=T, log.p=T) +[1] 0 0 -Inf + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#pnorm(0, -Inf, -1) +[1] NaN +Warning message: +In pnorm(0, -Inf, -1) : NaNs produced + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#pnorm(0, 0, -Inf) +[1] NaN +Warning message: +In pnorm(0, 0, -Inf) : NaNs produced + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#pnorm(0, 0, Inf) +[1] 0.5 + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#pnorm(0, 0, NaN) +[1] NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#pnorm(0, Inf, -1) +[1] NaN +Warning message: +In pnorm(0, Inf, -1) : NaNs produced + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#pnorm(0, NaN, -1) +[1] NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#pnorm(c(0), 0, -1, lower.tail=F, log.p=F) +[1] NaN +Warning message: +In pnorm(c(0), 0, -1, lower.tail = F, log.p = F) : NaNs produced + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#pnorm(c(0), 0, -1, lower.tail=F, log.p=T) +[1] NaN +Warning message: +In pnorm(c(0), 0, -1, lower.tail = F, log.p = T) : NaNs produced + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#pnorm(c(0), 0, -1, lower.tail=T, log.p=F) +[1] NaN +Warning message: +In pnorm(c(0), 0, -1, lower.tail = T, log.p = F) : NaNs produced + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#pnorm(c(0), 0, -1, lower.tail=T, log.p=T) +[1] NaN +Warning message: +In pnorm(c(0), 0, -1, lower.tail = T, log.p = T) : NaNs produced + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#pnorm(c(1, -Inf, -0.42e-30, 0, 0.42e-30, Inf, NaN), 0, 0, lower.tail=F, log.p=F) +[1] 0 1 1 0 0 0 NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#pnorm(c(1, -Inf, -0.42e-30, 0, 0.42e-30, Inf, NaN), 0, 0, lower.tail=F, log.p=T) +[1] -Inf 0 0 -Inf -Inf -Inf NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#pnorm(c(1, -Inf, -0.42e-30, 0, 0.42e-30, Inf, NaN), 0, 0, lower.tail=T, log.p=F) +[1] 1 0 0 1 1 1 NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#pnorm(c(1, -Inf, -0.42e-30, 0, 0.42e-30, Inf, NaN), 0, 0, lower.tail=T, log.p=T) +[1] 0 -Inf -Inf 0 0 0 NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#pnorm(c(4, -100, 0), 4, 4, lower.tail=F, log.p=F) +[1] 0.5000000 1.0000000 0.8413447 + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#pnorm(c(4, -100, 0), 4, 4, lower.tail=F, log.p=T) +[1] -6.931472e-01 -2.476063e-149 -1.727538e-01 + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#pnorm(c(4, -100, 0), 4, 4, lower.tail=T, log.p=F) +[1] 5.000000e-01 2.476063e-149 1.586553e-01 + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#pnorm(c(4, -100, 0), 4, 4, lower.tail=T, log.p=T) +[1] -0.6931472 -342.1785089 -1.8410216 + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#punif(0, -3, -Inf) +[1] NaN +Warning message: +In punif(0, -3, -Inf) : NaNs produced + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#punif(0, -3, Inf) +[1] NaN +Warning message: +In punif(0, -3, Inf) : NaNs produced + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#punif(0, -3, NaN) +[1] NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#punif(0, -Inf, 3.3) +[1] NaN +Warning message: +In punif(0, -Inf, 3.3) : NaNs produced + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#punif(0, Inf, 3.3) +[1] NaN +Warning message: +In punif(0, Inf, 3.3) : NaNs produced + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#punif(0, NaN, 3.3) +[1] NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#punif(c(-3, 2, 3.3, -Inf, -0.42e-30, 0, 0.42e-30, Inf, NaN), -3, 3.3, lower.tail=F, log.p=F) +[1] 1.0000000 0.2063492 0.0000000 1.0000000 0.5238095 0.5238095 0.5238095 +[8] 0.0000000 NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#punif(c(-3, 2, 3.3, -Inf, -0.42e-30, 0, 0.42e-30, Inf, NaN), -3, 3.3, lower.tail=F, log.p=T) +[1] 0.0000000 -1.5781854 -Inf 0.0000000 -0.6466272 -0.6466272 -0.6466272 +[8] -Inf NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#punif(c(-3, 2, 3.3, -Inf, -0.42e-30, 0, 0.42e-30, Inf, NaN), -3, 3.3, lower.tail=T, log.p=F) +[1] 0.0000000 0.7936508 1.0000000 0.0000000 0.4761905 0.4761905 0.4761905 +[8] 1.0000000 NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testDistributionFunctions#Output.MayIgnoreWarningContext# +#punif(c(-3, 2, 3.3, -Inf, -0.42e-30, 0, 0.42e-30, Inf, NaN), -3, 3.3, lower.tail=T, log.p=T) +[1] -Inf -0.2311117 0.0000000 -Inf -0.7419373 -0.7419373 -0.7419373 +[8] 0.0000000 NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qbeta(-0.42e-38, 0.5, 0.5) +[1] NaN +Warning message: +In qbeta(-4.2e-39, 0.5, 0.5) : NaNs produced + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qbeta(-42, 0.5, 0.5) +[1] NaN +Warning message: +In qbeta(-42, 0.5, 0.5) : NaNs produced + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qbeta(-Inf, 0.5, 0.5) +[1] NaN +Warning message: +In qbeta(-Inf, 0.5, 0.5) : NaNs produced + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qbeta(0, -1, 0.5) +[1] NaN +Warning message: +In qbeta(0, -1, 0.5) : NaNs produced + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qbeta(0, -Inf, 0.5) +[1] NaN +Warning message: +In qbeta(0, -Inf, 0.5) : NaNs produced + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qbeta(0, 0, 0.5) +[1] 0 + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qbeta(0, 0.5, -1) +[1] NaN +Warning message: +In qbeta(0, 0.5, -1) : NaNs produced + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qbeta(0, 0.5, -Inf) +[1] NaN +Warning message: +In qbeta(0, 0.5, -Inf) : NaNs produced + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qbeta(0, 0.5, 0) +[1] 0 + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qbeta(0, 0.5, Inf) +[1] 0 + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qbeta(0, 0.5, NaN) +[1] NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qbeta(0, Inf, 0.5) +[1] 0 + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qbeta(0, NaN, 0.5) +[1] NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qbeta(Inf, 0.5, 0.5) +[1] NaN +Warning message: +In qbeta(Inf, 0.5, 0.5) : NaNs produced + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qbeta(NaN, 0.5, 0.5) +[1] NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qbeta(c(0, 42e-80, 0.1, 0.5, 0.7, 1-42e-80, 1), 0, 0, lower.tail=F, log.p=F) +[1] 1.0 0.0 0.0 0.5 1.0 0.0 0.0 + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qbeta(c(0, 42e-80, 0.1, 0.5, 0.7, 1-42e-80, 1), 0, 0, lower.tail=T, log.p=F) +[1] 0.0 0.0 0.0 0.5 1.0 1.0 1.0 + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qbeta(c(0, 42e-80, 0.1, 0.5, 0.7, 1-42e-80, 1), 0, Inf, lower.tail=F, log.p=F) +[1] 1 0 0 0 0 0 0 + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qbeta(c(0, 42e-80, 0.1, 0.5, 0.7, 1-42e-80, 1), 0, Inf, lower.tail=T, log.p=F) +[1] 0 0 0 0 0 1 1 + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qbeta(c(0, 42e-80, 0.1, 0.5, 0.7, 1-42e-80, 1), 0.1, 3, lower.tail=F, log.p=F) +[1] 1.000000e+00 1.000000e+00 9.839300e-02 2.312399e-04 1.397635e-06 +[6] 0.000000e+00 0.000000e+00 + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qbeta(c(0, 42e-80, 0.1, 0.5, 0.7, 1-42e-80, 1), 0.1, 3, lower.tail=T, log.p=F) +[1] 0.000000e+00 0.000000e+00 2.366901e-11 2.312399e-04 6.768603e-03 +[6] 1.000000e+00 1.000000e+00 + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qbeta(c(0, 42e-80, 0.1, 0.5, 0.7, 1-42e-80, 1), 0.5, 0.5, lower.tail=F, log.p=F) +[1] 1.0000000 1.0000000 0.9755283 0.5000000 0.2061074 0.0000000 0.0000000 + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qbeta(c(0, 42e-80, 0.1, 0.5, 0.7, 1-42e-80, 1), 0.5, 0.5, lower.tail=T, log.p=F) +[1] 0.000000e+00 4.352496e-157 2.447174e-02 5.000000e-01 7.938926e-01 +[6] 1.000000e+00 1.000000e+00 + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qbeta(c(0, 42e-80, 0.1, 0.5, 0.7, 1-42e-80, 1), 2, 5, lower.tail=F, log.p=F) +[1] 1.0000000 1.0000000 0.5103163 0.2644500 0.1818035 0.0000000 0.0000000 + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qbeta(c(0, 42e-80, 0.1, 0.5, 0.7, 1-42e-80, 1), 2, 5, lower.tail=T, log.p=F) +[1] 0.000000e+00 1.673320e-40 9.259526e-02 2.644500e-01 3.603577e-01 +[6] 1.000000e+00 1.000000e+00 + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qbeta(c(0, 42e-80, 0.1, 0.5, 0.7, 1-42e-80, 1), 6, 3, lower.tail=F, log.p=F) +[1] 1.0000000 1.0000000 0.8531451 0.6794810 0.5925411 0.0000000 0.0000000 + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qbeta(c(0, 42e-80, 0.1, 0.5, 0.7, 1-42e-80, 1), 6, 3, lower.tail=T, log.p=F) +[1] 0.000000e+00 4.966097e-14 4.617846e-01 6.794810e-01 7.586657e-01 +[6] 1.000000e+00 1.000000e+00 + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qbeta(c(0, 42e-80, 0.1, 0.5, 0.7, 1-42e-80, 1), Inf, 0, lower.tail=F, log.p=F) +[1] 1 1 1 1 1 0 0 + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qbeta(c(0, 42e-80, 0.1, 0.5, 0.7, 1-42e-80, 1), Inf, 0, lower.tail=T, log.p=F) +[1] 0 1 1 1 1 1 1 + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qbeta(log(c(0, 42e-80, 0.1, 0.5, 0.7, 1-42e-80, 1)), 0, 0, lower.tail=F, log.p=T) +[1] 1.0 0.0 0.0 0.5 1.0 0.0 0.0 + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qbeta(log(c(0, 42e-80, 0.1, 0.5, 0.7, 1-42e-80, 1)), 0, 0, lower.tail=T, log.p=T) +[1] 0.0 0.0 0.0 0.5 1.0 1.0 1.0 + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qbeta(log(c(0, 42e-80, 0.1, 0.5, 0.7, 1-42e-80, 1)), 0, Inf, lower.tail=F, log.p=T) +[1] 1 0 0 0 0 0 0 + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qbeta(log(c(0, 42e-80, 0.1, 0.5, 0.7, 1-42e-80, 1)), 0, Inf, lower.tail=T, log.p=T) +[1] 0 0 0 0 0 1 1 + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qbeta(log(c(0, 42e-80, 0.1, 0.5, 0.7, 1-42e-80, 1)), 0.1, 3, lower.tail=F, log.p=T) +[1] 1.000000e+00 1.000000e+00 9.839300e-02 2.312399e-04 1.397635e-06 +[6] 0.000000e+00 0.000000e+00 + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qbeta(log(c(0, 42e-80, 0.1, 0.5, 0.7, 1-42e-80, 1)), 0.1, 3, lower.tail=T, log.p=T) +[1] 0.000000e+00 1.112537e-308 2.366901e-11 2.312399e-04 6.768603e-03 +[6] 1.000000e+00 1.000000e+00 + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qbeta(log(c(0, 42e-80, 0.1, 0.5, 0.7, 1-42e-80, 1)), 0.5, 0.5, lower.tail=F, log.p=T) +[1] 1.0000000 1.0000000 0.9755283 0.5000000 0.2061074 0.0000000 0.0000000 + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qbeta(log(c(0, 42e-80, 0.1, 0.5, 0.7, 1-42e-80, 1)), 0.5, 0.5, lower.tail=T, log.p=T) +[1] 0.000000e+00 4.352496e-157 2.447174e-02 5.000000e-01 7.938926e-01 +[6] 1.000000e+00 1.000000e+00 + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qbeta(log(c(0, 42e-80, 0.1, 0.5, 0.7, 1-42e-80, 1)), 2, 5, lower.tail=F, log.p=T) +[1] 1.0000000 1.0000000 0.5103163 0.2644500 0.1818035 0.0000000 0.0000000 + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qbeta(log(c(0, 42e-80, 0.1, 0.5, 0.7, 1-42e-80, 1)), 2, 5, lower.tail=T, log.p=T) +[1] 0.000000e+00 1.673320e-40 9.259526e-02 2.644500e-01 3.603577e-01 +[6] 1.000000e+00 1.000000e+00 + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qbeta(log(c(0, 42e-80, 0.1, 0.5, 0.7, 1-42e-80, 1)), 6, 3, lower.tail=F, log.p=T) +[1] 1.0000000 1.0000000 0.8531451 0.6794810 0.5925411 0.0000000 0.0000000 + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qbeta(log(c(0, 42e-80, 0.1, 0.5, 0.7, 1-42e-80, 1)), 6, 3, lower.tail=T, log.p=T) +[1] 0.000000e+00 4.966097e-14 4.617846e-01 6.794810e-01 7.586657e-01 +[6] 1.000000e+00 1.000000e+00 + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qbeta(log(c(0, 42e-80, 0.1, 0.5, 0.7, 1-42e-80, 1)), Inf, 0, lower.tail=F, log.p=T) +[1] 1 1 1 1 1 0 0 + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qbeta(log(c(0, 42e-80, 0.1, 0.5, 0.7, 1-42e-80, 1)), Inf, 0, lower.tail=T, log.p=T) +[1] 0 1 1 1 1 1 1 + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qcauchy(-0.42e-38, 0, -1) +[1] NaN +Warning message: +In qcauchy(-4.2e-39, 0, -1) : NaNs produced + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qcauchy(-42, 0, -1) +[1] NaN +Warning message: +In qcauchy(-42, 0, -1) : NaNs produced + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qcauchy(-Inf, 0, -1) +[1] NaN +Warning message: +In qcauchy(-Inf, 0, -1) : NaNs produced + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qcauchy(0, -Inf, -1) +[1] NaN +Warning message: +In qcauchy(0, -Inf, -1) : NaNs produced + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qcauchy(0, 0, -Inf) +[1] NaN +Warning message: +In qcauchy(0, 0, -Inf) : NaNs produced + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qcauchy(0, 0, Inf) +[1] NaN +Warning message: +In qcauchy(0, 0, Inf) : NaNs produced + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qcauchy(0, 0, NaN) +[1] NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qcauchy(0, Inf, -1) +[1] NaN +Warning message: +In qcauchy(0, Inf, -1) : NaNs produced + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qcauchy(0, NaN, -1) +[1] NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qcauchy(Inf, 0, -1) +[1] NaN +Warning message: +In qcauchy(Inf, 0, -1) : NaNs produced + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qcauchy(NaN, 0, -1) +[1] NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qcauchy(c(0, 42e-80, 0.1, 0.5, 0.7, 1-42e-80, 1), -0.01, 0.03, lower.tail=F, log.p=F) +[1] Inf 2.273642e+76 8.233051e-02 -1.000000e-02 -3.179628e-02 +[6] -Inf -Inf + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qcauchy(c(0, 42e-80, 0.1, 0.5, 0.7, 1-42e-80, 1), -0.01, 0.03, lower.tail=T, log.p=F) +[1] -Inf -2.273642e+76 -1.023305e-01 -1.000000e-02 1.179628e-02 +[6] Inf Inf + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qcauchy(c(0, 42e-80, 0.1, 0.5, 0.7, 1-42e-80, 1), -5, 5, lower.tail=F, log.p=F) +[1] Inf 3.789403e+78 1.038842e+01 -5.000000e+00 -8.632713e+00 +[6] -Inf -Inf + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qcauchy(c(0, 42e-80, 0.1, 0.5, 0.7, 1-42e-80, 1), -5, 5, lower.tail=T, log.p=F) +[1] -Inf -3.789403e+78 -2.038842e+01 -5.000000e+00 -1.367287e+00 +[6] Inf Inf + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qcauchy(c(0, 42e-80, 0.1, 0.5, 0.7, 1-42e-80, 1), 0, -1, lower.tail=F, log.p=F) +[1] NaN NaN NaN NaN NaN NaN NaN +Warning message: +In qcauchy(c(0, 4.2e-79, 0.1, 0.5, 0.7, 1 - 4.2e-79, 1), 0, -1, : + NaNs produced + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qcauchy(c(0, 42e-80, 0.1, 0.5, 0.7, 1-42e-80, 1), 0, -1, lower.tail=T, log.p=F) +[1] NaN NaN NaN NaN NaN NaN NaN +Warning message: +In qcauchy(c(0, 4.2e-79, 0.1, 0.5, 0.7, 1 - 4.2e-79, 1), 0, -1, : + NaNs produced + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qcauchy(log(c(0, 42e-80, 0.1, 0.5, 0.7, 1-42e-80, 1)), -0.01, 0.03, lower.tail=F, log.p=T) +[1] Inf 2.273642e+76 8.233051e-02 -1.000000e-02 -3.179628e-02 +[6] -Inf -Inf + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qcauchy(log(c(0, 42e-80, 0.1, 0.5, 0.7, 1-42e-80, 1)), -0.01, 0.03, lower.tail=T, log.p=T) +[1] -Inf -2.273642e+76 -1.023305e-01 -1.000000e-02 1.179628e-02 +[6] Inf Inf + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qcauchy(log(c(0, 42e-80, 0.1, 0.5, 0.7, 1-42e-80, 1)), -5, 5, lower.tail=F, log.p=T) +[1] Inf 3.789403e+78 1.038842e+01 -5.000000e+00 -8.632713e+00 +[6] -Inf -Inf + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qcauchy(log(c(0, 42e-80, 0.1, 0.5, 0.7, 1-42e-80, 1)), -5, 5, lower.tail=T, log.p=T) +[1] -Inf -3.789403e+78 -2.038842e+01 -5.000000e+00 -1.367287e+00 +[6] Inf Inf + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qcauchy(log(c(0, 42e-80, 0.1, 0.5, 0.7, 1-42e-80, 1)), 0, -1, lower.tail=F, log.p=T) +[1] NaN NaN NaN NaN NaN NaN NaN +Warning message: +In qcauchy(log(c(0, 4.2e-79, 0.1, 0.5, 0.7, 1 - 4.2e-79, 1)), 0, : + NaNs produced + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qcauchy(log(c(0, 42e-80, 0.1, 0.5, 0.7, 1-42e-80, 1)), 0, -1, lower.tail=T, log.p=T) +[1] NaN NaN NaN NaN NaN NaN NaN +Warning message: +In qcauchy(log(c(0, 4.2e-79, 0.1, 0.5, 0.7, 1 - 4.2e-79, 1)), 0, : + NaNs produced + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qexp(-0.42e-38, 13e-20) +[1] NaN +Warning message: +In qexp(-4.2e-39, 1.3e-19) : NaNs produced + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qexp(-42, 13e-20) +[1] NaN +Warning message: +In qexp(-42, 1.3e-19) : NaNs produced + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qexp(-Inf, 13e-20) +[1] NaN +Warning message: +In qexp(-Inf, 1.3e-19) : NaNs produced + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qexp(0, -1) +[1] NaN +Warning message: +In qexp(0, -1) : NaNs produced -##com.oracle.truffle.r.test.library.stats.TestExternal_covcor.testCovcor# -#.Call(stats:::C_cov, 1:5, c(1,5,1,5,10), 4, FALSE) -[1] 4.5 +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qexp(0, -Inf) +[1] 0 -##com.oracle.truffle.r.test.library.stats.TestExternal_covcor.testCovcorArgsCasts# -#.Call(stats:::C_cov, 1:3, 1:5, 4, FALSE) -Error: incompatible dimensions +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qexp(0, 0) +[1] 0 -##com.oracle.truffle.r.test.library.stats.TestExternal_covcor.testCovcorArgsCasts# -#.Call(stats:::C_cov, NULL, 1:5, 4, FALSE) -Error: 'x' is NULL +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qexp(0, Inf) +[1] 0 -##com.oracle.truffle.r.test.library.stats.TestExternal_covcor.testCovcorArgsCasts# -#.Call(stats:::C_cov, c('1','2','3','4','5'), 1:5, 4, FALSE) -[1] 2.5 +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qexp(0, NaN) +[1] NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qexp(Inf, 13e-20) +[1] NaN +Warning message: +In qexp(Inf, 1.3e-19) : NaNs produced + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qexp(NaN, 13e-20) +[1] NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qexp(c(0, 42e-80, 0.1, 0.5, 0.7, 1-42e-80, 1), 13e-20, lower.tail=F, log.p=F) +[1] Inf 1.388224e+21 1.771219e+19 5.331901e+18 2.743653e+18 +[6] 0.000000e+00 0.000000e+00 + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qexp(c(0, 42e-80, 0.1, 0.5, 0.7, 1-42e-80, 1), 13e-20, lower.tail=T, log.p=F) +[1] 0.000000e+00 3.230769e-60 8.104655e+17 5.331901e+18 9.261329e+18 +[6] Inf Inf + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qexp(c(0, 42e-80, 0.1, 0.5, 0.7, 1-42e-80, 1), 42, lower.tail=F, log.p=F) +[1] Inf 4.296884234 0.054823455 0.016503504 0.008492261 0.000000000 +[7] 0.000000000 + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qexp(c(0, 42e-80, 0.1, 0.5, 0.7, 1-42e-80, 1), 42, lower.tail=T, log.p=F) +[1] 0.000000e+00 1.000000e-80 2.508584e-03 1.650350e-02 2.866602e-02 +[6] Inf Inf + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qexp(c(0, 42e-80, 0.1, 0.5, 0.7, 1-42e-80, 1), 42e123, lower.tail=F, log.p=F) +[1] Inf 4.296884e-123 5.482345e-125 1.650350e-125 8.492261e-126 +[6] 0.000000e+00 0.000000e+00 + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qexp(c(0, 42e-80, 0.1, 0.5, 0.7, 1-42e-80, 1), 42e123, lower.tail=T, log.p=F) +[1] 0.000000e+00 1.000000e-203 2.508584e-126 1.650350e-125 2.866602e-125 +[6] Inf Inf + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qexp(log(c(0, 42e-80, 0.1, 0.5, 0.7, 1-42e-80, 1)), 13e-20, lower.tail=F, log.p=T) +[1] Inf 1.388224e+21 1.771219e+19 5.331901e+18 2.743653e+18 +[6] 0.000000e+00 0.000000e+00 + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qexp(log(c(0, 42e-80, 0.1, 0.5, 0.7, 1-42e-80, 1)), 13e-20, lower.tail=T, log.p=T) +[1] 0.000000e+00 3.230769e-60 8.104655e+17 5.331901e+18 9.261329e+18 +[6] Inf Inf + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qexp(log(c(0, 42e-80, 0.1, 0.5, 0.7, 1-42e-80, 1)), 42, lower.tail=F, log.p=T) +[1] Inf 4.296884234 0.054823455 0.016503504 0.008492261 0.000000000 +[7] 0.000000000 + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qexp(log(c(0, 42e-80, 0.1, 0.5, 0.7, 1-42e-80, 1)), 42, lower.tail=T, log.p=T) +[1] 0.000000e+00 1.000000e-80 2.508584e-03 1.650350e-02 2.866602e-02 +[6] Inf Inf + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qexp(log(c(0, 42e-80, 0.1, 0.5, 0.7, 1-42e-80, 1)), 42e123, lower.tail=F, log.p=T) +[1] Inf 4.296884e-123 5.482345e-125 1.650350e-125 8.492261e-126 +[6] 0.000000e+00 0.000000e+00 + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qexp(log(c(0, 42e-80, 0.1, 0.5, 0.7, 1-42e-80, 1)), 42e123, lower.tail=T, log.p=T) +[1] 0.000000e+00 1.000000e-203 2.508584e-126 1.650350e-125 2.866602e-125 +[6] Inf Inf + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qgamma(-0.42e-38, 1, scale=2) +[1] NaN +Warning message: +In qgamma(-4.2e-39, 1, scale = 2) : NaNs produced + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qgamma(-42, 1, scale=2) +[1] NaN +Warning message: +In qgamma(-42, 1, scale = 2) : NaNs produced -##com.oracle.truffle.r.test.library.stats.TestExternal_qbeta.testQBeta# -#qbeta(0.1, 0, 0, lower.tail=F, log.p=F) +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qgamma(-Inf, 1, scale=2) +[1] NaN +Warning message: +In qgamma(-Inf, 1, scale = 2) : NaNs produced + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qgamma(0, -1, scale=2) [1] 0 -##com.oracle.truffle.r.test.library.stats.TestExternal_qbeta.testQBeta# -#qbeta(0.1, 0, 0, lower.tail=T, log.p=F) +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qgamma(0, -Inf, scale=2) [1] 0 -##com.oracle.truffle.r.test.library.stats.TestExternal_qbeta.testQBeta# -#qbeta(0.5, 0, 0, lower.tail=F, log.p=F) -[1] 0.5 +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qgamma(0, 0, scale=2) +[1] 0 -##com.oracle.truffle.r.test.library.stats.TestExternal_qbeta.testQBeta# -#qbeta(0.5, 0, 0, lower.tail=T, log.p=F) -[1] 0.5 +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qgamma(0, 1, -1) +[1] 0 -##com.oracle.truffle.r.test.library.stats.TestExternal_qbeta.testQBeta# -#qbeta(0.7, 0, 0, lower.tail=F, log.p=F) -[1] 1 +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qgamma(0, 1, -Inf) +[1] 0 -##com.oracle.truffle.r.test.library.stats.TestExternal_qbeta.testQBeta# -#qbeta(0.7, 0, 0, lower.tail=T, log.p=F) -[1] 1 +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qgamma(0, 1, 0) +[1] 0 -##com.oracle.truffle.r.test.library.stats.TestExternal_qbeta.testQBeta# -#qbeta(0.7, 0, 1/0, lower.tail=F, log.p=F) +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qgamma(0, 1, Inf) [1] 0 -##com.oracle.truffle.r.test.library.stats.TestExternal_qbeta.testQBeta# -#qbeta(0.7, 0, 1/0, lower.tail=T, log.p=F) +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qgamma(0, 1, NaN) +[1] NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qgamma(0, Inf, scale=2) [1] 0 -##com.oracle.truffle.r.test.library.stats.TestExternal_qbeta.testQBeta# -#qbeta(0.7, 1/0, 0, lower.tail=F, log.p=F) -[1] 1 +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qgamma(0, NaN, scale=2) +[1] NaN -##com.oracle.truffle.r.test.library.stats.TestExternal_qbeta.testQBeta# -#qbeta(0.7, 1/0, 0, lower.tail=T, log.p=F) -[1] 1 +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qgamma(Inf, 1, scale=2) +[1] NaN +Warning message: +In qgamma(Inf, 1, scale = 2) : NaNs produced + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qgamma(NaN, 1, scale=2) +[1] NaN -##com.oracle.truffle.r.test.library.stats.TestExternal_qbeta.testQBeta#Output.MayIgnoreWarningContext# -#qbeta(log(0), -1, 3, lower.tail=T, log.p=T) +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qgamma(c(0, 42e-80, 0.1, 0.5, 0.7, 1-42e-80, 1), 1, scale=2, lower.tail=F, log.p=F) +[1] Inf 360.9382756 4.6051702 1.3862944 0.7133499 0.0000000 +[7] 0.0000000 + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qgamma(c(0, 42e-80, 0.1, 0.5, 0.7, 1-42e-80, 1), 1, scale=2, lower.tail=T, log.p=F) +[1] 0.000000e+00 8.400000e-79 2.107210e-01 1.386294e+00 2.407946e+00 +[6] Inf Inf + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qgamma(c(0, 42e-80, 0.1, 0.5, 0.7, 1-42e-80, 1), 11e11, scale=23e-11, lower.tail=F, log.p=F) +[1] Inf 253.0045 253.0003 253.0000 252.9999 0.0000 0.0000 + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qgamma(c(0, 42e-80, 0.1, 0.5, 0.7, 1-42e-80, 1), 11e11, scale=23e-11, lower.tail=T, log.p=F) +[1] 0.0000 252.9955 252.9997 253.0000 253.0001 Inf Inf + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qgamma(log(c(0, 42e-80, 0.1, 0.5, 0.7, 1-42e-80, 1)), 1, scale=2, lower.tail=F, log.p=T) +[1] Inf 360.9382756 4.6051702 1.3862944 0.7133499 0.0000000 +[7] 0.0000000 + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qgamma(log(c(0, 42e-80, 0.1, 0.5, 0.7, 1-42e-80, 1)), 1, scale=2, lower.tail=T, log.p=T) +[1] 0.000000e+00 8.400000e-79 2.107210e-01 1.386294e+00 2.407946e+00 +[6] Inf Inf + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qgamma(log(c(0, 42e-80, 0.1, 0.5, 0.7, 1-42e-80, 1)), 11e11, scale=23e-11, lower.tail=F, log.p=T) +[1] Inf 253.0045 253.0003 253.0000 252.9999 0.0000 0.0000 + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qgamma(log(c(0, 42e-80, 0.1, 0.5, 0.7, 1-42e-80, 1)), 11e11, scale=23e-11, lower.tail=T, log.p=T) +[1] 0.0000 252.9955 252.9997 253.0000 253.0001 Inf Inf + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qnorm(-0.42e-38, 0, -1) [1] NaN Warning message: -In qbeta(log(0), -1, 3, lower.tail = T, log.p = T) : NaNs produced +In qnorm(-4.2e-39, 0, -1) : NaNs produced -##com.oracle.truffle.r.test.library.stats.TestExternal_qbeta.testQBeta# -#qbeta(log(0), 0.1, 3, lower.tail=T, log.p=T) -[1] 0 +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qnorm(-42, 0, -1) +[1] NaN +Warning message: +In qnorm(-42, 0, -1) : NaNs produced -##com.oracle.truffle.r.test.library.stats.TestExternal_qbeta.testQBeta#Output.MayIgnoreWarningContext# -#qbeta(log(0.1), -1, 3, lower.tail=T, log.p=T) +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qnorm(-Inf, 0, -1) [1] NaN Warning message: -In qbeta(log(0.1), -1, 3, lower.tail = T, log.p = T) : NaNs produced +In qnorm(-Inf, 0, -1) : NaNs produced -##com.oracle.truffle.r.test.library.stats.TestExternal_qbeta.testQBeta# -#qbeta(log(0.1), 0, 0, lower.tail=F, log.p=T) -[1] 0 +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qnorm(0, -Inf, -1) +[1] -Inf -##com.oracle.truffle.r.test.library.stats.TestExternal_qbeta.testQBeta# -#qbeta(log(0.1), 0, 0, lower.tail=T, log.p=T) -[1] 0 +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qnorm(0, 0, -Inf) +[1] -Inf + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qnorm(0, 0, Inf) +[1] -Inf + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qnorm(0, 0, NaN) +[1] NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qnorm(0, Inf, -1) +[1] -Inf -##com.oracle.truffle.r.test.library.stats.TestExternal_qbeta.testQBeta# -#qbeta(log(0.1), 0.1, 3, lower.tail=T, log.p=T) -[1] 2.366901e-11 +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qnorm(0, NaN, -1) +[1] NaN -##com.oracle.truffle.r.test.library.stats.TestExternal_qbeta.testQBeta#Output.MayIgnoreWarningContext# -#qbeta(log(0.5), -1, 3, lower.tail=T, log.p=T) +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qnorm(Inf, 0, -1) [1] NaN Warning message: -In qbeta(log(0.5), -1, 3, lower.tail = T, log.p = T) : NaNs produced +In qnorm(Inf, 0, -1) : NaNs produced -##com.oracle.truffle.r.test.library.stats.TestExternal_qbeta.testQBeta# -#qbeta(log(0.5), 0, 0, lower.tail=F, log.p=T) -[1] 0.5 +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qnorm(NaN, 0, -1) +[1] NaN -##com.oracle.truffle.r.test.library.stats.TestExternal_qbeta.testQBeta# -#qbeta(log(0.5), 0, 0, lower.tail=T, log.p=T) -[1] 0.5 +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qnorm(c(0, 42e-80, 0.1, 0.5, 0.7, 1-42e-80, 1), 0, -1, lower.tail=F, log.p=F) +[1] Inf NaN NaN NaN NaN -Inf -Inf +Warning message: +In qnorm(c(0, 4.2e-79, 0.1, 0.5, 0.7, 1 - 4.2e-79, 1), 0, -1, lower.tail = F, : + NaNs produced + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qnorm(c(0, 42e-80, 0.1, 0.5, 0.7, 1-42e-80, 1), 0, -1, lower.tail=T, log.p=F) +[1] -Inf NaN NaN NaN NaN Inf Inf +Warning message: +In qnorm(c(0, 4.2e-79, 0.1, 0.5, 0.7, 1 - 4.2e-79, 1), 0, -1, lower.tail = T, : + NaNs produced -##com.oracle.truffle.r.test.library.stats.TestExternal_qbeta.testQBeta# -#qbeta(log(0.5), 0.1, 3, lower.tail=T, log.p=T) -[1] 0.0002312399 +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qnorm(c(0, 42e-80, 0.1, 0.5, 0.7, 1-42e-80, 1), 0, 0, lower.tail=F, log.p=F) +[1] Inf 0 0 0 0 -Inf -Inf -##com.oracle.truffle.r.test.library.stats.TestExternal_qbeta.testQBeta#Output.MayIgnoreWarningContext# -#qbeta(log(0.7), -1, 3, lower.tail=T, log.p=T) -[1] NaN +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qnorm(c(0, 42e-80, 0.1, 0.5, 0.7, 1-42e-80, 1), 0, 0, lower.tail=T, log.p=F) +[1] -Inf 0 0 0 0 Inf Inf + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qnorm(c(0, 42e-80, 0.1, 0.5, 0.7, 1-42e-80, 1), 4, 4, lower.tail=F, log.p=F) +[1] Inf 79.177408 9.126206 4.000000 1.902398 -Inf -Inf + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qnorm(c(0, 42e-80, 0.1, 0.5, 0.7, 1-42e-80, 1), 4, 4, lower.tail=T, log.p=F) +[1] -Inf -71.177408 -1.126206 4.000000 6.097602 Inf Inf + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qnorm(log(c(0, 42e-80, 0.1, 0.5, 0.7, 1-42e-80, 1)), 0, -1, lower.tail=F, log.p=T) +[1] Inf NaN NaN NaN NaN -Inf -Inf Warning message: -In qbeta(log(0.7), -1, 3, lower.tail = T, log.p = T) : NaNs produced +In qnorm(log(c(0, 4.2e-79, 0.1, 0.5, 0.7, 1 - 4.2e-79, 1)), 0, -1, : + NaNs produced -##com.oracle.truffle.r.test.library.stats.TestExternal_qbeta.testQBeta# -#qbeta(log(0.7), 0, 0, lower.tail=F, log.p=T) -[1] 1 +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qnorm(log(c(0, 42e-80, 0.1, 0.5, 0.7, 1-42e-80, 1)), 0, -1, lower.tail=T, log.p=T) +[1] -Inf NaN NaN NaN NaN Inf Inf +Warning message: +In qnorm(log(c(0, 4.2e-79, 0.1, 0.5, 0.7, 1 - 4.2e-79, 1)), 0, -1, : + NaNs produced -##com.oracle.truffle.r.test.library.stats.TestExternal_qbeta.testQBeta# -#qbeta(log(0.7), 0, 0, lower.tail=T, log.p=T) -[1] 1 +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qnorm(log(c(0, 42e-80, 0.1, 0.5, 0.7, 1-42e-80, 1)), 0, 0, lower.tail=F, log.p=T) +[1] Inf 0 0 0 0 -Inf -Inf -##com.oracle.truffle.r.test.library.stats.TestExternal_qbeta.testQBeta# -#qbeta(log(0.7), 0, 1/0, lower.tail=F, log.p=T) -[1] 0 +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qnorm(log(c(0, 42e-80, 0.1, 0.5, 0.7, 1-42e-80, 1)), 0, 0, lower.tail=T, log.p=T) +[1] -Inf 0 0 0 0 Inf Inf -##com.oracle.truffle.r.test.library.stats.TestExternal_qbeta.testQBeta# -#qbeta(log(0.7), 0, 1/0, lower.tail=T, log.p=T) -[1] 0 +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qnorm(log(c(0, 42e-80, 0.1, 0.5, 0.7, 1-42e-80, 1)), 4, 4, lower.tail=F, log.p=T) +[1] Inf 79.177408 9.126206 4.000000 1.902398 -Inf -Inf -##com.oracle.truffle.r.test.library.stats.TestExternal_qbeta.testQBeta# -#qbeta(log(0.7), 0.1, 3, lower.tail=T, log.p=T) -[1] 0.006768603 +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qnorm(log(c(0, 42e-80, 0.1, 0.5, 0.7, 1-42e-80, 1)), 4, 4, lower.tail=T, log.p=T) +[1] -Inf -71.177408 -1.126206 4.000000 6.097602 Inf Inf -##com.oracle.truffle.r.test.library.stats.TestExternal_qbeta.testQBeta# -#qbeta(log(0.7), 1/0, 0, lower.tail=F, log.p=T) -[1] 1 +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qunif(-0.42e-38, -3, 3.3) +[1] NaN +Warning message: +In qunif(-4.2e-39, -3, 3.3) : NaNs produced -##com.oracle.truffle.r.test.library.stats.TestExternal_qbeta.testQBeta# -#qbeta(log(0.7), 1/0, 0, lower.tail=T, log.p=T) -[1] 1 +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qunif(-42, -3, 3.3) +[1] NaN +Warning message: +In qunif(-42, -3, 3.3) : NaNs produced -##com.oracle.truffle.r.test.library.stats.TestExternal_qbeta.testQBeta#Output.MayIgnoreWarningContext# -#qbeta(log(1), -1, 3, lower.tail=T, log.p=T) +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qunif(-Inf, -3, 3.3) [1] NaN Warning message: -In qbeta(log(1), -1, 3, lower.tail = T, log.p = T) : NaNs produced +In qunif(-Inf, -3, 3.3) : NaNs produced -##com.oracle.truffle.r.test.library.stats.TestExternal_qbeta.testQBeta# -#qbeta(log(1), 0.1, 3, lower.tail=T, log.p=T) -[1] 1 +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qunif(0, -3, -Inf) +[1] NaN +Warning message: +In qunif(0, -3, -Inf) : NaNs produced -##com.oracle.truffle.r.test.library.stats.TestExternal_qbeta.testQBeta#Output.MayIgnoreWarningContext# -#qbeta(log(1-42e-80), -1, 3, lower.tail=T, log.p=T) +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qunif(0, -3, Inf) [1] NaN Warning message: -In qbeta(log(1 - 4.2e-79), -1, 3, lower.tail = T, log.p = T) : - NaNs produced +In qunif(0, -3, Inf) : NaNs produced -##com.oracle.truffle.r.test.library.stats.TestExternal_qbeta.testQBeta# -#qbeta(log(1-42e-80), 0.1, 3, lower.tail=T, log.p=T) -[1] 1 +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qunif(0, -3, NaN) +[1] NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qunif(0, -Inf, 3.3) +[1] NaN +Warning message: +In qunif(0, -Inf, 3.3) : NaNs produced -##com.oracle.truffle.r.test.library.stats.TestExternal_qbeta.testQBeta#Output.MayIgnoreWarningContext# -#qbeta(log(42e-80), -1, 3, lower.tail=T, log.p=T) +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qunif(0, Inf, 3.3) [1] NaN Warning message: -In qbeta(log(4.2e-79), -1, 3, lower.tail = T, log.p = T) : NaNs produced +In qunif(0, Inf, 3.3) : NaNs produced + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qunif(0, NaN, 3.3) +[1] NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qunif(Inf, -3, 3.3) +[1] NaN +Warning message: +In qunif(Inf, -3, 3.3) : NaNs produced + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qunif(NaN, -3, 3.3) +[1] NaN + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qunif(c(0, 42e-80, 0.1, 0.5, 0.7, 1-42e-80, 1), -3, 3.3, lower.tail=F, log.p=F) +[1] 3.30 3.30 2.67 0.15 -1.11 -3.00 -3.00 + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qunif(c(0, 42e-80, 0.1, 0.5, 0.7, 1-42e-80, 1), -3, 3.3, lower.tail=T, log.p=F) +[1] -3.00 -3.00 -2.37 0.15 1.41 3.30 3.30 + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qunif(log(c(0, 42e-80, 0.1, 0.5, 0.7, 1-42e-80, 1)), -3, 3.3, lower.tail=F, log.p=T) +[1] 3.30 3.30 2.67 0.15 -1.11 -3.00 -3.00 + +##com.oracle.truffle.r.test.library.stats.TestDistributions.testQuantileFunctions#Output.MayIgnoreWarningContext# +#qunif(log(c(0, 42e-80, 0.1, 0.5, 0.7, 1-42e-80, 1)), -3, 3.3, lower.tail=T, log.p=T) +[1] -3.00 -3.00 -2.37 0.15 1.41 3.30 3.30 + +##com.oracle.truffle.r.test.library.stats.TestExternal_covcor.testCovcor# +#.Call(stats:::C_cov, 1:5, 1:5, 4, FALSE) +[1] 2.5 + +##com.oracle.truffle.r.test.library.stats.TestExternal_covcor.testCovcor# +#.Call(stats:::C_cov, 1:5, c(1,5,1,5,10), 4, FALSE) +[1] 4.5 + +##com.oracle.truffle.r.test.library.stats.TestExternal_covcor.testCovcorArgsCasts# +#.Call(stats:::C_cov, 1:3, 1:5, 4, FALSE) +Error: incompatible dimensions + +##com.oracle.truffle.r.test.library.stats.TestExternal_covcor.testCovcorArgsCasts# +#.Call(stats:::C_cov, NULL, 1:5, 4, FALSE) +Error: 'x' is NULL -##com.oracle.truffle.r.test.library.stats.TestExternal_qbeta.testQBeta# -#qbeta(log(42e-80), 0.1, 3, lower.tail=T, log.p=T) -[1] 1.112537e-308 +##com.oracle.truffle.r.test.library.stats.TestExternal_covcor.testCovcorArgsCasts# +#.Call(stats:::C_cov, c('1','2','3','4','5'), 1:5, 4, FALSE) +[1] 2.5 ##com.oracle.truffle.r.test.library.stats.TestExternal_qgamma.testQgamma# #qgamma(0, 1) @@ -114703,48 +116211,6 @@ In dchisq(c(-1, 0, 0.2, 2), rep(c(-1, 0, 0.1, 0.9, 3), 4), log = TRUE) : #set.seed(1); dchisq(c(NA, 0, NaN, 1/0, -1/0), rep(c(1, 0, 0.1), 5), log=FALSE) [1] NA Inf NaN 0 0 NA Inf NaN 0 0 NA Inf NaN 0 0 -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions21#Output.IgnoreWhitespace# -#set.seed(1); dexp(0, c(0.0653, 0.000123, 32e-80, 8833, 79e70, 0, -1), log=FALSE) -[1] 6.530e-02 1.230e-04 3.200e-79 8.833e+03 7.900e+71 0.000e+00 NaN -Warning message: -In dexp(0, c(0.0653, 0.000123, 3.2e-79, 8833, 7.9e+71, 0, -1), log = FALSE) : - NaNs produced - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions21#Output.IgnoreWhitespace# -#set.seed(1); dexp(10, 10, log=TRUE) -[1] -97.69741 - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions21#Output.IgnoreWhitespace# -#set.seed(1); dexp(3, 3, log=FALSE) -[1] 0.0003702294 - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions21#Output.IgnoreWhitespace# -#set.seed(1); dexp(c(-1, 0, 0.2, 2), rep(c(-1, 0, 0.1, 0.9, 3), 4), log=FALSE) - [1] NaN 0.000000000 0.098019867 0.148768999 0.000000000 NaN - [7] 0.000000000 0.081873075 0.000000000 3.000000000 NaN 0.000000000 -[13] 0.000000000 0.900000000 1.646434908 NaN 0.000000000 0.100000000 -[19] 0.751743190 0.007436257 -Warning message: -In dexp(c(-1, 0, 0.2, 2), rep(c(-1, 0, 0.1, 0.9, 3), 4), log = FALSE) : - NaNs produced - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions21#Output.IgnoreWhitespace# -#set.seed(1); dexp(c(-1, 0, 0.2, 2), rep(c(-1, 0, 0.1, 0.9, 3), 4), log=TRUE) - [1] NaN -Inf -2.3225851 -1.9053605 -Inf NaN - [7] -Inf -2.5025851 -Inf 1.0986123 NaN -Inf -[13] -Inf -0.1053605 0.4986123 NaN -Inf -2.3025851 -[19] -0.2853605 -4.9013877 -Warning message: -In dexp(c(-1, 0, 0.2, 2), rep(c(-1, 0, 0.1, 0.9, 3), 4), log = TRUE) : - NaNs produced - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions21#Output.IgnoreWhitespace# -#set.seed(1); dexp(c(NA, 0, NaN, 1/0, -1/0), rep(c(1, 0, 0.1), 5), log=FALSE) - [1] NA 0.0 NaN 0.0 0.0 NA 1.0 NaN 0.0 0.0 NA 0.1 NaN NaN 0.0 -Warning message: -In dexp(c(NA, 0, NaN, 1/0, -1/0), rep(c(1, 0, 0.1), 5), log = FALSE) : - NaNs produced - ##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions21#Output.IgnoreWhitespace# #set.seed(1); dgeom(0, c(0.0653, 0.000123, 32e-80, 8833, 79e70, 0, -1), log=FALSE) [1] 6.53e-02 1.23e-04 3.20e-79 NaN NaN NaN NaN @@ -114891,201 +116357,109 @@ In dt(c(-1, 0, 0.2, 2), rep(c(-1, 0, 0.1, 0.9, 3), 4), log = TRUE) : ##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions21#Output.IgnoreWhitespace# #set.seed(1); dt(c(NA, 0, NaN, 1/0, -1/0), rep(c(1, 0, 0.1), 5), log=FALSE) [1] NA NaN NaN 0.0000000 NaN NA 0.3183099 - [8] NaN 0.0000000 0.0000000 NA 0.1480921 NaN NaN -[15] 0.0000000 -Warning message: -In dt(c(NA, 0, NaN, 1/0, -1/0), rep(c(1, 0, 0.1), 5), log = FALSE) : - NaNs produced - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions22#Output.IgnoreWhitespace# -#set.seed(1); pchisq(0, 10, lower.tail=FALSE, log.p=FALSE) -[1] 1 - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions22#Output.IgnoreWhitespace# -#set.seed(1); pchisq(0, 10, lower.tail=FALSE, log.p=TRUE) -[1] 0 - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions22#Output.IgnoreWhitespace# -#set.seed(1); pchisq(0, 10, lower.tail=TRUE, log.p=FALSE) -[1] 0 - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions22#Output.IgnoreWhitespace# -#set.seed(1); pchisq(0, 10, lower.tail=TRUE, log.p=TRUE) -[1] -Inf - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions22#Output.IgnoreWhitespace# -#set.seed(1); pchisq(0, c(0.0653, 0.000123, 32e-80, 8833, 79e70, 0, -1), lower.tail=FALSE, log.p=FALSE) -[1] 1 1 1 1 1 1 NaN -Warning message: -In pchisq(0, c(0.0653, 0.000123, 3.2e-79, 8833, 7.9e+71, 0, -1), : - NaNs produced - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions22#Output.IgnoreWhitespace# -#set.seed(1); pchisq(0, c(0.0653, 0.000123, 32e-80, 8833, 79e70, 0, -1), lower.tail=FALSE, log.p=TRUE) -[1] 0 0 0 0 0 0 NaN -Warning message: -In pchisq(0, c(0.0653, 0.000123, 3.2e-79, 8833, 7.9e+71, 0, -1), : - NaNs produced - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions22#Output.IgnoreWhitespace# -#set.seed(1); pchisq(0, c(0.0653, 0.000123, 32e-80, 8833, 79e70, 0, -1), lower.tail=TRUE, log.p=FALSE) -[1] 0 0 0 0 0 0 NaN -Warning message: -In pchisq(0, c(0.0653, 0.000123, 3.2e-79, 8833, 7.9e+71, 0, -1), : - NaNs produced - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions22#Output.IgnoreWhitespace# -#set.seed(1); pchisq(0, c(0.0653, 0.000123, 32e-80, 8833, 79e70, 0, -1), lower.tail=TRUE, log.p=TRUE) -[1] -Inf -Inf -Inf -Inf -Inf -Inf NaN -Warning message: -In pchisq(0, c(0.0653, 0.000123, 3.2e-79, 8833, 7.9e+71, 0, -1), : - NaNs produced - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions22#Output.IgnoreWhitespace# -#set.seed(1); pchisq(c(-1, 0, 0.2, 2), rep(c(-1, 0, 0.1, 0.9, 3), 4), lower.tail=FALSE, log.p=FALSE) - [1] NaN 1.00000000 0.08874237 0.13808560 1.00000000 NaN - [7] 0.00000000 0.01152365 1.00000000 1.00000000 NaN 0.00000000 -[13] 1.00000000 1.00000000 0.97758930 NaN 1.00000000 1.00000000 -[19] 0.61145396 0.57240670 -Warning message: -In pchisq(c(-1, 0, 0.2, 2), rep(c(-1, 0, 0.1, 0.9, 3), 4), lower.tail = FALSE, : - NaNs produced - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions22#Output.IgnoreWhitespace# -#set.seed(1); pchisq(c(-1, 0, 0.2, 2), rep(c(-1, 0, 0.1, 0.9, 3), 4), lower.tail=FALSE, log.p=TRUE) - [1] NaN 0.00000000 -2.42201777 -1.97988153 0.00000000 NaN - [7] -Inf -4.46335358 0.00000000 0.00000000 NaN -Inf -[13] 0.00000000 0.00000000 -0.02266564 NaN 0.00000000 0.00000000 -[19] -0.49191562 -0.55790552 -Warning message: -In pchisq(c(-1, 0, 0.2, 2), rep(c(-1, 0, 0.1, 0.9, 3), 4), lower.tail = FALSE, : - NaNs produced - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions22#Output.IgnoreWhitespace# -#set.seed(1); pchisq(c(-1, 0, 0.2, 2), rep(c(-1, 0, 0.1, 0.9, 3), 4), lower.tail=TRUE, log.p=FALSE) - [1] NaN 0.0000000 0.9112576 0.8619144 0.0000000 NaN 1.0000000 - [8] 0.9884763 0.0000000 0.0000000 NaN 1.0000000 0.0000000 0.0000000 -[15] 0.0224107 NaN 0.0000000 0.0000000 0.3885460 0.4275933 -Warning message: -In pchisq(c(-1, 0, 0.2, 2), rep(c(-1, 0, 0.1, 0.9, 3), 4), lower.tail = TRUE, : - NaNs produced - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions22#Output.IgnoreWhitespace# -#set.seed(1); pchisq(c(-1, 0, 0.2, 2), rep(c(-1, 0, 0.1, 0.9, 3), 4), lower.tail=TRUE, log.p=TRUE) - [1] NaN -Inf -0.09292963 -0.14859931 -Inf NaN - [7] 0.00000000 -0.01159056 -Inf -Inf NaN 0.00000000 -[13] -Inf -Inf -3.79821666 NaN -Inf -Inf -[19] -0.94534361 -0.84958278 -Warning message: -In pchisq(c(-1, 0, 0.2, 2), rep(c(-1, 0, 0.1, 0.9, 3), 4), lower.tail = TRUE, : - NaNs produced - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions22#Output.IgnoreWhitespace# -#set.seed(1); pchisq(c(NA, 0, NaN, 1/0, -1/0), rep(c(1, 0, 0.1), 5)) - [1] NA 0 NaN 1 0 NA 0 NaN 1 0 NA 0 NaN 1 0 - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions22#Output.IgnoreWhitespace# -#set.seed(1); pchisq(rep(c(1, 0, 0.1), 5), c(NA, 0, NaN, 1/0, -1/0)) - [1] NA 0 NaN NaN NaN NA 1 NaN NaN NaN NA 1 NaN 0 NaN -Warning messages: -1: In pchisq(rep(c(1, 0, 0.1), 5), c(NA, 0, NaN, 1/0, -1/0)) : - value out of range in 'lgamma' -2: In pchisq(rep(c(1, 0, 0.1), 5), c(NA, 0, NaN, 1/0, -1/0)) : - value out of range in 'lgamma' -3: In pchisq(rep(c(1, 0, 0.1), 5), c(NA, 0, NaN, 1/0, -1/0)) : + [8] NaN 0.0000000 0.0000000 NA 0.1480921 NaN NaN +[15] 0.0000000 +Warning message: +In dt(c(NA, 0, NaN, 1/0, -1/0), rep(c(1, 0, 0.1), 5), log = FALSE) : NaNs produced ##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions22#Output.IgnoreWhitespace# -#set.seed(1); pexp(0, 10, lower.tail=FALSE, log.p=FALSE) +#set.seed(1); pchisq(0, 10, lower.tail=FALSE, log.p=FALSE) [1] 1 ##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions22#Output.IgnoreWhitespace# -#set.seed(1); pexp(0, 10, lower.tail=FALSE, log.p=TRUE) +#set.seed(1); pchisq(0, 10, lower.tail=FALSE, log.p=TRUE) [1] 0 ##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions22#Output.IgnoreWhitespace# -#set.seed(1); pexp(0, 10, lower.tail=TRUE, log.p=FALSE) +#set.seed(1); pchisq(0, 10, lower.tail=TRUE, log.p=FALSE) [1] 0 ##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions22#Output.IgnoreWhitespace# -#set.seed(1); pexp(0, 10, lower.tail=TRUE, log.p=TRUE) +#set.seed(1); pchisq(0, 10, lower.tail=TRUE, log.p=TRUE) [1] -Inf ##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions22#Output.IgnoreWhitespace# -#set.seed(1); pexp(0, c(0.0653, 0.000123, 32e-80, 8833, 79e70, 0, -1), lower.tail=FALSE, log.p=FALSE) +#set.seed(1); pchisq(0, c(0.0653, 0.000123, 32e-80, 8833, 79e70, 0, -1), lower.tail=FALSE, log.p=FALSE) [1] 1 1 1 1 1 1 NaN Warning message: -In pexp(0, c(0.0653, 0.000123, 3.2e-79, 8833, 7.9e+71, 0, -1), lower.tail = FALSE, : +In pchisq(0, c(0.0653, 0.000123, 3.2e-79, 8833, 7.9e+71, 0, -1), : NaNs produced ##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions22#Output.IgnoreWhitespace# -#set.seed(1); pexp(0, c(0.0653, 0.000123, 32e-80, 8833, 79e70, 0, -1), lower.tail=FALSE, log.p=TRUE) +#set.seed(1); pchisq(0, c(0.0653, 0.000123, 32e-80, 8833, 79e70, 0, -1), lower.tail=FALSE, log.p=TRUE) [1] 0 0 0 0 0 0 NaN Warning message: -In pexp(0, c(0.0653, 0.000123, 3.2e-79, 8833, 7.9e+71, 0, -1), lower.tail = FALSE, : +In pchisq(0, c(0.0653, 0.000123, 3.2e-79, 8833, 7.9e+71, 0, -1), : NaNs produced ##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions22#Output.IgnoreWhitespace# -#set.seed(1); pexp(0, c(0.0653, 0.000123, 32e-80, 8833, 79e70, 0, -1), lower.tail=TRUE, log.p=FALSE) +#set.seed(1); pchisq(0, c(0.0653, 0.000123, 32e-80, 8833, 79e70, 0, -1), lower.tail=TRUE, log.p=FALSE) [1] 0 0 0 0 0 0 NaN Warning message: -In pexp(0, c(0.0653, 0.000123, 3.2e-79, 8833, 7.9e+71, 0, -1), lower.tail = TRUE, : +In pchisq(0, c(0.0653, 0.000123, 3.2e-79, 8833, 7.9e+71, 0, -1), : NaNs produced ##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions22#Output.IgnoreWhitespace# -#set.seed(1); pexp(0, c(0.0653, 0.000123, 32e-80, 8833, 79e70, 0, -1), lower.tail=TRUE, log.p=TRUE) +#set.seed(1); pchisq(0, c(0.0653, 0.000123, 32e-80, 8833, 79e70, 0, -1), lower.tail=TRUE, log.p=TRUE) [1] -Inf -Inf -Inf -Inf -Inf -Inf NaN Warning message: -In pexp(0, c(0.0653, 0.000123, 3.2e-79, 8833, 7.9e+71, 0, -1), lower.tail = TRUE, : +In pchisq(0, c(0.0653, 0.000123, 3.2e-79, 8833, 7.9e+71, 0, -1), : NaNs produced ##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions22#Output.IgnoreWhitespace# -#set.seed(1); pexp(c(-1, 0, 0.2, 2), rep(c(-1, 0, 0.1, 0.9, 3), 4), lower.tail=FALSE, log.p=FALSE) - [1] NaN 1.000000000 0.980198673 0.165298888 1.000000000 NaN - [7] 1.000000000 0.818730753 1.000000000 1.000000000 NaN 1.000000000 -[13] 1.000000000 1.000000000 0.548811636 NaN 1.000000000 1.000000000 -[19] 0.835270211 0.002478752 +#set.seed(1); pchisq(c(-1, 0, 0.2, 2), rep(c(-1, 0, 0.1, 0.9, 3), 4), lower.tail=FALSE, log.p=FALSE) + [1] NaN 1.00000000 0.08874237 0.13808560 1.00000000 NaN + [7] 0.00000000 0.01152365 1.00000000 1.00000000 NaN 0.00000000 +[13] 1.00000000 1.00000000 0.97758930 NaN 1.00000000 1.00000000 +[19] 0.61145396 0.57240670 Warning message: -In pexp(c(-1, 0, 0.2, 2), rep(c(-1, 0, 0.1, 0.9, 3), 4), lower.tail = FALSE, : +In pchisq(c(-1, 0, 0.2, 2), rep(c(-1, 0, 0.1, 0.9, 3), 4), lower.tail = FALSE, : NaNs produced ##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions22#Output.IgnoreWhitespace# -#set.seed(1); pexp(c(-1, 0, 0.2, 2), rep(c(-1, 0, 0.1, 0.9, 3), 4), lower.tail=FALSE, log.p=TRUE) - [1] NaN 0.00 -0.02 -1.80 0.00 NaN 0.00 -0.20 0.00 0.00 NaN 0.00 -[13] 0.00 0.00 -0.60 NaN 0.00 0.00 -0.18 -6.00 +#set.seed(1); pchisq(c(-1, 0, 0.2, 2), rep(c(-1, 0, 0.1, 0.9, 3), 4), lower.tail=FALSE, log.p=TRUE) + [1] NaN 0.00000000 -2.42201777 -1.97988153 0.00000000 NaN + [7] -Inf -4.46335358 0.00000000 0.00000000 NaN -Inf +[13] 0.00000000 0.00000000 -0.02266564 NaN 0.00000000 0.00000000 +[19] -0.49191562 -0.55790552 Warning message: -In pexp(c(-1, 0, 0.2, 2), rep(c(-1, 0, 0.1, 0.9, 3), 4), lower.tail = FALSE, : +In pchisq(c(-1, 0, 0.2, 2), rep(c(-1, 0, 0.1, 0.9, 3), 4), lower.tail = FALSE, : NaNs produced ##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions22#Output.IgnoreWhitespace# -#set.seed(1); pexp(c(-1, 0, 0.2, 2), rep(c(-1, 0, 0.1, 0.9, 3), 4), lower.tail=TRUE, log.p=FALSE) - [1] NaN 0.00000000 0.01980133 0.83470111 0.00000000 NaN - [7] 0.00000000 0.18126925 0.00000000 0.00000000 NaN 0.00000000 -[13] 0.00000000 0.00000000 0.45118836 NaN 0.00000000 0.00000000 -[19] 0.16472979 0.99752125 +#set.seed(1); pchisq(c(-1, 0, 0.2, 2), rep(c(-1, 0, 0.1, 0.9, 3), 4), lower.tail=TRUE, log.p=FALSE) + [1] NaN 0.0000000 0.9112576 0.8619144 0.0000000 NaN 1.0000000 + [8] 0.9884763 0.0000000 0.0000000 NaN 1.0000000 0.0000000 0.0000000 +[15] 0.0224107 NaN 0.0000000 0.0000000 0.3885460 0.4275933 Warning message: -In pexp(c(-1, 0, 0.2, 2), rep(c(-1, 0, 0.1, 0.9, 3), 4), lower.tail = TRUE, : +In pchisq(c(-1, 0, 0.2, 2), rep(c(-1, 0, 0.1, 0.9, 3), 4), lower.tail = TRUE, : NaNs produced ##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions22#Output.IgnoreWhitespace# -#set.seed(1); pexp(c(-1, 0, 0.2, 2), rep(c(-1, 0, 0.1, 0.9, 3), 4), lower.tail=TRUE, log.p=TRUE) - [1] NaN -Inf -3.922006339 -0.180681568 -Inf - [6] NaN -Inf -1.707771801 -Inf -Inf -[11] NaN -Inf -Inf -Inf -0.795870368 -[16] NaN -Inf -Inf -1.803448792 -0.002481829 +#set.seed(1); pchisq(c(-1, 0, 0.2, 2), rep(c(-1, 0, 0.1, 0.9, 3), 4), lower.tail=TRUE, log.p=TRUE) + [1] NaN -Inf -0.09292963 -0.14859931 -Inf NaN + [7] 0.00000000 -0.01159056 -Inf -Inf NaN 0.00000000 +[13] -Inf -Inf -3.79821666 NaN -Inf -Inf +[19] -0.94534361 -0.84958278 Warning message: -In pexp(c(-1, 0, 0.2, 2), rep(c(-1, 0, 0.1, 0.9, 3), 4), lower.tail = TRUE, : +In pchisq(c(-1, 0, 0.2, 2), rep(c(-1, 0, 0.1, 0.9, 3), 4), lower.tail = TRUE, : NaNs produced ##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions22#Output.IgnoreWhitespace# -#set.seed(1); pexp(c(NA, 0, NaN, 1/0, -1/0), rep(c(1, 0, 0.1), 5)) - [1] NA 0 NaN 1 0 NA 0 NaN 1 0 NA 0 NaN NaN 0 -Warning message: -In pexp(c(NA, 0, NaN, 1/0, -1/0), rep(c(1, 0, 0.1), 5)) : NaNs produced +#set.seed(1); pchisq(c(NA, 0, NaN, 1/0, -1/0), rep(c(1, 0, 0.1), 5)) + [1] NA 0 NaN 1 0 NA 0 NaN 1 0 NA 0 NaN 1 0 ##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions22#Output.IgnoreWhitespace# -#set.seed(1); pexp(rep(c(1, 0, 0.1), 5), c(NA, 0, NaN, 1/0, -1/0)) - [1] NA 0 NaN 1 0 NA 0 NaN 1 -Inf NA 0 NaN 0 -Inf +#set.seed(1); pchisq(rep(c(1, 0, 0.1), 5), c(NA, 0, NaN, 1/0, -1/0)) + [1] NA 0 NaN NaN NaN NA 1 NaN NaN NaN NA 1 NaN 0 NaN +Warning messages: +1: In pchisq(rep(c(1, 0, 0.1), 5), c(NA, 0, NaN, 1/0, -1/0)) : + value out of range in 'lgamma' +2: In pchisq(rep(c(1, 0, 0.1), 5), c(NA, 0, NaN, 1/0, -1/0)) : + value out of range in 'lgamma' +3: In pchisq(rep(c(1, 0, 0.1), 5), c(NA, 0, NaN, 1/0, -1/0)) : + NaNs produced ##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions22#Output.IgnoreWhitespace# #set.seed(1); pgeom(0, 10, lower.tail=FALSE, log.p=FALSE) @@ -115470,101 +116844,6 @@ Warning messages: 2: In qchisq(rep(c(1, 0, 0.1), 5), c(NA, 0, NaN, 1/0, -1/0)) : NaNs produced -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions22#Output.IgnoreWhitespace# -#set.seed(1); qexp(0, 10, lower.tail=FALSE, log.p=FALSE) -[1] Inf - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions22#Output.IgnoreWhitespace# -#set.seed(1); qexp(0, 10, lower.tail=FALSE, log.p=TRUE) -[1] 0 - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions22#Output.IgnoreWhitespace# -#set.seed(1); qexp(0, 10, lower.tail=TRUE, log.p=FALSE) -[1] 0 - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions22#Output.IgnoreWhitespace# -#set.seed(1); qexp(0, 10, lower.tail=TRUE, log.p=TRUE) -[1] Inf - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions22#Output.IgnoreWhitespace# -#set.seed(1); qexp(0, c(0.0653, 0.000123, 32e-80, 8833, 79e70, 0, -1), lower.tail=FALSE, log.p=FALSE) -[1] Inf Inf Inf Inf Inf Inf NaN -Warning message: -In qexp(0, c(0.0653, 0.000123, 3.2e-79, 8833, 7.9e+71, 0, -1), lower.tail = FALSE, : - NaNs produced - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions22#Output.IgnoreWhitespace# -#set.seed(1); qexp(0, c(0.0653, 0.000123, 32e-80, 8833, 79e70, 0, -1), lower.tail=FALSE, log.p=TRUE) -[1] 0 0 0 0 0 0 NaN -Warning message: -In qexp(0, c(0.0653, 0.000123, 3.2e-79, 8833, 7.9e+71, 0, -1), lower.tail = FALSE, : - NaNs produced - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions22#Output.IgnoreWhitespace# -#set.seed(1); qexp(0, c(0.0653, 0.000123, 32e-80, 8833, 79e70, 0, -1), lower.tail=TRUE, log.p=FALSE) -[1] 0 0 0 0 0 0 NaN -Warning message: -In qexp(0, c(0.0653, 0.000123, 3.2e-79, 8833, 7.9e+71, 0, -1), lower.tail = TRUE, : - NaNs produced - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions22#Output.IgnoreWhitespace# -#set.seed(1); qexp(0, c(0.0653, 0.000123, 32e-80, 8833, 79e70, 0, -1), lower.tail=TRUE, log.p=TRUE) -[1] Inf Inf Inf Inf Inf Inf NaN -Warning message: -In qexp(0, c(0.0653, 0.000123, 3.2e-79, 8833, 7.9e+71, 0, -1), lower.tail = TRUE, : - NaNs produced - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions22#Output.IgnoreWhitespace# -#set.seed(1); qexp(c(-1, 0, 0.2, 2), rep(c(-1, 0, 0.1, 0.9, 3), 4), lower.tail=FALSE, log.p=FALSE) - [1] NaN Inf 16.0943791 NaN NaN NaN - [7] Inf NaN NaN Inf NaN NaN -[13] NaN Inf 0.5364793 NaN NaN Inf -[19] 1.7882643 NaN -Warning message: -In qexp(c(-1, 0, 0.2, 2), rep(c(-1, 0, 0.1, 0.9, 3), 4), lower.tail = FALSE, : - NaNs produced - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions22#Output.IgnoreWhitespace# -#set.seed(1); qexp(c(-1, 0, 0.2, 2), rep(c(-1, 0, 0.1, 0.9, 3), 4), lower.tail=FALSE, log.p=TRUE) - [1] NaN 0.0000000 NaN NaN 0.3333333 NaN - [7] NaN NaN 1.1111111 0.0000000 NaN NaN -[13] 10.0000000 0.0000000 NaN NaN Inf 0.0000000 -[19] NaN NaN -Warning message: -In qexp(c(-1, 0, 0.2, 2), rep(c(-1, 0, 0.1, 0.9, 3), 4), lower.tail = FALSE, : - NaNs produced - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions22#Output.IgnoreWhitespace# -#set.seed(1); qexp(c(-1, 0, 0.2, 2), rep(c(-1, 0, 0.1, 0.9, 3), 4), lower.tail=TRUE, log.p=FALSE) - [1] NaN 0.00000000 2.23143551 NaN NaN NaN - [7] Inf NaN NaN 0.00000000 NaN NaN -[13] NaN 0.00000000 0.07438118 NaN NaN 0.00000000 -[19] 0.24793728 NaN -Warning message: -In qexp(c(-1, 0, 0.2, 2), rep(c(-1, 0, 0.1, 0.9, 3), 4), lower.tail = TRUE, : - NaNs produced - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions22#Output.IgnoreWhitespace# -#set.seed(1); qexp(c(-1, 0, 0.2, 2), rep(c(-1, 0, 0.1, 0.9, 3), 4), lower.tail=TRUE, log.p=TRUE) - [1] NaN Inf NaN NaN 0.1528917 NaN NaN - [8] NaN 0.5096391 Inf NaN NaN 4.5867515 Inf -[15] NaN NaN Inf Inf NaN NaN -Warning message: -In qexp(c(-1, 0, 0.2, 2), rep(c(-1, 0, 0.1, 0.9, 3), 4), lower.tail = TRUE, : - NaNs produced - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions22#Output.IgnoreWhitespace# -#set.seed(1); qexp(c(NA, 0, NaN, 1/0, -1/0), rep(c(1, 0, 0.1), 5)) - [1] NA 0 NaN NaN NaN NA 0 NaN NaN NaN NA 0 NaN NaN NaN -Warning message: -In qexp(c(NA, 0, NaN, 1/0, -1/0), rep(c(1, 0, 0.1), 5)) : NaNs produced - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions22#Output.IgnoreWhitespace# -#set.seed(1); qexp(rep(c(1, 0, 0.1), 5), c(NA, 0, NaN, 1/0, -1/0)) - [1] NA 0 NaN NaN 0 NA Inf NaN 0 NaN NA Inf NaN 0 0 -Warning message: -In qexp(rep(c(1, 0, 0.1), 5), c(NA, 0, NaN, 1/0, -1/0)) : NaNs produced - ##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions22#Output.IgnoreWhitespace# #set.seed(1); qgeom(0, 10, lower.tail=FALSE, log.p=FALSE) [1] NaN @@ -115834,173 +117113,6 @@ In qt(c(NA, 0, NaN, 1/0, -1/0), rep(c(1, 0, 0.1), 5)) : NaNs produced Warning message: In qt(rep(c(1, 0, 0.1), 5), c(NA, 0, NaN, 1/0, -1/0)) : NaNs produced -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions31#Output.IgnoreWhitespace# -#set.seed(1); dbeta(0, c(0.0653, 0.000123, 32e-80, 8833, 79e70), c(0.0653, 0.000123, 32e-80, 8833, 79e70, 0, -1), log=FALSE) -[1] Inf Inf Inf 0 0 0 NaN -Warning message: -In dbeta(0, c(0.0653, 0.000123, 3.2e-79, 8833, 7.9e+71), c(0.0653, : - NaNs produced - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions31#Output.IgnoreWhitespace# -#set.seed(1); dbeta(0, c(NA, 0, NaN, 1/0, -1/0), c(NaN, NaN, NA, 0, 1/0, -1/0), log=FALSE) -[1] NA NaN NA 0 NaN NA -Warning message: -In dbeta(0, c(NA, 0, NaN, 1/0, -1/0), c(NaN, NaN, NA, 0, 1/0, -1/0), : - NaNs produced - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions31#Output.IgnoreWhitespace# -#set.seed(1); dbeta(10, 10, 10, log=TRUE) -[1] -Inf - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions31#Output.IgnoreWhitespace# -#set.seed(1); dbeta(3, 3, 3, log=FALSE) -[1] 0 - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions31#Output.IgnoreWhitespace# -#set.seed(1); dbeta(c(-1, 0, 1), c(-1, 0, 0.2, 2:5), rep(c(-1, 0, 0.1, 0.9, 3), 12), log=FALSE) - [1] NaN Inf Inf 0 0 NaN 0 NaN 0 0 NaN Inf 0 0 NaN NaN 0 Inf 0 -[20] 0 NaN NaN Inf Inf 0 NaN Inf 0 NaN 0 NaN 0 Inf 0 0 NaN 0 Inf -[39] Inf 0 NaN Inf NaN Inf 0 NaN 0 Inf 0 NaN NaN 0 0 Inf 0 NaN NaN -[58] 0 Inf 0 -Warning message: -In dbeta(c(-1, 0, 1), c(-1, 0, 0.2, 2:5), rep(c(-1, 0, 0.1, 0.9, : - NaNs produced - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions31#Output.IgnoreWhitespace# -#set.seed(1); dbeta(c(-1, 0, 1), c(-1, 0, 0.2, 2:5), rep(c(-1, 0, 0.1, 0.9, 3), 12), log=TRUE) - [1] NaN Inf Inf -Inf -Inf NaN -Inf NaN -Inf -Inf NaN Inf -Inf -Inf NaN -[16] NaN -Inf Inf -Inf -Inf NaN NaN Inf Inf -Inf NaN Inf -Inf NaN -Inf -[31] NaN -Inf Inf -Inf -Inf NaN -Inf Inf Inf -Inf NaN Inf NaN Inf -Inf -[46] NaN -Inf Inf -Inf NaN NaN -Inf -Inf Inf -Inf NaN NaN -Inf Inf -Inf -Warning message: -In dbeta(c(-1, 0, 1), c(-1, 0, 0.2, 2:5), rep(c(-1, 0, 0.1, 0.9, : - NaNs produced - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions31#Output.IgnoreWhitespace# -#set.seed(1); dbeta(c(NA, NaN, 1/0, -1/0), 2, 2, log=FALSE) -[1] NA NaN 0 0 - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions31#Output.IgnoreWhitespace# -#set.seed(1); dcauchy(0, c(0.0653, 0.000123, 32e-80, 8833, 79e70), c(0.0653, 0.000123, 32e-80, 8833, 79e70, 0, -1), log=FALSE) -[1] 2.437289e+00 1.293943e+03 4.973592e+77 1.801822e-05 2.014620e-73 -[6] NaN NaN -Warning message: -In dcauchy(0, c(0.0653, 0.000123, 3.2e-79, 8833, 7.9e+71), c(0.0653, : - NaNs produced - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions31#Output.IgnoreWhitespace# -#set.seed(1); dcauchy(0, c(NA, 0, NaN, 1/0, -1/0), c(NaN, NaN, NA, 0, 1/0, -1/0), log=FALSE) -[1] NA NaN NA NaN NaN NA -Warning message: -In dcauchy(0, c(NA, 0, NaN, 1/0, -1/0), c(NaN, NaN, NA, 0, 1/0, : - NaNs produced - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions31#Output.IgnoreWhitespace# -#set.seed(1); dcauchy(10, 10, 10, log=TRUE) -[1] -3.447315 - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions31#Output.IgnoreWhitespace# -#set.seed(1); dcauchy(3, 3, 3, log=FALSE) -[1] 0.1061033 - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions31#Output.IgnoreWhitespace# -#set.seed(1); dcauchy(c(-1, 0, 1), c(-1, 0, 0.2, 2:5), rep(c(-1, 0, 0.1, 0.9, 3), 12), log=FALSE) - [1] NaN NaN 0.0489707517 0.0292027419 0.0530516477 - [6] NaN NaN 0.0315158303 0.1582756340 0.0914683581 -[11] NaN NaN 0.0012727305 0.0110995311 0.0734561276 -[16] NaN NaN 0.0315158303 0.0170421712 0.0381971863 -[21] NaN NaN 3.1830988618 0.1975716535 0.0530516477 -[26] NaN NaN 0.0008839486 0.1582756340 0.0954929659 -[31] NaN NaN 0.0079379024 0.0110995311 0.0280861664 -[36] NaN NaN 0.6366197724 0.1582756340 0.0381971863 -[41] NaN NaN 3.1830988618 0.3536776513 0.0990590932 -[46] NaN NaN 0.0035328511 0.0077826378 0.0954929659 -[51] NaN NaN 0.0079379024 0.0595590224 0.0280861664 -[56] NaN NaN 0.0315158303 0.3370339971 0.0954929659 -Warning message: -In dcauchy(c(-1, 0, 1), c(-1, 0, 0.2, 2:5), rep(c(-1, 0, 0.1, 0.9, : - NaNs produced - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions31#Output.IgnoreWhitespace# -#set.seed(1); dcauchy(c(-1, 0, 1), c(-1, 0, 0.2, 2:5), rep(c(-1, 0, 0.1, 0.9, 3), 12), log=TRUE) - [1] NaN NaN -3.0165321 -3.5334927 -2.9364894 NaN - [7] NaN -3.4572653 -1.8434172 -2.3917622 NaN NaN -[13] -6.6665907 -4.5008524 -2.6110670 NaN NaN -3.4572653 -[19] -4.0720643 -3.2649934 NaN NaN 1.1578552 -1.6216540 -[25] -2.9364894 NaN NaN -7.0311117 -1.8434172 -2.3487027 -[31] NaN NaN -4.8361062 -4.5008524 -3.5724781 NaN -[37] NaN -0.4515827 -1.8434172 -3.2649934 NaN NaN -[43] 1.1578552 -1.0393694 -2.3120387 NaN NaN -5.6456501 -[49] -4.8558599 -2.3487027 NaN NaN -4.8361062 -2.8207875 -[55] -3.5724781 NaN NaN -3.4572653 -1.0875715 -2.3487027 -Warning message: -In dcauchy(c(-1, 0, 1), c(-1, 0, 0.2, 2:5), rep(c(-1, 0, 0.1, 0.9, : - NaNs produced - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions31#Output.IgnoreWhitespace# -#set.seed(1); dcauchy(c(NA, NaN, 1/0, -1/0), 2, 2, log=FALSE) -[1] NA NaN 0 0 - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions31#Output.IgnoreWhitespace# -#set.seed(1); dgamma(0, c(0.0653, 0.000123, 32e-80, 8833, 79e70), c(0.0653, 0.000123, 32e-80, 8833, 79e70, 0, -1), log=FALSE) -[1] Inf Inf Inf 0 0 Inf NaN -Warning message: -In dgamma(0, c(0.0653, 0.000123, 3.2e-79, 8833, 7.9e+71), c(0.0653, : - NaNs produced - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions31#Output.IgnoreWhitespace# -#set.seed(1); dgamma(0, c(NA, 0, NaN, 1/0, -1/0), c(NaN, NaN, NA, 0, 1/0, -1/0), log=FALSE) -[1] NA NaN NA 0 NaN NA -Warning message: -In dgamma(0, c(NA, 0, NaN, 1/0, -1/0), c(NaN, NaN, NA, 0, 1/0, -1/0), : - NaNs produced - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions31#Output.IgnoreWhitespace# -#set.seed(1); dgamma(10, 10, 10, log=TRUE) -[1] -69.05271 - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions31#Output.IgnoreWhitespace# -#set.seed(1); dgamma(3, 3, 3, log=FALSE) -[1] 0.01499429 - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions31#Output.IgnoreWhitespace# -#set.seed(1); dgamma(c(-1, 0, 1), c(-1, 0, 0.2, 2:5), rep(c(-1, 0, 0.1, 0.9, 3), 12), log=FALSE) - [1] NaN Inf 1.243592e-01 0.000000e+00 0.000000e+00 - [6] NaN 0.000000e+00 NaN 0.000000e+00 0.000000e+00 -[11] NaN 0.000000e+00 0.000000e+00 0.000000e+00 NaN -[16] NaN Inf 9.048374e-03 0.000000e+00 0.000000e+00 -[21] NaN NaN Inf 8.671435e-02 0.000000e+00 -[26] NaN 0.000000e+00 0.000000e+00 NaN 0.000000e+00 -[31] NaN 0.000000e+00 4.524187e-04 0.000000e+00 0.000000e+00 -[36] NaN 0.000000e+00 Inf 3.293214e-01 0.000000e+00 -[41] NaN 0.000000e+00 NaN Inf 1.350978e-02 -[46] NaN 0.000000e+00 1.508062e-05 0.000000e+00 NaN -[51] NaN 0.000000e+00 0.000000e+00 1.481946e-01 0.000000e+00 -[56] NaN NaN 0.000000e+00 Inf 4.480836e-01 -Warning message: -In dgamma(c(-1, 0, 1), c(-1, 0, 0.2, 2:5), rep(c(-1, 0, 0.1, 0.9, : - NaNs produced - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions31#Output.IgnoreWhitespace# -#set.seed(1); dgamma(c(-1, 0, 1), c(-1, 0, 0.2, 2:5), rep(c(-1, 0, 0.1, 0.9, 3), 12), log=TRUE) - [1] NaN Inf -2.0845808 -Inf -Inf NaN - [7] -Inf NaN -Inf -Inf NaN -Inf -[13] -Inf -Inf NaN NaN Inf -4.7051702 -[19] -Inf -Inf NaN NaN Inf -2.4451359 -[25] -Inf NaN -Inf -Inf NaN -Inf -[31] NaN -Inf -7.7009025 -Inf -Inf NaN -[37] -Inf Inf -1.1107210 -Inf NaN -Inf -[43] NaN Inf -4.3043414 NaN -Inf -11.1020998 -[49] -Inf NaN NaN -Inf -Inf -1.9092287 -[55] -Inf NaN NaN -Inf Inf -0.8027754 -Warning message: -In dgamma(c(-1, 0, 1), c(-1, 0, 0.2, 2:5), rep(c(-1, 0, 0.1, 0.9, : - NaNs produced - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions31#Output.IgnoreWhitespace# -#set.seed(1); dgamma(c(NA, NaN, 1/0, -1/0), 2, 2, log=FALSE) -[1] NA NaN 0 0 - ##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions31#Output.IgnoreWhitespace# #set.seed(1); dlnorm(0, c(0.0653, 0.000123, 32e-80, 8833, 79e70), c(0.0653, 0.000123, 32e-80, 8833, 79e70, 0, -1), log=FALSE) [1] 0 0 0 0 0 0 NaN @@ -116112,251 +117224,16 @@ In dlogis(c(-1, 0, 1), c(-1, 0, 0.2, 2:5), rep(c(-1, 0, 0.1, 0.9, : [31] NaN NaN -17.69741491 -5.45791197 -3.11129493 [36] NaN NaN 0.04872907 -1.57489456 -2.89987067 [41] NaN NaN 0.91629073 -1.28093385 -2.50263200 -[46] NaN NaN -27.69741491 -6.56384980 -2.51255677 -[51] NaN NaN -17.69741491 -2.32263907 -3.11129493 -[56] NaN NaN -7.69750570 -1.29325421 -2.51255677 -Warning message: -In dlogis(c(-1, 0, 1), c(-1, 0, 0.2, 2:5), rep(c(-1, 0, 0.1, 0.9, : - NaNs produced - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions31#Output.IgnoreWhitespace# -#set.seed(1); dlogis(c(NA, NaN, 1/0, -1/0), 2, 2, log=FALSE) -[1] NA NaN 0 0 - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions31#Output.IgnoreWhitespace# -#set.seed(1); dunif(0, c(0.0653, 0.000123, 32e-80, 8833, 79e70), c(0.0653, 0.000123, 32e-80, 8833, 79e70, 0, -1), log=FALSE) -[1] NaN NaN NaN NaN NaN NaN NaN -Warning message: -In dunif(0, c(0.0653, 0.000123, 3.2e-79, 8833, 7.9e+71), c(0.0653, : - NaNs produced - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions31#Output.IgnoreWhitespace# -#set.seed(1); dunif(0, c(NA, 0, NaN, 1/0, -1/0), c(NaN, NaN, NA, 0, 1/0, -1/0), log=FALSE) -[1] NA NaN NA NaN 0 NA -Warning message: -In dunif(0, c(NA, 0, NaN, 1/0, -1/0), c(NaN, NaN, NA, 0, 1/0, -1/0), : - NaNs produced - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions31#Output.IgnoreWhitespace# -#set.seed(1); dunif(10, 10, 10, log=TRUE) -[1] NaN -Warning message: -In dunif(10, 10, 10, log = TRUE) : NaNs produced - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions31#Output.IgnoreWhitespace# -#set.seed(1); dunif(3, 3, 3, log=FALSE) -[1] NaN -Warning message: -In dunif(3, 3, 3, log = FALSE) : NaNs produced - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions31#Output.IgnoreWhitespace# -#set.seed(1); dunif(c(-1, 0, 1), c(-1, 0, 0.2, 2:5), rep(c(-1, 0, 0.1, 0.9, 3), 12), log=FALSE) - [1] NaN NaN NaN NaN NaN NaN - [7] NaN 0.9090909 0.0000000 0.0000000 NaN NaN -[13] NaN NaN 0.2500000 NaN NaN NaN -[19] NaN NaN NaN 1.0000000 10.0000000 0.0000000 -[25] 0.0000000 NaN NaN NaN 0.5263158 0.3333333 -[31] NaN NaN NaN NaN NaN NaN -[37] NaN NaN NaN NaN NaN NaN -[43] 0.9090909 1.1111111 0.3571429 NaN NaN NaN -[49] NaN 0.2500000 NaN NaN NaN NaN -[55] NaN NaN 0.0000000 0.0000000 0.0000000 0.0000000 -Warning message: -In dunif(c(-1, 0, 1), c(-1, 0, 0.2, 2:5), rep(c(-1, 0, 0.1, 0.9, : - NaNs produced - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions31#Output.IgnoreWhitespace# -#set.seed(1); dunif(c(-1, 0, 1), c(-1, 0, 0.2, 2:5), rep(c(-1, 0, 0.1, 0.9, 3), 12), log=TRUE) - [1] NaN NaN NaN NaN NaN NaN - [7] NaN -0.09531018 -Inf -Inf NaN NaN -[13] NaN NaN -1.38629436 NaN NaN NaN -[19] NaN NaN NaN 0.00000000 2.30258509 -Inf -[25] -Inf NaN NaN NaN -0.64185389 -1.09861229 -[31] NaN NaN NaN NaN NaN NaN -[37] NaN NaN NaN NaN NaN NaN -[43] -0.09531018 0.10536052 -1.02961942 NaN NaN NaN -[49] NaN -1.38629436 NaN NaN NaN NaN -[55] NaN NaN -Inf -Inf -Inf -Inf -Warning message: -In dunif(c(-1, 0, 1), c(-1, 0, 0.2, 2:5), rep(c(-1, 0, 0.1, 0.9, : - NaNs produced - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions31#Output.IgnoreWhitespace# -#set.seed(1); dunif(c(NA, NaN, 1/0, -1/0), 2, 2, log=FALSE) -[1] NA NaN NaN NaN -Warning message: -In dunif(c(NA, NaN, 1/0, -1/0), 2, 2, log = FALSE) : NaNs produced - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); pbeta(0, 10, 10, lower.tail=FALSE, log.p=FALSE) -[1] 1 - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); pbeta(0, 10, 10, lower.tail=FALSE, log.p=TRUE) -[1] 0 - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); pbeta(0, 10, 10, lower.tail=TRUE, log.p=FALSE) -[1] 0 - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); pbeta(0, 10, 10, lower.tail=TRUE, log.p=TRUE) -[1] -Inf - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); pbeta(0, c(0.0653, 0.000123, 32e-80, 8833, 79e70, 0, -1), rep(c(0.0653, 0.000123, 32e-80, 8833, 79e70), 7), lower.tail=FALSE, log.p=FALSE) - [1] 1 1 1 1 1 1 NaN 1 1 1 1 1 1 NaN 1 1 1 1 1 -[20] 1 NaN 1 1 1 1 1 1 NaN 1 1 1 1 1 1 NaN -Warning message: -In pbeta(0, c(0.0653, 0.000123, 3.2e-79, 8833, 7.9e+71, 0, -1), : - NaNs produced - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); pbeta(0, c(0.0653, 0.000123, 32e-80, 8833, 79e70, 0, -1), rep(c(0.0653, 0.000123, 32e-80, 8833, 79e70), 7), lower.tail=FALSE, log.p=TRUE) - [1] 0 0 0 0 0 0 NaN 0 0 0 0 0 0 NaN 0 0 0 0 0 -[20] 0 NaN 0 0 0 0 0 0 NaN 0 0 0 0 0 0 NaN -Warning message: -In pbeta(0, c(0.0653, 0.000123, 3.2e-79, 8833, 7.9e+71, 0, -1), : - NaNs produced - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); pbeta(0, c(0.0653, 0.000123, 32e-80, 8833, 79e70, 0, -1), rep(c(0.0653, 0.000123, 32e-80, 8833, 79e70), 7), lower.tail=TRUE, log.p=FALSE) - [1] 0 0 0 0 0 0 NaN 0 0 0 0 0 0 NaN 0 0 0 0 0 -[20] 0 NaN 0 0 0 0 0 0 NaN 0 0 0 0 0 0 NaN -Warning message: -In pbeta(0, c(0.0653, 0.000123, 3.2e-79, 8833, 7.9e+71, 0, -1), : - NaNs produced - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); pbeta(0, c(0.0653, 0.000123, 32e-80, 8833, 79e70, 0, -1), rep(c(0.0653, 0.000123, 32e-80, 8833, 79e70), 7), lower.tail=TRUE, log.p=TRUE) - [1] -Inf -Inf -Inf -Inf -Inf -Inf NaN -Inf -Inf -Inf -Inf -Inf -Inf NaN -Inf -[16] -Inf -Inf -Inf -Inf -Inf NaN -Inf -Inf -Inf -Inf -Inf -Inf NaN -Inf -Inf -[31] -Inf -Inf -Inf -Inf NaN -Warning message: -In pbeta(0, c(0.0653, 0.000123, 3.2e-79, 8833, 7.9e+71, 0, -1), : - NaNs produced - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); pbeta(c(-1, 0, 0.2, 2), c(-1, 0, 0.1, 0.9, 3), rep(c(-1, 0, 1, 0.1, -0.1, 0.0001), 20), lower.tail=FALSE, log.p=FALSE) - [1] NaN 1.0000000 0.1486601 0.0000000 NaN NaN NaN - [8] 0.0000000 1.0000000 1.0000000 NaN 0.0000000 NaN 1.0000000 - [15] 0.9920000 NaN NaN 1.0000000 NaN 0.0000000 NaN - [22] 1.0000000 NaN 0.0000000 NaN NaN 0.0000000 0.0000000 - [29] NaN 1.0000000 NaN 0.0000000 1.0000000 1.0000000 NaN - [36] NaN NaN 1.0000000 0.7650762 0.0000000 NaN 1.0000000 - [43] NaN 0.0000000 1.0000000 NaN NaN 0.0000000 NaN - [50] 1.0000000 NaN 0.0000000 NaN 1.0000000 NaN NaN - [57] 1.0000000 1.0000000 NaN 0.0000000 NaN 1.0000000 0.1486601 - [64] 0.0000000 NaN NaN NaN 0.0000000 1.0000000 1.0000000 - [71] NaN 0.0000000 NaN 1.0000000 0.9920000 NaN NaN - [78] 1.0000000 NaN 0.0000000 NaN 1.0000000 NaN 0.0000000 - [85] NaN NaN 0.0000000 0.0000000 NaN 1.0000000 NaN - [92] 0.0000000 1.0000000 1.0000000 NaN NaN NaN 1.0000000 - [99] 0.7650762 0.0000000 NaN 1.0000000 NaN 0.0000000 1.0000000 -[106] NaN NaN 0.0000000 NaN 1.0000000 NaN 0.0000000 -[113] NaN 1.0000000 NaN NaN 1.0000000 1.0000000 NaN -[120] 0.0000000 -Warning message: -In pbeta(c(-1, 0, 0.2, 2), c(-1, 0, 0.1, 0.9, 3), rep(c(-1, 0, 1, : - NaNs produced - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); pbeta(c(-1, 0, 0.2, 2), c(-1, 0, 0.1, 0.9, 3), rep(c(-1, 0, 1, 0.1, -0.1, 0.0001), 20), lower.tail=FALSE, log.p=TRUE) - [1] NaN 0.000000000 -1.906092939 -Inf NaN - [6] NaN NaN -Inf 0.000000000 0.000000000 - [11] NaN -Inf NaN 0.000000000 -0.008032172 - [16] NaN NaN 0.000000000 NaN -Inf - [21] NaN 0.000000000 NaN -Inf NaN - [26] NaN -Inf -Inf NaN 0.000000000 - [31] NaN -Inf 0.000000000 0.000000000 NaN - [36] NaN NaN 0.000000000 -0.267779827 -Inf - [41] NaN 0.000000000 NaN -Inf 0.000000000 - [46] NaN NaN -Inf NaN 0.000000000 - [51] NaN -Inf NaN 0.000000000 NaN - [56] NaN 0.000000000 0.000000000 NaN -Inf - [61] NaN 0.000000000 -1.906092939 -Inf NaN - [66] NaN NaN -Inf 0.000000000 0.000000000 - [71] NaN -Inf NaN 0.000000000 -0.008032172 - [76] NaN NaN 0.000000000 NaN -Inf - [81] NaN 0.000000000 NaN -Inf NaN - [86] NaN -Inf -Inf NaN 0.000000000 - [91] NaN -Inf 0.000000000 0.000000000 NaN - [96] NaN NaN 0.000000000 -0.267779827 -Inf -[101] NaN 0.000000000 NaN -Inf 0.000000000 -[106] NaN NaN -Inf NaN 0.000000000 -[111] NaN -Inf NaN 0.000000000 NaN -[116] NaN 0.000000000 0.000000000 NaN -Inf -Warning message: -In pbeta(c(-1, 0, 0.2, 2), c(-1, 0, 0.1, 0.9, 3), rep(c(-1, 0, 1, : - NaNs produced - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); pbeta(c(-1, 0, 0.2, 2), c(-1, 0, 0.1, 0.9, 3), rep(c(-1, 0, 1, 0.1, -0.1, 0.0001), 20), lower.tail=TRUE, log.p=FALSE) - [1] NaN 0.0000000 0.8513399 1.0000000 NaN NaN NaN - [8] 1.0000000 0.0000000 0.0000000 NaN 1.0000000 NaN 0.0000000 - [15] 0.0080000 NaN NaN 0.0000000 NaN 1.0000000 NaN - [22] 0.0000000 NaN 1.0000000 NaN NaN 1.0000000 1.0000000 - [29] NaN 0.0000000 NaN 1.0000000 0.0000000 0.0000000 NaN - [36] NaN NaN 0.0000000 0.2349238 1.0000000 NaN 0.0000000 - [43] NaN 1.0000000 0.0000000 NaN NaN 1.0000000 NaN - [50] 0.0000000 NaN 1.0000000 NaN 0.0000000 NaN NaN - [57] 0.0000000 0.0000000 NaN 1.0000000 NaN 0.0000000 0.8513399 - [64] 1.0000000 NaN NaN NaN 1.0000000 0.0000000 0.0000000 - [71] NaN 1.0000000 NaN 0.0000000 0.0080000 NaN NaN - [78] 0.0000000 NaN 1.0000000 NaN 0.0000000 NaN 1.0000000 - [85] NaN NaN 1.0000000 1.0000000 NaN 0.0000000 NaN - [92] 1.0000000 0.0000000 0.0000000 NaN NaN NaN 0.0000000 - [99] 0.2349238 1.0000000 NaN 0.0000000 NaN 1.0000000 0.0000000 -[106] NaN NaN 1.0000000 NaN 0.0000000 NaN 1.0000000 -[113] NaN 0.0000000 NaN NaN 0.0000000 0.0000000 NaN -[120] 1.0000000 -Warning message: -In pbeta(c(-1, 0, 0.2, 2), c(-1, 0, 0.1, 0.9, 3), rep(c(-1, 0, 1, : - NaNs produced - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); pbeta(c(-1, 0, 0.2, 2), c(-1, 0, 0.1, 0.9, 3), rep(c(-1, 0, 1, 0.1, -0.1, 0.0001), 20), lower.tail=TRUE, log.p=TRUE) - [1] NaN -Inf -0.1609438 0.0000000 NaN NaN - [7] NaN 0.0000000 -Inf -Inf NaN 0.0000000 - [13] NaN -Inf -4.8283137 NaN NaN -Inf - [19] NaN 0.0000000 NaN -Inf NaN 0.0000000 - [25] NaN NaN 0.0000000 0.0000000 NaN -Inf - [31] NaN 0.0000000 -Inf -Inf NaN NaN - [37] NaN -Inf -1.4484941 0.0000000 NaN -Inf - [43] NaN 0.0000000 -Inf NaN NaN 0.0000000 - [49] NaN -Inf NaN 0.0000000 NaN -Inf - [55] NaN NaN -Inf -Inf NaN 0.0000000 - [61] NaN -Inf -0.1609438 0.0000000 NaN NaN - [67] NaN 0.0000000 -Inf -Inf NaN 0.0000000 - [73] NaN -Inf -4.8283137 NaN NaN -Inf - [79] NaN 0.0000000 NaN -Inf NaN 0.0000000 - [85] NaN NaN 0.0000000 0.0000000 NaN -Inf - [91] NaN 0.0000000 -Inf -Inf NaN NaN - [97] NaN -Inf -1.4484941 0.0000000 NaN -Inf -[103] NaN 0.0000000 -Inf NaN NaN 0.0000000 -[109] NaN -Inf NaN 0.0000000 NaN -Inf -[115] NaN NaN -Inf -Inf NaN 0.0000000 -Warning message: -In pbeta(c(-1, 0, 0.2, 2), c(-1, 0, 0.1, 0.9, 3), rep(c(-1, 0, 1, : - NaNs produced - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); pbeta(c(NA, 0, NaN, 1/0, -1/0), rep(c(1, 0, 0.1), 5), rep(c(1, 0, 0.1), 5)) - [1] NA 0 NaN 1 0 NA 0 NaN 1 0 NA 0 NaN 1 0 - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); pbeta(rep(c(1, 0, 0.1), 5), c(NA, 0, NaN, 1/0, -1/0), rep(c(1, 0, 0.1), 5)) - [1] NA 0 NaN 1 NaN NA 1 NaN 0 NaN NA 1 NaN 0 NaN +[46] NaN NaN -27.69741491 -6.56384980 -2.51255677 +[51] NaN NaN -17.69741491 -2.32263907 -3.11129493 +[56] NaN NaN -7.69750570 -1.29325421 -2.51255677 Warning message: -In pbeta(rep(c(1, 0, 0.1), 5), c(NA, 0, NaN, 1/0, -1/0), rep(c(1, : +In dlogis(c(-1, 0, 1), c(-1, 0, 0.2, 2:5), rep(c(-1, 0, 0.1, 0.9, : NaNs produced -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); pbeta(rep(c(1, 0, 0.1), 5), rep(c(1, 0, 0.1), 5), c(NA, 0, NaN, 1/0, -1/0)) - [1] NA 0 NaN 1 NaN NA 1 NaN 1 NaN NA 0 NaN 0 NaN -Warning message: -In pbeta(rep(c(1, 0, 0.1), 5), rep(c(1, 0, 0.1), 5), c(NA, 0, NaN, : - NaNs produced +##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions31#Output.IgnoreWhitespace# +#set.seed(1); dlogis(c(NA, NaN, 1/0, -1/0), 2, 2, log=FALSE) +[1] NA NaN 0 0 ##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# #set.seed(1); pbinom(0, 10, 10, lower.tail=FALSE, log.p=FALSE) @@ -116547,203 +117424,6 @@ Warning messages: 2: In pbinom(rep(c(1, 0, 0.1), 5), rep(c(1, 0, 0.1), 5), c(NA, 0, NaN, : NaNs produced -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); pcauchy(0, 10, 10, lower.tail=FALSE, log.p=FALSE) -[1] 0.75 - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); pcauchy(0, 10, 10, lower.tail=FALSE, log.p=TRUE) -[1] -0.2876821 - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); pcauchy(0, 10, 10, lower.tail=TRUE, log.p=FALSE) -[1] 0.25 - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); pcauchy(0, 10, 10, lower.tail=TRUE, log.p=TRUE) -[1] -1.386294 - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); pcauchy(0, c(0.0653, 0.000123, 32e-80, 8833, 79e70, 0, -1), rep(c(0.0653, 0.000123, 32e-80, 8833, 79e70), 7), lower.tail=FALSE, log.p=FALSE) - [1] 7.500000e-01 7.500000e-01 7.500000e-01 7.500000e-01 7.500000e-01 - [6] 5.000000e-01 3.915212e-05 1.000000e+00 5.000000e-01 5.000000e-01 -[11] 9.999976e-01 1.000000e+00 5.000000e-01 4.999640e-01 5.000000e-01 -[16] 5.005996e-01 5.000000e-01 1.000000e+00 1.000000e+00 5.000000e-01 -[21] 2.075617e-02 9.994004e-01 1.000000e+00 5.000000e-01 5.000000e-01 -[26] 1.000000e+00 5.000000e-01 1.018592e-79 5.000024e-01 5.000000e-01 -[31] 5.000000e-01 1.000000e+00 1.000000e+00 5.000000e-01 5.000000e-01 - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); pcauchy(0, c(0.0653, 0.000123, 32e-80, 8833, 79e70, 0, -1), rep(c(0.0653, 0.000123, 32e-80, 8833, 79e70), 7), lower.tail=FALSE, log.p=TRUE) - [1] -2.876821e-01 -2.876821e-01 -2.876821e-01 -2.876821e-01 -2.876821e-01 - [6] -6.931472e-01 -1.014806e+01 -1.559865e-78 -6.931472e-01 -6.931472e-01 -[11] -2.353182e-06 -4.955964e-77 -6.931472e-01 -6.932193e-01 -6.931472e-01 -[16] -6.919488e-01 -6.931472e-01 -1.153166e-83 -3.559027e-69 -6.931472e-01 -[21] -3.874912e+00 -5.997521e-04 -8.281233e-76 -6.931472e-01 -6.931472e-01 -[26] -2.631093e-74 -6.931472e-01 -1.818858e+02 -6.931425e-01 -6.931472e-01 -[31] -6.931472e-01 -4.432482e-09 -1.289357e-151 -6.931472e-01 -6.931472e-01 - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); pcauchy(0, c(0.0653, 0.000123, 32e-80, 8833, 79e70, 0, -1), rep(c(0.0653, 0.000123, 32e-80, 8833, 79e70), 7), lower.tail=TRUE, log.p=FALSE) - [1] 2.500000e-01 2.500000e-01 2.500000e-01 2.500000e-01 2.500000e-01 - [6] 5.000000e-01 9.999608e-01 1.559865e-78 5.000000e-01 5.000000e-01 -[11] 2.353180e-06 4.955964e-77 5.000000e-01 5.000360e-01 5.000000e-01 -[16] 4.994004e-01 5.000000e-01 1.153166e-83 3.559027e-69 5.000000e-01 -[21] 9.792438e-01 5.995723e-04 8.281233e-76 5.000000e-01 5.000000e-01 -[26] 2.631093e-74 5.000000e-01 1.000000e+00 4.999976e-01 5.000000e-01 -[31] 5.000000e-01 4.432482e-09 1.289357e-151 5.000000e-01 5.000000e-01 - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); pcauchy(0, c(0.0653, 0.000123, 32e-80, 8833, 79e70, 0, -1), rep(c(0.0653, 0.000123, 32e-80, 8833, 79e70), 7), lower.tail=TRUE, log.p=TRUE) - [1] -1.386294e+00 -1.386294e+00 -1.386294e+00 -1.386294e+00 -1.386294e+00 - [6] -6.931472e-01 -3.915288e-05 -1.791570e+02 -6.931472e-01 -6.931472e-01 -[11] -1.295974e+01 -1.756985e+02 -6.931472e-01 -6.930751e-01 -6.931472e-01 -[16] -6.943470e-01 -6.931472e-01 -1.909721e+02 -1.576089e+02 -6.931472e-01 -[21] -2.097460e-02 -7.419294e+00 -1.728825e+02 -6.931472e-01 -6.931472e-01 -[26] -1.694239e+02 -6.931472e-01 -1.018592e-79 -6.931519e-01 -6.931472e-01 -[31] -6.931472e-01 -1.923431e+01 -3.474362e+02 -6.931472e-01 -6.931472e-01 - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); pcauchy(c(-1, 0, 0.2, 2), c(-1, 0, 0.1, 0.9, 3), rep(c(-1, 0, 1, 0.1, -0.1, 0.0001), 20), lower.tail=FALSE, log.p=FALSE) - [1] NaN NaN 4.682745e-01 2.885794e-02 NaN - [6] 3.183099e-05 NaN NaN 8.457859e-01 9.893936e-01 - [11] NaN 1.591549e-05 NaN NaN 8.908121e-01 - [16] 1.060640e-02 NaN 9.996817e-01 NaN NaN - [21] 5.000000e-01 5.000000e-01 NaN 2.893726e-05 NaN - [26] NaN 4.371670e-01 1.673771e-02 NaN 9.999894e-01 - [31] NaN NaN 7.651462e-01 9.647767e-01 NaN - [36] 1.061033e-05 NaN NaN 6.944001e-01 9.682745e-01 - [41] NaN 5.000000e-01 NaN NaN 9.220209e-01 - [46] 3.172552e-02 NaN 1.675315e-05 NaN NaN - [51] 2.211421e-01 1.590225e-02 NaN 9.999646e-01 NaN - [56] NaN 7.500000e-01 7.500000e-01 NaN 9.999682e-01 - [61] NaN NaN 4.682745e-01 2.885794e-02 NaN - [66] 3.183099e-05 NaN NaN 8.457859e-01 9.893936e-01 - [71] NaN 1.591549e-05 NaN NaN 8.908121e-01 - [76] 1.060640e-02 NaN 9.996817e-01 NaN NaN - [81] 5.000000e-01 5.000000e-01 NaN 2.893726e-05 NaN - [86] NaN 4.371670e-01 1.673771e-02 NaN 9.999894e-01 - [91] NaN NaN 7.651462e-01 9.647767e-01 NaN - [96] 1.061033e-05 NaN NaN 6.944001e-01 9.682745e-01 -[101] NaN 5.000000e-01 NaN NaN 9.220209e-01 -[106] 3.172552e-02 NaN 1.675315e-05 NaN NaN -[111] 2.211421e-01 1.590225e-02 NaN 9.999646e-01 NaN -[116] NaN 7.500000e-01 7.500000e-01 NaN 9.999682e-01 -Warning message: -In pcauchy(c(-1, 0, 0.2, 2), c(-1, 0, 0.1, 0.9, 3), rep(c(-1, 0, : - NaNs produced - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); pcauchy(c(-1, 0, 0.2, 2), c(-1, 0, 0.1, 0.9, 3), rep(c(-1, 0, 1, 0.1, -0.1, 0.0001), 20), lower.tail=FALSE, log.p=TRUE) - [1] NaN NaN -7.587007e-01 -3.545370e+00 NaN - [6] -1.035507e+01 NaN NaN -1.674890e-01 -1.066305e-02 - [11] NaN -1.104822e+01 NaN NaN -1.156218e-01 - [16] -4.546297e+00 NaN -3.183605e-04 NaN NaN - [21] -6.931472e-01 -6.931472e-01 NaN -1.045038e+01 NaN - [26] NaN -8.274399e-01 -4.090091e+00 NaN -1.061039e-05 - [31] NaN NaN -2.676884e-01 -3.585859e-02 NaN - [36] -1.145368e+01 NaN NaN -3.647070e-01 -3.223968e-02 - [41] NaN -6.931472e-01 NaN NaN -8.118742e-02 - [46] -3.450634e+00 NaN -1.099692e+01 NaN NaN - [51] -1.508950e+00 -4.141295e+00 NaN -3.536839e-05 NaN - [56] NaN -2.876821e-01 -2.876821e-01 NaN -3.183150e-05 - [61] NaN NaN -7.587007e-01 -3.545370e+00 NaN - [66] -1.035507e+01 NaN NaN -1.674890e-01 -1.066305e-02 - [71] NaN -1.104822e+01 NaN NaN -1.156218e-01 - [76] -4.546297e+00 NaN -3.183605e-04 NaN NaN - [81] -6.931472e-01 -6.931472e-01 NaN -1.045038e+01 NaN - [86] NaN -8.274399e-01 -4.090091e+00 NaN -1.061039e-05 - [91] NaN NaN -2.676884e-01 -3.585859e-02 NaN - [96] -1.145368e+01 NaN NaN -3.647070e-01 -3.223968e-02 -[101] NaN -6.931472e-01 NaN NaN -8.118742e-02 -[106] -3.450634e+00 NaN -1.099692e+01 NaN NaN -[111] -1.508950e+00 -4.141295e+00 NaN -3.536839e-05 NaN -[116] NaN -2.876821e-01 -2.876821e-01 NaN -3.183150e-05 -Warning message: -In pcauchy(c(-1, 0, 0.2, 2), c(-1, 0, 0.1, 0.9, 3), rep(c(-1, 0, : - NaNs produced - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); pcauchy(c(-1, 0, 0.2, 2), c(-1, 0, 0.1, 0.9, 3), rep(c(-1, 0, 1, 0.1, -0.1, 0.0001), 20), lower.tail=TRUE, log.p=FALSE) - [1] NaN NaN 5.317255e-01 9.711421e-01 NaN - [6] 9.999682e-01 NaN NaN 1.542141e-01 1.060640e-02 - [11] NaN 9.999841e-01 NaN NaN 1.091879e-01 - [16] 9.893936e-01 NaN 3.183098e-04 NaN NaN - [21] 5.000000e-01 5.000000e-01 NaN 9.999711e-01 NaN - [26] NaN 5.628330e-01 9.832623e-01 NaN 1.061033e-05 - [31] NaN NaN 2.348538e-01 3.522329e-02 NaN - [36] 9.999894e-01 NaN NaN 3.055999e-01 3.172552e-02 - [41] NaN 5.000000e-01 NaN NaN 7.797913e-02 - [46] 9.682745e-01 NaN 9.999832e-01 NaN NaN - [51] 7.788579e-01 9.840977e-01 NaN 3.536776e-05 NaN - [56] NaN 2.500000e-01 2.500000e-01 NaN 3.183099e-05 - [61] NaN NaN 5.317255e-01 9.711421e-01 NaN - [66] 9.999682e-01 NaN NaN 1.542141e-01 1.060640e-02 - [71] NaN 9.999841e-01 NaN NaN 1.091879e-01 - [76] 9.893936e-01 NaN 3.183098e-04 NaN NaN - [81] 5.000000e-01 5.000000e-01 NaN 9.999711e-01 NaN - [86] NaN 5.628330e-01 9.832623e-01 NaN 1.061033e-05 - [91] NaN NaN 2.348538e-01 3.522329e-02 NaN - [96] 9.999894e-01 NaN NaN 3.055999e-01 3.172552e-02 -[101] NaN 5.000000e-01 NaN NaN 7.797913e-02 -[106] 9.682745e-01 NaN 9.999832e-01 NaN NaN -[111] 7.788579e-01 9.840977e-01 NaN 3.536776e-05 NaN -[116] NaN 2.500000e-01 2.500000e-01 NaN 3.183099e-05 -Warning message: -In pcauchy(c(-1, 0, 0.2, 2), c(-1, 0, 0.1, 0.9, 3), rep(c(-1, 0, : - NaNs produced - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); pcauchy(c(-1, 0, 0.2, 2), c(-1, 0, 0.1, 0.9, 3), rep(c(-1, 0, 1, 0.1, -0.1, 0.0001), 20), lower.tail=TRUE, log.p=TRUE) - [1] NaN NaN -6.316279e-01 -2.928252e-02 NaN - [6] -3.183150e-05 NaN NaN -1.869413e+00 -4.546297e+00 - [11] NaN -1.591562e-05 NaN NaN -2.214685e+00 - [16] -1.066305e-02 NaN -8.052485e+00 NaN NaN - [21] -6.931472e-01 -6.931472e-01 NaN -2.893768e-05 NaN - [26] NaN -5.747724e-01 -1.687937e-02 NaN -1.145368e+01 - [31] NaN NaN -1.448792e+00 -3.346048e+00 NaN - [36] -1.061039e-05 NaN NaN -1.185479e+00 -3.450634e+00 - [41] NaN -6.931472e-01 NaN NaN -2.551314e+00 - [46] -3.223968e-02 NaN -1.675329e-05 NaN NaN - [51] -2.499266e-01 -1.603005e-02 NaN -1.024971e+01 NaN - [56] NaN -1.386294e+00 -1.386294e+00 NaN -1.035507e+01 - [61] NaN NaN -6.316279e-01 -2.928252e-02 NaN - [66] -3.183150e-05 NaN NaN -1.869413e+00 -4.546297e+00 - [71] NaN -1.591562e-05 NaN NaN -2.214685e+00 - [76] -1.066305e-02 NaN -8.052485e+00 NaN NaN - [81] -6.931472e-01 -6.931472e-01 NaN -2.893768e-05 NaN - [86] NaN -5.747724e-01 -1.687937e-02 NaN -1.145368e+01 - [91] NaN NaN -1.448792e+00 -3.346048e+00 NaN - [96] -1.061039e-05 NaN NaN -1.185479e+00 -3.450634e+00 -[101] NaN -6.931472e-01 NaN NaN -2.551314e+00 -[106] -3.223968e-02 NaN -1.675329e-05 NaN NaN -[111] -2.499266e-01 -1.603005e-02 NaN -1.024971e+01 NaN -[116] NaN -1.386294e+00 -1.386294e+00 NaN -1.035507e+01 -Warning message: -In pcauchy(c(-1, 0, 0.2, 2), c(-1, 0, 0.1, 0.9, 3), rep(c(-1, 0, : - NaNs produced - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); pcauchy(c(NA, 0, NaN, 1/0, -1/0), rep(c(1, 0, 0.1), 5), rep(c(1, 0, 0.1), 5)) - [1] NA NaN NaN 1.00 NaN NA 0.25 NaN 1.00 0.00 NA 0.25 NaN NaN 0.00 -Warning message: -In pcauchy(c(NA, 0, NaN, 1/0, -1/0), rep(c(1, 0, 0.1), 5), rep(c(1, : - NaNs produced - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); pcauchy(rep(c(1, 0, 0.1), 5), c(NA, 0, NaN, 1/0, -1/0), rep(c(1, 0, 0.1), 5)) - [1] NA NaN NaN 0.00 NaN NA 0.75 NaN 0.00 1.00 NA 0.75 NaN NaN 1.00 -Warning message: -In pcauchy(rep(c(1, 0, 0.1), 5), c(NA, 0, NaN, 1/0, -1/0), rep(c(1, : - NaNs produced - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); pcauchy(rep(c(1, 0, 0.1), 5), rep(c(1, 0, 0.1), 5), c(NA, 0, NaN, 1/0, -1/0)) - [1] NA NaN NaN 0.5 NaN NA NaN NaN 0.5 NaN NA NaN NaN 0.5 NaN -Warning message: -In pcauchy(rep(c(1, 0, 0.1), 5), rep(c(1, 0, 0.1), 5), c(NA, 0, : - NaNs produced - ##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# #set.seed(1); pf(0, 10, 10, lower.tail=FALSE, log.p=FALSE) [1] 1 @@ -117228,640 +117908,76 @@ In plogis(c(-1, 0, 0.2, 2), c(-1, 0, 0.1, 0.9, 3), rep(c(-1, 0, : [41] NaN 5.000000e-01 NaN NaN 1.798621e-02 [46] 9.999546e-01 NaN 1.000000e+00 NaN NaN [51] 7.685248e-01 1.000000e+00 NaN 0.000000e+00 NaN - [56] NaN 2.689414e-01 2.689414e-01 NaN 0.000000e+00 - [61] NaN NaN 5.249792e-01 9.999833e-01 NaN - [66] 1.000000e+00 NaN NaN 1.301085e-01 9.357623e-14 - [71] NaN 1.000000e+00 NaN NaN 5.732418e-02 - [76] 1.000000e+00 NaN 0.000000e+00 NaN NaN - [81] 5.000000e-01 5.000000e-01 NaN 1.000000e+00 NaN - [86] NaN 5.498340e-01 1.000000e+00 NaN 0.000000e+00 - [91] NaN NaN 2.497399e-01 1.233946e-04 NaN - [96] 1.000000e+00 NaN NaN 3.318122e-01 4.539787e-05 -[101] NaN 5.000000e-01 NaN NaN 1.798621e-02 -[106] 9.999546e-01 NaN 1.000000e+00 NaN NaN -[111] 7.685248e-01 1.000000e+00 NaN 0.000000e+00 NaN -[116] NaN 2.689414e-01 2.689414e-01 NaN 0.000000e+00 -Warning message: -In plogis(c(-1, 0, 0.2, 2), c(-1, 0, 0.1, 0.9, 3), rep(c(-1, 0, : - NaNs produced - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); plogis(c(-1, 0, 0.2, 2), c(-1, 0, 0.1, 0.9, 3), rep(c(-1, 0, 1, 0.1, -0.1, 0.0001), 20), lower.tail=TRUE, log.p=TRUE) - [1] NaN NaN -6.443967e-01 -1.670156e-05 NaN - [6] 0.000000e+00 NaN NaN -2.039387e+00 -3.000000e+01 - [11] NaN 0.000000e+00 NaN NaN -2.859033e+00 - [16] -9.357623e-14 NaN -1.000000e+03 NaN NaN - [21] -6.931472e-01 -6.931472e-01 NaN 0.000000e+00 NaN - [26] NaN -5.981389e-01 -5.602796e-09 NaN -3.000000e+04 - [31] NaN NaN -1.387335e+00 -9.000123e+00 NaN - [36] 0.000000e+00 NaN NaN -1.103186e+00 -1.000005e+01 - [41] NaN -6.931472e-01 NaN NaN -4.018150e+00 - [46] -4.539890e-05 NaN 0.000000e+00 NaN NaN - [51] -2.632825e-01 -2.061154e-09 NaN -9.000000e+03 NaN - [56] NaN -1.313262e+00 -1.313262e+00 NaN -1.000000e+04 - [61] NaN NaN -6.443967e-01 -1.670156e-05 NaN - [66] 0.000000e+00 NaN NaN -2.039387e+00 -3.000000e+01 - [71] NaN 0.000000e+00 NaN NaN -2.859033e+00 - [76] -9.357623e-14 NaN -1.000000e+03 NaN NaN - [81] -6.931472e-01 -6.931472e-01 NaN 0.000000e+00 NaN - [86] NaN -5.981389e-01 -5.602796e-09 NaN -3.000000e+04 - [91] NaN NaN -1.387335e+00 -9.000123e+00 NaN - [96] 0.000000e+00 NaN NaN -1.103186e+00 -1.000005e+01 -[101] NaN -6.931472e-01 NaN NaN -4.018150e+00 -[106] -4.539890e-05 NaN 0.000000e+00 NaN NaN -[111] -2.632825e-01 -2.061154e-09 NaN -9.000000e+03 NaN -[116] NaN -1.313262e+00 -1.313262e+00 NaN -1.000000e+04 -Warning message: -In plogis(c(-1, 0, 0.2, 2), c(-1, 0, 0.1, 0.9, 3), rep(c(-1, 0, : - NaNs produced - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); plogis(c(NA, 0, NaN, 1/0, -1/0), rep(c(1, 0, 0.1), 5), rep(c(1, 0, 0.1), 5)) - [1] NA NaN NaN 1.0000000 NaN NA 0.2689414 - [8] NaN 1.0000000 0.0000000 NA 0.2689414 NaN NaN -[15] 0.0000000 -Warning message: -In plogis(c(NA, 0, NaN, 1/0, -1/0), rep(c(1, 0, 0.1), 5), rep(c(1, : - NaNs produced - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); plogis(rep(c(1, 0, 0.1), 5), c(NA, 0, NaN, 1/0, -1/0), rep(c(1, 0, 0.1), 5)) - [1] NA NaN NaN 0.0000000 NaN NA 0.7310586 - [8] NaN 0.0000000 1.0000000 NA 0.7310586 NaN NaN -[15] 1.0000000 -Warning message: -In plogis(rep(c(1, 0, 0.1), 5), c(NA, 0, NaN, 1/0, -1/0), rep(c(1, : - NaNs produced - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); plogis(rep(c(1, 0, 0.1), 5), rep(c(1, 0, 0.1), 5), c(NA, 0, NaN, 1/0, -1/0)) - [1] NA NaN NaN 0.5 NaN NA NaN NaN 0.5 NaN NA NaN NaN 0.5 NaN -Warning message: -In plogis(rep(c(1, 0, 0.1), 5), rep(c(1, 0, 0.1), 5), c(NA, 0, NaN, : - NaNs produced - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); pnorm(0, 10, 10, lower.tail=FALSE, log.p=FALSE) -[1] 0.8413447 - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); pnorm(0, 10, 10, lower.tail=FALSE, log.p=TRUE) -[1] -0.1727538 - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); pnorm(0, 10, 10, lower.tail=TRUE, log.p=FALSE) -[1] 0.1586553 - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); pnorm(0, 10, 10, lower.tail=TRUE, log.p=TRUE) -[1] -1.841022 - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); pnorm(0, c(0.0653, 0.000123, 32e-80, 8833, 79e70, 0, -1), rep(c(0.0653, 0.000123, 32e-80, 8833, 79e70), 7), lower.tail=FALSE, log.p=FALSE) - [1] 8.413447e-01 8.413447e-01 8.413447e-01 8.413447e-01 8.413447e-01 - [6] 5.000000e-01 0.000000e+00 1.000000e+00 5.000000e-01 5.000000e-01 -[11] 1.000000e+00 1.000000e+00 5.000000e-01 4.999548e-01 5.000000e-01 -[16] 5.007515e-01 5.000000e-01 1.000000e+00 1.000000e+00 5.000000e-01 -[21] 3.085691e-53 1.000000e+00 1.000000e+00 5.000000e-01 5.000000e-01 -[26] 1.000000e+00 5.000000e-01 0.000000e+00 5.000029e-01 5.000000e-01 -[31] 5.000000e-01 1.000000e+00 1.000000e+00 5.000000e-01 5.000000e-01 - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); pnorm(0, c(0.0653, 0.000123, 32e-80, 8833, 79e70, 0, -1), rep(c(0.0653, 0.000123, 32e-80, 8833, 79e70), 7), lower.tail=FALSE, log.p=TRUE) - [1] -1.727538e-01 -1.727538e-01 -1.727538e-01 -1.727538e-01 -1.727538e-01 - [6] -6.931472e-01 -3.304912e+07 0.000000e+00 -6.931472e-01 -6.931472e-01 -[11] 0.000000e+00 0.000000e+00 -6.931472e-01 -6.932375e-01 -6.931472e-01 -[16] -6.916454e-01 -6.931472e-01 0.000000e+00 0.000000e+00 -6.931472e-01 -[21] -1.209102e+02 0.000000e+00 0.000000e+00 -6.931472e-01 -6.931472e-01 -[26] 0.000000e+00 -6.931472e-01 -4.882813e+156 -6.931413e-01 -6.931472e-01 -[31] -6.931472e-01 0.000000e+00 0.000000e+00 -6.931472e-01 -6.931472e-01 - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); pnorm(0, c(0.0653, 0.000123, 32e-80, 8833, 79e70, 0, -1), rep(c(0.0653, 0.000123, 32e-80, 8833, 79e70), 7), lower.tail=TRUE, log.p=FALSE) - [1] 0.1586553 0.1586553 0.1586553 0.1586553 0.1586553 0.5000000 1.0000000 - [8] 0.0000000 0.5000000 0.5000000 0.0000000 0.0000000 0.5000000 0.5000452 -[15] 0.5000000 0.4992485 0.5000000 0.0000000 0.0000000 0.5000000 1.0000000 -[22] 0.0000000 0.0000000 0.5000000 0.5000000 0.0000000 0.5000000 1.0000000 -[29] 0.4999971 0.5000000 0.5000000 0.0000000 0.0000000 0.5000000 0.5000000 - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); pnorm(0, c(0.0653, 0.000123, 32e-80, 8833, 79e70, 0, -1), rep(c(0.0653, 0.000123, 32e-80, 8833, 79e70), 7), lower.tail=TRUE, log.p=TRUE) - [1] -1.841022e+00 -1.841022e+00 -1.841022e+00 -1.841022e+00 -1.841022e+00 - [6] -6.931472e-01 0.000000e+00 -2.082075e+154 -6.931472e-01 -6.931472e-01 -[11] -9.148715e+09 -2.062595e+151 -6.931472e-01 -6.930569e-01 -6.931472e-01 -[16] -6.946512e-01 -6.931472e-01 -3.809663e+164 -3.999519e+135 -6.931472e-01 -[21] -3.085691e-53 -1.409316e+05 -7.387207e+148 -6.931472e-01 -6.931472e-01 -[26] -7.318091e+145 -6.931472e-01 0.000000e+00 -6.931531e-01 -6.931472e-01 -[31] -6.931472e-01 -2.578554e+15 -3.047363e+300 -6.931472e-01 -6.931472e-01 - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); pnorm(c(-1, 0, 0.2, 2), c(-1, 0, 0.1, 0.9, 3), rep(c(-1, 0, 1, 0.1, -0.1, 0.0001), 20), lower.tail=FALSE, log.p=FALSE) - [1] NaN 0.000000e+00 4.601722e-01 1.910660e-28 NaN - [6] 0.000000e+00 NaN 0.000000e+00 9.712834e-01 1.000000e+00 - [11] NaN 0.000000e+00 NaN 1.000000e+00 9.974449e-01 - [16] 4.906714e-198 NaN 1.000000e+00 NaN 1.000000e+00 - [21] 5.000000e-01 5.000000e-01 NaN 0.000000e+00 NaN - [26] 0.000000e+00 4.207403e-01 8.527224e-81 NaN 1.000000e+00 - [31] NaN 0.000000e+00 8.643339e-01 1.000000e+00 NaN - [36] 0.000000e+00 NaN 1.000000e+00 7.580363e-01 1.000000e+00 - [41] NaN 5.000000e-01 NaN 0.000000e+00 9.999683e-01 - [46] 7.619853e-24 NaN 0.000000e+00 NaN 1.000000e+00 - [51] 1.150697e-01 2.753624e-89 NaN 1.000000e+00 NaN - [56] 0.000000e+00 8.413447e-01 8.413447e-01 NaN 1.000000e+00 - [61] NaN 0.000000e+00 4.601722e-01 1.910660e-28 NaN - [66] 0.000000e+00 NaN 0.000000e+00 9.712834e-01 1.000000e+00 - [71] NaN 0.000000e+00 NaN 1.000000e+00 9.974449e-01 - [76] 4.906714e-198 NaN 1.000000e+00 NaN 1.000000e+00 - [81] 5.000000e-01 5.000000e-01 NaN 0.000000e+00 NaN - [86] 0.000000e+00 4.207403e-01 8.527224e-81 NaN 1.000000e+00 - [91] NaN 0.000000e+00 8.643339e-01 1.000000e+00 NaN - [96] 0.000000e+00 NaN 1.000000e+00 7.580363e-01 1.000000e+00 -[101] NaN 5.000000e-01 NaN 0.000000e+00 9.999683e-01 -[106] 7.619853e-24 NaN 0.000000e+00 NaN 1.000000e+00 -[111] 1.150697e-01 2.753624e-89 NaN 1.000000e+00 NaN -[116] 0.000000e+00 8.413447e-01 8.413447e-01 NaN 1.000000e+00 -Warning message: -In pnorm(c(-1, 0, 0.2, 2), c(-1, 0, 0.1, 0.9, 3), rep(c(-1, 0, 1, : - NaNs produced - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); pnorm(c(-1, 0, 0.2, 2), c(-1, 0, 0.1, 0.9, 3), rep(c(-1, 0, 1, 0.1, -0.1, 0.0001), 20), lower.tail=FALSE, log.p=TRUE) - [1] NaN -Inf -7.761546e-01 -6.382493e+01 NaN - [6] -5.000001e+07 NaN -Inf -2.913695e-02 -4.906714e-198 - [11] NaN -2.000000e+08 NaN 0.000000e+00 -2.558400e-03 - [16] -4.543212e+02 NaN 0.000000e+00 NaN 0.000000e+00 - [21] -6.931472e-01 -6.931472e-01 NaN -6.050001e+07 NaN - [26] -Inf -8.657395e-01 -1.843661e+02 NaN 0.000000e+00 - [31] NaN -Inf -1.457961e-01 -1.128588e-19 NaN - [36] -4.500000e+08 NaN 0.000000e+00 -2.770239e-01 -7.619853e-24 - [41] NaN -6.931472e-01 NaN -Inf -3.167174e-05 - [46] -5.323129e+01 NaN -1.805000e+08 NaN 0.000000e+00 - [51] -2.162218e+00 -2.039172e+02 NaN 0.000000e+00 NaN - [56] -Inf -1.727538e-01 -1.727538e-01 NaN 0.000000e+00 - [61] NaN -Inf -7.761546e-01 -6.382493e+01 NaN - [66] -5.000001e+07 NaN -Inf -2.913695e-02 -4.906714e-198 - [71] NaN -2.000000e+08 NaN 0.000000e+00 -2.558400e-03 - [76] -4.543212e+02 NaN 0.000000e+00 NaN 0.000000e+00 - [81] -6.931472e-01 -6.931472e-01 NaN -6.050001e+07 NaN - [86] -Inf -8.657395e-01 -1.843661e+02 NaN 0.000000e+00 - [91] NaN -Inf -1.457961e-01 -1.128588e-19 NaN - [96] -4.500000e+08 NaN 0.000000e+00 -2.770239e-01 -7.619853e-24 -[101] NaN -6.931472e-01 NaN -Inf -3.167174e-05 -[106] -5.323129e+01 NaN -1.805000e+08 NaN 0.000000e+00 -[111] -2.162218e+00 -2.039172e+02 NaN 0.000000e+00 NaN -[116] -Inf -1.727538e-01 -1.727538e-01 NaN 0.000000e+00 -Warning message: -In pnorm(c(-1, 0, 0.2, 2), c(-1, 0, 0.1, 0.9, 3), rep(c(-1, 0, 1, : - NaNs produced - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); pnorm(c(-1, 0, 0.2, 2), c(-1, 0, 0.1, 0.9, 3), rep(c(-1, 0, 1, 0.1, -0.1, 0.0001), 20), lower.tail=TRUE, log.p=FALSE) - [1] NaN 1.000000e+00 5.398278e-01 1.000000e+00 NaN - [6] 1.000000e+00 NaN 1.000000e+00 2.871656e-02 4.906714e-198 - [11] NaN 1.000000e+00 NaN 0.000000e+00 2.555130e-03 - [16] 1.000000e+00 NaN 0.000000e+00 NaN 0.000000e+00 - [21] 5.000000e-01 5.000000e-01 NaN 1.000000e+00 NaN - [26] 1.000000e+00 5.792597e-01 1.000000e+00 NaN 0.000000e+00 - [31] NaN 1.000000e+00 1.356661e-01 1.128588e-19 NaN - [36] 1.000000e+00 NaN 0.000000e+00 2.419637e-01 7.619853e-24 - [41] NaN 5.000000e-01 NaN 1.000000e+00 3.167124e-05 - [46] 1.000000e+00 NaN 1.000000e+00 NaN 0.000000e+00 - [51] 8.849303e-01 1.000000e+00 NaN 0.000000e+00 NaN - [56] 1.000000e+00 1.586553e-01 1.586553e-01 NaN 0.000000e+00 - [61] NaN 1.000000e+00 5.398278e-01 1.000000e+00 NaN - [66] 1.000000e+00 NaN 1.000000e+00 2.871656e-02 4.906714e-198 - [71] NaN 1.000000e+00 NaN 0.000000e+00 2.555130e-03 - [76] 1.000000e+00 NaN 0.000000e+00 NaN 0.000000e+00 - [81] 5.000000e-01 5.000000e-01 NaN 1.000000e+00 NaN - [86] 1.000000e+00 5.792597e-01 1.000000e+00 NaN 0.000000e+00 - [91] NaN 1.000000e+00 1.356661e-01 1.128588e-19 NaN - [96] 1.000000e+00 NaN 0.000000e+00 2.419637e-01 7.619853e-24 -[101] NaN 5.000000e-01 NaN 1.000000e+00 3.167124e-05 -[106] 1.000000e+00 NaN 1.000000e+00 NaN 0.000000e+00 -[111] 8.849303e-01 1.000000e+00 NaN 0.000000e+00 NaN -[116] 1.000000e+00 1.586553e-01 1.586553e-01 NaN 0.000000e+00 -Warning message: -In pnorm(c(-1, 0, 0.2, 2), c(-1, 0, 0.1, 0.9, 3), rep(c(-1, 0, 1, : - NaNs produced - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); pnorm(c(-1, 0, 0.2, 2), c(-1, 0, 0.1, 0.9, 3), rep(c(-1, 0, 1, 0.1, -0.1, 0.0001), 20), lower.tail=TRUE, log.p=TRUE) - [1] NaN 0.000000e+00 -6.165050e-01 -1.910660e-28 NaN - [6] 0.000000e+00 NaN 0.000000e+00 -3.550281e+00 -4.543212e+02 - [11] NaN 0.000000e+00 NaN -Inf -5.969652e+00 - [16] -4.906714e-198 NaN -5.000078e+05 NaN -Inf - [21] -6.931472e-01 -6.931472e-01 NaN 0.000000e+00 NaN - [26] 0.000000e+00 -5.460044e-01 -8.527224e-81 NaN -4.500000e+08 - [31] NaN 0.000000e+00 -1.997559e+00 -4.362815e+01 NaN - [36] 0.000000e+00 NaN -Inf -1.418968e+00 -5.323129e+01 - [41] NaN -6.931472e-01 NaN 0.000000e+00 -1.036010e+01 - [46] -7.619853e-24 NaN 0.000000e+00 NaN -Inf - [51] -1.222464e-01 -2.753624e-89 NaN -4.050001e+07 NaN - [56] 0.000000e+00 -1.841022e+00 -1.841022e+00 NaN -5.000001e+07 - [61] NaN 0.000000e+00 -6.165050e-01 -1.910660e-28 NaN - [66] 0.000000e+00 NaN 0.000000e+00 -3.550281e+00 -4.543212e+02 - [71] NaN 0.000000e+00 NaN -Inf -5.969652e+00 - [76] -4.906714e-198 NaN -5.000078e+05 NaN -Inf - [81] -6.931472e-01 -6.931472e-01 NaN 0.000000e+00 NaN - [86] 0.000000e+00 -5.460044e-01 -8.527224e-81 NaN -4.500000e+08 - [91] NaN 0.000000e+00 -1.997559e+00 -4.362815e+01 NaN - [96] 0.000000e+00 NaN -Inf -1.418968e+00 -5.323129e+01 -[101] NaN -6.931472e-01 NaN 0.000000e+00 -1.036010e+01 -[106] -7.619853e-24 NaN 0.000000e+00 NaN -Inf -[111] -1.222464e-01 -2.753624e-89 NaN -4.050001e+07 NaN -[116] 0.000000e+00 -1.841022e+00 -1.841022e+00 NaN -5.000001e+07 -Warning message: -In pnorm(c(-1, 0, 0.2, 2), c(-1, 0, 0.1, 0.9, 3), rep(c(-1, 0, 1, : - NaNs produced - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); pnorm(c(NA, 0, NaN, 1/0, -1/0), rep(c(1, 0, 0.1), 5), rep(c(1, 0, 0.1), 5)) - [1] NA 1.0000000 NaN 1.0000000 0.0000000 NA 0.1586553 - [8] NaN 1.0000000 0.0000000 NA 0.1586553 NaN 1.0000000 -[15] 0.0000000 - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); pnorm(rep(c(1, 0, 0.1), 5), c(NA, 0, NaN, 1/0, -1/0), rep(c(1, 0, 0.1), 5)) - [1] NA 1.0000000 NaN 0.0000000 1.0000000 NA 0.8413447 - [8] NaN 0.0000000 1.0000000 NA 0.8413447 NaN 0.0000000 -[15] 1.0000000 - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); pnorm(rep(c(1, 0, 0.1), 5), rep(c(1, 0, 0.1), 5), c(NA, 0, NaN, 1/0, -1/0)) - [1] NA 1.0 NaN 0.5 NaN NA 1.0 NaN 0.5 NaN NA 1.0 NaN 0.5 NaN -Warning message: -In pnorm(rep(c(1, 0, 0.1), 5), rep(c(1, 0, 0.1), 5), c(NA, 0, NaN, : - NaNs produced - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); punif(0, 10, 10, lower.tail=FALSE, log.p=FALSE) -[1] 1 - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); punif(0, 10, 10, lower.tail=FALSE, log.p=TRUE) -[1] 0 - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); punif(0, 10, 10, lower.tail=TRUE, log.p=FALSE) -[1] 0 - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); punif(0, 10, 10, lower.tail=TRUE, log.p=TRUE) -[1] -Inf - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); punif(0, c(0.0653, 0.000123, 32e-80, 8833, 79e70, 0, -1), rep(c(0.0653, 0.000123, 32e-80, 8833, 79e70), 7), lower.tail=FALSE, log.p=FALSE) - [1] 1.000000e+00 1.000000e+00 1.000000e+00 1.000000e+00 1.000000e+00 - [6] 1.000000e+00 1.229849e-04 NaN 1.000000e+00 1.000000e+00 -[11] NaN NaN 1.000000e+00 9.998868e-01 1.000000e+00 -[16] 1.000000e+00 1.000000e+00 NaN NaN 1.000000e+00 -[21] 6.129729e-02 NaN NaN 1.000000e+00 1.000000e+00 -[26] NaN 1.000000e+00 3.200000e-79 1.000000e+00 1.000000e+00 -[31] 1.000000e+00 NaN NaN 1.000000e+00 1.000000e+00 -Warning message: -In punif(0, c(0.0653, 0.000123, 3.2e-79, 8833, 7.9e+71, 0, -1), : - NaNs produced - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); punif(0, c(0.0653, 0.000123, 32e-80, 8833, 79e70, 0, -1), rep(c(0.0653, 0.000123, 32e-80, 8833, 79e70), 7), lower.tail=FALSE, log.p=TRUE) - [1] 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 - [6] 0.000000e+00 -9.003449e+00 NaN 0.000000e+00 0.000000e+00 -[11] NaN NaN 0.000000e+00 -1.132054e-04 0.000000e+00 -[16] 0.000000e+00 0.000000e+00 NaN NaN 0.000000e+00 -[21] -2.792020e+00 NaN NaN 0.000000e+00 0.000000e+00 -[26] NaN 0.000000e+00 -1.807411e+02 0.000000e+00 0.000000e+00 -[31] 0.000000e+00 NaN NaN 0.000000e+00 0.000000e+00 -Warning message: -In punif(0, c(0.0653, 0.000123, 3.2e-79, 8833, 7.9e+71, 0, -1), : - NaNs produced - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); punif(0, c(0.0653, 0.000123, 32e-80, 8833, 79e70, 0, -1), rep(c(0.0653, 0.000123, 32e-80, 8833, 79e70), 7), lower.tail=TRUE, log.p=FALSE) - [1] 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 - [6] 0.000000e+00 9.998770e-01 NaN 0.000000e+00 0.000000e+00 -[11] NaN NaN 0.000000e+00 1.131990e-04 0.000000e+00 -[16] 0.000000e+00 0.000000e+00 NaN NaN 0.000000e+00 -[21] 9.387027e-01 NaN NaN 0.000000e+00 0.000000e+00 -[26] NaN 0.000000e+00 1.000000e+00 0.000000e+00 0.000000e+00 -[31] 0.000000e+00 NaN NaN 0.000000e+00 1.265823e-72 -Warning message: -In punif(0, c(0.0653, 0.000123, 3.2e-79, 8833, 7.9e+71, 0, -1), : - NaNs produced - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); punif(0, c(0.0653, 0.000123, 32e-80, 8833, 79e70, 0, -1), rep(c(0.0653, 0.000123, 32e-80, 8833, 79e70), 7), lower.tail=TRUE, log.p=TRUE) - [1] -Inf -Inf -Inf -Inf -Inf - [6] -Inf -1.229924e-04 NaN -Inf -Inf -[11] NaN NaN -Inf -9.086363e+00 -Inf -[16] -Inf -Inf NaN NaN -Inf -[21] -6.325645e-02 NaN NaN -Inf -Inf -[26] NaN -Inf 0.000000e+00 -Inf -Inf -[31] -Inf NaN NaN -Inf -1.655504e+02 -Warning message: -In punif(0, c(0.0653, 0.000123, 3.2e-79, 8833, 7.9e+71, 0, -1), : - NaNs produced - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); punif(c(-1, 0, 0.2, 2), c(-1, 0, 0.1, 0.9, 3), rep(c(-1, 0, 1, 0.1, -0.1, 0.0001), 20), lower.tail=FALSE, log.p=FALSE) - [1] 0.00000000 0.00000000 0.88888889 NaN NaN 0.00009999 - [7] NaN NaN 1.00000000 NaN 0.00000000 0.00000000 - [13] NaN NaN NaN 0.00000000 NaN NaN - [19] NaN NaN 1.00000000 1.00000000 NaN NaN - [25] NaN 0.00000000 0.80000000 0.00000000 NaN NaN - [31] 0.00000000 0.00000000 1.00000000 NaN NaN 0.00000000 - [37] NaN NaN 1.00000000 NaN 1.00000000 1.00000000 - [43] NaN NaN NaN 0.09090909 NaN NaN - [49] NaN NaN 0.40000000 0.00000000 NaN NaN - [55] NaN 0.00000000 1.00000000 1.00000000 NaN NaN - [61] 0.00000000 0.00000000 0.88888889 NaN NaN 0.00009999 - [67] NaN NaN 1.00000000 NaN 0.00000000 0.00000000 - [73] NaN NaN NaN 0.00000000 NaN NaN - [79] NaN NaN 1.00000000 1.00000000 NaN NaN - [85] NaN 0.00000000 0.80000000 0.00000000 NaN NaN - [91] 0.00000000 0.00000000 1.00000000 NaN NaN 0.00000000 - [97] NaN NaN 1.00000000 NaN 1.00000000 1.00000000 -[103] NaN NaN NaN 0.09090909 NaN NaN -[109] NaN NaN 0.40000000 0.00000000 NaN NaN -[115] NaN 0.00000000 1.00000000 1.00000000 NaN NaN -Warning message: -In punif(c(-1, 0, 0.2, 2), c(-1, 0, 0.1, 0.9, 3), rep(c(-1, 0, 1, : - NaNs produced - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); punif(c(-1, 0, 0.2, 2), c(-1, 0, 0.1, 0.9, 3), rep(c(-1, 0, 1, 0.1, -0.1, 0.0001), 20), lower.tail=FALSE, log.p=TRUE) - [1] -Inf -Inf -0.1177830 NaN NaN -9.2104404 - [7] NaN NaN 0.0000000 NaN -Inf -Inf - [13] NaN NaN NaN -Inf NaN NaN - [19] NaN NaN 0.0000000 0.0000000 NaN NaN - [25] NaN -Inf -0.2231436 -Inf NaN NaN - [31] -Inf -Inf 0.0000000 NaN NaN -Inf - [37] NaN NaN 0.0000000 NaN 0.0000000 0.0000000 - [43] NaN NaN NaN -2.3978953 NaN NaN - [49] NaN NaN -0.9162907 -Inf NaN NaN - [55] NaN -Inf 0.0000000 0.0000000 NaN NaN - [61] -Inf -Inf -0.1177830 NaN NaN -9.2104404 - [67] NaN NaN 0.0000000 NaN -Inf -Inf - [73] NaN NaN NaN -Inf NaN NaN - [79] NaN NaN 0.0000000 0.0000000 NaN NaN - [85] NaN -Inf -0.2231436 -Inf NaN NaN - [91] -Inf -Inf 0.0000000 NaN NaN -Inf - [97] NaN NaN 0.0000000 NaN 0.0000000 0.0000000 -[103] NaN NaN NaN -2.3978953 NaN NaN -[109] NaN NaN -0.9162907 -Inf NaN NaN -[115] NaN -Inf 0.0000000 0.0000000 NaN NaN -Warning message: -In punif(c(-1, 0, 0.2, 2), c(-1, 0, 0.1, 0.9, 3), rep(c(-1, 0, 1, : - NaNs produced - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); punif(c(-1, 0, 0.2, 2), c(-1, 0, 0.1, 0.9, 3), rep(c(-1, 0, 1, 0.1, -0.1, 0.0001), 20), lower.tail=TRUE, log.p=FALSE) - [1] 1.0000000 1.0000000 0.1111111 NaN NaN 0.9999000 NaN - [8] NaN 0.0000000 NaN 1.0000000 1.0000000 NaN NaN - [15] NaN 1.0000000 NaN NaN NaN NaN 0.0000000 - [22] 0.0000000 NaN NaN NaN 1.0000000 0.2000000 1.0000000 - [29] NaN NaN 1.0000000 1.0000000 0.0000000 NaN NaN - [36] 1.0000000 NaN NaN 0.0000000 NaN 0.0000000 0.0000000 - [43] NaN NaN NaN 0.9090909 NaN NaN NaN - [50] NaN 0.6000000 1.0000000 NaN NaN NaN 1.0000000 - [57] 0.0000000 0.0000000 NaN NaN 1.0000000 1.0000000 0.1111111 - [64] NaN NaN 0.9999000 NaN NaN 0.0000000 NaN - [71] 1.0000000 1.0000000 NaN NaN NaN 1.0000000 NaN - [78] NaN NaN NaN 0.0000000 0.0000000 NaN NaN - [85] NaN 1.0000000 0.2000000 1.0000000 NaN NaN 1.0000000 - [92] 1.0000000 0.0000000 NaN NaN 1.0000000 NaN NaN - [99] 0.0000000 NaN 0.0000000 0.0000000 NaN NaN NaN -[106] 0.9090909 NaN NaN NaN NaN 0.6000000 1.0000000 -[113] NaN NaN NaN 1.0000000 0.0000000 0.0000000 NaN -[120] NaN -Warning message: -In punif(c(-1, 0, 0.2, 2), c(-1, 0, 0.1, 0.9, 3), rep(c(-1, 0, 1, : - NaNs produced - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); punif(c(-1, 0, 0.2, 2), c(-1, 0, 0.1, 0.9, 3), rep(c(-1, 0, 1, 0.1, -0.1, 0.0001), 20), lower.tail=TRUE, log.p=TRUE) - [1] 0.000000000 0.000000000 -2.197224577 NaN NaN - [6] -0.000099995 NaN NaN -Inf NaN - [11] 0.000000000 0.000000000 NaN NaN NaN - [16] 0.000000000 NaN NaN NaN NaN - [21] -Inf -Inf NaN NaN NaN - [26] 0.000000000 -1.609437912 0.000000000 NaN NaN - [31] 0.000000000 0.000000000 -Inf NaN NaN - [36] 0.000000000 NaN NaN -Inf NaN - [41] -Inf -Inf NaN NaN NaN - [46] -0.095310180 NaN NaN NaN NaN - [51] -0.510825624 0.000000000 NaN NaN NaN - [56] 0.000000000 -Inf -Inf NaN NaN - [61] 0.000000000 0.000000000 -2.197224577 NaN NaN - [66] -0.000099995 NaN NaN -Inf NaN - [71] 0.000000000 0.000000000 NaN NaN NaN - [76] 0.000000000 NaN NaN NaN NaN - [81] -Inf -Inf NaN NaN NaN - [86] 0.000000000 -1.609437912 0.000000000 NaN NaN - [91] 0.000000000 0.000000000 -Inf NaN NaN - [96] 0.000000000 NaN NaN -Inf NaN -[101] -Inf -Inf NaN NaN NaN -[106] -0.095310180 NaN NaN NaN NaN -[111] -0.510825624 0.000000000 NaN NaN NaN -[116] 0.000000000 -Inf -Inf NaN NaN -Warning message: -In punif(c(-1, 0, 0.2, 2), c(-1, 0, 0.1, 0.9, 3), rep(c(-1, 0, 1, : - NaNs produced - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); punif(c(NA, 0, NaN, 1/0, -1/0), rep(c(1, 0, 0.1), 5), rep(c(1, 0, 0.1), 5)) - [1] NA 1 NaN 1 0 NA 0 NaN 1 0 NA 0 NaN 1 0 - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); punif(rep(c(1, 0, 0.1), 5), c(NA, 0, NaN, 1/0, -1/0), rep(c(1, 0, 0.1), 5)) - [1] NA 1 NaN NaN NaN NA 1 NaN NaN NaN NA 1 NaN NaN NaN -Warning message: -In punif(rep(c(1, 0, 0.1), 5), c(NA, 0, NaN, 1/0, -1/0), rep(c(1, : - NaNs produced - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); punif(rep(c(1, 0, 0.1), 5), rep(c(1, 0, 0.1), 5), c(NA, 0, NaN, 1/0, -1/0)) - [1] NA 1 NaN NaN NaN NA NaN NaN NaN NaN NA NaN NaN NaN NaN -Warning message: -In punif(rep(c(1, 0, 0.1), 5), rep(c(1, 0, 0.1), 5), c(NA, 0, NaN, : - NaNs produced - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); qbeta(0, 10, 10, lower.tail=FALSE, log.p=FALSE) -[1] 1 - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); qbeta(0, 10, 10, lower.tail=FALSE, log.p=TRUE) -[1] 0 - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); qbeta(0, 10, 10, lower.tail=TRUE, log.p=FALSE) -[1] 0 - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); qbeta(0, 10, 10, lower.tail=TRUE, log.p=TRUE) -[1] 1 - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); qbeta(0, c(0.0653, 0.000123, 32e-80, 8833, 79e70, 0, -1), rep(c(0.0653, 0.000123, 32e-80, 8833, 79e70), 7), lower.tail=FALSE, log.p=FALSE) - [1] 1 1 1 1 1 1 NaN 1 1 1 1 1 1 NaN 1 1 1 1 1 -[20] 1 NaN 1 1 1 1 1 1 NaN 1 1 1 1 1 1 NaN -Warning message: -In qbeta(0, c(0.0653, 0.000123, 3.2e-79, 8833, 7.9e+71, 0, -1), : - NaNs produced - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); qbeta(0, c(0.0653, 0.000123, 32e-80, 8833, 79e70, 0, -1), rep(c(0.0653, 0.000123, 32e-80, 8833, 79e70), 7), lower.tail=FALSE, log.p=TRUE) - [1] 0 0 0 0 0 0 NaN 0 0 0 0 0 0 NaN 0 0 0 0 0 -[20] 0 NaN 0 0 0 0 0 0 NaN 0 0 0 0 0 0 NaN -Warning message: -In qbeta(0, c(0.0653, 0.000123, 3.2e-79, 8833, 7.9e+71, 0, -1), : - NaNs produced - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); qbeta(0, c(0.0653, 0.000123, 32e-80, 8833, 79e70, 0, -1), rep(c(0.0653, 0.000123, 32e-80, 8833, 79e70), 7), lower.tail=TRUE, log.p=FALSE) - [1] 0 0 0 0 0 0 NaN 0 0 0 0 0 0 NaN 0 0 0 0 0 -[20] 0 NaN 0 0 0 0 0 0 NaN 0 0 0 0 0 0 NaN -Warning message: -In qbeta(0, c(0.0653, 0.000123, 3.2e-79, 8833, 7.9e+71, 0, -1), : - NaNs produced - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); qbeta(0, c(0.0653, 0.000123, 32e-80, 8833, 79e70, 0, -1), rep(c(0.0653, 0.000123, 32e-80, 8833, 79e70), 7), lower.tail=TRUE, log.p=TRUE) - [1] 1 1 1 1 1 1 NaN 1 1 1 1 1 1 NaN 1 1 1 1 1 -[20] 1 NaN 1 1 1 1 1 1 NaN 1 1 1 1 1 1 NaN -Warning message: -In qbeta(0, c(0.0653, 0.000123, 3.2e-79, 8833, 7.9e+71, 0, -1), : - NaNs produced - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); qbeta(c(-1, 0, 0.2, 2), c(-1, 0, 0.1, 0.9, 3), rep(c(-1, 0, 1, 0.1, -0.1, 0.0001), 20), lower.tail=FALSE, log.p=FALSE) - [1] NaN 1.0000000 0.1073742 NaN NaN NaN NaN - [8] NaN NaN 1.0000000 NaN NaN NaN 1.0000000 - [15] 0.9283178 NaN NaN 1.0000000 NaN NaN NaN - [22] 1.0000000 NaN NaN NaN NaN 0.0000000 NaN - [29] NaN 1.0000000 NaN NaN NaN 1.0000000 NaN - [36] NaN NaN 1.0000000 0.7804089 NaN NaN 1.0000000 - [43] NaN NaN NaN NaN NaN NaN NaN - [50] 1.0000000 NaN NaN NaN 1.0000000 NaN NaN - [57] NaN 1.0000000 NaN NaN NaN 1.0000000 0.1073742 - [64] NaN NaN NaN NaN NaN NaN 1.0000000 - [71] NaN NaN NaN 1.0000000 0.9283178 NaN NaN - [78] 1.0000000 NaN NaN NaN 1.0000000 NaN NaN - [85] NaN NaN 0.0000000 NaN NaN 1.0000000 NaN - [92] NaN NaN 1.0000000 NaN NaN NaN 1.0000000 - [99] 0.7804089 NaN NaN 1.0000000 NaN NaN NaN -[106] NaN NaN NaN NaN 1.0000000 NaN NaN -[113] NaN 1.0000000 NaN NaN NaN 1.0000000 NaN -[120] NaN -Warning message: -In qbeta(c(-1, 0, 0.2, 2), c(-1, 0, 0.1, 0.9, 3), rep(c(-1, 0, 1, : - NaNs produced - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); qbeta(c(-1, 0, 0.2, 2), c(-1, 0, 0.1, 0.9, 3), rep(c(-1, 0, 1, 0.1, -0.1, 0.0001), 20), lower.tail=FALSE, log.p=TRUE) - [1] NaN 0.00000000 NaN NaN NaN NaN - [7] NaN NaN 0.60071237 0.00000000 NaN NaN - [13] NaN 0.00000000 NaN NaN NaN 0.00000000 - [19] NaN NaN NaN 0.00000000 NaN NaN - [25] NaN NaN NaN NaN NaN 0.00000000 - [31] NaN NaN 0.01018589 0.00000000 NaN NaN - [37] NaN 0.00000000 NaN NaN NaN 0.00000000 - [43] NaN NaN 0.85822265 NaN NaN NaN - [49] NaN 0.00000000 NaN NaN NaN 0.00000000 - [55] NaN NaN 0.00000000 0.00000000 NaN NaN - [61] NaN 0.00000000 NaN NaN NaN NaN - [67] NaN NaN 0.60071237 0.00000000 NaN NaN - [73] NaN 0.00000000 NaN NaN NaN 0.00000000 - [79] NaN NaN NaN 0.00000000 NaN NaN - [85] NaN NaN NaN NaN NaN 0.00000000 - [91] NaN NaN 0.01018589 0.00000000 NaN NaN - [97] NaN 0.00000000 NaN NaN NaN 0.00000000 -[103] NaN NaN 0.85822265 NaN NaN NaN -[109] NaN 0.00000000 NaN NaN NaN 0.00000000 -[115] NaN NaN 0.00000000 0.00000000 NaN NaN + [56] NaN 2.689414e-01 2.689414e-01 NaN 0.000000e+00 + [61] NaN NaN 5.249792e-01 9.999833e-01 NaN + [66] 1.000000e+00 NaN NaN 1.301085e-01 9.357623e-14 + [71] NaN 1.000000e+00 NaN NaN 5.732418e-02 + [76] 1.000000e+00 NaN 0.000000e+00 NaN NaN + [81] 5.000000e-01 5.000000e-01 NaN 1.000000e+00 NaN + [86] NaN 5.498340e-01 1.000000e+00 NaN 0.000000e+00 + [91] NaN NaN 2.497399e-01 1.233946e-04 NaN + [96] 1.000000e+00 NaN NaN 3.318122e-01 4.539787e-05 +[101] NaN 5.000000e-01 NaN NaN 1.798621e-02 +[106] 9.999546e-01 NaN 1.000000e+00 NaN NaN +[111] 7.685248e-01 1.000000e+00 NaN 0.000000e+00 NaN +[116] NaN 2.689414e-01 2.689414e-01 NaN 0.000000e+00 Warning message: -In qbeta(c(-1, 0, 0.2, 2), c(-1, 0, 0.1, 0.9, 3), rep(c(-1, 0, 1, : +In plogis(c(-1, 0, 0.2, 2), c(-1, 0, 0.1, 0.9, 3), rep(c(-1, 0, : NaNs produced ##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); qbeta(c(-1, 0, 0.2, 2), c(-1, 0, 0.1, 0.9, 3), rep(c(-1, 0, 1, 0.1, -0.1, 0.0001), 20), lower.tail=TRUE, log.p=FALSE) - [1] NaN 0.0000000000 0.0000001024 NaN NaN - [6] NaN NaN NaN NaN 0.0000000000 - [11] NaN NaN NaN 0.0000000000 0.5848035476 - [16] NaN NaN 0.0000000000 NaN NaN - [21] NaN 0.0000000000 NaN NaN NaN - [26] NaN 0.0000000000 NaN NaN 0.0000000000 - [31] NaN NaN NaN 0.0000000000 NaN - [36] NaN NaN 0.0000000000 0.1672502062 NaN - [41] NaN 0.0000000000 NaN NaN NaN - [46] NaN NaN NaN NaN 0.0000000000 - [51] NaN NaN NaN 0.0000000000 NaN - [56] NaN NaN 0.0000000000 NaN NaN - [61] NaN 0.0000000000 0.0000001024 NaN NaN - [66] NaN NaN NaN NaN 0.0000000000 - [71] NaN NaN NaN 0.0000000000 0.5848035476 - [76] NaN NaN 0.0000000000 NaN NaN - [81] NaN 0.0000000000 NaN NaN NaN - [86] NaN 0.0000000000 NaN NaN 0.0000000000 - [91] NaN NaN NaN 0.0000000000 NaN - [96] NaN NaN 0.0000000000 0.1672502062 NaN -[101] NaN 0.0000000000 NaN NaN NaN -[106] NaN NaN NaN NaN 0.0000000000 -[111] NaN NaN NaN 0.0000000000 NaN -[116] NaN NaN 0.0000000000 NaN NaN +#set.seed(1); plogis(c(-1, 0, 0.2, 2), c(-1, 0, 0.1, 0.9, 3), rep(c(-1, 0, 1, 0.1, -0.1, 0.0001), 20), lower.tail=TRUE, log.p=TRUE) + [1] NaN NaN -6.443967e-01 -1.670156e-05 NaN + [6] 0.000000e+00 NaN NaN -2.039387e+00 -3.000000e+01 + [11] NaN 0.000000e+00 NaN NaN -2.859033e+00 + [16] -9.357623e-14 NaN -1.000000e+03 NaN NaN + [21] -6.931472e-01 -6.931472e-01 NaN 0.000000e+00 NaN + [26] NaN -5.981389e-01 -5.602796e-09 NaN -3.000000e+04 + [31] NaN NaN -1.387335e+00 -9.000123e+00 NaN + [36] 0.000000e+00 NaN NaN -1.103186e+00 -1.000005e+01 + [41] NaN -6.931472e-01 NaN NaN -4.018150e+00 + [46] -4.539890e-05 NaN 0.000000e+00 NaN NaN + [51] -2.632825e-01 -2.061154e-09 NaN -9.000000e+03 NaN + [56] NaN -1.313262e+00 -1.313262e+00 NaN -1.000000e+04 + [61] NaN NaN -6.443967e-01 -1.670156e-05 NaN + [66] 0.000000e+00 NaN NaN -2.039387e+00 -3.000000e+01 + [71] NaN 0.000000e+00 NaN NaN -2.859033e+00 + [76] -9.357623e-14 NaN -1.000000e+03 NaN NaN + [81] -6.931472e-01 -6.931472e-01 NaN 0.000000e+00 NaN + [86] NaN -5.981389e-01 -5.602796e-09 NaN -3.000000e+04 + [91] NaN NaN -1.387335e+00 -9.000123e+00 NaN + [96] 0.000000e+00 NaN NaN -1.103186e+00 -1.000005e+01 +[101] NaN -6.931472e-01 NaN NaN -4.018150e+00 +[106] -4.539890e-05 NaN 0.000000e+00 NaN NaN +[111] -2.632825e-01 -2.061154e-09 NaN -9.000000e+03 NaN +[116] NaN -1.313262e+00 -1.313262e+00 NaN -1.000000e+04 Warning message: -In qbeta(c(-1, 0, 0.2, 2), c(-1, 0, 0.1, 0.9, 3), rep(c(-1, 0, 1, : - NaNs produced - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); qbeta(c(-1, 0, 0.2, 2), c(-1, 0, 0.1, 0.9, 3), rep(c(-1, 0, 1, 0.1, -0.1, 0.0001), 20), lower.tail=TRUE, log.p=TRUE) - [1] NaN 1.000000e+00 NaN NaN NaN - [6] NaN NaN NaN 3.291930e-01 1.000000e+00 - [11] NaN NaN NaN 1.000000e+00 NaN - [16] NaN NaN 1.000000e+00 NaN NaN - [21] NaN 1.000000e+00 NaN NaN NaN - [26] NaN NaN NaN NaN 1.000000e+00 - [31] NaN NaN 4.539993e-05 1.000000e+00 NaN - [36] NaN NaN 1.000000e+00 NaN NaN - [41] NaN 1.000000e+00 NaN NaN 7.165313e-01 - [46] NaN NaN NaN NaN 1.000000e+00 - [51] NaN NaN NaN 1.000000e+00 NaN - [56] NaN 0.000000e+00 1.000000e+00 NaN NaN - [61] NaN 1.000000e+00 NaN NaN NaN - [66] NaN NaN NaN 3.291930e-01 1.000000e+00 - [71] NaN NaN NaN 1.000000e+00 NaN - [76] NaN NaN 1.000000e+00 NaN NaN - [81] NaN 1.000000e+00 NaN NaN NaN - [86] NaN NaN NaN NaN 1.000000e+00 - [91] NaN NaN 4.539993e-05 1.000000e+00 NaN - [96] NaN NaN 1.000000e+00 NaN NaN -[101] NaN 1.000000e+00 NaN NaN 7.165313e-01 -[106] NaN NaN NaN NaN 1.000000e+00 -[111] NaN NaN NaN 1.000000e+00 NaN -[116] NaN 0.000000e+00 1.000000e+00 NaN NaN -Warning message: -In qbeta(c(-1, 0, 0.2, 2), c(-1, 0, 0.1, 0.9, 3), rep(c(-1, 0, 1, : +In plogis(c(-1, 0, 0.2, 2), c(-1, 0, 0.1, 0.9, 3), rep(c(-1, 0, : NaNs produced ##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); qbeta(c(NA, 0, NaN, 1/0, -1/0), rep(c(1, 0, 0.1), 5), rep(c(1, 0, 0.1), 5)) - [1] NA 0 NaN NaN NaN NA 0 NaN NaN NaN NA 0 NaN NaN NaN +#set.seed(1); plogis(c(NA, 0, NaN, 1/0, -1/0), rep(c(1, 0, 0.1), 5), rep(c(1, 0, 0.1), 5)) + [1] NA NaN NaN 1.0000000 NaN NA 0.2689414 + [8] NaN 1.0000000 0.0000000 NA 0.2689414 NaN NaN +[15] 0.0000000 Warning message: -In qbeta(c(NA, 0, NaN, 1/0, -1/0), rep(c(1, 0, 0.1), 5), rep(c(1, : +In plogis(c(NA, 0, NaN, 1/0, -1/0), rep(c(1, 0, 0.1), 5), rep(c(1, : NaNs produced ##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); qbeta(rep(c(1, 0, 0.1), 5), c(NA, 0, NaN, 1/0, -1/0), rep(c(1, 0, 0.1), 5)) - [1] NA 0 NaN 1 NaN NA 1 NaN 1 NaN NA 0 NaN 0 NaN +#set.seed(1); plogis(rep(c(1, 0, 0.1), 5), c(NA, 0, NaN, 1/0, -1/0), rep(c(1, 0, 0.1), 5)) + [1] NA NaN NaN 0.0000000 NaN NA 0.7310586 + [8] NaN 0.0000000 1.0000000 NA 0.7310586 NaN NaN +[15] 1.0000000 Warning message: -In qbeta(rep(c(1, 0, 0.1), 5), c(NA, 0, NaN, 1/0, -1/0), rep(c(1, : +In plogis(rep(c(1, 0, 0.1), 5), c(NA, 0, NaN, 1/0, -1/0), rep(c(1, : NaNs produced ##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); qbeta(rep(c(1, 0, 0.1), 5), rep(c(1, 0, 0.1), 5), c(NA, 0, NaN, 1/0, -1/0)) - [1] NA 0 NaN 1 NaN NA 1 NaN 0 NaN NA 1 NaN 0 NaN +#set.seed(1); plogis(rep(c(1, 0, 0.1), 5), rep(c(1, 0, 0.1), 5), c(NA, 0, NaN, 1/0, -1/0)) + [1] NA NaN NaN 0.5 NaN NA NaN NaN 0.5 NaN NA NaN NaN 0.5 NaN Warning message: -In qbeta(rep(c(1, 0, 0.1), 5), rep(c(1, 0, 0.1), 5), c(NA, 0, NaN, : +In plogis(rep(c(1, 0, 0.1), 5), rep(c(1, 0, 0.1), 5), c(NA, 0, NaN, : NaNs produced ##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# @@ -117999,171 +118115,6 @@ Warning message: In qbinom(rep(c(1, 0, 0.1), 5), rep(c(1, 0, 0.1), 5), c(NA, 0, NaN, : NaNs produced -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); qcauchy(0, 10, 10, lower.tail=FALSE, log.p=FALSE) -[1] Inf - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); qcauchy(0, 10, 10, lower.tail=FALSE, log.p=TRUE) -[1] -Inf - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); qcauchy(0, 10, 10, lower.tail=TRUE, log.p=FALSE) -[1] -Inf - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); qcauchy(0, 10, 10, lower.tail=TRUE, log.p=TRUE) -[1] Inf - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); qcauchy(0, c(0.0653, 0.000123, 32e-80, 8833, 79e70, 0, -1), rep(c(0.0653, 0.000123, 32e-80, 8833, 79e70), 7), lower.tail=FALSE, log.p=FALSE) - [1] Inf Inf Inf Inf Inf Inf Inf Inf Inf Inf Inf Inf Inf Inf Inf Inf Inf Inf Inf -[20] Inf Inf Inf Inf Inf Inf Inf Inf Inf Inf Inf Inf Inf Inf Inf Inf - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); qcauchy(0, c(0.0653, 0.000123, 32e-80, 8833, 79e70, 0, -1), rep(c(0.0653, 0.000123, 32e-80, 8833, 79e70), 7), lower.tail=FALSE, log.p=TRUE) - [1] -Inf -Inf -Inf -Inf -Inf -Inf -Inf -Inf -Inf -Inf -Inf -Inf -Inf -Inf -Inf -[16] -Inf -Inf -Inf -Inf -Inf -Inf -Inf -Inf -Inf -Inf -Inf -Inf -Inf -Inf -Inf -[31] -Inf -Inf -Inf -Inf -Inf - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); qcauchy(0, c(0.0653, 0.000123, 32e-80, 8833, 79e70, 0, -1), rep(c(0.0653, 0.000123, 32e-80, 8833, 79e70), 7), lower.tail=TRUE, log.p=FALSE) - [1] -Inf -Inf -Inf -Inf -Inf -Inf -Inf -Inf -Inf -Inf -Inf -Inf -Inf -Inf -Inf -[16] -Inf -Inf -Inf -Inf -Inf -Inf -Inf -Inf -Inf -Inf -Inf -Inf -Inf -Inf -Inf -[31] -Inf -Inf -Inf -Inf -Inf - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); qcauchy(0, c(0.0653, 0.000123, 32e-80, 8833, 79e70, 0, -1), rep(c(0.0653, 0.000123, 32e-80, 8833, 79e70), 7), lower.tail=TRUE, log.p=TRUE) - [1] Inf Inf Inf Inf Inf Inf Inf Inf Inf Inf Inf Inf Inf Inf Inf Inf Inf Inf Inf -[20] Inf Inf Inf Inf Inf Inf Inf Inf Inf Inf Inf Inf Inf Inf Inf Inf - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); qcauchy(c(-1, 0, 0.2, 2), c(-1, 0, 0.1, 0.9, 3), rep(c(-1, 0, 1, 0.1, -0.1, 0.0001), 20), lower.tail=FALSE, log.p=FALSE) - [1] NaN 0.0000000 1.4763819 NaN NaN Inf - [7] NaN NaN NaN Inf NaN NaN - [13] NaN 0.9000000 4.3763819 NaN NaN Inf - [19] NaN NaN NaN Inf NaN NaN - [25] NaN -1.0000000 1.3763819 NaN NaN Inf - [31] NaN NaN NaN Inf NaN NaN - [37] NaN 0.1000000 2.2763819 NaN NaN Inf - [43] NaN NaN NaN Inf NaN NaN - [49] NaN 3.0000000 0.3763819 NaN NaN Inf - [55] NaN NaN NaN Inf NaN NaN - [61] NaN 0.0000000 1.4763819 NaN NaN Inf - [67] NaN NaN NaN Inf NaN NaN - [73] NaN 0.9000000 4.3763819 NaN NaN Inf - [79] NaN NaN NaN Inf NaN NaN - [85] NaN -1.0000000 1.3763819 NaN NaN Inf - [91] NaN NaN NaN Inf NaN NaN - [97] NaN 0.1000000 2.2763819 NaN NaN Inf -[103] NaN NaN NaN Inf NaN NaN -[109] NaN 3.0000000 0.3763819 NaN NaN Inf -[115] NaN NaN NaN Inf NaN NaN -Warning message: -In qcauchy(c(-1, 0, 0.2, 2), c(-1, 0, 0.1, 0.9, 3), rep(c(-1, 0, : - NaNs produced - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); qcauchy(c(-1, 0, 0.2, 2), c(-1, 0, 0.1, 0.9, 3), rep(c(-1, 0, 1, 0.1, -0.1, 0.0001), 20), lower.tail=FALSE, log.p=TRUE) - [1] NaN 0.0000000 NaN NaN NaN -Inf - [7] NaN NaN 1.3406711 -Inf NaN NaN - [13] NaN 0.9000000 NaN NaN NaN -Inf - [19] NaN NaN -0.5593289 -Inf NaN NaN - [25] NaN -1.0000000 NaN NaN NaN -Inf - [31] NaN NaN 0.5406711 -Inf NaN NaN - [37] NaN 0.1000000 NaN NaN NaN -Inf - [43] NaN NaN 3.4406711 -Inf NaN NaN - [49] NaN 3.0000000 NaN NaN NaN -Inf - [55] NaN NaN 0.4406711 -Inf NaN NaN - [61] NaN 0.0000000 NaN NaN NaN -Inf - [67] NaN NaN 1.3406711 -Inf NaN NaN - [73] NaN 0.9000000 NaN NaN NaN -Inf - [79] NaN NaN -0.5593289 -Inf NaN NaN - [85] NaN -1.0000000 NaN NaN NaN -Inf - [91] NaN NaN 0.5406711 -Inf NaN NaN - [97] NaN 0.1000000 NaN NaN NaN -Inf -[103] NaN NaN 3.4406711 -Inf NaN NaN -[109] NaN 3.0000000 NaN NaN NaN -Inf -[115] NaN NaN 0.4406711 -Inf NaN NaN -Warning message: -In qcauchy(c(-1, 0, 0.2, 2), c(-1, 0, 0.1, 0.9, 3), rep(c(-1, 0, : - NaNs produced - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); qcauchy(c(-1, 0, 0.2, 2), c(-1, 0, 0.1, 0.9, 3), rep(c(-1, 0, 1, 0.1, -0.1, 0.0001), 20), lower.tail=TRUE, log.p=FALSE) - [1] NaN 0.0000000 -1.2763819 NaN NaN -Inf - [7] NaN NaN NaN -Inf NaN NaN - [13] NaN 0.9000000 1.6236181 NaN NaN -Inf - [19] NaN NaN NaN -Inf NaN NaN - [25] NaN -1.0000000 -1.3763819 NaN NaN -Inf - [31] NaN NaN NaN -Inf NaN NaN - [37] NaN 0.1000000 -0.4763819 NaN NaN -Inf - [43] NaN NaN NaN -Inf NaN NaN - [49] NaN 3.0000000 -2.3763819 NaN NaN -Inf - [55] NaN NaN NaN -Inf NaN NaN - [61] NaN 0.0000000 -1.2763819 NaN NaN -Inf - [67] NaN NaN NaN -Inf NaN NaN - [73] NaN 0.9000000 1.6236181 NaN NaN -Inf - [79] NaN NaN NaN -Inf NaN NaN - [85] NaN -1.0000000 -1.3763819 NaN NaN -Inf - [91] NaN NaN NaN -Inf NaN NaN - [97] NaN 0.1000000 -0.4763819 NaN NaN -Inf -[103] NaN NaN NaN -Inf NaN NaN -[109] NaN 3.0000000 -2.3763819 NaN NaN -Inf -[115] NaN NaN NaN -Inf NaN NaN -Warning message: -In qcauchy(c(-1, 0, 0.2, 2), c(-1, 0, 0.1, 0.9, 3), rep(c(-1, 0, : - NaNs produced - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); qcauchy(c(-1, 0, 0.2, 2), c(-1, 0, 0.1, 0.9, 3), rep(c(-1, 0, 1, 0.1, -0.1, 0.0001), 20), lower.tail=TRUE, log.p=TRUE) - [1] NaN 0.0000000 NaN NaN NaN Inf - [7] NaN NaN 0.4593289 Inf NaN NaN - [13] NaN 0.9000000 NaN NaN NaN Inf - [19] NaN NaN -1.4406711 Inf NaN NaN - [25] NaN -1.0000000 NaN NaN NaN Inf - [31] NaN NaN -0.3406711 Inf NaN NaN - [37] NaN 0.1000000 NaN NaN NaN Inf - [43] NaN NaN 2.5593289 Inf NaN NaN - [49] NaN 3.0000000 NaN NaN NaN Inf - [55] NaN NaN -0.4406711 Inf NaN NaN - [61] NaN 0.0000000 NaN NaN NaN Inf - [67] NaN NaN 0.4593289 Inf NaN NaN - [73] NaN 0.9000000 NaN NaN NaN Inf - [79] NaN NaN -1.4406711 Inf NaN NaN - [85] NaN -1.0000000 NaN NaN NaN Inf - [91] NaN NaN -0.3406711 Inf NaN NaN - [97] NaN 0.1000000 NaN NaN NaN Inf -[103] NaN NaN 2.5593289 Inf NaN NaN -[109] NaN 3.0000000 NaN NaN NaN Inf -[115] NaN NaN -0.4406711 Inf NaN NaN -Warning message: -In qcauchy(c(-1, 0, 0.2, 2), c(-1, 0, 0.1, 0.9, 3), rep(c(-1, 0, : - NaNs produced - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); qcauchy(c(NA, 0, NaN, 1/0, -1/0), rep(c(1, 0, 0.1), 5), rep(c(1, 0, 0.1), 5)) - [1] NA 0 NaN NaN NaN NA -Inf NaN NaN NaN NA -Inf NaN NaN NaN -Warning message: -In qcauchy(c(NA, 0, NaN, 1/0, -1/0), rep(c(1, 0, 0.1), 5), rep(c(1, : - NaNs produced - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); qcauchy(rep(c(1, 0, 0.1), 5), c(NA, 0, NaN, 1/0, -1/0), rep(c(1, 0, 0.1), 5)) - [1] NA 0.0000000 NaN Inf -Inf NA - [7] Inf NaN Inf NaN NA -0.3077684 -[13] NaN Inf -Inf -Warning message: -In qcauchy(rep(c(1, 0, 0.1), 5), c(NA, 0, NaN, 1/0, -1/0), rep(c(1, : - NaNs produced - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); qcauchy(rep(c(1, 0, 0.1), 5), rep(c(1, 0, 0.1), 5), c(NA, 0, NaN, 1/0, -1/0)) - [1] NA 0.0 NaN NaN NaN NA 1.0 NaN NaN NaN NA 0.1 NaN NaN NaN -Warning message: -In qcauchy(rep(c(1, 0, 0.1), 5), rep(c(1, 0, 0.1), 5), c(NA, 0, : - NaNs produced - ##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# #set.seed(1); qf(0, 10, 10, lower.tail=FALSE, log.p=FALSE) [1] Inf @@ -118665,335 +118616,6 @@ Warning message: In qlogis(rep(c(1, 0, 0.1), 5), rep(c(1, 0, 0.1), 5), c(NA, 0, NaN, : NaNs produced -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); qnorm(0, 10, 10, lower.tail=FALSE, log.p=FALSE) -[1] Inf - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); qnorm(0, 10, 10, lower.tail=FALSE, log.p=TRUE) -[1] -Inf - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); qnorm(0, 10, 10, lower.tail=TRUE, log.p=FALSE) -[1] -Inf - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); qnorm(0, 10, 10, lower.tail=TRUE, log.p=TRUE) -[1] Inf - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); qnorm(0, c(0.0653, 0.000123, 32e-80, 8833, 79e70, 0, -1), rep(c(0.0653, 0.000123, 32e-80, 8833, 79e70), 7), lower.tail=FALSE, log.p=FALSE) - [1] Inf Inf Inf Inf Inf Inf Inf Inf Inf Inf Inf Inf Inf Inf Inf Inf Inf Inf Inf -[20] Inf Inf Inf Inf Inf Inf Inf Inf Inf Inf Inf Inf Inf Inf Inf Inf - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); qnorm(0, c(0.0653, 0.000123, 32e-80, 8833, 79e70, 0, -1), rep(c(0.0653, 0.000123, 32e-80, 8833, 79e70), 7), lower.tail=FALSE, log.p=TRUE) - [1] -Inf -Inf -Inf -Inf -Inf -Inf -Inf -Inf -Inf -Inf -Inf -Inf -Inf -Inf -Inf -[16] -Inf -Inf -Inf -Inf -Inf -Inf -Inf -Inf -Inf -Inf -Inf -Inf -Inf -Inf -Inf -[31] -Inf -Inf -Inf -Inf -Inf - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); qnorm(0, c(0.0653, 0.000123, 32e-80, 8833, 79e70, 0, -1), rep(c(0.0653, 0.000123, 32e-80, 8833, 79e70), 7), lower.tail=TRUE, log.p=FALSE) - [1] -Inf -Inf -Inf -Inf -Inf -Inf -Inf -Inf -Inf -Inf -Inf -Inf -Inf -Inf -Inf -[16] -Inf -Inf -Inf -Inf -Inf -Inf -Inf -Inf -Inf -Inf -Inf -Inf -Inf -Inf -Inf -[31] -Inf -Inf -Inf -Inf -Inf - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); qnorm(0, c(0.0653, 0.000123, 32e-80, 8833, 79e70, 0, -1), rep(c(0.0653, 0.000123, 32e-80, 8833, 79e70), 7), lower.tail=TRUE, log.p=TRUE) - [1] Inf Inf Inf Inf Inf Inf Inf Inf Inf Inf Inf Inf Inf Inf Inf Inf Inf Inf Inf -[20] Inf Inf Inf Inf Inf Inf Inf Inf Inf Inf Inf Inf Inf Inf Inf Inf - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); qnorm(c(-1, 0, 0.2, 2), c(-1, 0, 0.1, 0.9, 3), rep(c(-1, 0, 1, 0.1, -0.1, 0.0001), 20), lower.tail=FALSE, log.p=FALSE) - [1] NaN Inf 0.9416212 NaN NaN Inf - [7] NaN NaN NaN Inf NaN NaN - [13] NaN Inf 3.8416212 NaN NaN Inf - [19] NaN NaN NaN Inf NaN NaN - [25] NaN Inf 0.8416212 NaN NaN Inf - [31] NaN NaN NaN Inf NaN NaN - [37] NaN Inf 1.7416212 NaN NaN Inf - [43] NaN NaN NaN Inf NaN NaN - [49] NaN Inf -0.1583788 NaN NaN Inf - [55] NaN NaN NaN Inf NaN NaN - [61] NaN Inf 0.9416212 NaN NaN Inf - [67] NaN NaN NaN Inf NaN NaN - [73] NaN Inf 3.8416212 NaN NaN Inf - [79] NaN NaN NaN Inf NaN NaN - [85] NaN Inf 0.8416212 NaN NaN Inf - [91] NaN NaN NaN Inf NaN NaN - [97] NaN Inf 1.7416212 NaN NaN Inf -[103] NaN NaN NaN Inf NaN NaN -[109] NaN Inf -0.1583788 NaN NaN Inf -[115] NaN NaN NaN Inf NaN NaN -Warning message: -In qnorm(c(-1, 0, 0.2, 2), c(-1, 0, 0.1, 0.9, 3), rep(c(-1, 0, 1, : - NaNs produced - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); qnorm(c(-1, 0, 0.2, 2), c(-1, 0, 0.1, 0.9, 3), rep(c(-1, 0, 1, 0.1, -0.1, 0.0001), 20), lower.tail=FALSE, log.p=TRUE) - [1] NaN -Inf NaN NaN NaN -Inf NaN - [8] NaN 1.237475 -Inf NaN NaN NaN -Inf - [15] NaN NaN NaN -Inf NaN NaN -0.662525 - [22] -Inf NaN NaN NaN -Inf NaN NaN - [29] NaN -Inf NaN NaN 0.437475 -Inf NaN - [36] NaN NaN -Inf NaN NaN NaN -Inf - [43] NaN NaN 3.337475 -Inf NaN NaN NaN - [50] -Inf NaN NaN NaN -Inf NaN NaN - [57] 0.337475 -Inf NaN NaN NaN -Inf NaN - [64] NaN NaN -Inf NaN NaN 1.237475 -Inf - [71] NaN NaN NaN -Inf NaN NaN NaN - [78] -Inf NaN NaN -0.662525 -Inf NaN NaN - [85] NaN -Inf NaN NaN NaN -Inf NaN - [92] NaN 0.437475 -Inf NaN NaN NaN -Inf - [99] NaN NaN NaN -Inf NaN NaN 3.337475 -[106] -Inf NaN NaN NaN -Inf NaN NaN -[113] NaN -Inf NaN NaN 0.337475 -Inf NaN -[120] NaN -Warning message: -In qnorm(c(-1, 0, 0.2, 2), c(-1, 0, 0.1, 0.9, 3), rep(c(-1, 0, 1, : - NaNs produced - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); qnorm(c(-1, 0, 0.2, 2), c(-1, 0, 0.1, 0.9, 3), rep(c(-1, 0, 1, 0.1, -0.1, 0.0001), 20), lower.tail=TRUE, log.p=FALSE) - [1] NaN -Inf -0.74162123 NaN NaN -Inf - [7] NaN NaN NaN -Inf NaN NaN - [13] NaN -Inf 2.15837877 NaN NaN -Inf - [19] NaN NaN NaN -Inf NaN NaN - [25] NaN -Inf -0.84162123 NaN NaN -Inf - [31] NaN NaN NaN -Inf NaN NaN - [37] NaN -Inf 0.05837877 NaN NaN -Inf - [43] NaN NaN NaN -Inf NaN NaN - [49] NaN -Inf -1.84162123 NaN NaN -Inf - [55] NaN NaN NaN -Inf NaN NaN - [61] NaN -Inf -0.74162123 NaN NaN -Inf - [67] NaN NaN NaN -Inf NaN NaN - [73] NaN -Inf 2.15837877 NaN NaN -Inf - [79] NaN NaN NaN -Inf NaN NaN - [85] NaN -Inf -0.84162123 NaN NaN -Inf - [91] NaN NaN NaN -Inf NaN NaN - [97] NaN -Inf 0.05837877 NaN NaN -Inf -[103] NaN NaN NaN -Inf NaN NaN -[109] NaN -Inf -1.84162123 NaN NaN -Inf -[115] NaN NaN NaN -Inf NaN NaN -Warning message: -In qnorm(c(-1, 0, 0.2, 2), c(-1, 0, 0.1, 0.9, 3), rep(c(-1, 0, 1, : - NaNs produced - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); qnorm(c(-1, 0, 0.2, 2), c(-1, 0, 0.1, 0.9, 3), rep(c(-1, 0, 1, 0.1, -0.1, 0.0001), 20), lower.tail=TRUE, log.p=TRUE) - [1] NaN Inf NaN NaN NaN Inf NaN - [8] NaN 0.562525 Inf NaN NaN NaN Inf - [15] NaN NaN NaN Inf NaN NaN -1.337475 - [22] Inf NaN NaN NaN Inf NaN NaN - [29] NaN Inf NaN NaN -0.237475 Inf NaN - [36] NaN NaN Inf NaN NaN NaN Inf - [43] NaN NaN 2.662525 Inf NaN NaN NaN - [50] Inf NaN NaN NaN Inf NaN NaN - [57] -0.337475 Inf NaN NaN NaN Inf NaN - [64] NaN NaN Inf NaN NaN 0.562525 Inf - [71] NaN NaN NaN Inf NaN NaN NaN - [78] Inf NaN NaN -1.337475 Inf NaN NaN - [85] NaN Inf NaN NaN NaN Inf NaN - [92] NaN -0.237475 Inf NaN NaN NaN Inf - [99] NaN NaN NaN Inf NaN NaN 2.662525 -[106] Inf NaN NaN NaN Inf NaN NaN -[113] NaN Inf NaN NaN -0.337475 Inf NaN -[120] NaN -Warning message: -In qnorm(c(-1, 0, 0.2, 2), c(-1, 0, 0.1, 0.9, 3), rep(c(-1, 0, 1, : - NaNs produced - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); qnorm(c(NA, 0, NaN, 1/0, -1/0), rep(c(1, 0, 0.1), 5), rep(c(1, 0, 0.1), 5)) - [1] NA -Inf NaN NaN NaN NA -Inf NaN NaN NaN NA -Inf NaN NaN NaN -Warning message: -In qnorm(c(NA, 0, NaN, 1/0, -1/0), rep(c(1, 0, 0.1), 5), rep(c(1, : - NaNs produced - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); qnorm(rep(c(1, 0, 0.1), 5), c(NA, 0, NaN, 1/0, -1/0), rep(c(1, 0, 0.1), 5)) - [1] NA -Inf NaN Inf -Inf NA - [7] Inf NaN Inf Inf NA -0.1281552 -[13] NaN -Inf -Inf - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); qnorm(rep(c(1, 0, 0.1), 5), rep(c(1, 0, 0.1), 5), c(NA, 0, NaN, 1/0, -1/0)) - [1] NA -Inf NaN Inf -Inf NA Inf NaN -Inf Inf NA 0.1 NaN -Inf NaN -Warning message: -In qnorm(rep(c(1, 0, 0.1), 5), rep(c(1, 0, 0.1), 5), c(NA, 0, NaN, : - NaNs produced - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); qunif(0, 10, 10, lower.tail=FALSE, log.p=FALSE) -[1] 10 - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); qunif(0, 10, 10, lower.tail=FALSE, log.p=TRUE) -[1] 10 - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); qunif(0, 10, 10, lower.tail=TRUE, log.p=FALSE) -[1] 10 - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); qunif(0, 10, 10, lower.tail=TRUE, log.p=TRUE) -[1] 10 - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); qunif(0, c(0.0653, 0.000123, 32e-80, 8833, 79e70, 0, -1), rep(c(0.0653, 0.000123, 32e-80, 8833, 79e70), 7), lower.tail=FALSE, log.p=FALSE) - [1] 6.530e-02 1.230e-04 3.200e-79 8.833e+03 7.900e+71 6.530e-02 1.230e-04 - [8] NaN 8.833e+03 7.900e+71 NaN NaN 3.200e-79 8.833e+03 -[15] 7.900e+71 6.530e-02 1.230e-04 NaN NaN 7.900e+71 6.530e-02 -[22] NaN NaN 8.833e+03 7.900e+71 NaN 1.230e-04 0.000e+00 -[29] 8.833e+03 7.900e+71 6.530e-02 NaN NaN 8.833e+03 7.900e+71 -Warning message: -In qunif(0, c(0.0653, 0.000123, 3.2e-79, 8833, 7.9e+71, 0, -1), : - NaNs produced - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); qunif(0, c(0.0653, 0.000123, 32e-80, 8833, 79e70, 0, -1), rep(c(0.0653, 0.000123, 32e-80, 8833, 79e70), 7), lower.tail=FALSE, log.p=TRUE) - [1] 6.530e-02 1.230e-04 3.200e-79 8.833e+03 7.900e+71 0.000e+00 - [7] -1.000e+00 NaN 1.230e-04 3.200e-79 NaN NaN -[13] 0.000e+00 -1.000e+00 6.530e-02 1.230e-04 3.200e-79 NaN -[19] NaN 0.000e+00 -1.000e+00 NaN NaN 3.200e-79 -[25] 8.833e+03 NaN 0.000e+00 -1.000e+00 6.530e-02 1.230e-04 -[31] 3.200e-79 NaN NaN 0.000e+00 -1.000e+00 -Warning message: -In qunif(0, c(0.0653, 0.000123, 3.2e-79, 8833, 7.9e+71, 0, -1), : - NaNs produced - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); qunif(0, c(0.0653, 0.000123, 32e-80, 8833, 79e70, 0, -1), rep(c(0.0653, 0.000123, 32e-80, 8833, 79e70), 7), lower.tail=TRUE, log.p=FALSE) - [1] 6.530e-02 1.230e-04 3.200e-79 8.833e+03 7.900e+71 0.000e+00 - [7] -1.000e+00 NaN 1.230e-04 3.200e-79 NaN NaN -[13] 0.000e+00 -1.000e+00 6.530e-02 1.230e-04 3.200e-79 NaN -[19] NaN 0.000e+00 -1.000e+00 NaN NaN 3.200e-79 -[25] 8.833e+03 NaN 0.000e+00 -1.000e+00 6.530e-02 1.230e-04 -[31] 3.200e-79 NaN NaN 0.000e+00 -1.000e+00 -Warning message: -In qunif(0, c(0.0653, 0.000123, 3.2e-79, 8833, 7.9e+71, 0, -1), : - NaNs produced - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); qunif(0, c(0.0653, 0.000123, 32e-80, 8833, 79e70, 0, -1), rep(c(0.0653, 0.000123, 32e-80, 8833, 79e70), 7), lower.tail=TRUE, log.p=TRUE) - [1] 6.530e-02 1.230e-04 3.200e-79 8.833e+03 7.900e+71 6.530e-02 1.230e-04 - [8] NaN 8.833e+03 7.900e+71 NaN NaN 3.200e-79 8.833e+03 -[15] 7.900e+71 6.530e-02 1.230e-04 NaN NaN 7.900e+71 6.530e-02 -[22] NaN NaN 8.833e+03 7.900e+71 NaN 1.230e-04 0.000e+00 -[29] 8.833e+03 7.900e+71 6.530e-02 NaN NaN 8.833e+03 7.900e+71 -Warning message: -In qunif(0, c(0.0653, 0.000123, 3.2e-79, 8833, 7.9e+71, 0, -1), : - NaNs produced - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); qunif(c(-1, 0, 0.2, 2), c(-1, 0, 0.1, 0.9, 3), rep(c(-1, 0, 1, 0.1, -0.1, 0.0001), 20), lower.tail=FALSE, log.p=FALSE) - [1] NaN 0.0000 0.8200 NaN NaN 0.0001 NaN NaN NaN - [10] NaN -0.2800 NaN NaN NaN NaN NaN NaN NaN - [19] NaN NaN NaN 0.1000 NaN NaN NaN 0.0000 0.8000 - [28] NaN NaN NaN -1.0000 NaN NaN NaN NaN NaN - [37] NaN NaN 0.9800 NaN NaN 0.0001 NaN NaN NaN - [46] 0.1000 NaN NaN NaN NaN 0.6000 NaN NaN NaN - [55] NaN NaN NaN 0.1000 NaN NaN NaN 0.0000 0.8200 - [64] NaN NaN 0.0001 NaN NaN NaN NaN -0.2800 NaN - [73] NaN NaN NaN NaN NaN NaN NaN NaN NaN - [82] 0.1000 NaN NaN NaN 0.0000 0.8000 NaN NaN NaN - [91] -1.0000 NaN NaN NaN NaN NaN NaN NaN 0.9800 -[100] NaN NaN 0.0001 NaN NaN NaN 0.1000 NaN NaN -[109] NaN NaN 0.6000 NaN NaN NaN NaN NaN NaN -[118] 0.1000 NaN NaN -Warning message: -In qunif(c(-1, 0, 0.2, 2), c(-1, 0, 0.1, 0.9, 3), rep(c(-1, 0, 1, : - NaNs produced - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); qunif(c(-1, 0, 0.2, 2), c(-1, 0, 0.1, 0.9, 3), rep(c(-1, 0, 1, 0.1, -0.1, 0.0001), 20), lower.tail=FALSE, log.p=TRUE) - [1] -1.0000000 0.0000000 NaN NaN NaN -1.0000000 - [7] NaN NaN 0.9632121 NaN NaN NaN - [13] NaN NaN NaN NaN NaN NaN - [19] NaN NaN 0.2642411 0.0000000 NaN NaN - [25] NaN -1.0000000 NaN NaN NaN NaN - [31] NaN NaN 0.6689085 NaN NaN NaN - [37] NaN NaN NaN NaN -0.4310915 0.0000000 - [43] NaN NaN NaN -1.0000000 NaN NaN - [49] NaN NaN NaN NaN NaN NaN - [55] NaN NaN 0.6321206 0.1000000 NaN NaN - [61] -1.0000000 0.0000000 NaN NaN NaN -1.0000000 - [67] NaN NaN 0.9632121 NaN NaN NaN - [73] NaN NaN NaN NaN NaN NaN - [79] NaN NaN 0.2642411 0.0000000 NaN NaN - [85] NaN -1.0000000 NaN NaN NaN NaN - [91] NaN NaN 0.6689085 NaN NaN NaN - [97] NaN NaN NaN NaN -0.4310915 0.0000000 -[103] NaN NaN NaN -1.0000000 NaN NaN -[109] NaN NaN NaN NaN NaN NaN -[115] NaN NaN 0.6321206 0.1000000 NaN NaN -Warning message: -In qunif(c(-1, 0, 0.2, 2), c(-1, 0, 0.1, 0.9, 3), rep(c(-1, 0, 1, : - NaNs produced - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); qunif(c(-1, 0, 0.2, 2), c(-1, 0, 0.1, 0.9, 3), rep(c(-1, 0, 1, 0.1, -0.1, 0.0001), 20), lower.tail=TRUE, log.p=FALSE) - [1] NaN 0.00 0.28 NaN NaN -1.00 NaN NaN NaN NaN -0.82 NaN - [13] NaN NaN NaN NaN NaN NaN NaN NaN NaN 0.00 NaN NaN - [25] NaN -1.00 0.20 NaN NaN NaN -1.00 NaN NaN NaN NaN NaN - [37] NaN NaN 0.92 NaN NaN 0.00 NaN NaN NaN -1.00 NaN NaN - [49] NaN NaN -0.60 NaN NaN NaN NaN NaN NaN 0.10 NaN NaN - [61] NaN 0.00 0.28 NaN NaN -1.00 NaN NaN NaN NaN -0.82 NaN - [73] NaN NaN NaN NaN NaN NaN NaN NaN NaN 0.00 NaN NaN - [85] NaN -1.00 0.20 NaN NaN NaN -1.00 NaN NaN NaN NaN NaN - [97] NaN NaN 0.92 NaN NaN 0.00 NaN NaN NaN -1.00 NaN NaN -[109] NaN NaN -0.60 NaN NaN NaN NaN NaN NaN 0.10 NaN NaN -Warning message: -In qunif(c(-1, 0, 0.2, 2), c(-1, 0, 0.1, 0.9, 3), rep(c(-1, 0, 1, : - NaNs produced - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); qunif(c(-1, 0, 0.2, 2), c(-1, 0, 0.1, 0.9, 3), rep(c(-1, 0, 1, 0.1, -0.1, 0.0001), 20), lower.tail=TRUE, log.p=TRUE) - [1] -1.0000000 0.0000000 NaN NaN NaN 0.0001000 - [7] NaN NaN 0.9367879 NaN NaN NaN - [13] NaN NaN NaN NaN NaN NaN - [19] NaN NaN -0.2642411 0.1000000 NaN NaN - [25] NaN 0.0000000 NaN NaN NaN NaN - [31] NaN NaN 0.4310915 NaN NaN NaN - [37] NaN NaN NaN NaN -0.6689085 0.0001000 - [43] NaN NaN NaN 0.1000000 NaN NaN - [49] NaN NaN NaN NaN NaN NaN - [55] NaN NaN 0.3678794 0.1000000 NaN NaN - [61] -1.0000000 0.0000000 NaN NaN NaN 0.0001000 - [67] NaN NaN 0.9367879 NaN NaN NaN - [73] NaN NaN NaN NaN NaN NaN - [79] NaN NaN -0.2642411 0.1000000 NaN NaN - [85] NaN 0.0000000 NaN NaN NaN NaN - [91] NaN NaN 0.4310915 NaN NaN NaN - [97] NaN NaN NaN NaN -0.6689085 0.0001000 -[103] NaN NaN NaN 0.1000000 NaN NaN -[109] NaN NaN NaN NaN NaN NaN -[115] NaN NaN 0.3678794 0.1000000 NaN NaN -Warning message: -In qunif(c(-1, 0, 0.2, 2), c(-1, 0, 0.1, 0.9, 3), rep(c(-1, 0, 1, : - NaNs produced - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); qunif(c(NA, 0, NaN, 1/0, -1/0), rep(c(1, 0, 0.1), 5), rep(c(1, 0, 0.1), 5)) - [1] NA 0.0 NaN NaN NaN NA 1.0 NaN NaN NaN NA 0.1 NaN NaN NaN -Warning message: -In qunif(c(NA, 0, NaN, 1/0, -1/0), rep(c(1, 0, 0.1), 5), rep(c(1, : - NaNs produced - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); qunif(rep(c(1, 0, 0.1), 5), c(NA, 0, NaN, 1/0, -1/0), rep(c(1, 0, 0.1), 5)) - [1] NA 0.00 NaN NaN NaN NA 1.00 NaN NaN NaN NA 0.01 NaN NaN NaN -Warning message: -In qunif(rep(c(1, 0, 0.1), 5), c(NA, 0, NaN, 1/0, -1/0), rep(c(1, : - NaNs produced - -##com.oracle.truffle.r.test.library.stats.TestStatFunctions.testFunctions32#Output.MayIgnoreWarningContext# -#set.seed(1); qunif(rep(c(1, 0, 0.1), 5), rep(c(1, 0, 0.1), 5), c(NA, 0, NaN, 1/0, -1/0)) - [1] NA 0 NaN NaN NaN NA NaN NaN NaN NaN NA NaN NaN NaN NaN -Warning message: -In qunif(rep(c(1, 0, 0.1), 5), rep(c(1, 0, 0.1), 5), c(NA, 0, NaN, : - NaNs produced - ##com.oracle.truffle.r.test.library.stats.TestStats.testCor# #{ as.integer(cor(c(1,2,3),c(1,2,5))*10000000) } [1] 9607689 diff --git a/com.oracle.truffle.r.test/src/com/oracle/truffle/r/test/library/stats/TestDistributions.java b/com.oracle.truffle.r.test/src/com/oracle/truffle/r/test/library/stats/TestDistributions.java new file mode 100644 index 0000000000..6d85cfe17d --- /dev/null +++ b/com.oracle.truffle.r.test/src/com/oracle/truffle/r/test/library/stats/TestDistributions.java @@ -0,0 +1,216 @@ +/* + * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. + * + * This code is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA + * or visit www.oracle.com if you need additional information or have any + * questions. + */ +package com.oracle.truffle.r.test.library.stats; + +import java.util.ArrayList; +import java.util.Arrays; + +import org.junit.Test; + +import com.oracle.truffle.r.test.TestBase; + +/** + * There are four R functions for each distribution function, in case of uniform distribution it is: + * punif, qunif, dunif and runif. The last one is tested in {@link TestRandGenerationFunctions}, the + * first three are tested here. + * <p> + * This test infrastructure uses some properties of those functions: each distribution has some + * parameters, e.g. uniform has 'min' and 'max', and those are used as parameters for all three -- + * punif, qunif, dunif. First parameters for pxxx and dxxx always have the same meaning (quantiles). + * First parameter of qxxx is always probability or log(probability) if log.p=TRUE. + */ +public class TestDistributions extends TestBase { + private static final String[] BOOL_VALUES = new String[]{"T", "F"}; + private static final String[] DEFAULT_Q = new String[]{"-Inf", "-0.42e-30", "0", "0.42e-30", "Inf", "NaN"}; + private static final String PROBABILITIES = "c(0, 42e-80, 0.1, 0.5, 0.7, 1-42e-80, 1)"; + private static final String[] ERROR_PROBABILITIES = new String[]{"Inf", "-Inf", "NaN", "-42", "-0.42e-38"}; + + // @formatter:off + /** + * For each distribution we define meaningful (to test) combinations of parameters. For each such + * combination we also define a list of meaningful (to test) quantile values (first argument to + * pxxx, and dxxx R functions). + */ + private static final DistrTest[] testCases = new DistrTest[]{ + distr("unif"). + test("-3, 3.3", withDefaultQ("-3", "2", "3.3")), + distr("cauchy"). + // alpha < 0 => error + test("0, -1", withQuantiles("0", "-1", "42")). + test("-5, 5", withDefaultQ("-5", "42")). + test("-0.01, 0.03", withQuantiles("0", "-1", "1", "0.42e-30")), + distr("norm"). + // sd <= 0 => error + test("0, -1", withQuantiles("0")). + test("0, 0", withDefaultQ("1")). + test("4, 4", withQuantiles("4", "-100", "0")), + distr("gamma"). + addErrorParamValues("-1", "0"). + test("1, scale=2", withDefaultQ()). + test("11e11, scale=23e-11", withQuantiles("900", "5000", "0")), + distr("beta"). + addErrorParamValues("-1", "0"). + test("0.5, 0.5", withDefaultQ()). + test("2, 5", withDefaultQ("0.5")). + test("6, 3", withQuantiles("0.6", "0.1", "42e-33")). + test("0.1, 3", withDefaultQ("0.2")). + // "p==0, q==0, p = Inf, q = Inf <==> treat as one- or two-point mass" + test("0, Inf", withDefaultQ("0.5")). + test("Inf, 0", withDefaultQ("0.6")). + test("0, 0", withDefaultQ("0.4")), + distr("exp"). + addErrorParamValues("-1", "0"). + test("13e-20", withDefaultQ("10", "-10")). + test("42", withDefaultQ("42")). + test("42e123", withDefaultQ("33e123")) + }; + // @formatter:on + + @Test + public void testDensityFunctions() { + for (DistrTest testCase : testCases) { + for (ParamsAndQuantiles paramsAndQ : testCase.paramsAndQuantiles) { + testDensityFunction("d" + testCase.name, paramsAndQ.params, paramsAndQ.quantiles); + } + testErrorParams("d" + testCase.name, testCase.paramsAndQuantiles.get(0).params, testCase.errorParamValues); + } + } + + @Test + public void testDistributionFunctions() { + for (DistrTest testCase : testCases) { + for (ParamsAndQuantiles paramsAndQ : testCase.paramsAndQuantiles) { + testDistributionFunction("p" + testCase.name, paramsAndQ.params, paramsAndQ.quantiles); + } + testErrorParams("p" + testCase.name, testCase.paramsAndQuantiles.get(0).params, testCase.errorParamValues); + } + } + + @Test + public void testQuantileFunctions() { + for (DistrTest testCase : testCases) { + String func = "q" + testCase.name; + for (ParamsAndQuantiles paramsAndQ : testCase.paramsAndQuantiles) { + testQuantileFunction(func, paramsAndQ.params, PROBABILITIES, "F"); + testQuantileFunction(func, paramsAndQ.params, "log(" + PROBABILITIES + ")", "T"); + } + String validParams = testCase.paramsAndQuantiles.get(0).params; + assertEval(Output.MayIgnoreWarningContext, template(func + "(%0, " + validParams + ")", ERROR_PROBABILITIES)); + testErrorParams(func, validParams, testCase.errorParamValues); + } + } + + private void testErrorParams(String func, String paramsTemplate, ArrayList<String> errorParamValues) { + String[] validParams = paramsTemplate.split(","); + for (int i = 0; i < validParams.length; i++) { + String[] newParams = Arrays.copyOf(validParams, validParams.length); + for (String errVal : errorParamValues) { + newParams[i] = errVal; + assertEval(Output.MayIgnoreWarningContext, func + "(0, " + String.join(", ", newParams) + ")"); + } + } + } + + private void testDensityFunction(String func, String params, String[] quantiles) { + // creates code like 'qunif(c(1, 2), -3, 3, log=%0)' where '-3,3' is params and + // 1, 2 are quantiles, template then creates two tests with %0=T and %0=F + String qVector = "c(" + String.join(", ", quantiles) + ")"; + String code = func + "(" + qVector + ", " + params + ", log=%0)"; + assertEval(Output.MayIgnoreWarningContext, template(code, BOOL_VALUES)); + } + + private void testDistributionFunction(String func, String params, String[] quantiles) { + String qVector = "c(" + String.join(", ", quantiles) + ")"; + String code = func + "(" + qVector + ", " + params + ", lower.tail=%0, log.p=%1)"; + assertEval(Output.MayIgnoreWarningContext, template(code, BOOL_VALUES, BOOL_VALUES)); + } + + private void testQuantileFunction(String func, String params, String probabilities, String logP) { + String code = func + "(" + probabilities + ", " + params + ", lower.tail=%0, log.p=" + logP + ")"; + assertEval(Output.MayIgnoreWarningContext, template(code, BOOL_VALUES)); + } + + private static DistrTest distr(String name) { + return new DistrTest(name); + } + + private static String[] withQuantiles(String... quantiles) { + return quantiles; + } + + private static String[] withDefaultQ(String... quantiles) { + String[] result = Arrays.copyOf(quantiles, quantiles.length + DEFAULT_Q.length); + System.arraycopy(DEFAULT_Q, 0, result, quantiles.length, DEFAULT_Q.length); + return result; + } + + /** + * Represents a collection of test parameters for testing a distribution with given + * {@link #name}. + */ + private static final class DistrTest { + public final String name; + public final ArrayList<ParamsAndQuantiles> paramsAndQuantiles = new ArrayList<>(); + private int paramsCount = -1; + /** + * Set of single R values that are supposed to produce error when used as any of the + * parameters. + */ + public final ArrayList<String> errorParamValues = new ArrayList<>(); + + DistrTest(String name) { + this.name = name; + addErrorParamValues("-Inf", "Inf", "NaN"); + } + + public DistrTest test(String params, String[] quantiles) { + assert paramsCount == -1 || params.split(",").length == paramsCount : "different length of params for " + name; + paramsCount = params.split(",").length; + paramsAndQuantiles.add(new ParamsAndQuantiles(params, quantiles)); + return this; + } + + public DistrTest addErrorParamValues(String... values) { + errorParamValues.addAll(Arrays.asList(values)); + return this; + } + + public DistrTest clearDefaultErrorParamValues() { + errorParamValues.clear(); + return this; + } + } + + /** + * A combination of params, e.g. "3, 10", with set of quantiles that should be tested with it. + */ + private static final class ParamsAndQuantiles { + public final String params; + public final String[] quantiles; + + ParamsAndQuantiles(String params, String[] quantiles) { + this.params = params; + this.quantiles = quantiles; + } + } +} diff --git a/com.oracle.truffle.r.test/src/com/oracle/truffle/r/test/library/stats/TestExternal_qbeta.java b/com.oracle.truffle.r.test/src/com/oracle/truffle/r/test/library/stats/TestExternal_qbeta.java deleted file mode 100644 index 742c717085..0000000000 --- a/com.oracle.truffle.r.test/src/com/oracle/truffle/r/test/library/stats/TestExternal_qbeta.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * This code is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License version 2 only, as - * published by the Free Software Foundation. - * - * This code is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - * version 2 for more details (a copy is included in the LICENSE file that - * accompanied this code). - * - * You should have received a copy of the GNU General Public License version - * 2 along with this work; if not, write to the Free Software Foundation, - * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. - * - * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA - * or visit www.oracle.com if you need additional information or have any - * questions. - */ - -package com.oracle.truffle.r.test.library.stats; - -import static com.oracle.truffle.r.test.library.stats.TestStatFunctions.PROBABILITIES; - -import org.junit.Test; - -import com.oracle.truffle.r.test.TestBase; - -/** - * Additional tests on the top of {@link TestStatFunctions}. - */ -public class TestExternal_qbeta extends TestBase { - private static final String[] BOOL_VALUES = new String[]{"T", "F"}; - - @Test - public void testQBeta() { - // check if in qbeta_raw with comment "p==0, q==0, p = Inf, q = Inf <==> treat as one- or - // two-point mass" - assertEval(template("qbeta(0.7, 0, 1/0, lower.tail=%0, log.p=F)", BOOL_VALUES)); - assertEval(template("qbeta(log(0.7), 0, 1/0, lower.tail=%0, log.p=T)", BOOL_VALUES)); - assertEval(template("qbeta(0.7, 1/0, 0, lower.tail=%0, log.p=F)", BOOL_VALUES)); - assertEval(template("qbeta(log(0.7), 1/0, 0, lower.tail=%0, log.p=T)", BOOL_VALUES)); - assertEval(template("qbeta(%0, 0, 0, lower.tail=%1, log.p=F)", new String[]{"0.1", "0.5", "0.7"}, BOOL_VALUES)); - assertEval(template("qbeta(log(%0), 0, 0, lower.tail=%1, log.p=T)", new String[]{"0.1", "0.5", "0.7"}, BOOL_VALUES)); - // checks swap_tail = (p_ > 0.5) where for lower.tail = log.p = TRUE is p_ = exp(p) - // exp(0.1) = 1.10.... - assertEval(template("qbeta(log(%0), 0.1, 3, lower.tail=T, log.p=T)", PROBABILITIES)); - // exp(-1) = 0.36... - assertEval(Output.MayIgnoreWarningContext, template("qbeta(log(%0), -1, 3, lower.tail=T, log.p=T)", PROBABILITIES)); - } -} diff --git a/com.oracle.truffle.r.test/src/com/oracle/truffle/r/test/library/stats/TestStatFunctions.java b/com.oracle.truffle.r.test/src/com/oracle/truffle/r/test/library/stats/TestStatFunctions.java index c51783a3d0..ad81c967d4 100644 --- a/com.oracle.truffle.r.test/src/com/oracle/truffle/r/test/library/stats/TestStatFunctions.java +++ b/com.oracle.truffle.r.test/src/com/oracle/truffle/r/test/library/stats/TestStatFunctions.java @@ -30,9 +30,7 @@ import com.oracle.truffle.r.test.TestBase; * Common tests for functions implemented using {@code StatsFunctions} infrastructure. */ public class TestStatFunctions extends TestBase { - public static final String[] PROBABILITIES = new String[]{"0", "42e-80", "0.1", "0.5", "0.7", "1-42e-80", "1"}; - - private static final String[] FUNCTION3_1_NAMES = {"dgamma", "dbeta", "dcauchy", "dlnorm", "dlogis", "dunif"}; + private static final String[] FUNCTION3_1_NAMES = {"dlnorm", "dlogis"}; private static final String[] FUNCTION3_1_PARAMS = { "10, 10, 10, log=TRUE", "3, 3, 3, log=FALSE", @@ -48,7 +46,7 @@ public class TestStatFunctions extends TestBase { assertEval(Output.IgnoreWhitespace, template("set.seed(1); %0(%1)", FUNCTION3_1_NAMES, FUNCTION3_1_PARAMS)); } - private static final String[] FUNCTION2_1_NAMES = {"dchisq", "dexp", "dgeom", "dpois", "dt"}; + private static final String[] FUNCTION2_1_NAMES = {"dchisq", "dgeom", "dpois", "dt"}; private static final String[] FUNCTION2_1_PARAMS = { "10, 10, log=TRUE", "3, 3, log=FALSE", @@ -63,7 +61,7 @@ public class TestStatFunctions extends TestBase { assertEval(Output.IgnoreWhitespace, template("set.seed(1); %0(%1)", FUNCTION2_1_NAMES, FUNCTION2_1_PARAMS)); } - private static final String[] FUNCTION2_2_NAMES = {"pchisq", "pexp", "qexp", "qgeom", "pgeom", "qt", "pt", "qpois", "ppois", "qchisq"}; + private static final String[] FUNCTION2_2_NAMES = {"pchisq", "qgeom", "pgeom", "qt", "pt", "qpois", "ppois", "qchisq"}; private static final String[] FUNCTION2_2_PARAMS = { "0, 10", "c(-1, 0, 0.2, 2), rep(c(-1, 0, 0.1, 0.9, 3), 4)", @@ -82,8 +80,7 @@ public class TestStatFunctions extends TestBase { assertEval(Output.IgnoreWhitespace, template("set.seed(1); %0(%1)", FUNCTION2_2_NAMES, new String[]{"rep(c(1, 0, 0.1), 5), c(NA, 0, NaN, 1/0, -1/0)"})); } - private static final String[] FUNCTION3_2_NAMES = {"pbeta", "pcauchy", "qcauchy", "qlnorm", "plnorm", "qbinom", "pnorm", "qnorm", "qlogis", "pf", "pbinom", "plogis", "punif", "qunif", "qbeta", - "qf"}; + private static final String[] FUNCTION3_2_NAMES = {"qlnorm", "plnorm", "qbinom", "qlogis", "pf", "pbinom", "plogis", "qf"}; private static final String[] FUNCTION3_2_PARAMS = { "0, 10, 10", "c(-1, 0, 0.2, 2), c(-1, 0, 0.1, 0.9, 3), rep(c(-1, 0, 1, 0.1, -0.1, 0.0001), 20)", diff --git a/mx.fastr/copyrights/gnu_r_welinder.copyright.star b/mx.fastr/copyrights/gnu_r_welinder.copyright.star new file mode 100644 index 0000000000..7010e84df1 --- /dev/null +++ b/mx.fastr/copyrights/gnu_r_welinder.copyright.star @@ -0,0 +1,12 @@ +/* + * This material is distributed under the GNU General Public License + * Version 2. You may review the terms of this license at + * http://www.gnu.org/licenses/gpl-2.0.html + * + * Copyright (C) 2005-6 Morten Welinder <terra@gnome.org> + * Copyright (C) 2005-10 The R Foundation + * Copyright (C) 2006-2015 The R Core Team + * Copyright (c) 2015, Oracle and/or its affiliates + * + * All rights reserved. + */ diff --git a/mx.fastr/copyrights/gnu_r_welinder.copyright.star.regex b/mx.fastr/copyrights/gnu_r_welinder.copyright.star.regex new file mode 100644 index 0000000000..19cd6eb637 --- /dev/null +++ b/mx.fastr/copyrights/gnu_r_welinder.copyright.star.regex @@ -0,0 +1 @@ +/\*\n \* This material is distributed under the GNU General Public License\n \* Version 2. You may review the terms of this license at\n \* http://www.gnu.org/licenses/gpl-2.0.html\n \*\n \* Copyright \([cC]\) (?:[1-2][09][0-9][0-9]--?)?([1-2][09][0-9])?[0-9] Morten Welinder <terra@gnome.org>\n \* Copyright \([cC]\) (?:[1-2][09][0-9][0-9]--?)?([1-2][09])?[0-9]?[0-9] The R Foundation\n \* Copyright \([cC]\) (?:[1-2][09][0-9][0-9]--?)?[1-2][09][0-9][0-9] The R Core Team\n \* Copyright \([cC]\) (?:(20[0-9][0-9]), )?(20[0-9][0-9]), Oracle and/or its affiliates\n \*\n \* All rights reserved.\n \*/\n.* diff --git a/mx.fastr/copyrights/overrides b/mx.fastr/copyrights/overrides index e97b3e340f..3a48c15e4f 100644 --- a/mx.fastr/copyrights/overrides +++ b/mx.fastr/copyrights/overrides @@ -29,6 +29,7 @@ com.oracle.truffle.r.library/src/com/oracle/truffle/r/library/grid/GridFunctions com.oracle.truffle.r.library/src/com/oracle/truffle/r/library/methods/MethodsListDispatch.java,gnu_r.copyright com.oracle.truffle.r.library/src/com/oracle/truffle/r/library/methods/Slot.java,gnu_r.copyright com.oracle.truffle.r.library/src/com/oracle/truffle/r/library/stats/Arithmetic.java,gnu_r_gentleman_ihaka.copyright +com.oracle.truffle.r.library/src/com/oracle/truffle/r/library/stats/DNorm.java,gnu_r.copyright com.oracle.truffle.r.library/src/com/oracle/truffle/r/library/stats/RBeta.java,gnu_r_gentleman_ihaka.copyright com.oracle.truffle.r.library/src/com/oracle/truffle/r/library/stats/RMultinom.java,gnu_r_gentleman_ihaka.copyright com.oracle.truffle.r.library/src/com/oracle/truffle/r/library/stats/Cauchy.java,gnu_r_ihaka_core.copyright @@ -74,6 +75,7 @@ com.oracle.truffle.r.library/src/com/oracle/truffle/r/library/stats/TOMS708.java com.oracle.truffle.r.library/src/com/oracle/truffle/r/library/stats/SNorm.java,gnu_r_ihaka_core.copyright com.oracle.truffle.r.library/src/com/oracle/truffle/r/library/stats/SExp.java,gnu_r_ihaka_core.copyright com.oracle.truffle.r.library/src/com/oracle/truffle/r/library/stats/RGamma.java,gnu_r_ihaka_core.copyright +com.oracle.truffle.r.library/src/com/oracle/truffle/r/library/stats/PGamma.java,gnu_r_welinder.copyright com.oracle.truffle.r.library/src/com/oracle/truffle/r/library/stats/RNbinomMu.java,gnu_r_ihaka_core.copyright com.oracle.truffle.r.library/src/com/oracle/truffle/r/library/stats/Logis.java,gnu_r_ihaka_core.copyright com.oracle.truffle.r.library/src/com/oracle/truffle/r/library/stats/Rf.java,gnu_r_ihaka_core.copyright @@ -169,7 +171,6 @@ com.oracle.truffle.r.nodes.builtin/src/com/oracle/truffle/r/nodes/builtin/base/f com.oracle.truffle.r.nodes.builtin/src/com/oracle/truffle/r/nodes/builtin/base/foreign/CallAndExternalFunctions.java,gnu_r.copyright com.oracle.truffle.r.nodes.builtin/src/com/oracle/truffle/r/nodes/builtin/base/foreign/MakeQuartzDefault.java,gnu_r.copyright com.oracle.truffle.r.nodes.builtin/src/com/oracle/truffle/r/nodes/builtin/base/foreign/ReadTableHead.java,gnu_r.copyright -com.oracle.truffle.r.nodes.builtin/src/com/oracle/truffle/r/nodes/builtin/base/foreign/Dnorm4.java,gnu_r.copyright com.oracle.truffle.r.nodes.builtin/src/com/oracle/truffle/r/nodes/builtin/base/Format.java,gnu_r.copyright com.oracle.truffle.r.nodes.builtin/src/com/oracle/truffle/r/nodes/builtin/base/FormatC.java,gnu_r.copyright com.oracle.truffle.r.nodes.builtin/src/com/oracle/truffle/r/nodes/builtin/base/GetClass.java,purdue.copyright -- GitLab