
(FPCore (x y z t a) :precision binary64 (+ (/ (* 60.0 (- x y)) (- z t)) (* a 120.0)))
double code(double x, double y, double z, double t, double a) {
return ((60.0 * (x - y)) / (z - t)) + (a * 120.0);
}
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 = ((60.0d0 * (x - y)) / (z - t)) + (a * 120.0d0)
end function
public static double code(double x, double y, double z, double t, double a) {
return ((60.0 * (x - y)) / (z - t)) + (a * 120.0);
}
def code(x, y, z, t, a): return ((60.0 * (x - y)) / (z - t)) + (a * 120.0)
function code(x, y, z, t, a) return Float64(Float64(Float64(60.0 * Float64(x - y)) / Float64(z - t)) + Float64(a * 120.0)) end
function tmp = code(x, y, z, t, a) tmp = ((60.0 * (x - y)) / (z - t)) + (a * 120.0); end
code[x_, y_, z_, t_, a_] := N[(N[(N[(60.0 * N[(x - y), $MachinePrecision]), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision] + N[(a * 120.0), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{60 \cdot \left(x - y\right)}{z - t} + a \cdot 120
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 17 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a) :precision binary64 (+ (/ (* 60.0 (- x y)) (- z t)) (* a 120.0)))
double code(double x, double y, double z, double t, double a) {
return ((60.0 * (x - y)) / (z - t)) + (a * 120.0);
}
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 = ((60.0d0 * (x - y)) / (z - t)) + (a * 120.0d0)
end function
public static double code(double x, double y, double z, double t, double a) {
return ((60.0 * (x - y)) / (z - t)) + (a * 120.0);
}
def code(x, y, z, t, a): return ((60.0 * (x - y)) / (z - t)) + (a * 120.0)
function code(x, y, z, t, a) return Float64(Float64(Float64(60.0 * Float64(x - y)) / Float64(z - t)) + Float64(a * 120.0)) end
function tmp = code(x, y, z, t, a) tmp = ((60.0 * (x - y)) / (z - t)) + (a * 120.0); end
code[x_, y_, z_, t_, a_] := N[(N[(N[(60.0 * N[(x - y), $MachinePrecision]), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision] + N[(a * 120.0), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{60 \cdot \left(x - y\right)}{z - t} + a \cdot 120
\end{array}
(FPCore (x y z t a) :precision binary64 (+ (/ 60.0 (/ (- z t) (- x y))) (* a 120.0)))
double code(double x, double y, double z, double t, double a) {
return (60.0 / ((z - t) / (x - y))) + (a * 120.0);
}
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 = (60.0d0 / ((z - t) / (x - y))) + (a * 120.0d0)
end function
public static double code(double x, double y, double z, double t, double a) {
return (60.0 / ((z - t) / (x - y))) + (a * 120.0);
}
def code(x, y, z, t, a): return (60.0 / ((z - t) / (x - y))) + (a * 120.0)
function code(x, y, z, t, a) return Float64(Float64(60.0 / Float64(Float64(z - t) / Float64(x - y))) + Float64(a * 120.0)) end
function tmp = code(x, y, z, t, a) tmp = (60.0 / ((z - t) / (x - y))) + (a * 120.0); end
code[x_, y_, z_, t_, a_] := N[(N[(60.0 / N[(N[(z - t), $MachinePrecision] / N[(x - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(a * 120.0), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{60}{\frac{z - t}{x - y}} + a \cdot 120
\end{array}
Initial program 99.4%
associate-/l*N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6499.8%
Applied egg-rr99.8%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ (* x (/ -60.0 t)) (* a 120.0))))
(if (<= t -3.8e+84)
t_1
(if (<= t -1.22e-25)
(* (- x y) (/ 60.0 (- z t)))
(if (<= t 5.5e-57)
(+ (* (- x y) (/ 60.0 z)) (* a 120.0))
(if (<= t 1.25e+62) (/ (- x y) (/ (- z t) 60.0)) t_1))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = (x * (-60.0 / t)) + (a * 120.0);
double tmp;
if (t <= -3.8e+84) {
tmp = t_1;
} else if (t <= -1.22e-25) {
tmp = (x - y) * (60.0 / (z - t));
} else if (t <= 5.5e-57) {
tmp = ((x - y) * (60.0 / z)) + (a * 120.0);
} else if (t <= 1.25e+62) {
tmp = (x - y) / ((z - t) / 60.0);
} 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 * ((-60.0d0) / t)) + (a * 120.0d0)
if (t <= (-3.8d+84)) then
tmp = t_1
else if (t <= (-1.22d-25)) then
tmp = (x - y) * (60.0d0 / (z - t))
else if (t <= 5.5d-57) then
tmp = ((x - y) * (60.0d0 / z)) + (a * 120.0d0)
else if (t <= 1.25d+62) then
tmp = (x - y) / ((z - t) / 60.0d0)
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 * (-60.0 / t)) + (a * 120.0);
double tmp;
if (t <= -3.8e+84) {
tmp = t_1;
} else if (t <= -1.22e-25) {
tmp = (x - y) * (60.0 / (z - t));
} else if (t <= 5.5e-57) {
tmp = ((x - y) * (60.0 / z)) + (a * 120.0);
} else if (t <= 1.25e+62) {
tmp = (x - y) / ((z - t) / 60.0);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = (x * (-60.0 / t)) + (a * 120.0) tmp = 0 if t <= -3.8e+84: tmp = t_1 elif t <= -1.22e-25: tmp = (x - y) * (60.0 / (z - t)) elif t <= 5.5e-57: tmp = ((x - y) * (60.0 / z)) + (a * 120.0) elif t <= 1.25e+62: tmp = (x - y) / ((z - t) / 60.0) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(Float64(x * Float64(-60.0 / t)) + Float64(a * 120.0)) tmp = 0.0 if (t <= -3.8e+84) tmp = t_1; elseif (t <= -1.22e-25) tmp = Float64(Float64(x - y) * Float64(60.0 / Float64(z - t))); elseif (t <= 5.5e-57) tmp = Float64(Float64(Float64(x - y) * Float64(60.0 / z)) + Float64(a * 120.0)); elseif (t <= 1.25e+62) tmp = Float64(Float64(x - y) / Float64(Float64(z - t) / 60.0)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = (x * (-60.0 / t)) + (a * 120.0); tmp = 0.0; if (t <= -3.8e+84) tmp = t_1; elseif (t <= -1.22e-25) tmp = (x - y) * (60.0 / (z - t)); elseif (t <= 5.5e-57) tmp = ((x - y) * (60.0 / z)) + (a * 120.0); elseif (t <= 1.25e+62) tmp = (x - y) / ((z - t) / 60.0); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(x * N[(-60.0 / t), $MachinePrecision]), $MachinePrecision] + N[(a * 120.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -3.8e+84], t$95$1, If[LessEqual[t, -1.22e-25], N[(N[(x - y), $MachinePrecision] * N[(60.0 / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 5.5e-57], N[(N[(N[(x - y), $MachinePrecision] * N[(60.0 / z), $MachinePrecision]), $MachinePrecision] + N[(a * 120.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.25e+62], N[(N[(x - y), $MachinePrecision] / N[(N[(z - t), $MachinePrecision] / 60.0), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \frac{-60}{t} + a \cdot 120\\
\mathbf{if}\;t \leq -3.8 \cdot 10^{+84}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -1.22 \cdot 10^{-25}:\\
\;\;\;\;\left(x - y\right) \cdot \frac{60}{z - t}\\
\mathbf{elif}\;t \leq 5.5 \cdot 10^{-57}:\\
\;\;\;\;\left(x - y\right) \cdot \frac{60}{z} + a \cdot 120\\
\mathbf{elif}\;t \leq 1.25 \cdot 10^{+62}:\\
\;\;\;\;\frac{x - y}{\frac{z - t}{60}}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -3.8000000000000001e84 or 1.25000000000000007e62 < t Initial program 98.8%
associate-/l*N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6499.8%
Applied egg-rr99.8%
Taylor expanded in x around inf
associate-*r/N/A
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
--lowering--.f6486.7%
Simplified86.7%
Taylor expanded in z around 0
associate-*r/N/A
*-commutativeN/A
associate-/l*N/A
*-lowering-*.f64N/A
/-lowering-/.f6483.7%
Simplified83.7%
if -3.8000000000000001e84 < t < -1.21999999999999999e-25Initial program 99.8%
Taylor expanded in a around 0
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6475.9%
Simplified75.9%
associate-*l/N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6476.0%
Applied egg-rr76.0%
if -1.21999999999999999e-25 < t < 5.50000000000000011e-57Initial program 99.8%
*-commutativeN/A
associate-/l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6499.7%
Applied egg-rr99.7%
Taylor expanded in z around inf
Simplified90.3%
if 5.50000000000000011e-57 < t < 1.25000000000000007e62Initial program 99.8%
Taylor expanded in a around 0
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6474.5%
Simplified74.5%
associate-*l/N/A
*-commutativeN/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f6474.6%
Applied egg-rr74.6%
Final simplification85.1%
(FPCore (x y z t a)
:precision binary64
(if (<= (* a 120.0) -5e-23)
(+ (/ (* y -60.0) (- z t)) (* a 120.0))
(if (<= (* a 120.0) 2e-47)
(/ 60.0 (/ (- z t) (- x y)))
(+ (* (- x y) (/ 60.0 z)) (* a 120.0)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a * 120.0) <= -5e-23) {
tmp = ((y * -60.0) / (z - t)) + (a * 120.0);
} else if ((a * 120.0) <= 2e-47) {
tmp = 60.0 / ((z - t) / (x - y));
} else {
tmp = ((x - y) * (60.0 / z)) + (a * 120.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 ((a * 120.0d0) <= (-5d-23)) then
tmp = ((y * (-60.0d0)) / (z - t)) + (a * 120.0d0)
else if ((a * 120.0d0) <= 2d-47) then
tmp = 60.0d0 / ((z - t) / (x - y))
else
tmp = ((x - y) * (60.0d0 / z)) + (a * 120.0d0)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a * 120.0) <= -5e-23) {
tmp = ((y * -60.0) / (z - t)) + (a * 120.0);
} else if ((a * 120.0) <= 2e-47) {
tmp = 60.0 / ((z - t) / (x - y));
} else {
tmp = ((x - y) * (60.0 / z)) + (a * 120.0);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a * 120.0) <= -5e-23: tmp = ((y * -60.0) / (z - t)) + (a * 120.0) elif (a * 120.0) <= 2e-47: tmp = 60.0 / ((z - t) / (x - y)) else: tmp = ((x - y) * (60.0 / z)) + (a * 120.0) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (Float64(a * 120.0) <= -5e-23) tmp = Float64(Float64(Float64(y * -60.0) / Float64(z - t)) + Float64(a * 120.0)); elseif (Float64(a * 120.0) <= 2e-47) tmp = Float64(60.0 / Float64(Float64(z - t) / Float64(x - y))); else tmp = Float64(Float64(Float64(x - y) * Float64(60.0 / z)) + Float64(a * 120.0)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a * 120.0) <= -5e-23) tmp = ((y * -60.0) / (z - t)) + (a * 120.0); elseif ((a * 120.0) <= 2e-47) tmp = 60.0 / ((z - t) / (x - y)); else tmp = ((x - y) * (60.0 / z)) + (a * 120.0); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[N[(a * 120.0), $MachinePrecision], -5e-23], N[(N[(N[(y * -60.0), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision] + N[(a * 120.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(a * 120.0), $MachinePrecision], 2e-47], N[(60.0 / N[(N[(z - t), $MachinePrecision] / N[(x - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(x - y), $MachinePrecision] * N[(60.0 / z), $MachinePrecision]), $MachinePrecision] + N[(a * 120.0), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \cdot 120 \leq -5 \cdot 10^{-23}:\\
\;\;\;\;\frac{y \cdot -60}{z - t} + a \cdot 120\\
\mathbf{elif}\;a \cdot 120 \leq 2 \cdot 10^{-47}:\\
\;\;\;\;\frac{60}{\frac{z - t}{x - y}}\\
\mathbf{else}:\\
\;\;\;\;\left(x - y\right) \cdot \frac{60}{z} + a \cdot 120\\
\end{array}
\end{array}
if (*.f64 a #s(literal 120 binary64)) < -5.0000000000000002e-23Initial program 98.3%
Taylor expanded in x around 0
*-lowering-*.f6489.2%
Simplified89.2%
if -5.0000000000000002e-23 < (*.f64 a #s(literal 120 binary64)) < 1.9999999999999999e-47Initial program 99.6%
Taylor expanded in a around 0
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6482.3%
Simplified82.3%
associate-*l/N/A
associate-/r/N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6482.4%
Applied egg-rr82.4%
if 1.9999999999999999e-47 < (*.f64 a #s(literal 120 binary64)) Initial program 99.9%
*-commutativeN/A
associate-/l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6499.8%
Applied egg-rr99.8%
Taylor expanded in z around inf
Simplified80.1%
Final simplification83.4%
(FPCore (x y z t a)
:precision binary64
(if (<= (* a 120.0) -2e+29)
(* a 120.0)
(if (<= (* a 120.0) 1e+67)
(/ 60.0 (/ (- z t) (- x y)))
(+ (* a 120.0) (/ (* y -60.0) z)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a * 120.0) <= -2e+29) {
tmp = a * 120.0;
} else if ((a * 120.0) <= 1e+67) {
tmp = 60.0 / ((z - t) / (x - y));
} else {
tmp = (a * 120.0) + ((y * -60.0) / 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 * 120.0d0) <= (-2d+29)) then
tmp = a * 120.0d0
else if ((a * 120.0d0) <= 1d+67) then
tmp = 60.0d0 / ((z - t) / (x - y))
else
tmp = (a * 120.0d0) + ((y * (-60.0d0)) / 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 * 120.0) <= -2e+29) {
tmp = a * 120.0;
} else if ((a * 120.0) <= 1e+67) {
tmp = 60.0 / ((z - t) / (x - y));
} else {
tmp = (a * 120.0) + ((y * -60.0) / z);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a * 120.0) <= -2e+29: tmp = a * 120.0 elif (a * 120.0) <= 1e+67: tmp = 60.0 / ((z - t) / (x - y)) else: tmp = (a * 120.0) + ((y * -60.0) / z) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (Float64(a * 120.0) <= -2e+29) tmp = Float64(a * 120.0); elseif (Float64(a * 120.0) <= 1e+67) tmp = Float64(60.0 / Float64(Float64(z - t) / Float64(x - y))); else tmp = Float64(Float64(a * 120.0) + Float64(Float64(y * -60.0) / z)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a * 120.0) <= -2e+29) tmp = a * 120.0; elseif ((a * 120.0) <= 1e+67) tmp = 60.0 / ((z - t) / (x - y)); else tmp = (a * 120.0) + ((y * -60.0) / z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[N[(a * 120.0), $MachinePrecision], -2e+29], N[(a * 120.0), $MachinePrecision], If[LessEqual[N[(a * 120.0), $MachinePrecision], 1e+67], N[(60.0 / N[(N[(z - t), $MachinePrecision] / N[(x - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(a * 120.0), $MachinePrecision] + N[(N[(y * -60.0), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \cdot 120 \leq -2 \cdot 10^{+29}:\\
\;\;\;\;a \cdot 120\\
\mathbf{elif}\;a \cdot 120 \leq 10^{+67}:\\
\;\;\;\;\frac{60}{\frac{z - t}{x - y}}\\
\mathbf{else}:\\
\;\;\;\;a \cdot 120 + \frac{y \cdot -60}{z}\\
\end{array}
\end{array}
if (*.f64 a #s(literal 120 binary64)) < -1.99999999999999983e29Initial program 98.1%
Taylor expanded in z around inf
*-lowering-*.f6479.0%
Simplified79.0%
if -1.99999999999999983e29 < (*.f64 a #s(literal 120 binary64)) < 9.99999999999999983e66Initial program 99.7%
Taylor expanded in a around 0
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6476.4%
Simplified76.4%
associate-*l/N/A
associate-/r/N/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6476.4%
Applied egg-rr76.4%
if 9.99999999999999983e66 < (*.f64 a #s(literal 120 binary64)) Initial program 99.9%
Taylor expanded in x around 0
*-lowering-*.f6489.4%
Simplified89.4%
Taylor expanded in z around inf
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f6482.3%
Simplified82.3%
Final simplification78.2%
(FPCore (x y z t a)
:precision binary64
(if (<= (* a 120.0) -5e+42)
(* a 120.0)
(if (<= (* a 120.0) 1e+67)
(* 60.0 (/ (- x y) (- z t)))
(+ (* a 120.0) (/ (* y -60.0) z)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a * 120.0) <= -5e+42) {
tmp = a * 120.0;
} else if ((a * 120.0) <= 1e+67) {
tmp = 60.0 * ((x - y) / (z - t));
} else {
tmp = (a * 120.0) + ((y * -60.0) / 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 * 120.0d0) <= (-5d+42)) then
tmp = a * 120.0d0
else if ((a * 120.0d0) <= 1d+67) then
tmp = 60.0d0 * ((x - y) / (z - t))
else
tmp = (a * 120.0d0) + ((y * (-60.0d0)) / 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 * 120.0) <= -5e+42) {
tmp = a * 120.0;
} else if ((a * 120.0) <= 1e+67) {
tmp = 60.0 * ((x - y) / (z - t));
} else {
tmp = (a * 120.0) + ((y * -60.0) / z);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a * 120.0) <= -5e+42: tmp = a * 120.0 elif (a * 120.0) <= 1e+67: tmp = 60.0 * ((x - y) / (z - t)) else: tmp = (a * 120.0) + ((y * -60.0) / z) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (Float64(a * 120.0) <= -5e+42) tmp = Float64(a * 120.0); elseif (Float64(a * 120.0) <= 1e+67) tmp = Float64(60.0 * Float64(Float64(x - y) / Float64(z - t))); else tmp = Float64(Float64(a * 120.0) + Float64(Float64(y * -60.0) / z)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a * 120.0) <= -5e+42) tmp = a * 120.0; elseif ((a * 120.0) <= 1e+67) tmp = 60.0 * ((x - y) / (z - t)); else tmp = (a * 120.0) + ((y * -60.0) / z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[N[(a * 120.0), $MachinePrecision], -5e+42], N[(a * 120.0), $MachinePrecision], If[LessEqual[N[(a * 120.0), $MachinePrecision], 1e+67], N[(60.0 * N[(N[(x - y), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(a * 120.0), $MachinePrecision] + N[(N[(y * -60.0), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \cdot 120 \leq -5 \cdot 10^{+42}:\\
\;\;\;\;a \cdot 120\\
\mathbf{elif}\;a \cdot 120 \leq 10^{+67}:\\
\;\;\;\;60 \cdot \frac{x - y}{z - t}\\
\mathbf{else}:\\
\;\;\;\;a \cdot 120 + \frac{y \cdot -60}{z}\\
\end{array}
\end{array}
if (*.f64 a #s(literal 120 binary64)) < -5.00000000000000007e42Initial program 98.0%
Taylor expanded in z around inf
*-lowering-*.f6480.0%
Simplified80.0%
if -5.00000000000000007e42 < (*.f64 a #s(literal 120 binary64)) < 9.99999999999999983e66Initial program 99.7%
Taylor expanded in a around 0
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6476.1%
Simplified76.1%
associate-/l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6476.0%
Applied egg-rr76.0%
if 9.99999999999999983e66 < (*.f64 a #s(literal 120 binary64)) Initial program 99.9%
Taylor expanded in x around 0
*-lowering-*.f6489.4%
Simplified89.4%
Taylor expanded in z around inf
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f6482.3%
Simplified82.3%
Final simplification78.1%
(FPCore (x y z t a)
:precision binary64
(if (<= (* a 120.0) -5e+42)
(* a 120.0)
(if (<= (* a 120.0) 5e+16)
(* 60.0 (/ (- x y) (- z t)))
(+ (* a 120.0) (* x (/ 60.0 z))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a * 120.0) <= -5e+42) {
tmp = a * 120.0;
} else if ((a * 120.0) <= 5e+16) {
tmp = 60.0 * ((x - y) / (z - t));
} else {
tmp = (a * 120.0) + (x * (60.0 / 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 * 120.0d0) <= (-5d+42)) then
tmp = a * 120.0d0
else if ((a * 120.0d0) <= 5d+16) then
tmp = 60.0d0 * ((x - y) / (z - t))
else
tmp = (a * 120.0d0) + (x * (60.0d0 / 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 * 120.0) <= -5e+42) {
tmp = a * 120.0;
} else if ((a * 120.0) <= 5e+16) {
tmp = 60.0 * ((x - y) / (z - t));
} else {
tmp = (a * 120.0) + (x * (60.0 / z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a * 120.0) <= -5e+42: tmp = a * 120.0 elif (a * 120.0) <= 5e+16: tmp = 60.0 * ((x - y) / (z - t)) else: tmp = (a * 120.0) + (x * (60.0 / z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (Float64(a * 120.0) <= -5e+42) tmp = Float64(a * 120.0); elseif (Float64(a * 120.0) <= 5e+16) tmp = Float64(60.0 * Float64(Float64(x - y) / Float64(z - t))); else tmp = Float64(Float64(a * 120.0) + Float64(x * Float64(60.0 / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a * 120.0) <= -5e+42) tmp = a * 120.0; elseif ((a * 120.0) <= 5e+16) tmp = 60.0 * ((x - y) / (z - t)); else tmp = (a * 120.0) + (x * (60.0 / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[N[(a * 120.0), $MachinePrecision], -5e+42], N[(a * 120.0), $MachinePrecision], If[LessEqual[N[(a * 120.0), $MachinePrecision], 5e+16], N[(60.0 * N[(N[(x - y), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(a * 120.0), $MachinePrecision] + N[(x * N[(60.0 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \cdot 120 \leq -5 \cdot 10^{+42}:\\
\;\;\;\;a \cdot 120\\
\mathbf{elif}\;a \cdot 120 \leq 5 \cdot 10^{+16}:\\
\;\;\;\;60 \cdot \frac{x - y}{z - t}\\
\mathbf{else}:\\
\;\;\;\;a \cdot 120 + x \cdot \frac{60}{z}\\
\end{array}
\end{array}
if (*.f64 a #s(literal 120 binary64)) < -5.00000000000000007e42Initial program 98.0%
Taylor expanded in z around inf
*-lowering-*.f6480.0%
Simplified80.0%
if -5.00000000000000007e42 < (*.f64 a #s(literal 120 binary64)) < 5e16Initial program 99.7%
Taylor expanded in a around 0
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6477.9%
Simplified77.9%
associate-/l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6477.9%
Applied egg-rr77.9%
if 5e16 < (*.f64 a #s(literal 120 binary64)) Initial program 99.9%
associate-/l*N/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6499.9%
Applied egg-rr99.9%
Taylor expanded in x around inf
associate-*r/N/A
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
--lowering--.f6489.3%
Simplified89.3%
Taylor expanded in z around inf
Simplified75.1%
associate-/l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
/-lowering-/.f6475.1%
Applied egg-rr75.1%
Final simplification77.7%
(FPCore (x y z t a) :precision binary64 (if (<= (* a 120.0) -5e+42) (* a 120.0) (if (<= (* a 120.0) 6e+66) (* 60.0 (/ (- x y) (- z t))) (* a 120.0))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a * 120.0) <= -5e+42) {
tmp = a * 120.0;
} else if ((a * 120.0) <= 6e+66) {
tmp = 60.0 * ((x - y) / (z - t));
} else {
tmp = a * 120.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 ((a * 120.0d0) <= (-5d+42)) then
tmp = a * 120.0d0
else if ((a * 120.0d0) <= 6d+66) then
tmp = 60.0d0 * ((x - y) / (z - t))
else
tmp = a * 120.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a * 120.0) <= -5e+42) {
tmp = a * 120.0;
} else if ((a * 120.0) <= 6e+66) {
tmp = 60.0 * ((x - y) / (z - t));
} else {
tmp = a * 120.0;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a * 120.0) <= -5e+42: tmp = a * 120.0 elif (a * 120.0) <= 6e+66: tmp = 60.0 * ((x - y) / (z - t)) else: tmp = a * 120.0 return tmp
function code(x, y, z, t, a) tmp = 0.0 if (Float64(a * 120.0) <= -5e+42) tmp = Float64(a * 120.0); elseif (Float64(a * 120.0) <= 6e+66) tmp = Float64(60.0 * Float64(Float64(x - y) / Float64(z - t))); else tmp = Float64(a * 120.0); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a * 120.0) <= -5e+42) tmp = a * 120.0; elseif ((a * 120.0) <= 6e+66) tmp = 60.0 * ((x - y) / (z - t)); else tmp = a * 120.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[N[(a * 120.0), $MachinePrecision], -5e+42], N[(a * 120.0), $MachinePrecision], If[LessEqual[N[(a * 120.0), $MachinePrecision], 6e+66], N[(60.0 * N[(N[(x - y), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * 120.0), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \cdot 120 \leq -5 \cdot 10^{+42}:\\
\;\;\;\;a \cdot 120\\
\mathbf{elif}\;a \cdot 120 \leq 6 \cdot 10^{+66}:\\
\;\;\;\;60 \cdot \frac{x - y}{z - t}\\
\mathbf{else}:\\
\;\;\;\;a \cdot 120\\
\end{array}
\end{array}
if (*.f64 a #s(literal 120 binary64)) < -5.00000000000000007e42 or 6.00000000000000005e66 < (*.f64 a #s(literal 120 binary64)) Initial program 98.9%
Taylor expanded in z around inf
*-lowering-*.f6478.7%
Simplified78.7%
if -5.00000000000000007e42 < (*.f64 a #s(literal 120 binary64)) < 6.00000000000000005e66Initial program 99.7%
Taylor expanded in a around 0
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6476.6%
Simplified76.6%
associate-/l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6476.5%
Applied egg-rr76.5%
Final simplification77.4%
(FPCore (x y z t a)
:precision binary64
(if (<= a -8.5e+39)
(* a 120.0)
(if (<= a 1.35e-261)
(* -60.0 (/ y (- z t)))
(if (<= a 5e+64) (/ (* 60.0 x) (- z t)) (* a 120.0)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -8.5e+39) {
tmp = a * 120.0;
} else if (a <= 1.35e-261) {
tmp = -60.0 * (y / (z - t));
} else if (a <= 5e+64) {
tmp = (60.0 * x) / (z - t);
} else {
tmp = a * 120.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 (a <= (-8.5d+39)) then
tmp = a * 120.0d0
else if (a <= 1.35d-261) then
tmp = (-60.0d0) * (y / (z - t))
else if (a <= 5d+64) then
tmp = (60.0d0 * x) / (z - t)
else
tmp = a * 120.0d0
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+39) {
tmp = a * 120.0;
} else if (a <= 1.35e-261) {
tmp = -60.0 * (y / (z - t));
} else if (a <= 5e+64) {
tmp = (60.0 * x) / (z - t);
} else {
tmp = a * 120.0;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -8.5e+39: tmp = a * 120.0 elif a <= 1.35e-261: tmp = -60.0 * (y / (z - t)) elif a <= 5e+64: tmp = (60.0 * x) / (z - t) else: tmp = a * 120.0 return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -8.5e+39) tmp = Float64(a * 120.0); elseif (a <= 1.35e-261) tmp = Float64(-60.0 * Float64(y / Float64(z - t))); elseif (a <= 5e+64) tmp = Float64(Float64(60.0 * x) / Float64(z - t)); else tmp = Float64(a * 120.0); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -8.5e+39) tmp = a * 120.0; elseif (a <= 1.35e-261) tmp = -60.0 * (y / (z - t)); elseif (a <= 5e+64) tmp = (60.0 * x) / (z - t); else tmp = a * 120.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -8.5e+39], N[(a * 120.0), $MachinePrecision], If[LessEqual[a, 1.35e-261], N[(-60.0 * N[(y / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 5e+64], N[(N[(60.0 * x), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision], N[(a * 120.0), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -8.5 \cdot 10^{+39}:\\
\;\;\;\;a \cdot 120\\
\mathbf{elif}\;a \leq 1.35 \cdot 10^{-261}:\\
\;\;\;\;-60 \cdot \frac{y}{z - t}\\
\mathbf{elif}\;a \leq 5 \cdot 10^{+64}:\\
\;\;\;\;\frac{60 \cdot x}{z - t}\\
\mathbf{else}:\\
\;\;\;\;a \cdot 120\\
\end{array}
\end{array}
if a < -8.49999999999999971e39 or 5e64 < a Initial program 98.9%
Taylor expanded in z around inf
*-lowering-*.f6478.7%
Simplified78.7%
if -8.49999999999999971e39 < a < 1.3499999999999999e-261Initial program 99.6%
Taylor expanded in y around inf
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f6454.4%
Simplified54.4%
if 1.3499999999999999e-261 < a < 5e64Initial program 99.8%
Taylor expanded in x around inf
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f6452.8%
Simplified52.8%
Final simplification64.1%
(FPCore (x y z t a)
:precision binary64
(if (<= a -2.2e+40)
(* a 120.0)
(if (<= a 3.5e-263)
(* -60.0 (/ y (- z t)))
(if (<= a 5e+64) (/ x (/ (- z t) 60.0)) (* a 120.0)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -2.2e+40) {
tmp = a * 120.0;
} else if (a <= 3.5e-263) {
tmp = -60.0 * (y / (z - t));
} else if (a <= 5e+64) {
tmp = x / ((z - t) / 60.0);
} else {
tmp = a * 120.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 (a <= (-2.2d+40)) then
tmp = a * 120.0d0
else if (a <= 3.5d-263) then
tmp = (-60.0d0) * (y / (z - t))
else if (a <= 5d+64) then
tmp = x / ((z - t) / 60.0d0)
else
tmp = a * 120.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -2.2e+40) {
tmp = a * 120.0;
} else if (a <= 3.5e-263) {
tmp = -60.0 * (y / (z - t));
} else if (a <= 5e+64) {
tmp = x / ((z - t) / 60.0);
} else {
tmp = a * 120.0;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -2.2e+40: tmp = a * 120.0 elif a <= 3.5e-263: tmp = -60.0 * (y / (z - t)) elif a <= 5e+64: tmp = x / ((z - t) / 60.0) else: tmp = a * 120.0 return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -2.2e+40) tmp = Float64(a * 120.0); elseif (a <= 3.5e-263) tmp = Float64(-60.0 * Float64(y / Float64(z - t))); elseif (a <= 5e+64) tmp = Float64(x / Float64(Float64(z - t) / 60.0)); else tmp = Float64(a * 120.0); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -2.2e+40) tmp = a * 120.0; elseif (a <= 3.5e-263) tmp = -60.0 * (y / (z - t)); elseif (a <= 5e+64) tmp = x / ((z - t) / 60.0); else tmp = a * 120.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -2.2e+40], N[(a * 120.0), $MachinePrecision], If[LessEqual[a, 3.5e-263], N[(-60.0 * N[(y / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 5e+64], N[(x / N[(N[(z - t), $MachinePrecision] / 60.0), $MachinePrecision]), $MachinePrecision], N[(a * 120.0), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -2.2 \cdot 10^{+40}:\\
\;\;\;\;a \cdot 120\\
\mathbf{elif}\;a \leq 3.5 \cdot 10^{-263}:\\
\;\;\;\;-60 \cdot \frac{y}{z - t}\\
\mathbf{elif}\;a \leq 5 \cdot 10^{+64}:\\
\;\;\;\;\frac{x}{\frac{z - t}{60}}\\
\mathbf{else}:\\
\;\;\;\;a \cdot 120\\
\end{array}
\end{array}
if a < -2.1999999999999999e40 or 5e64 < a Initial program 98.9%
Taylor expanded in z around inf
*-lowering-*.f6478.7%
Simplified78.7%
if -2.1999999999999999e40 < a < 3.49999999999999969e-263Initial program 99.6%
Taylor expanded in y around inf
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f6454.4%
Simplified54.4%
if 3.49999999999999969e-263 < a < 5e64Initial program 99.8%
Taylor expanded in a around 0
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6471.1%
Simplified71.1%
associate-*l/N/A
*-commutativeN/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f6471.0%
Applied egg-rr71.0%
Taylor expanded in x around inf
Simplified52.7%
Final simplification64.1%
(FPCore (x y z t a)
:precision binary64
(if (<= a -8.5e+39)
(* a 120.0)
(if (<= a 6.2e-262)
(* -60.0 (/ y (- z t)))
(if (<= a 5e+64) (* x (/ 60.0 (- z t))) (* a 120.0)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -8.5e+39) {
tmp = a * 120.0;
} else if (a <= 6.2e-262) {
tmp = -60.0 * (y / (z - t));
} else if (a <= 5e+64) {
tmp = x * (60.0 / (z - t));
} else {
tmp = a * 120.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 (a <= (-8.5d+39)) then
tmp = a * 120.0d0
else if (a <= 6.2d-262) then
tmp = (-60.0d0) * (y / (z - t))
else if (a <= 5d+64) then
tmp = x * (60.0d0 / (z - t))
else
tmp = a * 120.0d0
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+39) {
tmp = a * 120.0;
} else if (a <= 6.2e-262) {
tmp = -60.0 * (y / (z - t));
} else if (a <= 5e+64) {
tmp = x * (60.0 / (z - t));
} else {
tmp = a * 120.0;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -8.5e+39: tmp = a * 120.0 elif a <= 6.2e-262: tmp = -60.0 * (y / (z - t)) elif a <= 5e+64: tmp = x * (60.0 / (z - t)) else: tmp = a * 120.0 return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -8.5e+39) tmp = Float64(a * 120.0); elseif (a <= 6.2e-262) tmp = Float64(-60.0 * Float64(y / Float64(z - t))); elseif (a <= 5e+64) tmp = Float64(x * Float64(60.0 / Float64(z - t))); else tmp = Float64(a * 120.0); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -8.5e+39) tmp = a * 120.0; elseif (a <= 6.2e-262) tmp = -60.0 * (y / (z - t)); elseif (a <= 5e+64) tmp = x * (60.0 / (z - t)); else tmp = a * 120.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -8.5e+39], N[(a * 120.0), $MachinePrecision], If[LessEqual[a, 6.2e-262], N[(-60.0 * N[(y / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 5e+64], N[(x * N[(60.0 / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * 120.0), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -8.5 \cdot 10^{+39}:\\
\;\;\;\;a \cdot 120\\
\mathbf{elif}\;a \leq 6.2 \cdot 10^{-262}:\\
\;\;\;\;-60 \cdot \frac{y}{z - t}\\
\mathbf{elif}\;a \leq 5 \cdot 10^{+64}:\\
\;\;\;\;x \cdot \frac{60}{z - t}\\
\mathbf{else}:\\
\;\;\;\;a \cdot 120\\
\end{array}
\end{array}
if a < -8.49999999999999971e39 or 5e64 < a Initial program 98.9%
Taylor expanded in z around inf
*-lowering-*.f6478.7%
Simplified78.7%
if -8.49999999999999971e39 < a < 6.1999999999999997e-262Initial program 99.6%
Taylor expanded in y around inf
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f6454.4%
Simplified54.4%
if 6.1999999999999997e-262 < a < 5e64Initial program 99.8%
Taylor expanded in a around 0
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6471.1%
Simplified71.1%
associate-*l/N/A
*-commutativeN/A
clear-numN/A
un-div-invN/A
/-lowering-/.f64N/A
--lowering--.f64N/A
/-lowering-/.f64N/A
--lowering--.f6471.0%
Applied egg-rr71.0%
div-subN/A
--lowering--.f64N/A
/-lowering-/.f64N/A
/-lowering-/.f6471.0%
Applied egg-rr71.0%
Taylor expanded in x around inf
*-rgt-identityN/A
associate-*r/N/A
*-lowering-*.f64N/A
distribute-lft-out--N/A
associate-/r*N/A
metadata-evalN/A
/-lowering-/.f64N/A
--lowering--.f6452.6%
Simplified52.6%
Final simplification64.0%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ (/ (* 60.0 x) (- z t)) (* a 120.0))))
(if (<= x -1.25e+101)
t_1
(if (<= x 1e-32) (+ (/ (* y -60.0) (- z t)) (* a 120.0)) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = ((60.0 * x) / (z - t)) + (a * 120.0);
double tmp;
if (x <= -1.25e+101) {
tmp = t_1;
} else if (x <= 1e-32) {
tmp = ((y * -60.0) / (z - t)) + (a * 120.0);
} 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 = ((60.0d0 * x) / (z - t)) + (a * 120.0d0)
if (x <= (-1.25d+101)) then
tmp = t_1
else if (x <= 1d-32) then
tmp = ((y * (-60.0d0)) / (z - t)) + (a * 120.0d0)
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 = ((60.0 * x) / (z - t)) + (a * 120.0);
double tmp;
if (x <= -1.25e+101) {
tmp = t_1;
} else if (x <= 1e-32) {
tmp = ((y * -60.0) / (z - t)) + (a * 120.0);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = ((60.0 * x) / (z - t)) + (a * 120.0) tmp = 0 if x <= -1.25e+101: tmp = t_1 elif x <= 1e-32: tmp = ((y * -60.0) / (z - t)) + (a * 120.0) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(Float64(Float64(60.0 * x) / Float64(z - t)) + Float64(a * 120.0)) tmp = 0.0 if (x <= -1.25e+101) tmp = t_1; elseif (x <= 1e-32) tmp = Float64(Float64(Float64(y * -60.0) / Float64(z - t)) + Float64(a * 120.0)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = ((60.0 * x) / (z - t)) + (a * 120.0); tmp = 0.0; if (x <= -1.25e+101) tmp = t_1; elseif (x <= 1e-32) tmp = ((y * -60.0) / (z - t)) + (a * 120.0); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(N[(60.0 * x), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision] + N[(a * 120.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.25e+101], t$95$1, If[LessEqual[x, 1e-32], N[(N[(N[(y * -60.0), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision] + N[(a * 120.0), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{60 \cdot x}{z - t} + a \cdot 120\\
\mathbf{if}\;x \leq -1.25 \cdot 10^{+101}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 10^{-32}:\\
\;\;\;\;\frac{y \cdot -60}{z - t} + a \cdot 120\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -1.24999999999999997e101 or 1.00000000000000006e-32 < x Initial program 98.9%
Taylor expanded in x around inf
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f6492.2%
Simplified92.2%
if -1.24999999999999997e101 < x < 1.00000000000000006e-32Initial program 99.8%
Taylor expanded in x around 0
*-lowering-*.f6492.6%
Simplified92.6%
Final simplification92.5%
(FPCore (x y z t a)
:precision binary64
(if (<= a -2.75e-37)
(* a 120.0)
(if (<= a 1.15e-270)
(* -60.0 (/ y z))
(if (<= a 1.2e-229) (/ (* 60.0 x) z) (* a 120.0)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -2.75e-37) {
tmp = a * 120.0;
} else if (a <= 1.15e-270) {
tmp = -60.0 * (y / z);
} else if (a <= 1.2e-229) {
tmp = (60.0 * x) / z;
} else {
tmp = a * 120.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 (a <= (-2.75d-37)) then
tmp = a * 120.0d0
else if (a <= 1.15d-270) then
tmp = (-60.0d0) * (y / z)
else if (a <= 1.2d-229) then
tmp = (60.0d0 * x) / z
else
tmp = a * 120.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -2.75e-37) {
tmp = a * 120.0;
} else if (a <= 1.15e-270) {
tmp = -60.0 * (y / z);
} else if (a <= 1.2e-229) {
tmp = (60.0 * x) / z;
} else {
tmp = a * 120.0;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -2.75e-37: tmp = a * 120.0 elif a <= 1.15e-270: tmp = -60.0 * (y / z) elif a <= 1.2e-229: tmp = (60.0 * x) / z else: tmp = a * 120.0 return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -2.75e-37) tmp = Float64(a * 120.0); elseif (a <= 1.15e-270) tmp = Float64(-60.0 * Float64(y / z)); elseif (a <= 1.2e-229) tmp = Float64(Float64(60.0 * x) / z); else tmp = Float64(a * 120.0); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -2.75e-37) tmp = a * 120.0; elseif (a <= 1.15e-270) tmp = -60.0 * (y / z); elseif (a <= 1.2e-229) tmp = (60.0 * x) / z; else tmp = a * 120.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -2.75e-37], N[(a * 120.0), $MachinePrecision], If[LessEqual[a, 1.15e-270], N[(-60.0 * N[(y / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.2e-229], N[(N[(60.0 * x), $MachinePrecision] / z), $MachinePrecision], N[(a * 120.0), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -2.75 \cdot 10^{-37}:\\
\;\;\;\;a \cdot 120\\
\mathbf{elif}\;a \leq 1.15 \cdot 10^{-270}:\\
\;\;\;\;-60 \cdot \frac{y}{z}\\
\mathbf{elif}\;a \leq 1.2 \cdot 10^{-229}:\\
\;\;\;\;\frac{60 \cdot x}{z}\\
\mathbf{else}:\\
\;\;\;\;a \cdot 120\\
\end{array}
\end{array}
if a < -2.7499999999999999e-37 or 1.2e-229 < a Initial program 99.3%
Taylor expanded in z around inf
*-lowering-*.f6460.2%
Simplified60.2%
if -2.7499999999999999e-37 < a < 1.1500000000000001e-270Initial program 99.6%
Taylor expanded in y around inf
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f6455.1%
Simplified55.1%
Taylor expanded in z around inf
/-lowering-/.f6437.8%
Simplified37.8%
if 1.1500000000000001e-270 < a < 1.2e-229Initial program 99.8%
Taylor expanded in a around 0
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6496.0%
Simplified96.0%
Taylor expanded in z around inf
associate-*r/N/A
/-lowering-/.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
--lowering--.f6458.6%
Simplified58.6%
Taylor expanded in x around inf
Simplified50.3%
Final simplification54.7%
(FPCore (x y z t a) :precision binary64 (if (<= a -1.95e+40) (* a 120.0) (if (<= a 5e+64) (* (- x y) (/ 60.0 (- z t))) (* a 120.0))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -1.95e+40) {
tmp = a * 120.0;
} else if (a <= 5e+64) {
tmp = (x - y) * (60.0 / (z - t));
} else {
tmp = a * 120.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 (a <= (-1.95d+40)) then
tmp = a * 120.0d0
else if (a <= 5d+64) then
tmp = (x - y) * (60.0d0 / (z - t))
else
tmp = a * 120.0d0
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.95e+40) {
tmp = a * 120.0;
} else if (a <= 5e+64) {
tmp = (x - y) * (60.0 / (z - t));
} else {
tmp = a * 120.0;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -1.95e+40: tmp = a * 120.0 elif a <= 5e+64: tmp = (x - y) * (60.0 / (z - t)) else: tmp = a * 120.0 return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -1.95e+40) tmp = Float64(a * 120.0); elseif (a <= 5e+64) tmp = Float64(Float64(x - y) * Float64(60.0 / Float64(z - t))); else tmp = Float64(a * 120.0); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -1.95e+40) tmp = a * 120.0; elseif (a <= 5e+64) tmp = (x - y) * (60.0 / (z - t)); else tmp = a * 120.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -1.95e+40], N[(a * 120.0), $MachinePrecision], If[LessEqual[a, 5e+64], N[(N[(x - y), $MachinePrecision] * N[(60.0 / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * 120.0), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.95 \cdot 10^{+40}:\\
\;\;\;\;a \cdot 120\\
\mathbf{elif}\;a \leq 5 \cdot 10^{+64}:\\
\;\;\;\;\left(x - y\right) \cdot \frac{60}{z - t}\\
\mathbf{else}:\\
\;\;\;\;a \cdot 120\\
\end{array}
\end{array}
if a < -1.95e40 or 5e64 < a Initial program 98.9%
Taylor expanded in z around inf
*-lowering-*.f6478.7%
Simplified78.7%
if -1.95e40 < a < 5e64Initial program 99.7%
Taylor expanded in a around 0
associate-*r/N/A
/-lowering-/.f64N/A
*-lowering-*.f64N/A
--lowering--.f64N/A
--lowering--.f6476.6%
Simplified76.6%
associate-*l/N/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6476.4%
Applied egg-rr76.4%
Final simplification77.4%
(FPCore (x y z t a) :precision binary64 (if (<= a -8.5e+39) (* a 120.0) (if (<= a 6.5e-133) (* -60.0 (/ y (- z t))) (* a 120.0))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -8.5e+39) {
tmp = a * 120.0;
} else if (a <= 6.5e-133) {
tmp = -60.0 * (y / (z - t));
} else {
tmp = a * 120.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 (a <= (-8.5d+39)) then
tmp = a * 120.0d0
else if (a <= 6.5d-133) then
tmp = (-60.0d0) * (y / (z - t))
else
tmp = a * 120.0d0
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+39) {
tmp = a * 120.0;
} else if (a <= 6.5e-133) {
tmp = -60.0 * (y / (z - t));
} else {
tmp = a * 120.0;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -8.5e+39: tmp = a * 120.0 elif a <= 6.5e-133: tmp = -60.0 * (y / (z - t)) else: tmp = a * 120.0 return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -8.5e+39) tmp = Float64(a * 120.0); elseif (a <= 6.5e-133) tmp = Float64(-60.0 * Float64(y / Float64(z - t))); else tmp = Float64(a * 120.0); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -8.5e+39) tmp = a * 120.0; elseif (a <= 6.5e-133) tmp = -60.0 * (y / (z - t)); else tmp = a * 120.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -8.5e+39], N[(a * 120.0), $MachinePrecision], If[LessEqual[a, 6.5e-133], N[(-60.0 * N[(y / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * 120.0), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -8.5 \cdot 10^{+39}:\\
\;\;\;\;a \cdot 120\\
\mathbf{elif}\;a \leq 6.5 \cdot 10^{-133}:\\
\;\;\;\;-60 \cdot \frac{y}{z - t}\\
\mathbf{else}:\\
\;\;\;\;a \cdot 120\\
\end{array}
\end{array}
if a < -8.49999999999999971e39 or 6.5000000000000002e-133 < a Initial program 99.2%
Taylor expanded in z around inf
*-lowering-*.f6467.3%
Simplified67.3%
if -8.49999999999999971e39 < a < 6.5000000000000002e-133Initial program 99.6%
Taylor expanded in y around inf
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f6445.9%
Simplified45.9%
Final simplification58.4%
(FPCore (x y z t a) :precision binary64 (if (<= a -2.9e-37) (* a 120.0) (if (<= a 3.4e-248) (* -60.0 (/ y z)) (* a 120.0))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -2.9e-37) {
tmp = a * 120.0;
} else if (a <= 3.4e-248) {
tmp = -60.0 * (y / z);
} else {
tmp = a * 120.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 (a <= (-2.9d-37)) then
tmp = a * 120.0d0
else if (a <= 3.4d-248) then
tmp = (-60.0d0) * (y / z)
else
tmp = a * 120.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -2.9e-37) {
tmp = a * 120.0;
} else if (a <= 3.4e-248) {
tmp = -60.0 * (y / z);
} else {
tmp = a * 120.0;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -2.9e-37: tmp = a * 120.0 elif a <= 3.4e-248: tmp = -60.0 * (y / z) else: tmp = a * 120.0 return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -2.9e-37) tmp = Float64(a * 120.0); elseif (a <= 3.4e-248) tmp = Float64(-60.0 * Float64(y / z)); else tmp = Float64(a * 120.0); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -2.9e-37) tmp = a * 120.0; elseif (a <= 3.4e-248) tmp = -60.0 * (y / z); else tmp = a * 120.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -2.9e-37], N[(a * 120.0), $MachinePrecision], If[LessEqual[a, 3.4e-248], N[(-60.0 * N[(y / z), $MachinePrecision]), $MachinePrecision], N[(a * 120.0), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -2.9 \cdot 10^{-37}:\\
\;\;\;\;a \cdot 120\\
\mathbf{elif}\;a \leq 3.4 \cdot 10^{-248}:\\
\;\;\;\;-60 \cdot \frac{y}{z}\\
\mathbf{else}:\\
\;\;\;\;a \cdot 120\\
\end{array}
\end{array}
if a < -2.90000000000000005e-37 or 3.3999999999999998e-248 < a Initial program 99.3%
Taylor expanded in z around inf
*-lowering-*.f6458.1%
Simplified58.1%
if -2.90000000000000005e-37 < a < 3.3999999999999998e-248Initial program 99.6%
Taylor expanded in y around inf
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f6452.6%
Simplified52.6%
Taylor expanded in z around inf
/-lowering-/.f6435.5%
Simplified35.5%
Final simplification52.5%
(FPCore (x y z t a) :precision binary64 (+ (* (- x y) (/ 60.0 (- z t))) (* a 120.0)))
double code(double x, double y, double z, double t, double a) {
return ((x - y) * (60.0 / (z - t))) + (a * 120.0);
}
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) * (60.0d0 / (z - t))) + (a * 120.0d0)
end function
public static double code(double x, double y, double z, double t, double a) {
return ((x - y) * (60.0 / (z - t))) + (a * 120.0);
}
def code(x, y, z, t, a): return ((x - y) * (60.0 / (z - t))) + (a * 120.0)
function code(x, y, z, t, a) return Float64(Float64(Float64(x - y) * Float64(60.0 / Float64(z - t))) + Float64(a * 120.0)) end
function tmp = code(x, y, z, t, a) tmp = ((x - y) * (60.0 / (z - t))) + (a * 120.0); end
code[x_, y_, z_, t_, a_] := N[(N[(N[(x - y), $MachinePrecision] * N[(60.0 / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(a * 120.0), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x - y\right) \cdot \frac{60}{z - t} + a \cdot 120
\end{array}
Initial program 99.4%
*-commutativeN/A
associate-/l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
/-lowering-/.f64N/A
--lowering--.f64N/A
--lowering--.f6499.7%
Applied egg-rr99.7%
Final simplification99.7%
(FPCore (x y z t a) :precision binary64 (* a 120.0))
double code(double x, double y, double z, double t, double a) {
return a * 120.0;
}
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 = a * 120.0d0
end function
public static double code(double x, double y, double z, double t, double a) {
return a * 120.0;
}
def code(x, y, z, t, a): return a * 120.0
function code(x, y, z, t, a) return Float64(a * 120.0) end
function tmp = code(x, y, z, t, a) tmp = a * 120.0; end
code[x_, y_, z_, t_, a_] := N[(a * 120.0), $MachinePrecision]
\begin{array}{l}
\\
a \cdot 120
\end{array}
Initial program 99.4%
Taylor expanded in z around inf
*-lowering-*.f6446.9%
Simplified46.9%
Final simplification46.9%
(FPCore (x y z t a) :precision binary64 (+ (/ 60.0 (/ (- z t) (- x y))) (* a 120.0)))
double code(double x, double y, double z, double t, double a) {
return (60.0 / ((z - t) / (x - y))) + (a * 120.0);
}
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 = (60.0d0 / ((z - t) / (x - y))) + (a * 120.0d0)
end function
public static double code(double x, double y, double z, double t, double a) {
return (60.0 / ((z - t) / (x - y))) + (a * 120.0);
}
def code(x, y, z, t, a): return (60.0 / ((z - t) / (x - y))) + (a * 120.0)
function code(x, y, z, t, a) return Float64(Float64(60.0 / Float64(Float64(z - t) / Float64(x - y))) + Float64(a * 120.0)) end
function tmp = code(x, y, z, t, a) tmp = (60.0 / ((z - t) / (x - y))) + (a * 120.0); end
code[x_, y_, z_, t_, a_] := N[(N[(60.0 / N[(N[(z - t), $MachinePrecision] / N[(x - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(a * 120.0), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{60}{\frac{z - t}{x - y}} + a \cdot 120
\end{array}
herbie shell --seed 2024191
(FPCore (x y z t a)
:name "Data.Colour.RGB:hslsv from colour-2.3.3, B"
:precision binary64
:alt
(! :herbie-platform default (+ (/ 60 (/ (- z t) (- x y))) (* a 120)))
(+ (/ (* 60.0 (- x y)) (- z t)) (* a 120.0)))