
(FPCore (x y z)
:precision binary64
(/
(*
(- x 2.0)
(+
(*
(+ (* (+ (* (+ (* x 4.16438922228) 78.6994924154) x) 137.519416416) x) y)
x)
z))
(+
(* (+ (* (+ (* (+ x 43.3400022514) x) 263.505074721) x) 313.399215894) x)
47.066876606)))
double code(double x, double y, double z) {
return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606);
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = ((x - 2.0d0) * ((((((((x * 4.16438922228d0) + 78.6994924154d0) * x) + 137.519416416d0) * x) + y) * x) + z)) / (((((((x + 43.3400022514d0) * x) + 263.505074721d0) * x) + 313.399215894d0) * x) + 47.066876606d0)
end function
public static double code(double x, double y, double z) {
return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606);
}
def code(x, y, z): return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606)
function code(x, y, z) return Float64(Float64(Float64(x - 2.0) * Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606)) end
function tmp = code(x, y, z) tmp = ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606); end
code[x_, y_, z_] := N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(N[(N[(N[(N[(N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision] * x), $MachinePrecision] + 137.519416416), $MachinePrecision] * x), $MachinePrecision] + y), $MachinePrecision] * x), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(x + 43.3400022514), $MachinePrecision] * x), $MachinePrecision] + 263.505074721), $MachinePrecision] * x), $MachinePrecision] + 313.399215894), $MachinePrecision] * x), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 28 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z)
:precision binary64
(/
(*
(- x 2.0)
(+
(*
(+ (* (+ (* (+ (* x 4.16438922228) 78.6994924154) x) 137.519416416) x) y)
x)
z))
(+
(* (+ (* (+ (* (+ x 43.3400022514) x) 263.505074721) x) 313.399215894) x)
47.066876606)))
double code(double x, double y, double z) {
return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606);
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = ((x - 2.0d0) * ((((((((x * 4.16438922228d0) + 78.6994924154d0) * x) + 137.519416416d0) * x) + y) * x) + z)) / (((((((x + 43.3400022514d0) * x) + 263.505074721d0) * x) + 313.399215894d0) * x) + 47.066876606d0)
end function
public static double code(double x, double y, double z) {
return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606);
}
def code(x, y, z): return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606)
function code(x, y, z) return Float64(Float64(Float64(x - 2.0) * Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606)) end
function tmp = code(x, y, z) tmp = ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606); end
code[x_, y_, z_] := N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(N[(N[(N[(N[(N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision] * x), $MachinePrecision] + 137.519416416), $MachinePrecision] * x), $MachinePrecision] + y), $MachinePrecision] * x), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(x + 43.3400022514), $MachinePrecision] * x), $MachinePrecision] + 263.505074721), $MachinePrecision] * x), $MachinePrecision] + 313.399215894), $MachinePrecision] * x), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606}
\end{array}
(FPCore (x y z)
:precision binary64
(let* ((t_0
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))
(t_1
(*
x
(+
(* x (+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))
y))))
(if (<= (/ (* (- x 2.0) (+ t_1 z)) t_0) INFINITY)
(* (+ x -2.0) (+ (/ t_1 t_0) (/ z t_0)))
(*
(+ x -2.0)
(+
(+ (+ 4.16438922228 (/ 3451.550173699799 (* x x))) (/ y (pow x 3.0)))
(/ -101.7851458539211 x))))))
double code(double x, double y, double z) {
double t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606;
double t_1 = x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y);
double tmp;
if ((((x - 2.0) * (t_1 + z)) / t_0) <= ((double) INFINITY)) {
tmp = (x + -2.0) * ((t_1 / t_0) + (z / t_0));
} else {
tmp = (x + -2.0) * (((4.16438922228 + (3451.550173699799 / (x * x))) + (y / pow(x, 3.0))) + (-101.7851458539211 / x));
}
return tmp;
}
public static double code(double x, double y, double z) {
double t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606;
double t_1 = x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y);
double tmp;
if ((((x - 2.0) * (t_1 + z)) / t_0) <= Double.POSITIVE_INFINITY) {
tmp = (x + -2.0) * ((t_1 / t_0) + (z / t_0));
} else {
tmp = (x + -2.0) * (((4.16438922228 + (3451.550173699799 / (x * x))) + (y / Math.pow(x, 3.0))) + (-101.7851458539211 / x));
}
return tmp;
}
def code(x, y, z): t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606 t_1 = x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y) tmp = 0 if (((x - 2.0) * (t_1 + z)) / t_0) <= math.inf: tmp = (x + -2.0) * ((t_1 / t_0) + (z / t_0)) else: tmp = (x + -2.0) * (((4.16438922228 + (3451.550173699799 / (x * x))) + (y / math.pow(x, 3.0))) + (-101.7851458539211 / x)) return tmp
function code(x, y, z) t_0 = Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) t_1 = Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) tmp = 0.0 if (Float64(Float64(Float64(x - 2.0) * Float64(t_1 + z)) / t_0) <= Inf) tmp = Float64(Float64(x + -2.0) * Float64(Float64(t_1 / t_0) + Float64(z / t_0))); else tmp = Float64(Float64(x + -2.0) * Float64(Float64(Float64(4.16438922228 + Float64(3451.550173699799 / Float64(x * x))) + Float64(y / (x ^ 3.0))) + Float64(-101.7851458539211 / x))); end return tmp end
function tmp_2 = code(x, y, z) t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606; t_1 = x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y); tmp = 0.0; if ((((x - 2.0) * (t_1 + z)) / t_0) <= Inf) tmp = (x + -2.0) * ((t_1 / t_0) + (z / t_0)); else tmp = (x + -2.0) * (((4.16438922228 + (3451.550173699799 / (x * x))) + (y / (x ^ 3.0))) + (-101.7851458539211 / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]}, Block[{t$95$1 = N[(x * N[(N[(x * N[(N[(x * N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision]), $MachinePrecision] + 137.519416416), $MachinePrecision]), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(N[(N[(x - 2.0), $MachinePrecision] * N[(t$95$1 + z), $MachinePrecision]), $MachinePrecision] / t$95$0), $MachinePrecision], Infinity], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(t$95$1 / t$95$0), $MachinePrecision] + N[(z / t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(N[(4.16438922228 + N[(3451.550173699799 / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y / N[Power[x, 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(-101.7851458539211 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606\\
t_1 := x \cdot \left(x \cdot \left(x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right) + 137.519416416\right) + y\right)\\
\mathbf{if}\;\frac{\left(x - 2\right) \cdot \left(t_1 + z\right)}{t_0} \leq \infty:\\
\;\;\;\;\left(x + -2\right) \cdot \left(\frac{t_1}{t_0} + \frac{z}{t_0}\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(\left(\left(4.16438922228 + \frac{3451.550173699799}{x \cdot x}\right) + \frac{y}{{x}^{3}}\right) + \frac{-101.7851458539211}{x}\right)\\
\end{array}
\end{array}
if (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) < +inf.0Initial program 96.0%
*-commutative96.0%
associate-*l/99.5%
*-commutative99.5%
sub-neg99.5%
metadata-eval99.5%
Simplified99.5%
Taylor expanded in z around 0 99.6%
if +inf.0 < (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) Initial program 0.0%
*-commutative0.0%
associate-*l/0.0%
*-commutative0.0%
sub-neg0.0%
metadata-eval0.0%
Simplified0.0%
Taylor expanded in x around -inf 99.2%
sub-neg99.2%
+-commutative99.2%
mul-1-neg99.2%
unsub-neg99.2%
associate-*r/99.2%
metadata-eval99.2%
unpow299.2%
mul-1-neg99.2%
unsub-neg99.2%
associate-*r/99.2%
metadata-eval99.2%
distribute-neg-frac99.2%
metadata-eval99.2%
Simplified99.2%
Taylor expanded in y around inf 99.2%
mul-1-neg99.2%
distribute-neg-frac99.2%
Simplified99.2%
Final simplification99.4%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))
(t_1
(*
x
(+
(* x (+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))
y))))
(if (<= (/ (* (- x 2.0) (+ t_1 z)) t_0) INFINITY)
(* (+ x -2.0) (+ (/ t_1 t_0) (/ z t_0)))
(+
(/ 4752.4581585918595 x)
(-
(+ (* x 4.16438922228) (/ y (* x x)))
(+ 110.1139242984811 (/ 207551.7024428275 (* x x))))))))
double code(double x, double y, double z) {
double t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606;
double t_1 = x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y);
double tmp;
if ((((x - 2.0) * (t_1 + z)) / t_0) <= ((double) INFINITY)) {
tmp = (x + -2.0) * ((t_1 / t_0) + (z / t_0));
} else {
tmp = (4752.4581585918595 / x) + (((x * 4.16438922228) + (y / (x * x))) - (110.1139242984811 + (207551.7024428275 / (x * x))));
}
return tmp;
}
public static double code(double x, double y, double z) {
double t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606;
double t_1 = x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y);
double tmp;
if ((((x - 2.0) * (t_1 + z)) / t_0) <= Double.POSITIVE_INFINITY) {
tmp = (x + -2.0) * ((t_1 / t_0) + (z / t_0));
} else {
tmp = (4752.4581585918595 / x) + (((x * 4.16438922228) + (y / (x * x))) - (110.1139242984811 + (207551.7024428275 / (x * x))));
}
return tmp;
}
def code(x, y, z): t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606 t_1 = x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y) tmp = 0 if (((x - 2.0) * (t_1 + z)) / t_0) <= math.inf: tmp = (x + -2.0) * ((t_1 / t_0) + (z / t_0)) else: tmp = (4752.4581585918595 / x) + (((x * 4.16438922228) + (y / (x * x))) - (110.1139242984811 + (207551.7024428275 / (x * x)))) return tmp
function code(x, y, z) t_0 = Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) t_1 = Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) tmp = 0.0 if (Float64(Float64(Float64(x - 2.0) * Float64(t_1 + z)) / t_0) <= Inf) tmp = Float64(Float64(x + -2.0) * Float64(Float64(t_1 / t_0) + Float64(z / t_0))); else tmp = Float64(Float64(4752.4581585918595 / x) + Float64(Float64(Float64(x * 4.16438922228) + Float64(y / Float64(x * x))) - Float64(110.1139242984811 + Float64(207551.7024428275 / Float64(x * x))))); end return tmp end
function tmp_2 = code(x, y, z) t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606; t_1 = x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y); tmp = 0.0; if ((((x - 2.0) * (t_1 + z)) / t_0) <= Inf) tmp = (x + -2.0) * ((t_1 / t_0) + (z / t_0)); else tmp = (4752.4581585918595 / x) + (((x * 4.16438922228) + (y / (x * x))) - (110.1139242984811 + (207551.7024428275 / (x * x)))); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]}, Block[{t$95$1 = N[(x * N[(N[(x * N[(N[(x * N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision]), $MachinePrecision] + 137.519416416), $MachinePrecision]), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(N[(N[(x - 2.0), $MachinePrecision] * N[(t$95$1 + z), $MachinePrecision]), $MachinePrecision] / t$95$0), $MachinePrecision], Infinity], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(t$95$1 / t$95$0), $MachinePrecision] + N[(z / t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(4752.4581585918595 / x), $MachinePrecision] + N[(N[(N[(x * 4.16438922228), $MachinePrecision] + N[(y / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(110.1139242984811 + N[(207551.7024428275 / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606\\
t_1 := x \cdot \left(x \cdot \left(x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right) + 137.519416416\right) + y\right)\\
\mathbf{if}\;\frac{\left(x - 2\right) \cdot \left(t_1 + z\right)}{t_0} \leq \infty:\\
\;\;\;\;\left(x + -2\right) \cdot \left(\frac{t_1}{t_0} + \frac{z}{t_0}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{4752.4581585918595}{x} + \left(\left(x \cdot 4.16438922228 + \frac{y}{x \cdot x}\right) - \left(110.1139242984811 + \frac{207551.7024428275}{x \cdot x}\right)\right)\\
\end{array}
\end{array}
if (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) < +inf.0Initial program 96.0%
*-commutative96.0%
associate-*l/99.5%
*-commutative99.5%
sub-neg99.5%
metadata-eval99.5%
Simplified99.5%
Taylor expanded in z around 0 99.6%
if +inf.0 < (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) Initial program 0.0%
Taylor expanded in x around inf 0.0%
cube-mult0.0%
unpow20.0%
distribute-rgt-out0.0%
+-commutative0.0%
unpow20.0%
Simplified0.0%
Taylor expanded in x around inf 99.2%
associate--l+99.2%
associate-*r/99.2%
metadata-eval99.2%
+-commutative99.2%
*-commutative99.2%
unpow299.2%
associate-*r/99.2%
metadata-eval99.2%
unpow299.2%
Simplified99.2%
Final simplification99.4%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))
(t_1
(*
x
(+
(* x (+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))
y))))
(if (<= (/ (* (- x 2.0) (+ t_1 z)) t_0) INFINITY)
(*
(+ x -2.0)
(+
(/ t_1 t_0)
(/
z
(+
47.066876606
(* x (+ 313.399215894 (* (+ x 43.3400022514) (* x x))))))))
(+
(/ 4752.4581585918595 x)
(-
(+ (* x 4.16438922228) (/ y (* x x)))
(+ 110.1139242984811 (/ 207551.7024428275 (* x x))))))))
double code(double x, double y, double z) {
double t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606;
double t_1 = x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y);
double tmp;
if ((((x - 2.0) * (t_1 + z)) / t_0) <= ((double) INFINITY)) {
tmp = (x + -2.0) * ((t_1 / t_0) + (z / (47.066876606 + (x * (313.399215894 + ((x + 43.3400022514) * (x * x)))))));
} else {
tmp = (4752.4581585918595 / x) + (((x * 4.16438922228) + (y / (x * x))) - (110.1139242984811 + (207551.7024428275 / (x * x))));
}
return tmp;
}
public static double code(double x, double y, double z) {
double t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606;
double t_1 = x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y);
double tmp;
if ((((x - 2.0) * (t_1 + z)) / t_0) <= Double.POSITIVE_INFINITY) {
tmp = (x + -2.0) * ((t_1 / t_0) + (z / (47.066876606 + (x * (313.399215894 + ((x + 43.3400022514) * (x * x)))))));
} else {
tmp = (4752.4581585918595 / x) + (((x * 4.16438922228) + (y / (x * x))) - (110.1139242984811 + (207551.7024428275 / (x * x))));
}
return tmp;
}
def code(x, y, z): t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606 t_1 = x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y) tmp = 0 if (((x - 2.0) * (t_1 + z)) / t_0) <= math.inf: tmp = (x + -2.0) * ((t_1 / t_0) + (z / (47.066876606 + (x * (313.399215894 + ((x + 43.3400022514) * (x * x))))))) else: tmp = (4752.4581585918595 / x) + (((x * 4.16438922228) + (y / (x * x))) - (110.1139242984811 + (207551.7024428275 / (x * x)))) return tmp
function code(x, y, z) t_0 = Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) t_1 = Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) tmp = 0.0 if (Float64(Float64(Float64(x - 2.0) * Float64(t_1 + z)) / t_0) <= Inf) tmp = Float64(Float64(x + -2.0) * Float64(Float64(t_1 / t_0) + Float64(z / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(Float64(x + 43.3400022514) * Float64(x * x)))))))); else tmp = Float64(Float64(4752.4581585918595 / x) + Float64(Float64(Float64(x * 4.16438922228) + Float64(y / Float64(x * x))) - Float64(110.1139242984811 + Float64(207551.7024428275 / Float64(x * x))))); end return tmp end
function tmp_2 = code(x, y, z) t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606; t_1 = x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y); tmp = 0.0; if ((((x - 2.0) * (t_1 + z)) / t_0) <= Inf) tmp = (x + -2.0) * ((t_1 / t_0) + (z / (47.066876606 + (x * (313.399215894 + ((x + 43.3400022514) * (x * x))))))); else tmp = (4752.4581585918595 / x) + (((x * 4.16438922228) + (y / (x * x))) - (110.1139242984811 + (207551.7024428275 / (x * x)))); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]}, Block[{t$95$1 = N[(x * N[(N[(x * N[(N[(x * N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision]), $MachinePrecision] + 137.519416416), $MachinePrecision]), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(N[(N[(x - 2.0), $MachinePrecision] * N[(t$95$1 + z), $MachinePrecision]), $MachinePrecision] / t$95$0), $MachinePrecision], Infinity], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(t$95$1 / t$95$0), $MachinePrecision] + N[(z / N[(47.066876606 + N[(x * N[(313.399215894 + N[(N[(x + 43.3400022514), $MachinePrecision] * N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(4752.4581585918595 / x), $MachinePrecision] + N[(N[(N[(x * 4.16438922228), $MachinePrecision] + N[(y / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(110.1139242984811 + N[(207551.7024428275 / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606\\
t_1 := x \cdot \left(x \cdot \left(x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right) + 137.519416416\right) + y\right)\\
\mathbf{if}\;\frac{\left(x - 2\right) \cdot \left(t_1 + z\right)}{t_0} \leq \infty:\\
\;\;\;\;\left(x + -2\right) \cdot \left(\frac{t_1}{t_0} + \frac{z}{47.066876606 + x \cdot \left(313.399215894 + \left(x + 43.3400022514\right) \cdot \left(x \cdot x\right)\right)}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{4752.4581585918595}{x} + \left(\left(x \cdot 4.16438922228 + \frac{y}{x \cdot x}\right) - \left(110.1139242984811 + \frac{207551.7024428275}{x \cdot x}\right)\right)\\
\end{array}
\end{array}
if (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) < +inf.0Initial program 96.0%
*-commutative96.0%
associate-*l/99.5%
*-commutative99.5%
sub-neg99.5%
metadata-eval99.5%
Simplified99.5%
Taylor expanded in z around 0 99.6%
Taylor expanded in x around inf 98.4%
cube-mult98.4%
unpow298.4%
distribute-rgt-out98.4%
unpow298.4%
+-commutative98.4%
Simplified98.4%
if +inf.0 < (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) Initial program 0.0%
Taylor expanded in x around inf 0.0%
cube-mult0.0%
unpow20.0%
distribute-rgt-out0.0%
+-commutative0.0%
unpow20.0%
Simplified0.0%
Taylor expanded in x around inf 99.2%
associate--l+99.2%
associate-*r/99.2%
metadata-eval99.2%
+-commutative99.2%
*-commutative99.2%
unpow299.2%
associate-*r/99.2%
metadata-eval99.2%
unpow299.2%
Simplified99.2%
Final simplification98.7%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))
(t_1
(/
(*
(- x 2.0)
(+
(*
x
(+
(*
x
(+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))
y))
z))
t_0)))
(if (<= t_1 2e+288)
t_1
(- (* (- x 2.0) 4.16438922228) (* z (- (* 2.0 (/ 1.0 t_0)) (/ x t_0)))))))
double code(double x, double y, double z) {
double t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606;
double t_1 = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / t_0;
double tmp;
if (t_1 <= 2e+288) {
tmp = t_1;
} else {
tmp = ((x - 2.0) * 4.16438922228) - (z * ((2.0 * (1.0 / t_0)) - (x / t_0)));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: t_1
real(8) :: tmp
t_0 = (x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0
t_1 = ((x - 2.0d0) * ((x * ((x * ((x * ((x * 4.16438922228d0) + 78.6994924154d0)) + 137.519416416d0)) + y)) + z)) / t_0
if (t_1 <= 2d+288) then
tmp = t_1
else
tmp = ((x - 2.0d0) * 4.16438922228d0) - (z * ((2.0d0 * (1.0d0 / t_0)) - (x / t_0)))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606;
double t_1 = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / t_0;
double tmp;
if (t_1 <= 2e+288) {
tmp = t_1;
} else {
tmp = ((x - 2.0) * 4.16438922228) - (z * ((2.0 * (1.0 / t_0)) - (x / t_0)));
}
return tmp;
}
def code(x, y, z): t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606 t_1 = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / t_0 tmp = 0 if t_1 <= 2e+288: tmp = t_1 else: tmp = ((x - 2.0) * 4.16438922228) - (z * ((2.0 * (1.0 / t_0)) - (x / t_0))) return tmp
function code(x, y, z) t_0 = Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) t_1 = Float64(Float64(Float64(x - 2.0) * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / t_0) tmp = 0.0 if (t_1 <= 2e+288) tmp = t_1; else tmp = Float64(Float64(Float64(x - 2.0) * 4.16438922228) - Float64(z * Float64(Float64(2.0 * Float64(1.0 / t_0)) - Float64(x / t_0)))); end return tmp end
function tmp_2 = code(x, y, z) t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606; t_1 = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / t_0; tmp = 0.0; if (t_1 <= 2e+288) tmp = t_1; else tmp = ((x - 2.0) * 4.16438922228) - (z * ((2.0 * (1.0 / t_0)) - (x / t_0))); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]}, Block[{t$95$1 = N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(x * N[(N[(x * N[(N[(x * N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision]), $MachinePrecision] + 137.519416416), $MachinePrecision]), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / t$95$0), $MachinePrecision]}, If[LessEqual[t$95$1, 2e+288], t$95$1, N[(N[(N[(x - 2.0), $MachinePrecision] * 4.16438922228), $MachinePrecision] - N[(z * N[(N[(2.0 * N[(1.0 / t$95$0), $MachinePrecision]), $MachinePrecision] - N[(x / t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606\\
t_1 := \frac{\left(x - 2\right) \cdot \left(x \cdot \left(x \cdot \left(x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right) + 137.519416416\right) + y\right) + z\right)}{t_0}\\
\mathbf{if}\;t_1 \leq 2 \cdot 10^{+288}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;\left(x - 2\right) \cdot 4.16438922228 - z \cdot \left(2 \cdot \frac{1}{t_0} - \frac{x}{t_0}\right)\\
\end{array}
\end{array}
if (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) < 2e288Initial program 98.4%
if 2e288 < (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) Initial program 1.1%
*-commutative1.1%
associate-*l/4.8%
*-commutative4.8%
sub-neg4.8%
metadata-eval4.8%
Simplified4.8%
Taylor expanded in z around 0 4.8%
Taylor expanded in x around inf 98.8%
Taylor expanded in z around 0 98.8%
Final simplification98.5%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(/
(*
(- x 2.0)
(+
(*
x
(+
(*
x
(+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))
y))
z))
(+
(*
x
(+
(* x (+ (* x (+ x 43.3400022514)) 263.505074721))
313.399215894))
47.066876606))))
(if (<= t_0 2e+260)
t_0
(*
(+ x -2.0)
(+
4.16438922228
(/
z
(+
47.066876606
(* x (+ 313.399215894 (* x (+ 263.505074721 (* x x))))))))))))
double code(double x, double y, double z) {
double t_0 = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606);
double tmp;
if (t_0 <= 2e+260) {
tmp = t_0;
} else {
tmp = (x + -2.0) * (4.16438922228 + (z / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * x))))))));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = ((x - 2.0d0) * ((x * ((x * ((x * ((x * 4.16438922228d0) + 78.6994924154d0)) + 137.519416416d0)) + y)) + z)) / ((x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0)
if (t_0 <= 2d+260) then
tmp = t_0
else
tmp = (x + (-2.0d0)) * (4.16438922228d0 + (z / (47.066876606d0 + (x * (313.399215894d0 + (x * (263.505074721d0 + (x * x))))))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606);
double tmp;
if (t_0 <= 2e+260) {
tmp = t_0;
} else {
tmp = (x + -2.0) * (4.16438922228 + (z / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * x))))))));
}
return tmp;
}
def code(x, y, z): t_0 = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) tmp = 0 if t_0 <= 2e+260: tmp = t_0 else: tmp = (x + -2.0) * (4.16438922228 + (z / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * x)))))))) return tmp
function code(x, y, z) t_0 = Float64(Float64(Float64(x - 2.0) * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) tmp = 0.0 if (t_0 <= 2e+260) tmp = t_0; else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(z / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * Float64(263.505074721 + Float64(x * x))))))))); end return tmp end
function tmp_2 = code(x, y, z) t_0 = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606); tmp = 0.0; if (t_0 <= 2e+260) tmp = t_0; else tmp = (x + -2.0) * (4.16438922228 + (z / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * x)))))))); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(x * N[(N[(x * N[(N[(x * N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision]), $MachinePrecision] + 137.519416416), $MachinePrecision]), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$0, 2e+260], t$95$0, N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(z / N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * N[(263.505074721 + N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{\left(x - 2\right) \cdot \left(x \cdot \left(x \cdot \left(x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right) + 137.519416416\right) + y\right) + z\right)}{x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606}\\
\mathbf{if}\;t_0 \leq 2 \cdot 10^{+260}:\\
\;\;\;\;t_0\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{z}{47.066876606 + x \cdot \left(313.399215894 + x \cdot \left(263.505074721 + x \cdot x\right)\right)}\right)\\
\end{array}
\end{array}
if (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) < 2.00000000000000013e260Initial program 98.3%
if 2.00000000000000013e260 < (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) Initial program 4.8%
*-commutative4.8%
associate-*l/8.3%
*-commutative8.3%
sub-neg8.3%
metadata-eval8.3%
Simplified8.3%
Taylor expanded in z around 0 8.3%
Taylor expanded in x around inf 98.8%
Taylor expanded in x around inf 98.8%
unpow298.8%
Simplified98.8%
Final simplification98.5%
(FPCore (x y z)
:precision binary64
(if (<= x -8e+59)
(*
(+ x -2.0)
(+
4.16438922228
(/
z
(+
47.066876606
(* x (+ 313.399215894 (* x (+ 263.505074721 (* x x)))))))))
(if (<= x 9e+34)
(/
(*
(- x 2.0)
(+
(*
x
(+
(* x (+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))
y))
z))
(+ 47.066876606 (* x (+ 313.399215894 (* (+ x 43.3400022514) (* x x))))))
(+
(/ 4752.4581585918595 x)
(-
(+ (* x 4.16438922228) (/ y (* x x)))
(+ 110.1139242984811 (/ 207551.7024428275 (* x x))))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -8e+59) {
tmp = (x + -2.0) * (4.16438922228 + (z / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * x))))))));
} else if (x <= 9e+34) {
tmp = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / (47.066876606 + (x * (313.399215894 + ((x + 43.3400022514) * (x * x)))));
} else {
tmp = (4752.4581585918595 / x) + (((x * 4.16438922228) + (y / (x * x))) - (110.1139242984811 + (207551.7024428275 / (x * x))));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-8d+59)) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + (z / (47.066876606d0 + (x * (313.399215894d0 + (x * (263.505074721d0 + (x * x))))))))
else if (x <= 9d+34) then
tmp = ((x - 2.0d0) * ((x * ((x * ((x * ((x * 4.16438922228d0) + 78.6994924154d0)) + 137.519416416d0)) + y)) + z)) / (47.066876606d0 + (x * (313.399215894d0 + ((x + 43.3400022514d0) * (x * x)))))
else
tmp = (4752.4581585918595d0 / x) + (((x * 4.16438922228d0) + (y / (x * x))) - (110.1139242984811d0 + (207551.7024428275d0 / (x * x))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -8e+59) {
tmp = (x + -2.0) * (4.16438922228 + (z / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * x))))))));
} else if (x <= 9e+34) {
tmp = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / (47.066876606 + (x * (313.399215894 + ((x + 43.3400022514) * (x * x)))));
} else {
tmp = (4752.4581585918595 / x) + (((x * 4.16438922228) + (y / (x * x))) - (110.1139242984811 + (207551.7024428275 / (x * x))));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -8e+59: tmp = (x + -2.0) * (4.16438922228 + (z / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * x)))))))) elif x <= 9e+34: tmp = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / (47.066876606 + (x * (313.399215894 + ((x + 43.3400022514) * (x * x))))) else: tmp = (4752.4581585918595 / x) + (((x * 4.16438922228) + (y / (x * x))) - (110.1139242984811 + (207551.7024428275 / (x * x)))) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -8e+59) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(z / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * Float64(263.505074721 + Float64(x * x))))))))); elseif (x <= 9e+34) tmp = Float64(Float64(Float64(x - 2.0) * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(Float64(x + 43.3400022514) * Float64(x * x)))))); else tmp = Float64(Float64(4752.4581585918595 / x) + Float64(Float64(Float64(x * 4.16438922228) + Float64(y / Float64(x * x))) - Float64(110.1139242984811 + Float64(207551.7024428275 / Float64(x * x))))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -8e+59) tmp = (x + -2.0) * (4.16438922228 + (z / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * x)))))))); elseif (x <= 9e+34) tmp = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / (47.066876606 + (x * (313.399215894 + ((x + 43.3400022514) * (x * x))))); else tmp = (4752.4581585918595 / x) + (((x * 4.16438922228) + (y / (x * x))) - (110.1139242984811 + (207551.7024428275 / (x * x)))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -8e+59], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(z / N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * N[(263.505074721 + N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 9e+34], N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(x * N[(N[(x * N[(N[(x * N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision]), $MachinePrecision] + 137.519416416), $MachinePrecision]), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / N[(47.066876606 + N[(x * N[(313.399215894 + N[(N[(x + 43.3400022514), $MachinePrecision] * N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(4752.4581585918595 / x), $MachinePrecision] + N[(N[(N[(x * 4.16438922228), $MachinePrecision] + N[(y / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(110.1139242984811 + N[(207551.7024428275 / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -8 \cdot 10^{+59}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{z}{47.066876606 + x \cdot \left(313.399215894 + x \cdot \left(263.505074721 + x \cdot x\right)\right)}\right)\\
\mathbf{elif}\;x \leq 9 \cdot 10^{+34}:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot \left(x \cdot \left(x \cdot \left(x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right) + 137.519416416\right) + y\right) + z\right)}{47.066876606 + x \cdot \left(313.399215894 + \left(x + 43.3400022514\right) \cdot \left(x \cdot x\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{4752.4581585918595}{x} + \left(\left(x \cdot 4.16438922228 + \frac{y}{x \cdot x}\right) - \left(110.1139242984811 + \frac{207551.7024428275}{x \cdot x}\right)\right)\\
\end{array}
\end{array}
if x < -7.99999999999999977e59Initial program 0.2%
*-commutative0.2%
associate-*l/4.5%
*-commutative4.5%
sub-neg4.5%
metadata-eval4.5%
Simplified4.5%
Taylor expanded in z around 0 4.5%
Taylor expanded in x around inf 99.1%
Taylor expanded in x around inf 99.1%
unpow299.1%
Simplified99.1%
if -7.99999999999999977e59 < x < 9.0000000000000001e34Initial program 99.0%
Taylor expanded in x around inf 97.8%
cube-mult97.7%
unpow297.7%
distribute-rgt-out97.7%
+-commutative97.7%
unpow297.7%
Simplified97.7%
if 9.0000000000000001e34 < x Initial program 4.8%
Taylor expanded in x around inf 4.8%
cube-mult4.8%
unpow24.8%
distribute-rgt-out4.8%
+-commutative4.8%
unpow24.8%
Simplified4.8%
Taylor expanded in x around inf 99.3%
associate--l+99.3%
associate-*r/99.3%
metadata-eval99.3%
+-commutative99.3%
*-commutative99.3%
unpow299.3%
associate-*r/99.3%
metadata-eval99.3%
unpow299.3%
Simplified99.3%
Final simplification98.4%
(FPCore (x y z)
:precision binary64
(if (<= x -5.4e+25)
(*
(+ x -2.0)
(+
4.16438922228
(/
z
(+
47.066876606
(* x (+ 313.399215894 (* x (+ 263.505074721 (* x x)))))))))
(if (<= x 1.4e+23)
(/
(* (- x 2.0) (+ z (* x (+ y (* x 137.519416416)))))
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))
(+
(/ 4752.4581585918595 x)
(-
(+ (* x 4.16438922228) (/ y (* x x)))
(+ 110.1139242984811 (/ 207551.7024428275 (* x x))))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -5.4e+25) {
tmp = (x + -2.0) * (4.16438922228 + (z / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * x))))))));
} else if (x <= 1.4e+23) {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606);
} else {
tmp = (4752.4581585918595 / x) + (((x * 4.16438922228) + (y / (x * x))) - (110.1139242984811 + (207551.7024428275 / (x * x))));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-5.4d+25)) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + (z / (47.066876606d0 + (x * (313.399215894d0 + (x * (263.505074721d0 + (x * x))))))))
else if (x <= 1.4d+23) then
tmp = ((x - 2.0d0) * (z + (x * (y + (x * 137.519416416d0))))) / ((x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0)
else
tmp = (4752.4581585918595d0 / x) + (((x * 4.16438922228d0) + (y / (x * x))) - (110.1139242984811d0 + (207551.7024428275d0 / (x * x))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -5.4e+25) {
tmp = (x + -2.0) * (4.16438922228 + (z / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * x))))))));
} else if (x <= 1.4e+23) {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606);
} else {
tmp = (4752.4581585918595 / x) + (((x * 4.16438922228) + (y / (x * x))) - (110.1139242984811 + (207551.7024428275 / (x * x))));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -5.4e+25: tmp = (x + -2.0) * (4.16438922228 + (z / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * x)))))))) elif x <= 1.4e+23: tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) else: tmp = (4752.4581585918595 / x) + (((x * 4.16438922228) + (y / (x * x))) - (110.1139242984811 + (207551.7024428275 / (x * x)))) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -5.4e+25) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(z / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * Float64(263.505074721 + Float64(x * x))))))))); elseif (x <= 1.4e+23) tmp = Float64(Float64(Float64(x - 2.0) * Float64(z + Float64(x * Float64(y + Float64(x * 137.519416416))))) / Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)); else tmp = Float64(Float64(4752.4581585918595 / x) + Float64(Float64(Float64(x * 4.16438922228) + Float64(y / Float64(x * x))) - Float64(110.1139242984811 + Float64(207551.7024428275 / Float64(x * x))))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -5.4e+25) tmp = (x + -2.0) * (4.16438922228 + (z / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * x)))))))); elseif (x <= 1.4e+23) tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606); else tmp = (4752.4581585918595 / x) + (((x * 4.16438922228) + (y / (x * x))) - (110.1139242984811 + (207551.7024428275 / (x * x)))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -5.4e+25], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(z / N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * N[(263.505074721 + N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.4e+23], N[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + N[(x * N[(y + N[(x * 137.519416416), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision], N[(N[(4752.4581585918595 / x), $MachinePrecision] + N[(N[(N[(x * 4.16438922228), $MachinePrecision] + N[(y / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(110.1139242984811 + N[(207551.7024428275 / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -5.4 \cdot 10^{+25}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{z}{47.066876606 + x \cdot \left(313.399215894 + x \cdot \left(263.505074721 + x \cdot x\right)\right)}\right)\\
\mathbf{elif}\;x \leq 1.4 \cdot 10^{+23}:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot \left(y + x \cdot 137.519416416\right)\right)}{x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606}\\
\mathbf{else}:\\
\;\;\;\;\frac{4752.4581585918595}{x} + \left(\left(x \cdot 4.16438922228 + \frac{y}{x \cdot x}\right) - \left(110.1139242984811 + \frac{207551.7024428275}{x \cdot x}\right)\right)\\
\end{array}
\end{array}
if x < -5.4e25Initial program 15.6%
*-commutative15.6%
associate-*l/19.3%
*-commutative19.3%
sub-neg19.3%
metadata-eval19.3%
Simplified19.3%
Taylor expanded in z around 0 19.3%
Taylor expanded in x around inf 97.8%
Taylor expanded in x around inf 97.8%
unpow297.8%
Simplified97.8%
if -5.4e25 < x < 1.4e23Initial program 99.0%
Taylor expanded in x around 0 97.1%
*-commutative95.7%
Simplified97.1%
if 1.4e23 < x Initial program 10.3%
Taylor expanded in x around inf 10.3%
cube-mult10.3%
unpow210.3%
distribute-rgt-out10.3%
+-commutative10.3%
unpow210.3%
Simplified10.3%
Taylor expanded in x around inf 98.0%
associate--l+98.0%
associate-*r/98.0%
metadata-eval98.0%
+-commutative98.0%
*-commutative98.0%
unpow298.0%
associate-*r/98.0%
metadata-eval98.0%
unpow298.0%
Simplified98.0%
Final simplification97.4%
(FPCore (x y z)
:precision binary64
(if (<= x -6000000000.0)
(*
(+ x -2.0)
(+
4.16438922228
(/
z
(+
47.066876606
(* x (+ 313.399215894 (* x (+ 263.505074721 (* x x)))))))))
(if (<= x 7400.0)
(*
(+ x -2.0)
(+
(/
z
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))
(* 0.0212463641547976 (* x y))))
(+
(/ 4752.4581585918595 x)
(-
(+ (* x 4.16438922228) (/ y (* x x)))
(+ 110.1139242984811 (/ 207551.7024428275 (* x x))))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -6000000000.0) {
tmp = (x + -2.0) * (4.16438922228 + (z / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * x))))))));
} else if (x <= 7400.0) {
tmp = (x + -2.0) * ((z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) + (0.0212463641547976 * (x * y)));
} else {
tmp = (4752.4581585918595 / x) + (((x * 4.16438922228) + (y / (x * x))) - (110.1139242984811 + (207551.7024428275 / (x * x))));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-6000000000.0d0)) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + (z / (47.066876606d0 + (x * (313.399215894d0 + (x * (263.505074721d0 + (x * x))))))))
else if (x <= 7400.0d0) then
tmp = (x + (-2.0d0)) * ((z / ((x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0)) + (0.0212463641547976d0 * (x * y)))
else
tmp = (4752.4581585918595d0 / x) + (((x * 4.16438922228d0) + (y / (x * x))) - (110.1139242984811d0 + (207551.7024428275d0 / (x * x))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -6000000000.0) {
tmp = (x + -2.0) * (4.16438922228 + (z / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * x))))))));
} else if (x <= 7400.0) {
tmp = (x + -2.0) * ((z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) + (0.0212463641547976 * (x * y)));
} else {
tmp = (4752.4581585918595 / x) + (((x * 4.16438922228) + (y / (x * x))) - (110.1139242984811 + (207551.7024428275 / (x * x))));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -6000000000.0: tmp = (x + -2.0) * (4.16438922228 + (z / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * x)))))))) elif x <= 7400.0: tmp = (x + -2.0) * ((z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) + (0.0212463641547976 * (x * y))) else: tmp = (4752.4581585918595 / x) + (((x * 4.16438922228) + (y / (x * x))) - (110.1139242984811 + (207551.7024428275 / (x * x)))) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -6000000000.0) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(z / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * Float64(263.505074721 + Float64(x * x))))))))); elseif (x <= 7400.0) tmp = Float64(Float64(x + -2.0) * Float64(Float64(z / Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) + Float64(0.0212463641547976 * Float64(x * y)))); else tmp = Float64(Float64(4752.4581585918595 / x) + Float64(Float64(Float64(x * 4.16438922228) + Float64(y / Float64(x * x))) - Float64(110.1139242984811 + Float64(207551.7024428275 / Float64(x * x))))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -6000000000.0) tmp = (x + -2.0) * (4.16438922228 + (z / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * x)))))))); elseif (x <= 7400.0) tmp = (x + -2.0) * ((z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) + (0.0212463641547976 * (x * y))); else tmp = (4752.4581585918595 / x) + (((x * 4.16438922228) + (y / (x * x))) - (110.1139242984811 + (207551.7024428275 / (x * x)))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -6000000000.0], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(z / N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * N[(263.505074721 + N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 7400.0], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z / N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision] + N[(0.0212463641547976 * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(4752.4581585918595 / x), $MachinePrecision] + N[(N[(N[(x * 4.16438922228), $MachinePrecision] + N[(y / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(110.1139242984811 + N[(207551.7024428275 / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -6000000000:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{z}{47.066876606 + x \cdot \left(313.399215894 + x \cdot \left(263.505074721 + x \cdot x\right)\right)}\right)\\
\mathbf{elif}\;x \leq 7400:\\
\;\;\;\;\left(x + -2\right) \cdot \left(\frac{z}{x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606} + 0.0212463641547976 \cdot \left(x \cdot y\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{4752.4581585918595}{x} + \left(\left(x \cdot 4.16438922228 + \frac{y}{x \cdot x}\right) - \left(110.1139242984811 + \frac{207551.7024428275}{x \cdot x}\right)\right)\\
\end{array}
\end{array}
if x < -6e9Initial program 20.0%
*-commutative20.0%
associate-*l/25.1%
*-commutative25.1%
sub-neg25.1%
metadata-eval25.1%
Simplified25.1%
Taylor expanded in z around 0 25.1%
Taylor expanded in x around inf 94.2%
Taylor expanded in x around inf 94.2%
unpow294.2%
Simplified94.2%
if -6e9 < x < 7400Initial program 99.7%
*-commutative99.7%
associate-*l/99.7%
*-commutative99.7%
sub-neg99.7%
metadata-eval99.7%
Simplified99.7%
Taylor expanded in z around 0 99.7%
Taylor expanded in x around 0 95.0%
if 7400 < x Initial program 17.6%
Taylor expanded in x around inf 17.1%
cube-mult17.1%
unpow217.1%
distribute-rgt-out17.1%
+-commutative17.1%
unpow217.1%
Simplified17.1%
Taylor expanded in x around inf 94.3%
associate--l+94.3%
associate-*r/94.3%
metadata-eval94.3%
+-commutative94.3%
*-commutative94.3%
unpow294.3%
associate-*r/94.3%
metadata-eval94.3%
unpow294.3%
Simplified94.3%
Final simplification94.6%
(FPCore (x y z)
:precision binary64
(if (<= x -9.2e-8)
(*
(+ x -2.0)
(+
4.16438922228
(/
z
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))))
(if (<= x 2e+19)
(/
(* (- x 2.0) (+ z (* x (+ y (* x 137.519416416)))))
(+ 47.066876606 (* x (+ 313.399215894 (* (+ x 43.3400022514) (* x x))))))
(+
(/ 4752.4581585918595 x)
(-
(+ (* x 4.16438922228) (/ y (* x x)))
(+ 110.1139242984811 (/ 207551.7024428275 (* x x))))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -9.2e-8) {
tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)));
} else if (x <= 2e+19) {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + ((x + 43.3400022514) * (x * x)))));
} else {
tmp = (4752.4581585918595 / x) + (((x * 4.16438922228) + (y / (x * x))) - (110.1139242984811 + (207551.7024428275 / (x * x))));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-9.2d-8)) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + (z / ((x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0)))
else if (x <= 2d+19) then
tmp = ((x - 2.0d0) * (z + (x * (y + (x * 137.519416416d0))))) / (47.066876606d0 + (x * (313.399215894d0 + ((x + 43.3400022514d0) * (x * x)))))
else
tmp = (4752.4581585918595d0 / x) + (((x * 4.16438922228d0) + (y / (x * x))) - (110.1139242984811d0 + (207551.7024428275d0 / (x * x))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -9.2e-8) {
tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)));
} else if (x <= 2e+19) {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + ((x + 43.3400022514) * (x * x)))));
} else {
tmp = (4752.4581585918595 / x) + (((x * 4.16438922228) + (y / (x * x))) - (110.1139242984811 + (207551.7024428275 / (x * x))));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -9.2e-8: tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606))) elif x <= 2e+19: tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + ((x + 43.3400022514) * (x * x))))) else: tmp = (4752.4581585918595 / x) + (((x * 4.16438922228) + (y / (x * x))) - (110.1139242984811 + (207551.7024428275 / (x * x)))) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -9.2e-8) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(z / Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)))); elseif (x <= 2e+19) tmp = Float64(Float64(Float64(x - 2.0) * Float64(z + Float64(x * Float64(y + Float64(x * 137.519416416))))) / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(Float64(x + 43.3400022514) * Float64(x * x)))))); else tmp = Float64(Float64(4752.4581585918595 / x) + Float64(Float64(Float64(x * 4.16438922228) + Float64(y / Float64(x * x))) - Float64(110.1139242984811 + Float64(207551.7024428275 / Float64(x * x))))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -9.2e-8) tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606))); elseif (x <= 2e+19) tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + ((x + 43.3400022514) * (x * x))))); else tmp = (4752.4581585918595 / x) + (((x * 4.16438922228) + (y / (x * x))) - (110.1139242984811 + (207551.7024428275 / (x * x)))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -9.2e-8], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(z / N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2e+19], N[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + N[(x * N[(y + N[(x * 137.519416416), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(47.066876606 + N[(x * N[(313.399215894 + N[(N[(x + 43.3400022514), $MachinePrecision] * N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(4752.4581585918595 / x), $MachinePrecision] + N[(N[(N[(x * 4.16438922228), $MachinePrecision] + N[(y / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(110.1139242984811 + N[(207551.7024428275 / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -9.2 \cdot 10^{-8}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{z}{x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606}\right)\\
\mathbf{elif}\;x \leq 2 \cdot 10^{+19}:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot \left(y + x \cdot 137.519416416\right)\right)}{47.066876606 + x \cdot \left(313.399215894 + \left(x + 43.3400022514\right) \cdot \left(x \cdot x\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{4752.4581585918595}{x} + \left(\left(x \cdot 4.16438922228 + \frac{y}{x \cdot x}\right) - \left(110.1139242984811 + \frac{207551.7024428275}{x \cdot x}\right)\right)\\
\end{array}
\end{array}
if x < -9.2000000000000003e-8Initial program 22.8%
*-commutative22.8%
associate-*l/27.7%
*-commutative27.7%
sub-neg27.7%
metadata-eval27.7%
Simplified27.7%
Taylor expanded in z around 0 27.7%
Taylor expanded in x around inf 94.4%
if -9.2000000000000003e-8 < x < 2e19Initial program 99.7%
Taylor expanded in x around inf 98.7%
cube-mult98.7%
unpow298.7%
distribute-rgt-out98.7%
+-commutative98.7%
unpow298.7%
Simplified98.7%
Taylor expanded in x around 0 97.4%
*-commutative97.4%
Simplified97.4%
if 2e19 < x Initial program 10.3%
Taylor expanded in x around inf 10.3%
cube-mult10.3%
unpow210.3%
distribute-rgt-out10.3%
+-commutative10.3%
unpow210.3%
Simplified10.3%
Taylor expanded in x around inf 98.0%
associate--l+98.0%
associate-*r/98.0%
metadata-eval98.0%
+-commutative98.0%
*-commutative98.0%
unpow298.0%
associate-*r/98.0%
metadata-eval98.0%
unpow298.0%
Simplified98.0%
Final simplification96.9%
(FPCore (x y z)
:precision binary64
(if (or (<= x -9.2e-8) (not (<= x 1.9e-7)))
(*
(+ x -2.0)
(+
4.16438922228
(/
z
(+
47.066876606
(* x (+ 313.399215894 (* x (+ 263.505074721 (* x x)))))))))
(*
(+ x -2.0)
(-
(* z 0.0212463641547976)
(* x (- (* z 0.14147091005106402) (* y 0.0212463641547976)))))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -9.2e-8) || !(x <= 1.9e-7)) {
tmp = (x + -2.0) * (4.16438922228 + (z / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * x))))))));
} else {
tmp = (x + -2.0) * ((z * 0.0212463641547976) - (x * ((z * 0.14147091005106402) - (y * 0.0212463641547976))));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((x <= (-9.2d-8)) .or. (.not. (x <= 1.9d-7))) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + (z / (47.066876606d0 + (x * (313.399215894d0 + (x * (263.505074721d0 + (x * x))))))))
else
tmp = (x + (-2.0d0)) * ((z * 0.0212463641547976d0) - (x * ((z * 0.14147091005106402d0) - (y * 0.0212463641547976d0))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -9.2e-8) || !(x <= 1.9e-7)) {
tmp = (x + -2.0) * (4.16438922228 + (z / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * x))))))));
} else {
tmp = (x + -2.0) * ((z * 0.0212463641547976) - (x * ((z * 0.14147091005106402) - (y * 0.0212463641547976))));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -9.2e-8) or not (x <= 1.9e-7): tmp = (x + -2.0) * (4.16438922228 + (z / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * x)))))))) else: tmp = (x + -2.0) * ((z * 0.0212463641547976) - (x * ((z * 0.14147091005106402) - (y * 0.0212463641547976)))) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -9.2e-8) || !(x <= 1.9e-7)) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(z / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * Float64(263.505074721 + Float64(x * x))))))))); else tmp = Float64(Float64(x + -2.0) * Float64(Float64(z * 0.0212463641547976) - Float64(x * Float64(Float64(z * 0.14147091005106402) - Float64(y * 0.0212463641547976))))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -9.2e-8) || ~((x <= 1.9e-7))) tmp = (x + -2.0) * (4.16438922228 + (z / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * x)))))))); else tmp = (x + -2.0) * ((z * 0.0212463641547976) - (x * ((z * 0.14147091005106402) - (y * 0.0212463641547976)))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -9.2e-8], N[Not[LessEqual[x, 1.9e-7]], $MachinePrecision]], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(z / N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * N[(263.505074721 + N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z * 0.0212463641547976), $MachinePrecision] - N[(x * N[(N[(z * 0.14147091005106402), $MachinePrecision] - N[(y * 0.0212463641547976), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -9.2 \cdot 10^{-8} \lor \neg \left(x \leq 1.9 \cdot 10^{-7}\right):\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{z}{47.066876606 + x \cdot \left(313.399215894 + x \cdot \left(263.505074721 + x \cdot x\right)\right)}\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976 - x \cdot \left(z \cdot 0.14147091005106402 - y \cdot 0.0212463641547976\right)\right)\\
\end{array}
\end{array}
if x < -9.2000000000000003e-8 or 1.90000000000000007e-7 < x Initial program 21.1%
*-commutative21.1%
associate-*l/25.2%
*-commutative25.2%
sub-neg25.2%
metadata-eval25.2%
Simplified25.2%
Taylor expanded in z around 0 25.3%
Taylor expanded in x around inf 92.9%
Taylor expanded in x around inf 91.8%
unpow291.8%
Simplified91.8%
if -9.2000000000000003e-8 < x < 1.90000000000000007e-7Initial program 99.7%
*-commutative99.7%
associate-*l/99.7%
*-commutative99.7%
sub-neg99.7%
metadata-eval99.7%
Simplified99.7%
Taylor expanded in x around 0 94.6%
Final simplification93.2%
(FPCore (x y z)
:precision binary64
(if (<= x -9.2e-8)
(*
(+ x -2.0)
(+
4.16438922228
(/
z
(+
47.066876606
(* x (+ 313.399215894 (* x (+ 263.505074721 (* x x)))))))))
(if (<= x 2.0)
(*
(+ x -2.0)
(-
(* z 0.0212463641547976)
(* x (- (* z 0.14147091005106402) (* y 0.0212463641547976)))))
(+
(/ 4752.4581585918595 x)
(-
(+ (* x 4.16438922228) (/ y (* x x)))
(+ 110.1139242984811 (/ 207551.7024428275 (* x x))))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -9.2e-8) {
tmp = (x + -2.0) * (4.16438922228 + (z / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * x))))))));
} else if (x <= 2.0) {
tmp = (x + -2.0) * ((z * 0.0212463641547976) - (x * ((z * 0.14147091005106402) - (y * 0.0212463641547976))));
} else {
tmp = (4752.4581585918595 / x) + (((x * 4.16438922228) + (y / (x * x))) - (110.1139242984811 + (207551.7024428275 / (x * x))));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-9.2d-8)) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + (z / (47.066876606d0 + (x * (313.399215894d0 + (x * (263.505074721d0 + (x * x))))))))
else if (x <= 2.0d0) then
tmp = (x + (-2.0d0)) * ((z * 0.0212463641547976d0) - (x * ((z * 0.14147091005106402d0) - (y * 0.0212463641547976d0))))
else
tmp = (4752.4581585918595d0 / x) + (((x * 4.16438922228d0) + (y / (x * x))) - (110.1139242984811d0 + (207551.7024428275d0 / (x * x))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -9.2e-8) {
tmp = (x + -2.0) * (4.16438922228 + (z / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * x))))))));
} else if (x <= 2.0) {
tmp = (x + -2.0) * ((z * 0.0212463641547976) - (x * ((z * 0.14147091005106402) - (y * 0.0212463641547976))));
} else {
tmp = (4752.4581585918595 / x) + (((x * 4.16438922228) + (y / (x * x))) - (110.1139242984811 + (207551.7024428275 / (x * x))));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -9.2e-8: tmp = (x + -2.0) * (4.16438922228 + (z / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * x)))))))) elif x <= 2.0: tmp = (x + -2.0) * ((z * 0.0212463641547976) - (x * ((z * 0.14147091005106402) - (y * 0.0212463641547976)))) else: tmp = (4752.4581585918595 / x) + (((x * 4.16438922228) + (y / (x * x))) - (110.1139242984811 + (207551.7024428275 / (x * x)))) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -9.2e-8) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(z / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * Float64(263.505074721 + Float64(x * x))))))))); elseif (x <= 2.0) tmp = Float64(Float64(x + -2.0) * Float64(Float64(z * 0.0212463641547976) - Float64(x * Float64(Float64(z * 0.14147091005106402) - Float64(y * 0.0212463641547976))))); else tmp = Float64(Float64(4752.4581585918595 / x) + Float64(Float64(Float64(x * 4.16438922228) + Float64(y / Float64(x * x))) - Float64(110.1139242984811 + Float64(207551.7024428275 / Float64(x * x))))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -9.2e-8) tmp = (x + -2.0) * (4.16438922228 + (z / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * x)))))))); elseif (x <= 2.0) tmp = (x + -2.0) * ((z * 0.0212463641547976) - (x * ((z * 0.14147091005106402) - (y * 0.0212463641547976)))); else tmp = (4752.4581585918595 / x) + (((x * 4.16438922228) + (y / (x * x))) - (110.1139242984811 + (207551.7024428275 / (x * x)))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -9.2e-8], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(z / N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * N[(263.505074721 + N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.0], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z * 0.0212463641547976), $MachinePrecision] - N[(x * N[(N[(z * 0.14147091005106402), $MachinePrecision] - N[(y * 0.0212463641547976), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(4752.4581585918595 / x), $MachinePrecision] + N[(N[(N[(x * 4.16438922228), $MachinePrecision] + N[(y / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(110.1139242984811 + N[(207551.7024428275 / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -9.2 \cdot 10^{-8}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{z}{47.066876606 + x \cdot \left(313.399215894 + x \cdot \left(263.505074721 + x \cdot x\right)\right)}\right)\\
\mathbf{elif}\;x \leq 2:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976 - x \cdot \left(z \cdot 0.14147091005106402 - y \cdot 0.0212463641547976\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{4752.4581585918595}{x} + \left(\left(x \cdot 4.16438922228 + \frac{y}{x \cdot x}\right) - \left(110.1139242984811 + \frac{207551.7024428275}{x \cdot x}\right)\right)\\
\end{array}
\end{array}
if x < -9.2000000000000003e-8Initial program 22.8%
*-commutative22.8%
associate-*l/27.7%
*-commutative27.7%
sub-neg27.7%
metadata-eval27.7%
Simplified27.7%
Taylor expanded in z around 0 27.7%
Taylor expanded in x around inf 94.4%
Taylor expanded in x around inf 93.3%
unpow293.3%
Simplified93.3%
if -9.2000000000000003e-8 < x < 2Initial program 99.7%
*-commutative99.7%
associate-*l/99.7%
*-commutative99.7%
sub-neg99.7%
metadata-eval99.7%
Simplified99.7%
Taylor expanded in x around 0 93.8%
if 2 < x Initial program 17.6%
Taylor expanded in x around inf 17.1%
cube-mult17.1%
unpow217.1%
distribute-rgt-out17.1%
+-commutative17.1%
unpow217.1%
Simplified17.1%
Taylor expanded in x around inf 94.3%
associate--l+94.3%
associate-*r/94.3%
metadata-eval94.3%
+-commutative94.3%
*-commutative94.3%
unpow294.3%
associate-*r/94.3%
metadata-eval94.3%
unpow294.3%
Simplified94.3%
Final simplification93.8%
(FPCore (x y z)
:precision binary64
(if (<= x -6.5e-8)
(*
(+ x -2.0)
(+
4.16438922228
(/
z
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))))
(if (<= x 3.0)
(*
(+ x -2.0)
(-
(* z 0.0212463641547976)
(* x (- (* z 0.14147091005106402) (* y 0.0212463641547976)))))
(+
(/ 4752.4581585918595 x)
(-
(+ (* x 4.16438922228) (/ y (* x x)))
(+ 110.1139242984811 (/ 207551.7024428275 (* x x))))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -6.5e-8) {
tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)));
} else if (x <= 3.0) {
tmp = (x + -2.0) * ((z * 0.0212463641547976) - (x * ((z * 0.14147091005106402) - (y * 0.0212463641547976))));
} else {
tmp = (4752.4581585918595 / x) + (((x * 4.16438922228) + (y / (x * x))) - (110.1139242984811 + (207551.7024428275 / (x * x))));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-6.5d-8)) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + (z / ((x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0)))
else if (x <= 3.0d0) then
tmp = (x + (-2.0d0)) * ((z * 0.0212463641547976d0) - (x * ((z * 0.14147091005106402d0) - (y * 0.0212463641547976d0))))
else
tmp = (4752.4581585918595d0 / x) + (((x * 4.16438922228d0) + (y / (x * x))) - (110.1139242984811d0 + (207551.7024428275d0 / (x * x))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -6.5e-8) {
tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)));
} else if (x <= 3.0) {
tmp = (x + -2.0) * ((z * 0.0212463641547976) - (x * ((z * 0.14147091005106402) - (y * 0.0212463641547976))));
} else {
tmp = (4752.4581585918595 / x) + (((x * 4.16438922228) + (y / (x * x))) - (110.1139242984811 + (207551.7024428275 / (x * x))));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -6.5e-8: tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606))) elif x <= 3.0: tmp = (x + -2.0) * ((z * 0.0212463641547976) - (x * ((z * 0.14147091005106402) - (y * 0.0212463641547976)))) else: tmp = (4752.4581585918595 / x) + (((x * 4.16438922228) + (y / (x * x))) - (110.1139242984811 + (207551.7024428275 / (x * x)))) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -6.5e-8) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(z / Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)))); elseif (x <= 3.0) tmp = Float64(Float64(x + -2.0) * Float64(Float64(z * 0.0212463641547976) - Float64(x * Float64(Float64(z * 0.14147091005106402) - Float64(y * 0.0212463641547976))))); else tmp = Float64(Float64(4752.4581585918595 / x) + Float64(Float64(Float64(x * 4.16438922228) + Float64(y / Float64(x * x))) - Float64(110.1139242984811 + Float64(207551.7024428275 / Float64(x * x))))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -6.5e-8) tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606))); elseif (x <= 3.0) tmp = (x + -2.0) * ((z * 0.0212463641547976) - (x * ((z * 0.14147091005106402) - (y * 0.0212463641547976)))); else tmp = (4752.4581585918595 / x) + (((x * 4.16438922228) + (y / (x * x))) - (110.1139242984811 + (207551.7024428275 / (x * x)))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -6.5e-8], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(z / N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 3.0], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z * 0.0212463641547976), $MachinePrecision] - N[(x * N[(N[(z * 0.14147091005106402), $MachinePrecision] - N[(y * 0.0212463641547976), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(4752.4581585918595 / x), $MachinePrecision] + N[(N[(N[(x * 4.16438922228), $MachinePrecision] + N[(y / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(110.1139242984811 + N[(207551.7024428275 / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -6.5 \cdot 10^{-8}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{z}{x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606}\right)\\
\mathbf{elif}\;x \leq 3:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976 - x \cdot \left(z \cdot 0.14147091005106402 - y \cdot 0.0212463641547976\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{4752.4581585918595}{x} + \left(\left(x \cdot 4.16438922228 + \frac{y}{x \cdot x}\right) - \left(110.1139242984811 + \frac{207551.7024428275}{x \cdot x}\right)\right)\\
\end{array}
\end{array}
if x < -6.49999999999999997e-8Initial program 22.8%
*-commutative22.8%
associate-*l/27.7%
*-commutative27.7%
sub-neg27.7%
metadata-eval27.7%
Simplified27.7%
Taylor expanded in z around 0 27.7%
Taylor expanded in x around inf 94.4%
if -6.49999999999999997e-8 < x < 3Initial program 99.7%
*-commutative99.7%
associate-*l/99.7%
*-commutative99.7%
sub-neg99.7%
metadata-eval99.7%
Simplified99.7%
Taylor expanded in x around 0 93.8%
if 3 < x Initial program 17.6%
Taylor expanded in x around inf 17.1%
cube-mult17.1%
unpow217.1%
distribute-rgt-out17.1%
+-commutative17.1%
unpow217.1%
Simplified17.1%
Taylor expanded in x around inf 94.3%
associate--l+94.3%
associate-*r/94.3%
metadata-eval94.3%
+-commutative94.3%
*-commutative94.3%
unpow294.3%
associate-*r/94.3%
metadata-eval94.3%
unpow294.3%
Simplified94.3%
Final simplification94.1%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (+ 0.24013125253755718 (/ 5.86923874282773 x))))
(if (<= x -120000.0)
(/ (+ x -2.0) t_0)
(if (<= x 150.0)
(*
(+ x -2.0)
(-
(* z 0.0212463641547976)
(* x (- (* z 0.14147091005106402) (* y 0.0212463641547976)))))
(/ (+ x -2.0) (- t_0 (/ 55.572073733743466 (* x x))))))))
double code(double x, double y, double z) {
double t_0 = 0.24013125253755718 + (5.86923874282773 / x);
double tmp;
if (x <= -120000.0) {
tmp = (x + -2.0) / t_0;
} else if (x <= 150.0) {
tmp = (x + -2.0) * ((z * 0.0212463641547976) - (x * ((z * 0.14147091005106402) - (y * 0.0212463641547976))));
} else {
tmp = (x + -2.0) / (t_0 - (55.572073733743466 / (x * x)));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = 0.24013125253755718d0 + (5.86923874282773d0 / x)
if (x <= (-120000.0d0)) then
tmp = (x + (-2.0d0)) / t_0
else if (x <= 150.0d0) then
tmp = (x + (-2.0d0)) * ((z * 0.0212463641547976d0) - (x * ((z * 0.14147091005106402d0) - (y * 0.0212463641547976d0))))
else
tmp = (x + (-2.0d0)) / (t_0 - (55.572073733743466d0 / (x * x)))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = 0.24013125253755718 + (5.86923874282773 / x);
double tmp;
if (x <= -120000.0) {
tmp = (x + -2.0) / t_0;
} else if (x <= 150.0) {
tmp = (x + -2.0) * ((z * 0.0212463641547976) - (x * ((z * 0.14147091005106402) - (y * 0.0212463641547976))));
} else {
tmp = (x + -2.0) / (t_0 - (55.572073733743466 / (x * x)));
}
return tmp;
}
def code(x, y, z): t_0 = 0.24013125253755718 + (5.86923874282773 / x) tmp = 0 if x <= -120000.0: tmp = (x + -2.0) / t_0 elif x <= 150.0: tmp = (x + -2.0) * ((z * 0.0212463641547976) - (x * ((z * 0.14147091005106402) - (y * 0.0212463641547976)))) else: tmp = (x + -2.0) / (t_0 - (55.572073733743466 / (x * x))) return tmp
function code(x, y, z) t_0 = Float64(0.24013125253755718 + Float64(5.86923874282773 / x)) tmp = 0.0 if (x <= -120000.0) tmp = Float64(Float64(x + -2.0) / t_0); elseif (x <= 150.0) tmp = Float64(Float64(x + -2.0) * Float64(Float64(z * 0.0212463641547976) - Float64(x * Float64(Float64(z * 0.14147091005106402) - Float64(y * 0.0212463641547976))))); else tmp = Float64(Float64(x + -2.0) / Float64(t_0 - Float64(55.572073733743466 / Float64(x * x)))); end return tmp end
function tmp_2 = code(x, y, z) t_0 = 0.24013125253755718 + (5.86923874282773 / x); tmp = 0.0; if (x <= -120000.0) tmp = (x + -2.0) / t_0; elseif (x <= 150.0) tmp = (x + -2.0) * ((z * 0.0212463641547976) - (x * ((z * 0.14147091005106402) - (y * 0.0212463641547976)))); else tmp = (x + -2.0) / (t_0 - (55.572073733743466 / (x * x))); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(0.24013125253755718 + N[(5.86923874282773 / x), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -120000.0], N[(N[(x + -2.0), $MachinePrecision] / t$95$0), $MachinePrecision], If[LessEqual[x, 150.0], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z * 0.0212463641547976), $MachinePrecision] - N[(x * N[(N[(z * 0.14147091005106402), $MachinePrecision] - N[(y * 0.0212463641547976), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] / N[(t$95$0 - N[(55.572073733743466 / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := 0.24013125253755718 + \frac{5.86923874282773}{x}\\
\mathbf{if}\;x \leq -120000:\\
\;\;\;\;\frac{x + -2}{t_0}\\
\mathbf{elif}\;x \leq 150:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976 - x \cdot \left(z \cdot 0.14147091005106402 - y \cdot 0.0212463641547976\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{x + -2}{t_0 - \frac{55.572073733743466}{x \cdot x}}\\
\end{array}
\end{array}
if x < -1.2e5Initial program 20.0%
associate-/l*25.1%
sub-neg25.1%
metadata-eval25.1%
fma-def25.1%
fma-def25.1%
fma-def25.1%
fma-def25.1%
fma-def25.1%
fma-def25.1%
fma-def25.1%
Simplified25.1%
Taylor expanded in x around inf 88.0%
associate-*r/88.0%
metadata-eval88.0%
Simplified88.0%
if -1.2e5 < x < 150Initial program 99.7%
*-commutative99.7%
associate-*l/99.7%
*-commutative99.7%
sub-neg99.7%
metadata-eval99.7%
Simplified99.7%
Taylor expanded in x around 0 93.1%
if 150 < x Initial program 17.6%
associate-/l*21.4%
sub-neg21.4%
metadata-eval21.4%
fma-def21.4%
fma-def21.4%
fma-def21.4%
fma-def21.4%
fma-def21.4%
fma-def21.4%
fma-def21.4%
Simplified21.4%
Taylor expanded in x around inf 89.1%
associate-*r/89.1%
metadata-eval89.1%
associate-*r/89.1%
metadata-eval89.1%
unpow289.1%
Simplified89.1%
Final simplification90.8%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (+ 0.24013125253755718 (/ 5.86923874282773 x))))
(if (<= x -32500000.0)
(/ (+ x -2.0) t_0)
(if (<= x 1200000.0)
(-
(* z -0.0424927283095952)
(*
x
(-
(* z -0.28294182010212804)
(* 0.0212463641547976 (+ z (* y -2.0))))))
(/ (+ x -2.0) (- t_0 (/ 55.572073733743466 (* x x))))))))
double code(double x, double y, double z) {
double t_0 = 0.24013125253755718 + (5.86923874282773 / x);
double tmp;
if (x <= -32500000.0) {
tmp = (x + -2.0) / t_0;
} else if (x <= 1200000.0) {
tmp = (z * -0.0424927283095952) - (x * ((z * -0.28294182010212804) - (0.0212463641547976 * (z + (y * -2.0)))));
} else {
tmp = (x + -2.0) / (t_0 - (55.572073733743466 / (x * x)));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = 0.24013125253755718d0 + (5.86923874282773d0 / x)
if (x <= (-32500000.0d0)) then
tmp = (x + (-2.0d0)) / t_0
else if (x <= 1200000.0d0) then
tmp = (z * (-0.0424927283095952d0)) - (x * ((z * (-0.28294182010212804d0)) - (0.0212463641547976d0 * (z + (y * (-2.0d0))))))
else
tmp = (x + (-2.0d0)) / (t_0 - (55.572073733743466d0 / (x * x)))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = 0.24013125253755718 + (5.86923874282773 / x);
double tmp;
if (x <= -32500000.0) {
tmp = (x + -2.0) / t_0;
} else if (x <= 1200000.0) {
tmp = (z * -0.0424927283095952) - (x * ((z * -0.28294182010212804) - (0.0212463641547976 * (z + (y * -2.0)))));
} else {
tmp = (x + -2.0) / (t_0 - (55.572073733743466 / (x * x)));
}
return tmp;
}
def code(x, y, z): t_0 = 0.24013125253755718 + (5.86923874282773 / x) tmp = 0 if x <= -32500000.0: tmp = (x + -2.0) / t_0 elif x <= 1200000.0: tmp = (z * -0.0424927283095952) - (x * ((z * -0.28294182010212804) - (0.0212463641547976 * (z + (y * -2.0))))) else: tmp = (x + -2.0) / (t_0 - (55.572073733743466 / (x * x))) return tmp
function code(x, y, z) t_0 = Float64(0.24013125253755718 + Float64(5.86923874282773 / x)) tmp = 0.0 if (x <= -32500000.0) tmp = Float64(Float64(x + -2.0) / t_0); elseif (x <= 1200000.0) tmp = Float64(Float64(z * -0.0424927283095952) - Float64(x * Float64(Float64(z * -0.28294182010212804) - Float64(0.0212463641547976 * Float64(z + Float64(y * -2.0)))))); else tmp = Float64(Float64(x + -2.0) / Float64(t_0 - Float64(55.572073733743466 / Float64(x * x)))); end return tmp end
function tmp_2 = code(x, y, z) t_0 = 0.24013125253755718 + (5.86923874282773 / x); tmp = 0.0; if (x <= -32500000.0) tmp = (x + -2.0) / t_0; elseif (x <= 1200000.0) tmp = (z * -0.0424927283095952) - (x * ((z * -0.28294182010212804) - (0.0212463641547976 * (z + (y * -2.0))))); else tmp = (x + -2.0) / (t_0 - (55.572073733743466 / (x * x))); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(0.24013125253755718 + N[(5.86923874282773 / x), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -32500000.0], N[(N[(x + -2.0), $MachinePrecision] / t$95$0), $MachinePrecision], If[LessEqual[x, 1200000.0], N[(N[(z * -0.0424927283095952), $MachinePrecision] - N[(x * N[(N[(z * -0.28294182010212804), $MachinePrecision] - N[(0.0212463641547976 * N[(z + N[(y * -2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] / N[(t$95$0 - N[(55.572073733743466 / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := 0.24013125253755718 + \frac{5.86923874282773}{x}\\
\mathbf{if}\;x \leq -32500000:\\
\;\;\;\;\frac{x + -2}{t_0}\\
\mathbf{elif}\;x \leq 1200000:\\
\;\;\;\;z \cdot -0.0424927283095952 - x \cdot \left(z \cdot -0.28294182010212804 - 0.0212463641547976 \cdot \left(z + y \cdot -2\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{x + -2}{t_0 - \frac{55.572073733743466}{x \cdot x}}\\
\end{array}
\end{array}
if x < -3.25e7Initial program 20.0%
associate-/l*25.1%
sub-neg25.1%
metadata-eval25.1%
fma-def25.1%
fma-def25.1%
fma-def25.1%
fma-def25.1%
fma-def25.1%
fma-def25.1%
fma-def25.1%
Simplified25.1%
Taylor expanded in x around inf 88.0%
associate-*r/88.0%
metadata-eval88.0%
Simplified88.0%
if -3.25e7 < x < 1.2e6Initial program 99.7%
*-commutative99.7%
associate-*l/99.7%
*-commutative99.7%
sub-neg99.7%
metadata-eval99.7%
Simplified99.7%
Taylor expanded in x around 0 92.4%
if 1.2e6 < x Initial program 16.5%
associate-/l*20.4%
sub-neg20.4%
metadata-eval20.4%
fma-def20.4%
fma-def20.4%
fma-def20.4%
fma-def20.4%
fma-def20.4%
fma-def20.4%
fma-def20.4%
Simplified20.4%
Taylor expanded in x around inf 90.3%
associate-*r/90.3%
metadata-eval90.3%
associate-*r/90.3%
metadata-eval90.3%
unpow290.3%
Simplified90.3%
Final simplification90.9%
(FPCore (x y z)
:precision binary64
(if (or (<= x -78000.0) (not (<= x 0.9)))
(/ (+ x -2.0) (+ 0.24013125253755718 (/ 5.86923874282773 x)))
(-
(* z (+ -0.0424927283095952 (* x 0.3041881842569256)))
(* x (* x (* z 1.787568985856513))))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -78000.0) || !(x <= 0.9)) {
tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x));
} else {
tmp = (z * (-0.0424927283095952 + (x * 0.3041881842569256))) - (x * (x * (z * 1.787568985856513)));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((x <= (-78000.0d0)) .or. (.not. (x <= 0.9d0))) then
tmp = (x + (-2.0d0)) / (0.24013125253755718d0 + (5.86923874282773d0 / x))
else
tmp = (z * ((-0.0424927283095952d0) + (x * 0.3041881842569256d0))) - (x * (x * (z * 1.787568985856513d0)))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -78000.0) || !(x <= 0.9)) {
tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x));
} else {
tmp = (z * (-0.0424927283095952 + (x * 0.3041881842569256))) - (x * (x * (z * 1.787568985856513)));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -78000.0) or not (x <= 0.9): tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x)) else: tmp = (z * (-0.0424927283095952 + (x * 0.3041881842569256))) - (x * (x * (z * 1.787568985856513))) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -78000.0) || !(x <= 0.9)) tmp = Float64(Float64(x + -2.0) / Float64(0.24013125253755718 + Float64(5.86923874282773 / x))); else tmp = Float64(Float64(z * Float64(-0.0424927283095952 + Float64(x * 0.3041881842569256))) - Float64(x * Float64(x * Float64(z * 1.787568985856513)))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -78000.0) || ~((x <= 0.9))) tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x)); else tmp = (z * (-0.0424927283095952 + (x * 0.3041881842569256))) - (x * (x * (z * 1.787568985856513))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -78000.0], N[Not[LessEqual[x, 0.9]], $MachinePrecision]], N[(N[(x + -2.0), $MachinePrecision] / N[(0.24013125253755718 + N[(5.86923874282773 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(z * N[(-0.0424927283095952 + N[(x * 0.3041881842569256), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x * N[(x * N[(z * 1.787568985856513), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -78000 \lor \neg \left(x \leq 0.9\right):\\
\;\;\;\;\frac{x + -2}{0.24013125253755718 + \frac{5.86923874282773}{x}}\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(-0.0424927283095952 + x \cdot 0.3041881842569256\right) - x \cdot \left(x \cdot \left(z \cdot 1.787568985856513\right)\right)\\
\end{array}
\end{array}
if x < -78000 or 0.900000000000000022 < x Initial program 18.6%
associate-/l*23.0%
sub-neg23.0%
metadata-eval23.0%
fma-def23.0%
fma-def23.0%
fma-def23.0%
fma-def23.0%
fma-def23.0%
fma-def23.0%
fma-def23.0%
Simplified23.0%
Taylor expanded in x around inf 88.6%
associate-*r/88.6%
metadata-eval88.6%
Simplified88.6%
if -78000 < x < 0.900000000000000022Initial program 99.7%
associate-/l*99.6%
sub-neg99.6%
metadata-eval99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
Simplified99.6%
Taylor expanded in z around inf 74.9%
Taylor expanded in x around 0 73.9%
*-commutative73.9%
Simplified73.9%
Taylor expanded in x around 0 73.5%
associate-+r+73.5%
mul-1-neg73.5%
unsub-neg73.5%
+-commutative73.5%
*-commutative73.5%
*-commutative73.5%
distribute-rgt-out--73.5%
metadata-eval73.5%
associate-*r*73.5%
*-commutative73.5%
associate-*l*73.5%
distribute-lft-out73.5%
unpow273.5%
associate-*r*73.5%
Simplified73.5%
Final simplification81.1%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (+ 0.24013125253755718 (/ 5.86923874282773 x))))
(if (<= x -50000.0)
(/ (+ x -2.0) t_0)
(if (<= x 5.2)
(-
(* z (+ -0.0424927283095952 (* x 0.3041881842569256)))
(* x (* x (* z 1.787568985856513))))
(/ (+ x -2.0) (- t_0 (/ 55.572073733743466 (* x x))))))))
double code(double x, double y, double z) {
double t_0 = 0.24013125253755718 + (5.86923874282773 / x);
double tmp;
if (x <= -50000.0) {
tmp = (x + -2.0) / t_0;
} else if (x <= 5.2) {
tmp = (z * (-0.0424927283095952 + (x * 0.3041881842569256))) - (x * (x * (z * 1.787568985856513)));
} else {
tmp = (x + -2.0) / (t_0 - (55.572073733743466 / (x * x)));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = 0.24013125253755718d0 + (5.86923874282773d0 / x)
if (x <= (-50000.0d0)) then
tmp = (x + (-2.0d0)) / t_0
else if (x <= 5.2d0) then
tmp = (z * ((-0.0424927283095952d0) + (x * 0.3041881842569256d0))) - (x * (x * (z * 1.787568985856513d0)))
else
tmp = (x + (-2.0d0)) / (t_0 - (55.572073733743466d0 / (x * x)))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = 0.24013125253755718 + (5.86923874282773 / x);
double tmp;
if (x <= -50000.0) {
tmp = (x + -2.0) / t_0;
} else if (x <= 5.2) {
tmp = (z * (-0.0424927283095952 + (x * 0.3041881842569256))) - (x * (x * (z * 1.787568985856513)));
} else {
tmp = (x + -2.0) / (t_0 - (55.572073733743466 / (x * x)));
}
return tmp;
}
def code(x, y, z): t_0 = 0.24013125253755718 + (5.86923874282773 / x) tmp = 0 if x <= -50000.0: tmp = (x + -2.0) / t_0 elif x <= 5.2: tmp = (z * (-0.0424927283095952 + (x * 0.3041881842569256))) - (x * (x * (z * 1.787568985856513))) else: tmp = (x + -2.0) / (t_0 - (55.572073733743466 / (x * x))) return tmp
function code(x, y, z) t_0 = Float64(0.24013125253755718 + Float64(5.86923874282773 / x)) tmp = 0.0 if (x <= -50000.0) tmp = Float64(Float64(x + -2.0) / t_0); elseif (x <= 5.2) tmp = Float64(Float64(z * Float64(-0.0424927283095952 + Float64(x * 0.3041881842569256))) - Float64(x * Float64(x * Float64(z * 1.787568985856513)))); else tmp = Float64(Float64(x + -2.0) / Float64(t_0 - Float64(55.572073733743466 / Float64(x * x)))); end return tmp end
function tmp_2 = code(x, y, z) t_0 = 0.24013125253755718 + (5.86923874282773 / x); tmp = 0.0; if (x <= -50000.0) tmp = (x + -2.0) / t_0; elseif (x <= 5.2) tmp = (z * (-0.0424927283095952 + (x * 0.3041881842569256))) - (x * (x * (z * 1.787568985856513))); else tmp = (x + -2.0) / (t_0 - (55.572073733743466 / (x * x))); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(0.24013125253755718 + N[(5.86923874282773 / x), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -50000.0], N[(N[(x + -2.0), $MachinePrecision] / t$95$0), $MachinePrecision], If[LessEqual[x, 5.2], N[(N[(z * N[(-0.0424927283095952 + N[(x * 0.3041881842569256), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x * N[(x * N[(z * 1.787568985856513), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] / N[(t$95$0 - N[(55.572073733743466 / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := 0.24013125253755718 + \frac{5.86923874282773}{x}\\
\mathbf{if}\;x \leq -50000:\\
\;\;\;\;\frac{x + -2}{t_0}\\
\mathbf{elif}\;x \leq 5.2:\\
\;\;\;\;z \cdot \left(-0.0424927283095952 + x \cdot 0.3041881842569256\right) - x \cdot \left(x \cdot \left(z \cdot 1.787568985856513\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{x + -2}{t_0 - \frac{55.572073733743466}{x \cdot x}}\\
\end{array}
\end{array}
if x < -5e4Initial program 20.0%
associate-/l*25.1%
sub-neg25.1%
metadata-eval25.1%
fma-def25.1%
fma-def25.1%
fma-def25.1%
fma-def25.1%
fma-def25.1%
fma-def25.1%
fma-def25.1%
Simplified25.1%
Taylor expanded in x around inf 88.0%
associate-*r/88.0%
metadata-eval88.0%
Simplified88.0%
if -5e4 < x < 5.20000000000000018Initial program 99.7%
associate-/l*99.6%
sub-neg99.6%
metadata-eval99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
Simplified99.6%
Taylor expanded in z around inf 74.9%
Taylor expanded in x around 0 73.9%
*-commutative73.9%
Simplified73.9%
Taylor expanded in x around 0 73.5%
associate-+r+73.5%
mul-1-neg73.5%
unsub-neg73.5%
+-commutative73.5%
*-commutative73.5%
*-commutative73.5%
distribute-rgt-out--73.5%
metadata-eval73.5%
associate-*r*73.5%
*-commutative73.5%
associate-*l*73.5%
distribute-lft-out73.5%
unpow273.5%
associate-*r*73.5%
Simplified73.5%
if 5.20000000000000018 < x Initial program 17.6%
associate-/l*21.4%
sub-neg21.4%
metadata-eval21.4%
fma-def21.4%
fma-def21.4%
fma-def21.4%
fma-def21.4%
fma-def21.4%
fma-def21.4%
fma-def21.4%
Simplified21.4%
Taylor expanded in x around inf 89.1%
associate-*r/89.1%
metadata-eval89.1%
associate-*r/89.1%
metadata-eval89.1%
unpow289.1%
Simplified89.1%
Final simplification81.1%
(FPCore (x y z)
:precision binary64
(if (or (<= x -50000.0) (not (<= x 1200000.0)))
(/ (+ x -2.0) (+ 0.24013125253755718 (/ 5.86923874282773 x)))
(+
(* x (- (* z 0.0212463641547976) (* z -0.28294182010212804)))
(* z -0.0424927283095952))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -50000.0) || !(x <= 1200000.0)) {
tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x));
} else {
tmp = (x * ((z * 0.0212463641547976) - (z * -0.28294182010212804))) + (z * -0.0424927283095952);
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((x <= (-50000.0d0)) .or. (.not. (x <= 1200000.0d0))) then
tmp = (x + (-2.0d0)) / (0.24013125253755718d0 + (5.86923874282773d0 / x))
else
tmp = (x * ((z * 0.0212463641547976d0) - (z * (-0.28294182010212804d0)))) + (z * (-0.0424927283095952d0))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -50000.0) || !(x <= 1200000.0)) {
tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x));
} else {
tmp = (x * ((z * 0.0212463641547976) - (z * -0.28294182010212804))) + (z * -0.0424927283095952);
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -50000.0) or not (x <= 1200000.0): tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x)) else: tmp = (x * ((z * 0.0212463641547976) - (z * -0.28294182010212804))) + (z * -0.0424927283095952) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -50000.0) || !(x <= 1200000.0)) tmp = Float64(Float64(x + -2.0) / Float64(0.24013125253755718 + Float64(5.86923874282773 / x))); else tmp = Float64(Float64(x * Float64(Float64(z * 0.0212463641547976) - Float64(z * -0.28294182010212804))) + Float64(z * -0.0424927283095952)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -50000.0) || ~((x <= 1200000.0))) tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x)); else tmp = (x * ((z * 0.0212463641547976) - (z * -0.28294182010212804))) + (z * -0.0424927283095952); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -50000.0], N[Not[LessEqual[x, 1200000.0]], $MachinePrecision]], N[(N[(x + -2.0), $MachinePrecision] / N[(0.24013125253755718 + N[(5.86923874282773 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x * N[(N[(z * 0.0212463641547976), $MachinePrecision] - N[(z * -0.28294182010212804), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(z * -0.0424927283095952), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -50000 \lor \neg \left(x \leq 1200000\right):\\
\;\;\;\;\frac{x + -2}{0.24013125253755718 + \frac{5.86923874282773}{x}}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(z \cdot 0.0212463641547976 - z \cdot -0.28294182010212804\right) + z \cdot -0.0424927283095952\\
\end{array}
\end{array}
if x < -5e4 or 1.2e6 < x Initial program 18.0%
associate-/l*22.4%
sub-neg22.4%
metadata-eval22.4%
fma-def22.4%
fma-def22.4%
fma-def22.4%
fma-def22.4%
fma-def22.4%
fma-def22.4%
fma-def22.4%
Simplified22.4%
Taylor expanded in x around inf 89.3%
associate-*r/89.3%
metadata-eval89.3%
Simplified89.3%
if -5e4 < x < 1.2e6Initial program 99.7%
associate-/l*99.6%
sub-neg99.6%
metadata-eval99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
Simplified99.6%
Taylor expanded in z around inf 74.6%
Taylor expanded in x around 0 72.6%
Final simplification81.0%
(FPCore (x y z) :precision binary64 (if (or (<= x -50000.0) (not (<= x 1200000.0))) (/ (+ x -2.0) (+ 0.24013125253755718 (/ 5.86923874282773 x))) (/ (+ x -2.0) (/ 47.066876606 z))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -50000.0) || !(x <= 1200000.0)) {
tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x));
} else {
tmp = (x + -2.0) / (47.066876606 / z);
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((x <= (-50000.0d0)) .or. (.not. (x <= 1200000.0d0))) then
tmp = (x + (-2.0d0)) / (0.24013125253755718d0 + (5.86923874282773d0 / x))
else
tmp = (x + (-2.0d0)) / (47.066876606d0 / z)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -50000.0) || !(x <= 1200000.0)) {
tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x));
} else {
tmp = (x + -2.0) / (47.066876606 / z);
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -50000.0) or not (x <= 1200000.0): tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x)) else: tmp = (x + -2.0) / (47.066876606 / z) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -50000.0) || !(x <= 1200000.0)) tmp = Float64(Float64(x + -2.0) / Float64(0.24013125253755718 + Float64(5.86923874282773 / x))); else tmp = Float64(Float64(x + -2.0) / Float64(47.066876606 / z)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -50000.0) || ~((x <= 1200000.0))) tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x)); else tmp = (x + -2.0) / (47.066876606 / z); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -50000.0], N[Not[LessEqual[x, 1200000.0]], $MachinePrecision]], N[(N[(x + -2.0), $MachinePrecision] / N[(0.24013125253755718 + N[(5.86923874282773 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] / N[(47.066876606 / z), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -50000 \lor \neg \left(x \leq 1200000\right):\\
\;\;\;\;\frac{x + -2}{0.24013125253755718 + \frac{5.86923874282773}{x}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x + -2}{\frac{47.066876606}{z}}\\
\end{array}
\end{array}
if x < -5e4 or 1.2e6 < x Initial program 18.0%
associate-/l*22.4%
sub-neg22.4%
metadata-eval22.4%
fma-def22.4%
fma-def22.4%
fma-def22.4%
fma-def22.4%
fma-def22.4%
fma-def22.4%
fma-def22.4%
Simplified22.4%
Taylor expanded in x around inf 89.3%
associate-*r/89.3%
metadata-eval89.3%
Simplified89.3%
if -5e4 < x < 1.2e6Initial program 99.7%
associate-/l*99.6%
sub-neg99.6%
metadata-eval99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
Simplified99.6%
Taylor expanded in x around 0 72.0%
Final simplification80.7%
(FPCore (x y z)
:precision binary64
(if (<= x -72000.0)
(/ (+ x -2.0) 0.24013125253755718)
(if (<= x 1200000.0)
(/ (+ x -2.0) (/ 47.066876606 z))
(* (+ x -2.0) (- 4.16438922228 (/ 101.7851458539211 x))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -72000.0) {
tmp = (x + -2.0) / 0.24013125253755718;
} else if (x <= 1200000.0) {
tmp = (x + -2.0) / (47.066876606 / z);
} else {
tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-72000.0d0)) then
tmp = (x + (-2.0d0)) / 0.24013125253755718d0
else if (x <= 1200000.0d0) then
tmp = (x + (-2.0d0)) / (47.066876606d0 / z)
else
tmp = (x + (-2.0d0)) * (4.16438922228d0 - (101.7851458539211d0 / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -72000.0) {
tmp = (x + -2.0) / 0.24013125253755718;
} else if (x <= 1200000.0) {
tmp = (x + -2.0) / (47.066876606 / z);
} else {
tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -72000.0: tmp = (x + -2.0) / 0.24013125253755718 elif x <= 1200000.0: tmp = (x + -2.0) / (47.066876606 / z) else: tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -72000.0) tmp = Float64(Float64(x + -2.0) / 0.24013125253755718); elseif (x <= 1200000.0) tmp = Float64(Float64(x + -2.0) / Float64(47.066876606 / z)); else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 - Float64(101.7851458539211 / x))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -72000.0) tmp = (x + -2.0) / 0.24013125253755718; elseif (x <= 1200000.0) tmp = (x + -2.0) / (47.066876606 / z); else tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -72000.0], N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision], If[LessEqual[x, 1200000.0], N[(N[(x + -2.0), $MachinePrecision] / N[(47.066876606 / z), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 - N[(101.7851458539211 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -72000:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718}\\
\mathbf{elif}\;x \leq 1200000:\\
\;\;\;\;\frac{x + -2}{\frac{47.066876606}{z}}\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211}{x}\right)\\
\end{array}
\end{array}
if x < -72000Initial program 20.0%
associate-/l*25.1%
sub-neg25.1%
metadata-eval25.1%
fma-def25.1%
fma-def25.1%
fma-def25.1%
fma-def25.1%
fma-def25.1%
fma-def25.1%
fma-def25.1%
Simplified25.1%
Taylor expanded in x around inf 87.9%
if -72000 < x < 1.2e6Initial program 99.7%
associate-/l*99.6%
sub-neg99.6%
metadata-eval99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
Simplified99.6%
Taylor expanded in x around 0 72.0%
if 1.2e6 < x Initial program 16.5%
*-commutative16.5%
associate-*l/20.3%
*-commutative20.3%
sub-neg20.3%
metadata-eval20.3%
Simplified20.2%
Taylor expanded in x around inf 89.9%
associate-*r/89.9%
metadata-eval89.9%
Simplified89.9%
Final simplification80.6%
(FPCore (x y z)
:precision binary64
(if (<= x -50000.0)
(/ (+ x -2.0) 0.24013125253755718)
(if (<= x 1200000.0)
(/ (+ x -2.0) (/ 47.066876606 z))
(- (+ (* x 4.16438922228) (/ 3655.1204654076414 x)) 110.1139242984811))))
double code(double x, double y, double z) {
double tmp;
if (x <= -50000.0) {
tmp = (x + -2.0) / 0.24013125253755718;
} else if (x <= 1200000.0) {
tmp = (x + -2.0) / (47.066876606 / z);
} else {
tmp = ((x * 4.16438922228) + (3655.1204654076414 / x)) - 110.1139242984811;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-50000.0d0)) then
tmp = (x + (-2.0d0)) / 0.24013125253755718d0
else if (x <= 1200000.0d0) then
tmp = (x + (-2.0d0)) / (47.066876606d0 / z)
else
tmp = ((x * 4.16438922228d0) + (3655.1204654076414d0 / x)) - 110.1139242984811d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -50000.0) {
tmp = (x + -2.0) / 0.24013125253755718;
} else if (x <= 1200000.0) {
tmp = (x + -2.0) / (47.066876606 / z);
} else {
tmp = ((x * 4.16438922228) + (3655.1204654076414 / x)) - 110.1139242984811;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -50000.0: tmp = (x + -2.0) / 0.24013125253755718 elif x <= 1200000.0: tmp = (x + -2.0) / (47.066876606 / z) else: tmp = ((x * 4.16438922228) + (3655.1204654076414 / x)) - 110.1139242984811 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -50000.0) tmp = Float64(Float64(x + -2.0) / 0.24013125253755718); elseif (x <= 1200000.0) tmp = Float64(Float64(x + -2.0) / Float64(47.066876606 / z)); else tmp = Float64(Float64(Float64(x * 4.16438922228) + Float64(3655.1204654076414 / x)) - 110.1139242984811); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -50000.0) tmp = (x + -2.0) / 0.24013125253755718; elseif (x <= 1200000.0) tmp = (x + -2.0) / (47.066876606 / z); else tmp = ((x * 4.16438922228) + (3655.1204654076414 / x)) - 110.1139242984811; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -50000.0], N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision], If[LessEqual[x, 1200000.0], N[(N[(x + -2.0), $MachinePrecision] / N[(47.066876606 / z), $MachinePrecision]), $MachinePrecision], N[(N[(N[(x * 4.16438922228), $MachinePrecision] + N[(3655.1204654076414 / x), $MachinePrecision]), $MachinePrecision] - 110.1139242984811), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -50000:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718}\\
\mathbf{elif}\;x \leq 1200000:\\
\;\;\;\;\frac{x + -2}{\frac{47.066876606}{z}}\\
\mathbf{else}:\\
\;\;\;\;\left(x \cdot 4.16438922228 + \frac{3655.1204654076414}{x}\right) - 110.1139242984811\\
\end{array}
\end{array}
if x < -5e4Initial program 20.0%
associate-/l*25.1%
sub-neg25.1%
metadata-eval25.1%
fma-def25.1%
fma-def25.1%
fma-def25.1%
fma-def25.1%
fma-def25.1%
fma-def25.1%
fma-def25.1%
Simplified25.1%
Taylor expanded in x around inf 87.9%
if -5e4 < x < 1.2e6Initial program 99.7%
associate-/l*99.6%
sub-neg99.6%
metadata-eval99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
Simplified99.6%
Taylor expanded in x around 0 72.0%
if 1.2e6 < x Initial program 16.5%
*-commutative16.5%
associate-*l/20.3%
*-commutative20.3%
sub-neg20.3%
metadata-eval20.3%
Simplified20.2%
Taylor expanded in x around inf 90.0%
Taylor expanded in x around 0 90.0%
Final simplification80.6%
(FPCore (x y z)
:precision binary64
(if (<= x -52000.0)
(/ (+ x -2.0) 0.24013125253755718)
(if (<= x 1200000.0)
(* (+ x -2.0) (* z 0.0212463641547976))
(- (* x 4.16438922228) 110.1139242984811))))
double code(double x, double y, double z) {
double tmp;
if (x <= -52000.0) {
tmp = (x + -2.0) / 0.24013125253755718;
} else if (x <= 1200000.0) {
tmp = (x + -2.0) * (z * 0.0212463641547976);
} else {
tmp = (x * 4.16438922228) - 110.1139242984811;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-52000.0d0)) then
tmp = (x + (-2.0d0)) / 0.24013125253755718d0
else if (x <= 1200000.0d0) then
tmp = (x + (-2.0d0)) * (z * 0.0212463641547976d0)
else
tmp = (x * 4.16438922228d0) - 110.1139242984811d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -52000.0) {
tmp = (x + -2.0) / 0.24013125253755718;
} else if (x <= 1200000.0) {
tmp = (x + -2.0) * (z * 0.0212463641547976);
} else {
tmp = (x * 4.16438922228) - 110.1139242984811;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -52000.0: tmp = (x + -2.0) / 0.24013125253755718 elif x <= 1200000.0: tmp = (x + -2.0) * (z * 0.0212463641547976) else: tmp = (x * 4.16438922228) - 110.1139242984811 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -52000.0) tmp = Float64(Float64(x + -2.0) / 0.24013125253755718); elseif (x <= 1200000.0) tmp = Float64(Float64(x + -2.0) * Float64(z * 0.0212463641547976)); else tmp = Float64(Float64(x * 4.16438922228) - 110.1139242984811); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -52000.0) tmp = (x + -2.0) / 0.24013125253755718; elseif (x <= 1200000.0) tmp = (x + -2.0) * (z * 0.0212463641547976); else tmp = (x * 4.16438922228) - 110.1139242984811; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -52000.0], N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision], If[LessEqual[x, 1200000.0], N[(N[(x + -2.0), $MachinePrecision] * N[(z * 0.0212463641547976), $MachinePrecision]), $MachinePrecision], N[(N[(x * 4.16438922228), $MachinePrecision] - 110.1139242984811), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -52000:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718}\\
\mathbf{elif}\;x \leq 1200000:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228 - 110.1139242984811\\
\end{array}
\end{array}
if x < -52000Initial program 20.0%
associate-/l*25.1%
sub-neg25.1%
metadata-eval25.1%
fma-def25.1%
fma-def25.1%
fma-def25.1%
fma-def25.1%
fma-def25.1%
fma-def25.1%
fma-def25.1%
Simplified25.1%
Taylor expanded in x around inf 87.9%
if -52000 < x < 1.2e6Initial program 99.7%
*-commutative99.7%
associate-*l/99.7%
*-commutative99.7%
sub-neg99.7%
metadata-eval99.7%
Simplified99.7%
Taylor expanded in x around 0 71.9%
if 1.2e6 < x Initial program 16.5%
*-commutative16.5%
associate-*l/20.3%
*-commutative20.3%
sub-neg20.3%
metadata-eval20.3%
Simplified20.2%
Taylor expanded in x around inf 89.9%
Final simplification80.5%
(FPCore (x y z)
:precision binary64
(if (<= x -50000.0)
(/ (+ x -2.0) 0.24013125253755718)
(if (<= x 1200000.0)
(/ (+ x -2.0) (/ 47.066876606 z))
(- (* x 4.16438922228) 110.1139242984811))))
double code(double x, double y, double z) {
double tmp;
if (x <= -50000.0) {
tmp = (x + -2.0) / 0.24013125253755718;
} else if (x <= 1200000.0) {
tmp = (x + -2.0) / (47.066876606 / z);
} else {
tmp = (x * 4.16438922228) - 110.1139242984811;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-50000.0d0)) then
tmp = (x + (-2.0d0)) / 0.24013125253755718d0
else if (x <= 1200000.0d0) then
tmp = (x + (-2.0d0)) / (47.066876606d0 / z)
else
tmp = (x * 4.16438922228d0) - 110.1139242984811d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -50000.0) {
tmp = (x + -2.0) / 0.24013125253755718;
} else if (x <= 1200000.0) {
tmp = (x + -2.0) / (47.066876606 / z);
} else {
tmp = (x * 4.16438922228) - 110.1139242984811;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -50000.0: tmp = (x + -2.0) / 0.24013125253755718 elif x <= 1200000.0: tmp = (x + -2.0) / (47.066876606 / z) else: tmp = (x * 4.16438922228) - 110.1139242984811 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -50000.0) tmp = Float64(Float64(x + -2.0) / 0.24013125253755718); elseif (x <= 1200000.0) tmp = Float64(Float64(x + -2.0) / Float64(47.066876606 / z)); else tmp = Float64(Float64(x * 4.16438922228) - 110.1139242984811); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -50000.0) tmp = (x + -2.0) / 0.24013125253755718; elseif (x <= 1200000.0) tmp = (x + -2.0) / (47.066876606 / z); else tmp = (x * 4.16438922228) - 110.1139242984811; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -50000.0], N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision], If[LessEqual[x, 1200000.0], N[(N[(x + -2.0), $MachinePrecision] / N[(47.066876606 / z), $MachinePrecision]), $MachinePrecision], N[(N[(x * 4.16438922228), $MachinePrecision] - 110.1139242984811), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -50000:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718}\\
\mathbf{elif}\;x \leq 1200000:\\
\;\;\;\;\frac{x + -2}{\frac{47.066876606}{z}}\\
\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228 - 110.1139242984811\\
\end{array}
\end{array}
if x < -5e4Initial program 20.0%
associate-/l*25.1%
sub-neg25.1%
metadata-eval25.1%
fma-def25.1%
fma-def25.1%
fma-def25.1%
fma-def25.1%
fma-def25.1%
fma-def25.1%
fma-def25.1%
Simplified25.1%
Taylor expanded in x around inf 87.9%
if -5e4 < x < 1.2e6Initial program 99.7%
associate-/l*99.6%
sub-neg99.6%
metadata-eval99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
Simplified99.6%
Taylor expanded in x around 0 72.0%
if 1.2e6 < x Initial program 16.5%
*-commutative16.5%
associate-*l/20.3%
*-commutative20.3%
sub-neg20.3%
metadata-eval20.3%
Simplified20.2%
Taylor expanded in x around inf 89.9%
Final simplification80.6%
(FPCore (x y z) :precision binary64 (if (or (<= x -2900000.0) (not (<= x 1.85))) (* 4.16438922228 (+ x -2.0)) (* z -0.0424927283095952)))
double code(double x, double y, double z) {
double tmp;
if ((x <= -2900000.0) || !(x <= 1.85)) {
tmp = 4.16438922228 * (x + -2.0);
} else {
tmp = z * -0.0424927283095952;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((x <= (-2900000.0d0)) .or. (.not. (x <= 1.85d0))) then
tmp = 4.16438922228d0 * (x + (-2.0d0))
else
tmp = z * (-0.0424927283095952d0)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -2900000.0) || !(x <= 1.85)) {
tmp = 4.16438922228 * (x + -2.0);
} else {
tmp = z * -0.0424927283095952;
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -2900000.0) or not (x <= 1.85): tmp = 4.16438922228 * (x + -2.0) else: tmp = z * -0.0424927283095952 return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -2900000.0) || !(x <= 1.85)) tmp = Float64(4.16438922228 * Float64(x + -2.0)); else tmp = Float64(z * -0.0424927283095952); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -2900000.0) || ~((x <= 1.85))) tmp = 4.16438922228 * (x + -2.0); else tmp = z * -0.0424927283095952; end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -2900000.0], N[Not[LessEqual[x, 1.85]], $MachinePrecision]], N[(4.16438922228 * N[(x + -2.0), $MachinePrecision]), $MachinePrecision], N[(z * -0.0424927283095952), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2900000 \lor \neg \left(x \leq 1.85\right):\\
\;\;\;\;4.16438922228 \cdot \left(x + -2\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\end{array}
\end{array}
if x < -2.9e6 or 1.8500000000000001 < x Initial program 18.6%
*-commutative18.6%
associate-*l/22.9%
*-commutative22.9%
sub-neg22.9%
metadata-eval22.9%
Simplified22.9%
Taylor expanded in x around inf 87.7%
if -2.9e6 < x < 1.8500000000000001Initial program 99.7%
*-commutative99.7%
associate-*l/99.7%
*-commutative99.7%
sub-neg99.7%
metadata-eval99.7%
Simplified99.7%
Taylor expanded in x around 0 72.4%
*-commutative72.4%
Simplified72.4%
Final simplification80.1%
(FPCore (x y z) :precision binary64 (if (or (<= x -52000.0) (not (<= x 2.6))) (- (* x 4.16438922228) 110.1139242984811) (* z -0.0424927283095952)))
double code(double x, double y, double z) {
double tmp;
if ((x <= -52000.0) || !(x <= 2.6)) {
tmp = (x * 4.16438922228) - 110.1139242984811;
} else {
tmp = z * -0.0424927283095952;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((x <= (-52000.0d0)) .or. (.not. (x <= 2.6d0))) then
tmp = (x * 4.16438922228d0) - 110.1139242984811d0
else
tmp = z * (-0.0424927283095952d0)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -52000.0) || !(x <= 2.6)) {
tmp = (x * 4.16438922228) - 110.1139242984811;
} else {
tmp = z * -0.0424927283095952;
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -52000.0) or not (x <= 2.6): tmp = (x * 4.16438922228) - 110.1139242984811 else: tmp = z * -0.0424927283095952 return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -52000.0) || !(x <= 2.6)) tmp = Float64(Float64(x * 4.16438922228) - 110.1139242984811); else tmp = Float64(z * -0.0424927283095952); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -52000.0) || ~((x <= 2.6))) tmp = (x * 4.16438922228) - 110.1139242984811; else tmp = z * -0.0424927283095952; end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -52000.0], N[Not[LessEqual[x, 2.6]], $MachinePrecision]], N[(N[(x * 4.16438922228), $MachinePrecision] - 110.1139242984811), $MachinePrecision], N[(z * -0.0424927283095952), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -52000 \lor \neg \left(x \leq 2.6\right):\\
\;\;\;\;x \cdot 4.16438922228 - 110.1139242984811\\
\mathbf{else}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\end{array}
\end{array}
if x < -52000 or 2.60000000000000009 < x Initial program 18.6%
*-commutative18.6%
associate-*l/22.9%
*-commutative22.9%
sub-neg22.9%
metadata-eval22.9%
Simplified22.9%
Taylor expanded in x around inf 88.2%
if -52000 < x < 2.60000000000000009Initial program 99.7%
*-commutative99.7%
associate-*l/99.7%
*-commutative99.7%
sub-neg99.7%
metadata-eval99.7%
Simplified99.7%
Taylor expanded in x around 0 72.4%
*-commutative72.4%
Simplified72.4%
Final simplification80.4%
(FPCore (x y z)
:precision binary64
(if (<= x -50000.0)
(/ (+ x -2.0) 0.24013125253755718)
(if (<= x 5.5)
(* z -0.0424927283095952)
(- (* x 4.16438922228) 110.1139242984811))))
double code(double x, double y, double z) {
double tmp;
if (x <= -50000.0) {
tmp = (x + -2.0) / 0.24013125253755718;
} else if (x <= 5.5) {
tmp = z * -0.0424927283095952;
} else {
tmp = (x * 4.16438922228) - 110.1139242984811;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-50000.0d0)) then
tmp = (x + (-2.0d0)) / 0.24013125253755718d0
else if (x <= 5.5d0) then
tmp = z * (-0.0424927283095952d0)
else
tmp = (x * 4.16438922228d0) - 110.1139242984811d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -50000.0) {
tmp = (x + -2.0) / 0.24013125253755718;
} else if (x <= 5.5) {
tmp = z * -0.0424927283095952;
} else {
tmp = (x * 4.16438922228) - 110.1139242984811;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -50000.0: tmp = (x + -2.0) / 0.24013125253755718 elif x <= 5.5: tmp = z * -0.0424927283095952 else: tmp = (x * 4.16438922228) - 110.1139242984811 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -50000.0) tmp = Float64(Float64(x + -2.0) / 0.24013125253755718); elseif (x <= 5.5) tmp = Float64(z * -0.0424927283095952); else tmp = Float64(Float64(x * 4.16438922228) - 110.1139242984811); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -50000.0) tmp = (x + -2.0) / 0.24013125253755718; elseif (x <= 5.5) tmp = z * -0.0424927283095952; else tmp = (x * 4.16438922228) - 110.1139242984811; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -50000.0], N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision], If[LessEqual[x, 5.5], N[(z * -0.0424927283095952), $MachinePrecision], N[(N[(x * 4.16438922228), $MachinePrecision] - 110.1139242984811), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -50000:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718}\\
\mathbf{elif}\;x \leq 5.5:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228 - 110.1139242984811\\
\end{array}
\end{array}
if x < -5e4Initial program 20.0%
associate-/l*25.1%
sub-neg25.1%
metadata-eval25.1%
fma-def25.1%
fma-def25.1%
fma-def25.1%
fma-def25.1%
fma-def25.1%
fma-def25.1%
fma-def25.1%
Simplified25.1%
Taylor expanded in x around inf 87.9%
if -5e4 < x < 5.5Initial program 99.7%
*-commutative99.7%
associate-*l/99.7%
*-commutative99.7%
sub-neg99.7%
metadata-eval99.7%
Simplified99.7%
Taylor expanded in x around 0 72.4%
*-commutative72.4%
Simplified72.4%
if 5.5 < x Initial program 17.6%
*-commutative17.6%
associate-*l/21.3%
*-commutative21.3%
sub-neg21.3%
metadata-eval21.3%
Simplified21.3%
Taylor expanded in x around inf 88.7%
Final simplification80.5%
(FPCore (x y z) :precision binary64 (if (<= x -55000.0) (* x 4.16438922228) (if (<= x 2.0) (* z -0.0424927283095952) (* x 4.16438922228))))
double code(double x, double y, double z) {
double tmp;
if (x <= -55000.0) {
tmp = x * 4.16438922228;
} else if (x <= 2.0) {
tmp = z * -0.0424927283095952;
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-55000.0d0)) then
tmp = x * 4.16438922228d0
else if (x <= 2.0d0) then
tmp = z * (-0.0424927283095952d0)
else
tmp = x * 4.16438922228d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -55000.0) {
tmp = x * 4.16438922228;
} else if (x <= 2.0) {
tmp = z * -0.0424927283095952;
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -55000.0: tmp = x * 4.16438922228 elif x <= 2.0: tmp = z * -0.0424927283095952 else: tmp = x * 4.16438922228 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -55000.0) tmp = Float64(x * 4.16438922228); elseif (x <= 2.0) tmp = Float64(z * -0.0424927283095952); else tmp = Float64(x * 4.16438922228); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -55000.0) tmp = x * 4.16438922228; elseif (x <= 2.0) tmp = z * -0.0424927283095952; else tmp = x * 4.16438922228; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -55000.0], N[(x * 4.16438922228), $MachinePrecision], If[LessEqual[x, 2.0], N[(z * -0.0424927283095952), $MachinePrecision], N[(x * 4.16438922228), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -55000:\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{elif}\;x \leq 2:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228\\
\end{array}
\end{array}
if x < -55000 or 2 < x Initial program 18.6%
*-commutative18.6%
associate-*l/22.9%
*-commutative22.9%
sub-neg22.9%
metadata-eval22.9%
Simplified22.9%
Taylor expanded in x around inf 88.3%
Taylor expanded in x around inf 87.7%
*-commutative87.7%
Simplified87.7%
if -55000 < x < 2Initial program 99.7%
*-commutative99.7%
associate-*l/99.7%
*-commutative99.7%
sub-neg99.7%
metadata-eval99.7%
Simplified99.7%
Taylor expanded in x around 0 72.4%
*-commutative72.4%
Simplified72.4%
Final simplification80.1%
(FPCore (x y z) :precision binary64 (* x -0.3407596943375357))
double code(double x, double y, double z) {
return x * -0.3407596943375357;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = x * (-0.3407596943375357d0)
end function
public static double code(double x, double y, double z) {
return x * -0.3407596943375357;
}
def code(x, y, z): return x * -0.3407596943375357
function code(x, y, z) return Float64(x * -0.3407596943375357) end
function tmp = code(x, y, z) tmp = x * -0.3407596943375357; end
code[x_, y_, z_] := N[(x * -0.3407596943375357), $MachinePrecision]
\begin{array}{l}
\\
x \cdot -0.3407596943375357
\end{array}
Initial program 58.9%
associate-/l*61.0%
sub-neg61.0%
metadata-eval61.0%
fma-def61.0%
fma-def61.0%
fma-def61.0%
fma-def61.0%
fma-def61.0%
fma-def61.0%
fma-def61.0%
Simplified61.0%
Taylor expanded in x around inf 46.2%
Taylor expanded in x around 0 2.1%
*-commutative2.1%
Simplified2.1%
Final simplification2.1%
(FPCore (x y z) :precision binary64 (* x 4.16438922228))
double code(double x, double y, double z) {
return x * 4.16438922228;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = x * 4.16438922228d0
end function
public static double code(double x, double y, double z) {
return x * 4.16438922228;
}
def code(x, y, z): return x * 4.16438922228
function code(x, y, z) return Float64(x * 4.16438922228) end
function tmp = code(x, y, z) tmp = x * 4.16438922228; end
code[x_, y_, z_] := N[(x * 4.16438922228), $MachinePrecision]
\begin{array}{l}
\\
x \cdot 4.16438922228
\end{array}
Initial program 58.9%
*-commutative58.9%
associate-*l/61.0%
*-commutative61.0%
sub-neg61.0%
metadata-eval61.0%
Simplified61.0%
Taylor expanded in x around inf 46.1%
Taylor expanded in x around inf 45.9%
*-commutative45.9%
Simplified45.9%
Final simplification45.9%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (- (+ (/ y (* x x)) (* 4.16438922228 x)) 110.1139242984811)))
(if (< x -3.326128725870005e+62)
t_0
(if (< x 9.429991714554673e+55)
(*
(/ (- x 2.0) 1.0)
(/
(+
(*
(+
(* (+ (* (+ (* x 4.16438922228) 78.6994924154) x) 137.519416416) x)
y)
x)
z)
(+
(*
(+
(+ (* 263.505074721 x) (+ (* 43.3400022514 (* x x)) (* x (* x x))))
313.399215894)
x)
47.066876606)))
t_0))))
double code(double x, double y, double z) {
double t_0 = ((y / (x * x)) + (4.16438922228 * x)) - 110.1139242984811;
double tmp;
if (x < -3.326128725870005e+62) {
tmp = t_0;
} else if (x < 9.429991714554673e+55) {
tmp = ((x - 2.0) / 1.0) * (((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z) / (((((263.505074721 * x) + ((43.3400022514 * (x * x)) + (x * (x * x)))) + 313.399215894) * x) + 47.066876606));
} else {
tmp = t_0;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = ((y / (x * x)) + (4.16438922228d0 * x)) - 110.1139242984811d0
if (x < (-3.326128725870005d+62)) then
tmp = t_0
else if (x < 9.429991714554673d+55) then
tmp = ((x - 2.0d0) / 1.0d0) * (((((((((x * 4.16438922228d0) + 78.6994924154d0) * x) + 137.519416416d0) * x) + y) * x) + z) / (((((263.505074721d0 * x) + ((43.3400022514d0 * (x * x)) + (x * (x * x)))) + 313.399215894d0) * x) + 47.066876606d0))
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = ((y / (x * x)) + (4.16438922228 * x)) - 110.1139242984811;
double tmp;
if (x < -3.326128725870005e+62) {
tmp = t_0;
} else if (x < 9.429991714554673e+55) {
tmp = ((x - 2.0) / 1.0) * (((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z) / (((((263.505074721 * x) + ((43.3400022514 * (x * x)) + (x * (x * x)))) + 313.399215894) * x) + 47.066876606));
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = ((y / (x * x)) + (4.16438922228 * x)) - 110.1139242984811 tmp = 0 if x < -3.326128725870005e+62: tmp = t_0 elif x < 9.429991714554673e+55: tmp = ((x - 2.0) / 1.0) * (((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z) / (((((263.505074721 * x) + ((43.3400022514 * (x * x)) + (x * (x * x)))) + 313.399215894) * x) + 47.066876606)) else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(Float64(Float64(y / Float64(x * x)) + Float64(4.16438922228 * x)) - 110.1139242984811) tmp = 0.0 if (x < -3.326128725870005e+62) tmp = t_0; elseif (x < 9.429991714554673e+55) tmp = Float64(Float64(Float64(x - 2.0) / 1.0) * Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z) / Float64(Float64(Float64(Float64(Float64(263.505074721 * x) + Float64(Float64(43.3400022514 * Float64(x * x)) + Float64(x * Float64(x * x)))) + 313.399215894) * x) + 47.066876606))); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = ((y / (x * x)) + (4.16438922228 * x)) - 110.1139242984811; tmp = 0.0; if (x < -3.326128725870005e+62) tmp = t_0; elseif (x < 9.429991714554673e+55) tmp = ((x - 2.0) / 1.0) * (((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z) / (((((263.505074721 * x) + ((43.3400022514 * (x * x)) + (x * (x * x)))) + 313.399215894) * x) + 47.066876606)); else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(N[(y / N[(x * x), $MachinePrecision]), $MachinePrecision] + N[(4.16438922228 * x), $MachinePrecision]), $MachinePrecision] - 110.1139242984811), $MachinePrecision]}, If[Less[x, -3.326128725870005e+62], t$95$0, If[Less[x, 9.429991714554673e+55], N[(N[(N[(x - 2.0), $MachinePrecision] / 1.0), $MachinePrecision] * N[(N[(N[(N[(N[(N[(N[(N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision] * x), $MachinePrecision] + 137.519416416), $MachinePrecision] * x), $MachinePrecision] + y), $MachinePrecision] * x), $MachinePrecision] + z), $MachinePrecision] / N[(N[(N[(N[(N[(263.505074721 * x), $MachinePrecision] + N[(N[(43.3400022514 * N[(x * x), $MachinePrecision]), $MachinePrecision] + N[(x * N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision] * x), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$0]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \left(\frac{y}{x \cdot x} + 4.16438922228 \cdot x\right) - 110.1139242984811\\
\mathbf{if}\;x < -3.326128725870005 \cdot 10^{+62}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;x < 9.429991714554673 \cdot 10^{+55}:\\
\;\;\;\;\frac{x - 2}{1} \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(263.505074721 \cdot x + \left(43.3400022514 \cdot \left(x \cdot x\right) + x \cdot \left(x \cdot x\right)\right)\right) + 313.399215894\right) \cdot x + 47.066876606}\\
\mathbf{else}:\\
\;\;\;\;t_0\\
\end{array}
\end{array}
herbie shell --seed 2023274
(FPCore (x y z)
:name "Numeric.SpecFunctions:logGamma from math-functions-0.1.5.2, C"
:precision binary64
:herbie-target
(if (< x -3.326128725870005e+62) (- (+ (/ y (* x x)) (* 4.16438922228 x)) 110.1139242984811) (if (< x 9.429991714554673e+55) (* (/ (- x 2.0) 1.0) (/ (+ (* (+ (* (+ (* (+ (* x 4.16438922228) 78.6994924154) x) 137.519416416) x) y) x) z) (+ (* (+ (+ (* 263.505074721 x) (+ (* 43.3400022514 (* x x)) (* x (* x x)))) 313.399215894) x) 47.066876606))) (- (+ (/ y (* x x)) (* 4.16438922228 x)) 110.1139242984811)))
(/ (* (- x 2.0) (+ (* (+ (* (+ (* (+ (* x 4.16438922228) 78.6994924154) x) 137.519416416) x) y) x) z)) (+ (* (+ (* (+ (* (+ x 43.3400022514) x) 263.505074721) x) 313.399215894) x) 47.066876606)))