
(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 (- (+ x (/ z y)) (/ (* x a) y)))
(t_2 (+ c (* y (+ b (* y (+ y a))))))
(t_3 (* y t_2))
(t_4 (fma y (+ y a) b))
(t_5 (pow t_4 2.0))
(t_6 (fma y t_4 c)))
(if (<= y -1.55e+110)
t_1
(if (<= y -16000000000000.0)
(+
(* 230661.510616 (/ 1.0 t_2))
(+
(/ t t_3)
(fma
-1.0
(* c (+ (/ 27464.7644705 (* y t_5)) (+ (/ z t_5) (/ x (/ t_5 y)))))
(+ (/ 27464.7644705 t_4) (/ y (/ t_4 (fma y x z)))))))
(if (<= y 27000000.0)
(/
(+
t
(+
(* x (pow y 4.0))
(* y (+ 230661.510616 (* y (+ 27464.7644705 (* y z)))))))
(+ t_3 i))
(if (<= y 4.4e+102)
(+
(/ 230661.510616 t_6)
(+
(/ (/ t y) t_6)
(/ y (/ t_6 (fma y (fma x y z) 27464.7644705)))))
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)) - ((x * a) / y);
double t_2 = c + (y * (b + (y * (y + a))));
double t_3 = y * t_2;
double t_4 = fma(y, (y + a), b);
double t_5 = pow(t_4, 2.0);
double t_6 = fma(y, t_4, c);
double tmp;
if (y <= -1.55e+110) {
tmp = t_1;
} else if (y <= -16000000000000.0) {
tmp = (230661.510616 * (1.0 / t_2)) + ((t / t_3) + fma(-1.0, (c * ((27464.7644705 / (y * t_5)) + ((z / t_5) + (x / (t_5 / y))))), ((27464.7644705 / t_4) + (y / (t_4 / fma(y, x, z))))));
} else if (y <= 27000000.0) {
tmp = (t + ((x * pow(y, 4.0)) + (y * (230661.510616 + (y * (27464.7644705 + (y * z))))))) / (t_3 + i);
} else if (y <= 4.4e+102) {
tmp = (230661.510616 / t_6) + (((t / y) / t_6) + (y / (t_6 / fma(y, fma(x, y, z), 27464.7644705))));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i) t_1 = Float64(Float64(x + Float64(z / y)) - Float64(Float64(x * a) / y)) t_2 = Float64(c + Float64(y * Float64(b + Float64(y * Float64(y + a))))) t_3 = Float64(y * t_2) t_4 = fma(y, Float64(y + a), b) t_5 = t_4 ^ 2.0 t_6 = fma(y, t_4, c) tmp = 0.0 if (y <= -1.55e+110) tmp = t_1; elseif (y <= -16000000000000.0) tmp = Float64(Float64(230661.510616 * Float64(1.0 / t_2)) + Float64(Float64(t / t_3) + fma(-1.0, Float64(c * Float64(Float64(27464.7644705 / Float64(y * t_5)) + Float64(Float64(z / t_5) + Float64(x / Float64(t_5 / y))))), Float64(Float64(27464.7644705 / t_4) + Float64(y / Float64(t_4 / fma(y, x, z))))))); elseif (y <= 27000000.0) tmp = Float64(Float64(t + Float64(Float64(x * (y ^ 4.0)) + Float64(y * Float64(230661.510616 + Float64(y * Float64(27464.7644705 + Float64(y * z))))))) / Float64(t_3 + i)); elseif (y <= 4.4e+102) tmp = Float64(Float64(230661.510616 / t_6) + Float64(Float64(Float64(t / y) / t_6) + Float64(y / Float64(t_6 / fma(y, fma(x, y, z), 27464.7644705))))); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(x + N[(z / y), $MachinePrecision]), $MachinePrecision] - N[(N[(x * a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c + N[(y * N[(b + N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(y * t$95$2), $MachinePrecision]}, Block[{t$95$4 = N[(y * N[(y + a), $MachinePrecision] + b), $MachinePrecision]}, Block[{t$95$5 = N[Power[t$95$4, 2.0], $MachinePrecision]}, Block[{t$95$6 = N[(y * t$95$4 + c), $MachinePrecision]}, If[LessEqual[y, -1.55e+110], t$95$1, If[LessEqual[y, -16000000000000.0], N[(N[(230661.510616 * N[(1.0 / t$95$2), $MachinePrecision]), $MachinePrecision] + N[(N[(t / t$95$3), $MachinePrecision] + N[(-1.0 * N[(c * N[(N[(27464.7644705 / N[(y * t$95$5), $MachinePrecision]), $MachinePrecision] + N[(N[(z / t$95$5), $MachinePrecision] + N[(x / N[(t$95$5 / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(27464.7644705 / t$95$4), $MachinePrecision] + N[(y / N[(t$95$4 / N[(y * x + z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 27000000.0], N[(N[(t + N[(N[(x * N[Power[y, 4.0], $MachinePrecision]), $MachinePrecision] + N[(y * N[(230661.510616 + N[(y * N[(27464.7644705 + N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(t$95$3 + i), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4.4e+102], N[(N[(230661.510616 / t$95$6), $MachinePrecision] + N[(N[(N[(t / y), $MachinePrecision] / t$95$6), $MachinePrecision] + N[(y / N[(t$95$6 / N[(y * N[(x * y + z), $MachinePrecision] + 27464.7644705), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x + \frac{z}{y}\right) - \frac{x \cdot a}{y}\\
t_2 := c + y \cdot \left(b + y \cdot \left(y + a\right)\right)\\
t_3 := y \cdot t_2\\
t_4 := \mathsf{fma}\left(y, y + a, b\right)\\
t_5 := {t_4}^{2}\\
t_6 := \mathsf{fma}\left(y, t_4, c\right)\\
\mathbf{if}\;y \leq -1.55 \cdot 10^{+110}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq -16000000000000:\\
\;\;\;\;230661.510616 \cdot \frac{1}{t_2} + \left(\frac{t}{t_3} + \mathsf{fma}\left(-1, c \cdot \left(\frac{27464.7644705}{y \cdot t_5} + \left(\frac{z}{t_5} + \frac{x}{\frac{t_5}{y}}\right)\right), \frac{27464.7644705}{t_4} + \frac{y}{\frac{t_4}{\mathsf{fma}\left(y, x, z\right)}}\right)\right)\\
\mathbf{elif}\;y \leq 27000000:\\
\;\;\;\;\frac{t + \left(x \cdot {y}^{4} + y \cdot \left(230661.510616 + y \cdot \left(27464.7644705 + y \cdot z\right)\right)\right)}{t_3 + i}\\
\mathbf{elif}\;y \leq 4.4 \cdot 10^{+102}:\\
\;\;\;\;\frac{230661.510616}{t_6} + \left(\frac{\frac{t}{y}}{t_6} + \frac{y}{\frac{t_6}{\mathsf{fma}\left(y, \mathsf{fma}\left(x, y, z\right), 27464.7644705\right)}}\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if y < -1.55000000000000009e110 or 4.40000000000000015e102 < y Initial program 0.1%
Taylor expanded in y around inf 78.5%
if -1.55000000000000009e110 < y < -1.6e13Initial program 31.7%
Taylor expanded in i around 0 26.2%
Taylor expanded in t around 0 49.3%
Taylor expanded in c around 0 77.1%
Simplified88.0%
if -1.6e13 < y < 2.7e7Initial program 99.7%
Taylor expanded in x around 0 99.8%
if 2.7e7 < y < 4.40000000000000015e102Initial program 25.1%
Taylor expanded in i around 0 25.1%
Taylor expanded in t around 0 53.6%
associate-*r/53.6%
metadata-eval53.6%
+-commutative53.6%
+-commutative53.6%
+-commutative53.6%
fma-udef53.6%
fma-udef53.6%
Simplified71.4%
Final simplification89.2%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (fma y (fma y (+ y a) b) c))
(t_2 (+ b (* y (+ y a))))
(t_3 (- (+ x (/ z y)) (/ (* x a) y)))
(t_4 (+ c (* y t_2)))
(t_5 (* y t_4)))
(if (<= y -1.28e+107)
t_3
(if (<= y -16000000000000.0)
(+
(* 230661.510616 (/ 1.0 t_4))
(+ (/ t t_5) (/ (+ 27464.7644705 (* y (+ z (* y x)))) t_2)))
(if (<= y 1900000000.0)
(/
(+
t
(+
(* x (pow y 4.0))
(* y (+ 230661.510616 (* y (+ 27464.7644705 (* y z)))))))
(+ t_5 i))
(if (<= y 5.6e+102)
(+
(/ 230661.510616 t_1)
(+
(/ (/ t y) t_1)
(/ y (/ t_1 (fma y (fma x y z) 27464.7644705)))))
t_3))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = fma(y, fma(y, (y + a), b), c);
double t_2 = b + (y * (y + a));
double t_3 = (x + (z / y)) - ((x * a) / y);
double t_4 = c + (y * t_2);
double t_5 = y * t_4;
double tmp;
if (y <= -1.28e+107) {
tmp = t_3;
} else if (y <= -16000000000000.0) {
tmp = (230661.510616 * (1.0 / t_4)) + ((t / t_5) + ((27464.7644705 + (y * (z + (y * x)))) / t_2));
} else if (y <= 1900000000.0) {
tmp = (t + ((x * pow(y, 4.0)) + (y * (230661.510616 + (y * (27464.7644705 + (y * z))))))) / (t_5 + i);
} else if (y <= 5.6e+102) {
tmp = (230661.510616 / t_1) + (((t / y) / t_1) + (y / (t_1 / fma(y, fma(x, y, z), 27464.7644705))));
} else {
tmp = t_3;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i) t_1 = fma(y, fma(y, Float64(y + a), b), c) t_2 = Float64(b + Float64(y * Float64(y + a))) t_3 = Float64(Float64(x + Float64(z / y)) - Float64(Float64(x * a) / y)) t_4 = Float64(c + Float64(y * t_2)) t_5 = Float64(y * t_4) tmp = 0.0 if (y <= -1.28e+107) tmp = t_3; elseif (y <= -16000000000000.0) tmp = Float64(Float64(230661.510616 * Float64(1.0 / t_4)) + Float64(Float64(t / t_5) + Float64(Float64(27464.7644705 + Float64(y * Float64(z + Float64(y * x)))) / t_2))); elseif (y <= 1900000000.0) tmp = Float64(Float64(t + Float64(Float64(x * (y ^ 4.0)) + Float64(y * Float64(230661.510616 + Float64(y * Float64(27464.7644705 + Float64(y * z))))))) / Float64(t_5 + i)); elseif (y <= 5.6e+102) tmp = Float64(Float64(230661.510616 / t_1) + Float64(Float64(Float64(t / y) / t_1) + Float64(y / Float64(t_1 / fma(y, fma(x, y, z), 27464.7644705))))); else tmp = t_3; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(y * N[(y * N[(y + a), $MachinePrecision] + b), $MachinePrecision] + c), $MachinePrecision]}, Block[{t$95$2 = N[(b + N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(x + N[(z / y), $MachinePrecision]), $MachinePrecision] - N[(N[(x * a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(c + N[(y * t$95$2), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(y * t$95$4), $MachinePrecision]}, If[LessEqual[y, -1.28e+107], t$95$3, If[LessEqual[y, -16000000000000.0], N[(N[(230661.510616 * N[(1.0 / t$95$4), $MachinePrecision]), $MachinePrecision] + N[(N[(t / t$95$5), $MachinePrecision] + N[(N[(27464.7644705 + N[(y * N[(z + N[(y * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1900000000.0], N[(N[(t + N[(N[(x * N[Power[y, 4.0], $MachinePrecision]), $MachinePrecision] + N[(y * N[(230661.510616 + N[(y * N[(27464.7644705 + N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(t$95$5 + i), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 5.6e+102], N[(N[(230661.510616 / t$95$1), $MachinePrecision] + N[(N[(N[(t / y), $MachinePrecision] / t$95$1), $MachinePrecision] + N[(y / N[(t$95$1 / N[(y * N[(x * y + z), $MachinePrecision] + 27464.7644705), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$3]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(y, \mathsf{fma}\left(y, y + a, b\right), c\right)\\
t_2 := b + y \cdot \left(y + a\right)\\
t_3 := \left(x + \frac{z}{y}\right) - \frac{x \cdot a}{y}\\
t_4 := c + y \cdot t_2\\
t_5 := y \cdot t_4\\
\mathbf{if}\;y \leq -1.28 \cdot 10^{+107}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;y \leq -16000000000000:\\
\;\;\;\;230661.510616 \cdot \frac{1}{t_4} + \left(\frac{t}{t_5} + \frac{27464.7644705 + y \cdot \left(z + y \cdot x\right)}{t_2}\right)\\
\mathbf{elif}\;y \leq 1900000000:\\
\;\;\;\;\frac{t + \left(x \cdot {y}^{4} + y \cdot \left(230661.510616 + y \cdot \left(27464.7644705 + y \cdot z\right)\right)\right)}{t_5 + i}\\
\mathbf{elif}\;y \leq 5.6 \cdot 10^{+102}:\\
\;\;\;\;\frac{230661.510616}{t_1} + \left(\frac{\frac{t}{y}}{t_1} + \frac{y}{\frac{t_1}{\mathsf{fma}\left(y, \mathsf{fma}\left(x, y, z\right), 27464.7644705\right)}}\right)\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if y < -1.2799999999999999e107 or 5.60000000000000037e102 < y Initial program 0.1%
Taylor expanded in y around inf 78.5%
if -1.2799999999999999e107 < y < -1.6e13Initial program 31.7%
Taylor expanded in i around 0 26.2%
Taylor expanded in t around 0 49.3%
Taylor expanded in c around 0 77.0%
if -1.6e13 < y < 1.9e9Initial program 99.7%
Taylor expanded in x around 0 99.8%
if 1.9e9 < y < 5.60000000000000037e102Initial program 25.1%
Taylor expanded in i around 0 25.1%
Taylor expanded in t around 0 53.6%
associate-*r/53.6%
metadata-eval53.6%
+-commutative53.6%
+-commutative53.6%
+-commutative53.6%
fma-udef53.6%
fma-udef53.6%
Simplified71.4%
Final simplification88.4%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ b (* y (+ y a))))
(t_2 (- (+ x (/ z y)) (/ (* x a) y)))
(t_3 (+ c (* y t_1)))
(t_4 (* y t_3)))
(if (<= y -7.5e+109)
t_2
(if (<= y -3300000000000.0)
(+
(* 230661.510616 (/ 1.0 t_3))
(+ (/ t t_4) (/ (+ 27464.7644705 (* y (+ z (* y x)))) t_1)))
(if (<= y 7.5e+15)
(/
(+
t
(+
(* x (pow y 4.0))
(* y (+ 230661.510616 (* y (+ 27464.7644705 (* y z)))))))
(+ t_4 i))
(if (<= y 2.45e+89)
(/ x (/ (fma y (fma y (+ y a) b) c) (pow y 3.0)))
t_2))))))
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 = (x + (z / y)) - ((x * a) / y);
double t_3 = c + (y * t_1);
double t_4 = y * t_3;
double tmp;
if (y <= -7.5e+109) {
tmp = t_2;
} else if (y <= -3300000000000.0) {
tmp = (230661.510616 * (1.0 / t_3)) + ((t / t_4) + ((27464.7644705 + (y * (z + (y * x)))) / t_1));
} else if (y <= 7.5e+15) {
tmp = (t + ((x * pow(y, 4.0)) + (y * (230661.510616 + (y * (27464.7644705 + (y * z))))))) / (t_4 + i);
} else if (y <= 2.45e+89) {
tmp = x / (fma(y, fma(y, (y + a), b), c) / pow(y, 3.0));
} else {
tmp = t_2;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i) t_1 = Float64(b + Float64(y * Float64(y + a))) t_2 = Float64(Float64(x + Float64(z / y)) - Float64(Float64(x * a) / y)) t_3 = Float64(c + Float64(y * t_1)) t_4 = Float64(y * t_3) tmp = 0.0 if (y <= -7.5e+109) tmp = t_2; elseif (y <= -3300000000000.0) tmp = Float64(Float64(230661.510616 * Float64(1.0 / t_3)) + Float64(Float64(t / t_4) + Float64(Float64(27464.7644705 + Float64(y * Float64(z + Float64(y * x)))) / t_1))); elseif (y <= 7.5e+15) tmp = Float64(Float64(t + Float64(Float64(x * (y ^ 4.0)) + Float64(y * Float64(230661.510616 + Float64(y * Float64(27464.7644705 + Float64(y * z))))))) / Float64(t_4 + i)); elseif (y <= 2.45e+89) tmp = Float64(x / Float64(fma(y, fma(y, Float64(y + a), b), c) / (y ^ 3.0))); else tmp = t_2; 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[(N[(x + N[(z / y), $MachinePrecision]), $MachinePrecision] - N[(N[(x * a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(c + N[(y * t$95$1), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(y * t$95$3), $MachinePrecision]}, If[LessEqual[y, -7.5e+109], t$95$2, If[LessEqual[y, -3300000000000.0], N[(N[(230661.510616 * N[(1.0 / t$95$3), $MachinePrecision]), $MachinePrecision] + N[(N[(t / t$95$4), $MachinePrecision] + N[(N[(27464.7644705 + N[(y * N[(z + N[(y * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 7.5e+15], N[(N[(t + N[(N[(x * N[Power[y, 4.0], $MachinePrecision]), $MachinePrecision] + N[(y * N[(230661.510616 + N[(y * N[(27464.7644705 + N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(t$95$4 + i), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.45e+89], N[(x / N[(N[(y * N[(y * N[(y + a), $MachinePrecision] + b), $MachinePrecision] + c), $MachinePrecision] / N[Power[y, 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b + y \cdot \left(y + a\right)\\
t_2 := \left(x + \frac{z}{y}\right) - \frac{x \cdot a}{y}\\
t_3 := c + y \cdot t_1\\
t_4 := y \cdot t_3\\
\mathbf{if}\;y \leq -7.5 \cdot 10^{+109}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq -3300000000000:\\
\;\;\;\;230661.510616 \cdot \frac{1}{t_3} + \left(\frac{t}{t_4} + \frac{27464.7644705 + y \cdot \left(z + y \cdot x\right)}{t_1}\right)\\
\mathbf{elif}\;y \leq 7.5 \cdot 10^{+15}:\\
\;\;\;\;\frac{t + \left(x \cdot {y}^{4} + y \cdot \left(230661.510616 + y \cdot \left(27464.7644705 + y \cdot z\right)\right)\right)}{t_4 + i}\\
\mathbf{elif}\;y \leq 2.45 \cdot 10^{+89}:\\
\;\;\;\;\frac{x}{\frac{\mathsf{fma}\left(y, \mathsf{fma}\left(y, y + a, b\right), c\right)}{{y}^{3}}}\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if y < -7.50000000000000018e109 or 2.44999999999999998e89 < y Initial program 0.1%
Taylor expanded in y around inf 78.4%
if -7.50000000000000018e109 < y < -3.3e12Initial program 31.7%
Taylor expanded in i around 0 26.2%
Taylor expanded in t around 0 49.3%
Taylor expanded in c around 0 77.0%
if -3.3e12 < y < 7.5e15Initial program 98.3%
Taylor expanded in x around 0 98.3%
if 7.5e15 < y < 2.44999999999999998e89Initial program 26.9%
Taylor expanded in i around 0 26.9%
Taylor expanded in x around inf 35.9%
associate-/l*58.7%
+-commutative58.7%
+-commutative58.7%
+-commutative58.7%
fma-udef58.7%
fma-udef58.7%
Simplified58.7%
Final simplification87.0%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ b (* y (+ y a))))
(t_2 (- (+ x (/ z y)) (/ (* x a) y)))
(t_3 (+ c (* y t_1)))
(t_4 (* y t_3))
(t_5
(+
(* 230661.510616 (/ 1.0 t_3))
(+ (/ t t_4) (/ (+ 27464.7644705 (* y (+ z (* y x)))) t_1)))))
(if (<= y -1e+107)
t_2
(if (<= y -3300000000000.0)
t_5
(if (<= y 3.8e+39)
(/
(+
t
(+
(* x (pow y 4.0))
(* y (+ 230661.510616 (* y (+ 27464.7644705 (* y z)))))))
(+ t_4 i))
(if (<= y 6.6e+104) t_5 t_2))))))
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 = (x + (z / y)) - ((x * a) / y);
double t_3 = c + (y * t_1);
double t_4 = y * t_3;
double t_5 = (230661.510616 * (1.0 / t_3)) + ((t / t_4) + ((27464.7644705 + (y * (z + (y * x)))) / t_1));
double tmp;
if (y <= -1e+107) {
tmp = t_2;
} else if (y <= -3300000000000.0) {
tmp = t_5;
} else if (y <= 3.8e+39) {
tmp = (t + ((x * pow(y, 4.0)) + (y * (230661.510616 + (y * (27464.7644705 + (y * z))))))) / (t_4 + i);
} else if (y <= 6.6e+104) {
tmp = t_5;
} else {
tmp = t_2;
}
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) :: tmp
t_1 = b + (y * (y + a))
t_2 = (x + (z / y)) - ((x * a) / y)
t_3 = c + (y * t_1)
t_4 = y * t_3
t_5 = (230661.510616d0 * (1.0d0 / t_3)) + ((t / t_4) + ((27464.7644705d0 + (y * (z + (y * x)))) / t_1))
if (y <= (-1d+107)) then
tmp = t_2
else if (y <= (-3300000000000.0d0)) then
tmp = t_5
else if (y <= 3.8d+39) then
tmp = (t + ((x * (y ** 4.0d0)) + (y * (230661.510616d0 + (y * (27464.7644705d0 + (y * z))))))) / (t_4 + i)
else if (y <= 6.6d+104) then
tmp = t_5
else
tmp = t_2
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 = b + (y * (y + a));
double t_2 = (x + (z / y)) - ((x * a) / y);
double t_3 = c + (y * t_1);
double t_4 = y * t_3;
double t_5 = (230661.510616 * (1.0 / t_3)) + ((t / t_4) + ((27464.7644705 + (y * (z + (y * x)))) / t_1));
double tmp;
if (y <= -1e+107) {
tmp = t_2;
} else if (y <= -3300000000000.0) {
tmp = t_5;
} else if (y <= 3.8e+39) {
tmp = (t + ((x * Math.pow(y, 4.0)) + (y * (230661.510616 + (y * (27464.7644705 + (y * z))))))) / (t_4 + i);
} else if (y <= 6.6e+104) {
tmp = t_5;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = b + (y * (y + a)) t_2 = (x + (z / y)) - ((x * a) / y) t_3 = c + (y * t_1) t_4 = y * t_3 t_5 = (230661.510616 * (1.0 / t_3)) + ((t / t_4) + ((27464.7644705 + (y * (z + (y * x)))) / t_1)) tmp = 0 if y <= -1e+107: tmp = t_2 elif y <= -3300000000000.0: tmp = t_5 elif y <= 3.8e+39: tmp = (t + ((x * math.pow(y, 4.0)) + (y * (230661.510616 + (y * (27464.7644705 + (y * z))))))) / (t_4 + i) elif y <= 6.6e+104: tmp = t_5 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(b + Float64(y * Float64(y + a))) t_2 = Float64(Float64(x + Float64(z / y)) - Float64(Float64(x * a) / y)) t_3 = Float64(c + Float64(y * t_1)) t_4 = Float64(y * t_3) t_5 = Float64(Float64(230661.510616 * Float64(1.0 / t_3)) + Float64(Float64(t / t_4) + Float64(Float64(27464.7644705 + Float64(y * Float64(z + Float64(y * x)))) / t_1))) tmp = 0.0 if (y <= -1e+107) tmp = t_2; elseif (y <= -3300000000000.0) tmp = t_5; elseif (y <= 3.8e+39) tmp = Float64(Float64(t + Float64(Float64(x * (y ^ 4.0)) + Float64(y * Float64(230661.510616 + Float64(y * Float64(27464.7644705 + Float64(y * z))))))) / Float64(t_4 + i)); elseif (y <= 6.6e+104) tmp = t_5; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = b + (y * (y + a)); t_2 = (x + (z / y)) - ((x * a) / y); t_3 = c + (y * t_1); t_4 = y * t_3; t_5 = (230661.510616 * (1.0 / t_3)) + ((t / t_4) + ((27464.7644705 + (y * (z + (y * x)))) / t_1)); tmp = 0.0; if (y <= -1e+107) tmp = t_2; elseif (y <= -3300000000000.0) tmp = t_5; elseif (y <= 3.8e+39) tmp = (t + ((x * (y ^ 4.0)) + (y * (230661.510616 + (y * (27464.7644705 + (y * z))))))) / (t_4 + i); elseif (y <= 6.6e+104) tmp = t_5; else tmp = t_2; end tmp_2 = 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[(N[(x + N[(z / y), $MachinePrecision]), $MachinePrecision] - N[(N[(x * a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(c + N[(y * t$95$1), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(y * t$95$3), $MachinePrecision]}, Block[{t$95$5 = N[(N[(230661.510616 * N[(1.0 / t$95$3), $MachinePrecision]), $MachinePrecision] + N[(N[(t / t$95$4), $MachinePrecision] + N[(N[(27464.7644705 + N[(y * N[(z + N[(y * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1e+107], t$95$2, If[LessEqual[y, -3300000000000.0], t$95$5, If[LessEqual[y, 3.8e+39], N[(N[(t + N[(N[(x * N[Power[y, 4.0], $MachinePrecision]), $MachinePrecision] + N[(y * N[(230661.510616 + N[(y * N[(27464.7644705 + N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(t$95$4 + i), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 6.6e+104], t$95$5, t$95$2]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b + y \cdot \left(y + a\right)\\
t_2 := \left(x + \frac{z}{y}\right) - \frac{x \cdot a}{y}\\
t_3 := c + y \cdot t_1\\
t_4 := y \cdot t_3\\
t_5 := 230661.510616 \cdot \frac{1}{t_3} + \left(\frac{t}{t_4} + \frac{27464.7644705 + y \cdot \left(z + y \cdot x\right)}{t_1}\right)\\
\mathbf{if}\;y \leq -1 \cdot 10^{+107}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq -3300000000000:\\
\;\;\;\;t_5\\
\mathbf{elif}\;y \leq 3.8 \cdot 10^{+39}:\\
\;\;\;\;\frac{t + \left(x \cdot {y}^{4} + y \cdot \left(230661.510616 + y \cdot \left(27464.7644705 + y \cdot z\right)\right)\right)}{t_4 + i}\\
\mathbf{elif}\;y \leq 6.6 \cdot 10^{+104}:\\
\;\;\;\;t_5\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if y < -9.9999999999999997e106 or 6.59999999999999969e104 < y Initial program 0.1%
Taylor expanded in y around inf 78.5%
if -9.9999999999999997e106 < y < -3.3e12 or 3.7999999999999998e39 < y < 6.59999999999999969e104Initial program 24.4%
Taylor expanded in i around 0 21.5%
Taylor expanded in t around 0 46.1%
Taylor expanded in c around 0 75.7%
if -3.3e12 < y < 3.7999999999999998e39Initial program 94.4%
Taylor expanded in x around 0 94.4%
Final simplification87.0%
(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))))))))
(+ (* y (+ c (* y (+ b (* y (+ y a)))))) i))))
(if (<= t_1 1e+276) t_1 (- (+ x (/ z y)) (/ (* x a) 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)))))))) / ((y * (c + (y * (b + (y * (y + a)))))) + i);
double tmp;
if (t_1 <= 1e+276) {
tmp = t_1;
} else {
tmp = (x + (z / y)) - ((x * a) / 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 = (t + (y * (230661.510616d0 + (y * (27464.7644705d0 + (y * (z + (y * x)))))))) / ((y * (c + (y * (b + (y * (y + a)))))) + i)
if (t_1 <= 1d+276) then
tmp = t_1
else
tmp = (x + (z / y)) - ((x * a) / 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 = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x)))))))) / ((y * (c + (y * (b + (y * (y + a)))))) + i);
double tmp;
if (t_1 <= 1e+276) {
tmp = t_1;
} else {
tmp = (x + (z / y)) - ((x * a) / 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)))))))) / ((y * (c + (y * (b + (y * (y + a)))))) + i) tmp = 0 if t_1 <= 1e+276: tmp = t_1 else: tmp = (x + (z / y)) - ((x * a) / 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(Float64(y * Float64(c + Float64(y * Float64(b + Float64(y * Float64(y + a)))))) + i)) tmp = 0.0 if (t_1 <= 1e+276) tmp = t_1; else tmp = Float64(Float64(x + Float64(z / y)) - Float64(Float64(x * a) / 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)))))))) / ((y * (c + (y * (b + (y * (y + a)))))) + i); tmp = 0.0; if (t_1 <= 1e+276) tmp = t_1; else tmp = (x + (z / y)) - ((x * a) / 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[(N[(y * N[(c + N[(y * N[(b + N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, 1e+276], t$95$1, N[(N[(x + N[(z / y), $MachinePrecision]), $MachinePrecision] - N[(N[(x * a), $MachinePrecision] / y), $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)}{y \cdot \left(c + y \cdot \left(b + y \cdot \left(y + a\right)\right)\right) + i}\\
\mathbf{if}\;t_1 \leq 10^{+276}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;\left(x + \frac{z}{y}\right) - \frac{x \cdot a}{y}\\
\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)) < 1.0000000000000001e276Initial program 87.8%
if 1.0000000000000001e276 < (/.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 2.3%
Taylor expanded in y around inf 72.9%
Final simplification82.1%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ 27464.7644705 (* y (+ z (* y x)))))
(t_2 (+ b (* y (+ y a))))
(t_3 (- (+ x (/ z y)) (/ (* x a) y)))
(t_4 (+ c (* y t_2)))
(t_5 (* y t_4))
(t_6 (+ (* 230661.510616 (/ 1.0 t_4)) (+ (/ t t_5) (/ t_1 t_2)))))
(if (<= y -1.15e+107)
t_3
(if (<= y -16000000000000.0)
t_6
(if (<= y 3.8e+39)
(/ (+ t (* y (+ 230661.510616 (* y t_1)))) (+ t_5 i))
(if (<= y 1.1e+105) 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 = 27464.7644705 + (y * (z + (y * x)));
double t_2 = b + (y * (y + a));
double t_3 = (x + (z / y)) - ((x * a) / y);
double t_4 = c + (y * t_2);
double t_5 = y * t_4;
double t_6 = (230661.510616 * (1.0 / t_4)) + ((t / t_5) + (t_1 / t_2));
double tmp;
if (y <= -1.15e+107) {
tmp = t_3;
} else if (y <= -16000000000000.0) {
tmp = t_6;
} else if (y <= 3.8e+39) {
tmp = (t + (y * (230661.510616 + (y * t_1)))) / (t_5 + i);
} else if (y <= 1.1e+105) {
tmp = t_6;
} else {
tmp = t_3;
}
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) :: tmp
t_1 = 27464.7644705d0 + (y * (z + (y * x)))
t_2 = b + (y * (y + a))
t_3 = (x + (z / y)) - ((x * a) / y)
t_4 = c + (y * t_2)
t_5 = y * t_4
t_6 = (230661.510616d0 * (1.0d0 / t_4)) + ((t / t_5) + (t_1 / t_2))
if (y <= (-1.15d+107)) then
tmp = t_3
else if (y <= (-16000000000000.0d0)) then
tmp = t_6
else if (y <= 3.8d+39) then
tmp = (t + (y * (230661.510616d0 + (y * t_1)))) / (t_5 + i)
else if (y <= 1.1d+105) then
tmp = t_6
else
tmp = t_3
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 = 27464.7644705 + (y * (z + (y * x)));
double t_2 = b + (y * (y + a));
double t_3 = (x + (z / y)) - ((x * a) / y);
double t_4 = c + (y * t_2);
double t_5 = y * t_4;
double t_6 = (230661.510616 * (1.0 / t_4)) + ((t / t_5) + (t_1 / t_2));
double tmp;
if (y <= -1.15e+107) {
tmp = t_3;
} else if (y <= -16000000000000.0) {
tmp = t_6;
} else if (y <= 3.8e+39) {
tmp = (t + (y * (230661.510616 + (y * t_1)))) / (t_5 + i);
} else if (y <= 1.1e+105) {
tmp = t_6;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = 27464.7644705 + (y * (z + (y * x))) t_2 = b + (y * (y + a)) t_3 = (x + (z / y)) - ((x * a) / y) t_4 = c + (y * t_2) t_5 = y * t_4 t_6 = (230661.510616 * (1.0 / t_4)) + ((t / t_5) + (t_1 / t_2)) tmp = 0 if y <= -1.15e+107: tmp = t_3 elif y <= -16000000000000.0: tmp = t_6 elif y <= 3.8e+39: tmp = (t + (y * (230661.510616 + (y * t_1)))) / (t_5 + i) elif y <= 1.1e+105: tmp = t_6 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(27464.7644705 + Float64(y * Float64(z + Float64(y * x)))) t_2 = Float64(b + Float64(y * Float64(y + a))) t_3 = Float64(Float64(x + Float64(z / y)) - Float64(Float64(x * a) / y)) t_4 = Float64(c + Float64(y * t_2)) t_5 = Float64(y * t_4) t_6 = Float64(Float64(230661.510616 * Float64(1.0 / t_4)) + Float64(Float64(t / t_5) + Float64(t_1 / t_2))) tmp = 0.0 if (y <= -1.15e+107) tmp = t_3; elseif (y <= -16000000000000.0) tmp = t_6; elseif (y <= 3.8e+39) tmp = Float64(Float64(t + Float64(y * Float64(230661.510616 + Float64(y * t_1)))) / Float64(t_5 + i)); elseif (y <= 1.1e+105) tmp = t_6; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = 27464.7644705 + (y * (z + (y * x))); t_2 = b + (y * (y + a)); t_3 = (x + (z / y)) - ((x * a) / y); t_4 = c + (y * t_2); t_5 = y * t_4; t_6 = (230661.510616 * (1.0 / t_4)) + ((t / t_5) + (t_1 / t_2)); tmp = 0.0; if (y <= -1.15e+107) tmp = t_3; elseif (y <= -16000000000000.0) tmp = t_6; elseif (y <= 3.8e+39) tmp = (t + (y * (230661.510616 + (y * t_1)))) / (t_5 + i); elseif (y <= 1.1e+105) tmp = t_6; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(27464.7644705 + N[(y * N[(z + N[(y * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b + N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(x + N[(z / y), $MachinePrecision]), $MachinePrecision] - N[(N[(x * a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(c + N[(y * t$95$2), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(y * t$95$4), $MachinePrecision]}, Block[{t$95$6 = N[(N[(230661.510616 * N[(1.0 / t$95$4), $MachinePrecision]), $MachinePrecision] + N[(N[(t / t$95$5), $MachinePrecision] + N[(t$95$1 / t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.15e+107], t$95$3, If[LessEqual[y, -16000000000000.0], t$95$6, If[LessEqual[y, 3.8e+39], N[(N[(t + N[(y * N[(230661.510616 + N[(y * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(t$95$5 + i), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.1e+105], t$95$6, t$95$3]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := 27464.7644705 + y \cdot \left(z + y \cdot x\right)\\
t_2 := b + y \cdot \left(y + a\right)\\
t_3 := \left(x + \frac{z}{y}\right) - \frac{x \cdot a}{y}\\
t_4 := c + y \cdot t_2\\
t_5 := y \cdot t_4\\
t_6 := 230661.510616 \cdot \frac{1}{t_4} + \left(\frac{t}{t_5} + \frac{t_1}{t_2}\right)\\
\mathbf{if}\;y \leq -1.15 \cdot 10^{+107}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;y \leq -16000000000000:\\
\;\;\;\;t_6\\
\mathbf{elif}\;y \leq 3.8 \cdot 10^{+39}:\\
\;\;\;\;\frac{t + y \cdot \left(230661.510616 + y \cdot t_1\right)}{t_5 + i}\\
\mathbf{elif}\;y \leq 1.1 \cdot 10^{+105}:\\
\;\;\;\;t_6\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if y < -1.15e107 or 1.10000000000000003e105 < y Initial program 0.1%
Taylor expanded in y around inf 78.5%
if -1.15e107 < y < -1.6e13 or 3.7999999999999998e39 < y < 1.10000000000000003e105Initial program 24.4%
Taylor expanded in i around 0 21.5%
Taylor expanded in t around 0 46.1%
Taylor expanded in c around 0 75.7%
if -1.6e13 < y < 3.7999999999999998e39Initial program 94.4%
Final simplification86.9%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ c (* y (+ b (* y (+ y a))))))
(t_2 (- (+ x (/ z y)) (/ (* x a) y))))
(if (<= y -1.12e+54)
t_2
(if (<= y 650000.0)
(/
(+ t (* y (+ 230661.510616 (* y (+ 27464.7644705 (* y z))))))
(+ (* y t_1) i))
(if (<= y 4.4e+39)
(/ (+ 230661.510616 (* y (+ 27464.7644705 (* y (+ z (* y x)))))) t_1)
t_2)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = c + (y * (b + (y * (y + a))));
double t_2 = (x + (z / y)) - ((x * a) / y);
double tmp;
if (y <= -1.12e+54) {
tmp = t_2;
} else if (y <= 650000.0) {
tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / ((y * t_1) + i);
} else if (y <= 4.4e+39) {
tmp = (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x)))))) / t_1;
} else {
tmp = t_2;
}
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 = c + (y * (b + (y * (y + a))))
t_2 = (x + (z / y)) - ((x * a) / y)
if (y <= (-1.12d+54)) then
tmp = t_2
else if (y <= 650000.0d0) then
tmp = (t + (y * (230661.510616d0 + (y * (27464.7644705d0 + (y * z)))))) / ((y * t_1) + i)
else if (y <= 4.4d+39) then
tmp = (230661.510616d0 + (y * (27464.7644705d0 + (y * (z + (y * x)))))) / t_1
else
tmp = t_2
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 = c + (y * (b + (y * (y + a))));
double t_2 = (x + (z / y)) - ((x * a) / y);
double tmp;
if (y <= -1.12e+54) {
tmp = t_2;
} else if (y <= 650000.0) {
tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / ((y * t_1) + i);
} else if (y <= 4.4e+39) {
tmp = (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x)))))) / t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = c + (y * (b + (y * (y + a)))) t_2 = (x + (z / y)) - ((x * a) / y) tmp = 0 if y <= -1.12e+54: tmp = t_2 elif y <= 650000.0: tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / ((y * t_1) + i) elif y <= 4.4e+39: tmp = (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x)))))) / t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(c + Float64(y * Float64(b + Float64(y * Float64(y + a))))) t_2 = Float64(Float64(x + Float64(z / y)) - Float64(Float64(x * a) / y)) tmp = 0.0 if (y <= -1.12e+54) tmp = t_2; elseif (y <= 650000.0) tmp = Float64(Float64(t + Float64(y * Float64(230661.510616 + Float64(y * Float64(27464.7644705 + Float64(y * z)))))) / Float64(Float64(y * t_1) + i)); elseif (y <= 4.4e+39) tmp = Float64(Float64(230661.510616 + Float64(y * Float64(27464.7644705 + Float64(y * Float64(z + Float64(y * x)))))) / t_1); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = c + (y * (b + (y * (y + a)))); t_2 = (x + (z / y)) - ((x * a) / y); tmp = 0.0; if (y <= -1.12e+54) tmp = t_2; elseif (y <= 650000.0) tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / ((y * t_1) + i); elseif (y <= 4.4e+39) tmp = (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x)))))) / t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(c + N[(y * N[(b + N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x + N[(z / y), $MachinePrecision]), $MachinePrecision] - N[(N[(x * a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.12e+54], t$95$2, If[LessEqual[y, 650000.0], 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 * t$95$1), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4.4e+39], N[(N[(230661.510616 + N[(y * N[(27464.7644705 + N[(y * N[(z + N[(y * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision], t$95$2]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c + y \cdot \left(b + y \cdot \left(y + a\right)\right)\\
t_2 := \left(x + \frac{z}{y}\right) - \frac{x \cdot a}{y}\\
\mathbf{if}\;y \leq -1.12 \cdot 10^{+54}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq 650000:\\
\;\;\;\;\frac{t + y \cdot \left(230661.510616 + y \cdot \left(27464.7644705 + y \cdot z\right)\right)}{y \cdot t_1 + i}\\
\mathbf{elif}\;y \leq 4.4 \cdot 10^{+39}:\\
\;\;\;\;\frac{230661.510616 + y \cdot \left(27464.7644705 + y \cdot \left(z + y \cdot x\right)\right)}{t_1}\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if y < -1.12e54 or 4.4000000000000003e39 < y Initial program 3.5%
Taylor expanded in y around inf 71.5%
if -1.12e54 < y < 6.5e5Initial program 96.3%
Taylor expanded in x around 0 94.6%
if 6.5e5 < y < 4.4000000000000003e39Initial program 36.3%
Taylor expanded in i around 0 36.3%
Taylor expanded in t around 0 67.3%
Final simplification83.8%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (- (+ x (/ z y)) (/ (* x a) y)))
(t_2 (+ c (* y (+ b (* y (+ y a)))))))
(if (<= y -1.9e+44)
t_1
(if (<= y 9.2e-16)
(/ (+ t (* y 230661.510616)) (+ (* y t_2) i))
(if (<= y 4.4e+39)
(/ (+ 230661.510616 (* y (+ 27464.7644705 (* y (+ z (* y x)))))) t_2)
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)) - ((x * a) / y);
double t_2 = c + (y * (b + (y * (y + a))));
double tmp;
if (y <= -1.9e+44) {
tmp = t_1;
} else if (y <= 9.2e-16) {
tmp = (t + (y * 230661.510616)) / ((y * t_2) + i);
} else if (y <= 4.4e+39) {
tmp = (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x)))))) / t_2;
} 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) :: t_2
real(8) :: tmp
t_1 = (x + (z / y)) - ((x * a) / y)
t_2 = c + (y * (b + (y * (y + a))))
if (y <= (-1.9d+44)) then
tmp = t_1
else if (y <= 9.2d-16) then
tmp = (t + (y * 230661.510616d0)) / ((y * t_2) + i)
else if (y <= 4.4d+39) then
tmp = (230661.510616d0 + (y * (27464.7644705d0 + (y * (z + (y * x)))))) / t_2
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)) - ((x * a) / y);
double t_2 = c + (y * (b + (y * (y + a))));
double tmp;
if (y <= -1.9e+44) {
tmp = t_1;
} else if (y <= 9.2e-16) {
tmp = (t + (y * 230661.510616)) / ((y * t_2) + i);
} else if (y <= 4.4e+39) {
tmp = (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x)))))) / t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = (x + (z / y)) - ((x * a) / y) t_2 = c + (y * (b + (y * (y + a)))) tmp = 0 if y <= -1.9e+44: tmp = t_1 elif y <= 9.2e-16: tmp = (t + (y * 230661.510616)) / ((y * t_2) + i) elif y <= 4.4e+39: tmp = (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x)))))) / t_2 else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(Float64(x + Float64(z / y)) - Float64(Float64(x * a) / y)) t_2 = Float64(c + Float64(y * Float64(b + Float64(y * Float64(y + a))))) tmp = 0.0 if (y <= -1.9e+44) tmp = t_1; elseif (y <= 9.2e-16) tmp = Float64(Float64(t + Float64(y * 230661.510616)) / Float64(Float64(y * t_2) + i)); elseif (y <= 4.4e+39) tmp = Float64(Float64(230661.510616 + Float64(y * Float64(27464.7644705 + Float64(y * Float64(z + Float64(y * x)))))) / t_2); 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)) - ((x * a) / y); t_2 = c + (y * (b + (y * (y + a)))); tmp = 0.0; if (y <= -1.9e+44) tmp = t_1; elseif (y <= 9.2e-16) tmp = (t + (y * 230661.510616)) / ((y * t_2) + i); elseif (y <= 4.4e+39) tmp = (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x)))))) / t_2; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(x + N[(z / y), $MachinePrecision]), $MachinePrecision] - N[(N[(x * a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c + N[(y * N[(b + N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.9e+44], t$95$1, If[LessEqual[y, 9.2e-16], N[(N[(t + N[(y * 230661.510616), $MachinePrecision]), $MachinePrecision] / N[(N[(y * t$95$2), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4.4e+39], N[(N[(230661.510616 + N[(y * N[(27464.7644705 + N[(y * N[(z + N[(y * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t$95$2), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x + \frac{z}{y}\right) - \frac{x \cdot a}{y}\\
t_2 := c + y \cdot \left(b + y \cdot \left(y + a\right)\right)\\
\mathbf{if}\;y \leq -1.9 \cdot 10^{+44}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 9.2 \cdot 10^{-16}:\\
\;\;\;\;\frac{t + y \cdot 230661.510616}{y \cdot t_2 + i}\\
\mathbf{elif}\;y \leq 4.4 \cdot 10^{+39}:\\
\;\;\;\;\frac{230661.510616 + y \cdot \left(27464.7644705 + y \cdot \left(z + y \cdot x\right)\right)}{t_2}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if y < -1.9000000000000001e44 or 4.4000000000000003e39 < y Initial program 4.4%
Taylor expanded in y around inf 70.9%
if -1.9000000000000001e44 < y < 9.1999999999999996e-16Initial program 96.2%
Taylor expanded in y around 0 88.0%
*-commutative88.0%
Simplified88.0%
if 9.1999999999999996e-16 < y < 4.4000000000000003e39Initial program 45.3%
Taylor expanded in i around 0 38.6%
Taylor expanded in t around 0 65.2%
Final simplification79.7%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ c (* y (+ b (* y (+ y a))))))
(t_2 (- (+ x (/ z y)) (/ (* x a) y))))
(if (<= y -1.35e+40)
t_2
(if (<= y 4.4e-16)
(/ (+ t (* y (+ 230661.510616 (* y 27464.7644705)))) (+ (* y t_1) i))
(if (<= y 4.4e+39)
(/ (+ 230661.510616 (* y (+ 27464.7644705 (* y (+ z (* y x)))))) t_1)
t_2)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = c + (y * (b + (y * (y + a))));
double t_2 = (x + (z / y)) - ((x * a) / y);
double tmp;
if (y <= -1.35e+40) {
tmp = t_2;
} else if (y <= 4.4e-16) {
tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / ((y * t_1) + i);
} else if (y <= 4.4e+39) {
tmp = (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x)))))) / t_1;
} else {
tmp = t_2;
}
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 = c + (y * (b + (y * (y + a))))
t_2 = (x + (z / y)) - ((x * a) / y)
if (y <= (-1.35d+40)) then
tmp = t_2
else if (y <= 4.4d-16) then
tmp = (t + (y * (230661.510616d0 + (y * 27464.7644705d0)))) / ((y * t_1) + i)
else if (y <= 4.4d+39) then
tmp = (230661.510616d0 + (y * (27464.7644705d0 + (y * (z + (y * x)))))) / t_1
else
tmp = t_2
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 = c + (y * (b + (y * (y + a))));
double t_2 = (x + (z / y)) - ((x * a) / y);
double tmp;
if (y <= -1.35e+40) {
tmp = t_2;
} else if (y <= 4.4e-16) {
tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / ((y * t_1) + i);
} else if (y <= 4.4e+39) {
tmp = (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x)))))) / t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = c + (y * (b + (y * (y + a)))) t_2 = (x + (z / y)) - ((x * a) / y) tmp = 0 if y <= -1.35e+40: tmp = t_2 elif y <= 4.4e-16: tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / ((y * t_1) + i) elif y <= 4.4e+39: tmp = (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x)))))) / t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(c + Float64(y * Float64(b + Float64(y * Float64(y + a))))) t_2 = Float64(Float64(x + Float64(z / y)) - Float64(Float64(x * a) / y)) tmp = 0.0 if (y <= -1.35e+40) tmp = t_2; elseif (y <= 4.4e-16) tmp = Float64(Float64(t + Float64(y * Float64(230661.510616 + Float64(y * 27464.7644705)))) / Float64(Float64(y * t_1) + i)); elseif (y <= 4.4e+39) tmp = Float64(Float64(230661.510616 + Float64(y * Float64(27464.7644705 + Float64(y * Float64(z + Float64(y * x)))))) / t_1); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = c + (y * (b + (y * (y + a)))); t_2 = (x + (z / y)) - ((x * a) / y); tmp = 0.0; if (y <= -1.35e+40) tmp = t_2; elseif (y <= 4.4e-16) tmp = (t + (y * (230661.510616 + (y * 27464.7644705)))) / ((y * t_1) + i); elseif (y <= 4.4e+39) tmp = (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x)))))) / t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(c + N[(y * N[(b + N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x + N[(z / y), $MachinePrecision]), $MachinePrecision] - N[(N[(x * a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.35e+40], t$95$2, If[LessEqual[y, 4.4e-16], N[(N[(t + N[(y * N[(230661.510616 + N[(y * 27464.7644705), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(y * t$95$1), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4.4e+39], N[(N[(230661.510616 + N[(y * N[(27464.7644705 + N[(y * N[(z + N[(y * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision], t$95$2]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c + y \cdot \left(b + y \cdot \left(y + a\right)\right)\\
t_2 := \left(x + \frac{z}{y}\right) - \frac{x \cdot a}{y}\\
\mathbf{if}\;y \leq -1.35 \cdot 10^{+40}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq 4.4 \cdot 10^{-16}:\\
\;\;\;\;\frac{t + y \cdot \left(230661.510616 + y \cdot 27464.7644705\right)}{y \cdot t_1 + i}\\
\mathbf{elif}\;y \leq 4.4 \cdot 10^{+39}:\\
\;\;\;\;\frac{230661.510616 + y \cdot \left(27464.7644705 + y \cdot \left(z + y \cdot x\right)\right)}{t_1}\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if y < -1.35000000000000005e40 or 4.4000000000000003e39 < y Initial program 4.4%
Taylor expanded in y around inf 69.7%
if -1.35000000000000005e40 < y < 4.40000000000000001e-16Initial program 97.6%
Taylor expanded in y around 0 90.7%
*-commutative90.7%
Simplified90.7%
if 4.40000000000000001e-16 < y < 4.4000000000000003e39Initial program 45.3%
Taylor expanded in i around 0 38.6%
Taylor expanded in t around 0 65.2%
Final simplification80.4%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= y -1.25e+43) (not (<= y 1.4e+30))) (- (+ x (/ z y)) (/ (* x a) y)) (/ (+ t (* y 230661.510616)) (+ (* y (+ c (* y (+ b (* y (+ y a)))))) i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -1.25e+43) || !(y <= 1.4e+30)) {
tmp = (x + (z / y)) - ((x * a) / y);
} else {
tmp = (t + (y * 230661.510616)) / ((y * (c + (y * (b + (y * (y + a)))))) + 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.25d+43)) .or. (.not. (y <= 1.4d+30))) then
tmp = (x + (z / y)) - ((x * a) / y)
else
tmp = (t + (y * 230661.510616d0)) / ((y * (c + (y * (b + (y * (y + a)))))) + 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.25e+43) || !(y <= 1.4e+30)) {
tmp = (x + (z / y)) - ((x * a) / y);
} else {
tmp = (t + (y * 230661.510616)) / ((y * (c + (y * (b + (y * (y + a)))))) + i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (y <= -1.25e+43) or not (y <= 1.4e+30): tmp = (x + (z / y)) - ((x * a) / y) else: tmp = (t + (y * 230661.510616)) / ((y * (c + (y * (b + (y * (y + a)))))) + i) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((y <= -1.25e+43) || !(y <= 1.4e+30)) tmp = Float64(Float64(x + Float64(z / y)) - Float64(Float64(x * a) / y)); else tmp = Float64(Float64(t + Float64(y * 230661.510616)) / Float64(Float64(y * Float64(c + Float64(y * Float64(b + Float64(y * Float64(y + a)))))) + i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((y <= -1.25e+43) || ~((y <= 1.4e+30))) tmp = (x + (z / y)) - ((x * a) / y); else tmp = (t + (y * 230661.510616)) / ((y * (c + (y * (b + (y * (y + a)))))) + i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[y, -1.25e+43], N[Not[LessEqual[y, 1.4e+30]], $MachinePrecision]], N[(N[(x + N[(z / y), $MachinePrecision]), $MachinePrecision] - N[(N[(x * a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], N[(N[(t + N[(y * 230661.510616), $MachinePrecision]), $MachinePrecision] / N[(N[(y * N[(c + N[(y * N[(b + N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.25 \cdot 10^{+43} \lor \neg \left(y \leq 1.4 \cdot 10^{+30}\right):\\
\;\;\;\;\left(x + \frac{z}{y}\right) - \frac{x \cdot a}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{t + y \cdot 230661.510616}{y \cdot \left(c + y \cdot \left(b + y \cdot \left(y + a\right)\right)\right) + i}\\
\end{array}
\end{array}
if y < -1.2500000000000001e43 or 1.39999999999999992e30 < y Initial program 6.1%
Taylor expanded in y around inf 68.5%
if -1.2500000000000001e43 < y < 1.39999999999999992e30Initial program 92.6%
Taylor expanded in y around 0 82.3%
*-commutative82.3%
Simplified82.3%
Final simplification76.4%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= y -6.5e+50) (not (<= y 2.6e+28))) (- (+ x (/ z y)) (/ (* x a) y)) (/ (+ 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 <= -6.5e+50) || !(y <= 2.6e+28)) {
tmp = (x + (z / y)) - ((x * a) / y);
} 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 <= (-6.5d+50)) .or. (.not. (y <= 2.6d+28))) then
tmp = (x + (z / y)) - ((x * a) / y)
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 <= -6.5e+50) || !(y <= 2.6e+28)) {
tmp = (x + (z / y)) - ((x * a) / y);
} 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 <= -6.5e+50) or not (y <= 2.6e+28): tmp = (x + (z / y)) - ((x * a) / y) 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 <= -6.5e+50) || !(y <= 2.6e+28)) tmp = Float64(Float64(x + Float64(z / y)) - Float64(Float64(x * a) / y)); 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 <= -6.5e+50) || ~((y <= 2.6e+28))) tmp = (x + (z / y)) - ((x * a) / y); 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, -6.5e+50], N[Not[LessEqual[y, 2.6e+28]], $MachinePrecision]], N[(N[(x + N[(z / y), $MachinePrecision]), $MachinePrecision] - N[(N[(x * a), $MachinePrecision] / y), $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 -6.5 \cdot 10^{+50} \lor \neg \left(y \leq 2.6 \cdot 10^{+28}\right):\\
\;\;\;\;\left(x + \frac{z}{y}\right) - \frac{x \cdot a}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{t + y \cdot 230661.510616}{i + y \cdot \left(c + y \cdot b\right)}\\
\end{array}
\end{array}
if y < -6.5000000000000003e50 or 2.6000000000000002e28 < y Initial program 5.3%
Taylor expanded in y around inf 69.1%
if -6.5000000000000003e50 < y < 2.6000000000000002e28Initial program 92.6%
Taylor expanded in y around 0 81.8%
*-commutative81.8%
Simplified81.8%
Taylor expanded in y around 0 79.3%
*-commutative79.3%
Simplified79.3%
Final simplification74.9%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= y -1.35e+43) (not (<= y 4.2e+25))) (- (+ x (/ z y)) (/ (* x a) y)) (/ (+ t (* y 230661.510616)) i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -1.35e+43) || !(y <= 4.2e+25)) {
tmp = (x + (z / y)) - ((x * a) / y);
} 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) :: tmp
if ((y <= (-1.35d+43)) .or. (.not. (y <= 4.2d+25))) then
tmp = (x + (z / y)) - ((x * a) / y)
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 tmp;
if ((y <= -1.35e+43) || !(y <= 4.2e+25)) {
tmp = (x + (z / y)) - ((x * a) / y);
} else {
tmp = (t + (y * 230661.510616)) / i;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (y <= -1.35e+43) or not (y <= 4.2e+25): tmp = (x + (z / y)) - ((x * a) / y) else: tmp = (t + (y * 230661.510616)) / i return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((y <= -1.35e+43) || !(y <= 4.2e+25)) tmp = Float64(Float64(x + Float64(z / y)) - Float64(Float64(x * a) / y)); 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) tmp = 0.0; if ((y <= -1.35e+43) || ~((y <= 4.2e+25))) tmp = (x + (z / y)) - ((x * a) / y); else tmp = (t + (y * 230661.510616)) / i; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[y, -1.35e+43], N[Not[LessEqual[y, 4.2e+25]], $MachinePrecision]], N[(N[(x + N[(z / y), $MachinePrecision]), $MachinePrecision] - N[(N[(x * a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], N[(N[(t + N[(y * 230661.510616), $MachinePrecision]), $MachinePrecision] / i), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.35 \cdot 10^{+43} \lor \neg \left(y \leq 4.2 \cdot 10^{+25}\right):\\
\;\;\;\;\left(x + \frac{z}{y}\right) - \frac{x \cdot a}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{t + y \cdot 230661.510616}{i}\\
\end{array}
\end{array}
if y < -1.3500000000000001e43 or 4.1999999999999998e25 < y Initial program 6.1%
Taylor expanded in y around inf 67.9%
if -1.3500000000000001e43 < y < 4.1999999999999998e25Initial program 93.2%
Taylor expanded in y around 0 82.9%
*-commutative82.9%
Simplified82.9%
Taylor expanded in i around inf 56.9%
Final simplification61.7%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= y -8.5e+44) (not (<= y 1.8e+27))) (- (+ x (/ z y)) (/ (* x a) y)) (/ (+ t (* y 230661.510616)) (+ i (* y c)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -8.5e+44) || !(y <= 1.8e+27)) {
tmp = (x + (z / y)) - ((x * a) / y);
} else {
tmp = (t + (y * 230661.510616)) / (i + (y * c));
}
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 <= (-8.5d+44)) .or. (.not. (y <= 1.8d+27))) then
tmp = (x + (z / y)) - ((x * a) / y)
else
tmp = (t + (y * 230661.510616d0)) / (i + (y * c))
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 <= -8.5e+44) || !(y <= 1.8e+27)) {
tmp = (x + (z / y)) - ((x * a) / y);
} else {
tmp = (t + (y * 230661.510616)) / (i + (y * c));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (y <= -8.5e+44) or not (y <= 1.8e+27): tmp = (x + (z / y)) - ((x * a) / y) else: tmp = (t + (y * 230661.510616)) / (i + (y * c)) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((y <= -8.5e+44) || !(y <= 1.8e+27)) tmp = Float64(Float64(x + Float64(z / y)) - Float64(Float64(x * a) / y)); else tmp = Float64(Float64(t + Float64(y * 230661.510616)) / Float64(i + Float64(y * c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((y <= -8.5e+44) || ~((y <= 1.8e+27))) tmp = (x + (z / y)) - ((x * a) / y); else tmp = (t + (y * 230661.510616)) / (i + (y * c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[y, -8.5e+44], N[Not[LessEqual[y, 1.8e+27]], $MachinePrecision]], N[(N[(x + N[(z / y), $MachinePrecision]), $MachinePrecision] - N[(N[(x * a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], N[(N[(t + N[(y * 230661.510616), $MachinePrecision]), $MachinePrecision] / N[(i + N[(y * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -8.5 \cdot 10^{+44} \lor \neg \left(y \leq 1.8 \cdot 10^{+27}\right):\\
\;\;\;\;\left(x + \frac{z}{y}\right) - \frac{x \cdot a}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{t + y \cdot 230661.510616}{i + y \cdot c}\\
\end{array}
\end{array}
if y < -8.5e44 or 1.79999999999999991e27 < y Initial program 5.3%
Taylor expanded in y around inf 69.1%
if -8.5e44 < y < 1.79999999999999991e27Initial program 92.6%
Taylor expanded in y around 0 81.8%
*-commutative81.8%
Simplified81.8%
Taylor expanded in y around 0 71.9%
*-commutative71.9%
Simplified71.9%
Final simplification70.7%
(FPCore (x y z t a b c i) :precision binary64 (if (<= y -5.4e+34) x (if (<= y 1.75e+25) (/ (+ 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 <= -5.4e+34) {
tmp = x;
} else if (y <= 1.75e+25) {
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 <= (-5.4d+34)) then
tmp = x
else if (y <= 1.75d+25) 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 <= -5.4e+34) {
tmp = x;
} else if (y <= 1.75e+25) {
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 <= -5.4e+34: tmp = x elif y <= 1.75e+25: 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 <= -5.4e+34) tmp = x; elseif (y <= 1.75e+25) 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 <= -5.4e+34) tmp = x; elseif (y <= 1.75e+25) 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, -5.4e+34], x, If[LessEqual[y, 1.75e+25], N[(N[(t + N[(y * 230661.510616), $MachinePrecision]), $MachinePrecision] / i), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -5.4 \cdot 10^{+34}:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq 1.75 \cdot 10^{+25}:\\
\;\;\;\;\frac{t + y \cdot 230661.510616}{i}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if y < -5.4000000000000001e34 or 1.75e25 < y Initial program 7.7%
Taylor expanded in y around inf 49.9%
if -5.4000000000000001e34 < y < 1.75e25Initial program 95.0%
Taylor expanded in y around 0 85.7%
*-commutative85.7%
Simplified85.7%
Taylor expanded in i around inf 58.9%
Final simplification54.8%
(FPCore (x y z t a b c i) :precision binary64 (if (<= y -5.5e+35) x (if (<= y 1.35e+25) (/ 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 <= -5.5e+35) {
tmp = x;
} else if (y <= 1.35e+25) {
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 <= (-5.5d+35)) then
tmp = x
else if (y <= 1.35d+25) 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 <= -5.5e+35) {
tmp = x;
} else if (y <= 1.35e+25) {
tmp = t / i;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if y <= -5.5e+35: tmp = x elif y <= 1.35e+25: tmp = t / i else: tmp = x return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (y <= -5.5e+35) tmp = x; elseif (y <= 1.35e+25) 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 <= -5.5e+35) tmp = x; elseif (y <= 1.35e+25) tmp = t / i; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, -5.5e+35], x, If[LessEqual[y, 1.35e+25], N[(t / i), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -5.5 \cdot 10^{+35}:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq 1.35 \cdot 10^{+25}:\\
\;\;\;\;\frac{t}{i}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if y < -5.50000000000000001e35 or 1.35e25 < y Initial program 7.7%
Taylor expanded in y around inf 49.9%
if -5.50000000000000001e35 < y < 1.35e25Initial program 95.0%
Taylor expanded in y around 0 51.0%
Final simplification50.5%
(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 55.4%
Taylor expanded in y around inf 24.7%
Final simplification24.7%
herbie shell --seed 2023321
(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)))