
(FPCore (x y z)
:precision binary64
(/
(*
(- x 2.0)
(+
(*
(+ (* (+ (* (+ (* x 4.16438922228) 78.6994924154) x) 137.519416416) x) y)
x)
z))
(+
(* (+ (* (+ (* (+ x 43.3400022514) x) 263.505074721) x) 313.399215894) x)
47.066876606)))
double code(double x, double y, double z) {
return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606);
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = ((x - 2.0d0) * ((((((((x * 4.16438922228d0) + 78.6994924154d0) * x) + 137.519416416d0) * x) + y) * x) + z)) / (((((((x + 43.3400022514d0) * x) + 263.505074721d0) * x) + 313.399215894d0) * x) + 47.066876606d0)
end function
public static double code(double x, double y, double z) {
return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606);
}
def code(x, y, z): return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606)
function code(x, y, z) return Float64(Float64(Float64(x - 2.0) * Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606)) end
function tmp = code(x, y, z) tmp = ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606); end
code[x_, y_, z_] := N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(N[(N[(N[(N[(N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision] * x), $MachinePrecision] + 137.519416416), $MachinePrecision] * x), $MachinePrecision] + y), $MachinePrecision] * x), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(x + 43.3400022514), $MachinePrecision] * x), $MachinePrecision] + 263.505074721), $MachinePrecision] * x), $MachinePrecision] + 313.399215894), $MachinePrecision] * x), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 22 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z)
:precision binary64
(/
(*
(- x 2.0)
(+
(*
(+ (* (+ (* (+ (* x 4.16438922228) 78.6994924154) x) 137.519416416) x) y)
x)
z))
(+
(* (+ (* (+ (* (+ x 43.3400022514) x) 263.505074721) x) 313.399215894) x)
47.066876606)))
double code(double x, double y, double z) {
return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606);
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = ((x - 2.0d0) * ((((((((x * 4.16438922228d0) + 78.6994924154d0) * x) + 137.519416416d0) * x) + y) * x) + z)) / (((((((x + 43.3400022514d0) * x) + 263.505074721d0) * x) + 313.399215894d0) * x) + 47.066876606d0)
end function
public static double code(double x, double y, double z) {
return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606);
}
def code(x, y, z): return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606)
function code(x, y, z) return Float64(Float64(Float64(x - 2.0) * Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606)) end
function tmp = code(x, y, z) tmp = ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606); end
code[x_, y_, z_] := N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(N[(N[(N[(N[(N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision] * x), $MachinePrecision] + 137.519416416), $MachinePrecision] * x), $MachinePrecision] + y), $MachinePrecision] * x), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(x + 43.3400022514), $MachinePrecision] * x), $MachinePrecision] + 263.505074721), $MachinePrecision] * x), $MachinePrecision] + 313.399215894), $MachinePrecision] * x), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606}
\end{array}
(FPCore (x y z)
:precision binary64
(if (<=
(/
(*
(- x 2.0)
(+
(*
x
(+
(* x (+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))
y))
z))
(+
47.066876606
(*
x
(+ 313.399215894 (* x (+ (* x (+ x 43.3400022514)) 263.505074721))))))
INFINITY)
(/
(+ x -2.0)
(/
(fma
(fma (fma (+ x 43.3400022514) x 263.505074721) x 313.399215894)
x
47.066876606)
(fma
(fma (fma (fma x 4.16438922228 78.6994924154) x 137.519416416) x y)
x
z)))
(-
(+
(/ (- y 130977.50649958357) (pow x 2.0))
(+ (* x 4.16438922228) (* 3655.1204654076414 (/ 1.0 x))))
110.1139242984811)))
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)) / (47.066876606 + (x * (313.399215894 + (x * ((x * (x + 43.3400022514)) + 263.505074721)))))) <= ((double) INFINITY)) {
tmp = (x + -2.0) / (fma(fma(fma((x + 43.3400022514), x, 263.505074721), x, 313.399215894), x, 47.066876606) / fma(fma(fma(fma(x, 4.16438922228, 78.6994924154), x, 137.519416416), x, y), x, z));
} else {
tmp = (((y - 130977.50649958357) / pow(x, 2.0)) + ((x * 4.16438922228) + (3655.1204654076414 * (1.0 / x)))) - 110.1139242984811;
}
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(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)))))) <= Inf) tmp = Float64(Float64(x + -2.0) / Float64(fma(fma(fma(Float64(x + 43.3400022514), x, 263.505074721), x, 313.399215894), x, 47.066876606) / fma(fma(fma(fma(x, 4.16438922228, 78.6994924154), x, 137.519416416), x, y), x, z))); else tmp = Float64(Float64(Float64(Float64(y - 130977.50649958357) / (x ^ 2.0)) + Float64(Float64(x * 4.16438922228) + Float64(3655.1204654076414 * Float64(1.0 / x)))) - 110.1139242984811); 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[(47.066876606 + N[(x * N[(313.399215894 + N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], Infinity], N[(N[(x + -2.0), $MachinePrecision] / N[(N[(N[(N[(N[(x + 43.3400022514), $MachinePrecision] * x + 263.505074721), $MachinePrecision] * x + 313.399215894), $MachinePrecision] * x + 47.066876606), $MachinePrecision] / N[(N[(N[(N[(x * 4.16438922228 + 78.6994924154), $MachinePrecision] * x + 137.519416416), $MachinePrecision] * x + y), $MachinePrecision] * x + z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(N[(y - 130977.50649958357), $MachinePrecision] / N[Power[x, 2.0], $MachinePrecision]), $MachinePrecision] + N[(N[(x * 4.16438922228), $MachinePrecision] + N[(3655.1204654076414 * N[(1.0 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - 110.1139242984811), $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)}{47.066876606 + x \cdot \left(313.399215894 + x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right)\right)} \leq \infty:\\
\;\;\;\;\frac{x + -2}{\frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x + 43.3400022514, x, 263.505074721\right), x, 313.399215894\right), x, 47.066876606\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), x, 137.519416416\right), x, y\right), x, z\right)}}\\
\mathbf{else}:\\
\;\;\;\;\left(\frac{y - 130977.50649958357}{{x}^{2}} + \left(x \cdot 4.16438922228 + 3655.1204654076414 \cdot \frac{1}{x}\right)\right) - 110.1139242984811\\
\end{array}
\end{array}
if (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) < +inf.0Initial program 95.5%
associate-/l*97.7%
sub-neg97.7%
metadata-eval97.7%
fma-def97.7%
fma-def97.7%
fma-def97.7%
fma-def97.7%
fma-def97.7%
fma-def97.7%
fma-def97.7%
Simplified97.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%
Simplified0.0%
Taylor expanded in x around -inf 99.1%
Final simplification98.2%
(FPCore (x y z)
:precision binary64
(if (<=
(/
(*
(- x 2.0)
(+
(*
x
(+
(* x (+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))
y))
z))
(+
47.066876606
(*
x
(+ 313.399215894 (* x (+ (* x (+ x 43.3400022514)) 263.505074721))))))
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)))
(-
(+
(/ (- y 130977.50649958357) (pow x 2.0))
(+ (* x 4.16438922228) (* 3655.1204654076414 (/ 1.0 x))))
110.1139242984811)))
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)) / (47.066876606 + (x * (313.399215894 + (x * ((x * (x + 43.3400022514)) + 263.505074721)))))) <= ((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 = (((y - 130977.50649958357) / pow(x, 2.0)) + ((x * 4.16438922228) + (3655.1204654076414 * (1.0 / x)))) - 110.1139242984811;
}
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(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)))))) <= 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(Float64(Float64(Float64(y - 130977.50649958357) / (x ^ 2.0)) + Float64(Float64(x * 4.16438922228) + Float64(3655.1204654076414 * Float64(1.0 / x)))) - 110.1139242984811); 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[(47.066876606 + N[(x * N[(313.399215894 + N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $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[(N[(N[(N[(y - 130977.50649958357), $MachinePrecision] / N[Power[x, 2.0], $MachinePrecision]), $MachinePrecision] + N[(N[(x * 4.16438922228), $MachinePrecision] + N[(3655.1204654076414 * N[(1.0 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - 110.1139242984811), $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)}{47.066876606 + x \cdot \left(313.399215894 + x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right)\right)} \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}:\\
\;\;\;\;\left(\frac{y - 130977.50649958357}{{x}^{2}} + \left(x \cdot 4.16438922228 + 3655.1204654076414 \cdot \frac{1}{x}\right)\right) - 110.1139242984811\\
\end{array}
\end{array}
if (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) < +inf.0Initial program 95.5%
Simplified97.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%
Simplified0.0%
Taylor expanded in x around -inf 99.1%
Final simplification98.1%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(/
(*
(- x 2.0)
(+
(*
x
(+
(*
x
(+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))
y))
z))
(+
47.066876606
(*
x
(+
313.399215894
(* x (+ (* x (+ x 43.3400022514)) 263.505074721))))))))
(if (<= t_0 5e+296)
t_0
(-
(+
(/ (- y 130977.50649958357) (pow x 2.0))
(+ (* x 4.16438922228) (* 3655.1204654076414 (/ 1.0 x))))
110.1139242984811))))
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)) / (47.066876606 + (x * (313.399215894 + (x * ((x * (x + 43.3400022514)) + 263.505074721)))));
double tmp;
if (t_0 <= 5e+296) {
tmp = t_0;
} else {
tmp = (((y - 130977.50649958357) / pow(x, 2.0)) + ((x * 4.16438922228) + (3655.1204654076414 * (1.0 / x)))) - 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 = ((x - 2.0d0) * ((x * ((x * ((x * ((x * 4.16438922228d0) + 78.6994924154d0)) + 137.519416416d0)) + y)) + z)) / (47.066876606d0 + (x * (313.399215894d0 + (x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)))))
if (t_0 <= 5d+296) then
tmp = t_0
else
tmp = (((y - 130977.50649958357d0) / (x ** 2.0d0)) + ((x * 4.16438922228d0) + (3655.1204654076414d0 * (1.0d0 / x)))) - 110.1139242984811d0
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)) / (47.066876606 + (x * (313.399215894 + (x * ((x * (x + 43.3400022514)) + 263.505074721)))));
double tmp;
if (t_0 <= 5e+296) {
tmp = t_0;
} else {
tmp = (((y - 130977.50649958357) / Math.pow(x, 2.0)) + ((x * 4.16438922228) + (3655.1204654076414 * (1.0 / x)))) - 110.1139242984811;
}
return tmp;
}
def code(x, y, z): t_0 = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / (47.066876606 + (x * (313.399215894 + (x * ((x * (x + 43.3400022514)) + 263.505074721))))) tmp = 0 if t_0 <= 5e+296: tmp = t_0 else: tmp = (((y - 130977.50649958357) / math.pow(x, 2.0)) + ((x * 4.16438922228) + (3655.1204654076414 * (1.0 / x)))) - 110.1139242984811 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(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)))))) tmp = 0.0 if (t_0 <= 5e+296) tmp = t_0; else tmp = Float64(Float64(Float64(Float64(y - 130977.50649958357) / (x ^ 2.0)) + Float64(Float64(x * 4.16438922228) + Float64(3655.1204654076414 * Float64(1.0 / x)))) - 110.1139242984811); 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)) / (47.066876606 + (x * (313.399215894 + (x * ((x * (x + 43.3400022514)) + 263.505074721))))); tmp = 0.0; if (t_0 <= 5e+296) tmp = t_0; else tmp = (((y - 130977.50649958357) / (x ^ 2.0)) + ((x * 4.16438922228) + (3655.1204654076414 * (1.0 / x)))) - 110.1139242984811; 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[(47.066876606 + N[(x * N[(313.399215894 + N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$0, 5e+296], t$95$0, N[(N[(N[(N[(y - 130977.50649958357), $MachinePrecision] / N[Power[x, 2.0], $MachinePrecision]), $MachinePrecision] + N[(N[(x * 4.16438922228), $MachinePrecision] + N[(3655.1204654076414 * N[(1.0 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - 110.1139242984811), $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)}{47.066876606 + x \cdot \left(313.399215894 + x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right)\right)}\\
\mathbf{if}\;t_0 \leq 5 \cdot 10^{+296}:\\
\;\;\;\;t_0\\
\mathbf{else}:\\
\;\;\;\;\left(\frac{y - 130977.50649958357}{{x}^{2}} + \left(x \cdot 4.16438922228 + 3655.1204654076414 \cdot \frac{1}{x}\right)\right) - 110.1139242984811\\
\end{array}
\end{array}
if (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) < 5.0000000000000001e296Initial program 97.2%
if 5.0000000000000001e296 < (/.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%
Simplified2.2%
Taylor expanded in x around -inf 98.0%
Final simplification97.5%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(/
(*
(- x 2.0)
(+
(*
x
(+
(*
x
(+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))
y))
z))
(+
47.066876606
(*
x
(+
313.399215894
(* x (+ (* x (+ x 43.3400022514)) 263.505074721))))))))
(if (<= t_0 5e+296) 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)) / (47.066876606 + (x * (313.399215894 + (x * ((x * (x + 43.3400022514)) + 263.505074721)))));
double tmp;
if (t_0 <= 5e+296) {
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)) / (47.066876606d0 + (x * (313.399215894d0 + (x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)))))
if (t_0 <= 5d+296) 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)) / (47.066876606 + (x * (313.399215894 + (x * ((x * (x + 43.3400022514)) + 263.505074721)))));
double tmp;
if (t_0 <= 5e+296) {
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)) / (47.066876606 + (x * (313.399215894 + (x * ((x * (x + 43.3400022514)) + 263.505074721))))) tmp = 0 if t_0 <= 5e+296: 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(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)))))) tmp = 0.0 if (t_0 <= 5e+296) 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)) / (47.066876606 + (x * (313.399215894 + (x * ((x * (x + 43.3400022514)) + 263.505074721))))); tmp = 0.0; if (t_0 <= 5e+296) 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[(47.066876606 + N[(x * N[(313.399215894 + N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$0, 5e+296], 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)}{47.066876606 + x \cdot \left(313.399215894 + x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right)\right)}\\
\mathbf{if}\;t_0 \leq 5 \cdot 10^{+296}:\\
\;\;\;\;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)) < 5.0000000000000001e296Initial program 97.2%
if 5.0000000000000001e296 < (/.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*2.2%
sub-neg2.2%
metadata-eval2.2%
fma-def2.2%
fma-def2.2%
fma-def2.2%
fma-def2.2%
fma-def2.2%
fma-def2.2%
fma-def2.2%
Simplified2.2%
Taylor expanded in x around inf 96.5%
Final simplification96.9%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (/ (+ x -2.0) 0.24013125253755718))
(t_1 (* x (+ (* x (+ x 43.3400022514)) 263.505074721)))
(t_2
(/
(+ x -2.0)
(/ (+ 313.399215894 (+ (* 47.066876606 (/ 1.0 x)) t_1)) y))))
(if (<= x -5.2e+45)
t_0
(if (<= x -0.000102)
t_2
(if (<= x 2.3e-60)
(+
(* z -0.0424927283095952)
(*
x
(-
(* 0.0212463641547976 (+ z (* y -2.0)))
(* z -0.28294182010212804))))
(if (<= x 7.4e-6)
(/
(+ x -2.0)
(/
(+ 47.066876606 (* x (+ 313.399215894 (* x 263.505074721))))
(* x (+ y (* x 137.519416416)))))
(if (<= x 3.5e+32)
(/ (+ x -2.0) (/ (+ 47.066876606 (* x (+ 313.399215894 t_1))) z))
(if (<= x 5e+42) t_2 t_0))))))))
double code(double x, double y, double z) {
double t_0 = (x + -2.0) / 0.24013125253755718;
double t_1 = x * ((x * (x + 43.3400022514)) + 263.505074721);
double t_2 = (x + -2.0) / ((313.399215894 + ((47.066876606 * (1.0 / x)) + t_1)) / y);
double tmp;
if (x <= -5.2e+45) {
tmp = t_0;
} else if (x <= -0.000102) {
tmp = t_2;
} else if (x <= 2.3e-60) {
tmp = (z * -0.0424927283095952) + (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804)));
} else if (x <= 7.4e-6) {
tmp = (x + -2.0) / ((47.066876606 + (x * (313.399215894 + (x * 263.505074721)))) / (x * (y + (x * 137.519416416))));
} else if (x <= 3.5e+32) {
tmp = (x + -2.0) / ((47.066876606 + (x * (313.399215894 + t_1))) / z);
} else if (x <= 5e+42) {
tmp = t_2;
} else {
tmp = t_0;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_0 = (x + (-2.0d0)) / 0.24013125253755718d0
t_1 = x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)
t_2 = (x + (-2.0d0)) / ((313.399215894d0 + ((47.066876606d0 * (1.0d0 / x)) + t_1)) / y)
if (x <= (-5.2d+45)) then
tmp = t_0
else if (x <= (-0.000102d0)) then
tmp = t_2
else if (x <= 2.3d-60) then
tmp = (z * (-0.0424927283095952d0)) + (x * ((0.0212463641547976d0 * (z + (y * (-2.0d0)))) - (z * (-0.28294182010212804d0))))
else if (x <= 7.4d-6) then
tmp = (x + (-2.0d0)) / ((47.066876606d0 + (x * (313.399215894d0 + (x * 263.505074721d0)))) / (x * (y + (x * 137.519416416d0))))
else if (x <= 3.5d+32) then
tmp = (x + (-2.0d0)) / ((47.066876606d0 + (x * (313.399215894d0 + t_1))) / z)
else if (x <= 5d+42) then
tmp = t_2
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = (x + -2.0) / 0.24013125253755718;
double t_1 = x * ((x * (x + 43.3400022514)) + 263.505074721);
double t_2 = (x + -2.0) / ((313.399215894 + ((47.066876606 * (1.0 / x)) + t_1)) / y);
double tmp;
if (x <= -5.2e+45) {
tmp = t_0;
} else if (x <= -0.000102) {
tmp = t_2;
} else if (x <= 2.3e-60) {
tmp = (z * -0.0424927283095952) + (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804)));
} else if (x <= 7.4e-6) {
tmp = (x + -2.0) / ((47.066876606 + (x * (313.399215894 + (x * 263.505074721)))) / (x * (y + (x * 137.519416416))));
} else if (x <= 3.5e+32) {
tmp = (x + -2.0) / ((47.066876606 + (x * (313.399215894 + t_1))) / z);
} else if (x <= 5e+42) {
tmp = t_2;
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = (x + -2.0) / 0.24013125253755718 t_1 = x * ((x * (x + 43.3400022514)) + 263.505074721) t_2 = (x + -2.0) / ((313.399215894 + ((47.066876606 * (1.0 / x)) + t_1)) / y) tmp = 0 if x <= -5.2e+45: tmp = t_0 elif x <= -0.000102: tmp = t_2 elif x <= 2.3e-60: tmp = (z * -0.0424927283095952) + (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804))) elif x <= 7.4e-6: tmp = (x + -2.0) / ((47.066876606 + (x * (313.399215894 + (x * 263.505074721)))) / (x * (y + (x * 137.519416416)))) elif x <= 3.5e+32: tmp = (x + -2.0) / ((47.066876606 + (x * (313.399215894 + t_1))) / z) elif x <= 5e+42: tmp = t_2 else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(Float64(x + -2.0) / 0.24013125253755718) t_1 = Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) t_2 = Float64(Float64(x + -2.0) / Float64(Float64(313.399215894 + Float64(Float64(47.066876606 * Float64(1.0 / x)) + t_1)) / y)) tmp = 0.0 if (x <= -5.2e+45) tmp = t_0; elseif (x <= -0.000102) tmp = t_2; elseif (x <= 2.3e-60) tmp = Float64(Float64(z * -0.0424927283095952) + Float64(x * Float64(Float64(0.0212463641547976 * Float64(z + Float64(y * -2.0))) - Float64(z * -0.28294182010212804)))); elseif (x <= 7.4e-6) tmp = Float64(Float64(x + -2.0) / Float64(Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * 263.505074721)))) / Float64(x * Float64(y + Float64(x * 137.519416416))))); elseif (x <= 3.5e+32) tmp = Float64(Float64(x + -2.0) / Float64(Float64(47.066876606 + Float64(x * Float64(313.399215894 + t_1))) / z)); elseif (x <= 5e+42) tmp = t_2; else tmp = t_0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = (x + -2.0) / 0.24013125253755718; t_1 = x * ((x * (x + 43.3400022514)) + 263.505074721); t_2 = (x + -2.0) / ((313.399215894 + ((47.066876606 * (1.0 / x)) + t_1)) / y); tmp = 0.0; if (x <= -5.2e+45) tmp = t_0; elseif (x <= -0.000102) tmp = t_2; elseif (x <= 2.3e-60) tmp = (z * -0.0424927283095952) + (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804))); elseif (x <= 7.4e-6) tmp = (x + -2.0) / ((47.066876606 + (x * (313.399215894 + (x * 263.505074721)))) / (x * (y + (x * 137.519416416)))); elseif (x <= 3.5e+32) tmp = (x + -2.0) / ((47.066876606 + (x * (313.399215894 + t_1))) / z); elseif (x <= 5e+42) tmp = t_2; else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision]}, Block[{t$95$1 = N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x + -2.0), $MachinePrecision] / N[(N[(313.399215894 + N[(N[(47.066876606 * N[(1.0 / x), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -5.2e+45], t$95$0, If[LessEqual[x, -0.000102], t$95$2, If[LessEqual[x, 2.3e-60], N[(N[(z * -0.0424927283095952), $MachinePrecision] + N[(x * N[(N[(0.0212463641547976 * N[(z + N[(y * -2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(z * -0.28294182010212804), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 7.4e-6], N[(N[(x + -2.0), $MachinePrecision] / N[(N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * 263.505074721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(x * N[(y + N[(x * 137.519416416), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 3.5e+32], N[(N[(x + -2.0), $MachinePrecision] / N[(N[(47.066876606 + N[(x * N[(313.399215894 + t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 5e+42], t$95$2, t$95$0]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{x + -2}{0.24013125253755718}\\
t_1 := x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right)\\
t_2 := \frac{x + -2}{\frac{313.399215894 + \left(47.066876606 \cdot \frac{1}{x} + t_1\right)}{y}}\\
\mathbf{if}\;x \leq -5.2 \cdot 10^{+45}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;x \leq -0.000102:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq 2.3 \cdot 10^{-60}:\\
\;\;\;\;z \cdot -0.0424927283095952 + x \cdot \left(0.0212463641547976 \cdot \left(z + y \cdot -2\right) - z \cdot -0.28294182010212804\right)\\
\mathbf{elif}\;x \leq 7.4 \cdot 10^{-6}:\\
\;\;\;\;\frac{x + -2}{\frac{47.066876606 + x \cdot \left(313.399215894 + x \cdot 263.505074721\right)}{x \cdot \left(y + x \cdot 137.519416416\right)}}\\
\mathbf{elif}\;x \leq 3.5 \cdot 10^{+32}:\\
\;\;\;\;\frac{x + -2}{\frac{47.066876606 + x \cdot \left(313.399215894 + t_1\right)}{z}}\\
\mathbf{elif}\;x \leq 5 \cdot 10^{+42}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_0\\
\end{array}
\end{array}
if x < -5.20000000000000014e45 or 5.00000000000000007e42 < x Initial program 5.1%
associate-/l*9.0%
sub-neg9.0%
metadata-eval9.0%
fma-def9.0%
fma-def9.0%
fma-def9.0%
fma-def9.0%
fma-def9.0%
fma-def9.0%
fma-def9.0%
Simplified9.0%
Taylor expanded in x around inf 96.7%
if -5.20000000000000014e45 < x < -1.01999999999999999e-4 or 3.5000000000000001e32 < x < 5.00000000000000007e42Initial program 86.5%
associate-/l*86.8%
sub-neg86.8%
metadata-eval86.8%
fma-def86.8%
fma-def86.8%
fma-def86.7%
fma-def86.7%
fma-def86.7%
fma-def86.7%
fma-def86.7%
Simplified86.7%
Taylor expanded in y around inf 53.2%
Taylor expanded in y around inf 80.0%
if -1.01999999999999999e-4 < x < 2.3000000000000001e-60Initial program 99.7%
Simplified99.5%
Taylor expanded in x around 0 93.2%
if 2.3000000000000001e-60 < x < 7.4000000000000003e-6Initial 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 91.1%
Taylor expanded in x around 0 88.0%
*-commutative88.0%
Simplified88.0%
Taylor expanded in x around 0 88.0%
*-commutative88.0%
Simplified88.0%
if 7.4000000000000003e-6 < x < 3.5000000000000001e32Initial program 99.0%
associate-/l*99.3%
sub-neg99.3%
metadata-eval99.3%
fma-def99.3%
fma-def99.3%
fma-def99.3%
fma-def99.3%
fma-def99.3%
fma-def99.3%
fma-def99.3%
Simplified99.3%
Taylor expanded in z around inf 63.0%
Final simplification92.6%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (/ (+ x -2.0) 0.24013125253755718))
(t_1 (* x (+ (* x (+ x 43.3400022514)) 263.505074721))))
(if (<= x -5.2e+45)
t_0
(if (<= x -4.8e-5)
(/
(+ x -2.0)
(/ (+ 313.399215894 (+ (* 47.066876606 (/ 1.0 x)) t_1)) y))
(if (<= x 2.3e-60)
(+
(* z -0.0424927283095952)
(*
x
(-
(* 0.0212463641547976 (+ z (* y -2.0)))
(* z -0.28294182010212804))))
(if (<= x 6.5e+39)
(/
(+ x -2.0)
(/
(+ 47.066876606 (* x (+ 313.399215894 t_1)))
(* x (+ y (* x 137.519416416)))))
t_0))))))
double code(double x, double y, double z) {
double t_0 = (x + -2.0) / 0.24013125253755718;
double t_1 = x * ((x * (x + 43.3400022514)) + 263.505074721);
double tmp;
if (x <= -5.2e+45) {
tmp = t_0;
} else if (x <= -4.8e-5) {
tmp = (x + -2.0) / ((313.399215894 + ((47.066876606 * (1.0 / x)) + t_1)) / y);
} else if (x <= 2.3e-60) {
tmp = (z * -0.0424927283095952) + (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804)));
} else if (x <= 6.5e+39) {
tmp = (x + -2.0) / ((47.066876606 + (x * (313.399215894 + t_1))) / (x * (y + (x * 137.519416416))));
} else {
tmp = t_0;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: t_1
real(8) :: tmp
t_0 = (x + (-2.0d0)) / 0.24013125253755718d0
t_1 = x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)
if (x <= (-5.2d+45)) then
tmp = t_0
else if (x <= (-4.8d-5)) then
tmp = (x + (-2.0d0)) / ((313.399215894d0 + ((47.066876606d0 * (1.0d0 / x)) + t_1)) / y)
else if (x <= 2.3d-60) then
tmp = (z * (-0.0424927283095952d0)) + (x * ((0.0212463641547976d0 * (z + (y * (-2.0d0)))) - (z * (-0.28294182010212804d0))))
else if (x <= 6.5d+39) then
tmp = (x + (-2.0d0)) / ((47.066876606d0 + (x * (313.399215894d0 + t_1))) / (x * (y + (x * 137.519416416d0))))
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = (x + -2.0) / 0.24013125253755718;
double t_1 = x * ((x * (x + 43.3400022514)) + 263.505074721);
double tmp;
if (x <= -5.2e+45) {
tmp = t_0;
} else if (x <= -4.8e-5) {
tmp = (x + -2.0) / ((313.399215894 + ((47.066876606 * (1.0 / x)) + t_1)) / y);
} else if (x <= 2.3e-60) {
tmp = (z * -0.0424927283095952) + (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804)));
} else if (x <= 6.5e+39) {
tmp = (x + -2.0) / ((47.066876606 + (x * (313.399215894 + t_1))) / (x * (y + (x * 137.519416416))));
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = (x + -2.0) / 0.24013125253755718 t_1 = x * ((x * (x + 43.3400022514)) + 263.505074721) tmp = 0 if x <= -5.2e+45: tmp = t_0 elif x <= -4.8e-5: tmp = (x + -2.0) / ((313.399215894 + ((47.066876606 * (1.0 / x)) + t_1)) / y) elif x <= 2.3e-60: tmp = (z * -0.0424927283095952) + (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804))) elif x <= 6.5e+39: tmp = (x + -2.0) / ((47.066876606 + (x * (313.399215894 + t_1))) / (x * (y + (x * 137.519416416)))) else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(Float64(x + -2.0) / 0.24013125253755718) t_1 = Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) tmp = 0.0 if (x <= -5.2e+45) tmp = t_0; elseif (x <= -4.8e-5) tmp = Float64(Float64(x + -2.0) / Float64(Float64(313.399215894 + Float64(Float64(47.066876606 * Float64(1.0 / x)) + t_1)) / y)); elseif (x <= 2.3e-60) tmp = Float64(Float64(z * -0.0424927283095952) + Float64(x * Float64(Float64(0.0212463641547976 * Float64(z + Float64(y * -2.0))) - Float64(z * -0.28294182010212804)))); elseif (x <= 6.5e+39) tmp = Float64(Float64(x + -2.0) / Float64(Float64(47.066876606 + Float64(x * Float64(313.399215894 + t_1))) / Float64(x * Float64(y + Float64(x * 137.519416416))))); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = (x + -2.0) / 0.24013125253755718; t_1 = x * ((x * (x + 43.3400022514)) + 263.505074721); tmp = 0.0; if (x <= -5.2e+45) tmp = t_0; elseif (x <= -4.8e-5) tmp = (x + -2.0) / ((313.399215894 + ((47.066876606 * (1.0 / x)) + t_1)) / y); elseif (x <= 2.3e-60) tmp = (z * -0.0424927283095952) + (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804))); elseif (x <= 6.5e+39) tmp = (x + -2.0) / ((47.066876606 + (x * (313.399215894 + t_1))) / (x * (y + (x * 137.519416416)))); else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision]}, Block[{t$95$1 = N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -5.2e+45], t$95$0, If[LessEqual[x, -4.8e-5], N[(N[(x + -2.0), $MachinePrecision] / N[(N[(313.399215894 + N[(N[(47.066876606 * N[(1.0 / x), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.3e-60], N[(N[(z * -0.0424927283095952), $MachinePrecision] + N[(x * N[(N[(0.0212463641547976 * N[(z + N[(y * -2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(z * -0.28294182010212804), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 6.5e+39], N[(N[(x + -2.0), $MachinePrecision] / N[(N[(47.066876606 + N[(x * N[(313.399215894 + t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(x * N[(y + N[(x * 137.519416416), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$0]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{x + -2}{0.24013125253755718}\\
t_1 := x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right)\\
\mathbf{if}\;x \leq -5.2 \cdot 10^{+45}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;x \leq -4.8 \cdot 10^{-5}:\\
\;\;\;\;\frac{x + -2}{\frac{313.399215894 + \left(47.066876606 \cdot \frac{1}{x} + t_1\right)}{y}}\\
\mathbf{elif}\;x \leq 2.3 \cdot 10^{-60}:\\
\;\;\;\;z \cdot -0.0424927283095952 + x \cdot \left(0.0212463641547976 \cdot \left(z + y \cdot -2\right) - z \cdot -0.28294182010212804\right)\\
\mathbf{elif}\;x \leq 6.5 \cdot 10^{+39}:\\
\;\;\;\;\frac{x + -2}{\frac{47.066876606 + x \cdot \left(313.399215894 + t_1\right)}{x \cdot \left(y + x \cdot 137.519416416\right)}}\\
\mathbf{else}:\\
\;\;\;\;t_0\\
\end{array}
\end{array}
if x < -5.20000000000000014e45 or 6.5000000000000001e39 < x Initial program 5.1%
associate-/l*9.0%
sub-neg9.0%
metadata-eval9.0%
fma-def9.0%
fma-def9.0%
fma-def9.0%
fma-def9.0%
fma-def9.0%
fma-def9.0%
fma-def9.0%
Simplified9.0%
Taylor expanded in x around inf 96.7%
if -5.20000000000000014e45 < x < -4.8000000000000001e-5Initial program 80.3%
associate-/l*80.6%
sub-neg80.6%
metadata-eval80.6%
fma-def80.6%
fma-def80.6%
fma-def80.4%
fma-def80.4%
fma-def80.4%
fma-def80.4%
fma-def80.4%
Simplified80.4%
Taylor expanded in y around inf 40.1%
Taylor expanded in y around inf 70.3%
if -4.8000000000000001e-5 < x < 2.3000000000000001e-60Initial program 99.7%
Simplified99.5%
Taylor expanded in x around 0 93.2%
if 2.3000000000000001e-60 < x < 6.5000000000000001e39Initial program 99.2%
associate-/l*99.2%
sub-neg99.2%
metadata-eval99.2%
fma-def99.2%
fma-def99.2%
fma-def99.2%
fma-def99.2%
fma-def99.2%
fma-def99.2%
fma-def99.2%
Simplified99.2%
Taylor expanded in z around 0 75.2%
Taylor expanded in x around 0 66.2%
*-commutative66.2%
Simplified66.2%
Final simplification91.1%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(+
47.066876606
(*
x
(+
313.399215894
(* x (+ (* x (+ x 43.3400022514)) 263.505074721))))))
(t_1 (/ (+ x -2.0) 0.24013125253755718)))
(if (<= x -7e+14)
t_1
(if (<= x 2.3e-60)
(+
(* z -0.0424927283095952)
(*
x
(-
(* 0.0212463641547976 (+ z (* y -2.0)))
(* z -0.28294182010212804))))
(if (<= x 7.6e-7)
(/
(+ x -2.0)
(/
(+ 47.066876606 (* x (+ 313.399215894 (* x 263.505074721))))
(* x (+ y (* x 137.519416416)))))
(if (<= x 1.15e+33)
(/ (+ x -2.0) (/ t_0 z))
(if (<= x 2.5e+39) (/ (* x (* (- x 2.0) y)) t_0) t_1)))))))
double code(double x, double y, double z) {
double t_0 = 47.066876606 + (x * (313.399215894 + (x * ((x * (x + 43.3400022514)) + 263.505074721))));
double t_1 = (x + -2.0) / 0.24013125253755718;
double tmp;
if (x <= -7e+14) {
tmp = t_1;
} else if (x <= 2.3e-60) {
tmp = (z * -0.0424927283095952) + (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804)));
} else if (x <= 7.6e-7) {
tmp = (x + -2.0) / ((47.066876606 + (x * (313.399215894 + (x * 263.505074721)))) / (x * (y + (x * 137.519416416))));
} else if (x <= 1.15e+33) {
tmp = (x + -2.0) / (t_0 / z);
} else if (x <= 2.5e+39) {
tmp = (x * ((x - 2.0) * y)) / t_0;
} else {
tmp = t_1;
}
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 = 47.066876606d0 + (x * (313.399215894d0 + (x * ((x * (x + 43.3400022514d0)) + 263.505074721d0))))
t_1 = (x + (-2.0d0)) / 0.24013125253755718d0
if (x <= (-7d+14)) then
tmp = t_1
else if (x <= 2.3d-60) then
tmp = (z * (-0.0424927283095952d0)) + (x * ((0.0212463641547976d0 * (z + (y * (-2.0d0)))) - (z * (-0.28294182010212804d0))))
else if (x <= 7.6d-7) then
tmp = (x + (-2.0d0)) / ((47.066876606d0 + (x * (313.399215894d0 + (x * 263.505074721d0)))) / (x * (y + (x * 137.519416416d0))))
else if (x <= 1.15d+33) then
tmp = (x + (-2.0d0)) / (t_0 / z)
else if (x <= 2.5d+39) then
tmp = (x * ((x - 2.0d0) * y)) / t_0
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = 47.066876606 + (x * (313.399215894 + (x * ((x * (x + 43.3400022514)) + 263.505074721))));
double t_1 = (x + -2.0) / 0.24013125253755718;
double tmp;
if (x <= -7e+14) {
tmp = t_1;
} else if (x <= 2.3e-60) {
tmp = (z * -0.0424927283095952) + (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804)));
} else if (x <= 7.6e-7) {
tmp = (x + -2.0) / ((47.066876606 + (x * (313.399215894 + (x * 263.505074721)))) / (x * (y + (x * 137.519416416))));
} else if (x <= 1.15e+33) {
tmp = (x + -2.0) / (t_0 / z);
} else if (x <= 2.5e+39) {
tmp = (x * ((x - 2.0) * y)) / t_0;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z): t_0 = 47.066876606 + (x * (313.399215894 + (x * ((x * (x + 43.3400022514)) + 263.505074721)))) t_1 = (x + -2.0) / 0.24013125253755718 tmp = 0 if x <= -7e+14: tmp = t_1 elif x <= 2.3e-60: tmp = (z * -0.0424927283095952) + (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804))) elif x <= 7.6e-7: tmp = (x + -2.0) / ((47.066876606 + (x * (313.399215894 + (x * 263.505074721)))) / (x * (y + (x * 137.519416416)))) elif x <= 1.15e+33: tmp = (x + -2.0) / (t_0 / z) elif x <= 2.5e+39: tmp = (x * ((x - 2.0) * y)) / t_0 else: tmp = t_1 return tmp
function code(x, y, z) t_0 = Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721))))) t_1 = Float64(Float64(x + -2.0) / 0.24013125253755718) tmp = 0.0 if (x <= -7e+14) tmp = t_1; elseif (x <= 2.3e-60) tmp = Float64(Float64(z * -0.0424927283095952) + Float64(x * Float64(Float64(0.0212463641547976 * Float64(z + Float64(y * -2.0))) - Float64(z * -0.28294182010212804)))); elseif (x <= 7.6e-7) tmp = Float64(Float64(x + -2.0) / Float64(Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * 263.505074721)))) / Float64(x * Float64(y + Float64(x * 137.519416416))))); elseif (x <= 1.15e+33) tmp = Float64(Float64(x + -2.0) / Float64(t_0 / z)); elseif (x <= 2.5e+39) tmp = Float64(Float64(x * Float64(Float64(x - 2.0) * y)) / t_0); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z) t_0 = 47.066876606 + (x * (313.399215894 + (x * ((x * (x + 43.3400022514)) + 263.505074721)))); t_1 = (x + -2.0) / 0.24013125253755718; tmp = 0.0; if (x <= -7e+14) tmp = t_1; elseif (x <= 2.3e-60) tmp = (z * -0.0424927283095952) + (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804))); elseif (x <= 7.6e-7) tmp = (x + -2.0) / ((47.066876606 + (x * (313.399215894 + (x * 263.505074721)))) / (x * (y + (x * 137.519416416)))); elseif (x <= 1.15e+33) tmp = (x + -2.0) / (t_0 / z); elseif (x <= 2.5e+39) tmp = (x * ((x - 2.0) * y)) / t_0; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision]}, If[LessEqual[x, -7e+14], t$95$1, If[LessEqual[x, 2.3e-60], N[(N[(z * -0.0424927283095952), $MachinePrecision] + N[(x * N[(N[(0.0212463641547976 * N[(z + N[(y * -2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(z * -0.28294182010212804), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 7.6e-7], N[(N[(x + -2.0), $MachinePrecision] / N[(N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * 263.505074721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(x * N[(y + N[(x * 137.519416416), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.15e+33], N[(N[(x + -2.0), $MachinePrecision] / N[(t$95$0 / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.5e+39], N[(N[(x * N[(N[(x - 2.0), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision] / t$95$0), $MachinePrecision], t$95$1]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := 47.066876606 + x \cdot \left(313.399215894 + x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right)\right)\\
t_1 := \frac{x + -2}{0.24013125253755718}\\
\mathbf{if}\;x \leq -7 \cdot 10^{+14}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 2.3 \cdot 10^{-60}:\\
\;\;\;\;z \cdot -0.0424927283095952 + x \cdot \left(0.0212463641547976 \cdot \left(z + y \cdot -2\right) - z \cdot -0.28294182010212804\right)\\
\mathbf{elif}\;x \leq 7.6 \cdot 10^{-7}:\\
\;\;\;\;\frac{x + -2}{\frac{47.066876606 + x \cdot \left(313.399215894 + x \cdot 263.505074721\right)}{x \cdot \left(y + x \cdot 137.519416416\right)}}\\
\mathbf{elif}\;x \leq 1.15 \cdot 10^{+33}:\\
\;\;\;\;\frac{x + -2}{\frac{t_0}{z}}\\
\mathbf{elif}\;x \leq 2.5 \cdot 10^{+39}:\\
\;\;\;\;\frac{x \cdot \left(\left(x - 2\right) \cdot y\right)}{t_0}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if x < -7e14 or 2.50000000000000008e39 < x Initial program 7.8%
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 93.9%
if -7e14 < x < 2.3000000000000001e-60Initial program 99.7%
Simplified99.4%
Taylor expanded in x around 0 90.0%
if 2.3000000000000001e-60 < x < 7.60000000000000029e-7Initial 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 91.1%
Taylor expanded in x around 0 88.0%
*-commutative88.0%
Simplified88.0%
Taylor expanded in x around 0 88.0%
*-commutative88.0%
Simplified88.0%
if 7.60000000000000029e-7 < x < 1.15000000000000005e33Initial program 99.0%
associate-/l*99.3%
sub-neg99.3%
metadata-eval99.3%
fma-def99.3%
fma-def99.3%
fma-def99.3%
fma-def99.3%
fma-def99.3%
fma-def99.3%
fma-def99.3%
Simplified99.3%
Taylor expanded in z around inf 63.0%
if 1.15000000000000005e33 < x < 2.50000000000000008e39Initial program 98.8%
Simplified99.2%
Taylor expanded in y around inf 98.8%
Final simplification90.8%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(+
47.066876606
(*
x
(+
313.399215894
(* x (+ (* x (+ x 43.3400022514)) 263.505074721))))))
(t_1 (/ (+ x -2.0) 0.24013125253755718)))
(if (<= x -7e+14)
t_1
(if (<= x 2.3e-60)
(+
(* z -0.0424927283095952)
(*
x
(-
(* 0.0212463641547976 (+ z (* y -2.0)))
(* z -0.28294182010212804))))
(if (<= x 3.7e-6)
(/
(+ x -2.0)
(/
(+ 47.066876606 (* x (+ 313.399215894 (* x 263.505074721))))
(* x (+ y (* x 137.519416416)))))
(if (<= x 1e+33)
(/ (+ x -2.0) (/ t_0 z))
(if (<= x 2.5e+39) (/ (+ x -2.0) (/ t_0 (* x y))) t_1)))))))
double code(double x, double y, double z) {
double t_0 = 47.066876606 + (x * (313.399215894 + (x * ((x * (x + 43.3400022514)) + 263.505074721))));
double t_1 = (x + -2.0) / 0.24013125253755718;
double tmp;
if (x <= -7e+14) {
tmp = t_1;
} else if (x <= 2.3e-60) {
tmp = (z * -0.0424927283095952) + (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804)));
} else if (x <= 3.7e-6) {
tmp = (x + -2.0) / ((47.066876606 + (x * (313.399215894 + (x * 263.505074721)))) / (x * (y + (x * 137.519416416))));
} else if (x <= 1e+33) {
tmp = (x + -2.0) / (t_0 / z);
} else if (x <= 2.5e+39) {
tmp = (x + -2.0) / (t_0 / (x * y));
} else {
tmp = t_1;
}
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 = 47.066876606d0 + (x * (313.399215894d0 + (x * ((x * (x + 43.3400022514d0)) + 263.505074721d0))))
t_1 = (x + (-2.0d0)) / 0.24013125253755718d0
if (x <= (-7d+14)) then
tmp = t_1
else if (x <= 2.3d-60) then
tmp = (z * (-0.0424927283095952d0)) + (x * ((0.0212463641547976d0 * (z + (y * (-2.0d0)))) - (z * (-0.28294182010212804d0))))
else if (x <= 3.7d-6) then
tmp = (x + (-2.0d0)) / ((47.066876606d0 + (x * (313.399215894d0 + (x * 263.505074721d0)))) / (x * (y + (x * 137.519416416d0))))
else if (x <= 1d+33) then
tmp = (x + (-2.0d0)) / (t_0 / z)
else if (x <= 2.5d+39) then
tmp = (x + (-2.0d0)) / (t_0 / (x * y))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = 47.066876606 + (x * (313.399215894 + (x * ((x * (x + 43.3400022514)) + 263.505074721))));
double t_1 = (x + -2.0) / 0.24013125253755718;
double tmp;
if (x <= -7e+14) {
tmp = t_1;
} else if (x <= 2.3e-60) {
tmp = (z * -0.0424927283095952) + (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804)));
} else if (x <= 3.7e-6) {
tmp = (x + -2.0) / ((47.066876606 + (x * (313.399215894 + (x * 263.505074721)))) / (x * (y + (x * 137.519416416))));
} else if (x <= 1e+33) {
tmp = (x + -2.0) / (t_0 / z);
} else if (x <= 2.5e+39) {
tmp = (x + -2.0) / (t_0 / (x * y));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z): t_0 = 47.066876606 + (x * (313.399215894 + (x * ((x * (x + 43.3400022514)) + 263.505074721)))) t_1 = (x + -2.0) / 0.24013125253755718 tmp = 0 if x <= -7e+14: tmp = t_1 elif x <= 2.3e-60: tmp = (z * -0.0424927283095952) + (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804))) elif x <= 3.7e-6: tmp = (x + -2.0) / ((47.066876606 + (x * (313.399215894 + (x * 263.505074721)))) / (x * (y + (x * 137.519416416)))) elif x <= 1e+33: tmp = (x + -2.0) / (t_0 / z) elif x <= 2.5e+39: tmp = (x + -2.0) / (t_0 / (x * y)) else: tmp = t_1 return tmp
function code(x, y, z) t_0 = Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721))))) t_1 = Float64(Float64(x + -2.0) / 0.24013125253755718) tmp = 0.0 if (x <= -7e+14) tmp = t_1; elseif (x <= 2.3e-60) tmp = Float64(Float64(z * -0.0424927283095952) + Float64(x * Float64(Float64(0.0212463641547976 * Float64(z + Float64(y * -2.0))) - Float64(z * -0.28294182010212804)))); elseif (x <= 3.7e-6) tmp = Float64(Float64(x + -2.0) / Float64(Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * 263.505074721)))) / Float64(x * Float64(y + Float64(x * 137.519416416))))); elseif (x <= 1e+33) tmp = Float64(Float64(x + -2.0) / Float64(t_0 / z)); elseif (x <= 2.5e+39) tmp = Float64(Float64(x + -2.0) / Float64(t_0 / Float64(x * y))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z) t_0 = 47.066876606 + (x * (313.399215894 + (x * ((x * (x + 43.3400022514)) + 263.505074721)))); t_1 = (x + -2.0) / 0.24013125253755718; tmp = 0.0; if (x <= -7e+14) tmp = t_1; elseif (x <= 2.3e-60) tmp = (z * -0.0424927283095952) + (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804))); elseif (x <= 3.7e-6) tmp = (x + -2.0) / ((47.066876606 + (x * (313.399215894 + (x * 263.505074721)))) / (x * (y + (x * 137.519416416)))); elseif (x <= 1e+33) tmp = (x + -2.0) / (t_0 / z); elseif (x <= 2.5e+39) tmp = (x + -2.0) / (t_0 / (x * y)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision]}, If[LessEqual[x, -7e+14], t$95$1, If[LessEqual[x, 2.3e-60], N[(N[(z * -0.0424927283095952), $MachinePrecision] + N[(x * N[(N[(0.0212463641547976 * N[(z + N[(y * -2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(z * -0.28294182010212804), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 3.7e-6], N[(N[(x + -2.0), $MachinePrecision] / N[(N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * 263.505074721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(x * N[(y + N[(x * 137.519416416), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1e+33], N[(N[(x + -2.0), $MachinePrecision] / N[(t$95$0 / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.5e+39], N[(N[(x + -2.0), $MachinePrecision] / N[(t$95$0 / N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := 47.066876606 + x \cdot \left(313.399215894 + x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right)\right)\\
t_1 := \frac{x + -2}{0.24013125253755718}\\
\mathbf{if}\;x \leq -7 \cdot 10^{+14}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 2.3 \cdot 10^{-60}:\\
\;\;\;\;z \cdot -0.0424927283095952 + x \cdot \left(0.0212463641547976 \cdot \left(z + y \cdot -2\right) - z \cdot -0.28294182010212804\right)\\
\mathbf{elif}\;x \leq 3.7 \cdot 10^{-6}:\\
\;\;\;\;\frac{x + -2}{\frac{47.066876606 + x \cdot \left(313.399215894 + x \cdot 263.505074721\right)}{x \cdot \left(y + x \cdot 137.519416416\right)}}\\
\mathbf{elif}\;x \leq 10^{+33}:\\
\;\;\;\;\frac{x + -2}{\frac{t_0}{z}}\\
\mathbf{elif}\;x \leq 2.5 \cdot 10^{+39}:\\
\;\;\;\;\frac{x + -2}{\frac{t_0}{x \cdot y}}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if x < -7e14 or 2.50000000000000008e39 < x Initial program 7.8%
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 93.9%
if -7e14 < x < 2.3000000000000001e-60Initial program 99.7%
Simplified99.4%
Taylor expanded in x around 0 90.0%
if 2.3000000000000001e-60 < x < 3.7000000000000002e-6Initial 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 91.1%
Taylor expanded in x around 0 88.0%
*-commutative88.0%
Simplified88.0%
Taylor expanded in x around 0 88.0%
*-commutative88.0%
Simplified88.0%
if 3.7000000000000002e-6 < x < 9.9999999999999995e32Initial program 99.0%
associate-/l*99.3%
sub-neg99.3%
metadata-eval99.3%
fma-def99.3%
fma-def99.3%
fma-def99.3%
fma-def99.3%
fma-def99.3%
fma-def99.3%
fma-def99.3%
Simplified99.3%
Taylor expanded in z around inf 63.0%
if 9.9999999999999995e32 < x < 2.50000000000000008e39Initial program 98.8%
associate-/l*99.2%
sub-neg99.2%
metadata-eval99.2%
fma-def99.2%
fma-def99.2%
fma-def99.2%
fma-def99.2%
fma-def99.2%
fma-def99.2%
fma-def99.2%
Simplified99.2%
Taylor expanded in y around inf 99.2%
Final simplification90.8%
(FPCore (x y z)
:precision binary64
(if (or (<= x -6.2e+25) (not (<= x 2.5e+39)))
(/ (+ x -2.0) 0.24013125253755718)
(/
(* (- x 2.0) (+ z (* x (+ y (* x 137.519416416)))))
(+
47.066876606
(*
x
(+ 313.399215894 (* x (+ (* x (+ x 43.3400022514)) 263.505074721))))))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -6.2e+25) || !(x <= 2.5e+39)) {
tmp = (x + -2.0) / 0.24013125253755718;
} else {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * ((x * (x + 43.3400022514)) + 263.505074721)))));
}
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 <= (-6.2d+25)) .or. (.not. (x <= 2.5d+39))) then
tmp = (x + (-2.0d0)) / 0.24013125253755718d0
else
tmp = ((x - 2.0d0) * (z + (x * (y + (x * 137.519416416d0))))) / (47.066876606d0 + (x * (313.399215894d0 + (x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -6.2e+25) || !(x <= 2.5e+39)) {
tmp = (x + -2.0) / 0.24013125253755718;
} else {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * ((x * (x + 43.3400022514)) + 263.505074721)))));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -6.2e+25) or not (x <= 2.5e+39): tmp = (x + -2.0) / 0.24013125253755718 else: tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * ((x * (x + 43.3400022514)) + 263.505074721))))) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -6.2e+25) || !(x <= 2.5e+39)) 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(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)))))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -6.2e+25) || ~((x <= 2.5e+39))) tmp = (x + -2.0) / 0.24013125253755718; else tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * ((x * (x + 43.3400022514)) + 263.505074721))))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -6.2e+25], N[Not[LessEqual[x, 2.5e+39]], $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[(47.066876606 + N[(x * N[(313.399215894 + N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -6.2 \cdot 10^{+25} \lor \neg \left(x \leq 2.5 \cdot 10^{+39}\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)}{47.066876606 + x \cdot \left(313.399215894 + x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right)\right)}\\
\end{array}
\end{array}
if x < -6.1999999999999996e25 or 2.50000000000000008e39 < x Initial program 7.8%
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 93.9%
if -6.1999999999999996e25 < x < 2.50000000000000008e39Initial program 99.6%
Taylor expanded in x around 0 98.0%
*-commutative98.0%
Simplified98.0%
Final simplification96.3%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (/ (+ x -2.0) 0.24013125253755718)))
(if (<= x -7e+14)
t_0
(if (<= x 2e-60)
(+
(* z -0.0424927283095952)
(*
x
(-
(* 0.0212463641547976 (+ z (* y -2.0)))
(* z -0.28294182010212804))))
(if (<= x 6e-8)
(/
(+ x -2.0)
(/
(+ 47.066876606 (* x 313.399215894))
(* x (+ y (* x 137.519416416)))))
(if (<= x 2.5e+39)
(/
(* (- x 2.0) z)
(+
47.066876606
(*
x
(+
313.399215894
(* x (+ (* x (+ x 43.3400022514)) 263.505074721))))))
t_0))))))
double code(double x, double y, double z) {
double t_0 = (x + -2.0) / 0.24013125253755718;
double tmp;
if (x <= -7e+14) {
tmp = t_0;
} else if (x <= 2e-60) {
tmp = (z * -0.0424927283095952) + (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804)));
} else if (x <= 6e-8) {
tmp = (x + -2.0) / ((47.066876606 + (x * 313.399215894)) / (x * (y + (x * 137.519416416))));
} else if (x <= 2.5e+39) {
tmp = ((x - 2.0) * z) / (47.066876606 + (x * (313.399215894 + (x * ((x * (x + 43.3400022514)) + 263.505074721)))));
} else {
tmp = t_0;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = (x + (-2.0d0)) / 0.24013125253755718d0
if (x <= (-7d+14)) then
tmp = t_0
else if (x <= 2d-60) then
tmp = (z * (-0.0424927283095952d0)) + (x * ((0.0212463641547976d0 * (z + (y * (-2.0d0)))) - (z * (-0.28294182010212804d0))))
else if (x <= 6d-8) then
tmp = (x + (-2.0d0)) / ((47.066876606d0 + (x * 313.399215894d0)) / (x * (y + (x * 137.519416416d0))))
else if (x <= 2.5d+39) then
tmp = ((x - 2.0d0) * z) / (47.066876606d0 + (x * (313.399215894d0 + (x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)))))
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = (x + -2.0) / 0.24013125253755718;
double tmp;
if (x <= -7e+14) {
tmp = t_0;
} else if (x <= 2e-60) {
tmp = (z * -0.0424927283095952) + (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804)));
} else if (x <= 6e-8) {
tmp = (x + -2.0) / ((47.066876606 + (x * 313.399215894)) / (x * (y + (x * 137.519416416))));
} else if (x <= 2.5e+39) {
tmp = ((x - 2.0) * z) / (47.066876606 + (x * (313.399215894 + (x * ((x * (x + 43.3400022514)) + 263.505074721)))));
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = (x + -2.0) / 0.24013125253755718 tmp = 0 if x <= -7e+14: tmp = t_0 elif x <= 2e-60: tmp = (z * -0.0424927283095952) + (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804))) elif x <= 6e-8: tmp = (x + -2.0) / ((47.066876606 + (x * 313.399215894)) / (x * (y + (x * 137.519416416)))) elif x <= 2.5e+39: tmp = ((x - 2.0) * z) / (47.066876606 + (x * (313.399215894 + (x * ((x * (x + 43.3400022514)) + 263.505074721))))) else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(Float64(x + -2.0) / 0.24013125253755718) tmp = 0.0 if (x <= -7e+14) tmp = t_0; elseif (x <= 2e-60) tmp = Float64(Float64(z * -0.0424927283095952) + Float64(x * Float64(Float64(0.0212463641547976 * Float64(z + Float64(y * -2.0))) - Float64(z * -0.28294182010212804)))); elseif (x <= 6e-8) tmp = Float64(Float64(x + -2.0) / Float64(Float64(47.066876606 + Float64(x * 313.399215894)) / Float64(x * Float64(y + Float64(x * 137.519416416))))); elseif (x <= 2.5e+39) tmp = Float64(Float64(Float64(x - 2.0) * z) / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)))))); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = (x + -2.0) / 0.24013125253755718; tmp = 0.0; if (x <= -7e+14) tmp = t_0; elseif (x <= 2e-60) tmp = (z * -0.0424927283095952) + (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804))); elseif (x <= 6e-8) tmp = (x + -2.0) / ((47.066876606 + (x * 313.399215894)) / (x * (y + (x * 137.519416416)))); elseif (x <= 2.5e+39) tmp = ((x - 2.0) * z) / (47.066876606 + (x * (313.399215894 + (x * ((x * (x + 43.3400022514)) + 263.505074721))))); else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision]}, If[LessEqual[x, -7e+14], t$95$0, If[LessEqual[x, 2e-60], N[(N[(z * -0.0424927283095952), $MachinePrecision] + N[(x * N[(N[(0.0212463641547976 * N[(z + N[(y * -2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(z * -0.28294182010212804), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 6e-8], N[(N[(x + -2.0), $MachinePrecision] / N[(N[(47.066876606 + N[(x * 313.399215894), $MachinePrecision]), $MachinePrecision] / N[(x * N[(y + N[(x * 137.519416416), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.5e+39], N[(N[(N[(x - 2.0), $MachinePrecision] * z), $MachinePrecision] / N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$0]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{x + -2}{0.24013125253755718}\\
\mathbf{if}\;x \leq -7 \cdot 10^{+14}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;x \leq 2 \cdot 10^{-60}:\\
\;\;\;\;z \cdot -0.0424927283095952 + x \cdot \left(0.0212463641547976 \cdot \left(z + y \cdot -2\right) - z \cdot -0.28294182010212804\right)\\
\mathbf{elif}\;x \leq 6 \cdot 10^{-8}:\\
\;\;\;\;\frac{x + -2}{\frac{47.066876606 + x \cdot 313.399215894}{x \cdot \left(y + x \cdot 137.519416416\right)}}\\
\mathbf{elif}\;x \leq 2.5 \cdot 10^{+39}:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot z}{47.066876606 + x \cdot \left(313.399215894 + x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;t_0\\
\end{array}
\end{array}
if x < -7e14 or 2.50000000000000008e39 < x Initial program 7.8%
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 93.9%
if -7e14 < x < 1.9999999999999999e-60Initial program 99.7%
Simplified99.4%
Taylor expanded in x around 0 90.0%
if 1.9999999999999999e-60 < x < 5.99999999999999946e-8Initial program 99.5%
associate-/l*99.3%
sub-neg99.3%
metadata-eval99.3%
fma-def99.3%
fma-def99.3%
fma-def99.3%
fma-def99.3%
fma-def99.3%
fma-def99.3%
fma-def99.3%
Simplified99.3%
Taylor expanded in z around 0 99.3%
Taylor expanded in x around 0 95.6%
*-commutative95.6%
Simplified95.6%
Taylor expanded in x around 0 95.6%
*-commutative95.6%
Simplified95.6%
if 5.99999999999999946e-8 < x < 2.50000000000000008e39Initial program 99.0%
Simplified98.7%
Taylor expanded in z around inf 41.1%
Final simplification88.9%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (/ (+ x -2.0) 0.24013125253755718)))
(if (<= x -7e+14)
t_0
(if (<= x 2.15e-60)
(+
(* z -0.0424927283095952)
(*
x
(-
(* 0.0212463641547976 (+ z (* y -2.0)))
(* z -0.28294182010212804))))
(if (<= x 7.4e-6)
(/
(+ x -2.0)
(/
(+ 47.066876606 (* x (+ 313.399215894 (* x 263.505074721))))
(* x (+ y (* x 137.519416416)))))
(if (<= x 2.5e+39)
(/
(* (- x 2.0) z)
(+
47.066876606
(*
x
(+
313.399215894
(* x (+ (* x (+ x 43.3400022514)) 263.505074721))))))
t_0))))))
double code(double x, double y, double z) {
double t_0 = (x + -2.0) / 0.24013125253755718;
double tmp;
if (x <= -7e+14) {
tmp = t_0;
} else if (x <= 2.15e-60) {
tmp = (z * -0.0424927283095952) + (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804)));
} else if (x <= 7.4e-6) {
tmp = (x + -2.0) / ((47.066876606 + (x * (313.399215894 + (x * 263.505074721)))) / (x * (y + (x * 137.519416416))));
} else if (x <= 2.5e+39) {
tmp = ((x - 2.0) * z) / (47.066876606 + (x * (313.399215894 + (x * ((x * (x + 43.3400022514)) + 263.505074721)))));
} else {
tmp = t_0;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = (x + (-2.0d0)) / 0.24013125253755718d0
if (x <= (-7d+14)) then
tmp = t_0
else if (x <= 2.15d-60) then
tmp = (z * (-0.0424927283095952d0)) + (x * ((0.0212463641547976d0 * (z + (y * (-2.0d0)))) - (z * (-0.28294182010212804d0))))
else if (x <= 7.4d-6) then
tmp = (x + (-2.0d0)) / ((47.066876606d0 + (x * (313.399215894d0 + (x * 263.505074721d0)))) / (x * (y + (x * 137.519416416d0))))
else if (x <= 2.5d+39) then
tmp = ((x - 2.0d0) * z) / (47.066876606d0 + (x * (313.399215894d0 + (x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)))))
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = (x + -2.0) / 0.24013125253755718;
double tmp;
if (x <= -7e+14) {
tmp = t_0;
} else if (x <= 2.15e-60) {
tmp = (z * -0.0424927283095952) + (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804)));
} else if (x <= 7.4e-6) {
tmp = (x + -2.0) / ((47.066876606 + (x * (313.399215894 + (x * 263.505074721)))) / (x * (y + (x * 137.519416416))));
} else if (x <= 2.5e+39) {
tmp = ((x - 2.0) * z) / (47.066876606 + (x * (313.399215894 + (x * ((x * (x + 43.3400022514)) + 263.505074721)))));
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = (x + -2.0) / 0.24013125253755718 tmp = 0 if x <= -7e+14: tmp = t_0 elif x <= 2.15e-60: tmp = (z * -0.0424927283095952) + (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804))) elif x <= 7.4e-6: tmp = (x + -2.0) / ((47.066876606 + (x * (313.399215894 + (x * 263.505074721)))) / (x * (y + (x * 137.519416416)))) elif x <= 2.5e+39: tmp = ((x - 2.0) * z) / (47.066876606 + (x * (313.399215894 + (x * ((x * (x + 43.3400022514)) + 263.505074721))))) else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(Float64(x + -2.0) / 0.24013125253755718) tmp = 0.0 if (x <= -7e+14) tmp = t_0; elseif (x <= 2.15e-60) tmp = Float64(Float64(z * -0.0424927283095952) + Float64(x * Float64(Float64(0.0212463641547976 * Float64(z + Float64(y * -2.0))) - Float64(z * -0.28294182010212804)))); elseif (x <= 7.4e-6) tmp = Float64(Float64(x + -2.0) / Float64(Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * 263.505074721)))) / Float64(x * Float64(y + Float64(x * 137.519416416))))); elseif (x <= 2.5e+39) tmp = Float64(Float64(Float64(x - 2.0) * z) / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)))))); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = (x + -2.0) / 0.24013125253755718; tmp = 0.0; if (x <= -7e+14) tmp = t_0; elseif (x <= 2.15e-60) tmp = (z * -0.0424927283095952) + (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804))); elseif (x <= 7.4e-6) tmp = (x + -2.0) / ((47.066876606 + (x * (313.399215894 + (x * 263.505074721)))) / (x * (y + (x * 137.519416416)))); elseif (x <= 2.5e+39) tmp = ((x - 2.0) * z) / (47.066876606 + (x * (313.399215894 + (x * ((x * (x + 43.3400022514)) + 263.505074721))))); else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision]}, If[LessEqual[x, -7e+14], t$95$0, If[LessEqual[x, 2.15e-60], N[(N[(z * -0.0424927283095952), $MachinePrecision] + N[(x * N[(N[(0.0212463641547976 * N[(z + N[(y * -2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(z * -0.28294182010212804), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 7.4e-6], N[(N[(x + -2.0), $MachinePrecision] / N[(N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * 263.505074721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(x * N[(y + N[(x * 137.519416416), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.5e+39], N[(N[(N[(x - 2.0), $MachinePrecision] * z), $MachinePrecision] / N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$0]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{x + -2}{0.24013125253755718}\\
\mathbf{if}\;x \leq -7 \cdot 10^{+14}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;x \leq 2.15 \cdot 10^{-60}:\\
\;\;\;\;z \cdot -0.0424927283095952 + x \cdot \left(0.0212463641547976 \cdot \left(z + y \cdot -2\right) - z \cdot -0.28294182010212804\right)\\
\mathbf{elif}\;x \leq 7.4 \cdot 10^{-6}:\\
\;\;\;\;\frac{x + -2}{\frac{47.066876606 + x \cdot \left(313.399215894 + x \cdot 263.505074721\right)}{x \cdot \left(y + x \cdot 137.519416416\right)}}\\
\mathbf{elif}\;x \leq 2.5 \cdot 10^{+39}:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot z}{47.066876606 + x \cdot \left(313.399215894 + x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;t_0\\
\end{array}
\end{array}
if x < -7e14 or 2.50000000000000008e39 < x Initial program 7.8%
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 93.9%
if -7e14 < x < 2.15e-60Initial program 99.7%
Simplified99.4%
Taylor expanded in x around 0 90.0%
if 2.15e-60 < x < 7.4000000000000003e-6Initial 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 91.1%
Taylor expanded in x around 0 88.0%
*-commutative88.0%
Simplified88.0%
Taylor expanded in x around 0 88.0%
*-commutative88.0%
Simplified88.0%
if 7.4000000000000003e-6 < x < 2.50000000000000008e39Initial program 98.9%
Simplified98.7%
Taylor expanded in z around inf 39.7%
Final simplification88.9%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (/ (+ x -2.0) 0.24013125253755718)))
(if (<= x -7e+14)
t_0
(if (<= x 2.3e-60)
(+
(* z -0.0424927283095952)
(*
x
(-
(* 0.0212463641547976 (+ z (* y -2.0)))
(* z -0.28294182010212804))))
(if (<= x 2.5e-6)
(/
(+ x -2.0)
(/
(+ 47.066876606 (* x (+ 313.399215894 (* x 263.505074721))))
(* x (+ y (* x 137.519416416)))))
(if (<= x 2.5e+39)
(/
(+ x -2.0)
(/
(+
47.066876606
(*
x
(+
313.399215894
(* x (+ (* x (+ x 43.3400022514)) 263.505074721)))))
z))
t_0))))))
double code(double x, double y, double z) {
double t_0 = (x + -2.0) / 0.24013125253755718;
double tmp;
if (x <= -7e+14) {
tmp = t_0;
} else if (x <= 2.3e-60) {
tmp = (z * -0.0424927283095952) + (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804)));
} else if (x <= 2.5e-6) {
tmp = (x + -2.0) / ((47.066876606 + (x * (313.399215894 + (x * 263.505074721)))) / (x * (y + (x * 137.519416416))));
} else if (x <= 2.5e+39) {
tmp = (x + -2.0) / ((47.066876606 + (x * (313.399215894 + (x * ((x * (x + 43.3400022514)) + 263.505074721))))) / z);
} else {
tmp = t_0;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = (x + (-2.0d0)) / 0.24013125253755718d0
if (x <= (-7d+14)) then
tmp = t_0
else if (x <= 2.3d-60) then
tmp = (z * (-0.0424927283095952d0)) + (x * ((0.0212463641547976d0 * (z + (y * (-2.0d0)))) - (z * (-0.28294182010212804d0))))
else if (x <= 2.5d-6) then
tmp = (x + (-2.0d0)) / ((47.066876606d0 + (x * (313.399215894d0 + (x * 263.505074721d0)))) / (x * (y + (x * 137.519416416d0))))
else if (x <= 2.5d+39) then
tmp = (x + (-2.0d0)) / ((47.066876606d0 + (x * (313.399215894d0 + (x * ((x * (x + 43.3400022514d0)) + 263.505074721d0))))) / z)
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = (x + -2.0) / 0.24013125253755718;
double tmp;
if (x <= -7e+14) {
tmp = t_0;
} else if (x <= 2.3e-60) {
tmp = (z * -0.0424927283095952) + (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804)));
} else if (x <= 2.5e-6) {
tmp = (x + -2.0) / ((47.066876606 + (x * (313.399215894 + (x * 263.505074721)))) / (x * (y + (x * 137.519416416))));
} else if (x <= 2.5e+39) {
tmp = (x + -2.0) / ((47.066876606 + (x * (313.399215894 + (x * ((x * (x + 43.3400022514)) + 263.505074721))))) / z);
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = (x + -2.0) / 0.24013125253755718 tmp = 0 if x <= -7e+14: tmp = t_0 elif x <= 2.3e-60: tmp = (z * -0.0424927283095952) + (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804))) elif x <= 2.5e-6: tmp = (x + -2.0) / ((47.066876606 + (x * (313.399215894 + (x * 263.505074721)))) / (x * (y + (x * 137.519416416)))) elif x <= 2.5e+39: tmp = (x + -2.0) / ((47.066876606 + (x * (313.399215894 + (x * ((x * (x + 43.3400022514)) + 263.505074721))))) / z) else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(Float64(x + -2.0) / 0.24013125253755718) tmp = 0.0 if (x <= -7e+14) tmp = t_0; elseif (x <= 2.3e-60) tmp = Float64(Float64(z * -0.0424927283095952) + Float64(x * Float64(Float64(0.0212463641547976 * Float64(z + Float64(y * -2.0))) - Float64(z * -0.28294182010212804)))); elseif (x <= 2.5e-6) tmp = Float64(Float64(x + -2.0) / Float64(Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * 263.505074721)))) / Float64(x * Float64(y + Float64(x * 137.519416416))))); elseif (x <= 2.5e+39) tmp = Float64(Float64(x + -2.0) / Float64(Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721))))) / z)); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = (x + -2.0) / 0.24013125253755718; tmp = 0.0; if (x <= -7e+14) tmp = t_0; elseif (x <= 2.3e-60) tmp = (z * -0.0424927283095952) + (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804))); elseif (x <= 2.5e-6) tmp = (x + -2.0) / ((47.066876606 + (x * (313.399215894 + (x * 263.505074721)))) / (x * (y + (x * 137.519416416)))); elseif (x <= 2.5e+39) tmp = (x + -2.0) / ((47.066876606 + (x * (313.399215894 + (x * ((x * (x + 43.3400022514)) + 263.505074721))))) / z); else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision]}, If[LessEqual[x, -7e+14], t$95$0, If[LessEqual[x, 2.3e-60], N[(N[(z * -0.0424927283095952), $MachinePrecision] + N[(x * N[(N[(0.0212463641547976 * N[(z + N[(y * -2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(z * -0.28294182010212804), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.5e-6], N[(N[(x + -2.0), $MachinePrecision] / N[(N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * 263.505074721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(x * N[(y + N[(x * 137.519416416), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.5e+39], N[(N[(x + -2.0), $MachinePrecision] / N[(N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], t$95$0]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{x + -2}{0.24013125253755718}\\
\mathbf{if}\;x \leq -7 \cdot 10^{+14}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;x \leq 2.3 \cdot 10^{-60}:\\
\;\;\;\;z \cdot -0.0424927283095952 + x \cdot \left(0.0212463641547976 \cdot \left(z + y \cdot -2\right) - z \cdot -0.28294182010212804\right)\\
\mathbf{elif}\;x \leq 2.5 \cdot 10^{-6}:\\
\;\;\;\;\frac{x + -2}{\frac{47.066876606 + x \cdot \left(313.399215894 + x \cdot 263.505074721\right)}{x \cdot \left(y + x \cdot 137.519416416\right)}}\\
\mathbf{elif}\;x \leq 2.5 \cdot 10^{+39}:\\
\;\;\;\;\frac{x + -2}{\frac{47.066876606 + x \cdot \left(313.399215894 + x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right)\right)}{z}}\\
\mathbf{else}:\\
\;\;\;\;t_0\\
\end{array}
\end{array}
if x < -7e14 or 2.50000000000000008e39 < x Initial program 7.8%
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 93.9%
if -7e14 < x < 2.3000000000000001e-60Initial program 99.7%
Simplified99.4%
Taylor expanded in x around 0 90.0%
if 2.3000000000000001e-60 < x < 2.5000000000000002e-6Initial 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 91.1%
Taylor expanded in x around 0 88.0%
*-commutative88.0%
Simplified88.0%
Taylor expanded in x around 0 88.0%
*-commutative88.0%
Simplified88.0%
if 2.5000000000000002e-6 < x < 2.50000000000000008e39Initial program 98.9%
associate-/l*99.3%
sub-neg99.3%
metadata-eval99.3%
fma-def99.3%
fma-def99.3%
fma-def99.3%
fma-def99.3%
fma-def99.3%
fma-def99.3%
fma-def99.3%
Simplified99.3%
Taylor expanded in z around inf 39.9%
Final simplification88.9%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (/ (+ x -2.0) 0.24013125253755718))
(t_1
(+
(* z -0.0424927283095952)
(*
x
(-
(* 0.0212463641547976 (+ z (* y -2.0)))
(* z -0.28294182010212804))))))
(if (<= x -7e+14)
t_0
(if (<= x 2.3e-60)
t_1
(if (<= x 3.8e-8)
(/
(+ x -2.0)
(/
(+ 47.066876606 (* x 313.399215894))
(* x (+ y (* x 137.519416416)))))
(if (<= x 620000000.0) t_1 t_0))))))
double code(double x, double y, double z) {
double t_0 = (x + -2.0) / 0.24013125253755718;
double t_1 = (z * -0.0424927283095952) + (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804)));
double tmp;
if (x <= -7e+14) {
tmp = t_0;
} else if (x <= 2.3e-60) {
tmp = t_1;
} else if (x <= 3.8e-8) {
tmp = (x + -2.0) / ((47.066876606 + (x * 313.399215894)) / (x * (y + (x * 137.519416416))));
} else if (x <= 620000000.0) {
tmp = t_1;
} else {
tmp = t_0;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: t_1
real(8) :: tmp
t_0 = (x + (-2.0d0)) / 0.24013125253755718d0
t_1 = (z * (-0.0424927283095952d0)) + (x * ((0.0212463641547976d0 * (z + (y * (-2.0d0)))) - (z * (-0.28294182010212804d0))))
if (x <= (-7d+14)) then
tmp = t_0
else if (x <= 2.3d-60) then
tmp = t_1
else if (x <= 3.8d-8) then
tmp = (x + (-2.0d0)) / ((47.066876606d0 + (x * 313.399215894d0)) / (x * (y + (x * 137.519416416d0))))
else if (x <= 620000000.0d0) then
tmp = t_1
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = (x + -2.0) / 0.24013125253755718;
double t_1 = (z * -0.0424927283095952) + (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804)));
double tmp;
if (x <= -7e+14) {
tmp = t_0;
} else if (x <= 2.3e-60) {
tmp = t_1;
} else if (x <= 3.8e-8) {
tmp = (x + -2.0) / ((47.066876606 + (x * 313.399215894)) / (x * (y + (x * 137.519416416))));
} else if (x <= 620000000.0) {
tmp = t_1;
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = (x + -2.0) / 0.24013125253755718 t_1 = (z * -0.0424927283095952) + (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804))) tmp = 0 if x <= -7e+14: tmp = t_0 elif x <= 2.3e-60: tmp = t_1 elif x <= 3.8e-8: tmp = (x + -2.0) / ((47.066876606 + (x * 313.399215894)) / (x * (y + (x * 137.519416416)))) elif x <= 620000000.0: tmp = t_1 else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(Float64(x + -2.0) / 0.24013125253755718) t_1 = Float64(Float64(z * -0.0424927283095952) + Float64(x * Float64(Float64(0.0212463641547976 * Float64(z + Float64(y * -2.0))) - Float64(z * -0.28294182010212804)))) tmp = 0.0 if (x <= -7e+14) tmp = t_0; elseif (x <= 2.3e-60) tmp = t_1; elseif (x <= 3.8e-8) tmp = Float64(Float64(x + -2.0) / Float64(Float64(47.066876606 + Float64(x * 313.399215894)) / Float64(x * Float64(y + Float64(x * 137.519416416))))); elseif (x <= 620000000.0) tmp = t_1; else tmp = t_0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = (x + -2.0) / 0.24013125253755718; t_1 = (z * -0.0424927283095952) + (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804))); tmp = 0.0; if (x <= -7e+14) tmp = t_0; elseif (x <= 2.3e-60) tmp = t_1; elseif (x <= 3.8e-8) tmp = (x + -2.0) / ((47.066876606 + (x * 313.399215894)) / (x * (y + (x * 137.519416416)))); elseif (x <= 620000000.0) tmp = t_1; else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision]}, Block[{t$95$1 = N[(N[(z * -0.0424927283095952), $MachinePrecision] + N[(x * N[(N[(0.0212463641547976 * N[(z + N[(y * -2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(z * -0.28294182010212804), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -7e+14], t$95$0, If[LessEqual[x, 2.3e-60], t$95$1, If[LessEqual[x, 3.8e-8], N[(N[(x + -2.0), $MachinePrecision] / N[(N[(47.066876606 + N[(x * 313.399215894), $MachinePrecision]), $MachinePrecision] / N[(x * N[(y + N[(x * 137.519416416), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 620000000.0], t$95$1, t$95$0]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{x + -2}{0.24013125253755718}\\
t_1 := z \cdot -0.0424927283095952 + x \cdot \left(0.0212463641547976 \cdot \left(z + y \cdot -2\right) - z \cdot -0.28294182010212804\right)\\
\mathbf{if}\;x \leq -7 \cdot 10^{+14}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;x \leq 2.3 \cdot 10^{-60}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 3.8 \cdot 10^{-8}:\\
\;\;\;\;\frac{x + -2}{\frac{47.066876606 + x \cdot 313.399215894}{x \cdot \left(y + x \cdot 137.519416416\right)}}\\
\mathbf{elif}\;x \leq 620000000:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_0\\
\end{array}
\end{array}
if x < -7e14 or 6.2e8 < x Initial program 16.5%
associate-/l*19.9%
sub-neg19.9%
metadata-eval19.9%
fma-def19.9%
fma-def19.9%
fma-def19.9%
fma-def19.9%
fma-def19.9%
fma-def19.9%
fma-def19.9%
Simplified19.9%
Taylor expanded in x around inf 86.7%
if -7e14 < x < 2.3000000000000001e-60 or 3.80000000000000028e-8 < x < 6.2e8Initial program 99.7%
Simplified99.4%
Taylor expanded in x around 0 88.8%
if 2.3000000000000001e-60 < x < 3.80000000000000028e-8Initial program 99.5%
associate-/l*99.3%
sub-neg99.3%
metadata-eval99.3%
fma-def99.3%
fma-def99.3%
fma-def99.3%
fma-def99.3%
fma-def99.3%
fma-def99.3%
fma-def99.3%
Simplified99.3%
Taylor expanded in z around 0 99.3%
Taylor expanded in x around 0 95.6%
*-commutative95.6%
Simplified95.6%
Taylor expanded in x around 0 95.6%
*-commutative95.6%
Simplified95.6%
Final simplification88.1%
(FPCore (x y z)
:precision binary64
(if (or (<= x -7e+14) (not (<= x 620000000.0)))
(/ (+ x -2.0) 0.24013125253755718)
(+
(* z -0.0424927283095952)
(*
x
(- (* 0.0212463641547976 (+ z (* y -2.0))) (* z -0.28294182010212804))))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -7e+14) || !(x <= 620000000.0)) {
tmp = (x + -2.0) / 0.24013125253755718;
} else {
tmp = (z * -0.0424927283095952) + (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804)));
}
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 <= (-7d+14)) .or. (.not. (x <= 620000000.0d0))) then
tmp = (x + (-2.0d0)) / 0.24013125253755718d0
else
tmp = (z * (-0.0424927283095952d0)) + (x * ((0.0212463641547976d0 * (z + (y * (-2.0d0)))) - (z * (-0.28294182010212804d0))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -7e+14) || !(x <= 620000000.0)) {
tmp = (x + -2.0) / 0.24013125253755718;
} else {
tmp = (z * -0.0424927283095952) + (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804)));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -7e+14) or not (x <= 620000000.0): tmp = (x + -2.0) / 0.24013125253755718 else: tmp = (z * -0.0424927283095952) + (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804))) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -7e+14) || !(x <= 620000000.0)) tmp = Float64(Float64(x + -2.0) / 0.24013125253755718); else tmp = Float64(Float64(z * -0.0424927283095952) + Float64(x * Float64(Float64(0.0212463641547976 * Float64(z + Float64(y * -2.0))) - Float64(z * -0.28294182010212804)))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -7e+14) || ~((x <= 620000000.0))) tmp = (x + -2.0) / 0.24013125253755718; else tmp = (z * -0.0424927283095952) + (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -7e+14], N[Not[LessEqual[x, 620000000.0]], $MachinePrecision]], N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision], N[(N[(z * -0.0424927283095952), $MachinePrecision] + N[(x * N[(N[(0.0212463641547976 * N[(z + N[(y * -2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(z * -0.28294182010212804), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -7 \cdot 10^{+14} \lor \neg \left(x \leq 620000000\right):\\
\;\;\;\;\frac{x + -2}{0.24013125253755718}\\
\mathbf{else}:\\
\;\;\;\;z \cdot -0.0424927283095952 + x \cdot \left(0.0212463641547976 \cdot \left(z + y \cdot -2\right) - z \cdot -0.28294182010212804\right)\\
\end{array}
\end{array}
if x < -7e14 or 6.2e8 < x Initial program 16.5%
associate-/l*19.9%
sub-neg19.9%
metadata-eval19.9%
fma-def19.9%
fma-def19.9%
fma-def19.9%
fma-def19.9%
fma-def19.9%
fma-def19.9%
fma-def19.9%
Simplified19.9%
Taylor expanded in x around inf 86.7%
if -7e14 < x < 6.2e8Initial program 99.7%
Simplified99.4%
Taylor expanded in x around 0 85.9%
Final simplification86.3%
(FPCore (x y z)
:precision binary64
(if (or (<= x -7e+14) (not (<= x 620000000.0)))
(/ (+ x -2.0) 0.24013125253755718)
(+
(* z -0.0424927283095952)
(* x (- (* y -0.0424927283095952) (* z -0.28294182010212804))))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -7e+14) || !(x <= 620000000.0)) {
tmp = (x + -2.0) / 0.24013125253755718;
} else {
tmp = (z * -0.0424927283095952) + (x * ((y * -0.0424927283095952) - (z * -0.28294182010212804)));
}
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 <= (-7d+14)) .or. (.not. (x <= 620000000.0d0))) then
tmp = (x + (-2.0d0)) / 0.24013125253755718d0
else
tmp = (z * (-0.0424927283095952d0)) + (x * ((y * (-0.0424927283095952d0)) - (z * (-0.28294182010212804d0))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -7e+14) || !(x <= 620000000.0)) {
tmp = (x + -2.0) / 0.24013125253755718;
} else {
tmp = (z * -0.0424927283095952) + (x * ((y * -0.0424927283095952) - (z * -0.28294182010212804)));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -7e+14) or not (x <= 620000000.0): tmp = (x + -2.0) / 0.24013125253755718 else: tmp = (z * -0.0424927283095952) + (x * ((y * -0.0424927283095952) - (z * -0.28294182010212804))) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -7e+14) || !(x <= 620000000.0)) tmp = Float64(Float64(x + -2.0) / 0.24013125253755718); else tmp = Float64(Float64(z * -0.0424927283095952) + Float64(x * Float64(Float64(y * -0.0424927283095952) - Float64(z * -0.28294182010212804)))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -7e+14) || ~((x <= 620000000.0))) tmp = (x + -2.0) / 0.24013125253755718; else tmp = (z * -0.0424927283095952) + (x * ((y * -0.0424927283095952) - (z * -0.28294182010212804))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -7e+14], N[Not[LessEqual[x, 620000000.0]], $MachinePrecision]], N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision], N[(N[(z * -0.0424927283095952), $MachinePrecision] + N[(x * N[(N[(y * -0.0424927283095952), $MachinePrecision] - N[(z * -0.28294182010212804), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -7 \cdot 10^{+14} \lor \neg \left(x \leq 620000000\right):\\
\;\;\;\;\frac{x + -2}{0.24013125253755718}\\
\mathbf{else}:\\
\;\;\;\;z \cdot -0.0424927283095952 + x \cdot \left(y \cdot -0.0424927283095952 - z \cdot -0.28294182010212804\right)\\
\end{array}
\end{array}
if x < -7e14 or 6.2e8 < x Initial program 16.5%
associate-/l*19.9%
sub-neg19.9%
metadata-eval19.9%
fma-def19.9%
fma-def19.9%
fma-def19.9%
fma-def19.9%
fma-def19.9%
fma-def19.9%
fma-def19.9%
Simplified19.9%
Taylor expanded in x around inf 86.7%
if -7e14 < x < 6.2e8Initial program 99.7%
Simplified99.4%
Taylor expanded in x around 0 85.9%
Taylor expanded in z around 0 85.3%
*-commutative85.3%
Simplified85.3%
Final simplification86.0%
(FPCore (x y z) :precision binary64 (if (or (<= x -5.5) (not (<= x 620000000.0))) (/ (+ x -2.0) 0.24013125253755718) (+ (* z -0.0424927283095952) (* x (* z 0.3041881842569256)))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -5.5) || !(x <= 620000000.0)) {
tmp = (x + -2.0) / 0.24013125253755718;
} else {
tmp = (z * -0.0424927283095952) + (x * (z * 0.3041881842569256));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((x <= (-5.5d0)) .or. (.not. (x <= 620000000.0d0))) then
tmp = (x + (-2.0d0)) / 0.24013125253755718d0
else
tmp = (z * (-0.0424927283095952d0)) + (x * (z * 0.3041881842569256d0))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -5.5) || !(x <= 620000000.0)) {
tmp = (x + -2.0) / 0.24013125253755718;
} else {
tmp = (z * -0.0424927283095952) + (x * (z * 0.3041881842569256));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -5.5) or not (x <= 620000000.0): tmp = (x + -2.0) / 0.24013125253755718 else: tmp = (z * -0.0424927283095952) + (x * (z * 0.3041881842569256)) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -5.5) || !(x <= 620000000.0)) tmp = Float64(Float64(x + -2.0) / 0.24013125253755718); else tmp = Float64(Float64(z * -0.0424927283095952) + Float64(x * Float64(z * 0.3041881842569256))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -5.5) || ~((x <= 620000000.0))) tmp = (x + -2.0) / 0.24013125253755718; else tmp = (z * -0.0424927283095952) + (x * (z * 0.3041881842569256)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -5.5], N[Not[LessEqual[x, 620000000.0]], $MachinePrecision]], N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision], N[(N[(z * -0.0424927283095952), $MachinePrecision] + N[(x * N[(z * 0.3041881842569256), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -5.5 \lor \neg \left(x \leq 620000000\right):\\
\;\;\;\;\frac{x + -2}{0.24013125253755718}\\
\mathbf{else}:\\
\;\;\;\;z \cdot -0.0424927283095952 + x \cdot \left(z \cdot 0.3041881842569256\right)\\
\end{array}
\end{array}
if x < -5.5 or 6.2e8 < x Initial program 19.3%
associate-/l*22.6%
sub-neg22.6%
metadata-eval22.6%
fma-def22.6%
fma-def22.6%
fma-def22.6%
fma-def22.6%
fma-def22.6%
fma-def22.6%
fma-def22.6%
Simplified22.6%
Taylor expanded in x around inf 84.0%
if -5.5 < x < 6.2e8Initial program 99.7%
Simplified99.4%
Taylor expanded in x around 0 88.1%
Taylor expanded in y around 0 66.2%
distribute-rgt-out--66.2%
metadata-eval66.2%
Simplified66.2%
Final simplification74.5%
(FPCore (x y z) :precision binary64 (if (or (<= x -7e+14) (not (<= x 2.0))) (/ (+ x -2.0) 0.24013125253755718) (+ (* z -0.0424927283095952) (* -0.0424927283095952 (* x y)))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -7e+14) || !(x <= 2.0)) {
tmp = (x + -2.0) / 0.24013125253755718;
} else {
tmp = (z * -0.0424927283095952) + (-0.0424927283095952 * (x * y));
}
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 <= (-7d+14)) .or. (.not. (x <= 2.0d0))) then
tmp = (x + (-2.0d0)) / 0.24013125253755718d0
else
tmp = (z * (-0.0424927283095952d0)) + ((-0.0424927283095952d0) * (x * y))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -7e+14) || !(x <= 2.0)) {
tmp = (x + -2.0) / 0.24013125253755718;
} else {
tmp = (z * -0.0424927283095952) + (-0.0424927283095952 * (x * y));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -7e+14) or not (x <= 2.0): tmp = (x + -2.0) / 0.24013125253755718 else: tmp = (z * -0.0424927283095952) + (-0.0424927283095952 * (x * y)) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -7e+14) || !(x <= 2.0)) tmp = Float64(Float64(x + -2.0) / 0.24013125253755718); else tmp = Float64(Float64(z * -0.0424927283095952) + Float64(-0.0424927283095952 * Float64(x * y))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -7e+14) || ~((x <= 2.0))) tmp = (x + -2.0) / 0.24013125253755718; else tmp = (z * -0.0424927283095952) + (-0.0424927283095952 * (x * y)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -7e+14], N[Not[LessEqual[x, 2.0]], $MachinePrecision]], N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision], N[(N[(z * -0.0424927283095952), $MachinePrecision] + N[(-0.0424927283095952 * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -7 \cdot 10^{+14} \lor \neg \left(x \leq 2\right):\\
\;\;\;\;\frac{x + -2}{0.24013125253755718}\\
\mathbf{else}:\\
\;\;\;\;z \cdot -0.0424927283095952 + -0.0424927283095952 \cdot \left(x \cdot y\right)\\
\end{array}
\end{array}
if x < -7e14 or 2 < x Initial program 17.2%
associate-/l*20.6%
sub-neg20.6%
metadata-eval20.6%
fma-def20.6%
fma-def20.6%
fma-def20.6%
fma-def20.6%
fma-def20.6%
fma-def20.6%
fma-def20.6%
Simplified20.6%
Taylor expanded in x around inf 86.0%
if -7e14 < x < 2Initial program 99.7%
Simplified99.4%
Taylor expanded in x around 0 86.5%
Taylor expanded in z around 0 85.7%
*-commutative85.7%
Simplified85.7%
Final simplification85.8%
(FPCore (x y z) :precision binary64 (if (or (<= x -5.5) (not (<= x 85000000000000.0))) (/ (+ x -2.0) 0.24013125253755718) (* z -0.0424927283095952)))
double code(double x, double y, double z) {
double tmp;
if ((x <= -5.5) || !(x <= 85000000000000.0)) {
tmp = (x + -2.0) / 0.24013125253755718;
} 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 <= (-5.5d0)) .or. (.not. (x <= 85000000000000.0d0))) then
tmp = (x + (-2.0d0)) / 0.24013125253755718d0
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 <= -5.5) || !(x <= 85000000000000.0)) {
tmp = (x + -2.0) / 0.24013125253755718;
} else {
tmp = z * -0.0424927283095952;
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -5.5) or not (x <= 85000000000000.0): tmp = (x + -2.0) / 0.24013125253755718 else: tmp = z * -0.0424927283095952 return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -5.5) || !(x <= 85000000000000.0)) tmp = Float64(Float64(x + -2.0) / 0.24013125253755718); else tmp = Float64(z * -0.0424927283095952); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -5.5) || ~((x <= 85000000000000.0))) tmp = (x + -2.0) / 0.24013125253755718; else tmp = z * -0.0424927283095952; end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -5.5], N[Not[LessEqual[x, 85000000000000.0]], $MachinePrecision]], N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision], N[(z * -0.0424927283095952), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -5.5 \lor \neg \left(x \leq 85000000000000\right):\\
\;\;\;\;\frac{x + -2}{0.24013125253755718}\\
\mathbf{else}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\end{array}
\end{array}
if x < -5.5 or 8.5e13 < x Initial program 18.6%
associate-/l*21.9%
sub-neg21.9%
metadata-eval21.9%
fma-def21.9%
fma-def21.9%
fma-def21.9%
fma-def21.9%
fma-def21.9%
fma-def21.9%
fma-def21.9%
Simplified21.9%
Taylor expanded in x around inf 84.7%
if -5.5 < x < 8.5e13Initial program 99.7%
Simplified99.4%
Taylor expanded in x around 0 64.9%
Final simplification74.0%
(FPCore (x y z) :precision binary64 (if (or (<= x -5.5) (not (<= x 85000000000000.0))) (* x 4.16438922228) (* z -0.0424927283095952)))
double code(double x, double y, double z) {
double tmp;
if ((x <= -5.5) || !(x <= 85000000000000.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 <= (-5.5d0)) .or. (.not. (x <= 85000000000000.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 <= -5.5) || !(x <= 85000000000000.0)) {
tmp = x * 4.16438922228;
} else {
tmp = z * -0.0424927283095952;
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -5.5) or not (x <= 85000000000000.0): tmp = x * 4.16438922228 else: tmp = z * -0.0424927283095952 return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -5.5) || !(x <= 85000000000000.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 <= -5.5) || ~((x <= 85000000000000.0))) tmp = x * 4.16438922228; else tmp = z * -0.0424927283095952; end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -5.5], N[Not[LessEqual[x, 85000000000000.0]], $MachinePrecision]], N[(x * 4.16438922228), $MachinePrecision], N[(z * -0.0424927283095952), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -5.5 \lor \neg \left(x \leq 85000000000000\right):\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{else}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\end{array}
\end{array}
if x < -5.5 or 8.5e13 < x Initial program 18.6%
Simplified21.9%
Taylor expanded in x around inf 84.2%
*-commutative84.2%
Simplified84.2%
if -5.5 < x < 8.5e13Initial program 99.7%
Simplified99.4%
Taylor expanded in x around 0 64.9%
Final simplification73.8%
(FPCore (x y z) :precision binary64 (if (<= x -5.5) (- (* x 4.16438922228) 110.1139242984811) (if (<= x 85000000000000.0) (* z -0.0424927283095952) (* x 4.16438922228))))
double code(double x, double y, double z) {
double tmp;
if (x <= -5.5) {
tmp = (x * 4.16438922228) - 110.1139242984811;
} else if (x <= 85000000000000.0) {
tmp = z * -0.0424927283095952;
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-5.5d0)) then
tmp = (x * 4.16438922228d0) - 110.1139242984811d0
else if (x <= 85000000000000.0d0) then
tmp = z * (-0.0424927283095952d0)
else
tmp = x * 4.16438922228d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -5.5) {
tmp = (x * 4.16438922228) - 110.1139242984811;
} else if (x <= 85000000000000.0) {
tmp = z * -0.0424927283095952;
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -5.5: tmp = (x * 4.16438922228) - 110.1139242984811 elif x <= 85000000000000.0: tmp = z * -0.0424927283095952 else: tmp = x * 4.16438922228 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -5.5) tmp = Float64(Float64(x * 4.16438922228) - 110.1139242984811); elseif (x <= 85000000000000.0) tmp = Float64(z * -0.0424927283095952); else tmp = Float64(x * 4.16438922228); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -5.5) tmp = (x * 4.16438922228) - 110.1139242984811; elseif (x <= 85000000000000.0) tmp = z * -0.0424927283095952; else tmp = x * 4.16438922228; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -5.5], N[(N[(x * 4.16438922228), $MachinePrecision] - 110.1139242984811), $MachinePrecision], If[LessEqual[x, 85000000000000.0], N[(z * -0.0424927283095952), $MachinePrecision], N[(x * 4.16438922228), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -5.5:\\
\;\;\;\;x \cdot 4.16438922228 - 110.1139242984811\\
\mathbf{elif}\;x \leq 85000000000000:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228\\
\end{array}
\end{array}
if x < -5.5Initial program 19.9%
Simplified25.6%
Taylor expanded in x around inf 82.0%
if -5.5 < x < 8.5e13Initial program 99.7%
Simplified99.4%
Taylor expanded in x around 0 64.9%
if 8.5e13 < x Initial program 17.7%
Simplified19.1%
Taylor expanded in x around inf 85.9%
*-commutative85.9%
Simplified85.9%
Final simplification73.8%
(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 62.3%
Simplified63.7%
Taylor expanded in x around 0 36.4%
Final simplification36.4%
(FPCore (x y z) :precision binary64 78.6994924154)
double code(double x, double y, double z) {
return 78.6994924154;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = 78.6994924154d0
end function
public static double code(double x, double y, double z) {
return 78.6994924154;
}
def code(x, y, z): return 78.6994924154
function code(x, y, z) return 78.6994924154 end
function tmp = code(x, y, z) tmp = 78.6994924154; end
code[x_, y_, z_] := 78.6994924154
\begin{array}{l}
\\
78.6994924154
\end{array}
Initial program 62.3%
add-cube-cbrt62.3%
pow362.3%
Applied egg-rr62.3%
Taylor expanded in x around -inf 2.9%
Final simplification2.9%
(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 2023334
(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)))