
(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 (* (- x y) (/ 60.0 (- z t)))))
double code(double x, double y, double z, double t, double a) {
return fma(a, 120.0, ((x - y) * (60.0 / (z - t))));
}
function code(x, y, z, t, a) return fma(a, 120.0, Float64(Float64(x - y) * Float64(60.0 / Float64(z - t)))) end
code[x_, y_, z_, t_, a_] := N[(a * 120.0 + N[(N[(x - y), $MachinePrecision] * N[(60.0 / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\mathsf{fma}\left(a, 120, \left(x - y\right) \cdot \frac{60}{z - t}\right)
\end{array}
Initial program 99.8%
+-commutative99.8%
fma-def99.8%
associate-*l/99.8%
*-commutative99.8%
Simplified99.8%
Final simplification99.8%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (/ (* (- x y) 60.0) (- z t))))
(if (<= t_1 -2e+81)
(* 60.0 (/ (- x y) (- z t)))
(if (<= t_1 -4e-243)
(+ (* a 120.0) (* -60.0 (/ (- x y) t)))
(if (<= t_1 1e-180)
(* a 120.0)
(if (<= t_1 5000000000000.0)
(+ (* a 120.0) (* x (/ 60.0 z)))
t_1))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = ((x - y) * 60.0) / (z - t);
double tmp;
if (t_1 <= -2e+81) {
tmp = 60.0 * ((x - y) / (z - t));
} else if (t_1 <= -4e-243) {
tmp = (a * 120.0) + (-60.0 * ((x - y) / t));
} else if (t_1 <= 1e-180) {
tmp = a * 120.0;
} else if (t_1 <= 5000000000000.0) {
tmp = (a * 120.0) + (x * (60.0 / z));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = ((x - y) * 60.0d0) / (z - t)
if (t_1 <= (-2d+81)) then
tmp = 60.0d0 * ((x - y) / (z - t))
else if (t_1 <= (-4d-243)) then
tmp = (a * 120.0d0) + ((-60.0d0) * ((x - y) / t))
else if (t_1 <= 1d-180) then
tmp = a * 120.0d0
else if (t_1 <= 5000000000000.0d0) then
tmp = (a * 120.0d0) + (x * (60.0d0 / z))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = ((x - y) * 60.0) / (z - t);
double tmp;
if (t_1 <= -2e+81) {
tmp = 60.0 * ((x - y) / (z - t));
} else if (t_1 <= -4e-243) {
tmp = (a * 120.0) + (-60.0 * ((x - y) / t));
} else if (t_1 <= 1e-180) {
tmp = a * 120.0;
} else if (t_1 <= 5000000000000.0) {
tmp = (a * 120.0) + (x * (60.0 / z));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = ((x - y) * 60.0) / (z - t) tmp = 0 if t_1 <= -2e+81: tmp = 60.0 * ((x - y) / (z - t)) elif t_1 <= -4e-243: tmp = (a * 120.0) + (-60.0 * ((x - y) / t)) elif t_1 <= 1e-180: tmp = a * 120.0 elif t_1 <= 5000000000000.0: tmp = (a * 120.0) + (x * (60.0 / z)) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(Float64(Float64(x - y) * 60.0) / Float64(z - t)) tmp = 0.0 if (t_1 <= -2e+81) tmp = Float64(60.0 * Float64(Float64(x - y) / Float64(z - t))); elseif (t_1 <= -4e-243) tmp = Float64(Float64(a * 120.0) + Float64(-60.0 * Float64(Float64(x - y) / t))); elseif (t_1 <= 1e-180) tmp = Float64(a * 120.0); elseif (t_1 <= 5000000000000.0) tmp = Float64(Float64(a * 120.0) + Float64(x * Float64(60.0 / z))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = ((x - y) * 60.0) / (z - t); tmp = 0.0; if (t_1 <= -2e+81) tmp = 60.0 * ((x - y) / (z - t)); elseif (t_1 <= -4e-243) tmp = (a * 120.0) + (-60.0 * ((x - y) / t)); elseif (t_1 <= 1e-180) tmp = a * 120.0; elseif (t_1 <= 5000000000000.0) tmp = (a * 120.0) + (x * (60.0 / z)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(N[(x - y), $MachinePrecision] * 60.0), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -2e+81], N[(60.0 * N[(N[(x - y), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, -4e-243], N[(N[(a * 120.0), $MachinePrecision] + N[(-60.0 * N[(N[(x - y), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 1e-180], N[(a * 120.0), $MachinePrecision], If[LessEqual[t$95$1, 5000000000000.0], N[(N[(a * 120.0), $MachinePrecision] + N[(x * N[(60.0 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{\left(x - y\right) \cdot 60}{z - t}\\
\mathbf{if}\;t_1 \leq -2 \cdot 10^{+81}:\\
\;\;\;\;60 \cdot \frac{x - y}{z - t}\\
\mathbf{elif}\;t_1 \leq -4 \cdot 10^{-243}:\\
\;\;\;\;a \cdot 120 + -60 \cdot \frac{x - y}{t}\\
\mathbf{elif}\;t_1 \leq 10^{-180}:\\
\;\;\;\;a \cdot 120\\
\mathbf{elif}\;t_1 \leq 5000000000000:\\
\;\;\;\;a \cdot 120 + x \cdot \frac{60}{z}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if (/.f64 (*.f64 60 (-.f64 x y)) (-.f64 z t)) < -1.99999999999999984e81Initial program 99.7%
associate-/l*99.6%
Simplified99.6%
Taylor expanded in a around 0 86.5%
if -1.99999999999999984e81 < (/.f64 (*.f64 60 (-.f64 x y)) (-.f64 z t)) < -3.99999999999999998e-243Initial program 99.8%
associate-/l*99.8%
Simplified99.8%
Taylor expanded in z around 0 75.3%
if -3.99999999999999998e-243 < (/.f64 (*.f64 60 (-.f64 x y)) (-.f64 z t)) < 1e-180Initial program 100.0%
associate-/l*100.0%
Simplified100.0%
Taylor expanded in z around inf 95.0%
if 1e-180 < (/.f64 (*.f64 60 (-.f64 x y)) (-.f64 z t)) < 5e12Initial program 99.8%
associate-/l*99.8%
Simplified99.8%
Taylor expanded in x around inf 88.4%
associate-*r/88.5%
associate-*l/88.5%
*-commutative88.5%
Simplified88.5%
Taylor expanded in z around inf 76.4%
if 5e12 < (/.f64 (*.f64 60 (-.f64 x y)) (-.f64 z t)) Initial program 99.7%
associate-/l*99.7%
Simplified99.7%
Taylor expanded in a around 0 84.2%
associate-*r/84.4%
Applied egg-rr84.4%
Final simplification82.1%
(FPCore (x y z t a)
:precision binary64
(if (<= (* a 120.0) -5e+72)
(+ (* a 120.0) (* -60.0 (/ y z)))
(if (<= (* a 120.0) 200000000000.0)
(* 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+72) {
tmp = (a * 120.0) + (-60.0 * (y / z));
} else if ((a * 120.0) <= 200000000000.0) {
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+72)) then
tmp = (a * 120.0d0) + ((-60.0d0) * (y / z))
else if ((a * 120.0d0) <= 200000000000.0d0) 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+72) {
tmp = (a * 120.0) + (-60.0 * (y / z));
} else if ((a * 120.0) <= 200000000000.0) {
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+72: tmp = (a * 120.0) + (-60.0 * (y / z)) elif (a * 120.0) <= 200000000000.0: 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+72) tmp = Float64(Float64(a * 120.0) + Float64(-60.0 * Float64(y / z))); elseif (Float64(a * 120.0) <= 200000000000.0) 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+72) tmp = (a * 120.0) + (-60.0 * (y / z)); elseif ((a * 120.0) <= 200000000000.0) 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+72], N[(N[(a * 120.0), $MachinePrecision] + N[(-60.0 * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(a * 120.0), $MachinePrecision], 200000000000.0], 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^{+72}:\\
\;\;\;\;a \cdot 120 + -60 \cdot \frac{y}{z}\\
\mathbf{elif}\;a \cdot 120 \leq 200000000000:\\
\;\;\;\;60 \cdot \frac{x - y}{z - t}\\
\mathbf{else}:\\
\;\;\;\;a \cdot 120\\
\end{array}
\end{array}
if (*.f64 a 120) < -4.99999999999999992e72Initial program 99.9%
Taylor expanded in x around 0 91.1%
Taylor expanded in z around inf 79.6%
if -4.99999999999999992e72 < (*.f64 a 120) < 2e11Initial program 99.7%
associate-/l*99.7%
Simplified99.7%
Taylor expanded in a around 0 74.3%
if 2e11 < (*.f64 a 120) Initial program 99.9%
associate-/l*99.8%
Simplified99.8%
Taylor expanded in z around inf 75.1%
Final simplification75.6%
(FPCore (x y z t a)
:precision binary64
(if (<= (* a 120.0) -5e+72)
(+ (* a 120.0) (* 60.0 (/ y t)))
(if (<= (* a 120.0) 200000000000.0)
(* 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+72) {
tmp = (a * 120.0) + (60.0 * (y / t));
} else if ((a * 120.0) <= 200000000000.0) {
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+72)) then
tmp = (a * 120.0d0) + (60.0d0 * (y / t))
else if ((a * 120.0d0) <= 200000000000.0d0) 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+72) {
tmp = (a * 120.0) + (60.0 * (y / t));
} else if ((a * 120.0) <= 200000000000.0) {
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+72: tmp = (a * 120.0) + (60.0 * (y / t)) elif (a * 120.0) <= 200000000000.0: 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+72) tmp = Float64(Float64(a * 120.0) + Float64(60.0 * Float64(y / t))); elseif (Float64(a * 120.0) <= 200000000000.0) 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+72) tmp = (a * 120.0) + (60.0 * (y / t)); elseif ((a * 120.0) <= 200000000000.0) 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+72], N[(N[(a * 120.0), $MachinePrecision] + N[(60.0 * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(a * 120.0), $MachinePrecision], 200000000000.0], 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^{+72}:\\
\;\;\;\;a \cdot 120 + 60 \cdot \frac{y}{t}\\
\mathbf{elif}\;a \cdot 120 \leq 200000000000:\\
\;\;\;\;60 \cdot \frac{x - y}{z - t}\\
\mathbf{else}:\\
\;\;\;\;a \cdot 120\\
\end{array}
\end{array}
if (*.f64 a 120) < -4.99999999999999992e72Initial program 99.9%
Taylor expanded in x around 0 91.1%
Taylor expanded in z around 0 82.1%
if -4.99999999999999992e72 < (*.f64 a 120) < 2e11Initial program 99.7%
associate-/l*99.7%
Simplified99.7%
Taylor expanded in a around 0 74.3%
if 2e11 < (*.f64 a 120) Initial program 99.9%
associate-/l*99.8%
Simplified99.8%
Taylor expanded in z around inf 75.1%
Final simplification76.1%
(FPCore (x y z t a)
:precision binary64
(if (<= (* a 120.0) -5e+72)
(+ (* a 120.0) (* 60.0 (/ y t)))
(if (<= (* a 120.0) 200000000000.0)
(/ 60.0 (/ (- z t) (- x y)))
(* a 120.0))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a * 120.0) <= -5e+72) {
tmp = (a * 120.0) + (60.0 * (y / t));
} else if ((a * 120.0) <= 200000000000.0) {
tmp = 60.0 / ((z - t) / (x - y));
} 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+72)) then
tmp = (a * 120.0d0) + (60.0d0 * (y / t))
else if ((a * 120.0d0) <= 200000000000.0d0) then
tmp = 60.0d0 / ((z - t) / (x - y))
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+72) {
tmp = (a * 120.0) + (60.0 * (y / t));
} else if ((a * 120.0) <= 200000000000.0) {
tmp = 60.0 / ((z - t) / (x - y));
} else {
tmp = a * 120.0;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a * 120.0) <= -5e+72: tmp = (a * 120.0) + (60.0 * (y / t)) elif (a * 120.0) <= 200000000000.0: tmp = 60.0 / ((z - t) / (x - y)) else: tmp = a * 120.0 return tmp
function code(x, y, z, t, a) tmp = 0.0 if (Float64(a * 120.0) <= -5e+72) tmp = Float64(Float64(a * 120.0) + Float64(60.0 * Float64(y / t))); elseif (Float64(a * 120.0) <= 200000000000.0) tmp = Float64(60.0 / Float64(Float64(z - t) / Float64(x - y))); 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+72) tmp = (a * 120.0) + (60.0 * (y / t)); elseif ((a * 120.0) <= 200000000000.0) tmp = 60.0 / ((z - t) / (x - y)); else tmp = a * 120.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[N[(a * 120.0), $MachinePrecision], -5e+72], N[(N[(a * 120.0), $MachinePrecision] + N[(60.0 * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(a * 120.0), $MachinePrecision], 200000000000.0], N[(60.0 / N[(N[(z - t), $MachinePrecision] / N[(x - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * 120.0), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \cdot 120 \leq -5 \cdot 10^{+72}:\\
\;\;\;\;a \cdot 120 + 60 \cdot \frac{y}{t}\\
\mathbf{elif}\;a \cdot 120 \leq 200000000000:\\
\;\;\;\;\frac{60}{\frac{z - t}{x - y}}\\
\mathbf{else}:\\
\;\;\;\;a \cdot 120\\
\end{array}
\end{array}
if (*.f64 a 120) < -4.99999999999999992e72Initial program 99.9%
Taylor expanded in x around 0 91.1%
Taylor expanded in z around 0 82.1%
if -4.99999999999999992e72 < (*.f64 a 120) < 2e11Initial program 99.7%
associate-/l*99.7%
Simplified99.7%
Taylor expanded in a around 0 74.3%
clear-num74.3%
un-div-inv74.3%
Applied egg-rr74.3%
if 2e11 < (*.f64 a 120) Initial program 99.9%
associate-/l*99.8%
Simplified99.8%
Taylor expanded in z around inf 75.1%
Final simplification76.1%
(FPCore (x y z t a)
:precision binary64
(if (<= (* a 120.0) -5e+72)
(+ (* a 120.0) (* 60.0 (/ y t)))
(if (<= (* a 120.0) 200000000000.0)
(/ (* (- 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 * 120.0) <= -5e+72) {
tmp = (a * 120.0) + (60.0 * (y / t));
} else if ((a * 120.0) <= 200000000000.0) {
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 * 120.0d0) <= (-5d+72)) then
tmp = (a * 120.0d0) + (60.0d0 * (y / t))
else if ((a * 120.0d0) <= 200000000000.0d0) 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 * 120.0) <= -5e+72) {
tmp = (a * 120.0) + (60.0 * (y / t));
} else if ((a * 120.0) <= 200000000000.0) {
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 * 120.0) <= -5e+72: tmp = (a * 120.0) + (60.0 * (y / t)) elif (a * 120.0) <= 200000000000.0: 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 (Float64(a * 120.0) <= -5e+72) tmp = Float64(Float64(a * 120.0) + Float64(60.0 * Float64(y / t))); elseif (Float64(a * 120.0) <= 200000000000.0) tmp = Float64(Float64(Float64(x - y) * 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 * 120.0) <= -5e+72) tmp = (a * 120.0) + (60.0 * (y / t)); elseif ((a * 120.0) <= 200000000000.0) 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[N[(a * 120.0), $MachinePrecision], -5e+72], N[(N[(a * 120.0), $MachinePrecision] + N[(60.0 * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(a * 120.0), $MachinePrecision], 200000000000.0], N[(N[(N[(x - y), $MachinePrecision] * 60.0), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision], N[(a * 120.0), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \cdot 120 \leq -5 \cdot 10^{+72}:\\
\;\;\;\;a \cdot 120 + 60 \cdot \frac{y}{t}\\
\mathbf{elif}\;a \cdot 120 \leq 200000000000:\\
\;\;\;\;\frac{\left(x - y\right) \cdot 60}{z - t}\\
\mathbf{else}:\\
\;\;\;\;a \cdot 120\\
\end{array}
\end{array}
if (*.f64 a 120) < -4.99999999999999992e72Initial program 99.9%
Taylor expanded in x around 0 91.1%
Taylor expanded in z around 0 82.1%
if -4.99999999999999992e72 < (*.f64 a 120) < 2e11Initial program 99.7%
associate-/l*99.7%
Simplified99.7%
Taylor expanded in a around 0 74.3%
associate-*r/74.3%
Applied egg-rr74.3%
if 2e11 < (*.f64 a 120) Initial program 99.9%
associate-/l*99.8%
Simplified99.8%
Taylor expanded in z around inf 75.1%
Final simplification76.2%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* -60.0 (/ y (- z t)))))
(if (<= y -8.5e+168)
t_1
(if (<= y -6.8e-65)
(* a 120.0)
(if (<= y -2.3e-95)
(* 60.0 (/ x (- z t)))
(if (<= y 2.15e+159) (* a 120.0) t_1))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = -60.0 * (y / (z - t));
double tmp;
if (y <= -8.5e+168) {
tmp = t_1;
} else if (y <= -6.8e-65) {
tmp = a * 120.0;
} else if (y <= -2.3e-95) {
tmp = 60.0 * (x / (z - t));
} else if (y <= 2.15e+159) {
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) :: tmp
t_1 = (-60.0d0) * (y / (z - t))
if (y <= (-8.5d+168)) then
tmp = t_1
else if (y <= (-6.8d-65)) then
tmp = a * 120.0d0
else if (y <= (-2.3d-95)) then
tmp = 60.0d0 * (x / (z - t))
else if (y <= 2.15d+159) 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 * (y / (z - t));
double tmp;
if (y <= -8.5e+168) {
tmp = t_1;
} else if (y <= -6.8e-65) {
tmp = a * 120.0;
} else if (y <= -2.3e-95) {
tmp = 60.0 * (x / (z - t));
} else if (y <= 2.15e+159) {
tmp = a * 120.0;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = -60.0 * (y / (z - t)) tmp = 0 if y <= -8.5e+168: tmp = t_1 elif y <= -6.8e-65: tmp = a * 120.0 elif y <= -2.3e-95: tmp = 60.0 * (x / (z - t)) elif y <= 2.15e+159: tmp = a * 120.0 else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(-60.0 * Float64(y / Float64(z - t))) tmp = 0.0 if (y <= -8.5e+168) tmp = t_1; elseif (y <= -6.8e-65) tmp = Float64(a * 120.0); elseif (y <= -2.3e-95) tmp = Float64(60.0 * Float64(x / Float64(z - t))); elseif (y <= 2.15e+159) 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 * (y / (z - t)); tmp = 0.0; if (y <= -8.5e+168) tmp = t_1; elseif (y <= -6.8e-65) tmp = a * 120.0; elseif (y <= -2.3e-95) tmp = 60.0 * (x / (z - t)); elseif (y <= 2.15e+159) 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[(y / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -8.5e+168], t$95$1, If[LessEqual[y, -6.8e-65], N[(a * 120.0), $MachinePrecision], If[LessEqual[y, -2.3e-95], N[(60.0 * N[(x / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.15e+159], N[(a * 120.0), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := -60 \cdot \frac{y}{z - t}\\
\mathbf{if}\;y \leq -8.5 \cdot 10^{+168}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq -6.8 \cdot 10^{-65}:\\
\;\;\;\;a \cdot 120\\
\mathbf{elif}\;y \leq -2.3 \cdot 10^{-95}:\\
\;\;\;\;60 \cdot \frac{x}{z - t}\\
\mathbf{elif}\;y \leq 2.15 \cdot 10^{+159}:\\
\;\;\;\;a \cdot 120\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if y < -8.50000000000000069e168 or 2.1500000000000001e159 < y Initial program 99.8%
associate-/l*99.6%
Simplified99.6%
Taylor expanded in a around 0 78.6%
Taylor expanded in x around 0 70.6%
if -8.50000000000000069e168 < y < -6.79999999999999973e-65 or -2.29999999999999999e-95 < y < 2.1500000000000001e159Initial program 99.8%
associate-/l*99.8%
Simplified99.8%
Taylor expanded in z around inf 60.2%
if -6.79999999999999973e-65 < y < -2.29999999999999999e-95Initial program 100.0%
associate-/l*99.4%
Simplified99.4%
Taylor expanded in a around 0 87.8%
Taylor expanded in x around inf 75.8%
Final simplification63.1%
(FPCore (x y z t a)
:precision binary64
(if (<= y -2e+168)
(/ (* y -60.0) (- z t))
(if (<= y -1.8e-69)
(* a 120.0)
(if (<= y -1.6e-93)
(* 60.0 (/ x (- z t)))
(if (<= y 7.2e+160) (* a 120.0) (* -60.0 (/ y (- z t))))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (y <= -2e+168) {
tmp = (y * -60.0) / (z - t);
} else if (y <= -1.8e-69) {
tmp = a * 120.0;
} else if (y <= -1.6e-93) {
tmp = 60.0 * (x / (z - t));
} else if (y <= 7.2e+160) {
tmp = a * 120.0;
} else {
tmp = -60.0 * (y / (z - t));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (y <= (-2d+168)) then
tmp = (y * (-60.0d0)) / (z - t)
else if (y <= (-1.8d-69)) then
tmp = a * 120.0d0
else if (y <= (-1.6d-93)) then
tmp = 60.0d0 * (x / (z - t))
else if (y <= 7.2d+160) then
tmp = a * 120.0d0
else
tmp = (-60.0d0) * (y / (z - t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (y <= -2e+168) {
tmp = (y * -60.0) / (z - t);
} else if (y <= -1.8e-69) {
tmp = a * 120.0;
} else if (y <= -1.6e-93) {
tmp = 60.0 * (x / (z - t));
} else if (y <= 7.2e+160) {
tmp = a * 120.0;
} else {
tmp = -60.0 * (y / (z - t));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if y <= -2e+168: tmp = (y * -60.0) / (z - t) elif y <= -1.8e-69: tmp = a * 120.0 elif y <= -1.6e-93: tmp = 60.0 * (x / (z - t)) elif y <= 7.2e+160: tmp = a * 120.0 else: tmp = -60.0 * (y / (z - t)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (y <= -2e+168) tmp = Float64(Float64(y * -60.0) / Float64(z - t)); elseif (y <= -1.8e-69) tmp = Float64(a * 120.0); elseif (y <= -1.6e-93) tmp = Float64(60.0 * Float64(x / Float64(z - t))); elseif (y <= 7.2e+160) tmp = Float64(a * 120.0); else tmp = Float64(-60.0 * Float64(y / Float64(z - t))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (y <= -2e+168) tmp = (y * -60.0) / (z - t); elseif (y <= -1.8e-69) tmp = a * 120.0; elseif (y <= -1.6e-93) tmp = 60.0 * (x / (z - t)); elseif (y <= 7.2e+160) tmp = a * 120.0; else tmp = -60.0 * (y / (z - t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[y, -2e+168], N[(N[(y * -60.0), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -1.8e-69], N[(a * 120.0), $MachinePrecision], If[LessEqual[y, -1.6e-93], N[(60.0 * N[(x / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 7.2e+160], N[(a * 120.0), $MachinePrecision], N[(-60.0 * N[(y / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2 \cdot 10^{+168}:\\
\;\;\;\;\frac{y \cdot -60}{z - t}\\
\mathbf{elif}\;y \leq -1.8 \cdot 10^{-69}:\\
\;\;\;\;a \cdot 120\\
\mathbf{elif}\;y \leq -1.6 \cdot 10^{-93}:\\
\;\;\;\;60 \cdot \frac{x}{z - t}\\
\mathbf{elif}\;y \leq 7.2 \cdot 10^{+160}:\\
\;\;\;\;a \cdot 120\\
\mathbf{else}:\\
\;\;\;\;-60 \cdot \frac{y}{z - t}\\
\end{array}
\end{array}
if y < -1.9999999999999999e168Initial program 99.8%
associate-/l*99.7%
Simplified99.7%
Taylor expanded in a around 0 77.3%
associate-*r/77.3%
Applied egg-rr77.3%
Taylor expanded in x around 0 74.9%
if -1.9999999999999999e168 < y < -1.80000000000000009e-69 or -1.5999999999999999e-93 < y < 7.20000000000000042e160Initial program 99.8%
associate-/l*99.8%
Simplified99.8%
Taylor expanded in z around inf 60.2%
if -1.80000000000000009e-69 < y < -1.5999999999999999e-93Initial program 100.0%
associate-/l*99.4%
Simplified99.4%
Taylor expanded in a around 0 87.8%
Taylor expanded in x around inf 75.8%
if 7.20000000000000042e160 < y Initial program 99.7%
associate-/l*99.6%
Simplified99.6%
Taylor expanded in a around 0 80.7%
Taylor expanded in x around 0 63.5%
Final simplification63.1%
(FPCore (x y z t a)
:precision binary64
(if (<= y -1.95e+167)
(/ (* y -60.0) (- z t))
(if (<= y -1.1e-67)
(* a 120.0)
(if (<= y -5e-93)
(/ (* x 60.0) (- z t))
(if (<= y 1.25e+151) (* a 120.0) (* -60.0 (/ y (- z t))))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (y <= -1.95e+167) {
tmp = (y * -60.0) / (z - t);
} else if (y <= -1.1e-67) {
tmp = a * 120.0;
} else if (y <= -5e-93) {
tmp = (x * 60.0) / (z - t);
} else if (y <= 1.25e+151) {
tmp = a * 120.0;
} else {
tmp = -60.0 * (y / (z - t));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (y <= (-1.95d+167)) then
tmp = (y * (-60.0d0)) / (z - t)
else if (y <= (-1.1d-67)) then
tmp = a * 120.0d0
else if (y <= (-5d-93)) then
tmp = (x * 60.0d0) / (z - t)
else if (y <= 1.25d+151) then
tmp = a * 120.0d0
else
tmp = (-60.0d0) * (y / (z - t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (y <= -1.95e+167) {
tmp = (y * -60.0) / (z - t);
} else if (y <= -1.1e-67) {
tmp = a * 120.0;
} else if (y <= -5e-93) {
tmp = (x * 60.0) / (z - t);
} else if (y <= 1.25e+151) {
tmp = a * 120.0;
} else {
tmp = -60.0 * (y / (z - t));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if y <= -1.95e+167: tmp = (y * -60.0) / (z - t) elif y <= -1.1e-67: tmp = a * 120.0 elif y <= -5e-93: tmp = (x * 60.0) / (z - t) elif y <= 1.25e+151: tmp = a * 120.0 else: tmp = -60.0 * (y / (z - t)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (y <= -1.95e+167) tmp = Float64(Float64(y * -60.0) / Float64(z - t)); elseif (y <= -1.1e-67) tmp = Float64(a * 120.0); elseif (y <= -5e-93) tmp = Float64(Float64(x * 60.0) / Float64(z - t)); elseif (y <= 1.25e+151) tmp = Float64(a * 120.0); else tmp = Float64(-60.0 * Float64(y / Float64(z - t))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (y <= -1.95e+167) tmp = (y * -60.0) / (z - t); elseif (y <= -1.1e-67) tmp = a * 120.0; elseif (y <= -5e-93) tmp = (x * 60.0) / (z - t); elseif (y <= 1.25e+151) tmp = a * 120.0; else tmp = -60.0 * (y / (z - t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[y, -1.95e+167], N[(N[(y * -60.0), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -1.1e-67], N[(a * 120.0), $MachinePrecision], If[LessEqual[y, -5e-93], N[(N[(x * 60.0), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.25e+151], N[(a * 120.0), $MachinePrecision], N[(-60.0 * N[(y / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.95 \cdot 10^{+167}:\\
\;\;\;\;\frac{y \cdot -60}{z - t}\\
\mathbf{elif}\;y \leq -1.1 \cdot 10^{-67}:\\
\;\;\;\;a \cdot 120\\
\mathbf{elif}\;y \leq -5 \cdot 10^{-93}:\\
\;\;\;\;\frac{x \cdot 60}{z - t}\\
\mathbf{elif}\;y \leq 1.25 \cdot 10^{+151}:\\
\;\;\;\;a \cdot 120\\
\mathbf{else}:\\
\;\;\;\;-60 \cdot \frac{y}{z - t}\\
\end{array}
\end{array}
if y < -1.9499999999999999e167Initial program 99.8%
associate-/l*99.7%
Simplified99.7%
Taylor expanded in a around 0 77.3%
associate-*r/77.3%
Applied egg-rr77.3%
Taylor expanded in x around 0 74.9%
if -1.9499999999999999e167 < y < -1.1000000000000001e-67 or -4.99999999999999994e-93 < y < 1.2500000000000001e151Initial program 99.8%
associate-/l*99.8%
Simplified99.8%
Taylor expanded in z around inf 60.2%
if -1.1000000000000001e-67 < y < -4.99999999999999994e-93Initial program 100.0%
associate-/l*99.4%
Simplified99.4%
Taylor expanded in a around 0 87.8%
associate-*r/88.2%
Applied egg-rr88.2%
Taylor expanded in x around inf 76.2%
*-commutative76.2%
Simplified76.2%
if 1.2500000000000001e151 < y Initial program 99.7%
associate-/l*99.6%
Simplified99.6%
Taylor expanded in a around 0 80.7%
Taylor expanded in x around 0 63.5%
Final simplification63.1%
(FPCore (x y z t a) :precision binary64 (if (or (<= y -2.9e+169) (not (<= y 2.8e+157))) (/ (* (- x y) 60.0) (- z t)) (+ (* a 120.0) (* x (/ 60.0 (- z t))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((y <= -2.9e+169) || !(y <= 2.8e+157)) {
tmp = ((x - y) * 60.0) / (z - t);
} else {
tmp = (a * 120.0) + (x * (60.0 / (z - t)));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((y <= (-2.9d+169)) .or. (.not. (y <= 2.8d+157))) then
tmp = ((x - y) * 60.0d0) / (z - t)
else
tmp = (a * 120.0d0) + (x * (60.0d0 / (z - t)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((y <= -2.9e+169) || !(y <= 2.8e+157)) {
tmp = ((x - y) * 60.0) / (z - t);
} else {
tmp = (a * 120.0) + (x * (60.0 / (z - t)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (y <= -2.9e+169) or not (y <= 2.8e+157): tmp = ((x - y) * 60.0) / (z - t) else: tmp = (a * 120.0) + (x * (60.0 / (z - t))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((y <= -2.9e+169) || !(y <= 2.8e+157)) tmp = Float64(Float64(Float64(x - y) * 60.0) / Float64(z - t)); else tmp = Float64(Float64(a * 120.0) + Float64(x * Float64(60.0 / Float64(z - t)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((y <= -2.9e+169) || ~((y <= 2.8e+157))) tmp = ((x - y) * 60.0) / (z - t); else tmp = (a * 120.0) + (x * (60.0 / (z - t))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[y, -2.9e+169], N[Not[LessEqual[y, 2.8e+157]], $MachinePrecision]], N[(N[(N[(x - y), $MachinePrecision] * 60.0), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision], N[(N[(a * 120.0), $MachinePrecision] + N[(x * N[(60.0 / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.9 \cdot 10^{+169} \lor \neg \left(y \leq 2.8 \cdot 10^{+157}\right):\\
\;\;\;\;\frac{\left(x - y\right) \cdot 60}{z - t}\\
\mathbf{else}:\\
\;\;\;\;a \cdot 120 + x \cdot \frac{60}{z - t}\\
\end{array}
\end{array}
if y < -2.9000000000000001e169 or 2.8000000000000003e157 < y Initial program 99.8%
associate-/l*99.6%
Simplified99.6%
Taylor expanded in a around 0 78.6%
associate-*r/78.6%
Applied egg-rr78.6%
if -2.9000000000000001e169 < y < 2.8000000000000003e157Initial program 99.8%
associate-/l*99.8%
Simplified99.8%
Taylor expanded in x around inf 88.4%
associate-*r/88.5%
associate-*l/88.4%
*-commutative88.4%
Simplified88.4%
Final simplification86.2%
(FPCore (x y z t a) :precision binary64 (if (or (<= y -1.8e+167) (not (<= y 26.0))) (+ (* a 120.0) (* y (/ -60.0 (- z t)))) (+ (* a 120.0) (* x (/ 60.0 (- z t))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((y <= -1.8e+167) || !(y <= 26.0)) {
tmp = (a * 120.0) + (y * (-60.0 / (z - t)));
} else {
tmp = (a * 120.0) + (x * (60.0 / (z - t)));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((y <= (-1.8d+167)) .or. (.not. (y <= 26.0d0))) then
tmp = (a * 120.0d0) + (y * ((-60.0d0) / (z - t)))
else
tmp = (a * 120.0d0) + (x * (60.0d0 / (z - t)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((y <= -1.8e+167) || !(y <= 26.0)) {
tmp = (a * 120.0) + (y * (-60.0 / (z - t)));
} else {
tmp = (a * 120.0) + (x * (60.0 / (z - t)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (y <= -1.8e+167) or not (y <= 26.0): tmp = (a * 120.0) + (y * (-60.0 / (z - t))) else: tmp = (a * 120.0) + (x * (60.0 / (z - t))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((y <= -1.8e+167) || !(y <= 26.0)) tmp = Float64(Float64(a * 120.0) + Float64(y * Float64(-60.0 / Float64(z - t)))); else tmp = Float64(Float64(a * 120.0) + Float64(x * Float64(60.0 / Float64(z - t)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((y <= -1.8e+167) || ~((y <= 26.0))) tmp = (a * 120.0) + (y * (-60.0 / (z - t))); else tmp = (a * 120.0) + (x * (60.0 / (z - t))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[y, -1.8e+167], N[Not[LessEqual[y, 26.0]], $MachinePrecision]], N[(N[(a * 120.0), $MachinePrecision] + N[(y * N[(-60.0 / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(a * 120.0), $MachinePrecision] + N[(x * N[(60.0 / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.8 \cdot 10^{+167} \lor \neg \left(y \leq 26\right):\\
\;\;\;\;a \cdot 120 + y \cdot \frac{-60}{z - t}\\
\mathbf{else}:\\
\;\;\;\;a \cdot 120 + x \cdot \frac{60}{z - t}\\
\end{array}
\end{array}
if y < -1.80000000000000012e167 or 26 < y Initial program 99.8%
add-cube-cbrt98.8%
pow398.8%
Applied egg-rr98.8%
Taylor expanded in x around 0 90.8%
associate-*r/90.8%
*-commutative90.8%
associate-*r/90.9%
Simplified90.9%
if -1.80000000000000012e167 < y < 26Initial program 99.8%
associate-/l*99.8%
Simplified99.8%
Taylor expanded in x around inf 92.2%
associate-*r/92.3%
associate-*l/92.2%
*-commutative92.2%
Simplified92.2%
Final simplification91.8%
(FPCore (x y z t a) :precision binary64 (if (or (<= y -1.8e+167) (not (<= y 26.0))) (+ (* a 120.0) (* y (/ -60.0 (- z t)))) (+ (* a 120.0) (/ (* x 60.0) (- z t)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((y <= -1.8e+167) || !(y <= 26.0)) {
tmp = (a * 120.0) + (y * (-60.0 / (z - t)));
} else {
tmp = (a * 120.0) + ((x * 60.0) / (z - t));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((y <= (-1.8d+167)) .or. (.not. (y <= 26.0d0))) then
tmp = (a * 120.0d0) + (y * ((-60.0d0) / (z - t)))
else
tmp = (a * 120.0d0) + ((x * 60.0d0) / (z - t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((y <= -1.8e+167) || !(y <= 26.0)) {
tmp = (a * 120.0) + (y * (-60.0 / (z - t)));
} else {
tmp = (a * 120.0) + ((x * 60.0) / (z - t));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (y <= -1.8e+167) or not (y <= 26.0): tmp = (a * 120.0) + (y * (-60.0 / (z - t))) else: tmp = (a * 120.0) + ((x * 60.0) / (z - t)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((y <= -1.8e+167) || !(y <= 26.0)) tmp = Float64(Float64(a * 120.0) + Float64(y * Float64(-60.0 / Float64(z - t)))); else tmp = Float64(Float64(a * 120.0) + Float64(Float64(x * 60.0) / Float64(z - t))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((y <= -1.8e+167) || ~((y <= 26.0))) tmp = (a * 120.0) + (y * (-60.0 / (z - t))); else tmp = (a * 120.0) + ((x * 60.0) / (z - t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[y, -1.8e+167], N[Not[LessEqual[y, 26.0]], $MachinePrecision]], N[(N[(a * 120.0), $MachinePrecision] + N[(y * N[(-60.0 / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(a * 120.0), $MachinePrecision] + N[(N[(x * 60.0), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.8 \cdot 10^{+167} \lor \neg \left(y \leq 26\right):\\
\;\;\;\;a \cdot 120 + y \cdot \frac{-60}{z - t}\\
\mathbf{else}:\\
\;\;\;\;a \cdot 120 + \frac{x \cdot 60}{z - t}\\
\end{array}
\end{array}
if y < -1.80000000000000012e167 or 26 < y Initial program 99.8%
add-cube-cbrt98.8%
pow398.8%
Applied egg-rr98.8%
Taylor expanded in x around 0 90.8%
associate-*r/90.8%
*-commutative90.8%
associate-*r/90.9%
Simplified90.9%
if -1.80000000000000012e167 < y < 26Initial program 99.8%
associate-/l*99.8%
Simplified99.8%
Taylor expanded in x around inf 92.2%
associate-*r/92.3%
*-commutative92.3%
Simplified92.3%
Final simplification91.8%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -1.6e+60) (not (<= a 130000000000.0))) (* a 120.0) (* 60.0 (/ (- x y) (- z t)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -1.6e+60) || !(a <= 130000000000.0)) {
tmp = a * 120.0;
} else {
tmp = 60.0 * ((x - y) / (z - t));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((a <= (-1.6d+60)) .or. (.not. (a <= 130000000000.0d0))) then
tmp = a * 120.0d0
else
tmp = 60.0d0 * ((x - y) / (z - t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -1.6e+60) || !(a <= 130000000000.0)) {
tmp = a * 120.0;
} else {
tmp = 60.0 * ((x - y) / (z - t));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -1.6e+60) or not (a <= 130000000000.0): tmp = a * 120.0 else: tmp = 60.0 * ((x - y) / (z - t)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -1.6e+60) || !(a <= 130000000000.0)) tmp = Float64(a * 120.0); else tmp = Float64(60.0 * Float64(Float64(x - y) / Float64(z - t))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a <= -1.6e+60) || ~((a <= 130000000000.0))) tmp = a * 120.0; else tmp = 60.0 * ((x - y) / (z - t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -1.6e+60], N[Not[LessEqual[a, 130000000000.0]], $MachinePrecision]], N[(a * 120.0), $MachinePrecision], N[(60.0 * N[(N[(x - y), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.6 \cdot 10^{+60} \lor \neg \left(a \leq 130000000000\right):\\
\;\;\;\;a \cdot 120\\
\mathbf{else}:\\
\;\;\;\;60 \cdot \frac{x - y}{z - t}\\
\end{array}
\end{array}
if a < -1.59999999999999995e60 or 1.3e11 < a Initial program 99.9%
associate-/l*99.9%
Simplified99.9%
Taylor expanded in z around inf 77.0%
if -1.59999999999999995e60 < a < 1.3e11Initial program 99.7%
associate-/l*99.7%
Simplified99.7%
Taylor expanded in a around 0 74.3%
Final simplification75.5%
(FPCore (x y z t a) :precision binary64 (+ (* a 120.0) (/ 60.0 (/ (- z t) (- x y)))))
double code(double x, double y, double z, double t, double a) {
return (a * 120.0) + (60.0 / ((z - t) / (x - y)));
}
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) + (60.0d0 / ((z - t) / (x - y)))
end function
public static double code(double x, double y, double z, double t, double a) {
return (a * 120.0) + (60.0 / ((z - t) / (x - y)));
}
def code(x, y, z, t, a): return (a * 120.0) + (60.0 / ((z - t) / (x - y)))
function code(x, y, z, t, a) return Float64(Float64(a * 120.0) + Float64(60.0 / Float64(Float64(z - t) / Float64(x - y)))) end
function tmp = code(x, y, z, t, a) tmp = (a * 120.0) + (60.0 / ((z - t) / (x - y))); end
code[x_, y_, z_, t_, a_] := N[(N[(a * 120.0), $MachinePrecision] + N[(60.0 / N[(N[(z - t), $MachinePrecision] / N[(x - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
a \cdot 120 + \frac{60}{\frac{z - t}{x - y}}
\end{array}
Initial program 99.8%
associate-/l*99.8%
Simplified99.8%
Final simplification99.8%
(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(Float64(x - y) * 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[(N[(x - y), $MachinePrecision] * 60.0), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision] + N[(a * 120.0), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{\left(x - y\right) \cdot 60}{z - t} + a \cdot 120
\end{array}
Initial program 99.8%
Final simplification99.8%
(FPCore (x y z t a) :precision binary64 (if (or (<= y -4e+167) (not (<= y 8.8e+160))) (* -60.0 (/ y (- z t))) (* a 120.0)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((y <= -4e+167) || !(y <= 8.8e+160)) {
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 ((y <= (-4d+167)) .or. (.not. (y <= 8.8d+160))) 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 ((y <= -4e+167) || !(y <= 8.8e+160)) {
tmp = -60.0 * (y / (z - t));
} else {
tmp = a * 120.0;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (y <= -4e+167) or not (y <= 8.8e+160): tmp = -60.0 * (y / (z - t)) else: tmp = a * 120.0 return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((y <= -4e+167) || !(y <= 8.8e+160)) 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 ((y <= -4e+167) || ~((y <= 8.8e+160))) tmp = -60.0 * (y / (z - t)); else tmp = a * 120.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[y, -4e+167], N[Not[LessEqual[y, 8.8e+160]], $MachinePrecision]], N[(-60.0 * N[(y / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * 120.0), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -4 \cdot 10^{+167} \lor \neg \left(y \leq 8.8 \cdot 10^{+160}\right):\\
\;\;\;\;-60 \cdot \frac{y}{z - t}\\
\mathbf{else}:\\
\;\;\;\;a \cdot 120\\
\end{array}
\end{array}
if y < -4.0000000000000002e167 or 8.79999999999999968e160 < y Initial program 99.8%
associate-/l*99.6%
Simplified99.6%
Taylor expanded in a around 0 78.6%
Taylor expanded in x around 0 70.6%
if -4.0000000000000002e167 < y < 8.79999999999999968e160Initial program 99.8%
associate-/l*99.8%
Simplified99.8%
Taylor expanded in z around inf 58.5%
Final simplification61.2%
(FPCore (x y z t a) :precision binary64 (if (or (<= y -8.6e+191) (not (<= y 7e+245))) (* -60.0 (/ y z)) (* a 120.0)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((y <= -8.6e+191) || !(y <= 7e+245)) {
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 ((y <= (-8.6d+191)) .or. (.not. (y <= 7d+245))) 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 ((y <= -8.6e+191) || !(y <= 7e+245)) {
tmp = -60.0 * (y / z);
} else {
tmp = a * 120.0;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (y <= -8.6e+191) or not (y <= 7e+245): tmp = -60.0 * (y / z) else: tmp = a * 120.0 return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((y <= -8.6e+191) || !(y <= 7e+245)) 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 ((y <= -8.6e+191) || ~((y <= 7e+245))) tmp = -60.0 * (y / z); else tmp = a * 120.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[y, -8.6e+191], N[Not[LessEqual[y, 7e+245]], $MachinePrecision]], N[(-60.0 * N[(y / z), $MachinePrecision]), $MachinePrecision], N[(a * 120.0), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -8.6 \cdot 10^{+191} \lor \neg \left(y \leq 7 \cdot 10^{+245}\right):\\
\;\;\;\;-60 \cdot \frac{y}{z}\\
\mathbf{else}:\\
\;\;\;\;a \cdot 120\\
\end{array}
\end{array}
if y < -8.5999999999999995e191 or 6.9999999999999997e245 < y Initial program 99.8%
associate-/l*99.6%
Simplified99.6%
Taylor expanded in a around 0 82.4%
Taylor expanded in z around inf 47.0%
Taylor expanded in x around 0 46.9%
if -8.5999999999999995e191 < y < 6.9999999999999997e245Initial program 99.8%
associate-/l*99.8%
Simplified99.8%
Taylor expanded in z around inf 56.1%
Final simplification54.7%
(FPCore (x y z t a) :precision binary64 (if (<= y -1.45e+192) (* -60.0 (/ y z)) (if (<= y 9.6e+162) (* a 120.0) (* 60.0 (/ y t)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (y <= -1.45e+192) {
tmp = -60.0 * (y / z);
} else if (y <= 9.6e+162) {
tmp = a * 120.0;
} else {
tmp = 60.0 * (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) :: tmp
if (y <= (-1.45d+192)) then
tmp = (-60.0d0) * (y / z)
else if (y <= 9.6d+162) then
tmp = a * 120.0d0
else
tmp = 60.0d0 * (y / t)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (y <= -1.45e+192) {
tmp = -60.0 * (y / z);
} else if (y <= 9.6e+162) {
tmp = a * 120.0;
} else {
tmp = 60.0 * (y / t);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if y <= -1.45e+192: tmp = -60.0 * (y / z) elif y <= 9.6e+162: tmp = a * 120.0 else: tmp = 60.0 * (y / t) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (y <= -1.45e+192) tmp = Float64(-60.0 * Float64(y / z)); elseif (y <= 9.6e+162) tmp = Float64(a * 120.0); else tmp = Float64(60.0 * Float64(y / t)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (y <= -1.45e+192) tmp = -60.0 * (y / z); elseif (y <= 9.6e+162) tmp = a * 120.0; else tmp = 60.0 * (y / t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[y, -1.45e+192], N[(-60.0 * N[(y / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 9.6e+162], N[(a * 120.0), $MachinePrecision], N[(60.0 * N[(y / t), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.45 \cdot 10^{+192}:\\
\;\;\;\;-60 \cdot \frac{y}{z}\\
\mathbf{elif}\;y \leq 9.6 \cdot 10^{+162}:\\
\;\;\;\;a \cdot 120\\
\mathbf{else}:\\
\;\;\;\;60 \cdot \frac{y}{t}\\
\end{array}
\end{array}
if y < -1.4500000000000001e192Initial program 99.8%
associate-/l*99.7%
Simplified99.7%
Taylor expanded in a around 0 77.7%
Taylor expanded in z around inf 45.9%
Taylor expanded in x around 0 45.8%
if -1.4500000000000001e192 < y < 9.60000000000000036e162Initial program 99.8%
associate-/l*99.8%
Simplified99.8%
Taylor expanded in z around inf 57.4%
if 9.60000000000000036e162 < y Initial program 99.7%
add-cube-cbrt98.8%
pow398.8%
Applied egg-rr98.8%
Taylor expanded in z around 0 69.3%
associate-*r/69.3%
*-commutative69.3%
associate-*r/69.3%
Simplified69.3%
Taylor expanded in y around inf 46.2%
Final simplification55.0%
(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%
associate-/l*99.8%
Simplified99.8%
Taylor expanded in z around inf 50.3%
Final simplification50.3%
(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 2023297
(FPCore (x y z t a)
:name "Data.Colour.RGB:hslsv from colour-2.3.3, B"
:precision binary64
:herbie-target
(+ (/ 60.0 (/ (- z t) (- x y))) (* a 120.0))
(+ (/ (* 60.0 (- x y)) (- z t)) (* a 120.0)))