
(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 19 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z)
:precision binary64
(/
(*
(- x 2.0)
(+
(*
(+ (* (+ (* (+ (* x 4.16438922228) 78.6994924154) x) 137.519416416) x) y)
x)
z))
(+
(* (+ (* (+ (* (+ x 43.3400022514) x) 263.505074721) x) 313.399215894) x)
47.066876606)))
double code(double x, double y, double z) {
return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606);
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = ((x - 2.0d0) * ((((((((x * 4.16438922228d0) + 78.6994924154d0) * x) + 137.519416416d0) * x) + y) * x) + z)) / (((((((x + 43.3400022514d0) * x) + 263.505074721d0) * x) + 313.399215894d0) * x) + 47.066876606d0)
end function
public static double code(double x, double y, double z) {
return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606);
}
def code(x, y, z): return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606)
function code(x, y, z) return Float64(Float64(Float64(x - 2.0) * Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606)) end
function tmp = code(x, y, z) tmp = ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606); end
code[x_, y_, z_] := N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(N[(N[(N[(N[(N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision] * x), $MachinePrecision] + 137.519416416), $MachinePrecision] * x), $MachinePrecision] + y), $MachinePrecision] * x), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(x + 43.3400022514), $MachinePrecision] * x), $MachinePrecision] + 263.505074721), $MachinePrecision] * x), $MachinePrecision] + 313.399215894), $MachinePrecision] * x), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606}
\end{array}
(FPCore (x y z)
:precision binary64
(if (<=
(/
(*
(- x 2.0)
(+
(*
x
(+
(* x (+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))
y))
z))
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))
INFINITY)
(/
(+ x -2.0)
(/
(fma
(fma (fma (+ x 43.3400022514) x 263.505074721) x 313.399215894)
x
47.066876606)
(fma
(fma (fma (fma x 4.16438922228 78.6994924154) x 137.519416416) x y)
x
z)))
(/ (+ x -2.0) 0.24013125253755718)))
double code(double x, double y, double z) {
double tmp;
if ((((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) <= ((double) INFINITY)) {
tmp = (x + -2.0) / (fma(fma(fma((x + 43.3400022514), x, 263.505074721), x, 313.399215894), x, 47.066876606) / fma(fma(fma(fma(x, 4.16438922228, 78.6994924154), x, 137.519416416), x, y), x, z));
} else {
tmp = (x + -2.0) / 0.24013125253755718;
}
return tmp;
}
function code(x, y, z) tmp = 0.0 if (Float64(Float64(Float64(x - 2.0) * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) <= Inf) tmp = Float64(Float64(x + -2.0) / Float64(fma(fma(fma(Float64(x + 43.3400022514), x, 263.505074721), x, 313.399215894), x, 47.066876606) / fma(fma(fma(fma(x, 4.16438922228, 78.6994924154), x, 137.519416416), x, y), x, z))); else tmp = Float64(Float64(x + -2.0) / 0.24013125253755718); end return tmp end
code[x_, y_, z_] := If[LessEqual[N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(x * N[(N[(x * N[(N[(x * N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision]), $MachinePrecision] + 137.519416416), $MachinePrecision]), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision], Infinity], N[(N[(x + -2.0), $MachinePrecision] / N[(N[(N[(N[(N[(x + 43.3400022514), $MachinePrecision] * x + 263.505074721), $MachinePrecision] * x + 313.399215894), $MachinePrecision] * x + 47.066876606), $MachinePrecision] / N[(N[(N[(N[(x * 4.16438922228 + 78.6994924154), $MachinePrecision] * x + 137.519416416), $MachinePrecision] * x + y), $MachinePrecision] * x + z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{\left(x - 2\right) \cdot \left(x \cdot \left(x \cdot \left(x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right) + 137.519416416\right) + y\right) + z\right)}{x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606} \leq \infty:\\
\;\;\;\;\frac{x + -2}{\frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x + 43.3400022514, x, 263.505074721\right), x, 313.399215894\right), x, 47.066876606\right)}{\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)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718}\\
\end{array}
\end{array}
if (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) < +inf.0Initial program 93.4%
associate-/l*98.1%
sub-neg98.1%
metadata-eval98.1%
fma-def98.1%
fma-def98.2%
fma-def98.2%
fma-def98.2%
fma-def98.1%
fma-def98.1%
fma-def98.1%
Simplified98.1%
if +inf.0 < (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) Initial program 0.0%
associate-/l*0.0%
sub-neg0.0%
metadata-eval0.0%
fma-def0.0%
fma-def0.0%
fma-def0.0%
fma-def0.0%
fma-def0.0%
fma-def0.0%
fma-def0.0%
Simplified0.0%
Taylor expanded in x around inf 99.7%
Final simplification98.8%
(FPCore (x y z)
:precision binary64
(if (<=
(/
(*
(- x 2.0)
(+
(*
x
(+
(* x (+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))
y))
z))
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))
INFINITY)
(*
(fma
x
(fma x (fma x (fma x 4.16438922228 78.6994924154) 137.519416416) y)
z)
(/
(+ x -2.0)
(fma
x
(fma x (fma x (+ x 43.3400022514) 263.505074721) 313.399215894)
47.066876606)))
(/ (+ x -2.0) 0.24013125253755718)))
double code(double x, double y, double z) {
double tmp;
if ((((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) <= ((double) INFINITY)) {
tmp = fma(x, fma(x, fma(x, fma(x, 4.16438922228, 78.6994924154), 137.519416416), y), z) * ((x + -2.0) / fma(x, fma(x, fma(x, (x + 43.3400022514), 263.505074721), 313.399215894), 47.066876606));
} else {
tmp = (x + -2.0) / 0.24013125253755718;
}
return tmp;
}
function code(x, y, z) tmp = 0.0 if (Float64(Float64(Float64(x - 2.0) * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) <= Inf) tmp = Float64(fma(x, fma(x, fma(x, fma(x, 4.16438922228, 78.6994924154), 137.519416416), y), z) * Float64(Float64(x + -2.0) / fma(x, fma(x, fma(x, Float64(x + 43.3400022514), 263.505074721), 313.399215894), 47.066876606))); else tmp = Float64(Float64(x + -2.0) / 0.24013125253755718); end return tmp end
code[x_, y_, z_] := If[LessEqual[N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(x * N[(N[(x * N[(N[(x * N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision]), $MachinePrecision] + 137.519416416), $MachinePrecision]), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision], Infinity], N[(N[(x * N[(x * N[(x * N[(x * 4.16438922228 + 78.6994924154), $MachinePrecision] + 137.519416416), $MachinePrecision] + y), $MachinePrecision] + z), $MachinePrecision] * N[(N[(x + -2.0), $MachinePrecision] / N[(x * N[(x * N[(x * N[(x + 43.3400022514), $MachinePrecision] + 263.505074721), $MachinePrecision] + 313.399215894), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{\left(x - 2\right) \cdot \left(x \cdot \left(x \cdot \left(x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right) + 137.519416416\right) + y\right) + z\right)}{x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606} \leq \infty:\\
\;\;\;\;\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) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718}\\
\end{array}
\end{array}
if (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) < +inf.0Initial program 93.4%
*-commutative93.4%
associate-*r/98.0%
*-commutative98.0%
fma-def98.0%
*-commutative98.0%
fma-def98.0%
*-commutative98.0%
fma-def98.0%
fma-def98.0%
Simplified98.0%
if +inf.0 < (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) Initial program 0.0%
associate-/l*0.0%
sub-neg0.0%
metadata-eval0.0%
fma-def0.0%
fma-def0.0%
fma-def0.0%
fma-def0.0%
fma-def0.0%
fma-def0.0%
fma-def0.0%
Simplified0.0%
Taylor expanded in x around inf 99.7%
Final simplification98.7%
(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 (<= t_0 (- INFINITY))
(/
(fma x (fma x (fma x 4.16438922228 78.6994924154) 137.519416416) y)
(/
(fma
x
(fma x (fma x (+ x 43.3400022514) 263.505074721) 313.399215894)
47.066876606)
(* x (+ x -2.0))))
(if (<= t_0 5e+304)
t_0
(+
(+ (/ 3655.1204654076414 x) (fma x 4.16438922228 -110.1139242984811))
(/ (- y 130977.50649958357) (* x x)))))))
double code(double x, double y, double z) {
double t_0 = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606);
double tmp;
if (t_0 <= -((double) INFINITY)) {
tmp = fma(x, fma(x, fma(x, 4.16438922228, 78.6994924154), 137.519416416), y) / (fma(x, fma(x, fma(x, (x + 43.3400022514), 263.505074721), 313.399215894), 47.066876606) / (x * (x + -2.0)));
} else if (t_0 <= 5e+304) {
tmp = t_0;
} else {
tmp = ((3655.1204654076414 / x) + fma(x, 4.16438922228, -110.1139242984811)) + ((y - 130977.50649958357) / (x * x));
}
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)) tmp = Float64(fma(x, fma(x, fma(x, 4.16438922228, 78.6994924154), 137.519416416), y) / Float64(fma(x, fma(x, fma(x, Float64(x + 43.3400022514), 263.505074721), 313.399215894), 47.066876606) / Float64(x * Float64(x + -2.0)))); elseif (t_0 <= 5e+304) tmp = t_0; else tmp = Float64(Float64(Float64(3655.1204654076414 / x) + fma(x, 4.16438922228, -110.1139242984811)) + Float64(Float64(y - 130977.50649958357) / Float64(x * x))); end return 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[LessEqual[t$95$0, (-Infinity)], N[(N[(x * N[(x * N[(x * 4.16438922228 + 78.6994924154), $MachinePrecision] + 137.519416416), $MachinePrecision] + y), $MachinePrecision] / N[(N[(x * N[(x * N[(x * N[(x + 43.3400022514), $MachinePrecision] + 263.505074721), $MachinePrecision] + 313.399215894), $MachinePrecision] + 47.066876606), $MachinePrecision] / N[(x * N[(x + -2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$0, 5e+304], t$95$0, N[(N[(N[(3655.1204654076414 / x), $MachinePrecision] + N[(x * 4.16438922228 + -110.1139242984811), $MachinePrecision]), $MachinePrecision] + N[(N[(y - 130977.50649958357), $MachinePrecision] / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\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:\\
\;\;\;\;\frac{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), 137.519416416\right), y\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 \cdot \left(x + -2\right)}}\\
\mathbf{elif}\;t_0 \leq 5 \cdot 10^{+304}:\\
\;\;\;\;t_0\\
\mathbf{else}:\\
\;\;\;\;\left(\frac{3655.1204654076414}{x} + \mathsf{fma}\left(x, 4.16438922228, -110.1139242984811\right)\right) + \frac{y - 130977.50649958357}{x \cdot x}\\
\end{array}
\end{array}
if (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) < -inf.0Initial program 4.4%
*-commutative4.4%
associate-*r/67.9%
*-commutative67.9%
fma-def67.9%
*-commutative67.9%
fma-def67.9%
*-commutative67.9%
fma-def67.9%
fma-def67.9%
Simplified67.9%
Taylor expanded in z around 0 4.4%
Simplified99.7%
if -inf.0 < (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) < 4.9999999999999997e304Initial program 99.6%
if 4.9999999999999997e304 < (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) Initial program 0.2%
*-commutative0.2%
associate-*r/3.7%
*-commutative3.7%
fma-def3.7%
*-commutative3.7%
fma-def3.7%
*-commutative3.7%
fma-def3.7%
fma-def3.7%
Simplified3.7%
Taylor expanded in x around -inf 97.2%
associate--l+97.2%
+-commutative97.2%
mul-1-neg97.2%
unsub-neg97.2%
+-commutative97.2%
*-commutative97.2%
associate--l+97.2%
associate-*r/97.2%
metadata-eval97.2%
fma-neg97.2%
metadata-eval97.2%
mul-1-neg97.2%
unsub-neg97.2%
unpow297.2%
Simplified97.2%
Final simplification98.6%
(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 5e+304)))
(+
(+ (/ 3655.1204654076414 x) (fma x 4.16438922228 -110.1139242984811))
(/ (- y 130977.50649958357) (* x 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 <= 5e+304)) {
tmp = ((3655.1204654076414 / x) + fma(x, 4.16438922228, -110.1139242984811)) + ((y - 130977.50649958357) / (x * 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 <= 5e+304)) tmp = Float64(Float64(Float64(3655.1204654076414 / x) + fma(x, 4.16438922228, -110.1139242984811)) + Float64(Float64(y - 130977.50649958357) / Float64(x * x))); else tmp = t_0; end return 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, 5e+304]], $MachinePrecision]], N[(N[(N[(3655.1204654076414 / x), $MachinePrecision] + N[(x * 4.16438922228 + -110.1139242984811), $MachinePrecision]), $MachinePrecision] + N[(N[(y - 130977.50649958357), $MachinePrecision] / N[(x * 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 5 \cdot 10^{+304}\right):\\
\;\;\;\;\left(\frac{3655.1204654076414}{x} + \mathsf{fma}\left(x, 4.16438922228, -110.1139242984811\right)\right) + \frac{y - 130977.50649958357}{x \cdot x}\\
\mathbf{else}:\\
\;\;\;\;t_0\\
\end{array}
\end{array}
if (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) < -inf.0 or 4.9999999999999997e304 < (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) Initial program 0.4%
*-commutative0.4%
associate-*r/7.1%
*-commutative7.1%
fma-def7.1%
*-commutative7.1%
fma-def7.1%
*-commutative7.1%
fma-def7.1%
fma-def7.1%
Simplified7.1%
Taylor expanded in x around -inf 97.3%
associate--l+97.3%
+-commutative97.3%
mul-1-neg97.3%
unsub-neg97.3%
+-commutative97.3%
*-commutative97.3%
associate--l+97.3%
associate-*r/97.3%
metadata-eval97.3%
fma-neg97.3%
metadata-eval97.3%
mul-1-neg97.3%
unsub-neg97.3%
unpow297.3%
Simplified97.3%
if -inf.0 < (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) < 4.9999999999999997e304Initial program 99.6%
Final simplification98.6%
(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 (<= t_0 5e+304) t_0 (/ (+ x -2.0) 0.24013125253755718))))
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 <= 5e+304) {
tmp = t_0;
} else {
tmp = (x + -2.0) / 0.24013125253755718;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = ((x - 2.0d0) * ((x * ((x * ((x * ((x * 4.16438922228d0) + 78.6994924154d0)) + 137.519416416d0)) + y)) + z)) / ((x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0)
if (t_0 <= 5d+304) then
tmp = t_0
else
tmp = (x + (-2.0d0)) / 0.24013125253755718d0
end if
code = tmp
end function
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 <= 5e+304) {
tmp = t_0;
} else {
tmp = (x + -2.0) / 0.24013125253755718;
}
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 <= 5e+304: tmp = t_0 else: tmp = (x + -2.0) / 0.24013125253755718 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 <= 5e+304) tmp = t_0; else tmp = Float64(Float64(x + -2.0) / 0.24013125253755718); 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 <= 5e+304) tmp = t_0; else tmp = (x + -2.0) / 0.24013125253755718; 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[LessEqual[t$95$0, 5e+304], t$95$0, N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision]]]
\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 5 \cdot 10^{+304}:\\
\;\;\;\;t_0\\
\mathbf{else}:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718}\\
\end{array}
\end{array}
if (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) < 4.9999999999999997e304Initial program 95.8%
if 4.9999999999999997e304 < (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) Initial program 0.2%
associate-/l*3.7%
sub-neg3.7%
metadata-eval3.7%
fma-def3.7%
fma-def3.7%
fma-def3.7%
fma-def3.7%
fma-def3.7%
fma-def3.7%
fma-def3.7%
Simplified3.7%
Taylor expanded in x around inf 96.9%
Final simplification96.2%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(/
(*
(- x 2.0)
(+
(*
x
(+
(*
x
(+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))
y))
z))
(+
47.066876606
(* x (+ 313.399215894 (* (+ x 43.3400022514) (* x x)))))))
(t_1 (/ (+ x -2.0) 0.24013125253755718)))
(if (<= x -1e+65)
t_1
(if (<= x -5.5e+24)
(/ y (* x x))
(if (<= x -900000.0)
t_0
(if (<= x 3900000.0)
(/
(* (- x 2.0) (+ z (* x (+ y (* x 137.519416416)))))
(+
(*
x
(+
(* x (+ (* x (+ x 43.3400022514)) 263.505074721))
313.399215894))
47.066876606))
(if (<= x 1.26e+49) t_0 t_1)))))))
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)) / (47.066876606 + (x * (313.399215894 + ((x + 43.3400022514) * (x * x)))));
double t_1 = (x + -2.0) / 0.24013125253755718;
double tmp;
if (x <= -1e+65) {
tmp = t_1;
} else if (x <= -5.5e+24) {
tmp = y / (x * x);
} else if (x <= -900000.0) {
tmp = t_0;
} else if (x <= 3900000.0) {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606);
} else if (x <= 1.26e+49) {
tmp = t_0;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: t_1
real(8) :: tmp
t_0 = ((x - 2.0d0) * ((x * ((x * ((x * ((x * 4.16438922228d0) + 78.6994924154d0)) + 137.519416416d0)) + y)) + z)) / (47.066876606d0 + (x * (313.399215894d0 + ((x + 43.3400022514d0) * (x * x)))))
t_1 = (x + (-2.0d0)) / 0.24013125253755718d0
if (x <= (-1d+65)) then
tmp = t_1
else if (x <= (-5.5d+24)) then
tmp = y / (x * x)
else if (x <= (-900000.0d0)) then
tmp = t_0
else if (x <= 3900000.0d0) then
tmp = ((x - 2.0d0) * (z + (x * (y + (x * 137.519416416d0))))) / ((x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0)
else if (x <= 1.26d+49) then
tmp = t_0
else
tmp = t_1
end if
code = tmp
end function
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)) / (47.066876606 + (x * (313.399215894 + ((x + 43.3400022514) * (x * x)))));
double t_1 = (x + -2.0) / 0.24013125253755718;
double tmp;
if (x <= -1e+65) {
tmp = t_1;
} else if (x <= -5.5e+24) {
tmp = y / (x * x);
} else if (x <= -900000.0) {
tmp = t_0;
} else if (x <= 3900000.0) {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606);
} else if (x <= 1.26e+49) {
tmp = t_0;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z): t_0 = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / (47.066876606 + (x * (313.399215894 + ((x + 43.3400022514) * (x * x))))) t_1 = (x + -2.0) / 0.24013125253755718 tmp = 0 if x <= -1e+65: tmp = t_1 elif x <= -5.5e+24: tmp = y / (x * x) elif x <= -900000.0: tmp = t_0 elif x <= 3900000.0: tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) elif x <= 1.26e+49: tmp = t_0 else: tmp = t_1 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(47.066876606 + Float64(x * Float64(313.399215894 + Float64(Float64(x + 43.3400022514) * Float64(x * x)))))) t_1 = Float64(Float64(x + -2.0) / 0.24013125253755718) tmp = 0.0 if (x <= -1e+65) tmp = t_1; elseif (x <= -5.5e+24) tmp = Float64(y / Float64(x * x)); elseif (x <= -900000.0) tmp = t_0; elseif (x <= 3900000.0) 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)); elseif (x <= 1.26e+49) tmp = t_0; else tmp = t_1; 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)) / (47.066876606 + (x * (313.399215894 + ((x + 43.3400022514) * (x * x))))); t_1 = (x + -2.0) / 0.24013125253755718; tmp = 0.0; if (x <= -1e+65) tmp = t_1; elseif (x <= -5.5e+24) tmp = y / (x * x); elseif (x <= -900000.0) tmp = t_0; elseif (x <= 3900000.0) tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606); elseif (x <= 1.26e+49) tmp = t_0; else tmp = t_1; 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[(47.066876606 + N[(x * N[(313.399215894 + N[(N[(x + 43.3400022514), $MachinePrecision] * N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision]}, If[LessEqual[x, -1e+65], t$95$1, If[LessEqual[x, -5.5e+24], N[(y / N[(x * x), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -900000.0], t$95$0, If[LessEqual[x, 3900000.0], 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], If[LessEqual[x, 1.26e+49], t$95$0, t$95$1]]]]]]]
\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)}{47.066876606 + x \cdot \left(313.399215894 + \left(x + 43.3400022514\right) \cdot \left(x \cdot x\right)\right)}\\
t_1 := \frac{x + -2}{0.24013125253755718}\\
\mathbf{if}\;x \leq -1 \cdot 10^{+65}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -5.5 \cdot 10^{+24}:\\
\;\;\;\;\frac{y}{x \cdot x}\\
\mathbf{elif}\;x \leq -900000:\\
\;\;\;\;t_0\\
\mathbf{elif}\;x \leq 3900000:\\
\;\;\;\;\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{elif}\;x \leq 1.26 \cdot 10^{+49}:\\
\;\;\;\;t_0\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if x < -9.9999999999999999e64 or 1.2599999999999999e49 < x Initial program 1.1%
associate-/l*5.5%
sub-neg5.5%
metadata-eval5.5%
fma-def5.5%
fma-def5.5%
fma-def5.5%
fma-def5.5%
fma-def5.5%
fma-def5.5%
fma-def5.5%
Simplified5.5%
Taylor expanded in x around inf 98.7%
if -9.9999999999999999e64 < x < -5.5000000000000002e24Initial program 42.0%
Taylor expanded in y around inf 42.0%
Taylor expanded in x around inf 99.4%
unpow299.4%
Simplified99.4%
if -5.5000000000000002e24 < x < -9e5 or 3.9e6 < x < 1.2599999999999999e49Initial program 85.9%
Taylor expanded in x around inf 84.0%
+-commutative84.0%
cube-mult83.9%
unpow283.9%
distribute-rgt-out84.0%
unpow284.0%
Simplified84.0%
if -9e5 < x < 3.9e6Initial program 99.7%
Taylor expanded in x around 0 99.7%
*-commutative99.7%
Simplified99.7%
Final simplification98.4%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (/ (+ x -2.0) 0.24013125253755718)))
(if (<= x -1e+65)
t_0
(if (<= x -4.9e+24)
(/ y (* x x))
(if (<= x -1050000.0)
(/
(+ x -2.0)
(+
0.24013125253755718
(- (/ 5.86923874282773 x) (/ 55.572073733743466 (* x x)))))
(if (<= x 8.2e+47)
(/
(* (- x 2.0) (+ z (* x (+ y (* x 137.519416416)))))
(+
(*
x
(+
(* x (+ (* x (+ x 43.3400022514)) 263.505074721))
313.399215894))
47.066876606))
t_0))))))
double code(double x, double y, double z) {
double t_0 = (x + -2.0) / 0.24013125253755718;
double tmp;
if (x <= -1e+65) {
tmp = t_0;
} else if (x <= -4.9e+24) {
tmp = y / (x * x);
} else if (x <= -1050000.0) {
tmp = (x + -2.0) / (0.24013125253755718 + ((5.86923874282773 / x) - (55.572073733743466 / (x * x))));
} else if (x <= 8.2e+47) {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 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 = (x + (-2.0d0)) / 0.24013125253755718d0
if (x <= (-1d+65)) then
tmp = t_0
else if (x <= (-4.9d+24)) then
tmp = y / (x * x)
else if (x <= (-1050000.0d0)) then
tmp = (x + (-2.0d0)) / (0.24013125253755718d0 + ((5.86923874282773d0 / x) - (55.572073733743466d0 / (x * x))))
else if (x <= 8.2d+47) 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 = t_0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = (x + -2.0) / 0.24013125253755718;
double tmp;
if (x <= -1e+65) {
tmp = t_0;
} else if (x <= -4.9e+24) {
tmp = y / (x * x);
} else if (x <= -1050000.0) {
tmp = (x + -2.0) / (0.24013125253755718 + ((5.86923874282773 / x) - (55.572073733743466 / (x * x))));
} else if (x <= 8.2e+47) {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606);
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = (x + -2.0) / 0.24013125253755718 tmp = 0 if x <= -1e+65: tmp = t_0 elif x <= -4.9e+24: tmp = y / (x * x) elif x <= -1050000.0: tmp = (x + -2.0) / (0.24013125253755718 + ((5.86923874282773 / x) - (55.572073733743466 / (x * x)))) elif x <= 8.2e+47: tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(Float64(x + -2.0) / 0.24013125253755718) tmp = 0.0 if (x <= -1e+65) tmp = t_0; elseif (x <= -4.9e+24) tmp = Float64(y / Float64(x * x)); elseif (x <= -1050000.0) tmp = Float64(Float64(x + -2.0) / Float64(0.24013125253755718 + Float64(Float64(5.86923874282773 / x) - Float64(55.572073733743466 / Float64(x * x))))); elseif (x <= 8.2e+47) 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 = t_0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = (x + -2.0) / 0.24013125253755718; tmp = 0.0; if (x <= -1e+65) tmp = t_0; elseif (x <= -4.9e+24) tmp = y / (x * x); elseif (x <= -1050000.0) tmp = (x + -2.0) / (0.24013125253755718 + ((5.86923874282773 / x) - (55.572073733743466 / (x * x)))); elseif (x <= 8.2e+47) tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606); else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision]}, If[LessEqual[x, -1e+65], t$95$0, If[LessEqual[x, -4.9e+24], N[(y / N[(x * x), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -1050000.0], N[(N[(x + -2.0), $MachinePrecision] / N[(0.24013125253755718 + N[(N[(5.86923874282773 / x), $MachinePrecision] - N[(55.572073733743466 / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 8.2e+47], 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], t$95$0]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{x + -2}{0.24013125253755718}\\
\mathbf{if}\;x \leq -1 \cdot 10^{+65}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;x \leq -4.9 \cdot 10^{+24}:\\
\;\;\;\;\frac{y}{x \cdot x}\\
\mathbf{elif}\;x \leq -1050000:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718 + \left(\frac{5.86923874282773}{x} - \frac{55.572073733743466}{x \cdot x}\right)}\\
\mathbf{elif}\;x \leq 8.2 \cdot 10^{+47}:\\
\;\;\;\;\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}:\\
\;\;\;\;t_0\\
\end{array}
\end{array}
if x < -9.9999999999999999e64 or 8.2000000000000002e47 < x Initial program 1.1%
associate-/l*5.5%
sub-neg5.5%
metadata-eval5.5%
fma-def5.5%
fma-def5.5%
fma-def5.5%
fma-def5.5%
fma-def5.5%
fma-def5.5%
fma-def5.5%
Simplified5.5%
Taylor expanded in x around inf 98.7%
if -9.9999999999999999e64 < x < -4.90000000000000029e24Initial program 42.0%
Taylor expanded in y around inf 42.0%
Taylor expanded in x around inf 99.4%
unpow299.4%
Simplified99.4%
if -4.90000000000000029e24 < x < -1.05e6Initial program 99.6%
associate-/l*99.2%
sub-neg99.2%
metadata-eval99.2%
fma-def99.2%
fma-def99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
Simplified99.6%
Taylor expanded in x around inf 74.2%
associate--l+74.2%
associate-*r/74.2%
metadata-eval74.2%
associate-*r/74.2%
metadata-eval74.2%
unpow274.2%
Simplified74.2%
if -1.05e6 < x < 8.2000000000000002e47Initial program 98.3%
Taylor expanded in x around 0 96.8%
*-commutative96.8%
Simplified96.8%
Final simplification97.3%
(FPCore (x y z)
:precision binary64
(if (<= x -1e+65)
(/ (+ x -2.0) 0.24013125253755718)
(if (<= x -4.4e+24)
(/ y (* x x))
(if (or (<= x -240.0) (not (<= x 5000.0)))
(/
(+ x -2.0)
(+
0.24013125253755718
(- (/ 5.86923874282773 x) (/ 55.572073733743466 (* x x)))))
(+
(*
x
(-
(* 0.0212463641547976 (+ z (* y -2.0)))
(* z -0.28294182010212804)))
(* z -0.0424927283095952))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -1e+65) {
tmp = (x + -2.0) / 0.24013125253755718;
} else if (x <= -4.4e+24) {
tmp = y / (x * x);
} else if ((x <= -240.0) || !(x <= 5000.0)) {
tmp = (x + -2.0) / (0.24013125253755718 + ((5.86923874282773 / x) - (55.572073733743466 / (x * x))));
} else {
tmp = (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804))) + (z * -0.0424927283095952);
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-1d+65)) then
tmp = (x + (-2.0d0)) / 0.24013125253755718d0
else if (x <= (-4.4d+24)) then
tmp = y / (x * x)
else if ((x <= (-240.0d0)) .or. (.not. (x <= 5000.0d0))) then
tmp = (x + (-2.0d0)) / (0.24013125253755718d0 + ((5.86923874282773d0 / x) - (55.572073733743466d0 / (x * x))))
else
tmp = (x * ((0.0212463641547976d0 * (z + (y * (-2.0d0)))) - (z * (-0.28294182010212804d0)))) + (z * (-0.0424927283095952d0))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -1e+65) {
tmp = (x + -2.0) / 0.24013125253755718;
} else if (x <= -4.4e+24) {
tmp = y / (x * x);
} else if ((x <= -240.0) || !(x <= 5000.0)) {
tmp = (x + -2.0) / (0.24013125253755718 + ((5.86923874282773 / x) - (55.572073733743466 / (x * x))));
} else {
tmp = (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804))) + (z * -0.0424927283095952);
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -1e+65: tmp = (x + -2.0) / 0.24013125253755718 elif x <= -4.4e+24: tmp = y / (x * x) elif (x <= -240.0) or not (x <= 5000.0): tmp = (x + -2.0) / (0.24013125253755718 + ((5.86923874282773 / x) - (55.572073733743466 / (x * x)))) else: tmp = (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804))) + (z * -0.0424927283095952) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -1e+65) tmp = Float64(Float64(x + -2.0) / 0.24013125253755718); elseif (x <= -4.4e+24) tmp = Float64(y / Float64(x * x)); elseif ((x <= -240.0) || !(x <= 5000.0)) tmp = Float64(Float64(x + -2.0) / Float64(0.24013125253755718 + Float64(Float64(5.86923874282773 / x) - Float64(55.572073733743466 / Float64(x * x))))); else tmp = Float64(Float64(x * Float64(Float64(0.0212463641547976 * Float64(z + Float64(y * -2.0))) - Float64(z * -0.28294182010212804))) + Float64(z * -0.0424927283095952)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -1e+65) tmp = (x + -2.0) / 0.24013125253755718; elseif (x <= -4.4e+24) tmp = y / (x * x); elseif ((x <= -240.0) || ~((x <= 5000.0))) tmp = (x + -2.0) / (0.24013125253755718 + ((5.86923874282773 / x) - (55.572073733743466 / (x * x)))); else tmp = (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804))) + (z * -0.0424927283095952); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -1e+65], N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision], If[LessEqual[x, -4.4e+24], N[(y / N[(x * x), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[x, -240.0], N[Not[LessEqual[x, 5000.0]], $MachinePrecision]], N[(N[(x + -2.0), $MachinePrecision] / N[(0.24013125253755718 + N[(N[(5.86923874282773 / x), $MachinePrecision] - N[(55.572073733743466 / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x * N[(N[(0.0212463641547976 * N[(z + N[(y * -2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(z * -0.28294182010212804), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(z * -0.0424927283095952), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1 \cdot 10^{+65}:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718}\\
\mathbf{elif}\;x \leq -4.4 \cdot 10^{+24}:\\
\;\;\;\;\frac{y}{x \cdot x}\\
\mathbf{elif}\;x \leq -240 \lor \neg \left(x \leq 5000\right):\\
\;\;\;\;\frac{x + -2}{0.24013125253755718 + \left(\frac{5.86923874282773}{x} - \frac{55.572073733743466}{x \cdot x}\right)}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(0.0212463641547976 \cdot \left(z + y \cdot -2\right) - z \cdot -0.28294182010212804\right) + z \cdot -0.0424927283095952\\
\end{array}
\end{array}
if x < -9.9999999999999999e64Initial program 0.3%
associate-/l*7.8%
sub-neg7.8%
metadata-eval7.8%
fma-def7.8%
fma-def7.8%
fma-def7.8%
fma-def7.8%
fma-def7.8%
fma-def7.8%
fma-def7.8%
Simplified7.8%
Taylor expanded in x around inf 97.6%
if -9.9999999999999999e64 < x < -4.40000000000000003e24Initial program 42.0%
Taylor expanded in y around inf 42.0%
Taylor expanded in x around inf 99.4%
unpow299.4%
Simplified99.4%
if -4.40000000000000003e24 < x < -240 or 5e3 < x Initial program 18.1%
associate-/l*20.7%
sub-neg20.7%
metadata-eval20.7%
fma-def20.7%
fma-def20.7%
fma-def20.7%
fma-def20.7%
fma-def20.7%
fma-def20.7%
fma-def20.7%
Simplified20.7%
Taylor expanded in x around inf 87.7%
associate--l+87.7%
associate-*r/87.7%
metadata-eval87.7%
associate-*r/87.7%
metadata-eval87.7%
unpow287.7%
Simplified87.7%
if -240 < x < 5e3Initial program 99.7%
*-commutative99.7%
associate-*r/99.3%
*-commutative99.3%
fma-def99.3%
*-commutative99.3%
fma-def99.3%
*-commutative99.3%
fma-def99.3%
fma-def99.3%
Simplified99.3%
Taylor expanded in x around 0 91.7%
Final simplification91.9%
(FPCore (x y z)
:precision binary64
(if (<= x -1e+65)
(/ (+ x -2.0) 0.24013125253755718)
(if (<= x -3.5e+24)
(/ y (* x x))
(if (or (<= x -7.2e-8) (not (<= x 11200.0)))
(/
(+ x -2.0)
(+
0.24013125253755718
(- (/ 5.86923874282773 x) (/ 55.572073733743466 (* x x)))))
(* z (+ -0.0424927283095952 (* x 0.3041881842569256)))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -1e+65) {
tmp = (x + -2.0) / 0.24013125253755718;
} else if (x <= -3.5e+24) {
tmp = y / (x * x);
} else if ((x <= -7.2e-8) || !(x <= 11200.0)) {
tmp = (x + -2.0) / (0.24013125253755718 + ((5.86923874282773 / x) - (55.572073733743466 / (x * x))));
} else {
tmp = z * (-0.0424927283095952 + (x * 0.3041881842569256));
}
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 <= (-1d+65)) then
tmp = (x + (-2.0d0)) / 0.24013125253755718d0
else if (x <= (-3.5d+24)) then
tmp = y / (x * x)
else if ((x <= (-7.2d-8)) .or. (.not. (x <= 11200.0d0))) then
tmp = (x + (-2.0d0)) / (0.24013125253755718d0 + ((5.86923874282773d0 / x) - (55.572073733743466d0 / (x * x))))
else
tmp = z * ((-0.0424927283095952d0) + (x * 0.3041881842569256d0))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -1e+65) {
tmp = (x + -2.0) / 0.24013125253755718;
} else if (x <= -3.5e+24) {
tmp = y / (x * x);
} else if ((x <= -7.2e-8) || !(x <= 11200.0)) {
tmp = (x + -2.0) / (0.24013125253755718 + ((5.86923874282773 / x) - (55.572073733743466 / (x * x))));
} else {
tmp = z * (-0.0424927283095952 + (x * 0.3041881842569256));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -1e+65: tmp = (x + -2.0) / 0.24013125253755718 elif x <= -3.5e+24: tmp = y / (x * x) elif (x <= -7.2e-8) or not (x <= 11200.0): tmp = (x + -2.0) / (0.24013125253755718 + ((5.86923874282773 / x) - (55.572073733743466 / (x * x)))) else: tmp = z * (-0.0424927283095952 + (x * 0.3041881842569256)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -1e+65) tmp = Float64(Float64(x + -2.0) / 0.24013125253755718); elseif (x <= -3.5e+24) tmp = Float64(y / Float64(x * x)); elseif ((x <= -7.2e-8) || !(x <= 11200.0)) tmp = Float64(Float64(x + -2.0) / Float64(0.24013125253755718 + Float64(Float64(5.86923874282773 / x) - Float64(55.572073733743466 / Float64(x * x))))); else tmp = Float64(z * Float64(-0.0424927283095952 + Float64(x * 0.3041881842569256))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -1e+65) tmp = (x + -2.0) / 0.24013125253755718; elseif (x <= -3.5e+24) tmp = y / (x * x); elseif ((x <= -7.2e-8) || ~((x <= 11200.0))) tmp = (x + -2.0) / (0.24013125253755718 + ((5.86923874282773 / x) - (55.572073733743466 / (x * x)))); else tmp = z * (-0.0424927283095952 + (x * 0.3041881842569256)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -1e+65], N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision], If[LessEqual[x, -3.5e+24], N[(y / N[(x * x), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[x, -7.2e-8], N[Not[LessEqual[x, 11200.0]], $MachinePrecision]], N[(N[(x + -2.0), $MachinePrecision] / N[(0.24013125253755718 + N[(N[(5.86923874282773 / x), $MachinePrecision] - N[(55.572073733743466 / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(z * N[(-0.0424927283095952 + N[(x * 0.3041881842569256), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1 \cdot 10^{+65}:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718}\\
\mathbf{elif}\;x \leq -3.5 \cdot 10^{+24}:\\
\;\;\;\;\frac{y}{x \cdot x}\\
\mathbf{elif}\;x \leq -7.2 \cdot 10^{-8} \lor \neg \left(x \leq 11200\right):\\
\;\;\;\;\frac{x + -2}{0.24013125253755718 + \left(\frac{5.86923874282773}{x} - \frac{55.572073733743466}{x \cdot x}\right)}\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(-0.0424927283095952 + x \cdot 0.3041881842569256\right)\\
\end{array}
\end{array}
if x < -9.9999999999999999e64Initial program 0.3%
associate-/l*7.8%
sub-neg7.8%
metadata-eval7.8%
fma-def7.8%
fma-def7.8%
fma-def7.8%
fma-def7.8%
fma-def7.8%
fma-def7.8%
fma-def7.8%
Simplified7.8%
Taylor expanded in x around inf 97.6%
if -9.9999999999999999e64 < x < -3.5000000000000002e24Initial program 42.0%
Taylor expanded in y around inf 42.0%
Taylor expanded in x around inf 99.4%
unpow299.4%
Simplified99.4%
if -3.5000000000000002e24 < x < -7.19999999999999962e-8 or 11200 < x Initial program 20.3%
associate-/l*22.8%
sub-neg22.8%
metadata-eval22.8%
fma-def22.8%
fma-def22.8%
fma-def22.8%
fma-def22.8%
fma-def22.8%
fma-def22.8%
fma-def22.8%
Simplified22.8%
Taylor expanded in x around inf 85.5%
associate--l+85.5%
associate-*r/85.5%
metadata-eval85.5%
associate-*r/85.5%
metadata-eval85.5%
unpow285.5%
Simplified85.5%
if -7.19999999999999962e-8 < x < 11200Initial program 99.7%
associate-/l*99.5%
sub-neg99.5%
metadata-eval99.5%
fma-def99.5%
fma-def99.5%
fma-def99.5%
fma-def99.5%
fma-def99.4%
fma-def99.4%
fma-def99.4%
Simplified99.4%
Taylor expanded in z around inf 69.9%
Taylor expanded in x around 0 69.1%
+-commutative69.1%
*-commutative69.1%
distribute-rgt-out--69.1%
associate-*l*69.1%
distribute-lft-out69.1%
metadata-eval69.1%
Simplified69.1%
Final simplification80.1%
(FPCore (x y z)
:precision binary64
(if (<= x -1e+65)
(/ (+ x -2.0) 0.24013125253755718)
(if (<= x -3e+24)
(/ y (* x x))
(if (or (<= x -7.2e-8) (not (<= x 5000.0)))
(/
(+ x -2.0)
(+
0.24013125253755718
(- (/ 5.86923874282773 x) (/ 55.572073733743466 (* x x)))))
(/
(+ x -2.0)
(/ (+ 47.066876606 (* x (+ 313.399215894 (* x 263.505074721)))) z))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -1e+65) {
tmp = (x + -2.0) / 0.24013125253755718;
} else if (x <= -3e+24) {
tmp = y / (x * x);
} else if ((x <= -7.2e-8) || !(x <= 5000.0)) {
tmp = (x + -2.0) / (0.24013125253755718 + ((5.86923874282773 / x) - (55.572073733743466 / (x * x))));
} else {
tmp = (x + -2.0) / ((47.066876606 + (x * (313.399215894 + (x * 263.505074721)))) / z);
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-1d+65)) then
tmp = (x + (-2.0d0)) / 0.24013125253755718d0
else if (x <= (-3d+24)) then
tmp = y / (x * x)
else if ((x <= (-7.2d-8)) .or. (.not. (x <= 5000.0d0))) then
tmp = (x + (-2.0d0)) / (0.24013125253755718d0 + ((5.86923874282773d0 / x) - (55.572073733743466d0 / (x * x))))
else
tmp = (x + (-2.0d0)) / ((47.066876606d0 + (x * (313.399215894d0 + (x * 263.505074721d0)))) / z)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -1e+65) {
tmp = (x + -2.0) / 0.24013125253755718;
} else if (x <= -3e+24) {
tmp = y / (x * x);
} else if ((x <= -7.2e-8) || !(x <= 5000.0)) {
tmp = (x + -2.0) / (0.24013125253755718 + ((5.86923874282773 / x) - (55.572073733743466 / (x * x))));
} else {
tmp = (x + -2.0) / ((47.066876606 + (x * (313.399215894 + (x * 263.505074721)))) / z);
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -1e+65: tmp = (x + -2.0) / 0.24013125253755718 elif x <= -3e+24: tmp = y / (x * x) elif (x <= -7.2e-8) or not (x <= 5000.0): tmp = (x + -2.0) / (0.24013125253755718 + ((5.86923874282773 / x) - (55.572073733743466 / (x * x)))) else: tmp = (x + -2.0) / ((47.066876606 + (x * (313.399215894 + (x * 263.505074721)))) / z) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -1e+65) tmp = Float64(Float64(x + -2.0) / 0.24013125253755718); elseif (x <= -3e+24) tmp = Float64(y / Float64(x * x)); elseif ((x <= -7.2e-8) || !(x <= 5000.0)) tmp = Float64(Float64(x + -2.0) / Float64(0.24013125253755718 + Float64(Float64(5.86923874282773 / x) - Float64(55.572073733743466 / Float64(x * x))))); else tmp = Float64(Float64(x + -2.0) / Float64(Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * 263.505074721)))) / z)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -1e+65) tmp = (x + -2.0) / 0.24013125253755718; elseif (x <= -3e+24) tmp = y / (x * x); elseif ((x <= -7.2e-8) || ~((x <= 5000.0))) tmp = (x + -2.0) / (0.24013125253755718 + ((5.86923874282773 / x) - (55.572073733743466 / (x * x)))); else tmp = (x + -2.0) / ((47.066876606 + (x * (313.399215894 + (x * 263.505074721)))) / z); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -1e+65], N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision], If[LessEqual[x, -3e+24], N[(y / N[(x * x), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[x, -7.2e-8], N[Not[LessEqual[x, 5000.0]], $MachinePrecision]], N[(N[(x + -2.0), $MachinePrecision] / N[(0.24013125253755718 + N[(N[(5.86923874282773 / x), $MachinePrecision] - N[(55.572073733743466 / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] / N[(N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * 263.505074721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1 \cdot 10^{+65}:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718}\\
\mathbf{elif}\;x \leq -3 \cdot 10^{+24}:\\
\;\;\;\;\frac{y}{x \cdot x}\\
\mathbf{elif}\;x \leq -7.2 \cdot 10^{-8} \lor \neg \left(x \leq 5000\right):\\
\;\;\;\;\frac{x + -2}{0.24013125253755718 + \left(\frac{5.86923874282773}{x} - \frac{55.572073733743466}{x \cdot x}\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x + -2}{\frac{47.066876606 + x \cdot \left(313.399215894 + x \cdot 263.505074721\right)}{z}}\\
\end{array}
\end{array}
if x < -9.9999999999999999e64Initial program 0.3%
associate-/l*7.8%
sub-neg7.8%
metadata-eval7.8%
fma-def7.8%
fma-def7.8%
fma-def7.8%
fma-def7.8%
fma-def7.8%
fma-def7.8%
fma-def7.8%
Simplified7.8%
Taylor expanded in x around inf 97.6%
if -9.9999999999999999e64 < x < -2.99999999999999995e24Initial program 42.0%
Taylor expanded in y around inf 42.0%
Taylor expanded in x around inf 99.4%
unpow299.4%
Simplified99.4%
if -2.99999999999999995e24 < x < -7.19999999999999962e-8 or 5e3 < x Initial program 20.3%
associate-/l*22.8%
sub-neg22.8%
metadata-eval22.8%
fma-def22.8%
fma-def22.8%
fma-def22.8%
fma-def22.8%
fma-def22.8%
fma-def22.8%
fma-def22.8%
Simplified22.8%
Taylor expanded in x around inf 85.5%
associate--l+85.5%
associate-*r/85.5%
metadata-eval85.5%
associate-*r/85.5%
metadata-eval85.5%
unpow285.5%
Simplified85.5%
if -7.19999999999999962e-8 < x < 5e3Initial program 99.7%
associate-/l*99.5%
sub-neg99.5%
metadata-eval99.5%
fma-def99.5%
fma-def99.5%
fma-def99.5%
fma-def99.5%
fma-def99.4%
fma-def99.4%
fma-def99.4%
Simplified99.4%
Taylor expanded in z around inf 69.9%
Taylor expanded in x around 0 69.2%
*-commutative69.2%
Simplified69.2%
Final simplification80.1%
(FPCore (x y z)
:precision binary64
(if (<= x -1e+65)
(/ (+ x -2.0) 0.24013125253755718)
(if (<= x -3.5e+24)
(/ y (* x x))
(if (or (<= x -1350.0) (not (<= x 5000.0)))
(- (+ (* x 4.16438922228) (/ 3655.1204654076414 x)) 110.1139242984811)
(* z (+ -0.0424927283095952 (* x 0.3041881842569256)))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -1e+65) {
tmp = (x + -2.0) / 0.24013125253755718;
} else if (x <= -3.5e+24) {
tmp = y / (x * x);
} else if ((x <= -1350.0) || !(x <= 5000.0)) {
tmp = ((x * 4.16438922228) + (3655.1204654076414 / x)) - 110.1139242984811;
} else {
tmp = z * (-0.0424927283095952 + (x * 0.3041881842569256));
}
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 <= (-1d+65)) then
tmp = (x + (-2.0d0)) / 0.24013125253755718d0
else if (x <= (-3.5d+24)) then
tmp = y / (x * x)
else if ((x <= (-1350.0d0)) .or. (.not. (x <= 5000.0d0))) then
tmp = ((x * 4.16438922228d0) + (3655.1204654076414d0 / x)) - 110.1139242984811d0
else
tmp = z * ((-0.0424927283095952d0) + (x * 0.3041881842569256d0))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -1e+65) {
tmp = (x + -2.0) / 0.24013125253755718;
} else if (x <= -3.5e+24) {
tmp = y / (x * x);
} else if ((x <= -1350.0) || !(x <= 5000.0)) {
tmp = ((x * 4.16438922228) + (3655.1204654076414 / x)) - 110.1139242984811;
} else {
tmp = z * (-0.0424927283095952 + (x * 0.3041881842569256));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -1e+65: tmp = (x + -2.0) / 0.24013125253755718 elif x <= -3.5e+24: tmp = y / (x * x) elif (x <= -1350.0) or not (x <= 5000.0): tmp = ((x * 4.16438922228) + (3655.1204654076414 / x)) - 110.1139242984811 else: tmp = z * (-0.0424927283095952 + (x * 0.3041881842569256)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -1e+65) tmp = Float64(Float64(x + -2.0) / 0.24013125253755718); elseif (x <= -3.5e+24) tmp = Float64(y / Float64(x * x)); elseif ((x <= -1350.0) || !(x <= 5000.0)) tmp = Float64(Float64(Float64(x * 4.16438922228) + Float64(3655.1204654076414 / x)) - 110.1139242984811); else tmp = Float64(z * Float64(-0.0424927283095952 + Float64(x * 0.3041881842569256))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -1e+65) tmp = (x + -2.0) / 0.24013125253755718; elseif (x <= -3.5e+24) tmp = y / (x * x); elseif ((x <= -1350.0) || ~((x <= 5000.0))) tmp = ((x * 4.16438922228) + (3655.1204654076414 / x)) - 110.1139242984811; else tmp = z * (-0.0424927283095952 + (x * 0.3041881842569256)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -1e+65], N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision], If[LessEqual[x, -3.5e+24], N[(y / N[(x * x), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[x, -1350.0], N[Not[LessEqual[x, 5000.0]], $MachinePrecision]], N[(N[(N[(x * 4.16438922228), $MachinePrecision] + N[(3655.1204654076414 / x), $MachinePrecision]), $MachinePrecision] - 110.1139242984811), $MachinePrecision], N[(z * N[(-0.0424927283095952 + N[(x * 0.3041881842569256), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1 \cdot 10^{+65}:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718}\\
\mathbf{elif}\;x \leq -3.5 \cdot 10^{+24}:\\
\;\;\;\;\frac{y}{x \cdot x}\\
\mathbf{elif}\;x \leq -1350 \lor \neg \left(x \leq 5000\right):\\
\;\;\;\;\left(x \cdot 4.16438922228 + \frac{3655.1204654076414}{x}\right) - 110.1139242984811\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(-0.0424927283095952 + x \cdot 0.3041881842569256\right)\\
\end{array}
\end{array}
if x < -9.9999999999999999e64Initial program 0.3%
associate-/l*7.8%
sub-neg7.8%
metadata-eval7.8%
fma-def7.8%
fma-def7.8%
fma-def7.8%
fma-def7.8%
fma-def7.8%
fma-def7.8%
fma-def7.8%
Simplified7.8%
Taylor expanded in x around inf 97.6%
if -9.9999999999999999e64 < x < -3.5000000000000002e24Initial program 42.0%
Taylor expanded in y around inf 42.0%
Taylor expanded in x around inf 99.4%
unpow299.4%
Simplified99.4%
if -3.5000000000000002e24 < x < -1350 or 5e3 < x Initial program 18.1%
*-commutative18.1%
associate-*r/20.7%
*-commutative20.7%
fma-def20.7%
*-commutative20.7%
fma-def20.7%
*-commutative20.7%
fma-def20.7%
fma-def20.7%
Simplified20.7%
Taylor expanded in x around inf 87.1%
Taylor expanded in x around 0 87.1%
if -1350 < x < 5e3Initial program 99.7%
associate-/l*99.4%
sub-neg99.4%
metadata-eval99.4%
fma-def99.4%
fma-def99.4%
fma-def99.4%
fma-def99.4%
fma-def99.4%
fma-def99.4%
fma-def99.4%
Simplified99.4%
Taylor expanded in z around inf 68.8%
Taylor expanded in x around 0 68.1%
+-commutative68.1%
*-commutative68.1%
distribute-rgt-out--68.1%
associate-*l*68.1%
distribute-lft-out68.1%
metadata-eval68.1%
Simplified68.1%
Final simplification79.9%
(FPCore (x y z)
:precision binary64
(if (<= x -1e+65)
(/ (+ x -2.0) 0.24013125253755718)
(if (<= x -4.8e+24)
(/ y (* x x))
(if (<= x -190.0)
(- (+ (* x 4.16438922228) (/ 3655.1204654076414 x)) 110.1139242984811)
(if (<= x 36000.0)
(* z (+ -0.0424927283095952 (* x 0.3041881842569256)))
(/ (+ x -2.0) (+ 0.24013125253755718 (/ 5.86923874282773 x))))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -1e+65) {
tmp = (x + -2.0) / 0.24013125253755718;
} else if (x <= -4.8e+24) {
tmp = y / (x * x);
} else if (x <= -190.0) {
tmp = ((x * 4.16438922228) + (3655.1204654076414 / x)) - 110.1139242984811;
} else if (x <= 36000.0) {
tmp = z * (-0.0424927283095952 + (x * 0.3041881842569256));
} else {
tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / 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 <= (-1d+65)) then
tmp = (x + (-2.0d0)) / 0.24013125253755718d0
else if (x <= (-4.8d+24)) then
tmp = y / (x * x)
else if (x <= (-190.0d0)) then
tmp = ((x * 4.16438922228d0) + (3655.1204654076414d0 / x)) - 110.1139242984811d0
else if (x <= 36000.0d0) then
tmp = z * ((-0.0424927283095952d0) + (x * 0.3041881842569256d0))
else
tmp = (x + (-2.0d0)) / (0.24013125253755718d0 + (5.86923874282773d0 / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -1e+65) {
tmp = (x + -2.0) / 0.24013125253755718;
} else if (x <= -4.8e+24) {
tmp = y / (x * x);
} else if (x <= -190.0) {
tmp = ((x * 4.16438922228) + (3655.1204654076414 / x)) - 110.1139242984811;
} else if (x <= 36000.0) {
tmp = z * (-0.0424927283095952 + (x * 0.3041881842569256));
} else {
tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -1e+65: tmp = (x + -2.0) / 0.24013125253755718 elif x <= -4.8e+24: tmp = y / (x * x) elif x <= -190.0: tmp = ((x * 4.16438922228) + (3655.1204654076414 / x)) - 110.1139242984811 elif x <= 36000.0: tmp = z * (-0.0424927283095952 + (x * 0.3041881842569256)) else: tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -1e+65) tmp = Float64(Float64(x + -2.0) / 0.24013125253755718); elseif (x <= -4.8e+24) tmp = Float64(y / Float64(x * x)); elseif (x <= -190.0) tmp = Float64(Float64(Float64(x * 4.16438922228) + Float64(3655.1204654076414 / x)) - 110.1139242984811); elseif (x <= 36000.0) tmp = Float64(z * Float64(-0.0424927283095952 + Float64(x * 0.3041881842569256))); else tmp = Float64(Float64(x + -2.0) / Float64(0.24013125253755718 + Float64(5.86923874282773 / x))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -1e+65) tmp = (x + -2.0) / 0.24013125253755718; elseif (x <= -4.8e+24) tmp = y / (x * x); elseif (x <= -190.0) tmp = ((x * 4.16438922228) + (3655.1204654076414 / x)) - 110.1139242984811; elseif (x <= 36000.0) tmp = z * (-0.0424927283095952 + (x * 0.3041881842569256)); else tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -1e+65], N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision], If[LessEqual[x, -4.8e+24], N[(y / N[(x * x), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -190.0], N[(N[(N[(x * 4.16438922228), $MachinePrecision] + N[(3655.1204654076414 / x), $MachinePrecision]), $MachinePrecision] - 110.1139242984811), $MachinePrecision], If[LessEqual[x, 36000.0], N[(z * N[(-0.0424927283095952 + N[(x * 0.3041881842569256), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] / N[(0.24013125253755718 + N[(5.86923874282773 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1 \cdot 10^{+65}:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718}\\
\mathbf{elif}\;x \leq -4.8 \cdot 10^{+24}:\\
\;\;\;\;\frac{y}{x \cdot x}\\
\mathbf{elif}\;x \leq -190:\\
\;\;\;\;\left(x \cdot 4.16438922228 + \frac{3655.1204654076414}{x}\right) - 110.1139242984811\\
\mathbf{elif}\;x \leq 36000:\\
\;\;\;\;z \cdot \left(-0.0424927283095952 + x \cdot 0.3041881842569256\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718 + \frac{5.86923874282773}{x}}\\
\end{array}
\end{array}
if x < -9.9999999999999999e64Initial program 0.3%
associate-/l*7.8%
sub-neg7.8%
metadata-eval7.8%
fma-def7.8%
fma-def7.8%
fma-def7.8%
fma-def7.8%
fma-def7.8%
fma-def7.8%
fma-def7.8%
Simplified7.8%
Taylor expanded in x around inf 97.6%
if -9.9999999999999999e64 < x < -4.8000000000000001e24Initial program 42.0%
Taylor expanded in y around inf 42.0%
Taylor expanded in x around inf 99.4%
unpow299.4%
Simplified99.4%
if -4.8000000000000001e24 < x < -190Initial program 99.6%
*-commutative99.6%
associate-*r/99.2%
*-commutative99.2%
fma-def99.2%
*-commutative99.2%
fma-def99.2%
*-commutative99.2%
fma-def99.2%
fma-def99.2%
Simplified99.6%
Taylor expanded in x around inf 73.0%
Taylor expanded in x around 0 73.0%
if -190 < x < 36000Initial program 99.7%
associate-/l*99.4%
sub-neg99.4%
metadata-eval99.4%
fma-def99.4%
fma-def99.4%
fma-def99.4%
fma-def99.4%
fma-def99.4%
fma-def99.4%
fma-def99.4%
Simplified99.4%
Taylor expanded in z around inf 68.8%
Taylor expanded in x around 0 68.1%
+-commutative68.1%
*-commutative68.1%
distribute-rgt-out--68.1%
associate-*l*68.1%
distribute-lft-out68.1%
metadata-eval68.1%
Simplified68.1%
if 36000 < x Initial program 13.3%
associate-/l*16.1%
sub-neg16.1%
metadata-eval16.1%
fma-def16.1%
fma-def16.1%
fma-def16.1%
fma-def16.1%
fma-def16.1%
fma-def16.1%
fma-def16.1%
Simplified16.1%
Taylor expanded in x around inf 88.5%
associate-*r/88.5%
metadata-eval88.5%
Simplified88.5%
Final simplification80.1%
(FPCore (x y z)
:precision binary64
(if (<= x -1e+65)
(/ (+ x -2.0) 0.24013125253755718)
(if (<= x -2.3e+24)
(/ y (* x x))
(if (or (<= x -330.0) (not (<= x 6200.0)))
(- (* x 4.16438922228) 110.1139242984811)
(* z (+ -0.0424927283095952 (* x 0.3041881842569256)))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -1e+65) {
tmp = (x + -2.0) / 0.24013125253755718;
} else if (x <= -2.3e+24) {
tmp = y / (x * x);
} else if ((x <= -330.0) || !(x <= 6200.0)) {
tmp = (x * 4.16438922228) - 110.1139242984811;
} else {
tmp = z * (-0.0424927283095952 + (x * 0.3041881842569256));
}
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 <= (-1d+65)) then
tmp = (x + (-2.0d0)) / 0.24013125253755718d0
else if (x <= (-2.3d+24)) then
tmp = y / (x * x)
else if ((x <= (-330.0d0)) .or. (.not. (x <= 6200.0d0))) then
tmp = (x * 4.16438922228d0) - 110.1139242984811d0
else
tmp = z * ((-0.0424927283095952d0) + (x * 0.3041881842569256d0))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -1e+65) {
tmp = (x + -2.0) / 0.24013125253755718;
} else if (x <= -2.3e+24) {
tmp = y / (x * x);
} else if ((x <= -330.0) || !(x <= 6200.0)) {
tmp = (x * 4.16438922228) - 110.1139242984811;
} else {
tmp = z * (-0.0424927283095952 + (x * 0.3041881842569256));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -1e+65: tmp = (x + -2.0) / 0.24013125253755718 elif x <= -2.3e+24: tmp = y / (x * x) elif (x <= -330.0) or not (x <= 6200.0): tmp = (x * 4.16438922228) - 110.1139242984811 else: tmp = z * (-0.0424927283095952 + (x * 0.3041881842569256)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -1e+65) tmp = Float64(Float64(x + -2.0) / 0.24013125253755718); elseif (x <= -2.3e+24) tmp = Float64(y / Float64(x * x)); elseif ((x <= -330.0) || !(x <= 6200.0)) tmp = Float64(Float64(x * 4.16438922228) - 110.1139242984811); else tmp = Float64(z * Float64(-0.0424927283095952 + Float64(x * 0.3041881842569256))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -1e+65) tmp = (x + -2.0) / 0.24013125253755718; elseif (x <= -2.3e+24) tmp = y / (x * x); elseif ((x <= -330.0) || ~((x <= 6200.0))) tmp = (x * 4.16438922228) - 110.1139242984811; else tmp = z * (-0.0424927283095952 + (x * 0.3041881842569256)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -1e+65], N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision], If[LessEqual[x, -2.3e+24], N[(y / N[(x * x), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[x, -330.0], N[Not[LessEqual[x, 6200.0]], $MachinePrecision]], N[(N[(x * 4.16438922228), $MachinePrecision] - 110.1139242984811), $MachinePrecision], N[(z * N[(-0.0424927283095952 + N[(x * 0.3041881842569256), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1 \cdot 10^{+65}:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718}\\
\mathbf{elif}\;x \leq -2.3 \cdot 10^{+24}:\\
\;\;\;\;\frac{y}{x \cdot x}\\
\mathbf{elif}\;x \leq -330 \lor \neg \left(x \leq 6200\right):\\
\;\;\;\;x \cdot 4.16438922228 - 110.1139242984811\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(-0.0424927283095952 + x \cdot 0.3041881842569256\right)\\
\end{array}
\end{array}
if x < -9.9999999999999999e64Initial program 0.3%
associate-/l*7.8%
sub-neg7.8%
metadata-eval7.8%
fma-def7.8%
fma-def7.8%
fma-def7.8%
fma-def7.8%
fma-def7.8%
fma-def7.8%
fma-def7.8%
Simplified7.8%
Taylor expanded in x around inf 97.6%
if -9.9999999999999999e64 < x < -2.2999999999999999e24Initial program 42.0%
Taylor expanded in y around inf 42.0%
Taylor expanded in x around inf 99.4%
unpow299.4%
Simplified99.4%
if -2.2999999999999999e24 < x < -330 or 6200 < x Initial program 18.1%
*-commutative18.1%
associate-*r/20.7%
*-commutative20.7%
fma-def20.7%
*-commutative20.7%
fma-def20.7%
*-commutative20.7%
fma-def20.7%
fma-def20.7%
Simplified20.7%
Taylor expanded in x around inf 86.8%
if -330 < x < 6200Initial program 99.7%
associate-/l*99.4%
sub-neg99.4%
metadata-eval99.4%
fma-def99.4%
fma-def99.4%
fma-def99.4%
fma-def99.4%
fma-def99.4%
fma-def99.4%
fma-def99.4%
Simplified99.4%
Taylor expanded in z around inf 68.8%
Taylor expanded in x around 0 68.1%
+-commutative68.1%
*-commutative68.1%
distribute-rgt-out--68.1%
associate-*l*68.1%
distribute-lft-out68.1%
metadata-eval68.1%
Simplified68.1%
Final simplification79.8%
(FPCore (x y z)
:precision binary64
(if (<= x -1e+65)
(* x 4.16438922228)
(if (<= x -2.35e+24)
(/ y (* x x))
(if (or (<= x -1350.0) (not (<= x 3.0)))
(- (* x 4.16438922228) 110.1139242984811)
(* z -0.0424927283095952)))))
double code(double x, double y, double z) {
double tmp;
if (x <= -1e+65) {
tmp = x * 4.16438922228;
} else if (x <= -2.35e+24) {
tmp = y / (x * x);
} else if ((x <= -1350.0) || !(x <= 3.0)) {
tmp = (x * 4.16438922228) - 110.1139242984811;
} else {
tmp = z * -0.0424927283095952;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-1d+65)) then
tmp = x * 4.16438922228d0
else if (x <= (-2.35d+24)) then
tmp = y / (x * x)
else if ((x <= (-1350.0d0)) .or. (.not. (x <= 3.0d0))) then
tmp = (x * 4.16438922228d0) - 110.1139242984811d0
else
tmp = z * (-0.0424927283095952d0)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -1e+65) {
tmp = x * 4.16438922228;
} else if (x <= -2.35e+24) {
tmp = y / (x * x);
} else if ((x <= -1350.0) || !(x <= 3.0)) {
tmp = (x * 4.16438922228) - 110.1139242984811;
} else {
tmp = z * -0.0424927283095952;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -1e+65: tmp = x * 4.16438922228 elif x <= -2.35e+24: tmp = y / (x * x) elif (x <= -1350.0) or not (x <= 3.0): tmp = (x * 4.16438922228) - 110.1139242984811 else: tmp = z * -0.0424927283095952 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -1e+65) tmp = Float64(x * 4.16438922228); elseif (x <= -2.35e+24) tmp = Float64(y / Float64(x * x)); elseif ((x <= -1350.0) || !(x <= 3.0)) tmp = Float64(Float64(x * 4.16438922228) - 110.1139242984811); else tmp = Float64(z * -0.0424927283095952); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -1e+65) tmp = x * 4.16438922228; elseif (x <= -2.35e+24) tmp = y / (x * x); elseif ((x <= -1350.0) || ~((x <= 3.0))) tmp = (x * 4.16438922228) - 110.1139242984811; else tmp = z * -0.0424927283095952; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -1e+65], N[(x * 4.16438922228), $MachinePrecision], If[LessEqual[x, -2.35e+24], N[(y / N[(x * x), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[x, -1350.0], N[Not[LessEqual[x, 3.0]], $MachinePrecision]], N[(N[(x * 4.16438922228), $MachinePrecision] - 110.1139242984811), $MachinePrecision], N[(z * -0.0424927283095952), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1 \cdot 10^{+65}:\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{elif}\;x \leq -2.35 \cdot 10^{+24}:\\
\;\;\;\;\frac{y}{x \cdot x}\\
\mathbf{elif}\;x \leq -1350 \lor \neg \left(x \leq 3\right):\\
\;\;\;\;x \cdot 4.16438922228 - 110.1139242984811\\
\mathbf{else}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\end{array}
\end{array}
if x < -9.9999999999999999e64Initial program 0.3%
*-commutative0.3%
associate-*r/7.8%
*-commutative7.8%
fma-def7.8%
*-commutative7.8%
fma-def7.8%
*-commutative7.8%
fma-def7.8%
fma-def7.8%
Simplified7.8%
Taylor expanded in x around inf 97.0%
*-commutative97.0%
Simplified97.0%
if -9.9999999999999999e64 < x < -2.35e24Initial program 42.0%
Taylor expanded in y around inf 42.0%
Taylor expanded in x around inf 99.4%
unpow299.4%
Simplified99.4%
if -2.35e24 < x < -1350 or 3 < x Initial program 19.2%
*-commutative19.2%
associate-*r/21.8%
*-commutative21.8%
fma-def21.8%
*-commutative21.8%
fma-def21.8%
*-commutative21.8%
fma-def21.8%
fma-def21.8%
Simplified21.8%
Taylor expanded in x around inf 85.6%
if -1350 < x < 3Initial program 99.7%
*-commutative99.7%
associate-*r/99.3%
*-commutative99.3%
fma-def99.3%
*-commutative99.3%
fma-def99.3%
*-commutative99.3%
fma-def99.3%
fma-def99.3%
Simplified99.3%
Taylor expanded in x around 0 68.0%
Final simplification79.4%
(FPCore (x y z)
:precision binary64
(if (<= x -1e+65)
(/ (+ x -2.0) 0.24013125253755718)
(if (<= x -3.6e+24)
(/ y (* x x))
(if (or (<= x -135.0) (not (<= x 9.5)))
(- (* x 4.16438922228) 110.1139242984811)
(* z -0.0424927283095952)))))
double code(double x, double y, double z) {
double tmp;
if (x <= -1e+65) {
tmp = (x + -2.0) / 0.24013125253755718;
} else if (x <= -3.6e+24) {
tmp = y / (x * x);
} else if ((x <= -135.0) || !(x <= 9.5)) {
tmp = (x * 4.16438922228) - 110.1139242984811;
} else {
tmp = z * -0.0424927283095952;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-1d+65)) then
tmp = (x + (-2.0d0)) / 0.24013125253755718d0
else if (x <= (-3.6d+24)) then
tmp = y / (x * x)
else if ((x <= (-135.0d0)) .or. (.not. (x <= 9.5d0))) then
tmp = (x * 4.16438922228d0) - 110.1139242984811d0
else
tmp = z * (-0.0424927283095952d0)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -1e+65) {
tmp = (x + -2.0) / 0.24013125253755718;
} else if (x <= -3.6e+24) {
tmp = y / (x * x);
} else if ((x <= -135.0) || !(x <= 9.5)) {
tmp = (x * 4.16438922228) - 110.1139242984811;
} else {
tmp = z * -0.0424927283095952;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -1e+65: tmp = (x + -2.0) / 0.24013125253755718 elif x <= -3.6e+24: tmp = y / (x * x) elif (x <= -135.0) or not (x <= 9.5): tmp = (x * 4.16438922228) - 110.1139242984811 else: tmp = z * -0.0424927283095952 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -1e+65) tmp = Float64(Float64(x + -2.0) / 0.24013125253755718); elseif (x <= -3.6e+24) tmp = Float64(y / Float64(x * x)); elseif ((x <= -135.0) || !(x <= 9.5)) tmp = Float64(Float64(x * 4.16438922228) - 110.1139242984811); else tmp = Float64(z * -0.0424927283095952); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -1e+65) tmp = (x + -2.0) / 0.24013125253755718; elseif (x <= -3.6e+24) tmp = y / (x * x); elseif ((x <= -135.0) || ~((x <= 9.5))) tmp = (x * 4.16438922228) - 110.1139242984811; else tmp = z * -0.0424927283095952; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -1e+65], N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision], If[LessEqual[x, -3.6e+24], N[(y / N[(x * x), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[x, -135.0], N[Not[LessEqual[x, 9.5]], $MachinePrecision]], N[(N[(x * 4.16438922228), $MachinePrecision] - 110.1139242984811), $MachinePrecision], N[(z * -0.0424927283095952), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1 \cdot 10^{+65}:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718}\\
\mathbf{elif}\;x \leq -3.6 \cdot 10^{+24}:\\
\;\;\;\;\frac{y}{x \cdot x}\\
\mathbf{elif}\;x \leq -135 \lor \neg \left(x \leq 9.5\right):\\
\;\;\;\;x \cdot 4.16438922228 - 110.1139242984811\\
\mathbf{else}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\end{array}
\end{array}
if x < -9.9999999999999999e64Initial program 0.3%
associate-/l*7.8%
sub-neg7.8%
metadata-eval7.8%
fma-def7.8%
fma-def7.8%
fma-def7.8%
fma-def7.8%
fma-def7.8%
fma-def7.8%
fma-def7.8%
Simplified7.8%
Taylor expanded in x around inf 97.6%
if -9.9999999999999999e64 < x < -3.59999999999999983e24Initial program 42.0%
Taylor expanded in y around inf 42.0%
Taylor expanded in x around inf 99.4%
unpow299.4%
Simplified99.4%
if -3.59999999999999983e24 < x < -135 or 9.5 < x Initial program 19.2%
*-commutative19.2%
associate-*r/21.8%
*-commutative21.8%
fma-def21.8%
*-commutative21.8%
fma-def21.8%
*-commutative21.8%
fma-def21.8%
fma-def21.8%
Simplified21.8%
Taylor expanded in x around inf 85.6%
if -135 < x < 9.5Initial program 99.7%
*-commutative99.7%
associate-*r/99.3%
*-commutative99.3%
fma-def99.3%
*-commutative99.3%
fma-def99.3%
*-commutative99.3%
fma-def99.3%
fma-def99.3%
Simplified99.3%
Taylor expanded in x around 0 68.0%
Final simplification79.5%
(FPCore (x y z) :precision binary64 (if (or (<= x -135.0) (not (<= x 2.4))) (- (* x 4.16438922228) 110.1139242984811) (* z -0.0424927283095952)))
double code(double x, double y, double z) {
double tmp;
if ((x <= -135.0) || !(x <= 2.4)) {
tmp = (x * 4.16438922228) - 110.1139242984811;
} else {
tmp = z * -0.0424927283095952;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((x <= (-135.0d0)) .or. (.not. (x <= 2.4d0))) then
tmp = (x * 4.16438922228d0) - 110.1139242984811d0
else
tmp = z * (-0.0424927283095952d0)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -135.0) || !(x <= 2.4)) {
tmp = (x * 4.16438922228) - 110.1139242984811;
} else {
tmp = z * -0.0424927283095952;
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -135.0) or not (x <= 2.4): tmp = (x * 4.16438922228) - 110.1139242984811 else: tmp = z * -0.0424927283095952 return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -135.0) || !(x <= 2.4)) tmp = Float64(Float64(x * 4.16438922228) - 110.1139242984811); else tmp = Float64(z * -0.0424927283095952); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -135.0) || ~((x <= 2.4))) tmp = (x * 4.16438922228) - 110.1139242984811; else tmp = z * -0.0424927283095952; end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -135.0], N[Not[LessEqual[x, 2.4]], $MachinePrecision]], N[(N[(x * 4.16438922228), $MachinePrecision] - 110.1139242984811), $MachinePrecision], N[(z * -0.0424927283095952), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -135 \lor \neg \left(x \leq 2.4\right):\\
\;\;\;\;x \cdot 4.16438922228 - 110.1139242984811\\
\mathbf{else}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\end{array}
\end{array}
if x < -135 or 2.39999999999999991 < x Initial program 12.6%
*-commutative12.6%
associate-*r/18.5%
*-commutative18.5%
fma-def18.5%
*-commutative18.5%
fma-def18.5%
*-commutative18.5%
fma-def18.5%
fma-def18.5%
Simplified18.5%
Taylor expanded in x around inf 86.9%
if -135 < x < 2.39999999999999991Initial program 99.7%
*-commutative99.7%
associate-*r/99.3%
*-commutative99.3%
fma-def99.3%
*-commutative99.3%
fma-def99.3%
*-commutative99.3%
fma-def99.3%
fma-def99.3%
Simplified99.3%
Taylor expanded in x around 0 68.0%
Final simplification77.6%
(FPCore (x y z) :precision binary64 (if (<= x -1750.0) (* x 4.16438922228) (if (<= x 2.0) (* z -0.0424927283095952) (* x 4.16438922228))))
double code(double x, double y, double z) {
double tmp;
if (x <= -1750.0) {
tmp = x * 4.16438922228;
} else if (x <= 2.0) {
tmp = z * -0.0424927283095952;
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-1750.0d0)) then
tmp = x * 4.16438922228d0
else if (x <= 2.0d0) then
tmp = z * (-0.0424927283095952d0)
else
tmp = x * 4.16438922228d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -1750.0) {
tmp = x * 4.16438922228;
} else if (x <= 2.0) {
tmp = z * -0.0424927283095952;
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -1750.0: tmp = x * 4.16438922228 elif x <= 2.0: tmp = z * -0.0424927283095952 else: tmp = x * 4.16438922228 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -1750.0) tmp = Float64(x * 4.16438922228); elseif (x <= 2.0) tmp = Float64(z * -0.0424927283095952); else tmp = Float64(x * 4.16438922228); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -1750.0) tmp = x * 4.16438922228; elseif (x <= 2.0) tmp = z * -0.0424927283095952; else tmp = x * 4.16438922228; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -1750.0], N[(x * 4.16438922228), $MachinePrecision], If[LessEqual[x, 2.0], N[(z * -0.0424927283095952), $MachinePrecision], N[(x * 4.16438922228), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1750:\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{elif}\;x \leq 2:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228\\
\end{array}
\end{array}
if x < -1750 or 2 < x Initial program 12.6%
*-commutative12.6%
associate-*r/18.5%
*-commutative18.5%
fma-def18.5%
*-commutative18.5%
fma-def18.5%
*-commutative18.5%
fma-def18.5%
fma-def18.5%
Simplified18.5%
Taylor expanded in x around inf 86.2%
*-commutative86.2%
Simplified86.2%
if -1750 < x < 2Initial program 99.7%
*-commutative99.7%
associate-*r/99.3%
*-commutative99.3%
fma-def99.3%
*-commutative99.3%
fma-def99.3%
*-commutative99.3%
fma-def99.3%
fma-def99.3%
Simplified99.3%
Taylor expanded in x around 0 68.0%
Final simplification77.2%
(FPCore (x y z) :precision binary64 (if (<= x -7.2e-8) (+ (* x 4.16438922228) 70.37071397084) (if (<= x 2.0) (* z -0.0424927283095952) (* x 4.16438922228))))
double code(double x, double y, double z) {
double tmp;
if (x <= -7.2e-8) {
tmp = (x * 4.16438922228) + 70.37071397084;
} else if (x <= 2.0) {
tmp = z * -0.0424927283095952;
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-7.2d-8)) then
tmp = (x * 4.16438922228d0) + 70.37071397084d0
else if (x <= 2.0d0) then
tmp = z * (-0.0424927283095952d0)
else
tmp = x * 4.16438922228d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -7.2e-8) {
tmp = (x * 4.16438922228) + 70.37071397084;
} else if (x <= 2.0) {
tmp = z * -0.0424927283095952;
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -7.2e-8: tmp = (x * 4.16438922228) + 70.37071397084 elif x <= 2.0: tmp = z * -0.0424927283095952 else: tmp = x * 4.16438922228 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -7.2e-8) tmp = Float64(Float64(x * 4.16438922228) + 70.37071397084); elseif (x <= 2.0) tmp = Float64(z * -0.0424927283095952); else tmp = Float64(x * 4.16438922228); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -7.2e-8) tmp = (x * 4.16438922228) + 70.37071397084; elseif (x <= 2.0) tmp = z * -0.0424927283095952; else tmp = x * 4.16438922228; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -7.2e-8], N[(N[(x * 4.16438922228), $MachinePrecision] + 70.37071397084), $MachinePrecision], If[LessEqual[x, 2.0], N[(z * -0.0424927283095952), $MachinePrecision], N[(x * 4.16438922228), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -7.2 \cdot 10^{-8}:\\
\;\;\;\;x \cdot 4.16438922228 + 70.37071397084\\
\mathbf{elif}\;x \leq 2:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228\\
\end{array}
\end{array}
if x < -7.19999999999999962e-8Initial program 13.2%
Taylor expanded in x around inf 9.8%
Taylor expanded in x around inf 83.7%
+-commutative83.7%
*-commutative83.7%
Simplified83.7%
if -7.19999999999999962e-8 < x < 2Initial program 99.7%
*-commutative99.7%
associate-*r/99.3%
*-commutative99.3%
fma-def99.3%
*-commutative99.3%
fma-def99.3%
*-commutative99.3%
fma-def99.3%
fma-def99.3%
Simplified99.3%
Taylor expanded in x around 0 69.0%
if 2 < x Initial program 14.6%
*-commutative14.6%
associate-*r/17.3%
*-commutative17.3%
fma-def17.3%
*-commutative17.3%
fma-def17.3%
*-commutative17.3%
fma-def17.3%
fma-def17.3%
Simplified17.3%
Taylor expanded in x around inf 86.1%
*-commutative86.1%
Simplified86.1%
Final simplification77.2%
(FPCore (x y z) :precision binary64 (* z -0.0424927283095952))
double code(double x, double y, double z) {
return z * -0.0424927283095952;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = z * (-0.0424927283095952d0)
end function
public static double code(double x, double y, double z) {
return z * -0.0424927283095952;
}
def code(x, y, z): return z * -0.0424927283095952
function code(x, y, z) return Float64(z * -0.0424927283095952) end
function tmp = code(x, y, z) tmp = z * -0.0424927283095952; end
code[x_, y_, z_] := N[(z * -0.0424927283095952), $MachinePrecision]
\begin{array}{l}
\\
z \cdot -0.0424927283095952
\end{array}
Initial program 55.8%
*-commutative55.8%
associate-*r/58.6%
*-commutative58.6%
fma-def58.6%
*-commutative58.6%
fma-def58.6%
*-commutative58.6%
fma-def58.6%
fma-def58.6%
Simplified58.6%
Taylor expanded in x around 0 35.2%
Final simplification35.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 2023268
(FPCore (x y z)
:name "Numeric.SpecFunctions:logGamma from math-functions-0.1.5.2, C"
:precision binary64
:herbie-target
(if (< x -3.326128725870005e+62) (- (+ (/ y (* x x)) (* 4.16438922228 x)) 110.1139242984811) (if (< x 9.429991714554673e+55) (* (/ (- x 2.0) 1.0) (/ (+ (* (+ (* (+ (* (+ (* x 4.16438922228) 78.6994924154) x) 137.519416416) x) y) x) z) (+ (* (+ (+ (* 263.505074721 x) (+ (* 43.3400022514 (* x x)) (* x (* x x)))) 313.399215894) x) 47.066876606))) (- (+ (/ y (* x x)) (* 4.16438922228 x)) 110.1139242984811)))
(/ (* (- x 2.0) (+ (* (+ (* (+ (* (+ (* x 4.16438922228) 78.6994924154) x) 137.519416416) x) y) x) z)) (+ (* (+ (* (+ (* (+ x 43.3400022514) x) 263.505074721) x) 313.399215894) x) 47.066876606)))