
(FPCore (x y z t a) :precision binary64 (+ x (* (- y z) (/ (- t x) (- a z)))))
double code(double x, double y, double z, double t, double a) {
return x + ((y - z) * ((t - x) / (a - z)));
}
real(8) function code(x, y, z, t, a)
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
code = x + ((y - z) * ((t - x) / (a - z)))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + ((y - z) * ((t - x) / (a - z)));
}
def code(x, y, z, t, a): return x + ((y - z) * ((t - x) / (a - z)))
function code(x, y, z, t, a) return Float64(x + Float64(Float64(y - z) * Float64(Float64(t - x) / Float64(a - z)))) end
function tmp = code(x, y, z, t, a) tmp = x + ((y - z) * ((t - x) / (a - z))); end
code[x_, y_, z_, t_, a_] := N[(x + N[(N[(y - z), $MachinePrecision] * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \left(y - z\right) \cdot \frac{t - x}{a - z}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 21 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a) :precision binary64 (+ x (* (- y z) (/ (- t x) (- a z)))))
double code(double x, double y, double z, double t, double a) {
return x + ((y - z) * ((t - x) / (a - z)));
}
real(8) function code(x, y, z, t, a)
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
code = x + ((y - z) * ((t - x) / (a - z)))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + ((y - z) * ((t - x) / (a - z)));
}
def code(x, y, z, t, a): return x + ((y - z) * ((t - x) / (a - z)))
function code(x, y, z, t, a) return Float64(x + Float64(Float64(y - z) * Float64(Float64(t - x) / Float64(a - z)))) end
function tmp = code(x, y, z, t, a) tmp = x + ((y - z) * ((t - x) / (a - z))); end
code[x_, y_, z_, t_, a_] := N[(x + N[(N[(y - z), $MachinePrecision] * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \left(y - z\right) \cdot \frac{t - x}{a - z}
\end{array}
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (/ (- t x) (- a z))) (t_2 (+ x (* (- y z) t_1))))
(if (<= t_2 -2e-300)
t_2
(if (<= t_2 2e-260)
(+ t (/ (- x t) (/ z (- y a))))
(fma (- y z) t_1 x)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = (t - x) / (a - z);
double t_2 = x + ((y - z) * t_1);
double tmp;
if (t_2 <= -2e-300) {
tmp = t_2;
} else if (t_2 <= 2e-260) {
tmp = t + ((x - t) / (z / (y - a)));
} else {
tmp = fma((y - z), t_1, x);
}
return tmp;
}
function code(x, y, z, t, a) t_1 = Float64(Float64(t - x) / Float64(a - z)) t_2 = Float64(x + Float64(Float64(y - z) * t_1)) tmp = 0.0 if (t_2 <= -2e-300) tmp = t_2; elseif (t_2 <= 2e-260) tmp = Float64(t + Float64(Float64(x - t) / Float64(z / Float64(y - a)))); else tmp = fma(Float64(y - z), t_1, x); end return tmp end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(N[(y - z), $MachinePrecision] * t$95$1), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, -2e-300], t$95$2, If[LessEqual[t$95$2, 2e-260], N[(t + N[(N[(x - t), $MachinePrecision] / N[(z / N[(y - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y - z), $MachinePrecision] * t$95$1 + x), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{t - x}{a - z}\\
t_2 := x + \left(y - z\right) \cdot t\_1\\
\mathbf{if}\;t\_2 \leq -2 \cdot 10^{-300}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t\_2 \leq 2 \cdot 10^{-260}:\\
\;\;\;\;t + \frac{x - t}{\frac{z}{y - a}}\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(y - z, t\_1, x\right)\\
\end{array}
\end{array}
if (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < -2.00000000000000005e-300Initial program 88.2%
if -2.00000000000000005e-300 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < 1.99999999999999992e-260Initial program 6.4%
Taylor expanded in z around inf 83.4%
associate--l+83.4%
distribute-lft-out--83.4%
div-sub83.4%
mul-1-neg83.4%
unsub-neg83.4%
distribute-rgt-out--83.6%
associate-/l*97.1%
Simplified97.1%
if 1.99999999999999992e-260 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) Initial program 89.7%
+-commutative89.7%
fma-def89.7%
Simplified89.7%
Final simplification90.1%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* x (- 1.0 (/ y a)))) (t_2 (* y (/ (- t x) a))))
(if (<= z -1.45e+147)
(+ t (/ a (/ (- z) x)))
(if (<= z -4e+94)
(/ (- y) (/ z (- t x)))
(if (<= z -2.3e-61)
(- t (* t (/ y z)))
(if (<= z -1.15e-164)
t_1
(if (<= z -2.3e-261)
t_2
(if (<= z 2.1e-244)
t_1
(if (<= z 4.3e-204)
t_2
(if (<= z 2.9e-114) t_1 (+ t (* y (/ x z)))))))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x * (1.0 - (y / a));
double t_2 = y * ((t - x) / a);
double tmp;
if (z <= -1.45e+147) {
tmp = t + (a / (-z / x));
} else if (z <= -4e+94) {
tmp = -y / (z / (t - x));
} else if (z <= -2.3e-61) {
tmp = t - (t * (y / z));
} else if (z <= -1.15e-164) {
tmp = t_1;
} else if (z <= -2.3e-261) {
tmp = t_2;
} else if (z <= 2.1e-244) {
tmp = t_1;
} else if (z <= 4.3e-204) {
tmp = t_2;
} else if (z <= 2.9e-114) {
tmp = t_1;
} else {
tmp = t + (y * (x / z));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
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) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x * (1.0d0 - (y / a))
t_2 = y * ((t - x) / a)
if (z <= (-1.45d+147)) then
tmp = t + (a / (-z / x))
else if (z <= (-4d+94)) then
tmp = -y / (z / (t - x))
else if (z <= (-2.3d-61)) then
tmp = t - (t * (y / z))
else if (z <= (-1.15d-164)) then
tmp = t_1
else if (z <= (-2.3d-261)) then
tmp = t_2
else if (z <= 2.1d-244) then
tmp = t_1
else if (z <= 4.3d-204) then
tmp = t_2
else if (z <= 2.9d-114) then
tmp = t_1
else
tmp = t + (y * (x / z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x * (1.0 - (y / a));
double t_2 = y * ((t - x) / a);
double tmp;
if (z <= -1.45e+147) {
tmp = t + (a / (-z / x));
} else if (z <= -4e+94) {
tmp = -y / (z / (t - x));
} else if (z <= -2.3e-61) {
tmp = t - (t * (y / z));
} else if (z <= -1.15e-164) {
tmp = t_1;
} else if (z <= -2.3e-261) {
tmp = t_2;
} else if (z <= 2.1e-244) {
tmp = t_1;
} else if (z <= 4.3e-204) {
tmp = t_2;
} else if (z <= 2.9e-114) {
tmp = t_1;
} else {
tmp = t + (y * (x / z));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x * (1.0 - (y / a)) t_2 = y * ((t - x) / a) tmp = 0 if z <= -1.45e+147: tmp = t + (a / (-z / x)) elif z <= -4e+94: tmp = -y / (z / (t - x)) elif z <= -2.3e-61: tmp = t - (t * (y / z)) elif z <= -1.15e-164: tmp = t_1 elif z <= -2.3e-261: tmp = t_2 elif z <= 2.1e-244: tmp = t_1 elif z <= 4.3e-204: tmp = t_2 elif z <= 2.9e-114: tmp = t_1 else: tmp = t + (y * (x / z)) return tmp
function code(x, y, z, t, a) t_1 = Float64(x * Float64(1.0 - Float64(y / a))) t_2 = Float64(y * Float64(Float64(t - x) / a)) tmp = 0.0 if (z <= -1.45e+147) tmp = Float64(t + Float64(a / Float64(Float64(-z) / x))); elseif (z <= -4e+94) tmp = Float64(Float64(-y) / Float64(z / Float64(t - x))); elseif (z <= -2.3e-61) tmp = Float64(t - Float64(t * Float64(y / z))); elseif (z <= -1.15e-164) tmp = t_1; elseif (z <= -2.3e-261) tmp = t_2; elseif (z <= 2.1e-244) tmp = t_1; elseif (z <= 4.3e-204) tmp = t_2; elseif (z <= 2.9e-114) tmp = t_1; else tmp = Float64(t + Float64(y * Float64(x / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x * (1.0 - (y / a)); t_2 = y * ((t - x) / a); tmp = 0.0; if (z <= -1.45e+147) tmp = t + (a / (-z / x)); elseif (z <= -4e+94) tmp = -y / (z / (t - x)); elseif (z <= -2.3e-61) tmp = t - (t * (y / z)); elseif (z <= -1.15e-164) tmp = t_1; elseif (z <= -2.3e-261) tmp = t_2; elseif (z <= 2.1e-244) tmp = t_1; elseif (z <= 4.3e-204) tmp = t_2; elseif (z <= 2.9e-114) tmp = t_1; else tmp = t + (y * (x / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x * N[(1.0 - N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y * N[(N[(t - x), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.45e+147], N[(t + N[(a / N[((-z) / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -4e+94], N[((-y) / N[(z / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -2.3e-61], N[(t - N[(t * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -1.15e-164], t$95$1, If[LessEqual[z, -2.3e-261], t$95$2, If[LessEqual[z, 2.1e-244], t$95$1, If[LessEqual[z, 4.3e-204], t$95$2, If[LessEqual[z, 2.9e-114], t$95$1, N[(t + N[(y * N[(x / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(1 - \frac{y}{a}\right)\\
t_2 := y \cdot \frac{t - x}{a}\\
\mathbf{if}\;z \leq -1.45 \cdot 10^{+147}:\\
\;\;\;\;t + \frac{a}{\frac{-z}{x}}\\
\mathbf{elif}\;z \leq -4 \cdot 10^{+94}:\\
\;\;\;\;\frac{-y}{\frac{z}{t - x}}\\
\mathbf{elif}\;z \leq -2.3 \cdot 10^{-61}:\\
\;\;\;\;t - t \cdot \frac{y}{z}\\
\mathbf{elif}\;z \leq -1.15 \cdot 10^{-164}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -2.3 \cdot 10^{-261}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq 2.1 \cdot 10^{-244}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 4.3 \cdot 10^{-204}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq 2.9 \cdot 10^{-114}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t + y \cdot \frac{x}{z}\\
\end{array}
\end{array}
if z < -1.4499999999999999e147Initial program 61.8%
Taylor expanded in z around inf 59.2%
associate--l+59.2%
distribute-lft-out--59.2%
div-sub59.2%
mul-1-neg59.2%
unsub-neg59.2%
distribute-rgt-out--59.2%
associate-/l*78.1%
Simplified78.1%
Taylor expanded in y around 0 53.0%
sub-neg53.0%
mul-1-neg53.0%
remove-double-neg53.0%
associate-/l*65.9%
Simplified65.9%
Taylor expanded in t around 0 65.5%
associate-*r/65.5%
neg-mul-165.5%
Simplified65.5%
if -1.4499999999999999e147 < z < -4.0000000000000001e94Initial program 91.3%
Taylor expanded in z around inf 47.9%
associate--l+47.9%
distribute-lft-out--47.9%
div-sub47.9%
mul-1-neg47.9%
unsub-neg47.9%
distribute-rgt-out--48.0%
associate-/l*73.6%
Simplified73.6%
Taylor expanded in y around -inf 40.1%
mul-1-neg40.1%
associate-/l*65.9%
distribute-neg-frac65.9%
Simplified65.9%
if -4.0000000000000001e94 < z < -2.29999999999999992e-61Initial program 80.5%
Taylor expanded in z around inf 73.8%
associate--l+73.8%
distribute-lft-out--73.8%
div-sub73.8%
mul-1-neg73.8%
unsub-neg73.8%
distribute-rgt-out--73.8%
associate-/l*73.8%
Simplified73.8%
Taylor expanded in y around inf 68.0%
Taylor expanded in t around inf 58.3%
associate-*r/58.3%
Simplified58.3%
if -2.29999999999999992e-61 < z < -1.14999999999999993e-164 or -2.3e-261 < z < 2.10000000000000002e-244 or 4.3000000000000003e-204 < z < 2.89999999999999997e-114Initial program 91.0%
Taylor expanded in x around inf 76.8%
mul-1-neg76.8%
unsub-neg76.8%
Simplified76.8%
Taylor expanded in z around 0 76.9%
if -1.14999999999999993e-164 < z < -2.3e-261 or 2.10000000000000002e-244 < z < 4.3000000000000003e-204Initial program 89.4%
Taylor expanded in a around inf 79.6%
Taylor expanded in y around inf 70.3%
div-sub70.3%
Simplified70.3%
if 2.89999999999999997e-114 < z Initial program 65.6%
Taylor expanded in z around inf 69.6%
associate--l+69.6%
distribute-lft-out--69.6%
div-sub69.7%
mul-1-neg69.7%
unsub-neg69.7%
distribute-rgt-out--69.8%
associate-/l*77.7%
Simplified77.7%
Taylor expanded in y around inf 67.2%
Taylor expanded in t around 0 55.3%
mul-1-neg55.3%
*-commutative55.3%
associate-*r/57.6%
distribute-rgt-neg-in57.6%
distribute-neg-frac57.6%
Simplified57.6%
Final simplification65.6%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* (- y z) (/ (- t x) (- a z))))))
(if (or (<= t_1 -2e-300) (not (<= t_1 2e-260)))
t_1
(+ t (/ (- x t) (/ z (- y a)))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + ((y - z) * ((t - x) / (a - z)));
double tmp;
if ((t_1 <= -2e-300) || !(t_1 <= 2e-260)) {
tmp = t_1;
} else {
tmp = t + ((x - t) / (z / (y - a)));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
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) :: t_1
real(8) :: tmp
t_1 = x + ((y - z) * ((t - x) / (a - z)))
if ((t_1 <= (-2d-300)) .or. (.not. (t_1 <= 2d-260))) then
tmp = t_1
else
tmp = t + ((x - t) / (z / (y - a)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x + ((y - z) * ((t - x) / (a - z)));
double tmp;
if ((t_1 <= -2e-300) || !(t_1 <= 2e-260)) {
tmp = t_1;
} else {
tmp = t + ((x - t) / (z / (y - a)));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + ((y - z) * ((t - x) / (a - z))) tmp = 0 if (t_1 <= -2e-300) or not (t_1 <= 2e-260): tmp = t_1 else: tmp = t + ((x - t) / (z / (y - a))) return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(y - z) * Float64(Float64(t - x) / Float64(a - z)))) tmp = 0.0 if ((t_1 <= -2e-300) || !(t_1 <= 2e-260)) tmp = t_1; else tmp = Float64(t + Float64(Float64(x - t) / Float64(z / Float64(y - a)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + ((y - z) * ((t - x) / (a - z))); tmp = 0.0; if ((t_1 <= -2e-300) || ~((t_1 <= 2e-260))) tmp = t_1; else tmp = t + ((x - t) / (z / (y - a))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(y - z), $MachinePrecision] * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[t$95$1, -2e-300], N[Not[LessEqual[t$95$1, 2e-260]], $MachinePrecision]], t$95$1, N[(t + N[(N[(x - t), $MachinePrecision] / N[(z / N[(y - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \left(y - z\right) \cdot \frac{t - x}{a - z}\\
\mathbf{if}\;t\_1 \leq -2 \cdot 10^{-300} \lor \neg \left(t\_1 \leq 2 \cdot 10^{-260}\right):\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t + \frac{x - t}{\frac{z}{y - a}}\\
\end{array}
\end{array}
if (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < -2.00000000000000005e-300 or 1.99999999999999992e-260 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) Initial program 89.0%
if -2.00000000000000005e-300 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < 1.99999999999999992e-260Initial program 6.4%
Taylor expanded in z around inf 83.4%
associate--l+83.4%
distribute-lft-out--83.4%
div-sub83.4%
mul-1-neg83.4%
unsub-neg83.4%
distribute-rgt-out--83.6%
associate-/l*97.1%
Simplified97.1%
Final simplification90.1%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* x (- 1.0 (/ y a))))
(t_2 (- t (* t (/ y z))))
(t_3 (* y (/ (- t x) a))))
(if (<= z -2.45e-61)
t_2
(if (<= z -4.6e-163)
t_1
(if (<= z -3.1e-261)
t_3
(if (<= z 9.8e-244)
t_1
(if (<= z 1.12e-203) t_3 (if (<= z 2.9e-114) t_1 t_2))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x * (1.0 - (y / a));
double t_2 = t - (t * (y / z));
double t_3 = y * ((t - x) / a);
double tmp;
if (z <= -2.45e-61) {
tmp = t_2;
} else if (z <= -4.6e-163) {
tmp = t_1;
} else if (z <= -3.1e-261) {
tmp = t_3;
} else if (z <= 9.8e-244) {
tmp = t_1;
} else if (z <= 1.12e-203) {
tmp = t_3;
} else if (z <= 2.9e-114) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
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) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = x * (1.0d0 - (y / a))
t_2 = t - (t * (y / z))
t_3 = y * ((t - x) / a)
if (z <= (-2.45d-61)) then
tmp = t_2
else if (z <= (-4.6d-163)) then
tmp = t_1
else if (z <= (-3.1d-261)) then
tmp = t_3
else if (z <= 9.8d-244) then
tmp = t_1
else if (z <= 1.12d-203) then
tmp = t_3
else if (z <= 2.9d-114) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x * (1.0 - (y / a));
double t_2 = t - (t * (y / z));
double t_3 = y * ((t - x) / a);
double tmp;
if (z <= -2.45e-61) {
tmp = t_2;
} else if (z <= -4.6e-163) {
tmp = t_1;
} else if (z <= -3.1e-261) {
tmp = t_3;
} else if (z <= 9.8e-244) {
tmp = t_1;
} else if (z <= 1.12e-203) {
tmp = t_3;
} else if (z <= 2.9e-114) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x * (1.0 - (y / a)) t_2 = t - (t * (y / z)) t_3 = y * ((t - x) / a) tmp = 0 if z <= -2.45e-61: tmp = t_2 elif z <= -4.6e-163: tmp = t_1 elif z <= -3.1e-261: tmp = t_3 elif z <= 9.8e-244: tmp = t_1 elif z <= 1.12e-203: tmp = t_3 elif z <= 2.9e-114: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a) t_1 = Float64(x * Float64(1.0 - Float64(y / a))) t_2 = Float64(t - Float64(t * Float64(y / z))) t_3 = Float64(y * Float64(Float64(t - x) / a)) tmp = 0.0 if (z <= -2.45e-61) tmp = t_2; elseif (z <= -4.6e-163) tmp = t_1; elseif (z <= -3.1e-261) tmp = t_3; elseif (z <= 9.8e-244) tmp = t_1; elseif (z <= 1.12e-203) tmp = t_3; elseif (z <= 2.9e-114) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x * (1.0 - (y / a)); t_2 = t - (t * (y / z)); t_3 = y * ((t - x) / a); tmp = 0.0; if (z <= -2.45e-61) tmp = t_2; elseif (z <= -4.6e-163) tmp = t_1; elseif (z <= -3.1e-261) tmp = t_3; elseif (z <= 9.8e-244) tmp = t_1; elseif (z <= 1.12e-203) tmp = t_3; elseif (z <= 2.9e-114) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x * N[(1.0 - N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t - N[(t * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(y * N[(N[(t - x), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2.45e-61], t$95$2, If[LessEqual[z, -4.6e-163], t$95$1, If[LessEqual[z, -3.1e-261], t$95$3, If[LessEqual[z, 9.8e-244], t$95$1, If[LessEqual[z, 1.12e-203], t$95$3, If[LessEqual[z, 2.9e-114], t$95$1, t$95$2]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(1 - \frac{y}{a}\right)\\
t_2 := t - t \cdot \frac{y}{z}\\
t_3 := y \cdot \frac{t - x}{a}\\
\mathbf{if}\;z \leq -2.45 \cdot 10^{-61}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq -4.6 \cdot 10^{-163}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -3.1 \cdot 10^{-261}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;z \leq 9.8 \cdot 10^{-244}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 1.12 \cdot 10^{-203}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;z \leq 2.9 \cdot 10^{-114}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if z < -2.45000000000000001e-61 or 2.89999999999999997e-114 < z Initial program 69.5%
Taylor expanded in z around inf 66.8%
associate--l+66.8%
distribute-lft-out--66.8%
div-sub66.8%
mul-1-neg66.8%
unsub-neg66.8%
distribute-rgt-out--66.9%
associate-/l*76.7%
Simplified76.7%
Taylor expanded in y around inf 67.3%
Taylor expanded in t around inf 47.8%
associate-*r/52.2%
Simplified52.2%
if -2.45000000000000001e-61 < z < -4.5999999999999999e-163 or -3.0999999999999998e-261 < z < 9.80000000000000029e-244 or 1.12e-203 < z < 2.89999999999999997e-114Initial program 91.0%
Taylor expanded in x around inf 76.8%
mul-1-neg76.8%
unsub-neg76.8%
Simplified76.8%
Taylor expanded in z around 0 76.9%
if -4.5999999999999999e-163 < z < -3.0999999999999998e-261 or 9.80000000000000029e-244 < z < 1.12e-203Initial program 89.4%
Taylor expanded in a around inf 79.6%
Taylor expanded in y around inf 70.3%
div-sub70.3%
Simplified70.3%
Final simplification60.9%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* x (- 1.0 (/ y a)))) (t_2 (* y (/ (- t x) a))))
(if (<= z -1.32e-61)
(- t (* t (/ y z)))
(if (<= z -3.6e-165)
t_1
(if (<= z -1.2e-262)
t_2
(if (<= z 1.1e-244)
t_1
(if (<= z 5.4e-202)
t_2
(if (<= z 2.9e-114) t_1 (+ t (* y (/ x z)))))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x * (1.0 - (y / a));
double t_2 = y * ((t - x) / a);
double tmp;
if (z <= -1.32e-61) {
tmp = t - (t * (y / z));
} else if (z <= -3.6e-165) {
tmp = t_1;
} else if (z <= -1.2e-262) {
tmp = t_2;
} else if (z <= 1.1e-244) {
tmp = t_1;
} else if (z <= 5.4e-202) {
tmp = t_2;
} else if (z <= 2.9e-114) {
tmp = t_1;
} else {
tmp = t + (y * (x / z));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
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) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x * (1.0d0 - (y / a))
t_2 = y * ((t - x) / a)
if (z <= (-1.32d-61)) then
tmp = t - (t * (y / z))
else if (z <= (-3.6d-165)) then
tmp = t_1
else if (z <= (-1.2d-262)) then
tmp = t_2
else if (z <= 1.1d-244) then
tmp = t_1
else if (z <= 5.4d-202) then
tmp = t_2
else if (z <= 2.9d-114) then
tmp = t_1
else
tmp = t + (y * (x / z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x * (1.0 - (y / a));
double t_2 = y * ((t - x) / a);
double tmp;
if (z <= -1.32e-61) {
tmp = t - (t * (y / z));
} else if (z <= -3.6e-165) {
tmp = t_1;
} else if (z <= -1.2e-262) {
tmp = t_2;
} else if (z <= 1.1e-244) {
tmp = t_1;
} else if (z <= 5.4e-202) {
tmp = t_2;
} else if (z <= 2.9e-114) {
tmp = t_1;
} else {
tmp = t + (y * (x / z));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x * (1.0 - (y / a)) t_2 = y * ((t - x) / a) tmp = 0 if z <= -1.32e-61: tmp = t - (t * (y / z)) elif z <= -3.6e-165: tmp = t_1 elif z <= -1.2e-262: tmp = t_2 elif z <= 1.1e-244: tmp = t_1 elif z <= 5.4e-202: tmp = t_2 elif z <= 2.9e-114: tmp = t_1 else: tmp = t + (y * (x / z)) return tmp
function code(x, y, z, t, a) t_1 = Float64(x * Float64(1.0 - Float64(y / a))) t_2 = Float64(y * Float64(Float64(t - x) / a)) tmp = 0.0 if (z <= -1.32e-61) tmp = Float64(t - Float64(t * Float64(y / z))); elseif (z <= -3.6e-165) tmp = t_1; elseif (z <= -1.2e-262) tmp = t_2; elseif (z <= 1.1e-244) tmp = t_1; elseif (z <= 5.4e-202) tmp = t_2; elseif (z <= 2.9e-114) tmp = t_1; else tmp = Float64(t + Float64(y * Float64(x / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x * (1.0 - (y / a)); t_2 = y * ((t - x) / a); tmp = 0.0; if (z <= -1.32e-61) tmp = t - (t * (y / z)); elseif (z <= -3.6e-165) tmp = t_1; elseif (z <= -1.2e-262) tmp = t_2; elseif (z <= 1.1e-244) tmp = t_1; elseif (z <= 5.4e-202) tmp = t_2; elseif (z <= 2.9e-114) tmp = t_1; else tmp = t + (y * (x / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x * N[(1.0 - N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y * N[(N[(t - x), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.32e-61], N[(t - N[(t * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -3.6e-165], t$95$1, If[LessEqual[z, -1.2e-262], t$95$2, If[LessEqual[z, 1.1e-244], t$95$1, If[LessEqual[z, 5.4e-202], t$95$2, If[LessEqual[z, 2.9e-114], t$95$1, N[(t + N[(y * N[(x / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(1 - \frac{y}{a}\right)\\
t_2 := y \cdot \frac{t - x}{a}\\
\mathbf{if}\;z \leq -1.32 \cdot 10^{-61}:\\
\;\;\;\;t - t \cdot \frac{y}{z}\\
\mathbf{elif}\;z \leq -3.6 \cdot 10^{-165}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -1.2 \cdot 10^{-262}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq 1.1 \cdot 10^{-244}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 5.4 \cdot 10^{-202}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq 2.9 \cdot 10^{-114}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t + y \cdot \frac{x}{z}\\
\end{array}
\end{array}
if z < -1.32000000000000002e-61Initial program 74.1%
Taylor expanded in z around inf 63.6%
associate--l+63.6%
distribute-lft-out--63.6%
div-sub63.6%
mul-1-neg63.6%
unsub-neg63.6%
distribute-rgt-out--63.6%
associate-/l*75.7%
Simplified75.7%
Taylor expanded in y around inf 67.5%
Taylor expanded in t around inf 51.1%
associate-*r/55.1%
Simplified55.1%
if -1.32000000000000002e-61 < z < -3.59999999999999984e-165 or -1.2e-262 < z < 1.09999999999999992e-244 or 5.3999999999999997e-202 < z < 2.89999999999999997e-114Initial program 91.0%
Taylor expanded in x around inf 76.8%
mul-1-neg76.8%
unsub-neg76.8%
Simplified76.8%
Taylor expanded in z around 0 76.9%
if -3.59999999999999984e-165 < z < -1.2e-262 or 1.09999999999999992e-244 < z < 5.3999999999999997e-202Initial program 89.4%
Taylor expanded in a around inf 79.6%
Taylor expanded in y around inf 70.3%
div-sub70.3%
Simplified70.3%
if 2.89999999999999997e-114 < z Initial program 65.6%
Taylor expanded in z around inf 69.6%
associate--l+69.6%
distribute-lft-out--69.6%
div-sub69.7%
mul-1-neg69.7%
unsub-neg69.7%
distribute-rgt-out--69.8%
associate-/l*77.7%
Simplified77.7%
Taylor expanded in y around inf 67.2%
Taylor expanded in t around 0 55.3%
mul-1-neg55.3%
*-commutative55.3%
associate-*r/57.6%
distribute-rgt-neg-in57.6%
distribute-neg-frac57.6%
Simplified57.6%
Final simplification63.5%
(FPCore (x y z t a)
:precision binary64
(if (<= a -1.05e+62)
x
(if (<= a -3.5e-265)
t
(if (<= a 1.15e-242)
(* x (/ y z))
(if (<= a 1.22e-44) t (if (<= a 5600000000.0) (* t (/ y a)) x))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -1.05e+62) {
tmp = x;
} else if (a <= -3.5e-265) {
tmp = t;
} else if (a <= 1.15e-242) {
tmp = x * (y / z);
} else if (a <= 1.22e-44) {
tmp = t;
} else if (a <= 5600000000.0) {
tmp = t * (y / a);
} else {
tmp = x;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
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) :: tmp
if (a <= (-1.05d+62)) then
tmp = x
else if (a <= (-3.5d-265)) then
tmp = t
else if (a <= 1.15d-242) then
tmp = x * (y / z)
else if (a <= 1.22d-44) then
tmp = t
else if (a <= 5600000000.0d0) then
tmp = t * (y / a)
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -1.05e+62) {
tmp = x;
} else if (a <= -3.5e-265) {
tmp = t;
} else if (a <= 1.15e-242) {
tmp = x * (y / z);
} else if (a <= 1.22e-44) {
tmp = t;
} else if (a <= 5600000000.0) {
tmp = t * (y / a);
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -1.05e+62: tmp = x elif a <= -3.5e-265: tmp = t elif a <= 1.15e-242: tmp = x * (y / z) elif a <= 1.22e-44: tmp = t elif a <= 5600000000.0: tmp = t * (y / a) else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -1.05e+62) tmp = x; elseif (a <= -3.5e-265) tmp = t; elseif (a <= 1.15e-242) tmp = Float64(x * Float64(y / z)); elseif (a <= 1.22e-44) tmp = t; elseif (a <= 5600000000.0) tmp = Float64(t * Float64(y / a)); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -1.05e+62) tmp = x; elseif (a <= -3.5e-265) tmp = t; elseif (a <= 1.15e-242) tmp = x * (y / z); elseif (a <= 1.22e-44) tmp = t; elseif (a <= 5600000000.0) tmp = t * (y / a); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -1.05e+62], x, If[LessEqual[a, -3.5e-265], t, If[LessEqual[a, 1.15e-242], N[(x * N[(y / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.22e-44], t, If[LessEqual[a, 5600000000.0], N[(t * N[(y / a), $MachinePrecision]), $MachinePrecision], x]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.05 \cdot 10^{+62}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq -3.5 \cdot 10^{-265}:\\
\;\;\;\;t\\
\mathbf{elif}\;a \leq 1.15 \cdot 10^{-242}:\\
\;\;\;\;x \cdot \frac{y}{z}\\
\mathbf{elif}\;a \leq 1.22 \cdot 10^{-44}:\\
\;\;\;\;t\\
\mathbf{elif}\;a \leq 5600000000:\\
\;\;\;\;t \cdot \frac{y}{a}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -1.05e62 or 5.6e9 < a Initial program 86.1%
Taylor expanded in a around inf 49.0%
if -1.05e62 < a < -3.50000000000000015e-265 or 1.14999999999999992e-242 < a < 1.22e-44Initial program 70.1%
Taylor expanded in z around inf 37.7%
if -3.50000000000000015e-265 < a < 1.14999999999999992e-242Initial program 75.0%
Taylor expanded in x around inf 33.1%
mul-1-neg33.1%
unsub-neg33.1%
Simplified33.1%
Taylor expanded in a around 0 44.3%
if 1.22e-44 < a < 5.6e9Initial program 93.1%
Taylor expanded in a around inf 73.0%
Taylor expanded in t around inf 53.7%
div-sub53.7%
Simplified53.7%
Taylor expanded in y around inf 54.3%
Final simplification43.3%
(FPCore (x y z t a)
:precision binary64
(if (<= a -9.2e+66)
x
(if (<= a -1.25e-263)
t
(if (<= a 6.7e-243)
(* x (/ y z))
(if (<= a 1.85e-46) t (if (<= a 5600000000.0) (/ t (/ a y)) x))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -9.2e+66) {
tmp = x;
} else if (a <= -1.25e-263) {
tmp = t;
} else if (a <= 6.7e-243) {
tmp = x * (y / z);
} else if (a <= 1.85e-46) {
tmp = t;
} else if (a <= 5600000000.0) {
tmp = t / (a / y);
} else {
tmp = x;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
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) :: tmp
if (a <= (-9.2d+66)) then
tmp = x
else if (a <= (-1.25d-263)) then
tmp = t
else if (a <= 6.7d-243) then
tmp = x * (y / z)
else if (a <= 1.85d-46) then
tmp = t
else if (a <= 5600000000.0d0) then
tmp = t / (a / y)
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -9.2e+66) {
tmp = x;
} else if (a <= -1.25e-263) {
tmp = t;
} else if (a <= 6.7e-243) {
tmp = x * (y / z);
} else if (a <= 1.85e-46) {
tmp = t;
} else if (a <= 5600000000.0) {
tmp = t / (a / y);
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -9.2e+66: tmp = x elif a <= -1.25e-263: tmp = t elif a <= 6.7e-243: tmp = x * (y / z) elif a <= 1.85e-46: tmp = t elif a <= 5600000000.0: tmp = t / (a / y) else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -9.2e+66) tmp = x; elseif (a <= -1.25e-263) tmp = t; elseif (a <= 6.7e-243) tmp = Float64(x * Float64(y / z)); elseif (a <= 1.85e-46) tmp = t; elseif (a <= 5600000000.0) tmp = Float64(t / Float64(a / y)); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -9.2e+66) tmp = x; elseif (a <= -1.25e-263) tmp = t; elseif (a <= 6.7e-243) tmp = x * (y / z); elseif (a <= 1.85e-46) tmp = t; elseif (a <= 5600000000.0) tmp = t / (a / y); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -9.2e+66], x, If[LessEqual[a, -1.25e-263], t, If[LessEqual[a, 6.7e-243], N[(x * N[(y / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.85e-46], t, If[LessEqual[a, 5600000000.0], N[(t / N[(a / y), $MachinePrecision]), $MachinePrecision], x]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -9.2 \cdot 10^{+66}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq -1.25 \cdot 10^{-263}:\\
\;\;\;\;t\\
\mathbf{elif}\;a \leq 6.7 \cdot 10^{-243}:\\
\;\;\;\;x \cdot \frac{y}{z}\\
\mathbf{elif}\;a \leq 1.85 \cdot 10^{-46}:\\
\;\;\;\;t\\
\mathbf{elif}\;a \leq 5600000000:\\
\;\;\;\;\frac{t}{\frac{a}{y}}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -9.2e66 or 5.6e9 < a Initial program 86.1%
Taylor expanded in a around inf 49.0%
if -9.2e66 < a < -1.25000000000000002e-263 or 6.70000000000000009e-243 < a < 1.84999999999999992e-46Initial program 70.1%
Taylor expanded in z around inf 37.7%
if -1.25000000000000002e-263 < a < 6.70000000000000009e-243Initial program 75.0%
Taylor expanded in x around inf 33.1%
mul-1-neg33.1%
unsub-neg33.1%
Simplified33.1%
Taylor expanded in a around 0 44.3%
if 1.84999999999999992e-46 < a < 5.6e9Initial program 93.1%
Taylor expanded in x around 0 74.0%
associate-/l*80.5%
Simplified80.5%
Taylor expanded in z around 0 54.5%
Final simplification43.3%
(FPCore (x y z t a)
:precision binary64
(if (<= a -7.2e+61)
x
(if (<= a -4.7e-265)
t
(if (<= a 2.5e-247)
(/ x (/ z y))
(if (<= a 2.2e-41) t (if (<= a 4500000000.0) (/ t (/ a y)) x))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -7.2e+61) {
tmp = x;
} else if (a <= -4.7e-265) {
tmp = t;
} else if (a <= 2.5e-247) {
tmp = x / (z / y);
} else if (a <= 2.2e-41) {
tmp = t;
} else if (a <= 4500000000.0) {
tmp = t / (a / y);
} else {
tmp = x;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
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) :: tmp
if (a <= (-7.2d+61)) then
tmp = x
else if (a <= (-4.7d-265)) then
tmp = t
else if (a <= 2.5d-247) then
tmp = x / (z / y)
else if (a <= 2.2d-41) then
tmp = t
else if (a <= 4500000000.0d0) then
tmp = t / (a / y)
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -7.2e+61) {
tmp = x;
} else if (a <= -4.7e-265) {
tmp = t;
} else if (a <= 2.5e-247) {
tmp = x / (z / y);
} else if (a <= 2.2e-41) {
tmp = t;
} else if (a <= 4500000000.0) {
tmp = t / (a / y);
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -7.2e+61: tmp = x elif a <= -4.7e-265: tmp = t elif a <= 2.5e-247: tmp = x / (z / y) elif a <= 2.2e-41: tmp = t elif a <= 4500000000.0: tmp = t / (a / y) else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -7.2e+61) tmp = x; elseif (a <= -4.7e-265) tmp = t; elseif (a <= 2.5e-247) tmp = Float64(x / Float64(z / y)); elseif (a <= 2.2e-41) tmp = t; elseif (a <= 4500000000.0) tmp = Float64(t / Float64(a / y)); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -7.2e+61) tmp = x; elseif (a <= -4.7e-265) tmp = t; elseif (a <= 2.5e-247) tmp = x / (z / y); elseif (a <= 2.2e-41) tmp = t; elseif (a <= 4500000000.0) tmp = t / (a / y); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -7.2e+61], x, If[LessEqual[a, -4.7e-265], t, If[LessEqual[a, 2.5e-247], N[(x / N[(z / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.2e-41], t, If[LessEqual[a, 4500000000.0], N[(t / N[(a / y), $MachinePrecision]), $MachinePrecision], x]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -7.2 \cdot 10^{+61}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq -4.7 \cdot 10^{-265}:\\
\;\;\;\;t\\
\mathbf{elif}\;a \leq 2.5 \cdot 10^{-247}:\\
\;\;\;\;\frac{x}{\frac{z}{y}}\\
\mathbf{elif}\;a \leq 2.2 \cdot 10^{-41}:\\
\;\;\;\;t\\
\mathbf{elif}\;a \leq 4500000000:\\
\;\;\;\;\frac{t}{\frac{a}{y}}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -7.20000000000000021e61 or 4.5e9 < a Initial program 86.1%
Taylor expanded in a around inf 49.0%
if -7.20000000000000021e61 < a < -4.69999999999999986e-265 or 2.49999999999999989e-247 < a < 2.2e-41Initial program 70.1%
Taylor expanded in z around inf 37.7%
if -4.69999999999999986e-265 < a < 2.49999999999999989e-247Initial program 75.0%
Taylor expanded in x around inf 33.1%
mul-1-neg33.1%
unsub-neg33.1%
Simplified33.1%
Taylor expanded in a around 0 39.5%
associate-/l*44.4%
Simplified44.4%
if 2.2e-41 < a < 4.5e9Initial program 93.1%
Taylor expanded in x around 0 74.0%
associate-/l*80.5%
Simplified80.5%
Taylor expanded in z around 0 54.5%
Final simplification43.3%
(FPCore (x y z t a)
:precision binary64
(if (<= a -2.1e+67)
x
(if (<= a -1.46e-279)
t
(if (<= a 9.4e-247)
(/ (- t) (/ z y))
(if (<= a 1.75e-45) t (if (<= a 5500000000.0) (/ t (/ a y)) x))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -2.1e+67) {
tmp = x;
} else if (a <= -1.46e-279) {
tmp = t;
} else if (a <= 9.4e-247) {
tmp = -t / (z / y);
} else if (a <= 1.75e-45) {
tmp = t;
} else if (a <= 5500000000.0) {
tmp = t / (a / y);
} else {
tmp = x;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
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) :: tmp
if (a <= (-2.1d+67)) then
tmp = x
else if (a <= (-1.46d-279)) then
tmp = t
else if (a <= 9.4d-247) then
tmp = -t / (z / y)
else if (a <= 1.75d-45) then
tmp = t
else if (a <= 5500000000.0d0) then
tmp = t / (a / y)
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -2.1e+67) {
tmp = x;
} else if (a <= -1.46e-279) {
tmp = t;
} else if (a <= 9.4e-247) {
tmp = -t / (z / y);
} else if (a <= 1.75e-45) {
tmp = t;
} else if (a <= 5500000000.0) {
tmp = t / (a / y);
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -2.1e+67: tmp = x elif a <= -1.46e-279: tmp = t elif a <= 9.4e-247: tmp = -t / (z / y) elif a <= 1.75e-45: tmp = t elif a <= 5500000000.0: tmp = t / (a / y) else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -2.1e+67) tmp = x; elseif (a <= -1.46e-279) tmp = t; elseif (a <= 9.4e-247) tmp = Float64(Float64(-t) / Float64(z / y)); elseif (a <= 1.75e-45) tmp = t; elseif (a <= 5500000000.0) tmp = Float64(t / Float64(a / y)); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -2.1e+67) tmp = x; elseif (a <= -1.46e-279) tmp = t; elseif (a <= 9.4e-247) tmp = -t / (z / y); elseif (a <= 1.75e-45) tmp = t; elseif (a <= 5500000000.0) tmp = t / (a / y); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -2.1e+67], x, If[LessEqual[a, -1.46e-279], t, If[LessEqual[a, 9.4e-247], N[((-t) / N[(z / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.75e-45], t, If[LessEqual[a, 5500000000.0], N[(t / N[(a / y), $MachinePrecision]), $MachinePrecision], x]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -2.1 \cdot 10^{+67}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq -1.46 \cdot 10^{-279}:\\
\;\;\;\;t\\
\mathbf{elif}\;a \leq 9.4 \cdot 10^{-247}:\\
\;\;\;\;\frac{-t}{\frac{z}{y}}\\
\mathbf{elif}\;a \leq 1.75 \cdot 10^{-45}:\\
\;\;\;\;t\\
\mathbf{elif}\;a \leq 5500000000:\\
\;\;\;\;\frac{t}{\frac{a}{y}}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -2.1000000000000001e67 or 5.5e9 < a Initial program 86.1%
Taylor expanded in a around inf 49.0%
if -2.1000000000000001e67 < a < -1.46000000000000005e-279 or 9.3999999999999996e-247 < a < 1.75e-45Initial program 70.5%
Taylor expanded in z around inf 37.1%
if -1.46000000000000005e-279 < a < 9.3999999999999996e-247Initial program 73.0%
Taylor expanded in x around 0 59.9%
associate-/l*73.0%
Simplified73.0%
Taylor expanded in y around inf 51.8%
associate-/l*58.1%
Simplified58.1%
Taylor expanded in a around 0 51.8%
mul-1-neg51.8%
associate-/l*58.1%
distribute-neg-frac58.1%
Simplified58.1%
if 1.75e-45 < a < 5.5e9Initial program 93.1%
Taylor expanded in x around 0 74.0%
associate-/l*80.5%
Simplified80.5%
Taylor expanded in z around 0 54.5%
Final simplification43.6%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* x (- 1.0 (/ y a)))))
(if (<= y -4.4e+168)
(* y (/ t (- a z)))
(if (<= y -1.6e-39)
t_1
(if (<= y 8e-309) t (if (<= y 3.5e+82) t_1 (* y (/ (- t x) a))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x * (1.0 - (y / a));
double tmp;
if (y <= -4.4e+168) {
tmp = y * (t / (a - z));
} else if (y <= -1.6e-39) {
tmp = t_1;
} else if (y <= 8e-309) {
tmp = t;
} else if (y <= 3.5e+82) {
tmp = t_1;
} else {
tmp = y * ((t - x) / a);
}
return tmp;
}
real(8) function code(x, y, z, t, a)
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) :: t_1
real(8) :: tmp
t_1 = x * (1.0d0 - (y / a))
if (y <= (-4.4d+168)) then
tmp = y * (t / (a - z))
else if (y <= (-1.6d-39)) then
tmp = t_1
else if (y <= 8d-309) then
tmp = t
else if (y <= 3.5d+82) then
tmp = t_1
else
tmp = y * ((t - x) / a)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x * (1.0 - (y / a));
double tmp;
if (y <= -4.4e+168) {
tmp = y * (t / (a - z));
} else if (y <= -1.6e-39) {
tmp = t_1;
} else if (y <= 8e-309) {
tmp = t;
} else if (y <= 3.5e+82) {
tmp = t_1;
} else {
tmp = y * ((t - x) / a);
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x * (1.0 - (y / a)) tmp = 0 if y <= -4.4e+168: tmp = y * (t / (a - z)) elif y <= -1.6e-39: tmp = t_1 elif y <= 8e-309: tmp = t elif y <= 3.5e+82: tmp = t_1 else: tmp = y * ((t - x) / a) return tmp
function code(x, y, z, t, a) t_1 = Float64(x * Float64(1.0 - Float64(y / a))) tmp = 0.0 if (y <= -4.4e+168) tmp = Float64(y * Float64(t / Float64(a - z))); elseif (y <= -1.6e-39) tmp = t_1; elseif (y <= 8e-309) tmp = t; elseif (y <= 3.5e+82) tmp = t_1; else tmp = Float64(y * Float64(Float64(t - x) / a)); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x * (1.0 - (y / a)); tmp = 0.0; if (y <= -4.4e+168) tmp = y * (t / (a - z)); elseif (y <= -1.6e-39) tmp = t_1; elseif (y <= 8e-309) tmp = t; elseif (y <= 3.5e+82) tmp = t_1; else tmp = y * ((t - x) / a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x * N[(1.0 - N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -4.4e+168], N[(y * N[(t / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -1.6e-39], t$95$1, If[LessEqual[y, 8e-309], t, If[LessEqual[y, 3.5e+82], t$95$1, N[(y * N[(N[(t - x), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(1 - \frac{y}{a}\right)\\
\mathbf{if}\;y \leq -4.4 \cdot 10^{+168}:\\
\;\;\;\;y \cdot \frac{t}{a - z}\\
\mathbf{elif}\;y \leq -1.6 \cdot 10^{-39}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 8 \cdot 10^{-309}:\\
\;\;\;\;t\\
\mathbf{elif}\;y \leq 3.5 \cdot 10^{+82}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;y \cdot \frac{t - x}{a}\\
\end{array}
\end{array}
if y < -4.4000000000000004e168Initial program 87.7%
Taylor expanded in x around 0 39.9%
associate-/l*52.6%
Simplified52.6%
Taylor expanded in y around inf 39.9%
associate-/l*52.6%
Simplified52.6%
associate-/r/49.5%
Applied egg-rr49.5%
if -4.4000000000000004e168 < y < -1.5999999999999999e-39 or 8.0000000000000003e-309 < y < 3.5e82Initial program 75.6%
Taylor expanded in x around inf 48.3%
mul-1-neg48.3%
unsub-neg48.3%
Simplified48.3%
Taylor expanded in z around 0 46.9%
if -1.5999999999999999e-39 < y < 8.0000000000000003e-309Initial program 62.5%
Taylor expanded in z around inf 55.1%
if 3.5e82 < y Initial program 95.9%
Taylor expanded in a around inf 63.9%
Taylor expanded in y around inf 59.9%
div-sub61.9%
Simplified61.9%
Final simplification52.1%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* x (- 1.0 (/ y a)))))
(if (<= x -2.2e+59)
t_1
(if (<= x -5.9e-78)
(* (- t x) (/ y (- a z)))
(if (<= x 6.8e+63) (* (- y z) (/ t (- a z))) t_1)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x * (1.0 - (y / a));
double tmp;
if (x <= -2.2e+59) {
tmp = t_1;
} else if (x <= -5.9e-78) {
tmp = (t - x) * (y / (a - z));
} else if (x <= 6.8e+63) {
tmp = (y - z) * (t / (a - z));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
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) :: t_1
real(8) :: tmp
t_1 = x * (1.0d0 - (y / a))
if (x <= (-2.2d+59)) then
tmp = t_1
else if (x <= (-5.9d-78)) then
tmp = (t - x) * (y / (a - z))
else if (x <= 6.8d+63) then
tmp = (y - z) * (t / (a - z))
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 t_1 = x * (1.0 - (y / a));
double tmp;
if (x <= -2.2e+59) {
tmp = t_1;
} else if (x <= -5.9e-78) {
tmp = (t - x) * (y / (a - z));
} else if (x <= 6.8e+63) {
tmp = (y - z) * (t / (a - z));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x * (1.0 - (y / a)) tmp = 0 if x <= -2.2e+59: tmp = t_1 elif x <= -5.9e-78: tmp = (t - x) * (y / (a - z)) elif x <= 6.8e+63: tmp = (y - z) * (t / (a - z)) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x * Float64(1.0 - Float64(y / a))) tmp = 0.0 if (x <= -2.2e+59) tmp = t_1; elseif (x <= -5.9e-78) tmp = Float64(Float64(t - x) * Float64(y / Float64(a - z))); elseif (x <= 6.8e+63) tmp = Float64(Float64(y - z) * Float64(t / Float64(a - z))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x * (1.0 - (y / a)); tmp = 0.0; if (x <= -2.2e+59) tmp = t_1; elseif (x <= -5.9e-78) tmp = (t - x) * (y / (a - z)); elseif (x <= 6.8e+63) tmp = (y - z) * (t / (a - z)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x * N[(1.0 - N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -2.2e+59], t$95$1, If[LessEqual[x, -5.9e-78], N[(N[(t - x), $MachinePrecision] * N[(y / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 6.8e+63], N[(N[(y - z), $MachinePrecision] * N[(t / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(1 - \frac{y}{a}\right)\\
\mathbf{if}\;x \leq -2.2 \cdot 10^{+59}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq -5.9 \cdot 10^{-78}:\\
\;\;\;\;\left(t - x\right) \cdot \frac{y}{a - z}\\
\mathbf{elif}\;x \leq 6.8 \cdot 10^{+63}:\\
\;\;\;\;\left(y - z\right) \cdot \frac{t}{a - z}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -2.2e59 or 6.7999999999999997e63 < x Initial program 70.2%
Taylor expanded in x around inf 62.6%
mul-1-neg62.6%
unsub-neg62.6%
Simplified62.6%
Taylor expanded in z around 0 55.5%
if -2.2e59 < x < -5.9000000000000004e-78Initial program 88.1%
Taylor expanded in y around inf 78.3%
div-sub78.3%
associate-*r/67.6%
associate-/l*78.4%
associate-/r/78.4%
Simplified78.4%
if -5.9000000000000004e-78 < x < 6.7999999999999997e63Initial program 82.4%
add-cube-cbrt81.1%
pow381.1%
+-commutative81.1%
fma-udef81.1%
Applied egg-rr81.1%
Taylor expanded in x around 0 65.5%
pow-base-165.5%
associate-*l/65.0%
*-lft-identity65.0%
Simplified65.0%
Final simplification62.2%
(FPCore (x y z t a)
:precision binary64
(if (<= z -3.6e+151)
(+ t (/ a (/ z (- t x))))
(if (<= z -4.1e-61)
(* (- y z) (/ t (- a z)))
(if (<= z 9.2e-99) (+ x (/ y (/ a (- t x)))) (+ t (* y (/ x z)))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -3.6e+151) {
tmp = t + (a / (z / (t - x)));
} else if (z <= -4.1e-61) {
tmp = (y - z) * (t / (a - z));
} else if (z <= 9.2e-99) {
tmp = x + (y / (a / (t - x)));
} else {
tmp = t + (y * (x / z));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
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) :: tmp
if (z <= (-3.6d+151)) then
tmp = t + (a / (z / (t - x)))
else if (z <= (-4.1d-61)) then
tmp = (y - z) * (t / (a - z))
else if (z <= 9.2d-99) then
tmp = x + (y / (a / (t - x)))
else
tmp = t + (y * (x / z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -3.6e+151) {
tmp = t + (a / (z / (t - x)));
} else if (z <= -4.1e-61) {
tmp = (y - z) * (t / (a - z));
} else if (z <= 9.2e-99) {
tmp = x + (y / (a / (t - x)));
} else {
tmp = t + (y * (x / z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -3.6e+151: tmp = t + (a / (z / (t - x))) elif z <= -4.1e-61: tmp = (y - z) * (t / (a - z)) elif z <= 9.2e-99: tmp = x + (y / (a / (t - x))) else: tmp = t + (y * (x / z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -3.6e+151) tmp = Float64(t + Float64(a / Float64(z / Float64(t - x)))); elseif (z <= -4.1e-61) tmp = Float64(Float64(y - z) * Float64(t / Float64(a - z))); elseif (z <= 9.2e-99) tmp = Float64(x + Float64(y / Float64(a / Float64(t - x)))); else tmp = Float64(t + Float64(y * Float64(x / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -3.6e+151) tmp = t + (a / (z / (t - x))); elseif (z <= -4.1e-61) tmp = (y - z) * (t / (a - z)); elseif (z <= 9.2e-99) tmp = x + (y / (a / (t - x))); else tmp = t + (y * (x / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -3.6e+151], N[(t + N[(a / N[(z / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -4.1e-61], N[(N[(y - z), $MachinePrecision] * N[(t / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 9.2e-99], N[(x + N[(y / N[(a / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t + N[(y * N[(x / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3.6 \cdot 10^{+151}:\\
\;\;\;\;t + \frac{a}{\frac{z}{t - x}}\\
\mathbf{elif}\;z \leq -4.1 \cdot 10^{-61}:\\
\;\;\;\;\left(y - z\right) \cdot \frac{t}{a - z}\\
\mathbf{elif}\;z \leq 9.2 \cdot 10^{-99}:\\
\;\;\;\;x + \frac{y}{\frac{a}{t - x}}\\
\mathbf{else}:\\
\;\;\;\;t + y \cdot \frac{x}{z}\\
\end{array}
\end{array}
if z < -3.6e151Initial program 61.8%
Taylor expanded in z around inf 59.2%
associate--l+59.2%
distribute-lft-out--59.2%
div-sub59.2%
mul-1-neg59.2%
unsub-neg59.2%
distribute-rgt-out--59.2%
associate-/l*78.1%
Simplified78.1%
Taylor expanded in y around 0 53.0%
sub-neg53.0%
mul-1-neg53.0%
remove-double-neg53.0%
associate-/l*65.9%
Simplified65.9%
if -3.6e151 < z < -4.09999999999999999e-61Initial program 83.4%
add-cube-cbrt82.3%
pow382.2%
+-commutative82.2%
fma-udef82.1%
Applied egg-rr82.1%
Taylor expanded in x around 0 54.3%
pow-base-154.3%
associate-*l/61.0%
*-lft-identity61.0%
Simplified61.0%
if -4.09999999999999999e-61 < z < 9.1999999999999994e-99Initial program 90.7%
Taylor expanded in z around 0 78.9%
associate-/l*80.5%
Simplified80.5%
if 9.1999999999999994e-99 < z Initial program 63.9%
Taylor expanded in z around inf 72.8%
associate--l+72.8%
distribute-lft-out--72.8%
div-sub72.9%
mul-1-neg72.9%
unsub-neg72.9%
distribute-rgt-out--73.0%
associate-/l*80.1%
Simplified80.1%
Taylor expanded in y around inf 69.1%
Taylor expanded in t around 0 57.9%
mul-1-neg57.9%
*-commutative57.9%
associate-*r/59.2%
distribute-rgt-neg-in59.2%
distribute-neg-frac59.2%
Simplified59.2%
Final simplification69.0%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* x (- 1.0 (/ y a)))))
(if (<= y -5.5e-39)
t_1
(if (<= y 2e-308) t (if (<= y 9.8e+250) t_1 (* t (/ y a)))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x * (1.0 - (y / a));
double tmp;
if (y <= -5.5e-39) {
tmp = t_1;
} else if (y <= 2e-308) {
tmp = t;
} else if (y <= 9.8e+250) {
tmp = t_1;
} else {
tmp = t * (y / a);
}
return tmp;
}
real(8) function code(x, y, z, t, a)
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) :: t_1
real(8) :: tmp
t_1 = x * (1.0d0 - (y / a))
if (y <= (-5.5d-39)) then
tmp = t_1
else if (y <= 2d-308) then
tmp = t
else if (y <= 9.8d+250) then
tmp = t_1
else
tmp = t * (y / a)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x * (1.0 - (y / a));
double tmp;
if (y <= -5.5e-39) {
tmp = t_1;
} else if (y <= 2e-308) {
tmp = t;
} else if (y <= 9.8e+250) {
tmp = t_1;
} else {
tmp = t * (y / a);
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x * (1.0 - (y / a)) tmp = 0 if y <= -5.5e-39: tmp = t_1 elif y <= 2e-308: tmp = t elif y <= 9.8e+250: tmp = t_1 else: tmp = t * (y / a) return tmp
function code(x, y, z, t, a) t_1 = Float64(x * Float64(1.0 - Float64(y / a))) tmp = 0.0 if (y <= -5.5e-39) tmp = t_1; elseif (y <= 2e-308) tmp = t; elseif (y <= 9.8e+250) tmp = t_1; else tmp = Float64(t * Float64(y / a)); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x * (1.0 - (y / a)); tmp = 0.0; if (y <= -5.5e-39) tmp = t_1; elseif (y <= 2e-308) tmp = t; elseif (y <= 9.8e+250) tmp = t_1; else tmp = t * (y / a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x * N[(1.0 - N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -5.5e-39], t$95$1, If[LessEqual[y, 2e-308], t, If[LessEqual[y, 9.8e+250], t$95$1, N[(t * N[(y / a), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(1 - \frac{y}{a}\right)\\
\mathbf{if}\;y \leq -5.5 \cdot 10^{-39}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 2 \cdot 10^{-308}:\\
\;\;\;\;t\\
\mathbf{elif}\;y \leq 9.8 \cdot 10^{+250}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t \cdot \frac{y}{a}\\
\end{array}
\end{array}
if y < -5.50000000000000018e-39 or 1.9999999999999998e-308 < y < 9.79999999999999986e250Initial program 81.0%
Taylor expanded in x around inf 49.5%
mul-1-neg49.5%
unsub-neg49.5%
Simplified49.5%
Taylor expanded in z around 0 43.6%
if -5.50000000000000018e-39 < y < 1.9999999999999998e-308Initial program 62.5%
Taylor expanded in z around inf 55.1%
if 9.79999999999999986e250 < y Initial program 99.9%
Taylor expanded in a around inf 75.1%
Taylor expanded in t around inf 62.4%
div-sub62.4%
Simplified62.4%
Taylor expanded in y around inf 62.4%
Final simplification47.5%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* x (- 1.0 (/ y a)))))
(if (<= y -2.6e-39)
t_1
(if (<= y -8.2e-307) t (if (<= y 2.9e+87) t_1 (* y (/ (- t x) a)))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x * (1.0 - (y / a));
double tmp;
if (y <= -2.6e-39) {
tmp = t_1;
} else if (y <= -8.2e-307) {
tmp = t;
} else if (y <= 2.9e+87) {
tmp = t_1;
} else {
tmp = y * ((t - x) / a);
}
return tmp;
}
real(8) function code(x, y, z, t, a)
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) :: t_1
real(8) :: tmp
t_1 = x * (1.0d0 - (y / a))
if (y <= (-2.6d-39)) then
tmp = t_1
else if (y <= (-8.2d-307)) then
tmp = t
else if (y <= 2.9d+87) then
tmp = t_1
else
tmp = y * ((t - x) / a)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x * (1.0 - (y / a));
double tmp;
if (y <= -2.6e-39) {
tmp = t_1;
} else if (y <= -8.2e-307) {
tmp = t;
} else if (y <= 2.9e+87) {
tmp = t_1;
} else {
tmp = y * ((t - x) / a);
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x * (1.0 - (y / a)) tmp = 0 if y <= -2.6e-39: tmp = t_1 elif y <= -8.2e-307: tmp = t elif y <= 2.9e+87: tmp = t_1 else: tmp = y * ((t - x) / a) return tmp
function code(x, y, z, t, a) t_1 = Float64(x * Float64(1.0 - Float64(y / a))) tmp = 0.0 if (y <= -2.6e-39) tmp = t_1; elseif (y <= -8.2e-307) tmp = t; elseif (y <= 2.9e+87) tmp = t_1; else tmp = Float64(y * Float64(Float64(t - x) / a)); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x * (1.0 - (y / a)); tmp = 0.0; if (y <= -2.6e-39) tmp = t_1; elseif (y <= -8.2e-307) tmp = t; elseif (y <= 2.9e+87) tmp = t_1; else tmp = y * ((t - x) / a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x * N[(1.0 - N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -2.6e-39], t$95$1, If[LessEqual[y, -8.2e-307], t, If[LessEqual[y, 2.9e+87], t$95$1, N[(y * N[(N[(t - x), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(1 - \frac{y}{a}\right)\\
\mathbf{if}\;y \leq -2.6 \cdot 10^{-39}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -8.2 \cdot 10^{-307}:\\
\;\;\;\;t\\
\mathbf{elif}\;y \leq 2.9 \cdot 10^{+87}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;y \cdot \frac{t - x}{a}\\
\end{array}
\end{array}
if y < -2.6e-39 or -8.20000000000000064e-307 < y < 2.8999999999999998e87Initial program 78.0%
Taylor expanded in x around inf 48.8%
mul-1-neg48.8%
unsub-neg48.8%
Simplified48.8%
Taylor expanded in z around 0 43.4%
if -2.6e-39 < y < -8.20000000000000064e-307Initial program 62.5%
Taylor expanded in z around inf 55.1%
if 2.8999999999999998e87 < y Initial program 95.9%
Taylor expanded in a around inf 63.9%
Taylor expanded in y around inf 59.9%
div-sub61.9%
Simplified61.9%
Final simplification49.8%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -4.8e-65) (not (<= z 8e-99))) (+ t (/ (- x t) (/ z (- y a)))) (+ x (/ y (/ a (- t x))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -4.8e-65) || !(z <= 8e-99)) {
tmp = t + ((x - t) / (z / (y - a)));
} else {
tmp = x + (y / (a / (t - x)));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
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) :: tmp
if ((z <= (-4.8d-65)) .or. (.not. (z <= 8d-99))) then
tmp = t + ((x - t) / (z / (y - a)))
else
tmp = x + (y / (a / (t - x)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -4.8e-65) || !(z <= 8e-99)) {
tmp = t + ((x - t) / (z / (y - a)));
} else {
tmp = x + (y / (a / (t - x)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -4.8e-65) or not (z <= 8e-99): tmp = t + ((x - t) / (z / (y - a))) else: tmp = x + (y / (a / (t - x))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -4.8e-65) || !(z <= 8e-99)) tmp = Float64(t + Float64(Float64(x - t) / Float64(z / Float64(y - a)))); else tmp = Float64(x + Float64(y / Float64(a / Float64(t - x)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((z <= -4.8e-65) || ~((z <= 8e-99))) tmp = t + ((x - t) / (z / (y - a))); else tmp = x + (y / (a / (t - x))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -4.8e-65], N[Not[LessEqual[z, 8e-99]], $MachinePrecision]], N[(t + N[(N[(x - t), $MachinePrecision] / N[(z / N[(y - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y / N[(a / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -4.8 \cdot 10^{-65} \lor \neg \left(z \leq 8 \cdot 10^{-99}\right):\\
\;\;\;\;t + \frac{x - t}{\frac{z}{y - a}}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y}{\frac{a}{t - x}}\\
\end{array}
\end{array}
if z < -4.8000000000000003e-65 or 8.0000000000000002e-99 < z Initial program 68.7%
Taylor expanded in z around inf 68.4%
associate--l+68.4%
distribute-lft-out--68.4%
div-sub68.5%
mul-1-neg68.5%
unsub-neg68.5%
distribute-rgt-out--68.5%
associate-/l*78.0%
Simplified78.0%
if -4.8000000000000003e-65 < z < 8.0000000000000002e-99Initial program 90.7%
Taylor expanded in z around 0 78.9%
associate-/l*80.5%
Simplified80.5%
Final simplification79.0%
(FPCore (x y z t a) :precision binary64 (if (<= a -3.15e+62) x (if (<= a 3.5e-45) t (if (<= a 4400000000.0) (* t (/ y a)) x))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -3.15e+62) {
tmp = x;
} else if (a <= 3.5e-45) {
tmp = t;
} else if (a <= 4400000000.0) {
tmp = t * (y / a);
} else {
tmp = x;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
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) :: tmp
if (a <= (-3.15d+62)) then
tmp = x
else if (a <= 3.5d-45) then
tmp = t
else if (a <= 4400000000.0d0) then
tmp = t * (y / a)
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -3.15e+62) {
tmp = x;
} else if (a <= 3.5e-45) {
tmp = t;
} else if (a <= 4400000000.0) {
tmp = t * (y / a);
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -3.15e+62: tmp = x elif a <= 3.5e-45: tmp = t elif a <= 4400000000.0: tmp = t * (y / a) else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -3.15e+62) tmp = x; elseif (a <= 3.5e-45) tmp = t; elseif (a <= 4400000000.0) tmp = Float64(t * Float64(y / a)); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -3.15e+62) tmp = x; elseif (a <= 3.5e-45) tmp = t; elseif (a <= 4400000000.0) tmp = t * (y / a); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -3.15e+62], x, If[LessEqual[a, 3.5e-45], t, If[LessEqual[a, 4400000000.0], N[(t * N[(y / a), $MachinePrecision]), $MachinePrecision], x]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -3.15 \cdot 10^{+62}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq 3.5 \cdot 10^{-45}:\\
\;\;\;\;t\\
\mathbf{elif}\;a \leq 4400000000:\\
\;\;\;\;t \cdot \frac{y}{a}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -3.14999999999999999e62 or 4.4e9 < a Initial program 86.1%
Taylor expanded in a around inf 49.0%
if -3.14999999999999999e62 < a < 3.5e-45Initial program 70.7%
Taylor expanded in z around inf 35.3%
if 3.5e-45 < a < 4.4e9Initial program 93.1%
Taylor expanded in a around inf 73.0%
Taylor expanded in t around inf 53.7%
div-sub53.7%
Simplified53.7%
Taylor expanded in y around inf 54.3%
Final simplification41.4%
(FPCore (x y z t a) :precision binary64 (if (or (<= x -5.5e+60) (not (<= x 6.3e+66))) (* x (- 1.0 (/ y a))) (* (- y z) (/ t (- a z)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((x <= -5.5e+60) || !(x <= 6.3e+66)) {
tmp = x * (1.0 - (y / a));
} else {
tmp = (y - z) * (t / (a - z));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
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) :: tmp
if ((x <= (-5.5d+60)) .or. (.not. (x <= 6.3d+66))) then
tmp = x * (1.0d0 - (y / a))
else
tmp = (y - z) * (t / (a - z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((x <= -5.5e+60) || !(x <= 6.3e+66)) {
tmp = x * (1.0 - (y / a));
} else {
tmp = (y - z) * (t / (a - z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (x <= -5.5e+60) or not (x <= 6.3e+66): tmp = x * (1.0 - (y / a)) else: tmp = (y - z) * (t / (a - z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((x <= -5.5e+60) || !(x <= 6.3e+66)) tmp = Float64(x * Float64(1.0 - Float64(y / a))); else tmp = Float64(Float64(y - z) * Float64(t / Float64(a - z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((x <= -5.5e+60) || ~((x <= 6.3e+66))) tmp = x * (1.0 - (y / a)); else tmp = (y - z) * (t / (a - z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[x, -5.5e+60], N[Not[LessEqual[x, 6.3e+66]], $MachinePrecision]], N[(x * N[(1.0 - N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y - z), $MachinePrecision] * N[(t / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -5.5 \cdot 10^{+60} \lor \neg \left(x \leq 6.3 \cdot 10^{+66}\right):\\
\;\;\;\;x \cdot \left(1 - \frac{y}{a}\right)\\
\mathbf{else}:\\
\;\;\;\;\left(y - z\right) \cdot \frac{t}{a - z}\\
\end{array}
\end{array}
if x < -5.5000000000000001e60 or 6.2999999999999998e66 < x Initial program 70.0%
Taylor expanded in x around inf 63.2%
mul-1-neg63.2%
unsub-neg63.2%
Simplified63.2%
Taylor expanded in z around 0 55.9%
if -5.5000000000000001e60 < x < 6.2999999999999998e66Initial program 83.5%
add-cube-cbrt82.3%
pow382.3%
+-commutative82.3%
fma-udef82.3%
Applied egg-rr82.3%
Taylor expanded in x around 0 61.3%
pow-base-161.3%
associate-*l/64.0%
*-lft-identity64.0%
Simplified64.0%
Final simplification60.5%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -1.3e-63) (not (<= z 3.45e-99))) (+ t (* y (/ (- x t) z))) (+ x (/ y (/ a (- t x))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -1.3e-63) || !(z <= 3.45e-99)) {
tmp = t + (y * ((x - t) / z));
} else {
tmp = x + (y / (a / (t - x)));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
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) :: tmp
if ((z <= (-1.3d-63)) .or. (.not. (z <= 3.45d-99))) then
tmp = t + (y * ((x - t) / z))
else
tmp = x + (y / (a / (t - x)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -1.3e-63) || !(z <= 3.45e-99)) {
tmp = t + (y * ((x - t) / z));
} else {
tmp = x + (y / (a / (t - x)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -1.3e-63) or not (z <= 3.45e-99): tmp = t + (y * ((x - t) / z)) else: tmp = x + (y / (a / (t - x))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -1.3e-63) || !(z <= 3.45e-99)) tmp = Float64(t + Float64(y * Float64(Float64(x - t) / z))); else tmp = Float64(x + Float64(y / Float64(a / Float64(t - x)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((z <= -1.3e-63) || ~((z <= 3.45e-99))) tmp = t + (y * ((x - t) / z)); else tmp = x + (y / (a / (t - x))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -1.3e-63], N[Not[LessEqual[z, 3.45e-99]], $MachinePrecision]], N[(t + N[(y * N[(N[(x - t), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y / N[(a / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.3 \cdot 10^{-63} \lor \neg \left(z \leq 3.45 \cdot 10^{-99}\right):\\
\;\;\;\;t + y \cdot \frac{x - t}{z}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y}{\frac{a}{t - x}}\\
\end{array}
\end{array}
if z < -1.3000000000000001e-63 or 3.4500000000000002e-99 < z Initial program 68.7%
Taylor expanded in z around inf 68.4%
associate--l+68.4%
distribute-lft-out--68.4%
div-sub68.5%
mul-1-neg68.5%
unsub-neg68.5%
distribute-rgt-out--68.5%
associate-/l*78.0%
Simplified78.0%
Taylor expanded in y around inf 68.3%
associate-/r/67.5%
Applied egg-rr67.5%
if -1.3000000000000001e-63 < z < 3.4500000000000002e-99Initial program 90.7%
Taylor expanded in z around 0 78.9%
associate-/l*80.5%
Simplified80.5%
Final simplification72.8%
(FPCore (x y z t a) :precision binary64 (if (<= z -2e-61) (+ t (* y (/ (- x t) z))) (if (<= z 2.75e-99) (+ x (/ y (/ a (- t x)))) (+ t (/ (- x t) (/ z y))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -2e-61) {
tmp = t + (y * ((x - t) / z));
} else if (z <= 2.75e-99) {
tmp = x + (y / (a / (t - x)));
} else {
tmp = t + ((x - t) / (z / y));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
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) :: tmp
if (z <= (-2d-61)) then
tmp = t + (y * ((x - t) / z))
else if (z <= 2.75d-99) then
tmp = x + (y / (a / (t - x)))
else
tmp = t + ((x - t) / (z / y))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -2e-61) {
tmp = t + (y * ((x - t) / z));
} else if (z <= 2.75e-99) {
tmp = x + (y / (a / (t - x)));
} else {
tmp = t + ((x - t) / (z / y));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -2e-61: tmp = t + (y * ((x - t) / z)) elif z <= 2.75e-99: tmp = x + (y / (a / (t - x))) else: tmp = t + ((x - t) / (z / y)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -2e-61) tmp = Float64(t + Float64(y * Float64(Float64(x - t) / z))); elseif (z <= 2.75e-99) tmp = Float64(x + Float64(y / Float64(a / Float64(t - x)))); else tmp = Float64(t + Float64(Float64(x - t) / Float64(z / y))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -2e-61) tmp = t + (y * ((x - t) / z)); elseif (z <= 2.75e-99) tmp = x + (y / (a / (t - x))); else tmp = t + ((x - t) / (z / y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -2e-61], N[(t + N[(y * N[(N[(x - t), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.75e-99], N[(x + N[(y / N[(a / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t + N[(N[(x - t), $MachinePrecision] / N[(z / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2 \cdot 10^{-61}:\\
\;\;\;\;t + y \cdot \frac{x - t}{z}\\
\mathbf{elif}\;z \leq 2.75 \cdot 10^{-99}:\\
\;\;\;\;x + \frac{y}{\frac{a}{t - x}}\\
\mathbf{else}:\\
\;\;\;\;t + \frac{x - t}{\frac{z}{y}}\\
\end{array}
\end{array}
if z < -2.0000000000000001e-61Initial program 74.1%
Taylor expanded in z around inf 63.6%
associate--l+63.6%
distribute-lft-out--63.6%
div-sub63.6%
mul-1-neg63.6%
unsub-neg63.6%
distribute-rgt-out--63.6%
associate-/l*75.7%
Simplified75.7%
Taylor expanded in y around inf 67.5%
associate-/r/67.5%
Applied egg-rr67.5%
if -2.0000000000000001e-61 < z < 2.74999999999999995e-99Initial program 90.7%
Taylor expanded in z around 0 78.9%
associate-/l*80.5%
Simplified80.5%
if 2.74999999999999995e-99 < z Initial program 63.9%
Taylor expanded in z around inf 72.8%
associate--l+72.8%
distribute-lft-out--72.8%
div-sub72.9%
mul-1-neg72.9%
unsub-neg72.9%
distribute-rgt-out--73.0%
associate-/l*80.1%
Simplified80.1%
Taylor expanded in y around inf 69.1%
Final simplification73.3%
(FPCore (x y z t a) :precision binary64 (if (<= a -1.1e+64) x (if (<= a 6.4e+155) t x)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -1.1e+64) {
tmp = x;
} else if (a <= 6.4e+155) {
tmp = t;
} else {
tmp = x;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
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) :: tmp
if (a <= (-1.1d+64)) then
tmp = x
else if (a <= 6.4d+155) then
tmp = t
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -1.1e+64) {
tmp = x;
} else if (a <= 6.4e+155) {
tmp = t;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -1.1e+64: tmp = x elif a <= 6.4e+155: tmp = t else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -1.1e+64) tmp = x; elseif (a <= 6.4e+155) tmp = t; else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -1.1e+64) tmp = x; elseif (a <= 6.4e+155) tmp = t; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -1.1e+64], x, If[LessEqual[a, 6.4e+155], t, x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.1 \cdot 10^{+64}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq 6.4 \cdot 10^{+155}:\\
\;\;\;\;t\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -1.10000000000000001e64 or 6.40000000000000024e155 < a Initial program 87.1%
Taylor expanded in a around inf 52.9%
if -1.10000000000000001e64 < a < 6.40000000000000024e155Initial program 73.8%
Taylor expanded in z around inf 33.7%
Final simplification39.3%
(FPCore (x y z t a) :precision binary64 t)
double code(double x, double y, double z, double t, double a) {
return t;
}
real(8) function code(x, y, z, t, a)
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
code = t
end function
public static double code(double x, double y, double z, double t, double a) {
return t;
}
def code(x, y, z, t, a): return t
function code(x, y, z, t, a) return t end
function tmp = code(x, y, z, t, a) tmp = t; end
code[x_, y_, z_, t_, a_] := t
\begin{array}{l}
\\
t
\end{array}
Initial program 77.7%
Taylor expanded in z around inf 26.4%
Final simplification26.4%
herbie shell --seed 2024040
(FPCore (x y z t a)
:name "Numeric.Signal:interpolate from hsignal-0.2.7.1"
:precision binary64
(+ x (* (- y z) (/ (- t x) (- a z)))))