
(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 24 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z)
:precision binary64
(/
(*
(- x 2.0)
(+
(*
(+ (* (+ (* (+ (* x 4.16438922228) 78.6994924154) x) 137.519416416) x) y)
x)
z))
(+
(* (+ (* (+ (* (+ x 43.3400022514) x) 263.505074721) x) 313.399215894) x)
47.066876606)))
double code(double x, double y, double z) {
return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606);
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = ((x - 2.0d0) * ((((((((x * 4.16438922228d0) + 78.6994924154d0) * x) + 137.519416416d0) * x) + y) * x) + z)) / (((((((x + 43.3400022514d0) * x) + 263.505074721d0) * x) + 313.399215894d0) * x) + 47.066876606d0)
end function
public static double code(double x, double y, double z) {
return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606);
}
def code(x, y, z): return ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606)
function code(x, y, z) return Float64(Float64(Float64(x - 2.0) * Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606)) end
function tmp = code(x, y, z) tmp = ((x - 2.0) * ((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z)) / (((((((x + 43.3400022514) * x) + 263.505074721) * x) + 313.399215894) * x) + 47.066876606); end
code[x_, y_, z_] := N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(N[(N[(N[(N[(N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision] * x), $MachinePrecision] + 137.519416416), $MachinePrecision] * x), $MachinePrecision] + y), $MachinePrecision] * x), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(x + 43.3400022514), $MachinePrecision] * x), $MachinePrecision] + 263.505074721), $MachinePrecision] * x), $MachinePrecision] + 313.399215894), $MachinePrecision] * x), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{\left(x - 2\right) \cdot \left(\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z\right)}{\left(\left(\left(x + 43.3400022514\right) \cdot x + 263.505074721\right) \cdot x + 313.399215894\right) \cdot x + 47.066876606}
\end{array}
(FPCore (x y z)
:precision binary64
(let* ((t_0
(+
47.066876606
(*
x
(+
313.399215894
(* x (+ 263.505074721 (* x (+ x 43.3400022514))))))))
(t_1
(*
x
(+
(* x (+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))
y))))
(if (<= (/ (* (- x 2.0) (+ t_1 z)) t_0) 5e+300)
(* (+ x -2.0) (+ (/ z t_0) (/ t_1 t_0)))
(/ (+ x -2.0) 0.24013125253755718))))
double code(double x, double y, double z) {
double t_0 = 47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514))))));
double t_1 = x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y);
double tmp;
if ((((x - 2.0) * (t_1 + z)) / t_0) <= 5e+300) {
tmp = (x + -2.0) * ((z / t_0) + (t_1 / t_0));
} else {
tmp = (x + -2.0) / 0.24013125253755718;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: t_1
real(8) :: tmp
t_0 = 47.066876606d0 + (x * (313.399215894d0 + (x * (263.505074721d0 + (x * (x + 43.3400022514d0))))))
t_1 = x * ((x * ((x * ((x * 4.16438922228d0) + 78.6994924154d0)) + 137.519416416d0)) + y)
if ((((x - 2.0d0) * (t_1 + z)) / t_0) <= 5d+300) then
tmp = (x + (-2.0d0)) * ((z / t_0) + (t_1 / t_0))
else
tmp = (x + (-2.0d0)) / 0.24013125253755718d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = 47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514))))));
double t_1 = x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y);
double tmp;
if ((((x - 2.0) * (t_1 + z)) / t_0) <= 5e+300) {
tmp = (x + -2.0) * ((z / t_0) + (t_1 / t_0));
} else {
tmp = (x + -2.0) / 0.24013125253755718;
}
return tmp;
}
def code(x, y, z): t_0 = 47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514)))))) t_1 = x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y) tmp = 0 if (((x - 2.0) * (t_1 + z)) / t_0) <= 5e+300: tmp = (x + -2.0) * ((z / t_0) + (t_1 / t_0)) else: tmp = (x + -2.0) / 0.24013125253755718 return tmp
function code(x, y, z) t_0 = Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * Float64(263.505074721 + Float64(x * Float64(x + 43.3400022514))))))) t_1 = Float64(x * 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(t_1 + z)) / t_0) <= 5e+300) tmp = Float64(Float64(x + -2.0) * Float64(Float64(z / t_0) + Float64(t_1 / t_0))); else tmp = Float64(Float64(x + -2.0) / 0.24013125253755718); end return tmp end
function tmp_2 = code(x, y, z) t_0 = 47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514)))))); t_1 = x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y); tmp = 0.0; if ((((x - 2.0) * (t_1 + z)) / t_0) <= 5e+300) tmp = (x + -2.0) * ((z / t_0) + (t_1 / t_0)); else tmp = (x + -2.0) / 0.24013125253755718; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * N[(263.505074721 + N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{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]}, If[LessEqual[N[(N[(N[(x - 2.0), $MachinePrecision] * N[(t$95$1 + z), $MachinePrecision]), $MachinePrecision] / t$95$0), $MachinePrecision], 5e+300], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z / t$95$0), $MachinePrecision] + N[(t$95$1 / t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := 47.066876606 + x \cdot \left(313.399215894 + x \cdot \left(263.505074721 + x \cdot \left(x + 43.3400022514\right)\right)\right)\\
t_1 := x \cdot \left(x \cdot \left(x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right) + 137.519416416\right) + y\right)\\
\mathbf{if}\;\frac{\left(x - 2\right) \cdot \left(t\_1 + z\right)}{t\_0} \leq 5 \cdot 10^{+300}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(\frac{z}{t\_0} + \frac{t\_1}{t\_0}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718}\\
\end{array}
\end{array}
if (/.f64 (*.f64 (-.f64 x #s(literal 2 binary64)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x #s(literal 104109730557/25000000000 binary64)) #s(literal 393497462077/5000000000 binary64)) x) #s(literal 4297481763/31250000 binary64)) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x #s(literal 216700011257/5000000000 binary64)) x) #s(literal 263505074721/1000000000 binary64)) x) #s(literal 156699607947/500000000 binary64)) x) #s(literal 23533438303/500000000 binary64))) < 5.00000000000000026e300Initial program 97.1%
associate-/l*98.3%
sub-neg98.3%
metadata-eval98.3%
*-commutative98.3%
fma-define98.3%
*-commutative98.3%
fma-define98.3%
*-commutative98.3%
fma-define98.3%
fma-define98.3%
*-commutative98.3%
Simplified98.3%
Taylor expanded in z around 0 98.3%
if 5.00000000000000026e300 < (/.f64 (*.f64 (-.f64 x #s(literal 2 binary64)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x #s(literal 104109730557/25000000000 binary64)) #s(literal 393497462077/5000000000 binary64)) x) #s(literal 4297481763/31250000 binary64)) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x #s(literal 216700011257/5000000000 binary64)) x) #s(literal 263505074721/1000000000 binary64)) x) #s(literal 156699607947/500000000 binary64)) x) #s(literal 23533438303/500000000 binary64))) Initial program 0.1%
associate-/l*3.8%
sub-neg3.8%
metadata-eval3.8%
*-commutative3.8%
fma-define3.8%
*-commutative3.8%
fma-define3.8%
*-commutative3.8%
fma-define3.8%
fma-define3.8%
*-commutative3.8%
Simplified3.8%
metadata-eval3.8%
sub-neg3.8%
clear-num3.8%
un-div-inv3.8%
sub-neg3.8%
metadata-eval3.8%
Applied egg-rr3.8%
Taylor expanded in x around inf 99.7%
Final simplification98.9%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(/
(*
(- x 2.0)
(+
(*
x
(+
(*
x
(+ (* x (+ (* x 4.16438922228) 78.6994924154)) 137.519416416))
y))
z))
(+
47.066876606
(*
x
(+
313.399215894
(* x (+ 263.505074721 (* x (+ x 43.3400022514))))))))))
(if (<= t_0 5e+300) t_0 (/ (+ x -2.0) 0.24013125253755718))))
double code(double x, double y, double z) {
double t_0 = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514)))))));
double tmp;
if (t_0 <= 5e+300) {
tmp = t_0;
} else {
tmp = (x + -2.0) / 0.24013125253755718;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = ((x - 2.0d0) * ((x * ((x * ((x * ((x * 4.16438922228d0) + 78.6994924154d0)) + 137.519416416d0)) + y)) + z)) / (47.066876606d0 + (x * (313.399215894d0 + (x * (263.505074721d0 + (x * (x + 43.3400022514d0)))))))
if (t_0 <= 5d+300) then
tmp = t_0
else
tmp = (x + (-2.0d0)) / 0.24013125253755718d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514)))))));
double tmp;
if (t_0 <= 5e+300) {
tmp = t_0;
} else {
tmp = (x + -2.0) / 0.24013125253755718;
}
return tmp;
}
def code(x, y, z): t_0 = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514))))))) tmp = 0 if t_0 <= 5e+300: tmp = t_0 else: tmp = (x + -2.0) / 0.24013125253755718 return tmp
function code(x, y, z) t_0 = Float64(Float64(Float64(x - 2.0) * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * Float64(263.505074721 + Float64(x * Float64(x + 43.3400022514)))))))) tmp = 0.0 if (t_0 <= 5e+300) tmp = t_0; else tmp = Float64(Float64(x + -2.0) / 0.24013125253755718); end return tmp end
function tmp_2 = code(x, y, z) t_0 = ((x - 2.0) * ((x * ((x * ((x * ((x * 4.16438922228) + 78.6994924154)) + 137.519416416)) + y)) + z)) / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514))))))); tmp = 0.0; if (t_0 <= 5e+300) tmp = t_0; else tmp = (x + -2.0) / 0.24013125253755718; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(N[(x - 2.0), $MachinePrecision] * N[(N[(x * N[(N[(x * N[(N[(x * N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision]), $MachinePrecision] + 137.519416416), $MachinePrecision]), $MachinePrecision] + y), $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision] / N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * N[(263.505074721 + N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$0, 5e+300], t$95$0, N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{\left(x - 2\right) \cdot \left(x \cdot \left(x \cdot \left(x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right) + 137.519416416\right) + y\right) + z\right)}{47.066876606 + x \cdot \left(313.399215894 + x \cdot \left(263.505074721 + x \cdot \left(x + 43.3400022514\right)\right)\right)}\\
\mathbf{if}\;t\_0 \leq 5 \cdot 10^{+300}:\\
\;\;\;\;t\_0\\
\mathbf{else}:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718}\\
\end{array}
\end{array}
if (/.f64 (*.f64 (-.f64 x #s(literal 2 binary64)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x #s(literal 104109730557/25000000000 binary64)) #s(literal 393497462077/5000000000 binary64)) x) #s(literal 4297481763/31250000 binary64)) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x #s(literal 216700011257/5000000000 binary64)) x) #s(literal 263505074721/1000000000 binary64)) x) #s(literal 156699607947/500000000 binary64)) x) #s(literal 23533438303/500000000 binary64))) < 5.00000000000000026e300Initial program 97.1%
if 5.00000000000000026e300 < (/.f64 (*.f64 (-.f64 x #s(literal 2 binary64)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x #s(literal 104109730557/25000000000 binary64)) #s(literal 393497462077/5000000000 binary64)) x) #s(literal 4297481763/31250000 binary64)) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x #s(literal 216700011257/5000000000 binary64)) x) #s(literal 263505074721/1000000000 binary64)) x) #s(literal 156699607947/500000000 binary64)) x) #s(literal 23533438303/500000000 binary64))) Initial program 0.1%
associate-/l*3.8%
sub-neg3.8%
metadata-eval3.8%
*-commutative3.8%
fma-define3.8%
*-commutative3.8%
fma-define3.8%
*-commutative3.8%
fma-define3.8%
fma-define3.8%
*-commutative3.8%
Simplified3.8%
metadata-eval3.8%
sub-neg3.8%
clear-num3.8%
un-div-inv3.8%
sub-neg3.8%
metadata-eval3.8%
Applied egg-rr3.8%
Taylor expanded in x around inf 99.7%
Final simplification98.1%
(FPCore (x y z)
:precision binary64
(if (or (<= x -1400000000000.0) (not (<= x 48000.0)))
(*
(+ x -2.0)
(+
4.16438922228
(/
(-
(/ (+ 3451.550173699799 (/ (- y 124074.40615218398) x)) x)
101.7851458539211)
x)))
(/
(*
(- x 2.0)
(+ z (* x (+ y (+ (* x (* x 78.6994924154)) (* x 137.519416416))))))
(+
47.066876606
(*
x
(+ 313.399215894 (* x (+ 263.505074721 (* x (+ x 43.3400022514))))))))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -1400000000000.0) || !(x <= 48000.0)) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
} else {
tmp = ((x - 2.0) * (z + (x * (y + ((x * (x * 78.6994924154)) + (x * 137.519416416)))))) / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514)))))));
}
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 <= (-1400000000000.0d0)) .or. (.not. (x <= 48000.0d0))) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + ((((3451.550173699799d0 + ((y - 124074.40615218398d0) / x)) / x) - 101.7851458539211d0) / x))
else
tmp = ((x - 2.0d0) * (z + (x * (y + ((x * (x * 78.6994924154d0)) + (x * 137.519416416d0)))))) / (47.066876606d0 + (x * (313.399215894d0 + (x * (263.505074721d0 + (x * (x + 43.3400022514d0)))))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -1400000000000.0) || !(x <= 48000.0)) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
} else {
tmp = ((x - 2.0) * (z + (x * (y + ((x * (x * 78.6994924154)) + (x * 137.519416416)))))) / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514)))))));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -1400000000000.0) or not (x <= 48000.0): tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)) else: tmp = ((x - 2.0) * (z + (x * (y + ((x * (x * 78.6994924154)) + (x * 137.519416416)))))) / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514))))))) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -1400000000000.0) || !(x <= 48000.0)) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(Float64(y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x))); else tmp = Float64(Float64(Float64(x - 2.0) * Float64(z + Float64(x * Float64(y + Float64(Float64(x * Float64(x * 78.6994924154)) + Float64(x * 137.519416416)))))) / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * Float64(263.505074721 + Float64(x * Float64(x + 43.3400022514)))))))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -1400000000000.0) || ~((x <= 48000.0))) tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)); else tmp = ((x - 2.0) * (z + (x * (y + ((x * (x * 78.6994924154)) + (x * 137.519416416)))))) / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514))))))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -1400000000000.0], N[Not[LessEqual[x, 48000.0]], $MachinePrecision]], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 + N[(N[(y - 124074.40615218398), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + N[(x * N[(y + N[(N[(x * N[(x * 78.6994924154), $MachinePrecision]), $MachinePrecision] + N[(x * 137.519416416), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * N[(263.505074721 + N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1400000000000 \lor \neg \left(x \leq 48000\right):\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 + \frac{y - 124074.40615218398}{x}}{x} - 101.7851458539211}{x}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot \left(y + \left(x \cdot \left(x \cdot 78.6994924154\right) + x \cdot 137.519416416\right)\right)\right)}{47.066876606 + x \cdot \left(313.399215894 + x \cdot \left(263.505074721 + x \cdot \left(x + 43.3400022514\right)\right)\right)}\\
\end{array}
\end{array}
if x < -1.4e12 or 48000 < x Initial program 17.1%
associate-/l*21.5%
sub-neg21.5%
metadata-eval21.5%
*-commutative21.5%
fma-define21.5%
*-commutative21.5%
fma-define21.5%
*-commutative21.5%
fma-define21.5%
fma-define21.5%
*-commutative21.5%
Simplified21.5%
Taylor expanded in x around -inf 97.3%
mul-1-neg97.3%
unsub-neg97.3%
mul-1-neg97.3%
unsub-neg97.3%
mul-1-neg97.3%
unsub-neg97.3%
neg-mul-197.3%
unsub-neg97.3%
Simplified97.3%
if -1.4e12 < x < 48000Initial program 99.7%
*-commutative99.7%
distribute-rgt-in99.7%
*-commutative99.7%
fma-define99.7%
Applied egg-rr99.7%
Taylor expanded in x around 0 99.3%
Final simplification98.3%
(FPCore (x y z)
:precision binary64
(if (or (<= x -4200000000000.0) (not (<= x 48000.0)))
(*
(+ x -2.0)
(+
4.16438922228
(/
(-
(/ (+ 3451.550173699799 (/ (- y 124074.40615218398) x)) x)
101.7851458539211)
x)))
(/
(* (- x 2.0) (+ z (* x (+ y (* x (+ 137.519416416 (* x 78.6994924154)))))))
(+
47.066876606
(*
x
(+ 313.399215894 (* x (+ 263.505074721 (* x (+ x 43.3400022514))))))))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -4200000000000.0) || !(x <= 48000.0)) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
} else {
tmp = ((x - 2.0) * (z + (x * (y + (x * (137.519416416 + (x * 78.6994924154))))))) / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514)))))));
}
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 <= (-4200000000000.0d0)) .or. (.not. (x <= 48000.0d0))) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + ((((3451.550173699799d0 + ((y - 124074.40615218398d0) / x)) / x) - 101.7851458539211d0) / x))
else
tmp = ((x - 2.0d0) * (z + (x * (y + (x * (137.519416416d0 + (x * 78.6994924154d0))))))) / (47.066876606d0 + (x * (313.399215894d0 + (x * (263.505074721d0 + (x * (x + 43.3400022514d0)))))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -4200000000000.0) || !(x <= 48000.0)) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
} else {
tmp = ((x - 2.0) * (z + (x * (y + (x * (137.519416416 + (x * 78.6994924154))))))) / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514)))))));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -4200000000000.0) or not (x <= 48000.0): tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)) else: tmp = ((x - 2.0) * (z + (x * (y + (x * (137.519416416 + (x * 78.6994924154))))))) / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514))))))) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -4200000000000.0) || !(x <= 48000.0)) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(Float64(y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x))); else tmp = Float64(Float64(Float64(x - 2.0) * Float64(z + Float64(x * Float64(y + Float64(x * Float64(137.519416416 + Float64(x * 78.6994924154))))))) / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * Float64(263.505074721 + Float64(x * Float64(x + 43.3400022514)))))))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -4200000000000.0) || ~((x <= 48000.0))) tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)); else tmp = ((x - 2.0) * (z + (x * (y + (x * (137.519416416 + (x * 78.6994924154))))))) / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514))))))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -4200000000000.0], N[Not[LessEqual[x, 48000.0]], $MachinePrecision]], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 + N[(N[(y - 124074.40615218398), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + N[(x * N[(y + N[(x * N[(137.519416416 + N[(x * 78.6994924154), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * N[(263.505074721 + N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -4200000000000 \lor \neg \left(x \leq 48000\right):\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 + \frac{y - 124074.40615218398}{x}}{x} - 101.7851458539211}{x}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot \left(y + x \cdot \left(137.519416416 + x \cdot 78.6994924154\right)\right)\right)}{47.066876606 + x \cdot \left(313.399215894 + x \cdot \left(263.505074721 + x \cdot \left(x + 43.3400022514\right)\right)\right)}\\
\end{array}
\end{array}
if x < -4.2e12 or 48000 < x Initial program 17.1%
associate-/l*21.5%
sub-neg21.5%
metadata-eval21.5%
*-commutative21.5%
fma-define21.5%
*-commutative21.5%
fma-define21.5%
*-commutative21.5%
fma-define21.5%
fma-define21.5%
*-commutative21.5%
Simplified21.5%
Taylor expanded in x around -inf 97.3%
mul-1-neg97.3%
unsub-neg97.3%
mul-1-neg97.3%
unsub-neg97.3%
mul-1-neg97.3%
unsub-neg97.3%
neg-mul-197.3%
unsub-neg97.3%
Simplified97.3%
if -4.2e12 < x < 48000Initial program 99.7%
Taylor expanded in x around 0 99.3%
Final simplification98.3%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(*
(+ x -2.0)
(*
x
(+
(* y 0.0212463641547976)
(* x (- 2.9217875995295866 (* y 0.14147091005106402)))))))
(t_1
(*
(+ x -2.0)
(/ z (+ 47.066876606 (* x (+ 313.399215894 (* x 263.505074721))))))))
(if (<= x -880000000000.0)
(/ (+ x -2.0) (+ 0.24013125253755718 (/ 5.86923874282773 x)))
(if (<= x -2.3e-102)
t_0
(if (<= x 1.08e-107)
t_1
(if (<= x 3.1e-75)
t_0
(if (<= x 1650.0)
t_1
(/
(+ x -2.0)
(-
0.24013125253755718
(/ (+ (/ 55.572073733743466 x) -5.86923874282773) x))))))))))
double code(double x, double y, double z) {
double t_0 = (x + -2.0) * (x * ((y * 0.0212463641547976) + (x * (2.9217875995295866 - (y * 0.14147091005106402)))));
double t_1 = (x + -2.0) * (z / (47.066876606 + (x * (313.399215894 + (x * 263.505074721)))));
double tmp;
if (x <= -880000000000.0) {
tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x));
} else if (x <= -2.3e-102) {
tmp = t_0;
} else if (x <= 1.08e-107) {
tmp = t_1;
} else if (x <= 3.1e-75) {
tmp = t_0;
} else if (x <= 1650.0) {
tmp = t_1;
} else {
tmp = (x + -2.0) / (0.24013125253755718 - (((55.572073733743466 / x) + -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) :: t_1
real(8) :: tmp
t_0 = (x + (-2.0d0)) * (x * ((y * 0.0212463641547976d0) + (x * (2.9217875995295866d0 - (y * 0.14147091005106402d0)))))
t_1 = (x + (-2.0d0)) * (z / (47.066876606d0 + (x * (313.399215894d0 + (x * 263.505074721d0)))))
if (x <= (-880000000000.0d0)) then
tmp = (x + (-2.0d0)) / (0.24013125253755718d0 + (5.86923874282773d0 / x))
else if (x <= (-2.3d-102)) then
tmp = t_0
else if (x <= 1.08d-107) then
tmp = t_1
else if (x <= 3.1d-75) then
tmp = t_0
else if (x <= 1650.0d0) then
tmp = t_1
else
tmp = (x + (-2.0d0)) / (0.24013125253755718d0 - (((55.572073733743466d0 / x) + (-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 * ((y * 0.0212463641547976) + (x * (2.9217875995295866 - (y * 0.14147091005106402)))));
double t_1 = (x + -2.0) * (z / (47.066876606 + (x * (313.399215894 + (x * 263.505074721)))));
double tmp;
if (x <= -880000000000.0) {
tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x));
} else if (x <= -2.3e-102) {
tmp = t_0;
} else if (x <= 1.08e-107) {
tmp = t_1;
} else if (x <= 3.1e-75) {
tmp = t_0;
} else if (x <= 1650.0) {
tmp = t_1;
} else {
tmp = (x + -2.0) / (0.24013125253755718 - (((55.572073733743466 / x) + -5.86923874282773) / x));
}
return tmp;
}
def code(x, y, z): t_0 = (x + -2.0) * (x * ((y * 0.0212463641547976) + (x * (2.9217875995295866 - (y * 0.14147091005106402))))) t_1 = (x + -2.0) * (z / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))))) tmp = 0 if x <= -880000000000.0: tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x)) elif x <= -2.3e-102: tmp = t_0 elif x <= 1.08e-107: tmp = t_1 elif x <= 3.1e-75: tmp = t_0 elif x <= 1650.0: tmp = t_1 else: tmp = (x + -2.0) / (0.24013125253755718 - (((55.572073733743466 / x) + -5.86923874282773) / x)) return tmp
function code(x, y, z) t_0 = Float64(Float64(x + -2.0) * Float64(x * Float64(Float64(y * 0.0212463641547976) + Float64(x * Float64(2.9217875995295866 - Float64(y * 0.14147091005106402)))))) t_1 = Float64(Float64(x + -2.0) * Float64(z / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * 263.505074721)))))) tmp = 0.0 if (x <= -880000000000.0) tmp = Float64(Float64(x + -2.0) / Float64(0.24013125253755718 + Float64(5.86923874282773 / x))); elseif (x <= -2.3e-102) tmp = t_0; elseif (x <= 1.08e-107) tmp = t_1; elseif (x <= 3.1e-75) tmp = t_0; elseif (x <= 1650.0) tmp = t_1; else tmp = Float64(Float64(x + -2.0) / Float64(0.24013125253755718 - Float64(Float64(Float64(55.572073733743466 / x) + -5.86923874282773) / x))); end return tmp end
function tmp_2 = code(x, y, z) t_0 = (x + -2.0) * (x * ((y * 0.0212463641547976) + (x * (2.9217875995295866 - (y * 0.14147091005106402))))); t_1 = (x + -2.0) * (z / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))))); tmp = 0.0; if (x <= -880000000000.0) tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x)); elseif (x <= -2.3e-102) tmp = t_0; elseif (x <= 1.08e-107) tmp = t_1; elseif (x <= 3.1e-75) tmp = t_0; elseif (x <= 1650.0) tmp = t_1; else tmp = (x + -2.0) / (0.24013125253755718 - (((55.572073733743466 / x) + -5.86923874282773) / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(x + -2.0), $MachinePrecision] * N[(x * N[(N[(y * 0.0212463641547976), $MachinePrecision] + N[(x * N[(2.9217875995295866 - N[(y * 0.14147091005106402), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(N[(x + -2.0), $MachinePrecision] * N[(z / N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * 263.505074721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -880000000000.0], N[(N[(x + -2.0), $MachinePrecision] / N[(0.24013125253755718 + N[(5.86923874282773 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -2.3e-102], t$95$0, If[LessEqual[x, 1.08e-107], t$95$1, If[LessEqual[x, 3.1e-75], t$95$0, If[LessEqual[x, 1650.0], t$95$1, N[(N[(x + -2.0), $MachinePrecision] / N[(0.24013125253755718 - N[(N[(N[(55.572073733743466 / x), $MachinePrecision] + -5.86923874282773), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \left(x + -2\right) \cdot \left(x \cdot \left(y \cdot 0.0212463641547976 + x \cdot \left(2.9217875995295866 - y \cdot 0.14147091005106402\right)\right)\right)\\
t_1 := \left(x + -2\right) \cdot \frac{z}{47.066876606 + x \cdot \left(313.399215894 + x \cdot 263.505074721\right)}\\
\mathbf{if}\;x \leq -880000000000:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718 + \frac{5.86923874282773}{x}}\\
\mathbf{elif}\;x \leq -2.3 \cdot 10^{-102}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 1.08 \cdot 10^{-107}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 3.1 \cdot 10^{-75}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 1650:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718 - \frac{\frac{55.572073733743466}{x} + -5.86923874282773}{x}}\\
\end{array}
\end{array}
if x < -8.8e11Initial program 14.8%
associate-/l*18.0%
sub-neg18.0%
metadata-eval18.0%
*-commutative18.0%
fma-define18.0%
*-commutative18.0%
fma-define18.0%
*-commutative18.0%
fma-define18.0%
fma-define18.0%
*-commutative18.0%
Simplified18.0%
metadata-eval18.0%
sub-neg18.0%
clear-num17.9%
un-div-inv18.0%
sub-neg18.0%
metadata-eval18.0%
Applied egg-rr18.0%
Taylor expanded in x around inf 94.9%
associate-*r/94.9%
metadata-eval94.9%
Simplified94.9%
if -8.8e11 < x < -2.29999999999999987e-102 or 1.08000000000000002e-107 < x < 3.10000000000000007e-75Initial program 99.5%
associate-/l*99.5%
sub-neg99.5%
metadata-eval99.5%
*-commutative99.5%
fma-define99.5%
*-commutative99.5%
fma-define99.5%
*-commutative99.5%
fma-define99.5%
fma-define99.5%
*-commutative99.5%
Simplified99.5%
Taylor expanded in z around 0 76.0%
Taylor expanded in x around 0 67.3%
if -2.29999999999999987e-102 < x < 1.08000000000000002e-107 or 3.10000000000000007e-75 < x < 1650Initial program 99.8%
associate-/l*99.8%
sub-neg99.8%
metadata-eval99.8%
*-commutative99.8%
fma-define99.8%
*-commutative99.8%
fma-define99.8%
*-commutative99.8%
fma-define99.8%
fma-define99.8%
*-commutative99.8%
Simplified99.8%
Taylor expanded in z around inf 78.9%
Taylor expanded in x around 0 78.0%
*-commutative78.0%
Simplified78.0%
if 1650 < x Initial program 19.2%
associate-/l*24.7%
sub-neg24.7%
metadata-eval24.7%
*-commutative24.7%
fma-define24.7%
*-commutative24.7%
fma-define24.7%
*-commutative24.7%
fma-define24.7%
fma-define24.6%
*-commutative24.6%
Simplified24.6%
metadata-eval24.6%
sub-neg24.6%
clear-num24.7%
un-div-inv24.7%
sub-neg24.7%
metadata-eval24.7%
Applied egg-rr24.7%
Taylor expanded in x around -inf 90.7%
mul-1-neg90.7%
unsub-neg90.7%
sub-neg90.7%
associate-*r/90.7%
metadata-eval90.7%
metadata-eval90.7%
Simplified90.7%
Final simplification84.0%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(*
(+ x -2.0)
(/ z (+ 47.066876606 (* x (+ 313.399215894 (* x 263.505074721))))))))
(if (<= x -880000000000.0)
(/ (+ x -2.0) (+ 0.24013125253755718 (/ 5.86923874282773 x)))
(if (<= x -8.8e-103)
(*
(+ x -2.0)
(* x (+ (* y 0.0212463641547976) (* -0.14147091005106402 (* x y)))))
(if (<= x 9.5e-108)
t_0
(if (<= x 4.8e-75)
(* (+ x -2.0) (* 0.0212463641547976 (* x y)))
(if (<= x 320.0)
t_0
(/
(+ x -2.0)
(-
0.24013125253755718
(/ (+ (/ 55.572073733743466 x) -5.86923874282773) x))))))))))
double code(double x, double y, double z) {
double t_0 = (x + -2.0) * (z / (47.066876606 + (x * (313.399215894 + (x * 263.505074721)))));
double tmp;
if (x <= -880000000000.0) {
tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x));
} else if (x <= -8.8e-103) {
tmp = (x + -2.0) * (x * ((y * 0.0212463641547976) + (-0.14147091005106402 * (x * y))));
} else if (x <= 9.5e-108) {
tmp = t_0;
} else if (x <= 4.8e-75) {
tmp = (x + -2.0) * (0.0212463641547976 * (x * y));
} else if (x <= 320.0) {
tmp = t_0;
} else {
tmp = (x + -2.0) / (0.24013125253755718 - (((55.572073733743466 / x) + -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)) * (z / (47.066876606d0 + (x * (313.399215894d0 + (x * 263.505074721d0)))))
if (x <= (-880000000000.0d0)) then
tmp = (x + (-2.0d0)) / (0.24013125253755718d0 + (5.86923874282773d0 / x))
else if (x <= (-8.8d-103)) then
tmp = (x + (-2.0d0)) * (x * ((y * 0.0212463641547976d0) + ((-0.14147091005106402d0) * (x * y))))
else if (x <= 9.5d-108) then
tmp = t_0
else if (x <= 4.8d-75) then
tmp = (x + (-2.0d0)) * (0.0212463641547976d0 * (x * y))
else if (x <= 320.0d0) then
tmp = t_0
else
tmp = (x + (-2.0d0)) / (0.24013125253755718d0 - (((55.572073733743466d0 / x) + (-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) * (z / (47.066876606 + (x * (313.399215894 + (x * 263.505074721)))));
double tmp;
if (x <= -880000000000.0) {
tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x));
} else if (x <= -8.8e-103) {
tmp = (x + -2.0) * (x * ((y * 0.0212463641547976) + (-0.14147091005106402 * (x * y))));
} else if (x <= 9.5e-108) {
tmp = t_0;
} else if (x <= 4.8e-75) {
tmp = (x + -2.0) * (0.0212463641547976 * (x * y));
} else if (x <= 320.0) {
tmp = t_0;
} else {
tmp = (x + -2.0) / (0.24013125253755718 - (((55.572073733743466 / x) + -5.86923874282773) / x));
}
return tmp;
}
def code(x, y, z): t_0 = (x + -2.0) * (z / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))))) tmp = 0 if x <= -880000000000.0: tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x)) elif x <= -8.8e-103: tmp = (x + -2.0) * (x * ((y * 0.0212463641547976) + (-0.14147091005106402 * (x * y)))) elif x <= 9.5e-108: tmp = t_0 elif x <= 4.8e-75: tmp = (x + -2.0) * (0.0212463641547976 * (x * y)) elif x <= 320.0: tmp = t_0 else: tmp = (x + -2.0) / (0.24013125253755718 - (((55.572073733743466 / x) + -5.86923874282773) / x)) return tmp
function code(x, y, z) t_0 = Float64(Float64(x + -2.0) * Float64(z / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * 263.505074721)))))) tmp = 0.0 if (x <= -880000000000.0) tmp = Float64(Float64(x + -2.0) / Float64(0.24013125253755718 + Float64(5.86923874282773 / x))); elseif (x <= -8.8e-103) tmp = Float64(Float64(x + -2.0) * Float64(x * Float64(Float64(y * 0.0212463641547976) + Float64(-0.14147091005106402 * Float64(x * y))))); elseif (x <= 9.5e-108) tmp = t_0; elseif (x <= 4.8e-75) tmp = Float64(Float64(x + -2.0) * Float64(0.0212463641547976 * Float64(x * y))); elseif (x <= 320.0) tmp = t_0; else tmp = Float64(Float64(x + -2.0) / Float64(0.24013125253755718 - Float64(Float64(Float64(55.572073733743466 / x) + -5.86923874282773) / x))); end return tmp end
function tmp_2 = code(x, y, z) t_0 = (x + -2.0) * (z / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))))); tmp = 0.0; if (x <= -880000000000.0) tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x)); elseif (x <= -8.8e-103) tmp = (x + -2.0) * (x * ((y * 0.0212463641547976) + (-0.14147091005106402 * (x * y)))); elseif (x <= 9.5e-108) tmp = t_0; elseif (x <= 4.8e-75) tmp = (x + -2.0) * (0.0212463641547976 * (x * y)); elseif (x <= 320.0) tmp = t_0; else tmp = (x + -2.0) / (0.24013125253755718 - (((55.572073733743466 / x) + -5.86923874282773) / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(x + -2.0), $MachinePrecision] * N[(z / N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * 263.505074721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -880000000000.0], N[(N[(x + -2.0), $MachinePrecision] / N[(0.24013125253755718 + N[(5.86923874282773 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -8.8e-103], N[(N[(x + -2.0), $MachinePrecision] * N[(x * N[(N[(y * 0.0212463641547976), $MachinePrecision] + N[(-0.14147091005106402 * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 9.5e-108], t$95$0, If[LessEqual[x, 4.8e-75], N[(N[(x + -2.0), $MachinePrecision] * N[(0.0212463641547976 * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 320.0], t$95$0, N[(N[(x + -2.0), $MachinePrecision] / N[(0.24013125253755718 - N[(N[(N[(55.572073733743466 / x), $MachinePrecision] + -5.86923874282773), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \left(x + -2\right) \cdot \frac{z}{47.066876606 + x \cdot \left(313.399215894 + x \cdot 263.505074721\right)}\\
\mathbf{if}\;x \leq -880000000000:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718 + \frac{5.86923874282773}{x}}\\
\mathbf{elif}\;x \leq -8.8 \cdot 10^{-103}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(x \cdot \left(y \cdot 0.0212463641547976 + -0.14147091005106402 \cdot \left(x \cdot y\right)\right)\right)\\
\mathbf{elif}\;x \leq 9.5 \cdot 10^{-108}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 4.8 \cdot 10^{-75}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(0.0212463641547976 \cdot \left(x \cdot y\right)\right)\\
\mathbf{elif}\;x \leq 320:\\
\;\;\;\;t\_0\\
\mathbf{else}:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718 - \frac{\frac{55.572073733743466}{x} + -5.86923874282773}{x}}\\
\end{array}
\end{array}
if x < -8.8e11Initial program 14.8%
associate-/l*18.0%
sub-neg18.0%
metadata-eval18.0%
*-commutative18.0%
fma-define18.0%
*-commutative18.0%
fma-define18.0%
*-commutative18.0%
fma-define18.0%
fma-define18.0%
*-commutative18.0%
Simplified18.0%
metadata-eval18.0%
sub-neg18.0%
clear-num17.9%
un-div-inv18.0%
sub-neg18.0%
metadata-eval18.0%
Applied egg-rr18.0%
Taylor expanded in x around inf 94.9%
associate-*r/94.9%
metadata-eval94.9%
Simplified94.9%
if -8.8e11 < x < -8.7999999999999997e-103Initial program 99.4%
associate-/l*99.4%
sub-neg99.4%
metadata-eval99.4%
*-commutative99.4%
fma-define99.5%
*-commutative99.5%
fma-define99.5%
*-commutative99.5%
fma-define99.5%
fma-define99.5%
*-commutative99.5%
Simplified99.5%
Taylor expanded in y around inf 45.5%
Taylor expanded in x around 0 41.3%
if -8.7999999999999997e-103 < x < 9.5000000000000005e-108 or 4.80000000000000039e-75 < x < 320Initial program 99.8%
associate-/l*99.8%
sub-neg99.8%
metadata-eval99.8%
*-commutative99.8%
fma-define99.8%
*-commutative99.8%
fma-define99.8%
*-commutative99.8%
fma-define99.8%
fma-define99.8%
*-commutative99.8%
Simplified99.8%
Taylor expanded in z around inf 78.9%
Taylor expanded in x around 0 78.0%
*-commutative78.0%
Simplified78.0%
if 9.5000000000000005e-108 < x < 4.80000000000000039e-75Initial program 99.8%
associate-/l*99.8%
sub-neg99.8%
metadata-eval99.8%
*-commutative99.8%
fma-define99.8%
*-commutative99.8%
fma-define99.8%
*-commutative99.8%
fma-define99.8%
fma-define99.8%
*-commutative99.8%
Simplified99.8%
Taylor expanded in y around inf 77.9%
Taylor expanded in x around 0 77.4%
*-commutative77.4%
Simplified77.4%
if 320 < x Initial program 19.2%
associate-/l*24.7%
sub-neg24.7%
metadata-eval24.7%
*-commutative24.7%
fma-define24.7%
*-commutative24.7%
fma-define24.7%
*-commutative24.7%
fma-define24.7%
fma-define24.6%
*-commutative24.6%
Simplified24.6%
metadata-eval24.6%
sub-neg24.6%
clear-num24.7%
un-div-inv24.7%
sub-neg24.7%
metadata-eval24.7%
Applied egg-rr24.7%
Taylor expanded in x around -inf 90.7%
mul-1-neg90.7%
unsub-neg90.7%
sub-neg90.7%
associate-*r/90.7%
metadata-eval90.7%
metadata-eval90.7%
Simplified90.7%
Final simplification81.5%
(FPCore (x y z)
:precision binary64
(if (or (<= x -7200000000000.0) (not (<= x 40000.0)))
(*
(+ x -2.0)
(+
4.16438922228
(/
(-
(/ (+ 3451.550173699799 (/ (- y 124074.40615218398) x)) x)
101.7851458539211)
x)))
(/
(* (- x 2.0) (+ z (* x (+ y (* x 137.519416416)))))
(+
47.066876606
(*
x
(+ 313.399215894 (* x (+ 263.505074721 (* x (+ x 43.3400022514))))))))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -7200000000000.0) || !(x <= 40000.0)) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
} else {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514)))))));
}
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 <= (-7200000000000.0d0)) .or. (.not. (x <= 40000.0d0))) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + ((((3451.550173699799d0 + ((y - 124074.40615218398d0) / x)) / x) - 101.7851458539211d0) / x))
else
tmp = ((x - 2.0d0) * (z + (x * (y + (x * 137.519416416d0))))) / (47.066876606d0 + (x * (313.399215894d0 + (x * (263.505074721d0 + (x * (x + 43.3400022514d0)))))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -7200000000000.0) || !(x <= 40000.0)) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
} else {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514)))))));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -7200000000000.0) or not (x <= 40000.0): tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)) else: tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514))))))) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -7200000000000.0) || !(x <= 40000.0)) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(Float64(y - 124074.40615218398) / x)) / x) - 101.7851458539211) / 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 * Float64(263.505074721 + Float64(x * Float64(x + 43.3400022514)))))))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -7200000000000.0) || ~((x <= 40000.0))) tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)); else tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514))))))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -7200000000000.0], N[Not[LessEqual[x, 40000.0]], $MachinePrecision]], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 + N[(N[(y - 124074.40615218398), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / 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 * N[(263.505074721 + N[(x * N[(x + 43.3400022514), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -7200000000000 \lor \neg \left(x \leq 40000\right):\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 + \frac{y - 124074.40615218398}{x}}{x} - 101.7851458539211}{x}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot \left(y + x \cdot 137.519416416\right)\right)}{47.066876606 + x \cdot \left(313.399215894 + x \cdot \left(263.505074721 + x \cdot \left(x + 43.3400022514\right)\right)\right)}\\
\end{array}
\end{array}
if x < -7.2e12 or 4e4 < x Initial program 17.1%
associate-/l*21.5%
sub-neg21.5%
metadata-eval21.5%
*-commutative21.5%
fma-define21.5%
*-commutative21.5%
fma-define21.5%
*-commutative21.5%
fma-define21.5%
fma-define21.5%
*-commutative21.5%
Simplified21.5%
Taylor expanded in x around -inf 97.3%
mul-1-neg97.3%
unsub-neg97.3%
mul-1-neg97.3%
unsub-neg97.3%
mul-1-neg97.3%
unsub-neg97.3%
neg-mul-197.3%
unsub-neg97.3%
Simplified97.3%
if -7.2e12 < x < 4e4Initial program 99.7%
Taylor expanded in x around 0 98.5%
*-commutative98.5%
Simplified98.5%
Final simplification97.9%
(FPCore (x y z)
:precision binary64
(if (<= x -880000000000.0)
(/ (+ x -2.0) (+ 0.24013125253755718 (/ 5.86923874282773 x)))
(if (<= x -2e-102)
(*
(+ x -2.0)
(* x (+ (* y 0.0212463641547976) (* -0.14147091005106402 (* x y)))))
(if (<= x 1.12e-107)
(* z -0.0424927283095952)
(if (<= x 3.55e-75)
(* (+ x -2.0) (* 0.0212463641547976 (* x y)))
(if (<= x 260.0)
(* (+ x -2.0) (* z 0.0212463641547976))
(/
(+ x -2.0)
(-
0.24013125253755718
(/ (+ (/ 55.572073733743466 x) -5.86923874282773) x)))))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -880000000000.0) {
tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x));
} else if (x <= -2e-102) {
tmp = (x + -2.0) * (x * ((y * 0.0212463641547976) + (-0.14147091005106402 * (x * y))));
} else if (x <= 1.12e-107) {
tmp = z * -0.0424927283095952;
} else if (x <= 3.55e-75) {
tmp = (x + -2.0) * (0.0212463641547976 * (x * y));
} else if (x <= 260.0) {
tmp = (x + -2.0) * (z * 0.0212463641547976);
} else {
tmp = (x + -2.0) / (0.24013125253755718 - (((55.572073733743466 / x) + -5.86923874282773) / x));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-880000000000.0d0)) then
tmp = (x + (-2.0d0)) / (0.24013125253755718d0 + (5.86923874282773d0 / x))
else if (x <= (-2d-102)) then
tmp = (x + (-2.0d0)) * (x * ((y * 0.0212463641547976d0) + ((-0.14147091005106402d0) * (x * y))))
else if (x <= 1.12d-107) then
tmp = z * (-0.0424927283095952d0)
else if (x <= 3.55d-75) then
tmp = (x + (-2.0d0)) * (0.0212463641547976d0 * (x * y))
else if (x <= 260.0d0) then
tmp = (x + (-2.0d0)) * (z * 0.0212463641547976d0)
else
tmp = (x + (-2.0d0)) / (0.24013125253755718d0 - (((55.572073733743466d0 / x) + (-5.86923874282773d0)) / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -880000000000.0) {
tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x));
} else if (x <= -2e-102) {
tmp = (x + -2.0) * (x * ((y * 0.0212463641547976) + (-0.14147091005106402 * (x * y))));
} else if (x <= 1.12e-107) {
tmp = z * -0.0424927283095952;
} else if (x <= 3.55e-75) {
tmp = (x + -2.0) * (0.0212463641547976 * (x * y));
} else if (x <= 260.0) {
tmp = (x + -2.0) * (z * 0.0212463641547976);
} else {
tmp = (x + -2.0) / (0.24013125253755718 - (((55.572073733743466 / x) + -5.86923874282773) / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -880000000000.0: tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x)) elif x <= -2e-102: tmp = (x + -2.0) * (x * ((y * 0.0212463641547976) + (-0.14147091005106402 * (x * y)))) elif x <= 1.12e-107: tmp = z * -0.0424927283095952 elif x <= 3.55e-75: tmp = (x + -2.0) * (0.0212463641547976 * (x * y)) elif x <= 260.0: tmp = (x + -2.0) * (z * 0.0212463641547976) else: tmp = (x + -2.0) / (0.24013125253755718 - (((55.572073733743466 / x) + -5.86923874282773) / x)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -880000000000.0) tmp = Float64(Float64(x + -2.0) / Float64(0.24013125253755718 + Float64(5.86923874282773 / x))); elseif (x <= -2e-102) tmp = Float64(Float64(x + -2.0) * Float64(x * Float64(Float64(y * 0.0212463641547976) + Float64(-0.14147091005106402 * Float64(x * y))))); elseif (x <= 1.12e-107) tmp = Float64(z * -0.0424927283095952); elseif (x <= 3.55e-75) tmp = Float64(Float64(x + -2.0) * Float64(0.0212463641547976 * Float64(x * y))); elseif (x <= 260.0) tmp = Float64(Float64(x + -2.0) * Float64(z * 0.0212463641547976)); else tmp = Float64(Float64(x + -2.0) / Float64(0.24013125253755718 - Float64(Float64(Float64(55.572073733743466 / x) + -5.86923874282773) / x))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -880000000000.0) tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x)); elseif (x <= -2e-102) tmp = (x + -2.0) * (x * ((y * 0.0212463641547976) + (-0.14147091005106402 * (x * y)))); elseif (x <= 1.12e-107) tmp = z * -0.0424927283095952; elseif (x <= 3.55e-75) tmp = (x + -2.0) * (0.0212463641547976 * (x * y)); elseif (x <= 260.0) tmp = (x + -2.0) * (z * 0.0212463641547976); else tmp = (x + -2.0) / (0.24013125253755718 - (((55.572073733743466 / x) + -5.86923874282773) / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -880000000000.0], N[(N[(x + -2.0), $MachinePrecision] / N[(0.24013125253755718 + N[(5.86923874282773 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -2e-102], N[(N[(x + -2.0), $MachinePrecision] * N[(x * N[(N[(y * 0.0212463641547976), $MachinePrecision] + N[(-0.14147091005106402 * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.12e-107], N[(z * -0.0424927283095952), $MachinePrecision], If[LessEqual[x, 3.55e-75], N[(N[(x + -2.0), $MachinePrecision] * N[(0.0212463641547976 * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 260.0], N[(N[(x + -2.0), $MachinePrecision] * N[(z * 0.0212463641547976), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] / N[(0.24013125253755718 - N[(N[(N[(55.572073733743466 / x), $MachinePrecision] + -5.86923874282773), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -880000000000:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718 + \frac{5.86923874282773}{x}}\\
\mathbf{elif}\;x \leq -2 \cdot 10^{-102}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(x \cdot \left(y \cdot 0.0212463641547976 + -0.14147091005106402 \cdot \left(x \cdot y\right)\right)\right)\\
\mathbf{elif}\;x \leq 1.12 \cdot 10^{-107}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{elif}\;x \leq 3.55 \cdot 10^{-75}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(0.0212463641547976 \cdot \left(x \cdot y\right)\right)\\
\mathbf{elif}\;x \leq 260:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718 - \frac{\frac{55.572073733743466}{x} + -5.86923874282773}{x}}\\
\end{array}
\end{array}
if x < -8.8e11Initial program 14.8%
associate-/l*18.0%
sub-neg18.0%
metadata-eval18.0%
*-commutative18.0%
fma-define18.0%
*-commutative18.0%
fma-define18.0%
*-commutative18.0%
fma-define18.0%
fma-define18.0%
*-commutative18.0%
Simplified18.0%
metadata-eval18.0%
sub-neg18.0%
clear-num17.9%
un-div-inv18.0%
sub-neg18.0%
metadata-eval18.0%
Applied egg-rr18.0%
Taylor expanded in x around inf 94.9%
associate-*r/94.9%
metadata-eval94.9%
Simplified94.9%
if -8.8e11 < x < -1.99999999999999987e-102Initial program 99.4%
associate-/l*99.4%
sub-neg99.4%
metadata-eval99.4%
*-commutative99.4%
fma-define99.5%
*-commutative99.5%
fma-define99.5%
*-commutative99.5%
fma-define99.5%
fma-define99.5%
*-commutative99.5%
Simplified99.5%
Taylor expanded in y around inf 45.5%
Taylor expanded in x around 0 41.3%
if -1.99999999999999987e-102 < x < 1.12e-107Initial program 99.8%
associate-/l*99.8%
sub-neg99.8%
metadata-eval99.8%
*-commutative99.8%
fma-define99.8%
*-commutative99.8%
fma-define99.8%
*-commutative99.8%
fma-define99.8%
fma-define99.8%
*-commutative99.8%
Simplified99.8%
Taylor expanded in x around 0 82.2%
*-commutative82.2%
Simplified82.2%
if 1.12e-107 < x < 3.5500000000000002e-75Initial program 99.8%
associate-/l*99.8%
sub-neg99.8%
metadata-eval99.8%
*-commutative99.8%
fma-define99.8%
*-commutative99.8%
fma-define99.8%
*-commutative99.8%
fma-define99.8%
fma-define99.8%
*-commutative99.8%
Simplified99.8%
Taylor expanded in y around inf 77.9%
Taylor expanded in x around 0 77.4%
*-commutative77.4%
Simplified77.4%
if 3.5500000000000002e-75 < x < 260Initial program 99.7%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
*-commutative99.7%
fma-define99.7%
*-commutative99.7%
fma-define99.7%
*-commutative99.7%
fma-define99.7%
fma-define99.7%
*-commutative99.7%
Simplified99.7%
Taylor expanded in x around 0 52.4%
if 260 < x Initial program 19.2%
associate-/l*24.7%
sub-neg24.7%
metadata-eval24.7%
*-commutative24.7%
fma-define24.7%
*-commutative24.7%
fma-define24.7%
*-commutative24.7%
fma-define24.7%
fma-define24.6%
*-commutative24.6%
Simplified24.6%
metadata-eval24.6%
sub-neg24.6%
clear-num24.7%
un-div-inv24.7%
sub-neg24.7%
metadata-eval24.7%
Applied egg-rr24.7%
Taylor expanded in x around -inf 90.7%
mul-1-neg90.7%
unsub-neg90.7%
sub-neg90.7%
associate-*r/90.7%
metadata-eval90.7%
metadata-eval90.7%
Simplified90.7%
Final simplification81.4%
(FPCore (x y z)
:precision binary64
(if (<= x -880000000000.0)
(/ (+ x -2.0) (+ 0.24013125253755718 (/ 5.86923874282773 x)))
(if (<= x -1.95e-100)
(* -0.0424927283095952 (* x y))
(if (<= x 1.12e-107)
(* (+ x -2.0) (* z (+ 0.0212463641547976 (* x -0.14147091005106402))))
(if (<= x 2e-75)
(* (+ x -2.0) (* 0.0212463641547976 (* x y)))
(if (<= x 340.0)
(* (+ x -2.0) (* z 0.0212463641547976))
(/
(+ x -2.0)
(-
0.24013125253755718
(/ (+ (/ 55.572073733743466 x) -5.86923874282773) x)))))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -880000000000.0) {
tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x));
} else if (x <= -1.95e-100) {
tmp = -0.0424927283095952 * (x * y);
} else if (x <= 1.12e-107) {
tmp = (x + -2.0) * (z * (0.0212463641547976 + (x * -0.14147091005106402)));
} else if (x <= 2e-75) {
tmp = (x + -2.0) * (0.0212463641547976 * (x * y));
} else if (x <= 340.0) {
tmp = (x + -2.0) * (z * 0.0212463641547976);
} else {
tmp = (x + -2.0) / (0.24013125253755718 - (((55.572073733743466 / x) + -5.86923874282773) / x));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-880000000000.0d0)) then
tmp = (x + (-2.0d0)) / (0.24013125253755718d0 + (5.86923874282773d0 / x))
else if (x <= (-1.95d-100)) then
tmp = (-0.0424927283095952d0) * (x * y)
else if (x <= 1.12d-107) then
tmp = (x + (-2.0d0)) * (z * (0.0212463641547976d0 + (x * (-0.14147091005106402d0))))
else if (x <= 2d-75) then
tmp = (x + (-2.0d0)) * (0.0212463641547976d0 * (x * y))
else if (x <= 340.0d0) then
tmp = (x + (-2.0d0)) * (z * 0.0212463641547976d0)
else
tmp = (x + (-2.0d0)) / (0.24013125253755718d0 - (((55.572073733743466d0 / x) + (-5.86923874282773d0)) / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -880000000000.0) {
tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x));
} else if (x <= -1.95e-100) {
tmp = -0.0424927283095952 * (x * y);
} else if (x <= 1.12e-107) {
tmp = (x + -2.0) * (z * (0.0212463641547976 + (x * -0.14147091005106402)));
} else if (x <= 2e-75) {
tmp = (x + -2.0) * (0.0212463641547976 * (x * y));
} else if (x <= 340.0) {
tmp = (x + -2.0) * (z * 0.0212463641547976);
} else {
tmp = (x + -2.0) / (0.24013125253755718 - (((55.572073733743466 / x) + -5.86923874282773) / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -880000000000.0: tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x)) elif x <= -1.95e-100: tmp = -0.0424927283095952 * (x * y) elif x <= 1.12e-107: tmp = (x + -2.0) * (z * (0.0212463641547976 + (x * -0.14147091005106402))) elif x <= 2e-75: tmp = (x + -2.0) * (0.0212463641547976 * (x * y)) elif x <= 340.0: tmp = (x + -2.0) * (z * 0.0212463641547976) else: tmp = (x + -2.0) / (0.24013125253755718 - (((55.572073733743466 / x) + -5.86923874282773) / x)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -880000000000.0) tmp = Float64(Float64(x + -2.0) / Float64(0.24013125253755718 + Float64(5.86923874282773 / x))); elseif (x <= -1.95e-100) tmp = Float64(-0.0424927283095952 * Float64(x * y)); elseif (x <= 1.12e-107) tmp = Float64(Float64(x + -2.0) * Float64(z * Float64(0.0212463641547976 + Float64(x * -0.14147091005106402)))); elseif (x <= 2e-75) tmp = Float64(Float64(x + -2.0) * Float64(0.0212463641547976 * Float64(x * y))); elseif (x <= 340.0) tmp = Float64(Float64(x + -2.0) * Float64(z * 0.0212463641547976)); else tmp = Float64(Float64(x + -2.0) / Float64(0.24013125253755718 - Float64(Float64(Float64(55.572073733743466 / x) + -5.86923874282773) / x))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -880000000000.0) tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x)); elseif (x <= -1.95e-100) tmp = -0.0424927283095952 * (x * y); elseif (x <= 1.12e-107) tmp = (x + -2.0) * (z * (0.0212463641547976 + (x * -0.14147091005106402))); elseif (x <= 2e-75) tmp = (x + -2.0) * (0.0212463641547976 * (x * y)); elseif (x <= 340.0) tmp = (x + -2.0) * (z * 0.0212463641547976); else tmp = (x + -2.0) / (0.24013125253755718 - (((55.572073733743466 / x) + -5.86923874282773) / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -880000000000.0], N[(N[(x + -2.0), $MachinePrecision] / N[(0.24013125253755718 + N[(5.86923874282773 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -1.95e-100], N[(-0.0424927283095952 * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.12e-107], N[(N[(x + -2.0), $MachinePrecision] * N[(z * N[(0.0212463641547976 + N[(x * -0.14147091005106402), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2e-75], N[(N[(x + -2.0), $MachinePrecision] * N[(0.0212463641547976 * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 340.0], N[(N[(x + -2.0), $MachinePrecision] * N[(z * 0.0212463641547976), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] / N[(0.24013125253755718 - N[(N[(N[(55.572073733743466 / x), $MachinePrecision] + -5.86923874282773), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -880000000000:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718 + \frac{5.86923874282773}{x}}\\
\mathbf{elif}\;x \leq -1.95 \cdot 10^{-100}:\\
\;\;\;\;-0.0424927283095952 \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;x \leq 1.12 \cdot 10^{-107}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot \left(0.0212463641547976 + x \cdot -0.14147091005106402\right)\right)\\
\mathbf{elif}\;x \leq 2 \cdot 10^{-75}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(0.0212463641547976 \cdot \left(x \cdot y\right)\right)\\
\mathbf{elif}\;x \leq 340:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718 - \frac{\frac{55.572073733743466}{x} + -5.86923874282773}{x}}\\
\end{array}
\end{array}
if x < -8.8e11Initial program 14.8%
associate-/l*18.0%
sub-neg18.0%
metadata-eval18.0%
*-commutative18.0%
fma-define18.0%
*-commutative18.0%
fma-define18.0%
*-commutative18.0%
fma-define18.0%
fma-define18.0%
*-commutative18.0%
Simplified18.0%
metadata-eval18.0%
sub-neg18.0%
clear-num17.9%
un-div-inv18.0%
sub-neg18.0%
metadata-eval18.0%
Applied egg-rr18.0%
Taylor expanded in x around inf 94.9%
associate-*r/94.9%
metadata-eval94.9%
Simplified94.9%
if -8.8e11 < x < -1.94999999999999989e-100Initial program 99.4%
associate-/l*99.4%
sub-neg99.4%
metadata-eval99.4%
*-commutative99.4%
fma-define99.5%
*-commutative99.5%
fma-define99.5%
*-commutative99.5%
fma-define99.5%
fma-define99.5%
*-commutative99.5%
Simplified99.5%
Taylor expanded in y around inf 45.1%
Taylor expanded in x around 0 39.4%
*-commutative39.4%
Simplified39.4%
if -1.94999999999999989e-100 < x < 1.12e-107Initial program 99.8%
associate-/l*99.8%
sub-neg99.8%
metadata-eval99.8%
*-commutative99.8%
fma-define99.8%
*-commutative99.8%
fma-define99.8%
*-commutative99.8%
fma-define99.8%
fma-define99.8%
*-commutative99.8%
Simplified99.8%
Taylor expanded in z around inf 81.7%
Taylor expanded in x around 0 81.5%
associate-*r*81.5%
distribute-rgt-out81.5%
*-commutative81.5%
Simplified81.5%
if 1.12e-107 < x < 1.9999999999999999e-75Initial program 99.8%
associate-/l*99.8%
sub-neg99.8%
metadata-eval99.8%
*-commutative99.8%
fma-define99.8%
*-commutative99.8%
fma-define99.8%
*-commutative99.8%
fma-define99.8%
fma-define99.8%
*-commutative99.8%
Simplified99.8%
Taylor expanded in y around inf 77.9%
Taylor expanded in x around 0 77.4%
*-commutative77.4%
Simplified77.4%
if 1.9999999999999999e-75 < x < 340Initial program 99.7%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
*-commutative99.7%
fma-define99.7%
*-commutative99.7%
fma-define99.7%
*-commutative99.7%
fma-define99.7%
fma-define99.7%
*-commutative99.7%
Simplified99.7%
Taylor expanded in x around 0 52.4%
if 340 < x Initial program 19.2%
associate-/l*24.7%
sub-neg24.7%
metadata-eval24.7%
*-commutative24.7%
fma-define24.7%
*-commutative24.7%
fma-define24.7%
*-commutative24.7%
fma-define24.7%
fma-define24.6%
*-commutative24.6%
Simplified24.6%
metadata-eval24.6%
sub-neg24.6%
clear-num24.7%
un-div-inv24.7%
sub-neg24.7%
metadata-eval24.7%
Applied egg-rr24.7%
Taylor expanded in x around -inf 90.7%
mul-1-neg90.7%
unsub-neg90.7%
sub-neg90.7%
associate-*r/90.7%
metadata-eval90.7%
metadata-eval90.7%
Simplified90.7%
Final simplification81.3%
(FPCore (x y z)
:precision binary64
(if (or (<= x -70.0) (not (<= x 162.0)))
(*
(+ x -2.0)
(+
4.16438922228
(/
(-
(/ (+ 3451.550173699799 (/ (- y 124074.40615218398) x)) x)
101.7851458539211)
x)))
(/
(* (- x 2.0) (+ z (* x (+ y (* x (+ 137.519416416 (* x 78.6994924154)))))))
(+ 47.066876606 (* x (+ 313.399215894 (* x 263.505074721)))))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -70.0) || !(x <= 162.0)) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
} else {
tmp = ((x - 2.0) * (z + (x * (y + (x * (137.519416416 + (x * 78.6994924154))))))) / (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 <= (-70.0d0)) .or. (.not. (x <= 162.0d0))) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + ((((3451.550173699799d0 + ((y - 124074.40615218398d0) / x)) / x) - 101.7851458539211d0) / x))
else
tmp = ((x - 2.0d0) * (z + (x * (y + (x * (137.519416416d0 + (x * 78.6994924154d0))))))) / (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 <= -70.0) || !(x <= 162.0)) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
} else {
tmp = ((x - 2.0) * (z + (x * (y + (x * (137.519416416 + (x * 78.6994924154))))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -70.0) or not (x <= 162.0): tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)) else: tmp = ((x - 2.0) * (z + (x * (y + (x * (137.519416416 + (x * 78.6994924154))))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721)))) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -70.0) || !(x <= 162.0)) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(Float64(y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x))); else tmp = Float64(Float64(Float64(x - 2.0) * Float64(z + Float64(x * Float64(y + Float64(x * Float64(137.519416416 + Float64(x * 78.6994924154))))))) / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * 263.505074721))))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -70.0) || ~((x <= 162.0))) tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)); else tmp = ((x - 2.0) * (z + (x * (y + (x * (137.519416416 + (x * 78.6994924154))))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721)))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -70.0], N[Not[LessEqual[x, 162.0]], $MachinePrecision]], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 + N[(N[(y - 124074.40615218398), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + N[(x * N[(y + N[(x * N[(137.519416416 + N[(x * 78.6994924154), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(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 -70 \lor \neg \left(x \leq 162\right):\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 + \frac{y - 124074.40615218398}{x}}{x} - 101.7851458539211}{x}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot \left(y + x \cdot \left(137.519416416 + x \cdot 78.6994924154\right)\right)\right)}{47.066876606 + x \cdot \left(313.399215894 + x \cdot 263.505074721\right)}\\
\end{array}
\end{array}
if x < -70 or 162 < x Initial program 19.0%
associate-/l*23.3%
sub-neg23.3%
metadata-eval23.3%
*-commutative23.3%
fma-define23.3%
*-commutative23.3%
fma-define23.3%
*-commutative23.3%
fma-define23.3%
fma-define23.3%
*-commutative23.3%
Simplified23.3%
Taylor expanded in x around -inf 95.7%
mul-1-neg95.7%
unsub-neg95.7%
mul-1-neg95.7%
unsub-neg95.7%
mul-1-neg95.7%
unsub-neg95.7%
neg-mul-195.7%
unsub-neg95.7%
Simplified95.7%
if -70 < x < 162Initial program 99.7%
Taylor expanded in x around 0 99.3%
Taylor expanded in x around 0 98.5%
*-commutative98.5%
Simplified98.5%
Final simplification97.1%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (/ (+ x -2.0) (+ 0.24013125253755718 (/ 5.86923874282773 x)))))
(if (<= x -880000000000.0)
t_0
(if (<= x -7.2e-100)
(* -0.0424927283095952 (* x y))
(if (<= x 1.12e-107)
(* (+ x -2.0) (* z (+ 0.0212463641547976 (* x -0.14147091005106402))))
(if (<= x 1.9e-75)
(* (+ x -2.0) (* 0.0212463641547976 (* x y)))
(if (<= x 260.0) (* (+ x -2.0) (* z 0.0212463641547976)) 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 <= -880000000000.0) {
tmp = t_0;
} else if (x <= -7.2e-100) {
tmp = -0.0424927283095952 * (x * y);
} else if (x <= 1.12e-107) {
tmp = (x + -2.0) * (z * (0.0212463641547976 + (x * -0.14147091005106402)));
} else if (x <= 1.9e-75) {
tmp = (x + -2.0) * (0.0212463641547976 * (x * y));
} else if (x <= 260.0) {
tmp = (x + -2.0) * (z * 0.0212463641547976);
} 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 <= (-880000000000.0d0)) then
tmp = t_0
else if (x <= (-7.2d-100)) then
tmp = (-0.0424927283095952d0) * (x * y)
else if (x <= 1.12d-107) then
tmp = (x + (-2.0d0)) * (z * (0.0212463641547976d0 + (x * (-0.14147091005106402d0))))
else if (x <= 1.9d-75) then
tmp = (x + (-2.0d0)) * (0.0212463641547976d0 * (x * y))
else if (x <= 260.0d0) then
tmp = (x + (-2.0d0)) * (z * 0.0212463641547976d0)
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 <= -880000000000.0) {
tmp = t_0;
} else if (x <= -7.2e-100) {
tmp = -0.0424927283095952 * (x * y);
} else if (x <= 1.12e-107) {
tmp = (x + -2.0) * (z * (0.0212463641547976 + (x * -0.14147091005106402)));
} else if (x <= 1.9e-75) {
tmp = (x + -2.0) * (0.0212463641547976 * (x * y));
} else if (x <= 260.0) {
tmp = (x + -2.0) * (z * 0.0212463641547976);
} 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 <= -880000000000.0: tmp = t_0 elif x <= -7.2e-100: tmp = -0.0424927283095952 * (x * y) elif x <= 1.12e-107: tmp = (x + -2.0) * (z * (0.0212463641547976 + (x * -0.14147091005106402))) elif x <= 1.9e-75: tmp = (x + -2.0) * (0.0212463641547976 * (x * y)) elif x <= 260.0: tmp = (x + -2.0) * (z * 0.0212463641547976) 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 <= -880000000000.0) tmp = t_0; elseif (x <= -7.2e-100) tmp = Float64(-0.0424927283095952 * Float64(x * y)); elseif (x <= 1.12e-107) tmp = Float64(Float64(x + -2.0) * Float64(z * Float64(0.0212463641547976 + Float64(x * -0.14147091005106402)))); elseif (x <= 1.9e-75) tmp = Float64(Float64(x + -2.0) * Float64(0.0212463641547976 * Float64(x * y))); elseif (x <= 260.0) tmp = Float64(Float64(x + -2.0) * Float64(z * 0.0212463641547976)); 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 <= -880000000000.0) tmp = t_0; elseif (x <= -7.2e-100) tmp = -0.0424927283095952 * (x * y); elseif (x <= 1.12e-107) tmp = (x + -2.0) * (z * (0.0212463641547976 + (x * -0.14147091005106402))); elseif (x <= 1.9e-75) tmp = (x + -2.0) * (0.0212463641547976 * (x * y)); elseif (x <= 260.0) tmp = (x + -2.0) * (z * 0.0212463641547976); 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, -880000000000.0], t$95$0, If[LessEqual[x, -7.2e-100], N[(-0.0424927283095952 * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.12e-107], N[(N[(x + -2.0), $MachinePrecision] * N[(z * N[(0.0212463641547976 + N[(x * -0.14147091005106402), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.9e-75], N[(N[(x + -2.0), $MachinePrecision] * N[(0.0212463641547976 * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 260.0], N[(N[(x + -2.0), $MachinePrecision] * N[(z * 0.0212463641547976), $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 -880000000000:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq -7.2 \cdot 10^{-100}:\\
\;\;\;\;-0.0424927283095952 \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;x \leq 1.12 \cdot 10^{-107}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot \left(0.0212463641547976 + x \cdot -0.14147091005106402\right)\right)\\
\mathbf{elif}\;x \leq 1.9 \cdot 10^{-75}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(0.0212463641547976 \cdot \left(x \cdot y\right)\right)\\
\mathbf{elif}\;x \leq 260:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976\right)\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if x < -8.8e11 or 260 < x Initial program 17.1%
associate-/l*21.5%
sub-neg21.5%
metadata-eval21.5%
*-commutative21.5%
fma-define21.5%
*-commutative21.5%
fma-define21.5%
*-commutative21.5%
fma-define21.5%
fma-define21.5%
*-commutative21.5%
Simplified21.5%
metadata-eval21.5%
sub-neg21.5%
clear-num21.5%
un-div-inv21.5%
sub-neg21.5%
metadata-eval21.5%
Applied egg-rr21.5%
Taylor expanded in x around inf 92.6%
associate-*r/92.6%
metadata-eval92.6%
Simplified92.6%
if -8.8e11 < x < -7.1999999999999997e-100Initial program 99.4%
associate-/l*99.4%
sub-neg99.4%
metadata-eval99.4%
*-commutative99.4%
fma-define99.5%
*-commutative99.5%
fma-define99.5%
*-commutative99.5%
fma-define99.5%
fma-define99.5%
*-commutative99.5%
Simplified99.5%
Taylor expanded in y around inf 45.1%
Taylor expanded in x around 0 39.4%
*-commutative39.4%
Simplified39.4%
if -7.1999999999999997e-100 < x < 1.12e-107Initial program 99.8%
associate-/l*99.8%
sub-neg99.8%
metadata-eval99.8%
*-commutative99.8%
fma-define99.8%
*-commutative99.8%
fma-define99.8%
*-commutative99.8%
fma-define99.8%
fma-define99.8%
*-commutative99.8%
Simplified99.8%
Taylor expanded in z around inf 81.7%
Taylor expanded in x around 0 81.5%
associate-*r*81.5%
distribute-rgt-out81.5%
*-commutative81.5%
Simplified81.5%
if 1.12e-107 < x < 1.89999999999999997e-75Initial program 99.8%
associate-/l*99.8%
sub-neg99.8%
metadata-eval99.8%
*-commutative99.8%
fma-define99.8%
*-commutative99.8%
fma-define99.8%
*-commutative99.8%
fma-define99.8%
fma-define99.8%
*-commutative99.8%
Simplified99.8%
Taylor expanded in y around inf 77.9%
Taylor expanded in x around 0 77.4%
*-commutative77.4%
Simplified77.4%
if 1.89999999999999997e-75 < x < 260Initial program 99.7%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
*-commutative99.7%
fma-define99.7%
*-commutative99.7%
fma-define99.7%
*-commutative99.7%
fma-define99.7%
fma-define99.7%
*-commutative99.7%
Simplified99.7%
Taylor expanded in x around 0 52.4%
Final simplification81.3%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (/ (+ x -2.0) (+ 0.24013125253755718 (/ 5.86923874282773 x)))))
(if (<= x -880000000000.0)
t_0
(if (<= x -5.5e-100)
(* -0.0424927283095952 (* x y))
(if (<= x 1.12e-107)
(* z -0.0424927283095952)
(if (<= x 1.9e-75)
(* (+ x -2.0) (* 0.0212463641547976 (* x y)))
(if (<= x 310.0) (* (+ x -2.0) (* z 0.0212463641547976)) 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 <= -880000000000.0) {
tmp = t_0;
} else if (x <= -5.5e-100) {
tmp = -0.0424927283095952 * (x * y);
} else if (x <= 1.12e-107) {
tmp = z * -0.0424927283095952;
} else if (x <= 1.9e-75) {
tmp = (x + -2.0) * (0.0212463641547976 * (x * y));
} else if (x <= 310.0) {
tmp = (x + -2.0) * (z * 0.0212463641547976);
} 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 <= (-880000000000.0d0)) then
tmp = t_0
else if (x <= (-5.5d-100)) then
tmp = (-0.0424927283095952d0) * (x * y)
else if (x <= 1.12d-107) then
tmp = z * (-0.0424927283095952d0)
else if (x <= 1.9d-75) then
tmp = (x + (-2.0d0)) * (0.0212463641547976d0 * (x * y))
else if (x <= 310.0d0) then
tmp = (x + (-2.0d0)) * (z * 0.0212463641547976d0)
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 <= -880000000000.0) {
tmp = t_0;
} else if (x <= -5.5e-100) {
tmp = -0.0424927283095952 * (x * y);
} else if (x <= 1.12e-107) {
tmp = z * -0.0424927283095952;
} else if (x <= 1.9e-75) {
tmp = (x + -2.0) * (0.0212463641547976 * (x * y));
} else if (x <= 310.0) {
tmp = (x + -2.0) * (z * 0.0212463641547976);
} 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 <= -880000000000.0: tmp = t_0 elif x <= -5.5e-100: tmp = -0.0424927283095952 * (x * y) elif x <= 1.12e-107: tmp = z * -0.0424927283095952 elif x <= 1.9e-75: tmp = (x + -2.0) * (0.0212463641547976 * (x * y)) elif x <= 310.0: tmp = (x + -2.0) * (z * 0.0212463641547976) 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 <= -880000000000.0) tmp = t_0; elseif (x <= -5.5e-100) tmp = Float64(-0.0424927283095952 * Float64(x * y)); elseif (x <= 1.12e-107) tmp = Float64(z * -0.0424927283095952); elseif (x <= 1.9e-75) tmp = Float64(Float64(x + -2.0) * Float64(0.0212463641547976 * Float64(x * y))); elseif (x <= 310.0) tmp = Float64(Float64(x + -2.0) * Float64(z * 0.0212463641547976)); 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 <= -880000000000.0) tmp = t_0; elseif (x <= -5.5e-100) tmp = -0.0424927283095952 * (x * y); elseif (x <= 1.12e-107) tmp = z * -0.0424927283095952; elseif (x <= 1.9e-75) tmp = (x + -2.0) * (0.0212463641547976 * (x * y)); elseif (x <= 310.0) tmp = (x + -2.0) * (z * 0.0212463641547976); 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, -880000000000.0], t$95$0, If[LessEqual[x, -5.5e-100], N[(-0.0424927283095952 * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.12e-107], N[(z * -0.0424927283095952), $MachinePrecision], If[LessEqual[x, 1.9e-75], N[(N[(x + -2.0), $MachinePrecision] * N[(0.0212463641547976 * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 310.0], N[(N[(x + -2.0), $MachinePrecision] * N[(z * 0.0212463641547976), $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 -880000000000:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq -5.5 \cdot 10^{-100}:\\
\;\;\;\;-0.0424927283095952 \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;x \leq 1.12 \cdot 10^{-107}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{elif}\;x \leq 1.9 \cdot 10^{-75}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(0.0212463641547976 \cdot \left(x \cdot y\right)\right)\\
\mathbf{elif}\;x \leq 310:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976\right)\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if x < -8.8e11 or 310 < x Initial program 17.1%
associate-/l*21.5%
sub-neg21.5%
metadata-eval21.5%
*-commutative21.5%
fma-define21.5%
*-commutative21.5%
fma-define21.5%
*-commutative21.5%
fma-define21.5%
fma-define21.5%
*-commutative21.5%
Simplified21.5%
metadata-eval21.5%
sub-neg21.5%
clear-num21.5%
un-div-inv21.5%
sub-neg21.5%
metadata-eval21.5%
Applied egg-rr21.5%
Taylor expanded in x around inf 92.6%
associate-*r/92.6%
metadata-eval92.6%
Simplified92.6%
if -8.8e11 < x < -5.50000000000000011e-100Initial program 99.4%
associate-/l*99.4%
sub-neg99.4%
metadata-eval99.4%
*-commutative99.4%
fma-define99.5%
*-commutative99.5%
fma-define99.5%
*-commutative99.5%
fma-define99.5%
fma-define99.5%
*-commutative99.5%
Simplified99.5%
Taylor expanded in y around inf 45.1%
Taylor expanded in x around 0 39.4%
*-commutative39.4%
Simplified39.4%
if -5.50000000000000011e-100 < x < 1.12e-107Initial program 99.8%
associate-/l*99.8%
sub-neg99.8%
metadata-eval99.8%
*-commutative99.8%
fma-define99.8%
*-commutative99.8%
fma-define99.8%
*-commutative99.8%
fma-define99.8%
fma-define99.8%
*-commutative99.8%
Simplified99.8%
Taylor expanded in x around 0 81.5%
*-commutative81.5%
Simplified81.5%
if 1.12e-107 < x < 1.89999999999999997e-75Initial program 99.8%
associate-/l*99.8%
sub-neg99.8%
metadata-eval99.8%
*-commutative99.8%
fma-define99.8%
*-commutative99.8%
fma-define99.8%
*-commutative99.8%
fma-define99.8%
fma-define99.8%
*-commutative99.8%
Simplified99.8%
Taylor expanded in y around inf 77.9%
Taylor expanded in x around 0 77.4%
*-commutative77.4%
Simplified77.4%
if 1.89999999999999997e-75 < x < 310Initial program 99.7%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
*-commutative99.7%
fma-define99.7%
*-commutative99.7%
fma-define99.7%
*-commutative99.7%
fma-define99.7%
fma-define99.7%
*-commutative99.7%
Simplified99.7%
Taylor expanded in x around 0 52.4%
Final simplification81.3%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (* (+ x -2.0) (* 0.0212463641547976 (* x y)))))
(if (<= x -5.4e-8)
(/ (+ x -2.0) 0.24013125253755718)
(if (<= x -3.2e-98)
t_0
(if (<= x 1.1e-107)
(* z -0.0424927283095952)
(if (<= x 2.3e-75)
t_0
(if (<= x 3800.0)
(* (+ x -2.0) (* z 0.0212463641547976))
(* (+ x -2.0) (+ 4.16438922228 (/ -101.7851458539211 x))))))))))
double code(double x, double y, double z) {
double t_0 = (x + -2.0) * (0.0212463641547976 * (x * y));
double tmp;
if (x <= -5.4e-8) {
tmp = (x + -2.0) / 0.24013125253755718;
} else if (x <= -3.2e-98) {
tmp = t_0;
} else if (x <= 1.1e-107) {
tmp = z * -0.0424927283095952;
} else if (x <= 2.3e-75) {
tmp = t_0;
} else if (x <= 3800.0) {
tmp = (x + -2.0) * (z * 0.0212463641547976);
} else {
tmp = (x + -2.0) * (4.16438922228 + (-101.7851458539211 / 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)) * (0.0212463641547976d0 * (x * y))
if (x <= (-5.4d-8)) then
tmp = (x + (-2.0d0)) / 0.24013125253755718d0
else if (x <= (-3.2d-98)) then
tmp = t_0
else if (x <= 1.1d-107) then
tmp = z * (-0.0424927283095952d0)
else if (x <= 2.3d-75) then
tmp = t_0
else if (x <= 3800.0d0) then
tmp = (x + (-2.0d0)) * (z * 0.0212463641547976d0)
else
tmp = (x + (-2.0d0)) * (4.16438922228d0 + ((-101.7851458539211d0) / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = (x + -2.0) * (0.0212463641547976 * (x * y));
double tmp;
if (x <= -5.4e-8) {
tmp = (x + -2.0) / 0.24013125253755718;
} else if (x <= -3.2e-98) {
tmp = t_0;
} else if (x <= 1.1e-107) {
tmp = z * -0.0424927283095952;
} else if (x <= 2.3e-75) {
tmp = t_0;
} else if (x <= 3800.0) {
tmp = (x + -2.0) * (z * 0.0212463641547976);
} else {
tmp = (x + -2.0) * (4.16438922228 + (-101.7851458539211 / x));
}
return tmp;
}
def code(x, y, z): t_0 = (x + -2.0) * (0.0212463641547976 * (x * y)) tmp = 0 if x <= -5.4e-8: tmp = (x + -2.0) / 0.24013125253755718 elif x <= -3.2e-98: tmp = t_0 elif x <= 1.1e-107: tmp = z * -0.0424927283095952 elif x <= 2.3e-75: tmp = t_0 elif x <= 3800.0: tmp = (x + -2.0) * (z * 0.0212463641547976) else: tmp = (x + -2.0) * (4.16438922228 + (-101.7851458539211 / x)) return tmp
function code(x, y, z) t_0 = Float64(Float64(x + -2.0) * Float64(0.0212463641547976 * Float64(x * y))) tmp = 0.0 if (x <= -5.4e-8) tmp = Float64(Float64(x + -2.0) / 0.24013125253755718); elseif (x <= -3.2e-98) tmp = t_0; elseif (x <= 1.1e-107) tmp = Float64(z * -0.0424927283095952); elseif (x <= 2.3e-75) tmp = t_0; elseif (x <= 3800.0) tmp = Float64(Float64(x + -2.0) * Float64(z * 0.0212463641547976)); else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(-101.7851458539211 / x))); end return tmp end
function tmp_2 = code(x, y, z) t_0 = (x + -2.0) * (0.0212463641547976 * (x * y)); tmp = 0.0; if (x <= -5.4e-8) tmp = (x + -2.0) / 0.24013125253755718; elseif (x <= -3.2e-98) tmp = t_0; elseif (x <= 1.1e-107) tmp = z * -0.0424927283095952; elseif (x <= 2.3e-75) tmp = t_0; elseif (x <= 3800.0) tmp = (x + -2.0) * (z * 0.0212463641547976); else tmp = (x + -2.0) * (4.16438922228 + (-101.7851458539211 / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(x + -2.0), $MachinePrecision] * N[(0.0212463641547976 * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -5.4e-8], N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision], If[LessEqual[x, -3.2e-98], t$95$0, If[LessEqual[x, 1.1e-107], N[(z * -0.0424927283095952), $MachinePrecision], If[LessEqual[x, 2.3e-75], t$95$0, If[LessEqual[x, 3800.0], N[(N[(x + -2.0), $MachinePrecision] * N[(z * 0.0212463641547976), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(-101.7851458539211 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \left(x + -2\right) \cdot \left(0.0212463641547976 \cdot \left(x \cdot y\right)\right)\\
\mathbf{if}\;x \leq -5.4 \cdot 10^{-8}:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718}\\
\mathbf{elif}\;x \leq -3.2 \cdot 10^{-98}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 1.1 \cdot 10^{-107}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{elif}\;x \leq 2.3 \cdot 10^{-75}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 3800:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{-101.7851458539211}{x}\right)\\
\end{array}
\end{array}
if x < -5.40000000000000005e-8Initial program 22.4%
associate-/l*25.3%
sub-neg25.3%
metadata-eval25.3%
*-commutative25.3%
fma-define25.3%
*-commutative25.3%
fma-define25.3%
*-commutative25.3%
fma-define25.3%
fma-define25.3%
*-commutative25.3%
Simplified25.3%
metadata-eval25.3%
sub-neg25.3%
clear-num25.3%
un-div-inv25.3%
sub-neg25.3%
metadata-eval25.3%
Applied egg-rr25.3%
Taylor expanded in x around inf 86.6%
if -5.40000000000000005e-8 < x < -3.2000000000000001e-98 or 1.10000000000000006e-107 < x < 2.3e-75Initial program 99.6%
associate-/l*99.5%
sub-neg99.5%
metadata-eval99.5%
*-commutative99.5%
fma-define99.5%
*-commutative99.5%
fma-define99.5%
*-commutative99.5%
fma-define99.5%
fma-define99.5%
*-commutative99.5%
Simplified99.5%
Taylor expanded in y around inf 58.8%
Taylor expanded in x around 0 57.5%
*-commutative57.5%
Simplified57.5%
if -3.2000000000000001e-98 < x < 1.10000000000000006e-107Initial program 99.8%
associate-/l*99.8%
sub-neg99.8%
metadata-eval99.8%
*-commutative99.8%
fma-define99.8%
*-commutative99.8%
fma-define99.8%
*-commutative99.8%
fma-define99.8%
fma-define99.8%
*-commutative99.8%
Simplified99.8%
Taylor expanded in x around 0 81.5%
*-commutative81.5%
Simplified81.5%
if 2.3e-75 < x < 3800Initial program 99.7%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
*-commutative99.7%
fma-define99.7%
*-commutative99.7%
fma-define99.7%
*-commutative99.7%
fma-define99.7%
fma-define99.7%
*-commutative99.7%
Simplified99.7%
Taylor expanded in x around 0 52.4%
if 3800 < x Initial program 19.2%
associate-/l*24.7%
sub-neg24.7%
metadata-eval24.7%
*-commutative24.7%
fma-define24.7%
*-commutative24.7%
fma-define24.7%
*-commutative24.7%
fma-define24.7%
fma-define24.6%
*-commutative24.6%
Simplified24.6%
Taylor expanded in x around inf 89.9%
sub-neg89.9%
associate-*r/89.9%
metadata-eval89.9%
distribute-neg-frac89.9%
metadata-eval89.9%
Simplified89.9%
Final simplification81.1%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (* (+ x -2.0) (* 0.0212463641547976 (* x y)))))
(if (<= x -5.4e-8)
(/ (+ x -2.0) 0.24013125253755718)
(if (<= x -4.2e-98)
t_0
(if (<= x 2.65e-108)
(* z -0.0424927283095952)
(if (<= x 1.95e-75)
t_0
(if (<= x 260.0)
(* (+ x -2.0) (* z 0.0212463641547976))
(* x (+ 4.16438922228 (/ -110.1139242984811 x))))))))))
double code(double x, double y, double z) {
double t_0 = (x + -2.0) * (0.0212463641547976 * (x * y));
double tmp;
if (x <= -5.4e-8) {
tmp = (x + -2.0) / 0.24013125253755718;
} else if (x <= -4.2e-98) {
tmp = t_0;
} else if (x <= 2.65e-108) {
tmp = z * -0.0424927283095952;
} else if (x <= 1.95e-75) {
tmp = t_0;
} else if (x <= 260.0) {
tmp = (x + -2.0) * (z * 0.0212463641547976);
} else {
tmp = x * (4.16438922228 + (-110.1139242984811 / x));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = (x + (-2.0d0)) * (0.0212463641547976d0 * (x * y))
if (x <= (-5.4d-8)) then
tmp = (x + (-2.0d0)) / 0.24013125253755718d0
else if (x <= (-4.2d-98)) then
tmp = t_0
else if (x <= 2.65d-108) then
tmp = z * (-0.0424927283095952d0)
else if (x <= 1.95d-75) then
tmp = t_0
else if (x <= 260.0d0) then
tmp = (x + (-2.0d0)) * (z * 0.0212463641547976d0)
else
tmp = x * (4.16438922228d0 + ((-110.1139242984811d0) / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = (x + -2.0) * (0.0212463641547976 * (x * y));
double tmp;
if (x <= -5.4e-8) {
tmp = (x + -2.0) / 0.24013125253755718;
} else if (x <= -4.2e-98) {
tmp = t_0;
} else if (x <= 2.65e-108) {
tmp = z * -0.0424927283095952;
} else if (x <= 1.95e-75) {
tmp = t_0;
} else if (x <= 260.0) {
tmp = (x + -2.0) * (z * 0.0212463641547976);
} else {
tmp = x * (4.16438922228 + (-110.1139242984811 / x));
}
return tmp;
}
def code(x, y, z): t_0 = (x + -2.0) * (0.0212463641547976 * (x * y)) tmp = 0 if x <= -5.4e-8: tmp = (x + -2.0) / 0.24013125253755718 elif x <= -4.2e-98: tmp = t_0 elif x <= 2.65e-108: tmp = z * -0.0424927283095952 elif x <= 1.95e-75: tmp = t_0 elif x <= 260.0: tmp = (x + -2.0) * (z * 0.0212463641547976) else: tmp = x * (4.16438922228 + (-110.1139242984811 / x)) return tmp
function code(x, y, z) t_0 = Float64(Float64(x + -2.0) * Float64(0.0212463641547976 * Float64(x * y))) tmp = 0.0 if (x <= -5.4e-8) tmp = Float64(Float64(x + -2.0) / 0.24013125253755718); elseif (x <= -4.2e-98) tmp = t_0; elseif (x <= 2.65e-108) tmp = Float64(z * -0.0424927283095952); elseif (x <= 1.95e-75) tmp = t_0; elseif (x <= 260.0) tmp = Float64(Float64(x + -2.0) * Float64(z * 0.0212463641547976)); else tmp = Float64(x * Float64(4.16438922228 + Float64(-110.1139242984811 / x))); end return tmp end
function tmp_2 = code(x, y, z) t_0 = (x + -2.0) * (0.0212463641547976 * (x * y)); tmp = 0.0; if (x <= -5.4e-8) tmp = (x + -2.0) / 0.24013125253755718; elseif (x <= -4.2e-98) tmp = t_0; elseif (x <= 2.65e-108) tmp = z * -0.0424927283095952; elseif (x <= 1.95e-75) tmp = t_0; elseif (x <= 260.0) tmp = (x + -2.0) * (z * 0.0212463641547976); else tmp = x * (4.16438922228 + (-110.1139242984811 / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(x + -2.0), $MachinePrecision] * N[(0.0212463641547976 * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -5.4e-8], N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision], If[LessEqual[x, -4.2e-98], t$95$0, If[LessEqual[x, 2.65e-108], N[(z * -0.0424927283095952), $MachinePrecision], If[LessEqual[x, 1.95e-75], t$95$0, If[LessEqual[x, 260.0], N[(N[(x + -2.0), $MachinePrecision] * N[(z * 0.0212463641547976), $MachinePrecision]), $MachinePrecision], N[(x * N[(4.16438922228 + N[(-110.1139242984811 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \left(x + -2\right) \cdot \left(0.0212463641547976 \cdot \left(x \cdot y\right)\right)\\
\mathbf{if}\;x \leq -5.4 \cdot 10^{-8}:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718}\\
\mathbf{elif}\;x \leq -4.2 \cdot 10^{-98}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 2.65 \cdot 10^{-108}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{elif}\;x \leq 1.95 \cdot 10^{-75}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 260:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(4.16438922228 + \frac{-110.1139242984811}{x}\right)\\
\end{array}
\end{array}
if x < -5.40000000000000005e-8Initial program 22.4%
associate-/l*25.3%
sub-neg25.3%
metadata-eval25.3%
*-commutative25.3%
fma-define25.3%
*-commutative25.3%
fma-define25.3%
*-commutative25.3%
fma-define25.3%
fma-define25.3%
*-commutative25.3%
Simplified25.3%
metadata-eval25.3%
sub-neg25.3%
clear-num25.3%
un-div-inv25.3%
sub-neg25.3%
metadata-eval25.3%
Applied egg-rr25.3%
Taylor expanded in x around inf 86.6%
if -5.40000000000000005e-8 < x < -4.19999999999999984e-98 or 2.64999999999999994e-108 < x < 1.9500000000000001e-75Initial program 99.6%
associate-/l*99.5%
sub-neg99.5%
metadata-eval99.5%
*-commutative99.5%
fma-define99.5%
*-commutative99.5%
fma-define99.5%
*-commutative99.5%
fma-define99.5%
fma-define99.5%
*-commutative99.5%
Simplified99.5%
Taylor expanded in y around inf 58.8%
Taylor expanded in x around 0 57.5%
*-commutative57.5%
Simplified57.5%
if -4.19999999999999984e-98 < x < 2.64999999999999994e-108Initial program 99.8%
associate-/l*99.8%
sub-neg99.8%
metadata-eval99.8%
*-commutative99.8%
fma-define99.8%
*-commutative99.8%
fma-define99.8%
*-commutative99.8%
fma-define99.8%
fma-define99.8%
*-commutative99.8%
Simplified99.8%
Taylor expanded in x around 0 81.5%
*-commutative81.5%
Simplified81.5%
if 1.9500000000000001e-75 < x < 260Initial program 99.7%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
*-commutative99.7%
fma-define99.7%
*-commutative99.7%
fma-define99.7%
*-commutative99.7%
fma-define99.7%
fma-define99.7%
*-commutative99.7%
Simplified99.7%
Taylor expanded in x around 0 52.4%
if 260 < x Initial program 19.2%
associate-/l*24.7%
sub-neg24.7%
metadata-eval24.7%
*-commutative24.7%
fma-define24.7%
*-commutative24.7%
fma-define24.7%
*-commutative24.7%
fma-define24.7%
fma-define24.6%
*-commutative24.6%
Simplified24.6%
Taylor expanded in x around inf 89.9%
sub-neg89.9%
associate-*r/89.9%
metadata-eval89.9%
distribute-neg-frac89.9%
metadata-eval89.9%
Simplified89.9%
Final simplification81.0%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (* -0.0424927283095952 (* x y))))
(if (<= x -5.4e-8)
(/ (+ x -2.0) 0.24013125253755718)
(if (<= x -4.4e-98)
t_0
(if (<= x 6.4e-108)
(* z -0.0424927283095952)
(if (<= x 2.3e-75)
t_0
(if (<= x 300.0)
(* (+ x -2.0) (* z 0.0212463641547976))
(* x (+ 4.16438922228 (/ -110.1139242984811 x))))))))))
double code(double x, double y, double z) {
double t_0 = -0.0424927283095952 * (x * y);
double tmp;
if (x <= -5.4e-8) {
tmp = (x + -2.0) / 0.24013125253755718;
} else if (x <= -4.4e-98) {
tmp = t_0;
} else if (x <= 6.4e-108) {
tmp = z * -0.0424927283095952;
} else if (x <= 2.3e-75) {
tmp = t_0;
} else if (x <= 300.0) {
tmp = (x + -2.0) * (z * 0.0212463641547976);
} else {
tmp = x * (4.16438922228 + (-110.1139242984811 / x));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = (-0.0424927283095952d0) * (x * y)
if (x <= (-5.4d-8)) then
tmp = (x + (-2.0d0)) / 0.24013125253755718d0
else if (x <= (-4.4d-98)) then
tmp = t_0
else if (x <= 6.4d-108) then
tmp = z * (-0.0424927283095952d0)
else if (x <= 2.3d-75) then
tmp = t_0
else if (x <= 300.0d0) then
tmp = (x + (-2.0d0)) * (z * 0.0212463641547976d0)
else
tmp = x * (4.16438922228d0 + ((-110.1139242984811d0) / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = -0.0424927283095952 * (x * y);
double tmp;
if (x <= -5.4e-8) {
tmp = (x + -2.0) / 0.24013125253755718;
} else if (x <= -4.4e-98) {
tmp = t_0;
} else if (x <= 6.4e-108) {
tmp = z * -0.0424927283095952;
} else if (x <= 2.3e-75) {
tmp = t_0;
} else if (x <= 300.0) {
tmp = (x + -2.0) * (z * 0.0212463641547976);
} else {
tmp = x * (4.16438922228 + (-110.1139242984811 / x));
}
return tmp;
}
def code(x, y, z): t_0 = -0.0424927283095952 * (x * y) tmp = 0 if x <= -5.4e-8: tmp = (x + -2.0) / 0.24013125253755718 elif x <= -4.4e-98: tmp = t_0 elif x <= 6.4e-108: tmp = z * -0.0424927283095952 elif x <= 2.3e-75: tmp = t_0 elif x <= 300.0: tmp = (x + -2.0) * (z * 0.0212463641547976) else: tmp = x * (4.16438922228 + (-110.1139242984811 / x)) return tmp
function code(x, y, z) t_0 = Float64(-0.0424927283095952 * Float64(x * y)) tmp = 0.0 if (x <= -5.4e-8) tmp = Float64(Float64(x + -2.0) / 0.24013125253755718); elseif (x <= -4.4e-98) tmp = t_0; elseif (x <= 6.4e-108) tmp = Float64(z * -0.0424927283095952); elseif (x <= 2.3e-75) tmp = t_0; elseif (x <= 300.0) tmp = Float64(Float64(x + -2.0) * Float64(z * 0.0212463641547976)); else tmp = Float64(x * Float64(4.16438922228 + Float64(-110.1139242984811 / x))); end return tmp end
function tmp_2 = code(x, y, z) t_0 = -0.0424927283095952 * (x * y); tmp = 0.0; if (x <= -5.4e-8) tmp = (x + -2.0) / 0.24013125253755718; elseif (x <= -4.4e-98) tmp = t_0; elseif (x <= 6.4e-108) tmp = z * -0.0424927283095952; elseif (x <= 2.3e-75) tmp = t_0; elseif (x <= 300.0) tmp = (x + -2.0) * (z * 0.0212463641547976); else tmp = x * (4.16438922228 + (-110.1139242984811 / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(-0.0424927283095952 * N[(x * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -5.4e-8], N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision], If[LessEqual[x, -4.4e-98], t$95$0, If[LessEqual[x, 6.4e-108], N[(z * -0.0424927283095952), $MachinePrecision], If[LessEqual[x, 2.3e-75], t$95$0, If[LessEqual[x, 300.0], N[(N[(x + -2.0), $MachinePrecision] * N[(z * 0.0212463641547976), $MachinePrecision]), $MachinePrecision], N[(x * N[(4.16438922228 + N[(-110.1139242984811 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := -0.0424927283095952 \cdot \left(x \cdot y\right)\\
\mathbf{if}\;x \leq -5.4 \cdot 10^{-8}:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718}\\
\mathbf{elif}\;x \leq -4.4 \cdot 10^{-98}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 6.4 \cdot 10^{-108}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{elif}\;x \leq 2.3 \cdot 10^{-75}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 300:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(4.16438922228 + \frac{-110.1139242984811}{x}\right)\\
\end{array}
\end{array}
if x < -5.40000000000000005e-8Initial program 22.4%
associate-/l*25.3%
sub-neg25.3%
metadata-eval25.3%
*-commutative25.3%
fma-define25.3%
*-commutative25.3%
fma-define25.3%
*-commutative25.3%
fma-define25.3%
fma-define25.3%
*-commutative25.3%
Simplified25.3%
metadata-eval25.3%
sub-neg25.3%
clear-num25.3%
un-div-inv25.3%
sub-neg25.3%
metadata-eval25.3%
Applied egg-rr25.3%
Taylor expanded in x around inf 86.6%
if -5.40000000000000005e-8 < x < -4.39999999999999993e-98 or 6.3999999999999999e-108 < x < 2.3e-75Initial program 99.6%
associate-/l*99.5%
sub-neg99.5%
metadata-eval99.5%
*-commutative99.5%
fma-define99.5%
*-commutative99.5%
fma-define99.5%
*-commutative99.5%
fma-define99.5%
fma-define99.5%
*-commutative99.5%
Simplified99.5%
Taylor expanded in y around inf 58.8%
Taylor expanded in x around 0 57.5%
*-commutative57.5%
Simplified57.5%
if -4.39999999999999993e-98 < x < 6.3999999999999999e-108Initial program 99.8%
associate-/l*99.8%
sub-neg99.8%
metadata-eval99.8%
*-commutative99.8%
fma-define99.8%
*-commutative99.8%
fma-define99.8%
*-commutative99.8%
fma-define99.8%
fma-define99.8%
*-commutative99.8%
Simplified99.8%
Taylor expanded in x around 0 81.5%
*-commutative81.5%
Simplified81.5%
if 2.3e-75 < x < 300Initial program 99.7%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
*-commutative99.7%
fma-define99.7%
*-commutative99.7%
fma-define99.7%
*-commutative99.7%
fma-define99.7%
fma-define99.7%
*-commutative99.7%
Simplified99.7%
Taylor expanded in x around 0 52.4%
if 300 < x Initial program 19.2%
associate-/l*24.7%
sub-neg24.7%
metadata-eval24.7%
*-commutative24.7%
fma-define24.7%
*-commutative24.7%
fma-define24.7%
*-commutative24.7%
fma-define24.7%
fma-define24.6%
*-commutative24.6%
Simplified24.6%
Taylor expanded in x around inf 89.9%
sub-neg89.9%
associate-*r/89.9%
metadata-eval89.9%
distribute-neg-frac89.9%
metadata-eval89.9%
Simplified89.9%
Final simplification81.0%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (* -0.0424927283095952 (* x y))))
(if (<= x -5.4e-8)
(/ (+ x -2.0) 0.24013125253755718)
(if (<= x -5.5e-98)
t_0
(if (<= x 1.12e-107)
(* z -0.0424927283095952)
(if (<= x 1.9e-75)
t_0
(if (<= x 1.92)
(* z -0.0424927283095952)
(* x (+ 4.16438922228 (/ -110.1139242984811 x))))))))))
double code(double x, double y, double z) {
double t_0 = -0.0424927283095952 * (x * y);
double tmp;
if (x <= -5.4e-8) {
tmp = (x + -2.0) / 0.24013125253755718;
} else if (x <= -5.5e-98) {
tmp = t_0;
} else if (x <= 1.12e-107) {
tmp = z * -0.0424927283095952;
} else if (x <= 1.9e-75) {
tmp = t_0;
} else if (x <= 1.92) {
tmp = z * -0.0424927283095952;
} else {
tmp = x * (4.16438922228 + (-110.1139242984811 / x));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = (-0.0424927283095952d0) * (x * y)
if (x <= (-5.4d-8)) then
tmp = (x + (-2.0d0)) / 0.24013125253755718d0
else if (x <= (-5.5d-98)) then
tmp = t_0
else if (x <= 1.12d-107) then
tmp = z * (-0.0424927283095952d0)
else if (x <= 1.9d-75) then
tmp = t_0
else if (x <= 1.92d0) then
tmp = z * (-0.0424927283095952d0)
else
tmp = x * (4.16438922228d0 + ((-110.1139242984811d0) / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = -0.0424927283095952 * (x * y);
double tmp;
if (x <= -5.4e-8) {
tmp = (x + -2.0) / 0.24013125253755718;
} else if (x <= -5.5e-98) {
tmp = t_0;
} else if (x <= 1.12e-107) {
tmp = z * -0.0424927283095952;
} else if (x <= 1.9e-75) {
tmp = t_0;
} else if (x <= 1.92) {
tmp = z * -0.0424927283095952;
} else {
tmp = x * (4.16438922228 + (-110.1139242984811 / x));
}
return tmp;
}
def code(x, y, z): t_0 = -0.0424927283095952 * (x * y) tmp = 0 if x <= -5.4e-8: tmp = (x + -2.0) / 0.24013125253755718 elif x <= -5.5e-98: tmp = t_0 elif x <= 1.12e-107: tmp = z * -0.0424927283095952 elif x <= 1.9e-75: tmp = t_0 elif x <= 1.92: tmp = z * -0.0424927283095952 else: tmp = x * (4.16438922228 + (-110.1139242984811 / x)) return tmp
function code(x, y, z) t_0 = Float64(-0.0424927283095952 * Float64(x * y)) tmp = 0.0 if (x <= -5.4e-8) tmp = Float64(Float64(x + -2.0) / 0.24013125253755718); elseif (x <= -5.5e-98) tmp = t_0; elseif (x <= 1.12e-107) tmp = Float64(z * -0.0424927283095952); elseif (x <= 1.9e-75) tmp = t_0; elseif (x <= 1.92) tmp = Float64(z * -0.0424927283095952); else tmp = Float64(x * Float64(4.16438922228 + Float64(-110.1139242984811 / x))); end return tmp end
function tmp_2 = code(x, y, z) t_0 = -0.0424927283095952 * (x * y); tmp = 0.0; if (x <= -5.4e-8) tmp = (x + -2.0) / 0.24013125253755718; elseif (x <= -5.5e-98) tmp = t_0; elseif (x <= 1.12e-107) tmp = z * -0.0424927283095952; elseif (x <= 1.9e-75) tmp = t_0; elseif (x <= 1.92) tmp = z * -0.0424927283095952; else tmp = x * (4.16438922228 + (-110.1139242984811 / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(-0.0424927283095952 * N[(x * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -5.4e-8], N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision], If[LessEqual[x, -5.5e-98], t$95$0, If[LessEqual[x, 1.12e-107], N[(z * -0.0424927283095952), $MachinePrecision], If[LessEqual[x, 1.9e-75], t$95$0, If[LessEqual[x, 1.92], N[(z * -0.0424927283095952), $MachinePrecision], N[(x * N[(4.16438922228 + N[(-110.1139242984811 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := -0.0424927283095952 \cdot \left(x \cdot y\right)\\
\mathbf{if}\;x \leq -5.4 \cdot 10^{-8}:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718}\\
\mathbf{elif}\;x \leq -5.5 \cdot 10^{-98}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 1.12 \cdot 10^{-107}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{elif}\;x \leq 1.9 \cdot 10^{-75}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 1.92:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(4.16438922228 + \frac{-110.1139242984811}{x}\right)\\
\end{array}
\end{array}
if x < -5.40000000000000005e-8Initial program 22.4%
associate-/l*25.3%
sub-neg25.3%
metadata-eval25.3%
*-commutative25.3%
fma-define25.3%
*-commutative25.3%
fma-define25.3%
*-commutative25.3%
fma-define25.3%
fma-define25.3%
*-commutative25.3%
Simplified25.3%
metadata-eval25.3%
sub-neg25.3%
clear-num25.3%
un-div-inv25.3%
sub-neg25.3%
metadata-eval25.3%
Applied egg-rr25.3%
Taylor expanded in x around inf 86.6%
if -5.40000000000000005e-8 < x < -5.4999999999999997e-98 or 1.12e-107 < x < 1.89999999999999997e-75Initial program 99.6%
associate-/l*99.5%
sub-neg99.5%
metadata-eval99.5%
*-commutative99.5%
fma-define99.5%
*-commutative99.5%
fma-define99.5%
*-commutative99.5%
fma-define99.5%
fma-define99.5%
*-commutative99.5%
Simplified99.5%
Taylor expanded in y around inf 58.8%
Taylor expanded in x around 0 57.5%
*-commutative57.5%
Simplified57.5%
if -5.4999999999999997e-98 < x < 1.12e-107 or 1.89999999999999997e-75 < x < 1.9199999999999999Initial program 99.8%
associate-/l*99.8%
sub-neg99.8%
metadata-eval99.8%
*-commutative99.8%
fma-define99.8%
*-commutative99.8%
fma-define99.8%
*-commutative99.8%
fma-define99.8%
fma-define99.8%
*-commutative99.8%
Simplified99.8%
Taylor expanded in x around 0 78.7%
*-commutative78.7%
Simplified78.7%
if 1.9199999999999999 < x Initial program 21.5%
associate-/l*26.8%
sub-neg26.8%
metadata-eval26.8%
*-commutative26.8%
fma-define26.8%
*-commutative26.8%
fma-define26.8%
*-commutative26.8%
fma-define26.8%
fma-define26.8%
*-commutative26.8%
Simplified26.8%
Taylor expanded in x around inf 87.5%
sub-neg87.5%
associate-*r/87.5%
metadata-eval87.5%
distribute-neg-frac87.5%
metadata-eval87.5%
Simplified87.5%
Final simplification81.0%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (/ (+ x -2.0) 0.24013125253755718))
(t_1 (* -0.0424927283095952 (* x y))))
(if (<= x -5.4e-8)
t_0
(if (<= x -6.4e-99)
t_1
(if (<= x 1.08e-107)
(* z -0.0424927283095952)
(if (<= x 1.9e-75)
t_1
(if (<= x 1.95) (* z -0.0424927283095952) t_0)))))))
double code(double x, double y, double z) {
double t_0 = (x + -2.0) / 0.24013125253755718;
double t_1 = -0.0424927283095952 * (x * y);
double tmp;
if (x <= -5.4e-8) {
tmp = t_0;
} else if (x <= -6.4e-99) {
tmp = t_1;
} else if (x <= 1.08e-107) {
tmp = z * -0.0424927283095952;
} else if (x <= 1.9e-75) {
tmp = t_1;
} else if (x <= 1.95) {
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) :: t_1
real(8) :: tmp
t_0 = (x + (-2.0d0)) / 0.24013125253755718d0
t_1 = (-0.0424927283095952d0) * (x * y)
if (x <= (-5.4d-8)) then
tmp = t_0
else if (x <= (-6.4d-99)) then
tmp = t_1
else if (x <= 1.08d-107) then
tmp = z * (-0.0424927283095952d0)
else if (x <= 1.9d-75) then
tmp = t_1
else if (x <= 1.95d0) 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 + -2.0) / 0.24013125253755718;
double t_1 = -0.0424927283095952 * (x * y);
double tmp;
if (x <= -5.4e-8) {
tmp = t_0;
} else if (x <= -6.4e-99) {
tmp = t_1;
} else if (x <= 1.08e-107) {
tmp = z * -0.0424927283095952;
} else if (x <= 1.9e-75) {
tmp = t_1;
} else if (x <= 1.95) {
tmp = z * -0.0424927283095952;
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = (x + -2.0) / 0.24013125253755718 t_1 = -0.0424927283095952 * (x * y) tmp = 0 if x <= -5.4e-8: tmp = t_0 elif x <= -6.4e-99: tmp = t_1 elif x <= 1.08e-107: tmp = z * -0.0424927283095952 elif x <= 1.9e-75: tmp = t_1 elif x <= 1.95: tmp = z * -0.0424927283095952 else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(Float64(x + -2.0) / 0.24013125253755718) t_1 = Float64(-0.0424927283095952 * Float64(x * y)) tmp = 0.0 if (x <= -5.4e-8) tmp = t_0; elseif (x <= -6.4e-99) tmp = t_1; elseif (x <= 1.08e-107) tmp = Float64(z * -0.0424927283095952); elseif (x <= 1.9e-75) tmp = t_1; elseif (x <= 1.95) tmp = Float64(z * -0.0424927283095952); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = (x + -2.0) / 0.24013125253755718; t_1 = -0.0424927283095952 * (x * y); tmp = 0.0; if (x <= -5.4e-8) tmp = t_0; elseif (x <= -6.4e-99) tmp = t_1; elseif (x <= 1.08e-107) tmp = z * -0.0424927283095952; elseif (x <= 1.9e-75) tmp = t_1; elseif (x <= 1.95) tmp = z * -0.0424927283095952; else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision]}, Block[{t$95$1 = N[(-0.0424927283095952 * N[(x * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -5.4e-8], t$95$0, If[LessEqual[x, -6.4e-99], t$95$1, If[LessEqual[x, 1.08e-107], N[(z * -0.0424927283095952), $MachinePrecision], If[LessEqual[x, 1.9e-75], t$95$1, If[LessEqual[x, 1.95], N[(z * -0.0424927283095952), $MachinePrecision], t$95$0]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{x + -2}{0.24013125253755718}\\
t_1 := -0.0424927283095952 \cdot \left(x \cdot y\right)\\
\mathbf{if}\;x \leq -5.4 \cdot 10^{-8}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq -6.4 \cdot 10^{-99}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 1.08 \cdot 10^{-107}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{elif}\;x \leq 1.9 \cdot 10^{-75}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 1.95:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if x < -5.40000000000000005e-8 or 1.94999999999999996 < x Initial program 21.9%
associate-/l*26.0%
sub-neg26.0%
metadata-eval26.0%
*-commutative26.0%
fma-define26.1%
*-commutative26.1%
fma-define26.1%
*-commutative26.1%
fma-define26.1%
fma-define26.0%
*-commutative26.0%
Simplified26.0%
metadata-eval26.0%
sub-neg26.0%
clear-num26.0%
un-div-inv26.1%
sub-neg26.1%
metadata-eval26.1%
Applied egg-rr26.1%
Taylor expanded in x around inf 86.9%
if -5.40000000000000005e-8 < x < -6.4000000000000001e-99 or 1.08000000000000002e-107 < x < 1.89999999999999997e-75Initial program 99.6%
associate-/l*99.5%
sub-neg99.5%
metadata-eval99.5%
*-commutative99.5%
fma-define99.5%
*-commutative99.5%
fma-define99.5%
*-commutative99.5%
fma-define99.5%
fma-define99.5%
*-commutative99.5%
Simplified99.5%
Taylor expanded in y around inf 58.8%
Taylor expanded in x around 0 57.5%
*-commutative57.5%
Simplified57.5%
if -6.4000000000000001e-99 < x < 1.08000000000000002e-107 or 1.89999999999999997e-75 < x < 1.94999999999999996Initial program 99.8%
associate-/l*99.8%
sub-neg99.8%
metadata-eval99.8%
*-commutative99.8%
fma-define99.8%
*-commutative99.8%
fma-define99.8%
*-commutative99.8%
fma-define99.8%
fma-define99.8%
*-commutative99.8%
Simplified99.8%
Taylor expanded in x around 0 78.7%
*-commutative78.7%
Simplified78.7%
Final simplification80.9%
(FPCore (x y z)
:precision binary64
(if (or (<= x -0.000102) (not (<= x 61.0)))
(*
(+ x -2.0)
(+
4.16438922228
(/
(-
(/ (+ 3451.550173699799 (/ (- y 124074.40615218398) x)) x)
101.7851458539211)
x)))
(+
(*
x
(- (* 0.0212463641547976 (+ z (* y -2.0))) (* z -0.28294182010212804)))
(* z -0.0424927283095952))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -0.000102) || !(x <= 61.0)) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
} else {
tmp = (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804))) + (z * -0.0424927283095952);
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((x <= (-0.000102d0)) .or. (.not. (x <= 61.0d0))) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + ((((3451.550173699799d0 + ((y - 124074.40615218398d0) / x)) / x) - 101.7851458539211d0) / x))
else
tmp = (x * ((0.0212463641547976d0 * (z + (y * (-2.0d0)))) - (z * (-0.28294182010212804d0)))) + (z * (-0.0424927283095952d0))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -0.000102) || !(x <= 61.0)) {
tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x));
} else {
tmp = (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804))) + (z * -0.0424927283095952);
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -0.000102) or not (x <= 61.0): tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)) else: tmp = (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804))) + (z * -0.0424927283095952) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -0.000102) || !(x <= 61.0)) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(Float64(Float64(Float64(3451.550173699799 + Float64(Float64(y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x))); else tmp = Float64(Float64(x * Float64(Float64(0.0212463641547976 * Float64(z + Float64(y * -2.0))) - Float64(z * -0.28294182010212804))) + Float64(z * -0.0424927283095952)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -0.000102) || ~((x <= 61.0))) tmp = (x + -2.0) * (4.16438922228 + ((((3451.550173699799 + ((y - 124074.40615218398) / x)) / x) - 101.7851458539211) / x)); else tmp = (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804))) + (z * -0.0424927283095952); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -0.000102], N[Not[LessEqual[x, 61.0]], $MachinePrecision]], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(N[(N[(N[(3451.550173699799 + N[(N[(y - 124074.40615218398), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] / x), $MachinePrecision] - 101.7851458539211), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x * N[(N[(0.0212463641547976 * N[(z + N[(y * -2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(z * -0.28294182010212804), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(z * -0.0424927283095952), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -0.000102 \lor \neg \left(x \leq 61\right):\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{\frac{3451.550173699799 + \frac{y - 124074.40615218398}{x}}{x} - 101.7851458539211}{x}\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(0.0212463641547976 \cdot \left(z + y \cdot -2\right) - z \cdot -0.28294182010212804\right) + z \cdot -0.0424927283095952\\
\end{array}
\end{array}
if x < -1.01999999999999999e-4 or 61 < x Initial program 19.6%
associate-/l*23.8%
sub-neg23.8%
metadata-eval23.8%
*-commutative23.8%
fma-define23.8%
*-commutative23.8%
fma-define23.8%
*-commutative23.8%
fma-define23.8%
fma-define23.8%
*-commutative23.8%
Simplified23.8%
Taylor expanded in x around -inf 95.1%
mul-1-neg95.1%
unsub-neg95.1%
mul-1-neg95.1%
unsub-neg95.1%
mul-1-neg95.1%
unsub-neg95.1%
neg-mul-195.1%
unsub-neg95.1%
Simplified95.1%
if -1.01999999999999999e-4 < x < 61Initial program 99.7%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
*-commutative99.7%
fma-define99.7%
*-commutative99.7%
fma-define99.7%
*-commutative99.7%
fma-define99.7%
fma-define99.7%
*-commutative99.7%
Simplified99.7%
Taylor expanded in x around 0 90.8%
Final simplification93.0%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (* -0.0424927283095952 (* x y))))
(if (<= x -5.4e-8)
(* x 4.16438922228)
(if (<= x -5.6e-99)
t_0
(if (<= x 1.12e-107)
(* z -0.0424927283095952)
(if (<= x 1.9e-75)
t_0
(if (<= x 5e-10)
(* z -0.0424927283095952)
(* x 4.16438922228))))))))
double code(double x, double y, double z) {
double t_0 = -0.0424927283095952 * (x * y);
double tmp;
if (x <= -5.4e-8) {
tmp = x * 4.16438922228;
} else if (x <= -5.6e-99) {
tmp = t_0;
} else if (x <= 1.12e-107) {
tmp = z * -0.0424927283095952;
} else if (x <= 1.9e-75) {
tmp = t_0;
} else if (x <= 5e-10) {
tmp = z * -0.0424927283095952;
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = (-0.0424927283095952d0) * (x * y)
if (x <= (-5.4d-8)) then
tmp = x * 4.16438922228d0
else if (x <= (-5.6d-99)) then
tmp = t_0
else if (x <= 1.12d-107) then
tmp = z * (-0.0424927283095952d0)
else if (x <= 1.9d-75) then
tmp = t_0
else if (x <= 5d-10) then
tmp = z * (-0.0424927283095952d0)
else
tmp = x * 4.16438922228d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = -0.0424927283095952 * (x * y);
double tmp;
if (x <= -5.4e-8) {
tmp = x * 4.16438922228;
} else if (x <= -5.6e-99) {
tmp = t_0;
} else if (x <= 1.12e-107) {
tmp = z * -0.0424927283095952;
} else if (x <= 1.9e-75) {
tmp = t_0;
} else if (x <= 5e-10) {
tmp = z * -0.0424927283095952;
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
def code(x, y, z): t_0 = -0.0424927283095952 * (x * y) tmp = 0 if x <= -5.4e-8: tmp = x * 4.16438922228 elif x <= -5.6e-99: tmp = t_0 elif x <= 1.12e-107: tmp = z * -0.0424927283095952 elif x <= 1.9e-75: tmp = t_0 elif x <= 5e-10: tmp = z * -0.0424927283095952 else: tmp = x * 4.16438922228 return tmp
function code(x, y, z) t_0 = Float64(-0.0424927283095952 * Float64(x * y)) tmp = 0.0 if (x <= -5.4e-8) tmp = Float64(x * 4.16438922228); elseif (x <= -5.6e-99) tmp = t_0; elseif (x <= 1.12e-107) tmp = Float64(z * -0.0424927283095952); elseif (x <= 1.9e-75) tmp = t_0; elseif (x <= 5e-10) tmp = Float64(z * -0.0424927283095952); else tmp = Float64(x * 4.16438922228); end return tmp end
function tmp_2 = code(x, y, z) t_0 = -0.0424927283095952 * (x * y); tmp = 0.0; if (x <= -5.4e-8) tmp = x * 4.16438922228; elseif (x <= -5.6e-99) tmp = t_0; elseif (x <= 1.12e-107) tmp = z * -0.0424927283095952; elseif (x <= 1.9e-75) tmp = t_0; elseif (x <= 5e-10) tmp = z * -0.0424927283095952; else tmp = x * 4.16438922228; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(-0.0424927283095952 * N[(x * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -5.4e-8], N[(x * 4.16438922228), $MachinePrecision], If[LessEqual[x, -5.6e-99], t$95$0, If[LessEqual[x, 1.12e-107], N[(z * -0.0424927283095952), $MachinePrecision], If[LessEqual[x, 1.9e-75], t$95$0, If[LessEqual[x, 5e-10], N[(z * -0.0424927283095952), $MachinePrecision], N[(x * 4.16438922228), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := -0.0424927283095952 \cdot \left(x \cdot y\right)\\
\mathbf{if}\;x \leq -5.4 \cdot 10^{-8}:\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{elif}\;x \leq -5.6 \cdot 10^{-99}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 1.12 \cdot 10^{-107}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{elif}\;x \leq 1.9 \cdot 10^{-75}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 5 \cdot 10^{-10}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228\\
\end{array}
\end{array}
if x < -5.40000000000000005e-8 or 5.00000000000000031e-10 < x Initial program 22.5%
*-commutative22.5%
distribute-rgt-in22.5%
*-commutative22.5%
fma-define22.4%
Applied egg-rr22.4%
Taylor expanded in x around inf 85.8%
*-commutative85.8%
Simplified85.8%
if -5.40000000000000005e-8 < x < -5.6000000000000001e-99 or 1.12e-107 < x < 1.89999999999999997e-75Initial program 99.6%
associate-/l*99.5%
sub-neg99.5%
metadata-eval99.5%
*-commutative99.5%
fma-define99.5%
*-commutative99.5%
fma-define99.5%
*-commutative99.5%
fma-define99.5%
fma-define99.5%
*-commutative99.5%
Simplified99.5%
Taylor expanded in y around inf 58.8%
Taylor expanded in x around 0 57.5%
*-commutative57.5%
Simplified57.5%
if -5.6000000000000001e-99 < x < 1.12e-107 or 1.89999999999999997e-75 < x < 5.00000000000000031e-10Initial program 99.8%
associate-/l*99.8%
sub-neg99.8%
metadata-eval99.8%
*-commutative99.8%
fma-define99.8%
*-commutative99.8%
fma-define99.8%
*-commutative99.8%
fma-define99.8%
fma-define99.8%
*-commutative99.8%
Simplified99.8%
Taylor expanded in x around 0 79.5%
*-commutative79.5%
Simplified79.5%
Final simplification80.7%
(FPCore (x y z)
:precision binary64
(if (<= x -880000000000.0)
(/ (+ x -2.0) (+ 0.24013125253755718 (/ 5.86923874282773 x)))
(if (<= x 63.0)
(+
(*
x
(- (* 0.0212463641547976 (+ z (* y -2.0))) (* z -0.28294182010212804)))
(* z -0.0424927283095952))
(/
(+ x -2.0)
(-
0.24013125253755718
(/ (+ (/ 55.572073733743466 x) -5.86923874282773) x))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -880000000000.0) {
tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x));
} else if (x <= 63.0) {
tmp = (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804))) + (z * -0.0424927283095952);
} else {
tmp = (x + -2.0) / (0.24013125253755718 - (((55.572073733743466 / x) + -5.86923874282773) / x));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-880000000000.0d0)) then
tmp = (x + (-2.0d0)) / (0.24013125253755718d0 + (5.86923874282773d0 / x))
else if (x <= 63.0d0) then
tmp = (x * ((0.0212463641547976d0 * (z + (y * (-2.0d0)))) - (z * (-0.28294182010212804d0)))) + (z * (-0.0424927283095952d0))
else
tmp = (x + (-2.0d0)) / (0.24013125253755718d0 - (((55.572073733743466d0 / x) + (-5.86923874282773d0)) / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -880000000000.0) {
tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x));
} else if (x <= 63.0) {
tmp = (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804))) + (z * -0.0424927283095952);
} else {
tmp = (x + -2.0) / (0.24013125253755718 - (((55.572073733743466 / x) + -5.86923874282773) / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -880000000000.0: tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x)) elif x <= 63.0: tmp = (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804))) + (z * -0.0424927283095952) else: tmp = (x + -2.0) / (0.24013125253755718 - (((55.572073733743466 / x) + -5.86923874282773) / x)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -880000000000.0) tmp = Float64(Float64(x + -2.0) / Float64(0.24013125253755718 + Float64(5.86923874282773 / x))); elseif (x <= 63.0) tmp = Float64(Float64(x * Float64(Float64(0.0212463641547976 * Float64(z + Float64(y * -2.0))) - Float64(z * -0.28294182010212804))) + Float64(z * -0.0424927283095952)); else tmp = Float64(Float64(x + -2.0) / Float64(0.24013125253755718 - Float64(Float64(Float64(55.572073733743466 / x) + -5.86923874282773) / x))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -880000000000.0) tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x)); elseif (x <= 63.0) tmp = (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804))) + (z * -0.0424927283095952); else tmp = (x + -2.0) / (0.24013125253755718 - (((55.572073733743466 / x) + -5.86923874282773) / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -880000000000.0], N[(N[(x + -2.0), $MachinePrecision] / N[(0.24013125253755718 + N[(5.86923874282773 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 63.0], N[(N[(x * N[(N[(0.0212463641547976 * N[(z + N[(y * -2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(z * -0.28294182010212804), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(z * -0.0424927283095952), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] / N[(0.24013125253755718 - N[(N[(N[(55.572073733743466 / x), $MachinePrecision] + -5.86923874282773), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -880000000000:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718 + \frac{5.86923874282773}{x}}\\
\mathbf{elif}\;x \leq 63:\\
\;\;\;\;x \cdot \left(0.0212463641547976 \cdot \left(z + y \cdot -2\right) - z \cdot -0.28294182010212804\right) + z \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718 - \frac{\frac{55.572073733743466}{x} + -5.86923874282773}{x}}\\
\end{array}
\end{array}
if x < -8.8e11Initial program 14.8%
associate-/l*18.0%
sub-neg18.0%
metadata-eval18.0%
*-commutative18.0%
fma-define18.0%
*-commutative18.0%
fma-define18.0%
*-commutative18.0%
fma-define18.0%
fma-define18.0%
*-commutative18.0%
Simplified18.0%
metadata-eval18.0%
sub-neg18.0%
clear-num17.9%
un-div-inv18.0%
sub-neg18.0%
metadata-eval18.0%
Applied egg-rr18.0%
Taylor expanded in x around inf 94.9%
associate-*r/94.9%
metadata-eval94.9%
Simplified94.9%
if -8.8e11 < x < 63Initial program 99.7%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
*-commutative99.7%
fma-define99.7%
*-commutative99.7%
fma-define99.7%
*-commutative99.7%
fma-define99.7%
fma-define99.7%
*-commutative99.7%
Simplified99.7%
Taylor expanded in x around 0 88.9%
if 63 < x Initial program 20.3%
associate-/l*25.8%
sub-neg25.8%
metadata-eval25.8%
*-commutative25.8%
fma-define25.8%
*-commutative25.8%
fma-define25.8%
*-commutative25.8%
fma-define25.8%
fma-define25.7%
*-commutative25.7%
Simplified25.7%
metadata-eval25.7%
sub-neg25.7%
clear-num25.8%
un-div-inv25.8%
sub-neg25.8%
metadata-eval25.8%
Applied egg-rr25.8%
Taylor expanded in x around -inf 89.4%
mul-1-neg89.4%
unsub-neg89.4%
sub-neg89.4%
associate-*r/89.4%
metadata-eval89.4%
metadata-eval89.4%
Simplified89.4%
Final simplification90.5%
(FPCore (x y z)
:precision binary64
(if (<= x -880000000000.0)
(/ (+ x -2.0) (+ 0.24013125253755718 (/ 5.86923874282773 x)))
(if (<= x 260.0)
(*
(+ x -2.0)
(+
(* z 0.0212463641547976)
(* x (- (* y 0.0212463641547976) (* z 0.14147091005106402)))))
(/
(+ x -2.0)
(-
0.24013125253755718
(/ (+ (/ 55.572073733743466 x) -5.86923874282773) x))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -880000000000.0) {
tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x));
} else if (x <= 260.0) {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402))));
} else {
tmp = (x + -2.0) / (0.24013125253755718 - (((55.572073733743466 / x) + -5.86923874282773) / x));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-880000000000.0d0)) then
tmp = (x + (-2.0d0)) / (0.24013125253755718d0 + (5.86923874282773d0 / x))
else if (x <= 260.0d0) then
tmp = (x + (-2.0d0)) * ((z * 0.0212463641547976d0) + (x * ((y * 0.0212463641547976d0) - (z * 0.14147091005106402d0))))
else
tmp = (x + (-2.0d0)) / (0.24013125253755718d0 - (((55.572073733743466d0 / x) + (-5.86923874282773d0)) / x))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -880000000000.0) {
tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x));
} else if (x <= 260.0) {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402))));
} else {
tmp = (x + -2.0) / (0.24013125253755718 - (((55.572073733743466 / x) + -5.86923874282773) / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -880000000000.0: tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x)) elif x <= 260.0: tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402)))) else: tmp = (x + -2.0) / (0.24013125253755718 - (((55.572073733743466 / x) + -5.86923874282773) / x)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -880000000000.0) tmp = Float64(Float64(x + -2.0) / Float64(0.24013125253755718 + Float64(5.86923874282773 / x))); elseif (x <= 260.0) tmp = Float64(Float64(x + -2.0) * Float64(Float64(z * 0.0212463641547976) + Float64(x * Float64(Float64(y * 0.0212463641547976) - Float64(z * 0.14147091005106402))))); else tmp = Float64(Float64(x + -2.0) / Float64(0.24013125253755718 - Float64(Float64(Float64(55.572073733743466 / x) + -5.86923874282773) / x))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -880000000000.0) tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x)); elseif (x <= 260.0) tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402)))); else tmp = (x + -2.0) / (0.24013125253755718 - (((55.572073733743466 / x) + -5.86923874282773) / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -880000000000.0], N[(N[(x + -2.0), $MachinePrecision] / N[(0.24013125253755718 + N[(5.86923874282773 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 260.0], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z * 0.0212463641547976), $MachinePrecision] + N[(x * N[(N[(y * 0.0212463641547976), $MachinePrecision] - N[(z * 0.14147091005106402), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] / N[(0.24013125253755718 - N[(N[(N[(55.572073733743466 / x), $MachinePrecision] + -5.86923874282773), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -880000000000:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718 + \frac{5.86923874282773}{x}}\\
\mathbf{elif}\;x \leq 260:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976 + x \cdot \left(y \cdot 0.0212463641547976 - z \cdot 0.14147091005106402\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718 - \frac{\frac{55.572073733743466}{x} + -5.86923874282773}{x}}\\
\end{array}
\end{array}
if x < -8.8e11Initial program 14.8%
associate-/l*18.0%
sub-neg18.0%
metadata-eval18.0%
*-commutative18.0%
fma-define18.0%
*-commutative18.0%
fma-define18.0%
*-commutative18.0%
fma-define18.0%
fma-define18.0%
*-commutative18.0%
Simplified18.0%
metadata-eval18.0%
sub-neg18.0%
clear-num17.9%
un-div-inv18.0%
sub-neg18.0%
metadata-eval18.0%
Applied egg-rr18.0%
Taylor expanded in x around inf 94.9%
associate-*r/94.9%
metadata-eval94.9%
Simplified94.9%
if -8.8e11 < x < 260Initial program 99.7%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
*-commutative99.7%
fma-define99.7%
*-commutative99.7%
fma-define99.7%
*-commutative99.7%
fma-define99.7%
fma-define99.7%
*-commutative99.7%
Simplified99.7%
Taylor expanded in x around 0 88.2%
if 260 < x Initial program 19.2%
associate-/l*24.7%
sub-neg24.7%
metadata-eval24.7%
*-commutative24.7%
fma-define24.7%
*-commutative24.7%
fma-define24.7%
*-commutative24.7%
fma-define24.7%
fma-define24.6%
*-commutative24.6%
Simplified24.6%
metadata-eval24.6%
sub-neg24.6%
clear-num24.7%
un-div-inv24.7%
sub-neg24.7%
metadata-eval24.7%
Applied egg-rr24.7%
Taylor expanded in x around -inf 90.7%
mul-1-neg90.7%
unsub-neg90.7%
sub-neg90.7%
associate-*r/90.7%
metadata-eval90.7%
metadata-eval90.7%
Simplified90.7%
Final simplification90.5%
(FPCore (x y z) :precision binary64 (if (or (<= x -880000000000.0) (not (<= x 5e-10))) (* x 4.16438922228) (* z -0.0424927283095952)))
double code(double x, double y, double z) {
double tmp;
if ((x <= -880000000000.0) || !(x <= 5e-10)) {
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 <= (-880000000000.0d0)) .or. (.not. (x <= 5d-10))) 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 <= -880000000000.0) || !(x <= 5e-10)) {
tmp = x * 4.16438922228;
} else {
tmp = z * -0.0424927283095952;
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -880000000000.0) or not (x <= 5e-10): tmp = x * 4.16438922228 else: tmp = z * -0.0424927283095952 return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -880000000000.0) || !(x <= 5e-10)) 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 <= -880000000000.0) || ~((x <= 5e-10))) tmp = x * 4.16438922228; else tmp = z * -0.0424927283095952; end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -880000000000.0], N[Not[LessEqual[x, 5e-10]], $MachinePrecision]], N[(x * 4.16438922228), $MachinePrecision], N[(z * -0.0424927283095952), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -880000000000 \lor \neg \left(x \leq 5 \cdot 10^{-10}\right):\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{else}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\end{array}
\end{array}
if x < -8.8e11 or 5.00000000000000031e-10 < x Initial program 19.0%
*-commutative19.0%
distribute-rgt-in19.0%
*-commutative19.0%
fma-define19.0%
Applied egg-rr19.0%
Taylor expanded in x around inf 89.4%
*-commutative89.4%
Simplified89.4%
if -8.8e11 < x < 5.00000000000000031e-10Initial program 99.7%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
*-commutative99.7%
fma-define99.7%
*-commutative99.7%
fma-define99.7%
*-commutative99.7%
fma-define99.7%
fma-define99.7%
*-commutative99.7%
Simplified99.7%
Taylor expanded in x around 0 64.2%
*-commutative64.2%
Simplified64.2%
Final simplification77.2%
(FPCore (x y z) :precision binary64 (* x 4.16438922228))
double code(double x, double y, double z) {
return x * 4.16438922228;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = x * 4.16438922228d0
end function
public static double code(double x, double y, double z) {
return x * 4.16438922228;
}
def code(x, y, z): return x * 4.16438922228
function code(x, y, z) return Float64(x * 4.16438922228) end
function tmp = code(x, y, z) tmp = x * 4.16438922228; end
code[x_, y_, z_] := N[(x * 4.16438922228), $MachinePrecision]
\begin{array}{l}
\\
x \cdot 4.16438922228
\end{array}
Initial program 58.1%
*-commutative58.1%
distribute-rgt-in58.1%
*-commutative58.1%
fma-define58.1%
Applied egg-rr58.1%
Taylor expanded in x around inf 47.8%
*-commutative47.8%
Simplified47.8%
(FPCore (x y z) :precision binary64 78.6994924154)
double code(double x, double y, double z) {
return 78.6994924154;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = 78.6994924154d0
end function
public static double code(double x, double y, double z) {
return 78.6994924154;
}
def code(x, y, z): return 78.6994924154
function code(x, y, z) return 78.6994924154 end
function tmp = code(x, y, z) tmp = 78.6994924154; end
code[x_, y_, z_] := 78.6994924154
\begin{array}{l}
\\
78.6994924154
\end{array}
Initial program 58.1%
Taylor expanded in x around 0 52.4%
Taylor expanded in x around inf 3.4%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (- (+ (/ y (* x x)) (* 4.16438922228 x)) 110.1139242984811)))
(if (< x -3.326128725870005e+62)
t_0
(if (< x 9.429991714554673e+55)
(*
(/ (- x 2.0) 1.0)
(/
(+
(*
(+
(* (+ (* (+ (* x 4.16438922228) 78.6994924154) x) 137.519416416) x)
y)
x)
z)
(+
(*
(+
(+ (* 263.505074721 x) (+ (* 43.3400022514 (* x x)) (* x (* x x))))
313.399215894)
x)
47.066876606)))
t_0))))
double code(double x, double y, double z) {
double t_0 = ((y / (x * x)) + (4.16438922228 * x)) - 110.1139242984811;
double tmp;
if (x < -3.326128725870005e+62) {
tmp = t_0;
} else if (x < 9.429991714554673e+55) {
tmp = ((x - 2.0) / 1.0) * (((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z) / (((((263.505074721 * x) + ((43.3400022514 * (x * x)) + (x * (x * x)))) + 313.399215894) * x) + 47.066876606));
} else {
tmp = t_0;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = ((y / (x * x)) + (4.16438922228d0 * x)) - 110.1139242984811d0
if (x < (-3.326128725870005d+62)) then
tmp = t_0
else if (x < 9.429991714554673d+55) then
tmp = ((x - 2.0d0) / 1.0d0) * (((((((((x * 4.16438922228d0) + 78.6994924154d0) * x) + 137.519416416d0) * x) + y) * x) + z) / (((((263.505074721d0 * x) + ((43.3400022514d0 * (x * x)) + (x * (x * x)))) + 313.399215894d0) * x) + 47.066876606d0))
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = ((y / (x * x)) + (4.16438922228 * x)) - 110.1139242984811;
double tmp;
if (x < -3.326128725870005e+62) {
tmp = t_0;
} else if (x < 9.429991714554673e+55) {
tmp = ((x - 2.0) / 1.0) * (((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z) / (((((263.505074721 * x) + ((43.3400022514 * (x * x)) + (x * (x * x)))) + 313.399215894) * x) + 47.066876606));
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = ((y / (x * x)) + (4.16438922228 * x)) - 110.1139242984811 tmp = 0 if x < -3.326128725870005e+62: tmp = t_0 elif x < 9.429991714554673e+55: tmp = ((x - 2.0) / 1.0) * (((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z) / (((((263.505074721 * x) + ((43.3400022514 * (x * x)) + (x * (x * x)))) + 313.399215894) * x) + 47.066876606)) else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(Float64(Float64(y / Float64(x * x)) + Float64(4.16438922228 * x)) - 110.1139242984811) tmp = 0.0 if (x < -3.326128725870005e+62) tmp = t_0; elseif (x < 9.429991714554673e+55) tmp = Float64(Float64(Float64(x - 2.0) / 1.0) * Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z) / Float64(Float64(Float64(Float64(Float64(263.505074721 * x) + Float64(Float64(43.3400022514 * Float64(x * x)) + Float64(x * Float64(x * x)))) + 313.399215894) * x) + 47.066876606))); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = ((y / (x * x)) + (4.16438922228 * x)) - 110.1139242984811; tmp = 0.0; if (x < -3.326128725870005e+62) tmp = t_0; elseif (x < 9.429991714554673e+55) tmp = ((x - 2.0) / 1.0) * (((((((((x * 4.16438922228) + 78.6994924154) * x) + 137.519416416) * x) + y) * x) + z) / (((((263.505074721 * x) + ((43.3400022514 * (x * x)) + (x * (x * x)))) + 313.399215894) * x) + 47.066876606)); else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(N[(y / N[(x * x), $MachinePrecision]), $MachinePrecision] + N[(4.16438922228 * x), $MachinePrecision]), $MachinePrecision] - 110.1139242984811), $MachinePrecision]}, If[Less[x, -3.326128725870005e+62], t$95$0, If[Less[x, 9.429991714554673e+55], N[(N[(N[(x - 2.0), $MachinePrecision] / 1.0), $MachinePrecision] * N[(N[(N[(N[(N[(N[(N[(N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision] * x), $MachinePrecision] + 137.519416416), $MachinePrecision] * x), $MachinePrecision] + y), $MachinePrecision] * x), $MachinePrecision] + z), $MachinePrecision] / N[(N[(N[(N[(N[(263.505074721 * x), $MachinePrecision] + N[(N[(43.3400022514 * N[(x * x), $MachinePrecision]), $MachinePrecision] + N[(x * N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 313.399215894), $MachinePrecision] * x), $MachinePrecision] + 47.066876606), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$0]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \left(\frac{y}{x \cdot x} + 4.16438922228 \cdot x\right) - 110.1139242984811\\
\mathbf{if}\;x < -3.326128725870005 \cdot 10^{+62}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x < 9.429991714554673 \cdot 10^{+55}:\\
\;\;\;\;\frac{x - 2}{1} \cdot \frac{\left(\left(\left(x \cdot 4.16438922228 + 78.6994924154\right) \cdot x + 137.519416416\right) \cdot x + y\right) \cdot x + z}{\left(\left(263.505074721 \cdot x + \left(43.3400022514 \cdot \left(x \cdot x\right) + x \cdot \left(x \cdot x\right)\right)\right) + 313.399215894\right) \cdot x + 47.066876606}\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
herbie shell --seed 2024096
(FPCore (x y z)
:name "Numeric.SpecFunctions:logGamma from math-functions-0.1.5.2, C"
:precision binary64
:alt
(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)))