
(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 (or (<= x -3.2e+28) (not (<= x 7.8e+37)))
(-
(+ (/ 4752.4581585918595 x) (+ (* x 4.16438922228) (/ y (* x x))))
(+ 110.1139242984811 (/ 207551.7024428275 (* x x))))
(/
(*
(- x 2.0)
(+
(*
x
(+
y
(* x (+ 137.519416416 (* x (+ 78.6994924154 (* x 4.16438922228)))))))
z))
(+
(* x (+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -3.2e+28) || !(x <= 7.8e+37)) {
tmp = ((4752.4581585918595 / x) + ((x * 4.16438922228) + (y / (x * x)))) - (110.1139242984811 + (207551.7024428275 / (x * x)));
} else {
tmp = ((x - 2.0) * ((x * (y + (x * (137.519416416 + (x * (78.6994924154 + (x * 4.16438922228))))))) + z)) / ((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 <= (-3.2d+28)) .or. (.not. (x <= 7.8d+37))) then
tmp = ((4752.4581585918595d0 / x) + ((x * 4.16438922228d0) + (y / (x * x)))) - (110.1139242984811d0 + (207551.7024428275d0 / (x * x)))
else
tmp = ((x - 2.0d0) * ((x * (y + (x * (137.519416416d0 + (x * (78.6994924154d0 + (x * 4.16438922228d0))))))) + z)) / ((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 <= -3.2e+28) || !(x <= 7.8e+37)) {
tmp = ((4752.4581585918595 / x) + ((x * 4.16438922228) + (y / (x * x)))) - (110.1139242984811 + (207551.7024428275 / (x * x)));
} else {
tmp = ((x - 2.0) * ((x * (y + (x * (137.519416416 + (x * (78.6994924154 + (x * 4.16438922228))))))) + z)) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606);
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -3.2e+28) or not (x <= 7.8e+37): tmp = ((4752.4581585918595 / x) + ((x * 4.16438922228) + (y / (x * x)))) - (110.1139242984811 + (207551.7024428275 / (x * x))) else: tmp = ((x - 2.0) * ((x * (y + (x * (137.519416416 + (x * (78.6994924154 + (x * 4.16438922228))))))) + z)) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -3.2e+28) || !(x <= 7.8e+37)) tmp = Float64(Float64(Float64(4752.4581585918595 / x) + 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(Float64(x * Float64(y + Float64(x * Float64(137.519416416 + Float64(x * Float64(78.6994924154 + Float64(x * 4.16438922228))))))) + z)) / 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 <= -3.2e+28) || ~((x <= 7.8e+37))) tmp = ((4752.4581585918595 / x) + ((x * 4.16438922228) + (y / (x * x)))) - (110.1139242984811 + (207551.7024428275 / (x * x))); else tmp = ((x - 2.0) * ((x * (y + (x * (137.519416416 + (x * (78.6994924154 + (x * 4.16438922228))))))) + z)) / ((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, -3.2e+28], N[Not[LessEqual[x, 7.8e+37]], $MachinePrecision]], N[(N[(N[(4752.4581585918595 / x), $MachinePrecision] + N[(N[(x * 4.16438922228), $MachinePrecision] + N[(y / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(110.1139242984811 + N[(207551.7024428275 / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(x * N[(y + N[(x * N[(137.519416416 + N[(x * N[(78.6994924154 + N[(x * 4.16438922228), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / 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 -3.2 \cdot 10^{+28} \lor \neg \left(x \leq 7.8 \cdot 10^{+37}\right):\\
\;\;\;\;\left(\frac{4752.4581585918595}{x} + \left(x \cdot 4.16438922228 + \frac{y}{x \cdot x}\right)\right) - \left(110.1139242984811 + \frac{207551.7024428275}{x \cdot x}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot \left(x \cdot \left(y + x \cdot \left(137.519416416 + x \cdot \left(78.6994924154 + x \cdot 4.16438922228\right)\right)\right) + z\right)}{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 < -3.2e28 or 7.7999999999999997e37 < x Initial program 4.0%
Taylor expanded in x around inf 4.0%
cube-mult4.0%
unpow24.0%
distribute-rgt-out4.0%
+-commutative4.0%
unpow24.0%
Simplified4.0%
Taylor expanded in x around inf 97.8%
associate-*r/97.8%
metadata-eval97.8%
+-commutative97.8%
unpow297.8%
associate-*r/97.8%
metadata-eval97.8%
unpow297.8%
Simplified97.8%
if -3.2e28 < x < 7.7999999999999997e37Initial program 99.0%
Final simplification98.5%
(FPCore (x y z)
:precision binary64
(if (<=
(/
(*
(- x 2.0)
(+
(*
x
(+
y
(*
x
(+ 137.519416416 (* x (+ 78.6994924154 (* x 4.16438922228)))))))
z))
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))
2e+296)
(*
(+ 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)
(-
(/ -101.7851458539211 x)
(-
(/ (- 124074.40615218398 y) (pow x 3.0))
(+ 4.16438922228 (/ 3451.550173699799 (* x x))))))))
double code(double x, double y, double z) {
double tmp;
if ((((x - 2.0) * ((x * (y + (x * (137.519416416 + (x * (78.6994924154 + (x * 4.16438922228))))))) + z)) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) <= 2e+296) {
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) * ((-101.7851458539211 / x) - (((124074.40615218398 - y) / pow(x, 3.0)) - (4.16438922228 + (3451.550173699799 / (x * x)))));
}
return tmp;
}
function code(x, y, z) tmp = 0.0 if (Float64(Float64(Float64(x - 2.0) * Float64(Float64(x * Float64(y + Float64(x * Float64(137.519416416 + Float64(x * Float64(78.6994924154 + Float64(x * 4.16438922228))))))) + z)) / Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) <= 2e+296) 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) * Float64(Float64(-101.7851458539211 / x) - Float64(Float64(Float64(124074.40615218398 - y) / (x ^ 3.0)) - Float64(4.16438922228 + Float64(3451.550173699799 / Float64(x * x)))))); end return tmp end
code[x_, y_, z_] := If[LessEqual[N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(x * N[(y + N[(x * N[(137.519416416 + N[(x * N[(78.6994924154 + N[(x * 4.16438922228), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / 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], 2e+296], 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] * N[(N[(-101.7851458539211 / x), $MachinePrecision] - N[(N[(N[(124074.40615218398 - y), $MachinePrecision] / N[Power[x, 3.0], $MachinePrecision]), $MachinePrecision] - N[(4.16438922228 + N[(3451.550173699799 / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{\left(x - 2\right) \cdot \left(x \cdot \left(y + x \cdot \left(137.519416416 + x \cdot \left(78.6994924154 + x \cdot 4.16438922228\right)\right)\right) + z\right)}{x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606} \leq 2 \cdot 10^{+296}:\\
\;\;\;\;\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}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(\frac{-101.7851458539211}{x} - \left(\frac{124074.40615218398 - y}{{x}^{3}} - \left(4.16438922228 + \frac{3451.550173699799}{x \cdot x}\right)\right)\right)\\
\end{array}
\end{array}
if (/.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.99999999999999996e296Initial program 94.9%
associate-*r/98.4%
sub-neg98.4%
metadata-eval98.4%
*-commutative98.4%
fma-def98.4%
*-commutative98.4%
fma-def98.4%
*-commutative98.4%
fma-def98.4%
fma-def98.4%
*-commutative98.4%
Simplified98.4%
if 1.99999999999999996e296 < (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) Initial program 0.1%
associate-*r/1.1%
sub-neg1.1%
metadata-eval1.1%
*-commutative1.1%
fma-def1.1%
*-commutative1.1%
fma-def1.1%
*-commutative1.1%
fma-def1.1%
fma-def1.1%
*-commutative1.1%
Simplified1.1%
Taylor expanded in x around -inf 98.2%
sub-neg98.2%
+-commutative98.2%
mul-1-neg98.2%
unsub-neg98.2%
associate-*r/98.2%
metadata-eval98.2%
unpow298.2%
mul-1-neg98.2%
unsub-neg98.2%
associate-*r/98.2%
metadata-eval98.2%
distribute-neg-frac98.2%
metadata-eval98.2%
Simplified98.2%
Final simplification98.3%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))
(t_1
(*
x
(+
y
(*
x
(+ 137.519416416 (* x (+ 78.6994924154 (* x 4.16438922228)))))))))
(if (<= (/ (* (- x 2.0) (+ t_1 z)) t_0) 2e+296)
(* (+ x -2.0) (+ (/ t_1 t_0) (/ z t_0)))
(*
(+ x -2.0)
(-
(/ -101.7851458539211 x)
(-
(/ (- 124074.40615218398 y) (pow x 3.0))
(+ 4.16438922228 (/ 3451.550173699799 (* x x)))))))))
double code(double x, double y, double z) {
double t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606;
double t_1 = x * (y + (x * (137.519416416 + (x * (78.6994924154 + (x * 4.16438922228))))));
double tmp;
if ((((x - 2.0) * (t_1 + z)) / t_0) <= 2e+296) {
tmp = (x + -2.0) * ((t_1 / t_0) + (z / t_0));
} else {
tmp = (x + -2.0) * ((-101.7851458539211 / x) - (((124074.40615218398 - y) / pow(x, 3.0)) - (4.16438922228 + (3451.550173699799 / (x * x)))));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: t_1
real(8) :: tmp
t_0 = (x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0
t_1 = x * (y + (x * (137.519416416d0 + (x * (78.6994924154d0 + (x * 4.16438922228d0))))))
if ((((x - 2.0d0) * (t_1 + z)) / t_0) <= 2d+296) then
tmp = (x + (-2.0d0)) * ((t_1 / t_0) + (z / t_0))
else
tmp = (x + (-2.0d0)) * (((-101.7851458539211d0) / x) - (((124074.40615218398d0 - y) / (x ** 3.0d0)) - (4.16438922228d0 + (3451.550173699799d0 / (x * x)))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606;
double t_1 = x * (y + (x * (137.519416416 + (x * (78.6994924154 + (x * 4.16438922228))))));
double tmp;
if ((((x - 2.0) * (t_1 + z)) / t_0) <= 2e+296) {
tmp = (x + -2.0) * ((t_1 / t_0) + (z / t_0));
} else {
tmp = (x + -2.0) * ((-101.7851458539211 / x) - (((124074.40615218398 - y) / Math.pow(x, 3.0)) - (4.16438922228 + (3451.550173699799 / (x * x)))));
}
return tmp;
}
def code(x, y, z): t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606 t_1 = x * (y + (x * (137.519416416 + (x * (78.6994924154 + (x * 4.16438922228)))))) tmp = 0 if (((x - 2.0) * (t_1 + z)) / t_0) <= 2e+296: tmp = (x + -2.0) * ((t_1 / t_0) + (z / t_0)) else: tmp = (x + -2.0) * ((-101.7851458539211 / x) - (((124074.40615218398 - y) / math.pow(x, 3.0)) - (4.16438922228 + (3451.550173699799 / (x * x))))) return tmp
function code(x, y, z) t_0 = Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) t_1 = Float64(x * Float64(y + Float64(x * Float64(137.519416416 + Float64(x * Float64(78.6994924154 + Float64(x * 4.16438922228))))))) tmp = 0.0 if (Float64(Float64(Float64(x - 2.0) * Float64(t_1 + z)) / t_0) <= 2e+296) tmp = Float64(Float64(x + -2.0) * Float64(Float64(t_1 / t_0) + Float64(z / t_0))); else tmp = Float64(Float64(x + -2.0) * Float64(Float64(-101.7851458539211 / x) - Float64(Float64(Float64(124074.40615218398 - y) / (x ^ 3.0)) - Float64(4.16438922228 + Float64(3451.550173699799 / Float64(x * x)))))); end return tmp end
function tmp_2 = code(x, y, z) t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606; t_1 = x * (y + (x * (137.519416416 + (x * (78.6994924154 + (x * 4.16438922228)))))); tmp = 0.0; if ((((x - 2.0) * (t_1 + z)) / t_0) <= 2e+296) tmp = (x + -2.0) * ((t_1 / t_0) + (z / t_0)); else tmp = (x + -2.0) * ((-101.7851458539211 / x) - (((124074.40615218398 - y) / (x ^ 3.0)) - (4.16438922228 + (3451.550173699799 / (x * x))))); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]}, Block[{t$95$1 = N[(x * N[(y + N[(x * N[(137.519416416 + N[(x * N[(78.6994924154 + N[(x * 4.16438922228), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(N[(N[(x - 2.0), $MachinePrecision] * N[(t$95$1 + z), $MachinePrecision]), $MachinePrecision] / t$95$0), $MachinePrecision], 2e+296], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(t$95$1 / t$95$0), $MachinePrecision] + N[(z / t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(-101.7851458539211 / x), $MachinePrecision] - N[(N[(N[(124074.40615218398 - y), $MachinePrecision] / N[Power[x, 3.0], $MachinePrecision]), $MachinePrecision] - N[(4.16438922228 + N[(3451.550173699799 / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606\\
t_1 := x \cdot \left(y + x \cdot \left(137.519416416 + x \cdot \left(78.6994924154 + x \cdot 4.16438922228\right)\right)\right)\\
\mathbf{if}\;\frac{\left(x - 2\right) \cdot \left(t_1 + z\right)}{t_0} \leq 2 \cdot 10^{+296}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(\frac{t_1}{t_0} + \frac{z}{t_0}\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(\frac{-101.7851458539211}{x} - \left(\frac{124074.40615218398 - y}{{x}^{3}} - \left(4.16438922228 + \frac{3451.550173699799}{x \cdot x}\right)\right)\right)\\
\end{array}
\end{array}
if (/.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.99999999999999996e296Initial program 94.9%
associate-*r/98.4%
sub-neg98.4%
metadata-eval98.4%
*-commutative98.4%
fma-def98.4%
*-commutative98.4%
fma-def98.4%
*-commutative98.4%
fma-def98.4%
fma-def98.4%
*-commutative98.4%
Simplified98.4%
Taylor expanded in z around 0 98.4%
if 1.99999999999999996e296 < (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) Initial program 0.1%
associate-*r/1.1%
sub-neg1.1%
metadata-eval1.1%
*-commutative1.1%
fma-def1.1%
*-commutative1.1%
fma-def1.1%
*-commutative1.1%
fma-def1.1%
fma-def1.1%
*-commutative1.1%
Simplified1.1%
Taylor expanded in x around -inf 98.2%
sub-neg98.2%
+-commutative98.2%
mul-1-neg98.2%
unsub-neg98.2%
associate-*r/98.2%
metadata-eval98.2%
unpow298.2%
mul-1-neg98.2%
unsub-neg98.2%
associate-*r/98.2%
metadata-eval98.2%
distribute-neg-frac98.2%
metadata-eval98.2%
Simplified98.2%
Final simplification98.3%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))
(t_1
(*
x
(+
y
(*
x
(+ 137.519416416 (* x (+ 78.6994924154 (* x 4.16438922228)))))))))
(if (<= (/ (* (- x 2.0) (+ t_1 z)) t_0) 2e+296)
(* (+ x -2.0) (+ (/ t_1 t_0) (/ z t_0)))
(-
(+ (/ 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 * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606;
double t_1 = x * (y + (x * (137.519416416 + (x * (78.6994924154 + (x * 4.16438922228))))));
double tmp;
if ((((x - 2.0) * (t_1 + z)) / t_0) <= 2e+296) {
tmp = (x + -2.0) * ((t_1 / t_0) + (z / t_0));
} 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) :: t_0
real(8) :: t_1
real(8) :: tmp
t_0 = (x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0
t_1 = x * (y + (x * (137.519416416d0 + (x * (78.6994924154d0 + (x * 4.16438922228d0))))))
if ((((x - 2.0d0) * (t_1 + z)) / t_0) <= 2d+296) then
tmp = (x + (-2.0d0)) * ((t_1 / t_0) + (z / t_0))
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 t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606;
double t_1 = x * (y + (x * (137.519416416 + (x * (78.6994924154 + (x * 4.16438922228))))));
double tmp;
if ((((x - 2.0) * (t_1 + z)) / t_0) <= 2e+296) {
tmp = (x + -2.0) * ((t_1 / t_0) + (z / t_0));
} else {
tmp = ((4752.4581585918595 / x) + ((x * 4.16438922228) + (y / (x * x)))) - (110.1139242984811 + (207551.7024428275 / (x * x)));
}
return tmp;
}
def code(x, y, z): t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606 t_1 = x * (y + (x * (137.519416416 + (x * (78.6994924154 + (x * 4.16438922228)))))) tmp = 0 if (((x - 2.0) * (t_1 + z)) / t_0) <= 2e+296: tmp = (x + -2.0) * ((t_1 / t_0) + (z / t_0)) 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 * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) t_1 = Float64(x * Float64(y + Float64(x * Float64(137.519416416 + Float64(x * Float64(78.6994924154 + Float64(x * 4.16438922228))))))) tmp = 0.0 if (Float64(Float64(Float64(x - 2.0) * Float64(t_1 + z)) / t_0) <= 2e+296) tmp = Float64(Float64(x + -2.0) * Float64(Float64(t_1 / t_0) + Float64(z / t_0))); else tmp = Float64(Float64(Float64(4752.4581585918595 / x) + 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) t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606; t_1 = x * (y + (x * (137.519416416 + (x * (78.6994924154 + (x * 4.16438922228)))))); tmp = 0.0; if ((((x - 2.0) * (t_1 + z)) / t_0) <= 2e+296) tmp = (x + -2.0) * ((t_1 / t_0) + (z / t_0)); 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_] := Block[{t$95$0 = N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]}, Block[{t$95$1 = N[(x * N[(y + N[(x * N[(137.519416416 + N[(x * N[(78.6994924154 + N[(x * 4.16438922228), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(N[(N[(x - 2.0), $MachinePrecision] * N[(t$95$1 + z), $MachinePrecision]), $MachinePrecision] / t$95$0), $MachinePrecision], 2e+296], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(t$95$1 / t$95$0), $MachinePrecision] + N[(z / t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(4752.4581585918595 / x), $MachinePrecision] + N[(N[(x * 4.16438922228), $MachinePrecision] + N[(y / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(110.1139242984811 + N[(207551.7024428275 / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606\\
t_1 := x \cdot \left(y + x \cdot \left(137.519416416 + x \cdot \left(78.6994924154 + x \cdot 4.16438922228\right)\right)\right)\\
\mathbf{if}\;\frac{\left(x - 2\right) \cdot \left(t_1 + z\right)}{t_0} \leq 2 \cdot 10^{+296}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(\frac{t_1}{t_0} + \frac{z}{t_0}\right)\\
\mathbf{else}:\\
\;\;\;\;\left(\frac{4752.4581585918595}{x} + \left(x \cdot 4.16438922228 + \frac{y}{x \cdot x}\right)\right) - \left(110.1139242984811 + \frac{207551.7024428275}{x \cdot x}\right)\\
\end{array}
\end{array}
if (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) < 1.99999999999999996e296Initial program 94.9%
associate-*r/98.4%
sub-neg98.4%
metadata-eval98.4%
*-commutative98.4%
fma-def98.4%
*-commutative98.4%
fma-def98.4%
*-commutative98.4%
fma-def98.4%
fma-def98.4%
*-commutative98.4%
Simplified98.4%
Taylor expanded in z around 0 98.4%
if 1.99999999999999996e296 < (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) Initial program 0.1%
Taylor expanded in x around inf 0.1%
cube-mult0.1%
unpow20.1%
distribute-rgt-out0.1%
+-commutative0.1%
unpow20.1%
Simplified0.1%
Taylor expanded in x around inf 98.1%
associate-*r/98.1%
metadata-eval98.1%
+-commutative98.1%
unpow298.1%
associate-*r/98.1%
metadata-eval98.1%
unpow298.1%
Simplified98.1%
Final simplification98.3%
(FPCore (x y z)
:precision binary64
(if (or (<= x -1.48e+29) (not (<= x 6e+37)))
(-
(+ (/ 4752.4581585918595 x) (+ (* x 4.16438922228) (/ y (* x x))))
(+ 110.1139242984811 (/ 207551.7024428275 (* x x))))
(/
(*
(- x 2.0)
(+
(*
x
(+
y
(* x (+ 137.519416416 (* x (+ 78.6994924154 (* x 4.16438922228)))))))
z))
(+ 47.066876606 (* x (+ 313.399215894 (* (+ x 43.3400022514) (* x x))))))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -1.48e+29) || !(x <= 6e+37)) {
tmp = ((4752.4581585918595 / x) + ((x * 4.16438922228) + (y / (x * x)))) - (110.1139242984811 + (207551.7024428275 / (x * x)));
} else {
tmp = ((x - 2.0) * ((x * (y + (x * (137.519416416 + (x * (78.6994924154 + (x * 4.16438922228))))))) + z)) / (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.48d+29)) .or. (.not. (x <= 6d+37))) then
tmp = ((4752.4581585918595d0 / x) + ((x * 4.16438922228d0) + (y / (x * x)))) - (110.1139242984811d0 + (207551.7024428275d0 / (x * x)))
else
tmp = ((x - 2.0d0) * ((x * (y + (x * (137.519416416d0 + (x * (78.6994924154d0 + (x * 4.16438922228d0))))))) + z)) / (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.48e+29) || !(x <= 6e+37)) {
tmp = ((4752.4581585918595 / x) + ((x * 4.16438922228) + (y / (x * x)))) - (110.1139242984811 + (207551.7024428275 / (x * x)));
} else {
tmp = ((x - 2.0) * ((x * (y + (x * (137.519416416 + (x * (78.6994924154 + (x * 4.16438922228))))))) + z)) / (47.066876606 + (x * (313.399215894 + ((x + 43.3400022514) * (x * x)))));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -1.48e+29) or not (x <= 6e+37): tmp = ((4752.4581585918595 / x) + ((x * 4.16438922228) + (y / (x * x)))) - (110.1139242984811 + (207551.7024428275 / (x * x))) else: tmp = ((x - 2.0) * ((x * (y + (x * (137.519416416 + (x * (78.6994924154 + (x * 4.16438922228))))))) + z)) / (47.066876606 + (x * (313.399215894 + ((x + 43.3400022514) * (x * x))))) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -1.48e+29) || !(x <= 6e+37)) tmp = Float64(Float64(Float64(4752.4581585918595 / x) + 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(Float64(x * Float64(y + Float64(x * Float64(137.519416416 + Float64(x * Float64(78.6994924154 + Float64(x * 4.16438922228))))))) + z)) / 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.48e+29) || ~((x <= 6e+37))) tmp = ((4752.4581585918595 / x) + ((x * 4.16438922228) + (y / (x * x)))) - (110.1139242984811 + (207551.7024428275 / (x * x))); else tmp = ((x - 2.0) * ((x * (y + (x * (137.519416416 + (x * (78.6994924154 + (x * 4.16438922228))))))) + z)) / (47.066876606 + (x * (313.399215894 + ((x + 43.3400022514) * (x * x))))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -1.48e+29], N[Not[LessEqual[x, 6e+37]], $MachinePrecision]], N[(N[(N[(4752.4581585918595 / x), $MachinePrecision] + N[(N[(x * 4.16438922228), $MachinePrecision] + N[(y / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(110.1139242984811 + N[(207551.7024428275 / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(x * N[(y + N[(x * N[(137.519416416 + N[(x * N[(78.6994924154 + N[(x * 4.16438922228), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / 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.48 \cdot 10^{+29} \lor \neg \left(x \leq 6 \cdot 10^{+37}\right):\\
\;\;\;\;\left(\frac{4752.4581585918595}{x} + \left(x \cdot 4.16438922228 + \frac{y}{x \cdot x}\right)\right) - \left(110.1139242984811 + \frac{207551.7024428275}{x \cdot x}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot \left(x \cdot \left(y + x \cdot \left(137.519416416 + x \cdot \left(78.6994924154 + x \cdot 4.16438922228\right)\right)\right) + z\right)}{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.48e29 or 6.00000000000000043e37 < x Initial program 4.0%
Taylor expanded in x around inf 4.0%
cube-mult4.0%
unpow24.0%
distribute-rgt-out4.0%
+-commutative4.0%
unpow24.0%
Simplified4.0%
Taylor expanded in x around inf 97.8%
associate-*r/97.8%
metadata-eval97.8%
+-commutative97.8%
unpow297.8%
associate-*r/97.8%
metadata-eval97.8%
unpow297.8%
Simplified97.8%
if -1.48e29 < x < 6.00000000000000043e37Initial program 99.0%
Taylor expanded in x around inf 98.3%
cube-mult98.3%
unpow298.3%
distribute-rgt-out98.4%
+-commutative98.4%
unpow298.4%
Simplified98.4%
Final simplification98.1%
(FPCore (x y z)
:precision binary64
(if (or (<= x -1.42e+29) (not (<= x 9e+37)))
(-
(+ (/ 4752.4581585918595 x) (+ (* x 4.16438922228) (/ y (* x x))))
(+ 110.1139242984811 (/ 207551.7024428275 (* x x))))
(/
(*
(- x 2.0)
(+ z (* x (+ y (* x (+ 137.519416416 (* 4.16438922228 (* x x))))))))
(+ 47.066876606 (* x (+ 313.399215894 (* (+ x 43.3400022514) (* x x))))))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -1.42e+29) || !(x <= 9e+37)) {
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 + (4.16438922228 * (x * x)))))))) / (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.42d+29)) .or. (.not. (x <= 9d+37))) 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 + (4.16438922228d0 * (x * x)))))))) / (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.42e+29) || !(x <= 9e+37)) {
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 + (4.16438922228 * (x * x)))))))) / (47.066876606 + (x * (313.399215894 + ((x + 43.3400022514) * (x * x)))));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -1.42e+29) or not (x <= 9e+37): 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 + (4.16438922228 * (x * x)))))))) / (47.066876606 + (x * (313.399215894 + ((x + 43.3400022514) * (x * x))))) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -1.42e+29) || !(x <= 9e+37)) tmp = Float64(Float64(Float64(4752.4581585918595 / x) + 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 * Float64(137.519416416 + Float64(4.16438922228 * Float64(x * x)))))))) / 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.42e+29) || ~((x <= 9e+37))) 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 + (4.16438922228 * (x * x)))))))) / (47.066876606 + (x * (313.399215894 + ((x + 43.3400022514) * (x * x))))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -1.42e+29], N[Not[LessEqual[x, 9e+37]], $MachinePrecision]], N[(N[(N[(4752.4581585918595 / x), $MachinePrecision] + N[(N[(x * 4.16438922228), $MachinePrecision] + N[(y / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(110.1139242984811 + N[(207551.7024428275 / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + N[(x * N[(y + N[(x * N[(137.519416416 + N[(4.16438922228 * N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $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.42 \cdot 10^{+29} \lor \neg \left(x \leq 9 \cdot 10^{+37}\right):\\
\;\;\;\;\left(\frac{4752.4581585918595}{x} + \left(x \cdot 4.16438922228 + \frac{y}{x \cdot x}\right)\right) - \left(110.1139242984811 + \frac{207551.7024428275}{x \cdot x}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot \left(y + x \cdot \left(137.519416416 + 4.16438922228 \cdot \left(x \cdot x\right)\right)\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.42e29 or 8.99999999999999923e37 < x Initial program 4.0%
Taylor expanded in x around inf 4.0%
cube-mult4.0%
unpow24.0%
distribute-rgt-out4.0%
+-commutative4.0%
unpow24.0%
Simplified4.0%
Taylor expanded in x around inf 97.8%
associate-*r/97.8%
metadata-eval97.8%
+-commutative97.8%
unpow297.8%
associate-*r/97.8%
metadata-eval97.8%
unpow297.8%
Simplified97.8%
if -1.42e29 < x < 8.99999999999999923e37Initial program 99.0%
Taylor expanded in x around inf 98.3%
cube-mult98.3%
unpow298.3%
distribute-rgt-out98.4%
+-commutative98.4%
unpow298.4%
Simplified98.4%
Taylor expanded in x around inf 97.4%
unpow297.4%
Simplified97.4%
Final simplification97.6%
(FPCore (x y z)
:precision binary64
(if (or (<= x -14000000000000.0) (not (<= x 1100000000.0)))
(-
(+ (/ 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 <= -14000000000000.0) || !(x <= 1100000000.0)) {
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 <= (-14000000000000.0d0)) .or. (.not. (x <= 1100000000.0d0))) 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 <= -14000000000000.0) || !(x <= 1100000000.0)) {
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 <= -14000000000000.0) or not (x <= 1100000000.0): 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 <= -14000000000000.0) || !(x <= 1100000000.0)) tmp = Float64(Float64(Float64(4752.4581585918595 / x) + 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 <= -14000000000000.0) || ~((x <= 1100000000.0))) 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, -14000000000000.0], N[Not[LessEqual[x, 1100000000.0]], $MachinePrecision]], N[(N[(N[(4752.4581585918595 / x), $MachinePrecision] + N[(N[(x * 4.16438922228), $MachinePrecision] + N[(y / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(110.1139242984811 + N[(207551.7024428275 / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + N[(x * N[(y + N[(x * 137.519416416), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / 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 -14000000000000 \lor \neg \left(x \leq 1100000000\right):\\
\;\;\;\;\left(\frac{4752.4581585918595}{x} + \left(x \cdot 4.16438922228 + \frac{y}{x \cdot x}\right)\right) - \left(110.1139242984811 + \frac{207551.7024428275}{x \cdot x}\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.4e13 or 1.1e9 < x Initial program 14.2%
Taylor expanded in x around inf 14.2%
cube-mult14.2%
unpow214.2%
distribute-rgt-out14.2%
+-commutative14.2%
unpow214.2%
Simplified14.2%
Taylor expanded in x around inf 93.7%
associate-*r/93.7%
metadata-eval93.7%
+-commutative93.7%
unpow293.7%
associate-*r/93.7%
metadata-eval93.7%
unpow293.7%
Simplified93.7%
if -1.4e13 < x < 1.1e9Initial program 99.7%
Taylor expanded in x around 0 99.3%
*-commutative98.7%
Simplified99.3%
Final simplification96.7%
(FPCore (x y z)
:precision binary64
(if (or (<= x -900000.0) (not (<= x 7.8e-7)))
(-
(+ (/ 4752.4581585918595 x) (+ (* x 4.16438922228) (/ y (* x x))))
(+ 110.1139242984811 (/ 207551.7024428275 (* x x))))
(*
(+ x -2.0)
(+
(/
z
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))
(* 0.0212463641547976 (* x y))))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -900000.0) || !(x <= 7.8e-7)) {
tmp = ((4752.4581585918595 / x) + ((x * 4.16438922228) + (y / (x * x)))) - (110.1139242984811 + (207551.7024428275 / (x * x)));
} else {
tmp = (x + -2.0) * ((z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) + (0.0212463641547976 * (x * y)));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((x <= (-900000.0d0)) .or. (.not. (x <= 7.8d-7))) then
tmp = ((4752.4581585918595d0 / x) + ((x * 4.16438922228d0) + (y / (x * x)))) - (110.1139242984811d0 + (207551.7024428275d0 / (x * x)))
else
tmp = (x + (-2.0d0)) * ((z / ((x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0)) + (0.0212463641547976d0 * (x * y)))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -900000.0) || !(x <= 7.8e-7)) {
tmp = ((4752.4581585918595 / x) + ((x * 4.16438922228) + (y / (x * x)))) - (110.1139242984811 + (207551.7024428275 / (x * x)));
} else {
tmp = (x + -2.0) * ((z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) + (0.0212463641547976 * (x * y)));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -900000.0) or not (x <= 7.8e-7): tmp = ((4752.4581585918595 / x) + ((x * 4.16438922228) + (y / (x * x)))) - (110.1139242984811 + (207551.7024428275 / (x * x))) else: tmp = (x + -2.0) * ((z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) + (0.0212463641547976 * (x * y))) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -900000.0) || !(x <= 7.8e-7)) tmp = Float64(Float64(Float64(4752.4581585918595 / x) + Float64(Float64(x * 4.16438922228) + Float64(y / Float64(x * x)))) - Float64(110.1139242984811 + Float64(207551.7024428275 / Float64(x * x)))); else tmp = Float64(Float64(x + -2.0) * Float64(Float64(z / Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) + Float64(0.0212463641547976 * Float64(x * y)))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -900000.0) || ~((x <= 7.8e-7))) tmp = ((4752.4581585918595 / x) + ((x * 4.16438922228) + (y / (x * x)))) - (110.1139242984811 + (207551.7024428275 / (x * x))); else tmp = (x + -2.0) * ((z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) + (0.0212463641547976 * (x * y))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -900000.0], N[Not[LessEqual[x, 7.8e-7]], $MachinePrecision]], N[(N[(N[(4752.4581585918595 / x), $MachinePrecision] + N[(N[(x * 4.16438922228), $MachinePrecision] + N[(y / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(110.1139242984811 + N[(207551.7024428275 / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z / N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision] + N[(0.0212463641547976 * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -900000 \lor \neg \left(x \leq 7.8 \cdot 10^{-7}\right):\\
\;\;\;\;\left(\frac{4752.4581585918595}{x} + \left(x \cdot 4.16438922228 + \frac{y}{x \cdot x}\right)\right) - \left(110.1139242984811 + \frac{207551.7024428275}{x \cdot x}\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(\frac{z}{x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606} + 0.0212463641547976 \cdot \left(x \cdot y\right)\right)\\
\end{array}
\end{array}
if x < -9e5 or 7.80000000000000049e-7 < x Initial program 14.9%
Taylor expanded in x around inf 14.7%
cube-mult14.7%
unpow214.7%
distribute-rgt-out14.7%
+-commutative14.7%
unpow214.7%
Simplified14.7%
Taylor expanded in x around inf 93.0%
associate-*r/93.0%
metadata-eval93.0%
+-commutative93.0%
unpow293.0%
associate-*r/93.0%
metadata-eval93.0%
unpow293.0%
Simplified93.0%
if -9e5 < x < 7.80000000000000049e-7Initial 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 z around 0 99.7%
Taylor expanded in x around 0 95.1%
Final simplification94.1%
(FPCore (x y z)
:precision binary64
(if (<= x -0.0037)
(*
(+ x -2.0)
(+
4.16438922228
(/
z
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))))
(if (<= x 1100000000.0)
(/
(* (- x 2.0) (+ z (* x (+ y (* x 137.519416416)))))
(+ 47.066876606 (* x (+ 313.399215894 (* (+ x 43.3400022514) (* x x))))))
(-
(+ (/ 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 <= -0.0037) {
tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)));
} else if (x <= 1100000000.0) {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + ((x + 43.3400022514) * (x * x)))));
} 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 <= (-0.0037d0)) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + (z / ((x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0)))
else if (x <= 1100000000.0d0) then
tmp = ((x - 2.0d0) * (z + (x * (y + (x * 137.519416416d0))))) / (47.066876606d0 + (x * (313.399215894d0 + ((x + 43.3400022514d0) * (x * x)))))
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 <= -0.0037) {
tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)));
} else if (x <= 1100000000.0) {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + ((x + 43.3400022514) * (x * x)))));
} 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 <= -0.0037: tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606))) elif x <= 1100000000.0: tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + ((x + 43.3400022514) * (x * x))))) 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 <= -0.0037) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(z / Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)))); elseif (x <= 1100000000.0) 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)))))); else tmp = Float64(Float64(Float64(4752.4581585918595 / x) + 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 <= -0.0037) tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606))); elseif (x <= 1100000000.0) tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + ((x + 43.3400022514) * (x * x))))); 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, -0.0037], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(z / N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1100000000.0], 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], N[(N[(N[(4752.4581585918595 / x), $MachinePrecision] + N[(N[(x * 4.16438922228), $MachinePrecision] + N[(y / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(110.1139242984811 + N[(207551.7024428275 / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -0.0037:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{z}{x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606}\right)\\
\mathbf{elif}\;x \leq 1100000000:\\
\;\;\;\;\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)}\\
\mathbf{else}:\\
\;\;\;\;\left(\frac{4752.4581585918595}{x} + \left(x \cdot 4.16438922228 + \frac{y}{x \cdot x}\right)\right) - \left(110.1139242984811 + \frac{207551.7024428275}{x \cdot x}\right)\\
\end{array}
\end{array}
if x < -0.0037000000000000002Initial program 13.2%
associate-*r/20.8%
sub-neg20.8%
metadata-eval20.8%
*-commutative20.8%
fma-def20.8%
*-commutative20.8%
fma-def20.8%
*-commutative20.8%
fma-def20.8%
fma-def20.8%
*-commutative20.8%
Simplified20.9%
Taylor expanded in z around 0 20.9%
Taylor expanded in x around inf 94.2%
if -0.0037000000000000002 < x < 1.1e9Initial program 99.7%
Taylor expanded in x around inf 99.5%
cube-mult99.5%
unpow299.5%
distribute-rgt-out99.5%
+-commutative99.5%
unpow299.5%
Simplified99.5%
Taylor expanded in x around 0 99.3%
*-commutative99.3%
Simplified99.3%
if 1.1e9 < x Initial program 16.6%
Taylor expanded in x around inf 16.6%
cube-mult16.6%
unpow216.6%
distribute-rgt-out16.7%
+-commutative16.7%
unpow216.7%
Simplified16.7%
Taylor expanded in x around inf 92.2%
associate-*r/92.2%
metadata-eval92.2%
+-commutative92.2%
unpow292.2%
associate-*r/92.2%
metadata-eval92.2%
unpow292.2%
Simplified92.2%
Final simplification96.4%
(FPCore (x y z)
:precision binary64
(if (or (<= x -1.72e-6) (not (<= x 6.8e-13)))
(*
(+ x -2.0)
(+
4.16438922228
(/
z
(+
47.066876606
(* x (+ 313.399215894 (* x (+ 263.505074721 (* x x)))))))))
(* (+ x -2.0) (+ (* 0.0212463641547976 (* x y)) (* z 0.0212463641547976)))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -1.72e-6) || !(x <= 6.8e-13)) {
tmp = (x + -2.0) * (4.16438922228 + (z / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * x))))))));
} else {
tmp = (x + -2.0) * ((0.0212463641547976 * (x * y)) + (z * 0.0212463641547976));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((x <= (-1.72d-6)) .or. (.not. (x <= 6.8d-13))) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + (z / (47.066876606d0 + (x * (313.399215894d0 + (x * (263.505074721d0 + (x * x))))))))
else
tmp = (x + (-2.0d0)) * ((0.0212463641547976d0 * (x * y)) + (z * 0.0212463641547976d0))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -1.72e-6) || !(x <= 6.8e-13)) {
tmp = (x + -2.0) * (4.16438922228 + (z / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * x))))))));
} else {
tmp = (x + -2.0) * ((0.0212463641547976 * (x * y)) + (z * 0.0212463641547976));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -1.72e-6) or not (x <= 6.8e-13): tmp = (x + -2.0) * (4.16438922228 + (z / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * x)))))))) else: tmp = (x + -2.0) * ((0.0212463641547976 * (x * y)) + (z * 0.0212463641547976)) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -1.72e-6) || !(x <= 6.8e-13)) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(z / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * Float64(263.505074721 + Float64(x * x))))))))); else tmp = Float64(Float64(x + -2.0) * Float64(Float64(0.0212463641547976 * Float64(x * y)) + Float64(z * 0.0212463641547976))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -1.72e-6) || ~((x <= 6.8e-13))) tmp = (x + -2.0) * (4.16438922228 + (z / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * x)))))))); else tmp = (x + -2.0) * ((0.0212463641547976 * (x * y)) + (z * 0.0212463641547976)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -1.72e-6], N[Not[LessEqual[x, 6.8e-13]], $MachinePrecision]], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(z / N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * N[(263.505074721 + N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(0.0212463641547976 * N[(x * y), $MachinePrecision]), $MachinePrecision] + N[(z * 0.0212463641547976), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.72 \cdot 10^{-6} \lor \neg \left(x \leq 6.8 \cdot 10^{-13}\right):\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{z}{47.066876606 + x \cdot \left(313.399215894 + x \cdot \left(263.505074721 + x \cdot x\right)\right)}\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(0.0212463641547976 \cdot \left(x \cdot y\right) + z \cdot 0.0212463641547976\right)\\
\end{array}
\end{array}
if x < -1.72e-6 or 6.80000000000000031e-13 < x Initial program 16.2%
associate-*r/21.5%
sub-neg21.5%
metadata-eval21.5%
*-commutative21.5%
fma-def21.5%
*-commutative21.5%
fma-def21.5%
*-commutative21.5%
fma-def21.5%
fma-def21.5%
*-commutative21.5%
Simplified21.6%
Taylor expanded in z around 0 21.5%
Taylor expanded in x around inf 90.5%
Taylor expanded in x around inf 89.8%
unpow289.8%
Simplified89.8%
if -1.72e-6 < x < 6.80000000000000031e-13Initial 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 z around 0 99.7%
Taylor expanded in x around 0 95.1%
Taylor expanded in x around 0 94.8%
Final simplification92.3%
(FPCore (x y z)
:precision binary64
(if (or (<= x -0.175) (not (<= x 7.8e-7)))
(-
(+ (/ 4752.4581585918595 x) (+ (* x 4.16438922228) (/ y (* x x))))
(+ 110.1139242984811 (/ 207551.7024428275 (* x x))))
(-
(* z -0.0424927283095952)
(*
x
(- (* z -0.28294182010212804) (* 0.0212463641547976 (+ z (* y -2.0))))))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -0.175) || !(x <= 7.8e-7)) {
tmp = ((4752.4581585918595 / x) + ((x * 4.16438922228) + (y / (x * x)))) - (110.1139242984811 + (207551.7024428275 / (x * x)));
} else {
tmp = (z * -0.0424927283095952) - (x * ((z * -0.28294182010212804) - (0.0212463641547976 * (z + (y * -2.0)))));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((x <= (-0.175d0)) .or. (.not. (x <= 7.8d-7))) then
tmp = ((4752.4581585918595d0 / x) + ((x * 4.16438922228d0) + (y / (x * x)))) - (110.1139242984811d0 + (207551.7024428275d0 / (x * x)))
else
tmp = (z * (-0.0424927283095952d0)) - (x * ((z * (-0.28294182010212804d0)) - (0.0212463641547976d0 * (z + (y * (-2.0d0))))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -0.175) || !(x <= 7.8e-7)) {
tmp = ((4752.4581585918595 / x) + ((x * 4.16438922228) + (y / (x * x)))) - (110.1139242984811 + (207551.7024428275 / (x * x)));
} else {
tmp = (z * -0.0424927283095952) - (x * ((z * -0.28294182010212804) - (0.0212463641547976 * (z + (y * -2.0)))));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -0.175) or not (x <= 7.8e-7): tmp = ((4752.4581585918595 / x) + ((x * 4.16438922228) + (y / (x * x)))) - (110.1139242984811 + (207551.7024428275 / (x * x))) else: tmp = (z * -0.0424927283095952) - (x * ((z * -0.28294182010212804) - (0.0212463641547976 * (z + (y * -2.0))))) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -0.175) || !(x <= 7.8e-7)) tmp = Float64(Float64(Float64(4752.4581585918595 / x) + Float64(Float64(x * 4.16438922228) + Float64(y / Float64(x * x)))) - Float64(110.1139242984811 + Float64(207551.7024428275 / Float64(x * x)))); else tmp = Float64(Float64(z * -0.0424927283095952) - Float64(x * Float64(Float64(z * -0.28294182010212804) - Float64(0.0212463641547976 * Float64(z + Float64(y * -2.0)))))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -0.175) || ~((x <= 7.8e-7))) tmp = ((4752.4581585918595 / x) + ((x * 4.16438922228) + (y / (x * x)))) - (110.1139242984811 + (207551.7024428275 / (x * x))); else tmp = (z * -0.0424927283095952) - (x * ((z * -0.28294182010212804) - (0.0212463641547976 * (z + (y * -2.0))))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -0.175], N[Not[LessEqual[x, 7.8e-7]], $MachinePrecision]], N[(N[(N[(4752.4581585918595 / x), $MachinePrecision] + N[(N[(x * 4.16438922228), $MachinePrecision] + N[(y / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(110.1139242984811 + N[(207551.7024428275 / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(z * -0.0424927283095952), $MachinePrecision] - N[(x * N[(N[(z * -0.28294182010212804), $MachinePrecision] - N[(0.0212463641547976 * N[(z + N[(y * -2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -0.175 \lor \neg \left(x \leq 7.8 \cdot 10^{-7}\right):\\
\;\;\;\;\left(\frac{4752.4581585918595}{x} + \left(x \cdot 4.16438922228 + \frac{y}{x \cdot x}\right)\right) - \left(110.1139242984811 + \frac{207551.7024428275}{x \cdot x}\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot -0.0424927283095952 - x \cdot \left(z \cdot -0.28294182010212804 - 0.0212463641547976 \cdot \left(z + y \cdot -2\right)\right)\\
\end{array}
\end{array}
if x < -0.17499999999999999 or 7.80000000000000049e-7 < x Initial program 15.6%
Taylor expanded in x around inf 14.7%
cube-mult14.7%
unpow214.7%
distribute-rgt-out14.7%
+-commutative14.7%
unpow214.7%
Simplified14.7%
Taylor expanded in x around inf 92.3%
associate-*r/92.3%
metadata-eval92.3%
+-commutative92.3%
unpow292.3%
associate-*r/92.3%
metadata-eval92.3%
unpow292.3%
Simplified92.3%
if -0.17499999999999999 < x < 7.80000000000000049e-7Initial 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 94.7%
Final simplification93.6%
(FPCore (x y z)
:precision binary64
(if (<= x -4e-7)
(*
(+ x -2.0)
(+
4.16438922228
(/
z
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))))
(if (<= x 7.8e-7)
(-
(* z -0.0424927283095952)
(*
x
(- (* z -0.28294182010212804) (* 0.0212463641547976 (+ z (* y -2.0))))))
(-
(+ (/ 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 <= -4e-7) {
tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)));
} else if (x <= 7.8e-7) {
tmp = (z * -0.0424927283095952) - (x * ((z * -0.28294182010212804) - (0.0212463641547976 * (z + (y * -2.0)))));
} 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 <= (-4d-7)) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + (z / ((x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0)))
else if (x <= 7.8d-7) then
tmp = (z * (-0.0424927283095952d0)) - (x * ((z * (-0.28294182010212804d0)) - (0.0212463641547976d0 * (z + (y * (-2.0d0))))))
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 <= -4e-7) {
tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)));
} else if (x <= 7.8e-7) {
tmp = (z * -0.0424927283095952) - (x * ((z * -0.28294182010212804) - (0.0212463641547976 * (z + (y * -2.0)))));
} 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 <= -4e-7: tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606))) elif x <= 7.8e-7: tmp = (z * -0.0424927283095952) - (x * ((z * -0.28294182010212804) - (0.0212463641547976 * (z + (y * -2.0))))) 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 <= -4e-7) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(z / Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)))); elseif (x <= 7.8e-7) tmp = Float64(Float64(z * -0.0424927283095952) - Float64(x * Float64(Float64(z * -0.28294182010212804) - Float64(0.0212463641547976 * Float64(z + Float64(y * -2.0)))))); else tmp = Float64(Float64(Float64(4752.4581585918595 / x) + 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 <= -4e-7) tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606))); elseif (x <= 7.8e-7) tmp = (z * -0.0424927283095952) - (x * ((z * -0.28294182010212804) - (0.0212463641547976 * (z + (y * -2.0))))); 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, -4e-7], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(z / N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 7.8e-7], N[(N[(z * -0.0424927283095952), $MachinePrecision] - N[(x * N[(N[(z * -0.28294182010212804), $MachinePrecision] - N[(0.0212463641547976 * N[(z + N[(y * -2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(4752.4581585918595 / x), $MachinePrecision] + N[(N[(x * 4.16438922228), $MachinePrecision] + N[(y / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(110.1139242984811 + N[(207551.7024428275 / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -4 \cdot 10^{-7}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{z}{x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606}\right)\\
\mathbf{elif}\;x \leq 7.8 \cdot 10^{-7}:\\
\;\;\;\;z \cdot -0.0424927283095952 - x \cdot \left(z \cdot -0.28294182010212804 - 0.0212463641547976 \cdot \left(z + y \cdot -2\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(\frac{4752.4581585918595}{x} + \left(x \cdot 4.16438922228 + \frac{y}{x \cdot x}\right)\right) - \left(110.1139242984811 + \frac{207551.7024428275}{x \cdot x}\right)\\
\end{array}
\end{array}
if x < -3.9999999999999998e-7Initial program 13.2%
associate-*r/20.8%
sub-neg20.8%
metadata-eval20.8%
*-commutative20.8%
fma-def20.8%
*-commutative20.8%
fma-def20.8%
*-commutative20.8%
fma-def20.8%
fma-def20.8%
*-commutative20.8%
Simplified20.9%
Taylor expanded in z around 0 20.9%
Taylor expanded in x around inf 94.2%
if -3.9999999999999998e-7 < x < 7.80000000000000049e-7Initial 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 94.7%
if 7.80000000000000049e-7 < x Initial program 18.0%
Taylor expanded in x around inf 17.6%
cube-mult17.6%
unpow217.6%
distribute-rgt-out17.6%
+-commutative17.6%
unpow217.6%
Simplified17.6%
Taylor expanded in x around inf 90.8%
associate-*r/90.8%
metadata-eval90.8%
+-commutative90.8%
unpow290.8%
associate-*r/90.8%
metadata-eval90.8%
unpow290.8%
Simplified90.8%
Final simplification93.7%
(FPCore (x y z)
:precision binary64
(if (or (<= x -0.175) (not (<= x 7.8e-7)))
(/ (+ x -2.0) (+ 0.24013125253755718 (/ 5.86923874282773 x)))
(*
(+ x -2.0)
(-
(* z 0.0212463641547976)
(* x (- (* z 0.14147091005106402) (* y 0.0212463641547976)))))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -0.175) || !(x <= 7.8e-7)) {
tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x));
} else {
tmp = (x + -2.0) * ((z * 0.0212463641547976) - (x * ((z * 0.14147091005106402) - (y * 0.0212463641547976))));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((x <= (-0.175d0)) .or. (.not. (x <= 7.8d-7))) then
tmp = (x + (-2.0d0)) / (0.24013125253755718d0 + (5.86923874282773d0 / x))
else
tmp = (x + (-2.0d0)) * ((z * 0.0212463641547976d0) - (x * ((z * 0.14147091005106402d0) - (y * 0.0212463641547976d0))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -0.175) || !(x <= 7.8e-7)) {
tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x));
} else {
tmp = (x + -2.0) * ((z * 0.0212463641547976) - (x * ((z * 0.14147091005106402) - (y * 0.0212463641547976))));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -0.175) or not (x <= 7.8e-7): tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x)) else: tmp = (x + -2.0) * ((z * 0.0212463641547976) - (x * ((z * 0.14147091005106402) - (y * 0.0212463641547976)))) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -0.175) || !(x <= 7.8e-7)) tmp = Float64(Float64(x + -2.0) / Float64(0.24013125253755718 + Float64(5.86923874282773 / x))); else tmp = Float64(Float64(x + -2.0) * Float64(Float64(z * 0.0212463641547976) - Float64(x * Float64(Float64(z * 0.14147091005106402) - Float64(y * 0.0212463641547976))))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -0.175) || ~((x <= 7.8e-7))) tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x)); else tmp = (x + -2.0) * ((z * 0.0212463641547976) - (x * ((z * 0.14147091005106402) - (y * 0.0212463641547976)))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -0.175], N[Not[LessEqual[x, 7.8e-7]], $MachinePrecision]], N[(N[(x + -2.0), $MachinePrecision] / N[(0.24013125253755718 + N[(5.86923874282773 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z * 0.0212463641547976), $MachinePrecision] - N[(x * N[(N[(z * 0.14147091005106402), $MachinePrecision] - N[(y * 0.0212463641547976), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -0.175 \lor \neg \left(x \leq 7.8 \cdot 10^{-7}\right):\\
\;\;\;\;\frac{x + -2}{0.24013125253755718 + \frac{5.86923874282773}{x}}\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976 - x \cdot \left(z \cdot 0.14147091005106402 - y \cdot 0.0212463641547976\right)\right)\\
\end{array}
\end{array}
if x < -0.17499999999999999 or 7.80000000000000049e-7 < x Initial program 15.6%
associate-/l*20.9%
sub-neg20.9%
metadata-eval20.9%
fma-def20.9%
fma-def20.9%
fma-def21.0%
fma-def21.0%
fma-def21.0%
fma-def21.0%
fma-def20.9%
Simplified20.9%
Taylor expanded in x around inf 86.3%
associate-*r/86.3%
metadata-eval86.3%
Simplified86.3%
if -0.17499999999999999 < x < 7.80000000000000049e-7Initial 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 94.7%
Final simplification90.7%
(FPCore (x y z)
:precision binary64
(if (or (<= x -0.175) (not (<= x 7.8e-7)))
(/ (+ x -2.0) (+ 0.24013125253755718 (/ 5.86923874282773 x)))
(-
(* z -0.0424927283095952)
(*
x
(- (* z -0.28294182010212804) (* 0.0212463641547976 (+ z (* y -2.0))))))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -0.175) || !(x <= 7.8e-7)) {
tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x));
} else {
tmp = (z * -0.0424927283095952) - (x * ((z * -0.28294182010212804) - (0.0212463641547976 * (z + (y * -2.0)))));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((x <= (-0.175d0)) .or. (.not. (x <= 7.8d-7))) then
tmp = (x + (-2.0d0)) / (0.24013125253755718d0 + (5.86923874282773d0 / x))
else
tmp = (z * (-0.0424927283095952d0)) - (x * ((z * (-0.28294182010212804d0)) - (0.0212463641547976d0 * (z + (y * (-2.0d0))))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -0.175) || !(x <= 7.8e-7)) {
tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x));
} else {
tmp = (z * -0.0424927283095952) - (x * ((z * -0.28294182010212804) - (0.0212463641547976 * (z + (y * -2.0)))));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -0.175) or not (x <= 7.8e-7): tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x)) else: tmp = (z * -0.0424927283095952) - (x * ((z * -0.28294182010212804) - (0.0212463641547976 * (z + (y * -2.0))))) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -0.175) || !(x <= 7.8e-7)) tmp = Float64(Float64(x + -2.0) / Float64(0.24013125253755718 + Float64(5.86923874282773 / x))); else tmp = Float64(Float64(z * -0.0424927283095952) - Float64(x * Float64(Float64(z * -0.28294182010212804) - Float64(0.0212463641547976 * Float64(z + Float64(y * -2.0)))))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -0.175) || ~((x <= 7.8e-7))) tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x)); else tmp = (z * -0.0424927283095952) - (x * ((z * -0.28294182010212804) - (0.0212463641547976 * (z + (y * -2.0))))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -0.175], N[Not[LessEqual[x, 7.8e-7]], $MachinePrecision]], N[(N[(x + -2.0), $MachinePrecision] / N[(0.24013125253755718 + N[(5.86923874282773 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(z * -0.0424927283095952), $MachinePrecision] - N[(x * N[(N[(z * -0.28294182010212804), $MachinePrecision] - N[(0.0212463641547976 * N[(z + N[(y * -2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -0.175 \lor \neg \left(x \leq 7.8 \cdot 10^{-7}\right):\\
\;\;\;\;\frac{x + -2}{0.24013125253755718 + \frac{5.86923874282773}{x}}\\
\mathbf{else}:\\
\;\;\;\;z \cdot -0.0424927283095952 - x \cdot \left(z \cdot -0.28294182010212804 - 0.0212463641547976 \cdot \left(z + y \cdot -2\right)\right)\\
\end{array}
\end{array}
if x < -0.17499999999999999 or 7.80000000000000049e-7 < x Initial program 15.6%
associate-/l*20.9%
sub-neg20.9%
metadata-eval20.9%
fma-def20.9%
fma-def20.9%
fma-def21.0%
fma-def21.0%
fma-def21.0%
fma-def21.0%
fma-def20.9%
Simplified20.9%
Taylor expanded in x around inf 86.3%
associate-*r/86.3%
metadata-eval86.3%
Simplified86.3%
if -0.17499999999999999 < x < 7.80000000000000049e-7Initial 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 94.7%
Final simplification90.7%
(FPCore (x y z) :precision binary64 (if (or (<= x -0.175) (not (<= x 7.8e-7))) (/ (+ x -2.0) (+ 0.24013125253755718 (/ 5.86923874282773 x))) (* (+ x -2.0) (+ (* 0.0212463641547976 (* x y)) (* z 0.0212463641547976)))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -0.175) || !(x <= 7.8e-7)) {
tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x));
} else {
tmp = (x + -2.0) * ((0.0212463641547976 * (x * y)) + (z * 0.0212463641547976));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((x <= (-0.175d0)) .or. (.not. (x <= 7.8d-7))) then
tmp = (x + (-2.0d0)) / (0.24013125253755718d0 + (5.86923874282773d0 / x))
else
tmp = (x + (-2.0d0)) * ((0.0212463641547976d0 * (x * y)) + (z * 0.0212463641547976d0))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -0.175) || !(x <= 7.8e-7)) {
tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x));
} else {
tmp = (x + -2.0) * ((0.0212463641547976 * (x * y)) + (z * 0.0212463641547976));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -0.175) or not (x <= 7.8e-7): tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x)) else: tmp = (x + -2.0) * ((0.0212463641547976 * (x * y)) + (z * 0.0212463641547976)) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -0.175) || !(x <= 7.8e-7)) tmp = Float64(Float64(x + -2.0) / Float64(0.24013125253755718 + Float64(5.86923874282773 / x))); else tmp = Float64(Float64(x + -2.0) * Float64(Float64(0.0212463641547976 * Float64(x * y)) + Float64(z * 0.0212463641547976))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -0.175) || ~((x <= 7.8e-7))) tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x)); else tmp = (x + -2.0) * ((0.0212463641547976 * (x * y)) + (z * 0.0212463641547976)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -0.175], N[Not[LessEqual[x, 7.8e-7]], $MachinePrecision]], N[(N[(x + -2.0), $MachinePrecision] / N[(0.24013125253755718 + N[(5.86923874282773 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(0.0212463641547976 * N[(x * y), $MachinePrecision]), $MachinePrecision] + N[(z * 0.0212463641547976), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -0.175 \lor \neg \left(x \leq 7.8 \cdot 10^{-7}\right):\\
\;\;\;\;\frac{x + -2}{0.24013125253755718 + \frac{5.86923874282773}{x}}\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(0.0212463641547976 \cdot \left(x \cdot y\right) + z \cdot 0.0212463641547976\right)\\
\end{array}
\end{array}
if x < -0.17499999999999999 or 7.80000000000000049e-7 < x Initial program 15.6%
associate-/l*20.9%
sub-neg20.9%
metadata-eval20.9%
fma-def20.9%
fma-def20.9%
fma-def21.0%
fma-def21.0%
fma-def21.0%
fma-def21.0%
fma-def20.9%
Simplified20.9%
Taylor expanded in x around inf 86.3%
associate-*r/86.3%
metadata-eval86.3%
Simplified86.3%
if -0.17499999999999999 < x < 7.80000000000000049e-7Initial 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 z around 0 99.7%
Taylor expanded in x around 0 95.1%
Taylor expanded in x around 0 94.6%
Final simplification90.6%
(FPCore (x y z) :precision binary64 (if (or (<= x -0.175) (not (<= x 7.8e-7))) (/ (+ x -2.0) (+ 0.24013125253755718 (/ 5.86923874282773 x))) (/ (+ x -2.0) (/ 47.066876606 z))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -0.175) || !(x <= 7.8e-7)) {
tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x));
} else {
tmp = (x + -2.0) / (47.066876606 / z);
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((x <= (-0.175d0)) .or. (.not. (x <= 7.8d-7))) then
tmp = (x + (-2.0d0)) / (0.24013125253755718d0 + (5.86923874282773d0 / x))
else
tmp = (x + (-2.0d0)) / (47.066876606d0 / z)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -0.175) || !(x <= 7.8e-7)) {
tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x));
} else {
tmp = (x + -2.0) / (47.066876606 / z);
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -0.175) or not (x <= 7.8e-7): tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x)) else: tmp = (x + -2.0) / (47.066876606 / z) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -0.175) || !(x <= 7.8e-7)) tmp = Float64(Float64(x + -2.0) / Float64(0.24013125253755718 + Float64(5.86923874282773 / x))); else tmp = Float64(Float64(x + -2.0) / Float64(47.066876606 / z)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -0.175) || ~((x <= 7.8e-7))) tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x)); else tmp = (x + -2.0) / (47.066876606 / z); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -0.175], N[Not[LessEqual[x, 7.8e-7]], $MachinePrecision]], N[(N[(x + -2.0), $MachinePrecision] / N[(0.24013125253755718 + N[(5.86923874282773 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] / N[(47.066876606 / z), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -0.175 \lor \neg \left(x \leq 7.8 \cdot 10^{-7}\right):\\
\;\;\;\;\frac{x + -2}{0.24013125253755718 + \frac{5.86923874282773}{x}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x + -2}{\frac{47.066876606}{z}}\\
\end{array}
\end{array}
if x < -0.17499999999999999 or 7.80000000000000049e-7 < x Initial program 15.6%
associate-/l*20.9%
sub-neg20.9%
metadata-eval20.9%
fma-def20.9%
fma-def20.9%
fma-def21.0%
fma-def21.0%
fma-def21.0%
fma-def21.0%
fma-def20.9%
Simplified20.9%
Taylor expanded in x around inf 86.3%
associate-*r/86.3%
metadata-eval86.3%
Simplified86.3%
if -0.17499999999999999 < x < 7.80000000000000049e-7Initial program 99.7%
associate-/l*99.6%
sub-neg99.6%
metadata-eval99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
Simplified99.6%
Taylor expanded in x around 0 75.1%
Final simplification80.5%
(FPCore (x y z)
:precision binary64
(if (<= x -3.1e-10)
(/ (+ x -2.0) 0.24013125253755718)
(if (<= x 7.8e-7)
(* z (+ -0.0424927283095952 (* x 0.3041881842569256)))
(- (* x 4.16438922228) 110.1139242984811))))
double code(double x, double y, double z) {
double tmp;
if (x <= -3.1e-10) {
tmp = (x + -2.0) / 0.24013125253755718;
} else if (x <= 7.8e-7) {
tmp = z * (-0.0424927283095952 + (x * 0.3041881842569256));
} else {
tmp = (x * 4.16438922228) - 110.1139242984811;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-3.1d-10)) then
tmp = (x + (-2.0d0)) / 0.24013125253755718d0
else if (x <= 7.8d-7) then
tmp = z * ((-0.0424927283095952d0) + (x * 0.3041881842569256d0))
else
tmp = (x * 4.16438922228d0) - 110.1139242984811d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -3.1e-10) {
tmp = (x + -2.0) / 0.24013125253755718;
} else if (x <= 7.8e-7) {
tmp = z * (-0.0424927283095952 + (x * 0.3041881842569256));
} else {
tmp = (x * 4.16438922228) - 110.1139242984811;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -3.1e-10: tmp = (x + -2.0) / 0.24013125253755718 elif x <= 7.8e-7: tmp = z * (-0.0424927283095952 + (x * 0.3041881842569256)) else: tmp = (x * 4.16438922228) - 110.1139242984811 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -3.1e-10) tmp = Float64(Float64(x + -2.0) / 0.24013125253755718); elseif (x <= 7.8e-7) tmp = Float64(z * Float64(-0.0424927283095952 + Float64(x * 0.3041881842569256))); else tmp = Float64(Float64(x * 4.16438922228) - 110.1139242984811); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -3.1e-10) tmp = (x + -2.0) / 0.24013125253755718; elseif (x <= 7.8e-7) tmp = z * (-0.0424927283095952 + (x * 0.3041881842569256)); else tmp = (x * 4.16438922228) - 110.1139242984811; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -3.1e-10], N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision], If[LessEqual[x, 7.8e-7], N[(z * N[(-0.0424927283095952 + N[(x * 0.3041881842569256), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x * 4.16438922228), $MachinePrecision] - 110.1139242984811), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -3.1 \cdot 10^{-10}:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718}\\
\mathbf{elif}\;x \leq 7.8 \cdot 10^{-7}:\\
\;\;\;\;z \cdot \left(-0.0424927283095952 + x \cdot 0.3041881842569256\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228 - 110.1139242984811\\
\end{array}
\end{array}
if x < -3.10000000000000015e-10Initial program 14.5%
associate-/l*22.1%
sub-neg22.1%
metadata-eval22.1%
fma-def22.1%
fma-def22.1%
fma-def22.1%
fma-def22.1%
fma-def22.1%
fma-def22.1%
fma-def22.1%
Simplified22.1%
Taylor expanded in x around inf 88.1%
if -3.10000000000000015e-10 < x < 7.80000000000000049e-7Initial 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 z around inf 75.9%
Taylor expanded in x around 0 75.9%
*-commutative75.9%
Simplified75.9%
Taylor expanded in x around 0 75.6%
+-commutative75.6%
*-commutative75.6%
cancel-sign-sub-inv75.6%
metadata-eval75.6%
distribute-rgt-out75.6%
associate-*l*75.6%
distribute-lft-out75.6%
metadata-eval75.6%
Simplified75.6%
if 7.80000000000000049e-7 < x Initial program 18.0%
associate-*r/20.9%
sub-neg20.9%
metadata-eval20.9%
*-commutative20.9%
fma-def20.9%
*-commutative20.9%
fma-def20.9%
*-commutative20.9%
fma-def20.9%
fma-def20.9%
*-commutative20.9%
Simplified21.0%
Taylor expanded in x around inf 82.3%
Final simplification80.3%
(FPCore (x y z)
:precision binary64
(if (<= x -3.1e-10)
(/ (+ x -2.0) 0.24013125253755718)
(if (<= x 7.8e-7)
(/ (+ x -2.0) (/ 47.066876606 z))
(- (* x 4.16438922228) 110.1139242984811))))
double code(double x, double y, double z) {
double tmp;
if (x <= -3.1e-10) {
tmp = (x + -2.0) / 0.24013125253755718;
} else if (x <= 7.8e-7) {
tmp = (x + -2.0) / (47.066876606 / z);
} else {
tmp = (x * 4.16438922228) - 110.1139242984811;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-3.1d-10)) then
tmp = (x + (-2.0d0)) / 0.24013125253755718d0
else if (x <= 7.8d-7) then
tmp = (x + (-2.0d0)) / (47.066876606d0 / z)
else
tmp = (x * 4.16438922228d0) - 110.1139242984811d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -3.1e-10) {
tmp = (x + -2.0) / 0.24013125253755718;
} else if (x <= 7.8e-7) {
tmp = (x + -2.0) / (47.066876606 / z);
} else {
tmp = (x * 4.16438922228) - 110.1139242984811;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -3.1e-10: tmp = (x + -2.0) / 0.24013125253755718 elif x <= 7.8e-7: tmp = (x + -2.0) / (47.066876606 / z) else: tmp = (x * 4.16438922228) - 110.1139242984811 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -3.1e-10) tmp = Float64(Float64(x + -2.0) / 0.24013125253755718); elseif (x <= 7.8e-7) tmp = Float64(Float64(x + -2.0) / Float64(47.066876606 / z)); else tmp = Float64(Float64(x * 4.16438922228) - 110.1139242984811); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -3.1e-10) tmp = (x + -2.0) / 0.24013125253755718; elseif (x <= 7.8e-7) tmp = (x + -2.0) / (47.066876606 / z); else tmp = (x * 4.16438922228) - 110.1139242984811; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -3.1e-10], N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision], If[LessEqual[x, 7.8e-7], N[(N[(x + -2.0), $MachinePrecision] / N[(47.066876606 / z), $MachinePrecision]), $MachinePrecision], N[(N[(x * 4.16438922228), $MachinePrecision] - 110.1139242984811), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -3.1 \cdot 10^{-10}:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718}\\
\mathbf{elif}\;x \leq 7.8 \cdot 10^{-7}:\\
\;\;\;\;\frac{x + -2}{\frac{47.066876606}{z}}\\
\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228 - 110.1139242984811\\
\end{array}
\end{array}
if x < -3.10000000000000015e-10Initial program 14.5%
associate-/l*22.1%
sub-neg22.1%
metadata-eval22.1%
fma-def22.1%
fma-def22.1%
fma-def22.1%
fma-def22.1%
fma-def22.1%
fma-def22.1%
fma-def22.1%
Simplified22.1%
Taylor expanded in x around inf 88.1%
if -3.10000000000000015e-10 < x < 7.80000000000000049e-7Initial program 99.7%
associate-/l*99.6%
sub-neg99.6%
metadata-eval99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
Simplified99.6%
Taylor expanded in x around 0 75.6%
if 7.80000000000000049e-7 < x Initial program 18.0%
associate-*r/20.9%
sub-neg20.9%
metadata-eval20.9%
*-commutative20.9%
fma-def20.9%
*-commutative20.9%
fma-def20.9%
*-commutative20.9%
fma-def20.9%
fma-def20.9%
*-commutative20.9%
Simplified21.0%
Taylor expanded in x around inf 82.3%
Final simplification80.3%
(FPCore (x y z) :precision binary64 (if (or (<= x -3.1e-10) (not (<= x 7.8e-7))) (- (* x 4.16438922228) 110.1139242984811) (* z -0.0424927283095952)))
double code(double x, double y, double z) {
double tmp;
if ((x <= -3.1e-10) || !(x <= 7.8e-7)) {
tmp = (x * 4.16438922228) - 110.1139242984811;
} else {
tmp = z * -0.0424927283095952;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((x <= (-3.1d-10)) .or. (.not. (x <= 7.8d-7))) then
tmp = (x * 4.16438922228d0) - 110.1139242984811d0
else
tmp = z * (-0.0424927283095952d0)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -3.1e-10) || !(x <= 7.8e-7)) {
tmp = (x * 4.16438922228) - 110.1139242984811;
} else {
tmp = z * -0.0424927283095952;
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -3.1e-10) or not (x <= 7.8e-7): tmp = (x * 4.16438922228) - 110.1139242984811 else: tmp = z * -0.0424927283095952 return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -3.1e-10) || !(x <= 7.8e-7)) tmp = Float64(Float64(x * 4.16438922228) - 110.1139242984811); else tmp = Float64(z * -0.0424927283095952); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -3.1e-10) || ~((x <= 7.8e-7))) tmp = (x * 4.16438922228) - 110.1139242984811; else tmp = z * -0.0424927283095952; end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -3.1e-10], N[Not[LessEqual[x, 7.8e-7]], $MachinePrecision]], N[(N[(x * 4.16438922228), $MachinePrecision] - 110.1139242984811), $MachinePrecision], N[(z * -0.0424927283095952), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -3.1 \cdot 10^{-10} \lor \neg \left(x \leq 7.8 \cdot 10^{-7}\right):\\
\;\;\;\;x \cdot 4.16438922228 - 110.1139242984811\\
\mathbf{else}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\end{array}
\end{array}
if x < -3.10000000000000015e-10 or 7.80000000000000049e-7 < x Initial program 16.2%
associate-*r/21.5%
sub-neg21.5%
metadata-eval21.5%
*-commutative21.5%
fma-def21.5%
*-commutative21.5%
fma-def21.5%
*-commutative21.5%
fma-def21.5%
fma-def21.5%
*-commutative21.5%
Simplified21.6%
Taylor expanded in x around inf 85.1%
if -3.10000000000000015e-10 < x < 7.80000000000000049e-7Initial 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 75.5%
*-commutative75.5%
Simplified75.5%
Final simplification80.2%
(FPCore (x y z)
:precision binary64
(if (<= x -3.1e-10)
(/ (+ x -2.0) 0.24013125253755718)
(if (<= x 7.8e-7)
(* z -0.0424927283095952)
(- (* x 4.16438922228) 110.1139242984811))))
double code(double x, double y, double z) {
double tmp;
if (x <= -3.1e-10) {
tmp = (x + -2.0) / 0.24013125253755718;
} else if (x <= 7.8e-7) {
tmp = z * -0.0424927283095952;
} else {
tmp = (x * 4.16438922228) - 110.1139242984811;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-3.1d-10)) then
tmp = (x + (-2.0d0)) / 0.24013125253755718d0
else if (x <= 7.8d-7) then
tmp = z * (-0.0424927283095952d0)
else
tmp = (x * 4.16438922228d0) - 110.1139242984811d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -3.1e-10) {
tmp = (x + -2.0) / 0.24013125253755718;
} else if (x <= 7.8e-7) {
tmp = z * -0.0424927283095952;
} else {
tmp = (x * 4.16438922228) - 110.1139242984811;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -3.1e-10: tmp = (x + -2.0) / 0.24013125253755718 elif x <= 7.8e-7: tmp = z * -0.0424927283095952 else: tmp = (x * 4.16438922228) - 110.1139242984811 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -3.1e-10) tmp = Float64(Float64(x + -2.0) / 0.24013125253755718); elseif (x <= 7.8e-7) tmp = Float64(z * -0.0424927283095952); else tmp = Float64(Float64(x * 4.16438922228) - 110.1139242984811); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -3.1e-10) tmp = (x + -2.0) / 0.24013125253755718; elseif (x <= 7.8e-7) tmp = z * -0.0424927283095952; else tmp = (x * 4.16438922228) - 110.1139242984811; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -3.1e-10], N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision], If[LessEqual[x, 7.8e-7], N[(z * -0.0424927283095952), $MachinePrecision], N[(N[(x * 4.16438922228), $MachinePrecision] - 110.1139242984811), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -3.1 \cdot 10^{-10}:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718}\\
\mathbf{elif}\;x \leq 7.8 \cdot 10^{-7}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228 - 110.1139242984811\\
\end{array}
\end{array}
if x < -3.10000000000000015e-10Initial program 14.5%
associate-/l*22.1%
sub-neg22.1%
metadata-eval22.1%
fma-def22.1%
fma-def22.1%
fma-def22.1%
fma-def22.1%
fma-def22.1%
fma-def22.1%
fma-def22.1%
Simplified22.1%
Taylor expanded in x around inf 88.1%
if -3.10000000000000015e-10 < x < 7.80000000000000049e-7Initial 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 75.5%
*-commutative75.5%
Simplified75.5%
if 7.80000000000000049e-7 < x Initial program 18.0%
associate-*r/20.9%
sub-neg20.9%
metadata-eval20.9%
*-commutative20.9%
fma-def20.9%
*-commutative20.9%
fma-def20.9%
*-commutative20.9%
fma-def20.9%
fma-def20.9%
*-commutative20.9%
Simplified21.0%
Taylor expanded in x around inf 82.3%
Final simplification80.2%
(FPCore (x y z) :precision binary64 (if (<= x -3.1e-10) (* x 4.16438922228) (if (<= x 2.0) (* z -0.0424927283095952) (* x 4.16438922228))))
double code(double x, double y, double z) {
double tmp;
if (x <= -3.1e-10) {
tmp = x * 4.16438922228;
} else if (x <= 2.0) {
tmp = z * -0.0424927283095952;
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-3.1d-10)) then
tmp = x * 4.16438922228d0
else if (x <= 2.0d0) then
tmp = z * (-0.0424927283095952d0)
else
tmp = x * 4.16438922228d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -3.1e-10) {
tmp = x * 4.16438922228;
} else if (x <= 2.0) {
tmp = z * -0.0424927283095952;
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -3.1e-10: tmp = x * 4.16438922228 elif x <= 2.0: tmp = z * -0.0424927283095952 else: tmp = x * 4.16438922228 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -3.1e-10) tmp = Float64(x * 4.16438922228); elseif (x <= 2.0) tmp = Float64(z * -0.0424927283095952); else tmp = Float64(x * 4.16438922228); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -3.1e-10) tmp = x * 4.16438922228; elseif (x <= 2.0) tmp = z * -0.0424927283095952; else tmp = x * 4.16438922228; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -3.1e-10], N[(x * 4.16438922228), $MachinePrecision], If[LessEqual[x, 2.0], N[(z * -0.0424927283095952), $MachinePrecision], N[(x * 4.16438922228), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -3.1 \cdot 10^{-10}:\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{elif}\;x \leq 2:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228\\
\end{array}
\end{array}
if x < -3.10000000000000015e-10 or 2 < x Initial program 15.6%
associate-/l*20.9%
sub-neg20.9%
metadata-eval20.9%
fma-def20.9%
fma-def20.9%
fma-def21.0%
fma-def21.0%
fma-def21.0%
fma-def21.0%
fma-def20.9%
Simplified20.9%
Taylor expanded in x around inf 86.2%
associate-*r/86.2%
metadata-eval86.2%
Simplified86.2%
Taylor expanded in x around inf 84.8%
*-commutative84.8%
Simplified84.8%
if -3.10000000000000015e-10 < x < 2Initial 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 74.9%
*-commutative74.9%
Simplified74.9%
Final simplification79.7%
(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 58.9%
associate-/l*61.5%
sub-neg61.5%
metadata-eval61.5%
fma-def61.5%
fma-def61.5%
fma-def61.5%
fma-def61.5%
fma-def61.5%
fma-def61.5%
fma-def61.5%
Simplified61.5%
Taylor expanded in x around inf 43.7%
associate-*r/43.7%
metadata-eval43.7%
Simplified43.7%
Taylor expanded in x around 0 2.4%
*-commutative2.4%
Simplified2.4%
Final simplification2.4%
(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 58.9%
associate-/l*61.5%
sub-neg61.5%
metadata-eval61.5%
fma-def61.5%
fma-def61.5%
fma-def61.5%
fma-def61.5%
fma-def61.5%
fma-def61.5%
fma-def61.5%
Simplified61.5%
Taylor expanded in x around inf 43.7%
associate-*r/43.7%
metadata-eval43.7%
Simplified43.7%
Taylor expanded in x around inf 42.9%
*-commutative42.9%
Simplified42.9%
Final simplification42.9%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (- (+ (/ y (* x x)) (* 4.16438922228 x)) 110.1139242984811)))
(if (< x -3.326128725870005e+62)
t_0
(if (< x 9.429991714554673e+55)
(*
(/ (- x 2.0) 1.0)
(/
(+
(*
(+
(* (+ (* (+ (* x 4.16438922228) 78.6994924154) x) 137.519416416) x)
y)
x)
z)
(+
(*
(+
(+ (* 263.505074721 x) (+ (* 43.3400022514 (* x x)) (* x (* x x))))
313.399215894)
x)
47.066876606)))
t_0))))
double code(double x, double y, double z) {
double t_0 = ((y / (x * x)) + (4.16438922228 * x)) - 110.1139242984811;
double tmp;
if (x < -3.326128725870005e+62) {
tmp = t_0;
} else if (x < 9.429991714554673e+55) {
tmp = ((x - 2.0) / 1.0) * (((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z) / (((((263.505074721 * x) + ((43.3400022514 * (x * x)) + (x * (x * x)))) + 313.399215894) * x) + 47.066876606));
} else {
tmp = t_0;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = ((y / (x * x)) + (4.16438922228d0 * x)) - 110.1139242984811d0
if (x < (-3.326128725870005d+62)) then
tmp = t_0
else if (x < 9.429991714554673d+55) then
tmp = ((x - 2.0d0) / 1.0d0) * (((((((((x * 4.16438922228d0) + 78.6994924154d0) * x) + 137.519416416d0) * x) + y) * x) + z) / (((((263.505074721d0 * x) + ((43.3400022514d0 * (x * x)) + (x * (x * x)))) + 313.399215894d0) * x) + 47.066876606d0))
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = ((y / (x * x)) + (4.16438922228 * x)) - 110.1139242984811;
double tmp;
if (x < -3.326128725870005e+62) {
tmp = t_0;
} else if (x < 9.429991714554673e+55) {
tmp = ((x - 2.0) / 1.0) * (((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z) / (((((263.505074721 * x) + ((43.3400022514 * (x * x)) + (x * (x * x)))) + 313.399215894) * x) + 47.066876606));
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = ((y / (x * x)) + (4.16438922228 * x)) - 110.1139242984811 tmp = 0 if x < -3.326128725870005e+62: tmp = t_0 elif x < 9.429991714554673e+55: tmp = ((x - 2.0) / 1.0) * (((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z) / (((((263.505074721 * x) + ((43.3400022514 * (x * x)) + (x * (x * x)))) + 313.399215894) * x) + 47.066876606)) else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(Float64(Float64(y / Float64(x * x)) + Float64(4.16438922228 * x)) - 110.1139242984811) tmp = 0.0 if (x < -3.326128725870005e+62) tmp = t_0; elseif (x < 9.429991714554673e+55) tmp = Float64(Float64(Float64(x - 2.0) / 1.0) * Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z) / Float64(Float64(Float64(Float64(Float64(263.505074721 * x) + Float64(Float64(43.3400022514 * Float64(x * x)) + Float64(x * Float64(x * x)))) + 313.399215894) * x) + 47.066876606))); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = ((y / (x * x)) + (4.16438922228 * x)) - 110.1139242984811; tmp = 0.0; if (x < -3.326128725870005e+62) tmp = t_0; elseif (x < 9.429991714554673e+55) tmp = ((x - 2.0) / 1.0) * (((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z) / (((((263.505074721 * x) + ((43.3400022514 * (x * x)) + (x * (x * x)))) + 313.399215894) * x) + 47.066876606)); else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(N[(y / N[(x * x), $MachinePrecision]), $MachinePrecision] + N[(4.16438922228 * x), $MachinePrecision]), $MachinePrecision] - 110.1139242984811), $MachinePrecision]}, If[Less[x, -3.326128725870005e+62], t$95$0, If[Less[x, 9.429991714554673e+55], N[(N[(N[(x - 2.0), $MachinePrecision] / 1.0), $MachinePrecision] * N[(N[(N[(N[(N[(N[(N[(N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision] * x), $MachinePrecision] + 137.519416416), $MachinePrecision] * x), $MachinePrecision] + y), $MachinePrecision] * x), $MachinePrecision] + z), $MachinePrecision] / N[(N[(N[(N[(N[(263.505074721 * x), $MachinePrecision] + N[(N[(43.3400022514 * N[(x * x), $MachinePrecision]), $MachinePrecision] + N[(x * N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision] * x), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$0]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \left(\frac{y}{x \cdot x} + 4.16438922228 \cdot x\right) - 110.1139242984811\\
\mathbf{if}\;x < -3.326128725870005 \cdot 10^{+62}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;x < 9.429991714554673 \cdot 10^{+55}:\\
\;\;\;\;\frac{x - 2}{1} \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(263.505074721 \cdot x + \left(43.3400022514 \cdot \left(x \cdot x\right) + x \cdot \left(x \cdot x\right)\right)\right) + 313.399215894\right) \cdot x + 47.066876606}\\
\mathbf{else}:\\
\;\;\;\;t_0\\
\end{array}
\end{array}
herbie shell --seed 2023200
(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)))