
(FPCore (x y z)
:precision binary64
(/
(*
(- x 2.0)
(+
(*
(+ (* (+ (* (+ (* x 4.16438922228) 78.6994924154) x) 137.519416416) x) y)
x)
z))
(+
(* (+ (* (+ (* (+ x 43.3400022514) x) 263.505074721) x) 313.399215894) x)
47.066876606)))
double code(double x, double y, double z) {
return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606);
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = ((x - 2.0d0) * ((((((((x * 4.16438922228d0) + 78.6994924154d0) * x) + 137.519416416d0) * x) + y) * x) + z)) / (((((((x + 43.3400022514d0) * x) + 263.505074721d0) * x) + 313.399215894d0) * x) + 47.066876606d0)
end function
public static double code(double x, double y, double z) {
return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606);
}
def code(x, y, z): return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606)
function code(x, y, z) return Float64(Float64(Float64(x - 2.0) * Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606)) end
function tmp = code(x, y, z) tmp = ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606); end
code[x_, y_, z_] := N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(N[(N[(N[(N[(N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision] * x), $MachinePrecision] + 137.519416416), $MachinePrecision] * x), $MachinePrecision] + y), $MachinePrecision] * x), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(x + 43.3400022514), $MachinePrecision] * x), $MachinePrecision] + 263.505074721), $MachinePrecision] * x), $MachinePrecision] + 313.399215894), $MachinePrecision] * x), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 23 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z)
:precision binary64
(/
(*
(- x 2.0)
(+
(*
(+ (* (+ (* (+ (* x 4.16438922228) 78.6994924154) x) 137.519416416) x) y)
x)
z))
(+
(* (+ (* (+ (* (+ x 43.3400022514) x) 263.505074721) x) 313.399215894) x)
47.066876606)))
double code(double x, double y, double z) {
return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606);
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = ((x - 2.0d0) * ((((((((x * 4.16438922228d0) + 78.6994924154d0) * x) + 137.519416416d0) * x) + y) * x) + z)) / (((((((x + 43.3400022514d0) * x) + 263.505074721d0) * x) + 313.399215894d0) * x) + 47.066876606d0)
end function
public static double code(double x, double y, double z) {
return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606);
}
def code(x, y, z): return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606)
function code(x, y, z) return Float64(Float64(Float64(x - 2.0) * Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606)) end
function tmp = code(x, y, z) tmp = ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606); end
code[x_, y_, z_] := N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(N[(N[(N[(N[(N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision] * x), $MachinePrecision] + 137.519416416), $MachinePrecision] * x), $MachinePrecision] + y), $MachinePrecision] * x), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(x + 43.3400022514), $MachinePrecision] * x), $MachinePrecision] + 263.505074721), $MachinePrecision] * x), $MachinePrecision] + 313.399215894), $MachinePrecision] * x), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606}
\end{array}
(FPCore (x y z)
:precision binary64
(if (<=
(/
(*
(- x 2.0)
(+
(*
x
(+
(* x (+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))
y))
z))
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))
INFINITY)
(*
(+ x -2.0)
(/
(fma
x
(fma x (fma x (fma x 4.16438922228 78.6994924154) 137.519416416) y)
z)
(fma
x
(fma x (fma x (+ x 43.3400022514) 263.505074721) 313.399215894)
47.066876606)))
(/ (+ x -2.0) 0.24013125253755718)))
double code(double x, double y, double z) {
double tmp;
if ((((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) <= ((double) INFINITY)) {
tmp = (x + -2.0) * (fma(x, fma(x, fma(x, fma(x, 4.16438922228, 78.6994924154), 137.519416416), y), z) / fma(x, fma(x, fma(x, (x + 43.3400022514), 263.505074721), 313.399215894), 47.066876606));
} else {
tmp = (x + -2.0) / 0.24013125253755718;
}
return tmp;
}
function code(x, y, z) tmp = 0.0 if (Float64(Float64(Float64(x - 2.0) * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) <= Inf) tmp = Float64(Float64(x + -2.0) * Float64(fma(x, fma(x, fma(x, fma(x, 4.16438922228, 78.6994924154), 137.519416416), y), z) / fma(x, fma(x, fma(x, Float64(x + 43.3400022514), 263.505074721), 313.399215894), 47.066876606))); else tmp = Float64(Float64(x + -2.0) / 0.24013125253755718); end return tmp end
code[x_, y_, z_] := If[LessEqual[N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(x * N[(N[(x * N[(N[(x * N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision]), $MachinePrecision] + 137.519416416), $MachinePrecision]), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision], Infinity], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(x * N[(x * N[(x * N[(x * 4.16438922228 + 78.6994924154), $MachinePrecision] + 137.519416416), $MachinePrecision] + y), $MachinePrecision] + z), $MachinePrecision] / N[(x * N[(x * N[(x * N[(x + 43.3400022514), $MachinePrecision] + 263.505074721), $MachinePrecision] + 313.399215894), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{\left(x - 2\right) \cdot \left(x \cdot \left(x \cdot \left(x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right) + 137.519416416\right) + y\right) + z\right)}{x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606} \leq \infty:\\
\;\;\;\;\left(x + -2\right) \cdot \frac{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), 137.519416416\right), y\right), z\right)}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718}\\
\end{array}
\end{array}
if (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) < +inf.0Initial program 91.4%
associate-*r/98.9%
sub-neg98.9%
metadata-eval98.9%
*-commutative98.9%
fma-def98.9%
*-commutative98.9%
fma-def98.9%
*-commutative98.9%
fma-def98.9%
fma-def98.9%
*-commutative98.9%
Simplified98.9%
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-def0.0%
fma-def0.0%
fma-def0.0%
fma-def0.0%
fma-def0.0%
fma-def0.0%
fma-def0.0%
Simplified0.0%
Taylor expanded in x around inf 99.5%
Final simplification99.1%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(*
(- x 2.0)
(+
(*
x
(+
(*
x
(+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))
y))
z)))
(t_1
(/
t_0
(+
(*
x
(+
(* x (+ (* x (+ x 43.3400022514)) 263.505074721))
313.399215894))
47.066876606))))
(if (<= t_1 (- INFINITY))
(*
(fma
x
(fma
x
(fma
x
(/
(+ (* (* x x) 17.342137594641823) -6193.6101064416025)
(fma x 4.16438922228 -78.6994924154))
137.519416416)
y)
z)
(/ 1.0 (pow x 3.0)))
(if (<= t_1 1e+294)
(/
t_0
(+
47.066876606
(*
x
(+ 313.399215894 (* x (fma x (+ x 43.3400022514) 263.505074721))))))
(+
(/ 4752.4581585918595 x)
(-
(+ (* x 4.16438922228) (/ y (* x x)))
(+ 110.1139242984811 (/ 207551.7024428275 (* x x)))))))))
double code(double x, double y, double z) {
double t_0 = (x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z);
double t_1 = t_0 / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606);
double tmp;
if (t_1 <= -((double) INFINITY)) {
tmp = fma(x, fma(x, fma(x, ((((x * x) * 17.342137594641823) + -6193.6101064416025) / fma(x, 4.16438922228, -78.6994924154)), 137.519416416), y), z) * (1.0 / pow(x, 3.0));
} else if (t_1 <= 1e+294) {
tmp = t_0 / (47.066876606 + (x * (313.399215894 + (x * fma(x, (x + 43.3400022514), 263.505074721)))));
} else {
tmp = (4752.4581585918595 / x) + (((x * 4.16438922228) + (y / (x * x))) - (110.1139242984811 + (207551.7024428275 / (x * x))));
}
return tmp;
}
function code(x, y, z) t_0 = Float64(Float64(x - 2.0) * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) t_1 = Float64(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 (t_1 <= Float64(-Inf)) tmp = Float64(fma(x, fma(x, fma(x, Float64(Float64(Float64(Float64(x * x) * 17.342137594641823) + -6193.6101064416025) / fma(x, 4.16438922228, -78.6994924154)), 137.519416416), y), z) * Float64(1.0 / (x ^ 3.0))); elseif (t_1 <= 1e+294) tmp = Float64(t_0 / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * fma(x, Float64(x + 43.3400022514), 263.505074721)))))); else tmp = Float64(Float64(4752.4581585918595 / x) + Float64(Float64(Float64(x * 4.16438922228) + Float64(y / Float64(x * x))) - Float64(110.1139242984811 + Float64(207551.7024428275 / Float64(x * x))))); end return tmp end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(x - 2.0), $MachinePrecision] * N[(N[(x * N[(N[(x * N[(N[(x * N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision]), $MachinePrecision] + 137.519416416), $MachinePrecision]), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(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]), $MachinePrecision]}, If[LessEqual[t$95$1, (-Infinity)], N[(N[(x * N[(x * N[(x * N[(N[(N[(N[(x * x), $MachinePrecision] * 17.342137594641823), $MachinePrecision] + -6193.6101064416025), $MachinePrecision] / N[(x * 4.16438922228 + -78.6994924154), $MachinePrecision]), $MachinePrecision] + 137.519416416), $MachinePrecision] + y), $MachinePrecision] + z), $MachinePrecision] * N[(1.0 / N[Power[x, 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 1e+294], N[(t$95$0 / N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * N[(x * N[(x + 43.3400022514), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(4752.4581585918595 / x), $MachinePrecision] + N[(N[(N[(x * 4.16438922228), $MachinePrecision] + N[(y / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(110.1139242984811 + N[(207551.7024428275 / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \left(x - 2\right) \cdot \left(x \cdot \left(x \cdot \left(x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right) + 137.519416416\right) + y\right) + z\right)\\
t_1 := \frac{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}\;t_1 \leq -\infty:\\
\;\;\;\;\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \frac{\left(x \cdot x\right) \cdot 17.342137594641823 + -6193.6101064416025}{\mathsf{fma}\left(x, 4.16438922228, -78.6994924154\right)}, 137.519416416\right), y\right), z\right) \cdot \frac{1}{{x}^{3}}\\
\mathbf{elif}\;t_1 \leq 10^{+294}:\\
\;\;\;\;\frac{t_0}{47.066876606 + x \cdot \left(313.399215894 + x \cdot \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{4752.4581585918595}{x} + \left(\left(x \cdot 4.16438922228 + \frac{y}{x \cdot x}\right) - \left(110.1139242984811 + \frac{207551.7024428275}{x \cdot x}\right)\right)\\
\end{array}
\end{array}
if (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) < -inf.0Initial program 4.0%
*-commutative4.0%
associate-*r/98.9%
*-commutative98.9%
fma-def98.9%
*-commutative98.9%
fma-def98.9%
*-commutative98.9%
fma-def98.9%
fma-def98.9%
Simplified98.9%
fma-def98.9%
flip-+98.9%
metadata-eval98.9%
Applied egg-rr98.9%
sub-neg98.9%
swap-sqr98.6%
metadata-eval99.3%
metadata-eval99.3%
fma-neg99.3%
metadata-eval99.3%
Simplified99.3%
Taylor expanded in x around inf 99.6%
if -inf.0 < (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) < 1.00000000000000007e294Initial program 99.5%
pow199.5%
*-commutative99.5%
*-commutative99.5%
fma-udef99.5%
Applied egg-rr99.5%
unpow199.5%
Simplified99.5%
if 1.00000000000000007e294 < (/.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.3%
Taylor expanded in x around inf 0.3%
cube-mult0.3%
unpow20.3%
distribute-rgt-out0.3%
+-commutative0.3%
unpow20.3%
Simplified0.3%
Taylor expanded in x around inf 97.8%
associate--l+97.8%
associate-*r/97.8%
metadata-eval97.8%
+-commutative97.8%
*-commutative97.8%
unpow297.8%
associate-*r/97.8%
metadata-eval97.8%
unpow297.8%
Simplified97.8%
Final simplification98.9%
(FPCore (x y z)
:precision binary64
(if (<= x -6.5e+60)
(/ (+ x -2.0) 0.24013125253755718)
(if (<= x 1.18e+21)
(/
(*
(- x 2.0)
(+
(*
x
(+
(* x (+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))
y))
z))
(+
47.066876606
(*
x
(+ 313.399215894 (* x (fma x (+ x 43.3400022514) 263.505074721))))))
(+
(/ 4752.4581585918595 x)
(-
(+ (* x 4.16438922228) (/ y (* x x)))
(+ 110.1139242984811 (/ 207551.7024428275 (* x x))))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -6.5e+60) {
tmp = (x + -2.0) / 0.24013125253755718;
} else if (x <= 1.18e+21) {
tmp = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / (47.066876606 + (x * (313.399215894 + (x * fma(x, (x + 43.3400022514), 263.505074721)))));
} else {
tmp = (4752.4581585918595 / x) + (((x * 4.16438922228) + (y / (x * x))) - (110.1139242984811 + (207551.7024428275 / (x * x))));
}
return tmp;
}
function code(x, y, z) tmp = 0.0 if (x <= -6.5e+60) tmp = Float64(Float64(x + -2.0) / 0.24013125253755718); elseif (x <= 1.18e+21) tmp = Float64(Float64(Float64(x - 2.0) * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * fma(x, Float64(x + 43.3400022514), 263.505074721)))))); else tmp = Float64(Float64(4752.4581585918595 / x) + Float64(Float64(Float64(x * 4.16438922228) + Float64(y / Float64(x * x))) - Float64(110.1139242984811 + Float64(207551.7024428275 / Float64(x * x))))); end return tmp end
code[x_, y_, z_] := If[LessEqual[x, -6.5e+60], N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision], If[LessEqual[x, 1.18e+21], N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(x * N[(N[(x * N[(N[(x * N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision]), $MachinePrecision] + 137.519416416), $MachinePrecision]), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * N[(x * N[(x + 43.3400022514), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(4752.4581585918595 / x), $MachinePrecision] + N[(N[(N[(x * 4.16438922228), $MachinePrecision] + N[(y / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(110.1139242984811 + N[(207551.7024428275 / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -6.5 \cdot 10^{+60}:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718}\\
\mathbf{elif}\;x \leq 1.18 \cdot 10^{+21}:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot \left(x \cdot \left(x \cdot \left(x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right) + 137.519416416\right) + y\right) + z\right)}{47.066876606 + x \cdot \left(313.399215894 + x \cdot \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{4752.4581585918595}{x} + \left(\left(x \cdot 4.16438922228 + \frac{y}{x \cdot x}\right) - \left(110.1139242984811 + \frac{207551.7024428275}{x \cdot x}\right)\right)\\
\end{array}
\end{array}
if x < -6.49999999999999931e60Initial program 0.5%
associate-/l*13.2%
sub-neg13.2%
metadata-eval13.2%
fma-def13.2%
fma-def13.2%
fma-def13.2%
fma-def13.2%
fma-def13.2%
fma-def13.2%
fma-def13.2%
Simplified13.2%
Taylor expanded in x around inf 97.3%
if -6.49999999999999931e60 < x < 1.18e21Initial program 98.9%
pow198.9%
*-commutative98.9%
*-commutative98.9%
fma-udef98.9%
Applied egg-rr98.9%
unpow198.9%
Simplified98.9%
if 1.18e21 < x Initial program 11.4%
Taylor expanded in x around inf 11.4%
cube-mult11.4%
unpow211.4%
distribute-rgt-out11.4%
+-commutative11.4%
unpow211.4%
Simplified11.4%
Taylor expanded in x around inf 99.0%
associate--l+99.0%
associate-*r/99.0%
metadata-eval99.0%
+-commutative99.0%
*-commutative99.0%
unpow299.0%
associate-*r/99.0%
metadata-eval99.0%
unpow299.0%
Simplified99.0%
Final simplification98.7%
(FPCore (x y z)
:precision binary64
(if (<= x -3.1e+60)
(/ (+ x -2.0) 0.24013125253755718)
(if (<= x 1.18e+21)
(/
(*
(- x 2.0)
(+
(*
x
(+
(* x (+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))
y))
z))
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))
(+
(/ 4752.4581585918595 x)
(-
(+ (* x 4.16438922228) (/ y (* x x)))
(+ 110.1139242984811 (/ 207551.7024428275 (* x x))))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -3.1e+60) {
tmp = (x + -2.0) / 0.24013125253755718;
} else if (x <= 1.18e+21) {
tmp = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606);
} else {
tmp = (4752.4581585918595 / x) + (((x * 4.16438922228) + (y / (x * x))) - (110.1139242984811 + (207551.7024428275 / (x * x))));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-3.1d+60)) then
tmp = (x + (-2.0d0)) / 0.24013125253755718d0
else if (x <= 1.18d+21) then
tmp = ((x - 2.0d0) * ((x * ((x * ((x * ((x * 4.16438922228d0) + 78.6994924154d0)) + 137.519416416d0)) + y)) + z)) / ((x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0)
else
tmp = (4752.4581585918595d0 / x) + (((x * 4.16438922228d0) + (y / (x * x))) - (110.1139242984811d0 + (207551.7024428275d0 / (x * x))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -3.1e+60) {
tmp = (x + -2.0) / 0.24013125253755718;
} else if (x <= 1.18e+21) {
tmp = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606);
} else {
tmp = (4752.4581585918595 / x) + (((x * 4.16438922228) + (y / (x * x))) - (110.1139242984811 + (207551.7024428275 / (x * x))));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -3.1e+60: tmp = (x + -2.0) / 0.24013125253755718 elif x <= 1.18e+21: tmp = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) else: tmp = (4752.4581585918595 / x) + (((x * 4.16438922228) + (y / (x * x))) - (110.1139242984811 + (207551.7024428275 / (x * x)))) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -3.1e+60) tmp = Float64(Float64(x + -2.0) / 0.24013125253755718); elseif (x <= 1.18e+21) tmp = Float64(Float64(Float64(x - 2.0) * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)); else tmp = Float64(Float64(4752.4581585918595 / x) + Float64(Float64(Float64(x * 4.16438922228) + Float64(y / Float64(x * x))) - Float64(110.1139242984811 + Float64(207551.7024428275 / Float64(x * x))))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -3.1e+60) tmp = (x + -2.0) / 0.24013125253755718; elseif (x <= 1.18e+21) tmp = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606); else tmp = (4752.4581585918595 / x) + (((x * 4.16438922228) + (y / (x * x))) - (110.1139242984811 + (207551.7024428275 / (x * x)))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -3.1e+60], N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision], If[LessEqual[x, 1.18e+21], N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(x * N[(N[(x * N[(N[(x * N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision]), $MachinePrecision] + 137.519416416), $MachinePrecision]), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision], N[(N[(4752.4581585918595 / x), $MachinePrecision] + N[(N[(N[(x * 4.16438922228), $MachinePrecision] + N[(y / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(110.1139242984811 + N[(207551.7024428275 / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -3.1 \cdot 10^{+60}:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718}\\
\mathbf{elif}\;x \leq 1.18 \cdot 10^{+21}:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot \left(x \cdot \left(x \cdot \left(x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right) + 137.519416416\right) + y\right) + z\right)}{x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606}\\
\mathbf{else}:\\
\;\;\;\;\frac{4752.4581585918595}{x} + \left(\left(x \cdot 4.16438922228 + \frac{y}{x \cdot x}\right) - \left(110.1139242984811 + \frac{207551.7024428275}{x \cdot x}\right)\right)\\
\end{array}
\end{array}
if x < -3.1000000000000001e60Initial program 0.5%
associate-/l*13.2%
sub-neg13.2%
metadata-eval13.2%
fma-def13.2%
fma-def13.2%
fma-def13.2%
fma-def13.2%
fma-def13.2%
fma-def13.2%
fma-def13.2%
Simplified13.2%
Taylor expanded in x around inf 97.3%
if -3.1000000000000001e60 < x < 1.18e21Initial program 98.9%
if 1.18e21 < x Initial program 11.4%
Taylor expanded in x around inf 11.4%
cube-mult11.4%
unpow211.4%
distribute-rgt-out11.4%
+-commutative11.4%
unpow211.4%
Simplified11.4%
Taylor expanded in x around inf 99.0%
associate--l+99.0%
associate-*r/99.0%
metadata-eval99.0%
+-commutative99.0%
*-commutative99.0%
unpow299.0%
associate-*r/99.0%
metadata-eval99.0%
unpow299.0%
Simplified99.0%
Final simplification98.7%
(FPCore (x y z)
:precision binary64
(if (or (<= x -1.4e+27) (not (<= x 3e+18)))
(+
(/ 4752.4581585918595 x)
(-
(+ (* x 4.16438922228) (/ y (* x x)))
(+ 110.1139242984811 (/ 207551.7024428275 (* x x)))))
(/
(* (- x 2.0) (+ z (* x (+ y (* x 137.519416416)))))
(+
(* x (+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -1.4e+27) || !(x <= 3e+18)) {
tmp = (4752.4581585918595 / x) + (((x * 4.16438922228) + (y / (x * x))) - (110.1139242984811 + (207551.7024428275 / (x * x))));
} else {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606);
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((x <= (-1.4d+27)) .or. (.not. (x <= 3d+18))) then
tmp = (4752.4581585918595d0 / x) + (((x * 4.16438922228d0) + (y / (x * x))) - (110.1139242984811d0 + (207551.7024428275d0 / (x * x))))
else
tmp = ((x - 2.0d0) * (z + (x * (y + (x * 137.519416416d0))))) / ((x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -1.4e+27) || !(x <= 3e+18)) {
tmp = (4752.4581585918595 / x) + (((x * 4.16438922228) + (y / (x * x))) - (110.1139242984811 + (207551.7024428275 / (x * x))));
} else {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606);
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -1.4e+27) or not (x <= 3e+18): tmp = (4752.4581585918595 / x) + (((x * 4.16438922228) + (y / (x * x))) - (110.1139242984811 + (207551.7024428275 / (x * x)))) else: tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -1.4e+27) || !(x <= 3e+18)) tmp = Float64(Float64(4752.4581585918595 / x) + Float64(Float64(Float64(x * 4.16438922228) + Float64(y / Float64(x * x))) - Float64(110.1139242984811 + Float64(207551.7024428275 / Float64(x * x))))); else tmp = Float64(Float64(Float64(x - 2.0) * Float64(z + Float64(x * Float64(y + Float64(x * 137.519416416))))) / Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -1.4e+27) || ~((x <= 3e+18))) tmp = (4752.4581585918595 / x) + (((x * 4.16438922228) + (y / (x * x))) - (110.1139242984811 + (207551.7024428275 / (x * x)))); else tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -1.4e+27], N[Not[LessEqual[x, 3e+18]], $MachinePrecision]], N[(N[(4752.4581585918595 / x), $MachinePrecision] + N[(N[(N[(x * 4.16438922228), $MachinePrecision] + N[(y / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(110.1139242984811 + N[(207551.7024428275 / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + N[(x * N[(y + N[(x * 137.519416416), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.4 \cdot 10^{+27} \lor \neg \left(x \leq 3 \cdot 10^{+18}\right):\\
\;\;\;\;\frac{4752.4581585918595}{x} + \left(\left(x \cdot 4.16438922228 + \frac{y}{x \cdot x}\right) - \left(110.1139242984811 + \frac{207551.7024428275}{x \cdot x}\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot \left(y + x \cdot 137.519416416\right)\right)}{x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606}\\
\end{array}
\end{array}
if x < -1.4e27 or 3e18 < x Initial program 9.1%
Taylor expanded in x around inf 9.1%
cube-mult9.1%
unpow29.1%
distribute-rgt-out9.1%
+-commutative9.1%
unpow29.1%
Simplified9.1%
Taylor expanded in x around inf 96.4%
associate--l+96.4%
associate-*r/96.4%
metadata-eval96.4%
+-commutative96.4%
*-commutative96.4%
unpow296.4%
associate-*r/96.4%
metadata-eval96.4%
unpow296.4%
Simplified96.4%
if -1.4e27 < x < 3e18Initial program 99.5%
Taylor expanded in x around 0 96.9%
*-commutative94.9%
Simplified96.9%
Final simplification96.7%
(FPCore (x y z)
:precision binary64
(if (or (<= x -1.12e+28) (not (<= x 5.3e+18)))
(+
(/ 4752.4581585918595 x)
(-
(+ (* x 4.16438922228) (/ y (* x x)))
(+ 110.1139242984811 (/ 207551.7024428275 (* x x)))))
(/
(* (- x 2.0) (+ z (* x (+ y (* x 137.519416416)))))
(+ 47.066876606 (* x (+ 313.399215894 (* (+ x 43.3400022514) (* x x))))))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -1.12e+28) || !(x <= 5.3e+18)) {
tmp = (4752.4581585918595 / x) + (((x * 4.16438922228) + (y / (x * x))) - (110.1139242984811 + (207551.7024428275 / (x * x))));
} else {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + ((x + 43.3400022514) * (x * x)))));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((x <= (-1.12d+28)) .or. (.not. (x <= 5.3d+18))) then
tmp = (4752.4581585918595d0 / x) + (((x * 4.16438922228d0) + (y / (x * x))) - (110.1139242984811d0 + (207551.7024428275d0 / (x * x))))
else
tmp = ((x - 2.0d0) * (z + (x * (y + (x * 137.519416416d0))))) / (47.066876606d0 + (x * (313.399215894d0 + ((x + 43.3400022514d0) * (x * x)))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -1.12e+28) || !(x <= 5.3e+18)) {
tmp = (4752.4581585918595 / x) + (((x * 4.16438922228) + (y / (x * x))) - (110.1139242984811 + (207551.7024428275 / (x * x))));
} else {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + ((x + 43.3400022514) * (x * x)))));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -1.12e+28) or not (x <= 5.3e+18): tmp = (4752.4581585918595 / x) + (((x * 4.16438922228) + (y / (x * x))) - (110.1139242984811 + (207551.7024428275 / (x * x)))) else: tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + ((x + 43.3400022514) * (x * x))))) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -1.12e+28) || !(x <= 5.3e+18)) tmp = Float64(Float64(4752.4581585918595 / x) + Float64(Float64(Float64(x * 4.16438922228) + Float64(y / Float64(x * x))) - Float64(110.1139242984811 + Float64(207551.7024428275 / Float64(x * x))))); else tmp = Float64(Float64(Float64(x - 2.0) * Float64(z + Float64(x * Float64(y + Float64(x * 137.519416416))))) / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(Float64(x + 43.3400022514) * Float64(x * x)))))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -1.12e+28) || ~((x <= 5.3e+18))) tmp = (4752.4581585918595 / x) + (((x * 4.16438922228) + (y / (x * x))) - (110.1139242984811 + (207551.7024428275 / (x * x)))); else tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + ((x + 43.3400022514) * (x * x))))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -1.12e+28], N[Not[LessEqual[x, 5.3e+18]], $MachinePrecision]], N[(N[(4752.4581585918595 / x), $MachinePrecision] + N[(N[(N[(x * 4.16438922228), $MachinePrecision] + N[(y / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(110.1139242984811 + N[(207551.7024428275 / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + N[(x * N[(y + N[(x * 137.519416416), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(47.066876606 + N[(x * N[(313.399215894 + N[(N[(x + 43.3400022514), $MachinePrecision] * N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.12 \cdot 10^{+28} \lor \neg \left(x \leq 5.3 \cdot 10^{+18}\right):\\
\;\;\;\;\frac{4752.4581585918595}{x} + \left(\left(x \cdot 4.16438922228 + \frac{y}{x \cdot x}\right) - \left(110.1139242984811 + \frac{207551.7024428275}{x \cdot x}\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot \left(y + x \cdot 137.519416416\right)\right)}{47.066876606 + x \cdot \left(313.399215894 + \left(x + 43.3400022514\right) \cdot \left(x \cdot x\right)\right)}\\
\end{array}
\end{array}
if x < -1.12e28 or 5.3e18 < x Initial program 9.1%
Taylor expanded in x around inf 9.1%
cube-mult9.1%
unpow29.1%
distribute-rgt-out9.1%
+-commutative9.1%
unpow29.1%
Simplified9.1%
Taylor expanded in x around inf 96.4%
associate--l+96.4%
associate-*r/96.4%
metadata-eval96.4%
+-commutative96.4%
*-commutative96.4%
unpow296.4%
associate-*r/96.4%
metadata-eval96.4%
unpow296.4%
Simplified96.4%
if -1.12e28 < x < 5.3e18Initial program 99.5%
Taylor expanded in x around inf 95.9%
cube-mult95.9%
unpow295.9%
distribute-rgt-out95.9%
+-commutative95.9%
unpow295.9%
Simplified95.9%
Taylor expanded in x around 0 94.9%
*-commutative94.9%
Simplified94.9%
Final simplification95.5%
(FPCore (x y z)
:precision binary64
(if (or (<= x -36.0) (not (<= x 3e+18)))
(+
(/ 4752.4581585918595 x)
(-
(+ (* x 4.16438922228) (/ y (* x x)))
(+ 110.1139242984811 (/ 207551.7024428275 (* x x)))))
(/
(* (- x 2.0) (+ z (* x (+ y (* x 137.519416416)))))
(+ 47.066876606 (* x 313.399215894)))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -36.0) || !(x <= 3e+18)) {
tmp = (4752.4581585918595 / x) + (((x * 4.16438922228) + (y / (x * x))) - (110.1139242984811 + (207551.7024428275 / (x * x))));
} else {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * 313.399215894));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((x <= (-36.0d0)) .or. (.not. (x <= 3d+18))) then
tmp = (4752.4581585918595d0 / x) + (((x * 4.16438922228d0) + (y / (x * x))) - (110.1139242984811d0 + (207551.7024428275d0 / (x * x))))
else
tmp = ((x - 2.0d0) * (z + (x * (y + (x * 137.519416416d0))))) / (47.066876606d0 + (x * 313.399215894d0))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -36.0) || !(x <= 3e+18)) {
tmp = (4752.4581585918595 / x) + (((x * 4.16438922228) + (y / (x * x))) - (110.1139242984811 + (207551.7024428275 / (x * x))));
} else {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * 313.399215894));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -36.0) or not (x <= 3e+18): tmp = (4752.4581585918595 / x) + (((x * 4.16438922228) + (y / (x * x))) - (110.1139242984811 + (207551.7024428275 / (x * x)))) else: tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * 313.399215894)) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -36.0) || !(x <= 3e+18)) tmp = Float64(Float64(4752.4581585918595 / x) + Float64(Float64(Float64(x * 4.16438922228) + Float64(y / Float64(x * x))) - Float64(110.1139242984811 + Float64(207551.7024428275 / Float64(x * x))))); else tmp = Float64(Float64(Float64(x - 2.0) * Float64(z + Float64(x * Float64(y + Float64(x * 137.519416416))))) / Float64(47.066876606 + Float64(x * 313.399215894))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -36.0) || ~((x <= 3e+18))) tmp = (4752.4581585918595 / x) + (((x * 4.16438922228) + (y / (x * x))) - (110.1139242984811 + (207551.7024428275 / (x * x)))); else tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * 313.399215894)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -36.0], N[Not[LessEqual[x, 3e+18]], $MachinePrecision]], N[(N[(4752.4581585918595 / x), $MachinePrecision] + N[(N[(N[(x * 4.16438922228), $MachinePrecision] + N[(y / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(110.1139242984811 + N[(207551.7024428275 / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + N[(x * N[(y + N[(x * 137.519416416), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(47.066876606 + N[(x * 313.399215894), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -36 \lor \neg \left(x \leq 3 \cdot 10^{+18}\right):\\
\;\;\;\;\frac{4752.4581585918595}{x} + \left(\left(x \cdot 4.16438922228 + \frac{y}{x \cdot x}\right) - \left(110.1139242984811 + \frac{207551.7024428275}{x \cdot x}\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot \left(y + x \cdot 137.519416416\right)\right)}{47.066876606 + x \cdot 313.399215894}\\
\end{array}
\end{array}
if x < -36 or 3e18 < x Initial program 14.0%
Taylor expanded in x around inf 13.5%
cube-mult13.5%
unpow213.5%
distribute-rgt-out13.5%
+-commutative13.5%
unpow213.5%
Simplified13.5%
Taylor expanded in x around inf 94.2%
associate--l+94.2%
associate-*r/94.2%
metadata-eval94.2%
+-commutative94.2%
*-commutative94.2%
unpow294.2%
associate-*r/94.2%
metadata-eval94.2%
unpow294.2%
Simplified94.2%
if -36 < x < 3e18Initial program 99.6%
Taylor expanded in x around inf 96.2%
cube-mult96.2%
unpow296.2%
distribute-rgt-out96.2%
+-commutative96.2%
unpow296.2%
Simplified96.2%
Taylor expanded in x around 0 95.8%
*-commutative95.8%
Simplified95.8%
Taylor expanded in x around 0 95.0%
*-commutative95.0%
Simplified95.0%
Final simplification94.7%
(FPCore (x y z)
:precision binary64
(if (<= x -36.0)
(/
(+ x -2.0)
(+
(/ 5.86923874282773 x)
(- 0.24013125253755718 (/ 55.572073733743466 (* x x)))))
(if (<= x 3e+18)
(/
(* (- x 2.0) (+ z (* x (+ y (* x 137.519416416)))))
(+ 47.066876606 (* x 313.399215894)))
(/ (+ x -2.0) 0.24013125253755718))))
double code(double x, double y, double z) {
double tmp;
if (x <= -36.0) {
tmp = (x + -2.0) / ((5.86923874282773 / x) + (0.24013125253755718 - (55.572073733743466 / (x * x))));
} else if (x <= 3e+18) {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * 313.399215894));
} else {
tmp = (x + -2.0) / 0.24013125253755718;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-36.0d0)) then
tmp = (x + (-2.0d0)) / ((5.86923874282773d0 / x) + (0.24013125253755718d0 - (55.572073733743466d0 / (x * x))))
else if (x <= 3d+18) then
tmp = ((x - 2.0d0) * (z + (x * (y + (x * 137.519416416d0))))) / (47.066876606d0 + (x * 313.399215894d0))
else
tmp = (x + (-2.0d0)) / 0.24013125253755718d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -36.0) {
tmp = (x + -2.0) / ((5.86923874282773 / x) + (0.24013125253755718 - (55.572073733743466 / (x * x))));
} else if (x <= 3e+18) {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * 313.399215894));
} else {
tmp = (x + -2.0) / 0.24013125253755718;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -36.0: tmp = (x + -2.0) / ((5.86923874282773 / x) + (0.24013125253755718 - (55.572073733743466 / (x * x)))) elif x <= 3e+18: tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * 313.399215894)) else: tmp = (x + -2.0) / 0.24013125253755718 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -36.0) tmp = Float64(Float64(x + -2.0) / Float64(Float64(5.86923874282773 / x) + Float64(0.24013125253755718 - Float64(55.572073733743466 / Float64(x * x))))); elseif (x <= 3e+18) tmp = Float64(Float64(Float64(x - 2.0) * Float64(z + Float64(x * Float64(y + Float64(x * 137.519416416))))) / Float64(47.066876606 + Float64(x * 313.399215894))); else tmp = Float64(Float64(x + -2.0) / 0.24013125253755718); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -36.0) tmp = (x + -2.0) / ((5.86923874282773 / x) + (0.24013125253755718 - (55.572073733743466 / (x * x)))); elseif (x <= 3e+18) tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * 313.399215894)); else tmp = (x + -2.0) / 0.24013125253755718; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -36.0], N[(N[(x + -2.0), $MachinePrecision] / N[(N[(5.86923874282773 / x), $MachinePrecision] + N[(0.24013125253755718 - N[(55.572073733743466 / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 3e+18], N[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + N[(x * N[(y + N[(x * 137.519416416), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(47.066876606 + N[(x * 313.399215894), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -36:\\
\;\;\;\;\frac{x + -2}{\frac{5.86923874282773}{x} + \left(0.24013125253755718 - \frac{55.572073733743466}{x \cdot x}\right)}\\
\mathbf{elif}\;x \leq 3 \cdot 10^{+18}:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot \left(y + x \cdot 137.519416416\right)\right)}{47.066876606 + x \cdot 313.399215894}\\
\mathbf{else}:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718}\\
\end{array}
\end{array}
if x < -36Initial program 16.6%
associate-/l*28.7%
sub-neg28.7%
metadata-eval28.7%
fma-def28.7%
fma-def28.7%
fma-def28.7%
fma-def28.7%
fma-def28.7%
fma-def28.7%
fma-def28.7%
Simplified28.7%
Taylor expanded in x around inf 84.7%
+-commutative84.7%
associate--l+84.7%
associate-*r/84.7%
metadata-eval84.7%
associate-*r/84.7%
metadata-eval84.7%
unpow284.7%
Simplified84.7%
if -36 < x < 3e18Initial program 99.6%
Taylor expanded in x around inf 96.2%
cube-mult96.2%
unpow296.2%
distribute-rgt-out96.2%
+-commutative96.2%
unpow296.2%
Simplified96.2%
Taylor expanded in x around 0 95.8%
*-commutative95.8%
Simplified95.8%
Taylor expanded in x around 0 95.0%
*-commutative95.0%
Simplified95.0%
if 3e18 < x Initial program 11.4%
associate-/l*23.5%
sub-neg23.5%
metadata-eval23.5%
fma-def23.5%
fma-def23.5%
fma-def23.5%
fma-def23.5%
fma-def23.5%
fma-def23.5%
fma-def23.5%
Simplified23.5%
Taylor expanded in x around inf 92.5%
Final simplification92.3%
(FPCore (x y z)
:precision binary64
(if (<= x -310000000.0)
(/
(+ x -2.0)
(+
(/ 5.86923874282773 x)
(- 0.24013125253755718 (/ 55.572073733743466 (* x x)))))
(if (<= x 5.2)
(*
(+ x -2.0)
(+
(* z 0.0212463641547976)
(* x (- (* y 0.0212463641547976) (* z 0.14147091005106402)))))
(/ (+ x -2.0) 0.24013125253755718))))
double code(double x, double y, double z) {
double tmp;
if (x <= -310000000.0) {
tmp = (x + -2.0) / ((5.86923874282773 / x) + (0.24013125253755718 - (55.572073733743466 / (x * x))));
} else if (x <= 5.2) {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402))));
} else {
tmp = (x + -2.0) / 0.24013125253755718;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-310000000.0d0)) then
tmp = (x + (-2.0d0)) / ((5.86923874282773d0 / x) + (0.24013125253755718d0 - (55.572073733743466d0 / (x * x))))
else if (x <= 5.2d0) then
tmp = (x + (-2.0d0)) * ((z * 0.0212463641547976d0) + (x * ((y * 0.0212463641547976d0) - (z * 0.14147091005106402d0))))
else
tmp = (x + (-2.0d0)) / 0.24013125253755718d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -310000000.0) {
tmp = (x + -2.0) / ((5.86923874282773 / x) + (0.24013125253755718 - (55.572073733743466 / (x * x))));
} else if (x <= 5.2) {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402))));
} else {
tmp = (x + -2.0) / 0.24013125253755718;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -310000000.0: tmp = (x + -2.0) / ((5.86923874282773 / x) + (0.24013125253755718 - (55.572073733743466 / (x * x)))) elif x <= 5.2: tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402)))) else: tmp = (x + -2.0) / 0.24013125253755718 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -310000000.0) tmp = Float64(Float64(x + -2.0) / Float64(Float64(5.86923874282773 / x) + Float64(0.24013125253755718 - Float64(55.572073733743466 / Float64(x * x))))); elseif (x <= 5.2) tmp = Float64(Float64(x + -2.0) * Float64(Float64(z * 0.0212463641547976) + Float64(x * Float64(Float64(y * 0.0212463641547976) - Float64(z * 0.14147091005106402))))); else tmp = Float64(Float64(x + -2.0) / 0.24013125253755718); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -310000000.0) tmp = (x + -2.0) / ((5.86923874282773 / x) + (0.24013125253755718 - (55.572073733743466 / (x * x)))); elseif (x <= 5.2) tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402)))); else tmp = (x + -2.0) / 0.24013125253755718; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -310000000.0], N[(N[(x + -2.0), $MachinePrecision] / N[(N[(5.86923874282773 / x), $MachinePrecision] + N[(0.24013125253755718 - N[(55.572073733743466 / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 5.2], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z * 0.0212463641547976), $MachinePrecision] + N[(x * N[(N[(y * 0.0212463641547976), $MachinePrecision] - N[(z * 0.14147091005106402), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -310000000:\\
\;\;\;\;\frac{x + -2}{\frac{5.86923874282773}{x} + \left(0.24013125253755718 - \frac{55.572073733743466}{x \cdot x}\right)}\\
\mathbf{elif}\;x \leq 5.2:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976 + x \cdot \left(y \cdot 0.0212463641547976 - z \cdot 0.14147091005106402\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718}\\
\end{array}
\end{array}
if x < -3.1e8Initial program 12.0%
associate-/l*24.7%
sub-neg24.7%
metadata-eval24.7%
fma-def24.7%
fma-def24.7%
fma-def24.7%
fma-def24.7%
fma-def24.7%
fma-def24.7%
fma-def24.7%
Simplified24.7%
Taylor expanded in x around inf 89.4%
+-commutative89.4%
associate--l+89.4%
associate-*r/89.4%
metadata-eval89.4%
associate-*r/89.4%
metadata-eval89.4%
unpow289.4%
Simplified89.4%
if -3.1e8 < x < 5.20000000000000018Initial program 99.6%
associate-*r/99.5%
sub-neg99.5%
metadata-eval99.5%
*-commutative99.5%
fma-def99.5%
*-commutative99.5%
fma-def99.5%
*-commutative99.5%
fma-def99.5%
fma-def99.5%
*-commutative99.5%
Simplified99.5%
Taylor expanded in x around 0 89.6%
if 5.20000000000000018 < x Initial program 14.5%
associate-/l*26.1%
sub-neg26.1%
metadata-eval26.1%
fma-def26.1%
fma-def26.1%
fma-def26.1%
fma-def26.1%
fma-def26.1%
fma-def26.1%
fma-def26.1%
Simplified26.1%
Taylor expanded in x around inf 89.4%
Final simplification89.5%
(FPCore (x y z)
:precision binary64
(if (<= x -310000000.0)
(/
(+ x -2.0)
(+
(/ 5.86923874282773 x)
(- 0.24013125253755718 (/ 55.572073733743466 (* x x)))))
(if (<= x 3e+18)
(+
(*
x
(- (* 0.0212463641547976 (+ z (* y -2.0))) (* z -0.28294182010212804)))
(* z -0.0424927283095952))
(/ (+ x -2.0) 0.24013125253755718))))
double code(double x, double y, double z) {
double tmp;
if (x <= -310000000.0) {
tmp = (x + -2.0) / ((5.86923874282773 / x) + (0.24013125253755718 - (55.572073733743466 / (x * x))));
} else if (x <= 3e+18) {
tmp = (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804))) + (z * -0.0424927283095952);
} else {
tmp = (x + -2.0) / 0.24013125253755718;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-310000000.0d0)) then
tmp = (x + (-2.0d0)) / ((5.86923874282773d0 / x) + (0.24013125253755718d0 - (55.572073733743466d0 / (x * x))))
else if (x <= 3d+18) then
tmp = (x * ((0.0212463641547976d0 * (z + (y * (-2.0d0)))) - (z * (-0.28294182010212804d0)))) + (z * (-0.0424927283095952d0))
else
tmp = (x + (-2.0d0)) / 0.24013125253755718d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -310000000.0) {
tmp = (x + -2.0) / ((5.86923874282773 / x) + (0.24013125253755718 - (55.572073733743466 / (x * x))));
} else if (x <= 3e+18) {
tmp = (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804))) + (z * -0.0424927283095952);
} else {
tmp = (x + -2.0) / 0.24013125253755718;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -310000000.0: tmp = (x + -2.0) / ((5.86923874282773 / x) + (0.24013125253755718 - (55.572073733743466 / (x * x)))) elif x <= 3e+18: tmp = (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804))) + (z * -0.0424927283095952) else: tmp = (x + -2.0) / 0.24013125253755718 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -310000000.0) tmp = Float64(Float64(x + -2.0) / Float64(Float64(5.86923874282773 / x) + Float64(0.24013125253755718 - Float64(55.572073733743466 / Float64(x * x))))); elseif (x <= 3e+18) tmp = Float64(Float64(x * Float64(Float64(0.0212463641547976 * Float64(z + Float64(y * -2.0))) - Float64(z * -0.28294182010212804))) + Float64(z * -0.0424927283095952)); else tmp = Float64(Float64(x + -2.0) / 0.24013125253755718); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -310000000.0) tmp = (x + -2.0) / ((5.86923874282773 / x) + (0.24013125253755718 - (55.572073733743466 / (x * x)))); elseif (x <= 3e+18) tmp = (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804))) + (z * -0.0424927283095952); else tmp = (x + -2.0) / 0.24013125253755718; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -310000000.0], N[(N[(x + -2.0), $MachinePrecision] / N[(N[(5.86923874282773 / x), $MachinePrecision] + N[(0.24013125253755718 - N[(55.572073733743466 / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 3e+18], 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], N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -310000000:\\
\;\;\;\;\frac{x + -2}{\frac{5.86923874282773}{x} + \left(0.24013125253755718 - \frac{55.572073733743466}{x \cdot x}\right)}\\
\mathbf{elif}\;x \leq 3 \cdot 10^{+18}:\\
\;\;\;\;x \cdot \left(0.0212463641547976 \cdot \left(z + y \cdot -2\right) - z \cdot -0.28294182010212804\right) + z \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718}\\
\end{array}
\end{array}
if x < -3.1e8Initial program 12.0%
associate-/l*24.7%
sub-neg24.7%
metadata-eval24.7%
fma-def24.7%
fma-def24.7%
fma-def24.7%
fma-def24.7%
fma-def24.7%
fma-def24.7%
fma-def24.7%
Simplified24.7%
Taylor expanded in x around inf 89.4%
+-commutative89.4%
associate--l+89.4%
associate-*r/89.4%
metadata-eval89.4%
associate-*r/89.4%
metadata-eval89.4%
unpow289.4%
Simplified89.4%
if -3.1e8 < x < 3e18Initial program 99.6%
associate-*r/99.5%
sub-neg99.5%
metadata-eval99.5%
*-commutative99.5%
fma-def99.5%
*-commutative99.5%
fma-def99.5%
*-commutative99.5%
fma-def99.5%
fma-def99.5%
*-commutative99.5%
Simplified99.5%
Taylor expanded in x around 0 88.5%
if 3e18 < x Initial program 11.4%
associate-/l*23.5%
sub-neg23.5%
metadata-eval23.5%
fma-def23.5%
fma-def23.5%
fma-def23.5%
fma-def23.5%
fma-def23.5%
fma-def23.5%
fma-def23.5%
Simplified23.5%
Taylor expanded in x around inf 92.5%
Final simplification89.6%
(FPCore (x y z)
:precision binary64
(if (<= x -0.175)
(/
(+ x -2.0)
(+
(/ 5.86923874282773 x)
(- 0.24013125253755718 (/ 55.572073733743466 (* x x)))))
(if (<= x 6e-49)
(/ (+ x -2.0) (/ 47.066876606 z))
(if (<= x 0.125)
(* y (* x (+ -0.0424927283095952 (* x 0.3041881842569256))))
(/ (+ x -2.0) 0.24013125253755718)))))
double code(double x, double y, double z) {
double tmp;
if (x <= -0.175) {
tmp = (x + -2.0) / ((5.86923874282773 / x) + (0.24013125253755718 - (55.572073733743466 / (x * x))));
} else if (x <= 6e-49) {
tmp = (x + -2.0) / (47.066876606 / z);
} else if (x <= 0.125) {
tmp = y * (x * (-0.0424927283095952 + (x * 0.3041881842569256)));
} else {
tmp = (x + -2.0) / 0.24013125253755718;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-0.175d0)) then
tmp = (x + (-2.0d0)) / ((5.86923874282773d0 / x) + (0.24013125253755718d0 - (55.572073733743466d0 / (x * x))))
else if (x <= 6d-49) then
tmp = (x + (-2.0d0)) / (47.066876606d0 / z)
else if (x <= 0.125d0) then
tmp = y * (x * ((-0.0424927283095952d0) + (x * 0.3041881842569256d0)))
else
tmp = (x + (-2.0d0)) / 0.24013125253755718d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -0.175) {
tmp = (x + -2.0) / ((5.86923874282773 / x) + (0.24013125253755718 - (55.572073733743466 / (x * x))));
} else if (x <= 6e-49) {
tmp = (x + -2.0) / (47.066876606 / z);
} else if (x <= 0.125) {
tmp = y * (x * (-0.0424927283095952 + (x * 0.3041881842569256)));
} else {
tmp = (x + -2.0) / 0.24013125253755718;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -0.175: tmp = (x + -2.0) / ((5.86923874282773 / x) + (0.24013125253755718 - (55.572073733743466 / (x * x)))) elif x <= 6e-49: tmp = (x + -2.0) / (47.066876606 / z) elif x <= 0.125: tmp = y * (x * (-0.0424927283095952 + (x * 0.3041881842569256))) else: tmp = (x + -2.0) / 0.24013125253755718 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -0.175) tmp = Float64(Float64(x + -2.0) / Float64(Float64(5.86923874282773 / x) + Float64(0.24013125253755718 - Float64(55.572073733743466 / Float64(x * x))))); elseif (x <= 6e-49) tmp = Float64(Float64(x + -2.0) / Float64(47.066876606 / z)); elseif (x <= 0.125) tmp = Float64(y * Float64(x * Float64(-0.0424927283095952 + Float64(x * 0.3041881842569256)))); else tmp = Float64(Float64(x + -2.0) / 0.24013125253755718); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -0.175) tmp = (x + -2.0) / ((5.86923874282773 / x) + (0.24013125253755718 - (55.572073733743466 / (x * x)))); elseif (x <= 6e-49) tmp = (x + -2.0) / (47.066876606 / z); elseif (x <= 0.125) tmp = y * (x * (-0.0424927283095952 + (x * 0.3041881842569256))); else tmp = (x + -2.0) / 0.24013125253755718; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -0.175], N[(N[(x + -2.0), $MachinePrecision] / N[(N[(5.86923874282773 / x), $MachinePrecision] + N[(0.24013125253755718 - N[(55.572073733743466 / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 6e-49], N[(N[(x + -2.0), $MachinePrecision] / N[(47.066876606 / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 0.125], N[(y * N[(x * N[(-0.0424927283095952 + N[(x * 0.3041881842569256), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -0.175:\\
\;\;\;\;\frac{x + -2}{\frac{5.86923874282773}{x} + \left(0.24013125253755718 - \frac{55.572073733743466}{x \cdot x}\right)}\\
\mathbf{elif}\;x \leq 6 \cdot 10^{-49}:\\
\;\;\;\;\frac{x + -2}{\frac{47.066876606}{z}}\\
\mathbf{elif}\;x \leq 0.125:\\
\;\;\;\;y \cdot \left(x \cdot \left(-0.0424927283095952 + x \cdot 0.3041881842569256\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718}\\
\end{array}
\end{array}
if x < -0.17499999999999999Initial program 18.1%
associate-/l*29.9%
sub-neg29.9%
metadata-eval29.9%
fma-def29.9%
fma-def30.0%
fma-def29.9%
fma-def29.9%
fma-def29.9%
fma-def29.9%
fma-def29.9%
Simplified29.9%
Taylor expanded in x around inf 83.4%
+-commutative83.4%
associate--l+83.4%
associate-*r/83.4%
metadata-eval83.4%
associate-*r/83.4%
metadata-eval83.4%
unpow283.4%
Simplified83.4%
if -0.17499999999999999 < x < 6e-49Initial program 99.6%
associate-/l*99.4%
sub-neg99.4%
metadata-eval99.4%
fma-def99.4%
fma-def99.4%
fma-def99.4%
fma-def99.4%
fma-def99.4%
fma-def99.4%
fma-def99.4%
Simplified99.4%
Taylor expanded in x around 0 75.1%
if 6e-49 < x < 0.125Initial program 99.3%
associate-*r/99.3%
sub-neg99.3%
metadata-eval99.3%
*-commutative99.3%
fma-def99.3%
*-commutative99.3%
fma-def99.3%
*-commutative99.3%
fma-def99.3%
fma-def99.3%
*-commutative99.3%
Simplified99.3%
Taylor expanded in y around inf 87.6%
Taylor expanded in x around 0 81.9%
*-commutative81.9%
associate-*l*82.5%
distribute-rgt-out--82.5%
associate-*l*82.5%
distribute-lft-out82.5%
metadata-eval82.5%
unpow282.5%
Simplified82.5%
Taylor expanded in y around 0 82.5%
*-commutative82.5%
+-commutative82.5%
*-commutative82.5%
unpow282.5%
associate-*l*82.5%
*-commutative82.5%
distribute-lft-out82.5%
Simplified82.5%
if 0.125 < x Initial program 14.5%
associate-/l*26.1%
sub-neg26.1%
metadata-eval26.1%
fma-def26.1%
fma-def26.1%
fma-def26.1%
fma-def26.1%
fma-def26.1%
fma-def26.1%
fma-def26.1%
Simplified26.1%
Taylor expanded in x around inf 89.4%
Final simplification80.3%
(FPCore (x y z)
:precision binary64
(if (<= x -0.00075)
(- (* x 4.16438922228) 110.1139242984811)
(if (<= x 6.8e-50)
(/ (+ x -2.0) (/ 47.066876606 z))
(if (<= x 95.0)
(* y (* x (+ -0.0424927283095952 (* x 0.3041881842569256))))
(/ (+ x -2.0) 0.24013125253755718)))))
double code(double x, double y, double z) {
double tmp;
if (x <= -0.00075) {
tmp = (x * 4.16438922228) - 110.1139242984811;
} else if (x <= 6.8e-50) {
tmp = (x + -2.0) / (47.066876606 / z);
} else if (x <= 95.0) {
tmp = y * (x * (-0.0424927283095952 + (x * 0.3041881842569256)));
} else {
tmp = (x + -2.0) / 0.24013125253755718;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-0.00075d0)) then
tmp = (x * 4.16438922228d0) - 110.1139242984811d0
else if (x <= 6.8d-50) then
tmp = (x + (-2.0d0)) / (47.066876606d0 / z)
else if (x <= 95.0d0) then
tmp = y * (x * ((-0.0424927283095952d0) + (x * 0.3041881842569256d0)))
else
tmp = (x + (-2.0d0)) / 0.24013125253755718d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -0.00075) {
tmp = (x * 4.16438922228) - 110.1139242984811;
} else if (x <= 6.8e-50) {
tmp = (x + -2.0) / (47.066876606 / z);
} else if (x <= 95.0) {
tmp = y * (x * (-0.0424927283095952 + (x * 0.3041881842569256)));
} else {
tmp = (x + -2.0) / 0.24013125253755718;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -0.00075: tmp = (x * 4.16438922228) - 110.1139242984811 elif x <= 6.8e-50: tmp = (x + -2.0) / (47.066876606 / z) elif x <= 95.0: tmp = y * (x * (-0.0424927283095952 + (x * 0.3041881842569256))) else: tmp = (x + -2.0) / 0.24013125253755718 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -0.00075) tmp = Float64(Float64(x * 4.16438922228) - 110.1139242984811); elseif (x <= 6.8e-50) tmp = Float64(Float64(x + -2.0) / Float64(47.066876606 / z)); elseif (x <= 95.0) tmp = Float64(y * Float64(x * Float64(-0.0424927283095952 + Float64(x * 0.3041881842569256)))); else tmp = Float64(Float64(x + -2.0) / 0.24013125253755718); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -0.00075) tmp = (x * 4.16438922228) - 110.1139242984811; elseif (x <= 6.8e-50) tmp = (x + -2.0) / (47.066876606 / z); elseif (x <= 95.0) tmp = y * (x * (-0.0424927283095952 + (x * 0.3041881842569256))); else tmp = (x + -2.0) / 0.24013125253755718; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -0.00075], N[(N[(x * 4.16438922228), $MachinePrecision] - 110.1139242984811), $MachinePrecision], If[LessEqual[x, 6.8e-50], N[(N[(x + -2.0), $MachinePrecision] / N[(47.066876606 / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 95.0], N[(y * N[(x * N[(-0.0424927283095952 + N[(x * 0.3041881842569256), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -0.00075:\\
\;\;\;\;x \cdot 4.16438922228 - 110.1139242984811\\
\mathbf{elif}\;x \leq 6.8 \cdot 10^{-50}:\\
\;\;\;\;\frac{x + -2}{\frac{47.066876606}{z}}\\
\mathbf{elif}\;x \leq 95:\\
\;\;\;\;y \cdot \left(x \cdot \left(-0.0424927283095952 + x \cdot 0.3041881842569256\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718}\\
\end{array}
\end{array}
if x < -7.5000000000000002e-4Initial program 24.7%
associate-*r/35.5%
sub-neg35.5%
metadata-eval35.5%
*-commutative35.5%
fma-def35.5%
*-commutative35.5%
fma-def35.5%
*-commutative35.5%
fma-def35.6%
fma-def35.6%
*-commutative35.6%
Simplified35.6%
Taylor expanded in x around inf 76.6%
if -7.5000000000000002e-4 < x < 6.80000000000000029e-50Initial program 99.7%
associate-/l*99.5%
sub-neg99.5%
metadata-eval99.5%
fma-def99.5%
fma-def99.5%
fma-def99.5%
fma-def99.5%
fma-def99.5%
fma-def99.5%
fma-def99.5%
Simplified99.5%
Taylor expanded in x around 0 77.7%
if 6.80000000000000029e-50 < x < 95Initial program 99.3%
associate-*r/99.3%
sub-neg99.3%
metadata-eval99.3%
*-commutative99.3%
fma-def99.3%
*-commutative99.3%
fma-def99.3%
*-commutative99.3%
fma-def99.3%
fma-def99.3%
*-commutative99.3%
Simplified99.3%
Taylor expanded in y around inf 87.6%
Taylor expanded in x around 0 81.9%
*-commutative81.9%
associate-*l*82.5%
distribute-rgt-out--82.5%
associate-*l*82.5%
distribute-lft-out82.5%
metadata-eval82.5%
unpow282.5%
Simplified82.5%
Taylor expanded in y around 0 82.5%
*-commutative82.5%
+-commutative82.5%
*-commutative82.5%
unpow282.5%
associate-*l*82.5%
*-commutative82.5%
distribute-lft-out82.5%
Simplified82.5%
if 95 < x Initial program 14.5%
associate-/l*26.1%
sub-neg26.1%
metadata-eval26.1%
fma-def26.1%
fma-def26.1%
fma-def26.1%
fma-def26.1%
fma-def26.1%
fma-def26.1%
fma-def26.1%
Simplified26.1%
Taylor expanded in x around inf 89.4%
Final simplification80.2%
(FPCore (x y z)
:precision binary64
(if (<= x -0.175)
(/ (+ x -2.0) (+ 0.24013125253755718 (/ 5.86923874282773 x)))
(if (<= x 5.4e-48)
(/ (+ x -2.0) (/ 47.066876606 z))
(if (<= x 0.13)
(* y (* x (+ -0.0424927283095952 (* x 0.3041881842569256))))
(/ (+ x -2.0) 0.24013125253755718)))))
double code(double x, double y, double z) {
double tmp;
if (x <= -0.175) {
tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x));
} else if (x <= 5.4e-48) {
tmp = (x + -2.0) / (47.066876606 / z);
} else if (x <= 0.13) {
tmp = y * (x * (-0.0424927283095952 + (x * 0.3041881842569256)));
} else {
tmp = (x + -2.0) / 0.24013125253755718;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-0.175d0)) then
tmp = (x + (-2.0d0)) / (0.24013125253755718d0 + (5.86923874282773d0 / x))
else if (x <= 5.4d-48) then
tmp = (x + (-2.0d0)) / (47.066876606d0 / z)
else if (x <= 0.13d0) then
tmp = y * (x * ((-0.0424927283095952d0) + (x * 0.3041881842569256d0)))
else
tmp = (x + (-2.0d0)) / 0.24013125253755718d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -0.175) {
tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x));
} else if (x <= 5.4e-48) {
tmp = (x + -2.0) / (47.066876606 / z);
} else if (x <= 0.13) {
tmp = y * (x * (-0.0424927283095952 + (x * 0.3041881842569256)));
} else {
tmp = (x + -2.0) / 0.24013125253755718;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -0.175: tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x)) elif x <= 5.4e-48: tmp = (x + -2.0) / (47.066876606 / z) elif x <= 0.13: tmp = y * (x * (-0.0424927283095952 + (x * 0.3041881842569256))) else: tmp = (x + -2.0) / 0.24013125253755718 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -0.175) tmp = Float64(Float64(x + -2.0) / Float64(0.24013125253755718 + Float64(5.86923874282773 / x))); elseif (x <= 5.4e-48) tmp = Float64(Float64(x + -2.0) / Float64(47.066876606 / z)); elseif (x <= 0.13) tmp = Float64(y * Float64(x * Float64(-0.0424927283095952 + Float64(x * 0.3041881842569256)))); else tmp = Float64(Float64(x + -2.0) / 0.24013125253755718); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -0.175) tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x)); elseif (x <= 5.4e-48) tmp = (x + -2.0) / (47.066876606 / z); elseif (x <= 0.13) tmp = y * (x * (-0.0424927283095952 + (x * 0.3041881842569256))); else tmp = (x + -2.0) / 0.24013125253755718; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -0.175], N[(N[(x + -2.0), $MachinePrecision] / N[(0.24013125253755718 + N[(5.86923874282773 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 5.4e-48], N[(N[(x + -2.0), $MachinePrecision] / N[(47.066876606 / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 0.13], N[(y * N[(x * N[(-0.0424927283095952 + N[(x * 0.3041881842569256), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -0.175:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718 + \frac{5.86923874282773}{x}}\\
\mathbf{elif}\;x \leq 5.4 \cdot 10^{-48}:\\
\;\;\;\;\frac{x + -2}{\frac{47.066876606}{z}}\\
\mathbf{elif}\;x \leq 0.13:\\
\;\;\;\;y \cdot \left(x \cdot \left(-0.0424927283095952 + x \cdot 0.3041881842569256\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718}\\
\end{array}
\end{array}
if x < -0.17499999999999999Initial program 18.1%
associate-/l*29.9%
sub-neg29.9%
metadata-eval29.9%
fma-def29.9%
fma-def30.0%
fma-def29.9%
fma-def29.9%
fma-def29.9%
fma-def29.9%
fma-def29.9%
Simplified29.9%
Taylor expanded in x around inf 83.4%
associate-*r/83.4%
metadata-eval83.4%
Simplified83.4%
if -0.17499999999999999 < x < 5.40000000000000023e-48Initial program 99.6%
associate-/l*99.4%
sub-neg99.4%
metadata-eval99.4%
fma-def99.4%
fma-def99.4%
fma-def99.4%
fma-def99.4%
fma-def99.4%
fma-def99.4%
fma-def99.4%
Simplified99.4%
Taylor expanded in x around 0 75.1%
if 5.40000000000000023e-48 < x < 0.13Initial program 99.3%
associate-*r/99.3%
sub-neg99.3%
metadata-eval99.3%
*-commutative99.3%
fma-def99.3%
*-commutative99.3%
fma-def99.3%
*-commutative99.3%
fma-def99.3%
fma-def99.3%
*-commutative99.3%
Simplified99.3%
Taylor expanded in y around inf 87.6%
Taylor expanded in x around 0 81.9%
*-commutative81.9%
associate-*l*82.5%
distribute-rgt-out--82.5%
associate-*l*82.5%
distribute-lft-out82.5%
metadata-eval82.5%
unpow282.5%
Simplified82.5%
Taylor expanded in y around 0 82.5%
*-commutative82.5%
+-commutative82.5%
*-commutative82.5%
unpow282.5%
associate-*l*82.5%
*-commutative82.5%
distribute-lft-out82.5%
Simplified82.5%
if 0.13 < x Initial program 14.5%
associate-/l*26.1%
sub-neg26.1%
metadata-eval26.1%
fma-def26.1%
fma-def26.1%
fma-def26.1%
fma-def26.1%
fma-def26.1%
fma-def26.1%
fma-def26.1%
Simplified26.1%
Taylor expanded in x around inf 89.4%
Final simplification80.3%
(FPCore (x y z)
:precision binary64
(if (<= x -0.00075)
(* x 4.16438922228)
(if (<= x 5.8e-49)
(* z -0.0424927283095952)
(if (<= x 2.0) (* -0.0424927283095952 (* x y)) (* x 4.16438922228)))))
double code(double x, double y, double z) {
double tmp;
if (x <= -0.00075) {
tmp = x * 4.16438922228;
} else if (x <= 5.8e-49) {
tmp = z * -0.0424927283095952;
} else if (x <= 2.0) {
tmp = -0.0424927283095952 * (x * y);
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-0.00075d0)) then
tmp = x * 4.16438922228d0
else if (x <= 5.8d-49) then
tmp = z * (-0.0424927283095952d0)
else if (x <= 2.0d0) then
tmp = (-0.0424927283095952d0) * (x * y)
else
tmp = x * 4.16438922228d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -0.00075) {
tmp = x * 4.16438922228;
} else if (x <= 5.8e-49) {
tmp = z * -0.0424927283095952;
} else if (x <= 2.0) {
tmp = -0.0424927283095952 * (x * y);
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -0.00075: tmp = x * 4.16438922228 elif x <= 5.8e-49: tmp = z * -0.0424927283095952 elif x <= 2.0: tmp = -0.0424927283095952 * (x * y) else: tmp = x * 4.16438922228 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -0.00075) tmp = Float64(x * 4.16438922228); elseif (x <= 5.8e-49) tmp = Float64(z * -0.0424927283095952); elseif (x <= 2.0) tmp = Float64(-0.0424927283095952 * Float64(x * y)); else tmp = Float64(x * 4.16438922228); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -0.00075) tmp = x * 4.16438922228; elseif (x <= 5.8e-49) tmp = z * -0.0424927283095952; elseif (x <= 2.0) tmp = -0.0424927283095952 * (x * y); else tmp = x * 4.16438922228; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -0.00075], N[(x * 4.16438922228), $MachinePrecision], If[LessEqual[x, 5.8e-49], N[(z * -0.0424927283095952), $MachinePrecision], If[LessEqual[x, 2.0], N[(-0.0424927283095952 * N[(x * y), $MachinePrecision]), $MachinePrecision], N[(x * 4.16438922228), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -0.00075:\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{elif}\;x \leq 5.8 \cdot 10^{-49}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{elif}\;x \leq 2:\\
\;\;\;\;-0.0424927283095952 \cdot \left(x \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228\\
\end{array}
\end{array}
if x < -7.5000000000000002e-4 or 2 < x Initial program 19.8%
*-commutative19.8%
associate-*r/31.0%
*-commutative31.0%
fma-def30.9%
*-commutative30.9%
fma-def30.9%
*-commutative30.9%
fma-def30.9%
fma-def31.0%
Simplified31.0%
fma-def30.9%
flip-+30.9%
metadata-eval30.9%
Applied egg-rr30.9%
sub-neg30.9%
swap-sqr31.0%
metadata-eval31.1%
metadata-eval31.1%
fma-neg31.1%
metadata-eval31.1%
Simplified31.1%
Taylor expanded in x around inf 82.3%
*-commutative82.3%
Simplified82.3%
if -7.5000000000000002e-4 < x < 5.8e-49Initial program 99.7%
associate-*r/99.7%
sub-neg99.7%
metadata-eval99.7%
*-commutative99.7%
fma-def99.7%
*-commutative99.7%
fma-def99.7%
*-commutative99.7%
fma-def99.7%
fma-def99.7%
*-commutative99.7%
Simplified99.7%
Taylor expanded in x around 0 77.6%
*-commutative77.6%
Simplified77.6%
if 5.8e-49 < x < 2Initial program 99.3%
associate-*r/99.3%
sub-neg99.3%
metadata-eval99.3%
*-commutative99.3%
fma-def99.3%
*-commutative99.3%
fma-def99.3%
*-commutative99.3%
fma-def99.3%
fma-def99.3%
*-commutative99.3%
Simplified99.3%
Taylor expanded in y around inf 87.6%
Taylor expanded in x around 0 76.5%
Final simplification79.7%
(FPCore (x y z)
:precision binary64
(if (<= x -0.00075)
(* x 4.16438922228)
(if (<= x 4.8e-48)
(* z -0.0424927283095952)
(if (<= x 2.0) (* x (* y -0.0424927283095952)) (* x 4.16438922228)))))
double code(double x, double y, double z) {
double tmp;
if (x <= -0.00075) {
tmp = x * 4.16438922228;
} else if (x <= 4.8e-48) {
tmp = z * -0.0424927283095952;
} else if (x <= 2.0) {
tmp = x * (y * -0.0424927283095952);
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-0.00075d0)) then
tmp = x * 4.16438922228d0
else if (x <= 4.8d-48) then
tmp = z * (-0.0424927283095952d0)
else if (x <= 2.0d0) then
tmp = x * (y * (-0.0424927283095952d0))
else
tmp = x * 4.16438922228d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -0.00075) {
tmp = x * 4.16438922228;
} else if (x <= 4.8e-48) {
tmp = z * -0.0424927283095952;
} else if (x <= 2.0) {
tmp = x * (y * -0.0424927283095952);
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -0.00075: tmp = x * 4.16438922228 elif x <= 4.8e-48: tmp = z * -0.0424927283095952 elif x <= 2.0: tmp = x * (y * -0.0424927283095952) else: tmp = x * 4.16438922228 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -0.00075) tmp = Float64(x * 4.16438922228); elseif (x <= 4.8e-48) tmp = Float64(z * -0.0424927283095952); elseif (x <= 2.0) tmp = Float64(x * Float64(y * -0.0424927283095952)); else tmp = Float64(x * 4.16438922228); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -0.00075) tmp = x * 4.16438922228; elseif (x <= 4.8e-48) tmp = z * -0.0424927283095952; elseif (x <= 2.0) tmp = x * (y * -0.0424927283095952); else tmp = x * 4.16438922228; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -0.00075], N[(x * 4.16438922228), $MachinePrecision], If[LessEqual[x, 4.8e-48], N[(z * -0.0424927283095952), $MachinePrecision], If[LessEqual[x, 2.0], N[(x * N[(y * -0.0424927283095952), $MachinePrecision]), $MachinePrecision], N[(x * 4.16438922228), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -0.00075:\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{elif}\;x \leq 4.8 \cdot 10^{-48}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{elif}\;x \leq 2:\\
\;\;\;\;x \cdot \left(y \cdot -0.0424927283095952\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228\\
\end{array}
\end{array}
if x < -7.5000000000000002e-4 or 2 < x Initial program 19.8%
*-commutative19.8%
associate-*r/31.0%
*-commutative31.0%
fma-def30.9%
*-commutative30.9%
fma-def30.9%
*-commutative30.9%
fma-def30.9%
fma-def31.0%
Simplified31.0%
fma-def30.9%
flip-+30.9%
metadata-eval30.9%
Applied egg-rr30.9%
sub-neg30.9%
swap-sqr31.0%
metadata-eval31.1%
metadata-eval31.1%
fma-neg31.1%
metadata-eval31.1%
Simplified31.1%
Taylor expanded in x around inf 82.3%
*-commutative82.3%
Simplified82.3%
if -7.5000000000000002e-4 < x < 4.8e-48Initial program 99.7%
associate-*r/99.7%
sub-neg99.7%
metadata-eval99.7%
*-commutative99.7%
fma-def99.7%
*-commutative99.7%
fma-def99.7%
*-commutative99.7%
fma-def99.7%
fma-def99.7%
*-commutative99.7%
Simplified99.7%
Taylor expanded in x around 0 77.6%
*-commutative77.6%
Simplified77.6%
if 4.8e-48 < x < 2Initial program 99.3%
associate-*r/99.3%
sub-neg99.3%
metadata-eval99.3%
*-commutative99.3%
fma-def99.3%
*-commutative99.3%
fma-def99.3%
*-commutative99.3%
fma-def99.3%
fma-def99.3%
*-commutative99.3%
Simplified99.3%
Taylor expanded in y around inf 87.6%
Taylor expanded in x around 0 76.5%
associate-*r*76.9%
metadata-eval76.9%
associate-*r*76.9%
*-commutative76.9%
associate-*r*76.9%
metadata-eval76.9%
Simplified76.9%
Final simplification79.8%
(FPCore (x y z)
:precision binary64
(if (<= x -0.00075)
(* x 4.16438922228)
(if (<= x 4.5e-48)
(* z -0.0424927283095952)
(if (<= x 2.0) (* y (* x -0.0424927283095952)) (* x 4.16438922228)))))
double code(double x, double y, double z) {
double tmp;
if (x <= -0.00075) {
tmp = x * 4.16438922228;
} else if (x <= 4.5e-48) {
tmp = z * -0.0424927283095952;
} else if (x <= 2.0) {
tmp = y * (x * -0.0424927283095952);
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-0.00075d0)) then
tmp = x * 4.16438922228d0
else if (x <= 4.5d-48) then
tmp = z * (-0.0424927283095952d0)
else if (x <= 2.0d0) then
tmp = y * (x * (-0.0424927283095952d0))
else
tmp = x * 4.16438922228d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -0.00075) {
tmp = x * 4.16438922228;
} else if (x <= 4.5e-48) {
tmp = z * -0.0424927283095952;
} else if (x <= 2.0) {
tmp = y * (x * -0.0424927283095952);
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -0.00075: tmp = x * 4.16438922228 elif x <= 4.5e-48: tmp = z * -0.0424927283095952 elif x <= 2.0: tmp = y * (x * -0.0424927283095952) else: tmp = x * 4.16438922228 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -0.00075) tmp = Float64(x * 4.16438922228); elseif (x <= 4.5e-48) tmp = Float64(z * -0.0424927283095952); elseif (x <= 2.0) tmp = Float64(y * Float64(x * -0.0424927283095952)); else tmp = Float64(x * 4.16438922228); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -0.00075) tmp = x * 4.16438922228; elseif (x <= 4.5e-48) tmp = z * -0.0424927283095952; elseif (x <= 2.0) tmp = y * (x * -0.0424927283095952); else tmp = x * 4.16438922228; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -0.00075], N[(x * 4.16438922228), $MachinePrecision], If[LessEqual[x, 4.5e-48], N[(z * -0.0424927283095952), $MachinePrecision], If[LessEqual[x, 2.0], N[(y * N[(x * -0.0424927283095952), $MachinePrecision]), $MachinePrecision], N[(x * 4.16438922228), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -0.00075:\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{elif}\;x \leq 4.5 \cdot 10^{-48}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{elif}\;x \leq 2:\\
\;\;\;\;y \cdot \left(x \cdot -0.0424927283095952\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228\\
\end{array}
\end{array}
if x < -7.5000000000000002e-4 or 2 < x Initial program 19.8%
*-commutative19.8%
associate-*r/31.0%
*-commutative31.0%
fma-def30.9%
*-commutative30.9%
fma-def30.9%
*-commutative30.9%
fma-def30.9%
fma-def31.0%
Simplified31.0%
fma-def30.9%
flip-+30.9%
metadata-eval30.9%
Applied egg-rr30.9%
sub-neg30.9%
swap-sqr31.0%
metadata-eval31.1%
metadata-eval31.1%
fma-neg31.1%
metadata-eval31.1%
Simplified31.1%
Taylor expanded in x around inf 82.3%
*-commutative82.3%
Simplified82.3%
if -7.5000000000000002e-4 < x < 4.49999999999999988e-48Initial program 99.7%
associate-*r/99.7%
sub-neg99.7%
metadata-eval99.7%
*-commutative99.7%
fma-def99.7%
*-commutative99.7%
fma-def99.7%
*-commutative99.7%
fma-def99.7%
fma-def99.7%
*-commutative99.7%
Simplified99.7%
Taylor expanded in x around 0 77.6%
*-commutative77.6%
Simplified77.6%
if 4.49999999999999988e-48 < x < 2Initial program 99.3%
*-commutative99.3%
associate-*r/99.1%
*-commutative99.1%
fma-def99.1%
*-commutative99.1%
fma-def99.1%
*-commutative99.1%
fma-def99.1%
fma-def99.1%
Simplified99.1%
Taylor expanded in z around 0 99.3%
Taylor expanded in x around 0 76.5%
*-commutative76.5%
associate-*l*77.1%
Simplified77.1%
Final simplification79.8%
(FPCore (x y z)
:precision binary64
(if (<= x -0.00075)
(- (* x 4.16438922228) 110.1139242984811)
(if (<= x 4.1e-56)
(* z -0.0424927283095952)
(if (<= x 2.0) (* y (* x -0.0424927283095952)) (* x 4.16438922228)))))
double code(double x, double y, double z) {
double tmp;
if (x <= -0.00075) {
tmp = (x * 4.16438922228) - 110.1139242984811;
} else if (x <= 4.1e-56) {
tmp = z * -0.0424927283095952;
} else if (x <= 2.0) {
tmp = y * (x * -0.0424927283095952);
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-0.00075d0)) then
tmp = (x * 4.16438922228d0) - 110.1139242984811d0
else if (x <= 4.1d-56) then
tmp = z * (-0.0424927283095952d0)
else if (x <= 2.0d0) then
tmp = y * (x * (-0.0424927283095952d0))
else
tmp = x * 4.16438922228d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -0.00075) {
tmp = (x * 4.16438922228) - 110.1139242984811;
} else if (x <= 4.1e-56) {
tmp = z * -0.0424927283095952;
} else if (x <= 2.0) {
tmp = y * (x * -0.0424927283095952);
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -0.00075: tmp = (x * 4.16438922228) - 110.1139242984811 elif x <= 4.1e-56: tmp = z * -0.0424927283095952 elif x <= 2.0: tmp = y * (x * -0.0424927283095952) else: tmp = x * 4.16438922228 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -0.00075) tmp = Float64(Float64(x * 4.16438922228) - 110.1139242984811); elseif (x <= 4.1e-56) tmp = Float64(z * -0.0424927283095952); elseif (x <= 2.0) tmp = Float64(y * Float64(x * -0.0424927283095952)); else tmp = Float64(x * 4.16438922228); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -0.00075) tmp = (x * 4.16438922228) - 110.1139242984811; elseif (x <= 4.1e-56) tmp = z * -0.0424927283095952; elseif (x <= 2.0) tmp = y * (x * -0.0424927283095952); else tmp = x * 4.16438922228; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -0.00075], N[(N[(x * 4.16438922228), $MachinePrecision] - 110.1139242984811), $MachinePrecision], If[LessEqual[x, 4.1e-56], N[(z * -0.0424927283095952), $MachinePrecision], If[LessEqual[x, 2.0], N[(y * N[(x * -0.0424927283095952), $MachinePrecision]), $MachinePrecision], N[(x * 4.16438922228), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -0.00075:\\
\;\;\;\;x \cdot 4.16438922228 - 110.1139242984811\\
\mathbf{elif}\;x \leq 4.1 \cdot 10^{-56}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{elif}\;x \leq 2:\\
\;\;\;\;y \cdot \left(x \cdot -0.0424927283095952\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228\\
\end{array}
\end{array}
if x < -7.5000000000000002e-4Initial program 24.7%
associate-*r/35.5%
sub-neg35.5%
metadata-eval35.5%
*-commutative35.5%
fma-def35.5%
*-commutative35.5%
fma-def35.5%
*-commutative35.5%
fma-def35.6%
fma-def35.6%
*-commutative35.6%
Simplified35.6%
Taylor expanded in x around inf 76.6%
if -7.5000000000000002e-4 < x < 4.1000000000000001e-56Initial program 99.7%
associate-*r/99.7%
sub-neg99.7%
metadata-eval99.7%
*-commutative99.7%
fma-def99.7%
*-commutative99.7%
fma-def99.7%
*-commutative99.7%
fma-def99.7%
fma-def99.7%
*-commutative99.7%
Simplified99.7%
Taylor expanded in x around 0 77.6%
*-commutative77.6%
Simplified77.6%
if 4.1000000000000001e-56 < x < 2Initial program 99.3%
*-commutative99.3%
associate-*r/99.1%
*-commutative99.1%
fma-def99.1%
*-commutative99.1%
fma-def99.1%
*-commutative99.1%
fma-def99.1%
fma-def99.1%
Simplified99.1%
Taylor expanded in z around 0 99.3%
Taylor expanded in x around 0 76.5%
*-commutative76.5%
associate-*l*77.1%
Simplified77.1%
if 2 < x Initial program 14.5%
*-commutative14.5%
associate-*r/26.0%
*-commutative26.0%
fma-def26.0%
*-commutative26.0%
fma-def26.0%
*-commutative26.0%
fma-def26.0%
fma-def26.0%
Simplified26.1%
fma-def26.1%
flip-+26.1%
metadata-eval26.1%
Applied egg-rr26.1%
sub-neg26.1%
swap-sqr26.2%
metadata-eval26.2%
metadata-eval26.2%
fma-neg26.2%
metadata-eval26.2%
Simplified26.2%
Taylor expanded in x around inf 88.9%
*-commutative88.9%
Simplified88.9%
Final simplification79.9%
(FPCore (x y z)
:precision binary64
(if (<= x -0.00075)
(- (* x 4.16438922228) 110.1139242984811)
(if (<= x 1.9e-59)
(* z -0.0424927283095952)
(if (<= x 0.52)
(* y (* x -0.0424927283095952))
(/ (+ x -2.0) 0.24013125253755718)))))
double code(double x, double y, double z) {
double tmp;
if (x <= -0.00075) {
tmp = (x * 4.16438922228) - 110.1139242984811;
} else if (x <= 1.9e-59) {
tmp = z * -0.0424927283095952;
} else if (x <= 0.52) {
tmp = y * (x * -0.0424927283095952);
} else {
tmp = (x + -2.0) / 0.24013125253755718;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-0.00075d0)) then
tmp = (x * 4.16438922228d0) - 110.1139242984811d0
else if (x <= 1.9d-59) then
tmp = z * (-0.0424927283095952d0)
else if (x <= 0.52d0) then
tmp = y * (x * (-0.0424927283095952d0))
else
tmp = (x + (-2.0d0)) / 0.24013125253755718d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -0.00075) {
tmp = (x * 4.16438922228) - 110.1139242984811;
} else if (x <= 1.9e-59) {
tmp = z * -0.0424927283095952;
} else if (x <= 0.52) {
tmp = y * (x * -0.0424927283095952);
} else {
tmp = (x + -2.0) / 0.24013125253755718;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -0.00075: tmp = (x * 4.16438922228) - 110.1139242984811 elif x <= 1.9e-59: tmp = z * -0.0424927283095952 elif x <= 0.52: tmp = y * (x * -0.0424927283095952) else: tmp = (x + -2.0) / 0.24013125253755718 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -0.00075) tmp = Float64(Float64(x * 4.16438922228) - 110.1139242984811); elseif (x <= 1.9e-59) tmp = Float64(z * -0.0424927283095952); elseif (x <= 0.52) tmp = Float64(y * Float64(x * -0.0424927283095952)); else tmp = Float64(Float64(x + -2.0) / 0.24013125253755718); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -0.00075) tmp = (x * 4.16438922228) - 110.1139242984811; elseif (x <= 1.9e-59) tmp = z * -0.0424927283095952; elseif (x <= 0.52) tmp = y * (x * -0.0424927283095952); else tmp = (x + -2.0) / 0.24013125253755718; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -0.00075], N[(N[(x * 4.16438922228), $MachinePrecision] - 110.1139242984811), $MachinePrecision], If[LessEqual[x, 1.9e-59], N[(z * -0.0424927283095952), $MachinePrecision], If[LessEqual[x, 0.52], N[(y * N[(x * -0.0424927283095952), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -0.00075:\\
\;\;\;\;x \cdot 4.16438922228 - 110.1139242984811\\
\mathbf{elif}\;x \leq 1.9 \cdot 10^{-59}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{elif}\;x \leq 0.52:\\
\;\;\;\;y \cdot \left(x \cdot -0.0424927283095952\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718}\\
\end{array}
\end{array}
if x < -7.5000000000000002e-4Initial program 24.7%
associate-*r/35.5%
sub-neg35.5%
metadata-eval35.5%
*-commutative35.5%
fma-def35.5%
*-commutative35.5%
fma-def35.5%
*-commutative35.5%
fma-def35.6%
fma-def35.6%
*-commutative35.6%
Simplified35.6%
Taylor expanded in x around inf 76.6%
if -7.5000000000000002e-4 < x < 1.89999999999999992e-59Initial program 99.7%
associate-*r/99.7%
sub-neg99.7%
metadata-eval99.7%
*-commutative99.7%
fma-def99.7%
*-commutative99.7%
fma-def99.7%
*-commutative99.7%
fma-def99.7%
fma-def99.7%
*-commutative99.7%
Simplified99.7%
Taylor expanded in x around 0 77.6%
*-commutative77.6%
Simplified77.6%
if 1.89999999999999992e-59 < x < 0.52000000000000002Initial program 99.3%
*-commutative99.3%
associate-*r/99.1%
*-commutative99.1%
fma-def99.1%
*-commutative99.1%
fma-def99.1%
*-commutative99.1%
fma-def99.1%
fma-def99.1%
Simplified99.1%
Taylor expanded in z around 0 99.3%
Taylor expanded in x around 0 76.5%
*-commutative76.5%
associate-*l*77.1%
Simplified77.1%
if 0.52000000000000002 < x Initial program 14.5%
associate-/l*26.1%
sub-neg26.1%
metadata-eval26.1%
fma-def26.1%
fma-def26.1%
fma-def26.1%
fma-def26.1%
fma-def26.1%
fma-def26.1%
fma-def26.1%
Simplified26.1%
Taylor expanded in x around inf 89.4%
Final simplification80.0%
(FPCore (x y z)
:precision binary64
(if (<= x -0.00075)
(- (* x 4.16438922228) 110.1139242984811)
(if (<= x 5.5e-52)
(* (+ x -2.0) (* z 0.0212463641547976))
(if (<= x 0.049)
(* y (* x -0.0424927283095952))
(/ (+ x -2.0) 0.24013125253755718)))))
double code(double x, double y, double z) {
double tmp;
if (x <= -0.00075) {
tmp = (x * 4.16438922228) - 110.1139242984811;
} else if (x <= 5.5e-52) {
tmp = (x + -2.0) * (z * 0.0212463641547976);
} else if (x <= 0.049) {
tmp = y * (x * -0.0424927283095952);
} else {
tmp = (x + -2.0) / 0.24013125253755718;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-0.00075d0)) then
tmp = (x * 4.16438922228d0) - 110.1139242984811d0
else if (x <= 5.5d-52) then
tmp = (x + (-2.0d0)) * (z * 0.0212463641547976d0)
else if (x <= 0.049d0) then
tmp = y * (x * (-0.0424927283095952d0))
else
tmp = (x + (-2.0d0)) / 0.24013125253755718d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -0.00075) {
tmp = (x * 4.16438922228) - 110.1139242984811;
} else if (x <= 5.5e-52) {
tmp = (x + -2.0) * (z * 0.0212463641547976);
} else if (x <= 0.049) {
tmp = y * (x * -0.0424927283095952);
} else {
tmp = (x + -2.0) / 0.24013125253755718;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -0.00075: tmp = (x * 4.16438922228) - 110.1139242984811 elif x <= 5.5e-52: tmp = (x + -2.0) * (z * 0.0212463641547976) elif x <= 0.049: tmp = y * (x * -0.0424927283095952) else: tmp = (x + -2.0) / 0.24013125253755718 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -0.00075) tmp = Float64(Float64(x * 4.16438922228) - 110.1139242984811); elseif (x <= 5.5e-52) tmp = Float64(Float64(x + -2.0) * Float64(z * 0.0212463641547976)); elseif (x <= 0.049) tmp = Float64(y * Float64(x * -0.0424927283095952)); else tmp = Float64(Float64(x + -2.0) / 0.24013125253755718); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -0.00075) tmp = (x * 4.16438922228) - 110.1139242984811; elseif (x <= 5.5e-52) tmp = (x + -2.0) * (z * 0.0212463641547976); elseif (x <= 0.049) tmp = y * (x * -0.0424927283095952); else tmp = (x + -2.0) / 0.24013125253755718; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -0.00075], N[(N[(x * 4.16438922228), $MachinePrecision] - 110.1139242984811), $MachinePrecision], If[LessEqual[x, 5.5e-52], N[(N[(x + -2.0), $MachinePrecision] * N[(z * 0.0212463641547976), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 0.049], N[(y * N[(x * -0.0424927283095952), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -0.00075:\\
\;\;\;\;x \cdot 4.16438922228 - 110.1139242984811\\
\mathbf{elif}\;x \leq 5.5 \cdot 10^{-52}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976\right)\\
\mathbf{elif}\;x \leq 0.049:\\
\;\;\;\;y \cdot \left(x \cdot -0.0424927283095952\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718}\\
\end{array}
\end{array}
if x < -7.5000000000000002e-4Initial program 24.7%
associate-*r/35.5%
sub-neg35.5%
metadata-eval35.5%
*-commutative35.5%
fma-def35.5%
*-commutative35.5%
fma-def35.5%
*-commutative35.5%
fma-def35.6%
fma-def35.6%
*-commutative35.6%
Simplified35.6%
Taylor expanded in x around inf 76.6%
if -7.5000000000000002e-4 < x < 5.5e-52Initial program 99.7%
associate-*r/99.7%
sub-neg99.7%
metadata-eval99.7%
*-commutative99.7%
fma-def99.7%
*-commutative99.7%
fma-def99.7%
*-commutative99.7%
fma-def99.7%
fma-def99.7%
*-commutative99.7%
Simplified99.7%
Taylor expanded in x around 0 77.6%
if 5.5e-52 < x < 0.049000000000000002Initial program 99.3%
*-commutative99.3%
associate-*r/99.1%
*-commutative99.1%
fma-def99.1%
*-commutative99.1%
fma-def99.1%
*-commutative99.1%
fma-def99.1%
fma-def99.1%
Simplified99.1%
Taylor expanded in z around 0 99.3%
Taylor expanded in x around 0 76.5%
*-commutative76.5%
associate-*l*77.1%
Simplified77.1%
if 0.049000000000000002 < x Initial program 14.5%
associate-/l*26.1%
sub-neg26.1%
metadata-eval26.1%
fma-def26.1%
fma-def26.1%
fma-def26.1%
fma-def26.1%
fma-def26.1%
fma-def26.1%
fma-def26.1%
Simplified26.1%
Taylor expanded in x around inf 89.4%
Final simplification80.0%
(FPCore (x y z)
:precision binary64
(if (<= x -0.00075)
(- (* x 4.16438922228) 110.1139242984811)
(if (<= x 2.05e-49)
(/ (+ x -2.0) (/ 47.066876606 z))
(if (<= x 1.72)
(* y (* x -0.0424927283095952))
(/ (+ x -2.0) 0.24013125253755718)))))
double code(double x, double y, double z) {
double tmp;
if (x <= -0.00075) {
tmp = (x * 4.16438922228) - 110.1139242984811;
} else if (x <= 2.05e-49) {
tmp = (x + -2.0) / (47.066876606 / z);
} else if (x <= 1.72) {
tmp = y * (x * -0.0424927283095952);
} else {
tmp = (x + -2.0) / 0.24013125253755718;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-0.00075d0)) then
tmp = (x * 4.16438922228d0) - 110.1139242984811d0
else if (x <= 2.05d-49) then
tmp = (x + (-2.0d0)) / (47.066876606d0 / z)
else if (x <= 1.72d0) then
tmp = y * (x * (-0.0424927283095952d0))
else
tmp = (x + (-2.0d0)) / 0.24013125253755718d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -0.00075) {
tmp = (x * 4.16438922228) - 110.1139242984811;
} else if (x <= 2.05e-49) {
tmp = (x + -2.0) / (47.066876606 / z);
} else if (x <= 1.72) {
tmp = y * (x * -0.0424927283095952);
} else {
tmp = (x + -2.0) / 0.24013125253755718;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -0.00075: tmp = (x * 4.16438922228) - 110.1139242984811 elif x <= 2.05e-49: tmp = (x + -2.0) / (47.066876606 / z) elif x <= 1.72: tmp = y * (x * -0.0424927283095952) else: tmp = (x + -2.0) / 0.24013125253755718 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -0.00075) tmp = Float64(Float64(x * 4.16438922228) - 110.1139242984811); elseif (x <= 2.05e-49) tmp = Float64(Float64(x + -2.0) / Float64(47.066876606 / z)); elseif (x <= 1.72) tmp = Float64(y * Float64(x * -0.0424927283095952)); else tmp = Float64(Float64(x + -2.0) / 0.24013125253755718); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -0.00075) tmp = (x * 4.16438922228) - 110.1139242984811; elseif (x <= 2.05e-49) tmp = (x + -2.0) / (47.066876606 / z); elseif (x <= 1.72) tmp = y * (x * -0.0424927283095952); else tmp = (x + -2.0) / 0.24013125253755718; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -0.00075], N[(N[(x * 4.16438922228), $MachinePrecision] - 110.1139242984811), $MachinePrecision], If[LessEqual[x, 2.05e-49], N[(N[(x + -2.0), $MachinePrecision] / N[(47.066876606 / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.72], N[(y * N[(x * -0.0424927283095952), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -0.00075:\\
\;\;\;\;x \cdot 4.16438922228 - 110.1139242984811\\
\mathbf{elif}\;x \leq 2.05 \cdot 10^{-49}:\\
\;\;\;\;\frac{x + -2}{\frac{47.066876606}{z}}\\
\mathbf{elif}\;x \leq 1.72:\\
\;\;\;\;y \cdot \left(x \cdot -0.0424927283095952\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718}\\
\end{array}
\end{array}
if x < -7.5000000000000002e-4Initial program 24.7%
associate-*r/35.5%
sub-neg35.5%
metadata-eval35.5%
*-commutative35.5%
fma-def35.5%
*-commutative35.5%
fma-def35.5%
*-commutative35.5%
fma-def35.6%
fma-def35.6%
*-commutative35.6%
Simplified35.6%
Taylor expanded in x around inf 76.6%
if -7.5000000000000002e-4 < x < 2.0500000000000001e-49Initial program 99.7%
associate-/l*99.5%
sub-neg99.5%
metadata-eval99.5%
fma-def99.5%
fma-def99.5%
fma-def99.5%
fma-def99.5%
fma-def99.5%
fma-def99.5%
fma-def99.5%
Simplified99.5%
Taylor expanded in x around 0 77.7%
if 2.0500000000000001e-49 < x < 1.71999999999999997Initial program 99.3%
*-commutative99.3%
associate-*r/99.1%
*-commutative99.1%
fma-def99.1%
*-commutative99.1%
fma-def99.1%
*-commutative99.1%
fma-def99.1%
fma-def99.1%
Simplified99.1%
Taylor expanded in z around 0 99.3%
Taylor expanded in x around 0 76.5%
*-commutative76.5%
associate-*l*77.1%
Simplified77.1%
if 1.71999999999999997 < x Initial program 14.5%
associate-/l*26.1%
sub-neg26.1%
metadata-eval26.1%
fma-def26.1%
fma-def26.1%
fma-def26.1%
fma-def26.1%
fma-def26.1%
fma-def26.1%
fma-def26.1%
Simplified26.1%
Taylor expanded in x around inf 89.4%
Final simplification80.0%
(FPCore (x y z) :precision binary64 (if (<= x -0.00075) (* x 4.16438922228) (if (<= x 4.8e-27) (* z -0.0424927283095952) (* x 4.16438922228))))
double code(double x, double y, double z) {
double tmp;
if (x <= -0.00075) {
tmp = x * 4.16438922228;
} else if (x <= 4.8e-27) {
tmp = z * -0.0424927283095952;
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-0.00075d0)) then
tmp = x * 4.16438922228d0
else if (x <= 4.8d-27) then
tmp = z * (-0.0424927283095952d0)
else
tmp = x * 4.16438922228d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -0.00075) {
tmp = x * 4.16438922228;
} else if (x <= 4.8e-27) {
tmp = z * -0.0424927283095952;
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -0.00075: tmp = x * 4.16438922228 elif x <= 4.8e-27: tmp = z * -0.0424927283095952 else: tmp = x * 4.16438922228 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -0.00075) tmp = Float64(x * 4.16438922228); elseif (x <= 4.8e-27) tmp = Float64(z * -0.0424927283095952); else tmp = Float64(x * 4.16438922228); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -0.00075) tmp = x * 4.16438922228; elseif (x <= 4.8e-27) tmp = z * -0.0424927283095952; else tmp = x * 4.16438922228; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -0.00075], N[(x * 4.16438922228), $MachinePrecision], If[LessEqual[x, 4.8e-27], N[(z * -0.0424927283095952), $MachinePrecision], N[(x * 4.16438922228), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -0.00075:\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{elif}\;x \leq 4.8 \cdot 10^{-27}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228\\
\end{array}
\end{array}
if x < -7.5000000000000002e-4 or 4.80000000000000004e-27 < x Initial program 21.7%
*-commutative21.7%
associate-*r/32.7%
*-commutative32.7%
fma-def32.6%
*-commutative32.6%
fma-def32.6%
*-commutative32.6%
fma-def32.6%
fma-def32.6%
Simplified32.6%
fma-def32.6%
flip-+32.6%
metadata-eval32.6%
Applied egg-rr32.6%
sub-neg32.6%
swap-sqr32.7%
metadata-eval32.8%
metadata-eval32.8%
fma-neg32.8%
metadata-eval32.8%
Simplified32.8%
Taylor expanded in x around inf 80.3%
*-commutative80.3%
Simplified80.3%
if -7.5000000000000002e-4 < x < 4.80000000000000004e-27Initial program 99.6%
associate-*r/99.6%
sub-neg99.6%
metadata-eval99.6%
*-commutative99.6%
fma-def99.6%
*-commutative99.6%
fma-def99.6%
*-commutative99.6%
fma-def99.6%
fma-def99.6%
*-commutative99.6%
Simplified99.6%
Taylor expanded in x around 0 74.9%
*-commutative74.9%
Simplified74.9%
Final simplification77.5%
(FPCore (x y z) :precision binary64 (* x -0.3407596943375357))
double code(double x, double y, double z) {
return x * -0.3407596943375357;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = x * (-0.3407596943375357d0)
end function
public static double code(double x, double y, double z) {
return x * -0.3407596943375357;
}
def code(x, y, z): return x * -0.3407596943375357
function code(x, y, z) return Float64(x * -0.3407596943375357) end
function tmp = code(x, y, z) tmp = x * -0.3407596943375357; end
code[x_, y_, z_] := N[(x * -0.3407596943375357), $MachinePrecision]
\begin{array}{l}
\\
x \cdot -0.3407596943375357
\end{array}
Initial program 62.8%
associate-/l*67.9%
sub-neg67.9%
metadata-eval67.9%
fma-def67.9%
fma-def67.9%
fma-def67.9%
fma-def67.9%
fma-def67.9%
fma-def67.9%
fma-def67.9%
Simplified67.9%
Taylor expanded in x around inf 39.9%
Taylor expanded in x around 0 2.2%
*-commutative2.2%
Simplified2.2%
Final simplification2.2%
(FPCore (x y z) :precision binary64 (* x 4.16438922228))
double code(double x, double y, double z) {
return x * 4.16438922228;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = x * 4.16438922228d0
end function
public static double code(double x, double y, double z) {
return x * 4.16438922228;
}
def code(x, y, z): return x * 4.16438922228
function code(x, y, z) return Float64(x * 4.16438922228) end
function tmp = code(x, y, z) tmp = x * 4.16438922228; end
code[x_, y_, z_] := N[(x * 4.16438922228), $MachinePrecision]
\begin{array}{l}
\\
x \cdot 4.16438922228
\end{array}
Initial program 62.8%
*-commutative62.8%
associate-*r/67.9%
*-commutative67.9%
fma-def67.9%
*-commutative67.9%
fma-def67.9%
*-commutative67.9%
fma-def67.9%
fma-def67.9%
Simplified67.9%
fma-def67.9%
flip-+67.9%
metadata-eval67.9%
Applied egg-rr67.9%
sub-neg67.9%
swap-sqr67.9%
metadata-eval67.9%
metadata-eval67.9%
fma-neg67.9%
metadata-eval67.9%
Simplified67.9%
Taylor expanded in x around inf 39.8%
*-commutative39.8%
Simplified39.8%
Final simplification39.8%
(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 2023240
(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)))