/external/apache-commons-math/src/main/java/org/apache/commons/math/ode/nonstiff/ |
H A D | 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
|
H A D | 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 [all...] |
H A D | 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);
|
H A D | 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);
|
/external/jmonkeyengine/engine/src/bullet-common/com/jme3/bullet/control/ragdoll/ |
H A D | HumanoidRagdollPreset.java | 7 import com.jme3.math.FastMath; 17 boneMap.put("head", new JointPreset(FastMath.QUARTER_PI, -FastMath.QUARTER_PI, FastMath.QUARTER_PI, -FastMath.QUARTER_PI, FastMath.QUARTER_PI, -FastMath.QUARTER_PI)); 19 boneMap.put("torso", new JointPreset(FastMath.QUARTER_PI, -FastMath.QUARTER_PI, 0, 0, FastMath [all...] |
/external/apache-commons-math/src/main/java/org/apache/commons/math/analysis/integration/ |
H A D | 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 [all...] |
/external/apache-commons-math/src/main/java/org/apache/commons/math/random/ |
H A D | UniformRandomGenerator.java | 20 import org.apache.commons.math.util.FastMath; 40 private static final double SQRT3 = FastMath.sqrt(3.0);
|
H A D | 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/ |
H A D | 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]));
|
H A D | 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));
|
H A D | 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));
|
H A D | 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/ |
H A D | 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 [all...] |
H A D | 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/ |
H A D | 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/ |
H A D | Erf.java | 20 import org.apache.commons.math.util.FastMath; 55 if (FastMath.abs(x) > 40) { 85 if (FastMath.abs(x) > 40) {
|
/external/jmonkeyengine/engine/src/core/com/jme3/effect/shapes/ |
H A D | EmitterMeshConvexHullShape.java | 3 import com.jme3.math.FastMath; 43 store.multLocal(FastMath.nextRandomFloat()); 61 store.multLocal(FastMath.nextRandomFloat());
|
/external/jmonkeyengine/engine/src/test/jme3test/math/ |
H A D | TestHalfFloat.java | 35 import com.jme3.math.FastMath; 48 short half = FastMath.convertFloatToHalf(flt); 49 float flt2 = FastMath.convertHalfToFloat(half);
|
/external/jmonkeyengine/engine/src/terrain/com/jme3/terrain/heightmap/ |
H A D | FaultHeightMap.java | 34 import com.jme3.math.FastMath;
180 / (FastMath.sqrt(FastMath.sqr(x2 - x1) + FastMath.sqr(y2 - y1)));
188 int intRadius = (int) FastMath.floor(radius);
201 float dmag = FastMath.sqrt(FastMath.sqr(dx) + FastMath.sqr(dy));
204 dist = FastMath.sign(dmag - radius)
205 * FastMath [all...] |
/external/apache-commons-math/src/main/java/org/apache/commons/math/analysis/ |
H A D | 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 [all...] |
/external/apache-commons-math/src/main/java/org/apache/commons/math/distribution/ |
H A D | 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;
|
/external/jmonkeyengine/engine/src/core/com/jme3/light/ |
H A D | SpotLight.java | 36 import com.jme3.math.FastMath; 59 protected float spotInnerAngle = FastMath.QUARTER_PI / 8; 60 protected float spotOuterAngle = FastMath.QUARTER_PI / 6; 71 float innerCos=FastMath.cos(spotInnerAngle); 72 float outerCos=FastMath.cos(spotOuterAngle); 198 oc.write(spotInnerAngle, "spotInnerAngle", FastMath.QUARTER_PI / 8); 199 oc.write(spotOuterAngle, "spotOuterAngle", FastMath.QUARTER_PI / 6); 207 spotInnerAngle = ic.readFloat("spotInnerAngle", FastMath.QUARTER_PI / 8); 208 spotOuterAngle = ic.readFloat("spotOuterAngle", FastMath.QUARTER_PI / 6);
|
/external/jmonkeyengine/engine/src/test/jme3test/audio/ |
H A D | TestReverb.java | 34 import com.jme3.math.FastMath; 67 v.setX(FastMath.nextRandomFloat()); 68 v.setY(FastMath.nextRandomFloat()); 69 v.setZ(FastMath.nextRandomFloat()); 76 nextTime = FastMath.nextRandomFloat() * 2 + 0.5f;
|
/external/apache-commons-math/src/main/java/org/apache/commons/math/stat/descriptive/moment/ |
H A D | 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/ |
H A D | 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 [all...] |