
(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 23 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
(+
y
(*
x
(+ 137.519416416 (* x (+ (* x 4.16438922228) 78.6994924154)))))))
(if (<= (/ (* (- x 2.0) (+ z (* x t_1))) t_0) 2e+299)
(*
(+ x -2.0)
(+
(/ z t_0)
(/
x
(/
(+
47.066876606
(*
x
(+ 313.399215894 (* x (fma x (+ x 43.3400022514) 263.505074721)))))
t_1))))
(+
(-
(fma x 4.16438922228 (/ 3655.1204654076414 x))
(/ (- 130977.50649958357 y) (* x x)))
-110.1139242984811))))
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 = y + (x * (137.519416416 + (x * ((x * 4.16438922228) + 78.6994924154))));
double tmp;
if ((((x - 2.0) * (z + (x * t_1))) / t_0) <= 2e+299) {
tmp = (x + -2.0) * ((z / t_0) + (x / ((47.066876606 + (x * (313.399215894 + (x * fma(x, (x + 43.3400022514), 263.505074721))))) / t_1)));
} else {
tmp = (fma(x, 4.16438922228, (3655.1204654076414 / x)) - ((130977.50649958357 - y) / (x * x))) + -110.1139242984811;
}
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(y + Float64(x * Float64(137.519416416 + Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154))))) tmp = 0.0 if (Float64(Float64(Float64(x - 2.0) * Float64(z + Float64(x * t_1))) / t_0) <= 2e+299) tmp = Float64(Float64(x + -2.0) * Float64(Float64(z / t_0) + Float64(x / Float64(Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * fma(x, Float64(x + 43.3400022514), 263.505074721))))) / t_1)))); else tmp = Float64(Float64(fma(x, 4.16438922228, Float64(3655.1204654076414 / x)) - Float64(Float64(130977.50649958357 - y) / Float64(x * x))) + -110.1139242984811); end return 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[(y + N[(x * N[(137.519416416 + N[(x * N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + N[(x * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t$95$0), $MachinePrecision], 2e+299], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z / t$95$0), $MachinePrecision] + N[(x / N[(N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * N[(x * N[(x + 43.3400022514), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(x * 4.16438922228 + N[(3655.1204654076414 / x), $MachinePrecision]), $MachinePrecision] - N[(N[(130977.50649958357 - y), $MachinePrecision] / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + -110.1139242984811), $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 := y + x \cdot \left(137.519416416 + x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right)\right)\\
\mathbf{if}\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot t_1\right)}{t_0} \leq 2 \cdot 10^{+299}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(\frac{z}{t_0} + \frac{x}{\frac{47.066876606 + x \cdot \left(313.399215894 + x \cdot \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right)\right)}{t_1}}\right)\\
\mathbf{else}:\\
\;\;\;\;\left(\mathsf{fma}\left(x, 4.16438922228, \frac{3655.1204654076414}{x}\right) - \frac{130977.50649958357 - y}{x \cdot x}\right) + -110.1139242984811\\
\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.0000000000000001e299Initial program 95.1%
*-commutative95.1%
associate-*l/98.4%
*-commutative98.4%
sub-neg98.4%
metadata-eval98.4%
Simplified98.4%
Taylor expanded in z around 0 98.4%
Taylor expanded in x around 0 98.4%
+-commutative98.4%
associate-+r+98.4%
cube-unmult98.4%
unpow298.4%
distribute-rgt-in98.4%
unpow298.4%
+-commutative98.4%
associate-*r*98.4%
*-commutative98.4%
distribute-rgt-in98.4%
fma-def98.4%
Simplified98.4%
*-un-lft-identity98.4%
associate-/l*99.5%
*-commutative99.5%
Applied egg-rr99.5%
if 2.0000000000000001e299 < (/.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.1%
*-commutative0.1%
associate-*l/2.4%
*-commutative2.4%
sub-neg2.4%
metadata-eval2.4%
Simplified2.4%
Taylor expanded in x around -inf 99.2%
sub-neg99.2%
+-commutative99.2%
mul-1-neg99.2%
unsub-neg99.2%
*-commutative99.2%
fma-def99.2%
associate-*r/99.2%
metadata-eval99.2%
mul-1-neg99.2%
unsub-neg99.2%
unpow299.2%
metadata-eval99.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
(+
y
(*
x
(+ 137.519416416 (* x (+ (* x 4.16438922228) 78.6994924154))))))))
(if (<= (/ (* (- x 2.0) (+ z t_1)) t_0) 2e+299)
(*
(+ x -2.0)
(+
(/ z t_0)
(/
t_1
(+
47.066876606
(*
x
(+
313.399215894
(* x (fma x (+ x 43.3400022514) 263.505074721))))))))
(+
(-
(fma x 4.16438922228 (/ 3655.1204654076414 x))
(/ (- 130977.50649958357 y) (* x x)))
-110.1139242984811))))
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 * (y + (x * (137.519416416 + (x * ((x * 4.16438922228) + 78.6994924154)))));
double tmp;
if ((((x - 2.0) * (z + t_1)) / t_0) <= 2e+299) {
tmp = (x + -2.0) * ((z / t_0) + (t_1 / (47.066876606 + (x * (313.399215894 + (x * fma(x, (x + 43.3400022514), 263.505074721)))))));
} else {
tmp = (fma(x, 4.16438922228, (3655.1204654076414 / x)) - ((130977.50649958357 - y) / (x * x))) + -110.1139242984811;
}
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(y + Float64(x * Float64(137.519416416 + Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)))))) tmp = 0.0 if (Float64(Float64(Float64(x - 2.0) * Float64(z + t_1)) / t_0) <= 2e+299) tmp = Float64(Float64(x + -2.0) * Float64(Float64(z / t_0) + Float64(t_1 / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * fma(x, Float64(x + 43.3400022514), 263.505074721)))))))); else tmp = Float64(Float64(fma(x, 4.16438922228, Float64(3655.1204654076414 / x)) - Float64(Float64(130977.50649958357 - y) / Float64(x * x))) + -110.1139242984811); end return 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[(y + N[(x * N[(137.519416416 + N[(x * N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + t$95$1), $MachinePrecision]), $MachinePrecision] / t$95$0), $MachinePrecision], 2e+299], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z / t$95$0), $MachinePrecision] + N[(t$95$1 / N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * N[(x * N[(x + 43.3400022514), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(x * 4.16438922228 + N[(3655.1204654076414 / x), $MachinePrecision]), $MachinePrecision] - N[(N[(130977.50649958357 - y), $MachinePrecision] / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + -110.1139242984811), $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(y + x \cdot \left(137.519416416 + x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right)\right)\right)\\
\mathbf{if}\;\frac{\left(x - 2\right) \cdot \left(z + t_1\right)}{t_0} \leq 2 \cdot 10^{+299}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(\frac{z}{t_0} + \frac{t_1}{47.066876606 + x \cdot \left(313.399215894 + x \cdot \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right)\right)}\right)\\
\mathbf{else}:\\
\;\;\;\;\left(\mathsf{fma}\left(x, 4.16438922228, \frac{3655.1204654076414}{x}\right) - \frac{130977.50649958357 - y}{x \cdot x}\right) + -110.1139242984811\\
\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.0000000000000001e299Initial program 95.1%
*-commutative95.1%
associate-*l/98.4%
*-commutative98.4%
sub-neg98.4%
metadata-eval98.4%
Simplified98.4%
Taylor expanded in z around 0 98.4%
Taylor expanded in x around 0 98.4%
+-commutative98.4%
associate-+r+98.4%
cube-unmult98.4%
unpow298.4%
distribute-rgt-in98.4%
unpow298.4%
+-commutative98.4%
associate-*r*98.4%
*-commutative98.4%
distribute-rgt-in98.4%
fma-def98.4%
Simplified98.4%
if 2.0000000000000001e299 < (/.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.1%
*-commutative0.1%
associate-*l/2.4%
*-commutative2.4%
sub-neg2.4%
metadata-eval2.4%
Simplified2.4%
Taylor expanded in x around -inf 99.2%
sub-neg99.2%
+-commutative99.2%
mul-1-neg99.2%
unsub-neg99.2%
*-commutative99.2%
fma-def99.2%
associate-*r/99.2%
metadata-eval99.2%
mul-1-neg99.2%
unsub-neg99.2%
unpow299.2%
metadata-eval99.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
(+
y
(*
x
(+ 137.519416416 (* x (+ (* x 4.16438922228) 78.6994924154))))))))
(if (<= (/ (* (- x 2.0) (+ z t_1)) t_0) 2e+299)
(* (+ x -2.0) (+ (/ z t_0) (/ t_1 t_0)))
(+
(-
(fma x 4.16438922228 (/ 3655.1204654076414 x))
(/ (- 130977.50649958357 y) (* x x)))
-110.1139242984811))))
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 * (y + (x * (137.519416416 + (x * ((x * 4.16438922228) + 78.6994924154)))));
double tmp;
if ((((x - 2.0) * (z + t_1)) / t_0) <= 2e+299) {
tmp = (x + -2.0) * ((z / t_0) + (t_1 / t_0));
} else {
tmp = (fma(x, 4.16438922228, (3655.1204654076414 / x)) - ((130977.50649958357 - y) / (x * x))) + -110.1139242984811;
}
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(y + Float64(x * Float64(137.519416416 + Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)))))) tmp = 0.0 if (Float64(Float64(Float64(x - 2.0) * Float64(z + t_1)) / t_0) <= 2e+299) tmp = Float64(Float64(x + -2.0) * Float64(Float64(z / t_0) + Float64(t_1 / t_0))); else tmp = Float64(Float64(fma(x, 4.16438922228, Float64(3655.1204654076414 / x)) - Float64(Float64(130977.50649958357 - y) / Float64(x * x))) + -110.1139242984811); end return 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[(y + N[(x * N[(137.519416416 + N[(x * N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + t$95$1), $MachinePrecision]), $MachinePrecision] / t$95$0), $MachinePrecision], 2e+299], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z / t$95$0), $MachinePrecision] + N[(t$95$1 / t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(x * 4.16438922228 + N[(3655.1204654076414 / x), $MachinePrecision]), $MachinePrecision] - N[(N[(130977.50649958357 - y), $MachinePrecision] / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + -110.1139242984811), $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(y + x \cdot \left(137.519416416 + x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right)\right)\right)\\
\mathbf{if}\;\frac{\left(x - 2\right) \cdot \left(z + t_1\right)}{t_0} \leq 2 \cdot 10^{+299}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(\frac{z}{t_0} + \frac{t_1}{t_0}\right)\\
\mathbf{else}:\\
\;\;\;\;\left(\mathsf{fma}\left(x, 4.16438922228, \frac{3655.1204654076414}{x}\right) - \frac{130977.50649958357 - y}{x \cdot x}\right) + -110.1139242984811\\
\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.0000000000000001e299Initial program 95.1%
*-commutative95.1%
associate-*l/98.4%
*-commutative98.4%
sub-neg98.4%
metadata-eval98.4%
Simplified98.4%
Taylor expanded in z around 0 98.4%
if 2.0000000000000001e299 < (/.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.1%
*-commutative0.1%
associate-*l/2.4%
*-commutative2.4%
sub-neg2.4%
metadata-eval2.4%
Simplified2.4%
Taylor expanded in x around -inf 99.2%
sub-neg99.2%
+-commutative99.2%
mul-1-neg99.2%
unsub-neg99.2%
*-commutative99.2%
fma-def99.2%
associate-*r/99.2%
metadata-eval99.2%
mul-1-neg99.2%
unsub-neg99.2%
unpow299.2%
metadata-eval99.2%
Simplified99.2%
Final simplification98.6%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))
(t_1
(*
x
(+
y
(*
x
(+ 137.519416416 (* x (+ (* x 4.16438922228) 78.6994924154)))))))
(t_2 (/ (* (- x 2.0) (+ z t_1)) t_0)))
(if (<= t_2 (- INFINITY))
(/ (+ x -2.0) (/ t_0 t_1))
(if (<= t_2 2e+299) t_2 (/ (+ x -2.0) 0.24013125253755718)))))
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 * (y + (x * (137.519416416 + (x * ((x * 4.16438922228) + 78.6994924154)))));
double t_2 = ((x - 2.0) * (z + t_1)) / t_0;
double tmp;
if (t_2 <= -((double) INFINITY)) {
tmp = (x + -2.0) / (t_0 / t_1);
} else if (t_2 <= 2e+299) {
tmp = t_2;
} else {
tmp = (x + -2.0) / 0.24013125253755718;
}
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 * (y + (x * (137.519416416 + (x * ((x * 4.16438922228) + 78.6994924154)))));
double t_2 = ((x - 2.0) * (z + t_1)) / t_0;
double tmp;
if (t_2 <= -Double.POSITIVE_INFINITY) {
tmp = (x + -2.0) / (t_0 / t_1);
} else if (t_2 <= 2e+299) {
tmp = t_2;
} else {
tmp = (x + -2.0) / 0.24013125253755718;
}
return tmp;
}
def code(x, y, z): t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606 t_1 = x * (y + (x * (137.519416416 + (x * ((x * 4.16438922228) + 78.6994924154))))) t_2 = ((x - 2.0) * (z + t_1)) / t_0 tmp = 0 if t_2 <= -math.inf: tmp = (x + -2.0) / (t_0 / t_1) elif t_2 <= 2e+299: tmp = t_2 else: tmp = (x + -2.0) / 0.24013125253755718 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(y + Float64(x * Float64(137.519416416 + Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)))))) t_2 = Float64(Float64(Float64(x - 2.0) * Float64(z + t_1)) / t_0) tmp = 0.0 if (t_2 <= Float64(-Inf)) tmp = Float64(Float64(x + -2.0) / Float64(t_0 / t_1)); elseif (t_2 <= 2e+299) tmp = t_2; else tmp = Float64(Float64(x + -2.0) / 0.24013125253755718); 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 * (y + (x * (137.519416416 + (x * ((x * 4.16438922228) + 78.6994924154))))); t_2 = ((x - 2.0) * (z + t_1)) / t_0; tmp = 0.0; if (t_2 <= -Inf) tmp = (x + -2.0) / (t_0 / t_1); elseif (t_2 <= 2e+299) tmp = t_2; else tmp = (x + -2.0) / 0.24013125253755718; 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[(y + N[(x * N[(137.519416416 + N[(x * N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + t$95$1), $MachinePrecision]), $MachinePrecision] / t$95$0), $MachinePrecision]}, If[LessEqual[t$95$2, (-Infinity)], N[(N[(x + -2.0), $MachinePrecision] / N[(t$95$0 / t$95$1), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, 2e+299], t$95$2, N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $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(y + x \cdot \left(137.519416416 + x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right)\right)\right)\\
t_2 := \frac{\left(x - 2\right) \cdot \left(z + t_1\right)}{t_0}\\
\mathbf{if}\;t_2 \leq -\infty:\\
\;\;\;\;\frac{x + -2}{\frac{t_0}{t_1}}\\
\mathbf{elif}\;t_2 \leq 2 \cdot 10^{+299}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718}\\
\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 4.7%
associate-/l*75.8%
sub-neg75.8%
metadata-eval75.8%
fma-def75.8%
fma-def75.8%
fma-def75.8%
fma-def75.8%
fma-def75.8%
fma-def75.8%
fma-def75.8%
Simplified75.8%
Taylor expanded in z around 0 75.8%
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)) < 2.0000000000000001e299Initial program 99.5%
if 2.0000000000000001e299 < (/.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.1%
associate-/l*2.4%
sub-neg2.4%
metadata-eval2.4%
fma-def2.4%
fma-def2.4%
fma-def2.4%
fma-def2.4%
fma-def2.4%
fma-def2.4%
fma-def2.4%
Simplified2.4%
Taylor expanded in x around inf 97.3%
Final simplification98.0%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))
(t_1
(*
x
(+
y
(*
x
(+ 137.519416416 (* x (+ (* x 4.16438922228) 78.6994924154))))))))
(if (<= (/ (* (- x 2.0) (+ z t_1)) t_0) 2e+299)
(* (+ x -2.0) (+ (/ z t_0) (/ t_1 t_0)))
(/ (+ x -2.0) 0.24013125253755718))))
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 * (y + (x * (137.519416416 + (x * ((x * 4.16438922228) + 78.6994924154)))));
double tmp;
if ((((x - 2.0) * (z + t_1)) / t_0) <= 2e+299) {
tmp = (x + -2.0) * ((z / t_0) + (t_1 / t_0));
} else {
tmp = (x + -2.0) / 0.24013125253755718;
}
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 * (y + (x * (137.519416416d0 + (x * ((x * 4.16438922228d0) + 78.6994924154d0)))))
if ((((x - 2.0d0) * (z + t_1)) / t_0) <= 2d+299) then
tmp = (x + (-2.0d0)) * ((z / t_0) + (t_1 / t_0))
else
tmp = (x + (-2.0d0)) / 0.24013125253755718d0
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 * (y + (x * (137.519416416 + (x * ((x * 4.16438922228) + 78.6994924154)))));
double tmp;
if ((((x - 2.0) * (z + t_1)) / t_0) <= 2e+299) {
tmp = (x + -2.0) * ((z / t_0) + (t_1 / t_0));
} else {
tmp = (x + -2.0) / 0.24013125253755718;
}
return tmp;
}
def code(x, y, z): t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606 t_1 = x * (y + (x * (137.519416416 + (x * ((x * 4.16438922228) + 78.6994924154))))) tmp = 0 if (((x - 2.0) * (z + t_1)) / t_0) <= 2e+299: tmp = (x + -2.0) * ((z / t_0) + (t_1 / t_0)) else: tmp = (x + -2.0) / 0.24013125253755718 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(y + Float64(x * Float64(137.519416416 + Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)))))) tmp = 0.0 if (Float64(Float64(Float64(x - 2.0) * Float64(z + t_1)) / t_0) <= 2e+299) tmp = Float64(Float64(x + -2.0) * Float64(Float64(z / t_0) + Float64(t_1 / t_0))); else tmp = Float64(Float64(x + -2.0) / 0.24013125253755718); 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 * (y + (x * (137.519416416 + (x * ((x * 4.16438922228) + 78.6994924154))))); tmp = 0.0; if ((((x - 2.0) * (z + t_1)) / t_0) <= 2e+299) tmp = (x + -2.0) * ((z / t_0) + (t_1 / t_0)); else tmp = (x + -2.0) / 0.24013125253755718; 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[(y + N[(x * N[(137.519416416 + N[(x * N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + t$95$1), $MachinePrecision]), $MachinePrecision] / t$95$0), $MachinePrecision], 2e+299], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z / t$95$0), $MachinePrecision] + N[(t$95$1 / t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $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(y + x \cdot \left(137.519416416 + x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right)\right)\right)\\
\mathbf{if}\;\frac{\left(x - 2\right) \cdot \left(z + t_1\right)}{t_0} \leq 2 \cdot 10^{+299}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(\frac{z}{t_0} + \frac{t_1}{t_0}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718}\\
\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.0000000000000001e299Initial program 95.1%
*-commutative95.1%
associate-*l/98.4%
*-commutative98.4%
sub-neg98.4%
metadata-eval98.4%
Simplified98.4%
Taylor expanded in z around 0 98.4%
if 2.0000000000000001e299 < (/.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.1%
associate-/l*2.4%
sub-neg2.4%
metadata-eval2.4%
fma-def2.4%
fma-def2.4%
fma-def2.4%
fma-def2.4%
fma-def2.4%
fma-def2.4%
fma-def2.4%
Simplified2.4%
Taylor expanded in x around inf 97.3%
Final simplification98.0%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))
(t_1 (/ z t_0)))
(if (<= x -5.5)
(* (+ x -2.0) (+ 4.16438922228 t_1))
(if (<= x 2.9e-56)
(* (+ x -2.0) (+ t_1 (* 0.0212463641547976 (* x y))))
(if (<= x 2.8e-13)
(/ (* (- x 2.0) (+ z (* x (* x 137.519416416)))) t_0)
(if (<= x 3400.0)
(/ (* x (* (- x 2.0) y)) t_0)
(/
(+ x -2.0)
(+
0.24013125253755718
(- (/ 5.86923874282773 x) (/ 55.572073733743466 (* 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 = z / t_0;
double tmp;
if (x <= -5.5) {
tmp = (x + -2.0) * (4.16438922228 + t_1);
} else if (x <= 2.9e-56) {
tmp = (x + -2.0) * (t_1 + (0.0212463641547976 * (x * y)));
} else if (x <= 2.8e-13) {
tmp = ((x - 2.0) * (z + (x * (x * 137.519416416)))) / t_0;
} else if (x <= 3400.0) {
tmp = (x * ((x - 2.0) * y)) / t_0;
} else {
tmp = (x + -2.0) / (0.24013125253755718 + ((5.86923874282773 / x) - (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) :: t_1
real(8) :: tmp
t_0 = (x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0
t_1 = z / t_0
if (x <= (-5.5d0)) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + t_1)
else if (x <= 2.9d-56) then
tmp = (x + (-2.0d0)) * (t_1 + (0.0212463641547976d0 * (x * y)))
else if (x <= 2.8d-13) then
tmp = ((x - 2.0d0) * (z + (x * (x * 137.519416416d0)))) / t_0
else if (x <= 3400.0d0) then
tmp = (x * ((x - 2.0d0) * y)) / t_0
else
tmp = (x + (-2.0d0)) / (0.24013125253755718d0 + ((5.86923874282773d0 / x) - (55.572073733743466d0 / (x * x))))
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 = z / t_0;
double tmp;
if (x <= -5.5) {
tmp = (x + -2.0) * (4.16438922228 + t_1);
} else if (x <= 2.9e-56) {
tmp = (x + -2.0) * (t_1 + (0.0212463641547976 * (x * y)));
} else if (x <= 2.8e-13) {
tmp = ((x - 2.0) * (z + (x * (x * 137.519416416)))) / t_0;
} else if (x <= 3400.0) {
tmp = (x * ((x - 2.0) * y)) / t_0;
} else {
tmp = (x + -2.0) / (0.24013125253755718 + ((5.86923874282773 / x) - (55.572073733743466 / (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 = z / t_0 tmp = 0 if x <= -5.5: tmp = (x + -2.0) * (4.16438922228 + t_1) elif x <= 2.9e-56: tmp = (x + -2.0) * (t_1 + (0.0212463641547976 * (x * y))) elif x <= 2.8e-13: tmp = ((x - 2.0) * (z + (x * (x * 137.519416416)))) / t_0 elif x <= 3400.0: tmp = (x * ((x - 2.0) * y)) / t_0 else: tmp = (x + -2.0) / (0.24013125253755718 + ((5.86923874282773 / x) - (55.572073733743466 / (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(z / t_0) tmp = 0.0 if (x <= -5.5) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + t_1)); elseif (x <= 2.9e-56) tmp = Float64(Float64(x + -2.0) * Float64(t_1 + Float64(0.0212463641547976 * Float64(x * y)))); elseif (x <= 2.8e-13) tmp = Float64(Float64(Float64(x - 2.0) * Float64(z + Float64(x * Float64(x * 137.519416416)))) / t_0); elseif (x <= 3400.0) tmp = Float64(Float64(x * Float64(Float64(x - 2.0) * y)) / t_0); else tmp = Float64(Float64(x + -2.0) / Float64(0.24013125253755718 + Float64(Float64(5.86923874282773 / x) - Float64(55.572073733743466 / 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 = z / t_0; tmp = 0.0; if (x <= -5.5) tmp = (x + -2.0) * (4.16438922228 + t_1); elseif (x <= 2.9e-56) tmp = (x + -2.0) * (t_1 + (0.0212463641547976 * (x * y))); elseif (x <= 2.8e-13) tmp = ((x - 2.0) * (z + (x * (x * 137.519416416)))) / t_0; elseif (x <= 3400.0) tmp = (x * ((x - 2.0) * y)) / t_0; else tmp = (x + -2.0) / (0.24013125253755718 + ((5.86923874282773 / x) - (55.572073733743466 / (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[(z / t$95$0), $MachinePrecision]}, If[LessEqual[x, -5.5], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + t$95$1), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.9e-56], N[(N[(x + -2.0), $MachinePrecision] * N[(t$95$1 + N[(0.0212463641547976 * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.8e-13], N[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + N[(x * N[(x * 137.519416416), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t$95$0), $MachinePrecision], If[LessEqual[x, 3400.0], N[(N[(x * N[(N[(x - 2.0), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision] / t$95$0), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] / N[(0.24013125253755718 + N[(N[(5.86923874282773 / x), $MachinePrecision] - N[(55.572073733743466 / 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 := \frac{z}{t_0}\\
\mathbf{if}\;x \leq -5.5:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + t_1\right)\\
\mathbf{elif}\;x \leq 2.9 \cdot 10^{-56}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(t_1 + 0.0212463641547976 \cdot \left(x \cdot y\right)\right)\\
\mathbf{elif}\;x \leq 2.8 \cdot 10^{-13}:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot \left(x \cdot 137.519416416\right)\right)}{t_0}\\
\mathbf{elif}\;x \leq 3400:\\
\;\;\;\;\frac{x \cdot \left(\left(x - 2\right) \cdot y\right)}{t_0}\\
\mathbf{else}:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718 + \left(\frac{5.86923874282773}{x} - \frac{55.572073733743466}{x \cdot x}\right)}\\
\end{array}
\end{array}
if x < -5.5Initial program 25.9%
*-commutative25.9%
associate-*l/34.5%
*-commutative34.5%
sub-neg34.5%
metadata-eval34.5%
Simplified34.5%
Taylor expanded in z around 0 34.5%
Taylor expanded in x around inf 86.5%
if -5.5 < x < 2.89999999999999991e-56Initial program 99.6%
*-commutative99.6%
associate-*l/99.6%
*-commutative99.6%
sub-neg99.6%
metadata-eval99.6%
Simplified99.6%
Taylor expanded in z around 0 99.6%
Taylor expanded in x around 0 96.6%
if 2.89999999999999991e-56 < x < 2.8000000000000002e-13Initial program 99.6%
*-commutative99.6%
associate-*l/99.6%
*-commutative99.6%
sub-neg99.6%
metadata-eval99.6%
Simplified99.6%
Taylor expanded in y around 0 99.7%
Taylor expanded in x around 0 99.7%
*-commutative99.7%
unpow299.7%
associate-*l*99.6%
Simplified99.6%
if 2.8000000000000002e-13 < x < 3400Initial program 99.3%
*-commutative99.3%
associate-*l/99.6%
*-commutative99.6%
sub-neg99.6%
metadata-eval99.6%
Simplified99.2%
Taylor expanded in y around inf 72.8%
if 3400 < x Initial program 15.0%
associate-/l*19.0%
sub-neg19.0%
metadata-eval19.0%
fma-def19.0%
fma-def19.0%
fma-def19.0%
fma-def19.0%
fma-def19.0%
fma-def19.1%
fma-def19.1%
Simplified19.1%
Taylor expanded in x around inf 94.6%
associate--l+94.6%
associate-*r/94.6%
metadata-eval94.6%
associate-*r/94.6%
metadata-eval94.6%
unpow294.6%
Simplified94.6%
Final simplification93.1%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606)))
(if (<= x -1.22e+27)
(* (+ x -2.0) (+ 4.16438922228 (/ z t_0)))
(if (<= x 10500.0)
(/ (* (- x 2.0) (+ z (* x (+ y (* x 137.519416416))))) t_0)
(/
(+ x -2.0)
(+
0.24013125253755718
(- (/ 5.86923874282773 x) (/ 55.572073733743466 (* 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 tmp;
if (x <= -1.22e+27) {
tmp = (x + -2.0) * (4.16438922228 + (z / t_0));
} else if (x <= 10500.0) {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / t_0;
} else {
tmp = (x + -2.0) / (0.24013125253755718 + ((5.86923874282773 / x) - (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 = (x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0
if (x <= (-1.22d+27)) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + (z / t_0))
else if (x <= 10500.0d0) then
tmp = ((x - 2.0d0) * (z + (x * (y + (x * 137.519416416d0))))) / t_0
else
tmp = (x + (-2.0d0)) / (0.24013125253755718d0 + ((5.86923874282773d0 / x) - (55.572073733743466d0 / (x * x))))
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 tmp;
if (x <= -1.22e+27) {
tmp = (x + -2.0) * (4.16438922228 + (z / t_0));
} else if (x <= 10500.0) {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / t_0;
} else {
tmp = (x + -2.0) / (0.24013125253755718 + ((5.86923874282773 / x) - (55.572073733743466 / (x * x))));
}
return tmp;
}
def code(x, y, z): t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606 tmp = 0 if x <= -1.22e+27: tmp = (x + -2.0) * (4.16438922228 + (z / t_0)) elif x <= 10500.0: tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / t_0 else: tmp = (x + -2.0) / (0.24013125253755718 + ((5.86923874282773 / x) - (55.572073733743466 / (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) tmp = 0.0 if (x <= -1.22e+27) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(z / t_0))); elseif (x <= 10500.0) tmp = Float64(Float64(Float64(x - 2.0) * Float64(z + Float64(x * Float64(y + Float64(x * 137.519416416))))) / t_0); else tmp = Float64(Float64(x + -2.0) / Float64(0.24013125253755718 + Float64(Float64(5.86923874282773 / x) - Float64(55.572073733743466 / 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; tmp = 0.0; if (x <= -1.22e+27) tmp = (x + -2.0) * (4.16438922228 + (z / t_0)); elseif (x <= 10500.0) tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / t_0; else tmp = (x + -2.0) / (0.24013125253755718 + ((5.86923874282773 / x) - (55.572073733743466 / (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]}, If[LessEqual[x, -1.22e+27], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(z / t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 10500.0], N[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + N[(x * N[(y + N[(x * 137.519416416), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t$95$0), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] / N[(0.24013125253755718 + N[(N[(5.86923874282773 / x), $MachinePrecision] - N[(55.572073733743466 / 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\\
\mathbf{if}\;x \leq -1.22 \cdot 10^{+27}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{z}{t_0}\right)\\
\mathbf{elif}\;x \leq 10500:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot \left(y + x \cdot 137.519416416\right)\right)}{t_0}\\
\mathbf{else}:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718 + \left(\frac{5.86923874282773}{x} - \frac{55.572073733743466}{x \cdot x}\right)}\\
\end{array}
\end{array}
if x < -1.2200000000000001e27Initial program 14.6%
*-commutative14.6%
associate-*l/23.1%
*-commutative23.1%
sub-neg23.1%
metadata-eval23.1%
Simplified23.1%
Taylor expanded in z around 0 23.1%
Taylor expanded in x around inf 94.1%
if -1.2200000000000001e27 < x < 10500Initial program 98.9%
Taylor expanded in x around 0 96.7%
*-commutative96.7%
Simplified96.7%
if 10500 < x Initial program 15.0%
associate-/l*19.0%
sub-neg19.0%
metadata-eval19.0%
fma-def19.0%
fma-def19.0%
fma-def19.0%
fma-def19.0%
fma-def19.0%
fma-def19.1%
fma-def19.1%
Simplified19.1%
Taylor expanded in x around inf 94.6%
associate--l+94.6%
associate-*r/94.6%
metadata-eval94.6%
associate-*r/94.6%
metadata-eval94.6%
unpow294.6%
Simplified94.6%
Final simplification95.7%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606)))
(if (<= x -4.8e-11)
(* (+ x -2.0) (+ 4.16438922228 (/ z t_0)))
(if (<= x 2.9e-56)
(*
(+ x -2.0)
(+ (* z 0.0212463641547976) (* y (* x 0.0212463641547976))))
(if (<= x 3.2e-13)
(-
(* z (+ -0.0424927283095952 (* x 0.3041881842569256)))
(* x (* x (+ 5.843575199059173 (* z 1.787568985856513)))))
(if (<= x 10500.0)
(/ (* x (* (- x 2.0) y)) t_0)
(/
(+ x -2.0)
(+
0.24013125253755718
(- (/ 5.86923874282773 x) (/ 55.572073733743466 (* 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 tmp;
if (x <= -4.8e-11) {
tmp = (x + -2.0) * (4.16438922228 + (z / t_0));
} else if (x <= 2.9e-56) {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (y * (x * 0.0212463641547976)));
} else if (x <= 3.2e-13) {
tmp = (z * (-0.0424927283095952 + (x * 0.3041881842569256))) - (x * (x * (5.843575199059173 + (z * 1.787568985856513))));
} else if (x <= 10500.0) {
tmp = (x * ((x - 2.0) * y)) / t_0;
} else {
tmp = (x + -2.0) / (0.24013125253755718 + ((5.86923874282773 / x) - (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 = (x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0
if (x <= (-4.8d-11)) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + (z / t_0))
else if (x <= 2.9d-56) then
tmp = (x + (-2.0d0)) * ((z * 0.0212463641547976d0) + (y * (x * 0.0212463641547976d0)))
else if (x <= 3.2d-13) then
tmp = (z * ((-0.0424927283095952d0) + (x * 0.3041881842569256d0))) - (x * (x * (5.843575199059173d0 + (z * 1.787568985856513d0))))
else if (x <= 10500.0d0) then
tmp = (x * ((x - 2.0d0) * y)) / t_0
else
tmp = (x + (-2.0d0)) / (0.24013125253755718d0 + ((5.86923874282773d0 / x) - (55.572073733743466d0 / (x * x))))
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 tmp;
if (x <= -4.8e-11) {
tmp = (x + -2.0) * (4.16438922228 + (z / t_0));
} else if (x <= 2.9e-56) {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (y * (x * 0.0212463641547976)));
} else if (x <= 3.2e-13) {
tmp = (z * (-0.0424927283095952 + (x * 0.3041881842569256))) - (x * (x * (5.843575199059173 + (z * 1.787568985856513))));
} else if (x <= 10500.0) {
tmp = (x * ((x - 2.0) * y)) / t_0;
} else {
tmp = (x + -2.0) / (0.24013125253755718 + ((5.86923874282773 / x) - (55.572073733743466 / (x * x))));
}
return tmp;
}
def code(x, y, z): t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606 tmp = 0 if x <= -4.8e-11: tmp = (x + -2.0) * (4.16438922228 + (z / t_0)) elif x <= 2.9e-56: tmp = (x + -2.0) * ((z * 0.0212463641547976) + (y * (x * 0.0212463641547976))) elif x <= 3.2e-13: tmp = (z * (-0.0424927283095952 + (x * 0.3041881842569256))) - (x * (x * (5.843575199059173 + (z * 1.787568985856513)))) elif x <= 10500.0: tmp = (x * ((x - 2.0) * y)) / t_0 else: tmp = (x + -2.0) / (0.24013125253755718 + ((5.86923874282773 / x) - (55.572073733743466 / (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) tmp = 0.0 if (x <= -4.8e-11) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(z / t_0))); elseif (x <= 2.9e-56) tmp = Float64(Float64(x + -2.0) * Float64(Float64(z * 0.0212463641547976) + Float64(y * Float64(x * 0.0212463641547976)))); elseif (x <= 3.2e-13) tmp = Float64(Float64(z * Float64(-0.0424927283095952 + Float64(x * 0.3041881842569256))) - Float64(x * Float64(x * Float64(5.843575199059173 + Float64(z * 1.787568985856513))))); elseif (x <= 10500.0) tmp = Float64(Float64(x * Float64(Float64(x - 2.0) * y)) / t_0); else tmp = Float64(Float64(x + -2.0) / Float64(0.24013125253755718 + Float64(Float64(5.86923874282773 / x) - Float64(55.572073733743466 / 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; tmp = 0.0; if (x <= -4.8e-11) tmp = (x + -2.0) * (4.16438922228 + (z / t_0)); elseif (x <= 2.9e-56) tmp = (x + -2.0) * ((z * 0.0212463641547976) + (y * (x * 0.0212463641547976))); elseif (x <= 3.2e-13) tmp = (z * (-0.0424927283095952 + (x * 0.3041881842569256))) - (x * (x * (5.843575199059173 + (z * 1.787568985856513)))); elseif (x <= 10500.0) tmp = (x * ((x - 2.0) * y)) / t_0; else tmp = (x + -2.0) / (0.24013125253755718 + ((5.86923874282773 / x) - (55.572073733743466 / (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]}, If[LessEqual[x, -4.8e-11], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(z / t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.9e-56], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z * 0.0212463641547976), $MachinePrecision] + N[(y * N[(x * 0.0212463641547976), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 3.2e-13], N[(N[(z * N[(-0.0424927283095952 + N[(x * 0.3041881842569256), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x * N[(x * N[(5.843575199059173 + N[(z * 1.787568985856513), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 10500.0], N[(N[(x * N[(N[(x - 2.0), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision] / t$95$0), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] / N[(0.24013125253755718 + N[(N[(5.86923874282773 / x), $MachinePrecision] - N[(55.572073733743466 / 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\\
\mathbf{if}\;x \leq -4.8 \cdot 10^{-11}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{z}{t_0}\right)\\
\mathbf{elif}\;x \leq 2.9 \cdot 10^{-56}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976 + y \cdot \left(x \cdot 0.0212463641547976\right)\right)\\
\mathbf{elif}\;x \leq 3.2 \cdot 10^{-13}:\\
\;\;\;\;z \cdot \left(-0.0424927283095952 + x \cdot 0.3041881842569256\right) - x \cdot \left(x \cdot \left(5.843575199059173 + z \cdot 1.787568985856513\right)\right)\\
\mathbf{elif}\;x \leq 10500:\\
\;\;\;\;\frac{x \cdot \left(\left(x - 2\right) \cdot y\right)}{t_0}\\
\mathbf{else}:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718 + \left(\frac{5.86923874282773}{x} - \frac{55.572073733743466}{x \cdot x}\right)}\\
\end{array}
\end{array}
if x < -4.8000000000000002e-11Initial program 29.1%
*-commutative29.1%
associate-*l/37.3%
*-commutative37.3%
sub-neg37.3%
metadata-eval37.3%
Simplified37.3%
Taylor expanded in z around 0 37.3%
Taylor expanded in x around inf 87.1%
if -4.8000000000000002e-11 < x < 2.89999999999999991e-56Initial program 99.6%
*-commutative99.6%
associate-*l/99.6%
*-commutative99.6%
sub-neg99.6%
metadata-eval99.6%
Simplified99.6%
Taylor expanded in x around 0 96.3%
Taylor expanded in y around inf 96.3%
*-commutative96.3%
*-commutative96.3%
associate-*l*96.3%
Simplified96.3%
if 2.89999999999999991e-56 < x < 3.2e-13Initial program 99.6%
*-commutative99.6%
associate-*l/99.6%
*-commutative99.6%
sub-neg99.6%
metadata-eval99.6%
Simplified99.6%
Taylor expanded in y around 0 99.7%
Taylor expanded in x around 0 99.4%
+-commutative99.4%
mul-1-neg99.4%
unsub-neg99.4%
*-commutative99.4%
*-commutative99.4%
distribute-rgt-out--99.4%
associate-*l*99.4%
distribute-lft-out99.4%
metadata-eval99.4%
unpow299.4%
associate-*l*99.5%
Simplified99.5%
if 3.2e-13 < x < 10500Initial program 99.3%
*-commutative99.3%
associate-*l/99.6%
*-commutative99.6%
sub-neg99.6%
metadata-eval99.6%
Simplified99.2%
Taylor expanded in y around inf 72.8%
if 10500 < x Initial program 15.0%
associate-/l*19.0%
sub-neg19.0%
metadata-eval19.0%
fma-def19.0%
fma-def19.0%
fma-def19.0%
fma-def19.0%
fma-def19.0%
fma-def19.1%
fma-def19.1%
Simplified19.1%
Taylor expanded in x around inf 94.6%
associate--l+94.6%
associate-*r/94.6%
metadata-eval94.6%
associate-*r/94.6%
metadata-eval94.6%
unpow294.6%
Simplified94.6%
Final simplification93.0%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))
(t_1 (/ z t_0)))
(if (<= x -5.5)
(* (+ x -2.0) (+ 4.16438922228 t_1))
(if (<= x 2.9e-56)
(* (+ x -2.0) (+ t_1 (* 0.0212463641547976 (* x y))))
(if (<= x 1.12e-13)
(-
(* z (+ -0.0424927283095952 (* x 0.3041881842569256)))
(* x (* x (+ 5.843575199059173 (* z 1.787568985856513)))))
(if (<= x 6000.0)
(/ (* x (* (- x 2.0) y)) t_0)
(/
(+ x -2.0)
(+
0.24013125253755718
(- (/ 5.86923874282773 x) (/ 55.572073733743466 (* 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 = z / t_0;
double tmp;
if (x <= -5.5) {
tmp = (x + -2.0) * (4.16438922228 + t_1);
} else if (x <= 2.9e-56) {
tmp = (x + -2.0) * (t_1 + (0.0212463641547976 * (x * y)));
} else if (x <= 1.12e-13) {
tmp = (z * (-0.0424927283095952 + (x * 0.3041881842569256))) - (x * (x * (5.843575199059173 + (z * 1.787568985856513))));
} else if (x <= 6000.0) {
tmp = (x * ((x - 2.0) * y)) / t_0;
} else {
tmp = (x + -2.0) / (0.24013125253755718 + ((5.86923874282773 / x) - (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) :: t_1
real(8) :: tmp
t_0 = (x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0
t_1 = z / t_0
if (x <= (-5.5d0)) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + t_1)
else if (x <= 2.9d-56) then
tmp = (x + (-2.0d0)) * (t_1 + (0.0212463641547976d0 * (x * y)))
else if (x <= 1.12d-13) then
tmp = (z * ((-0.0424927283095952d0) + (x * 0.3041881842569256d0))) - (x * (x * (5.843575199059173d0 + (z * 1.787568985856513d0))))
else if (x <= 6000.0d0) then
tmp = (x * ((x - 2.0d0) * y)) / t_0
else
tmp = (x + (-2.0d0)) / (0.24013125253755718d0 + ((5.86923874282773d0 / x) - (55.572073733743466d0 / (x * x))))
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 = z / t_0;
double tmp;
if (x <= -5.5) {
tmp = (x + -2.0) * (4.16438922228 + t_1);
} else if (x <= 2.9e-56) {
tmp = (x + -2.0) * (t_1 + (0.0212463641547976 * (x * y)));
} else if (x <= 1.12e-13) {
tmp = (z * (-0.0424927283095952 + (x * 0.3041881842569256))) - (x * (x * (5.843575199059173 + (z * 1.787568985856513))));
} else if (x <= 6000.0) {
tmp = (x * ((x - 2.0) * y)) / t_0;
} else {
tmp = (x + -2.0) / (0.24013125253755718 + ((5.86923874282773 / x) - (55.572073733743466 / (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 = z / t_0 tmp = 0 if x <= -5.5: tmp = (x + -2.0) * (4.16438922228 + t_1) elif x <= 2.9e-56: tmp = (x + -2.0) * (t_1 + (0.0212463641547976 * (x * y))) elif x <= 1.12e-13: tmp = (z * (-0.0424927283095952 + (x * 0.3041881842569256))) - (x * (x * (5.843575199059173 + (z * 1.787568985856513)))) elif x <= 6000.0: tmp = (x * ((x - 2.0) * y)) / t_0 else: tmp = (x + -2.0) / (0.24013125253755718 + ((5.86923874282773 / x) - (55.572073733743466 / (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(z / t_0) tmp = 0.0 if (x <= -5.5) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + t_1)); elseif (x <= 2.9e-56) tmp = Float64(Float64(x + -2.0) * Float64(t_1 + Float64(0.0212463641547976 * Float64(x * y)))); elseif (x <= 1.12e-13) tmp = Float64(Float64(z * Float64(-0.0424927283095952 + Float64(x * 0.3041881842569256))) - Float64(x * Float64(x * Float64(5.843575199059173 + Float64(z * 1.787568985856513))))); elseif (x <= 6000.0) tmp = Float64(Float64(x * Float64(Float64(x - 2.0) * y)) / t_0); else tmp = Float64(Float64(x + -2.0) / Float64(0.24013125253755718 + Float64(Float64(5.86923874282773 / x) - Float64(55.572073733743466 / 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 = z / t_0; tmp = 0.0; if (x <= -5.5) tmp = (x + -2.0) * (4.16438922228 + t_1); elseif (x <= 2.9e-56) tmp = (x + -2.0) * (t_1 + (0.0212463641547976 * (x * y))); elseif (x <= 1.12e-13) tmp = (z * (-0.0424927283095952 + (x * 0.3041881842569256))) - (x * (x * (5.843575199059173 + (z * 1.787568985856513)))); elseif (x <= 6000.0) tmp = (x * ((x - 2.0) * y)) / t_0; else tmp = (x + -2.0) / (0.24013125253755718 + ((5.86923874282773 / x) - (55.572073733743466 / (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[(z / t$95$0), $MachinePrecision]}, If[LessEqual[x, -5.5], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + t$95$1), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.9e-56], N[(N[(x + -2.0), $MachinePrecision] * N[(t$95$1 + N[(0.0212463641547976 * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.12e-13], N[(N[(z * N[(-0.0424927283095952 + N[(x * 0.3041881842569256), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x * N[(x * N[(5.843575199059173 + N[(z * 1.787568985856513), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 6000.0], N[(N[(x * N[(N[(x - 2.0), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision] / t$95$0), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] / N[(0.24013125253755718 + N[(N[(5.86923874282773 / x), $MachinePrecision] - N[(55.572073733743466 / 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 := \frac{z}{t_0}\\
\mathbf{if}\;x \leq -5.5:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + t_1\right)\\
\mathbf{elif}\;x \leq 2.9 \cdot 10^{-56}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(t_1 + 0.0212463641547976 \cdot \left(x \cdot y\right)\right)\\
\mathbf{elif}\;x \leq 1.12 \cdot 10^{-13}:\\
\;\;\;\;z \cdot \left(-0.0424927283095952 + x \cdot 0.3041881842569256\right) - x \cdot \left(x \cdot \left(5.843575199059173 + z \cdot 1.787568985856513\right)\right)\\
\mathbf{elif}\;x \leq 6000:\\
\;\;\;\;\frac{x \cdot \left(\left(x - 2\right) \cdot y\right)}{t_0}\\
\mathbf{else}:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718 + \left(\frac{5.86923874282773}{x} - \frac{55.572073733743466}{x \cdot x}\right)}\\
\end{array}
\end{array}
if x < -5.5Initial program 25.9%
*-commutative25.9%
associate-*l/34.5%
*-commutative34.5%
sub-neg34.5%
metadata-eval34.5%
Simplified34.5%
Taylor expanded in z around 0 34.5%
Taylor expanded in x around inf 86.5%
if -5.5 < x < 2.89999999999999991e-56Initial program 99.6%
*-commutative99.6%
associate-*l/99.6%
*-commutative99.6%
sub-neg99.6%
metadata-eval99.6%
Simplified99.6%
Taylor expanded in z around 0 99.6%
Taylor expanded in x around 0 96.6%
if 2.89999999999999991e-56 < x < 1.12e-13Initial program 99.6%
*-commutative99.6%
associate-*l/99.6%
*-commutative99.6%
sub-neg99.6%
metadata-eval99.6%
Simplified99.6%
Taylor expanded in y around 0 99.7%
Taylor expanded in x around 0 99.4%
+-commutative99.4%
mul-1-neg99.4%
unsub-neg99.4%
*-commutative99.4%
*-commutative99.4%
distribute-rgt-out--99.4%
associate-*l*99.4%
distribute-lft-out99.4%
metadata-eval99.4%
unpow299.4%
associate-*l*99.5%
Simplified99.5%
if 1.12e-13 < x < 6e3Initial program 99.3%
*-commutative99.3%
associate-*l/99.6%
*-commutative99.6%
sub-neg99.6%
metadata-eval99.6%
Simplified99.2%
Taylor expanded in y around inf 72.8%
if 6e3 < x Initial program 15.0%
associate-/l*19.0%
sub-neg19.0%
metadata-eval19.0%
fma-def19.0%
fma-def19.0%
fma-def19.0%
fma-def19.0%
fma-def19.0%
fma-def19.1%
fma-def19.1%
Simplified19.1%
Taylor expanded in x around inf 94.6%
associate--l+94.6%
associate-*r/94.6%
metadata-eval94.6%
associate-*r/94.6%
metadata-eval94.6%
unpow294.6%
Simplified94.6%
Final simplification93.1%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(/
(+ x -2.0)
(+
0.24013125253755718
(- (/ 5.86923874282773 x) (/ 55.572073733743466 (* x x)))))))
(if (<= x -5.5)
t_0
(if (<= x 4.6e-58)
(-
(* z -0.0424927283095952)
(*
x
(-
(* z -0.28294182010212804)
(* 0.0212463641547976 (+ z (* y -2.0))))))
(if (<= x 3.3e-13)
(-
(* z (+ -0.0424927283095952 (* x 0.3041881842569256)))
(* x (* x (+ 5.843575199059173 (* z 1.787568985856513)))))
(if (<= x 660.0)
(*
(+ x -2.0)
(/
x
(/
(+
47.066876606
(* x (+ 313.399215894 (* (+ x 43.3400022514) (* x x)))))
y)))
t_0))))))
double code(double x, double y, double z) {
double t_0 = (x + -2.0) / (0.24013125253755718 + ((5.86923874282773 / x) - (55.572073733743466 / (x * x))));
double tmp;
if (x <= -5.5) {
tmp = t_0;
} else if (x <= 4.6e-58) {
tmp = (z * -0.0424927283095952) - (x * ((z * -0.28294182010212804) - (0.0212463641547976 * (z + (y * -2.0)))));
} else if (x <= 3.3e-13) {
tmp = (z * (-0.0424927283095952 + (x * 0.3041881842569256))) - (x * (x * (5.843575199059173 + (z * 1.787568985856513))));
} else if (x <= 660.0) {
tmp = (x + -2.0) * (x / ((47.066876606 + (x * (313.399215894 + ((x + 43.3400022514) * (x * x))))) / y));
} 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 = (x + (-2.0d0)) / (0.24013125253755718d0 + ((5.86923874282773d0 / x) - (55.572073733743466d0 / (x * x))))
if (x <= (-5.5d0)) then
tmp = t_0
else if (x <= 4.6d-58) then
tmp = (z * (-0.0424927283095952d0)) - (x * ((z * (-0.28294182010212804d0)) - (0.0212463641547976d0 * (z + (y * (-2.0d0))))))
else if (x <= 3.3d-13) then
tmp = (z * ((-0.0424927283095952d0) + (x * 0.3041881842569256d0))) - (x * (x * (5.843575199059173d0 + (z * 1.787568985856513d0))))
else if (x <= 660.0d0) then
tmp = (x + (-2.0d0)) * (x / ((47.066876606d0 + (x * (313.399215894d0 + ((x + 43.3400022514d0) * (x * x))))) / y))
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = (x + -2.0) / (0.24013125253755718 + ((5.86923874282773 / x) - (55.572073733743466 / (x * x))));
double tmp;
if (x <= -5.5) {
tmp = t_0;
} else if (x <= 4.6e-58) {
tmp = (z * -0.0424927283095952) - (x * ((z * -0.28294182010212804) - (0.0212463641547976 * (z + (y * -2.0)))));
} else if (x <= 3.3e-13) {
tmp = (z * (-0.0424927283095952 + (x * 0.3041881842569256))) - (x * (x * (5.843575199059173 + (z * 1.787568985856513))));
} else if (x <= 660.0) {
tmp = (x + -2.0) * (x / ((47.066876606 + (x * (313.399215894 + ((x + 43.3400022514) * (x * x))))) / y));
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = (x + -2.0) / (0.24013125253755718 + ((5.86923874282773 / x) - (55.572073733743466 / (x * x)))) tmp = 0 if x <= -5.5: tmp = t_0 elif x <= 4.6e-58: tmp = (z * -0.0424927283095952) - (x * ((z * -0.28294182010212804) - (0.0212463641547976 * (z + (y * -2.0))))) elif x <= 3.3e-13: tmp = (z * (-0.0424927283095952 + (x * 0.3041881842569256))) - (x * (x * (5.843575199059173 + (z * 1.787568985856513)))) elif x <= 660.0: tmp = (x + -2.0) * (x / ((47.066876606 + (x * (313.399215894 + ((x + 43.3400022514) * (x * x))))) / y)) else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(Float64(x + -2.0) / Float64(0.24013125253755718 + Float64(Float64(5.86923874282773 / x) - Float64(55.572073733743466 / Float64(x * x))))) tmp = 0.0 if (x <= -5.5) tmp = t_0; elseif (x <= 4.6e-58) tmp = Float64(Float64(z * -0.0424927283095952) - Float64(x * Float64(Float64(z * -0.28294182010212804) - Float64(0.0212463641547976 * Float64(z + Float64(y * -2.0)))))); elseif (x <= 3.3e-13) tmp = Float64(Float64(z * Float64(-0.0424927283095952 + Float64(x * 0.3041881842569256))) - Float64(x * Float64(x * Float64(5.843575199059173 + Float64(z * 1.787568985856513))))); elseif (x <= 660.0) tmp = Float64(Float64(x + -2.0) * Float64(x / Float64(Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(Float64(x + 43.3400022514) * Float64(x * x))))) / y))); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = (x + -2.0) / (0.24013125253755718 + ((5.86923874282773 / x) - (55.572073733743466 / (x * x)))); tmp = 0.0; if (x <= -5.5) tmp = t_0; elseif (x <= 4.6e-58) tmp = (z * -0.0424927283095952) - (x * ((z * -0.28294182010212804) - (0.0212463641547976 * (z + (y * -2.0))))); elseif (x <= 3.3e-13) tmp = (z * (-0.0424927283095952 + (x * 0.3041881842569256))) - (x * (x * (5.843575199059173 + (z * 1.787568985856513)))); elseif (x <= 660.0) tmp = (x + -2.0) * (x / ((47.066876606 + (x * (313.399215894 + ((x + 43.3400022514) * (x * x))))) / y)); else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(x + -2.0), $MachinePrecision] / N[(0.24013125253755718 + N[(N[(5.86923874282773 / x), $MachinePrecision] - N[(55.572073733743466 / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -5.5], t$95$0, If[LessEqual[x, 4.6e-58], 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], If[LessEqual[x, 3.3e-13], N[(N[(z * N[(-0.0424927283095952 + N[(x * 0.3041881842569256), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x * N[(x * N[(5.843575199059173 + N[(z * 1.787568985856513), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 660.0], N[(N[(x + -2.0), $MachinePrecision] * N[(x / N[(N[(47.066876606 + N[(x * N[(313.399215894 + N[(N[(x + 43.3400022514), $MachinePrecision] * N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$0]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{x + -2}{0.24013125253755718 + \left(\frac{5.86923874282773}{x} - \frac{55.572073733743466}{x \cdot x}\right)}\\
\mathbf{if}\;x \leq -5.5:\\
\;\;\;\;t_0\\
\mathbf{elif}\;x \leq 4.6 \cdot 10^{-58}:\\
\;\;\;\;z \cdot -0.0424927283095952 - x \cdot \left(z \cdot -0.28294182010212804 - 0.0212463641547976 \cdot \left(z + y \cdot -2\right)\right)\\
\mathbf{elif}\;x \leq 3.3 \cdot 10^{-13}:\\
\;\;\;\;z \cdot \left(-0.0424927283095952 + x \cdot 0.3041881842569256\right) - x \cdot \left(x \cdot \left(5.843575199059173 + z \cdot 1.787568985856513\right)\right)\\
\mathbf{elif}\;x \leq 660:\\
\;\;\;\;\left(x + -2\right) \cdot \frac{x}{\frac{47.066876606 + x \cdot \left(313.399215894 + \left(x + 43.3400022514\right) \cdot \left(x \cdot x\right)\right)}{y}}\\
\mathbf{else}:\\
\;\;\;\;t_0\\
\end{array}
\end{array}
if x < -5.5 or 660 < x Initial program 21.4%
associate-/l*28.1%
sub-neg28.1%
metadata-eval28.1%
fma-def28.1%
fma-def28.1%
fma-def28.1%
fma-def28.1%
fma-def28.1%
fma-def28.1%
fma-def28.2%
Simplified28.2%
Taylor expanded in x around inf 87.7%
associate--l+87.7%
associate-*r/87.7%
metadata-eval87.7%
associate-*r/87.7%
metadata-eval87.7%
unpow287.7%
Simplified87.7%
if -5.5 < x < 4.5999999999999998e-58Initial program 99.6%
*-commutative99.6%
associate-*l/99.6%
*-commutative99.6%
sub-neg99.6%
metadata-eval99.6%
Simplified99.6%
Taylor expanded in x around 0 95.9%
if 4.5999999999999998e-58 < x < 3.3000000000000001e-13Initial program 99.6%
*-commutative99.6%
associate-*l/99.6%
*-commutative99.6%
sub-neg99.6%
metadata-eval99.6%
Simplified99.6%
Taylor expanded in y around 0 99.7%
Taylor expanded in x around 0 99.4%
+-commutative99.4%
mul-1-neg99.4%
unsub-neg99.4%
*-commutative99.4%
*-commutative99.4%
distribute-rgt-out--99.4%
associate-*l*99.4%
distribute-lft-out99.4%
metadata-eval99.4%
unpow299.4%
associate-*l*99.5%
Simplified99.5%
if 3.3000000000000001e-13 < x < 660Initial program 99.3%
*-commutative99.3%
associate-*l/99.6%
*-commutative99.6%
sub-neg99.6%
metadata-eval99.6%
Simplified99.2%
Taylor expanded in z around 0 85.4%
Taylor expanded in x around inf 41.1%
cube-unmult41.1%
unpow241.1%
distribute-rgt-in41.1%
unpow241.1%
+-commutative41.1%
associate-*r*41.1%
Simplified41.1%
Taylor expanded in y around inf 39.4%
associate-/l*39.2%
+-commutative39.2%
+-commutative39.2%
unpow239.2%
+-commutative39.2%
Simplified39.2%
Final simplification90.9%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(/
(+ x -2.0)
(+
0.24013125253755718
(- (/ 5.86923874282773 x) (/ 55.572073733743466 (* x x)))))))
(if (<= x -1300.0)
t_0
(if (<= x 2.9e-56)
(-
(* z -0.0424927283095952)
(*
x
(-
(* z -0.28294182010212804)
(* 0.0212463641547976 (+ z (* y -2.0))))))
(if (<= x 3.3e-13)
(-
(* z (+ -0.0424927283095952 (* x 0.3041881842569256)))
(* x (* x (+ 5.843575199059173 (* z 1.787568985856513)))))
(if (<= x 1800.0)
(/
(* (+ x -2.0) (* x y))
(+
47.066876606
(* x (+ 313.399215894 (* (+ x 43.3400022514) (* x x))))))
t_0))))))
double code(double x, double y, double z) {
double t_0 = (x + -2.0) / (0.24013125253755718 + ((5.86923874282773 / x) - (55.572073733743466 / (x * x))));
double tmp;
if (x <= -1300.0) {
tmp = t_0;
} else if (x <= 2.9e-56) {
tmp = (z * -0.0424927283095952) - (x * ((z * -0.28294182010212804) - (0.0212463641547976 * (z + (y * -2.0)))));
} else if (x <= 3.3e-13) {
tmp = (z * (-0.0424927283095952 + (x * 0.3041881842569256))) - (x * (x * (5.843575199059173 + (z * 1.787568985856513))));
} else if (x <= 1800.0) {
tmp = ((x + -2.0) * (x * y)) / (47.066876606 + (x * (313.399215894 + ((x + 43.3400022514) * (x * x)))));
} 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 = (x + (-2.0d0)) / (0.24013125253755718d0 + ((5.86923874282773d0 / x) - (55.572073733743466d0 / (x * x))))
if (x <= (-1300.0d0)) then
tmp = t_0
else if (x <= 2.9d-56) then
tmp = (z * (-0.0424927283095952d0)) - (x * ((z * (-0.28294182010212804d0)) - (0.0212463641547976d0 * (z + (y * (-2.0d0))))))
else if (x <= 3.3d-13) then
tmp = (z * ((-0.0424927283095952d0) + (x * 0.3041881842569256d0))) - (x * (x * (5.843575199059173d0 + (z * 1.787568985856513d0))))
else if (x <= 1800.0d0) then
tmp = ((x + (-2.0d0)) * (x * y)) / (47.066876606d0 + (x * (313.399215894d0 + ((x + 43.3400022514d0) * (x * x)))))
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = (x + -2.0) / (0.24013125253755718 + ((5.86923874282773 / x) - (55.572073733743466 / (x * x))));
double tmp;
if (x <= -1300.0) {
tmp = t_0;
} else if (x <= 2.9e-56) {
tmp = (z * -0.0424927283095952) - (x * ((z * -0.28294182010212804) - (0.0212463641547976 * (z + (y * -2.0)))));
} else if (x <= 3.3e-13) {
tmp = (z * (-0.0424927283095952 + (x * 0.3041881842569256))) - (x * (x * (5.843575199059173 + (z * 1.787568985856513))));
} else if (x <= 1800.0) {
tmp = ((x + -2.0) * (x * y)) / (47.066876606 + (x * (313.399215894 + ((x + 43.3400022514) * (x * x)))));
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = (x + -2.0) / (0.24013125253755718 + ((5.86923874282773 / x) - (55.572073733743466 / (x * x)))) tmp = 0 if x <= -1300.0: tmp = t_0 elif x <= 2.9e-56: tmp = (z * -0.0424927283095952) - (x * ((z * -0.28294182010212804) - (0.0212463641547976 * (z + (y * -2.0))))) elif x <= 3.3e-13: tmp = (z * (-0.0424927283095952 + (x * 0.3041881842569256))) - (x * (x * (5.843575199059173 + (z * 1.787568985856513)))) elif x <= 1800.0: tmp = ((x + -2.0) * (x * y)) / (47.066876606 + (x * (313.399215894 + ((x + 43.3400022514) * (x * x))))) else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(Float64(x + -2.0) / Float64(0.24013125253755718 + Float64(Float64(5.86923874282773 / x) - Float64(55.572073733743466 / Float64(x * x))))) tmp = 0.0 if (x <= -1300.0) tmp = t_0; elseif (x <= 2.9e-56) tmp = Float64(Float64(z * -0.0424927283095952) - Float64(x * Float64(Float64(z * -0.28294182010212804) - Float64(0.0212463641547976 * Float64(z + Float64(y * -2.0)))))); elseif (x <= 3.3e-13) tmp = Float64(Float64(z * Float64(-0.0424927283095952 + Float64(x * 0.3041881842569256))) - Float64(x * Float64(x * Float64(5.843575199059173 + Float64(z * 1.787568985856513))))); elseif (x <= 1800.0) tmp = Float64(Float64(Float64(x + -2.0) * Float64(x * y)) / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(Float64(x + 43.3400022514) * Float64(x * x)))))); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = (x + -2.0) / (0.24013125253755718 + ((5.86923874282773 / x) - (55.572073733743466 / (x * x)))); tmp = 0.0; if (x <= -1300.0) tmp = t_0; elseif (x <= 2.9e-56) tmp = (z * -0.0424927283095952) - (x * ((z * -0.28294182010212804) - (0.0212463641547976 * (z + (y * -2.0))))); elseif (x <= 3.3e-13) tmp = (z * (-0.0424927283095952 + (x * 0.3041881842569256))) - (x * (x * (5.843575199059173 + (z * 1.787568985856513)))); elseif (x <= 1800.0) tmp = ((x + -2.0) * (x * y)) / (47.066876606 + (x * (313.399215894 + ((x + 43.3400022514) * (x * x))))); else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(x + -2.0), $MachinePrecision] / N[(0.24013125253755718 + N[(N[(5.86923874282773 / x), $MachinePrecision] - N[(55.572073733743466 / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1300.0], t$95$0, If[LessEqual[x, 2.9e-56], 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], If[LessEqual[x, 3.3e-13], N[(N[(z * N[(-0.0424927283095952 + N[(x * 0.3041881842569256), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x * N[(x * N[(5.843575199059173 + N[(z * 1.787568985856513), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1800.0], N[(N[(N[(x + -2.0), $MachinePrecision] * N[(x * y), $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], t$95$0]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{x + -2}{0.24013125253755718 + \left(\frac{5.86923874282773}{x} - \frac{55.572073733743466}{x \cdot x}\right)}\\
\mathbf{if}\;x \leq -1300:\\
\;\;\;\;t_0\\
\mathbf{elif}\;x \leq 2.9 \cdot 10^{-56}:\\
\;\;\;\;z \cdot -0.0424927283095952 - x \cdot \left(z \cdot -0.28294182010212804 - 0.0212463641547976 \cdot \left(z + y \cdot -2\right)\right)\\
\mathbf{elif}\;x \leq 3.3 \cdot 10^{-13}:\\
\;\;\;\;z \cdot \left(-0.0424927283095952 + x \cdot 0.3041881842569256\right) - x \cdot \left(x \cdot \left(5.843575199059173 + z \cdot 1.787568985856513\right)\right)\\
\mathbf{elif}\;x \leq 1800:\\
\;\;\;\;\frac{\left(x + -2\right) \cdot \left(x \cdot y\right)}{47.066876606 + x \cdot \left(313.399215894 + \left(x + 43.3400022514\right) \cdot \left(x \cdot x\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;t_0\\
\end{array}
\end{array}
if x < -1300 or 1800 < x Initial program 21.4%
associate-/l*28.1%
sub-neg28.1%
metadata-eval28.1%
fma-def28.1%
fma-def28.1%
fma-def28.1%
fma-def28.1%
fma-def28.1%
fma-def28.1%
fma-def28.2%
Simplified28.2%
Taylor expanded in x around inf 87.7%
associate--l+87.7%
associate-*r/87.7%
metadata-eval87.7%
associate-*r/87.7%
metadata-eval87.7%
unpow287.7%
Simplified87.7%
if -1300 < x < 2.89999999999999991e-56Initial program 99.6%
*-commutative99.6%
associate-*l/99.6%
*-commutative99.6%
sub-neg99.6%
metadata-eval99.6%
Simplified99.6%
Taylor expanded in x around 0 95.9%
if 2.89999999999999991e-56 < x < 3.3000000000000001e-13Initial program 99.6%
*-commutative99.6%
associate-*l/99.6%
*-commutative99.6%
sub-neg99.6%
metadata-eval99.6%
Simplified99.6%
Taylor expanded in y around 0 99.7%
Taylor expanded in x around 0 99.4%
+-commutative99.4%
mul-1-neg99.4%
unsub-neg99.4%
*-commutative99.4%
*-commutative99.4%
distribute-rgt-out--99.4%
associate-*l*99.4%
distribute-lft-out99.4%
metadata-eval99.4%
unpow299.4%
associate-*l*99.5%
Simplified99.5%
if 3.3000000000000001e-13 < x < 1800Initial program 99.3%
*-commutative99.3%
associate-*l/99.6%
*-commutative99.6%
sub-neg99.6%
metadata-eval99.6%
Simplified99.2%
Taylor expanded in z around 0 85.4%
Taylor expanded in x around inf 41.1%
cube-unmult41.1%
unpow241.1%
distribute-rgt-in41.1%
unpow241.1%
+-commutative41.1%
associate-*r*41.1%
Simplified41.1%
Taylor expanded in y around inf 39.4%
associate-*r*39.4%
*-commutative39.4%
sub-neg39.4%
metadata-eval39.4%
unpow239.4%
+-commutative39.4%
associate-*r*39.4%
associate-*r*39.4%
Simplified39.4%
Final simplification90.9%
(FPCore (x y z)
:precision binary64
(if (<= x -3.2e-11)
(*
(+ x -2.0)
(+
4.16438922228
(/
z
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))))
(if (<= x 1.1e-61)
(* (+ x -2.0) (+ (* z 0.0212463641547976) (* y (* x 0.0212463641547976))))
(if (<= x 5.2e-14)
(-
(* z (+ -0.0424927283095952 (* x 0.3041881842569256)))
(* x (* x (+ 5.843575199059173 (* z 1.787568985856513)))))
(if (<= x 1300.0)
(/
(* (+ x -2.0) (* x y))
(+
47.066876606
(* x (+ 313.399215894 (* (+ x 43.3400022514) (* x x))))))
(/
(+ x -2.0)
(+
0.24013125253755718
(- (/ 5.86923874282773 x) (/ 55.572073733743466 (* x x))))))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -3.2e-11) {
tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)));
} else if (x <= 1.1e-61) {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (y * (x * 0.0212463641547976)));
} else if (x <= 5.2e-14) {
tmp = (z * (-0.0424927283095952 + (x * 0.3041881842569256))) - (x * (x * (5.843575199059173 + (z * 1.787568985856513))));
} else if (x <= 1300.0) {
tmp = ((x + -2.0) * (x * y)) / (47.066876606 + (x * (313.399215894 + ((x + 43.3400022514) * (x * x)))));
} else {
tmp = (x + -2.0) / (0.24013125253755718 + ((5.86923874282773 / x) - (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) :: tmp
if (x <= (-3.2d-11)) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + (z / ((x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0)))
else if (x <= 1.1d-61) then
tmp = (x + (-2.0d0)) * ((z * 0.0212463641547976d0) + (y * (x * 0.0212463641547976d0)))
else if (x <= 5.2d-14) then
tmp = (z * ((-0.0424927283095952d0) + (x * 0.3041881842569256d0))) - (x * (x * (5.843575199059173d0 + (z * 1.787568985856513d0))))
else if (x <= 1300.0d0) then
tmp = ((x + (-2.0d0)) * (x * y)) / (47.066876606d0 + (x * (313.399215894d0 + ((x + 43.3400022514d0) * (x * x)))))
else
tmp = (x + (-2.0d0)) / (0.24013125253755718d0 + ((5.86923874282773d0 / x) - (55.572073733743466d0 / (x * x))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -3.2e-11) {
tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)));
} else if (x <= 1.1e-61) {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (y * (x * 0.0212463641547976)));
} else if (x <= 5.2e-14) {
tmp = (z * (-0.0424927283095952 + (x * 0.3041881842569256))) - (x * (x * (5.843575199059173 + (z * 1.787568985856513))));
} else if (x <= 1300.0) {
tmp = ((x + -2.0) * (x * y)) / (47.066876606 + (x * (313.399215894 + ((x + 43.3400022514) * (x * x)))));
} else {
tmp = (x + -2.0) / (0.24013125253755718 + ((5.86923874282773 / x) - (55.572073733743466 / (x * x))));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -3.2e-11: tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606))) elif x <= 1.1e-61: tmp = (x + -2.0) * ((z * 0.0212463641547976) + (y * (x * 0.0212463641547976))) elif x <= 5.2e-14: tmp = (z * (-0.0424927283095952 + (x * 0.3041881842569256))) - (x * (x * (5.843575199059173 + (z * 1.787568985856513)))) elif x <= 1300.0: tmp = ((x + -2.0) * (x * y)) / (47.066876606 + (x * (313.399215894 + ((x + 43.3400022514) * (x * x))))) else: tmp = (x + -2.0) / (0.24013125253755718 + ((5.86923874282773 / x) - (55.572073733743466 / (x * x)))) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -3.2e-11) 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 <= 1.1e-61) tmp = Float64(Float64(x + -2.0) * Float64(Float64(z * 0.0212463641547976) + Float64(y * Float64(x * 0.0212463641547976)))); elseif (x <= 5.2e-14) tmp = Float64(Float64(z * Float64(-0.0424927283095952 + Float64(x * 0.3041881842569256))) - Float64(x * Float64(x * Float64(5.843575199059173 + Float64(z * 1.787568985856513))))); elseif (x <= 1300.0) tmp = Float64(Float64(Float64(x + -2.0) * Float64(x * y)) / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(Float64(x + 43.3400022514) * Float64(x * x)))))); else tmp = Float64(Float64(x + -2.0) / Float64(0.24013125253755718 + Float64(Float64(5.86923874282773 / x) - Float64(55.572073733743466 / Float64(x * x))))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -3.2e-11) tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606))); elseif (x <= 1.1e-61) tmp = (x + -2.0) * ((z * 0.0212463641547976) + (y * (x * 0.0212463641547976))); elseif (x <= 5.2e-14) tmp = (z * (-0.0424927283095952 + (x * 0.3041881842569256))) - (x * (x * (5.843575199059173 + (z * 1.787568985856513)))); elseif (x <= 1300.0) tmp = ((x + -2.0) * (x * y)) / (47.066876606 + (x * (313.399215894 + ((x + 43.3400022514) * (x * x))))); else tmp = (x + -2.0) / (0.24013125253755718 + ((5.86923874282773 / x) - (55.572073733743466 / (x * x)))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -3.2e-11], 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, 1.1e-61], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z * 0.0212463641547976), $MachinePrecision] + N[(y * N[(x * 0.0212463641547976), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 5.2e-14], N[(N[(z * N[(-0.0424927283095952 + N[(x * 0.3041881842569256), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x * N[(x * N[(5.843575199059173 + N[(z * 1.787568985856513), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1300.0], N[(N[(N[(x + -2.0), $MachinePrecision] * N[(x * y), $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[(x + -2.0), $MachinePrecision] / N[(0.24013125253755718 + N[(N[(5.86923874282773 / x), $MachinePrecision] - N[(55.572073733743466 / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -3.2 \cdot 10^{-11}:\\
\;\;\;\;\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 1.1 \cdot 10^{-61}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976 + y \cdot \left(x \cdot 0.0212463641547976\right)\right)\\
\mathbf{elif}\;x \leq 5.2 \cdot 10^{-14}:\\
\;\;\;\;z \cdot \left(-0.0424927283095952 + x \cdot 0.3041881842569256\right) - x \cdot \left(x \cdot \left(5.843575199059173 + z \cdot 1.787568985856513\right)\right)\\
\mathbf{elif}\;x \leq 1300:\\
\;\;\;\;\frac{\left(x + -2\right) \cdot \left(x \cdot y\right)}{47.066876606 + x \cdot \left(313.399215894 + \left(x + 43.3400022514\right) \cdot \left(x \cdot x\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718 + \left(\frac{5.86923874282773}{x} - \frac{55.572073733743466}{x \cdot x}\right)}\\
\end{array}
\end{array}
if x < -3.19999999999999994e-11Initial program 29.1%
*-commutative29.1%
associate-*l/37.3%
*-commutative37.3%
sub-neg37.3%
metadata-eval37.3%
Simplified37.3%
Taylor expanded in z around 0 37.3%
Taylor expanded in x around inf 87.1%
if -3.19999999999999994e-11 < x < 1.10000000000000004e-61Initial program 99.6%
*-commutative99.6%
associate-*l/99.6%
*-commutative99.6%
sub-neg99.6%
metadata-eval99.6%
Simplified99.6%
Taylor expanded in x around 0 96.3%
Taylor expanded in y around inf 96.3%
*-commutative96.3%
*-commutative96.3%
associate-*l*96.3%
Simplified96.3%
if 1.10000000000000004e-61 < x < 5.19999999999999993e-14Initial program 99.6%
*-commutative99.6%
associate-*l/99.6%
*-commutative99.6%
sub-neg99.6%
metadata-eval99.6%
Simplified99.6%
Taylor expanded in y around 0 99.7%
Taylor expanded in x around 0 99.4%
+-commutative99.4%
mul-1-neg99.4%
unsub-neg99.4%
*-commutative99.4%
*-commutative99.4%
distribute-rgt-out--99.4%
associate-*l*99.4%
distribute-lft-out99.4%
metadata-eval99.4%
unpow299.4%
associate-*l*99.5%
Simplified99.5%
if 5.19999999999999993e-14 < x < 1300Initial program 99.3%
*-commutative99.3%
associate-*l/99.6%
*-commutative99.6%
sub-neg99.6%
metadata-eval99.6%
Simplified99.2%
Taylor expanded in z around 0 85.4%
Taylor expanded in x around inf 41.1%
cube-unmult41.1%
unpow241.1%
distribute-rgt-in41.1%
unpow241.1%
+-commutative41.1%
associate-*r*41.1%
Simplified41.1%
Taylor expanded in y around inf 39.4%
associate-*r*39.4%
*-commutative39.4%
sub-neg39.4%
metadata-eval39.4%
unpow239.4%
+-commutative39.4%
associate-*r*39.4%
associate-*r*39.4%
Simplified39.4%
if 1300 < x Initial program 15.0%
associate-/l*19.0%
sub-neg19.0%
metadata-eval19.0%
fma-def19.0%
fma-def19.0%
fma-def19.0%
fma-def19.0%
fma-def19.0%
fma-def19.1%
fma-def19.1%
Simplified19.1%
Taylor expanded in x around inf 94.6%
associate--l+94.6%
associate-*r/94.6%
metadata-eval94.6%
associate-*r/94.6%
metadata-eval94.6%
unpow294.6%
Simplified94.6%
Final simplification92.1%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(/
(+ x -2.0)
(+
0.24013125253755718
(- (/ 5.86923874282773 x) (/ 55.572073733743466 (* x x)))))))
(if (<= x -5.5)
t_0
(if (<= x 2.9e-56)
(-
(* z -0.0424927283095952)
(*
x
(-
(* z -0.28294182010212804)
(* 0.0212463641547976 (+ z (* y -2.0))))))
(if (<= x 1.08e-16)
(-
(* z (+ -0.0424927283095952 (* x 0.3041881842569256)))
(* x (* x (+ 5.843575199059173 (* z 1.787568985856513)))))
(if (<= x 115.0)
(*
(+ x -2.0)
(+
(* z 0.0212463641547976)
(* x (- (* y 0.0212463641547976) (* z 0.14147091005106402)))))
t_0))))))
double code(double x, double y, double z) {
double t_0 = (x + -2.0) / (0.24013125253755718 + ((5.86923874282773 / x) - (55.572073733743466 / (x * x))));
double tmp;
if (x <= -5.5) {
tmp = t_0;
} else if (x <= 2.9e-56) {
tmp = (z * -0.0424927283095952) - (x * ((z * -0.28294182010212804) - (0.0212463641547976 * (z + (y * -2.0)))));
} else if (x <= 1.08e-16) {
tmp = (z * (-0.0424927283095952 + (x * 0.3041881842569256))) - (x * (x * (5.843575199059173 + (z * 1.787568985856513))));
} else if (x <= 115.0) {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402))));
} 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 = (x + (-2.0d0)) / (0.24013125253755718d0 + ((5.86923874282773d0 / x) - (55.572073733743466d0 / (x * x))))
if (x <= (-5.5d0)) then
tmp = t_0
else if (x <= 2.9d-56) then
tmp = (z * (-0.0424927283095952d0)) - (x * ((z * (-0.28294182010212804d0)) - (0.0212463641547976d0 * (z + (y * (-2.0d0))))))
else if (x <= 1.08d-16) then
tmp = (z * ((-0.0424927283095952d0) + (x * 0.3041881842569256d0))) - (x * (x * (5.843575199059173d0 + (z * 1.787568985856513d0))))
else if (x <= 115.0d0) then
tmp = (x + (-2.0d0)) * ((z * 0.0212463641547976d0) + (x * ((y * 0.0212463641547976d0) - (z * 0.14147091005106402d0))))
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = (x + -2.0) / (0.24013125253755718 + ((5.86923874282773 / x) - (55.572073733743466 / (x * x))));
double tmp;
if (x <= -5.5) {
tmp = t_0;
} else if (x <= 2.9e-56) {
tmp = (z * -0.0424927283095952) - (x * ((z * -0.28294182010212804) - (0.0212463641547976 * (z + (y * -2.0)))));
} else if (x <= 1.08e-16) {
tmp = (z * (-0.0424927283095952 + (x * 0.3041881842569256))) - (x * (x * (5.843575199059173 + (z * 1.787568985856513))));
} else if (x <= 115.0) {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402))));
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = (x + -2.0) / (0.24013125253755718 + ((5.86923874282773 / x) - (55.572073733743466 / (x * x)))) tmp = 0 if x <= -5.5: tmp = t_0 elif x <= 2.9e-56: tmp = (z * -0.0424927283095952) - (x * ((z * -0.28294182010212804) - (0.0212463641547976 * (z + (y * -2.0))))) elif x <= 1.08e-16: tmp = (z * (-0.0424927283095952 + (x * 0.3041881842569256))) - (x * (x * (5.843575199059173 + (z * 1.787568985856513)))) elif x <= 115.0: tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402)))) else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(Float64(x + -2.0) / Float64(0.24013125253755718 + Float64(Float64(5.86923874282773 / x) - Float64(55.572073733743466 / Float64(x * x))))) tmp = 0.0 if (x <= -5.5) tmp = t_0; elseif (x <= 2.9e-56) tmp = Float64(Float64(z * -0.0424927283095952) - Float64(x * Float64(Float64(z * -0.28294182010212804) - Float64(0.0212463641547976 * Float64(z + Float64(y * -2.0)))))); elseif (x <= 1.08e-16) tmp = Float64(Float64(z * Float64(-0.0424927283095952 + Float64(x * 0.3041881842569256))) - Float64(x * Float64(x * Float64(5.843575199059173 + Float64(z * 1.787568985856513))))); elseif (x <= 115.0) tmp = Float64(Float64(x + -2.0) * Float64(Float64(z * 0.0212463641547976) + Float64(x * Float64(Float64(y * 0.0212463641547976) - Float64(z * 0.14147091005106402))))); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = (x + -2.0) / (0.24013125253755718 + ((5.86923874282773 / x) - (55.572073733743466 / (x * x)))); tmp = 0.0; if (x <= -5.5) tmp = t_0; elseif (x <= 2.9e-56) tmp = (z * -0.0424927283095952) - (x * ((z * -0.28294182010212804) - (0.0212463641547976 * (z + (y * -2.0))))); elseif (x <= 1.08e-16) tmp = (z * (-0.0424927283095952 + (x * 0.3041881842569256))) - (x * (x * (5.843575199059173 + (z * 1.787568985856513)))); elseif (x <= 115.0) tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402)))); else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(x + -2.0), $MachinePrecision] / N[(0.24013125253755718 + N[(N[(5.86923874282773 / x), $MachinePrecision] - N[(55.572073733743466 / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -5.5], t$95$0, If[LessEqual[x, 2.9e-56], 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], If[LessEqual[x, 1.08e-16], N[(N[(z * N[(-0.0424927283095952 + N[(x * 0.3041881842569256), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x * N[(x * N[(5.843575199059173 + N[(z * 1.787568985856513), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 115.0], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z * 0.0212463641547976), $MachinePrecision] + N[(x * N[(N[(y * 0.0212463641547976), $MachinePrecision] - N[(z * 0.14147091005106402), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$0]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{x + -2}{0.24013125253755718 + \left(\frac{5.86923874282773}{x} - \frac{55.572073733743466}{x \cdot x}\right)}\\
\mathbf{if}\;x \leq -5.5:\\
\;\;\;\;t_0\\
\mathbf{elif}\;x \leq 2.9 \cdot 10^{-56}:\\
\;\;\;\;z \cdot -0.0424927283095952 - x \cdot \left(z \cdot -0.28294182010212804 - 0.0212463641547976 \cdot \left(z + y \cdot -2\right)\right)\\
\mathbf{elif}\;x \leq 1.08 \cdot 10^{-16}:\\
\;\;\;\;z \cdot \left(-0.0424927283095952 + x \cdot 0.3041881842569256\right) - x \cdot \left(x \cdot \left(5.843575199059173 + z \cdot 1.787568985856513\right)\right)\\
\mathbf{elif}\;x \leq 115:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976 + x \cdot \left(y \cdot 0.0212463641547976 - z \cdot 0.14147091005106402\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_0\\
\end{array}
\end{array}
if x < -5.5 or 115 < x Initial program 21.4%
associate-/l*28.1%
sub-neg28.1%
metadata-eval28.1%
fma-def28.1%
fma-def28.1%
fma-def28.1%
fma-def28.1%
fma-def28.1%
fma-def28.1%
fma-def28.2%
Simplified28.2%
Taylor expanded in x around inf 87.7%
associate--l+87.7%
associate-*r/87.7%
metadata-eval87.7%
associate-*r/87.7%
metadata-eval87.7%
unpow287.7%
Simplified87.7%
if -5.5 < x < 2.89999999999999991e-56Initial program 99.6%
*-commutative99.6%
associate-*l/99.6%
*-commutative99.6%
sub-neg99.6%
metadata-eval99.6%
Simplified99.6%
Taylor expanded in x around 0 95.9%
if 2.89999999999999991e-56 < x < 1.08e-16Initial program 99.7%
*-commutative99.7%
associate-*l/99.7%
*-commutative99.7%
sub-neg99.7%
metadata-eval99.7%
Simplified99.7%
Taylor expanded in y around 0 99.8%
Taylor expanded in x around 0 99.3%
+-commutative99.3%
mul-1-neg99.3%
unsub-neg99.3%
*-commutative99.3%
*-commutative99.3%
distribute-rgt-out--99.3%
associate-*l*99.3%
distribute-lft-out99.3%
metadata-eval99.3%
unpow299.3%
associate-*l*99.5%
Simplified99.5%
if 1.08e-16 < x < 115Initial program 99.2%
*-commutative99.2%
associate-*l/99.4%
*-commutative99.4%
sub-neg99.4%
metadata-eval99.4%
Simplified99.1%
Taylor expanded in x around 0 43.7%
Final simplification90.8%
(FPCore (x y z)
:precision binary64
(if (or (<= x -5.5) (not (<= x 130.0)))
(/
(+ x -2.0)
(+
0.24013125253755718
(- (/ 5.86923874282773 x) (/ 55.572073733743466 (* x x)))))
(*
(+ x -2.0)
(+
(* z 0.0212463641547976)
(* x (- (* y 0.0212463641547976) (* z 0.14147091005106402)))))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -5.5) || !(x <= 130.0)) {
tmp = (x + -2.0) / (0.24013125253755718 + ((5.86923874282773 / x) - (55.572073733743466 / (x * x))));
} else {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402))));
}
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.5d0)) .or. (.not. (x <= 130.0d0))) then
tmp = (x + (-2.0d0)) / (0.24013125253755718d0 + ((5.86923874282773d0 / x) - (55.572073733743466d0 / (x * x))))
else
tmp = (x + (-2.0d0)) * ((z * 0.0212463641547976d0) + (x * ((y * 0.0212463641547976d0) - (z * 0.14147091005106402d0))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -5.5) || !(x <= 130.0)) {
tmp = (x + -2.0) / (0.24013125253755718 + ((5.86923874282773 / x) - (55.572073733743466 / (x * x))));
} else {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402))));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -5.5) or not (x <= 130.0): tmp = (x + -2.0) / (0.24013125253755718 + ((5.86923874282773 / x) - (55.572073733743466 / (x * x)))) else: tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402)))) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -5.5) || !(x <= 130.0)) tmp = Float64(Float64(x + -2.0) / Float64(0.24013125253755718 + Float64(Float64(5.86923874282773 / x) - Float64(55.572073733743466 / Float64(x * x))))); else tmp = Float64(Float64(x + -2.0) * Float64(Float64(z * 0.0212463641547976) + Float64(x * Float64(Float64(y * 0.0212463641547976) - Float64(z * 0.14147091005106402))))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -5.5) || ~((x <= 130.0))) tmp = (x + -2.0) / (0.24013125253755718 + ((5.86923874282773 / x) - (55.572073733743466 / (x * x)))); else tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402)))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -5.5], N[Not[LessEqual[x, 130.0]], $MachinePrecision]], N[(N[(x + -2.0), $MachinePrecision] / N[(0.24013125253755718 + N[(N[(5.86923874282773 / x), $MachinePrecision] - N[(55.572073733743466 / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z * 0.0212463641547976), $MachinePrecision] + N[(x * N[(N[(y * 0.0212463641547976), $MachinePrecision] - N[(z * 0.14147091005106402), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -5.5 \lor \neg \left(x \leq 130\right):\\
\;\;\;\;\frac{x + -2}{0.24013125253755718 + \left(\frac{5.86923874282773}{x} - \frac{55.572073733743466}{x \cdot x}\right)}\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976 + x \cdot \left(y \cdot 0.0212463641547976 - z \cdot 0.14147091005106402\right)\right)\\
\end{array}
\end{array}
if x < -5.5 or 130 < x Initial program 21.4%
associate-/l*28.1%
sub-neg28.1%
metadata-eval28.1%
fma-def28.1%
fma-def28.1%
fma-def28.1%
fma-def28.1%
fma-def28.1%
fma-def28.1%
fma-def28.2%
Simplified28.2%
Taylor expanded in x around inf 87.7%
associate--l+87.7%
associate-*r/87.7%
metadata-eval87.7%
associate-*r/87.7%
metadata-eval87.7%
unpow287.7%
Simplified87.7%
if -5.5 < x < 130Initial program 99.6%
*-commutative99.6%
associate-*l/99.6%
*-commutative99.6%
sub-neg99.6%
metadata-eval99.6%
Simplified99.6%
Taylor expanded in x around 0 89.9%
Final simplification88.9%
(FPCore (x y z)
:precision binary64
(if (or (<= x -1800.0) (not (<= x 130.0)))
(/
(+ x -2.0)
(+
0.24013125253755718
(- (/ 5.86923874282773 x) (/ 55.572073733743466 (* x x)))))
(* (+ x -2.0) (+ (* z 0.0212463641547976) (* y (* x 0.0212463641547976))))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -1800.0) || !(x <= 130.0)) {
tmp = (x + -2.0) / (0.24013125253755718 + ((5.86923874282773 / x) - (55.572073733743466 / (x * x))));
} else {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (y * (x * 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 <= (-1800.0d0)) .or. (.not. (x <= 130.0d0))) then
tmp = (x + (-2.0d0)) / (0.24013125253755718d0 + ((5.86923874282773d0 / x) - (55.572073733743466d0 / (x * x))))
else
tmp = (x + (-2.0d0)) * ((z * 0.0212463641547976d0) + (y * (x * 0.0212463641547976d0)))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -1800.0) || !(x <= 130.0)) {
tmp = (x + -2.0) / (0.24013125253755718 + ((5.86923874282773 / x) - (55.572073733743466 / (x * x))));
} else {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (y * (x * 0.0212463641547976)));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -1800.0) or not (x <= 130.0): tmp = (x + -2.0) / (0.24013125253755718 + ((5.86923874282773 / x) - (55.572073733743466 / (x * x)))) else: tmp = (x + -2.0) * ((z * 0.0212463641547976) + (y * (x * 0.0212463641547976))) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -1800.0) || !(x <= 130.0)) tmp = Float64(Float64(x + -2.0) / Float64(0.24013125253755718 + Float64(Float64(5.86923874282773 / x) - Float64(55.572073733743466 / Float64(x * x))))); else tmp = Float64(Float64(x + -2.0) * Float64(Float64(z * 0.0212463641547976) + Float64(y * Float64(x * 0.0212463641547976)))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -1800.0) || ~((x <= 130.0))) tmp = (x + -2.0) / (0.24013125253755718 + ((5.86923874282773 / x) - (55.572073733743466 / (x * x)))); else tmp = (x + -2.0) * ((z * 0.0212463641547976) + (y * (x * 0.0212463641547976))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -1800.0], N[Not[LessEqual[x, 130.0]], $MachinePrecision]], N[(N[(x + -2.0), $MachinePrecision] / N[(0.24013125253755718 + N[(N[(5.86923874282773 / x), $MachinePrecision] - N[(55.572073733743466 / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z * 0.0212463641547976), $MachinePrecision] + N[(y * N[(x * 0.0212463641547976), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1800 \lor \neg \left(x \leq 130\right):\\
\;\;\;\;\frac{x + -2}{0.24013125253755718 + \left(\frac{5.86923874282773}{x} - \frac{55.572073733743466}{x \cdot x}\right)}\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976 + y \cdot \left(x \cdot 0.0212463641547976\right)\right)\\
\end{array}
\end{array}
if x < -1800 or 130 < x Initial program 21.4%
associate-/l*28.1%
sub-neg28.1%
metadata-eval28.1%
fma-def28.1%
fma-def28.1%
fma-def28.1%
fma-def28.1%
fma-def28.1%
fma-def28.1%
fma-def28.2%
Simplified28.2%
Taylor expanded in x around inf 87.7%
associate--l+87.7%
associate-*r/87.7%
metadata-eval87.7%
associate-*r/87.7%
metadata-eval87.7%
unpow287.7%
Simplified87.7%
if -1800 < x < 130Initial program 99.6%
*-commutative99.6%
associate-*l/99.6%
*-commutative99.6%
sub-neg99.6%
metadata-eval99.6%
Simplified99.6%
Taylor expanded in x around 0 89.9%
Taylor expanded in y around inf 89.1%
*-commutative89.1%
*-commutative89.1%
associate-*l*89.1%
Simplified89.1%
Final simplification88.5%
(FPCore (x y z)
:precision binary64
(if (or (<= x -16.0) (not (<= x 0.15)))
(/ (+ x -2.0) (+ 0.24013125253755718 (/ 5.86923874282773 x)))
(*
(+ x -2.0)
(+ (* z 0.0212463641547976) (* x (* z -0.14147091005106402))))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -16.0) || !(x <= 0.15)) {
tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x));
} else {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * (z * -0.14147091005106402)));
}
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 <= (-16.0d0)) .or. (.not. (x <= 0.15d0))) then
tmp = (x + (-2.0d0)) / (0.24013125253755718d0 + (5.86923874282773d0 / x))
else
tmp = (x + (-2.0d0)) * ((z * 0.0212463641547976d0) + (x * (z * (-0.14147091005106402d0))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -16.0) || !(x <= 0.15)) {
tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x));
} else {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * (z * -0.14147091005106402)));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -16.0) or not (x <= 0.15): tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x)) else: tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * (z * -0.14147091005106402))) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -16.0) || !(x <= 0.15)) tmp = Float64(Float64(x + -2.0) / Float64(0.24013125253755718 + Float64(5.86923874282773 / x))); else tmp = Float64(Float64(x + -2.0) * Float64(Float64(z * 0.0212463641547976) + Float64(x * Float64(z * -0.14147091005106402)))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -16.0) || ~((x <= 0.15))) tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x)); else tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * (z * -0.14147091005106402))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -16.0], N[Not[LessEqual[x, 0.15]], $MachinePrecision]], N[(N[(x + -2.0), $MachinePrecision] / N[(0.24013125253755718 + N[(5.86923874282773 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z * 0.0212463641547976), $MachinePrecision] + N[(x * N[(z * -0.14147091005106402), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -16 \lor \neg \left(x \leq 0.15\right):\\
\;\;\;\;\frac{x + -2}{0.24013125253755718 + \frac{5.86923874282773}{x}}\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976 + x \cdot \left(z \cdot -0.14147091005106402\right)\right)\\
\end{array}
\end{array}
if x < -16 or 0.149999999999999994 < x Initial program 23.4%
associate-/l*29.9%
sub-neg29.9%
metadata-eval29.9%
fma-def29.9%
fma-def29.9%
fma-def29.9%
fma-def29.9%
fma-def29.9%
fma-def30.0%
fma-def30.0%
Simplified30.0%
Taylor expanded in x around inf 85.3%
associate-*r/85.3%
metadata-eval85.3%
Simplified85.3%
if -16 < x < 0.149999999999999994Initial program 99.6%
*-commutative99.6%
associate-*l/99.6%
*-commutative99.6%
sub-neg99.6%
metadata-eval99.6%
Simplified99.6%
Taylor expanded in x around 0 91.6%
Taylor expanded in y around 0 64.2%
*-commutative64.2%
associate-*r*64.2%
*-commutative64.2%
Simplified64.2%
Final simplification73.8%
(FPCore (x y z) :precision binary64 (if (or (<= x -650.0) (not (<= x 1950.0))) (/ (+ x -2.0) (+ 0.24013125253755718 (/ 5.86923874282773 x))) (* (+ x -2.0) (+ (* z 0.0212463641547976) (* y (* x 0.0212463641547976))))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -650.0) || !(x <= 1950.0)) {
tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x));
} else {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (y * (x * 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 <= (-650.0d0)) .or. (.not. (x <= 1950.0d0))) then
tmp = (x + (-2.0d0)) / (0.24013125253755718d0 + (5.86923874282773d0 / x))
else
tmp = (x + (-2.0d0)) * ((z * 0.0212463641547976d0) + (y * (x * 0.0212463641547976d0)))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -650.0) || !(x <= 1950.0)) {
tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x));
} else {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (y * (x * 0.0212463641547976)));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -650.0) or not (x <= 1950.0): tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x)) else: tmp = (x + -2.0) * ((z * 0.0212463641547976) + (y * (x * 0.0212463641547976))) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -650.0) || !(x <= 1950.0)) tmp = Float64(Float64(x + -2.0) / Float64(0.24013125253755718 + Float64(5.86923874282773 / x))); else tmp = Float64(Float64(x + -2.0) * Float64(Float64(z * 0.0212463641547976) + Float64(y * Float64(x * 0.0212463641547976)))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -650.0) || ~((x <= 1950.0))) tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x)); else tmp = (x + -2.0) * ((z * 0.0212463641547976) + (y * (x * 0.0212463641547976))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -650.0], N[Not[LessEqual[x, 1950.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[(N[(z * 0.0212463641547976), $MachinePrecision] + N[(y * N[(x * 0.0212463641547976), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -650 \lor \neg \left(x \leq 1950\right):\\
\;\;\;\;\frac{x + -2}{0.24013125253755718 + \frac{5.86923874282773}{x}}\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976 + y \cdot \left(x \cdot 0.0212463641547976\right)\right)\\
\end{array}
\end{array}
if x < -650 or 1950 < x Initial program 21.4%
associate-/l*28.1%
sub-neg28.1%
metadata-eval28.1%
fma-def28.1%
fma-def28.1%
fma-def28.1%
fma-def28.1%
fma-def28.1%
fma-def28.1%
fma-def28.2%
Simplified28.2%
Taylor expanded in x around inf 87.4%
associate-*r/87.4%
metadata-eval87.4%
Simplified87.4%
if -650 < x < 1950Initial program 99.6%
*-commutative99.6%
associate-*l/99.6%
*-commutative99.6%
sub-neg99.6%
metadata-eval99.6%
Simplified99.6%
Taylor expanded in x around 0 89.9%
Taylor expanded in y around inf 89.1%
*-commutative89.1%
*-commutative89.1%
associate-*l*89.1%
Simplified89.1%
Final simplification88.3%
(FPCore (x y z) :precision binary64 (if (or (<= x -4.5) (not (<= x 0.12))) (/ (+ x -2.0) (+ 0.24013125253755718 (/ 5.86923874282773 x))) (* z (+ -0.0424927283095952 (* x 0.3041881842569256)))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -4.5) || !(x <= 0.12)) {
tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x));
} else {
tmp = z * (-0.0424927283095952 + (x * 0.3041881842569256));
}
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 <= (-4.5d0)) .or. (.not. (x <= 0.12d0))) then
tmp = (x + (-2.0d0)) / (0.24013125253755718d0 + (5.86923874282773d0 / x))
else
tmp = z * ((-0.0424927283095952d0) + (x * 0.3041881842569256d0))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -4.5) || !(x <= 0.12)) {
tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x));
} else {
tmp = z * (-0.0424927283095952 + (x * 0.3041881842569256));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -4.5) or not (x <= 0.12): tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x)) else: tmp = z * (-0.0424927283095952 + (x * 0.3041881842569256)) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -4.5) || !(x <= 0.12)) tmp = Float64(Float64(x + -2.0) / Float64(0.24013125253755718 + Float64(5.86923874282773 / x))); else tmp = Float64(z * Float64(-0.0424927283095952 + Float64(x * 0.3041881842569256))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -4.5) || ~((x <= 0.12))) tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x)); else tmp = z * (-0.0424927283095952 + (x * 0.3041881842569256)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -4.5], N[Not[LessEqual[x, 0.12]], $MachinePrecision]], N[(N[(x + -2.0), $MachinePrecision] / N[(0.24013125253755718 + N[(5.86923874282773 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(z * N[(-0.0424927283095952 + N[(x * 0.3041881842569256), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -4.5 \lor \neg \left(x \leq 0.12\right):\\
\;\;\;\;\frac{x + -2}{0.24013125253755718 + \frac{5.86923874282773}{x}}\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(-0.0424927283095952 + x \cdot 0.3041881842569256\right)\\
\end{array}
\end{array}
if x < -4.5 or 0.12 < x Initial program 23.4%
associate-/l*29.9%
sub-neg29.9%
metadata-eval29.9%
fma-def29.9%
fma-def29.9%
fma-def29.9%
fma-def29.9%
fma-def29.9%
fma-def30.0%
fma-def30.0%
Simplified30.0%
Taylor expanded in x around inf 85.3%
associate-*r/85.3%
metadata-eval85.3%
Simplified85.3%
if -4.5 < x < 0.12Initial program 99.6%
*-commutative99.6%
associate-*l/99.6%
*-commutative99.6%
sub-neg99.6%
metadata-eval99.6%
Simplified99.6%
Taylor expanded in y around 0 71.1%
Taylor expanded in x around 0 64.2%
*-commutative64.2%
*-commutative64.2%
distribute-rgt-out--64.2%
associate-*l*64.2%
distribute-lft-out64.1%
metadata-eval64.1%
Simplified64.1%
Final simplification73.7%
(FPCore (x y z)
:precision binary64
(if (<= x -0.85)
(/ (+ x -2.0) 0.24013125253755718)
(if (<= x 118.0)
(* z (+ -0.0424927283095952 (* x 0.3041881842569256)))
(- (* x 4.16438922228) 110.1139242984811))))
double code(double x, double y, double z) {
double tmp;
if (x <= -0.85) {
tmp = (x + -2.0) / 0.24013125253755718;
} else if (x <= 118.0) {
tmp = z * (-0.0424927283095952 + (x * 0.3041881842569256));
} 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 <= (-0.85d0)) then
tmp = (x + (-2.0d0)) / 0.24013125253755718d0
else if (x <= 118.0d0) then
tmp = z * ((-0.0424927283095952d0) + (x * 0.3041881842569256d0))
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 <= -0.85) {
tmp = (x + -2.0) / 0.24013125253755718;
} else if (x <= 118.0) {
tmp = z * (-0.0424927283095952 + (x * 0.3041881842569256));
} else {
tmp = (x * 4.16438922228) - 110.1139242984811;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -0.85: tmp = (x + -2.0) / 0.24013125253755718 elif x <= 118.0: tmp = z * (-0.0424927283095952 + (x * 0.3041881842569256)) else: tmp = (x * 4.16438922228) - 110.1139242984811 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -0.85) tmp = Float64(Float64(x + -2.0) / 0.24013125253755718); elseif (x <= 118.0) tmp = Float64(z * Float64(-0.0424927283095952 + Float64(x * 0.3041881842569256))); 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 <= -0.85) tmp = (x + -2.0) / 0.24013125253755718; elseif (x <= 118.0) tmp = z * (-0.0424927283095952 + (x * 0.3041881842569256)); else tmp = (x * 4.16438922228) - 110.1139242984811; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -0.85], N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision], If[LessEqual[x, 118.0], N[(z * N[(-0.0424927283095952 + N[(x * 0.3041881842569256), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x * 4.16438922228), $MachinePrecision] - 110.1139242984811), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -0.85:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718}\\
\mathbf{elif}\;x \leq 118:\\
\;\;\;\;z \cdot \left(-0.0424927283095952 + x \cdot 0.3041881842569256\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228 - 110.1139242984811\\
\end{array}
\end{array}
if x < -0.849999999999999978Initial program 25.9%
associate-/l*34.6%
sub-neg34.6%
metadata-eval34.6%
fma-def34.6%
fma-def34.6%
fma-def34.6%
fma-def34.6%
fma-def34.6%
fma-def34.6%
fma-def34.6%
Simplified34.6%
Taylor expanded in x around inf 82.0%
if -0.849999999999999978 < x < 118Initial program 99.6%
*-commutative99.6%
associate-*l/99.6%
*-commutative99.6%
sub-neg99.6%
metadata-eval99.6%
Simplified99.6%
Taylor expanded in y around 0 70.3%
Taylor expanded in x around 0 62.9%
*-commutative62.9%
*-commutative62.9%
distribute-rgt-out--62.9%
associate-*l*62.9%
distribute-lft-out62.9%
metadata-eval62.9%
Simplified62.9%
if 118 < x Initial program 15.0%
*-commutative15.0%
associate-*l/19.0%
*-commutative19.0%
sub-neg19.0%
metadata-eval19.0%
Simplified19.1%
Taylor expanded in x around inf 93.9%
Final simplification73.5%
(FPCore (x y z) :precision binary64 (if (or (<= x -5.5) (not (<= x 30.0))) (- (* x 4.16438922228) 110.1139242984811) (* z -0.0424927283095952)))
double code(double x, double y, double z) {
double tmp;
if ((x <= -5.5) || !(x <= 30.0)) {
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 <= (-5.5d0)) .or. (.not. (x <= 30.0d0))) 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 <= -5.5) || !(x <= 30.0)) {
tmp = (x * 4.16438922228) - 110.1139242984811;
} else {
tmp = z * -0.0424927283095952;
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -5.5) or not (x <= 30.0): tmp = (x * 4.16438922228) - 110.1139242984811 else: tmp = z * -0.0424927283095952 return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -5.5) || !(x <= 30.0)) 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 <= -5.5) || ~((x <= 30.0))) tmp = (x * 4.16438922228) - 110.1139242984811; else tmp = z * -0.0424927283095952; end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -5.5], N[Not[LessEqual[x, 30.0]], $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 -5.5 \lor \neg \left(x \leq 30\right):\\
\;\;\;\;x \cdot 4.16438922228 - 110.1139242984811\\
\mathbf{else}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\end{array}
\end{array}
if x < -5.5 or 30 < x Initial program 22.1%
*-commutative22.1%
associate-*l/28.7%
*-commutative28.7%
sub-neg28.7%
metadata-eval28.7%
Simplified28.7%
Taylor expanded in x around inf 86.2%
if -5.5 < x < 30Initial program 99.6%
*-commutative99.6%
associate-*l/99.6%
*-commutative99.6%
sub-neg99.6%
metadata-eval99.6%
Simplified99.6%
Taylor expanded in x around 0 62.5%
*-commutative62.5%
Simplified62.5%
Final simplification73.0%
(FPCore (x y z)
:precision binary64
(if (<= x -86.0)
(/ (+ x -2.0) 0.24013125253755718)
(if (<= x 30.0)
(* z -0.0424927283095952)
(- (* x 4.16438922228) 110.1139242984811))))
double code(double x, double y, double z) {
double tmp;
if (x <= -86.0) {
tmp = (x + -2.0) / 0.24013125253755718;
} else if (x <= 30.0) {
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 <= (-86.0d0)) then
tmp = (x + (-2.0d0)) / 0.24013125253755718d0
else if (x <= 30.0d0) 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 <= -86.0) {
tmp = (x + -2.0) / 0.24013125253755718;
} else if (x <= 30.0) {
tmp = z * -0.0424927283095952;
} else {
tmp = (x * 4.16438922228) - 110.1139242984811;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -86.0: tmp = (x + -2.0) / 0.24013125253755718 elif x <= 30.0: tmp = z * -0.0424927283095952 else: tmp = (x * 4.16438922228) - 110.1139242984811 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -86.0) tmp = Float64(Float64(x + -2.0) / 0.24013125253755718); elseif (x <= 30.0) 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 <= -86.0) tmp = (x + -2.0) / 0.24013125253755718; elseif (x <= 30.0) tmp = z * -0.0424927283095952; else tmp = (x * 4.16438922228) - 110.1139242984811; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -86.0], N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision], If[LessEqual[x, 30.0], N[(z * -0.0424927283095952), $MachinePrecision], N[(N[(x * 4.16438922228), $MachinePrecision] - 110.1139242984811), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -86:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718}\\
\mathbf{elif}\;x \leq 30:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228 - 110.1139242984811\\
\end{array}
\end{array}
if x < -86Initial program 25.9%
associate-/l*34.6%
sub-neg34.6%
metadata-eval34.6%
fma-def34.6%
fma-def34.6%
fma-def34.6%
fma-def34.6%
fma-def34.6%
fma-def34.6%
fma-def34.6%
Simplified34.6%
Taylor expanded in x around inf 82.0%
if -86 < x < 30Initial program 99.6%
*-commutative99.6%
associate-*l/99.6%
*-commutative99.6%
sub-neg99.6%
metadata-eval99.6%
Simplified99.6%
Taylor expanded in x around 0 62.5%
*-commutative62.5%
Simplified62.5%
if 30 < x Initial program 16.7%
*-commutative16.7%
associate-*l/20.7%
*-commutative20.7%
sub-neg20.7%
metadata-eval20.7%
Simplified20.8%
Taylor expanded in x around inf 91.9%
Final simplification73.1%
(FPCore (x y z) :precision binary64 (if (<= x -2500.0) (* x 4.16438922228) (if (<= x 0.01) (* z -0.0424927283095952) (* x 4.16438922228))))
double code(double x, double y, double z) {
double tmp;
if (x <= -2500.0) {
tmp = x * 4.16438922228;
} else if (x <= 0.01) {
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 <= (-2500.0d0)) then
tmp = x * 4.16438922228d0
else if (x <= 0.01d0) 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 <= -2500.0) {
tmp = x * 4.16438922228;
} else if (x <= 0.01) {
tmp = z * -0.0424927283095952;
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -2500.0: tmp = x * 4.16438922228 elif x <= 0.01: tmp = z * -0.0424927283095952 else: tmp = x * 4.16438922228 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -2500.0) tmp = Float64(x * 4.16438922228); elseif (x <= 0.01) 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 <= -2500.0) tmp = x * 4.16438922228; elseif (x <= 0.01) tmp = z * -0.0424927283095952; else tmp = x * 4.16438922228; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -2500.0], N[(x * 4.16438922228), $MachinePrecision], If[LessEqual[x, 0.01], N[(z * -0.0424927283095952), $MachinePrecision], N[(x * 4.16438922228), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2500:\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{elif}\;x \leq 0.01:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228\\
\end{array}
\end{array}
if x < -2500 or 0.0100000000000000002 < x Initial program 24.0%
associate-/l*30.5%
sub-neg30.5%
metadata-eval30.5%
fma-def30.5%
fma-def30.5%
fma-def30.5%
fma-def30.5%
fma-def30.5%
fma-def30.5%
fma-def30.6%
Simplified30.6%
Taylor expanded in x around inf 84.9%
associate--l+84.9%
associate-*r/84.9%
metadata-eval84.9%
associate-*r/84.9%
metadata-eval84.9%
unpow284.9%
Simplified84.9%
Taylor expanded in x around inf 83.4%
*-commutative83.4%
Simplified83.4%
if -2500 < x < 0.0100000000000000002Initial program 99.6%
*-commutative99.6%
associate-*l/99.6%
*-commutative99.6%
sub-neg99.6%
metadata-eval99.6%
Simplified99.6%
Taylor expanded in x around 0 63.8%
*-commutative63.8%
Simplified63.8%
Final simplification72.8%
(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 65.1%
associate-/l*67.9%
sub-neg67.9%
metadata-eval67.9%
fma-def67.9%
fma-def67.9%
fma-def67.9%
fma-def67.9%
fma-def67.9%
fma-def67.9%
fma-def67.9%
Simplified67.9%
Taylor expanded in x around inf 40.5%
associate--l+40.5%
associate-*r/40.5%
metadata-eval40.5%
associate-*r/40.5%
metadata-eval40.5%
unpow240.5%
Simplified40.5%
Taylor expanded in x around inf 39.9%
*-commutative39.9%
Simplified39.9%
Final simplification39.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 2023279
(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)))