
(FPCore (x y z)
:precision binary64
(/
(*
(- x 2.0)
(+
(*
(+ (* (+ (* (+ (* x 4.16438922228) 78.6994924154) x) 137.519416416) x) y)
x)
z))
(+
(* (+ (* (+ (* (+ x 43.3400022514) x) 263.505074721) x) 313.399215894) x)
47.066876606)))
double code(double x, double y, double z) {
return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606);
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = ((x - 2.0d0) * ((((((((x * 4.16438922228d0) + 78.6994924154d0) * x) + 137.519416416d0) * x) + y) * x) + z)) / (((((((x + 43.3400022514d0) * x) + 263.505074721d0) * x) + 313.399215894d0) * x) + 47.066876606d0)
end function
public static double code(double x, double y, double z) {
return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606);
}
def code(x, y, z): return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606)
function code(x, y, z) return Float64(Float64(Float64(x - 2.0) * Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606)) end
function tmp = code(x, y, z) tmp = ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606); end
code[x_, y_, z_] := N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(N[(N[(N[(N[(N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision] * x), $MachinePrecision] + 137.519416416), $MachinePrecision] * x), $MachinePrecision] + y), $MachinePrecision] * x), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(x + 43.3400022514), $MachinePrecision] * x), $MachinePrecision] + 263.505074721), $MachinePrecision] * x), $MachinePrecision] + 313.399215894), $MachinePrecision] * x), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 23 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z)
:precision binary64
(/
(*
(- x 2.0)
(+
(*
(+ (* (+ (* (+ (* x 4.16438922228) 78.6994924154) x) 137.519416416) x) y)
x)
z))
(+
(* (+ (* (+ (* (+ x 43.3400022514) x) 263.505074721) x) 313.399215894) x)
47.066876606)))
double code(double x, double y, double z) {
return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606);
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = ((x - 2.0d0) * ((((((((x * 4.16438922228d0) + 78.6994924154d0) * x) + 137.519416416d0) * x) + y) * x) + z)) / (((((((x + 43.3400022514d0) * x) + 263.505074721d0) * x) + 313.399215894d0) * x) + 47.066876606d0)
end function
public static double code(double x, double y, double z) {
return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606);
}
def code(x, y, z): return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606)
function code(x, y, z) return Float64(Float64(Float64(x - 2.0) * Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606)) end
function tmp = code(x, y, z) tmp = ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606); end
code[x_, y_, z_] := N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(N[(N[(N[(N[(N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision] * x), $MachinePrecision] + 137.519416416), $MachinePrecision] * x), $MachinePrecision] + y), $MachinePrecision] * x), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(x + 43.3400022514), $MachinePrecision] * x), $MachinePrecision] + 263.505074721), $MachinePrecision] * x), $MachinePrecision] + 313.399215894), $MachinePrecision] * x), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606}
\end{array}
(FPCore (x y z)
:precision binary64
(let* ((t_0 (* x (* x x)))
(t_1
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))
(t_2
(+
(*
x
(+
(* x (+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))
y))
z)))
(if (<= (/ (* (- x 2.0) t_2) t_1) 4e+299)
(* (+ x -2.0) (/ t_2 t_1))
(*
x
(-
(+
(+ 4.16438922228 (/ 3655.1204654076414 (* x x)))
(+ (/ y t_0) (/ -110.1139242984811 x)))
(/ 130977.50649958357 t_0))))))
double code(double x, double y, double z) {
double t_0 = x * (x * x);
double t_1 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606;
double t_2 = (x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z;
double tmp;
if ((((x - 2.0) * t_2) / t_1) <= 4e+299) {
tmp = (x + -2.0) * (t_2 / t_1);
} else {
tmp = x * (((4.16438922228 + (3655.1204654076414 / (x * x))) + ((y / t_0) + (-110.1139242984811 / x))) - (130977.50649958357 / 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) :: t_1
real(8) :: t_2
real(8) :: tmp
t_0 = x * (x * x)
t_1 = (x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0
t_2 = (x * ((x * ((x * ((x * 4.16438922228d0) + 78.6994924154d0)) + 137.519416416d0)) + y)) + z
if ((((x - 2.0d0) * t_2) / t_1) <= 4d+299) then
tmp = (x + (-2.0d0)) * (t_2 / t_1)
else
tmp = x * (((4.16438922228d0 + (3655.1204654076414d0 / (x * x))) + ((y / t_0) + ((-110.1139242984811d0) / x))) - (130977.50649958357d0 / t_0))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = x * (x * x);
double t_1 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606;
double t_2 = (x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z;
double tmp;
if ((((x - 2.0) * t_2) / t_1) <= 4e+299) {
tmp = (x + -2.0) * (t_2 / t_1);
} else {
tmp = x * (((4.16438922228 + (3655.1204654076414 / (x * x))) + ((y / t_0) + (-110.1139242984811 / x))) - (130977.50649958357 / t_0));
}
return tmp;
}
def code(x, y, z): t_0 = x * (x * x) t_1 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606 t_2 = (x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z tmp = 0 if (((x - 2.0) * t_2) / t_1) <= 4e+299: tmp = (x + -2.0) * (t_2 / t_1) else: tmp = x * (((4.16438922228 + (3655.1204654076414 / (x * x))) + ((y / t_0) + (-110.1139242984811 / x))) - (130977.50649958357 / t_0)) return tmp
function code(x, y, z) t_0 = Float64(x * Float64(x * x)) t_1 = Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) t_2 = Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z) tmp = 0.0 if (Float64(Float64(Float64(x - 2.0) * t_2) / t_1) <= 4e+299) tmp = Float64(Float64(x + -2.0) * Float64(t_2 / t_1)); else tmp = Float64(x * Float64(Float64(Float64(4.16438922228 + Float64(3655.1204654076414 / Float64(x * x))) + Float64(Float64(y / t_0) + Float64(-110.1139242984811 / x))) - Float64(130977.50649958357 / t_0))); end return tmp end
function tmp_2 = code(x, y, z) t_0 = x * (x * x); t_1 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606; t_2 = (x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z; tmp = 0.0; if ((((x - 2.0) * t_2) / t_1) <= 4e+299) tmp = (x + -2.0) * (t_2 / t_1); else tmp = x * (((4.16438922228 + (3655.1204654076414 / (x * x))) + ((y / t_0) + (-110.1139242984811 / x))) - (130977.50649958357 / t_0)); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(x * N[(x * x), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = 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$2 = 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]}, If[LessEqual[N[(N[(N[(x - 2.0), $MachinePrecision] * t$95$2), $MachinePrecision] / t$95$1), $MachinePrecision], 4e+299], N[(N[(x + -2.0), $MachinePrecision] * N[(t$95$2 / t$95$1), $MachinePrecision]), $MachinePrecision], N[(x * N[(N[(N[(4.16438922228 + N[(3655.1204654076414 / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(y / t$95$0), $MachinePrecision] + N[(-110.1139242984811 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(130977.50649958357 / t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(x \cdot x\right)\\
t_1 := x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606\\
t_2 := x \cdot \left(x \cdot \left(x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right) + 137.519416416\right) + y\right) + z\\
\mathbf{if}\;\frac{\left(x - 2\right) \cdot t\_2}{t\_1} \leq 4 \cdot 10^{+299}:\\
\;\;\;\;\left(x + -2\right) \cdot \frac{t\_2}{t\_1}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(\left(\left(4.16438922228 + \frac{3655.1204654076414}{x \cdot x}\right) + \left(\frac{y}{t\_0} + \frac{-110.1139242984811}{x}\right)\right) - \frac{130977.50649958357}{t\_0}\right)\\
\end{array}
\end{array}
if (/.f64 (*.f64 (-.f64 x #s(literal 2 binary64)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x #s(literal 104109730557/25000000000 binary64)) #s(literal 393497462077/5000000000 binary64)) x) #s(literal 4297481763/31250000 binary64)) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x #s(literal 216700011257/5000000000 binary64)) x) #s(literal 263505074721/1000000000 binary64)) x) #s(literal 156699607947/500000000 binary64)) x) #s(literal 23533438303/500000000 binary64))) < 4.0000000000000002e299Initial program 95.5%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified99.5%
if 4.0000000000000002e299 < (/.f64 (*.f64 (-.f64 x #s(literal 2 binary64)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x #s(literal 104109730557/25000000000 binary64)) #s(literal 393497462077/5000000000 binary64)) x) #s(literal 4297481763/31250000 binary64)) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x #s(literal 216700011257/5000000000 binary64)) x) #s(literal 263505074721/1000000000 binary64)) x) #s(literal 156699607947/500000000 binary64)) x) #s(literal 23533438303/500000000 binary64))) Initial program 0.3%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified3.4%
Taylor expanded in x around inf
*-lowering-*.f64N/A
associate--r+N/A
--lowering--.f64N/A
Simplified99.2%
Final simplification99.4%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (* x (* x x)))
(t_1
(+
(*
x
(+
(* x (+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))
y))
z)))
(if (<= x -8.8e+64)
(/ (+ x -2.0) 0.24013125253755718)
(if (<= x -36.0)
(* t_1 (/ 1.0 t_0))
(if (<= x 72.0)
(/ (+ x -2.0) (/ (+ 47.066876606 (* x 313.399215894)) t_1))
(*
x
(-
(+
(+ 4.16438922228 (/ 3655.1204654076414 (* x x)))
(+ (/ y t_0) (/ -110.1139242984811 x)))
(/ 130977.50649958357 t_0))))))))
double code(double x, double y, double z) {
double t_0 = x * (x * x);
double t_1 = (x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z;
double tmp;
if (x <= -8.8e+64) {
tmp = (x + -2.0) / 0.24013125253755718;
} else if (x <= -36.0) {
tmp = t_1 * (1.0 / t_0);
} else if (x <= 72.0) {
tmp = (x + -2.0) / ((47.066876606 + (x * 313.399215894)) / t_1);
} else {
tmp = x * (((4.16438922228 + (3655.1204654076414 / (x * x))) + ((y / t_0) + (-110.1139242984811 / x))) - (130977.50649958357 / 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) :: t_1
real(8) :: tmp
t_0 = x * (x * x)
t_1 = (x * ((x * ((x * ((x * 4.16438922228d0) + 78.6994924154d0)) + 137.519416416d0)) + y)) + z
if (x <= (-8.8d+64)) then
tmp = (x + (-2.0d0)) / 0.24013125253755718d0
else if (x <= (-36.0d0)) then
tmp = t_1 * (1.0d0 / t_0)
else if (x <= 72.0d0) then
tmp = (x + (-2.0d0)) / ((47.066876606d0 + (x * 313.399215894d0)) / t_1)
else
tmp = x * (((4.16438922228d0 + (3655.1204654076414d0 / (x * x))) + ((y / t_0) + ((-110.1139242984811d0) / x))) - (130977.50649958357d0 / t_0))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = x * (x * x);
double t_1 = (x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z;
double tmp;
if (x <= -8.8e+64) {
tmp = (x + -2.0) / 0.24013125253755718;
} else if (x <= -36.0) {
tmp = t_1 * (1.0 / t_0);
} else if (x <= 72.0) {
tmp = (x + -2.0) / ((47.066876606 + (x * 313.399215894)) / t_1);
} else {
tmp = x * (((4.16438922228 + (3655.1204654076414 / (x * x))) + ((y / t_0) + (-110.1139242984811 / x))) - (130977.50649958357 / t_0));
}
return tmp;
}
def code(x, y, z): t_0 = x * (x * x) t_1 = (x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z tmp = 0 if x <= -8.8e+64: tmp = (x + -2.0) / 0.24013125253755718 elif x <= -36.0: tmp = t_1 * (1.0 / t_0) elif x <= 72.0: tmp = (x + -2.0) / ((47.066876606 + (x * 313.399215894)) / t_1) else: tmp = x * (((4.16438922228 + (3655.1204654076414 / (x * x))) + ((y / t_0) + (-110.1139242984811 / x))) - (130977.50649958357 / t_0)) return tmp
function code(x, y, z) t_0 = Float64(x * Float64(x * x)) t_1 = Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z) tmp = 0.0 if (x <= -8.8e+64) tmp = Float64(Float64(x + -2.0) / 0.24013125253755718); elseif (x <= -36.0) tmp = Float64(t_1 * Float64(1.0 / t_0)); elseif (x <= 72.0) tmp = Float64(Float64(x + -2.0) / Float64(Float64(47.066876606 + Float64(x * 313.399215894)) / t_1)); else tmp = Float64(x * Float64(Float64(Float64(4.16438922228 + Float64(3655.1204654076414 / Float64(x * x))) + Float64(Float64(y / t_0) + Float64(-110.1139242984811 / x))) - Float64(130977.50649958357 / t_0))); end return tmp end
function tmp_2 = code(x, y, z) t_0 = x * (x * x); t_1 = (x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z; tmp = 0.0; if (x <= -8.8e+64) tmp = (x + -2.0) / 0.24013125253755718; elseif (x <= -36.0) tmp = t_1 * (1.0 / t_0); elseif (x <= 72.0) tmp = (x + -2.0) / ((47.066876606 + (x * 313.399215894)) / t_1); else tmp = x * (((4.16438922228 + (3655.1204654076414 / (x * x))) + ((y / t_0) + (-110.1139242984811 / x))) - (130977.50649958357 / t_0)); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(x * N[(x * x), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = 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]}, If[LessEqual[x, -8.8e+64], N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision], If[LessEqual[x, -36.0], N[(t$95$1 * N[(1.0 / t$95$0), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 72.0], N[(N[(x + -2.0), $MachinePrecision] / N[(N[(47.066876606 + N[(x * 313.399215894), $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision]), $MachinePrecision], N[(x * N[(N[(N[(4.16438922228 + N[(3655.1204654076414 / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(y / t$95$0), $MachinePrecision] + N[(-110.1139242984811 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(130977.50649958357 / t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(x \cdot x\right)\\
t_1 := x \cdot \left(x \cdot \left(x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right) + 137.519416416\right) + y\right) + z\\
\mathbf{if}\;x \leq -8.8 \cdot 10^{+64}:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718}\\
\mathbf{elif}\;x \leq -36:\\
\;\;\;\;t\_1 \cdot \frac{1}{t\_0}\\
\mathbf{elif}\;x \leq 72:\\
\;\;\;\;\frac{x + -2}{\frac{47.066876606 + x \cdot 313.399215894}{t\_1}}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(\left(\left(4.16438922228 + \frac{3655.1204654076414}{x \cdot x}\right) + \left(\frac{y}{t\_0} + \frac{-110.1139242984811}{x}\right)\right) - \frac{130977.50649958357}{t\_0}\right)\\
\end{array}
\end{array}
if x < -8.80000000000000007e64Initial program 0.2%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified5.5%
Applied egg-rr5.5%
Taylor expanded in x around inf
Simplified99.8%
if -8.80000000000000007e64 < x < -36Initial program 84.9%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified94.6%
Applied egg-rr94.4%
Taylor expanded in x around inf
/-lowering-/.f64N/A
cube-multN/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6491.5%
Simplified91.5%
if -36 < x < 72Initial program 99.6%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified99.6%
Applied egg-rr99.5%
Taylor expanded in x around 0
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6498.2%
Simplified98.2%
if 72 < x Initial program 9.3%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified19.8%
Taylor expanded in x around inf
*-lowering-*.f64N/A
associate--r+N/A
--lowering--.f64N/A
Simplified94.4%
Final simplification97.3%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(+
(*
x
(+
(* x (+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))
y))
z)))
(if (<= x -8.8e+64)
(/ (+ x -2.0) 0.24013125253755718)
(if (<= x -36.0)
(* t_0 (/ 1.0 (* x (* x x))))
(if (<= x 30.0)
(/ (+ x -2.0) (/ (+ 47.066876606 (* x 313.399215894)) t_0))
(*
(+ x -2.0)
(+
4.16438922228
(/
(-
(/ (+ 3451.550173699799 (/ (- y 124074.40615218398) x)) x)
101.7851458539211)
x))))))))
double code(double x, double y, double z) {
double t_0 = (x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z;
double tmp;
if (x <= -8.8e+64) {
tmp = (x + -2.0) / 0.24013125253755718;
} else if (x <= -36.0) {
tmp = t_0 * (1.0 / (x * (x * x)));
} else if (x <= 30.0) {
tmp = (x + -2.0) / ((47.066876606 + (x * 313.399215894)) / t_0);
} else {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = (x * ((x * ((x * ((x * 4.16438922228d0) + 78.6994924154d0)) + 137.519416416d0)) + y)) + z
if (x <= (-8.8d+64)) then
tmp = (x + (-2.0d0)) / 0.24013125253755718d0
else if (x <= (-36.0d0)) then
tmp = t_0 * (1.0d0 / (x * (x * x)))
else if (x <= 30.0d0) then
tmp = (x + (-2.0d0)) / ((47.066876606d0 + (x * 313.399215894d0)) / t_0)
else
tmp = (x + (-2.0d0)) * (4.16438922228d0 + ((((3451.550173699799d0 + ((y - 124074.40615218398d0) / x)) / x) - 101.7851458539211d0) / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = (x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z;
double tmp;
if (x <= -8.8e+64) {
tmp = (x + -2.0) / 0.24013125253755718;
} else if (x <= -36.0) {
tmp = t_0 * (1.0 / (x * (x * x)));
} else if (x <= 30.0) {
tmp = (x + -2.0) / ((47.066876606 + (x * 313.399215894)) / t_0);
} else {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
}
return tmp;
}
def code(x, y, z): t_0 = (x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z tmp = 0 if x <= -8.8e+64: tmp = (x + -2.0) / 0.24013125253755718 elif x <= -36.0: tmp = t_0 * (1.0 / (x * (x * x))) elif x <= 30.0: tmp = (x + -2.0) / ((47.066876606 + (x * 313.399215894)) / t_0) else: tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)) return tmp
function code(x, y, z) t_0 = Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z) tmp = 0.0 if (x <= -8.8e+64) tmp = Float64(Float64(x + -2.0) / 0.24013125253755718); elseif (x <= -36.0) tmp = Float64(t_0 * Float64(1.0 / Float64(x * Float64(x * x)))); elseif (x <= 30.0) tmp = Float64(Float64(x + -2.0) / Float64(Float64(47.066876606 + Float64(x * 313.399215894)) / t_0)); else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(Float64(y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x))); end return tmp end
function tmp_2 = code(x, y, z) t_0 = (x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z; tmp = 0.0; if (x <= -8.8e+64) tmp = (x + -2.0) / 0.24013125253755718; elseif (x <= -36.0) tmp = t_0 * (1.0 / (x * (x * x))); elseif (x <= 30.0) tmp = (x + -2.0) / ((47.066876606 + (x * 313.399215894)) / t_0); else tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(x * N[(N[(x * N[(N[(x * N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision]), $MachinePrecision] + 137.519416416), $MachinePrecision]), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision]}, If[LessEqual[x, -8.8e+64], N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision], If[LessEqual[x, -36.0], N[(t$95$0 * N[(1.0 / N[(x * N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 30.0], N[(N[(x + -2.0), $MachinePrecision] / N[(N[(47.066876606 + N[(x * 313.399215894), $MachinePrecision]), $MachinePrecision] / t$95$0), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 + N[(N[(y - 124074.40615218398), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(x \cdot \left(x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right) + 137.519416416\right) + y\right) + z\\
\mathbf{if}\;x \leq -8.8 \cdot 10^{+64}:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718}\\
\mathbf{elif}\;x \leq -36:\\
\;\;\;\;t\_0 \cdot \frac{1}{x \cdot \left(x \cdot x\right)}\\
\mathbf{elif}\;x \leq 30:\\
\;\;\;\;\frac{x + -2}{\frac{47.066876606 + x \cdot 313.399215894}{t\_0}}\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 + \frac{y - 124074.40615218398}{x}}{x} - 101.7851458539211}{x}\right)\\
\end{array}
\end{array}
if x < -8.80000000000000007e64Initial program 0.2%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified5.5%
Applied egg-rr5.5%
Taylor expanded in x around inf
Simplified99.8%
if -8.80000000000000007e64 < x < -36Initial program 84.9%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified94.6%
Applied egg-rr94.4%
Taylor expanded in x around inf
/-lowering-/.f64N/A
cube-multN/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6491.5%
Simplified91.5%
if -36 < x < 30Initial program 99.6%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified99.6%
Applied egg-rr99.5%
Taylor expanded in x around 0
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6498.2%
Simplified98.2%
if 30 < x Initial program 9.3%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified19.8%
Taylor expanded in x around -inf
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
Simplified94.3%
Final simplification97.3%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (* x (* x x))))
(if (<= x -1.42e+20)
(*
(+ x -2.0)
(+
4.16438922228
(/
(-
(/ (+ 3451.550173699799 (/ (- y 124074.40615218398) x)) x)
101.7851458539211)
x)))
(if (<= x 145000000000.0)
(/
(* (- x 2.0) (+ z (* x (+ y (* x 137.519416416)))))
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))
(*
x
(-
(+
(+ 4.16438922228 (/ 3655.1204654076414 (* x x)))
(+ (/ y t_0) (/ -110.1139242984811 x)))
(/ 130977.50649958357 t_0)))))))
double code(double x, double y, double z) {
double t_0 = x * (x * x);
double tmp;
if (x <= -1.42e+20) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
} else if (x <= 145000000000.0) {
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 * (((4.16438922228 + (3655.1204654076414 / (x * x))) + ((y / t_0) + (-110.1139242984811 / x))) - (130977.50649958357 / t_0));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = x * (x * x)
if (x <= (-1.42d+20)) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + ((((3451.550173699799d0 + ((y - 124074.40615218398d0) / x)) / x) - 101.7851458539211d0) / x))
else if (x <= 145000000000.0d0) then
tmp = ((x - 2.0d0) * (z + (x * (y + (x * 137.519416416d0))))) / ((x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0)
else
tmp = x * (((4.16438922228d0 + (3655.1204654076414d0 / (x * x))) + ((y / t_0) + ((-110.1139242984811d0) / x))) - (130977.50649958357d0 / t_0))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = x * (x * x);
double tmp;
if (x <= -1.42e+20) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
} else if (x <= 145000000000.0) {
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 * (((4.16438922228 + (3655.1204654076414 / (x * x))) + ((y / t_0) + (-110.1139242984811 / x))) - (130977.50649958357 / t_0));
}
return tmp;
}
def code(x, y, z): t_0 = x * (x * x) tmp = 0 if x <= -1.42e+20: tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)) elif x <= 145000000000.0: 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 * (((4.16438922228 + (3655.1204654076414 / (x * x))) + ((y / t_0) + (-110.1139242984811 / x))) - (130977.50649958357 / t_0)) return tmp
function code(x, y, z) t_0 = Float64(x * Float64(x * x)) tmp = 0.0 if (x <= -1.42e+20) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(Float64(y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x))); elseif (x <= 145000000000.0) tmp = Float64(Float64(Float64(x - 2.0) * Float64(z + Float64(x * Float64(y + Float64(x * 137.519416416))))) / Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)); else tmp = Float64(x * Float64(Float64(Float64(4.16438922228 + Float64(3655.1204654076414 / Float64(x * x))) + Float64(Float64(y / t_0) + Float64(-110.1139242984811 / x))) - Float64(130977.50649958357 / t_0))); end return tmp end
function tmp_2 = code(x, y, z) t_0 = x * (x * x); tmp = 0.0; if (x <= -1.42e+20) tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)); elseif (x <= 145000000000.0) 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 * (((4.16438922228 + (3655.1204654076414 / (x * x))) + ((y / t_0) + (-110.1139242984811 / x))) - (130977.50649958357 / t_0)); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(x * N[(x * x), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.42e+20], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 + N[(N[(y - 124074.40615218398), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 145000000000.0], N[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + N[(x * N[(y + N[(x * 137.519416416), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision], N[(x * N[(N[(N[(4.16438922228 + N[(3655.1204654076414 / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(y / t$95$0), $MachinePrecision] + N[(-110.1139242984811 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(130977.50649958357 / t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(x \cdot x\right)\\
\mathbf{if}\;x \leq -1.42 \cdot 10^{+20}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 + \frac{y - 124074.40615218398}{x}}{x} - 101.7851458539211}{x}\right)\\
\mathbf{elif}\;x \leq 145000000000:\\
\;\;\;\;\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}:\\
\;\;\;\;x \cdot \left(\left(\left(4.16438922228 + \frac{3655.1204654076414}{x \cdot x}\right) + \left(\frac{y}{t\_0} + \frac{-110.1139242984811}{x}\right)\right) - \frac{130977.50649958357}{t\_0}\right)\\
\end{array}
\end{array}
if x < -1.42e20Initial program 17.6%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified24.6%
Taylor expanded in x around -inf
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
Simplified95.2%
if -1.42e20 < x < 1.45e11Initial program 99.6%
Taylor expanded in x around 0
*-commutativeN/A
*-lowering-*.f6498.8%
Simplified98.8%
if 1.45e11 < x Initial program 9.3%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified19.8%
Taylor expanded in x around inf
*-lowering-*.f64N/A
associate--r+N/A
--lowering--.f64N/A
Simplified94.4%
Final simplification97.1%
(FPCore (x y z)
:precision binary64
(if (<= x -8.8e+64)
(/ (+ x -2.0) 0.24013125253755718)
(if (<= x -36.0)
(*
(+
(*
x
(+
(* x (+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))
y))
z)
(/ 1.0 (* x (* x x))))
(if (<= x 130.0)
(/
(+ x -2.0)
(/
(+ 47.066876606 (* x 313.399215894))
(+ z (* x (+ y (* x (+ 137.519416416 (* x 78.6994924154))))))))
(*
(+ x -2.0)
(+
4.16438922228
(/
(-
(/ (+ 3451.550173699799 (/ (- y 124074.40615218398) x)) x)
101.7851458539211)
x)))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -8.8e+64) {
tmp = (x + -2.0) / 0.24013125253755718;
} else if (x <= -36.0) {
tmp = ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z) * (1.0 / (x * (x * x)));
} else if (x <= 130.0) {
tmp = (x + -2.0) / ((47.066876606 + (x * 313.399215894)) / (z + (x * (y + (x * (137.519416416 + (x * 78.6994924154)))))));
} else {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-8.8d+64)) then
tmp = (x + (-2.0d0)) / 0.24013125253755718d0
else if (x <= (-36.0d0)) then
tmp = ((x * ((x * ((x * ((x * 4.16438922228d0) + 78.6994924154d0)) + 137.519416416d0)) + y)) + z) * (1.0d0 / (x * (x * x)))
else if (x <= 130.0d0) then
tmp = (x + (-2.0d0)) / ((47.066876606d0 + (x * 313.399215894d0)) / (z + (x * (y + (x * (137.519416416d0 + (x * 78.6994924154d0)))))))
else
tmp = (x + (-2.0d0)) * (4.16438922228d0 + ((((3451.550173699799d0 + ((y - 124074.40615218398d0) / x)) / x) - 101.7851458539211d0) / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -8.8e+64) {
tmp = (x + -2.0) / 0.24013125253755718;
} else if (x <= -36.0) {
tmp = ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z) * (1.0 / (x * (x * x)));
} else if (x <= 130.0) {
tmp = (x + -2.0) / ((47.066876606 + (x * 313.399215894)) / (z + (x * (y + (x * (137.519416416 + (x * 78.6994924154)))))));
} else {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -8.8e+64: tmp = (x + -2.0) / 0.24013125253755718 elif x <= -36.0: tmp = ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z) * (1.0 / (x * (x * x))) elif x <= 130.0: tmp = (x + -2.0) / ((47.066876606 + (x * 313.399215894)) / (z + (x * (y + (x * (137.519416416 + (x * 78.6994924154))))))) else: tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -8.8e+64) tmp = Float64(Float64(x + -2.0) / 0.24013125253755718); elseif (x <= -36.0) tmp = Float64(Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z) * Float64(1.0 / Float64(x * Float64(x * x)))); elseif (x <= 130.0) tmp = Float64(Float64(x + -2.0) / Float64(Float64(47.066876606 + Float64(x * 313.399215894)) / Float64(z + Float64(x * Float64(y + Float64(x * Float64(137.519416416 + Float64(x * 78.6994924154)))))))); else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(Float64(y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -8.8e+64) tmp = (x + -2.0) / 0.24013125253755718; elseif (x <= -36.0) tmp = ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z) * (1.0 / (x * (x * x))); elseif (x <= 130.0) tmp = (x + -2.0) / ((47.066876606 + (x * 313.399215894)) / (z + (x * (y + (x * (137.519416416 + (x * 78.6994924154))))))); else tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -8.8e+64], N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision], If[LessEqual[x, -36.0], N[(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] * N[(1.0 / N[(x * N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 130.0], N[(N[(x + -2.0), $MachinePrecision] / N[(N[(47.066876606 + N[(x * 313.399215894), $MachinePrecision]), $MachinePrecision] / N[(z + N[(x * N[(y + N[(x * N[(137.519416416 + N[(x * 78.6994924154), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 + N[(N[(y - 124074.40615218398), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -8.8 \cdot 10^{+64}:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718}\\
\mathbf{elif}\;x \leq -36:\\
\;\;\;\;\left(x \cdot \left(x \cdot \left(x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right) + 137.519416416\right) + y\right) + z\right) \cdot \frac{1}{x \cdot \left(x \cdot x\right)}\\
\mathbf{elif}\;x \leq 130:\\
\;\;\;\;\frac{x + -2}{\frac{47.066876606 + x \cdot 313.399215894}{z + x \cdot \left(y + x \cdot \left(137.519416416 + x \cdot 78.6994924154\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 + \frac{y - 124074.40615218398}{x}}{x} - 101.7851458539211}{x}\right)\\
\end{array}
\end{array}
if x < -8.80000000000000007e64Initial program 0.2%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified5.5%
Applied egg-rr5.5%
Taylor expanded in x around inf
Simplified99.8%
if -8.80000000000000007e64 < x < -36Initial program 84.9%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified94.6%
Applied egg-rr94.4%
Taylor expanded in x around inf
/-lowering-/.f64N/A
cube-multN/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6491.5%
Simplified91.5%
if -36 < x < 130Initial program 99.6%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified99.6%
Applied egg-rr99.5%
Taylor expanded in x around 0
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6498.2%
Simplified98.2%
Taylor expanded in x around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6498.2%
Simplified98.2%
if 130 < x Initial program 9.3%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified19.8%
Taylor expanded in x around -inf
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
Simplified94.3%
Final simplification97.3%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(*
(+ x -2.0)
(+
4.16438922228
(/
(-
(/ (+ 3451.550173699799 (/ (- y 124074.40615218398) x)) x)
101.7851458539211)
x)))))
(if (<= x -36.0)
t_0
(if (<= x 53.0)
(/
(+ x -2.0)
(/
(+ 47.066876606 (* x 313.399215894))
(+ z (* x (+ y (* x (+ 137.519416416 (* x 78.6994924154))))))))
t_0))))
double code(double x, double y, double z) {
double t_0 = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
double tmp;
if (x <= -36.0) {
tmp = t_0;
} else if (x <= 53.0) {
tmp = (x + -2.0) / ((47.066876606 + (x * 313.399215894)) / (z + (x * (y + (x * (137.519416416 + (x * 78.6994924154)))))));
} else {
tmp = t_0;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = (x + (-2.0d0)) * (4.16438922228d0 + ((((3451.550173699799d0 + ((y - 124074.40615218398d0) / x)) / x) - 101.7851458539211d0) / x))
if (x <= (-36.0d0)) then
tmp = t_0
else if (x <= 53.0d0) then
tmp = (x + (-2.0d0)) / ((47.066876606d0 + (x * 313.399215894d0)) / (z + (x * (y + (x * (137.519416416d0 + (x * 78.6994924154d0)))))))
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
double tmp;
if (x <= -36.0) {
tmp = t_0;
} else if (x <= 53.0) {
tmp = (x + -2.0) / ((47.066876606 + (x * 313.399215894)) / (z + (x * (y + (x * (137.519416416 + (x * 78.6994924154)))))));
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)) tmp = 0 if x <= -36.0: tmp = t_0 elif x <= 53.0: tmp = (x + -2.0) / ((47.066876606 + (x * 313.399215894)) / (z + (x * (y + (x * (137.519416416 + (x * 78.6994924154))))))) else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(Float64(y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x))) tmp = 0.0 if (x <= -36.0) tmp = t_0; elseif (x <= 53.0) tmp = Float64(Float64(x + -2.0) / Float64(Float64(47.066876606 + Float64(x * 313.399215894)) / Float64(z + Float64(x * Float64(y + Float64(x * Float64(137.519416416 + Float64(x * 78.6994924154)))))))); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)); tmp = 0.0; if (x <= -36.0) tmp = t_0; elseif (x <= 53.0) tmp = (x + -2.0) / ((47.066876606 + (x * 313.399215894)) / (z + (x * (y + (x * (137.519416416 + (x * 78.6994924154))))))); else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 + N[(N[(y - 124074.40615218398), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -36.0], t$95$0, If[LessEqual[x, 53.0], N[(N[(x + -2.0), $MachinePrecision] / N[(N[(47.066876606 + N[(x * 313.399215894), $MachinePrecision]), $MachinePrecision] / N[(z + N[(x * N[(y + N[(x * N[(137.519416416 + N[(x * 78.6994924154), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$0]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 + \frac{y - 124074.40615218398}{x}}{x} - 101.7851458539211}{x}\right)\\
\mathbf{if}\;x \leq -36:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 53:\\
\;\;\;\;\frac{x + -2}{\frac{47.066876606 + x \cdot 313.399215894}{z + x \cdot \left(y + x \cdot \left(137.519416416 + x \cdot 78.6994924154\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if x < -36 or 53 < x Initial program 17.9%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified25.9%
Taylor expanded in x around -inf
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
Simplified92.2%
if -36 < x < 53Initial program 99.6%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified99.6%
Applied egg-rr99.5%
Taylor expanded in x around 0
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6498.2%
Simplified98.2%
Taylor expanded in x around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6498.2%
Simplified98.2%
Final simplification95.4%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(*
(+ x -2.0)
(+
4.16438922228
(/
(-
(/ (+ 3451.550173699799 (/ (- y 124074.40615218398) x)) x)
101.7851458539211)
x)))))
(if (<= x -36.0)
t_0
(if (<= x 82.0)
(/
(+ x -2.0)
(/
(+ 47.066876606 (* x 313.399215894))
(+ z (* x (+ y (* x 137.519416416))))))
t_0))))
double code(double x, double y, double z) {
double t_0 = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
double tmp;
if (x <= -36.0) {
tmp = t_0;
} else if (x <= 82.0) {
tmp = (x + -2.0) / ((47.066876606 + (x * 313.399215894)) / (z + (x * (y + (x * 137.519416416)))));
} else {
tmp = t_0;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = (x + (-2.0d0)) * (4.16438922228d0 + ((((3451.550173699799d0 + ((y - 124074.40615218398d0) / x)) / x) - 101.7851458539211d0) / x))
if (x <= (-36.0d0)) then
tmp = t_0
else if (x <= 82.0d0) then
tmp = (x + (-2.0d0)) / ((47.066876606d0 + (x * 313.399215894d0)) / (z + (x * (y + (x * 137.519416416d0)))))
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
double tmp;
if (x <= -36.0) {
tmp = t_0;
} else if (x <= 82.0) {
tmp = (x + -2.0) / ((47.066876606 + (x * 313.399215894)) / (z + (x * (y + (x * 137.519416416)))));
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)) tmp = 0 if x <= -36.0: tmp = t_0 elif x <= 82.0: tmp = (x + -2.0) / ((47.066876606 + (x * 313.399215894)) / (z + (x * (y + (x * 137.519416416))))) else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(Float64(y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x))) tmp = 0.0 if (x <= -36.0) tmp = t_0; elseif (x <= 82.0) tmp = Float64(Float64(x + -2.0) / Float64(Float64(47.066876606 + Float64(x * 313.399215894)) / Float64(z + Float64(x * Float64(y + Float64(x * 137.519416416)))))); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)); tmp = 0.0; if (x <= -36.0) tmp = t_0; elseif (x <= 82.0) tmp = (x + -2.0) / ((47.066876606 + (x * 313.399215894)) / (z + (x * (y + (x * 137.519416416))))); else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 + N[(N[(y - 124074.40615218398), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -36.0], t$95$0, If[LessEqual[x, 82.0], N[(N[(x + -2.0), $MachinePrecision] / N[(N[(47.066876606 + N[(x * 313.399215894), $MachinePrecision]), $MachinePrecision] / N[(z + N[(x * N[(y + N[(x * 137.519416416), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$0]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 + \frac{y - 124074.40615218398}{x}}{x} - 101.7851458539211}{x}\right)\\
\mathbf{if}\;x \leq -36:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 82:\\
\;\;\;\;\frac{x + -2}{\frac{47.066876606 + x \cdot 313.399215894}{z + x \cdot \left(y + x \cdot 137.519416416\right)}}\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if x < -36 or 82 < x Initial program 17.9%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified25.9%
Taylor expanded in x around -inf
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
Simplified92.2%
if -36 < x < 82Initial program 99.6%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified99.6%
Applied egg-rr99.5%
Taylor expanded in x around 0
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6498.2%
Simplified98.2%
Taylor expanded in x around 0
*-commutativeN/A
*-lowering-*.f6498.1%
Simplified98.1%
Final simplification95.3%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(*
(+ x -2.0)
(+
4.16438922228
(/
(-
(/ (+ 3451.550173699799 (/ (- y 124074.40615218398) x)) x)
101.7851458539211)
x)))))
(if (<= x -36.0)
t_0
(if (<= x 30.0)
(/ (+ x -2.0) (/ (+ 47.066876606 (* x 313.399215894)) (+ z (* x y))))
t_0))))
double code(double x, double y, double z) {
double t_0 = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
double tmp;
if (x <= -36.0) {
tmp = t_0;
} else if (x <= 30.0) {
tmp = (x + -2.0) / ((47.066876606 + (x * 313.399215894)) / (z + (x * y)));
} else {
tmp = t_0;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = (x + (-2.0d0)) * (4.16438922228d0 + ((((3451.550173699799d0 + ((y - 124074.40615218398d0) / x)) / x) - 101.7851458539211d0) / x))
if (x <= (-36.0d0)) then
tmp = t_0
else if (x <= 30.0d0) then
tmp = (x + (-2.0d0)) / ((47.066876606d0 + (x * 313.399215894d0)) / (z + (x * y)))
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
double tmp;
if (x <= -36.0) {
tmp = t_0;
} else if (x <= 30.0) {
tmp = (x + -2.0) / ((47.066876606 + (x * 313.399215894)) / (z + (x * y)));
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)) tmp = 0 if x <= -36.0: tmp = t_0 elif x <= 30.0: tmp = (x + -2.0) / ((47.066876606 + (x * 313.399215894)) / (z + (x * y))) else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(Float64(y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x))) tmp = 0.0 if (x <= -36.0) tmp = t_0; elseif (x <= 30.0) tmp = Float64(Float64(x + -2.0) / Float64(Float64(47.066876606 + Float64(x * 313.399215894)) / Float64(z + Float64(x * y)))); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)); tmp = 0.0; if (x <= -36.0) tmp = t_0; elseif (x <= 30.0) tmp = (x + -2.0) / ((47.066876606 + (x * 313.399215894)) / (z + (x * y))); else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 + N[(N[(y - 124074.40615218398), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -36.0], t$95$0, If[LessEqual[x, 30.0], N[(N[(x + -2.0), $MachinePrecision] / N[(N[(47.066876606 + N[(x * 313.399215894), $MachinePrecision]), $MachinePrecision] / N[(z + N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$0]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 + \frac{y - 124074.40615218398}{x}}{x} - 101.7851458539211}{x}\right)\\
\mathbf{if}\;x \leq -36:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 30:\\
\;\;\;\;\frac{x + -2}{\frac{47.066876606 + x \cdot 313.399215894}{z + x \cdot y}}\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if x < -36 or 30 < x Initial program 17.9%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified25.9%
Taylor expanded in x around -inf
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
Simplified92.2%
if -36 < x < 30Initial program 99.6%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified99.6%
Applied egg-rr99.5%
Taylor expanded in x around 0
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6498.2%
Simplified98.2%
Taylor expanded in x around 0
+-lowering-+.f64N/A
*-lowering-*.f6490.5%
Simplified90.5%
Final simplification91.3%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (+ 47.066876606 (* x 313.399215894))))
(if (<= x -36.0)
(/ (+ x -2.0) 0.24013125253755718)
(if (<= x -2e-44)
(* (* y (+ x -2.0)) (/ x t_0))
(if (<= x 0.0152)
(/ (* z (+ x -2.0)) t_0)
(* x (+ 4.16438922228 (/ -110.1139242984811 x))))))))
double code(double x, double y, double z) {
double t_0 = 47.066876606 + (x * 313.399215894);
double tmp;
if (x <= -36.0) {
tmp = (x + -2.0) / 0.24013125253755718;
} else if (x <= -2e-44) {
tmp = (y * (x + -2.0)) * (x / t_0);
} else if (x <= 0.0152) {
tmp = (z * (x + -2.0)) / t_0;
} else {
tmp = x * (4.16438922228 + (-110.1139242984811 / 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 = 47.066876606d0 + (x * 313.399215894d0)
if (x <= (-36.0d0)) then
tmp = (x + (-2.0d0)) / 0.24013125253755718d0
else if (x <= (-2d-44)) then
tmp = (y * (x + (-2.0d0))) * (x / t_0)
else if (x <= 0.0152d0) then
tmp = (z * (x + (-2.0d0))) / t_0
else
tmp = x * (4.16438922228d0 + ((-110.1139242984811d0) / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = 47.066876606 + (x * 313.399215894);
double tmp;
if (x <= -36.0) {
tmp = (x + -2.0) / 0.24013125253755718;
} else if (x <= -2e-44) {
tmp = (y * (x + -2.0)) * (x / t_0);
} else if (x <= 0.0152) {
tmp = (z * (x + -2.0)) / t_0;
} else {
tmp = x * (4.16438922228 + (-110.1139242984811 / x));
}
return tmp;
}
def code(x, y, z): t_0 = 47.066876606 + (x * 313.399215894) tmp = 0 if x <= -36.0: tmp = (x + -2.0) / 0.24013125253755718 elif x <= -2e-44: tmp = (y * (x + -2.0)) * (x / t_0) elif x <= 0.0152: tmp = (z * (x + -2.0)) / t_0 else: tmp = x * (4.16438922228 + (-110.1139242984811 / x)) return tmp
function code(x, y, z) t_0 = Float64(47.066876606 + Float64(x * 313.399215894)) tmp = 0.0 if (x <= -36.0) tmp = Float64(Float64(x + -2.0) / 0.24013125253755718); elseif (x <= -2e-44) tmp = Float64(Float64(y * Float64(x + -2.0)) * Float64(x / t_0)); elseif (x <= 0.0152) tmp = Float64(Float64(z * Float64(x + -2.0)) / t_0); else tmp = Float64(x * Float64(4.16438922228 + Float64(-110.1139242984811 / x))); end return tmp end
function tmp_2 = code(x, y, z) t_0 = 47.066876606 + (x * 313.399215894); tmp = 0.0; if (x <= -36.0) tmp = (x + -2.0) / 0.24013125253755718; elseif (x <= -2e-44) tmp = (y * (x + -2.0)) * (x / t_0); elseif (x <= 0.0152) tmp = (z * (x + -2.0)) / t_0; else tmp = x * (4.16438922228 + (-110.1139242984811 / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(47.066876606 + N[(x * 313.399215894), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -36.0], N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision], If[LessEqual[x, -2e-44], N[(N[(y * N[(x + -2.0), $MachinePrecision]), $MachinePrecision] * N[(x / t$95$0), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 0.0152], N[(N[(z * N[(x + -2.0), $MachinePrecision]), $MachinePrecision] / t$95$0), $MachinePrecision], N[(x * N[(4.16438922228 + N[(-110.1139242984811 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := 47.066876606 + x \cdot 313.399215894\\
\mathbf{if}\;x \leq -36:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718}\\
\mathbf{elif}\;x \leq -2 \cdot 10^{-44}:\\
\;\;\;\;\left(y \cdot \left(x + -2\right)\right) \cdot \frac{x}{t\_0}\\
\mathbf{elif}\;x \leq 0.0152:\\
\;\;\;\;\frac{z \cdot \left(x + -2\right)}{t\_0}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(4.16438922228 + \frac{-110.1139242984811}{x}\right)\\
\end{array}
\end{array}
if x < -36Initial program 23.1%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified29.6%
Applied egg-rr29.5%
Taylor expanded in x around inf
Simplified82.6%
if -36 < x < -1.99999999999999991e-44Initial program 99.7%
Taylor expanded in y around inf
*-lowering-*.f64N/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f6465.9%
Simplified65.9%
*-commutativeN/A
*-commutativeN/A
*-commutativeN/A
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
+-lowering-+.f64N/A
Applied egg-rr66.0%
Taylor expanded in x around 0
*-commutativeN/A
*-lowering-*.f6459.4%
Simplified59.4%
if -1.99999999999999991e-44 < x < 0.0152Initial program 99.6%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified99.6%
Applied egg-rr99.4%
Taylor expanded in x around 0
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6499.4%
Simplified99.4%
Taylor expanded in z around inf
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6473.4%
Simplified73.4%
if 0.0152 < x Initial program 11.3%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified21.5%
Taylor expanded in x around inf
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
associate-*r/N/A
metadata-evalN/A
distribute-neg-fracN/A
/-lowering-/.f64N/A
metadata-eval86.6%
Simplified86.6%
Final simplification77.6%
(FPCore (x y z)
:precision binary64
(if (<= x -5.5)
(/ (+ x -2.0) 0.24013125253755718)
(if (<= x -1.3e-44)
(* x (* y (+ -0.0424927283095952 (* x 0.3041881842569256))))
(if (<= x 0.0152)
(/ (* z (+ x -2.0)) (+ 47.066876606 (* x 313.399215894)))
(* x (+ 4.16438922228 (/ -110.1139242984811 x)))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -5.5) {
tmp = (x + -2.0) / 0.24013125253755718;
} else if (x <= -1.3e-44) {
tmp = x * (y * (-0.0424927283095952 + (x * 0.3041881842569256)));
} else if (x <= 0.0152) {
tmp = (z * (x + -2.0)) / (47.066876606 + (x * 313.399215894));
} else {
tmp = x * (4.16438922228 + (-110.1139242984811 / 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 <= (-5.5d0)) then
tmp = (x + (-2.0d0)) / 0.24013125253755718d0
else if (x <= (-1.3d-44)) then
tmp = x * (y * ((-0.0424927283095952d0) + (x * 0.3041881842569256d0)))
else if (x <= 0.0152d0) then
tmp = (z * (x + (-2.0d0))) / (47.066876606d0 + (x * 313.399215894d0))
else
tmp = x * (4.16438922228d0 + ((-110.1139242984811d0) / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -5.5) {
tmp = (x + -2.0) / 0.24013125253755718;
} else if (x <= -1.3e-44) {
tmp = x * (y * (-0.0424927283095952 + (x * 0.3041881842569256)));
} else if (x <= 0.0152) {
tmp = (z * (x + -2.0)) / (47.066876606 + (x * 313.399215894));
} else {
tmp = x * (4.16438922228 + (-110.1139242984811 / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -5.5: tmp = (x + -2.0) / 0.24013125253755718 elif x <= -1.3e-44: tmp = x * (y * (-0.0424927283095952 + (x * 0.3041881842569256))) elif x <= 0.0152: tmp = (z * (x + -2.0)) / (47.066876606 + (x * 313.399215894)) else: tmp = x * (4.16438922228 + (-110.1139242984811 / x)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -5.5) tmp = Float64(Float64(x + -2.0) / 0.24013125253755718); elseif (x <= -1.3e-44) tmp = Float64(x * Float64(y * Float64(-0.0424927283095952 + Float64(x * 0.3041881842569256)))); elseif (x <= 0.0152) tmp = Float64(Float64(z * Float64(x + -2.0)) / Float64(47.066876606 + Float64(x * 313.399215894))); else tmp = Float64(x * Float64(4.16438922228 + Float64(-110.1139242984811 / x))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -5.5) tmp = (x + -2.0) / 0.24013125253755718; elseif (x <= -1.3e-44) tmp = x * (y * (-0.0424927283095952 + (x * 0.3041881842569256))); elseif (x <= 0.0152) tmp = (z * (x + -2.0)) / (47.066876606 + (x * 313.399215894)); else tmp = x * (4.16438922228 + (-110.1139242984811 / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -5.5], N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision], If[LessEqual[x, -1.3e-44], N[(x * N[(y * N[(-0.0424927283095952 + N[(x * 0.3041881842569256), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 0.0152], N[(N[(z * N[(x + -2.0), $MachinePrecision]), $MachinePrecision] / N[(47.066876606 + N[(x * 313.399215894), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(4.16438922228 + N[(-110.1139242984811 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -5.5:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718}\\
\mathbf{elif}\;x \leq -1.3 \cdot 10^{-44}:\\
\;\;\;\;x \cdot \left(y \cdot \left(-0.0424927283095952 + x \cdot 0.3041881842569256\right)\right)\\
\mathbf{elif}\;x \leq 0.0152:\\
\;\;\;\;\frac{z \cdot \left(x + -2\right)}{47.066876606 + x \cdot 313.399215894}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(4.16438922228 + \frac{-110.1139242984811}{x}\right)\\
\end{array}
\end{array}
if x < -5.5Initial program 24.1%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified30.5%
Applied egg-rr30.4%
Taylor expanded in x around inf
Simplified81.6%
if -5.5 < x < -1.2999999999999999e-44Initial program 99.8%
Taylor expanded in y around inf
*-lowering-*.f64N/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f6463.6%
Simplified63.6%
Taylor expanded in x around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
distribute-rgt-out--N/A
metadata-evalN/A
metadata-evalN/A
*-lowering-*.f64N/A
metadata-eval62.2%
Simplified62.2%
Taylor expanded in y around 0
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6462.2%
Simplified62.2%
if -1.2999999999999999e-44 < x < 0.0152Initial program 99.6%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified99.6%
Applied egg-rr99.4%
Taylor expanded in x around 0
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6499.4%
Simplified99.4%
Taylor expanded in z around inf
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6473.4%
Simplified73.4%
if 0.0152 < x Initial program 11.3%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified21.5%
Taylor expanded in x around inf
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
associate-*r/N/A
metadata-evalN/A
distribute-neg-fracN/A
/-lowering-/.f64N/A
metadata-eval86.6%
Simplified86.6%
Final simplification77.6%
(FPCore (x y z)
:precision binary64
(if (<= x -36.0)
(/ (+ x -2.0) 0.24013125253755718)
(if (<= x 1850.0)
(/ (+ x -2.0) (/ (+ 47.066876606 (* x 313.399215894)) (+ z (* x y))))
(* x (+ 4.16438922228 (/ -110.1139242984811 x))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -36.0) {
tmp = (x + -2.0) / 0.24013125253755718;
} else if (x <= 1850.0) {
tmp = (x + -2.0) / ((47.066876606 + (x * 313.399215894)) / (z + (x * y)));
} else {
tmp = x * (4.16438922228 + (-110.1139242984811 / 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 <= 1850.0d0) then
tmp = (x + (-2.0d0)) / ((47.066876606d0 + (x * 313.399215894d0)) / (z + (x * y)))
else
tmp = x * (4.16438922228d0 + ((-110.1139242984811d0) / 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 <= 1850.0) {
tmp = (x + -2.0) / ((47.066876606 + (x * 313.399215894)) / (z + (x * y)));
} else {
tmp = x * (4.16438922228 + (-110.1139242984811 / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -36.0: tmp = (x + -2.0) / 0.24013125253755718 elif x <= 1850.0: tmp = (x + -2.0) / ((47.066876606 + (x * 313.399215894)) / (z + (x * y))) else: tmp = x * (4.16438922228 + (-110.1139242984811 / 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 <= 1850.0) tmp = Float64(Float64(x + -2.0) / Float64(Float64(47.066876606 + Float64(x * 313.399215894)) / Float64(z + Float64(x * y)))); else tmp = Float64(x * Float64(4.16438922228 + Float64(-110.1139242984811 / 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 <= 1850.0) tmp = (x + -2.0) / ((47.066876606 + (x * 313.399215894)) / (z + (x * y))); else tmp = x * (4.16438922228 + (-110.1139242984811 / 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, 1850.0], N[(N[(x + -2.0), $MachinePrecision] / N[(N[(47.066876606 + N[(x * 313.399215894), $MachinePrecision]), $MachinePrecision] / N[(z + N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(4.16438922228 + N[(-110.1139242984811 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -36:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718}\\
\mathbf{elif}\;x \leq 1850:\\
\;\;\;\;\frac{x + -2}{\frac{47.066876606 + x \cdot 313.399215894}{z + x \cdot y}}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(4.16438922228 + \frac{-110.1139242984811}{x}\right)\\
\end{array}
\end{array}
if x < -36Initial program 23.1%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified29.6%
Applied egg-rr29.5%
Taylor expanded in x around inf
Simplified82.6%
if -36 < x < 1850Initial program 99.6%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified99.6%
Applied egg-rr99.5%
Taylor expanded in x around 0
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6498.2%
Simplified98.2%
Taylor expanded in x around 0
+-lowering-+.f64N/A
*-lowering-*.f6490.5%
Simplified90.5%
if 1850 < x Initial program 9.3%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified19.8%
Taylor expanded in x around inf
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
associate-*r/N/A
metadata-evalN/A
distribute-neg-fracN/A
/-lowering-/.f64N/A
metadata-eval88.5%
Simplified88.5%
(FPCore (x y z)
:precision binary64
(if (<= x -1.0)
(/ (+ x -2.0) 0.24013125253755718)
(if (<= x -4e-44)
(* x (* y (+ -0.0424927283095952 (* x 0.3041881842569256))))
(if (<= x 0.0152)
(+ (* x (* z 0.3041881842569256)) (* z -0.0424927283095952))
(* x (+ 4.16438922228 (/ -110.1139242984811 x)))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -1.0) {
tmp = (x + -2.0) / 0.24013125253755718;
} else if (x <= -4e-44) {
tmp = x * (y * (-0.0424927283095952 + (x * 0.3041881842569256)));
} else if (x <= 0.0152) {
tmp = (x * (z * 0.3041881842569256)) + (z * -0.0424927283095952);
} else {
tmp = x * (4.16438922228 + (-110.1139242984811 / 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.0d0)) then
tmp = (x + (-2.0d0)) / 0.24013125253755718d0
else if (x <= (-4d-44)) then
tmp = x * (y * ((-0.0424927283095952d0) + (x * 0.3041881842569256d0)))
else if (x <= 0.0152d0) then
tmp = (x * (z * 0.3041881842569256d0)) + (z * (-0.0424927283095952d0))
else
tmp = x * (4.16438922228d0 + ((-110.1139242984811d0) / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -1.0) {
tmp = (x + -2.0) / 0.24013125253755718;
} else if (x <= -4e-44) {
tmp = x * (y * (-0.0424927283095952 + (x * 0.3041881842569256)));
} else if (x <= 0.0152) {
tmp = (x * (z * 0.3041881842569256)) + (z * -0.0424927283095952);
} else {
tmp = x * (4.16438922228 + (-110.1139242984811 / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -1.0: tmp = (x + -2.0) / 0.24013125253755718 elif x <= -4e-44: tmp = x * (y * (-0.0424927283095952 + (x * 0.3041881842569256))) elif x <= 0.0152: tmp = (x * (z * 0.3041881842569256)) + (z * -0.0424927283095952) else: tmp = x * (4.16438922228 + (-110.1139242984811 / x)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -1.0) tmp = Float64(Float64(x + -2.0) / 0.24013125253755718); elseif (x <= -4e-44) tmp = Float64(x * Float64(y * Float64(-0.0424927283095952 + Float64(x * 0.3041881842569256)))); elseif (x <= 0.0152) tmp = Float64(Float64(x * Float64(z * 0.3041881842569256)) + Float64(z * -0.0424927283095952)); else tmp = Float64(x * Float64(4.16438922228 + Float64(-110.1139242984811 / x))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -1.0) tmp = (x + -2.0) / 0.24013125253755718; elseif (x <= -4e-44) tmp = x * (y * (-0.0424927283095952 + (x * 0.3041881842569256))); elseif (x <= 0.0152) tmp = (x * (z * 0.3041881842569256)) + (z * -0.0424927283095952); else tmp = x * (4.16438922228 + (-110.1139242984811 / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -1.0], N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision], If[LessEqual[x, -4e-44], N[(x * N[(y * N[(-0.0424927283095952 + N[(x * 0.3041881842569256), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 0.0152], N[(N[(x * N[(z * 0.3041881842569256), $MachinePrecision]), $MachinePrecision] + N[(z * -0.0424927283095952), $MachinePrecision]), $MachinePrecision], N[(x * N[(4.16438922228 + N[(-110.1139242984811 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718}\\
\mathbf{elif}\;x \leq -4 \cdot 10^{-44}:\\
\;\;\;\;x \cdot \left(y \cdot \left(-0.0424927283095952 + x \cdot 0.3041881842569256\right)\right)\\
\mathbf{elif}\;x \leq 0.0152:\\
\;\;\;\;x \cdot \left(z \cdot 0.3041881842569256\right) + z \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(4.16438922228 + \frac{-110.1139242984811}{x}\right)\\
\end{array}
\end{array}
if x < -1Initial program 24.1%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified30.5%
Applied egg-rr30.4%
Taylor expanded in x around inf
Simplified81.6%
if -1 < x < -3.99999999999999981e-44Initial program 99.8%
Taylor expanded in y around inf
*-lowering-*.f64N/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f6463.6%
Simplified63.6%
Taylor expanded in x around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
distribute-rgt-out--N/A
metadata-evalN/A
metadata-evalN/A
*-lowering-*.f64N/A
metadata-eval62.2%
Simplified62.2%
Taylor expanded in y around 0
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6462.2%
Simplified62.2%
if -3.99999999999999981e-44 < x < 0.0152Initial program 99.6%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified99.6%
Taylor expanded in x around 0
Simplified73.4%
Taylor expanded in x around 0
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
distribute-rgt-out--N/A
metadata-evalN/A
*-lowering-*.f6473.3%
Simplified73.3%
if 0.0152 < x Initial program 11.3%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified21.5%
Taylor expanded in x around inf
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
associate-*r/N/A
metadata-evalN/A
distribute-neg-fracN/A
/-lowering-/.f64N/A
metadata-eval86.6%
Simplified86.6%
Final simplification77.5%
(FPCore (x y z)
:precision binary64
(if (<= x -2700000.0)
(/ (+ x -2.0) 0.24013125253755718)
(if (<= x 28.0)
(+
(* x (+ (* y -0.0424927283095952) (* z 0.3041881842569256)))
(* z -0.0424927283095952))
(* x (+ 4.16438922228 (/ -110.1139242984811 x))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -2700000.0) {
tmp = (x + -2.0) / 0.24013125253755718;
} else if (x <= 28.0) {
tmp = (x * ((y * -0.0424927283095952) + (z * 0.3041881842569256))) + (z * -0.0424927283095952);
} else {
tmp = x * (4.16438922228 + (-110.1139242984811 / 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 <= (-2700000.0d0)) then
tmp = (x + (-2.0d0)) / 0.24013125253755718d0
else if (x <= 28.0d0) then
tmp = (x * ((y * (-0.0424927283095952d0)) + (z * 0.3041881842569256d0))) + (z * (-0.0424927283095952d0))
else
tmp = x * (4.16438922228d0 + ((-110.1139242984811d0) / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -2700000.0) {
tmp = (x + -2.0) / 0.24013125253755718;
} else if (x <= 28.0) {
tmp = (x * ((y * -0.0424927283095952) + (z * 0.3041881842569256))) + (z * -0.0424927283095952);
} else {
tmp = x * (4.16438922228 + (-110.1139242984811 / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -2700000.0: tmp = (x + -2.0) / 0.24013125253755718 elif x <= 28.0: tmp = (x * ((y * -0.0424927283095952) + (z * 0.3041881842569256))) + (z * -0.0424927283095952) else: tmp = x * (4.16438922228 + (-110.1139242984811 / x)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -2700000.0) tmp = Float64(Float64(x + -2.0) / 0.24013125253755718); elseif (x <= 28.0) tmp = Float64(Float64(x * Float64(Float64(y * -0.0424927283095952) + Float64(z * 0.3041881842569256))) + Float64(z * -0.0424927283095952)); else tmp = Float64(x * Float64(4.16438922228 + Float64(-110.1139242984811 / x))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -2700000.0) tmp = (x + -2.0) / 0.24013125253755718; elseif (x <= 28.0) tmp = (x * ((y * -0.0424927283095952) + (z * 0.3041881842569256))) + (z * -0.0424927283095952); else tmp = x * (4.16438922228 + (-110.1139242984811 / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -2700000.0], N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision], If[LessEqual[x, 28.0], N[(N[(x * N[(N[(y * -0.0424927283095952), $MachinePrecision] + N[(z * 0.3041881842569256), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(z * -0.0424927283095952), $MachinePrecision]), $MachinePrecision], N[(x * N[(4.16438922228 + N[(-110.1139242984811 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2700000:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718}\\
\mathbf{elif}\;x \leq 28:\\
\;\;\;\;x \cdot \left(y \cdot -0.0424927283095952 + z \cdot 0.3041881842569256\right) + z \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(4.16438922228 + \frac{-110.1139242984811}{x}\right)\\
\end{array}
\end{array}
if x < -2.7e6Initial program 22.1%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified28.6%
Applied egg-rr28.6%
Taylor expanded in x around inf
Simplified83.7%
if -2.7e6 < x < 28Initial program 99.6%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified99.6%
Applied egg-rr99.6%
Taylor expanded in x around 0
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
*-lowering-*.f64N/A
metadata-eval89.2%
Simplified89.2%
if 28 < x Initial program 9.3%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified19.8%
Taylor expanded in x around inf
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
associate-*r/N/A
metadata-evalN/A
distribute-neg-fracN/A
/-lowering-/.f64N/A
metadata-eval88.5%
Simplified88.5%
Final simplification87.5%
(FPCore (x y z)
:precision binary64
(if (<= x -0.205)
(/ (+ x -2.0) 0.24013125253755718)
(if (<= x -5e-44)
(* x (* y (+ -0.0424927283095952 (* x 0.3041881842569256))))
(if (<= x 0.0152)
(* (+ x -2.0) (/ z 47.066876606))
(* x (+ 4.16438922228 (/ -110.1139242984811 x)))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -0.205) {
tmp = (x + -2.0) / 0.24013125253755718;
} else if (x <= -5e-44) {
tmp = x * (y * (-0.0424927283095952 + (x * 0.3041881842569256)));
} else if (x <= 0.0152) {
tmp = (x + -2.0) * (z / 47.066876606);
} else {
tmp = x * (4.16438922228 + (-110.1139242984811 / x));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-0.205d0)) then
tmp = (x + (-2.0d0)) / 0.24013125253755718d0
else if (x <= (-5d-44)) then
tmp = x * (y * ((-0.0424927283095952d0) + (x * 0.3041881842569256d0)))
else if (x <= 0.0152d0) then
tmp = (x + (-2.0d0)) * (z / 47.066876606d0)
else
tmp = x * (4.16438922228d0 + ((-110.1139242984811d0) / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -0.205) {
tmp = (x + -2.0) / 0.24013125253755718;
} else if (x <= -5e-44) {
tmp = x * (y * (-0.0424927283095952 + (x * 0.3041881842569256)));
} else if (x <= 0.0152) {
tmp = (x + -2.0) * (z / 47.066876606);
} else {
tmp = x * (4.16438922228 + (-110.1139242984811 / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -0.205: tmp = (x + -2.0) / 0.24013125253755718 elif x <= -5e-44: tmp = x * (y * (-0.0424927283095952 + (x * 0.3041881842569256))) elif x <= 0.0152: tmp = (x + -2.0) * (z / 47.066876606) else: tmp = x * (4.16438922228 + (-110.1139242984811 / x)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -0.205) tmp = Float64(Float64(x + -2.0) / 0.24013125253755718); elseif (x <= -5e-44) tmp = Float64(x * Float64(y * Float64(-0.0424927283095952 + Float64(x * 0.3041881842569256)))); elseif (x <= 0.0152) tmp = Float64(Float64(x + -2.0) * Float64(z / 47.066876606)); else tmp = Float64(x * Float64(4.16438922228 + Float64(-110.1139242984811 / x))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -0.205) tmp = (x + -2.0) / 0.24013125253755718; elseif (x <= -5e-44) tmp = x * (y * (-0.0424927283095952 + (x * 0.3041881842569256))); elseif (x <= 0.0152) tmp = (x + -2.0) * (z / 47.066876606); else tmp = x * (4.16438922228 + (-110.1139242984811 / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -0.205], N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision], If[LessEqual[x, -5e-44], N[(x * N[(y * N[(-0.0424927283095952 + N[(x * 0.3041881842569256), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 0.0152], N[(N[(x + -2.0), $MachinePrecision] * N[(z / 47.066876606), $MachinePrecision]), $MachinePrecision], N[(x * N[(4.16438922228 + N[(-110.1139242984811 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -0.205:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718}\\
\mathbf{elif}\;x \leq -5 \cdot 10^{-44}:\\
\;\;\;\;x \cdot \left(y \cdot \left(-0.0424927283095952 + x \cdot 0.3041881842569256\right)\right)\\
\mathbf{elif}\;x \leq 0.0152:\\
\;\;\;\;\left(x + -2\right) \cdot \frac{z}{47.066876606}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(4.16438922228 + \frac{-110.1139242984811}{x}\right)\\
\end{array}
\end{array}
if x < -0.204999999999999988Initial program 24.1%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified30.5%
Applied egg-rr30.4%
Taylor expanded in x around inf
Simplified81.6%
if -0.204999999999999988 < x < -5.00000000000000039e-44Initial program 99.8%
Taylor expanded in y around inf
*-lowering-*.f64N/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f6463.6%
Simplified63.6%
Taylor expanded in x around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
distribute-rgt-out--N/A
metadata-evalN/A
metadata-evalN/A
*-lowering-*.f64N/A
metadata-eval62.2%
Simplified62.2%
Taylor expanded in y around 0
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6462.2%
Simplified62.2%
if -5.00000000000000039e-44 < x < 0.0152Initial program 99.6%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified99.6%
Taylor expanded in x around 0
Simplified73.4%
Taylor expanded in x around 0
Simplified73.1%
if 0.0152 < x Initial program 11.3%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified21.5%
Taylor expanded in x around inf
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
associate-*r/N/A
metadata-evalN/A
distribute-neg-fracN/A
/-lowering-/.f64N/A
metadata-eval86.6%
Simplified86.6%
Final simplification77.4%
(FPCore (x y z)
:precision binary64
(if (<= x -5.5)
(/ (+ x -2.0) 0.24013125253755718)
(if (<= x -4.5e-44)
(* x (* y -0.0424927283095952))
(if (<= x 0.0152)
(* (+ x -2.0) (/ z 47.066876606))
(* x (+ 4.16438922228 (/ -110.1139242984811 x)))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -5.5) {
tmp = (x + -2.0) / 0.24013125253755718;
} else if (x <= -4.5e-44) {
tmp = x * (y * -0.0424927283095952);
} else if (x <= 0.0152) {
tmp = (x + -2.0) * (z / 47.066876606);
} else {
tmp = x * (4.16438922228 + (-110.1139242984811 / 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 <= (-5.5d0)) then
tmp = (x + (-2.0d0)) / 0.24013125253755718d0
else if (x <= (-4.5d-44)) then
tmp = x * (y * (-0.0424927283095952d0))
else if (x <= 0.0152d0) then
tmp = (x + (-2.0d0)) * (z / 47.066876606d0)
else
tmp = x * (4.16438922228d0 + ((-110.1139242984811d0) / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -5.5) {
tmp = (x + -2.0) / 0.24013125253755718;
} else if (x <= -4.5e-44) {
tmp = x * (y * -0.0424927283095952);
} else if (x <= 0.0152) {
tmp = (x + -2.0) * (z / 47.066876606);
} else {
tmp = x * (4.16438922228 + (-110.1139242984811 / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -5.5: tmp = (x + -2.0) / 0.24013125253755718 elif x <= -4.5e-44: tmp = x * (y * -0.0424927283095952) elif x <= 0.0152: tmp = (x + -2.0) * (z / 47.066876606) else: tmp = x * (4.16438922228 + (-110.1139242984811 / x)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -5.5) tmp = Float64(Float64(x + -2.0) / 0.24013125253755718); elseif (x <= -4.5e-44) tmp = Float64(x * Float64(y * -0.0424927283095952)); elseif (x <= 0.0152) tmp = Float64(Float64(x + -2.0) * Float64(z / 47.066876606)); else tmp = Float64(x * Float64(4.16438922228 + Float64(-110.1139242984811 / x))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -5.5) tmp = (x + -2.0) / 0.24013125253755718; elseif (x <= -4.5e-44) tmp = x * (y * -0.0424927283095952); elseif (x <= 0.0152) tmp = (x + -2.0) * (z / 47.066876606); else tmp = x * (4.16438922228 + (-110.1139242984811 / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -5.5], N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision], If[LessEqual[x, -4.5e-44], N[(x * N[(y * -0.0424927283095952), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 0.0152], N[(N[(x + -2.0), $MachinePrecision] * N[(z / 47.066876606), $MachinePrecision]), $MachinePrecision], N[(x * N[(4.16438922228 + N[(-110.1139242984811 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -5.5:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718}\\
\mathbf{elif}\;x \leq -4.5 \cdot 10^{-44}:\\
\;\;\;\;x \cdot \left(y \cdot -0.0424927283095952\right)\\
\mathbf{elif}\;x \leq 0.0152:\\
\;\;\;\;\left(x + -2\right) \cdot \frac{z}{47.066876606}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(4.16438922228 + \frac{-110.1139242984811}{x}\right)\\
\end{array}
\end{array}
if x < -5.5Initial program 24.1%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified30.5%
Applied egg-rr30.4%
Taylor expanded in x around inf
Simplified81.6%
if -5.5 < x < -4.4999999999999999e-44Initial program 99.8%
Taylor expanded in y around inf
*-lowering-*.f64N/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f6463.6%
Simplified63.6%
Taylor expanded in x around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
distribute-rgt-out--N/A
metadata-evalN/A
metadata-evalN/A
*-lowering-*.f64N/A
metadata-eval62.2%
Simplified62.2%
Taylor expanded in x around 0
*-commutativeN/A
*-lowering-*.f6460.1%
Simplified60.1%
if -4.4999999999999999e-44 < x < 0.0152Initial program 99.6%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified99.6%
Taylor expanded in x around 0
Simplified73.4%
Taylor expanded in x around 0
Simplified73.1%
if 0.0152 < x Initial program 11.3%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified21.5%
Taylor expanded in x around inf
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
associate-*r/N/A
metadata-evalN/A
distribute-neg-fracN/A
/-lowering-/.f64N/A
metadata-eval86.6%
Simplified86.6%
(FPCore (x y z)
:precision binary64
(if (<= x -5.5)
(/ (+ x -2.0) 0.24013125253755718)
(if (<= x -6.2e-45)
(* x (* y -0.0424927283095952))
(if (<= x 0.0152)
(* (+ x -2.0) (* z 0.0212463641547976))
(* x (+ 4.16438922228 (/ -110.1139242984811 x)))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -5.5) {
tmp = (x + -2.0) / 0.24013125253755718;
} else if (x <= -6.2e-45) {
tmp = x * (y * -0.0424927283095952);
} else if (x <= 0.0152) {
tmp = (x + -2.0) * (z * 0.0212463641547976);
} else {
tmp = x * (4.16438922228 + (-110.1139242984811 / 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 <= (-5.5d0)) then
tmp = (x + (-2.0d0)) / 0.24013125253755718d0
else if (x <= (-6.2d-45)) then
tmp = x * (y * (-0.0424927283095952d0))
else if (x <= 0.0152d0) then
tmp = (x + (-2.0d0)) * (z * 0.0212463641547976d0)
else
tmp = x * (4.16438922228d0 + ((-110.1139242984811d0) / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -5.5) {
tmp = (x + -2.0) / 0.24013125253755718;
} else if (x <= -6.2e-45) {
tmp = x * (y * -0.0424927283095952);
} else if (x <= 0.0152) {
tmp = (x + -2.0) * (z * 0.0212463641547976);
} else {
tmp = x * (4.16438922228 + (-110.1139242984811 / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -5.5: tmp = (x + -2.0) / 0.24013125253755718 elif x <= -6.2e-45: tmp = x * (y * -0.0424927283095952) elif x <= 0.0152: tmp = (x + -2.0) * (z * 0.0212463641547976) else: tmp = x * (4.16438922228 + (-110.1139242984811 / x)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -5.5) tmp = Float64(Float64(x + -2.0) / 0.24013125253755718); elseif (x <= -6.2e-45) tmp = Float64(x * Float64(y * -0.0424927283095952)); elseif (x <= 0.0152) tmp = Float64(Float64(x + -2.0) * Float64(z * 0.0212463641547976)); else tmp = Float64(x * Float64(4.16438922228 + Float64(-110.1139242984811 / x))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -5.5) tmp = (x + -2.0) / 0.24013125253755718; elseif (x <= -6.2e-45) tmp = x * (y * -0.0424927283095952); elseif (x <= 0.0152) tmp = (x + -2.0) * (z * 0.0212463641547976); else tmp = x * (4.16438922228 + (-110.1139242984811 / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -5.5], N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision], If[LessEqual[x, -6.2e-45], N[(x * N[(y * -0.0424927283095952), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 0.0152], N[(N[(x + -2.0), $MachinePrecision] * N[(z * 0.0212463641547976), $MachinePrecision]), $MachinePrecision], N[(x * N[(4.16438922228 + N[(-110.1139242984811 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -5.5:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718}\\
\mathbf{elif}\;x \leq -6.2 \cdot 10^{-45}:\\
\;\;\;\;x \cdot \left(y \cdot -0.0424927283095952\right)\\
\mathbf{elif}\;x \leq 0.0152:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(4.16438922228 + \frac{-110.1139242984811}{x}\right)\\
\end{array}
\end{array}
if x < -5.5Initial program 24.1%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified30.5%
Applied egg-rr30.4%
Taylor expanded in x around inf
Simplified81.6%
if -5.5 < x < -6.2000000000000002e-45Initial program 99.8%
Taylor expanded in y around inf
*-lowering-*.f64N/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f6463.6%
Simplified63.6%
Taylor expanded in x around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
distribute-rgt-out--N/A
metadata-evalN/A
metadata-evalN/A
*-lowering-*.f64N/A
metadata-eval62.2%
Simplified62.2%
Taylor expanded in x around 0
*-commutativeN/A
*-lowering-*.f6460.1%
Simplified60.1%
if -6.2000000000000002e-45 < x < 0.0152Initial program 99.6%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified99.6%
Taylor expanded in x around 0
*-commutativeN/A
*-lowering-*.f6472.9%
Simplified72.9%
if 0.0152 < x Initial program 11.3%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified21.5%
Taylor expanded in x around inf
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
associate-*r/N/A
metadata-evalN/A
distribute-neg-fracN/A
/-lowering-/.f64N/A
metadata-eval86.6%
Simplified86.6%
(FPCore (x y z)
:precision binary64
(if (<= x -0.0095)
(/ (+ x -2.0) 0.24013125253755718)
(if (<= x -5e-44)
(* x (* y -0.0424927283095952))
(if (<= x 0.0152)
(* z -0.0424927283095952)
(* x (+ 4.16438922228 (/ -110.1139242984811 x)))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -0.0095) {
tmp = (x + -2.0) / 0.24013125253755718;
} else if (x <= -5e-44) {
tmp = x * (y * -0.0424927283095952);
} else if (x <= 0.0152) {
tmp = z * -0.0424927283095952;
} else {
tmp = x * (4.16438922228 + (-110.1139242984811 / x));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-0.0095d0)) then
tmp = (x + (-2.0d0)) / 0.24013125253755718d0
else if (x <= (-5d-44)) then
tmp = x * (y * (-0.0424927283095952d0))
else if (x <= 0.0152d0) then
tmp = z * (-0.0424927283095952d0)
else
tmp = x * (4.16438922228d0 + ((-110.1139242984811d0) / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -0.0095) {
tmp = (x + -2.0) / 0.24013125253755718;
} else if (x <= -5e-44) {
tmp = x * (y * -0.0424927283095952);
} else if (x <= 0.0152) {
tmp = z * -0.0424927283095952;
} else {
tmp = x * (4.16438922228 + (-110.1139242984811 / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -0.0095: tmp = (x + -2.0) / 0.24013125253755718 elif x <= -5e-44: tmp = x * (y * -0.0424927283095952) elif x <= 0.0152: tmp = z * -0.0424927283095952 else: tmp = x * (4.16438922228 + (-110.1139242984811 / x)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -0.0095) tmp = Float64(Float64(x + -2.0) / 0.24013125253755718); elseif (x <= -5e-44) tmp = Float64(x * Float64(y * -0.0424927283095952)); elseif (x <= 0.0152) tmp = Float64(z * -0.0424927283095952); else tmp = Float64(x * Float64(4.16438922228 + Float64(-110.1139242984811 / x))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -0.0095) tmp = (x + -2.0) / 0.24013125253755718; elseif (x <= -5e-44) tmp = x * (y * -0.0424927283095952); elseif (x <= 0.0152) tmp = z * -0.0424927283095952; else tmp = x * (4.16438922228 + (-110.1139242984811 / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -0.0095], N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision], If[LessEqual[x, -5e-44], N[(x * N[(y * -0.0424927283095952), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 0.0152], N[(z * -0.0424927283095952), $MachinePrecision], N[(x * N[(4.16438922228 + N[(-110.1139242984811 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -0.0095:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718}\\
\mathbf{elif}\;x \leq -5 \cdot 10^{-44}:\\
\;\;\;\;x \cdot \left(y \cdot -0.0424927283095952\right)\\
\mathbf{elif}\;x \leq 0.0152:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(4.16438922228 + \frac{-110.1139242984811}{x}\right)\\
\end{array}
\end{array}
if x < -0.00949999999999999976Initial program 24.1%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified30.5%
Applied egg-rr30.4%
Taylor expanded in x around inf
Simplified81.6%
if -0.00949999999999999976 < x < -5.00000000000000039e-44Initial program 99.8%
Taylor expanded in y around inf
*-lowering-*.f64N/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f6463.6%
Simplified63.6%
Taylor expanded in x around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
distribute-rgt-out--N/A
metadata-evalN/A
metadata-evalN/A
*-lowering-*.f64N/A
metadata-eval62.2%
Simplified62.2%
Taylor expanded in x around 0
*-commutativeN/A
*-lowering-*.f6460.1%
Simplified60.1%
if -5.00000000000000039e-44 < x < 0.0152Initial program 99.6%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified99.6%
Taylor expanded in x around 0
*-lowering-*.f6472.9%
Simplified72.9%
if 0.0152 < x Initial program 11.3%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified21.5%
Taylor expanded in x around inf
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
associate-*r/N/A
metadata-evalN/A
distribute-neg-fracN/A
/-lowering-/.f64N/A
metadata-eval86.6%
Simplified86.6%
Final simplification77.2%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (/ (+ x -2.0) 0.24013125253755718)))
(if (<= x -5.5)
t_0
(if (<= x -4.8e-44)
(* x (* y -0.0424927283095952))
(if (<= x 0.0152) (* z -0.0424927283095952) t_0)))))
double code(double x, double y, double z) {
double t_0 = (x + -2.0) / 0.24013125253755718;
double tmp;
if (x <= -5.5) {
tmp = t_0;
} else if (x <= -4.8e-44) {
tmp = x * (y * -0.0424927283095952);
} else if (x <= 0.0152) {
tmp = z * -0.0424927283095952;
} else {
tmp = t_0;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = (x + (-2.0d0)) / 0.24013125253755718d0
if (x <= (-5.5d0)) then
tmp = t_0
else if (x <= (-4.8d-44)) then
tmp = x * (y * (-0.0424927283095952d0))
else if (x <= 0.0152d0) then
tmp = z * (-0.0424927283095952d0)
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = (x + -2.0) / 0.24013125253755718;
double tmp;
if (x <= -5.5) {
tmp = t_0;
} else if (x <= -4.8e-44) {
tmp = x * (y * -0.0424927283095952);
} else if (x <= 0.0152) {
tmp = z * -0.0424927283095952;
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = (x + -2.0) / 0.24013125253755718 tmp = 0 if x <= -5.5: tmp = t_0 elif x <= -4.8e-44: tmp = x * (y * -0.0424927283095952) elif x <= 0.0152: tmp = z * -0.0424927283095952 else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(Float64(x + -2.0) / 0.24013125253755718) tmp = 0.0 if (x <= -5.5) tmp = t_0; elseif (x <= -4.8e-44) tmp = Float64(x * Float64(y * -0.0424927283095952)); elseif (x <= 0.0152) tmp = Float64(z * -0.0424927283095952); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = (x + -2.0) / 0.24013125253755718; tmp = 0.0; if (x <= -5.5) tmp = t_0; elseif (x <= -4.8e-44) tmp = x * (y * -0.0424927283095952); elseif (x <= 0.0152) tmp = z * -0.0424927283095952; else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision]}, If[LessEqual[x, -5.5], t$95$0, If[LessEqual[x, -4.8e-44], N[(x * N[(y * -0.0424927283095952), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 0.0152], N[(z * -0.0424927283095952), $MachinePrecision], t$95$0]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{x + -2}{0.24013125253755718}\\
\mathbf{if}\;x \leq -5.5:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq -4.8 \cdot 10^{-44}:\\
\;\;\;\;x \cdot \left(y \cdot -0.0424927283095952\right)\\
\mathbf{elif}\;x \leq 0.0152:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if x < -5.5 or 0.0152 < x Initial program 19.2%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified27.1%
Applied egg-rr27.0%
Taylor expanded in x around inf
Simplified83.3%
if -5.5 < x < -4.80000000000000017e-44Initial program 99.8%
Taylor expanded in y around inf
*-lowering-*.f64N/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f6463.6%
Simplified63.6%
Taylor expanded in x around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
distribute-rgt-out--N/A
metadata-evalN/A
metadata-evalN/A
*-lowering-*.f64N/A
metadata-eval62.2%
Simplified62.2%
Taylor expanded in x around 0
*-commutativeN/A
*-lowering-*.f6460.1%
Simplified60.1%
if -4.80000000000000017e-44 < x < 0.0152Initial program 99.6%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified99.6%
Taylor expanded in x around 0
*-lowering-*.f6472.9%
Simplified72.9%
Final simplification77.1%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (* 4.16438922228 (+ x -2.0))))
(if (<= x -0.15)
t_0
(if (<= x -5e-44)
(* x (* y -0.0424927283095952))
(if (<= x 0.0152) (* z -0.0424927283095952) t_0)))))
double code(double x, double y, double z) {
double t_0 = 4.16438922228 * (x + -2.0);
double tmp;
if (x <= -0.15) {
tmp = t_0;
} else if (x <= -5e-44) {
tmp = x * (y * -0.0424927283095952);
} else if (x <= 0.0152) {
tmp = z * -0.0424927283095952;
} else {
tmp = t_0;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = 4.16438922228d0 * (x + (-2.0d0))
if (x <= (-0.15d0)) then
tmp = t_0
else if (x <= (-5d-44)) then
tmp = x * (y * (-0.0424927283095952d0))
else if (x <= 0.0152d0) then
tmp = z * (-0.0424927283095952d0)
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = 4.16438922228 * (x + -2.0);
double tmp;
if (x <= -0.15) {
tmp = t_0;
} else if (x <= -5e-44) {
tmp = x * (y * -0.0424927283095952);
} else if (x <= 0.0152) {
tmp = z * -0.0424927283095952;
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = 4.16438922228 * (x + -2.0) tmp = 0 if x <= -0.15: tmp = t_0 elif x <= -5e-44: tmp = x * (y * -0.0424927283095952) elif x <= 0.0152: tmp = z * -0.0424927283095952 else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(4.16438922228 * Float64(x + -2.0)) tmp = 0.0 if (x <= -0.15) tmp = t_0; elseif (x <= -5e-44) tmp = Float64(x * Float64(y * -0.0424927283095952)); elseif (x <= 0.0152) tmp = Float64(z * -0.0424927283095952); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = 4.16438922228 * (x + -2.0); tmp = 0.0; if (x <= -0.15) tmp = t_0; elseif (x <= -5e-44) tmp = x * (y * -0.0424927283095952); elseif (x <= 0.0152) tmp = z * -0.0424927283095952; else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(4.16438922228 * N[(x + -2.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -0.15], t$95$0, If[LessEqual[x, -5e-44], N[(x * N[(y * -0.0424927283095952), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 0.0152], N[(z * -0.0424927283095952), $MachinePrecision], t$95$0]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := 4.16438922228 \cdot \left(x + -2\right)\\
\mathbf{if}\;x \leq -0.15:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq -5 \cdot 10^{-44}:\\
\;\;\;\;x \cdot \left(y \cdot -0.0424927283095952\right)\\
\mathbf{elif}\;x \leq 0.0152:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if x < -0.149999999999999994 or 0.0152 < x Initial program 19.2%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified27.1%
Taylor expanded in x around inf
Simplified82.8%
if -0.149999999999999994 < x < -5.00000000000000039e-44Initial program 99.8%
Taylor expanded in y around inf
*-lowering-*.f64N/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f6463.6%
Simplified63.6%
Taylor expanded in x around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
distribute-rgt-out--N/A
metadata-evalN/A
metadata-evalN/A
*-lowering-*.f64N/A
metadata-eval62.2%
Simplified62.2%
Taylor expanded in x around 0
*-commutativeN/A
*-lowering-*.f6460.1%
Simplified60.1%
if -5.00000000000000039e-44 < x < 0.0152Initial program 99.6%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified99.6%
Taylor expanded in x around 0
*-lowering-*.f6472.9%
Simplified72.9%
Final simplification76.9%
(FPCore (x y z)
:precision binary64
(if (<= x -5.5)
(* x 4.16438922228)
(if (<= x -1.65e-44)
(* x (* y -0.0424927283095952))
(if (<= x 2.0) (* z -0.0424927283095952) (* x 4.16438922228)))))
double code(double x, double y, double z) {
double tmp;
if (x <= -5.5) {
tmp = x * 4.16438922228;
} else if (x <= -1.65e-44) {
tmp = x * (y * -0.0424927283095952);
} 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 <= (-5.5d0)) then
tmp = x * 4.16438922228d0
else if (x <= (-1.65d-44)) then
tmp = x * (y * (-0.0424927283095952d0))
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 <= -5.5) {
tmp = x * 4.16438922228;
} else if (x <= -1.65e-44) {
tmp = x * (y * -0.0424927283095952);
} 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 <= -5.5: tmp = x * 4.16438922228 elif x <= -1.65e-44: tmp = x * (y * -0.0424927283095952) 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 <= -5.5) tmp = Float64(x * 4.16438922228); elseif (x <= -1.65e-44) tmp = Float64(x * Float64(y * -0.0424927283095952)); 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 <= -5.5) tmp = x * 4.16438922228; elseif (x <= -1.65e-44) tmp = x * (y * -0.0424927283095952); 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, -5.5], N[(x * 4.16438922228), $MachinePrecision], If[LessEqual[x, -1.65e-44], N[(x * N[(y * -0.0424927283095952), $MachinePrecision]), $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 -5.5:\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{elif}\;x \leq -1.65 \cdot 10^{-44}:\\
\;\;\;\;x \cdot \left(y \cdot -0.0424927283095952\right)\\
\mathbf{elif}\;x \leq 2:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228\\
\end{array}
\end{array}
if x < -5.5 or 2 < x Initial program 18.6%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified26.5%
Taylor expanded in x around inf
*-commutativeN/A
*-lowering-*.f6483.5%
Simplified83.5%
if -5.5 < x < -1.65000000000000003e-44Initial program 99.8%
Taylor expanded in y around inf
*-lowering-*.f64N/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f6463.6%
Simplified63.6%
Taylor expanded in x around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
distribute-rgt-out--N/A
metadata-evalN/A
metadata-evalN/A
*-lowering-*.f64N/A
metadata-eval62.2%
Simplified62.2%
Taylor expanded in x around 0
*-commutativeN/A
*-lowering-*.f6460.1%
Simplified60.1%
if -1.65000000000000003e-44 < x < 2Initial program 99.6%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified99.6%
Taylor expanded in x around 0
*-lowering-*.f6472.4%
Simplified72.4%
Final simplification76.9%
(FPCore (x y z)
:precision binary64
(if (<= x -5.5)
(* x 4.16438922228)
(if (<= x -4.3e-44)
(* (* x y) -0.0424927283095952)
(if (<= x 2.0) (* z -0.0424927283095952) (* x 4.16438922228)))))
double code(double x, double y, double z) {
double tmp;
if (x <= -5.5) {
tmp = x * 4.16438922228;
} else if (x <= -4.3e-44) {
tmp = (x * y) * -0.0424927283095952;
} 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 <= (-5.5d0)) then
tmp = x * 4.16438922228d0
else if (x <= (-4.3d-44)) then
tmp = (x * y) * (-0.0424927283095952d0)
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 <= -5.5) {
tmp = x * 4.16438922228;
} else if (x <= -4.3e-44) {
tmp = (x * y) * -0.0424927283095952;
} 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 <= -5.5: tmp = x * 4.16438922228 elif x <= -4.3e-44: tmp = (x * y) * -0.0424927283095952 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 <= -5.5) tmp = Float64(x * 4.16438922228); elseif (x <= -4.3e-44) tmp = Float64(Float64(x * y) * -0.0424927283095952); 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 <= -5.5) tmp = x * 4.16438922228; elseif (x <= -4.3e-44) tmp = (x * y) * -0.0424927283095952; 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, -5.5], N[(x * 4.16438922228), $MachinePrecision], If[LessEqual[x, -4.3e-44], N[(N[(x * y), $MachinePrecision] * -0.0424927283095952), $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 -5.5:\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{elif}\;x \leq -4.3 \cdot 10^{-44}:\\
\;\;\;\;\left(x \cdot y\right) \cdot -0.0424927283095952\\
\mathbf{elif}\;x \leq 2:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228\\
\end{array}
\end{array}
if x < -5.5 or 2 < x Initial program 18.6%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified26.5%
Taylor expanded in x around inf
*-commutativeN/A
*-lowering-*.f6483.5%
Simplified83.5%
if -5.5 < x < -4.30000000000000013e-44Initial program 99.8%
Taylor expanded in y around inf
*-lowering-*.f64N/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f6463.6%
Simplified63.6%
Taylor expanded in x around 0
*-lowering-*.f64N/A
*-lowering-*.f6460.0%
Simplified60.0%
if -4.30000000000000013e-44 < x < 2Initial program 99.6%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified99.6%
Taylor expanded in x around 0
*-lowering-*.f6472.4%
Simplified72.4%
Final simplification76.9%
(FPCore (x y z) :precision binary64 (if (<= x -2400000.0) (* x 4.16438922228) (if (<= x 2.0) (* z -0.0424927283095952) (* x 4.16438922228))))
double code(double x, double y, double z) {
double tmp;
if (x <= -2400000.0) {
tmp = x * 4.16438922228;
} else if (x <= 2.0) {
tmp = z * -0.0424927283095952;
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-2400000.0d0)) then
tmp = x * 4.16438922228d0
else if (x <= 2.0d0) then
tmp = z * (-0.0424927283095952d0)
else
tmp = x * 4.16438922228d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -2400000.0) {
tmp = x * 4.16438922228;
} else if (x <= 2.0) {
tmp = z * -0.0424927283095952;
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -2400000.0: tmp = x * 4.16438922228 elif x <= 2.0: tmp = z * -0.0424927283095952 else: tmp = x * 4.16438922228 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -2400000.0) tmp = Float64(x * 4.16438922228); elseif (x <= 2.0) tmp = Float64(z * -0.0424927283095952); else tmp = Float64(x * 4.16438922228); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -2400000.0) tmp = x * 4.16438922228; elseif (x <= 2.0) tmp = z * -0.0424927283095952; else tmp = x * 4.16438922228; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -2400000.0], N[(x * 4.16438922228), $MachinePrecision], If[LessEqual[x, 2.0], N[(z * -0.0424927283095952), $MachinePrecision], N[(x * 4.16438922228), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2400000:\\
\;\;\;\;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.4e6 or 2 < x Initial program 17.2%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified25.3%
Taylor expanded in x around inf
*-commutativeN/A
*-lowering-*.f6484.8%
Simplified84.8%
if -2.4e6 < x < 2Initial program 99.6%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified99.6%
Taylor expanded in x around 0
*-lowering-*.f6467.0%
Simplified67.0%
Final simplification75.2%
(FPCore (x y z) :precision binary64 (* z -0.0424927283095952))
double code(double x, double y, double z) {
return z * -0.0424927283095952;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = z * (-0.0424927283095952d0)
end function
public static double code(double x, double y, double z) {
return z * -0.0424927283095952;
}
def code(x, y, z): return z * -0.0424927283095952
function code(x, y, z) return Float64(z * -0.0424927283095952) end
function tmp = code(x, y, z) tmp = z * -0.0424927283095952; end
code[x_, y_, z_] := N[(z * -0.0424927283095952), $MachinePrecision]
\begin{array}{l}
\\
z \cdot -0.0424927283095952
\end{array}
Initial program 61.6%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified65.3%
Taylor expanded in x around 0
*-lowering-*.f6437.6%
Simplified37.6%
Final simplification37.6%
(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 2024152
(FPCore (x y z)
:name "Numeric.SpecFunctions:logGamma from math-functions-0.1.5.2, C"
:precision binary64
:alt
(! :herbie-platform default (if (< x -332612872587000500000000000000000000000000000000000000000000000) (- (+ (/ y (* x x)) (* 104109730557/25000000000 x)) 1101139242984811/10000000000000) (if (< x 94299917145546730000000000000000000000000000000000000000) (* (/ (- x 2) 1) (/ (+ (* (+ (* (+ (* (+ (* x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z) (+ (* (+ (+ (* 263505074721/1000000000 x) (+ (* 216700011257/5000000000 (* x x)) (* x (* x x)))) 156699607947/500000000) x) 23533438303/500000000))) (- (+ (/ y (* x x)) (* 104109730557/25000000000 x)) 1101139242984811/10000000000000))))
(/ (* (- 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)))