
(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 19 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 (fma a 120.0 (/ (fma -60.0 x (* y 60.0)) (- t z))))
double code(double x, double y, double z, double t, double a) {
return fma(a, 120.0, (fma(-60.0, x, (y * 60.0)) / (t - z)));
}
function code(x, y, z, t, a) return fma(a, 120.0, Float64(fma(-60.0, x, Float64(y * 60.0)) / Float64(t - z))) end
code[x_, y_, z_, t_, a_] := N[(a * 120.0 + N[(N[(-60.0 * x + N[(y * 60.0), $MachinePrecision]), $MachinePrecision] / N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\mathsf{fma}\left(a, 120, \frac{\mathsf{fma}\left(-60, x, y \cdot 60\right)}{t - z}\right)
\end{array}
Initial program 99.8%
lift-+.f64N/A
+-commutativeN/A
lift-*.f64N/A
lower-fma.f6499.8
lift-/.f64N/A
frac-2negN/A
lower-/.f64N/A
lift-*.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
lower-*.f64N/A
metadata-evalN/A
neg-sub0N/A
lift--.f64N/A
sub-negN/A
+-commutativeN/A
associate--r+N/A
neg-sub0N/A
remove-double-negN/A
lower--.f6499.8
Applied rewrites99.8%
Taylor expanded in x around 0
lower-fma.f64N/A
*-commutativeN/A
lower-*.f6499.9
Applied rewrites99.9%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (/ (* 60.0 (- x y)) (- z t))))
(if (<= t_1 -1e+61)
t_1
(if (<= t_1 -1e-92)
(fma y (/ 60.0 t) (* a 120.0))
(if (<= t_1 4e-8) (* a 120.0) t_1)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = (60.0 * (x - y)) / (z - t);
double tmp;
if (t_1 <= -1e+61) {
tmp = t_1;
} else if (t_1 <= -1e-92) {
tmp = fma(y, (60.0 / t), (a * 120.0));
} else if (t_1 <= 4e-8) {
tmp = a * 120.0;
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a) t_1 = Float64(Float64(60.0 * Float64(x - y)) / Float64(z - t)) tmp = 0.0 if (t_1 <= -1e+61) tmp = t_1; elseif (t_1 <= -1e-92) tmp = fma(y, Float64(60.0 / t), Float64(a * 120.0)); elseif (t_1 <= 4e-8) tmp = Float64(a * 120.0); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(60.0 * N[(x - y), $MachinePrecision]), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -1e+61], t$95$1, If[LessEqual[t$95$1, -1e-92], N[(y * N[(60.0 / t), $MachinePrecision] + N[(a * 120.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 4e-8], N[(a * 120.0), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{60 \cdot \left(x - y\right)}{z - t}\\
\mathbf{if}\;t\_1 \leq -1 \cdot 10^{+61}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t\_1 \leq -1 \cdot 10^{-92}:\\
\;\;\;\;\mathsf{fma}\left(y, \frac{60}{t}, a \cdot 120\right)\\
\mathbf{elif}\;t\_1 \leq 4 \cdot 10^{-8}:\\
\;\;\;\;a \cdot 120\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) < -9.99999999999999949e60 or 4.0000000000000001e-8 < (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) Initial program 99.8%
Taylor expanded in a around 0
associate-*r/N/A
lower-/.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower--.f6479.1
Applied rewrites79.1%
if -9.99999999999999949e60 < (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) < -9.99999999999999988e-93Initial program 99.8%
Taylor expanded in x around 0
lower-fma.f64N/A
lower-/.f64N/A
lower--.f64N/A
lower-*.f6482.2
Applied rewrites82.2%
Taylor expanded in z around 0
Applied rewrites78.8%
if -9.99999999999999988e-93 < (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) < 4.0000000000000001e-8Initial program 99.9%
Taylor expanded in z around inf
lower-*.f6489.8
Applied rewrites89.8%
Final simplification83.4%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (/ (* 60.0 (- x y)) (- z t))))
(if (<= t_1 -1e+61)
t_1
(if (<= t_1 4e-8) (fma -60.0 (/ y (- 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 - y)) / (z - t);
double tmp;
if (t_1 <= -1e+61) {
tmp = t_1;
} else if (t_1 <= 4e-8) {
tmp = fma(-60.0, (y / (z - t)), (a * 120.0));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a) t_1 = Float64(Float64(60.0 * Float64(x - y)) / Float64(z - t)) tmp = 0.0 if (t_1 <= -1e+61) tmp = t_1; elseif (t_1 <= 4e-8) tmp = fma(-60.0, Float64(y / Float64(z - t)), Float64(a * 120.0)); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(60.0 * N[(x - y), $MachinePrecision]), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -1e+61], t$95$1, If[LessEqual[t$95$1, 4e-8], N[(-60.0 * N[(y / 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 \left(x - y\right)}{z - t}\\
\mathbf{if}\;t\_1 \leq -1 \cdot 10^{+61}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t\_1 \leq 4 \cdot 10^{-8}:\\
\;\;\;\;\mathsf{fma}\left(-60, \frac{y}{z - t}, a \cdot 120\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) < -9.99999999999999949e60 or 4.0000000000000001e-8 < (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) Initial program 99.8%
Taylor expanded in a around 0
associate-*r/N/A
lower-/.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower--.f6479.1
Applied rewrites79.1%
if -9.99999999999999949e60 < (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) < 4.0000000000000001e-8Initial program 99.9%
Taylor expanded in x around 0
lower-fma.f64N/A
lower-/.f64N/A
lower--.f64N/A
lower-*.f6491.6
Applied rewrites91.6%
Final simplification85.8%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (/ (* 60.0 (- x y)) (- z t))))
(if (<= t_1 -1e+65)
(/ (* x 60.0) (- z t))
(if (<= t_1 4e-8) (* a 120.0) (/ (* -60.0 (- x y)) t)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = (60.0 * (x - y)) / (z - t);
double tmp;
if (t_1 <= -1e+65) {
tmp = (x * 60.0) / (z - t);
} else if (t_1 <= 4e-8) {
tmp = a * 120.0;
} else {
tmp = (-60.0 * (x - y)) / 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) :: t_1
real(8) :: tmp
t_1 = (60.0d0 * (x - y)) / (z - t)
if (t_1 <= (-1d+65)) then
tmp = (x * 60.0d0) / (z - t)
else if (t_1 <= 4d-8) then
tmp = a * 120.0d0
else
tmp = ((-60.0d0) * (x - y)) / t
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 - y)) / (z - t);
double tmp;
if (t_1 <= -1e+65) {
tmp = (x * 60.0) / (z - t);
} else if (t_1 <= 4e-8) {
tmp = a * 120.0;
} else {
tmp = (-60.0 * (x - y)) / t;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = (60.0 * (x - y)) / (z - t) tmp = 0 if t_1 <= -1e+65: tmp = (x * 60.0) / (z - t) elif t_1 <= 4e-8: tmp = a * 120.0 else: tmp = (-60.0 * (x - y)) / t return tmp
function code(x, y, z, t, a) t_1 = Float64(Float64(60.0 * Float64(x - y)) / Float64(z - t)) tmp = 0.0 if (t_1 <= -1e+65) tmp = Float64(Float64(x * 60.0) / Float64(z - t)); elseif (t_1 <= 4e-8) tmp = Float64(a * 120.0); else tmp = Float64(Float64(-60.0 * Float64(x - y)) / t); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = (60.0 * (x - y)) / (z - t); tmp = 0.0; if (t_1 <= -1e+65) tmp = (x * 60.0) / (z - t); elseif (t_1 <= 4e-8) tmp = a * 120.0; else tmp = (-60.0 * (x - y)) / t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(60.0 * N[(x - y), $MachinePrecision]), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -1e+65], N[(N[(x * 60.0), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 4e-8], N[(a * 120.0), $MachinePrecision], N[(N[(-60.0 * N[(x - y), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{60 \cdot \left(x - y\right)}{z - t}\\
\mathbf{if}\;t\_1 \leq -1 \cdot 10^{+65}:\\
\;\;\;\;\frac{x \cdot 60}{z - t}\\
\mathbf{elif}\;t\_1 \leq 4 \cdot 10^{-8}:\\
\;\;\;\;a \cdot 120\\
\mathbf{else}:\\
\;\;\;\;\frac{-60 \cdot \left(x - y\right)}{t}\\
\end{array}
\end{array}
if (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) < -9.9999999999999999e64Initial program 99.9%
Taylor expanded in x around inf
associate-*r/N/A
lower-/.f64N/A
lower-*.f64N/A
lower--.f6450.5
Applied rewrites50.5%
if -9.9999999999999999e64 < (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) < 4.0000000000000001e-8Initial program 99.9%
Taylor expanded in z around inf
lower-*.f6483.3
Applied rewrites83.3%
if 4.0000000000000001e-8 < (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) Initial program 99.7%
Taylor expanded in z around inf
lower-*.f6419.3
Applied rewrites19.3%
Taylor expanded in a around 0
associate-*r/N/A
lower-/.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower--.f64N/A
lower--.f6481.6
Applied rewrites81.6%
Taylor expanded in z around 0
Applied rewrites51.3%
Final simplification68.3%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (/ (* 60.0 (- x y)) (- z t))))
(if (<= t_1 -1e+65)
(* x (/ 60.0 (- z t)))
(if (<= t_1 4e-8) (* a 120.0) (/ (* -60.0 (- x y)) t)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = (60.0 * (x - y)) / (z - t);
double tmp;
if (t_1 <= -1e+65) {
tmp = x * (60.0 / (z - t));
} else if (t_1 <= 4e-8) {
tmp = a * 120.0;
} else {
tmp = (-60.0 * (x - y)) / 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) :: t_1
real(8) :: tmp
t_1 = (60.0d0 * (x - y)) / (z - t)
if (t_1 <= (-1d+65)) then
tmp = x * (60.0d0 / (z - t))
else if (t_1 <= 4d-8) then
tmp = a * 120.0d0
else
tmp = ((-60.0d0) * (x - y)) / t
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 - y)) / (z - t);
double tmp;
if (t_1 <= -1e+65) {
tmp = x * (60.0 / (z - t));
} else if (t_1 <= 4e-8) {
tmp = a * 120.0;
} else {
tmp = (-60.0 * (x - y)) / t;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = (60.0 * (x - y)) / (z - t) tmp = 0 if t_1 <= -1e+65: tmp = x * (60.0 / (z - t)) elif t_1 <= 4e-8: tmp = a * 120.0 else: tmp = (-60.0 * (x - y)) / t return tmp
function code(x, y, z, t, a) t_1 = Float64(Float64(60.0 * Float64(x - y)) / Float64(z - t)) tmp = 0.0 if (t_1 <= -1e+65) tmp = Float64(x * Float64(60.0 / Float64(z - t))); elseif (t_1 <= 4e-8) tmp = Float64(a * 120.0); else tmp = Float64(Float64(-60.0 * Float64(x - y)) / t); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = (60.0 * (x - y)) / (z - t); tmp = 0.0; if (t_1 <= -1e+65) tmp = x * (60.0 / (z - t)); elseif (t_1 <= 4e-8) tmp = a * 120.0; else tmp = (-60.0 * (x - y)) / t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(60.0 * N[(x - y), $MachinePrecision]), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -1e+65], N[(x * N[(60.0 / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 4e-8], N[(a * 120.0), $MachinePrecision], N[(N[(-60.0 * N[(x - y), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{60 \cdot \left(x - y\right)}{z - t}\\
\mathbf{if}\;t\_1 \leq -1 \cdot 10^{+65}:\\
\;\;\;\;x \cdot \frac{60}{z - t}\\
\mathbf{elif}\;t\_1 \leq 4 \cdot 10^{-8}:\\
\;\;\;\;a \cdot 120\\
\mathbf{else}:\\
\;\;\;\;\frac{-60 \cdot \left(x - y\right)}{t}\\
\end{array}
\end{array}
if (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) < -9.9999999999999999e64Initial program 99.9%
Taylor expanded in x around inf
associate-*r/N/A
lower-/.f64N/A
lower-*.f64N/A
lower--.f6450.5
Applied rewrites50.5%
Applied rewrites50.5%
if -9.9999999999999999e64 < (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) < 4.0000000000000001e-8Initial program 99.9%
Taylor expanded in z around inf
lower-*.f6483.3
Applied rewrites83.3%
if 4.0000000000000001e-8 < (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) Initial program 99.7%
Taylor expanded in z around inf
lower-*.f6419.3
Applied rewrites19.3%
Taylor expanded in a around 0
associate-*r/N/A
lower-/.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower--.f64N/A
lower--.f6481.6
Applied rewrites81.6%
Taylor expanded in z around 0
Applied rewrites51.3%
Final simplification68.3%
(FPCore (x y z t a) :precision binary64 (let* ((t_1 (* 60.0 (/ (- x y) z))) (t_2 (/ (* 60.0 (- x y)) (- z t)))) (if (<= t_2 -5e+163) t_1 (if (<= t_2 1e+206) (* a 120.0) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = 60.0 * ((x - y) / z);
double t_2 = (60.0 * (x - y)) / (z - t);
double tmp;
if (t_2 <= -5e+163) {
tmp = t_1;
} else if (t_2 <= 1e+206) {
tmp = 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) :: t_2
real(8) :: tmp
t_1 = 60.0d0 * ((x - y) / z)
t_2 = (60.0d0 * (x - y)) / (z - t)
if (t_2 <= (-5d+163)) then
tmp = t_1
else if (t_2 <= 1d+206) then
tmp = 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 - y) / z);
double t_2 = (60.0 * (x - y)) / (z - t);
double tmp;
if (t_2 <= -5e+163) {
tmp = t_1;
} else if (t_2 <= 1e+206) {
tmp = a * 120.0;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = 60.0 * ((x - y) / z) t_2 = (60.0 * (x - y)) / (z - t) tmp = 0 if t_2 <= -5e+163: tmp = t_1 elif t_2 <= 1e+206: tmp = a * 120.0 else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(60.0 * Float64(Float64(x - y) / z)) t_2 = Float64(Float64(60.0 * Float64(x - y)) / Float64(z - t)) tmp = 0.0 if (t_2 <= -5e+163) tmp = t_1; elseif (t_2 <= 1e+206) tmp = 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 - y) / z); t_2 = (60.0 * (x - y)) / (z - t); tmp = 0.0; if (t_2 <= -5e+163) tmp = t_1; elseif (t_2 <= 1e+206) tmp = a * 120.0; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(60.0 * N[(N[(x - y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(60.0 * N[(x - y), $MachinePrecision]), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, -5e+163], t$95$1, If[LessEqual[t$95$2, 1e+206], N[(a * 120.0), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := 60 \cdot \frac{x - y}{z}\\
t_2 := \frac{60 \cdot \left(x - y\right)}{z - t}\\
\mathbf{if}\;t\_2 \leq -5 \cdot 10^{+163}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t\_2 \leq 10^{+206}:\\
\;\;\;\;a \cdot 120\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) < -5e163 or 1e206 < (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) Initial program 99.9%
Taylor expanded in z around inf
lower-*.f647.0
Applied rewrites7.0%
Taylor expanded in a around 0
associate-*r/N/A
lower-/.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower--.f64N/A
lower--.f6494.1
Applied rewrites94.1%
Taylor expanded in z around inf
Applied rewrites58.9%
if -5e163 < (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) < 1e206Initial program 99.8%
Taylor expanded in z around inf
lower-*.f6465.9
Applied rewrites65.9%
Final simplification64.6%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (/ (* 60.0 (- x y)) (- z t))))
(if (<= t_1 -5e+163)
(* x (/ 60.0 (- t)))
(if (<= t_1 2e+153) (* a 120.0) (/ (* y 60.0) t)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = (60.0 * (x - y)) / (z - t);
double tmp;
if (t_1 <= -5e+163) {
tmp = x * (60.0 / -t);
} else if (t_1 <= 2e+153) {
tmp = a * 120.0;
} else {
tmp = (y * 60.0) / 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) :: t_1
real(8) :: tmp
t_1 = (60.0d0 * (x - y)) / (z - t)
if (t_1 <= (-5d+163)) then
tmp = x * (60.0d0 / -t)
else if (t_1 <= 2d+153) then
tmp = a * 120.0d0
else
tmp = (y * 60.0d0) / t
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 - y)) / (z - t);
double tmp;
if (t_1 <= -5e+163) {
tmp = x * (60.0 / -t);
} else if (t_1 <= 2e+153) {
tmp = a * 120.0;
} else {
tmp = (y * 60.0) / t;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = (60.0 * (x - y)) / (z - t) tmp = 0 if t_1 <= -5e+163: tmp = x * (60.0 / -t) elif t_1 <= 2e+153: tmp = a * 120.0 else: tmp = (y * 60.0) / t return tmp
function code(x, y, z, t, a) t_1 = Float64(Float64(60.0 * Float64(x - y)) / Float64(z - t)) tmp = 0.0 if (t_1 <= -5e+163) tmp = Float64(x * Float64(60.0 / Float64(-t))); elseif (t_1 <= 2e+153) tmp = Float64(a * 120.0); else tmp = Float64(Float64(y * 60.0) / t); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = (60.0 * (x - y)) / (z - t); tmp = 0.0; if (t_1 <= -5e+163) tmp = x * (60.0 / -t); elseif (t_1 <= 2e+153) tmp = a * 120.0; else tmp = (y * 60.0) / t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(60.0 * N[(x - y), $MachinePrecision]), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -5e+163], N[(x * N[(60.0 / (-t)), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 2e+153], N[(a * 120.0), $MachinePrecision], N[(N[(y * 60.0), $MachinePrecision] / t), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{60 \cdot \left(x - y\right)}{z - t}\\
\mathbf{if}\;t\_1 \leq -5 \cdot 10^{+163}:\\
\;\;\;\;x \cdot \frac{60}{-t}\\
\mathbf{elif}\;t\_1 \leq 2 \cdot 10^{+153}:\\
\;\;\;\;a \cdot 120\\
\mathbf{else}:\\
\;\;\;\;\frac{y \cdot 60}{t}\\
\end{array}
\end{array}
if (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) < -5e163Initial program 99.9%
Taylor expanded in x around inf
associate-*r/N/A
lower-/.f64N/A
lower-*.f64N/A
lower--.f6451.0
Applied rewrites51.0%
Applied rewrites51.0%
Taylor expanded in z around 0
Applied rewrites37.7%
Applied rewrites37.7%
if -5e163 < (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) < 2e153Initial program 99.8%
Taylor expanded in z around inf
lower-*.f6467.0
Applied rewrites67.0%
if 2e153 < (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) Initial program 99.8%
Taylor expanded in x around inf
associate-*r/N/A
lower-/.f64N/A
lower-*.f64N/A
lower--.f6440.4
Applied rewrites40.4%
Taylor expanded in z around inf
Applied rewrites30.1%
Taylor expanded in y around inf
associate-*r/N/A
lower-/.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower--.f6463.2
Applied rewrites63.2%
Taylor expanded in z around 0
Applied rewrites43.1%
Final simplification61.7%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (/ (* 60.0 (- x y)) (- z t))))
(if (<= t_1 -5e+163)
(/ (* x -60.0) t)
(if (<= t_1 2e+153) (* a 120.0) (/ (* y 60.0) t)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = (60.0 * (x - y)) / (z - t);
double tmp;
if (t_1 <= -5e+163) {
tmp = (x * -60.0) / t;
} else if (t_1 <= 2e+153) {
tmp = a * 120.0;
} else {
tmp = (y * 60.0) / 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) :: t_1
real(8) :: tmp
t_1 = (60.0d0 * (x - y)) / (z - t)
if (t_1 <= (-5d+163)) then
tmp = (x * (-60.0d0)) / t
else if (t_1 <= 2d+153) then
tmp = a * 120.0d0
else
tmp = (y * 60.0d0) / t
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 - y)) / (z - t);
double tmp;
if (t_1 <= -5e+163) {
tmp = (x * -60.0) / t;
} else if (t_1 <= 2e+153) {
tmp = a * 120.0;
} else {
tmp = (y * 60.0) / t;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = (60.0 * (x - y)) / (z - t) tmp = 0 if t_1 <= -5e+163: tmp = (x * -60.0) / t elif t_1 <= 2e+153: tmp = a * 120.0 else: tmp = (y * 60.0) / t return tmp
function code(x, y, z, t, a) t_1 = Float64(Float64(60.0 * Float64(x - y)) / Float64(z - t)) tmp = 0.0 if (t_1 <= -5e+163) tmp = Float64(Float64(x * -60.0) / t); elseif (t_1 <= 2e+153) tmp = Float64(a * 120.0); else tmp = Float64(Float64(y * 60.0) / t); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = (60.0 * (x - y)) / (z - t); tmp = 0.0; if (t_1 <= -5e+163) tmp = (x * -60.0) / t; elseif (t_1 <= 2e+153) tmp = a * 120.0; else tmp = (y * 60.0) / t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(60.0 * N[(x - y), $MachinePrecision]), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -5e+163], N[(N[(x * -60.0), $MachinePrecision] / t), $MachinePrecision], If[LessEqual[t$95$1, 2e+153], N[(a * 120.0), $MachinePrecision], N[(N[(y * 60.0), $MachinePrecision] / t), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{60 \cdot \left(x - y\right)}{z - t}\\
\mathbf{if}\;t\_1 \leq -5 \cdot 10^{+163}:\\
\;\;\;\;\frac{x \cdot -60}{t}\\
\mathbf{elif}\;t\_1 \leq 2 \cdot 10^{+153}:\\
\;\;\;\;a \cdot 120\\
\mathbf{else}:\\
\;\;\;\;\frac{y \cdot 60}{t}\\
\end{array}
\end{array}
if (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) < -5e163Initial program 99.9%
Taylor expanded in x around inf
associate-*r/N/A
lower-/.f64N/A
lower-*.f64N/A
lower--.f6451.0
Applied rewrites51.0%
Taylor expanded in z around 0
Applied rewrites37.7%
if -5e163 < (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) < 2e153Initial program 99.8%
Taylor expanded in z around inf
lower-*.f6467.0
Applied rewrites67.0%
if 2e153 < (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) Initial program 99.8%
Taylor expanded in x around inf
associate-*r/N/A
lower-/.f64N/A
lower-*.f64N/A
lower--.f6440.4
Applied rewrites40.4%
Taylor expanded in z around inf
Applied rewrites30.1%
Taylor expanded in y around inf
associate-*r/N/A
lower-/.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower--.f6463.2
Applied rewrites63.2%
Taylor expanded in z around 0
Applied rewrites43.1%
Final simplification61.7%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (/ (* 60.0 (- x y)) (- z t))))
(if (<= t_1 -5e+163)
(/ (* x -60.0) t)
(if (<= t_1 1e+206) (* a 120.0) (/ x (* z 0.016666666666666666))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = (60.0 * (x - y)) / (z - t);
double tmp;
if (t_1 <= -5e+163) {
tmp = (x * -60.0) / t;
} else if (t_1 <= 1e+206) {
tmp = a * 120.0;
} else {
tmp = x / (z * 0.016666666666666666);
}
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 - y)) / (z - t)
if (t_1 <= (-5d+163)) then
tmp = (x * (-60.0d0)) / t
else if (t_1 <= 1d+206) then
tmp = a * 120.0d0
else
tmp = x / (z * 0.016666666666666666d0)
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 - y)) / (z - t);
double tmp;
if (t_1 <= -5e+163) {
tmp = (x * -60.0) / t;
} else if (t_1 <= 1e+206) {
tmp = a * 120.0;
} else {
tmp = x / (z * 0.016666666666666666);
}
return tmp;
}
def code(x, y, z, t, a): t_1 = (60.0 * (x - y)) / (z - t) tmp = 0 if t_1 <= -5e+163: tmp = (x * -60.0) / t elif t_1 <= 1e+206: tmp = a * 120.0 else: tmp = x / (z * 0.016666666666666666) return tmp
function code(x, y, z, t, a) t_1 = Float64(Float64(60.0 * Float64(x - y)) / Float64(z - t)) tmp = 0.0 if (t_1 <= -5e+163) tmp = Float64(Float64(x * -60.0) / t); elseif (t_1 <= 1e+206) tmp = Float64(a * 120.0); else tmp = Float64(x / Float64(z * 0.016666666666666666)); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = (60.0 * (x - y)) / (z - t); tmp = 0.0; if (t_1 <= -5e+163) tmp = (x * -60.0) / t; elseif (t_1 <= 1e+206) tmp = a * 120.0; else tmp = x / (z * 0.016666666666666666); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(60.0 * N[(x - y), $MachinePrecision]), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -5e+163], N[(N[(x * -60.0), $MachinePrecision] / t), $MachinePrecision], If[LessEqual[t$95$1, 1e+206], N[(a * 120.0), $MachinePrecision], N[(x / N[(z * 0.016666666666666666), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{60 \cdot \left(x - y\right)}{z - t}\\
\mathbf{if}\;t\_1 \leq -5 \cdot 10^{+163}:\\
\;\;\;\;\frac{x \cdot -60}{t}\\
\mathbf{elif}\;t\_1 \leq 10^{+206}:\\
\;\;\;\;a \cdot 120\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{z \cdot 0.016666666666666666}\\
\end{array}
\end{array}
if (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) < -5e163Initial program 99.9%
Taylor expanded in x around inf
associate-*r/N/A
lower-/.f64N/A
lower-*.f64N/A
lower--.f6451.0
Applied rewrites51.0%
Taylor expanded in z around 0
Applied rewrites37.7%
if -5e163 < (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) < 1e206Initial program 99.8%
Taylor expanded in z around inf
lower-*.f6465.9
Applied rewrites65.9%
if 1e206 < (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) Initial program 99.9%
Taylor expanded in x around inf
associate-*r/N/A
lower-/.f64N/A
lower-*.f64N/A
lower--.f6444.0
Applied rewrites44.0%
Taylor expanded in z around inf
Applied rewrites36.1%
Applied rewrites36.2%
Final simplification60.6%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (/ (* 60.0 (- x y)) (- z t))))
(if (<= t_1 -1e+188)
(* x (/ 60.0 z))
(if (<= t_1 1e+206) (* a 120.0) (/ x (* z 0.016666666666666666))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = (60.0 * (x - y)) / (z - t);
double tmp;
if (t_1 <= -1e+188) {
tmp = x * (60.0 / z);
} else if (t_1 <= 1e+206) {
tmp = a * 120.0;
} else {
tmp = x / (z * 0.016666666666666666);
}
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 - y)) / (z - t)
if (t_1 <= (-1d+188)) then
tmp = x * (60.0d0 / z)
else if (t_1 <= 1d+206) then
tmp = a * 120.0d0
else
tmp = x / (z * 0.016666666666666666d0)
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 - y)) / (z - t);
double tmp;
if (t_1 <= -1e+188) {
tmp = x * (60.0 / z);
} else if (t_1 <= 1e+206) {
tmp = a * 120.0;
} else {
tmp = x / (z * 0.016666666666666666);
}
return tmp;
}
def code(x, y, z, t, a): t_1 = (60.0 * (x - y)) / (z - t) tmp = 0 if t_1 <= -1e+188: tmp = x * (60.0 / z) elif t_1 <= 1e+206: tmp = a * 120.0 else: tmp = x / (z * 0.016666666666666666) return tmp
function code(x, y, z, t, a) t_1 = Float64(Float64(60.0 * Float64(x - y)) / Float64(z - t)) tmp = 0.0 if (t_1 <= -1e+188) tmp = Float64(x * Float64(60.0 / z)); elseif (t_1 <= 1e+206) tmp = Float64(a * 120.0); else tmp = Float64(x / Float64(z * 0.016666666666666666)); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = (60.0 * (x - y)) / (z - t); tmp = 0.0; if (t_1 <= -1e+188) tmp = x * (60.0 / z); elseif (t_1 <= 1e+206) tmp = a * 120.0; else tmp = x / (z * 0.016666666666666666); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(60.0 * N[(x - y), $MachinePrecision]), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -1e+188], N[(x * N[(60.0 / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 1e+206], N[(a * 120.0), $MachinePrecision], N[(x / N[(z * 0.016666666666666666), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{60 \cdot \left(x - y\right)}{z - t}\\
\mathbf{if}\;t\_1 \leq -1 \cdot 10^{+188}:\\
\;\;\;\;x \cdot \frac{60}{z}\\
\mathbf{elif}\;t\_1 \leq 10^{+206}:\\
\;\;\;\;a \cdot 120\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{z \cdot 0.016666666666666666}\\
\end{array}
\end{array}
if (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) < -1e188Initial program 99.8%
Taylor expanded in x around inf
associate-*r/N/A
lower-/.f64N/A
lower-*.f64N/A
lower--.f6453.1
Applied rewrites53.1%
Taylor expanded in z around inf
Applied rewrites30.4%
if -1e188 < (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) < 1e206Initial program 99.8%
Taylor expanded in z around inf
lower-*.f6464.9
Applied rewrites64.9%
if 1e206 < (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) Initial program 99.9%
Taylor expanded in x around inf
associate-*r/N/A
lower-/.f64N/A
lower-*.f64N/A
lower--.f6444.0
Applied rewrites44.0%
Taylor expanded in z around inf
Applied rewrites36.1%
Applied rewrites36.2%
Final simplification59.8%
(FPCore (x y z t a) :precision binary64 (let* ((t_1 (* x (/ 60.0 z))) (t_2 (/ (* 60.0 (- x y)) (- z t)))) (if (<= t_2 -1e+188) t_1 (if (<= t_2 1e+206) (* a 120.0) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x * (60.0 / z);
double t_2 = (60.0 * (x - y)) / (z - t);
double tmp;
if (t_2 <= -1e+188) {
tmp = t_1;
} else if (t_2 <= 1e+206) {
tmp = 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) :: t_2
real(8) :: tmp
t_1 = x * (60.0d0 / z)
t_2 = (60.0d0 * (x - y)) / (z - t)
if (t_2 <= (-1d+188)) then
tmp = t_1
else if (t_2 <= 1d+206) then
tmp = 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 = x * (60.0 / z);
double t_2 = (60.0 * (x - y)) / (z - t);
double tmp;
if (t_2 <= -1e+188) {
tmp = t_1;
} else if (t_2 <= 1e+206) {
tmp = a * 120.0;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x * (60.0 / z) t_2 = (60.0 * (x - y)) / (z - t) tmp = 0 if t_2 <= -1e+188: tmp = t_1 elif t_2 <= 1e+206: tmp = a * 120.0 else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x * Float64(60.0 / z)) t_2 = Float64(Float64(60.0 * Float64(x - y)) / Float64(z - t)) tmp = 0.0 if (t_2 <= -1e+188) tmp = t_1; elseif (t_2 <= 1e+206) tmp = Float64(a * 120.0); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x * (60.0 / z); t_2 = (60.0 * (x - y)) / (z - t); tmp = 0.0; if (t_2 <= -1e+188) tmp = t_1; elseif (t_2 <= 1e+206) tmp = a * 120.0; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x * N[(60.0 / z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(60.0 * N[(x - y), $MachinePrecision]), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, -1e+188], t$95$1, If[LessEqual[t$95$2, 1e+206], N[(a * 120.0), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \frac{60}{z}\\
t_2 := \frac{60 \cdot \left(x - y\right)}{z - t}\\
\mathbf{if}\;t\_2 \leq -1 \cdot 10^{+188}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t\_2 \leq 10^{+206}:\\
\;\;\;\;a \cdot 120\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) < -1e188 or 1e206 < (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) Initial program 99.9%
Taylor expanded in x around inf
associate-*r/N/A
lower-/.f64N/A
lower-*.f64N/A
lower--.f6447.9
Applied rewrites47.9%
Taylor expanded in z around inf
Applied rewrites33.7%
if -1e188 < (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) < 1e206Initial program 99.8%
Taylor expanded in z around inf
lower-*.f6464.9
Applied rewrites64.9%
Final simplification59.7%
(FPCore (x y z t a)
:precision binary64
(if (<= (* a 120.0) -2e-45)
(* a 120.0)
(if (<= (* a 120.0) -5e-184)
(* 60.0 (/ (- x y) z))
(if (<= (* a 120.0) 2e-33) (/ (* -60.0 (- x y)) t) (* a 120.0)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a * 120.0) <= -2e-45) {
tmp = a * 120.0;
} else if ((a * 120.0) <= -5e-184) {
tmp = 60.0 * ((x - y) / z);
} else if ((a * 120.0) <= 2e-33) {
tmp = (-60.0 * (x - y)) / 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) <= (-2d-45)) then
tmp = a * 120.0d0
else if ((a * 120.0d0) <= (-5d-184)) then
tmp = 60.0d0 * ((x - y) / z)
else if ((a * 120.0d0) <= 2d-33) then
tmp = ((-60.0d0) * (x - y)) / 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) <= -2e-45) {
tmp = a * 120.0;
} else if ((a * 120.0) <= -5e-184) {
tmp = 60.0 * ((x - y) / z);
} else if ((a * 120.0) <= 2e-33) {
tmp = (-60.0 * (x - y)) / t;
} else {
tmp = a * 120.0;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a * 120.0) <= -2e-45: tmp = a * 120.0 elif (a * 120.0) <= -5e-184: tmp = 60.0 * ((x - y) / z) elif (a * 120.0) <= 2e-33: tmp = (-60.0 * (x - y)) / t else: tmp = a * 120.0 return tmp
function code(x, y, z, t, a) tmp = 0.0 if (Float64(a * 120.0) <= -2e-45) tmp = Float64(a * 120.0); elseif (Float64(a * 120.0) <= -5e-184) tmp = Float64(60.0 * Float64(Float64(x - y) / z)); elseif (Float64(a * 120.0) <= 2e-33) tmp = Float64(Float64(-60.0 * Float64(x - y)) / 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) <= -2e-45) tmp = a * 120.0; elseif ((a * 120.0) <= -5e-184) tmp = 60.0 * ((x - y) / z); elseif ((a * 120.0) <= 2e-33) tmp = (-60.0 * (x - y)) / t; else tmp = a * 120.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[N[(a * 120.0), $MachinePrecision], -2e-45], N[(a * 120.0), $MachinePrecision], If[LessEqual[N[(a * 120.0), $MachinePrecision], -5e-184], N[(60.0 * N[(N[(x - y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(a * 120.0), $MachinePrecision], 2e-33], N[(N[(-60.0 * N[(x - y), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision], N[(a * 120.0), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \cdot 120 \leq -2 \cdot 10^{-45}:\\
\;\;\;\;a \cdot 120\\
\mathbf{elif}\;a \cdot 120 \leq -5 \cdot 10^{-184}:\\
\;\;\;\;60 \cdot \frac{x - y}{z}\\
\mathbf{elif}\;a \cdot 120 \leq 2 \cdot 10^{-33}:\\
\;\;\;\;\frac{-60 \cdot \left(x - y\right)}{t}\\
\mathbf{else}:\\
\;\;\;\;a \cdot 120\\
\end{array}
\end{array}
if (*.f64 a #s(literal 120 binary64)) < -1.99999999999999997e-45 or 2.0000000000000001e-33 < (*.f64 a #s(literal 120 binary64)) Initial program 99.9%
Taylor expanded in z around inf
lower-*.f6478.0
Applied rewrites78.0%
if -1.99999999999999997e-45 < (*.f64 a #s(literal 120 binary64)) < -5.00000000000000003e-184Initial program 99.8%
Taylor expanded in z around inf
lower-*.f6419.2
Applied rewrites19.2%
Taylor expanded in a around 0
associate-*r/N/A
lower-/.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower--.f64N/A
lower--.f6480.0
Applied rewrites80.0%
Taylor expanded in z around inf
Applied rewrites55.2%
if -5.00000000000000003e-184 < (*.f64 a #s(literal 120 binary64)) < 2.0000000000000001e-33Initial program 99.7%
Taylor expanded in z around inf
lower-*.f6416.9
Applied rewrites16.9%
Taylor expanded in a around 0
associate-*r/N/A
lower-/.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower--.f64N/A
lower--.f6485.6
Applied rewrites85.6%
Taylor expanded in z around 0
Applied rewrites54.4%
Final simplification69.1%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (fma -60.0 (/ y (- z t)) (* a 120.0))))
(if (<= y -9.5e+98)
t_1
(if (<= y 4.9e+55) (fma a 120.0 (/ (* x -60.0) (- t z))) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = fma(-60.0, (y / (z - t)), (a * 120.0));
double tmp;
if (y <= -9.5e+98) {
tmp = t_1;
} else if (y <= 4.9e+55) {
tmp = fma(a, 120.0, ((x * -60.0) / (t - z)));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a) t_1 = fma(-60.0, Float64(y / Float64(z - t)), Float64(a * 120.0)) tmp = 0.0 if (y <= -9.5e+98) tmp = t_1; elseif (y <= 4.9e+55) tmp = fma(a, 120.0, Float64(Float64(x * -60.0) / Float64(t - z))); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(-60.0 * N[(y / N[(z - t), $MachinePrecision]), $MachinePrecision] + N[(a * 120.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -9.5e+98], t$95$1, If[LessEqual[y, 4.9e+55], N[(a * 120.0 + N[(N[(x * -60.0), $MachinePrecision] / N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-60, \frac{y}{z - t}, a \cdot 120\right)\\
\mathbf{if}\;y \leq -9.5 \cdot 10^{+98}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 4.9 \cdot 10^{+55}:\\
\;\;\;\;\mathsf{fma}\left(a, 120, \frac{x \cdot -60}{t - z}\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -9.5000000000000001e98 or 4.90000000000000015e55 < y Initial program 99.7%
Taylor expanded in x around 0
lower-fma.f64N/A
lower-/.f64N/A
lower--.f64N/A
lower-*.f6490.3
Applied rewrites90.3%
if -9.5000000000000001e98 < y < 4.90000000000000015e55Initial program 99.9%
lift-+.f64N/A
+-commutativeN/A
lift-*.f64N/A
lower-fma.f6499.9
lift-/.f64N/A
frac-2negN/A
lower-/.f64N/A
lift-*.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
lower-*.f64N/A
metadata-evalN/A
neg-sub0N/A
lift--.f64N/A
sub-negN/A
+-commutativeN/A
associate--r+N/A
neg-sub0N/A
remove-double-negN/A
lower--.f6499.9
Applied rewrites99.9%
Taylor expanded in x around inf
lower-*.f6494.9
Applied rewrites94.9%
Final simplification93.3%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (fma -60.0 (/ y (- z t)) (* a 120.0))))
(if (<= y -9.5e+98)
t_1
(if (<= y 4.9e+55) (fma a 120.0 (* x (/ -60.0 (- t z)))) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = fma(-60.0, (y / (z - t)), (a * 120.0));
double tmp;
if (y <= -9.5e+98) {
tmp = t_1;
} else if (y <= 4.9e+55) {
tmp = fma(a, 120.0, (x * (-60.0 / (t - z))));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a) t_1 = fma(-60.0, Float64(y / Float64(z - t)), Float64(a * 120.0)) tmp = 0.0 if (y <= -9.5e+98) tmp = t_1; elseif (y <= 4.9e+55) tmp = fma(a, 120.0, Float64(x * Float64(-60.0 / Float64(t - z)))); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(-60.0 * N[(y / N[(z - t), $MachinePrecision]), $MachinePrecision] + N[(a * 120.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -9.5e+98], t$95$1, If[LessEqual[y, 4.9e+55], N[(a * 120.0 + N[(x * N[(-60.0 / N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-60, \frac{y}{z - t}, a \cdot 120\right)\\
\mathbf{if}\;y \leq -9.5 \cdot 10^{+98}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 4.9 \cdot 10^{+55}:\\
\;\;\;\;\mathsf{fma}\left(a, 120, x \cdot \frac{-60}{t - z}\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -9.5000000000000001e98 or 4.90000000000000015e55 < y Initial program 99.7%
Taylor expanded in x around 0
lower-fma.f64N/A
lower-/.f64N/A
lower--.f64N/A
lower-*.f6490.3
Applied rewrites90.3%
if -9.5000000000000001e98 < y < 4.90000000000000015e55Initial program 99.9%
lift-+.f64N/A
+-commutativeN/A
lift-*.f64N/A
lower-fma.f6499.9
lift-/.f64N/A
frac-2negN/A
lower-/.f64N/A
lift-*.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
lower-*.f64N/A
metadata-evalN/A
neg-sub0N/A
lift--.f64N/A
sub-negN/A
+-commutativeN/A
associate--r+N/A
neg-sub0N/A
remove-double-negN/A
lower--.f6499.9
Applied rewrites99.9%
Taylor expanded in x around 0
lower-fma.f64N/A
*-commutativeN/A
lower-*.f6499.9
Applied rewrites99.9%
Taylor expanded in x around inf
associate-*r/N/A
*-commutativeN/A
associate-/l*N/A
metadata-evalN/A
distribute-neg-fracN/A
metadata-evalN/A
associate-*r/N/A
lower-*.f64N/A
associate-*r/N/A
metadata-evalN/A
distribute-neg-fracN/A
metadata-evalN/A
lower-/.f64N/A
lower--.f6494.8
Applied rewrites94.8%
Final simplification93.3%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (fma -60.0 (/ y (- z t)) (* a 120.0))))
(if (<= y -9.5e+98)
t_1
(if (<= y 4.9e+55) (fma x (/ 60.0 (- z t)) (* a 120.0)) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = fma(-60.0, (y / (z - t)), (a * 120.0));
double tmp;
if (y <= -9.5e+98) {
tmp = t_1;
} else if (y <= 4.9e+55) {
tmp = fma(x, (60.0 / (z - t)), (a * 120.0));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a) t_1 = fma(-60.0, Float64(y / Float64(z - t)), Float64(a * 120.0)) tmp = 0.0 if (y <= -9.5e+98) tmp = t_1; elseif (y <= 4.9e+55) tmp = fma(x, Float64(60.0 / Float64(z - t)), Float64(a * 120.0)); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(-60.0 * N[(y / N[(z - t), $MachinePrecision]), $MachinePrecision] + N[(a * 120.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -9.5e+98], t$95$1, If[LessEqual[y, 4.9e+55], N[(x * N[(60.0 / N[(z - t), $MachinePrecision]), $MachinePrecision] + N[(a * 120.0), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-60, \frac{y}{z - t}, a \cdot 120\right)\\
\mathbf{if}\;y \leq -9.5 \cdot 10^{+98}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 4.9 \cdot 10^{+55}:\\
\;\;\;\;\mathsf{fma}\left(x, \frac{60}{z - t}, a \cdot 120\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -9.5000000000000001e98 or 4.90000000000000015e55 < y Initial program 99.7%
Taylor expanded in x around 0
lower-fma.f64N/A
lower-/.f64N/A
lower--.f64N/A
lower-*.f6490.3
Applied rewrites90.3%
if -9.5000000000000001e98 < y < 4.90000000000000015e55Initial program 99.9%
Taylor expanded in z around inf
lower-*.f6463.4
Applied rewrites63.4%
Taylor expanded in y around 0
associate-*r/N/A
*-commutativeN/A
associate-*r/N/A
metadata-evalN/A
associate-*r/N/A
lower-fma.f64N/A
associate-*r/N/A
metadata-evalN/A
lower-/.f64N/A
lower--.f64N/A
lower-*.f6494.8
Applied rewrites94.8%
Final simplification93.3%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (fma -60.0 (/ y (- z t)) (* a 120.0))))
(if (<= y -9.5e+98)
t_1
(if (<= y 4.9e+55) (fma 60.0 (/ x (- z t)) (* a 120.0)) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = fma(-60.0, (y / (z - t)), (a * 120.0));
double tmp;
if (y <= -9.5e+98) {
tmp = t_1;
} else if (y <= 4.9e+55) {
tmp = fma(60.0, (x / (z - t)), (a * 120.0));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a) t_1 = fma(-60.0, Float64(y / Float64(z - t)), Float64(a * 120.0)) tmp = 0.0 if (y <= -9.5e+98) tmp = t_1; elseif (y <= 4.9e+55) tmp = fma(60.0, Float64(x / Float64(z - t)), Float64(a * 120.0)); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(-60.0 * N[(y / N[(z - t), $MachinePrecision]), $MachinePrecision] + N[(a * 120.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -9.5e+98], t$95$1, If[LessEqual[y, 4.9e+55], N[(60.0 * N[(x / N[(z - t), $MachinePrecision]), $MachinePrecision] + N[(a * 120.0), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-60, \frac{y}{z - t}, a \cdot 120\right)\\
\mathbf{if}\;y \leq -9.5 \cdot 10^{+98}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 4.9 \cdot 10^{+55}:\\
\;\;\;\;\mathsf{fma}\left(60, \frac{x}{z - t}, a \cdot 120\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -9.5000000000000001e98 or 4.90000000000000015e55 < y Initial program 99.7%
Taylor expanded in x around 0
lower-fma.f64N/A
lower-/.f64N/A
lower--.f64N/A
lower-*.f6490.3
Applied rewrites90.3%
if -9.5000000000000001e98 < y < 4.90000000000000015e55Initial program 99.9%
Taylor expanded in y around 0
lower-fma.f64N/A
lower-/.f64N/A
lower--.f64N/A
lower-*.f6494.8
Applied rewrites94.8%
Final simplification93.2%
(FPCore (x y z t a) :precision binary64 (if (<= x -2.1e+107) (/ (* x 60.0) (- z t)) (if (<= x 7.4e+112) (fma y (/ 60.0 t) (* a 120.0)) (* x (/ 60.0 (- z t))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (x <= -2.1e+107) {
tmp = (x * 60.0) / (z - t);
} else if (x <= 7.4e+112) {
tmp = fma(y, (60.0 / t), (a * 120.0));
} else {
tmp = x * (60.0 / (z - t));
}
return tmp;
}
function code(x, y, z, t, a) tmp = 0.0 if (x <= -2.1e+107) tmp = Float64(Float64(x * 60.0) / Float64(z - t)); elseif (x <= 7.4e+112) tmp = fma(y, Float64(60.0 / t), Float64(a * 120.0)); else tmp = Float64(x * Float64(60.0 / Float64(z - t))); end return tmp end
code[x_, y_, z_, t_, a_] := If[LessEqual[x, -2.1e+107], N[(N[(x * 60.0), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 7.4e+112], N[(y * N[(60.0 / t), $MachinePrecision] + N[(a * 120.0), $MachinePrecision]), $MachinePrecision], N[(x * N[(60.0 / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2.1 \cdot 10^{+107}:\\
\;\;\;\;\frac{x \cdot 60}{z - t}\\
\mathbf{elif}\;x \leq 7.4 \cdot 10^{+112}:\\
\;\;\;\;\mathsf{fma}\left(y, \frac{60}{t}, a \cdot 120\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{60}{z - t}\\
\end{array}
\end{array}
if x < -2.1e107Initial program 99.9%
Taylor expanded in x around inf
associate-*r/N/A
lower-/.f64N/A
lower-*.f64N/A
lower--.f6461.4
Applied rewrites61.4%
if -2.1e107 < x < 7.40000000000000008e112Initial program 99.8%
Taylor expanded in x around 0
lower-fma.f64N/A
lower-/.f64N/A
lower--.f64N/A
lower-*.f6489.8
Applied rewrites89.8%
Taylor expanded in z around 0
Applied rewrites71.4%
if 7.40000000000000008e112 < x Initial program 99.7%
Taylor expanded in x around inf
associate-*r/N/A
lower-/.f64N/A
lower-*.f64N/A
lower--.f6462.7
Applied rewrites62.7%
Applied rewrites62.8%
Final simplification68.7%
(FPCore (x y z t a) :precision binary64 (fma a 120.0 (/ (* -60.0 (- x y)) (- t z))))
double code(double x, double y, double z, double t, double a) {
return fma(a, 120.0, ((-60.0 * (x - y)) / (t - z)));
}
function code(x, y, z, t, a) return fma(a, 120.0, Float64(Float64(-60.0 * Float64(x - y)) / Float64(t - z))) end
code[x_, y_, z_, t_, a_] := N[(a * 120.0 + N[(N[(-60.0 * N[(x - y), $MachinePrecision]), $MachinePrecision] / N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\mathsf{fma}\left(a, 120, \frac{-60 \cdot \left(x - y\right)}{t - z}\right)
\end{array}
Initial program 99.8%
lift-+.f64N/A
+-commutativeN/A
lift-*.f64N/A
lower-fma.f6499.8
lift-/.f64N/A
frac-2negN/A
lower-/.f64N/A
lift-*.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
lower-*.f64N/A
metadata-evalN/A
neg-sub0N/A
lift--.f64N/A
sub-negN/A
+-commutativeN/A
associate--r+N/A
neg-sub0N/A
remove-double-negN/A
lower--.f6499.8
Applied rewrites99.8%
Final simplification99.8%
(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.8%
Taylor expanded in z around inf
lower-*.f6455.1
Applied rewrites55.1%
Final simplification55.1%
(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 2024227
(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)))