
(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 25 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z)
:precision binary64
(/
(*
(- x 2.0)
(+
(*
(+ (* (+ (* (+ (* x 4.16438922228) 78.6994924154) x) 137.519416416) x) y)
x)
z))
(+
(* (+ (* (+ (* (+ x 43.3400022514) x) 263.505074721) x) 313.399215894) x)
47.066876606)))
double code(double x, double y, double z) {
return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606);
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = ((x - 2.0d0) * ((((((((x * 4.16438922228d0) + 78.6994924154d0) * x) + 137.519416416d0) * x) + y) * x) + z)) / (((((((x + 43.3400022514d0) * x) + 263.505074721d0) * x) + 313.399215894d0) * x) + 47.066876606d0)
end function
public static double code(double x, double y, double z) {
return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606);
}
def code(x, y, z): return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606)
function code(x, y, z) return Float64(Float64(Float64(x - 2.0) * Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606)) end
function tmp = code(x, y, z) tmp = ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606); end
code[x_, y_, z_] := N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(N[(N[(N[(N[(N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision] * x), $MachinePrecision] + 137.519416416), $MachinePrecision] * x), $MachinePrecision] + y), $MachinePrecision] * x), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(x + 43.3400022514), $MachinePrecision] * x), $MachinePrecision] + 263.505074721), $MachinePrecision] * x), $MachinePrecision] + 313.399215894), $MachinePrecision] * x), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606}
\end{array}
(FPCore (x y z)
:precision binary64
(if (<=
(/
(*
(- x 2.0)
(+
(*
x
(+
(* x (+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))
y))
z))
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))
INFINITY)
(*
(+ x -2.0)
(/
(fma
x
(fma x (fma x (fma x 4.16438922228 78.6994924154) 137.519416416) y)
z)
(fma
x
(fma x (fma x (+ x 43.3400022514) 263.505074721) 313.399215894)
47.066876606)))
(+
(+
(fma x 4.16438922228 (/ 3655.1204654076414 x))
(/ (- y 130977.50649958357) (* x x)))
-110.1139242984811)))
double code(double x, double y, double z) {
double tmp;
if ((((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) <= ((double) INFINITY)) {
tmp = (x + -2.0) * (fma(x, fma(x, fma(x, fma(x, 4.16438922228, 78.6994924154), 137.519416416), y), z) / fma(x, fma(x, fma(x, (x + 43.3400022514), 263.505074721), 313.399215894), 47.066876606));
} else {
tmp = (fma(x, 4.16438922228, (3655.1204654076414 / x)) + ((y - 130977.50649958357) / (x * x))) + -110.1139242984811;
}
return tmp;
}
function code(x, y, z) tmp = 0.0 if (Float64(Float64(Float64(x - 2.0) * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) <= Inf) tmp = Float64(Float64(x + -2.0) * Float64(fma(x, fma(x, fma(x, fma(x, 4.16438922228, 78.6994924154), 137.519416416), y), z) / fma(x, fma(x, fma(x, Float64(x + 43.3400022514), 263.505074721), 313.399215894), 47.066876606))); else tmp = Float64(Float64(fma(x, 4.16438922228, Float64(3655.1204654076414 / x)) + Float64(Float64(y - 130977.50649958357) / Float64(x * x))) + -110.1139242984811); end return tmp end
code[x_, y_, z_] := If[LessEqual[N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(x * N[(N[(x * N[(N[(x * N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision]), $MachinePrecision] + 137.519416416), $MachinePrecision]), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision], Infinity], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(x * N[(x * N[(x * N[(x * 4.16438922228 + 78.6994924154), $MachinePrecision] + 137.519416416), $MachinePrecision] + y), $MachinePrecision] + z), $MachinePrecision] / N[(x * N[(x * N[(x * N[(x + 43.3400022514), $MachinePrecision] + 263.505074721), $MachinePrecision] + 313.399215894), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(x * 4.16438922228 + N[(3655.1204654076414 / x), $MachinePrecision]), $MachinePrecision] + N[(N[(y - 130977.50649958357), $MachinePrecision] / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + -110.1139242984811), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{\left(x - 2\right) \cdot \left(x \cdot \left(x \cdot \left(x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right) + 137.519416416\right) + y\right) + z\right)}{x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606} \leq \infty:\\
\;\;\;\;\left(x + -2\right) \cdot \frac{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), 137.519416416\right), y\right), z\right)}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)}\\
\mathbf{else}:\\
\;\;\;\;\left(\mathsf{fma}\left(x, 4.16438922228, \frac{3655.1204654076414}{x}\right) + \frac{y - 130977.50649958357}{x \cdot x}\right) + -110.1139242984811\\
\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 94.8%
associate-*r/98.4%
sub-neg98.4%
metadata-eval98.4%
*-commutative98.4%
fma-def98.4%
*-commutative98.4%
fma-def98.4%
*-commutative98.4%
fma-def98.4%
fma-def98.4%
*-commutative98.4%
Simplified98.5%
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-*r/0.0%
sub-neg0.0%
metadata-eval0.0%
*-commutative0.0%
fma-def0.0%
*-commutative0.0%
fma-def0.0%
*-commutative0.0%
fma-def0.0%
fma-def0.0%
*-commutative0.0%
Simplified0.0%
Taylor expanded in x around -inf 99.1%
sub-neg99.1%
+-commutative99.1%
mul-1-neg99.1%
unsub-neg99.1%
*-commutative99.1%
fma-def99.1%
associate-*r/99.1%
metadata-eval99.1%
mul-1-neg99.1%
unsub-neg99.1%
unpow299.1%
metadata-eval99.1%
Simplified99.1%
Final simplification98.7%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))
(t_1
(*
x
(+
(* x (+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))
y))))
(if (<= (/ (* (- x 2.0) (+ t_1 z)) t_0) INFINITY)
(* (+ x -2.0) (+ (/ t_1 t_0) (/ z t_0)))
(+
(+
(fma x 4.16438922228 (/ 3655.1204654076414 x))
(/ (- y 130977.50649958357) (* x x)))
-110.1139242984811))))
double code(double x, double y, double z) {
double t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606;
double t_1 = x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y);
double tmp;
if ((((x - 2.0) * (t_1 + z)) / t_0) <= ((double) INFINITY)) {
tmp = (x + -2.0) * ((t_1 / t_0) + (z / t_0));
} else {
tmp = (fma(x, 4.16438922228, (3655.1204654076414 / x)) + ((y - 130977.50649958357) / (x * x))) + -110.1139242984811;
}
return tmp;
}
function code(x, y, z) t_0 = Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) t_1 = Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) tmp = 0.0 if (Float64(Float64(Float64(x - 2.0) * Float64(t_1 + z)) / t_0) <= Inf) tmp = Float64(Float64(x + -2.0) * Float64(Float64(t_1 / t_0) + Float64(z / t_0))); else tmp = Float64(Float64(fma(x, 4.16438922228, Float64(3655.1204654076414 / x)) + Float64(Float64(y - 130977.50649958357) / Float64(x * x))) + -110.1139242984811); end return tmp end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]}, Block[{t$95$1 = N[(x * N[(N[(x * N[(N[(x * N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision]), $MachinePrecision] + 137.519416416), $MachinePrecision]), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(N[(N[(x - 2.0), $MachinePrecision] * N[(t$95$1 + z), $MachinePrecision]), $MachinePrecision] / t$95$0), $MachinePrecision], Infinity], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(t$95$1 / t$95$0), $MachinePrecision] + N[(z / t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(x * 4.16438922228 + N[(3655.1204654076414 / x), $MachinePrecision]), $MachinePrecision] + N[(N[(y - 130977.50649958357), $MachinePrecision] / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + -110.1139242984811), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606\\
t_1 := x \cdot \left(x \cdot \left(x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right) + 137.519416416\right) + y\right)\\
\mathbf{if}\;\frac{\left(x - 2\right) \cdot \left(t_1 + z\right)}{t_0} \leq \infty:\\
\;\;\;\;\left(x + -2\right) \cdot \left(\frac{t_1}{t_0} + \frac{z}{t_0}\right)\\
\mathbf{else}:\\
\;\;\;\;\left(\mathsf{fma}\left(x, 4.16438922228, \frac{3655.1204654076414}{x}\right) + \frac{y - 130977.50649958357}{x \cdot x}\right) + -110.1139242984811\\
\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 94.8%
associate-*r/98.4%
sub-neg98.4%
metadata-eval98.4%
*-commutative98.4%
fma-def98.4%
*-commutative98.4%
fma-def98.4%
*-commutative98.4%
fma-def98.4%
fma-def98.4%
*-commutative98.4%
Simplified98.5%
Taylor expanded in z around 0 98.4%
if +inf.0 < (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) Initial program 0.0%
associate-*r/0.0%
sub-neg0.0%
metadata-eval0.0%
*-commutative0.0%
fma-def0.0%
*-commutative0.0%
fma-def0.0%
*-commutative0.0%
fma-def0.0%
fma-def0.0%
*-commutative0.0%
Simplified0.0%
Taylor expanded in x around -inf 99.1%
sub-neg99.1%
+-commutative99.1%
mul-1-neg99.1%
unsub-neg99.1%
*-commutative99.1%
fma-def99.1%
associate-*r/99.1%
metadata-eval99.1%
mul-1-neg99.1%
unsub-neg99.1%
unpow299.1%
metadata-eval99.1%
Simplified99.1%
Final simplification98.7%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))
(t_1
(*
x
(+
(* x (+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))
y))))
(if (<= (/ (* (- x 2.0) (+ t_1 z)) t_0) INFINITY)
(* (+ x -2.0) (+ (/ t_1 t_0) (/ z t_0)))
(/ (+ x -2.0) 0.24013125253755718))))
double code(double x, double y, double z) {
double t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606;
double t_1 = x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y);
double tmp;
if ((((x - 2.0) * (t_1 + z)) / t_0) <= ((double) INFINITY)) {
tmp = (x + -2.0) * ((t_1 / t_0) + (z / t_0));
} else {
tmp = (x + -2.0) / 0.24013125253755718;
}
return tmp;
}
public static double code(double x, double y, double z) {
double t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606;
double t_1 = x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y);
double tmp;
if ((((x - 2.0) * (t_1 + z)) / t_0) <= Double.POSITIVE_INFINITY) {
tmp = (x + -2.0) * ((t_1 / t_0) + (z / t_0));
} else {
tmp = (x + -2.0) / 0.24013125253755718;
}
return tmp;
}
def code(x, y, z): t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606 t_1 = x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y) tmp = 0 if (((x - 2.0) * (t_1 + z)) / t_0) <= math.inf: tmp = (x + -2.0) * ((t_1 / t_0) + (z / t_0)) else: tmp = (x + -2.0) / 0.24013125253755718 return tmp
function code(x, y, z) t_0 = Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) t_1 = Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) tmp = 0.0 if (Float64(Float64(Float64(x - 2.0) * Float64(t_1 + z)) / t_0) <= Inf) tmp = Float64(Float64(x + -2.0) * Float64(Float64(t_1 / t_0) + Float64(z / t_0))); else tmp = Float64(Float64(x + -2.0) / 0.24013125253755718); end return tmp end
function tmp_2 = code(x, y, z) t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606; t_1 = x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y); tmp = 0.0; if ((((x - 2.0) * (t_1 + z)) / t_0) <= Inf) tmp = (x + -2.0) * ((t_1 / t_0) + (z / t_0)); else tmp = (x + -2.0) / 0.24013125253755718; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]}, Block[{t$95$1 = N[(x * N[(N[(x * N[(N[(x * N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision]), $MachinePrecision] + 137.519416416), $MachinePrecision]), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(N[(N[(x - 2.0), $MachinePrecision] * N[(t$95$1 + z), $MachinePrecision]), $MachinePrecision] / t$95$0), $MachinePrecision], Infinity], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(t$95$1 / t$95$0), $MachinePrecision] + N[(z / t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606\\
t_1 := x \cdot \left(x \cdot \left(x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right) + 137.519416416\right) + y\right)\\
\mathbf{if}\;\frac{\left(x - 2\right) \cdot \left(t_1 + z\right)}{t_0} \leq \infty:\\
\;\;\;\;\left(x + -2\right) \cdot \left(\frac{t_1}{t_0} + \frac{z}{t_0}\right)\\
\mathbf{else}:\\
\;\;\;\;\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 94.8%
associate-*r/98.4%
sub-neg98.4%
metadata-eval98.4%
*-commutative98.4%
fma-def98.4%
*-commutative98.4%
fma-def98.4%
*-commutative98.4%
fma-def98.4%
fma-def98.4%
*-commutative98.4%
Simplified98.5%
Taylor expanded in z around 0 98.4%
if +inf.0 < (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) 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 98.7%
Final simplification98.5%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))
(t_1
(*
x
(+
(* x (+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))
y))))
(if (<= (/ (* (- x 2.0) (+ t_1 z)) t_0) INFINITY)
(*
(+ x -2.0)
(+
(/ t_1 t_0)
(/
z
(+
47.066876606
(* x (+ 313.399215894 (* (+ x 43.3400022514) (* x x))))))))
(/ (+ x -2.0) 0.24013125253755718))))
double code(double x, double y, double z) {
double t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606;
double t_1 = x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y);
double tmp;
if ((((x - 2.0) * (t_1 + z)) / t_0) <= ((double) INFINITY)) {
tmp = (x + -2.0) * ((t_1 / t_0) + (z / (47.066876606 + (x * (313.399215894 + ((x + 43.3400022514) * (x * x)))))));
} else {
tmp = (x + -2.0) / 0.24013125253755718;
}
return tmp;
}
public static double code(double x, double y, double z) {
double t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606;
double t_1 = x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y);
double tmp;
if ((((x - 2.0) * (t_1 + z)) / t_0) <= Double.POSITIVE_INFINITY) {
tmp = (x + -2.0) * ((t_1 / t_0) + (z / (47.066876606 + (x * (313.399215894 + ((x + 43.3400022514) * (x * x)))))));
} else {
tmp = (x + -2.0) / 0.24013125253755718;
}
return tmp;
}
def code(x, y, z): t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606 t_1 = x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y) tmp = 0 if (((x - 2.0) * (t_1 + z)) / t_0) <= math.inf: tmp = (x + -2.0) * ((t_1 / t_0) + (z / (47.066876606 + (x * (313.399215894 + ((x + 43.3400022514) * (x * x))))))) else: tmp = (x + -2.0) / 0.24013125253755718 return tmp
function code(x, y, z) t_0 = Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) t_1 = Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) tmp = 0.0 if (Float64(Float64(Float64(x - 2.0) * Float64(t_1 + z)) / t_0) <= Inf) tmp = Float64(Float64(x + -2.0) * Float64(Float64(t_1 / t_0) + Float64(z / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(Float64(x + 43.3400022514) * Float64(x * x)))))))); else tmp = Float64(Float64(x + -2.0) / 0.24013125253755718); end return tmp end
function tmp_2 = code(x, y, z) t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606; t_1 = x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y); tmp = 0.0; if ((((x - 2.0) * (t_1 + z)) / t_0) <= Inf) tmp = (x + -2.0) * ((t_1 / t_0) + (z / (47.066876606 + (x * (313.399215894 + ((x + 43.3400022514) * (x * x))))))); else tmp = (x + -2.0) / 0.24013125253755718; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]}, Block[{t$95$1 = N[(x * N[(N[(x * N[(N[(x * N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision]), $MachinePrecision] + 137.519416416), $MachinePrecision]), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(N[(N[(x - 2.0), $MachinePrecision] * N[(t$95$1 + z), $MachinePrecision]), $MachinePrecision] / t$95$0), $MachinePrecision], Infinity], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(t$95$1 / t$95$0), $MachinePrecision] + N[(z / N[(47.066876606 + N[(x * N[(313.399215894 + N[(N[(x + 43.3400022514), $MachinePrecision] * N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606\\
t_1 := x \cdot \left(x \cdot \left(x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right) + 137.519416416\right) + y\right)\\
\mathbf{if}\;\frac{\left(x - 2\right) \cdot \left(t_1 + z\right)}{t_0} \leq \infty:\\
\;\;\;\;\left(x + -2\right) \cdot \left(\frac{t_1}{t_0} + \frac{z}{47.066876606 + x \cdot \left(313.399215894 + \left(x + 43.3400022514\right) \cdot \left(x \cdot x\right)\right)}\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 94.8%
associate-*r/98.4%
sub-neg98.4%
metadata-eval98.4%
*-commutative98.4%
fma-def98.4%
*-commutative98.4%
fma-def98.4%
*-commutative98.4%
fma-def98.4%
fma-def98.4%
*-commutative98.4%
Simplified98.5%
Taylor expanded in z around 0 98.4%
Taylor expanded in x around inf 97.1%
cube-mult97.1%
unpow297.1%
distribute-rgt-out97.1%
unpow297.1%
+-commutative97.1%
Simplified97.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 98.7%
Final simplification97.8%
(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 2e+222)
t_0
(*
(+ x -2.0)
(+
4.16438922228
(/
z
(+
47.066876606
(* x (+ 313.399215894 (* x (+ 263.505074721 (* 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 <= 2e+222) {
tmp = t_0;
} else {
tmp = (x + -2.0) * (4.16438922228 + (z / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * x))))))));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: 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 <= 2d+222) then
tmp = t_0
else
tmp = (x + (-2.0d0)) * (4.16438922228d0 + (z / (47.066876606d0 + (x * (313.399215894d0 + (x * (263.505074721d0 + (x * x))))))))
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 <= 2e+222) {
tmp = t_0;
} else {
tmp = (x + -2.0) * (4.16438922228 + (z / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * x))))))));
}
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 <= 2e+222: tmp = t_0 else: tmp = (x + -2.0) * (4.16438922228 + (z / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (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 <= 2e+222) tmp = t_0; else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(z / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * Float64(263.505074721 + Float64(x * x))))))))); 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 <= 2e+222) tmp = t_0; else tmp = (x + -2.0) * (4.16438922228 + (z / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * x)))))))); 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, 2e+222], t$95$0, N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(z / N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * N[(263.505074721 + N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\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 2 \cdot 10^{+222}:\\
\;\;\;\;t_0\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{z}{47.066876606 + x \cdot \left(313.399215894 + x \cdot \left(263.505074721 + x \cdot x\right)\right)}\right)\\
\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)) < 2.0000000000000001e222Initial program 96.9%
if 2.0000000000000001e222 < (/.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 10.4%
associate-*r/12.7%
sub-neg12.7%
metadata-eval12.7%
*-commutative12.7%
fma-def12.7%
*-commutative12.7%
fma-def12.7%
*-commutative12.7%
fma-def12.7%
fma-def12.7%
*-commutative12.7%
Simplified12.7%
Taylor expanded in z around 0 12.7%
Taylor expanded in x around inf 96.8%
Taylor expanded in x around inf 96.8%
unpow296.8%
Simplified96.8%
Final simplification96.9%
(FPCore (x y z)
:precision binary64
(if (<= x -3.5e-5)
(*
(+ x -2.0)
(+
4.16438922228
(/
z
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))))
(if (<= x 1.65e+56)
(/
(*
(- 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))))))
(/ (+ x -2.0) 0.24013125253755718))))
double code(double x, double y, double z) {
double tmp;
if (x <= -3.5e-5) {
tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)));
} else if (x <= 1.65e+56) {
tmp = ((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)))));
} else {
tmp = (x + -2.0) / 0.24013125253755718;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-3.5d-5)) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + (z / ((x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0)))
else if (x <= 1.65d+56) then
tmp = ((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)))))
else
tmp = (x + (-2.0d0)) / 0.24013125253755718d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -3.5e-5) {
tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)));
} else if (x <= 1.65e+56) {
tmp = ((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)))));
} else {
tmp = (x + -2.0) / 0.24013125253755718;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -3.5e-5: tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606))) elif x <= 1.65e+56: tmp = ((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))))) else: tmp = (x + -2.0) / 0.24013125253755718 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -3.5e-5) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(z / Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)))); elseif (x <= 1.65e+56) tmp = Float64(Float64(Float64(x - 2.0) * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(Float64(x + 43.3400022514) * Float64(x * x)))))); else tmp = Float64(Float64(x + -2.0) / 0.24013125253755718); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -3.5e-5) tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606))); elseif (x <= 1.65e+56) tmp = ((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))))); else tmp = (x + -2.0) / 0.24013125253755718; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -3.5e-5], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(z / N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.65e+56], 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], N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -3.5 \cdot 10^{-5}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{z}{x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606}\right)\\
\mathbf{elif}\;x \leq 1.65 \cdot 10^{+56}:\\
\;\;\;\;\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)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718}\\
\end{array}
\end{array}
if x < -3.4999999999999997e-5Initial program 19.9%
associate-*r/24.9%
sub-neg24.9%
metadata-eval24.9%
*-commutative24.9%
fma-def24.9%
*-commutative24.9%
fma-def24.9%
*-commutative24.9%
fma-def24.9%
fma-def24.9%
*-commutative24.9%
Simplified25.0%
Taylor expanded in z around 0 24.9%
Taylor expanded in x around inf 94.0%
if -3.4999999999999997e-5 < x < 1.65000000000000001e56Initial program 98.4%
Taylor expanded in x around inf 97.1%
cube-mult96.3%
unpow296.3%
distribute-rgt-out96.3%
+-commutative96.3%
unpow296.3%
Simplified97.0%
if 1.65000000000000001e56 < x Initial program 1.6%
associate-/l*3.1%
sub-neg3.1%
metadata-eval3.1%
fma-def3.1%
fma-def3.1%
fma-def3.1%
fma-def3.1%
fma-def3.1%
fma-def3.1%
fma-def3.1%
Simplified3.1%
Taylor expanded in x around inf 98.2%
Final simplification96.7%
(FPCore (x y z)
:precision binary64
(if (<= x -8.2e+19)
(*
(+ x -2.0)
(+
4.16438922228
(/
z
(+
47.066876606
(* x (+ 313.399215894 (* x (+ 263.505074721 (* x x)))))))))
(if (<= x 1.4e+39)
(/
(* (- x 2.0) (+ z (* x (+ y (* x 137.519416416)))))
(+
(*
x
(+ (* x (+ (* 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 <= -8.2e+19) {
tmp = (x + -2.0) * (4.16438922228 + (z / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * x))))))));
} else if (x <= 1.4e+39) {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606);
} else {
tmp = (x + -2.0) / 0.24013125253755718;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-8.2d+19)) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + (z / (47.066876606d0 + (x * (313.399215894d0 + (x * (263.505074721d0 + (x * x))))))))
else if (x <= 1.4d+39) then
tmp = ((x - 2.0d0) * (z + (x * (y + (x * 137.519416416d0))))) / ((x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0)
else
tmp = (x + (-2.0d0)) / 0.24013125253755718d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -8.2e+19) {
tmp = (x + -2.0) * (4.16438922228 + (z / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * x))))))));
} else if (x <= 1.4e+39) {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606);
} else {
tmp = (x + -2.0) / 0.24013125253755718;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -8.2e+19: tmp = (x + -2.0) * (4.16438922228 + (z / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * x)))))))) elif x <= 1.4e+39: tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) else: tmp = (x + -2.0) / 0.24013125253755718 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -8.2e+19) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(z / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * Float64(263.505074721 + Float64(x * x))))))))); elseif (x <= 1.4e+39) tmp = Float64(Float64(Float64(x - 2.0) * Float64(z + Float64(x * Float64(y + Float64(x * 137.519416416))))) / Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)); else tmp = Float64(Float64(x + -2.0) / 0.24013125253755718); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -8.2e+19) tmp = (x + -2.0) * (4.16438922228 + (z / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * x)))))))); elseif (x <= 1.4e+39) tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606); else tmp = (x + -2.0) / 0.24013125253755718; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -8.2e+19], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(z / N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * N[(263.505074721 + N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.4e+39], N[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + N[(x * N[(y + N[(x * 137.519416416), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -8.2 \cdot 10^{+19}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{z}{47.066876606 + x \cdot \left(313.399215894 + x \cdot \left(263.505074721 + x \cdot x\right)\right)}\right)\\
\mathbf{elif}\;x \leq 1.4 \cdot 10^{+39}:\\
\;\;\;\;\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}:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718}\\
\end{array}
\end{array}
if x < -8.2e19Initial program 13.9%
associate-*r/17.6%
sub-neg17.6%
metadata-eval17.6%
*-commutative17.6%
fma-def17.6%
*-commutative17.6%
fma-def17.6%
*-commutative17.6%
fma-def17.6%
fma-def17.6%
*-commutative17.6%
Simplified17.6%
Taylor expanded in z around 0 17.6%
Taylor expanded in x around inf 95.3%
Taylor expanded in x around inf 95.3%
unpow295.3%
Simplified95.3%
if -8.2e19 < x < 1.40000000000000001e39Initial program 97.8%
Taylor expanded in x around 0 96.3%
*-commutative96.3%
Simplified96.3%
if 1.40000000000000001e39 < x Initial program 1.6%
associate-/l*3.1%
sub-neg3.1%
metadata-eval3.1%
fma-def3.1%
fma-def3.1%
fma-def3.1%
fma-def3.1%
fma-def3.1%
fma-def3.1%
fma-def3.1%
Simplified3.1%
Taylor expanded in x around inf 98.2%
Final simplification96.6%
(FPCore (x y z)
:precision binary64
(if (<= x -3.5e-5)
(*
(+ x -2.0)
(+
4.16438922228
(/
z
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))))
(if (<= x 9.5e+41)
(/
(* (- x 2.0) (+ z (* x (+ y (* x 137.519416416)))))
(+ 47.066876606 (* x (+ 313.399215894 (* (+ x 43.3400022514) (* x x))))))
(/ (+ x -2.0) 0.24013125253755718))))
double code(double x, double y, double z) {
double tmp;
if (x <= -3.5e-5) {
tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)));
} else if (x <= 9.5e+41) {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + ((x + 43.3400022514) * (x * x)))));
} else {
tmp = (x + -2.0) / 0.24013125253755718;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-3.5d-5)) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + (z / ((x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0)))
else if (x <= 9.5d+41) then
tmp = ((x - 2.0d0) * (z + (x * (y + (x * 137.519416416d0))))) / (47.066876606d0 + (x * (313.399215894d0 + ((x + 43.3400022514d0) * (x * x)))))
else
tmp = (x + (-2.0d0)) / 0.24013125253755718d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -3.5e-5) {
tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)));
} else if (x <= 9.5e+41) {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + ((x + 43.3400022514) * (x * x)))));
} else {
tmp = (x + -2.0) / 0.24013125253755718;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -3.5e-5: tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606))) elif x <= 9.5e+41: tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + ((x + 43.3400022514) * (x * x))))) else: tmp = (x + -2.0) / 0.24013125253755718 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -3.5e-5) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(z / Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)))); elseif (x <= 9.5e+41) tmp = Float64(Float64(Float64(x - 2.0) * Float64(z + Float64(x * Float64(y + Float64(x * 137.519416416))))) / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(Float64(x + 43.3400022514) * Float64(x * x)))))); else tmp = Float64(Float64(x + -2.0) / 0.24013125253755718); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -3.5e-5) tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606))); elseif (x <= 9.5e+41) tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + ((x + 43.3400022514) * (x * x))))); else tmp = (x + -2.0) / 0.24013125253755718; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -3.5e-5], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(z / N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 9.5e+41], N[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + N[(x * N[(y + N[(x * 137.519416416), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(47.066876606 + N[(x * N[(313.399215894 + N[(N[(x + 43.3400022514), $MachinePrecision] * N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -3.5 \cdot 10^{-5}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{z}{x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606}\right)\\
\mathbf{elif}\;x \leq 9.5 \cdot 10^{+41}:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot \left(y + x \cdot 137.519416416\right)\right)}{47.066876606 + x \cdot \left(313.399215894 + \left(x + 43.3400022514\right) \cdot \left(x \cdot x\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718}\\
\end{array}
\end{array}
if x < -3.4999999999999997e-5Initial program 19.9%
associate-*r/24.9%
sub-neg24.9%
metadata-eval24.9%
*-commutative24.9%
fma-def24.9%
*-commutative24.9%
fma-def24.9%
*-commutative24.9%
fma-def24.9%
fma-def24.9%
*-commutative24.9%
Simplified25.0%
Taylor expanded in z around 0 24.9%
Taylor expanded in x around inf 94.0%
if -3.4999999999999997e-5 < x < 9.4999999999999996e41Initial program 98.4%
Taylor expanded in x around 0 96.9%
*-commutative96.9%
Simplified96.9%
Taylor expanded in x around inf 96.3%
cube-mult96.3%
unpow296.3%
distribute-rgt-out96.3%
+-commutative96.3%
unpow296.3%
Simplified96.3%
if 9.4999999999999996e41 < x Initial program 1.6%
associate-/l*3.1%
sub-neg3.1%
metadata-eval3.1%
fma-def3.1%
fma-def3.1%
fma-def3.1%
fma-def3.1%
fma-def3.1%
fma-def3.1%
fma-def3.1%
Simplified3.1%
Taylor expanded in x around inf 98.2%
Final simplification96.3%
(FPCore (x y z)
:precision binary64
(if (or (<= x -2.55e-5) (not (<= x 2.5e-8)))
(*
(+ x -2.0)
(+
4.16438922228
(/
z
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))))
(/
(* (- x 2.0) (+ z (* x (+ y (* x 137.519416416)))))
(+ 47.066876606 (* x 313.399215894)))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -2.55e-5) || !(x <= 2.5e-8)) {
tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)));
} else {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * 313.399215894));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((x <= (-2.55d-5)) .or. (.not. (x <= 2.5d-8))) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + (z / ((x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0)))
else
tmp = ((x - 2.0d0) * (z + (x * (y + (x * 137.519416416d0))))) / (47.066876606d0 + (x * 313.399215894d0))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -2.55e-5) || !(x <= 2.5e-8)) {
tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)));
} else {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * 313.399215894));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -2.55e-5) or not (x <= 2.5e-8): tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606))) else: tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * 313.399215894)) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -2.55e-5) || !(x <= 2.5e-8)) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(z / Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)))); else tmp = Float64(Float64(Float64(x - 2.0) * Float64(z + Float64(x * Float64(y + Float64(x * 137.519416416))))) / Float64(47.066876606 + Float64(x * 313.399215894))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -2.55e-5) || ~((x <= 2.5e-8))) tmp = (x + -2.0) * (4.16438922228 + (z / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606))); else tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * 313.399215894)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -2.55e-5], N[Not[LessEqual[x, 2.5e-8]], $MachinePrecision]], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(z / N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + N[(x * N[(y + N[(x * 137.519416416), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(47.066876606 + N[(x * 313.399215894), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2.55 \cdot 10^{-5} \lor \neg \left(x \leq 2.5 \cdot 10^{-8}\right):\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{z}{x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot \left(y + x \cdot 137.519416416\right)\right)}{47.066876606 + x \cdot 313.399215894}\\
\end{array}
\end{array}
if x < -2.54999999999999998e-5 or 2.4999999999999999e-8 < x Initial program 16.2%
associate-*r/19.9%
sub-neg19.9%
metadata-eval19.9%
*-commutative19.9%
fma-def19.9%
*-commutative19.9%
fma-def19.9%
*-commutative19.9%
fma-def19.9%
fma-def19.9%
*-commutative19.9%
Simplified19.9%
Taylor expanded in z around 0 19.9%
Taylor expanded in x around inf 93.0%
if -2.54999999999999998e-5 < x < 2.4999999999999999e-8Initial program 99.1%
Taylor expanded in x around 0 98.8%
*-commutative98.8%
Simplified98.8%
Taylor expanded in x around 0 98.8%
*-commutative98.8%
Simplified98.8%
Final simplification95.8%
(FPCore (x y z)
:precision binary64
(if (or (<= x -3.5e-5) (not (<= x 2.5e-8)))
(*
(+ x -2.0)
(+
4.16438922228
(/
z
(+
47.066876606
(* x (+ 313.399215894 (* x (+ 263.505074721 (* x x)))))))))
(/
(* (- x 2.0) (+ z (* x (+ y (* x 137.519416416)))))
(+ 47.066876606 (* x 313.399215894)))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -3.5e-5) || !(x <= 2.5e-8)) {
tmp = (x + -2.0) * (4.16438922228 + (z / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * x))))))));
} else {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * 313.399215894));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((x <= (-3.5d-5)) .or. (.not. (x <= 2.5d-8))) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + (z / (47.066876606d0 + (x * (313.399215894d0 + (x * (263.505074721d0 + (x * x))))))))
else
tmp = ((x - 2.0d0) * (z + (x * (y + (x * 137.519416416d0))))) / (47.066876606d0 + (x * 313.399215894d0))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -3.5e-5) || !(x <= 2.5e-8)) {
tmp = (x + -2.0) * (4.16438922228 + (z / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * x))))))));
} else {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * 313.399215894));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -3.5e-5) or not (x <= 2.5e-8): tmp = (x + -2.0) * (4.16438922228 + (z / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * x)))))))) else: tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * 313.399215894)) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -3.5e-5) || !(x <= 2.5e-8)) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(z / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * Float64(263.505074721 + Float64(x * x))))))))); else tmp = Float64(Float64(Float64(x - 2.0) * Float64(z + Float64(x * Float64(y + Float64(x * 137.519416416))))) / Float64(47.066876606 + Float64(x * 313.399215894))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -3.5e-5) || ~((x <= 2.5e-8))) tmp = (x + -2.0) * (4.16438922228 + (z / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * x)))))))); else tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * 313.399215894)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -3.5e-5], N[Not[LessEqual[x, 2.5e-8]], $MachinePrecision]], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(z / N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * N[(263.505074721 + N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + N[(x * N[(y + N[(x * 137.519416416), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(47.066876606 + N[(x * 313.399215894), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -3.5 \cdot 10^{-5} \lor \neg \left(x \leq 2.5 \cdot 10^{-8}\right):\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{z}{47.066876606 + x \cdot \left(313.399215894 + x \cdot \left(263.505074721 + x \cdot x\right)\right)}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot \left(y + x \cdot 137.519416416\right)\right)}{47.066876606 + x \cdot 313.399215894}\\
\end{array}
\end{array}
if x < -3.4999999999999997e-5 or 2.4999999999999999e-8 < x Initial program 16.2%
associate-*r/19.9%
sub-neg19.9%
metadata-eval19.9%
*-commutative19.9%
fma-def19.9%
*-commutative19.9%
fma-def19.9%
*-commutative19.9%
fma-def19.9%
fma-def19.9%
*-commutative19.9%
Simplified19.9%
Taylor expanded in z around 0 19.9%
Taylor expanded in x around inf 93.0%
Taylor expanded in x around inf 91.5%
unpow291.5%
Simplified91.5%
if -3.4999999999999997e-5 < x < 2.4999999999999999e-8Initial program 99.1%
Taylor expanded in x around 0 98.8%
*-commutative98.8%
Simplified98.8%
Taylor expanded in x around 0 98.8%
*-commutative98.8%
Simplified98.8%
Final simplification95.1%
(FPCore (x y z)
:precision binary64
(if (<= x -36.0)
(/ (+ x -2.0) 0.24013125253755718)
(if (<= x 740.0)
(/
(* (- x 2.0) (+ z (* x (+ y (* x 137.519416416)))))
(+ 47.066876606 (* x 313.399215894)))
(/
(+ x -2.0)
(+
(/ 5.86923874282773 x)
(- 0.24013125253755718 (/ 55.572073733743466 (* x x))))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -36.0) {
tmp = (x + -2.0) / 0.24013125253755718;
} else if (x <= 740.0) {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * 313.399215894));
} else {
tmp = (x + -2.0) / ((5.86923874282773 / x) + (0.24013125253755718 - (55.572073733743466 / (x * x))));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-36.0d0)) then
tmp = (x + (-2.0d0)) / 0.24013125253755718d0
else if (x <= 740.0d0) then
tmp = ((x - 2.0d0) * (z + (x * (y + (x * 137.519416416d0))))) / (47.066876606d0 + (x * 313.399215894d0))
else
tmp = (x + (-2.0d0)) / ((5.86923874282773d0 / x) + (0.24013125253755718d0 - (55.572073733743466d0 / (x * x))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -36.0) {
tmp = (x + -2.0) / 0.24013125253755718;
} else if (x <= 740.0) {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * 313.399215894));
} else {
tmp = (x + -2.0) / ((5.86923874282773 / x) + (0.24013125253755718 - (55.572073733743466 / (x * x))));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -36.0: tmp = (x + -2.0) / 0.24013125253755718 elif x <= 740.0: tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * 313.399215894)) else: tmp = (x + -2.0) / ((5.86923874282773 / x) + (0.24013125253755718 - (55.572073733743466 / (x * x)))) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -36.0) tmp = Float64(Float64(x + -2.0) / 0.24013125253755718); elseif (x <= 740.0) tmp = Float64(Float64(Float64(x - 2.0) * Float64(z + Float64(x * Float64(y + Float64(x * 137.519416416))))) / Float64(47.066876606 + Float64(x * 313.399215894))); else tmp = Float64(Float64(x + -2.0) / Float64(Float64(5.86923874282773 / x) + Float64(0.24013125253755718 - Float64(55.572073733743466 / Float64(x * x))))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -36.0) tmp = (x + -2.0) / 0.24013125253755718; elseif (x <= 740.0) tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * 313.399215894)); else tmp = (x + -2.0) / ((5.86923874282773 / x) + (0.24013125253755718 - (55.572073733743466 / (x * x)))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -36.0], N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision], If[LessEqual[x, 740.0], N[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + N[(x * N[(y + N[(x * 137.519416416), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(47.066876606 + N[(x * 313.399215894), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] / N[(N[(5.86923874282773 / x), $MachinePrecision] + N[(0.24013125253755718 - N[(55.572073733743466 / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -36:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718}\\
\mathbf{elif}\;x \leq 740:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot \left(y + x \cdot 137.519416416\right)\right)}{47.066876606 + x \cdot 313.399215894}\\
\mathbf{else}:\\
\;\;\;\;\frac{x + -2}{\frac{5.86923874282773}{x} + \left(0.24013125253755718 - \frac{55.572073733743466}{x \cdot x}\right)}\\
\end{array}
\end{array}
if x < -36Initial program 16.9%
associate-/l*22.1%
sub-neg22.1%
metadata-eval22.1%
fma-def22.1%
fma-def22.1%
fma-def22.1%
fma-def22.1%
fma-def22.1%
fma-def22.1%
fma-def22.1%
Simplified22.1%
Taylor expanded in x around inf 89.1%
if -36 < x < 740Initial program 99.1%
Taylor expanded in x around 0 98.2%
*-commutative98.2%
Simplified98.2%
Taylor expanded in x around 0 96.7%
*-commutative96.7%
Simplified96.7%
if 740 < x Initial program 9.9%
associate-/l*12.6%
sub-neg12.6%
metadata-eval12.6%
fma-def12.6%
fma-def12.6%
fma-def12.6%
fma-def12.5%
fma-def12.5%
fma-def12.5%
fma-def12.5%
Simplified12.5%
Taylor expanded in x around inf 90.2%
+-commutative90.2%
associate--l+90.2%
associate-*r/90.2%
metadata-eval90.2%
associate-*r/90.2%
metadata-eval90.2%
unpow290.2%
Simplified90.2%
Final simplification93.3%
(FPCore (x y z)
:precision binary64
(if (<= x -1.5e+19)
(/ (+ x -2.0) 0.24013125253755718)
(if (<= x 0.155)
(*
(+ x -2.0)
(+
(* z 0.0212463641547976)
(* x (- (* y 0.0212463641547976) (* z 0.14147091005106402)))))
(/
(+ x -2.0)
(+
(/ 5.86923874282773 x)
(- 0.24013125253755718 (/ 55.572073733743466 (* x x))))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -1.5e+19) {
tmp = (x + -2.0) / 0.24013125253755718;
} else if (x <= 0.155) {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402))));
} else {
tmp = (x + -2.0) / ((5.86923874282773 / x) + (0.24013125253755718 - (55.572073733743466 / (x * x))));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-1.5d+19)) then
tmp = (x + (-2.0d0)) / 0.24013125253755718d0
else if (x <= 0.155d0) then
tmp = (x + (-2.0d0)) * ((z * 0.0212463641547976d0) + (x * ((y * 0.0212463641547976d0) - (z * 0.14147091005106402d0))))
else
tmp = (x + (-2.0d0)) / ((5.86923874282773d0 / x) + (0.24013125253755718d0 - (55.572073733743466d0 / (x * x))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -1.5e+19) {
tmp = (x + -2.0) / 0.24013125253755718;
} else if (x <= 0.155) {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402))));
} else {
tmp = (x + -2.0) / ((5.86923874282773 / x) + (0.24013125253755718 - (55.572073733743466 / (x * x))));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -1.5e+19: tmp = (x + -2.0) / 0.24013125253755718 elif x <= 0.155: tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402)))) else: tmp = (x + -2.0) / ((5.86923874282773 / x) + (0.24013125253755718 - (55.572073733743466 / (x * x)))) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -1.5e+19) tmp = Float64(Float64(x + -2.0) / 0.24013125253755718); elseif (x <= 0.155) tmp = Float64(Float64(x + -2.0) * Float64(Float64(z * 0.0212463641547976) + Float64(x * Float64(Float64(y * 0.0212463641547976) - Float64(z * 0.14147091005106402))))); else tmp = Float64(Float64(x + -2.0) / Float64(Float64(5.86923874282773 / x) + Float64(0.24013125253755718 - Float64(55.572073733743466 / Float64(x * x))))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -1.5e+19) tmp = (x + -2.0) / 0.24013125253755718; elseif (x <= 0.155) tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402)))); else tmp = (x + -2.0) / ((5.86923874282773 / x) + (0.24013125253755718 - (55.572073733743466 / (x * x)))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -1.5e+19], N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision], If[LessEqual[x, 0.155], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z * 0.0212463641547976), $MachinePrecision] + N[(x * N[(N[(y * 0.0212463641547976), $MachinePrecision] - N[(z * 0.14147091005106402), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] / N[(N[(5.86923874282773 / x), $MachinePrecision] + N[(0.24013125253755718 - N[(55.572073733743466 / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.5 \cdot 10^{+19}:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718}\\
\mathbf{elif}\;x \leq 0.155:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976 + x \cdot \left(y \cdot 0.0212463641547976 - z \cdot 0.14147091005106402\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{x + -2}{\frac{5.86923874282773}{x} + \left(0.24013125253755718 - \frac{55.572073733743466}{x \cdot x}\right)}\\
\end{array}
\end{array}
if x < -1.5e19Initial program 15.5%
associate-/l*19.2%
sub-neg19.2%
metadata-eval19.2%
fma-def19.2%
fma-def19.2%
fma-def19.2%
fma-def19.2%
fma-def19.2%
fma-def19.2%
fma-def19.2%
Simplified19.2%
Taylor expanded in x around inf 92.4%
if -1.5e19 < x < 0.154999999999999999Initial program 98.4%
associate-*r/99.8%
sub-neg99.8%
metadata-eval99.8%
*-commutative99.8%
fma-def99.8%
*-commutative99.8%
fma-def99.8%
*-commutative99.8%
fma-def99.8%
fma-def99.8%
*-commutative99.8%
Simplified99.8%
Taylor expanded in x around 0 93.8%
if 0.154999999999999999 < x Initial program 12.3%
associate-/l*14.9%
sub-neg14.9%
metadata-eval14.9%
fma-def14.9%
fma-def14.9%
fma-def14.9%
fma-def14.9%
fma-def14.9%
fma-def14.9%
fma-def14.9%
Simplified14.9%
Taylor expanded in x around inf 87.8%
+-commutative87.8%
associate--l+87.8%
associate-*r/87.8%
metadata-eval87.8%
associate-*r/87.8%
metadata-eval87.8%
unpow287.8%
Simplified87.8%
Final simplification91.8%
(FPCore (x y z)
:precision binary64
(if (<= x -1.5e+19)
(/ (+ x -2.0) 0.24013125253755718)
(if (<= x 13.2)
(-
(* z -0.0424927283095952)
(*
x
(- (* z -0.28294182010212804) (* 0.0212463641547976 (+ z (* y -2.0))))))
(/
(+ x -2.0)
(+
(/ 5.86923874282773 x)
(- 0.24013125253755718 (/ 55.572073733743466 (* x x))))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -1.5e+19) {
tmp = (x + -2.0) / 0.24013125253755718;
} else if (x <= 13.2) {
tmp = (z * -0.0424927283095952) - (x * ((z * -0.28294182010212804) - (0.0212463641547976 * (z + (y * -2.0)))));
} else {
tmp = (x + -2.0) / ((5.86923874282773 / x) + (0.24013125253755718 - (55.572073733743466 / (x * x))));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-1.5d+19)) then
tmp = (x + (-2.0d0)) / 0.24013125253755718d0
else if (x <= 13.2d0) then
tmp = (z * (-0.0424927283095952d0)) - (x * ((z * (-0.28294182010212804d0)) - (0.0212463641547976d0 * (z + (y * (-2.0d0))))))
else
tmp = (x + (-2.0d0)) / ((5.86923874282773d0 / x) + (0.24013125253755718d0 - (55.572073733743466d0 / (x * x))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -1.5e+19) {
tmp = (x + -2.0) / 0.24013125253755718;
} else if (x <= 13.2) {
tmp = (z * -0.0424927283095952) - (x * ((z * -0.28294182010212804) - (0.0212463641547976 * (z + (y * -2.0)))));
} else {
tmp = (x + -2.0) / ((5.86923874282773 / x) + (0.24013125253755718 - (55.572073733743466 / (x * x))));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -1.5e+19: tmp = (x + -2.0) / 0.24013125253755718 elif x <= 13.2: tmp = (z * -0.0424927283095952) - (x * ((z * -0.28294182010212804) - (0.0212463641547976 * (z + (y * -2.0))))) else: tmp = (x + -2.0) / ((5.86923874282773 / x) + (0.24013125253755718 - (55.572073733743466 / (x * x)))) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -1.5e+19) tmp = Float64(Float64(x + -2.0) / 0.24013125253755718); elseif (x <= 13.2) tmp = Float64(Float64(z * -0.0424927283095952) - Float64(x * Float64(Float64(z * -0.28294182010212804) - Float64(0.0212463641547976 * Float64(z + Float64(y * -2.0)))))); else tmp = Float64(Float64(x + -2.0) / Float64(Float64(5.86923874282773 / x) + Float64(0.24013125253755718 - Float64(55.572073733743466 / Float64(x * x))))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -1.5e+19) tmp = (x + -2.0) / 0.24013125253755718; elseif (x <= 13.2) tmp = (z * -0.0424927283095952) - (x * ((z * -0.28294182010212804) - (0.0212463641547976 * (z + (y * -2.0))))); else tmp = (x + -2.0) / ((5.86923874282773 / x) + (0.24013125253755718 - (55.572073733743466 / (x * x)))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -1.5e+19], N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision], If[LessEqual[x, 13.2], N[(N[(z * -0.0424927283095952), $MachinePrecision] - N[(x * N[(N[(z * -0.28294182010212804), $MachinePrecision] - N[(0.0212463641547976 * N[(z + N[(y * -2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] / N[(N[(5.86923874282773 / x), $MachinePrecision] + N[(0.24013125253755718 - N[(55.572073733743466 / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.5 \cdot 10^{+19}:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718}\\
\mathbf{elif}\;x \leq 13.2:\\
\;\;\;\;z \cdot -0.0424927283095952 - x \cdot \left(z \cdot -0.28294182010212804 - 0.0212463641547976 \cdot \left(z + y \cdot -2\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{x + -2}{\frac{5.86923874282773}{x} + \left(0.24013125253755718 - \frac{55.572073733743466}{x \cdot x}\right)}\\
\end{array}
\end{array}
if x < -1.5e19Initial program 15.5%
associate-/l*19.2%
sub-neg19.2%
metadata-eval19.2%
fma-def19.2%
fma-def19.2%
fma-def19.2%
fma-def19.2%
fma-def19.2%
fma-def19.2%
fma-def19.2%
Simplified19.2%
Taylor expanded in x around inf 92.4%
if -1.5e19 < x < 13.199999999999999Initial program 98.4%
associate-*r/99.8%
sub-neg99.8%
metadata-eval99.8%
*-commutative99.8%
fma-def99.8%
*-commutative99.8%
fma-def99.8%
*-commutative99.8%
fma-def99.8%
fma-def99.8%
*-commutative99.8%
Simplified99.8%
Taylor expanded in x around 0 92.5%
if 13.199999999999999 < x Initial program 9.9%
associate-/l*12.6%
sub-neg12.6%
metadata-eval12.6%
fma-def12.6%
fma-def12.6%
fma-def12.6%
fma-def12.5%
fma-def12.5%
fma-def12.5%
fma-def12.5%
Simplified12.5%
Taylor expanded in x around inf 90.2%
+-commutative90.2%
associate--l+90.2%
associate-*r/90.2%
metadata-eval90.2%
associate-*r/90.2%
metadata-eval90.2%
unpow290.2%
Simplified90.2%
Final simplification91.9%
(FPCore (x y z)
:precision binary64
(if (<= x -1.5e+19)
(/ (+ x -2.0) 0.24013125253755718)
(if (<= x 5.5)
(+ (* x (* y -0.0424927283095952)) (* z -0.0424927283095952))
(/
(+ x -2.0)
(+
(/ 5.86923874282773 x)
(- 0.24013125253755718 (/ 55.572073733743466 (* x x))))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -1.5e+19) {
tmp = (x + -2.0) / 0.24013125253755718;
} else if (x <= 5.5) {
tmp = (x * (y * -0.0424927283095952)) + (z * -0.0424927283095952);
} else {
tmp = (x + -2.0) / ((5.86923874282773 / x) + (0.24013125253755718 - (55.572073733743466 / (x * x))));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-1.5d+19)) then
tmp = (x + (-2.0d0)) / 0.24013125253755718d0
else if (x <= 5.5d0) then
tmp = (x * (y * (-0.0424927283095952d0))) + (z * (-0.0424927283095952d0))
else
tmp = (x + (-2.0d0)) / ((5.86923874282773d0 / x) + (0.24013125253755718d0 - (55.572073733743466d0 / (x * x))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -1.5e+19) {
tmp = (x + -2.0) / 0.24013125253755718;
} else if (x <= 5.5) {
tmp = (x * (y * -0.0424927283095952)) + (z * -0.0424927283095952);
} else {
tmp = (x + -2.0) / ((5.86923874282773 / x) + (0.24013125253755718 - (55.572073733743466 / (x * x))));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -1.5e+19: tmp = (x + -2.0) / 0.24013125253755718 elif x <= 5.5: tmp = (x * (y * -0.0424927283095952)) + (z * -0.0424927283095952) else: tmp = (x + -2.0) / ((5.86923874282773 / x) + (0.24013125253755718 - (55.572073733743466 / (x * x)))) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -1.5e+19) tmp = Float64(Float64(x + -2.0) / 0.24013125253755718); elseif (x <= 5.5) tmp = Float64(Float64(x * Float64(y * -0.0424927283095952)) + Float64(z * -0.0424927283095952)); else tmp = Float64(Float64(x + -2.0) / Float64(Float64(5.86923874282773 / x) + Float64(0.24013125253755718 - Float64(55.572073733743466 / Float64(x * x))))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -1.5e+19) tmp = (x + -2.0) / 0.24013125253755718; elseif (x <= 5.5) tmp = (x * (y * -0.0424927283095952)) + (z * -0.0424927283095952); else tmp = (x + -2.0) / ((5.86923874282773 / x) + (0.24013125253755718 - (55.572073733743466 / (x * x)))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -1.5e+19], N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision], If[LessEqual[x, 5.5], N[(N[(x * N[(y * -0.0424927283095952), $MachinePrecision]), $MachinePrecision] + N[(z * -0.0424927283095952), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] / N[(N[(5.86923874282773 / x), $MachinePrecision] + N[(0.24013125253755718 - N[(55.572073733743466 / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.5 \cdot 10^{+19}:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718}\\
\mathbf{elif}\;x \leq 5.5:\\
\;\;\;\;x \cdot \left(y \cdot -0.0424927283095952\right) + z \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;\frac{x + -2}{\frac{5.86923874282773}{x} + \left(0.24013125253755718 - \frac{55.572073733743466}{x \cdot x}\right)}\\
\end{array}
\end{array}
if x < -1.5e19Initial program 15.5%
associate-/l*19.2%
sub-neg19.2%
metadata-eval19.2%
fma-def19.2%
fma-def19.2%
fma-def19.2%
fma-def19.2%
fma-def19.2%
fma-def19.2%
fma-def19.2%
Simplified19.2%
Taylor expanded in x around inf 92.4%
if -1.5e19 < x < 5.5Initial program 98.4%
associate-*r/99.8%
sub-neg99.8%
metadata-eval99.8%
*-commutative99.8%
fma-def99.8%
*-commutative99.8%
fma-def99.8%
*-commutative99.8%
fma-def99.8%
fma-def99.8%
*-commutative99.8%
Simplified99.8%
Taylor expanded in x around 0 92.5%
Taylor expanded in y around inf 92.1%
*-commutative92.1%
*-commutative92.1%
associate-*l*92.1%
Simplified92.1%
if 5.5 < x Initial program 9.9%
associate-/l*12.6%
sub-neg12.6%
metadata-eval12.6%
fma-def12.6%
fma-def12.6%
fma-def12.6%
fma-def12.5%
fma-def12.5%
fma-def12.5%
fma-def12.5%
Simplified12.5%
Taylor expanded in x around inf 90.2%
+-commutative90.2%
associate--l+90.2%
associate-*r/90.2%
metadata-eval90.2%
associate-*r/90.2%
metadata-eval90.2%
unpow290.2%
Simplified90.2%
Final simplification91.7%
(FPCore (x y z) :precision binary64 (if (or (<= x -1.5e+19) (not (<= x 2.0))) (/ (+ x -2.0) 0.24013125253755718) (+ (* x (* y -0.0424927283095952)) (* z -0.0424927283095952))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -1.5e+19) || !(x <= 2.0)) {
tmp = (x + -2.0) / 0.24013125253755718;
} else {
tmp = (x * (y * -0.0424927283095952)) + (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 <= (-1.5d+19)) .or. (.not. (x <= 2.0d0))) then
tmp = (x + (-2.0d0)) / 0.24013125253755718d0
else
tmp = (x * (y * (-0.0424927283095952d0))) + (z * (-0.0424927283095952d0))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -1.5e+19) || !(x <= 2.0)) {
tmp = (x + -2.0) / 0.24013125253755718;
} else {
tmp = (x * (y * -0.0424927283095952)) + (z * -0.0424927283095952);
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -1.5e+19) or not (x <= 2.0): tmp = (x + -2.0) / 0.24013125253755718 else: tmp = (x * (y * -0.0424927283095952)) + (z * -0.0424927283095952) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -1.5e+19) || !(x <= 2.0)) tmp = Float64(Float64(x + -2.0) / 0.24013125253755718); else tmp = Float64(Float64(x * Float64(y * -0.0424927283095952)) + Float64(z * -0.0424927283095952)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -1.5e+19) || ~((x <= 2.0))) tmp = (x + -2.0) / 0.24013125253755718; else tmp = (x * (y * -0.0424927283095952)) + (z * -0.0424927283095952); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -1.5e+19], N[Not[LessEqual[x, 2.0]], $MachinePrecision]], N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision], N[(N[(x * N[(y * -0.0424927283095952), $MachinePrecision]), $MachinePrecision] + N[(z * -0.0424927283095952), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.5 \cdot 10^{+19} \lor \neg \left(x \leq 2\right):\\
\;\;\;\;\frac{x + -2}{0.24013125253755718}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot -0.0424927283095952\right) + z \cdot -0.0424927283095952\\
\end{array}
\end{array}
if x < -1.5e19 or 2 < x Initial program 13.0%
associate-/l*16.0%
sub-neg16.0%
metadata-eval16.0%
fma-def16.0%
fma-def16.0%
fma-def16.0%
fma-def16.0%
fma-def16.0%
fma-def16.0%
fma-def16.0%
Simplified16.0%
Taylor expanded in x around inf 90.1%
if -1.5e19 < x < 2Initial program 98.4%
associate-*r/99.8%
sub-neg99.8%
metadata-eval99.8%
*-commutative99.8%
fma-def99.8%
*-commutative99.8%
fma-def99.8%
*-commutative99.8%
fma-def99.8%
fma-def99.8%
*-commutative99.8%
Simplified99.8%
Taylor expanded in x around 0 93.2%
Taylor expanded in y around inf 92.7%
*-commutative92.7%
*-commutative92.7%
associate-*l*92.8%
Simplified92.8%
Final simplification91.5%
(FPCore (x y z)
:precision binary64
(if (<= x -1.5e+19)
(/ (+ x -2.0) 0.24013125253755718)
(if (<= x 2.0)
(+ (* x (* y -0.0424927283095952)) (* z -0.0424927283095952))
(/ (+ x -2.0) (+ 0.24013125253755718 (/ 5.86923874282773 x))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -1.5e+19) {
tmp = (x + -2.0) / 0.24013125253755718;
} else if (x <= 2.0) {
tmp = (x * (y * -0.0424927283095952)) + (z * -0.0424927283095952);
} 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 <= (-1.5d+19)) then
tmp = (x + (-2.0d0)) / 0.24013125253755718d0
else if (x <= 2.0d0) then
tmp = (x * (y * (-0.0424927283095952d0))) + (z * (-0.0424927283095952d0))
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 <= -1.5e+19) {
tmp = (x + -2.0) / 0.24013125253755718;
} else if (x <= 2.0) {
tmp = (x * (y * -0.0424927283095952)) + (z * -0.0424927283095952);
} else {
tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -1.5e+19: tmp = (x + -2.0) / 0.24013125253755718 elif x <= 2.0: tmp = (x * (y * -0.0424927283095952)) + (z * -0.0424927283095952) else: tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -1.5e+19) tmp = Float64(Float64(x + -2.0) / 0.24013125253755718); elseif (x <= 2.0) tmp = Float64(Float64(x * Float64(y * -0.0424927283095952)) + Float64(z * -0.0424927283095952)); 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 <= -1.5e+19) tmp = (x + -2.0) / 0.24013125253755718; elseif (x <= 2.0) tmp = (x * (y * -0.0424927283095952)) + (z * -0.0424927283095952); else tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -1.5e+19], N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision], If[LessEqual[x, 2.0], N[(N[(x * N[(y * -0.0424927283095952), $MachinePrecision]), $MachinePrecision] + N[(z * -0.0424927283095952), $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.5 \cdot 10^{+19}:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718}\\
\mathbf{elif}\;x \leq 2:\\
\;\;\;\;x \cdot \left(y \cdot -0.0424927283095952\right) + z \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718 + \frac{5.86923874282773}{x}}\\
\end{array}
\end{array}
if x < -1.5e19Initial program 15.5%
associate-/l*19.2%
sub-neg19.2%
metadata-eval19.2%
fma-def19.2%
fma-def19.2%
fma-def19.2%
fma-def19.2%
fma-def19.2%
fma-def19.2%
fma-def19.2%
Simplified19.2%
Taylor expanded in x around inf 92.4%
if -1.5e19 < x < 2Initial program 98.4%
associate-*r/99.8%
sub-neg99.8%
metadata-eval99.8%
*-commutative99.8%
fma-def99.8%
*-commutative99.8%
fma-def99.8%
*-commutative99.8%
fma-def99.8%
fma-def99.8%
*-commutative99.8%
Simplified99.8%
Taylor expanded in x around 0 93.2%
Taylor expanded in y around inf 92.7%
*-commutative92.7%
*-commutative92.7%
associate-*l*92.8%
Simplified92.8%
if 2 < x Initial program 11.1%
associate-/l*13.8%
sub-neg13.8%
metadata-eval13.8%
fma-def13.8%
fma-def13.8%
fma-def13.8%
fma-def13.7%
fma-def13.7%
fma-def13.7%
fma-def13.7%
Simplified13.7%
Taylor expanded in x around inf 88.9%
associate-*r/88.9%
metadata-eval88.9%
Simplified88.9%
Final simplification91.6%
(FPCore (x y z) :precision binary64 (if (or (<= x -1.5e+19) (not (<= x 1.6))) (/ (+ x -2.0) 0.24013125253755718) (* z (- (/ x 47.066876606) 0.0424927283095952))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -1.5e+19) || !(x <= 1.6)) {
tmp = (x + -2.0) / 0.24013125253755718;
} else {
tmp = z * ((x / 47.066876606) - 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 <= (-1.5d+19)) .or. (.not. (x <= 1.6d0))) then
tmp = (x + (-2.0d0)) / 0.24013125253755718d0
else
tmp = z * ((x / 47.066876606d0) - 0.0424927283095952d0)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -1.5e+19) || !(x <= 1.6)) {
tmp = (x + -2.0) / 0.24013125253755718;
} else {
tmp = z * ((x / 47.066876606) - 0.0424927283095952);
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -1.5e+19) or not (x <= 1.6): tmp = (x + -2.0) / 0.24013125253755718 else: tmp = z * ((x / 47.066876606) - 0.0424927283095952) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -1.5e+19) || !(x <= 1.6)) tmp = Float64(Float64(x + -2.0) / 0.24013125253755718); else tmp = Float64(z * Float64(Float64(x / 47.066876606) - 0.0424927283095952)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -1.5e+19) || ~((x <= 1.6))) tmp = (x + -2.0) / 0.24013125253755718; else tmp = z * ((x / 47.066876606) - 0.0424927283095952); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -1.5e+19], N[Not[LessEqual[x, 1.6]], $MachinePrecision]], N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision], N[(z * N[(N[(x / 47.066876606), $MachinePrecision] - 0.0424927283095952), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.5 \cdot 10^{+19} \lor \neg \left(x \leq 1.6\right):\\
\;\;\;\;\frac{x + -2}{0.24013125253755718}\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(\frac{x}{47.066876606} - 0.0424927283095952\right)\\
\end{array}
\end{array}
if x < -1.5e19 or 1.6000000000000001 < x Initial program 13.0%
associate-/l*16.0%
sub-neg16.0%
metadata-eval16.0%
fma-def16.0%
fma-def16.0%
fma-def16.0%
fma-def16.0%
fma-def16.0%
fma-def16.0%
fma-def16.0%
Simplified16.0%
Taylor expanded in x around inf 90.1%
if -1.5e19 < x < 1.6000000000000001Initial program 98.4%
associate-/l*99.5%
sub-neg99.5%
metadata-eval99.5%
fma-def99.5%
fma-def99.5%
fma-def99.5%
fma-def99.5%
fma-def99.5%
fma-def99.5%
fma-def99.5%
Simplified99.5%
Taylor expanded in x around 0 68.0%
Taylor expanded in z around 0 67.3%
sub-neg67.3%
metadata-eval67.3%
associate-*r*67.9%
*-commutative67.9%
metadata-eval67.9%
associate-/r/68.0%
associate-*r/68.0%
*-rgt-identity68.0%
associate-/r/67.9%
*-commutative67.9%
metadata-eval67.9%
sub-neg67.9%
div-sub67.9%
metadata-eval67.9%
Simplified67.9%
Final simplification78.7%
(FPCore (x y z) :precision binary64 (if (or (<= x -1.5e+19) (not (<= x 4.2))) (/ (+ x -2.0) 0.24013125253755718) (* (+ x -2.0) (* z 0.0212463641547976))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -1.5e+19) || !(x <= 4.2)) {
tmp = (x + -2.0) / 0.24013125253755718;
} else {
tmp = (x + -2.0) * (z * 0.0212463641547976);
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((x <= (-1.5d+19)) .or. (.not. (x <= 4.2d0))) then
tmp = (x + (-2.0d0)) / 0.24013125253755718d0
else
tmp = (x + (-2.0d0)) * (z * 0.0212463641547976d0)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -1.5e+19) || !(x <= 4.2)) {
tmp = (x + -2.0) / 0.24013125253755718;
} else {
tmp = (x + -2.0) * (z * 0.0212463641547976);
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -1.5e+19) or not (x <= 4.2): tmp = (x + -2.0) / 0.24013125253755718 else: tmp = (x + -2.0) * (z * 0.0212463641547976) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -1.5e+19) || !(x <= 4.2)) tmp = Float64(Float64(x + -2.0) / 0.24013125253755718); else tmp = Float64(Float64(x + -2.0) * Float64(z * 0.0212463641547976)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -1.5e+19) || ~((x <= 4.2))) tmp = (x + -2.0) / 0.24013125253755718; else tmp = (x + -2.0) * (z * 0.0212463641547976); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -1.5e+19], N[Not[LessEqual[x, 4.2]], $MachinePrecision]], N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(z * 0.0212463641547976), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.5 \cdot 10^{+19} \lor \neg \left(x \leq 4.2\right):\\
\;\;\;\;\frac{x + -2}{0.24013125253755718}\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976\right)\\
\end{array}
\end{array}
if x < -1.5e19 or 4.20000000000000018 < x Initial program 13.0%
associate-/l*16.0%
sub-neg16.0%
metadata-eval16.0%
fma-def16.0%
fma-def16.0%
fma-def16.0%
fma-def16.0%
fma-def16.0%
fma-def16.0%
fma-def16.0%
Simplified16.0%
Taylor expanded in x around inf 90.1%
if -1.5e19 < x < 4.20000000000000018Initial program 98.4%
associate-*r/99.8%
sub-neg99.8%
metadata-eval99.8%
*-commutative99.8%
fma-def99.8%
*-commutative99.8%
fma-def99.8%
*-commutative99.8%
fma-def99.8%
fma-def99.8%
*-commutative99.8%
Simplified99.8%
Taylor expanded in x around 0 67.9%
Final simplification78.7%
(FPCore (x y z) :precision binary64 (if (or (<= x -1.5e+19) (not (<= x 0.9))) (/ (+ x -2.0) 0.24013125253755718) (/ (+ x -2.0) (/ 47.066876606 z))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -1.5e+19) || !(x <= 0.9)) {
tmp = (x + -2.0) / 0.24013125253755718;
} else {
tmp = (x + -2.0) / (47.066876606 / z);
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((x <= (-1.5d+19)) .or. (.not. (x <= 0.9d0))) then
tmp = (x + (-2.0d0)) / 0.24013125253755718d0
else
tmp = (x + (-2.0d0)) / (47.066876606d0 / z)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -1.5e+19) || !(x <= 0.9)) {
tmp = (x + -2.0) / 0.24013125253755718;
} else {
tmp = (x + -2.0) / (47.066876606 / z);
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -1.5e+19) or not (x <= 0.9): tmp = (x + -2.0) / 0.24013125253755718 else: tmp = (x + -2.0) / (47.066876606 / z) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -1.5e+19) || !(x <= 0.9)) tmp = Float64(Float64(x + -2.0) / 0.24013125253755718); else tmp = Float64(Float64(x + -2.0) / Float64(47.066876606 / z)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -1.5e+19) || ~((x <= 0.9))) tmp = (x + -2.0) / 0.24013125253755718; else tmp = (x + -2.0) / (47.066876606 / z); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -1.5e+19], N[Not[LessEqual[x, 0.9]], $MachinePrecision]], N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] / N[(47.066876606 / z), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.5 \cdot 10^{+19} \lor \neg \left(x \leq 0.9\right):\\
\;\;\;\;\frac{x + -2}{0.24013125253755718}\\
\mathbf{else}:\\
\;\;\;\;\frac{x + -2}{\frac{47.066876606}{z}}\\
\end{array}
\end{array}
if x < -1.5e19 or 0.900000000000000022 < x Initial program 13.0%
associate-/l*16.0%
sub-neg16.0%
metadata-eval16.0%
fma-def16.0%
fma-def16.0%
fma-def16.0%
fma-def16.0%
fma-def16.0%
fma-def16.0%
fma-def16.0%
Simplified16.0%
Taylor expanded in x around inf 90.1%
if -1.5e19 < x < 0.900000000000000022Initial program 98.4%
associate-/l*99.5%
sub-neg99.5%
metadata-eval99.5%
fma-def99.5%
fma-def99.5%
fma-def99.5%
fma-def99.5%
fma-def99.5%
fma-def99.5%
fma-def99.5%
Simplified99.5%
Taylor expanded in x around 0 68.0%
Final simplification78.7%
(FPCore (x y z) :precision binary64 (if (or (<= x -2.15e+15) (not (<= x 1.35))) (/ (+ x -2.0) 0.24013125253755718) (* z -0.0424927283095952)))
double code(double x, double y, double z) {
double tmp;
if ((x <= -2.15e+15) || !(x <= 1.35)) {
tmp = (x + -2.0) / 0.24013125253755718;
} 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 <= (-2.15d+15)) .or. (.not. (x <= 1.35d0))) then
tmp = (x + (-2.0d0)) / 0.24013125253755718d0
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 <= -2.15e+15) || !(x <= 1.35)) {
tmp = (x + -2.0) / 0.24013125253755718;
} else {
tmp = z * -0.0424927283095952;
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -2.15e+15) or not (x <= 1.35): tmp = (x + -2.0) / 0.24013125253755718 else: tmp = z * -0.0424927283095952 return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -2.15e+15) || !(x <= 1.35)) tmp = Float64(Float64(x + -2.0) / 0.24013125253755718); else tmp = Float64(z * -0.0424927283095952); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -2.15e+15) || ~((x <= 1.35))) tmp = (x + -2.0) / 0.24013125253755718; else tmp = z * -0.0424927283095952; end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -2.15e+15], N[Not[LessEqual[x, 1.35]], $MachinePrecision]], N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision], N[(z * -0.0424927283095952), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2.15 \cdot 10^{+15} \lor \neg \left(x \leq 1.35\right):\\
\;\;\;\;\frac{x + -2}{0.24013125253755718}\\
\mathbf{else}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\end{array}
\end{array}
if x < -2.15e15 or 1.3500000000000001 < x Initial program 12.9%
associate-/l*16.7%
sub-neg16.7%
metadata-eval16.7%
fma-def16.7%
fma-def16.7%
fma-def16.7%
fma-def16.7%
fma-def16.7%
fma-def16.7%
fma-def16.7%
Simplified16.7%
Taylor expanded in x around inf 89.5%
if -2.15e15 < x < 1.3500000000000001Initial program 99.1%
associate-*r/99.8%
sub-neg99.8%
metadata-eval99.8%
*-commutative99.8%
fma-def99.8%
*-commutative99.8%
fma-def99.8%
*-commutative99.8%
fma-def99.8%
fma-def99.8%
*-commutative99.8%
Simplified99.8%
Taylor expanded in x around 0 68.4%
*-commutative68.4%
Simplified68.4%
Final simplification78.7%
(FPCore (x y z) :precision binary64 (if (<= x -2.15e+15) (* x 4.16438922228) (if (<= x 0.85) (* z -0.0424927283095952) (* 4.16438922228 (+ x -2.0)))))
double code(double x, double y, double z) {
double tmp;
if (x <= -2.15e+15) {
tmp = x * 4.16438922228;
} else if (x <= 0.85) {
tmp = z * -0.0424927283095952;
} else {
tmp = 4.16438922228 * (x + -2.0);
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-2.15d+15)) then
tmp = x * 4.16438922228d0
else if (x <= 0.85d0) then
tmp = z * (-0.0424927283095952d0)
else
tmp = 4.16438922228d0 * (x + (-2.0d0))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -2.15e+15) {
tmp = x * 4.16438922228;
} else if (x <= 0.85) {
tmp = z * -0.0424927283095952;
} else {
tmp = 4.16438922228 * (x + -2.0);
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -2.15e+15: tmp = x * 4.16438922228 elif x <= 0.85: tmp = z * -0.0424927283095952 else: tmp = 4.16438922228 * (x + -2.0) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -2.15e+15) tmp = Float64(x * 4.16438922228); elseif (x <= 0.85) tmp = Float64(z * -0.0424927283095952); else tmp = Float64(4.16438922228 * Float64(x + -2.0)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -2.15e+15) tmp = x * 4.16438922228; elseif (x <= 0.85) tmp = z * -0.0424927283095952; else tmp = 4.16438922228 * (x + -2.0); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -2.15e+15], N[(x * 4.16438922228), $MachinePrecision], If[LessEqual[x, 0.85], N[(z * -0.0424927283095952), $MachinePrecision], N[(4.16438922228 * N[(x + -2.0), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2.15 \cdot 10^{+15}:\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{elif}\;x \leq 0.85:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;4.16438922228 \cdot \left(x + -2\right)\\
\end{array}
\end{array}
if x < -2.15e15Initial program 15.3%
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 90.8%
associate-*r/90.8%
metadata-eval90.8%
Simplified90.8%
Taylor expanded in x around inf 90.3%
*-commutative90.3%
Simplified90.3%
if -2.15e15 < x < 0.849999999999999978Initial program 99.1%
associate-*r/99.8%
sub-neg99.8%
metadata-eval99.8%
*-commutative99.8%
fma-def99.8%
*-commutative99.8%
fma-def99.8%
*-commutative99.8%
fma-def99.8%
fma-def99.8%
*-commutative99.8%
Simplified99.8%
Taylor expanded in x around 0 68.4%
*-commutative68.4%
Simplified68.4%
if 0.849999999999999978 < x Initial program 11.1%
associate-*r/13.7%
sub-neg13.7%
metadata-eval13.7%
*-commutative13.7%
fma-def13.8%
*-commutative13.8%
fma-def13.8%
*-commutative13.8%
fma-def13.8%
fma-def13.8%
*-commutative13.8%
Simplified13.8%
Taylor expanded in x around inf 88.0%
Final simplification78.5%
(FPCore (x y z)
:precision binary64
(if (<= x -2.15e+15)
(* x 4.16438922228)
(if (<= x 19.5)
(* z -0.0424927283095952)
(- (* x 4.16438922228) 110.1139242984811))))
double code(double x, double y, double z) {
double tmp;
if (x <= -2.15e+15) {
tmp = x * 4.16438922228;
} else if (x <= 19.5) {
tmp = z * -0.0424927283095952;
} else {
tmp = (x * 4.16438922228) - 110.1139242984811;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-2.15d+15)) then
tmp = x * 4.16438922228d0
else if (x <= 19.5d0) then
tmp = z * (-0.0424927283095952d0)
else
tmp = (x * 4.16438922228d0) - 110.1139242984811d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -2.15e+15) {
tmp = x * 4.16438922228;
} else if (x <= 19.5) {
tmp = z * -0.0424927283095952;
} else {
tmp = (x * 4.16438922228) - 110.1139242984811;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -2.15e+15: tmp = x * 4.16438922228 elif x <= 19.5: tmp = z * -0.0424927283095952 else: tmp = (x * 4.16438922228) - 110.1139242984811 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -2.15e+15) tmp = Float64(x * 4.16438922228); elseif (x <= 19.5) tmp = Float64(z * -0.0424927283095952); else tmp = Float64(Float64(x * 4.16438922228) - 110.1139242984811); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -2.15e+15) tmp = x * 4.16438922228; elseif (x <= 19.5) tmp = z * -0.0424927283095952; else tmp = (x * 4.16438922228) - 110.1139242984811; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -2.15e+15], N[(x * 4.16438922228), $MachinePrecision], If[LessEqual[x, 19.5], N[(z * -0.0424927283095952), $MachinePrecision], N[(N[(x * 4.16438922228), $MachinePrecision] - 110.1139242984811), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2.15 \cdot 10^{+15}:\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{elif}\;x \leq 19.5:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228 - 110.1139242984811\\
\end{array}
\end{array}
if x < -2.15e15Initial program 15.3%
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 90.8%
associate-*r/90.8%
metadata-eval90.8%
Simplified90.8%
Taylor expanded in x around inf 90.3%
*-commutative90.3%
Simplified90.3%
if -2.15e15 < x < 19.5Initial program 99.1%
associate-*r/99.8%
sub-neg99.8%
metadata-eval99.8%
*-commutative99.8%
fma-def99.8%
*-commutative99.8%
fma-def99.8%
*-commutative99.8%
fma-def99.8%
fma-def99.8%
*-commutative99.8%
Simplified99.8%
Taylor expanded in x around 0 67.9%
*-commutative67.9%
Simplified67.9%
if 19.5 < x Initial program 9.9%
associate-*r/12.5%
sub-neg12.5%
metadata-eval12.5%
*-commutative12.5%
fma-def12.6%
*-commutative12.6%
fma-def12.6%
*-commutative12.6%
fma-def12.6%
fma-def12.6%
*-commutative12.6%
Simplified12.6%
Taylor expanded in x around inf 89.4%
Final simplification78.5%
(FPCore (x y z) :precision binary64 (if (<= x -2.15e+15) (* 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 <= -2.15e+15) {
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 <= (-2.15d+15)) 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 <= -2.15e+15) {
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 <= -2.15e+15: 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 <= -2.15e+15) 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 <= -2.15e+15) 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, -2.15e+15], 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 -2.15 \cdot 10^{+15}:\\
\;\;\;\;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 < -2.15e15 or 2 < x Initial program 12.9%
associate-/l*16.7%
sub-neg16.7%
metadata-eval16.7%
fma-def16.7%
fma-def16.7%
fma-def16.7%
fma-def16.7%
fma-def16.7%
fma-def16.7%
fma-def16.7%
Simplified16.7%
Taylor expanded in x around inf 89.7%
associate-*r/89.7%
metadata-eval89.7%
Simplified89.7%
Taylor expanded in x around inf 89.0%
*-commutative89.0%
Simplified89.0%
if -2.15e15 < x < 2Initial program 99.1%
associate-*r/99.8%
sub-neg99.8%
metadata-eval99.8%
*-commutative99.8%
fma-def99.8%
*-commutative99.8%
fma-def99.8%
*-commutative99.8%
fma-def99.8%
fma-def99.8%
*-commutative99.8%
Simplified99.8%
Taylor expanded in x around 0 68.4%
*-commutative68.4%
Simplified68.4%
Final simplification78.5%
(FPCore (x y z) :precision binary64 (* x -0.3407596943375357))
double code(double x, double y, double z) {
return x * -0.3407596943375357;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = x * (-0.3407596943375357d0)
end function
public static double code(double x, double y, double z) {
return x * -0.3407596943375357;
}
def code(x, y, z): return x * -0.3407596943375357
function code(x, y, z) return Float64(x * -0.3407596943375357) end
function tmp = code(x, y, z) tmp = x * -0.3407596943375357; end
code[x_, y_, z_] := N[(x * -0.3407596943375357), $MachinePrecision]
\begin{array}{l}
\\
x \cdot -0.3407596943375357
\end{array}
Initial program 57.0%
associate-/l*59.1%
sub-neg59.1%
metadata-eval59.1%
fma-def59.1%
fma-def59.1%
fma-def59.1%
fma-def59.1%
fma-def59.1%
fma-def59.1%
fma-def59.1%
Simplified59.1%
Taylor expanded in x around inf 45.7%
associate-*r/45.7%
metadata-eval45.7%
Simplified45.7%
Taylor expanded in x around 0 2.3%
*-commutative2.3%
Simplified2.3%
Final simplification2.3%
(FPCore (x y z) :precision binary64 (* x 4.16438922228))
double code(double x, double y, double z) {
return x * 4.16438922228;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = x * 4.16438922228d0
end function
public static double code(double x, double y, double z) {
return x * 4.16438922228;
}
def code(x, y, z): return x * 4.16438922228
function code(x, y, z) return Float64(x * 4.16438922228) end
function tmp = code(x, y, z) tmp = x * 4.16438922228; end
code[x_, y_, z_] := N[(x * 4.16438922228), $MachinePrecision]
\begin{array}{l}
\\
x \cdot 4.16438922228
\end{array}
Initial program 57.0%
associate-/l*59.1%
sub-neg59.1%
metadata-eval59.1%
fma-def59.1%
fma-def59.1%
fma-def59.1%
fma-def59.1%
fma-def59.1%
fma-def59.1%
fma-def59.1%
Simplified59.1%
Taylor expanded in x around inf 45.7%
associate-*r/45.7%
metadata-eval45.7%
Simplified45.7%
Taylor expanded in x around inf 45.3%
*-commutative45.3%
Simplified45.3%
Final simplification45.3%
(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 2023224
(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)))