
(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)))))))))
(if (or (<= x -3.4e+49) (not (<= x 1.8e+27)))
(-
(+
(/ (- y 130977.50649958357) (pow x 2.0))
(+ (* x 4.16438922228) (* 3655.1204654076414 (/ 1.0 x))))
110.1139242984811)
(-
(/ (* (- x 2.0) z) t_0)
(/
(*
x
(*
(+
y
(* x (+ 137.519416416 (* x (+ (* x 4.16438922228) 78.6994924154)))))
(- 2.0 x)))
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 tmp;
if ((x <= -3.4e+49) || !(x <= 1.8e+27)) {
tmp = (((y - 130977.50649958357) / pow(x, 2.0)) + ((x * 4.16438922228) + (3655.1204654076414 * (1.0 / x)))) - 110.1139242984811;
} else {
tmp = (((x - 2.0) * z) / t_0) - ((x * ((y + (x * (137.519416416 + (x * ((x * 4.16438922228) + 78.6994924154))))) * (2.0 - x))) / 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 = 47.066876606d0 + (x * (313.399215894d0 + (x * (263.505074721d0 + (x * (x + 43.3400022514d0))))))
if ((x <= (-3.4d+49)) .or. (.not. (x <= 1.8d+27))) then
tmp = (((y - 130977.50649958357d0) / (x ** 2.0d0)) + ((x * 4.16438922228d0) + (3655.1204654076414d0 * (1.0d0 / x)))) - 110.1139242984811d0
else
tmp = (((x - 2.0d0) * z) / t_0) - ((x * ((y + (x * (137.519416416d0 + (x * ((x * 4.16438922228d0) + 78.6994924154d0))))) * (2.0d0 - x))) / 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 tmp;
if ((x <= -3.4e+49) || !(x <= 1.8e+27)) {
tmp = (((y - 130977.50649958357) / Math.pow(x, 2.0)) + ((x * 4.16438922228) + (3655.1204654076414 * (1.0 / x)))) - 110.1139242984811;
} else {
tmp = (((x - 2.0) * z) / t_0) - ((x * ((y + (x * (137.519416416 + (x * ((x * 4.16438922228) + 78.6994924154))))) * (2.0 - x))) / t_0);
}
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 <= -3.4e+49) or not (x <= 1.8e+27): tmp = (((y - 130977.50649958357) / math.pow(x, 2.0)) + ((x * 4.16438922228) + (3655.1204654076414 * (1.0 / x)))) - 110.1139242984811 else: tmp = (((x - 2.0) * z) / t_0) - ((x * ((y + (x * (137.519416416 + (x * ((x * 4.16438922228) + 78.6994924154))))) * (2.0 - x))) / 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))))))) tmp = 0.0 if ((x <= -3.4e+49) || !(x <= 1.8e+27)) tmp = Float64(Float64(Float64(Float64(y - 130977.50649958357) / (x ^ 2.0)) + Float64(Float64(x * 4.16438922228) + Float64(3655.1204654076414 * Float64(1.0 / x)))) - 110.1139242984811); else tmp = Float64(Float64(Float64(Float64(x - 2.0) * z) / t_0) - Float64(Float64(x * Float64(Float64(y + Float64(x * Float64(137.519416416 + Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154))))) * Float64(2.0 - x))) / 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)))))); tmp = 0.0; if ((x <= -3.4e+49) || ~((x <= 1.8e+27))) tmp = (((y - 130977.50649958357) / (x ^ 2.0)) + ((x * 4.16438922228) + (3655.1204654076414 * (1.0 / x)))) - 110.1139242984811; else tmp = (((x - 2.0) * z) / t_0) - ((x * ((y + (x * (137.519416416 + (x * ((x * 4.16438922228) + 78.6994924154))))) * (2.0 - x))) / 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]}, If[Or[LessEqual[x, -3.4e+49], N[Not[LessEqual[x, 1.8e+27]], $MachinePrecision]], N[(N[(N[(N[(y - 130977.50649958357), $MachinePrecision] / N[Power[x, 2.0], $MachinePrecision]), $MachinePrecision] + N[(N[(x * 4.16438922228), $MachinePrecision] + N[(3655.1204654076414 * N[(1.0 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - 110.1139242984811), $MachinePrecision], N[(N[(N[(N[(x - 2.0), $MachinePrecision] * z), $MachinePrecision] / t$95$0), $MachinePrecision] - N[(N[(x * N[(N[(y + N[(x * N[(137.519416416 + N[(x * N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(2.0 - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t$95$0), $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)\\
\mathbf{if}\;x \leq -3.4 \cdot 10^{+49} \lor \neg \left(x \leq 1.8 \cdot 10^{+27}\right):\\
\;\;\;\;\left(\frac{y - 130977.50649958357}{{x}^{2}} + \left(x \cdot 4.16438922228 + 3655.1204654076414 \cdot \frac{1}{x}\right)\right) - 110.1139242984811\\
\mathbf{else}:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot z}{t_0} - \frac{x \cdot \left(\left(y + x \cdot \left(137.519416416 + x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right)\right)\right) \cdot \left(2 - x\right)\right)}{t_0}\\
\end{array}
\end{array}
if x < -3.4000000000000001e49 or 1.79999999999999991e27 < x Initial program 5.1%
Simplified7.8%
Taylor expanded in x around -inf 99.0%
if -3.4000000000000001e49 < x < 1.79999999999999991e27Initial program 99.6%
Simplified99.4%
Taylor expanded in z around inf 99.6%
Final simplification99.4%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(+
47.066876606
(*
x
(+
313.399215894
(* x (+ 263.505074721 (* x (+ x 43.3400022514))))))))
(t_1
(+
y
(*
x
(+ 137.519416416 (* x (+ (* x 4.16438922228) 78.6994924154)))))))
(if (<= (/ (* (- x 2.0) (+ z (* x t_1))) t_0) 2e+306)
(- (/ (* (- x 2.0) z) t_0) (/ (* x (* t_1 (- 2.0 x))) 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 = y + (x * (137.519416416 + (x * ((x * 4.16438922228) + 78.6994924154))));
double tmp;
if ((((x - 2.0) * (z + (x * t_1))) / t_0) <= 2e+306) {
tmp = (((x - 2.0) * z) / t_0) - ((x * (t_1 * (2.0 - x))) / 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 = y + (x * (137.519416416d0 + (x * ((x * 4.16438922228d0) + 78.6994924154d0))))
if ((((x - 2.0d0) * (z + (x * t_1))) / t_0) <= 2d+306) then
tmp = (((x - 2.0d0) * z) / t_0) - ((x * (t_1 * (2.0d0 - x))) / 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 = y + (x * (137.519416416 + (x * ((x * 4.16438922228) + 78.6994924154))));
double tmp;
if ((((x - 2.0) * (z + (x * t_1))) / t_0) <= 2e+306) {
tmp = (((x - 2.0) * z) / t_0) - ((x * (t_1 * (2.0 - x))) / 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 = y + (x * (137.519416416 + (x * ((x * 4.16438922228) + 78.6994924154)))) tmp = 0 if (((x - 2.0) * (z + (x * t_1))) / t_0) <= 2e+306: tmp = (((x - 2.0) * z) / t_0) - ((x * (t_1 * (2.0 - x))) / 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(y + Float64(x * Float64(137.519416416 + Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154))))) tmp = 0.0 if (Float64(Float64(Float64(x - 2.0) * Float64(z + Float64(x * t_1))) / t_0) <= 2e+306) tmp = Float64(Float64(Float64(Float64(x - 2.0) * z) / t_0) - Float64(Float64(x * Float64(t_1 * Float64(2.0 - x))) / 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 = y + (x * (137.519416416 + (x * ((x * 4.16438922228) + 78.6994924154)))); tmp = 0.0; if ((((x - 2.0) * (z + (x * t_1))) / t_0) <= 2e+306) tmp = (((x - 2.0) * z) / t_0) - ((x * (t_1 * (2.0 - x))) / 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[(y + N[(x * N[(137.519416416 + N[(x * N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + N[(x * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t$95$0), $MachinePrecision], 2e+306], N[(N[(N[(N[(x - 2.0), $MachinePrecision] * z), $MachinePrecision] / t$95$0), $MachinePrecision] - N[(N[(x * N[(t$95$1 * N[(2.0 - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t$95$0), $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 := y + x \cdot \left(137.519416416 + x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right)\right)\\
\mathbf{if}\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot t_1\right)}{t_0} \leq 2 \cdot 10^{+306}:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot z}{t_0} - \frac{x \cdot \left(t_1 \cdot \left(2 - x\right)\right)}{t_0}\\
\mathbf{else}:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718}\\
\end{array}
\end{array}
if (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) < 2.00000000000000003e306Initial program 96.6%
Simplified97.0%
Taylor expanded in z around inf 96.6%
if 2.00000000000000003e306 < (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) Initial program 0.1%
associate-/l*2.2%
sub-neg2.2%
metadata-eval2.2%
fma-def2.2%
fma-def2.2%
fma-def2.2%
fma-def2.2%
fma-def2.2%
fma-def2.2%
fma-def2.2%
Simplified2.2%
Taylor expanded in x around inf 97.0%
Final simplification96.8%
(FPCore (x y z)
:precision binary64
(let* ((t_0
(/
(*
(- x 2.0)
(+
z
(*
x
(+
y
(*
x
(+
137.519416416
(* x (+ (* x 4.16438922228) 78.6994924154))))))))
(+
47.066876606
(*
x
(+
313.399215894
(* x (+ 263.505074721 (* x (+ x 43.3400022514))))))))))
(if (<= t_0 2e+306) t_0 (/ (+ x -2.0) 0.24013125253755718))))
double code(double x, double y, double z) {
double t_0 = ((x - 2.0) * (z + (x * (y + (x * (137.519416416 + (x * ((x * 4.16438922228) + 78.6994924154)))))))) / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514)))))));
double tmp;
if (t_0 <= 2e+306) {
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) * (z + (x * (y + (x * (137.519416416d0 + (x * ((x * 4.16438922228d0) + 78.6994924154d0)))))))) / (47.066876606d0 + (x * (313.399215894d0 + (x * (263.505074721d0 + (x * (x + 43.3400022514d0)))))))
if (t_0 <= 2d+306) 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) * (z + (x * (y + (x * (137.519416416 + (x * ((x * 4.16438922228) + 78.6994924154)))))))) / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514)))))));
double tmp;
if (t_0 <= 2e+306) {
tmp = t_0;
} else {
tmp = (x + -2.0) / 0.24013125253755718;
}
return tmp;
}
def code(x, y, z): t_0 = ((x - 2.0) * (z + (x * (y + (x * (137.519416416 + (x * ((x * 4.16438922228) + 78.6994924154)))))))) / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514))))))) tmp = 0 if t_0 <= 2e+306: 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(z + Float64(x * Float64(y + Float64(x * Float64(137.519416416 + Float64(x * Float64(Float64(x * 4.16438922228) + 78.6994924154)))))))) / 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 <= 2e+306) 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) * (z + (x * (y + (x * (137.519416416 + (x * ((x * 4.16438922228) + 78.6994924154)))))))) / (47.066876606 + (x * (313.399215894 + (x * (263.505074721 + (x * (x + 43.3400022514))))))); tmp = 0.0; if (t_0 <= 2e+306) 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[(z + N[(x * N[(y + N[(x * N[(137.519416416 + N[(x * N[(N[(x * 4.16438922228), $MachinePrecision] + 78.6994924154), $MachinePrecision]), $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]}, If[LessEqual[t$95$0, 2e+306], 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(z + x \cdot \left(y + x \cdot \left(137.519416416 + x \cdot \left(x \cdot 4.16438922228 + 78.6994924154\right)\right)\right)\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 2 \cdot 10^{+306}:\\
\;\;\;\;t_0\\
\mathbf{else}:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718}\\
\end{array}
\end{array}
if (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) < 2.00000000000000003e306Initial program 96.6%
if 2.00000000000000003e306 < (/.f64 (*.f64 (-.f64 x 2) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x 104109730557/25000000000) 393497462077/5000000000) x) 4297481763/31250000) x) y) x) z)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 x 216700011257/5000000000) x) 263505074721/1000000000) x) 156699607947/500000000) x) 23533438303/500000000)) Initial program 0.1%
associate-/l*2.2%
sub-neg2.2%
metadata-eval2.2%
fma-def2.2%
fma-def2.2%
fma-def2.2%
fma-def2.2%
fma-def2.2%
fma-def2.2%
fma-def2.2%
Simplified2.2%
Taylor expanded in x around inf 97.0%
Final simplification96.8%
(FPCore (x y z)
:precision binary64
(if (or (<= x -2.6e+31) (not (<= x 9.5e+28)))
(/ (+ x -2.0) 0.24013125253755718)
(/
(* (- 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 <= -2.6e+31) || !(x <= 9.5e+28)) {
tmp = (x + -2.0) / 0.24013125253755718;
} 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 <= (-2.6d+31)) .or. (.not. (x <= 9.5d+28))) then
tmp = (x + (-2.0d0)) / 0.24013125253755718d0
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 <= -2.6e+31) || !(x <= 9.5e+28)) {
tmp = (x + -2.0) / 0.24013125253755718;
} 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 <= -2.6e+31) or not (x <= 9.5e+28): tmp = (x + -2.0) / 0.24013125253755718 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 <= -2.6e+31) || !(x <= 9.5e+28)) tmp = Float64(Float64(x + -2.0) / 0.24013125253755718); else tmp = Float64(Float64(Float64(x - 2.0) * Float64(z + Float64(x * Float64(y + Float64(x * 137.519416416))))) / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * Float64(263.505074721 + Float64(x * Float64(x + 43.3400022514)))))))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -2.6e+31) || ~((x <= 9.5e+28))) tmp = (x + -2.0) / 0.24013125253755718; 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, -2.6e+31], N[Not[LessEqual[x, 9.5e+28]], $MachinePrecision]], N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision], N[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + N[(x * N[(y + N[(x * 137.519416416), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * N[(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 -2.6 \cdot 10^{+31} \lor \neg \left(x \leq 9.5 \cdot 10^{+28}\right):\\
\;\;\;\;\frac{x + -2}{0.24013125253755718}\\
\mathbf{else}:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot \left(y + x \cdot 137.519416416\right)\right)}{47.066876606 + x \cdot \left(313.399215894 + x \cdot \left(263.505074721 + x \cdot \left(x + 43.3400022514\right)\right)\right)}\\
\end{array}
\end{array}
if x < -2.6e31 or 9.49999999999999927e28 < x Initial program 7.7%
associate-/l*10.4%
sub-neg10.4%
metadata-eval10.4%
fma-def10.4%
fma-def10.4%
fma-def10.4%
fma-def10.4%
fma-def10.4%
fma-def10.4%
fma-def10.4%
Simplified10.4%
Taylor expanded in x around inf 93.5%
if -2.6e31 < x < 9.49999999999999927e28Initial program 99.6%
Taylor expanded in x around 0 97.2%
*-commutative92.9%
Simplified97.2%
Final simplification95.7%
(FPCore (x y z)
:precision binary64
(if (or (<= x -14.6) (not (<= x 122.0)))
(/ (+ x -2.0) (+ 0.24013125253755718 (/ 5.86923874282773 x)))
(/
(* (- x 2.0) (+ z (* x (+ y (* x 137.519416416)))))
(+ 47.066876606 (* x (+ 313.399215894 (* x 263.505074721)))))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -14.6) || !(x <= 122.0)) {
tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x));
} else {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((x <= (-14.6d0)) .or. (.not. (x <= 122.0d0))) then
tmp = (x + (-2.0d0)) / (0.24013125253755718d0 + (5.86923874282773d0 / x))
else
tmp = ((x - 2.0d0) * (z + (x * (y + (x * 137.519416416d0))))) / (47.066876606d0 + (x * (313.399215894d0 + (x * 263.505074721d0))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -14.6) || !(x <= 122.0)) {
tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x));
} else {
tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -14.6) or not (x <= 122.0): tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x)) else: tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721)))) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -14.6) || !(x <= 122.0)) tmp = Float64(Float64(x + -2.0) / Float64(0.24013125253755718 + Float64(5.86923874282773 / x))); else tmp = Float64(Float64(Float64(x - 2.0) * Float64(z + Float64(x * Float64(y + Float64(x * 137.519416416))))) / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * 263.505074721))))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -14.6) || ~((x <= 122.0))) tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x)); else tmp = ((x - 2.0) * (z + (x * (y + (x * 137.519416416))))) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721)))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -14.6], N[Not[LessEqual[x, 122.0]], $MachinePrecision]], N[(N[(x + -2.0), $MachinePrecision] / N[(0.24013125253755718 + N[(5.86923874282773 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(x - 2.0), $MachinePrecision] * N[(z + N[(x * N[(y + N[(x * 137.519416416), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * 263.505074721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -14.6 \lor \neg \left(x \leq 122\right):\\
\;\;\;\;\frac{x + -2}{0.24013125253755718 + \frac{5.86923874282773}{x}}\\
\mathbf{else}:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot \left(z + x \cdot \left(y + x \cdot 137.519416416\right)\right)}{47.066876606 + x \cdot \left(313.399215894 + x \cdot 263.505074721\right)}\\
\end{array}
\end{array}
if x < -14.5999999999999996 or 122 < x Initial program 16.2%
associate-/l*18.6%
sub-neg18.6%
metadata-eval18.6%
fma-def18.6%
fma-def18.7%
fma-def18.7%
fma-def18.7%
fma-def18.7%
fma-def18.6%
fma-def18.6%
Simplified18.6%
Taylor expanded in x around inf 87.6%
associate-*r/87.6%
metadata-eval87.6%
Simplified87.6%
if -14.5999999999999996 < x < 122Initial program 99.6%
Taylor expanded in x around 0 99.5%
*-commutative99.5%
Simplified99.5%
Taylor expanded in x around 0 99.4%
*-commutative99.4%
Simplified99.4%
Final simplification94.0%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (/ (+ x -2.0) (+ 0.24013125253755718 (/ 5.86923874282773 x)))))
(if (<= x -36.0)
t_0
(if (<= x 9e-164)
(/ (+ (* z -2.0) (* x z)) (+ 47.066876606 (* x 313.399215894)))
(if (<= x 1.7e-106)
(* x (* y -0.0424927283095952))
(if (<= x 42.0)
(/
(* (- x 2.0) z)
(+ 47.066876606 (* x (+ 313.399215894 (* x 263.505074721)))))
t_0))))))
double code(double x, double y, double z) {
double t_0 = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x));
double tmp;
if (x <= -36.0) {
tmp = t_0;
} else if (x <= 9e-164) {
tmp = ((z * -2.0) + (x * z)) / (47.066876606 + (x * 313.399215894));
} else if (x <= 1.7e-106) {
tmp = x * (y * -0.0424927283095952);
} else if (x <= 42.0) {
tmp = ((x - 2.0) * z) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))));
} else {
tmp = t_0;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = (x + (-2.0d0)) / (0.24013125253755718d0 + (5.86923874282773d0 / x))
if (x <= (-36.0d0)) then
tmp = t_0
else if (x <= 9d-164) then
tmp = ((z * (-2.0d0)) + (x * z)) / (47.066876606d0 + (x * 313.399215894d0))
else if (x <= 1.7d-106) then
tmp = x * (y * (-0.0424927283095952d0))
else if (x <= 42.0d0) then
tmp = ((x - 2.0d0) * z) / (47.066876606d0 + (x * (313.399215894d0 + (x * 263.505074721d0))))
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x));
double tmp;
if (x <= -36.0) {
tmp = t_0;
} else if (x <= 9e-164) {
tmp = ((z * -2.0) + (x * z)) / (47.066876606 + (x * 313.399215894));
} else if (x <= 1.7e-106) {
tmp = x * (y * -0.0424927283095952);
} else if (x <= 42.0) {
tmp = ((x - 2.0) * z) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721))));
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x)) tmp = 0 if x <= -36.0: tmp = t_0 elif x <= 9e-164: tmp = ((z * -2.0) + (x * z)) / (47.066876606 + (x * 313.399215894)) elif x <= 1.7e-106: tmp = x * (y * -0.0424927283095952) elif x <= 42.0: tmp = ((x - 2.0) * z) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721)))) else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(Float64(x + -2.0) / Float64(0.24013125253755718 + Float64(5.86923874282773 / x))) tmp = 0.0 if (x <= -36.0) tmp = t_0; elseif (x <= 9e-164) tmp = Float64(Float64(Float64(z * -2.0) + Float64(x * z)) / Float64(47.066876606 + Float64(x * 313.399215894))); elseif (x <= 1.7e-106) tmp = Float64(x * Float64(y * -0.0424927283095952)); elseif (x <= 42.0) tmp = Float64(Float64(Float64(x - 2.0) * z) / Float64(47.066876606 + Float64(x * Float64(313.399215894 + Float64(x * 263.505074721))))); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x)); tmp = 0.0; if (x <= -36.0) tmp = t_0; elseif (x <= 9e-164) tmp = ((z * -2.0) + (x * z)) / (47.066876606 + (x * 313.399215894)); elseif (x <= 1.7e-106) tmp = x * (y * -0.0424927283095952); elseif (x <= 42.0) tmp = ((x - 2.0) * z) / (47.066876606 + (x * (313.399215894 + (x * 263.505074721)))); else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(x + -2.0), $MachinePrecision] / N[(0.24013125253755718 + N[(5.86923874282773 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -36.0], t$95$0, If[LessEqual[x, 9e-164], N[(N[(N[(z * -2.0), $MachinePrecision] + N[(x * z), $MachinePrecision]), $MachinePrecision] / N[(47.066876606 + N[(x * 313.399215894), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.7e-106], N[(x * N[(y * -0.0424927283095952), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 42.0], N[(N[(N[(x - 2.0), $MachinePrecision] * z), $MachinePrecision] / N[(47.066876606 + N[(x * N[(313.399215894 + N[(x * 263.505074721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$0]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{x + -2}{0.24013125253755718 + \frac{5.86923874282773}{x}}\\
\mathbf{if}\;x \leq -36:\\
\;\;\;\;t_0\\
\mathbf{elif}\;x \leq 9 \cdot 10^{-164}:\\
\;\;\;\;\frac{z \cdot -2 + x \cdot z}{47.066876606 + x \cdot 313.399215894}\\
\mathbf{elif}\;x \leq 1.7 \cdot 10^{-106}:\\
\;\;\;\;x \cdot \left(y \cdot -0.0424927283095952\right)\\
\mathbf{elif}\;x \leq 42:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot z}{47.066876606 + x \cdot \left(313.399215894 + x \cdot 263.505074721\right)}\\
\mathbf{else}:\\
\;\;\;\;t_0\\
\end{array}
\end{array}
if x < -36 or 42 < x Initial program 16.2%
associate-/l*18.6%
sub-neg18.6%
metadata-eval18.6%
fma-def18.6%
fma-def18.7%
fma-def18.7%
fma-def18.7%
fma-def18.7%
fma-def18.6%
fma-def18.6%
Simplified18.6%
Taylor expanded in x around inf 87.6%
associate-*r/87.6%
metadata-eval87.6%
Simplified87.6%
if -36 < x < 8.9999999999999995e-164Initial program 99.6%
Taylor expanded in x around 0 99.4%
*-commutative99.4%
Simplified99.4%
Taylor expanded in z around inf 78.1%
Taylor expanded in x around 0 78.1%
*-commutative78.1%
Simplified78.1%
Taylor expanded in x around 0 78.1%
if 8.9999999999999995e-164 < x < 1.69999999999999991e-106Initial program 99.9%
associate-/l*99.0%
sub-neg99.0%
metadata-eval99.0%
fma-def99.0%
fma-def99.0%
fma-def99.0%
fma-def99.0%
fma-def99.0%
fma-def99.0%
fma-def99.0%
Simplified99.0%
Taylor expanded in y around inf 73.4%
Taylor expanded in x around 0 73.4%
*-commutative73.4%
associate-*l*73.5%
Simplified73.5%
if 1.69999999999999991e-106 < x < 42Initial program 99.6%
Taylor expanded in x around 0 99.6%
*-commutative99.6%
Simplified99.6%
Taylor expanded in z around inf 66.9%
Final simplification81.2%
(FPCore (x y z)
:precision binary64
(if (or (<= x -0.176) (not (<= x 0.46)))
(/ (+ x -2.0) (+ 0.24013125253755718 (/ 5.86923874282773 x)))
(+
(* z -0.0424927283095952)
(*
x
(- (* 0.0212463641547976 (+ z (* y -2.0))) (* z -0.28294182010212804))))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -0.176) || !(x <= 0.46)) {
tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x));
} else {
tmp = (z * -0.0424927283095952) + (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804)));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((x <= (-0.176d0)) .or. (.not. (x <= 0.46d0))) then
tmp = (x + (-2.0d0)) / (0.24013125253755718d0 + (5.86923874282773d0 / x))
else
tmp = (z * (-0.0424927283095952d0)) + (x * ((0.0212463641547976d0 * (z + (y * (-2.0d0)))) - (z * (-0.28294182010212804d0))))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -0.176) || !(x <= 0.46)) {
tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x));
} else {
tmp = (z * -0.0424927283095952) + (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804)));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -0.176) or not (x <= 0.46): tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x)) else: tmp = (z * -0.0424927283095952) + (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804))) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -0.176) || !(x <= 0.46)) tmp = Float64(Float64(x + -2.0) / Float64(0.24013125253755718 + Float64(5.86923874282773 / x))); else tmp = Float64(Float64(z * -0.0424927283095952) + Float64(x * Float64(Float64(0.0212463641547976 * Float64(z + Float64(y * -2.0))) - Float64(z * -0.28294182010212804)))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -0.176) || ~((x <= 0.46))) tmp = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x)); else tmp = (z * -0.0424927283095952) + (x * ((0.0212463641547976 * (z + (y * -2.0))) - (z * -0.28294182010212804))); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -0.176], N[Not[LessEqual[x, 0.46]], $MachinePrecision]], N[(N[(x + -2.0), $MachinePrecision] / N[(0.24013125253755718 + N[(5.86923874282773 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(z * -0.0424927283095952), $MachinePrecision] + N[(x * N[(N[(0.0212463641547976 * N[(z + N[(y * -2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(z * -0.28294182010212804), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -0.176 \lor \neg \left(x \leq 0.46\right):\\
\;\;\;\;\frac{x + -2}{0.24013125253755718 + \frac{5.86923874282773}{x}}\\
\mathbf{else}:\\
\;\;\;\;z \cdot -0.0424927283095952 + x \cdot \left(0.0212463641547976 \cdot \left(z + y \cdot -2\right) - z \cdot -0.28294182010212804\right)\\
\end{array}
\end{array}
if x < -0.17599999999999999 or 0.46000000000000002 < x Initial program 16.2%
associate-/l*18.6%
sub-neg18.6%
metadata-eval18.6%
fma-def18.6%
fma-def18.7%
fma-def18.7%
fma-def18.7%
fma-def18.7%
fma-def18.6%
fma-def18.6%
Simplified18.6%
Taylor expanded in x around inf 87.6%
associate-*r/87.6%
metadata-eval87.6%
Simplified87.6%
if -0.17599999999999999 < x < 0.46000000000000002Initial program 99.6%
Simplified99.4%
Taylor expanded in x around 0 93.6%
Final simplification90.9%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (/ (* (- x 2.0) z) (+ 47.066876606 (* x 313.399215894))))
(t_1 (/ (+ x -2.0) (+ 0.24013125253755718 (/ 5.86923874282773 x)))))
(if (<= x -36.0)
t_1
(if (<= x 3.1e-165)
t_0
(if (<= x 2.5e-106)
(* x (* y -0.0424927283095952))
(if (<= x 30.0) t_0 t_1))))))
double code(double x, double y, double z) {
double t_0 = ((x - 2.0) * z) / (47.066876606 + (x * 313.399215894));
double t_1 = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x));
double tmp;
if (x <= -36.0) {
tmp = t_1;
} else if (x <= 3.1e-165) {
tmp = t_0;
} else if (x <= 2.5e-106) {
tmp = x * (y * -0.0424927283095952);
} else if (x <= 30.0) {
tmp = t_0;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: t_1
real(8) :: tmp
t_0 = ((x - 2.0d0) * z) / (47.066876606d0 + (x * 313.399215894d0))
t_1 = (x + (-2.0d0)) / (0.24013125253755718d0 + (5.86923874282773d0 / x))
if (x <= (-36.0d0)) then
tmp = t_1
else if (x <= 3.1d-165) then
tmp = t_0
else if (x <= 2.5d-106) then
tmp = x * (y * (-0.0424927283095952d0))
else if (x <= 30.0d0) then
tmp = t_0
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = ((x - 2.0) * z) / (47.066876606 + (x * 313.399215894));
double t_1 = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x));
double tmp;
if (x <= -36.0) {
tmp = t_1;
} else if (x <= 3.1e-165) {
tmp = t_0;
} else if (x <= 2.5e-106) {
tmp = x * (y * -0.0424927283095952);
} else if (x <= 30.0) {
tmp = t_0;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z): t_0 = ((x - 2.0) * z) / (47.066876606 + (x * 313.399215894)) t_1 = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x)) tmp = 0 if x <= -36.0: tmp = t_1 elif x <= 3.1e-165: tmp = t_0 elif x <= 2.5e-106: tmp = x * (y * -0.0424927283095952) elif x <= 30.0: tmp = t_0 else: tmp = t_1 return tmp
function code(x, y, z) t_0 = Float64(Float64(Float64(x - 2.0) * z) / Float64(47.066876606 + Float64(x * 313.399215894))) t_1 = Float64(Float64(x + -2.0) / Float64(0.24013125253755718 + Float64(5.86923874282773 / x))) tmp = 0.0 if (x <= -36.0) tmp = t_1; elseif (x <= 3.1e-165) tmp = t_0; elseif (x <= 2.5e-106) tmp = Float64(x * Float64(y * -0.0424927283095952)); elseif (x <= 30.0) tmp = t_0; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z) t_0 = ((x - 2.0) * z) / (47.066876606 + (x * 313.399215894)); t_1 = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x)); tmp = 0.0; if (x <= -36.0) tmp = t_1; elseif (x <= 3.1e-165) tmp = t_0; elseif (x <= 2.5e-106) tmp = x * (y * -0.0424927283095952); elseif (x <= 30.0) tmp = t_0; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(N[(x - 2.0), $MachinePrecision] * z), $MachinePrecision] / N[(47.066876606 + N[(x * 313.399215894), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(N[(x + -2.0), $MachinePrecision] / N[(0.24013125253755718 + N[(5.86923874282773 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -36.0], t$95$1, If[LessEqual[x, 3.1e-165], t$95$0, If[LessEqual[x, 2.5e-106], N[(x * N[(y * -0.0424927283095952), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 30.0], t$95$0, t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{\left(x - 2\right) \cdot z}{47.066876606 + x \cdot 313.399215894}\\
t_1 := \frac{x + -2}{0.24013125253755718 + \frac{5.86923874282773}{x}}\\
\mathbf{if}\;x \leq -36:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 3.1 \cdot 10^{-165}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;x \leq 2.5 \cdot 10^{-106}:\\
\;\;\;\;x \cdot \left(y \cdot -0.0424927283095952\right)\\
\mathbf{elif}\;x \leq 30:\\
\;\;\;\;t_0\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if x < -36 or 30 < x Initial program 16.2%
associate-/l*18.6%
sub-neg18.6%
metadata-eval18.6%
fma-def18.6%
fma-def18.7%
fma-def18.7%
fma-def18.7%
fma-def18.7%
fma-def18.6%
fma-def18.6%
Simplified18.6%
Taylor expanded in x around inf 87.6%
associate-*r/87.6%
metadata-eval87.6%
Simplified87.6%
if -36 < x < 3.09999999999999996e-165 or 2.49999999999999991e-106 < x < 30Initial program 99.6%
Taylor expanded in x around 0 99.5%
*-commutative99.5%
Simplified99.5%
Taylor expanded in z around inf 75.8%
Taylor expanded in x around 0 75.7%
*-commutative75.7%
Simplified75.7%
if 3.09999999999999996e-165 < x < 2.49999999999999991e-106Initial program 99.9%
associate-/l*99.0%
sub-neg99.0%
metadata-eval99.0%
fma-def99.0%
fma-def99.0%
fma-def99.0%
fma-def99.0%
fma-def99.0%
fma-def99.0%
fma-def99.0%
Simplified99.0%
Taylor expanded in y around inf 73.4%
Taylor expanded in x around 0 73.4%
*-commutative73.4%
associate-*l*73.5%
Simplified73.5%
Final simplification81.1%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (+ 47.066876606 (* x 313.399215894)))
(t_1 (/ (+ x -2.0) (+ 0.24013125253755718 (/ 5.86923874282773 x)))))
(if (<= x -36.0)
t_1
(if (<= x 9e-164)
(/ (+ (* z -2.0) (* x z)) t_0)
(if (<= x 1.65e-106)
(* x (* y -0.0424927283095952))
(if (<= x 0.65) (/ (* (- x 2.0) z) t_0) t_1))))))
double code(double x, double y, double z) {
double t_0 = 47.066876606 + (x * 313.399215894);
double t_1 = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x));
double tmp;
if (x <= -36.0) {
tmp = t_1;
} else if (x <= 9e-164) {
tmp = ((z * -2.0) + (x * z)) / t_0;
} else if (x <= 1.65e-106) {
tmp = x * (y * -0.0424927283095952);
} else if (x <= 0.65) {
tmp = ((x - 2.0) * z) / t_0;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: t_1
real(8) :: tmp
t_0 = 47.066876606d0 + (x * 313.399215894d0)
t_1 = (x + (-2.0d0)) / (0.24013125253755718d0 + (5.86923874282773d0 / x))
if (x <= (-36.0d0)) then
tmp = t_1
else if (x <= 9d-164) then
tmp = ((z * (-2.0d0)) + (x * z)) / t_0
else if (x <= 1.65d-106) then
tmp = x * (y * (-0.0424927283095952d0))
else if (x <= 0.65d0) then
tmp = ((x - 2.0d0) * z) / t_0
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = 47.066876606 + (x * 313.399215894);
double t_1 = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x));
double tmp;
if (x <= -36.0) {
tmp = t_1;
} else if (x <= 9e-164) {
tmp = ((z * -2.0) + (x * z)) / t_0;
} else if (x <= 1.65e-106) {
tmp = x * (y * -0.0424927283095952);
} else if (x <= 0.65) {
tmp = ((x - 2.0) * z) / t_0;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z): t_0 = 47.066876606 + (x * 313.399215894) t_1 = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x)) tmp = 0 if x <= -36.0: tmp = t_1 elif x <= 9e-164: tmp = ((z * -2.0) + (x * z)) / t_0 elif x <= 1.65e-106: tmp = x * (y * -0.0424927283095952) elif x <= 0.65: tmp = ((x - 2.0) * z) / t_0 else: tmp = t_1 return tmp
function code(x, y, z) t_0 = Float64(47.066876606 + Float64(x * 313.399215894)) t_1 = Float64(Float64(x + -2.0) / Float64(0.24013125253755718 + Float64(5.86923874282773 / x))) tmp = 0.0 if (x <= -36.0) tmp = t_1; elseif (x <= 9e-164) tmp = Float64(Float64(Float64(z * -2.0) + Float64(x * z)) / t_0); elseif (x <= 1.65e-106) tmp = Float64(x * Float64(y * -0.0424927283095952)); elseif (x <= 0.65) tmp = Float64(Float64(Float64(x - 2.0) * z) / t_0); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z) t_0 = 47.066876606 + (x * 313.399215894); t_1 = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x)); tmp = 0.0; if (x <= -36.0) tmp = t_1; elseif (x <= 9e-164) tmp = ((z * -2.0) + (x * z)) / t_0; elseif (x <= 1.65e-106) tmp = x * (y * -0.0424927283095952); elseif (x <= 0.65) tmp = ((x - 2.0) * z) / t_0; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(47.066876606 + N[(x * 313.399215894), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(N[(x + -2.0), $MachinePrecision] / N[(0.24013125253755718 + N[(5.86923874282773 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -36.0], t$95$1, If[LessEqual[x, 9e-164], N[(N[(N[(z * -2.0), $MachinePrecision] + N[(x * z), $MachinePrecision]), $MachinePrecision] / t$95$0), $MachinePrecision], If[LessEqual[x, 1.65e-106], N[(x * N[(y * -0.0424927283095952), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 0.65], N[(N[(N[(x - 2.0), $MachinePrecision] * z), $MachinePrecision] / t$95$0), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := 47.066876606 + x \cdot 313.399215894\\
t_1 := \frac{x + -2}{0.24013125253755718 + \frac{5.86923874282773}{x}}\\
\mathbf{if}\;x \leq -36:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 9 \cdot 10^{-164}:\\
\;\;\;\;\frac{z \cdot -2 + x \cdot z}{t_0}\\
\mathbf{elif}\;x \leq 1.65 \cdot 10^{-106}:\\
\;\;\;\;x \cdot \left(y \cdot -0.0424927283095952\right)\\
\mathbf{elif}\;x \leq 0.65:\\
\;\;\;\;\frac{\left(x - 2\right) \cdot z}{t_0}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if x < -36 or 0.650000000000000022 < x Initial program 16.2%
associate-/l*18.6%
sub-neg18.6%
metadata-eval18.6%
fma-def18.6%
fma-def18.7%
fma-def18.7%
fma-def18.7%
fma-def18.7%
fma-def18.6%
fma-def18.6%
Simplified18.6%
Taylor expanded in x around inf 87.6%
associate-*r/87.6%
metadata-eval87.6%
Simplified87.6%
if -36 < x < 8.9999999999999995e-164Initial program 99.6%
Taylor expanded in x around 0 99.4%
*-commutative99.4%
Simplified99.4%
Taylor expanded in z around inf 78.1%
Taylor expanded in x around 0 78.1%
*-commutative78.1%
Simplified78.1%
Taylor expanded in x around 0 78.1%
if 8.9999999999999995e-164 < x < 1.65000000000000008e-106Initial program 99.9%
associate-/l*99.0%
sub-neg99.0%
metadata-eval99.0%
fma-def99.0%
fma-def99.0%
fma-def99.0%
fma-def99.0%
fma-def99.0%
fma-def99.0%
fma-def99.0%
Simplified99.0%
Taylor expanded in y around inf 73.4%
Taylor expanded in x around 0 73.4%
*-commutative73.4%
associate-*l*73.5%
Simplified73.5%
if 1.65000000000000008e-106 < x < 0.650000000000000022Initial program 99.6%
Taylor expanded in x around 0 99.6%
*-commutative99.6%
Simplified99.6%
Taylor expanded in z around inf 66.9%
Taylor expanded in x around 0 66.1%
*-commutative66.1%
Simplified66.1%
Final simplification81.1%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (/ (* z -2.0) (+ 47.066876606 (* x 313.399215894)))))
(if (<= x -4.3e-9)
(- (+ (* x 4.16438922228) (/ 3655.1204654076414 x)) 110.1139242984811)
(if (<= x 9e-164)
t_0
(if (<= x 1.75e-106)
(* x (* y -0.0424927283095952))
(if (<= x 2.0) t_0 (/ (+ x -2.0) 0.24013125253755718)))))))
double code(double x, double y, double z) {
double t_0 = (z * -2.0) / (47.066876606 + (x * 313.399215894));
double tmp;
if (x <= -4.3e-9) {
tmp = ((x * 4.16438922228) + (3655.1204654076414 / x)) - 110.1139242984811;
} else if (x <= 9e-164) {
tmp = t_0;
} else if (x <= 1.75e-106) {
tmp = x * (y * -0.0424927283095952);
} else if (x <= 2.0) {
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 = (z * (-2.0d0)) / (47.066876606d0 + (x * 313.399215894d0))
if (x <= (-4.3d-9)) then
tmp = ((x * 4.16438922228d0) + (3655.1204654076414d0 / x)) - 110.1139242984811d0
else if (x <= 9d-164) then
tmp = t_0
else if (x <= 1.75d-106) then
tmp = x * (y * (-0.0424927283095952d0))
else if (x <= 2.0d0) 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 = (z * -2.0) / (47.066876606 + (x * 313.399215894));
double tmp;
if (x <= -4.3e-9) {
tmp = ((x * 4.16438922228) + (3655.1204654076414 / x)) - 110.1139242984811;
} else if (x <= 9e-164) {
tmp = t_0;
} else if (x <= 1.75e-106) {
tmp = x * (y * -0.0424927283095952);
} else if (x <= 2.0) {
tmp = t_0;
} else {
tmp = (x + -2.0) / 0.24013125253755718;
}
return tmp;
}
def code(x, y, z): t_0 = (z * -2.0) / (47.066876606 + (x * 313.399215894)) tmp = 0 if x <= -4.3e-9: tmp = ((x * 4.16438922228) + (3655.1204654076414 / x)) - 110.1139242984811 elif x <= 9e-164: tmp = t_0 elif x <= 1.75e-106: tmp = x * (y * -0.0424927283095952) elif x <= 2.0: tmp = t_0 else: tmp = (x + -2.0) / 0.24013125253755718 return tmp
function code(x, y, z) t_0 = Float64(Float64(z * -2.0) / Float64(47.066876606 + Float64(x * 313.399215894))) tmp = 0.0 if (x <= -4.3e-9) tmp = Float64(Float64(Float64(x * 4.16438922228) + Float64(3655.1204654076414 / x)) - 110.1139242984811); elseif (x <= 9e-164) tmp = t_0; elseif (x <= 1.75e-106) tmp = Float64(x * Float64(y * -0.0424927283095952)); elseif (x <= 2.0) 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 = (z * -2.0) / (47.066876606 + (x * 313.399215894)); tmp = 0.0; if (x <= -4.3e-9) tmp = ((x * 4.16438922228) + (3655.1204654076414 / x)) - 110.1139242984811; elseif (x <= 9e-164) tmp = t_0; elseif (x <= 1.75e-106) tmp = x * (y * -0.0424927283095952); elseif (x <= 2.0) 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[(z * -2.0), $MachinePrecision] / N[(47.066876606 + N[(x * 313.399215894), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -4.3e-9], N[(N[(N[(x * 4.16438922228), $MachinePrecision] + N[(3655.1204654076414 / x), $MachinePrecision]), $MachinePrecision] - 110.1139242984811), $MachinePrecision], If[LessEqual[x, 9e-164], t$95$0, If[LessEqual[x, 1.75e-106], N[(x * N[(y * -0.0424927283095952), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.0], t$95$0, N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{z \cdot -2}{47.066876606 + x \cdot 313.399215894}\\
\mathbf{if}\;x \leq -4.3 \cdot 10^{-9}:\\
\;\;\;\;\left(x \cdot 4.16438922228 + \frac{3655.1204654076414}{x}\right) - 110.1139242984811\\
\mathbf{elif}\;x \leq 9 \cdot 10^{-164}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;x \leq 1.75 \cdot 10^{-106}:\\
\;\;\;\;x \cdot \left(y \cdot -0.0424927283095952\right)\\
\mathbf{elif}\;x \leq 2:\\
\;\;\;\;t_0\\
\mathbf{else}:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718}\\
\end{array}
\end{array}
if x < -4.29999999999999963e-9Initial program 17.1%
Simplified18.7%
Taylor expanded in x around inf 85.8%
Taylor expanded in x around 0 85.8%
if -4.29999999999999963e-9 < x < 8.9999999999999995e-164 or 1.75e-106 < x < 2Initial program 99.6%
Taylor expanded in x around 0 99.6%
*-commutative99.6%
Simplified99.6%
Taylor expanded in z around inf 77.0%
Taylor expanded in x around 0 76.8%
*-commutative76.8%
Simplified76.8%
Taylor expanded in x around 0 76.0%
*-commutative76.0%
Simplified76.0%
if 8.9999999999999995e-164 < x < 1.75e-106Initial program 99.9%
associate-/l*99.0%
sub-neg99.0%
metadata-eval99.0%
fma-def99.0%
fma-def99.0%
fma-def99.0%
fma-def99.0%
fma-def99.0%
fma-def99.0%
fma-def99.0%
Simplified99.0%
Taylor expanded in y around inf 73.4%
Taylor expanded in x around 0 73.4%
*-commutative73.4%
associate-*l*73.5%
Simplified73.5%
if 2 < x Initial program 18.1%
associate-/l*21.2%
sub-neg21.2%
metadata-eval21.2%
fma-def21.2%
fma-def21.3%
fma-def21.3%
fma-def21.3%
fma-def21.3%
fma-def21.3%
fma-def21.3%
Simplified21.3%
Taylor expanded in x around inf 86.4%
Final simplification80.6%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (/ (* z -2.0) (+ 47.066876606 (* x 313.399215894))))
(t_1 (/ (+ x -2.0) (+ 0.24013125253755718 (/ 5.86923874282773 x)))))
(if (<= x -36.0)
t_1
(if (<= x 9e-164)
t_0
(if (<= x 1.65e-106)
(* x (* y -0.0424927283095952))
(if (<= x 2.0) t_0 t_1))))))
double code(double x, double y, double z) {
double t_0 = (z * -2.0) / (47.066876606 + (x * 313.399215894));
double t_1 = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x));
double tmp;
if (x <= -36.0) {
tmp = t_1;
} else if (x <= 9e-164) {
tmp = t_0;
} else if (x <= 1.65e-106) {
tmp = x * (y * -0.0424927283095952);
} else if (x <= 2.0) {
tmp = t_0;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: t_1
real(8) :: tmp
t_0 = (z * (-2.0d0)) / (47.066876606d0 + (x * 313.399215894d0))
t_1 = (x + (-2.0d0)) / (0.24013125253755718d0 + (5.86923874282773d0 / x))
if (x <= (-36.0d0)) then
tmp = t_1
else if (x <= 9d-164) then
tmp = t_0
else if (x <= 1.65d-106) then
tmp = x * (y * (-0.0424927283095952d0))
else if (x <= 2.0d0) then
tmp = t_0
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = (z * -2.0) / (47.066876606 + (x * 313.399215894));
double t_1 = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x));
double tmp;
if (x <= -36.0) {
tmp = t_1;
} else if (x <= 9e-164) {
tmp = t_0;
} else if (x <= 1.65e-106) {
tmp = x * (y * -0.0424927283095952);
} else if (x <= 2.0) {
tmp = t_0;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z): t_0 = (z * -2.0) / (47.066876606 + (x * 313.399215894)) t_1 = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x)) tmp = 0 if x <= -36.0: tmp = t_1 elif x <= 9e-164: tmp = t_0 elif x <= 1.65e-106: tmp = x * (y * -0.0424927283095952) elif x <= 2.0: tmp = t_0 else: tmp = t_1 return tmp
function code(x, y, z) t_0 = Float64(Float64(z * -2.0) / Float64(47.066876606 + Float64(x * 313.399215894))) t_1 = Float64(Float64(x + -2.0) / Float64(0.24013125253755718 + Float64(5.86923874282773 / x))) tmp = 0.0 if (x <= -36.0) tmp = t_1; elseif (x <= 9e-164) tmp = t_0; elseif (x <= 1.65e-106) tmp = Float64(x * Float64(y * -0.0424927283095952)); elseif (x <= 2.0) tmp = t_0; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z) t_0 = (z * -2.0) / (47.066876606 + (x * 313.399215894)); t_1 = (x + -2.0) / (0.24013125253755718 + (5.86923874282773 / x)); tmp = 0.0; if (x <= -36.0) tmp = t_1; elseif (x <= 9e-164) tmp = t_0; elseif (x <= 1.65e-106) tmp = x * (y * -0.0424927283095952); elseif (x <= 2.0) tmp = t_0; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(z * -2.0), $MachinePrecision] / N[(47.066876606 + N[(x * 313.399215894), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(N[(x + -2.0), $MachinePrecision] / N[(0.24013125253755718 + N[(5.86923874282773 / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -36.0], t$95$1, If[LessEqual[x, 9e-164], t$95$0, If[LessEqual[x, 1.65e-106], N[(x * N[(y * -0.0424927283095952), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.0], t$95$0, t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{z \cdot -2}{47.066876606 + x \cdot 313.399215894}\\
t_1 := \frac{x + -2}{0.24013125253755718 + \frac{5.86923874282773}{x}}\\
\mathbf{if}\;x \leq -36:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 9 \cdot 10^{-164}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;x \leq 1.65 \cdot 10^{-106}:\\
\;\;\;\;x \cdot \left(y \cdot -0.0424927283095952\right)\\
\mathbf{elif}\;x \leq 2:\\
\;\;\;\;t_0\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if x < -36 or 2 < x Initial program 16.2%
associate-/l*18.6%
sub-neg18.6%
metadata-eval18.6%
fma-def18.6%
fma-def18.7%
fma-def18.7%
fma-def18.7%
fma-def18.7%
fma-def18.6%
fma-def18.6%
Simplified18.6%
Taylor expanded in x around inf 87.6%
associate-*r/87.6%
metadata-eval87.6%
Simplified87.6%
if -36 < x < 8.9999999999999995e-164 or 1.65000000000000008e-106 < x < 2Initial program 99.6%
Taylor expanded in x around 0 99.5%
*-commutative99.5%
Simplified99.5%
Taylor expanded in z around inf 75.8%
Taylor expanded in x around 0 75.7%
*-commutative75.7%
Simplified75.7%
Taylor expanded in x around 0 74.9%
*-commutative74.9%
Simplified74.9%
if 8.9999999999999995e-164 < x < 1.65000000000000008e-106Initial program 99.9%
associate-/l*99.0%
sub-neg99.0%
metadata-eval99.0%
fma-def99.0%
fma-def99.0%
fma-def99.0%
fma-def99.0%
fma-def99.0%
fma-def99.0%
fma-def99.0%
Simplified99.0%
Taylor expanded in y around inf 73.4%
Taylor expanded in x around 0 73.4%
*-commutative73.4%
associate-*l*73.5%
Simplified73.5%
Final simplification80.7%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (/ (+ x -2.0) 0.24013125253755718))
(t_1 (/ (* (- x 2.0) z) 47.066876606)))
(if (<= x -4.3e-9)
t_0
(if (<= x 9e-164)
t_1
(if (<= x 1.65e-106)
(* x (* y -0.0424927283095952))
(if (<= x 98.0) t_1 t_0))))))
double code(double x, double y, double z) {
double t_0 = (x + -2.0) / 0.24013125253755718;
double t_1 = ((x - 2.0) * z) / 47.066876606;
double tmp;
if (x <= -4.3e-9) {
tmp = t_0;
} else if (x <= 9e-164) {
tmp = t_1;
} else if (x <= 1.65e-106) {
tmp = x * (y * -0.0424927283095952);
} else if (x <= 98.0) {
tmp = t_1;
} else {
tmp = t_0;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: t_1
real(8) :: tmp
t_0 = (x + (-2.0d0)) / 0.24013125253755718d0
t_1 = ((x - 2.0d0) * z) / 47.066876606d0
if (x <= (-4.3d-9)) then
tmp = t_0
else if (x <= 9d-164) then
tmp = t_1
else if (x <= 1.65d-106) then
tmp = x * (y * (-0.0424927283095952d0))
else if (x <= 98.0d0) then
tmp = t_1
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = (x + -2.0) / 0.24013125253755718;
double t_1 = ((x - 2.0) * z) / 47.066876606;
double tmp;
if (x <= -4.3e-9) {
tmp = t_0;
} else if (x <= 9e-164) {
tmp = t_1;
} else if (x <= 1.65e-106) {
tmp = x * (y * -0.0424927283095952);
} else if (x <= 98.0) {
tmp = t_1;
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = (x + -2.0) / 0.24013125253755718 t_1 = ((x - 2.0) * z) / 47.066876606 tmp = 0 if x <= -4.3e-9: tmp = t_0 elif x <= 9e-164: tmp = t_1 elif x <= 1.65e-106: tmp = x * (y * -0.0424927283095952) elif x <= 98.0: tmp = t_1 else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(Float64(x + -2.0) / 0.24013125253755718) t_1 = Float64(Float64(Float64(x - 2.0) * z) / 47.066876606) tmp = 0.0 if (x <= -4.3e-9) tmp = t_0; elseif (x <= 9e-164) tmp = t_1; elseif (x <= 1.65e-106) tmp = Float64(x * Float64(y * -0.0424927283095952)); elseif (x <= 98.0) tmp = t_1; else tmp = t_0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = (x + -2.0) / 0.24013125253755718; t_1 = ((x - 2.0) * z) / 47.066876606; tmp = 0.0; if (x <= -4.3e-9) tmp = t_0; elseif (x <= 9e-164) tmp = t_1; elseif (x <= 1.65e-106) tmp = x * (y * -0.0424927283095952); elseif (x <= 98.0) tmp = t_1; else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(x + -2.0), $MachinePrecision] / 0.24013125253755718), $MachinePrecision]}, Block[{t$95$1 = N[(N[(N[(x - 2.0), $MachinePrecision] * z), $MachinePrecision] / 47.066876606), $MachinePrecision]}, If[LessEqual[x, -4.3e-9], t$95$0, If[LessEqual[x, 9e-164], t$95$1, If[LessEqual[x, 1.65e-106], N[(x * N[(y * -0.0424927283095952), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 98.0], t$95$1, t$95$0]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{x + -2}{0.24013125253755718}\\
t_1 := \frac{\left(x - 2\right) \cdot z}{47.066876606}\\
\mathbf{if}\;x \leq -4.3 \cdot 10^{-9}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;x \leq 9 \cdot 10^{-164}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 1.65 \cdot 10^{-106}:\\
\;\;\;\;x \cdot \left(y \cdot -0.0424927283095952\right)\\
\mathbf{elif}\;x \leq 98:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_0\\
\end{array}
\end{array}
if x < -4.29999999999999963e-9 or 98 < x Initial program 17.6%
associate-/l*20.0%
sub-neg20.0%
metadata-eval20.0%
fma-def20.0%
fma-def20.0%
fma-def20.0%
fma-def20.0%
fma-def20.0%
fma-def20.0%
fma-def20.0%
Simplified20.0%
Taylor expanded in x around inf 85.9%
if -4.29999999999999963e-9 < x < 8.9999999999999995e-164 or 1.65000000000000008e-106 < x < 98Initial program 99.6%
Taylor expanded in x around 0 99.6%
*-commutative99.6%
Simplified99.6%
Taylor expanded in z around inf 77.0%
Taylor expanded in x around 0 76.8%
*-commutative76.8%
Simplified76.8%
Taylor expanded in x around 0 75.8%
if 8.9999999999999995e-164 < x < 1.65000000000000008e-106Initial program 99.9%
associate-/l*99.0%
sub-neg99.0%
metadata-eval99.0%
fma-def99.0%
fma-def99.0%
fma-def99.0%
fma-def99.0%
fma-def99.0%
fma-def99.0%
fma-def99.0%
Simplified99.0%
Taylor expanded in y around inf 73.4%
Taylor expanded in x around 0 73.4%
*-commutative73.4%
associate-*l*73.5%
Simplified73.5%
Final simplification80.4%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (/ (* (- x 2.0) z) 47.066876606)))
(if (<= x -4.3e-9)
(- (+ (* x 4.16438922228) (/ 3655.1204654076414 x)) 110.1139242984811)
(if (<= x 9e-164)
t_0
(if (<= x 1.65e-106)
(* x (* y -0.0424927283095952))
(if (<= x 1.8) t_0 (/ (+ x -2.0) 0.24013125253755718)))))))
double code(double x, double y, double z) {
double t_0 = ((x - 2.0) * z) / 47.066876606;
double tmp;
if (x <= -4.3e-9) {
tmp = ((x * 4.16438922228) + (3655.1204654076414 / x)) - 110.1139242984811;
} else if (x <= 9e-164) {
tmp = t_0;
} else if (x <= 1.65e-106) {
tmp = x * (y * -0.0424927283095952);
} else if (x <= 1.8) {
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) * z) / 47.066876606d0
if (x <= (-4.3d-9)) then
tmp = ((x * 4.16438922228d0) + (3655.1204654076414d0 / x)) - 110.1139242984811d0
else if (x <= 9d-164) then
tmp = t_0
else if (x <= 1.65d-106) then
tmp = x * (y * (-0.0424927283095952d0))
else if (x <= 1.8d0) 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) * z) / 47.066876606;
double tmp;
if (x <= -4.3e-9) {
tmp = ((x * 4.16438922228) + (3655.1204654076414 / x)) - 110.1139242984811;
} else if (x <= 9e-164) {
tmp = t_0;
} else if (x <= 1.65e-106) {
tmp = x * (y * -0.0424927283095952);
} else if (x <= 1.8) {
tmp = t_0;
} else {
tmp = (x + -2.0) / 0.24013125253755718;
}
return tmp;
}
def code(x, y, z): t_0 = ((x - 2.0) * z) / 47.066876606 tmp = 0 if x <= -4.3e-9: tmp = ((x * 4.16438922228) + (3655.1204654076414 / x)) - 110.1139242984811 elif x <= 9e-164: tmp = t_0 elif x <= 1.65e-106: tmp = x * (y * -0.0424927283095952) elif x <= 1.8: 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) * z) / 47.066876606) tmp = 0.0 if (x <= -4.3e-9) tmp = Float64(Float64(Float64(x * 4.16438922228) + Float64(3655.1204654076414 / x)) - 110.1139242984811); elseif (x <= 9e-164) tmp = t_0; elseif (x <= 1.65e-106) tmp = Float64(x * Float64(y * -0.0424927283095952)); elseif (x <= 1.8) 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) * z) / 47.066876606; tmp = 0.0; if (x <= -4.3e-9) tmp = ((x * 4.16438922228) + (3655.1204654076414 / x)) - 110.1139242984811; elseif (x <= 9e-164) tmp = t_0; elseif (x <= 1.65e-106) tmp = x * (y * -0.0424927283095952); elseif (x <= 1.8) 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] * z), $MachinePrecision] / 47.066876606), $MachinePrecision]}, If[LessEqual[x, -4.3e-9], N[(N[(N[(x * 4.16438922228), $MachinePrecision] + N[(3655.1204654076414 / x), $MachinePrecision]), $MachinePrecision] - 110.1139242984811), $MachinePrecision], If[LessEqual[x, 9e-164], t$95$0, If[LessEqual[x, 1.65e-106], N[(x * N[(y * -0.0424927283095952), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.8], 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 z}{47.066876606}\\
\mathbf{if}\;x \leq -4.3 \cdot 10^{-9}:\\
\;\;\;\;\left(x \cdot 4.16438922228 + \frac{3655.1204654076414}{x}\right) - 110.1139242984811\\
\mathbf{elif}\;x \leq 9 \cdot 10^{-164}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;x \leq 1.65 \cdot 10^{-106}:\\
\;\;\;\;x \cdot \left(y \cdot -0.0424927283095952\right)\\
\mathbf{elif}\;x \leq 1.8:\\
\;\;\;\;t_0\\
\mathbf{else}:\\
\;\;\;\;\frac{x + -2}{0.24013125253755718}\\
\end{array}
\end{array}
if x < -4.29999999999999963e-9Initial program 17.1%
Simplified18.7%
Taylor expanded in x around inf 85.8%
Taylor expanded in x around 0 85.8%
if -4.29999999999999963e-9 < x < 8.9999999999999995e-164 or 1.65000000000000008e-106 < x < 1.80000000000000004Initial program 99.6%
Taylor expanded in x around 0 99.6%
*-commutative99.6%
Simplified99.6%
Taylor expanded in z around inf 77.0%
Taylor expanded in x around 0 76.8%
*-commutative76.8%
Simplified76.8%
Taylor expanded in x around 0 75.8%
if 8.9999999999999995e-164 < x < 1.65000000000000008e-106Initial program 99.9%
associate-/l*99.0%
sub-neg99.0%
metadata-eval99.0%
fma-def99.0%
fma-def99.0%
fma-def99.0%
fma-def99.0%
fma-def99.0%
fma-def99.0%
fma-def99.0%
Simplified99.0%
Taylor expanded in y around inf 73.4%
Taylor expanded in x around 0 73.4%
*-commutative73.4%
associate-*l*73.5%
Simplified73.5%
if 1.80000000000000004 < x Initial program 18.1%
associate-/l*21.2%
sub-neg21.2%
metadata-eval21.2%
fma-def21.2%
fma-def21.3%
fma-def21.3%
fma-def21.3%
fma-def21.3%
fma-def21.3%
fma-def21.3%
Simplified21.3%
Taylor expanded in x around inf 86.4%
Final simplification80.5%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (- (* x 4.16438922228) 110.1139242984811)))
(if (<= x -4.3e-9)
t_0
(if (<= x 9e-164)
(* z -0.0424927283095952)
(if (<= x 1.65e-106)
(* x (* y -0.0424927283095952))
(if (<= x 2.2) (* z -0.0424927283095952) t_0))))))
double code(double x, double y, double z) {
double t_0 = (x * 4.16438922228) - 110.1139242984811;
double tmp;
if (x <= -4.3e-9) {
tmp = t_0;
} else if (x <= 9e-164) {
tmp = z * -0.0424927283095952;
} else if (x <= 1.65e-106) {
tmp = x * (y * -0.0424927283095952);
} else if (x <= 2.2) {
tmp = z * -0.0424927283095952;
} else {
tmp = t_0;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = (x * 4.16438922228d0) - 110.1139242984811d0
if (x <= (-4.3d-9)) then
tmp = t_0
else if (x <= 9d-164) then
tmp = z * (-0.0424927283095952d0)
else if (x <= 1.65d-106) then
tmp = x * (y * (-0.0424927283095952d0))
else if (x <= 2.2d0) then
tmp = z * (-0.0424927283095952d0)
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = (x * 4.16438922228) - 110.1139242984811;
double tmp;
if (x <= -4.3e-9) {
tmp = t_0;
} else if (x <= 9e-164) {
tmp = z * -0.0424927283095952;
} else if (x <= 1.65e-106) {
tmp = x * (y * -0.0424927283095952);
} else if (x <= 2.2) {
tmp = z * -0.0424927283095952;
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = (x * 4.16438922228) - 110.1139242984811 tmp = 0 if x <= -4.3e-9: tmp = t_0 elif x <= 9e-164: tmp = z * -0.0424927283095952 elif x <= 1.65e-106: tmp = x * (y * -0.0424927283095952) elif x <= 2.2: tmp = z * -0.0424927283095952 else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(Float64(x * 4.16438922228) - 110.1139242984811) tmp = 0.0 if (x <= -4.3e-9) tmp = t_0; elseif (x <= 9e-164) tmp = Float64(z * -0.0424927283095952); elseif (x <= 1.65e-106) tmp = Float64(x * Float64(y * -0.0424927283095952)); elseif (x <= 2.2) tmp = Float64(z * -0.0424927283095952); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = (x * 4.16438922228) - 110.1139242984811; tmp = 0.0; if (x <= -4.3e-9) tmp = t_0; elseif (x <= 9e-164) tmp = z * -0.0424927283095952; elseif (x <= 1.65e-106) tmp = x * (y * -0.0424927283095952); elseif (x <= 2.2) tmp = z * -0.0424927283095952; else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(x * 4.16438922228), $MachinePrecision] - 110.1139242984811), $MachinePrecision]}, If[LessEqual[x, -4.3e-9], t$95$0, If[LessEqual[x, 9e-164], N[(z * -0.0424927283095952), $MachinePrecision], If[LessEqual[x, 1.65e-106], N[(x * N[(y * -0.0424927283095952), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.2], N[(z * -0.0424927283095952), $MachinePrecision], t$95$0]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot 4.16438922228 - 110.1139242984811\\
\mathbf{if}\;x \leq -4.3 \cdot 10^{-9}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;x \leq 9 \cdot 10^{-164}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{elif}\;x \leq 1.65 \cdot 10^{-106}:\\
\;\;\;\;x \cdot \left(y \cdot -0.0424927283095952\right)\\
\mathbf{elif}\;x \leq 2.2:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;t_0\\
\end{array}
\end{array}
if x < -4.29999999999999963e-9 or 2.2000000000000002 < x Initial program 17.6%
Simplified20.0%
Taylor expanded in x around inf 85.6%
if -4.29999999999999963e-9 < x < 8.9999999999999995e-164 or 1.65000000000000008e-106 < x < 2.2000000000000002Initial program 99.6%
Simplified99.4%
Taylor expanded in x around 0 75.6%
if 8.9999999999999995e-164 < x < 1.65000000000000008e-106Initial program 99.9%
associate-/l*99.0%
sub-neg99.0%
metadata-eval99.0%
fma-def99.0%
fma-def99.0%
fma-def99.0%
fma-def99.0%
fma-def99.0%
fma-def99.0%
fma-def99.0%
Simplified99.0%
Taylor expanded in y around inf 73.4%
Taylor expanded in x around 0 73.4%
*-commutative73.4%
associate-*l*73.5%
Simplified73.5%
Final simplification80.2%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (/ (+ x -2.0) 0.24013125253755718)))
(if (<= x -4.3e-9)
t_0
(if (<= x 9e-164)
(* z -0.0424927283095952)
(if (<= x 1.65e-106)
(* x (* y -0.0424927283095952))
(if (<= x 0.96) (* z -0.0424927283095952) t_0))))))
double code(double x, double y, double z) {
double t_0 = (x + -2.0) / 0.24013125253755718;
double tmp;
if (x <= -4.3e-9) {
tmp = t_0;
} else if (x <= 9e-164) {
tmp = z * -0.0424927283095952;
} else if (x <= 1.65e-106) {
tmp = x * (y * -0.0424927283095952);
} else if (x <= 0.96) {
tmp = z * -0.0424927283095952;
} else {
tmp = t_0;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = (x + (-2.0d0)) / 0.24013125253755718d0
if (x <= (-4.3d-9)) then
tmp = t_0
else if (x <= 9d-164) then
tmp = z * (-0.0424927283095952d0)
else if (x <= 1.65d-106) then
tmp = x * (y * (-0.0424927283095952d0))
else if (x <= 0.96d0) 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 tmp;
if (x <= -4.3e-9) {
tmp = t_0;
} else if (x <= 9e-164) {
tmp = z * -0.0424927283095952;
} else if (x <= 1.65e-106) {
tmp = x * (y * -0.0424927283095952);
} else if (x <= 0.96) {
tmp = z * -0.0424927283095952;
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = (x + -2.0) / 0.24013125253755718 tmp = 0 if x <= -4.3e-9: tmp = t_0 elif x <= 9e-164: tmp = z * -0.0424927283095952 elif x <= 1.65e-106: tmp = x * (y * -0.0424927283095952) elif x <= 0.96: tmp = z * -0.0424927283095952 else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(Float64(x + -2.0) / 0.24013125253755718) tmp = 0.0 if (x <= -4.3e-9) tmp = t_0; elseif (x <= 9e-164) tmp = Float64(z * -0.0424927283095952); elseif (x <= 1.65e-106) tmp = Float64(x * Float64(y * -0.0424927283095952)); elseif (x <= 0.96) 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; tmp = 0.0; if (x <= -4.3e-9) tmp = t_0; elseif (x <= 9e-164) tmp = z * -0.0424927283095952; elseif (x <= 1.65e-106) tmp = x * (y * -0.0424927283095952); elseif (x <= 0.96) 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]}, If[LessEqual[x, -4.3e-9], t$95$0, If[LessEqual[x, 9e-164], N[(z * -0.0424927283095952), $MachinePrecision], If[LessEqual[x, 1.65e-106], N[(x * N[(y * -0.0424927283095952), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 0.96], N[(z * -0.0424927283095952), $MachinePrecision], t$95$0]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{x + -2}{0.24013125253755718}\\
\mathbf{if}\;x \leq -4.3 \cdot 10^{-9}:\\
\;\;\;\;t_0\\
\mathbf{elif}\;x \leq 9 \cdot 10^{-164}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{elif}\;x \leq 1.65 \cdot 10^{-106}:\\
\;\;\;\;x \cdot \left(y \cdot -0.0424927283095952\right)\\
\mathbf{elif}\;x \leq 0.96:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;t_0\\
\end{array}
\end{array}
if x < -4.29999999999999963e-9 or 0.95999999999999996 < x Initial program 17.6%
associate-/l*20.0%
sub-neg20.0%
metadata-eval20.0%
fma-def20.0%
fma-def20.0%
fma-def20.0%
fma-def20.0%
fma-def20.0%
fma-def20.0%
fma-def20.0%
Simplified20.0%
Taylor expanded in x around inf 85.9%
if -4.29999999999999963e-9 < x < 8.9999999999999995e-164 or 1.65000000000000008e-106 < x < 0.95999999999999996Initial program 99.6%
Simplified99.4%
Taylor expanded in x around 0 75.6%
if 8.9999999999999995e-164 < x < 1.65000000000000008e-106Initial program 99.9%
associate-/l*99.0%
sub-neg99.0%
metadata-eval99.0%
fma-def99.0%
fma-def99.0%
fma-def99.0%
fma-def99.0%
fma-def99.0%
fma-def99.0%
fma-def99.0%
Simplified99.0%
Taylor expanded in y around inf 73.4%
Taylor expanded in x around 0 73.4%
*-commutative73.4%
associate-*l*73.5%
Simplified73.5%
Final simplification80.3%
(FPCore (x y z)
:precision binary64
(if (<= x -4.3e-9)
(* x 4.16438922228)
(if (<= x 9e-164)
(* z -0.0424927283095952)
(if (<= x 1.65e-106)
(* -0.0424927283095952 (* x y))
(if (<= x 2.0) (* z -0.0424927283095952) (* x 4.16438922228))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -4.3e-9) {
tmp = x * 4.16438922228;
} else if (x <= 9e-164) {
tmp = z * -0.0424927283095952;
} else if (x <= 1.65e-106) {
tmp = -0.0424927283095952 * (x * y);
} else if (x <= 2.0) {
tmp = z * -0.0424927283095952;
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-4.3d-9)) then
tmp = x * 4.16438922228d0
else if (x <= 9d-164) then
tmp = z * (-0.0424927283095952d0)
else if (x <= 1.65d-106) then
tmp = (-0.0424927283095952d0) * (x * y)
else if (x <= 2.0d0) then
tmp = z * (-0.0424927283095952d0)
else
tmp = x * 4.16438922228d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -4.3e-9) {
tmp = x * 4.16438922228;
} else if (x <= 9e-164) {
tmp = z * -0.0424927283095952;
} else if (x <= 1.65e-106) {
tmp = -0.0424927283095952 * (x * y);
} else if (x <= 2.0) {
tmp = z * -0.0424927283095952;
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -4.3e-9: tmp = x * 4.16438922228 elif x <= 9e-164: tmp = z * -0.0424927283095952 elif x <= 1.65e-106: tmp = -0.0424927283095952 * (x * y) elif x <= 2.0: tmp = z * -0.0424927283095952 else: tmp = x * 4.16438922228 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -4.3e-9) tmp = Float64(x * 4.16438922228); elseif (x <= 9e-164) tmp = Float64(z * -0.0424927283095952); elseif (x <= 1.65e-106) tmp = Float64(-0.0424927283095952 * Float64(x * y)); elseif (x <= 2.0) tmp = Float64(z * -0.0424927283095952); else tmp = Float64(x * 4.16438922228); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -4.3e-9) tmp = x * 4.16438922228; elseif (x <= 9e-164) tmp = z * -0.0424927283095952; elseif (x <= 1.65e-106) tmp = -0.0424927283095952 * (x * y); elseif (x <= 2.0) tmp = z * -0.0424927283095952; else tmp = x * 4.16438922228; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -4.3e-9], N[(x * 4.16438922228), $MachinePrecision], If[LessEqual[x, 9e-164], N[(z * -0.0424927283095952), $MachinePrecision], If[LessEqual[x, 1.65e-106], N[(-0.0424927283095952 * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.0], N[(z * -0.0424927283095952), $MachinePrecision], N[(x * 4.16438922228), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -4.3 \cdot 10^{-9}:\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{elif}\;x \leq 9 \cdot 10^{-164}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{elif}\;x \leq 1.65 \cdot 10^{-106}:\\
\;\;\;\;-0.0424927283095952 \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;x \leq 2:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228\\
\end{array}
\end{array}
if x < -4.29999999999999963e-9 or 2 < x Initial program 17.6%
Simplified20.0%
Taylor expanded in x around inf 85.3%
*-commutative85.3%
Simplified85.3%
if -4.29999999999999963e-9 < x < 8.9999999999999995e-164 or 1.65000000000000008e-106 < x < 2Initial program 99.6%
Simplified99.4%
Taylor expanded in x around 0 75.6%
if 8.9999999999999995e-164 < x < 1.65000000000000008e-106Initial program 99.9%
associate-/l*99.0%
sub-neg99.0%
metadata-eval99.0%
fma-def99.0%
fma-def99.0%
fma-def99.0%
fma-def99.0%
fma-def99.0%
fma-def99.0%
fma-def99.0%
Simplified99.0%
Taylor expanded in y around inf 73.4%
Taylor expanded in x around 0 73.4%
Final simplification80.1%
(FPCore (x y z)
:precision binary64
(if (<= x -4.3e-9)
(* x 4.16438922228)
(if (<= x 9e-164)
(* z -0.0424927283095952)
(if (<= x 2e-106)
(* x (* y -0.0424927283095952))
(if (<= x 2.0) (* z -0.0424927283095952) (* x 4.16438922228))))))
double code(double x, double y, double z) {
double tmp;
if (x <= -4.3e-9) {
tmp = x * 4.16438922228;
} else if (x <= 9e-164) {
tmp = z * -0.0424927283095952;
} else if (x <= 2e-106) {
tmp = x * (y * -0.0424927283095952);
} else if (x <= 2.0) {
tmp = z * -0.0424927283095952;
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (x <= (-4.3d-9)) then
tmp = x * 4.16438922228d0
else if (x <= 9d-164) then
tmp = z * (-0.0424927283095952d0)
else if (x <= 2d-106) then
tmp = x * (y * (-0.0424927283095952d0))
else if (x <= 2.0d0) then
tmp = z * (-0.0424927283095952d0)
else
tmp = x * 4.16438922228d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (x <= -4.3e-9) {
tmp = x * 4.16438922228;
} else if (x <= 9e-164) {
tmp = z * -0.0424927283095952;
} else if (x <= 2e-106) {
tmp = x * (y * -0.0424927283095952);
} else if (x <= 2.0) {
tmp = z * -0.0424927283095952;
} else {
tmp = x * 4.16438922228;
}
return tmp;
}
def code(x, y, z): tmp = 0 if x <= -4.3e-9: tmp = x * 4.16438922228 elif x <= 9e-164: tmp = z * -0.0424927283095952 elif x <= 2e-106: tmp = x * (y * -0.0424927283095952) elif x <= 2.0: tmp = z * -0.0424927283095952 else: tmp = x * 4.16438922228 return tmp
function code(x, y, z) tmp = 0.0 if (x <= -4.3e-9) tmp = Float64(x * 4.16438922228); elseif (x <= 9e-164) tmp = Float64(z * -0.0424927283095952); elseif (x <= 2e-106) tmp = Float64(x * Float64(y * -0.0424927283095952)); elseif (x <= 2.0) tmp = Float64(z * -0.0424927283095952); else tmp = Float64(x * 4.16438922228); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (x <= -4.3e-9) tmp = x * 4.16438922228; elseif (x <= 9e-164) tmp = z * -0.0424927283095952; elseif (x <= 2e-106) tmp = x * (y * -0.0424927283095952); elseif (x <= 2.0) tmp = z * -0.0424927283095952; else tmp = x * 4.16438922228; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[x, -4.3e-9], N[(x * 4.16438922228), $MachinePrecision], If[LessEqual[x, 9e-164], N[(z * -0.0424927283095952), $MachinePrecision], If[LessEqual[x, 2e-106], N[(x * N[(y * -0.0424927283095952), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.0], N[(z * -0.0424927283095952), $MachinePrecision], N[(x * 4.16438922228), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -4.3 \cdot 10^{-9}:\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{elif}\;x \leq 9 \cdot 10^{-164}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{elif}\;x \leq 2 \cdot 10^{-106}:\\
\;\;\;\;x \cdot \left(y \cdot -0.0424927283095952\right)\\
\mathbf{elif}\;x \leq 2:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\mathbf{else}:\\
\;\;\;\;x \cdot 4.16438922228\\
\end{array}
\end{array}
if x < -4.29999999999999963e-9 or 2 < x Initial program 17.6%
Simplified20.0%
Taylor expanded in x around inf 85.3%
*-commutative85.3%
Simplified85.3%
if -4.29999999999999963e-9 < x < 8.9999999999999995e-164 or 1.99999999999999988e-106 < x < 2Initial program 99.6%
Simplified99.4%
Taylor expanded in x around 0 75.6%
if 8.9999999999999995e-164 < x < 1.99999999999999988e-106Initial program 99.9%
associate-/l*99.0%
sub-neg99.0%
metadata-eval99.0%
fma-def99.0%
fma-def99.0%
fma-def99.0%
fma-def99.0%
fma-def99.0%
fma-def99.0%
fma-def99.0%
Simplified99.0%
Taylor expanded in y around inf 73.4%
Taylor expanded in x around 0 73.4%
*-commutative73.4%
associate-*l*73.5%
Simplified73.5%
Final simplification80.1%
(FPCore (x y z) :precision binary64 (if (or (<= x -4.3e-9) (not (<= x 2.0))) (* x 4.16438922228) (* z -0.0424927283095952)))
double code(double x, double y, double z) {
double tmp;
if ((x <= -4.3e-9) || !(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 <= (-4.3d-9)) .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 <= -4.3e-9) || !(x <= 2.0)) {
tmp = x * 4.16438922228;
} else {
tmp = z * -0.0424927283095952;
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -4.3e-9) 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 <= -4.3e-9) || !(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 <= -4.3e-9) || ~((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, -4.3e-9], 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 -4.3 \cdot 10^{-9} \lor \neg \left(x \leq 2\right):\\
\;\;\;\;x \cdot 4.16438922228\\
\mathbf{else}:\\
\;\;\;\;z \cdot -0.0424927283095952\\
\end{array}
\end{array}
if x < -4.29999999999999963e-9 or 2 < x Initial program 17.6%
Simplified20.0%
Taylor expanded in x around inf 85.3%
*-commutative85.3%
Simplified85.3%
if -4.29999999999999963e-9 < x < 2Initial program 99.6%
Simplified99.4%
Taylor expanded in x around 0 71.2%
Final simplification77.8%
(FPCore (x y z) :precision binary64 (* z -0.0424927283095952))
double code(double x, double y, double z) {
return z * -0.0424927283095952;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = z * (-0.0424927283095952d0)
end function
public static double code(double x, double y, double z) {
return z * -0.0424927283095952;
}
def code(x, y, z): return z * -0.0424927283095952
function code(x, y, z) return Float64(z * -0.0424927283095952) end
function tmp = code(x, y, z) tmp = z * -0.0424927283095952; end
code[x_, y_, z_] := N[(z * -0.0424927283095952), $MachinePrecision]
\begin{array}{l}
\\
z \cdot -0.0424927283095952
\end{array}
Initial program 61.2%
Simplified62.2%
Taylor expanded in x around 0 39.4%
Final simplification39.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 2024010
(FPCore (x y z)
:name "Numeric.SpecFunctions:logGamma from math-functions-0.1.5.2, C"
:precision binary64
:herbie-target
(if (< x -3.326128725870005e+62) (- (+ (/ y (* x x)) (* 4.16438922228 x)) 110.1139242984811) (if (< x 9.429991714554673e+55) (* (/ (- x 2.0) 1.0) (/ (+ (* (+ (* (+ (* (+ (* x 4.16438922228) 78.6994924154) x) 137.519416416) x) y) x) z) (+ (* (+ (+ (* 263.505074721 x) (+ (* 43.3400022514 (* x x)) (* x (* x x)))) 313.399215894) x) 47.066876606))) (- (+ (/ y (* x x)) (* 4.16438922228 x)) 110.1139242984811)))
(/ (* (- x 2.0) (+ (* (+ (* (+ (* (+ (* x 4.16438922228) 78.6994924154) x) 137.519416416) x) y) x) z)) (+ (* (+ (* (+ (* (+ x 43.3400022514) x) 263.505074721) x) 313.399215894) x) 47.066876606)))