
(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 18 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
(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))
INFINITY)
(/
(fma x x -4.0)
(*
(/
(fma
x
(fma x (fma x (+ x 43.3400022514) 263.505074721) 313.399215894)
47.066876606)
(fma
x
(fma x (fma x (fma x 4.16438922228 78.6994924154) 137.519416416) y)
z))
(+ x 2.0)))
(+
70.37071397084
(+
(- (* x 4.16438922228) (/ (- 1580.1551497719765 y) (pow x 2.0)))
(/ -19.8795684148 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)) <= ((double) INFINITY)) {
tmp = fma(x, x, -4.0) / ((fma(x, fma(x, fma(x, (x + 43.3400022514), 263.505074721), 313.399215894), 47.066876606) / fma(x, fma(x, fma(x, fma(x, 4.16438922228, 78.6994924154), 137.519416416), y), z)) * (x + 2.0));
} else {
tmp = 70.37071397084 + (((x * 4.16438922228) - ((1580.1551497719765 - y) / pow(x, 2.0))) + (-19.8795684148 / 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)) <= Inf) tmp = Float64(fma(x, x, -4.0) / Float64(Float64(fma(x, fma(x, fma(x, Float64(x + 43.3400022514), 263.505074721), 313.399215894), 47.066876606) / fma(x, fma(x, fma(x, fma(x, 4.16438922228, 78.6994924154), 137.519416416), y), z)) * Float64(x + 2.0))); else tmp = Float64(70.37071397084 + Float64(Float64(Float64(x * 4.16438922228) - Float64(Float64(1580.1551497719765 - y) / (x ^ 2.0))) + Float64(-19.8795684148 / 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], Infinity], N[(N[(x * x + -4.0), $MachinePrecision] / N[(N[(N[(x * N[(x * N[(x * N[(x + 43.3400022514), $MachinePrecision] + 263.505074721), $MachinePrecision] + 313.399215894), $MachinePrecision] + 47.066876606), $MachinePrecision] / N[(x * N[(x * N[(x * N[(x * 4.16438922228 + 78.6994924154), $MachinePrecision] + 137.519416416), $MachinePrecision] + y), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] * N[(x + 2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(70.37071397084 + N[(N[(N[(x * 4.16438922228), $MachinePrecision] - N[(N[(1580.1551497719765 - y), $MachinePrecision] / N[Power[x, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(-19.8795684148 / x), $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 \infty:\\
\;\;\;\;\frac{\mathsf{fma}\left(x, x, -4\right)}{\frac{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), 137.519416416\right), y\right), z\right)} \cdot \left(x + 2\right)}\\
\mathbf{else}:\\
\;\;\;\;70.37071397084 + \left(\left(x \cdot 4.16438922228 - \frac{1580.1551497719765 - y}{{x}^{2}}\right) + \frac{-19.8795684148}{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)) < +inf.0Initial program 97.7%
Simplified98.6%
Applied egg-rr98.7%
*-commutative98.7%
*-rgt-identity98.7%
Simplified98.7%
if +inf.0 < (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) Initial program 0.0%
Taylor expanded in x around inf 0.0%
Taylor expanded in x around -inf 99.2%
associate--l+99.2%
sub-neg99.2%
+-commutative99.2%
mul-1-neg99.2%
unsub-neg99.2%
*-commutative99.2%
mul-1-neg99.2%
unsub-neg99.2%
associate-*r/99.2%
metadata-eval99.2%
distribute-neg-frac99.2%
metadata-eval99.2%
Simplified99.2%
Final simplification98.9%
(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))
INFINITY)
(*
(fma
x
(fma x (fma x (fma x 4.16438922228 78.6994924154) 137.519416416) y)
z)
(/
(+ x -2.0)
(fma
x
(fma x (fma x (+ x 43.3400022514) 263.505074721) 313.399215894)
47.066876606)))
(+
70.37071397084
(+
(- (* x 4.16438922228) (/ (- 1580.1551497719765 y) (pow x 2.0)))
(/ -19.8795684148 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)) <= ((double) INFINITY)) {
tmp = fma(x, fma(x, fma(x, fma(x, 4.16438922228, 78.6994924154), 137.519416416), y), z) * ((x + -2.0) / fma(x, fma(x, fma(x, (x + 43.3400022514), 263.505074721), 313.399215894), 47.066876606));
} else {
tmp = 70.37071397084 + (((x * 4.16438922228) - ((1580.1551497719765 - y) / pow(x, 2.0))) + (-19.8795684148 / 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)) <= Inf) tmp = Float64(fma(x, fma(x, fma(x, fma(x, 4.16438922228, 78.6994924154), 137.519416416), y), z) * Float64(Float64(x + -2.0) / fma(x, fma(x, fma(x, Float64(x + 43.3400022514), 263.505074721), 313.399215894), 47.066876606))); else tmp = Float64(70.37071397084 + Float64(Float64(Float64(x * 4.16438922228) - Float64(Float64(1580.1551497719765 - y) / (x ^ 2.0))) + Float64(-19.8795684148 / 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], Infinity], N[(N[(x * N[(x * N[(x * N[(x * 4.16438922228 + 78.6994924154), $MachinePrecision] + 137.519416416), $MachinePrecision] + y), $MachinePrecision] + z), $MachinePrecision] * N[(N[(x + -2.0), $MachinePrecision] / N[(x * N[(x * N[(x * N[(x + 43.3400022514), $MachinePrecision] + 263.505074721), $MachinePrecision] + 313.399215894), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(70.37071397084 + N[(N[(N[(x * 4.16438922228), $MachinePrecision] - N[(N[(1580.1551497719765 - y), $MachinePrecision] / N[Power[x, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(-19.8795684148 / x), $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 \infty:\\
\;\;\;\;\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) \cdot \frac{x + -2}{\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}:\\
\;\;\;\;70.37071397084 + \left(\left(x \cdot 4.16438922228 - \frac{1580.1551497719765 - y}{{x}^{2}}\right) + \frac{-19.8795684148}{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)) < +inf.0Initial program 97.7%
Simplified98.6%
if +inf.0 < (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) Initial program 0.0%
Taylor expanded in x around inf 0.0%
Taylor expanded in x around -inf 99.2%
associate--l+99.2%
sub-neg99.2%
+-commutative99.2%
mul-1-neg99.2%
unsub-neg99.2%
*-commutative99.2%
mul-1-neg99.2%
unsub-neg99.2%
associate-*r/99.2%
metadata-eval99.2%
distribute-neg-frac99.2%
metadata-eval99.2%
Simplified99.2%
Final simplification98.9%
(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))
INFINITY)
(/
-1.0
(/
(/
(-
-47.066876606
(* x (fma x (fma x (+ x 43.3400022514) 263.505074721) 313.399215894)))
(fma
x
(fma x (fma x (fma x 4.16438922228 78.6994924154) 137.519416416) y)
z))
(+ x -2.0)))
(+
70.37071397084
(+
(- (* x 4.16438922228) (/ (- 1580.1551497719765 y) (pow x 2.0)))
(/ -19.8795684148 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)) <= ((double) INFINITY)) {
tmp = -1.0 / (((-47.066876606 - (x * fma(x, fma(x, (x + 43.3400022514), 263.505074721), 313.399215894))) / fma(x, fma(x, fma(x, fma(x, 4.16438922228, 78.6994924154), 137.519416416), y), z)) / (x + -2.0));
} else {
tmp = 70.37071397084 + (((x * 4.16438922228) - ((1580.1551497719765 - y) / pow(x, 2.0))) + (-19.8795684148 / 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)) <= Inf) tmp = Float64(-1.0 / Float64(Float64(Float64(-47.066876606 - Float64(x * fma(x, fma(x, Float64(x + 43.3400022514), 263.505074721), 313.399215894))) / fma(x, fma(x, fma(x, fma(x, 4.16438922228, 78.6994924154), 137.519416416), y), z)) / Float64(x + -2.0))); else tmp = Float64(70.37071397084 + Float64(Float64(Float64(x * 4.16438922228) - Float64(Float64(1580.1551497719765 - y) / (x ^ 2.0))) + Float64(-19.8795684148 / 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], Infinity], N[(-1.0 / N[(N[(N[(-47.066876606 - N[(x * N[(x * N[(x * N[(x + 43.3400022514), $MachinePrecision] + 263.505074721), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(x * N[(x * N[(x * N[(x * 4.16438922228 + 78.6994924154), $MachinePrecision] + 137.519416416), $MachinePrecision] + y), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / N[(x + -2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(70.37071397084 + N[(N[(N[(x * 4.16438922228), $MachinePrecision] - N[(N[(1580.1551497719765 - y), $MachinePrecision] / N[Power[x, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(-19.8795684148 / x), $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 \infty:\\
\;\;\;\;\frac{-1}{\frac{\frac{-47.066876606 - x \cdot \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right)}{\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)}}{x + -2}}\\
\mathbf{else}:\\
\;\;\;\;70.37071397084 + \left(\left(x \cdot 4.16438922228 - \frac{1580.1551497719765 - y}{{x}^{2}}\right) + \frac{-19.8795684148}{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)) < +inf.0Initial program 97.7%
Simplified98.6%
Applied egg-rr97.5%
Simplified98.6%
if +inf.0 < (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) Initial program 0.0%
Taylor expanded in x around inf 0.0%
Taylor expanded in x around -inf 99.2%
associate--l+99.2%
sub-neg99.2%
+-commutative99.2%
mul-1-neg99.2%
unsub-neg99.2%
*-commutative99.2%
mul-1-neg99.2%
unsub-neg99.2%
associate-*r/99.2%
metadata-eval99.2%
distribute-neg-frac99.2%
metadata-eval99.2%
Simplified99.2%
Final simplification98.9%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(*
(- x 2.0)
(+
(*
x
(+
(*
x
(+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))
y))
z))))
(if (<=
(/
t_0
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))
1e+302)
(/
t_0
(+
47.066876606
(*
x
(+ 313.399215894 (* x (fma x (+ x 43.3400022514) 263.505074721))))))
(+
70.37071397084
(+
(- (* x 4.16438922228) (/ (- 1580.1551497719765 y) (pow x 2.0)))
(/ -19.8795684148 x))))))
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);
double tmp;
if ((t_0 / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) <= 1e+302) {
tmp = t_0 / (47.066876606 + (x * (313.399215894 + (x * fma(x, (x + 43.3400022514), 263.505074721)))));
} else {
tmp = 70.37071397084 + (((x * 4.16438922228) - ((1580.1551497719765 - y) / pow(x, 2.0))) + (-19.8795684148 / x));
}
return tmp;
}
function code(x, y, z) t_0 = 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)) tmp = 0.0 if (Float64(t_0 / Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) <= 1e+302) tmp = Float64(t_0 / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * fma(x, Float64(x + 43.3400022514), 263.505074721)))))); else tmp = Float64(70.37071397084 + Float64(Float64(Float64(x * 4.16438922228) - Float64(Float64(1580.1551497719765 - y) / (x ^ 2.0))) + Float64(-19.8795684148 / x))); end return tmp end
code[x_, y_, z_] := Block[{t$95$0 = 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]}, If[LessEqual[N[(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]), $MachinePrecision], 1e+302], N[(t$95$0 / N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * N[(x * N[(x + 43.3400022514), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(70.37071397084 + N[(N[(N[(x * 4.16438922228), $MachinePrecision] - N[(N[(1580.1551497719765 - y), $MachinePrecision] / N[Power[x, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(-19.8795684148 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \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)\\
\mathbf{if}\;\frac{t\_0}{x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606} \leq 10^{+302}:\\
\;\;\;\;\frac{t\_0}{47.066876606 + x \cdot \left(313.399215894 + x \cdot \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;70.37071397084 + \left(\left(x \cdot 4.16438922228 - \frac{1580.1551497719765 - y}{{x}^{2}}\right) + \frac{-19.8795684148}{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)) < 1.0000000000000001e302Initial program 98.9%
Taylor expanded in x around 0 99.0%
+-commutative99.0%
associate-+l+99.0%
*-commutative99.0%
cube-mult98.9%
unpow298.9%
distribute-rgt-out98.9%
unpow298.9%
associate-*r*98.9%
+-commutative98.9%
distribute-lft-in98.9%
+-commutative98.9%
+-commutative98.9%
fma-udef98.9%
Simplified98.9%
if 1.0000000000000001e302 < (/.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.1%
Taylor expanded in x around inf 0.1%
Taylor expanded in x around -inf 98.2%
associate--l+98.2%
sub-neg98.2%
+-commutative98.2%
mul-1-neg98.2%
unsub-neg98.2%
*-commutative98.2%
mul-1-neg98.2%
unsub-neg98.2%
associate-*r/98.2%
metadata-eval98.2%
distribute-neg-frac98.2%
metadata-eval98.2%
Simplified98.2%
Final simplification98.6%
(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 (<= t_0 1e+302)
t_0
(+
70.37071397084
(+
(- (* x 4.16438922228) (/ (- 1580.1551497719765 y) (pow x 2.0)))
(/ -19.8795684148 x))))))
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 <= 1e+302) {
tmp = t_0;
} else {
tmp = 70.37071397084 + (((x * 4.16438922228) - ((1580.1551497719765 - y) / pow(x, 2.0))) + (-19.8795684148 / x));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = ((x - 2.0d0) * ((x * ((x * ((x * ((x * 4.16438922228d0) + 78.6994924154d0)) + 137.519416416d0)) + y)) + z)) / ((x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0)
if (t_0 <= 1d+302) then
tmp = t_0
else
tmp = 70.37071397084d0 + (((x * 4.16438922228d0) - ((1580.1551497719765d0 - y) / (x ** 2.0d0))) + ((-19.8795684148d0) / x))
end if
code = tmp
end function
public static 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 <= 1e+302) {
tmp = t_0;
} else {
tmp = 70.37071397084 + (((x * 4.16438922228) - ((1580.1551497719765 - y) / Math.pow(x, 2.0))) + (-19.8795684148 / x));
}
return tmp;
}
def code(x, y, z): 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) tmp = 0 if t_0 <= 1e+302: tmp = t_0 else: tmp = 70.37071397084 + (((x * 4.16438922228) - ((1580.1551497719765 - y) / math.pow(x, 2.0))) + (-19.8795684148 / x)) 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 <= 1e+302) tmp = t_0; else tmp = Float64(70.37071397084 + Float64(Float64(Float64(x * 4.16438922228) - Float64(Float64(1580.1551497719765 - y) / (x ^ 2.0))) + Float64(-19.8795684148 / x))); end return tmp end
function tmp_2 = code(x, y, z) 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); tmp = 0.0; if (t_0 <= 1e+302) tmp = t_0; else tmp = 70.37071397084 + (((x * 4.16438922228) - ((1580.1551497719765 - y) / (x ^ 2.0))) + (-19.8795684148 / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(x * N[(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[LessEqual[t$95$0, 1e+302], t$95$0, N[(70.37071397084 + N[(N[(N[(x * 4.16438922228), $MachinePrecision] - N[(N[(1580.1551497719765 - y), $MachinePrecision] / N[Power[x, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(-19.8795684148 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\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 10^{+302}:\\
\;\;\;\;t\_0\\
\mathbf{else}:\\
\;\;\;\;70.37071397084 + \left(\left(x \cdot 4.16438922228 - \frac{1580.1551497719765 - y}{{x}^{2}}\right) + \frac{-19.8795684148}{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)) < 1.0000000000000001e302Initial program 98.9%
if 1.0000000000000001e302 < (/.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.1%
Taylor expanded in x around inf 0.1%
Taylor expanded in x around -inf 98.2%
associate--l+98.2%
sub-neg98.2%
+-commutative98.2%
mul-1-neg98.2%
unsub-neg98.2%
*-commutative98.2%
mul-1-neg98.2%
unsub-neg98.2%
associate-*r/98.2%
metadata-eval98.2%
distribute-neg-frac98.2%
metadata-eval98.2%
Simplified98.2%
Final simplification98.6%
(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 (<= t_0 1e+302) t_0 (/ (+ x -2.0) 0.24013125253755718))))
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 <= 1e+302) {
tmp = t_0;
} else {
tmp = (x + -2.0) / 0.24013125253755718;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = ((x - 2.0d0) * ((x * ((x * ((x * ((x * 4.16438922228d0) + 78.6994924154d0)) + 137.519416416d0)) + y)) + z)) / ((x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0)
if (t_0 <= 1d+302) then
tmp = t_0
else
tmp = (x + (-2.0d0)) / 0.24013125253755718d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = ((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 <= 1e+302) {
tmp = t_0;
} else {
tmp = (x + -2.0) / 0.24013125253755718;
}
return tmp;
}
def code(x, y, z): 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) tmp = 0 if t_0 <= 1e+302: tmp = t_0 else: tmp = (x + -2.0) / 0.24013125253755718 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 <= 1e+302) tmp = t_0; else tmp = Float64(Float64(x + -2.0) / 0.24013125253755718); end return tmp end
function tmp_2 = code(x, y, z) t_0 = ((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); tmp = 0.0; if (t_0 <= 1e+302) tmp = t_0; else tmp = (x + -2.0) / 0.24013125253755718; end tmp_2 = 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[LessEqual[t$95$0, 1e+302], t$95$0, N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision]]]
\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 10^{+302}:\\
\;\;\;\;t\_0\\
\mathbf{else}:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718}\\
\end{array}
\end{array}
if (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) < 1.0000000000000001e302Initial program 98.9%
if 1.0000000000000001e302 < (/.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.1%
associate-/l*1.0%
sub-neg1.0%
metadata-eval1.0%
fma-def1.0%
fma-def1.0%
fma-def1.0%
fma-def1.0%
fma-def1.0%
fma-def1.0%
fma-def1.0%
Simplified1.0%
Taylor expanded in x around inf 96.4%
Final simplification97.9%
(FPCore (x y z)
:precision binary64
(if (or (<= x -5.6e+26) (not (<= x 9e+25)))
(/ (+ x -2.0) 0.24013125253755718)
(/
(* (- x 2.0) (+ z (* x (+ y (* x 137.519416416)))))
(+
(* x (+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -5.6e+26) || !(x <= 9e+25)) {
tmp = (x + -2.0) / 0.24013125253755718;
} else {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606);
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((x <= (-5.6d+26)) .or. (.not. (x <= 9d+25))) then
tmp = (x + (-2.0d0)) / 0.24013125253755718d0
else
tmp = ((x - 2.0d0) * (z + (x * (y + (x * 137.519416416d0))))) / ((x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -5.6e+26) || !(x <= 9e+25)) {
tmp = (x + -2.0) / 0.24013125253755718;
} else {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606);
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -5.6e+26) or not (x <= 9e+25): tmp = (x + -2.0) / 0.24013125253755718 else: tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -5.6e+26) || !(x <= 9e+25)) tmp = Float64(Float64(x + -2.0) / 0.24013125253755718); else 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)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -5.6e+26) || ~((x <= 9e+25))) tmp = (x + -2.0) / 0.24013125253755718; else tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -5.6e+26], N[Not[LessEqual[x, 9e+25]], $MachinePrecision]], N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision], 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]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -5.6 \cdot 10^{+26} \lor \neg \left(x \leq 9 \cdot 10^{+25}\right):\\
\;\;\;\;\frac{x + -2}{0.24013125253755718}\\
\mathbf{else}:\\
\;\;\;\;\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}\\
\end{array}
\end{array}
if x < -5.59999999999999999e26 or 9.0000000000000006e25 < x Initial program 11.5%
associate-/l*11.5%
sub-neg11.5%
metadata-eval11.5%
fma-def11.5%
fma-def11.5%
fma-def11.5%
fma-def11.5%
fma-def11.5%
fma-def11.5%
fma-def11.5%
Simplified11.5%
Taylor expanded in x around inf 95.7%
if -5.59999999999999999e26 < x < 9.0000000000000006e25Initial program 98.3%
Taylor expanded in x around 0 94.9%
*-commutative94.9%
Simplified94.9%
Final simplification95.3%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (* -0.0424927283095952 (* x y))))
(if (<= x -3.4)
(/ (+ x -2.0) 0.24013125253755718)
(if (<= x 7.5e-156)
(* z -0.0424927283095952)
(if (<= x 2.7e-149)
t_0
(if (<= x 2.3e-85)
(* z -0.0424927283095952)
(if (<= x 1.35e-65)
t_0
(if (<= x 9.1e-10)
(* z -0.0424927283095952)
(* x (- 4.16438922228 (/ 110.1139242984811 x)))))))))))
double code(double x, double y, double z) {
double t_0 = -0.0424927283095952 * (x * y);
double tmp;
if (x <= -3.4) {
tmp = (x + -2.0) / 0.24013125253755718;
} else if (x <= 7.5e-156) {
tmp = z * -0.0424927283095952;
} else if (x <= 2.7e-149) {
tmp = t_0;
} else if (x <= 2.3e-85) {
tmp = z * -0.0424927283095952;
} else if (x <= 1.35e-65) {
tmp = t_0;
} else if (x <= 9.1e-10) {
tmp = z * -0.0424927283095952;
} else {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = (-0.0424927283095952d0) * (x * y)
if (x <= (-3.4d0)) then
tmp = (x + (-2.0d0)) / 0.24013125253755718d0
else if (x <= 7.5d-156) then
tmp = z * (-0.0424927283095952d0)
else if (x <= 2.7d-149) then
tmp = t_0
else if (x <= 2.3d-85) then
tmp = z * (-0.0424927283095952d0)
else if (x <= 1.35d-65) then
tmp = t_0
else if (x <= 9.1d-10) then
tmp = z * (-0.0424927283095952d0)
else
tmp = x * (4.16438922228d0 - (110.1139242984811d0 / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = -0.0424927283095952 * (x * y);
double tmp;
if (x <= -3.4) {
tmp = (x + -2.0) / 0.24013125253755718;
} else if (x <= 7.5e-156) {
tmp = z * -0.0424927283095952;
} else if (x <= 2.7e-149) {
tmp = t_0;
} else if (x <= 2.3e-85) {
tmp = z * -0.0424927283095952;
} else if (x <= 1.35e-65) {
tmp = t_0;
} else if (x <= 9.1e-10) {
tmp = z * -0.0424927283095952;
} else {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
}
return tmp;
}
def code(x, y, z): t_0 = -0.0424927283095952 * (x * y) tmp = 0 if x <= -3.4: tmp = (x + -2.0) / 0.24013125253755718 elif x <= 7.5e-156: tmp = z * -0.0424927283095952 elif x <= 2.7e-149: tmp = t_0 elif x <= 2.3e-85: tmp = z * -0.0424927283095952 elif x <= 1.35e-65: tmp = t_0 elif x <= 9.1e-10: tmp = z * -0.0424927283095952 else: tmp = x * (4.16438922228 - (110.1139242984811 / x)) return tmp
function code(x, y, z) t_0 = Float64(-0.0424927283095952 * Float64(x * y)) tmp = 0.0 if (x <= -3.4) tmp = Float64(Float64(x + -2.0) / 0.24013125253755718); elseif (x <= 7.5e-156) tmp = Float64(z * -0.0424927283095952); elseif (x <= 2.7e-149) tmp = t_0; elseif (x <= 2.3e-85) tmp = Float64(z * -0.0424927283095952); elseif (x <= 1.35e-65) tmp = t_0; elseif (x <= 9.1e-10) tmp = Float64(z * -0.0424927283095952); else tmp = Float64(x * Float64(4.16438922228 - Float64(110.1139242984811 / x))); end return tmp end
function tmp_2 = code(x, y, z) t_0 = -0.0424927283095952 * (x * y); tmp = 0.0; if (x <= -3.4) tmp = (x + -2.0) / 0.24013125253755718; elseif (x <= 7.5e-156) tmp = z * -0.0424927283095952; elseif (x <= 2.7e-149) tmp = t_0; elseif (x <= 2.3e-85) tmp = z * -0.0424927283095952; elseif (x <= 1.35e-65) tmp = t_0; elseif (x <= 9.1e-10) tmp = z * -0.0424927283095952; else tmp = x * (4.16438922228 - (110.1139242984811 / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(-0.0424927283095952 * N[(x * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -3.4], N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision], If[LessEqual[x, 7.5e-156], N[(z * -0.0424927283095952), $MachinePrecision], If[LessEqual[x, 2.7e-149], t$95$0, If[LessEqual[x, 2.3e-85], N[(z * -0.0424927283095952), $MachinePrecision], If[LessEqual[x, 1.35e-65], t$95$0, If[LessEqual[x, 9.1e-10], N[(z * -0.0424927283095952), $MachinePrecision], N[(x * N[(4.16438922228 - N[(110.1139242984811 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := -0.0424927283095952 \cdot \left(x \cdot y\right)\\
\mathbf{if}\;x \leq -3.4:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718}\\
\mathbf{elif}\;x \leq 7.5 \cdot 10^{-156}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{elif}\;x \leq 2.7 \cdot 10^{-149}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 2.3 \cdot 10^{-85}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{elif}\;x \leq 1.35 \cdot 10^{-65}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 9.1 \cdot 10^{-10}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)\\
\end{array}
\end{array}
if x < -3.39999999999999991Initial program 16.9%
associate-/l*16.9%
sub-neg16.9%
metadata-eval16.9%
fma-def16.9%
fma-def16.9%
fma-def16.9%
fma-def16.9%
fma-def16.9%
fma-def16.9%
fma-def16.9%
Simplified16.9%
Taylor expanded in x around inf 91.3%
if -3.39999999999999991 < x < 7.49999999999999959e-156 or 2.70000000000000014e-149 < x < 2.3e-85 or 1.3499999999999999e-65 < x < 9.0999999999999996e-10Initial program 99.7%
Simplified99.3%
Taylor expanded in x around 0 73.0%
if 7.49999999999999959e-156 < x < 2.70000000000000014e-149 or 2.3e-85 < x < 1.3499999999999999e-65Initial program 99.4%
associate-/l*99.1%
sub-neg99.1%
metadata-eval99.1%
fma-def99.1%
fma-def99.1%
fma-def99.1%
fma-def99.1%
fma-def99.1%
fma-def99.1%
fma-def99.1%
Simplified99.1%
Taylor expanded in z around 0 93.5%
Taylor expanded in x around 0 94.1%
if 9.0999999999999996e-10 < x Initial program 22.6%
Simplified25.6%
Taylor expanded in x around inf 22.5%
associate-*r/22.5%
metadata-eval22.5%
Simplified22.5%
Taylor expanded in z around 0 28.0%
Taylor expanded in x around inf 84.6%
associate-*r/84.6%
metadata-eval84.6%
Simplified84.6%
Final simplification81.3%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (* -0.0424927283095952 (* x y)))
(t_1 (/ (* (- x 2.0) z) 47.066876606)))
(if (<= x -0.3)
(/ (+ x -2.0) 0.24013125253755718)
(if (<= x 5.5e-156)
t_1
(if (<= x 2.7e-149)
t_0
(if (<= x 6e-86)
t_1
(if (<= x 3.2e-63)
t_0
(if (<= x 9.1e-10)
t_1
(* x (- 4.16438922228 (/ 110.1139242984811 x)))))))))))
double code(double x, double y, double z) {
double t_0 = -0.0424927283095952 * (x * y);
double t_1 = ((x - 2.0) * z) / 47.066876606;
double tmp;
if (x <= -0.3) {
tmp = (x + -2.0) / 0.24013125253755718;
} else if (x <= 5.5e-156) {
tmp = t_1;
} else if (x <= 2.7e-149) {
tmp = t_0;
} else if (x <= 6e-86) {
tmp = t_1;
} else if (x <= 3.2e-63) {
tmp = t_0;
} else if (x <= 9.1e-10) {
tmp = t_1;
} else {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: t_1
real(8) :: tmp
t_0 = (-0.0424927283095952d0) * (x * y)
t_1 = ((x - 2.0d0) * z) / 47.066876606d0
if (x <= (-0.3d0)) then
tmp = (x + (-2.0d0)) / 0.24013125253755718d0
else if (x <= 5.5d-156) then
tmp = t_1
else if (x <= 2.7d-149) then
tmp = t_0
else if (x <= 6d-86) then
tmp = t_1
else if (x <= 3.2d-63) then
tmp = t_0
else if (x <= 9.1d-10) then
tmp = t_1
else
tmp = x * (4.16438922228d0 - (110.1139242984811d0 / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = -0.0424927283095952 * (x * y);
double t_1 = ((x - 2.0) * z) / 47.066876606;
double tmp;
if (x <= -0.3) {
tmp = (x + -2.0) / 0.24013125253755718;
} else if (x <= 5.5e-156) {
tmp = t_1;
} else if (x <= 2.7e-149) {
tmp = t_0;
} else if (x <= 6e-86) {
tmp = t_1;
} else if (x <= 3.2e-63) {
tmp = t_0;
} else if (x <= 9.1e-10) {
tmp = t_1;
} else {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
}
return tmp;
}
def code(x, y, z): t_0 = -0.0424927283095952 * (x * y) t_1 = ((x - 2.0) * z) / 47.066876606 tmp = 0 if x <= -0.3: tmp = (x + -2.0) / 0.24013125253755718 elif x <= 5.5e-156: tmp = t_1 elif x <= 2.7e-149: tmp = t_0 elif x <= 6e-86: tmp = t_1 elif x <= 3.2e-63: tmp = t_0 elif x <= 9.1e-10: tmp = t_1 else: tmp = x * (4.16438922228 - (110.1139242984811 / x)) return tmp
function code(x, y, z) t_0 = Float64(-0.0424927283095952 * Float64(x * y)) t_1 = Float64(Float64(Float64(x - 2.0) * z) / 47.066876606) tmp = 0.0 if (x <= -0.3) tmp = Float64(Float64(x + -2.0) / 0.24013125253755718); elseif (x <= 5.5e-156) tmp = t_1; elseif (x <= 2.7e-149) tmp = t_0; elseif (x <= 6e-86) tmp = t_1; elseif (x <= 3.2e-63) tmp = t_0; elseif (x <= 9.1e-10) tmp = t_1; else tmp = Float64(x * Float64(4.16438922228 - Float64(110.1139242984811 / x))); end return tmp end
function tmp_2 = code(x, y, z) t_0 = -0.0424927283095952 * (x * y); t_1 = ((x - 2.0) * z) / 47.066876606; tmp = 0.0; if (x <= -0.3) tmp = (x + -2.0) / 0.24013125253755718; elseif (x <= 5.5e-156) tmp = t_1; elseif (x <= 2.7e-149) tmp = t_0; elseif (x <= 6e-86) tmp = t_1; elseif (x <= 3.2e-63) tmp = t_0; elseif (x <= 9.1e-10) tmp = t_1; else tmp = x * (4.16438922228 - (110.1139242984811 / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(-0.0424927283095952 * N[(x * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(N[(N[(x - 2.0), $MachinePrecision] * z), $MachinePrecision] / 47.066876606), $MachinePrecision]}, If[LessEqual[x, -0.3], N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision], If[LessEqual[x, 5.5e-156], t$95$1, If[LessEqual[x, 2.7e-149], t$95$0, If[LessEqual[x, 6e-86], t$95$1, If[LessEqual[x, 3.2e-63], t$95$0, If[LessEqual[x, 9.1e-10], t$95$1, N[(x * N[(4.16438922228 - N[(110.1139242984811 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := -0.0424927283095952 \cdot \left(x \cdot y\right)\\
t_1 := \frac{\left(x - 2\right) \cdot z}{47.066876606}\\
\mathbf{if}\;x \leq -0.3:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718}\\
\mathbf{elif}\;x \leq 5.5 \cdot 10^{-156}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 2.7 \cdot 10^{-149}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 6 \cdot 10^{-86}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 3.2 \cdot 10^{-63}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 9.1 \cdot 10^{-10}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)\\
\end{array}
\end{array}
if x < -0.299999999999999989Initial program 16.9%
associate-/l*16.9%
sub-neg16.9%
metadata-eval16.9%
fma-def16.9%
fma-def16.9%
fma-def16.9%
fma-def16.9%
fma-def16.9%
fma-def16.9%
fma-def16.9%
Simplified16.9%
Taylor expanded in x around inf 91.3%
if -0.299999999999999989 < x < 5.4999999999999998e-156 or 2.70000000000000014e-149 < x < 6.0000000000000002e-86 or 3.19999999999999989e-63 < x < 9.0999999999999996e-10Initial program 99.7%
Simplified99.3%
Taylor expanded in z around inf 73.9%
Taylor expanded in x around 0 73.7%
*-commutative73.7%
Simplified73.7%
Taylor expanded in x around 0 73.3%
if 5.4999999999999998e-156 < x < 2.70000000000000014e-149 or 6.0000000000000002e-86 < x < 3.19999999999999989e-63Initial program 99.4%
associate-/l*99.1%
sub-neg99.1%
metadata-eval99.1%
fma-def99.1%
fma-def99.1%
fma-def99.1%
fma-def99.1%
fma-def99.1%
fma-def99.1%
fma-def99.1%
Simplified99.1%
Taylor expanded in z around 0 93.5%
Taylor expanded in x around 0 94.1%
if 9.0999999999999996e-10 < x Initial program 22.6%
Simplified25.6%
Taylor expanded in x around inf 22.5%
associate-*r/22.5%
metadata-eval22.5%
Simplified22.5%
Taylor expanded in z around 0 28.0%
Taylor expanded in x around inf 84.6%
associate-*r/84.6%
metadata-eval84.6%
Simplified84.6%
Final simplification81.4%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (* -0.0424927283095952 (* x y))))
(if (<= x -0.12)
(+ (* x 4.16438922228) 70.37071397084)
(if (<= x 7.5e-156)
(* z -0.0424927283095952)
(if (<= x 2.7e-149)
t_0
(if (<= x 2e-85)
(* z -0.0424927283095952)
(if (<= x 5.2e-64)
t_0
(if (<= x 9.1e-10)
(* z -0.0424927283095952)
(- (* x 4.16438922228) 110.1139242984811)))))))))
double code(double x, double y, double z) {
double t_0 = -0.0424927283095952 * (x * y);
double tmp;
if (x <= -0.12) {
tmp = (x * 4.16438922228) + 70.37071397084;
} else if (x <= 7.5e-156) {
tmp = z * -0.0424927283095952;
} else if (x <= 2.7e-149) {
tmp = t_0;
} else if (x <= 2e-85) {
tmp = z * -0.0424927283095952;
} else if (x <= 5.2e-64) {
tmp = t_0;
} else if (x <= 9.1e-10) {
tmp = z * -0.0424927283095952;
} else {
tmp = (x * 4.16438922228) - 110.1139242984811;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = (-0.0424927283095952d0) * (x * y)
if (x <= (-0.12d0)) then
tmp = (x * 4.16438922228d0) + 70.37071397084d0
else if (x <= 7.5d-156) then
tmp = z * (-0.0424927283095952d0)
else if (x <= 2.7d-149) then
tmp = t_0
else if (x <= 2d-85) then
tmp = z * (-0.0424927283095952d0)
else if (x <= 5.2d-64) then
tmp = t_0
else if (x <= 9.1d-10) then
tmp = z * (-0.0424927283095952d0)
else
tmp = (x * 4.16438922228d0) - 110.1139242984811d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = -0.0424927283095952 * (x * y);
double tmp;
if (x <= -0.12) {
tmp = (x * 4.16438922228) + 70.37071397084;
} else if (x <= 7.5e-156) {
tmp = z * -0.0424927283095952;
} else if (x <= 2.7e-149) {
tmp = t_0;
} else if (x <= 2e-85) {
tmp = z * -0.0424927283095952;
} else if (x <= 5.2e-64) {
tmp = t_0;
} else if (x <= 9.1e-10) {
tmp = z * -0.0424927283095952;
} else {
tmp = (x * 4.16438922228) - 110.1139242984811;
}
return tmp;
}
def code(x, y, z): t_0 = -0.0424927283095952 * (x * y) tmp = 0 if x <= -0.12: tmp = (x * 4.16438922228) + 70.37071397084 elif x <= 7.5e-156: tmp = z * -0.0424927283095952 elif x <= 2.7e-149: tmp = t_0 elif x <= 2e-85: tmp = z * -0.0424927283095952 elif x <= 5.2e-64: tmp = t_0 elif x <= 9.1e-10: tmp = z * -0.0424927283095952 else: tmp = (x * 4.16438922228) - 110.1139242984811 return tmp
function code(x, y, z) t_0 = Float64(-0.0424927283095952 * Float64(x * y)) tmp = 0.0 if (x <= -0.12) tmp = Float64(Float64(x * 4.16438922228) + 70.37071397084); elseif (x <= 7.5e-156) tmp = Float64(z * -0.0424927283095952); elseif (x <= 2.7e-149) tmp = t_0; elseif (x <= 2e-85) tmp = Float64(z * -0.0424927283095952); elseif (x <= 5.2e-64) tmp = t_0; elseif (x <= 9.1e-10) tmp = Float64(z * -0.0424927283095952); else tmp = Float64(Float64(x * 4.16438922228) - 110.1139242984811); end return tmp end
function tmp_2 = code(x, y, z) t_0 = -0.0424927283095952 * (x * y); tmp = 0.0; if (x <= -0.12) tmp = (x * 4.16438922228) + 70.37071397084; elseif (x <= 7.5e-156) tmp = z * -0.0424927283095952; elseif (x <= 2.7e-149) tmp = t_0; elseif (x <= 2e-85) tmp = z * -0.0424927283095952; elseif (x <= 5.2e-64) tmp = t_0; elseif (x <= 9.1e-10) tmp = z * -0.0424927283095952; else tmp = (x * 4.16438922228) - 110.1139242984811; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(-0.0424927283095952 * N[(x * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -0.12], N[(N[(x * 4.16438922228), $MachinePrecision] + 70.37071397084), $MachinePrecision], If[LessEqual[x, 7.5e-156], N[(z * -0.0424927283095952), $MachinePrecision], If[LessEqual[x, 2.7e-149], t$95$0, If[LessEqual[x, 2e-85], N[(z * -0.0424927283095952), $MachinePrecision], If[LessEqual[x, 5.2e-64], t$95$0, If[LessEqual[x, 9.1e-10], N[(z * -0.0424927283095952), $MachinePrecision], N[(N[(x * 4.16438922228), $MachinePrecision] - 110.1139242984811), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := -0.0424927283095952 \cdot \left(x \cdot y\right)\\
\mathbf{if}\;x \leq -0.12:\\
\;\;\;\;x \cdot 4.16438922228 + 70.37071397084\\
\mathbf{elif}\;x \leq 7.5 \cdot 10^{-156}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{elif}\;x \leq 2.7 \cdot 10^{-149}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 2 \cdot 10^{-85}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{elif}\;x \leq 5.2 \cdot 10^{-64}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 9.1 \cdot 10^{-10}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228 - 110.1139242984811\\
\end{array}
\end{array}
if x < -0.12Initial program 18.2%
Taylor expanded in x around inf 15.5%
Taylor expanded in x around inf 89.6%
+-commutative89.6%
*-commutative89.6%
Simplified89.6%
if -0.12 < x < 7.49999999999999959e-156 or 2.70000000000000014e-149 < x < 2e-85 or 5.2e-64 < x < 9.0999999999999996e-10Initial program 99.7%
Simplified99.3%
Taylor expanded in x around 0 73.6%
if 7.49999999999999959e-156 < x < 2.70000000000000014e-149 or 2e-85 < x < 5.2e-64Initial program 99.4%
associate-/l*99.1%
sub-neg99.1%
metadata-eval99.1%
fma-def99.1%
fma-def99.1%
fma-def99.1%
fma-def99.1%
fma-def99.1%
fma-def99.1%
fma-def99.1%
Simplified99.1%
Taylor expanded in z around 0 93.5%
Taylor expanded in x around 0 94.1%
if 9.0999999999999996e-10 < x Initial program 22.6%
Simplified25.6%
Taylor expanded in x around inf 84.5%
Final simplification81.2%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (* -0.0424927283095952 (* x y))))
(if (<= x -0.135)
(/ (+ x -2.0) 0.24013125253755718)
(if (<= x 7.5e-156)
(* z -0.0424927283095952)
(if (<= x 2.7e-149)
t_0
(if (<= x 2.3e-85)
(* z -0.0424927283095952)
(if (<= x 1.9e-66)
t_0
(if (<= x 9.1e-10)
(* z -0.0424927283095952)
(- (* x 4.16438922228) 110.1139242984811)))))))))
double code(double x, double y, double z) {
double t_0 = -0.0424927283095952 * (x * y);
double tmp;
if (x <= -0.135) {
tmp = (x + -2.0) / 0.24013125253755718;
} else if (x <= 7.5e-156) {
tmp = z * -0.0424927283095952;
} else if (x <= 2.7e-149) {
tmp = t_0;
} else if (x <= 2.3e-85) {
tmp = z * -0.0424927283095952;
} else if (x <= 1.9e-66) {
tmp = t_0;
} else if (x <= 9.1e-10) {
tmp = z * -0.0424927283095952;
} else {
tmp = (x * 4.16438922228) - 110.1139242984811;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = (-0.0424927283095952d0) * (x * y)
if (x <= (-0.135d0)) then
tmp = (x + (-2.0d0)) / 0.24013125253755718d0
else if (x <= 7.5d-156) then
tmp = z * (-0.0424927283095952d0)
else if (x <= 2.7d-149) then
tmp = t_0
else if (x <= 2.3d-85) then
tmp = z * (-0.0424927283095952d0)
else if (x <= 1.9d-66) then
tmp = t_0
else if (x <= 9.1d-10) then
tmp = z * (-0.0424927283095952d0)
else
tmp = (x * 4.16438922228d0) - 110.1139242984811d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = -0.0424927283095952 * (x * y);
double tmp;
if (x <= -0.135) {
tmp = (x + -2.0) / 0.24013125253755718;
} else if (x <= 7.5e-156) {
tmp = z * -0.0424927283095952;
} else if (x <= 2.7e-149) {
tmp = t_0;
} else if (x <= 2.3e-85) {
tmp = z * -0.0424927283095952;
} else if (x <= 1.9e-66) {
tmp = t_0;
} else if (x <= 9.1e-10) {
tmp = z * -0.0424927283095952;
} else {
tmp = (x * 4.16438922228) - 110.1139242984811;
}
return tmp;
}
def code(x, y, z): t_0 = -0.0424927283095952 * (x * y) tmp = 0 if x <= -0.135: tmp = (x + -2.0) / 0.24013125253755718 elif x <= 7.5e-156: tmp = z * -0.0424927283095952 elif x <= 2.7e-149: tmp = t_0 elif x <= 2.3e-85: tmp = z * -0.0424927283095952 elif x <= 1.9e-66: tmp = t_0 elif x <= 9.1e-10: tmp = z * -0.0424927283095952 else: tmp = (x * 4.16438922228) - 110.1139242984811 return tmp
function code(x, y, z) t_0 = Float64(-0.0424927283095952 * Float64(x * y)) tmp = 0.0 if (x <= -0.135) tmp = Float64(Float64(x + -2.0) / 0.24013125253755718); elseif (x <= 7.5e-156) tmp = Float64(z * -0.0424927283095952); elseif (x <= 2.7e-149) tmp = t_0; elseif (x <= 2.3e-85) tmp = Float64(z * -0.0424927283095952); elseif (x <= 1.9e-66) tmp = t_0; elseif (x <= 9.1e-10) tmp = Float64(z * -0.0424927283095952); else tmp = Float64(Float64(x * 4.16438922228) - 110.1139242984811); end return tmp end
function tmp_2 = code(x, y, z) t_0 = -0.0424927283095952 * (x * y); tmp = 0.0; if (x <= -0.135) tmp = (x + -2.0) / 0.24013125253755718; elseif (x <= 7.5e-156) tmp = z * -0.0424927283095952; elseif (x <= 2.7e-149) tmp = t_0; elseif (x <= 2.3e-85) tmp = z * -0.0424927283095952; elseif (x <= 1.9e-66) tmp = t_0; elseif (x <= 9.1e-10) tmp = z * -0.0424927283095952; else tmp = (x * 4.16438922228) - 110.1139242984811; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(-0.0424927283095952 * N[(x * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -0.135], N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision], If[LessEqual[x, 7.5e-156], N[(z * -0.0424927283095952), $MachinePrecision], If[LessEqual[x, 2.7e-149], t$95$0, If[LessEqual[x, 2.3e-85], N[(z * -0.0424927283095952), $MachinePrecision], If[LessEqual[x, 1.9e-66], t$95$0, If[LessEqual[x, 9.1e-10], N[(z * -0.0424927283095952), $MachinePrecision], N[(N[(x * 4.16438922228), $MachinePrecision] - 110.1139242984811), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := -0.0424927283095952 \cdot \left(x \cdot y\right)\\
\mathbf{if}\;x \leq -0.135:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718}\\
\mathbf{elif}\;x \leq 7.5 \cdot 10^{-156}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{elif}\;x \leq 2.7 \cdot 10^{-149}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 2.3 \cdot 10^{-85}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{elif}\;x \leq 1.9 \cdot 10^{-66}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 9.1 \cdot 10^{-10}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228 - 110.1139242984811\\
\end{array}
\end{array}
if x < -0.13500000000000001Initial program 16.9%
associate-/l*16.9%
sub-neg16.9%
metadata-eval16.9%
fma-def16.9%
fma-def16.9%
fma-def16.9%
fma-def16.9%
fma-def16.9%
fma-def16.9%
fma-def16.9%
Simplified16.9%
Taylor expanded in x around inf 91.3%
if -0.13500000000000001 < x < 7.49999999999999959e-156 or 2.70000000000000014e-149 < x < 2.3e-85 or 1.8999999999999999e-66 < x < 9.0999999999999996e-10Initial program 99.7%
Simplified99.3%
Taylor expanded in x around 0 73.0%
if 7.49999999999999959e-156 < x < 2.70000000000000014e-149 or 2.3e-85 < x < 1.8999999999999999e-66Initial program 99.4%
associate-/l*99.1%
sub-neg99.1%
metadata-eval99.1%
fma-def99.1%
fma-def99.1%
fma-def99.1%
fma-def99.1%
fma-def99.1%
fma-def99.1%
fma-def99.1%
Simplified99.1%
Taylor expanded in z around 0 93.5%
Taylor expanded in x around 0 94.1%
if 9.0999999999999996e-10 < x Initial program 22.6%
Simplified25.6%
Taylor expanded in x around inf 84.5%
Final simplification81.3%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (* -0.0424927283095952 (* x y))))
(if (<= x -3.4)
(* x 4.16438922228)
(if (<= x 7.5e-156)
(* z -0.0424927283095952)
(if (<= x 3e-149)
t_0
(if (<= x 2.3e-85)
(* z -0.0424927283095952)
(if (<= x 8.5e-64)
t_0
(if (<= x 2.0)
(* z -0.0424927283095952)
(* x 4.16438922228)))))))))
double code(double x, double y, double z) {
double t_0 = -0.0424927283095952 * (x * y);
double tmp;
if (x <= -3.4) {
tmp = x * 4.16438922228;
} else if (x <= 7.5e-156) {
tmp = z * -0.0424927283095952;
} else if (x <= 3e-149) {
tmp = t_0;
} else if (x <= 2.3e-85) {
tmp = z * -0.0424927283095952;
} else if (x <= 8.5e-64) {
tmp = t_0;
} 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) :: t_0
real(8) :: tmp
t_0 = (-0.0424927283095952d0) * (x * y)
if (x <= (-3.4d0)) then
tmp = x * 4.16438922228d0
else if (x <= 7.5d-156) then
tmp = z * (-0.0424927283095952d0)
else if (x <= 3d-149) then
tmp = t_0
else if (x <= 2.3d-85) then
tmp = z * (-0.0424927283095952d0)
else if (x <= 8.5d-64) then
tmp = t_0
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 t_0 = -0.0424927283095952 * (x * y);
double tmp;
if (x <= -3.4) {
tmp = x * 4.16438922228;
} else if (x <= 7.5e-156) {
tmp = z * -0.0424927283095952;
} else if (x <= 3e-149) {
tmp = t_0;
} else if (x <= 2.3e-85) {
tmp = z * -0.0424927283095952;
} else if (x <= 8.5e-64) {
tmp = t_0;
} else if (x <= 2.0) {
tmp = z * -0.0424927283095952;
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
def code(x, y, z): t_0 = -0.0424927283095952 * (x * y) tmp = 0 if x <= -3.4: tmp = x * 4.16438922228 elif x <= 7.5e-156: tmp = z * -0.0424927283095952 elif x <= 3e-149: tmp = t_0 elif x <= 2.3e-85: tmp = z * -0.0424927283095952 elif x <= 8.5e-64: tmp = t_0 elif x <= 2.0: tmp = z * -0.0424927283095952 else: tmp = x * 4.16438922228 return tmp
function code(x, y, z) t_0 = Float64(-0.0424927283095952 * Float64(x * y)) tmp = 0.0 if (x <= -3.4) tmp = Float64(x * 4.16438922228); elseif (x <= 7.5e-156) tmp = Float64(z * -0.0424927283095952); elseif (x <= 3e-149) tmp = t_0; elseif (x <= 2.3e-85) tmp = Float64(z * -0.0424927283095952); elseif (x <= 8.5e-64) tmp = t_0; 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) t_0 = -0.0424927283095952 * (x * y); tmp = 0.0; if (x <= -3.4) tmp = x * 4.16438922228; elseif (x <= 7.5e-156) tmp = z * -0.0424927283095952; elseif (x <= 3e-149) tmp = t_0; elseif (x <= 2.3e-85) tmp = z * -0.0424927283095952; elseif (x <= 8.5e-64) tmp = t_0; elseif (x <= 2.0) tmp = z * -0.0424927283095952; else tmp = x * 4.16438922228; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(-0.0424927283095952 * N[(x * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -3.4], N[(x * 4.16438922228), $MachinePrecision], If[LessEqual[x, 7.5e-156], N[(z * -0.0424927283095952), $MachinePrecision], If[LessEqual[x, 3e-149], t$95$0, If[LessEqual[x, 2.3e-85], N[(z * -0.0424927283095952), $MachinePrecision], If[LessEqual[x, 8.5e-64], t$95$0, If[LessEqual[x, 2.0], N[(z * -0.0424927283095952), $MachinePrecision], N[(x * 4.16438922228), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := -0.0424927283095952 \cdot \left(x \cdot y\right)\\
\mathbf{if}\;x \leq -3.4:\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{elif}\;x \leq 7.5 \cdot 10^{-156}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{elif}\;x \leq 3 \cdot 10^{-149}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 2.3 \cdot 10^{-85}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{elif}\;x \leq 8.5 \cdot 10^{-64}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 2:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228\\
\end{array}
\end{array}
if x < -3.39999999999999991 or 2 < x Initial program 18.5%
Simplified19.9%
Taylor expanded in x around inf 88.8%
*-commutative88.8%
Simplified88.8%
if -3.39999999999999991 < x < 7.49999999999999959e-156 or 3.0000000000000002e-149 < x < 2.3e-85 or 8.49999999999999996e-64 < x < 2Initial program 99.7%
Simplified99.3%
Taylor expanded in x around 0 71.8%
if 7.49999999999999959e-156 < x < 3.0000000000000002e-149 or 2.3e-85 < x < 8.49999999999999996e-64Initial program 99.4%
associate-/l*99.1%
sub-neg99.1%
metadata-eval99.1%
fma-def99.1%
fma-def99.1%
fma-def99.1%
fma-def99.1%
fma-def99.1%
fma-def99.1%
fma-def99.1%
Simplified99.1%
Taylor expanded in z around 0 93.5%
Taylor expanded in x around 0 94.1%
Final simplification81.0%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (* -0.0424927283095952 (* x y))))
(if (<= x -0.12)
(+ (* x 4.16438922228) 70.37071397084)
(if (<= x 7.5e-156)
(* z -0.0424927283095952)
(if (<= x 3.2e-149)
t_0
(if (<= x 2.3e-85)
(* z -0.0424927283095952)
(if (<= x 3.7e-67)
t_0
(if (<= x 2.0)
(* z -0.0424927283095952)
(* x 4.16438922228)))))))))
double code(double x, double y, double z) {
double t_0 = -0.0424927283095952 * (x * y);
double tmp;
if (x <= -0.12) {
tmp = (x * 4.16438922228) + 70.37071397084;
} else if (x <= 7.5e-156) {
tmp = z * -0.0424927283095952;
} else if (x <= 3.2e-149) {
tmp = t_0;
} else if (x <= 2.3e-85) {
tmp = z * -0.0424927283095952;
} else if (x <= 3.7e-67) {
tmp = t_0;
} 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) :: t_0
real(8) :: tmp
t_0 = (-0.0424927283095952d0) * (x * y)
if (x <= (-0.12d0)) then
tmp = (x * 4.16438922228d0) + 70.37071397084d0
else if (x <= 7.5d-156) then
tmp = z * (-0.0424927283095952d0)
else if (x <= 3.2d-149) then
tmp = t_0
else if (x <= 2.3d-85) then
tmp = z * (-0.0424927283095952d0)
else if (x <= 3.7d-67) then
tmp = t_0
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 t_0 = -0.0424927283095952 * (x * y);
double tmp;
if (x <= -0.12) {
tmp = (x * 4.16438922228) + 70.37071397084;
} else if (x <= 7.5e-156) {
tmp = z * -0.0424927283095952;
} else if (x <= 3.2e-149) {
tmp = t_0;
} else if (x <= 2.3e-85) {
tmp = z * -0.0424927283095952;
} else if (x <= 3.7e-67) {
tmp = t_0;
} else if (x <= 2.0) {
tmp = z * -0.0424927283095952;
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
def code(x, y, z): t_0 = -0.0424927283095952 * (x * y) tmp = 0 if x <= -0.12: tmp = (x * 4.16438922228) + 70.37071397084 elif x <= 7.5e-156: tmp = z * -0.0424927283095952 elif x <= 3.2e-149: tmp = t_0 elif x <= 2.3e-85: tmp = z * -0.0424927283095952 elif x <= 3.7e-67: tmp = t_0 elif x <= 2.0: tmp = z * -0.0424927283095952 else: tmp = x * 4.16438922228 return tmp
function code(x, y, z) t_0 = Float64(-0.0424927283095952 * Float64(x * y)) tmp = 0.0 if (x <= -0.12) tmp = Float64(Float64(x * 4.16438922228) + 70.37071397084); elseif (x <= 7.5e-156) tmp = Float64(z * -0.0424927283095952); elseif (x <= 3.2e-149) tmp = t_0; elseif (x <= 2.3e-85) tmp = Float64(z * -0.0424927283095952); elseif (x <= 3.7e-67) tmp = t_0; 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) t_0 = -0.0424927283095952 * (x * y); tmp = 0.0; if (x <= -0.12) tmp = (x * 4.16438922228) + 70.37071397084; elseif (x <= 7.5e-156) tmp = z * -0.0424927283095952; elseif (x <= 3.2e-149) tmp = t_0; elseif (x <= 2.3e-85) tmp = z * -0.0424927283095952; elseif (x <= 3.7e-67) tmp = t_0; elseif (x <= 2.0) tmp = z * -0.0424927283095952; else tmp = x * 4.16438922228; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(-0.0424927283095952 * N[(x * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -0.12], N[(N[(x * 4.16438922228), $MachinePrecision] + 70.37071397084), $MachinePrecision], If[LessEqual[x, 7.5e-156], N[(z * -0.0424927283095952), $MachinePrecision], If[LessEqual[x, 3.2e-149], t$95$0, If[LessEqual[x, 2.3e-85], N[(z * -0.0424927283095952), $MachinePrecision], If[LessEqual[x, 3.7e-67], t$95$0, If[LessEqual[x, 2.0], N[(z * -0.0424927283095952), $MachinePrecision], N[(x * 4.16438922228), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := -0.0424927283095952 \cdot \left(x \cdot y\right)\\
\mathbf{if}\;x \leq -0.12:\\
\;\;\;\;x \cdot 4.16438922228 + 70.37071397084\\
\mathbf{elif}\;x \leq 7.5 \cdot 10^{-156}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{elif}\;x \leq 3.2 \cdot 10^{-149}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 2.3 \cdot 10^{-85}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{elif}\;x \leq 3.7 \cdot 10^{-67}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 2:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228\\
\end{array}
\end{array}
if x < -0.12Initial program 18.2%
Taylor expanded in x around inf 15.5%
Taylor expanded in x around inf 89.6%
+-commutative89.6%
*-commutative89.6%
Simplified89.6%
if -0.12 < x < 7.49999999999999959e-156 or 3.20000000000000002e-149 < x < 2.3e-85 or 3.6999999999999999e-67 < x < 2Initial program 99.7%
Simplified99.3%
Taylor expanded in x around 0 72.4%
if 7.49999999999999959e-156 < x < 3.20000000000000002e-149 or 2.3e-85 < x < 3.6999999999999999e-67Initial program 99.4%
associate-/l*99.1%
sub-neg99.1%
metadata-eval99.1%
fma-def99.1%
fma-def99.1%
fma-def99.1%
fma-def99.1%
fma-def99.1%
fma-def99.1%
fma-def99.1%
Simplified99.1%
Taylor expanded in z around 0 93.5%
Taylor expanded in x around 0 94.1%
if 2 < x Initial program 20.1%
Simplified23.2%
Taylor expanded in x around inf 86.6%
*-commutative86.6%
Simplified86.6%
Final simplification81.0%
(FPCore (x y z)
:precision binary64
(if (<= x -1.5e+17)
(/ (+ x -2.0) 0.24013125253755718)
(if (<= x 9.1e-10)
(+
(* z -0.0424927283095952)
(* x (- (* y -0.0424927283095952) (* z -0.3041881842569256))))
(/ (+ x -2.0) (+ 0.24013125253755718 (/ 5.86923874282773 x))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -1.5e+17) {
tmp = (x + -2.0) / 0.24013125253755718;
} else if (x <= 9.1e-10) {
tmp = (z * -0.0424927283095952) + (x * ((y * -0.0424927283095952) - (z * -0.3041881842569256)));
} else {
tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / 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.5d+17)) then
tmp = (x + (-2.0d0)) / 0.24013125253755718d0
else if (x <= 9.1d-10) then
tmp = (z * (-0.0424927283095952d0)) + (x * ((y * (-0.0424927283095952d0)) - (z * (-0.3041881842569256d0))))
else
tmp = (x + (-2.0d0)) / (0.24013125253755718d0 + (5.86923874282773d0 / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -1.5e+17) {
tmp = (x + -2.0) / 0.24013125253755718;
} else if (x <= 9.1e-10) {
tmp = (z * -0.0424927283095952) + (x * ((y * -0.0424927283095952) - (z * -0.3041881842569256)));
} else {
tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -1.5e+17: tmp = (x + -2.0) / 0.24013125253755718 elif x <= 9.1e-10: tmp = (z * -0.0424927283095952) + (x * ((y * -0.0424927283095952) - (z * -0.3041881842569256))) else: tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -1.5e+17) tmp = Float64(Float64(x + -2.0) / 0.24013125253755718); elseif (x <= 9.1e-10) tmp = Float64(Float64(z * -0.0424927283095952) + Float64(x * Float64(Float64(y * -0.0424927283095952) - Float64(z * -0.3041881842569256)))); else tmp = Float64(Float64(x + -2.0) / Float64(0.24013125253755718 + Float64(5.86923874282773 / x))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -1.5e+17) tmp = (x + -2.0) / 0.24013125253755718; elseif (x <= 9.1e-10) tmp = (z * -0.0424927283095952) + (x * ((y * -0.0424927283095952) - (z * -0.3041881842569256))); else tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -1.5e+17], N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision], If[LessEqual[x, 9.1e-10], N[(N[(z * -0.0424927283095952), $MachinePrecision] + N[(x * N[(N[(y * -0.0424927283095952), $MachinePrecision] - N[(z * -0.3041881842569256), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] / N[(0.24013125253755718 + N[(5.86923874282773 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.5 \cdot 10^{+17}:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718}\\
\mathbf{elif}\;x \leq 9.1 \cdot 10^{-10}:\\
\;\;\;\;z \cdot -0.0424927283095952 + x \cdot \left(y \cdot -0.0424927283095952 - z \cdot -0.3041881842569256\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718 + \frac{5.86923874282773}{x}}\\
\end{array}
\end{array}
if x < -1.5e17Initial program 14.4%
associate-/l*14.3%
sub-neg14.3%
metadata-eval14.3%
fma-def14.3%
fma-def14.3%
fma-def14.3%
fma-def14.3%
fma-def14.3%
fma-def14.3%
fma-def14.3%
Simplified14.3%
Taylor expanded in x around inf 94.1%
if -1.5e17 < x < 9.0999999999999996e-10Initial program 99.6%
Simplified99.3%
Applied egg-rr99.3%
*-commutative99.3%
*-rgt-identity99.3%
Simplified99.3%
Taylor expanded in x around 0 92.6%
if 9.0999999999999996e-10 < x Initial program 22.6%
associate-/l*25.6%
sub-neg25.6%
metadata-eval25.6%
fma-def25.6%
fma-def25.6%
fma-def25.6%
fma-def25.6%
fma-def25.6%
fma-def25.6%
fma-def25.6%
Simplified25.6%
Taylor expanded in x around inf 85.0%
associate-*r/85.0%
metadata-eval85.0%
Simplified85.0%
Final simplification91.1%
(FPCore (x y z)
:precision binary64
(if (<= x -1.5e+17)
(/ (+ x -2.0) 0.24013125253755718)
(if (<= x 9.1e-10)
(+ (* z -0.0424927283095952) (* -0.0424927283095952 (* x y)))
(* x (- 4.16438922228 (/ 110.1139242984811 x))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -1.5e+17) {
tmp = (x + -2.0) / 0.24013125253755718;
} else if (x <= 9.1e-10) {
tmp = (z * -0.0424927283095952) + (-0.0424927283095952 * (x * y));
} else {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-1.5d+17)) then
tmp = (x + (-2.0d0)) / 0.24013125253755718d0
else if (x <= 9.1d-10) then
tmp = (z * (-0.0424927283095952d0)) + ((-0.0424927283095952d0) * (x * y))
else
tmp = x * (4.16438922228d0 - (110.1139242984811d0 / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -1.5e+17) {
tmp = (x + -2.0) / 0.24013125253755718;
} else if (x <= 9.1e-10) {
tmp = (z * -0.0424927283095952) + (-0.0424927283095952 * (x * y));
} else {
tmp = x * (4.16438922228 - (110.1139242984811 / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -1.5e+17: tmp = (x + -2.0) / 0.24013125253755718 elif x <= 9.1e-10: tmp = (z * -0.0424927283095952) + (-0.0424927283095952 * (x * y)) else: tmp = x * (4.16438922228 - (110.1139242984811 / x)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -1.5e+17) tmp = Float64(Float64(x + -2.0) / 0.24013125253755718); elseif (x <= 9.1e-10) tmp = Float64(Float64(z * -0.0424927283095952) + Float64(-0.0424927283095952 * Float64(x * y))); else tmp = Float64(x * Float64(4.16438922228 - Float64(110.1139242984811 / x))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -1.5e+17) tmp = (x + -2.0) / 0.24013125253755718; elseif (x <= 9.1e-10) tmp = (z * -0.0424927283095952) + (-0.0424927283095952 * (x * y)); else tmp = x * (4.16438922228 - (110.1139242984811 / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -1.5e+17], N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision], If[LessEqual[x, 9.1e-10], N[(N[(z * -0.0424927283095952), $MachinePrecision] + N[(-0.0424927283095952 * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(4.16438922228 - N[(110.1139242984811 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.5 \cdot 10^{+17}:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718}\\
\mathbf{elif}\;x \leq 9.1 \cdot 10^{-10}:\\
\;\;\;\;z \cdot -0.0424927283095952 + -0.0424927283095952 \cdot \left(x \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(4.16438922228 - \frac{110.1139242984811}{x}\right)\\
\end{array}
\end{array}
if x < -1.5e17Initial program 14.4%
associate-/l*14.3%
sub-neg14.3%
metadata-eval14.3%
fma-def14.3%
fma-def14.3%
fma-def14.3%
fma-def14.3%
fma-def14.3%
fma-def14.3%
fma-def14.3%
Simplified14.3%
Taylor expanded in x around inf 94.1%
if -1.5e17 < x < 9.0999999999999996e-10Initial program 99.6%
Simplified99.3%
Applied egg-rr99.3%
*-commutative99.3%
*-rgt-identity99.3%
Simplified99.3%
Taylor expanded in x around 0 92.6%
Taylor expanded in y around inf 92.3%
if 9.0999999999999996e-10 < x Initial program 22.6%
Simplified25.6%
Taylor expanded in x around inf 22.5%
associate-*r/22.5%
metadata-eval22.5%
Simplified22.5%
Taylor expanded in z around 0 28.0%
Taylor expanded in x around inf 84.6%
associate-*r/84.6%
metadata-eval84.6%
Simplified84.6%
Final simplification90.9%
(FPCore (x y z)
:precision binary64
(if (<= x -1.5e+17)
(/ (+ x -2.0) 0.24013125253755718)
(if (<= x 9.1e-10)
(+ (* z -0.0424927283095952) (* -0.0424927283095952 (* x y)))
(/ (+ x -2.0) (+ 0.24013125253755718 (/ 5.86923874282773 x))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -1.5e+17) {
tmp = (x + -2.0) / 0.24013125253755718;
} else if (x <= 9.1e-10) {
tmp = (z * -0.0424927283095952) + (-0.0424927283095952 * (x * y));
} else {
tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / 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.5d+17)) then
tmp = (x + (-2.0d0)) / 0.24013125253755718d0
else if (x <= 9.1d-10) then
tmp = (z * (-0.0424927283095952d0)) + ((-0.0424927283095952d0) * (x * y))
else
tmp = (x + (-2.0d0)) / (0.24013125253755718d0 + (5.86923874282773d0 / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -1.5e+17) {
tmp = (x + -2.0) / 0.24013125253755718;
} else if (x <= 9.1e-10) {
tmp = (z * -0.0424927283095952) + (-0.0424927283095952 * (x * y));
} else {
tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -1.5e+17: tmp = (x + -2.0) / 0.24013125253755718 elif x <= 9.1e-10: tmp = (z * -0.0424927283095952) + (-0.0424927283095952 * (x * y)) else: tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -1.5e+17) tmp = Float64(Float64(x + -2.0) / 0.24013125253755718); elseif (x <= 9.1e-10) tmp = Float64(Float64(z * -0.0424927283095952) + Float64(-0.0424927283095952 * Float64(x * y))); else tmp = Float64(Float64(x + -2.0) / Float64(0.24013125253755718 + Float64(5.86923874282773 / x))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -1.5e+17) tmp = (x + -2.0) / 0.24013125253755718; elseif (x <= 9.1e-10) tmp = (z * -0.0424927283095952) + (-0.0424927283095952 * (x * y)); else tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -1.5e+17], N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision], If[LessEqual[x, 9.1e-10], N[(N[(z * -0.0424927283095952), $MachinePrecision] + N[(-0.0424927283095952 * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] / N[(0.24013125253755718 + N[(5.86923874282773 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.5 \cdot 10^{+17}:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718}\\
\mathbf{elif}\;x \leq 9.1 \cdot 10^{-10}:\\
\;\;\;\;z \cdot -0.0424927283095952 + -0.0424927283095952 \cdot \left(x \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718 + \frac{5.86923874282773}{x}}\\
\end{array}
\end{array}
if x < -1.5e17Initial program 14.4%
associate-/l*14.3%
sub-neg14.3%
metadata-eval14.3%
fma-def14.3%
fma-def14.3%
fma-def14.3%
fma-def14.3%
fma-def14.3%
fma-def14.3%
fma-def14.3%
Simplified14.3%
Taylor expanded in x around inf 94.1%
if -1.5e17 < x < 9.0999999999999996e-10Initial program 99.6%
Simplified99.3%
Applied egg-rr99.3%
*-commutative99.3%
*-rgt-identity99.3%
Simplified99.3%
Taylor expanded in x around 0 92.6%
Taylor expanded in y around inf 92.3%
if 9.0999999999999996e-10 < x Initial program 22.6%
associate-/l*25.6%
sub-neg25.6%
metadata-eval25.6%
fma-def25.6%
fma-def25.6%
fma-def25.6%
fma-def25.6%
fma-def25.6%
fma-def25.6%
fma-def25.6%
Simplified25.6%
Taylor expanded in x around inf 85.0%
associate-*r/85.0%
metadata-eval85.0%
Simplified85.0%
Final simplification91.0%
(FPCore (x y z) :precision binary64 (if (or (<= x -0.225) (not (<= x 2.0))) (* x 4.16438922228) (* z -0.0424927283095952)))
double code(double x, double y, double z) {
double tmp;
if ((x <= -0.225) || !(x <= 2.0)) {
tmp = x * 4.16438922228;
} else {
tmp = z * -0.0424927283095952;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((x <= (-0.225d0)) .or. (.not. (x <= 2.0d0))) then
tmp = x * 4.16438922228d0
else
tmp = z * (-0.0424927283095952d0)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -0.225) || !(x <= 2.0)) {
tmp = x * 4.16438922228;
} else {
tmp = z * -0.0424927283095952;
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -0.225) or not (x <= 2.0): tmp = x * 4.16438922228 else: tmp = z * -0.0424927283095952 return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -0.225) || !(x <= 2.0)) tmp = Float64(x * 4.16438922228); else tmp = Float64(z * -0.0424927283095952); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -0.225) || ~((x <= 2.0))) tmp = x * 4.16438922228; else tmp = z * -0.0424927283095952; end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -0.225], N[Not[LessEqual[x, 2.0]], $MachinePrecision]], N[(x * 4.16438922228), $MachinePrecision], N[(z * -0.0424927283095952), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -0.225 \lor \neg \left(x \leq 2\right):\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{else}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\end{array}
\end{array}
if x < -0.225000000000000006 or 2 < x Initial program 18.5%
Simplified19.9%
Taylor expanded in x around inf 88.8%
*-commutative88.8%
Simplified88.8%
if -0.225000000000000006 < x < 2Initial program 99.6%
Simplified99.3%
Taylor expanded in x around 0 66.1%
Final simplification77.1%
(FPCore (x y z) :precision binary64 (* z -0.0424927283095952))
double code(double x, double y, double z) {
return z * -0.0424927283095952;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = z * (-0.0424927283095952d0)
end function
public static double code(double x, double y, double z) {
return z * -0.0424927283095952;
}
def code(x, y, z): return z * -0.0424927283095952
function code(x, y, z) return Float64(z * -0.0424927283095952) end
function tmp = code(x, y, z) tmp = z * -0.0424927283095952; end
code[x_, y_, z_] := N[(z * -0.0424927283095952), $MachinePrecision]
\begin{array}{l}
\\
z \cdot -0.0424927283095952
\end{array}
Initial program 60.3%
Simplified60.9%
Taylor expanded in x around 0 35.5%
Final simplification35.5%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (- (+ (/ y (* x x)) (* 4.16438922228 x)) 110.1139242984811)))
(if (< x -3.326128725870005e+62)
t_0
(if (< x 9.429991714554673e+55)
(*
(/ (- x 2.0) 1.0)
(/
(+
(*
(+
(* (+ (* (+ (* x 4.16438922228) 78.6994924154) x) 137.519416416) x)
y)
x)
z)
(+
(*
(+
(+ (* 263.505074721 x) (+ (* 43.3400022514 (* x x)) (* x (* x x))))
313.399215894)
x)
47.066876606)))
t_0))))
double code(double x, double y, double z) {
double t_0 = ((y / (x * x)) + (4.16438922228 * x)) - 110.1139242984811;
double tmp;
if (x < -3.326128725870005e+62) {
tmp = t_0;
} else if (x < 9.429991714554673e+55) {
tmp = ((x - 2.0) / 1.0) * (((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z) / (((((263.505074721 * x) + ((43.3400022514 * (x * x)) + (x * (x * x)))) + 313.399215894) * x) + 47.066876606));
} else {
tmp = t_0;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = ((y / (x * x)) + (4.16438922228d0 * x)) - 110.1139242984811d0
if (x < (-3.326128725870005d+62)) then
tmp = t_0
else if (x < 9.429991714554673d+55) then
tmp = ((x - 2.0d0) / 1.0d0) * (((((((((x * 4.16438922228d0) + 78.6994924154d0) * x) + 137.519416416d0) * x) + y) * x) + z) / (((((263.505074721d0 * x) + ((43.3400022514d0 * (x * x)) + (x * (x * x)))) + 313.399215894d0) * x) + 47.066876606d0))
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = ((y / (x * x)) + (4.16438922228 * x)) - 110.1139242984811;
double tmp;
if (x < -3.326128725870005e+62) {
tmp = t_0;
} else if (x < 9.429991714554673e+55) {
tmp = ((x - 2.0) / 1.0) * (((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z) / (((((263.505074721 * x) + ((43.3400022514 * (x * x)) + (x * (x * x)))) + 313.399215894) * x) + 47.066876606));
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = ((y / (x * x)) + (4.16438922228 * x)) - 110.1139242984811 tmp = 0 if x < -3.326128725870005e+62: tmp = t_0 elif x < 9.429991714554673e+55: tmp = ((x - 2.0) / 1.0) * (((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z) / (((((263.505074721 * x) + ((43.3400022514 * (x * x)) + (x * (x * x)))) + 313.399215894) * x) + 47.066876606)) else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(Float64(Float64(y / Float64(x * x)) + Float64(4.16438922228 * x)) - 110.1139242984811) tmp = 0.0 if (x < -3.326128725870005e+62) tmp = t_0; elseif (x < 9.429991714554673e+55) tmp = Float64(Float64(Float64(x - 2.0) / 1.0) * Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z) / Float64(Float64(Float64(Float64(Float64(263.505074721 * x) + Float64(Float64(43.3400022514 * Float64(x * x)) + Float64(x * Float64(x * x)))) + 313.399215894) * x) + 47.066876606))); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = ((y / (x * x)) + (4.16438922228 * x)) - 110.1139242984811; tmp = 0.0; if (x < -3.326128725870005e+62) tmp = t_0; elseif (x < 9.429991714554673e+55) tmp = ((x - 2.0) / 1.0) * (((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z) / (((((263.505074721 * x) + ((43.3400022514 * (x * x)) + (x * (x * x)))) + 313.399215894) * x) + 47.066876606)); else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(N[(y / N[(x * x), $MachinePrecision]), $MachinePrecision] + N[(4.16438922228 * x), $MachinePrecision]), $MachinePrecision] - 110.1139242984811), $MachinePrecision]}, If[Less[x, -3.326128725870005e+62], t$95$0, If[Less[x, 9.429991714554673e+55], N[(N[(N[(x - 2.0), $MachinePrecision] / 1.0), $MachinePrecision] * N[(N[(N[(N[(N[(N[(N[(N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision] * x), $MachinePrecision] + 137.519416416), $MachinePrecision] * x), $MachinePrecision] + y), $MachinePrecision] * x), $MachinePrecision] + z), $MachinePrecision] / N[(N[(N[(N[(N[(263.505074721 * x), $MachinePrecision] + N[(N[(43.3400022514 * N[(x * x), $MachinePrecision]), $MachinePrecision] + N[(x * N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision] * x), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$0]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \left(\frac{y}{x \cdot x} + 4.16438922228 \cdot x\right) - 110.1139242984811\\
\mathbf{if}\;x < -3.326128725870005 \cdot 10^{+62}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x < 9.429991714554673 \cdot 10^{+55}:\\
\;\;\;\;\frac{x - 2}{1} \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(263.505074721 \cdot x + \left(43.3400022514 \cdot \left(x \cdot x\right) + x \cdot \left(x \cdot x\right)\right)\right) + 313.399215894\right) \cdot x + 47.066876606}\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
herbie shell --seed 2024031
(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)))