
(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 18 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 (fma y (+ y a) b))
(t_2
(+
(/ 27464.7644705 t_1)
(+
(/ 230661.510616 (* y t_1))
(+ (/ t (* t_1 (pow y 2.0))) (/ y (/ t_1 (fma y x z)))))))
(t_3 (- (+ (/ z y) x) (/ a (/ y x)))))
(if (<= y -3.6e+126)
t_3
(if (<= y -1250000.0)
t_2
(if (<= y 9.2e+35)
(/
(+
t
(* y (+ 230661.510616 (* y (+ 27464.7644705 (* y (+ z (* y x))))))))
(+ (* y (+ c (* y (+ b (* y (+ y a)))))) i))
(if (<= y 6.8e+123) t_2 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, (y + a), b);
double t_2 = (27464.7644705 / t_1) + ((230661.510616 / (y * t_1)) + ((t / (t_1 * pow(y, 2.0))) + (y / (t_1 / fma(y, x, z)))));
double t_3 = ((z / y) + x) - (a / (y / x));
double tmp;
if (y <= -3.6e+126) {
tmp = t_3;
} else if (y <= -1250000.0) {
tmp = t_2;
} else if (y <= 9.2e+35) {
tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x)))))))) / ((y * (c + (y * (b + (y * (y + a)))))) + i);
} else if (y <= 6.8e+123) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i) t_1 = fma(y, Float64(y + a), b) t_2 = Float64(Float64(27464.7644705 / t_1) + Float64(Float64(230661.510616 / Float64(y * t_1)) + Float64(Float64(t / Float64(t_1 * (y ^ 2.0))) + Float64(y / Float64(t_1 / fma(y, x, z)))))) t_3 = Float64(Float64(Float64(z / y) + x) - Float64(a / Float64(y / x))) tmp = 0.0 if (y <= -3.6e+126) tmp = t_3; elseif (y <= -1250000.0) tmp = t_2; elseif (y <= 9.2e+35) tmp = Float64(Float64(t + Float64(y * Float64(230661.510616 + Float64(y * Float64(27464.7644705 + Float64(y * Float64(z + Float64(y * x)))))))) / Float64(Float64(y * Float64(c + Float64(y * Float64(b + Float64(y * Float64(y + a)))))) + i)); elseif (y <= 6.8e+123) tmp = t_2; 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 + a), $MachinePrecision] + b), $MachinePrecision]}, Block[{t$95$2 = N[(N[(27464.7644705 / t$95$1), $MachinePrecision] + N[(N[(230661.510616 / N[(y * t$95$1), $MachinePrecision]), $MachinePrecision] + N[(N[(t / N[(t$95$1 * N[Power[y, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y / N[(t$95$1 / N[(y * x + z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(N[(z / y), $MachinePrecision] + x), $MachinePrecision] - N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -3.6e+126], t$95$3, If[LessEqual[y, -1250000.0], t$95$2, If[LessEqual[y, 9.2e+35], 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[y, 6.8e+123], t$95$2, t$95$3]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(y, y + a, b\right)\\
t_2 := \frac{27464.7644705}{t_1} + \left(\frac{230661.510616}{y \cdot t_1} + \left(\frac{t}{t_1 \cdot {y}^{2}} + \frac{y}{\frac{t_1}{\mathsf{fma}\left(y, x, z\right)}}\right)\right)\\
t_3 := \left(\frac{z}{y} + x\right) - \frac{a}{\frac{y}{x}}\\
\mathbf{if}\;y \leq -3.6 \cdot 10^{+126}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;y \leq -1250000:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq 9.2 \cdot 10^{+35}:\\
\;\;\;\;\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{elif}\;y \leq 6.8 \cdot 10^{+123}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if y < -3.6e126 or 6.80000000000000002e123 < y Initial program 0.0%
Taylor expanded in i around 0 0.0%
Taylor expanded in c around 0 0.0%
Taylor expanded in y around inf 82.6%
+-commutative82.6%
associate-/l*91.9%
Simplified91.9%
if -3.6e126 < y < -1.25e6 or 9.1999999999999993e35 < y < 6.80000000000000002e123Initial program 29.0%
Taylor expanded in i around 0 27.0%
Taylor expanded in c around 0 26.9%
Taylor expanded in t around inf 62.2%
associate-*r/62.2%
metadata-eval62.2%
+-commutative62.2%
+-commutative62.2%
fma-udef62.2%
associate-*r/62.2%
metadata-eval62.2%
+-commutative62.2%
+-commutative62.2%
fma-udef62.2%
Simplified77.2%
if -1.25e6 < y < 9.1999999999999993e35Initial program 96.8%
Final simplification91.5%
(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 (- (+ (/ z y) x) (/ a (/ y x))))
(t_4 (* y t_2)))
(if (<= y -3.1e+97)
t_3
(if (<= y -1250000.0)
(+
(* 230661.510616 (/ 1.0 t_4))
(+ (/ t (* (pow y 2.0) t_2)) (/ t_1 t_2)))
(if (<= y 1.6e+52)
(/ (+ t (* y (+ 230661.510616 (* y t_1)))) (+ (* y (+ c t_4)) i))
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 = ((z / y) + x) - (a / (y / x));
double t_4 = y * t_2;
double tmp;
if (y <= -3.1e+97) {
tmp = t_3;
} else if (y <= -1250000.0) {
tmp = (230661.510616 * (1.0 / t_4)) + ((t / (pow(y, 2.0) * t_2)) + (t_1 / t_2));
} else if (y <= 1.6e+52) {
tmp = (t + (y * (230661.510616 + (y * t_1)))) / ((y * (c + t_4)) + i);
} 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) :: tmp
t_1 = 27464.7644705d0 + (y * (z + (y * x)))
t_2 = b + (y * (y + a))
t_3 = ((z / y) + x) - (a / (y / x))
t_4 = y * t_2
if (y <= (-3.1d+97)) then
tmp = t_3
else if (y <= (-1250000.0d0)) then
tmp = (230661.510616d0 * (1.0d0 / t_4)) + ((t / ((y ** 2.0d0) * t_2)) + (t_1 / t_2))
else if (y <= 1.6d+52) then
tmp = (t + (y * (230661.510616d0 + (y * t_1)))) / ((y * (c + t_4)) + i)
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 = ((z / y) + x) - (a / (y / x));
double t_4 = y * t_2;
double tmp;
if (y <= -3.1e+97) {
tmp = t_3;
} else if (y <= -1250000.0) {
tmp = (230661.510616 * (1.0 / t_4)) + ((t / (Math.pow(y, 2.0) * t_2)) + (t_1 / t_2));
} else if (y <= 1.6e+52) {
tmp = (t + (y * (230661.510616 + (y * t_1)))) / ((y * (c + t_4)) + i);
} 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 = ((z / y) + x) - (a / (y / x)) t_4 = y * t_2 tmp = 0 if y <= -3.1e+97: tmp = t_3 elif y <= -1250000.0: tmp = (230661.510616 * (1.0 / t_4)) + ((t / (math.pow(y, 2.0) * t_2)) + (t_1 / t_2)) elif y <= 1.6e+52: tmp = (t + (y * (230661.510616 + (y * t_1)))) / ((y * (c + t_4)) + i) 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(Float64(z / y) + x) - Float64(a / Float64(y / x))) t_4 = Float64(y * t_2) tmp = 0.0 if (y <= -3.1e+97) tmp = t_3; elseif (y <= -1250000.0) tmp = Float64(Float64(230661.510616 * Float64(1.0 / t_4)) + Float64(Float64(t / Float64((y ^ 2.0) * t_2)) + Float64(t_1 / t_2))); elseif (y <= 1.6e+52) tmp = Float64(Float64(t + Float64(y * Float64(230661.510616 + Float64(y * t_1)))) / Float64(Float64(y * Float64(c + t_4)) + i)); 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 = ((z / y) + x) - (a / (y / x)); t_4 = y * t_2; tmp = 0.0; if (y <= -3.1e+97) tmp = t_3; elseif (y <= -1250000.0) tmp = (230661.510616 * (1.0 / t_4)) + ((t / ((y ^ 2.0) * t_2)) + (t_1 / t_2)); elseif (y <= 1.6e+52) tmp = (t + (y * (230661.510616 + (y * t_1)))) / ((y * (c + t_4)) + i); 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[(N[(z / y), $MachinePrecision] + x), $MachinePrecision] - N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(y * t$95$2), $MachinePrecision]}, If[LessEqual[y, -3.1e+97], t$95$3, If[LessEqual[y, -1250000.0], N[(N[(230661.510616 * N[(1.0 / t$95$4), $MachinePrecision]), $MachinePrecision] + N[(N[(t / N[(N[Power[y, 2.0], $MachinePrecision] * t$95$2), $MachinePrecision]), $MachinePrecision] + N[(t$95$1 / t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.6e+52], N[(N[(t + N[(y * N[(230661.510616 + N[(y * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(y * N[(c + t$95$4), $MachinePrecision]), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision], 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(\frac{z}{y} + x\right) - \frac{a}{\frac{y}{x}}\\
t_4 := y \cdot t_2\\
\mathbf{if}\;y \leq -3.1 \cdot 10^{+97}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;y \leq -1250000:\\
\;\;\;\;230661.510616 \cdot \frac{1}{t_4} + \left(\frac{t}{{y}^{2} \cdot t_2} + \frac{t_1}{t_2}\right)\\
\mathbf{elif}\;y \leq 1.6 \cdot 10^{+52}:\\
\;\;\;\;\frac{t + y \cdot \left(230661.510616 + y \cdot t_1\right)}{y \cdot \left(c + t_4\right) + i}\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if y < -3.09999999999999981e97 or 1.6e52 < y Initial program 1.2%
Taylor expanded in i around 0 1.2%
Taylor expanded in c around 0 1.2%
Taylor expanded in y around inf 74.6%
+-commutative74.6%
associate-/l*81.9%
Simplified81.9%
if -3.09999999999999981e97 < y < -1.25e6Initial program 42.1%
Taylor expanded in i around 0 38.8%
Taylor expanded in c around 0 38.6%
Taylor expanded in t around 0 77.7%
if -1.25e6 < y < 1.6e52Initial program 96.1%
Final simplification88.9%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ b (* y (+ y a))))
(t_2 (- (+ (/ z y) x) (/ a (/ y x))))
(t_3 (* y t_1)))
(if (<= y -3.8e+98)
t_2
(if (<= y -1250000.0)
(+
(* 230661.510616 (/ 1.0 t_3))
(+ (/ (* y z) t_1) (/ (+ 27464.7644705 (* x (pow y 2.0))) t_1)))
(if (<= y 2.7e+51)
(/
(+
t
(* y (+ 230661.510616 (* y (+ 27464.7644705 (* y (+ z (* y x))))))))
(+ (* y (+ c t_3)) i))
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 = ((z / y) + x) - (a / (y / x));
double t_3 = y * t_1;
double tmp;
if (y <= -3.8e+98) {
tmp = t_2;
} else if (y <= -1250000.0) {
tmp = (230661.510616 * (1.0 / t_3)) + (((y * z) / t_1) + ((27464.7644705 + (x * pow(y, 2.0))) / t_1));
} else if (y <= 2.7e+51) {
tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x)))))))) / ((y * (c + t_3)) + i);
} 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) :: tmp
t_1 = b + (y * (y + a))
t_2 = ((z / y) + x) - (a / (y / x))
t_3 = y * t_1
if (y <= (-3.8d+98)) then
tmp = t_2
else if (y <= (-1250000.0d0)) then
tmp = (230661.510616d0 * (1.0d0 / t_3)) + (((y * z) / t_1) + ((27464.7644705d0 + (x * (y ** 2.0d0))) / t_1))
else if (y <= 2.7d+51) then
tmp = (t + (y * (230661.510616d0 + (y * (27464.7644705d0 + (y * (z + (y * x)))))))) / ((y * (c + t_3)) + i)
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 = ((z / y) + x) - (a / (y / x));
double t_3 = y * t_1;
double tmp;
if (y <= -3.8e+98) {
tmp = t_2;
} else if (y <= -1250000.0) {
tmp = (230661.510616 * (1.0 / t_3)) + (((y * z) / t_1) + ((27464.7644705 + (x * Math.pow(y, 2.0))) / t_1));
} else if (y <= 2.7e+51) {
tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x)))))))) / ((y * (c + t_3)) + i);
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = b + (y * (y + a)) t_2 = ((z / y) + x) - (a / (y / x)) t_3 = y * t_1 tmp = 0 if y <= -3.8e+98: tmp = t_2 elif y <= -1250000.0: tmp = (230661.510616 * (1.0 / t_3)) + (((y * z) / t_1) + ((27464.7644705 + (x * math.pow(y, 2.0))) / t_1)) elif y <= 2.7e+51: tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x)))))))) / ((y * (c + t_3)) + i) 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(Float64(z / y) + x) - Float64(a / Float64(y / x))) t_3 = Float64(y * t_1) tmp = 0.0 if (y <= -3.8e+98) tmp = t_2; elseif (y <= -1250000.0) tmp = Float64(Float64(230661.510616 * Float64(1.0 / t_3)) + Float64(Float64(Float64(y * z) / t_1) + Float64(Float64(27464.7644705 + Float64(x * (y ^ 2.0))) / t_1))); elseif (y <= 2.7e+51) tmp = Float64(Float64(t + Float64(y * Float64(230661.510616 + Float64(y * Float64(27464.7644705 + Float64(y * Float64(z + Float64(y * x)))))))) / Float64(Float64(y * Float64(c + t_3)) + i)); 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 = ((z / y) + x) - (a / (y / x)); t_3 = y * t_1; tmp = 0.0; if (y <= -3.8e+98) tmp = t_2; elseif (y <= -1250000.0) tmp = (230661.510616 * (1.0 / t_3)) + (((y * z) / t_1) + ((27464.7644705 + (x * (y ^ 2.0))) / t_1)); elseif (y <= 2.7e+51) tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x)))))))) / ((y * (c + t_3)) + i); 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[(N[(z / y), $MachinePrecision] + x), $MachinePrecision] - N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(y * t$95$1), $MachinePrecision]}, If[LessEqual[y, -3.8e+98], t$95$2, If[LessEqual[y, -1250000.0], N[(N[(230661.510616 * N[(1.0 / t$95$3), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(y * z), $MachinePrecision] / t$95$1), $MachinePrecision] + N[(N[(27464.7644705 + N[(x * N[Power[y, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.7e+51], 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 + t$95$3), $MachinePrecision]), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b + y \cdot \left(y + a\right)\\
t_2 := \left(\frac{z}{y} + x\right) - \frac{a}{\frac{y}{x}}\\
t_3 := y \cdot t_1\\
\mathbf{if}\;y \leq -3.8 \cdot 10^{+98}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq -1250000:\\
\;\;\;\;230661.510616 \cdot \frac{1}{t_3} + \left(\frac{y \cdot z}{t_1} + \frac{27464.7644705 + x \cdot {y}^{2}}{t_1}\right)\\
\mathbf{elif}\;y \leq 2.7 \cdot 10^{+51}:\\
\;\;\;\;\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 + t_3\right) + i}\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if y < -3.7999999999999999e98 or 2.69999999999999992e51 < y Initial program 1.2%
Taylor expanded in i around 0 1.2%
Taylor expanded in c around 0 1.2%
Taylor expanded in y around inf 74.6%
+-commutative74.6%
associate-/l*81.9%
Simplified81.9%
if -3.7999999999999999e98 < y < -1.25e6Initial program 42.1%
Taylor expanded in i around 0 38.8%
Taylor expanded in c around 0 38.6%
Taylor expanded in t around 0 51.5%
Taylor expanded in z around 0 74.5%
if -1.25e6 < y < 2.69999999999999992e51Initial program 96.1%
Final simplification88.5%
(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 INFINITY) t_1 (- (+ (/ z y) x) (/ a (/ y x))))))
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 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = ((z / y) + x) - (a / (y / x));
}
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)))))))) / ((y * (c + (y * (b + (y * (y + a)))))) + i);
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = ((z / y) + x) - (a / (y / x));
}
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 <= math.inf: tmp = t_1 else: tmp = ((z / y) + x) - (a / (y / x)) 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 <= Inf) tmp = t_1; else tmp = Float64(Float64(Float64(z / y) + x) - Float64(a / Float64(y / x))); 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 <= Inf) tmp = t_1; else tmp = ((z / y) + x) - (a / (y / x)); 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, Infinity], t$95$1, N[(N[(N[(z / y), $MachinePrecision] + x), $MachinePrecision] - N[(a / N[(y / x), $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)}{y \cdot \left(c + y \cdot \left(b + y \cdot \left(y + a\right)\right)\right) + i}\\
\mathbf{if}\;t_1 \leq \infty:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;\left(\frac{z}{y} + x\right) - \frac{a}{\frac{y}{x}}\\
\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 90.2%
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 i around 0 0.0%
Taylor expanded in c around 0 0.0%
Taylor expanded in y around inf 70.1%
+-commutative70.1%
associate-/l*76.9%
Simplified76.9%
Final simplification85.2%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ c (* y (+ b (* y (+ y a))))))
(t_2 (- (+ (/ z y) x) (/ a (/ y x)))))
(if (<= y -2.6e+97)
t_2
(if (<= y -1.1e-6)
(/ (+ 230661.510616 (* y (+ 27464.7644705 (* y (+ z (* y x)))))) t_1)
(if (<= y 1.2e+58)
(/
(+ t (* y (+ 230661.510616 (* y (+ 27464.7644705 (* y z))))))
(+ (* y t_1) i))
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 = ((z / y) + x) - (a / (y / x));
double tmp;
if (y <= -2.6e+97) {
tmp = t_2;
} else if (y <= -1.1e-6) {
tmp = (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x)))))) / t_1;
} else if (y <= 1.2e+58) {
tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / ((y * t_1) + i);
} 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 = ((z / y) + x) - (a / (y / x))
if (y <= (-2.6d+97)) then
tmp = t_2
else if (y <= (-1.1d-6)) then
tmp = (230661.510616d0 + (y * (27464.7644705d0 + (y * (z + (y * x)))))) / t_1
else if (y <= 1.2d+58) then
tmp = (t + (y * (230661.510616d0 + (y * (27464.7644705d0 + (y * z)))))) / ((y * t_1) + i)
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 = ((z / y) + x) - (a / (y / x));
double tmp;
if (y <= -2.6e+97) {
tmp = t_2;
} else if (y <= -1.1e-6) {
tmp = (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x)))))) / t_1;
} else if (y <= 1.2e+58) {
tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / ((y * t_1) + i);
} 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 = ((z / y) + x) - (a / (y / x)) tmp = 0 if y <= -2.6e+97: tmp = t_2 elif y <= -1.1e-6: tmp = (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x)))))) / t_1 elif y <= 1.2e+58: tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / ((y * t_1) + i) 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(Float64(z / y) + x) - Float64(a / Float64(y / x))) tmp = 0.0 if (y <= -2.6e+97) tmp = t_2; elseif (y <= -1.1e-6) tmp = Float64(Float64(230661.510616 + Float64(y * Float64(27464.7644705 + Float64(y * Float64(z + Float64(y * x)))))) / t_1); elseif (y <= 1.2e+58) tmp = Float64(Float64(t + Float64(y * Float64(230661.510616 + Float64(y * Float64(27464.7644705 + Float64(y * z)))))) / Float64(Float64(y * t_1) + i)); 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 = ((z / y) + x) - (a / (y / x)); tmp = 0.0; if (y <= -2.6e+97) tmp = t_2; elseif (y <= -1.1e-6) tmp = (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x)))))) / t_1; elseif (y <= 1.2e+58) tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / ((y * t_1) + i); 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[(N[(z / y), $MachinePrecision] + x), $MachinePrecision] - N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -2.6e+97], t$95$2, If[LessEqual[y, -1.1e-6], 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], If[LessEqual[y, 1.2e+58], 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], 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(\frac{z}{y} + x\right) - \frac{a}{\frac{y}{x}}\\
\mathbf{if}\;y \leq -2.6 \cdot 10^{+97}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq -1.1 \cdot 10^{-6}:\\
\;\;\;\;\frac{230661.510616 + y \cdot \left(27464.7644705 + y \cdot \left(z + y \cdot x\right)\right)}{t_1}\\
\mathbf{elif}\;y \leq 1.2 \cdot 10^{+58}:\\
\;\;\;\;\frac{t + y \cdot \left(230661.510616 + y \cdot \left(27464.7644705 + y \cdot z\right)\right)}{y \cdot t_1 + i}\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if y < -2.6e97 or 1.2e58 < y Initial program 1.2%
Taylor expanded in i around 0 1.2%
Taylor expanded in c around 0 1.2%
Taylor expanded in y around inf 75.4%
+-commutative75.4%
associate-/l*82.8%
Simplified82.8%
if -2.6e97 < y < -1.1000000000000001e-6Initial program 53.0%
Taylor expanded in i around 0 47.7%
Taylor expanded in t around 0 55.4%
if -1.1000000000000001e-6 < y < 1.2e58Initial program 95.2%
Taylor expanded in x around 0 89.3%
Final simplification82.1%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ c (* y (+ b (* y (+ y a))))))
(t_2
(/ (+ 230661.510616 (* y (+ 27464.7644705 (* y (+ z (* y x)))))) t_1))
(t_3 (- (+ (/ z y) x) (/ a (/ y x)))))
(if (<= y -2.6e+97)
t_3
(if (<= y -2.9e-8)
t_2
(if (<= y 8e-25)
(/ (+ t (* y 230661.510616)) (+ (* y t_1) i))
(if (<= y 1.25e+64) t_2 t_3))))))
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 = (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x)))))) / t_1;
double t_3 = ((z / y) + x) - (a / (y / x));
double tmp;
if (y <= -2.6e+97) {
tmp = t_3;
} else if (y <= -2.9e-8) {
tmp = t_2;
} else if (y <= 8e-25) {
tmp = (t + (y * 230661.510616)) / ((y * t_1) + i);
} else if (y <= 1.25e+64) {
tmp = t_2;
} 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) :: tmp
t_1 = c + (y * (b + (y * (y + a))))
t_2 = (230661.510616d0 + (y * (27464.7644705d0 + (y * (z + (y * x)))))) / t_1
t_3 = ((z / y) + x) - (a / (y / x))
if (y <= (-2.6d+97)) then
tmp = t_3
else if (y <= (-2.9d-8)) then
tmp = t_2
else if (y <= 8d-25) then
tmp = (t + (y * 230661.510616d0)) / ((y * t_1) + i)
else if (y <= 1.25d+64) then
tmp = t_2
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 = c + (y * (b + (y * (y + a))));
double t_2 = (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x)))))) / t_1;
double t_3 = ((z / y) + x) - (a / (y / x));
double tmp;
if (y <= -2.6e+97) {
tmp = t_3;
} else if (y <= -2.9e-8) {
tmp = t_2;
} else if (y <= 8e-25) {
tmp = (t + (y * 230661.510616)) / ((y * t_1) + i);
} else if (y <= 1.25e+64) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = c + (y * (b + (y * (y + a)))) t_2 = (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x)))))) / t_1 t_3 = ((z / y) + x) - (a / (y / x)) tmp = 0 if y <= -2.6e+97: tmp = t_3 elif y <= -2.9e-8: tmp = t_2 elif y <= 8e-25: tmp = (t + (y * 230661.510616)) / ((y * t_1) + i) elif y <= 1.25e+64: tmp = t_2 else: tmp = t_3 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(230661.510616 + Float64(y * Float64(27464.7644705 + Float64(y * Float64(z + Float64(y * x)))))) / t_1) t_3 = Float64(Float64(Float64(z / y) + x) - Float64(a / Float64(y / x))) tmp = 0.0 if (y <= -2.6e+97) tmp = t_3; elseif (y <= -2.9e-8) tmp = t_2; elseif (y <= 8e-25) tmp = Float64(Float64(t + Float64(y * 230661.510616)) / Float64(Float64(y * t_1) + i)); elseif (y <= 1.25e+64) tmp = t_2; else tmp = t_3; 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 = (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x)))))) / t_1; t_3 = ((z / y) + x) - (a / (y / x)); tmp = 0.0; if (y <= -2.6e+97) tmp = t_3; elseif (y <= -2.9e-8) tmp = t_2; elseif (y <= 8e-25) tmp = (t + (y * 230661.510616)) / ((y * t_1) + i); elseif (y <= 1.25e+64) tmp = t_2; else tmp = t_3; 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[(230661.510616 + N[(y * N[(27464.7644705 + N[(y * N[(z + N[(y * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision]}, Block[{t$95$3 = N[(N[(N[(z / y), $MachinePrecision] + x), $MachinePrecision] - N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -2.6e+97], t$95$3, If[LessEqual[y, -2.9e-8], t$95$2, If[LessEqual[y, 8e-25], N[(N[(t + N[(y * 230661.510616), $MachinePrecision]), $MachinePrecision] / N[(N[(y * t$95$1), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.25e+64], t$95$2, t$95$3]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c + y \cdot \left(b + y \cdot \left(y + a\right)\right)\\
t_2 := \frac{230661.510616 + y \cdot \left(27464.7644705 + y \cdot \left(z + y \cdot x\right)\right)}{t_1}\\
t_3 := \left(\frac{z}{y} + x\right) - \frac{a}{\frac{y}{x}}\\
\mathbf{if}\;y \leq -2.6 \cdot 10^{+97}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;y \leq -2.9 \cdot 10^{-8}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq 8 \cdot 10^{-25}:\\
\;\;\;\;\frac{t + y \cdot 230661.510616}{y \cdot t_1 + i}\\
\mathbf{elif}\;y \leq 1.25 \cdot 10^{+64}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if y < -2.6e97 or 1.25e64 < y Initial program 1.2%
Taylor expanded in i around 0 1.2%
Taylor expanded in c around 0 1.2%
Taylor expanded in y around inf 75.4%
+-commutative75.4%
associate-/l*82.8%
Simplified82.8%
if -2.6e97 < y < -2.9000000000000002e-8 or 8.00000000000000031e-25 < y < 1.25e64Initial program 56.9%
Taylor expanded in i around 0 49.8%
Taylor expanded in t around 0 56.3%
if -2.9000000000000002e-8 < y < 8.00000000000000031e-25Initial program 99.7%
Taylor expanded in y around 0 90.7%
*-commutative90.7%
Simplified90.7%
Final simplification80.7%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (* y (+ b (* y (+ y a)))))
(t_2
(/ (+ 230661.510616 (* y (+ 27464.7644705 (* y (+ z (* y x)))))) t_1))
(t_3 (- (+ (/ z y) x) (/ a (/ y x)))))
(if (<= y -2.6e+97)
t_3
(if (<= y -0.235)
t_2
(if (<= y 6.8e-13)
(/ (+ t (* y 230661.510616)) (+ (* y (+ c t_1)) i))
(if (<= y 1.75e+63) t_2 t_3))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = y * (b + (y * (y + a)));
double t_2 = (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x)))))) / t_1;
double t_3 = ((z / y) + x) - (a / (y / x));
double tmp;
if (y <= -2.6e+97) {
tmp = t_3;
} else if (y <= -0.235) {
tmp = t_2;
} else if (y <= 6.8e-13) {
tmp = (t + (y * 230661.510616)) / ((y * (c + t_1)) + i);
} else if (y <= 1.75e+63) {
tmp = t_2;
} 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) :: tmp
t_1 = y * (b + (y * (y + a)))
t_2 = (230661.510616d0 + (y * (27464.7644705d0 + (y * (z + (y * x)))))) / t_1
t_3 = ((z / y) + x) - (a / (y / x))
if (y <= (-2.6d+97)) then
tmp = t_3
else if (y <= (-0.235d0)) then
tmp = t_2
else if (y <= 6.8d-13) then
tmp = (t + (y * 230661.510616d0)) / ((y * (c + t_1)) + i)
else if (y <= 1.75d+63) then
tmp = t_2
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 = y * (b + (y * (y + a)));
double t_2 = (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x)))))) / t_1;
double t_3 = ((z / y) + x) - (a / (y / x));
double tmp;
if (y <= -2.6e+97) {
tmp = t_3;
} else if (y <= -0.235) {
tmp = t_2;
} else if (y <= 6.8e-13) {
tmp = (t + (y * 230661.510616)) / ((y * (c + t_1)) + i);
} else if (y <= 1.75e+63) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = y * (b + (y * (y + a))) t_2 = (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x)))))) / t_1 t_3 = ((z / y) + x) - (a / (y / x)) tmp = 0 if y <= -2.6e+97: tmp = t_3 elif y <= -0.235: tmp = t_2 elif y <= 6.8e-13: tmp = (t + (y * 230661.510616)) / ((y * (c + t_1)) + i) elif y <= 1.75e+63: tmp = t_2 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(y * Float64(b + Float64(y * Float64(y + a)))) t_2 = Float64(Float64(230661.510616 + Float64(y * Float64(27464.7644705 + Float64(y * Float64(z + Float64(y * x)))))) / t_1) t_3 = Float64(Float64(Float64(z / y) + x) - Float64(a / Float64(y / x))) tmp = 0.0 if (y <= -2.6e+97) tmp = t_3; elseif (y <= -0.235) tmp = t_2; elseif (y <= 6.8e-13) tmp = Float64(Float64(t + Float64(y * 230661.510616)) / Float64(Float64(y * Float64(c + t_1)) + i)); elseif (y <= 1.75e+63) tmp = t_2; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = y * (b + (y * (y + a))); t_2 = (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x)))))) / t_1; t_3 = ((z / y) + x) - (a / (y / x)); tmp = 0.0; if (y <= -2.6e+97) tmp = t_3; elseif (y <= -0.235) tmp = t_2; elseif (y <= 6.8e-13) tmp = (t + (y * 230661.510616)) / ((y * (c + t_1)) + i); elseif (y <= 1.75e+63) tmp = t_2; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(y * N[(b + N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = 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]}, Block[{t$95$3 = N[(N[(N[(z / y), $MachinePrecision] + x), $MachinePrecision] - N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -2.6e+97], t$95$3, If[LessEqual[y, -0.235], t$95$2, If[LessEqual[y, 6.8e-13], N[(N[(t + N[(y * 230661.510616), $MachinePrecision]), $MachinePrecision] / N[(N[(y * N[(c + t$95$1), $MachinePrecision]), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.75e+63], t$95$2, t$95$3]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(b + y \cdot \left(y + a\right)\right)\\
t_2 := \frac{230661.510616 + y \cdot \left(27464.7644705 + y \cdot \left(z + y \cdot x\right)\right)}{t_1}\\
t_3 := \left(\frac{z}{y} + x\right) - \frac{a}{\frac{y}{x}}\\
\mathbf{if}\;y \leq -2.6 \cdot 10^{+97}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;y \leq -0.235:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq 6.8 \cdot 10^{-13}:\\
\;\;\;\;\frac{t + y \cdot 230661.510616}{y \cdot \left(c + t_1\right) + i}\\
\mathbf{elif}\;y \leq 1.75 \cdot 10^{+63}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if y < -2.6e97 or 1.75000000000000015e63 < y Initial program 1.2%
Taylor expanded in i around 0 1.2%
Taylor expanded in c around 0 1.2%
Taylor expanded in y around inf 75.4%
+-commutative75.4%
associate-/l*82.8%
Simplified82.8%
if -2.6e97 < y < -0.23499999999999999 or 6.80000000000000031e-13 < y < 1.75000000000000015e63Initial program 52.6%
Taylor expanded in i around 0 46.7%
Taylor expanded in c around 0 41.2%
Taylor expanded in t around 0 50.5%
if -0.23499999999999999 < y < 6.80000000000000031e-13Initial program 99.7%
Taylor expanded in y around 0 88.6%
*-commutative88.6%
Simplified88.6%
Final simplification79.3%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ b (* y (+ y a)))) (t_2 (- (+ (/ z y) x) (/ a (/ y x)))))
(if (<= y -1.85e+58)
t_2
(if (<= y -400000.0)
(/ (* y z) t_1)
(if (<= y 2.3e+53)
(/ (+ t (* y 230661.510616)) (+ (* y (+ c (* y t_1))) i))
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 = ((z / y) + x) - (a / (y / x));
double tmp;
if (y <= -1.85e+58) {
tmp = t_2;
} else if (y <= -400000.0) {
tmp = (y * z) / t_1;
} else if (y <= 2.3e+53) {
tmp = (t + (y * 230661.510616)) / ((y * (c + (y * t_1))) + i);
} 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 = b + (y * (y + a))
t_2 = ((z / y) + x) - (a / (y / x))
if (y <= (-1.85d+58)) then
tmp = t_2
else if (y <= (-400000.0d0)) then
tmp = (y * z) / t_1
else if (y <= 2.3d+53) then
tmp = (t + (y * 230661.510616d0)) / ((y * (c + (y * t_1))) + i)
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 = ((z / y) + x) - (a / (y / x));
double tmp;
if (y <= -1.85e+58) {
tmp = t_2;
} else if (y <= -400000.0) {
tmp = (y * z) / t_1;
} else if (y <= 2.3e+53) {
tmp = (t + (y * 230661.510616)) / ((y * (c + (y * t_1))) + i);
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = b + (y * (y + a)) t_2 = ((z / y) + x) - (a / (y / x)) tmp = 0 if y <= -1.85e+58: tmp = t_2 elif y <= -400000.0: tmp = (y * z) / t_1 elif y <= 2.3e+53: tmp = (t + (y * 230661.510616)) / ((y * (c + (y * t_1))) + i) 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(Float64(z / y) + x) - Float64(a / Float64(y / x))) tmp = 0.0 if (y <= -1.85e+58) tmp = t_2; elseif (y <= -400000.0) tmp = Float64(Float64(y * z) / t_1); elseif (y <= 2.3e+53) tmp = Float64(Float64(t + Float64(y * 230661.510616)) / Float64(Float64(y * Float64(c + Float64(y * t_1))) + i)); 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 = ((z / y) + x) - (a / (y / x)); tmp = 0.0; if (y <= -1.85e+58) tmp = t_2; elseif (y <= -400000.0) tmp = (y * z) / t_1; elseif (y <= 2.3e+53) tmp = (t + (y * 230661.510616)) / ((y * (c + (y * t_1))) + i); 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[(N[(z / y), $MachinePrecision] + x), $MachinePrecision] - N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.85e+58], t$95$2, If[LessEqual[y, -400000.0], N[(N[(y * z), $MachinePrecision] / t$95$1), $MachinePrecision], If[LessEqual[y, 2.3e+53], N[(N[(t + N[(y * 230661.510616), $MachinePrecision]), $MachinePrecision] / N[(N[(y * N[(c + N[(y * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + i), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b + y \cdot \left(y + a\right)\\
t_2 := \left(\frac{z}{y} + x\right) - \frac{a}{\frac{y}{x}}\\
\mathbf{if}\;y \leq -1.85 \cdot 10^{+58}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq -400000:\\
\;\;\;\;\frac{y \cdot z}{t_1}\\
\mathbf{elif}\;y \leq 2.3 \cdot 10^{+53}:\\
\;\;\;\;\frac{t + y \cdot 230661.510616}{y \cdot \left(c + y \cdot t_1\right) + i}\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if y < -1.8500000000000001e58 or 2.3000000000000002e53 < y Initial program 5.2%
Taylor expanded in i around 0 5.2%
Taylor expanded in c around 0 5.2%
Taylor expanded in y around inf 70.7%
+-commutative70.7%
associate-/l*77.2%
Simplified77.2%
if -1.8500000000000001e58 < y < -4e5Initial program 46.5%
Taylor expanded in i around 0 41.0%
Taylor expanded in c around 0 40.7%
Taylor expanded in z around inf 34.1%
if -4e5 < y < 2.3000000000000002e53Initial program 95.4%
Taylor expanded in y around 0 78.0%
*-commutative78.0%
Simplified78.0%
Final simplification74.6%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (- (+ (/ z y) x) (/ a (/ y x)))))
(if (<= y -2.8e+57)
t_1
(if (<= y -320000.0)
(/ (* y z) (+ b (* y (+ y a))))
(if (<= y 2.7e+42)
(/ (+ 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 = ((z / y) + x) - (a / (y / x));
double tmp;
if (y <= -2.8e+57) {
tmp = t_1;
} else if (y <= -320000.0) {
tmp = (y * z) / (b + (y * (y + a)));
} else if (y <= 2.7e+42) {
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 = ((z / y) + x) - (a / (y / x))
if (y <= (-2.8d+57)) then
tmp = t_1
else if (y <= (-320000.0d0)) then
tmp = (y * z) / (b + (y * (y + a)))
else if (y <= 2.7d+42) 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 = ((z / y) + x) - (a / (y / x));
double tmp;
if (y <= -2.8e+57) {
tmp = t_1;
} else if (y <= -320000.0) {
tmp = (y * z) / (b + (y * (y + a)));
} else if (y <= 2.7e+42) {
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 = ((z / y) + x) - (a / (y / x)) tmp = 0 if y <= -2.8e+57: tmp = t_1 elif y <= -320000.0: tmp = (y * z) / (b + (y * (y + a))) elif y <= 2.7e+42: 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(Float64(Float64(z / y) + x) - Float64(a / Float64(y / x))) tmp = 0.0 if (y <= -2.8e+57) tmp = t_1; elseif (y <= -320000.0) tmp = Float64(Float64(y * z) / Float64(b + Float64(y * Float64(y + a)))); elseif (y <= 2.7e+42) 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 = ((z / y) + x) - (a / (y / x)); tmp = 0.0; if (y <= -2.8e+57) tmp = t_1; elseif (y <= -320000.0) tmp = (y * z) / (b + (y * (y + a))); elseif (y <= 2.7e+42) 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[(N[(N[(z / y), $MachinePrecision] + x), $MachinePrecision] - N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -2.8e+57], t$95$1, If[LessEqual[y, -320000.0], N[(N[(y * z), $MachinePrecision] / N[(b + N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.7e+42], 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 := \left(\frac{z}{y} + x\right) - \frac{a}{\frac{y}{x}}\\
\mathbf{if}\;y \leq -2.8 \cdot 10^{+57}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq -320000:\\
\;\;\;\;\frac{y \cdot z}{b + y \cdot \left(y + a\right)}\\
\mathbf{elif}\;y \leq 2.7 \cdot 10^{+42}:\\
\;\;\;\;\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 < -2.8e57 or 2.7000000000000001e42 < y Initial program 6.1%
Taylor expanded in i around 0 6.1%
Taylor expanded in c around 0 6.1%
Taylor expanded in y around inf 69.4%
+-commutative69.4%
associate-/l*75.8%
Simplified75.8%
if -2.8e57 < y < -3.2e5Initial program 46.5%
Taylor expanded in i around 0 41.0%
Taylor expanded in c around 0 40.7%
Taylor expanded in z around inf 34.1%
if -3.2e5 < y < 2.7000000000000001e42Initial program 96.1%
Taylor expanded in y around 0 79.1%
*-commutative79.1%
Simplified79.1%
Taylor expanded in y around 0 76.4%
*-commutative76.4%
Simplified76.4%
Final simplification73.2%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (- (+ (/ z y) x) (/ a (/ y x)))))
(if (<= y -3.4e+57)
t_1
(if (<= y -32500.0)
(/ (* y z) (+ b (* y (+ y a))))
(if (<= y 3.6e-94)
(/ (+ t (* y 230661.510616)) (+ i (* y c)))
(if (<= y 2.3e+53) (/ t (+ 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 = ((z / y) + x) - (a / (y / x));
double tmp;
if (y <= -3.4e+57) {
tmp = t_1;
} else if (y <= -32500.0) {
tmp = (y * z) / (b + (y * (y + a)));
} else if (y <= 3.6e-94) {
tmp = (t + (y * 230661.510616)) / (i + (y * c));
} else if (y <= 2.3e+53) {
tmp = t / (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 = ((z / y) + x) - (a / (y / x))
if (y <= (-3.4d+57)) then
tmp = t_1
else if (y <= (-32500.0d0)) then
tmp = (y * z) / (b + (y * (y + a)))
else if (y <= 3.6d-94) then
tmp = (t + (y * 230661.510616d0)) / (i + (y * c))
else if (y <= 2.3d+53) then
tmp = t / (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 = ((z / y) + x) - (a / (y / x));
double tmp;
if (y <= -3.4e+57) {
tmp = t_1;
} else if (y <= -32500.0) {
tmp = (y * z) / (b + (y * (y + a)));
} else if (y <= 3.6e-94) {
tmp = (t + (y * 230661.510616)) / (i + (y * c));
} else if (y <= 2.3e+53) {
tmp = t / (i + (y * (c + (y * b))));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = ((z / y) + x) - (a / (y / x)) tmp = 0 if y <= -3.4e+57: tmp = t_1 elif y <= -32500.0: tmp = (y * z) / (b + (y * (y + a))) elif y <= 3.6e-94: tmp = (t + (y * 230661.510616)) / (i + (y * c)) elif y <= 2.3e+53: tmp = t / (i + (y * (c + (y * b)))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(Float64(Float64(z / y) + x) - Float64(a / Float64(y / x))) tmp = 0.0 if (y <= -3.4e+57) tmp = t_1; elseif (y <= -32500.0) tmp = Float64(Float64(y * z) / Float64(b + Float64(y * Float64(y + a)))); elseif (y <= 3.6e-94) tmp = Float64(Float64(t + Float64(y * 230661.510616)) / Float64(i + Float64(y * c))); elseif (y <= 2.3e+53) tmp = Float64(t / 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 = ((z / y) + x) - (a / (y / x)); tmp = 0.0; if (y <= -3.4e+57) tmp = t_1; elseif (y <= -32500.0) tmp = (y * z) / (b + (y * (y + a))); elseif (y <= 3.6e-94) tmp = (t + (y * 230661.510616)) / (i + (y * c)); elseif (y <= 2.3e+53) tmp = t / (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[(N[(N[(z / y), $MachinePrecision] + x), $MachinePrecision] - N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -3.4e+57], t$95$1, If[LessEqual[y, -32500.0], N[(N[(y * z), $MachinePrecision] / N[(b + N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.6e-94], N[(N[(t + N[(y * 230661.510616), $MachinePrecision]), $MachinePrecision] / N[(i + N[(y * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.3e+53], N[(t / 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 := \left(\frac{z}{y} + x\right) - \frac{a}{\frac{y}{x}}\\
\mathbf{if}\;y \leq -3.4 \cdot 10^{+57}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq -32500:\\
\;\;\;\;\frac{y \cdot z}{b + y \cdot \left(y + a\right)}\\
\mathbf{elif}\;y \leq 3.6 \cdot 10^{-94}:\\
\;\;\;\;\frac{t + y \cdot 230661.510616}{i + y \cdot c}\\
\mathbf{elif}\;y \leq 2.3 \cdot 10^{+53}:\\
\;\;\;\;\frac{t}{i + y \cdot \left(c + y \cdot b\right)}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if y < -3.39999999999999992e57 or 2.3000000000000002e53 < y Initial program 5.2%
Taylor expanded in i around 0 5.2%
Taylor expanded in c around 0 5.2%
Taylor expanded in y around inf 70.7%
+-commutative70.7%
associate-/l*77.2%
Simplified77.2%
if -3.39999999999999992e57 < y < -32500Initial program 49.3%
Taylor expanded in i around 0 44.1%
Taylor expanded in c around 0 43.7%
Taylor expanded in z around inf 32.3%
if -32500 < y < 3.6e-94Initial program 99.7%
Taylor expanded in y around 0 86.8%
*-commutative86.8%
Simplified86.8%
Taylor expanded in y around 0 83.0%
*-commutative83.0%
Simplified83.0%
if 3.6e-94 < y < 2.3000000000000002e53Initial program 82.6%
Taylor expanded in y around 0 54.2%
*-commutative54.2%
Simplified54.2%
Taylor expanded in y around 0 51.3%
*-commutative51.3%
Simplified51.3%
Taylor expanded in t around inf 43.3%
Final simplification71.7%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (- (+ (/ z y) x) (/ a (/ y x)))))
(if (<= y -6.2e+57)
t_1
(if (<= y -1100000.0)
(/ (* y z) (+ b (* y (+ y a))))
(if (<= y 3.4e+53) (/ t (+ 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 = ((z / y) + x) - (a / (y / x));
double tmp;
if (y <= -6.2e+57) {
tmp = t_1;
} else if (y <= -1100000.0) {
tmp = (y * z) / (b + (y * (y + a)));
} else if (y <= 3.4e+53) {
tmp = t / (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 = ((z / y) + x) - (a / (y / x))
if (y <= (-6.2d+57)) then
tmp = t_1
else if (y <= (-1100000.0d0)) then
tmp = (y * z) / (b + (y * (y + a)))
else if (y <= 3.4d+53) then
tmp = t / (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 = ((z / y) + x) - (a / (y / x));
double tmp;
if (y <= -6.2e+57) {
tmp = t_1;
} else if (y <= -1100000.0) {
tmp = (y * z) / (b + (y * (y + a)));
} else if (y <= 3.4e+53) {
tmp = t / (i + (y * (c + (y * b))));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = ((z / y) + x) - (a / (y / x)) tmp = 0 if y <= -6.2e+57: tmp = t_1 elif y <= -1100000.0: tmp = (y * z) / (b + (y * (y + a))) elif y <= 3.4e+53: tmp = t / (i + (y * (c + (y * b)))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(Float64(Float64(z / y) + x) - Float64(a / Float64(y / x))) tmp = 0.0 if (y <= -6.2e+57) tmp = t_1; elseif (y <= -1100000.0) tmp = Float64(Float64(y * z) / Float64(b + Float64(y * Float64(y + a)))); elseif (y <= 3.4e+53) tmp = Float64(t / 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 = ((z / y) + x) - (a / (y / x)); tmp = 0.0; if (y <= -6.2e+57) tmp = t_1; elseif (y <= -1100000.0) tmp = (y * z) / (b + (y * (y + a))); elseif (y <= 3.4e+53) tmp = t / (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[(N[(N[(z / y), $MachinePrecision] + x), $MachinePrecision] - N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -6.2e+57], t$95$1, If[LessEqual[y, -1100000.0], N[(N[(y * z), $MachinePrecision] / N[(b + N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.4e+53], N[(t / 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 := \left(\frac{z}{y} + x\right) - \frac{a}{\frac{y}{x}}\\
\mathbf{if}\;y \leq -6.2 \cdot 10^{+57}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq -1100000:\\
\;\;\;\;\frac{y \cdot z}{b + y \cdot \left(y + a\right)}\\
\mathbf{elif}\;y \leq 3.4 \cdot 10^{+53}:\\
\;\;\;\;\frac{t}{i + y \cdot \left(c + y \cdot b\right)}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if y < -6.20000000000000026e57 or 3.39999999999999998e53 < y Initial program 5.2%
Taylor expanded in i around 0 5.2%
Taylor expanded in c around 0 5.2%
Taylor expanded in y around inf 70.7%
+-commutative70.7%
associate-/l*77.2%
Simplified77.2%
if -6.20000000000000026e57 < y < -1.1e6Initial program 46.5%
Taylor expanded in i around 0 41.0%
Taylor expanded in c around 0 40.7%
Taylor expanded in z around inf 34.1%
if -1.1e6 < y < 3.39999999999999998e53Initial program 95.4%
Taylor expanded in y around 0 78.0%
*-commutative78.0%
Simplified78.0%
Taylor expanded in y around 0 75.3%
*-commutative75.3%
Simplified75.3%
Taylor expanded in t around inf 69.3%
Final simplification70.0%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= y -5000000000.0) (not (<= y 4.2e+22))) (- (+ (/ z y) x) (/ (* x a) y)) (/ t i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -5000000000.0) || !(y <= 4.2e+22)) {
tmp = ((z / y) + x) - ((x * a) / y);
} else {
tmp = t / i;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if ((y <= (-5000000000.0d0)) .or. (.not. (y <= 4.2d+22))) then
tmp = ((z / y) + x) - ((x * a) / y)
else
tmp = t / i
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -5000000000.0) || !(y <= 4.2e+22)) {
tmp = ((z / y) + x) - ((x * a) / y);
} else {
tmp = t / i;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (y <= -5000000000.0) or not (y <= 4.2e+22): tmp = ((z / y) + x) - ((x * a) / y) else: tmp = t / i return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((y <= -5000000000.0) || !(y <= 4.2e+22)) tmp = Float64(Float64(Float64(z / y) + x) - Float64(Float64(x * a) / y)); else tmp = Float64(t / i); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((y <= -5000000000.0) || ~((y <= 4.2e+22))) tmp = ((z / y) + x) - ((x * a) / y); else tmp = t / i; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[y, -5000000000.0], N[Not[LessEqual[y, 4.2e+22]], $MachinePrecision]], N[(N[(N[(z / y), $MachinePrecision] + x), $MachinePrecision] - N[(N[(x * a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], N[(t / i), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -5000000000 \lor \neg \left(y \leq 4.2 \cdot 10^{+22}\right):\\
\;\;\;\;\left(\frac{z}{y} + x\right) - \frac{x \cdot a}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{t}{i}\\
\end{array}
\end{array}
if y < -5e9 or 4.1999999999999996e22 < y Initial program 12.7%
Taylor expanded in y around inf 59.2%
if -5e9 < y < 4.1999999999999996e22Initial program 97.4%
Taylor expanded in y around 0 52.6%
Final simplification55.8%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= y -550000000.0) (not (<= y 8.5e+22))) (- (+ (/ z y) x) (/ a (/ y x))) (/ t i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -550000000.0) || !(y <= 8.5e+22)) {
tmp = ((z / y) + x) - (a / (y / x));
} else {
tmp = t / i;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if ((y <= (-550000000.0d0)) .or. (.not. (y <= 8.5d+22))) then
tmp = ((z / y) + x) - (a / (y / x))
else
tmp = t / i
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -550000000.0) || !(y <= 8.5e+22)) {
tmp = ((z / y) + x) - (a / (y / x));
} else {
tmp = t / i;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (y <= -550000000.0) or not (y <= 8.5e+22): tmp = ((z / y) + x) - (a / (y / x)) else: tmp = t / i return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((y <= -550000000.0) || !(y <= 8.5e+22)) tmp = Float64(Float64(Float64(z / y) + x) - Float64(a / Float64(y / x))); else tmp = Float64(t / i); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((y <= -550000000.0) || ~((y <= 8.5e+22))) tmp = ((z / y) + x) - (a / (y / x)); else tmp = t / i; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[y, -550000000.0], N[Not[LessEqual[y, 8.5e+22]], $MachinePrecision]], N[(N[(N[(z / y), $MachinePrecision] + x), $MachinePrecision] - N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t / i), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -550000000 \lor \neg \left(y \leq 8.5 \cdot 10^{+22}\right):\\
\;\;\;\;\left(\frac{z}{y} + x\right) - \frac{a}{\frac{y}{x}}\\
\mathbf{else}:\\
\;\;\;\;\frac{t}{i}\\
\end{array}
\end{array}
if y < -5.5e8 or 8.49999999999999979e22 < y Initial program 12.7%
Taylor expanded in i around 0 11.9%
Taylor expanded in c around 0 11.0%
Taylor expanded in y around inf 59.2%
+-commutative59.2%
associate-/l*64.6%
Simplified64.6%
if -5.5e8 < y < 8.49999999999999979e22Initial program 97.4%
Taylor expanded in y around 0 52.6%
Final simplification58.4%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= y -9000000000.0) (not (<= y 2.3e+53))) (- (+ (/ z y) x) (/ a (/ y x))) (/ t (+ i (* y (+ c (* y b)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -9000000000.0) || !(y <= 2.3e+53)) {
tmp = ((z / y) + x) - (a / (y / x));
} else {
tmp = t / (i + (y * (c + (y * b))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if ((y <= (-9000000000.0d0)) .or. (.not. (y <= 2.3d+53))) then
tmp = ((z / y) + x) - (a / (y / x))
else
tmp = t / (i + (y * (c + (y * b))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -9000000000.0) || !(y <= 2.3e+53)) {
tmp = ((z / y) + x) - (a / (y / x));
} else {
tmp = t / (i + (y * (c + (y * b))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (y <= -9000000000.0) or not (y <= 2.3e+53): tmp = ((z / y) + x) - (a / (y / x)) else: tmp = t / (i + (y * (c + (y * b)))) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((y <= -9000000000.0) || !(y <= 2.3e+53)) tmp = Float64(Float64(Float64(z / y) + x) - Float64(a / Float64(y / x))); else tmp = Float64(t / Float64(i + Float64(y * Float64(c + Float64(y * b))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((y <= -9000000000.0) || ~((y <= 2.3e+53))) tmp = ((z / y) + x) - (a / (y / x)); else tmp = t / (i + (y * (c + (y * b)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[y, -9000000000.0], N[Not[LessEqual[y, 2.3e+53]], $MachinePrecision]], N[(N[(N[(z / y), $MachinePrecision] + x), $MachinePrecision] - N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t / N[(i + N[(y * N[(c + N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -9000000000 \lor \neg \left(y \leq 2.3 \cdot 10^{+53}\right):\\
\;\;\;\;\left(\frac{z}{y} + x\right) - \frac{a}{\frac{y}{x}}\\
\mathbf{else}:\\
\;\;\;\;\frac{t}{i + y \cdot \left(c + y \cdot b\right)}\\
\end{array}
\end{array}
if y < -9e9 or 2.3000000000000002e53 < y Initial program 11.5%
Taylor expanded in i around 0 10.7%
Taylor expanded in c around 0 10.6%
Taylor expanded in y around inf 62.1%
+-commutative62.1%
associate-/l*67.7%
Simplified67.7%
if -9e9 < y < 2.3000000000000002e53Initial program 94.7%
Taylor expanded in y around 0 77.5%
*-commutative77.5%
Simplified77.5%
Taylor expanded in y around 0 74.8%
*-commutative74.8%
Simplified74.8%
Taylor expanded in t around inf 68.8%
Final simplification68.3%
(FPCore (x y z t a b c i)
:precision binary64
(if (<= y -1.12e+125)
x
(if (<= y -0.18)
(/ x (/ a y))
(if (<= y 4.8e+22) (/ t i) (- x (/ a (/ y x)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (y <= -1.12e+125) {
tmp = x;
} else if (y <= -0.18) {
tmp = x / (a / y);
} else if (y <= 4.8e+22) {
tmp = t / i;
} else {
tmp = x - (a / (y / x));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if (y <= (-1.12d+125)) then
tmp = x
else if (y <= (-0.18d0)) then
tmp = x / (a / y)
else if (y <= 4.8d+22) then
tmp = t / i
else
tmp = x - (a / (y / x))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (y <= -1.12e+125) {
tmp = x;
} else if (y <= -0.18) {
tmp = x / (a / y);
} else if (y <= 4.8e+22) {
tmp = t / i;
} else {
tmp = x - (a / (y / x));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if y <= -1.12e+125: tmp = x elif y <= -0.18: tmp = x / (a / y) elif y <= 4.8e+22: tmp = t / i else: tmp = x - (a / (y / x)) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (y <= -1.12e+125) tmp = x; elseif (y <= -0.18) tmp = Float64(x / Float64(a / y)); elseif (y <= 4.8e+22) tmp = Float64(t / i); else tmp = Float64(x - Float64(a / Float64(y / x))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (y <= -1.12e+125) tmp = x; elseif (y <= -0.18) tmp = x / (a / y); elseif (y <= 4.8e+22) tmp = t / i; else tmp = x - (a / (y / x)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, -1.12e+125], x, If[LessEqual[y, -0.18], N[(x / N[(a / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4.8e+22], N[(t / i), $MachinePrecision], N[(x - N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.12 \cdot 10^{+125}:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq -0.18:\\
\;\;\;\;\frac{x}{\frac{a}{y}}\\
\mathbf{elif}\;y \leq 4.8 \cdot 10^{+22}:\\
\;\;\;\;\frac{t}{i}\\
\mathbf{else}:\\
\;\;\;\;x - \frac{a}{\frac{y}{x}}\\
\end{array}
\end{array}
if y < -1.12e125Initial program 0.0%
Taylor expanded in y around inf 68.3%
if -1.12e125 < y < -0.17999999999999999Initial program 44.0%
Taylor expanded in x around inf 24.2%
Taylor expanded in a around inf 20.1%
associate-/l*27.3%
Simplified27.3%
if -0.17999999999999999 < y < 4.8e22Initial program 98.1%
Taylor expanded in y around 0 55.0%
if 4.8e22 < y Initial program 6.6%
Taylor expanded in x around inf 0.6%
Taylor expanded in y around inf 38.2%
mul-1-neg38.2%
unsub-neg38.2%
associate-/l*46.0%
Simplified46.0%
Final simplification51.1%
(FPCore (x y z t a b c i) :precision binary64 (if (<= y -1.12e+125) x (if (<= y -0.0064) (/ x (/ a y)) (if (<= y 2.65e+20) (/ t i) x))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (y <= -1.12e+125) {
tmp = x;
} else if (y <= -0.0064) {
tmp = x / (a / y);
} else if (y <= 2.65e+20) {
tmp = t / i;
} else {
tmp = x;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: tmp
if (y <= (-1.12d+125)) then
tmp = x
else if (y <= (-0.0064d0)) then
tmp = x / (a / y)
else if (y <= 2.65d+20) then
tmp = t / i
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (y <= -1.12e+125) {
tmp = x;
} else if (y <= -0.0064) {
tmp = x / (a / y);
} else if (y <= 2.65e+20) {
tmp = t / i;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if y <= -1.12e+125: tmp = x elif y <= -0.0064: tmp = x / (a / y) elif y <= 2.65e+20: tmp = t / i else: tmp = x return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (y <= -1.12e+125) tmp = x; elseif (y <= -0.0064) tmp = Float64(x / Float64(a / y)); elseif (y <= 2.65e+20) tmp = Float64(t / i); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if (y <= -1.12e+125) tmp = x; elseif (y <= -0.0064) tmp = x / (a / y); elseif (y <= 2.65e+20) tmp = t / i; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, -1.12e+125], x, If[LessEqual[y, -0.0064], N[(x / N[(a / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.65e+20], N[(t / i), $MachinePrecision], x]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.12 \cdot 10^{+125}:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq -0.0064:\\
\;\;\;\;\frac{x}{\frac{a}{y}}\\
\mathbf{elif}\;y \leq 2.65 \cdot 10^{+20}:\\
\;\;\;\;\frac{t}{i}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if y < -1.12e125 or 2.65e20 < y Initial program 3.5%
Taylor expanded in y around inf 55.6%
if -1.12e125 < y < -0.00640000000000000031Initial program 44.0%
Taylor expanded in x around inf 24.2%
Taylor expanded in a around inf 20.1%
associate-/l*27.3%
Simplified27.3%
if -0.00640000000000000031 < y < 2.65e20Initial program 98.9%
Taylor expanded in y around 0 55.4%
Final simplification51.1%
(FPCore (x y z t a b c i) :precision binary64 (if (<= y -3.2e+31) x (if (<= y 2.35e+20) (/ 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 <= -3.2e+31) {
tmp = x;
} else if (y <= 2.35e+20) {
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 <= (-3.2d+31)) then
tmp = x
else if (y <= 2.35d+20) 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 <= -3.2e+31) {
tmp = x;
} else if (y <= 2.35e+20) {
tmp = t / i;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if y <= -3.2e+31: tmp = x elif y <= 2.35e+20: tmp = t / i else: tmp = x return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (y <= -3.2e+31) tmp = x; elseif (y <= 2.35e+20) 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 <= -3.2e+31) tmp = x; elseif (y <= 2.35e+20) tmp = t / i; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, -3.2e+31], x, If[LessEqual[y, 2.35e+20], N[(t / i), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -3.2 \cdot 10^{+31}:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq 2.35 \cdot 10^{+20}:\\
\;\;\;\;\frac{t}{i}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if y < -3.2000000000000001e31 or 2.35e20 < y Initial program 8.3%
Taylor expanded in y around inf 47.9%
if -3.2000000000000001e31 < y < 2.35e20Initial program 96.2%
Taylor expanded in y around 0 49.9%
Final simplification49.0%
(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.0%
Taylor expanded in y around inf 23.8%
Final simplification23.8%
herbie shell --seed 2023318
(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)))