
(FPCore (x y z t a) :precision binary64 (- (+ x y) (/ (* (- z t) y) (- a t))))
double code(double x, double y, double z, double t, double a) {
return (x + y) - (((z - t) * y) / (a - 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 = (x + y) - (((z - t) * y) / (a - t))
end function
public static double code(double x, double y, double z, double t, double a) {
return (x + y) - (((z - t) * y) / (a - t));
}
def code(x, y, z, t, a): return (x + y) - (((z - t) * y) / (a - t))
function code(x, y, z, t, a) return Float64(Float64(x + y) - Float64(Float64(Float64(z - t) * y) / Float64(a - t))) end
function tmp = code(x, y, z, t, a) tmp = (x + y) - (((z - t) * y) / (a - t)); end
code[x_, y_, z_, t_, a_] := N[(N[(x + y), $MachinePrecision] - N[(N[(N[(z - t), $MachinePrecision] * y), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x + y\right) - \frac{\left(z - t\right) \cdot y}{a - t}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 19 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a) :precision binary64 (- (+ x y) (/ (* (- z t) y) (- a t))))
double code(double x, double y, double z, double t, double a) {
return (x + y) - (((z - t) * y) / (a - 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 = (x + y) - (((z - t) * y) / (a - t))
end function
public static double code(double x, double y, double z, double t, double a) {
return (x + y) - (((z - t) * y) / (a - t));
}
def code(x, y, z, t, a): return (x + y) - (((z - t) * y) / (a - t))
function code(x, y, z, t, a) return Float64(Float64(x + y) - Float64(Float64(Float64(z - t) * y) / Float64(a - t))) end
function tmp = code(x, y, z, t, a) tmp = (x + y) - (((z - t) * y) / (a - t)); end
code[x_, y_, z_, t_, a_] := N[(N[(x + y), $MachinePrecision] - N[(N[(N[(z - t), $MachinePrecision] * y), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x + y\right) - \frac{\left(z - t\right) \cdot y}{a - t}
\end{array}
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ (+ x y) (/ (* y (- t z)) (- a t)))))
(if (<= t_1 (- INFINITY))
(+ (- x (/ y (/ t a))) (/ y (/ t z)))
(if (<= t_1 -5e-292)
(+ (+ x y) (/ -1.0 (/ (- a t) (* y (- z t)))))
(if (<= t_1 0.0)
(+ x (/ (* y (- z a)) t))
(if (<= t_1 5e+305)
(- (+ x y) (* y (/ (- z t) (- a t))))
(- x (* z (/ y (- a t))))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = (x + y) + ((y * (t - z)) / (a - t));
double tmp;
if (t_1 <= -((double) INFINITY)) {
tmp = (x - (y / (t / a))) + (y / (t / z));
} else if (t_1 <= -5e-292) {
tmp = (x + y) + (-1.0 / ((a - t) / (y * (z - t))));
} else if (t_1 <= 0.0) {
tmp = x + ((y * (z - a)) / t);
} else if (t_1 <= 5e+305) {
tmp = (x + y) - (y * ((z - t) / (a - t)));
} else {
tmp = x - (z * (y / (a - t)));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a) {
double t_1 = (x + y) + ((y * (t - z)) / (a - t));
double tmp;
if (t_1 <= -Double.POSITIVE_INFINITY) {
tmp = (x - (y / (t / a))) + (y / (t / z));
} else if (t_1 <= -5e-292) {
tmp = (x + y) + (-1.0 / ((a - t) / (y * (z - t))));
} else if (t_1 <= 0.0) {
tmp = x + ((y * (z - a)) / t);
} else if (t_1 <= 5e+305) {
tmp = (x + y) - (y * ((z - t) / (a - t)));
} else {
tmp = x - (z * (y / (a - t)));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = (x + y) + ((y * (t - z)) / (a - t)) tmp = 0 if t_1 <= -math.inf: tmp = (x - (y / (t / a))) + (y / (t / z)) elif t_1 <= -5e-292: tmp = (x + y) + (-1.0 / ((a - t) / (y * (z - t)))) elif t_1 <= 0.0: tmp = x + ((y * (z - a)) / t) elif t_1 <= 5e+305: tmp = (x + y) - (y * ((z - t) / (a - t))) else: tmp = x - (z * (y / (a - t))) return tmp
function code(x, y, z, t, a) t_1 = Float64(Float64(x + y) + Float64(Float64(y * Float64(t - z)) / Float64(a - t))) tmp = 0.0 if (t_1 <= Float64(-Inf)) tmp = Float64(Float64(x - Float64(y / Float64(t / a))) + Float64(y / Float64(t / z))); elseif (t_1 <= -5e-292) tmp = Float64(Float64(x + y) + Float64(-1.0 / Float64(Float64(a - t) / Float64(y * Float64(z - t))))); elseif (t_1 <= 0.0) tmp = Float64(x + Float64(Float64(y * Float64(z - a)) / t)); elseif (t_1 <= 5e+305) tmp = Float64(Float64(x + y) - Float64(y * Float64(Float64(z - t) / Float64(a - t)))); else tmp = Float64(x - Float64(z * Float64(y / Float64(a - t)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = (x + y) + ((y * (t - z)) / (a - t)); tmp = 0.0; if (t_1 <= -Inf) tmp = (x - (y / (t / a))) + (y / (t / z)); elseif (t_1 <= -5e-292) tmp = (x + y) + (-1.0 / ((a - t) / (y * (z - t)))); elseif (t_1 <= 0.0) tmp = x + ((y * (z - a)) / t); elseif (t_1 <= 5e+305) tmp = (x + y) - (y * ((z - t) / (a - t))); else tmp = x - (z * (y / (a - t))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(x + y), $MachinePrecision] + N[(N[(y * N[(t - z), $MachinePrecision]), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, (-Infinity)], N[(N[(x - N[(y / N[(t / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y / N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, -5e-292], N[(N[(x + y), $MachinePrecision] + N[(-1.0 / N[(N[(a - t), $MachinePrecision] / N[(y * N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 0.0], N[(x + N[(N[(y * N[(z - a), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 5e+305], N[(N[(x + y), $MachinePrecision] - N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x - N[(z * N[(y / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x + y\right) + \frac{y \cdot \left(t - z\right)}{a - t}\\
\mathbf{if}\;t_1 \leq -\infty:\\
\;\;\;\;\left(x - \frac{y}{\frac{t}{a}}\right) + \frac{y}{\frac{t}{z}}\\
\mathbf{elif}\;t_1 \leq -5 \cdot 10^{-292}:\\
\;\;\;\;\left(x + y\right) + \frac{-1}{\frac{a - t}{y \cdot \left(z - t\right)}}\\
\mathbf{elif}\;t_1 \leq 0:\\
\;\;\;\;x + \frac{y \cdot \left(z - a\right)}{t}\\
\mathbf{elif}\;t_1 \leq 5 \cdot 10^{+305}:\\
\;\;\;\;\left(x + y\right) - y \cdot \frac{z - t}{a - t}\\
\mathbf{else}:\\
\;\;\;\;x - z \cdot \frac{y}{a - t}\\
\end{array}
\end{array}
if (-.f64 (+.f64 x y) (/.f64 (*.f64 (-.f64 z t) y) (-.f64 a t))) < -inf.0Initial program 32.2%
associate-*l/56.1%
Simplified56.1%
Taylor expanded in t around inf 63.4%
sub-neg63.4%
+-commutative63.4%
mul-1-neg63.4%
unsub-neg63.4%
associate-/l*70.6%
mul-1-neg70.6%
remove-double-neg70.6%
associate-/l*85.0%
Simplified85.0%
if -inf.0 < (-.f64 (+.f64 x y) (/.f64 (*.f64 (-.f64 z t) y) (-.f64 a t))) < -4.99999999999999981e-292Initial program 97.9%
associate-*l/96.0%
Simplified96.0%
associate-*l/97.9%
clear-num97.9%
*-commutative97.9%
Applied egg-rr97.9%
if -4.99999999999999981e-292 < (-.f64 (+.f64 x y) (/.f64 (*.f64 (-.f64 z t) y) (-.f64 a t))) < 0.0Initial program 5.5%
associate-*l/5.5%
Simplified5.5%
Taylor expanded in t around -inf 99.8%
+-commutative99.8%
mul-1-neg99.8%
unsub-neg99.8%
distribute-lft-out--99.8%
Simplified99.8%
if 0.0 < (-.f64 (+.f64 x y) (/.f64 (*.f64 (-.f64 z t) y) (-.f64 a t))) < 5.00000000000000009e305Initial program 96.4%
associate-*l/97.5%
Simplified97.5%
if 5.00000000000000009e305 < (-.f64 (+.f64 x y) (/.f64 (*.f64 (-.f64 z t) y) (-.f64 a t))) Initial program 38.6%
associate--l+38.6%
sub-neg38.6%
+-commutative38.6%
associate-/l*74.9%
distribute-neg-frac74.9%
associate-/r/74.9%
fma-def74.9%
sub-neg74.9%
+-commutative74.9%
distribute-neg-in74.9%
unsub-neg74.9%
remove-double-neg74.9%
Simplified74.9%
Taylor expanded in z around inf 65.3%
mul-1-neg65.3%
*-commutative65.3%
associate-*r/79.8%
distribute-lft-neg-in79.8%
Simplified79.8%
Final simplification94.3%
(FPCore (x y z t a) :precision binary64 (if (or (<= t -2.9e+190) (not (<= t 1e+61))) (+ (- x (/ y (/ t a))) (/ y (/ t z))) (+ x (fma (/ (- t z) (- a t)) y y))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -2.9e+190) || !(t <= 1e+61)) {
tmp = (x - (y / (t / a))) + (y / (t / z));
} else {
tmp = x + fma(((t - z) / (a - t)), y, y);
}
return tmp;
}
function code(x, y, z, t, a) tmp = 0.0 if ((t <= -2.9e+190) || !(t <= 1e+61)) tmp = Float64(Float64(x - Float64(y / Float64(t / a))) + Float64(y / Float64(t / z))); else tmp = Float64(x + fma(Float64(Float64(t - z) / Float64(a - t)), y, y)); end return tmp end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[t, -2.9e+190], N[Not[LessEqual[t, 1e+61]], $MachinePrecision]], N[(N[(x - N[(y / N[(t / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y / N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(N[(t - z), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision] * y + y), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.9 \cdot 10^{+190} \lor \neg \left(t \leq 10^{+61}\right):\\
\;\;\;\;\left(x - \frac{y}{\frac{t}{a}}\right) + \frac{y}{\frac{t}{z}}\\
\mathbf{else}:\\
\;\;\;\;x + \mathsf{fma}\left(\frac{t - z}{a - t}, y, y\right)\\
\end{array}
\end{array}
if t < -2.89999999999999989e190 or 9.99999999999999949e60 < t Initial program 53.8%
associate-*l/60.7%
Simplified60.7%
Taylor expanded in t around inf 85.3%
sub-neg85.3%
+-commutative85.3%
mul-1-neg85.3%
unsub-neg85.3%
associate-/l*87.6%
mul-1-neg87.6%
remove-double-neg87.6%
associate-/l*94.4%
Simplified94.4%
if -2.89999999999999989e190 < t < 9.99999999999999949e60Initial program 86.8%
associate--l+87.9%
sub-neg87.9%
+-commutative87.9%
associate-/l*91.1%
distribute-neg-frac91.1%
associate-/r/92.8%
fma-def92.9%
sub-neg92.9%
+-commutative92.9%
distribute-neg-in92.9%
unsub-neg92.9%
remove-double-neg92.9%
Simplified92.9%
Final simplification93.3%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ (+ x y) (/ (* y (- t z)) (- a t)))))
(if (<= t_1 (- INFINITY))
(+ (- x (/ y (/ t a))) (/ y (/ t z)))
(if (<= t_1 -5e-292)
t_1
(if (<= t_1 0.0)
(+ x (/ (* y (- z a)) t))
(if (<= t_1 5e+305)
(- (+ x y) (* y (/ (- z t) (- a t))))
(- x (* z (/ y (- a t))))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = (x + y) + ((y * (t - z)) / (a - t));
double tmp;
if (t_1 <= -((double) INFINITY)) {
tmp = (x - (y / (t / a))) + (y / (t / z));
} else if (t_1 <= -5e-292) {
tmp = t_1;
} else if (t_1 <= 0.0) {
tmp = x + ((y * (z - a)) / t);
} else if (t_1 <= 5e+305) {
tmp = (x + y) - (y * ((z - t) / (a - t)));
} else {
tmp = x - (z * (y / (a - t)));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a) {
double t_1 = (x + y) + ((y * (t - z)) / (a - t));
double tmp;
if (t_1 <= -Double.POSITIVE_INFINITY) {
tmp = (x - (y / (t / a))) + (y / (t / z));
} else if (t_1 <= -5e-292) {
tmp = t_1;
} else if (t_1 <= 0.0) {
tmp = x + ((y * (z - a)) / t);
} else if (t_1 <= 5e+305) {
tmp = (x + y) - (y * ((z - t) / (a - t)));
} else {
tmp = x - (z * (y / (a - t)));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = (x + y) + ((y * (t - z)) / (a - t)) tmp = 0 if t_1 <= -math.inf: tmp = (x - (y / (t / a))) + (y / (t / z)) elif t_1 <= -5e-292: tmp = t_1 elif t_1 <= 0.0: tmp = x + ((y * (z - a)) / t) elif t_1 <= 5e+305: tmp = (x + y) - (y * ((z - t) / (a - t))) else: tmp = x - (z * (y / (a - t))) return tmp
function code(x, y, z, t, a) t_1 = Float64(Float64(x + y) + Float64(Float64(y * Float64(t - z)) / Float64(a - t))) tmp = 0.0 if (t_1 <= Float64(-Inf)) tmp = Float64(Float64(x - Float64(y / Float64(t / a))) + Float64(y / Float64(t / z))); elseif (t_1 <= -5e-292) tmp = t_1; elseif (t_1 <= 0.0) tmp = Float64(x + Float64(Float64(y * Float64(z - a)) / t)); elseif (t_1 <= 5e+305) tmp = Float64(Float64(x + y) - Float64(y * Float64(Float64(z - t) / Float64(a - t)))); else tmp = Float64(x - Float64(z * Float64(y / Float64(a - t)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = (x + y) + ((y * (t - z)) / (a - t)); tmp = 0.0; if (t_1 <= -Inf) tmp = (x - (y / (t / a))) + (y / (t / z)); elseif (t_1 <= -5e-292) tmp = t_1; elseif (t_1 <= 0.0) tmp = x + ((y * (z - a)) / t); elseif (t_1 <= 5e+305) tmp = (x + y) - (y * ((z - t) / (a - t))); else tmp = x - (z * (y / (a - t))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(x + y), $MachinePrecision] + N[(N[(y * N[(t - z), $MachinePrecision]), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, (-Infinity)], N[(N[(x - N[(y / N[(t / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y / N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, -5e-292], t$95$1, If[LessEqual[t$95$1, 0.0], N[(x + N[(N[(y * N[(z - a), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 5e+305], N[(N[(x + y), $MachinePrecision] - N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x - N[(z * N[(y / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x + y\right) + \frac{y \cdot \left(t - z\right)}{a - t}\\
\mathbf{if}\;t_1 \leq -\infty:\\
\;\;\;\;\left(x - \frac{y}{\frac{t}{a}}\right) + \frac{y}{\frac{t}{z}}\\
\mathbf{elif}\;t_1 \leq -5 \cdot 10^{-292}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t_1 \leq 0:\\
\;\;\;\;x + \frac{y \cdot \left(z - a\right)}{t}\\
\mathbf{elif}\;t_1 \leq 5 \cdot 10^{+305}:\\
\;\;\;\;\left(x + y\right) - y \cdot \frac{z - t}{a - t}\\
\mathbf{else}:\\
\;\;\;\;x - z \cdot \frac{y}{a - t}\\
\end{array}
\end{array}
if (-.f64 (+.f64 x y) (/.f64 (*.f64 (-.f64 z t) y) (-.f64 a t))) < -inf.0Initial program 32.2%
associate-*l/56.1%
Simplified56.1%
Taylor expanded in t around inf 63.4%
sub-neg63.4%
+-commutative63.4%
mul-1-neg63.4%
unsub-neg63.4%
associate-/l*70.6%
mul-1-neg70.6%
remove-double-neg70.6%
associate-/l*85.0%
Simplified85.0%
if -inf.0 < (-.f64 (+.f64 x y) (/.f64 (*.f64 (-.f64 z t) y) (-.f64 a t))) < -4.99999999999999981e-292Initial program 97.9%
if -4.99999999999999981e-292 < (-.f64 (+.f64 x y) (/.f64 (*.f64 (-.f64 z t) y) (-.f64 a t))) < 0.0Initial program 5.5%
associate-*l/5.5%
Simplified5.5%
Taylor expanded in t around -inf 99.8%
+-commutative99.8%
mul-1-neg99.8%
unsub-neg99.8%
distribute-lft-out--99.8%
Simplified99.8%
if 0.0 < (-.f64 (+.f64 x y) (/.f64 (*.f64 (-.f64 z t) y) (-.f64 a t))) < 5.00000000000000009e305Initial program 96.4%
associate-*l/97.5%
Simplified97.5%
if 5.00000000000000009e305 < (-.f64 (+.f64 x y) (/.f64 (*.f64 (-.f64 z t) y) (-.f64 a t))) Initial program 38.6%
associate--l+38.6%
sub-neg38.6%
+-commutative38.6%
associate-/l*74.9%
distribute-neg-frac74.9%
associate-/r/74.9%
fma-def74.9%
sub-neg74.9%
+-commutative74.9%
distribute-neg-in74.9%
unsub-neg74.9%
remove-double-neg74.9%
Simplified74.9%
Taylor expanded in z around inf 65.3%
mul-1-neg65.3%
*-commutative65.3%
associate-*r/79.8%
distribute-lft-neg-in79.8%
Simplified79.8%
Final simplification94.3%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ (- x (/ y (/ t a))) (/ y (/ t z)))))
(if (<= t -8e+190)
t_1
(if (<= t -1.05e+77)
(+ x (+ y (/ (- t z) (/ (- a t) y))))
(if (<= t -1.9e+49)
(- x (* z (/ y (- a t))))
(if (<= t 8.5e+58) (- (+ x y) (* y (/ z (- a t)))) t_1))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = (x - (y / (t / a))) + (y / (t / z));
double tmp;
if (t <= -8e+190) {
tmp = t_1;
} else if (t <= -1.05e+77) {
tmp = x + (y + ((t - z) / ((a - t) / y)));
} else if (t <= -1.9e+49) {
tmp = x - (z * (y / (a - t)));
} else if (t <= 8.5e+58) {
tmp = (x + y) - (y * (z / (a - t)));
} 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 - (y / (t / a))) + (y / (t / z))
if (t <= (-8d+190)) then
tmp = t_1
else if (t <= (-1.05d+77)) then
tmp = x + (y + ((t - z) / ((a - t) / y)))
else if (t <= (-1.9d+49)) then
tmp = x - (z * (y / (a - t)))
else if (t <= 8.5d+58) then
tmp = (x + y) - (y * (z / (a - t)))
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 - (y / (t / a))) + (y / (t / z));
double tmp;
if (t <= -8e+190) {
tmp = t_1;
} else if (t <= -1.05e+77) {
tmp = x + (y + ((t - z) / ((a - t) / y)));
} else if (t <= -1.9e+49) {
tmp = x - (z * (y / (a - t)));
} else if (t <= 8.5e+58) {
tmp = (x + y) - (y * (z / (a - t)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = (x - (y / (t / a))) + (y / (t / z)) tmp = 0 if t <= -8e+190: tmp = t_1 elif t <= -1.05e+77: tmp = x + (y + ((t - z) / ((a - t) / y))) elif t <= -1.9e+49: tmp = x - (z * (y / (a - t))) elif t <= 8.5e+58: tmp = (x + y) - (y * (z / (a - t))) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(Float64(x - Float64(y / Float64(t / a))) + Float64(y / Float64(t / z))) tmp = 0.0 if (t <= -8e+190) tmp = t_1; elseif (t <= -1.05e+77) tmp = Float64(x + Float64(y + Float64(Float64(t - z) / Float64(Float64(a - t) / y)))); elseif (t <= -1.9e+49) tmp = Float64(x - Float64(z * Float64(y / Float64(a - t)))); elseif (t <= 8.5e+58) tmp = Float64(Float64(x + y) - Float64(y * Float64(z / Float64(a - t)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = (x - (y / (t / a))) + (y / (t / z)); tmp = 0.0; if (t <= -8e+190) tmp = t_1; elseif (t <= -1.05e+77) tmp = x + (y + ((t - z) / ((a - t) / y))); elseif (t <= -1.9e+49) tmp = x - (z * (y / (a - t))); elseif (t <= 8.5e+58) tmp = (x + y) - (y * (z / (a - t))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(x - N[(y / N[(t / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y / N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -8e+190], t$95$1, If[LessEqual[t, -1.05e+77], N[(x + N[(y + N[(N[(t - z), $MachinePrecision] / N[(N[(a - t), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -1.9e+49], N[(x - N[(z * N[(y / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 8.5e+58], N[(N[(x + y), $MachinePrecision] - N[(y * N[(z / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x - \frac{y}{\frac{t}{a}}\right) + \frac{y}{\frac{t}{z}}\\
\mathbf{if}\;t \leq -8 \cdot 10^{+190}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -1.05 \cdot 10^{+77}:\\
\;\;\;\;x + \left(y + \frac{t - z}{\frac{a - t}{y}}\right)\\
\mathbf{elif}\;t \leq -1.9 \cdot 10^{+49}:\\
\;\;\;\;x - z \cdot \frac{y}{a - t}\\
\mathbf{elif}\;t \leq 8.5 \cdot 10^{+58}:\\
\;\;\;\;\left(x + y\right) - y \cdot \frac{z}{a - t}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if t < -8.0000000000000006e190 or 8.50000000000000015e58 < t Initial program 53.8%
associate-*l/60.7%
Simplified60.7%
Taylor expanded in t around inf 85.3%
sub-neg85.3%
+-commutative85.3%
mul-1-neg85.3%
unsub-neg85.3%
associate-/l*87.6%
mul-1-neg87.6%
remove-double-neg87.6%
associate-/l*94.4%
Simplified94.4%
if -8.0000000000000006e190 < t < -1.0499999999999999e77Initial program 70.8%
associate--l+75.0%
associate-/l*89.4%
Simplified89.4%
if -1.0499999999999999e77 < t < -1.8999999999999999e49Initial program 52.7%
associate--l+52.8%
sub-neg52.8%
+-commutative52.8%
associate-/l*62.6%
distribute-neg-frac62.6%
associate-/r/62.8%
fma-def63.2%
sub-neg63.2%
+-commutative63.2%
distribute-neg-in63.2%
unsub-neg63.2%
remove-double-neg63.2%
Simplified63.2%
Taylor expanded in z around inf 88.6%
mul-1-neg88.6%
*-commutative88.6%
associate-*r/99.6%
distribute-lft-neg-in99.6%
Simplified99.6%
if -1.8999999999999999e49 < t < 8.50000000000000015e58Initial program 91.9%
associate-*l/94.0%
Simplified94.0%
Taylor expanded in z around inf 93.9%
Final simplification93.8%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ (- x (/ y (/ t a))) (/ y (/ t z)))))
(if (<= t -2.8e+190)
t_1
(if (<= t -1.05e+77)
(+ x (+ y (/ (- t z) (/ (- a t) y))))
(if (<= t -9e+34)
(- x (* z (/ y (- a t))))
(if (<= t 3.6e+55) (- (+ x y) (* y (/ (- z t) (- a t)))) t_1))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = (x - (y / (t / a))) + (y / (t / z));
double tmp;
if (t <= -2.8e+190) {
tmp = t_1;
} else if (t <= -1.05e+77) {
tmp = x + (y + ((t - z) / ((a - t) / y)));
} else if (t <= -9e+34) {
tmp = x - (z * (y / (a - t)));
} else if (t <= 3.6e+55) {
tmp = (x + y) - (y * ((z - t) / (a - t)));
} 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 - (y / (t / a))) + (y / (t / z))
if (t <= (-2.8d+190)) then
tmp = t_1
else if (t <= (-1.05d+77)) then
tmp = x + (y + ((t - z) / ((a - t) / y)))
else if (t <= (-9d+34)) then
tmp = x - (z * (y / (a - t)))
else if (t <= 3.6d+55) then
tmp = (x + y) - (y * ((z - t) / (a - t)))
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 - (y / (t / a))) + (y / (t / z));
double tmp;
if (t <= -2.8e+190) {
tmp = t_1;
} else if (t <= -1.05e+77) {
tmp = x + (y + ((t - z) / ((a - t) / y)));
} else if (t <= -9e+34) {
tmp = x - (z * (y / (a - t)));
} else if (t <= 3.6e+55) {
tmp = (x + y) - (y * ((z - t) / (a - t)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = (x - (y / (t / a))) + (y / (t / z)) tmp = 0 if t <= -2.8e+190: tmp = t_1 elif t <= -1.05e+77: tmp = x + (y + ((t - z) / ((a - t) / y))) elif t <= -9e+34: tmp = x - (z * (y / (a - t))) elif t <= 3.6e+55: tmp = (x + y) - (y * ((z - t) / (a - t))) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(Float64(x - Float64(y / Float64(t / a))) + Float64(y / Float64(t / z))) tmp = 0.0 if (t <= -2.8e+190) tmp = t_1; elseif (t <= -1.05e+77) tmp = Float64(x + Float64(y + Float64(Float64(t - z) / Float64(Float64(a - t) / y)))); elseif (t <= -9e+34) tmp = Float64(x - Float64(z * Float64(y / Float64(a - t)))); elseif (t <= 3.6e+55) tmp = Float64(Float64(x + y) - Float64(y * Float64(Float64(z - t) / Float64(a - t)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = (x - (y / (t / a))) + (y / (t / z)); tmp = 0.0; if (t <= -2.8e+190) tmp = t_1; elseif (t <= -1.05e+77) tmp = x + (y + ((t - z) / ((a - t) / y))); elseif (t <= -9e+34) tmp = x - (z * (y / (a - t))); elseif (t <= 3.6e+55) tmp = (x + y) - (y * ((z - t) / (a - t))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(x - N[(y / N[(t / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y / N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2.8e+190], t$95$1, If[LessEqual[t, -1.05e+77], N[(x + N[(y + N[(N[(t - z), $MachinePrecision] / N[(N[(a - t), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -9e+34], N[(x - N[(z * N[(y / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.6e+55], N[(N[(x + y), $MachinePrecision] - N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x - \frac{y}{\frac{t}{a}}\right) + \frac{y}{\frac{t}{z}}\\
\mathbf{if}\;t \leq -2.8 \cdot 10^{+190}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -1.05 \cdot 10^{+77}:\\
\;\;\;\;x + \left(y + \frac{t - z}{\frac{a - t}{y}}\right)\\
\mathbf{elif}\;t \leq -9 \cdot 10^{+34}:\\
\;\;\;\;x - z \cdot \frac{y}{a - t}\\
\mathbf{elif}\;t \leq 3.6 \cdot 10^{+55}:\\
\;\;\;\;\left(x + y\right) - y \cdot \frac{z - t}{a - t}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if t < -2.79999999999999997e190 or 3.59999999999999987e55 < t Initial program 53.8%
associate-*l/60.7%
Simplified60.7%
Taylor expanded in t around inf 85.3%
sub-neg85.3%
+-commutative85.3%
mul-1-neg85.3%
unsub-neg85.3%
associate-/l*87.6%
mul-1-neg87.6%
remove-double-neg87.6%
associate-/l*94.4%
Simplified94.4%
if -2.79999999999999997e190 < t < -1.0499999999999999e77Initial program 70.8%
associate--l+75.0%
associate-/l*89.4%
Simplified89.4%
if -1.0499999999999999e77 < t < -9.0000000000000001e34Initial program 52.2%
associate--l+52.3%
sub-neg52.3%
+-commutative52.3%
associate-/l*60.3%
distribute-neg-frac60.3%
associate-/r/60.4%
fma-def60.7%
sub-neg60.7%
+-commutative60.7%
distribute-neg-in60.7%
unsub-neg60.7%
remove-double-neg60.7%
Simplified60.7%
Taylor expanded in z around inf 81.6%
mul-1-neg81.6%
*-commutative81.6%
associate-*r/90.2%
distribute-lft-neg-in90.2%
Simplified90.2%
if -9.0000000000000001e34 < t < 3.59999999999999987e55Initial program 92.5%
associate-*l/94.6%
Simplified94.6%
Final simplification93.8%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -1.02e-171) (not (<= a 1e+23))) (+ x (+ y (/ (- t z) (/ (- a t) y)))) (- x (* z (/ y (- a t))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -1.02e-171) || !(a <= 1e+23)) {
tmp = x + (y + ((t - z) / ((a - t) / y)));
} else {
tmp = x - (z * (y / (a - t)));
}
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.02d-171)) .or. (.not. (a <= 1d+23))) then
tmp = x + (y + ((t - z) / ((a - t) / y)))
else
tmp = x - (z * (y / (a - t)))
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.02e-171) || !(a <= 1e+23)) {
tmp = x + (y + ((t - z) / ((a - t) / y)));
} else {
tmp = x - (z * (y / (a - t)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -1.02e-171) or not (a <= 1e+23): tmp = x + (y + ((t - z) / ((a - t) / y))) else: tmp = x - (z * (y / (a - t))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -1.02e-171) || !(a <= 1e+23)) tmp = Float64(x + Float64(y + Float64(Float64(t - z) / Float64(Float64(a - t) / y)))); else tmp = Float64(x - Float64(z * Float64(y / Float64(a - t)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a <= -1.02e-171) || ~((a <= 1e+23))) tmp = x + (y + ((t - z) / ((a - t) / y))); else tmp = x - (z * (y / (a - t))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -1.02e-171], N[Not[LessEqual[a, 1e+23]], $MachinePrecision]], N[(x + N[(y + N[(N[(t - z), $MachinePrecision] / N[(N[(a - t), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x - N[(z * N[(y / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.02 \cdot 10^{-171} \lor \neg \left(a \leq 10^{+23}\right):\\
\;\;\;\;x + \left(y + \frac{t - z}{\frac{a - t}{y}}\right)\\
\mathbf{else}:\\
\;\;\;\;x - z \cdot \frac{y}{a - t}\\
\end{array}
\end{array}
if a < -1.02e-171 or 9.9999999999999992e22 < a Initial program 82.2%
associate--l+84.1%
associate-/l*88.9%
Simplified88.9%
if -1.02e-171 < a < 9.9999999999999992e22Initial program 67.3%
associate--l+72.6%
sub-neg72.6%
+-commutative72.6%
associate-/l*77.0%
distribute-neg-frac77.0%
associate-/r/81.0%
fma-def81.0%
sub-neg81.0%
+-commutative81.0%
distribute-neg-in81.0%
unsub-neg81.0%
remove-double-neg81.0%
Simplified81.0%
Taylor expanded in z around inf 87.5%
mul-1-neg87.5%
*-commutative87.5%
associate-*r/90.4%
distribute-lft-neg-in90.4%
Simplified90.4%
Final simplification89.5%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -1.7e+41) (not (<= a 1e+23))) (- (+ x y) (* y (/ z (- a t)))) (- x (* z (/ y (- a t))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -1.7e+41) || !(a <= 1e+23)) {
tmp = (x + y) - (y * (z / (a - t)));
} else {
tmp = x - (z * (y / (a - t)));
}
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.7d+41)) .or. (.not. (a <= 1d+23))) then
tmp = (x + y) - (y * (z / (a - t)))
else
tmp = x - (z * (y / (a - t)))
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.7e+41) || !(a <= 1e+23)) {
tmp = (x + y) - (y * (z / (a - t)));
} else {
tmp = x - (z * (y / (a - t)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -1.7e+41) or not (a <= 1e+23): tmp = (x + y) - (y * (z / (a - t))) else: tmp = x - (z * (y / (a - t))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -1.7e+41) || !(a <= 1e+23)) tmp = Float64(Float64(x + y) - Float64(y * Float64(z / Float64(a - t)))); else tmp = Float64(x - Float64(z * Float64(y / Float64(a - t)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a <= -1.7e+41) || ~((a <= 1e+23))) tmp = (x + y) - (y * (z / (a - t))); else tmp = x - (z * (y / (a - t))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -1.7e+41], N[Not[LessEqual[a, 1e+23]], $MachinePrecision]], N[(N[(x + y), $MachinePrecision] - N[(y * N[(z / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x - N[(z * N[(y / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.7 \cdot 10^{+41} \lor \neg \left(a \leq 10^{+23}\right):\\
\;\;\;\;\left(x + y\right) - y \cdot \frac{z}{a - t}\\
\mathbf{else}:\\
\;\;\;\;x - z \cdot \frac{y}{a - t}\\
\end{array}
\end{array}
if a < -1.69999999999999999e41 or 9.9999999999999992e22 < a Initial program 84.2%
associate-*l/92.4%
Simplified92.4%
Taylor expanded in z around inf 90.7%
if -1.69999999999999999e41 < a < 9.9999999999999992e22Initial program 70.2%
associate--l+74.5%
sub-neg74.5%
+-commutative74.5%
associate-/l*78.4%
distribute-neg-frac78.4%
associate-/r/81.9%
fma-def81.9%
sub-neg81.9%
+-commutative81.9%
distribute-neg-in81.9%
unsub-neg81.9%
remove-double-neg81.9%
Simplified81.9%
Taylor expanded in z around inf 84.6%
mul-1-neg84.6%
*-commutative84.6%
associate-*r/86.6%
distribute-lft-neg-in86.6%
Simplified86.6%
Final simplification88.4%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -4.6e-115) (not (<= a 1e+23))) (+ y (- x (/ y (/ a z)))) (+ x (/ y (/ t z)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -4.6e-115) || !(a <= 1e+23)) {
tmp = y + (x - (y / (a / z)));
} else {
tmp = x + (y / (t / 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 ((a <= (-4.6d-115)) .or. (.not. (a <= 1d+23))) then
tmp = y + (x - (y / (a / z)))
else
tmp = x + (y / (t / z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -4.6e-115) || !(a <= 1e+23)) {
tmp = y + (x - (y / (a / z)));
} else {
tmp = x + (y / (t / z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -4.6e-115) or not (a <= 1e+23): tmp = y + (x - (y / (a / z))) else: tmp = x + (y / (t / z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -4.6e-115) || !(a <= 1e+23)) tmp = Float64(y + Float64(x - Float64(y / Float64(a / z)))); else tmp = Float64(x + Float64(y / Float64(t / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a <= -4.6e-115) || ~((a <= 1e+23))) tmp = y + (x - (y / (a / z))); else tmp = x + (y / (t / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -4.6e-115], N[Not[LessEqual[a, 1e+23]], $MachinePrecision]], N[(y + N[(x - N[(y / N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y / N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -4.6 \cdot 10^{-115} \lor \neg \left(a \leq 10^{+23}\right):\\
\;\;\;\;y + \left(x - \frac{y}{\frac{a}{z}}\right)\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y}{\frac{t}{z}}\\
\end{array}
\end{array}
if a < -4.59999999999999969e-115 or 9.9999999999999992e22 < a Initial program 81.6%
associate-*l/88.0%
Simplified88.0%
Taylor expanded in t around 0 80.1%
associate--l+80.1%
associate-/l*82.8%
Simplified82.8%
if -4.59999999999999969e-115 < a < 9.9999999999999992e22Initial program 69.3%
associate--l+75.0%
sub-neg75.0%
+-commutative75.0%
associate-/l*78.3%
distribute-neg-frac78.3%
associate-/r/82.7%
fma-def82.7%
sub-neg82.7%
+-commutative82.7%
distribute-neg-in82.7%
unsub-neg82.7%
remove-double-neg82.7%
Simplified82.7%
Taylor expanded in z around inf 87.8%
associate-*r/87.8%
associate-*r*87.8%
neg-mul-187.8%
Simplified87.8%
Taylor expanded in a around 0 81.9%
associate-/l*84.5%
Simplified84.5%
Final simplification83.6%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -3.2e-105) (not (<= a 3.4e+50))) (+ y (- x (/ y (/ a z)))) (+ x (/ (* y (- z a)) t))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -3.2e-105) || !(a <= 3.4e+50)) {
tmp = y + (x - (y / (a / z)));
} else {
tmp = x + ((y * (z - a)) / t);
}
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.2d-105)) .or. (.not. (a <= 3.4d+50))) then
tmp = y + (x - (y / (a / z)))
else
tmp = x + ((y * (z - a)) / t)
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.2e-105) || !(a <= 3.4e+50)) {
tmp = y + (x - (y / (a / z)));
} else {
tmp = x + ((y * (z - a)) / t);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -3.2e-105) or not (a <= 3.4e+50): tmp = y + (x - (y / (a / z))) else: tmp = x + ((y * (z - a)) / t) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -3.2e-105) || !(a <= 3.4e+50)) tmp = Float64(y + Float64(x - Float64(y / Float64(a / z)))); else tmp = Float64(x + Float64(Float64(y * Float64(z - a)) / t)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a <= -3.2e-105) || ~((a <= 3.4e+50))) tmp = y + (x - (y / (a / z))); else tmp = x + ((y * (z - a)) / t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -3.2e-105], N[Not[LessEqual[a, 3.4e+50]], $MachinePrecision]], N[(y + N[(x - N[(y / N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y * N[(z - a), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -3.2 \cdot 10^{-105} \lor \neg \left(a \leq 3.4 \cdot 10^{+50}\right):\\
\;\;\;\;y + \left(x - \frac{y}{\frac{a}{z}}\right)\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y \cdot \left(z - a\right)}{t}\\
\end{array}
\end{array}
if a < -3.19999999999999981e-105 or 3.3999999999999998e50 < a Initial program 83.1%
associate-*l/90.0%
Simplified90.0%
Taylor expanded in t around 0 82.2%
associate--l+82.2%
associate-/l*85.2%
Simplified85.2%
if -3.19999999999999981e-105 < a < 3.3999999999999998e50Initial program 68.7%
associate-*l/71.3%
Simplified71.3%
Taylor expanded in t around -inf 84.9%
+-commutative84.9%
mul-1-neg84.9%
unsub-neg84.9%
distribute-lft-out--84.9%
Simplified84.9%
Final simplification85.0%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -3.2e+128) (not (<= a 3.9e+23))) (+ y (- x (/ y (/ a z)))) (- x (* z (/ y (- a t))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -3.2e+128) || !(a <= 3.9e+23)) {
tmp = y + (x - (y / (a / z)));
} else {
tmp = x - (z * (y / (a - t)));
}
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.2d+128)) .or. (.not. (a <= 3.9d+23))) then
tmp = y + (x - (y / (a / z)))
else
tmp = x - (z * (y / (a - t)))
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.2e+128) || !(a <= 3.9e+23)) {
tmp = y + (x - (y / (a / z)));
} else {
tmp = x - (z * (y / (a - t)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -3.2e+128) or not (a <= 3.9e+23): tmp = y + (x - (y / (a / z))) else: tmp = x - (z * (y / (a - t))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -3.2e+128) || !(a <= 3.9e+23)) tmp = Float64(y + Float64(x - Float64(y / Float64(a / z)))); else tmp = Float64(x - Float64(z * Float64(y / Float64(a - t)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a <= -3.2e+128) || ~((a <= 3.9e+23))) tmp = y + (x - (y / (a / z))); else tmp = x - (z * (y / (a - t))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -3.2e+128], N[Not[LessEqual[a, 3.9e+23]], $MachinePrecision]], N[(y + N[(x - N[(y / N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x - N[(z * N[(y / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -3.2 \cdot 10^{+128} \lor \neg \left(a \leq 3.9 \cdot 10^{+23}\right):\\
\;\;\;\;y + \left(x - \frac{y}{\frac{a}{z}}\right)\\
\mathbf{else}:\\
\;\;\;\;x - z \cdot \frac{y}{a - t}\\
\end{array}
\end{array}
if a < -3.19999999999999986e128 or 3.9e23 < a Initial program 82.9%
associate-*l/92.6%
Simplified92.6%
Taylor expanded in t around 0 86.4%
associate--l+86.4%
associate-/l*92.1%
Simplified92.1%
if -3.19999999999999986e128 < a < 3.9e23Initial program 72.9%
associate--l+77.8%
sub-neg77.8%
+-commutative77.8%
associate-/l*80.4%
distribute-neg-frac80.4%
associate-/r/84.5%
fma-def84.6%
sub-neg84.6%
+-commutative84.6%
distribute-neg-in84.6%
unsub-neg84.6%
remove-double-neg84.6%
Simplified84.6%
Taylor expanded in z around inf 83.6%
mul-1-neg83.6%
*-commutative83.6%
associate-*r/85.8%
distribute-lft-neg-in85.8%
Simplified85.8%
Final simplification87.9%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -3.2e+128) (not (<= a 5.7e+23))) (+ x y) (+ x (/ y (/ t z)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -3.2e+128) || !(a <= 5.7e+23)) {
tmp = x + y;
} else {
tmp = x + (y / (t / 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 ((a <= (-3.2d+128)) .or. (.not. (a <= 5.7d+23))) then
tmp = x + y
else
tmp = x + (y / (t / z))
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.2e+128) || !(a <= 5.7e+23)) {
tmp = x + y;
} else {
tmp = x + (y / (t / z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -3.2e+128) or not (a <= 5.7e+23): tmp = x + y else: tmp = x + (y / (t / z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -3.2e+128) || !(a <= 5.7e+23)) tmp = Float64(x + y); else tmp = Float64(x + Float64(y / Float64(t / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a <= -3.2e+128) || ~((a <= 5.7e+23))) tmp = x + y; else tmp = x + (y / (t / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -3.2e+128], N[Not[LessEqual[a, 5.7e+23]], $MachinePrecision]], N[(x + y), $MachinePrecision], N[(x + N[(y / N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -3.2 \cdot 10^{+128} \lor \neg \left(a \leq 5.7 \cdot 10^{+23}\right):\\
\;\;\;\;x + y\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y}{\frac{t}{z}}\\
\end{array}
\end{array}
if a < -3.19999999999999986e128 or 5.7e23 < a Initial program 82.9%
associate-*l/92.6%
Simplified92.6%
Taylor expanded in a around inf 88.8%
if -3.19999999999999986e128 < a < 5.7e23Initial program 72.9%
associate--l+77.8%
sub-neg77.8%
+-commutative77.8%
associate-/l*80.4%
distribute-neg-frac80.4%
associate-/r/84.5%
fma-def84.6%
sub-neg84.6%
+-commutative84.6%
distribute-neg-in84.6%
unsub-neg84.6%
remove-double-neg84.6%
Simplified84.6%
Taylor expanded in z around inf 83.6%
associate-*r/83.6%
associate-*r*83.6%
neg-mul-183.6%
Simplified83.6%
Taylor expanded in a around 0 72.2%
associate-/l*75.0%
Simplified75.0%
Final simplification79.6%
(FPCore (x y z t a) :precision binary64 (if (<= a -4.8e-115) (+ x y) (if (<= a 3.9e+23) (+ x (* z (/ y t))) (+ x y))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -4.8e-115) {
tmp = x + y;
} else if (a <= 3.9e+23) {
tmp = x + (z * (y / t));
} else {
tmp = x + 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 (a <= (-4.8d-115)) then
tmp = x + y
else if (a <= 3.9d+23) then
tmp = x + (z * (y / t))
else
tmp = x + y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -4.8e-115) {
tmp = x + y;
} else if (a <= 3.9e+23) {
tmp = x + (z * (y / t));
} else {
tmp = x + y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -4.8e-115: tmp = x + y elif a <= 3.9e+23: tmp = x + (z * (y / t)) else: tmp = x + y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -4.8e-115) tmp = Float64(x + y); elseif (a <= 3.9e+23) tmp = Float64(x + Float64(z * Float64(y / t))); else tmp = Float64(x + y); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -4.8e-115) tmp = x + y; elseif (a <= 3.9e+23) tmp = x + (z * (y / t)); else tmp = x + y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -4.8e-115], N[(x + y), $MachinePrecision], If[LessEqual[a, 3.9e+23], N[(x + N[(z * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + y), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -4.8 \cdot 10^{-115}:\\
\;\;\;\;x + y\\
\mathbf{elif}\;a \leq 3.9 \cdot 10^{+23}:\\
\;\;\;\;x + z \cdot \frac{y}{t}\\
\mathbf{else}:\\
\;\;\;\;x + y\\
\end{array}
\end{array}
if a < -4.80000000000000042e-115 or 3.9e23 < a Initial program 81.4%
associate-*l/87.8%
Simplified87.8%
Taylor expanded in a around inf 75.5%
if -4.80000000000000042e-115 < a < 3.9e23Initial program 69.9%
associate--l+75.5%
sub-neg75.5%
+-commutative75.5%
associate-/l*78.6%
distribute-neg-frac78.6%
associate-/r/83.0%
fma-def83.0%
sub-neg83.0%
+-commutative83.0%
distribute-neg-in83.0%
unsub-neg83.0%
remove-double-neg83.0%
Simplified83.0%
Taylor expanded in z around inf 88.0%
associate-*r/88.0%
associate-*r*88.0%
neg-mul-188.0%
Simplified88.0%
Taylor expanded in a around 0 81.3%
associate-/l*83.9%
Simplified83.9%
associate-/r/83.0%
Applied egg-rr83.0%
Final simplification78.8%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -1.22e+272) (not (<= z 1.55e+216))) (* y (/ z t)) (+ x y)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -1.22e+272) || !(z <= 1.55e+216)) {
tmp = y * (z / t);
} else {
tmp = x + 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 <= (-1.22d+272)) .or. (.not. (z <= 1.55d+216))) then
tmp = y * (z / t)
else
tmp = x + 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 <= -1.22e+272) || !(z <= 1.55e+216)) {
tmp = y * (z / t);
} else {
tmp = x + y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -1.22e+272) or not (z <= 1.55e+216): tmp = y * (z / t) else: tmp = x + y return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -1.22e+272) || !(z <= 1.55e+216)) tmp = Float64(y * Float64(z / t)); else tmp = Float64(x + y); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((z <= -1.22e+272) || ~((z <= 1.55e+216))) tmp = y * (z / t); else tmp = x + y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -1.22e+272], N[Not[LessEqual[z, 1.55e+216]], $MachinePrecision]], N[(y * N[(z / t), $MachinePrecision]), $MachinePrecision], N[(x + y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.22 \cdot 10^{+272} \lor \neg \left(z \leq 1.55 \cdot 10^{+216}\right):\\
\;\;\;\;y \cdot \frac{z}{t}\\
\mathbf{else}:\\
\;\;\;\;x + y\\
\end{array}
\end{array}
if z < -1.21999999999999995e272 or 1.55000000000000002e216 < z Initial program 87.4%
associate-*l/93.7%
Simplified93.7%
Taylor expanded in z around inf 91.9%
Taylor expanded in z around inf 79.1%
mul-1-neg79.1%
associate-*r/83.1%
distribute-rgt-neg-in83.1%
distribute-neg-frac83.1%
Simplified83.1%
Taylor expanded in a around 0 69.8%
if -1.21999999999999995e272 < z < 1.55000000000000002e216Initial program 75.1%
associate-*l/79.8%
Simplified79.8%
Taylor expanded in a around inf 63.1%
Final simplification63.7%
(FPCore (x y z t a) :precision binary64 (if (<= z -9.8e+263) (* z (/ (- y) a)) (if (<= z 5.2e+218) (+ x y) (* y (/ z t)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -9.8e+263) {
tmp = z * (-y / a);
} else if (z <= 5.2e+218) {
tmp = x + y;
} else {
tmp = y * (z / t);
}
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 <= (-9.8d+263)) then
tmp = z * (-y / a)
else if (z <= 5.2d+218) then
tmp = x + y
else
tmp = y * (z / t)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -9.8e+263) {
tmp = z * (-y / a);
} else if (z <= 5.2e+218) {
tmp = x + y;
} else {
tmp = y * (z / t);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -9.8e+263: tmp = z * (-y / a) elif z <= 5.2e+218: tmp = x + y else: tmp = y * (z / t) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -9.8e+263) tmp = Float64(z * Float64(Float64(-y) / a)); elseif (z <= 5.2e+218) tmp = Float64(x + y); else tmp = Float64(y * Float64(z / t)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -9.8e+263) tmp = z * (-y / a); elseif (z <= 5.2e+218) tmp = x + y; else tmp = y * (z / t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -9.8e+263], N[(z * N[((-y) / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 5.2e+218], N[(x + y), $MachinePrecision], N[(y * N[(z / t), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -9.8 \cdot 10^{+263}:\\
\;\;\;\;z \cdot \frac{-y}{a}\\
\mathbf{elif}\;z \leq 5.2 \cdot 10^{+218}:\\
\;\;\;\;x + y\\
\mathbf{else}:\\
\;\;\;\;y \cdot \frac{z}{t}\\
\end{array}
\end{array}
if z < -9.7999999999999997e263Initial program 99.8%
associate-*l/89.3%
Simplified89.3%
Taylor expanded in t around 0 77.9%
associate--l+77.9%
associate-/l*67.6%
Simplified67.6%
Taylor expanded in a around 0 77.9%
mul-1-neg77.9%
associate-*l/67.3%
distribute-rgt-neg-in67.3%
Simplified67.3%
if -9.7999999999999997e263 < z < 5.20000000000000004e218Initial program 75.0%
associate-*l/79.7%
Simplified79.7%
Taylor expanded in a around inf 63.4%
if 5.20000000000000004e218 < z Initial program 80.8%
associate-*l/96.8%
Simplified96.8%
Taylor expanded in z around inf 94.1%
Taylor expanded in z around inf 68.0%
mul-1-neg68.0%
associate-*r/80.6%
distribute-rgt-neg-in80.6%
distribute-neg-frac80.6%
Simplified80.6%
Taylor expanded in a around 0 73.6%
Final simplification64.1%
(FPCore (x y z t a) :precision binary64 (if (<= z -1.75e+264) (* y (- (/ z a))) (if (<= z 6.8e+218) (+ x y) (* y (/ z t)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1.75e+264) {
tmp = y * -(z / a);
} else if (z <= 6.8e+218) {
tmp = x + y;
} else {
tmp = y * (z / t);
}
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.75d+264)) then
tmp = y * -(z / a)
else if (z <= 6.8d+218) then
tmp = x + y
else
tmp = y * (z / t)
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.75e+264) {
tmp = y * -(z / a);
} else if (z <= 6.8e+218) {
tmp = x + y;
} else {
tmp = y * (z / t);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -1.75e+264: tmp = y * -(z / a) elif z <= 6.8e+218: tmp = x + y else: tmp = y * (z / t) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -1.75e+264) tmp = Float64(y * Float64(-Float64(z / a))); elseif (z <= 6.8e+218) tmp = Float64(x + y); else tmp = Float64(y * Float64(z / t)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -1.75e+264) tmp = y * -(z / a); elseif (z <= 6.8e+218) tmp = x + y; else tmp = y * (z / t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -1.75e+264], N[(y * (-N[(z / a), $MachinePrecision])), $MachinePrecision], If[LessEqual[z, 6.8e+218], N[(x + y), $MachinePrecision], N[(y * N[(z / t), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.75 \cdot 10^{+264}:\\
\;\;\;\;y \cdot \left(-\frac{z}{a}\right)\\
\mathbf{elif}\;z \leq 6.8 \cdot 10^{+218}:\\
\;\;\;\;x + y\\
\mathbf{else}:\\
\;\;\;\;y \cdot \frac{z}{t}\\
\end{array}
\end{array}
if z < -1.74999999999999994e264Initial program 99.8%
associate-*l/89.3%
Simplified89.3%
Taylor expanded in t around 0 77.9%
associate--l+77.9%
associate-/l*67.6%
Simplified67.6%
Taylor expanded in a around 0 77.9%
mul-1-neg77.9%
associate-*l/67.3%
distribute-rgt-neg-in67.3%
Simplified67.3%
Taylor expanded in y around 0 77.9%
mul-1-neg77.9%
associate-*r/67.4%
distribute-lft-neg-in67.4%
*-commutative67.4%
Simplified67.4%
if -1.74999999999999994e264 < z < 6.80000000000000017e218Initial program 75.0%
associate-*l/79.7%
Simplified79.7%
Taylor expanded in a around inf 63.4%
if 6.80000000000000017e218 < z Initial program 80.8%
associate-*l/96.8%
Simplified96.8%
Taylor expanded in z around inf 94.1%
Taylor expanded in z around inf 68.0%
mul-1-neg68.0%
associate-*r/80.6%
distribute-rgt-neg-in80.6%
distribute-neg-frac80.6%
Simplified80.6%
Taylor expanded in a around 0 73.6%
Final simplification64.1%
(FPCore (x y z t a) :precision binary64 (if (<= z -2.7e+265) (/ (* y z) (- a)) (if (<= z 3.5e+217) (+ x y) (* y (/ z t)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -2.7e+265) {
tmp = (y * z) / -a;
} else if (z <= 3.5e+217) {
tmp = x + y;
} else {
tmp = y * (z / t);
}
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 <= (-2.7d+265)) then
tmp = (y * z) / -a
else if (z <= 3.5d+217) then
tmp = x + y
else
tmp = y * (z / t)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -2.7e+265) {
tmp = (y * z) / -a;
} else if (z <= 3.5e+217) {
tmp = x + y;
} else {
tmp = y * (z / t);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -2.7e+265: tmp = (y * z) / -a elif z <= 3.5e+217: tmp = x + y else: tmp = y * (z / t) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -2.7e+265) tmp = Float64(Float64(y * z) / Float64(-a)); elseif (z <= 3.5e+217) tmp = Float64(x + y); else tmp = Float64(y * Float64(z / t)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -2.7e+265) tmp = (y * z) / -a; elseif (z <= 3.5e+217) tmp = x + y; else tmp = y * (z / t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -2.7e+265], N[(N[(y * z), $MachinePrecision] / (-a)), $MachinePrecision], If[LessEqual[z, 3.5e+217], N[(x + y), $MachinePrecision], N[(y * N[(z / t), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.7 \cdot 10^{+265}:\\
\;\;\;\;\frac{y \cdot z}{-a}\\
\mathbf{elif}\;z \leq 3.5 \cdot 10^{+217}:\\
\;\;\;\;x + y\\
\mathbf{else}:\\
\;\;\;\;y \cdot \frac{z}{t}\\
\end{array}
\end{array}
if z < -2.69999999999999984e265Initial program 99.8%
associate-*l/89.3%
Simplified89.3%
Taylor expanded in t around 0 77.9%
associate--l+77.9%
associate-/l*67.6%
Simplified67.6%
Taylor expanded in a around 0 77.9%
mul-1-neg77.9%
associate-*l/67.3%
distribute-rgt-neg-in67.3%
Simplified67.3%
associate-*l/77.9%
add-sqr-sqrt55.6%
times-frac55.6%
add-sqr-sqrt55.4%
sqrt-unprod44.8%
sqr-neg44.8%
sqrt-unprod0.0%
add-sqr-sqrt0.1%
times-frac0.1%
add-sqr-sqrt11.7%
*-commutative11.7%
Applied egg-rr11.7%
*-commutative11.7%
frac-2neg11.7%
div-inv11.7%
distribute-rgt-neg-in11.7%
add-sqr-sqrt11.7%
sqrt-unprod11.5%
sqr-neg11.5%
sqrt-unprod0.0%
add-sqr-sqrt77.8%
Applied egg-rr77.8%
associate-*r/77.9%
*-rgt-identity77.9%
Simplified77.9%
if -2.69999999999999984e265 < z < 3.4999999999999998e217Initial program 75.0%
associate-*l/79.7%
Simplified79.7%
Taylor expanded in a around inf 63.4%
if 3.4999999999999998e217 < z Initial program 80.8%
associate-*l/96.8%
Simplified96.8%
Taylor expanded in z around inf 94.1%
Taylor expanded in z around inf 68.0%
mul-1-neg68.0%
associate-*r/80.6%
distribute-rgt-neg-in80.6%
distribute-neg-frac80.6%
Simplified80.6%
Taylor expanded in a around 0 73.6%
Final simplification64.5%
(FPCore (x y z t a) :precision binary64 (if (<= a -8.5e-194) (+ x y) (if (<= a 1.1e+23) x (+ x y))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -8.5e-194) {
tmp = x + y;
} else if (a <= 1.1e+23) {
tmp = x;
} else {
tmp = x + 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 (a <= (-8.5d-194)) then
tmp = x + y
else if (a <= 1.1d+23) then
tmp = x
else
tmp = x + y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -8.5e-194) {
tmp = x + y;
} else if (a <= 1.1e+23) {
tmp = x;
} else {
tmp = x + y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -8.5e-194: tmp = x + y elif a <= 1.1e+23: tmp = x else: tmp = x + y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -8.5e-194) tmp = Float64(x + y); elseif (a <= 1.1e+23) tmp = x; else tmp = Float64(x + y); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -8.5e-194) tmp = x + y; elseif (a <= 1.1e+23) tmp = x; else tmp = x + y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -8.5e-194], N[(x + y), $MachinePrecision], If[LessEqual[a, 1.1e+23], x, N[(x + y), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -8.5 \cdot 10^{-194}:\\
\;\;\;\;x + y\\
\mathbf{elif}\;a \leq 1.1 \cdot 10^{+23}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;x + y\\
\end{array}
\end{array}
if a < -8.5000000000000005e-194 or 1.10000000000000004e23 < a Initial program 81.5%
associate-*l/87.2%
Simplified87.2%
Taylor expanded in a around inf 73.7%
if -8.5000000000000005e-194 < a < 1.10000000000000004e23Initial program 67.8%
associate-*l/71.1%
Simplified71.1%
Taylor expanded in x around inf 45.4%
Final simplification62.8%
(FPCore (x y z t a) :precision binary64 (if (<= a -1.32e+230) y x))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -1.32e+230) {
tmp = 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 <= (-1.32d+230)) then
tmp = 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 <= -1.32e+230) {
tmp = y;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -1.32e+230: tmp = y else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -1.32e+230) tmp = y; else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -1.32e+230) tmp = y; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -1.32e+230], y, x]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.32 \cdot 10^{+230}:\\
\;\;\;\;y\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -1.32e230Initial program 76.0%
associate-*l/100.0%
Simplified100.0%
Taylor expanded in t around 0 84.4%
associate--l+84.4%
associate-/l*100.0%
Simplified100.0%
Taylor expanded in y around inf 76.4%
sub-neg76.4%
mul-1-neg76.4%
distribute-rgt-in76.4%
*-lft-identity76.4%
mul-1-neg76.4%
cancel-sign-sub-inv76.4%
*-commutative76.4%
Simplified76.4%
Taylor expanded in z around 0 76.4%
if -1.32e230 < a Initial program 76.3%
associate-*l/80.1%
Simplified80.1%
Taylor expanded in x around inf 51.1%
Final simplification52.3%
(FPCore (x y z t a) :precision binary64 x)
double code(double x, double y, double z, double t, double a) {
return x;
}
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
end function
public static double code(double x, double y, double z, double t, double a) {
return x;
}
def code(x, y, z, t, a): return x
function code(x, y, z, t, a) return x end
function tmp = code(x, y, z, t, a) tmp = x; end
code[x_, y_, z_, t_, a_] := x
\begin{array}{l}
\\
x
\end{array}
Initial program 76.2%
associate-*l/81.1%
Simplified81.1%
Taylor expanded in x around inf 49.8%
Final simplification49.8%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (- (+ y x) (* (* (- z t) (/ 1.0 (- a t))) y)))
(t_2 (- (+ x y) (/ (* (- z t) y) (- a t)))))
(if (< t_2 -1.3664970889390727e-7)
t_1
(if (< t_2 1.4754293444577233e-239)
(/ (- (* y (- a z)) (* x t)) (- a t))
t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = (y + x) - (((z - t) * (1.0 / (a - t))) * y);
double t_2 = (x + y) - (((z - t) * y) / (a - t));
double tmp;
if (t_2 < -1.3664970889390727e-7) {
tmp = t_1;
} else if (t_2 < 1.4754293444577233e-239) {
tmp = ((y * (a - z)) - (x * t)) / (a - t);
} 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) :: t_2
real(8) :: tmp
t_1 = (y + x) - (((z - t) * (1.0d0 / (a - t))) * y)
t_2 = (x + y) - (((z - t) * y) / (a - t))
if (t_2 < (-1.3664970889390727d-7)) then
tmp = t_1
else if (t_2 < 1.4754293444577233d-239) then
tmp = ((y * (a - z)) - (x * t)) / (a - t)
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 = (y + x) - (((z - t) * (1.0 / (a - t))) * y);
double t_2 = (x + y) - (((z - t) * y) / (a - t));
double tmp;
if (t_2 < -1.3664970889390727e-7) {
tmp = t_1;
} else if (t_2 < 1.4754293444577233e-239) {
tmp = ((y * (a - z)) - (x * t)) / (a - t);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = (y + x) - (((z - t) * (1.0 / (a - t))) * y) t_2 = (x + y) - (((z - t) * y) / (a - t)) tmp = 0 if t_2 < -1.3664970889390727e-7: tmp = t_1 elif t_2 < 1.4754293444577233e-239: tmp = ((y * (a - z)) - (x * t)) / (a - t) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(Float64(y + x) - Float64(Float64(Float64(z - t) * Float64(1.0 / Float64(a - t))) * y)) t_2 = Float64(Float64(x + y) - Float64(Float64(Float64(z - t) * y) / Float64(a - t))) tmp = 0.0 if (t_2 < -1.3664970889390727e-7) tmp = t_1; elseif (t_2 < 1.4754293444577233e-239) tmp = Float64(Float64(Float64(y * Float64(a - z)) - Float64(x * t)) / Float64(a - t)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = (y + x) - (((z - t) * (1.0 / (a - t))) * y); t_2 = (x + y) - (((z - t) * y) / (a - t)); tmp = 0.0; if (t_2 < -1.3664970889390727e-7) tmp = t_1; elseif (t_2 < 1.4754293444577233e-239) tmp = ((y * (a - z)) - (x * t)) / (a - t); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(y + x), $MachinePrecision] - N[(N[(N[(z - t), $MachinePrecision] * N[(1.0 / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x + y), $MachinePrecision] - N[(N[(N[(z - t), $MachinePrecision] * y), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[t$95$2, -1.3664970889390727e-7], t$95$1, If[Less[t$95$2, 1.4754293444577233e-239], N[(N[(N[(y * N[(a - z), $MachinePrecision]), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(y + x\right) - \left(\left(z - t\right) \cdot \frac{1}{a - t}\right) \cdot y\\
t_2 := \left(x + y\right) - \frac{\left(z - t\right) \cdot y}{a - t}\\
\mathbf{if}\;t_2 < -1.3664970889390727 \cdot 10^{-7}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t_2 < 1.4754293444577233 \cdot 10^{-239}:\\
\;\;\;\;\frac{y \cdot \left(a - z\right) - x \cdot t}{a - t}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
herbie shell --seed 2023192
(FPCore (x y z t a)
:name "Graphics.Rendering.Plot.Render.Plot.Axis:renderAxisTick from plot-0.2.3.4, B"
:precision binary64
:herbie-target
(if (< (- (+ x y) (/ (* (- z t) y) (- a t))) -1.3664970889390727e-7) (- (+ y x) (* (* (- z t) (/ 1.0 (- a t))) y)) (if (< (- (+ x y) (/ (* (- z t) y) (- a t))) 1.4754293444577233e-239) (/ (- (* y (- a z)) (* x t)) (- a t)) (- (+ y x) (* (* (- z t) (/ 1.0 (- a t))) y))))
(- (+ x y) (/ (* (- z t) y) (- a t))))