
(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 19 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 (+ i (* y (+ c (* y (+ (* y (+ y a)) b))))))
(t_2 (+ (/ z y) (- x (/ a (/ y x)))))
(t_3 (/ t t_1))
(t_4 (+ (/ z a) (/ y (/ a x)))))
(if (<= y -1.5e+62)
t_2
(if (<= y -5.4e+21)
(+ t_3 (+ (/ (/ 27464.7644705 a) y) t_4))
(if (<= y 1.15e+50)
(+
t_3
(/
(* y (+ 230661.510616 (* y (+ 27464.7644705 (* y (+ z (* y x)))))))
t_1))
(if (<= y 2.6e+102)
(+
(/ (/ 230661.510616 a) (* y y))
(+
(/ (/ t y) (fma (fma (+ y a) y b) y c))
(+ t_4 (/ 27464.7644705 (* y a)))))
t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = i + (y * (c + (y * ((y * (y + a)) + b))));
double t_2 = (z / y) + (x - (a / (y / x)));
double t_3 = t / t_1;
double t_4 = (z / a) + (y / (a / x));
double tmp;
if (y <= -1.5e+62) {
tmp = t_2;
} else if (y <= -5.4e+21) {
tmp = t_3 + (((27464.7644705 / a) / y) + t_4);
} else if (y <= 1.15e+50) {
tmp = t_3 + ((y * (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x))))))) / t_1);
} else if (y <= 2.6e+102) {
tmp = ((230661.510616 / a) / (y * y)) + (((t / y) / fma(fma((y + a), y, b), y, c)) + (t_4 + (27464.7644705 / (y * a))));
} else {
tmp = t_2;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i) t_1 = Float64(i + Float64(y * Float64(c + Float64(y * Float64(Float64(y * Float64(y + a)) + b))))) t_2 = Float64(Float64(z / y) + Float64(x - Float64(a / Float64(y / x)))) t_3 = Float64(t / t_1) t_4 = Float64(Float64(z / a) + Float64(y / Float64(a / x))) tmp = 0.0 if (y <= -1.5e+62) tmp = t_2; elseif (y <= -5.4e+21) tmp = Float64(t_3 + Float64(Float64(Float64(27464.7644705 / a) / y) + t_4)); elseif (y <= 1.15e+50) tmp = Float64(t_3 + Float64(Float64(y * Float64(230661.510616 + Float64(y * Float64(27464.7644705 + Float64(y * Float64(z + Float64(y * x))))))) / t_1)); elseif (y <= 2.6e+102) tmp = Float64(Float64(Float64(230661.510616 / a) / Float64(y * y)) + Float64(Float64(Float64(t / y) / fma(fma(Float64(y + a), y, b), y, c)) + Float64(t_4 + Float64(27464.7644705 / Float64(y * a))))); else tmp = t_2; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(i + N[(y * N[(c + N[(y * N[(N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(z / y), $MachinePrecision] + N[(x - N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(t / t$95$1), $MachinePrecision]}, Block[{t$95$4 = N[(N[(z / a), $MachinePrecision] + N[(y / N[(a / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.5e+62], t$95$2, If[LessEqual[y, -5.4e+21], N[(t$95$3 + N[(N[(N[(27464.7644705 / a), $MachinePrecision] / y), $MachinePrecision] + t$95$4), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.15e+50], N[(t$95$3 + N[(N[(y * N[(230661.510616 + N[(y * N[(27464.7644705 + N[(y * N[(z + N[(y * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.6e+102], N[(N[(N[(230661.510616 / a), $MachinePrecision] / N[(y * y), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(t / y), $MachinePrecision] / N[(N[(N[(y + a), $MachinePrecision] * y + b), $MachinePrecision] * y + c), $MachinePrecision]), $MachinePrecision] + N[(t$95$4 + N[(27464.7644705 / N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i + y \cdot \left(c + y \cdot \left(y \cdot \left(y + a\right) + b\right)\right)\\
t_2 := \frac{z}{y} + \left(x - \frac{a}{\frac{y}{x}}\right)\\
t_3 := \frac{t}{t_1}\\
t_4 := \frac{z}{a} + \frac{y}{\frac{a}{x}}\\
\mathbf{if}\;y \leq -1.5 \cdot 10^{+62}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq -5.4 \cdot 10^{+21}:\\
\;\;\;\;t_3 + \left(\frac{\frac{27464.7644705}{a}}{y} + t_4\right)\\
\mathbf{elif}\;y \leq 1.15 \cdot 10^{+50}:\\
\;\;\;\;t_3 + \frac{y \cdot \left(230661.510616 + y \cdot \left(27464.7644705 + y \cdot \left(z + y \cdot x\right)\right)\right)}{t_1}\\
\mathbf{elif}\;y \leq 2.6 \cdot 10^{+102}:\\
\;\;\;\;\frac{\frac{230661.510616}{a}}{y \cdot y} + \left(\frac{\frac{t}{y}}{\mathsf{fma}\left(\mathsf{fma}\left(y + a, y, b\right), y, c\right)} + \left(t_4 + \frac{27464.7644705}{y \cdot a}\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if y < -1.5e62 or 2.60000000000000006e102 < y Initial program 0.4%
Taylor expanded in y around inf 78.5%
associate--l+78.5%
associate-/l*82.7%
Simplified82.7%
if -1.5e62 < y < -5.4e21Initial program 30.0%
Taylor expanded in t around inf 30.0%
Taylor expanded in a around inf 26.8%
*-commutative26.8%
fma-def26.8%
*-commutative26.8%
unpow226.8%
Simplified26.8%
Taylor expanded in y around inf 36.4%
+-commutative36.4%
associate-+r+36.4%
associate-*r/36.4%
metadata-eval36.4%
associate-/r*44.3%
+-commutative44.3%
associate-/l*69.8%
Simplified69.8%
if -5.4e21 < y < 1.14999999999999998e50Initial program 95.3%
Taylor expanded in t around inf 95.3%
if 1.14999999999999998e50 < y < 2.60000000000000006e102Initial program 2.3%
Taylor expanded in t around inf 2.3%
Taylor expanded in a around inf 13.3%
*-commutative13.3%
fma-def13.3%
*-commutative13.3%
unpow213.3%
Simplified13.3%
Taylor expanded in i around 0 53.9%
*-commutative53.9%
associate-*r/53.9%
metadata-eval53.9%
associate-/r*53.9%
unpow253.9%
associate-/r*55.1%
+-commutative55.1%
*-commutative55.1%
fma-udef55.1%
fma-def55.1%
+-commutative55.1%
associate-+r+55.1%
+-commutative55.1%
Simplified61.0%
Final simplification87.2%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ i (* y (+ c (* y (+ (* y (+ y a)) b))))))
(t_2 (/ t t_1))
(t_3 (+ t_2 (+ (/ (/ 27464.7644705 a) y) (+ (/ z a) (/ y (/ a x))))))
(t_4 (+ (/ z y) (- x (/ a (/ y x))))))
(if (<= y -1.3e+63)
t_4
(if (<= y -1.36e+20)
t_3
(if (<= y 9e+49)
(+
t_2
(/
(* y (+ 230661.510616 (* y (+ 27464.7644705 (* y (+ z (* y x)))))))
t_1))
(if (<= y 3.4e+102) t_3 t_4))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = i + (y * (c + (y * ((y * (y + a)) + b))));
double t_2 = t / t_1;
double t_3 = t_2 + (((27464.7644705 / a) / y) + ((z / a) + (y / (a / x))));
double t_4 = (z / y) + (x - (a / (y / x)));
double tmp;
if (y <= -1.3e+63) {
tmp = t_4;
} else if (y <= -1.36e+20) {
tmp = t_3;
} else if (y <= 9e+49) {
tmp = t_2 + ((y * (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x))))))) / t_1);
} else if (y <= 3.4e+102) {
tmp = t_3;
} else {
tmp = t_4;
}
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 = i + (y * (c + (y * ((y * (y + a)) + b))))
t_2 = t / t_1
t_3 = t_2 + (((27464.7644705d0 / a) / y) + ((z / a) + (y / (a / x))))
t_4 = (z / y) + (x - (a / (y / x)))
if (y <= (-1.3d+63)) then
tmp = t_4
else if (y <= (-1.36d+20)) then
tmp = t_3
else if (y <= 9d+49) then
tmp = t_2 + ((y * (230661.510616d0 + (y * (27464.7644705d0 + (y * (z + (y * x))))))) / t_1)
else if (y <= 3.4d+102) then
tmp = t_3
else
tmp = t_4
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 = i + (y * (c + (y * ((y * (y + a)) + b))));
double t_2 = t / t_1;
double t_3 = t_2 + (((27464.7644705 / a) / y) + ((z / a) + (y / (a / x))));
double t_4 = (z / y) + (x - (a / (y / x)));
double tmp;
if (y <= -1.3e+63) {
tmp = t_4;
} else if (y <= -1.36e+20) {
tmp = t_3;
} else if (y <= 9e+49) {
tmp = t_2 + ((y * (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x))))))) / t_1);
} else if (y <= 3.4e+102) {
tmp = t_3;
} else {
tmp = t_4;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = i + (y * (c + (y * ((y * (y + a)) + b)))) t_2 = t / t_1 t_3 = t_2 + (((27464.7644705 / a) / y) + ((z / a) + (y / (a / x)))) t_4 = (z / y) + (x - (a / (y / x))) tmp = 0 if y <= -1.3e+63: tmp = t_4 elif y <= -1.36e+20: tmp = t_3 elif y <= 9e+49: tmp = t_2 + ((y * (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x))))))) / t_1) elif y <= 3.4e+102: tmp = t_3 else: tmp = t_4 return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(i + Float64(y * Float64(c + Float64(y * Float64(Float64(y * Float64(y + a)) + b))))) t_2 = Float64(t / t_1) t_3 = Float64(t_2 + Float64(Float64(Float64(27464.7644705 / a) / y) + Float64(Float64(z / a) + Float64(y / Float64(a / x))))) t_4 = Float64(Float64(z / y) + Float64(x - Float64(a / Float64(y / x)))) tmp = 0.0 if (y <= -1.3e+63) tmp = t_4; elseif (y <= -1.36e+20) tmp = t_3; elseif (y <= 9e+49) tmp = Float64(t_2 + Float64(Float64(y * Float64(230661.510616 + Float64(y * Float64(27464.7644705 + Float64(y * Float64(z + Float64(y * x))))))) / t_1)); elseif (y <= 3.4e+102) tmp = t_3; else tmp = t_4; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = i + (y * (c + (y * ((y * (y + a)) + b)))); t_2 = t / t_1; t_3 = t_2 + (((27464.7644705 / a) / y) + ((z / a) + (y / (a / x)))); t_4 = (z / y) + (x - (a / (y / x))); tmp = 0.0; if (y <= -1.3e+63) tmp = t_4; elseif (y <= -1.36e+20) tmp = t_3; elseif (y <= 9e+49) tmp = t_2 + ((y * (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x))))))) / t_1); elseif (y <= 3.4e+102) tmp = t_3; else tmp = t_4; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(i + N[(y * N[(c + N[(y * N[(N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t / t$95$1), $MachinePrecision]}, Block[{t$95$3 = N[(t$95$2 + N[(N[(N[(27464.7644705 / a), $MachinePrecision] / y), $MachinePrecision] + N[(N[(z / a), $MachinePrecision] + N[(y / N[(a / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(z / y), $MachinePrecision] + N[(x - N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.3e+63], t$95$4, If[LessEqual[y, -1.36e+20], t$95$3, If[LessEqual[y, 9e+49], N[(t$95$2 + N[(N[(y * N[(230661.510616 + N[(y * N[(27464.7644705 + N[(y * N[(z + N[(y * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.4e+102], t$95$3, t$95$4]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i + y \cdot \left(c + y \cdot \left(y \cdot \left(y + a\right) + b\right)\right)\\
t_2 := \frac{t}{t_1}\\
t_3 := t_2 + \left(\frac{\frac{27464.7644705}{a}}{y} + \left(\frac{z}{a} + \frac{y}{\frac{a}{x}}\right)\right)\\
t_4 := \frac{z}{y} + \left(x - \frac{a}{\frac{y}{x}}\right)\\
\mathbf{if}\;y \leq -1.3 \cdot 10^{+63}:\\
\;\;\;\;t_4\\
\mathbf{elif}\;y \leq -1.36 \cdot 10^{+20}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;y \leq 9 \cdot 10^{+49}:\\
\;\;\;\;t_2 + \frac{y \cdot \left(230661.510616 + y \cdot \left(27464.7644705 + y \cdot \left(z + y \cdot x\right)\right)\right)}{t_1}\\
\mathbf{elif}\;y \leq 3.4 \cdot 10^{+102}:\\
\;\;\;\;t_3\\
\mathbf{else}:\\
\;\;\;\;t_4\\
\end{array}
\end{array}
if y < -1.3000000000000001e63 or 3.4e102 < y Initial program 0.4%
Taylor expanded in y around inf 78.5%
associate--l+78.5%
associate-/l*82.7%
Simplified82.7%
if -1.3000000000000001e63 < y < -1.36e20 or 8.99999999999999965e49 < y < 3.4e102Initial program 13.6%
Taylor expanded in t around inf 13.6%
Taylor expanded in a around inf 18.8%
*-commutative18.8%
fma-def18.8%
*-commutative18.8%
unpow218.8%
Simplified18.8%
Taylor expanded in y around inf 46.8%
+-commutative46.8%
associate-+r+46.8%
associate-*r/46.8%
metadata-eval46.8%
associate-/r*50.0%
+-commutative50.0%
associate-/l*63.9%
Simplified63.9%
if -1.36e20 < y < 8.99999999999999965e49Initial program 95.3%
Taylor expanded in t around inf 95.3%
Final simplification87.1%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ i (* y (+ c (* y (+ (* y (+ y a)) b))))))
(t_2
(+ (/ t t_1) (+ (/ (/ 27464.7644705 a) y) (+ (/ z a) (/ y (/ a x))))))
(t_3 (+ (/ z y) (- x (/ a (/ y x))))))
(if (<= y -7.6e+62)
t_3
(if (<= y -8.8e+20)
t_2
(if (<= y 5e+44)
(/ (+ t (* y (+ 230661.510616 (* y (+ 27464.7644705 (* y z)))))) t_1)
(if (<= y 2.6e+102) 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 = i + (y * (c + (y * ((y * (y + a)) + b))));
double t_2 = (t / t_1) + (((27464.7644705 / a) / y) + ((z / a) + (y / (a / x))));
double t_3 = (z / y) + (x - (a / (y / x)));
double tmp;
if (y <= -7.6e+62) {
tmp = t_3;
} else if (y <= -8.8e+20) {
tmp = t_2;
} else if (y <= 5e+44) {
tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / t_1;
} else if (y <= 2.6e+102) {
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 = i + (y * (c + (y * ((y * (y + a)) + b))))
t_2 = (t / t_1) + (((27464.7644705d0 / a) / y) + ((z / a) + (y / (a / x))))
t_3 = (z / y) + (x - (a / (y / x)))
if (y <= (-7.6d+62)) then
tmp = t_3
else if (y <= (-8.8d+20)) then
tmp = t_2
else if (y <= 5d+44) then
tmp = (t + (y * (230661.510616d0 + (y * (27464.7644705d0 + (y * z)))))) / t_1
else if (y <= 2.6d+102) 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 = i + (y * (c + (y * ((y * (y + a)) + b))));
double t_2 = (t / t_1) + (((27464.7644705 / a) / y) + ((z / a) + (y / (a / x))));
double t_3 = (z / y) + (x - (a / (y / x)));
double tmp;
if (y <= -7.6e+62) {
tmp = t_3;
} else if (y <= -8.8e+20) {
tmp = t_2;
} else if (y <= 5e+44) {
tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / t_1;
} else if (y <= 2.6e+102) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = i + (y * (c + (y * ((y * (y + a)) + b)))) t_2 = (t / t_1) + (((27464.7644705 / a) / y) + ((z / a) + (y / (a / x)))) t_3 = (z / y) + (x - (a / (y / x))) tmp = 0 if y <= -7.6e+62: tmp = t_3 elif y <= -8.8e+20: tmp = t_2 elif y <= 5e+44: tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / t_1 elif y <= 2.6e+102: tmp = t_2 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(i + Float64(y * Float64(c + Float64(y * Float64(Float64(y * Float64(y + a)) + b))))) t_2 = Float64(Float64(t / t_1) + Float64(Float64(Float64(27464.7644705 / a) / y) + Float64(Float64(z / a) + Float64(y / Float64(a / x))))) t_3 = Float64(Float64(z / y) + Float64(x - Float64(a / Float64(y / x)))) tmp = 0.0 if (y <= -7.6e+62) tmp = t_3; elseif (y <= -8.8e+20) tmp = t_2; elseif (y <= 5e+44) tmp = Float64(Float64(t + Float64(y * Float64(230661.510616 + Float64(y * Float64(27464.7644705 + Float64(y * z)))))) / t_1); elseif (y <= 2.6e+102) 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 = i + (y * (c + (y * ((y * (y + a)) + b)))); t_2 = (t / t_1) + (((27464.7644705 / a) / y) + ((z / a) + (y / (a / x)))); t_3 = (z / y) + (x - (a / (y / x))); tmp = 0.0; if (y <= -7.6e+62) tmp = t_3; elseif (y <= -8.8e+20) tmp = t_2; elseif (y <= 5e+44) tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / t_1; elseif (y <= 2.6e+102) 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[(i + N[(y * N[(c + N[(y * N[(N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(t / t$95$1), $MachinePrecision] + N[(N[(N[(27464.7644705 / a), $MachinePrecision] / y), $MachinePrecision] + N[(N[(z / a), $MachinePrecision] + N[(y / N[(a / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(z / y), $MachinePrecision] + N[(x - N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -7.6e+62], t$95$3, If[LessEqual[y, -8.8e+20], t$95$2, If[LessEqual[y, 5e+44], N[(N[(t + N[(y * N[(230661.510616 + N[(y * N[(27464.7644705 + N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision], If[LessEqual[y, 2.6e+102], t$95$2, t$95$3]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i + y \cdot \left(c + y \cdot \left(y \cdot \left(y + a\right) + b\right)\right)\\
t_2 := \frac{t}{t_1} + \left(\frac{\frac{27464.7644705}{a}}{y} + \left(\frac{z}{a} + \frac{y}{\frac{a}{x}}\right)\right)\\
t_3 := \frac{z}{y} + \left(x - \frac{a}{\frac{y}{x}}\right)\\
\mathbf{if}\;y \leq -7.6 \cdot 10^{+62}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;y \leq -8.8 \cdot 10^{+20}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq 5 \cdot 10^{+44}:\\
\;\;\;\;\frac{t + y \cdot \left(230661.510616 + y \cdot \left(27464.7644705 + y \cdot z\right)\right)}{t_1}\\
\mathbf{elif}\;y \leq 2.6 \cdot 10^{+102}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if y < -7.59999999999999967e62 or 2.60000000000000006e102 < y Initial program 0.4%
Taylor expanded in y around inf 78.5%
associate--l+78.5%
associate-/l*82.7%
Simplified82.7%
if -7.59999999999999967e62 < y < -8.8e20 or 4.9999999999999996e44 < y < 2.60000000000000006e102Initial program 16.6%
Taylor expanded in t around inf 16.6%
Taylor expanded in a around inf 18.5%
*-commutative18.5%
fma-def18.5%
*-commutative18.5%
unpow218.5%
Simplified18.5%
Taylor expanded in y around inf 45.5%
+-commutative45.5%
associate-+r+45.5%
associate-*r/45.5%
metadata-eval45.5%
associate-/r*48.5%
+-commutative48.5%
associate-/l*61.9%
Simplified61.9%
if -8.8e20 < y < 4.9999999999999996e44Initial program 95.2%
Taylor expanded in x around 0 92.5%
Final simplification85.4%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ i (* y (+ c (* y (+ (* y (+ y a)) b))))))
(t_2
(+ (/ t t_1) (+ (/ (/ 27464.7644705 a) y) (+ (/ z a) (/ y (/ a x))))))
(t_3 (+ (/ z y) (- x (/ a (/ y x))))))
(if (<= y -5e+62)
t_3
(if (<= y -5.4e+21)
t_2
(if (<= y 1.02e+51)
(/
(+
t
(* y (+ 230661.510616 (* y (+ 27464.7644705 (* y (+ z (* y x))))))))
t_1)
(if (<= y 2.6e+102) 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 = i + (y * (c + (y * ((y * (y + a)) + b))));
double t_2 = (t / t_1) + (((27464.7644705 / a) / y) + ((z / a) + (y / (a / x))));
double t_3 = (z / y) + (x - (a / (y / x)));
double tmp;
if (y <= -5e+62) {
tmp = t_3;
} else if (y <= -5.4e+21) {
tmp = t_2;
} else if (y <= 1.02e+51) {
tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x)))))))) / t_1;
} else if (y <= 2.6e+102) {
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 = i + (y * (c + (y * ((y * (y + a)) + b))))
t_2 = (t / t_1) + (((27464.7644705d0 / a) / y) + ((z / a) + (y / (a / x))))
t_3 = (z / y) + (x - (a / (y / x)))
if (y <= (-5d+62)) then
tmp = t_3
else if (y <= (-5.4d+21)) then
tmp = t_2
else if (y <= 1.02d+51) then
tmp = (t + (y * (230661.510616d0 + (y * (27464.7644705d0 + (y * (z + (y * x)))))))) / t_1
else if (y <= 2.6d+102) 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 = i + (y * (c + (y * ((y * (y + a)) + b))));
double t_2 = (t / t_1) + (((27464.7644705 / a) / y) + ((z / a) + (y / (a / x))));
double t_3 = (z / y) + (x - (a / (y / x)));
double tmp;
if (y <= -5e+62) {
tmp = t_3;
} else if (y <= -5.4e+21) {
tmp = t_2;
} else if (y <= 1.02e+51) {
tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x)))))))) / t_1;
} else if (y <= 2.6e+102) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = i + (y * (c + (y * ((y * (y + a)) + b)))) t_2 = (t / t_1) + (((27464.7644705 / a) / y) + ((z / a) + (y / (a / x)))) t_3 = (z / y) + (x - (a / (y / x))) tmp = 0 if y <= -5e+62: tmp = t_3 elif y <= -5.4e+21: tmp = t_2 elif y <= 1.02e+51: tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x)))))))) / t_1 elif y <= 2.6e+102: tmp = t_2 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(i + Float64(y * Float64(c + Float64(y * Float64(Float64(y * Float64(y + a)) + b))))) t_2 = Float64(Float64(t / t_1) + Float64(Float64(Float64(27464.7644705 / a) / y) + Float64(Float64(z / a) + Float64(y / Float64(a / x))))) t_3 = Float64(Float64(z / y) + Float64(x - Float64(a / Float64(y / x)))) tmp = 0.0 if (y <= -5e+62) tmp = t_3; elseif (y <= -5.4e+21) tmp = t_2; elseif (y <= 1.02e+51) tmp = Float64(Float64(t + Float64(y * Float64(230661.510616 + Float64(y * Float64(27464.7644705 + Float64(y * Float64(z + Float64(y * x)))))))) / t_1); elseif (y <= 2.6e+102) 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 = i + (y * (c + (y * ((y * (y + a)) + b)))); t_2 = (t / t_1) + (((27464.7644705 / a) / y) + ((z / a) + (y / (a / x)))); t_3 = (z / y) + (x - (a / (y / x))); tmp = 0.0; if (y <= -5e+62) tmp = t_3; elseif (y <= -5.4e+21) tmp = t_2; elseif (y <= 1.02e+51) tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * (z + (y * x)))))))) / t_1; elseif (y <= 2.6e+102) 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[(i + N[(y * N[(c + N[(y * N[(N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(t / t$95$1), $MachinePrecision] + N[(N[(N[(27464.7644705 / a), $MachinePrecision] / y), $MachinePrecision] + N[(N[(z / a), $MachinePrecision] + N[(y / N[(a / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(z / y), $MachinePrecision] + N[(x - N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -5e+62], t$95$3, If[LessEqual[y, -5.4e+21], t$95$2, If[LessEqual[y, 1.02e+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] / t$95$1), $MachinePrecision], If[LessEqual[y, 2.6e+102], t$95$2, t$95$3]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i + y \cdot \left(c + y \cdot \left(y \cdot \left(y + a\right) + b\right)\right)\\
t_2 := \frac{t}{t_1} + \left(\frac{\frac{27464.7644705}{a}}{y} + \left(\frac{z}{a} + \frac{y}{\frac{a}{x}}\right)\right)\\
t_3 := \frac{z}{y} + \left(x - \frac{a}{\frac{y}{x}}\right)\\
\mathbf{if}\;y \leq -5 \cdot 10^{+62}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;y \leq -5.4 \cdot 10^{+21}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq 1.02 \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)}{t_1}\\
\mathbf{elif}\;y \leq 2.6 \cdot 10^{+102}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if y < -5.00000000000000029e62 or 2.60000000000000006e102 < y Initial program 0.4%
Taylor expanded in y around inf 78.5%
associate--l+78.5%
associate-/l*82.7%
Simplified82.7%
if -5.00000000000000029e62 < y < -5.4e21 or 1.02e51 < y < 2.60000000000000006e102Initial program 13.6%
Taylor expanded in t around inf 13.6%
Taylor expanded in a around inf 18.8%
*-commutative18.8%
fma-def18.8%
*-commutative18.8%
unpow218.8%
Simplified18.8%
Taylor expanded in y around inf 46.8%
+-commutative46.8%
associate-+r+46.8%
associate-*r/46.8%
metadata-eval46.8%
associate-/r*50.0%
+-commutative50.0%
associate-/l*63.9%
Simplified63.9%
if -5.4e21 < y < 1.02e51Initial program 95.3%
Final simplification87.1%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (/ t (+ i (* y (+ c (* y (+ (* y (+ y a)) b)))))))
(t_2 (+ t_1 (+ (/ z a) (/ (* y x) a))))
(t_3 (+ (/ z y) (- x (/ a (/ y x))))))
(if (<= y -1.62e+62)
t_3
(if (<= y -1.1e+34)
(+ t_1 (/ y (/ a x)))
(if (<= y -5.4e+21)
t_2
(if (<= y 3e+45)
(/
(+ t (* y (+ 230661.510616 (* y (+ 27464.7644705 (* y z))))))
(+ i (* y (+ c (* y b)))))
(if (<= y 3.2e+102) 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 = t / (i + (y * (c + (y * ((y * (y + a)) + b)))));
double t_2 = t_1 + ((z / a) + ((y * x) / a));
double t_3 = (z / y) + (x - (a / (y / x)));
double tmp;
if (y <= -1.62e+62) {
tmp = t_3;
} else if (y <= -1.1e+34) {
tmp = t_1 + (y / (a / x));
} else if (y <= -5.4e+21) {
tmp = t_2;
} else if (y <= 3e+45) {
tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / (i + (y * (c + (y * b))));
} else if (y <= 3.2e+102) {
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 = t / (i + (y * (c + (y * ((y * (y + a)) + b)))))
t_2 = t_1 + ((z / a) + ((y * x) / a))
t_3 = (z / y) + (x - (a / (y / x)))
if (y <= (-1.62d+62)) then
tmp = t_3
else if (y <= (-1.1d+34)) then
tmp = t_1 + (y / (a / x))
else if (y <= (-5.4d+21)) then
tmp = t_2
else if (y <= 3d+45) then
tmp = (t + (y * (230661.510616d0 + (y * (27464.7644705d0 + (y * z)))))) / (i + (y * (c + (y * b))))
else if (y <= 3.2d+102) 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 = t / (i + (y * (c + (y * ((y * (y + a)) + b)))));
double t_2 = t_1 + ((z / a) + ((y * x) / a));
double t_3 = (z / y) + (x - (a / (y / x)));
double tmp;
if (y <= -1.62e+62) {
tmp = t_3;
} else if (y <= -1.1e+34) {
tmp = t_1 + (y / (a / x));
} else if (y <= -5.4e+21) {
tmp = t_2;
} else if (y <= 3e+45) {
tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / (i + (y * (c + (y * b))));
} else if (y <= 3.2e+102) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = t / (i + (y * (c + (y * ((y * (y + a)) + b))))) t_2 = t_1 + ((z / a) + ((y * x) / a)) t_3 = (z / y) + (x - (a / (y / x))) tmp = 0 if y <= -1.62e+62: tmp = t_3 elif y <= -1.1e+34: tmp = t_1 + (y / (a / x)) elif y <= -5.4e+21: tmp = t_2 elif y <= 3e+45: tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / (i + (y * (c + (y * b)))) elif y <= 3.2e+102: tmp = t_2 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(t / Float64(i + Float64(y * Float64(c + Float64(y * Float64(Float64(y * Float64(y + a)) + b)))))) t_2 = Float64(t_1 + Float64(Float64(z / a) + Float64(Float64(y * x) / a))) t_3 = Float64(Float64(z / y) + Float64(x - Float64(a / Float64(y / x)))) tmp = 0.0 if (y <= -1.62e+62) tmp = t_3; elseif (y <= -1.1e+34) tmp = Float64(t_1 + Float64(y / Float64(a / x))); elseif (y <= -5.4e+21) tmp = t_2; elseif (y <= 3e+45) tmp = Float64(Float64(t + Float64(y * Float64(230661.510616 + Float64(y * Float64(27464.7644705 + Float64(y * z)))))) / Float64(i + Float64(y * Float64(c + Float64(y * b))))); elseif (y <= 3.2e+102) 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 = t / (i + (y * (c + (y * ((y * (y + a)) + b))))); t_2 = t_1 + ((z / a) + ((y * x) / a)); t_3 = (z / y) + (x - (a / (y / x))); tmp = 0.0; if (y <= -1.62e+62) tmp = t_3; elseif (y <= -1.1e+34) tmp = t_1 + (y / (a / x)); elseif (y <= -5.4e+21) tmp = t_2; elseif (y <= 3e+45) tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / (i + (y * (c + (y * b)))); elseif (y <= 3.2e+102) 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[(t / N[(i + N[(y * N[(c + N[(y * N[(N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t$95$1 + N[(N[(z / a), $MachinePrecision] + N[(N[(y * x), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(z / y), $MachinePrecision] + N[(x - N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.62e+62], t$95$3, If[LessEqual[y, -1.1e+34], N[(t$95$1 + N[(y / N[(a / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -5.4e+21], t$95$2, If[LessEqual[y, 3e+45], N[(N[(t + N[(y * N[(230661.510616 + N[(y * N[(27464.7644705 + N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(i + N[(y * N[(c + N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.2e+102], t$95$2, t$95$3]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{t}{i + y \cdot \left(c + y \cdot \left(y \cdot \left(y + a\right) + b\right)\right)}\\
t_2 := t_1 + \left(\frac{z}{a} + \frac{y \cdot x}{a}\right)\\
t_3 := \frac{z}{y} + \left(x - \frac{a}{\frac{y}{x}}\right)\\
\mathbf{if}\;y \leq -1.62 \cdot 10^{+62}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;y \leq -1.1 \cdot 10^{+34}:\\
\;\;\;\;t_1 + \frac{y}{\frac{a}{x}}\\
\mathbf{elif}\;y \leq -5.4 \cdot 10^{+21}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq 3 \cdot 10^{+45}:\\
\;\;\;\;\frac{t + y \cdot \left(230661.510616 + y \cdot \left(27464.7644705 + y \cdot z\right)\right)}{i + y \cdot \left(c + y \cdot b\right)}\\
\mathbf{elif}\;y \leq 3.2 \cdot 10^{+102}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if y < -1.6199999999999999e62 or 3.1999999999999999e102 < y Initial program 0.4%
Taylor expanded in y around inf 78.5%
associate--l+78.5%
associate-/l*82.7%
Simplified82.7%
if -1.6199999999999999e62 < y < -1.1000000000000001e34Initial program 28.2%
Taylor expanded in t around inf 28.2%
Taylor expanded in a around inf 23.6%
*-commutative23.6%
fma-def23.6%
*-commutative23.6%
unpow223.6%
Simplified23.6%
Taylor expanded in y around inf 17.2%
associate-/l*52.3%
Simplified52.3%
if -1.1000000000000001e34 < y < -5.4e21 or 3.00000000000000011e45 < y < 3.1999999999999999e102Initial program 12.0%
Taylor expanded in t around inf 12.0%
Taylor expanded in a around inf 16.4%
*-commutative16.4%
fma-def16.4%
*-commutative16.4%
unpow216.4%
Simplified16.4%
Taylor expanded in y around inf 53.9%
if -5.4e21 < y < 3.00000000000000011e45Initial program 95.2%
Taylor expanded in x around 0 92.5%
Taylor expanded in y around 0 87.8%
Final simplification82.1%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ (/ z y) (- x (/ a (/ y x)))))
(t_2 (+ i (* y (+ c (* y (+ (* y (+ y a)) b)))))))
(if (<= y -1.65e+47)
t_1
(if (<= y 1.05e+46)
(/ (+ t (* y (+ 230661.510616 (* z (* y y))))) t_2)
(if (<= y 2.1e+103) (+ (/ t t_2) (+ (/ z a) (/ (* y x) a))) 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 t_2 = i + (y * (c + (y * ((y * (y + a)) + b))));
double tmp;
if (y <= -1.65e+47) {
tmp = t_1;
} else if (y <= 1.05e+46) {
tmp = (t + (y * (230661.510616 + (z * (y * y))))) / t_2;
} else if (y <= 2.1e+103) {
tmp = (t / t_2) + ((z / a) + ((y * x) / a));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (z / y) + (x - (a / (y / x)))
t_2 = i + (y * (c + (y * ((y * (y + a)) + b))))
if (y <= (-1.65d+47)) then
tmp = t_1
else if (y <= 1.05d+46) then
tmp = (t + (y * (230661.510616d0 + (z * (y * y))))) / t_2
else if (y <= 2.1d+103) then
tmp = (t / t_2) + ((z / a) + ((y * x) / a))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = (z / y) + (x - (a / (y / x)));
double t_2 = i + (y * (c + (y * ((y * (y + a)) + b))));
double tmp;
if (y <= -1.65e+47) {
tmp = t_1;
} else if (y <= 1.05e+46) {
tmp = (t + (y * (230661.510616 + (z * (y * y))))) / t_2;
} else if (y <= 2.1e+103) {
tmp = (t / t_2) + ((z / a) + ((y * x) / a));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = (z / y) + (x - (a / (y / x))) t_2 = i + (y * (c + (y * ((y * (y + a)) + b)))) tmp = 0 if y <= -1.65e+47: tmp = t_1 elif y <= 1.05e+46: tmp = (t + (y * (230661.510616 + (z * (y * y))))) / t_2 elif y <= 2.1e+103: tmp = (t / t_2) + ((z / a) + ((y * x) / a)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(Float64(z / y) + Float64(x - Float64(a / Float64(y / x)))) t_2 = Float64(i + Float64(y * Float64(c + Float64(y * Float64(Float64(y * Float64(y + a)) + b))))) tmp = 0.0 if (y <= -1.65e+47) tmp = t_1; elseif (y <= 1.05e+46) tmp = Float64(Float64(t + Float64(y * Float64(230661.510616 + Float64(z * Float64(y * y))))) / t_2); elseif (y <= 2.1e+103) tmp = Float64(Float64(t / t_2) + Float64(Float64(z / a) + Float64(Float64(y * x) / a))); 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))); t_2 = i + (y * (c + (y * ((y * (y + a)) + b)))); tmp = 0.0; if (y <= -1.65e+47) tmp = t_1; elseif (y <= 1.05e+46) tmp = (t + (y * (230661.510616 + (z * (y * y))))) / t_2; elseif (y <= 2.1e+103) tmp = (t / t_2) + ((z / a) + ((y * x) / a)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(z / y), $MachinePrecision] + N[(x - N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(i + N[(y * N[(c + N[(y * N[(N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.65e+47], t$95$1, If[LessEqual[y, 1.05e+46], N[(N[(t + N[(y * N[(230661.510616 + N[(z * N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t$95$2), $MachinePrecision], If[LessEqual[y, 2.1e+103], N[(N[(t / t$95$2), $MachinePrecision] + N[(N[(z / a), $MachinePrecision] + N[(N[(y * x), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{z}{y} + \left(x - \frac{a}{\frac{y}{x}}\right)\\
t_2 := i + y \cdot \left(c + y \cdot \left(y \cdot \left(y + a\right) + b\right)\right)\\
\mathbf{if}\;y \leq -1.65 \cdot 10^{+47}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 1.05 \cdot 10^{+46}:\\
\;\;\;\;\frac{t + y \cdot \left(230661.510616 + z \cdot \left(y \cdot y\right)\right)}{t_2}\\
\mathbf{elif}\;y \leq 2.1 \cdot 10^{+103}:\\
\;\;\;\;\frac{t}{t_2} + \left(\frac{z}{a} + \frac{y \cdot x}{a}\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if y < -1.65e47 or 2.1000000000000002e103 < y Initial program 0.5%
Taylor expanded in y around inf 75.5%
associate--l+75.5%
associate-/l*79.5%
Simplified79.5%
if -1.65e47 < y < 1.05e46Initial program 92.7%
Taylor expanded in z around inf 88.2%
*-commutative88.2%
unpow288.2%
Simplified88.2%
if 1.05e46 < y < 2.1000000000000002e103Initial program 8.0%
Taylor expanded in t around inf 8.0%
Taylor expanded in a around inf 13.1%
*-commutative13.1%
fma-def13.1%
*-commutative13.1%
unpow213.1%
Simplified13.1%
Taylor expanded in y around inf 51.2%
Final simplification82.3%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ i (* y (+ c (* y (+ (* y (+ y a)) b))))))
(t_2 (+ (/ z y) (- x (/ a (/ y x))))))
(if (<= y -4.4e+49)
t_2
(if (<= y 4.5e+42)
(/ (+ t (* y (+ 230661.510616 (* y (+ 27464.7644705 (* y z)))))) t_1)
(if (<= y 2.6e+102) (+ (/ t t_1) (+ (/ z a) (/ (* y x) a))) t_2)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = i + (y * (c + (y * ((y * (y + a)) + b))));
double t_2 = (z / y) + (x - (a / (y / x)));
double tmp;
if (y <= -4.4e+49) {
tmp = t_2;
} else if (y <= 4.5e+42) {
tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / t_1;
} else if (y <= 2.6e+102) {
tmp = (t / t_1) + ((z / a) + ((y * x) / a));
} 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 = i + (y * (c + (y * ((y * (y + a)) + b))))
t_2 = (z / y) + (x - (a / (y / x)))
if (y <= (-4.4d+49)) then
tmp = t_2
else if (y <= 4.5d+42) then
tmp = (t + (y * (230661.510616d0 + (y * (27464.7644705d0 + (y * z)))))) / t_1
else if (y <= 2.6d+102) then
tmp = (t / t_1) + ((z / a) + ((y * x) / a))
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 = i + (y * (c + (y * ((y * (y + a)) + b))));
double t_2 = (z / y) + (x - (a / (y / x)));
double tmp;
if (y <= -4.4e+49) {
tmp = t_2;
} else if (y <= 4.5e+42) {
tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / t_1;
} else if (y <= 2.6e+102) {
tmp = (t / t_1) + ((z / a) + ((y * x) / a));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = i + (y * (c + (y * ((y * (y + a)) + b)))) t_2 = (z / y) + (x - (a / (y / x))) tmp = 0 if y <= -4.4e+49: tmp = t_2 elif y <= 4.5e+42: tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / t_1 elif y <= 2.6e+102: tmp = (t / t_1) + ((z / a) + ((y * x) / a)) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(i + Float64(y * Float64(c + Float64(y * Float64(Float64(y * Float64(y + a)) + b))))) t_2 = Float64(Float64(z / y) + Float64(x - Float64(a / Float64(y / x)))) tmp = 0.0 if (y <= -4.4e+49) tmp = t_2; elseif (y <= 4.5e+42) tmp = Float64(Float64(t + Float64(y * Float64(230661.510616 + Float64(y * Float64(27464.7644705 + Float64(y * z)))))) / t_1); elseif (y <= 2.6e+102) tmp = Float64(Float64(t / t_1) + Float64(Float64(z / a) + Float64(Float64(y * x) / a))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = i + (y * (c + (y * ((y * (y + a)) + b)))); t_2 = (z / y) + (x - (a / (y / x))); tmp = 0.0; if (y <= -4.4e+49) tmp = t_2; elseif (y <= 4.5e+42) tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / t_1; elseif (y <= 2.6e+102) tmp = (t / t_1) + ((z / a) + ((y * x) / a)); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(i + N[(y * N[(c + N[(y * N[(N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(z / y), $MachinePrecision] + N[(x - N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -4.4e+49], t$95$2, If[LessEqual[y, 4.5e+42], N[(N[(t + N[(y * N[(230661.510616 + N[(y * N[(27464.7644705 + N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision], If[LessEqual[y, 2.6e+102], N[(N[(t / t$95$1), $MachinePrecision] + N[(N[(z / a), $MachinePrecision] + N[(N[(y * x), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i + y \cdot \left(c + y \cdot \left(y \cdot \left(y + a\right) + b\right)\right)\\
t_2 := \frac{z}{y} + \left(x - \frac{a}{\frac{y}{x}}\right)\\
\mathbf{if}\;y \leq -4.4 \cdot 10^{+49}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq 4.5 \cdot 10^{+42}:\\
\;\;\;\;\frac{t + y \cdot \left(230661.510616 + y \cdot \left(27464.7644705 + y \cdot z\right)\right)}{t_1}\\
\mathbf{elif}\;y \leq 2.6 \cdot 10^{+102}:\\
\;\;\;\;\frac{t}{t_1} + \left(\frac{z}{a} + \frac{y \cdot x}{a}\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if y < -4.4000000000000001e49 or 2.60000000000000006e102 < y Initial program 0.5%
Taylor expanded in y around inf 75.5%
associate--l+75.5%
associate-/l*79.5%
Simplified79.5%
if -4.4000000000000001e49 < y < 4.50000000000000012e42Initial program 92.7%
Taylor expanded in x around 0 89.5%
if 4.50000000000000012e42 < y < 2.60000000000000006e102Initial program 8.0%
Taylor expanded in t around inf 8.0%
Taylor expanded in a around inf 13.1%
*-commutative13.1%
fma-def13.1%
*-commutative13.1%
unpow213.1%
Simplified13.1%
Taylor expanded in y around inf 51.2%
Final simplification82.9%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (/ t (+ i (* y (+ c (* y (+ (* y (+ y a)) b)))))))
(t_2 (+ (/ z y) (- x (/ a (/ y x))))))
(if (<= y -9.4e+61)
t_2
(if (<= y -7.5e+31)
(+ t_1 (/ y (/ a x)))
(if (<= y -5.2e+20)
(+ t_1 (/ z a))
(if (<= y 3.2e+51)
(/
(+ t (* y (+ 230661.510616 (* y (+ 27464.7644705 (* y z))))))
(+ i (* y (+ c (* y b)))))
t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = t / (i + (y * (c + (y * ((y * (y + a)) + b)))));
double t_2 = (z / y) + (x - (a / (y / x)));
double tmp;
if (y <= -9.4e+61) {
tmp = t_2;
} else if (y <= -7.5e+31) {
tmp = t_1 + (y / (a / x));
} else if (y <= -5.2e+20) {
tmp = t_1 + (z / a);
} else if (y <= 3.2e+51) {
tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / (i + (y * (c + (y * b))));
} 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 = t / (i + (y * (c + (y * ((y * (y + a)) + b)))))
t_2 = (z / y) + (x - (a / (y / x)))
if (y <= (-9.4d+61)) then
tmp = t_2
else if (y <= (-7.5d+31)) then
tmp = t_1 + (y / (a / x))
else if (y <= (-5.2d+20)) then
tmp = t_1 + (z / a)
else if (y <= 3.2d+51) then
tmp = (t + (y * (230661.510616d0 + (y * (27464.7644705d0 + (y * z)))))) / (i + (y * (c + (y * b))))
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 = t / (i + (y * (c + (y * ((y * (y + a)) + b)))));
double t_2 = (z / y) + (x - (a / (y / x)));
double tmp;
if (y <= -9.4e+61) {
tmp = t_2;
} else if (y <= -7.5e+31) {
tmp = t_1 + (y / (a / x));
} else if (y <= -5.2e+20) {
tmp = t_1 + (z / a);
} else if (y <= 3.2e+51) {
tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / (i + (y * (c + (y * b))));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = t / (i + (y * (c + (y * ((y * (y + a)) + b))))) t_2 = (z / y) + (x - (a / (y / x))) tmp = 0 if y <= -9.4e+61: tmp = t_2 elif y <= -7.5e+31: tmp = t_1 + (y / (a / x)) elif y <= -5.2e+20: tmp = t_1 + (z / a) elif y <= 3.2e+51: tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / (i + (y * (c + (y * b)))) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(t / Float64(i + Float64(y * Float64(c + Float64(y * Float64(Float64(y * Float64(y + a)) + b)))))) t_2 = Float64(Float64(z / y) + Float64(x - Float64(a / Float64(y / x)))) tmp = 0.0 if (y <= -9.4e+61) tmp = t_2; elseif (y <= -7.5e+31) tmp = Float64(t_1 + Float64(y / Float64(a / x))); elseif (y <= -5.2e+20) tmp = Float64(t_1 + Float64(z / a)); elseif (y <= 3.2e+51) tmp = Float64(Float64(t + Float64(y * Float64(230661.510616 + Float64(y * Float64(27464.7644705 + Float64(y * z)))))) / Float64(i + Float64(y * Float64(c + Float64(y * b))))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = t / (i + (y * (c + (y * ((y * (y + a)) + b))))); t_2 = (z / y) + (x - (a / (y / x))); tmp = 0.0; if (y <= -9.4e+61) tmp = t_2; elseif (y <= -7.5e+31) tmp = t_1 + (y / (a / x)); elseif (y <= -5.2e+20) tmp = t_1 + (z / a); elseif (y <= 3.2e+51) tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / (i + (y * (c + (y * b)))); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(t / N[(i + N[(y * N[(c + N[(y * N[(N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(z / y), $MachinePrecision] + N[(x - N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -9.4e+61], t$95$2, If[LessEqual[y, -7.5e+31], N[(t$95$1 + N[(y / N[(a / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -5.2e+20], N[(t$95$1 + N[(z / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.2e+51], N[(N[(t + N[(y * N[(230661.510616 + N[(y * N[(27464.7644705 + N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(i + N[(y * N[(c + N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{t}{i + y \cdot \left(c + y \cdot \left(y \cdot \left(y + a\right) + b\right)\right)}\\
t_2 := \frac{z}{y} + \left(x - \frac{a}{\frac{y}{x}}\right)\\
\mathbf{if}\;y \leq -9.4 \cdot 10^{+61}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq -7.5 \cdot 10^{+31}:\\
\;\;\;\;t_1 + \frac{y}{\frac{a}{x}}\\
\mathbf{elif}\;y \leq -5.2 \cdot 10^{+20}:\\
\;\;\;\;t_1 + \frac{z}{a}\\
\mathbf{elif}\;y \leq 3.2 \cdot 10^{+51}:\\
\;\;\;\;\frac{t + y \cdot \left(230661.510616 + y \cdot \left(27464.7644705 + y \cdot z\right)\right)}{i + y \cdot \left(c + y \cdot b\right)}\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if y < -9.3999999999999997e61 or 3.2000000000000002e51 < y Initial program 0.7%
Taylor expanded in y around inf 70.6%
associate--l+70.6%
associate-/l*74.3%
Simplified74.3%
if -9.3999999999999997e61 < y < -7.5e31Initial program 28.2%
Taylor expanded in t around inf 28.2%
Taylor expanded in a around inf 23.6%
*-commutative23.6%
fma-def23.6%
*-commutative23.6%
unpow223.6%
Simplified23.6%
Taylor expanded in y around inf 17.2%
associate-/l*52.3%
Simplified52.3%
if -7.5e31 < y < -5.2e20Initial program 34.6%
Taylor expanded in t around inf 34.6%
Taylor expanded in a around inf 35.3%
*-commutative35.3%
fma-def35.3%
*-commutative35.3%
unpow235.3%
Simplified35.3%
Taylor expanded in z around inf 68.6%
if -5.2e20 < y < 3.2000000000000002e51Initial program 94.5%
Taylor expanded in x around 0 91.2%
Taylor expanded in y around 0 86.5%
Final simplification79.8%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ i (* y (+ c (* y (+ (* y (+ y a)) b))))))
(t_2 (/ t t_1))
(t_3 (+ (/ z y) (- x (/ a (/ y x))))))
(if (<= y -9.9e+61)
t_3
(if (<= y -4.8e+33)
(+ t_2 (/ y (/ a x)))
(if (<= y -3.7e+17)
(+ t_2 (/ z a))
(if (<= y 1.9e-15) (/ (+ t (* y 230661.510616)) t_1) t_3))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = i + (y * (c + (y * ((y * (y + a)) + b))));
double t_2 = t / t_1;
double t_3 = (z / y) + (x - (a / (y / x)));
double tmp;
if (y <= -9.9e+61) {
tmp = t_3;
} else if (y <= -4.8e+33) {
tmp = t_2 + (y / (a / x));
} else if (y <= -3.7e+17) {
tmp = t_2 + (z / a);
} else if (y <= 1.9e-15) {
tmp = (t + (y * 230661.510616)) / t_1;
} 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 = i + (y * (c + (y * ((y * (y + a)) + b))))
t_2 = t / t_1
t_3 = (z / y) + (x - (a / (y / x)))
if (y <= (-9.9d+61)) then
tmp = t_3
else if (y <= (-4.8d+33)) then
tmp = t_2 + (y / (a / x))
else if (y <= (-3.7d+17)) then
tmp = t_2 + (z / a)
else if (y <= 1.9d-15) then
tmp = (t + (y * 230661.510616d0)) / t_1
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 = i + (y * (c + (y * ((y * (y + a)) + b))));
double t_2 = t / t_1;
double t_3 = (z / y) + (x - (a / (y / x)));
double tmp;
if (y <= -9.9e+61) {
tmp = t_3;
} else if (y <= -4.8e+33) {
tmp = t_2 + (y / (a / x));
} else if (y <= -3.7e+17) {
tmp = t_2 + (z / a);
} else if (y <= 1.9e-15) {
tmp = (t + (y * 230661.510616)) / t_1;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = i + (y * (c + (y * ((y * (y + a)) + b)))) t_2 = t / t_1 t_3 = (z / y) + (x - (a / (y / x))) tmp = 0 if y <= -9.9e+61: tmp = t_3 elif y <= -4.8e+33: tmp = t_2 + (y / (a / x)) elif y <= -3.7e+17: tmp = t_2 + (z / a) elif y <= 1.9e-15: tmp = (t + (y * 230661.510616)) / t_1 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(i + Float64(y * Float64(c + Float64(y * Float64(Float64(y * Float64(y + a)) + b))))) t_2 = Float64(t / t_1) t_3 = Float64(Float64(z / y) + Float64(x - Float64(a / Float64(y / x)))) tmp = 0.0 if (y <= -9.9e+61) tmp = t_3; elseif (y <= -4.8e+33) tmp = Float64(t_2 + Float64(y / Float64(a / x))); elseif (y <= -3.7e+17) tmp = Float64(t_2 + Float64(z / a)); elseif (y <= 1.9e-15) tmp = Float64(Float64(t + Float64(y * 230661.510616)) / t_1); else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = i + (y * (c + (y * ((y * (y + a)) + b)))); t_2 = t / t_1; t_3 = (z / y) + (x - (a / (y / x))); tmp = 0.0; if (y <= -9.9e+61) tmp = t_3; elseif (y <= -4.8e+33) tmp = t_2 + (y / (a / x)); elseif (y <= -3.7e+17) tmp = t_2 + (z / a); elseif (y <= 1.9e-15) tmp = (t + (y * 230661.510616)) / t_1; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(i + N[(y * N[(c + N[(y * N[(N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t / t$95$1), $MachinePrecision]}, Block[{t$95$3 = N[(N[(z / y), $MachinePrecision] + N[(x - N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -9.9e+61], t$95$3, If[LessEqual[y, -4.8e+33], N[(t$95$2 + N[(y / N[(a / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -3.7e+17], N[(t$95$2 + N[(z / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.9e-15], N[(N[(t + N[(y * 230661.510616), $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision], t$95$3]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i + y \cdot \left(c + y \cdot \left(y \cdot \left(y + a\right) + b\right)\right)\\
t_2 := \frac{t}{t_1}\\
t_3 := \frac{z}{y} + \left(x - \frac{a}{\frac{y}{x}}\right)\\
\mathbf{if}\;y \leq -9.9 \cdot 10^{+61}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;y \leq -4.8 \cdot 10^{+33}:\\
\;\;\;\;t_2 + \frac{y}{\frac{a}{x}}\\
\mathbf{elif}\;y \leq -3.7 \cdot 10^{+17}:\\
\;\;\;\;t_2 + \frac{z}{a}\\
\mathbf{elif}\;y \leq 1.9 \cdot 10^{-15}:\\
\;\;\;\;\frac{t + y \cdot 230661.510616}{t_1}\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if y < -9.9000000000000004e61 or 1.9000000000000001e-15 < y Initial program 6.2%
Taylor expanded in y around inf 64.7%
associate--l+64.7%
associate-/l*67.9%
Simplified67.9%
if -9.9000000000000004e61 < y < -4.8e33Initial program 28.2%
Taylor expanded in t around inf 28.2%
Taylor expanded in a around inf 23.6%
*-commutative23.6%
fma-def23.6%
*-commutative23.6%
unpow223.6%
Simplified23.6%
Taylor expanded in y around inf 17.2%
associate-/l*52.3%
Simplified52.3%
if -4.8e33 < y < -3.7e17Initial program 34.6%
Taylor expanded in t around inf 34.6%
Taylor expanded in a around inf 35.3%
*-commutative35.3%
fma-def35.3%
*-commutative35.3%
unpow235.3%
Simplified35.3%
Taylor expanded in z around inf 68.6%
if -3.7e17 < y < 1.9000000000000001e-15Initial program 99.7%
Taylor expanded in y around 0 93.7%
*-commutative93.7%
Simplified93.7%
Final simplification79.2%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= y -9.2e+61) (not (<= y 1.9e-15))) (+ (/ z y) (- x (/ a (/ y x)))) (/ (+ t (* y 230661.510616)) (+ i (* y (+ c (* y (+ (* y (+ y a)) b))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -9.2e+61) || !(y <= 1.9e-15)) {
tmp = (z / y) + (x - (a / (y / x)));
} else {
tmp = (t + (y * 230661.510616)) / (i + (y * (c + (y * ((y * (y + a)) + 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 <= (-9.2d+61)) .or. (.not. (y <= 1.9d-15))) then
tmp = (z / y) + (x - (a / (y / x)))
else
tmp = (t + (y * 230661.510616d0)) / (i + (y * (c + (y * ((y * (y + a)) + 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 <= -9.2e+61) || !(y <= 1.9e-15)) {
tmp = (z / y) + (x - (a / (y / x)));
} else {
tmp = (t + (y * 230661.510616)) / (i + (y * (c + (y * ((y * (y + a)) + b)))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (y <= -9.2e+61) or not (y <= 1.9e-15): tmp = (z / y) + (x - (a / (y / x))) else: tmp = (t + (y * 230661.510616)) / (i + (y * (c + (y * ((y * (y + a)) + b))))) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((y <= -9.2e+61) || !(y <= 1.9e-15)) tmp = Float64(Float64(z / y) + Float64(x - Float64(a / Float64(y / x)))); else tmp = Float64(Float64(t + Float64(y * 230661.510616)) / Float64(i + Float64(y * Float64(c + Float64(y * Float64(Float64(y * Float64(y + a)) + b)))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((y <= -9.2e+61) || ~((y <= 1.9e-15))) tmp = (z / y) + (x - (a / (y / x))); else tmp = (t + (y * 230661.510616)) / (i + (y * (c + (y * ((y * (y + a)) + b))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[y, -9.2e+61], N[Not[LessEqual[y, 1.9e-15]], $MachinePrecision]], N[(N[(z / y), $MachinePrecision] + N[(x - N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(t + N[(y * 230661.510616), $MachinePrecision]), $MachinePrecision] / N[(i + N[(y * N[(c + N[(y * N[(N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -9.2 \cdot 10^{+61} \lor \neg \left(y \leq 1.9 \cdot 10^{-15}\right):\\
\;\;\;\;\frac{z}{y} + \left(x - \frac{a}{\frac{y}{x}}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{t + y \cdot 230661.510616}{i + y \cdot \left(c + y \cdot \left(y \cdot \left(y + a\right) + b\right)\right)}\\
\end{array}
\end{array}
if y < -9.1999999999999998e61 or 1.9000000000000001e-15 < y Initial program 6.2%
Taylor expanded in y around inf 64.7%
associate--l+64.7%
associate-/l*67.9%
Simplified67.9%
if -9.1999999999999998e61 < y < 1.9000000000000001e-15Initial program 93.7%
Taylor expanded in y around 0 86.8%
*-commutative86.8%
Simplified86.8%
Final simplification77.4%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ t (* y 230661.510616))) (t_2 (+ (/ z y) (- x (/ a (/ y x))))))
(if (<= y -9.2e+61)
t_2
(if (<= y -8.8e-82)
(/ t_1 (* y c))
(if (<= y 9e-123)
(/ t_1 i)
(if (<= y 1.9e-76)
(+ (/ 230661.510616 c) (/ t (* y c)))
(if (<= y 1.32e-15) (/ t i) t_2)))))))
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);
double t_2 = (z / y) + (x - (a / (y / x)));
double tmp;
if (y <= -9.2e+61) {
tmp = t_2;
} else if (y <= -8.8e-82) {
tmp = t_1 / (y * c);
} else if (y <= 9e-123) {
tmp = t_1 / i;
} else if (y <= 1.9e-76) {
tmp = (230661.510616 / c) + (t / (y * c));
} else if (y <= 1.32e-15) {
tmp = t / 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 = t + (y * 230661.510616d0)
t_2 = (z / y) + (x - (a / (y / x)))
if (y <= (-9.2d+61)) then
tmp = t_2
else if (y <= (-8.8d-82)) then
tmp = t_1 / (y * c)
else if (y <= 9d-123) then
tmp = t_1 / i
else if (y <= 1.9d-76) then
tmp = (230661.510616d0 / c) + (t / (y * c))
else if (y <= 1.32d-15) then
tmp = t / 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 = t + (y * 230661.510616);
double t_2 = (z / y) + (x - (a / (y / x)));
double tmp;
if (y <= -9.2e+61) {
tmp = t_2;
} else if (y <= -8.8e-82) {
tmp = t_1 / (y * c);
} else if (y <= 9e-123) {
tmp = t_1 / i;
} else if (y <= 1.9e-76) {
tmp = (230661.510616 / c) + (t / (y * c));
} else if (y <= 1.32e-15) {
tmp = t / i;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = t + (y * 230661.510616) t_2 = (z / y) + (x - (a / (y / x))) tmp = 0 if y <= -9.2e+61: tmp = t_2 elif y <= -8.8e-82: tmp = t_1 / (y * c) elif y <= 9e-123: tmp = t_1 / i elif y <= 1.9e-76: tmp = (230661.510616 / c) + (t / (y * c)) elif y <= 1.32e-15: tmp = t / i else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(t + Float64(y * 230661.510616)) t_2 = Float64(Float64(z / y) + Float64(x - Float64(a / Float64(y / x)))) tmp = 0.0 if (y <= -9.2e+61) tmp = t_2; elseif (y <= -8.8e-82) tmp = Float64(t_1 / Float64(y * c)); elseif (y <= 9e-123) tmp = Float64(t_1 / i); elseif (y <= 1.9e-76) tmp = Float64(Float64(230661.510616 / c) + Float64(t / Float64(y * c))); elseif (y <= 1.32e-15) tmp = Float64(t / i); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = t + (y * 230661.510616); t_2 = (z / y) + (x - (a / (y / x))); tmp = 0.0; if (y <= -9.2e+61) tmp = t_2; elseif (y <= -8.8e-82) tmp = t_1 / (y * c); elseif (y <= 9e-123) tmp = t_1 / i; elseif (y <= 1.9e-76) tmp = (230661.510616 / c) + (t / (y * c)); elseif (y <= 1.32e-15) tmp = t / i; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(t + N[(y * 230661.510616), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(z / y), $MachinePrecision] + N[(x - N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -9.2e+61], t$95$2, If[LessEqual[y, -8.8e-82], N[(t$95$1 / N[(y * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 9e-123], N[(t$95$1 / i), $MachinePrecision], If[LessEqual[y, 1.9e-76], N[(N[(230661.510616 / c), $MachinePrecision] + N[(t / N[(y * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.32e-15], N[(t / i), $MachinePrecision], t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t + y \cdot 230661.510616\\
t_2 := \frac{z}{y} + \left(x - \frac{a}{\frac{y}{x}}\right)\\
\mathbf{if}\;y \leq -9.2 \cdot 10^{+61}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq -8.8 \cdot 10^{-82}:\\
\;\;\;\;\frac{t_1}{y \cdot c}\\
\mathbf{elif}\;y \leq 9 \cdot 10^{-123}:\\
\;\;\;\;\frac{t_1}{i}\\
\mathbf{elif}\;y \leq 1.9 \cdot 10^{-76}:\\
\;\;\;\;\frac{230661.510616}{c} + \frac{t}{y \cdot c}\\
\mathbf{elif}\;y \leq 1.32 \cdot 10^{-15}:\\
\;\;\;\;\frac{t}{i}\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if y < -9.1999999999999998e61 or 1.31999999999999995e-15 < y Initial program 6.2%
Taylor expanded in y around inf 64.7%
associate--l+64.7%
associate-/l*67.9%
Simplified67.9%
if -9.1999999999999998e61 < y < -8.79999999999999943e-82Initial program 69.9%
Taylor expanded in c around inf 28.9%
Taylor expanded in y around 0 25.3%
*-commutative25.3%
Simplified25.3%
Taylor expanded in y around 0 26.0%
if -8.79999999999999943e-82 < y < 8.99999999999999986e-123Initial program 99.8%
Taylor expanded in y around 0 52.0%
Taylor expanded in i around inf 79.5%
if 8.99999999999999986e-123 < y < 1.9000000000000001e-76Initial program 99.5%
Taylor expanded in c around inf 80.4%
Taylor expanded in y around 0 80.4%
*-commutative80.4%
Simplified80.4%
Taylor expanded in y around 0 80.3%
associate-*r/80.4%
metadata-eval80.4%
*-commutative80.4%
Simplified80.4%
if 1.9000000000000001e-76 < y < 1.31999999999999995e-15Initial program 99.6%
Taylor expanded in y around 0 28.5%
Final simplification66.7%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ (/ z y) (- x (/ a (/ y x))))))
(if (<= y -9.2e+61)
t_1
(if (<= y -5.1e-81)
(/ (+ t (* y 230661.510616)) (* y c))
(if (<= y 9.5e-122)
(/ (+ t (* y (+ 230661.510616 (* y (+ 27464.7644705 (* y z)))))) i)
(if (<= y 5.4e-73)
(+ (/ 230661.510616 c) (/ t (* y c)))
(if (<= y 1.8e-15) (/ t i) 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 <= -9.2e+61) {
tmp = t_1;
} else if (y <= -5.1e-81) {
tmp = (t + (y * 230661.510616)) / (y * c);
} else if (y <= 9.5e-122) {
tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / i;
} else if (y <= 5.4e-73) {
tmp = (230661.510616 / c) + (t / (y * c));
} else if (y <= 1.8e-15) {
tmp = t / i;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8) :: t_1
real(8) :: tmp
t_1 = (z / y) + (x - (a / (y / x)))
if (y <= (-9.2d+61)) then
tmp = t_1
else if (y <= (-5.1d-81)) then
tmp = (t + (y * 230661.510616d0)) / (y * c)
else if (y <= 9.5d-122) then
tmp = (t + (y * (230661.510616d0 + (y * (27464.7644705d0 + (y * z)))))) / i
else if (y <= 5.4d-73) then
tmp = (230661.510616d0 / c) + (t / (y * c))
else if (y <= 1.8d-15) then
tmp = t / i
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = (z / y) + (x - (a / (y / x)));
double tmp;
if (y <= -9.2e+61) {
tmp = t_1;
} else if (y <= -5.1e-81) {
tmp = (t + (y * 230661.510616)) / (y * c);
} else if (y <= 9.5e-122) {
tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / i;
} else if (y <= 5.4e-73) {
tmp = (230661.510616 / c) + (t / (y * c));
} else if (y <= 1.8e-15) {
tmp = t / i;
} 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 <= -9.2e+61: tmp = t_1 elif y <= -5.1e-81: tmp = (t + (y * 230661.510616)) / (y * c) elif y <= 9.5e-122: tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / i elif y <= 5.4e-73: tmp = (230661.510616 / c) + (t / (y * c)) elif y <= 1.8e-15: tmp = t / i else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(Float64(z / y) + Float64(x - Float64(a / Float64(y / x)))) tmp = 0.0 if (y <= -9.2e+61) tmp = t_1; elseif (y <= -5.1e-81) tmp = Float64(Float64(t + Float64(y * 230661.510616)) / Float64(y * c)); elseif (y <= 9.5e-122) tmp = Float64(Float64(t + Float64(y * Float64(230661.510616 + Float64(y * Float64(27464.7644705 + Float64(y * z)))))) / i); elseif (y <= 5.4e-73) tmp = Float64(Float64(230661.510616 / c) + Float64(t / Float64(y * c))); elseif (y <= 1.8e-15) tmp = Float64(t / i); 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 <= -9.2e+61) tmp = t_1; elseif (y <= -5.1e-81) tmp = (t + (y * 230661.510616)) / (y * c); elseif (y <= 9.5e-122) tmp = (t + (y * (230661.510616 + (y * (27464.7644705 + (y * z)))))) / i; elseif (y <= 5.4e-73) tmp = (230661.510616 / c) + (t / (y * c)); elseif (y <= 1.8e-15) tmp = t / i; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(z / y), $MachinePrecision] + N[(x - N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -9.2e+61], t$95$1, If[LessEqual[y, -5.1e-81], N[(N[(t + N[(y * 230661.510616), $MachinePrecision]), $MachinePrecision] / N[(y * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 9.5e-122], N[(N[(t + N[(y * N[(230661.510616 + N[(y * N[(27464.7644705 + N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / i), $MachinePrecision], If[LessEqual[y, 5.4e-73], N[(N[(230661.510616 / c), $MachinePrecision] + N[(t / N[(y * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.8e-15], N[(t / i), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{z}{y} + \left(x - \frac{a}{\frac{y}{x}}\right)\\
\mathbf{if}\;y \leq -9.2 \cdot 10^{+61}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq -5.1 \cdot 10^{-81}:\\
\;\;\;\;\frac{t + y \cdot 230661.510616}{y \cdot c}\\
\mathbf{elif}\;y \leq 9.5 \cdot 10^{-122}:\\
\;\;\;\;\frac{t + y \cdot \left(230661.510616 + y \cdot \left(27464.7644705 + y \cdot z\right)\right)}{i}\\
\mathbf{elif}\;y \leq 5.4 \cdot 10^{-73}:\\
\;\;\;\;\frac{230661.510616}{c} + \frac{t}{y \cdot c}\\
\mathbf{elif}\;y \leq 1.8 \cdot 10^{-15}:\\
\;\;\;\;\frac{t}{i}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if y < -9.1999999999999998e61 or 1.8000000000000001e-15 < y Initial program 6.2%
Taylor expanded in y around inf 64.7%
associate--l+64.7%
associate-/l*67.9%
Simplified67.9%
if -9.1999999999999998e61 < y < -5.10000000000000027e-81Initial program 69.9%
Taylor expanded in c around inf 28.9%
Taylor expanded in y around 0 25.3%
*-commutative25.3%
Simplified25.3%
Taylor expanded in y around 0 26.0%
if -5.10000000000000027e-81 < y < 9.5000000000000002e-122Initial program 99.8%
Taylor expanded in x around 0 99.8%
Taylor expanded in i around inf 79.5%
if 9.5000000000000002e-122 < y < 5.39999999999999989e-73Initial program 99.5%
Taylor expanded in c around inf 80.4%
Taylor expanded in y around 0 80.4%
*-commutative80.4%
Simplified80.4%
Taylor expanded in y around 0 80.3%
associate-*r/80.4%
metadata-eval80.4%
*-commutative80.4%
Simplified80.4%
if 5.39999999999999989e-73 < y < 1.8000000000000001e-15Initial program 99.6%
Taylor expanded in y around 0 28.5%
Final simplification66.7%
(FPCore (x y z t a b c i) :precision binary64 (if (or (<= y -9.2e+61) (not (<= y 1.9e-15))) (+ (/ z y) (- x (/ a (/ y x)))) (/ t (+ i (* y (+ c (* y (+ (* y (+ y a)) b))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if ((y <= -9.2e+61) || !(y <= 1.9e-15)) {
tmp = (z / y) + (x - (a / (y / x)));
} else {
tmp = t / (i + (y * (c + (y * ((y * (y + a)) + 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 <= (-9.2d+61)) .or. (.not. (y <= 1.9d-15))) then
tmp = (z / y) + (x - (a / (y / x)))
else
tmp = t / (i + (y * (c + (y * ((y * (y + a)) + 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 <= -9.2e+61) || !(y <= 1.9e-15)) {
tmp = (z / y) + (x - (a / (y / x)));
} else {
tmp = t / (i + (y * (c + (y * ((y * (y + a)) + b)))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if (y <= -9.2e+61) or not (y <= 1.9e-15): tmp = (z / y) + (x - (a / (y / x))) else: tmp = t / (i + (y * (c + (y * ((y * (y + a)) + b))))) return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if ((y <= -9.2e+61) || !(y <= 1.9e-15)) tmp = Float64(Float64(z / y) + Float64(x - Float64(a / Float64(y / x)))); else tmp = Float64(t / Float64(i + Float64(y * Float64(c + Float64(y * Float64(Float64(y * Float64(y + a)) + b)))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) tmp = 0.0; if ((y <= -9.2e+61) || ~((y <= 1.9e-15))) tmp = (z / y) + (x - (a / (y / x))); else tmp = t / (i + (y * (c + (y * ((y * (y + a)) + b))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[Or[LessEqual[y, -9.2e+61], N[Not[LessEqual[y, 1.9e-15]], $MachinePrecision]], N[(N[(z / y), $MachinePrecision] + N[(x - N[(a / N[(y / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t / N[(i + N[(y * N[(c + N[(y * N[(N[(y * N[(y + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -9.2 \cdot 10^{+61} \lor \neg \left(y \leq 1.9 \cdot 10^{-15}\right):\\
\;\;\;\;\frac{z}{y} + \left(x - \frac{a}{\frac{y}{x}}\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{t}{i + y \cdot \left(c + y \cdot \left(y \cdot \left(y + a\right) + b\right)\right)}\\
\end{array}
\end{array}
if y < -9.1999999999999998e61 or 1.9000000000000001e-15 < y Initial program 6.2%
Taylor expanded in y around inf 64.7%
associate--l+64.7%
associate-/l*67.9%
Simplified67.9%
if -9.1999999999999998e61 < y < 1.9000000000000001e-15Initial program 93.7%
Taylor expanded in t around inf 74.0%
Final simplification71.0%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ t (* y 230661.510616))))
(if (<= y -4.1e+58)
x
(if (<= y -3.4e-80)
(/ t_1 (* y c))
(if (<= y 9.5e-122)
(/ t_1 i)
(if (<= y 7.2e-78)
(+ (/ 230661.510616 c) (/ t (* y c)))
(if (<= y 2.55e+36) (/ t i) 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);
double tmp;
if (y <= -4.1e+58) {
tmp = x;
} else if (y <= -3.4e-80) {
tmp = t_1 / (y * c);
} else if (y <= 9.5e-122) {
tmp = t_1 / i;
} else if (y <= 7.2e-78) {
tmp = (230661.510616 / c) + (t / (y * c));
} else if (y <= 2.55e+36) {
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) :: t_1
real(8) :: tmp
t_1 = t + (y * 230661.510616d0)
if (y <= (-4.1d+58)) then
tmp = x
else if (y <= (-3.4d-80)) then
tmp = t_1 / (y * c)
else if (y <= 9.5d-122) then
tmp = t_1 / i
else if (y <= 7.2d-78) then
tmp = (230661.510616d0 / c) + (t / (y * c))
else if (y <= 2.55d+36) 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 t_1 = t + (y * 230661.510616);
double tmp;
if (y <= -4.1e+58) {
tmp = x;
} else if (y <= -3.4e-80) {
tmp = t_1 / (y * c);
} else if (y <= 9.5e-122) {
tmp = t_1 / i;
} else if (y <= 7.2e-78) {
tmp = (230661.510616 / c) + (t / (y * c));
} else if (y <= 2.55e+36) {
tmp = t / i;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = t + (y * 230661.510616) tmp = 0 if y <= -4.1e+58: tmp = x elif y <= -3.4e-80: tmp = t_1 / (y * c) elif y <= 9.5e-122: tmp = t_1 / i elif y <= 7.2e-78: tmp = (230661.510616 / c) + (t / (y * c)) elif y <= 2.55e+36: tmp = t / i else: tmp = x return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(t + Float64(y * 230661.510616)) tmp = 0.0 if (y <= -4.1e+58) tmp = x; elseif (y <= -3.4e-80) tmp = Float64(t_1 / Float64(y * c)); elseif (y <= 9.5e-122) tmp = Float64(t_1 / i); elseif (y <= 7.2e-78) tmp = Float64(Float64(230661.510616 / c) + Float64(t / Float64(y * c))); elseif (y <= 2.55e+36) tmp = Float64(t / i); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = t + (y * 230661.510616); tmp = 0.0; if (y <= -4.1e+58) tmp = x; elseif (y <= -3.4e-80) tmp = t_1 / (y * c); elseif (y <= 9.5e-122) tmp = t_1 / i; elseif (y <= 7.2e-78) tmp = (230661.510616 / c) + (t / (y * c)); elseif (y <= 2.55e+36) tmp = t / i; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(t + N[(y * 230661.510616), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -4.1e+58], x, If[LessEqual[y, -3.4e-80], N[(t$95$1 / N[(y * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 9.5e-122], N[(t$95$1 / i), $MachinePrecision], If[LessEqual[y, 7.2e-78], N[(N[(230661.510616 / c), $MachinePrecision] + N[(t / N[(y * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.55e+36], N[(t / i), $MachinePrecision], x]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t + y \cdot 230661.510616\\
\mathbf{if}\;y \leq -4.1 \cdot 10^{+58}:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq -3.4 \cdot 10^{-80}:\\
\;\;\;\;\frac{t_1}{y \cdot c}\\
\mathbf{elif}\;y \leq 9.5 \cdot 10^{-122}:\\
\;\;\;\;\frac{t_1}{i}\\
\mathbf{elif}\;y \leq 7.2 \cdot 10^{-78}:\\
\;\;\;\;\frac{230661.510616}{c} + \frac{t}{y \cdot c}\\
\mathbf{elif}\;y \leq 2.55 \cdot 10^{+36}:\\
\;\;\;\;\frac{t}{i}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if y < -4.1e58 or 2.54999999999999986e36 < y Initial program 3.2%
Taylor expanded in y around inf 54.8%
if -4.1e58 < y < -3.4000000000000001e-80Initial program 72.4%
Taylor expanded in c around inf 30.0%
Taylor expanded in y around 0 26.1%
*-commutative26.1%
Simplified26.1%
Taylor expanded in y around 0 27.0%
if -3.4000000000000001e-80 < y < 9.5000000000000002e-122Initial program 99.8%
Taylor expanded in y around 0 52.0%
Taylor expanded in i around inf 79.5%
if 9.5000000000000002e-122 < y < 7.2000000000000005e-78Initial program 99.5%
Taylor expanded in c around inf 80.4%
Taylor expanded in y around 0 80.4%
*-commutative80.4%
Simplified80.4%
Taylor expanded in y around 0 80.3%
associate-*r/80.4%
metadata-eval80.4%
*-commutative80.4%
Simplified80.4%
if 7.2000000000000005e-78 < y < 2.54999999999999986e36Initial program 71.3%
Taylor expanded in y around 0 15.8%
Final simplification58.6%
(FPCore (x y z t a b c i)
:precision binary64
(if (<= y -5.5e-58)
x
(if (<= y 9.5e-122)
(/ (+ t (* y 230661.510616)) i)
(if (<= y 3.05e-74)
(+ (/ 230661.510616 c) (/ t (* y c)))
(if (<= y 2.4e+36) (/ 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-58) {
tmp = x;
} else if (y <= 9.5e-122) {
tmp = (t + (y * 230661.510616)) / i;
} else if (y <= 3.05e-74) {
tmp = (230661.510616 / c) + (t / (y * c));
} else if (y <= 2.4e+36) {
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-58)) then
tmp = x
else if (y <= 9.5d-122) then
tmp = (t + (y * 230661.510616d0)) / i
else if (y <= 3.05d-74) then
tmp = (230661.510616d0 / c) + (t / (y * c))
else if (y <= 2.4d+36) 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-58) {
tmp = x;
} else if (y <= 9.5e-122) {
tmp = (t + (y * 230661.510616)) / i;
} else if (y <= 3.05e-74) {
tmp = (230661.510616 / c) + (t / (y * c));
} else if (y <= 2.4e+36) {
tmp = t / i;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if y <= -5.5e-58: tmp = x elif y <= 9.5e-122: tmp = (t + (y * 230661.510616)) / i elif y <= 3.05e-74: tmp = (230661.510616 / c) + (t / (y * c)) elif y <= 2.4e+36: 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-58) tmp = x; elseif (y <= 9.5e-122) tmp = Float64(Float64(t + Float64(y * 230661.510616)) / i); elseif (y <= 3.05e-74) tmp = Float64(Float64(230661.510616 / c) + Float64(t / Float64(y * c))); elseif (y <= 2.4e+36) 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-58) tmp = x; elseif (y <= 9.5e-122) tmp = (t + (y * 230661.510616)) / i; elseif (y <= 3.05e-74) tmp = (230661.510616 / c) + (t / (y * c)); elseif (y <= 2.4e+36) 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-58], x, If[LessEqual[y, 9.5e-122], N[(N[(t + N[(y * 230661.510616), $MachinePrecision]), $MachinePrecision] / i), $MachinePrecision], If[LessEqual[y, 3.05e-74], N[(N[(230661.510616 / c), $MachinePrecision] + N[(t / N[(y * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.4e+36], N[(t / i), $MachinePrecision], x]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -5.5 \cdot 10^{-58}:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq 9.5 \cdot 10^{-122}:\\
\;\;\;\;\frac{t + y \cdot 230661.510616}{i}\\
\mathbf{elif}\;y \leq 3.05 \cdot 10^{-74}:\\
\;\;\;\;\frac{230661.510616}{c} + \frac{t}{y \cdot c}\\
\mathbf{elif}\;y \leq 2.4 \cdot 10^{+36}:\\
\;\;\;\;\frac{t}{i}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if y < -5.49999999999999996e-58 or 2.39999999999999992e36 < y Initial program 12.2%
Taylor expanded in y around inf 47.8%
if -5.49999999999999996e-58 < y < 9.5000000000000002e-122Initial program 99.8%
Taylor expanded in y around 0 50.3%
Taylor expanded in i around inf 76.3%
if 9.5000000000000002e-122 < y < 3.0499999999999999e-74Initial program 99.5%
Taylor expanded in c around inf 80.4%
Taylor expanded in y around 0 80.4%
*-commutative80.4%
Simplified80.4%
Taylor expanded in y around 0 80.3%
associate-*r/80.4%
metadata-eval80.4%
*-commutative80.4%
Simplified80.4%
if 3.0499999999999999e-74 < y < 2.39999999999999992e36Initial program 71.3%
Taylor expanded in y around 0 15.8%
Final simplification56.9%
(FPCore (x y z t a b c i)
:precision binary64
(if (<= y -4.1e+58)
x
(if (<= y 2.5e-122)
(/ t i)
(if (<= y 1.86e-28) (/ t (* y c)) (if (<= y 2.45e+36) (/ 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 <= -4.1e+58) {
tmp = x;
} else if (y <= 2.5e-122) {
tmp = t / i;
} else if (y <= 1.86e-28) {
tmp = t / (y * c);
} else if (y <= 2.45e+36) {
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 <= (-4.1d+58)) then
tmp = x
else if (y <= 2.5d-122) then
tmp = t / i
else if (y <= 1.86d-28) then
tmp = t / (y * c)
else if (y <= 2.45d+36) 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 <= -4.1e+58) {
tmp = x;
} else if (y <= 2.5e-122) {
tmp = t / i;
} else if (y <= 1.86e-28) {
tmp = t / (y * c);
} else if (y <= 2.45e+36) {
tmp = t / i;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if y <= -4.1e+58: tmp = x elif y <= 2.5e-122: tmp = t / i elif y <= 1.86e-28: tmp = t / (y * c) elif y <= 2.45e+36: tmp = t / i else: tmp = x return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (y <= -4.1e+58) tmp = x; elseif (y <= 2.5e-122) tmp = Float64(t / i); elseif (y <= 1.86e-28) tmp = Float64(t / Float64(y * c)); elseif (y <= 2.45e+36) 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 <= -4.1e+58) tmp = x; elseif (y <= 2.5e-122) tmp = t / i; elseif (y <= 1.86e-28) tmp = t / (y * c); elseif (y <= 2.45e+36) tmp = t / i; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, -4.1e+58], x, If[LessEqual[y, 2.5e-122], N[(t / i), $MachinePrecision], If[LessEqual[y, 1.86e-28], N[(t / N[(y * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.45e+36], N[(t / i), $MachinePrecision], x]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -4.1 \cdot 10^{+58}:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq 2.5 \cdot 10^{-122}:\\
\;\;\;\;\frac{t}{i}\\
\mathbf{elif}\;y \leq 1.86 \cdot 10^{-28}:\\
\;\;\;\;\frac{t}{y \cdot c}\\
\mathbf{elif}\;y \leq 2.45 \cdot 10^{+36}:\\
\;\;\;\;\frac{t}{i}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if y < -4.1e58 or 2.4499999999999999e36 < y Initial program 3.2%
Taylor expanded in y around inf 54.8%
if -4.1e58 < y < 2.4999999999999999e-122 or 1.86e-28 < y < 2.4499999999999999e36Initial program 90.3%
Taylor expanded in y around 0 53.5%
if 2.4999999999999999e-122 < y < 1.86e-28Initial program 99.4%
Taylor expanded in c around inf 69.8%
Taylor expanded in y around 0 62.4%
*-commutative62.4%
Simplified62.4%
Taylor expanded in y around 0 48.7%
*-commutative48.7%
Simplified48.7%
Final simplification53.9%
(FPCore (x y z t a b c i) :precision binary64 (if (<= y -5.5e-58) x (if (<= y 2.55e+36) (/ (+ 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.5e-58) {
tmp = x;
} else if (y <= 2.55e+36) {
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.5d-58)) then
tmp = x
else if (y <= 2.55d+36) 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.5e-58) {
tmp = x;
} else if (y <= 2.55e+36) {
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.5e-58: tmp = x elif y <= 2.55e+36: 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.5e-58) tmp = x; elseif (y <= 2.55e+36) 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.5e-58) tmp = x; elseif (y <= 2.55e+36) 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.5e-58], x, If[LessEqual[y, 2.55e+36], N[(N[(t + N[(y * 230661.510616), $MachinePrecision]), $MachinePrecision] / i), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -5.5 \cdot 10^{-58}:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq 2.55 \cdot 10^{+36}:\\
\;\;\;\;\frac{t + y \cdot 230661.510616}{i}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if y < -5.49999999999999996e-58 or 2.54999999999999986e36 < y Initial program 12.2%
Taylor expanded in y around inf 47.8%
if -5.49999999999999996e-58 < y < 2.54999999999999986e36Initial program 95.6%
Taylor expanded in y around 0 42.5%
Taylor expanded in i around inf 63.4%
Final simplification54.9%
(FPCore (x y z t a b c i) :precision binary64 (if (<= y -4.1e+58) x (if (<= y 2.9e+36) (/ 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 <= -4.1e+58) {
tmp = x;
} else if (y <= 2.9e+36) {
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 <= (-4.1d+58)) then
tmp = x
else if (y <= 2.9d+36) 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 <= -4.1e+58) {
tmp = x;
} else if (y <= 2.9e+36) {
tmp = t / i;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): tmp = 0 if y <= -4.1e+58: tmp = x elif y <= 2.9e+36: tmp = t / i else: tmp = x return tmp
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (y <= -4.1e+58) tmp = x; elseif (y <= 2.9e+36) 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 <= -4.1e+58) tmp = x; elseif (y <= 2.9e+36) tmp = t / i; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, -4.1e+58], x, If[LessEqual[y, 2.9e+36], N[(t / i), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -4.1 \cdot 10^{+58}:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq 2.9 \cdot 10^{+36}:\\
\;\;\;\;\frac{t}{i}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if y < -4.1e58 or 2.9e36 < y Initial program 3.2%
Taylor expanded in y around inf 54.8%
if -4.1e58 < y < 2.9e36Initial program 91.2%
Taylor expanded in y around 0 50.1%
Final simplification52.3%
(FPCore (x y z t a b c i) :precision binary64 x)
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return x;
}
real(8) function code(x, y, z, t, a, b, c, i)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
code = x
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return x;
}
def code(x, y, z, t, a, b, c, i): return x
function code(x, y, z, t, a, b, c, i) return x end
function tmp = code(x, y, z, t, a, b, c, i) tmp = x; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := x
\begin{array}{l}
\\
x
\end{array}
Initial program 50.0%
Taylor expanded in y around inf 27.6%
Final simplification27.6%
herbie shell --seed 2023224
(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)))