
(FPCore (x y z)
:precision binary64
(/
(*
(- x 2.0)
(+
(*
(+ (* (+ (* (+ (* x 4.16438922228) 78.6994924154) x) 137.519416416) x) y)
x)
z))
(+
(* (+ (* (+ (* (+ x 43.3400022514) x) 263.505074721) x) 313.399215894) x)
47.066876606)))
double code(double x, double y, double z) {
return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606);
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = ((x - 2.0d0) * ((((((((x * 4.16438922228d0) + 78.6994924154d0) * x) + 137.519416416d0) * x) + y) * x) + z)) / (((((((x + 43.3400022514d0) * x) + 263.505074721d0) * x) + 313.399215894d0) * x) + 47.066876606d0)
end function
public static double code(double x, double y, double z) {
return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606);
}
def code(x, y, z): return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606)
function code(x, y, z) return Float64(Float64(Float64(x - 2.0) * Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606)) end
function tmp = code(x, y, z) tmp = ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606); end
code[x_, y_, z_] := N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(N[(N[(N[(N[(N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision] * x), $MachinePrecision] + 137.519416416), $MachinePrecision] * x), $MachinePrecision] + y), $MachinePrecision] * x), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(x + 43.3400022514), $MachinePrecision] * x), $MachinePrecision] + 263.505074721), $MachinePrecision] * x), $MachinePrecision] + 313.399215894), $MachinePrecision] * x), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 23 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z)
:precision binary64
(/
(*
(- x 2.0)
(+
(*
(+ (* (+ (* (+ (* x 4.16438922228) 78.6994924154) x) 137.519416416) x) y)
x)
z))
(+
(* (+ (* (+ (* (+ x 43.3400022514) x) 263.505074721) x) 313.399215894) x)
47.066876606)))
double code(double x, double y, double z) {
return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606);
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = ((x - 2.0d0) * ((((((((x * 4.16438922228d0) + 78.6994924154d0) * x) + 137.519416416d0) * x) + y) * x) + z)) / (((((((x + 43.3400022514d0) * x) + 263.505074721d0) * x) + 313.399215894d0) * x) + 47.066876606d0)
end function
public static double code(double x, double y, double z) {
return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606);
}
def code(x, y, z): return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606)
function code(x, y, z) return Float64(Float64(Float64(x - 2.0) * Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606)) end
function tmp = code(x, y, z) tmp = ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606); end
code[x_, y_, z_] := N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(N[(N[(N[(N[(N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision] * x), $MachinePrecision] + 137.519416416), $MachinePrecision] * x), $MachinePrecision] + y), $MachinePrecision] * x), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(x + 43.3400022514), $MachinePrecision] * x), $MachinePrecision] + 263.505074721), $MachinePrecision] * x), $MachinePrecision] + 313.399215894), $MachinePrecision] * x), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606}
\end{array}
(FPCore (x y z)
:precision binary64
(if (<=
(/
(*
(- x 2.0)
(+
(*
x
(+
(* x (+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))
y))
z))
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))
INFINITY)
(/
(+ 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)))
(/ (+ x -2.0) 0.24013125253755718)))
double code(double x, double y, double z) {
double tmp;
if ((((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) <= ((double) INFINITY)) {
tmp = (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 = (x + -2.0) / 0.24013125253755718;
}
return tmp;
}
function code(x, y, z) tmp = 0.0 if (Float64(Float64(Float64(x - 2.0) * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) <= Inf) tmp = Float64(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(x + -2.0) / 0.24013125253755718); end return tmp end
code[x_, y_, z_] := If[LessEqual[N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(x * N[(N[(x * N[(N[(x * N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision]), $MachinePrecision] + 137.519416416), $MachinePrecision]), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision], Infinity], N[(N[(x + -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[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{\left(x - 2\right) \cdot \left(x \cdot \left(x \cdot \left(x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right) + 137.519416416\right) + y\right) + z\right)}{x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606} \leq \infty:\\
\;\;\;\;\frac{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}:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718}\\
\end{array}
\end{array}
if (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) < +inf.0Initial program 95.6%
associate-/l*98.3%
sub-neg98.3%
metadata-eval98.3%
fma-def98.3%
fma-def98.3%
fma-def98.3%
fma-def98.3%
fma-def98.3%
fma-def98.3%
fma-def98.3%
Simplified98.3%
if +inf.0 < (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) Initial program 0.0%
associate-/l*0.0%
sub-neg0.0%
metadata-eval0.0%
fma-def0.0%
fma-def0.0%
fma-def0.0%
fma-def0.0%
fma-def0.0%
fma-def0.0%
fma-def0.0%
Simplified0.0%
Taylor expanded in x around inf 99.6%
Final simplification98.8%
(FPCore (x y z)
:precision binary64
(if (<=
(/
(*
(- x 2.0)
(+
(*
x
(+
(* x (+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))
y))
z))
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))
INFINITY)
(*
(fma
x
(fma x (fma x (fma x 4.16438922228 78.6994924154) 137.519416416) y)
z)
(/
(+ x -2.0)
(fma
x
(fma x (fma x (+ x 43.3400022514) 263.505074721) 313.399215894)
47.066876606)))
(/ (+ x -2.0) 0.24013125253755718)))
double code(double x, double y, double z) {
double tmp;
if ((((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) <= ((double) INFINITY)) {
tmp = fma(x, fma(x, fma(x, fma(x, 4.16438922228, 78.6994924154), 137.519416416), y), z) * ((x + -2.0) / fma(x, fma(x, fma(x, (x + 43.3400022514), 263.505074721), 313.399215894), 47.066876606));
} else {
tmp = (x + -2.0) / 0.24013125253755718;
}
return tmp;
}
function code(x, y, z) tmp = 0.0 if (Float64(Float64(Float64(x - 2.0) * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) <= Inf) tmp = Float64(fma(x, fma(x, fma(x, fma(x, 4.16438922228, 78.6994924154), 137.519416416), y), z) * Float64(Float64(x + -2.0) / fma(x, fma(x, fma(x, Float64(x + 43.3400022514), 263.505074721), 313.399215894), 47.066876606))); else tmp = Float64(Float64(x + -2.0) / 0.24013125253755718); end return tmp end
code[x_, y_, z_] := If[LessEqual[N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(x * N[(N[(x * N[(N[(x * N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision]), $MachinePrecision] + 137.519416416), $MachinePrecision]), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision], Infinity], N[(N[(x * N[(x * N[(x * N[(x * 4.16438922228 + 78.6994924154), $MachinePrecision] + 137.519416416), $MachinePrecision] + y), $MachinePrecision] + z), $MachinePrecision] * N[(N[(x + -2.0), $MachinePrecision] / N[(x * N[(x * N[(x * N[(x + 43.3400022514), $MachinePrecision] + 263.505074721), $MachinePrecision] + 313.399215894), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{\left(x - 2\right) \cdot \left(x \cdot \left(x \cdot \left(x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right) + 137.519416416\right) + y\right) + z\right)}{x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606} \leq \infty:\\
\;\;\;\;\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, 4.16438922228, 78.6994924154\right), 137.519416416\right), y\right), z\right) \cdot \frac{x + -2}{\mathsf{fma}\left(x, \mathsf{fma}\left(x, \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right), 313.399215894\right), 47.066876606\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718}\\
\end{array}
\end{array}
if (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) < +inf.0Initial program 95.6%
Simplified98.2%
if +inf.0 < (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) Initial program 0.0%
associate-/l*0.0%
sub-neg0.0%
metadata-eval0.0%
fma-def0.0%
fma-def0.0%
fma-def0.0%
fma-def0.0%
fma-def0.0%
fma-def0.0%
fma-def0.0%
Simplified0.0%
Taylor expanded in x around inf 99.6%
Final simplification98.7%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(*
(- x 2.0)
(+
(*
x
(+
(*
x
(+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))
y))
z))))
(if (<=
(/
t_0
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))
5e+295)
(/
t_0
(+
47.066876606
(*
x
(+ 313.399215894 (* x (fma x (+ x 43.3400022514) 263.505074721))))))
(-
(+
(/ (- 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);
double tmp;
if ((t_0 / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) <= 5e+295) {
tmp = t_0 / (47.066876606 + (x * (313.399215894 + (x * fma(x, (x + 43.3400022514), 263.505074721)))));
} 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) t_0 = Float64(Float64(x - 2.0) * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) tmp = 0.0 if (Float64(t_0 / Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) <= 5e+295) tmp = Float64(t_0 / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * fma(x, Float64(x + 43.3400022514), 263.505074721)))))); else tmp = Float64(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_] := Block[{t$95$0 = N[(N[(x - 2.0), $MachinePrecision] * N[(N[(x * N[(N[(x * N[(N[(x * N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision]), $MachinePrecision] + 137.519416416), $MachinePrecision]), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(t$95$0 / N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision], 5e+295], N[(t$95$0 / N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * N[(x * N[(x + 43.3400022514), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(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 := \left(x - 2\right) \cdot \left(x \cdot \left(x \cdot \left(x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right) + 137.519416416\right) + y\right) + z\right)\\
\mathbf{if}\;\frac{t\_0}{x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606} \leq 5 \cdot 10^{+295}:\\
\;\;\;\;\frac{t\_0}{47.066876606 + x \cdot \left(313.399215894 + x \cdot \mathsf{fma}\left(x, x + 43.3400022514, 263.505074721\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\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)) < 4.99999999999999991e295Initial program 97.8%
Taylor expanded in x around 0 97.8%
+-commutative97.8%
associate-+l+97.8%
*-commutative97.8%
cube-mult97.8%
unpow297.8%
distribute-rgt-out97.8%
unpow297.8%
associate-*r*97.8%
+-commutative97.8%
distribute-lft-in97.8%
+-commutative97.8%
+-commutative97.8%
fma-udef97.8%
Simplified97.8%
if 4.99999999999999991e295 < (/.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.3%
Simplified3.3%
Taylor expanded in x around -inf 97.7%
Final simplification97.8%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))
(t_1
(+
(* x (+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))
y)))
(if (<= (/ (* (- x 2.0) (+ (* x t_1) z)) t_0) 5e+295)
(+ (/ (* x (* (- x 2.0) t_1)) t_0) (/ (* (- x 2.0) z) 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 * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606;
double t_1 = (x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y;
double tmp;
if ((((x - 2.0) * ((x * t_1) + z)) / t_0) <= 5e+295) {
tmp = ((x * ((x - 2.0) * t_1)) / t_0) + (((x - 2.0) * z) / 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) :: t_1
real(8) :: tmp
t_0 = (x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0
t_1 = (x * ((x * ((x * 4.16438922228d0) + 78.6994924154d0)) + 137.519416416d0)) + y
if ((((x - 2.0d0) * ((x * t_1) + z)) / t_0) <= 5d+295) then
tmp = ((x * ((x - 2.0d0) * t_1)) / t_0) + (((x - 2.0d0) * z) / 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 * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606;
double t_1 = (x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y;
double tmp;
if ((((x - 2.0) * ((x * t_1) + z)) / t_0) <= 5e+295) {
tmp = ((x * ((x - 2.0) * t_1)) / t_0) + (((x - 2.0) * z) / 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 * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606 t_1 = (x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y tmp = 0 if (((x - 2.0) * ((x * t_1) + z)) / t_0) <= 5e+295: tmp = ((x * ((x - 2.0) * t_1)) / t_0) + (((x - 2.0) * z) / 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(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) t_1 = Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y) tmp = 0.0 if (Float64(Float64(Float64(x - 2.0) * Float64(Float64(x * t_1) + z)) / t_0) <= 5e+295) tmp = Float64(Float64(Float64(x * Float64(Float64(x - 2.0) * t_1)) / t_0) + Float64(Float64(Float64(x - 2.0) * z) / t_0)); else tmp = Float64(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 * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606; t_1 = (x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y; tmp = 0.0; if ((((x - 2.0) * ((x * t_1) + z)) / t_0) <= 5e+295) tmp = ((x * ((x - 2.0) * t_1)) / t_0) + (((x - 2.0) * z) / 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[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]}, Block[{t$95$1 = N[(N[(x * N[(N[(x * N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision]), $MachinePrecision] + 137.519416416), $MachinePrecision]), $MachinePrecision] + y), $MachinePrecision]}, If[LessEqual[N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(x * t$95$1), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / t$95$0), $MachinePrecision], 5e+295], N[(N[(N[(x * N[(N[(x - 2.0), $MachinePrecision] * t$95$1), $MachinePrecision]), $MachinePrecision] / t$95$0), $MachinePrecision] + N[(N[(N[(x - 2.0), $MachinePrecision] * z), $MachinePrecision] / t$95$0), $MachinePrecision]), $MachinePrecision], N[(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 := x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606\\
t_1 := x \cdot \left(x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right) + 137.519416416\right) + y\\
\mathbf{if}\;\frac{\left(x - 2\right) \cdot \left(x \cdot t\_1 + z\right)}{t\_0} \leq 5 \cdot 10^{+295}:\\
\;\;\;\;\frac{x \cdot \left(\left(x - 2\right) \cdot t\_1\right)}{t\_0} + \frac{\left(x - 2\right) \cdot z}{t\_0}\\
\mathbf{else}:\\
\;\;\;\;\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)) < 4.99999999999999991e295Initial program 97.8%
Simplified98.8%
Taylor expanded in z around inf 97.8%
if 4.99999999999999991e295 < (/.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.3%
Simplified3.3%
Taylor expanded in x around -inf 97.7%
Final simplification97.8%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))
(t_1
(+
(* x (+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))
y)))
(if (<= (/ (* (- x 2.0) (+ (* x t_1) z)) t_0) 5e+295)
(+ (/ (* x (* (- x 2.0) t_1)) t_0) (/ (* (- x 2.0) z) t_0))
(+ (* x 4.16438922228) (* z (+ (/ x t_0) (* 2.0 (/ -1.0 t_0))))))))
double code(double x, double y, double z) {
double t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606;
double t_1 = (x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y;
double tmp;
if ((((x - 2.0) * ((x * t_1) + z)) / t_0) <= 5e+295) {
tmp = ((x * ((x - 2.0) * t_1)) / t_0) + (((x - 2.0) * z) / t_0);
} else {
tmp = (x * 4.16438922228) + (z * ((x / t_0) + (2.0 * (-1.0 / 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 * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0
t_1 = (x * ((x * ((x * 4.16438922228d0) + 78.6994924154d0)) + 137.519416416d0)) + y
if ((((x - 2.0d0) * ((x * t_1) + z)) / t_0) <= 5d+295) then
tmp = ((x * ((x - 2.0d0) * t_1)) / t_0) + (((x - 2.0d0) * z) / t_0)
else
tmp = (x * 4.16438922228d0) + (z * ((x / t_0) + (2.0d0 * ((-1.0d0) / t_0))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606;
double t_1 = (x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y;
double tmp;
if ((((x - 2.0) * ((x * t_1) + z)) / t_0) <= 5e+295) {
tmp = ((x * ((x - 2.0) * t_1)) / t_0) + (((x - 2.0) * z) / t_0);
} else {
tmp = (x * 4.16438922228) + (z * ((x / t_0) + (2.0 * (-1.0 / t_0))));
}
return tmp;
}
def code(x, y, z): t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606 t_1 = (x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y tmp = 0 if (((x - 2.0) * ((x * t_1) + z)) / t_0) <= 5e+295: tmp = ((x * ((x - 2.0) * t_1)) / t_0) + (((x - 2.0) * z) / t_0) else: tmp = (x * 4.16438922228) + (z * ((x / t_0) + (2.0 * (-1.0 / t_0)))) return tmp
function code(x, y, z) t_0 = Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) t_1 = Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y) tmp = 0.0 if (Float64(Float64(Float64(x - 2.0) * Float64(Float64(x * t_1) + z)) / t_0) <= 5e+295) tmp = Float64(Float64(Float64(x * Float64(Float64(x - 2.0) * t_1)) / t_0) + Float64(Float64(Float64(x - 2.0) * z) / t_0)); else tmp = Float64(Float64(x * 4.16438922228) + Float64(z * Float64(Float64(x / t_0) + Float64(2.0 * Float64(-1.0 / t_0))))); end return tmp end
function tmp_2 = code(x, y, z) t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606; t_1 = (x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y; tmp = 0.0; if ((((x - 2.0) * ((x * t_1) + z)) / t_0) <= 5e+295) tmp = ((x * ((x - 2.0) * t_1)) / t_0) + (((x - 2.0) * z) / t_0); else tmp = (x * 4.16438922228) + (z * ((x / t_0) + (2.0 * (-1.0 / t_0)))); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]}, Block[{t$95$1 = N[(N[(x * N[(N[(x * N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision]), $MachinePrecision] + 137.519416416), $MachinePrecision]), $MachinePrecision] + y), $MachinePrecision]}, If[LessEqual[N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(x * t$95$1), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / t$95$0), $MachinePrecision], 5e+295], N[(N[(N[(x * N[(N[(x - 2.0), $MachinePrecision] * t$95$1), $MachinePrecision]), $MachinePrecision] / t$95$0), $MachinePrecision] + N[(N[(N[(x - 2.0), $MachinePrecision] * z), $MachinePrecision] / t$95$0), $MachinePrecision]), $MachinePrecision], N[(N[(x * 4.16438922228), $MachinePrecision] + N[(z * N[(N[(x / t$95$0), $MachinePrecision] + N[(2.0 * N[(-1.0 / t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606\\
t_1 := x \cdot \left(x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right) + 137.519416416\right) + y\\
\mathbf{if}\;\frac{\left(x - 2\right) \cdot \left(x \cdot t\_1 + z\right)}{t\_0} \leq 5 \cdot 10^{+295}:\\
\;\;\;\;\frac{x \cdot \left(\left(x - 2\right) \cdot t\_1\right)}{t\_0} + \frac{\left(x - 2\right) \cdot z}{t\_0}\\
\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228 + z \cdot \left(\frac{x}{t\_0} + 2 \cdot \frac{-1}{t\_0}\right)\\
\end{array}
\end{array}
if (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) < 4.99999999999999991e295Initial program 97.8%
Simplified98.8%
Taylor expanded in z around inf 97.8%
if 4.99999999999999991e295 < (/.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.3%
Simplified3.3%
Taylor expanded in z around 0 1.2%
Taylor expanded in x around inf 97.1%
*-commutative97.1%
Simplified97.1%
Final simplification97.5%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))
(t_1
(/
(*
(- x 2.0)
(+
(*
x
(+
(*
x
(+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))
y))
z))
t_0)))
(if (<= t_1 5e+295)
t_1
(+ (* x 4.16438922228) (* z (+ (/ x t_0) (* 2.0 (/ -1.0 t_0))))))))
double code(double x, double y, double z) {
double t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606;
double t_1 = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / t_0;
double tmp;
if (t_1 <= 5e+295) {
tmp = t_1;
} else {
tmp = (x * 4.16438922228) + (z * ((x / t_0) + (2.0 * (-1.0 / 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 * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0
t_1 = ((x - 2.0d0) * ((x * ((x * ((x * ((x * 4.16438922228d0) + 78.6994924154d0)) + 137.519416416d0)) + y)) + z)) / t_0
if (t_1 <= 5d+295) then
tmp = t_1
else
tmp = (x * 4.16438922228d0) + (z * ((x / t_0) + (2.0d0 * ((-1.0d0) / t_0))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606;
double t_1 = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / t_0;
double tmp;
if (t_1 <= 5e+295) {
tmp = t_1;
} else {
tmp = (x * 4.16438922228) + (z * ((x / t_0) + (2.0 * (-1.0 / t_0))));
}
return tmp;
}
def code(x, y, z): t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606 t_1 = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / t_0 tmp = 0 if t_1 <= 5e+295: tmp = t_1 else: tmp = (x * 4.16438922228) + (z * ((x / t_0) + (2.0 * (-1.0 / t_0)))) return tmp
function code(x, y, z) t_0 = Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) t_1 = Float64(Float64(Float64(x - 2.0) * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / t_0) tmp = 0.0 if (t_1 <= 5e+295) tmp = t_1; else tmp = Float64(Float64(x * 4.16438922228) + Float64(z * Float64(Float64(x / t_0) + Float64(2.0 * Float64(-1.0 / t_0))))); end return tmp end
function tmp_2 = code(x, y, z) t_0 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606; t_1 = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / t_0; tmp = 0.0; if (t_1 <= 5e+295) tmp = t_1; else tmp = (x * 4.16438922228) + (z * ((x / t_0) + (2.0 * (-1.0 / t_0)))); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]}, Block[{t$95$1 = N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(x * N[(N[(x * N[(N[(x * N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision]), $MachinePrecision] + 137.519416416), $MachinePrecision]), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / t$95$0), $MachinePrecision]}, If[LessEqual[t$95$1, 5e+295], t$95$1, N[(N[(x * 4.16438922228), $MachinePrecision] + N[(z * N[(N[(x / t$95$0), $MachinePrecision] + N[(2.0 * N[(-1.0 / t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606\\
t_1 := \frac{\left(x - 2\right) \cdot \left(x \cdot \left(x \cdot \left(x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right) + 137.519416416\right) + y\right) + z\right)}{t\_0}\\
\mathbf{if}\;t\_1 \leq 5 \cdot 10^{+295}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228 + z \cdot \left(\frac{x}{t\_0} + 2 \cdot \frac{-1}{t\_0}\right)\\
\end{array}
\end{array}
if (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) < 4.99999999999999991e295Initial program 97.8%
if 4.99999999999999991e295 < (/.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.3%
Simplified3.3%
Taylor expanded in z around 0 1.2%
Taylor expanded in x around inf 97.1%
*-commutative97.1%
Simplified97.1%
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))
(+
(*
x
(+
(* x (+ (* x (+ x 43.3400022514)) 263.505074721))
313.399215894))
47.066876606))))
(if (<= t_0 5e+295)
t_0
(/ (+ x -2.0) (+ 0.24013125253755718 (/ 5.86923874282773 x))))))
double code(double x, double y, double z) {
double t_0 = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606);
double tmp;
if (t_0 <= 5e+295) {
tmp = t_0;
} else {
tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = ((x - 2.0d0) * ((x * ((x * ((x * ((x * 4.16438922228d0) + 78.6994924154d0)) + 137.519416416d0)) + y)) + z)) / ((x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0)
if (t_0 <= 5d+295) then
tmp = t_0
else
tmp = (x + (-2.0d0)) / (0.24013125253755718d0 + (5.86923874282773d0 / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606);
double tmp;
if (t_0 <= 5e+295) {
tmp = t_0;
} else {
tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x));
}
return tmp;
}
def code(x, y, z): t_0 = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) tmp = 0 if t_0 <= 5e+295: tmp = t_0 else: tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x)) return tmp
function code(x, y, z) t_0 = Float64(Float64(Float64(x - 2.0) * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)) tmp = 0.0 if (t_0 <= 5e+295) tmp = t_0; else tmp = Float64(Float64(x + -2.0) / Float64(0.24013125253755718 + Float64(5.86923874282773 / x))); end return tmp end
function tmp_2 = code(x, y, z) t_0 = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606); tmp = 0.0; if (t_0 <= 5e+295) tmp = t_0; else tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(x * N[(N[(x * N[(N[(x * N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision]), $MachinePrecision] + 137.519416416), $MachinePrecision]), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$0, 5e+295], t$95$0, N[(N[(x + -2.0), $MachinePrecision] / N[(0.24013125253755718 + N[(5.86923874282773 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{\left(x - 2\right) \cdot \left(x \cdot \left(x \cdot \left(x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right) + 137.519416416\right) + y\right) + z\right)}{x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606}\\
\mathbf{if}\;t\_0 \leq 5 \cdot 10^{+295}:\\
\;\;\;\;t\_0\\
\mathbf{else}:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718 + \frac{5.86923874282773}{x}}\\
\end{array}
\end{array}
if (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) < 4.99999999999999991e295Initial program 97.8%
if 4.99999999999999991e295 < (/.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.3%
associate-/l*3.3%
sub-neg3.3%
metadata-eval3.3%
fma-def3.3%
fma-def3.3%
fma-def3.3%
fma-def3.3%
fma-def3.3%
fma-def3.3%
fma-def3.3%
Simplified3.3%
Taylor expanded in x around inf 96.6%
associate-*r/96.6%
metadata-eval96.6%
Simplified96.6%
Final simplification97.3%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (+ 0.24013125253755718 (/ 5.86923874282773 x)))
(t_1
(+
(*
x
(+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606)))
(if (<= x -54000.0)
(/ (+ x -2.0) t_0)
(if (<= x 102.0)
(/ (* (- x 2.0) (+ z (* x (+ y (* x 137.519416416))))) t_1)
(if (<= x 1.5e+74)
(/
(+ x -2.0)
(/
t_1
(*
x
(+
(*
x
(+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))
y))))
(/ 1.0 (/ t_0 (+ x -2.0))))))))
double code(double x, double y, double z) {
double t_0 = 0.24013125253755718 + (5.86923874282773 / x);
double t_1 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606;
double tmp;
if (x <= -54000.0) {
tmp = (x + -2.0) / t_0;
} else if (x <= 102.0) {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / t_1;
} else if (x <= 1.5e+74) {
tmp = (x + -2.0) / (t_1 / (x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)));
} else {
tmp = 1.0 / (t_0 / (x + -2.0));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: t_1
real(8) :: tmp
t_0 = 0.24013125253755718d0 + (5.86923874282773d0 / x)
t_1 = (x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0
if (x <= (-54000.0d0)) then
tmp = (x + (-2.0d0)) / t_0
else if (x <= 102.0d0) then
tmp = ((x - 2.0d0) * (z + (x * (y + (x * 137.519416416d0))))) / t_1
else if (x <= 1.5d+74) then
tmp = (x + (-2.0d0)) / (t_1 / (x * ((x * ((x * ((x * 4.16438922228d0) + 78.6994924154d0)) + 137.519416416d0)) + y)))
else
tmp = 1.0d0 / (t_0 / (x + (-2.0d0)))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = 0.24013125253755718 + (5.86923874282773 / x);
double t_1 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606;
double tmp;
if (x <= -54000.0) {
tmp = (x + -2.0) / t_0;
} else if (x <= 102.0) {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / t_1;
} else if (x <= 1.5e+74) {
tmp = (x + -2.0) / (t_1 / (x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)));
} else {
tmp = 1.0 / (t_0 / (x + -2.0));
}
return tmp;
}
def code(x, y, z): t_0 = 0.24013125253755718 + (5.86923874282773 / x) t_1 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606 tmp = 0 if x <= -54000.0: tmp = (x + -2.0) / t_0 elif x <= 102.0: tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / t_1 elif x <= 1.5e+74: tmp = (x + -2.0) / (t_1 / (x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y))) else: tmp = 1.0 / (t_0 / (x + -2.0)) return tmp
function code(x, y, z) t_0 = Float64(0.24013125253755718 + Float64(5.86923874282773 / x)) t_1 = Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) tmp = 0.0 if (x <= -54000.0) tmp = Float64(Float64(x + -2.0) / t_0); elseif (x <= 102.0) tmp = Float64(Float64(Float64(x - 2.0) * Float64(z + Float64(x * Float64(y + Float64(x * 137.519416416))))) / t_1); elseif (x <= 1.5e+74) tmp = Float64(Float64(x + -2.0) / Float64(t_1 / Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)))); else tmp = Float64(1.0 / Float64(t_0 / Float64(x + -2.0))); end return tmp end
function tmp_2 = code(x, y, z) t_0 = 0.24013125253755718 + (5.86923874282773 / x); t_1 = (x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606; tmp = 0.0; if (x <= -54000.0) tmp = (x + -2.0) / t_0; elseif (x <= 102.0) tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / t_1; elseif (x <= 1.5e+74) tmp = (x + -2.0) / (t_1 / (x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y))); else tmp = 1.0 / (t_0 / (x + -2.0)); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(0.24013125253755718 + N[(5.86923874282773 / x), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]}, If[LessEqual[x, -54000.0], N[(N[(x + -2.0), $MachinePrecision] / t$95$0), $MachinePrecision], If[LessEqual[x, 102.0], N[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + N[(x * N[(y + N[(x * 137.519416416), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision], If[LessEqual[x, 1.5e+74], N[(N[(x + -2.0), $MachinePrecision] / N[(t$95$1 / 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]), $MachinePrecision]), $MachinePrecision], N[(1.0 / N[(t$95$0 / N[(x + -2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := 0.24013125253755718 + \frac{5.86923874282773}{x}\\
t_1 := x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606\\
\mathbf{if}\;x \leq -54000:\\
\;\;\;\;\frac{x + -2}{t\_0}\\
\mathbf{elif}\;x \leq 102:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot \left(y + x \cdot 137.519416416\right)\right)}{t\_1}\\
\mathbf{elif}\;x \leq 1.5 \cdot 10^{+74}:\\
\;\;\;\;\frac{x + -2}{\frac{t\_1}{x \cdot \left(x \cdot \left(x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right) + 137.519416416\right) + y\right)}}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\frac{t\_0}{x + -2}}\\
\end{array}
\end{array}
if x < -54000Initial program 14.7%
associate-/l*14.6%
sub-neg14.6%
metadata-eval14.6%
fma-def14.6%
fma-def14.6%
fma-def14.7%
fma-def14.7%
fma-def14.7%
fma-def14.7%
fma-def14.7%
Simplified14.7%
Taylor expanded in x around inf 90.5%
associate-*r/90.5%
metadata-eval90.5%
Simplified90.5%
if -54000 < x < 102Initial program 99.1%
Taylor expanded in x around 0 98.4%
*-commutative96.9%
Simplified98.4%
if 102 < x < 1.5e74Initial program 79.8%
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 85.2%
if 1.5e74 < x Initial program 0.1%
associate-/l*1.9%
sub-neg1.9%
metadata-eval1.9%
fma-def1.9%
fma-def1.9%
fma-def1.9%
fma-def1.9%
fma-def1.9%
fma-def1.9%
fma-def1.9%
Simplified1.9%
Taylor expanded in x around inf 99.6%
clear-num99.7%
inv-pow99.7%
+-commutative99.7%
un-div-inv99.7%
Applied egg-rr99.7%
unpow-199.7%
+-commutative99.7%
Simplified99.7%
Final simplification96.4%
(FPCore (x y z)
:precision binary64
(if (or (<= x -54000.0) (not (<= x 3800000000000.0)))
(/ (+ x -2.0) (+ 0.24013125253755718 (/ 5.86923874282773 x)))
(/
(* (- x 2.0) (+ z (* x (+ y (* x 137.519416416)))))
(+
(* x (+ (* x (+ (* x (+ x 43.3400022514)) 263.505074721)) 313.399215894))
47.066876606))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -54000.0) || !(x <= 3800000000000.0)) {
tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x));
} else {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606);
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((x <= (-54000.0d0)) .or. (.not. (x <= 3800000000000.0d0))) then
tmp = (x + (-2.0d0)) / (0.24013125253755718d0 + (5.86923874282773d0 / x))
else
tmp = ((x - 2.0d0) * (z + (x * (y + (x * 137.519416416d0))))) / ((x * ((x * ((x * (x + 43.3400022514d0)) + 263.505074721d0)) + 313.399215894d0)) + 47.066876606d0)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -54000.0) || !(x <= 3800000000000.0)) {
tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x));
} else {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606);
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -54000.0) or not (x <= 3800000000000.0): tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x)) else: tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -54000.0) || !(x <= 3800000000000.0)) tmp = Float64(Float64(x + -2.0) / Float64(0.24013125253755718 + Float64(5.86923874282773 / x))); else tmp = Float64(Float64(Float64(x - 2.0) * Float64(z + Float64(x * Float64(y + Float64(x * 137.519416416))))) / Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -54000.0) || ~((x <= 3800000000000.0))) tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x)); else tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / ((x * ((x * ((x * (x + 43.3400022514)) + 263.505074721)) + 313.399215894)) + 47.066876606); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -54000.0], N[Not[LessEqual[x, 3800000000000.0]], $MachinePrecision]], N[(N[(x + -2.0), $MachinePrecision] / N[(0.24013125253755718 + N[(5.86923874282773 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + N[(x * N[(y + N[(x * 137.519416416), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(x * N[(N[(x * N[(N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision] + 263.505074721), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision]), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -54000 \lor \neg \left(x \leq 3800000000000\right):\\
\;\;\;\;\frac{x + -2}{0.24013125253755718 + \frac{5.86923874282773}{x}}\\
\mathbf{else}:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot \left(y + x \cdot 137.519416416\right)\right)}{x \cdot \left(x \cdot \left(x \cdot \left(x + 43.3400022514\right) + 263.505074721\right) + 313.399215894\right) + 47.066876606}\\
\end{array}
\end{array}
if x < -54000 or 3.8e12 < x Initial program 14.5%
associate-/l*17.9%
sub-neg17.9%
metadata-eval17.9%
fma-def17.9%
fma-def17.9%
fma-def18.0%
fma-def18.0%
fma-def18.0%
fma-def18.0%
fma-def18.0%
Simplified18.0%
Taylor expanded in x around inf 90.8%
associate-*r/90.8%
metadata-eval90.8%
Simplified90.8%
if -54000 < x < 3.8e12Initial program 99.0%
Taylor expanded in x around 0 97.1%
*-commutative95.0%
Simplified97.1%
Final simplification94.4%
(FPCore (x y z)
:precision binary64
(if (or (<= x -16.0) (not (<= x 1150.0)))
(/ (+ x -2.0) (+ 0.24013125253755718 (/ 5.86923874282773 x)))
(/
(* (- x 2.0) (+ z (* x (+ y (* x 137.519416416)))))
(+ 47.066876606 (* x (+ 313.399215894 (* x 263.505074721)))))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -16.0) || !(x <= 1150.0)) {
tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x));
} else {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * 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 <= (-16.0d0)) .or. (.not. (x <= 1150.0d0))) then
tmp = (x + (-2.0d0)) / (0.24013125253755718d0 + (5.86923874282773d0 / x))
else
tmp = ((x - 2.0d0) * (z + (x * (y + (x * 137.519416416d0))))) / (47.066876606d0 + (x * (313.399215894d0 + (x * 263.505074721d0))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -16.0) || !(x <= 1150.0)) {
tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x));
} else {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -16.0) or not (x <= 1150.0): tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x)) else: tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721)))) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -16.0) || !(x <= 1150.0)) tmp = Float64(Float64(x + -2.0) / Float64(0.24013125253755718 + Float64(5.86923874282773 / x))); 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 * 263.505074721))))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -16.0) || ~((x <= 1150.0))) tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x)); else tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721)))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -16.0], N[Not[LessEqual[x, 1150.0]], $MachinePrecision]], N[(N[(x + -2.0), $MachinePrecision] / N[(0.24013125253755718 + N[(5.86923874282773 / x), $MachinePrecision]), $MachinePrecision]), $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 * 263.505074721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -16 \lor \neg \left(x \leq 1150\right):\\
\;\;\;\;\frac{x + -2}{0.24013125253755718 + \frac{5.86923874282773}{x}}\\
\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 263.505074721\right)}\\
\end{array}
\end{array}
if x < -16 or 1150 < x Initial program 16.7%
associate-/l*20.1%
sub-neg20.1%
metadata-eval20.1%
fma-def20.1%
fma-def20.1%
fma-def20.1%
fma-def20.1%
fma-def20.1%
fma-def20.1%
fma-def20.1%
Simplified20.1%
Taylor expanded in x around inf 89.2%
associate-*r/89.2%
metadata-eval89.2%
Simplified89.2%
if -16 < x < 1150Initial program 99.1%
Taylor expanded in x around 0 97.5%
*-commutative97.5%
Simplified97.5%
Taylor expanded in x around 0 96.9%
*-commutative96.9%
Simplified96.9%
Final simplification93.5%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (/ (+ x -2.0) (+ 0.24013125253755718 (/ 5.86923874282773 x)))))
(if (<= x -0.175)
t_0
(if (<= x 1.7e-31)
(/ (+ x -2.0) (/ 47.066876606 z))
(if (<= x 0.038)
(* x (* y -0.0424927283095952))
(if (<= x 27.5)
(/ (* (- x 2.0) z) (+ 47.066876606 (* x 313.399215894)))
t_0))))))
double code(double x, double y, double z) {
double t_0 = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x));
double tmp;
if (x <= -0.175) {
tmp = t_0;
} else if (x <= 1.7e-31) {
tmp = (x + -2.0) / (47.066876606 / z);
} else if (x <= 0.038) {
tmp = x * (y * -0.0424927283095952);
} else if (x <= 27.5) {
tmp = ((x - 2.0) * z) / (47.066876606 + (x * 313.399215894));
} 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 + (5.86923874282773d0 / x))
if (x <= (-0.175d0)) then
tmp = t_0
else if (x <= 1.7d-31) then
tmp = (x + (-2.0d0)) / (47.066876606d0 / z)
else if (x <= 0.038d0) then
tmp = x * (y * (-0.0424927283095952d0))
else if (x <= 27.5d0) then
tmp = ((x - 2.0d0) * z) / (47.066876606d0 + (x * 313.399215894d0))
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 + (5.86923874282773 / x));
double tmp;
if (x <= -0.175) {
tmp = t_0;
} else if (x <= 1.7e-31) {
tmp = (x + -2.0) / (47.066876606 / z);
} else if (x <= 0.038) {
tmp = x * (y * -0.0424927283095952);
} else if (x <= 27.5) {
tmp = ((x - 2.0) * z) / (47.066876606 + (x * 313.399215894));
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x)) tmp = 0 if x <= -0.175: tmp = t_0 elif x <= 1.7e-31: tmp = (x + -2.0) / (47.066876606 / z) elif x <= 0.038: tmp = x * (y * -0.0424927283095952) elif x <= 27.5: tmp = ((x - 2.0) * z) / (47.066876606 + (x * 313.399215894)) else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(Float64(x + -2.0) / Float64(0.24013125253755718 + Float64(5.86923874282773 / x))) tmp = 0.0 if (x <= -0.175) tmp = t_0; elseif (x <= 1.7e-31) tmp = Float64(Float64(x + -2.0) / Float64(47.066876606 / z)); elseif (x <= 0.038) tmp = Float64(x * Float64(y * -0.0424927283095952)); elseif (x <= 27.5) tmp = Float64(Float64(Float64(x - 2.0) * z) / Float64(47.066876606 + Float64(x * 313.399215894))); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x)); tmp = 0.0; if (x <= -0.175) tmp = t_0; elseif (x <= 1.7e-31) tmp = (x + -2.0) / (47.066876606 / z); elseif (x <= 0.038) tmp = x * (y * -0.0424927283095952); elseif (x <= 27.5) tmp = ((x - 2.0) * z) / (47.066876606 + (x * 313.399215894)); else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(x + -2.0), $MachinePrecision] / N[(0.24013125253755718 + N[(5.86923874282773 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -0.175], t$95$0, If[LessEqual[x, 1.7e-31], N[(N[(x + -2.0), $MachinePrecision] / N[(47.066876606 / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 0.038], N[(x * N[(y * -0.0424927283095952), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 27.5], N[(N[(N[(x - 2.0), $MachinePrecision] * z), $MachinePrecision] / N[(47.066876606 + N[(x * 313.399215894), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$0]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{x + -2}{0.24013125253755718 + \frac{5.86923874282773}{x}}\\
\mathbf{if}\;x \leq -0.175:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 1.7 \cdot 10^{-31}:\\
\;\;\;\;\frac{x + -2}{\frac{47.066876606}{z}}\\
\mathbf{elif}\;x \leq 0.038:\\
\;\;\;\;x \cdot \left(y \cdot -0.0424927283095952\right)\\
\mathbf{elif}\;x \leq 27.5:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot z}{47.066876606 + x \cdot 313.399215894}\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if x < -0.17499999999999999 or 27.5 < x Initial program 16.7%
associate-/l*20.1%
sub-neg20.1%
metadata-eval20.1%
fma-def20.1%
fma-def20.1%
fma-def20.1%
fma-def20.1%
fma-def20.1%
fma-def20.1%
fma-def20.1%
Simplified20.1%
Taylor expanded in x around inf 89.2%
associate-*r/89.2%
metadata-eval89.2%
Simplified89.2%
if -0.17499999999999999 < x < 1.7000000000000001e-31Initial program 99.0%
associate-/l*99.5%
sub-neg99.5%
metadata-eval99.5%
fma-def99.5%
fma-def99.5%
fma-def99.5%
fma-def99.5%
fma-def99.5%
fma-def99.5%
fma-def99.5%
Simplified99.5%
Taylor expanded in x around 0 65.9%
if 1.7000000000000001e-31 < x < 0.0379999999999999991Initial program 99.3%
associate-/l*99.0%
sub-neg99.0%
metadata-eval99.0%
fma-def99.0%
fma-def99.0%
fma-def99.0%
fma-def99.0%
fma-def99.0%
fma-def99.0%
fma-def99.0%
Simplified99.0%
Taylor expanded in y around inf 77.7%
Taylor expanded in x around 0 58.1%
associate-/r*58.2%
Simplified58.2%
Taylor expanded in x around 0 58.2%
*-commutative58.2%
associate-*r*58.4%
Simplified58.4%
if 0.0379999999999999991 < x < 27.5Initial program 100.0%
associate-/l*98.4%
sub-neg98.4%
metadata-eval98.4%
fma-def98.4%
fma-def98.4%
fma-def98.4%
fma-def98.4%
fma-def98.4%
fma-def98.4%
fma-def98.4%
Simplified98.4%
Taylor expanded in x around 0 28.6%
Taylor expanded in z around inf 28.6%
Final simplification75.9%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (/ (+ x -2.0) (+ 0.24013125253755718 (/ 5.86923874282773 x)))))
(if (<= x -250.0)
t_0
(if (<= x 2.4e-31)
(+
(* z -0.0424927283095952)
(* x (- (* z 0.0212463641547976) (* z -0.28294182010212804))))
(if (<= x 0.038)
(* x (* y -0.0424927283095952))
(if (<= x 2.0)
(/ (* (- x 2.0) z) (+ 47.066876606 (* x 313.399215894)))
t_0))))))
double code(double x, double y, double z) {
double t_0 = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x));
double tmp;
if (x <= -250.0) {
tmp = t_0;
} else if (x <= 2.4e-31) {
tmp = (z * -0.0424927283095952) + (x * ((z * 0.0212463641547976) - (z * -0.28294182010212804)));
} else if (x <= 0.038) {
tmp = x * (y * -0.0424927283095952);
} else if (x <= 2.0) {
tmp = ((x - 2.0) * z) / (47.066876606 + (x * 313.399215894));
} 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 + (5.86923874282773d0 / x))
if (x <= (-250.0d0)) then
tmp = t_0
else if (x <= 2.4d-31) then
tmp = (z * (-0.0424927283095952d0)) + (x * ((z * 0.0212463641547976d0) - (z * (-0.28294182010212804d0))))
else if (x <= 0.038d0) then
tmp = x * (y * (-0.0424927283095952d0))
else if (x <= 2.0d0) then
tmp = ((x - 2.0d0) * z) / (47.066876606d0 + (x * 313.399215894d0))
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 + (5.86923874282773 / x));
double tmp;
if (x <= -250.0) {
tmp = t_0;
} else if (x <= 2.4e-31) {
tmp = (z * -0.0424927283095952) + (x * ((z * 0.0212463641547976) - (z * -0.28294182010212804)));
} else if (x <= 0.038) {
tmp = x * (y * -0.0424927283095952);
} else if (x <= 2.0) {
tmp = ((x - 2.0) * z) / (47.066876606 + (x * 313.399215894));
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x)) tmp = 0 if x <= -250.0: tmp = t_0 elif x <= 2.4e-31: tmp = (z * -0.0424927283095952) + (x * ((z * 0.0212463641547976) - (z * -0.28294182010212804))) elif x <= 0.038: tmp = x * (y * -0.0424927283095952) elif x <= 2.0: tmp = ((x - 2.0) * z) / (47.066876606 + (x * 313.399215894)) else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(Float64(x + -2.0) / Float64(0.24013125253755718 + Float64(5.86923874282773 / x))) tmp = 0.0 if (x <= -250.0) tmp = t_0; elseif (x <= 2.4e-31) tmp = Float64(Float64(z * -0.0424927283095952) + Float64(x * Float64(Float64(z * 0.0212463641547976) - Float64(z * -0.28294182010212804)))); elseif (x <= 0.038) tmp = Float64(x * Float64(y * -0.0424927283095952)); elseif (x <= 2.0) tmp = Float64(Float64(Float64(x - 2.0) * z) / Float64(47.066876606 + Float64(x * 313.399215894))); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x)); tmp = 0.0; if (x <= -250.0) tmp = t_0; elseif (x <= 2.4e-31) tmp = (z * -0.0424927283095952) + (x * ((z * 0.0212463641547976) - (z * -0.28294182010212804))); elseif (x <= 0.038) tmp = x * (y * -0.0424927283095952); elseif (x <= 2.0) tmp = ((x - 2.0) * z) / (47.066876606 + (x * 313.399215894)); else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(x + -2.0), $MachinePrecision] / N[(0.24013125253755718 + N[(5.86923874282773 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -250.0], t$95$0, If[LessEqual[x, 2.4e-31], N[(N[(z * -0.0424927283095952), $MachinePrecision] + N[(x * N[(N[(z * 0.0212463641547976), $MachinePrecision] - N[(z * -0.28294182010212804), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 0.038], N[(x * N[(y * -0.0424927283095952), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.0], N[(N[(N[(x - 2.0), $MachinePrecision] * z), $MachinePrecision] / N[(47.066876606 + N[(x * 313.399215894), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$0]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{x + -2}{0.24013125253755718 + \frac{5.86923874282773}{x}}\\
\mathbf{if}\;x \leq -250:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 2.4 \cdot 10^{-31}:\\
\;\;\;\;z \cdot -0.0424927283095952 + x \cdot \left(z \cdot 0.0212463641547976 - z \cdot -0.28294182010212804\right)\\
\mathbf{elif}\;x \leq 0.038:\\
\;\;\;\;x \cdot \left(y \cdot -0.0424927283095952\right)\\
\mathbf{elif}\;x \leq 2:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot z}{47.066876606 + x \cdot 313.399215894}\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if x < -250 or 2 < x Initial program 16.7%
associate-/l*20.1%
sub-neg20.1%
metadata-eval20.1%
fma-def20.1%
fma-def20.1%
fma-def20.1%
fma-def20.1%
fma-def20.1%
fma-def20.1%
fma-def20.1%
Simplified20.1%
Taylor expanded in x around inf 89.2%
associate-*r/89.2%
metadata-eval89.2%
Simplified89.2%
if -250 < x < 2.4e-31Initial program 99.0%
associate-/l*99.5%
sub-neg99.5%
metadata-eval99.5%
fma-def99.5%
fma-def99.5%
fma-def99.5%
fma-def99.5%
fma-def99.5%
fma-def99.5%
fma-def99.5%
Simplified99.5%
Taylor expanded in x around 0 61.2%
Taylor expanded in z around inf 65.7%
Taylor expanded in x around 0 66.0%
if 2.4e-31 < x < 0.0379999999999999991Initial program 99.3%
associate-/l*99.0%
sub-neg99.0%
metadata-eval99.0%
fma-def99.0%
fma-def99.0%
fma-def99.0%
fma-def99.0%
fma-def99.0%
fma-def99.0%
fma-def99.0%
Simplified99.0%
Taylor expanded in y around inf 77.7%
Taylor expanded in x around 0 58.1%
associate-/r*58.2%
Simplified58.2%
Taylor expanded in x around 0 58.2%
*-commutative58.2%
associate-*r*58.4%
Simplified58.4%
if 0.0379999999999999991 < x < 2Initial program 100.0%
associate-/l*98.4%
sub-neg98.4%
metadata-eval98.4%
fma-def98.4%
fma-def98.4%
fma-def98.4%
fma-def98.4%
fma-def98.4%
fma-def98.4%
fma-def98.4%
Simplified98.4%
Taylor expanded in x around 0 28.6%
Taylor expanded in z around inf 28.6%
Final simplification75.9%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (/ (+ x -2.0) (+ 0.24013125253755718 (/ 5.86923874282773 x)))))
(if (<= x -125.0)
t_0
(if (<= x 3.5e-31)
(/ (+ x -2.0) (/ 47.066876606 z))
(if (<= x 0.038)
(* x (* y -0.0424927283095952))
(if (<= x 2.0)
(/ (* z -2.0) (+ 47.066876606 (* x 313.399215894)))
t_0))))))
double code(double x, double y, double z) {
double t_0 = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x));
double tmp;
if (x <= -125.0) {
tmp = t_0;
} else if (x <= 3.5e-31) {
tmp = (x + -2.0) / (47.066876606 / z);
} else if (x <= 0.038) {
tmp = x * (y * -0.0424927283095952);
} else if (x <= 2.0) {
tmp = (z * -2.0) / (47.066876606 + (x * 313.399215894));
} 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 + (5.86923874282773d0 / x))
if (x <= (-125.0d0)) then
tmp = t_0
else if (x <= 3.5d-31) then
tmp = (x + (-2.0d0)) / (47.066876606d0 / z)
else if (x <= 0.038d0) then
tmp = x * (y * (-0.0424927283095952d0))
else if (x <= 2.0d0) then
tmp = (z * (-2.0d0)) / (47.066876606d0 + (x * 313.399215894d0))
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 + (5.86923874282773 / x));
double tmp;
if (x <= -125.0) {
tmp = t_0;
} else if (x <= 3.5e-31) {
tmp = (x + -2.0) / (47.066876606 / z);
} else if (x <= 0.038) {
tmp = x * (y * -0.0424927283095952);
} else if (x <= 2.0) {
tmp = (z * -2.0) / (47.066876606 + (x * 313.399215894));
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x)) tmp = 0 if x <= -125.0: tmp = t_0 elif x <= 3.5e-31: tmp = (x + -2.0) / (47.066876606 / z) elif x <= 0.038: tmp = x * (y * -0.0424927283095952) elif x <= 2.0: tmp = (z * -2.0) / (47.066876606 + (x * 313.399215894)) else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(Float64(x + -2.0) / Float64(0.24013125253755718 + Float64(5.86923874282773 / x))) tmp = 0.0 if (x <= -125.0) tmp = t_0; elseif (x <= 3.5e-31) tmp = Float64(Float64(x + -2.0) / Float64(47.066876606 / z)); elseif (x <= 0.038) tmp = Float64(x * Float64(y * -0.0424927283095952)); elseif (x <= 2.0) tmp = Float64(Float64(z * -2.0) / Float64(47.066876606 + Float64(x * 313.399215894))); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x)); tmp = 0.0; if (x <= -125.0) tmp = t_0; elseif (x <= 3.5e-31) tmp = (x + -2.0) / (47.066876606 / z); elseif (x <= 0.038) tmp = x * (y * -0.0424927283095952); elseif (x <= 2.0) tmp = (z * -2.0) / (47.066876606 + (x * 313.399215894)); else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(x + -2.0), $MachinePrecision] / N[(0.24013125253755718 + N[(5.86923874282773 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -125.0], t$95$0, If[LessEqual[x, 3.5e-31], N[(N[(x + -2.0), $MachinePrecision] / N[(47.066876606 / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 0.038], N[(x * N[(y * -0.0424927283095952), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.0], N[(N[(z * -2.0), $MachinePrecision] / N[(47.066876606 + N[(x * 313.399215894), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$0]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{x + -2}{0.24013125253755718 + \frac{5.86923874282773}{x}}\\
\mathbf{if}\;x \leq -125:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 3.5 \cdot 10^{-31}:\\
\;\;\;\;\frac{x + -2}{\frac{47.066876606}{z}}\\
\mathbf{elif}\;x \leq 0.038:\\
\;\;\;\;x \cdot \left(y \cdot -0.0424927283095952\right)\\
\mathbf{elif}\;x \leq 2:\\
\;\;\;\;\frac{z \cdot -2}{47.066876606 + x \cdot 313.399215894}\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if x < -125 or 2 < x Initial program 16.7%
associate-/l*20.1%
sub-neg20.1%
metadata-eval20.1%
fma-def20.1%
fma-def20.1%
fma-def20.1%
fma-def20.1%
fma-def20.1%
fma-def20.1%
fma-def20.1%
Simplified20.1%
Taylor expanded in x around inf 89.2%
associate-*r/89.2%
metadata-eval89.2%
Simplified89.2%
if -125 < x < 3.49999999999999985e-31Initial program 99.0%
associate-/l*99.5%
sub-neg99.5%
metadata-eval99.5%
fma-def99.5%
fma-def99.5%
fma-def99.5%
fma-def99.5%
fma-def99.5%
fma-def99.5%
fma-def99.5%
Simplified99.5%
Taylor expanded in x around 0 65.9%
if 3.49999999999999985e-31 < x < 0.0379999999999999991Initial program 99.3%
associate-/l*99.0%
sub-neg99.0%
metadata-eval99.0%
fma-def99.0%
fma-def99.0%
fma-def99.0%
fma-def99.0%
fma-def99.0%
fma-def99.0%
fma-def99.0%
Simplified99.0%
Taylor expanded in y around inf 77.7%
Taylor expanded in x around 0 58.1%
associate-/r*58.2%
Simplified58.2%
Taylor expanded in x around 0 58.2%
*-commutative58.2%
associate-*r*58.4%
Simplified58.4%
if 0.0379999999999999991 < x < 2Initial program 100.0%
associate-/l*98.4%
sub-neg98.4%
metadata-eval98.4%
fma-def98.4%
fma-def98.4%
fma-def98.4%
fma-def98.4%
fma-def98.4%
fma-def98.4%
fma-def98.4%
Simplified98.4%
Taylor expanded in x around 0 28.6%
Taylor expanded in z around inf 28.6%
Taylor expanded in x around 0 25.5%
*-commutative25.5%
Simplified25.5%
Final simplification75.8%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (/ (+ x -2.0) (+ 0.24013125253755718 (/ 5.86923874282773 x)))))
(if (<= x -330.0)
t_0
(if (<= x 2.7e-31)
(+
(* z -0.0424927283095952)
(* x (- (* z 0.0212463641547976) (* z -0.28294182010212804))))
(if (<= x 0.68)
(/ (+ x -2.0) (+ (/ 313.399215894 y) (/ (/ 47.066876606 x) y)))
t_0)))))
double code(double x, double y, double z) {
double t_0 = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x));
double tmp;
if (x <= -330.0) {
tmp = t_0;
} else if (x <= 2.7e-31) {
tmp = (z * -0.0424927283095952) + (x * ((z * 0.0212463641547976) - (z * -0.28294182010212804)));
} else if (x <= 0.68) {
tmp = (x + -2.0) / ((313.399215894 / y) + ((47.066876606 / x) / y));
} 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 + (5.86923874282773d0 / x))
if (x <= (-330.0d0)) then
tmp = t_0
else if (x <= 2.7d-31) then
tmp = (z * (-0.0424927283095952d0)) + (x * ((z * 0.0212463641547976d0) - (z * (-0.28294182010212804d0))))
else if (x <= 0.68d0) then
tmp = (x + (-2.0d0)) / ((313.399215894d0 / y) + ((47.066876606d0 / x) / y))
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 + (5.86923874282773 / x));
double tmp;
if (x <= -330.0) {
tmp = t_0;
} else if (x <= 2.7e-31) {
tmp = (z * -0.0424927283095952) + (x * ((z * 0.0212463641547976) - (z * -0.28294182010212804)));
} else if (x <= 0.68) {
tmp = (x + -2.0) / ((313.399215894 / y) + ((47.066876606 / x) / y));
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x)) tmp = 0 if x <= -330.0: tmp = t_0 elif x <= 2.7e-31: tmp = (z * -0.0424927283095952) + (x * ((z * 0.0212463641547976) - (z * -0.28294182010212804))) elif x <= 0.68: tmp = (x + -2.0) / ((313.399215894 / y) + ((47.066876606 / x) / y)) else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(Float64(x + -2.0) / Float64(0.24013125253755718 + Float64(5.86923874282773 / x))) tmp = 0.0 if (x <= -330.0) tmp = t_0; elseif (x <= 2.7e-31) tmp = Float64(Float64(z * -0.0424927283095952) + Float64(x * Float64(Float64(z * 0.0212463641547976) - Float64(z * -0.28294182010212804)))); elseif (x <= 0.68) tmp = Float64(Float64(x + -2.0) / Float64(Float64(313.399215894 / y) + Float64(Float64(47.066876606 / x) / y))); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x)); tmp = 0.0; if (x <= -330.0) tmp = t_0; elseif (x <= 2.7e-31) tmp = (z * -0.0424927283095952) + (x * ((z * 0.0212463641547976) - (z * -0.28294182010212804))); elseif (x <= 0.68) tmp = (x + -2.0) / ((313.399215894 / y) + ((47.066876606 / x) / y)); else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(x + -2.0), $MachinePrecision] / N[(0.24013125253755718 + N[(5.86923874282773 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -330.0], t$95$0, If[LessEqual[x, 2.7e-31], N[(N[(z * -0.0424927283095952), $MachinePrecision] + N[(x * N[(N[(z * 0.0212463641547976), $MachinePrecision] - N[(z * -0.28294182010212804), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 0.68], N[(N[(x + -2.0), $MachinePrecision] / N[(N[(313.399215894 / y), $MachinePrecision] + N[(N[(47.066876606 / x), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$0]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{x + -2}{0.24013125253755718 + \frac{5.86923874282773}{x}}\\
\mathbf{if}\;x \leq -330:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 2.7 \cdot 10^{-31}:\\
\;\;\;\;z \cdot -0.0424927283095952 + x \cdot \left(z \cdot 0.0212463641547976 - z \cdot -0.28294182010212804\right)\\
\mathbf{elif}\;x \leq 0.68:\\
\;\;\;\;\frac{x + -2}{\frac{313.399215894}{y} + \frac{\frac{47.066876606}{x}}{y}}\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if x < -330 or 0.680000000000000049 < x Initial program 16.7%
associate-/l*20.1%
sub-neg20.1%
metadata-eval20.1%
fma-def20.1%
fma-def20.1%
fma-def20.1%
fma-def20.1%
fma-def20.1%
fma-def20.1%
fma-def20.1%
Simplified20.1%
Taylor expanded in x around inf 89.2%
associate-*r/89.2%
metadata-eval89.2%
Simplified89.2%
if -330 < x < 2.70000000000000014e-31Initial program 99.0%
associate-/l*99.5%
sub-neg99.5%
metadata-eval99.5%
fma-def99.5%
fma-def99.5%
fma-def99.5%
fma-def99.5%
fma-def99.5%
fma-def99.5%
fma-def99.5%
Simplified99.5%
Taylor expanded in x around 0 61.2%
Taylor expanded in z around inf 65.7%
Taylor expanded in x around 0 66.0%
if 2.70000000000000014e-31 < x < 0.680000000000000049Initial program 99.4%
associate-/l*99.0%
sub-neg99.0%
metadata-eval99.0%
fma-def99.0%
fma-def99.0%
fma-def99.0%
fma-def99.0%
fma-def99.0%
fma-def99.0%
fma-def99.0%
Simplified99.0%
Taylor expanded in y around inf 70.1%
Taylor expanded in x around 0 57.3%
associate-*r/57.3%
metadata-eval57.3%
associate-*r/57.3%
metadata-eval57.3%
associate-/r*57.5%
Simplified57.5%
Final simplification76.0%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (/ (+ x -2.0) (+ 0.24013125253755718 (/ 5.86923874282773 x)))))
(if (<= x -36.0)
t_0
(if (<= x 2.3e-31)
(/ (- x 2.0) (+ (* 313.399215894 (/ x z)) (* 47.066876606 (/ 1.0 z))))
(if (<= x 245.0)
(/ (+ x -2.0) (+ (/ 313.399215894 y) (/ (/ 47.066876606 x) y)))
t_0)))))
double code(double x, double y, double z) {
double t_0 = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x));
double tmp;
if (x <= -36.0) {
tmp = t_0;
} else if (x <= 2.3e-31) {
tmp = (x - 2.0) / ((313.399215894 * (x / z)) + (47.066876606 * (1.0 / z)));
} else if (x <= 245.0) {
tmp = (x + -2.0) / ((313.399215894 / y) + ((47.066876606 / x) / y));
} 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 + (5.86923874282773d0 / x))
if (x <= (-36.0d0)) then
tmp = t_0
else if (x <= 2.3d-31) then
tmp = (x - 2.0d0) / ((313.399215894d0 * (x / z)) + (47.066876606d0 * (1.0d0 / z)))
else if (x <= 245.0d0) then
tmp = (x + (-2.0d0)) / ((313.399215894d0 / y) + ((47.066876606d0 / x) / y))
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 + (5.86923874282773 / x));
double tmp;
if (x <= -36.0) {
tmp = t_0;
} else if (x <= 2.3e-31) {
tmp = (x - 2.0) / ((313.399215894 * (x / z)) + (47.066876606 * (1.0 / z)));
} else if (x <= 245.0) {
tmp = (x + -2.0) / ((313.399215894 / y) + ((47.066876606 / x) / y));
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x)) tmp = 0 if x <= -36.0: tmp = t_0 elif x <= 2.3e-31: tmp = (x - 2.0) / ((313.399215894 * (x / z)) + (47.066876606 * (1.0 / z))) elif x <= 245.0: tmp = (x + -2.0) / ((313.399215894 / y) + ((47.066876606 / x) / y)) else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(Float64(x + -2.0) / Float64(0.24013125253755718 + Float64(5.86923874282773 / x))) tmp = 0.0 if (x <= -36.0) tmp = t_0; elseif (x <= 2.3e-31) tmp = Float64(Float64(x - 2.0) / Float64(Float64(313.399215894 * Float64(x / z)) + Float64(47.066876606 * Float64(1.0 / z)))); elseif (x <= 245.0) tmp = Float64(Float64(x + -2.0) / Float64(Float64(313.399215894 / y) + Float64(Float64(47.066876606 / x) / y))); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x)); tmp = 0.0; if (x <= -36.0) tmp = t_0; elseif (x <= 2.3e-31) tmp = (x - 2.0) / ((313.399215894 * (x / z)) + (47.066876606 * (1.0 / z))); elseif (x <= 245.0) tmp = (x + -2.0) / ((313.399215894 / y) + ((47.066876606 / x) / y)); else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(x + -2.0), $MachinePrecision] / N[(0.24013125253755718 + N[(5.86923874282773 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -36.0], t$95$0, If[LessEqual[x, 2.3e-31], N[(N[(x - 2.0), $MachinePrecision] / N[(N[(313.399215894 * N[(x / z), $MachinePrecision]), $MachinePrecision] + N[(47.066876606 * N[(1.0 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 245.0], N[(N[(x + -2.0), $MachinePrecision] / N[(N[(313.399215894 / y), $MachinePrecision] + N[(N[(47.066876606 / x), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$0]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{x + -2}{0.24013125253755718 + \frac{5.86923874282773}{x}}\\
\mathbf{if}\;x \leq -36:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 2.3 \cdot 10^{-31}:\\
\;\;\;\;\frac{x - 2}{313.399215894 \cdot \frac{x}{z} + 47.066876606 \cdot \frac{1}{z}}\\
\mathbf{elif}\;x \leq 245:\\
\;\;\;\;\frac{x + -2}{\frac{313.399215894}{y} + \frac{\frac{47.066876606}{x}}{y}}\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if x < -36 or 245 < x Initial program 16.7%
associate-/l*20.1%
sub-neg20.1%
metadata-eval20.1%
fma-def20.1%
fma-def20.1%
fma-def20.1%
fma-def20.1%
fma-def20.1%
fma-def20.1%
fma-def20.1%
Simplified20.1%
Taylor expanded in x around inf 89.2%
associate-*r/89.2%
metadata-eval89.2%
Simplified89.2%
if -36 < x < 2.2999999999999998e-31Initial program 99.0%
associate-/l*99.5%
sub-neg99.5%
metadata-eval99.5%
fma-def99.5%
fma-def99.5%
fma-def99.5%
fma-def99.5%
fma-def99.5%
fma-def99.5%
fma-def99.5%
Simplified99.5%
Taylor expanded in x around 0 61.2%
Taylor expanded in y around 0 66.1%
if 2.2999999999999998e-31 < x < 245Initial program 99.4%
associate-/l*99.0%
sub-neg99.0%
metadata-eval99.0%
fma-def99.0%
fma-def99.0%
fma-def99.0%
fma-def99.0%
fma-def99.0%
fma-def99.0%
fma-def99.0%
Simplified99.0%
Taylor expanded in y around inf 70.1%
Taylor expanded in x around 0 57.3%
associate-*r/57.3%
metadata-eval57.3%
associate-*r/57.3%
metadata-eval57.3%
associate-/r*57.5%
Simplified57.5%
Final simplification76.1%
(FPCore (x y z)
:precision binary64
(if (or (<= x -1450.0) (not (<= x 14.6)))
(/ (+ x -2.0) (+ 0.24013125253755718 (/ 5.86923874282773 x)))
(-
(* z -0.0424927283095952)
(*
x
(- (* z -0.28294182010212804) (* 0.0212463641547976 (+ z (* y -2.0))))))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -1450.0) || !(x <= 14.6)) {
tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x));
} else {
tmp = (z * -0.0424927283095952) - (x * ((z * -0.28294182010212804) - (0.0212463641547976 * (z + (y * -2.0)))));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((x <= (-1450.0d0)) .or. (.not. (x <= 14.6d0))) then
tmp = (x + (-2.0d0)) / (0.24013125253755718d0 + (5.86923874282773d0 / x))
else
tmp = (z * (-0.0424927283095952d0)) - (x * ((z * (-0.28294182010212804d0)) - (0.0212463641547976d0 * (z + (y * (-2.0d0))))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -1450.0) || !(x <= 14.6)) {
tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x));
} else {
tmp = (z * -0.0424927283095952) - (x * ((z * -0.28294182010212804) - (0.0212463641547976 * (z + (y * -2.0)))));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -1450.0) or not (x <= 14.6): tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x)) else: tmp = (z * -0.0424927283095952) - (x * ((z * -0.28294182010212804) - (0.0212463641547976 * (z + (y * -2.0))))) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -1450.0) || !(x <= 14.6)) tmp = Float64(Float64(x + -2.0) / Float64(0.24013125253755718 + Float64(5.86923874282773 / x))); else tmp = Float64(Float64(z * -0.0424927283095952) - Float64(x * Float64(Float64(z * -0.28294182010212804) - Float64(0.0212463641547976 * Float64(z + Float64(y * -2.0)))))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -1450.0) || ~((x <= 14.6))) tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x)); else tmp = (z * -0.0424927283095952) - (x * ((z * -0.28294182010212804) - (0.0212463641547976 * (z + (y * -2.0))))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -1450.0], N[Not[LessEqual[x, 14.6]], $MachinePrecision]], N[(N[(x + -2.0), $MachinePrecision] / N[(0.24013125253755718 + N[(5.86923874282773 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(z * -0.0424927283095952), $MachinePrecision] - N[(x * N[(N[(z * -0.28294182010212804), $MachinePrecision] - N[(0.0212463641547976 * N[(z + N[(y * -2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1450 \lor \neg \left(x \leq 14.6\right):\\
\;\;\;\;\frac{x + -2}{0.24013125253755718 + \frac{5.86923874282773}{x}}\\
\mathbf{else}:\\
\;\;\;\;z \cdot -0.0424927283095952 - x \cdot \left(z \cdot -0.28294182010212804 - 0.0212463641547976 \cdot \left(z + y \cdot -2\right)\right)\\
\end{array}
\end{array}
if x < -1450 or 14.5999999999999996 < x Initial program 16.7%
associate-/l*20.1%
sub-neg20.1%
metadata-eval20.1%
fma-def20.1%
fma-def20.1%
fma-def20.1%
fma-def20.1%
fma-def20.1%
fma-def20.1%
fma-def20.1%
Simplified20.1%
Taylor expanded in x around inf 89.2%
associate-*r/89.2%
metadata-eval89.2%
Simplified89.2%
if -1450 < x < 14.5999999999999996Initial program 99.1%
Simplified99.4%
Taylor expanded in x around 0 92.4%
Final simplification91.0%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (- (* x 4.16438922228) 110.1139242984811)))
(if (<= x -33.0)
t_0
(if (<= x 2.1e-31)
(* z -0.0424927283095952)
(if (<= x 0.038)
(* x (* y -0.0424927283095952))
(if (<= x 0.68) (* z -0.0424927283095952) t_0))))))
double code(double x, double y, double z) {
double t_0 = (x * 4.16438922228) - 110.1139242984811;
double tmp;
if (x <= -33.0) {
tmp = t_0;
} else if (x <= 2.1e-31) {
tmp = z * -0.0424927283095952;
} else if (x <= 0.038) {
tmp = x * (y * -0.0424927283095952);
} else if (x <= 0.68) {
tmp = z * -0.0424927283095952;
} else {
tmp = t_0;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = (x * 4.16438922228d0) - 110.1139242984811d0
if (x <= (-33.0d0)) then
tmp = t_0
else if (x <= 2.1d-31) then
tmp = z * (-0.0424927283095952d0)
else if (x <= 0.038d0) then
tmp = x * (y * (-0.0424927283095952d0))
else if (x <= 0.68d0) then
tmp = z * (-0.0424927283095952d0)
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = (x * 4.16438922228) - 110.1139242984811;
double tmp;
if (x <= -33.0) {
tmp = t_0;
} else if (x <= 2.1e-31) {
tmp = z * -0.0424927283095952;
} else if (x <= 0.038) {
tmp = x * (y * -0.0424927283095952);
} else if (x <= 0.68) {
tmp = z * -0.0424927283095952;
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = (x * 4.16438922228) - 110.1139242984811 tmp = 0 if x <= -33.0: tmp = t_0 elif x <= 2.1e-31: tmp = z * -0.0424927283095952 elif x <= 0.038: tmp = x * (y * -0.0424927283095952) elif x <= 0.68: tmp = z * -0.0424927283095952 else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(Float64(x * 4.16438922228) - 110.1139242984811) tmp = 0.0 if (x <= -33.0) tmp = t_0; elseif (x <= 2.1e-31) tmp = Float64(z * -0.0424927283095952); elseif (x <= 0.038) tmp = Float64(x * Float64(y * -0.0424927283095952)); elseif (x <= 0.68) tmp = Float64(z * -0.0424927283095952); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = (x * 4.16438922228) - 110.1139242984811; tmp = 0.0; if (x <= -33.0) tmp = t_0; elseif (x <= 2.1e-31) tmp = z * -0.0424927283095952; elseif (x <= 0.038) tmp = x * (y * -0.0424927283095952); elseif (x <= 0.68) tmp = z * -0.0424927283095952; else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(x * 4.16438922228), $MachinePrecision] - 110.1139242984811), $MachinePrecision]}, If[LessEqual[x, -33.0], t$95$0, If[LessEqual[x, 2.1e-31], N[(z * -0.0424927283095952), $MachinePrecision], If[LessEqual[x, 0.038], N[(x * N[(y * -0.0424927283095952), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 0.68], N[(z * -0.0424927283095952), $MachinePrecision], t$95$0]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot 4.16438922228 - 110.1139242984811\\
\mathbf{if}\;x \leq -33:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 2.1 \cdot 10^{-31}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{elif}\;x \leq 0.038:\\
\;\;\;\;x \cdot \left(y \cdot -0.0424927283095952\right)\\
\mathbf{elif}\;x \leq 0.68:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if x < -33 or 0.680000000000000049 < x Initial program 16.7%
Simplified20.1%
Taylor expanded in x around inf 88.7%
if -33 < x < 2.09999999999999991e-31 or 0.0379999999999999991 < x < 0.680000000000000049Initial program 99.0%
Simplified99.4%
Taylor expanded in x around 0 65.4%
if 2.09999999999999991e-31 < x < 0.0379999999999999991Initial program 99.3%
associate-/l*99.0%
sub-neg99.0%
metadata-eval99.0%
fma-def99.0%
fma-def99.0%
fma-def99.0%
fma-def99.0%
fma-def99.0%
fma-def99.0%
fma-def99.0%
Simplified99.0%
Taylor expanded in y around inf 77.7%
Taylor expanded in x around 0 58.1%
associate-/r*58.2%
Simplified58.2%
Taylor expanded in x around 0 58.2%
*-commutative58.2%
associate-*r*58.4%
Simplified58.4%
Final simplification75.5%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (/ (+ x -2.0) 0.24013125253755718)))
(if (<= x -48.0)
t_0
(if (<= x 1.6e-31)
(* z -0.0424927283095952)
(if (<= x 0.038)
(* x (* y -0.0424927283095952))
(if (<= x 2e+17) (- (* x 4.16438922228) 110.1139242984811) t_0))))))
double code(double x, double y, double z) {
double t_0 = (x + -2.0) / 0.24013125253755718;
double tmp;
if (x <= -48.0) {
tmp = t_0;
} else if (x <= 1.6e-31) {
tmp = z * -0.0424927283095952;
} else if (x <= 0.038) {
tmp = x * (y * -0.0424927283095952);
} else if (x <= 2e+17) {
tmp = (x * 4.16438922228) - 110.1139242984811;
} 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 <= (-48.0d0)) then
tmp = t_0
else if (x <= 1.6d-31) then
tmp = z * (-0.0424927283095952d0)
else if (x <= 0.038d0) then
tmp = x * (y * (-0.0424927283095952d0))
else if (x <= 2d+17) then
tmp = (x * 4.16438922228d0) - 110.1139242984811d0
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 <= -48.0) {
tmp = t_0;
} else if (x <= 1.6e-31) {
tmp = z * -0.0424927283095952;
} else if (x <= 0.038) {
tmp = x * (y * -0.0424927283095952);
} else if (x <= 2e+17) {
tmp = (x * 4.16438922228) - 110.1139242984811;
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = (x + -2.0) / 0.24013125253755718 tmp = 0 if x <= -48.0: tmp = t_0 elif x <= 1.6e-31: tmp = z * -0.0424927283095952 elif x <= 0.038: tmp = x * (y * -0.0424927283095952) elif x <= 2e+17: tmp = (x * 4.16438922228) - 110.1139242984811 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 <= -48.0) tmp = t_0; elseif (x <= 1.6e-31) tmp = Float64(z * -0.0424927283095952); elseif (x <= 0.038) tmp = Float64(x * Float64(y * -0.0424927283095952)); elseif (x <= 2e+17) tmp = Float64(Float64(x * 4.16438922228) - 110.1139242984811); 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 <= -48.0) tmp = t_0; elseif (x <= 1.6e-31) tmp = z * -0.0424927283095952; elseif (x <= 0.038) tmp = x * (y * -0.0424927283095952); elseif (x <= 2e+17) tmp = (x * 4.16438922228) - 110.1139242984811; 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, -48.0], t$95$0, If[LessEqual[x, 1.6e-31], N[(z * -0.0424927283095952), $MachinePrecision], If[LessEqual[x, 0.038], N[(x * N[(y * -0.0424927283095952), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2e+17], N[(N[(x * 4.16438922228), $MachinePrecision] - 110.1139242984811), $MachinePrecision], t$95$0]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{x + -2}{0.24013125253755718}\\
\mathbf{if}\;x \leq -48:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 1.6 \cdot 10^{-31}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{elif}\;x \leq 0.038:\\
\;\;\;\;x \cdot \left(y \cdot -0.0424927283095952\right)\\
\mathbf{elif}\;x \leq 2 \cdot 10^{+17}:\\
\;\;\;\;x \cdot 4.16438922228 - 110.1139242984811\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if x < -48 or 2e17 < x Initial program 13.0%
associate-/l*16.5%
sub-neg16.5%
metadata-eval16.5%
fma-def16.5%
fma-def16.5%
fma-def16.5%
fma-def16.5%
fma-def16.5%
fma-def16.5%
fma-def16.5%
Simplified16.5%
Taylor expanded in x around inf 90.5%
if -48 < x < 1.60000000000000009e-31Initial program 99.0%
Simplified99.4%
Taylor expanded in x around 0 65.7%
if 1.60000000000000009e-31 < x < 0.0379999999999999991Initial program 99.3%
associate-/l*99.0%
sub-neg99.0%
metadata-eval99.0%
fma-def99.0%
fma-def99.0%
fma-def99.0%
fma-def99.0%
fma-def99.0%
fma-def99.0%
fma-def99.0%
Simplified99.0%
Taylor expanded in y around inf 77.7%
Taylor expanded in x around 0 58.1%
associate-/r*58.2%
Simplified58.2%
Taylor expanded in x around 0 58.2%
*-commutative58.2%
associate-*r*58.4%
Simplified58.4%
if 0.0379999999999999991 < x < 2e17Initial program 98.8%
Simplified99.3%
Taylor expanded in x around inf 48.5%
Final simplification75.6%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (/ (+ x -2.0) 0.24013125253755718)))
(if (<= x -0.75)
t_0
(if (<= x 1.5e-31)
(/ (+ x -2.0) (/ 47.066876606 z))
(if (<= x 0.038)
(* x (* y -0.0424927283095952))
(if (<= x 2e+17) (- (* x 4.16438922228) 110.1139242984811) t_0))))))
double code(double x, double y, double z) {
double t_0 = (x + -2.0) / 0.24013125253755718;
double tmp;
if (x <= -0.75) {
tmp = t_0;
} else if (x <= 1.5e-31) {
tmp = (x + -2.0) / (47.066876606 / z);
} else if (x <= 0.038) {
tmp = x * (y * -0.0424927283095952);
} else if (x <= 2e+17) {
tmp = (x * 4.16438922228) - 110.1139242984811;
} 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 <= (-0.75d0)) then
tmp = t_0
else if (x <= 1.5d-31) then
tmp = (x + (-2.0d0)) / (47.066876606d0 / z)
else if (x <= 0.038d0) then
tmp = x * (y * (-0.0424927283095952d0))
else if (x <= 2d+17) then
tmp = (x * 4.16438922228d0) - 110.1139242984811d0
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 <= -0.75) {
tmp = t_0;
} else if (x <= 1.5e-31) {
tmp = (x + -2.0) / (47.066876606 / z);
} else if (x <= 0.038) {
tmp = x * (y * -0.0424927283095952);
} else if (x <= 2e+17) {
tmp = (x * 4.16438922228) - 110.1139242984811;
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = (x + -2.0) / 0.24013125253755718 tmp = 0 if x <= -0.75: tmp = t_0 elif x <= 1.5e-31: tmp = (x + -2.0) / (47.066876606 / z) elif x <= 0.038: tmp = x * (y * -0.0424927283095952) elif x <= 2e+17: tmp = (x * 4.16438922228) - 110.1139242984811 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 <= -0.75) tmp = t_0; elseif (x <= 1.5e-31) tmp = Float64(Float64(x + -2.0) / Float64(47.066876606 / z)); elseif (x <= 0.038) tmp = Float64(x * Float64(y * -0.0424927283095952)); elseif (x <= 2e+17) tmp = Float64(Float64(x * 4.16438922228) - 110.1139242984811); 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 <= -0.75) tmp = t_0; elseif (x <= 1.5e-31) tmp = (x + -2.0) / (47.066876606 / z); elseif (x <= 0.038) tmp = x * (y * -0.0424927283095952); elseif (x <= 2e+17) tmp = (x * 4.16438922228) - 110.1139242984811; 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, -0.75], t$95$0, If[LessEqual[x, 1.5e-31], N[(N[(x + -2.0), $MachinePrecision] / N[(47.066876606 / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 0.038], N[(x * N[(y * -0.0424927283095952), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2e+17], N[(N[(x * 4.16438922228), $MachinePrecision] - 110.1139242984811), $MachinePrecision], t$95$0]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{x + -2}{0.24013125253755718}\\
\mathbf{if}\;x \leq -0.75:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 1.5 \cdot 10^{-31}:\\
\;\;\;\;\frac{x + -2}{\frac{47.066876606}{z}}\\
\mathbf{elif}\;x \leq 0.038:\\
\;\;\;\;x \cdot \left(y \cdot -0.0424927283095952\right)\\
\mathbf{elif}\;x \leq 2 \cdot 10^{+17}:\\
\;\;\;\;x \cdot 4.16438922228 - 110.1139242984811\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if x < -0.75 or 2e17 < x Initial program 13.0%
associate-/l*16.5%
sub-neg16.5%
metadata-eval16.5%
fma-def16.5%
fma-def16.5%
fma-def16.5%
fma-def16.5%
fma-def16.5%
fma-def16.5%
fma-def16.5%
Simplified16.5%
Taylor expanded in x around inf 90.5%
if -0.75 < x < 1.49999999999999991e-31Initial program 99.0%
associate-/l*99.5%
sub-neg99.5%
metadata-eval99.5%
fma-def99.5%
fma-def99.5%
fma-def99.5%
fma-def99.5%
fma-def99.5%
fma-def99.5%
fma-def99.5%
Simplified99.5%
Taylor expanded in x around 0 65.9%
if 1.49999999999999991e-31 < x < 0.0379999999999999991Initial program 99.3%
associate-/l*99.0%
sub-neg99.0%
metadata-eval99.0%
fma-def99.0%
fma-def99.0%
fma-def99.0%
fma-def99.0%
fma-def99.0%
fma-def99.0%
fma-def99.0%
Simplified99.0%
Taylor expanded in y around inf 77.7%
Taylor expanded in x around 0 58.1%
associate-/r*58.2%
Simplified58.2%
Taylor expanded in x around 0 58.2%
*-commutative58.2%
associate-*r*58.4%
Simplified58.4%
if 0.0379999999999999991 < x < 2e17Initial program 98.8%
Simplified99.3%
Taylor expanded in x around inf 48.5%
Final simplification75.7%
(FPCore (x y z)
:precision binary64
(if (<= x -5.5)
(* x 4.16438922228)
(if (<= x 3.8e-31)
(* z -0.0424927283095952)
(if (<= x 0.038)
(* -0.0424927283095952 (* x y))
(if (<= x 2.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;
} else if (x <= 3.8e-31) {
tmp = z * -0.0424927283095952;
} else if (x <= 0.038) {
tmp = -0.0424927283095952 * (x * y);
} else if (x <= 2.0) {
tmp = z * -0.0424927283095952;
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-5.5d0)) then
tmp = x * 4.16438922228d0
else if (x <= 3.8d-31) then
tmp = z * (-0.0424927283095952d0)
else if (x <= 0.038d0) then
tmp = (-0.0424927283095952d0) * (x * y)
else if (x <= 2.0d0) then
tmp = z * (-0.0424927283095952d0)
else
tmp = x * 4.16438922228d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -5.5) {
tmp = x * 4.16438922228;
} else if (x <= 3.8e-31) {
tmp = z * -0.0424927283095952;
} else if (x <= 0.038) {
tmp = -0.0424927283095952 * (x * y);
} else if (x <= 2.0) {
tmp = z * -0.0424927283095952;
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -5.5: tmp = x * 4.16438922228 elif x <= 3.8e-31: tmp = z * -0.0424927283095952 elif x <= 0.038: tmp = -0.0424927283095952 * (x * y) elif x <= 2.0: tmp = z * -0.0424927283095952 else: tmp = x * 4.16438922228 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -5.5) tmp = Float64(x * 4.16438922228); elseif (x <= 3.8e-31) tmp = Float64(z * -0.0424927283095952); elseif (x <= 0.038) tmp = Float64(-0.0424927283095952 * Float64(x * y)); elseif (x <= 2.0) tmp = Float64(z * -0.0424927283095952); else tmp = Float64(x * 4.16438922228); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -5.5) tmp = x * 4.16438922228; elseif (x <= 3.8e-31) tmp = z * -0.0424927283095952; elseif (x <= 0.038) tmp = -0.0424927283095952 * (x * y); elseif (x <= 2.0) tmp = z * -0.0424927283095952; else tmp = x * 4.16438922228; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -5.5], N[(x * 4.16438922228), $MachinePrecision], If[LessEqual[x, 3.8e-31], N[(z * -0.0424927283095952), $MachinePrecision], If[LessEqual[x, 0.038], N[(-0.0424927283095952 * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.0], N[(z * -0.0424927283095952), $MachinePrecision], N[(x * 4.16438922228), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -5.5:\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{elif}\;x \leq 3.8 \cdot 10^{-31}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{elif}\;x \leq 0.038:\\
\;\;\;\;-0.0424927283095952 \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;x \leq 2:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228\\
\end{array}
\end{array}
if x < -5.5 or 2 < x Initial program 16.7%
Simplified20.1%
Taylor expanded in x around inf 88.2%
*-commutative88.2%
Simplified88.2%
if -5.5 < x < 3.8e-31 or 0.0379999999999999991 < x < 2Initial program 99.0%
Simplified99.4%
Taylor expanded in x around 0 65.4%
if 3.8e-31 < x < 0.0379999999999999991Initial program 99.3%
associate-/l*99.0%
sub-neg99.0%
metadata-eval99.0%
fma-def99.0%
fma-def99.0%
fma-def99.0%
fma-def99.0%
fma-def99.0%
fma-def99.0%
fma-def99.0%
Simplified99.0%
Taylor expanded in y around inf 77.7%
Taylor expanded in x around 0 58.1%
associate-/r*58.2%
Simplified58.2%
Taylor expanded in x around 0 58.2%
Final simplification75.3%
(FPCore (x y z)
:precision binary64
(if (<= x -5.5)
(* x 4.16438922228)
(if (<= x 5.4e-31)
(* z -0.0424927283095952)
(if (<= x 0.038)
(* x (* y -0.0424927283095952))
(if (<= x 2.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;
} else if (x <= 5.4e-31) {
tmp = z * -0.0424927283095952;
} else if (x <= 0.038) {
tmp = x * (y * -0.0424927283095952);
} else if (x <= 2.0) {
tmp = z * -0.0424927283095952;
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-5.5d0)) then
tmp = x * 4.16438922228d0
else if (x <= 5.4d-31) then
tmp = z * (-0.0424927283095952d0)
else if (x <= 0.038d0) then
tmp = x * (y * (-0.0424927283095952d0))
else if (x <= 2.0d0) then
tmp = z * (-0.0424927283095952d0)
else
tmp = x * 4.16438922228d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -5.5) {
tmp = x * 4.16438922228;
} else if (x <= 5.4e-31) {
tmp = z * -0.0424927283095952;
} else if (x <= 0.038) {
tmp = x * (y * -0.0424927283095952);
} else if (x <= 2.0) {
tmp = z * -0.0424927283095952;
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -5.5: tmp = x * 4.16438922228 elif x <= 5.4e-31: tmp = z * -0.0424927283095952 elif x <= 0.038: tmp = x * (y * -0.0424927283095952) elif x <= 2.0: tmp = z * -0.0424927283095952 else: tmp = x * 4.16438922228 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -5.5) tmp = Float64(x * 4.16438922228); elseif (x <= 5.4e-31) tmp = Float64(z * -0.0424927283095952); elseif (x <= 0.038) tmp = Float64(x * Float64(y * -0.0424927283095952)); elseif (x <= 2.0) tmp = Float64(z * -0.0424927283095952); else tmp = Float64(x * 4.16438922228); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -5.5) tmp = x * 4.16438922228; elseif (x <= 5.4e-31) tmp = z * -0.0424927283095952; elseif (x <= 0.038) tmp = x * (y * -0.0424927283095952); elseif (x <= 2.0) tmp = z * -0.0424927283095952; else tmp = x * 4.16438922228; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -5.5], N[(x * 4.16438922228), $MachinePrecision], If[LessEqual[x, 5.4e-31], N[(z * -0.0424927283095952), $MachinePrecision], If[LessEqual[x, 0.038], N[(x * N[(y * -0.0424927283095952), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.0], N[(z * -0.0424927283095952), $MachinePrecision], N[(x * 4.16438922228), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -5.5:\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{elif}\;x \leq 5.4 \cdot 10^{-31}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{elif}\;x \leq 0.038:\\
\;\;\;\;x \cdot \left(y \cdot -0.0424927283095952\right)\\
\mathbf{elif}\;x \leq 2:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228\\
\end{array}
\end{array}
if x < -5.5 or 2 < x Initial program 16.7%
Simplified20.1%
Taylor expanded in x around inf 88.2%
*-commutative88.2%
Simplified88.2%
if -5.5 < x < 5.40000000000000027e-31 or 0.0379999999999999991 < x < 2Initial program 99.0%
Simplified99.4%
Taylor expanded in x around 0 65.4%
if 5.40000000000000027e-31 < x < 0.0379999999999999991Initial program 99.3%
associate-/l*99.0%
sub-neg99.0%
metadata-eval99.0%
fma-def99.0%
fma-def99.0%
fma-def99.0%
fma-def99.0%
fma-def99.0%
fma-def99.0%
fma-def99.0%
Simplified99.0%
Taylor expanded in y around inf 77.7%
Taylor expanded in x around 0 58.1%
associate-/r*58.2%
Simplified58.2%
Taylor expanded in x around 0 58.2%
*-commutative58.2%
associate-*r*58.4%
Simplified58.4%
Final simplification75.3%
(FPCore (x y z) :precision binary64 (if (or (<= x -5.5) (not (<= x 2.0))) (* x 4.16438922228) (* z -0.0424927283095952)))
double code(double x, double y, double z) {
double tmp;
if ((x <= -5.5) || !(x <= 2.0)) {
tmp = x * 4.16438922228;
} else {
tmp = z * -0.0424927283095952;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((x <= (-5.5d0)) .or. (.not. (x <= 2.0d0))) then
tmp = x * 4.16438922228d0
else
tmp = z * (-0.0424927283095952d0)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -5.5) || !(x <= 2.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 <= 2.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 <= 2.0)) tmp = Float64(x * 4.16438922228); else tmp = Float64(z * -0.0424927283095952); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -5.5) || ~((x <= 2.0))) tmp = x * 4.16438922228; else tmp = z * -0.0424927283095952; end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -5.5], N[Not[LessEqual[x, 2.0]], $MachinePrecision]], N[(x * 4.16438922228), $MachinePrecision], N[(z * -0.0424927283095952), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -5.5 \lor \neg \left(x \leq 2\right):\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{else}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\end{array}
\end{array}
if x < -5.5 or 2 < x Initial program 16.7%
Simplified20.1%
Taylor expanded in x around inf 88.2%
*-commutative88.2%
Simplified88.2%
if -5.5 < x < 2Initial program 99.1%
Simplified99.4%
Taylor expanded in x around 0 62.1%
Final simplification73.7%
(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.4%
Simplified64.1%
Taylor expanded in x around 0 35.8%
Final simplification35.8%
(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 2024036
(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)))