
(FPCore (x y z)
:precision binary64
(/
(*
(- x 2.0)
(+
(*
(+ (* (+ (* (+ (* x 4.16438922228) 78.6994924154) x) 137.519416416) x) y)
x)
z))
(+
(* (+ (* (+ (* (+ x 43.3400022514) x) 263.505074721) x) 313.399215894) x)
47.066876606)))
double code(double x, double y, double z) {
return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606);
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = ((x - 2.0d0) * ((((((((x * 4.16438922228d0) + 78.6994924154d0) * x) + 137.519416416d0) * x) + y) * x) + z)) / (((((((x + 43.3400022514d0) * x) + 263.505074721d0) * x) + 313.399215894d0) * x) + 47.066876606d0)
end function
public static double code(double x, double y, double z) {
return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606);
}
def code(x, y, z): return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606)
function code(x, y, z) return Float64(Float64(Float64(x - 2.0) * Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606)) end
function tmp = code(x, y, z) tmp = ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606); end
code[x_, y_, z_] := N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(N[(N[(N[(N[(N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision] * x), $MachinePrecision] + 137.519416416), $MachinePrecision] * x), $MachinePrecision] + y), $MachinePrecision] * x), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(x + 43.3400022514), $MachinePrecision] * x), $MachinePrecision] + 263.505074721), $MachinePrecision] * x), $MachinePrecision] + 313.399215894), $MachinePrecision] * x), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 28 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z)
:precision binary64
(/
(*
(- x 2.0)
(+
(*
(+ (* (+ (* (+ (* x 4.16438922228) 78.6994924154) x) 137.519416416) x) y)
x)
z))
(+
(* (+ (* (+ (* (+ x 43.3400022514) x) 263.505074721) x) 313.399215894) x)
47.066876606)))
double code(double x, double y, double z) {
return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606);
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = ((x - 2.0d0) * ((((((((x * 4.16438922228d0) + 78.6994924154d0) * x) + 137.519416416d0) * x) + y) * x) + z)) / (((((((x + 43.3400022514d0) * x) + 263.505074721d0) * x) + 313.399215894d0) * x) + 47.066876606d0)
end function
public static double code(double x, double y, double z) {
return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606);
}
def code(x, y, z): return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606)
function code(x, y, z) return Float64(Float64(Float64(x - 2.0) * Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606)) end
function tmp = code(x, y, z) tmp = ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606); end
code[x_, y_, z_] := N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(N[(N[(N[(N[(N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision] * x), $MachinePrecision] + 137.519416416), $MachinePrecision] * x), $MachinePrecision] + y), $MachinePrecision] * x), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(x + 43.3400022514), $MachinePrecision] * x), $MachinePrecision] + 263.505074721), $MachinePrecision] * x), $MachinePrecision] + 313.399215894), $MachinePrecision] * x), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606}
\end{array}
(FPCore (x y z)
:precision binary64
(let* ((t_0
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606)))
(if (<= x -7e+40)
(*
(+ x -2.0)
(+
4.16438922228
(/
(-
(* (- 3451.550173699799 (/ (- 124074.40615218398 y) x)) (/ 1.0 x))
101.7851458539211)
x)))
(if (<= x 3.1e+56)
(/
(*
(- x 2.0)
(+
(*
x
(+
y
(*
x
(+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))))
z))
t_0)
(-
(* (- x 2.0) 4.16438922228)
(* z (- (* 2.0 (/ 1.0 t_0)) (/ x t_0))))))))
double code(double x, double y, double z) {
double t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606;
double tmp;
if (x <= -7e+40) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - y) / x)) * (1.0 / x)) - 101.7851458539211) / x));
} else if (x <= 3.1e+56) {
tmp = ((x - 2.0) * ((x * (y + (x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)))) + z)) / t_0;
} else {
tmp = ((x - 2.0) * 4.16438922228) - (z * ((2.0 * (1.0 / t_0)) - (x / t_0)));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = (x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0
if (x <= (-7d+40)) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + ((((3451.550173699799d0 - ((124074.40615218398d0 - y) / x)) * (1.0d0 / x)) - 101.7851458539211d0) / x))
else if (x <= 3.1d+56) then
tmp = ((x - 2.0d0) * ((x * (y + (x * ((x * ((x * 4.16438922228d0) + 78.6994924154d0)) + 137.519416416d0)))) + z)) / t_0
else
tmp = ((x - 2.0d0) * 4.16438922228d0) - (z * ((2.0d0 * (1.0d0 / t_0)) - (x / t_0)))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606;
double tmp;
if (x <= -7e+40) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - y) / x)) * (1.0 / x)) - 101.7851458539211) / x));
} else if (x <= 3.1e+56) {
tmp = ((x - 2.0) * ((x * (y + (x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)))) + z)) / t_0;
} else {
tmp = ((x - 2.0) * 4.16438922228) - (z * ((2.0 * (1.0 / t_0)) - (x / t_0)));
}
return tmp;
}
def code(x, y, z): t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606 tmp = 0 if x <= -7e+40: tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - y) / x)) * (1.0 / x)) - 101.7851458539211) / x)) elif x <= 3.1e+56: tmp = ((x - 2.0) * ((x * (y + (x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)))) + z)) / t_0 else: tmp = ((x - 2.0) * 4.16438922228) - (z * ((2.0 * (1.0 / t_0)) - (x / t_0))) return tmp
function code(x, y, z) t_0 = Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) tmp = 0.0 if (x <= -7e+40) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 - Float64(Float64(124074.40615218398 - y) / x)) * Float64(1.0 / x)) - 101.7851458539211) / x))); elseif (x <= 3.1e+56) tmp = Float64(Float64(Float64(x - 2.0) * Float64(Float64(x * Float64(y + Float64(x * Float64(Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)) + 137.519416416)))) + z)) / t_0); else tmp = Float64(Float64(Float64(x - 2.0) * 4.16438922228) - Float64(z * Float64(Float64(2.0 * Float64(1.0 / t_0)) - Float64(x / t_0)))); end return tmp end
function tmp_2 = code(x, y, z) t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606; tmp = 0.0; if (x <= -7e+40) tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - y) / x)) * (1.0 / x)) - 101.7851458539211) / x)); elseif (x <= 3.1e+56) tmp = ((x - 2.0) * ((x * (y + (x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)))) + z)) / t_0; else tmp = ((x - 2.0) * 4.16438922228) - (z * ((2.0 * (1.0 / t_0)) - (x / t_0))); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]}, If[LessEqual[x, -7e+40], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 - N[(N[(124074.40615218398 - y), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] * N[(1.0 / x), $MachinePrecision]), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 3.1e+56], N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(x * N[(y + N[(x * N[(N[(x * N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision]), $MachinePrecision] + 137.519416416), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / t$95$0), $MachinePrecision], N[(N[(N[(x - 2.0), $MachinePrecision] * 4.16438922228), $MachinePrecision] - N[(z * N[(N[(2.0 * N[(1.0 / t$95$0), $MachinePrecision]), $MachinePrecision] - N[(x / t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606\\
\mathbf{if}\;x \leq -7 \cdot 10^{+40}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\left(3451.550173699799 - \frac{124074.40615218398 - y}{x}\right) \cdot \frac{1}{x} - 101.7851458539211}{x}\right)\\
\mathbf{elif}\;x \leq 3.1 \cdot 10^{+56}:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot \left(x \cdot \left(y + x \cdot \left(x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right) + 137.519416416\right)\right) + z\right)}{t\_0}\\
\mathbf{else}:\\
\;\;\;\;\left(x - 2\right) \cdot 4.16438922228 - z \cdot \left(2 \cdot \frac{1}{t\_0} - \frac{x}{t\_0}\right)\\
\end{array}
\end{array}
if x < -6.9999999999999998e40Initial program 6.0%
associate-/l*11.2%
sub-neg11.2%
metadata-eval11.2%
fma-define11.2%
fma-define11.2%
fma-define11.2%
fma-define11.2%
fma-define11.2%
fma-define11.2%
fma-define11.2%
Simplified11.2%
Taylor expanded in x around -inf 97.4%
mul-1-neg97.4%
unsub-neg97.4%
mul-1-neg97.4%
unsub-neg97.4%
mul-1-neg97.4%
unsub-neg97.4%
neg-mul-197.4%
unsub-neg97.4%
Simplified97.4%
div-inv97.4%
Applied egg-rr97.4%
if -6.9999999999999998e40 < x < 3.10000000000000005e56Initial program 98.8%
if 3.10000000000000005e56 < x Initial program 0.2%
associate-/l*4.4%
sub-neg4.4%
metadata-eval4.4%
fma-define4.4%
fma-define4.4%
fma-define4.4%
fma-define4.4%
fma-define4.4%
fma-define4.4%
fma-define4.4%
Simplified4.4%
Taylor expanded in z around 0 4.4%
Taylor expanded in x around inf 99.0%
Taylor expanded in z around 0 99.1%
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 (+ (* x 4.16438922228) 78.6994924154)) 137.519416416)))
(if (<= (/ (* (- x 2.0) (+ (* x (+ y (* x t_1))) z)) t_0) 2e+297)
(*
(+ x -2.0)
(+ (/ z t_0) (+ (/ (* x y) t_0) (/ (* (pow x 2.0) t_1) t_0))))
(*
(+ x -2.0)
(+
4.16438922228
(/
(-
(/ (+ 3451.550173699799 (/ -1.0 (/ x (- 124074.40615218398 y)))) x)
101.7851458539211)
x))))))
double code(double x, double y, double z) {
double t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606;
double t_1 = (x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416;
double tmp;
if ((((x - 2.0) * ((x * (y + (x * t_1))) + z)) / t_0) <= 2e+297) {
tmp = (x + -2.0) * ((z / t_0) + (((x * y) / t_0) + ((pow(x, 2.0) * t_1) / t_0)));
} else {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + (-1.0 / (x / (124074.40615218398 - y)))) / x) - 101.7851458539211) / x));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: 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 * ((x * 4.16438922228d0) + 78.6994924154d0)) + 137.519416416d0
if ((((x - 2.0d0) * ((x * (y + (x * t_1))) + z)) / t_0) <= 2d+297) then
tmp = (x + (-2.0d0)) * ((z / t_0) + (((x * y) / t_0) + (((x ** 2.0d0) * t_1) / t_0)))
else
tmp = (x + (-2.0d0)) * (4.16438922228d0 + ((((3451.550173699799d0 + ((-1.0d0) / (x / (124074.40615218398d0 - y)))) / x) - 101.7851458539211d0) / 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 = (x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416;
double tmp;
if ((((x - 2.0) * ((x * (y + (x * t_1))) + z)) / t_0) <= 2e+297) {
tmp = (x + -2.0) * ((z / t_0) + (((x * y) / t_0) + ((Math.pow(x, 2.0) * t_1) / t_0)));
} else {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + (-1.0 / (x / (124074.40615218398 - y)))) / x) - 101.7851458539211) / x));
}
return tmp;
}
def code(x, y, z): t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606 t_1 = (x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416 tmp = 0 if (((x - 2.0) * ((x * (y + (x * t_1))) + z)) / t_0) <= 2e+297: tmp = (x + -2.0) * ((z / t_0) + (((x * y) / t_0) + ((math.pow(x, 2.0) * t_1) / t_0))) else: tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + (-1.0 / (x / (124074.40615218398 - y)))) / x) - 101.7851458539211) / x)) return tmp
function code(x, y, z) t_0 = Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) t_1 = Float64(Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)) + 137.519416416) tmp = 0.0 if (Float64(Float64(Float64(x - 2.0) * Float64(Float64(x * Float64(y + Float64(x * t_1))) + z)) / t_0) <= 2e+297) tmp = Float64(Float64(x + -2.0) * Float64(Float64(z / t_0) + Float64(Float64(Float64(x * y) / t_0) + Float64(Float64((x ^ 2.0) * t_1) / t_0)))); else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(-1.0 / Float64(x / Float64(124074.40615218398 - y)))) / x) - 101.7851458539211) / x))); end return tmp end
function tmp_2 = code(x, y, z) t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606; t_1 = (x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416; tmp = 0.0; if ((((x - 2.0) * ((x * (y + (x * t_1))) + z)) / t_0) <= 2e+297) tmp = (x + -2.0) * ((z / t_0) + (((x * y) / t_0) + (((x ^ 2.0) * t_1) / t_0))); else tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + (-1.0 / (x / (124074.40615218398 - y)))) / x) - 101.7851458539211) / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]}, Block[{t$95$1 = N[(N[(x * N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision]), $MachinePrecision] + 137.519416416), $MachinePrecision]}, If[LessEqual[N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(x * N[(y + N[(x * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / t$95$0), $MachinePrecision], 2e+297], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z / t$95$0), $MachinePrecision] + N[(N[(N[(x * y), $MachinePrecision] / t$95$0), $MachinePrecision] + N[(N[(N[Power[x, 2.0], $MachinePrecision] * t$95$1), $MachinePrecision] / t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 + N[(-1.0 / N[(x / N[(124074.40615218398 - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606\\
t_1 := x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right) + 137.519416416\\
\mathbf{if}\;\frac{\left(x - 2\right) \cdot \left(x \cdot \left(y + x \cdot t\_1\right) + z\right)}{t\_0} \leq 2 \cdot 10^{+297}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(\frac{z}{t\_0} + \left(\frac{x \cdot y}{t\_0} + \frac{{x}^{2} \cdot t\_1}{t\_0}\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 + \frac{-1}{\frac{x}{124074.40615218398 - y}}}{x} - 101.7851458539211}{x}\right)\\
\end{array}
\end{array}
if (/.f64 (*.f64 (-.f64 x #s(literal 2 binary64)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x #s(literal 104109730557/25000000000 binary64)) #s(literal 393497462077/5000000000 binary64)) x) #s(literal 4297481763/31250000 binary64)) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x #s(literal 216700011257/5000000000 binary64)) x) #s(literal 263505074721/1000000000 binary64)) x) #s(literal 156699607947/500000000 binary64)) x) #s(literal 23533438303/500000000 binary64))) < 2e297Initial program 95.5%
associate-/l*98.1%
sub-neg98.1%
metadata-eval98.1%
fma-define98.1%
fma-define98.1%
fma-define98.1%
fma-define98.1%
fma-define98.1%
fma-define98.1%
fma-define98.1%
Simplified98.1%
Taylor expanded in y around 0 98.1%
if 2e297 < (/.f64 (*.f64 (-.f64 x #s(literal 2 binary64)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x #s(literal 104109730557/25000000000 binary64)) #s(literal 393497462077/5000000000 binary64)) x) #s(literal 4297481763/31250000 binary64)) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x #s(literal 216700011257/5000000000 binary64)) x) #s(literal 263505074721/1000000000 binary64)) x) #s(literal 156699607947/500000000 binary64)) x) #s(literal 23533438303/500000000 binary64))) Initial program 0.2%
associate-/l*1.8%
sub-neg1.8%
metadata-eval1.8%
fma-define1.8%
fma-define1.8%
fma-define1.8%
fma-define1.8%
fma-define1.8%
fma-define1.8%
fma-define1.8%
Simplified1.8%
Taylor expanded in x around -inf 98.3%
mul-1-neg98.3%
unsub-neg98.3%
mul-1-neg98.3%
unsub-neg98.3%
mul-1-neg98.3%
unsub-neg98.3%
neg-mul-198.3%
unsub-neg98.3%
Simplified98.3%
clear-num98.3%
inv-pow98.3%
Applied egg-rr98.3%
unpow-198.3%
Simplified98.3%
Final simplification98.2%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(/
(*
(- x 2.0)
(+
(*
x
(+
y
(*
x
(+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))))
z))
(+
(*
x
(+
(* x (+ (* x (+ x 43.3400022514)) 263.505074721))
313.399215894))
47.066876606))))
(if (<= t_0 (- INFINITY))
(*
(+ x -2.0)
(+
4.16438922228
(/
(-
(* (- 3451.550173699799 (/ (- 124074.40615218398 y) x)) (/ 1.0 x))
101.7851458539211)
x)))
(if (<= t_0 2e+297)
t_0
(*
(+ x -2.0)
(+
4.16438922228
(/
(-
(/ (+ 3451.550173699799 (/ -1.0 (/ x (- 124074.40615218398 y)))) x)
101.7851458539211)
x)))))))
double code(double x, double y, double z) {
double t_0 = ((x - 2.0) * ((x * (y + (x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)))) + z)) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606);
double tmp;
if (t_0 <= -((double) INFINITY)) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - y) / x)) * (1.0 / x)) - 101.7851458539211) / x));
} else if (t_0 <= 2e+297) {
tmp = t_0;
} else {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + (-1.0 / (x / (124074.40615218398 - y)))) / x) - 101.7851458539211) / x));
}
return tmp;
}
public static double code(double x, double y, double z) {
double t_0 = ((x - 2.0) * ((x * (y + (x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)))) + z)) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606);
double tmp;
if (t_0 <= -Double.POSITIVE_INFINITY) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - y) / x)) * (1.0 / x)) - 101.7851458539211) / x));
} else if (t_0 <= 2e+297) {
tmp = t_0;
} else {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + (-1.0 / (x / (124074.40615218398 - y)))) / x) - 101.7851458539211) / x));
}
return tmp;
}
def code(x, y, z): t_0 = ((x - 2.0) * ((x * (y + (x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)))) + z)) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) tmp = 0 if t_0 <= -math.inf: tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - y) / x)) * (1.0 / x)) - 101.7851458539211) / x)) elif t_0 <= 2e+297: tmp = t_0 else: tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + (-1.0 / (x / (124074.40615218398 - y)))) / x) - 101.7851458539211) / x)) return tmp
function code(x, y, z) t_0 = Float64(Float64(Float64(x - 2.0) * Float64(Float64(x * Float64(y + Float64(x * Float64(Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)) + 137.519416416)))) + z)) / Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) tmp = 0.0 if (t_0 <= Float64(-Inf)) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 - Float64(Float64(124074.40615218398 - y) / x)) * Float64(1.0 / x)) - 101.7851458539211) / x))); elseif (t_0 <= 2e+297) tmp = t_0; else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(-1.0 / Float64(x / Float64(124074.40615218398 - y)))) / x) - 101.7851458539211) / x))); end return tmp end
function tmp_2 = code(x, y, z) t_0 = ((x - 2.0) * ((x * (y + (x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)))) + z)) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606); tmp = 0.0; if (t_0 <= -Inf) tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - y) / x)) * (1.0 / x)) - 101.7851458539211) / x)); elseif (t_0 <= 2e+297) tmp = t_0; else tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + (-1.0 / (x / (124074.40615218398 - y)))) / x) - 101.7851458539211) / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(x * N[(y + N[(x * N[(N[(x * N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision]), $MachinePrecision] + 137.519416416), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$0, (-Infinity)], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 - N[(N[(124074.40615218398 - y), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] * N[(1.0 / x), $MachinePrecision]), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$0, 2e+297], t$95$0, N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 + N[(-1.0 / N[(x / N[(124074.40615218398 - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{\left(x - 2\right) \cdot \left(x \cdot \left(y + x \cdot \left(x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right) + 137.519416416\right)\right) + z\right)}{x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606}\\
\mathbf{if}\;t\_0 \leq -\infty:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\left(3451.550173699799 - \frac{124074.40615218398 - y}{x}\right) \cdot \frac{1}{x} - 101.7851458539211}{x}\right)\\
\mathbf{elif}\;t\_0 \leq 2 \cdot 10^{+297}:\\
\;\;\;\;t\_0\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 + \frac{-1}{\frac{x}{124074.40615218398 - y}}}{x} - 101.7851458539211}{x}\right)\\
\end{array}
\end{array}
if (/.f64 (*.f64 (-.f64 x #s(literal 2 binary64)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x #s(literal 104109730557/25000000000 binary64)) #s(literal 393497462077/5000000000 binary64)) x) #s(literal 4297481763/31250000 binary64)) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x #s(literal 216700011257/5000000000 binary64)) x) #s(literal 263505074721/1000000000 binary64)) x) #s(literal 156699607947/500000000 binary64)) x) #s(literal 23533438303/500000000 binary64))) < -inf.0Initial program 4.3%
associate-/l*67.1%
sub-neg67.1%
metadata-eval67.1%
fma-define67.1%
fma-define67.1%
fma-define67.1%
fma-define67.1%
fma-define67.1%
fma-define67.1%
fma-define67.1%
Simplified67.1%
Taylor expanded in x around -inf 82.5%
mul-1-neg82.5%
unsub-neg82.5%
mul-1-neg82.5%
unsub-neg82.5%
mul-1-neg82.5%
unsub-neg82.5%
neg-mul-182.5%
unsub-neg82.5%
Simplified82.5%
div-inv82.7%
Applied egg-rr82.7%
if -inf.0 < (/.f64 (*.f64 (-.f64 x #s(literal 2 binary64)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x #s(literal 104109730557/25000000000 binary64)) #s(literal 393497462077/5000000000 binary64)) x) #s(literal 4297481763/31250000 binary64)) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x #s(literal 216700011257/5000000000 binary64)) x) #s(literal 263505074721/1000000000 binary64)) x) #s(literal 156699607947/500000000 binary64)) x) #s(literal 23533438303/500000000 binary64))) < 2e297Initial program 99.5%
if 2e297 < (/.f64 (*.f64 (-.f64 x #s(literal 2 binary64)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x #s(literal 104109730557/25000000000 binary64)) #s(literal 393497462077/5000000000 binary64)) x) #s(literal 4297481763/31250000 binary64)) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x #s(literal 216700011257/5000000000 binary64)) x) #s(literal 263505074721/1000000000 binary64)) x) #s(literal 156699607947/500000000 binary64)) x) #s(literal 23533438303/500000000 binary64))) Initial program 0.2%
associate-/l*1.8%
sub-neg1.8%
metadata-eval1.8%
fma-define1.8%
fma-define1.8%
fma-define1.8%
fma-define1.8%
fma-define1.8%
fma-define1.8%
fma-define1.8%
Simplified1.8%
Taylor expanded in x around -inf 98.3%
mul-1-neg98.3%
unsub-neg98.3%
mul-1-neg98.3%
unsub-neg98.3%
mul-1-neg98.3%
unsub-neg98.3%
neg-mul-198.3%
unsub-neg98.3%
Simplified98.3%
clear-num98.3%
inv-pow98.3%
Applied egg-rr98.3%
unpow-198.3%
Simplified98.3%
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
(+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))))))
(if (<= (/ (* (- x 2.0) (+ t_1 z)) t_0) 2e+297)
(* (+ x -2.0) (+ (/ z t_0) (/ t_1 t_0)))
(*
(+ x -2.0)
(+
4.16438922228
(/
(-
(/ (+ 3451.550173699799 (/ -1.0 (/ x (- 124074.40615218398 y)))) x)
101.7851458539211)
x))))))
double code(double x, double y, double z) {
double t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606;
double t_1 = x * (y + (x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)));
double tmp;
if ((((x - 2.0) * (t_1 + z)) / t_0) <= 2e+297) {
tmp = (x + -2.0) * ((z / t_0) + (t_1 / t_0));
} else {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + (-1.0 / (x / (124074.40615218398 - y)))) / x) - 101.7851458539211) / x));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: 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 * ((x * ((x * 4.16438922228d0) + 78.6994924154d0)) + 137.519416416d0)))
if ((((x - 2.0d0) * (t_1 + z)) / t_0) <= 2d+297) then
tmp = (x + (-2.0d0)) * ((z / t_0) + (t_1 / t_0))
else
tmp = (x + (-2.0d0)) * (4.16438922228d0 + ((((3451.550173699799d0 + ((-1.0d0) / (x / (124074.40615218398d0 - y)))) / x) - 101.7851458539211d0) / 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 = x * (y + (x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)));
double tmp;
if ((((x - 2.0) * (t_1 + z)) / t_0) <= 2e+297) {
tmp = (x + -2.0) * ((z / t_0) + (t_1 / t_0));
} else {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + (-1.0 / (x / (124074.40615218398 - y)))) / x) - 101.7851458539211) / x));
}
return tmp;
}
def code(x, y, z): t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606 t_1 = x * (y + (x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416))) tmp = 0 if (((x - 2.0) * (t_1 + z)) / t_0) <= 2e+297: tmp = (x + -2.0) * ((z / t_0) + (t_1 / t_0)) else: tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + (-1.0 / (x / (124074.40615218398 - y)))) / x) - 101.7851458539211) / x)) return tmp
function code(x, y, z) t_0 = Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) t_1 = Float64(x * Float64(y + Float64(x * Float64(Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)) + 137.519416416)))) tmp = 0.0 if (Float64(Float64(Float64(x - 2.0) * Float64(t_1 + z)) / t_0) <= 2e+297) tmp = Float64(Float64(x + -2.0) * Float64(Float64(z / t_0) + Float64(t_1 / t_0))); else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(-1.0 / Float64(x / Float64(124074.40615218398 - y)))) / x) - 101.7851458539211) / x))); end return tmp end
function tmp_2 = code(x, y, z) t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606; t_1 = x * (y + (x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416))); tmp = 0.0; if ((((x - 2.0) * (t_1 + z)) / t_0) <= 2e+297) tmp = (x + -2.0) * ((z / t_0) + (t_1 / t_0)); else tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + (-1.0 / (x / (124074.40615218398 - y)))) / x) - 101.7851458539211) / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]}, Block[{t$95$1 = N[(x * N[(y + N[(x * N[(N[(x * N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision]), $MachinePrecision] + 137.519416416), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(N[(N[(x - 2.0), $MachinePrecision] * N[(t$95$1 + z), $MachinePrecision]), $MachinePrecision] / t$95$0), $MachinePrecision], 2e+297], 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] * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 + N[(-1.0 / N[(x / N[(124074.40615218398 - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606\\
t_1 := x \cdot \left(y + x \cdot \left(x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right) + 137.519416416\right)\right)\\
\mathbf{if}\;\frac{\left(x - 2\right) \cdot \left(t\_1 + z\right)}{t\_0} \leq 2 \cdot 10^{+297}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(\frac{z}{t\_0} + \frac{t\_1}{t\_0}\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 + \frac{-1}{\frac{x}{124074.40615218398 - y}}}{x} - 101.7851458539211}{x}\right)\\
\end{array}
\end{array}
if (/.f64 (*.f64 (-.f64 x #s(literal 2 binary64)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x #s(literal 104109730557/25000000000 binary64)) #s(literal 393497462077/5000000000 binary64)) x) #s(literal 4297481763/31250000 binary64)) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x #s(literal 216700011257/5000000000 binary64)) x) #s(literal 263505074721/1000000000 binary64)) x) #s(literal 156699607947/500000000 binary64)) x) #s(literal 23533438303/500000000 binary64))) < 2e297Initial program 95.5%
associate-/l*98.1%
sub-neg98.1%
metadata-eval98.1%
fma-define98.1%
fma-define98.1%
fma-define98.1%
fma-define98.1%
fma-define98.1%
fma-define98.1%
fma-define98.1%
Simplified98.1%
Taylor expanded in z around 0 98.1%
if 2e297 < (/.f64 (*.f64 (-.f64 x #s(literal 2 binary64)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x #s(literal 104109730557/25000000000 binary64)) #s(literal 393497462077/5000000000 binary64)) x) #s(literal 4297481763/31250000 binary64)) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x #s(literal 216700011257/5000000000 binary64)) x) #s(literal 263505074721/1000000000 binary64)) x) #s(literal 156699607947/500000000 binary64)) x) #s(literal 23533438303/500000000 binary64))) Initial program 0.2%
associate-/l*1.8%
sub-neg1.8%
metadata-eval1.8%
fma-define1.8%
fma-define1.8%
fma-define1.8%
fma-define1.8%
fma-define1.8%
fma-define1.8%
fma-define1.8%
Simplified1.8%
Taylor expanded in x around -inf 98.3%
mul-1-neg98.3%
unsub-neg98.3%
mul-1-neg98.3%
unsub-neg98.3%
mul-1-neg98.3%
unsub-neg98.3%
neg-mul-198.3%
unsub-neg98.3%
Simplified98.3%
clear-num98.3%
inv-pow98.3%
Applied egg-rr98.3%
unpow-198.3%
Simplified98.3%
Final simplification98.2%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606)))
(if (<= x -1.25e+27)
(*
(+ x -2.0)
(+
4.16438922228
(/
(-
(* (- 3451.550173699799 (/ (- 124074.40615218398 y) x)) (/ 1.0 x))
101.7851458539211)
x)))
(if (<= x 2150000000000.0)
(/ (* (- x 2.0) (+ z (* x (+ y (* x 137.519416416))))) t_0)
(*
(+ x -2.0)
(+ (/ z t_0) (- 4.16438922228 (/ 101.7851458539211 x))))))))
double code(double x, double y, double z) {
double t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606;
double tmp;
if (x <= -1.25e+27) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - y) / x)) * (1.0 / x)) - 101.7851458539211) / x));
} else if (x <= 2150000000000.0) {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / t_0;
} else {
tmp = (x + -2.0) * ((z / t_0) + (4.16438922228 - (101.7851458539211 / x)));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = (x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0
if (x <= (-1.25d+27)) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + ((((3451.550173699799d0 - ((124074.40615218398d0 - y) / x)) * (1.0d0 / x)) - 101.7851458539211d0) / x))
else if (x <= 2150000000000.0d0) then
tmp = ((x - 2.0d0) * (z + (x * (y + (x * 137.519416416d0))))) / t_0
else
tmp = (x + (-2.0d0)) * ((z / t_0) + (4.16438922228d0 - (101.7851458539211d0 / 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.25e+27) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - y) / x)) * (1.0 / x)) - 101.7851458539211) / x));
} else if (x <= 2150000000000.0) {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / t_0;
} else {
tmp = (x + -2.0) * ((z / t_0) + (4.16438922228 - (101.7851458539211 / 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.25e+27: tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - y) / x)) * (1.0 / x)) - 101.7851458539211) / x)) elif x <= 2150000000000.0: tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / t_0 else: tmp = (x + -2.0) * ((z / t_0) + (4.16438922228 - (101.7851458539211 / x))) return tmp
function code(x, y, z) t_0 = Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) tmp = 0.0 if (x <= -1.25e+27) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 - Float64(Float64(124074.40615218398 - y) / x)) * Float64(1.0 / x)) - 101.7851458539211) / x))); elseif (x <= 2150000000000.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(Float64(z / t_0) + Float64(4.16438922228 - Float64(101.7851458539211 / x)))); end return tmp end
function tmp_2 = code(x, y, z) t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606; tmp = 0.0; if (x <= -1.25e+27) tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - y) / x)) * (1.0 / x)) - 101.7851458539211) / x)); elseif (x <= 2150000000000.0) tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / t_0; else tmp = (x + -2.0) * ((z / t_0) + (4.16438922228 - (101.7851458539211 / x))); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]}, If[LessEqual[x, -1.25e+27], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 - N[(N[(124074.40615218398 - y), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] * N[(1.0 / x), $MachinePrecision]), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2150000000000.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[(N[(z / t$95$0), $MachinePrecision] + N[(4.16438922228 - N[(101.7851458539211 / x), $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.25 \cdot 10^{+27}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\left(3451.550173699799 - \frac{124074.40615218398 - y}{x}\right) \cdot \frac{1}{x} - 101.7851458539211}{x}\right)\\
\mathbf{elif}\;x \leq 2150000000000:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot \left(y + x \cdot 137.519416416\right)\right)}{t\_0}\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(\frac{z}{t\_0} + \left(4.16438922228 - \frac{101.7851458539211}{x}\right)\right)\\
\end{array}
\end{array}
if x < -1.24999999999999995e27Initial program 7.7%
associate-/l*12.8%
sub-neg12.8%
metadata-eval12.8%
fma-define12.8%
fma-define12.8%
fma-define12.8%
fma-define12.8%
fma-define12.8%
fma-define12.8%
fma-define12.8%
Simplified12.8%
Taylor expanded in x around -inf 97.4%
mul-1-neg97.4%
unsub-neg97.4%
mul-1-neg97.4%
unsub-neg97.4%
mul-1-neg97.4%
unsub-neg97.4%
neg-mul-197.4%
unsub-neg97.4%
Simplified97.4%
div-inv97.5%
Applied egg-rr97.5%
if -1.24999999999999995e27 < x < 2.15e12Initial program 99.5%
Taylor expanded in x around 0 98.1%
*-commutative98.1%
Simplified98.1%
if 2.15e12 < x Initial program 10.6%
associate-/l*14.3%
sub-neg14.3%
metadata-eval14.3%
fma-define14.3%
fma-define14.3%
fma-define14.3%
fma-define14.3%
fma-define14.3%
fma-define14.3%
fma-define14.3%
Simplified14.3%
Taylor expanded in z around 0 14.4%
Taylor expanded in x around inf 95.3%
associate-*r/95.3%
metadata-eval95.3%
Simplified95.3%
Final simplification97.1%
(FPCore (x y z)
:precision binary64
(if (or (<= x -0.00048) (not (<= x 0.0009)))
(*
(+ x -2.0)
(+
(/
z
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))
(- 4.16438922228 (/ 101.7851458539211 x))))
(*
(+ x -2.0)
(-
(* z 0.0212463641547976)
(*
x
(+
(* z 0.14147091005106402)
(-
(* x (- (* z -0.8230490379027244) 2.9217875995295866))
(* y 0.0212463641547976))))))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -0.00048) || !(x <= 0.0009)) {
tmp = (x + -2.0) * ((z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) + (4.16438922228 - (101.7851458539211 / x)));
} else {
tmp = (x + -2.0) * ((z * 0.0212463641547976) - (x * ((z * 0.14147091005106402) + ((x * ((z * -0.8230490379027244) - 2.9217875995295866)) - (y * 0.0212463641547976)))));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((x <= (-0.00048d0)) .or. (.not. (x <= 0.0009d0))) then
tmp = (x + (-2.0d0)) * ((z / ((x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0)) + (4.16438922228d0 - (101.7851458539211d0 / x)))
else
tmp = (x + (-2.0d0)) * ((z * 0.0212463641547976d0) - (x * ((z * 0.14147091005106402d0) + ((x * ((z * (-0.8230490379027244d0)) - 2.9217875995295866d0)) - (y * 0.0212463641547976d0)))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -0.00048) || !(x <= 0.0009)) {
tmp = (x + -2.0) * ((z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) + (4.16438922228 - (101.7851458539211 / x)));
} else {
tmp = (x + -2.0) * ((z * 0.0212463641547976) - (x * ((z * 0.14147091005106402) + ((x * ((z * -0.8230490379027244) - 2.9217875995295866)) - (y * 0.0212463641547976)))));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -0.00048) or not (x <= 0.0009): tmp = (x + -2.0) * ((z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) + (4.16438922228 - (101.7851458539211 / x))) else: tmp = (x + -2.0) * ((z * 0.0212463641547976) - (x * ((z * 0.14147091005106402) + ((x * ((z * -0.8230490379027244) - 2.9217875995295866)) - (y * 0.0212463641547976))))) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -0.00048) || !(x <= 0.0009)) tmp = Float64(Float64(x + -2.0) * Float64(Float64(z / Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) + Float64(4.16438922228 - Float64(101.7851458539211 / x)))); else tmp = Float64(Float64(x + -2.0) * Float64(Float64(z * 0.0212463641547976) - Float64(x * Float64(Float64(z * 0.14147091005106402) + Float64(Float64(x * Float64(Float64(z * -0.8230490379027244) - 2.9217875995295866)) - Float64(y * 0.0212463641547976)))))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -0.00048) || ~((x <= 0.0009))) tmp = (x + -2.0) * ((z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) + (4.16438922228 - (101.7851458539211 / x))); else tmp = (x + -2.0) * ((z * 0.0212463641547976) - (x * ((z * 0.14147091005106402) + ((x * ((z * -0.8230490379027244) - 2.9217875995295866)) - (y * 0.0212463641547976))))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -0.00048], N[Not[LessEqual[x, 0.0009]], $MachinePrecision]], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z / N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision] + N[(4.16438922228 - N[(101.7851458539211 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z * 0.0212463641547976), $MachinePrecision] - N[(x * N[(N[(z * 0.14147091005106402), $MachinePrecision] + N[(N[(x * N[(N[(z * -0.8230490379027244), $MachinePrecision] - 2.9217875995295866), $MachinePrecision]), $MachinePrecision] - N[(y * 0.0212463641547976), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -0.00048 \lor \neg \left(x \leq 0.0009\right):\\
\;\;\;\;\left(x + -2\right) \cdot \left(\frac{z}{x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606} + \left(4.16438922228 - \frac{101.7851458539211}{x}\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976 - x \cdot \left(z \cdot 0.14147091005106402 + \left(x \cdot \left(z \cdot -0.8230490379027244 - 2.9217875995295866\right) - y \cdot 0.0212463641547976\right)\right)\right)\\
\end{array}
\end{array}
if x < -4.80000000000000012e-4 or 8.9999999999999998e-4 < x Initial program 16.3%
associate-/l*20.3%
sub-neg20.3%
metadata-eval20.3%
fma-define20.3%
fma-define20.3%
fma-define20.3%
fma-define20.3%
fma-define20.3%
fma-define20.3%
fma-define20.3%
Simplified20.3%
Taylor expanded in z around 0 20.3%
Taylor expanded in x around inf 93.4%
associate-*r/93.4%
metadata-eval93.4%
Simplified93.4%
if -4.80000000000000012e-4 < x < 8.9999999999999998e-4Initial program 99.6%
associate-/l*99.6%
sub-neg99.6%
metadata-eval99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
Simplified99.6%
Taylor expanded in x around 0 99.0%
Taylor expanded in y around 0 98.7%
distribute-rgt-out98.7%
metadata-eval98.7%
Simplified98.7%
Final simplification95.7%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (* x (+ x 43.3400022514))))
(if (<= x -0.03)
(*
(+ x -2.0)
(+
4.16438922228
(/
z
(+
47.066876606
(* x (+ 313.399215894 (+ (* x 263.505074721) (* x t_0))))))))
(if (<= x 0.00038)
(*
(+ x -2.0)
(-
(* z 0.0212463641547976)
(*
x
(+
(* z 0.14147091005106402)
(-
(* x (- (* z -0.8230490379027244) 2.9217875995295866))
(* y 0.0212463641547976))))))
(*
(* x (- 1.0 (/ 2.0 x)))
(+
4.16438922228
(/
z
(+
(* x (+ (* x (+ t_0 263.505074721)) 313.399215894))
47.066876606))))))))
double code(double x, double y, double z) {
double t_0 = x * (x + 43.3400022514);
double tmp;
if (x <= -0.03) {
tmp = (x + -2.0) * (4.16438922228 + (z / (47.066876606 + (x * (313.399215894 + ((x * 263.505074721) + (x * t_0)))))));
} else if (x <= 0.00038) {
tmp = (x + -2.0) * ((z * 0.0212463641547976) - (x * ((z * 0.14147091005106402) + ((x * ((z * -0.8230490379027244) - 2.9217875995295866)) - (y * 0.0212463641547976)))));
} else {
tmp = (x * (1.0 - (2.0 / x))) * (4.16438922228 + (z / ((x * ((x * (t_0 + 263.505074721)) + 313.399215894)) + 47.066876606)));
}
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 + 43.3400022514d0)
if (x <= (-0.03d0)) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + (z / (47.066876606d0 + (x * (313.399215894d0 + ((x * 263.505074721d0) + (x * t_0)))))))
else if (x <= 0.00038d0) then
tmp = (x + (-2.0d0)) * ((z * 0.0212463641547976d0) - (x * ((z * 0.14147091005106402d0) + ((x * ((z * (-0.8230490379027244d0)) - 2.9217875995295866d0)) - (y * 0.0212463641547976d0)))))
else
tmp = (x * (1.0d0 - (2.0d0 / x))) * (4.16438922228d0 + (z / ((x * ((x * (t_0 + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0)))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = x * (x + 43.3400022514);
double tmp;
if (x <= -0.03) {
tmp = (x + -2.0) * (4.16438922228 + (z / (47.066876606 + (x * (313.399215894 + ((x * 263.505074721) + (x * t_0)))))));
} else if (x <= 0.00038) {
tmp = (x + -2.0) * ((z * 0.0212463641547976) - (x * ((z * 0.14147091005106402) + ((x * ((z * -0.8230490379027244) - 2.9217875995295866)) - (y * 0.0212463641547976)))));
} else {
tmp = (x * (1.0 - (2.0 / x))) * (4.16438922228 + (z / ((x * ((x * (t_0 + 263.505074721)) + 313.399215894)) + 47.066876606)));
}
return tmp;
}
def code(x, y, z): t_0 = x * (x + 43.3400022514) tmp = 0 if x <= -0.03: tmp = (x + -2.0) * (4.16438922228 + (z / (47.066876606 + (x * (313.399215894 + ((x * 263.505074721) + (x * t_0))))))) elif x <= 0.00038: tmp = (x + -2.0) * ((z * 0.0212463641547976) - (x * ((z * 0.14147091005106402) + ((x * ((z * -0.8230490379027244) - 2.9217875995295866)) - (y * 0.0212463641547976))))) else: tmp = (x * (1.0 - (2.0 / x))) * (4.16438922228 + (z / ((x * ((x * (t_0 + 263.505074721)) + 313.399215894)) + 47.066876606))) return tmp
function code(x, y, z) t_0 = Float64(x * Float64(x + 43.3400022514)) tmp = 0.0 if (x <= -0.03) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(z / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(Float64(x * 263.505074721) + Float64(x * t_0)))))))); elseif (x <= 0.00038) tmp = Float64(Float64(x + -2.0) * Float64(Float64(z * 0.0212463641547976) - Float64(x * Float64(Float64(z * 0.14147091005106402) + Float64(Float64(x * Float64(Float64(z * -0.8230490379027244) - 2.9217875995295866)) - Float64(y * 0.0212463641547976)))))); else tmp = Float64(Float64(x * Float64(1.0 - Float64(2.0 / x))) * Float64(4.16438922228 + Float64(z / Float64(Float64(x * Float64(Float64(x * Float64(t_0 + 263.505074721)) + 313.399215894)) + 47.066876606)))); end return tmp end
function tmp_2 = code(x, y, z) t_0 = x * (x + 43.3400022514); tmp = 0.0; if (x <= -0.03) tmp = (x + -2.0) * (4.16438922228 + (z / (47.066876606 + (x * (313.399215894 + ((x * 263.505074721) + (x * t_0))))))); elseif (x <= 0.00038) tmp = (x + -2.0) * ((z * 0.0212463641547976) - (x * ((z * 0.14147091005106402) + ((x * ((z * -0.8230490379027244) - 2.9217875995295866)) - (y * 0.0212463641547976))))); else tmp = (x * (1.0 - (2.0 / x))) * (4.16438922228 + (z / ((x * ((x * (t_0 + 263.505074721)) + 313.399215894)) + 47.066876606))); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -0.03], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(z / N[(47.066876606 + N[(x * N[(313.399215894 + N[(N[(x * 263.505074721), $MachinePrecision] + N[(x * t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 0.00038], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z * 0.0212463641547976), $MachinePrecision] - N[(x * N[(N[(z * 0.14147091005106402), $MachinePrecision] + N[(N[(x * N[(N[(z * -0.8230490379027244), $MachinePrecision] - 2.9217875995295866), $MachinePrecision]), $MachinePrecision] - N[(y * 0.0212463641547976), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x * N[(1.0 - N[(2.0 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(4.16438922228 + N[(z / N[(N[(x * N[(N[(x * N[(t$95$0 + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(x + 43.3400022514\right)\\
\mathbf{if}\;x \leq -0.03:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{z}{47.066876606 + x \cdot \left(313.399215894 + \left(x \cdot 263.505074721 + x \cdot t\_0\right)\right)}\right)\\
\mathbf{elif}\;x \leq 0.00038:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976 - x \cdot \left(z \cdot 0.14147091005106402 + \left(x \cdot \left(z \cdot -0.8230490379027244 - 2.9217875995295866\right) - y \cdot 0.0212463641547976\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x \cdot \left(1 - \frac{2}{x}\right)\right) \cdot \left(4.16438922228 + \frac{z}{x \cdot \left(x \cdot \left(t\_0 + 263.505074721\right) + 313.399215894\right) + 47.066876606}\right)\\
\end{array}
\end{array}
if x < -0.029999999999999999Initial program 17.9%
associate-/l*22.5%
sub-neg22.5%
metadata-eval22.5%
fma-define22.5%
fma-define22.5%
fma-define22.5%
fma-define22.5%
fma-define22.5%
fma-define22.5%
fma-define22.5%
Simplified22.5%
Taylor expanded in z around 0 22.5%
Taylor expanded in x around inf 91.5%
distribute-lft-in91.6%
+-commutative91.6%
Applied egg-rr91.6%
if -0.029999999999999999 < x < 3.8000000000000002e-4Initial program 99.6%
associate-/l*99.6%
sub-neg99.6%
metadata-eval99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
Simplified99.6%
Taylor expanded in x around 0 99.0%
Taylor expanded in y around 0 98.7%
distribute-rgt-out98.7%
metadata-eval98.7%
Simplified98.7%
if 3.8000000000000002e-4 < x Initial program 15.0%
associate-/l*18.6%
sub-neg18.6%
metadata-eval18.6%
fma-define18.6%
fma-define18.6%
fma-define18.6%
fma-define18.6%
fma-define18.6%
fma-define18.6%
fma-define18.6%
Simplified18.6%
Taylor expanded in z around 0 18.6%
Taylor expanded in x around inf 94.0%
Taylor expanded in x around inf 94.0%
associate-*r/94.0%
metadata-eval94.0%
Simplified94.0%
Final simplification95.5%
(FPCore (x y z)
:precision binary64
(if (or (<= x -0.00025) (not (<= x 0.00023)))
(*
(+ x -2.0)
(+
4.16438922228
(/
z
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))))
(*
(+ x -2.0)
(-
(* z 0.0212463641547976)
(*
x
(+
(* z 0.14147091005106402)
(-
(* x (- (* z -0.8230490379027244) 2.9217875995295866))
(* y 0.0212463641547976))))))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -0.00025) || !(x <= 0.00023)) {
tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)));
} else {
tmp = (x + -2.0) * ((z * 0.0212463641547976) - (x * ((z * 0.14147091005106402) + ((x * ((z * -0.8230490379027244) - 2.9217875995295866)) - (y * 0.0212463641547976)))));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((x <= (-0.00025d0)) .or. (.not. (x <= 0.00023d0))) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + (z / ((x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0)))
else
tmp = (x + (-2.0d0)) * ((z * 0.0212463641547976d0) - (x * ((z * 0.14147091005106402d0) + ((x * ((z * (-0.8230490379027244d0)) - 2.9217875995295866d0)) - (y * 0.0212463641547976d0)))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -0.00025) || !(x <= 0.00023)) {
tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)));
} else {
tmp = (x + -2.0) * ((z * 0.0212463641547976) - (x * ((z * 0.14147091005106402) + ((x * ((z * -0.8230490379027244) - 2.9217875995295866)) - (y * 0.0212463641547976)))));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -0.00025) or not (x <= 0.00023): tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606))) else: tmp = (x + -2.0) * ((z * 0.0212463641547976) - (x * ((z * 0.14147091005106402) + ((x * ((z * -0.8230490379027244) - 2.9217875995295866)) - (y * 0.0212463641547976))))) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -0.00025) || !(x <= 0.00023)) 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)))); else tmp = Float64(Float64(x + -2.0) * Float64(Float64(z * 0.0212463641547976) - Float64(x * Float64(Float64(z * 0.14147091005106402) + Float64(Float64(x * Float64(Float64(z * -0.8230490379027244) - 2.9217875995295866)) - Float64(y * 0.0212463641547976)))))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -0.00025) || ~((x <= 0.00023))) tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606))); else tmp = (x + -2.0) * ((z * 0.0212463641547976) - (x * ((z * 0.14147091005106402) + ((x * ((z * -0.8230490379027244) - 2.9217875995295866)) - (y * 0.0212463641547976))))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -0.00025], N[Not[LessEqual[x, 0.00023]], $MachinePrecision]], 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], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z * 0.0212463641547976), $MachinePrecision] - N[(x * N[(N[(z * 0.14147091005106402), $MachinePrecision] + N[(N[(x * N[(N[(z * -0.8230490379027244), $MachinePrecision] - 2.9217875995295866), $MachinePrecision]), $MachinePrecision] - N[(y * 0.0212463641547976), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -0.00025 \lor \neg \left(x \leq 0.00023\right):\\
\;\;\;\;\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{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976 - x \cdot \left(z \cdot 0.14147091005106402 + \left(x \cdot \left(z \cdot -0.8230490379027244 - 2.9217875995295866\right) - y \cdot 0.0212463641547976\right)\right)\right)\\
\end{array}
\end{array}
if x < -2.5000000000000001e-4 or 2.3000000000000001e-4 < x Initial program 16.3%
associate-/l*20.3%
sub-neg20.3%
metadata-eval20.3%
fma-define20.3%
fma-define20.3%
fma-define20.3%
fma-define20.3%
fma-define20.3%
fma-define20.3%
fma-define20.3%
Simplified20.3%
Taylor expanded in z around 0 20.3%
Taylor expanded in x around inf 92.9%
if -2.5000000000000001e-4 < x < 2.3000000000000001e-4Initial program 99.6%
associate-/l*99.6%
sub-neg99.6%
metadata-eval99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
Simplified99.6%
Taylor expanded in x around 0 99.0%
Taylor expanded in y around 0 98.7%
distribute-rgt-out98.7%
metadata-eval98.7%
Simplified98.7%
Final simplification95.5%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (* x (+ x 43.3400022514))))
(if (<= x -0.0017)
(*
(+ x -2.0)
(+
4.16438922228
(/
z
(+
47.066876606
(* x (+ 313.399215894 (+ (* x 263.505074721) (* x t_0))))))))
(if (<= x 0.00041)
(*
(+ x -2.0)
(-
(* z 0.0212463641547976)
(*
x
(+
(* z 0.14147091005106402)
(-
(* x (- (* z -0.8230490379027244) 2.9217875995295866))
(* y 0.0212463641547976))))))
(*
(+ x -2.0)
(+
4.16438922228
(/
z
(+
(* x (+ (* x (+ t_0 263.505074721)) 313.399215894))
47.066876606))))))))
double code(double x, double y, double z) {
double t_0 = x * (x + 43.3400022514);
double tmp;
if (x <= -0.0017) {
tmp = (x + -2.0) * (4.16438922228 + (z / (47.066876606 + (x * (313.399215894 + ((x * 263.505074721) + (x * t_0)))))));
} else if (x <= 0.00041) {
tmp = (x + -2.0) * ((z * 0.0212463641547976) - (x * ((z * 0.14147091005106402) + ((x * ((z * -0.8230490379027244) - 2.9217875995295866)) - (y * 0.0212463641547976)))));
} else {
tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * (t_0 + 263.505074721)) + 313.399215894)) + 47.066876606)));
}
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 + 43.3400022514d0)
if (x <= (-0.0017d0)) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + (z / (47.066876606d0 + (x * (313.399215894d0 + ((x * 263.505074721d0) + (x * t_0)))))))
else if (x <= 0.00041d0) then
tmp = (x + (-2.0d0)) * ((z * 0.0212463641547976d0) - (x * ((z * 0.14147091005106402d0) + ((x * ((z * (-0.8230490379027244d0)) - 2.9217875995295866d0)) - (y * 0.0212463641547976d0)))))
else
tmp = (x + (-2.0d0)) * (4.16438922228d0 + (z / ((x * ((x * (t_0 + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0)))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = x * (x + 43.3400022514);
double tmp;
if (x <= -0.0017) {
tmp = (x + -2.0) * (4.16438922228 + (z / (47.066876606 + (x * (313.399215894 + ((x * 263.505074721) + (x * t_0)))))));
} else if (x <= 0.00041) {
tmp = (x + -2.0) * ((z * 0.0212463641547976) - (x * ((z * 0.14147091005106402) + ((x * ((z * -0.8230490379027244) - 2.9217875995295866)) - (y * 0.0212463641547976)))));
} else {
tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * (t_0 + 263.505074721)) + 313.399215894)) + 47.066876606)));
}
return tmp;
}
def code(x, y, z): t_0 = x * (x + 43.3400022514) tmp = 0 if x <= -0.0017: tmp = (x + -2.0) * (4.16438922228 + (z / (47.066876606 + (x * (313.399215894 + ((x * 263.505074721) + (x * t_0))))))) elif x <= 0.00041: tmp = (x + -2.0) * ((z * 0.0212463641547976) - (x * ((z * 0.14147091005106402) + ((x * ((z * -0.8230490379027244) - 2.9217875995295866)) - (y * 0.0212463641547976))))) else: tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * (t_0 + 263.505074721)) + 313.399215894)) + 47.066876606))) return tmp
function code(x, y, z) t_0 = Float64(x * Float64(x + 43.3400022514)) tmp = 0.0 if (x <= -0.0017) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(z / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(Float64(x * 263.505074721) + Float64(x * t_0)))))))); elseif (x <= 0.00041) tmp = Float64(Float64(x + -2.0) * Float64(Float64(z * 0.0212463641547976) - Float64(x * Float64(Float64(z * 0.14147091005106402) + Float64(Float64(x * Float64(Float64(z * -0.8230490379027244) - 2.9217875995295866)) - Float64(y * 0.0212463641547976)))))); else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(z / Float64(Float64(x * Float64(Float64(x * Float64(t_0 + 263.505074721)) + 313.399215894)) + 47.066876606)))); end return tmp end
function tmp_2 = code(x, y, z) t_0 = x * (x + 43.3400022514); tmp = 0.0; if (x <= -0.0017) tmp = (x + -2.0) * (4.16438922228 + (z / (47.066876606 + (x * (313.399215894 + ((x * 263.505074721) + (x * t_0))))))); elseif (x <= 0.00041) tmp = (x + -2.0) * ((z * 0.0212463641547976) - (x * ((z * 0.14147091005106402) + ((x * ((z * -0.8230490379027244) - 2.9217875995295866)) - (y * 0.0212463641547976))))); else tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * (t_0 + 263.505074721)) + 313.399215894)) + 47.066876606))); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -0.0017], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(z / N[(47.066876606 + N[(x * N[(313.399215894 + N[(N[(x * 263.505074721), $MachinePrecision] + N[(x * t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 0.00041], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z * 0.0212463641547976), $MachinePrecision] - N[(x * N[(N[(z * 0.14147091005106402), $MachinePrecision] + N[(N[(x * N[(N[(z * -0.8230490379027244), $MachinePrecision] - 2.9217875995295866), $MachinePrecision]), $MachinePrecision] - N[(y * 0.0212463641547976), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(z / N[(N[(x * N[(N[(x * N[(t$95$0 + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(x + 43.3400022514\right)\\
\mathbf{if}\;x \leq -0.0017:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{z}{47.066876606 + x \cdot \left(313.399215894 + \left(x \cdot 263.505074721 + x \cdot t\_0\right)\right)}\right)\\
\mathbf{elif}\;x \leq 0.00041:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976 - x \cdot \left(z \cdot 0.14147091005106402 + \left(x \cdot \left(z \cdot -0.8230490379027244 - 2.9217875995295866\right) - y \cdot 0.0212463641547976\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{z}{x \cdot \left(x \cdot \left(t\_0 + 263.505074721\right) + 313.399215894\right) + 47.066876606}\right)\\
\end{array}
\end{array}
if x < -0.00169999999999999991Initial program 17.9%
associate-/l*22.5%
sub-neg22.5%
metadata-eval22.5%
fma-define22.5%
fma-define22.5%
fma-define22.5%
fma-define22.5%
fma-define22.5%
fma-define22.5%
fma-define22.5%
Simplified22.5%
Taylor expanded in z around 0 22.5%
Taylor expanded in x around inf 91.5%
distribute-lft-in91.6%
+-commutative91.6%
Applied egg-rr91.6%
if -0.00169999999999999991 < x < 4.0999999999999999e-4Initial program 99.6%
associate-/l*99.6%
sub-neg99.6%
metadata-eval99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
Simplified99.6%
Taylor expanded in x around 0 99.0%
Taylor expanded in y around 0 98.7%
distribute-rgt-out98.7%
metadata-eval98.7%
Simplified98.7%
if 4.0999999999999999e-4 < x Initial program 15.0%
associate-/l*18.6%
sub-neg18.6%
metadata-eval18.6%
fma-define18.6%
fma-define18.6%
fma-define18.6%
fma-define18.6%
fma-define18.6%
fma-define18.6%
fma-define18.6%
Simplified18.6%
Taylor expanded in z around 0 18.6%
Taylor expanded in x around inf 94.0%
Final simplification95.5%
(FPCore (x y z)
:precision binary64
(if (or (<= x -4.6e-8) (not (<= x 7e-29)))
(*
(+ x -2.0)
(+
4.16438922228
(/
z
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))))
(*
(+ x -2.0)
(-
(* z 0.0212463641547976)
(*
x
(-
(* z 0.14147091005106402)
(+ (* y 0.0212463641547976) (* x (* y -0.14147091005106402)))))))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -4.6e-8) || !(x <= 7e-29)) {
tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)));
} else {
tmp = (x + -2.0) * ((z * 0.0212463641547976) - (x * ((z * 0.14147091005106402) - ((y * 0.0212463641547976) + (x * (y * -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 <= (-4.6d-8)) .or. (.not. (x <= 7d-29))) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + (z / ((x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0)))
else
tmp = (x + (-2.0d0)) * ((z * 0.0212463641547976d0) - (x * ((z * 0.14147091005106402d0) - ((y * 0.0212463641547976d0) + (x * (y * (-0.14147091005106402d0)))))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -4.6e-8) || !(x <= 7e-29)) {
tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)));
} else {
tmp = (x + -2.0) * ((z * 0.0212463641547976) - (x * ((z * 0.14147091005106402) - ((y * 0.0212463641547976) + (x * (y * -0.14147091005106402))))));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -4.6e-8) or not (x <= 7e-29): tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606))) else: tmp = (x + -2.0) * ((z * 0.0212463641547976) - (x * ((z * 0.14147091005106402) - ((y * 0.0212463641547976) + (x * (y * -0.14147091005106402)))))) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -4.6e-8) || !(x <= 7e-29)) 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)))); else tmp = Float64(Float64(x + -2.0) * Float64(Float64(z * 0.0212463641547976) - Float64(x * Float64(Float64(z * 0.14147091005106402) - Float64(Float64(y * 0.0212463641547976) + Float64(x * Float64(y * -0.14147091005106402))))))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -4.6e-8) || ~((x <= 7e-29))) tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606))); else tmp = (x + -2.0) * ((z * 0.0212463641547976) - (x * ((z * 0.14147091005106402) - ((y * 0.0212463641547976) + (x * (y * -0.14147091005106402)))))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -4.6e-8], N[Not[LessEqual[x, 7e-29]], $MachinePrecision]], 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], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z * 0.0212463641547976), $MachinePrecision] - N[(x * N[(N[(z * 0.14147091005106402), $MachinePrecision] - N[(N[(y * 0.0212463641547976), $MachinePrecision] + N[(x * N[(y * -0.14147091005106402), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -4.6 \cdot 10^{-8} \lor \neg \left(x \leq 7 \cdot 10^{-29}\right):\\
\;\;\;\;\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{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976 - x \cdot \left(z \cdot 0.14147091005106402 - \left(y \cdot 0.0212463641547976 + x \cdot \left(y \cdot -0.14147091005106402\right)\right)\right)\right)\\
\end{array}
\end{array}
if x < -4.6000000000000002e-8 or 6.9999999999999995e-29 < x Initial program 18.6%
associate-/l*22.5%
sub-neg22.5%
metadata-eval22.5%
fma-define22.5%
fma-define22.4%
fma-define22.4%
fma-define22.4%
fma-define22.4%
fma-define22.4%
fma-define22.4%
Simplified22.4%
Taylor expanded in z around 0 22.5%
Taylor expanded in x around inf 92.5%
if -4.6000000000000002e-8 < x < 6.9999999999999995e-29Initial program 99.6%
associate-/l*99.6%
sub-neg99.6%
metadata-eval99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
Simplified99.6%
Taylor expanded in x around 0 99.4%
Taylor expanded in y around inf 94.3%
*-commutative94.3%
Simplified94.3%
Final simplification93.3%
(FPCore (x y z)
:precision binary64
(if (<= x -11000.0)
(*
(+ x -2.0)
(+
4.16438922228
(/
(-
(* (- 3451.550173699799 (/ (- 124074.40615218398 y) x)) (/ 1.0 x))
101.7851458539211)
x)))
(if (<= x 7e-29)
(*
(+ x -2.0)
(-
(* z 0.0212463641547976)
(*
x
(-
(* z 0.14147091005106402)
(+ (* y 0.0212463641547976) (* x (* y -0.14147091005106402)))))))
(*
(+ x -2.0)
(+
4.16438922228
(/
z
(+
47.066876606
(* x (+ 313.399215894 (* x (+ 263.505074721 (* x x))))))))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -11000.0) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - y) / x)) * (1.0 / x)) - 101.7851458539211) / x));
} else if (x <= 7e-29) {
tmp = (x + -2.0) * ((z * 0.0212463641547976) - (x * ((z * 0.14147091005106402) - ((y * 0.0212463641547976) + (x * (y * -0.14147091005106402))))));
} else {
tmp = (x + -2.0) * (4.16438922228 + (z / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * x))))))));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-11000.0d0)) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + ((((3451.550173699799d0 - ((124074.40615218398d0 - y) / x)) * (1.0d0 / x)) - 101.7851458539211d0) / x))
else if (x <= 7d-29) then
tmp = (x + (-2.0d0)) * ((z * 0.0212463641547976d0) - (x * ((z * 0.14147091005106402d0) - ((y * 0.0212463641547976d0) + (x * (y * (-0.14147091005106402d0)))))))
else
tmp = (x + (-2.0d0)) * (4.16438922228d0 + (z / (47.066876606d0 + (x * (313.399215894d0 + (x * (263.505074721d0 + (x * x))))))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -11000.0) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - y) / x)) * (1.0 / x)) - 101.7851458539211) / x));
} else if (x <= 7e-29) {
tmp = (x + -2.0) * ((z * 0.0212463641547976) - (x * ((z * 0.14147091005106402) - ((y * 0.0212463641547976) + (x * (y * -0.14147091005106402))))));
} else {
tmp = (x + -2.0) * (4.16438922228 + (z / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * x))))))));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -11000.0: tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - y) / x)) * (1.0 / x)) - 101.7851458539211) / x)) elif x <= 7e-29: tmp = (x + -2.0) * ((z * 0.0212463641547976) - (x * ((z * 0.14147091005106402) - ((y * 0.0212463641547976) + (x * (y * -0.14147091005106402)))))) else: tmp = (x + -2.0) * (4.16438922228 + (z / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * x)))))))) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -11000.0) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 - Float64(Float64(124074.40615218398 - y) / x)) * Float64(1.0 / x)) - 101.7851458539211) / x))); elseif (x <= 7e-29) tmp = Float64(Float64(x + -2.0) * Float64(Float64(z * 0.0212463641547976) - Float64(x * Float64(Float64(z * 0.14147091005106402) - Float64(Float64(y * 0.0212463641547976) + Float64(x * Float64(y * -0.14147091005106402))))))); else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(z / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * Float64(263.505074721 + Float64(x * x))))))))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -11000.0) tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - y) / x)) * (1.0 / x)) - 101.7851458539211) / x)); elseif (x <= 7e-29) tmp = (x + -2.0) * ((z * 0.0212463641547976) - (x * ((z * 0.14147091005106402) - ((y * 0.0212463641547976) + (x * (y * -0.14147091005106402)))))); else tmp = (x + -2.0) * (4.16438922228 + (z / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * x)))))))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -11000.0], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 - N[(N[(124074.40615218398 - y), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] * N[(1.0 / x), $MachinePrecision]), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 7e-29], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z * 0.0212463641547976), $MachinePrecision] - N[(x * N[(N[(z * 0.14147091005106402), $MachinePrecision] - N[(N[(y * 0.0212463641547976), $MachinePrecision] + N[(x * N[(y * -0.14147091005106402), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(z / N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * N[(263.505074721 + N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -11000:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\left(3451.550173699799 - \frac{124074.40615218398 - y}{x}\right) \cdot \frac{1}{x} - 101.7851458539211}{x}\right)\\
\mathbf{elif}\;x \leq 7 \cdot 10^{-29}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976 - x \cdot \left(z \cdot 0.14147091005106402 - \left(y \cdot 0.0212463641547976 + x \cdot \left(y \cdot -0.14147091005106402\right)\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{z}{47.066876606 + x \cdot \left(313.399215894 + x \cdot \left(263.505074721 + x \cdot x\right)\right)}\right)\\
\end{array}
\end{array}
if x < -11000Initial program 15.3%
associate-/l*20.0%
sub-neg20.0%
metadata-eval20.0%
fma-define20.0%
fma-define20.0%
fma-define20.0%
fma-define20.0%
fma-define20.0%
fma-define20.0%
fma-define20.0%
Simplified20.0%
Taylor expanded in x around -inf 92.0%
mul-1-neg92.0%
unsub-neg92.0%
mul-1-neg92.0%
unsub-neg92.0%
mul-1-neg92.0%
unsub-neg92.0%
neg-mul-192.0%
unsub-neg92.0%
Simplified92.0%
div-inv92.0%
Applied egg-rr92.0%
if -11000 < x < 6.9999999999999995e-29Initial program 99.6%
associate-/l*99.5%
sub-neg99.5%
metadata-eval99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.6%
fma-define99.6%
fma-define99.6%
Simplified99.6%
Taylor expanded in x around 0 97.8%
Taylor expanded in y around inf 92.8%
*-commutative92.8%
Simplified92.8%
if 6.9999999999999995e-29 < x Initial program 18.1%
associate-/l*21.5%
sub-neg21.5%
metadata-eval21.5%
fma-define21.5%
fma-define21.5%
fma-define21.5%
fma-define21.5%
fma-define21.5%
fma-define21.5%
fma-define21.5%
Simplified21.5%
Taylor expanded in z around 0 21.5%
Taylor expanded in x around inf 93.1%
Taylor expanded in x around inf 91.3%
Final simplification92.1%
(FPCore (x y z)
:precision binary64
(if (<= x -11000.0)
(*
(+ x -2.0)
(+
4.16438922228
(/
(-
(* (- 3451.550173699799 (/ (- 124074.40615218398 y) x)) (/ 1.0 x))
101.7851458539211)
x)))
(if (<= x 7e-29)
(-
(* z -0.0424927283095952)
(*
x
(- (* z -0.28294182010212804) (* 0.0212463641547976 (+ z (* y -2.0))))))
(*
(+ x -2.0)
(+
4.16438922228
(/
z
(+
47.066876606
(* x (+ 313.399215894 (* x (+ 263.505074721 (* x x))))))))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -11000.0) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - y) / x)) * (1.0 / x)) - 101.7851458539211) / x));
} else if (x <= 7e-29) {
tmp = (z * -0.0424927283095952) - (x * ((z * -0.28294182010212804) - (0.0212463641547976 * (z + (y * -2.0)))));
} else {
tmp = (x + -2.0) * (4.16438922228 + (z / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * x))))))));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-11000.0d0)) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + ((((3451.550173699799d0 - ((124074.40615218398d0 - y) / x)) * (1.0d0 / x)) - 101.7851458539211d0) / x))
else if (x <= 7d-29) then
tmp = (z * (-0.0424927283095952d0)) - (x * ((z * (-0.28294182010212804d0)) - (0.0212463641547976d0 * (z + (y * (-2.0d0))))))
else
tmp = (x + (-2.0d0)) * (4.16438922228d0 + (z / (47.066876606d0 + (x * (313.399215894d0 + (x * (263.505074721d0 + (x * x))))))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -11000.0) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - y) / x)) * (1.0 / x)) - 101.7851458539211) / x));
} else if (x <= 7e-29) {
tmp = (z * -0.0424927283095952) - (x * ((z * -0.28294182010212804) - (0.0212463641547976 * (z + (y * -2.0)))));
} else {
tmp = (x + -2.0) * (4.16438922228 + (z / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * x))))))));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -11000.0: tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - y) / x)) * (1.0 / x)) - 101.7851458539211) / x)) elif x <= 7e-29: tmp = (z * -0.0424927283095952) - (x * ((z * -0.28294182010212804) - (0.0212463641547976 * (z + (y * -2.0))))) else: tmp = (x + -2.0) * (4.16438922228 + (z / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * x)))))))) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -11000.0) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 - Float64(Float64(124074.40615218398 - y) / x)) * Float64(1.0 / x)) - 101.7851458539211) / x))); elseif (x <= 7e-29) tmp = Float64(Float64(z * -0.0424927283095952) - Float64(x * Float64(Float64(z * -0.28294182010212804) - Float64(0.0212463641547976 * Float64(z + Float64(y * -2.0)))))); else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(z / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * Float64(263.505074721 + Float64(x * x))))))))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -11000.0) tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - y) / x)) * (1.0 / x)) - 101.7851458539211) / x)); elseif (x <= 7e-29) tmp = (z * -0.0424927283095952) - (x * ((z * -0.28294182010212804) - (0.0212463641547976 * (z + (y * -2.0))))); else tmp = (x + -2.0) * (4.16438922228 + (z / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * x)))))))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -11000.0], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 - N[(N[(124074.40615218398 - y), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] * N[(1.0 / x), $MachinePrecision]), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 7e-29], N[(N[(z * -0.0424927283095952), $MachinePrecision] - N[(x * N[(N[(z * -0.28294182010212804), $MachinePrecision] - N[(0.0212463641547976 * N[(z + N[(y * -2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(z / N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * N[(263.505074721 + N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -11000:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\left(3451.550173699799 - \frac{124074.40615218398 - y}{x}\right) \cdot \frac{1}{x} - 101.7851458539211}{x}\right)\\
\mathbf{elif}\;x \leq 7 \cdot 10^{-29}:\\
\;\;\;\;z \cdot -0.0424927283095952 - x \cdot \left(z \cdot -0.28294182010212804 - 0.0212463641547976 \cdot \left(z + y \cdot -2\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{z}{47.066876606 + x \cdot \left(313.399215894 + x \cdot \left(263.505074721 + x \cdot x\right)\right)}\right)\\
\end{array}
\end{array}
if x < -11000Initial program 15.3%
associate-/l*20.0%
sub-neg20.0%
metadata-eval20.0%
fma-define20.0%
fma-define20.0%
fma-define20.0%
fma-define20.0%
fma-define20.0%
fma-define20.0%
fma-define20.0%
Simplified20.0%
Taylor expanded in x around -inf 92.0%
mul-1-neg92.0%
unsub-neg92.0%
mul-1-neg92.0%
unsub-neg92.0%
mul-1-neg92.0%
unsub-neg92.0%
neg-mul-192.0%
unsub-neg92.0%
Simplified92.0%
div-inv92.0%
Applied egg-rr92.0%
if -11000 < x < 6.9999999999999995e-29Initial program 99.6%
associate-/l*99.5%
sub-neg99.5%
metadata-eval99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.6%
fma-define99.6%
fma-define99.6%
Simplified99.6%
Taylor expanded in x around 0 92.6%
if 6.9999999999999995e-29 < x Initial program 18.1%
associate-/l*21.5%
sub-neg21.5%
metadata-eval21.5%
fma-define21.5%
fma-define21.5%
fma-define21.5%
fma-define21.5%
fma-define21.5%
fma-define21.5%
fma-define21.5%
Simplified21.5%
Taylor expanded in z around 0 21.5%
Taylor expanded in x around inf 93.1%
Taylor expanded in x around inf 91.3%
Final simplification92.0%
(FPCore (x y z)
:precision binary64
(if (<= x -11000.0)
(*
(+ x -2.0)
(+
4.16438922228
(/ (- (/ (+ 3451.550173699799 (/ y x)) x) 101.7851458539211) x)))
(if (<= x 7e-29)
(-
(* z -0.0424927283095952)
(*
x
(- (* z -0.28294182010212804) (* 0.0212463641547976 (+ z (* y -2.0))))))
(*
(+ x -2.0)
(+
4.16438922228
(/
z
(+
47.066876606
(* x (+ 313.399215894 (* x (+ 263.505074721 (* x x))))))))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -11000.0) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + (y / x)) / x) - 101.7851458539211) / x));
} else if (x <= 7e-29) {
tmp = (z * -0.0424927283095952) - (x * ((z * -0.28294182010212804) - (0.0212463641547976 * (z + (y * -2.0)))));
} else {
tmp = (x + -2.0) * (4.16438922228 + (z / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * x))))))));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-11000.0d0)) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + ((((3451.550173699799d0 + (y / x)) / x) - 101.7851458539211d0) / x))
else if (x <= 7d-29) then
tmp = (z * (-0.0424927283095952d0)) - (x * ((z * (-0.28294182010212804d0)) - (0.0212463641547976d0 * (z + (y * (-2.0d0))))))
else
tmp = (x + (-2.0d0)) * (4.16438922228d0 + (z / (47.066876606d0 + (x * (313.399215894d0 + (x * (263.505074721d0 + (x * x))))))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -11000.0) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + (y / x)) / x) - 101.7851458539211) / x));
} else if (x <= 7e-29) {
tmp = (z * -0.0424927283095952) - (x * ((z * -0.28294182010212804) - (0.0212463641547976 * (z + (y * -2.0)))));
} else {
tmp = (x + -2.0) * (4.16438922228 + (z / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * x))))))));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -11000.0: tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + (y / x)) / x) - 101.7851458539211) / x)) elif x <= 7e-29: tmp = (z * -0.0424927283095952) - (x * ((z * -0.28294182010212804) - (0.0212463641547976 * (z + (y * -2.0))))) else: tmp = (x + -2.0) * (4.16438922228 + (z / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * x)))))))) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -11000.0) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(y / x)) / x) - 101.7851458539211) / x))); elseif (x <= 7e-29) tmp = Float64(Float64(z * -0.0424927283095952) - Float64(x * Float64(Float64(z * -0.28294182010212804) - Float64(0.0212463641547976 * Float64(z + Float64(y * -2.0)))))); else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(z / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * Float64(263.505074721 + Float64(x * x))))))))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -11000.0) tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + (y / x)) / x) - 101.7851458539211) / x)); elseif (x <= 7e-29) tmp = (z * -0.0424927283095952) - (x * ((z * -0.28294182010212804) - (0.0212463641547976 * (z + (y * -2.0))))); else tmp = (x + -2.0) * (4.16438922228 + (z / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * x)))))))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -11000.0], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 + N[(y / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 7e-29], N[(N[(z * -0.0424927283095952), $MachinePrecision] - N[(x * N[(N[(z * -0.28294182010212804), $MachinePrecision] - N[(0.0212463641547976 * N[(z + N[(y * -2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(z / N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * N[(263.505074721 + N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -11000:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 + \frac{y}{x}}{x} - 101.7851458539211}{x}\right)\\
\mathbf{elif}\;x \leq 7 \cdot 10^{-29}:\\
\;\;\;\;z \cdot -0.0424927283095952 - x \cdot \left(z \cdot -0.28294182010212804 - 0.0212463641547976 \cdot \left(z + y \cdot -2\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{z}{47.066876606 + x \cdot \left(313.399215894 + x \cdot \left(263.505074721 + x \cdot x\right)\right)}\right)\\
\end{array}
\end{array}
if x < -11000Initial program 15.3%
associate-/l*20.0%
sub-neg20.0%
metadata-eval20.0%
fma-define20.0%
fma-define20.0%
fma-define20.0%
fma-define20.0%
fma-define20.0%
fma-define20.0%
fma-define20.0%
Simplified20.0%
Taylor expanded in x around -inf 92.0%
mul-1-neg92.0%
unsub-neg92.0%
mul-1-neg92.0%
unsub-neg92.0%
mul-1-neg92.0%
unsub-neg92.0%
neg-mul-192.0%
unsub-neg92.0%
Simplified92.0%
Taylor expanded in y around inf 92.0%
mul-1-neg92.0%
distribute-neg-frac292.0%
Simplified92.0%
if -11000 < x < 6.9999999999999995e-29Initial program 99.6%
associate-/l*99.5%
sub-neg99.5%
metadata-eval99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.6%
fma-define99.6%
fma-define99.6%
Simplified99.6%
Taylor expanded in x around 0 92.6%
if 6.9999999999999995e-29 < x Initial program 18.1%
associate-/l*21.5%
sub-neg21.5%
metadata-eval21.5%
fma-define21.5%
fma-define21.5%
fma-define21.5%
fma-define21.5%
fma-define21.5%
fma-define21.5%
fma-define21.5%
Simplified21.5%
Taylor expanded in z around 0 21.5%
Taylor expanded in x around inf 93.1%
Taylor expanded in x around inf 91.3%
Final simplification92.0%
(FPCore (x y z)
:precision binary64
(if (or (<= x -11000.0) (not (<= x 980000000000.0)))
(*
(+ x -2.0)
(+
4.16438922228
(/ (- (/ (+ 3451.550173699799 (/ y x)) x) 101.7851458539211) x)))
(-
(* z -0.0424927283095952)
(*
x
(- (* z -0.28294182010212804) (* 0.0212463641547976 (+ z (* y -2.0))))))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -11000.0) || !(x <= 980000000000.0)) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + (y / x)) / x) - 101.7851458539211) / x));
} else {
tmp = (z * -0.0424927283095952) - (x * ((z * -0.28294182010212804) - (0.0212463641547976 * (z + (y * -2.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) :: tmp
if ((x <= (-11000.0d0)) .or. (.not. (x <= 980000000000.0d0))) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + ((((3451.550173699799d0 + (y / x)) / x) - 101.7851458539211d0) / x))
else
tmp = (z * (-0.0424927283095952d0)) - (x * ((z * (-0.28294182010212804d0)) - (0.0212463641547976d0 * (z + (y * (-2.0d0))))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -11000.0) || !(x <= 980000000000.0)) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + (y / x)) / x) - 101.7851458539211) / x));
} else {
tmp = (z * -0.0424927283095952) - (x * ((z * -0.28294182010212804) - (0.0212463641547976 * (z + (y * -2.0)))));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -11000.0) or not (x <= 980000000000.0): tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + (y / x)) / x) - 101.7851458539211) / x)) else: tmp = (z * -0.0424927283095952) - (x * ((z * -0.28294182010212804) - (0.0212463641547976 * (z + (y * -2.0))))) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -11000.0) || !(x <= 980000000000.0)) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(y / x)) / x) - 101.7851458539211) / x))); else tmp = Float64(Float64(z * -0.0424927283095952) - Float64(x * Float64(Float64(z * -0.28294182010212804) - Float64(0.0212463641547976 * Float64(z + Float64(y * -2.0)))))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -11000.0) || ~((x <= 980000000000.0))) tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + (y / x)) / x) - 101.7851458539211) / x)); else tmp = (z * -0.0424927283095952) - (x * ((z * -0.28294182010212804) - (0.0212463641547976 * (z + (y * -2.0))))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -11000.0], N[Not[LessEqual[x, 980000000000.0]], $MachinePrecision]], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 + N[(y / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 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]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -11000 \lor \neg \left(x \leq 980000000000\right):\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 + \frac{y}{x}}{x} - 101.7851458539211}{x}\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot -0.0424927283095952 - x \cdot \left(z \cdot -0.28294182010212804 - 0.0212463641547976 \cdot \left(z + y \cdot -2\right)\right)\\
\end{array}
\end{array}
if x < -11000 or 9.8e11 < x Initial program 13.3%
associate-/l*17.4%
sub-neg17.4%
metadata-eval17.4%
fma-define17.4%
fma-define17.4%
fma-define17.4%
fma-define17.4%
fma-define17.4%
fma-define17.4%
fma-define17.4%
Simplified17.4%
Taylor expanded in x around -inf 93.5%
mul-1-neg93.5%
unsub-neg93.5%
mul-1-neg93.5%
unsub-neg93.5%
mul-1-neg93.5%
unsub-neg93.5%
neg-mul-193.5%
unsub-neg93.5%
Simplified93.5%
Taylor expanded in y around inf 93.5%
mul-1-neg93.5%
distribute-neg-frac293.5%
Simplified93.5%
if -11000 < x < 9.8e11Initial program 99.5%
associate-/l*99.5%
sub-neg99.5%
metadata-eval99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
Simplified99.5%
Taylor expanded in x around 0 89.7%
Final simplification91.7%
(FPCore (x y z)
:precision binary64
(if (or (<= x -11000.0) (not (<= x 980000000000.0)))
(*
x
(+
4.16438922228
(/
(-
(/ (- 3451.550173699799 (/ (- 124074.40615218398 y) x)) x)
101.7851458539211)
x)))
(-
(* z -0.0424927283095952)
(*
x
(- (* z -0.28294182010212804) (* 0.0212463641547976 (+ z (* y -2.0))))))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -11000.0) || !(x <= 980000000000.0)) {
tmp = x * (4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - y) / x)) / x) - 101.7851458539211) / x));
} else {
tmp = (z * -0.0424927283095952) - (x * ((z * -0.28294182010212804) - (0.0212463641547976 * (z + (y * -2.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) :: tmp
if ((x <= (-11000.0d0)) .or. (.not. (x <= 980000000000.0d0))) then
tmp = x * (4.16438922228d0 + ((((3451.550173699799d0 - ((124074.40615218398d0 - y) / x)) / x) - 101.7851458539211d0) / x))
else
tmp = (z * (-0.0424927283095952d0)) - (x * ((z * (-0.28294182010212804d0)) - (0.0212463641547976d0 * (z + (y * (-2.0d0))))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -11000.0) || !(x <= 980000000000.0)) {
tmp = x * (4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - y) / x)) / x) - 101.7851458539211) / x));
} else {
tmp = (z * -0.0424927283095952) - (x * ((z * -0.28294182010212804) - (0.0212463641547976 * (z + (y * -2.0)))));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -11000.0) or not (x <= 980000000000.0): tmp = x * (4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - y) / x)) / x) - 101.7851458539211) / x)) else: tmp = (z * -0.0424927283095952) - (x * ((z * -0.28294182010212804) - (0.0212463641547976 * (z + (y * -2.0))))) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -11000.0) || !(x <= 980000000000.0)) tmp = Float64(x * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 - Float64(Float64(124074.40615218398 - y) / x)) / x) - 101.7851458539211) / x))); else tmp = Float64(Float64(z * -0.0424927283095952) - Float64(x * Float64(Float64(z * -0.28294182010212804) - Float64(0.0212463641547976 * Float64(z + Float64(y * -2.0)))))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -11000.0) || ~((x <= 980000000000.0))) tmp = x * (4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - y) / x)) / x) - 101.7851458539211) / x)); else tmp = (z * -0.0424927283095952) - (x * ((z * -0.28294182010212804) - (0.0212463641547976 * (z + (y * -2.0))))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -11000.0], N[Not[LessEqual[x, 980000000000.0]], $MachinePrecision]], N[(x * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 - N[(N[(124074.40615218398 - y), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 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]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -11000 \lor \neg \left(x \leq 980000000000\right):\\
\;\;\;\;x \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 - \frac{124074.40615218398 - y}{x}}{x} - 101.7851458539211}{x}\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot -0.0424927283095952 - x \cdot \left(z \cdot -0.28294182010212804 - 0.0212463641547976 \cdot \left(z + y \cdot -2\right)\right)\\
\end{array}
\end{array}
if x < -11000 or 9.8e11 < x Initial program 13.3%
associate-/l*17.4%
sub-neg17.4%
metadata-eval17.4%
fma-define17.4%
fma-define17.4%
fma-define17.4%
fma-define17.4%
fma-define17.4%
fma-define17.4%
fma-define17.4%
Simplified17.4%
Taylor expanded in x around -inf 93.5%
mul-1-neg93.5%
unsub-neg93.5%
mul-1-neg93.5%
unsub-neg93.5%
mul-1-neg93.5%
unsub-neg93.5%
neg-mul-193.5%
unsub-neg93.5%
Simplified93.5%
Taylor expanded in x around inf 93.1%
if -11000 < x < 9.8e11Initial program 99.5%
associate-/l*99.5%
sub-neg99.5%
metadata-eval99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
Simplified99.5%
Taylor expanded in x around 0 89.7%
Final simplification91.5%
(FPCore (x y z)
:precision binary64
(if (or (<= x -11000.0) (not (<= x 7.5e-8)))
(*
x
(+
4.16438922228
(/
(-
(/ (- 3451.550173699799 (/ (- 124074.40615218398 y) x)) x)
101.7851458539211)
x)))
(*
(+ x -2.0)
(-
(* z 0.0212463641547976)
(* x (- (* z 0.14147091005106402) (* y 0.0212463641547976)))))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -11000.0) || !(x <= 7.5e-8)) {
tmp = x * (4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - y) / x)) / x) - 101.7851458539211) / x));
} else {
tmp = (x + -2.0) * ((z * 0.0212463641547976) - (x * ((z * 0.14147091005106402) - (y * 0.0212463641547976))));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((x <= (-11000.0d0)) .or. (.not. (x <= 7.5d-8))) then
tmp = x * (4.16438922228d0 + ((((3451.550173699799d0 - ((124074.40615218398d0 - y) / x)) / x) - 101.7851458539211d0) / x))
else
tmp = (x + (-2.0d0)) * ((z * 0.0212463641547976d0) - (x * ((z * 0.14147091005106402d0) - (y * 0.0212463641547976d0))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -11000.0) || !(x <= 7.5e-8)) {
tmp = x * (4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - y) / x)) / x) - 101.7851458539211) / x));
} else {
tmp = (x + -2.0) * ((z * 0.0212463641547976) - (x * ((z * 0.14147091005106402) - (y * 0.0212463641547976))));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -11000.0) or not (x <= 7.5e-8): tmp = x * (4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - y) / x)) / x) - 101.7851458539211) / x)) else: tmp = (x + -2.0) * ((z * 0.0212463641547976) - (x * ((z * 0.14147091005106402) - (y * 0.0212463641547976)))) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -11000.0) || !(x <= 7.5e-8)) tmp = Float64(x * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 - Float64(Float64(124074.40615218398 - y) / x)) / x) - 101.7851458539211) / x))); else tmp = Float64(Float64(x + -2.0) * Float64(Float64(z * 0.0212463641547976) - Float64(x * Float64(Float64(z * 0.14147091005106402) - Float64(y * 0.0212463641547976))))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -11000.0) || ~((x <= 7.5e-8))) tmp = x * (4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - y) / x)) / x) - 101.7851458539211) / x)); else tmp = (x + -2.0) * ((z * 0.0212463641547976) - (x * ((z * 0.14147091005106402) - (y * 0.0212463641547976)))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -11000.0], N[Not[LessEqual[x, 7.5e-8]], $MachinePrecision]], N[(x * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 - N[(N[(124074.40615218398 - y), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z * 0.0212463641547976), $MachinePrecision] - N[(x * N[(N[(z * 0.14147091005106402), $MachinePrecision] - N[(y * 0.0212463641547976), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -11000 \lor \neg \left(x \leq 7.5 \cdot 10^{-8}\right):\\
\;\;\;\;x \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 - \frac{124074.40615218398 - y}{x}}{x} - 101.7851458539211}{x}\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976 - x \cdot \left(z \cdot 0.14147091005106402 - y \cdot 0.0212463641547976\right)\right)\\
\end{array}
\end{array}
if x < -11000 or 7.4999999999999997e-8 < x Initial program 15.7%
associate-/l*19.8%
sub-neg19.8%
metadata-eval19.8%
fma-define19.8%
fma-define19.7%
fma-define19.7%
fma-define19.7%
fma-define19.7%
fma-define19.7%
fma-define19.7%
Simplified19.7%
Taylor expanded in x around -inf 90.9%
mul-1-neg90.9%
unsub-neg90.9%
mul-1-neg90.9%
unsub-neg90.9%
mul-1-neg90.9%
unsub-neg90.9%
neg-mul-190.9%
unsub-neg90.9%
Simplified90.9%
Taylor expanded in x around inf 90.5%
if -11000 < x < 7.4999999999999997e-8Initial program 99.6%
associate-/l*99.5%
sub-neg99.5%
metadata-eval99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.6%
fma-define99.6%
fma-define99.6%
Simplified99.6%
Taylor expanded in x around 0 92.5%
Final simplification91.4%
(FPCore (x y z)
:precision binary64
(if (or (<= x -11000.0) (not (<= x 7.5e-8)))
(*
x
(+
4.16438922228
(/
(-
(/ (- 3451.550173699799 (/ (- 124074.40615218398 y) x)) x)
101.7851458539211)
x)))
(+ (* z -0.0424927283095952) (* x (* y -0.0424927283095952)))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -11000.0) || !(x <= 7.5e-8)) {
tmp = x * (4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - y) / x)) / x) - 101.7851458539211) / x));
} else {
tmp = (z * -0.0424927283095952) + (x * (y * -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 <= (-11000.0d0)) .or. (.not. (x <= 7.5d-8))) then
tmp = x * (4.16438922228d0 + ((((3451.550173699799d0 - ((124074.40615218398d0 - y) / x)) / x) - 101.7851458539211d0) / x))
else
tmp = (z * (-0.0424927283095952d0)) + (x * (y * (-0.0424927283095952d0)))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -11000.0) || !(x <= 7.5e-8)) {
tmp = x * (4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - y) / x)) / x) - 101.7851458539211) / x));
} else {
tmp = (z * -0.0424927283095952) + (x * (y * -0.0424927283095952));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -11000.0) or not (x <= 7.5e-8): tmp = x * (4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - y) / x)) / x) - 101.7851458539211) / x)) else: tmp = (z * -0.0424927283095952) + (x * (y * -0.0424927283095952)) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -11000.0) || !(x <= 7.5e-8)) tmp = Float64(x * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 - Float64(Float64(124074.40615218398 - y) / x)) / x) - 101.7851458539211) / x))); else tmp = Float64(Float64(z * -0.0424927283095952) + Float64(x * Float64(y * -0.0424927283095952))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -11000.0) || ~((x <= 7.5e-8))) tmp = x * (4.16438922228 + ((((3451.550173699799 - ((124074.40615218398 - y) / x)) / x) - 101.7851458539211) / x)); else tmp = (z * -0.0424927283095952) + (x * (y * -0.0424927283095952)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -11000.0], N[Not[LessEqual[x, 7.5e-8]], $MachinePrecision]], N[(x * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 - N[(N[(124074.40615218398 - y), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(z * -0.0424927283095952), $MachinePrecision] + N[(x * N[(y * -0.0424927283095952), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -11000 \lor \neg \left(x \leq 7.5 \cdot 10^{-8}\right):\\
\;\;\;\;x \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 - \frac{124074.40615218398 - y}{x}}{x} - 101.7851458539211}{x}\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot -0.0424927283095952 + x \cdot \left(y \cdot -0.0424927283095952\right)\\
\end{array}
\end{array}
if x < -11000 or 7.4999999999999997e-8 < x Initial program 15.7%
associate-/l*19.8%
sub-neg19.8%
metadata-eval19.8%
fma-define19.8%
fma-define19.7%
fma-define19.7%
fma-define19.7%
fma-define19.7%
fma-define19.7%
fma-define19.7%
Simplified19.7%
Taylor expanded in x around -inf 90.9%
mul-1-neg90.9%
unsub-neg90.9%
mul-1-neg90.9%
unsub-neg90.9%
mul-1-neg90.9%
unsub-neg90.9%
neg-mul-190.9%
unsub-neg90.9%
Simplified90.9%
Taylor expanded in x around inf 90.5%
if -11000 < x < 7.4999999999999997e-8Initial program 99.6%
associate-/l*99.5%
sub-neg99.5%
metadata-eval99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.6%
fma-define99.6%
fma-define99.6%
Simplified99.6%
Taylor expanded in x around 0 92.5%
Taylor expanded in z around 0 91.7%
associate-*r*91.7%
*-commutative91.7%
associate-*r*91.7%
Simplified91.7%
Final simplification91.1%
(FPCore (x y z)
:precision binary64
(if (<= x -11000.0)
(*
x
(+ 4.16438922228 (/ (+ -110.1139242984811 (/ 3655.1204654076414 x)) x)))
(if (<= x 7.5e-8)
(+ (* z -0.0424927283095952) (* x (* y -0.0424927283095952)))
(*
(+ x -2.0)
(-
4.16438922228
(/ (+ 101.7851458539211 (/ -3451.550173699799 x)) x))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -11000.0) {
tmp = x * (4.16438922228 + ((-110.1139242984811 + (3655.1204654076414 / x)) / x));
} else if (x <= 7.5e-8) {
tmp = (z * -0.0424927283095952) + (x * (y * -0.0424927283095952));
} else {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-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) :: tmp
if (x <= (-11000.0d0)) then
tmp = x * (4.16438922228d0 + (((-110.1139242984811d0) + (3655.1204654076414d0 / x)) / x))
else if (x <= 7.5d-8) then
tmp = (z * (-0.0424927283095952d0)) + (x * (y * (-0.0424927283095952d0)))
else
tmp = (x + (-2.0d0)) * (4.16438922228d0 - ((101.7851458539211d0 + ((-3451.550173699799d0) / x)) / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -11000.0) {
tmp = x * (4.16438922228 + ((-110.1139242984811 + (3655.1204654076414 / x)) / x));
} else if (x <= 7.5e-8) {
tmp = (z * -0.0424927283095952) + (x * (y * -0.0424927283095952));
} else {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -11000.0: tmp = x * (4.16438922228 + ((-110.1139242984811 + (3655.1204654076414 / x)) / x)) elif x <= 7.5e-8: tmp = (z * -0.0424927283095952) + (x * (y * -0.0424927283095952)) else: tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -11000.0) tmp = Float64(x * Float64(4.16438922228 + Float64(Float64(-110.1139242984811 + Float64(3655.1204654076414 / x)) / x))); elseif (x <= 7.5e-8) tmp = Float64(Float64(z * -0.0424927283095952) + Float64(x * Float64(y * -0.0424927283095952))); else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 - Float64(Float64(101.7851458539211 + Float64(-3451.550173699799 / x)) / x))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -11000.0) tmp = x * (4.16438922228 + ((-110.1139242984811 + (3655.1204654076414 / x)) / x)); elseif (x <= 7.5e-8) tmp = (z * -0.0424927283095952) + (x * (y * -0.0424927283095952)); else tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -11000.0], N[(x * N[(4.16438922228 + N[(N[(-110.1139242984811 + N[(3655.1204654076414 / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 7.5e-8], N[(N[(z * -0.0424927283095952), $MachinePrecision] + N[(x * N[(y * -0.0424927283095952), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 - N[(N[(101.7851458539211 + N[(-3451.550173699799 / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -11000:\\
\;\;\;\;x \cdot \left(4.16438922228 + \frac{-110.1139242984811 + \frac{3655.1204654076414}{x}}{x}\right)\\
\mathbf{elif}\;x \leq 7.5 \cdot 10^{-8}:\\
\;\;\;\;z \cdot -0.0424927283095952 + x \cdot \left(y \cdot -0.0424927283095952\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 + \frac{-3451.550173699799}{x}}{x}\right)\\
\end{array}
\end{array}
if x < -11000Initial program 15.3%
associate-/l*20.0%
sub-neg20.0%
metadata-eval20.0%
fma-define20.0%
fma-define20.0%
fma-define20.0%
fma-define20.0%
fma-define20.0%
fma-define20.0%
fma-define20.0%
Simplified20.0%
Taylor expanded in x around -inf 85.7%
mul-1-neg85.7%
unsub-neg85.7%
sub-neg85.7%
associate-*r/85.7%
metadata-eval85.7%
distribute-neg-frac85.7%
metadata-eval85.7%
Simplified85.7%
add-cube-cbrt84.5%
pow384.6%
Applied egg-rr84.6%
Taylor expanded in x around inf 85.7%
Simplified85.7%
if -11000 < x < 7.4999999999999997e-8Initial program 99.6%
associate-/l*99.5%
sub-neg99.5%
metadata-eval99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.6%
fma-define99.6%
fma-define99.6%
Simplified99.6%
Taylor expanded in x around 0 92.5%
Taylor expanded in z around 0 91.7%
associate-*r*91.7%
*-commutative91.7%
associate-*r*91.7%
Simplified91.7%
if 7.4999999999999997e-8 < x Initial program 16.1%
associate-/l*19.6%
sub-neg19.6%
metadata-eval19.6%
fma-define19.6%
fma-define19.6%
fma-define19.6%
fma-define19.6%
fma-define19.6%
fma-define19.6%
fma-define19.6%
Simplified19.6%
Taylor expanded in x around -inf 85.9%
mul-1-neg85.9%
unsub-neg85.9%
sub-neg85.9%
associate-*r/85.9%
metadata-eval85.9%
distribute-neg-frac85.9%
metadata-eval85.9%
Simplified85.9%
Final simplification88.5%
(FPCore (x y z) :precision binary64 (if (or (<= x -11000.0) (not (<= x 980000000000.0))) (* (+ x -2.0) (- 4.16438922228 (/ 101.7851458539211 x))) (* (+ x -2.0) (* z 0.0212463641547976))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -11000.0) || !(x <= 980000000000.0)) {
tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x));
} else {
tmp = (x + -2.0) * (z * 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 <= (-11000.0d0)) .or. (.not. (x <= 980000000000.0d0))) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 - (101.7851458539211d0 / x))
else
tmp = (x + (-2.0d0)) * (z * 0.0212463641547976d0)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -11000.0) || !(x <= 980000000000.0)) {
tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x));
} else {
tmp = (x + -2.0) * (z * 0.0212463641547976);
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -11000.0) or not (x <= 980000000000.0): tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x)) else: tmp = (x + -2.0) * (z * 0.0212463641547976) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -11000.0) || !(x <= 980000000000.0)) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 - Float64(101.7851458539211 / x))); else tmp = Float64(Float64(x + -2.0) * Float64(z * 0.0212463641547976)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -11000.0) || ~((x <= 980000000000.0))) tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x)); else tmp = (x + -2.0) * (z * 0.0212463641547976); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -11000.0], N[Not[LessEqual[x, 980000000000.0]], $MachinePrecision]], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 - N[(101.7851458539211 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(z * 0.0212463641547976), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -11000 \lor \neg \left(x \leq 980000000000\right):\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211}{x}\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976\right)\\
\end{array}
\end{array}
if x < -11000 or 9.8e11 < x Initial program 13.3%
associate-/l*17.4%
sub-neg17.4%
metadata-eval17.4%
fma-define17.4%
fma-define17.4%
fma-define17.4%
fma-define17.4%
fma-define17.4%
fma-define17.4%
fma-define17.4%
Simplified17.4%
Taylor expanded in x around inf 88.1%
associate-*r/88.1%
metadata-eval88.1%
Simplified88.1%
if -11000 < x < 9.8e11Initial program 99.5%
associate-/l*99.5%
sub-neg99.5%
metadata-eval99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
Simplified99.5%
Taylor expanded in x around 0 66.0%
*-commutative66.0%
Simplified66.0%
Final simplification77.8%
(FPCore (x y z)
:precision binary64
(if (<= x -11200.0)
(*
x
(+ 4.16438922228 (/ (+ -110.1139242984811 (/ 3655.1204654076414 x)) x)))
(if (<= x 7.5e-8)
(+ (* z -0.0424927283095952) (* x (* y -0.0424927283095952)))
(* x (- 4.16438922228 (/ 110.1139242984811 x))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -11200.0) {
tmp = x * (4.16438922228 + ((-110.1139242984811 + (3655.1204654076414 / x)) / x));
} else if (x <= 7.5e-8) {
tmp = (z * -0.0424927283095952) + (x * (y * -0.0424927283095952));
} else {
tmp = x * (4.16438922228 - (110.1139242984811 / 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 <= (-11200.0d0)) then
tmp = x * (4.16438922228d0 + (((-110.1139242984811d0) + (3655.1204654076414d0 / x)) / x))
else if (x <= 7.5d-8) then
tmp = (z * (-0.0424927283095952d0)) + (x * (y * (-0.0424927283095952d0)))
else
tmp = x * (4.16438922228d0 - (110.1139242984811d0 / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -11200.0) {
tmp = x * (4.16438922228 + ((-110.1139242984811 + (3655.1204654076414 / x)) / x));
} else if (x <= 7.5e-8) {
tmp = (z * -0.0424927283095952) + (x * (y * -0.0424927283095952));
} else {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -11200.0: tmp = x * (4.16438922228 + ((-110.1139242984811 + (3655.1204654076414 / x)) / x)) elif x <= 7.5e-8: tmp = (z * -0.0424927283095952) + (x * (y * -0.0424927283095952)) else: tmp = x * (4.16438922228 - (110.1139242984811 / x)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -11200.0) tmp = Float64(x * Float64(4.16438922228 + Float64(Float64(-110.1139242984811 + Float64(3655.1204654076414 / x)) / x))); elseif (x <= 7.5e-8) tmp = Float64(Float64(z * -0.0424927283095952) + Float64(x * Float64(y * -0.0424927283095952))); else tmp = Float64(x * Float64(4.16438922228 - Float64(110.1139242984811 / x))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -11200.0) tmp = x * (4.16438922228 + ((-110.1139242984811 + (3655.1204654076414 / x)) / x)); elseif (x <= 7.5e-8) tmp = (z * -0.0424927283095952) + (x * (y * -0.0424927283095952)); else tmp = x * (4.16438922228 - (110.1139242984811 / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -11200.0], N[(x * N[(4.16438922228 + N[(N[(-110.1139242984811 + N[(3655.1204654076414 / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 7.5e-8], N[(N[(z * -0.0424927283095952), $MachinePrecision] + N[(x * N[(y * -0.0424927283095952), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(4.16438922228 - N[(110.1139242984811 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -11200:\\
\;\;\;\;x \cdot \left(4.16438922228 + \frac{-110.1139242984811 + \frac{3655.1204654076414}{x}}{x}\right)\\
\mathbf{elif}\;x \leq 7.5 \cdot 10^{-8}:\\
\;\;\;\;z \cdot -0.0424927283095952 + x \cdot \left(y \cdot -0.0424927283095952\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)\\
\end{array}
\end{array}
if x < -11200Initial program 15.3%
associate-/l*20.0%
sub-neg20.0%
metadata-eval20.0%
fma-define20.0%
fma-define20.0%
fma-define20.0%
fma-define20.0%
fma-define20.0%
fma-define20.0%
fma-define20.0%
Simplified20.0%
Taylor expanded in x around -inf 85.7%
mul-1-neg85.7%
unsub-neg85.7%
sub-neg85.7%
associate-*r/85.7%
metadata-eval85.7%
distribute-neg-frac85.7%
metadata-eval85.7%
Simplified85.7%
add-cube-cbrt84.5%
pow384.6%
Applied egg-rr84.6%
Taylor expanded in x around inf 85.7%
Simplified85.7%
if -11200 < x < 7.4999999999999997e-8Initial program 99.6%
associate-/l*99.5%
sub-neg99.5%
metadata-eval99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.6%
fma-define99.6%
fma-define99.6%
Simplified99.6%
Taylor expanded in x around 0 92.5%
Taylor expanded in z around 0 91.7%
associate-*r*91.7%
*-commutative91.7%
associate-*r*91.7%
Simplified91.7%
if 7.4999999999999997e-8 < x Initial program 16.1%
associate-/l*19.6%
sub-neg19.6%
metadata-eval19.6%
fma-define19.6%
fma-define19.6%
fma-define19.6%
fma-define19.6%
fma-define19.6%
fma-define19.6%
fma-define19.6%
Simplified19.6%
Taylor expanded in x around inf 85.8%
associate-*r/85.8%
metadata-eval85.8%
Simplified85.8%
Final simplification88.4%
(FPCore (x y z)
:precision binary64
(if (<= x -11000.0)
(* (+ x -2.0) (- 4.16438922228 (/ 101.7851458539211 x)))
(if (<= x 7.5e-8)
(+ (* z -0.0424927283095952) (* x (* y -0.0424927283095952)))
(* x (- 4.16438922228 (/ 110.1139242984811 x))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -11000.0) {
tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x));
} else if (x <= 7.5e-8) {
tmp = (z * -0.0424927283095952) + (x * (y * -0.0424927283095952));
} else {
tmp = x * (4.16438922228 - (110.1139242984811 / 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 <= (-11000.0d0)) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 - (101.7851458539211d0 / x))
else if (x <= 7.5d-8) then
tmp = (z * (-0.0424927283095952d0)) + (x * (y * (-0.0424927283095952d0)))
else
tmp = x * (4.16438922228d0 - (110.1139242984811d0 / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -11000.0) {
tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x));
} else if (x <= 7.5e-8) {
tmp = (z * -0.0424927283095952) + (x * (y * -0.0424927283095952));
} else {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -11000.0: tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x)) elif x <= 7.5e-8: tmp = (z * -0.0424927283095952) + (x * (y * -0.0424927283095952)) else: tmp = x * (4.16438922228 - (110.1139242984811 / x)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -11000.0) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 - Float64(101.7851458539211 / x))); elseif (x <= 7.5e-8) tmp = Float64(Float64(z * -0.0424927283095952) + Float64(x * Float64(y * -0.0424927283095952))); else tmp = Float64(x * Float64(4.16438922228 - Float64(110.1139242984811 / x))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -11000.0) tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x)); elseif (x <= 7.5e-8) tmp = (z * -0.0424927283095952) + (x * (y * -0.0424927283095952)); else tmp = x * (4.16438922228 - (110.1139242984811 / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -11000.0], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 - N[(101.7851458539211 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 7.5e-8], N[(N[(z * -0.0424927283095952), $MachinePrecision] + N[(x * N[(y * -0.0424927283095952), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(4.16438922228 - N[(110.1139242984811 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -11000:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211}{x}\right)\\
\mathbf{elif}\;x \leq 7.5 \cdot 10^{-8}:\\
\;\;\;\;z \cdot -0.0424927283095952 + x \cdot \left(y \cdot -0.0424927283095952\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)\\
\end{array}
\end{array}
if x < -11000Initial program 15.3%
associate-/l*20.0%
sub-neg20.0%
metadata-eval20.0%
fma-define20.0%
fma-define20.0%
fma-define20.0%
fma-define20.0%
fma-define20.0%
fma-define20.0%
fma-define20.0%
Simplified20.0%
Taylor expanded in x around inf 85.5%
associate-*r/85.5%
metadata-eval85.5%
Simplified85.5%
if -11000 < x < 7.4999999999999997e-8Initial program 99.6%
associate-/l*99.5%
sub-neg99.5%
metadata-eval99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.6%
fma-define99.6%
fma-define99.6%
Simplified99.6%
Taylor expanded in x around 0 92.5%
Taylor expanded in z around 0 91.7%
associate-*r*91.7%
*-commutative91.7%
associate-*r*91.7%
Simplified91.7%
if 7.4999999999999997e-8 < x Initial program 16.1%
associate-/l*19.6%
sub-neg19.6%
metadata-eval19.6%
fma-define19.6%
fma-define19.6%
fma-define19.6%
fma-define19.6%
fma-define19.6%
fma-define19.6%
fma-define19.6%
Simplified19.6%
Taylor expanded in x around inf 85.8%
associate-*r/85.8%
metadata-eval85.8%
Simplified85.8%
Final simplification88.4%
(FPCore (x y z)
:precision binary64
(if (<= x -11000.0)
(* (+ x -2.0) (- 4.16438922228 (/ 101.7851458539211 x)))
(if (<= x 7.5e-8)
(+ (* z -0.0424927283095952) (* (* x y) -0.0424927283095952))
(* x (- 4.16438922228 (/ 110.1139242984811 x))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -11000.0) {
tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x));
} else if (x <= 7.5e-8) {
tmp = (z * -0.0424927283095952) + ((x * y) * -0.0424927283095952);
} else {
tmp = x * (4.16438922228 - (110.1139242984811 / 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 <= (-11000.0d0)) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 - (101.7851458539211d0 / x))
else if (x <= 7.5d-8) then
tmp = (z * (-0.0424927283095952d0)) + ((x * y) * (-0.0424927283095952d0))
else
tmp = x * (4.16438922228d0 - (110.1139242984811d0 / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -11000.0) {
tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x));
} else if (x <= 7.5e-8) {
tmp = (z * -0.0424927283095952) + ((x * y) * -0.0424927283095952);
} else {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -11000.0: tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x)) elif x <= 7.5e-8: tmp = (z * -0.0424927283095952) + ((x * y) * -0.0424927283095952) else: tmp = x * (4.16438922228 - (110.1139242984811 / x)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -11000.0) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 - Float64(101.7851458539211 / x))); elseif (x <= 7.5e-8) tmp = Float64(Float64(z * -0.0424927283095952) + Float64(Float64(x * y) * -0.0424927283095952)); else tmp = Float64(x * Float64(4.16438922228 - Float64(110.1139242984811 / x))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -11000.0) tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x)); elseif (x <= 7.5e-8) tmp = (z * -0.0424927283095952) + ((x * y) * -0.0424927283095952); else tmp = x * (4.16438922228 - (110.1139242984811 / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -11000.0], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 - N[(101.7851458539211 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 7.5e-8], N[(N[(z * -0.0424927283095952), $MachinePrecision] + N[(N[(x * y), $MachinePrecision] * -0.0424927283095952), $MachinePrecision]), $MachinePrecision], N[(x * N[(4.16438922228 - N[(110.1139242984811 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -11000:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211}{x}\right)\\
\mathbf{elif}\;x \leq 7.5 \cdot 10^{-8}:\\
\;\;\;\;z \cdot -0.0424927283095952 + \left(x \cdot y\right) \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)\\
\end{array}
\end{array}
if x < -11000Initial program 15.3%
associate-/l*20.0%
sub-neg20.0%
metadata-eval20.0%
fma-define20.0%
fma-define20.0%
fma-define20.0%
fma-define20.0%
fma-define20.0%
fma-define20.0%
fma-define20.0%
Simplified20.0%
Taylor expanded in x around inf 85.5%
associate-*r/85.5%
metadata-eval85.5%
Simplified85.5%
if -11000 < x < 7.4999999999999997e-8Initial program 99.6%
associate-/l*99.5%
sub-neg99.5%
metadata-eval99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.6%
fma-define99.6%
fma-define99.6%
Simplified99.6%
Taylor expanded in x around 0 92.5%
Taylor expanded in z around 0 91.7%
if 7.4999999999999997e-8 < x Initial program 16.1%
associate-/l*19.6%
sub-neg19.6%
metadata-eval19.6%
fma-define19.6%
fma-define19.6%
fma-define19.6%
fma-define19.6%
fma-define19.6%
fma-define19.6%
fma-define19.6%
Simplified19.6%
Taylor expanded in x around inf 85.8%
associate-*r/85.8%
metadata-eval85.8%
Simplified85.8%
Final simplification88.4%
(FPCore (x y z) :precision binary64 (if (or (<= x -11000.0) (not (<= x 980000000000.0))) (* x (- 4.16438922228 (/ 110.1139242984811 x))) (* (+ x -2.0) (* z 0.0212463641547976))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -11000.0) || !(x <= 980000000000.0)) {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
} else {
tmp = (x + -2.0) * (z * 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 <= (-11000.0d0)) .or. (.not. (x <= 980000000000.0d0))) then
tmp = x * (4.16438922228d0 - (110.1139242984811d0 / x))
else
tmp = (x + (-2.0d0)) * (z * 0.0212463641547976d0)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -11000.0) || !(x <= 980000000000.0)) {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
} else {
tmp = (x + -2.0) * (z * 0.0212463641547976);
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -11000.0) or not (x <= 980000000000.0): tmp = x * (4.16438922228 - (110.1139242984811 / x)) else: tmp = (x + -2.0) * (z * 0.0212463641547976) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -11000.0) || !(x <= 980000000000.0)) tmp = Float64(x * Float64(4.16438922228 - Float64(110.1139242984811 / x))); else tmp = Float64(Float64(x + -2.0) * Float64(z * 0.0212463641547976)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -11000.0) || ~((x <= 980000000000.0))) tmp = x * (4.16438922228 - (110.1139242984811 / x)); else tmp = (x + -2.0) * (z * 0.0212463641547976); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -11000.0], N[Not[LessEqual[x, 980000000000.0]], $MachinePrecision]], N[(x * N[(4.16438922228 - N[(110.1139242984811 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(z * 0.0212463641547976), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -11000 \lor \neg \left(x \leq 980000000000\right):\\
\;\;\;\;x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976\right)\\
\end{array}
\end{array}
if x < -11000 or 9.8e11 < x Initial program 13.3%
associate-/l*17.4%
sub-neg17.4%
metadata-eval17.4%
fma-define17.4%
fma-define17.4%
fma-define17.4%
fma-define17.4%
fma-define17.4%
fma-define17.4%
fma-define17.4%
Simplified17.4%
Taylor expanded in x around inf 88.1%
associate-*r/88.1%
metadata-eval88.1%
Simplified88.1%
if -11000 < x < 9.8e11Initial program 99.5%
associate-/l*99.5%
sub-neg99.5%
metadata-eval99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
Simplified99.5%
Taylor expanded in x around 0 66.0%
*-commutative66.0%
Simplified66.0%
Final simplification77.8%
(FPCore (x y z) :precision binary64 (if (or (<= x -11000.0) (not (<= x 7.5e-8))) (* x (- 4.16438922228 (/ 110.1139242984811 x))) (* z -0.0424927283095952)))
double code(double x, double y, double z) {
double tmp;
if ((x <= -11000.0) || !(x <= 7.5e-8)) {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
} 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 <= (-11000.0d0)) .or. (.not. (x <= 7.5d-8))) then
tmp = x * (4.16438922228d0 - (110.1139242984811d0 / x))
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 <= -11000.0) || !(x <= 7.5e-8)) {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
} else {
tmp = z * -0.0424927283095952;
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -11000.0) or not (x <= 7.5e-8): tmp = x * (4.16438922228 - (110.1139242984811 / x)) else: tmp = z * -0.0424927283095952 return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -11000.0) || !(x <= 7.5e-8)) tmp = Float64(x * Float64(4.16438922228 - Float64(110.1139242984811 / x))); else tmp = Float64(z * -0.0424927283095952); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -11000.0) || ~((x <= 7.5e-8))) tmp = x * (4.16438922228 - (110.1139242984811 / x)); else tmp = z * -0.0424927283095952; end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -11000.0], N[Not[LessEqual[x, 7.5e-8]], $MachinePrecision]], N[(x * N[(4.16438922228 - N[(110.1139242984811 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(z * -0.0424927283095952), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -11000 \lor \neg \left(x \leq 7.5 \cdot 10^{-8}\right):\\
\;\;\;\;x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\end{array}
\end{array}
if x < -11000 or 7.4999999999999997e-8 < x Initial program 15.7%
associate-/l*19.8%
sub-neg19.8%
metadata-eval19.8%
fma-define19.8%
fma-define19.7%
fma-define19.7%
fma-define19.7%
fma-define19.7%
fma-define19.7%
fma-define19.7%
Simplified19.7%
Taylor expanded in x around inf 85.7%
associate-*r/85.7%
metadata-eval85.7%
Simplified85.7%
if -11000 < x < 7.4999999999999997e-8Initial program 99.6%
associate-/l*99.5%
sub-neg99.5%
metadata-eval99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.6%
fma-define99.6%
fma-define99.6%
Simplified99.6%
Taylor expanded in x around 0 68.0%
Final simplification77.8%
(FPCore (x y z) :precision binary64 (if (or (<= x -11500.0) (not (<= x 7.5e-8))) (* 4.16438922228 (+ x -2.0)) (* z -0.0424927283095952)))
double code(double x, double y, double z) {
double tmp;
if ((x <= -11500.0) || !(x <= 7.5e-8)) {
tmp = 4.16438922228 * (x + -2.0);
} else {
tmp = z * -0.0424927283095952;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((x <= (-11500.0d0)) .or. (.not. (x <= 7.5d-8))) then
tmp = 4.16438922228d0 * (x + (-2.0d0))
else
tmp = z * (-0.0424927283095952d0)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -11500.0) || !(x <= 7.5e-8)) {
tmp = 4.16438922228 * (x + -2.0);
} else {
tmp = z * -0.0424927283095952;
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -11500.0) or not (x <= 7.5e-8): tmp = 4.16438922228 * (x + -2.0) else: tmp = z * -0.0424927283095952 return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -11500.0) || !(x <= 7.5e-8)) tmp = Float64(4.16438922228 * Float64(x + -2.0)); else tmp = Float64(z * -0.0424927283095952); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -11500.0) || ~((x <= 7.5e-8))) tmp = 4.16438922228 * (x + -2.0); else tmp = z * -0.0424927283095952; end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -11500.0], N[Not[LessEqual[x, 7.5e-8]], $MachinePrecision]], N[(4.16438922228 * N[(x + -2.0), $MachinePrecision]), $MachinePrecision], N[(z * -0.0424927283095952), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -11500 \lor \neg \left(x \leq 7.5 \cdot 10^{-8}\right):\\
\;\;\;\;4.16438922228 \cdot \left(x + -2\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\end{array}
\end{array}
if x < -11500 or 7.4999999999999997e-8 < x Initial program 15.7%
associate-/l*19.8%
sub-neg19.8%
metadata-eval19.8%
fma-define19.8%
fma-define19.7%
fma-define19.7%
fma-define19.7%
fma-define19.7%
fma-define19.7%
fma-define19.7%
Simplified19.7%
Taylor expanded in x around inf 85.3%
if -11500 < x < 7.4999999999999997e-8Initial program 99.6%
associate-/l*99.5%
sub-neg99.5%
metadata-eval99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.6%
fma-define99.6%
fma-define99.6%
Simplified99.6%
Taylor expanded in x around 0 68.0%
Final simplification77.6%
(FPCore (x y z) :precision binary64 (if (or (<= x -11000.0) (not (<= x 2.0))) (* x 4.16438922228) (* z -0.0424927283095952)))
double code(double x, double y, double z) {
double tmp;
if ((x <= -11000.0) || !(x <= 2.0)) {
tmp = x * 4.16438922228;
} 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 <= (-11000.0d0)) .or. (.not. (x <= 2.0d0))) then
tmp = x * 4.16438922228d0
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 <= -11000.0) || !(x <= 2.0)) {
tmp = x * 4.16438922228;
} else {
tmp = z * -0.0424927283095952;
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -11000.0) or not (x <= 2.0): tmp = x * 4.16438922228 else: tmp = z * -0.0424927283095952 return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -11000.0) || !(x <= 2.0)) tmp = Float64(x * 4.16438922228); else tmp = Float64(z * -0.0424927283095952); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -11000.0) || ~((x <= 2.0))) tmp = x * 4.16438922228; else tmp = z * -0.0424927283095952; end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -11000.0], N[Not[LessEqual[x, 2.0]], $MachinePrecision]], N[(x * 4.16438922228), $MachinePrecision], N[(z * -0.0424927283095952), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -11000 \lor \neg \left(x \leq 2\right):\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{else}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\end{array}
\end{array}
if x < -11000 or 2 < x Initial program 15.1%
associate-/l*19.2%
sub-neg19.2%
metadata-eval19.2%
fma-define19.2%
fma-define19.2%
fma-define19.2%
fma-define19.2%
fma-define19.2%
fma-define19.2%
fma-define19.2%
Simplified19.2%
Taylor expanded in x around inf 85.8%
*-commutative85.8%
Simplified85.8%
if -11000 < x < 2Initial program 99.6%
associate-/l*99.5%
sub-neg99.5%
metadata-eval99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.5%
fma-define99.6%
fma-define99.6%
fma-define99.6%
Simplified99.6%
Taylor expanded in x around 0 67.5%
Final simplification77.5%
(FPCore (x y z) :precision binary64 (* z -0.0424927283095952))
double code(double x, double y, double z) {
return z * -0.0424927283095952;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = z * (-0.0424927283095952d0)
end function
public static double code(double x, double y, double z) {
return z * -0.0424927283095952;
}
def code(x, y, z): return z * -0.0424927283095952
function code(x, y, z) return Float64(z * -0.0424927283095952) end
function tmp = code(x, y, z) tmp = z * -0.0424927283095952; end
code[x_, y_, z_] := N[(z * -0.0424927283095952), $MachinePrecision]
\begin{array}{l}
\\
z \cdot -0.0424927283095952
\end{array}
Initial program 53.4%
associate-/l*55.6%
sub-neg55.6%
metadata-eval55.6%
fma-define55.6%
fma-define55.6%
fma-define55.6%
fma-define55.6%
fma-define55.6%
fma-define55.6%
fma-define55.6%
Simplified55.6%
Taylor expanded in x around 0 32.2%
Final simplification32.2%
(FPCore (x y z) :precision binary64 -8.32877844456)
double code(double x, double y, double z) {
return -8.32877844456;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = -8.32877844456d0
end function
public static double code(double x, double y, double z) {
return -8.32877844456;
}
def code(x, y, z): return -8.32877844456
function code(x, y, z) return -8.32877844456 end
function tmp = code(x, y, z) tmp = -8.32877844456; end
code[x_, y_, z_] := -8.32877844456
\begin{array}{l}
\\
-8.32877844456
\end{array}
Initial program 53.4%
associate-/l*55.6%
sub-neg55.6%
metadata-eval55.6%
fma-define55.6%
fma-define55.6%
fma-define55.6%
fma-define55.6%
fma-define55.6%
fma-define55.6%
fma-define55.6%
Simplified55.6%
Taylor expanded in x around inf 48.5%
Taylor expanded in x around 0 3.0%
(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 2024174
(FPCore (x y z)
:name "Numeric.SpecFunctions:logGamma from math-functions-0.1.5.2, C"
:precision binary64
:alt
(! :herbie-platform default (if (< x -332612872587000500000000000000000000000000000000000000000000000) (- (+ (/ y (* x x)) (* 104109730557/25000000000 x)) 1101139242984811/10000000000000) (if (< x 94299917145546730000000000000000000000000000000000000000) (* (/ (- x 2) 1) (/ (+ (* (+ (* (+ (* (+ (* x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z) (+ (* (+ (+ (* 263505074721/1000000000 x) (+ (* 216700011257/5000000000 (* x x)) (* x (* x x)))) 156699607947/500000000) x) 23533438303/500000000))) (- (+ (/ y (* x x)) (* 104109730557/25000000000 x)) 1101139242984811/10000000000000))))
(/ (* (- 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)))