
(FPCore (x y z t a b c i) :precision binary64 (/ (+ (* (+ (* (+ (* (+ (* x y) z) y) 27464.7644705) y) 230661.510616) y) t) (+ (* (+ (* (+ (* (+ y a) y) b) y) c) y) i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return ((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i);
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
code = ((((((((x * y) + z) * y) + 27464.7644705d0) * y) + 230661.510616d0) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return ((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i);
}
def code(x, y, z, t, a, b, c, i): return ((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i)
function code(x, y, z, t, a, b, c, i) return Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(y + a) * y) + b) * y) + c) * y) + i)) end
function tmp = code(x, y, z, t, a, b, c, i) tmp = ((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i); end
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(N[(N[(N[(N[(N[(N[(N[(N[(x * y), $MachinePrecision] + z), $MachinePrecision] * y), $MachinePrecision] + 27464.7644705), $MachinePrecision] * y), $MachinePrecision] + 230661.510616), $MachinePrecision] * y), $MachinePrecision] + t), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(y + a), $MachinePrecision] * y), $MachinePrecision] + b), $MachinePrecision] * y), $MachinePrecision] + c), $MachinePrecision] * y), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 16 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i) :precision binary64 (/ (+ (* (+ (* (+ (* (+ (* x y) z) y) 27464.7644705) y) 230661.510616) y) t) (+ (* (+ (* (+ (* (+ y a) y) b) y) c) y) i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return ((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i);
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
code = ((((((((x * y) + z) * y) + 27464.7644705d0) * y) + 230661.510616d0) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return ((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i);
}
def code(x, y, z, t, a, b, c, i): return ((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i)
function code(x, y, z, t, a, b, c, i) return Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(y + a) * y) + b) * y) + c) * y) + i)) end
function tmp = code(x, y, z, t, a, b, c, i) tmp = ((((((((x * y) + z) * y) + 27464.7644705) * y) + 230661.510616) * y) + t) / (((((((y + a) * y) + b) * y) + c) * y) + i); end
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(N[(N[(N[(N[(N[(N[(N[(N[(x * y), $MachinePrecision] + z), $MachinePrecision] * y), $MachinePrecision] + 27464.7644705), $MachinePrecision] * y), $MachinePrecision] + 230661.510616), $MachinePrecision] * y), $MachinePrecision] + t), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(y + a), $MachinePrecision] * y), $MachinePrecision] + b), $MachinePrecision] * y), $MachinePrecision] + c), $MachinePrecision] * y), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{\left(\left(\left(x \cdot y + z\right) \cdot y + 27464.7644705\right) \cdot y + 230661.510616\right) \cdot y + t}{\left(\left(\left(y + a\right) \cdot y + b\right) \cdot y + c\right) \cdot y + i}
\end{array}
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (/ a (/ y x)))
(t_2 (+ (* y (+ y a)) b))
(t_3 (* t_2 t_2))
(t_4 (* y t_2))
(t_5 (/ t (+ (* y (+ c t_4)) i))))
(if (<= y -1.6e+125)
(+ (/ z y) (- x t_1))
(if (<= y -2.9e+22)
(+
t_5
(+
(/ (+ 27464.7644705 (* y (+ z (* y x)))) t_2)
(-
(* 230661.510616 (/ 1.0 t_4))
(*
c
(+
(/ z t_3)
(+
(* 27464.7644705 (/ 1.0 (* t_2 t_4)))
(+
(* 230661.510616 (/ 1.0 (* t_2 (* t_2 (pow y 2.0)))))
(/ (* y x) t_3))))))))
(if (<= y 6.2e+58)
(+
t_5
(*
y
(*
(fma (fma (fma y x z) y 27464.7644705) y 230661.510616)
(/ 1.0 (fma y (+ c (* y (fma (+ y a) y b))) i)))))
(-
(-
(+ x (+ (/ z y) (/ 27464.7644705 (* y y))))
(/ (- z (* x a)) (/ (* y y) a)))
(+ t_1 (* (/ b y) (/ x y)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = a / (y / x);
double t_2 = (y * (y + a)) + b;
double t_3 = t_2 * t_2;
double t_4 = y * t_2;
double t_5 = t / ((y * (c + t_4)) + i);
double tmp;
if (y <= -1.6e+125) {
tmp = (z / y) + (x - t_1);
} else if (y <= -2.9e+22) {
tmp = t_5 + (((27464.7644705 + (y * (z + (y * x)))) / t_2) + ((230661.510616 * (1.0 / t_4)) - (c * ((z / t_3) + ((27464.7644705 * (1.0 / (t_2 * t_4))) + ((230661.510616 * (1.0 / (t_2 * (t_2 * pow(y, 2.0))))) + ((y * x) / t_3)))))));
} else if (y <= 6.2e+58) {
tmp = t_5 + (y * (fma(fma(fma(y, x, z), y, 27464.7644705), y, 230661.510616) * (1.0 / fma(y, (c + (y * fma((y + a), y, b))), i))));
} else {
tmp = ((x + ((z / y) + (27464.7644705 / (y * y)))) - ((z - (x * a)) / ((y * y) / a))) - (t_1 + ((b / y) * (x / y)));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i) t_1 = Float64(a / Float64(y / x)) t_2 = Float64(Float64(y * Float64(y + a)) + b) t_3 = Float64(t_2 * t_2) t_4 = Float64(y * t_2) t_5 = Float64(t / Float64(Float64(y * Float64(c + t_4)) + i)) tmp = 0.0 if (y <= -1.6e+125) tmp = Float64(Float64(z / y) + Float64(x - t_1)); elseif (y <= -2.9e+22) tmp = Float64(t_5 + Float64(Float64(Float64(27464.7644705 + Float64(y * Float64(z + Float64(y * x)))) / t_2) + Float64(Float64(230661.510616 * Float64(1.0 / t_4)) - Float64(c * Float64(Float64(z / t_3) + Float64(Float64(27464.7644705 * Float64(1.0 / Float64(t_2 * t_4))) + Float64(Float64(230661.510616 * Float64(1.0 / Float64(t_2 * Float64(t_2 * (y ^ 2.0))))) + Float64(Float64(y * x) / t_3)))))))); elseif (y <= 6.2e+58) tmp = Float64(t_5 + Float64(y * Float64(fma(fma(fma(y, x, z), y, 27464.7644705), y, 230661.510616) * Float64(1.0 / fma(y, Float64(c + Float64(y * fma(Float64(y + a), y, b))), i))))); else tmp = Float64(Float64(Float64(x + Float64(Float64(z / y) + Float64(27464.7644705 / Float64(y * y)))) - Float64(Float64(z - Float64(x * a)) / Float64(Float64(y * y) / a))) - Float64(t_1 + Float64(Float64(b / y) * Float64(x / y)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]}, Block[{t$95$3 = N[(t$95$2 * t$95$2), $MachinePrecision]}, Block[{t$95$4 = N[(y * t$95$2), $MachinePrecision]}, Block[{t$95$5 = N[(t / N[(N[(y * N[(c + t$95$4), $MachinePrecision]), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.6e+125], N[(N[(z / y), $MachinePrecision] + N[(x - t$95$1), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -2.9e+22], N[(t$95$5 + N[(N[(N[(27464.7644705 + N[(y * N[(z + N[(y * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t$95$2), $MachinePrecision] + N[(N[(230661.510616 * N[(1.0 / t$95$4), $MachinePrecision]), $MachinePrecision] - N[(c * N[(N[(z / t$95$3), $MachinePrecision] + N[(N[(27464.7644705 * N[(1.0 / N[(t$95$2 * t$95$4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(230661.510616 * N[(1.0 / N[(t$95$2 * N[(t$95$2 * N[Power[y, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(y * x), $MachinePrecision] / t$95$3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 6.2e+58], N[(t$95$5 + N[(y * N[(N[(N[(N[(y * x + z), $MachinePrecision] * y + 27464.7644705), $MachinePrecision] * y + 230661.510616), $MachinePrecision] * N[(1.0 / N[(y * N[(c + N[(y * N[(N[(y + a), $MachinePrecision] * y + b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(x + N[(N[(z / y), $MachinePrecision] + N[(27464.7644705 / N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(z - N[(x * a), $MachinePrecision]), $MachinePrecision] / N[(N[(y * y), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(t$95$1 + N[(N[(b / y), $MachinePrecision] * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{a}{\frac{y}{x}}\\
t_2 := y \cdot \left(y + a\right) + b\\
t_3 := t_2 \cdot t_2\\
t_4 := y \cdot t_2\\
t_5 := \frac{t}{y \cdot \left(c + t_4\right) + i}\\
\mathbf{if}\;y \leq -1.6 \cdot 10^{+125}:\\
\;\;\;\;\frac{z}{y} + \left(x - t_1\right)\\
\mathbf{elif}\;y \leq -2.9 \cdot 10^{+22}:\\
\;\;\;\;t_5 + \left(\frac{27464.7644705 + y \cdot \left(z + y \cdot x\right)}{t_2} + \left(230661.510616 \cdot \frac{1}{t_4} - c \cdot \left(\frac{z}{t_3} + \left(27464.7644705 \cdot \frac{1}{t_2 \cdot t_4} + \left(230661.510616 \cdot \frac{1}{t_2 \cdot \left(t_2 \cdot {y}^{2}\right)} + \frac{y \cdot x}{t_3}\right)\right)\right)\right)\right)\\
\mathbf{elif}\;y \leq 6.2 \cdot 10^{+58}:\\
\;\;\;\;t_5 + y \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, z\right), y, 27464.7644705\right), y, 230661.510616\right) \cdot \frac{1}{\mathsf{fma}\left(y, c + y \cdot \mathsf{fma}\left(y + a, y, b\right), i\right)}\right)\\
\mathbf{else}:\\
\;\;\;\;\left(\left(x + \left(\frac{z}{y} + \frac{27464.7644705}{y \cdot y}\right)\right) - \frac{z - x \cdot a}{\frac{y \cdot y}{a}}\right) - \left(t_1 + \frac{b}{y} \cdot \frac{x}{y}\right)\\
\end{array}
\end{array}
if y < -1.59999999999999992e125Initial program 0.0%
Taylor expanded in y around inf 64.9%
associate--l+64.9%
associate-/l*82.5%
Simplified82.5%
if -1.59999999999999992e125 < y < -2.9e22Initial program 11.6%
Taylor expanded in t around inf 11.6%
Taylor expanded in i around 0 41.8%
Taylor expanded in c around 0 60.1%
if -2.9e22 < y < 6.1999999999999998e58Initial program 91.2%
Taylor expanded in t around inf 91.2%
div-inv91.2%
*-commutative91.2%
*-commutative91.2%
*-commutative91.2%
+-commutative91.2%
+-commutative91.2%
fma-def91.2%
fma-def91.2%
*-commutative91.2%
fma-def91.2%
fma-def91.2%
Applied egg-rr91.2%
associate-*l*92.5%
Simplified92.5%
if 6.1999999999999998e58 < y Initial program 0.7%
Taylor expanded in y around inf 55.8%
associate--r+55.8%
associate-+r+55.8%
associate-*r/55.8%
metadata-eval55.8%
unpow255.8%
associate-/l*57.7%
unpow257.7%
associate-/l*57.9%
unpow257.9%
times-frac66.8%
Simplified66.8%
Final simplification82.1%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (/ a (/ y x)))
(t_2 (+ 27464.7644705 (* y (+ z (* y x)))))
(t_3 (+ (* y (+ y a)) b))
(t_4 (* t_3 t_3))
(t_5 (* y t_3))
(t_6 (+ (* y (+ c t_5)) i))
(t_7 (/ t t_6)))
(if (<= y -6.2e+125)
(+ (/ z y) (- x t_1))
(if (<= y -2.9e+22)
(+
t_7
(+
(/ t_2 t_3)
(-
(* 230661.510616 (/ 1.0 t_5))
(*
c
(+
(/ z t_4)
(+
(* 27464.7644705 (/ 1.0 (* t_3 t_5)))
(+
(* 230661.510616 (/ 1.0 (* t_3 (* t_3 (pow y 2.0)))))
(/ (* y x) t_4))))))))
(if (<= y 1.9e+60)
(+ t_7 (/ (* y (+ 230661.510616 (* y t_2))) t_6))
(-
(-
(+ x (+ (/ z y) (/ 27464.7644705 (* y y))))
(/ (- z (* x a)) (/ (* y y) a)))
(+ t_1 (* (/ b y) (/ x y)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = a / (y / x);
double t_2 = 27464.7644705 + (y * (z + (y * x)));
double t_3 = (y * (y + a)) + b;
double t_4 = t_3 * t_3;
double t_5 = y * t_3;
double t_6 = (y * (c + t_5)) + i;
double t_7 = t / t_6;
double tmp;
if (y <= -6.2e+125) {
tmp = (z / y) + (x - t_1);
} else if (y <= -2.9e+22) {
tmp = t_7 + ((t_2 / t_3) + ((230661.510616 * (1.0 / t_5)) - (c * ((z / t_4) + ((27464.7644705 * (1.0 / (t_3 * t_5))) + ((230661.510616 * (1.0 / (t_3 * (t_3 * pow(y, 2.0))))) + ((y * x) / t_4)))))));
} else if (y <= 1.9e+60) {
tmp = t_7 + ((y * (230661.510616 + (y * t_2))) / t_6);
} else {
tmp = ((x + ((z / y) + (27464.7644705 / (y * y)))) - ((z - (x * a)) / ((y * y) / a))) - (t_1 + ((b / y) * (x / y)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: t_5
real(8) :: t_6
real(8) :: t_7
real(8) :: tmp
t_1 = a / (y / x)
t_2 = 27464.7644705d0 + (y * (z + (y * x)))
t_3 = (y * (y + a)) + b
t_4 = t_3 * t_3
t_5 = y * t_3
t_6 = (y * (c + t_5)) + i
t_7 = t / t_6
if (y <= (-6.2d+125)) then
tmp = (z / y) + (x - t_1)
else if (y <= (-2.9d+22)) then
tmp = t_7 + ((t_2 / t_3) + ((230661.510616d0 * (1.0d0 / t_5)) - (c * ((z / t_4) + ((27464.7644705d0 * (1.0d0 / (t_3 * t_5))) + ((230661.510616d0 * (1.0d0 / (t_3 * (t_3 * (y ** 2.0d0))))) + ((y * x) / t_4)))))))
else if (y <= 1.9d+60) then
tmp = t_7 + ((y * (230661.510616d0 + (y * t_2))) / t_6)
else
tmp = ((x + ((z / y) + (27464.7644705d0 / (y * y)))) - ((z - (x * a)) / ((y * y) / a))) - (t_1 + ((b / y) * (x / y)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = a / (y / x);
double t_2 = 27464.7644705 + (y * (z + (y * x)));
double t_3 = (y * (y + a)) + b;
double t_4 = t_3 * t_3;
double t_5 = y * t_3;
double t_6 = (y * (c + t_5)) + i;
double t_7 = t / t_6;
double tmp;
if (y <= -6.2e+125) {
tmp = (z / y) + (x - t_1);
} else if (y <= -2.9e+22) {
tmp = t_7 + ((t_2 / t_3) + ((230661.510616 * (1.0 / t_5)) - (c * ((z / t_4) + ((27464.7644705 * (1.0 / (t_3 * t_5))) + ((230661.510616 * (1.0 / (t_3 * (t_3 * Math.pow(y, 2.0))))) + ((y * x) / t_4)))))));
} else if (y <= 1.9e+60) {
tmp = t_7 + ((y * (230661.510616 + (y * t_2))) / t_6);
} else {
tmp = ((x + ((z / y) + (27464.7644705 / (y * y)))) - ((z - (x * a)) / ((y * y) / a))) - (t_1 + ((b / y) * (x / y)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = a / (y / x) t_2 = 27464.7644705 + (y * (z + (y * x))) t_3 = (y * (y + a)) + b t_4 = t_3 * t_3 t_5 = y * t_3 t_6 = (y * (c + t_5)) + i t_7 = t / t_6 tmp = 0 if y <= -6.2e+125: tmp = (z / y) + (x - t_1) elif y <= -2.9e+22: tmp = t_7 + ((t_2 / t_3) + ((230661.510616 * (1.0 / t_5)) - (c * ((z / t_4) + ((27464.7644705 * (1.0 / (t_3 * t_5))) + ((230661.510616 * (1.0 / (t_3 * (t_3 * math.pow(y, 2.0))))) + ((y * x) / t_4))))))) elif y <= 1.9e+60: tmp = t_7 + ((y * (230661.510616 + (y * t_2))) / t_6) else: tmp = ((x + ((z / y) + (27464.7644705 / (y * y)))) - ((z - (x * a)) / ((y * y) / a))) - (t_1 + ((b / y) * (x / y))) return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(a / Float64(y / x)) t_2 = Float64(27464.7644705 + Float64(y * Float64(z + Float64(y * x)))) t_3 = Float64(Float64(y * Float64(y + a)) + b) t_4 = Float64(t_3 * t_3) t_5 = Float64(y * t_3) t_6 = Float64(Float64(y * Float64(c + t_5)) + i) t_7 = Float64(t / t_6) tmp = 0.0 if (y <= -6.2e+125) tmp = Float64(Float64(z / y) + Float64(x - t_1)); elseif (y <= -2.9e+22) tmp = Float64(t_7 + Float64(Float64(t_2 / t_3) + Float64(Float64(230661.510616 * Float64(1.0 / t_5)) - Float64(c * Float64(Float64(z / t_4) + Float64(Float64(27464.7644705 * Float64(1.0 / Float64(t_3 * t_5))) + Float64(Float64(230661.510616 * Float64(1.0 / Float64(t_3 * Float64(t_3 * (y ^ 2.0))))) + Float64(Float64(y * x) / t_4)))))))); elseif (y <= 1.9e+60) tmp = Float64(t_7 + Float64(Float64(y * Float64(230661.510616 + Float64(y * t_2))) / t_6)); else tmp = Float64(Float64(Float64(x + Float64(Float64(z / y) + Float64(27464.7644705 / Float64(y * y)))) - Float64(Float64(z - Float64(x * a)) / Float64(Float64(y * y) / a))) - Float64(t_1 + Float64(Float64(b / y) * Float64(x / y)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = a / (y / x); t_2 = 27464.7644705 + (y * (z + (y * x))); t_3 = (y * (y + a)) + b; t_4 = t_3 * t_3; t_5 = y * t_3; t_6 = (y * (c + t_5)) + i; t_7 = t / t_6; tmp = 0.0; if (y <= -6.2e+125) tmp = (z / y) + (x - t_1); elseif (y <= -2.9e+22) tmp = t_7 + ((t_2 / t_3) + ((230661.510616 * (1.0 / t_5)) - (c * ((z / t_4) + ((27464.7644705 * (1.0 / (t_3 * t_5))) + ((230661.510616 * (1.0 / (t_3 * (t_3 * (y ^ 2.0))))) + ((y * x) / t_4))))))); elseif (y <= 1.9e+60) tmp = t_7 + ((y * (230661.510616 + (y * t_2))) / t_6); else tmp = ((x + ((z / y) + (27464.7644705 / (y * y)))) - ((z - (x * a)) / ((y * y) / a))) - (t_1 + ((b / y) * (x / y))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(27464.7644705 + N[(y * N[(z + N[(y * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]}, Block[{t$95$4 = N[(t$95$3 * t$95$3), $MachinePrecision]}, Block[{t$95$5 = N[(y * t$95$3), $MachinePrecision]}, Block[{t$95$6 = N[(N[(y * N[(c + t$95$5), $MachinePrecision]), $MachinePrecision] + i), $MachinePrecision]}, Block[{t$95$7 = N[(t / t$95$6), $MachinePrecision]}, If[LessEqual[y, -6.2e+125], N[(N[(z / y), $MachinePrecision] + N[(x - t$95$1), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -2.9e+22], N[(t$95$7 + N[(N[(t$95$2 / t$95$3), $MachinePrecision] + N[(N[(230661.510616 * N[(1.0 / t$95$5), $MachinePrecision]), $MachinePrecision] - N[(c * N[(N[(z / t$95$4), $MachinePrecision] + N[(N[(27464.7644705 * N[(1.0 / N[(t$95$3 * t$95$5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(230661.510616 * N[(1.0 / N[(t$95$3 * N[(t$95$3 * N[Power[y, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(y * x), $MachinePrecision] / t$95$4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.9e+60], N[(t$95$7 + N[(N[(y * N[(230661.510616 + N[(y * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t$95$6), $MachinePrecision]), $MachinePrecision], N[(N[(N[(x + N[(N[(z / y), $MachinePrecision] + N[(27464.7644705 / N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(z - N[(x * a), $MachinePrecision]), $MachinePrecision] / N[(N[(y * y), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(t$95$1 + N[(N[(b / y), $MachinePrecision] * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{a}{\frac{y}{x}}\\
t_2 := 27464.7644705 + y \cdot \left(z + y \cdot x\right)\\
t_3 := y \cdot \left(y + a\right) + b\\
t_4 := t_3 \cdot t_3\\
t_5 := y \cdot t_3\\
t_6 := y \cdot \left(c + t_5\right) + i\\
t_7 := \frac{t}{t_6}\\
\mathbf{if}\;y \leq -6.2 \cdot 10^{+125}:\\
\;\;\;\;\frac{z}{y} + \left(x - t_1\right)\\
\mathbf{elif}\;y \leq -2.9 \cdot 10^{+22}:\\
\;\;\;\;t_7 + \left(\frac{t_2}{t_3} + \left(230661.510616 \cdot \frac{1}{t_5} - c \cdot \left(\frac{z}{t_4} + \left(27464.7644705 \cdot \frac{1}{t_3 \cdot t_5} + \left(230661.510616 \cdot \frac{1}{t_3 \cdot \left(t_3 \cdot {y}^{2}\right)} + \frac{y \cdot x}{t_4}\right)\right)\right)\right)\right)\\
\mathbf{elif}\;y \leq 1.9 \cdot 10^{+60}:\\
\;\;\;\;t_7 + \frac{y \cdot \left(230661.510616 + y \cdot t_2\right)}{t_6}\\
\mathbf{else}:\\
\;\;\;\;\left(\left(x + \left(\frac{z}{y} + \frac{27464.7644705}{y \cdot y}\right)\right) - \frac{z - x \cdot a}{\frac{y \cdot y}{a}}\right) - \left(t_1 + \frac{b}{y} \cdot \frac{x}{y}\right)\\
\end{array}
\end{array}
if y < -6.2e125Initial program 0.0%
Taylor expanded in y around inf 64.9%
associate--l+64.9%
associate-/l*82.5%
Simplified82.5%
if -6.2e125 < y < -2.9e22Initial program 11.6%
Taylor expanded in t around inf 11.6%
Taylor expanded in i around 0 41.8%
Taylor expanded in c around 0 60.1%
if -2.9e22 < y < 1.90000000000000005e60Initial program 91.2%
Taylor expanded in t around inf 91.2%
if 1.90000000000000005e60 < y Initial program 0.7%
Taylor expanded in y around inf 55.8%
associate--r+55.8%
associate-+r+55.8%
associate-*r/55.8%
metadata-eval55.8%
unpow255.8%
associate-/l*57.7%
unpow257.7%
associate-/l*57.9%
unpow257.9%
times-frac66.8%
Simplified66.8%
Final simplification81.4%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (/ a (/ y x))) (t_2 (+ (* y (+ c (* y (+ (* y (+ y a)) b)))) i)))
(if (<= y -5.2e+53)
(+ (/ z y) (- x t_1))
(if (<= y 1.5e+60)
(+
(/ t t_2)
(/
(* y (+ 230661.510616 (* y (+ 27464.7644705 (* y (+ z (* y x)))))))
t_2))
(-
(-
(+ x (+ (/ z y) (/ 27464.7644705 (* y y))))
(/ (- z (* x a)) (/ (* y y) a)))
(+ t_1 (* (/ b y) (/ x y))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = a / (y / x);
double t_2 = (y * (c + (y * ((y * (y + a)) + b)))) + i;
double tmp;
if (y <= -5.2e+53) {
tmp = (z / y) + (x - t_1);
} else if (y <= 1.5e+60) {
tmp = (t / t_2) + ((y * (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x))))))) / t_2);
} else {
tmp = ((x + ((z / y) + (27464.7644705 / (y * y)))) - ((z - (x * a)) / ((y * y) / a))) - (t_1 + ((b / y) * (x / y)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = a / (y / x)
t_2 = (y * (c + (y * ((y * (y + a)) + b)))) + i
if (y <= (-5.2d+53)) then
tmp = (z / y) + (x - t_1)
else if (y <= 1.5d+60) then
tmp = (t / t_2) + ((y * (230661.510616d0 + (y * (27464.7644705d0 + (y * (z + (y * x))))))) / t_2)
else
tmp = ((x + ((z / y) + (27464.7644705d0 / (y * y)))) - ((z - (x * a)) / ((y * y) / a))) - (t_1 + ((b / y) * (x / y)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = a / (y / x);
double t_2 = (y * (c + (y * ((y * (y + a)) + b)))) + i;
double tmp;
if (y <= -5.2e+53) {
tmp = (z / y) + (x - t_1);
} else if (y <= 1.5e+60) {
tmp = (t / t_2) + ((y * (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x))))))) / t_2);
} else {
tmp = ((x + ((z / y) + (27464.7644705 / (y * y)))) - ((z - (x * a)) / ((y * y) / a))) - (t_1 + ((b / y) * (x / y)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = a / (y / x) t_2 = (y * (c + (y * ((y * (y + a)) + b)))) + i tmp = 0 if y <= -5.2e+53: tmp = (z / y) + (x - t_1) elif y <= 1.5e+60: tmp = (t / t_2) + ((y * (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x))))))) / t_2) else: tmp = ((x + ((z / y) + (27464.7644705 / (y * y)))) - ((z - (x * a)) / ((y * y) / a))) - (t_1 + ((b / y) * (x / y))) return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(a / Float64(y / x)) t_2 = Float64(Float64(y * Float64(c + Float64(y * Float64(Float64(y * Float64(y + a)) + b)))) + i) tmp = 0.0 if (y <= -5.2e+53) tmp = Float64(Float64(z / y) + Float64(x - t_1)); elseif (y <= 1.5e+60) tmp = Float64(Float64(t / t_2) + Float64(Float64(y * Float64(230661.510616 + Float64(y * Float64(27464.7644705 + Float64(y * Float64(z + Float64(y * x))))))) / t_2)); else tmp = Float64(Float64(Float64(x + Float64(Float64(z / y) + Float64(27464.7644705 / Float64(y * y)))) - Float64(Float64(z - Float64(x * a)) / Float64(Float64(y * y) / a))) - Float64(t_1 + Float64(Float64(b / y) * Float64(x / y)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = a / (y / x); t_2 = (y * (c + (y * ((y * (y + a)) + b)))) + i; tmp = 0.0; if (y <= -5.2e+53) tmp = (z / y) + (x - t_1); elseif (y <= 1.5e+60) tmp = (t / t_2) + ((y * (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x))))))) / t_2); else tmp = ((x + ((z / y) + (27464.7644705 / (y * y)))) - ((z - (x * a)) / ((y * y) / a))) - (t_1 + ((b / y) * (x / y))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(y * N[(c + N[(y * N[(N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + i), $MachinePrecision]}, If[LessEqual[y, -5.2e+53], N[(N[(z / y), $MachinePrecision] + N[(x - t$95$1), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.5e+60], N[(N[(t / t$95$2), $MachinePrecision] + N[(N[(y * N[(230661.510616 + N[(y * N[(27464.7644705 + N[(y * N[(z + N[(y * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t$95$2), $MachinePrecision]), $MachinePrecision], N[(N[(N[(x + N[(N[(z / y), $MachinePrecision] + N[(27464.7644705 / N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(z - N[(x * a), $MachinePrecision]), $MachinePrecision] / N[(N[(y * y), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(t$95$1 + N[(N[(b / y), $MachinePrecision] * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{a}{\frac{y}{x}}\\
t_2 := y \cdot \left(c + y \cdot \left(y \cdot \left(y + a\right) + b\right)\right) + i\\
\mathbf{if}\;y \leq -5.2 \cdot 10^{+53}:\\
\;\;\;\;\frac{z}{y} + \left(x - t_1\right)\\
\mathbf{elif}\;y \leq 1.5 \cdot 10^{+60}:\\
\;\;\;\;\frac{t}{t_2} + \frac{y \cdot \left(230661.510616 + y \cdot \left(27464.7644705 + y \cdot \left(z + y \cdot x\right)\right)\right)}{t_2}\\
\mathbf{else}:\\
\;\;\;\;\left(\left(x + \left(\frac{z}{y} + \frac{27464.7644705}{y \cdot y}\right)\right) - \frac{z - x \cdot a}{\frac{y \cdot y}{a}}\right) - \left(t_1 + \frac{b}{y} \cdot \frac{x}{y}\right)\\
\end{array}
\end{array}
if y < -5.19999999999999996e53Initial program 0.6%
Taylor expanded in y around inf 52.1%
associate--l+52.1%
associate-/l*61.8%
Simplified61.8%
if -5.19999999999999996e53 < y < 1.4999999999999999e60Initial program 87.4%
Taylor expanded in t around inf 87.4%
if 1.4999999999999999e60 < y Initial program 0.7%
Taylor expanded in y around inf 55.8%
associate--r+55.8%
associate-+r+55.8%
associate-*r/55.8%
metadata-eval55.8%
unpow255.8%
associate-/l*57.7%
unpow257.7%
associate-/l*57.9%
unpow257.9%
times-frac66.8%
Simplified66.8%
Final simplification78.4%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (/ a (/ y x))))
(if (<= y -6.2e+54)
(+ (/ z y) (- x t_1))
(if (<= y 1.7e+60)
(/
(+
t
(* y (+ 230661.510616 (* y (+ 27464.7644705 (* y (+ z (* y x))))))))
(+ (* y (+ c (* y (+ (* y (+ y a)) b)))) i))
(-
(-
(+ x (+ (/ z y) (/ 27464.7644705 (* y y))))
(/ (- z (* x a)) (/ (* y y) a)))
(+ t_1 (* (/ b y) (/ x y))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = a / (y / x);
double tmp;
if (y <= -6.2e+54) {
tmp = (z / y) + (x - t_1);
} else if (y <= 1.7e+60) {
tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x)))))))) / ((y * (c + (y * ((y * (y + a)) + b)))) + i);
} else {
tmp = ((x + ((z / y) + (27464.7644705 / (y * y)))) - ((z - (x * a)) / ((y * y) / a))) - (t_1 + ((b / y) * (x / y)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: t_1
real(8) :: tmp
t_1 = a / (y / x)
if (y <= (-6.2d+54)) then
tmp = (z / y) + (x - t_1)
else if (y <= 1.7d+60) then
tmp = (t + (y * (230661.510616d0 + (y * (27464.7644705d0 + (y * (z + (y * x)))))))) / ((y * (c + (y * ((y * (y + a)) + b)))) + i)
else
tmp = ((x + ((z / y) + (27464.7644705d0 / (y * y)))) - ((z - (x * a)) / ((y * y) / a))) - (t_1 + ((b / y) * (x / y)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = a / (y / x);
double tmp;
if (y <= -6.2e+54) {
tmp = (z / y) + (x - t_1);
} else if (y <= 1.7e+60) {
tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x)))))))) / ((y * (c + (y * ((y * (y + a)) + b)))) + i);
} else {
tmp = ((x + ((z / y) + (27464.7644705 / (y * y)))) - ((z - (x * a)) / ((y * y) / a))) - (t_1 + ((b / y) * (x / y)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = a / (y / x) tmp = 0 if y <= -6.2e+54: tmp = (z / y) + (x - t_1) elif y <= 1.7e+60: tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x)))))))) / ((y * (c + (y * ((y * (y + a)) + b)))) + i) else: tmp = ((x + ((z / y) + (27464.7644705 / (y * y)))) - ((z - (x * a)) / ((y * y) / a))) - (t_1 + ((b / y) * (x / y))) return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(a / Float64(y / x)) tmp = 0.0 if (y <= -6.2e+54) tmp = Float64(Float64(z / y) + Float64(x - t_1)); elseif (y <= 1.7e+60) tmp = Float64(Float64(t + Float64(y * Float64(230661.510616 + Float64(y * Float64(27464.7644705 + Float64(y * Float64(z + Float64(y * x)))))))) / Float64(Float64(y * Float64(c + Float64(y * Float64(Float64(y * Float64(y + a)) + b)))) + i)); else tmp = Float64(Float64(Float64(x + Float64(Float64(z / y) + Float64(27464.7644705 / Float64(y * y)))) - Float64(Float64(z - Float64(x * a)) / Float64(Float64(y * y) / a))) - Float64(t_1 + Float64(Float64(b / y) * Float64(x / y)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = a / (y / x); tmp = 0.0; if (y <= -6.2e+54) tmp = (z / y) + (x - t_1); elseif (y <= 1.7e+60) tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x)))))))) / ((y * (c + (y * ((y * (y + a)) + b)))) + i); else tmp = ((x + ((z / y) + (27464.7644705 / (y * y)))) - ((z - (x * a)) / ((y * y) / a))) - (t_1 + ((b / y) * (x / y))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -6.2e+54], N[(N[(z / y), $MachinePrecision] + N[(x - t$95$1), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.7e+60], N[(N[(t + N[(y * N[(230661.510616 + N[(y * N[(27464.7644705 + N[(y * N[(z + N[(y * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(y * N[(c + N[(y * N[(N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision], N[(N[(N[(x + N[(N[(z / y), $MachinePrecision] + N[(27464.7644705 / N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(z - N[(x * a), $MachinePrecision]), $MachinePrecision] / N[(N[(y * y), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(t$95$1 + N[(N[(b / y), $MachinePrecision] * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{a}{\frac{y}{x}}\\
\mathbf{if}\;y \leq -6.2 \cdot 10^{+54}:\\
\;\;\;\;\frac{z}{y} + \left(x - t_1\right)\\
\mathbf{elif}\;y \leq 1.7 \cdot 10^{+60}:\\
\;\;\;\;\frac{t + y \cdot \left(230661.510616 + y \cdot \left(27464.7644705 + y \cdot \left(z + y \cdot x\right)\right)\right)}{y \cdot \left(c + y \cdot \left(y \cdot \left(y + a\right) + b\right)\right) + i}\\
\mathbf{else}:\\
\;\;\;\;\left(\left(x + \left(\frac{z}{y} + \frac{27464.7644705}{y \cdot y}\right)\right) - \frac{z - x \cdot a}{\frac{y \cdot y}{a}}\right) - \left(t_1 + \frac{b}{y} \cdot \frac{x}{y}\right)\\
\end{array}
\end{array}
if y < -6.1999999999999999e54Initial program 0.6%
Taylor expanded in y around inf 52.1%
associate--l+52.1%
associate-/l*61.8%
Simplified61.8%
if -6.1999999999999999e54 < y < 1.7e60Initial program 87.4%
if 1.7e60 < y Initial program 0.7%
Taylor expanded in y around inf 55.8%
associate--r+55.8%
associate-+r+55.8%
associate-*r/55.8%
metadata-eval55.8%
unpow255.8%
associate-/l*57.7%
unpow257.7%
associate-/l*57.9%
unpow257.9%
times-frac66.8%
Simplified66.8%
Final simplification78.4%
(FPCore (x y z t a b c i)
:precision binary64
(if (or (<= y -1.7e+55) (not (<= y 6e+59)))
(+ (/ z y) (- x (/ a (/ y x))))
(/
(+ t (* y (+ 230661.510616 (* y (+ 27464.7644705 (* y (+ z (* y x))))))))
(+ (* y (+ c (* y (+ (* y (+ y a)) b)))) i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -1.7e+55) || !(y <= 6e+59)) {
tmp = (z / y) + (x - (a / (y / x)));
} else {
tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x)))))))) / ((y * (c + (y * ((y * (y + a)) + b)))) + i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if ((y <= (-1.7d+55)) .or. (.not. (y <= 6d+59))) then
tmp = (z / y) + (x - (a / (y / x)))
else
tmp = (t + (y * (230661.510616d0 + (y * (27464.7644705d0 + (y * (z + (y * x)))))))) / ((y * (c + (y * ((y * (y + a)) + b)))) + i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -1.7e+55) || !(y <= 6e+59)) {
tmp = (z / y) + (x - (a / (y / x)));
} else {
tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x)))))))) / ((y * (c + (y * ((y * (y + a)) + b)))) + i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (y <= -1.7e+55) or not (y <= 6e+59): tmp = (z / y) + (x - (a / (y / x))) else: tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x)))))))) / ((y * (c + (y * ((y * (y + a)) + b)))) + i) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((y <= -1.7e+55) || !(y <= 6e+59)) tmp = Float64(Float64(z / y) + Float64(x - Float64(a / Float64(y / x)))); else tmp = Float64(Float64(t + Float64(y * Float64(230661.510616 + Float64(y * Float64(27464.7644705 + Float64(y * Float64(z + Float64(y * x)))))))) / Float64(Float64(y * Float64(c + Float64(y * Float64(Float64(y * Float64(y + a)) + b)))) + i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((y <= -1.7e+55) || ~((y <= 6e+59))) tmp = (z / y) + (x - (a / (y / x))); else tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x)))))))) / ((y * (c + (y * ((y * (y + a)) + b)))) + i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[y, -1.7e+55], N[Not[LessEqual[y, 6e+59]], $MachinePrecision]], N[(N[(z / y), $MachinePrecision] + N[(x - N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(t + N[(y * N[(230661.510616 + N[(y * N[(27464.7644705 + N[(y * N[(z + N[(y * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(y * N[(c + N[(y * N[(N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.7 \cdot 10^{+55} \lor \neg \left(y \leq 6 \cdot 10^{+59}\right):\\
\;\;\;\;\frac{z}{y} + \left(x - \frac{a}{\frac{y}{x}}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{t + y \cdot \left(230661.510616 + y \cdot \left(27464.7644705 + y \cdot \left(z + y \cdot x\right)\right)\right)}{y \cdot \left(c + y \cdot \left(y \cdot \left(y + a\right) + b\right)\right) + i}\\
\end{array}
\end{array}
if y < -1.6999999999999999e55 or 6.0000000000000001e59 < y Initial program 0.6%
Taylor expanded in y around inf 59.2%
associate--l+59.2%
associate-/l*64.1%
Simplified64.1%
if -1.6999999999999999e55 < y < 6.0000000000000001e59Initial program 87.4%
Final simplification78.2%
(FPCore (x y z t a b c i)
:precision binary64
(if (or (<= y -2.4e+54) (not (<= y 1.3e+61)))
(+ (/ z y) (- x (/ a (/ y x))))
(/
(+ t (* y (+ 230661.510616 (* y (+ 27464.7644705 (* y z))))))
(+ (* y (+ c (* y (+ (* y (+ y a)) b)))) i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -2.4e+54) || !(y <= 1.3e+61)) {
tmp = (z / y) + (x - (a / (y / x)));
} else {
tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / ((y * (c + (y * ((y * (y + a)) + b)))) + i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if ((y <= (-2.4d+54)) .or. (.not. (y <= 1.3d+61))) then
tmp = (z / y) + (x - (a / (y / x)))
else
tmp = (t + (y * (230661.510616d0 + (y * (27464.7644705d0 + (y * z)))))) / ((y * (c + (y * ((y * (y + a)) + b)))) + i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -2.4e+54) || !(y <= 1.3e+61)) {
tmp = (z / y) + (x - (a / (y / x)));
} else {
tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / ((y * (c + (y * ((y * (y + a)) + b)))) + i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (y <= -2.4e+54) or not (y <= 1.3e+61): tmp = (z / y) + (x - (a / (y / x))) else: tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / ((y * (c + (y * ((y * (y + a)) + b)))) + i) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((y <= -2.4e+54) || !(y <= 1.3e+61)) tmp = Float64(Float64(z / y) + Float64(x - Float64(a / Float64(y / x)))); else tmp = Float64(Float64(t + Float64(y * Float64(230661.510616 + Float64(y * Float64(27464.7644705 + Float64(y * z)))))) / Float64(Float64(y * Float64(c + Float64(y * Float64(Float64(y * Float64(y + a)) + b)))) + i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((y <= -2.4e+54) || ~((y <= 1.3e+61))) tmp = (z / y) + (x - (a / (y / x))); else tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / ((y * (c + (y * ((y * (y + a)) + b)))) + i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[y, -2.4e+54], N[Not[LessEqual[y, 1.3e+61]], $MachinePrecision]], N[(N[(z / y), $MachinePrecision] + N[(x - N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(t + N[(y * N[(230661.510616 + N[(y * N[(27464.7644705 + N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(y * N[(c + N[(y * N[(N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.4 \cdot 10^{+54} \lor \neg \left(y \leq 1.3 \cdot 10^{+61}\right):\\
\;\;\;\;\frac{z}{y} + \left(x - \frac{a}{\frac{y}{x}}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{t + y \cdot \left(230661.510616 + y \cdot \left(27464.7644705 + y \cdot z\right)\right)}{y \cdot \left(c + y \cdot \left(y \cdot \left(y + a\right) + b\right)\right) + i}\\
\end{array}
\end{array}
if y < -2.39999999999999998e54 or 1.29999999999999986e61 < y Initial program 0.6%
Taylor expanded in y around inf 59.8%
associate--l+59.8%
associate-/l*64.8%
Simplified64.8%
if -2.39999999999999998e54 < y < 1.29999999999999986e61Initial program 86.9%
Taylor expanded in x around 0 83.2%
Final simplification76.0%
(FPCore (x y z t a b c i)
:precision binary64
(if (or (<= y -3.5e+54) (not (<= y 2.4e+60)))
(+ (/ z y) (- x (/ a (/ y x))))
(/
(+ t (* y (+ 230661.510616 (* z (* y y)))))
(+ (* y (+ c (* y (+ (* y (+ y a)) b)))) i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -3.5e+54) || !(y <= 2.4e+60)) {
tmp = (z / y) + (x - (a / (y / x)));
} else {
tmp = (t + (y * (230661.510616 + (z * (y * y))))) / ((y * (c + (y * ((y * (y + a)) + b)))) + i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if ((y <= (-3.5d+54)) .or. (.not. (y <= 2.4d+60))) then
tmp = (z / y) + (x - (a / (y / x)))
else
tmp = (t + (y * (230661.510616d0 + (z * (y * y))))) / ((y * (c + (y * ((y * (y + a)) + b)))) + i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -3.5e+54) || !(y <= 2.4e+60)) {
tmp = (z / y) + (x - (a / (y / x)));
} else {
tmp = (t + (y * (230661.510616 + (z * (y * y))))) / ((y * (c + (y * ((y * (y + a)) + b)))) + i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (y <= -3.5e+54) or not (y <= 2.4e+60): tmp = (z / y) + (x - (a / (y / x))) else: tmp = (t + (y * (230661.510616 + (z * (y * y))))) / ((y * (c + (y * ((y * (y + a)) + b)))) + i) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((y <= -3.5e+54) || !(y <= 2.4e+60)) tmp = Float64(Float64(z / y) + Float64(x - Float64(a / Float64(y / x)))); else tmp = Float64(Float64(t + Float64(y * Float64(230661.510616 + Float64(z * Float64(y * y))))) / Float64(Float64(y * Float64(c + Float64(y * Float64(Float64(y * Float64(y + a)) + b)))) + i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((y <= -3.5e+54) || ~((y <= 2.4e+60))) tmp = (z / y) + (x - (a / (y / x))); else tmp = (t + (y * (230661.510616 + (z * (y * y))))) / ((y * (c + (y * ((y * (y + a)) + b)))) + i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[y, -3.5e+54], N[Not[LessEqual[y, 2.4e+60]], $MachinePrecision]], N[(N[(z / y), $MachinePrecision] + N[(x - N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(t + N[(y * N[(230661.510616 + N[(z * N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(y * N[(c + N[(y * N[(N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -3.5 \cdot 10^{+54} \lor \neg \left(y \leq 2.4 \cdot 10^{+60}\right):\\
\;\;\;\;\frac{z}{y} + \left(x - \frac{a}{\frac{y}{x}}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{t + y \cdot \left(230661.510616 + z \cdot \left(y \cdot y\right)\right)}{y \cdot \left(c + y \cdot \left(y \cdot \left(y + a\right) + b\right)\right) + i}\\
\end{array}
\end{array}
if y < -3.5000000000000001e54 or 2.4e60 < y Initial program 0.6%
Taylor expanded in y around inf 59.8%
associate--l+59.8%
associate-/l*64.8%
Simplified64.8%
if -3.5000000000000001e54 < y < 2.4e60Initial program 86.9%
Taylor expanded in z around inf 81.5%
*-commutative81.5%
unpow281.5%
Simplified81.5%
Final simplification75.0%
(FPCore (x y z t a b c i)
:precision binary64
(if (or (<= y -7.2e+31) (not (<= y 1.25e+61)))
(+ (/ z y) (- x (/ a (/ y x))))
(/
(+ t (* y (+ 230661.510616 (* y 27464.7644705))))
(+ (* y (+ c (* y (+ (* y (+ y a)) b)))) i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -7.2e+31) || !(y <= 1.25e+61)) {
tmp = (z / y) + (x - (a / (y / x)));
} else {
tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / ((y * (c + (y * ((y * (y + a)) + b)))) + i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if ((y <= (-7.2d+31)) .or. (.not. (y <= 1.25d+61))) then
tmp = (z / y) + (x - (a / (y / x)))
else
tmp = (t + (y * (230661.510616d0 + (y * 27464.7644705d0)))) / ((y * (c + (y * ((y * (y + a)) + b)))) + i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -7.2e+31) || !(y <= 1.25e+61)) {
tmp = (z / y) + (x - (a / (y / x)));
} else {
tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / ((y * (c + (y * ((y * (y + a)) + b)))) + i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (y <= -7.2e+31) or not (y <= 1.25e+61): tmp = (z / y) + (x - (a / (y / x))) else: tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / ((y * (c + (y * ((y * (y + a)) + b)))) + i) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((y <= -7.2e+31) || !(y <= 1.25e+61)) tmp = Float64(Float64(z / y) + Float64(x - Float64(a / Float64(y / x)))); else tmp = Float64(Float64(t + Float64(y * Float64(230661.510616 + Float64(y * 27464.7644705)))) / Float64(Float64(y * Float64(c + Float64(y * Float64(Float64(y * Float64(y + a)) + b)))) + i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((y <= -7.2e+31) || ~((y <= 1.25e+61))) tmp = (z / y) + (x - (a / (y / x))); else tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / ((y * (c + (y * ((y * (y + a)) + b)))) + i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[y, -7.2e+31], N[Not[LessEqual[y, 1.25e+61]], $MachinePrecision]], N[(N[(z / y), $MachinePrecision] + N[(x - N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(t + N[(y * N[(230661.510616 + N[(y * 27464.7644705), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(y * N[(c + N[(y * N[(N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -7.2 \cdot 10^{+31} \lor \neg \left(y \leq 1.25 \cdot 10^{+61}\right):\\
\;\;\;\;\frac{z}{y} + \left(x - \frac{a}{\frac{y}{x}}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{t + y \cdot \left(230661.510616 + y \cdot 27464.7644705\right)}{y \cdot \left(c + y \cdot \left(y \cdot \left(y + a\right) + b\right)\right) + i}\\
\end{array}
\end{array}
if y < -7.19999999999999992e31 or 1.25000000000000004e61 < y Initial program 3.5%
Taylor expanded in y around inf 56.9%
associate--l+56.9%
associate-/l*61.5%
Simplified61.5%
if -7.19999999999999992e31 < y < 1.25000000000000004e61Initial program 88.8%
Taylor expanded in y around 0 79.5%
*-commutative75.7%
Simplified79.5%
Final simplification72.0%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= y -7.5e+30) (not (<= y 2.9e+60))) (+ (/ z y) (- x (/ a (/ y x)))) (/ (+ t (* y 230661.510616)) (+ (* y (+ c (* y (+ (* y (+ y a)) b)))) i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -7.5e+30) || !(y <= 2.9e+60)) {
tmp = (z / y) + (x - (a / (y / x)));
} else {
tmp = (t + (y * 230661.510616)) / ((y * (c + (y * ((y * (y + a)) + b)))) + i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if ((y <= (-7.5d+30)) .or. (.not. (y <= 2.9d+60))) then
tmp = (z / y) + (x - (a / (y / x)))
else
tmp = (t + (y * 230661.510616d0)) / ((y * (c + (y * ((y * (y + a)) + b)))) + i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -7.5e+30) || !(y <= 2.9e+60)) {
tmp = (z / y) + (x - (a / (y / x)));
} else {
tmp = (t + (y * 230661.510616)) / ((y * (c + (y * ((y * (y + a)) + b)))) + i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (y <= -7.5e+30) or not (y <= 2.9e+60): tmp = (z / y) + (x - (a / (y / x))) else: tmp = (t + (y * 230661.510616)) / ((y * (c + (y * ((y * (y + a)) + b)))) + i) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((y <= -7.5e+30) || !(y <= 2.9e+60)) tmp = Float64(Float64(z / y) + Float64(x - Float64(a / Float64(y / x)))); else tmp = Float64(Float64(t + Float64(y * 230661.510616)) / Float64(Float64(y * Float64(c + Float64(y * Float64(Float64(y * Float64(y + a)) + b)))) + i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((y <= -7.5e+30) || ~((y <= 2.9e+60))) tmp = (z / y) + (x - (a / (y / x))); else tmp = (t + (y * 230661.510616)) / ((y * (c + (y * ((y * (y + a)) + b)))) + i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[y, -7.5e+30], N[Not[LessEqual[y, 2.9e+60]], $MachinePrecision]], N[(N[(z / y), $MachinePrecision] + N[(x - N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(t + N[(y * 230661.510616), $MachinePrecision]), $MachinePrecision] / N[(N[(y * N[(c + N[(y * N[(N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -7.5 \cdot 10^{+30} \lor \neg \left(y \leq 2.9 \cdot 10^{+60}\right):\\
\;\;\;\;\frac{z}{y} + \left(x - \frac{a}{\frac{y}{x}}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{t + y \cdot 230661.510616}{y \cdot \left(c + y \cdot \left(y \cdot \left(y + a\right) + b\right)\right) + i}\\
\end{array}
\end{array}
if y < -7.49999999999999973e30 or 2.9e60 < y Initial program 3.5%
Taylor expanded in y around inf 56.9%
associate--l+56.9%
associate-/l*61.5%
Simplified61.5%
if -7.49999999999999973e30 < y < 2.9e60Initial program 88.8%
Taylor expanded in y around 0 78.4%
*-commutative75.0%
Simplified78.4%
Final simplification71.4%
(FPCore (x y z t a b c i)
:precision binary64
(if (or (<= y -2.7e-9) (not (<= y 2.4e+60)))
(+ (/ z y) (- x (/ a (/ y x))))
(/
(+ t (* y (+ 230661.510616 (* y 27464.7644705))))
(+ i (* y (+ c (* y b)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -2.7e-9) || !(y <= 2.4e+60)) {
tmp = (z / y) + (x - (a / (y / x)));
} else {
tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / (i + (y * (c + (y * b))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if ((y <= (-2.7d-9)) .or. (.not. (y <= 2.4d+60))) then
tmp = (z / y) + (x - (a / (y / x)))
else
tmp = (t + (y * (230661.510616d0 + (y * 27464.7644705d0)))) / (i + (y * (c + (y * b))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -2.7e-9) || !(y <= 2.4e+60)) {
tmp = (z / y) + (x - (a / (y / x)));
} else {
tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / (i + (y * (c + (y * b))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (y <= -2.7e-9) or not (y <= 2.4e+60): tmp = (z / y) + (x - (a / (y / x))) else: tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / (i + (y * (c + (y * b)))) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((y <= -2.7e-9) || !(y <= 2.4e+60)) tmp = Float64(Float64(z / y) + Float64(x - Float64(a / Float64(y / x)))); else tmp = Float64(Float64(t + Float64(y * Float64(230661.510616 + Float64(y * 27464.7644705)))) / Float64(i + Float64(y * Float64(c + Float64(y * b))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((y <= -2.7e-9) || ~((y <= 2.4e+60))) tmp = (z / y) + (x - (a / (y / x))); else tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / (i + (y * (c + (y * b)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[y, -2.7e-9], N[Not[LessEqual[y, 2.4e+60]], $MachinePrecision]], N[(N[(z / y), $MachinePrecision] + N[(x - N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(t + N[(y * N[(230661.510616 + N[(y * 27464.7644705), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(i + N[(y * N[(c + N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.7 \cdot 10^{-9} \lor \neg \left(y \leq 2.4 \cdot 10^{+60}\right):\\
\;\;\;\;\frac{z}{y} + \left(x - \frac{a}{\frac{y}{x}}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{t + y \cdot \left(230661.510616 + y \cdot 27464.7644705\right)}{i + y \cdot \left(c + y \cdot b\right)}\\
\end{array}
\end{array}
if y < -2.7000000000000002e-9 or 2.4e60 < y Initial program 7.7%
Taylor expanded in y around inf 53.1%
associate--l+53.1%
associate-/l*57.4%
Simplified57.4%
if -2.7000000000000002e-9 < y < 2.4e60Initial program 91.5%
Taylor expanded in y around 0 84.6%
Taylor expanded in y around 0 80.9%
*-commutative80.9%
Simplified80.9%
Final simplification70.1%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= y -2.7e-9) (not (<= y 2.4e+60))) (+ (/ z y) (- x (/ a (/ y x)))) (/ (+ t (* y 230661.510616)) (+ i (* y (+ c (* y b)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -2.7e-9) || !(y <= 2.4e+60)) {
tmp = (z / y) + (x - (a / (y / x)));
} else {
tmp = (t + (y * 230661.510616)) / (i + (y * (c + (y * b))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if ((y <= (-2.7d-9)) .or. (.not. (y <= 2.4d+60))) then
tmp = (z / y) + (x - (a / (y / x)))
else
tmp = (t + (y * 230661.510616d0)) / (i + (y * (c + (y * b))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -2.7e-9) || !(y <= 2.4e+60)) {
tmp = (z / y) + (x - (a / (y / x)));
} else {
tmp = (t + (y * 230661.510616)) / (i + (y * (c + (y * b))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (y <= -2.7e-9) or not (y <= 2.4e+60): tmp = (z / y) + (x - (a / (y / x))) else: tmp = (t + (y * 230661.510616)) / (i + (y * (c + (y * b)))) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((y <= -2.7e-9) || !(y <= 2.4e+60)) tmp = Float64(Float64(z / y) + Float64(x - Float64(a / Float64(y / x)))); else tmp = Float64(Float64(t + Float64(y * 230661.510616)) / Float64(i + Float64(y * Float64(c + Float64(y * b))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((y <= -2.7e-9) || ~((y <= 2.4e+60))) tmp = (z / y) + (x - (a / (y / x))); else tmp = (t + (y * 230661.510616)) / (i + (y * (c + (y * b)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[y, -2.7e-9], N[Not[LessEqual[y, 2.4e+60]], $MachinePrecision]], N[(N[(z / y), $MachinePrecision] + N[(x - N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(t + N[(y * 230661.510616), $MachinePrecision]), $MachinePrecision] / N[(i + N[(y * N[(c + N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.7 \cdot 10^{-9} \lor \neg \left(y \leq 2.4 \cdot 10^{+60}\right):\\
\;\;\;\;\frac{z}{y} + \left(x - \frac{a}{\frac{y}{x}}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{t + y \cdot 230661.510616}{i + y \cdot \left(c + y \cdot b\right)}\\
\end{array}
\end{array}
if y < -2.7000000000000002e-9 or 2.4e60 < y Initial program 7.7%
Taylor expanded in y around inf 53.1%
associate--l+53.1%
associate-/l*57.4%
Simplified57.4%
if -2.7000000000000002e-9 < y < 2.4e60Initial program 91.5%
Taylor expanded in y around 0 84.6%
Taylor expanded in y around 0 80.0%
*-commutative80.0%
Simplified80.0%
Final simplification69.7%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= y -2.7e-9) (not (<= y 1.4e+15))) (+ (/ z y) (- x (/ a (/ y x)))) (+ (* 230661.510616 (/ y i)) (/ t i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -2.7e-9) || !(y <= 1.4e+15)) {
tmp = (z / y) + (x - (a / (y / x)));
} else {
tmp = (230661.510616 * (y / i)) + (t / i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if ((y <= (-2.7d-9)) .or. (.not. (y <= 1.4d+15))) then
tmp = (z / y) + (x - (a / (y / x)))
else
tmp = (230661.510616d0 * (y / i)) + (t / i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -2.7e-9) || !(y <= 1.4e+15)) {
tmp = (z / y) + (x - (a / (y / x)));
} else {
tmp = (230661.510616 * (y / i)) + (t / i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (y <= -2.7e-9) or not (y <= 1.4e+15): tmp = (z / y) + (x - (a / (y / x))) else: tmp = (230661.510616 * (y / i)) + (t / i) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((y <= -2.7e-9) || !(y <= 1.4e+15)) tmp = Float64(Float64(z / y) + Float64(x - Float64(a / Float64(y / x)))); else tmp = Float64(Float64(230661.510616 * Float64(y / i)) + Float64(t / i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((y <= -2.7e-9) || ~((y <= 1.4e+15))) tmp = (z / y) + (x - (a / (y / x))); else tmp = (230661.510616 * (y / i)) + (t / i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[y, -2.7e-9], N[Not[LessEqual[y, 1.4e+15]], $MachinePrecision]], N[(N[(z / y), $MachinePrecision] + N[(x - N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(230661.510616 * N[(y / i), $MachinePrecision]), $MachinePrecision] + N[(t / i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.7 \cdot 10^{-9} \lor \neg \left(y \leq 1.4 \cdot 10^{+15}\right):\\
\;\;\;\;\frac{z}{y} + \left(x - \frac{a}{\frac{y}{x}}\right)\\
\mathbf{else}:\\
\;\;\;\;230661.510616 \cdot \frac{y}{i} + \frac{t}{i}\\
\end{array}
\end{array}
if y < -2.7000000000000002e-9 or 1.4e15 < y Initial program 10.8%
Taylor expanded in y around inf 47.7%
associate--l+47.7%
associate-/l*51.4%
Simplified51.4%
if -2.7000000000000002e-9 < y < 1.4e15Initial program 98.9%
Taylor expanded in c around 0 78.8%
Taylor expanded in y around 0 63.2%
Final simplification57.0%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= y -2.7e-9) (not (<= y 2.4e+60))) (+ (/ z y) (- x (/ a (/ y x)))) (/ t (+ i (* y (+ c (* y b)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -2.7e-9) || !(y <= 2.4e+60)) {
tmp = (z / y) + (x - (a / (y / x)));
} else {
tmp = t / (i + (y * (c + (y * b))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if ((y <= (-2.7d-9)) .or. (.not. (y <= 2.4d+60))) then
tmp = (z / y) + (x - (a / (y / x)))
else
tmp = t / (i + (y * (c + (y * b))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -2.7e-9) || !(y <= 2.4e+60)) {
tmp = (z / y) + (x - (a / (y / x)));
} else {
tmp = t / (i + (y * (c + (y * b))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (y <= -2.7e-9) or not (y <= 2.4e+60): tmp = (z / y) + (x - (a / (y / x))) else: tmp = t / (i + (y * (c + (y * b)))) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((y <= -2.7e-9) || !(y <= 2.4e+60)) tmp = Float64(Float64(z / y) + Float64(x - Float64(a / Float64(y / x)))); else tmp = Float64(t / Float64(i + Float64(y * Float64(c + Float64(y * b))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((y <= -2.7e-9) || ~((y <= 2.4e+60))) tmp = (z / y) + (x - (a / (y / x))); else tmp = t / (i + (y * (c + (y * b)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[y, -2.7e-9], N[Not[LessEqual[y, 2.4e+60]], $MachinePrecision]], N[(N[(z / y), $MachinePrecision] + N[(x - N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t / N[(i + N[(y * N[(c + N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.7 \cdot 10^{-9} \lor \neg \left(y \leq 2.4 \cdot 10^{+60}\right):\\
\;\;\;\;\frac{z}{y} + \left(x - \frac{a}{\frac{y}{x}}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{t}{i + y \cdot \left(c + y \cdot b\right)}\\
\end{array}
\end{array}
if y < -2.7000000000000002e-9 or 2.4e60 < y Initial program 7.7%
Taylor expanded in y around inf 53.1%
associate--l+53.1%
associate-/l*57.4%
Simplified57.4%
if -2.7000000000000002e-9 < y < 2.4e60Initial program 91.5%
Taylor expanded in y around 0 84.6%
Taylor expanded in t around inf 65.3%
Final simplification61.7%
(FPCore (x y z t a b c i) :precision binary64 (if (<= y -7.2e-10) x (if (<= y 4.2e+58) (+ (* 230661.510616 (/ y i)) (/ t i)) x)))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (y <= -7.2e-10) {
tmp = x;
} else if (y <= 4.2e+58) {
tmp = (230661.510616 * (y / i)) + (t / i);
} else {
tmp = x;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if (y <= (-7.2d-10)) then
tmp = x
else if (y <= 4.2d+58) then
tmp = (230661.510616d0 * (y / i)) + (t / i)
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (y <= -7.2e-10) {
tmp = x;
} else if (y <= 4.2e+58) {
tmp = (230661.510616 * (y / i)) + (t / i);
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if y <= -7.2e-10: tmp = x elif y <= 4.2e+58: tmp = (230661.510616 * (y / i)) + (t / i) else: tmp = x return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (y <= -7.2e-10) tmp = x; elseif (y <= 4.2e+58) tmp = Float64(Float64(230661.510616 * Float64(y / i)) + Float64(t / i)); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (y <= -7.2e-10) tmp = x; elseif (y <= 4.2e+58) tmp = (230661.510616 * (y / i)) + (t / i); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, -7.2e-10], x, If[LessEqual[y, 4.2e+58], N[(N[(230661.510616 * N[(y / i), $MachinePrecision]), $MachinePrecision] + N[(t / i), $MachinePrecision]), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -7.2 \cdot 10^{-10}:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq 4.2 \cdot 10^{+58}:\\
\;\;\;\;230661.510616 \cdot \frac{y}{i} + \frac{t}{i}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if y < -7.2e-10 or 4.20000000000000024e58 < y Initial program 7.6%
Taylor expanded in y around inf 37.8%
if -7.2e-10 < y < 4.20000000000000024e58Initial program 92.1%
Taylor expanded in c around 0 72.8%
Taylor expanded in y around 0 56.8%
Final simplification48.0%
(FPCore (x y z t a b c i) :precision binary64 (if (<= y -1.1e-9) x (if (<= y 4.5e+58) (/ t i) x)))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (y <= -1.1e-9) {
tmp = x;
} else if (y <= 4.5e+58) {
tmp = t / i;
} else {
tmp = x;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if (y <= (-1.1d-9)) then
tmp = x
else if (y <= 4.5d+58) then
tmp = t / i
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (y <= -1.1e-9) {
tmp = x;
} else if (y <= 4.5e+58) {
tmp = t / i;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if y <= -1.1e-9: tmp = x elif y <= 4.5e+58: tmp = t / i else: tmp = x return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (y <= -1.1e-9) tmp = x; elseif (y <= 4.5e+58) tmp = Float64(t / i); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (y <= -1.1e-9) tmp = x; elseif (y <= 4.5e+58) tmp = t / i; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, -1.1e-9], x, If[LessEqual[y, 4.5e+58], N[(t / i), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.1 \cdot 10^{-9}:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq 4.5 \cdot 10^{+58}:\\
\;\;\;\;\frac{t}{i}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if y < -1.0999999999999999e-9 or 4.4999999999999998e58 < y Initial program 7.6%
Taylor expanded in y around inf 37.8%
if -1.0999999999999999e-9 < y < 4.4999999999999998e58Initial program 92.1%
Taylor expanded in y around 0 52.6%
Final simplification45.8%
(FPCore (x y z t a b c i) :precision binary64 x)
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return x;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
code = x
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return x;
}
def code(x, y, z, t, a, b, c, i): return x
function code(x, y, z, t, a, b, c, i) return x end
function tmp = code(x, y, z, t, a, b, c, i) tmp = x; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := x
\begin{array}{l}
\\
x
\end{array}
Initial program 53.2%
Taylor expanded in y around inf 19.1%
Final simplification19.1%
herbie shell --seed 2023238
(FPCore (x y z t a b c i)
:name "Numeric.SpecFunctions:logGamma from math-functions-0.1.5.2"
:precision binary64
(/ (+ (* (+ (* (+ (* (+ (* x y) z) y) 27464.7644705) y) 230661.510616) y) t) (+ (* (+ (* (+ (* (+ y a) y) b) y) c) y) i)))