
(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 22 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 (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))
(t_1
(+
(*
x
(+
y
(*
x
(+ 137.519416416 (* x (+ (* x 4.16438922228) 78.6994924154))))))
z)))
(if (<= (/ (* (- x 2.0) t_1) t_0) 1e+300)
(/ (* (/ t_1 t_0) (+ (* x (* x x)) -8.0)) (- (+ (* x x) 4.0) (* x -2.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 + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606;
double t_1 = (x * (y + (x * (137.519416416 + (x * ((x * 4.16438922228) + 78.6994924154)))))) + z;
double tmp;
if ((((x - 2.0) * t_1) / t_0) <= 1e+300) {
tmp = ((t_1 / t_0) * ((x * (x * x)) + -8.0)) / (((x * x) + 4.0) - (x * -2.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) :: t_1
real(8) :: tmp
t_0 = (x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0
t_1 = (x * (y + (x * (137.519416416d0 + (x * ((x * 4.16438922228d0) + 78.6994924154d0)))))) + z
if ((((x - 2.0d0) * t_1) / t_0) <= 1d+300) then
tmp = ((t_1 / t_0) * ((x * (x * x)) + (-8.0d0))) / (((x * x) + 4.0d0) - (x * (-2.0d0)))
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 + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606;
double t_1 = (x * (y + (x * (137.519416416 + (x * ((x * 4.16438922228) + 78.6994924154)))))) + z;
double tmp;
if ((((x - 2.0) * t_1) / t_0) <= 1e+300) {
tmp = ((t_1 / t_0) * ((x * (x * x)) + -8.0)) / (((x * x) + 4.0) - (x * -2.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 + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606 t_1 = (x * (y + (x * (137.519416416 + (x * ((x * 4.16438922228) + 78.6994924154)))))) + z tmp = 0 if (((x - 2.0) * t_1) / t_0) <= 1e+300: tmp = ((t_1 / t_0) * ((x * (x * x)) + -8.0)) / (((x * x) + 4.0) - (x * -2.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(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) t_1 = Float64(Float64(x * Float64(y + Float64(x * Float64(137.519416416 + Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)))))) + z) tmp = 0.0 if (Float64(Float64(Float64(x - 2.0) * t_1) / t_0) <= 1e+300) tmp = Float64(Float64(Float64(t_1 / t_0) * Float64(Float64(x * Float64(x * x)) + -8.0)) / Float64(Float64(Float64(x * x) + 4.0) - Float64(x * -2.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 + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606; t_1 = (x * (y + (x * (137.519416416 + (x * ((x * 4.16438922228) + 78.6994924154)))))) + z; tmp = 0.0; if ((((x - 2.0) * t_1) / t_0) <= 1e+300) tmp = ((t_1 / t_0) * ((x * (x * x)) + -8.0)) / (((x * x) + 4.0) - (x * -2.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[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]}, Block[{t$95$1 = N[(N[(x * N[(y + N[(x * N[(137.519416416 + N[(x * N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision]}, If[LessEqual[N[(N[(N[(x - 2.0), $MachinePrecision] * t$95$1), $MachinePrecision] / t$95$0), $MachinePrecision], 1e+300], N[(N[(N[(t$95$1 / t$95$0), $MachinePrecision] * N[(N[(x * N[(x * x), $MachinePrecision]), $MachinePrecision] + -8.0), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(x * x), $MachinePrecision] + 4.0), $MachinePrecision] - N[(x * -2.0), $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}
t_0 := x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606\\
t_1 := x \cdot \left(y + x \cdot \left(137.519416416 + x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right)\right)\right) + z\\
\mathbf{if}\;\frac{\left(x - 2\right) \cdot t\_1}{t\_0} \leq 10^{+300}:\\
\;\;\;\;\frac{\frac{t\_1}{t\_0} \cdot \left(x \cdot \left(x \cdot x\right) + -8\right)}{\left(x \cdot x + 4\right) - x \cdot -2}\\
\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 (/.f64 (*.f64 (-.f64 x #s(literal 2 binary64)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x #s(literal 104109730557/25000000000 binary64)) #s(literal 393497462077/5000000000 binary64)) x) #s(literal 4297481763/31250000 binary64)) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x #s(literal 216700011257/5000000000 binary64)) x) #s(literal 263505074721/1000000000 binary64)) x) #s(literal 156699607947/500000000 binary64)) x) #s(literal 23533438303/500000000 binary64))) < 1.0000000000000001e300Initial program 97.1%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified97.7%
Applied egg-rr97.7%
if 1.0000000000000001e300 < (/.f64 (*.f64 (-.f64 x #s(literal 2 binary64)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x #s(literal 104109730557/25000000000 binary64)) #s(literal 393497462077/5000000000 binary64)) x) #s(literal 4297481763/31250000 binary64)) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x #s(literal 216700011257/5000000000 binary64)) x) #s(literal 263505074721/1000000000 binary64)) x) #s(literal 156699607947/500000000 binary64)) x) #s(literal 23533438303/500000000 binary64))) Initial program 0.2%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified5.0%
Taylor expanded in x around -inf
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
Simplified99.1%
Final simplification98.3%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))
(t_1
(+
(*
x
(+
y
(*
x
(+ 137.519416416 (* x (+ (* x 4.16438922228) 78.6994924154))))))
z)))
(if (<= (/ (* (- x 2.0) t_1) t_0) 1e+300)
(* (/ t_1 t_0) (+ x -2.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 + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606;
double t_1 = (x * (y + (x * (137.519416416 + (x * ((x * 4.16438922228) + 78.6994924154)))))) + z;
double tmp;
if ((((x - 2.0) * t_1) / t_0) <= 1e+300) {
tmp = (t_1 / t_0) * (x + -2.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) :: t_1
real(8) :: tmp
t_0 = (x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0
t_1 = (x * (y + (x * (137.519416416d0 + (x * ((x * 4.16438922228d0) + 78.6994924154d0)))))) + z
if ((((x - 2.0d0) * t_1) / t_0) <= 1d+300) then
tmp = (t_1 / t_0) * (x + (-2.0d0))
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 + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606;
double t_1 = (x * (y + (x * (137.519416416 + (x * ((x * 4.16438922228) + 78.6994924154)))))) + z;
double tmp;
if ((((x - 2.0) * t_1) / t_0) <= 1e+300) {
tmp = (t_1 / t_0) * (x + -2.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 + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606 t_1 = (x * (y + (x * (137.519416416 + (x * ((x * 4.16438922228) + 78.6994924154)))))) + z tmp = 0 if (((x - 2.0) * t_1) / t_0) <= 1e+300: tmp = (t_1 / t_0) * (x + -2.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(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) t_1 = Float64(Float64(x * Float64(y + Float64(x * Float64(137.519416416 + Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)))))) + z) tmp = 0.0 if (Float64(Float64(Float64(x - 2.0) * t_1) / t_0) <= 1e+300) tmp = Float64(Float64(t_1 / t_0) * Float64(x + -2.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 + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606; t_1 = (x * (y + (x * (137.519416416 + (x * ((x * 4.16438922228) + 78.6994924154)))))) + z; tmp = 0.0; if ((((x - 2.0) * t_1) / t_0) <= 1e+300) tmp = (t_1 / t_0) * (x + -2.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[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]}, Block[{t$95$1 = N[(N[(x * N[(y + N[(x * N[(137.519416416 + N[(x * N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision]}, If[LessEqual[N[(N[(N[(x - 2.0), $MachinePrecision] * t$95$1), $MachinePrecision] / t$95$0), $MachinePrecision], 1e+300], N[(N[(t$95$1 / t$95$0), $MachinePrecision] * N[(x + -2.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 + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606\\
t_1 := x \cdot \left(y + x \cdot \left(137.519416416 + x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right)\right)\right) + z\\
\mathbf{if}\;\frac{\left(x - 2\right) \cdot t\_1}{t\_0} \leq 10^{+300}:\\
\;\;\;\;\frac{t\_1}{t\_0} \cdot \left(x + -2\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 (/.f64 (*.f64 (-.f64 x #s(literal 2 binary64)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x #s(literal 104109730557/25000000000 binary64)) #s(literal 393497462077/5000000000 binary64)) x) #s(literal 4297481763/31250000 binary64)) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x #s(literal 216700011257/5000000000 binary64)) x) #s(literal 263505074721/1000000000 binary64)) x) #s(literal 156699607947/500000000 binary64)) x) #s(literal 23533438303/500000000 binary64))) < 1.0000000000000001e300Initial program 97.1%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified97.7%
if 1.0000000000000001e300 < (/.f64 (*.f64 (-.f64 x #s(literal 2 binary64)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x #s(literal 104109730557/25000000000 binary64)) #s(literal 393497462077/5000000000 binary64)) x) #s(literal 4297481763/31250000 binary64)) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x #s(literal 216700011257/5000000000 binary64)) x) #s(literal 263505074721/1000000000 binary64)) x) #s(literal 156699607947/500000000 binary64)) x) #s(literal 23533438303/500000000 binary64))) Initial program 0.2%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified5.0%
Taylor expanded in x around -inf
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
Simplified99.1%
Final simplification98.2%
(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 -8e+22)
t_0
(if (<= x 9.5e+23)
(*
(/
(+ x -2.0)
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))
(+ 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 <= -8e+22) {
tmp = t_0;
} else if (x <= 9.5e+23) {
tmp = ((x + -2.0) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) * (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 <= (-8d+22)) then
tmp = t_0
else if (x <= 9.5d+23) then
tmp = ((x + (-2.0d0)) / ((x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0)) * (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 <= -8e+22) {
tmp = t_0;
} else if (x <= 9.5e+23) {
tmp = ((x + -2.0) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) * (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 <= -8e+22: tmp = t_0 elif x <= 9.5e+23: tmp = ((x + -2.0) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) * (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 <= -8e+22) tmp = t_0; elseif (x <= 9.5e+23) tmp = Float64(Float64(Float64(x + -2.0) / Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) * 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 <= -8e+22) tmp = t_0; elseif (x <= 9.5e+23) tmp = ((x + -2.0) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) * (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, -8e+22], t$95$0, If[LessEqual[x, 9.5e+23], N[(N[(N[(x + -2.0), $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[(z + N[(x * N[(y + N[(x * 137.519416416), $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 -8 \cdot 10^{+22}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 9.5 \cdot 10^{+23}:\\
\;\;\;\;\frac{x + -2}{x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606} \cdot \left(z + x \cdot \left(y + x \cdot 137.519416416\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if x < -8e22 or 9.50000000000000038e23 < x Initial program 8.3%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified12.6%
Taylor expanded in x around -inf
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
Simplified98.3%
if -8e22 < x < 9.50000000000000038e23Initial program 98.3%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified98.9%
Applied egg-rr98.7%
Taylor expanded in x around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6496.8%
Simplified96.8%
Final simplification97.5%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(/
(+
y
(* x (+ 137.519416416 (* x (+ (* x 4.16438922228) 78.6994924154)))))
(* x x))))
(if (<= x -1.04e+77)
(* x 4.16438922228)
(if (<= x -37.0)
t_0
(if (<= x 2.0)
(/
(+ (* z -2.0) (* x (+ z (* y -2.0))))
(+ 47.066876606 (* x 313.399215894)))
(if (<= x 2e+99) t_0 (* x 4.16438922228)))))))
double code(double x, double y, double z) {
double t_0 = (y + (x * (137.519416416 + (x * ((x * 4.16438922228) + 78.6994924154))))) / (x * x);
double tmp;
if (x <= -1.04e+77) {
tmp = x * 4.16438922228;
} else if (x <= -37.0) {
tmp = t_0;
} else if (x <= 2.0) {
tmp = ((z * -2.0) + (x * (z + (y * -2.0)))) / (47.066876606 + (x * 313.399215894));
} else if (x <= 2e+99) {
tmp = t_0;
} 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) :: t_0
real(8) :: tmp
t_0 = (y + (x * (137.519416416d0 + (x * ((x * 4.16438922228d0) + 78.6994924154d0))))) / (x * x)
if (x <= (-1.04d+77)) then
tmp = x * 4.16438922228d0
else if (x <= (-37.0d0)) then
tmp = t_0
else if (x <= 2.0d0) then
tmp = ((z * (-2.0d0)) + (x * (z + (y * (-2.0d0))))) / (47.066876606d0 + (x * 313.399215894d0))
else if (x <= 2d+99) then
tmp = t_0
else
tmp = x * 4.16438922228d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = (y + (x * (137.519416416 + (x * ((x * 4.16438922228) + 78.6994924154))))) / (x * x);
double tmp;
if (x <= -1.04e+77) {
tmp = x * 4.16438922228;
} else if (x <= -37.0) {
tmp = t_0;
} else if (x <= 2.0) {
tmp = ((z * -2.0) + (x * (z + (y * -2.0)))) / (47.066876606 + (x * 313.399215894));
} else if (x <= 2e+99) {
tmp = t_0;
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
def code(x, y, z): t_0 = (y + (x * (137.519416416 + (x * ((x * 4.16438922228) + 78.6994924154))))) / (x * x) tmp = 0 if x <= -1.04e+77: tmp = x * 4.16438922228 elif x <= -37.0: tmp = t_0 elif x <= 2.0: tmp = ((z * -2.0) + (x * (z + (y * -2.0)))) / (47.066876606 + (x * 313.399215894)) elif x <= 2e+99: tmp = t_0 else: tmp = x * 4.16438922228 return tmp
function code(x, y, z) t_0 = Float64(Float64(y + Float64(x * Float64(137.519416416 + Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154))))) / Float64(x * x)) tmp = 0.0 if (x <= -1.04e+77) tmp = Float64(x * 4.16438922228); elseif (x <= -37.0) tmp = t_0; elseif (x <= 2.0) tmp = Float64(Float64(Float64(z * -2.0) + Float64(x * Float64(z + Float64(y * -2.0)))) / Float64(47.066876606 + Float64(x * 313.399215894))); elseif (x <= 2e+99) tmp = t_0; else tmp = Float64(x * 4.16438922228); end return tmp end
function tmp_2 = code(x, y, z) t_0 = (y + (x * (137.519416416 + (x * ((x * 4.16438922228) + 78.6994924154))))) / (x * x); tmp = 0.0; if (x <= -1.04e+77) tmp = x * 4.16438922228; elseif (x <= -37.0) tmp = t_0; elseif (x <= 2.0) tmp = ((z * -2.0) + (x * (z + (y * -2.0)))) / (47.066876606 + (x * 313.399215894)); elseif (x <= 2e+99) tmp = t_0; else tmp = x * 4.16438922228; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(y + N[(x * N[(137.519416416 + N[(x * N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(x * x), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.04e+77], N[(x * 4.16438922228), $MachinePrecision], If[LessEqual[x, -37.0], t$95$0, If[LessEqual[x, 2.0], N[(N[(N[(z * -2.0), $MachinePrecision] + N[(x * N[(z + N[(y * -2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(47.066876606 + N[(x * 313.399215894), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2e+99], t$95$0, N[(x * 4.16438922228), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{y + x \cdot \left(137.519416416 + x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right)\right)}{x \cdot x}\\
\mathbf{if}\;x \leq -1.04 \cdot 10^{+77}:\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{elif}\;x \leq -37:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 2:\\
\;\;\;\;\frac{z \cdot -2 + x \cdot \left(z + y \cdot -2\right)}{47.066876606 + x \cdot 313.399215894}\\
\mathbf{elif}\;x \leq 2 \cdot 10^{+99}:\\
\;\;\;\;t\_0\\
\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228\\
\end{array}
\end{array}
if x < -1.04e77 or 1.9999999999999999e99 < x Initial program 0.0%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified0.0%
Taylor expanded in x around inf
*-commutativeN/A
*-lowering-*.f6499.1%
Simplified99.1%
if -1.04e77 < x < -37 or 2 < x < 1.9999999999999999e99Initial program 58.2%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified75.2%
Applied egg-rr75.2%
Taylor expanded in x around inf
/-lowering-/.f64N/A
cube-multN/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6466.3%
Simplified66.3%
Taylor expanded in z around 0
/-lowering-/.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6473.2%
Simplified73.2%
if -37 < x < 2Initial program 99.6%
Taylor expanded in x around 0
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f6492.1%
Simplified92.1%
Taylor expanded in x around 0
*-commutativeN/A
*-lowering-*.f6491.5%
Simplified91.5%
Final simplification91.8%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(/
(+
y
(* x (+ 137.519416416 (* x (+ (* x 4.16438922228) 78.6994924154)))))
(* x x))))
(if (<= x -1.04e+77)
(* x 4.16438922228)
(if (<= x -0.68)
t_0
(if (<= x 0.155)
(*
(+ x -2.0)
(+
(* z 0.0212463641547976)
(* x (+ (* y 0.0212463641547976) (* z -0.14147091005106402)))))
(if (<= x 3e+98) t_0 (* x 4.16438922228)))))))
double code(double x, double y, double z) {
double t_0 = (y + (x * (137.519416416 + (x * ((x * 4.16438922228) + 78.6994924154))))) / (x * x);
double tmp;
if (x <= -1.04e+77) {
tmp = x * 4.16438922228;
} else if (x <= -0.68) {
tmp = t_0;
} else if (x <= 0.155) {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) + (z * -0.14147091005106402))));
} else if (x <= 3e+98) {
tmp = t_0;
} 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) :: t_0
real(8) :: tmp
t_0 = (y + (x * (137.519416416d0 + (x * ((x * 4.16438922228d0) + 78.6994924154d0))))) / (x * x)
if (x <= (-1.04d+77)) then
tmp = x * 4.16438922228d0
else if (x <= (-0.68d0)) then
tmp = t_0
else if (x <= 0.155d0) then
tmp = (x + (-2.0d0)) * ((z * 0.0212463641547976d0) + (x * ((y * 0.0212463641547976d0) + (z * (-0.14147091005106402d0)))))
else if (x <= 3d+98) then
tmp = t_0
else
tmp = x * 4.16438922228d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = (y + (x * (137.519416416 + (x * ((x * 4.16438922228) + 78.6994924154))))) / (x * x);
double tmp;
if (x <= -1.04e+77) {
tmp = x * 4.16438922228;
} else if (x <= -0.68) {
tmp = t_0;
} else if (x <= 0.155) {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) + (z * -0.14147091005106402))));
} else if (x <= 3e+98) {
tmp = t_0;
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
def code(x, y, z): t_0 = (y + (x * (137.519416416 + (x * ((x * 4.16438922228) + 78.6994924154))))) / (x * x) tmp = 0 if x <= -1.04e+77: tmp = x * 4.16438922228 elif x <= -0.68: tmp = t_0 elif x <= 0.155: tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) + (z * -0.14147091005106402)))) elif x <= 3e+98: tmp = t_0 else: tmp = x * 4.16438922228 return tmp
function code(x, y, z) t_0 = Float64(Float64(y + Float64(x * Float64(137.519416416 + Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154))))) / Float64(x * x)) tmp = 0.0 if (x <= -1.04e+77) tmp = Float64(x * 4.16438922228); elseif (x <= -0.68) tmp = t_0; elseif (x <= 0.155) tmp = Float64(Float64(x + -2.0) * Float64(Float64(z * 0.0212463641547976) + Float64(x * Float64(Float64(y * 0.0212463641547976) + Float64(z * -0.14147091005106402))))); elseif (x <= 3e+98) tmp = t_0; else tmp = Float64(x * 4.16438922228); end return tmp end
function tmp_2 = code(x, y, z) t_0 = (y + (x * (137.519416416 + (x * ((x * 4.16438922228) + 78.6994924154))))) / (x * x); tmp = 0.0; if (x <= -1.04e+77) tmp = x * 4.16438922228; elseif (x <= -0.68) tmp = t_0; elseif (x <= 0.155) tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) + (z * -0.14147091005106402)))); elseif (x <= 3e+98) tmp = t_0; else tmp = x * 4.16438922228; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(y + N[(x * N[(137.519416416 + N[(x * N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(x * x), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.04e+77], N[(x * 4.16438922228), $MachinePrecision], If[LessEqual[x, -0.68], t$95$0, If[LessEqual[x, 0.155], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z * 0.0212463641547976), $MachinePrecision] + N[(x * N[(N[(y * 0.0212463641547976), $MachinePrecision] + N[(z * -0.14147091005106402), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 3e+98], t$95$0, N[(x * 4.16438922228), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{y + x \cdot \left(137.519416416 + x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right)\right)}{x \cdot x}\\
\mathbf{if}\;x \leq -1.04 \cdot 10^{+77}:\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{elif}\;x \leq -0.68:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 0.155:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976 + x \cdot \left(y \cdot 0.0212463641547976 + z \cdot -0.14147091005106402\right)\right)\\
\mathbf{elif}\;x \leq 3 \cdot 10^{+98}:\\
\;\;\;\;t\_0\\
\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228\\
\end{array}
\end{array}
if x < -1.04e77 or 3.0000000000000001e98 < x Initial program 0.0%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified0.0%
Taylor expanded in x around inf
*-commutativeN/A
*-lowering-*.f6499.1%
Simplified99.1%
if -1.04e77 < x < -0.680000000000000049 or 0.154999999999999999 < x < 3.0000000000000001e98Initial program 60.5%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified76.6%
Applied egg-rr76.6%
Taylor expanded in x around inf
/-lowering-/.f64N/A
cube-multN/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6462.6%
Simplified62.6%
Taylor expanded in z around 0
/-lowering-/.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-commutativeN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6469.1%
Simplified69.1%
if -0.680000000000000049 < x < 0.154999999999999999Initial program 99.7%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified99.7%
Taylor expanded in x around 0
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
*-lowering-*.f64N/A
metadata-eval92.0%
Simplified92.0%
Final simplification91.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 -37.0)
t_0
(if (<= x 76.0)
(/
(*
(- x 2.0)
(+
(*
x
(+
y
(*
x
(+ 137.519416416 (* x (+ (* x 4.16438922228) 78.6994924154))))))
z))
(+ 47.066876606 (* x 313.399215894)))
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 <= -37.0) {
tmp = t_0;
} else if (x <= 76.0) {
tmp = ((x - 2.0) * ((x * (y + (x * (137.519416416 + (x * ((x * 4.16438922228) + 78.6994924154)))))) + z)) / (47.066876606 + (x * 313.399215894));
} 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 <= (-37.0d0)) then
tmp = t_0
else if (x <= 76.0d0) then
tmp = ((x - 2.0d0) * ((x * (y + (x * (137.519416416d0 + (x * ((x * 4.16438922228d0) + 78.6994924154d0)))))) + z)) / (47.066876606d0 + (x * 313.399215894d0))
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 <= -37.0) {
tmp = t_0;
} else if (x <= 76.0) {
tmp = ((x - 2.0) * ((x * (y + (x * (137.519416416 + (x * ((x * 4.16438922228) + 78.6994924154)))))) + z)) / (47.066876606 + (x * 313.399215894));
} 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 <= -37.0: tmp = t_0 elif x <= 76.0: tmp = ((x - 2.0) * ((x * (y + (x * (137.519416416 + (x * ((x * 4.16438922228) + 78.6994924154)))))) + z)) / (47.066876606 + (x * 313.399215894)) 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 <= -37.0) tmp = t_0; elseif (x <= 76.0) tmp = Float64(Float64(Float64(x - 2.0) * Float64(Float64(x * Float64(y + Float64(x * Float64(137.519416416 + Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)))))) + z)) / Float64(47.066876606 + Float64(x * 313.399215894))); 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 <= -37.0) tmp = t_0; elseif (x <= 76.0) tmp = ((x - 2.0) * ((x * (y + (x * (137.519416416 + (x * ((x * 4.16438922228) + 78.6994924154)))))) + z)) / (47.066876606 + (x * 313.399215894)); 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, -37.0], t$95$0, If[LessEqual[x, 76.0], N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(x * N[(y + N[(x * N[(137.519416416 + N[(x * N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / N[(47.066876606 + N[(x * 313.399215894), $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 -37:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 76:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot \left(x \cdot \left(y + x \cdot \left(137.519416416 + x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right)\right)\right) + z\right)}{47.066876606 + x \cdot 313.399215894}\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if x < -37 or 76 < x Initial program 15.6%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified20.2%
Taylor expanded in x around -inf
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
Simplified92.8%
if -37 < x < 76Initial program 99.6%
*-commutativeN/A
*-commutativeN/A
distribute-lft-inN/A
flip-+N/A
*-commutativeN/A
*-commutativeN/A
*-commutativeN/A
*-commutativeN/A
div-subN/A
--lowering--.f64N/A
Applied egg-rr99.7%
Taylor expanded in x around 0
*-commutativeN/A
*-lowering-*.f6497.5%
Simplified97.5%
Final simplification95.2%
(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 -37.0)
t_0
(if (<= x 48.0)
(/
(* (- x 2.0) (+ z (* x (+ y (* x 137.519416416)))))
(+ 47.066876606 (* x 313.399215894)))
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 <= -37.0) {
tmp = t_0;
} else if (x <= 48.0) {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * 313.399215894));
} 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 <= (-37.0d0)) then
tmp = t_0
else if (x <= 48.0d0) then
tmp = ((x - 2.0d0) * (z + (x * (y + (x * 137.519416416d0))))) / (47.066876606d0 + (x * 313.399215894d0))
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 <= -37.0) {
tmp = t_0;
} else if (x <= 48.0) {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * 313.399215894));
} 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 <= -37.0: tmp = t_0 elif x <= 48.0: tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * 313.399215894)) 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 <= -37.0) tmp = t_0; elseif (x <= 48.0) tmp = Float64(Float64(Float64(x - 2.0) * Float64(z + Float64(x * Float64(y + Float64(x * 137.519416416))))) / Float64(47.066876606 + Float64(x * 313.399215894))); else tmp = 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 <= -37.0) tmp = t_0; elseif (x <= 48.0) tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * 313.399215894)); 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, -37.0], t$95$0, If[LessEqual[x, 48.0], N[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + N[(x * N[(y + N[(x * 137.519416416), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(47.066876606 + N[(x * 313.399215894), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 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 -37:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 48:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot \left(y + x \cdot 137.519416416\right)\right)}{47.066876606 + x \cdot 313.399215894}\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if x < -37 or 48 < x Initial program 15.6%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified20.2%
Taylor expanded in x around -inf
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
Simplified92.8%
if -37 < x < 48Initial program 99.6%
Taylor expanded in x around 0
*-commutativeN/A
*-lowering-*.f6499.6%
Simplified99.6%
Taylor expanded in x around 0
*-commutativeN/A
*-lowering-*.f6497.4%
Simplified97.4%
Final simplification95.2%
(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 -0.175)
t_0
(if (<= x 2.0)
(*
(+
(*
x
(+
y
(*
x
(+ 137.519416416 (* x (+ (* x 4.16438922228) 78.6994924154))))))
z)
-0.0424927283095952)
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 <= -0.175) {
tmp = t_0;
} else if (x <= 2.0) {
tmp = ((x * (y + (x * (137.519416416 + (x * ((x * 4.16438922228) + 78.6994924154)))))) + z) * -0.0424927283095952;
} else {
tmp = t_0;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = (x + (-2.0d0)) * (4.16438922228d0 + ((((3451.550173699799d0 + ((y - 124074.40615218398d0) / x)) / x) - 101.7851458539211d0) / x))
if (x <= (-0.175d0)) then
tmp = t_0
else if (x <= 2.0d0) then
tmp = ((x * (y + (x * (137.519416416d0 + (x * ((x * 4.16438922228d0) + 78.6994924154d0)))))) + z) * (-0.0424927283095952d0)
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
double tmp;
if (x <= -0.175) {
tmp = t_0;
} else if (x <= 2.0) {
tmp = ((x * (y + (x * (137.519416416 + (x * ((x * 4.16438922228) + 78.6994924154)))))) + z) * -0.0424927283095952;
} 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 <= -0.175: tmp = t_0 elif x <= 2.0: tmp = ((x * (y + (x * (137.519416416 + (x * ((x * 4.16438922228) + 78.6994924154)))))) + z) * -0.0424927283095952 else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(Float64(y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x))) tmp = 0.0 if (x <= -0.175) tmp = t_0; elseif (x <= 2.0) tmp = Float64(Float64(Float64(x * Float64(y + Float64(x * Float64(137.519416416 + Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)))))) + z) * -0.0424927283095952); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)); tmp = 0.0; if (x <= -0.175) tmp = t_0; elseif (x <= 2.0) tmp = ((x * (y + (x * (137.519416416 + (x * ((x * 4.16438922228) + 78.6994924154)))))) + z) * -0.0424927283095952; else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 + N[(N[(y - 124074.40615218398), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -0.175], t$95$0, If[LessEqual[x, 2.0], N[(N[(N[(x * N[(y + N[(x * N[(137.519416416 + N[(x * N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision] * -0.0424927283095952), $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 -0.175:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 2:\\
\;\;\;\;\left(x \cdot \left(y + x \cdot \left(137.519416416 + x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right)\right)\right) + z\right) \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if x < -0.17499999999999999 or 2 < x Initial program 16.3%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified20.8%
Taylor expanded in x around -inf
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
Simplified92.0%
if -0.17499999999999999 < x < 2Initial program 99.7%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified99.7%
Applied egg-rr99.4%
Taylor expanded in x around 0
Simplified96.4%
Final simplification94.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 -37.0)
t_0
(if (<= x 7.0)
(/
(+ (* z -2.0) (* x (+ z (* y -2.0))))
(+ 47.066876606 (* x 313.399215894)))
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 <= -37.0) {
tmp = t_0;
} else if (x <= 7.0) {
tmp = ((z * -2.0) + (x * (z + (y * -2.0)))) / (47.066876606 + (x * 313.399215894));
} 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 <= (-37.0d0)) then
tmp = t_0
else if (x <= 7.0d0) then
tmp = ((z * (-2.0d0)) + (x * (z + (y * (-2.0d0))))) / (47.066876606d0 + (x * 313.399215894d0))
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 <= -37.0) {
tmp = t_0;
} else if (x <= 7.0) {
tmp = ((z * -2.0) + (x * (z + (y * -2.0)))) / (47.066876606 + (x * 313.399215894));
} 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 <= -37.0: tmp = t_0 elif x <= 7.0: tmp = ((z * -2.0) + (x * (z + (y * -2.0)))) / (47.066876606 + (x * 313.399215894)) 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 <= -37.0) tmp = t_0; elseif (x <= 7.0) tmp = Float64(Float64(Float64(z * -2.0) + Float64(x * Float64(z + Float64(y * -2.0)))) / Float64(47.066876606 + Float64(x * 313.399215894))); 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 <= -37.0) tmp = t_0; elseif (x <= 7.0) tmp = ((z * -2.0) + (x * (z + (y * -2.0)))) / (47.066876606 + (x * 313.399215894)); 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, -37.0], t$95$0, If[LessEqual[x, 7.0], N[(N[(N[(z * -2.0), $MachinePrecision] + N[(x * N[(z + N[(y * -2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(47.066876606 + N[(x * 313.399215894), $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 -37:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 7:\\
\;\;\;\;\frac{z \cdot -2 + x \cdot \left(z + y \cdot -2\right)}{47.066876606 + x \cdot 313.399215894}\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if x < -37 or 7 < x Initial program 15.6%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified20.2%
Taylor expanded in x around -inf
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
Simplified92.8%
if -37 < x < 7Initial program 99.6%
Taylor expanded in x around 0
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f6492.1%
Simplified92.1%
Taylor expanded in x around 0
*-commutativeN/A
*-lowering-*.f6491.5%
Simplified91.5%
Final simplification92.1%
(FPCore (x y z)
:precision binary64
(if (<= x -0.225)
(*
(* x (- 1.0 (/ 2.0 x)))
(- 4.16438922228 (/ (+ 101.7851458539211 (/ -3451.550173699799 x)) x)))
(if (<= x 90000000000.0)
(*
(+ x -2.0)
(+
(* z 0.0212463641547976)
(* x (+ (* y 0.0212463641547976) (* z -0.14147091005106402)))))
(* x 4.16438922228))))
double code(double x, double y, double z) {
double tmp;
if (x <= -0.225) {
tmp = (x * (1.0 - (2.0 / x))) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x));
} else if (x <= 90000000000.0) {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) + (z * -0.14147091005106402))));
} 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 <= (-0.225d0)) then
tmp = (x * (1.0d0 - (2.0d0 / x))) * (4.16438922228d0 - ((101.7851458539211d0 + ((-3451.550173699799d0) / x)) / x))
else if (x <= 90000000000.0d0) then
tmp = (x + (-2.0d0)) * ((z * 0.0212463641547976d0) + (x * ((y * 0.0212463641547976d0) + (z * (-0.14147091005106402d0)))))
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 <= -0.225) {
tmp = (x * (1.0 - (2.0 / x))) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x));
} else if (x <= 90000000000.0) {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) + (z * -0.14147091005106402))));
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -0.225: tmp = (x * (1.0 - (2.0 / x))) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x)) elif x <= 90000000000.0: tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) + (z * -0.14147091005106402)))) else: tmp = x * 4.16438922228 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -0.225) tmp = Float64(Float64(x * Float64(1.0 - Float64(2.0 / x))) * Float64(4.16438922228 - Float64(Float64(101.7851458539211 + Float64(-3451.550173699799 / x)) / x))); elseif (x <= 90000000000.0) tmp = Float64(Float64(x + -2.0) * Float64(Float64(z * 0.0212463641547976) + Float64(x * Float64(Float64(y * 0.0212463641547976) + Float64(z * -0.14147091005106402))))); else tmp = Float64(x * 4.16438922228); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -0.225) tmp = (x * (1.0 - (2.0 / x))) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x)); elseif (x <= 90000000000.0) tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) + (z * -0.14147091005106402)))); else tmp = x * 4.16438922228; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -0.225], N[(N[(x * N[(1.0 - N[(2.0 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(4.16438922228 - N[(N[(101.7851458539211 + N[(-3451.550173699799 / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 90000000000.0], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z * 0.0212463641547976), $MachinePrecision] + N[(x * N[(N[(y * 0.0212463641547976), $MachinePrecision] + N[(z * -0.14147091005106402), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * 4.16438922228), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -0.225:\\
\;\;\;\;\left(x \cdot \left(1 - \frac{2}{x}\right)\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 + \frac{-3451.550173699799}{x}}{x}\right)\\
\mathbf{elif}\;x \leq 90000000000:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976 + x \cdot \left(y \cdot 0.0212463641547976 + z \cdot -0.14147091005106402\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228\\
\end{array}
\end{array}
if x < -0.225000000000000006Initial program 21.2%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified21.2%
Taylor expanded in x around inf
sub-negN/A
metadata-evalN/A
distribute-neg-inN/A
+-commutativeN/A
metadata-evalN/A
sub-negN/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
distribute-neg-inN/A
metadata-evalN/A
+-commutativeN/A
sub-negN/A
--lowering--.f64N/A
associate-*r/N/A
metadata-evalN/A
/-lowering-/.f6421.2%
Simplified21.2%
Taylor expanded in x around -inf
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
sub-negN/A
+-lowering-+.f64N/A
associate-*r/N/A
metadata-evalN/A
distribute-neg-fracN/A
/-lowering-/.f64N/A
metadata-eval83.8%
Simplified83.8%
if -0.225000000000000006 < x < 9e10Initial program 99.0%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified99.0%
Taylor expanded in x around 0
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
*-lowering-*.f64N/A
metadata-eval88.9%
Simplified88.9%
if 9e10 < x Initial program 7.2%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified16.7%
Taylor expanded in x around inf
*-commutativeN/A
*-lowering-*.f6487.9%
Simplified87.9%
Final simplification87.5%
(FPCore (x y z)
:precision binary64
(if (<= x -0.18)
(*
(* x (- 1.0 (/ 2.0 x)))
(- 4.16438922228 (/ (+ 101.7851458539211 (/ -3451.550173699799 x)) x)))
(if (<= x 7.5e+23)
(* (+ x -2.0) (+ (* z 0.0212463641547976) (* 0.0212463641547976 (* x y))))
(* 4.16438922228 (+ x -2.0)))))
double code(double x, double y, double z) {
double tmp;
if (x <= -0.18) {
tmp = (x * (1.0 - (2.0 / x))) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x));
} else if (x <= 7.5e+23) {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (0.0212463641547976 * (x * y)));
} else {
tmp = 4.16438922228 * (x + -2.0);
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-0.18d0)) then
tmp = (x * (1.0d0 - (2.0d0 / x))) * (4.16438922228d0 - ((101.7851458539211d0 + ((-3451.550173699799d0) / x)) / x))
else if (x <= 7.5d+23) then
tmp = (x + (-2.0d0)) * ((z * 0.0212463641547976d0) + (0.0212463641547976d0 * (x * y)))
else
tmp = 4.16438922228d0 * (x + (-2.0d0))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -0.18) {
tmp = (x * (1.0 - (2.0 / x))) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x));
} else if (x <= 7.5e+23) {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (0.0212463641547976 * (x * y)));
} else {
tmp = 4.16438922228 * (x + -2.0);
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -0.18: tmp = (x * (1.0 - (2.0 / x))) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x)) elif x <= 7.5e+23: tmp = (x + -2.0) * ((z * 0.0212463641547976) + (0.0212463641547976 * (x * y))) else: tmp = 4.16438922228 * (x + -2.0) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -0.18) tmp = Float64(Float64(x * Float64(1.0 - Float64(2.0 / x))) * Float64(4.16438922228 - Float64(Float64(101.7851458539211 + Float64(-3451.550173699799 / x)) / x))); elseif (x <= 7.5e+23) tmp = Float64(Float64(x + -2.0) * Float64(Float64(z * 0.0212463641547976) + Float64(0.0212463641547976 * Float64(x * y)))); else tmp = Float64(4.16438922228 * Float64(x + -2.0)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -0.18) tmp = (x * (1.0 - (2.0 / x))) * (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x)); elseif (x <= 7.5e+23) tmp = (x + -2.0) * ((z * 0.0212463641547976) + (0.0212463641547976 * (x * y))); else tmp = 4.16438922228 * (x + -2.0); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -0.18], N[(N[(x * N[(1.0 - N[(2.0 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(4.16438922228 - N[(N[(101.7851458539211 + N[(-3451.550173699799 / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 7.5e+23], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z * 0.0212463641547976), $MachinePrecision] + N[(0.0212463641547976 * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(4.16438922228 * N[(x + -2.0), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -0.18:\\
\;\;\;\;\left(x \cdot \left(1 - \frac{2}{x}\right)\right) \cdot \left(4.16438922228 - \frac{101.7851458539211 + \frac{-3451.550173699799}{x}}{x}\right)\\
\mathbf{elif}\;x \leq 7.5 \cdot 10^{+23}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976 + 0.0212463641547976 \cdot \left(x \cdot y\right)\right)\\
\mathbf{else}:\\
\;\;\;\;4.16438922228 \cdot \left(x + -2\right)\\
\end{array}
\end{array}
if x < -0.17999999999999999Initial program 21.2%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified21.2%
Taylor expanded in x around inf
sub-negN/A
metadata-evalN/A
distribute-neg-inN/A
+-commutativeN/A
metadata-evalN/A
sub-negN/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
distribute-neg-inN/A
metadata-evalN/A
+-commutativeN/A
sub-negN/A
--lowering--.f64N/A
associate-*r/N/A
metadata-evalN/A
/-lowering-/.f6421.2%
Simplified21.2%
Taylor expanded in x around -inf
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
sub-negN/A
+-lowering-+.f64N/A
associate-*r/N/A
metadata-evalN/A
distribute-neg-fracN/A
/-lowering-/.f64N/A
metadata-eval83.8%
Simplified83.8%
if -0.17999999999999999 < x < 7.49999999999999987e23Initial program 98.3%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified99.0%
Taylor expanded in x around 0
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
*-lowering-*.f64N/A
metadata-eval87.7%
Simplified87.7%
Taylor expanded in y around inf
*-lowering-*.f64N/A
*-lowering-*.f6487.6%
Simplified87.6%
if 7.49999999999999987e23 < x Initial program 5.6%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified13.9%
Taylor expanded in x around inf
Simplified90.9%
Final simplification87.5%
(FPCore (x y z)
:precision binary64
(if (<= x -0.175)
(*
x
(+ 4.16438922228 (/ (+ (/ 3655.1204654076414 x) -110.1139242984811) x)))
(if (<= x 7.5e+23)
(* (+ x -2.0) (+ (* z 0.0212463641547976) (* 0.0212463641547976 (* x y))))
(* 4.16438922228 (+ x -2.0)))))
double code(double x, double y, double z) {
double tmp;
if (x <= -0.175) {
tmp = x * (4.16438922228 + (((3655.1204654076414 / x) + -110.1139242984811) / x));
} else if (x <= 7.5e+23) {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (0.0212463641547976 * (x * y)));
} else {
tmp = 4.16438922228 * (x + -2.0);
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-0.175d0)) then
tmp = x * (4.16438922228d0 + (((3655.1204654076414d0 / x) + (-110.1139242984811d0)) / x))
else if (x <= 7.5d+23) then
tmp = (x + (-2.0d0)) * ((z * 0.0212463641547976d0) + (0.0212463641547976d0 * (x * y)))
else
tmp = 4.16438922228d0 * (x + (-2.0d0))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -0.175) {
tmp = x * (4.16438922228 + (((3655.1204654076414 / x) + -110.1139242984811) / x));
} else if (x <= 7.5e+23) {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (0.0212463641547976 * (x * y)));
} else {
tmp = 4.16438922228 * (x + -2.0);
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -0.175: tmp = x * (4.16438922228 + (((3655.1204654076414 / x) + -110.1139242984811) / x)) elif x <= 7.5e+23: tmp = (x + -2.0) * ((z * 0.0212463641547976) + (0.0212463641547976 * (x * y))) else: tmp = 4.16438922228 * (x + -2.0) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -0.175) tmp = Float64(x * Float64(4.16438922228 + Float64(Float64(Float64(3655.1204654076414 / x) + -110.1139242984811) / x))); elseif (x <= 7.5e+23) tmp = Float64(Float64(x + -2.0) * Float64(Float64(z * 0.0212463641547976) + Float64(0.0212463641547976 * Float64(x * y)))); else tmp = Float64(4.16438922228 * Float64(x + -2.0)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -0.175) tmp = x * (4.16438922228 + (((3655.1204654076414 / x) + -110.1139242984811) / x)); elseif (x <= 7.5e+23) tmp = (x + -2.0) * ((z * 0.0212463641547976) + (0.0212463641547976 * (x * y))); else tmp = 4.16438922228 * (x + -2.0); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -0.175], N[(x * N[(4.16438922228 + N[(N[(N[(3655.1204654076414 / x), $MachinePrecision] + -110.1139242984811), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 7.5e+23], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z * 0.0212463641547976), $MachinePrecision] + N[(0.0212463641547976 * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(4.16438922228 * N[(x + -2.0), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -0.175:\\
\;\;\;\;x \cdot \left(4.16438922228 + \frac{\frac{3655.1204654076414}{x} + -110.1139242984811}{x}\right)\\
\mathbf{elif}\;x \leq 7.5 \cdot 10^{+23}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976 + 0.0212463641547976 \cdot \left(x \cdot y\right)\right)\\
\mathbf{else}:\\
\;\;\;\;4.16438922228 \cdot \left(x + -2\right)\\
\end{array}
\end{array}
if x < -0.17499999999999999Initial program 21.2%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified21.2%
Taylor expanded in x around inf
*-lowering-*.f64N/A
associate--l+N/A
unpow2N/A
associate-/r*N/A
metadata-evalN/A
associate-*r/N/A
associate-*r/N/A
metadata-evalN/A
div-subN/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
sub-negN/A
+-lowering-+.f64N/A
associate-*r/N/A
metadata-evalN/A
/-lowering-/.f64N/A
metadata-eval83.8%
Simplified83.8%
if -0.17499999999999999 < x < 7.49999999999999987e23Initial program 98.3%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified99.0%
Taylor expanded in x around 0
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
*-lowering-*.f64N/A
metadata-eval87.7%
Simplified87.7%
Taylor expanded in y around inf
*-lowering-*.f64N/A
*-lowering-*.f6487.6%
Simplified87.6%
if 7.49999999999999987e23 < x Initial program 5.6%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified13.9%
Taylor expanded in x around inf
Simplified90.9%
Final simplification87.5%
(FPCore (x y z)
:precision binary64
(if (<= x -5.5)
(* x (+ 4.16438922228 (/ -110.1139242984811 x)))
(if (<= x -7.2e-101)
(* (+ x -2.0) (* 0.0212463641547976 (* x y)))
(if (<= x 7.5e+23)
(* (+ x -2.0) (* z 0.0212463641547976))
(* 4.16438922228 (+ x -2.0))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -5.5) {
tmp = x * (4.16438922228 + (-110.1139242984811 / x));
} else if (x <= -7.2e-101) {
tmp = (x + -2.0) * (0.0212463641547976 * (x * y));
} else if (x <= 7.5e+23) {
tmp = (x + -2.0) * (z * 0.0212463641547976);
} else {
tmp = 4.16438922228 * (x + -2.0);
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-5.5d0)) then
tmp = x * (4.16438922228d0 + ((-110.1139242984811d0) / x))
else if (x <= (-7.2d-101)) then
tmp = (x + (-2.0d0)) * (0.0212463641547976d0 * (x * y))
else if (x <= 7.5d+23) then
tmp = (x + (-2.0d0)) * (z * 0.0212463641547976d0)
else
tmp = 4.16438922228d0 * (x + (-2.0d0))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -5.5) {
tmp = x * (4.16438922228 + (-110.1139242984811 / x));
} else if (x <= -7.2e-101) {
tmp = (x + -2.0) * (0.0212463641547976 * (x * y));
} else if (x <= 7.5e+23) {
tmp = (x + -2.0) * (z * 0.0212463641547976);
} else {
tmp = 4.16438922228 * (x + -2.0);
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -5.5: tmp = x * (4.16438922228 + (-110.1139242984811 / x)) elif x <= -7.2e-101: tmp = (x + -2.0) * (0.0212463641547976 * (x * y)) elif x <= 7.5e+23: tmp = (x + -2.0) * (z * 0.0212463641547976) else: tmp = 4.16438922228 * (x + -2.0) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -5.5) tmp = Float64(x * Float64(4.16438922228 + Float64(-110.1139242984811 / x))); elseif (x <= -7.2e-101) tmp = Float64(Float64(x + -2.0) * Float64(0.0212463641547976 * Float64(x * y))); elseif (x <= 7.5e+23) tmp = Float64(Float64(x + -2.0) * Float64(z * 0.0212463641547976)); else tmp = Float64(4.16438922228 * Float64(x + -2.0)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -5.5) tmp = x * (4.16438922228 + (-110.1139242984811 / x)); elseif (x <= -7.2e-101) tmp = (x + -2.0) * (0.0212463641547976 * (x * y)); elseif (x <= 7.5e+23) tmp = (x + -2.0) * (z * 0.0212463641547976); else tmp = 4.16438922228 * (x + -2.0); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -5.5], N[(x * N[(4.16438922228 + N[(-110.1139242984811 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -7.2e-101], N[(N[(x + -2.0), $MachinePrecision] * N[(0.0212463641547976 * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 7.5e+23], N[(N[(x + -2.0), $MachinePrecision] * N[(z * 0.0212463641547976), $MachinePrecision]), $MachinePrecision], N[(4.16438922228 * N[(x + -2.0), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -5.5:\\
\;\;\;\;x \cdot \left(4.16438922228 + \frac{-110.1139242984811}{x}\right)\\
\mathbf{elif}\;x \leq -7.2 \cdot 10^{-101}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(0.0212463641547976 \cdot \left(x \cdot y\right)\right)\\
\mathbf{elif}\;x \leq 7.5 \cdot 10^{+23}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976\right)\\
\mathbf{else}:\\
\;\;\;\;4.16438922228 \cdot \left(x + -2\right)\\
\end{array}
\end{array}
if x < -5.5Initial program 21.2%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified21.2%
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-eval83.7%
Simplified83.7%
if -5.5 < x < -7.19999999999999999e-101Initial program 99.5%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified99.5%
Taylor expanded in x around 0
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
*-lowering-*.f64N/A
metadata-eval77.5%
Simplified77.5%
Taylor expanded in z around 0
*-lowering-*.f64N/A
*-lowering-*.f6457.4%
Simplified57.4%
if -7.19999999999999999e-101 < x < 7.49999999999999987e23Initial program 98.1%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified98.9%
Taylor expanded in x around 0
*-commutativeN/A
*-lowering-*.f6473.7%
Simplified73.7%
if 7.49999999999999987e23 < x Initial program 5.6%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified13.9%
Taylor expanded in x around inf
Simplified90.9%
Final simplification78.6%
(FPCore (x y z)
:precision binary64
(if (<= x -0.12)
(* x (+ 4.16438922228 (/ -110.1139242984811 x)))
(if (<= x -2e-100)
(* 0.0212463641547976 (* x (* y (+ x -2.0))))
(if (<= x 7.5e+23)
(* (+ x -2.0) (* z 0.0212463641547976))
(* 4.16438922228 (+ x -2.0))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -0.12) {
tmp = x * (4.16438922228 + (-110.1139242984811 / x));
} else if (x <= -2e-100) {
tmp = 0.0212463641547976 * (x * (y * (x + -2.0)));
} else if (x <= 7.5e+23) {
tmp = (x + -2.0) * (z * 0.0212463641547976);
} else {
tmp = 4.16438922228 * (x + -2.0);
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-0.12d0)) then
tmp = x * (4.16438922228d0 + ((-110.1139242984811d0) / x))
else if (x <= (-2d-100)) then
tmp = 0.0212463641547976d0 * (x * (y * (x + (-2.0d0))))
else if (x <= 7.5d+23) then
tmp = (x + (-2.0d0)) * (z * 0.0212463641547976d0)
else
tmp = 4.16438922228d0 * (x + (-2.0d0))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -0.12) {
tmp = x * (4.16438922228 + (-110.1139242984811 / x));
} else if (x <= -2e-100) {
tmp = 0.0212463641547976 * (x * (y * (x + -2.0)));
} else if (x <= 7.5e+23) {
tmp = (x + -2.0) * (z * 0.0212463641547976);
} else {
tmp = 4.16438922228 * (x + -2.0);
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -0.12: tmp = x * (4.16438922228 + (-110.1139242984811 / x)) elif x <= -2e-100: tmp = 0.0212463641547976 * (x * (y * (x + -2.0))) elif x <= 7.5e+23: tmp = (x + -2.0) * (z * 0.0212463641547976) else: tmp = 4.16438922228 * (x + -2.0) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -0.12) tmp = Float64(x * Float64(4.16438922228 + Float64(-110.1139242984811 / x))); elseif (x <= -2e-100) tmp = Float64(0.0212463641547976 * Float64(x * Float64(y * Float64(x + -2.0)))); elseif (x <= 7.5e+23) tmp = Float64(Float64(x + -2.0) * Float64(z * 0.0212463641547976)); else tmp = Float64(4.16438922228 * Float64(x + -2.0)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -0.12) tmp = x * (4.16438922228 + (-110.1139242984811 / x)); elseif (x <= -2e-100) tmp = 0.0212463641547976 * (x * (y * (x + -2.0))); elseif (x <= 7.5e+23) tmp = (x + -2.0) * (z * 0.0212463641547976); else tmp = 4.16438922228 * (x + -2.0); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -0.12], N[(x * N[(4.16438922228 + N[(-110.1139242984811 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -2e-100], N[(0.0212463641547976 * N[(x * N[(y * N[(x + -2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 7.5e+23], N[(N[(x + -2.0), $MachinePrecision] * N[(z * 0.0212463641547976), $MachinePrecision]), $MachinePrecision], N[(4.16438922228 * N[(x + -2.0), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -0.12:\\
\;\;\;\;x \cdot \left(4.16438922228 + \frac{-110.1139242984811}{x}\right)\\
\mathbf{elif}\;x \leq -2 \cdot 10^{-100}:\\
\;\;\;\;0.0212463641547976 \cdot \left(x \cdot \left(y \cdot \left(x + -2\right)\right)\right)\\
\mathbf{elif}\;x \leq 7.5 \cdot 10^{+23}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976\right)\\
\mathbf{else}:\\
\;\;\;\;4.16438922228 \cdot \left(x + -2\right)\\
\end{array}
\end{array}
if x < -0.12Initial program 21.2%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified21.2%
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-eval83.7%
Simplified83.7%
if -0.12 < x < -2e-100Initial program 99.5%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified99.5%
Taylor expanded in x around 0
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
*-lowering-*.f64N/A
metadata-eval77.5%
Simplified77.5%
Taylor expanded in z around 0
*-lowering-*.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f6457.4%
Simplified57.4%
if -2e-100 < x < 7.49999999999999987e23Initial program 98.1%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified98.9%
Taylor expanded in x around 0
*-commutativeN/A
*-lowering-*.f6473.7%
Simplified73.7%
if 7.49999999999999987e23 < x Initial program 5.6%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified13.9%
Taylor expanded in x around inf
Simplified90.9%
Final simplification78.6%
(FPCore (x y z)
:precision binary64
(if (<= x -0.172)
(* x (+ 4.16438922228 (/ -110.1139242984811 x)))
(if (<= x -6.8e-101)
(* -0.0424927283095952 (* x y))
(if (<= x 7.5e+23)
(* (+ x -2.0) (* z 0.0212463641547976))
(* 4.16438922228 (+ x -2.0))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -0.172) {
tmp = x * (4.16438922228 + (-110.1139242984811 / x));
} else if (x <= -6.8e-101) {
tmp = -0.0424927283095952 * (x * y);
} else if (x <= 7.5e+23) {
tmp = (x + -2.0) * (z * 0.0212463641547976);
} else {
tmp = 4.16438922228 * (x + -2.0);
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-0.172d0)) then
tmp = x * (4.16438922228d0 + ((-110.1139242984811d0) / x))
else if (x <= (-6.8d-101)) then
tmp = (-0.0424927283095952d0) * (x * y)
else if (x <= 7.5d+23) then
tmp = (x + (-2.0d0)) * (z * 0.0212463641547976d0)
else
tmp = 4.16438922228d0 * (x + (-2.0d0))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -0.172) {
tmp = x * (4.16438922228 + (-110.1139242984811 / x));
} else if (x <= -6.8e-101) {
tmp = -0.0424927283095952 * (x * y);
} else if (x <= 7.5e+23) {
tmp = (x + -2.0) * (z * 0.0212463641547976);
} else {
tmp = 4.16438922228 * (x + -2.0);
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -0.172: tmp = x * (4.16438922228 + (-110.1139242984811 / x)) elif x <= -6.8e-101: tmp = -0.0424927283095952 * (x * y) elif x <= 7.5e+23: tmp = (x + -2.0) * (z * 0.0212463641547976) else: tmp = 4.16438922228 * (x + -2.0) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -0.172) tmp = Float64(x * Float64(4.16438922228 + Float64(-110.1139242984811 / x))); elseif (x <= -6.8e-101) tmp = Float64(-0.0424927283095952 * Float64(x * y)); elseif (x <= 7.5e+23) tmp = Float64(Float64(x + -2.0) * Float64(z * 0.0212463641547976)); else tmp = Float64(4.16438922228 * Float64(x + -2.0)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -0.172) tmp = x * (4.16438922228 + (-110.1139242984811 / x)); elseif (x <= -6.8e-101) tmp = -0.0424927283095952 * (x * y); elseif (x <= 7.5e+23) tmp = (x + -2.0) * (z * 0.0212463641547976); else tmp = 4.16438922228 * (x + -2.0); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -0.172], N[(x * N[(4.16438922228 + N[(-110.1139242984811 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -6.8e-101], N[(-0.0424927283095952 * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 7.5e+23], N[(N[(x + -2.0), $MachinePrecision] * N[(z * 0.0212463641547976), $MachinePrecision]), $MachinePrecision], N[(4.16438922228 * N[(x + -2.0), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -0.172:\\
\;\;\;\;x \cdot \left(4.16438922228 + \frac{-110.1139242984811}{x}\right)\\
\mathbf{elif}\;x \leq -6.8 \cdot 10^{-101}:\\
\;\;\;\;-0.0424927283095952 \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;x \leq 7.5 \cdot 10^{+23}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976\right)\\
\mathbf{else}:\\
\;\;\;\;4.16438922228 \cdot \left(x + -2\right)\\
\end{array}
\end{array}
if x < -0.17199999999999999Initial program 21.2%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified21.2%
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-eval83.7%
Simplified83.7%
if -0.17199999999999999 < x < -6.79999999999999978e-101Initial program 99.5%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified99.5%
Taylor expanded in y around inf
*-lowering-*.f6463.0%
Simplified63.0%
Taylor expanded in x around 0
*-lowering-*.f64N/A
*-lowering-*.f6457.3%
Simplified57.3%
if -6.79999999999999978e-101 < x < 7.49999999999999987e23Initial program 98.1%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified98.9%
Taylor expanded in x around 0
*-commutativeN/A
*-lowering-*.f6473.7%
Simplified73.7%
if 7.49999999999999987e23 < x Initial program 5.6%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified13.9%
Taylor expanded in x around inf
Simplified90.9%
Final simplification78.6%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (* x (+ 4.16438922228 (/ -110.1139242984811 x)))))
(if (<= x -0.036)
t_0
(if (<= x -2.9e-100)
(* -0.0424927283095952 (* x y))
(if (<= x 18000.0) (* z -0.0424927283095952) t_0)))))
double code(double x, double y, double z) {
double t_0 = x * (4.16438922228 + (-110.1139242984811 / x));
double tmp;
if (x <= -0.036) {
tmp = t_0;
} else if (x <= -2.9e-100) {
tmp = -0.0424927283095952 * (x * y);
} else if (x <= 18000.0) {
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 * (4.16438922228d0 + ((-110.1139242984811d0) / x))
if (x <= (-0.036d0)) then
tmp = t_0
else if (x <= (-2.9d-100)) then
tmp = (-0.0424927283095952d0) * (x * y)
else if (x <= 18000.0d0) 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 * (4.16438922228 + (-110.1139242984811 / x));
double tmp;
if (x <= -0.036) {
tmp = t_0;
} else if (x <= -2.9e-100) {
tmp = -0.0424927283095952 * (x * y);
} else if (x <= 18000.0) {
tmp = z * -0.0424927283095952;
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = x * (4.16438922228 + (-110.1139242984811 / x)) tmp = 0 if x <= -0.036: tmp = t_0 elif x <= -2.9e-100: tmp = -0.0424927283095952 * (x * y) elif x <= 18000.0: tmp = z * -0.0424927283095952 else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(x * Float64(4.16438922228 + Float64(-110.1139242984811 / x))) tmp = 0.0 if (x <= -0.036) tmp = t_0; elseif (x <= -2.9e-100) tmp = Float64(-0.0424927283095952 * Float64(x * y)); elseif (x <= 18000.0) tmp = Float64(z * -0.0424927283095952); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = x * (4.16438922228 + (-110.1139242984811 / x)); tmp = 0.0; if (x <= -0.036) tmp = t_0; elseif (x <= -2.9e-100) tmp = -0.0424927283095952 * (x * y); elseif (x <= 18000.0) tmp = z * -0.0424927283095952; else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(x * N[(4.16438922228 + N[(-110.1139242984811 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -0.036], t$95$0, If[LessEqual[x, -2.9e-100], N[(-0.0424927283095952 * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 18000.0], N[(z * -0.0424927283095952), $MachinePrecision], t$95$0]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(4.16438922228 + \frac{-110.1139242984811}{x}\right)\\
\mathbf{if}\;x \leq -0.036:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq -2.9 \cdot 10^{-100}:\\
\;\;\;\;-0.0424927283095952 \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;x \leq 18000:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if x < -0.0359999999999999973 or 18000 < x Initial program 15.0%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified19.6%
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-eval84.4%
Simplified84.4%
if -0.0359999999999999973 < x < -2.89999999999999975e-100Initial program 99.5%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified99.5%
Taylor expanded in y around inf
*-lowering-*.f6463.0%
Simplified63.0%
Taylor expanded in x around 0
*-lowering-*.f64N/A
*-lowering-*.f6457.3%
Simplified57.3%
if -2.89999999999999975e-100 < x < 18000Initial program 99.7%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified99.7%
Taylor expanded in x around 0
*-lowering-*.f6476.2%
Simplified76.2%
Final simplification78.5%
(FPCore (x y z)
:precision binary64
(if (<= x -5.5)
(*
x
(+ 4.16438922228 (/ (+ (/ 3655.1204654076414 x) -110.1139242984811) x)))
(if (<= x 2.0)
(* -2.0 (+ (* z 0.0212463641547976) (* 0.0212463641547976 (* x y))))
(* x 4.16438922228))))
double code(double x, double y, double z) {
double tmp;
if (x <= -5.5) {
tmp = x * (4.16438922228 + (((3655.1204654076414 / x) + -110.1139242984811) / x));
} else if (x <= 2.0) {
tmp = -2.0 * ((z * 0.0212463641547976) + (0.0212463641547976 * (x * y)));
} 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 + (((3655.1204654076414d0 / x) + (-110.1139242984811d0)) / x))
else if (x <= 2.0d0) then
tmp = (-2.0d0) * ((z * 0.0212463641547976d0) + (0.0212463641547976d0 * (x * y)))
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 + (((3655.1204654076414 / x) + -110.1139242984811) / x));
} else if (x <= 2.0) {
tmp = -2.0 * ((z * 0.0212463641547976) + (0.0212463641547976 * (x * y)));
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -5.5: tmp = x * (4.16438922228 + (((3655.1204654076414 / x) + -110.1139242984811) / x)) elif x <= 2.0: tmp = -2.0 * ((z * 0.0212463641547976) + (0.0212463641547976 * (x * y))) else: tmp = x * 4.16438922228 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -5.5) tmp = Float64(x * Float64(4.16438922228 + Float64(Float64(Float64(3655.1204654076414 / x) + -110.1139242984811) / x))); elseif (x <= 2.0) tmp = Float64(-2.0 * Float64(Float64(z * 0.0212463641547976) + Float64(0.0212463641547976 * Float64(x * y)))); 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 + (((3655.1204654076414 / x) + -110.1139242984811) / x)); elseif (x <= 2.0) tmp = -2.0 * ((z * 0.0212463641547976) + (0.0212463641547976 * (x * y))); else tmp = x * 4.16438922228; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -5.5], N[(x * N[(4.16438922228 + N[(N[(N[(3655.1204654076414 / x), $MachinePrecision] + -110.1139242984811), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.0], N[(-2.0 * N[(N[(z * 0.0212463641547976), $MachinePrecision] + N[(0.0212463641547976 * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * 4.16438922228), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -5.5:\\
\;\;\;\;x \cdot \left(4.16438922228 + \frac{\frac{3655.1204654076414}{x} + -110.1139242984811}{x}\right)\\
\mathbf{elif}\;x \leq 2:\\
\;\;\;\;-2 \cdot \left(z \cdot 0.0212463641547976 + 0.0212463641547976 \cdot \left(x \cdot y\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228\\
\end{array}
\end{array}
if x < -5.5Initial program 21.2%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified21.2%
Taylor expanded in x around inf
*-lowering-*.f64N/A
associate--l+N/A
unpow2N/A
associate-/r*N/A
metadata-evalN/A
associate-*r/N/A
associate-*r/N/A
metadata-evalN/A
div-subN/A
+-lowering-+.f64N/A
/-lowering-/.f64N/A
sub-negN/A
+-lowering-+.f64N/A
associate-*r/N/A
metadata-evalN/A
/-lowering-/.f64N/A
metadata-eval83.8%
Simplified83.8%
if -5.5 < x < 2Initial program 99.7%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified99.7%
Taylor expanded in x around 0
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
*-lowering-*.f64N/A
metadata-eval91.4%
Simplified91.4%
Taylor expanded in y around inf
*-lowering-*.f64N/A
*-lowering-*.f6491.2%
Simplified91.2%
Taylor expanded in x around 0
Simplified91.2%
if 2 < x Initial program 11.5%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified20.5%
Taylor expanded in x around inf
*-commutativeN/A
*-lowering-*.f6482.4%
Simplified82.4%
(FPCore (x y z)
:precision binary64
(if (<= x -0.175)
(* x (+ 4.16438922228 (/ -110.1139242984811 x)))
(if (<= x 2.0)
(* -2.0 (+ (* z 0.0212463641547976) (* 0.0212463641547976 (* x y))))
(* x 4.16438922228))))
double code(double x, double y, double z) {
double tmp;
if (x <= -0.175) {
tmp = x * (4.16438922228 + (-110.1139242984811 / x));
} else if (x <= 2.0) {
tmp = -2.0 * ((z * 0.0212463641547976) + (0.0212463641547976 * (x * y)));
} 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 <= (-0.175d0)) then
tmp = x * (4.16438922228d0 + ((-110.1139242984811d0) / x))
else if (x <= 2.0d0) then
tmp = (-2.0d0) * ((z * 0.0212463641547976d0) + (0.0212463641547976d0 * (x * y)))
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 <= -0.175) {
tmp = x * (4.16438922228 + (-110.1139242984811 / x));
} else if (x <= 2.0) {
tmp = -2.0 * ((z * 0.0212463641547976) + (0.0212463641547976 * (x * y)));
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -0.175: tmp = x * (4.16438922228 + (-110.1139242984811 / x)) elif x <= 2.0: tmp = -2.0 * ((z * 0.0212463641547976) + (0.0212463641547976 * (x * y))) else: tmp = x * 4.16438922228 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -0.175) tmp = Float64(x * Float64(4.16438922228 + Float64(-110.1139242984811 / x))); elseif (x <= 2.0) tmp = Float64(-2.0 * Float64(Float64(z * 0.0212463641547976) + Float64(0.0212463641547976 * Float64(x * y)))); else tmp = Float64(x * 4.16438922228); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -0.175) tmp = x * (4.16438922228 + (-110.1139242984811 / x)); elseif (x <= 2.0) tmp = -2.0 * ((z * 0.0212463641547976) + (0.0212463641547976 * (x * y))); else tmp = x * 4.16438922228; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -0.175], N[(x * N[(4.16438922228 + N[(-110.1139242984811 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.0], N[(-2.0 * N[(N[(z * 0.0212463641547976), $MachinePrecision] + N[(0.0212463641547976 * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * 4.16438922228), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -0.175:\\
\;\;\;\;x \cdot \left(4.16438922228 + \frac{-110.1139242984811}{x}\right)\\
\mathbf{elif}\;x \leq 2:\\
\;\;\;\;-2 \cdot \left(z \cdot 0.0212463641547976 + 0.0212463641547976 \cdot \left(x \cdot y\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228\\
\end{array}
\end{array}
if x < -0.17499999999999999Initial program 21.2%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified21.2%
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-eval83.7%
Simplified83.7%
if -0.17499999999999999 < x < 2Initial program 99.7%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified99.7%
Taylor expanded in x around 0
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
*-lowering-*.f64N/A
metadata-eval91.4%
Simplified91.4%
Taylor expanded in y around inf
*-lowering-*.f64N/A
*-lowering-*.f6491.2%
Simplified91.2%
Taylor expanded in x around 0
Simplified91.2%
if 2 < x Initial program 11.5%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified20.5%
Taylor expanded in x around inf
*-commutativeN/A
*-lowering-*.f6482.4%
Simplified82.4%
(FPCore (x y z)
:precision binary64
(if (<= x -0.192)
(* 4.16438922228 (+ x -2.0))
(if (<= x -7.2e-101)
(* -0.0424927283095952 (* x y))
(if (<= x 18000.0) (* z -0.0424927283095952) (* x 4.16438922228)))))
double code(double x, double y, double z) {
double tmp;
if (x <= -0.192) {
tmp = 4.16438922228 * (x + -2.0);
} else if (x <= -7.2e-101) {
tmp = -0.0424927283095952 * (x * y);
} else if (x <= 18000.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 <= (-0.192d0)) then
tmp = 4.16438922228d0 * (x + (-2.0d0))
else if (x <= (-7.2d-101)) then
tmp = (-0.0424927283095952d0) * (x * y)
else if (x <= 18000.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 <= -0.192) {
tmp = 4.16438922228 * (x + -2.0);
} else if (x <= -7.2e-101) {
tmp = -0.0424927283095952 * (x * y);
} else if (x <= 18000.0) {
tmp = z * -0.0424927283095952;
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -0.192: tmp = 4.16438922228 * (x + -2.0) elif x <= -7.2e-101: tmp = -0.0424927283095952 * (x * y) elif x <= 18000.0: tmp = z * -0.0424927283095952 else: tmp = x * 4.16438922228 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -0.192) tmp = Float64(4.16438922228 * Float64(x + -2.0)); elseif (x <= -7.2e-101) tmp = Float64(-0.0424927283095952 * Float64(x * y)); elseif (x <= 18000.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 <= -0.192) tmp = 4.16438922228 * (x + -2.0); elseif (x <= -7.2e-101) tmp = -0.0424927283095952 * (x * y); elseif (x <= 18000.0) tmp = z * -0.0424927283095952; else tmp = x * 4.16438922228; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -0.192], N[(4.16438922228 * N[(x + -2.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -7.2e-101], N[(-0.0424927283095952 * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 18000.0], N[(z * -0.0424927283095952), $MachinePrecision], N[(x * 4.16438922228), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -0.192:\\
\;\;\;\;4.16438922228 \cdot \left(x + -2\right)\\
\mathbf{elif}\;x \leq -7.2 \cdot 10^{-101}:\\
\;\;\;\;-0.0424927283095952 \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;x \leq 18000:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228\\
\end{array}
\end{array}
if x < -0.192Initial program 21.2%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified21.2%
Taylor expanded in x around inf
Simplified82.6%
if -0.192 < x < -7.19999999999999999e-101Initial program 99.5%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified99.5%
Taylor expanded in y around inf
*-lowering-*.f6463.0%
Simplified63.0%
Taylor expanded in x around 0
*-lowering-*.f64N/A
*-lowering-*.f6457.3%
Simplified57.3%
if -7.19999999999999999e-101 < x < 18000Initial program 99.7%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified99.7%
Taylor expanded in x around 0
*-lowering-*.f6476.2%
Simplified76.2%
if 18000 < x Initial program 8.7%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified18.0%
Taylor expanded in x around inf
*-commutativeN/A
*-lowering-*.f6485.0%
Simplified85.0%
Final simplification78.3%
(FPCore (x y z)
:precision binary64
(if (<= x -0.225)
(* x 4.16438922228)
(if (<= x -2.9e-100)
(* -0.0424927283095952 (* x y))
(if (<= x 18000.0) (* z -0.0424927283095952) (* x 4.16438922228)))))
double code(double x, double y, double z) {
double tmp;
if (x <= -0.225) {
tmp = x * 4.16438922228;
} else if (x <= -2.9e-100) {
tmp = -0.0424927283095952 * (x * y);
} else if (x <= 18000.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 <= (-0.225d0)) then
tmp = x * 4.16438922228d0
else if (x <= (-2.9d-100)) then
tmp = (-0.0424927283095952d0) * (x * y)
else if (x <= 18000.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 <= -0.225) {
tmp = x * 4.16438922228;
} else if (x <= -2.9e-100) {
tmp = -0.0424927283095952 * (x * y);
} else if (x <= 18000.0) {
tmp = z * -0.0424927283095952;
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -0.225: tmp = x * 4.16438922228 elif x <= -2.9e-100: tmp = -0.0424927283095952 * (x * y) elif x <= 18000.0: tmp = z * -0.0424927283095952 else: tmp = x * 4.16438922228 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -0.225) tmp = Float64(x * 4.16438922228); elseif (x <= -2.9e-100) tmp = Float64(-0.0424927283095952 * Float64(x * y)); elseif (x <= 18000.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 <= -0.225) tmp = x * 4.16438922228; elseif (x <= -2.9e-100) tmp = -0.0424927283095952 * (x * y); elseif (x <= 18000.0) tmp = z * -0.0424927283095952; else tmp = x * 4.16438922228; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -0.225], N[(x * 4.16438922228), $MachinePrecision], If[LessEqual[x, -2.9e-100], N[(-0.0424927283095952 * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 18000.0], N[(z * -0.0424927283095952), $MachinePrecision], N[(x * 4.16438922228), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -0.225:\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{elif}\;x \leq -2.9 \cdot 10^{-100}:\\
\;\;\;\;-0.0424927283095952 \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;x \leq 18000:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228\\
\end{array}
\end{array}
if x < -0.225000000000000006 or 18000 < x Initial program 15.0%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified19.6%
Taylor expanded in x around inf
*-commutativeN/A
*-lowering-*.f6483.8%
Simplified83.8%
if -0.225000000000000006 < x < -2.89999999999999975e-100Initial program 99.5%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified99.5%
Taylor expanded in y around inf
*-lowering-*.f6463.0%
Simplified63.0%
Taylor expanded in x around 0
*-lowering-*.f64N/A
*-lowering-*.f6457.3%
Simplified57.3%
if -2.89999999999999975e-100 < x < 18000Initial program 99.7%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified99.7%
Taylor expanded in x around 0
*-lowering-*.f6476.2%
Simplified76.2%
Final simplification78.3%
(FPCore (x y z) :precision binary64 (if (<= x -0.000106) (* x 4.16438922228) (if (<= x 18000.0) (* z -0.0424927283095952) (* x 4.16438922228))))
double code(double x, double y, double z) {
double tmp;
if (x <= -0.000106) {
tmp = x * 4.16438922228;
} else if (x <= 18000.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 <= (-0.000106d0)) then
tmp = x * 4.16438922228d0
else if (x <= 18000.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 <= -0.000106) {
tmp = x * 4.16438922228;
} else if (x <= 18000.0) {
tmp = z * -0.0424927283095952;
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -0.000106: tmp = x * 4.16438922228 elif x <= 18000.0: tmp = z * -0.0424927283095952 else: tmp = x * 4.16438922228 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -0.000106) tmp = Float64(x * 4.16438922228); elseif (x <= 18000.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 <= -0.000106) tmp = x * 4.16438922228; elseif (x <= 18000.0) tmp = z * -0.0424927283095952; else tmp = x * 4.16438922228; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -0.000106], N[(x * 4.16438922228), $MachinePrecision], If[LessEqual[x, 18000.0], N[(z * -0.0424927283095952), $MachinePrecision], N[(x * 4.16438922228), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -0.000106:\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{elif}\;x \leq 18000:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228\\
\end{array}
\end{array}
if x < -1.06e-4 or 18000 < x Initial program 15.6%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified20.2%
Taylor expanded in x around inf
*-commutativeN/A
*-lowering-*.f6483.1%
Simplified83.1%
if -1.06e-4 < x < 18000Initial program 99.6%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified99.7%
Taylor expanded in x around 0
*-lowering-*.f6468.4%
Simplified68.4%
Final simplification75.5%
(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 59.3%
associate-/l*N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
/-lowering-/.f64N/A
Simplified61.5%
Taylor expanded in x around 0
*-lowering-*.f6437.0%
Simplified37.0%
Final simplification37.0%
(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 2024160
(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)))