
(FPCore (x y z)
:precision binary64
(/
(*
(- x 2.0)
(+
(*
(+ (* (+ (* (+ (* x 4.16438922228) 78.6994924154) x) 137.519416416) x) y)
x)
z))
(+
(* (+ (* (+ (* (+ x 43.3400022514) x) 263.505074721) x) 313.399215894) x)
47.066876606)))
double code(double x, double y, double z) {
return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606);
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = ((x - 2.0d0) * ((((((((x * 4.16438922228d0) + 78.6994924154d0) * x) + 137.519416416d0) * x) + y) * x) + z)) / (((((((x + 43.3400022514d0) * x) + 263.505074721d0) * x) + 313.399215894d0) * x) + 47.066876606d0)
end function
public static double code(double x, double y, double z) {
return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606);
}
def code(x, y, z): return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606)
function code(x, y, z) return Float64(Float64(Float64(x - 2.0) * Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606)) end
function tmp = code(x, y, z) tmp = ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606); end
code[x_, y_, z_] := N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(N[(N[(N[(N[(N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision] * x), $MachinePrecision] + 137.519416416), $MachinePrecision] * x), $MachinePrecision] + y), $MachinePrecision] * x), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(x + 43.3400022514), $MachinePrecision] * x), $MachinePrecision] + 263.505074721), $MachinePrecision] * x), $MachinePrecision] + 313.399215894), $MachinePrecision] * x), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 23 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z)
:precision binary64
(/
(*
(- x 2.0)
(+
(*
(+ (* (+ (* (+ (* x 4.16438922228) 78.6994924154) x) 137.519416416) x) y)
x)
z))
(+
(* (+ (* (+ (* (+ x 43.3400022514) x) 263.505074721) x) 313.399215894) x)
47.066876606)))
double code(double x, double y, double z) {
return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606);
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = ((x - 2.0d0) * ((((((((x * 4.16438922228d0) + 78.6994924154d0) * x) + 137.519416416d0) * x) + y) * x) + z)) / (((((((x + 43.3400022514d0) * x) + 263.505074721d0) * x) + 313.399215894d0) * x) + 47.066876606d0)
end function
public static double code(double x, double y, double z) {
return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606);
}
def code(x, y, z): return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606)
function code(x, y, z) return Float64(Float64(Float64(x - 2.0) * Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606)) end
function tmp = code(x, y, z) tmp = ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606); end
code[x_, y_, z_] := N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(N[(N[(N[(N[(N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision] * x), $MachinePrecision] + 137.519416416), $MachinePrecision] * x), $MachinePrecision] + y), $MachinePrecision] * x), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(x + 43.3400022514), $MachinePrecision] * x), $MachinePrecision] + 263.505074721), $MachinePrecision] * x), $MachinePrecision] + 313.399215894), $MachinePrecision] * x), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606}
\end{array}
(FPCore (x y z)
:precision binary64
(let* ((t_0
(/
(*
(- x 2.0)
(+
(*
x
(+
(*
x
(+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))
y))
z))
(+
(*
x
(+
(* x (+ (* x (+ x 43.3400022514)) 263.505074721))
313.399215894))
47.066876606))))
(if (or (<= t_0 (- INFINITY)) (not (<= t_0 4e+271)))
(+
(fma x 4.16438922228 -110.1139242984811)
(+ (/ 3655.1204654076414 x) (/ (- y 130977.50649958357) (* x x))))
t_0)))
double code(double x, double y, double z) {
double t_0 = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606);
double tmp;
if ((t_0 <= -((double) INFINITY)) || !(t_0 <= 4e+271)) {
tmp = fma(x, 4.16438922228, -110.1139242984811) + ((3655.1204654076414 / x) + ((y - 130977.50649958357) / (x * x)));
} else {
tmp = t_0;
}
return tmp;
}
function code(x, y, z) t_0 = Float64(Float64(Float64(x - 2.0) * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) tmp = 0.0 if ((t_0 <= Float64(-Inf)) || !(t_0 <= 4e+271)) tmp = Float64(fma(x, 4.16438922228, -110.1139242984811) + Float64(Float64(3655.1204654076414 / x) + Float64(Float64(y - 130977.50649958357) / Float64(x * x)))); else tmp = t_0; end return tmp end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(x * N[(N[(x * N[(N[(x * N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision]), $MachinePrecision] + 137.519416416), $MachinePrecision]), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[t$95$0, (-Infinity)], N[Not[LessEqual[t$95$0, 4e+271]], $MachinePrecision]], N[(N[(x * 4.16438922228 + -110.1139242984811), $MachinePrecision] + N[(N[(3655.1204654076414 / x), $MachinePrecision] + N[(N[(y - 130977.50649958357), $MachinePrecision] / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$0]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{\left(x - 2\right) \cdot \left(x \cdot \left(x \cdot \left(x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right) + 137.519416416\right) + y\right) + z\right)}{x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606}\\
\mathbf{if}\;t_0 \leq -\infty \lor \neg \left(t_0 \leq 4 \cdot 10^{+271}\right):\\
\;\;\;\;\mathsf{fma}\left(x, 4.16438922228, -110.1139242984811\right) + \left(\frac{3655.1204654076414}{x} + \frac{y - 130977.50649958357}{x \cdot x}\right)\\
\mathbf{else}:\\
\;\;\;\;t_0\\
\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.0 or 3.99999999999999981e271 < (/.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.6%
associate-*r/7.2%
sub-neg7.2%
metadata-eval7.2%
*-commutative7.2%
fma-def7.2%
*-commutative7.2%
fma-def7.3%
*-commutative7.3%
fma-def7.3%
fma-def7.3%
*-commutative7.3%
Simplified7.3%
Taylor expanded in x around -inf 97.4%
sub-neg97.4%
+-commutative97.4%
+-commutative97.4%
*-commutative97.4%
associate-+l+97.4%
associate-+r+97.4%
+-commutative97.4%
fma-def97.4%
metadata-eval97.4%
mul-1-neg97.4%
unsub-neg97.4%
associate-*r/97.4%
metadata-eval97.4%
mul-1-neg97.4%
unsub-neg97.4%
unpow297.4%
Simplified97.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)) < 3.99999999999999981e271Initial program 99.6%
Final simplification98.6%
(FPCore (x y z)
:precision binary64
(if (<=
(/
(*
(- x 2.0)
(+
(*
x
(+
(* x (+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))
y))
z))
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))
4e+271)
(*
(+ x -2.0)
(/
(fma
x
(fma x (fma x (fma x 4.16438922228 78.6994924154) 137.519416416) y)
z)
(fma
x
(fma x (fma x (+ x 43.3400022514) 263.505074721) 313.399215894)
47.066876606)))
(+
(fma x 4.16438922228 -110.1139242984811)
(+ (/ 3655.1204654076414 x) (/ (- y 130977.50649958357) (* x x))))))
double code(double x, double y, double z) {
double tmp;
if ((((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) <= 4e+271) {
tmp = (x + -2.0) * (fma(x, fma(x, fma(x, fma(x, 4.16438922228, 78.6994924154), 137.519416416), y), z) / fma(x, fma(x, fma(x, (x + 43.3400022514), 263.505074721), 313.399215894), 47.066876606));
} else {
tmp = fma(x, 4.16438922228, -110.1139242984811) + ((3655.1204654076414 / x) + ((y - 130977.50649958357) / (x * x)));
}
return tmp;
}
function code(x, y, z) tmp = 0.0 if (Float64(Float64(Float64(x - 2.0) * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) <= 4e+271) tmp = Float64(Float64(x + -2.0) * Float64(fma(x, fma(x, fma(x, fma(x, 4.16438922228, 78.6994924154), 137.519416416), y), z) / fma(x, fma(x, fma(x, Float64(x + 43.3400022514), 263.505074721), 313.399215894), 47.066876606))); else tmp = Float64(fma(x, 4.16438922228, -110.1139242984811) + Float64(Float64(3655.1204654076414 / x) + Float64(Float64(y - 130977.50649958357) / Float64(x * x)))); end return tmp end
code[x_, y_, z_] := If[LessEqual[N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(x * N[(N[(x * N[(N[(x * N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision]), $MachinePrecision] + 137.519416416), $MachinePrecision]), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision], 4e+271], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(x * N[(x * N[(x * N[(x * 4.16438922228 + 78.6994924154), $MachinePrecision] + 137.519416416), $MachinePrecision] + y), $MachinePrecision] + z), $MachinePrecision] / N[(x * N[(x * N[(x * N[(x + 43.3400022514), $MachinePrecision] + 263.505074721), $MachinePrecision] + 313.399215894), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x * 4.16438922228 + -110.1139242984811), $MachinePrecision] + N[(N[(3655.1204654076414 / x), $MachinePrecision] + N[(N[(y - 130977.50649958357), $MachinePrecision] / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{\left(x - 2\right) \cdot \left(x \cdot \left(x \cdot \left(x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right) + 137.519416416\right) + y\right) + z\right)}{x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606} \leq 4 \cdot 10^{+271}:\\
\;\;\;\;\left(x + -2\right) \cdot \frac{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), 137.519416416\right), y\right), z\right)}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)}\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(x, 4.16438922228, -110.1139242984811\right) + \left(\frac{3655.1204654076414}{x} + \frac{y - 130977.50649958357}{x \cdot x}\right)\\
\end{array}
\end{array}
if (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) < 3.99999999999999981e271Initial program 93.4%
associate-*r/97.6%
sub-neg97.6%
metadata-eval97.6%
*-commutative97.6%
fma-def97.6%
*-commutative97.6%
fma-def97.6%
*-commutative97.6%
fma-def97.6%
fma-def97.6%
*-commutative97.6%
Simplified97.6%
if 3.99999999999999981e271 < (/.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%
associate-*r/1.1%
sub-neg1.1%
metadata-eval1.1%
*-commutative1.1%
fma-def1.1%
*-commutative1.1%
fma-def1.1%
*-commutative1.1%
fma-def1.1%
fma-def1.1%
*-commutative1.1%
Simplified1.1%
Taylor expanded in x around -inf 99.1%
sub-neg99.1%
+-commutative99.1%
+-commutative99.1%
*-commutative99.1%
associate-+l+99.1%
associate-+r+99.1%
+-commutative99.1%
fma-def99.1%
metadata-eval99.1%
mul-1-neg99.1%
unsub-neg99.1%
associate-*r/99.1%
metadata-eval99.1%
mul-1-neg99.1%
unsub-neg99.1%
unpow299.1%
Simplified99.1%
Final simplification98.2%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(*
x
(+
(* x (+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))
y)))
(t_1
(/
(* (- x 2.0) (+ t_0 z))
(+
(*
x
(+
(* x (+ (* x (+ x 43.3400022514)) 263.505074721))
313.399215894))
47.066876606))))
(if (<= t_1 (- INFINITY))
(*
(+ x -2.0)
(/
t_0
(+
47.066876606
(* x (+ 313.399215894 (* (+ x 43.3400022514) (* x x)))))))
(if (<= t_1 4e+271) t_1 (* x 4.16438922228)))))
double code(double x, double y, double z) {
double t_0 = x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y);
double t_1 = ((x - 2.0) * (t_0 + z)) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606);
double tmp;
if (t_1 <= -((double) INFINITY)) {
tmp = (x + -2.0) * (t_0 / (47.066876606 + (x * (313.399215894 + ((x + 43.3400022514) * (x * x))))));
} else if (t_1 <= 4e+271) {
tmp = t_1;
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
public static double code(double x, double y, double z) {
double t_0 = x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y);
double t_1 = ((x - 2.0) * (t_0 + z)) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606);
double tmp;
if (t_1 <= -Double.POSITIVE_INFINITY) {
tmp = (x + -2.0) * (t_0 / (47.066876606 + (x * (313.399215894 + ((x + 43.3400022514) * (x * x))))));
} else if (t_1 <= 4e+271) {
tmp = t_1;
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
def code(x, y, z): t_0 = x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y) t_1 = ((x - 2.0) * (t_0 + z)) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) tmp = 0 if t_1 <= -math.inf: tmp = (x + -2.0) * (t_0 / (47.066876606 + (x * (313.399215894 + ((x + 43.3400022514) * (x * x)))))) elif t_1 <= 4e+271: tmp = t_1 else: tmp = x * 4.16438922228 return tmp
function code(x, y, z) t_0 = Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) t_1 = Float64(Float64(Float64(x - 2.0) * Float64(t_0 + 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_1 <= Float64(-Inf)) tmp = Float64(Float64(x + -2.0) * Float64(t_0 / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(Float64(x + 43.3400022514) * Float64(x * x))))))); elseif (t_1 <= 4e+271) tmp = t_1; else tmp = Float64(x * 4.16438922228); end return tmp end
function tmp_2 = code(x, y, z) t_0 = x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y); t_1 = ((x - 2.0) * (t_0 + z)) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606); tmp = 0.0; if (t_1 <= -Inf) tmp = (x + -2.0) * (t_0 / (47.066876606 + (x * (313.399215894 + ((x + 43.3400022514) * (x * x)))))); elseif (t_1 <= 4e+271) tmp = t_1; else tmp = x * 4.16438922228; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(x * N[(N[(x * N[(N[(x * N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision]), $MachinePrecision] + 137.519416416), $MachinePrecision]), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(N[(N[(x - 2.0), $MachinePrecision] * N[(t$95$0 + 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$1, (-Infinity)], N[(N[(x + -2.0), $MachinePrecision] * N[(t$95$0 / N[(47.066876606 + N[(x * N[(313.399215894 + N[(N[(x + 43.3400022514), $MachinePrecision] * N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 4e+271], t$95$1, N[(x * 4.16438922228), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(x \cdot \left(x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right) + 137.519416416\right) + y\right)\\
t_1 := \frac{\left(x - 2\right) \cdot \left(t_0 + 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_1 \leq -\infty:\\
\;\;\;\;\left(x + -2\right) \cdot \frac{t_0}{47.066876606 + x \cdot \left(313.399215894 + \left(x + 43.3400022514\right) \cdot \left(x \cdot x\right)\right)}\\
\mathbf{elif}\;t_1 \leq 4 \cdot 10^{+271}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228\\
\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 4.5%
associate-*r/70.4%
sub-neg70.4%
metadata-eval70.4%
*-commutative70.4%
fma-def70.4%
*-commutative70.4%
fma-def70.6%
*-commutative70.6%
fma-def70.6%
fma-def70.6%
*-commutative70.6%
Simplified70.6%
Taylor expanded in z around 0 50.9%
Taylor expanded in x around inf 50.9%
cube-mult50.9%
unpow250.9%
distribute-rgt-out50.9%
unpow250.9%
+-commutative50.9%
Simplified50.9%
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)) < 3.99999999999999981e271Initial program 99.6%
if 3.99999999999999981e271 < (/.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/1.1%
*-commutative1.1%
fma-def1.1%
*-commutative1.1%
fma-def1.1%
*-commutative1.1%
fma-def1.1%
fma-def1.1%
Simplified1.1%
fma-def1.1%
flip3-+1.1%
metadata-eval1.1%
metadata-eval1.1%
Applied egg-rr1.1%
cube-prod1.1%
metadata-eval1.1%
swap-sqr1.1%
metadata-eval1.1%
associate-*l*1.1%
metadata-eval1.1%
Simplified1.1%
Taylor expanded in x around inf 96.3%
*-commutative96.3%
Simplified96.3%
Final simplification96.3%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606)))
(if (<= x -6.6e+28)
(+ (* x 4.16438922228) (/ z (pow x 3.0)))
(if (<= x 3.8e+27)
(/
(*
(- x 2.0)
(+
(*
x
(+
(* x (+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))
y))
z))
t_0)
(+
(* x 4.16438922228)
(*
z
(+
(/ x t_0)
(*
2.0
(/
-1.0
(+
47.066876606
(* x (+ 313.399215894 (* (+ x 43.3400022514) (* x 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 tmp;
if (x <= -6.6e+28) {
tmp = (x * 4.16438922228) + (z / pow(x, 3.0));
} else if (x <= 3.8e+27) {
tmp = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / t_0;
} else {
tmp = (x * 4.16438922228) + (z * ((x / t_0) + (2.0 * (-1.0 / (47.066876606 + (x * (313.399215894 + ((x + 43.3400022514) * (x * x)))))))));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = (x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0
if (x <= (-6.6d+28)) then
tmp = (x * 4.16438922228d0) + (z / (x ** 3.0d0))
else if (x <= 3.8d+27) then
tmp = ((x - 2.0d0) * ((x * ((x * ((x * ((x * 4.16438922228d0) + 78.6994924154d0)) + 137.519416416d0)) + y)) + z)) / t_0
else
tmp = (x * 4.16438922228d0) + (z * ((x / t_0) + (2.0d0 * ((-1.0d0) / (47.066876606d0 + (x * (313.399215894d0 + ((x + 43.3400022514d0) * (x * 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 tmp;
if (x <= -6.6e+28) {
tmp = (x * 4.16438922228) + (z / Math.pow(x, 3.0));
} else if (x <= 3.8e+27) {
tmp = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / t_0;
} else {
tmp = (x * 4.16438922228) + (z * ((x / t_0) + (2.0 * (-1.0 / (47.066876606 + (x * (313.399215894 + ((x + 43.3400022514) * (x * x)))))))));
}
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 <= -6.6e+28: tmp = (x * 4.16438922228) + (z / math.pow(x, 3.0)) elif x <= 3.8e+27: tmp = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / t_0 else: tmp = (x * 4.16438922228) + (z * ((x / t_0) + (2.0 * (-1.0 / (47.066876606 + (x * (313.399215894 + ((x + 43.3400022514) * (x * 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) tmp = 0.0 if (x <= -6.6e+28) tmp = Float64(Float64(x * 4.16438922228) + Float64(z / (x ^ 3.0))); elseif (x <= 3.8e+27) tmp = Float64(Float64(Float64(x - 2.0) * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / t_0); else tmp = Float64(Float64(x * 4.16438922228) + Float64(z * Float64(Float64(x / t_0) + Float64(2.0 * Float64(-1.0 / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(Float64(x + 43.3400022514) * Float64(x * 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; tmp = 0.0; if (x <= -6.6e+28) tmp = (x * 4.16438922228) + (z / (x ^ 3.0)); elseif (x <= 3.8e+27) tmp = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / t_0; else tmp = (x * 4.16438922228) + (z * ((x / t_0) + (2.0 * (-1.0 / (47.066876606 + (x * (313.399215894 + ((x + 43.3400022514) * (x * 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]}, If[LessEqual[x, -6.6e+28], N[(N[(x * 4.16438922228), $MachinePrecision] + N[(z / N[Power[x, 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 3.8e+27], N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(x * N[(N[(x * N[(N[(x * N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision]), $MachinePrecision] + 137.519416416), $MachinePrecision]), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / t$95$0), $MachinePrecision], N[(N[(x * 4.16438922228), $MachinePrecision] + N[(z * N[(N[(x / t$95$0), $MachinePrecision] + N[(2.0 * N[(-1.0 / N[(47.066876606 + N[(x * N[(313.399215894 + N[(N[(x + 43.3400022514), $MachinePrecision] * N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $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\\
\mathbf{if}\;x \leq -6.6 \cdot 10^{+28}:\\
\;\;\;\;x \cdot 4.16438922228 + \frac{z}{{x}^{3}}\\
\mathbf{elif}\;x \leq 3.8 \cdot 10^{+27}:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot \left(x \cdot \left(x \cdot \left(x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right) + 137.519416416\right) + y\right) + z\right)}{t_0}\\
\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228 + z \cdot \left(\frac{x}{t_0} + 2 \cdot \frac{-1}{47.066876606 + x \cdot \left(313.399215894 + \left(x + 43.3400022514\right) \cdot \left(x \cdot x\right)\right)}\right)\\
\end{array}
\end{array}
if x < -6.6e28Initial program 7.7%
associate-*r/14.5%
sub-neg14.5%
metadata-eval14.5%
*-commutative14.5%
fma-def14.5%
*-commutative14.5%
fma-def14.5%
*-commutative14.5%
fma-def14.5%
fma-def14.5%
*-commutative14.5%
Simplified14.5%
Taylor expanded in z around 0 9.1%
Taylor expanded in x around inf 94.3%
*-commutative94.3%
Simplified94.3%
Taylor expanded in x around inf 94.3%
if -6.6e28 < x < 3.80000000000000022e27Initial program 98.3%
if 3.80000000000000022e27 < x Initial program 8.0%
associate-*r/11.7%
sub-neg11.7%
metadata-eval11.7%
*-commutative11.7%
fma-def11.7%
*-commutative11.7%
fma-def11.7%
*-commutative11.7%
fma-def11.7%
fma-def11.7%
*-commutative11.7%
Simplified11.7%
Taylor expanded in z around 0 9.9%
Taylor expanded in x around inf 97.2%
*-commutative97.2%
Simplified97.2%
Taylor expanded in x around inf 97.2%
cube-mult9.8%
unpow29.8%
distribute-rgt-out9.8%
unpow29.8%
+-commutative9.8%
Simplified97.2%
Final simplification97.0%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606)))
(if (or (<= x -6.6e+28) (not (<= x 3.8e+27)))
(+
(* x 4.16438922228)
(*
z
(+
(/ x t_0)
(*
2.0
(/
-1.0
(+
47.066876606
(* x (+ 313.399215894 (* (+ x 43.3400022514) (* x x))))))))))
(/
(*
(- x 2.0)
(+
(*
x
(+
(* x (+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))
y))
z))
t_0))))
double code(double x, double y, double z) {
double t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606;
double tmp;
if ((x <= -6.6e+28) || !(x <= 3.8e+27)) {
tmp = (x * 4.16438922228) + (z * ((x / t_0) + (2.0 * (-1.0 / (47.066876606 + (x * (313.399215894 + ((x + 43.3400022514) * (x * x)))))))));
} else {
tmp = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / t_0;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = (x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0
if ((x <= (-6.6d+28)) .or. (.not. (x <= 3.8d+27))) then
tmp = (x * 4.16438922228d0) + (z * ((x / t_0) + (2.0d0 * ((-1.0d0) / (47.066876606d0 + (x * (313.399215894d0 + ((x + 43.3400022514d0) * (x * x)))))))))
else
tmp = ((x - 2.0d0) * ((x * ((x * ((x * ((x * 4.16438922228d0) + 78.6994924154d0)) + 137.519416416d0)) + y)) + z)) / t_0
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 <= -6.6e+28) || !(x <= 3.8e+27)) {
tmp = (x * 4.16438922228) + (z * ((x / t_0) + (2.0 * (-1.0 / (47.066876606 + (x * (313.399215894 + ((x + 43.3400022514) * (x * x)))))))));
} else {
tmp = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / t_0;
}
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 <= -6.6e+28) or not (x <= 3.8e+27): tmp = (x * 4.16438922228) + (z * ((x / t_0) + (2.0 * (-1.0 / (47.066876606 + (x * (313.399215894 + ((x + 43.3400022514) * (x * x))))))))) else: tmp = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / t_0 return tmp
function code(x, y, z) t_0 = Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) tmp = 0.0 if ((x <= -6.6e+28) || !(x <= 3.8e+27)) tmp = Float64(Float64(x * 4.16438922228) + Float64(z * Float64(Float64(x / t_0) + Float64(2.0 * Float64(-1.0 / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(Float64(x + 43.3400022514) * Float64(x * x)))))))))); else tmp = Float64(Float64(Float64(x - 2.0) * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / t_0); end return tmp end
function tmp_2 = code(x, y, z) t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606; tmp = 0.0; if ((x <= -6.6e+28) || ~((x <= 3.8e+27))) tmp = (x * 4.16438922228) + (z * ((x / t_0) + (2.0 * (-1.0 / (47.066876606 + (x * (313.399215894 + ((x + 43.3400022514) * (x * x))))))))); else tmp = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]}, If[Or[LessEqual[x, -6.6e+28], N[Not[LessEqual[x, 3.8e+27]], $MachinePrecision]], N[(N[(x * 4.16438922228), $MachinePrecision] + N[(z * N[(N[(x / t$95$0), $MachinePrecision] + N[(2.0 * N[(-1.0 / N[(47.066876606 + N[(x * N[(313.399215894 + N[(N[(x + 43.3400022514), $MachinePrecision] * N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(x * N[(N[(x * N[(N[(x * N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision]), $MachinePrecision] + 137.519416416), $MachinePrecision]), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / t$95$0), $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.6 \cdot 10^{+28} \lor \neg \left(x \leq 3.8 \cdot 10^{+27}\right):\\
\;\;\;\;x \cdot 4.16438922228 + z \cdot \left(\frac{x}{t_0} + 2 \cdot \frac{-1}{47.066876606 + x \cdot \left(313.399215894 + \left(x + 43.3400022514\right) \cdot \left(x \cdot x\right)\right)}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot \left(x \cdot \left(x \cdot \left(x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right) + 137.519416416\right) + y\right) + z\right)}{t_0}\\
\end{array}
\end{array}
if x < -6.6e28 or 3.80000000000000022e27 < x Initial program 7.8%
associate-*r/13.3%
sub-neg13.3%
metadata-eval13.3%
*-commutative13.3%
fma-def13.3%
*-commutative13.3%
fma-def13.3%
*-commutative13.3%
fma-def13.3%
fma-def13.3%
*-commutative13.3%
Simplified13.3%
Taylor expanded in z around 0 9.4%
Taylor expanded in x around inf 95.5%
*-commutative95.5%
Simplified95.5%
Taylor expanded in x around inf 70.7%
cube-mult10.9%
unpow210.9%
distribute-rgt-out10.9%
unpow210.9%
+-commutative10.9%
Simplified95.5%
if -6.6e28 < x < 3.80000000000000022e27Initial program 98.3%
Final simplification97.0%
(FPCore (x y z)
:precision binary64
(if (or (<= x -1.6e+51) (not (<= x 1.7e+49)))
(* x 4.16438922228)
(/
(*
(- x 2.0)
(+
(*
x
(+
(* x (+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))
y))
z))
(+ 47.066876606 (* x (+ 313.399215894 (* (+ x 43.3400022514) (* x x))))))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -1.6e+51) || !(x <= 1.7e+49)) {
tmp = x * 4.16438922228;
} else {
tmp = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / (47.066876606 + (x * (313.399215894 + ((x + 43.3400022514) * (x * x)))));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((x <= (-1.6d+51)) .or. (.not. (x <= 1.7d+49))) then
tmp = x * 4.16438922228d0
else
tmp = ((x - 2.0d0) * ((x * ((x * ((x * ((x * 4.16438922228d0) + 78.6994924154d0)) + 137.519416416d0)) + y)) + z)) / (47.066876606d0 + (x * (313.399215894d0 + ((x + 43.3400022514d0) * (x * x)))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -1.6e+51) || !(x <= 1.7e+49)) {
tmp = x * 4.16438922228;
} else {
tmp = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / (47.066876606 + (x * (313.399215894 + ((x + 43.3400022514) * (x * x)))));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -1.6e+51) or not (x <= 1.7e+49): tmp = x * 4.16438922228 else: tmp = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / (47.066876606 + (x * (313.399215894 + ((x + 43.3400022514) * (x * x))))) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -1.6e+51) || !(x <= 1.7e+49)) tmp = Float64(x * 4.16438922228); else tmp = Float64(Float64(Float64(x - 2.0) * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(Float64(x + 43.3400022514) * Float64(x * x)))))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -1.6e+51) || ~((x <= 1.7e+49))) tmp = x * 4.16438922228; else tmp = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / (47.066876606 + (x * (313.399215894 + ((x + 43.3400022514) * (x * x))))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -1.6e+51], N[Not[LessEqual[x, 1.7e+49]], $MachinePrecision]], N[(x * 4.16438922228), $MachinePrecision], N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(x * N[(N[(x * N[(N[(x * N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision]), $MachinePrecision] + 137.519416416), $MachinePrecision]), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / N[(47.066876606 + N[(x * N[(313.399215894 + N[(N[(x + 43.3400022514), $MachinePrecision] * N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.6 \cdot 10^{+51} \lor \neg \left(x \leq 1.7 \cdot 10^{+49}\right):\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{else}:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot \left(x \cdot \left(x \cdot \left(x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right) + 137.519416416\right) + y\right) + z\right)}{47.066876606 + x \cdot \left(313.399215894 + \left(x + 43.3400022514\right) \cdot \left(x \cdot x\right)\right)}\\
\end{array}
\end{array}
if x < -1.6000000000000001e51 or 1.7e49 < x Initial program 3.0%
*-commutative3.0%
associate-*r/7.3%
*-commutative7.3%
fma-def7.3%
*-commutative7.3%
fma-def7.3%
*-commutative7.3%
fma-def7.3%
fma-def7.3%
Simplified7.3%
fma-def7.3%
flip3-+7.3%
metadata-eval7.3%
metadata-eval7.3%
Applied egg-rr7.3%
cube-prod7.3%
metadata-eval7.3%
swap-sqr7.3%
metadata-eval7.3%
associate-*l*7.3%
metadata-eval7.3%
Simplified7.3%
Taylor expanded in x around inf 96.1%
*-commutative96.1%
Simplified96.1%
if -1.6000000000000001e51 < x < 1.7e49Initial program 96.4%
Taylor expanded in x around inf 95.1%
cube-mult95.1%
unpow295.1%
distribute-rgt-out95.1%
unpow295.1%
+-commutative95.1%
Simplified95.1%
Final simplification95.5%
(FPCore (x y z)
:precision binary64
(if (<= x -2.5e+16)
(- (* x 4.16438922228) 110.1139242984811)
(if (<= x 7.5e+25)
(/
(*
(- x 2.0)
(+ z (* x (+ y (* x (+ 137.519416416 (* x 78.6994924154)))))))
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))
(* x 4.16438922228))))
double code(double x, double y, double z) {
double tmp;
if (x <= -2.5e+16) {
tmp = (x * 4.16438922228) - 110.1139242984811;
} else if (x <= 7.5e+25) {
tmp = ((x - 2.0) * (z + (x * (y + (x * (137.519416416 + (x * 78.6994924154))))))) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606);
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-2.5d+16)) then
tmp = (x * 4.16438922228d0) - 110.1139242984811d0
else if (x <= 7.5d+25) then
tmp = ((x - 2.0d0) * (z + (x * (y + (x * (137.519416416d0 + (x * 78.6994924154d0))))))) / ((x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0)
else
tmp = x * 4.16438922228d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -2.5e+16) {
tmp = (x * 4.16438922228) - 110.1139242984811;
} else if (x <= 7.5e+25) {
tmp = ((x - 2.0) * (z + (x * (y + (x * (137.519416416 + (x * 78.6994924154))))))) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606);
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -2.5e+16: tmp = (x * 4.16438922228) - 110.1139242984811 elif x <= 7.5e+25: tmp = ((x - 2.0) * (z + (x * (y + (x * (137.519416416 + (x * 78.6994924154))))))) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) else: tmp = x * 4.16438922228 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -2.5e+16) tmp = Float64(Float64(x * 4.16438922228) - 110.1139242984811); elseif (x <= 7.5e+25) tmp = Float64(Float64(Float64(x - 2.0) * Float64(z + Float64(x * Float64(y + Float64(x * Float64(137.519416416 + Float64(x * 78.6994924154))))))) / Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)); else tmp = Float64(x * 4.16438922228); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -2.5e+16) tmp = (x * 4.16438922228) - 110.1139242984811; elseif (x <= 7.5e+25) tmp = ((x - 2.0) * (z + (x * (y + (x * (137.519416416 + (x * 78.6994924154))))))) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606); else tmp = x * 4.16438922228; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -2.5e+16], N[(N[(x * 4.16438922228), $MachinePrecision] - 110.1139242984811), $MachinePrecision], If[LessEqual[x, 7.5e+25], N[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + N[(x * N[(y + N[(x * N[(137.519416416 + N[(x * 78.6994924154), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision], N[(x * 4.16438922228), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2.5 \cdot 10^{+16}:\\
\;\;\;\;x \cdot 4.16438922228 - 110.1139242984811\\
\mathbf{elif}\;x \leq 7.5 \cdot 10^{+25}:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot \left(y + x \cdot \left(137.519416416 + x \cdot 78.6994924154\right)\right)\right)}{x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606}\\
\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228\\
\end{array}
\end{array}
if x < -2.5e16Initial program 14.9%
associate-*r/21.0%
sub-neg21.0%
metadata-eval21.0%
*-commutative21.0%
fma-def21.0%
*-commutative21.0%
fma-def21.0%
*-commutative21.0%
fma-def21.0%
fma-def21.0%
*-commutative21.0%
Simplified21.0%
Taylor expanded in x around inf 89.6%
if -2.5e16 < x < 7.49999999999999993e25Initial program 99.0%
Taylor expanded in x around 0 98.3%
unpow298.3%
associate-*r*98.3%
distribute-rgt-out98.2%
Simplified98.2%
if 7.49999999999999993e25 < x Initial program 8.0%
*-commutative8.0%
associate-*r/11.7%
*-commutative11.7%
fma-def11.7%
*-commutative11.7%
fma-def11.7%
*-commutative11.7%
fma-def11.7%
fma-def11.7%
Simplified11.7%
fma-def11.7%
flip3-+11.7%
metadata-eval11.7%
metadata-eval11.7%
Applied egg-rr11.7%
cube-prod11.7%
metadata-eval11.7%
swap-sqr11.7%
metadata-eval11.8%
associate-*l*11.8%
metadata-eval11.8%
Simplified11.8%
Taylor expanded in x around inf 95.3%
*-commutative95.3%
Simplified95.3%
Final simplification95.1%
(FPCore (x y z)
:precision binary64
(if (<= x -2.4e-11)
(-
(+ (* x 4.16438922228) (* 3655.1204654076414 (/ 1.0 x)))
110.1139242984811)
(if (<= x 2.2e-31)
(* (+ x -2.0) (+ (* z 0.0212463641547976) (* y (* x 0.0212463641547976))))
(if (<= x 1.15e+23)
(/
(* (- x 2.0) (+ z (* 137.519416416 (* x x))))
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))
(* x 4.16438922228)))))
double code(double x, double y, double z) {
double tmp;
if (x <= -2.4e-11) {
tmp = ((x * 4.16438922228) + (3655.1204654076414 * (1.0 / x))) - 110.1139242984811;
} else if (x <= 2.2e-31) {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (y * (x * 0.0212463641547976)));
} else if (x <= 1.15e+23) {
tmp = ((x - 2.0) * (z + (137.519416416 * (x * x)))) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606);
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-2.4d-11)) then
tmp = ((x * 4.16438922228d0) + (3655.1204654076414d0 * (1.0d0 / x))) - 110.1139242984811d0
else if (x <= 2.2d-31) then
tmp = (x + (-2.0d0)) * ((z * 0.0212463641547976d0) + (y * (x * 0.0212463641547976d0)))
else if (x <= 1.15d+23) then
tmp = ((x - 2.0d0) * (z + (137.519416416d0 * (x * x)))) / ((x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0)
else
tmp = x * 4.16438922228d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -2.4e-11) {
tmp = ((x * 4.16438922228) + (3655.1204654076414 * (1.0 / x))) - 110.1139242984811;
} else if (x <= 2.2e-31) {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (y * (x * 0.0212463641547976)));
} else if (x <= 1.15e+23) {
tmp = ((x - 2.0) * (z + (137.519416416 * (x * x)))) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606);
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -2.4e-11: tmp = ((x * 4.16438922228) + (3655.1204654076414 * (1.0 / x))) - 110.1139242984811 elif x <= 2.2e-31: tmp = (x + -2.0) * ((z * 0.0212463641547976) + (y * (x * 0.0212463641547976))) elif x <= 1.15e+23: tmp = ((x - 2.0) * (z + (137.519416416 * (x * x)))) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) else: tmp = x * 4.16438922228 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -2.4e-11) tmp = Float64(Float64(Float64(x * 4.16438922228) + Float64(3655.1204654076414 * Float64(1.0 / x))) - 110.1139242984811); elseif (x <= 2.2e-31) tmp = Float64(Float64(x + -2.0) * Float64(Float64(z * 0.0212463641547976) + Float64(y * Float64(x * 0.0212463641547976)))); elseif (x <= 1.15e+23) tmp = Float64(Float64(Float64(x - 2.0) * Float64(z + Float64(137.519416416 * Float64(x * x)))) / Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)); else tmp = Float64(x * 4.16438922228); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -2.4e-11) tmp = ((x * 4.16438922228) + (3655.1204654076414 * (1.0 / x))) - 110.1139242984811; elseif (x <= 2.2e-31) tmp = (x + -2.0) * ((z * 0.0212463641547976) + (y * (x * 0.0212463641547976))); elseif (x <= 1.15e+23) tmp = ((x - 2.0) * (z + (137.519416416 * (x * x)))) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606); else tmp = x * 4.16438922228; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -2.4e-11], N[(N[(N[(x * 4.16438922228), $MachinePrecision] + N[(3655.1204654076414 * N[(1.0 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - 110.1139242984811), $MachinePrecision], If[LessEqual[x, 2.2e-31], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z * 0.0212463641547976), $MachinePrecision] + N[(y * N[(x * 0.0212463641547976), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.15e+23], N[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + N[(137.519416416 * N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision], N[(x * 4.16438922228), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2.4 \cdot 10^{-11}:\\
\;\;\;\;\left(x \cdot 4.16438922228 + 3655.1204654076414 \cdot \frac{1}{x}\right) - 110.1139242984811\\
\mathbf{elif}\;x \leq 2.2 \cdot 10^{-31}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976 + y \cdot \left(x \cdot 0.0212463641547976\right)\right)\\
\mathbf{elif}\;x \leq 1.15 \cdot 10^{+23}:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot \left(z + 137.519416416 \cdot \left(x \cdot x\right)\right)}{x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606}\\
\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228\\
\end{array}
\end{array}
if x < -2.4000000000000001e-11Initial program 18.0%
associate-*r/24.0%
sub-neg24.0%
metadata-eval24.0%
*-commutative24.0%
fma-def24.0%
*-commutative24.0%
fma-def24.0%
*-commutative24.0%
fma-def24.0%
fma-def24.0%
*-commutative24.0%
Simplified24.0%
Taylor expanded in x around inf 86.8%
if -2.4000000000000001e-11 < x < 2.2000000000000001e-31Initial program 99.7%
associate-*r/99.7%
sub-neg99.7%
metadata-eval99.7%
*-commutative99.7%
fma-def99.7%
*-commutative99.7%
fma-def99.7%
*-commutative99.7%
fma-def99.7%
fma-def99.7%
*-commutative99.7%
Simplified99.7%
Taylor expanded in x around 0 96.2%
Taylor expanded in y around inf 96.2%
*-commutative96.2%
associate-*l*96.2%
Simplified96.2%
if 2.2000000000000001e-31 < x < 1.15e23Initial program 90.0%
associate-*r/98.8%
sub-neg98.8%
metadata-eval98.8%
*-commutative98.8%
fma-def98.8%
*-commutative98.8%
fma-def98.8%
*-commutative98.8%
fma-def98.8%
fma-def98.8%
*-commutative98.8%
Simplified98.8%
Taylor expanded in y around 0 80.1%
Taylor expanded in x around 0 72.9%
*-commutative72.9%
unpow272.9%
Simplified72.9%
if 1.15e23 < x Initial program 8.0%
*-commutative8.0%
associate-*r/11.7%
*-commutative11.7%
fma-def11.7%
*-commutative11.7%
fma-def11.7%
*-commutative11.7%
fma-def11.7%
fma-def11.7%
Simplified11.7%
fma-def11.7%
flip3-+11.7%
metadata-eval11.7%
metadata-eval11.7%
Applied egg-rr11.7%
cube-prod11.7%
metadata-eval11.7%
swap-sqr11.7%
metadata-eval11.8%
associate-*l*11.8%
metadata-eval11.8%
Simplified11.8%
Taylor expanded in x around inf 95.3%
*-commutative95.3%
Simplified95.3%
Final simplification92.2%
(FPCore (x y z)
:precision binary64
(if (<= x -1.8e+15)
(- (* x 4.16438922228) 110.1139242984811)
(if (<= x 2.4e+24)
(/
(* (- x 2.0) (+ z (* x (+ y (* x 137.519416416)))))
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))
(* x 4.16438922228))))
double code(double x, double y, double z) {
double tmp;
if (x <= -1.8e+15) {
tmp = (x * 4.16438922228) - 110.1139242984811;
} else if (x <= 2.4e+24) {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606);
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-1.8d+15)) then
tmp = (x * 4.16438922228d0) - 110.1139242984811d0
else if (x <= 2.4d+24) then
tmp = ((x - 2.0d0) * (z + (x * (y + (x * 137.519416416d0))))) / ((x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0)
else
tmp = x * 4.16438922228d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -1.8e+15) {
tmp = (x * 4.16438922228) - 110.1139242984811;
} else if (x <= 2.4e+24) {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606);
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -1.8e+15: tmp = (x * 4.16438922228) - 110.1139242984811 elif x <= 2.4e+24: tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) else: tmp = x * 4.16438922228 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -1.8e+15) tmp = Float64(Float64(x * 4.16438922228) - 110.1139242984811); elseif (x <= 2.4e+24) tmp = Float64(Float64(Float64(x - 2.0) * Float64(z + Float64(x * Float64(y + Float64(x * 137.519416416))))) / Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)); else tmp = Float64(x * 4.16438922228); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -1.8e+15) tmp = (x * 4.16438922228) - 110.1139242984811; elseif (x <= 2.4e+24) tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606); else tmp = x * 4.16438922228; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -1.8e+15], N[(N[(x * 4.16438922228), $MachinePrecision] - 110.1139242984811), $MachinePrecision], If[LessEqual[x, 2.4e+24], N[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + N[(x * N[(y + N[(x * 137.519416416), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision], N[(x * 4.16438922228), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.8 \cdot 10^{+15}:\\
\;\;\;\;x \cdot 4.16438922228 - 110.1139242984811\\
\mathbf{elif}\;x \leq 2.4 \cdot 10^{+24}:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot \left(y + x \cdot 137.519416416\right)\right)}{x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606}\\
\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228\\
\end{array}
\end{array}
if x < -1.8e15Initial program 14.9%
associate-*r/21.0%
sub-neg21.0%
metadata-eval21.0%
*-commutative21.0%
fma-def21.0%
*-commutative21.0%
fma-def21.0%
*-commutative21.0%
fma-def21.0%
fma-def21.0%
*-commutative21.0%
Simplified21.0%
Taylor expanded in x around inf 89.6%
if -1.8e15 < x < 2.4000000000000001e24Initial program 99.0%
Taylor expanded in x around 0 97.6%
*-commutative97.6%
Simplified97.6%
if 2.4000000000000001e24 < x Initial program 8.0%
*-commutative8.0%
associate-*r/11.7%
*-commutative11.7%
fma-def11.7%
*-commutative11.7%
fma-def11.7%
*-commutative11.7%
fma-def11.7%
fma-def11.7%
Simplified11.7%
fma-def11.7%
flip3-+11.7%
metadata-eval11.7%
metadata-eval11.7%
Applied egg-rr11.7%
cube-prod11.7%
metadata-eval11.7%
swap-sqr11.7%
metadata-eval11.8%
associate-*l*11.8%
metadata-eval11.8%
Simplified11.8%
Taylor expanded in x around inf 95.3%
*-commutative95.3%
Simplified95.3%
Final simplification94.7%
(FPCore (x y z)
:precision binary64
(if (<= x -2.4e-11)
(-
(+ (* x 4.16438922228) (* 3655.1204654076414 (/ 1.0 x)))
110.1139242984811)
(if (<= x 4.4e-67)
(* (+ x -2.0) (+ (* z 0.0212463641547976) (* y (* x 0.0212463641547976))))
(if (<= x 1.15e+23)
(*
(+ x -2.0)
(/
(* x (+ y (* x (+ 137.519416416 (* x 78.6994924154)))))
(+ 47.066876606 (* x (+ 313.399215894 (* x 263.505074721))))))
(* x 4.16438922228)))))
double code(double x, double y, double z) {
double tmp;
if (x <= -2.4e-11) {
tmp = ((x * 4.16438922228) + (3655.1204654076414 * (1.0 / x))) - 110.1139242984811;
} else if (x <= 4.4e-67) {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (y * (x * 0.0212463641547976)));
} else if (x <= 1.15e+23) {
tmp = (x + -2.0) * ((x * (y + (x * (137.519416416 + (x * 78.6994924154))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721)))));
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-2.4d-11)) then
tmp = ((x * 4.16438922228d0) + (3655.1204654076414d0 * (1.0d0 / x))) - 110.1139242984811d0
else if (x <= 4.4d-67) then
tmp = (x + (-2.0d0)) * ((z * 0.0212463641547976d0) + (y * (x * 0.0212463641547976d0)))
else if (x <= 1.15d+23) then
tmp = (x + (-2.0d0)) * ((x * (y + (x * (137.519416416d0 + (x * 78.6994924154d0))))) / (47.066876606d0 + (x * (313.399215894d0 + (x * 263.505074721d0)))))
else
tmp = x * 4.16438922228d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -2.4e-11) {
tmp = ((x * 4.16438922228) + (3655.1204654076414 * (1.0 / x))) - 110.1139242984811;
} else if (x <= 4.4e-67) {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (y * (x * 0.0212463641547976)));
} else if (x <= 1.15e+23) {
tmp = (x + -2.0) * ((x * (y + (x * (137.519416416 + (x * 78.6994924154))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721)))));
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -2.4e-11: tmp = ((x * 4.16438922228) + (3655.1204654076414 * (1.0 / x))) - 110.1139242984811 elif x <= 4.4e-67: tmp = (x + -2.0) * ((z * 0.0212463641547976) + (y * (x * 0.0212463641547976))) elif x <= 1.15e+23: tmp = (x + -2.0) * ((x * (y + (x * (137.519416416 + (x * 78.6994924154))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))))) else: tmp = x * 4.16438922228 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -2.4e-11) tmp = Float64(Float64(Float64(x * 4.16438922228) + Float64(3655.1204654076414 * Float64(1.0 / x))) - 110.1139242984811); elseif (x <= 4.4e-67) tmp = Float64(Float64(x + -2.0) * Float64(Float64(z * 0.0212463641547976) + Float64(y * Float64(x * 0.0212463641547976)))); elseif (x <= 1.15e+23) tmp = Float64(Float64(x + -2.0) * Float64(Float64(x * Float64(y + Float64(x * Float64(137.519416416 + Float64(x * 78.6994924154))))) / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * 263.505074721)))))); else tmp = Float64(x * 4.16438922228); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -2.4e-11) tmp = ((x * 4.16438922228) + (3655.1204654076414 * (1.0 / x))) - 110.1139242984811; elseif (x <= 4.4e-67) tmp = (x + -2.0) * ((z * 0.0212463641547976) + (y * (x * 0.0212463641547976))); elseif (x <= 1.15e+23) tmp = (x + -2.0) * ((x * (y + (x * (137.519416416 + (x * 78.6994924154))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))))); else tmp = x * 4.16438922228; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -2.4e-11], N[(N[(N[(x * 4.16438922228), $MachinePrecision] + N[(3655.1204654076414 * N[(1.0 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - 110.1139242984811), $MachinePrecision], If[LessEqual[x, 4.4e-67], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z * 0.0212463641547976), $MachinePrecision] + N[(y * N[(x * 0.0212463641547976), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.15e+23], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(x * N[(y + N[(x * N[(137.519416416 + N[(x * 78.6994924154), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * 263.505074721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * 4.16438922228), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2.4 \cdot 10^{-11}:\\
\;\;\;\;\left(x \cdot 4.16438922228 + 3655.1204654076414 \cdot \frac{1}{x}\right) - 110.1139242984811\\
\mathbf{elif}\;x \leq 4.4 \cdot 10^{-67}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976 + y \cdot \left(x \cdot 0.0212463641547976\right)\right)\\
\mathbf{elif}\;x \leq 1.15 \cdot 10^{+23}:\\
\;\;\;\;\left(x + -2\right) \cdot \frac{x \cdot \left(y + x \cdot \left(137.519416416 + x \cdot 78.6994924154\right)\right)}{47.066876606 + x \cdot \left(313.399215894 + x \cdot 263.505074721\right)}\\
\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228\\
\end{array}
\end{array}
if x < -2.4000000000000001e-11Initial program 18.0%
associate-*r/24.0%
sub-neg24.0%
metadata-eval24.0%
*-commutative24.0%
fma-def24.0%
*-commutative24.0%
fma-def24.0%
*-commutative24.0%
fma-def24.0%
fma-def24.0%
*-commutative24.0%
Simplified24.0%
Taylor expanded in x around inf 86.8%
if -2.4000000000000001e-11 < x < 4.4000000000000002e-67Initial program 99.7%
associate-*r/99.7%
sub-neg99.7%
metadata-eval99.7%
*-commutative99.7%
fma-def99.7%
*-commutative99.7%
fma-def99.7%
*-commutative99.7%
fma-def99.7%
fma-def99.7%
*-commutative99.7%
Simplified99.7%
Taylor expanded in x around 0 97.8%
Taylor expanded in y around inf 97.8%
*-commutative97.8%
associate-*l*97.8%
Simplified97.8%
if 4.4000000000000002e-67 < x < 1.15e23Initial program 94.1%
associate-*r/99.2%
sub-neg99.2%
metadata-eval99.2%
*-commutative99.2%
fma-def99.2%
*-commutative99.2%
fma-def99.2%
*-commutative99.2%
fma-def99.2%
fma-def99.2%
*-commutative99.2%
Simplified99.2%
Taylor expanded in z around 0 77.1%
Taylor expanded in x around 0 66.8%
*-commutative66.8%
Simplified66.8%
Taylor expanded in x around 0 67.0%
unpow267.0%
associate-*r*67.0%
distribute-rgt-out66.9%
*-commutative66.9%
Simplified66.9%
if 1.15e23 < x Initial program 8.0%
*-commutative8.0%
associate-*r/11.7%
*-commutative11.7%
fma-def11.7%
*-commutative11.7%
fma-def11.7%
*-commutative11.7%
fma-def11.7%
fma-def11.7%
Simplified11.7%
fma-def11.7%
flip3-+11.7%
metadata-eval11.7%
metadata-eval11.7%
Applied egg-rr11.7%
cube-prod11.7%
metadata-eval11.7%
swap-sqr11.7%
metadata-eval11.8%
associate-*l*11.8%
metadata-eval11.8%
Simplified11.8%
Taylor expanded in x around inf 95.3%
*-commutative95.3%
Simplified95.3%
Final simplification91.8%
(FPCore (x y z)
:precision binary64
(if (<= x -2.4e-11)
(-
(+ (* x 4.16438922228) (* 3655.1204654076414 (/ 1.0 x)))
110.1139242984811)
(if (<= x 4.4e-67)
(* (+ x -2.0) (+ (* z 0.0212463641547976) (* y (* x 0.0212463641547976))))
(if (<= x 1.15e+23)
(*
(+ x -2.0)
(/
(* x (+ y (* x 137.519416416)))
(+ 47.066876606 (* x (+ 313.399215894 (* x 263.505074721))))))
(* x 4.16438922228)))))
double code(double x, double y, double z) {
double tmp;
if (x <= -2.4e-11) {
tmp = ((x * 4.16438922228) + (3655.1204654076414 * (1.0 / x))) - 110.1139242984811;
} else if (x <= 4.4e-67) {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (y * (x * 0.0212463641547976)));
} else if (x <= 1.15e+23) {
tmp = (x + -2.0) * ((x * (y + (x * 137.519416416))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721)))));
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-2.4d-11)) then
tmp = ((x * 4.16438922228d0) + (3655.1204654076414d0 * (1.0d0 / x))) - 110.1139242984811d0
else if (x <= 4.4d-67) then
tmp = (x + (-2.0d0)) * ((z * 0.0212463641547976d0) + (y * (x * 0.0212463641547976d0)))
else if (x <= 1.15d+23) then
tmp = (x + (-2.0d0)) * ((x * (y + (x * 137.519416416d0))) / (47.066876606d0 + (x * (313.399215894d0 + (x * 263.505074721d0)))))
else
tmp = x * 4.16438922228d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -2.4e-11) {
tmp = ((x * 4.16438922228) + (3655.1204654076414 * (1.0 / x))) - 110.1139242984811;
} else if (x <= 4.4e-67) {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (y * (x * 0.0212463641547976)));
} else if (x <= 1.15e+23) {
tmp = (x + -2.0) * ((x * (y + (x * 137.519416416))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721)))));
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -2.4e-11: tmp = ((x * 4.16438922228) + (3655.1204654076414 * (1.0 / x))) - 110.1139242984811 elif x <= 4.4e-67: tmp = (x + -2.0) * ((z * 0.0212463641547976) + (y * (x * 0.0212463641547976))) elif x <= 1.15e+23: tmp = (x + -2.0) * ((x * (y + (x * 137.519416416))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))))) else: tmp = x * 4.16438922228 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -2.4e-11) tmp = Float64(Float64(Float64(x * 4.16438922228) + Float64(3655.1204654076414 * Float64(1.0 / x))) - 110.1139242984811); elseif (x <= 4.4e-67) tmp = Float64(Float64(x + -2.0) * Float64(Float64(z * 0.0212463641547976) + Float64(y * Float64(x * 0.0212463641547976)))); elseif (x <= 1.15e+23) tmp = Float64(Float64(x + -2.0) * Float64(Float64(x * Float64(y + Float64(x * 137.519416416))) / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * 263.505074721)))))); else tmp = Float64(x * 4.16438922228); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -2.4e-11) tmp = ((x * 4.16438922228) + (3655.1204654076414 * (1.0 / x))) - 110.1139242984811; elseif (x <= 4.4e-67) tmp = (x + -2.0) * ((z * 0.0212463641547976) + (y * (x * 0.0212463641547976))); elseif (x <= 1.15e+23) tmp = (x + -2.0) * ((x * (y + (x * 137.519416416))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))))); else tmp = x * 4.16438922228; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -2.4e-11], N[(N[(N[(x * 4.16438922228), $MachinePrecision] + N[(3655.1204654076414 * N[(1.0 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - 110.1139242984811), $MachinePrecision], If[LessEqual[x, 4.4e-67], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z * 0.0212463641547976), $MachinePrecision] + N[(y * N[(x * 0.0212463641547976), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.15e+23], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(x * N[(y + N[(x * 137.519416416), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * 263.505074721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * 4.16438922228), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2.4 \cdot 10^{-11}:\\
\;\;\;\;\left(x \cdot 4.16438922228 + 3655.1204654076414 \cdot \frac{1}{x}\right) - 110.1139242984811\\
\mathbf{elif}\;x \leq 4.4 \cdot 10^{-67}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976 + y \cdot \left(x \cdot 0.0212463641547976\right)\right)\\
\mathbf{elif}\;x \leq 1.15 \cdot 10^{+23}:\\
\;\;\;\;\left(x + -2\right) \cdot \frac{x \cdot \left(y + x \cdot 137.519416416\right)}{47.066876606 + x \cdot \left(313.399215894 + x \cdot 263.505074721\right)}\\
\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228\\
\end{array}
\end{array}
if x < -2.4000000000000001e-11Initial program 18.0%
associate-*r/24.0%
sub-neg24.0%
metadata-eval24.0%
*-commutative24.0%
fma-def24.0%
*-commutative24.0%
fma-def24.0%
*-commutative24.0%
fma-def24.0%
fma-def24.0%
*-commutative24.0%
Simplified24.0%
Taylor expanded in x around inf 86.8%
if -2.4000000000000001e-11 < x < 4.4000000000000002e-67Initial program 99.7%
associate-*r/99.7%
sub-neg99.7%
metadata-eval99.7%
*-commutative99.7%
fma-def99.7%
*-commutative99.7%
fma-def99.7%
*-commutative99.7%
fma-def99.7%
fma-def99.7%
*-commutative99.7%
Simplified99.7%
Taylor expanded in x around 0 97.8%
Taylor expanded in y around inf 97.8%
*-commutative97.8%
associate-*l*97.8%
Simplified97.8%
if 4.4000000000000002e-67 < x < 1.15e23Initial program 94.1%
associate-*r/99.2%
sub-neg99.2%
metadata-eval99.2%
*-commutative99.2%
fma-def99.2%
*-commutative99.2%
fma-def99.2%
*-commutative99.2%
fma-def99.2%
fma-def99.2%
*-commutative99.2%
Simplified99.2%
Taylor expanded in z around 0 77.1%
Taylor expanded in x around 0 66.8%
*-commutative66.8%
Simplified66.8%
Taylor expanded in x around 0 62.6%
*-commutative62.6%
Simplified62.6%
if 1.15e23 < x Initial program 8.0%
*-commutative8.0%
associate-*r/11.7%
*-commutative11.7%
fma-def11.7%
*-commutative11.7%
fma-def11.7%
*-commutative11.7%
fma-def11.7%
fma-def11.7%
Simplified11.7%
fma-def11.7%
flip3-+11.7%
metadata-eval11.7%
metadata-eval11.7%
Applied egg-rr11.7%
cube-prod11.7%
metadata-eval11.7%
swap-sqr11.7%
metadata-eval11.8%
associate-*l*11.8%
metadata-eval11.8%
Simplified11.8%
Taylor expanded in x around inf 95.3%
*-commutative95.3%
Simplified95.3%
Final simplification91.6%
(FPCore (x y z)
:precision binary64
(if (<= x -2.4e-11)
(-
(+ (* x 4.16438922228) (* 3655.1204654076414 (/ 1.0 x)))
110.1139242984811)
(if (<= x 4.4e-67)
(* (+ x -2.0) (+ (* z 0.0212463641547976) (* y (* x 0.0212463641547976))))
(if (<= x 1.15e+23)
(*
x
(-
(* y -0.0424927283095952)
(*
x
(-
(* 0.0212463641547976 (- 275.038832832 y))
(* y 0.28294182010212804)))))
(* x 4.16438922228)))))
double code(double x, double y, double z) {
double tmp;
if (x <= -2.4e-11) {
tmp = ((x * 4.16438922228) + (3655.1204654076414 * (1.0 / x))) - 110.1139242984811;
} else if (x <= 4.4e-67) {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (y * (x * 0.0212463641547976)));
} else if (x <= 1.15e+23) {
tmp = x * ((y * -0.0424927283095952) - (x * ((0.0212463641547976 * (275.038832832 - y)) - (y * 0.28294182010212804))));
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-2.4d-11)) then
tmp = ((x * 4.16438922228d0) + (3655.1204654076414d0 * (1.0d0 / x))) - 110.1139242984811d0
else if (x <= 4.4d-67) then
tmp = (x + (-2.0d0)) * ((z * 0.0212463641547976d0) + (y * (x * 0.0212463641547976d0)))
else if (x <= 1.15d+23) then
tmp = x * ((y * (-0.0424927283095952d0)) - (x * ((0.0212463641547976d0 * (275.038832832d0 - y)) - (y * 0.28294182010212804d0))))
else
tmp = x * 4.16438922228d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -2.4e-11) {
tmp = ((x * 4.16438922228) + (3655.1204654076414 * (1.0 / x))) - 110.1139242984811;
} else if (x <= 4.4e-67) {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (y * (x * 0.0212463641547976)));
} else if (x <= 1.15e+23) {
tmp = x * ((y * -0.0424927283095952) - (x * ((0.0212463641547976 * (275.038832832 - y)) - (y * 0.28294182010212804))));
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -2.4e-11: tmp = ((x * 4.16438922228) + (3655.1204654076414 * (1.0 / x))) - 110.1139242984811 elif x <= 4.4e-67: tmp = (x + -2.0) * ((z * 0.0212463641547976) + (y * (x * 0.0212463641547976))) elif x <= 1.15e+23: tmp = x * ((y * -0.0424927283095952) - (x * ((0.0212463641547976 * (275.038832832 - y)) - (y * 0.28294182010212804)))) else: tmp = x * 4.16438922228 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -2.4e-11) tmp = Float64(Float64(Float64(x * 4.16438922228) + Float64(3655.1204654076414 * Float64(1.0 / x))) - 110.1139242984811); elseif (x <= 4.4e-67) tmp = Float64(Float64(x + -2.0) * Float64(Float64(z * 0.0212463641547976) + Float64(y * Float64(x * 0.0212463641547976)))); elseif (x <= 1.15e+23) tmp = Float64(x * Float64(Float64(y * -0.0424927283095952) - Float64(x * Float64(Float64(0.0212463641547976 * Float64(275.038832832 - y)) - Float64(y * 0.28294182010212804))))); else tmp = Float64(x * 4.16438922228); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -2.4e-11) tmp = ((x * 4.16438922228) + (3655.1204654076414 * (1.0 / x))) - 110.1139242984811; elseif (x <= 4.4e-67) tmp = (x + -2.0) * ((z * 0.0212463641547976) + (y * (x * 0.0212463641547976))); elseif (x <= 1.15e+23) tmp = x * ((y * -0.0424927283095952) - (x * ((0.0212463641547976 * (275.038832832 - y)) - (y * 0.28294182010212804)))); else tmp = x * 4.16438922228; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -2.4e-11], N[(N[(N[(x * 4.16438922228), $MachinePrecision] + N[(3655.1204654076414 * N[(1.0 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - 110.1139242984811), $MachinePrecision], If[LessEqual[x, 4.4e-67], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z * 0.0212463641547976), $MachinePrecision] + N[(y * N[(x * 0.0212463641547976), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.15e+23], N[(x * N[(N[(y * -0.0424927283095952), $MachinePrecision] - N[(x * N[(N[(0.0212463641547976 * N[(275.038832832 - y), $MachinePrecision]), $MachinePrecision] - N[(y * 0.28294182010212804), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * 4.16438922228), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2.4 \cdot 10^{-11}:\\
\;\;\;\;\left(x \cdot 4.16438922228 + 3655.1204654076414 \cdot \frac{1}{x}\right) - 110.1139242984811\\
\mathbf{elif}\;x \leq 4.4 \cdot 10^{-67}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976 + y \cdot \left(x \cdot 0.0212463641547976\right)\right)\\
\mathbf{elif}\;x \leq 1.15 \cdot 10^{+23}:\\
\;\;\;\;x \cdot \left(y \cdot -0.0424927283095952 - x \cdot \left(0.0212463641547976 \cdot \left(275.038832832 - y\right) - y \cdot 0.28294182010212804\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228\\
\end{array}
\end{array}
if x < -2.4000000000000001e-11Initial program 18.0%
associate-*r/24.0%
sub-neg24.0%
metadata-eval24.0%
*-commutative24.0%
fma-def24.0%
*-commutative24.0%
fma-def24.0%
*-commutative24.0%
fma-def24.0%
fma-def24.0%
*-commutative24.0%
Simplified24.0%
Taylor expanded in x around inf 86.8%
if -2.4000000000000001e-11 < x < 4.4000000000000002e-67Initial program 99.7%
associate-*r/99.7%
sub-neg99.7%
metadata-eval99.7%
*-commutative99.7%
fma-def99.7%
*-commutative99.7%
fma-def99.7%
*-commutative99.7%
fma-def99.7%
fma-def99.7%
*-commutative99.7%
Simplified99.7%
Taylor expanded in x around 0 97.8%
Taylor expanded in y around inf 97.8%
*-commutative97.8%
associate-*l*97.8%
Simplified97.8%
if 4.4000000000000002e-67 < x < 1.15e23Initial program 94.1%
associate-*r/99.2%
sub-neg99.2%
metadata-eval99.2%
*-commutative99.2%
fma-def99.2%
*-commutative99.2%
fma-def99.2%
*-commutative99.2%
fma-def99.2%
fma-def99.2%
*-commutative99.2%
Simplified99.2%
Taylor expanded in z around 0 77.1%
Taylor expanded in x around 0 61.0%
associate-*r*60.9%
*-commutative60.9%
*-commutative60.9%
unpow260.9%
associate-*l*61.0%
distribute-lft-out61.0%
fma-neg61.0%
sub-neg61.0%
metadata-eval61.0%
*-commutative61.0%
distribute-rgt-neg-in61.0%
metadata-eval61.0%
Simplified61.0%
Taylor expanded in x around 0 61.0%
if 1.15e23 < x Initial program 8.0%
*-commutative8.0%
associate-*r/11.7%
*-commutative11.7%
fma-def11.7%
*-commutative11.7%
fma-def11.7%
*-commutative11.7%
fma-def11.7%
fma-def11.7%
Simplified11.7%
fma-def11.7%
flip3-+11.7%
metadata-eval11.7%
metadata-eval11.7%
Applied egg-rr11.7%
cube-prod11.7%
metadata-eval11.7%
swap-sqr11.7%
metadata-eval11.8%
associate-*l*11.8%
metadata-eval11.8%
Simplified11.8%
Taylor expanded in x around inf 95.3%
*-commutative95.3%
Simplified95.3%
Final simplification91.5%
(FPCore (x y z)
:precision binary64
(if (<= x -2.4e-11)
(-
(+ (* x 4.16438922228) (* 3655.1204654076414 (/ 1.0 x)))
110.1139242984811)
(if (<= x 4.4e-67)
(* (+ x -2.0) (+ (* z 0.0212463641547976) (* y (* x 0.0212463641547976))))
(if (<= x 4.8e-5)
(* x (+ (* y -0.0424927283095952) (* x -5.843575199059173)))
(*
(+ x -2.0)
(-
4.16438922228
(- (/ 101.7851458539211 x) (/ 3451.550173699799 (* x x)))))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -2.4e-11) {
tmp = ((x * 4.16438922228) + (3655.1204654076414 * (1.0 / x))) - 110.1139242984811;
} else if (x <= 4.4e-67) {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (y * (x * 0.0212463641547976)));
} else if (x <= 4.8e-5) {
tmp = x * ((y * -0.0424927283095952) + (x * -5.843575199059173));
} else {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 / x) - (3451.550173699799 / (x * x))));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-2.4d-11)) then
tmp = ((x * 4.16438922228d0) + (3655.1204654076414d0 * (1.0d0 / x))) - 110.1139242984811d0
else if (x <= 4.4d-67) then
tmp = (x + (-2.0d0)) * ((z * 0.0212463641547976d0) + (y * (x * 0.0212463641547976d0)))
else if (x <= 4.8d-5) then
tmp = x * ((y * (-0.0424927283095952d0)) + (x * (-5.843575199059173d0)))
else
tmp = (x + (-2.0d0)) * (4.16438922228d0 - ((101.7851458539211d0 / x) - (3451.550173699799d0 / (x * x))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -2.4e-11) {
tmp = ((x * 4.16438922228) + (3655.1204654076414 * (1.0 / x))) - 110.1139242984811;
} else if (x <= 4.4e-67) {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (y * (x * 0.0212463641547976)));
} else if (x <= 4.8e-5) {
tmp = x * ((y * -0.0424927283095952) + (x * -5.843575199059173));
} else {
tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 / x) - (3451.550173699799 / (x * x))));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -2.4e-11: tmp = ((x * 4.16438922228) + (3655.1204654076414 * (1.0 / x))) - 110.1139242984811 elif x <= 4.4e-67: tmp = (x + -2.0) * ((z * 0.0212463641547976) + (y * (x * 0.0212463641547976))) elif x <= 4.8e-5: tmp = x * ((y * -0.0424927283095952) + (x * -5.843575199059173)) else: tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 / x) - (3451.550173699799 / (x * x)))) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -2.4e-11) tmp = Float64(Float64(Float64(x * 4.16438922228) + Float64(3655.1204654076414 * Float64(1.0 / x))) - 110.1139242984811); elseif (x <= 4.4e-67) tmp = Float64(Float64(x + -2.0) * Float64(Float64(z * 0.0212463641547976) + Float64(y * Float64(x * 0.0212463641547976)))); elseif (x <= 4.8e-5) tmp = Float64(x * Float64(Float64(y * -0.0424927283095952) + Float64(x * -5.843575199059173))); else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 - Float64(Float64(101.7851458539211 / x) - Float64(3451.550173699799 / Float64(x * x))))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -2.4e-11) tmp = ((x * 4.16438922228) + (3655.1204654076414 * (1.0 / x))) - 110.1139242984811; elseif (x <= 4.4e-67) tmp = (x + -2.0) * ((z * 0.0212463641547976) + (y * (x * 0.0212463641547976))); elseif (x <= 4.8e-5) tmp = x * ((y * -0.0424927283095952) + (x * -5.843575199059173)); else tmp = (x + -2.0) * (4.16438922228 - ((101.7851458539211 / x) - (3451.550173699799 / (x * x)))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -2.4e-11], N[(N[(N[(x * 4.16438922228), $MachinePrecision] + N[(3655.1204654076414 * N[(1.0 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - 110.1139242984811), $MachinePrecision], If[LessEqual[x, 4.4e-67], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z * 0.0212463641547976), $MachinePrecision] + N[(y * N[(x * 0.0212463641547976), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 4.8e-5], N[(x * N[(N[(y * -0.0424927283095952), $MachinePrecision] + N[(x * -5.843575199059173), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 - N[(N[(101.7851458539211 / x), $MachinePrecision] - N[(3451.550173699799 / N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2.4 \cdot 10^{-11}:\\
\;\;\;\;\left(x \cdot 4.16438922228 + 3655.1204654076414 \cdot \frac{1}{x}\right) - 110.1139242984811\\
\mathbf{elif}\;x \leq 4.4 \cdot 10^{-67}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976 + y \cdot \left(x \cdot 0.0212463641547976\right)\right)\\
\mathbf{elif}\;x \leq 4.8 \cdot 10^{-5}:\\
\;\;\;\;x \cdot \left(y \cdot -0.0424927283095952 + x \cdot -5.843575199059173\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 - \left(\frac{101.7851458539211}{x} - \frac{3451.550173699799}{x \cdot x}\right)\right)\\
\end{array}
\end{array}
if x < -2.4000000000000001e-11Initial program 18.0%
associate-*r/24.0%
sub-neg24.0%
metadata-eval24.0%
*-commutative24.0%
fma-def24.0%
*-commutative24.0%
fma-def24.0%
*-commutative24.0%
fma-def24.0%
fma-def24.0%
*-commutative24.0%
Simplified24.0%
Taylor expanded in x around inf 86.8%
if -2.4000000000000001e-11 < x < 4.4000000000000002e-67Initial program 99.7%
associate-*r/99.7%
sub-neg99.7%
metadata-eval99.7%
*-commutative99.7%
fma-def99.7%
*-commutative99.7%
fma-def99.7%
*-commutative99.7%
fma-def99.7%
fma-def99.7%
*-commutative99.7%
Simplified99.7%
Taylor expanded in x around 0 97.8%
Taylor expanded in y around inf 97.8%
*-commutative97.8%
associate-*l*97.8%
Simplified97.8%
if 4.4000000000000002e-67 < x < 4.8000000000000001e-5Initial program 99.3%
associate-*r/99.3%
sub-neg99.3%
metadata-eval99.3%
*-commutative99.3%
fma-def99.3%
*-commutative99.3%
fma-def99.3%
*-commutative99.3%
fma-def99.3%
fma-def99.3%
*-commutative99.3%
Simplified99.3%
Taylor expanded in z around 0 99.3%
Taylor expanded in x around 0 91.1%
associate-*r*90.9%
*-commutative90.9%
*-commutative90.9%
unpow290.9%
associate-*l*91.0%
distribute-lft-out91.0%
fma-neg91.0%
sub-neg91.0%
metadata-eval91.0%
*-commutative91.0%
distribute-rgt-neg-in91.0%
metadata-eval91.0%
Simplified91.0%
Taylor expanded in y around 0 91.1%
if 4.8000000000000001e-5 < x Initial program 16.0%
associate-*r/20.9%
sub-neg20.9%
metadata-eval20.9%
*-commutative20.9%
fma-def20.9%
*-commutative20.9%
fma-def20.9%
*-commutative20.9%
fma-def20.9%
fma-def20.9%
*-commutative20.9%
Simplified20.9%
Taylor expanded in x around inf 85.6%
associate--l+85.6%
associate-*r/85.6%
metadata-eval85.6%
unpow285.6%
associate-*r/85.6%
metadata-eval85.6%
Simplified85.6%
Final simplification91.4%
(FPCore (x y z)
:precision binary64
(if (<= x -2.4e-11)
(-
(+ (* x 4.16438922228) (* 3655.1204654076414 (/ 1.0 x)))
110.1139242984811)
(if (<= x 4.4e-67)
(* (+ x -2.0) (+ (* z 0.0212463641547976) (* y (* x 0.0212463641547976))))
(if (<= x 4.8e-5)
(* x (+ (* y -0.0424927283095952) (* x -5.843575199059173)))
(- (* x 4.16438922228) 110.1139242984811)))))
double code(double x, double y, double z) {
double tmp;
if (x <= -2.4e-11) {
tmp = ((x * 4.16438922228) + (3655.1204654076414 * (1.0 / x))) - 110.1139242984811;
} else if (x <= 4.4e-67) {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (y * (x * 0.0212463641547976)));
} else if (x <= 4.8e-5) {
tmp = x * ((y * -0.0424927283095952) + (x * -5.843575199059173));
} else {
tmp = (x * 4.16438922228) - 110.1139242984811;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-2.4d-11)) then
tmp = ((x * 4.16438922228d0) + (3655.1204654076414d0 * (1.0d0 / x))) - 110.1139242984811d0
else if (x <= 4.4d-67) then
tmp = (x + (-2.0d0)) * ((z * 0.0212463641547976d0) + (y * (x * 0.0212463641547976d0)))
else if (x <= 4.8d-5) then
tmp = x * ((y * (-0.0424927283095952d0)) + (x * (-5.843575199059173d0)))
else
tmp = (x * 4.16438922228d0) - 110.1139242984811d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -2.4e-11) {
tmp = ((x * 4.16438922228) + (3655.1204654076414 * (1.0 / x))) - 110.1139242984811;
} else if (x <= 4.4e-67) {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (y * (x * 0.0212463641547976)));
} else if (x <= 4.8e-5) {
tmp = x * ((y * -0.0424927283095952) + (x * -5.843575199059173));
} else {
tmp = (x * 4.16438922228) - 110.1139242984811;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -2.4e-11: tmp = ((x * 4.16438922228) + (3655.1204654076414 * (1.0 / x))) - 110.1139242984811 elif x <= 4.4e-67: tmp = (x + -2.0) * ((z * 0.0212463641547976) + (y * (x * 0.0212463641547976))) elif x <= 4.8e-5: tmp = x * ((y * -0.0424927283095952) + (x * -5.843575199059173)) else: tmp = (x * 4.16438922228) - 110.1139242984811 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -2.4e-11) tmp = Float64(Float64(Float64(x * 4.16438922228) + Float64(3655.1204654076414 * Float64(1.0 / x))) - 110.1139242984811); elseif (x <= 4.4e-67) tmp = Float64(Float64(x + -2.0) * Float64(Float64(z * 0.0212463641547976) + Float64(y * Float64(x * 0.0212463641547976)))); elseif (x <= 4.8e-5) tmp = Float64(x * Float64(Float64(y * -0.0424927283095952) + Float64(x * -5.843575199059173))); else tmp = Float64(Float64(x * 4.16438922228) - 110.1139242984811); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -2.4e-11) tmp = ((x * 4.16438922228) + (3655.1204654076414 * (1.0 / x))) - 110.1139242984811; elseif (x <= 4.4e-67) tmp = (x + -2.0) * ((z * 0.0212463641547976) + (y * (x * 0.0212463641547976))); elseif (x <= 4.8e-5) tmp = x * ((y * -0.0424927283095952) + (x * -5.843575199059173)); else tmp = (x * 4.16438922228) - 110.1139242984811; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -2.4e-11], N[(N[(N[(x * 4.16438922228), $MachinePrecision] + N[(3655.1204654076414 * N[(1.0 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - 110.1139242984811), $MachinePrecision], If[LessEqual[x, 4.4e-67], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z * 0.0212463641547976), $MachinePrecision] + N[(y * N[(x * 0.0212463641547976), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 4.8e-5], N[(x * N[(N[(y * -0.0424927283095952), $MachinePrecision] + N[(x * -5.843575199059173), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x * 4.16438922228), $MachinePrecision] - 110.1139242984811), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2.4 \cdot 10^{-11}:\\
\;\;\;\;\left(x \cdot 4.16438922228 + 3655.1204654076414 \cdot \frac{1}{x}\right) - 110.1139242984811\\
\mathbf{elif}\;x \leq 4.4 \cdot 10^{-67}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976 + y \cdot \left(x \cdot 0.0212463641547976\right)\right)\\
\mathbf{elif}\;x \leq 4.8 \cdot 10^{-5}:\\
\;\;\;\;x \cdot \left(y \cdot -0.0424927283095952 + x \cdot -5.843575199059173\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228 - 110.1139242984811\\
\end{array}
\end{array}
if x < -2.4000000000000001e-11Initial program 18.0%
associate-*r/24.0%
sub-neg24.0%
metadata-eval24.0%
*-commutative24.0%
fma-def24.0%
*-commutative24.0%
fma-def24.0%
*-commutative24.0%
fma-def24.0%
fma-def24.0%
*-commutative24.0%
Simplified24.0%
Taylor expanded in x around inf 86.8%
if -2.4000000000000001e-11 < x < 4.4000000000000002e-67Initial program 99.7%
associate-*r/99.7%
sub-neg99.7%
metadata-eval99.7%
*-commutative99.7%
fma-def99.7%
*-commutative99.7%
fma-def99.7%
*-commutative99.7%
fma-def99.7%
fma-def99.7%
*-commutative99.7%
Simplified99.7%
Taylor expanded in x around 0 97.8%
Taylor expanded in y around inf 97.8%
*-commutative97.8%
associate-*l*97.8%
Simplified97.8%
if 4.4000000000000002e-67 < x < 4.8000000000000001e-5Initial program 99.3%
associate-*r/99.3%
sub-neg99.3%
metadata-eval99.3%
*-commutative99.3%
fma-def99.3%
*-commutative99.3%
fma-def99.3%
*-commutative99.3%
fma-def99.3%
fma-def99.3%
*-commutative99.3%
Simplified99.3%
Taylor expanded in z around 0 99.3%
Taylor expanded in x around 0 91.1%
associate-*r*90.9%
*-commutative90.9%
*-commutative90.9%
unpow290.9%
associate-*l*91.0%
distribute-lft-out91.0%
fma-neg91.0%
sub-neg91.0%
metadata-eval91.0%
*-commutative91.0%
distribute-rgt-neg-in91.0%
metadata-eval91.0%
Simplified91.0%
Taylor expanded in y around 0 91.1%
if 4.8000000000000001e-5 < x Initial program 16.0%
associate-*r/20.9%
sub-neg20.9%
metadata-eval20.9%
*-commutative20.9%
fma-def20.9%
*-commutative20.9%
fma-def20.9%
*-commutative20.9%
fma-def20.9%
fma-def20.9%
*-commutative20.9%
Simplified20.9%
Taylor expanded in x around inf 85.6%
Final simplification91.4%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (- (* x 4.16438922228) 110.1139242984811)))
(if (<= x -2.4e-11)
t_0
(if (<= x 4.4e-67)
(* -0.0424927283095952 (+ z (* x y)))
(if (<= x 4.8e-5)
(* x (+ (* y -0.0424927283095952) (* x -5.843575199059173)))
t_0)))))
double code(double x, double y, double z) {
double t_0 = (x * 4.16438922228) - 110.1139242984811;
double tmp;
if (x <= -2.4e-11) {
tmp = t_0;
} else if (x <= 4.4e-67) {
tmp = -0.0424927283095952 * (z + (x * y));
} else if (x <= 4.8e-5) {
tmp = x * ((y * -0.0424927283095952) + (x * -5.843575199059173));
} else {
tmp = t_0;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = (x * 4.16438922228d0) - 110.1139242984811d0
if (x <= (-2.4d-11)) then
tmp = t_0
else if (x <= 4.4d-67) then
tmp = (-0.0424927283095952d0) * (z + (x * y))
else if (x <= 4.8d-5) then
tmp = x * ((y * (-0.0424927283095952d0)) + (x * (-5.843575199059173d0)))
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = (x * 4.16438922228) - 110.1139242984811;
double tmp;
if (x <= -2.4e-11) {
tmp = t_0;
} else if (x <= 4.4e-67) {
tmp = -0.0424927283095952 * (z + (x * y));
} else if (x <= 4.8e-5) {
tmp = x * ((y * -0.0424927283095952) + (x * -5.843575199059173));
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = (x * 4.16438922228) - 110.1139242984811 tmp = 0 if x <= -2.4e-11: tmp = t_0 elif x <= 4.4e-67: tmp = -0.0424927283095952 * (z + (x * y)) elif x <= 4.8e-5: tmp = x * ((y * -0.0424927283095952) + (x * -5.843575199059173)) else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(Float64(x * 4.16438922228) - 110.1139242984811) tmp = 0.0 if (x <= -2.4e-11) tmp = t_0; elseif (x <= 4.4e-67) tmp = Float64(-0.0424927283095952 * Float64(z + Float64(x * y))); elseif (x <= 4.8e-5) tmp = Float64(x * Float64(Float64(y * -0.0424927283095952) + Float64(x * -5.843575199059173))); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = (x * 4.16438922228) - 110.1139242984811; tmp = 0.0; if (x <= -2.4e-11) tmp = t_0; elseif (x <= 4.4e-67) tmp = -0.0424927283095952 * (z + (x * y)); elseif (x <= 4.8e-5) tmp = x * ((y * -0.0424927283095952) + (x * -5.843575199059173)); else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(x * 4.16438922228), $MachinePrecision] - 110.1139242984811), $MachinePrecision]}, If[LessEqual[x, -2.4e-11], t$95$0, If[LessEqual[x, 4.4e-67], N[(-0.0424927283095952 * N[(z + N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 4.8e-5], N[(x * N[(N[(y * -0.0424927283095952), $MachinePrecision] + N[(x * -5.843575199059173), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$0]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot 4.16438922228 - 110.1139242984811\\
\mathbf{if}\;x \leq -2.4 \cdot 10^{-11}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;x \leq 4.4 \cdot 10^{-67}:\\
\;\;\;\;-0.0424927283095952 \cdot \left(z + x \cdot y\right)\\
\mathbf{elif}\;x \leq 4.8 \cdot 10^{-5}:\\
\;\;\;\;x \cdot \left(y \cdot -0.0424927283095952 + x \cdot -5.843575199059173\right)\\
\mathbf{else}:\\
\;\;\;\;t_0\\
\end{array}
\end{array}
if x < -2.4000000000000001e-11 or 4.8000000000000001e-5 < x Initial program 17.2%
associate-*r/22.7%
sub-neg22.7%
metadata-eval22.7%
*-commutative22.7%
fma-def22.7%
*-commutative22.7%
fma-def22.7%
*-commutative22.7%
fma-def22.7%
fma-def22.7%
*-commutative22.7%
Simplified22.7%
Taylor expanded in x around inf 86.3%
if -2.4000000000000001e-11 < x < 4.4000000000000002e-67Initial program 99.7%
associate-*r/99.7%
sub-neg99.7%
metadata-eval99.7%
*-commutative99.7%
fma-def99.7%
*-commutative99.7%
fma-def99.7%
*-commutative99.7%
fma-def99.7%
fma-def99.7%
*-commutative99.7%
Simplified99.7%
Taylor expanded in x around 0 97.8%
Taylor expanded in y around inf 97.8%
*-commutative97.8%
associate-*l*97.8%
Simplified97.8%
Taylor expanded in x around 0 97.8%
unpow297.8%
associate-*r*97.8%
associate-*l*97.8%
*-commutative97.8%
associate-*r*97.8%
*-commutative97.8%
*-commutative97.8%
distribute-rgt-in97.8%
associate-*r*97.8%
associate-+r+97.8%
*-commutative97.8%
metadata-eval97.8%
associate-*l*97.8%
associate-*r*97.8%
*-commutative97.8%
metadata-eval97.8%
associate-*l*97.8%
distribute-lft-in97.8%
Simplified97.8%
Taylor expanded in x around 0 97.8%
if 4.4000000000000002e-67 < x < 4.8000000000000001e-5Initial program 99.3%
associate-*r/99.3%
sub-neg99.3%
metadata-eval99.3%
*-commutative99.3%
fma-def99.3%
*-commutative99.3%
fma-def99.3%
*-commutative99.3%
fma-def99.3%
fma-def99.3%
*-commutative99.3%
Simplified99.3%
Taylor expanded in z around 0 99.3%
Taylor expanded in x around 0 91.1%
associate-*r*90.9%
*-commutative90.9%
*-commutative90.9%
unpow290.9%
associate-*l*91.0%
distribute-lft-out91.0%
fma-neg91.0%
sub-neg91.0%
metadata-eval91.0%
*-commutative91.0%
distribute-rgt-neg-in91.0%
metadata-eval91.0%
Simplified91.0%
Taylor expanded in y around 0 91.1%
Final simplification91.4%
(FPCore (x y z)
:precision binary64
(if (<= x -2.4e-11)
(-
(+ (* x 4.16438922228) (* 3655.1204654076414 (/ 1.0 x)))
110.1139242984811)
(if (<= x 4.4e-67)
(* -0.0424927283095952 (+ z (* x y)))
(if (<= x 4.8e-5)
(* x (+ (* y -0.0424927283095952) (* x -5.843575199059173)))
(- (* x 4.16438922228) 110.1139242984811)))))
double code(double x, double y, double z) {
double tmp;
if (x <= -2.4e-11) {
tmp = ((x * 4.16438922228) + (3655.1204654076414 * (1.0 / x))) - 110.1139242984811;
} else if (x <= 4.4e-67) {
tmp = -0.0424927283095952 * (z + (x * y));
} else if (x <= 4.8e-5) {
tmp = x * ((y * -0.0424927283095952) + (x * -5.843575199059173));
} else {
tmp = (x * 4.16438922228) - 110.1139242984811;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-2.4d-11)) then
tmp = ((x * 4.16438922228d0) + (3655.1204654076414d0 * (1.0d0 / x))) - 110.1139242984811d0
else if (x <= 4.4d-67) then
tmp = (-0.0424927283095952d0) * (z + (x * y))
else if (x <= 4.8d-5) then
tmp = x * ((y * (-0.0424927283095952d0)) + (x * (-5.843575199059173d0)))
else
tmp = (x * 4.16438922228d0) - 110.1139242984811d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -2.4e-11) {
tmp = ((x * 4.16438922228) + (3655.1204654076414 * (1.0 / x))) - 110.1139242984811;
} else if (x <= 4.4e-67) {
tmp = -0.0424927283095952 * (z + (x * y));
} else if (x <= 4.8e-5) {
tmp = x * ((y * -0.0424927283095952) + (x * -5.843575199059173));
} else {
tmp = (x * 4.16438922228) - 110.1139242984811;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -2.4e-11: tmp = ((x * 4.16438922228) + (3655.1204654076414 * (1.0 / x))) - 110.1139242984811 elif x <= 4.4e-67: tmp = -0.0424927283095952 * (z + (x * y)) elif x <= 4.8e-5: tmp = x * ((y * -0.0424927283095952) + (x * -5.843575199059173)) else: tmp = (x * 4.16438922228) - 110.1139242984811 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -2.4e-11) tmp = Float64(Float64(Float64(x * 4.16438922228) + Float64(3655.1204654076414 * Float64(1.0 / x))) - 110.1139242984811); elseif (x <= 4.4e-67) tmp = Float64(-0.0424927283095952 * Float64(z + Float64(x * y))); elseif (x <= 4.8e-5) tmp = Float64(x * Float64(Float64(y * -0.0424927283095952) + Float64(x * -5.843575199059173))); else tmp = Float64(Float64(x * 4.16438922228) - 110.1139242984811); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -2.4e-11) tmp = ((x * 4.16438922228) + (3655.1204654076414 * (1.0 / x))) - 110.1139242984811; elseif (x <= 4.4e-67) tmp = -0.0424927283095952 * (z + (x * y)); elseif (x <= 4.8e-5) tmp = x * ((y * -0.0424927283095952) + (x * -5.843575199059173)); else tmp = (x * 4.16438922228) - 110.1139242984811; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -2.4e-11], N[(N[(N[(x * 4.16438922228), $MachinePrecision] + N[(3655.1204654076414 * N[(1.0 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - 110.1139242984811), $MachinePrecision], If[LessEqual[x, 4.4e-67], N[(-0.0424927283095952 * N[(z + N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 4.8e-5], N[(x * N[(N[(y * -0.0424927283095952), $MachinePrecision] + N[(x * -5.843575199059173), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x * 4.16438922228), $MachinePrecision] - 110.1139242984811), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2.4 \cdot 10^{-11}:\\
\;\;\;\;\left(x \cdot 4.16438922228 + 3655.1204654076414 \cdot \frac{1}{x}\right) - 110.1139242984811\\
\mathbf{elif}\;x \leq 4.4 \cdot 10^{-67}:\\
\;\;\;\;-0.0424927283095952 \cdot \left(z + x \cdot y\right)\\
\mathbf{elif}\;x \leq 4.8 \cdot 10^{-5}:\\
\;\;\;\;x \cdot \left(y \cdot -0.0424927283095952 + x \cdot -5.843575199059173\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228 - 110.1139242984811\\
\end{array}
\end{array}
if x < -2.4000000000000001e-11Initial program 18.0%
associate-*r/24.0%
sub-neg24.0%
metadata-eval24.0%
*-commutative24.0%
fma-def24.0%
*-commutative24.0%
fma-def24.0%
*-commutative24.0%
fma-def24.0%
fma-def24.0%
*-commutative24.0%
Simplified24.0%
Taylor expanded in x around inf 86.8%
if -2.4000000000000001e-11 < x < 4.4000000000000002e-67Initial program 99.7%
associate-*r/99.7%
sub-neg99.7%
metadata-eval99.7%
*-commutative99.7%
fma-def99.7%
*-commutative99.7%
fma-def99.7%
*-commutative99.7%
fma-def99.7%
fma-def99.7%
*-commutative99.7%
Simplified99.7%
Taylor expanded in x around 0 97.8%
Taylor expanded in y around inf 97.8%
*-commutative97.8%
associate-*l*97.8%
Simplified97.8%
Taylor expanded in x around 0 97.8%
unpow297.8%
associate-*r*97.8%
associate-*l*97.8%
*-commutative97.8%
associate-*r*97.8%
*-commutative97.8%
*-commutative97.8%
distribute-rgt-in97.8%
associate-*r*97.8%
associate-+r+97.8%
*-commutative97.8%
metadata-eval97.8%
associate-*l*97.8%
associate-*r*97.8%
*-commutative97.8%
metadata-eval97.8%
associate-*l*97.8%
distribute-lft-in97.8%
Simplified97.8%
Taylor expanded in x around 0 97.8%
if 4.4000000000000002e-67 < x < 4.8000000000000001e-5Initial program 99.3%
associate-*r/99.3%
sub-neg99.3%
metadata-eval99.3%
*-commutative99.3%
fma-def99.3%
*-commutative99.3%
fma-def99.3%
*-commutative99.3%
fma-def99.3%
fma-def99.3%
*-commutative99.3%
Simplified99.3%
Taylor expanded in z around 0 99.3%
Taylor expanded in x around 0 91.1%
associate-*r*90.9%
*-commutative90.9%
*-commutative90.9%
unpow290.9%
associate-*l*91.0%
distribute-lft-out91.0%
fma-neg91.0%
sub-neg91.0%
metadata-eval91.0%
*-commutative91.0%
distribute-rgt-neg-in91.0%
metadata-eval91.0%
Simplified91.0%
Taylor expanded in y around 0 91.1%
if 4.8000000000000001e-5 < x Initial program 16.0%
associate-*r/20.9%
sub-neg20.9%
metadata-eval20.9%
*-commutative20.9%
fma-def20.9%
*-commutative20.9%
fma-def20.9%
*-commutative20.9%
fma-def20.9%
fma-def20.9%
*-commutative20.9%
Simplified20.9%
Taylor expanded in x around inf 85.6%
Final simplification91.4%
(FPCore (x y z)
:precision binary64
(if (<= x -2.4e-11)
(* x 4.16438922228)
(if (<= x 6.5e-64)
(* z -0.0424927283095952)
(if (<= x 2.0) (* -0.0424927283095952 (* x y)) (* x 4.16438922228)))))
double code(double x, double y, double z) {
double tmp;
if (x <= -2.4e-11) {
tmp = x * 4.16438922228;
} else if (x <= 6.5e-64) {
tmp = z * -0.0424927283095952;
} else if (x <= 2.0) {
tmp = -0.0424927283095952 * (x * y);
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-2.4d-11)) then
tmp = x * 4.16438922228d0
else if (x <= 6.5d-64) then
tmp = z * (-0.0424927283095952d0)
else if (x <= 2.0d0) then
tmp = (-0.0424927283095952d0) * (x * y)
else
tmp = x * 4.16438922228d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -2.4e-11) {
tmp = x * 4.16438922228;
} else if (x <= 6.5e-64) {
tmp = z * -0.0424927283095952;
} else if (x <= 2.0) {
tmp = -0.0424927283095952 * (x * y);
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -2.4e-11: tmp = x * 4.16438922228 elif x <= 6.5e-64: tmp = z * -0.0424927283095952 elif x <= 2.0: tmp = -0.0424927283095952 * (x * y) else: tmp = x * 4.16438922228 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -2.4e-11) tmp = Float64(x * 4.16438922228); elseif (x <= 6.5e-64) tmp = Float64(z * -0.0424927283095952); elseif (x <= 2.0) tmp = Float64(-0.0424927283095952 * Float64(x * y)); else tmp = Float64(x * 4.16438922228); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -2.4e-11) tmp = x * 4.16438922228; elseif (x <= 6.5e-64) tmp = z * -0.0424927283095952; elseif (x <= 2.0) tmp = -0.0424927283095952 * (x * y); else tmp = x * 4.16438922228; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -2.4e-11], N[(x * 4.16438922228), $MachinePrecision], If[LessEqual[x, 6.5e-64], N[(z * -0.0424927283095952), $MachinePrecision], If[LessEqual[x, 2.0], N[(-0.0424927283095952 * N[(x * y), $MachinePrecision]), $MachinePrecision], N[(x * 4.16438922228), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2.4 \cdot 10^{-11}:\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{elif}\;x \leq 6.5 \cdot 10^{-64}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{elif}\;x \leq 2:\\
\;\;\;\;-0.0424927283095952 \cdot \left(x \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228\\
\end{array}
\end{array}
if x < -2.4000000000000001e-11 or 2 < x Initial program 16.6%
*-commutative16.6%
associate-*r/22.2%
*-commutative22.2%
fma-def22.2%
*-commutative22.2%
fma-def22.2%
*-commutative22.2%
fma-def22.2%
fma-def22.2%
Simplified22.3%
fma-def22.3%
flip3-+22.2%
metadata-eval22.2%
metadata-eval22.2%
Applied egg-rr22.2%
cube-prod22.2%
metadata-eval22.2%
swap-sqr22.1%
metadata-eval22.3%
associate-*l*22.3%
metadata-eval22.3%
Simplified22.3%
Taylor expanded in x around inf 86.8%
*-commutative86.8%
Simplified86.8%
if -2.4000000000000001e-11 < x < 6.5000000000000004e-64Initial program 99.7%
associate-*r/99.7%
sub-neg99.7%
metadata-eval99.7%
*-commutative99.7%
fma-def99.7%
*-commutative99.7%
fma-def99.7%
*-commutative99.7%
fma-def99.7%
fma-def99.7%
*-commutative99.7%
Simplified99.7%
Taylor expanded in x around 0 72.6%
*-commutative72.6%
Simplified72.6%
if 6.5000000000000004e-64 < x < 2Initial program 99.5%
associate-*r/99.4%
sub-neg99.4%
metadata-eval99.4%
*-commutative99.4%
fma-def99.4%
*-commutative99.4%
fma-def99.4%
*-commutative99.4%
fma-def99.4%
fma-def99.4%
*-commutative99.4%
Simplified99.4%
Taylor expanded in z around 0 90.6%
Taylor expanded in x around 0 45.9%
Final simplification79.0%
(FPCore (x y z)
:precision binary64
(if (<= x -2.4e-11)
(* x 4.16438922228)
(if (<= x 2.35e-63)
(* z -0.0424927283095952)
(if (<= x 2.2e-31)
(* -0.0424927283095952 (* x y))
(* 4.16438922228 (+ x -2.0))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -2.4e-11) {
tmp = x * 4.16438922228;
} else if (x <= 2.35e-63) {
tmp = z * -0.0424927283095952;
} else if (x <= 2.2e-31) {
tmp = -0.0424927283095952 * (x * y);
} else {
tmp = 4.16438922228 * (x + -2.0);
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-2.4d-11)) then
tmp = x * 4.16438922228d0
else if (x <= 2.35d-63) then
tmp = z * (-0.0424927283095952d0)
else if (x <= 2.2d-31) then
tmp = (-0.0424927283095952d0) * (x * y)
else
tmp = 4.16438922228d0 * (x + (-2.0d0))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -2.4e-11) {
tmp = x * 4.16438922228;
} else if (x <= 2.35e-63) {
tmp = z * -0.0424927283095952;
} else if (x <= 2.2e-31) {
tmp = -0.0424927283095952 * (x * y);
} else {
tmp = 4.16438922228 * (x + -2.0);
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -2.4e-11: tmp = x * 4.16438922228 elif x <= 2.35e-63: tmp = z * -0.0424927283095952 elif x <= 2.2e-31: tmp = -0.0424927283095952 * (x * y) else: tmp = 4.16438922228 * (x + -2.0) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -2.4e-11) tmp = Float64(x * 4.16438922228); elseif (x <= 2.35e-63) tmp = Float64(z * -0.0424927283095952); elseif (x <= 2.2e-31) tmp = Float64(-0.0424927283095952 * Float64(x * y)); else tmp = Float64(4.16438922228 * Float64(x + -2.0)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -2.4e-11) tmp = x * 4.16438922228; elseif (x <= 2.35e-63) tmp = z * -0.0424927283095952; elseif (x <= 2.2e-31) tmp = -0.0424927283095952 * (x * y); else tmp = 4.16438922228 * (x + -2.0); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -2.4e-11], N[(x * 4.16438922228), $MachinePrecision], If[LessEqual[x, 2.35e-63], N[(z * -0.0424927283095952), $MachinePrecision], If[LessEqual[x, 2.2e-31], N[(-0.0424927283095952 * N[(x * y), $MachinePrecision]), $MachinePrecision], N[(4.16438922228 * N[(x + -2.0), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2.4 \cdot 10^{-11}:\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{elif}\;x \leq 2.35 \cdot 10^{-63}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{elif}\;x \leq 2.2 \cdot 10^{-31}:\\
\;\;\;\;-0.0424927283095952 \cdot \left(x \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;4.16438922228 \cdot \left(x + -2\right)\\
\end{array}
\end{array}
if x < -2.4000000000000001e-11Initial program 18.0%
*-commutative18.0%
associate-*r/24.1%
*-commutative24.1%
fma-def24.1%
*-commutative24.1%
fma-def24.1%
*-commutative24.1%
fma-def24.1%
fma-def24.1%
Simplified24.2%
fma-def24.2%
flip3-+24.1%
metadata-eval24.1%
metadata-eval24.1%
Applied egg-rr24.1%
cube-prod24.1%
metadata-eval24.1%
swap-sqr24.0%
metadata-eval24.2%
associate-*l*24.2%
metadata-eval24.2%
Simplified24.2%
Taylor expanded in x around inf 86.6%
*-commutative86.6%
Simplified86.6%
if -2.4000000000000001e-11 < x < 2.35e-63Initial program 99.7%
associate-*r/99.7%
sub-neg99.7%
metadata-eval99.7%
*-commutative99.7%
fma-def99.7%
*-commutative99.7%
fma-def99.7%
*-commutative99.7%
fma-def99.7%
fma-def99.7%
*-commutative99.7%
Simplified99.7%
Taylor expanded in x around 0 72.6%
*-commutative72.6%
Simplified72.6%
if 2.35e-63 < x < 2.2000000000000001e-31Initial program 100.0%
associate-*r/100.0%
sub-neg100.0%
metadata-eval100.0%
*-commutative100.0%
fma-def100.0%
*-commutative100.0%
fma-def100.0%
*-commutative100.0%
fma-def100.0%
fma-def100.0%
*-commutative100.0%
Simplified100.0%
Taylor expanded in z around 0 100.0%
Taylor expanded in x around 0 82.0%
if 2.2000000000000001e-31 < x Initial program 21.4%
associate-*r/26.0%
sub-neg26.0%
metadata-eval26.0%
*-commutative26.0%
fma-def26.0%
*-commutative26.0%
fma-def26.0%
*-commutative26.0%
fma-def26.0%
fma-def26.0%
*-commutative26.0%
Simplified26.0%
Taylor expanded in x around inf 80.6%
Final simplification79.1%
(FPCore (x y z)
:precision binary64
(if (<= x -2.4e-11)
(- (* x 4.16438922228) 110.1139242984811)
(if (<= x 2.2e-63)
(* z -0.0424927283095952)
(if (<= x 2.2e-31)
(* -0.0424927283095952 (* x y))
(* 4.16438922228 (+ x -2.0))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -2.4e-11) {
tmp = (x * 4.16438922228) - 110.1139242984811;
} else if (x <= 2.2e-63) {
tmp = z * -0.0424927283095952;
} else if (x <= 2.2e-31) {
tmp = -0.0424927283095952 * (x * y);
} else {
tmp = 4.16438922228 * (x + -2.0);
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-2.4d-11)) then
tmp = (x * 4.16438922228d0) - 110.1139242984811d0
else if (x <= 2.2d-63) then
tmp = z * (-0.0424927283095952d0)
else if (x <= 2.2d-31) then
tmp = (-0.0424927283095952d0) * (x * y)
else
tmp = 4.16438922228d0 * (x + (-2.0d0))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -2.4e-11) {
tmp = (x * 4.16438922228) - 110.1139242984811;
} else if (x <= 2.2e-63) {
tmp = z * -0.0424927283095952;
} else if (x <= 2.2e-31) {
tmp = -0.0424927283095952 * (x * y);
} else {
tmp = 4.16438922228 * (x + -2.0);
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -2.4e-11: tmp = (x * 4.16438922228) - 110.1139242984811 elif x <= 2.2e-63: tmp = z * -0.0424927283095952 elif x <= 2.2e-31: tmp = -0.0424927283095952 * (x * y) else: tmp = 4.16438922228 * (x + -2.0) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -2.4e-11) tmp = Float64(Float64(x * 4.16438922228) - 110.1139242984811); elseif (x <= 2.2e-63) tmp = Float64(z * -0.0424927283095952); elseif (x <= 2.2e-31) tmp = Float64(-0.0424927283095952 * Float64(x * y)); else tmp = Float64(4.16438922228 * Float64(x + -2.0)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -2.4e-11) tmp = (x * 4.16438922228) - 110.1139242984811; elseif (x <= 2.2e-63) tmp = z * -0.0424927283095952; elseif (x <= 2.2e-31) tmp = -0.0424927283095952 * (x * y); else tmp = 4.16438922228 * (x + -2.0); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -2.4e-11], N[(N[(x * 4.16438922228), $MachinePrecision] - 110.1139242984811), $MachinePrecision], If[LessEqual[x, 2.2e-63], N[(z * -0.0424927283095952), $MachinePrecision], If[LessEqual[x, 2.2e-31], N[(-0.0424927283095952 * N[(x * y), $MachinePrecision]), $MachinePrecision], N[(4.16438922228 * N[(x + -2.0), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2.4 \cdot 10^{-11}:\\
\;\;\;\;x \cdot 4.16438922228 - 110.1139242984811\\
\mathbf{elif}\;x \leq 2.2 \cdot 10^{-63}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{elif}\;x \leq 2.2 \cdot 10^{-31}:\\
\;\;\;\;-0.0424927283095952 \cdot \left(x \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;4.16438922228 \cdot \left(x + -2\right)\\
\end{array}
\end{array}
if x < -2.4000000000000001e-11Initial program 18.0%
associate-*r/24.0%
sub-neg24.0%
metadata-eval24.0%
*-commutative24.0%
fma-def24.0%
*-commutative24.0%
fma-def24.0%
*-commutative24.0%
fma-def24.0%
fma-def24.0%
*-commutative24.0%
Simplified24.0%
Taylor expanded in x around inf 86.7%
if -2.4000000000000001e-11 < x < 2.2e-63Initial program 99.7%
associate-*r/99.7%
sub-neg99.7%
metadata-eval99.7%
*-commutative99.7%
fma-def99.7%
*-commutative99.7%
fma-def99.7%
*-commutative99.7%
fma-def99.7%
fma-def99.7%
*-commutative99.7%
Simplified99.7%
Taylor expanded in x around 0 72.6%
*-commutative72.6%
Simplified72.6%
if 2.2e-63 < x < 2.2000000000000001e-31Initial program 100.0%
associate-*r/100.0%
sub-neg100.0%
metadata-eval100.0%
*-commutative100.0%
fma-def100.0%
*-commutative100.0%
fma-def100.0%
*-commutative100.0%
fma-def100.0%
fma-def100.0%
*-commutative100.0%
Simplified100.0%
Taylor expanded in z around 0 100.0%
Taylor expanded in x around 0 82.0%
if 2.2000000000000001e-31 < x Initial program 21.4%
associate-*r/26.0%
sub-neg26.0%
metadata-eval26.0%
*-commutative26.0%
fma-def26.0%
*-commutative26.0%
fma-def26.0%
*-commutative26.0%
fma-def26.0%
fma-def26.0%
*-commutative26.0%
Simplified26.0%
Taylor expanded in x around inf 80.6%
Final simplification79.1%
(FPCore (x y z) :precision binary64 (if (<= x -2.4e-11) (- (* x 4.16438922228) 110.1139242984811) (if (<= x 2.0) (* -0.0424927283095952 (+ z (* x y))) (* x 4.16438922228))))
double code(double x, double y, double z) {
double tmp;
if (x <= -2.4e-11) {
tmp = (x * 4.16438922228) - 110.1139242984811;
} else if (x <= 2.0) {
tmp = -0.0424927283095952 * (z + (x * y));
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-2.4d-11)) then
tmp = (x * 4.16438922228d0) - 110.1139242984811d0
else if (x <= 2.0d0) then
tmp = (-0.0424927283095952d0) * (z + (x * y))
else
tmp = x * 4.16438922228d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -2.4e-11) {
tmp = (x * 4.16438922228) - 110.1139242984811;
} else if (x <= 2.0) {
tmp = -0.0424927283095952 * (z + (x * y));
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -2.4e-11: tmp = (x * 4.16438922228) - 110.1139242984811 elif x <= 2.0: tmp = -0.0424927283095952 * (z + (x * y)) else: tmp = x * 4.16438922228 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -2.4e-11) tmp = Float64(Float64(x * 4.16438922228) - 110.1139242984811); elseif (x <= 2.0) tmp = Float64(-0.0424927283095952 * Float64(z + Float64(x * y))); else tmp = Float64(x * 4.16438922228); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -2.4e-11) tmp = (x * 4.16438922228) - 110.1139242984811; elseif (x <= 2.0) tmp = -0.0424927283095952 * (z + (x * y)); else tmp = x * 4.16438922228; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -2.4e-11], N[(N[(x * 4.16438922228), $MachinePrecision] - 110.1139242984811), $MachinePrecision], If[LessEqual[x, 2.0], N[(-0.0424927283095952 * N[(z + N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * 4.16438922228), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2.4 \cdot 10^{-11}:\\
\;\;\;\;x \cdot 4.16438922228 - 110.1139242984811\\
\mathbf{elif}\;x \leq 2:\\
\;\;\;\;-0.0424927283095952 \cdot \left(z + x \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228\\
\end{array}
\end{array}
if x < -2.4000000000000001e-11Initial program 18.0%
associate-*r/24.0%
sub-neg24.0%
metadata-eval24.0%
*-commutative24.0%
fma-def24.0%
*-commutative24.0%
fma-def24.0%
*-commutative24.0%
fma-def24.0%
fma-def24.0%
*-commutative24.0%
Simplified24.0%
Taylor expanded in x around inf 86.7%
if -2.4000000000000001e-11 < x < 2Initial program 99.7%
associate-*r/99.7%
sub-neg99.7%
metadata-eval99.7%
*-commutative99.7%
fma-def99.7%
*-commutative99.7%
fma-def99.7%
*-commutative99.7%
fma-def99.7%
fma-def99.7%
*-commutative99.7%
Simplified99.7%
Taylor expanded in x around 0 92.7%
Taylor expanded in y around inf 92.6%
*-commutative92.6%
associate-*l*92.6%
Simplified92.6%
Taylor expanded in x around 0 92.6%
unpow292.6%
associate-*r*92.6%
associate-*l*92.6%
*-commutative92.6%
associate-*r*92.6%
*-commutative92.6%
*-commutative92.6%
distribute-rgt-in92.6%
associate-*r*92.6%
associate-+r+92.6%
*-commutative92.6%
metadata-eval92.6%
associate-*l*92.6%
associate-*r*92.6%
*-commutative92.6%
metadata-eval92.6%
associate-*l*92.6%
distribute-lft-in92.6%
Simplified92.6%
Taylor expanded in x around 0 92.6%
if 2 < x Initial program 14.5%
*-commutative14.5%
associate-*r/19.6%
*-commutative19.6%
fma-def19.6%
*-commutative19.6%
fma-def19.6%
*-commutative19.6%
fma-def19.6%
fma-def19.6%
Simplified19.6%
fma-def19.6%
flip3-+19.6%
metadata-eval19.6%
metadata-eval19.6%
Applied egg-rr19.6%
cube-prod19.6%
metadata-eval19.5%
swap-sqr19.5%
metadata-eval19.6%
associate-*l*19.6%
metadata-eval19.6%
Simplified19.6%
Taylor expanded in x around inf 87.1%
*-commutative87.1%
Simplified87.1%
Final simplification89.6%
(FPCore (x y z) :precision binary64 (if (<= x -2.4e-11) (* x 4.16438922228) (if (<= x 2.0) (* z -0.0424927283095952) (* x 4.16438922228))))
double code(double x, double y, double z) {
double tmp;
if (x <= -2.4e-11) {
tmp = x * 4.16438922228;
} else if (x <= 2.0) {
tmp = z * -0.0424927283095952;
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-2.4d-11)) then
tmp = x * 4.16438922228d0
else if (x <= 2.0d0) then
tmp = z * (-0.0424927283095952d0)
else
tmp = x * 4.16438922228d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -2.4e-11) {
tmp = x * 4.16438922228;
} else if (x <= 2.0) {
tmp = z * -0.0424927283095952;
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -2.4e-11: tmp = x * 4.16438922228 elif x <= 2.0: tmp = z * -0.0424927283095952 else: tmp = x * 4.16438922228 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -2.4e-11) tmp = Float64(x * 4.16438922228); elseif (x <= 2.0) tmp = Float64(z * -0.0424927283095952); else tmp = Float64(x * 4.16438922228); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -2.4e-11) tmp = x * 4.16438922228; elseif (x <= 2.0) tmp = z * -0.0424927283095952; else tmp = x * 4.16438922228; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -2.4e-11], N[(x * 4.16438922228), $MachinePrecision], If[LessEqual[x, 2.0], N[(z * -0.0424927283095952), $MachinePrecision], N[(x * 4.16438922228), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2.4 \cdot 10^{-11}:\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{elif}\;x \leq 2:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228\\
\end{array}
\end{array}
if x < -2.4000000000000001e-11 or 2 < x Initial program 16.6%
*-commutative16.6%
associate-*r/22.2%
*-commutative22.2%
fma-def22.2%
*-commutative22.2%
fma-def22.2%
*-commutative22.2%
fma-def22.2%
fma-def22.2%
Simplified22.3%
fma-def22.3%
flip3-+22.2%
metadata-eval22.2%
metadata-eval22.2%
Applied egg-rr22.2%
cube-prod22.2%
metadata-eval22.2%
swap-sqr22.1%
metadata-eval22.3%
associate-*l*22.3%
metadata-eval22.3%
Simplified22.3%
Taylor expanded in x around inf 86.8%
*-commutative86.8%
Simplified86.8%
if -2.4000000000000001e-11 < x < 2Initial program 99.7%
associate-*r/99.7%
sub-neg99.7%
metadata-eval99.7%
*-commutative99.7%
fma-def99.7%
*-commutative99.7%
fma-def99.7%
*-commutative99.7%
fma-def99.7%
fma-def99.7%
*-commutative99.7%
Simplified99.7%
Taylor expanded in x around 0 66.6%
*-commutative66.6%
Simplified66.6%
Final simplification77.3%
(FPCore (x y z) :precision binary64 (* x 0.5218852675289308))
double code(double x, double y, double z) {
return x * 0.5218852675289308;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = x * 0.5218852675289308d0
end function
public static double code(double x, double y, double z) {
return x * 0.5218852675289308;
}
def code(x, y, z): return x * 0.5218852675289308
function code(x, y, z) return Float64(x * 0.5218852675289308) end
function tmp = code(x, y, z) tmp = x * 0.5218852675289308; end
code[x_, y_, z_] := N[(x * 0.5218852675289308), $MachinePrecision]
\begin{array}{l}
\\
x \cdot 0.5218852675289308
\end{array}
Initial program 55.9%
associate-*r/58.8%
sub-neg58.8%
metadata-eval58.8%
*-commutative58.8%
fma-def58.8%
*-commutative58.8%
fma-def58.8%
*-commutative58.8%
fma-def58.8%
fma-def58.8%
*-commutative58.8%
Simplified58.8%
Taylor expanded in z around 0 25.5%
Taylor expanded in x around 0 18.2%
*-commutative18.2%
Simplified18.2%
Taylor expanded in x around 0 19.7%
*-commutative19.7%
Simplified19.7%
Taylor expanded in x around inf 9.4%
*-commutative9.4%
Simplified9.4%
Final simplification9.4%
(FPCore (x y z) :precision binary64 (* x 4.16438922228))
double code(double x, double y, double z) {
return x * 4.16438922228;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = x * 4.16438922228d0
end function
public static double code(double x, double y, double z) {
return x * 4.16438922228;
}
def code(x, y, z): return x * 4.16438922228
function code(x, y, z) return Float64(x * 4.16438922228) end
function tmp = code(x, y, z) tmp = x * 4.16438922228; end
code[x_, y_, z_] := N[(x * 4.16438922228), $MachinePrecision]
\begin{array}{l}
\\
x \cdot 4.16438922228
\end{array}
Initial program 55.9%
*-commutative55.9%
associate-*r/58.7%
*-commutative58.7%
fma-def58.7%
*-commutative58.7%
fma-def58.7%
*-commutative58.7%
fma-def58.7%
fma-def58.7%
Simplified58.7%
fma-def58.7%
flip3-+58.7%
metadata-eval58.7%
metadata-eval58.7%
Applied egg-rr58.7%
cube-prod58.7%
metadata-eval58.7%
swap-sqr58.7%
metadata-eval58.7%
associate-*l*58.7%
metadata-eval58.7%
Simplified58.7%
Taylor expanded in x around inf 47.3%
*-commutative47.3%
Simplified47.3%
Final simplification47.3%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (- (+ (/ y (* x x)) (* 4.16438922228 x)) 110.1139242984811)))
(if (< x -3.326128725870005e+62)
t_0
(if (< x 9.429991714554673e+55)
(*
(/ (- x 2.0) 1.0)
(/
(+
(*
(+
(* (+ (* (+ (* x 4.16438922228) 78.6994924154) x) 137.519416416) x)
y)
x)
z)
(+
(*
(+
(+ (* 263.505074721 x) (+ (* 43.3400022514 (* x x)) (* x (* x x))))
313.399215894)
x)
47.066876606)))
t_0))))
double code(double x, double y, double z) {
double t_0 = ((y / (x * x)) + (4.16438922228 * x)) - 110.1139242984811;
double tmp;
if (x < -3.326128725870005e+62) {
tmp = t_0;
} else if (x < 9.429991714554673e+55) {
tmp = ((x - 2.0) / 1.0) * (((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z) / (((((263.505074721 * x) + ((43.3400022514 * (x * x)) + (x * (x * x)))) + 313.399215894) * x) + 47.066876606));
} else {
tmp = t_0;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = ((y / (x * x)) + (4.16438922228d0 * x)) - 110.1139242984811d0
if (x < (-3.326128725870005d+62)) then
tmp = t_0
else if (x < 9.429991714554673d+55) then
tmp = ((x - 2.0d0) / 1.0d0) * (((((((((x * 4.16438922228d0) + 78.6994924154d0) * x) + 137.519416416d0) * x) + y) * x) + z) / (((((263.505074721d0 * x) + ((43.3400022514d0 * (x * x)) + (x * (x * x)))) + 313.399215894d0) * x) + 47.066876606d0))
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = ((y / (x * x)) + (4.16438922228 * x)) - 110.1139242984811;
double tmp;
if (x < -3.326128725870005e+62) {
tmp = t_0;
} else if (x < 9.429991714554673e+55) {
tmp = ((x - 2.0) / 1.0) * (((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z) / (((((263.505074721 * x) + ((43.3400022514 * (x * x)) + (x * (x * x)))) + 313.399215894) * x) + 47.066876606));
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = ((y / (x * x)) + (4.16438922228 * x)) - 110.1139242984811 tmp = 0 if x < -3.326128725870005e+62: tmp = t_0 elif x < 9.429991714554673e+55: tmp = ((x - 2.0) / 1.0) * (((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z) / (((((263.505074721 * x) + ((43.3400022514 * (x * x)) + (x * (x * x)))) + 313.399215894) * x) + 47.066876606)) else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(Float64(Float64(y / Float64(x * x)) + Float64(4.16438922228 * x)) - 110.1139242984811) tmp = 0.0 if (x < -3.326128725870005e+62) tmp = t_0; elseif (x < 9.429991714554673e+55) tmp = Float64(Float64(Float64(x - 2.0) / 1.0) * Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z) / Float64(Float64(Float64(Float64(Float64(263.505074721 * x) + Float64(Float64(43.3400022514 * Float64(x * x)) + Float64(x * Float64(x * x)))) + 313.399215894) * x) + 47.066876606))); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = ((y / (x * x)) + (4.16438922228 * x)) - 110.1139242984811; tmp = 0.0; if (x < -3.326128725870005e+62) tmp = t_0; elseif (x < 9.429991714554673e+55) tmp = ((x - 2.0) / 1.0) * (((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z) / (((((263.505074721 * x) + ((43.3400022514 * (x * x)) + (x * (x * x)))) + 313.399215894) * x) + 47.066876606)); else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(N[(y / N[(x * x), $MachinePrecision]), $MachinePrecision] + N[(4.16438922228 * x), $MachinePrecision]), $MachinePrecision] - 110.1139242984811), $MachinePrecision]}, If[Less[x, -3.326128725870005e+62], t$95$0, If[Less[x, 9.429991714554673e+55], N[(N[(N[(x - 2.0), $MachinePrecision] / 1.0), $MachinePrecision] * N[(N[(N[(N[(N[(N[(N[(N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision] * x), $MachinePrecision] + 137.519416416), $MachinePrecision] * x), $MachinePrecision] + y), $MachinePrecision] * x), $MachinePrecision] + z), $MachinePrecision] / N[(N[(N[(N[(N[(263.505074721 * x), $MachinePrecision] + N[(N[(43.3400022514 * N[(x * x), $MachinePrecision]), $MachinePrecision] + N[(x * N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision] * x), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$0]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \left(\frac{y}{x \cdot x} + 4.16438922228 \cdot x\right) - 110.1139242984811\\
\mathbf{if}\;x < -3.326128725870005 \cdot 10^{+62}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;x < 9.429991714554673 \cdot 10^{+55}:\\
\;\;\;\;\frac{x - 2}{1} \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(263.505074721 \cdot x + \left(43.3400022514 \cdot \left(x \cdot x\right) + x \cdot \left(x \cdot x\right)\right)\right) + 313.399215894\right) \cdot x + 47.066876606}\\
\mathbf{else}:\\
\;\;\;\;t_0\\
\end{array}
\end{array}
herbie shell --seed 2023238
(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)))