
(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 17 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 (+ b (* y (+ y a))))
(t_2 (pow t_1 2.0))
(t_3 (+ x (- (/ z y) (* a (/ x y)))))
(t_4 (* y t_1))
(t_5 (+ c t_4))
(t_6
(+
(/ 230661.510616 t_5)
(+
(/ t (* y t_5))
(*
y
(+
(*
c
(-
(* 27464.7644705 (/ -1.0 (* (pow y 2.0) t_2)))
(+ (/ x t_2) (/ z (* y t_2)))))
(+ (* 27464.7644705 (/ 1.0 t_4)) (/ (+ z (* y x)) t_1))))))))
(if (<= y -2.8e+148)
t_3
(if (<= y -3.4e+25)
t_6
(if (<= y 3.5e+15)
(/
(fma (fma (fma (fma x y z) y 27464.7644705) y 230661.510616) y t)
(fma (fma (fma (+ y a) y b) y c) y i))
(if (<= y 1.6e+130) t_6 t_3))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = b + (y * (y + a));
double t_2 = pow(t_1, 2.0);
double t_3 = x + ((z / y) - (a * (x / y)));
double t_4 = y * t_1;
double t_5 = c + t_4;
double t_6 = (230661.510616 / t_5) + ((t / (y * t_5)) + (y * ((c * ((27464.7644705 * (-1.0 / (pow(y, 2.0) * t_2))) - ((x / t_2) + (z / (y * t_2))))) + ((27464.7644705 * (1.0 / t_4)) + ((z + (y * x)) / t_1)))));
double tmp;
if (y <= -2.8e+148) {
tmp = t_3;
} else if (y <= -3.4e+25) {
tmp = t_6;
} else if (y <= 3.5e+15) {
tmp = fma(fma(fma(fma(x, y, z), y, 27464.7644705), y, 230661.510616), y, t) / fma(fma(fma((y + a), y, b), y, c), y, i);
} else if (y <= 1.6e+130) {
tmp = t_6;
} else {
tmp = t_3;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i) t_1 = Float64(b + Float64(y * Float64(y + a))) t_2 = t_1 ^ 2.0 t_3 = Float64(x + Float64(Float64(z / y) - Float64(a * Float64(x / y)))) t_4 = Float64(y * t_1) t_5 = Float64(c + t_4) t_6 = Float64(Float64(230661.510616 / t_5) + Float64(Float64(t / Float64(y * t_5)) + Float64(y * Float64(Float64(c * Float64(Float64(27464.7644705 * Float64(-1.0 / Float64((y ^ 2.0) * t_2))) - Float64(Float64(x / t_2) + Float64(z / Float64(y * t_2))))) + Float64(Float64(27464.7644705 * Float64(1.0 / t_4)) + Float64(Float64(z + Float64(y * x)) / t_1)))))) tmp = 0.0 if (y <= -2.8e+148) tmp = t_3; elseif (y <= -3.4e+25) tmp = t_6; elseif (y <= 3.5e+15) tmp = Float64(fma(fma(fma(fma(x, y, z), y, 27464.7644705), y, 230661.510616), y, t) / fma(fma(fma(Float64(y + a), y, b), y, c), y, i)); elseif (y <= 1.6e+130) tmp = t_6; else tmp = t_3; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(b + N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[Power[t$95$1, 2.0], $MachinePrecision]}, Block[{t$95$3 = N[(x + N[(N[(z / y), $MachinePrecision] - N[(a * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(y * t$95$1), $MachinePrecision]}, Block[{t$95$5 = N[(c + t$95$4), $MachinePrecision]}, Block[{t$95$6 = N[(N[(230661.510616 / t$95$5), $MachinePrecision] + N[(N[(t / N[(y * t$95$5), $MachinePrecision]), $MachinePrecision] + N[(y * N[(N[(c * N[(N[(27464.7644705 * N[(-1.0 / N[(N[Power[y, 2.0], $MachinePrecision] * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(x / t$95$2), $MachinePrecision] + N[(z / N[(y * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(27464.7644705 * N[(1.0 / t$95$4), $MachinePrecision]), $MachinePrecision] + N[(N[(z + N[(y * x), $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -2.8e+148], t$95$3, If[LessEqual[y, -3.4e+25], t$95$6, If[LessEqual[y, 3.5e+15], N[(N[(N[(N[(N[(x * y + z), $MachinePrecision] * y + 27464.7644705), $MachinePrecision] * y + 230661.510616), $MachinePrecision] * y + t), $MachinePrecision] / N[(N[(N[(N[(y + a), $MachinePrecision] * y + b), $MachinePrecision] * y + c), $MachinePrecision] * y + i), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.6e+130], t$95$6, t$95$3]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b + y \cdot \left(y + a\right)\\
t_2 := {t\_1}^{2}\\
t_3 := x + \left(\frac{z}{y} - a \cdot \frac{x}{y}\right)\\
t_4 := y \cdot t\_1\\
t_5 := c + t\_4\\
t_6 := \frac{230661.510616}{t\_5} + \left(\frac{t}{y \cdot t\_5} + y \cdot \left(c \cdot \left(27464.7644705 \cdot \frac{-1}{{y}^{2} \cdot t\_2} - \left(\frac{x}{t\_2} + \frac{z}{y \cdot t\_2}\right)\right) + \left(27464.7644705 \cdot \frac{1}{t\_4} + \frac{z + y \cdot x}{t\_1}\right)\right)\right)\\
\mathbf{if}\;y \leq -2.8 \cdot 10^{+148}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;y \leq -3.4 \cdot 10^{+25}:\\
\;\;\;\;t\_6\\
\mathbf{elif}\;y \leq 3.5 \cdot 10^{+15}:\\
\;\;\;\;\frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(x, y, z\right), y, 27464.7644705\right), y, 230661.510616\right), y, t\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(y + a, y, b\right), y, c\right), y, i\right)}\\
\mathbf{elif}\;y \leq 1.6 \cdot 10^{+130}:\\
\;\;\;\;t\_6\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if y < -2.7999999999999998e148 or 1.6e130 < y Initial program 0.0%
Taylor expanded in y around inf 84.7%
associate--l+84.7%
associate-/l*87.9%
Simplified87.9%
if -2.7999999999999998e148 < y < -3.39999999999999984e25 or 3.5e15 < y < 1.6e130Initial program 9.9%
Taylor expanded in i around 0 19.3%
Taylor expanded in i around 0 19.7%
associate-*r/19.7%
metadata-eval19.7%
associate-/l*29.3%
Simplified29.3%
Taylor expanded in c around 0 72.9%
if -3.39999999999999984e25 < y < 3.5e15Initial program 99.0%
fma-define99.0%
fma-define99.0%
fma-define99.0%
fma-define99.1%
fma-define99.1%
fma-define99.1%
fma-define99.1%
Simplified99.1%
Final simplification91.4%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ b (* y (+ y a))))
(t_2 (pow t_1 2.0))
(t_3 (+ x (- (/ z y) (* a (/ x y)))))
(t_4 (* y t_1))
(t_5 (+ c t_4))
(t_6 (* y t_5))
(t_7
(+
(/ 230661.510616 t_5)
(+
(/ t t_6)
(*
y
(+
(*
c
(-
(* 27464.7644705 (/ -1.0 (* (pow y 2.0) t_2)))
(+ (/ x t_2) (/ z (* y t_2)))))
(+ (* 27464.7644705 (/ 1.0 t_4)) (/ (+ z (* y x)) t_1))))))))
(if (<= y -2.75e+148)
t_3
(if (<= y -7.8e+25)
t_7
(if (<= y 9e+20)
(/
(+
t
(* y (+ 230661.510616 (* y (+ 27464.7644705 (* y (fma y x z)))))))
(+ i t_6))
(if (<= y 3.4e+125) t_7 t_3))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = b + (y * (y + a));
double t_2 = pow(t_1, 2.0);
double t_3 = x + ((z / y) - (a * (x / y)));
double t_4 = y * t_1;
double t_5 = c + t_4;
double t_6 = y * t_5;
double t_7 = (230661.510616 / t_5) + ((t / t_6) + (y * ((c * ((27464.7644705 * (-1.0 / (pow(y, 2.0) * t_2))) - ((x / t_2) + (z / (y * t_2))))) + ((27464.7644705 * (1.0 / t_4)) + ((z + (y * x)) / t_1)))));
double tmp;
if (y <= -2.75e+148) {
tmp = t_3;
} else if (y <= -7.8e+25) {
tmp = t_7;
} else if (y <= 9e+20) {
tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * fma(y, x, z))))))) / (i + t_6);
} else if (y <= 3.4e+125) {
tmp = t_7;
} else {
tmp = t_3;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i) t_1 = Float64(b + Float64(y * Float64(y + a))) t_2 = t_1 ^ 2.0 t_3 = Float64(x + Float64(Float64(z / y) - Float64(a * Float64(x / y)))) t_4 = Float64(y * t_1) t_5 = Float64(c + t_4) t_6 = Float64(y * t_5) t_7 = Float64(Float64(230661.510616 / t_5) + Float64(Float64(t / t_6) + Float64(y * Float64(Float64(c * Float64(Float64(27464.7644705 * Float64(-1.0 / Float64((y ^ 2.0) * t_2))) - Float64(Float64(x / t_2) + Float64(z / Float64(y * t_2))))) + Float64(Float64(27464.7644705 * Float64(1.0 / t_4)) + Float64(Float64(z + Float64(y * x)) / t_1)))))) tmp = 0.0 if (y <= -2.75e+148) tmp = t_3; elseif (y <= -7.8e+25) tmp = t_7; elseif (y <= 9e+20) tmp = Float64(Float64(t + Float64(y * Float64(230661.510616 + Float64(y * Float64(27464.7644705 + Float64(y * fma(y, x, z))))))) / Float64(i + t_6)); elseif (y <= 3.4e+125) tmp = t_7; else tmp = t_3; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(b + N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[Power[t$95$1, 2.0], $MachinePrecision]}, Block[{t$95$3 = N[(x + N[(N[(z / y), $MachinePrecision] - N[(a * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(y * t$95$1), $MachinePrecision]}, Block[{t$95$5 = N[(c + t$95$4), $MachinePrecision]}, Block[{t$95$6 = N[(y * t$95$5), $MachinePrecision]}, Block[{t$95$7 = N[(N[(230661.510616 / t$95$5), $MachinePrecision] + N[(N[(t / t$95$6), $MachinePrecision] + N[(y * N[(N[(c * N[(N[(27464.7644705 * N[(-1.0 / N[(N[Power[y, 2.0], $MachinePrecision] * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(x / t$95$2), $MachinePrecision] + N[(z / N[(y * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(27464.7644705 * N[(1.0 / t$95$4), $MachinePrecision]), $MachinePrecision] + N[(N[(z + N[(y * x), $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -2.75e+148], t$95$3, If[LessEqual[y, -7.8e+25], t$95$7, If[LessEqual[y, 9e+20], N[(N[(t + N[(y * N[(230661.510616 + N[(y * N[(27464.7644705 + N[(y * N[(y * x + z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(i + t$95$6), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.4e+125], t$95$7, t$95$3]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b + y \cdot \left(y + a\right)\\
t_2 := {t\_1}^{2}\\
t_3 := x + \left(\frac{z}{y} - a \cdot \frac{x}{y}\right)\\
t_4 := y \cdot t\_1\\
t_5 := c + t\_4\\
t_6 := y \cdot t\_5\\
t_7 := \frac{230661.510616}{t\_5} + \left(\frac{t}{t\_6} + y \cdot \left(c \cdot \left(27464.7644705 \cdot \frac{-1}{{y}^{2} \cdot t\_2} - \left(\frac{x}{t\_2} + \frac{z}{y \cdot t\_2}\right)\right) + \left(27464.7644705 \cdot \frac{1}{t\_4} + \frac{z + y \cdot x}{t\_1}\right)\right)\right)\\
\mathbf{if}\;y \leq -2.75 \cdot 10^{+148}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;y \leq -7.8 \cdot 10^{+25}:\\
\;\;\;\;t\_7\\
\mathbf{elif}\;y \leq 9 \cdot 10^{+20}:\\
\;\;\;\;\frac{t + y \cdot \left(230661.510616 + y \cdot \left(27464.7644705 + y \cdot \mathsf{fma}\left(y, x, z\right)\right)\right)}{i + t\_6}\\
\mathbf{elif}\;y \leq 3.4 \cdot 10^{+125}:\\
\;\;\;\;t\_7\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if y < -2.75e148 or 3.3999999999999999e125 < y Initial program 0.0%
Taylor expanded in y around inf 84.7%
associate--l+84.7%
associate-/l*87.9%
Simplified87.9%
if -2.75e148 < y < -7.8000000000000004e25 or 9e20 < y < 3.3999999999999999e125Initial program 9.9%
Taylor expanded in i around 0 19.3%
Taylor expanded in i around 0 19.7%
associate-*r/19.7%
metadata-eval19.7%
associate-/l*29.3%
Simplified29.3%
Taylor expanded in c around 0 72.9%
if -7.8000000000000004e25 < y < 9e20Initial program 99.0%
Taylor expanded in x around 0 99.0%
unpow299.0%
associate-*l*99.0%
*-commutative99.0%
distribute-rgt-out99.0%
*-commutative99.0%
fma-define99.1%
Simplified99.1%
Final simplification91.4%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ i (* y (+ c (* y (+ b (* y (+ y a)))))))))
(if (<=
(/
(+
t
(* y (+ 230661.510616 (* y (+ 27464.7644705 (* y (+ z (* y x))))))))
t_1)
INFINITY)
(/
(+ t (* y (+ 230661.510616 (* y (+ 27464.7644705 (* y (fma y x z)))))))
t_1)
(+ x (- (/ z y) (* a (/ x y)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = i + (y * (c + (y * (b + (y * (y + a))))));
double tmp;
if (((t + (y * (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x)))))))) / t_1) <= ((double) INFINITY)) {
tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * fma(y, x, z))))))) / t_1;
} else {
tmp = x + ((z / y) - (a * (x / y)));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i) t_1 = Float64(i + Float64(y * Float64(c + Float64(y * Float64(b + Float64(y * Float64(y + a))))))) tmp = 0.0 if (Float64(Float64(t + Float64(y * Float64(230661.510616 + Float64(y * Float64(27464.7644705 + Float64(y * Float64(z + Float64(y * x)))))))) / t_1) <= Inf) tmp = Float64(Float64(t + Float64(y * Float64(230661.510616 + Float64(y * Float64(27464.7644705 + Float64(y * fma(y, x, z))))))) / t_1); else tmp = Float64(x + Float64(Float64(z / y) - Float64(a * Float64(x / y)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(i + N[(y * N[(c + N[(y * N[(b + N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[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] / t$95$1), $MachinePrecision], Infinity], N[(N[(t + N[(y * N[(230661.510616 + N[(y * N[(27464.7644705 + N[(y * N[(y * x + z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision], N[(x + N[(N[(z / y), $MachinePrecision] - N[(a * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i + y \cdot \left(c + y \cdot \left(b + y \cdot \left(y + a\right)\right)\right)\\
\mathbf{if}\;\frac{t + y \cdot \left(230661.510616 + y \cdot \left(27464.7644705 + y \cdot \left(z + y \cdot x\right)\right)\right)}{t\_1} \leq \infty:\\
\;\;\;\;\frac{t + y \cdot \left(230661.510616 + y \cdot \left(27464.7644705 + y \cdot \mathsf{fma}\left(y, x, z\right)\right)\right)}{t\_1}\\
\mathbf{else}:\\
\;\;\;\;x + \left(\frac{z}{y} - a \cdot \frac{x}{y}\right)\\
\end{array}
\end{array}
if (/.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x y) z) y) 54929528941/2000000) y) 28832688827/125000) y) t) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 y a) y) b) y) c) y) i)) < +inf.0Initial program 93.6%
Taylor expanded in x around 0 93.5%
unpow293.5%
associate-*l*93.6%
*-commutative93.6%
distribute-rgt-out93.6%
*-commutative93.6%
fma-define93.6%
Simplified93.6%
if +inf.0 < (/.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x y) z) y) 54929528941/2000000) y) 28832688827/125000) y) t) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 y a) y) b) y) c) y) i)) Initial program 0.0%
Taylor expanded in y around inf 69.6%
associate--l+69.6%
associate-/l*71.8%
Simplified71.8%
Final simplification84.9%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1
(/
(+
t
(* y (+ 230661.510616 (* y (+ 27464.7644705 (* y (+ z (* y x))))))))
(+ i (* y (+ c (* y (+ b (* y (+ y a))))))))))
(if (<= t_1 INFINITY) t_1 (+ x (- (/ z y) (* a (/ x y)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x)))))))) / (i + (y * (c + (y * (b + (y * (y + a)))))));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = x + ((z / y) - (a * (x / y)));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x)))))))) / (i + (y * (c + (y * (b + (y * (y + a)))))));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = x + ((z / y) - (a * (x / y)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x)))))))) / (i + (y * (c + (y * (b + (y * (y + a))))))) tmp = 0 if t_1 <= math.inf: tmp = t_1 else: tmp = x + ((z / y) - (a * (x / y))) return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(Float64(t + Float64(y * Float64(230661.510616 + Float64(y * Float64(27464.7644705 + Float64(y * Float64(z + Float64(y * x)))))))) / Float64(i + Float64(y * Float64(c + Float64(y * Float64(b + Float64(y * Float64(y + a)))))))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(x + Float64(Float64(z / y) - Float64(a * Float64(x / y)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x)))))))) / (i + (y * (c + (y * (b + (y * (y + a))))))); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = x + ((z / y) - (a * (x / y))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = 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[(i + N[(y * N[(c + N[(y * N[(b + N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(x + N[(N[(z / y), $MachinePrecision] - N[(a * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{t + y \cdot \left(230661.510616 + y \cdot \left(27464.7644705 + y \cdot \left(z + y \cdot x\right)\right)\right)}{i + y \cdot \left(c + y \cdot \left(b + y \cdot \left(y + a\right)\right)\right)}\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;x + \left(\frac{z}{y} - a \cdot \frac{x}{y}\right)\\
\end{array}
\end{array}
if (/.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x y) z) y) 54929528941/2000000) y) 28832688827/125000) y) t) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 y a) y) b) y) c) y) i)) < +inf.0Initial program 93.6%
if +inf.0 < (/.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 x y) z) y) 54929528941/2000000) y) 28832688827/125000) y) t) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 y a) y) b) y) c) y) i)) Initial program 0.0%
Taylor expanded in y around inf 69.6%
associate--l+69.6%
associate-/l*71.8%
Simplified71.8%
Final simplification84.9%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ x (- (/ z y) (* a (/ x y))))))
(if (<= y -2.5e+86)
t_1
(if (<= y -2.65e+41)
(+ (+ (/ (/ 27464.7644705 a) y) (/ z a)) (* x (/ y a)))
(if (<= y 1.95e+80)
(/
(+ t (* y (+ 230661.510616 (* y (+ 27464.7644705 (* y z))))))
(+ i (* y (+ c (* y (+ b (* y (+ y a))))))))
t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = x + ((z / y) - (a * (x / y)));
double tmp;
if (y <= -2.5e+86) {
tmp = t_1;
} else if (y <= -2.65e+41) {
tmp = (((27464.7644705 / a) / y) + (z / a)) + (x * (y / a));
} else if (y <= 1.95e+80) {
tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / (i + (y * (c + (y * (b + (y * (y + a)))))));
} else {
tmp = t_1;
}
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 = x + ((z / y) - (a * (x / y)))
if (y <= (-2.5d+86)) then
tmp = t_1
else if (y <= (-2.65d+41)) then
tmp = (((27464.7644705d0 / a) / y) + (z / a)) + (x * (y / a))
else if (y <= 1.95d+80) then
tmp = (t + (y * (230661.510616d0 + (y * (27464.7644705d0 + (y * z)))))) / (i + (y * (c + (y * (b + (y * (y + a)))))))
else
tmp = t_1
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 = x + ((z / y) - (a * (x / y)));
double tmp;
if (y <= -2.5e+86) {
tmp = t_1;
} else if (y <= -2.65e+41) {
tmp = (((27464.7644705 / a) / y) + (z / a)) + (x * (y / a));
} else if (y <= 1.95e+80) {
tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / (i + (y * (c + (y * (b + (y * (y + a)))))));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = x + ((z / y) - (a * (x / y))) tmp = 0 if y <= -2.5e+86: tmp = t_1 elif y <= -2.65e+41: tmp = (((27464.7644705 / a) / y) + (z / a)) + (x * (y / a)) elif y <= 1.95e+80: tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / (i + (y * (c + (y * (b + (y * (y + a))))))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(x + Float64(Float64(z / y) - Float64(a * Float64(x / y)))) tmp = 0.0 if (y <= -2.5e+86) tmp = t_1; elseif (y <= -2.65e+41) tmp = Float64(Float64(Float64(Float64(27464.7644705 / a) / y) + Float64(z / a)) + Float64(x * Float64(y / a))); elseif (y <= 1.95e+80) tmp = Float64(Float64(t + Float64(y * Float64(230661.510616 + Float64(y * Float64(27464.7644705 + Float64(y * z)))))) / Float64(i + Float64(y * Float64(c + Float64(y * Float64(b + Float64(y * Float64(y + a)))))))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = x + ((z / y) - (a * (x / y))); tmp = 0.0; if (y <= -2.5e+86) tmp = t_1; elseif (y <= -2.65e+41) tmp = (((27464.7644705 / a) / y) + (z / a)) + (x * (y / a)); elseif (y <= 1.95e+80) tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / (i + (y * (c + (y * (b + (y * (y + a))))))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(x + N[(N[(z / y), $MachinePrecision] - N[(a * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -2.5e+86], t$95$1, If[LessEqual[y, -2.65e+41], N[(N[(N[(N[(27464.7644705 / a), $MachinePrecision] / y), $MachinePrecision] + N[(z / a), $MachinePrecision]), $MachinePrecision] + N[(x * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.95e+80], N[(N[(t + N[(y * N[(230661.510616 + N[(y * N[(27464.7644705 + N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(i + N[(y * N[(c + N[(y * N[(b + N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \left(\frac{z}{y} - a \cdot \frac{x}{y}\right)\\
\mathbf{if}\;y \leq -2.5 \cdot 10^{+86}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -2.65 \cdot 10^{+41}:\\
\;\;\;\;\left(\frac{\frac{27464.7644705}{a}}{y} + \frac{z}{a}\right) + x \cdot \frac{y}{a}\\
\mathbf{elif}\;y \leq 1.95 \cdot 10^{+80}:\\
\;\;\;\;\frac{t + y \cdot \left(230661.510616 + y \cdot \left(27464.7644705 + y \cdot z\right)\right)}{i + y \cdot \left(c + y \cdot \left(b + y \cdot \left(y + a\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -2.4999999999999999e86 or 1.94999999999999999e80 < y Initial program 0.0%
Taylor expanded in y around inf 75.4%
associate--l+75.4%
associate-/l*77.8%
Simplified77.8%
if -2.4999999999999999e86 < y < -2.6499999999999998e41Initial program 1.9%
Taylor expanded in i around 0 30.6%
Taylor expanded in a around inf 72.2%
Taylor expanded in y around inf 71.8%
associate-+r+71.8%
associate-*r/71.8%
metadata-eval71.8%
associate-/r*71.8%
associate-/l*85.3%
Simplified85.3%
if -2.6499999999999998e41 < y < 1.94999999999999999e80Initial program 92.9%
Taylor expanded in x around 0 85.7%
Final simplification82.8%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ x (- (/ z y) (* a (/ x y))))))
(if (<= y -1.5e+90)
t_1
(if (<= y -2.65e+35)
(+ (+ (/ (/ 27464.7644705 a) y) (/ z a)) (* x (/ y a)))
(if (<= y 1.2e+89)
(/
(+ t (* y (+ 230661.510616 (* y 27464.7644705))))
(+ i (* y (+ c (* y (+ b (* y (+ y a))))))))
t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = x + ((z / y) - (a * (x / y)));
double tmp;
if (y <= -1.5e+90) {
tmp = t_1;
} else if (y <= -2.65e+35) {
tmp = (((27464.7644705 / a) / y) + (z / a)) + (x * (y / a));
} else if (y <= 1.2e+89) {
tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / (i + (y * (c + (y * (b + (y * (y + a)))))));
} else {
tmp = t_1;
}
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 = x + ((z / y) - (a * (x / y)))
if (y <= (-1.5d+90)) then
tmp = t_1
else if (y <= (-2.65d+35)) then
tmp = (((27464.7644705d0 / a) / y) + (z / a)) + (x * (y / a))
else if (y <= 1.2d+89) then
tmp = (t + (y * (230661.510616d0 + (y * 27464.7644705d0)))) / (i + (y * (c + (y * (b + (y * (y + a)))))))
else
tmp = t_1
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 = x + ((z / y) - (a * (x / y)));
double tmp;
if (y <= -1.5e+90) {
tmp = t_1;
} else if (y <= -2.65e+35) {
tmp = (((27464.7644705 / a) / y) + (z / a)) + (x * (y / a));
} else if (y <= 1.2e+89) {
tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / (i + (y * (c + (y * (b + (y * (y + a)))))));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = x + ((z / y) - (a * (x / y))) tmp = 0 if y <= -1.5e+90: tmp = t_1 elif y <= -2.65e+35: tmp = (((27464.7644705 / a) / y) + (z / a)) + (x * (y / a)) elif y <= 1.2e+89: tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / (i + (y * (c + (y * (b + (y * (y + a))))))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(x + Float64(Float64(z / y) - Float64(a * Float64(x / y)))) tmp = 0.0 if (y <= -1.5e+90) tmp = t_1; elseif (y <= -2.65e+35) tmp = Float64(Float64(Float64(Float64(27464.7644705 / a) / y) + Float64(z / a)) + Float64(x * Float64(y / a))); elseif (y <= 1.2e+89) tmp = Float64(Float64(t + Float64(y * Float64(230661.510616 + Float64(y * 27464.7644705)))) / Float64(i + Float64(y * Float64(c + Float64(y * Float64(b + Float64(y * Float64(y + a)))))))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = x + ((z / y) - (a * (x / y))); tmp = 0.0; if (y <= -1.5e+90) tmp = t_1; elseif (y <= -2.65e+35) tmp = (((27464.7644705 / a) / y) + (z / a)) + (x * (y / a)); elseif (y <= 1.2e+89) tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / (i + (y * (c + (y * (b + (y * (y + a))))))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(x + N[(N[(z / y), $MachinePrecision] - N[(a * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.5e+90], t$95$1, If[LessEqual[y, -2.65e+35], N[(N[(N[(N[(27464.7644705 / a), $MachinePrecision] / y), $MachinePrecision] + N[(z / a), $MachinePrecision]), $MachinePrecision] + N[(x * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.2e+89], N[(N[(t + N[(y * N[(230661.510616 + N[(y * 27464.7644705), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(i + N[(y * N[(c + N[(y * N[(b + N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \left(\frac{z}{y} - a \cdot \frac{x}{y}\right)\\
\mathbf{if}\;y \leq -1.5 \cdot 10^{+90}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -2.65 \cdot 10^{+35}:\\
\;\;\;\;\left(\frac{\frac{27464.7644705}{a}}{y} + \frac{z}{a}\right) + x \cdot \frac{y}{a}\\
\mathbf{elif}\;y \leq 1.2 \cdot 10^{+89}:\\
\;\;\;\;\frac{t + y \cdot \left(230661.510616 + y \cdot 27464.7644705\right)}{i + y \cdot \left(c + y \cdot \left(b + y \cdot \left(y + a\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -1.49999999999999989e90 or 1.20000000000000002e89 < y Initial program 0.0%
Taylor expanded in y around inf 76.2%
associate--l+76.2%
associate-/l*78.6%
Simplified78.6%
if -1.49999999999999989e90 < y < -2.65000000000000005e35Initial program 1.9%
Taylor expanded in i around 0 30.6%
Taylor expanded in a around inf 72.2%
Taylor expanded in y around inf 71.8%
associate-+r+71.8%
associate-*r/71.8%
metadata-eval71.8%
associate-/r*71.8%
associate-/l*85.3%
Simplified85.3%
if -2.65000000000000005e35 < y < 1.20000000000000002e89Initial program 92.3%
Taylor expanded in y around 0 78.6%
*-commutative78.6%
Simplified78.6%
Final simplification78.8%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ x (- (/ z y) (* a (/ x y))))))
(if (<= y -1.6e+87)
t_1
(if (<= y -350000000.0)
(+ (+ (/ (/ 27464.7644705 a) y) (/ z a)) (* x (/ y a)))
(if (<= y 1.2e+89)
(/
(+ t (* y 230661.510616))
(+ i (* y (+ c (* y (+ b (* y (+ y a))))))))
t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = x + ((z / y) - (a * (x / y)));
double tmp;
if (y <= -1.6e+87) {
tmp = t_1;
} else if (y <= -350000000.0) {
tmp = (((27464.7644705 / a) / y) + (z / a)) + (x * (y / a));
} else if (y <= 1.2e+89) {
tmp = (t + (y * 230661.510616)) / (i + (y * (c + (y * (b + (y * (y + a)))))));
} else {
tmp = t_1;
}
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 = x + ((z / y) - (a * (x / y)))
if (y <= (-1.6d+87)) then
tmp = t_1
else if (y <= (-350000000.0d0)) then
tmp = (((27464.7644705d0 / a) / y) + (z / a)) + (x * (y / a))
else if (y <= 1.2d+89) then
tmp = (t + (y * 230661.510616d0)) / (i + (y * (c + (y * (b + (y * (y + a)))))))
else
tmp = t_1
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 = x + ((z / y) - (a * (x / y)));
double tmp;
if (y <= -1.6e+87) {
tmp = t_1;
} else if (y <= -350000000.0) {
tmp = (((27464.7644705 / a) / y) + (z / a)) + (x * (y / a));
} else if (y <= 1.2e+89) {
tmp = (t + (y * 230661.510616)) / (i + (y * (c + (y * (b + (y * (y + a)))))));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = x + ((z / y) - (a * (x / y))) tmp = 0 if y <= -1.6e+87: tmp = t_1 elif y <= -350000000.0: tmp = (((27464.7644705 / a) / y) + (z / a)) + (x * (y / a)) elif y <= 1.2e+89: tmp = (t + (y * 230661.510616)) / (i + (y * (c + (y * (b + (y * (y + a))))))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(x + Float64(Float64(z / y) - Float64(a * Float64(x / y)))) tmp = 0.0 if (y <= -1.6e+87) tmp = t_1; elseif (y <= -350000000.0) tmp = Float64(Float64(Float64(Float64(27464.7644705 / a) / y) + Float64(z / a)) + Float64(x * Float64(y / a))); elseif (y <= 1.2e+89) tmp = Float64(Float64(t + Float64(y * 230661.510616)) / Float64(i + Float64(y * Float64(c + Float64(y * Float64(b + Float64(y * Float64(y + a)))))))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = x + ((z / y) - (a * (x / y))); tmp = 0.0; if (y <= -1.6e+87) tmp = t_1; elseif (y <= -350000000.0) tmp = (((27464.7644705 / a) / y) + (z / a)) + (x * (y / a)); elseif (y <= 1.2e+89) tmp = (t + (y * 230661.510616)) / (i + (y * (c + (y * (b + (y * (y + a))))))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(x + N[(N[(z / y), $MachinePrecision] - N[(a * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.6e+87], t$95$1, If[LessEqual[y, -350000000.0], N[(N[(N[(N[(27464.7644705 / a), $MachinePrecision] / y), $MachinePrecision] + N[(z / a), $MachinePrecision]), $MachinePrecision] + N[(x * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.2e+89], N[(N[(t + N[(y * 230661.510616), $MachinePrecision]), $MachinePrecision] / N[(i + N[(y * N[(c + N[(y * N[(b + N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \left(\frac{z}{y} - a \cdot \frac{x}{y}\right)\\
\mathbf{if}\;y \leq -1.6 \cdot 10^{+87}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -350000000:\\
\;\;\;\;\left(\frac{\frac{27464.7644705}{a}}{y} + \frac{z}{a}\right) + x \cdot \frac{y}{a}\\
\mathbf{elif}\;y \leq 1.2 \cdot 10^{+89}:\\
\;\;\;\;\frac{t + y \cdot 230661.510616}{i + y \cdot \left(c + y \cdot \left(b + y \cdot \left(y + a\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -1.6e87 or 1.20000000000000002e89 < y Initial program 0.0%
Taylor expanded in y around inf 76.2%
associate--l+76.2%
associate-/l*78.6%
Simplified78.6%
if -1.6e87 < y < -3.5e8Initial program 28.6%
Taylor expanded in i around 0 55.4%
Taylor expanded in a around inf 47.8%
Taylor expanded in y around inf 47.0%
associate-+r+47.0%
associate-*r/47.0%
metadata-eval47.0%
associate-/r*47.0%
associate-/l*55.6%
Simplified55.6%
if -3.5e8 < y < 1.20000000000000002e89Initial program 92.7%
Taylor expanded in y around 0 78.7%
*-commutative78.7%
Simplified78.7%
Final simplification77.7%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ x (- (/ z y) (* a (/ x y))))))
(if (<= y -5.8e+90)
t_1
(if (<= y -1.05e+35)
(/ (+ z (* y x)) a)
(if (or (<= y -26000.0) (not (<= y 1.2e+89)))
t_1
(/ (+ t (* y 230661.510616)) i))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = x + ((z / y) - (a * (x / y)));
double tmp;
if (y <= -5.8e+90) {
tmp = t_1;
} else if (y <= -1.05e+35) {
tmp = (z + (y * x)) / a;
} else if ((y <= -26000.0) || !(y <= 1.2e+89)) {
tmp = t_1;
} else {
tmp = (t + (y * 230661.510616)) / 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) :: t_1
real(8) :: tmp
t_1 = x + ((z / y) - (a * (x / y)))
if (y <= (-5.8d+90)) then
tmp = t_1
else if (y <= (-1.05d+35)) then
tmp = (z + (y * x)) / a
else if ((y <= (-26000.0d0)) .or. (.not. (y <= 1.2d+89))) then
tmp = t_1
else
tmp = (t + (y * 230661.510616d0)) / 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 t_1 = x + ((z / y) - (a * (x / y)));
double tmp;
if (y <= -5.8e+90) {
tmp = t_1;
} else if (y <= -1.05e+35) {
tmp = (z + (y * x)) / a;
} else if ((y <= -26000.0) || !(y <= 1.2e+89)) {
tmp = t_1;
} else {
tmp = (t + (y * 230661.510616)) / i;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = x + ((z / y) - (a * (x / y))) tmp = 0 if y <= -5.8e+90: tmp = t_1 elif y <= -1.05e+35: tmp = (z + (y * x)) / a elif (y <= -26000.0) or not (y <= 1.2e+89): tmp = t_1 else: tmp = (t + (y * 230661.510616)) / i return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(x + Float64(Float64(z / y) - Float64(a * Float64(x / y)))) tmp = 0.0 if (y <= -5.8e+90) tmp = t_1; elseif (y <= -1.05e+35) tmp = Float64(Float64(z + Float64(y * x)) / a); elseif ((y <= -26000.0) || !(y <= 1.2e+89)) tmp = t_1; else tmp = Float64(Float64(t + Float64(y * 230661.510616)) / i); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = x + ((z / y) - (a * (x / y))); tmp = 0.0; if (y <= -5.8e+90) tmp = t_1; elseif (y <= -1.05e+35) tmp = (z + (y * x)) / a; elseif ((y <= -26000.0) || ~((y <= 1.2e+89))) tmp = t_1; else tmp = (t + (y * 230661.510616)) / i; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(x + N[(N[(z / y), $MachinePrecision] - N[(a * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -5.8e+90], t$95$1, If[LessEqual[y, -1.05e+35], N[(N[(z + N[(y * x), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision], If[Or[LessEqual[y, -26000.0], N[Not[LessEqual[y, 1.2e+89]], $MachinePrecision]], t$95$1, N[(N[(t + N[(y * 230661.510616), $MachinePrecision]), $MachinePrecision] / i), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \left(\frac{z}{y} - a \cdot \frac{x}{y}\right)\\
\mathbf{if}\;y \leq -5.8 \cdot 10^{+90}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -1.05 \cdot 10^{+35}:\\
\;\;\;\;\frac{z + y \cdot x}{a}\\
\mathbf{elif}\;y \leq -26000 \lor \neg \left(y \leq 1.2 \cdot 10^{+89}\right):\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\frac{t + y \cdot 230661.510616}{i}\\
\end{array}
\end{array}
if y < -5.8000000000000003e90 or -1.0499999999999999e35 < y < -26000 or 1.20000000000000002e89 < y Initial program 5.0%
Taylor expanded in y around inf 72.9%
associate--l+72.9%
associate-/l*75.1%
Simplified75.1%
if -5.8000000000000003e90 < y < -1.0499999999999999e35Initial program 1.9%
Taylor expanded in i around 0 30.6%
Taylor expanded in a around inf 72.2%
Taylor expanded in y around inf 72.2%
Taylor expanded in y around inf 72.2%
if -26000 < y < 1.20000000000000002e89Initial program 92.6%
Taylor expanded in y around 0 79.7%
*-commutative79.7%
Simplified79.7%
Taylor expanded in i around inf 54.8%
Final simplification63.1%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ x (- (/ z y) (* a (/ x y))))))
(if (<= y -1.1e+85)
t_1
(if (<= y -4.3e+33)
(/ (+ z (* y x)) a)
(if (<= y -55000.0)
(- (+ x (/ z y)) (/ (* x a) y))
(if (<= y 1.2e+89) (/ (+ t (* y 230661.510616)) i) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = x + ((z / y) - (a * (x / y)));
double tmp;
if (y <= -1.1e+85) {
tmp = t_1;
} else if (y <= -4.3e+33) {
tmp = (z + (y * x)) / a;
} else if (y <= -55000.0) {
tmp = (x + (z / y)) - ((x * a) / y);
} else if (y <= 1.2e+89) {
tmp = (t + (y * 230661.510616)) / i;
} else {
tmp = t_1;
}
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 = x + ((z / y) - (a * (x / y)))
if (y <= (-1.1d+85)) then
tmp = t_1
else if (y <= (-4.3d+33)) then
tmp = (z + (y * x)) / a
else if (y <= (-55000.0d0)) then
tmp = (x + (z / y)) - ((x * a) / y)
else if (y <= 1.2d+89) then
tmp = (t + (y * 230661.510616d0)) / i
else
tmp = t_1
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 = x + ((z / y) - (a * (x / y)));
double tmp;
if (y <= -1.1e+85) {
tmp = t_1;
} else if (y <= -4.3e+33) {
tmp = (z + (y * x)) / a;
} else if (y <= -55000.0) {
tmp = (x + (z / y)) - ((x * a) / y);
} else if (y <= 1.2e+89) {
tmp = (t + (y * 230661.510616)) / i;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = x + ((z / y) - (a * (x / y))) tmp = 0 if y <= -1.1e+85: tmp = t_1 elif y <= -4.3e+33: tmp = (z + (y * x)) / a elif y <= -55000.0: tmp = (x + (z / y)) - ((x * a) / y) elif y <= 1.2e+89: tmp = (t + (y * 230661.510616)) / i else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(x + Float64(Float64(z / y) - Float64(a * Float64(x / y)))) tmp = 0.0 if (y <= -1.1e+85) tmp = t_1; elseif (y <= -4.3e+33) tmp = Float64(Float64(z + Float64(y * x)) / a); elseif (y <= -55000.0) tmp = Float64(Float64(x + Float64(z / y)) - Float64(Float64(x * a) / y)); elseif (y <= 1.2e+89) tmp = Float64(Float64(t + Float64(y * 230661.510616)) / i); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = x + ((z / y) - (a * (x / y))); tmp = 0.0; if (y <= -1.1e+85) tmp = t_1; elseif (y <= -4.3e+33) tmp = (z + (y * x)) / a; elseif (y <= -55000.0) tmp = (x + (z / y)) - ((x * a) / y); elseif (y <= 1.2e+89) tmp = (t + (y * 230661.510616)) / i; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(x + N[(N[(z / y), $MachinePrecision] - N[(a * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.1e+85], t$95$1, If[LessEqual[y, -4.3e+33], N[(N[(z + N[(y * x), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision], If[LessEqual[y, -55000.0], N[(N[(x + N[(z / y), $MachinePrecision]), $MachinePrecision] - N[(N[(x * a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.2e+89], N[(N[(t + N[(y * 230661.510616), $MachinePrecision]), $MachinePrecision] / i), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \left(\frac{z}{y} - a \cdot \frac{x}{y}\right)\\
\mathbf{if}\;y \leq -1.1 \cdot 10^{+85}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -4.3 \cdot 10^{+33}:\\
\;\;\;\;\frac{z + y \cdot x}{a}\\
\mathbf{elif}\;y \leq -55000:\\
\;\;\;\;\left(x + \frac{z}{y}\right) - \frac{x \cdot a}{y}\\
\mathbf{elif}\;y \leq 1.2 \cdot 10^{+89}:\\
\;\;\;\;\frac{t + y \cdot 230661.510616}{i}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -1.1000000000000001e85 or 1.20000000000000002e89 < y Initial program 0.0%
Taylor expanded in y around inf 76.2%
associate--l+76.2%
associate-/l*78.6%
Simplified78.6%
if -1.1000000000000001e85 < y < -4.30000000000000028e33Initial program 1.9%
Taylor expanded in i around 0 30.6%
Taylor expanded in a around inf 72.2%
Taylor expanded in y around inf 72.2%
Taylor expanded in y around inf 72.2%
if -4.30000000000000028e33 < y < -55000Initial program 83.2%
Taylor expanded in y around inf 21.3%
if -55000 < y < 1.20000000000000002e89Initial program 92.6%
Taylor expanded in y around 0 79.7%
*-commutative79.7%
Simplified79.7%
Taylor expanded in i around inf 54.8%
Final simplification63.1%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ x (- (/ z y) (* a (/ x y))))))
(if (<= y -3.8e+83)
t_1
(if (<= y -1.65e+32)
(/ (+ z (* y x)) a)
(if (<= y -12200.0)
(- (+ x (/ z y)) (/ (* x a) y))
(if (<= y 1.95e+80)
(/ (+ t (* y (+ 230661.510616 (* y 27464.7644705)))) i)
t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = x + ((z / y) - (a * (x / y)));
double tmp;
if (y <= -3.8e+83) {
tmp = t_1;
} else if (y <= -1.65e+32) {
tmp = (z + (y * x)) / a;
} else if (y <= -12200.0) {
tmp = (x + (z / y)) - ((x * a) / y);
} else if (y <= 1.95e+80) {
tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / i;
} else {
tmp = t_1;
}
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 = x + ((z / y) - (a * (x / y)))
if (y <= (-3.8d+83)) then
tmp = t_1
else if (y <= (-1.65d+32)) then
tmp = (z + (y * x)) / a
else if (y <= (-12200.0d0)) then
tmp = (x + (z / y)) - ((x * a) / y)
else if (y <= 1.95d+80) then
tmp = (t + (y * (230661.510616d0 + (y * 27464.7644705d0)))) / i
else
tmp = t_1
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 = x + ((z / y) - (a * (x / y)));
double tmp;
if (y <= -3.8e+83) {
tmp = t_1;
} else if (y <= -1.65e+32) {
tmp = (z + (y * x)) / a;
} else if (y <= -12200.0) {
tmp = (x + (z / y)) - ((x * a) / y);
} else if (y <= 1.95e+80) {
tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / i;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = x + ((z / y) - (a * (x / y))) tmp = 0 if y <= -3.8e+83: tmp = t_1 elif y <= -1.65e+32: tmp = (z + (y * x)) / a elif y <= -12200.0: tmp = (x + (z / y)) - ((x * a) / y) elif y <= 1.95e+80: tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / i else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(x + Float64(Float64(z / y) - Float64(a * Float64(x / y)))) tmp = 0.0 if (y <= -3.8e+83) tmp = t_1; elseif (y <= -1.65e+32) tmp = Float64(Float64(z + Float64(y * x)) / a); elseif (y <= -12200.0) tmp = Float64(Float64(x + Float64(z / y)) - Float64(Float64(x * a) / y)); elseif (y <= 1.95e+80) tmp = Float64(Float64(t + Float64(y * Float64(230661.510616 + Float64(y * 27464.7644705)))) / i); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = x + ((z / y) - (a * (x / y))); tmp = 0.0; if (y <= -3.8e+83) tmp = t_1; elseif (y <= -1.65e+32) tmp = (z + (y * x)) / a; elseif (y <= -12200.0) tmp = (x + (z / y)) - ((x * a) / y); elseif (y <= 1.95e+80) tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / i; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(x + N[(N[(z / y), $MachinePrecision] - N[(a * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -3.8e+83], t$95$1, If[LessEqual[y, -1.65e+32], N[(N[(z + N[(y * x), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision], If[LessEqual[y, -12200.0], N[(N[(x + N[(z / y), $MachinePrecision]), $MachinePrecision] - N[(N[(x * a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.95e+80], N[(N[(t + N[(y * N[(230661.510616 + N[(y * 27464.7644705), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / i), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \left(\frac{z}{y} - a \cdot \frac{x}{y}\right)\\
\mathbf{if}\;y \leq -3.8 \cdot 10^{+83}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -1.65 \cdot 10^{+32}:\\
\;\;\;\;\frac{z + y \cdot x}{a}\\
\mathbf{elif}\;y \leq -12200:\\
\;\;\;\;\left(x + \frac{z}{y}\right) - \frac{x \cdot a}{y}\\
\mathbf{elif}\;y \leq 1.95 \cdot 10^{+80}:\\
\;\;\;\;\frac{t + y \cdot \left(230661.510616 + y \cdot 27464.7644705\right)}{i}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -3.8000000000000002e83 or 1.94999999999999999e80 < y Initial program 0.0%
Taylor expanded in y around inf 75.4%
associate--l+75.4%
associate-/l*77.8%
Simplified77.8%
if -3.8000000000000002e83 < y < -1.6500000000000001e32Initial program 1.9%
Taylor expanded in i around 0 30.6%
Taylor expanded in a around inf 72.2%
Taylor expanded in y around inf 72.2%
Taylor expanded in y around inf 72.2%
if -1.6500000000000001e32 < y < -12200Initial program 83.2%
Taylor expanded in y around inf 21.3%
if -12200 < y < 1.94999999999999999e80Initial program 93.3%
Taylor expanded in y around 0 80.8%
*-commutative80.8%
Simplified80.8%
Taylor expanded in i around inf 55.8%
Final simplification63.5%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ x (- (/ z y) (* a (/ x y))))))
(if (<= y -2.4e+89)
t_1
(if (<= y -2e+32)
(/ (+ z (* y x)) a)
(if (<= y -55000.0)
(- (+ x (/ z y)) (/ (* x a) y))
(if (<= y 1.2e+89)
(/ (+ t (* y 230661.510616)) (+ i (* y c)))
t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = x + ((z / y) - (a * (x / y)));
double tmp;
if (y <= -2.4e+89) {
tmp = t_1;
} else if (y <= -2e+32) {
tmp = (z + (y * x)) / a;
} else if (y <= -55000.0) {
tmp = (x + (z / y)) - ((x * a) / y);
} else if (y <= 1.2e+89) {
tmp = (t + (y * 230661.510616)) / (i + (y * c));
} else {
tmp = t_1;
}
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 = x + ((z / y) - (a * (x / y)))
if (y <= (-2.4d+89)) then
tmp = t_1
else if (y <= (-2d+32)) then
tmp = (z + (y * x)) / a
else if (y <= (-55000.0d0)) then
tmp = (x + (z / y)) - ((x * a) / y)
else if (y <= 1.2d+89) then
tmp = (t + (y * 230661.510616d0)) / (i + (y * c))
else
tmp = t_1
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 = x + ((z / y) - (a * (x / y)));
double tmp;
if (y <= -2.4e+89) {
tmp = t_1;
} else if (y <= -2e+32) {
tmp = (z + (y * x)) / a;
} else if (y <= -55000.0) {
tmp = (x + (z / y)) - ((x * a) / y);
} else if (y <= 1.2e+89) {
tmp = (t + (y * 230661.510616)) / (i + (y * c));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = x + ((z / y) - (a * (x / y))) tmp = 0 if y <= -2.4e+89: tmp = t_1 elif y <= -2e+32: tmp = (z + (y * x)) / a elif y <= -55000.0: tmp = (x + (z / y)) - ((x * a) / y) elif y <= 1.2e+89: tmp = (t + (y * 230661.510616)) / (i + (y * c)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(x + Float64(Float64(z / y) - Float64(a * Float64(x / y)))) tmp = 0.0 if (y <= -2.4e+89) tmp = t_1; elseif (y <= -2e+32) tmp = Float64(Float64(z + Float64(y * x)) / a); elseif (y <= -55000.0) tmp = Float64(Float64(x + Float64(z / y)) - Float64(Float64(x * a) / y)); elseif (y <= 1.2e+89) tmp = Float64(Float64(t + Float64(y * 230661.510616)) / Float64(i + Float64(y * c))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = x + ((z / y) - (a * (x / y))); tmp = 0.0; if (y <= -2.4e+89) tmp = t_1; elseif (y <= -2e+32) tmp = (z + (y * x)) / a; elseif (y <= -55000.0) tmp = (x + (z / y)) - ((x * a) / y); elseif (y <= 1.2e+89) tmp = (t + (y * 230661.510616)) / (i + (y * c)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(x + N[(N[(z / y), $MachinePrecision] - N[(a * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -2.4e+89], t$95$1, If[LessEqual[y, -2e+32], N[(N[(z + N[(y * x), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision], If[LessEqual[y, -55000.0], N[(N[(x + N[(z / y), $MachinePrecision]), $MachinePrecision] - N[(N[(x * a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.2e+89], N[(N[(t + N[(y * 230661.510616), $MachinePrecision]), $MachinePrecision] / N[(i + N[(y * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \left(\frac{z}{y} - a \cdot \frac{x}{y}\right)\\
\mathbf{if}\;y \leq -2.4 \cdot 10^{+89}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -2 \cdot 10^{+32}:\\
\;\;\;\;\frac{z + y \cdot x}{a}\\
\mathbf{elif}\;y \leq -55000:\\
\;\;\;\;\left(x + \frac{z}{y}\right) - \frac{x \cdot a}{y}\\
\mathbf{elif}\;y \leq 1.2 \cdot 10^{+89}:\\
\;\;\;\;\frac{t + y \cdot 230661.510616}{i + y \cdot c}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -2.40000000000000004e89 or 1.20000000000000002e89 < y Initial program 0.0%
Taylor expanded in y around inf 76.2%
associate--l+76.2%
associate-/l*78.6%
Simplified78.6%
if -2.40000000000000004e89 < y < -2.00000000000000011e32Initial program 1.9%
Taylor expanded in i around 0 30.6%
Taylor expanded in a around inf 72.2%
Taylor expanded in y around inf 72.2%
Taylor expanded in y around inf 72.2%
if -2.00000000000000011e32 < y < -55000Initial program 83.2%
Taylor expanded in y around inf 21.3%
if -55000 < y < 1.20000000000000002e89Initial program 92.6%
Taylor expanded in y around 0 79.7%
*-commutative79.7%
Simplified79.7%
Taylor expanded in y around 0 67.8%
Final simplification70.8%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ x (- (/ z y) (* a (/ x y))))))
(if (<= y -1.12e+85)
t_1
(if (<= y -11500000000.0)
(+ (+ (/ (/ 27464.7644705 a) y) (/ z a)) (* x (/ y a)))
(if (<= y 1.2e+89)
(/ (+ t (* y 230661.510616)) (+ i (* y (+ c (* y b)))))
t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = x + ((z / y) - (a * (x / y)));
double tmp;
if (y <= -1.12e+85) {
tmp = t_1;
} else if (y <= -11500000000.0) {
tmp = (((27464.7644705 / a) / y) + (z / a)) + (x * (y / a));
} else if (y <= 1.2e+89) {
tmp = (t + (y * 230661.510616)) / (i + (y * (c + (y * b))));
} else {
tmp = t_1;
}
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 = x + ((z / y) - (a * (x / y)))
if (y <= (-1.12d+85)) then
tmp = t_1
else if (y <= (-11500000000.0d0)) then
tmp = (((27464.7644705d0 / a) / y) + (z / a)) + (x * (y / a))
else if (y <= 1.2d+89) then
tmp = (t + (y * 230661.510616d0)) / (i + (y * (c + (y * b))))
else
tmp = t_1
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 = x + ((z / y) - (a * (x / y)));
double tmp;
if (y <= -1.12e+85) {
tmp = t_1;
} else if (y <= -11500000000.0) {
tmp = (((27464.7644705 / a) / y) + (z / a)) + (x * (y / a));
} else if (y <= 1.2e+89) {
tmp = (t + (y * 230661.510616)) / (i + (y * (c + (y * b))));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = x + ((z / y) - (a * (x / y))) tmp = 0 if y <= -1.12e+85: tmp = t_1 elif y <= -11500000000.0: tmp = (((27464.7644705 / a) / y) + (z / a)) + (x * (y / a)) elif y <= 1.2e+89: tmp = (t + (y * 230661.510616)) / (i + (y * (c + (y * b)))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(x + Float64(Float64(z / y) - Float64(a * Float64(x / y)))) tmp = 0.0 if (y <= -1.12e+85) tmp = t_1; elseif (y <= -11500000000.0) tmp = Float64(Float64(Float64(Float64(27464.7644705 / a) / y) + Float64(z / a)) + Float64(x * Float64(y / a))); elseif (y <= 1.2e+89) tmp = Float64(Float64(t + Float64(y * 230661.510616)) / Float64(i + Float64(y * Float64(c + Float64(y * b))))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = x + ((z / y) - (a * (x / y))); tmp = 0.0; if (y <= -1.12e+85) tmp = t_1; elseif (y <= -11500000000.0) tmp = (((27464.7644705 / a) / y) + (z / a)) + (x * (y / a)); elseif (y <= 1.2e+89) tmp = (t + (y * 230661.510616)) / (i + (y * (c + (y * b)))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(x + N[(N[(z / y), $MachinePrecision] - N[(a * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.12e+85], t$95$1, If[LessEqual[y, -11500000000.0], N[(N[(N[(N[(27464.7644705 / a), $MachinePrecision] / y), $MachinePrecision] + N[(z / a), $MachinePrecision]), $MachinePrecision] + N[(x * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.2e+89], N[(N[(t + N[(y * 230661.510616), $MachinePrecision]), $MachinePrecision] / N[(i + N[(y * N[(c + N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \left(\frac{z}{y} - a \cdot \frac{x}{y}\right)\\
\mathbf{if}\;y \leq -1.12 \cdot 10^{+85}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -11500000000:\\
\;\;\;\;\left(\frac{\frac{27464.7644705}{a}}{y} + \frac{z}{a}\right) + x \cdot \frac{y}{a}\\
\mathbf{elif}\;y \leq 1.2 \cdot 10^{+89}:\\
\;\;\;\;\frac{t + y \cdot 230661.510616}{i + y \cdot \left(c + y \cdot b\right)}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -1.11999999999999993e85 or 1.20000000000000002e89 < y Initial program 0.0%
Taylor expanded in y around inf 76.2%
associate--l+76.2%
associate-/l*78.6%
Simplified78.6%
if -1.11999999999999993e85 < y < -1.15e10Initial program 28.6%
Taylor expanded in i around 0 55.4%
Taylor expanded in a around inf 47.8%
Taylor expanded in y around inf 47.0%
associate-+r+47.0%
associate-*r/47.0%
metadata-eval47.0%
associate-/r*47.0%
associate-/l*55.6%
Simplified55.6%
if -1.15e10 < y < 1.20000000000000002e89Initial program 92.7%
Taylor expanded in y around 0 78.7%
*-commutative78.7%
Simplified78.7%
Taylor expanded in y around 0 74.3%
*-commutative74.3%
Simplified74.3%
Final simplification75.0%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (/ (+ z (* y x)) a)))
(if (<= y -3.7e+136)
x
(if (<= y -18000000000.0)
t_1
(if (<= y 0.48)
(/ (+ t (* y 230661.510616)) i)
(if (<= y 3.4e+121) t_1 x))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = (z + (y * x)) / a;
double tmp;
if (y <= -3.7e+136) {
tmp = x;
} else if (y <= -18000000000.0) {
tmp = t_1;
} else if (y <= 0.48) {
tmp = (t + (y * 230661.510616)) / i;
} else if (y <= 3.4e+121) {
tmp = t_1;
} 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) :: t_1
real(8) :: tmp
t_1 = (z + (y * x)) / a
if (y <= (-3.7d+136)) then
tmp = x
else if (y <= (-18000000000.0d0)) then
tmp = t_1
else if (y <= 0.48d0) then
tmp = (t + (y * 230661.510616d0)) / i
else if (y <= 3.4d+121) then
tmp = t_1
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 t_1 = (z + (y * x)) / a;
double tmp;
if (y <= -3.7e+136) {
tmp = x;
} else if (y <= -18000000000.0) {
tmp = t_1;
} else if (y <= 0.48) {
tmp = (t + (y * 230661.510616)) / i;
} else if (y <= 3.4e+121) {
tmp = t_1;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = (z + (y * x)) / a tmp = 0 if y <= -3.7e+136: tmp = x elif y <= -18000000000.0: tmp = t_1 elif y <= 0.48: tmp = (t + (y * 230661.510616)) / i elif y <= 3.4e+121: tmp = t_1 else: tmp = x return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(Float64(z + Float64(y * x)) / a) tmp = 0.0 if (y <= -3.7e+136) tmp = x; elseif (y <= -18000000000.0) tmp = t_1; elseif (y <= 0.48) tmp = Float64(Float64(t + Float64(y * 230661.510616)) / i); elseif (y <= 3.4e+121) tmp = t_1; else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = (z + (y * x)) / a; tmp = 0.0; if (y <= -3.7e+136) tmp = x; elseif (y <= -18000000000.0) tmp = t_1; elseif (y <= 0.48) tmp = (t + (y * 230661.510616)) / i; elseif (y <= 3.4e+121) tmp = t_1; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(z + N[(y * x), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision]}, If[LessEqual[y, -3.7e+136], x, If[LessEqual[y, -18000000000.0], t$95$1, If[LessEqual[y, 0.48], N[(N[(t + N[(y * 230661.510616), $MachinePrecision]), $MachinePrecision] / i), $MachinePrecision], If[LessEqual[y, 3.4e+121], t$95$1, x]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{z + y \cdot x}{a}\\
\mathbf{if}\;y \leq -3.7 \cdot 10^{+136}:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq -18000000000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 0.48:\\
\;\;\;\;\frac{t + y \cdot 230661.510616}{i}\\
\mathbf{elif}\;y \leq 3.4 \cdot 10^{+121}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if y < -3.7000000000000001e136 or 3.4000000000000001e121 < y Initial program 0.0%
Taylor expanded in y around inf 68.0%
if -3.7000000000000001e136 < y < -1.8e10 or 0.47999999999999998 < y < 3.4000000000000001e121Initial program 21.8%
Taylor expanded in i around 0 28.5%
Taylor expanded in a around inf 32.6%
Taylor expanded in y around inf 30.5%
Taylor expanded in y around inf 30.3%
if -1.8e10 < y < 0.47999999999999998Initial program 99.7%
Taylor expanded in y around 0 85.8%
*-commutative85.8%
Simplified85.8%
Taylor expanded in i around inf 61.0%
Final simplification57.2%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ x (- (/ z y) (* a (/ x y))))))
(if (<= y -5.8e+90)
t_1
(if (<= y -2900000000.0)
(+ (+ (/ (/ 27464.7644705 a) y) (/ z a)) (* x (/ y a)))
(if (<= y 1.2e+89) (/ (+ t (* y 230661.510616)) (+ i (* y c))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = x + ((z / y) - (a * (x / y)));
double tmp;
if (y <= -5.8e+90) {
tmp = t_1;
} else if (y <= -2900000000.0) {
tmp = (((27464.7644705 / a) / y) + (z / a)) + (x * (y / a));
} else if (y <= 1.2e+89) {
tmp = (t + (y * 230661.510616)) / (i + (y * c));
} else {
tmp = t_1;
}
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 = x + ((z / y) - (a * (x / y)))
if (y <= (-5.8d+90)) then
tmp = t_1
else if (y <= (-2900000000.0d0)) then
tmp = (((27464.7644705d0 / a) / y) + (z / a)) + (x * (y / a))
else if (y <= 1.2d+89) then
tmp = (t + (y * 230661.510616d0)) / (i + (y * c))
else
tmp = t_1
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 = x + ((z / y) - (a * (x / y)));
double tmp;
if (y <= -5.8e+90) {
tmp = t_1;
} else if (y <= -2900000000.0) {
tmp = (((27464.7644705 / a) / y) + (z / a)) + (x * (y / a));
} else if (y <= 1.2e+89) {
tmp = (t + (y * 230661.510616)) / (i + (y * c));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = x + ((z / y) - (a * (x / y))) tmp = 0 if y <= -5.8e+90: tmp = t_1 elif y <= -2900000000.0: tmp = (((27464.7644705 / a) / y) + (z / a)) + (x * (y / a)) elif y <= 1.2e+89: tmp = (t + (y * 230661.510616)) / (i + (y * c)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(x + Float64(Float64(z / y) - Float64(a * Float64(x / y)))) tmp = 0.0 if (y <= -5.8e+90) tmp = t_1; elseif (y <= -2900000000.0) tmp = Float64(Float64(Float64(Float64(27464.7644705 / a) / y) + Float64(z / a)) + Float64(x * Float64(y / a))); elseif (y <= 1.2e+89) tmp = Float64(Float64(t + Float64(y * 230661.510616)) / Float64(i + Float64(y * c))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = x + ((z / y) - (a * (x / y))); tmp = 0.0; if (y <= -5.8e+90) tmp = t_1; elseif (y <= -2900000000.0) tmp = (((27464.7644705 / a) / y) + (z / a)) + (x * (y / a)); elseif (y <= 1.2e+89) tmp = (t + (y * 230661.510616)) / (i + (y * c)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(x + N[(N[(z / y), $MachinePrecision] - N[(a * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -5.8e+90], t$95$1, If[LessEqual[y, -2900000000.0], N[(N[(N[(N[(27464.7644705 / a), $MachinePrecision] / y), $MachinePrecision] + N[(z / a), $MachinePrecision]), $MachinePrecision] + N[(x * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.2e+89], N[(N[(t + N[(y * 230661.510616), $MachinePrecision]), $MachinePrecision] / N[(i + N[(y * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \left(\frac{z}{y} - a \cdot \frac{x}{y}\right)\\
\mathbf{if}\;y \leq -5.8 \cdot 10^{+90}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -2900000000:\\
\;\;\;\;\left(\frac{\frac{27464.7644705}{a}}{y} + \frac{z}{a}\right) + x \cdot \frac{y}{a}\\
\mathbf{elif}\;y \leq 1.2 \cdot 10^{+89}:\\
\;\;\;\;\frac{t + y \cdot 230661.510616}{i + y \cdot c}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -5.8000000000000003e90 or 1.20000000000000002e89 < y Initial program 0.0%
Taylor expanded in y around inf 76.2%
associate--l+76.2%
associate-/l*78.6%
Simplified78.6%
if -5.8000000000000003e90 < y < -2.9e9Initial program 28.6%
Taylor expanded in i around 0 55.4%
Taylor expanded in a around inf 47.8%
Taylor expanded in y around inf 47.0%
associate-+r+47.0%
associate-*r/47.0%
metadata-eval47.0%
associate-/r*47.0%
associate-/l*55.6%
Simplified55.6%
if -2.9e9 < y < 1.20000000000000002e89Initial program 92.7%
Taylor expanded in y around 0 78.7%
*-commutative78.7%
Simplified78.7%
Taylor expanded in y around 0 67.0%
Final simplification70.7%
(FPCore (x y z t a b c i) :precision binary64 (if (<= y -55000.0) x (if (<= y 1.35e+41) (/ (+ t (* y 230661.510616)) i) x)))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (y <= -55000.0) {
tmp = x;
} else if (y <= 1.35e+41) {
tmp = (t + (y * 230661.510616)) / 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 <= (-55000.0d0)) then
tmp = x
else if (y <= 1.35d+41) then
tmp = (t + (y * 230661.510616d0)) / 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 <= -55000.0) {
tmp = x;
} else if (y <= 1.35e+41) {
tmp = (t + (y * 230661.510616)) / i;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if y <= -55000.0: tmp = x elif y <= 1.35e+41: tmp = (t + (y * 230661.510616)) / i else: tmp = x return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (y <= -55000.0) tmp = x; elseif (y <= 1.35e+41) tmp = Float64(Float64(t + Float64(y * 230661.510616)) / 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 <= -55000.0) tmp = x; elseif (y <= 1.35e+41) tmp = (t + (y * 230661.510616)) / i; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, -55000.0], x, If[LessEqual[y, 1.35e+41], N[(N[(t + N[(y * 230661.510616), $MachinePrecision]), $MachinePrecision] / i), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -55000:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq 1.35 \cdot 10^{+41}:\\
\;\;\;\;\frac{t + y \cdot 230661.510616}{i}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if y < -55000 or 1.35e41 < y Initial program 6.3%
Taylor expanded in y around inf 47.5%
if -55000 < y < 1.35e41Initial program 97.7%
Taylor expanded in y around 0 83.8%
*-commutative83.8%
Simplified83.8%
Taylor expanded in i around inf 58.6%
Final simplification53.5%
(FPCore (x y z t a b c i) :precision binary64 (if (<= y -560.0) x (if (<= y 7.2e+89) (/ 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 <= -560.0) {
tmp = x;
} else if (y <= 7.2e+89) {
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 <= (-560.0d0)) then
tmp = x
else if (y <= 7.2d+89) 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 <= -560.0) {
tmp = x;
} else if (y <= 7.2e+89) {
tmp = t / i;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if y <= -560.0: tmp = x elif y <= 7.2e+89: tmp = t / i else: tmp = x return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (y <= -560.0) tmp = x; elseif (y <= 7.2e+89) 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 <= -560.0) tmp = x; elseif (y <= 7.2e+89) tmp = t / i; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, -560.0], x, If[LessEqual[y, 7.2e+89], N[(t / i), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -560:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq 7.2 \cdot 10^{+89}:\\
\;\;\;\;\frac{t}{i}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if y < -560 or 7.2e89 < y Initial program 4.9%
Taylor expanded in y around inf 52.6%
if -560 < y < 7.2e89Initial program 91.4%
Taylor expanded in y around 0 48.7%
Final simplification50.3%
(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 56.3%
Taylor expanded in y around inf 23.5%
Final simplification23.5%
herbie shell --seed 2024043
(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)))