
(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 21 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
(+
y
(*
x
(+ 137.519416416 (* x (+ 78.6994924154 (* x 4.16438922228))))))))
(t_1 (* x (+ x 43.3400022514)))
(t_2
(+ (* x (+ (* x (+ t_1 263.505074721)) 313.399215894)) 47.066876606)))
(if (<= (/ (* (- x 2.0) (+ t_0 z)) t_2) 2e+305)
(*
(+ x -2.0)
(+
(/
z
(+
47.066876606
(* x (+ 313.399215894 (fma x 263.505074721 (* x t_1))))))
(/ t_0 t_2)))
(*
(+ x -2.0)
(+ (/ y (pow x 3.0)) (+ 4.16438922228 (/ -101.7851458539211 x)))))))
double code(double x, double y, double z) {
double t_0 = x * (y + (x * (137.519416416 + (x * (78.6994924154 + (x * 4.16438922228))))));
double t_1 = x * (x + 43.3400022514);
double t_2 = (x * ((x * (t_1 + 263.505074721)) + 313.399215894)) + 47.066876606;
double tmp;
if ((((x - 2.0) * (t_0 + z)) / t_2) <= 2e+305) {
tmp = (x + -2.0) * ((z / (47.066876606 + (x * (313.399215894 + fma(x, 263.505074721, (x * t_1)))))) + (t_0 / t_2));
} else {
tmp = (x + -2.0) * ((y / pow(x, 3.0)) + (4.16438922228 + (-101.7851458539211 / x)));
}
return tmp;
}
function code(x, y, z) t_0 = Float64(x * Float64(y + Float64(x * Float64(137.519416416 + Float64(x * Float64(78.6994924154 + Float64(x * 4.16438922228))))))) t_1 = Float64(x * Float64(x + 43.3400022514)) t_2 = Float64(Float64(x * Float64(Float64(x * Float64(t_1 + 263.505074721)) + 313.399215894)) + 47.066876606) tmp = 0.0 if (Float64(Float64(Float64(x - 2.0) * Float64(t_0 + z)) / t_2) <= 2e+305) tmp = Float64(Float64(x + -2.0) * Float64(Float64(z / Float64(47.066876606 + Float64(x * Float64(313.399215894 + fma(x, 263.505074721, Float64(x * t_1)))))) + Float64(t_0 / t_2))); else tmp = Float64(Float64(x + -2.0) * Float64(Float64(y / (x ^ 3.0)) + Float64(4.16438922228 + Float64(-101.7851458539211 / x)))); end return tmp end
code[x_, y_, z_] := Block[{t$95$0 = N[(x * N[(y + N[(x * N[(137.519416416 + N[(x * N[(78.6994924154 + N[(x * 4.16438922228), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[(N[(x * N[(t$95$1 + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]}, If[LessEqual[N[(N[(N[(x - 2.0), $MachinePrecision] * N[(t$95$0 + z), $MachinePrecision]), $MachinePrecision] / t$95$2), $MachinePrecision], 2e+305], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z / N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * 263.505074721 + N[(x * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t$95$0 / t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(y / N[Power[x, 3.0], $MachinePrecision]), $MachinePrecision] + N[(4.16438922228 + N[(-101.7851458539211 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(y + x \cdot \left(137.519416416 + x \cdot \left(78.6994924154 + x \cdot 4.16438922228\right)\right)\right)\\
t_1 := x \cdot \left(x + 43.3400022514\right)\\
t_2 := x \cdot \left(x \cdot \left(t\_1 + 263.505074721\right) + 313.399215894\right) + 47.066876606\\
\mathbf{if}\;\frac{\left(x - 2\right) \cdot \left(t\_0 + z\right)}{t\_2} \leq 2 \cdot 10^{+305}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(\frac{z}{47.066876606 + x \cdot \left(313.399215894 + \mathsf{fma}\left(x, 263.505074721, x \cdot t\_1\right)\right)} + \frac{t\_0}{t\_2}\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(\frac{y}{{x}^{3}} + \left(4.16438922228 + \frac{-101.7851458539211}{x}\right)\right)\\
\end{array}
\end{array}
if (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) < 1.9999999999999999e305Initial program 94.5%
associate-/l*98.9%
sub-neg98.9%
metadata-eval98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
Simplified98.9%
Taylor expanded in z around 0 98.9%
distribute-lft-in98.9%
fma-define98.9%
+-commutative98.9%
Applied egg-rr98.9%
if 1.9999999999999999e305 < (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) Initial program 0.2%
associate-/l*3.9%
sub-neg3.9%
metadata-eval3.9%
fma-define3.9%
fma-define3.9%
fma-define3.9%
fma-define3.9%
fma-define3.9%
fma-define3.9%
fma-define3.9%
Simplified3.9%
Taylor expanded in x around -inf 98.1%
+-commutative98.1%
associate--l+98.1%
+-commutative98.1%
mul-1-neg98.1%
unsub-neg98.1%
associate-*r/98.1%
metadata-eval98.1%
mul-1-neg98.1%
unsub-neg98.1%
sub-neg98.1%
associate-*r/98.1%
metadata-eval98.1%
distribute-neg-frac98.1%
metadata-eval98.1%
Simplified98.1%
Taylor expanded in y around inf 98.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
(+
y
(*
x
(+ 137.519416416 (* x (+ 78.6994924154 (* x 4.16438922228)))))))))
(if (<= (/ (* (- x 2.0) (+ t_1 z)) t_0) 2e+305)
(* (+ x -2.0) (+ (/ t_1 t_0) (/ z t_0)))
(*
(+ x -2.0)
(+ (/ y (pow x 3.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 t_1 = x * (y + (x * (137.519416416 + (x * (78.6994924154 + (x * 4.16438922228))))));
double tmp;
if ((((x - 2.0) * (t_1 + z)) / t_0) <= 2e+305) {
tmp = (x + -2.0) * ((t_1 / t_0) + (z / t_0));
} else {
tmp = (x + -2.0) * ((y / pow(x, 3.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) :: t_1
real(8) :: tmp
t_0 = (x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0
t_1 = x * (y + (x * (137.519416416d0 + (x * (78.6994924154d0 + (x * 4.16438922228d0))))))
if ((((x - 2.0d0) * (t_1 + z)) / t_0) <= 2d+305) then
tmp = (x + (-2.0d0)) * ((t_1 / t_0) + (z / t_0))
else
tmp = (x + (-2.0d0)) * ((y / (x ** 3.0d0)) + (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 t_1 = x * (y + (x * (137.519416416 + (x * (78.6994924154 + (x * 4.16438922228))))));
double tmp;
if ((((x - 2.0) * (t_1 + z)) / t_0) <= 2e+305) {
tmp = (x + -2.0) * ((t_1 / t_0) + (z / t_0));
} else {
tmp = (x + -2.0) * ((y / Math.pow(x, 3.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 t_1 = x * (y + (x * (137.519416416 + (x * (78.6994924154 + (x * 4.16438922228)))))) tmp = 0 if (((x - 2.0) * (t_1 + z)) / t_0) <= 2e+305: tmp = (x + -2.0) * ((t_1 / t_0) + (z / t_0)) else: tmp = (x + -2.0) * ((y / math.pow(x, 3.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) t_1 = Float64(x * Float64(y + Float64(x * Float64(137.519416416 + Float64(x * Float64(78.6994924154 + Float64(x * 4.16438922228))))))) tmp = 0.0 if (Float64(Float64(Float64(x - 2.0) * Float64(t_1 + z)) / t_0) <= 2e+305) tmp = Float64(Float64(x + -2.0) * Float64(Float64(t_1 / t_0) + Float64(z / t_0))); else tmp = Float64(Float64(x + -2.0) * Float64(Float64(y / (x ^ 3.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; t_1 = x * (y + (x * (137.519416416 + (x * (78.6994924154 + (x * 4.16438922228)))))); tmp = 0.0; if ((((x - 2.0) * (t_1 + z)) / t_0) <= 2e+305) tmp = (x + -2.0) * ((t_1 / t_0) + (z / t_0)); else tmp = (x + -2.0) * ((y / (x ^ 3.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]}, Block[{t$95$1 = N[(x * N[(y + N[(x * N[(137.519416416 + N[(x * N[(78.6994924154 + N[(x * 4.16438922228), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $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+305], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(t$95$1 / t$95$0), $MachinePrecision] + N[(z / t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(y / N[Power[x, 3.0], $MachinePrecision]), $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\\
t_1 := x \cdot \left(y + x \cdot \left(137.519416416 + x \cdot \left(78.6994924154 + x \cdot 4.16438922228\right)\right)\right)\\
\mathbf{if}\;\frac{\left(x - 2\right) \cdot \left(t\_1 + z\right)}{t\_0} \leq 2 \cdot 10^{+305}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(\frac{t\_1}{t\_0} + \frac{z}{t\_0}\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(\frac{y}{{x}^{3}} + \left(4.16438922228 + \frac{-101.7851458539211}{x}\right)\right)\\
\end{array}
\end{array}
if (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) < 1.9999999999999999e305Initial program 94.5%
associate-/l*98.9%
sub-neg98.9%
metadata-eval98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
Simplified98.9%
Taylor expanded in z around 0 98.9%
if 1.9999999999999999e305 < (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) Initial program 0.2%
associate-/l*3.9%
sub-neg3.9%
metadata-eval3.9%
fma-define3.9%
fma-define3.9%
fma-define3.9%
fma-define3.9%
fma-define3.9%
fma-define3.9%
fma-define3.9%
Simplified3.9%
Taylor expanded in x around -inf 98.1%
+-commutative98.1%
associate--l+98.1%
+-commutative98.1%
mul-1-neg98.1%
unsub-neg98.1%
associate-*r/98.1%
metadata-eval98.1%
mul-1-neg98.1%
unsub-neg98.1%
sub-neg98.1%
associate-*r/98.1%
metadata-eval98.1%
distribute-neg-frac98.1%
metadata-eval98.1%
Simplified98.1%
Taylor expanded in y around inf 98.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 2.0)
(+
(*
x
(+
y
(*
x
(+ 137.519416416 (* x (+ 78.6994924154 (* x 4.16438922228)))))))
z))
t_0)))
(if (<= t_1 (- INFINITY))
(* (+ x -2.0) (+ 4.16438922228 (/ z t_0)))
(if (<= t_1 1e+228)
t_1
(+
(* (- x 2.0) 4.16438922228)
(* z (+ (/ x t_0) (* 2.0 (/ -1.0 t_0)))))))))
double code(double x, double y, double z) {
double t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606;
double t_1 = ((x - 2.0) * ((x * (y + (x * (137.519416416 + (x * (78.6994924154 + (x * 4.16438922228))))))) + z)) / t_0;
double tmp;
if (t_1 <= -((double) INFINITY)) {
tmp = (x + -2.0) * (4.16438922228 + (z / t_0));
} else if (t_1 <= 1e+228) {
tmp = t_1;
} else {
tmp = ((x - 2.0) * 4.16438922228) + (z * ((x / t_0) + (2.0 * (-1.0 / t_0))));
}
return tmp;
}
public static double code(double x, double y, double z) {
double t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606;
double t_1 = ((x - 2.0) * ((x * (y + (x * (137.519416416 + (x * (78.6994924154 + (x * 4.16438922228))))))) + z)) / t_0;
double tmp;
if (t_1 <= -Double.POSITIVE_INFINITY) {
tmp = (x + -2.0) * (4.16438922228 + (z / t_0));
} else if (t_1 <= 1e+228) {
tmp = t_1;
} else {
tmp = ((x - 2.0) * 4.16438922228) + (z * ((x / t_0) + (2.0 * (-1.0 / t_0))));
}
return tmp;
}
def code(x, y, z): t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606 t_1 = ((x - 2.0) * ((x * (y + (x * (137.519416416 + (x * (78.6994924154 + (x * 4.16438922228))))))) + z)) / t_0 tmp = 0 if t_1 <= -math.inf: tmp = (x + -2.0) * (4.16438922228 + (z / t_0)) elif t_1 <= 1e+228: tmp = t_1 else: tmp = ((x - 2.0) * 4.16438922228) + (z * ((x / t_0) + (2.0 * (-1.0 / t_0)))) return tmp
function code(x, y, z) t_0 = Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) t_1 = Float64(Float64(Float64(x - 2.0) * Float64(Float64(x * Float64(y + Float64(x * Float64(137.519416416 + Float64(x * Float64(78.6994924154 + Float64(x * 4.16438922228))))))) + z)) / t_0) tmp = 0.0 if (t_1 <= Float64(-Inf)) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(z / t_0))); elseif (t_1 <= 1e+228) tmp = t_1; else tmp = Float64(Float64(Float64(x - 2.0) * 4.16438922228) + Float64(z * Float64(Float64(x / t_0) + Float64(2.0 * Float64(-1.0 / t_0))))); end return tmp end
function tmp_2 = code(x, y, z) t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606; t_1 = ((x - 2.0) * ((x * (y + (x * (137.519416416 + (x * (78.6994924154 + (x * 4.16438922228))))))) + z)) / t_0; tmp = 0.0; if (t_1 <= -Inf) tmp = (x + -2.0) * (4.16438922228 + (z / t_0)); elseif (t_1 <= 1e+228) tmp = t_1; else tmp = ((x - 2.0) * 4.16438922228) + (z * ((x / t_0) + (2.0 * (-1.0 / t_0)))); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]}, Block[{t$95$1 = N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(x * N[(y + N[(x * N[(137.519416416 + N[(x * N[(78.6994924154 + N[(x * 4.16438922228), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / t$95$0), $MachinePrecision]}, If[LessEqual[t$95$1, (-Infinity)], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(z / t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 1e+228], t$95$1, N[(N[(N[(x - 2.0), $MachinePrecision] * 4.16438922228), $MachinePrecision] + N[(z * N[(N[(x / t$95$0), $MachinePrecision] + N[(2.0 * N[(-1.0 / t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606\\
t_1 := \frac{\left(x - 2\right) \cdot \left(x \cdot \left(y + x \cdot \left(137.519416416 + x \cdot \left(78.6994924154 + x \cdot 4.16438922228\right)\right)\right) + z\right)}{t\_0}\\
\mathbf{if}\;t\_1 \leq -\infty:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{z}{t\_0}\right)\\
\mathbf{elif}\;t\_1 \leq 10^{+228}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\left(x - 2\right) \cdot 4.16438922228 + z \cdot \left(\frac{x}{t\_0} + 2 \cdot \frac{-1}{t\_0}\right)\\
\end{array}
\end{array}
if (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) < -inf.0Initial program 4.2%
associate-/l*87.6%
sub-neg87.6%
metadata-eval87.6%
fma-define87.2%
fma-define87.2%
fma-define87.2%
fma-define87.2%
fma-define87.2%
fma-define87.2%
fma-define87.2%
Simplified87.2%
Taylor expanded in z around 0 87.6%
Taylor expanded in x around inf 87.4%
if -inf.0 < (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) < 9.9999999999999992e227Initial program 99.5%
if 9.9999999999999992e227 < (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) Initial program 4.8%
associate-/l*8.3%
sub-neg8.3%
metadata-eval8.3%
fma-define8.3%
fma-define8.3%
fma-define8.3%
fma-define8.3%
fma-define8.3%
fma-define8.3%
fma-define8.3%
Simplified8.3%
Taylor expanded in z around 0 8.3%
Taylor expanded in x around inf 96.7%
Taylor expanded in z around 0 96.7%
Final simplification97.9%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))
(t_1
(/
(*
(- x 2.0)
(+
(*
x
(+
y
(*
x
(+ 137.519416416 (* x (+ 78.6994924154 (* x 4.16438922228)))))))
z))
t_0)))
(if (or (<= t_1 (- INFINITY)) (not (<= t_1 1e+264)))
(* (+ x -2.0) (+ 4.16438922228 (/ z t_0)))
t_1)))
double code(double x, double y, double z) {
double t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606;
double t_1 = ((x - 2.0) * ((x * (y + (x * (137.519416416 + (x * (78.6994924154 + (x * 4.16438922228))))))) + z)) / t_0;
double tmp;
if ((t_1 <= -((double) INFINITY)) || !(t_1 <= 1e+264)) {
tmp = (x + -2.0) * (4.16438922228 + (z / t_0));
} else {
tmp = t_1;
}
return tmp;
}
public static double code(double x, double y, double z) {
double t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606;
double t_1 = ((x - 2.0) * ((x * (y + (x * (137.519416416 + (x * (78.6994924154 + (x * 4.16438922228))))))) + z)) / t_0;
double tmp;
if ((t_1 <= -Double.POSITIVE_INFINITY) || !(t_1 <= 1e+264)) {
tmp = (x + -2.0) * (4.16438922228 + (z / t_0));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z): t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606 t_1 = ((x - 2.0) * ((x * (y + (x * (137.519416416 + (x * (78.6994924154 + (x * 4.16438922228))))))) + z)) / t_0 tmp = 0 if (t_1 <= -math.inf) or not (t_1 <= 1e+264): tmp = (x + -2.0) * (4.16438922228 + (z / t_0)) else: tmp = t_1 return tmp
function code(x, y, z) t_0 = Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) t_1 = Float64(Float64(Float64(x - 2.0) * Float64(Float64(x * Float64(y + Float64(x * Float64(137.519416416 + Float64(x * Float64(78.6994924154 + Float64(x * 4.16438922228))))))) + z)) / t_0) tmp = 0.0 if ((t_1 <= Float64(-Inf)) || !(t_1 <= 1e+264)) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(z / t_0))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z) t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606; t_1 = ((x - 2.0) * ((x * (y + (x * (137.519416416 + (x * (78.6994924154 + (x * 4.16438922228))))))) + z)) / t_0; tmp = 0.0; if ((t_1 <= -Inf) || ~((t_1 <= 1e+264))) tmp = (x + -2.0) * (4.16438922228 + (z / t_0)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]}, Block[{t$95$1 = N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(x * N[(y + N[(x * N[(137.519416416 + N[(x * N[(78.6994924154 + N[(x * 4.16438922228), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / t$95$0), $MachinePrecision]}, If[Or[LessEqual[t$95$1, (-Infinity)], N[Not[LessEqual[t$95$1, 1e+264]], $MachinePrecision]], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(z / t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606\\
t_1 := \frac{\left(x - 2\right) \cdot \left(x \cdot \left(y + x \cdot \left(137.519416416 + x \cdot \left(78.6994924154 + x \cdot 4.16438922228\right)\right)\right) + z\right)}{t\_0}\\
\mathbf{if}\;t\_1 \leq -\infty \lor \neg \left(t\_1 \leq 10^{+264}\right):\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{z}{t\_0}\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) < -inf.0 or 1.00000000000000004e264 < (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) Initial program 2.3%
associate-/l*11.4%
sub-neg11.4%
metadata-eval11.4%
fma-define11.4%
fma-define11.4%
fma-define11.4%
fma-define11.4%
fma-define11.4%
fma-define11.4%
fma-define11.4%
Simplified11.4%
Taylor expanded in z around 0 11.4%
Taylor expanded in x around inf 96.0%
if -inf.0 < (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) < 1.00000000000000004e264Initial program 99.5%
Final simplification97.9%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))
(t_1
(*
x
(+
y
(*
x
(+ 137.519416416 (* x (+ 78.6994924154 (* x 4.16438922228)))))))))
(if (<= (/ (* (- x 2.0) (+ t_1 z)) t_0) INFINITY)
(* (+ x -2.0) (+ (/ t_1 t_0) (/ z t_0)))
(* x 4.16438922228))))
double code(double x, double y, double z) {
double t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606;
double t_1 = x * (y + (x * (137.519416416 + (x * (78.6994924154 + (x * 4.16438922228))))));
double tmp;
if ((((x - 2.0) * (t_1 + z)) / t_0) <= ((double) INFINITY)) {
tmp = (x + -2.0) * ((t_1 / t_0) + (z / t_0));
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
public static double code(double x, double y, double z) {
double t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606;
double t_1 = x * (y + (x * (137.519416416 + (x * (78.6994924154 + (x * 4.16438922228))))));
double tmp;
if ((((x - 2.0) * (t_1 + z)) / t_0) <= Double.POSITIVE_INFINITY) {
tmp = (x + -2.0) * ((t_1 / t_0) + (z / t_0));
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
def code(x, y, z): t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606 t_1 = x * (y + (x * (137.519416416 + (x * (78.6994924154 + (x * 4.16438922228)))))) tmp = 0 if (((x - 2.0) * (t_1 + z)) / t_0) <= math.inf: tmp = (x + -2.0) * ((t_1 / t_0) + (z / t_0)) else: tmp = x * 4.16438922228 return tmp
function code(x, y, z) t_0 = Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) t_1 = Float64(x * Float64(y + Float64(x * Float64(137.519416416 + Float64(x * Float64(78.6994924154 + Float64(x * 4.16438922228))))))) tmp = 0.0 if (Float64(Float64(Float64(x - 2.0) * Float64(t_1 + z)) / t_0) <= Inf) tmp = Float64(Float64(x + -2.0) * Float64(Float64(t_1 / t_0) + Float64(z / t_0))); else tmp = Float64(x * 4.16438922228); end return tmp end
function tmp_2 = code(x, y, z) t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606; t_1 = x * (y + (x * (137.519416416 + (x * (78.6994924154 + (x * 4.16438922228)))))); tmp = 0.0; if ((((x - 2.0) * (t_1 + z)) / t_0) <= Inf) tmp = (x + -2.0) * ((t_1 / t_0) + (z / t_0)); else tmp = x * 4.16438922228; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]}, Block[{t$95$1 = N[(x * N[(y + N[(x * N[(137.519416416 + N[(x * N[(78.6994924154 + N[(x * 4.16438922228), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(N[(N[(x - 2.0), $MachinePrecision] * N[(t$95$1 + z), $MachinePrecision]), $MachinePrecision] / t$95$0), $MachinePrecision], Infinity], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(t$95$1 / t$95$0), $MachinePrecision] + N[(z / t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * 4.16438922228), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606\\
t_1 := x \cdot \left(y + x \cdot \left(137.519416416 + x \cdot \left(78.6994924154 + x \cdot 4.16438922228\right)\right)\right)\\
\mathbf{if}\;\frac{\left(x - 2\right) \cdot \left(t\_1 + z\right)}{t\_0} \leq \infty:\\
\;\;\;\;\left(x + -2\right) \cdot \left(\frac{t\_1}{t\_0} + \frac{z}{t\_0}\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228\\
\end{array}
\end{array}
if (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) < +inf.0Initial program 91.6%
associate-/l*98.3%
sub-neg98.3%
metadata-eval98.3%
fma-define98.3%
fma-define98.3%
fma-define98.3%
fma-define98.3%
fma-define98.3%
fma-define98.3%
fma-define98.3%
Simplified98.3%
Taylor expanded in z around 0 98.3%
if +inf.0 < (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) Initial program 0.0%
associate-/l*0.0%
sub-neg0.0%
metadata-eval0.0%
fma-define0.0%
fma-define0.0%
fma-define0.0%
fma-define0.0%
fma-define0.0%
fma-define0.0%
fma-define0.0%
Simplified0.0%
Taylor expanded in x around -inf 99.0%
+-commutative99.0%
associate--l+99.0%
+-commutative99.0%
mul-1-neg99.0%
unsub-neg99.0%
associate-*r/99.0%
metadata-eval99.0%
mul-1-neg99.0%
unsub-neg99.0%
sub-neg99.0%
associate-*r/99.0%
metadata-eval99.0%
distribute-neg-frac99.0%
metadata-eval99.0%
Simplified99.0%
Taylor expanded in x around inf 98.4%
*-commutative98.4%
Simplified98.4%
Final simplification98.4%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606)))
(if (or (<= x -5200000.0) (not (<= x 85000000.0)))
(* (+ x -2.0) (+ (/ z t_0) (- 4.16438922228 (/ 101.7851458539211 x))))
(/ (* (- x 2.0) (+ z (* x (+ y (* x 137.519416416))))) 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 <= -5200000.0) || !(x <= 85000000.0)) {
tmp = (x + -2.0) * ((z / t_0) + (4.16438922228 - (101.7851458539211 / x)));
} else {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / 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 <= (-5200000.0d0)) .or. (.not. (x <= 85000000.0d0))) then
tmp = (x + (-2.0d0)) * ((z / t_0) + (4.16438922228d0 - (101.7851458539211d0 / x)))
else
tmp = ((x - 2.0d0) * (z + (x * (y + (x * 137.519416416d0))))) / 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 <= -5200000.0) || !(x <= 85000000.0)) {
tmp = (x + -2.0) * ((z / t_0) + (4.16438922228 - (101.7851458539211 / x)));
} else {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / 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 <= -5200000.0) or not (x <= 85000000.0): tmp = (x + -2.0) * ((z / t_0) + (4.16438922228 - (101.7851458539211 / x))) else: tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / 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 <= -5200000.0) || !(x <= 85000000.0)) tmp = Float64(Float64(x + -2.0) * Float64(Float64(z / t_0) + Float64(4.16438922228 - Float64(101.7851458539211 / x)))); else tmp = Float64(Float64(Float64(x - 2.0) * Float64(z + Float64(x * Float64(y + Float64(x * 137.519416416))))) / 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 <= -5200000.0) || ~((x <= 85000000.0))) tmp = (x + -2.0) * ((z / t_0) + (4.16438922228 - (101.7851458539211 / x))); else tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / 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[Or[LessEqual[x, -5200000.0], N[Not[LessEqual[x, 85000000.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], 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]]]
\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 -5200000 \lor \neg \left(x \leq 85000000\right):\\
\;\;\;\;\left(x + -2\right) \cdot \left(\frac{z}{t\_0} + \left(4.16438922228 - \frac{101.7851458539211}{x}\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot \left(y + x \cdot 137.519416416\right)\right)}{t\_0}\\
\end{array}
\end{array}
if x < -5.2e6 or 8.5e7 < x Initial program 12.1%
associate-/l*20.4%
sub-neg20.4%
metadata-eval20.4%
fma-define20.4%
fma-define20.4%
fma-define20.4%
fma-define20.4%
fma-define20.4%
fma-define20.4%
fma-define20.4%
Simplified20.4%
Taylor expanded in z around 0 20.4%
Taylor expanded in x around inf 93.7%
associate-*r/93.7%
metadata-eval93.7%
Simplified93.7%
if -5.2e6 < x < 8.5e7Initial program 99.6%
Taylor expanded in x around 0 99.2%
*-commutative99.2%
Simplified99.2%
Final simplification96.5%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(/
z
(+
(*
x
(+
(* x (+ (* x (+ x 43.3400022514)) 263.505074721))
313.399215894))
47.066876606))))
(if (or (<= x -3500000.0) (not (<= x 1.25)))
(* (+ x -2.0) (+ 4.16438922228 t_0))
(* (+ x -2.0) (+ t_0 (* 0.0212463641547976 (* x y)))))))
double code(double x, double y, double z) {
double t_0 = z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606);
double tmp;
if ((x <= -3500000.0) || !(x <= 1.25)) {
tmp = (x + -2.0) * (4.16438922228 + t_0);
} else {
tmp = (x + -2.0) * (t_0 + (0.0212463641547976 * (x * y)));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = z / ((x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0)
if ((x <= (-3500000.0d0)) .or. (.not. (x <= 1.25d0))) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + t_0)
else
tmp = (x + (-2.0d0)) * (t_0 + (0.0212463641547976d0 * (x * y)))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606);
double tmp;
if ((x <= -3500000.0) || !(x <= 1.25)) {
tmp = (x + -2.0) * (4.16438922228 + t_0);
} else {
tmp = (x + -2.0) * (t_0 + (0.0212463641547976 * (x * y)));
}
return tmp;
}
def code(x, y, z): t_0 = z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) tmp = 0 if (x <= -3500000.0) or not (x <= 1.25): tmp = (x + -2.0) * (4.16438922228 + t_0) else: tmp = (x + -2.0) * (t_0 + (0.0212463641547976 * (x * y))) return tmp
function code(x, y, z) t_0 = Float64(z / Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) tmp = 0.0 if ((x <= -3500000.0) || !(x <= 1.25)) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + t_0)); else tmp = Float64(Float64(x + -2.0) * Float64(t_0 + Float64(0.0212463641547976 * Float64(x * y)))); end return tmp end
function tmp_2 = code(x, y, z) t_0 = z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606); tmp = 0.0; if ((x <= -3500000.0) || ~((x <= 1.25))) tmp = (x + -2.0) * (4.16438922228 + t_0); else tmp = (x + -2.0) * (t_0 + (0.0212463641547976 * (x * y))); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = 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]}, If[Or[LessEqual[x, -3500000.0], N[Not[LessEqual[x, 1.25]], $MachinePrecision]], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + t$95$0), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(t$95$0 + N[(0.0212463641547976 * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{z}{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 -3500000 \lor \neg \left(x \leq 1.25\right):\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + t\_0\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(t\_0 + 0.0212463641547976 \cdot \left(x \cdot y\right)\right)\\
\end{array}
\end{array}
if x < -3.5e6 or 1.25 < x Initial program 13.4%
associate-/l*21.6%
sub-neg21.6%
metadata-eval21.6%
fma-define21.6%
fma-define21.6%
fma-define21.6%
fma-define21.6%
fma-define21.6%
fma-define21.6%
fma-define21.6%
Simplified21.6%
Taylor expanded in z around 0 21.6%
Taylor expanded in x around inf 92.1%
if -3.5e6 < x < 1.25Initial program 99.7%
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 z around 0 99.6%
Taylor expanded in x around 0 93.3%
Final simplification92.7%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(/
z
(+
(*
x
(+
(* x (+ (* x (+ x 43.3400022514)) 263.505074721))
313.399215894))
47.066876606))))
(if (or (<= x -3500000.0) (not (<= x 1.25)))
(* (+ x -2.0) (+ t_0 (- 4.16438922228 (/ 101.7851458539211 x))))
(* (+ x -2.0) (+ t_0 (* 0.0212463641547976 (* x y)))))))
double code(double x, double y, double z) {
double t_0 = z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606);
double tmp;
if ((x <= -3500000.0) || !(x <= 1.25)) {
tmp = (x + -2.0) * (t_0 + (4.16438922228 - (101.7851458539211 / x)));
} else {
tmp = (x + -2.0) * (t_0 + (0.0212463641547976 * (x * y)));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = z / ((x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0)
if ((x <= (-3500000.0d0)) .or. (.not. (x <= 1.25d0))) then
tmp = (x + (-2.0d0)) * (t_0 + (4.16438922228d0 - (101.7851458539211d0 / x)))
else
tmp = (x + (-2.0d0)) * (t_0 + (0.0212463641547976d0 * (x * y)))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606);
double tmp;
if ((x <= -3500000.0) || !(x <= 1.25)) {
tmp = (x + -2.0) * (t_0 + (4.16438922228 - (101.7851458539211 / x)));
} else {
tmp = (x + -2.0) * (t_0 + (0.0212463641547976 * (x * y)));
}
return tmp;
}
def code(x, y, z): t_0 = z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) tmp = 0 if (x <= -3500000.0) or not (x <= 1.25): tmp = (x + -2.0) * (t_0 + (4.16438922228 - (101.7851458539211 / x))) else: tmp = (x + -2.0) * (t_0 + (0.0212463641547976 * (x * y))) return tmp
function code(x, y, z) t_0 = Float64(z / Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) tmp = 0.0 if ((x <= -3500000.0) || !(x <= 1.25)) tmp = Float64(Float64(x + -2.0) * Float64(t_0 + Float64(4.16438922228 - Float64(101.7851458539211 / x)))); else tmp = Float64(Float64(x + -2.0) * Float64(t_0 + Float64(0.0212463641547976 * Float64(x * y)))); end return tmp end
function tmp_2 = code(x, y, z) t_0 = z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606); tmp = 0.0; if ((x <= -3500000.0) || ~((x <= 1.25))) tmp = (x + -2.0) * (t_0 + (4.16438922228 - (101.7851458539211 / x))); else tmp = (x + -2.0) * (t_0 + (0.0212463641547976 * (x * y))); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = 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]}, If[Or[LessEqual[x, -3500000.0], N[Not[LessEqual[x, 1.25]], $MachinePrecision]], N[(N[(x + -2.0), $MachinePrecision] * N[(t$95$0 + N[(4.16438922228 - N[(101.7851458539211 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(t$95$0 + N[(0.0212463641547976 * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{z}{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 -3500000 \lor \neg \left(x \leq 1.25\right):\\
\;\;\;\;\left(x + -2\right) \cdot \left(t\_0 + \left(4.16438922228 - \frac{101.7851458539211}{x}\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(t\_0 + 0.0212463641547976 \cdot \left(x \cdot y\right)\right)\\
\end{array}
\end{array}
if x < -3.5e6 or 1.25 < x Initial program 13.4%
associate-/l*21.6%
sub-neg21.6%
metadata-eval21.6%
fma-define21.6%
fma-define21.6%
fma-define21.6%
fma-define21.6%
fma-define21.6%
fma-define21.6%
fma-define21.6%
Simplified21.6%
Taylor expanded in z around 0 21.6%
Taylor expanded in x around inf 92.7%
associate-*r/92.7%
metadata-eval92.7%
Simplified92.7%
if -3.5e6 < x < 1.25Initial program 99.7%
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 z around 0 99.6%
Taylor expanded in x around 0 93.3%
Final simplification93.0%
(FPCore (x y z)
:precision binary64
(if (or (<= x -3500000.0) (not (<= x 3.9e-6)))
(*
(+ x -2.0)
(+
4.16438922228
(/
z
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))))
(+
(*
x
(- (* 0.0212463641547976 (+ z (* y -2.0))) (* z -0.28294182010212804)))
(* z -0.0424927283095952))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -3500000.0) || !(x <= 3.9e-6)) {
tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)));
} else {
tmp = (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804))) + (z * -0.0424927283095952);
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((x <= (-3500000.0d0)) .or. (.not. (x <= 3.9d-6))) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + (z / ((x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0)))
else
tmp = (x * ((0.0212463641547976d0 * (z + (y * (-2.0d0)))) - (z * (-0.28294182010212804d0)))) + (z * (-0.0424927283095952d0))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -3500000.0) || !(x <= 3.9e-6)) {
tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)));
} else {
tmp = (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804))) + (z * -0.0424927283095952);
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -3500000.0) or not (x <= 3.9e-6): tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606))) else: tmp = (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804))) + (z * -0.0424927283095952) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -3500000.0) || !(x <= 3.9e-6)) 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 * Float64(Float64(0.0212463641547976 * Float64(z + Float64(y * -2.0))) - Float64(z * -0.28294182010212804))) + Float64(z * -0.0424927283095952)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -3500000.0) || ~((x <= 3.9e-6))) tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606))); else tmp = (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804))) + (z * -0.0424927283095952); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -3500000.0], N[Not[LessEqual[x, 3.9e-6]], $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 * N[(N[(0.0212463641547976 * N[(z + N[(y * -2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(z * -0.28294182010212804), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(z * -0.0424927283095952), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -3500000 \lor \neg \left(x \leq 3.9 \cdot 10^{-6}\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}:\\
\;\;\;\;x \cdot \left(0.0212463641547976 \cdot \left(z + y \cdot -2\right) - z \cdot -0.28294182010212804\right) + z \cdot -0.0424927283095952\\
\end{array}
\end{array}
if x < -3.5e6 or 3.8999999999999999e-6 < x Initial program 16.0%
associate-/l*23.9%
sub-neg23.9%
metadata-eval23.9%
fma-define23.9%
fma-define23.9%
fma-define23.9%
fma-define23.9%
fma-define23.9%
fma-define23.9%
fma-define23.9%
Simplified23.9%
Taylor expanded in z around 0 23.9%
Taylor expanded in x around inf 91.0%
if -3.5e6 < x < 3.8999999999999999e-6Initial program 99.7%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
Simplified99.7%
Taylor expanded in x around 0 94.4%
Final simplification92.6%
(FPCore (x y z)
:precision binary64
(if (<= x -3500000.0)
(- (+ (* x 4.16438922228) (/ 3655.1204654076414 x)) 110.1139242984811)
(if (<= x 2400.0)
(*
(+ x -2.0)
(+
(* z 0.0212463641547976)
(* x (- (* y 0.0212463641547976) (* z 0.14147091005106402)))))
(- (* x 4.16438922228) 110.1139242984811))))
double code(double x, double y, double z) {
double tmp;
if (x <= -3500000.0) {
tmp = ((x * 4.16438922228) + (3655.1204654076414 / x)) - 110.1139242984811;
} else if (x <= 2400.0) {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402))));
} else {
tmp = (x * 4.16438922228) - 110.1139242984811;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-3500000.0d0)) then
tmp = ((x * 4.16438922228d0) + (3655.1204654076414d0 / x)) - 110.1139242984811d0
else if (x <= 2400.0d0) then
tmp = (x + (-2.0d0)) * ((z * 0.0212463641547976d0) + (x * ((y * 0.0212463641547976d0) - (z * 0.14147091005106402d0))))
else
tmp = (x * 4.16438922228d0) - 110.1139242984811d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -3500000.0) {
tmp = ((x * 4.16438922228) + (3655.1204654076414 / x)) - 110.1139242984811;
} else if (x <= 2400.0) {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402))));
} else {
tmp = (x * 4.16438922228) - 110.1139242984811;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -3500000.0: tmp = ((x * 4.16438922228) + (3655.1204654076414 / x)) - 110.1139242984811 elif x <= 2400.0: tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402)))) else: tmp = (x * 4.16438922228) - 110.1139242984811 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -3500000.0) tmp = Float64(Float64(Float64(x * 4.16438922228) + Float64(3655.1204654076414 / x)) - 110.1139242984811); elseif (x <= 2400.0) tmp = Float64(Float64(x + -2.0) * Float64(Float64(z * 0.0212463641547976) + Float64(x * Float64(Float64(y * 0.0212463641547976) - Float64(z * 0.14147091005106402))))); else tmp = Float64(Float64(x * 4.16438922228) - 110.1139242984811); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -3500000.0) tmp = ((x * 4.16438922228) + (3655.1204654076414 / x)) - 110.1139242984811; elseif (x <= 2400.0) tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402)))); else tmp = (x * 4.16438922228) - 110.1139242984811; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -3500000.0], N[(N[(N[(x * 4.16438922228), $MachinePrecision] + N[(3655.1204654076414 / x), $MachinePrecision]), $MachinePrecision] - 110.1139242984811), $MachinePrecision], If[LessEqual[x, 2400.0], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z * 0.0212463641547976), $MachinePrecision] + N[(x * N[(N[(y * 0.0212463641547976), $MachinePrecision] - N[(z * 0.14147091005106402), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x * 4.16438922228), $MachinePrecision] - 110.1139242984811), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -3500000:\\
\;\;\;\;\left(x \cdot 4.16438922228 + \frac{3655.1204654076414}{x}\right) - 110.1139242984811\\
\mathbf{elif}\;x \leq 2400:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976 + x \cdot \left(y \cdot 0.0212463641547976 - z \cdot 0.14147091005106402\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228 - 110.1139242984811\\
\end{array}
\end{array}
if x < -3.5e6Initial program 11.5%
associate-/l*21.0%
sub-neg21.0%
metadata-eval21.0%
fma-define21.0%
fma-define21.0%
fma-define21.0%
fma-define21.0%
fma-define21.0%
fma-define21.0%
fma-define21.0%
Simplified21.0%
Taylor expanded in x around inf 92.5%
Taylor expanded in x around 0 92.5%
if -3.5e6 < x < 2400Initial 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 90.5%
if 2400 < x Initial program 12.8%
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 86.8%
Final simplification90.3%
(FPCore (x y z)
:precision binary64
(if (<= x -120.0)
(- (+ (* x 4.16438922228) (/ 3655.1204654076414 x)) 110.1139242984811)
(if (<= x 2100.0)
(/
(* (- x 2.0) z)
(+ 47.066876606 (* x (+ 313.399215894 (* x 263.505074721)))))
(- (* x 4.16438922228) 110.1139242984811))))
double code(double x, double y, double z) {
double tmp;
if (x <= -120.0) {
tmp = ((x * 4.16438922228) + (3655.1204654076414 / x)) - 110.1139242984811;
} else if (x <= 2100.0) {
tmp = ((x - 2.0) * z) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))));
} else {
tmp = (x * 4.16438922228) - 110.1139242984811;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-120.0d0)) then
tmp = ((x * 4.16438922228d0) + (3655.1204654076414d0 / x)) - 110.1139242984811d0
else if (x <= 2100.0d0) then
tmp = ((x - 2.0d0) * z) / (47.066876606d0 + (x * (313.399215894d0 + (x * 263.505074721d0))))
else
tmp = (x * 4.16438922228d0) - 110.1139242984811d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -120.0) {
tmp = ((x * 4.16438922228) + (3655.1204654076414 / x)) - 110.1139242984811;
} else if (x <= 2100.0) {
tmp = ((x - 2.0) * z) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))));
} else {
tmp = (x * 4.16438922228) - 110.1139242984811;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -120.0: tmp = ((x * 4.16438922228) + (3655.1204654076414 / x)) - 110.1139242984811 elif x <= 2100.0: tmp = ((x - 2.0) * z) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721)))) else: tmp = (x * 4.16438922228) - 110.1139242984811 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -120.0) tmp = Float64(Float64(Float64(x * 4.16438922228) + Float64(3655.1204654076414 / x)) - 110.1139242984811); elseif (x <= 2100.0) tmp = Float64(Float64(Float64(x - 2.0) * z) / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * 263.505074721))))); else tmp = Float64(Float64(x * 4.16438922228) - 110.1139242984811); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -120.0) tmp = ((x * 4.16438922228) + (3655.1204654076414 / x)) - 110.1139242984811; elseif (x <= 2100.0) tmp = ((x - 2.0) * z) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721)))); else tmp = (x * 4.16438922228) - 110.1139242984811; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -120.0], N[(N[(N[(x * 4.16438922228), $MachinePrecision] + N[(3655.1204654076414 / x), $MachinePrecision]), $MachinePrecision] - 110.1139242984811), $MachinePrecision], If[LessEqual[x, 2100.0], N[(N[(N[(x - 2.0), $MachinePrecision] * z), $MachinePrecision] / N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * 263.505074721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x * 4.16438922228), $MachinePrecision] - 110.1139242984811), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -120:\\
\;\;\;\;\left(x \cdot 4.16438922228 + \frac{3655.1204654076414}{x}\right) - 110.1139242984811\\
\mathbf{elif}\;x \leq 2100:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot z}{47.066876606 + x \cdot \left(313.399215894 + x \cdot 263.505074721\right)}\\
\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228 - 110.1139242984811\\
\end{array}
\end{array}
if x < -120Initial program 12.8%
associate-/l*22.1%
sub-neg22.1%
metadata-eval22.1%
fma-define22.0%
fma-define22.0%
fma-define22.0%
fma-define22.0%
fma-define22.0%
fma-define22.0%
fma-define22.0%
Simplified22.0%
Taylor expanded in x around inf 91.3%
Taylor expanded in x around 0 91.3%
if -120 < x < 2100Initial 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 z around inf 66.3%
Taylor expanded in x around 0 65.2%
*-commutative65.2%
Simplified65.2%
if 2100 < x Initial program 12.8%
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 86.8%
Final simplification77.3%
(FPCore (x y z)
:precision binary64
(if (<= x -55.0)
(- (+ (* x 4.16438922228) (/ 3655.1204654076414 x)) 110.1139242984811)
(if (<= x 3400.0)
(/ (* (- x 2.0) z) (+ 47.066876606 (* x 313.399215894)))
(- (* x 4.16438922228) 110.1139242984811))))
double code(double x, double y, double z) {
double tmp;
if (x <= -55.0) {
tmp = ((x * 4.16438922228) + (3655.1204654076414 / x)) - 110.1139242984811;
} else if (x <= 3400.0) {
tmp = ((x - 2.0) * z) / (47.066876606 + (x * 313.399215894));
} else {
tmp = (x * 4.16438922228) - 110.1139242984811;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-55.0d0)) then
tmp = ((x * 4.16438922228d0) + (3655.1204654076414d0 / x)) - 110.1139242984811d0
else if (x <= 3400.0d0) then
tmp = ((x - 2.0d0) * z) / (47.066876606d0 + (x * 313.399215894d0))
else
tmp = (x * 4.16438922228d0) - 110.1139242984811d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -55.0) {
tmp = ((x * 4.16438922228) + (3655.1204654076414 / x)) - 110.1139242984811;
} else if (x <= 3400.0) {
tmp = ((x - 2.0) * z) / (47.066876606 + (x * 313.399215894));
} else {
tmp = (x * 4.16438922228) - 110.1139242984811;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -55.0: tmp = ((x * 4.16438922228) + (3655.1204654076414 / x)) - 110.1139242984811 elif x <= 3400.0: tmp = ((x - 2.0) * z) / (47.066876606 + (x * 313.399215894)) else: tmp = (x * 4.16438922228) - 110.1139242984811 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -55.0) tmp = Float64(Float64(Float64(x * 4.16438922228) + Float64(3655.1204654076414 / x)) - 110.1139242984811); elseif (x <= 3400.0) tmp = Float64(Float64(Float64(x - 2.0) * z) / Float64(47.066876606 + Float64(x * 313.399215894))); else tmp = Float64(Float64(x * 4.16438922228) - 110.1139242984811); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -55.0) tmp = ((x * 4.16438922228) + (3655.1204654076414 / x)) - 110.1139242984811; elseif (x <= 3400.0) tmp = ((x - 2.0) * z) / (47.066876606 + (x * 313.399215894)); else tmp = (x * 4.16438922228) - 110.1139242984811; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -55.0], N[(N[(N[(x * 4.16438922228), $MachinePrecision] + N[(3655.1204654076414 / x), $MachinePrecision]), $MachinePrecision] - 110.1139242984811), $MachinePrecision], If[LessEqual[x, 3400.0], N[(N[(N[(x - 2.0), $MachinePrecision] * z), $MachinePrecision] / N[(47.066876606 + N[(x * 313.399215894), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x * 4.16438922228), $MachinePrecision] - 110.1139242984811), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -55:\\
\;\;\;\;\left(x \cdot 4.16438922228 + \frac{3655.1204654076414}{x}\right) - 110.1139242984811\\
\mathbf{elif}\;x \leq 3400:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot z}{47.066876606 + x \cdot 313.399215894}\\
\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228 - 110.1139242984811\\
\end{array}
\end{array}
if x < -55Initial program 12.8%
associate-/l*22.1%
sub-neg22.1%
metadata-eval22.1%
fma-define22.0%
fma-define22.0%
fma-define22.0%
fma-define22.0%
fma-define22.0%
fma-define22.0%
fma-define22.0%
Simplified22.0%
Taylor expanded in x around inf 91.3%
Taylor expanded in x around 0 91.3%
if -55 < x < 3400Initial 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 z around inf 66.3%
Taylor expanded in x around 0 65.1%
*-commutative65.1%
Simplified65.1%
if 3400 < x Initial program 12.8%
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 86.8%
Final simplification77.2%
(FPCore (x y z) :precision binary64 (if (or (<= x -110.0) (not (<= x 2100.0))) (- (* x 4.16438922228) 110.1139242984811) (* (+ x -2.0) (* z 0.0212463641547976))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -110.0) || !(x <= 2100.0)) {
tmp = (x * 4.16438922228) - 110.1139242984811;
} 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 <= (-110.0d0)) .or. (.not. (x <= 2100.0d0))) then
tmp = (x * 4.16438922228d0) - 110.1139242984811d0
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 <= -110.0) || !(x <= 2100.0)) {
tmp = (x * 4.16438922228) - 110.1139242984811;
} else {
tmp = (x + -2.0) * (z * 0.0212463641547976);
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -110.0) or not (x <= 2100.0): tmp = (x * 4.16438922228) - 110.1139242984811 else: tmp = (x + -2.0) * (z * 0.0212463641547976) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -110.0) || !(x <= 2100.0)) tmp = Float64(Float64(x * 4.16438922228) - 110.1139242984811); 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 <= -110.0) || ~((x <= 2100.0))) tmp = (x * 4.16438922228) - 110.1139242984811; else tmp = (x + -2.0) * (z * 0.0212463641547976); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -110.0], N[Not[LessEqual[x, 2100.0]], $MachinePrecision]], N[(N[(x * 4.16438922228), $MachinePrecision] - 110.1139242984811), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(z * 0.0212463641547976), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -110 \lor \neg \left(x \leq 2100\right):\\
\;\;\;\;x \cdot 4.16438922228 - 110.1139242984811\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976\right)\\
\end{array}
\end{array}
if x < -110 or 2100 < x Initial program 12.8%
associate-/l*21.0%
sub-neg21.0%
metadata-eval21.0%
fma-define21.0%
fma-define21.0%
fma-define21.0%
fma-define21.0%
fma-define21.0%
fma-define21.0%
fma-define21.0%
Simplified21.0%
Taylor expanded in x around inf 89.2%
if -110 < x < 2100Initial 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 64.6%
Final simplification76.9%
(FPCore (x y z)
:precision binary64
(if (<= x -140.0)
(* (+ x -2.0) (- 4.16438922228 (/ 101.7851458539211 x)))
(if (<= x 2100.0)
(* (+ x -2.0) (* z 0.0212463641547976))
(- (* x 4.16438922228) 110.1139242984811))))
double code(double x, double y, double z) {
double tmp;
if (x <= -140.0) {
tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x));
} else if (x <= 2100.0) {
tmp = (x + -2.0) * (z * 0.0212463641547976);
} else {
tmp = (x * 4.16438922228) - 110.1139242984811;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-140.0d0)) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 - (101.7851458539211d0 / x))
else if (x <= 2100.0d0) then
tmp = (x + (-2.0d0)) * (z * 0.0212463641547976d0)
else
tmp = (x * 4.16438922228d0) - 110.1139242984811d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -140.0) {
tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x));
} else if (x <= 2100.0) {
tmp = (x + -2.0) * (z * 0.0212463641547976);
} else {
tmp = (x * 4.16438922228) - 110.1139242984811;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -140.0: tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x)) elif x <= 2100.0: tmp = (x + -2.0) * (z * 0.0212463641547976) else: tmp = (x * 4.16438922228) - 110.1139242984811 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -140.0) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 - Float64(101.7851458539211 / x))); elseif (x <= 2100.0) tmp = Float64(Float64(x + -2.0) * Float64(z * 0.0212463641547976)); else tmp = Float64(Float64(x * 4.16438922228) - 110.1139242984811); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -140.0) tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x)); elseif (x <= 2100.0) tmp = (x + -2.0) * (z * 0.0212463641547976); else tmp = (x * 4.16438922228) - 110.1139242984811; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -140.0], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 - N[(101.7851458539211 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2100.0], N[(N[(x + -2.0), $MachinePrecision] * N[(z * 0.0212463641547976), $MachinePrecision]), $MachinePrecision], N[(N[(x * 4.16438922228), $MachinePrecision] - 110.1139242984811), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -140:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211}{x}\right)\\
\mathbf{elif}\;x \leq 2100:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228 - 110.1139242984811\\
\end{array}
\end{array}
if x < -140Initial program 12.8%
associate-/l*22.1%
sub-neg22.1%
metadata-eval22.1%
fma-define22.0%
fma-define22.0%
fma-define22.0%
fma-define22.0%
fma-define22.0%
fma-define22.0%
fma-define22.0%
Simplified22.0%
Taylor expanded in x around inf 91.0%
associate-*r/91.0%
metadata-eval91.0%
Simplified91.0%
if -140 < x < 2100Initial 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 64.6%
if 2100 < x Initial program 12.8%
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 86.8%
Final simplification76.9%
(FPCore (x y z)
:precision binary64
(if (<= x -95.0)
(- (+ (* x 4.16438922228) (/ 3655.1204654076414 x)) 110.1139242984811)
(if (<= x 2100.0)
(* (+ x -2.0) (* z 0.0212463641547976))
(- (* x 4.16438922228) 110.1139242984811))))
double code(double x, double y, double z) {
double tmp;
if (x <= -95.0) {
tmp = ((x * 4.16438922228) + (3655.1204654076414 / x)) - 110.1139242984811;
} else if (x <= 2100.0) {
tmp = (x + -2.0) * (z * 0.0212463641547976);
} else {
tmp = (x * 4.16438922228) - 110.1139242984811;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-95.0d0)) then
tmp = ((x * 4.16438922228d0) + (3655.1204654076414d0 / x)) - 110.1139242984811d0
else if (x <= 2100.0d0) then
tmp = (x + (-2.0d0)) * (z * 0.0212463641547976d0)
else
tmp = (x * 4.16438922228d0) - 110.1139242984811d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -95.0) {
tmp = ((x * 4.16438922228) + (3655.1204654076414 / x)) - 110.1139242984811;
} else if (x <= 2100.0) {
tmp = (x + -2.0) * (z * 0.0212463641547976);
} else {
tmp = (x * 4.16438922228) - 110.1139242984811;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -95.0: tmp = ((x * 4.16438922228) + (3655.1204654076414 / x)) - 110.1139242984811 elif x <= 2100.0: tmp = (x + -2.0) * (z * 0.0212463641547976) else: tmp = (x * 4.16438922228) - 110.1139242984811 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -95.0) tmp = Float64(Float64(Float64(x * 4.16438922228) + Float64(3655.1204654076414 / x)) - 110.1139242984811); elseif (x <= 2100.0) tmp = Float64(Float64(x + -2.0) * Float64(z * 0.0212463641547976)); else tmp = Float64(Float64(x * 4.16438922228) - 110.1139242984811); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -95.0) tmp = ((x * 4.16438922228) + (3655.1204654076414 / x)) - 110.1139242984811; elseif (x <= 2100.0) tmp = (x + -2.0) * (z * 0.0212463641547976); else tmp = (x * 4.16438922228) - 110.1139242984811; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -95.0], N[(N[(N[(x * 4.16438922228), $MachinePrecision] + N[(3655.1204654076414 / x), $MachinePrecision]), $MachinePrecision] - 110.1139242984811), $MachinePrecision], If[LessEqual[x, 2100.0], N[(N[(x + -2.0), $MachinePrecision] * N[(z * 0.0212463641547976), $MachinePrecision]), $MachinePrecision], N[(N[(x * 4.16438922228), $MachinePrecision] - 110.1139242984811), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -95:\\
\;\;\;\;\left(x \cdot 4.16438922228 + \frac{3655.1204654076414}{x}\right) - 110.1139242984811\\
\mathbf{elif}\;x \leq 2100:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228 - 110.1139242984811\\
\end{array}
\end{array}
if x < -95Initial program 12.8%
associate-/l*22.1%
sub-neg22.1%
metadata-eval22.1%
fma-define22.0%
fma-define22.0%
fma-define22.0%
fma-define22.0%
fma-define22.0%
fma-define22.0%
fma-define22.0%
Simplified22.0%
Taylor expanded in x around inf 91.3%
Taylor expanded in x around 0 91.3%
if -95 < x < 2100Initial 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 64.6%
if 2100 < x Initial program 12.8%
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 86.8%
Final simplification77.0%
(FPCore (x y z) :precision binary64 (if (or (<= x -112.0) (not (<= x 2.0))) (* 4.16438922228 (+ x -2.0)) (* z -0.0424927283095952)))
double code(double x, double y, double z) {
double tmp;
if ((x <= -112.0) || !(x <= 2.0)) {
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 <= (-112.0d0)) .or. (.not. (x <= 2.0d0))) 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 <= -112.0) || !(x <= 2.0)) {
tmp = 4.16438922228 * (x + -2.0);
} else {
tmp = z * -0.0424927283095952;
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -112.0) or not (x <= 2.0): tmp = 4.16438922228 * (x + -2.0) else: tmp = z * -0.0424927283095952 return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -112.0) || !(x <= 2.0)) 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 <= -112.0) || ~((x <= 2.0))) tmp = 4.16438922228 * (x + -2.0); else tmp = z * -0.0424927283095952; end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -112.0], N[Not[LessEqual[x, 2.0]], $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 -112 \lor \neg \left(x \leq 2\right):\\
\;\;\;\;4.16438922228 \cdot \left(x + -2\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\end{array}
\end{array}
if x < -112 or 2 < x Initial program 13.4%
associate-/l*21.6%
sub-neg21.6%
metadata-eval21.6%
fma-define21.6%
fma-define21.6%
fma-define21.6%
fma-define21.6%
fma-define21.6%
fma-define21.6%
fma-define21.6%
Simplified21.6%
Taylor expanded in x around inf 88.3%
if -112 < x < 2Initial 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 65.0%
*-commutative65.0%
Simplified65.0%
Final simplification76.7%
(FPCore (x y z) :precision binary64 (if (or (<= x -85.0) (not (<= x 2.0))) (- (* x 4.16438922228) 110.1139242984811) (* z -0.0424927283095952)))
double code(double x, double y, double z) {
double tmp;
if ((x <= -85.0) || !(x <= 2.0)) {
tmp = (x * 4.16438922228) - 110.1139242984811;
} else {
tmp = z * -0.0424927283095952;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((x <= (-85.0d0)) .or. (.not. (x <= 2.0d0))) then
tmp = (x * 4.16438922228d0) - 110.1139242984811d0
else
tmp = z * (-0.0424927283095952d0)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -85.0) || !(x <= 2.0)) {
tmp = (x * 4.16438922228) - 110.1139242984811;
} else {
tmp = z * -0.0424927283095952;
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -85.0) or not (x <= 2.0): tmp = (x * 4.16438922228) - 110.1139242984811 else: tmp = z * -0.0424927283095952 return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -85.0) || !(x <= 2.0)) tmp = Float64(Float64(x * 4.16438922228) - 110.1139242984811); else tmp = Float64(z * -0.0424927283095952); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -85.0) || ~((x <= 2.0))) tmp = (x * 4.16438922228) - 110.1139242984811; else tmp = z * -0.0424927283095952; end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -85.0], N[Not[LessEqual[x, 2.0]], $MachinePrecision]], N[(N[(x * 4.16438922228), $MachinePrecision] - 110.1139242984811), $MachinePrecision], N[(z * -0.0424927283095952), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -85 \lor \neg \left(x \leq 2\right):\\
\;\;\;\;x \cdot 4.16438922228 - 110.1139242984811\\
\mathbf{else}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\end{array}
\end{array}
if x < -85 or 2 < x Initial program 13.4%
associate-/l*21.6%
sub-neg21.6%
metadata-eval21.6%
fma-define21.6%
fma-define21.6%
fma-define21.6%
fma-define21.6%
fma-define21.6%
fma-define21.6%
fma-define21.6%
Simplified21.6%
Taylor expanded in x around inf 88.5%
if -85 < x < 2Initial 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 65.0%
*-commutative65.0%
Simplified65.0%
Final simplification76.8%
(FPCore (x y z)
:precision binary64
(if (<= x -170.0)
(* 4.16438922228 (+ x -2.0))
(if (<= x 2.0)
(* z -0.0424927283095952)
(- (* x 4.16438922228) 8.32877844456))))
double code(double x, double y, double z) {
double tmp;
if (x <= -170.0) {
tmp = 4.16438922228 * (x + -2.0);
} else if (x <= 2.0) {
tmp = z * -0.0424927283095952;
} else {
tmp = (x * 4.16438922228) - 8.32877844456;
}
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 <= (-170.0d0)) then
tmp = 4.16438922228d0 * (x + (-2.0d0))
else if (x <= 2.0d0) then
tmp = z * (-0.0424927283095952d0)
else
tmp = (x * 4.16438922228d0) - 8.32877844456d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -170.0) {
tmp = 4.16438922228 * (x + -2.0);
} else if (x <= 2.0) {
tmp = z * -0.0424927283095952;
} else {
tmp = (x * 4.16438922228) - 8.32877844456;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -170.0: tmp = 4.16438922228 * (x + -2.0) elif x <= 2.0: tmp = z * -0.0424927283095952 else: tmp = (x * 4.16438922228) - 8.32877844456 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -170.0) tmp = Float64(4.16438922228 * Float64(x + -2.0)); elseif (x <= 2.0) tmp = Float64(z * -0.0424927283095952); else tmp = Float64(Float64(x * 4.16438922228) - 8.32877844456); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -170.0) tmp = 4.16438922228 * (x + -2.0); elseif (x <= 2.0) tmp = z * -0.0424927283095952; else tmp = (x * 4.16438922228) - 8.32877844456; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -170.0], N[(4.16438922228 * N[(x + -2.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.0], N[(z * -0.0424927283095952), $MachinePrecision], N[(N[(x * 4.16438922228), $MachinePrecision] - 8.32877844456), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -170:\\
\;\;\;\;4.16438922228 \cdot \left(x + -2\right)\\
\mathbf{elif}\;x \leq 2:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228 - 8.32877844456\\
\end{array}
\end{array}
if x < -170Initial program 12.8%
associate-/l*22.1%
sub-neg22.1%
metadata-eval22.1%
fma-define22.0%
fma-define22.0%
fma-define22.0%
fma-define22.0%
fma-define22.0%
fma-define22.0%
fma-define22.0%
Simplified22.0%
Taylor expanded in x around inf 90.6%
if -170 < x < 2Initial 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 65.0%
*-commutative65.0%
Simplified65.0%
if 2 < x Initial program 14.3%
associate-/l*21.0%
sub-neg21.0%
metadata-eval21.0%
fma-define21.0%
fma-define21.0%
fma-define21.0%
fma-define21.0%
fma-define21.0%
fma-define21.0%
fma-define21.0%
Simplified21.0%
Taylor expanded in z around 0 21.0%
Taylor expanded in x around inf 90.9%
Taylor expanded in x around inf 85.3%
Final simplification76.7%
(FPCore (x y z) :precision binary64 (if (or (<= x -85.0) (not (<= x 2.0))) (* x 4.16438922228) (* z -0.0424927283095952)))
double code(double x, double y, double z) {
double tmp;
if ((x <= -85.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 <= (-85.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 <= -85.0) || !(x <= 2.0)) {
tmp = x * 4.16438922228;
} else {
tmp = z * -0.0424927283095952;
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -85.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 <= -85.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 <= -85.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, -85.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 -85 \lor \neg \left(x \leq 2\right):\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{else}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\end{array}
\end{array}
if x < -85 or 2 < x Initial program 13.4%
associate-/l*21.6%
sub-neg21.6%
metadata-eval21.6%
fma-define21.6%
fma-define21.6%
fma-define21.6%
fma-define21.6%
fma-define21.6%
fma-define21.6%
fma-define21.6%
Simplified21.6%
Taylor expanded in x around -inf 94.1%
+-commutative94.1%
associate--l+94.1%
+-commutative94.1%
mul-1-neg94.1%
unsub-neg94.1%
associate-*r/94.1%
metadata-eval94.1%
mul-1-neg94.1%
unsub-neg94.1%
sub-neg94.1%
associate-*r/94.1%
metadata-eval94.1%
distribute-neg-frac94.1%
metadata-eval94.1%
Simplified94.1%
Taylor expanded in x around inf 88.3%
*-commutative88.3%
Simplified88.3%
if -85 < x < 2Initial 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 65.0%
*-commutative65.0%
Simplified65.0%
Final simplification76.7%
(FPCore (x y z) :precision binary64 (* x 4.16438922228))
double code(double x, double y, double z) {
return x * 4.16438922228;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = x * 4.16438922228d0
end function
public static double code(double x, double y, double z) {
return x * 4.16438922228;
}
def code(x, y, z): return x * 4.16438922228
function code(x, y, z) return Float64(x * 4.16438922228) end
function tmp = code(x, y, z) tmp = x * 4.16438922228; end
code[x_, y_, z_] := N[(x * 4.16438922228), $MachinePrecision]
\begin{array}{l}
\\
x \cdot 4.16438922228
\end{array}
Initial program 56.2%
associate-/l*60.3%
sub-neg60.3%
metadata-eval60.3%
fma-define60.3%
fma-define60.3%
fma-define60.3%
fma-define60.3%
fma-define60.3%
fma-define60.3%
fma-define60.3%
Simplified60.3%
Taylor expanded in x around -inf 48.8%
+-commutative48.8%
associate--l+48.8%
+-commutative48.8%
mul-1-neg48.8%
unsub-neg48.8%
associate-*r/48.8%
metadata-eval48.8%
mul-1-neg48.8%
unsub-neg48.8%
sub-neg48.8%
associate-*r/48.8%
metadata-eval48.8%
distribute-neg-frac48.8%
metadata-eval48.8%
Simplified48.8%
Taylor expanded in x around inf 46.0%
*-commutative46.0%
Simplified46.0%
Final simplification46.0%
(FPCore (x y z) :precision binary64 78.6994924154)
double code(double x, double y, double z) {
return 78.6994924154;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = 78.6994924154d0
end function
public static double code(double x, double y, double z) {
return 78.6994924154;
}
def code(x, y, z): return 78.6994924154
function code(x, y, z) return 78.6994924154 end
function tmp = code(x, y, z) tmp = 78.6994924154; end
code[x_, y_, z_] := 78.6994924154
\begin{array}{l}
\\
78.6994924154
\end{array}
Initial program 56.2%
Simplified60.2%
Taylor expanded in x around 0 53.2%
Taylor expanded in x around inf 3.0%
Final simplification3.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 2024052
(FPCore (x y z)
:name "Numeric.SpecFunctions:logGamma from math-functions-0.1.5.2, C"
:precision binary64
:herbie-target
(if (< x -3.326128725870005e+62) (- (+ (/ y (* x x)) (* 4.16438922228 x)) 110.1139242984811) (if (< x 9.429991714554673e+55) (* (/ (- x 2.0) 1.0) (/ (+ (* (+ (* (+ (* (+ (* x 4.16438922228) 78.6994924154) x) 137.519416416) x) y) x) z) (+ (* (+ (+ (* 263.505074721 x) (+ (* 43.3400022514 (* x x)) (* x (* x x)))) 313.399215894) x) 47.066876606))) (- (+ (/ y (* x x)) (* 4.16438922228 x)) 110.1139242984811)))
(/ (* (- x 2.0) (+ (* (+ (* (+ (* (+ (* x 4.16438922228) 78.6994924154) x) 137.519416416) x) y) x) z)) (+ (* (+ (* (+ (* (+ x 43.3400022514) x) 263.505074721) x) 313.399215894) x) 47.066876606)))