
(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 29 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z)
:precision binary64
(/
(*
(- x 2.0)
(+
(*
(+ (* (+ (* (+ (* x 4.16438922228) 78.6994924154) x) 137.519416416) x) y)
x)
z))
(+
(* (+ (* (+ (* (+ x 43.3400022514) x) 263.505074721) x) 313.399215894) x)
47.066876606)))
double code(double x, double y, double z) {
return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606);
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = ((x - 2.0d0) * ((((((((x * 4.16438922228d0) + 78.6994924154d0) * x) + 137.519416416d0) * x) + y) * x) + z)) / (((((((x + 43.3400022514d0) * x) + 263.505074721d0) * x) + 313.399215894d0) * x) + 47.066876606d0)
end function
public static double code(double x, double y, double z) {
return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606);
}
def code(x, y, z): return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606)
function code(x, y, z) return Float64(Float64(Float64(x - 2.0) * Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606)) end
function tmp = code(x, y, z) tmp = ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606); end
code[x_, y_, z_] := N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(N[(N[(N[(N[(N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision] * x), $MachinePrecision] + 137.519416416), $MachinePrecision] * x), $MachinePrecision] + y), $MachinePrecision] * x), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(x + 43.3400022514), $MachinePrecision] * x), $MachinePrecision] + 263.505074721), $MachinePrecision] * x), $MachinePrecision] + 313.399215894), $MachinePrecision] * x), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606}
\end{array}
(FPCore (x y z)
:precision binary64
(let* ((t_0
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606)))
(if (<=
(/
(*
(- x 2.0)
(+
(*
x
(+
y
(*
x
(+ 137.519416416 (* x (+ 78.6994924154 (* x 4.16438922228)))))))
z))
t_0)
INFINITY)
(+
(* z (+ (/ x t_0) (* 2.0 (/ -1.0 t_0))))
(*
(/
x
(/
(fma
x
(fma x (fma x (+ x 43.3400022514) 263.505074721) 313.399215894)
47.066876606)
(fma x (fma x (fma x 4.16438922228 78.6994924154) 137.519416416) y)))
(+ x -2.0)))
(/ (+ x -2.0) 0.24013125253755718))))
double code(double x, double y, double z) {
double t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606;
double tmp;
if ((((x - 2.0) * ((x * (y + (x * (137.519416416 + (x * (78.6994924154 + (x * 4.16438922228))))))) + z)) / t_0) <= ((double) INFINITY)) {
tmp = (z * ((x / t_0) + (2.0 * (-1.0 / t_0)))) + ((x / (fma(x, fma(x, fma(x, (x + 43.3400022514), 263.505074721), 313.399215894), 47.066876606) / fma(x, fma(x, fma(x, 4.16438922228, 78.6994924154), 137.519416416), y))) * (x + -2.0));
} else {
tmp = (x + -2.0) / 0.24013125253755718;
}
return tmp;
}
function code(x, y, z) t_0 = Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) tmp = 0.0 if (Float64(Float64(Float64(x - 2.0) * Float64(Float64(x * Float64(y + Float64(x * Float64(137.519416416 + Float64(x * Float64(78.6994924154 + Float64(x * 4.16438922228))))))) + z)) / t_0) <= Inf) tmp = Float64(Float64(z * Float64(Float64(x / t_0) + Float64(2.0 * Float64(-1.0 / t_0)))) + Float64(Float64(x / Float64(fma(x, fma(x, fma(x, Float64(x + 43.3400022514), 263.505074721), 313.399215894), 47.066876606) / fma(x, fma(x, fma(x, 4.16438922228, 78.6994924154), 137.519416416), y))) * Float64(x + -2.0))); else tmp = Float64(Float64(x + -2.0) / 0.24013125253755718); end return tmp end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]}, If[LessEqual[N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(x * N[(y + N[(x * N[(137.519416416 + N[(x * N[(78.6994924154 + N[(x * 4.16438922228), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / t$95$0), $MachinePrecision], Infinity], N[(N[(z * N[(N[(x / t$95$0), $MachinePrecision] + N[(2.0 * N[(-1.0 / t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(x / N[(N[(x * N[(x * N[(x * N[(x + 43.3400022514), $MachinePrecision] + 263.505074721), $MachinePrecision] + 313.399215894), $MachinePrecision] + 47.066876606), $MachinePrecision] / N[(x * N[(x * N[(x * 4.16438922228 + 78.6994924154), $MachinePrecision] + 137.519416416), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(x + -2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606\\
\mathbf{if}\;\frac{\left(x - 2\right) \cdot \left(x \cdot \left(y + x \cdot \left(137.519416416 + x \cdot \left(78.6994924154 + x \cdot 4.16438922228\right)\right)\right) + z\right)}{t_0} \leq \infty:\\
\;\;\;\;z \cdot \left(\frac{x}{t_0} + 2 \cdot \frac{-1}{t_0}\right) + \frac{x}{\frac{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), 137.519416416\right), y\right)}} \cdot \left(x + -2\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718}\\
\end{array}
\end{array}
if (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) < +inf.0Initial program 94.2%
*-commutative94.2%
associate-*r/97.0%
*-commutative97.0%
fma-def97.0%
*-commutative97.0%
fma-def97.0%
*-commutative97.0%
fma-def97.0%
fma-def97.0%
Simplified97.0%
Taylor expanded in z around 0 94.7%
Applied egg-rr94.6%
Simplified99.4%
if +inf.0 < (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) Initial program 0.0%
associate-/l*0.0%
sub-neg0.0%
metadata-eval0.0%
fma-def0.0%
fma-def0.0%
fma-def0.0%
fma-def0.0%
fma-def0.0%
fma-def0.0%
fma-def0.0%
Simplified0.0%
Taylor expanded in x around inf 99.6%
Final simplification99.5%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))
(t_1
(+
y
(*
x
(+ 137.519416416 (* x (+ 78.6994924154 (* x 4.16438922228))))))))
(if (<= (/ (* (- x 2.0) (+ (* x t_1) z)) t_0) 1e+280)
(+
(* z (+ (/ x t_0) (* 2.0 (/ -1.0 t_0))))
(/ (* x (* (- x 2.0) t_1)) t_0))
(+
(+
(fma x 4.16438922228 (/ 3655.1204654076414 x))
(/ (- y 130977.50649958357) (* x x)))
-110.1139242984811))))
double code(double x, double y, double z) {
double t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606;
double t_1 = y + (x * (137.519416416 + (x * (78.6994924154 + (x * 4.16438922228)))));
double tmp;
if ((((x - 2.0) * ((x * t_1) + z)) / t_0) <= 1e+280) {
tmp = (z * ((x / t_0) + (2.0 * (-1.0 / t_0)))) + ((x * ((x - 2.0) * t_1)) / t_0);
} else {
tmp = (fma(x, 4.16438922228, (3655.1204654076414 / x)) + ((y - 130977.50649958357) / (x * x))) + -110.1139242984811;
}
return tmp;
}
function code(x, y, z) t_0 = Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) t_1 = Float64(y + Float64(x * Float64(137.519416416 + Float64(x * Float64(78.6994924154 + Float64(x * 4.16438922228)))))) tmp = 0.0 if (Float64(Float64(Float64(x - 2.0) * Float64(Float64(x * t_1) + z)) / t_0) <= 1e+280) tmp = Float64(Float64(z * Float64(Float64(x / t_0) + Float64(2.0 * Float64(-1.0 / t_0)))) + Float64(Float64(x * Float64(Float64(x - 2.0) * t_1)) / t_0)); else tmp = Float64(Float64(fma(x, 4.16438922228, Float64(3655.1204654076414 / x)) + Float64(Float64(y - 130977.50649958357) / Float64(x * x))) + -110.1139242984811); end return tmp end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]}, Block[{t$95$1 = N[(y + N[(x * N[(137.519416416 + N[(x * N[(78.6994924154 + N[(x * 4.16438922228), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(x * t$95$1), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / t$95$0), $MachinePrecision], 1e+280], N[(N[(z * N[(N[(x / t$95$0), $MachinePrecision] + N[(2.0 * N[(-1.0 / t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(x * N[(N[(x - 2.0), $MachinePrecision] * t$95$1), $MachinePrecision]), $MachinePrecision] / t$95$0), $MachinePrecision]), $MachinePrecision], N[(N[(N[(x * 4.16438922228 + N[(3655.1204654076414 / x), $MachinePrecision]), $MachinePrecision] + N[(N[(y - 130977.50649958357), $MachinePrecision] / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + -110.1139242984811), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606\\
t_1 := y + x \cdot \left(137.519416416 + x \cdot \left(78.6994924154 + x \cdot 4.16438922228\right)\right)\\
\mathbf{if}\;\frac{\left(x - 2\right) \cdot \left(x \cdot t_1 + z\right)}{t_0} \leq 10^{+280}:\\
\;\;\;\;z \cdot \left(\frac{x}{t_0} + 2 \cdot \frac{-1}{t_0}\right) + \frac{x \cdot \left(\left(x - 2\right) \cdot t_1\right)}{t_0}\\
\mathbf{else}:\\
\;\;\;\;\left(\mathsf{fma}\left(x, 4.16438922228, \frac{3655.1204654076414}{x}\right) + \frac{y - 130977.50649958357}{x \cdot x}\right) + -110.1139242984811\\
\end{array}
\end{array}
if (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) < 1e280Initial program 97.1%
*-commutative97.1%
associate-*r/98.8%
*-commutative98.8%
fma-def98.8%
*-commutative98.8%
fma-def98.8%
*-commutative98.8%
fma-def98.8%
fma-def98.8%
Simplified98.8%
Taylor expanded in z around 0 97.6%
if 1e280 < (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) Initial program 0.2%
*-commutative0.2%
associate-*r/2.1%
*-commutative2.1%
fma-def2.1%
*-commutative2.1%
fma-def2.1%
*-commutative2.1%
fma-def2.1%
fma-def2.1%
Simplified2.1%
Taylor expanded in x around -inf 99.1%
sub-neg99.1%
+-commutative99.1%
mul-1-neg99.1%
unsub-neg99.1%
*-commutative99.1%
fma-def99.1%
associate-*r/99.1%
metadata-eval99.1%
mul-1-neg99.1%
unsub-neg99.1%
unpow299.1%
metadata-eval99.1%
Simplified99.1%
Final simplification98.2%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))
(t_1
(+
y
(*
x
(+ 137.519416416 (* x (+ 78.6994924154 (* x 4.16438922228))))))))
(if (<= (/ (* (- x 2.0) (+ (* x t_1) z)) t_0) 1e+280)
(+
(* z (+ (/ x t_0) (* 2.0 (/ -1.0 t_0))))
(/ (* x (* (- x 2.0) t_1)) t_0))
(/ 1.0 (/ 0.24013125253755718 x)))))
double code(double x, double y, double z) {
double t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606;
double t_1 = y + (x * (137.519416416 + (x * (78.6994924154 + (x * 4.16438922228)))));
double tmp;
if ((((x - 2.0) * ((x * t_1) + z)) / t_0) <= 1e+280) {
tmp = (z * ((x / t_0) + (2.0 * (-1.0 / t_0)))) + ((x * ((x - 2.0) * t_1)) / t_0);
} else {
tmp = 1.0 / (0.24013125253755718 / x);
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: t_1
real(8) :: tmp
t_0 = (x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0
t_1 = y + (x * (137.519416416d0 + (x * (78.6994924154d0 + (x * 4.16438922228d0)))))
if ((((x - 2.0d0) * ((x * t_1) + z)) / t_0) <= 1d+280) then
tmp = (z * ((x / t_0) + (2.0d0 * ((-1.0d0) / t_0)))) + ((x * ((x - 2.0d0) * t_1)) / t_0)
else
tmp = 1.0d0 / (0.24013125253755718d0 / x)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606;
double t_1 = y + (x * (137.519416416 + (x * (78.6994924154 + (x * 4.16438922228)))));
double tmp;
if ((((x - 2.0) * ((x * t_1) + z)) / t_0) <= 1e+280) {
tmp = (z * ((x / t_0) + (2.0 * (-1.0 / t_0)))) + ((x * ((x - 2.0) * t_1)) / t_0);
} else {
tmp = 1.0 / (0.24013125253755718 / x);
}
return tmp;
}
def code(x, y, z): t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606 t_1 = y + (x * (137.519416416 + (x * (78.6994924154 + (x * 4.16438922228))))) tmp = 0 if (((x - 2.0) * ((x * t_1) + z)) / t_0) <= 1e+280: tmp = (z * ((x / t_0) + (2.0 * (-1.0 / t_0)))) + ((x * ((x - 2.0) * t_1)) / t_0) else: tmp = 1.0 / (0.24013125253755718 / x) return tmp
function code(x, y, z) t_0 = Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) t_1 = Float64(y + Float64(x * Float64(137.519416416 + Float64(x * Float64(78.6994924154 + Float64(x * 4.16438922228)))))) tmp = 0.0 if (Float64(Float64(Float64(x - 2.0) * Float64(Float64(x * t_1) + z)) / t_0) <= 1e+280) tmp = Float64(Float64(z * Float64(Float64(x / t_0) + Float64(2.0 * Float64(-1.0 / t_0)))) + Float64(Float64(x * Float64(Float64(x - 2.0) * t_1)) / t_0)); else tmp = Float64(1.0 / Float64(0.24013125253755718 / x)); end return tmp end
function tmp_2 = code(x, y, z) t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606; t_1 = y + (x * (137.519416416 + (x * (78.6994924154 + (x * 4.16438922228))))); tmp = 0.0; if ((((x - 2.0) * ((x * t_1) + z)) / t_0) <= 1e+280) tmp = (z * ((x / t_0) + (2.0 * (-1.0 / t_0)))) + ((x * ((x - 2.0) * t_1)) / t_0); else tmp = 1.0 / (0.24013125253755718 / x); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]}, Block[{t$95$1 = N[(y + N[(x * N[(137.519416416 + N[(x * N[(78.6994924154 + N[(x * 4.16438922228), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(x * t$95$1), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / t$95$0), $MachinePrecision], 1e+280], N[(N[(z * N[(N[(x / t$95$0), $MachinePrecision] + N[(2.0 * N[(-1.0 / t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(x * N[(N[(x - 2.0), $MachinePrecision] * t$95$1), $MachinePrecision]), $MachinePrecision] / t$95$0), $MachinePrecision]), $MachinePrecision], N[(1.0 / N[(0.24013125253755718 / x), $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 := y + x \cdot \left(137.519416416 + x \cdot \left(78.6994924154 + x \cdot 4.16438922228\right)\right)\\
\mathbf{if}\;\frac{\left(x - 2\right) \cdot \left(x \cdot t_1 + z\right)}{t_0} \leq 10^{+280}:\\
\;\;\;\;z \cdot \left(\frac{x}{t_0} + 2 \cdot \frac{-1}{t_0}\right) + \frac{x \cdot \left(\left(x - 2\right) \cdot t_1\right)}{t_0}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\frac{0.24013125253755718}{x}}\\
\end{array}
\end{array}
if (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) < 1e280Initial program 97.1%
*-commutative97.1%
associate-*r/98.8%
*-commutative98.8%
fma-def98.8%
*-commutative98.8%
fma-def98.8%
*-commutative98.8%
fma-def98.8%
fma-def98.8%
Simplified98.8%
Taylor expanded in z around 0 97.6%
if 1e280 < (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) Initial program 0.2%
*-commutative0.2%
associate-*r/2.1%
*-commutative2.1%
fma-def2.1%
*-commutative2.1%
fma-def2.1%
*-commutative2.1%
fma-def2.1%
fma-def2.1%
Simplified2.1%
Applied egg-rr2.1%
Taylor expanded in x around inf 96.8%
Final simplification97.3%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))
(t_1
(+
y
(*
x
(+ 137.519416416 (* x (+ 78.6994924154 (* x 4.16438922228))))))))
(if (<= (/ (* (- x 2.0) (+ (* x t_1) z)) t_0) 1e+280)
(+ (/ (* x (* (- x 2.0) t_1)) t_0) (/ (* (- x 2.0) z) t_0))
(/ 1.0 (/ 0.24013125253755718 x)))))
double code(double x, double y, double z) {
double t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606;
double t_1 = y + (x * (137.519416416 + (x * (78.6994924154 + (x * 4.16438922228)))));
double tmp;
if ((((x - 2.0) * ((x * t_1) + z)) / t_0) <= 1e+280) {
tmp = ((x * ((x - 2.0) * t_1)) / t_0) + (((x - 2.0) * z) / t_0);
} else {
tmp = 1.0 / (0.24013125253755718 / x);
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: t_1
real(8) :: tmp
t_0 = (x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0
t_1 = y + (x * (137.519416416d0 + (x * (78.6994924154d0 + (x * 4.16438922228d0)))))
if ((((x - 2.0d0) * ((x * t_1) + z)) / t_0) <= 1d+280) then
tmp = ((x * ((x - 2.0d0) * t_1)) / t_0) + (((x - 2.0d0) * z) / t_0)
else
tmp = 1.0d0 / (0.24013125253755718d0 / x)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606;
double t_1 = y + (x * (137.519416416 + (x * (78.6994924154 + (x * 4.16438922228)))));
double tmp;
if ((((x - 2.0) * ((x * t_1) + z)) / t_0) <= 1e+280) {
tmp = ((x * ((x - 2.0) * t_1)) / t_0) + (((x - 2.0) * z) / t_0);
} else {
tmp = 1.0 / (0.24013125253755718 / x);
}
return tmp;
}
def code(x, y, z): t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606 t_1 = y + (x * (137.519416416 + (x * (78.6994924154 + (x * 4.16438922228))))) tmp = 0 if (((x - 2.0) * ((x * t_1) + z)) / t_0) <= 1e+280: tmp = ((x * ((x - 2.0) * t_1)) / t_0) + (((x - 2.0) * z) / t_0) else: tmp = 1.0 / (0.24013125253755718 / x) return tmp
function code(x, y, z) t_0 = Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) t_1 = Float64(y + Float64(x * Float64(137.519416416 + Float64(x * Float64(78.6994924154 + Float64(x * 4.16438922228)))))) tmp = 0.0 if (Float64(Float64(Float64(x - 2.0) * Float64(Float64(x * t_1) + z)) / t_0) <= 1e+280) tmp = Float64(Float64(Float64(x * Float64(Float64(x - 2.0) * t_1)) / t_0) + Float64(Float64(Float64(x - 2.0) * z) / t_0)); else tmp = Float64(1.0 / Float64(0.24013125253755718 / x)); end return tmp end
function tmp_2 = code(x, y, z) t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606; t_1 = y + (x * (137.519416416 + (x * (78.6994924154 + (x * 4.16438922228))))); tmp = 0.0; if ((((x - 2.0) * ((x * t_1) + z)) / t_0) <= 1e+280) tmp = ((x * ((x - 2.0) * t_1)) / t_0) + (((x - 2.0) * z) / t_0); else tmp = 1.0 / (0.24013125253755718 / x); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]}, Block[{t$95$1 = N[(y + N[(x * N[(137.519416416 + N[(x * N[(78.6994924154 + N[(x * 4.16438922228), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(x * t$95$1), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / t$95$0), $MachinePrecision], 1e+280], N[(N[(N[(x * N[(N[(x - 2.0), $MachinePrecision] * t$95$1), $MachinePrecision]), $MachinePrecision] / t$95$0), $MachinePrecision] + N[(N[(N[(x - 2.0), $MachinePrecision] * z), $MachinePrecision] / t$95$0), $MachinePrecision]), $MachinePrecision], N[(1.0 / N[(0.24013125253755718 / x), $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 := y + x \cdot \left(137.519416416 + x \cdot \left(78.6994924154 + x \cdot 4.16438922228\right)\right)\\
\mathbf{if}\;\frac{\left(x - 2\right) \cdot \left(x \cdot t_1 + z\right)}{t_0} \leq 10^{+280}:\\
\;\;\;\;\frac{x \cdot \left(\left(x - 2\right) \cdot t_1\right)}{t_0} + \frac{\left(x - 2\right) \cdot z}{t_0}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\frac{0.24013125253755718}{x}}\\
\end{array}
\end{array}
if (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) < 1e280Initial program 97.1%
*-commutative97.1%
associate-*r/98.8%
*-commutative98.8%
fma-def98.8%
*-commutative98.8%
fma-def98.8%
*-commutative98.8%
fma-def98.8%
fma-def98.8%
Simplified98.8%
Taylor expanded in z around inf 97.1%
if 1e280 < (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) Initial program 0.2%
*-commutative0.2%
associate-*r/2.1%
*-commutative2.1%
fma-def2.1%
*-commutative2.1%
fma-def2.1%
*-commutative2.1%
fma-def2.1%
fma-def2.1%
Simplified2.1%
Applied egg-rr2.1%
Taylor expanded in x around inf 96.8%
Final simplification97.0%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(/
(*
(- x 2.0)
(+
(*
x
(+
y
(*
x
(+ 137.519416416 (* x (+ 78.6994924154 (* x 4.16438922228)))))))
z))
(+
(*
x
(+
(* x (+ (* x (+ x 43.3400022514)) 263.505074721))
313.399215894))
47.066876606))))
(if (<= t_0 1e+280) t_0 (/ 1.0 (/ 0.24013125253755718 x)))))
double code(double x, double y, double z) {
double t_0 = ((x - 2.0) * ((x * (y + (x * (137.519416416 + (x * (78.6994924154 + (x * 4.16438922228))))))) + z)) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606);
double tmp;
if (t_0 <= 1e+280) {
tmp = t_0;
} else {
tmp = 1.0 / (0.24013125253755718 / x);
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = ((x - 2.0d0) * ((x * (y + (x * (137.519416416d0 + (x * (78.6994924154d0 + (x * 4.16438922228d0))))))) + z)) / ((x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0)
if (t_0 <= 1d+280) then
tmp = t_0
else
tmp = 1.0d0 / (0.24013125253755718d0 / x)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = ((x - 2.0) * ((x * (y + (x * (137.519416416 + (x * (78.6994924154 + (x * 4.16438922228))))))) + z)) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606);
double tmp;
if (t_0 <= 1e+280) {
tmp = t_0;
} else {
tmp = 1.0 / (0.24013125253755718 / x);
}
return tmp;
}
def code(x, y, z): t_0 = ((x - 2.0) * ((x * (y + (x * (137.519416416 + (x * (78.6994924154 + (x * 4.16438922228))))))) + z)) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) tmp = 0 if t_0 <= 1e+280: tmp = t_0 else: tmp = 1.0 / (0.24013125253755718 / x) return tmp
function code(x, y, z) t_0 = Float64(Float64(Float64(x - 2.0) * Float64(Float64(x * Float64(y + Float64(x * Float64(137.519416416 + Float64(x * Float64(78.6994924154 + Float64(x * 4.16438922228))))))) + z)) / Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) tmp = 0.0 if (t_0 <= 1e+280) tmp = t_0; else tmp = Float64(1.0 / Float64(0.24013125253755718 / x)); end return tmp end
function tmp_2 = code(x, y, z) t_0 = ((x - 2.0) * ((x * (y + (x * (137.519416416 + (x * (78.6994924154 + (x * 4.16438922228))))))) + z)) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606); tmp = 0.0; if (t_0 <= 1e+280) tmp = t_0; else tmp = 1.0 / (0.24013125253755718 / x); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(x * N[(y + N[(x * N[(137.519416416 + N[(x * N[(78.6994924154 + N[(x * 4.16438922228), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$0, 1e+280], t$95$0, N[(1.0 / N[(0.24013125253755718 / x), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{\left(x - 2\right) \cdot \left(x \cdot \left(y + x \cdot \left(137.519416416 + x \cdot \left(78.6994924154 + x \cdot 4.16438922228\right)\right)\right) + z\right)}{x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606}\\
\mathbf{if}\;t_0 \leq 10^{+280}:\\
\;\;\;\;t_0\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\frac{0.24013125253755718}{x}}\\
\end{array}
\end{array}
if (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) < 1e280Initial program 97.1%
if 1e280 < (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) Initial program 0.2%
*-commutative0.2%
associate-*r/2.1%
*-commutative2.1%
fma-def2.1%
*-commutative2.1%
fma-def2.1%
*-commutative2.1%
fma-def2.1%
fma-def2.1%
Simplified2.1%
Applied egg-rr2.1%
Taylor expanded in x around inf 96.8%
Final simplification97.0%
(FPCore (x y z)
:precision binary64
(if (<= x -5.3e+48)
(/ 1.0 (/ 0.24013125253755718 x))
(if (<= x -5.3e+20)
(/ y (* x x))
(if (<= x -6.2)
(/
(+ x -2.0)
(+
0.24013125253755718
(- (/ 5.86923874282773 x) (/ 55.572073733743466 (* x x)))))
(if (<= x 7.0)
(/
(* (- x 2.0) (+ z (* x (+ y (* x 137.519416416)))))
(+ 47.066876606 (* x (+ 313.399215894 (* x 263.505074721)))))
(if (<= x 3.2e+44)
(/
1.0
(/
(/
(+
(*
x
(+
(* x (+ (* x (+ x 43.3400022514)) 263.505074721))
313.399215894))
47.066876606)
(* x y))
(+ x -2.0)))
(/ (+ x -2.0) 0.24013125253755718)))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -5.3e+48) {
tmp = 1.0 / (0.24013125253755718 / x);
} else if (x <= -5.3e+20) {
tmp = y / (x * x);
} else if (x <= -6.2) {
tmp = (x + -2.0) / (0.24013125253755718 + ((5.86923874282773 / x) - (55.572073733743466 / (x * x))));
} else if (x <= 7.0) {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))));
} else if (x <= 3.2e+44) {
tmp = 1.0 / ((((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) / (x * y)) / (x + -2.0));
} else {
tmp = (x + -2.0) / 0.24013125253755718;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-5.3d+48)) then
tmp = 1.0d0 / (0.24013125253755718d0 / x)
else if (x <= (-5.3d+20)) then
tmp = y / (x * x)
else if (x <= (-6.2d0)) then
tmp = (x + (-2.0d0)) / (0.24013125253755718d0 + ((5.86923874282773d0 / x) - (55.572073733743466d0 / (x * x))))
else if (x <= 7.0d0) then
tmp = ((x - 2.0d0) * (z + (x * (y + (x * 137.519416416d0))))) / (47.066876606d0 + (x * (313.399215894d0 + (x * 263.505074721d0))))
else if (x <= 3.2d+44) then
tmp = 1.0d0 / ((((x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0) / (x * y)) / (x + (-2.0d0)))
else
tmp = (x + (-2.0d0)) / 0.24013125253755718d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -5.3e+48) {
tmp = 1.0 / (0.24013125253755718 / x);
} else if (x <= -5.3e+20) {
tmp = y / (x * x);
} else if (x <= -6.2) {
tmp = (x + -2.0) / (0.24013125253755718 + ((5.86923874282773 / x) - (55.572073733743466 / (x * x))));
} else if (x <= 7.0) {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))));
} else if (x <= 3.2e+44) {
tmp = 1.0 / ((((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) / (x * y)) / (x + -2.0));
} else {
tmp = (x + -2.0) / 0.24013125253755718;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -5.3e+48: tmp = 1.0 / (0.24013125253755718 / x) elif x <= -5.3e+20: tmp = y / (x * x) elif x <= -6.2: tmp = (x + -2.0) / (0.24013125253755718 + ((5.86923874282773 / x) - (55.572073733743466 / (x * x)))) elif x <= 7.0: tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721)))) elif x <= 3.2e+44: tmp = 1.0 / ((((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) / (x * y)) / (x + -2.0)) else: tmp = (x + -2.0) / 0.24013125253755718 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -5.3e+48) tmp = Float64(1.0 / Float64(0.24013125253755718 / x)); elseif (x <= -5.3e+20) tmp = Float64(y / Float64(x * x)); elseif (x <= -6.2) tmp = Float64(Float64(x + -2.0) / Float64(0.24013125253755718 + Float64(Float64(5.86923874282773 / x) - Float64(55.572073733743466 / Float64(x * x))))); elseif (x <= 7.0) tmp = Float64(Float64(Float64(x - 2.0) * Float64(z + Float64(x * Float64(y + Float64(x * 137.519416416))))) / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * 263.505074721))))); elseif (x <= 3.2e+44) tmp = Float64(1.0 / Float64(Float64(Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) / Float64(x * y)) / Float64(x + -2.0))); else tmp = Float64(Float64(x + -2.0) / 0.24013125253755718); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -5.3e+48) tmp = 1.0 / (0.24013125253755718 / x); elseif (x <= -5.3e+20) tmp = y / (x * x); elseif (x <= -6.2) tmp = (x + -2.0) / (0.24013125253755718 + ((5.86923874282773 / x) - (55.572073733743466 / (x * x)))); elseif (x <= 7.0) tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721)))); elseif (x <= 3.2e+44) tmp = 1.0 / ((((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) / (x * y)) / (x + -2.0)); else tmp = (x + -2.0) / 0.24013125253755718; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -5.3e+48], N[(1.0 / N[(0.24013125253755718 / x), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -5.3e+20], N[(y / N[(x * x), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -6.2], N[(N[(x + -2.0), $MachinePrecision] / N[(0.24013125253755718 + N[(N[(5.86923874282773 / x), $MachinePrecision] - N[(55.572073733743466 / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 7.0], N[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + N[(x * N[(y + N[(x * 137.519416416), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * 263.505074721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 3.2e+44], N[(1.0 / N[(N[(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] / N[(x * y), $MachinePrecision]), $MachinePrecision] / N[(x + -2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -5.3 \cdot 10^{+48}:\\
\;\;\;\;\frac{1}{\frac{0.24013125253755718}{x}}\\
\mathbf{elif}\;x \leq -5.3 \cdot 10^{+20}:\\
\;\;\;\;\frac{y}{x \cdot x}\\
\mathbf{elif}\;x \leq -6.2:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718 + \left(\frac{5.86923874282773}{x} - \frac{55.572073733743466}{x \cdot x}\right)}\\
\mathbf{elif}\;x \leq 7:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot \left(y + x \cdot 137.519416416\right)\right)}{47.066876606 + x \cdot \left(313.399215894 + x \cdot 263.505074721\right)}\\
\mathbf{elif}\;x \leq 3.2 \cdot 10^{+44}:\\
\;\;\;\;\frac{1}{\frac{\frac{x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606}{x \cdot y}}{x + -2}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718}\\
\end{array}
\end{array}
if x < -5.3e48Initial program 5.4%
*-commutative5.4%
associate-*r/8.8%
*-commutative8.8%
fma-def8.8%
*-commutative8.8%
fma-def8.8%
*-commutative8.8%
fma-def8.8%
fma-def8.8%
Simplified8.8%
Applied egg-rr8.8%
Taylor expanded in x around inf 99.6%
if -5.3e48 < x < -5.3e20Initial program 86.1%
Taylor expanded in x around 0 79.7%
*-commutative79.7%
Simplified79.7%
Taylor expanded in x around -inf 68.6%
+-commutative68.6%
mul-1-neg68.6%
unsub-neg68.6%
associate-*r/68.6%
metadata-eval68.6%
mul-1-neg68.6%
unsub-neg68.6%
unpow268.6%
Simplified68.6%
Taylor expanded in y around inf 68.7%
unpow268.7%
Simplified68.7%
if -5.3e20 < x < -6.20000000000000018Initial program 98.7%
associate-/l*99.0%
sub-neg99.0%
metadata-eval99.0%
fma-def99.0%
fma-def98.7%
fma-def98.6%
fma-def98.6%
fma-def98.6%
fma-def98.1%
fma-def98.1%
Simplified98.1%
Taylor expanded in x around inf 37.9%
associate--l+37.9%
associate-*r/37.9%
metadata-eval37.9%
associate-*r/37.9%
metadata-eval37.9%
unpow237.9%
Simplified37.9%
if -6.20000000000000018 < x < 7Initial program 99.7%
Taylor expanded in x around 0 98.1%
*-commutative98.1%
Simplified98.1%
Taylor expanded in x around 0 97.1%
*-commutative97.6%
Simplified97.1%
if 7 < x < 3.20000000000000004e44Initial program 75.5%
*-commutative75.5%
associate-*r/99.0%
*-commutative99.0%
fma-def99.0%
*-commutative99.0%
fma-def99.0%
*-commutative99.0%
fma-def99.0%
fma-def99.0%
Simplified99.0%
Applied egg-rr99.4%
Taylor expanded in y around inf 75.3%
if 3.20000000000000004e44 < x Initial program 4.1%
associate-/l*5.9%
sub-neg5.9%
metadata-eval5.9%
fma-def5.9%
fma-def5.9%
fma-def5.9%
fma-def5.9%
fma-def5.9%
fma-def5.9%
fma-def5.9%
Simplified5.9%
Taylor expanded in x around inf 96.0%
Final simplification94.8%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606)))
(if (<= x -6e+48)
(/ 1.0 (/ 0.24013125253755718 x))
(if (<= x -3.85e+18)
(/ y (* x x))
(if (<= x -0.00024)
(/ (+ x -2.0) (/ t_0 z))
(if (<= x 8.2e-38)
(+
(* z -0.0424927283095952)
(*
x
(-
(* 0.0212463641547976 (+ z (* y -2.0)))
(* z -0.28294182010212804))))
(if (<= x 9.6e+42)
(/ (* x (* (- x 2.0) y)) t_0)
(/ (+ x -2.0) 0.24013125253755718))))))))
double code(double x, double y, double z) {
double t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606;
double tmp;
if (x <= -6e+48) {
tmp = 1.0 / (0.24013125253755718 / x);
} else if (x <= -3.85e+18) {
tmp = y / (x * x);
} else if (x <= -0.00024) {
tmp = (x + -2.0) / (t_0 / z);
} else if (x <= 8.2e-38) {
tmp = (z * -0.0424927283095952) + (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804)));
} else if (x <= 9.6e+42) {
tmp = (x * ((x - 2.0) * y)) / t_0;
} else {
tmp = (x + -2.0) / 0.24013125253755718;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = (x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0
if (x <= (-6d+48)) then
tmp = 1.0d0 / (0.24013125253755718d0 / x)
else if (x <= (-3.85d+18)) then
tmp = y / (x * x)
else if (x <= (-0.00024d0)) then
tmp = (x + (-2.0d0)) / (t_0 / z)
else if (x <= 8.2d-38) then
tmp = (z * (-0.0424927283095952d0)) + (x * ((0.0212463641547976d0 * (z + (y * (-2.0d0)))) - (z * (-0.28294182010212804d0))))
else if (x <= 9.6d+42) then
tmp = (x * ((x - 2.0d0) * y)) / t_0
else
tmp = (x + (-2.0d0)) / 0.24013125253755718d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606;
double tmp;
if (x <= -6e+48) {
tmp = 1.0 / (0.24013125253755718 / x);
} else if (x <= -3.85e+18) {
tmp = y / (x * x);
} else if (x <= -0.00024) {
tmp = (x + -2.0) / (t_0 / z);
} else if (x <= 8.2e-38) {
tmp = (z * -0.0424927283095952) + (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804)));
} else if (x <= 9.6e+42) {
tmp = (x * ((x - 2.0) * y)) / t_0;
} else {
tmp = (x + -2.0) / 0.24013125253755718;
}
return tmp;
}
def code(x, y, z): t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606 tmp = 0 if x <= -6e+48: tmp = 1.0 / (0.24013125253755718 / x) elif x <= -3.85e+18: tmp = y / (x * x) elif x <= -0.00024: tmp = (x + -2.0) / (t_0 / z) elif x <= 8.2e-38: tmp = (z * -0.0424927283095952) + (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804))) elif x <= 9.6e+42: tmp = (x * ((x - 2.0) * y)) / t_0 else: tmp = (x + -2.0) / 0.24013125253755718 return tmp
function code(x, y, z) t_0 = Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) tmp = 0.0 if (x <= -6e+48) tmp = Float64(1.0 / Float64(0.24013125253755718 / x)); elseif (x <= -3.85e+18) tmp = Float64(y / Float64(x * x)); elseif (x <= -0.00024) tmp = Float64(Float64(x + -2.0) / Float64(t_0 / z)); elseif (x <= 8.2e-38) tmp = Float64(Float64(z * -0.0424927283095952) + Float64(x * Float64(Float64(0.0212463641547976 * Float64(z + Float64(y * -2.0))) - Float64(z * -0.28294182010212804)))); elseif (x <= 9.6e+42) tmp = Float64(Float64(x * Float64(Float64(x - 2.0) * y)) / t_0); else tmp = Float64(Float64(x + -2.0) / 0.24013125253755718); end return tmp end
function tmp_2 = code(x, y, z) t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606; tmp = 0.0; if (x <= -6e+48) tmp = 1.0 / (0.24013125253755718 / x); elseif (x <= -3.85e+18) tmp = y / (x * x); elseif (x <= -0.00024) tmp = (x + -2.0) / (t_0 / z); elseif (x <= 8.2e-38) tmp = (z * -0.0424927283095952) + (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804))); elseif (x <= 9.6e+42) tmp = (x * ((x - 2.0) * y)) / t_0; else tmp = (x + -2.0) / 0.24013125253755718; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]}, If[LessEqual[x, -6e+48], N[(1.0 / N[(0.24013125253755718 / x), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -3.85e+18], N[(y / N[(x * x), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -0.00024], N[(N[(x + -2.0), $MachinePrecision] / N[(t$95$0 / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 8.2e-38], 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], If[LessEqual[x, 9.6e+42], N[(N[(x * N[(N[(x - 2.0), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision] / t$95$0), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606\\
\mathbf{if}\;x \leq -6 \cdot 10^{+48}:\\
\;\;\;\;\frac{1}{\frac{0.24013125253755718}{x}}\\
\mathbf{elif}\;x \leq -3.85 \cdot 10^{+18}:\\
\;\;\;\;\frac{y}{x \cdot x}\\
\mathbf{elif}\;x \leq -0.00024:\\
\;\;\;\;\frac{x + -2}{\frac{t_0}{z}}\\
\mathbf{elif}\;x \leq 8.2 \cdot 10^{-38}:\\
\;\;\;\;z \cdot -0.0424927283095952 + x \cdot \left(0.0212463641547976 \cdot \left(z + y \cdot -2\right) - z \cdot -0.28294182010212804\right)\\
\mathbf{elif}\;x \leq 9.6 \cdot 10^{+42}:\\
\;\;\;\;\frac{x \cdot \left(\left(x - 2\right) \cdot y\right)}{t_0}\\
\mathbf{else}:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718}\\
\end{array}
\end{array}
if x < -5.9999999999999999e48Initial program 5.4%
*-commutative5.4%
associate-*r/8.8%
*-commutative8.8%
fma-def8.8%
*-commutative8.8%
fma-def8.8%
*-commutative8.8%
fma-def8.8%
fma-def8.8%
Simplified8.8%
Applied egg-rr8.8%
Taylor expanded in x around inf 99.6%
if -5.9999999999999999e48 < x < -3.85e18Initial program 86.1%
Taylor expanded in x around 0 79.7%
*-commutative79.7%
Simplified79.7%
Taylor expanded in x around -inf 68.6%
+-commutative68.6%
mul-1-neg68.6%
unsub-neg68.6%
associate-*r/68.6%
metadata-eval68.6%
mul-1-neg68.6%
unsub-neg68.6%
unpow268.6%
Simplified68.6%
Taylor expanded in y around inf 68.7%
unpow268.7%
Simplified68.7%
if -3.85e18 < x < -2.40000000000000006e-4Initial program 99.1%
associate-/l*99.1%
sub-neg99.1%
metadata-eval99.1%
fma-def99.3%
fma-def99.1%
fma-def99.0%
fma-def99.0%
fma-def99.0%
fma-def98.6%
fma-def98.6%
Simplified98.6%
Taylor expanded in z around inf 37.8%
if -2.40000000000000006e-4 < x < 8.1999999999999996e-38Initial program 99.7%
*-commutative99.7%
associate-*r/99.5%
*-commutative99.5%
fma-def99.5%
*-commutative99.5%
fma-def99.5%
*-commutative99.5%
fma-def99.5%
fma-def99.5%
Simplified99.5%
Taylor expanded in x around 0 96.2%
if 8.1999999999999996e-38 < x < 9.5999999999999994e42Initial program 93.3%
*-commutative93.3%
associate-*r/98.9%
*-commutative98.9%
fma-def98.9%
*-commutative98.9%
fma-def98.9%
*-commutative98.9%
fma-def98.9%
fma-def98.9%
Simplified98.9%
Taylor expanded in y around inf 65.7%
if 9.5999999999999994e42 < x Initial program 4.1%
associate-/l*7.7%
sub-neg7.7%
metadata-eval7.7%
fma-def7.7%
fma-def7.7%
fma-def7.7%
fma-def7.7%
fma-def7.7%
fma-def7.7%
fma-def7.7%
Simplified7.7%
Taylor expanded in x around inf 94.3%
Final simplification92.3%
(FPCore (x y z)
:precision binary64
(if (<= x -5.3e+48)
(/ 1.0 (/ 0.24013125253755718 x))
(if (<= x -1.35e+18)
(/ y (* x x))
(if (<= x -6.3)
(/
(+ x -2.0)
(+
0.24013125253755718
(- (/ 5.86923874282773 x) (/ 55.572073733743466 (* x x)))))
(if (<= x 7.0)
(/
(* (- x 2.0) (+ z (* x (+ y (* x 137.519416416)))))
(+ 47.066876606 (* x (+ 313.399215894 (* x 263.505074721)))))
(if (<= x 3.2e+44)
(/
(+ x -2.0)
(/
(+
(*
x
(+
(* x (+ (* x (+ x 43.3400022514)) 263.505074721))
313.399215894))
47.066876606)
(* x y)))
(/ (+ x -2.0) 0.24013125253755718)))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -5.3e+48) {
tmp = 1.0 / (0.24013125253755718 / x);
} else if (x <= -1.35e+18) {
tmp = y / (x * x);
} else if (x <= -6.3) {
tmp = (x + -2.0) / (0.24013125253755718 + ((5.86923874282773 / x) - (55.572073733743466 / (x * x))));
} else if (x <= 7.0) {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))));
} else if (x <= 3.2e+44) {
tmp = (x + -2.0) / (((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) / (x * y));
} else {
tmp = (x + -2.0) / 0.24013125253755718;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-5.3d+48)) then
tmp = 1.0d0 / (0.24013125253755718d0 / x)
else if (x <= (-1.35d+18)) then
tmp = y / (x * x)
else if (x <= (-6.3d0)) then
tmp = (x + (-2.0d0)) / (0.24013125253755718d0 + ((5.86923874282773d0 / x) - (55.572073733743466d0 / (x * x))))
else if (x <= 7.0d0) then
tmp = ((x - 2.0d0) * (z + (x * (y + (x * 137.519416416d0))))) / (47.066876606d0 + (x * (313.399215894d0 + (x * 263.505074721d0))))
else if (x <= 3.2d+44) then
tmp = (x + (-2.0d0)) / (((x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0) / (x * y))
else
tmp = (x + (-2.0d0)) / 0.24013125253755718d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -5.3e+48) {
tmp = 1.0 / (0.24013125253755718 / x);
} else if (x <= -1.35e+18) {
tmp = y / (x * x);
} else if (x <= -6.3) {
tmp = (x + -2.0) / (0.24013125253755718 + ((5.86923874282773 / x) - (55.572073733743466 / (x * x))));
} else if (x <= 7.0) {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))));
} else if (x <= 3.2e+44) {
tmp = (x + -2.0) / (((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) / (x * y));
} else {
tmp = (x + -2.0) / 0.24013125253755718;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -5.3e+48: tmp = 1.0 / (0.24013125253755718 / x) elif x <= -1.35e+18: tmp = y / (x * x) elif x <= -6.3: tmp = (x + -2.0) / (0.24013125253755718 + ((5.86923874282773 / x) - (55.572073733743466 / (x * x)))) elif x <= 7.0: tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721)))) elif x <= 3.2e+44: tmp = (x + -2.0) / (((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) / (x * y)) else: tmp = (x + -2.0) / 0.24013125253755718 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -5.3e+48) tmp = Float64(1.0 / Float64(0.24013125253755718 / x)); elseif (x <= -1.35e+18) tmp = Float64(y / Float64(x * x)); elseif (x <= -6.3) tmp = Float64(Float64(x + -2.0) / Float64(0.24013125253755718 + Float64(Float64(5.86923874282773 / x) - Float64(55.572073733743466 / Float64(x * x))))); elseif (x <= 7.0) tmp = Float64(Float64(Float64(x - 2.0) * Float64(z + Float64(x * Float64(y + Float64(x * 137.519416416))))) / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * 263.505074721))))); elseif (x <= 3.2e+44) tmp = Float64(Float64(x + -2.0) / Float64(Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) / Float64(x * y))); else tmp = Float64(Float64(x + -2.0) / 0.24013125253755718); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -5.3e+48) tmp = 1.0 / (0.24013125253755718 / x); elseif (x <= -1.35e+18) tmp = y / (x * x); elseif (x <= -6.3) tmp = (x + -2.0) / (0.24013125253755718 + ((5.86923874282773 / x) - (55.572073733743466 / (x * x)))); elseif (x <= 7.0) tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721)))); elseif (x <= 3.2e+44) tmp = (x + -2.0) / (((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) / (x * y)); else tmp = (x + -2.0) / 0.24013125253755718; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -5.3e+48], N[(1.0 / N[(0.24013125253755718 / x), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -1.35e+18], N[(y / N[(x * x), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -6.3], N[(N[(x + -2.0), $MachinePrecision] / N[(0.24013125253755718 + N[(N[(5.86923874282773 / x), $MachinePrecision] - N[(55.572073733743466 / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 7.0], N[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + N[(x * N[(y + N[(x * 137.519416416), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * 263.505074721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 3.2e+44], N[(N[(x + -2.0), $MachinePrecision] / N[(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] / N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -5.3 \cdot 10^{+48}:\\
\;\;\;\;\frac{1}{\frac{0.24013125253755718}{x}}\\
\mathbf{elif}\;x \leq -1.35 \cdot 10^{+18}:\\
\;\;\;\;\frac{y}{x \cdot x}\\
\mathbf{elif}\;x \leq -6.3:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718 + \left(\frac{5.86923874282773}{x} - \frac{55.572073733743466}{x \cdot x}\right)}\\
\mathbf{elif}\;x \leq 7:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot \left(y + x \cdot 137.519416416\right)\right)}{47.066876606 + x \cdot \left(313.399215894 + x \cdot 263.505074721\right)}\\
\mathbf{elif}\;x \leq 3.2 \cdot 10^{+44}:\\
\;\;\;\;\frac{x + -2}{\frac{x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606}{x \cdot y}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718}\\
\end{array}
\end{array}
if x < -5.3e48Initial program 5.4%
*-commutative5.4%
associate-*r/8.8%
*-commutative8.8%
fma-def8.8%
*-commutative8.8%
fma-def8.8%
*-commutative8.8%
fma-def8.8%
fma-def8.8%
Simplified8.8%
Applied egg-rr8.8%
Taylor expanded in x around inf 99.6%
if -5.3e48 < x < -1.35e18Initial program 86.1%
Taylor expanded in x around 0 79.7%
*-commutative79.7%
Simplified79.7%
Taylor expanded in x around -inf 68.6%
+-commutative68.6%
mul-1-neg68.6%
unsub-neg68.6%
associate-*r/68.6%
metadata-eval68.6%
mul-1-neg68.6%
unsub-neg68.6%
unpow268.6%
Simplified68.6%
Taylor expanded in y around inf 68.7%
unpow268.7%
Simplified68.7%
if -1.35e18 < x < -6.29999999999999982Initial program 98.7%
associate-/l*99.0%
sub-neg99.0%
metadata-eval99.0%
fma-def99.0%
fma-def98.7%
fma-def98.6%
fma-def98.6%
fma-def98.6%
fma-def98.1%
fma-def98.1%
Simplified98.1%
Taylor expanded in x around inf 37.9%
associate--l+37.9%
associate-*r/37.9%
metadata-eval37.9%
associate-*r/37.9%
metadata-eval37.9%
unpow237.9%
Simplified37.9%
if -6.29999999999999982 < x < 7Initial program 99.7%
Taylor expanded in x around 0 98.1%
*-commutative98.1%
Simplified98.1%
Taylor expanded in x around 0 97.1%
*-commutative97.6%
Simplified97.1%
if 7 < x < 3.20000000000000004e44Initial program 75.5%
associate-/l*99.3%
sub-neg99.3%
metadata-eval99.3%
fma-def99.3%
fma-def99.3%
fma-def99.3%
fma-def99.3%
fma-def99.3%
fma-def99.3%
fma-def99.3%
Simplified99.3%
Taylor expanded in y around inf 75.0%
if 3.20000000000000004e44 < x Initial program 4.1%
associate-/l*5.9%
sub-neg5.9%
metadata-eval5.9%
fma-def5.9%
fma-def5.9%
fma-def5.9%
fma-def5.9%
fma-def5.9%
fma-def5.9%
fma-def5.9%
Simplified5.9%
Taylor expanded in x around inf 96.0%
Final simplification94.8%
(FPCore (x y z)
:precision binary64
(if (<= x -5.6e+48)
(/ 1.0 (/ 0.24013125253755718 x))
(if (<= x 9.6e+42)
(/
(* (- x 2.0) (+ z (* x (+ y (* x 137.519416416)))))
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))
(/ (+ x -2.0) 0.24013125253755718))))
double code(double x, double y, double z) {
double tmp;
if (x <= -5.6e+48) {
tmp = 1.0 / (0.24013125253755718 / x);
} else if (x <= 9.6e+42) {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606);
} else {
tmp = (x + -2.0) / 0.24013125253755718;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-5.6d+48)) then
tmp = 1.0d0 / (0.24013125253755718d0 / x)
else if (x <= 9.6d+42) then
tmp = ((x - 2.0d0) * (z + (x * (y + (x * 137.519416416d0))))) / ((x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0)
else
tmp = (x + (-2.0d0)) / 0.24013125253755718d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -5.6e+48) {
tmp = 1.0 / (0.24013125253755718 / x);
} else if (x <= 9.6e+42) {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606);
} else {
tmp = (x + -2.0) / 0.24013125253755718;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -5.6e+48: tmp = 1.0 / (0.24013125253755718 / x) elif x <= 9.6e+42: tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) else: tmp = (x + -2.0) / 0.24013125253755718 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -5.6e+48) tmp = Float64(1.0 / Float64(0.24013125253755718 / x)); elseif (x <= 9.6e+42) tmp = Float64(Float64(Float64(x - 2.0) * Float64(z + Float64(x * Float64(y + Float64(x * 137.519416416))))) / Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)); else tmp = Float64(Float64(x + -2.0) / 0.24013125253755718); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -5.6e+48) tmp = 1.0 / (0.24013125253755718 / x); elseif (x <= 9.6e+42) tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606); else tmp = (x + -2.0) / 0.24013125253755718; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -5.6e+48], N[(1.0 / N[(0.24013125253755718 / x), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 9.6e+42], N[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + N[(x * N[(y + N[(x * 137.519416416), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -5.6 \cdot 10^{+48}:\\
\;\;\;\;\frac{1}{\frac{0.24013125253755718}{x}}\\
\mathbf{elif}\;x \leq 9.6 \cdot 10^{+42}:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot \left(y + x \cdot 137.519416416\right)\right)}{x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606}\\
\mathbf{else}:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718}\\
\end{array}
\end{array}
if x < -5.60000000000000025e48Initial program 5.4%
*-commutative5.4%
associate-*r/8.8%
*-commutative8.8%
fma-def8.8%
*-commutative8.8%
fma-def8.8%
*-commutative8.8%
fma-def8.8%
fma-def8.8%
Simplified8.8%
Applied egg-rr8.8%
Taylor expanded in x around inf 99.6%
if -5.60000000000000025e48 < x < 9.5999999999999994e42Initial program 98.3%
Taylor expanded in x around 0 95.2%
*-commutative95.2%
Simplified95.2%
if 9.5999999999999994e42 < x Initial program 4.1%
associate-/l*7.7%
sub-neg7.7%
metadata-eval7.7%
fma-def7.7%
fma-def7.7%
fma-def7.7%
fma-def7.7%
fma-def7.7%
fma-def7.7%
fma-def7.7%
Simplified7.7%
Taylor expanded in x around inf 94.3%
Final simplification95.9%
(FPCore (x y z)
:precision binary64
(if (<= x -6e+48)
(/ 1.0 (/ 0.24013125253755718 x))
(if (<= x -3.35e+19)
(/ y (* x x))
(if (<= x -2.3e-5)
(/
(* (- x 2.0) z)
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))
(if (<= x 8.2e-38)
(+
(* z -0.0424927283095952)
(*
x
(-
(* 0.0212463641547976 (+ z (* y -2.0)))
(* z -0.28294182010212804))))
(if (<= x 9.6e+42)
(/
(* (+ x -2.0) (* x y))
(+
47.066876606
(* x (+ 313.399215894 (* (+ x 43.3400022514) (* x x))))))
(/ (+ x -2.0) 0.24013125253755718)))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -6e+48) {
tmp = 1.0 / (0.24013125253755718 / x);
} else if (x <= -3.35e+19) {
tmp = y / (x * x);
} else if (x <= -2.3e-5) {
tmp = ((x - 2.0) * z) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606);
} else if (x <= 8.2e-38) {
tmp = (z * -0.0424927283095952) + (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804)));
} else if (x <= 9.6e+42) {
tmp = ((x + -2.0) * (x * y)) / (47.066876606 + (x * (313.399215894 + ((x + 43.3400022514) * (x * x)))));
} else {
tmp = (x + -2.0) / 0.24013125253755718;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-6d+48)) then
tmp = 1.0d0 / (0.24013125253755718d0 / x)
else if (x <= (-3.35d+19)) then
tmp = y / (x * x)
else if (x <= (-2.3d-5)) then
tmp = ((x - 2.0d0) * z) / ((x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0)
else if (x <= 8.2d-38) then
tmp = (z * (-0.0424927283095952d0)) + (x * ((0.0212463641547976d0 * (z + (y * (-2.0d0)))) - (z * (-0.28294182010212804d0))))
else if (x <= 9.6d+42) then
tmp = ((x + (-2.0d0)) * (x * y)) / (47.066876606d0 + (x * (313.399215894d0 + ((x + 43.3400022514d0) * (x * x)))))
else
tmp = (x + (-2.0d0)) / 0.24013125253755718d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -6e+48) {
tmp = 1.0 / (0.24013125253755718 / x);
} else if (x <= -3.35e+19) {
tmp = y / (x * x);
} else if (x <= -2.3e-5) {
tmp = ((x - 2.0) * z) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606);
} else if (x <= 8.2e-38) {
tmp = (z * -0.0424927283095952) + (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804)));
} else if (x <= 9.6e+42) {
tmp = ((x + -2.0) * (x * y)) / (47.066876606 + (x * (313.399215894 + ((x + 43.3400022514) * (x * x)))));
} else {
tmp = (x + -2.0) / 0.24013125253755718;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -6e+48: tmp = 1.0 / (0.24013125253755718 / x) elif x <= -3.35e+19: tmp = y / (x * x) elif x <= -2.3e-5: tmp = ((x - 2.0) * z) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) elif x <= 8.2e-38: tmp = (z * -0.0424927283095952) + (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804))) elif x <= 9.6e+42: tmp = ((x + -2.0) * (x * y)) / (47.066876606 + (x * (313.399215894 + ((x + 43.3400022514) * (x * x))))) else: tmp = (x + -2.0) / 0.24013125253755718 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -6e+48) tmp = Float64(1.0 / Float64(0.24013125253755718 / x)); elseif (x <= -3.35e+19) tmp = Float64(y / Float64(x * x)); elseif (x <= -2.3e-5) tmp = Float64(Float64(Float64(x - 2.0) * z) / Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)); elseif (x <= 8.2e-38) tmp = Float64(Float64(z * -0.0424927283095952) + Float64(x * Float64(Float64(0.0212463641547976 * Float64(z + Float64(y * -2.0))) - Float64(z * -0.28294182010212804)))); elseif (x <= 9.6e+42) tmp = Float64(Float64(Float64(x + -2.0) * Float64(x * y)) / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(Float64(x + 43.3400022514) * Float64(x * x)))))); else tmp = Float64(Float64(x + -2.0) / 0.24013125253755718); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -6e+48) tmp = 1.0 / (0.24013125253755718 / x); elseif (x <= -3.35e+19) tmp = y / (x * x); elseif (x <= -2.3e-5) tmp = ((x - 2.0) * z) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606); elseif (x <= 8.2e-38) tmp = (z * -0.0424927283095952) + (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804))); elseif (x <= 9.6e+42) tmp = ((x + -2.0) * (x * y)) / (47.066876606 + (x * (313.399215894 + ((x + 43.3400022514) * (x * x))))); else tmp = (x + -2.0) / 0.24013125253755718; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -6e+48], N[(1.0 / N[(0.24013125253755718 / x), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -3.35e+19], N[(y / N[(x * x), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -2.3e-5], N[(N[(N[(x - 2.0), $MachinePrecision] * z), $MachinePrecision] / N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 8.2e-38], 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], If[LessEqual[x, 9.6e+42], N[(N[(N[(x + -2.0), $MachinePrecision] * N[(x * y), $MachinePrecision]), $MachinePrecision] / N[(47.066876606 + N[(x * N[(313.399215894 + N[(N[(x + 43.3400022514), $MachinePrecision] * N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -6 \cdot 10^{+48}:\\
\;\;\;\;\frac{1}{\frac{0.24013125253755718}{x}}\\
\mathbf{elif}\;x \leq -3.35 \cdot 10^{+19}:\\
\;\;\;\;\frac{y}{x \cdot x}\\
\mathbf{elif}\;x \leq -2.3 \cdot 10^{-5}:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot z}{x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606}\\
\mathbf{elif}\;x \leq 8.2 \cdot 10^{-38}:\\
\;\;\;\;z \cdot -0.0424927283095952 + x \cdot \left(0.0212463641547976 \cdot \left(z + y \cdot -2\right) - z \cdot -0.28294182010212804\right)\\
\mathbf{elif}\;x \leq 9.6 \cdot 10^{+42}:\\
\;\;\;\;\frac{\left(x + -2\right) \cdot \left(x \cdot y\right)}{47.066876606 + x \cdot \left(313.399215894 + \left(x + 43.3400022514\right) \cdot \left(x \cdot x\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718}\\
\end{array}
\end{array}
if x < -5.9999999999999999e48Initial program 5.4%
*-commutative5.4%
associate-*r/8.8%
*-commutative8.8%
fma-def8.8%
*-commutative8.8%
fma-def8.8%
*-commutative8.8%
fma-def8.8%
fma-def8.8%
Simplified8.8%
Applied egg-rr8.8%
Taylor expanded in x around inf 99.6%
if -5.9999999999999999e48 < x < -3.35e19Initial program 86.1%
Taylor expanded in x around 0 79.7%
*-commutative79.7%
Simplified79.7%
Taylor expanded in x around -inf 68.6%
+-commutative68.6%
mul-1-neg68.6%
unsub-neg68.6%
associate-*r/68.6%
metadata-eval68.6%
mul-1-neg68.6%
unsub-neg68.6%
unpow268.6%
Simplified68.6%
Taylor expanded in y around inf 68.7%
unpow268.7%
Simplified68.7%
if -3.35e19 < x < -2.3e-5Initial program 99.1%
*-commutative99.1%
associate-*r/98.6%
*-commutative98.6%
fma-def98.6%
*-commutative98.6%
fma-def98.6%
*-commutative98.6%
fma-def98.4%
fma-def98.4%
Simplified98.5%
Taylor expanded in z around inf 37.8%
if -2.3e-5 < x < 8.1999999999999996e-38Initial program 99.7%
*-commutative99.7%
associate-*r/99.5%
*-commutative99.5%
fma-def99.5%
*-commutative99.5%
fma-def99.5%
*-commutative99.5%
fma-def99.5%
fma-def99.5%
Simplified99.5%
Taylor expanded in x around 0 96.2%
if 8.1999999999999996e-38 < x < 9.5999999999999994e42Initial program 93.3%
Taylor expanded in x around inf 81.5%
cube-mult81.5%
unpow281.5%
distribute-rgt-out81.5%
unpow281.5%
associate-*r*81.4%
+-commutative81.4%
Simplified81.4%
Taylor expanded in y around inf 63.2%
associate-*r*63.1%
sub-neg63.1%
metadata-eval63.1%
unpow263.1%
+-commutative63.1%
Simplified63.1%
if 9.5999999999999994e42 < x Initial program 4.1%
associate-/l*7.7%
sub-neg7.7%
metadata-eval7.7%
fma-def7.7%
fma-def7.7%
fma-def7.7%
fma-def7.7%
fma-def7.7%
fma-def7.7%
fma-def7.7%
Simplified7.7%
Taylor expanded in x around inf 94.3%
Final simplification92.1%
(FPCore (x y z)
:precision binary64
(if (<= x -5.6e+48)
(/ 1.0 (/ 0.24013125253755718 x))
(if (<= x -7.4e+18)
(/ y (* x x))
(if (<= x -6.5e-5)
(/
(+ x -2.0)
(/
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606)
z))
(if (<= x 8.2e-38)
(+
(* z -0.0424927283095952)
(*
x
(-
(* 0.0212463641547976 (+ z (* y -2.0)))
(* z -0.28294182010212804))))
(if (<= x 9.6e+42)
(/
(* (+ x -2.0) (* x y))
(+
47.066876606
(* x (+ 313.399215894 (* (+ x 43.3400022514) (* x x))))))
(/ (+ x -2.0) 0.24013125253755718)))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -5.6e+48) {
tmp = 1.0 / (0.24013125253755718 / x);
} else if (x <= -7.4e+18) {
tmp = y / (x * x);
} else if (x <= -6.5e-5) {
tmp = (x + -2.0) / (((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) / z);
} else if (x <= 8.2e-38) {
tmp = (z * -0.0424927283095952) + (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804)));
} else if (x <= 9.6e+42) {
tmp = ((x + -2.0) * (x * y)) / (47.066876606 + (x * (313.399215894 + ((x + 43.3400022514) * (x * x)))));
} else {
tmp = (x + -2.0) / 0.24013125253755718;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-5.6d+48)) then
tmp = 1.0d0 / (0.24013125253755718d0 / x)
else if (x <= (-7.4d+18)) then
tmp = y / (x * x)
else if (x <= (-6.5d-5)) then
tmp = (x + (-2.0d0)) / (((x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0) / z)
else if (x <= 8.2d-38) then
tmp = (z * (-0.0424927283095952d0)) + (x * ((0.0212463641547976d0 * (z + (y * (-2.0d0)))) - (z * (-0.28294182010212804d0))))
else if (x <= 9.6d+42) then
tmp = ((x + (-2.0d0)) * (x * y)) / (47.066876606d0 + (x * (313.399215894d0 + ((x + 43.3400022514d0) * (x * x)))))
else
tmp = (x + (-2.0d0)) / 0.24013125253755718d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -5.6e+48) {
tmp = 1.0 / (0.24013125253755718 / x);
} else if (x <= -7.4e+18) {
tmp = y / (x * x);
} else if (x <= -6.5e-5) {
tmp = (x + -2.0) / (((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) / z);
} else if (x <= 8.2e-38) {
tmp = (z * -0.0424927283095952) + (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804)));
} else if (x <= 9.6e+42) {
tmp = ((x + -2.0) * (x * y)) / (47.066876606 + (x * (313.399215894 + ((x + 43.3400022514) * (x * x)))));
} else {
tmp = (x + -2.0) / 0.24013125253755718;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -5.6e+48: tmp = 1.0 / (0.24013125253755718 / x) elif x <= -7.4e+18: tmp = y / (x * x) elif x <= -6.5e-5: tmp = (x + -2.0) / (((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) / z) elif x <= 8.2e-38: tmp = (z * -0.0424927283095952) + (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804))) elif x <= 9.6e+42: tmp = ((x + -2.0) * (x * y)) / (47.066876606 + (x * (313.399215894 + ((x + 43.3400022514) * (x * x))))) else: tmp = (x + -2.0) / 0.24013125253755718 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -5.6e+48) tmp = Float64(1.0 / Float64(0.24013125253755718 / x)); elseif (x <= -7.4e+18) tmp = Float64(y / Float64(x * x)); elseif (x <= -6.5e-5) tmp = Float64(Float64(x + -2.0) / Float64(Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) / z)); elseif (x <= 8.2e-38) tmp = Float64(Float64(z * -0.0424927283095952) + Float64(x * Float64(Float64(0.0212463641547976 * Float64(z + Float64(y * -2.0))) - Float64(z * -0.28294182010212804)))); elseif (x <= 9.6e+42) tmp = Float64(Float64(Float64(x + -2.0) * Float64(x * y)) / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(Float64(x + 43.3400022514) * Float64(x * x)))))); else tmp = Float64(Float64(x + -2.0) / 0.24013125253755718); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -5.6e+48) tmp = 1.0 / (0.24013125253755718 / x); elseif (x <= -7.4e+18) tmp = y / (x * x); elseif (x <= -6.5e-5) tmp = (x + -2.0) / (((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) / z); elseif (x <= 8.2e-38) tmp = (z * -0.0424927283095952) + (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804))); elseif (x <= 9.6e+42) tmp = ((x + -2.0) * (x * y)) / (47.066876606 + (x * (313.399215894 + ((x + 43.3400022514) * (x * x))))); else tmp = (x + -2.0) / 0.24013125253755718; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -5.6e+48], N[(1.0 / N[(0.24013125253755718 / x), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -7.4e+18], N[(y / N[(x * x), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -6.5e-5], N[(N[(x + -2.0), $MachinePrecision] / N[(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] / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 8.2e-38], 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], If[LessEqual[x, 9.6e+42], N[(N[(N[(x + -2.0), $MachinePrecision] * N[(x * y), $MachinePrecision]), $MachinePrecision] / N[(47.066876606 + N[(x * N[(313.399215894 + N[(N[(x + 43.3400022514), $MachinePrecision] * N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -5.6 \cdot 10^{+48}:\\
\;\;\;\;\frac{1}{\frac{0.24013125253755718}{x}}\\
\mathbf{elif}\;x \leq -7.4 \cdot 10^{+18}:\\
\;\;\;\;\frac{y}{x \cdot x}\\
\mathbf{elif}\;x \leq -6.5 \cdot 10^{-5}:\\
\;\;\;\;\frac{x + -2}{\frac{x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606}{z}}\\
\mathbf{elif}\;x \leq 8.2 \cdot 10^{-38}:\\
\;\;\;\;z \cdot -0.0424927283095952 + x \cdot \left(0.0212463641547976 \cdot \left(z + y \cdot -2\right) - z \cdot -0.28294182010212804\right)\\
\mathbf{elif}\;x \leq 9.6 \cdot 10^{+42}:\\
\;\;\;\;\frac{\left(x + -2\right) \cdot \left(x \cdot y\right)}{47.066876606 + x \cdot \left(313.399215894 + \left(x + 43.3400022514\right) \cdot \left(x \cdot x\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718}\\
\end{array}
\end{array}
if x < -5.60000000000000025e48Initial program 5.4%
*-commutative5.4%
associate-*r/8.8%
*-commutative8.8%
fma-def8.8%
*-commutative8.8%
fma-def8.8%
*-commutative8.8%
fma-def8.8%
fma-def8.8%
Simplified8.8%
Applied egg-rr8.8%
Taylor expanded in x around inf 99.6%
if -5.60000000000000025e48 < x < -7.4e18Initial program 86.1%
Taylor expanded in x around 0 79.7%
*-commutative79.7%
Simplified79.7%
Taylor expanded in x around -inf 68.6%
+-commutative68.6%
mul-1-neg68.6%
unsub-neg68.6%
associate-*r/68.6%
metadata-eval68.6%
mul-1-neg68.6%
unsub-neg68.6%
unpow268.6%
Simplified68.6%
Taylor expanded in y around inf 68.7%
unpow268.7%
Simplified68.7%
if -7.4e18 < x < -6.49999999999999943e-5Initial program 99.1%
associate-/l*99.1%
sub-neg99.1%
metadata-eval99.1%
fma-def99.3%
fma-def99.1%
fma-def99.0%
fma-def99.0%
fma-def99.0%
fma-def98.6%
fma-def98.6%
Simplified98.6%
Taylor expanded in z around inf 37.8%
if -6.49999999999999943e-5 < x < 8.1999999999999996e-38Initial program 99.7%
*-commutative99.7%
associate-*r/99.5%
*-commutative99.5%
fma-def99.5%
*-commutative99.5%
fma-def99.5%
*-commutative99.5%
fma-def99.5%
fma-def99.5%
Simplified99.5%
Taylor expanded in x around 0 96.2%
if 8.1999999999999996e-38 < x < 9.5999999999999994e42Initial program 93.3%
Taylor expanded in x around inf 81.5%
cube-mult81.5%
unpow281.5%
distribute-rgt-out81.5%
unpow281.5%
associate-*r*81.4%
+-commutative81.4%
Simplified81.4%
Taylor expanded in y around inf 63.2%
associate-*r*63.1%
sub-neg63.1%
metadata-eval63.1%
unpow263.1%
+-commutative63.1%
Simplified63.1%
if 9.5999999999999994e42 < x Initial program 4.1%
associate-/l*7.7%
sub-neg7.7%
metadata-eval7.7%
fma-def7.7%
fma-def7.7%
fma-def7.7%
fma-def7.7%
fma-def7.7%
fma-def7.7%
fma-def7.7%
Simplified7.7%
Taylor expanded in x around inf 94.3%
Final simplification92.1%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (/ y (* x x))))
(if (<= x -5.3e+48)
(/ 1.0 (/ 0.24013125253755718 x))
(if (<= x -4.6e+18)
t_0
(if (<= x -6.3)
(/
(+ x -2.0)
(+
0.24013125253755718
(- (/ 5.86923874282773 x) (/ 55.572073733743466 (* x x)))))
(if (<= x 2500.0)
(/
(* (- x 2.0) (+ z (* x (+ y (* x 137.519416416)))))
(+ 47.066876606 (* x (+ 313.399215894 (* x 263.505074721)))))
(if (<= x 3.2e+44) t_0 (/ (+ x -2.0) 0.24013125253755718))))))))
double code(double x, double y, double z) {
double t_0 = y / (x * x);
double tmp;
if (x <= -5.3e+48) {
tmp = 1.0 / (0.24013125253755718 / x);
} else if (x <= -4.6e+18) {
tmp = t_0;
} else if (x <= -6.3) {
tmp = (x + -2.0) / (0.24013125253755718 + ((5.86923874282773 / x) - (55.572073733743466 / (x * x))));
} else if (x <= 2500.0) {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))));
} else if (x <= 3.2e+44) {
tmp = t_0;
} else {
tmp = (x + -2.0) / 0.24013125253755718;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = y / (x * x)
if (x <= (-5.3d+48)) then
tmp = 1.0d0 / (0.24013125253755718d0 / x)
else if (x <= (-4.6d+18)) then
tmp = t_0
else if (x <= (-6.3d0)) then
tmp = (x + (-2.0d0)) / (0.24013125253755718d0 + ((5.86923874282773d0 / x) - (55.572073733743466d0 / (x * x))))
else if (x <= 2500.0d0) then
tmp = ((x - 2.0d0) * (z + (x * (y + (x * 137.519416416d0))))) / (47.066876606d0 + (x * (313.399215894d0 + (x * 263.505074721d0))))
else if (x <= 3.2d+44) then
tmp = t_0
else
tmp = (x + (-2.0d0)) / 0.24013125253755718d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = y / (x * x);
double tmp;
if (x <= -5.3e+48) {
tmp = 1.0 / (0.24013125253755718 / x);
} else if (x <= -4.6e+18) {
tmp = t_0;
} else if (x <= -6.3) {
tmp = (x + -2.0) / (0.24013125253755718 + ((5.86923874282773 / x) - (55.572073733743466 / (x * x))));
} else if (x <= 2500.0) {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))));
} else if (x <= 3.2e+44) {
tmp = t_0;
} else {
tmp = (x + -2.0) / 0.24013125253755718;
}
return tmp;
}
def code(x, y, z): t_0 = y / (x * x) tmp = 0 if x <= -5.3e+48: tmp = 1.0 / (0.24013125253755718 / x) elif x <= -4.6e+18: tmp = t_0 elif x <= -6.3: tmp = (x + -2.0) / (0.24013125253755718 + ((5.86923874282773 / x) - (55.572073733743466 / (x * x)))) elif x <= 2500.0: tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721)))) elif x <= 3.2e+44: tmp = t_0 else: tmp = (x + -2.0) / 0.24013125253755718 return tmp
function code(x, y, z) t_0 = Float64(y / Float64(x * x)) tmp = 0.0 if (x <= -5.3e+48) tmp = Float64(1.0 / Float64(0.24013125253755718 / x)); elseif (x <= -4.6e+18) tmp = t_0; elseif (x <= -6.3) tmp = Float64(Float64(x + -2.0) / Float64(0.24013125253755718 + Float64(Float64(5.86923874282773 / x) - Float64(55.572073733743466 / Float64(x * x))))); elseif (x <= 2500.0) tmp = Float64(Float64(Float64(x - 2.0) * Float64(z + Float64(x * Float64(y + Float64(x * 137.519416416))))) / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * 263.505074721))))); elseif (x <= 3.2e+44) tmp = t_0; else tmp = Float64(Float64(x + -2.0) / 0.24013125253755718); end return tmp end
function tmp_2 = code(x, y, z) t_0 = y / (x * x); tmp = 0.0; if (x <= -5.3e+48) tmp = 1.0 / (0.24013125253755718 / x); elseif (x <= -4.6e+18) tmp = t_0; elseif (x <= -6.3) tmp = (x + -2.0) / (0.24013125253755718 + ((5.86923874282773 / x) - (55.572073733743466 / (x * x)))); elseif (x <= 2500.0) tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721)))); elseif (x <= 3.2e+44) tmp = t_0; else tmp = (x + -2.0) / 0.24013125253755718; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(y / N[(x * x), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -5.3e+48], N[(1.0 / N[(0.24013125253755718 / x), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -4.6e+18], t$95$0, If[LessEqual[x, -6.3], N[(N[(x + -2.0), $MachinePrecision] / N[(0.24013125253755718 + N[(N[(5.86923874282773 / x), $MachinePrecision] - N[(55.572073733743466 / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2500.0], N[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + N[(x * N[(y + N[(x * 137.519416416), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * 263.505074721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 3.2e+44], t$95$0, N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{y}{x \cdot x}\\
\mathbf{if}\;x \leq -5.3 \cdot 10^{+48}:\\
\;\;\;\;\frac{1}{\frac{0.24013125253755718}{x}}\\
\mathbf{elif}\;x \leq -4.6 \cdot 10^{+18}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;x \leq -6.3:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718 + \left(\frac{5.86923874282773}{x} - \frac{55.572073733743466}{x \cdot x}\right)}\\
\mathbf{elif}\;x \leq 2500:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot \left(y + x \cdot 137.519416416\right)\right)}{47.066876606 + x \cdot \left(313.399215894 + x \cdot 263.505074721\right)}\\
\mathbf{elif}\;x \leq 3.2 \cdot 10^{+44}:\\
\;\;\;\;t_0\\
\mathbf{else}:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718}\\
\end{array}
\end{array}
if x < -5.3e48Initial program 5.4%
*-commutative5.4%
associate-*r/8.8%
*-commutative8.8%
fma-def8.8%
*-commutative8.8%
fma-def8.8%
*-commutative8.8%
fma-def8.8%
fma-def8.8%
Simplified8.8%
Applied egg-rr8.8%
Taylor expanded in x around inf 99.6%
if -5.3e48 < x < -4.6e18 or 2500 < x < 3.20000000000000004e44Initial program 80.5%
Taylor expanded in x around 0 77.5%
*-commutative77.5%
Simplified77.5%
Taylor expanded in x around -inf 69.5%
+-commutative69.5%
mul-1-neg69.5%
unsub-neg69.5%
associate-*r/69.5%
metadata-eval69.5%
mul-1-neg69.5%
unsub-neg69.5%
unpow269.5%
Simplified69.5%
Taylor expanded in y around inf 69.8%
unpow269.8%
Simplified69.8%
if -4.6e18 < x < -6.29999999999999982Initial program 98.7%
associate-/l*99.0%
sub-neg99.0%
metadata-eval99.0%
fma-def99.0%
fma-def98.7%
fma-def98.6%
fma-def98.6%
fma-def98.6%
fma-def98.1%
fma-def98.1%
Simplified98.1%
Taylor expanded in x around inf 37.9%
associate--l+37.9%
associate-*r/37.9%
metadata-eval37.9%
associate-*r/37.9%
metadata-eval37.9%
unpow237.9%
Simplified37.9%
if -6.29999999999999982 < x < 2500Initial program 99.7%
Taylor expanded in x around 0 98.1%
*-commutative98.1%
Simplified98.1%
Taylor expanded in x around 0 97.1%
*-commutative97.6%
Simplified97.1%
if 3.20000000000000004e44 < x Initial program 4.1%
associate-/l*5.9%
sub-neg5.9%
metadata-eval5.9%
fma-def5.9%
fma-def5.9%
fma-def5.9%
fma-def5.9%
fma-def5.9%
fma-def5.9%
fma-def5.9%
Simplified5.9%
Taylor expanded in x around inf 96.0%
Final simplification94.7%
(FPCore (x y z)
:precision binary64
(if (<= x -6e+48)
(/ 1.0 (/ 0.24013125253755718 x))
(if (<= x 9.6e+42)
(/
(* (- x 2.0) (+ z (* x (+ y (* x 137.519416416)))))
(+ 47.066876606 (* x (+ 313.399215894 (* x (* x (+ x 43.3400022514)))))))
(/ (+ x -2.0) 0.24013125253755718))))
double code(double x, double y, double z) {
double tmp;
if (x <= -6e+48) {
tmp = 1.0 / (0.24013125253755718 / x);
} else if (x <= 9.6e+42) {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * (x * (x + 43.3400022514))))));
} else {
tmp = (x + -2.0) / 0.24013125253755718;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-6d+48)) then
tmp = 1.0d0 / (0.24013125253755718d0 / x)
else if (x <= 9.6d+42) then
tmp = ((x - 2.0d0) * (z + (x * (y + (x * 137.519416416d0))))) / (47.066876606d0 + (x * (313.399215894d0 + (x * (x * (x + 43.3400022514d0))))))
else
tmp = (x + (-2.0d0)) / 0.24013125253755718d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -6e+48) {
tmp = 1.0 / (0.24013125253755718 / x);
} else if (x <= 9.6e+42) {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * (x * (x + 43.3400022514))))));
} else {
tmp = (x + -2.0) / 0.24013125253755718;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -6e+48: tmp = 1.0 / (0.24013125253755718 / x) elif x <= 9.6e+42: tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * (x * (x + 43.3400022514)))))) else: tmp = (x + -2.0) / 0.24013125253755718 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -6e+48) tmp = Float64(1.0 / Float64(0.24013125253755718 / x)); elseif (x <= 9.6e+42) tmp = Float64(Float64(Float64(x - 2.0) * Float64(z + Float64(x * Float64(y + Float64(x * 137.519416416))))) / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * Float64(x * Float64(x + 43.3400022514))))))); else tmp = Float64(Float64(x + -2.0) / 0.24013125253755718); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -6e+48) tmp = 1.0 / (0.24013125253755718 / x); elseif (x <= 9.6e+42) tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * (x * (x + 43.3400022514)))))); else tmp = (x + -2.0) / 0.24013125253755718; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -6e+48], N[(1.0 / N[(0.24013125253755718 / x), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 9.6e+42], N[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + N[(x * N[(y + N[(x * 137.519416416), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -6 \cdot 10^{+48}:\\
\;\;\;\;\frac{1}{\frac{0.24013125253755718}{x}}\\
\mathbf{elif}\;x \leq 9.6 \cdot 10^{+42}:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot \left(y + x \cdot 137.519416416\right)\right)}{47.066876606 + x \cdot \left(313.399215894 + x \cdot \left(x \cdot \left(x + 43.3400022514\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718}\\
\end{array}
\end{array}
if x < -5.9999999999999999e48Initial program 5.4%
*-commutative5.4%
associate-*r/8.8%
*-commutative8.8%
fma-def8.8%
*-commutative8.8%
fma-def8.8%
*-commutative8.8%
fma-def8.8%
fma-def8.8%
Simplified8.8%
Applied egg-rr8.8%
Taylor expanded in x around inf 99.6%
if -5.9999999999999999e48 < x < 9.5999999999999994e42Initial program 98.3%
Taylor expanded in x around 0 95.2%
*-commutative95.2%
Simplified95.2%
Taylor expanded in x around inf 92.8%
cube-mult94.3%
unpow294.3%
distribute-rgt-out94.3%
unpow294.3%
associate-*r*94.2%
+-commutative94.2%
Simplified92.8%
if 9.5999999999999994e42 < x Initial program 4.1%
associate-/l*7.7%
sub-neg7.7%
metadata-eval7.7%
fma-def7.7%
fma-def7.7%
fma-def7.7%
fma-def7.7%
fma-def7.7%
fma-def7.7%
fma-def7.7%
Simplified7.7%
Taylor expanded in x around inf 94.3%
Final simplification94.6%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (/ y (* x x))))
(if (<= x -7.2e+48)
(/ 1.0 (/ 0.24013125253755718 x))
(if (<= x -1.15e+18)
t_0
(if (<= x -8e-5)
(/
(* (- x 2.0) z)
(+
(*
x
(+
(* x (+ (* x (+ x 43.3400022514)) 263.505074721))
313.399215894))
47.066876606))
(if (<= x 7.0)
(+
(* z -0.0424927283095952)
(*
x
(-
(* 0.0212463641547976 (+ z (* y -2.0)))
(* z -0.28294182010212804))))
(if (<= x 3.2e+44) t_0 (/ (+ x -2.0) 0.24013125253755718))))))))
double code(double x, double y, double z) {
double t_0 = y / (x * x);
double tmp;
if (x <= -7.2e+48) {
tmp = 1.0 / (0.24013125253755718 / x);
} else if (x <= -1.15e+18) {
tmp = t_0;
} else if (x <= -8e-5) {
tmp = ((x - 2.0) * z) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606);
} else if (x <= 7.0) {
tmp = (z * -0.0424927283095952) + (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804)));
} else if (x <= 3.2e+44) {
tmp = t_0;
} else {
tmp = (x + -2.0) / 0.24013125253755718;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = y / (x * x)
if (x <= (-7.2d+48)) then
tmp = 1.0d0 / (0.24013125253755718d0 / x)
else if (x <= (-1.15d+18)) then
tmp = t_0
else if (x <= (-8d-5)) then
tmp = ((x - 2.0d0) * z) / ((x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0)
else if (x <= 7.0d0) then
tmp = (z * (-0.0424927283095952d0)) + (x * ((0.0212463641547976d0 * (z + (y * (-2.0d0)))) - (z * (-0.28294182010212804d0))))
else if (x <= 3.2d+44) then
tmp = t_0
else
tmp = (x + (-2.0d0)) / 0.24013125253755718d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = y / (x * x);
double tmp;
if (x <= -7.2e+48) {
tmp = 1.0 / (0.24013125253755718 / x);
} else if (x <= -1.15e+18) {
tmp = t_0;
} else if (x <= -8e-5) {
tmp = ((x - 2.0) * z) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606);
} else if (x <= 7.0) {
tmp = (z * -0.0424927283095952) + (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804)));
} else if (x <= 3.2e+44) {
tmp = t_0;
} else {
tmp = (x + -2.0) / 0.24013125253755718;
}
return tmp;
}
def code(x, y, z): t_0 = y / (x * x) tmp = 0 if x <= -7.2e+48: tmp = 1.0 / (0.24013125253755718 / x) elif x <= -1.15e+18: tmp = t_0 elif x <= -8e-5: tmp = ((x - 2.0) * z) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) elif x <= 7.0: tmp = (z * -0.0424927283095952) + (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804))) elif x <= 3.2e+44: tmp = t_0 else: tmp = (x + -2.0) / 0.24013125253755718 return tmp
function code(x, y, z) t_0 = Float64(y / Float64(x * x)) tmp = 0.0 if (x <= -7.2e+48) tmp = Float64(1.0 / Float64(0.24013125253755718 / x)); elseif (x <= -1.15e+18) tmp = t_0; elseif (x <= -8e-5) tmp = Float64(Float64(Float64(x - 2.0) * z) / Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)); elseif (x <= 7.0) tmp = Float64(Float64(z * -0.0424927283095952) + Float64(x * Float64(Float64(0.0212463641547976 * Float64(z + Float64(y * -2.0))) - Float64(z * -0.28294182010212804)))); elseif (x <= 3.2e+44) tmp = t_0; else tmp = Float64(Float64(x + -2.0) / 0.24013125253755718); end return tmp end
function tmp_2 = code(x, y, z) t_0 = y / (x * x); tmp = 0.0; if (x <= -7.2e+48) tmp = 1.0 / (0.24013125253755718 / x); elseif (x <= -1.15e+18) tmp = t_0; elseif (x <= -8e-5) tmp = ((x - 2.0) * z) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606); elseif (x <= 7.0) tmp = (z * -0.0424927283095952) + (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804))); elseif (x <= 3.2e+44) tmp = t_0; else tmp = (x + -2.0) / 0.24013125253755718; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(y / N[(x * x), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -7.2e+48], N[(1.0 / N[(0.24013125253755718 / x), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -1.15e+18], t$95$0, If[LessEqual[x, -8e-5], N[(N[(N[(x - 2.0), $MachinePrecision] * z), $MachinePrecision] / N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 7.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], If[LessEqual[x, 3.2e+44], t$95$0, N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{y}{x \cdot x}\\
\mathbf{if}\;x \leq -7.2 \cdot 10^{+48}:\\
\;\;\;\;\frac{1}{\frac{0.24013125253755718}{x}}\\
\mathbf{elif}\;x \leq -1.15 \cdot 10^{+18}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;x \leq -8 \cdot 10^{-5}:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot z}{x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606}\\
\mathbf{elif}\;x \leq 7:\\
\;\;\;\;z \cdot -0.0424927283095952 + x \cdot \left(0.0212463641547976 \cdot \left(z + y \cdot -2\right) - z \cdot -0.28294182010212804\right)\\
\mathbf{elif}\;x \leq 3.2 \cdot 10^{+44}:\\
\;\;\;\;t_0\\
\mathbf{else}:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718}\\
\end{array}
\end{array}
if x < -7.19999999999999967e48Initial program 5.4%
*-commutative5.4%
associate-*r/8.8%
*-commutative8.8%
fma-def8.8%
*-commutative8.8%
fma-def8.8%
*-commutative8.8%
fma-def8.8%
fma-def8.8%
Simplified8.8%
Applied egg-rr8.8%
Taylor expanded in x around inf 99.6%
if -7.19999999999999967e48 < x < -1.15e18 or 7 < x < 3.20000000000000004e44Initial program 80.5%
Taylor expanded in x around 0 77.5%
*-commutative77.5%
Simplified77.5%
Taylor expanded in x around -inf 69.5%
+-commutative69.5%
mul-1-neg69.5%
unsub-neg69.5%
associate-*r/69.5%
metadata-eval69.5%
mul-1-neg69.5%
unsub-neg69.5%
unpow269.5%
Simplified69.5%
Taylor expanded in y around inf 69.8%
unpow269.8%
Simplified69.8%
if -1.15e18 < x < -8.00000000000000065e-5Initial program 99.1%
*-commutative99.1%
associate-*r/98.6%
*-commutative98.6%
fma-def98.6%
*-commutative98.6%
fma-def98.6%
*-commutative98.6%
fma-def98.4%
fma-def98.4%
Simplified98.5%
Taylor expanded in z around inf 37.8%
if -8.00000000000000065e-5 < x < 7Initial program 99.7%
*-commutative99.7%
associate-*r/99.5%
*-commutative99.5%
fma-def99.5%
*-commutative99.5%
fma-def99.5%
*-commutative99.5%
fma-def99.5%
fma-def99.5%
Simplified99.5%
Taylor expanded in x around 0 92.9%
if 3.20000000000000004e44 < x Initial program 4.1%
associate-/l*5.9%
sub-neg5.9%
metadata-eval5.9%
fma-def5.9%
fma-def5.9%
fma-def5.9%
fma-def5.9%
fma-def5.9%
fma-def5.9%
fma-def5.9%
Simplified5.9%
Taylor expanded in x around inf 96.0%
Final simplification92.1%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (/ y (* x x))))
(if (<= x -5.3e+48)
(/ 1.0 (/ 0.24013125253755718 x))
(if (<= x -2.1e+20)
t_0
(if (<= x -0.175)
(/
(+ x -2.0)
(+
0.24013125253755718
(- (/ 5.86923874282773 x) (/ 55.572073733743466 (* x x)))))
(if (<= x 7.0)
(+
(* z -0.0424927283095952)
(*
x
(-
(* 0.0212463641547976 (+ z (* y -2.0)))
(* z -0.28294182010212804))))
(if (<= x 3.6e+44) t_0 (/ (+ x -2.0) 0.24013125253755718))))))))
double code(double x, double y, double z) {
double t_0 = y / (x * x);
double tmp;
if (x <= -5.3e+48) {
tmp = 1.0 / (0.24013125253755718 / x);
} else if (x <= -2.1e+20) {
tmp = t_0;
} else if (x <= -0.175) {
tmp = (x + -2.0) / (0.24013125253755718 + ((5.86923874282773 / x) - (55.572073733743466 / (x * x))));
} else if (x <= 7.0) {
tmp = (z * -0.0424927283095952) + (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804)));
} else if (x <= 3.6e+44) {
tmp = t_0;
} else {
tmp = (x + -2.0) / 0.24013125253755718;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = y / (x * x)
if (x <= (-5.3d+48)) then
tmp = 1.0d0 / (0.24013125253755718d0 / x)
else if (x <= (-2.1d+20)) then
tmp = t_0
else if (x <= (-0.175d0)) then
tmp = (x + (-2.0d0)) / (0.24013125253755718d0 + ((5.86923874282773d0 / x) - (55.572073733743466d0 / (x * x))))
else if (x <= 7.0d0) then
tmp = (z * (-0.0424927283095952d0)) + (x * ((0.0212463641547976d0 * (z + (y * (-2.0d0)))) - (z * (-0.28294182010212804d0))))
else if (x <= 3.6d+44) then
tmp = t_0
else
tmp = (x + (-2.0d0)) / 0.24013125253755718d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = y / (x * x);
double tmp;
if (x <= -5.3e+48) {
tmp = 1.0 / (0.24013125253755718 / x);
} else if (x <= -2.1e+20) {
tmp = t_0;
} else if (x <= -0.175) {
tmp = (x + -2.0) / (0.24013125253755718 + ((5.86923874282773 / x) - (55.572073733743466 / (x * x))));
} else if (x <= 7.0) {
tmp = (z * -0.0424927283095952) + (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804)));
} else if (x <= 3.6e+44) {
tmp = t_0;
} else {
tmp = (x + -2.0) / 0.24013125253755718;
}
return tmp;
}
def code(x, y, z): t_0 = y / (x * x) tmp = 0 if x <= -5.3e+48: tmp = 1.0 / (0.24013125253755718 / x) elif x <= -2.1e+20: tmp = t_0 elif x <= -0.175: tmp = (x + -2.0) / (0.24013125253755718 + ((5.86923874282773 / x) - (55.572073733743466 / (x * x)))) elif x <= 7.0: tmp = (z * -0.0424927283095952) + (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804))) elif x <= 3.6e+44: tmp = t_0 else: tmp = (x + -2.0) / 0.24013125253755718 return tmp
function code(x, y, z) t_0 = Float64(y / Float64(x * x)) tmp = 0.0 if (x <= -5.3e+48) tmp = Float64(1.0 / Float64(0.24013125253755718 / x)); elseif (x <= -2.1e+20) tmp = t_0; elseif (x <= -0.175) tmp = Float64(Float64(x + -2.0) / Float64(0.24013125253755718 + Float64(Float64(5.86923874282773 / x) - Float64(55.572073733743466 / Float64(x * x))))); elseif (x <= 7.0) tmp = Float64(Float64(z * -0.0424927283095952) + Float64(x * Float64(Float64(0.0212463641547976 * Float64(z + Float64(y * -2.0))) - Float64(z * -0.28294182010212804)))); elseif (x <= 3.6e+44) tmp = t_0; else tmp = Float64(Float64(x + -2.0) / 0.24013125253755718); end return tmp end
function tmp_2 = code(x, y, z) t_0 = y / (x * x); tmp = 0.0; if (x <= -5.3e+48) tmp = 1.0 / (0.24013125253755718 / x); elseif (x <= -2.1e+20) tmp = t_0; elseif (x <= -0.175) tmp = (x + -2.0) / (0.24013125253755718 + ((5.86923874282773 / x) - (55.572073733743466 / (x * x)))); elseif (x <= 7.0) tmp = (z * -0.0424927283095952) + (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804))); elseif (x <= 3.6e+44) tmp = t_0; else tmp = (x + -2.0) / 0.24013125253755718; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(y / N[(x * x), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -5.3e+48], N[(1.0 / N[(0.24013125253755718 / x), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -2.1e+20], t$95$0, If[LessEqual[x, -0.175], N[(N[(x + -2.0), $MachinePrecision] / N[(0.24013125253755718 + N[(N[(5.86923874282773 / x), $MachinePrecision] - N[(55.572073733743466 / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 7.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], If[LessEqual[x, 3.6e+44], t$95$0, N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{y}{x \cdot x}\\
\mathbf{if}\;x \leq -5.3 \cdot 10^{+48}:\\
\;\;\;\;\frac{1}{\frac{0.24013125253755718}{x}}\\
\mathbf{elif}\;x \leq -2.1 \cdot 10^{+20}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;x \leq -0.175:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718 + \left(\frac{5.86923874282773}{x} - \frac{55.572073733743466}{x \cdot x}\right)}\\
\mathbf{elif}\;x \leq 7:\\
\;\;\;\;z \cdot -0.0424927283095952 + x \cdot \left(0.0212463641547976 \cdot \left(z + y \cdot -2\right) - z \cdot -0.28294182010212804\right)\\
\mathbf{elif}\;x \leq 3.6 \cdot 10^{+44}:\\
\;\;\;\;t_0\\
\mathbf{else}:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718}\\
\end{array}
\end{array}
if x < -5.3e48Initial program 5.4%
*-commutative5.4%
associate-*r/8.8%
*-commutative8.8%
fma-def8.8%
*-commutative8.8%
fma-def8.8%
*-commutative8.8%
fma-def8.8%
fma-def8.8%
Simplified8.8%
Applied egg-rr8.8%
Taylor expanded in x around inf 99.6%
if -5.3e48 < x < -2.1e20 or 7 < x < 3.6e44Initial program 80.5%
Taylor expanded in x around 0 77.5%
*-commutative77.5%
Simplified77.5%
Taylor expanded in x around -inf 69.5%
+-commutative69.5%
mul-1-neg69.5%
unsub-neg69.5%
associate-*r/69.5%
metadata-eval69.5%
mul-1-neg69.5%
unsub-neg69.5%
unpow269.5%
Simplified69.5%
Taylor expanded in y around inf 69.8%
unpow269.8%
Simplified69.8%
if -2.1e20 < x < -0.17499999999999999Initial program 98.9%
associate-/l*98.9%
sub-neg98.9%
metadata-eval98.9%
fma-def99.2%
fma-def98.9%
fma-def98.8%
fma-def98.8%
fma-def98.8%
fma-def98.4%
fma-def98.4%
Simplified98.4%
Taylor expanded in x around inf 33.9%
associate--l+33.9%
associate-*r/33.9%
metadata-eval33.9%
associate-*r/33.9%
metadata-eval33.9%
unpow233.9%
Simplified33.9%
if -0.17499999999999999 < x < 7Initial program 99.7%
*-commutative99.7%
associate-*r/99.5%
*-commutative99.5%
fma-def99.5%
*-commutative99.5%
fma-def99.5%
*-commutative99.5%
fma-def99.5%
fma-def99.5%
Simplified99.5%
Taylor expanded in x around 0 92.4%
if 3.6e44 < x Initial program 4.1%
associate-/l*5.9%
sub-neg5.9%
metadata-eval5.9%
fma-def5.9%
fma-def5.9%
fma-def5.9%
fma-def5.9%
fma-def5.9%
fma-def5.9%
fma-def5.9%
Simplified5.9%
Taylor expanded in x around inf 96.0%
Final simplification92.0%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (/ y (* x x))))
(if (<= x -9.2e+48)
(/ 1.0 (/ 0.24013125253755718 x))
(if (<= x -1.6e+18)
t_0
(if (<= x -5.5)
(-
(+ (* x 4.16438922228) (* 3655.1204654076414 (/ 1.0 x)))
110.1139242984811)
(if (<= x 155.0)
(/
(* (- x 2.0) z)
(+ 47.066876606 (* x (+ 313.399215894 (* x 263.505074721)))))
(if (<= x 4.8e+44) t_0 (/ (+ x -2.0) 0.24013125253755718))))))))
double code(double x, double y, double z) {
double t_0 = y / (x * x);
double tmp;
if (x <= -9.2e+48) {
tmp = 1.0 / (0.24013125253755718 / x);
} else if (x <= -1.6e+18) {
tmp = t_0;
} else if (x <= -5.5) {
tmp = ((x * 4.16438922228) + (3655.1204654076414 * (1.0 / x))) - 110.1139242984811;
} else if (x <= 155.0) {
tmp = ((x - 2.0) * z) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))));
} else if (x <= 4.8e+44) {
tmp = t_0;
} else {
tmp = (x + -2.0) / 0.24013125253755718;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = y / (x * x)
if (x <= (-9.2d+48)) then
tmp = 1.0d0 / (0.24013125253755718d0 / x)
else if (x <= (-1.6d+18)) then
tmp = t_0
else if (x <= (-5.5d0)) then
tmp = ((x * 4.16438922228d0) + (3655.1204654076414d0 * (1.0d0 / x))) - 110.1139242984811d0
else if (x <= 155.0d0) then
tmp = ((x - 2.0d0) * z) / (47.066876606d0 + (x * (313.399215894d0 + (x * 263.505074721d0))))
else if (x <= 4.8d+44) then
tmp = t_0
else
tmp = (x + (-2.0d0)) / 0.24013125253755718d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = y / (x * x);
double tmp;
if (x <= -9.2e+48) {
tmp = 1.0 / (0.24013125253755718 / x);
} else if (x <= -1.6e+18) {
tmp = t_0;
} else if (x <= -5.5) {
tmp = ((x * 4.16438922228) + (3655.1204654076414 * (1.0 / x))) - 110.1139242984811;
} else if (x <= 155.0) {
tmp = ((x - 2.0) * z) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))));
} else if (x <= 4.8e+44) {
tmp = t_0;
} else {
tmp = (x + -2.0) / 0.24013125253755718;
}
return tmp;
}
def code(x, y, z): t_0 = y / (x * x) tmp = 0 if x <= -9.2e+48: tmp = 1.0 / (0.24013125253755718 / x) elif x <= -1.6e+18: tmp = t_0 elif x <= -5.5: tmp = ((x * 4.16438922228) + (3655.1204654076414 * (1.0 / x))) - 110.1139242984811 elif x <= 155.0: tmp = ((x - 2.0) * z) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721)))) elif x <= 4.8e+44: tmp = t_0 else: tmp = (x + -2.0) / 0.24013125253755718 return tmp
function code(x, y, z) t_0 = Float64(y / Float64(x * x)) tmp = 0.0 if (x <= -9.2e+48) tmp = Float64(1.0 / Float64(0.24013125253755718 / x)); elseif (x <= -1.6e+18) tmp = t_0; elseif (x <= -5.5) tmp = Float64(Float64(Float64(x * 4.16438922228) + Float64(3655.1204654076414 * Float64(1.0 / x))) - 110.1139242984811); elseif (x <= 155.0) tmp = Float64(Float64(Float64(x - 2.0) * z) / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * 263.505074721))))); elseif (x <= 4.8e+44) tmp = t_0; else tmp = Float64(Float64(x + -2.0) / 0.24013125253755718); end return tmp end
function tmp_2 = code(x, y, z) t_0 = y / (x * x); tmp = 0.0; if (x <= -9.2e+48) tmp = 1.0 / (0.24013125253755718 / x); elseif (x <= -1.6e+18) tmp = t_0; elseif (x <= -5.5) tmp = ((x * 4.16438922228) + (3655.1204654076414 * (1.0 / x))) - 110.1139242984811; elseif (x <= 155.0) tmp = ((x - 2.0) * z) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721)))); elseif (x <= 4.8e+44) tmp = t_0; else tmp = (x + -2.0) / 0.24013125253755718; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(y / N[(x * x), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -9.2e+48], N[(1.0 / N[(0.24013125253755718 / x), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -1.6e+18], t$95$0, If[LessEqual[x, -5.5], N[(N[(N[(x * 4.16438922228), $MachinePrecision] + N[(3655.1204654076414 * N[(1.0 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - 110.1139242984811), $MachinePrecision], If[LessEqual[x, 155.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], If[LessEqual[x, 4.8e+44], t$95$0, N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{y}{x \cdot x}\\
\mathbf{if}\;x \leq -9.2 \cdot 10^{+48}:\\
\;\;\;\;\frac{1}{\frac{0.24013125253755718}{x}}\\
\mathbf{elif}\;x \leq -1.6 \cdot 10^{+18}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;x \leq -5.5:\\
\;\;\;\;\left(x \cdot 4.16438922228 + 3655.1204654076414 \cdot \frac{1}{x}\right) - 110.1139242984811\\
\mathbf{elif}\;x \leq 155:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot z}{47.066876606 + x \cdot \left(313.399215894 + x \cdot 263.505074721\right)}\\
\mathbf{elif}\;x \leq 4.8 \cdot 10^{+44}:\\
\;\;\;\;t_0\\
\mathbf{else}:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718}\\
\end{array}
\end{array}
if x < -9.2000000000000001e48Initial program 5.4%
*-commutative5.4%
associate-*r/8.8%
*-commutative8.8%
fma-def8.8%
*-commutative8.8%
fma-def8.8%
*-commutative8.8%
fma-def8.8%
fma-def8.8%
Simplified8.8%
Applied egg-rr8.8%
Taylor expanded in x around inf 99.6%
if -9.2000000000000001e48 < x < -1.6e18 or 155 < x < 4.80000000000000026e44Initial program 80.5%
Taylor expanded in x around 0 77.5%
*-commutative77.5%
Simplified77.5%
Taylor expanded in x around -inf 69.5%
+-commutative69.5%
mul-1-neg69.5%
unsub-neg69.5%
associate-*r/69.5%
metadata-eval69.5%
mul-1-neg69.5%
unsub-neg69.5%
unpow269.5%
Simplified69.5%
Taylor expanded in y around inf 69.8%
unpow269.8%
Simplified69.8%
if -1.6e18 < x < -5.5Initial program 98.7%
*-commutative98.7%
associate-*r/98.7%
*-commutative98.7%
fma-def98.7%
*-commutative98.7%
fma-def98.7%
*-commutative98.7%
fma-def98.4%
fma-def98.4%
Simplified98.3%
Taylor expanded in x around inf 37.1%
if -5.5 < x < 155Initial program 99.7%
Taylor expanded in x around 0 97.6%
*-commutative97.6%
Simplified97.6%
Taylor expanded in z around inf 66.2%
if 4.80000000000000026e44 < x Initial program 4.1%
associate-/l*5.9%
sub-neg5.9%
metadata-eval5.9%
fma-def5.9%
fma-def5.9%
fma-def5.9%
fma-def5.9%
fma-def5.9%
fma-def5.9%
fma-def5.9%
Simplified5.9%
Taylor expanded in x around inf 96.0%
Final simplification79.2%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (/ y (* x x))))
(if (<= x -1.55e+49)
(/ 1.0 (/ 0.24013125253755718 x))
(if (<= x -3.6e+18)
t_0
(if (<= x -0.37)
(/
(+ x -2.0)
(+
0.24013125253755718
(- (/ 5.86923874282773 x) (/ 55.572073733743466 (* x x)))))
(if (<= x 28.0)
(/
(* (- x 2.0) z)
(+ 47.066876606 (* x (+ 313.399215894 (* x 263.505074721)))))
(if (<= x 3.2e+44) t_0 (/ (+ x -2.0) 0.24013125253755718))))))))
double code(double x, double y, double z) {
double t_0 = y / (x * x);
double tmp;
if (x <= -1.55e+49) {
tmp = 1.0 / (0.24013125253755718 / x);
} else if (x <= -3.6e+18) {
tmp = t_0;
} else if (x <= -0.37) {
tmp = (x + -2.0) / (0.24013125253755718 + ((5.86923874282773 / x) - (55.572073733743466 / (x * x))));
} else if (x <= 28.0) {
tmp = ((x - 2.0) * z) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))));
} else if (x <= 3.2e+44) {
tmp = t_0;
} else {
tmp = (x + -2.0) / 0.24013125253755718;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = y / (x * x)
if (x <= (-1.55d+49)) then
tmp = 1.0d0 / (0.24013125253755718d0 / x)
else if (x <= (-3.6d+18)) then
tmp = t_0
else if (x <= (-0.37d0)) then
tmp = (x + (-2.0d0)) / (0.24013125253755718d0 + ((5.86923874282773d0 / x) - (55.572073733743466d0 / (x * x))))
else if (x <= 28.0d0) then
tmp = ((x - 2.0d0) * z) / (47.066876606d0 + (x * (313.399215894d0 + (x * 263.505074721d0))))
else if (x <= 3.2d+44) then
tmp = t_0
else
tmp = (x + (-2.0d0)) / 0.24013125253755718d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = y / (x * x);
double tmp;
if (x <= -1.55e+49) {
tmp = 1.0 / (0.24013125253755718 / x);
} else if (x <= -3.6e+18) {
tmp = t_0;
} else if (x <= -0.37) {
tmp = (x + -2.0) / (0.24013125253755718 + ((5.86923874282773 / x) - (55.572073733743466 / (x * x))));
} else if (x <= 28.0) {
tmp = ((x - 2.0) * z) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))));
} else if (x <= 3.2e+44) {
tmp = t_0;
} else {
tmp = (x + -2.0) / 0.24013125253755718;
}
return tmp;
}
def code(x, y, z): t_0 = y / (x * x) tmp = 0 if x <= -1.55e+49: tmp = 1.0 / (0.24013125253755718 / x) elif x <= -3.6e+18: tmp = t_0 elif x <= -0.37: tmp = (x + -2.0) / (0.24013125253755718 + ((5.86923874282773 / x) - (55.572073733743466 / (x * x)))) elif x <= 28.0: tmp = ((x - 2.0) * z) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721)))) elif x <= 3.2e+44: tmp = t_0 else: tmp = (x + -2.0) / 0.24013125253755718 return tmp
function code(x, y, z) t_0 = Float64(y / Float64(x * x)) tmp = 0.0 if (x <= -1.55e+49) tmp = Float64(1.0 / Float64(0.24013125253755718 / x)); elseif (x <= -3.6e+18) tmp = t_0; elseif (x <= -0.37) tmp = Float64(Float64(x + -2.0) / Float64(0.24013125253755718 + Float64(Float64(5.86923874282773 / x) - Float64(55.572073733743466 / Float64(x * x))))); elseif (x <= 28.0) tmp = Float64(Float64(Float64(x - 2.0) * z) / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * 263.505074721))))); elseif (x <= 3.2e+44) tmp = t_0; else tmp = Float64(Float64(x + -2.0) / 0.24013125253755718); end return tmp end
function tmp_2 = code(x, y, z) t_0 = y / (x * x); tmp = 0.0; if (x <= -1.55e+49) tmp = 1.0 / (0.24013125253755718 / x); elseif (x <= -3.6e+18) tmp = t_0; elseif (x <= -0.37) tmp = (x + -2.0) / (0.24013125253755718 + ((5.86923874282773 / x) - (55.572073733743466 / (x * x)))); elseif (x <= 28.0) tmp = ((x - 2.0) * z) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721)))); elseif (x <= 3.2e+44) tmp = t_0; else tmp = (x + -2.0) / 0.24013125253755718; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(y / N[(x * x), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.55e+49], N[(1.0 / N[(0.24013125253755718 / x), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -3.6e+18], t$95$0, If[LessEqual[x, -0.37], N[(N[(x + -2.0), $MachinePrecision] / N[(0.24013125253755718 + N[(N[(5.86923874282773 / x), $MachinePrecision] - N[(55.572073733743466 / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 28.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], If[LessEqual[x, 3.2e+44], t$95$0, N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{y}{x \cdot x}\\
\mathbf{if}\;x \leq -1.55 \cdot 10^{+49}:\\
\;\;\;\;\frac{1}{\frac{0.24013125253755718}{x}}\\
\mathbf{elif}\;x \leq -3.6 \cdot 10^{+18}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;x \leq -0.37:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718 + \left(\frac{5.86923874282773}{x} - \frac{55.572073733743466}{x \cdot x}\right)}\\
\mathbf{elif}\;x \leq 28:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot z}{47.066876606 + x \cdot \left(313.399215894 + x \cdot 263.505074721\right)}\\
\mathbf{elif}\;x \leq 3.2 \cdot 10^{+44}:\\
\;\;\;\;t_0\\
\mathbf{else}:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718}\\
\end{array}
\end{array}
if x < -1.54999999999999996e49Initial program 5.4%
*-commutative5.4%
associate-*r/8.8%
*-commutative8.8%
fma-def8.8%
*-commutative8.8%
fma-def8.8%
*-commutative8.8%
fma-def8.8%
fma-def8.8%
Simplified8.8%
Applied egg-rr8.8%
Taylor expanded in x around inf 99.6%
if -1.54999999999999996e49 < x < -3.6e18 or 28 < x < 3.20000000000000004e44Initial program 80.5%
Taylor expanded in x around 0 77.5%
*-commutative77.5%
Simplified77.5%
Taylor expanded in x around -inf 69.5%
+-commutative69.5%
mul-1-neg69.5%
unsub-neg69.5%
associate-*r/69.5%
metadata-eval69.5%
mul-1-neg69.5%
unsub-neg69.5%
unpow269.5%
Simplified69.5%
Taylor expanded in y around inf 69.8%
unpow269.8%
Simplified69.8%
if -3.6e18 < x < -0.37Initial program 98.9%
associate-/l*98.9%
sub-neg98.9%
metadata-eval98.9%
fma-def99.2%
fma-def98.9%
fma-def98.8%
fma-def98.8%
fma-def98.8%
fma-def98.4%
fma-def98.4%
Simplified98.4%
Taylor expanded in x around inf 33.9%
associate--l+33.9%
associate-*r/33.9%
metadata-eval33.9%
associate-*r/33.9%
metadata-eval33.9%
unpow233.9%
Simplified33.9%
if -0.37 < x < 28Initial program 99.7%
Taylor expanded in x around 0 98.2%
*-commutative98.2%
Simplified98.2%
Taylor expanded in z around inf 66.7%
if 3.20000000000000004e44 < x Initial program 4.1%
associate-/l*5.9%
sub-neg5.9%
metadata-eval5.9%
fma-def5.9%
fma-def5.9%
fma-def5.9%
fma-def5.9%
fma-def5.9%
fma-def5.9%
fma-def5.9%
Simplified5.9%
Taylor expanded in x around inf 96.0%
Final simplification79.3%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (/ y (* x x))))
(if (<= x -6e+48)
(/ 1.0 (/ 0.24013125253755718 x))
(if (<= x -5.8e+20)
t_0
(if (<= x -5.5)
(-
(+ (* x 4.16438922228) (* 3655.1204654076414 (/ 1.0 x)))
110.1139242984811)
(if (<= x 2550.0)
(+
(* z -0.0424927283095952)
(* x (- (* z 0.0212463641547976) (* z -0.28294182010212804))))
(if (<= x 3.2e+44) t_0 (/ (+ x -2.0) 0.24013125253755718))))))))
double code(double x, double y, double z) {
double t_0 = y / (x * x);
double tmp;
if (x <= -6e+48) {
tmp = 1.0 / (0.24013125253755718 / x);
} else if (x <= -5.8e+20) {
tmp = t_0;
} else if (x <= -5.5) {
tmp = ((x * 4.16438922228) + (3655.1204654076414 * (1.0 / x))) - 110.1139242984811;
} else if (x <= 2550.0) {
tmp = (z * -0.0424927283095952) + (x * ((z * 0.0212463641547976) - (z * -0.28294182010212804)));
} else if (x <= 3.2e+44) {
tmp = t_0;
} else {
tmp = (x + -2.0) / 0.24013125253755718;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = y / (x * x)
if (x <= (-6d+48)) then
tmp = 1.0d0 / (0.24013125253755718d0 / x)
else if (x <= (-5.8d+20)) then
tmp = t_0
else if (x <= (-5.5d0)) then
tmp = ((x * 4.16438922228d0) + (3655.1204654076414d0 * (1.0d0 / x))) - 110.1139242984811d0
else if (x <= 2550.0d0) then
tmp = (z * (-0.0424927283095952d0)) + (x * ((z * 0.0212463641547976d0) - (z * (-0.28294182010212804d0))))
else if (x <= 3.2d+44) then
tmp = t_0
else
tmp = (x + (-2.0d0)) / 0.24013125253755718d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = y / (x * x);
double tmp;
if (x <= -6e+48) {
tmp = 1.0 / (0.24013125253755718 / x);
} else if (x <= -5.8e+20) {
tmp = t_0;
} else if (x <= -5.5) {
tmp = ((x * 4.16438922228) + (3655.1204654076414 * (1.0 / x))) - 110.1139242984811;
} else if (x <= 2550.0) {
tmp = (z * -0.0424927283095952) + (x * ((z * 0.0212463641547976) - (z * -0.28294182010212804)));
} else if (x <= 3.2e+44) {
tmp = t_0;
} else {
tmp = (x + -2.0) / 0.24013125253755718;
}
return tmp;
}
def code(x, y, z): t_0 = y / (x * x) tmp = 0 if x <= -6e+48: tmp = 1.0 / (0.24013125253755718 / x) elif x <= -5.8e+20: tmp = t_0 elif x <= -5.5: tmp = ((x * 4.16438922228) + (3655.1204654076414 * (1.0 / x))) - 110.1139242984811 elif x <= 2550.0: tmp = (z * -0.0424927283095952) + (x * ((z * 0.0212463641547976) - (z * -0.28294182010212804))) elif x <= 3.2e+44: tmp = t_0 else: tmp = (x + -2.0) / 0.24013125253755718 return tmp
function code(x, y, z) t_0 = Float64(y / Float64(x * x)) tmp = 0.0 if (x <= -6e+48) tmp = Float64(1.0 / Float64(0.24013125253755718 / x)); elseif (x <= -5.8e+20) tmp = t_0; elseif (x <= -5.5) tmp = Float64(Float64(Float64(x * 4.16438922228) + Float64(3655.1204654076414 * Float64(1.0 / x))) - 110.1139242984811); elseif (x <= 2550.0) tmp = Float64(Float64(z * -0.0424927283095952) + Float64(x * Float64(Float64(z * 0.0212463641547976) - Float64(z * -0.28294182010212804)))); elseif (x <= 3.2e+44) tmp = t_0; else tmp = Float64(Float64(x + -2.0) / 0.24013125253755718); end return tmp end
function tmp_2 = code(x, y, z) t_0 = y / (x * x); tmp = 0.0; if (x <= -6e+48) tmp = 1.0 / (0.24013125253755718 / x); elseif (x <= -5.8e+20) tmp = t_0; elseif (x <= -5.5) tmp = ((x * 4.16438922228) + (3655.1204654076414 * (1.0 / x))) - 110.1139242984811; elseif (x <= 2550.0) tmp = (z * -0.0424927283095952) + (x * ((z * 0.0212463641547976) - (z * -0.28294182010212804))); elseif (x <= 3.2e+44) tmp = t_0; else tmp = (x + -2.0) / 0.24013125253755718; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(y / N[(x * x), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -6e+48], N[(1.0 / N[(0.24013125253755718 / x), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -5.8e+20], t$95$0, If[LessEqual[x, -5.5], N[(N[(N[(x * 4.16438922228), $MachinePrecision] + N[(3655.1204654076414 * N[(1.0 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - 110.1139242984811), $MachinePrecision], If[LessEqual[x, 2550.0], N[(N[(z * -0.0424927283095952), $MachinePrecision] + N[(x * N[(N[(z * 0.0212463641547976), $MachinePrecision] - N[(z * -0.28294182010212804), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 3.2e+44], t$95$0, N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{y}{x \cdot x}\\
\mathbf{if}\;x \leq -6 \cdot 10^{+48}:\\
\;\;\;\;\frac{1}{\frac{0.24013125253755718}{x}}\\
\mathbf{elif}\;x \leq -5.8 \cdot 10^{+20}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;x \leq -5.5:\\
\;\;\;\;\left(x \cdot 4.16438922228 + 3655.1204654076414 \cdot \frac{1}{x}\right) - 110.1139242984811\\
\mathbf{elif}\;x \leq 2550:\\
\;\;\;\;z \cdot -0.0424927283095952 + x \cdot \left(z \cdot 0.0212463641547976 - z \cdot -0.28294182010212804\right)\\
\mathbf{elif}\;x \leq 3.2 \cdot 10^{+44}:\\
\;\;\;\;t_0\\
\mathbf{else}:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718}\\
\end{array}
\end{array}
if x < -5.9999999999999999e48Initial program 5.4%
*-commutative5.4%
associate-*r/8.8%
*-commutative8.8%
fma-def8.8%
*-commutative8.8%
fma-def8.8%
*-commutative8.8%
fma-def8.8%
fma-def8.8%
Simplified8.8%
Applied egg-rr8.8%
Taylor expanded in x around inf 99.6%
if -5.9999999999999999e48 < x < -5.8e20 or 2550 < x < 3.20000000000000004e44Initial program 80.5%
Taylor expanded in x around 0 77.5%
*-commutative77.5%
Simplified77.5%
Taylor expanded in x around -inf 69.5%
+-commutative69.5%
mul-1-neg69.5%
unsub-neg69.5%
associate-*r/69.5%
metadata-eval69.5%
mul-1-neg69.5%
unsub-neg69.5%
unpow269.5%
Simplified69.5%
Taylor expanded in y around inf 69.8%
unpow269.8%
Simplified69.8%
if -5.8e20 < x < -5.5Initial program 98.7%
*-commutative98.7%
associate-*r/98.7%
*-commutative98.7%
fma-def98.7%
*-commutative98.7%
fma-def98.7%
*-commutative98.7%
fma-def98.4%
fma-def98.4%
Simplified98.3%
Taylor expanded in x around inf 37.1%
if -5.5 < x < 2550Initial program 99.7%
associate-/l*99.5%
sub-neg99.5%
metadata-eval99.5%
fma-def99.5%
fma-def99.5%
fma-def99.5%
fma-def99.5%
fma-def99.5%
fma-def99.5%
fma-def99.5%
Simplified99.5%
Taylor expanded in y around 0 71.5%
Taylor expanded in x around 0 65.9%
if 3.20000000000000004e44 < x Initial program 4.1%
associate-/l*5.9%
sub-neg5.9%
metadata-eval5.9%
fma-def5.9%
fma-def5.9%
fma-def5.9%
fma-def5.9%
fma-def5.9%
fma-def5.9%
fma-def5.9%
Simplified5.9%
Taylor expanded in x around inf 96.0%
Final simplification79.0%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (/ y (* x x))))
(if (<= x -5.3e+48)
(/ 1.0 (/ 0.24013125253755718 x))
(if (<= x -4.8e+19)
t_0
(if (<= x -5.5)
(- (* x 4.16438922228) 110.1139242984811)
(if (<= x 30.0)
(/ 1.0 (/ (/ 47.066876606 z) (+ x -2.0)))
(if (<= x 4.5e+44) t_0 (/ (+ x -2.0) 0.24013125253755718))))))))
double code(double x, double y, double z) {
double t_0 = y / (x * x);
double tmp;
if (x <= -5.3e+48) {
tmp = 1.0 / (0.24013125253755718 / x);
} else if (x <= -4.8e+19) {
tmp = t_0;
} else if (x <= -5.5) {
tmp = (x * 4.16438922228) - 110.1139242984811;
} else if (x <= 30.0) {
tmp = 1.0 / ((47.066876606 / z) / (x + -2.0));
} else if (x <= 4.5e+44) {
tmp = t_0;
} else {
tmp = (x + -2.0) / 0.24013125253755718;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = y / (x * x)
if (x <= (-5.3d+48)) then
tmp = 1.0d0 / (0.24013125253755718d0 / x)
else if (x <= (-4.8d+19)) then
tmp = t_0
else if (x <= (-5.5d0)) then
tmp = (x * 4.16438922228d0) - 110.1139242984811d0
else if (x <= 30.0d0) then
tmp = 1.0d0 / ((47.066876606d0 / z) / (x + (-2.0d0)))
else if (x <= 4.5d+44) then
tmp = t_0
else
tmp = (x + (-2.0d0)) / 0.24013125253755718d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = y / (x * x);
double tmp;
if (x <= -5.3e+48) {
tmp = 1.0 / (0.24013125253755718 / x);
} else if (x <= -4.8e+19) {
tmp = t_0;
} else if (x <= -5.5) {
tmp = (x * 4.16438922228) - 110.1139242984811;
} else if (x <= 30.0) {
tmp = 1.0 / ((47.066876606 / z) / (x + -2.0));
} else if (x <= 4.5e+44) {
tmp = t_0;
} else {
tmp = (x + -2.0) / 0.24013125253755718;
}
return tmp;
}
def code(x, y, z): t_0 = y / (x * x) tmp = 0 if x <= -5.3e+48: tmp = 1.0 / (0.24013125253755718 / x) elif x <= -4.8e+19: tmp = t_0 elif x <= -5.5: tmp = (x * 4.16438922228) - 110.1139242984811 elif x <= 30.0: tmp = 1.0 / ((47.066876606 / z) / (x + -2.0)) elif x <= 4.5e+44: tmp = t_0 else: tmp = (x + -2.0) / 0.24013125253755718 return tmp
function code(x, y, z) t_0 = Float64(y / Float64(x * x)) tmp = 0.0 if (x <= -5.3e+48) tmp = Float64(1.0 / Float64(0.24013125253755718 / x)); elseif (x <= -4.8e+19) tmp = t_0; elseif (x <= -5.5) tmp = Float64(Float64(x * 4.16438922228) - 110.1139242984811); elseif (x <= 30.0) tmp = Float64(1.0 / Float64(Float64(47.066876606 / z) / Float64(x + -2.0))); elseif (x <= 4.5e+44) tmp = t_0; else tmp = Float64(Float64(x + -2.0) / 0.24013125253755718); end return tmp end
function tmp_2 = code(x, y, z) t_0 = y / (x * x); tmp = 0.0; if (x <= -5.3e+48) tmp = 1.0 / (0.24013125253755718 / x); elseif (x <= -4.8e+19) tmp = t_0; elseif (x <= -5.5) tmp = (x * 4.16438922228) - 110.1139242984811; elseif (x <= 30.0) tmp = 1.0 / ((47.066876606 / z) / (x + -2.0)); elseif (x <= 4.5e+44) tmp = t_0; else tmp = (x + -2.0) / 0.24013125253755718; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(y / N[(x * x), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -5.3e+48], N[(1.0 / N[(0.24013125253755718 / x), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -4.8e+19], t$95$0, If[LessEqual[x, -5.5], N[(N[(x * 4.16438922228), $MachinePrecision] - 110.1139242984811), $MachinePrecision], If[LessEqual[x, 30.0], N[(1.0 / N[(N[(47.066876606 / z), $MachinePrecision] / N[(x + -2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 4.5e+44], t$95$0, N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{y}{x \cdot x}\\
\mathbf{if}\;x \leq -5.3 \cdot 10^{+48}:\\
\;\;\;\;\frac{1}{\frac{0.24013125253755718}{x}}\\
\mathbf{elif}\;x \leq -4.8 \cdot 10^{+19}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;x \leq -5.5:\\
\;\;\;\;x \cdot 4.16438922228 - 110.1139242984811\\
\mathbf{elif}\;x \leq 30:\\
\;\;\;\;\frac{1}{\frac{\frac{47.066876606}{z}}{x + -2}}\\
\mathbf{elif}\;x \leq 4.5 \cdot 10^{+44}:\\
\;\;\;\;t_0\\
\mathbf{else}:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718}\\
\end{array}
\end{array}
if x < -5.3e48Initial program 5.4%
*-commutative5.4%
associate-*r/8.8%
*-commutative8.8%
fma-def8.8%
*-commutative8.8%
fma-def8.8%
*-commutative8.8%
fma-def8.8%
fma-def8.8%
Simplified8.8%
Applied egg-rr8.8%
Taylor expanded in x around inf 99.6%
if -5.3e48 < x < -4.8e19 or 30 < x < 4.5e44Initial program 80.5%
Taylor expanded in x around 0 77.5%
*-commutative77.5%
Simplified77.5%
Taylor expanded in x around -inf 69.5%
+-commutative69.5%
mul-1-neg69.5%
unsub-neg69.5%
associate-*r/69.5%
metadata-eval69.5%
mul-1-neg69.5%
unsub-neg69.5%
unpow269.5%
Simplified69.5%
Taylor expanded in y around inf 69.8%
unpow269.8%
Simplified69.8%
if -4.8e19 < x < -5.5Initial program 98.7%
*-commutative98.7%
associate-*r/98.7%
*-commutative98.7%
fma-def98.7%
*-commutative98.7%
fma-def98.7%
*-commutative98.7%
fma-def98.4%
fma-def98.4%
Simplified98.3%
Taylor expanded in x around inf 33.8%
if -5.5 < x < 30Initial program 99.7%
*-commutative99.7%
associate-*r/99.5%
*-commutative99.5%
fma-def99.5%
*-commutative99.5%
fma-def99.5%
*-commutative99.5%
fma-def99.5%
fma-def99.5%
Simplified99.5%
Applied egg-rr99.6%
Taylor expanded in x around 0 65.5%
if 4.5e44 < x Initial program 4.1%
associate-/l*5.9%
sub-neg5.9%
metadata-eval5.9%
fma-def5.9%
fma-def5.9%
fma-def5.9%
fma-def5.9%
fma-def5.9%
fma-def5.9%
fma-def5.9%
Simplified5.9%
Taylor expanded in x around inf 96.0%
Final simplification78.8%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (/ y (* x x))))
(if (<= x -5.3e+48)
(/ 1.0 (/ 0.24013125253755718 x))
(if (<= x -1.25e+20)
t_0
(if (<= x -0.175)
(/ (+ x -2.0) (+ 0.24013125253755718 (/ 5.86923874282773 x)))
(if (<= x 8.6)
(/ 1.0 (/ (/ 47.066876606 z) (+ x -2.0)))
(if (<= x 3.2e+44) t_0 (/ (+ x -2.0) 0.24013125253755718))))))))
double code(double x, double y, double z) {
double t_0 = y / (x * x);
double tmp;
if (x <= -5.3e+48) {
tmp = 1.0 / (0.24013125253755718 / x);
} else if (x <= -1.25e+20) {
tmp = t_0;
} else if (x <= -0.175) {
tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x));
} else if (x <= 8.6) {
tmp = 1.0 / ((47.066876606 / z) / (x + -2.0));
} else if (x <= 3.2e+44) {
tmp = t_0;
} else {
tmp = (x + -2.0) / 0.24013125253755718;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = y / (x * x)
if (x <= (-5.3d+48)) then
tmp = 1.0d0 / (0.24013125253755718d0 / x)
else if (x <= (-1.25d+20)) then
tmp = t_0
else if (x <= (-0.175d0)) then
tmp = (x + (-2.0d0)) / (0.24013125253755718d0 + (5.86923874282773d0 / x))
else if (x <= 8.6d0) then
tmp = 1.0d0 / ((47.066876606d0 / z) / (x + (-2.0d0)))
else if (x <= 3.2d+44) then
tmp = t_0
else
tmp = (x + (-2.0d0)) / 0.24013125253755718d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = y / (x * x);
double tmp;
if (x <= -5.3e+48) {
tmp = 1.0 / (0.24013125253755718 / x);
} else if (x <= -1.25e+20) {
tmp = t_0;
} else if (x <= -0.175) {
tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x));
} else if (x <= 8.6) {
tmp = 1.0 / ((47.066876606 / z) / (x + -2.0));
} else if (x <= 3.2e+44) {
tmp = t_0;
} else {
tmp = (x + -2.0) / 0.24013125253755718;
}
return tmp;
}
def code(x, y, z): t_0 = y / (x * x) tmp = 0 if x <= -5.3e+48: tmp = 1.0 / (0.24013125253755718 / x) elif x <= -1.25e+20: tmp = t_0 elif x <= -0.175: tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x)) elif x <= 8.6: tmp = 1.0 / ((47.066876606 / z) / (x + -2.0)) elif x <= 3.2e+44: tmp = t_0 else: tmp = (x + -2.0) / 0.24013125253755718 return tmp
function code(x, y, z) t_0 = Float64(y / Float64(x * x)) tmp = 0.0 if (x <= -5.3e+48) tmp = Float64(1.0 / Float64(0.24013125253755718 / x)); elseif (x <= -1.25e+20) tmp = t_0; elseif (x <= -0.175) tmp = Float64(Float64(x + -2.0) / Float64(0.24013125253755718 + Float64(5.86923874282773 / x))); elseif (x <= 8.6) tmp = Float64(1.0 / Float64(Float64(47.066876606 / z) / Float64(x + -2.0))); elseif (x <= 3.2e+44) tmp = t_0; else tmp = Float64(Float64(x + -2.0) / 0.24013125253755718); end return tmp end
function tmp_2 = code(x, y, z) t_0 = y / (x * x); tmp = 0.0; if (x <= -5.3e+48) tmp = 1.0 / (0.24013125253755718 / x); elseif (x <= -1.25e+20) tmp = t_0; elseif (x <= -0.175) tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x)); elseif (x <= 8.6) tmp = 1.0 / ((47.066876606 / z) / (x + -2.0)); elseif (x <= 3.2e+44) tmp = t_0; else tmp = (x + -2.0) / 0.24013125253755718; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(y / N[(x * x), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -5.3e+48], N[(1.0 / N[(0.24013125253755718 / x), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -1.25e+20], t$95$0, If[LessEqual[x, -0.175], N[(N[(x + -2.0), $MachinePrecision] / N[(0.24013125253755718 + N[(5.86923874282773 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 8.6], N[(1.0 / N[(N[(47.066876606 / z), $MachinePrecision] / N[(x + -2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 3.2e+44], t$95$0, N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{y}{x \cdot x}\\
\mathbf{if}\;x \leq -5.3 \cdot 10^{+48}:\\
\;\;\;\;\frac{1}{\frac{0.24013125253755718}{x}}\\
\mathbf{elif}\;x \leq -1.25 \cdot 10^{+20}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;x \leq -0.175:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718 + \frac{5.86923874282773}{x}}\\
\mathbf{elif}\;x \leq 8.6:\\
\;\;\;\;\frac{1}{\frac{\frac{47.066876606}{z}}{x + -2}}\\
\mathbf{elif}\;x \leq 3.2 \cdot 10^{+44}:\\
\;\;\;\;t_0\\
\mathbf{else}:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718}\\
\end{array}
\end{array}
if x < -5.3e48Initial program 5.4%
*-commutative5.4%
associate-*r/8.8%
*-commutative8.8%
fma-def8.8%
*-commutative8.8%
fma-def8.8%
*-commutative8.8%
fma-def8.8%
fma-def8.8%
Simplified8.8%
Applied egg-rr8.8%
Taylor expanded in x around inf 99.6%
if -5.3e48 < x < -1.25e20 or 8.59999999999999964 < x < 3.20000000000000004e44Initial program 80.5%
Taylor expanded in x around 0 77.5%
*-commutative77.5%
Simplified77.5%
Taylor expanded in x around -inf 69.5%
+-commutative69.5%
mul-1-neg69.5%
unsub-neg69.5%
associate-*r/69.5%
metadata-eval69.5%
mul-1-neg69.5%
unsub-neg69.5%
unpow269.5%
Simplified69.5%
Taylor expanded in y around inf 69.8%
unpow269.8%
Simplified69.8%
if -1.25e20 < x < -0.17499999999999999Initial program 98.9%
associate-/l*98.9%
sub-neg98.9%
metadata-eval98.9%
fma-def99.2%
fma-def98.9%
fma-def98.8%
fma-def98.8%
fma-def98.8%
fma-def98.4%
fma-def98.4%
Simplified98.4%
Taylor expanded in x around inf 31.2%
associate-*r/31.2%
metadata-eval31.2%
Simplified31.2%
if -0.17499999999999999 < x < 8.59999999999999964Initial program 99.7%
*-commutative99.7%
associate-*r/99.5%
*-commutative99.5%
fma-def99.5%
*-commutative99.5%
fma-def99.5%
*-commutative99.5%
fma-def99.5%
fma-def99.5%
Simplified99.5%
Applied egg-rr99.6%
Taylor expanded in x around 0 66.0%
if 3.20000000000000004e44 < x Initial program 4.1%
associate-/l*5.9%
sub-neg5.9%
metadata-eval5.9%
fma-def5.9%
fma-def5.9%
fma-def5.9%
fma-def5.9%
fma-def5.9%
fma-def5.9%
fma-def5.9%
Simplified5.9%
Taylor expanded in x around inf 96.0%
Final simplification78.8%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (/ y (* x x))))
(if (<= x -5.3e+48)
(/ 1.0 (/ 0.24013125253755718 x))
(if (<= x -1.55e+19)
t_0
(if (<= x -5.5)
(-
(+ (* x 4.16438922228) (* 3655.1204654076414 (/ 1.0 x)))
110.1139242984811)
(if (<= x 128.0)
(/ 1.0 (/ (/ 47.066876606 z) (+ x -2.0)))
(if (<= x 3.2e+44) t_0 (/ (+ x -2.0) 0.24013125253755718))))))))
double code(double x, double y, double z) {
double t_0 = y / (x * x);
double tmp;
if (x <= -5.3e+48) {
tmp = 1.0 / (0.24013125253755718 / x);
} else if (x <= -1.55e+19) {
tmp = t_0;
} else if (x <= -5.5) {
tmp = ((x * 4.16438922228) + (3655.1204654076414 * (1.0 / x))) - 110.1139242984811;
} else if (x <= 128.0) {
tmp = 1.0 / ((47.066876606 / z) / (x + -2.0));
} else if (x <= 3.2e+44) {
tmp = t_0;
} else {
tmp = (x + -2.0) / 0.24013125253755718;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = y / (x * x)
if (x <= (-5.3d+48)) then
tmp = 1.0d0 / (0.24013125253755718d0 / x)
else if (x <= (-1.55d+19)) then
tmp = t_0
else if (x <= (-5.5d0)) then
tmp = ((x * 4.16438922228d0) + (3655.1204654076414d0 * (1.0d0 / x))) - 110.1139242984811d0
else if (x <= 128.0d0) then
tmp = 1.0d0 / ((47.066876606d0 / z) / (x + (-2.0d0)))
else if (x <= 3.2d+44) then
tmp = t_0
else
tmp = (x + (-2.0d0)) / 0.24013125253755718d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = y / (x * x);
double tmp;
if (x <= -5.3e+48) {
tmp = 1.0 / (0.24013125253755718 / x);
} else if (x <= -1.55e+19) {
tmp = t_0;
} else if (x <= -5.5) {
tmp = ((x * 4.16438922228) + (3655.1204654076414 * (1.0 / x))) - 110.1139242984811;
} else if (x <= 128.0) {
tmp = 1.0 / ((47.066876606 / z) / (x + -2.0));
} else if (x <= 3.2e+44) {
tmp = t_0;
} else {
tmp = (x + -2.0) / 0.24013125253755718;
}
return tmp;
}
def code(x, y, z): t_0 = y / (x * x) tmp = 0 if x <= -5.3e+48: tmp = 1.0 / (0.24013125253755718 / x) elif x <= -1.55e+19: tmp = t_0 elif x <= -5.5: tmp = ((x * 4.16438922228) + (3655.1204654076414 * (1.0 / x))) - 110.1139242984811 elif x <= 128.0: tmp = 1.0 / ((47.066876606 / z) / (x + -2.0)) elif x <= 3.2e+44: tmp = t_0 else: tmp = (x + -2.0) / 0.24013125253755718 return tmp
function code(x, y, z) t_0 = Float64(y / Float64(x * x)) tmp = 0.0 if (x <= -5.3e+48) tmp = Float64(1.0 / Float64(0.24013125253755718 / x)); elseif (x <= -1.55e+19) tmp = t_0; elseif (x <= -5.5) tmp = Float64(Float64(Float64(x * 4.16438922228) + Float64(3655.1204654076414 * Float64(1.0 / x))) - 110.1139242984811); elseif (x <= 128.0) tmp = Float64(1.0 / Float64(Float64(47.066876606 / z) / Float64(x + -2.0))); elseif (x <= 3.2e+44) tmp = t_0; else tmp = Float64(Float64(x + -2.0) / 0.24013125253755718); end return tmp end
function tmp_2 = code(x, y, z) t_0 = y / (x * x); tmp = 0.0; if (x <= -5.3e+48) tmp = 1.0 / (0.24013125253755718 / x); elseif (x <= -1.55e+19) tmp = t_0; elseif (x <= -5.5) tmp = ((x * 4.16438922228) + (3655.1204654076414 * (1.0 / x))) - 110.1139242984811; elseif (x <= 128.0) tmp = 1.0 / ((47.066876606 / z) / (x + -2.0)); elseif (x <= 3.2e+44) tmp = t_0; else tmp = (x + -2.0) / 0.24013125253755718; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(y / N[(x * x), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -5.3e+48], N[(1.0 / N[(0.24013125253755718 / x), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -1.55e+19], t$95$0, If[LessEqual[x, -5.5], N[(N[(N[(x * 4.16438922228), $MachinePrecision] + N[(3655.1204654076414 * N[(1.0 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - 110.1139242984811), $MachinePrecision], If[LessEqual[x, 128.0], N[(1.0 / N[(N[(47.066876606 / z), $MachinePrecision] / N[(x + -2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 3.2e+44], t$95$0, N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{y}{x \cdot x}\\
\mathbf{if}\;x \leq -5.3 \cdot 10^{+48}:\\
\;\;\;\;\frac{1}{\frac{0.24013125253755718}{x}}\\
\mathbf{elif}\;x \leq -1.55 \cdot 10^{+19}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;x \leq -5.5:\\
\;\;\;\;\left(x \cdot 4.16438922228 + 3655.1204654076414 \cdot \frac{1}{x}\right) - 110.1139242984811\\
\mathbf{elif}\;x \leq 128:\\
\;\;\;\;\frac{1}{\frac{\frac{47.066876606}{z}}{x + -2}}\\
\mathbf{elif}\;x \leq 3.2 \cdot 10^{+44}:\\
\;\;\;\;t_0\\
\mathbf{else}:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718}\\
\end{array}
\end{array}
if x < -5.3e48Initial program 5.4%
*-commutative5.4%
associate-*r/8.8%
*-commutative8.8%
fma-def8.8%
*-commutative8.8%
fma-def8.8%
*-commutative8.8%
fma-def8.8%
fma-def8.8%
Simplified8.8%
Applied egg-rr8.8%
Taylor expanded in x around inf 99.6%
if -5.3e48 < x < -1.55e19 or 128 < x < 3.20000000000000004e44Initial program 80.5%
Taylor expanded in x around 0 77.5%
*-commutative77.5%
Simplified77.5%
Taylor expanded in x around -inf 69.5%
+-commutative69.5%
mul-1-neg69.5%
unsub-neg69.5%
associate-*r/69.5%
metadata-eval69.5%
mul-1-neg69.5%
unsub-neg69.5%
unpow269.5%
Simplified69.5%
Taylor expanded in y around inf 69.8%
unpow269.8%
Simplified69.8%
if -1.55e19 < x < -5.5Initial program 98.7%
*-commutative98.7%
associate-*r/98.7%
*-commutative98.7%
fma-def98.7%
*-commutative98.7%
fma-def98.7%
*-commutative98.7%
fma-def98.4%
fma-def98.4%
Simplified98.3%
Taylor expanded in x around inf 37.1%
if -5.5 < x < 128Initial program 99.7%
*-commutative99.7%
associate-*r/99.5%
*-commutative99.5%
fma-def99.5%
*-commutative99.5%
fma-def99.5%
*-commutative99.5%
fma-def99.5%
fma-def99.5%
Simplified99.5%
Applied egg-rr99.6%
Taylor expanded in x around 0 65.5%
if 3.20000000000000004e44 < x Initial program 4.1%
associate-/l*5.9%
sub-neg5.9%
metadata-eval5.9%
fma-def5.9%
fma-def5.9%
fma-def5.9%
fma-def5.9%
fma-def5.9%
fma-def5.9%
fma-def5.9%
Simplified5.9%
Taylor expanded in x around inf 96.0%
Final simplification78.9%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (/ 1.0 (/ 0.24013125253755718 x))) (t_1 (/ y (* x x))))
(if (<= x -5.3e+48)
t_0
(if (<= x -5e+18)
t_1
(if (<= x -5.5)
(- (* x 4.16438922228) 110.1139242984811)
(if (<= x 2.0)
(/ 1.0 (/ -23.533438303 z))
(if (<= x 3.2e+44) t_1 t_0)))))))
double code(double x, double y, double z) {
double t_0 = 1.0 / (0.24013125253755718 / x);
double t_1 = y / (x * x);
double tmp;
if (x <= -5.3e+48) {
tmp = t_0;
} else if (x <= -5e+18) {
tmp = t_1;
} else if (x <= -5.5) {
tmp = (x * 4.16438922228) - 110.1139242984811;
} else if (x <= 2.0) {
tmp = 1.0 / (-23.533438303 / z);
} else if (x <= 3.2e+44) {
tmp = t_1;
} 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) :: t_1
real(8) :: tmp
t_0 = 1.0d0 / (0.24013125253755718d0 / x)
t_1 = y / (x * x)
if (x <= (-5.3d+48)) then
tmp = t_0
else if (x <= (-5d+18)) then
tmp = t_1
else if (x <= (-5.5d0)) then
tmp = (x * 4.16438922228d0) - 110.1139242984811d0
else if (x <= 2.0d0) then
tmp = 1.0d0 / ((-23.533438303d0) / z)
else if (x <= 3.2d+44) then
tmp = t_1
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = 1.0 / (0.24013125253755718 / x);
double t_1 = y / (x * x);
double tmp;
if (x <= -5.3e+48) {
tmp = t_0;
} else if (x <= -5e+18) {
tmp = t_1;
} else if (x <= -5.5) {
tmp = (x * 4.16438922228) - 110.1139242984811;
} else if (x <= 2.0) {
tmp = 1.0 / (-23.533438303 / z);
} else if (x <= 3.2e+44) {
tmp = t_1;
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = 1.0 / (0.24013125253755718 / x) t_1 = y / (x * x) tmp = 0 if x <= -5.3e+48: tmp = t_0 elif x <= -5e+18: tmp = t_1 elif x <= -5.5: tmp = (x * 4.16438922228) - 110.1139242984811 elif x <= 2.0: tmp = 1.0 / (-23.533438303 / z) elif x <= 3.2e+44: tmp = t_1 else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(1.0 / Float64(0.24013125253755718 / x)) t_1 = Float64(y / Float64(x * x)) tmp = 0.0 if (x <= -5.3e+48) tmp = t_0; elseif (x <= -5e+18) tmp = t_1; elseif (x <= -5.5) tmp = Float64(Float64(x * 4.16438922228) - 110.1139242984811); elseif (x <= 2.0) tmp = Float64(1.0 / Float64(-23.533438303 / z)); elseif (x <= 3.2e+44) tmp = t_1; else tmp = t_0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = 1.0 / (0.24013125253755718 / x); t_1 = y / (x * x); tmp = 0.0; if (x <= -5.3e+48) tmp = t_0; elseif (x <= -5e+18) tmp = t_1; elseif (x <= -5.5) tmp = (x * 4.16438922228) - 110.1139242984811; elseif (x <= 2.0) tmp = 1.0 / (-23.533438303 / z); elseif (x <= 3.2e+44) tmp = t_1; else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(1.0 / N[(0.24013125253755718 / x), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(y / N[(x * x), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -5.3e+48], t$95$0, If[LessEqual[x, -5e+18], t$95$1, If[LessEqual[x, -5.5], N[(N[(x * 4.16438922228), $MachinePrecision] - 110.1139242984811), $MachinePrecision], If[LessEqual[x, 2.0], N[(1.0 / N[(-23.533438303 / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 3.2e+44], t$95$1, t$95$0]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{1}{\frac{0.24013125253755718}{x}}\\
t_1 := \frac{y}{x \cdot x}\\
\mathbf{if}\;x \leq -5.3 \cdot 10^{+48}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;x \leq -5 \cdot 10^{+18}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -5.5:\\
\;\;\;\;x \cdot 4.16438922228 - 110.1139242984811\\
\mathbf{elif}\;x \leq 2:\\
\;\;\;\;\frac{1}{\frac{-23.533438303}{z}}\\
\mathbf{elif}\;x \leq 3.2 \cdot 10^{+44}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_0\\
\end{array}
\end{array}
if x < -5.3e48 or 3.20000000000000004e44 < x Initial program 4.8%
*-commutative4.8%
associate-*r/7.4%
*-commutative7.4%
fma-def7.4%
*-commutative7.4%
fma-def7.4%
*-commutative7.4%
fma-def7.4%
fma-def7.4%
Simplified7.4%
Applied egg-rr7.4%
Taylor expanded in x around inf 97.8%
if -5.3e48 < x < -5e18 or 2 < x < 3.20000000000000004e44Initial program 81.7%
Taylor expanded in x around 0 78.9%
*-commutative78.9%
Simplified78.9%
Taylor expanded in x around -inf 65.2%
+-commutative65.2%
mul-1-neg65.2%
unsub-neg65.2%
associate-*r/65.2%
metadata-eval65.2%
mul-1-neg65.2%
unsub-neg65.2%
unpow265.2%
Simplified65.2%
Taylor expanded in y around inf 65.7%
unpow265.7%
Simplified65.7%
if -5e18 < x < -5.5Initial program 98.7%
*-commutative98.7%
associate-*r/98.7%
*-commutative98.7%
fma-def98.7%
*-commutative98.7%
fma-def98.7%
*-commutative98.7%
fma-def98.4%
fma-def98.4%
Simplified98.3%
Taylor expanded in x around inf 33.8%
if -5.5 < x < 2Initial program 99.7%
*-commutative99.7%
associate-*r/99.5%
*-commutative99.5%
fma-def99.5%
*-commutative99.5%
fma-def99.5%
*-commutative99.5%
fma-def99.5%
fma-def99.5%
Simplified99.5%
Applied egg-rr99.6%
Taylor expanded in x around 0 65.9%
Final simplification78.7%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (/ y (* x x))))
(if (<= x -5.3e+48)
(/ 1.0 (/ 0.24013125253755718 x))
(if (<= x -2.15e+20)
t_0
(if (<= x -0.38)
(- (* x 4.16438922228) 110.1139242984811)
(if (<= x 2.0)
(/ 1.0 (/ -23.533438303 z))
(if (<= x 3.4e+44) t_0 (/ (+ x -2.0) 0.24013125253755718))))))))
double code(double x, double y, double z) {
double t_0 = y / (x * x);
double tmp;
if (x <= -5.3e+48) {
tmp = 1.0 / (0.24013125253755718 / x);
} else if (x <= -2.15e+20) {
tmp = t_0;
} else if (x <= -0.38) {
tmp = (x * 4.16438922228) - 110.1139242984811;
} else if (x <= 2.0) {
tmp = 1.0 / (-23.533438303 / z);
} else if (x <= 3.4e+44) {
tmp = t_0;
} else {
tmp = (x + -2.0) / 0.24013125253755718;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = y / (x * x)
if (x <= (-5.3d+48)) then
tmp = 1.0d0 / (0.24013125253755718d0 / x)
else if (x <= (-2.15d+20)) then
tmp = t_0
else if (x <= (-0.38d0)) then
tmp = (x * 4.16438922228d0) - 110.1139242984811d0
else if (x <= 2.0d0) then
tmp = 1.0d0 / ((-23.533438303d0) / z)
else if (x <= 3.4d+44) then
tmp = t_0
else
tmp = (x + (-2.0d0)) / 0.24013125253755718d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = y / (x * x);
double tmp;
if (x <= -5.3e+48) {
tmp = 1.0 / (0.24013125253755718 / x);
} else if (x <= -2.15e+20) {
tmp = t_0;
} else if (x <= -0.38) {
tmp = (x * 4.16438922228) - 110.1139242984811;
} else if (x <= 2.0) {
tmp = 1.0 / (-23.533438303 / z);
} else if (x <= 3.4e+44) {
tmp = t_0;
} else {
tmp = (x + -2.0) / 0.24013125253755718;
}
return tmp;
}
def code(x, y, z): t_0 = y / (x * x) tmp = 0 if x <= -5.3e+48: tmp = 1.0 / (0.24013125253755718 / x) elif x <= -2.15e+20: tmp = t_0 elif x <= -0.38: tmp = (x * 4.16438922228) - 110.1139242984811 elif x <= 2.0: tmp = 1.0 / (-23.533438303 / z) elif x <= 3.4e+44: tmp = t_0 else: tmp = (x + -2.0) / 0.24013125253755718 return tmp
function code(x, y, z) t_0 = Float64(y / Float64(x * x)) tmp = 0.0 if (x <= -5.3e+48) tmp = Float64(1.0 / Float64(0.24013125253755718 / x)); elseif (x <= -2.15e+20) tmp = t_0; elseif (x <= -0.38) tmp = Float64(Float64(x * 4.16438922228) - 110.1139242984811); elseif (x <= 2.0) tmp = Float64(1.0 / Float64(-23.533438303 / z)); elseif (x <= 3.4e+44) tmp = t_0; else tmp = Float64(Float64(x + -2.0) / 0.24013125253755718); end return tmp end
function tmp_2 = code(x, y, z) t_0 = y / (x * x); tmp = 0.0; if (x <= -5.3e+48) tmp = 1.0 / (0.24013125253755718 / x); elseif (x <= -2.15e+20) tmp = t_0; elseif (x <= -0.38) tmp = (x * 4.16438922228) - 110.1139242984811; elseif (x <= 2.0) tmp = 1.0 / (-23.533438303 / z); elseif (x <= 3.4e+44) tmp = t_0; else tmp = (x + -2.0) / 0.24013125253755718; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(y / N[(x * x), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -5.3e+48], N[(1.0 / N[(0.24013125253755718 / x), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -2.15e+20], t$95$0, If[LessEqual[x, -0.38], N[(N[(x * 4.16438922228), $MachinePrecision] - 110.1139242984811), $MachinePrecision], If[LessEqual[x, 2.0], N[(1.0 / N[(-23.533438303 / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 3.4e+44], t$95$0, N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{y}{x \cdot x}\\
\mathbf{if}\;x \leq -5.3 \cdot 10^{+48}:\\
\;\;\;\;\frac{1}{\frac{0.24013125253755718}{x}}\\
\mathbf{elif}\;x \leq -2.15 \cdot 10^{+20}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;x \leq -0.38:\\
\;\;\;\;x \cdot 4.16438922228 - 110.1139242984811\\
\mathbf{elif}\;x \leq 2:\\
\;\;\;\;\frac{1}{\frac{-23.533438303}{z}}\\
\mathbf{elif}\;x \leq 3.4 \cdot 10^{+44}:\\
\;\;\;\;t_0\\
\mathbf{else}:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718}\\
\end{array}
\end{array}
if x < -5.3e48Initial program 5.4%
*-commutative5.4%
associate-*r/8.8%
*-commutative8.8%
fma-def8.8%
*-commutative8.8%
fma-def8.8%
*-commutative8.8%
fma-def8.8%
fma-def8.8%
Simplified8.8%
Applied egg-rr8.8%
Taylor expanded in x around inf 99.6%
if -5.3e48 < x < -2.15e20 or 2 < x < 3.4e44Initial program 81.7%
Taylor expanded in x around 0 78.9%
*-commutative78.9%
Simplified78.9%
Taylor expanded in x around -inf 65.2%
+-commutative65.2%
mul-1-neg65.2%
unsub-neg65.2%
associate-*r/65.2%
metadata-eval65.2%
mul-1-neg65.2%
unsub-neg65.2%
unpow265.2%
Simplified65.2%
Taylor expanded in y around inf 65.7%
unpow265.7%
Simplified65.7%
if -2.15e20 < x < -0.38Initial program 98.7%
*-commutative98.7%
associate-*r/98.7%
*-commutative98.7%
fma-def98.7%
*-commutative98.7%
fma-def98.7%
*-commutative98.7%
fma-def98.4%
fma-def98.4%
Simplified98.3%
Taylor expanded in x around inf 33.8%
if -0.38 < x < 2Initial program 99.7%
*-commutative99.7%
associate-*r/99.5%
*-commutative99.5%
fma-def99.5%
*-commutative99.5%
fma-def99.5%
*-commutative99.5%
fma-def99.5%
fma-def99.5%
Simplified99.5%
Applied egg-rr99.6%
Taylor expanded in x around 0 65.9%
if 3.4e44 < x Initial program 4.1%
associate-/l*5.9%
sub-neg5.9%
metadata-eval5.9%
fma-def5.9%
fma-def5.9%
fma-def5.9%
fma-def5.9%
fma-def5.9%
fma-def5.9%
fma-def5.9%
Simplified5.9%
Taylor expanded in x around inf 96.0%
Final simplification78.7%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (/ y (* x x))))
(if (<= x -5.3e+48)
(/ 1.0 (/ 0.24013125253755718 x))
(if (<= x -8e+19)
t_0
(if (<= x -5.5)
(- (* x 4.16438922228) 110.1139242984811)
(if (<= x 14.5)
(/ (+ x -2.0) (/ 47.066876606 z))
(if (<= x 3.2e+44) t_0 (/ (+ x -2.0) 0.24013125253755718))))))))
double code(double x, double y, double z) {
double t_0 = y / (x * x);
double tmp;
if (x <= -5.3e+48) {
tmp = 1.0 / (0.24013125253755718 / x);
} else if (x <= -8e+19) {
tmp = t_0;
} else if (x <= -5.5) {
tmp = (x * 4.16438922228) - 110.1139242984811;
} else if (x <= 14.5) {
tmp = (x + -2.0) / (47.066876606 / z);
} else if (x <= 3.2e+44) {
tmp = t_0;
} else {
tmp = (x + -2.0) / 0.24013125253755718;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = y / (x * x)
if (x <= (-5.3d+48)) then
tmp = 1.0d0 / (0.24013125253755718d0 / x)
else if (x <= (-8d+19)) then
tmp = t_0
else if (x <= (-5.5d0)) then
tmp = (x * 4.16438922228d0) - 110.1139242984811d0
else if (x <= 14.5d0) then
tmp = (x + (-2.0d0)) / (47.066876606d0 / z)
else if (x <= 3.2d+44) then
tmp = t_0
else
tmp = (x + (-2.0d0)) / 0.24013125253755718d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = y / (x * x);
double tmp;
if (x <= -5.3e+48) {
tmp = 1.0 / (0.24013125253755718 / x);
} else if (x <= -8e+19) {
tmp = t_0;
} else if (x <= -5.5) {
tmp = (x * 4.16438922228) - 110.1139242984811;
} else if (x <= 14.5) {
tmp = (x + -2.0) / (47.066876606 / z);
} else if (x <= 3.2e+44) {
tmp = t_0;
} else {
tmp = (x + -2.0) / 0.24013125253755718;
}
return tmp;
}
def code(x, y, z): t_0 = y / (x * x) tmp = 0 if x <= -5.3e+48: tmp = 1.0 / (0.24013125253755718 / x) elif x <= -8e+19: tmp = t_0 elif x <= -5.5: tmp = (x * 4.16438922228) - 110.1139242984811 elif x <= 14.5: tmp = (x + -2.0) / (47.066876606 / z) elif x <= 3.2e+44: tmp = t_0 else: tmp = (x + -2.0) / 0.24013125253755718 return tmp
function code(x, y, z) t_0 = Float64(y / Float64(x * x)) tmp = 0.0 if (x <= -5.3e+48) tmp = Float64(1.0 / Float64(0.24013125253755718 / x)); elseif (x <= -8e+19) tmp = t_0; elseif (x <= -5.5) tmp = Float64(Float64(x * 4.16438922228) - 110.1139242984811); elseif (x <= 14.5) tmp = Float64(Float64(x + -2.0) / Float64(47.066876606 / z)); elseif (x <= 3.2e+44) tmp = t_0; else tmp = Float64(Float64(x + -2.0) / 0.24013125253755718); end return tmp end
function tmp_2 = code(x, y, z) t_0 = y / (x * x); tmp = 0.0; if (x <= -5.3e+48) tmp = 1.0 / (0.24013125253755718 / x); elseif (x <= -8e+19) tmp = t_0; elseif (x <= -5.5) tmp = (x * 4.16438922228) - 110.1139242984811; elseif (x <= 14.5) tmp = (x + -2.0) / (47.066876606 / z); elseif (x <= 3.2e+44) tmp = t_0; else tmp = (x + -2.0) / 0.24013125253755718; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(y / N[(x * x), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -5.3e+48], N[(1.0 / N[(0.24013125253755718 / x), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -8e+19], t$95$0, If[LessEqual[x, -5.5], N[(N[(x * 4.16438922228), $MachinePrecision] - 110.1139242984811), $MachinePrecision], If[LessEqual[x, 14.5], N[(N[(x + -2.0), $MachinePrecision] / N[(47.066876606 / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 3.2e+44], t$95$0, N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{y}{x \cdot x}\\
\mathbf{if}\;x \leq -5.3 \cdot 10^{+48}:\\
\;\;\;\;\frac{1}{\frac{0.24013125253755718}{x}}\\
\mathbf{elif}\;x \leq -8 \cdot 10^{+19}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;x \leq -5.5:\\
\;\;\;\;x \cdot 4.16438922228 - 110.1139242984811\\
\mathbf{elif}\;x \leq 14.5:\\
\;\;\;\;\frac{x + -2}{\frac{47.066876606}{z}}\\
\mathbf{elif}\;x \leq 3.2 \cdot 10^{+44}:\\
\;\;\;\;t_0\\
\mathbf{else}:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718}\\
\end{array}
\end{array}
if x < -5.3e48Initial program 5.4%
*-commutative5.4%
associate-*r/8.8%
*-commutative8.8%
fma-def8.8%
*-commutative8.8%
fma-def8.8%
*-commutative8.8%
fma-def8.8%
fma-def8.8%
Simplified8.8%
Applied egg-rr8.8%
Taylor expanded in x around inf 99.6%
if -5.3e48 < x < -8e19 or 14.5 < x < 3.20000000000000004e44Initial program 80.5%
Taylor expanded in x around 0 77.5%
*-commutative77.5%
Simplified77.5%
Taylor expanded in x around -inf 69.5%
+-commutative69.5%
mul-1-neg69.5%
unsub-neg69.5%
associate-*r/69.5%
metadata-eval69.5%
mul-1-neg69.5%
unsub-neg69.5%
unpow269.5%
Simplified69.5%
Taylor expanded in y around inf 69.8%
unpow269.8%
Simplified69.8%
if -8e19 < x < -5.5Initial program 98.7%
*-commutative98.7%
associate-*r/98.7%
*-commutative98.7%
fma-def98.7%
*-commutative98.7%
fma-def98.7%
*-commutative98.7%
fma-def98.4%
fma-def98.4%
Simplified98.3%
Taylor expanded in x around inf 33.8%
if -5.5 < x < 14.5Initial program 99.7%
associate-/l*99.5%
sub-neg99.5%
metadata-eval99.5%
fma-def99.5%
fma-def99.5%
fma-def99.5%
fma-def99.5%
fma-def99.5%
fma-def99.5%
fma-def99.5%
Simplified99.5%
Taylor expanded in x around 0 65.5%
if 3.20000000000000004e44 < x Initial program 4.1%
associate-/l*5.9%
sub-neg5.9%
metadata-eval5.9%
fma-def5.9%
fma-def5.9%
fma-def5.9%
fma-def5.9%
fma-def5.9%
fma-def5.9%
fma-def5.9%
Simplified5.9%
Taylor expanded in x around inf 96.0%
Final simplification78.8%
(FPCore (x y z) :precision binary64 (if (or (<= x -0.79) (not (<= x 6.8e-5))) (- (* x 4.16438922228) 110.1139242984811) (* z -0.0424927283095952)))
double code(double x, double y, double z) {
double tmp;
if ((x <= -0.79) || !(x <= 6.8e-5)) {
tmp = (x * 4.16438922228) - 110.1139242984811;
} else {
tmp = z * -0.0424927283095952;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((x <= (-0.79d0)) .or. (.not. (x <= 6.8d-5))) then
tmp = (x * 4.16438922228d0) - 110.1139242984811d0
else
tmp = z * (-0.0424927283095952d0)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -0.79) || !(x <= 6.8e-5)) {
tmp = (x * 4.16438922228) - 110.1139242984811;
} else {
tmp = z * -0.0424927283095952;
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -0.79) or not (x <= 6.8e-5): tmp = (x * 4.16438922228) - 110.1139242984811 else: tmp = z * -0.0424927283095952 return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -0.79) || !(x <= 6.8e-5)) tmp = Float64(Float64(x * 4.16438922228) - 110.1139242984811); else tmp = Float64(z * -0.0424927283095952); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -0.79) || ~((x <= 6.8e-5))) tmp = (x * 4.16438922228) - 110.1139242984811; else tmp = z * -0.0424927283095952; end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -0.79], N[Not[LessEqual[x, 6.8e-5]], $MachinePrecision]], N[(N[(x * 4.16438922228), $MachinePrecision] - 110.1139242984811), $MachinePrecision], N[(z * -0.0424927283095952), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -0.79 \lor \neg \left(x \leq 6.8 \cdot 10^{-5}\right):\\
\;\;\;\;x \cdot 4.16438922228 - 110.1139242984811\\
\mathbf{else}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\end{array}
\end{array}
if x < -0.79000000000000004 or 6.7999999999999999e-5 < x Initial program 19.2%
*-commutative19.2%
associate-*r/22.8%
*-commutative22.8%
fma-def22.8%
*-commutative22.8%
fma-def22.8%
*-commutative22.8%
fma-def22.8%
fma-def22.8%
Simplified22.8%
Taylor expanded in x around inf 82.0%
if -0.79000000000000004 < x < 6.7999999999999999e-5Initial program 99.7%
*-commutative99.7%
associate-*r/99.5%
*-commutative99.5%
fma-def99.5%
*-commutative99.5%
fma-def99.5%
*-commutative99.5%
fma-def99.5%
fma-def99.5%
Simplified99.5%
Taylor expanded in x around 0 66.9%
Final simplification74.7%
(FPCore (x y z) :precision binary64 (if (or (<= x -5.5) (not (<= x 6.8e-5))) (- (* x 4.16438922228) 110.1139242984811) (/ 1.0 (/ -23.533438303 z))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -5.5) || !(x <= 6.8e-5)) {
tmp = (x * 4.16438922228) - 110.1139242984811;
} else {
tmp = 1.0 / (-23.533438303 / z);
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((x <= (-5.5d0)) .or. (.not. (x <= 6.8d-5))) then
tmp = (x * 4.16438922228d0) - 110.1139242984811d0
else
tmp = 1.0d0 / ((-23.533438303d0) / z)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -5.5) || !(x <= 6.8e-5)) {
tmp = (x * 4.16438922228) - 110.1139242984811;
} else {
tmp = 1.0 / (-23.533438303 / z);
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -5.5) or not (x <= 6.8e-5): tmp = (x * 4.16438922228) - 110.1139242984811 else: tmp = 1.0 / (-23.533438303 / z) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -5.5) || !(x <= 6.8e-5)) tmp = Float64(Float64(x * 4.16438922228) - 110.1139242984811); else tmp = Float64(1.0 / Float64(-23.533438303 / z)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -5.5) || ~((x <= 6.8e-5))) tmp = (x * 4.16438922228) - 110.1139242984811; else tmp = 1.0 / (-23.533438303 / z); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -5.5], N[Not[LessEqual[x, 6.8e-5]], $MachinePrecision]], N[(N[(x * 4.16438922228), $MachinePrecision] - 110.1139242984811), $MachinePrecision], N[(1.0 / N[(-23.533438303 / z), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -5.5 \lor \neg \left(x \leq 6.8 \cdot 10^{-5}\right):\\
\;\;\;\;x \cdot 4.16438922228 - 110.1139242984811\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\frac{-23.533438303}{z}}\\
\end{array}
\end{array}
if x < -5.5 or 6.7999999999999999e-5 < x Initial program 19.2%
*-commutative19.2%
associate-*r/22.8%
*-commutative22.8%
fma-def22.8%
*-commutative22.8%
fma-def22.8%
*-commutative22.8%
fma-def22.8%
fma-def22.8%
Simplified22.8%
Taylor expanded in x around inf 82.0%
if -5.5 < x < 6.7999999999999999e-5Initial program 99.7%
*-commutative99.7%
associate-*r/99.5%
*-commutative99.5%
fma-def99.5%
*-commutative99.5%
fma-def99.5%
*-commutative99.5%
fma-def99.5%
fma-def99.5%
Simplified99.5%
Applied egg-rr99.6%
Taylor expanded in x around 0 66.9%
Final simplification74.7%
(FPCore (x y z) :precision binary64 (if (or (<= x -0.49) (not (<= x 2e+24))) (/ 1.0 (/ 0.24013125253755718 x)) (/ 1.0 (/ -23.533438303 z))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -0.49) || !(x <= 2e+24)) {
tmp = 1.0 / (0.24013125253755718 / x);
} else {
tmp = 1.0 / (-23.533438303 / z);
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((x <= (-0.49d0)) .or. (.not. (x <= 2d+24))) then
tmp = 1.0d0 / (0.24013125253755718d0 / x)
else
tmp = 1.0d0 / ((-23.533438303d0) / z)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -0.49) || !(x <= 2e+24)) {
tmp = 1.0 / (0.24013125253755718 / x);
} else {
tmp = 1.0 / (-23.533438303 / z);
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -0.49) or not (x <= 2e+24): tmp = 1.0 / (0.24013125253755718 / x) else: tmp = 1.0 / (-23.533438303 / z) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -0.49) || !(x <= 2e+24)) tmp = Float64(1.0 / Float64(0.24013125253755718 / x)); else tmp = Float64(1.0 / Float64(-23.533438303 / z)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -0.49) || ~((x <= 2e+24))) tmp = 1.0 / (0.24013125253755718 / x); else tmp = 1.0 / (-23.533438303 / z); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -0.49], N[Not[LessEqual[x, 2e+24]], $MachinePrecision]], N[(1.0 / N[(0.24013125253755718 / x), $MachinePrecision]), $MachinePrecision], N[(1.0 / N[(-23.533438303 / z), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -0.49 \lor \neg \left(x \leq 2 \cdot 10^{+24}\right):\\
\;\;\;\;\frac{1}{\frac{0.24013125253755718}{x}}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\frac{-23.533438303}{z}}\\
\end{array}
\end{array}
if x < -0.48999999999999999 or 2e24 < x Initial program 14.0%
*-commutative14.0%
associate-*r/17.9%
*-commutative17.9%
fma-def17.9%
*-commutative17.9%
fma-def17.9%
*-commutative17.9%
fma-def17.9%
fma-def17.9%
Simplified17.9%
Applied egg-rr17.9%
Taylor expanded in x around inf 87.4%
if -0.48999999999999999 < x < 2e24Initial program 99.6%
*-commutative99.6%
associate-*r/99.4%
*-commutative99.4%
fma-def99.4%
*-commutative99.4%
fma-def99.4%
*-commutative99.4%
fma-def99.4%
fma-def99.4%
Simplified99.4%
Applied egg-rr99.6%
Taylor expanded in x around 0 63.1%
Final simplification74.8%
(FPCore (x y z) :precision binary64 (if (<= x -5.5) (* x 4.16438922228) (if (<= x 2e+24) (* z -0.0424927283095952) (* x 4.16438922228))))
double code(double x, double y, double z) {
double tmp;
if (x <= -5.5) {
tmp = x * 4.16438922228;
} else if (x <= 2e+24) {
tmp = z * -0.0424927283095952;
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-5.5d0)) then
tmp = x * 4.16438922228d0
else if (x <= 2d+24) then
tmp = z * (-0.0424927283095952d0)
else
tmp = x * 4.16438922228d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -5.5) {
tmp = x * 4.16438922228;
} else if (x <= 2e+24) {
tmp = z * -0.0424927283095952;
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -5.5: tmp = x * 4.16438922228 elif x <= 2e+24: tmp = z * -0.0424927283095952 else: tmp = x * 4.16438922228 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -5.5) tmp = Float64(x * 4.16438922228); elseif (x <= 2e+24) tmp = Float64(z * -0.0424927283095952); else tmp = Float64(x * 4.16438922228); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -5.5) tmp = x * 4.16438922228; elseif (x <= 2e+24) tmp = z * -0.0424927283095952; else tmp = x * 4.16438922228; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -5.5], N[(x * 4.16438922228), $MachinePrecision], If[LessEqual[x, 2e+24], N[(z * -0.0424927283095952), $MachinePrecision], N[(x * 4.16438922228), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -5.5:\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{elif}\;x \leq 2 \cdot 10^{+24}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228\\
\end{array}
\end{array}
if x < -5.5 or 2e24 < x Initial program 14.0%
*-commutative14.0%
associate-*r/17.9%
*-commutative17.9%
fma-def17.9%
*-commutative17.9%
fma-def17.9%
*-commutative17.9%
fma-def17.9%
fma-def17.9%
Simplified17.9%
Taylor expanded in x around inf 87.0%
*-commutative87.0%
Simplified87.0%
if -5.5 < x < 2e24Initial program 99.6%
*-commutative99.6%
associate-*r/99.4%
*-commutative99.4%
fma-def99.4%
*-commutative99.4%
fma-def99.4%
*-commutative99.4%
fma-def99.4%
fma-def99.4%
Simplified99.4%
Taylor expanded in x around 0 63.0%
Final simplification74.6%
(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 58.5%
*-commutative58.5%
associate-*r/60.2%
*-commutative60.2%
fma-def60.2%
*-commutative60.2%
fma-def60.2%
*-commutative60.2%
fma-def60.2%
fma-def60.2%
Simplified60.2%
Taylor expanded in x around 0 34.4%
Final simplification34.4%
(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 2023290
(FPCore (x y z)
:name "Numeric.SpecFunctions:logGamma from math-functions-0.1.5.2, C"
:precision binary64
:herbie-target
(if (< x -3.326128725870005e+62) (- (+ (/ y (* x x)) (* 4.16438922228 x)) 110.1139242984811) (if (< x 9.429991714554673e+55) (* (/ (- x 2.0) 1.0) (/ (+ (* (+ (* (+ (* (+ (* x 4.16438922228) 78.6994924154) x) 137.519416416) x) y) x) z) (+ (* (+ (+ (* 263.505074721 x) (+ (* 43.3400022514 (* x x)) (* x (* x x)))) 313.399215894) x) 47.066876606))) (- (+ (/ y (* x x)) (* 4.16438922228 x)) 110.1139242984811)))
(/ (* (- x 2.0) (+ (* (+ (* (+ (* (+ (* x 4.16438922228) 78.6994924154) x) 137.519416416) x) y) x) z)) (+ (* (+ (* (+ (* (+ x 43.3400022514) x) 263.505074721) x) 313.399215894) x) 47.066876606)))