
(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 19 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
(+
y
(*
x
(+ 137.519416416 (* x (+ 78.6994924154 (* x 4.16438922228)))))))))
(if (<= (/ (* (- x 2.0) (+ z t_1)) t_0) 4e+297)
(*
(+ x -2.0)
(+
(/ z t_0)
(/
t_1
(+
47.066876606
(*
x
(+
313.399215894
(* x (+ 263.505074721 (+ (* x 43.3400022514) (pow x 2.0))))))))))
(-
(+ (* x 4.16438922228) (/ (- y 130977.50649958357) (pow x 2.0)))
110.1139242984811))))
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 * (y + (x * (137.519416416 + (x * (78.6994924154 + (x * 4.16438922228))))));
double tmp;
if ((((x - 2.0) * (z + t_1)) / t_0) <= 4e+297) {
tmp = (x + -2.0) * ((z / t_0) + (t_1 / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + ((x * 43.3400022514) + pow(x, 2.0)))))))));
} else {
tmp = ((x * 4.16438922228) + ((y - 130977.50649958357) / pow(x, 2.0))) - 110.1139242984811;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: t_1
real(8) :: tmp
t_0 = 47.066876606d0 + (x * (313.399215894d0 + (x * (263.505074721d0 + (x * (x + 43.3400022514d0))))))
t_1 = x * (y + (x * (137.519416416d0 + (x * (78.6994924154d0 + (x * 4.16438922228d0))))))
if ((((x - 2.0d0) * (z + t_1)) / t_0) <= 4d+297) then
tmp = (x + (-2.0d0)) * ((z / t_0) + (t_1 / (47.066876606d0 + (x * (313.399215894d0 + (x * (263.505074721d0 + ((x * 43.3400022514d0) + (x ** 2.0d0)))))))))
else
tmp = ((x * 4.16438922228d0) + ((y - 130977.50649958357d0) / (x ** 2.0d0))) - 110.1139242984811d0
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 * (y + (x * (137.519416416 + (x * (78.6994924154 + (x * 4.16438922228))))));
double tmp;
if ((((x - 2.0) * (z + t_1)) / t_0) <= 4e+297) {
tmp = (x + -2.0) * ((z / t_0) + (t_1 / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + ((x * 43.3400022514) + Math.pow(x, 2.0)))))))));
} else {
tmp = ((x * 4.16438922228) + ((y - 130977.50649958357) / Math.pow(x, 2.0))) - 110.1139242984811;
}
return tmp;
}
def code(x, y, z): t_0 = 47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514)))))) t_1 = x * (y + (x * (137.519416416 + (x * (78.6994924154 + (x * 4.16438922228)))))) tmp = 0 if (((x - 2.0) * (z + t_1)) / t_0) <= 4e+297: tmp = (x + -2.0) * ((z / t_0) + (t_1 / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + ((x * 43.3400022514) + math.pow(x, 2.0))))))))) else: tmp = ((x * 4.16438922228) + ((y - 130977.50649958357) / math.pow(x, 2.0))) - 110.1139242984811 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(y + Float64(x * Float64(137.519416416 + Float64(x * Float64(78.6994924154 + Float64(x * 4.16438922228))))))) tmp = 0.0 if (Float64(Float64(Float64(x - 2.0) * Float64(z + t_1)) / t_0) <= 4e+297) tmp = Float64(Float64(x + -2.0) * Float64(Float64(z / t_0) + Float64(t_1 / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * Float64(263.505074721 + Float64(Float64(x * 43.3400022514) + (x ^ 2.0)))))))))); else tmp = Float64(Float64(Float64(x * 4.16438922228) + Float64(Float64(y - 130977.50649958357) / (x ^ 2.0))) - 110.1139242984811); 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 * (y + (x * (137.519416416 + (x * (78.6994924154 + (x * 4.16438922228)))))); tmp = 0.0; if ((((x - 2.0) * (z + t_1)) / t_0) <= 4e+297) tmp = (x + -2.0) * ((z / t_0) + (t_1 / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + ((x * 43.3400022514) + (x ^ 2.0))))))))); else tmp = ((x * 4.16438922228) + ((y - 130977.50649958357) / (x ^ 2.0))) - 110.1139242984811; 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[(y + N[(x * N[(137.519416416 + N[(x * N[(78.6994924154 + N[(x * 4.16438922228), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + t$95$1), $MachinePrecision]), $MachinePrecision] / t$95$0), $MachinePrecision], 4e+297], N[(N[(x + -2.0), $MachinePrecision] * N[(N[(z / t$95$0), $MachinePrecision] + N[(t$95$1 / N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * N[(263.505074721 + N[(N[(x * 43.3400022514), $MachinePrecision] + N[Power[x, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(x * 4.16438922228), $MachinePrecision] + N[(N[(y - 130977.50649958357), $MachinePrecision] / N[Power[x, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - 110.1139242984811), $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(y + x \cdot \left(137.519416416 + x \cdot \left(78.6994924154 + x \cdot 4.16438922228\right)\right)\right)\\
\mathbf{if}\;\frac{\left(x - 2\right) \cdot \left(z + t\_1\right)}{t\_0} \leq 4 \cdot 10^{+297}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(\frac{z}{t\_0} + \frac{t\_1}{47.066876606 + x \cdot \left(313.399215894 + x \cdot \left(263.505074721 + \left(x \cdot 43.3400022514 + {x}^{2}\right)\right)\right)}\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x \cdot 4.16438922228 + \frac{y - 130977.50649958357}{{x}^{2}}\right) - 110.1139242984811\\
\end{array}
\end{array}
if (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) < 4.0000000000000001e297Initial program 96.5%
associate-/l*99.0%
sub-neg99.0%
metadata-eval99.0%
*-commutative99.0%
fma-define98.9%
*-commutative98.9%
fma-define98.9%
*-commutative98.9%
fma-define98.9%
fma-define98.9%
*-commutative98.9%
Simplified98.9%
Taylor expanded in z around 0 98.9%
distribute-lft-in98.9%
unpow298.9%
Applied egg-rr98.9%
if 4.0000000000000001e297 < (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) Initial program 0.1%
associate-/l*1.0%
sub-neg1.0%
metadata-eval1.0%
*-commutative1.0%
fma-define1.0%
*-commutative1.0%
fma-define1.0%
*-commutative1.0%
fma-define1.0%
fma-define1.0%
*-commutative1.0%
Simplified1.0%
Taylor expanded in x around -inf 99.2%
Taylor expanded in x around inf 99.2%
*-commutative99.2%
Simplified99.2%
Final simplification99.0%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(+
47.066876606
(*
x
(+
313.399215894
(* x (+ 263.505074721 (* x (+ x 43.3400022514))))))))
(t_1
(*
x
(+
y
(*
x
(+ 137.519416416 (* x (+ 78.6994924154 (* x 4.16438922228)))))))))
(if (<= (/ (* (- x 2.0) (+ z t_1)) t_0) 4e+297)
(* (+ x -2.0) (+ (/ z t_0) (/ t_1 t_0)))
(-
(+ (* x 4.16438922228) (/ (- y 130977.50649958357) (pow x 2.0)))
110.1139242984811))))
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 * (y + (x * (137.519416416 + (x * (78.6994924154 + (x * 4.16438922228))))));
double tmp;
if ((((x - 2.0) * (z + t_1)) / t_0) <= 4e+297) {
tmp = (x + -2.0) * ((z / t_0) + (t_1 / t_0));
} else {
tmp = ((x * 4.16438922228) + ((y - 130977.50649958357) / pow(x, 2.0))) - 110.1139242984811;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: t_1
real(8) :: tmp
t_0 = 47.066876606d0 + (x * (313.399215894d0 + (x * (263.505074721d0 + (x * (x + 43.3400022514d0))))))
t_1 = x * (y + (x * (137.519416416d0 + (x * (78.6994924154d0 + (x * 4.16438922228d0))))))
if ((((x - 2.0d0) * (z + t_1)) / t_0) <= 4d+297) then
tmp = (x + (-2.0d0)) * ((z / t_0) + (t_1 / t_0))
else
tmp = ((x * 4.16438922228d0) + ((y - 130977.50649958357d0) / (x ** 2.0d0))) - 110.1139242984811d0
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 * (y + (x * (137.519416416 + (x * (78.6994924154 + (x * 4.16438922228))))));
double tmp;
if ((((x - 2.0) * (z + t_1)) / t_0) <= 4e+297) {
tmp = (x + -2.0) * ((z / t_0) + (t_1 / t_0));
} else {
tmp = ((x * 4.16438922228) + ((y - 130977.50649958357) / Math.pow(x, 2.0))) - 110.1139242984811;
}
return tmp;
}
def code(x, y, z): t_0 = 47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514)))))) t_1 = x * (y + (x * (137.519416416 + (x * (78.6994924154 + (x * 4.16438922228)))))) tmp = 0 if (((x - 2.0) * (z + t_1)) / t_0) <= 4e+297: tmp = (x + -2.0) * ((z / t_0) + (t_1 / t_0)) else: tmp = ((x * 4.16438922228) + ((y - 130977.50649958357) / math.pow(x, 2.0))) - 110.1139242984811 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(y + Float64(x * Float64(137.519416416 + Float64(x * Float64(78.6994924154 + Float64(x * 4.16438922228))))))) tmp = 0.0 if (Float64(Float64(Float64(x - 2.0) * Float64(z + t_1)) / t_0) <= 4e+297) tmp = Float64(Float64(x + -2.0) * Float64(Float64(z / t_0) + Float64(t_1 / t_0))); else tmp = Float64(Float64(Float64(x * 4.16438922228) + Float64(Float64(y - 130977.50649958357) / (x ^ 2.0))) - 110.1139242984811); 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 * (y + (x * (137.519416416 + (x * (78.6994924154 + (x * 4.16438922228)))))); tmp = 0.0; if ((((x - 2.0) * (z + t_1)) / t_0) <= 4e+297) tmp = (x + -2.0) * ((z / t_0) + (t_1 / t_0)); else tmp = ((x * 4.16438922228) + ((y - 130977.50649958357) / (x ^ 2.0))) - 110.1139242984811; 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[(y + N[(x * N[(137.519416416 + N[(x * N[(78.6994924154 + N[(x * 4.16438922228), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + t$95$1), $MachinePrecision]), $MachinePrecision] / t$95$0), $MachinePrecision], 4e+297], 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[(N[(x * 4.16438922228), $MachinePrecision] + N[(N[(y - 130977.50649958357), $MachinePrecision] / N[Power[x, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - 110.1139242984811), $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(y + x \cdot \left(137.519416416 + x \cdot \left(78.6994924154 + x \cdot 4.16438922228\right)\right)\right)\\
\mathbf{if}\;\frac{\left(x - 2\right) \cdot \left(z + t\_1\right)}{t\_0} \leq 4 \cdot 10^{+297}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(\frac{z}{t\_0} + \frac{t\_1}{t\_0}\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x \cdot 4.16438922228 + \frac{y - 130977.50649958357}{{x}^{2}}\right) - 110.1139242984811\\
\end{array}
\end{array}
if (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) < 4.0000000000000001e297Initial program 96.5%
associate-/l*99.0%
sub-neg99.0%
metadata-eval99.0%
*-commutative99.0%
fma-define98.9%
*-commutative98.9%
fma-define98.9%
*-commutative98.9%
fma-define98.9%
fma-define98.9%
*-commutative98.9%
Simplified98.9%
Taylor expanded in z around 0 98.9%
if 4.0000000000000001e297 < (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) Initial program 0.1%
associate-/l*1.0%
sub-neg1.0%
metadata-eval1.0%
*-commutative1.0%
fma-define1.0%
*-commutative1.0%
fma-define1.0%
*-commutative1.0%
fma-define1.0%
fma-define1.0%
*-commutative1.0%
Simplified1.0%
Taylor expanded in x around -inf 99.2%
Taylor expanded in x around inf 99.2%
*-commutative99.2%
Simplified99.2%
Final simplification99.0%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(*
x
(+
y
(*
x
(+ 137.519416416 (* x (+ 78.6994924154 (* x 4.16438922228))))))))
(t_1
(+
47.066876606
(*
x
(+
313.399215894
(* x (+ 263.505074721 (* x (+ x 43.3400022514))))))))
(t_2 (/ z t_1)))
(if (<= (/ (* (- x 2.0) (+ z t_0)) t_1) 5e+227)
(* (+ x -2.0) (+ t_2 (/ t_0 t_1)))
(* (+ x -2.0) (+ 4.16438922228 t_2)))))
double code(double x, double y, double z) {
double t_0 = x * (y + (x * (137.519416416 + (x * (78.6994924154 + (x * 4.16438922228))))));
double t_1 = 47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514))))));
double t_2 = z / t_1;
double tmp;
if ((((x - 2.0) * (z + t_0)) / t_1) <= 5e+227) {
tmp = (x + -2.0) * (t_2 + (t_0 / t_1));
} else {
tmp = (x + -2.0) * (4.16438922228 + t_2);
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_0 = x * (y + (x * (137.519416416d0 + (x * (78.6994924154d0 + (x * 4.16438922228d0))))))
t_1 = 47.066876606d0 + (x * (313.399215894d0 + (x * (263.505074721d0 + (x * (x + 43.3400022514d0))))))
t_2 = z / t_1
if ((((x - 2.0d0) * (z + t_0)) / t_1) <= 5d+227) then
tmp = (x + (-2.0d0)) * (t_2 + (t_0 / t_1))
else
tmp = (x + (-2.0d0)) * (4.16438922228d0 + t_2)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = x * (y + (x * (137.519416416 + (x * (78.6994924154 + (x * 4.16438922228))))));
double t_1 = 47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514))))));
double t_2 = z / t_1;
double tmp;
if ((((x - 2.0) * (z + t_0)) / t_1) <= 5e+227) {
tmp = (x + -2.0) * (t_2 + (t_0 / t_1));
} else {
tmp = (x + -2.0) * (4.16438922228 + t_2);
}
return tmp;
}
def code(x, y, z): t_0 = x * (y + (x * (137.519416416 + (x * (78.6994924154 + (x * 4.16438922228)))))) t_1 = 47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514)))))) t_2 = z / t_1 tmp = 0 if (((x - 2.0) * (z + t_0)) / t_1) <= 5e+227: tmp = (x + -2.0) * (t_2 + (t_0 / t_1)) else: tmp = (x + -2.0) * (4.16438922228 + t_2) return tmp
function code(x, y, z) t_0 = Float64(x * Float64(y + Float64(x * Float64(137.519416416 + Float64(x * Float64(78.6994924154 + Float64(x * 4.16438922228))))))) t_1 = Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * Float64(263.505074721 + Float64(x * Float64(x + 43.3400022514))))))) t_2 = Float64(z / t_1) tmp = 0.0 if (Float64(Float64(Float64(x - 2.0) * Float64(z + t_0)) / t_1) <= 5e+227) tmp = Float64(Float64(x + -2.0) * Float64(t_2 + Float64(t_0 / t_1))); else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + t_2)); end return tmp end
function tmp_2 = code(x, y, z) t_0 = x * (y + (x * (137.519416416 + (x * (78.6994924154 + (x * 4.16438922228)))))); t_1 = 47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514)))))); t_2 = z / t_1; tmp = 0.0; if ((((x - 2.0) * (z + t_0)) / t_1) <= 5e+227) tmp = (x + -2.0) * (t_2 + (t_0 / t_1)); else tmp = (x + -2.0) * (4.16438922228 + t_2); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(x * N[(y + N[(x * N[(137.519416416 + N[(x * N[(78.6994924154 + N[(x * 4.16438922228), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = 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$2 = N[(z / t$95$1), $MachinePrecision]}, If[LessEqual[N[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + t$95$0), $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision], 5e+227], N[(N[(x + -2.0), $MachinePrecision] * N[(t$95$2 + N[(t$95$0 / t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + t$95$2), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(y + x \cdot \left(137.519416416 + x \cdot \left(78.6994924154 + x \cdot 4.16438922228\right)\right)\right)\\
t_1 := 47.066876606 + x \cdot \left(313.399215894 + x \cdot \left(263.505074721 + x \cdot \left(x + 43.3400022514\right)\right)\right)\\
t_2 := \frac{z}{t\_1}\\
\mathbf{if}\;\frac{\left(x - 2\right) \cdot \left(z + t\_0\right)}{t\_1} \leq 5 \cdot 10^{+227}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(t\_2 + \frac{t\_0}{t\_1}\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + t\_2\right)\\
\end{array}
\end{array}
if (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) < 4.9999999999999996e227Initial program 96.4%
associate-/l*98.9%
sub-neg98.9%
metadata-eval98.9%
*-commutative98.9%
fma-define98.9%
*-commutative98.9%
fma-define98.9%
*-commutative98.9%
fma-define98.9%
fma-define98.9%
*-commutative98.9%
Simplified98.9%
Taylor expanded in z around 0 98.9%
if 4.9999999999999996e227 < (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) Initial program 4.8%
associate-/l*5.7%
sub-neg5.7%
metadata-eval5.7%
*-commutative5.7%
fma-define5.7%
*-commutative5.7%
fma-define5.7%
*-commutative5.7%
fma-define5.7%
fma-define5.7%
*-commutative5.7%
Simplified5.7%
Taylor expanded in z around 0 5.7%
Taylor expanded in x around inf 98.4%
Final simplification98.7%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(+
47.066876606
(*
x
(+
313.399215894
(* x (+ 263.505074721 (* x (+ x 43.3400022514))))))))
(t_1
(/
(*
(- x 2.0)
(+
z
(*
x
(+
y
(*
x
(+
137.519416416
(* x (+ 78.6994924154 (* x 4.16438922228)))))))))
t_0)))
(if (<= t_1 5e+227) t_1 (* (+ x -2.0) (+ 4.16438922228 (/ z t_0))))))
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 - 2.0) * (z + (x * (y + (x * (137.519416416 + (x * (78.6994924154 + (x * 4.16438922228))))))))) / t_0;
double tmp;
if (t_1 <= 5e+227) {
tmp = t_1;
} else {
tmp = (x + -2.0) * (4.16438922228 + (z / t_0));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: t_1
real(8) :: tmp
t_0 = 47.066876606d0 + (x * (313.399215894d0 + (x * (263.505074721d0 + (x * (x + 43.3400022514d0))))))
t_1 = ((x - 2.0d0) * (z + (x * (y + (x * (137.519416416d0 + (x * (78.6994924154d0 + (x * 4.16438922228d0))))))))) / t_0
if (t_1 <= 5d+227) then
tmp = t_1
else
tmp = (x + (-2.0d0)) * (4.16438922228d0 + (z / t_0))
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 - 2.0) * (z + (x * (y + (x * (137.519416416 + (x * (78.6994924154 + (x * 4.16438922228))))))))) / t_0;
double tmp;
if (t_1 <= 5e+227) {
tmp = t_1;
} else {
tmp = (x + -2.0) * (4.16438922228 + (z / t_0));
}
return tmp;
}
def code(x, y, z): t_0 = 47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514)))))) t_1 = ((x - 2.0) * (z + (x * (y + (x * (137.519416416 + (x * (78.6994924154 + (x * 4.16438922228))))))))) / t_0 tmp = 0 if t_1 <= 5e+227: tmp = t_1 else: tmp = (x + -2.0) * (4.16438922228 + (z / t_0)) 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(Float64(Float64(x - 2.0) * Float64(z + Float64(x * Float64(y + Float64(x * Float64(137.519416416 + Float64(x * Float64(78.6994924154 + Float64(x * 4.16438922228))))))))) / t_0) tmp = 0.0 if (t_1 <= 5e+227) tmp = t_1; else tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(z / t_0))); 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 - 2.0) * (z + (x * (y + (x * (137.519416416 + (x * (78.6994924154 + (x * 4.16438922228))))))))) / t_0; tmp = 0.0; if (t_1 <= 5e+227) tmp = t_1; else tmp = (x + -2.0) * (4.16438922228 + (z / t_0)); 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[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + N[(x * N[(y + N[(x * N[(137.519416416 + N[(x * N[(78.6994924154 + N[(x * 4.16438922228), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t$95$0), $MachinePrecision]}, If[LessEqual[t$95$1, 5e+227], t$95$1, N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(z / t$95$0), $MachinePrecision]), $MachinePrecision]), $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 := \frac{\left(x - 2\right) \cdot \left(z + x \cdot \left(y + x \cdot \left(137.519416416 + x \cdot \left(78.6994924154 + x \cdot 4.16438922228\right)\right)\right)\right)}{t\_0}\\
\mathbf{if}\;t\_1 \leq 5 \cdot 10^{+227}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{z}{t\_0}\right)\\
\end{array}
\end{array}
if (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) < 4.9999999999999996e227Initial program 96.4%
if 4.9999999999999996e227 < (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) Initial program 4.8%
associate-/l*5.7%
sub-neg5.7%
metadata-eval5.7%
*-commutative5.7%
fma-define5.7%
*-commutative5.7%
fma-define5.7%
*-commutative5.7%
fma-define5.7%
fma-define5.7%
*-commutative5.7%
Simplified5.7%
Taylor expanded in z around 0 5.7%
Taylor expanded in x around inf 98.4%
Final simplification97.2%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(+
47.066876606
(*
x
(+
313.399215894
(* x (+ 263.505074721 (* x (+ x 43.3400022514)))))))))
(if (<= x -1.8e+18)
(* (+ x -2.0) (+ 4.16438922228 (/ z t_0)))
(if (<= x 9e+31)
(/ (* (- x 2.0) (+ z (* x (+ y (* x 137.519416416))))) t_0)
(* x 4.16438922228)))))
double code(double x, double y, double z) {
double t_0 = 47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514))))));
double tmp;
if (x <= -1.8e+18) {
tmp = (x + -2.0) * (4.16438922228 + (z / t_0));
} else if (x <= 9e+31) {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / t_0;
} 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 = 47.066876606d0 + (x * (313.399215894d0 + (x * (263.505074721d0 + (x * (x + 43.3400022514d0))))))
if (x <= (-1.8d+18)) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + (z / t_0))
else if (x <= 9d+31) then
tmp = ((x - 2.0d0) * (z + (x * (y + (x * 137.519416416d0))))) / t_0
else
tmp = x * 4.16438922228d0
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 tmp;
if (x <= -1.8e+18) {
tmp = (x + -2.0) * (4.16438922228 + (z / t_0));
} else if (x <= 9e+31) {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / t_0;
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
def code(x, y, z): t_0 = 47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514)))))) tmp = 0 if x <= -1.8e+18: tmp = (x + -2.0) * (4.16438922228 + (z / t_0)) elif x <= 9e+31: tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / t_0 else: tmp = x * 4.16438922228 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))))))) tmp = 0.0 if (x <= -1.8e+18) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(z / t_0))); elseif (x <= 9e+31) tmp = Float64(Float64(Float64(x - 2.0) * Float64(z + Float64(x * Float64(y + Float64(x * 137.519416416))))) / t_0); else tmp = Float64(x * 4.16438922228); 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)))))); tmp = 0.0; if (x <= -1.8e+18) tmp = (x + -2.0) * (4.16438922228 + (z / t_0)); elseif (x <= 9e+31) tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / t_0; else tmp = x * 4.16438922228; 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]}, If[LessEqual[x, -1.8e+18], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(z / t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 9e+31], N[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + N[(x * N[(y + N[(x * 137.519416416), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t$95$0), $MachinePrecision], N[(x * 4.16438922228), $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)\\
\mathbf{if}\;x \leq -1.8 \cdot 10^{+18}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{z}{t\_0}\right)\\
\mathbf{elif}\;x \leq 9 \cdot 10^{+31}:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot \left(y + x \cdot 137.519416416\right)\right)}{t\_0}\\
\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228\\
\end{array}
\end{array}
if x < -1.8e18Initial program 9.6%
associate-/l*12.6%
sub-neg12.6%
metadata-eval12.6%
*-commutative12.6%
fma-define12.6%
*-commutative12.6%
fma-define12.6%
*-commutative12.6%
fma-define12.6%
fma-define12.6%
*-commutative12.6%
Simplified12.6%
Taylor expanded in z around 0 12.6%
Taylor expanded in x around inf 97.8%
if -1.8e18 < x < 8.9999999999999992e31Initial program 98.3%
Taylor expanded in x around 0 95.8%
*-commutative95.8%
Simplified95.8%
if 8.9999999999999992e31 < x Initial program 4.3%
associate-/l*8.2%
sub-neg8.2%
metadata-eval8.2%
*-commutative8.2%
fma-define8.2%
*-commutative8.2%
fma-define8.2%
*-commutative8.2%
fma-define8.2%
fma-define8.2%
*-commutative8.2%
Simplified8.2%
Taylor expanded in z around 0 8.2%
Taylor expanded in x around inf 97.0%
Taylor expanded in x around inf 97.0%
Final simplification96.5%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(/
z
(+
47.066876606
(*
x
(+
313.399215894
(* x (+ 263.505074721 (* x (+ x 43.3400022514))))))))))
(if (or (<= x -780000.0) (not (<= x 0.0064)))
(* (+ x -2.0) (+ 4.16438922228 t_0))
(* (+ x -2.0) (+ t_0 (* y (* x 0.0212463641547976)))))))
double code(double x, double y, double z) {
double t_0 = z / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514)))))));
double tmp;
if ((x <= -780000.0) || !(x <= 0.0064)) {
tmp = (x + -2.0) * (4.16438922228 + t_0);
} else {
tmp = (x + -2.0) * (t_0 + (y * (x * 0.0212463641547976)));
}
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 = z / (47.066876606d0 + (x * (313.399215894d0 + (x * (263.505074721d0 + (x * (x + 43.3400022514d0)))))))
if ((x <= (-780000.0d0)) .or. (.not. (x <= 0.0064d0))) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + t_0)
else
tmp = (x + (-2.0d0)) * (t_0 + (y * (x * 0.0212463641547976d0)))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = z / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514)))))));
double tmp;
if ((x <= -780000.0) || !(x <= 0.0064)) {
tmp = (x + -2.0) * (4.16438922228 + t_0);
} else {
tmp = (x + -2.0) * (t_0 + (y * (x * 0.0212463641547976)));
}
return tmp;
}
def code(x, y, z): t_0 = z / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514))))))) tmp = 0 if (x <= -780000.0) or not (x <= 0.0064): tmp = (x + -2.0) * (4.16438922228 + t_0) else: tmp = (x + -2.0) * (t_0 + (y * (x * 0.0212463641547976))) return tmp
function code(x, y, z) t_0 = Float64(z / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * Float64(263.505074721 + Float64(x * Float64(x + 43.3400022514)))))))) tmp = 0.0 if ((x <= -780000.0) || !(x <= 0.0064)) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + t_0)); else tmp = Float64(Float64(x + -2.0) * Float64(t_0 + Float64(y * Float64(x * 0.0212463641547976)))); end return tmp end
function tmp_2 = code(x, y, z) t_0 = z / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514))))))); tmp = 0.0; if ((x <= -780000.0) || ~((x <= 0.0064))) tmp = (x + -2.0) * (4.16438922228 + t_0); else tmp = (x + -2.0) * (t_0 + (y * (x * 0.0212463641547976))); end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(z / 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[Or[LessEqual[x, -780000.0], N[Not[LessEqual[x, 0.0064]], $MachinePrecision]], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + t$95$0), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(t$95$0 + N[(y * N[(x * 0.0212463641547976), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{z}{47.066876606 + x \cdot \left(313.399215894 + x \cdot \left(263.505074721 + x \cdot \left(x + 43.3400022514\right)\right)\right)}\\
\mathbf{if}\;x \leq -780000 \lor \neg \left(x \leq 0.0064\right):\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + t\_0\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(t\_0 + y \cdot \left(x \cdot 0.0212463641547976\right)\right)\\
\end{array}
\end{array}
if x < -7.8e5 or 0.00640000000000000031 < x Initial program 14.7%
associate-/l*18.6%
sub-neg18.6%
metadata-eval18.6%
*-commutative18.6%
fma-define18.6%
*-commutative18.6%
fma-define18.6%
*-commutative18.6%
fma-define18.6%
fma-define18.6%
*-commutative18.6%
Simplified18.6%
Taylor expanded in z around 0 18.6%
Taylor expanded in x around inf 92.8%
if -7.8e5 < x < 0.00640000000000000031Initial program 99.7%
associate-/l*99.6%
sub-neg99.6%
metadata-eval99.6%
*-commutative99.6%
fma-define99.6%
*-commutative99.6%
fma-define99.6%
*-commutative99.6%
fma-define99.6%
fma-define99.6%
*-commutative99.6%
Simplified99.6%
Taylor expanded in z around 0 99.6%
Taylor expanded in x around 0 92.4%
associate-*r*92.4%
Simplified92.4%
Final simplification92.6%
(FPCore (x y z)
:precision binary64
(if (or (<= x -2.4e-5) (not (<= x 0.0009)))
(*
(+ x -2.0)
(+
4.16438922228
(/
z
(+
47.066876606
(*
x
(+
313.399215894
(* x (+ 263.505074721 (* x (+ x 43.3400022514))))))))))
(*
(+ x -2.0)
(+
(* z 0.0212463641547976)
(* x (- (* y 0.0212463641547976) (* z 0.14147091005106402)))))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -2.4e-5) || !(x <= 0.0009)) {
tmp = (x + -2.0) * (4.16438922228 + (z / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514)))))))));
} else {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402))));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((x <= (-2.4d-5)) .or. (.not. (x <= 0.0009d0))) then
tmp = (x + (-2.0d0)) * (4.16438922228d0 + (z / (47.066876606d0 + (x * (313.399215894d0 + (x * (263.505074721d0 + (x * (x + 43.3400022514d0)))))))))
else
tmp = (x + (-2.0d0)) * ((z * 0.0212463641547976d0) + (x * ((y * 0.0212463641547976d0) - (z * 0.14147091005106402d0))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -2.4e-5) || !(x <= 0.0009)) {
tmp = (x + -2.0) * (4.16438922228 + (z / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514)))))))));
} else {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402))));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -2.4e-5) or not (x <= 0.0009): tmp = (x + -2.0) * (4.16438922228 + (z / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514))))))))) else: tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402)))) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -2.4e-5) || !(x <= 0.0009)) tmp = Float64(Float64(x + -2.0) * Float64(4.16438922228 + Float64(z / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * Float64(263.505074721 + Float64(x * Float64(x + 43.3400022514)))))))))); else tmp = Float64(Float64(x + -2.0) * Float64(Float64(z * 0.0212463641547976) + Float64(x * Float64(Float64(y * 0.0212463641547976) - Float64(z * 0.14147091005106402))))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -2.4e-5) || ~((x <= 0.0009))) tmp = (x + -2.0) * (4.16438922228 + (z / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514))))))))); else tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402)))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -2.4e-5], N[Not[LessEqual[x, 0.0009]], $MachinePrecision]], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 + N[(z / 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]), $MachinePrecision]), $MachinePrecision], 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]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2.4 \cdot 10^{-5} \lor \neg \left(x \leq 0.0009\right):\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 + \frac{z}{47.066876606 + x \cdot \left(313.399215894 + x \cdot \left(263.505074721 + x \cdot \left(x + 43.3400022514\right)\right)\right)}\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976 + x \cdot \left(y \cdot 0.0212463641547976 - z \cdot 0.14147091005106402\right)\right)\\
\end{array}
\end{array}
if x < -2.4000000000000001e-5 or 8.9999999999999998e-4 < x Initial program 18.0%
associate-/l*21.7%
sub-neg21.7%
metadata-eval21.7%
*-commutative21.7%
fma-define21.7%
*-commutative21.7%
fma-define21.7%
*-commutative21.7%
fma-define21.7%
fma-define21.7%
*-commutative21.7%
Simplified21.7%
Taylor expanded in z around 0 21.7%
Taylor expanded in x around inf 90.9%
if -2.4000000000000001e-5 < x < 8.9999999999999998e-4Initial program 99.8%
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 94.0%
Final simplification92.4%
(FPCore (x y z)
:precision binary64
(if (<= x -780000.0)
(- (* x 4.16438922228) 110.1139242984811)
(if (<= x 46.0)
(*
(+ x -2.0)
(+
(* z 0.0212463641547976)
(* x (- (* y 0.0212463641547976) (* z 0.14147091005106402)))))
(-
(+ (* x 4.16438922228) (* 3655.1204654076414 (/ 1.0 x)))
110.1139242984811))))
double code(double x, double y, double z) {
double tmp;
if (x <= -780000.0) {
tmp = (x * 4.16438922228) - 110.1139242984811;
} else if (x <= 46.0) {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402))));
} else {
tmp = ((x * 4.16438922228) + (3655.1204654076414 * (1.0 / x))) - 110.1139242984811;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-780000.0d0)) then
tmp = (x * 4.16438922228d0) - 110.1139242984811d0
else if (x <= 46.0d0) then
tmp = (x + (-2.0d0)) * ((z * 0.0212463641547976d0) + (x * ((y * 0.0212463641547976d0) - (z * 0.14147091005106402d0))))
else
tmp = ((x * 4.16438922228d0) + (3655.1204654076414d0 * (1.0d0 / x))) - 110.1139242984811d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -780000.0) {
tmp = (x * 4.16438922228) - 110.1139242984811;
} else if (x <= 46.0) {
tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402))));
} else {
tmp = ((x * 4.16438922228) + (3655.1204654076414 * (1.0 / x))) - 110.1139242984811;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -780000.0: tmp = (x * 4.16438922228) - 110.1139242984811 elif x <= 46.0: tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402)))) else: tmp = ((x * 4.16438922228) + (3655.1204654076414 * (1.0 / x))) - 110.1139242984811 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -780000.0) tmp = Float64(Float64(x * 4.16438922228) - 110.1139242984811); elseif (x <= 46.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(Float64(x * 4.16438922228) + Float64(3655.1204654076414 * Float64(1.0 / x))) - 110.1139242984811); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -780000.0) tmp = (x * 4.16438922228) - 110.1139242984811; elseif (x <= 46.0) tmp = (x + -2.0) * ((z * 0.0212463641547976) + (x * ((y * 0.0212463641547976) - (z * 0.14147091005106402)))); else tmp = ((x * 4.16438922228) + (3655.1204654076414 * (1.0 / x))) - 110.1139242984811; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -780000.0], N[(N[(x * 4.16438922228), $MachinePrecision] - 110.1139242984811), $MachinePrecision], If[LessEqual[x, 46.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[(N[(x * 4.16438922228), $MachinePrecision] + N[(3655.1204654076414 * N[(1.0 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - 110.1139242984811), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -780000:\\
\;\;\;\;x \cdot 4.16438922228 - 110.1139242984811\\
\mathbf{elif}\;x \leq 46:\\
\;\;\;\;\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}:\\
\;\;\;\;\left(x \cdot 4.16438922228 + 3655.1204654076414 \cdot \frac{1}{x}\right) - 110.1139242984811\\
\end{array}
\end{array}
if x < -7.8e5Initial program 12.3%
associate-/l*15.3%
sub-neg15.3%
metadata-eval15.3%
*-commutative15.3%
fma-define15.3%
*-commutative15.3%
fma-define15.3%
*-commutative15.3%
fma-define15.3%
fma-define15.3%
*-commutative15.3%
Simplified15.3%
Taylor expanded in x around inf 92.8%
if -7.8e5 < x < 46Initial program 99.7%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
*-commutative99.7%
fma-define99.6%
*-commutative99.6%
fma-define99.6%
*-commutative99.6%
fma-define99.6%
fma-define99.6%
*-commutative99.6%
Simplified99.6%
Taylor expanded in x around 0 90.3%
if 46 < x Initial program 16.0%
associate-/l*20.9%
sub-neg20.9%
metadata-eval20.9%
*-commutative20.9%
fma-define20.9%
*-commutative20.9%
fma-define20.9%
*-commutative20.9%
fma-define20.9%
fma-define20.9%
*-commutative20.9%
Simplified20.9%
Taylor expanded in x around inf 86.5%
Final simplification90.1%
(FPCore (x y z)
:precision binary64
(if (<= x -780000.0)
(- (* x 4.16438922228) 110.1139242984811)
(if (<= x 28000.0)
(+
(* z -0.0424927283095952)
(* x (- (* y -0.0424927283095952) (* z -0.28294182010212804))))
(-
(+ (* x 4.16438922228) (* 3655.1204654076414 (/ 1.0 x)))
110.1139242984811))))
double code(double x, double y, double z) {
double tmp;
if (x <= -780000.0) {
tmp = (x * 4.16438922228) - 110.1139242984811;
} else if (x <= 28000.0) {
tmp = (z * -0.0424927283095952) + (x * ((y * -0.0424927283095952) - (z * -0.28294182010212804)));
} else {
tmp = ((x * 4.16438922228) + (3655.1204654076414 * (1.0 / x))) - 110.1139242984811;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-780000.0d0)) then
tmp = (x * 4.16438922228d0) - 110.1139242984811d0
else if (x <= 28000.0d0) then
tmp = (z * (-0.0424927283095952d0)) + (x * ((y * (-0.0424927283095952d0)) - (z * (-0.28294182010212804d0))))
else
tmp = ((x * 4.16438922228d0) + (3655.1204654076414d0 * (1.0d0 / x))) - 110.1139242984811d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -780000.0) {
tmp = (x * 4.16438922228) - 110.1139242984811;
} else if (x <= 28000.0) {
tmp = (z * -0.0424927283095952) + (x * ((y * -0.0424927283095952) - (z * -0.28294182010212804)));
} else {
tmp = ((x * 4.16438922228) + (3655.1204654076414 * (1.0 / x))) - 110.1139242984811;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -780000.0: tmp = (x * 4.16438922228) - 110.1139242984811 elif x <= 28000.0: tmp = (z * -0.0424927283095952) + (x * ((y * -0.0424927283095952) - (z * -0.28294182010212804))) else: tmp = ((x * 4.16438922228) + (3655.1204654076414 * (1.0 / x))) - 110.1139242984811 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -780000.0) tmp = Float64(Float64(x * 4.16438922228) - 110.1139242984811); elseif (x <= 28000.0) tmp = Float64(Float64(z * -0.0424927283095952) + Float64(x * Float64(Float64(y * -0.0424927283095952) - Float64(z * -0.28294182010212804)))); else tmp = Float64(Float64(Float64(x * 4.16438922228) + Float64(3655.1204654076414 * Float64(1.0 / x))) - 110.1139242984811); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -780000.0) tmp = (x * 4.16438922228) - 110.1139242984811; elseif (x <= 28000.0) tmp = (z * -0.0424927283095952) + (x * ((y * -0.0424927283095952) - (z * -0.28294182010212804))); else tmp = ((x * 4.16438922228) + (3655.1204654076414 * (1.0 / x))) - 110.1139242984811; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -780000.0], N[(N[(x * 4.16438922228), $MachinePrecision] - 110.1139242984811), $MachinePrecision], If[LessEqual[x, 28000.0], N[(N[(z * -0.0424927283095952), $MachinePrecision] + N[(x * N[(N[(y * -0.0424927283095952), $MachinePrecision] - N[(z * -0.28294182010212804), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(x * 4.16438922228), $MachinePrecision] + N[(3655.1204654076414 * N[(1.0 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - 110.1139242984811), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -780000:\\
\;\;\;\;x \cdot 4.16438922228 - 110.1139242984811\\
\mathbf{elif}\;x \leq 28000:\\
\;\;\;\;z \cdot -0.0424927283095952 + x \cdot \left(y \cdot -0.0424927283095952 - z \cdot -0.28294182010212804\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x \cdot 4.16438922228 + 3655.1204654076414 \cdot \frac{1}{x}\right) - 110.1139242984811\\
\end{array}
\end{array}
if x < -7.8e5Initial program 12.3%
associate-/l*15.3%
sub-neg15.3%
metadata-eval15.3%
*-commutative15.3%
fma-define15.3%
*-commutative15.3%
fma-define15.3%
*-commutative15.3%
fma-define15.3%
fma-define15.3%
*-commutative15.3%
Simplified15.3%
Taylor expanded in x around inf 92.8%
if -7.8e5 < x < 28000Initial program 99.7%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
*-commutative99.7%
fma-define99.6%
*-commutative99.6%
fma-define99.6%
*-commutative99.6%
fma-define99.6%
fma-define99.6%
*-commutative99.6%
Simplified99.6%
Taylor expanded in x around 0 89.0%
Taylor expanded in z around 0 89.7%
if 28000 < x Initial program 14.6%
associate-/l*19.5%
sub-neg19.5%
metadata-eval19.5%
*-commutative19.5%
fma-define19.5%
*-commutative19.5%
fma-define19.5%
*-commutative19.5%
fma-define19.5%
fma-define19.5%
*-commutative19.5%
Simplified19.5%
Taylor expanded in x around inf 88.0%
Final simplification90.1%
(FPCore (x y z)
:precision binary64
(if (<= x -860000.0)
(- (* x 4.16438922228) 110.1139242984811)
(if (<= x 2.0)
(+ (* z -0.0424927283095952) (* y (* x -0.0424927283095952)))
(-
(+ (* x 4.16438922228) (* 3655.1204654076414 (/ 1.0 x)))
110.1139242984811))))
double code(double x, double y, double z) {
double tmp;
if (x <= -860000.0) {
tmp = (x * 4.16438922228) - 110.1139242984811;
} else if (x <= 2.0) {
tmp = (z * -0.0424927283095952) + (y * (x * -0.0424927283095952));
} else {
tmp = ((x * 4.16438922228) + (3655.1204654076414 * (1.0 / x))) - 110.1139242984811;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-860000.0d0)) then
tmp = (x * 4.16438922228d0) - 110.1139242984811d0
else if (x <= 2.0d0) then
tmp = (z * (-0.0424927283095952d0)) + (y * (x * (-0.0424927283095952d0)))
else
tmp = ((x * 4.16438922228d0) + (3655.1204654076414d0 * (1.0d0 / x))) - 110.1139242984811d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -860000.0) {
tmp = (x * 4.16438922228) - 110.1139242984811;
} else if (x <= 2.0) {
tmp = (z * -0.0424927283095952) + (y * (x * -0.0424927283095952));
} else {
tmp = ((x * 4.16438922228) + (3655.1204654076414 * (1.0 / x))) - 110.1139242984811;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -860000.0: tmp = (x * 4.16438922228) - 110.1139242984811 elif x <= 2.0: tmp = (z * -0.0424927283095952) + (y * (x * -0.0424927283095952)) else: tmp = ((x * 4.16438922228) + (3655.1204654076414 * (1.0 / x))) - 110.1139242984811 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -860000.0) tmp = Float64(Float64(x * 4.16438922228) - 110.1139242984811); elseif (x <= 2.0) tmp = Float64(Float64(z * -0.0424927283095952) + Float64(y * Float64(x * -0.0424927283095952))); else tmp = Float64(Float64(Float64(x * 4.16438922228) + Float64(3655.1204654076414 * Float64(1.0 / x))) - 110.1139242984811); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -860000.0) tmp = (x * 4.16438922228) - 110.1139242984811; elseif (x <= 2.0) tmp = (z * -0.0424927283095952) + (y * (x * -0.0424927283095952)); else tmp = ((x * 4.16438922228) + (3655.1204654076414 * (1.0 / x))) - 110.1139242984811; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -860000.0], N[(N[(x * 4.16438922228), $MachinePrecision] - 110.1139242984811), $MachinePrecision], If[LessEqual[x, 2.0], N[(N[(z * -0.0424927283095952), $MachinePrecision] + N[(y * N[(x * -0.0424927283095952), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(x * 4.16438922228), $MachinePrecision] + N[(3655.1204654076414 * N[(1.0 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - 110.1139242984811), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -860000:\\
\;\;\;\;x \cdot 4.16438922228 - 110.1139242984811\\
\mathbf{elif}\;x \leq 2:\\
\;\;\;\;z \cdot -0.0424927283095952 + y \cdot \left(x \cdot -0.0424927283095952\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x \cdot 4.16438922228 + 3655.1204654076414 \cdot \frac{1}{x}\right) - 110.1139242984811\\
\end{array}
\end{array}
if x < -8.6e5Initial program 12.3%
associate-/l*15.3%
sub-neg15.3%
metadata-eval15.3%
*-commutative15.3%
fma-define15.3%
*-commutative15.3%
fma-define15.3%
*-commutative15.3%
fma-define15.3%
fma-define15.3%
*-commutative15.3%
Simplified15.3%
Taylor expanded in x around inf 92.8%
if -8.6e5 < x < 2Initial program 99.7%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
*-commutative99.7%
fma-define99.6%
*-commutative99.6%
fma-define99.6%
*-commutative99.6%
fma-define99.6%
fma-define99.6%
*-commutative99.6%
Simplified99.6%
Taylor expanded in x around 0 89.6%
Taylor expanded in z around 0 90.3%
Taylor expanded in y around inf 90.2%
associate-*r*90.2%
Simplified90.2%
if 2 < x Initial program 16.0%
associate-/l*20.9%
sub-neg20.9%
metadata-eval20.9%
*-commutative20.9%
fma-define20.9%
*-commutative20.9%
fma-define20.9%
*-commutative20.9%
fma-define20.9%
fma-define20.9%
*-commutative20.9%
Simplified20.9%
Taylor expanded in x around inf 86.5%
Final simplification90.1%
(FPCore (x y z)
:precision binary64
(if (<= x -780000.0)
(- (* x 4.16438922228) 110.1139242984811)
(if (<= x 75000.0)
(* (+ x -2.0) (* z 0.0212463641547976))
(* (+ x -2.0) (- 4.16438922228 (/ 101.7851458539211 x))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -780000.0) {
tmp = (x * 4.16438922228) - 110.1139242984811;
} else if (x <= 75000.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) :: tmp
if (x <= (-780000.0d0)) then
tmp = (x * 4.16438922228d0) - 110.1139242984811d0
else if (x <= 75000.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 tmp;
if (x <= -780000.0) {
tmp = (x * 4.16438922228) - 110.1139242984811;
} else if (x <= 75000.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): tmp = 0 if x <= -780000.0: tmp = (x * 4.16438922228) - 110.1139242984811 elif x <= 75000.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) tmp = 0.0 if (x <= -780000.0) tmp = Float64(Float64(x * 4.16438922228) - 110.1139242984811); elseif (x <= 75000.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) tmp = 0.0; if (x <= -780000.0) tmp = (x * 4.16438922228) - 110.1139242984811; elseif (x <= 75000.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_] := If[LessEqual[x, -780000.0], N[(N[(x * 4.16438922228), $MachinePrecision] - 110.1139242984811), $MachinePrecision], If[LessEqual[x, 75000.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}
\mathbf{if}\;x \leq -780000:\\
\;\;\;\;x \cdot 4.16438922228 - 110.1139242984811\\
\mathbf{elif}\;x \leq 75000:\\
\;\;\;\;\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 < -7.8e5Initial program 12.3%
associate-/l*15.3%
sub-neg15.3%
metadata-eval15.3%
*-commutative15.3%
fma-define15.3%
*-commutative15.3%
fma-define15.3%
*-commutative15.3%
fma-define15.3%
fma-define15.3%
*-commutative15.3%
Simplified15.3%
Taylor expanded in x around inf 92.8%
if -7.8e5 < x < 75000Initial program 99.7%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
*-commutative99.7%
fma-define99.6%
*-commutative99.6%
fma-define99.6%
*-commutative99.6%
fma-define99.6%
fma-define99.6%
*-commutative99.6%
Simplified99.6%
Taylor expanded in x around 0 57.1%
if 75000 < x Initial program 14.6%
associate-/l*19.5%
sub-neg19.5%
metadata-eval19.5%
*-commutative19.5%
fma-define19.5%
*-commutative19.5%
fma-define19.5%
*-commutative19.5%
fma-define19.5%
fma-define19.5%
*-commutative19.5%
Simplified19.5%
Taylor expanded in x around inf 87.7%
associate-*r/87.7%
metadata-eval87.7%
Simplified87.7%
Final simplification72.9%
(FPCore (x y z)
:precision binary64
(if (<= x -780000.0)
(- (* x 4.16438922228) 110.1139242984811)
(if (<= x 3.2)
(+ (* z -0.0424927283095952) (* -0.0424927283095952 (* x y)))
(* (+ x -2.0) (- 4.16438922228 (/ 101.7851458539211 x))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -780000.0) {
tmp = (x * 4.16438922228) - 110.1139242984811;
} else if (x <= 3.2) {
tmp = (z * -0.0424927283095952) + (-0.0424927283095952 * (x * y));
} 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) :: tmp
if (x <= (-780000.0d0)) then
tmp = (x * 4.16438922228d0) - 110.1139242984811d0
else if (x <= 3.2d0) then
tmp = (z * (-0.0424927283095952d0)) + ((-0.0424927283095952d0) * (x * y))
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 tmp;
if (x <= -780000.0) {
tmp = (x * 4.16438922228) - 110.1139242984811;
} else if (x <= 3.2) {
tmp = (z * -0.0424927283095952) + (-0.0424927283095952 * (x * y));
} else {
tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -780000.0: tmp = (x * 4.16438922228) - 110.1139242984811 elif x <= 3.2: tmp = (z * -0.0424927283095952) + (-0.0424927283095952 * (x * y)) else: tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -780000.0) tmp = Float64(Float64(x * 4.16438922228) - 110.1139242984811); elseif (x <= 3.2) tmp = Float64(Float64(z * -0.0424927283095952) + Float64(-0.0424927283095952 * Float64(x * y))); 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) tmp = 0.0; if (x <= -780000.0) tmp = (x * 4.16438922228) - 110.1139242984811; elseif (x <= 3.2) tmp = (z * -0.0424927283095952) + (-0.0424927283095952 * (x * y)); else tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -780000.0], N[(N[(x * 4.16438922228), $MachinePrecision] - 110.1139242984811), $MachinePrecision], If[LessEqual[x, 3.2], N[(N[(z * -0.0424927283095952), $MachinePrecision] + N[(-0.0424927283095952 * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 - N[(101.7851458539211 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -780000:\\
\;\;\;\;x \cdot 4.16438922228 - 110.1139242984811\\
\mathbf{elif}\;x \leq 3.2:\\
\;\;\;\;z \cdot -0.0424927283095952 + -0.0424927283095952 \cdot \left(x \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211}{x}\right)\\
\end{array}
\end{array}
if x < -7.8e5Initial program 12.3%
associate-/l*15.3%
sub-neg15.3%
metadata-eval15.3%
*-commutative15.3%
fma-define15.3%
*-commutative15.3%
fma-define15.3%
*-commutative15.3%
fma-define15.3%
fma-define15.3%
*-commutative15.3%
Simplified15.3%
Taylor expanded in x around inf 92.8%
if -7.8e5 < x < 3.2000000000000002Initial program 99.7%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
*-commutative99.7%
fma-define99.6%
*-commutative99.6%
fma-define99.6%
*-commutative99.6%
fma-define99.6%
fma-define99.6%
*-commutative99.6%
Simplified99.6%
Taylor expanded in x around 0 89.6%
Taylor expanded in z around 0 90.2%
if 3.2000000000000002 < x Initial program 16.0%
associate-/l*20.9%
sub-neg20.9%
metadata-eval20.9%
*-commutative20.9%
fma-define20.9%
*-commutative20.9%
fma-define20.9%
*-commutative20.9%
fma-define20.9%
fma-define20.9%
*-commutative20.9%
Simplified20.9%
Taylor expanded in x around inf 86.2%
associate-*r/86.2%
metadata-eval86.2%
Simplified86.2%
Final simplification90.0%
(FPCore (x y z)
:precision binary64
(if (<= x -1450000.0)
(- (* x 4.16438922228) 110.1139242984811)
(if (<= x 5.2)
(+ (* z -0.0424927283095952) (* y (* x -0.0424927283095952)))
(* (+ x -2.0) (- 4.16438922228 (/ 101.7851458539211 x))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -1450000.0) {
tmp = (x * 4.16438922228) - 110.1139242984811;
} else if (x <= 5.2) {
tmp = (z * -0.0424927283095952) + (y * (x * -0.0424927283095952));
} 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) :: tmp
if (x <= (-1450000.0d0)) then
tmp = (x * 4.16438922228d0) - 110.1139242984811d0
else if (x <= 5.2d0) then
tmp = (z * (-0.0424927283095952d0)) + (y * (x * (-0.0424927283095952d0)))
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 tmp;
if (x <= -1450000.0) {
tmp = (x * 4.16438922228) - 110.1139242984811;
} else if (x <= 5.2) {
tmp = (z * -0.0424927283095952) + (y * (x * -0.0424927283095952));
} else {
tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x));
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -1450000.0: tmp = (x * 4.16438922228) - 110.1139242984811 elif x <= 5.2: tmp = (z * -0.0424927283095952) + (y * (x * -0.0424927283095952)) else: tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x)) return tmp
function code(x, y, z) tmp = 0.0 if (x <= -1450000.0) tmp = Float64(Float64(x * 4.16438922228) - 110.1139242984811); elseif (x <= 5.2) tmp = Float64(Float64(z * -0.0424927283095952) + Float64(y * Float64(x * -0.0424927283095952))); 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) tmp = 0.0; if (x <= -1450000.0) tmp = (x * 4.16438922228) - 110.1139242984811; elseif (x <= 5.2) tmp = (z * -0.0424927283095952) + (y * (x * -0.0424927283095952)); else tmp = (x + -2.0) * (4.16438922228 - (101.7851458539211 / x)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -1450000.0], N[(N[(x * 4.16438922228), $MachinePrecision] - 110.1139242984811), $MachinePrecision], If[LessEqual[x, 5.2], N[(N[(z * -0.0424927283095952), $MachinePrecision] + N[(y * N[(x * -0.0424927283095952), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(4.16438922228 - N[(101.7851458539211 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1450000:\\
\;\;\;\;x \cdot 4.16438922228 - 110.1139242984811\\
\mathbf{elif}\;x \leq 5.2:\\
\;\;\;\;z \cdot -0.0424927283095952 + y \cdot \left(x \cdot -0.0424927283095952\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(4.16438922228 - \frac{101.7851458539211}{x}\right)\\
\end{array}
\end{array}
if x < -1.45e6Initial program 12.3%
associate-/l*15.3%
sub-neg15.3%
metadata-eval15.3%
*-commutative15.3%
fma-define15.3%
*-commutative15.3%
fma-define15.3%
*-commutative15.3%
fma-define15.3%
fma-define15.3%
*-commutative15.3%
Simplified15.3%
Taylor expanded in x around inf 92.8%
if -1.45e6 < x < 5.20000000000000018Initial program 99.7%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
*-commutative99.7%
fma-define99.6%
*-commutative99.6%
fma-define99.6%
*-commutative99.6%
fma-define99.6%
fma-define99.6%
*-commutative99.6%
Simplified99.6%
Taylor expanded in x around 0 89.6%
Taylor expanded in z around 0 90.3%
Taylor expanded in y around inf 90.2%
associate-*r*90.2%
Simplified90.2%
if 5.20000000000000018 < x Initial program 16.0%
associate-/l*20.9%
sub-neg20.9%
metadata-eval20.9%
*-commutative20.9%
fma-define20.9%
*-commutative20.9%
fma-define20.9%
*-commutative20.9%
fma-define20.9%
fma-define20.9%
*-commutative20.9%
Simplified20.9%
Taylor expanded in x around inf 86.2%
associate-*r/86.2%
metadata-eval86.2%
Simplified86.2%
Final simplification90.0%
(FPCore (x y z) :precision binary64 (if (or (<= x -780000.0) (not (<= x 28000.0))) (- (* x 4.16438922228) 110.1139242984811) (* (+ x -2.0) (* z 0.0212463641547976))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -780000.0) || !(x <= 28000.0)) {
tmp = (x * 4.16438922228) - 110.1139242984811;
} else {
tmp = (x + -2.0) * (z * 0.0212463641547976);
}
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 <= (-780000.0d0)) .or. (.not. (x <= 28000.0d0))) then
tmp = (x * 4.16438922228d0) - 110.1139242984811d0
else
tmp = (x + (-2.0d0)) * (z * 0.0212463641547976d0)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -780000.0) || !(x <= 28000.0)) {
tmp = (x * 4.16438922228) - 110.1139242984811;
} else {
tmp = (x + -2.0) * (z * 0.0212463641547976);
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -780000.0) or not (x <= 28000.0): tmp = (x * 4.16438922228) - 110.1139242984811 else: tmp = (x + -2.0) * (z * 0.0212463641547976) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -780000.0) || !(x <= 28000.0)) tmp = Float64(Float64(x * 4.16438922228) - 110.1139242984811); else tmp = Float64(Float64(x + -2.0) * Float64(z * 0.0212463641547976)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -780000.0) || ~((x <= 28000.0))) tmp = (x * 4.16438922228) - 110.1139242984811; else tmp = (x + -2.0) * (z * 0.0212463641547976); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -780000.0], N[Not[LessEqual[x, 28000.0]], $MachinePrecision]], N[(N[(x * 4.16438922228), $MachinePrecision] - 110.1139242984811), $MachinePrecision], N[(N[(x + -2.0), $MachinePrecision] * N[(z * 0.0212463641547976), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -780000 \lor \neg \left(x \leq 28000\right):\\
\;\;\;\;x \cdot 4.16438922228 - 110.1139242984811\\
\mathbf{else}:\\
\;\;\;\;\left(x + -2\right) \cdot \left(z \cdot 0.0212463641547976\right)\\
\end{array}
\end{array}
if x < -7.8e5 or 28000 < x Initial program 13.3%
associate-/l*17.2%
sub-neg17.2%
metadata-eval17.2%
*-commutative17.2%
fma-define17.2%
*-commutative17.2%
fma-define17.2%
*-commutative17.2%
fma-define17.2%
fma-define17.2%
*-commutative17.2%
Simplified17.2%
Taylor expanded in x around inf 90.4%
if -7.8e5 < x < 28000Initial program 99.7%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
*-commutative99.7%
fma-define99.6%
*-commutative99.6%
fma-define99.6%
*-commutative99.6%
fma-define99.6%
fma-define99.6%
*-commutative99.6%
Simplified99.6%
Taylor expanded in x around 0 57.1%
Final simplification72.9%
(FPCore (x y z) :precision binary64 (if (or (<= x -780000.0) (not (<= x 2.0))) (* 4.16438922228 (+ x -2.0)) (* z -0.0424927283095952)))
double code(double x, double y, double z) {
double tmp;
if ((x <= -780000.0) || !(x <= 2.0)) {
tmp = 4.16438922228 * (x + -2.0);
} 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 <= (-780000.0d0)) .or. (.not. (x <= 2.0d0))) then
tmp = 4.16438922228d0 * (x + (-2.0d0))
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 <= -780000.0) || !(x <= 2.0)) {
tmp = 4.16438922228 * (x + -2.0);
} else {
tmp = z * -0.0424927283095952;
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -780000.0) or not (x <= 2.0): tmp = 4.16438922228 * (x + -2.0) else: tmp = z * -0.0424927283095952 return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -780000.0) || !(x <= 2.0)) tmp = Float64(4.16438922228 * Float64(x + -2.0)); else tmp = Float64(z * -0.0424927283095952); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -780000.0) || ~((x <= 2.0))) tmp = 4.16438922228 * (x + -2.0); else tmp = z * -0.0424927283095952; end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -780000.0], N[Not[LessEqual[x, 2.0]], $MachinePrecision]], N[(4.16438922228 * N[(x + -2.0), $MachinePrecision]), $MachinePrecision], N[(z * -0.0424927283095952), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -780000 \lor \neg \left(x \leq 2\right):\\
\;\;\;\;4.16438922228 \cdot \left(x + -2\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\end{array}
\end{array}
if x < -7.8e5 or 2 < x Initial program 14.0%
associate-/l*17.9%
sub-neg17.9%
metadata-eval17.9%
*-commutative17.9%
fma-define17.9%
*-commutative17.9%
fma-define17.9%
*-commutative17.9%
fma-define17.9%
fma-define17.9%
*-commutative17.9%
Simplified17.9%
Taylor expanded in x around inf 89.3%
if -7.8e5 < x < 2Initial program 99.7%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
*-commutative99.7%
fma-define99.6%
*-commutative99.6%
fma-define99.6%
*-commutative99.6%
fma-define99.6%
fma-define99.6%
*-commutative99.6%
Simplified99.6%
Taylor expanded in x around 0 57.5%
*-commutative57.5%
Simplified57.5%
Final simplification72.6%
(FPCore (x y z) :precision binary64 (if (or (<= x -780000.0) (not (<= x 5.5))) (- (* x 4.16438922228) 110.1139242984811) (* z -0.0424927283095952)))
double code(double x, double y, double z) {
double tmp;
if ((x <= -780000.0) || !(x <= 5.5)) {
tmp = (x * 4.16438922228) - 110.1139242984811;
} 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 <= (-780000.0d0)) .or. (.not. (x <= 5.5d0))) then
tmp = (x * 4.16438922228d0) - 110.1139242984811d0
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 <= -780000.0) || !(x <= 5.5)) {
tmp = (x * 4.16438922228) - 110.1139242984811;
} else {
tmp = z * -0.0424927283095952;
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -780000.0) or not (x <= 5.5): tmp = (x * 4.16438922228) - 110.1139242984811 else: tmp = z * -0.0424927283095952 return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -780000.0) || !(x <= 5.5)) tmp = Float64(Float64(x * 4.16438922228) - 110.1139242984811); else tmp = Float64(z * -0.0424927283095952); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -780000.0) || ~((x <= 5.5))) tmp = (x * 4.16438922228) - 110.1139242984811; else tmp = z * -0.0424927283095952; end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -780000.0], N[Not[LessEqual[x, 5.5]], $MachinePrecision]], N[(N[(x * 4.16438922228), $MachinePrecision] - 110.1139242984811), $MachinePrecision], N[(z * -0.0424927283095952), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -780000 \lor \neg \left(x \leq 5.5\right):\\
\;\;\;\;x \cdot 4.16438922228 - 110.1139242984811\\
\mathbf{else}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\end{array}
\end{array}
if x < -7.8e5 or 5.5 < x Initial program 14.0%
associate-/l*17.9%
sub-neg17.9%
metadata-eval17.9%
*-commutative17.9%
fma-define17.9%
*-commutative17.9%
fma-define17.9%
*-commutative17.9%
fma-define17.9%
fma-define17.9%
*-commutative17.9%
Simplified17.9%
Taylor expanded in x around inf 89.7%
if -7.8e5 < x < 5.5Initial program 99.7%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
*-commutative99.7%
fma-define99.6%
*-commutative99.6%
fma-define99.6%
*-commutative99.6%
fma-define99.6%
fma-define99.6%
*-commutative99.6%
Simplified99.6%
Taylor expanded in x around 0 57.5%
*-commutative57.5%
Simplified57.5%
Final simplification72.8%
(FPCore (x y z) :precision binary64 (if (or (<= x -106000000.0) (not (<= x 2.0))) (* x 4.16438922228) (* z -0.0424927283095952)))
double code(double x, double y, double z) {
double tmp;
if ((x <= -106000000.0) || !(x <= 2.0)) {
tmp = x * 4.16438922228;
} else {
tmp = z * -0.0424927283095952;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((x <= (-106000000.0d0)) .or. (.not. (x <= 2.0d0))) then
tmp = x * 4.16438922228d0
else
tmp = z * (-0.0424927283095952d0)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -106000000.0) || !(x <= 2.0)) {
tmp = x * 4.16438922228;
} else {
tmp = z * -0.0424927283095952;
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -106000000.0) or not (x <= 2.0): tmp = x * 4.16438922228 else: tmp = z * -0.0424927283095952 return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -106000000.0) || !(x <= 2.0)) tmp = Float64(x * 4.16438922228); else tmp = Float64(z * -0.0424927283095952); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -106000000.0) || ~((x <= 2.0))) tmp = x * 4.16438922228; else tmp = z * -0.0424927283095952; end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -106000000.0], N[Not[LessEqual[x, 2.0]], $MachinePrecision]], N[(x * 4.16438922228), $MachinePrecision], N[(z * -0.0424927283095952), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -106000000 \lor \neg \left(x \leq 2\right):\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{else}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\end{array}
\end{array}
if x < -1.06e8 or 2 < x Initial program 14.0%
associate-/l*17.9%
sub-neg17.9%
metadata-eval17.9%
*-commutative17.9%
fma-define17.9%
*-commutative17.9%
fma-define17.9%
*-commutative17.9%
fma-define17.9%
fma-define17.9%
*-commutative17.9%
Simplified17.9%
Taylor expanded in z around 0 17.9%
Taylor expanded in x around inf 92.8%
Taylor expanded in x around inf 89.3%
if -1.06e8 < x < 2Initial program 99.7%
associate-/l*99.7%
sub-neg99.7%
metadata-eval99.7%
*-commutative99.7%
fma-define99.6%
*-commutative99.6%
fma-define99.6%
*-commutative99.6%
fma-define99.6%
fma-define99.6%
*-commutative99.6%
Simplified99.6%
Taylor expanded in x around 0 57.5%
*-commutative57.5%
Simplified57.5%
Final simplification72.6%
(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.9%
associate-/l*60.7%
sub-neg60.7%
metadata-eval60.7%
*-commutative60.7%
fma-define60.7%
*-commutative60.7%
fma-define60.7%
*-commutative60.7%
fma-define60.7%
fma-define60.7%
*-commutative60.7%
Simplified60.7%
Taylor expanded in z around 0 60.7%
Taylor expanded in x around inf 66.6%
Taylor expanded in x around inf 44.4%
Final simplification44.4%
(FPCore (x y z) :precision binary64 -8.32877844456)
double code(double x, double y, double z) {
return -8.32877844456;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = -8.32877844456d0
end function
public static double code(double x, double y, double z) {
return -8.32877844456;
}
def code(x, y, z): return -8.32877844456
function code(x, y, z) return -8.32877844456 end
function tmp = code(x, y, z) tmp = -8.32877844456; end
code[x_, y_, z_] := -8.32877844456
\begin{array}{l}
\\
-8.32877844456
\end{array}
Initial program 58.9%
associate-/l*60.7%
sub-neg60.7%
metadata-eval60.7%
*-commutative60.7%
fma-define60.7%
*-commutative60.7%
fma-define60.7%
*-commutative60.7%
fma-define60.7%
fma-define60.7%
*-commutative60.7%
Simplified60.7%
Taylor expanded in x around inf 44.5%
Taylor expanded in x around 0 3.4%
Final simplification3.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 2024046
(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)))