
(FPCore (x y z)
:precision binary64
(/
(*
(- x 2.0)
(+
(*
(+ (* (+ (* (+ (* x 4.16438922228) 78.6994924154) x) 137.519416416) x) y)
x)
z))
(+
(* (+ (* (+ (* (+ x 43.3400022514) x) 263.505074721) x) 313.399215894) x)
47.066876606)))
double code(double x, double y, double z) {
return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606);
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = ((x - 2.0d0) * ((((((((x * 4.16438922228d0) + 78.6994924154d0) * x) + 137.519416416d0) * x) + y) * x) + z)) / (((((((x + 43.3400022514d0) * x) + 263.505074721d0) * x) + 313.399215894d0) * x) + 47.066876606d0)
end function
public static double code(double x, double y, double z) {
return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606);
}
def code(x, y, z): return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606)
function code(x, y, z) return Float64(Float64(Float64(x - 2.0) * Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606)) end
function tmp = code(x, y, z) tmp = ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606); end
code[x_, y_, z_] := N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(N[(N[(N[(N[(N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision] * x), $MachinePrecision] + 137.519416416), $MachinePrecision] * x), $MachinePrecision] + y), $MachinePrecision] * x), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(x + 43.3400022514), $MachinePrecision] * x), $MachinePrecision] + 263.505074721), $MachinePrecision] * x), $MachinePrecision] + 313.399215894), $MachinePrecision] * x), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 23 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z)
:precision binary64
(/
(*
(- x 2.0)
(+
(*
(+ (* (+ (* (+ (* x 4.16438922228) 78.6994924154) x) 137.519416416) x) y)
x)
z))
(+
(* (+ (* (+ (* (+ x 43.3400022514) x) 263.505074721) x) 313.399215894) x)
47.066876606)))
double code(double x, double y, double z) {
return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606);
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = ((x - 2.0d0) * ((((((((x * 4.16438922228d0) + 78.6994924154d0) * x) + 137.519416416d0) * x) + y) * x) + z)) / (((((((x + 43.3400022514d0) * x) + 263.505074721d0) * x) + 313.399215894d0) * x) + 47.066876606d0)
end function
public static double code(double x, double y, double z) {
return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606);
}
def code(x, y, z): return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606)
function code(x, y, z) return Float64(Float64(Float64(x - 2.0) * Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606)) end
function tmp = code(x, y, z) tmp = ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606); end
code[x_, y_, z_] := N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(N[(N[(N[(N[(N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision] * x), $MachinePrecision] + 137.519416416), $MachinePrecision] * x), $MachinePrecision] + y), $MachinePrecision] * x), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(x + 43.3400022514), $MachinePrecision] * x), $MachinePrecision] + 263.505074721), $MachinePrecision] * x), $MachinePrecision] + 313.399215894), $MachinePrecision] * x), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606}
\end{array}
(FPCore (x y z)
:precision binary64
(let* ((t_0 (/ 1.0 (+ x -2.0)))
(t_1
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))
(t_2
(+
z
(*
x
(+
y
(*
x
(+
137.519416416
(* x (+ (* x 4.16438922228) 78.6994924154)))))))))
(if (<= (/ (* (- x 2.0) t_2) t_1) 1e+296)
(/ (/ t_2 t_1) t_0)
(/
(+
4.16438922228
(/
(-
(/ (+ 3451.550173699799 (/ (- y 124074.40615218398) x)) x)
101.7851458539211)
x))
t_0))))
double code(double x, double y, double z) {
double t_0 = 1.0 / (x + -2.0);
double t_1 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606;
double t_2 = z + (x * (y + (x * (137.519416416 + (x * ((x * 4.16438922228) + 78.6994924154))))));
double tmp;
if ((((x - 2.0) * t_2) / t_1) <= 1e+296) {
tmp = (t_2 / t_1) / t_0;
} else {
tmp = (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)) / t_0;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_0 = 1.0d0 / (x + (-2.0d0))
t_1 = (x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0
t_2 = z + (x * (y + (x * (137.519416416d0 + (x * ((x * 4.16438922228d0) + 78.6994924154d0))))))
if ((((x - 2.0d0) * t_2) / t_1) <= 1d+296) then
tmp = (t_2 / t_1) / t_0
else
tmp = (4.16438922228d0 + ((((3451.550173699799d0 + ((y - 124074.40615218398d0) / x)) / x) - 101.7851458539211d0) / x)) / t_0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = 1.0 / (x + -2.0);
double t_1 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606;
double t_2 = z + (x * (y + (x * (137.519416416 + (x * ((x * 4.16438922228) + 78.6994924154))))));
double tmp;
if ((((x - 2.0) * t_2) / t_1) <= 1e+296) {
tmp = (t_2 / t_1) / t_0;
} else {
tmp = (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)) / t_0;
}
return tmp;
}
def code(x, y, z): t_0 = 1.0 / (x + -2.0) t_1 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606 t_2 = z + (x * (y + (x * (137.519416416 + (x * ((x * 4.16438922228) + 78.6994924154)))))) tmp = 0 if (((x - 2.0) * t_2) / t_1) <= 1e+296: tmp = (t_2 / t_1) / t_0 else: tmp = (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)) / t_0 return tmp
function code(x, y, z) t_0 = Float64(1.0 / Float64(x + -2.0)) t_1 = Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) t_2 = Float64(z + Float64(x * Float64(y + Float64(x * Float64(137.519416416 + Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154))))))) tmp = 0.0 if (Float64(Float64(Float64(x - 2.0) * t_2) / t_1) <= 1e+296) tmp = Float64(Float64(t_2 / t_1) / t_0); else tmp = Float64(Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(Float64(y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)) / t_0); end return tmp end
function tmp_2 = code(x, y, z) t_0 = 1.0 / (x + -2.0); t_1 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606; t_2 = z + (x * (y + (x * (137.519416416 + (x * ((x * 4.16438922228) + 78.6994924154)))))); tmp = 0.0; if ((((x - 2.0) * t_2) / t_1) <= 1e+296) tmp = (t_2 / t_1) / t_0; else tmp = (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)) / t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(1.0 / N[(x + -2.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]}, Block[{t$95$2 = N[(z + 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]), $MachinePrecision]}, If[LessEqual[N[(N[(N[(x - 2.0), $MachinePrecision] * t$95$2), $MachinePrecision] / t$95$1), $MachinePrecision], 1e+296], N[(N[(t$95$2 / t$95$1), $MachinePrecision] / t$95$0), $MachinePrecision], N[(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] / t$95$0), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{1}{x + -2}\\
t_1 := x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606\\
t_2 := z + x \cdot \left(y + x \cdot \left(137.519416416 + x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right)\right)\right)\\
\mathbf{if}\;\frac{\left(x - 2\right) \cdot t\_2}{t\_1} \leq 10^{+296}:\\
\;\;\;\;\frac{\frac{t\_2}{t\_1}}{t\_0}\\
\mathbf{else}:\\
\;\;\;\;\frac{4.16438922228 + \frac{\frac{3451.550173699799 + \frac{y - 124074.40615218398}{x}}{x} - 101.7851458539211}{x}}{t\_0}\\
\end{array}
\end{array}
if (/.f64 (*.f64 (-.f64 x #s(literal 2 binary64)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x #s(literal 104109730557/25000000000 binary64)) #s(literal 393497462077/5000000000 binary64)) x) #s(literal 4297481763/31250000 binary64)) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x #s(literal 216700011257/5000000000 binary64)) x) #s(literal 263505074721/1000000000 binary64)) x) #s(literal 156699607947/500000000 binary64)) x) #s(literal 23533438303/500000000 binary64))) < 9.99999999999999981e295Initial program 97.2%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
Simplified98.7%
Applied egg-rr99.0%
div-invN/A
associate-/r*N/A
/-lowering-/.f64N/A
Applied egg-rr99.0%
if 9.99999999999999981e295 < (/.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.1%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
Simplified0.1%
Applied egg-rr0.1%
div-invN/A
associate-/r*N/A
/-lowering-/.f64N/A
Applied egg-rr0.1%
Taylor expanded in x around -inf
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
Simplified99.0%
Final simplification99.0%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))
(t_1
(+
z
(*
x
(+
y
(*
x
(+
137.519416416
(* x (+ (* x 4.16438922228) 78.6994924154)))))))))
(if (<= (/ (* (- x 2.0) t_1) t_0) 1e+296)
(/ t_1 (/ t_0 (+ x -2.0)))
(/
(+
4.16438922228
(/
(-
(/ (+ 3451.550173699799 (/ (- y 124074.40615218398) x)) x)
101.7851458539211)
x))
(/ 1.0 (+ x -2.0))))))
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 = z + (x * (y + (x * (137.519416416 + (x * ((x * 4.16438922228) + 78.6994924154))))));
double tmp;
if ((((x - 2.0) * t_1) / t_0) <= 1e+296) {
tmp = t_1 / (t_0 / (x + -2.0));
} else {
tmp = (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)) / (1.0 / (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) :: 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 = z + (x * (y + (x * (137.519416416d0 + (x * ((x * 4.16438922228d0) + 78.6994924154d0))))))
if ((((x - 2.0d0) * t_1) / t_0) <= 1d+296) then
tmp = t_1 / (t_0 / (x + (-2.0d0)))
else
tmp = (4.16438922228d0 + ((((3451.550173699799d0 + ((y - 124074.40615218398d0) / x)) / x) - 101.7851458539211d0) / x)) / (1.0d0 / (x + (-2.0d0)))
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 = z + (x * (y + (x * (137.519416416 + (x * ((x * 4.16438922228) + 78.6994924154))))));
double tmp;
if ((((x - 2.0) * t_1) / t_0) <= 1e+296) {
tmp = t_1 / (t_0 / (x + -2.0));
} else {
tmp = (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)) / (1.0 / (x + -2.0));
}
return tmp;
}
def code(x, y, z): t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606 t_1 = z + (x * (y + (x * (137.519416416 + (x * ((x * 4.16438922228) + 78.6994924154)))))) tmp = 0 if (((x - 2.0) * t_1) / t_0) <= 1e+296: tmp = t_1 / (t_0 / (x + -2.0)) else: tmp = (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)) / (1.0 / (x + -2.0)) 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(z + Float64(x * Float64(y + Float64(x * Float64(137.519416416 + Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154))))))) tmp = 0.0 if (Float64(Float64(Float64(x - 2.0) * t_1) / t_0) <= 1e+296) tmp = Float64(t_1 / Float64(t_0 / Float64(x + -2.0))); else tmp = Float64(Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(Float64(y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)) / Float64(1.0 / Float64(x + -2.0))); 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 = z + (x * (y + (x * (137.519416416 + (x * ((x * 4.16438922228) + 78.6994924154)))))); tmp = 0.0; if ((((x - 2.0) * t_1) / t_0) <= 1e+296) tmp = t_1 / (t_0 / (x + -2.0)); else tmp = (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)) / (1.0 / (x + -2.0)); 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[(z + 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]), $MachinePrecision]}, If[LessEqual[N[(N[(N[(x - 2.0), $MachinePrecision] * t$95$1), $MachinePrecision] / t$95$0), $MachinePrecision], 1e+296], N[(t$95$1 / N[(t$95$0 / N[(x + -2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(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] / N[(1.0 / N[(x + -2.0), $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 := z + x \cdot \left(y + x \cdot \left(137.519416416 + x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right)\right)\right)\\
\mathbf{if}\;\frac{\left(x - 2\right) \cdot t\_1}{t\_0} \leq 10^{+296}:\\
\;\;\;\;\frac{t\_1}{\frac{t\_0}{x + -2}}\\
\mathbf{else}:\\
\;\;\;\;\frac{4.16438922228 + \frac{\frac{3451.550173699799 + \frac{y - 124074.40615218398}{x}}{x} - 101.7851458539211}{x}}{\frac{1}{x + -2}}\\
\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))) < 9.99999999999999981e295Initial program 97.2%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
Simplified98.7%
Applied egg-rr99.0%
if 9.99999999999999981e295 < (/.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.1%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
Simplified0.1%
Applied egg-rr0.1%
div-invN/A
associate-/r*N/A
/-lowering-/.f64N/A
Applied egg-rr0.1%
Taylor expanded in x around -inf
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
Simplified99.0%
Final simplification99.0%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))
(t_1
(+
z
(*
x
(+
y
(*
x
(+
137.519416416
(* x (+ (* x 4.16438922228) 78.6994924154)))))))))
(if (<= (/ (* (- x 2.0) t_1) t_0) 1e+296)
(* t_1 (/ (+ x -2.0) t_0))
(/
(+
4.16438922228
(/
(-
(/ (+ 3451.550173699799 (/ (- y 124074.40615218398) x)) x)
101.7851458539211)
x))
(/ 1.0 (+ x -2.0))))))
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 = z + (x * (y + (x * (137.519416416 + (x * ((x * 4.16438922228) + 78.6994924154))))));
double tmp;
if ((((x - 2.0) * t_1) / t_0) <= 1e+296) {
tmp = t_1 * ((x + -2.0) / t_0);
} else {
tmp = (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)) / (1.0 / (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) :: 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 = z + (x * (y + (x * (137.519416416d0 + (x * ((x * 4.16438922228d0) + 78.6994924154d0))))))
if ((((x - 2.0d0) * t_1) / t_0) <= 1d+296) then
tmp = t_1 * ((x + (-2.0d0)) / t_0)
else
tmp = (4.16438922228d0 + ((((3451.550173699799d0 + ((y - 124074.40615218398d0) / x)) / x) - 101.7851458539211d0) / x)) / (1.0d0 / (x + (-2.0d0)))
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 = z + (x * (y + (x * (137.519416416 + (x * ((x * 4.16438922228) + 78.6994924154))))));
double tmp;
if ((((x - 2.0) * t_1) / t_0) <= 1e+296) {
tmp = t_1 * ((x + -2.0) / t_0);
} else {
tmp = (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)) / (1.0 / (x + -2.0));
}
return tmp;
}
def code(x, y, z): t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606 t_1 = z + (x * (y + (x * (137.519416416 + (x * ((x * 4.16438922228) + 78.6994924154)))))) tmp = 0 if (((x - 2.0) * t_1) / t_0) <= 1e+296: tmp = t_1 * ((x + -2.0) / t_0) else: tmp = (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)) / (1.0 / (x + -2.0)) 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(z + Float64(x * Float64(y + Float64(x * Float64(137.519416416 + Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154))))))) tmp = 0.0 if (Float64(Float64(Float64(x - 2.0) * t_1) / t_0) <= 1e+296) tmp = Float64(t_1 * Float64(Float64(x + -2.0) / t_0)); else tmp = Float64(Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(Float64(y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)) / Float64(1.0 / Float64(x + -2.0))); 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 = z + (x * (y + (x * (137.519416416 + (x * ((x * 4.16438922228) + 78.6994924154)))))); tmp = 0.0; if ((((x - 2.0) * t_1) / t_0) <= 1e+296) tmp = t_1 * ((x + -2.0) / t_0); else tmp = (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)) / (1.0 / (x + -2.0)); 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[(z + 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]), $MachinePrecision]}, If[LessEqual[N[(N[(N[(x - 2.0), $MachinePrecision] * t$95$1), $MachinePrecision] / t$95$0), $MachinePrecision], 1e+296], N[(t$95$1 * N[(N[(x + -2.0), $MachinePrecision] / t$95$0), $MachinePrecision]), $MachinePrecision], N[(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] / N[(1.0 / N[(x + -2.0), $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 := z + x \cdot \left(y + x \cdot \left(137.519416416 + x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right)\right)\right)\\
\mathbf{if}\;\frac{\left(x - 2\right) \cdot t\_1}{t\_0} \leq 10^{+296}:\\
\;\;\;\;t\_1 \cdot \frac{x + -2}{t\_0}\\
\mathbf{else}:\\
\;\;\;\;\frac{4.16438922228 + \frac{\frac{3451.550173699799 + \frac{y - 124074.40615218398}{x}}{x} - 101.7851458539211}{x}}{\frac{1}{x + -2}}\\
\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))) < 9.99999999999999981e295Initial program 97.2%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
Simplified98.7%
if 9.99999999999999981e295 < (/.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.1%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
Simplified0.1%
Applied egg-rr0.1%
div-invN/A
associate-/r*N/A
/-lowering-/.f64N/A
Applied egg-rr0.1%
Taylor expanded in x around -inf
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
Simplified99.0%
Final simplification98.8%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(/
(+
4.16438922228
(/
(-
(/ (+ 3451.550173699799 (/ (- y 124074.40615218398) x)) x)
101.7851458539211)
x))
(/ 1.0 (+ x -2.0)))))
(if (<= x -4e+37)
t_0
(if (<= x 6.2e+23)
(/
(* (- x 2.0) (+ z (* x (+ y (* x 137.519416416)))))
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))
t_0))))
double code(double x, double y, double z) {
double t_0 = (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)) / (1.0 / (x + -2.0));
double tmp;
if (x <= -4e+37) {
tmp = t_0;
} else if (x <= 6.2e+23) {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606);
} else {
tmp = t_0;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = (4.16438922228d0 + ((((3451.550173699799d0 + ((y - 124074.40615218398d0) / x)) / x) - 101.7851458539211d0) / x)) / (1.0d0 / (x + (-2.0d0)))
if (x <= (-4d+37)) then
tmp = t_0
else if (x <= 6.2d+23) then
tmp = ((x - 2.0d0) * (z + (x * (y + (x * 137.519416416d0))))) / ((x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0)
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)) / (1.0 / (x + -2.0));
double tmp;
if (x <= -4e+37) {
tmp = t_0;
} else if (x <= 6.2e+23) {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606);
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)) / (1.0 / (x + -2.0)) tmp = 0 if x <= -4e+37: tmp = t_0 elif x <= 6.2e+23: tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(Float64(y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)) / Float64(1.0 / Float64(x + -2.0))) tmp = 0.0 if (x <= -4e+37) tmp = t_0; elseif (x <= 6.2e+23) tmp = Float64(Float64(Float64(x - 2.0) * Float64(z + Float64(x * Float64(y + Float64(x * 137.519416416))))) / Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)) / (1.0 / (x + -2.0)); tmp = 0.0; if (x <= -4e+37) tmp = t_0; elseif (x <= 6.2e+23) tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606); else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(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] / N[(1.0 / N[(x + -2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -4e+37], t$95$0, If[LessEqual[x, 6.2e+23], N[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + N[(x * N[(y + N[(x * 137.519416416), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision], t$95$0]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{4.16438922228 + \frac{\frac{3451.550173699799 + \frac{y - 124074.40615218398}{x}}{x} - 101.7851458539211}{x}}{\frac{1}{x + -2}}\\
\mathbf{if}\;x \leq -4 \cdot 10^{+37}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 6.2 \cdot 10^{+23}:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot \left(y + x \cdot 137.519416416\right)\right)}{x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606}\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if x < -3.99999999999999982e37 or 6.19999999999999941e23 < x Initial program 9.7%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
Simplified12.5%
Applied egg-rr12.5%
div-invN/A
associate-/r*N/A
/-lowering-/.f64N/A
Applied egg-rr12.5%
Taylor expanded in x around -inf
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
Simplified96.4%
if -3.99999999999999982e37 < x < 6.19999999999999941e23Initial program 99.6%
Taylor expanded in x around 0
*-commutativeN/A
*-lowering-*.f6498.0%
Simplified98.0%
Final simplification97.3%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(/
(+
4.16438922228
(/
(-
(/ (+ 3451.550173699799 (/ (- y 124074.40615218398) x)) x)
101.7851458539211)
x))
(/ 1.0 (+ x -2.0)))))
(if (<= x -6.2e+37)
t_0
(if (<= x 3.8e+18)
(*
(/
(+ 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 = (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)) / (1.0 / (x + -2.0));
double tmp;
if (x <= -6.2e+37) {
tmp = t_0;
} else if (x <= 3.8e+18) {
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 = (4.16438922228d0 + ((((3451.550173699799d0 + ((y - 124074.40615218398d0) / x)) / x) - 101.7851458539211d0) / x)) / (1.0d0 / (x + (-2.0d0)))
if (x <= (-6.2d+37)) then
tmp = t_0
else if (x <= 3.8d+18) 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 = (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)) / (1.0 / (x + -2.0));
double tmp;
if (x <= -6.2e+37) {
tmp = t_0;
} else if (x <= 3.8e+18) {
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 = (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)) / (1.0 / (x + -2.0)) tmp = 0 if x <= -6.2e+37: tmp = t_0 elif x <= 3.8e+18: 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(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(Float64(y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)) / Float64(1.0 / Float64(x + -2.0))) tmp = 0.0 if (x <= -6.2e+37) tmp = t_0; elseif (x <= 3.8e+18) 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 = (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)) / (1.0 / (x + -2.0)); tmp = 0.0; if (x <= -6.2e+37) tmp = t_0; elseif (x <= 3.8e+18) 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[(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] / N[(1.0 / N[(x + -2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -6.2e+37], t$95$0, If[LessEqual[x, 3.8e+18], 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 := \frac{4.16438922228 + \frac{\frac{3451.550173699799 + \frac{y - 124074.40615218398}{x}}{x} - 101.7851458539211}{x}}{\frac{1}{x + -2}}\\
\mathbf{if}\;x \leq -6.2 \cdot 10^{+37}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 3.8 \cdot 10^{+18}:\\
\;\;\;\;\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 < -6.2000000000000004e37 or 3.8e18 < x Initial program 9.7%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
Simplified12.5%
Applied egg-rr12.5%
div-invN/A
associate-/r*N/A
/-lowering-/.f64N/A
Applied egg-rr12.5%
Taylor expanded in x around -inf
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
Simplified96.4%
if -6.2000000000000004e37 < x < 3.8e18Initial program 99.6%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
Simplified99.3%
Taylor expanded in x around 0
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6497.7%
Simplified97.7%
Final simplification97.2%
(FPCore (x y z)
:precision binary64
(if (<= x -350.0)
(*
x
(-
(/
(+
-110.1139242984811
(/ (- (- (/ y x) (/ 130977.50649958357 x)) -3655.1204654076414) x))
x)
-4.16438922228))
(if (<= x 2.0)
(/
(+
z
(*
x
(+
y
(* x (+ 137.519416416 (* x (+ (* x 4.16438922228) 78.6994924154)))))))
(+ (* x (+ (* x -215.98570090975) -168.4663270985)) -23.533438303))
(/
(+
4.16438922228
(/
(-
(/ (+ 3451.550173699799 (/ (- y 124074.40615218398) x)) x)
101.7851458539211)
x))
(/ 1.0 (+ x -2.0))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -350.0) {
tmp = x * (((-110.1139242984811 + ((((y / x) - (130977.50649958357 / x)) - -3655.1204654076414) / x)) / x) - -4.16438922228);
} else if (x <= 2.0) {
tmp = (z + (x * (y + (x * (137.519416416 + (x * ((x * 4.16438922228) + 78.6994924154))))))) / ((x * ((x * -215.98570090975) + -168.4663270985)) + -23.533438303);
} else {
tmp = (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)) / (1.0 / (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 <= (-350.0d0)) then
tmp = x * ((((-110.1139242984811d0) + ((((y / x) - (130977.50649958357d0 / x)) - (-3655.1204654076414d0)) / x)) / x) - (-4.16438922228d0))
else if (x <= 2.0d0) then
tmp = (z + (x * (y + (x * (137.519416416d0 + (x * ((x * 4.16438922228d0) + 78.6994924154d0))))))) / ((x * ((x * (-215.98570090975d0)) + (-168.4663270985d0))) + (-23.533438303d0))
else
tmp = (4.16438922228d0 + ((((3451.550173699799d0 + ((y - 124074.40615218398d0) / x)) / x) - 101.7851458539211d0) / x)) / (1.0d0 / (x + (-2.0d0)))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -350.0) {
tmp = x * (((-110.1139242984811 + ((((y / x) - (130977.50649958357 / x)) - -3655.1204654076414) / x)) / x) - -4.16438922228);
} else if (x <= 2.0) {
tmp = (z + (x * (y + (x * (137.519416416 + (x * ((x * 4.16438922228) + 78.6994924154))))))) / ((x * ((x * -215.98570090975) + -168.4663270985)) + -23.533438303);
} else {
tmp = (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)) / (1.0 / (x + -2.0));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -350.0: tmp = x * (((-110.1139242984811 + ((((y / x) - (130977.50649958357 / x)) - -3655.1204654076414) / x)) / x) - -4.16438922228) elif x <= 2.0: tmp = (z + (x * (y + (x * (137.519416416 + (x * ((x * 4.16438922228) + 78.6994924154))))))) / ((x * ((x * -215.98570090975) + -168.4663270985)) + -23.533438303) else: tmp = (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)) / (1.0 / (x + -2.0)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -350.0) tmp = Float64(x * Float64(Float64(Float64(-110.1139242984811 + Float64(Float64(Float64(Float64(y / x) - Float64(130977.50649958357 / x)) - -3655.1204654076414) / x)) / x) - -4.16438922228)); elseif (x <= 2.0) tmp = Float64(Float64(z + Float64(x * Float64(y + Float64(x * Float64(137.519416416 + Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154))))))) / Float64(Float64(x * Float64(Float64(x * -215.98570090975) + -168.4663270985)) + -23.533438303)); else tmp = Float64(Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(Float64(y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)) / Float64(1.0 / Float64(x + -2.0))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -350.0) tmp = x * (((-110.1139242984811 + ((((y / x) - (130977.50649958357 / x)) - -3655.1204654076414) / x)) / x) - -4.16438922228); elseif (x <= 2.0) tmp = (z + (x * (y + (x * (137.519416416 + (x * ((x * 4.16438922228) + 78.6994924154))))))) / ((x * ((x * -215.98570090975) + -168.4663270985)) + -23.533438303); else tmp = (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)) / (1.0 / (x + -2.0)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -350.0], N[(x * N[(N[(N[(-110.1139242984811 + N[(N[(N[(N[(y / x), $MachinePrecision] - N[(130977.50649958357 / x), $MachinePrecision]), $MachinePrecision] - -3655.1204654076414), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - -4.16438922228), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.0], N[(N[(z + 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]), $MachinePrecision] / N[(N[(x * N[(N[(x * -215.98570090975), $MachinePrecision] + -168.4663270985), $MachinePrecision]), $MachinePrecision] + -23.533438303), $MachinePrecision]), $MachinePrecision], N[(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] / N[(1.0 / N[(x + -2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -350:\\
\;\;\;\;x \cdot \left(\frac{-110.1139242984811 + \frac{\left(\frac{y}{x} - \frac{130977.50649958357}{x}\right) - -3655.1204654076414}{x}}{x} - -4.16438922228\right)\\
\mathbf{elif}\;x \leq 2:\\
\;\;\;\;\frac{z + x \cdot \left(y + x \cdot \left(137.519416416 + x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right)\right)\right)}{x \cdot \left(x \cdot -215.98570090975 + -168.4663270985\right) + -23.533438303}\\
\mathbf{else}:\\
\;\;\;\;\frac{4.16438922228 + \frac{\frac{3451.550173699799 + \frac{y - 124074.40615218398}{x}}{x} - 101.7851458539211}{x}}{\frac{1}{x + -2}}\\
\end{array}
\end{array}
if x < -350Initial program 14.5%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
Simplified17.6%
Taylor expanded in x around -inf
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
Simplified95.1%
if -350 < x < 2Initial program 99.6%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
Simplified99.3%
Applied egg-rr99.7%
Taylor expanded in x around 0
sub-negN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
metadata-eval98.2%
Simplified98.2%
if 2 < x Initial program 24.0%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
Simplified25.8%
Applied egg-rr25.7%
div-invN/A
associate-/r*N/A
/-lowering-/.f64N/A
Applied egg-rr25.7%
Taylor expanded in x around -inf
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
Simplified89.5%
Final simplification95.6%
(FPCore (x y z)
:precision binary64
(if (<= x -1.35)
(*
x
(-
(/
(+
-110.1139242984811
(/ (- (- (/ y x) (/ 130977.50649958357 x)) -3655.1204654076414) x))
x)
-4.16438922228))
(if (<= x 2.0)
(/
(+
z
(*
x
(+
y
(* x (+ 137.519416416 (* x (+ (* x 4.16438922228) 78.6994924154)))))))
(+ -23.533438303 (* x -168.4663270985)))
(/
(+
4.16438922228
(/
(-
(/ (+ 3451.550173699799 (/ (- y 124074.40615218398) x)) x)
101.7851458539211)
x))
(/ 1.0 (+ x -2.0))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -1.35) {
tmp = x * (((-110.1139242984811 + ((((y / x) - (130977.50649958357 / x)) - -3655.1204654076414) / x)) / x) - -4.16438922228);
} else if (x <= 2.0) {
tmp = (z + (x * (y + (x * (137.519416416 + (x * ((x * 4.16438922228) + 78.6994924154))))))) / (-23.533438303 + (x * -168.4663270985));
} else {
tmp = (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)) / (1.0 / (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 <= (-1.35d0)) then
tmp = x * ((((-110.1139242984811d0) + ((((y / x) - (130977.50649958357d0 / x)) - (-3655.1204654076414d0)) / x)) / x) - (-4.16438922228d0))
else if (x <= 2.0d0) then
tmp = (z + (x * (y + (x * (137.519416416d0 + (x * ((x * 4.16438922228d0) + 78.6994924154d0))))))) / ((-23.533438303d0) + (x * (-168.4663270985d0)))
else
tmp = (4.16438922228d0 + ((((3451.550173699799d0 + ((y - 124074.40615218398d0) / x)) / x) - 101.7851458539211d0) / x)) / (1.0d0 / (x + (-2.0d0)))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -1.35) {
tmp = x * (((-110.1139242984811 + ((((y / x) - (130977.50649958357 / x)) - -3655.1204654076414) / x)) / x) - -4.16438922228);
} else if (x <= 2.0) {
tmp = (z + (x * (y + (x * (137.519416416 + (x * ((x * 4.16438922228) + 78.6994924154))))))) / (-23.533438303 + (x * -168.4663270985));
} else {
tmp = (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)) / (1.0 / (x + -2.0));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -1.35: tmp = x * (((-110.1139242984811 + ((((y / x) - (130977.50649958357 / x)) - -3655.1204654076414) / x)) / x) - -4.16438922228) elif x <= 2.0: tmp = (z + (x * (y + (x * (137.519416416 + (x * ((x * 4.16438922228) + 78.6994924154))))))) / (-23.533438303 + (x * -168.4663270985)) else: tmp = (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)) / (1.0 / (x + -2.0)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -1.35) tmp = Float64(x * Float64(Float64(Float64(-110.1139242984811 + Float64(Float64(Float64(Float64(y / x) - Float64(130977.50649958357 / x)) - -3655.1204654076414) / x)) / x) - -4.16438922228)); elseif (x <= 2.0) tmp = Float64(Float64(z + Float64(x * Float64(y + Float64(x * Float64(137.519416416 + Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154))))))) / Float64(-23.533438303 + Float64(x * -168.4663270985))); else tmp = Float64(Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(Float64(y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)) / Float64(1.0 / Float64(x + -2.0))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -1.35) tmp = x * (((-110.1139242984811 + ((((y / x) - (130977.50649958357 / x)) - -3655.1204654076414) / x)) / x) - -4.16438922228); elseif (x <= 2.0) tmp = (z + (x * (y + (x * (137.519416416 + (x * ((x * 4.16438922228) + 78.6994924154))))))) / (-23.533438303 + (x * -168.4663270985)); else tmp = (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)) / (1.0 / (x + -2.0)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -1.35], N[(x * N[(N[(N[(-110.1139242984811 + N[(N[(N[(N[(y / x), $MachinePrecision] - N[(130977.50649958357 / x), $MachinePrecision]), $MachinePrecision] - -3655.1204654076414), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - -4.16438922228), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.0], N[(N[(z + 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]), $MachinePrecision] / N[(-23.533438303 + N[(x * -168.4663270985), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(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] / N[(1.0 / N[(x + -2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.35:\\
\;\;\;\;x \cdot \left(\frac{-110.1139242984811 + \frac{\left(\frac{y}{x} - \frac{130977.50649958357}{x}\right) - -3655.1204654076414}{x}}{x} - -4.16438922228\right)\\
\mathbf{elif}\;x \leq 2:\\
\;\;\;\;\frac{z + x \cdot \left(y + x \cdot \left(137.519416416 + x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right)\right)\right)}{-23.533438303 + x \cdot -168.4663270985}\\
\mathbf{else}:\\
\;\;\;\;\frac{4.16438922228 + \frac{\frac{3451.550173699799 + \frac{y - 124074.40615218398}{x}}{x} - 101.7851458539211}{x}}{\frac{1}{x + -2}}\\
\end{array}
\end{array}
if x < -1.3500000000000001Initial program 14.5%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
Simplified17.6%
Taylor expanded in x around -inf
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
Simplified95.1%
if -1.3500000000000001 < x < 2Initial program 99.6%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
Simplified99.3%
Applied egg-rr99.7%
Taylor expanded in x around 0
sub-negN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
metadata-eval97.9%
Simplified97.9%
if 2 < x Initial program 24.0%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
Simplified25.8%
Applied egg-rr25.7%
div-invN/A
associate-/r*N/A
/-lowering-/.f64N/A
Applied egg-rr25.7%
Taylor expanded in x around -inf
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
Simplified89.5%
Final simplification95.4%
(FPCore (x y z)
:precision binary64
(if (<= x -0.18)
(*
x
(-
(/
(+
-110.1139242984811
(/ (- (- (/ y x) (/ 130977.50649958357 x)) -3655.1204654076414) x))
x)
-4.16438922228))
(if (<= x 66000000.0)
(*
(+
z
(*
x
(+
y
(* x (+ 137.519416416 (* x (+ (* x 4.16438922228) 78.6994924154)))))))
(+ -0.0424927283095952 (* x 0.3041881842569256)))
(/
(+
4.16438922228
(/
(-
(/ (+ 3451.550173699799 (/ (- y 124074.40615218398) x)) x)
101.7851458539211)
x))
(/ 1.0 (+ x -2.0))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -0.18) {
tmp = x * (((-110.1139242984811 + ((((y / x) - (130977.50649958357 / x)) - -3655.1204654076414) / x)) / x) - -4.16438922228);
} else if (x <= 66000000.0) {
tmp = (z + (x * (y + (x * (137.519416416 + (x * ((x * 4.16438922228) + 78.6994924154))))))) * (-0.0424927283095952 + (x * 0.3041881842569256));
} else {
tmp = (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)) / (1.0 / (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 * ((((-110.1139242984811d0) + ((((y / x) - (130977.50649958357d0 / x)) - (-3655.1204654076414d0)) / x)) / x) - (-4.16438922228d0))
else if (x <= 66000000.0d0) then
tmp = (z + (x * (y + (x * (137.519416416d0 + (x * ((x * 4.16438922228d0) + 78.6994924154d0))))))) * ((-0.0424927283095952d0) + (x * 0.3041881842569256d0))
else
tmp = (4.16438922228d0 + ((((3451.550173699799d0 + ((y - 124074.40615218398d0) / x)) / x) - 101.7851458539211d0) / x)) / (1.0d0 / (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 * (((-110.1139242984811 + ((((y / x) - (130977.50649958357 / x)) - -3655.1204654076414) / x)) / x) - -4.16438922228);
} else if (x <= 66000000.0) {
tmp = (z + (x * (y + (x * (137.519416416 + (x * ((x * 4.16438922228) + 78.6994924154))))))) * (-0.0424927283095952 + (x * 0.3041881842569256));
} else {
tmp = (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)) / (1.0 / (x + -2.0));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -0.18: tmp = x * (((-110.1139242984811 + ((((y / x) - (130977.50649958357 / x)) - -3655.1204654076414) / x)) / x) - -4.16438922228) elif x <= 66000000.0: tmp = (z + (x * (y + (x * (137.519416416 + (x * ((x * 4.16438922228) + 78.6994924154))))))) * (-0.0424927283095952 + (x * 0.3041881842569256)) else: tmp = (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)) / (1.0 / (x + -2.0)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -0.18) tmp = Float64(x * Float64(Float64(Float64(-110.1139242984811 + Float64(Float64(Float64(Float64(y / x) - Float64(130977.50649958357 / x)) - -3655.1204654076414) / x)) / x) - -4.16438922228)); elseif (x <= 66000000.0) tmp = Float64(Float64(z + Float64(x * Float64(y + Float64(x * Float64(137.519416416 + Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154))))))) * Float64(-0.0424927283095952 + Float64(x * 0.3041881842569256))); else tmp = Float64(Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(Float64(y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)) / Float64(1.0 / Float64(x + -2.0))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -0.18) tmp = x * (((-110.1139242984811 + ((((y / x) - (130977.50649958357 / x)) - -3655.1204654076414) / x)) / x) - -4.16438922228); elseif (x <= 66000000.0) tmp = (z + (x * (y + (x * (137.519416416 + (x * ((x * 4.16438922228) + 78.6994924154))))))) * (-0.0424927283095952 + (x * 0.3041881842569256)); else tmp = (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)) / (1.0 / (x + -2.0)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -0.18], N[(x * N[(N[(N[(-110.1139242984811 + N[(N[(N[(N[(y / x), $MachinePrecision] - N[(130977.50649958357 / x), $MachinePrecision]), $MachinePrecision] - -3655.1204654076414), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - -4.16438922228), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 66000000.0], N[(N[(z + 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]), $MachinePrecision] * N[(-0.0424927283095952 + N[(x * 0.3041881842569256), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(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] / N[(1.0 / N[(x + -2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -0.18:\\
\;\;\;\;x \cdot \left(\frac{-110.1139242984811 + \frac{\left(\frac{y}{x} - \frac{130977.50649958357}{x}\right) - -3655.1204654076414}{x}}{x} - -4.16438922228\right)\\
\mathbf{elif}\;x \leq 66000000:\\
\;\;\;\;\left(z + x \cdot \left(y + x \cdot \left(137.519416416 + x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right)\right)\right)\right) \cdot \left(-0.0424927283095952 + x \cdot 0.3041881842569256\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{4.16438922228 + \frac{\frac{3451.550173699799 + \frac{y - 124074.40615218398}{x}}{x} - 101.7851458539211}{x}}{\frac{1}{x + -2}}\\
\end{array}
\end{array}
if x < -0.17999999999999999Initial program 15.8%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
Simplified18.9%
Taylor expanded in x around -inf
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
Simplified93.7%
if -0.17999999999999999 < x < 6.6e7Initial program 99.7%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
Simplified99.3%
Taylor expanded in x around 0
sub-negN/A
metadata-evalN/A
+-commutativeN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6497.4%
Simplified97.4%
if 6.6e7 < x Initial program 22.5%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
Simplified24.4%
Applied egg-rr24.3%
div-invN/A
associate-/r*N/A
/-lowering-/.f64N/A
Applied egg-rr24.3%
Taylor expanded in x around -inf
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
Simplified91.0%
Final simplification95.2%
(FPCore (x y z)
:precision binary64
(if (<= x -0.18)
(*
x
(-
(/
(+
-110.1139242984811
(/ (- (- (/ y x) (/ 130977.50649958357 x)) -3655.1204654076414) x))
x)
-4.16438922228))
(if (<= x 2.0)
(/
(+
z
(*
x
(+
y
(* x (+ 137.519416416 (* x (+ (* x 4.16438922228) 78.6994924154)))))))
-23.533438303)
(/
(+
4.16438922228
(/
(-
(/ (+ 3451.550173699799 (/ (- y 124074.40615218398) x)) x)
101.7851458539211)
x))
(/ 1.0 (+ x -2.0))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -0.18) {
tmp = x * (((-110.1139242984811 + ((((y / x) - (130977.50649958357 / x)) - -3655.1204654076414) / x)) / x) - -4.16438922228);
} else if (x <= 2.0) {
tmp = (z + (x * (y + (x * (137.519416416 + (x * ((x * 4.16438922228) + 78.6994924154))))))) / -23.533438303;
} else {
tmp = (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)) / (1.0 / (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 * ((((-110.1139242984811d0) + ((((y / x) - (130977.50649958357d0 / x)) - (-3655.1204654076414d0)) / x)) / x) - (-4.16438922228d0))
else if (x <= 2.0d0) then
tmp = (z + (x * (y + (x * (137.519416416d0 + (x * ((x * 4.16438922228d0) + 78.6994924154d0))))))) / (-23.533438303d0)
else
tmp = (4.16438922228d0 + ((((3451.550173699799d0 + ((y - 124074.40615218398d0) / x)) / x) - 101.7851458539211d0) / x)) / (1.0d0 / (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 * (((-110.1139242984811 + ((((y / x) - (130977.50649958357 / x)) - -3655.1204654076414) / x)) / x) - -4.16438922228);
} else if (x <= 2.0) {
tmp = (z + (x * (y + (x * (137.519416416 + (x * ((x * 4.16438922228) + 78.6994924154))))))) / -23.533438303;
} else {
tmp = (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)) / (1.0 / (x + -2.0));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -0.18: tmp = x * (((-110.1139242984811 + ((((y / x) - (130977.50649958357 / x)) - -3655.1204654076414) / x)) / x) - -4.16438922228) elif x <= 2.0: tmp = (z + (x * (y + (x * (137.519416416 + (x * ((x * 4.16438922228) + 78.6994924154))))))) / -23.533438303 else: tmp = (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)) / (1.0 / (x + -2.0)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -0.18) tmp = Float64(x * Float64(Float64(Float64(-110.1139242984811 + Float64(Float64(Float64(Float64(y / x) - Float64(130977.50649958357 / x)) - -3655.1204654076414) / x)) / x) - -4.16438922228)); elseif (x <= 2.0) tmp = Float64(Float64(z + Float64(x * Float64(y + Float64(x * Float64(137.519416416 + Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154))))))) / -23.533438303); else tmp = Float64(Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(Float64(y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)) / Float64(1.0 / Float64(x + -2.0))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -0.18) tmp = x * (((-110.1139242984811 + ((((y / x) - (130977.50649958357 / x)) - -3655.1204654076414) / x)) / x) - -4.16438922228); elseif (x <= 2.0) tmp = (z + (x * (y + (x * (137.519416416 + (x * ((x * 4.16438922228) + 78.6994924154))))))) / -23.533438303; else tmp = (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)) / (1.0 / (x + -2.0)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -0.18], N[(x * N[(N[(N[(-110.1139242984811 + N[(N[(N[(N[(y / x), $MachinePrecision] - N[(130977.50649958357 / x), $MachinePrecision]), $MachinePrecision] - -3655.1204654076414), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - -4.16438922228), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.0], N[(N[(z + 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]), $MachinePrecision] / -23.533438303), $MachinePrecision], N[(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] / N[(1.0 / N[(x + -2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -0.18:\\
\;\;\;\;x \cdot \left(\frac{-110.1139242984811 + \frac{\left(\frac{y}{x} - \frac{130977.50649958357}{x}\right) - -3655.1204654076414}{x}}{x} - -4.16438922228\right)\\
\mathbf{elif}\;x \leq 2:\\
\;\;\;\;\frac{z + x \cdot \left(y + x \cdot \left(137.519416416 + x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right)\right)\right)}{-23.533438303}\\
\mathbf{else}:\\
\;\;\;\;\frac{4.16438922228 + \frac{\frac{3451.550173699799 + \frac{y - 124074.40615218398}{x}}{x} - 101.7851458539211}{x}}{\frac{1}{x + -2}}\\
\end{array}
\end{array}
if x < -0.17999999999999999Initial program 15.8%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
Simplified18.9%
Taylor expanded in x around -inf
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
Simplified93.7%
if -0.17999999999999999 < x < 2Initial program 99.7%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
Simplified99.3%
Applied egg-rr99.7%
Taylor expanded in x around 0
Simplified97.7%
if 2 < x Initial program 24.0%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
Simplified25.8%
Applied egg-rr25.7%
div-invN/A
associate-/r*N/A
/-lowering-/.f64N/A
Applied egg-rr25.7%
Taylor expanded in x around -inf
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
Simplified89.5%
Final simplification95.0%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(*
x
(-
(/
(+
-110.1139242984811
(/
(- (- (/ y x) (/ 130977.50649958357 x)) -3655.1204654076414)
x))
x)
-4.16438922228))))
(if (<= x -0.18)
t_0
(if (<= x 2.0)
(/
(+
z
(*
x
(+
y
(*
x
(+ 137.519416416 (* x (+ (* x 4.16438922228) 78.6994924154)))))))
-23.533438303)
t_0))))
double code(double x, double y, double z) {
double t_0 = x * (((-110.1139242984811 + ((((y / x) - (130977.50649958357 / x)) - -3655.1204654076414) / x)) / x) - -4.16438922228);
double tmp;
if (x <= -0.18) {
tmp = t_0;
} else if (x <= 2.0) {
tmp = (z + (x * (y + (x * (137.519416416 + (x * ((x * 4.16438922228) + 78.6994924154))))))) / -23.533438303;
} 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 * ((((-110.1139242984811d0) + ((((y / x) - (130977.50649958357d0 / x)) - (-3655.1204654076414d0)) / x)) / x) - (-4.16438922228d0))
if (x <= (-0.18d0)) then
tmp = t_0
else if (x <= 2.0d0) then
tmp = (z + (x * (y + (x * (137.519416416d0 + (x * ((x * 4.16438922228d0) + 78.6994924154d0))))))) / (-23.533438303d0)
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = x * (((-110.1139242984811 + ((((y / x) - (130977.50649958357 / x)) - -3655.1204654076414) / x)) / x) - -4.16438922228);
double tmp;
if (x <= -0.18) {
tmp = t_0;
} else if (x <= 2.0) {
tmp = (z + (x * (y + (x * (137.519416416 + (x * ((x * 4.16438922228) + 78.6994924154))))))) / -23.533438303;
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = x * (((-110.1139242984811 + ((((y / x) - (130977.50649958357 / x)) - -3655.1204654076414) / x)) / x) - -4.16438922228) tmp = 0 if x <= -0.18: tmp = t_0 elif x <= 2.0: tmp = (z + (x * (y + (x * (137.519416416 + (x * ((x * 4.16438922228) + 78.6994924154))))))) / -23.533438303 else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(x * Float64(Float64(Float64(-110.1139242984811 + Float64(Float64(Float64(Float64(y / x) - Float64(130977.50649958357 / x)) - -3655.1204654076414) / x)) / x) - -4.16438922228)) tmp = 0.0 if (x <= -0.18) tmp = t_0; elseif (x <= 2.0) tmp = Float64(Float64(z + Float64(x * Float64(y + Float64(x * Float64(137.519416416 + Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154))))))) / -23.533438303); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = x * (((-110.1139242984811 + ((((y / x) - (130977.50649958357 / x)) - -3655.1204654076414) / x)) / x) - -4.16438922228); tmp = 0.0; if (x <= -0.18) tmp = t_0; elseif (x <= 2.0) tmp = (z + (x * (y + (x * (137.519416416 + (x * ((x * 4.16438922228) + 78.6994924154))))))) / -23.533438303; else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(x * N[(N[(N[(-110.1139242984811 + N[(N[(N[(N[(y / x), $MachinePrecision] - N[(130977.50649958357 / x), $MachinePrecision]), $MachinePrecision] - -3655.1204654076414), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - -4.16438922228), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -0.18], t$95$0, If[LessEqual[x, 2.0], N[(N[(z + 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]), $MachinePrecision] / -23.533438303), $MachinePrecision], t$95$0]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(\frac{-110.1139242984811 + \frac{\left(\frac{y}{x} - \frac{130977.50649958357}{x}\right) - -3655.1204654076414}{x}}{x} - -4.16438922228\right)\\
\mathbf{if}\;x \leq -0.18:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 2:\\
\;\;\;\;\frac{z + x \cdot \left(y + x \cdot \left(137.519416416 + x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right)\right)\right)}{-23.533438303}\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if x < -0.17999999999999999 or 2 < x Initial program 19.6%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
Simplified22.1%
Taylor expanded in x around -inf
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
Simplified91.7%
if -0.17999999999999999 < x < 2Initial program 99.7%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
Simplified99.3%
Applied egg-rr99.7%
Taylor expanded in x around 0
Simplified97.7%
Final simplification95.0%
(FPCore (x y z)
:precision binary64
(if (<= x -3.8e+16)
(* x 4.16438922228)
(if (<= x 2.0)
(/
(+
z
(*
x
(+
y
(* x (+ 137.519416416 (* x (+ (* x 4.16438922228) 78.6994924154)))))))
-23.533438303)
(/
(- 4.16438922228 (/ (+ 101.7851458539211 (/ -3451.550173699799 x)) x))
(/ 1.0 (+ x -2.0))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -3.8e+16) {
tmp = x * 4.16438922228;
} else if (x <= 2.0) {
tmp = (z + (x * (y + (x * (137.519416416 + (x * ((x * 4.16438922228) + 78.6994924154))))))) / -23.533438303;
} else {
tmp = (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x)) / (1.0 / (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 <= (-3.8d+16)) then
tmp = x * 4.16438922228d0
else if (x <= 2.0d0) then
tmp = (z + (x * (y + (x * (137.519416416d0 + (x * ((x * 4.16438922228d0) + 78.6994924154d0))))))) / (-23.533438303d0)
else
tmp = (4.16438922228d0 - ((101.7851458539211d0 + ((-3451.550173699799d0) / x)) / x)) / (1.0d0 / (x + (-2.0d0)))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -3.8e+16) {
tmp = x * 4.16438922228;
} else if (x <= 2.0) {
tmp = (z + (x * (y + (x * (137.519416416 + (x * ((x * 4.16438922228) + 78.6994924154))))))) / -23.533438303;
} else {
tmp = (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x)) / (1.0 / (x + -2.0));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -3.8e+16: tmp = x * 4.16438922228 elif x <= 2.0: tmp = (z + (x * (y + (x * (137.519416416 + (x * ((x * 4.16438922228) + 78.6994924154))))))) / -23.533438303 else: tmp = (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x)) / (1.0 / (x + -2.0)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -3.8e+16) tmp = Float64(x * 4.16438922228); elseif (x <= 2.0) tmp = Float64(Float64(z + Float64(x * Float64(y + Float64(x * Float64(137.519416416 + Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154))))))) / -23.533438303); else tmp = Float64(Float64(4.16438922228 - Float64(Float64(101.7851458539211 + Float64(-3451.550173699799 / x)) / x)) / Float64(1.0 / Float64(x + -2.0))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -3.8e+16) tmp = x * 4.16438922228; elseif (x <= 2.0) tmp = (z + (x * (y + (x * (137.519416416 + (x * ((x * 4.16438922228) + 78.6994924154))))))) / -23.533438303; else tmp = (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x)) / (1.0 / (x + -2.0)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -3.8e+16], N[(x * 4.16438922228), $MachinePrecision], If[LessEqual[x, 2.0], N[(N[(z + 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]), $MachinePrecision] / -23.533438303), $MachinePrecision], N[(N[(4.16438922228 - N[(N[(101.7851458539211 + N[(-3451.550173699799 / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / N[(1.0 / N[(x + -2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -3.8 \cdot 10^{+16}:\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{elif}\;x \leq 2:\\
\;\;\;\;\frac{z + x \cdot \left(y + x \cdot \left(137.519416416 + x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right)\right)\right)}{-23.533438303}\\
\mathbf{else}:\\
\;\;\;\;\frac{4.16438922228 - \frac{101.7851458539211 + \frac{-3451.550173699799}{x}}{x}}{\frac{1}{x + -2}}\\
\end{array}
\end{array}
if x < -3.8e16Initial program 11.7%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
Simplified14.9%
Taylor expanded in x around inf
*-commutativeN/A
*-lowering-*.f6491.0%
Simplified91.0%
if -3.8e16 < x < 2Initial program 99.6%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
Simplified99.3%
Applied egg-rr99.7%
Taylor expanded in x around 0
Simplified95.8%
if 2 < x Initial program 24.0%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
Simplified25.8%
Applied egg-rr25.7%
div-invN/A
associate-/r*N/A
/-lowering-/.f64N/A
Applied egg-rr25.7%
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-eval77.9%
Simplified77.9%
Final simplification90.9%
(FPCore (x y z)
:precision binary64
(if (<= x -3.8e+16)
(* x 4.16438922228)
(if (<= x 2.0)
(*
(+
z
(*
x
(+
y
(* x (+ 137.519416416 (* x (+ (* x 4.16438922228) 78.6994924154)))))))
-0.0424927283095952)
(/
(- 4.16438922228 (/ (+ 101.7851458539211 (/ -3451.550173699799 x)) x))
(/ 1.0 (+ x -2.0))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -3.8e+16) {
tmp = x * 4.16438922228;
} else if (x <= 2.0) {
tmp = (z + (x * (y + (x * (137.519416416 + (x * ((x * 4.16438922228) + 78.6994924154))))))) * -0.0424927283095952;
} else {
tmp = (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x)) / (1.0 / (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 <= (-3.8d+16)) then
tmp = x * 4.16438922228d0
else if (x <= 2.0d0) then
tmp = (z + (x * (y + (x * (137.519416416d0 + (x * ((x * 4.16438922228d0) + 78.6994924154d0))))))) * (-0.0424927283095952d0)
else
tmp = (4.16438922228d0 - ((101.7851458539211d0 + ((-3451.550173699799d0) / x)) / x)) / (1.0d0 / (x + (-2.0d0)))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -3.8e+16) {
tmp = x * 4.16438922228;
} else if (x <= 2.0) {
tmp = (z + (x * (y + (x * (137.519416416 + (x * ((x * 4.16438922228) + 78.6994924154))))))) * -0.0424927283095952;
} else {
tmp = (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x)) / (1.0 / (x + -2.0));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -3.8e+16: tmp = x * 4.16438922228 elif x <= 2.0: tmp = (z + (x * (y + (x * (137.519416416 + (x * ((x * 4.16438922228) + 78.6994924154))))))) * -0.0424927283095952 else: tmp = (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x)) / (1.0 / (x + -2.0)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -3.8e+16) tmp = Float64(x * 4.16438922228); elseif (x <= 2.0) tmp = Float64(Float64(z + Float64(x * Float64(y + Float64(x * Float64(137.519416416 + Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154))))))) * -0.0424927283095952); else tmp = Float64(Float64(4.16438922228 - Float64(Float64(101.7851458539211 + Float64(-3451.550173699799 / x)) / x)) / Float64(1.0 / Float64(x + -2.0))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -3.8e+16) tmp = x * 4.16438922228; elseif (x <= 2.0) tmp = (z + (x * (y + (x * (137.519416416 + (x * ((x * 4.16438922228) + 78.6994924154))))))) * -0.0424927283095952; else tmp = (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x)) / (1.0 / (x + -2.0)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -3.8e+16], N[(x * 4.16438922228), $MachinePrecision], If[LessEqual[x, 2.0], N[(N[(z + 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]), $MachinePrecision] * -0.0424927283095952), $MachinePrecision], N[(N[(4.16438922228 - N[(N[(101.7851458539211 + N[(-3451.550173699799 / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / N[(1.0 / N[(x + -2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -3.8 \cdot 10^{+16}:\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{elif}\;x \leq 2:\\
\;\;\;\;\left(z + x \cdot \left(y + x \cdot \left(137.519416416 + x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right)\right)\right)\right) \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;\frac{4.16438922228 - \frac{101.7851458539211 + \frac{-3451.550173699799}{x}}{x}}{\frac{1}{x + -2}}\\
\end{array}
\end{array}
if x < -3.8e16Initial program 11.7%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
Simplified14.9%
Taylor expanded in x around inf
*-commutativeN/A
*-lowering-*.f6491.0%
Simplified91.0%
if -3.8e16 < x < 2Initial program 99.6%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
Simplified99.3%
Taylor expanded in x around 0
Simplified95.4%
if 2 < x Initial program 24.0%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
Simplified25.8%
Applied egg-rr25.7%
div-invN/A
associate-/r*N/A
/-lowering-/.f64N/A
Applied egg-rr25.7%
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-eval77.9%
Simplified77.9%
Final simplification90.7%
(FPCore (x y z)
:precision binary64
(if (<= x -3.8e+16)
(* x 4.16438922228)
(if (<= x 66000000.0)
(+
(* z -0.0424927283095952)
(*
x
(+ (* 0.0212463641547976 (+ z (* y -2.0))) (* z 0.28294182010212804))))
(/
(- 4.16438922228 (/ (+ 101.7851458539211 (/ -3451.550173699799 x)) x))
(/ 1.0 (+ x -2.0))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -3.8e+16) {
tmp = x * 4.16438922228;
} else if (x <= 66000000.0) {
tmp = (z * -0.0424927283095952) + (x * ((0.0212463641547976 * (z + (y * -2.0))) + (z * 0.28294182010212804)));
} else {
tmp = (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x)) / (1.0 / (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 <= (-3.8d+16)) then
tmp = x * 4.16438922228d0
else if (x <= 66000000.0d0) then
tmp = (z * (-0.0424927283095952d0)) + (x * ((0.0212463641547976d0 * (z + (y * (-2.0d0)))) + (z * 0.28294182010212804d0)))
else
tmp = (4.16438922228d0 - ((101.7851458539211d0 + ((-3451.550173699799d0) / x)) / x)) / (1.0d0 / (x + (-2.0d0)))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -3.8e+16) {
tmp = x * 4.16438922228;
} else if (x <= 66000000.0) {
tmp = (z * -0.0424927283095952) + (x * ((0.0212463641547976 * (z + (y * -2.0))) + (z * 0.28294182010212804)));
} else {
tmp = (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x)) / (1.0 / (x + -2.0));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -3.8e+16: tmp = x * 4.16438922228 elif x <= 66000000.0: tmp = (z * -0.0424927283095952) + (x * ((0.0212463641547976 * (z + (y * -2.0))) + (z * 0.28294182010212804))) else: tmp = (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x)) / (1.0 / (x + -2.0)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -3.8e+16) tmp = Float64(x * 4.16438922228); elseif (x <= 66000000.0) tmp = Float64(Float64(z * -0.0424927283095952) + Float64(x * Float64(Float64(0.0212463641547976 * Float64(z + Float64(y * -2.0))) + Float64(z * 0.28294182010212804)))); else tmp = Float64(Float64(4.16438922228 - Float64(Float64(101.7851458539211 + Float64(-3451.550173699799 / x)) / x)) / Float64(1.0 / Float64(x + -2.0))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -3.8e+16) tmp = x * 4.16438922228; elseif (x <= 66000000.0) tmp = (z * -0.0424927283095952) + (x * ((0.0212463641547976 * (z + (y * -2.0))) + (z * 0.28294182010212804))); else tmp = (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x)) / (1.0 / (x + -2.0)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -3.8e+16], N[(x * 4.16438922228), $MachinePrecision], If[LessEqual[x, 66000000.0], N[(N[(z * -0.0424927283095952), $MachinePrecision] + N[(x * N[(N[(0.0212463641547976 * N[(z + N[(y * -2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(z * 0.28294182010212804), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(4.16438922228 - N[(N[(101.7851458539211 + N[(-3451.550173699799 / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / N[(1.0 / N[(x + -2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -3.8 \cdot 10^{+16}:\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{elif}\;x \leq 66000000:\\
\;\;\;\;z \cdot -0.0424927283095952 + x \cdot \left(0.0212463641547976 \cdot \left(z + y \cdot -2\right) + z \cdot 0.28294182010212804\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{4.16438922228 - \frac{101.7851458539211 + \frac{-3451.550173699799}{x}}{x}}{\frac{1}{x + -2}}\\
\end{array}
\end{array}
if x < -3.8e16Initial program 11.7%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
Simplified14.9%
Taylor expanded in x around inf
*-commutativeN/A
*-lowering-*.f6491.0%
Simplified91.0%
if -3.8e16 < x < 6.6e7Initial program 99.6%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
Simplified99.3%
Taylor expanded in x around 0
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
+-lowering-+.f64N/A
*-lowering-*.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
*-lowering-*.f64N/A
metadata-eval88.8%
Simplified88.8%
if 6.6e7 < x Initial program 22.5%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
Simplified24.4%
Applied egg-rr24.3%
div-invN/A
associate-/r*N/A
/-lowering-/.f64N/A
Applied egg-rr24.3%
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-eval79.4%
Simplified79.4%
Final simplification87.3%
(FPCore (x y z)
:precision binary64
(if (<= x -1000.0)
(* x (- 4.16438922228 (/ 188.81341671388108 x)))
(if (<= x 66000000.0)
(/
(* (- x 2.0) z)
(+ 47.066876606 (* x (+ 313.399215894 (* x 263.505074721)))))
(/
(- 4.16438922228 (/ (+ 101.7851458539211 (/ -3451.550173699799 x)) x))
(/ 1.0 (+ x -2.0))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -1000.0) {
tmp = x * (4.16438922228 - (188.81341671388108 / x));
} else if (x <= 66000000.0) {
tmp = ((x - 2.0) * z) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))));
} else {
tmp = (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x)) / (1.0 / (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 <= (-1000.0d0)) then
tmp = x * (4.16438922228d0 - (188.81341671388108d0 / x))
else if (x <= 66000000.0d0) then
tmp = ((x - 2.0d0) * z) / (47.066876606d0 + (x * (313.399215894d0 + (x * 263.505074721d0))))
else
tmp = (4.16438922228d0 - ((101.7851458539211d0 + ((-3451.550173699799d0) / x)) / x)) / (1.0d0 / (x + (-2.0d0)))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -1000.0) {
tmp = x * (4.16438922228 - (188.81341671388108 / x));
} else if (x <= 66000000.0) {
tmp = ((x - 2.0) * z) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))));
} else {
tmp = (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x)) / (1.0 / (x + -2.0));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -1000.0: tmp = x * (4.16438922228 - (188.81341671388108 / x)) elif x <= 66000000.0: tmp = ((x - 2.0) * z) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721)))) else: tmp = (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x)) / (1.0 / (x + -2.0)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -1000.0) tmp = Float64(x * Float64(4.16438922228 - Float64(188.81341671388108 / x))); elseif (x <= 66000000.0) tmp = Float64(Float64(Float64(x - 2.0) * z) / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * 263.505074721))))); else tmp = Float64(Float64(4.16438922228 - Float64(Float64(101.7851458539211 + Float64(-3451.550173699799 / x)) / x)) / Float64(1.0 / Float64(x + -2.0))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -1000.0) tmp = x * (4.16438922228 - (188.81341671388108 / x)); elseif (x <= 66000000.0) tmp = ((x - 2.0) * z) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721)))); else tmp = (4.16438922228 - ((101.7851458539211 + (-3451.550173699799 / x)) / x)) / (1.0 / (x + -2.0)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -1000.0], N[(x * N[(4.16438922228 - N[(188.81341671388108 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 66000000.0], N[(N[(N[(x - 2.0), $MachinePrecision] * z), $MachinePrecision] / N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * 263.505074721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(4.16438922228 - N[(N[(101.7851458539211 + N[(-3451.550173699799 / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / N[(1.0 / N[(x + -2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1000:\\
\;\;\;\;x \cdot \left(4.16438922228 - \frac{188.81341671388108}{x}\right)\\
\mathbf{elif}\;x \leq 66000000:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot z}{47.066876606 + x \cdot \left(313.399215894 + x \cdot 263.505074721\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{4.16438922228 - \frac{101.7851458539211 + \frac{-3451.550173699799}{x}}{x}}{\frac{1}{x + -2}}\\
\end{array}
\end{array}
if x < -1e3Initial program 14.5%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
Simplified17.6%
Taylor expanded in x around inf
*-lowering-*.f64N/A
metadata-evalN/A
pow-plusN/A
*-lowering-*.f64N/A
cube-multN/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f648.3%
Simplified8.3%
Taylor expanded in x around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
associate-*r/N/A
metadata-evalN/A
/-lowering-/.f6488.2%
Simplified88.2%
if -1e3 < x < 6.6e7Initial program 99.6%
Taylor expanded in x around 0
Simplified71.3%
Taylor expanded in x around 0
*-commutativeN/A
*-lowering-*.f6469.4%
Simplified69.4%
if 6.6e7 < x Initial program 22.5%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
Simplified24.4%
Applied egg-rr24.3%
div-invN/A
associate-/r*N/A
/-lowering-/.f64N/A
Applied egg-rr24.3%
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-eval79.4%
Simplified79.4%
Final simplification76.0%
(FPCore (x y z)
:precision binary64
(if (<= x -5.5)
(* x (- 4.16438922228 (/ 188.81341671388108 x)))
(if (<= x 66000000.0)
(/
(* (- x 2.0) z)
(+ 47.066876606 (* x (+ 313.399215894 (* x 263.505074721)))))
(* x (- 4.16438922228 (/ 110.1139242984811 x))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -5.5) {
tmp = x * (4.16438922228 - (188.81341671388108 / x));
} else if (x <= 66000000.0) {
tmp = ((x - 2.0) * z) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))));
} else {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-5.5d0)) then
tmp = x * (4.16438922228d0 - (188.81341671388108d0 / x))
else if (x <= 66000000.0d0) then
tmp = ((x - 2.0d0) * z) / (47.066876606d0 + (x * (313.399215894d0 + (x * 263.505074721d0))))
else
tmp = x * (4.16438922228d0 - (110.1139242984811d0 / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -5.5) {
tmp = x * (4.16438922228 - (188.81341671388108 / x));
} else if (x <= 66000000.0) {
tmp = ((x - 2.0) * z) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))));
} else {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -5.5: tmp = x * (4.16438922228 - (188.81341671388108 / x)) elif x <= 66000000.0: tmp = ((x - 2.0) * z) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721)))) else: tmp = x * (4.16438922228 - (110.1139242984811 / x)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -5.5) tmp = Float64(x * Float64(4.16438922228 - Float64(188.81341671388108 / x))); elseif (x <= 66000000.0) tmp = Float64(Float64(Float64(x - 2.0) * z) / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * 263.505074721))))); else tmp = Float64(x * Float64(4.16438922228 - Float64(110.1139242984811 / x))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -5.5) tmp = x * (4.16438922228 - (188.81341671388108 / x)); elseif (x <= 66000000.0) tmp = ((x - 2.0) * z) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721)))); else tmp = x * (4.16438922228 - (110.1139242984811 / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -5.5], N[(x * N[(4.16438922228 - N[(188.81341671388108 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 66000000.0], N[(N[(N[(x - 2.0), $MachinePrecision] * z), $MachinePrecision] / N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * 263.505074721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(4.16438922228 - N[(110.1139242984811 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -5.5:\\
\;\;\;\;x \cdot \left(4.16438922228 - \frac{188.81341671388108}{x}\right)\\
\mathbf{elif}\;x \leq 66000000:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot z}{47.066876606 + x \cdot \left(313.399215894 + x \cdot 263.505074721\right)}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)\\
\end{array}
\end{array}
if x < -5.5Initial program 14.5%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
Simplified17.6%
Taylor expanded in x around inf
*-lowering-*.f64N/A
metadata-evalN/A
pow-plusN/A
*-lowering-*.f64N/A
cube-multN/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f648.3%
Simplified8.3%
Taylor expanded in x around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
associate-*r/N/A
metadata-evalN/A
/-lowering-/.f6488.2%
Simplified88.2%
if -5.5 < x < 6.6e7Initial program 99.6%
Taylor expanded in x around 0
Simplified71.3%
Taylor expanded in x around 0
*-commutativeN/A
*-lowering-*.f6469.4%
Simplified69.4%
if 6.6e7 < x Initial program 22.5%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
Simplified24.4%
Taylor expanded in x around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
associate-*r/N/A
metadata-evalN/A
/-lowering-/.f6479.2%
Simplified79.2%
Final simplification76.0%
(FPCore (x y z)
:precision binary64
(if (<= x -1.35)
(* x (- 4.16438922228 (/ 188.81341671388108 x)))
(if (<= x 66000000.0)
(/ (* (- x 2.0) z) (+ 47.066876606 (* x 313.399215894)))
(* x (- 4.16438922228 (/ 110.1139242984811 x))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -1.35) {
tmp = x * (4.16438922228 - (188.81341671388108 / x));
} else if (x <= 66000000.0) {
tmp = ((x - 2.0) * z) / (47.066876606 + (x * 313.399215894));
} else {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-1.35d0)) then
tmp = x * (4.16438922228d0 - (188.81341671388108d0 / x))
else if (x <= 66000000.0d0) then
tmp = ((x - 2.0d0) * z) / (47.066876606d0 + (x * 313.399215894d0))
else
tmp = x * (4.16438922228d0 - (110.1139242984811d0 / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -1.35) {
tmp = x * (4.16438922228 - (188.81341671388108 / x));
} else if (x <= 66000000.0) {
tmp = ((x - 2.0) * z) / (47.066876606 + (x * 313.399215894));
} else {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -1.35: tmp = x * (4.16438922228 - (188.81341671388108 / x)) elif x <= 66000000.0: tmp = ((x - 2.0) * z) / (47.066876606 + (x * 313.399215894)) else: tmp = x * (4.16438922228 - (110.1139242984811 / x)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -1.35) tmp = Float64(x * Float64(4.16438922228 - Float64(188.81341671388108 / x))); elseif (x <= 66000000.0) tmp = Float64(Float64(Float64(x - 2.0) * z) / Float64(47.066876606 + Float64(x * 313.399215894))); else tmp = Float64(x * Float64(4.16438922228 - Float64(110.1139242984811 / x))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -1.35) tmp = x * (4.16438922228 - (188.81341671388108 / x)); elseif (x <= 66000000.0) tmp = ((x - 2.0) * z) / (47.066876606 + (x * 313.399215894)); else tmp = x * (4.16438922228 - (110.1139242984811 / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -1.35], N[(x * N[(4.16438922228 - N[(188.81341671388108 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 66000000.0], N[(N[(N[(x - 2.0), $MachinePrecision] * z), $MachinePrecision] / N[(47.066876606 + N[(x * 313.399215894), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(4.16438922228 - N[(110.1139242984811 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.35:\\
\;\;\;\;x \cdot \left(4.16438922228 - \frac{188.81341671388108}{x}\right)\\
\mathbf{elif}\;x \leq 66000000:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot z}{47.066876606 + x \cdot 313.399215894}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)\\
\end{array}
\end{array}
if x < -1.3500000000000001Initial program 14.5%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
Simplified17.6%
Taylor expanded in x around inf
*-lowering-*.f64N/A
metadata-evalN/A
pow-plusN/A
*-lowering-*.f64N/A
cube-multN/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f648.3%
Simplified8.3%
Taylor expanded in x around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
associate-*r/N/A
metadata-evalN/A
/-lowering-/.f6488.2%
Simplified88.2%
if -1.3500000000000001 < x < 6.6e7Initial program 99.6%
Taylor expanded in x around 0
Simplified71.3%
Taylor expanded in x around 0
*-commutativeN/A
*-lowering-*.f6469.2%
Simplified69.2%
if 6.6e7 < x Initial program 22.5%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
Simplified24.4%
Taylor expanded in x around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
associate-*r/N/A
metadata-evalN/A
/-lowering-/.f6479.2%
Simplified79.2%
Final simplification75.9%
(FPCore (x y z)
:precision binary64
(if (<= x -2.75e-39)
(* x 4.16438922228)
(if (<= x 66000000.0)
(/ (* (- x 2.0) z) 47.066876606)
(* x (- 4.16438922228 (/ 110.1139242984811 x))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -2.75e-39) {
tmp = x * 4.16438922228;
} else if (x <= 66000000.0) {
tmp = ((x - 2.0) * z) / 47.066876606;
} else {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-2.75d-39)) then
tmp = x * 4.16438922228d0
else if (x <= 66000000.0d0) then
tmp = ((x - 2.0d0) * z) / 47.066876606d0
else
tmp = x * (4.16438922228d0 - (110.1139242984811d0 / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -2.75e-39) {
tmp = x * 4.16438922228;
} else if (x <= 66000000.0) {
tmp = ((x - 2.0) * z) / 47.066876606;
} else {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -2.75e-39: tmp = x * 4.16438922228 elif x <= 66000000.0: tmp = ((x - 2.0) * z) / 47.066876606 else: tmp = x * (4.16438922228 - (110.1139242984811 / x)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -2.75e-39) tmp = Float64(x * 4.16438922228); elseif (x <= 66000000.0) tmp = Float64(Float64(Float64(x - 2.0) * z) / 47.066876606); else tmp = Float64(x * Float64(4.16438922228 - Float64(110.1139242984811 / x))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -2.75e-39) tmp = x * 4.16438922228; elseif (x <= 66000000.0) tmp = ((x - 2.0) * z) / 47.066876606; else tmp = x * (4.16438922228 - (110.1139242984811 / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -2.75e-39], N[(x * 4.16438922228), $MachinePrecision], If[LessEqual[x, 66000000.0], N[(N[(N[(x - 2.0), $MachinePrecision] * z), $MachinePrecision] / 47.066876606), $MachinePrecision], N[(x * N[(4.16438922228 - N[(110.1139242984811 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2.75 \cdot 10^{-39}:\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{elif}\;x \leq 66000000:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot z}{47.066876606}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)\\
\end{array}
\end{array}
if x < -2.75000000000000009e-39Initial program 23.1%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
Simplified25.8%
Taylor expanded in x around inf
*-commutativeN/A
*-lowering-*.f6479.9%
Simplified79.9%
if -2.75000000000000009e-39 < x < 6.6e7Initial program 99.7%
Taylor expanded in x around 0
Simplified73.5%
Taylor expanded in x around 0
Simplified72.2%
if 6.6e7 < x Initial program 22.5%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
Simplified24.4%
Taylor expanded in x around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
associate-*r/N/A
metadata-evalN/A
/-lowering-/.f6479.2%
Simplified79.2%
(FPCore (x y z)
:precision binary64
(if (<= x -0.17)
(* x (- 4.16438922228 (/ 188.81341671388108 x)))
(if (<= x 66000000.0)
(* z (+ -0.0424927283095952 (* x 0.3041881842569256)))
(* x (- 4.16438922228 (/ 110.1139242984811 x))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -0.17) {
tmp = x * (4.16438922228 - (188.81341671388108 / x));
} else if (x <= 66000000.0) {
tmp = z * (-0.0424927283095952 + (x * 0.3041881842569256));
} else {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-0.17d0)) then
tmp = x * (4.16438922228d0 - (188.81341671388108d0 / x))
else if (x <= 66000000.0d0) then
tmp = z * ((-0.0424927283095952d0) + (x * 0.3041881842569256d0))
else
tmp = x * (4.16438922228d0 - (110.1139242984811d0 / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -0.17) {
tmp = x * (4.16438922228 - (188.81341671388108 / x));
} else if (x <= 66000000.0) {
tmp = z * (-0.0424927283095952 + (x * 0.3041881842569256));
} else {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -0.17: tmp = x * (4.16438922228 - (188.81341671388108 / x)) elif x <= 66000000.0: tmp = z * (-0.0424927283095952 + (x * 0.3041881842569256)) else: tmp = x * (4.16438922228 - (110.1139242984811 / x)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -0.17) tmp = Float64(x * Float64(4.16438922228 - Float64(188.81341671388108 / x))); elseif (x <= 66000000.0) tmp = Float64(z * Float64(-0.0424927283095952 + Float64(x * 0.3041881842569256))); else tmp = Float64(x * Float64(4.16438922228 - Float64(110.1139242984811 / x))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -0.17) tmp = x * (4.16438922228 - (188.81341671388108 / x)); elseif (x <= 66000000.0) tmp = z * (-0.0424927283095952 + (x * 0.3041881842569256)); else tmp = x * (4.16438922228 - (110.1139242984811 / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -0.17], N[(x * N[(4.16438922228 - N[(188.81341671388108 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 66000000.0], N[(z * N[(-0.0424927283095952 + N[(x * 0.3041881842569256), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(4.16438922228 - N[(110.1139242984811 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -0.17:\\
\;\;\;\;x \cdot \left(4.16438922228 - \frac{188.81341671388108}{x}\right)\\
\mathbf{elif}\;x \leq 66000000:\\
\;\;\;\;z \cdot \left(-0.0424927283095952 + x \cdot 0.3041881842569256\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)\\
\end{array}
\end{array}
if x < -0.170000000000000012Initial program 15.8%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
Simplified18.9%
Taylor expanded in x around inf
*-lowering-*.f64N/A
metadata-evalN/A
pow-plusN/A
*-lowering-*.f64N/A
cube-multN/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f648.2%
Simplified8.2%
Taylor expanded in x around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
associate-*r/N/A
metadata-evalN/A
/-lowering-/.f6486.9%
Simplified86.9%
if -0.170000000000000012 < x < 6.6e7Initial program 99.7%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
Simplified99.3%
Taylor expanded in x around 0
Simplified70.9%
Taylor expanded in x around 0
sub-negN/A
metadata-evalN/A
+-commutativeN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6469.2%
Simplified69.2%
if 6.6e7 < x Initial program 22.5%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
Simplified24.4%
Taylor expanded in x around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
associate-*r/N/A
metadata-evalN/A
/-lowering-/.f6479.2%
Simplified79.2%
(FPCore (x y z)
:precision binary64
(if (<= x -2.75e-39)
(* x 4.16438922228)
(if (<= x 3e-33)
(* z -0.0424927283095952)
(* x (- 4.16438922228 (/ 110.1139242984811 x))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -2.75e-39) {
tmp = x * 4.16438922228;
} else if (x <= 3e-33) {
tmp = z * -0.0424927283095952;
} else {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-2.75d-39)) then
tmp = x * 4.16438922228d0
else if (x <= 3d-33) then
tmp = z * (-0.0424927283095952d0)
else
tmp = x * (4.16438922228d0 - (110.1139242984811d0 / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -2.75e-39) {
tmp = x * 4.16438922228;
} else if (x <= 3e-33) {
tmp = z * -0.0424927283095952;
} else {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -2.75e-39: tmp = x * 4.16438922228 elif x <= 3e-33: tmp = z * -0.0424927283095952 else: tmp = x * (4.16438922228 - (110.1139242984811 / x)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -2.75e-39) tmp = Float64(x * 4.16438922228); elseif (x <= 3e-33) tmp = Float64(z * -0.0424927283095952); else tmp = Float64(x * Float64(4.16438922228 - Float64(110.1139242984811 / x))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -2.75e-39) tmp = x * 4.16438922228; elseif (x <= 3e-33) tmp = z * -0.0424927283095952; else tmp = x * (4.16438922228 - (110.1139242984811 / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -2.75e-39], N[(x * 4.16438922228), $MachinePrecision], If[LessEqual[x, 3e-33], N[(z * -0.0424927283095952), $MachinePrecision], N[(x * N[(4.16438922228 - N[(110.1139242984811 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2.75 \cdot 10^{-39}:\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{elif}\;x \leq 3 \cdot 10^{-33}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)\\
\end{array}
\end{array}
if x < -2.75000000000000009e-39Initial program 23.1%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
Simplified25.8%
Taylor expanded in x around inf
*-commutativeN/A
*-lowering-*.f6479.9%
Simplified79.9%
if -2.75000000000000009e-39 < x < 3.0000000000000002e-33Initial program 99.7%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
Simplified99.4%
Taylor expanded in x around 0
*-lowering-*.f6475.0%
Simplified75.0%
if 3.0000000000000002e-33 < x Initial program 30.3%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
Simplified32.0%
Taylor expanded in x around inf
*-lowering-*.f64N/A
--lowering--.f64N/A
associate-*r/N/A
metadata-evalN/A
/-lowering-/.f6471.8%
Simplified71.8%
Final simplification75.6%
(FPCore (x y z)
:precision binary64
(if (<= x -2.75e-39)
(* x 4.16438922228)
(if (<= x 3e-33)
(* z -0.0424927283095952)
(+ (* x 4.16438922228) -110.1139242984811))))
double code(double x, double y, double z) {
double tmp;
if (x <= -2.75e-39) {
tmp = x * 4.16438922228;
} else if (x <= 3e-33) {
tmp = z * -0.0424927283095952;
} else {
tmp = (x * 4.16438922228) + -110.1139242984811;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-2.75d-39)) then
tmp = x * 4.16438922228d0
else if (x <= 3d-33) then
tmp = z * (-0.0424927283095952d0)
else
tmp = (x * 4.16438922228d0) + (-110.1139242984811d0)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -2.75e-39) {
tmp = x * 4.16438922228;
} else if (x <= 3e-33) {
tmp = z * -0.0424927283095952;
} else {
tmp = (x * 4.16438922228) + -110.1139242984811;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -2.75e-39: tmp = x * 4.16438922228 elif x <= 3e-33: tmp = z * -0.0424927283095952 else: tmp = (x * 4.16438922228) + -110.1139242984811 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -2.75e-39) tmp = Float64(x * 4.16438922228); elseif (x <= 3e-33) tmp = Float64(z * -0.0424927283095952); else tmp = Float64(Float64(x * 4.16438922228) + -110.1139242984811); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -2.75e-39) tmp = x * 4.16438922228; elseif (x <= 3e-33) tmp = z * -0.0424927283095952; else tmp = (x * 4.16438922228) + -110.1139242984811; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -2.75e-39], N[(x * 4.16438922228), $MachinePrecision], If[LessEqual[x, 3e-33], N[(z * -0.0424927283095952), $MachinePrecision], N[(N[(x * 4.16438922228), $MachinePrecision] + -110.1139242984811), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2.75 \cdot 10^{-39}:\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{elif}\;x \leq 3 \cdot 10^{-33}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228 + -110.1139242984811\\
\end{array}
\end{array}
if x < -2.75000000000000009e-39Initial program 23.1%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
Simplified25.8%
Taylor expanded in x around inf
*-commutativeN/A
*-lowering-*.f6479.9%
Simplified79.9%
if -2.75000000000000009e-39 < x < 3.0000000000000002e-33Initial program 99.7%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
Simplified99.4%
Taylor expanded in x around 0
*-lowering-*.f6475.0%
Simplified75.0%
if 3.0000000000000002e-33 < x Initial program 30.3%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
Simplified32.0%
Taylor expanded in y around inf
Simplified30.4%
Taylor expanded in x around inf
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
associate-*r/N/A
metadata-evalN/A
/-lowering-/.f64N/A
associate-*r/N/A
metadata-evalN/A
distribute-neg-fracN/A
/-lowering-/.f64N/A
metadata-evalN/A
*-lowering-*.f6445.2%
Simplified45.2%
Taylor expanded in x around 0
sub-negN/A
metadata-evalN/A
+-lowering-+.f64N/A
*-commutativeN/A
*-lowering-*.f6471.7%
Simplified71.7%
Final simplification75.6%
(FPCore (x y z) :precision binary64 (if (<= x -2.75e-39) (* x 4.16438922228) (if (<= x 2.0) (* z -0.0424927283095952) (* x 4.16438922228))))
double code(double x, double y, double z) {
double tmp;
if (x <= -2.75e-39) {
tmp = x * 4.16438922228;
} else if (x <= 2.0) {
tmp = z * -0.0424927283095952;
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-2.75d-39)) then
tmp = x * 4.16438922228d0
else if (x <= 2.0d0) then
tmp = z * (-0.0424927283095952d0)
else
tmp = x * 4.16438922228d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -2.75e-39) {
tmp = x * 4.16438922228;
} else if (x <= 2.0) {
tmp = z * -0.0424927283095952;
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -2.75e-39: tmp = x * 4.16438922228 elif x <= 2.0: tmp = z * -0.0424927283095952 else: tmp = x * 4.16438922228 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -2.75e-39) tmp = Float64(x * 4.16438922228); elseif (x <= 2.0) tmp = Float64(z * -0.0424927283095952); else tmp = Float64(x * 4.16438922228); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -2.75e-39) tmp = x * 4.16438922228; elseif (x <= 2.0) tmp = z * -0.0424927283095952; else tmp = x * 4.16438922228; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -2.75e-39], N[(x * 4.16438922228), $MachinePrecision], If[LessEqual[x, 2.0], N[(z * -0.0424927283095952), $MachinePrecision], N[(x * 4.16438922228), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2.75 \cdot 10^{-39}:\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{elif}\;x \leq 2:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228\\
\end{array}
\end{array}
if x < -2.75000000000000009e-39 or 2 < x Initial program 23.5%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
Simplified25.8%
Taylor expanded in x around inf
*-commutativeN/A
*-lowering-*.f6478.7%
Simplified78.7%
if -2.75000000000000009e-39 < x < 2Initial program 99.7%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
Simplified99.4%
Taylor expanded in x around 0
*-lowering-*.f6472.4%
Simplified72.4%
Final simplification75.4%
(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 63.1%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
Simplified64.0%
Taylor expanded in x around 0
*-lowering-*.f6439.3%
Simplified39.3%
Final simplification39.3%
(FPCore (x y z) :precision binary64 -110.1139242984811)
double code(double x, double y, double z) {
return -110.1139242984811;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = -110.1139242984811d0
end function
public static double code(double x, double y, double z) {
return -110.1139242984811;
}
def code(x, y, z): return -110.1139242984811
function code(x, y, z) return -110.1139242984811 end
function tmp = code(x, y, z) tmp = -110.1139242984811; end
code[x_, y_, z_] := -110.1139242984811
\begin{array}{l}
\\
-110.1139242984811
\end{array}
Initial program 63.1%
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
Simplified64.0%
Taylor expanded in y around inf
Simplified55.6%
Taylor expanded in x around inf
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
associate-*r/N/A
metadata-evalN/A
/-lowering-/.f64N/A
associate-*r/N/A
metadata-evalN/A
distribute-neg-fracN/A
/-lowering-/.f64N/A
metadata-evalN/A
*-lowering-*.f6427.4%
Simplified27.4%
Taylor expanded in x around 0
Simplified3.5%
(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 2024138
(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)))