/external/apache-commons-math/src/main/java/org/apache/commons/math/ode/nonstiff/ |
GillIntegrator.java | 20 import org.apache.commons.math.util.FastMath; 57 { (FastMath.sqrt(2.0) - 1.0) / 2.0, (2.0 - FastMath.sqrt(2.0)) / 2.0 }, 58 { 0.0, -FastMath.sqrt(2.0) / 2.0, (2.0 + FastMath.sqrt(2.0)) / 2.0 } 63 1.0 / 6.0, (2.0 - FastMath.sqrt(2.0)) / 6.0, (2.0 + FastMath.sqrt(2.0)) / 6.0, 1.0 / 6.0
|
DormandPrince853Integrator.java | 20 import org.apache.commons.math.util.FastMath; 64 (12.0 - 2.0 * FastMath.sqrt(6.0)) / 135.0, (6.0 - FastMath.sqrt(6.0)) / 45.0, (6.0 - FastMath.sqrt(6.0)) / 30.0, 65 (6.0 + FastMath.sqrt(6.0)) / 30.0, 1.0/3.0, 1.0/4.0, 4.0/13.0, 127.0/195.0, 3.0/5.0, 73 {(12.0 - 2.0 * FastMath.sqrt(6.0)) / 135.0}, 76 {(6.0 - FastMath.sqrt(6.0)) / 180.0, (6.0 - FastMath.sqrt(6.0)) / 60.0}, 79 {(6.0 - FastMath.sqrt(6.0)) / 120.0, 0.0, (6.0 - FastMath.sqrt(6.0)) / 40.0} [all...] |
DormandPrince54Integrator.java | 20 import org.apache.commons.math.util.FastMath; 145 final double yScale = FastMath.max(FastMath.abs(y0[j]), FastMath.abs(y1[j])); 154 return FastMath.sqrt(error / mainSetDimension);
|
HighamHall54Integrator.java | 20 import org.apache.commons.math.util.FastMath; 119 final double yScale = FastMath.max(FastMath.abs(y0[j]), FastMath.abs(y1[j])); 128 return FastMath.sqrt(error / mainSetDimension);
|
AdaptiveStepsizeIntegrator.java | 26 import org.apache.commons.math.util.FastMath; 109 this.minStep = FastMath.abs(minStep); 110 this.maxStep = FastMath.abs(maxStep); 243 1.0e-6 : (0.01 * FastMath.sqrt(yOnScale2 / yDotOnScale2)); 260 yDDotOnScale = FastMath.sqrt(yDDotOnScale) / h; 264 final double maxInv2 = FastMath.max(FastMath.sqrt(yDotOnScale2), yDDotOnScale); 266 FastMath.max(1.0e-6, 0.001 * FastMath.abs(h)) : 267 FastMath.pow(0.01 / maxInv2, 1.0 / order) [all...] |
/external/apache-commons-math/src/main/java/org/apache/commons/math/analysis/integration/ |
LegendreGaussIntegrator.java | 25 import org.apache.commons.math.util.FastMath; 58 -1.0 / FastMath.sqrt(3.0), 59 1.0 / FastMath.sqrt(3.0) 70 -FastMath.sqrt(0.6), 72 FastMath.sqrt(0.6) 84 -FastMath.sqrt((15.0 + 2.0 * FastMath.sqrt(30.0)) / 35.0), 85 -FastMath.sqrt((15.0 - 2.0 * FastMath.sqrt(30.0)) / 35.0), 86 FastMath.sqrt((15.0 - 2.0 * FastMath.sqrt(30.0)) / 35.0) [all...] |
/frameworks/base/core/java/com/android/internal/util/ |
FastMath.java | 22 public class FastMath {
|
/external/apache-commons-math/src/main/java/org/apache/commons/math/random/ |
UniformRandomGenerator.java | 20 import org.apache.commons.math.util.FastMath; 40 private static final double SQRT3 = FastMath.sqrt(3.0);
|
BitsStreamGenerator.java | 20 import org.apache.commons.math.util.FastMath; 103 final double alpha = 2 * FastMath.PI * x; 104 final double r = FastMath.sqrt(-2 * FastMath.log(y)); 105 random = r * FastMath.cos(alpha); 106 nextGaussian = r * FastMath.sin(alpha);
|
/external/apache-commons-math/src/main/java/org/apache/commons/math/optimization/ |
SimpleRealPointChecker.java | 20 import org.apache.commons.math.util.FastMath; 78 final double difference = FastMath.abs(p[i] - c[i]); 79 final double size = FastMath.max(FastMath.abs(p[i]), FastMath.abs(c[i]));
|
SimpleScalarValueChecker.java | 20 import org.apache.commons.math.util.FastMath; 77 final double difference = FastMath.abs(p - c); 78 final double size = FastMath.max(FastMath.abs(p), FastMath.abs(c));
|
SimpleVectorialPointChecker.java | 20 import org.apache.commons.math.util.FastMath; 80 final double difference = FastMath.abs(pi - ci); 81 final double size = FastMath.max(FastMath.abs(pi), FastMath.abs(ci));
|
SimpleVectorialValueChecker.java | 20 import org.apache.commons.math.util.FastMath; 80 final double difference = FastMath.abs(pi - ci); 81 final double size = FastMath.max(FastMath.abs(pi), FastMath.abs(ci));
|
/external/apache-commons-math/src/main/java/org/apache/commons/math/complex/ |
Complex.java | 28 import org.apache.commons.math.util.FastMath; 117 if (FastMath.abs(real) < FastMath.abs(imaginary)) { 119 return FastMath.abs(real); 122 return FastMath.abs(imaginary) * FastMath.sqrt(1 + q * q); 125 return FastMath.abs(imaginary); 128 return FastMath.abs(real) * FastMath.sqrt(1 + q * q); 225 if (FastMath.abs(c) < FastMath.abs(d)) [all...] |
ComplexUtils.java | 22 import org.apache.commons.math.util.FastMath; 69 return new Complex(r * FastMath.cos(theta), r * FastMath.sin(theta));
|
/external/apache-commons-math/src/main/java/org/apache/commons/math/optimization/fitting/ |
HarmonicFunction.java | 21 import org.apache.commons.math.util.FastMath; 51 return a * FastMath.cos(omega * x + phi); 56 return new HarmonicFunction(a * omega, omega, phi + FastMath.PI / 2);
|
/external/apache-commons-math/src/main/java/org/apache/commons/math/special/ |
Erf.java | 20 import org.apache.commons.math.util.FastMath; 55 if (FastMath.abs(x) > 40) { 85 if (FastMath.abs(x) > 40) {
|
Gamma.java | 22 import org.apache.commons.math.util.FastMath; 62 private static final double HALF_LOG_2_PI = 0.5 * FastMath.log(2.0 * FastMath.PI); 110 ret = ((x + .5) * FastMath.log(tmp)) - tmp + 111 HALF_LOG_2_PI + FastMath.log(sum / x); 179 while (FastMath.abs(an/sum) > epsilon && n < maxIterations && sum < Double.POSITIVE_INFINITY) { 192 ret = FastMath.exp(-x + (a * FastMath.log(x)) - logGamma(a)) * sum; 267 ret = FastMath.exp(-x + (a * FastMath.log(x)) - logGamma(a)) * ret [all...] |
/external/apache-commons-math/src/main/java/org/apache/commons/math/analysis/ |
ComposableFunction.java | 21 import org.apache.commons.math.util.FastMath; 59 /** The {@code FastMath.abs} method wrapped as a {@link ComposableFunction}. */ 64 return FastMath.abs(d); 86 /** The {@code FastMath.sin} method wrapped as a {@link ComposableFunction}. */ 91 return FastMath.sin(d); 95 /** The {@code FastMath.sqrt} method wrapped as a {@link ComposableFunction}. */ 100 return FastMath.sqrt(d); 104 /** The {@code FastMath.sinh} method wrapped as a {@link ComposableFunction}. */ 109 return FastMath.sinh(d); 113 /** The {@code FastMath.exp} method wrapped as a {@link ComposableFunction}. * [all...] |
/external/apache-commons-math/src/main/java/org/apache/commons/math/distribution/ |
SaddlePointExpansion.java | 20 import org.apache.commons.math.util.FastMath; 49 private static final double HALF_LOG_2_PI = 0.5 * FastMath.log(MathUtils.TWO_PI); 111 if (FastMath.floor(z2) == z2) { 114 ret = Gamma.logGamma(z + 1.0) - (z + 0.5) * FastMath.log(z) + 147 if (FastMath.abs(x - mu) < 0.1 * (x + mu)) { 163 ret = x * FastMath.log(x / mu) + mu - x; 184 ret = n * FastMath.log(q); 190 ret = n * FastMath.log(p); 197 ret = -0.5 * FastMath.log(f) + ret;
|
AbstractIntegerDistribution.java | 25 import org.apache.commons.math.util.FastMath; 70 return cumulativeProbability((int) FastMath.floor(x)); 93 if (FastMath.floor(x0) < x0) { 94 return cumulativeProbability(((int) FastMath.floor(x0)) + 1, 95 (int) FastMath.floor(x1)); // don't want to count mass below x0 97 return cumulativeProbability((int) FastMath.floor(x0), 98 (int) FastMath.floor(x1)); 126 double fl = FastMath.floor(x);
|
WeibullDistributionImpl.java | 25 import org.apache.commons.math.util.FastMath; 103 ret = 1.0 - FastMath.exp(-FastMath.pow(x / scale, shape)); 138 final double xscalepow = FastMath.pow(xscale, shape - 1); 141 * FastMath.pow(x / scale, shape) = 142 * FastMath.pow(xscale, shape) = 143 * FastMath.pow(xscale, shape - 1) * xscale 147 return (shape / scale) * xscalepow * FastMath.exp(-xscalepowshape); 173 ret = scale * FastMath.pow(-FastMath.log(1.0 - p), 1.0 / shape) [all...] |
/external/apache-commons-math/src/main/java/org/apache/commons/math/stat/descriptive/moment/ |
StandardDeviation.java | 22 import org.apache.commons.math.util.FastMath; 126 return FastMath.sqrt(variance.getResult()); 153 return FastMath.sqrt(variance.evaluate(values)); 176 return FastMath.sqrt(variance.evaluate(values, begin, length)); 205 return FastMath.sqrt(variance.evaluate(values, mean, begin, length)); 230 return FastMath.sqrt(variance.evaluate(values, mean));
|
/external/apache-commons-math/src/main/java/org/apache/commons/math/analysis/solvers/ |
BrentSolver.java | 25 import org.apache.commons.math.util.FastMath; 142 if (FastMath.abs(yInitial) <= functionValueAccuracy) { 149 if (FastMath.abs(yMin) <= functionValueAccuracy) { 161 if (FastMath.abs(yMax) <= functionValueAccuracy) { 237 if (FastMath.abs(yMin) <= functionValueAccuracy) { 240 } else if (FastMath.abs(yMax) <= functionValueAccuracy) { 314 if (FastMath.abs(y2) < FastMath.abs(y1)) { 323 if (FastMath.abs(y1) <= functionValueAccuracy) { 332 FastMath.max(relativeAccuracy * FastMath.abs(x1), absoluteAccuracy) [all...] |
/external/apache-commons-math/src/main/java/org/apache/commons/math/geometry/ |
Vector3D.java | 25 import org.apache.commons.math.util.FastMath; 111 double cosDelta = FastMath.cos(delta); 112 this.x = FastMath.cos(alpha) * cosDelta; 113 this.y = FastMath.sin(alpha) * cosDelta; 114 this.z = FastMath.sin(delta); 207 return FastMath.abs(x) + FastMath.abs(y) + FastMath.abs(z); 214 return FastMath.sqrt (x * x + y * y + z * z); 228 return FastMath.max(FastMath.max(FastMath.abs(x), FastMath.abs(y)), FastMath.abs(z)) [all...] |