
(FPCore (x y z)
:precision binary64
(/
(*
(- x 2.0)
(+
(*
(+ (* (+ (* (+ (* x 4.16438922228) 78.6994924154) x) 137.519416416) x) y)
x)
z))
(+
(* (+ (* (+ (* (+ x 43.3400022514) x) 263.505074721) x) 313.399215894) x)
47.066876606)))
double code(double x, double y, double z) {
return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606);
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = ((x - 2.0d0) * ((((((((x * 4.16438922228d0) + 78.6994924154d0) * x) + 137.519416416d0) * x) + y) * x) + z)) / (((((((x + 43.3400022514d0) * x) + 263.505074721d0) * x) + 313.399215894d0) * x) + 47.066876606d0)
end function
public static double code(double x, double y, double z) {
return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606);
}
def code(x, y, z): return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606)
function code(x, y, z) return Float64(Float64(Float64(x - 2.0) * Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606)) end
function tmp = code(x, y, z) tmp = ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606); end
code[x_, y_, z_] := N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(N[(N[(N[(N[(N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision] * x), $MachinePrecision] + 137.519416416), $MachinePrecision] * x), $MachinePrecision] + y), $MachinePrecision] * x), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(x + 43.3400022514), $MachinePrecision] * x), $MachinePrecision] + 263.505074721), $MachinePrecision] * x), $MachinePrecision] + 313.399215894), $MachinePrecision] * x), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 23 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z)
:precision binary64
(/
(*
(- x 2.0)
(+
(*
(+ (* (+ (* (+ (* x 4.16438922228) 78.6994924154) x) 137.519416416) x) y)
x)
z))
(+
(* (+ (* (+ (* (+ x 43.3400022514) x) 263.505074721) x) 313.399215894) x)
47.066876606)))
double code(double x, double y, double z) {
return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606);
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = ((x - 2.0d0) * ((((((((x * 4.16438922228d0) + 78.6994924154d0) * x) + 137.519416416d0) * x) + y) * x) + z)) / (((((((x + 43.3400022514d0) * x) + 263.505074721d0) * x) + 313.399215894d0) * x) + 47.066876606d0)
end function
public static double code(double x, double y, double z) {
return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606);
}
def code(x, y, z): return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606)
function code(x, y, z) return Float64(Float64(Float64(x - 2.0) * Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606)) end
function tmp = code(x, y, z) tmp = ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606); end
code[x_, y_, z_] := N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(N[(N[(N[(N[(N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision] * x), $MachinePrecision] + 137.519416416), $MachinePrecision] * x), $MachinePrecision] + y), $MachinePrecision] * x), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(x + 43.3400022514), $MachinePrecision] * x), $MachinePrecision] + 263.505074721), $MachinePrecision] * x), $MachinePrecision] + 313.399215894), $MachinePrecision] * x), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606}
\end{array}
(FPCore (x y z)
:precision binary64
(if (<=
(/
(*
(- x 2.0)
(+
(*
x
(+
(* x (+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))
y))
z))
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))
1e+300)
(/
(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)))
(*
(+ x -2.0)
(+ 4.16438922228 (/ (- (* (/ y x) (/ 1.0 x)) 101.7851458539211) x)))))
double code(double x, double y, double z) {
double tmp;
if ((((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) <= 1e+300) {
tmp = 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));
} else {
tmp = (x + -2.0) * (4.16438922228 + ((((y / x) * (1.0 / x)) - 101.7851458539211) / x));
}
return tmp;
}
function code(x, y, z) tmp = 0.0 if (Float64(Float64(Float64(x - 2.0) * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) <= 1e+300) tmp = Float64(fma(x, fma(x, fma(x, fma(x, 4.16438922228, 78.6994924154), 137.519416416), y), z) / Float64(fma(x, fma(x, fma(x, Float64(x + 43.3400022514), 263.505074721), 313.399215894), 47.066876606) / Float64(x + -2.0))); else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(y / x) * Float64(1.0 / x)) - 101.7851458539211) / x))); end return tmp end
code[x_, y_, z_] := If[LessEqual[N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(x * N[(N[(x * N[(N[(x * N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision]), $MachinePrecision] + 137.519416416), $MachinePrecision]), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision], 1e+300], N[(N[(x * N[(x * N[(x * N[(x * 4.16438922228 + 78.6994924154), $MachinePrecision] + 137.519416416), $MachinePrecision] + y), $MachinePrecision] + z), $MachinePrecision] / N[(N[(x * N[(x * N[(x * N[(x + 43.3400022514), $MachinePrecision] + 263.505074721), $MachinePrecision] + 313.399215894), $MachinePrecision] + 47.066876606), $MachinePrecision] / N[(x + -2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(N[(N[(N[(y / x), $MachinePrecision] * N[(1.0 / x), $MachinePrecision]), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{\left(x - 2\right) \cdot \left(x \cdot \left(x \cdot \left(x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right) + 137.519416416\right) + y\right) + z\right)}{x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606} \leq 10^{+300}:\\
\;\;\;\;\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)}{\frac{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)}{x + -2}}\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{y}{x} \cdot \frac{1}{x} - 101.7851458539211}{x}\right)\\
\end{array}
\end{array}
if (/.f64 (*.f64 (-.f64 x #s(literal 2 binary64)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x #s(literal 104109730557/25000000000 binary64)) #s(literal 393497462077/5000000000 binary64)) x) #s(literal 4297481763/31250000 binary64)) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x #s(literal 216700011257/5000000000 binary64)) x) #s(literal 263505074721/1000000000 binary64)) x) #s(literal 156699607947/500000000 binary64)) x) #s(literal 23533438303/500000000 binary64))) < 1.0000000000000001e300Initial program 94.8%
associate-/l*98.9%
sub-neg98.9%
metadata-eval98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
Simplified98.9%
Applied egg-rr98.9%
if 1.0000000000000001e300 < (/.f64 (*.f64 (-.f64 x #s(literal 2 binary64)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x #s(literal 104109730557/25000000000 binary64)) #s(literal 393497462077/5000000000 binary64)) x) #s(literal 4297481763/31250000 binary64)) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x #s(literal 216700011257/5000000000 binary64)) x) #s(literal 263505074721/1000000000 binary64)) x) #s(literal 156699607947/500000000 binary64)) x) #s(literal 23533438303/500000000 binary64))) Initial program 0.3%
associate-/l*3.4%
sub-neg3.4%
metadata-eval3.4%
fma-define3.4%
fma-define3.4%
fma-define3.4%
fma-define3.4%
fma-define3.4%
fma-define3.4%
fma-define3.4%
Simplified3.4%
Taylor expanded in x around -inf 99.0%
mul-1-neg99.0%
unsub-neg99.0%
mul-1-neg99.0%
unsub-neg99.0%
mul-1-neg99.0%
unsub-neg99.0%
mul-1-neg99.0%
unsub-neg99.0%
Simplified99.0%
Taylor expanded in y around inf 99.0%
associate-*r/99.0%
mul-1-neg99.0%
Simplified99.0%
div-inv99.0%
Applied egg-rr99.0%
Taylor expanded in y around inf 99.0%
Final simplification99.0%
(FPCore (x y z)
:precision binary64
(if (<=
(/
(*
(- x 2.0)
(+
(*
x
(+
(* x (+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))
y))
z))
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))
1e+300)
(*
(+ x -2.0)
(/
(fma
(fma (fma (fma x 4.16438922228 78.6994924154) x 137.519416416) x y)
x
z)
(fma
(fma (fma (+ x 43.3400022514) x 263.505074721) x 313.399215894)
x
47.066876606)))
(*
(+ x -2.0)
(+ 4.16438922228 (/ (- (* (/ y x) (/ 1.0 x)) 101.7851458539211) x)))))
double code(double x, double y, double z) {
double tmp;
if ((((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) <= 1e+300) {
tmp = (x + -2.0) * (fma(fma(fma(fma(x, 4.16438922228, 78.6994924154), x, 137.519416416), x, y), x, z) / fma(fma(fma((x + 43.3400022514), x, 263.505074721), x, 313.399215894), x, 47.066876606));
} else {
tmp = (x + -2.0) * (4.16438922228 + ((((y / x) * (1.0 / x)) - 101.7851458539211) / x));
}
return tmp;
}
function code(x, y, z) tmp = 0.0 if (Float64(Float64(Float64(x - 2.0) * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) <= 1e+300) tmp = Float64(Float64(x + -2.0) * Float64(fma(fma(fma(fma(x, 4.16438922228, 78.6994924154), x, 137.519416416), x, y), x, z) / fma(fma(fma(Float64(x + 43.3400022514), x, 263.505074721), x, 313.399215894), x, 47.066876606))); else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(y / x) * Float64(1.0 / x)) - 101.7851458539211) / x))); end return tmp end
code[x_, y_, z_] := If[LessEqual[N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(x * N[(N[(x * N[(N[(x * N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision]), $MachinePrecision] + 137.519416416), $MachinePrecision]), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision], 1e+300], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(N[(N[(N[(x * 4.16438922228 + 78.6994924154), $MachinePrecision] * x + 137.519416416), $MachinePrecision] * x + y), $MachinePrecision] * x + z), $MachinePrecision] / N[(N[(N[(N[(x + 43.3400022514), $MachinePrecision] * x + 263.505074721), $MachinePrecision] * x + 313.399215894), $MachinePrecision] * x + 47.066876606), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(N[(N[(N[(y / x), $MachinePrecision] * N[(1.0 / x), $MachinePrecision]), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{\left(x - 2\right) \cdot \left(x \cdot \left(x \cdot \left(x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right) + 137.519416416\right) + y\right) + z\right)}{x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606} \leq 10^{+300}:\\
\;\;\;\;\left(x + -2\right) \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x + 43.3400022514, x, 263.505074721\right), x, 313.399215894\right), x, 47.066876606\right)}\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{y}{x} \cdot \frac{1}{x} - 101.7851458539211}{x}\right)\\
\end{array}
\end{array}
if (/.f64 (*.f64 (-.f64 x #s(literal 2 binary64)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x #s(literal 104109730557/25000000000 binary64)) #s(literal 393497462077/5000000000 binary64)) x) #s(literal 4297481763/31250000 binary64)) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x #s(literal 216700011257/5000000000 binary64)) x) #s(literal 263505074721/1000000000 binary64)) x) #s(literal 156699607947/500000000 binary64)) x) #s(literal 23533438303/500000000 binary64))) < 1.0000000000000001e300Initial program 94.8%
associate-/l*98.9%
sub-neg98.9%
metadata-eval98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
fma-define98.9%
Simplified98.9%
if 1.0000000000000001e300 < (/.f64 (*.f64 (-.f64 x #s(literal 2 binary64)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x #s(literal 104109730557/25000000000 binary64)) #s(literal 393497462077/5000000000 binary64)) x) #s(literal 4297481763/31250000 binary64)) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x #s(literal 216700011257/5000000000 binary64)) x) #s(literal 263505074721/1000000000 binary64)) x) #s(literal 156699607947/500000000 binary64)) x) #s(literal 23533438303/500000000 binary64))) Initial program 0.3%
associate-/l*3.4%
sub-neg3.4%
metadata-eval3.4%
fma-define3.4%
fma-define3.4%
fma-define3.4%
fma-define3.4%
fma-define3.4%
fma-define3.4%
fma-define3.4%
Simplified3.4%
Taylor expanded in x around -inf 99.0%
mul-1-neg99.0%
unsub-neg99.0%
mul-1-neg99.0%
unsub-neg99.0%
mul-1-neg99.0%
unsub-neg99.0%
mul-1-neg99.0%
unsub-neg99.0%
Simplified99.0%
Taylor expanded in y around inf 99.0%
associate-*r/99.0%
mul-1-neg99.0%
Simplified99.0%
div-inv99.0%
Applied egg-rr99.0%
Taylor expanded in y around inf 99.0%
Final simplification99.0%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(/
(*
(- x 2.0)
(+
(*
x
(+
(*
x
(+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))
y))
z))
(+
(*
x
(+
(* x (+ (* x (+ x 43.3400022514)) 263.505074721))
313.399215894))
47.066876606))))
(if (or (<= t_0 (- INFINITY)) (not (<= t_0 1e+300)))
(*
(+ x -2.0)
(+ 4.16438922228 (/ (- (* (/ y x) (/ 1.0 x)) 101.7851458539211) x)))
t_0)))
double code(double x, double y, double z) {
double t_0 = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606);
double tmp;
if ((t_0 <= -((double) INFINITY)) || !(t_0 <= 1e+300)) {
tmp = (x + -2.0) * (4.16438922228 + ((((y / x) * (1.0 / x)) - 101.7851458539211) / x));
} else {
tmp = t_0;
}
return tmp;
}
public static double code(double x, double y, double z) {
double t_0 = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606);
double tmp;
if ((t_0 <= -Double.POSITIVE_INFINITY) || !(t_0 <= 1e+300)) {
tmp = (x + -2.0) * (4.16438922228 + ((((y / x) * (1.0 / x)) - 101.7851458539211) / x));
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) tmp = 0 if (t_0 <= -math.inf) or not (t_0 <= 1e+300): tmp = (x + -2.0) * (4.16438922228 + ((((y / x) * (1.0 / x)) - 101.7851458539211) / x)) else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(Float64(Float64(x - 2.0) * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) tmp = 0.0 if ((t_0 <= Float64(-Inf)) || !(t_0 <= 1e+300)) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(y / x) * Float64(1.0 / x)) - 101.7851458539211) / x))); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606); tmp = 0.0; if ((t_0 <= -Inf) || ~((t_0 <= 1e+300))) tmp = (x + -2.0) * (4.16438922228 + ((((y / x) * (1.0 / x)) - 101.7851458539211) / x)); else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(x * N[(N[(x * N[(N[(x * N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision]), $MachinePrecision] + 137.519416416), $MachinePrecision]), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[t$95$0, (-Infinity)], N[Not[LessEqual[t$95$0, 1e+300]], $MachinePrecision]], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(N[(N[(N[(y / x), $MachinePrecision] * N[(1.0 / x), $MachinePrecision]), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$0]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{\left(x - 2\right) \cdot \left(x \cdot \left(x \cdot \left(x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right) + 137.519416416\right) + y\right) + z\right)}{x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606}\\
\mathbf{if}\;t\_0 \leq -\infty \lor \neg \left(t\_0 \leq 10^{+300}\right):\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{y}{x} \cdot \frac{1}{x} - 101.7851458539211}{x}\right)\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if (/.f64 (*.f64 (-.f64 x #s(literal 2 binary64)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x #s(literal 104109730557/25000000000 binary64)) #s(literal 393497462077/5000000000 binary64)) x) #s(literal 4297481763/31250000 binary64)) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x #s(literal 216700011257/5000000000 binary64)) x) #s(literal 263505074721/1000000000 binary64)) x) #s(literal 156699607947/500000000 binary64)) x) #s(literal 23533438303/500000000 binary64))) < -inf.0 or 1.0000000000000001e300 < (/.f64 (*.f64 (-.f64 x #s(literal 2 binary64)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x #s(literal 104109730557/25000000000 binary64)) #s(literal 393497462077/5000000000 binary64)) x) #s(literal 4297481763/31250000 binary64)) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x #s(literal 216700011257/5000000000 binary64)) x) #s(literal 263505074721/1000000000 binary64)) x) #s(literal 156699607947/500000000 binary64)) x) #s(literal 23533438303/500000000 binary64))) Initial program 0.6%
associate-/l*8.0%
sub-neg8.0%
metadata-eval8.0%
fma-define8.0%
fma-define8.0%
fma-define8.0%
fma-define8.0%
fma-define8.0%
fma-define8.0%
fma-define8.0%
Simplified8.0%
Taylor expanded in x around -inf 97.6%
mul-1-neg97.6%
unsub-neg97.6%
mul-1-neg97.6%
unsub-neg97.6%
mul-1-neg97.6%
unsub-neg97.6%
mul-1-neg97.6%
unsub-neg97.6%
Simplified97.6%
Taylor expanded in y around inf 97.6%
associate-*r/97.6%
mul-1-neg97.6%
Simplified97.6%
div-inv97.6%
Applied egg-rr97.6%
Taylor expanded in y around inf 97.6%
if -inf.0 < (/.f64 (*.f64 (-.f64 x #s(literal 2 binary64)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x #s(literal 104109730557/25000000000 binary64)) #s(literal 393497462077/5000000000 binary64)) x) #s(literal 4297481763/31250000 binary64)) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x #s(literal 216700011257/5000000000 binary64)) x) #s(literal 263505074721/1000000000 binary64)) x) #s(literal 156699607947/500000000 binary64)) x) #s(literal 23533438303/500000000 binary64))) < 1.0000000000000001e300Initial program 99.5%
Final simplification98.6%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))
(t_1
(*
x
(+
(* x (+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))
y)))
(t_2 (/ (* (- x 2.0) (+ t_1 z)) t_0)))
(if (<= t_2 (- INFINITY))
(* (+ x -2.0) (* z (+ (/ 1.0 t_0) (/ t_1 (* z t_0)))))
(if (<= t_2 1e+300)
t_2
(*
(+ x -2.0)
(+
4.16438922228
(/ (- (* (/ y x) (/ 1.0 x)) 101.7851458539211) x)))))))
double code(double x, double y, double z) {
double t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606;
double t_1 = x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y);
double t_2 = ((x - 2.0) * (t_1 + z)) / t_0;
double tmp;
if (t_2 <= -((double) INFINITY)) {
tmp = (x + -2.0) * (z * ((1.0 / t_0) + (t_1 / (z * t_0))));
} else if (t_2 <= 1e+300) {
tmp = t_2;
} else {
tmp = (x + -2.0) * (4.16438922228 + ((((y / x) * (1.0 / x)) - 101.7851458539211) / x));
}
return tmp;
}
public static double code(double x, double y, double z) {
double t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606;
double t_1 = x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y);
double t_2 = ((x - 2.0) * (t_1 + z)) / t_0;
double tmp;
if (t_2 <= -Double.POSITIVE_INFINITY) {
tmp = (x + -2.0) * (z * ((1.0 / t_0) + (t_1 / (z * t_0))));
} else if (t_2 <= 1e+300) {
tmp = t_2;
} else {
tmp = (x + -2.0) * (4.16438922228 + ((((y / x) * (1.0 / x)) - 101.7851458539211) / x));
}
return tmp;
}
def code(x, y, z): t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606 t_1 = x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y) t_2 = ((x - 2.0) * (t_1 + z)) / t_0 tmp = 0 if t_2 <= -math.inf: tmp = (x + -2.0) * (z * ((1.0 / t_0) + (t_1 / (z * t_0)))) elif t_2 <= 1e+300: tmp = t_2 else: tmp = (x + -2.0) * (4.16438922228 + ((((y / x) * (1.0 / x)) - 101.7851458539211) / x)) return tmp
function code(x, y, z) t_0 = Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) t_1 = Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) t_2 = Float64(Float64(Float64(x - 2.0) * Float64(t_1 + z)) / t_0) tmp = 0.0 if (t_2 <= Float64(-Inf)) tmp = Float64(Float64(x + -2.0) * Float64(z * Float64(Float64(1.0 / t_0) + Float64(t_1 / Float64(z * t_0))))); elseif (t_2 <= 1e+300) tmp = t_2; else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(y / x) * Float64(1.0 / x)) - 101.7851458539211) / x))); end return tmp end
function tmp_2 = code(x, y, z) t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606; t_1 = x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y); t_2 = ((x - 2.0) * (t_1 + z)) / t_0; tmp = 0.0; if (t_2 <= -Inf) tmp = (x + -2.0) * (z * ((1.0 / t_0) + (t_1 / (z * t_0)))); elseif (t_2 <= 1e+300) tmp = t_2; else tmp = (x + -2.0) * (4.16438922228 + ((((y / x) * (1.0 / x)) - 101.7851458539211) / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]}, Block[{t$95$1 = N[(x * N[(N[(x * N[(N[(x * N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision]), $MachinePrecision] + 137.519416416), $MachinePrecision]), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(x - 2.0), $MachinePrecision] * N[(t$95$1 + z), $MachinePrecision]), $MachinePrecision] / t$95$0), $MachinePrecision]}, If[LessEqual[t$95$2, (-Infinity)], N[(N[(x + -2.0), $MachinePrecision] * N[(z * N[(N[(1.0 / t$95$0), $MachinePrecision] + N[(t$95$1 / N[(z * t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, 1e+300], t$95$2, N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(N[(N[(N[(y / x), $MachinePrecision] * N[(1.0 / x), $MachinePrecision]), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606\\
t_1 := x \cdot \left(x \cdot \left(x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right) + 137.519416416\right) + y\right)\\
t_2 := \frac{\left(x - 2\right) \cdot \left(t\_1 + z\right)}{t\_0}\\
\mathbf{if}\;t\_2 \leq -\infty:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot \left(\frac{1}{t\_0} + \frac{t\_1}{z \cdot t\_0}\right)\right)\\
\mathbf{elif}\;t\_2 \leq 10^{+300}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{y}{x} \cdot \frac{1}{x} - 101.7851458539211}{x}\right)\\
\end{array}
\end{array}
if (/.f64 (*.f64 (-.f64 x #s(literal 2 binary64)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x #s(literal 104109730557/25000000000 binary64)) #s(literal 393497462077/5000000000 binary64)) x) #s(literal 4297481763/31250000 binary64)) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x #s(literal 216700011257/5000000000 binary64)) x) #s(literal 263505074721/1000000000 binary64)) x) #s(literal 156699607947/500000000 binary64)) x) #s(literal 23533438303/500000000 binary64))) < -inf.0Initial program 6.6%
associate-/l*86.5%
sub-neg86.5%
metadata-eval86.5%
fma-define86.5%
fma-define86.5%
fma-define86.5%
fma-define86.5%
fma-define86.5%
fma-define86.5%
fma-define86.5%
Simplified86.5%
Taylor expanded in z around inf 86.3%
if -inf.0 < (/.f64 (*.f64 (-.f64 x #s(literal 2 binary64)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x #s(literal 104109730557/25000000000 binary64)) #s(literal 393497462077/5000000000 binary64)) x) #s(literal 4297481763/31250000 binary64)) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x #s(literal 216700011257/5000000000 binary64)) x) #s(literal 263505074721/1000000000 binary64)) x) #s(literal 156699607947/500000000 binary64)) x) #s(literal 23533438303/500000000 binary64))) < 1.0000000000000001e300Initial program 99.5%
if 1.0000000000000001e300 < (/.f64 (*.f64 (-.f64 x #s(literal 2 binary64)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x #s(literal 104109730557/25000000000 binary64)) #s(literal 393497462077/5000000000 binary64)) x) #s(literal 4297481763/31250000 binary64)) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x #s(literal 216700011257/5000000000 binary64)) x) #s(literal 263505074721/1000000000 binary64)) x) #s(literal 156699607947/500000000 binary64)) x) #s(literal 23533438303/500000000 binary64))) Initial program 0.3%
associate-/l*3.4%
sub-neg3.4%
metadata-eval3.4%
fma-define3.4%
fma-define3.4%
fma-define3.4%
fma-define3.4%
fma-define3.4%
fma-define3.4%
fma-define3.4%
Simplified3.4%
Taylor expanded in x around -inf 99.0%
mul-1-neg99.0%
unsub-neg99.0%
mul-1-neg99.0%
unsub-neg99.0%
mul-1-neg99.0%
unsub-neg99.0%
mul-1-neg99.0%
unsub-neg99.0%
Simplified99.0%
Taylor expanded in y around inf 99.0%
associate-*r/99.0%
mul-1-neg99.0%
Simplified99.0%
div-inv99.0%
Applied egg-rr99.0%
Taylor expanded in y around inf 99.0%
Final simplification98.9%
(FPCore (x y z)
:precision binary64
(if (<= x -14500000000000.0)
(*
(+ x -2.0)
(+ 4.16438922228 (/ (- (* (/ y x) (/ 1.0 x)) 101.7851458539211) x)))
(if (<= x 4.3e+15)
(/
(* (- x 2.0) (+ z (* x (+ y (* x 137.519416416)))))
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))
(*
(+ x -2.0)
(-
4.16438922228
(/
(+
101.7851458539211
(/ (- (/ (- 124074.40615218398 y) x) 3451.550173699799) x))
x))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -14500000000000.0) {
tmp = (x + -2.0) * (4.16438922228 + ((((y / x) * (1.0 / x)) - 101.7851458539211) / x));
} else if (x <= 4.3e+15) {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606);
} else {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + ((((124074.40615218398 - y) / x) - 3451.550173699799) / x)) / x));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-14500000000000.0d0)) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + ((((y / x) * (1.0d0 / x)) - 101.7851458539211d0) / x))
else if (x <= 4.3d+15) then
tmp = ((x - 2.0d0) * (z + (x * (y + (x * 137.519416416d0))))) / ((x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0)
else
tmp = (x + (-2.0d0)) * (4.16438922228d0 - ((101.7851458539211d0 + ((((124074.40615218398d0 - y) / x) - 3451.550173699799d0) / x)) / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -14500000000000.0) {
tmp = (x + -2.0) * (4.16438922228 + ((((y / x) * (1.0 / x)) - 101.7851458539211) / x));
} else if (x <= 4.3e+15) {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606);
} else {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + ((((124074.40615218398 - y) / x) - 3451.550173699799) / x)) / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -14500000000000.0: tmp = (x + -2.0) * (4.16438922228 + ((((y / x) * (1.0 / x)) - 101.7851458539211) / x)) elif x <= 4.3e+15: tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) else: tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + ((((124074.40615218398 - y) / x) - 3451.550173699799) / x)) / x)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -14500000000000.0) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(y / x) * Float64(1.0 / x)) - 101.7851458539211) / x))); elseif (x <= 4.3e+15) 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)); else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 - Float64(Float64(101.7851458539211 + Float64(Float64(Float64(Float64(124074.40615218398 - y) / x) - 3451.550173699799) / x)) / x))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -14500000000000.0) tmp = (x + -2.0) * (4.16438922228 + ((((y / x) * (1.0 / x)) - 101.7851458539211) / x)); elseif (x <= 4.3e+15) tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606); else tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + ((((124074.40615218398 - y) / x) - 3451.550173699799) / x)) / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -14500000000000.0], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(N[(N[(N[(y / x), $MachinePrecision] * N[(1.0 / x), $MachinePrecision]), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 4.3e+15], 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], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 - N[(N[(101.7851458539211 + N[(N[(N[(N[(124074.40615218398 - y), $MachinePrecision] / x), $MachinePrecision] - 3451.550173699799), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -14500000000000:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{y}{x} \cdot \frac{1}{x} - 101.7851458539211}{x}\right)\\
\mathbf{elif}\;x \leq 4.3 \cdot 10^{+15}:\\
\;\;\;\;\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}\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 + \frac{\frac{124074.40615218398 - y}{x} - 3451.550173699799}{x}}{x}\right)\\
\end{array}
\end{array}
if x < -1.45e13Initial program 15.6%
associate-/l*22.3%
sub-neg22.3%
metadata-eval22.3%
fma-define22.3%
fma-define22.3%
fma-define22.3%
fma-define22.3%
fma-define22.3%
fma-define22.3%
fma-define22.3%
Simplified22.3%
Taylor expanded in x around -inf 93.9%
mul-1-neg93.9%
unsub-neg93.9%
mul-1-neg93.9%
unsub-neg93.9%
mul-1-neg93.9%
unsub-neg93.9%
mul-1-neg93.9%
unsub-neg93.9%
Simplified93.9%
Taylor expanded in y around inf 93.9%
associate-*r/93.9%
mul-1-neg93.9%
Simplified93.9%
div-inv93.9%
Applied egg-rr93.9%
Taylor expanded in y around inf 93.9%
if -1.45e13 < x < 4.3e15Initial program 98.9%
Taylor expanded in x around 0 98.0%
*-commutative98.0%
Simplified98.0%
if 4.3e15 < x Initial program 10.1%
associate-/l*15.4%
sub-neg15.4%
metadata-eval15.4%
fma-define15.4%
fma-define15.4%
fma-define15.4%
fma-define15.4%
fma-define15.4%
fma-define15.4%
fma-define15.4%
Simplified15.4%
Taylor expanded in x around -inf 97.7%
mul-1-neg97.7%
unsub-neg97.7%
mul-1-neg97.7%
unsub-neg97.7%
mul-1-neg97.7%
unsub-neg97.7%
mul-1-neg97.7%
unsub-neg97.7%
Simplified97.7%
Final simplification96.8%
(FPCore (x y z)
:precision binary64
(if (<= x -1020000000000.0)
(*
(+ x -2.0)
(+ 4.16438922228 (/ (- (* (/ y x) (/ 1.0 x)) 101.7851458539211) x)))
(if (<= x 52.0)
(/
(*
(- x 2.0)
(+ z (* x (+ y (* x (+ 137.519416416 (* x 78.6994924154)))))))
(+ 47.066876606 (* x (+ 313.399215894 (* x 263.505074721)))))
(*
(+ x -2.0)
(-
4.16438922228
(/
(+
101.7851458539211
(/ (- (/ (- 124074.40615218398 y) x) 3451.550173699799) x))
x))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -1020000000000.0) {
tmp = (x + -2.0) * (4.16438922228 + ((((y / x) * (1.0 / x)) - 101.7851458539211) / x));
} else if (x <= 52.0) {
tmp = ((x - 2.0) * (z + (x * (y + (x * (137.519416416 + (x * 78.6994924154))))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))));
} else {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + ((((124074.40615218398 - y) / x) - 3451.550173699799) / x)) / x));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-1020000000000.0d0)) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + ((((y / x) * (1.0d0 / x)) - 101.7851458539211d0) / x))
else if (x <= 52.0d0) then
tmp = ((x - 2.0d0) * (z + (x * (y + (x * (137.519416416d0 + (x * 78.6994924154d0))))))) / (47.066876606d0 + (x * (313.399215894d0 + (x * 263.505074721d0))))
else
tmp = (x + (-2.0d0)) * (4.16438922228d0 - ((101.7851458539211d0 + ((((124074.40615218398d0 - y) / x) - 3451.550173699799d0) / x)) / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -1020000000000.0) {
tmp = (x + -2.0) * (4.16438922228 + ((((y / x) * (1.0 / x)) - 101.7851458539211) / x));
} else if (x <= 52.0) {
tmp = ((x - 2.0) * (z + (x * (y + (x * (137.519416416 + (x * 78.6994924154))))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))));
} else {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + ((((124074.40615218398 - y) / x) - 3451.550173699799) / x)) / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -1020000000000.0: tmp = (x + -2.0) * (4.16438922228 + ((((y / x) * (1.0 / x)) - 101.7851458539211) / x)) elif x <= 52.0: tmp = ((x - 2.0) * (z + (x * (y + (x * (137.519416416 + (x * 78.6994924154))))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721)))) else: tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + ((((124074.40615218398 - y) / x) - 3451.550173699799) / x)) / x)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -1020000000000.0) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(y / x) * Float64(1.0 / x)) - 101.7851458539211) / x))); elseif (x <= 52.0) tmp = Float64(Float64(Float64(x - 2.0) * Float64(z + Float64(x * Float64(y + Float64(x * Float64(137.519416416 + Float64(x * 78.6994924154))))))) / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * 263.505074721))))); else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 - Float64(Float64(101.7851458539211 + Float64(Float64(Float64(Float64(124074.40615218398 - y) / x) - 3451.550173699799) / x)) / x))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -1020000000000.0) tmp = (x + -2.0) * (4.16438922228 + ((((y / x) * (1.0 / x)) - 101.7851458539211) / x)); elseif (x <= 52.0) tmp = ((x - 2.0) * (z + (x * (y + (x * (137.519416416 + (x * 78.6994924154))))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721)))); else tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + ((((124074.40615218398 - y) / x) - 3451.550173699799) / x)) / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -1020000000000.0], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(N[(N[(N[(y / x), $MachinePrecision] * N[(1.0 / x), $MachinePrecision]), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 52.0], N[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + N[(x * N[(y + N[(x * N[(137.519416416 + N[(x * 78.6994924154), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * 263.505074721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 - N[(N[(101.7851458539211 + N[(N[(N[(N[(124074.40615218398 - y), $MachinePrecision] / x), $MachinePrecision] - 3451.550173699799), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1020000000000:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{y}{x} \cdot \frac{1}{x} - 101.7851458539211}{x}\right)\\
\mathbf{elif}\;x \leq 52:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot \left(y + x \cdot \left(137.519416416 + x \cdot 78.6994924154\right)\right)\right)}{47.066876606 + x \cdot \left(313.399215894 + x \cdot 263.505074721\right)}\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 + \frac{\frac{124074.40615218398 - y}{x} - 3451.550173699799}{x}}{x}\right)\\
\end{array}
\end{array}
if x < -1.02e12Initial program 15.6%
associate-/l*22.3%
sub-neg22.3%
metadata-eval22.3%
fma-define22.3%
fma-define22.3%
fma-define22.3%
fma-define22.3%
fma-define22.3%
fma-define22.3%
fma-define22.3%
Simplified22.3%
Taylor expanded in x around -inf 93.9%
mul-1-neg93.9%
unsub-neg93.9%
mul-1-neg93.9%
unsub-neg93.9%
mul-1-neg93.9%
unsub-neg93.9%
mul-1-neg93.9%
unsub-neg93.9%
Simplified93.9%
Taylor expanded in y around inf 93.9%
associate-*r/93.9%
mul-1-neg93.9%
Simplified93.9%
div-inv93.9%
Applied egg-rr93.9%
Taylor expanded in y around inf 93.9%
if -1.02e12 < x < 52Initial program 98.9%
Taylor expanded in x around 0 97.3%
*-commutative97.3%
Simplified97.3%
Taylor expanded in x around 0 97.3%
*-commutative97.3%
Simplified97.3%
if 52 < x Initial program 13.7%
associate-/l*18.8%
sub-neg18.8%
metadata-eval18.8%
fma-define18.8%
fma-define18.8%
fma-define18.8%
fma-define18.8%
fma-define18.8%
fma-define18.8%
fma-define18.8%
Simplified18.8%
Taylor expanded in x around -inf 94.8%
mul-1-neg94.8%
unsub-neg94.8%
mul-1-neg94.8%
unsub-neg94.8%
mul-1-neg94.8%
unsub-neg94.8%
mul-1-neg94.8%
unsub-neg94.8%
Simplified94.8%
Final simplification95.6%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(*
(+ x -2.0)
(+ 4.16438922228 (/ (- (/ (/ y x) x) 101.7851458539211) x)))))
(if (<= x -6.1e-30)
t_0
(if (<= x 1.05e-81)
(* z -0.0424927283095952)
(if (<= x 2.6e-36)
(*
y
(-
(* x -0.0424927283095952)
(* x (- (/ 110.1139242984811 (* x y)) (/ 4.16438922228 y)))))
(if (<= x 7.8e-17)
(/
(* (- x 2.0) z)
(+ 47.066876606 (* x (+ 313.399215894 (* x 263.505074721)))))
t_0))))))
double code(double x, double y, double z) {
double t_0 = (x + -2.0) * (4.16438922228 + ((((y / x) / x) - 101.7851458539211) / x));
double tmp;
if (x <= -6.1e-30) {
tmp = t_0;
} else if (x <= 1.05e-81) {
tmp = z * -0.0424927283095952;
} else if (x <= 2.6e-36) {
tmp = y * ((x * -0.0424927283095952) - (x * ((110.1139242984811 / (x * y)) - (4.16438922228 / y))));
} else if (x <= 7.8e-17) {
tmp = ((x - 2.0) * z) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))));
} 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 = (x + (-2.0d0)) * (4.16438922228d0 + ((((y / x) / x) - 101.7851458539211d0) / x))
if (x <= (-6.1d-30)) then
tmp = t_0
else if (x <= 1.05d-81) then
tmp = z * (-0.0424927283095952d0)
else if (x <= 2.6d-36) then
tmp = y * ((x * (-0.0424927283095952d0)) - (x * ((110.1139242984811d0 / (x * y)) - (4.16438922228d0 / y))))
else if (x <= 7.8d-17) then
tmp = ((x - 2.0d0) * z) / (47.066876606d0 + (x * (313.399215894d0 + (x * 263.505074721d0))))
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = (x + -2.0) * (4.16438922228 + ((((y / x) / x) - 101.7851458539211) / x));
double tmp;
if (x <= -6.1e-30) {
tmp = t_0;
} else if (x <= 1.05e-81) {
tmp = z * -0.0424927283095952;
} else if (x <= 2.6e-36) {
tmp = y * ((x * -0.0424927283095952) - (x * ((110.1139242984811 / (x * y)) - (4.16438922228 / y))));
} else if (x <= 7.8e-17) {
tmp = ((x - 2.0) * z) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))));
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = (x + -2.0) * (4.16438922228 + ((((y / x) / x) - 101.7851458539211) / x)) tmp = 0 if x <= -6.1e-30: tmp = t_0 elif x <= 1.05e-81: tmp = z * -0.0424927283095952 elif x <= 2.6e-36: tmp = y * ((x * -0.0424927283095952) - (x * ((110.1139242984811 / (x * y)) - (4.16438922228 / y)))) elif x <= 7.8e-17: tmp = ((x - 2.0) * z) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721)))) else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(y / x) / x) - 101.7851458539211) / x))) tmp = 0.0 if (x <= -6.1e-30) tmp = t_0; elseif (x <= 1.05e-81) tmp = Float64(z * -0.0424927283095952); elseif (x <= 2.6e-36) tmp = Float64(y * Float64(Float64(x * -0.0424927283095952) - Float64(x * Float64(Float64(110.1139242984811 / Float64(x * y)) - Float64(4.16438922228 / y))))); elseif (x <= 7.8e-17) tmp = Float64(Float64(Float64(x - 2.0) * z) / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * 263.505074721))))); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = (x + -2.0) * (4.16438922228 + ((((y / x) / x) - 101.7851458539211) / x)); tmp = 0.0; if (x <= -6.1e-30) tmp = t_0; elseif (x <= 1.05e-81) tmp = z * -0.0424927283095952; elseif (x <= 2.6e-36) tmp = y * ((x * -0.0424927283095952) - (x * ((110.1139242984811 / (x * y)) - (4.16438922228 / y)))); elseif (x <= 7.8e-17) tmp = ((x - 2.0) * z) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721)))); else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(N[(N[(N[(y / x), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -6.1e-30], t$95$0, If[LessEqual[x, 1.05e-81], N[(z * -0.0424927283095952), $MachinePrecision], If[LessEqual[x, 2.6e-36], N[(y * N[(N[(x * -0.0424927283095952), $MachinePrecision] - N[(x * N[(N[(110.1139242984811 / N[(x * y), $MachinePrecision]), $MachinePrecision] - N[(4.16438922228 / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 7.8e-17], N[(N[(N[(x - 2.0), $MachinePrecision] * z), $MachinePrecision] / N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * 263.505074721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$0]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{\frac{y}{x}}{x} - 101.7851458539211}{x}\right)\\
\mathbf{if}\;x \leq -6.1 \cdot 10^{-30}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 1.05 \cdot 10^{-81}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{elif}\;x \leq 2.6 \cdot 10^{-36}:\\
\;\;\;\;y \cdot \left(x \cdot -0.0424927283095952 - x \cdot \left(\frac{110.1139242984811}{x \cdot y} - \frac{4.16438922228}{y}\right)\right)\\
\mathbf{elif}\;x \leq 7.8 \cdot 10^{-17}:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot z}{47.066876606 + x \cdot \left(313.399215894 + x \cdot 263.505074721\right)}\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if x < -6.09999999999999981e-30 or 7.79999999999999979e-17 < x Initial program 18.5%
associate-/l*24.1%
sub-neg24.1%
metadata-eval24.1%
fma-define24.1%
fma-define24.1%
fma-define24.1%
fma-define24.1%
fma-define24.1%
fma-define24.1%
fma-define24.1%
Simplified24.1%
Taylor expanded in x around -inf 90.3%
mul-1-neg90.3%
unsub-neg90.3%
mul-1-neg90.3%
unsub-neg90.3%
mul-1-neg90.3%
unsub-neg90.3%
mul-1-neg90.3%
unsub-neg90.3%
Simplified90.3%
Taylor expanded in y around inf 90.3%
associate-*r/90.3%
mul-1-neg90.3%
Simplified90.3%
Taylor expanded in y around inf 90.3%
if -6.09999999999999981e-30 < x < 1.05e-81Initial program 98.8%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
Simplified99.7%
Taylor expanded in x around 0 79.6%
*-commutative79.6%
Simplified79.6%
if 1.05e-81 < x < 2.6e-36Initial program 99.4%
associate-/l*99.4%
sub-neg99.4%
metadata-eval99.4%
fma-define99.4%
fma-define99.4%
fma-define99.4%
fma-define99.4%
fma-define99.4%
fma-define99.4%
fma-define99.4%
Simplified99.4%
Taylor expanded in y around inf 87.6%
Taylor expanded in x around inf 87.6%
associate-*r/87.6%
metadata-eval87.6%
associate-*r/87.6%
metadata-eval87.6%
*-commutative87.6%
Simplified87.6%
Taylor expanded in x around 0 88.1%
*-commutative88.1%
Simplified88.1%
if 2.6e-36 < x < 7.79999999999999979e-17Initial program 99.6%
Taylor expanded in x around 0 99.6%
*-commutative99.6%
Simplified99.6%
Taylor expanded in z around inf 80.2%
Final simplification86.3%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(*
(+ x -2.0)
(+ 4.16438922228 (/ (- (/ (/ y x) x) 101.7851458539211) x)))))
(if (<= x -6.1e-30)
t_0
(if (<= x 1.45e-81)
(* z -0.0424927283095952)
(if (<= x 5.3e-36)
(-
(* x (* y (- (* 4.16438922228 (/ 1.0 y)) 0.0424927283095952)))
110.1139242984811)
(if (<= x 7.8e-17)
(/
(* (- x 2.0) z)
(+ 47.066876606 (* x (+ 313.399215894 (* x 263.505074721)))))
t_0))))))
double code(double x, double y, double z) {
double t_0 = (x + -2.0) * (4.16438922228 + ((((y / x) / x) - 101.7851458539211) / x));
double tmp;
if (x <= -6.1e-30) {
tmp = t_0;
} else if (x <= 1.45e-81) {
tmp = z * -0.0424927283095952;
} else if (x <= 5.3e-36) {
tmp = (x * (y * ((4.16438922228 * (1.0 / y)) - 0.0424927283095952))) - 110.1139242984811;
} else if (x <= 7.8e-17) {
tmp = ((x - 2.0) * z) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))));
} 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 = (x + (-2.0d0)) * (4.16438922228d0 + ((((y / x) / x) - 101.7851458539211d0) / x))
if (x <= (-6.1d-30)) then
tmp = t_0
else if (x <= 1.45d-81) then
tmp = z * (-0.0424927283095952d0)
else if (x <= 5.3d-36) then
tmp = (x * (y * ((4.16438922228d0 * (1.0d0 / y)) - 0.0424927283095952d0))) - 110.1139242984811d0
else if (x <= 7.8d-17) then
tmp = ((x - 2.0d0) * z) / (47.066876606d0 + (x * (313.399215894d0 + (x * 263.505074721d0))))
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = (x + -2.0) * (4.16438922228 + ((((y / x) / x) - 101.7851458539211) / x));
double tmp;
if (x <= -6.1e-30) {
tmp = t_0;
} else if (x <= 1.45e-81) {
tmp = z * -0.0424927283095952;
} else if (x <= 5.3e-36) {
tmp = (x * (y * ((4.16438922228 * (1.0 / y)) - 0.0424927283095952))) - 110.1139242984811;
} else if (x <= 7.8e-17) {
tmp = ((x - 2.0) * z) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))));
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = (x + -2.0) * (4.16438922228 + ((((y / x) / x) - 101.7851458539211) / x)) tmp = 0 if x <= -6.1e-30: tmp = t_0 elif x <= 1.45e-81: tmp = z * -0.0424927283095952 elif x <= 5.3e-36: tmp = (x * (y * ((4.16438922228 * (1.0 / y)) - 0.0424927283095952))) - 110.1139242984811 elif x <= 7.8e-17: tmp = ((x - 2.0) * z) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721)))) else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(y / x) / x) - 101.7851458539211) / x))) tmp = 0.0 if (x <= -6.1e-30) tmp = t_0; elseif (x <= 1.45e-81) tmp = Float64(z * -0.0424927283095952); elseif (x <= 5.3e-36) tmp = Float64(Float64(x * Float64(y * Float64(Float64(4.16438922228 * Float64(1.0 / y)) - 0.0424927283095952))) - 110.1139242984811); elseif (x <= 7.8e-17) tmp = Float64(Float64(Float64(x - 2.0) * z) / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * 263.505074721))))); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = (x + -2.0) * (4.16438922228 + ((((y / x) / x) - 101.7851458539211) / x)); tmp = 0.0; if (x <= -6.1e-30) tmp = t_0; elseif (x <= 1.45e-81) tmp = z * -0.0424927283095952; elseif (x <= 5.3e-36) tmp = (x * (y * ((4.16438922228 * (1.0 / y)) - 0.0424927283095952))) - 110.1139242984811; elseif (x <= 7.8e-17) tmp = ((x - 2.0) * z) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721)))); else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(N[(N[(N[(y / x), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -6.1e-30], t$95$0, If[LessEqual[x, 1.45e-81], N[(z * -0.0424927283095952), $MachinePrecision], If[LessEqual[x, 5.3e-36], N[(N[(x * N[(y * N[(N[(4.16438922228 * N[(1.0 / y), $MachinePrecision]), $MachinePrecision] - 0.0424927283095952), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - 110.1139242984811), $MachinePrecision], If[LessEqual[x, 7.8e-17], N[(N[(N[(x - 2.0), $MachinePrecision] * z), $MachinePrecision] / N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * 263.505074721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$0]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{\frac{y}{x}}{x} - 101.7851458539211}{x}\right)\\
\mathbf{if}\;x \leq -6.1 \cdot 10^{-30}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 1.45 \cdot 10^{-81}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{elif}\;x \leq 5.3 \cdot 10^{-36}:\\
\;\;\;\;x \cdot \left(y \cdot \left(4.16438922228 \cdot \frac{1}{y} - 0.0424927283095952\right)\right) - 110.1139242984811\\
\mathbf{elif}\;x \leq 7.8 \cdot 10^{-17}:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot z}{47.066876606 + x \cdot \left(313.399215894 + x \cdot 263.505074721\right)}\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if x < -6.09999999999999981e-30 or 7.79999999999999979e-17 < x Initial program 18.5%
associate-/l*24.1%
sub-neg24.1%
metadata-eval24.1%
fma-define24.1%
fma-define24.1%
fma-define24.1%
fma-define24.1%
fma-define24.1%
fma-define24.1%
fma-define24.1%
Simplified24.1%
Taylor expanded in x around -inf 90.3%
mul-1-neg90.3%
unsub-neg90.3%
mul-1-neg90.3%
unsub-neg90.3%
mul-1-neg90.3%
unsub-neg90.3%
mul-1-neg90.3%
unsub-neg90.3%
Simplified90.3%
Taylor expanded in y around inf 90.3%
associate-*r/90.3%
mul-1-neg90.3%
Simplified90.3%
Taylor expanded in y around inf 90.3%
if -6.09999999999999981e-30 < x < 1.44999999999999994e-81Initial program 98.8%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
Simplified99.7%
Taylor expanded in x around 0 79.6%
*-commutative79.6%
Simplified79.6%
if 1.44999999999999994e-81 < x < 5.2999999999999998e-36Initial program 99.4%
associate-/l*99.4%
sub-neg99.4%
metadata-eval99.4%
fma-define99.4%
fma-define99.4%
fma-define99.4%
fma-define99.4%
fma-define99.4%
fma-define99.4%
fma-define99.4%
Simplified99.4%
Taylor expanded in y around inf 87.6%
Taylor expanded in x around inf 87.6%
associate-*r/87.6%
metadata-eval87.6%
associate-*r/87.6%
metadata-eval87.6%
*-commutative87.6%
Simplified87.6%
Taylor expanded in x around 0 87.3%
if 5.2999999999999998e-36 < x < 7.79999999999999979e-17Initial program 99.6%
Taylor expanded in x around 0 99.6%
*-commutative99.6%
Simplified99.6%
Taylor expanded in z around inf 80.2%
Final simplification86.3%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(*
(+ x -2.0)
(+ 4.16438922228 (/ (- (/ (/ y x) x) 101.7851458539211) x)))))
(if (<= x -6.1e-30)
t_0
(if (<= x 3e-81)
(* z -0.0424927283095952)
(if (<= x 3.6e-36)
(-
(* x (* y (- (* 4.16438922228 (/ 1.0 y)) 0.0424927283095952)))
110.1139242984811)
(if (<= x 7.8e-17) (* z -0.0424927283095952) t_0))))))
double code(double x, double y, double z) {
double t_0 = (x + -2.0) * (4.16438922228 + ((((y / x) / x) - 101.7851458539211) / x));
double tmp;
if (x <= -6.1e-30) {
tmp = t_0;
} else if (x <= 3e-81) {
tmp = z * -0.0424927283095952;
} else if (x <= 3.6e-36) {
tmp = (x * (y * ((4.16438922228 * (1.0 / y)) - 0.0424927283095952))) - 110.1139242984811;
} else if (x <= 7.8e-17) {
tmp = z * -0.0424927283095952;
} 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 = (x + (-2.0d0)) * (4.16438922228d0 + ((((y / x) / x) - 101.7851458539211d0) / x))
if (x <= (-6.1d-30)) then
tmp = t_0
else if (x <= 3d-81) then
tmp = z * (-0.0424927283095952d0)
else if (x <= 3.6d-36) then
tmp = (x * (y * ((4.16438922228d0 * (1.0d0 / y)) - 0.0424927283095952d0))) - 110.1139242984811d0
else if (x <= 7.8d-17) then
tmp = z * (-0.0424927283095952d0)
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = (x + -2.0) * (4.16438922228 + ((((y / x) / x) - 101.7851458539211) / x));
double tmp;
if (x <= -6.1e-30) {
tmp = t_0;
} else if (x <= 3e-81) {
tmp = z * -0.0424927283095952;
} else if (x <= 3.6e-36) {
tmp = (x * (y * ((4.16438922228 * (1.0 / y)) - 0.0424927283095952))) - 110.1139242984811;
} else if (x <= 7.8e-17) {
tmp = z * -0.0424927283095952;
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = (x + -2.0) * (4.16438922228 + ((((y / x) / x) - 101.7851458539211) / x)) tmp = 0 if x <= -6.1e-30: tmp = t_0 elif x <= 3e-81: tmp = z * -0.0424927283095952 elif x <= 3.6e-36: tmp = (x * (y * ((4.16438922228 * (1.0 / y)) - 0.0424927283095952))) - 110.1139242984811 elif x <= 7.8e-17: tmp = z * -0.0424927283095952 else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(y / x) / x) - 101.7851458539211) / x))) tmp = 0.0 if (x <= -6.1e-30) tmp = t_0; elseif (x <= 3e-81) tmp = Float64(z * -0.0424927283095952); elseif (x <= 3.6e-36) tmp = Float64(Float64(x * Float64(y * Float64(Float64(4.16438922228 * Float64(1.0 / y)) - 0.0424927283095952))) - 110.1139242984811); elseif (x <= 7.8e-17) tmp = Float64(z * -0.0424927283095952); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = (x + -2.0) * (4.16438922228 + ((((y / x) / x) - 101.7851458539211) / x)); tmp = 0.0; if (x <= -6.1e-30) tmp = t_0; elseif (x <= 3e-81) tmp = z * -0.0424927283095952; elseif (x <= 3.6e-36) tmp = (x * (y * ((4.16438922228 * (1.0 / y)) - 0.0424927283095952))) - 110.1139242984811; elseif (x <= 7.8e-17) tmp = z * -0.0424927283095952; else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(N[(N[(N[(y / x), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -6.1e-30], t$95$0, If[LessEqual[x, 3e-81], N[(z * -0.0424927283095952), $MachinePrecision], If[LessEqual[x, 3.6e-36], N[(N[(x * N[(y * N[(N[(4.16438922228 * N[(1.0 / y), $MachinePrecision]), $MachinePrecision] - 0.0424927283095952), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - 110.1139242984811), $MachinePrecision], If[LessEqual[x, 7.8e-17], N[(z * -0.0424927283095952), $MachinePrecision], t$95$0]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{\frac{y}{x}}{x} - 101.7851458539211}{x}\right)\\
\mathbf{if}\;x \leq -6.1 \cdot 10^{-30}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 3 \cdot 10^{-81}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{elif}\;x \leq 3.6 \cdot 10^{-36}:\\
\;\;\;\;x \cdot \left(y \cdot \left(4.16438922228 \cdot \frac{1}{y} - 0.0424927283095952\right)\right) - 110.1139242984811\\
\mathbf{elif}\;x \leq 7.8 \cdot 10^{-17}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if x < -6.09999999999999981e-30 or 7.79999999999999979e-17 < x Initial program 18.5%
associate-/l*24.1%
sub-neg24.1%
metadata-eval24.1%
fma-define24.1%
fma-define24.1%
fma-define24.1%
fma-define24.1%
fma-define24.1%
fma-define24.1%
fma-define24.1%
Simplified24.1%
Taylor expanded in x around -inf 90.3%
mul-1-neg90.3%
unsub-neg90.3%
mul-1-neg90.3%
unsub-neg90.3%
mul-1-neg90.3%
unsub-neg90.3%
mul-1-neg90.3%
unsub-neg90.3%
Simplified90.3%
Taylor expanded in y around inf 90.3%
associate-*r/90.3%
mul-1-neg90.3%
Simplified90.3%
Taylor expanded in y around inf 90.3%
if -6.09999999999999981e-30 < x < 2.9999999999999999e-81 or 3.60000000000000032e-36 < x < 7.79999999999999979e-17Initial program 98.8%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
Simplified99.7%
Taylor expanded in x around 0 79.7%
*-commutative79.7%
Simplified79.7%
if 2.9999999999999999e-81 < x < 3.60000000000000032e-36Initial program 99.4%
associate-/l*99.4%
sub-neg99.4%
metadata-eval99.4%
fma-define99.4%
fma-define99.4%
fma-define99.4%
fma-define99.4%
fma-define99.4%
fma-define99.4%
fma-define99.4%
Simplified99.4%
Taylor expanded in y around inf 87.6%
Taylor expanded in x around inf 87.6%
associate-*r/87.6%
metadata-eval87.6%
associate-*r/87.6%
metadata-eval87.6%
*-commutative87.6%
Simplified87.6%
Taylor expanded in x around 0 87.3%
Final simplification86.3%
(FPCore (x y z)
:precision binary64
(if (<= x -6.1e-30)
(* x (- 4.16438922228 (/ 110.1139242984811 x)))
(if (<= x 2.85e-81)
(* z -0.0424927283095952)
(if (<= x 2.2e-36)
(-
(* x (* y (- (* 4.16438922228 (/ 1.0 y)) 0.0424927283095952)))
110.1139242984811)
(if (<= x 7.8e-17)
(* z -0.0424927283095952)
(*
(+ x -2.0)
(-
4.16438922228
(/ (+ 101.7851458539211 (/ -3451.550173699799 x)) x))))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -6.1e-30) {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
} else if (x <= 2.85e-81) {
tmp = z * -0.0424927283095952;
} else if (x <= 2.2e-36) {
tmp = (x * (y * ((4.16438922228 * (1.0 / y)) - 0.0424927283095952))) - 110.1139242984811;
} else if (x <= 7.8e-17) {
tmp = z * -0.0424927283095952;
} else {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-6.1d-30)) then
tmp = x * (4.16438922228d0 - (110.1139242984811d0 / x))
else if (x <= 2.85d-81) then
tmp = z * (-0.0424927283095952d0)
else if (x <= 2.2d-36) then
tmp = (x * (y * ((4.16438922228d0 * (1.0d0 / y)) - 0.0424927283095952d0))) - 110.1139242984811d0
else if (x <= 7.8d-17) then
tmp = z * (-0.0424927283095952d0)
else
tmp = (x + (-2.0d0)) * (4.16438922228d0 - ((101.7851458539211d0 + ((-3451.550173699799d0) / x)) / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -6.1e-30) {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
} else if (x <= 2.85e-81) {
tmp = z * -0.0424927283095952;
} else if (x <= 2.2e-36) {
tmp = (x * (y * ((4.16438922228 * (1.0 / y)) - 0.0424927283095952))) - 110.1139242984811;
} else if (x <= 7.8e-17) {
tmp = z * -0.0424927283095952;
} else {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -6.1e-30: tmp = x * (4.16438922228 - (110.1139242984811 / x)) elif x <= 2.85e-81: tmp = z * -0.0424927283095952 elif x <= 2.2e-36: tmp = (x * (y * ((4.16438922228 * (1.0 / y)) - 0.0424927283095952))) - 110.1139242984811 elif x <= 7.8e-17: tmp = z * -0.0424927283095952 else: tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -6.1e-30) tmp = Float64(x * Float64(4.16438922228 - Float64(110.1139242984811 / x))); elseif (x <= 2.85e-81) tmp = Float64(z * -0.0424927283095952); elseif (x <= 2.2e-36) tmp = Float64(Float64(x * Float64(y * Float64(Float64(4.16438922228 * Float64(1.0 / y)) - 0.0424927283095952))) - 110.1139242984811); elseif (x <= 7.8e-17) tmp = Float64(z * -0.0424927283095952); else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 - Float64(Float64(101.7851458539211 + Float64(-3451.550173699799 / x)) / x))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -6.1e-30) tmp = x * (4.16438922228 - (110.1139242984811 / x)); elseif (x <= 2.85e-81) tmp = z * -0.0424927283095952; elseif (x <= 2.2e-36) tmp = (x * (y * ((4.16438922228 * (1.0 / y)) - 0.0424927283095952))) - 110.1139242984811; elseif (x <= 7.8e-17) tmp = z * -0.0424927283095952; else tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -6.1e-30], N[(x * N[(4.16438922228 - N[(110.1139242984811 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.85e-81], N[(z * -0.0424927283095952), $MachinePrecision], If[LessEqual[x, 2.2e-36], N[(N[(x * N[(y * N[(N[(4.16438922228 * N[(1.0 / y), $MachinePrecision]), $MachinePrecision] - 0.0424927283095952), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - 110.1139242984811), $MachinePrecision], If[LessEqual[x, 7.8e-17], N[(z * -0.0424927283095952), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 - N[(N[(101.7851458539211 + N[(-3451.550173699799 / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -6.1 \cdot 10^{-30}:\\
\;\;\;\;x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)\\
\mathbf{elif}\;x \leq 2.85 \cdot 10^{-81}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{elif}\;x \leq 2.2 \cdot 10^{-36}:\\
\;\;\;\;x \cdot \left(y \cdot \left(4.16438922228 \cdot \frac{1}{y} - 0.0424927283095952\right)\right) - 110.1139242984811\\
\mathbf{elif}\;x \leq 7.8 \cdot 10^{-17}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 + \frac{-3451.550173699799}{x}}{x}\right)\\
\end{array}
\end{array}
if x < -6.09999999999999981e-30Initial program 21.0%
associate-/l*27.3%
sub-neg27.3%
metadata-eval27.3%
fma-define27.3%
fma-define27.3%
fma-define27.3%
fma-define27.3%
fma-define27.3%
fma-define27.3%
fma-define27.3%
Simplified27.3%
Taylor expanded in x around inf 78.4%
associate-*r/78.4%
metadata-eval78.4%
Simplified78.4%
if -6.09999999999999981e-30 < x < 2.8500000000000001e-81 or 2.1999999999999999e-36 < x < 7.79999999999999979e-17Initial program 98.8%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
Simplified99.7%
Taylor expanded in x around 0 79.7%
*-commutative79.7%
Simplified79.7%
if 2.8500000000000001e-81 < x < 2.1999999999999999e-36Initial program 99.4%
associate-/l*99.4%
sub-neg99.4%
metadata-eval99.4%
fma-define99.4%
fma-define99.4%
fma-define99.4%
fma-define99.4%
fma-define99.4%
fma-define99.4%
fma-define99.4%
Simplified99.4%
Taylor expanded in y around inf 87.6%
Taylor expanded in x around inf 87.6%
associate-*r/87.6%
metadata-eval87.6%
associate-*r/87.6%
metadata-eval87.6%
*-commutative87.6%
Simplified87.6%
Taylor expanded in x around 0 87.3%
if 7.79999999999999979e-17 < x Initial program 15.9%
associate-/l*20.9%
sub-neg20.9%
metadata-eval20.9%
fma-define20.9%
fma-define20.9%
fma-define20.9%
fma-define20.9%
fma-define20.9%
fma-define20.9%
fma-define20.9%
Simplified20.9%
Taylor expanded in x around -inf 86.6%
mul-1-neg86.6%
unsub-neg86.6%
sub-neg86.6%
associate-*r/86.6%
metadata-eval86.6%
distribute-neg-frac86.6%
metadata-eval86.6%
Simplified86.6%
(FPCore (x y z)
:precision binary64
(if (<= x -1.35)
(*
(+ x -2.0)
(+ 4.16438922228 (/ (- (* (/ y x) (/ 1.0 x)) 101.7851458539211) x)))
(if (<= x 45.0)
(/
(*
(- x 2.0)
(+ z (* x (+ y (* x (+ 137.519416416 (* x 78.6994924154)))))))
(+ 47.066876606 (* x 313.399215894)))
(*
(+ x -2.0)
(-
4.16438922228
(/
(+
101.7851458539211
(/ (- (/ (- 124074.40615218398 y) x) 3451.550173699799) x))
x))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -1.35) {
tmp = (x + -2.0) * (4.16438922228 + ((((y / x) * (1.0 / x)) - 101.7851458539211) / x));
} else if (x <= 45.0) {
tmp = ((x - 2.0) * (z + (x * (y + (x * (137.519416416 + (x * 78.6994924154))))))) / (47.066876606 + (x * 313.399215894));
} else {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + ((((124074.40615218398 - y) / x) - 3451.550173699799) / x)) / x));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-1.35d0)) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + ((((y / x) * (1.0d0 / x)) - 101.7851458539211d0) / x))
else if (x <= 45.0d0) then
tmp = ((x - 2.0d0) * (z + (x * (y + (x * (137.519416416d0 + (x * 78.6994924154d0))))))) / (47.066876606d0 + (x * 313.399215894d0))
else
tmp = (x + (-2.0d0)) * (4.16438922228d0 - ((101.7851458539211d0 + ((((124074.40615218398d0 - y) / x) - 3451.550173699799d0) / x)) / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -1.35) {
tmp = (x + -2.0) * (4.16438922228 + ((((y / x) * (1.0 / x)) - 101.7851458539211) / x));
} else if (x <= 45.0) {
tmp = ((x - 2.0) * (z + (x * (y + (x * (137.519416416 + (x * 78.6994924154))))))) / (47.066876606 + (x * 313.399215894));
} else {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + ((((124074.40615218398 - y) / x) - 3451.550173699799) / x)) / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -1.35: tmp = (x + -2.0) * (4.16438922228 + ((((y / x) * (1.0 / x)) - 101.7851458539211) / x)) elif x <= 45.0: tmp = ((x - 2.0) * (z + (x * (y + (x * (137.519416416 + (x * 78.6994924154))))))) / (47.066876606 + (x * 313.399215894)) else: tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + ((((124074.40615218398 - y) / x) - 3451.550173699799) / x)) / x)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -1.35) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(y / x) * Float64(1.0 / x)) - 101.7851458539211) / x))); elseif (x <= 45.0) tmp = Float64(Float64(Float64(x - 2.0) * Float64(z + Float64(x * Float64(y + Float64(x * Float64(137.519416416 + Float64(x * 78.6994924154))))))) / Float64(47.066876606 + Float64(x * 313.399215894))); else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 - Float64(Float64(101.7851458539211 + Float64(Float64(Float64(Float64(124074.40615218398 - y) / x) - 3451.550173699799) / x)) / x))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -1.35) tmp = (x + -2.0) * (4.16438922228 + ((((y / x) * (1.0 / x)) - 101.7851458539211) / x)); elseif (x <= 45.0) tmp = ((x - 2.0) * (z + (x * (y + (x * (137.519416416 + (x * 78.6994924154))))))) / (47.066876606 + (x * 313.399215894)); else tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + ((((124074.40615218398 - y) / x) - 3451.550173699799) / x)) / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -1.35], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(N[(N[(N[(y / x), $MachinePrecision] * N[(1.0 / x), $MachinePrecision]), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 45.0], N[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + N[(x * N[(y + N[(x * N[(137.519416416 + N[(x * 78.6994924154), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(47.066876606 + N[(x * 313.399215894), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 - N[(N[(101.7851458539211 + N[(N[(N[(N[(124074.40615218398 - y), $MachinePrecision] / x), $MachinePrecision] - 3451.550173699799), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.35:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{y}{x} \cdot \frac{1}{x} - 101.7851458539211}{x}\right)\\
\mathbf{elif}\;x \leq 45:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot \left(y + x \cdot \left(137.519416416 + x \cdot 78.6994924154\right)\right)\right)}{47.066876606 + x \cdot 313.399215894}\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 + \frac{\frac{124074.40615218398 - y}{x} - 3451.550173699799}{x}}{x}\right)\\
\end{array}
\end{array}
if x < -1.3500000000000001Initial program 17.9%
associate-/l*24.4%
sub-neg24.4%
metadata-eval24.4%
fma-define24.4%
fma-define24.4%
fma-define24.4%
fma-define24.4%
fma-define24.4%
fma-define24.4%
fma-define24.4%
Simplified24.4%
Taylor expanded in x around -inf 91.5%
mul-1-neg91.5%
unsub-neg91.5%
mul-1-neg91.5%
unsub-neg91.5%
mul-1-neg91.5%
unsub-neg91.5%
mul-1-neg91.5%
unsub-neg91.5%
Simplified91.5%
Taylor expanded in y around inf 91.5%
associate-*r/91.5%
mul-1-neg91.5%
Simplified91.5%
div-inv91.6%
Applied egg-rr91.6%
Taylor expanded in y around inf 91.6%
if -1.3500000000000001 < x < 45Initial program 98.9%
Taylor expanded in x around 0 98.9%
*-commutative98.9%
Simplified98.9%
Taylor expanded in x around 0 98.9%
*-commutative98.9%
Simplified98.9%
Taylor expanded in x around 0 98.9%
*-commutative98.9%
Simplified98.9%
if 45 < x Initial program 13.7%
associate-/l*18.8%
sub-neg18.8%
metadata-eval18.8%
fma-define18.8%
fma-define18.8%
fma-define18.8%
fma-define18.8%
fma-define18.8%
fma-define18.8%
fma-define18.8%
Simplified18.8%
Taylor expanded in x around -inf 94.8%
mul-1-neg94.8%
unsub-neg94.8%
mul-1-neg94.8%
unsub-neg94.8%
mul-1-neg94.8%
unsub-neg94.8%
mul-1-neg94.8%
unsub-neg94.8%
Simplified94.8%
Final simplification95.6%
(FPCore (x y z)
:precision binary64
(if (<= x -1020000000000.0)
(*
(+ x -2.0)
(+ 4.16438922228 (/ (- (* (/ y x) (/ 1.0 x)) 101.7851458539211) x)))
(if (<= x 42.0)
(/
(* (- x 2.0) (+ z (* x (+ y (* x 137.519416416)))))
(+ 47.066876606 (* x (+ 313.399215894 (* x 263.505074721)))))
(*
(+ x -2.0)
(-
4.16438922228
(/
(+
101.7851458539211
(/ (- (/ (- 124074.40615218398 y) x) 3451.550173699799) x))
x))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -1020000000000.0) {
tmp = (x + -2.0) * (4.16438922228 + ((((y / x) * (1.0 / x)) - 101.7851458539211) / x));
} else if (x <= 42.0) {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))));
} else {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + ((((124074.40615218398 - y) / x) - 3451.550173699799) / x)) / x));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-1020000000000.0d0)) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + ((((y / x) * (1.0d0 / x)) - 101.7851458539211d0) / x))
else if (x <= 42.0d0) then
tmp = ((x - 2.0d0) * (z + (x * (y + (x * 137.519416416d0))))) / (47.066876606d0 + (x * (313.399215894d0 + (x * 263.505074721d0))))
else
tmp = (x + (-2.0d0)) * (4.16438922228d0 - ((101.7851458539211d0 + ((((124074.40615218398d0 - y) / x) - 3451.550173699799d0) / x)) / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -1020000000000.0) {
tmp = (x + -2.0) * (4.16438922228 + ((((y / x) * (1.0 / x)) - 101.7851458539211) / x));
} else if (x <= 42.0) {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))));
} else {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + ((((124074.40615218398 - y) / x) - 3451.550173699799) / x)) / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -1020000000000.0: tmp = (x + -2.0) * (4.16438922228 + ((((y / x) * (1.0 / x)) - 101.7851458539211) / x)) elif x <= 42.0: tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721)))) else: tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + ((((124074.40615218398 - y) / x) - 3451.550173699799) / x)) / x)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -1020000000000.0) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(y / x) * Float64(1.0 / x)) - 101.7851458539211) / x))); elseif (x <= 42.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(x * 263.505074721))))); else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 - Float64(Float64(101.7851458539211 + Float64(Float64(Float64(Float64(124074.40615218398 - y) / x) - 3451.550173699799) / x)) / x))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -1020000000000.0) tmp = (x + -2.0) * (4.16438922228 + ((((y / x) * (1.0 / x)) - 101.7851458539211) / x)); elseif (x <= 42.0) tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721)))); else tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + ((((124074.40615218398 - y) / x) - 3451.550173699799) / x)) / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -1020000000000.0], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(N[(N[(N[(y / x), $MachinePrecision] * N[(1.0 / x), $MachinePrecision]), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 42.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[(x * 263.505074721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 - N[(N[(101.7851458539211 + N[(N[(N[(N[(124074.40615218398 - y), $MachinePrecision] / x), $MachinePrecision] - 3451.550173699799), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1020000000000:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{y}{x} \cdot \frac{1}{x} - 101.7851458539211}{x}\right)\\
\mathbf{elif}\;x \leq 42:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot \left(y + x \cdot 137.519416416\right)\right)}{47.066876606 + x \cdot \left(313.399215894 + x \cdot 263.505074721\right)}\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 + \frac{\frac{124074.40615218398 - y}{x} - 3451.550173699799}{x}}{x}\right)\\
\end{array}
\end{array}
if x < -1.02e12Initial program 15.6%
associate-/l*22.3%
sub-neg22.3%
metadata-eval22.3%
fma-define22.3%
fma-define22.3%
fma-define22.3%
fma-define22.3%
fma-define22.3%
fma-define22.3%
fma-define22.3%
Simplified22.3%
Taylor expanded in x around -inf 93.9%
mul-1-neg93.9%
unsub-neg93.9%
mul-1-neg93.9%
unsub-neg93.9%
mul-1-neg93.9%
unsub-neg93.9%
mul-1-neg93.9%
unsub-neg93.9%
Simplified93.9%
Taylor expanded in y around inf 93.9%
associate-*r/93.9%
mul-1-neg93.9%
Simplified93.9%
div-inv93.9%
Applied egg-rr93.9%
Taylor expanded in y around inf 93.9%
if -1.02e12 < x < 42Initial program 98.9%
Taylor expanded in x around 0 97.3%
*-commutative97.3%
Simplified97.3%
Taylor expanded in x around 0 97.2%
*-commutative98.8%
Simplified97.2%
if 42 < x Initial program 13.7%
associate-/l*18.8%
sub-neg18.8%
metadata-eval18.8%
fma-define18.8%
fma-define18.8%
fma-define18.8%
fma-define18.8%
fma-define18.8%
fma-define18.8%
fma-define18.8%
Simplified18.8%
Taylor expanded in x around -inf 94.8%
mul-1-neg94.8%
unsub-neg94.8%
mul-1-neg94.8%
unsub-neg94.8%
mul-1-neg94.8%
unsub-neg94.8%
mul-1-neg94.8%
unsub-neg94.8%
Simplified94.8%
Final simplification95.6%
(FPCore (x y z)
:precision binary64
(if (or (<= x -1.12e-13) (not (<= x 2.8)))
(* (+ x -2.0) (+ 4.16438922228 (/ (- (/ (/ y x) x) 101.7851458539211) x)))
(*
(+ x -2.0)
(+
(* z 0.0212463641547976)
(* x (- (* y 0.0212463641547976) (* z 0.14147091005106402)))))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -1.12e-13) || !(x <= 2.8)) {
tmp = (x + -2.0) * (4.16438922228 + ((((y / x) / x) - 101.7851458539211) / x));
} else {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402))));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((x <= (-1.12d-13)) .or. (.not. (x <= 2.8d0))) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + ((((y / x) / x) - 101.7851458539211d0) / x))
else
tmp = (x + (-2.0d0)) * ((z * 0.0212463641547976d0) + (x * ((y * 0.0212463641547976d0) - (z * 0.14147091005106402d0))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -1.12e-13) || !(x <= 2.8)) {
tmp = (x + -2.0) * (4.16438922228 + ((((y / x) / x) - 101.7851458539211) / x));
} else {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402))));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -1.12e-13) or not (x <= 2.8): tmp = (x + -2.0) * (4.16438922228 + ((((y / x) / x) - 101.7851458539211) / x)) else: tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402)))) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -1.12e-13) || !(x <= 2.8)) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(y / x) / x) - 101.7851458539211) / x))); else tmp = Float64(Float64(x + -2.0) * Float64(Float64(z * 0.0212463641547976) + Float64(x * Float64(Float64(y * 0.0212463641547976) - Float64(z * 0.14147091005106402))))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -1.12e-13) || ~((x <= 2.8))) tmp = (x + -2.0) * (4.16438922228 + ((((y / x) / x) - 101.7851458539211) / x)); else tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402)))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -1.12e-13], N[Not[LessEqual[x, 2.8]], $MachinePrecision]], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(N[(N[(N[(y / x), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z * 0.0212463641547976), $MachinePrecision] + N[(x * N[(N[(y * 0.0212463641547976), $MachinePrecision] - N[(z * 0.14147091005106402), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.12 \cdot 10^{-13} \lor \neg \left(x \leq 2.8\right):\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{\frac{y}{x}}{x} - 101.7851458539211}{x}\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976 + x \cdot \left(y \cdot 0.0212463641547976 - z \cdot 0.14147091005106402\right)\right)\\
\end{array}
\end{array}
if x < -1.12e-13 or 2.7999999999999998 < x Initial program 16.3%
associate-/l*22.1%
sub-neg22.1%
metadata-eval22.1%
fma-define22.1%
fma-define22.1%
fma-define22.1%
fma-define22.1%
fma-define22.1%
fma-define22.1%
fma-define22.1%
Simplified22.1%
Taylor expanded in x around -inf 92.6%
mul-1-neg92.6%
unsub-neg92.6%
mul-1-neg92.6%
unsub-neg92.6%
mul-1-neg92.6%
unsub-neg92.6%
mul-1-neg92.6%
unsub-neg92.6%
Simplified92.6%
Taylor expanded in y around inf 92.6%
associate-*r/92.6%
mul-1-neg92.6%
Simplified92.6%
Taylor expanded in y around inf 92.6%
if -1.12e-13 < x < 2.7999999999999998Initial program 98.9%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
Simplified99.7%
Taylor expanded in x around 0 96.0%
Final simplification94.0%
(FPCore (x y z)
:precision binary64
(if (<= x -1.12e-13)
(*
(+ x -2.0)
(+ 4.16438922228 (/ (- (* (/ y x) (/ 1.0 x)) 101.7851458539211) x)))
(if (<= x 1.35e-16)
(*
(+ x -2.0)
(+
(* z 0.0212463641547976)
(* x (- (* y 0.0212463641547976) (* z 0.14147091005106402)))))
(*
(+ x -2.0)
(+
4.16438922228
(/ (- (/ (+ (/ y x) 3451.550173699799) x) 101.7851458539211) x))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -1.12e-13) {
tmp = (x + -2.0) * (4.16438922228 + ((((y / x) * (1.0 / x)) - 101.7851458539211) / x));
} else if (x <= 1.35e-16) {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402))));
} else {
tmp = (x + -2.0) * (4.16438922228 + (((((y / x) + 3451.550173699799) / x) - 101.7851458539211) / x));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-1.12d-13)) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + ((((y / x) * (1.0d0 / x)) - 101.7851458539211d0) / x))
else if (x <= 1.35d-16) then
tmp = (x + (-2.0d0)) * ((z * 0.0212463641547976d0) + (x * ((y * 0.0212463641547976d0) - (z * 0.14147091005106402d0))))
else
tmp = (x + (-2.0d0)) * (4.16438922228d0 + (((((y / x) + 3451.550173699799d0) / x) - 101.7851458539211d0) / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -1.12e-13) {
tmp = (x + -2.0) * (4.16438922228 + ((((y / x) * (1.0 / x)) - 101.7851458539211) / x));
} else if (x <= 1.35e-16) {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402))));
} else {
tmp = (x + -2.0) * (4.16438922228 + (((((y / x) + 3451.550173699799) / x) - 101.7851458539211) / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -1.12e-13: tmp = (x + -2.0) * (4.16438922228 + ((((y / x) * (1.0 / x)) - 101.7851458539211) / x)) elif x <= 1.35e-16: tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402)))) else: tmp = (x + -2.0) * (4.16438922228 + (((((y / x) + 3451.550173699799) / x) - 101.7851458539211) / x)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -1.12e-13) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(y / x) * Float64(1.0 / x)) - 101.7851458539211) / x))); elseif (x <= 1.35e-16) tmp = Float64(Float64(x + -2.0) * Float64(Float64(z * 0.0212463641547976) + Float64(x * Float64(Float64(y * 0.0212463641547976) - Float64(z * 0.14147091005106402))))); else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(Float64(y / x) + 3451.550173699799) / x) - 101.7851458539211) / x))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -1.12e-13) tmp = (x + -2.0) * (4.16438922228 + ((((y / x) * (1.0 / x)) - 101.7851458539211) / x)); elseif (x <= 1.35e-16) tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402)))); else tmp = (x + -2.0) * (4.16438922228 + (((((y / x) + 3451.550173699799) / x) - 101.7851458539211) / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -1.12e-13], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(N[(N[(N[(y / x), $MachinePrecision] * N[(1.0 / x), $MachinePrecision]), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.35e-16], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z * 0.0212463641547976), $MachinePrecision] + N[(x * N[(N[(y * 0.0212463641547976), $MachinePrecision] - N[(z * 0.14147091005106402), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(N[(N[(N[(N[(y / x), $MachinePrecision] + 3451.550173699799), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.12 \cdot 10^{-13}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{y}{x} \cdot \frac{1}{x} - 101.7851458539211}{x}\right)\\
\mathbf{elif}\;x \leq 1.35 \cdot 10^{-16}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976 + x \cdot \left(y \cdot 0.0212463641547976 - z \cdot 0.14147091005106402\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{\frac{y}{x} + 3451.550173699799}{x} - 101.7851458539211}{x}\right)\\
\end{array}
\end{array}
if x < -1.12e-13Initial program 18.9%
associate-/l*25.3%
sub-neg25.3%
metadata-eval25.3%
fma-define25.3%
fma-define25.3%
fma-define25.3%
fma-define25.3%
fma-define25.3%
fma-define25.3%
fma-define25.3%
Simplified25.3%
Taylor expanded in x around -inf 90.4%
mul-1-neg90.4%
unsub-neg90.4%
mul-1-neg90.4%
unsub-neg90.4%
mul-1-neg90.4%
unsub-neg90.4%
mul-1-neg90.4%
unsub-neg90.4%
Simplified90.4%
Taylor expanded in y around inf 90.4%
associate-*r/90.4%
mul-1-neg90.4%
Simplified90.4%
div-inv90.4%
Applied egg-rr90.4%
Taylor expanded in y around inf 90.5%
if -1.12e-13 < x < 1.35e-16Initial program 98.9%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
Simplified99.7%
Taylor expanded in x around 0 96.9%
if 1.35e-16 < x Initial program 14.8%
associate-/l*19.9%
sub-neg19.9%
metadata-eval19.9%
fma-define19.9%
fma-define19.9%
fma-define19.9%
fma-define19.9%
fma-define19.9%
fma-define19.9%
fma-define19.9%
Simplified19.9%
Taylor expanded in x around -inf 93.6%
mul-1-neg93.6%
unsub-neg93.6%
mul-1-neg93.6%
unsub-neg93.6%
mul-1-neg93.6%
unsub-neg93.6%
mul-1-neg93.6%
unsub-neg93.6%
Simplified93.6%
Taylor expanded in y around inf 93.6%
associate-*r/93.6%
mul-1-neg93.6%
Simplified93.6%
Final simplification94.0%
(FPCore (x y z)
:precision binary64
(if (<= x -1.12e-13)
(*
(+ x -2.0)
(+ 4.16438922228 (/ (- (* (/ y x) (/ 1.0 x)) 101.7851458539211) x)))
(if (<= x 17.0)
(-
(* z -0.0424927283095952)
(*
x
(- (* z -0.28294182010212804) (* 0.0212463641547976 (+ z (* y -2.0))))))
(*
(+ x -2.0)
(+ 4.16438922228 (/ (- (/ (/ y x) x) 101.7851458539211) x))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -1.12e-13) {
tmp = (x + -2.0) * (4.16438922228 + ((((y / x) * (1.0 / x)) - 101.7851458539211) / x));
} else if (x <= 17.0) {
tmp = (z * -0.0424927283095952) - (x * ((z * -0.28294182010212804) - (0.0212463641547976 * (z + (y * -2.0)))));
} else {
tmp = (x + -2.0) * (4.16438922228 + ((((y / x) / x) - 101.7851458539211) / x));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-1.12d-13)) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + ((((y / x) * (1.0d0 / x)) - 101.7851458539211d0) / x))
else if (x <= 17.0d0) then
tmp = (z * (-0.0424927283095952d0)) - (x * ((z * (-0.28294182010212804d0)) - (0.0212463641547976d0 * (z + (y * (-2.0d0))))))
else
tmp = (x + (-2.0d0)) * (4.16438922228d0 + ((((y / x) / x) - 101.7851458539211d0) / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -1.12e-13) {
tmp = (x + -2.0) * (4.16438922228 + ((((y / x) * (1.0 / x)) - 101.7851458539211) / x));
} else if (x <= 17.0) {
tmp = (z * -0.0424927283095952) - (x * ((z * -0.28294182010212804) - (0.0212463641547976 * (z + (y * -2.0)))));
} else {
tmp = (x + -2.0) * (4.16438922228 + ((((y / x) / x) - 101.7851458539211) / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -1.12e-13: tmp = (x + -2.0) * (4.16438922228 + ((((y / x) * (1.0 / x)) - 101.7851458539211) / x)) elif x <= 17.0: tmp = (z * -0.0424927283095952) - (x * ((z * -0.28294182010212804) - (0.0212463641547976 * (z + (y * -2.0))))) else: tmp = (x + -2.0) * (4.16438922228 + ((((y / x) / x) - 101.7851458539211) / x)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -1.12e-13) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(y / x) * Float64(1.0 / x)) - 101.7851458539211) / x))); elseif (x <= 17.0) tmp = Float64(Float64(z * -0.0424927283095952) - Float64(x * Float64(Float64(z * -0.28294182010212804) - Float64(0.0212463641547976 * Float64(z + Float64(y * -2.0)))))); else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(y / x) / x) - 101.7851458539211) / x))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -1.12e-13) tmp = (x + -2.0) * (4.16438922228 + ((((y / x) * (1.0 / x)) - 101.7851458539211) / x)); elseif (x <= 17.0) tmp = (z * -0.0424927283095952) - (x * ((z * -0.28294182010212804) - (0.0212463641547976 * (z + (y * -2.0))))); else tmp = (x + -2.0) * (4.16438922228 + ((((y / x) / x) - 101.7851458539211) / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -1.12e-13], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(N[(N[(N[(y / x), $MachinePrecision] * N[(1.0 / x), $MachinePrecision]), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 17.0], N[(N[(z * -0.0424927283095952), $MachinePrecision] - N[(x * N[(N[(z * -0.28294182010212804), $MachinePrecision] - N[(0.0212463641547976 * N[(z + N[(y * -2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(N[(N[(N[(y / x), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.12 \cdot 10^{-13}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{y}{x} \cdot \frac{1}{x} - 101.7851458539211}{x}\right)\\
\mathbf{elif}\;x \leq 17:\\
\;\;\;\;z \cdot -0.0424927283095952 - x \cdot \left(z \cdot -0.28294182010212804 - 0.0212463641547976 \cdot \left(z + y \cdot -2\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{\frac{y}{x}}{x} - 101.7851458539211}{x}\right)\\
\end{array}
\end{array}
if x < -1.12e-13Initial program 18.9%
associate-/l*25.3%
sub-neg25.3%
metadata-eval25.3%
fma-define25.3%
fma-define25.3%
fma-define25.3%
fma-define25.3%
fma-define25.3%
fma-define25.3%
fma-define25.3%
Simplified25.3%
Taylor expanded in x around -inf 90.4%
mul-1-neg90.4%
unsub-neg90.4%
mul-1-neg90.4%
unsub-neg90.4%
mul-1-neg90.4%
unsub-neg90.4%
mul-1-neg90.4%
unsub-neg90.4%
Simplified90.4%
Taylor expanded in y around inf 90.4%
associate-*r/90.4%
mul-1-neg90.4%
Simplified90.4%
div-inv90.4%
Applied egg-rr90.4%
Taylor expanded in y around inf 90.5%
if -1.12e-13 < x < 17Initial program 98.9%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
Simplified99.7%
Taylor expanded in x around 0 96.0%
if 17 < x Initial program 13.7%
associate-/l*18.8%
sub-neg18.8%
metadata-eval18.8%
fma-define18.8%
fma-define18.8%
fma-define18.8%
fma-define18.8%
fma-define18.8%
fma-define18.8%
fma-define18.8%
Simplified18.8%
Taylor expanded in x around -inf 94.8%
mul-1-neg94.8%
unsub-neg94.8%
mul-1-neg94.8%
unsub-neg94.8%
mul-1-neg94.8%
unsub-neg94.8%
mul-1-neg94.8%
unsub-neg94.8%
Simplified94.8%
Taylor expanded in y around inf 94.8%
associate-*r/94.8%
mul-1-neg94.8%
Simplified94.8%
Taylor expanded in y around inf 94.8%
Final simplification94.0%
(FPCore (x y z)
:precision binary64
(if (<= x -1.12e-13)
(*
(+ x -2.0)
(+ 4.16438922228 (/ (- (* (/ y x) (/ 1.0 x)) 101.7851458539211) x)))
(if (<= x 1.0)
(*
(+ x -2.0)
(+
(* z 0.0212463641547976)
(* x (- (* y 0.0212463641547976) (* z 0.14147091005106402)))))
(*
(+ x -2.0)
(+ 4.16438922228 (/ (- (/ (/ y x) x) 101.7851458539211) x))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -1.12e-13) {
tmp = (x + -2.0) * (4.16438922228 + ((((y / x) * (1.0 / x)) - 101.7851458539211) / x));
} else if (x <= 1.0) {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402))));
} else {
tmp = (x + -2.0) * (4.16438922228 + ((((y / x) / x) - 101.7851458539211) / x));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-1.12d-13)) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + ((((y / x) * (1.0d0 / x)) - 101.7851458539211d0) / x))
else if (x <= 1.0d0) then
tmp = (x + (-2.0d0)) * ((z * 0.0212463641547976d0) + (x * ((y * 0.0212463641547976d0) - (z * 0.14147091005106402d0))))
else
tmp = (x + (-2.0d0)) * (4.16438922228d0 + ((((y / x) / x) - 101.7851458539211d0) / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -1.12e-13) {
tmp = (x + -2.0) * (4.16438922228 + ((((y / x) * (1.0 / x)) - 101.7851458539211) / x));
} else if (x <= 1.0) {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402))));
} else {
tmp = (x + -2.0) * (4.16438922228 + ((((y / x) / x) - 101.7851458539211) / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -1.12e-13: tmp = (x + -2.0) * (4.16438922228 + ((((y / x) * (1.0 / x)) - 101.7851458539211) / x)) elif x <= 1.0: tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402)))) else: tmp = (x + -2.0) * (4.16438922228 + ((((y / x) / x) - 101.7851458539211) / x)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -1.12e-13) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(y / x) * Float64(1.0 / x)) - 101.7851458539211) / x))); elseif (x <= 1.0) tmp = Float64(Float64(x + -2.0) * Float64(Float64(z * 0.0212463641547976) + Float64(x * Float64(Float64(y * 0.0212463641547976) - Float64(z * 0.14147091005106402))))); else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(y / x) / x) - 101.7851458539211) / x))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -1.12e-13) tmp = (x + -2.0) * (4.16438922228 + ((((y / x) * (1.0 / x)) - 101.7851458539211) / x)); elseif (x <= 1.0) tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402)))); else tmp = (x + -2.0) * (4.16438922228 + ((((y / x) / x) - 101.7851458539211) / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -1.12e-13], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(N[(N[(N[(y / x), $MachinePrecision] * N[(1.0 / x), $MachinePrecision]), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.0], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z * 0.0212463641547976), $MachinePrecision] + N[(x * N[(N[(y * 0.0212463641547976), $MachinePrecision] - N[(z * 0.14147091005106402), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(N[(N[(N[(y / x), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.12 \cdot 10^{-13}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{y}{x} \cdot \frac{1}{x} - 101.7851458539211}{x}\right)\\
\mathbf{elif}\;x \leq 1:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976 + x \cdot \left(y \cdot 0.0212463641547976 - z \cdot 0.14147091005106402\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{\frac{y}{x}}{x} - 101.7851458539211}{x}\right)\\
\end{array}
\end{array}
if x < -1.12e-13Initial program 18.9%
associate-/l*25.3%
sub-neg25.3%
metadata-eval25.3%
fma-define25.3%
fma-define25.3%
fma-define25.3%
fma-define25.3%
fma-define25.3%
fma-define25.3%
fma-define25.3%
Simplified25.3%
Taylor expanded in x around -inf 90.4%
mul-1-neg90.4%
unsub-neg90.4%
mul-1-neg90.4%
unsub-neg90.4%
mul-1-neg90.4%
unsub-neg90.4%
mul-1-neg90.4%
unsub-neg90.4%
Simplified90.4%
Taylor expanded in y around inf 90.4%
associate-*r/90.4%
mul-1-neg90.4%
Simplified90.4%
div-inv90.4%
Applied egg-rr90.4%
Taylor expanded in y around inf 90.5%
if -1.12e-13 < x < 1Initial program 98.9%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
Simplified99.7%
Taylor expanded in x around 0 96.0%
if 1 < x Initial program 13.7%
associate-/l*18.8%
sub-neg18.8%
metadata-eval18.8%
fma-define18.8%
fma-define18.8%
fma-define18.8%
fma-define18.8%
fma-define18.8%
fma-define18.8%
fma-define18.8%
Simplified18.8%
Taylor expanded in x around -inf 94.8%
mul-1-neg94.8%
unsub-neg94.8%
mul-1-neg94.8%
unsub-neg94.8%
mul-1-neg94.8%
unsub-neg94.8%
mul-1-neg94.8%
unsub-neg94.8%
Simplified94.8%
Taylor expanded in y around inf 94.8%
associate-*r/94.8%
mul-1-neg94.8%
Simplified94.8%
Taylor expanded in y around inf 94.8%
Final simplification94.0%
(FPCore (x y z)
:precision binary64
(if (<= x -6.1e-30)
(* x (- 4.16438922228 (/ 110.1139242984811 x)))
(if (<= x 7.8e-17)
(* (+ x -2.0) (* z 0.0212463641547976))
(*
(+ x -2.0)
(-
4.16438922228
(/ (+ 101.7851458539211 (/ -3451.550173699799 x)) x))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -6.1e-30) {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
} else if (x <= 7.8e-17) {
tmp = (x + -2.0) * (z * 0.0212463641547976);
} else {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-6.1d-30)) then
tmp = x * (4.16438922228d0 - (110.1139242984811d0 / x))
else if (x <= 7.8d-17) then
tmp = (x + (-2.0d0)) * (z * 0.0212463641547976d0)
else
tmp = (x + (-2.0d0)) * (4.16438922228d0 - ((101.7851458539211d0 + ((-3451.550173699799d0) / x)) / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -6.1e-30) {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
} else if (x <= 7.8e-17) {
tmp = (x + -2.0) * (z * 0.0212463641547976);
} else {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -6.1e-30: tmp = x * (4.16438922228 - (110.1139242984811 / x)) elif x <= 7.8e-17: tmp = (x + -2.0) * (z * 0.0212463641547976) else: tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -6.1e-30) tmp = Float64(x * Float64(4.16438922228 - Float64(110.1139242984811 / x))); elseif (x <= 7.8e-17) tmp = Float64(Float64(x + -2.0) * Float64(z * 0.0212463641547976)); else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 - Float64(Float64(101.7851458539211 + Float64(-3451.550173699799 / x)) / x))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -6.1e-30) tmp = x * (4.16438922228 - (110.1139242984811 / x)); elseif (x <= 7.8e-17) tmp = (x + -2.0) * (z * 0.0212463641547976); else tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -6.1e-30], N[(x * N[(4.16438922228 - N[(110.1139242984811 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 7.8e-17], N[(N[(x + -2.0), $MachinePrecision] * N[(z * 0.0212463641547976), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 - N[(N[(101.7851458539211 + N[(-3451.550173699799 / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -6.1 \cdot 10^{-30}:\\
\;\;\;\;x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)\\
\mathbf{elif}\;x \leq 7.8 \cdot 10^{-17}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 + \frac{-3451.550173699799}{x}}{x}\right)\\
\end{array}
\end{array}
if x < -6.09999999999999981e-30Initial program 21.0%
associate-/l*27.3%
sub-neg27.3%
metadata-eval27.3%
fma-define27.3%
fma-define27.3%
fma-define27.3%
fma-define27.3%
fma-define27.3%
fma-define27.3%
fma-define27.3%
Simplified27.3%
Taylor expanded in x around inf 78.4%
associate-*r/78.4%
metadata-eval78.4%
Simplified78.4%
if -6.09999999999999981e-30 < x < 7.79999999999999979e-17Initial program 98.9%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
Simplified99.7%
Taylor expanded in x around 0 74.6%
if 7.79999999999999979e-17 < x Initial program 15.9%
associate-/l*20.9%
sub-neg20.9%
metadata-eval20.9%
fma-define20.9%
fma-define20.9%
fma-define20.9%
fma-define20.9%
fma-define20.9%
fma-define20.9%
fma-define20.9%
Simplified20.9%
Taylor expanded in x around -inf 86.6%
mul-1-neg86.6%
unsub-neg86.6%
sub-neg86.6%
associate-*r/86.6%
metadata-eval86.6%
distribute-neg-frac86.6%
metadata-eval86.6%
Simplified86.6%
Final simplification79.3%
(FPCore (x y z) :precision binary64 (if (or (<= x -6.1e-30) (not (<= x 7.8e-17))) (* x (- 4.16438922228 (/ 110.1139242984811 x))) (* (+ x -2.0) (* z 0.0212463641547976))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -6.1e-30) || !(x <= 7.8e-17)) {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
} else {
tmp = (x + -2.0) * (z * 0.0212463641547976);
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((x <= (-6.1d-30)) .or. (.not. (x <= 7.8d-17))) then
tmp = x * (4.16438922228d0 - (110.1139242984811d0 / x))
else
tmp = (x + (-2.0d0)) * (z * 0.0212463641547976d0)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -6.1e-30) || !(x <= 7.8e-17)) {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
} else {
tmp = (x + -2.0) * (z * 0.0212463641547976);
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -6.1e-30) or not (x <= 7.8e-17): tmp = x * (4.16438922228 - (110.1139242984811 / x)) else: tmp = (x + -2.0) * (z * 0.0212463641547976) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -6.1e-30) || !(x <= 7.8e-17)) tmp = Float64(x * Float64(4.16438922228 - Float64(110.1139242984811 / x))); else tmp = Float64(Float64(x + -2.0) * Float64(z * 0.0212463641547976)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -6.1e-30) || ~((x <= 7.8e-17))) tmp = x * (4.16438922228 - (110.1139242984811 / x)); else tmp = (x + -2.0) * (z * 0.0212463641547976); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -6.1e-30], N[Not[LessEqual[x, 7.8e-17]], $MachinePrecision]], N[(x * N[(4.16438922228 - N[(110.1139242984811 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(z * 0.0212463641547976), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -6.1 \cdot 10^{-30} \lor \neg \left(x \leq 7.8 \cdot 10^{-17}\right):\\
\;\;\;\;x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976\right)\\
\end{array}
\end{array}
if x < -6.09999999999999981e-30 or 7.79999999999999979e-17 < x Initial program 18.5%
associate-/l*24.1%
sub-neg24.1%
metadata-eval24.1%
fma-define24.1%
fma-define24.1%
fma-define24.1%
fma-define24.1%
fma-define24.1%
fma-define24.1%
fma-define24.1%
Simplified24.1%
Taylor expanded in x around inf 82.5%
associate-*r/82.5%
metadata-eval82.5%
Simplified82.5%
if -6.09999999999999981e-30 < x < 7.79999999999999979e-17Initial program 98.9%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
Simplified99.7%
Taylor expanded in x around 0 74.6%
Final simplification79.3%
(FPCore (x y z) :precision binary64 (if (or (<= x -6.1e-30) (not (<= x 7.8e-17))) (* x (- 4.16438922228 (/ 110.1139242984811 x))) (* z -0.0424927283095952)))
double code(double x, double y, double z) {
double tmp;
if ((x <= -6.1e-30) || !(x <= 7.8e-17)) {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
} else {
tmp = z * -0.0424927283095952;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((x <= (-6.1d-30)) .or. (.not. (x <= 7.8d-17))) then
tmp = x * (4.16438922228d0 - (110.1139242984811d0 / x))
else
tmp = z * (-0.0424927283095952d0)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -6.1e-30) || !(x <= 7.8e-17)) {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
} else {
tmp = z * -0.0424927283095952;
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -6.1e-30) or not (x <= 7.8e-17): tmp = x * (4.16438922228 - (110.1139242984811 / x)) else: tmp = z * -0.0424927283095952 return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -6.1e-30) || !(x <= 7.8e-17)) tmp = Float64(x * Float64(4.16438922228 - Float64(110.1139242984811 / x))); else tmp = Float64(z * -0.0424927283095952); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -6.1e-30) || ~((x <= 7.8e-17))) tmp = x * (4.16438922228 - (110.1139242984811 / x)); else tmp = z * -0.0424927283095952; end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -6.1e-30], N[Not[LessEqual[x, 7.8e-17]], $MachinePrecision]], N[(x * N[(4.16438922228 - N[(110.1139242984811 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(z * -0.0424927283095952), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -6.1 \cdot 10^{-30} \lor \neg \left(x \leq 7.8 \cdot 10^{-17}\right):\\
\;\;\;\;x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\end{array}
\end{array}
if x < -6.09999999999999981e-30 or 7.79999999999999979e-17 < x Initial program 18.5%
associate-/l*24.1%
sub-neg24.1%
metadata-eval24.1%
fma-define24.1%
fma-define24.1%
fma-define24.1%
fma-define24.1%
fma-define24.1%
fma-define24.1%
fma-define24.1%
Simplified24.1%
Taylor expanded in x around inf 82.5%
associate-*r/82.5%
metadata-eval82.5%
Simplified82.5%
if -6.09999999999999981e-30 < x < 7.79999999999999979e-17Initial program 98.9%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
Simplified99.7%
Taylor expanded in x around 0 74.6%
*-commutative74.6%
Simplified74.6%
Final simplification79.3%
(FPCore (x y z) :precision binary64 (if (<= x -6.1e-30) (* x 4.16438922228) (if (<= x 7.8e-17) (* z -0.0424927283095952) (* 4.16438922228 (+ x -2.0)))))
double code(double x, double y, double z) {
double tmp;
if (x <= -6.1e-30) {
tmp = x * 4.16438922228;
} else if (x <= 7.8e-17) {
tmp = z * -0.0424927283095952;
} else {
tmp = 4.16438922228 * (x + -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 <= (-6.1d-30)) then
tmp = x * 4.16438922228d0
else if (x <= 7.8d-17) then
tmp = z * (-0.0424927283095952d0)
else
tmp = 4.16438922228d0 * (x + (-2.0d0))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -6.1e-30) {
tmp = x * 4.16438922228;
} else if (x <= 7.8e-17) {
tmp = z * -0.0424927283095952;
} else {
tmp = 4.16438922228 * (x + -2.0);
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -6.1e-30: tmp = x * 4.16438922228 elif x <= 7.8e-17: tmp = z * -0.0424927283095952 else: tmp = 4.16438922228 * (x + -2.0) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -6.1e-30) tmp = Float64(x * 4.16438922228); elseif (x <= 7.8e-17) tmp = Float64(z * -0.0424927283095952); else tmp = Float64(4.16438922228 * Float64(x + -2.0)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -6.1e-30) tmp = x * 4.16438922228; elseif (x <= 7.8e-17) tmp = z * -0.0424927283095952; else tmp = 4.16438922228 * (x + -2.0); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -6.1e-30], N[(x * 4.16438922228), $MachinePrecision], If[LessEqual[x, 7.8e-17], N[(z * -0.0424927283095952), $MachinePrecision], N[(4.16438922228 * N[(x + -2.0), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -6.1 \cdot 10^{-30}:\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{elif}\;x \leq 7.8 \cdot 10^{-17}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;4.16438922228 \cdot \left(x + -2\right)\\
\end{array}
\end{array}
if x < -6.09999999999999981e-30Initial program 21.0%
associate-/l*27.3%
sub-neg27.3%
metadata-eval27.3%
fma-define27.3%
fma-define27.3%
fma-define27.3%
fma-define27.3%
fma-define27.3%
fma-define27.3%
fma-define27.3%
Simplified27.3%
Taylor expanded in x around -inf 88.2%
mul-1-neg88.2%
unsub-neg88.2%
mul-1-neg88.2%
unsub-neg88.2%
mul-1-neg88.2%
unsub-neg88.2%
mul-1-neg88.2%
unsub-neg88.2%
Simplified88.2%
Taylor expanded in x around inf 78.4%
*-commutative78.4%
Simplified78.4%
if -6.09999999999999981e-30 < x < 7.79999999999999979e-17Initial program 98.9%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
Simplified99.7%
Taylor expanded in x around 0 74.6%
*-commutative74.6%
Simplified74.6%
if 7.79999999999999979e-17 < x Initial program 15.9%
associate-/l*20.9%
sub-neg20.9%
metadata-eval20.9%
fma-define20.9%
fma-define20.9%
fma-define20.9%
fma-define20.9%
fma-define20.9%
fma-define20.9%
fma-define20.9%
Simplified20.9%
Taylor expanded in x around inf 86.6%
Final simplification79.3%
(FPCore (x y z) :precision binary64 (if (or (<= x -6.1e-30) (not (<= x 2.0))) (* x 4.16438922228) (* z -0.0424927283095952)))
double code(double x, double y, double z) {
double tmp;
if ((x <= -6.1e-30) || !(x <= 2.0)) {
tmp = x * 4.16438922228;
} else {
tmp = z * -0.0424927283095952;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((x <= (-6.1d-30)) .or. (.not. (x <= 2.0d0))) then
tmp = x * 4.16438922228d0
else
tmp = z * (-0.0424927283095952d0)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -6.1e-30) || !(x <= 2.0)) {
tmp = x * 4.16438922228;
} else {
tmp = z * -0.0424927283095952;
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -6.1e-30) or not (x <= 2.0): tmp = x * 4.16438922228 else: tmp = z * -0.0424927283095952 return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -6.1e-30) || !(x <= 2.0)) tmp = Float64(x * 4.16438922228); else tmp = Float64(z * -0.0424927283095952); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -6.1e-30) || ~((x <= 2.0))) tmp = x * 4.16438922228; else tmp = z * -0.0424927283095952; end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -6.1e-30], N[Not[LessEqual[x, 2.0]], $MachinePrecision]], N[(x * 4.16438922228), $MachinePrecision], N[(z * -0.0424927283095952), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -6.1 \cdot 10^{-30} \lor \neg \left(x \leq 2\right):\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{else}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\end{array}
\end{array}
if x < -6.09999999999999981e-30 or 2 < x Initial program 17.4%
associate-/l*23.1%
sub-neg23.1%
metadata-eval23.1%
fma-define23.1%
fma-define23.1%
fma-define23.1%
fma-define23.1%
fma-define23.1%
fma-define23.1%
fma-define23.1%
Simplified23.1%
Taylor expanded in x around -inf 91.4%
mul-1-neg91.4%
unsub-neg91.4%
mul-1-neg91.4%
unsub-neg91.4%
mul-1-neg91.4%
unsub-neg91.4%
mul-1-neg91.4%
unsub-neg91.4%
Simplified91.4%
Taylor expanded in x around inf 83.5%
*-commutative83.5%
Simplified83.5%
if -6.09999999999999981e-30 < x < 2Initial program 98.9%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
Simplified99.7%
Taylor expanded in x around 0 73.2%
*-commutative73.2%
Simplified73.2%
Final simplification79.3%
(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 50.8%
associate-/l*54.5%
sub-neg54.5%
metadata-eval54.5%
fma-define54.5%
fma-define54.5%
fma-define54.5%
fma-define54.5%
fma-define54.5%
fma-define54.5%
fma-define54.5%
Simplified54.5%
Taylor expanded in x around -inf 55.1%
mul-1-neg55.1%
unsub-neg55.1%
mul-1-neg55.1%
unsub-neg55.1%
mul-1-neg55.1%
unsub-neg55.1%
mul-1-neg55.1%
unsub-neg55.1%
Simplified55.1%
Taylor expanded in x around inf 50.5%
*-commutative50.5%
Simplified50.5%
(FPCore (x y z) :precision binary64 -110.1139242984811)
double code(double x, double y, double z) {
return -110.1139242984811;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = -110.1139242984811d0
end function
public static double code(double x, double y, double z) {
return -110.1139242984811;
}
def code(x, y, z): return -110.1139242984811
function code(x, y, z) return -110.1139242984811 end
function tmp = code(x, y, z) tmp = -110.1139242984811; end
code[x_, y_, z_] := -110.1139242984811
\begin{array}{l}
\\
-110.1139242984811
\end{array}
Initial program 50.8%
associate-/l*54.5%
sub-neg54.5%
metadata-eval54.5%
fma-define54.5%
fma-define54.5%
fma-define54.5%
fma-define54.5%
fma-define54.5%
fma-define54.5%
fma-define54.5%
Simplified54.5%
Taylor expanded in y around inf 47.1%
Taylor expanded in x around inf 27.9%
associate-*r/27.9%
metadata-eval27.9%
associate-*r/27.9%
metadata-eval27.9%
*-commutative27.9%
Simplified27.9%
Taylor expanded in x around 0 3.2%
(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 2024100
(FPCore (x y z)
:name "Numeric.SpecFunctions:logGamma from math-functions-0.1.5.2, C"
:precision binary64
:alt
(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)))