
(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(Float64(y - z) * 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[(N[(y - z), $MachinePrecision] * N[(t - x), $MachinePrecision]), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 18 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(Float64(y - z) * 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[(N[(y - z), $MachinePrecision] * N[(t - x), $MachinePrecision]), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z}
\end{array}
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (/ (* (- y z) (- t x)) (- a z)))))
(if (or (<= t_1 -2e-281) (not (<= t_1 0.0)))
(fma (/ (- y z) (- a z)) (- t x) x)
(+ 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-281) || !(t_1 <= 0.0)) {
tmp = fma(((y - z) / (a - z)), (t - x), x);
} else {
tmp = t + ((x - t) / (z / (y - a)));
}
return tmp;
}
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(Float64(y - z) * Float64(t - x)) / Float64(a - z))) tmp = 0.0 if ((t_1 <= -2e-281) || !(t_1 <= 0.0)) tmp = fma(Float64(Float64(y - z) / Float64(a - z)), Float64(t - x), x); else tmp = Float64(t + Float64(Float64(x - t) / Float64(z / Float64(y - a)))); end return tmp end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(N[(y - z), $MachinePrecision] * N[(t - x), $MachinePrecision]), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[t$95$1, -2e-281], N[Not[LessEqual[t$95$1, 0.0]], $MachinePrecision]], N[(N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision] * N[(t - x), $MachinePrecision] + x), $MachinePrecision], 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 + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z}\\
\mathbf{if}\;t_1 \leq -2 \cdot 10^{-281} \lor \neg \left(t_1 \leq 0\right):\\
\;\;\;\;\mathsf{fma}\left(\frac{y - z}{a - z}, t - x, x\right)\\
\mathbf{else}:\\
\;\;\;\;t + \frac{x - t}{\frac{z}{y - a}}\\
\end{array}
\end{array}
if (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) < -2e-281 or 0.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) Initial program 74.8%
+-commutative74.8%
associate-*l/91.4%
fma-def91.5%
Simplified91.5%
if -2e-281 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) < 0.0Initial program 3.8%
associate-*l/4.8%
Simplified4.8%
Taylor expanded in z around inf 99.7%
associate--l+99.7%
associate-*r/99.7%
associate-*r/99.7%
div-sub99.7%
distribute-lft-out--99.7%
associate-*r/99.7%
distribute-rgt-out--99.7%
mul-1-neg99.7%
unsub-neg99.7%
associate-/l*99.7%
Simplified99.7%
Final simplification92.0%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (/ (* (- y z) (- t x)) (- a z)))))
(if (or (<= t_1 -2e-281) (not (<= t_1 0.0)))
(+ x (* (- t x) (/ (- y z) (- a z))))
(+ 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-281) || !(t_1 <= 0.0)) {
tmp = x + ((t - x) * ((y - z) / (a - z)));
} 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-281)) .or. (.not. (t_1 <= 0.0d0))) then
tmp = x + ((t - x) * ((y - z) / (a - z)))
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-281) || !(t_1 <= 0.0)) {
tmp = x + ((t - x) * ((y - z) / (a - z)));
} 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-281) or not (t_1 <= 0.0): tmp = x + ((t - x) * ((y - z) / (a - z))) else: tmp = t + ((x - t) / (z / (y - a))) return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(Float64(y - z) * Float64(t - x)) / Float64(a - z))) tmp = 0.0 if ((t_1 <= -2e-281) || !(t_1 <= 0.0)) tmp = Float64(x + Float64(Float64(t - x) * Float64(Float64(y - z) / Float64(a - z)))); 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-281) || ~((t_1 <= 0.0))) tmp = x + ((t - x) * ((y - z) / (a - z))); 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[(N[(y - z), $MachinePrecision] * N[(t - x), $MachinePrecision]), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[t$95$1, -2e-281], N[Not[LessEqual[t$95$1, 0.0]], $MachinePrecision]], N[(x + N[(N[(t - x), $MachinePrecision] * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 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 + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z}\\
\mathbf{if}\;t_1 \leq -2 \cdot 10^{-281} \lor \neg \left(t_1 \leq 0\right):\\
\;\;\;\;x + \left(t - x\right) \cdot \frac{y - z}{a - z}\\
\mathbf{else}:\\
\;\;\;\;t + \frac{x - t}{\frac{z}{y - a}}\\
\end{array}
\end{array}
if (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) < -2e-281 or 0.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) Initial program 74.8%
associate-*l/91.4%
Simplified91.4%
if -2e-281 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) < 0.0Initial program 3.8%
associate-*l/4.8%
Simplified4.8%
Taylor expanded in z around inf 99.7%
associate--l+99.7%
associate-*r/99.7%
associate-*r/99.7%
div-sub99.7%
distribute-lft-out--99.7%
associate-*r/99.7%
distribute-rgt-out--99.7%
mul-1-neg99.7%
unsub-neg99.7%
associate-/l*99.7%
Simplified99.7%
Final simplification91.9%
(FPCore (x y z t a)
:precision binary64
(if (<= z -2.95e+122)
t
(if (<= z -5e+80)
(* (- y a) (/ x z))
(if (<= z -3.3e+24)
(+ x t)
(if (<= z -11.5)
(* y (/ (- t x) a))
(if (<= z -4.6e-26)
(/ x (/ z (- y a)))
(if (<= z -1.35e-73)
(- x (/ x (/ a y)))
(if (<= z -2.6e-149)
(/ y (/ (- a z) t))
(if (<= z 1.4e+146) (+ x (/ t (/ a y))) t)))))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -2.95e+122) {
tmp = t;
} else if (z <= -5e+80) {
tmp = (y - a) * (x / z);
} else if (z <= -3.3e+24) {
tmp = x + t;
} else if (z <= -11.5) {
tmp = y * ((t - x) / a);
} else if (z <= -4.6e-26) {
tmp = x / (z / (y - a));
} else if (z <= -1.35e-73) {
tmp = x - (x / (a / y));
} else if (z <= -2.6e-149) {
tmp = y / ((a - z) / t);
} else if (z <= 1.4e+146) {
tmp = x + (t / (a / y));
} else {
tmp = 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.95d+122)) then
tmp = t
else if (z <= (-5d+80)) then
tmp = (y - a) * (x / z)
else if (z <= (-3.3d+24)) then
tmp = x + t
else if (z <= (-11.5d0)) then
tmp = y * ((t - x) / a)
else if (z <= (-4.6d-26)) then
tmp = x / (z / (y - a))
else if (z <= (-1.35d-73)) then
tmp = x - (x / (a / y))
else if (z <= (-2.6d-149)) then
tmp = y / ((a - z) / t)
else if (z <= 1.4d+146) then
tmp = x + (t / (a / y))
else
tmp = 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.95e+122) {
tmp = t;
} else if (z <= -5e+80) {
tmp = (y - a) * (x / z);
} else if (z <= -3.3e+24) {
tmp = x + t;
} else if (z <= -11.5) {
tmp = y * ((t - x) / a);
} else if (z <= -4.6e-26) {
tmp = x / (z / (y - a));
} else if (z <= -1.35e-73) {
tmp = x - (x / (a / y));
} else if (z <= -2.6e-149) {
tmp = y / ((a - z) / t);
} else if (z <= 1.4e+146) {
tmp = x + (t / (a / y));
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -2.95e+122: tmp = t elif z <= -5e+80: tmp = (y - a) * (x / z) elif z <= -3.3e+24: tmp = x + t elif z <= -11.5: tmp = y * ((t - x) / a) elif z <= -4.6e-26: tmp = x / (z / (y - a)) elif z <= -1.35e-73: tmp = x - (x / (a / y)) elif z <= -2.6e-149: tmp = y / ((a - z) / t) elif z <= 1.4e+146: tmp = x + (t / (a / y)) else: tmp = t return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -2.95e+122) tmp = t; elseif (z <= -5e+80) tmp = Float64(Float64(y - a) * Float64(x / z)); elseif (z <= -3.3e+24) tmp = Float64(x + t); elseif (z <= -11.5) tmp = Float64(y * Float64(Float64(t - x) / a)); elseif (z <= -4.6e-26) tmp = Float64(x / Float64(z / Float64(y - a))); elseif (z <= -1.35e-73) tmp = Float64(x - Float64(x / Float64(a / y))); elseif (z <= -2.6e-149) tmp = Float64(y / Float64(Float64(a - z) / t)); elseif (z <= 1.4e+146) tmp = Float64(x + Float64(t / Float64(a / y))); else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -2.95e+122) tmp = t; elseif (z <= -5e+80) tmp = (y - a) * (x / z); elseif (z <= -3.3e+24) tmp = x + t; elseif (z <= -11.5) tmp = y * ((t - x) / a); elseif (z <= -4.6e-26) tmp = x / (z / (y - a)); elseif (z <= -1.35e-73) tmp = x - (x / (a / y)); elseif (z <= -2.6e-149) tmp = y / ((a - z) / t); elseif (z <= 1.4e+146) tmp = x + (t / (a / y)); else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -2.95e+122], t, If[LessEqual[z, -5e+80], N[(N[(y - a), $MachinePrecision] * N[(x / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -3.3e+24], N[(x + t), $MachinePrecision], If[LessEqual[z, -11.5], N[(y * N[(N[(t - x), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -4.6e-26], N[(x / N[(z / N[(y - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -1.35e-73], N[(x - N[(x / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -2.6e-149], N[(y / N[(N[(a - z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.4e+146], N[(x + N[(t / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.95 \cdot 10^{+122}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq -5 \cdot 10^{+80}:\\
\;\;\;\;\left(y - a\right) \cdot \frac{x}{z}\\
\mathbf{elif}\;z \leq -3.3 \cdot 10^{+24}:\\
\;\;\;\;x + t\\
\mathbf{elif}\;z \leq -11.5:\\
\;\;\;\;y \cdot \frac{t - x}{a}\\
\mathbf{elif}\;z \leq -4.6 \cdot 10^{-26}:\\
\;\;\;\;\frac{x}{\frac{z}{y - a}}\\
\mathbf{elif}\;z \leq -1.35 \cdot 10^{-73}:\\
\;\;\;\;x - \frac{x}{\frac{a}{y}}\\
\mathbf{elif}\;z \leq -2.6 \cdot 10^{-149}:\\
\;\;\;\;\frac{y}{\frac{a - z}{t}}\\
\mathbf{elif}\;z \leq 1.4 \cdot 10^{+146}:\\
\;\;\;\;x + \frac{t}{\frac{a}{y}}\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if z < -2.95000000000000016e122 or 1.4e146 < z Initial program 29.9%
associate-*l/70.0%
Simplified70.0%
Taylor expanded in z around inf 60.0%
if -2.95000000000000016e122 < z < -4.99999999999999961e80Initial program 51.8%
associate-*l/61.1%
Simplified61.1%
Taylor expanded in z around inf 60.8%
associate--l+60.8%
associate-*r/60.8%
associate-*r/60.8%
div-sub60.8%
distribute-lft-out--60.8%
associate-*r/60.8%
distribute-rgt-out--60.8%
mul-1-neg60.8%
unsub-neg60.8%
associate-/l*69.8%
Simplified69.8%
Taylor expanded in t around 0 49.4%
associate-/l*58.5%
associate-/r/58.6%
Simplified58.6%
if -4.99999999999999961e80 < z < -3.2999999999999999e24Initial program 90.9%
associate-/l*92.6%
Simplified92.6%
clear-num90.9%
inv-pow90.9%
Applied egg-rr90.9%
unpow-190.9%
Simplified90.9%
Taylor expanded in t around inf 76.5%
Taylor expanded in z around inf 37.7%
if -3.2999999999999999e24 < z < -11.5Initial program 81.6%
associate-*l/100.0%
Simplified100.0%
Taylor expanded in z around 0 62.0%
associate-/l*80.1%
Simplified80.1%
Taylor expanded in y around inf 80.1%
div-sub80.1%
Simplified80.1%
if -11.5 < z < -4.60000000000000018e-26Initial program 82.5%
associate-*l/80.1%
Simplified80.1%
Taylor expanded in z around inf 59.9%
associate--l+59.9%
associate-*r/59.9%
associate-*r/59.9%
div-sub59.9%
distribute-lft-out--59.9%
associate-*r/59.9%
distribute-rgt-out--59.9%
mul-1-neg59.9%
unsub-neg59.9%
associate-/l*60.3%
Simplified60.3%
Taylor expanded in t around 0 41.9%
associate-/l*60.8%
Simplified60.8%
if -4.60000000000000018e-26 < z < -1.34999999999999997e-73Initial program 85.9%
associate-*l/99.8%
Simplified99.8%
Taylor expanded in z around 0 51.7%
associate-/l*64.9%
Simplified64.9%
Taylor expanded in t around 0 44.3%
mul-1-neg44.3%
unsub-neg44.3%
associate-/l*51.1%
Simplified51.1%
if -1.34999999999999997e-73 < z < -2.59999999999999999e-149Initial program 92.8%
associate-*l/92.6%
Simplified92.6%
associate-*l/92.8%
clear-num92.9%
associate-/r*92.6%
Applied egg-rr92.6%
Taylor expanded in y around -inf 69.4%
associate-/l*76.4%
Simplified76.4%
Taylor expanded in t around inf 69.3%
if -2.59999999999999999e-149 < z < 1.4e146Initial program 85.3%
associate-*l/92.4%
Simplified92.4%
Taylor expanded in z around 0 73.7%
associate-/l*77.5%
Simplified77.5%
Taylor expanded in t around inf 64.7%
associate-/l*67.9%
Simplified67.9%
Final simplification63.3%
(FPCore (x y z t a)
:precision binary64
(if (<= z -9.5e+120)
t
(if (<= z -1.16e+82)
(/ (* x (- y a)) z)
(if (<= z -3e+23)
(+ x t)
(if (<= z -0.0065)
(* y (/ (- t x) a))
(if (<= z -4.3e-26)
(/ x (/ z (- y a)))
(if (<= z -1.35e-73)
(- x (/ x (/ a y)))
(if (<= z -2.6e-149)
(/ y (/ (- a z) t))
(if (<= z 1.2e+146) (+ x (/ t (/ a y))) t)))))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -9.5e+120) {
tmp = t;
} else if (z <= -1.16e+82) {
tmp = (x * (y - a)) / z;
} else if (z <= -3e+23) {
tmp = x + t;
} else if (z <= -0.0065) {
tmp = y * ((t - x) / a);
} else if (z <= -4.3e-26) {
tmp = x / (z / (y - a));
} else if (z <= -1.35e-73) {
tmp = x - (x / (a / y));
} else if (z <= -2.6e-149) {
tmp = y / ((a - z) / t);
} else if (z <= 1.2e+146) {
tmp = x + (t / (a / y));
} else {
tmp = 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.5d+120)) then
tmp = t
else if (z <= (-1.16d+82)) then
tmp = (x * (y - a)) / z
else if (z <= (-3d+23)) then
tmp = x + t
else if (z <= (-0.0065d0)) then
tmp = y * ((t - x) / a)
else if (z <= (-4.3d-26)) then
tmp = x / (z / (y - a))
else if (z <= (-1.35d-73)) then
tmp = x - (x / (a / y))
else if (z <= (-2.6d-149)) then
tmp = y / ((a - z) / t)
else if (z <= 1.2d+146) then
tmp = x + (t / (a / y))
else
tmp = 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.5e+120) {
tmp = t;
} else if (z <= -1.16e+82) {
tmp = (x * (y - a)) / z;
} else if (z <= -3e+23) {
tmp = x + t;
} else if (z <= -0.0065) {
tmp = y * ((t - x) / a);
} else if (z <= -4.3e-26) {
tmp = x / (z / (y - a));
} else if (z <= -1.35e-73) {
tmp = x - (x / (a / y));
} else if (z <= -2.6e-149) {
tmp = y / ((a - z) / t);
} else if (z <= 1.2e+146) {
tmp = x + (t / (a / y));
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -9.5e+120: tmp = t elif z <= -1.16e+82: tmp = (x * (y - a)) / z elif z <= -3e+23: tmp = x + t elif z <= -0.0065: tmp = y * ((t - x) / a) elif z <= -4.3e-26: tmp = x / (z / (y - a)) elif z <= -1.35e-73: tmp = x - (x / (a / y)) elif z <= -2.6e-149: tmp = y / ((a - z) / t) elif z <= 1.2e+146: tmp = x + (t / (a / y)) else: tmp = t return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -9.5e+120) tmp = t; elseif (z <= -1.16e+82) tmp = Float64(Float64(x * Float64(y - a)) / z); elseif (z <= -3e+23) tmp = Float64(x + t); elseif (z <= -0.0065) tmp = Float64(y * Float64(Float64(t - x) / a)); elseif (z <= -4.3e-26) tmp = Float64(x / Float64(z / Float64(y - a))); elseif (z <= -1.35e-73) tmp = Float64(x - Float64(x / Float64(a / y))); elseif (z <= -2.6e-149) tmp = Float64(y / Float64(Float64(a - z) / t)); elseif (z <= 1.2e+146) tmp = Float64(x + Float64(t / Float64(a / y))); else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -9.5e+120) tmp = t; elseif (z <= -1.16e+82) tmp = (x * (y - a)) / z; elseif (z <= -3e+23) tmp = x + t; elseif (z <= -0.0065) tmp = y * ((t - x) / a); elseif (z <= -4.3e-26) tmp = x / (z / (y - a)); elseif (z <= -1.35e-73) tmp = x - (x / (a / y)); elseif (z <= -2.6e-149) tmp = y / ((a - z) / t); elseif (z <= 1.2e+146) tmp = x + (t / (a / y)); else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -9.5e+120], t, If[LessEqual[z, -1.16e+82], N[(N[(x * N[(y - a), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision], If[LessEqual[z, -3e+23], N[(x + t), $MachinePrecision], If[LessEqual[z, -0.0065], N[(y * N[(N[(t - x), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -4.3e-26], N[(x / N[(z / N[(y - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -1.35e-73], N[(x - N[(x / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -2.6e-149], N[(y / N[(N[(a - z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.2e+146], N[(x + N[(t / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -9.5 \cdot 10^{+120}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq -1.16 \cdot 10^{+82}:\\
\;\;\;\;\frac{x \cdot \left(y - a\right)}{z}\\
\mathbf{elif}\;z \leq -3 \cdot 10^{+23}:\\
\;\;\;\;x + t\\
\mathbf{elif}\;z \leq -0.0065:\\
\;\;\;\;y \cdot \frac{t - x}{a}\\
\mathbf{elif}\;z \leq -4.3 \cdot 10^{-26}:\\
\;\;\;\;\frac{x}{\frac{z}{y - a}}\\
\mathbf{elif}\;z \leq -1.35 \cdot 10^{-73}:\\
\;\;\;\;x - \frac{x}{\frac{a}{y}}\\
\mathbf{elif}\;z \leq -2.6 \cdot 10^{-149}:\\
\;\;\;\;\frac{y}{\frac{a - z}{t}}\\
\mathbf{elif}\;z \leq 1.2 \cdot 10^{+146}:\\
\;\;\;\;x + \frac{t}{\frac{a}{y}}\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if z < -9.5e120 or 1.2000000000000001e146 < z Initial program 29.9%
associate-*l/70.0%
Simplified70.0%
Taylor expanded in z around inf 60.0%
if -9.5e120 < z < -1.16e82Initial program 51.5%
associate-*l/51.4%
Simplified51.4%
Taylor expanded in z around inf 62.7%
associate--l+62.7%
associate-*r/62.7%
associate-*r/62.7%
div-sub62.7%
distribute-lft-out--62.7%
associate-*r/62.7%
distribute-rgt-out--62.7%
mul-1-neg62.7%
unsub-neg62.7%
associate-/l*62.3%
Simplified62.3%
Taylor expanded in t around 0 60.8%
if -1.16e82 < z < -3.0000000000000001e23Initial program 85.6%
associate-/l*93.7%
Simplified93.7%
clear-num92.2%
inv-pow92.2%
Applied egg-rr92.2%
unpow-192.2%
Simplified92.2%
Taylor expanded in t around inf 72.7%
Taylor expanded in z around inf 39.5%
if -3.0000000000000001e23 < z < -0.0064999999999999997Initial program 81.6%
associate-*l/100.0%
Simplified100.0%
Taylor expanded in z around 0 62.0%
associate-/l*80.1%
Simplified80.1%
Taylor expanded in y around inf 80.1%
div-sub80.1%
Simplified80.1%
if -0.0064999999999999997 < z < -4.29999999999999988e-26Initial program 82.5%
associate-*l/80.1%
Simplified80.1%
Taylor expanded in z around inf 59.9%
associate--l+59.9%
associate-*r/59.9%
associate-*r/59.9%
div-sub59.9%
distribute-lft-out--59.9%
associate-*r/59.9%
distribute-rgt-out--59.9%
mul-1-neg59.9%
unsub-neg59.9%
associate-/l*60.3%
Simplified60.3%
Taylor expanded in t around 0 41.9%
associate-/l*60.8%
Simplified60.8%
if -4.29999999999999988e-26 < z < -1.34999999999999997e-73Initial program 85.9%
associate-*l/99.8%
Simplified99.8%
Taylor expanded in z around 0 51.7%
associate-/l*64.9%
Simplified64.9%
Taylor expanded in t around 0 44.3%
mul-1-neg44.3%
unsub-neg44.3%
associate-/l*51.1%
Simplified51.1%
if -1.34999999999999997e-73 < z < -2.59999999999999999e-149Initial program 92.8%
associate-*l/92.6%
Simplified92.6%
associate-*l/92.8%
clear-num92.9%
associate-/r*92.6%
Applied egg-rr92.6%
Taylor expanded in y around -inf 69.4%
associate-/l*76.4%
Simplified76.4%
Taylor expanded in t around inf 69.3%
if -2.59999999999999999e-149 < z < 1.2000000000000001e146Initial program 85.3%
associate-*l/92.4%
Simplified92.4%
Taylor expanded in z around 0 73.7%
associate-/l*77.5%
Simplified77.5%
Taylor expanded in t around inf 64.7%
associate-/l*67.9%
Simplified67.9%
Final simplification63.3%
(FPCore (x y z t a)
:precision binary64
(if (<= z -5e+119)
t
(if (<= z -5e+80)
(* (- y a) (/ x z))
(if (<= z -2.45e+26)
(+ x t)
(if (<= z -0.0215)
(* y (/ (- t x) a))
(if (<= z -4.6e-26)
(/ x (/ z (- y a)))
(if (<= z 2.2e+146) (+ x (/ t (/ a y))) t)))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -5e+119) {
tmp = t;
} else if (z <= -5e+80) {
tmp = (y - a) * (x / z);
} else if (z <= -2.45e+26) {
tmp = x + t;
} else if (z <= -0.0215) {
tmp = y * ((t - x) / a);
} else if (z <= -4.6e-26) {
tmp = x / (z / (y - a));
} else if (z <= 2.2e+146) {
tmp = x + (t / (a / y));
} else {
tmp = 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 <= (-5d+119)) then
tmp = t
else if (z <= (-5d+80)) then
tmp = (y - a) * (x / z)
else if (z <= (-2.45d+26)) then
tmp = x + t
else if (z <= (-0.0215d0)) then
tmp = y * ((t - x) / a)
else if (z <= (-4.6d-26)) then
tmp = x / (z / (y - a))
else if (z <= 2.2d+146) then
tmp = x + (t / (a / y))
else
tmp = 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 <= -5e+119) {
tmp = t;
} else if (z <= -5e+80) {
tmp = (y - a) * (x / z);
} else if (z <= -2.45e+26) {
tmp = x + t;
} else if (z <= -0.0215) {
tmp = y * ((t - x) / a);
} else if (z <= -4.6e-26) {
tmp = x / (z / (y - a));
} else if (z <= 2.2e+146) {
tmp = x + (t / (a / y));
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -5e+119: tmp = t elif z <= -5e+80: tmp = (y - a) * (x / z) elif z <= -2.45e+26: tmp = x + t elif z <= -0.0215: tmp = y * ((t - x) / a) elif z <= -4.6e-26: tmp = x / (z / (y - a)) elif z <= 2.2e+146: tmp = x + (t / (a / y)) else: tmp = t return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -5e+119) tmp = t; elseif (z <= -5e+80) tmp = Float64(Float64(y - a) * Float64(x / z)); elseif (z <= -2.45e+26) tmp = Float64(x + t); elseif (z <= -0.0215) tmp = Float64(y * Float64(Float64(t - x) / a)); elseif (z <= -4.6e-26) tmp = Float64(x / Float64(z / Float64(y - a))); elseif (z <= 2.2e+146) tmp = Float64(x + Float64(t / Float64(a / y))); else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -5e+119) tmp = t; elseif (z <= -5e+80) tmp = (y - a) * (x / z); elseif (z <= -2.45e+26) tmp = x + t; elseif (z <= -0.0215) tmp = y * ((t - x) / a); elseif (z <= -4.6e-26) tmp = x / (z / (y - a)); elseif (z <= 2.2e+146) tmp = x + (t / (a / y)); else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -5e+119], t, If[LessEqual[z, -5e+80], N[(N[(y - a), $MachinePrecision] * N[(x / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -2.45e+26], N[(x + t), $MachinePrecision], If[LessEqual[z, -0.0215], N[(y * N[(N[(t - x), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -4.6e-26], N[(x / N[(z / N[(y - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.2e+146], N[(x + N[(t / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -5 \cdot 10^{+119}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq -5 \cdot 10^{+80}:\\
\;\;\;\;\left(y - a\right) \cdot \frac{x}{z}\\
\mathbf{elif}\;z \leq -2.45 \cdot 10^{+26}:\\
\;\;\;\;x + t\\
\mathbf{elif}\;z \leq -0.0215:\\
\;\;\;\;y \cdot \frac{t - x}{a}\\
\mathbf{elif}\;z \leq -4.6 \cdot 10^{-26}:\\
\;\;\;\;\frac{x}{\frac{z}{y - a}}\\
\mathbf{elif}\;z \leq 2.2 \cdot 10^{+146}:\\
\;\;\;\;x + \frac{t}{\frac{a}{y}}\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if z < -4.9999999999999999e119 or 2.1999999999999998e146 < z Initial program 29.9%
associate-*l/70.0%
Simplified70.0%
Taylor expanded in z around inf 60.0%
if -4.9999999999999999e119 < z < -4.99999999999999961e80Initial program 51.8%
associate-*l/61.1%
Simplified61.1%
Taylor expanded in z around inf 60.8%
associate--l+60.8%
associate-*r/60.8%
associate-*r/60.8%
div-sub60.8%
distribute-lft-out--60.8%
associate-*r/60.8%
distribute-rgt-out--60.8%
mul-1-neg60.8%
unsub-neg60.8%
associate-/l*69.8%
Simplified69.8%
Taylor expanded in t around 0 49.4%
associate-/l*58.5%
associate-/r/58.6%
Simplified58.6%
if -4.99999999999999961e80 < z < -2.44999999999999987e26Initial program 90.9%
associate-/l*92.6%
Simplified92.6%
clear-num90.9%
inv-pow90.9%
Applied egg-rr90.9%
unpow-190.9%
Simplified90.9%
Taylor expanded in t around inf 76.5%
Taylor expanded in z around inf 37.7%
if -2.44999999999999987e26 < z < -0.021499999999999998Initial program 81.6%
associate-*l/100.0%
Simplified100.0%
Taylor expanded in z around 0 62.0%
associate-/l*80.1%
Simplified80.1%
Taylor expanded in y around inf 80.1%
div-sub80.1%
Simplified80.1%
if -0.021499999999999998 < z < -4.60000000000000018e-26Initial program 82.5%
associate-*l/80.1%
Simplified80.1%
Taylor expanded in z around inf 59.9%
associate--l+59.9%
associate-*r/59.9%
associate-*r/59.9%
div-sub59.9%
distribute-lft-out--59.9%
associate-*r/59.9%
distribute-rgt-out--59.9%
mul-1-neg59.9%
unsub-neg59.9%
associate-/l*60.3%
Simplified60.3%
Taylor expanded in t around 0 41.9%
associate-/l*60.8%
Simplified60.8%
if -4.60000000000000018e-26 < z < 2.1999999999999998e146Initial program 86.0%
associate-*l/93.1%
Simplified93.1%
Taylor expanded in z around 0 70.0%
associate-/l*75.0%
Simplified75.0%
Taylor expanded in t around inf 60.3%
associate-/l*63.5%
Simplified63.5%
Final simplification61.5%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* t (/ (- y z) (- a z)))))
(if (<= z -2.55e+26)
t_1
(if (<= z -6.4e-152)
(* y (/ (- t x) (- a z)))
(if (<= z 2.8e-41)
(+ x (* (- t x) (/ y a)))
(if (<= z 3e+173) t_1 (+ t (* (- t x) (/ a z)))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t * ((y - z) / (a - z));
double tmp;
if (z <= -2.55e+26) {
tmp = t_1;
} else if (z <= -6.4e-152) {
tmp = y * ((t - x) / (a - z));
} else if (z <= 2.8e-41) {
tmp = x + ((t - x) * (y / a));
} else if (z <= 3e+173) {
tmp = t_1;
} else {
tmp = t + ((t - x) * (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) :: t_1
real(8) :: tmp
t_1 = t * ((y - z) / (a - z))
if (z <= (-2.55d+26)) then
tmp = t_1
else if (z <= (-6.4d-152)) then
tmp = y * ((t - x) / (a - z))
else if (z <= 2.8d-41) then
tmp = x + ((t - x) * (y / a))
else if (z <= 3d+173) then
tmp = t_1
else
tmp = t + ((t - x) * (a / z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = t * ((y - z) / (a - z));
double tmp;
if (z <= -2.55e+26) {
tmp = t_1;
} else if (z <= -6.4e-152) {
tmp = y * ((t - x) / (a - z));
} else if (z <= 2.8e-41) {
tmp = x + ((t - x) * (y / a));
} else if (z <= 3e+173) {
tmp = t_1;
} else {
tmp = t + ((t - x) * (a / z));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t * ((y - z) / (a - z)) tmp = 0 if z <= -2.55e+26: tmp = t_1 elif z <= -6.4e-152: tmp = y * ((t - x) / (a - z)) elif z <= 2.8e-41: tmp = x + ((t - x) * (y / a)) elif z <= 3e+173: tmp = t_1 else: tmp = t + ((t - x) * (a / z)) return tmp
function code(x, y, z, t, a) t_1 = Float64(t * Float64(Float64(y - z) / Float64(a - z))) tmp = 0.0 if (z <= -2.55e+26) tmp = t_1; elseif (z <= -6.4e-152) tmp = Float64(y * Float64(Float64(t - x) / Float64(a - z))); elseif (z <= 2.8e-41) tmp = Float64(x + Float64(Float64(t - x) * Float64(y / a))); elseif (z <= 3e+173) tmp = t_1; else tmp = Float64(t + Float64(Float64(t - x) * Float64(a / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t * ((y - z) / (a - z)); tmp = 0.0; if (z <= -2.55e+26) tmp = t_1; elseif (z <= -6.4e-152) tmp = y * ((t - x) / (a - z)); elseif (z <= 2.8e-41) tmp = x + ((t - x) * (y / a)); elseif (z <= 3e+173) tmp = t_1; else tmp = t + ((t - x) * (a / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2.55e+26], t$95$1, If[LessEqual[z, -6.4e-152], N[(y * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.8e-41], N[(x + N[(N[(t - x), $MachinePrecision] * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3e+173], t$95$1, N[(t + N[(N[(t - x), $MachinePrecision] * N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \frac{y - z}{a - z}\\
\mathbf{if}\;z \leq -2.55 \cdot 10^{+26}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq -6.4 \cdot 10^{-152}:\\
\;\;\;\;y \cdot \frac{t - x}{a - z}\\
\mathbf{elif}\;z \leq 2.8 \cdot 10^{-41}:\\
\;\;\;\;x + \left(t - x\right) \cdot \frac{y}{a}\\
\mathbf{elif}\;z \leq 3 \cdot 10^{+173}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t + \left(t - x\right) \cdot \frac{a}{z}\\
\end{array}
\end{array}
if z < -2.5499999999999999e26 or 2.8000000000000002e-41 < z < 2.9999999999999998e173Initial program 55.6%
associate-*l/78.2%
Simplified78.2%
Taylor expanded in x around 0 44.6%
associate-*r/60.4%
Simplified60.4%
if -2.5499999999999999e26 < z < -6.40000000000000025e-152Initial program 87.4%
associate-*l/94.6%
Simplified94.6%
Taylor expanded in y around inf 70.5%
div-sub73.2%
Simplified73.2%
if -6.40000000000000025e-152 < z < 2.8000000000000002e-41Initial program 94.1%
associate-*l/97.7%
Simplified97.7%
Taylor expanded in z around 0 93.8%
if 2.9999999999999998e173 < z Initial program 21.4%
associate-*l/61.4%
Simplified61.4%
Taylor expanded in z around inf 65.5%
associate--l+65.5%
associate-*r/65.5%
associate-*r/65.5%
div-sub65.5%
distribute-lft-out--65.5%
associate-*r/65.5%
distribute-rgt-out--65.6%
mul-1-neg65.6%
unsub-neg65.6%
associate-/l*85.6%
Simplified85.6%
Taylor expanded in y around 0 58.4%
mul-1-neg58.4%
associate-/l*81.8%
distribute-frac-neg81.8%
associate-/r/82.2%
distribute-frac-neg82.2%
cancel-sign-sub82.2%
Simplified82.2%
Final simplification76.4%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -1.6e-37) (not (<= a 6.6e-122))) (+ x (/ (- t x) (/ a (- y z)))) (- t (/ y (/ z (- t x))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -1.6e-37) || !(a <= 6.6e-122)) {
tmp = x + ((t - x) / (a / (y - z)));
} else {
tmp = t - (y / (z / (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 ((a <= (-1.6d-37)) .or. (.not. (a <= 6.6d-122))) then
tmp = x + ((t - x) / (a / (y - z)))
else
tmp = t - (y / (z / (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 ((a <= -1.6e-37) || !(a <= 6.6e-122)) {
tmp = x + ((t - x) / (a / (y - z)));
} else {
tmp = t - (y / (z / (t - x)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -1.6e-37) or not (a <= 6.6e-122): tmp = x + ((t - x) / (a / (y - z))) else: tmp = t - (y / (z / (t - x))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -1.6e-37) || !(a <= 6.6e-122)) tmp = Float64(x + Float64(Float64(t - x) / Float64(a / Float64(y - z)))); else tmp = Float64(t - Float64(y / Float64(z / Float64(t - x)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a <= -1.6e-37) || ~((a <= 6.6e-122))) tmp = x + ((t - x) / (a / (y - z))); else tmp = t - (y / (z / (t - x))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -1.6e-37], N[Not[LessEqual[a, 6.6e-122]], $MachinePrecision]], N[(x + N[(N[(t - x), $MachinePrecision] / N[(a / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t - N[(y / N[(z / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.6 \cdot 10^{-37} \lor \neg \left(a \leq 6.6 \cdot 10^{-122}\right):\\
\;\;\;\;x + \frac{t - x}{\frac{a}{y - z}}\\
\mathbf{else}:\\
\;\;\;\;t - \frac{y}{\frac{z}{t - x}}\\
\end{array}
\end{array}
if a < -1.5999999999999999e-37 or 6.59999999999999999e-122 < a Initial program 72.9%
associate-*l/91.1%
Simplified91.1%
Taylor expanded in a around inf 66.0%
associate-/l*76.2%
Simplified76.2%
if -1.5999999999999999e-37 < a < 6.59999999999999999e-122Initial program 65.0%
*-commutative65.0%
sub-neg65.0%
distribute-lft-in65.1%
Applied egg-rr65.1%
Taylor expanded in a around 0 77.3%
mul-1-neg77.3%
unsub-neg77.3%
associate-/l*78.4%
Simplified78.4%
Final simplification77.0%
(FPCore (x y z t a) :precision binary64 (if (or (<= t -3.2e-80) (not (<= t 7.6e-53))) (+ x (/ (- y z) (/ (- a z) t))) (* x (+ (/ (- z y) (- a z)) 1.0))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -3.2e-80) || !(t <= 7.6e-53)) {
tmp = x + ((y - z) / ((a - z) / t));
} else {
tmp = x * (((z - y) / (a - z)) + 1.0);
}
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 ((t <= (-3.2d-80)) .or. (.not. (t <= 7.6d-53))) then
tmp = x + ((y - z) / ((a - z) / t))
else
tmp = x * (((z - y) / (a - z)) + 1.0d0)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -3.2e-80) || !(t <= 7.6e-53)) {
tmp = x + ((y - z) / ((a - z) / t));
} else {
tmp = x * (((z - y) / (a - z)) + 1.0);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (t <= -3.2e-80) or not (t <= 7.6e-53): tmp = x + ((y - z) / ((a - z) / t)) else: tmp = x * (((z - y) / (a - z)) + 1.0) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((t <= -3.2e-80) || !(t <= 7.6e-53)) tmp = Float64(x + Float64(Float64(y - z) / Float64(Float64(a - z) / t))); else tmp = Float64(x * Float64(Float64(Float64(z - y) / Float64(a - z)) + 1.0)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((t <= -3.2e-80) || ~((t <= 7.6e-53))) tmp = x + ((y - z) / ((a - z) / t)); else tmp = x * (((z - y) / (a - z)) + 1.0); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[t, -3.2e-80], N[Not[LessEqual[t, 7.6e-53]], $MachinePrecision]], N[(x + N[(N[(y - z), $MachinePrecision] / N[(N[(a - z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(N[(N[(z - y), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -3.2 \cdot 10^{-80} \lor \neg \left(t \leq 7.6 \cdot 10^{-53}\right):\\
\;\;\;\;x + \frac{y - z}{\frac{a - z}{t}}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(\frac{z - y}{a - z} + 1\right)\\
\end{array}
\end{array}
if t < -3.1999999999999999e-80 or 7.5999999999999995e-53 < t Initial program 69.3%
associate-/l*88.5%
Simplified88.5%
clear-num87.8%
inv-pow87.8%
Applied egg-rr87.8%
unpow-187.8%
Simplified87.8%
Taylor expanded in t around inf 83.1%
if -3.1999999999999999e-80 < t < 7.5999999999999995e-53Initial program 71.4%
associate-*l/76.9%
Simplified76.9%
Taylor expanded in x around inf 69.4%
mul-1-neg69.4%
unsub-neg69.4%
Simplified69.4%
Final simplification78.0%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -2e-41) (not (<= a 6.6e-122))) (+ x (/ (- t x) (/ a (- y z)))) (+ t (/ (* (- y a) (- x t)) z))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -2e-41) || !(a <= 6.6e-122)) {
tmp = x + ((t - x) / (a / (y - z)));
} else {
tmp = t + (((y - a) * (x - 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 <= (-2d-41)) .or. (.not. (a <= 6.6d-122))) then
tmp = x + ((t - x) / (a / (y - z)))
else
tmp = t + (((y - a) * (x - 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 <= -2e-41) || !(a <= 6.6e-122)) {
tmp = x + ((t - x) / (a / (y - z)));
} else {
tmp = t + (((y - a) * (x - t)) / z);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -2e-41) or not (a <= 6.6e-122): tmp = x + ((t - x) / (a / (y - z))) else: tmp = t + (((y - a) * (x - t)) / z) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -2e-41) || !(a <= 6.6e-122)) tmp = Float64(x + Float64(Float64(t - x) / Float64(a / Float64(y - z)))); else tmp = Float64(t + Float64(Float64(Float64(y - a) * Float64(x - t)) / z)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a <= -2e-41) || ~((a <= 6.6e-122))) tmp = x + ((t - x) / (a / (y - z))); else tmp = t + (((y - a) * (x - t)) / z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -2e-41], N[Not[LessEqual[a, 6.6e-122]], $MachinePrecision]], N[(x + N[(N[(t - x), $MachinePrecision] / N[(a / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t + N[(N[(N[(y - a), $MachinePrecision] * N[(x - t), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -2 \cdot 10^{-41} \lor \neg \left(a \leq 6.6 \cdot 10^{-122}\right):\\
\;\;\;\;x + \frac{t - x}{\frac{a}{y - z}}\\
\mathbf{else}:\\
\;\;\;\;t + \frac{\left(y - a\right) \cdot \left(x - t\right)}{z}\\
\end{array}
\end{array}
if a < -2.00000000000000001e-41 or 6.59999999999999999e-122 < a Initial program 72.9%
associate-*l/91.1%
Simplified91.1%
Taylor expanded in a around inf 66.0%
associate-/l*76.2%
Simplified76.2%
if -2.00000000000000001e-41 < a < 6.59999999999999999e-122Initial program 65.0%
+-commutative65.0%
associate-*l/75.5%
fma-def75.5%
Simplified75.5%
Taylor expanded in z around -inf 82.5%
Final simplification78.4%
(FPCore (x y z t a)
:precision binary64
(if (<= z -1.85e+119)
t
(if (<= z -5.4e+45)
(* (- y a) (/ x z))
(if (<= z 1.3e+146) (+ x (/ t (/ a y))) t))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1.85e+119) {
tmp = t;
} else if (z <= -5.4e+45) {
tmp = (y - a) * (x / z);
} else if (z <= 1.3e+146) {
tmp = x + (t / (a / y));
} else {
tmp = 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.85d+119)) then
tmp = t
else if (z <= (-5.4d+45)) then
tmp = (y - a) * (x / z)
else if (z <= 1.3d+146) then
tmp = x + (t / (a / y))
else
tmp = 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.85e+119) {
tmp = t;
} else if (z <= -5.4e+45) {
tmp = (y - a) * (x / z);
} else if (z <= 1.3e+146) {
tmp = x + (t / (a / y));
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -1.85e+119: tmp = t elif z <= -5.4e+45: tmp = (y - a) * (x / z) elif z <= 1.3e+146: tmp = x + (t / (a / y)) else: tmp = t return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -1.85e+119) tmp = t; elseif (z <= -5.4e+45) tmp = Float64(Float64(y - a) * Float64(x / z)); elseif (z <= 1.3e+146) tmp = Float64(x + Float64(t / Float64(a / y))); else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -1.85e+119) tmp = t; elseif (z <= -5.4e+45) tmp = (y - a) * (x / z); elseif (z <= 1.3e+146) tmp = x + (t / (a / y)); else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -1.85e+119], t, If[LessEqual[z, -5.4e+45], N[(N[(y - a), $MachinePrecision] * N[(x / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.3e+146], N[(x + N[(t / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.85 \cdot 10^{+119}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq -5.4 \cdot 10^{+45}:\\
\;\;\;\;\left(y - a\right) \cdot \frac{x}{z}\\
\mathbf{elif}\;z \leq 1.3 \cdot 10^{+146}:\\
\;\;\;\;x + \frac{t}{\frac{a}{y}}\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if z < -1.85e119 or 1.30000000000000007e146 < z Initial program 29.9%
associate-*l/70.0%
Simplified70.0%
Taylor expanded in z around inf 60.0%
if -1.85e119 < z < -5.39999999999999968e45Initial program 65.3%
associate-*l/72.0%
Simplified72.0%
Taylor expanded in z around inf 60.9%
associate--l+60.9%
associate-*r/60.9%
associate-*r/60.9%
div-sub60.9%
distribute-lft-out--60.9%
associate-*r/60.9%
distribute-rgt-out--60.9%
mul-1-neg60.9%
unsub-neg60.9%
associate-/l*66.2%
Simplified66.2%
Taylor expanded in t around 0 36.9%
associate-/l*42.3%
associate-/r/42.3%
Simplified42.3%
if -5.39999999999999968e45 < z < 1.30000000000000007e146Initial program 86.2%
associate-*l/93.1%
Simplified93.1%
Taylor expanded in z around 0 68.1%
associate-/l*73.2%
Simplified73.2%
Taylor expanded in t around inf 57.7%
associate-/l*61.1%
Simplified61.1%
Final simplification59.6%
(FPCore (x y z t a) :precision binary64 (if (or (<= t -2e-80) (not (<= t 5.2e-72))) (* t (/ (- y z) (- a z))) (- x (/ x (/ a y)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -2e-80) || !(t <= 5.2e-72)) {
tmp = t * ((y - z) / (a - z));
} else {
tmp = x - (x / (a / 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 ((t <= (-2d-80)) .or. (.not. (t <= 5.2d-72))) then
tmp = t * ((y - z) / (a - z))
else
tmp = x - (x / (a / y))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -2e-80) || !(t <= 5.2e-72)) {
tmp = t * ((y - z) / (a - z));
} else {
tmp = x - (x / (a / y));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (t <= -2e-80) or not (t <= 5.2e-72): tmp = t * ((y - z) / (a - z)) else: tmp = x - (x / (a / y)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((t <= -2e-80) || !(t <= 5.2e-72)) tmp = Float64(t * Float64(Float64(y - z) / Float64(a - z))); else tmp = Float64(x - Float64(x / Float64(a / y))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((t <= -2e-80) || ~((t <= 5.2e-72))) tmp = t * ((y - z) / (a - z)); else tmp = x - (x / (a / y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[t, -2e-80], N[Not[LessEqual[t, 5.2e-72]], $MachinePrecision]], N[(t * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x - N[(x / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2 \cdot 10^{-80} \lor \neg \left(t \leq 5.2 \cdot 10^{-72}\right):\\
\;\;\;\;t \cdot \frac{y - z}{a - z}\\
\mathbf{else}:\\
\;\;\;\;x - \frac{x}{\frac{a}{y}}\\
\end{array}
\end{array}
if t < -1.99999999999999992e-80 or 5.19999999999999992e-72 < t Initial program 69.1%
associate-*l/90.0%
Simplified90.0%
Taylor expanded in x around 0 55.3%
associate-*r/73.4%
Simplified73.4%
if -1.99999999999999992e-80 < t < 5.19999999999999992e-72Initial program 72.0%
associate-*l/77.7%
Simplified77.7%
Taylor expanded in z around 0 62.1%
associate-/l*64.2%
Simplified64.2%
Taylor expanded in t around 0 58.8%
mul-1-neg58.8%
unsub-neg58.8%
associate-/l*61.9%
Simplified61.9%
Final simplification69.3%
(FPCore (x y z t a)
:precision binary64
(if (<= y -5.6e+132)
(/ t (/ a y))
(if (<= y 2.95e+118)
(+ x t)
(if (<= y 6.6e+268) (/ (- x) (/ a y)) (* y (/ t a))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (y <= -5.6e+132) {
tmp = t / (a / y);
} else if (y <= 2.95e+118) {
tmp = x + t;
} else if (y <= 6.6e+268) {
tmp = -x / (a / y);
} else {
tmp = y * (t / 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) :: tmp
if (y <= (-5.6d+132)) then
tmp = t / (a / y)
else if (y <= 2.95d+118) then
tmp = x + t
else if (y <= 6.6d+268) then
tmp = -x / (a / y)
else
tmp = y * (t / a)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (y <= -5.6e+132) {
tmp = t / (a / y);
} else if (y <= 2.95e+118) {
tmp = x + t;
} else if (y <= 6.6e+268) {
tmp = -x / (a / y);
} else {
tmp = y * (t / a);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if y <= -5.6e+132: tmp = t / (a / y) elif y <= 2.95e+118: tmp = x + t elif y <= 6.6e+268: tmp = -x / (a / y) else: tmp = y * (t / a) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (y <= -5.6e+132) tmp = Float64(t / Float64(a / y)); elseif (y <= 2.95e+118) tmp = Float64(x + t); elseif (y <= 6.6e+268) tmp = Float64(Float64(-x) / Float64(a / y)); else tmp = Float64(y * Float64(t / a)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (y <= -5.6e+132) tmp = t / (a / y); elseif (y <= 2.95e+118) tmp = x + t; elseif (y <= 6.6e+268) tmp = -x / (a / y); else tmp = y * (t / a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[y, -5.6e+132], N[(t / N[(a / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.95e+118], N[(x + t), $MachinePrecision], If[LessEqual[y, 6.6e+268], N[((-x) / N[(a / y), $MachinePrecision]), $MachinePrecision], N[(y * N[(t / a), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -5.6 \cdot 10^{+132}:\\
\;\;\;\;\frac{t}{\frac{a}{y}}\\
\mathbf{elif}\;y \leq 2.95 \cdot 10^{+118}:\\
\;\;\;\;x + t\\
\mathbf{elif}\;y \leq 6.6 \cdot 10^{+268}:\\
\;\;\;\;\frac{-x}{\frac{a}{y}}\\
\mathbf{else}:\\
\;\;\;\;y \cdot \frac{t}{a}\\
\end{array}
\end{array}
if y < -5.5999999999999998e132Initial program 80.2%
associate-*l/95.8%
Simplified95.8%
Taylor expanded in z around 0 52.1%
associate-/l*63.5%
Simplified63.5%
Taylor expanded in y around inf 55.2%
div-sub55.2%
Simplified55.2%
Taylor expanded in t around inf 40.3%
associate-/l*51.0%
Simplified51.0%
if -5.5999999999999998e132 < y < 2.9499999999999999e118Initial program 66.9%
associate-/l*79.2%
Simplified79.2%
clear-num78.7%
inv-pow78.7%
Applied egg-rr78.7%
unpow-178.7%
Simplified78.7%
Taylor expanded in t around inf 71.1%
Taylor expanded in z around inf 43.6%
if 2.9499999999999999e118 < y < 6.6000000000000002e268Initial program 74.1%
associate-*l/96.8%
Simplified96.8%
Taylor expanded in z around 0 58.6%
associate-/l*70.2%
Simplified70.2%
Taylor expanded in y around inf 61.2%
div-sub67.2%
Simplified67.2%
Taylor expanded in t around 0 48.5%
mul-1-neg48.5%
associate-/l*54.2%
Simplified54.2%
if 6.6000000000000002e268 < y Initial program 100.0%
associate-*l/100.0%
Simplified100.0%
Taylor expanded in z around 0 87.5%
associate-/l*87.5%
Simplified87.5%
Taylor expanded in y around inf 87.5%
div-sub87.5%
Simplified87.5%
Taylor expanded in t around inf 87.5%
Final simplification47.0%
(FPCore (x y z t a) :precision binary64 (if (or (<= y -3.2e+44) (not (<= y 2.5e+118))) (* y (/ (- t x) a)) (+ x t)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((y <= -3.2e+44) || !(y <= 2.5e+118)) {
tmp = y * ((t - x) / a);
} else {
tmp = x + 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 ((y <= (-3.2d+44)) .or. (.not. (y <= 2.5d+118))) then
tmp = y * ((t - x) / a)
else
tmp = x + t
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((y <= -3.2e+44) || !(y <= 2.5e+118)) {
tmp = y * ((t - x) / a);
} else {
tmp = x + t;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (y <= -3.2e+44) or not (y <= 2.5e+118): tmp = y * ((t - x) / a) else: tmp = x + t return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((y <= -3.2e+44) || !(y <= 2.5e+118)) tmp = Float64(y * Float64(Float64(t - x) / a)); else tmp = Float64(x + t); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((y <= -3.2e+44) || ~((y <= 2.5e+118))) tmp = y * ((t - x) / a); else tmp = x + t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[y, -3.2e+44], N[Not[LessEqual[y, 2.5e+118]], $MachinePrecision]], N[(y * N[(N[(t - x), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], N[(x + t), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -3.2 \cdot 10^{+44} \lor \neg \left(y \leq 2.5 \cdot 10^{+118}\right):\\
\;\;\;\;y \cdot \frac{t - x}{a}\\
\mathbf{else}:\\
\;\;\;\;x + t\\
\end{array}
\end{array}
if y < -3.20000000000000004e44 or 2.49999999999999986e118 < y Initial program 77.6%
associate-*l/94.3%
Simplified94.3%
Taylor expanded in z around 0 57.6%
associate-/l*68.1%
Simplified68.1%
Taylor expanded in y around inf 57.7%
div-sub59.9%
Simplified59.9%
if -3.20000000000000004e44 < y < 2.49999999999999986e118Initial program 66.1%
associate-/l*78.0%
Simplified78.0%
clear-num77.4%
inv-pow77.4%
Applied egg-rr77.4%
unpow-177.4%
Simplified77.4%
Taylor expanded in t around inf 74.8%
Taylor expanded in z around inf 46.8%
Final simplification51.4%
(FPCore (x y z t a) :precision binary64 (if (or (<= y -6.5e+132) (not (<= y 4.8e+138))) (* y (/ t a)) (+ x t)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((y <= -6.5e+132) || !(y <= 4.8e+138)) {
tmp = y * (t / a);
} else {
tmp = x + 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 ((y <= (-6.5d+132)) .or. (.not. (y <= 4.8d+138))) then
tmp = y * (t / a)
else
tmp = x + t
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((y <= -6.5e+132) || !(y <= 4.8e+138)) {
tmp = y * (t / a);
} else {
tmp = x + t;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (y <= -6.5e+132) or not (y <= 4.8e+138): tmp = y * (t / a) else: tmp = x + t return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((y <= -6.5e+132) || !(y <= 4.8e+138)) tmp = Float64(y * Float64(t / a)); else tmp = Float64(x + t); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((y <= -6.5e+132) || ~((y <= 4.8e+138))) tmp = y * (t / a); else tmp = x + t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[y, -6.5e+132], N[Not[LessEqual[y, 4.8e+138]], $MachinePrecision]], N[(y * N[(t / a), $MachinePrecision]), $MachinePrecision], N[(x + t), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -6.5 \cdot 10^{+132} \lor \neg \left(y \leq 4.8 \cdot 10^{+138}\right):\\
\;\;\;\;y \cdot \frac{t}{a}\\
\mathbf{else}:\\
\;\;\;\;x + t\\
\end{array}
\end{array}
if y < -6.4999999999999994e132 or 4.8000000000000002e138 < y Initial program 79.8%
associate-*l/96.6%
Simplified96.6%
Taylor expanded in z around 0 60.4%
associate-/l*71.1%
Simplified71.1%
Taylor expanded in y around inf 62.9%
div-sub66.2%
Simplified66.2%
Taylor expanded in t around inf 47.6%
if -6.4999999999999994e132 < y < 4.8000000000000002e138Initial program 67.1%
associate-/l*79.7%
Simplified79.7%
clear-num79.1%
inv-pow79.1%
Applied egg-rr79.1%
unpow-179.1%
Simplified79.1%
Taylor expanded in t around inf 70.7%
Taylor expanded in z around inf 43.3%
Final simplification44.3%
(FPCore (x y z t a) :precision binary64 (if (or (<= y -5.3e+132) (not (<= y 3.6e+143))) (/ t (/ a y)) (+ x t)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((y <= -5.3e+132) || !(y <= 3.6e+143)) {
tmp = t / (a / y);
} else {
tmp = x + 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 ((y <= (-5.3d+132)) .or. (.not. (y <= 3.6d+143))) then
tmp = t / (a / y)
else
tmp = x + t
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((y <= -5.3e+132) || !(y <= 3.6e+143)) {
tmp = t / (a / y);
} else {
tmp = x + t;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (y <= -5.3e+132) or not (y <= 3.6e+143): tmp = t / (a / y) else: tmp = x + t return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((y <= -5.3e+132) || !(y <= 3.6e+143)) tmp = Float64(t / Float64(a / y)); else tmp = Float64(x + t); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((y <= -5.3e+132) || ~((y <= 3.6e+143))) tmp = t / (a / y); else tmp = x + t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[y, -5.3e+132], N[Not[LessEqual[y, 3.6e+143]], $MachinePrecision]], N[(t / N[(a / y), $MachinePrecision]), $MachinePrecision], N[(x + t), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -5.3 \cdot 10^{+132} \lor \neg \left(y \leq 3.6 \cdot 10^{+143}\right):\\
\;\;\;\;\frac{t}{\frac{a}{y}}\\
\mathbf{else}:\\
\;\;\;\;x + t\\
\end{array}
\end{array}
if y < -5.3e132 or 3.5999999999999999e143 < y Initial program 79.8%
associate-*l/96.6%
Simplified96.6%
Taylor expanded in z around 0 60.4%
associate-/l*71.1%
Simplified71.1%
Taylor expanded in y around inf 62.9%
div-sub66.2%
Simplified66.2%
Taylor expanded in t around inf 43.3%
associate-/l*50.6%
Simplified50.6%
if -5.3e132 < y < 3.5999999999999999e143Initial program 67.1%
associate-/l*79.7%
Simplified79.7%
clear-num79.1%
inv-pow79.1%
Applied egg-rr79.1%
unpow-179.1%
Simplified79.1%
Taylor expanded in t around inf 70.7%
Taylor expanded in z around inf 43.3%
Final simplification45.0%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -7.5e-54) (not (<= z 1.9e+44))) (+ x t) x))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -7.5e-54) || !(z <= 1.9e+44)) {
tmp = x + 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 ((z <= (-7.5d-54)) .or. (.not. (z <= 1.9d+44))) then
tmp = x + 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 ((z <= -7.5e-54) || !(z <= 1.9e+44)) {
tmp = x + t;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -7.5e-54) or not (z <= 1.9e+44): tmp = x + t else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -7.5e-54) || !(z <= 1.9e+44)) tmp = Float64(x + t); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((z <= -7.5e-54) || ~((z <= 1.9e+44))) tmp = x + t; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -7.5e-54], N[Not[LessEqual[z, 1.9e+44]], $MachinePrecision]], N[(x + t), $MachinePrecision], x]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -7.5 \cdot 10^{-54} \lor \neg \left(z \leq 1.9 \cdot 10^{+44}\right):\\
\;\;\;\;x + t\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if z < -7.5000000000000005e-54 or 1.9000000000000001e44 < z Initial program 50.9%
associate-/l*71.9%
Simplified71.9%
clear-num71.8%
inv-pow71.8%
Applied egg-rr71.8%
unpow-171.8%
Simplified71.8%
Taylor expanded in t around inf 58.1%
Taylor expanded in z around inf 42.3%
if -7.5000000000000005e-54 < z < 1.9000000000000001e44Initial program 89.0%
associate-*l/93.8%
Simplified93.8%
Taylor expanded in a around inf 38.2%
Final simplification40.2%
(FPCore (x y z t a) :precision binary64 (if (<= z -9.2e+33) t (if (<= z 1.4e+146) x t)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -9.2e+33) {
tmp = t;
} else if (z <= 1.4e+146) {
tmp = x;
} else {
tmp = 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.2d+33)) then
tmp = t
else if (z <= 1.4d+146) then
tmp = x
else
tmp = 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.2e+33) {
tmp = t;
} else if (z <= 1.4e+146) {
tmp = x;
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -9.2e+33: tmp = t elif z <= 1.4e+146: tmp = x else: tmp = t return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -9.2e+33) tmp = t; elseif (z <= 1.4e+146) tmp = x; else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -9.2e+33) tmp = t; elseif (z <= 1.4e+146) tmp = x; else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -9.2e+33], t, If[LessEqual[z, 1.4e+146], x, t]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -9.2 \cdot 10^{+33}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq 1.4 \cdot 10^{+146}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if z < -9.20000000000000042e33 or 1.4e146 < z Initial program 39.3%
associate-*l/71.4%
Simplified71.4%
Taylor expanded in z around inf 50.5%
if -9.20000000000000042e33 < z < 1.4e146Initial program 86.0%
associate-*l/93.0%
Simplified93.0%
Taylor expanded in a around inf 34.1%
Final simplification39.7%
(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 70.1%
associate-*l/85.6%
Simplified85.6%
Taylor expanded in z around inf 22.9%
Final simplification22.9%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (- t (* (/ y z) (- t x)))))
(if (< z -1.2536131056095036e+188)
t_1
(if (< z 4.446702369113811e+64)
(+ x (/ (- y z) (/ (- a z) (- t x))))
t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t - ((y / z) * (t - x));
double tmp;
if (z < -1.2536131056095036e+188) {
tmp = t_1;
} else if (z < 4.446702369113811e+64) {
tmp = x + ((y - z) / ((a - z) / (t - x)));
} 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 = t - ((y / z) * (t - x))
if (z < (-1.2536131056095036d+188)) then
tmp = t_1
else if (z < 4.446702369113811d+64) then
tmp = x + ((y - z) / ((a - z) / (t - x)))
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 = t - ((y / z) * (t - x));
double tmp;
if (z < -1.2536131056095036e+188) {
tmp = t_1;
} else if (z < 4.446702369113811e+64) {
tmp = x + ((y - z) / ((a - z) / (t - x)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t - ((y / z) * (t - x)) tmp = 0 if z < -1.2536131056095036e+188: tmp = t_1 elif z < 4.446702369113811e+64: tmp = x + ((y - z) / ((a - z) / (t - x))) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(t - Float64(Float64(y / z) * Float64(t - x))) tmp = 0.0 if (z < -1.2536131056095036e+188) tmp = t_1; elseif (z < 4.446702369113811e+64) tmp = Float64(x + Float64(Float64(y - z) / Float64(Float64(a - z) / Float64(t - x)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t - ((y / z) * (t - x)); tmp = 0.0; if (z < -1.2536131056095036e+188) tmp = t_1; elseif (z < 4.446702369113811e+64) tmp = x + ((y - z) / ((a - z) / (t - x))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t - N[(N[(y / z), $MachinePrecision] * N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[z, -1.2536131056095036e+188], t$95$1, If[Less[z, 4.446702369113811e+64], N[(x + N[(N[(y - z), $MachinePrecision] / N[(N[(a - z), $MachinePrecision] / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t - \frac{y}{z} \cdot \left(t - x\right)\\
\mathbf{if}\;z < -1.2536131056095036 \cdot 10^{+188}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z < 4.446702369113811 \cdot 10^{+64}:\\
\;\;\;\;x + \frac{y - z}{\frac{a - z}{t - x}}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
herbie shell --seed 2023322
(FPCore (x y z t a)
:name "Graphics.Rendering.Chart.Axis.Types:invLinMap from Chart-1.5.3"
:precision binary64
:herbie-target
(if (< z -1.2536131056095036e+188) (- t (* (/ y z) (- t x))) (if (< z 4.446702369113811e+64) (+ x (/ (- y z) (/ (- a z) (- t x)))) (- t (* (/ y z) (- t x)))))
(+ x (/ (* (- y z) (- t x)) (- a z))))