
(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 17 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
(+
47.066876606
(*
x
(+
313.399215894
(* x (+ 263.505074721 (* x (+ x 43.3400022514)))))))))
(if (<= x -1.1e+41)
(+
(+
(+ (/ 3655.1204654076414 x) (* x 4.16438922228))
(/ (- y 130977.50649958357) (* x x)))
-110.1139242984811)
(if (<= x 2.6e+44)
(*
(+ x -2.0)
(+
(/
(*
x
(+
y
(*
x
(+ 137.519416416 (* x (+ (* x 4.16438922228) 78.6994924154))))))
t_0)
(/ z t_0)))
(*
(+ x -2.0)
(-
(/ -101.7851458539211 x)
(-
(/ (- 124074.40615218398 y) (pow x 3.0))
(+ 4.16438922228 (/ 3451.550173699799 (* x x))))))))))
double code(double x, double y, double z) {
double t_0 = 47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514))))));
double tmp;
if (x <= -1.1e+41) {
tmp = (((3655.1204654076414 / x) + (x * 4.16438922228)) + ((y - 130977.50649958357) / (x * x))) + -110.1139242984811;
} else if (x <= 2.6e+44) {
tmp = (x + -2.0) * (((x * (y + (x * (137.519416416 + (x * ((x * 4.16438922228) + 78.6994924154)))))) / t_0) + (z / t_0));
} else {
tmp = (x + -2.0) * ((-101.7851458539211 / x) - (((124074.40615218398 - y) / pow(x, 3.0)) - (4.16438922228 + (3451.550173699799 / (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 = 47.066876606d0 + (x * (313.399215894d0 + (x * (263.505074721d0 + (x * (x + 43.3400022514d0))))))
if (x <= (-1.1d+41)) then
tmp = (((3655.1204654076414d0 / x) + (x * 4.16438922228d0)) + ((y - 130977.50649958357d0) / (x * x))) + (-110.1139242984811d0)
else if (x <= 2.6d+44) then
tmp = (x + (-2.0d0)) * (((x * (y + (x * (137.519416416d0 + (x * ((x * 4.16438922228d0) + 78.6994924154d0)))))) / t_0) + (z / t_0))
else
tmp = (x + (-2.0d0)) * (((-101.7851458539211d0) / x) - (((124074.40615218398d0 - y) / (x ** 3.0d0)) - (4.16438922228d0 + (3451.550173699799d0 / (x * x)))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = 47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514))))));
double tmp;
if (x <= -1.1e+41) {
tmp = (((3655.1204654076414 / x) + (x * 4.16438922228)) + ((y - 130977.50649958357) / (x * x))) + -110.1139242984811;
} else if (x <= 2.6e+44) {
tmp = (x + -2.0) * (((x * (y + (x * (137.519416416 + (x * ((x * 4.16438922228) + 78.6994924154)))))) / t_0) + (z / t_0));
} else {
tmp = (x + -2.0) * ((-101.7851458539211 / x) - (((124074.40615218398 - y) / Math.pow(x, 3.0)) - (4.16438922228 + (3451.550173699799 / (x * x)))));
}
return tmp;
}
def code(x, y, z): t_0 = 47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514)))))) tmp = 0 if x <= -1.1e+41: tmp = (((3655.1204654076414 / x) + (x * 4.16438922228)) + ((y - 130977.50649958357) / (x * x))) + -110.1139242984811 elif x <= 2.6e+44: tmp = (x + -2.0) * (((x * (y + (x * (137.519416416 + (x * ((x * 4.16438922228) + 78.6994924154)))))) / t_0) + (z / t_0)) else: tmp = (x + -2.0) * ((-101.7851458539211 / x) - (((124074.40615218398 - y) / math.pow(x, 3.0)) - (4.16438922228 + (3451.550173699799 / (x * x))))) return tmp
function code(x, y, z) t_0 = Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * Float64(263.505074721 + Float64(x * Float64(x + 43.3400022514))))))) tmp = 0.0 if (x <= -1.1e+41) tmp = Float64(Float64(Float64(Float64(3655.1204654076414 / x) + Float64(x * 4.16438922228)) + Float64(Float64(y - 130977.50649958357) / Float64(x * x))) + -110.1139242984811); elseif (x <= 2.6e+44) tmp = Float64(Float64(x + -2.0) * Float64(Float64(Float64(x * Float64(y + Float64(x * Float64(137.519416416 + Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)))))) / t_0) + Float64(z / t_0))); else tmp = Float64(Float64(x + -2.0) * Float64(Float64(-101.7851458539211 / x) - Float64(Float64(Float64(124074.40615218398 - y) / (x ^ 3.0)) - Float64(4.16438922228 + Float64(3451.550173699799 / Float64(x * x)))))); end return tmp end
function tmp_2 = code(x, y, z) t_0 = 47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514)))))); tmp = 0.0; if (x <= -1.1e+41) tmp = (((3655.1204654076414 / x) + (x * 4.16438922228)) + ((y - 130977.50649958357) / (x * x))) + -110.1139242984811; elseif (x <= 2.6e+44) tmp = (x + -2.0) * (((x * (y + (x * (137.519416416 + (x * ((x * 4.16438922228) + 78.6994924154)))))) / t_0) + (z / t_0)); else tmp = (x + -2.0) * ((-101.7851458539211 / x) - (((124074.40615218398 - y) / (x ^ 3.0)) - (4.16438922228 + (3451.550173699799 / (x * x))))); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * N[(263.505074721 + N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.1e+41], N[(N[(N[(N[(3655.1204654076414 / x), $MachinePrecision] + N[(x * 4.16438922228), $MachinePrecision]), $MachinePrecision] + N[(N[(y - 130977.50649958357), $MachinePrecision] / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + -110.1139242984811), $MachinePrecision], If[LessEqual[x, 2.6e+44], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(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] / t$95$0), $MachinePrecision] + N[(z / t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(-101.7851458539211 / x), $MachinePrecision] - N[(N[(N[(124074.40615218398 - y), $MachinePrecision] / N[Power[x, 3.0], $MachinePrecision]), $MachinePrecision] - N[(4.16438922228 + N[(3451.550173699799 / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := 47.066876606 + x \cdot \left(313.399215894 + x \cdot \left(263.505074721 + x \cdot \left(x + 43.3400022514\right)\right)\right)\\
\mathbf{if}\;x \leq -1.1 \cdot 10^{+41}:\\
\;\;\;\;\left(\left(\frac{3655.1204654076414}{x} + x \cdot 4.16438922228\right) + \frac{y - 130977.50649958357}{x \cdot x}\right) + -110.1139242984811\\
\mathbf{elif}\;x \leq 2.6 \cdot 10^{+44}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(\frac{x \cdot \left(y + x \cdot \left(137.519416416 + x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right)\right)\right)}{t_0} + \frac{z}{t_0}\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(\frac{-101.7851458539211}{x} - \left(\frac{124074.40615218398 - y}{{x}^{3}} - \left(4.16438922228 + \frac{3451.550173699799}{x \cdot x}\right)\right)\right)\\
\end{array}
\end{array}
if x < -1.09999999999999995e41Initial program 3.9%
associate-*r/5.6%
sub-neg5.6%
metadata-eval5.6%
*-commutative5.6%
fma-def5.6%
*-commutative5.6%
fma-def5.6%
*-commutative5.6%
fma-def5.6%
fma-def5.6%
*-commutative5.6%
Simplified5.6%
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%
fma-udef99.2%
*-commutative99.2%
div-inv99.2%
+-commutative99.2%
div-inv99.2%
Applied egg-rr99.2%
if -1.09999999999999995e41 < x < 2.5999999999999999e44Initial program 98.2%
associate-*r/99.5%
sub-neg99.5%
metadata-eval99.5%
*-commutative99.5%
fma-def99.5%
*-commutative99.5%
fma-def99.5%
*-commutative99.5%
fma-def99.5%
fma-def99.5%
*-commutative99.5%
Simplified99.5%
Taylor expanded in z around 0 99.5%
if 2.5999999999999999e44 < x Initial program 7.4%
associate-*r/14.2%
sub-neg14.2%
metadata-eval14.2%
*-commutative14.2%
fma-def14.2%
*-commutative14.2%
fma-def14.2%
*-commutative14.2%
fma-def14.2%
fma-def14.2%
*-commutative14.2%
Simplified14.2%
Taylor expanded in x around -inf 99.3%
sub-neg99.3%
+-commutative99.3%
mul-1-neg99.3%
unsub-neg99.3%
associate-*r/99.3%
metadata-eval99.3%
unpow299.3%
mul-1-neg99.3%
unsub-neg99.3%
associate-*r/99.3%
metadata-eval99.3%
distribute-neg-frac99.3%
metadata-eval99.3%
Simplified99.3%
Final simplification99.4%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(/
(*
(- x 2.0)
(+
z
(*
x
(+
y
(*
x
(+
137.519416416
(* x (+ (* x 4.16438922228) 78.6994924154))))))))
(+
47.066876606
(*
x
(+
313.399215894
(* x (+ 263.505074721 (* x (+ x 43.3400022514))))))))))
(if (<= t_0 (- INFINITY))
(/ y (* x x))
(if (<= t_0 5e+289)
t_0
(+
(+
(+ (/ 3655.1204654076414 x) (* x 4.16438922228))
(/ (- y 130977.50649958357) (* x x)))
-110.1139242984811)))))
double code(double x, double y, double z) {
double t_0 = ((x - 2.0) * (z + (x * (y + (x * (137.519416416 + (x * ((x * 4.16438922228) + 78.6994924154)))))))) / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514)))))));
double tmp;
if (t_0 <= -((double) INFINITY)) {
tmp = y / (x * x);
} else if (t_0 <= 5e+289) {
tmp = t_0;
} else {
tmp = (((3655.1204654076414 / x) + (x * 4.16438922228)) + ((y - 130977.50649958357) / (x * x))) + -110.1139242984811;
}
return tmp;
}
public static double code(double x, double y, double z) {
double t_0 = ((x - 2.0) * (z + (x * (y + (x * (137.519416416 + (x * ((x * 4.16438922228) + 78.6994924154)))))))) / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514)))))));
double tmp;
if (t_0 <= -Double.POSITIVE_INFINITY) {
tmp = y / (x * x);
} else if (t_0 <= 5e+289) {
tmp = t_0;
} else {
tmp = (((3655.1204654076414 / x) + (x * 4.16438922228)) + ((y - 130977.50649958357) / (x * x))) + -110.1139242984811;
}
return tmp;
}
def code(x, y, z): t_0 = ((x - 2.0) * (z + (x * (y + (x * (137.519416416 + (x * ((x * 4.16438922228) + 78.6994924154)))))))) / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514))))))) tmp = 0 if t_0 <= -math.inf: tmp = y / (x * x) elif t_0 <= 5e+289: tmp = t_0 else: tmp = (((3655.1204654076414 / x) + (x * 4.16438922228)) + ((y - 130977.50649958357) / (x * x))) + -110.1139242984811 return tmp
function code(x, y, z) t_0 = Float64(Float64(Float64(x - 2.0) * Float64(z + Float64(x * Float64(y + Float64(x * Float64(137.519416416 + Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)))))))) / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * Float64(263.505074721 + Float64(x * Float64(x + 43.3400022514)))))))) tmp = 0.0 if (t_0 <= Float64(-Inf)) tmp = Float64(y / Float64(x * x)); elseif (t_0 <= 5e+289) tmp = t_0; else tmp = Float64(Float64(Float64(Float64(3655.1204654076414 / x) + Float64(x * 4.16438922228)) + Float64(Float64(y - 130977.50649958357) / Float64(x * x))) + -110.1139242984811); end return tmp end
function tmp_2 = code(x, y, z) t_0 = ((x - 2.0) * (z + (x * (y + (x * (137.519416416 + (x * ((x * 4.16438922228) + 78.6994924154)))))))) / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514))))))); tmp = 0.0; if (t_0 <= -Inf) tmp = y / (x * x); elseif (t_0 <= 5e+289) tmp = t_0; else tmp = (((3655.1204654076414 / x) + (x * 4.16438922228)) + ((y - 130977.50649958357) / (x * x))) + -110.1139242984811; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + 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]), $MachinePrecision]), $MachinePrecision] / N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * N[(263.505074721 + N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$0, (-Infinity)], N[(y / N[(x * x), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$0, 5e+289], t$95$0, N[(N[(N[(N[(3655.1204654076414 / x), $MachinePrecision] + N[(x * 4.16438922228), $MachinePrecision]), $MachinePrecision] + N[(N[(y - 130977.50649958357), $MachinePrecision] / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + -110.1139242984811), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{\left(x - 2\right) \cdot \left(z + x \cdot \left(y + x \cdot \left(137.519416416 + x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right)\right)\right)\right)}{47.066876606 + x \cdot \left(313.399215894 + x \cdot \left(263.505074721 + x \cdot \left(x + 43.3400022514\right)\right)\right)}\\
\mathbf{if}\;t_0 \leq -\infty:\\
\;\;\;\;\frac{y}{x \cdot x}\\
\mathbf{elif}\;t_0 \leq 5 \cdot 10^{+289}:\\
\;\;\;\;t_0\\
\mathbf{else}:\\
\;\;\;\;\left(\left(\frac{3655.1204654076414}{x} + x \cdot 4.16438922228\right) + \frac{y - 130977.50649958357}{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)) < -inf.0Initial program 4.5%
associate-*r/20.3%
sub-neg20.3%
metadata-eval20.3%
*-commutative20.3%
fma-def20.3%
*-commutative20.3%
fma-def20.3%
*-commutative20.3%
fma-def20.3%
fma-def20.3%
*-commutative20.3%
Simplified20.3%
Taylor expanded in y around inf 20.3%
Taylor expanded in x around inf 100.0%
unpow2100.0%
Simplified100.0%
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)) < 5.00000000000000031e289Initial program 99.5%
if 5.00000000000000031e289 < (/.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.2%
associate-*r/5.8%
sub-neg5.8%
metadata-eval5.8%
*-commutative5.8%
fma-def5.8%
*-commutative5.8%
fma-def5.8%
*-commutative5.8%
fma-def5.8%
fma-def5.8%
*-commutative5.8%
Simplified5.8%
Taylor expanded in x around -inf 98.2%
sub-neg98.2%
+-commutative98.2%
mul-1-neg98.2%
unsub-neg98.2%
*-commutative98.2%
fma-def98.2%
associate-*r/98.2%
metadata-eval98.2%
mul-1-neg98.2%
unsub-neg98.2%
unpow298.2%
metadata-eval98.2%
Simplified98.2%
fma-udef98.2%
*-commutative98.2%
div-inv98.2%
+-commutative98.2%
div-inv98.2%
Applied egg-rr98.2%
Final simplification99.0%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(+
47.066876606
(*
x
(+
313.399215894
(* x (+ 263.505074721 (* x (+ x 43.3400022514)))))))))
(if (or (<= x -2.15e+44) (not (<= x 1.7e+44)))
(+
(+
(+ (/ 3655.1204654076414 x) (* x 4.16438922228))
(/ (- y 130977.50649958357) (* x x)))
-110.1139242984811)
(*
(+ x -2.0)
(+
(/
(*
x
(+
y
(* x (+ 137.519416416 (* x (+ (* x 4.16438922228) 78.6994924154))))))
t_0)
(/ z t_0))))))
double code(double x, double y, double z) {
double t_0 = 47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514))))));
double tmp;
if ((x <= -2.15e+44) || !(x <= 1.7e+44)) {
tmp = (((3655.1204654076414 / x) + (x * 4.16438922228)) + ((y - 130977.50649958357) / (x * x))) + -110.1139242984811;
} else {
tmp = (x + -2.0) * (((x * (y + (x * (137.519416416 + (x * ((x * 4.16438922228) + 78.6994924154)))))) / t_0) + (z / 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 = 47.066876606d0 + (x * (313.399215894d0 + (x * (263.505074721d0 + (x * (x + 43.3400022514d0))))))
if ((x <= (-2.15d+44)) .or. (.not. (x <= 1.7d+44))) then
tmp = (((3655.1204654076414d0 / x) + (x * 4.16438922228d0)) + ((y - 130977.50649958357d0) / (x * x))) + (-110.1139242984811d0)
else
tmp = (x + (-2.0d0)) * (((x * (y + (x * (137.519416416d0 + (x * ((x * 4.16438922228d0) + 78.6994924154d0)))))) / t_0) + (z / t_0))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = 47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514))))));
double tmp;
if ((x <= -2.15e+44) || !(x <= 1.7e+44)) {
tmp = (((3655.1204654076414 / x) + (x * 4.16438922228)) + ((y - 130977.50649958357) / (x * x))) + -110.1139242984811;
} else {
tmp = (x + -2.0) * (((x * (y + (x * (137.519416416 + (x * ((x * 4.16438922228) + 78.6994924154)))))) / t_0) + (z / t_0));
}
return tmp;
}
def code(x, y, z): t_0 = 47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514)))))) tmp = 0 if (x <= -2.15e+44) or not (x <= 1.7e+44): tmp = (((3655.1204654076414 / x) + (x * 4.16438922228)) + ((y - 130977.50649958357) / (x * x))) + -110.1139242984811 else: tmp = (x + -2.0) * (((x * (y + (x * (137.519416416 + (x * ((x * 4.16438922228) + 78.6994924154)))))) / t_0) + (z / t_0)) return tmp
function code(x, y, z) t_0 = Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * Float64(263.505074721 + Float64(x * Float64(x + 43.3400022514))))))) tmp = 0.0 if ((x <= -2.15e+44) || !(x <= 1.7e+44)) tmp = Float64(Float64(Float64(Float64(3655.1204654076414 / x) + Float64(x * 4.16438922228)) + Float64(Float64(y - 130977.50649958357) / Float64(x * x))) + -110.1139242984811); else tmp = Float64(Float64(x + -2.0) * Float64(Float64(Float64(x * Float64(y + Float64(x * Float64(137.519416416 + Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)))))) / t_0) + Float64(z / t_0))); end return tmp end
function tmp_2 = code(x, y, z) t_0 = 47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514)))))); tmp = 0.0; if ((x <= -2.15e+44) || ~((x <= 1.7e+44))) tmp = (((3655.1204654076414 / x) + (x * 4.16438922228)) + ((y - 130977.50649958357) / (x * x))) + -110.1139242984811; else tmp = (x + -2.0) * (((x * (y + (x * (137.519416416 + (x * ((x * 4.16438922228) + 78.6994924154)))))) / t_0) + (z / t_0)); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * N[(263.505074721 + N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[x, -2.15e+44], N[Not[LessEqual[x, 1.7e+44]], $MachinePrecision]], N[(N[(N[(N[(3655.1204654076414 / x), $MachinePrecision] + N[(x * 4.16438922228), $MachinePrecision]), $MachinePrecision] + N[(N[(y - 130977.50649958357), $MachinePrecision] / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + -110.1139242984811), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(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] / t$95$0), $MachinePrecision] + N[(z / t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := 47.066876606 + x \cdot \left(313.399215894 + x \cdot \left(263.505074721 + x \cdot \left(x + 43.3400022514\right)\right)\right)\\
\mathbf{if}\;x \leq -2.15 \cdot 10^{+44} \lor \neg \left(x \leq 1.7 \cdot 10^{+44}\right):\\
\;\;\;\;\left(\left(\frac{3655.1204654076414}{x} + x \cdot 4.16438922228\right) + \frac{y - 130977.50649958357}{x \cdot x}\right) + -110.1139242984811\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(\frac{x \cdot \left(y + x \cdot \left(137.519416416 + x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right)\right)\right)}{t_0} + \frac{z}{t_0}\right)\\
\end{array}
\end{array}
if x < -2.14999999999999991e44 or 1.7e44 < x Initial program 5.6%
associate-*r/9.8%
sub-neg9.8%
metadata-eval9.8%
*-commutative9.8%
fma-def9.8%
*-commutative9.8%
fma-def9.8%
*-commutative9.8%
fma-def9.8%
fma-def9.8%
*-commutative9.8%
Simplified9.8%
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%
fma-udef99.2%
*-commutative99.2%
div-inv99.2%
+-commutative99.2%
div-inv99.2%
Applied egg-rr99.2%
if -2.14999999999999991e44 < x < 1.7e44Initial program 98.2%
associate-*r/99.5%
sub-neg99.5%
metadata-eval99.5%
*-commutative99.5%
fma-def99.5%
*-commutative99.5%
fma-def99.5%
*-commutative99.5%
fma-def99.5%
fma-def99.5%
*-commutative99.5%
Simplified99.5%
Taylor expanded in z around 0 99.5%
Final simplification99.4%
(FPCore (x y z)
:precision binary64
(if (or (<= x -1.8e+32) (not (<= x 4.2e+26)))
(+
(+
(+ (/ 3655.1204654076414 x) (* x 4.16438922228))
(/ (- y 130977.50649958357) (* x x)))
-110.1139242984811)
(/
(*
(- x 2.0)
(+
z
(*
x
(+
y
(* x (+ 137.519416416 (* x (+ (* x 4.16438922228) 78.6994924154))))))))
(+ 47.066876606 (* x (+ 313.399215894 (* (* x x) (+ x 43.3400022514))))))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -1.8e+32) || !(x <= 4.2e+26)) {
tmp = (((3655.1204654076414 / x) + (x * 4.16438922228)) + ((y - 130977.50649958357) / (x * x))) + -110.1139242984811;
} else {
tmp = ((x - 2.0) * (z + (x * (y + (x * (137.519416416 + (x * ((x * 4.16438922228) + 78.6994924154)))))))) / (47.066876606 + (x * (313.399215894 + ((x * x) * (x + 43.3400022514)))));
}
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 <= (-1.8d+32)) .or. (.not. (x <= 4.2d+26))) then
tmp = (((3655.1204654076414d0 / x) + (x * 4.16438922228d0)) + ((y - 130977.50649958357d0) / (x * x))) + (-110.1139242984811d0)
else
tmp = ((x - 2.0d0) * (z + (x * (y + (x * (137.519416416d0 + (x * ((x * 4.16438922228d0) + 78.6994924154d0)))))))) / (47.066876606d0 + (x * (313.399215894d0 + ((x * x) * (x + 43.3400022514d0)))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -1.8e+32) || !(x <= 4.2e+26)) {
tmp = (((3655.1204654076414 / x) + (x * 4.16438922228)) + ((y - 130977.50649958357) / (x * x))) + -110.1139242984811;
} else {
tmp = ((x - 2.0) * (z + (x * (y + (x * (137.519416416 + (x * ((x * 4.16438922228) + 78.6994924154)))))))) / (47.066876606 + (x * (313.399215894 + ((x * x) * (x + 43.3400022514)))));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -1.8e+32) or not (x <= 4.2e+26): tmp = (((3655.1204654076414 / x) + (x * 4.16438922228)) + ((y - 130977.50649958357) / (x * x))) + -110.1139242984811 else: tmp = ((x - 2.0) * (z + (x * (y + (x * (137.519416416 + (x * ((x * 4.16438922228) + 78.6994924154)))))))) / (47.066876606 + (x * (313.399215894 + ((x * x) * (x + 43.3400022514))))) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -1.8e+32) || !(x <= 4.2e+26)) tmp = Float64(Float64(Float64(Float64(3655.1204654076414 / x) + Float64(x * 4.16438922228)) + Float64(Float64(y - 130977.50649958357) / Float64(x * x))) + -110.1139242984811); else tmp = Float64(Float64(Float64(x - 2.0) * Float64(z + Float64(x * Float64(y + Float64(x * Float64(137.519416416 + Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)))))))) / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(Float64(x * x) * Float64(x + 43.3400022514)))))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -1.8e+32) || ~((x <= 4.2e+26))) tmp = (((3655.1204654076414 / x) + (x * 4.16438922228)) + ((y - 130977.50649958357) / (x * x))) + -110.1139242984811; else tmp = ((x - 2.0) * (z + (x * (y + (x * (137.519416416 + (x * ((x * 4.16438922228) + 78.6994924154)))))))) / (47.066876606 + (x * (313.399215894 + ((x * x) * (x + 43.3400022514))))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -1.8e+32], N[Not[LessEqual[x, 4.2e+26]], $MachinePrecision]], N[(N[(N[(N[(3655.1204654076414 / x), $MachinePrecision] + N[(x * 4.16438922228), $MachinePrecision]), $MachinePrecision] + N[(N[(y - 130977.50649958357), $MachinePrecision] / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + -110.1139242984811), $MachinePrecision], N[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + 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]), $MachinePrecision]), $MachinePrecision] / N[(47.066876606 + N[(x * N[(313.399215894 + N[(N[(x * x), $MachinePrecision] * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.8 \cdot 10^{+32} \lor \neg \left(x \leq 4.2 \cdot 10^{+26}\right):\\
\;\;\;\;\left(\left(\frac{3655.1204654076414}{x} + x \cdot 4.16438922228\right) + \frac{y - 130977.50649958357}{x \cdot x}\right) + -110.1139242984811\\
\mathbf{else}:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot \left(y + x \cdot \left(137.519416416 + x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right)\right)\right)\right)}{47.066876606 + x \cdot \left(313.399215894 + \left(x \cdot x\right) \cdot \left(x + 43.3400022514\right)\right)}\\
\end{array}
\end{array}
if x < -1.7999999999999998e32 or 4.2000000000000002e26 < x Initial program 9.5%
associate-*r/15.1%
sub-neg15.1%
metadata-eval15.1%
*-commutative15.1%
fma-def15.1%
*-commutative15.1%
fma-def15.1%
*-commutative15.1%
fma-def15.1%
fma-def15.1%
*-commutative15.1%
Simplified15.1%
Taylor expanded in x around -inf 97.7%
sub-neg97.7%
+-commutative97.7%
mul-1-neg97.7%
unsub-neg97.7%
*-commutative97.7%
fma-def97.7%
associate-*r/97.7%
metadata-eval97.7%
mul-1-neg97.7%
unsub-neg97.7%
unpow297.7%
metadata-eval97.7%
Simplified97.7%
fma-udef97.7%
*-commutative97.7%
div-inv97.7%
+-commutative97.7%
div-inv97.7%
Applied egg-rr97.7%
if -1.7999999999999998e32 < x < 4.2000000000000002e26Initial program 99.5%
Taylor expanded in x around inf 97.0%
cube-mult97.0%
unpow297.0%
distribute-rgt-out97.0%
+-commutative97.0%
unpow297.0%
Simplified97.0%
Final simplification97.3%
(FPCore (x y z)
:precision binary64
(if (or (<= x -7500000000000.0) (not (<= x 25000.0)))
(+
(+
(+ (/ 3655.1204654076414 x) (* x 4.16438922228))
(/ (- y 130977.50649958357) (* x x)))
-110.1139242984811)
(/
(* (- x 2.0) (+ z (* x (+ y (* x 137.519416416)))))
(+
47.066876606
(*
x
(+ 313.399215894 (* x (+ 263.505074721 (* x (+ x 43.3400022514))))))))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -7500000000000.0) || !(x <= 25000.0)) {
tmp = (((3655.1204654076414 / x) + (x * 4.16438922228)) + ((y - 130977.50649958357) / (x * x))) + -110.1139242984811;
} else {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514)))))));
}
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 <= (-7500000000000.0d0)) .or. (.not. (x <= 25000.0d0))) then
tmp = (((3655.1204654076414d0 / x) + (x * 4.16438922228d0)) + ((y - 130977.50649958357d0) / (x * x))) + (-110.1139242984811d0)
else
tmp = ((x - 2.0d0) * (z + (x * (y + (x * 137.519416416d0))))) / (47.066876606d0 + (x * (313.399215894d0 + (x * (263.505074721d0 + (x * (x + 43.3400022514d0)))))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -7500000000000.0) || !(x <= 25000.0)) {
tmp = (((3655.1204654076414 / x) + (x * 4.16438922228)) + ((y - 130977.50649958357) / (x * x))) + -110.1139242984811;
} else {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514)))))));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -7500000000000.0) or not (x <= 25000.0): tmp = (((3655.1204654076414 / x) + (x * 4.16438922228)) + ((y - 130977.50649958357) / (x * x))) + -110.1139242984811 else: tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514))))))) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -7500000000000.0) || !(x <= 25000.0)) tmp = Float64(Float64(Float64(Float64(3655.1204654076414 / x) + Float64(x * 4.16438922228)) + Float64(Float64(y - 130977.50649958357) / Float64(x * x))) + -110.1139242984811); else tmp = Float64(Float64(Float64(x - 2.0) * Float64(z + Float64(x * Float64(y + Float64(x * 137.519416416))))) / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * Float64(263.505074721 + Float64(x * Float64(x + 43.3400022514)))))))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -7500000000000.0) || ~((x <= 25000.0))) tmp = (((3655.1204654076414 / x) + (x * 4.16438922228)) + ((y - 130977.50649958357) / (x * x))) + -110.1139242984811; else tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514))))))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -7500000000000.0], N[Not[LessEqual[x, 25000.0]], $MachinePrecision]], N[(N[(N[(N[(3655.1204654076414 / x), $MachinePrecision] + N[(x * 4.16438922228), $MachinePrecision]), $MachinePrecision] + N[(N[(y - 130977.50649958357), $MachinePrecision] / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + -110.1139242984811), $MachinePrecision], N[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + N[(x * N[(y + N[(x * 137.519416416), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * N[(263.505074721 + N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -7500000000000 \lor \neg \left(x \leq 25000\right):\\
\;\;\;\;\left(\left(\frac{3655.1204654076414}{x} + x \cdot 4.16438922228\right) + \frac{y - 130977.50649958357}{x \cdot x}\right) + -110.1139242984811\\
\mathbf{else}:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot \left(y + x \cdot 137.519416416\right)\right)}{47.066876606 + x \cdot \left(313.399215894 + x \cdot \left(263.505074721 + x \cdot \left(x + 43.3400022514\right)\right)\right)}\\
\end{array}
\end{array}
if x < -7.5e12 or 25000 < x Initial program 15.7%
associate-*r/20.9%
sub-neg20.9%
metadata-eval20.9%
*-commutative20.9%
fma-def20.9%
*-commutative20.9%
fma-def20.9%
*-commutative20.9%
fma-def20.9%
fma-def20.9%
*-commutative20.9%
Simplified20.9%
Taylor expanded in x around -inf 95.7%
sub-neg95.7%
+-commutative95.7%
mul-1-neg95.7%
unsub-neg95.7%
*-commutative95.7%
fma-def95.7%
associate-*r/95.7%
metadata-eval95.7%
mul-1-neg95.7%
unsub-neg95.7%
unpow295.7%
metadata-eval95.7%
Simplified95.7%
fma-udef95.7%
*-commutative95.7%
div-inv95.7%
+-commutative95.7%
div-inv95.7%
Applied egg-rr95.7%
if -7.5e12 < x < 25000Initial program 99.6%
Taylor expanded in x around 0 98.1%
*-commutative98.1%
Simplified98.1%
Final simplification96.9%
(FPCore (x y z)
:precision binary64
(if (or (<= x -1800.0) (not (<= x 5600.0)))
(+
(+
(+ (/ 3655.1204654076414 x) (* x 4.16438922228))
(/ (- y 130977.50649958357) (* x x)))
-110.1139242984811)
(*
(+ x -2.0)
(+
(/
z
(+
47.066876606
(*
x
(+ 313.399215894 (* x (+ 263.505074721 (* x (+ x 43.3400022514))))))))
(* 0.0212463641547976 (* x y))))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -1800.0) || !(x <= 5600.0)) {
tmp = (((3655.1204654076414 / x) + (x * 4.16438922228)) + ((y - 130977.50649958357) / (x * x))) + -110.1139242984811;
} else {
tmp = (x + -2.0) * ((z / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514)))))))) + (0.0212463641547976 * (x * y)));
}
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 <= 5600.0d0))) then
tmp = (((3655.1204654076414d0 / x) + (x * 4.16438922228d0)) + ((y - 130977.50649958357d0) / (x * x))) + (-110.1139242984811d0)
else
tmp = (x + (-2.0d0)) * ((z / (47.066876606d0 + (x * (313.399215894d0 + (x * (263.505074721d0 + (x * (x + 43.3400022514d0)))))))) + (0.0212463641547976d0 * (x * y)))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -1800.0) || !(x <= 5600.0)) {
tmp = (((3655.1204654076414 / x) + (x * 4.16438922228)) + ((y - 130977.50649958357) / (x * x))) + -110.1139242984811;
} else {
tmp = (x + -2.0) * ((z / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514)))))))) + (0.0212463641547976 * (x * y)));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -1800.0) or not (x <= 5600.0): tmp = (((3655.1204654076414 / x) + (x * 4.16438922228)) + ((y - 130977.50649958357) / (x * x))) + -110.1139242984811 else: tmp = (x + -2.0) * ((z / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514)))))))) + (0.0212463641547976 * (x * y))) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -1800.0) || !(x <= 5600.0)) tmp = Float64(Float64(Float64(Float64(3655.1204654076414 / x) + Float64(x * 4.16438922228)) + Float64(Float64(y - 130977.50649958357) / Float64(x * x))) + -110.1139242984811); else tmp = Float64(Float64(x + -2.0) * Float64(Float64(z / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * Float64(263.505074721 + Float64(x * Float64(x + 43.3400022514)))))))) + Float64(0.0212463641547976 * Float64(x * y)))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -1800.0) || ~((x <= 5600.0))) tmp = (((3655.1204654076414 / x) + (x * 4.16438922228)) + ((y - 130977.50649958357) / (x * x))) + -110.1139242984811; else tmp = (x + -2.0) * ((z / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514)))))))) + (0.0212463641547976 * (x * y))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -1800.0], N[Not[LessEqual[x, 5600.0]], $MachinePrecision]], N[(N[(N[(N[(3655.1204654076414 / x), $MachinePrecision] + N[(x * 4.16438922228), $MachinePrecision]), $MachinePrecision] + N[(N[(y - 130977.50649958357), $MachinePrecision] / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + -110.1139242984811), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z / N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * N[(263.505074721 + N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(0.0212463641547976 * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1800 \lor \neg \left(x \leq 5600\right):\\
\;\;\;\;\left(\left(\frac{3655.1204654076414}{x} + x \cdot 4.16438922228\right) + \frac{y - 130977.50649958357}{x \cdot x}\right) + -110.1139242984811\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(\frac{z}{47.066876606 + x \cdot \left(313.399215894 + x \cdot \left(263.505074721 + x \cdot \left(x + 43.3400022514\right)\right)\right)} + 0.0212463641547976 \cdot \left(x \cdot y\right)\right)\\
\end{array}
\end{array}
if x < -1800 or 5600 < x Initial program 16.4%
associate-*r/21.5%
sub-neg21.5%
metadata-eval21.5%
*-commutative21.5%
fma-def21.5%
*-commutative21.5%
fma-def21.5%
*-commutative21.5%
fma-def21.5%
fma-def21.5%
*-commutative21.5%
Simplified21.5%
Taylor expanded in x around -inf 95.5%
sub-neg95.5%
+-commutative95.5%
mul-1-neg95.5%
unsub-neg95.5%
*-commutative95.5%
fma-def95.5%
associate-*r/95.5%
metadata-eval95.5%
mul-1-neg95.5%
unsub-neg95.5%
unpow295.5%
metadata-eval95.5%
Simplified95.5%
fma-udef95.5%
*-commutative95.5%
div-inv95.5%
+-commutative95.5%
div-inv95.5%
Applied egg-rr95.5%
if -1800 < x < 5600Initial program 99.6%
associate-*r/99.6%
sub-neg99.6%
metadata-eval99.6%
*-commutative99.6%
fma-def99.6%
*-commutative99.6%
fma-def99.6%
*-commutative99.6%
fma-def99.6%
fma-def99.6%
*-commutative99.6%
Simplified99.6%
Taylor expanded in z around 0 99.6%
Taylor expanded in x around 0 89.8%
Final simplification92.7%
(FPCore (x y z)
:precision binary64
(if (or (<= x -0.19) (not (<= x 4.2e-9)))
(+
(+
(+ (/ 3655.1204654076414 x) (* x 4.16438922228))
(/ (- y 130977.50649958357) (* x x)))
-110.1139242984811)
(*
(+ 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 <= -0.19) || !(x <= 4.2e-9)) {
tmp = (((3655.1204654076414 / x) + (x * 4.16438922228)) + ((y - 130977.50649958357) / (x * x))) + -110.1139242984811;
} 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 <= (-0.19d0)) .or. (.not. (x <= 4.2d-9))) then
tmp = (((3655.1204654076414d0 / x) + (x * 4.16438922228d0)) + ((y - 130977.50649958357d0) / (x * x))) + (-110.1139242984811d0)
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 <= -0.19) || !(x <= 4.2e-9)) {
tmp = (((3655.1204654076414 / x) + (x * 4.16438922228)) + ((y - 130977.50649958357) / (x * x))) + -110.1139242984811;
} 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 <= -0.19) or not (x <= 4.2e-9): tmp = (((3655.1204654076414 / x) + (x * 4.16438922228)) + ((y - 130977.50649958357) / (x * x))) + -110.1139242984811 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 <= -0.19) || !(x <= 4.2e-9)) tmp = Float64(Float64(Float64(Float64(3655.1204654076414 / x) + Float64(x * 4.16438922228)) + Float64(Float64(y - 130977.50649958357) / Float64(x * x))) + -110.1139242984811); 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 <= -0.19) || ~((x <= 4.2e-9))) tmp = (((3655.1204654076414 / x) + (x * 4.16438922228)) + ((y - 130977.50649958357) / (x * x))) + -110.1139242984811; 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, -0.19], N[Not[LessEqual[x, 4.2e-9]], $MachinePrecision]], N[(N[(N[(N[(3655.1204654076414 / x), $MachinePrecision] + N[(x * 4.16438922228), $MachinePrecision]), $MachinePrecision] + N[(N[(y - 130977.50649958357), $MachinePrecision] / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + -110.1139242984811), $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 -0.19 \lor \neg \left(x \leq 4.2 \cdot 10^{-9}\right):\\
\;\;\;\;\left(\left(\frac{3655.1204654076414}{x} + x \cdot 4.16438922228\right) + \frac{y - 130977.50649958357}{x \cdot x}\right) + -110.1139242984811\\
\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 < -0.19 or 4.20000000000000039e-9 < x Initial program 19.4%
associate-*r/24.3%
sub-neg24.3%
metadata-eval24.3%
*-commutative24.3%
fma-def24.3%
*-commutative24.3%
fma-def24.3%
*-commutative24.3%
fma-def24.3%
fma-def24.3%
*-commutative24.3%
Simplified24.3%
Taylor expanded in x around -inf 92.6%
sub-neg92.6%
+-commutative92.6%
mul-1-neg92.6%
unsub-neg92.6%
*-commutative92.6%
fma-def92.6%
associate-*r/92.6%
metadata-eval92.6%
mul-1-neg92.6%
unsub-neg92.6%
unpow292.6%
metadata-eval92.6%
Simplified92.6%
fma-udef92.6%
*-commutative92.6%
div-inv92.6%
+-commutative92.6%
div-inv92.6%
Applied egg-rr92.6%
if -0.19 < x < 4.20000000000000039e-9Initial program 99.6%
associate-*r/99.7%
sub-neg99.7%
metadata-eval99.7%
*-commutative99.7%
fma-def99.6%
*-commutative99.6%
fma-def99.6%
*-commutative99.6%
fma-def99.6%
fma-def99.6%
*-commutative99.6%
Simplified99.6%
Taylor expanded in x around 0 92.3%
Final simplification92.5%
(FPCore (x y z)
:precision binary64
(if (<= x -21000000000.0)
(/ (+ x -2.0) (+ 0.24013125253755718 (/ 5.86923874282773 x)))
(if (<= x 44.0)
(*
(+ x -2.0)
(+
(* z 0.0212463641547976)
(* x (- (* y 0.0212463641547976) (* z 0.14147091005106402)))))
(/
(+ x -2.0)
(+
(/ 5.86923874282773 x)
(- 0.24013125253755718 (/ 55.572073733743466 (* x x))))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -21000000000.0) {
tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x));
} else if (x <= 44.0) {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402))));
} else {
tmp = (x + -2.0) / ((5.86923874282773 / x) + (0.24013125253755718 - (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 <= (-21000000000.0d0)) then
tmp = (x + (-2.0d0)) / (0.24013125253755718d0 + (5.86923874282773d0 / x))
else if (x <= 44.0d0) then
tmp = (x + (-2.0d0)) * ((z * 0.0212463641547976d0) + (x * ((y * 0.0212463641547976d0) - (z * 0.14147091005106402d0))))
else
tmp = (x + (-2.0d0)) / ((5.86923874282773d0 / x) + (0.24013125253755718d0 - (55.572073733743466d0 / (x * x))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -21000000000.0) {
tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x));
} else if (x <= 44.0) {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402))));
} else {
tmp = (x + -2.0) / ((5.86923874282773 / x) + (0.24013125253755718 - (55.572073733743466 / (x * x))));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -21000000000.0: tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x)) elif x <= 44.0: tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402)))) else: tmp = (x + -2.0) / ((5.86923874282773 / x) + (0.24013125253755718 - (55.572073733743466 / (x * x)))) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -21000000000.0) tmp = Float64(Float64(x + -2.0) / Float64(0.24013125253755718 + Float64(5.86923874282773 / x))); elseif (x <= 44.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 = Float64(Float64(x + -2.0) / Float64(Float64(5.86923874282773 / x) + Float64(0.24013125253755718 - Float64(55.572073733743466 / Float64(x * x))))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -21000000000.0) tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x)); elseif (x <= 44.0) tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402)))); else tmp = (x + -2.0) / ((5.86923874282773 / x) + (0.24013125253755718 - (55.572073733743466 / (x * x)))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -21000000000.0], N[(N[(x + -2.0), $MachinePrecision] / N[(0.24013125253755718 + N[(5.86923874282773 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 44.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], N[(N[(x + -2.0), $MachinePrecision] / N[(N[(5.86923874282773 / x), $MachinePrecision] + N[(0.24013125253755718 - N[(55.572073733743466 / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -21000000000:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718 + \frac{5.86923874282773}{x}}\\
\mathbf{elif}\;x \leq 44:\\
\;\;\;\;\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}:\\
\;\;\;\;\frac{x + -2}{\frac{5.86923874282773}{x} + \left(0.24013125253755718 - \frac{55.572073733743466}{x \cdot x}\right)}\\
\end{array}
\end{array}
if x < -2.1e10Initial program 14.1%
associate-/l*17.0%
sub-neg17.0%
metadata-eval17.0%
fma-def17.0%
fma-def17.0%
fma-def17.0%
fma-def17.0%
fma-def17.0%
fma-def17.0%
fma-def17.0%
Simplified17.0%
Taylor expanded in x around inf 85.0%
associate-*r/85.0%
metadata-eval85.0%
Simplified85.0%
if -2.1e10 < x < 44Initial program 99.6%
associate-*r/99.6%
sub-neg99.6%
metadata-eval99.6%
*-commutative99.6%
fma-def99.6%
*-commutative99.6%
fma-def99.6%
*-commutative99.6%
fma-def99.6%
fma-def99.6%
*-commutative99.6%
Simplified99.6%
Taylor expanded in x around 0 89.6%
if 44 < x Initial program 19.8%
associate-/l*27.0%
sub-neg27.0%
metadata-eval27.0%
fma-def27.0%
fma-def27.0%
fma-def27.0%
fma-def27.0%
fma-def27.0%
fma-def27.0%
fma-def27.0%
Simplified27.0%
Taylor expanded in x around inf 88.9%
+-commutative88.9%
associate--l+88.9%
associate-*r/88.9%
metadata-eval88.9%
associate-*r/88.9%
metadata-eval88.9%
unpow288.9%
Simplified88.9%
Final simplification88.3%
(FPCore (x y z)
:precision binary64
(if (<= x -8.5e-16)
(/ (+ x -2.0) (+ 0.24013125253755718 (/ 5.86923874282773 x)))
(if (<= x 13.5)
(/ (* z (- x 2.0)) (+ 47.066876606 (* x 313.399215894)))
(/
(+ x -2.0)
(+
(/ 5.86923874282773 x)
(- 0.24013125253755718 (/ 55.572073733743466 (* x x))))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -8.5e-16) {
tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x));
} else if (x <= 13.5) {
tmp = (z * (x - 2.0)) / (47.066876606 + (x * 313.399215894));
} else {
tmp = (x + -2.0) / ((5.86923874282773 / x) + (0.24013125253755718 - (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 <= (-8.5d-16)) then
tmp = (x + (-2.0d0)) / (0.24013125253755718d0 + (5.86923874282773d0 / x))
else if (x <= 13.5d0) then
tmp = (z * (x - 2.0d0)) / (47.066876606d0 + (x * 313.399215894d0))
else
tmp = (x + (-2.0d0)) / ((5.86923874282773d0 / x) + (0.24013125253755718d0 - (55.572073733743466d0 / (x * x))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -8.5e-16) {
tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x));
} else if (x <= 13.5) {
tmp = (z * (x - 2.0)) / (47.066876606 + (x * 313.399215894));
} else {
tmp = (x + -2.0) / ((5.86923874282773 / x) + (0.24013125253755718 - (55.572073733743466 / (x * x))));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -8.5e-16: tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x)) elif x <= 13.5: tmp = (z * (x - 2.0)) / (47.066876606 + (x * 313.399215894)) else: tmp = (x + -2.0) / ((5.86923874282773 / x) + (0.24013125253755718 - (55.572073733743466 / (x * x)))) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -8.5e-16) tmp = Float64(Float64(x + -2.0) / Float64(0.24013125253755718 + Float64(5.86923874282773 / x))); elseif (x <= 13.5) tmp = Float64(Float64(z * Float64(x - 2.0)) / Float64(47.066876606 + Float64(x * 313.399215894))); else tmp = Float64(Float64(x + -2.0) / Float64(Float64(5.86923874282773 / x) + Float64(0.24013125253755718 - Float64(55.572073733743466 / Float64(x * x))))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -8.5e-16) tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x)); elseif (x <= 13.5) tmp = (z * (x - 2.0)) / (47.066876606 + (x * 313.399215894)); else tmp = (x + -2.0) / ((5.86923874282773 / x) + (0.24013125253755718 - (55.572073733743466 / (x * x)))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -8.5e-16], N[(N[(x + -2.0), $MachinePrecision] / N[(0.24013125253755718 + N[(5.86923874282773 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 13.5], N[(N[(z * N[(x - 2.0), $MachinePrecision]), $MachinePrecision] / N[(47.066876606 + N[(x * 313.399215894), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] / N[(N[(5.86923874282773 / x), $MachinePrecision] + N[(0.24013125253755718 - N[(55.572073733743466 / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -8.5 \cdot 10^{-16}:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718 + \frac{5.86923874282773}{x}}\\
\mathbf{elif}\;x \leq 13.5:\\
\;\;\;\;\frac{z \cdot \left(x - 2\right)}{47.066876606 + x \cdot 313.399215894}\\
\mathbf{else}:\\
\;\;\;\;\frac{x + -2}{\frac{5.86923874282773}{x} + \left(0.24013125253755718 - \frac{55.572073733743466}{x \cdot x}\right)}\\
\end{array}
\end{array}
if x < -8.5000000000000001e-16Initial program 17.9%
associate-/l*20.6%
sub-neg20.6%
metadata-eval20.6%
fma-def20.6%
fma-def20.6%
fma-def20.6%
fma-def20.6%
fma-def20.6%
fma-def20.6%
fma-def20.6%
Simplified20.6%
Taylor expanded in x around inf 81.4%
associate-*r/81.4%
metadata-eval81.4%
Simplified81.4%
if -8.5000000000000001e-16 < x < 13.5Initial program 99.6%
associate-*r/99.7%
sub-neg99.7%
metadata-eval99.7%
*-commutative99.7%
fma-def99.6%
*-commutative99.6%
fma-def99.7%
*-commutative99.7%
fma-def99.7%
fma-def99.7%
*-commutative99.7%
Simplified99.7%
Taylor expanded in z around inf 65.4%
Taylor expanded in x around 0 65.4%
*-commutative65.4%
Simplified65.4%
if 13.5 < x Initial program 21.0%
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.1%
Simplified28.1%
Taylor expanded in x around inf 87.7%
+-commutative87.7%
associate--l+87.7%
associate-*r/87.7%
metadata-eval87.7%
associate-*r/87.7%
metadata-eval87.7%
unpow287.7%
Simplified87.7%
Final simplification75.5%
(FPCore (x y z) :precision binary64 (if (or (<= x -8.5e-16) (not (<= x 4.2e-9))) (/ (+ x -2.0) (+ 0.24013125253755718 (/ 5.86923874282773 x))) (/ (* z (- x 2.0)) (+ 47.066876606 (* x 313.399215894)))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -8.5e-16) || !(x <= 4.2e-9)) {
tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x));
} else {
tmp = (z * (x - 2.0)) / (47.066876606 + (x * 313.399215894));
}
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 <= (-8.5d-16)) .or. (.not. (x <= 4.2d-9))) then
tmp = (x + (-2.0d0)) / (0.24013125253755718d0 + (5.86923874282773d0 / x))
else
tmp = (z * (x - 2.0d0)) / (47.066876606d0 + (x * 313.399215894d0))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -8.5e-16) || !(x <= 4.2e-9)) {
tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x));
} else {
tmp = (z * (x - 2.0)) / (47.066876606 + (x * 313.399215894));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -8.5e-16) or not (x <= 4.2e-9): tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x)) else: tmp = (z * (x - 2.0)) / (47.066876606 + (x * 313.399215894)) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -8.5e-16) || !(x <= 4.2e-9)) tmp = Float64(Float64(x + -2.0) / Float64(0.24013125253755718 + Float64(5.86923874282773 / x))); else tmp = Float64(Float64(z * Float64(x - 2.0)) / Float64(47.066876606 + Float64(x * 313.399215894))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -8.5e-16) || ~((x <= 4.2e-9))) tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x)); else tmp = (z * (x - 2.0)) / (47.066876606 + (x * 313.399215894)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -8.5e-16], N[Not[LessEqual[x, 4.2e-9]], $MachinePrecision]], N[(N[(x + -2.0), $MachinePrecision] / N[(0.24013125253755718 + N[(5.86923874282773 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(z * N[(x - 2.0), $MachinePrecision]), $MachinePrecision] / N[(47.066876606 + N[(x * 313.399215894), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -8.5 \cdot 10^{-16} \lor \neg \left(x \leq 4.2 \cdot 10^{-9}\right):\\
\;\;\;\;\frac{x + -2}{0.24013125253755718 + \frac{5.86923874282773}{x}}\\
\mathbf{else}:\\
\;\;\;\;\frac{z \cdot \left(x - 2\right)}{47.066876606 + x \cdot 313.399215894}\\
\end{array}
\end{array}
if x < -8.5000000000000001e-16 or 4.20000000000000039e-9 < x Initial program 20.6%
associate-/l*25.4%
sub-neg25.4%
metadata-eval25.4%
fma-def25.5%
fma-def25.4%
fma-def25.4%
fma-def25.4%
fma-def25.4%
fma-def25.4%
fma-def25.4%
Simplified25.4%
Taylor expanded in x around inf 83.2%
associate-*r/83.2%
metadata-eval83.2%
Simplified83.2%
if -8.5000000000000001e-16 < x < 4.20000000000000039e-9Initial program 99.6%
associate-*r/99.7%
sub-neg99.7%
metadata-eval99.7%
*-commutative99.7%
fma-def99.6%
*-commutative99.6%
fma-def99.6%
*-commutative99.6%
fma-def99.6%
fma-def99.6%
*-commutative99.6%
Simplified99.6%
Taylor expanded in z around inf 66.4%
Taylor expanded in x around 0 66.4%
*-commutative66.4%
Simplified66.4%
Final simplification75.4%
(FPCore (x y z) :precision binary64 (if (or (<= x -8.5e-16) (not (<= x 4.2e-9))) (/ (+ x -2.0) (+ 0.24013125253755718 (/ 5.86923874282773 x))) (/ (+ x -2.0) (/ 47.066876606 z))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -8.5e-16) || !(x <= 4.2e-9)) {
tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x));
} else {
tmp = (x + -2.0) / (47.066876606 / z);
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((x <= (-8.5d-16)) .or. (.not. (x <= 4.2d-9))) then
tmp = (x + (-2.0d0)) / (0.24013125253755718d0 + (5.86923874282773d0 / x))
else
tmp = (x + (-2.0d0)) / (47.066876606d0 / z)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -8.5e-16) || !(x <= 4.2e-9)) {
tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x));
} else {
tmp = (x + -2.0) / (47.066876606 / z);
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -8.5e-16) or not (x <= 4.2e-9): tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x)) else: tmp = (x + -2.0) / (47.066876606 / z) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -8.5e-16) || !(x <= 4.2e-9)) tmp = Float64(Float64(x + -2.0) / Float64(0.24013125253755718 + Float64(5.86923874282773 / x))); else tmp = Float64(Float64(x + -2.0) / Float64(47.066876606 / z)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -8.5e-16) || ~((x <= 4.2e-9))) tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x)); else tmp = (x + -2.0) / (47.066876606 / z); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -8.5e-16], N[Not[LessEqual[x, 4.2e-9]], $MachinePrecision]], N[(N[(x + -2.0), $MachinePrecision] / N[(0.24013125253755718 + N[(5.86923874282773 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] / N[(47.066876606 / z), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -8.5 \cdot 10^{-16} \lor \neg \left(x \leq 4.2 \cdot 10^{-9}\right):\\
\;\;\;\;\frac{x + -2}{0.24013125253755718 + \frac{5.86923874282773}{x}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x + -2}{\frac{47.066876606}{z}}\\
\end{array}
\end{array}
if x < -8.5000000000000001e-16 or 4.20000000000000039e-9 < x Initial program 20.6%
associate-/l*25.4%
sub-neg25.4%
metadata-eval25.4%
fma-def25.5%
fma-def25.4%
fma-def25.4%
fma-def25.4%
fma-def25.4%
fma-def25.4%
fma-def25.4%
Simplified25.4%
Taylor expanded in x around inf 83.2%
associate-*r/83.2%
metadata-eval83.2%
Simplified83.2%
if -8.5000000000000001e-16 < x < 4.20000000000000039e-9Initial program 99.6%
associate-/l*99.4%
sub-neg99.4%
metadata-eval99.4%
fma-def99.4%
fma-def99.4%
fma-def99.4%
fma-def99.4%
fma-def99.4%
fma-def99.4%
fma-def99.4%
Simplified99.4%
Taylor expanded in x around 0 66.2%
Final simplification75.3%
(FPCore (x y z)
:precision binary64
(if (<= x -21000000000.0)
(/ (+ x -2.0) 0.24013125253755718)
(if (<= x 2.0)
(* z -0.0424927283095952)
(+ (* x 4.16438922228) (- (/ 3655.1204654076414 x) 110.1139242984811)))))
double code(double x, double y, double z) {
double tmp;
if (x <= -21000000000.0) {
tmp = (x + -2.0) / 0.24013125253755718;
} else if (x <= 2.0) {
tmp = z * -0.0424927283095952;
} else {
tmp = (x * 4.16438922228) + ((3655.1204654076414 / x) - 110.1139242984811);
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-21000000000.0d0)) then
tmp = (x + (-2.0d0)) / 0.24013125253755718d0
else if (x <= 2.0d0) then
tmp = z * (-0.0424927283095952d0)
else
tmp = (x * 4.16438922228d0) + ((3655.1204654076414d0 / x) - 110.1139242984811d0)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -21000000000.0) {
tmp = (x + -2.0) / 0.24013125253755718;
} else if (x <= 2.0) {
tmp = z * -0.0424927283095952;
} else {
tmp = (x * 4.16438922228) + ((3655.1204654076414 / x) - 110.1139242984811);
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -21000000000.0: tmp = (x + -2.0) / 0.24013125253755718 elif x <= 2.0: tmp = z * -0.0424927283095952 else: tmp = (x * 4.16438922228) + ((3655.1204654076414 / x) - 110.1139242984811) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -21000000000.0) tmp = Float64(Float64(x + -2.0) / 0.24013125253755718); elseif (x <= 2.0) tmp = Float64(z * -0.0424927283095952); else tmp = Float64(Float64(x * 4.16438922228) + Float64(Float64(3655.1204654076414 / x) - 110.1139242984811)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -21000000000.0) tmp = (x + -2.0) / 0.24013125253755718; elseif (x <= 2.0) tmp = z * -0.0424927283095952; else tmp = (x * 4.16438922228) + ((3655.1204654076414 / x) - 110.1139242984811); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -21000000000.0], N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision], If[LessEqual[x, 2.0], N[(z * -0.0424927283095952), $MachinePrecision], N[(N[(x * 4.16438922228), $MachinePrecision] + N[(N[(3655.1204654076414 / x), $MachinePrecision] - 110.1139242984811), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -21000000000:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718}\\
\mathbf{elif}\;x \leq 2:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228 + \left(\frac{3655.1204654076414}{x} - 110.1139242984811\right)\\
\end{array}
\end{array}
if x < -2.1e10Initial program 14.1%
associate-/l*17.0%
sub-neg17.0%
metadata-eval17.0%
fma-def17.0%
fma-def17.0%
fma-def17.0%
fma-def17.0%
fma-def17.0%
fma-def17.0%
fma-def17.0%
Simplified17.0%
Taylor expanded in x around inf 84.6%
if -2.1e10 < x < 2Initial program 99.6%
associate-*r/99.6%
sub-neg99.6%
metadata-eval99.6%
*-commutative99.6%
fma-def99.6%
*-commutative99.6%
fma-def99.6%
*-commutative99.6%
fma-def99.6%
fma-def99.6%
*-commutative99.6%
Simplified99.6%
Taylor expanded in x around 0 63.7%
*-commutative63.7%
Simplified63.7%
if 2 < x Initial program 21.0%
associate-*r/28.1%
sub-neg28.1%
metadata-eval28.1%
*-commutative28.1%
fma-def28.1%
*-commutative28.1%
fma-def28.1%
*-commutative28.1%
fma-def28.1%
fma-def28.1%
*-commutative28.1%
Simplified28.1%
Taylor expanded in x around inf 87.0%
associate--l+87.0%
div-inv87.0%
Applied egg-rr87.0%
Final simplification75.1%
(FPCore (x y z) :precision binary64 (if (or (<= x -21000000000.0) (not (<= x 4.2e-9))) (- (* x 4.16438922228) 110.1139242984811) (* z -0.0424927283095952)))
double code(double x, double y, double z) {
double tmp;
if ((x <= -21000000000.0) || !(x <= 4.2e-9)) {
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 <= (-21000000000.0d0)) .or. (.not. (x <= 4.2d-9))) 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 <= -21000000000.0) || !(x <= 4.2e-9)) {
tmp = (x * 4.16438922228) - 110.1139242984811;
} else {
tmp = z * -0.0424927283095952;
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -21000000000.0) or not (x <= 4.2e-9): tmp = (x * 4.16438922228) - 110.1139242984811 else: tmp = z * -0.0424927283095952 return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -21000000000.0) || !(x <= 4.2e-9)) 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 <= -21000000000.0) || ~((x <= 4.2e-9))) tmp = (x * 4.16438922228) - 110.1139242984811; else tmp = z * -0.0424927283095952; end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -21000000000.0], N[Not[LessEqual[x, 4.2e-9]], $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 -21000000000 \lor \neg \left(x \leq 4.2 \cdot 10^{-9}\right):\\
\;\;\;\;x \cdot 4.16438922228 - 110.1139242984811\\
\mathbf{else}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\end{array}
\end{array}
if x < -2.1e10 or 4.20000000000000039e-9 < x Initial program 18.8%
associate-*r/23.8%
sub-neg23.8%
metadata-eval23.8%
*-commutative23.8%
fma-def23.8%
*-commutative23.8%
fma-def23.8%
*-commutative23.8%
fma-def23.8%
fma-def23.8%
*-commutative23.8%
Simplified23.8%
Taylor expanded in x around inf 84.4%
if -2.1e10 < x < 4.20000000000000039e-9Initial program 99.6%
associate-*r/99.7%
sub-neg99.7%
metadata-eval99.7%
*-commutative99.7%
fma-def99.6%
*-commutative99.6%
fma-def99.6%
*-commutative99.6%
fma-def99.6%
fma-def99.6%
*-commutative99.6%
Simplified99.6%
Taylor expanded in x around 0 64.6%
*-commutative64.6%
Simplified64.6%
Final simplification75.0%
(FPCore (x y z)
:precision binary64
(if (<= x -21000000000.0)
(/ (+ x -2.0) 0.24013125253755718)
(if (<= x 4.2e-9)
(* z -0.0424927283095952)
(- (* x 4.16438922228) 110.1139242984811))))
double code(double x, double y, double z) {
double tmp;
if (x <= -21000000000.0) {
tmp = (x + -2.0) / 0.24013125253755718;
} else if (x <= 4.2e-9) {
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 <= (-21000000000.0d0)) then
tmp = (x + (-2.0d0)) / 0.24013125253755718d0
else if (x <= 4.2d-9) 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 <= -21000000000.0) {
tmp = (x + -2.0) / 0.24013125253755718;
} else if (x <= 4.2e-9) {
tmp = z * -0.0424927283095952;
} else {
tmp = (x * 4.16438922228) - 110.1139242984811;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -21000000000.0: tmp = (x + -2.0) / 0.24013125253755718 elif x <= 4.2e-9: tmp = z * -0.0424927283095952 else: tmp = (x * 4.16438922228) - 110.1139242984811 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -21000000000.0) tmp = Float64(Float64(x + -2.0) / 0.24013125253755718); elseif (x <= 4.2e-9) 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 <= -21000000000.0) tmp = (x + -2.0) / 0.24013125253755718; elseif (x <= 4.2e-9) tmp = z * -0.0424927283095952; else tmp = (x * 4.16438922228) - 110.1139242984811; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -21000000000.0], N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision], If[LessEqual[x, 4.2e-9], N[(z * -0.0424927283095952), $MachinePrecision], N[(N[(x * 4.16438922228), $MachinePrecision] - 110.1139242984811), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -21000000000:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718}\\
\mathbf{elif}\;x \leq 4.2 \cdot 10^{-9}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228 - 110.1139242984811\\
\end{array}
\end{array}
if x < -2.1e10Initial program 14.1%
associate-/l*17.0%
sub-neg17.0%
metadata-eval17.0%
fma-def17.0%
fma-def17.0%
fma-def17.0%
fma-def17.0%
fma-def17.0%
fma-def17.0%
fma-def17.0%
Simplified17.0%
Taylor expanded in x around inf 84.6%
if -2.1e10 < x < 4.20000000000000039e-9Initial program 99.6%
associate-*r/99.7%
sub-neg99.7%
metadata-eval99.7%
*-commutative99.7%
fma-def99.6%
*-commutative99.6%
fma-def99.6%
*-commutative99.6%
fma-def99.6%
fma-def99.6%
*-commutative99.6%
Simplified99.6%
Taylor expanded in x around 0 64.6%
*-commutative64.6%
Simplified64.6%
if 4.20000000000000039e-9 < x Initial program 23.3%
associate-*r/30.1%
sub-neg30.1%
metadata-eval30.1%
*-commutative30.1%
fma-def30.1%
*-commutative30.1%
fma-def30.2%
*-commutative30.2%
fma-def30.2%
fma-def30.2%
*-commutative30.2%
Simplified30.2%
Taylor expanded in x around inf 84.3%
Final simplification75.0%
(FPCore (x y z) :precision binary64 (if (<= x -21000000000.0) (* x 4.16438922228) (if (<= x 2.0) (* z -0.0424927283095952) (* x 4.16438922228))))
double code(double x, double y, double z) {
double tmp;
if (x <= -21000000000.0) {
tmp = x * 4.16438922228;
} else if (x <= 2.0) {
tmp = z * -0.0424927283095952;
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-21000000000.0d0)) then
tmp = x * 4.16438922228d0
else if (x <= 2.0d0) then
tmp = z * (-0.0424927283095952d0)
else
tmp = x * 4.16438922228d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -21000000000.0) {
tmp = x * 4.16438922228;
} else if (x <= 2.0) {
tmp = z * -0.0424927283095952;
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -21000000000.0: tmp = x * 4.16438922228 elif x <= 2.0: tmp = z * -0.0424927283095952 else: tmp = x * 4.16438922228 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -21000000000.0) tmp = Float64(x * 4.16438922228); elseif (x <= 2.0) tmp = Float64(z * -0.0424927283095952); else tmp = Float64(x * 4.16438922228); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -21000000000.0) tmp = x * 4.16438922228; elseif (x <= 2.0) tmp = z * -0.0424927283095952; else tmp = x * 4.16438922228; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -21000000000.0], N[(x * 4.16438922228), $MachinePrecision], If[LessEqual[x, 2.0], N[(z * -0.0424927283095952), $MachinePrecision], N[(x * 4.16438922228), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -21000000000:\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{elif}\;x \leq 2:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228\\
\end{array}
\end{array}
if x < -2.1e10 or 2 < x Initial program 17.6%
associate-*r/22.6%
sub-neg22.6%
metadata-eval22.6%
*-commutative22.6%
fma-def22.6%
*-commutative22.6%
fma-def22.6%
*-commutative22.6%
fma-def22.6%
fma-def22.6%
*-commutative22.6%
Simplified22.6%
Taylor expanded in x around inf 84.9%
*-commutative84.9%
Simplified84.9%
if -2.1e10 < x < 2Initial program 99.6%
associate-*r/99.6%
sub-neg99.6%
metadata-eval99.6%
*-commutative99.6%
fma-def99.6%
*-commutative99.6%
fma-def99.6%
*-commutative99.6%
fma-def99.6%
fma-def99.6%
*-commutative99.6%
Simplified99.6%
Taylor expanded in x around 0 63.7%
*-commutative63.7%
Simplified63.7%
Final simplification74.6%
(FPCore (x y z) :precision binary64 (* x -0.3407596943375357))
double code(double x, double y, double z) {
return x * -0.3407596943375357;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = x * (-0.3407596943375357d0)
end function
public static double code(double x, double y, double z) {
return x * -0.3407596943375357;
}
def code(x, y, z): return x * -0.3407596943375357
function code(x, y, z) return Float64(x * -0.3407596943375357) end
function tmp = code(x, y, z) tmp = x * -0.3407596943375357; end
code[x_, y_, z_] := N[(x * -0.3407596943375357), $MachinePrecision]
\begin{array}{l}
\\
x \cdot -0.3407596943375357
\end{array}
Initial program 57.3%
associate-/l*59.8%
sub-neg59.8%
metadata-eval59.8%
fma-def59.8%
fma-def59.8%
fma-def59.8%
fma-def59.8%
fma-def59.8%
fma-def59.8%
fma-def59.8%
Simplified59.8%
Taylor expanded in x around inf 46.1%
associate-*r/46.1%
metadata-eval46.1%
Simplified46.1%
Taylor expanded in x around 0 2.2%
*-commutative2.2%
Simplified2.2%
Final simplification2.2%
(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 57.3%
associate-*r/59.9%
sub-neg59.9%
metadata-eval59.9%
*-commutative59.9%
fma-def59.9%
*-commutative59.9%
fma-def59.9%
*-commutative59.9%
fma-def59.9%
fma-def59.9%
*-commutative59.9%
Simplified59.9%
Taylor expanded in x around inf 45.6%
*-commutative45.6%
Simplified45.6%
Final simplification45.6%
(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 2023185
(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)))