
(FPCore (x y z t a) :precision binary64 (+ (/ (* 60.0 (- x y)) (- z t)) (* a 120.0)))
double code(double x, double y, double z, double t, double a) {
return ((60.0 * (x - y)) / (z - t)) + (a * 120.0);
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
code = ((60.0d0 * (x - y)) / (z - t)) + (a * 120.0d0)
end function
public static double code(double x, double y, double z, double t, double a) {
return ((60.0 * (x - y)) / (z - t)) + (a * 120.0);
}
def code(x, y, z, t, a): return ((60.0 * (x - y)) / (z - t)) + (a * 120.0)
function code(x, y, z, t, a) return Float64(Float64(Float64(60.0 * Float64(x - y)) / Float64(z - t)) + Float64(a * 120.0)) end
function tmp = code(x, y, z, t, a) tmp = ((60.0 * (x - y)) / (z - t)) + (a * 120.0); end
code[x_, y_, z_, t_, a_] := N[(N[(N[(60.0 * N[(x - y), $MachinePrecision]), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision] + N[(a * 120.0), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{60 \cdot \left(x - y\right)}{z - t} + a \cdot 120
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 17 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a) :precision binary64 (+ (/ (* 60.0 (- x y)) (- z t)) (* a 120.0)))
double code(double x, double y, double z, double t, double a) {
return ((60.0 * (x - y)) / (z - t)) + (a * 120.0);
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
code = ((60.0d0 * (x - y)) / (z - t)) + (a * 120.0d0)
end function
public static double code(double x, double y, double z, double t, double a) {
return ((60.0 * (x - y)) / (z - t)) + (a * 120.0);
}
def code(x, y, z, t, a): return ((60.0 * (x - y)) / (z - t)) + (a * 120.0)
function code(x, y, z, t, a) return Float64(Float64(Float64(60.0 * Float64(x - y)) / Float64(z - t)) + Float64(a * 120.0)) end
function tmp = code(x, y, z, t, a) tmp = ((60.0 * (x - y)) / (z - t)) + (a * 120.0); end
code[x_, y_, z_, t_, a_] := N[(N[(N[(60.0 * N[(x - y), $MachinePrecision]), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision] + N[(a * 120.0), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{60 \cdot \left(x - y\right)}{z - t} + a \cdot 120
\end{array}
(FPCore (x y z t a) :precision binary64 (+ (/ 60.0 (/ (- t z) (- y x))) (* a 120.0)))
double code(double x, double y, double z, double t, double a) {
return (60.0 / ((t - z) / (y - x))) + (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 / ((t - z) / (y - x))) + (a * 120.0d0)
end function
public static double code(double x, double y, double z, double t, double a) {
return (60.0 / ((t - z) / (y - x))) + (a * 120.0);
}
def code(x, y, z, t, a): return (60.0 / ((t - z) / (y - x))) + (a * 120.0)
function code(x, y, z, t, a) return Float64(Float64(60.0 / Float64(Float64(t - z) / Float64(y - x))) + Float64(a * 120.0)) end
function tmp = code(x, y, z, t, a) tmp = (60.0 / ((t - z) / (y - x))) + (a * 120.0); end
code[x_, y_, z_, t_, a_] := N[(N[(60.0 / N[(N[(t - z), $MachinePrecision] / N[(y - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(a * 120.0), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{60}{\frac{t - z}{y - x}} + a \cdot 120
\end{array}
Initial program 99.4%
associate-/l*99.8%
Simplified99.8%
clear-num99.7%
un-div-inv99.8%
Applied egg-rr99.8%
Final simplification99.8%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* 60.0 (/ (- y x) (- t z)))))
(if (<= (* a 120.0) -2e+61)
(* a 120.0)
(if (<= (* a 120.0) -2e-49)
t_1
(if (<= (* a 120.0) -5e-80)
(* a 120.0)
(if (<= (* a 120.0) 5e-68)
t_1
(if (<= (* a 120.0) 5e+42)
(+ (* a 120.0) (* 60.0 (/ x z)))
(if (<= (* a 120.0) 2e+82)
(+ (* a 120.0) (* 60.0 (/ y t)))
(* a 120.0)))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = 60.0 * ((y - x) / (t - z));
double tmp;
if ((a * 120.0) <= -2e+61) {
tmp = a * 120.0;
} else if ((a * 120.0) <= -2e-49) {
tmp = t_1;
} else if ((a * 120.0) <= -5e-80) {
tmp = a * 120.0;
} else if ((a * 120.0) <= 5e-68) {
tmp = t_1;
} else if ((a * 120.0) <= 5e+42) {
tmp = (a * 120.0) + (60.0 * (x / z));
} else if ((a * 120.0) <= 2e+82) {
tmp = (a * 120.0) + (60.0 * (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) :: t_1
real(8) :: tmp
t_1 = 60.0d0 * ((y - x) / (t - z))
if ((a * 120.0d0) <= (-2d+61)) then
tmp = a * 120.0d0
else if ((a * 120.0d0) <= (-2d-49)) then
tmp = t_1
else if ((a * 120.0d0) <= (-5d-80)) then
tmp = a * 120.0d0
else if ((a * 120.0d0) <= 5d-68) then
tmp = t_1
else if ((a * 120.0d0) <= 5d+42) then
tmp = (a * 120.0d0) + (60.0d0 * (x / z))
else if ((a * 120.0d0) <= 2d+82) then
tmp = (a * 120.0d0) + (60.0d0 * (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 t_1 = 60.0 * ((y - x) / (t - z));
double tmp;
if ((a * 120.0) <= -2e+61) {
tmp = a * 120.0;
} else if ((a * 120.0) <= -2e-49) {
tmp = t_1;
} else if ((a * 120.0) <= -5e-80) {
tmp = a * 120.0;
} else if ((a * 120.0) <= 5e-68) {
tmp = t_1;
} else if ((a * 120.0) <= 5e+42) {
tmp = (a * 120.0) + (60.0 * (x / z));
} else if ((a * 120.0) <= 2e+82) {
tmp = (a * 120.0) + (60.0 * (y / t));
} else {
tmp = a * 120.0;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = 60.0 * ((y - x) / (t - z)) tmp = 0 if (a * 120.0) <= -2e+61: tmp = a * 120.0 elif (a * 120.0) <= -2e-49: tmp = t_1 elif (a * 120.0) <= -5e-80: tmp = a * 120.0 elif (a * 120.0) <= 5e-68: tmp = t_1 elif (a * 120.0) <= 5e+42: tmp = (a * 120.0) + (60.0 * (x / z)) elif (a * 120.0) <= 2e+82: tmp = (a * 120.0) + (60.0 * (y / t)) else: tmp = a * 120.0 return tmp
function code(x, y, z, t, a) t_1 = Float64(60.0 * Float64(Float64(y - x) / Float64(t - z))) tmp = 0.0 if (Float64(a * 120.0) <= -2e+61) tmp = Float64(a * 120.0); elseif (Float64(a * 120.0) <= -2e-49) tmp = t_1; elseif (Float64(a * 120.0) <= -5e-80) tmp = Float64(a * 120.0); elseif (Float64(a * 120.0) <= 5e-68) tmp = t_1; elseif (Float64(a * 120.0) <= 5e+42) tmp = Float64(Float64(a * 120.0) + Float64(60.0 * Float64(x / z))); elseif (Float64(a * 120.0) <= 2e+82) tmp = Float64(Float64(a * 120.0) + Float64(60.0 * Float64(y / t))); else tmp = Float64(a * 120.0); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = 60.0 * ((y - x) / (t - z)); tmp = 0.0; if ((a * 120.0) <= -2e+61) tmp = a * 120.0; elseif ((a * 120.0) <= -2e-49) tmp = t_1; elseif ((a * 120.0) <= -5e-80) tmp = a * 120.0; elseif ((a * 120.0) <= 5e-68) tmp = t_1; elseif ((a * 120.0) <= 5e+42) tmp = (a * 120.0) + (60.0 * (x / z)); elseif ((a * 120.0) <= 2e+82) tmp = (a * 120.0) + (60.0 * (y / t)); else tmp = a * 120.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(60.0 * N[(N[(y - x), $MachinePrecision] / N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(a * 120.0), $MachinePrecision], -2e+61], N[(a * 120.0), $MachinePrecision], If[LessEqual[N[(a * 120.0), $MachinePrecision], -2e-49], t$95$1, If[LessEqual[N[(a * 120.0), $MachinePrecision], -5e-80], N[(a * 120.0), $MachinePrecision], If[LessEqual[N[(a * 120.0), $MachinePrecision], 5e-68], t$95$1, If[LessEqual[N[(a * 120.0), $MachinePrecision], 5e+42], N[(N[(a * 120.0), $MachinePrecision] + N[(60.0 * N[(x / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(a * 120.0), $MachinePrecision], 2e+82], N[(N[(a * 120.0), $MachinePrecision] + N[(60.0 * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * 120.0), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := 60 \cdot \frac{y - x}{t - z}\\
\mathbf{if}\;a \cdot 120 \leq -2 \cdot 10^{+61}:\\
\;\;\;\;a \cdot 120\\
\mathbf{elif}\;a \cdot 120 \leq -2 \cdot 10^{-49}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \cdot 120 \leq -5 \cdot 10^{-80}:\\
\;\;\;\;a \cdot 120\\
\mathbf{elif}\;a \cdot 120 \leq 5 \cdot 10^{-68}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \cdot 120 \leq 5 \cdot 10^{+42}:\\
\;\;\;\;a \cdot 120 + 60 \cdot \frac{x}{z}\\
\mathbf{elif}\;a \cdot 120 \leq 2 \cdot 10^{+82}:\\
\;\;\;\;a \cdot 120 + 60 \cdot \frac{y}{t}\\
\mathbf{else}:\\
\;\;\;\;a \cdot 120\\
\end{array}
\end{array}
if (*.f64 a #s(literal 120 binary64)) < -1.9999999999999999e61 or -1.99999999999999987e-49 < (*.f64 a #s(literal 120 binary64)) < -5e-80 or 1.9999999999999999e82 < (*.f64 a #s(literal 120 binary64)) Initial program 98.9%
associate-/l*99.9%
Simplified99.9%
Taylor expanded in z around inf 88.1%
if -1.9999999999999999e61 < (*.f64 a #s(literal 120 binary64)) < -1.99999999999999987e-49 or -5e-80 < (*.f64 a #s(literal 120 binary64)) < 4.99999999999999971e-68Initial program 99.6%
associate-/l*99.6%
Simplified99.6%
Taylor expanded in a around 0 77.9%
if 4.99999999999999971e-68 < (*.f64 a #s(literal 120 binary64)) < 5.00000000000000007e42Initial program 99.9%
associate-/l*99.9%
Simplified99.9%
Taylor expanded in x around inf 91.7%
associate-*r/91.6%
*-commutative91.6%
associate-*r/91.6%
Simplified91.6%
Taylor expanded in z around inf 74.4%
if 5.00000000000000007e42 < (*.f64 a #s(literal 120 binary64)) < 1.9999999999999999e82Initial program 99.9%
*-commutative99.9%
associate-/l*99.9%
Applied egg-rr99.9%
clear-num100.0%
un-div-inv100.0%
div-inv100.0%
metadata-eval100.0%
Applied egg-rr100.0%
Taylor expanded in x around 0 96.1%
Taylor expanded in z around 0 96.1%
Final simplification82.2%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (/ 60.0 (/ (- t z) (- y x)))))
(if (<= (* a 120.0) -2e+61)
(* a 120.0)
(if (<= (* a 120.0) -2e-49)
t_1
(if (<= (* a 120.0) -5e-80)
(* a 120.0)
(if (<= (* a 120.0) 5e-68)
t_1
(if (<= (* a 120.0) 5e+42)
(+ (* a 120.0) (* 60.0 (/ x z)))
(if (<= (* a 120.0) 2e+82)
(+ (* a 120.0) (* 60.0 (/ y t)))
(* a 120.0)))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = 60.0 / ((t - z) / (y - x));
double tmp;
if ((a * 120.0) <= -2e+61) {
tmp = a * 120.0;
} else if ((a * 120.0) <= -2e-49) {
tmp = t_1;
} else if ((a * 120.0) <= -5e-80) {
tmp = a * 120.0;
} else if ((a * 120.0) <= 5e-68) {
tmp = t_1;
} else if ((a * 120.0) <= 5e+42) {
tmp = (a * 120.0) + (60.0 * (x / z));
} else if ((a * 120.0) <= 2e+82) {
tmp = (a * 120.0) + (60.0 * (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) :: t_1
real(8) :: tmp
t_1 = 60.0d0 / ((t - z) / (y - x))
if ((a * 120.0d0) <= (-2d+61)) then
tmp = a * 120.0d0
else if ((a * 120.0d0) <= (-2d-49)) then
tmp = t_1
else if ((a * 120.0d0) <= (-5d-80)) then
tmp = a * 120.0d0
else if ((a * 120.0d0) <= 5d-68) then
tmp = t_1
else if ((a * 120.0d0) <= 5d+42) then
tmp = (a * 120.0d0) + (60.0d0 * (x / z))
else if ((a * 120.0d0) <= 2d+82) then
tmp = (a * 120.0d0) + (60.0d0 * (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 t_1 = 60.0 / ((t - z) / (y - x));
double tmp;
if ((a * 120.0) <= -2e+61) {
tmp = a * 120.0;
} else if ((a * 120.0) <= -2e-49) {
tmp = t_1;
} else if ((a * 120.0) <= -5e-80) {
tmp = a * 120.0;
} else if ((a * 120.0) <= 5e-68) {
tmp = t_1;
} else if ((a * 120.0) <= 5e+42) {
tmp = (a * 120.0) + (60.0 * (x / z));
} else if ((a * 120.0) <= 2e+82) {
tmp = (a * 120.0) + (60.0 * (y / t));
} else {
tmp = a * 120.0;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = 60.0 / ((t - z) / (y - x)) tmp = 0 if (a * 120.0) <= -2e+61: tmp = a * 120.0 elif (a * 120.0) <= -2e-49: tmp = t_1 elif (a * 120.0) <= -5e-80: tmp = a * 120.0 elif (a * 120.0) <= 5e-68: tmp = t_1 elif (a * 120.0) <= 5e+42: tmp = (a * 120.0) + (60.0 * (x / z)) elif (a * 120.0) <= 2e+82: tmp = (a * 120.0) + (60.0 * (y / t)) else: tmp = a * 120.0 return tmp
function code(x, y, z, t, a) t_1 = Float64(60.0 / Float64(Float64(t - z) / Float64(y - x))) tmp = 0.0 if (Float64(a * 120.0) <= -2e+61) tmp = Float64(a * 120.0); elseif (Float64(a * 120.0) <= -2e-49) tmp = t_1; elseif (Float64(a * 120.0) <= -5e-80) tmp = Float64(a * 120.0); elseif (Float64(a * 120.0) <= 5e-68) tmp = t_1; elseif (Float64(a * 120.0) <= 5e+42) tmp = Float64(Float64(a * 120.0) + Float64(60.0 * Float64(x / z))); elseif (Float64(a * 120.0) <= 2e+82) tmp = Float64(Float64(a * 120.0) + Float64(60.0 * Float64(y / t))); else tmp = Float64(a * 120.0); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = 60.0 / ((t - z) / (y - x)); tmp = 0.0; if ((a * 120.0) <= -2e+61) tmp = a * 120.0; elseif ((a * 120.0) <= -2e-49) tmp = t_1; elseif ((a * 120.0) <= -5e-80) tmp = a * 120.0; elseif ((a * 120.0) <= 5e-68) tmp = t_1; elseif ((a * 120.0) <= 5e+42) tmp = (a * 120.0) + (60.0 * (x / z)); elseif ((a * 120.0) <= 2e+82) tmp = (a * 120.0) + (60.0 * (y / t)); else tmp = a * 120.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(60.0 / N[(N[(t - z), $MachinePrecision] / N[(y - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(a * 120.0), $MachinePrecision], -2e+61], N[(a * 120.0), $MachinePrecision], If[LessEqual[N[(a * 120.0), $MachinePrecision], -2e-49], t$95$1, If[LessEqual[N[(a * 120.0), $MachinePrecision], -5e-80], N[(a * 120.0), $MachinePrecision], If[LessEqual[N[(a * 120.0), $MachinePrecision], 5e-68], t$95$1, If[LessEqual[N[(a * 120.0), $MachinePrecision], 5e+42], N[(N[(a * 120.0), $MachinePrecision] + N[(60.0 * N[(x / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(a * 120.0), $MachinePrecision], 2e+82], N[(N[(a * 120.0), $MachinePrecision] + N[(60.0 * N[(y / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * 120.0), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{60}{\frac{t - z}{y - x}}\\
\mathbf{if}\;a \cdot 120 \leq -2 \cdot 10^{+61}:\\
\;\;\;\;a \cdot 120\\
\mathbf{elif}\;a \cdot 120 \leq -2 \cdot 10^{-49}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \cdot 120 \leq -5 \cdot 10^{-80}:\\
\;\;\;\;a \cdot 120\\
\mathbf{elif}\;a \cdot 120 \leq 5 \cdot 10^{-68}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \cdot 120 \leq 5 \cdot 10^{+42}:\\
\;\;\;\;a \cdot 120 + 60 \cdot \frac{x}{z}\\
\mathbf{elif}\;a \cdot 120 \leq 2 \cdot 10^{+82}:\\
\;\;\;\;a \cdot 120 + 60 \cdot \frac{y}{t}\\
\mathbf{else}:\\
\;\;\;\;a \cdot 120\\
\end{array}
\end{array}
if (*.f64 a #s(literal 120 binary64)) < -1.9999999999999999e61 or -1.99999999999999987e-49 < (*.f64 a #s(literal 120 binary64)) < -5e-80 or 1.9999999999999999e82 < (*.f64 a #s(literal 120 binary64)) Initial program 98.9%
associate-/l*99.9%
Simplified99.9%
Taylor expanded in z around inf 88.1%
if -1.9999999999999999e61 < (*.f64 a #s(literal 120 binary64)) < -1.99999999999999987e-49 or -5e-80 < (*.f64 a #s(literal 120 binary64)) < 4.99999999999999971e-68Initial program 99.6%
associate-/l*99.6%
Simplified99.6%
Taylor expanded in a around 0 77.9%
clear-num99.5%
un-div-inv99.7%
Applied egg-rr77.9%
if 4.99999999999999971e-68 < (*.f64 a #s(literal 120 binary64)) < 5.00000000000000007e42Initial program 99.9%
associate-/l*99.9%
Simplified99.9%
Taylor expanded in x around inf 91.7%
associate-*r/91.6%
*-commutative91.6%
associate-*r/91.6%
Simplified91.6%
Taylor expanded in z around inf 74.4%
if 5.00000000000000007e42 < (*.f64 a #s(literal 120 binary64)) < 1.9999999999999999e82Initial program 99.9%
*-commutative99.9%
associate-/l*99.9%
Applied egg-rr99.9%
clear-num100.0%
un-div-inv100.0%
div-inv100.0%
metadata-eval100.0%
Applied egg-rr100.0%
Taylor expanded in x around 0 96.1%
Taylor expanded in z around 0 96.1%
Final simplification82.2%
(FPCore (x y z t a)
:precision binary64
(if (or (<= (* a 120.0) -2e+61)
(not
(or (<= (* a 120.0) -2e-49)
(and (not (<= (* a 120.0) -5e-80)) (<= (* a 120.0) 5e-68)))))
(* a 120.0)
(* 60.0 (/ (- y x) (- t z)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (((a * 120.0) <= -2e+61) || !(((a * 120.0) <= -2e-49) || (!((a * 120.0) <= -5e-80) && ((a * 120.0) <= 5e-68)))) {
tmp = a * 120.0;
} else {
tmp = 60.0 * ((y - x) / (t - z));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (((a * 120.0d0) <= (-2d+61)) .or. (.not. ((a * 120.0d0) <= (-2d-49)) .or. (.not. ((a * 120.0d0) <= (-5d-80))) .and. ((a * 120.0d0) <= 5d-68))) then
tmp = a * 120.0d0
else
tmp = 60.0d0 * ((y - x) / (t - z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (((a * 120.0) <= -2e+61) || !(((a * 120.0) <= -2e-49) || (!((a * 120.0) <= -5e-80) && ((a * 120.0) <= 5e-68)))) {
tmp = a * 120.0;
} else {
tmp = 60.0 * ((y - x) / (t - z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if ((a * 120.0) <= -2e+61) or not (((a * 120.0) <= -2e-49) or (not ((a * 120.0) <= -5e-80) and ((a * 120.0) <= 5e-68))): tmp = a * 120.0 else: tmp = 60.0 * ((y - x) / (t - z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((Float64(a * 120.0) <= -2e+61) || !((Float64(a * 120.0) <= -2e-49) || (!(Float64(a * 120.0) <= -5e-80) && (Float64(a * 120.0) <= 5e-68)))) tmp = Float64(a * 120.0); else tmp = Float64(60.0 * Float64(Float64(y - x) / Float64(t - z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (((a * 120.0) <= -2e+61) || ~((((a * 120.0) <= -2e-49) || (~(((a * 120.0) <= -5e-80)) && ((a * 120.0) <= 5e-68))))) tmp = a * 120.0; else tmp = 60.0 * ((y - x) / (t - z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[N[(a * 120.0), $MachinePrecision], -2e+61], N[Not[Or[LessEqual[N[(a * 120.0), $MachinePrecision], -2e-49], And[N[Not[LessEqual[N[(a * 120.0), $MachinePrecision], -5e-80]], $MachinePrecision], LessEqual[N[(a * 120.0), $MachinePrecision], 5e-68]]]], $MachinePrecision]], N[(a * 120.0), $MachinePrecision], N[(60.0 * N[(N[(y - x), $MachinePrecision] / N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \cdot 120 \leq -2 \cdot 10^{+61} \lor \neg \left(a \cdot 120 \leq -2 \cdot 10^{-49} \lor \neg \left(a \cdot 120 \leq -5 \cdot 10^{-80}\right) \land a \cdot 120 \leq 5 \cdot 10^{-68}\right):\\
\;\;\;\;a \cdot 120\\
\mathbf{else}:\\
\;\;\;\;60 \cdot \frac{y - x}{t - z}\\
\end{array}
\end{array}
if (*.f64 a #s(literal 120 binary64)) < -1.9999999999999999e61 or -1.99999999999999987e-49 < (*.f64 a #s(literal 120 binary64)) < -5e-80 or 4.99999999999999971e-68 < (*.f64 a #s(literal 120 binary64)) Initial program 99.1%
associate-/l*99.9%
Simplified99.9%
Taylor expanded in z around inf 82.0%
if -1.9999999999999999e61 < (*.f64 a #s(literal 120 binary64)) < -1.99999999999999987e-49 or -5e-80 < (*.f64 a #s(literal 120 binary64)) < 4.99999999999999971e-68Initial program 99.6%
associate-/l*99.6%
Simplified99.6%
Taylor expanded in a around 0 77.9%
Final simplification80.0%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* 60.0 (/ (- x y) z))) (t_2 (* -60.0 (/ (- x y) t))))
(if (<= a -2.3e-118)
(* a 120.0)
(if (<= a -1.42e-127)
t_2
(if (<= a -3.1e-155)
t_1
(if (<= a -5e-256) t_2 (if (<= a 3.3e-104) t_1 (* a 120.0))))))))
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) / t);
double tmp;
if (a <= -2.3e-118) {
tmp = a * 120.0;
} else if (a <= -1.42e-127) {
tmp = t_2;
} else if (a <= -3.1e-155) {
tmp = t_1;
} else if (a <= -5e-256) {
tmp = t_2;
} else if (a <= 3.3e-104) {
tmp = t_1;
} 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) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = 60.0d0 * ((x - y) / z)
t_2 = (-60.0d0) * ((x - y) / t)
if (a <= (-2.3d-118)) then
tmp = a * 120.0d0
else if (a <= (-1.42d-127)) then
tmp = t_2
else if (a <= (-3.1d-155)) then
tmp = t_1
else if (a <= (-5d-256)) then
tmp = t_2
else if (a <= 3.3d-104) then
tmp = t_1
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 t_1 = 60.0 * ((x - y) / z);
double t_2 = -60.0 * ((x - y) / t);
double tmp;
if (a <= -2.3e-118) {
tmp = a * 120.0;
} else if (a <= -1.42e-127) {
tmp = t_2;
} else if (a <= -3.1e-155) {
tmp = t_1;
} else if (a <= -5e-256) {
tmp = t_2;
} else if (a <= 3.3e-104) {
tmp = t_1;
} else {
tmp = a * 120.0;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = 60.0 * ((x - y) / z) t_2 = -60.0 * ((x - y) / t) tmp = 0 if a <= -2.3e-118: tmp = a * 120.0 elif a <= -1.42e-127: tmp = t_2 elif a <= -3.1e-155: tmp = t_1 elif a <= -5e-256: tmp = t_2 elif a <= 3.3e-104: tmp = t_1 else: tmp = a * 120.0 return tmp
function code(x, y, z, t, a) t_1 = Float64(60.0 * Float64(Float64(x - y) / z)) t_2 = Float64(-60.0 * Float64(Float64(x - y) / t)) tmp = 0.0 if (a <= -2.3e-118) tmp = Float64(a * 120.0); elseif (a <= -1.42e-127) tmp = t_2; elseif (a <= -3.1e-155) tmp = t_1; elseif (a <= -5e-256) tmp = t_2; elseif (a <= 3.3e-104) tmp = t_1; else tmp = Float64(a * 120.0); 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) / t); tmp = 0.0; if (a <= -2.3e-118) tmp = a * 120.0; elseif (a <= -1.42e-127) tmp = t_2; elseif (a <= -3.1e-155) tmp = t_1; elseif (a <= -5e-256) tmp = t_2; elseif (a <= 3.3e-104) tmp = t_1; else tmp = a * 120.0; 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[(-60.0 * N[(N[(x - y), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -2.3e-118], N[(a * 120.0), $MachinePrecision], If[LessEqual[a, -1.42e-127], t$95$2, If[LessEqual[a, -3.1e-155], t$95$1, If[LessEqual[a, -5e-256], t$95$2, If[LessEqual[a, 3.3e-104], t$95$1, N[(a * 120.0), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := 60 \cdot \frac{x - y}{z}\\
t_2 := -60 \cdot \frac{x - y}{t}\\
\mathbf{if}\;a \leq -2.3 \cdot 10^{-118}:\\
\;\;\;\;a \cdot 120\\
\mathbf{elif}\;a \leq -1.42 \cdot 10^{-127}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq -3.1 \cdot 10^{-155}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -5 \cdot 10^{-256}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq 3.3 \cdot 10^{-104}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;a \cdot 120\\
\end{array}
\end{array}
if a < -2.30000000000000021e-118 or 3.30000000000000002e-104 < a Initial program 99.3%
associate-/l*99.8%
Simplified99.8%
Taylor expanded in z around inf 72.2%
if -2.30000000000000021e-118 < a < -1.42e-127 or -3.1e-155 < a < -5e-256Initial program 99.6%
associate-/l*99.6%
Simplified99.6%
Taylor expanded in a around 0 94.9%
Taylor expanded in z around 0 78.5%
if -1.42e-127 < a < -3.1e-155 or -5e-256 < a < 3.30000000000000002e-104Initial program 99.6%
associate-/l*99.7%
Simplified99.7%
Taylor expanded in a around 0 76.6%
Taylor expanded in z around inf 55.4%
Final simplification69.1%
(FPCore (x y z t a) :precision binary64 (if (or (<= (* a 120.0) -1e-100) (not (<= (* a 120.0) 5e-68))) (+ (* a 120.0) (* -60.0 (/ y (- z t)))) (/ 60.0 (/ (- t z) (- y x)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (((a * 120.0) <= -1e-100) || !((a * 120.0) <= 5e-68)) {
tmp = (a * 120.0) + (-60.0 * (y / (z - t)));
} else {
tmp = 60.0 / ((t - z) / (y - x));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (((a * 120.0d0) <= (-1d-100)) .or. (.not. ((a * 120.0d0) <= 5d-68))) then
tmp = (a * 120.0d0) + ((-60.0d0) * (y / (z - t)))
else
tmp = 60.0d0 / ((t - z) / (y - x))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (((a * 120.0) <= -1e-100) || !((a * 120.0) <= 5e-68)) {
tmp = (a * 120.0) + (-60.0 * (y / (z - t)));
} else {
tmp = 60.0 / ((t - z) / (y - x));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if ((a * 120.0) <= -1e-100) or not ((a * 120.0) <= 5e-68): tmp = (a * 120.0) + (-60.0 * (y / (z - t))) else: tmp = 60.0 / ((t - z) / (y - x)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((Float64(a * 120.0) <= -1e-100) || !(Float64(a * 120.0) <= 5e-68)) tmp = Float64(Float64(a * 120.0) + Float64(-60.0 * Float64(y / Float64(z - t)))); else tmp = Float64(60.0 / Float64(Float64(t - z) / Float64(y - x))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (((a * 120.0) <= -1e-100) || ~(((a * 120.0) <= 5e-68))) tmp = (a * 120.0) + (-60.0 * (y / (z - t))); else tmp = 60.0 / ((t - z) / (y - x)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[N[(a * 120.0), $MachinePrecision], -1e-100], N[Not[LessEqual[N[(a * 120.0), $MachinePrecision], 5e-68]], $MachinePrecision]], N[(N[(a * 120.0), $MachinePrecision] + N[(-60.0 * N[(y / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(60.0 / N[(N[(t - z), $MachinePrecision] / N[(y - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \cdot 120 \leq -1 \cdot 10^{-100} \lor \neg \left(a \cdot 120 \leq 5 \cdot 10^{-68}\right):\\
\;\;\;\;a \cdot 120 + -60 \cdot \frac{y}{z - t}\\
\mathbf{else}:\\
\;\;\;\;\frac{60}{\frac{t - z}{y - x}}\\
\end{array}
\end{array}
if (*.f64 a #s(literal 120 binary64)) < -1e-100 or 4.99999999999999971e-68 < (*.f64 a #s(literal 120 binary64)) Initial program 99.2%
*-commutative99.2%
associate-/l*99.9%
Applied egg-rr99.9%
clear-num99.8%
un-div-inv99.9%
div-inv99.9%
metadata-eval99.9%
Applied egg-rr99.9%
Taylor expanded in x around 0 86.5%
if -1e-100 < (*.f64 a #s(literal 120 binary64)) < 4.99999999999999971e-68Initial program 99.6%
associate-/l*99.6%
Simplified99.6%
Taylor expanded in a around 0 81.2%
clear-num99.4%
un-div-inv99.6%
Applied egg-rr81.2%
Final simplification84.4%
(FPCore (x y z t a)
:precision binary64
(if (<= a -4e-118)
(* a 120.0)
(if (<= a -1.7e-242)
(* -60.0 (/ (- x y) t))
(if (<= a 1.2e-166) (* -60.0 (/ y (- z t))) (* a 120.0)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -4e-118) {
tmp = a * 120.0;
} else if (a <= -1.7e-242) {
tmp = -60.0 * ((x - y) / t);
} else if (a <= 1.2e-166) {
tmp = -60.0 * (y / (z - t));
} else {
tmp = a * 120.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (a <= (-4d-118)) then
tmp = a * 120.0d0
else if (a <= (-1.7d-242)) then
tmp = (-60.0d0) * ((x - y) / t)
else if (a <= 1.2d-166) then
tmp = (-60.0d0) * (y / (z - t))
else
tmp = a * 120.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -4e-118) {
tmp = a * 120.0;
} else if (a <= -1.7e-242) {
tmp = -60.0 * ((x - y) / t);
} else if (a <= 1.2e-166) {
tmp = -60.0 * (y / (z - t));
} else {
tmp = a * 120.0;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -4e-118: tmp = a * 120.0 elif a <= -1.7e-242: tmp = -60.0 * ((x - y) / t) elif a <= 1.2e-166: tmp = -60.0 * (y / (z - t)) else: tmp = a * 120.0 return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -4e-118) tmp = Float64(a * 120.0); elseif (a <= -1.7e-242) tmp = Float64(-60.0 * Float64(Float64(x - y) / t)); elseif (a <= 1.2e-166) tmp = Float64(-60.0 * Float64(y / Float64(z - t))); else tmp = Float64(a * 120.0); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -4e-118) tmp = a * 120.0; elseif (a <= -1.7e-242) tmp = -60.0 * ((x - y) / t); elseif (a <= 1.2e-166) tmp = -60.0 * (y / (z - t)); else tmp = a * 120.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -4e-118], N[(a * 120.0), $MachinePrecision], If[LessEqual[a, -1.7e-242], N[(-60.0 * N[(N[(x - y), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.2e-166], N[(-60.0 * N[(y / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * 120.0), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -4 \cdot 10^{-118}:\\
\;\;\;\;a \cdot 120\\
\mathbf{elif}\;a \leq -1.7 \cdot 10^{-242}:\\
\;\;\;\;-60 \cdot \frac{x - y}{t}\\
\mathbf{elif}\;a \leq 1.2 \cdot 10^{-166}:\\
\;\;\;\;-60 \cdot \frac{y}{z - t}\\
\mathbf{else}:\\
\;\;\;\;a \cdot 120\\
\end{array}
\end{array}
if a < -3.99999999999999994e-118 or 1.1999999999999999e-166 < a Initial program 99.3%
associate-/l*99.8%
Simplified99.8%
Taylor expanded in z around inf 69.5%
if -3.99999999999999994e-118 < a < -1.7e-242Initial program 99.6%
associate-/l*99.6%
Simplified99.6%
Taylor expanded in a around 0 88.0%
Taylor expanded in z around 0 61.4%
if -1.7e-242 < a < 1.1999999999999999e-166Initial program 99.7%
associate-/l*99.7%
Simplified99.7%
Taylor expanded in a around 0 81.0%
Taylor expanded in x around 0 59.3%
Final simplification66.6%
(FPCore (x y z t a) :precision binary64 (if (or (<= x -6.6e+152) (not (<= x 2.6e+34))) (+ (* a 120.0) (* x (/ 60.0 (- z t)))) (+ (* a 120.0) (* -60.0 (/ y (- z t))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((x <= -6.6e+152) || !(x <= 2.6e+34)) {
tmp = (a * 120.0) + (x * (60.0 / (z - t)));
} else {
tmp = (a * 120.0) + (-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 ((x <= (-6.6d+152)) .or. (.not. (x <= 2.6d+34))) then
tmp = (a * 120.0d0) + (x * (60.0d0 / (z - t)))
else
tmp = (a * 120.0d0) + ((-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 ((x <= -6.6e+152) || !(x <= 2.6e+34)) {
tmp = (a * 120.0) + (x * (60.0 / (z - t)));
} else {
tmp = (a * 120.0) + (-60.0 * (y / (z - t)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (x <= -6.6e+152) or not (x <= 2.6e+34): tmp = (a * 120.0) + (x * (60.0 / (z - t))) else: tmp = (a * 120.0) + (-60.0 * (y / (z - t))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((x <= -6.6e+152) || !(x <= 2.6e+34)) tmp = Float64(Float64(a * 120.0) + Float64(x * Float64(60.0 / Float64(z - t)))); else tmp = Float64(Float64(a * 120.0) + 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 ((x <= -6.6e+152) || ~((x <= 2.6e+34))) tmp = (a * 120.0) + (x * (60.0 / (z - t))); else tmp = (a * 120.0) + (-60.0 * (y / (z - t))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[x, -6.6e+152], N[Not[LessEqual[x, 2.6e+34]], $MachinePrecision]], N[(N[(a * 120.0), $MachinePrecision] + N[(x * N[(60.0 / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(a * 120.0), $MachinePrecision] + N[(-60.0 * N[(y / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -6.6 \cdot 10^{+152} \lor \neg \left(x \leq 2.6 \cdot 10^{+34}\right):\\
\;\;\;\;a \cdot 120 + x \cdot \frac{60}{z - t}\\
\mathbf{else}:\\
\;\;\;\;a \cdot 120 + -60 \cdot \frac{y}{z - t}\\
\end{array}
\end{array}
if x < -6.6000000000000003e152 or 2.59999999999999997e34 < x Initial program 98.7%
associate-/l*99.7%
Simplified99.7%
Taylor expanded in x around inf 86.4%
associate-*r/85.4%
*-commutative85.4%
associate-*r/86.3%
Simplified86.3%
if -6.6000000000000003e152 < x < 2.59999999999999997e34Initial program 99.8%
*-commutative99.8%
associate-/l*99.9%
Applied egg-rr99.9%
clear-num99.8%
un-div-inv99.8%
div-inv99.8%
metadata-eval99.8%
Applied egg-rr99.8%
Taylor expanded in x around 0 92.8%
Final simplification90.3%
(FPCore (x y z t a)
:precision binary64
(if (<= x -1.2e+152)
(+ (* a 120.0) (* x (/ 60.0 (- z t))))
(if (<= x 1.25e+34)
(+ (* a 120.0) (* -60.0 (/ y (- z t))))
(+ (* a 120.0) (/ x (* (- z t) 0.016666666666666666))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (x <= -1.2e+152) {
tmp = (a * 120.0) + (x * (60.0 / (z - t)));
} else if (x <= 1.25e+34) {
tmp = (a * 120.0) + (-60.0 * (y / (z - t)));
} else {
tmp = (a * 120.0) + (x / ((z - t) * 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) :: tmp
if (x <= (-1.2d+152)) then
tmp = (a * 120.0d0) + (x * (60.0d0 / (z - t)))
else if (x <= 1.25d+34) then
tmp = (a * 120.0d0) + ((-60.0d0) * (y / (z - t)))
else
tmp = (a * 120.0d0) + (x / ((z - t) * 0.016666666666666666d0))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (x <= -1.2e+152) {
tmp = (a * 120.0) + (x * (60.0 / (z - t)));
} else if (x <= 1.25e+34) {
tmp = (a * 120.0) + (-60.0 * (y / (z - t)));
} else {
tmp = (a * 120.0) + (x / ((z - t) * 0.016666666666666666));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if x <= -1.2e+152: tmp = (a * 120.0) + (x * (60.0 / (z - t))) elif x <= 1.25e+34: tmp = (a * 120.0) + (-60.0 * (y / (z - t))) else: tmp = (a * 120.0) + (x / ((z - t) * 0.016666666666666666)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (x <= -1.2e+152) tmp = Float64(Float64(a * 120.0) + Float64(x * Float64(60.0 / Float64(z - t)))); elseif (x <= 1.25e+34) tmp = Float64(Float64(a * 120.0) + Float64(-60.0 * Float64(y / Float64(z - t)))); else tmp = Float64(Float64(a * 120.0) + Float64(x / Float64(Float64(z - t) * 0.016666666666666666))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (x <= -1.2e+152) tmp = (a * 120.0) + (x * (60.0 / (z - t))); elseif (x <= 1.25e+34) tmp = (a * 120.0) + (-60.0 * (y / (z - t))); else tmp = (a * 120.0) + (x / ((z - t) * 0.016666666666666666)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[x, -1.2e+152], N[(N[(a * 120.0), $MachinePrecision] + N[(x * N[(60.0 / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.25e+34], N[(N[(a * 120.0), $MachinePrecision] + N[(-60.0 * N[(y / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(a * 120.0), $MachinePrecision] + N[(x / N[(N[(z - t), $MachinePrecision] * 0.016666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.2 \cdot 10^{+152}:\\
\;\;\;\;a \cdot 120 + x \cdot \frac{60}{z - t}\\
\mathbf{elif}\;x \leq 1.25 \cdot 10^{+34}:\\
\;\;\;\;a \cdot 120 + -60 \cdot \frac{y}{z - t}\\
\mathbf{else}:\\
\;\;\;\;a \cdot 120 + \frac{x}{\left(z - t\right) \cdot 0.016666666666666666}\\
\end{array}
\end{array}
if x < -1.2e152Initial program 99.8%
associate-/l*99.7%
Simplified99.7%
Taylor expanded in x around inf 87.4%
associate-*r/87.5%
*-commutative87.5%
associate-*r/87.5%
Simplified87.5%
if -1.2e152 < x < 1.25e34Initial program 99.8%
*-commutative99.8%
associate-/l*99.9%
Applied egg-rr99.9%
clear-num99.8%
un-div-inv99.8%
div-inv99.8%
metadata-eval99.8%
Applied egg-rr99.8%
Taylor expanded in x around 0 92.8%
if 1.25e34 < x Initial program 98.1%
associate-/l*99.8%
Simplified99.8%
Taylor expanded in x around inf 85.7%
associate-*r/84.0%
*-commutative84.0%
associate-*r/85.6%
Simplified85.6%
clear-num85.6%
un-div-inv85.8%
div-inv85.7%
metadata-eval85.7%
Applied egg-rr85.7%
Final simplification90.3%
(FPCore (x y z t a)
:precision binary64
(if (<= x -1.76e+152)
(+ (* a 120.0) (* x (/ 60.0 (- z t))))
(if (<= x 3.2e+34)
(+ (* a 120.0) (/ 60.0 (/ (- t z) y)))
(+ (* a 120.0) (/ x (* (- z t) 0.016666666666666666))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (x <= -1.76e+152) {
tmp = (a * 120.0) + (x * (60.0 / (z - t)));
} else if (x <= 3.2e+34) {
tmp = (a * 120.0) + (60.0 / ((t - z) / y));
} else {
tmp = (a * 120.0) + (x / ((z - t) * 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) :: tmp
if (x <= (-1.76d+152)) then
tmp = (a * 120.0d0) + (x * (60.0d0 / (z - t)))
else if (x <= 3.2d+34) then
tmp = (a * 120.0d0) + (60.0d0 / ((t - z) / y))
else
tmp = (a * 120.0d0) + (x / ((z - t) * 0.016666666666666666d0))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (x <= -1.76e+152) {
tmp = (a * 120.0) + (x * (60.0 / (z - t)));
} else if (x <= 3.2e+34) {
tmp = (a * 120.0) + (60.0 / ((t - z) / y));
} else {
tmp = (a * 120.0) + (x / ((z - t) * 0.016666666666666666));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if x <= -1.76e+152: tmp = (a * 120.0) + (x * (60.0 / (z - t))) elif x <= 3.2e+34: tmp = (a * 120.0) + (60.0 / ((t - z) / y)) else: tmp = (a * 120.0) + (x / ((z - t) * 0.016666666666666666)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (x <= -1.76e+152) tmp = Float64(Float64(a * 120.0) + Float64(x * Float64(60.0 / Float64(z - t)))); elseif (x <= 3.2e+34) tmp = Float64(Float64(a * 120.0) + Float64(60.0 / Float64(Float64(t - z) / y))); else tmp = Float64(Float64(a * 120.0) + Float64(x / Float64(Float64(z - t) * 0.016666666666666666))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (x <= -1.76e+152) tmp = (a * 120.0) + (x * (60.0 / (z - t))); elseif (x <= 3.2e+34) tmp = (a * 120.0) + (60.0 / ((t - z) / y)); else tmp = (a * 120.0) + (x / ((z - t) * 0.016666666666666666)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[x, -1.76e+152], N[(N[(a * 120.0), $MachinePrecision] + N[(x * N[(60.0 / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 3.2e+34], N[(N[(a * 120.0), $MachinePrecision] + N[(60.0 / N[(N[(t - z), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(a * 120.0), $MachinePrecision] + N[(x / N[(N[(z - t), $MachinePrecision] * 0.016666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.76 \cdot 10^{+152}:\\
\;\;\;\;a \cdot 120 + x \cdot \frac{60}{z - t}\\
\mathbf{elif}\;x \leq 3.2 \cdot 10^{+34}:\\
\;\;\;\;a \cdot 120 + \frac{60}{\frac{t - z}{y}}\\
\mathbf{else}:\\
\;\;\;\;a \cdot 120 + \frac{x}{\left(z - t\right) \cdot 0.016666666666666666}\\
\end{array}
\end{array}
if x < -1.76000000000000005e152Initial program 99.8%
associate-/l*99.7%
Simplified99.7%
Taylor expanded in x around inf 87.4%
associate-*r/87.5%
*-commutative87.5%
associate-*r/87.5%
Simplified87.5%
if -1.76000000000000005e152 < x < 3.1999999999999998e34Initial program 99.8%
associate-/l*99.8%
Simplified99.8%
clear-num99.7%
un-div-inv99.8%
Applied egg-rr99.8%
Taylor expanded in x around 0 92.8%
associate-*r/92.8%
neg-mul-192.8%
Simplified92.8%
if 3.1999999999999998e34 < x Initial program 98.1%
associate-/l*99.8%
Simplified99.8%
Taylor expanded in x around inf 85.7%
associate-*r/84.0%
*-commutative84.0%
associate-*r/85.6%
Simplified85.6%
clear-num85.6%
un-div-inv85.8%
div-inv85.7%
metadata-eval85.7%
Applied egg-rr85.7%
Final simplification90.3%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -3.3e-118) (not (<= a 2.4e-166))) (* a 120.0) (* -60.0 (/ y (- z t)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -3.3e-118) || !(a <= 2.4e-166)) {
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 ((a <= (-3.3d-118)) .or. (.not. (a <= 2.4d-166))) 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 ((a <= -3.3e-118) || !(a <= 2.4e-166)) {
tmp = a * 120.0;
} else {
tmp = -60.0 * (y / (z - t));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -3.3e-118) or not (a <= 2.4e-166): tmp = a * 120.0 else: tmp = -60.0 * (y / (z - t)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -3.3e-118) || !(a <= 2.4e-166)) 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 ((a <= -3.3e-118) || ~((a <= 2.4e-166))) tmp = a * 120.0; else tmp = -60.0 * (y / (z - t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -3.3e-118], N[Not[LessEqual[a, 2.4e-166]], $MachinePrecision]], N[(a * 120.0), $MachinePrecision], N[(-60.0 * N[(y / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -3.3 \cdot 10^{-118} \lor \neg \left(a \leq 2.4 \cdot 10^{-166}\right):\\
\;\;\;\;a \cdot 120\\
\mathbf{else}:\\
\;\;\;\;-60 \cdot \frac{y}{z - t}\\
\end{array}
\end{array}
if a < -3.3e-118 or 2.3999999999999999e-166 < a Initial program 99.3%
associate-/l*99.8%
Simplified99.8%
Taylor expanded in z around inf 69.5%
if -3.3e-118 < a < 2.3999999999999999e-166Initial program 99.6%
associate-/l*99.6%
Simplified99.6%
Taylor expanded in a around 0 84.3%
Taylor expanded in x around 0 48.0%
Final simplification62.8%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -1.5e-146) (not (<= a 1.3e-185))) (* a 120.0) (* -60.0 (/ y z))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -1.5e-146) || !(a <= 1.3e-185)) {
tmp = a * 120.0;
} else {
tmp = -60.0 * (y / z);
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((a <= (-1.5d-146)) .or. (.not. (a <= 1.3d-185))) then
tmp = a * 120.0d0
else
tmp = (-60.0d0) * (y / z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -1.5e-146) || !(a <= 1.3e-185)) {
tmp = a * 120.0;
} else {
tmp = -60.0 * (y / z);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -1.5e-146) or not (a <= 1.3e-185): tmp = a * 120.0 else: tmp = -60.0 * (y / z) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -1.5e-146) || !(a <= 1.3e-185)) tmp = Float64(a * 120.0); else tmp = Float64(-60.0 * Float64(y / z)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a <= -1.5e-146) || ~((a <= 1.3e-185))) tmp = a * 120.0; else tmp = -60.0 * (y / z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -1.5e-146], N[Not[LessEqual[a, 1.3e-185]], $MachinePrecision]], N[(a * 120.0), $MachinePrecision], N[(-60.0 * N[(y / z), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.5 \cdot 10^{-146} \lor \neg \left(a \leq 1.3 \cdot 10^{-185}\right):\\
\;\;\;\;a \cdot 120\\
\mathbf{else}:\\
\;\;\;\;-60 \cdot \frac{y}{z}\\
\end{array}
\end{array}
if a < -1.50000000000000009e-146 or 1.29999999999999992e-185 < a Initial program 99.3%
associate-/l*99.8%
Simplified99.8%
Taylor expanded in z around inf 66.9%
if -1.50000000000000009e-146 < a < 1.29999999999999992e-185Initial program 99.6%
associate-/l*99.6%
Simplified99.6%
Taylor expanded in a around 0 88.3%
Taylor expanded in x around 0 49.4%
Taylor expanded in z around inf 29.9%
Final simplification57.4%
(FPCore (x y z t a) :precision binary64 (if (<= y -1.35e+180) (* -60.0 (/ y z)) (if (<= y 1.9e+171) (* a 120.0) (* 60.0 (/ y t)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (y <= -1.35e+180) {
tmp = -60.0 * (y / z);
} else if (y <= 1.9e+171) {
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.35d+180)) then
tmp = (-60.0d0) * (y / z)
else if (y <= 1.9d+171) 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.35e+180) {
tmp = -60.0 * (y / z);
} else if (y <= 1.9e+171) {
tmp = a * 120.0;
} else {
tmp = 60.0 * (y / t);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if y <= -1.35e+180: tmp = -60.0 * (y / z) elif y <= 1.9e+171: 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.35e+180) tmp = Float64(-60.0 * Float64(y / z)); elseif (y <= 1.9e+171) 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.35e+180) tmp = -60.0 * (y / z); elseif (y <= 1.9e+171) 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.35e+180], N[(-60.0 * N[(y / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.9e+171], N[(a * 120.0), $MachinePrecision], N[(60.0 * N[(y / t), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.35 \cdot 10^{+180}:\\
\;\;\;\;-60 \cdot \frac{y}{z}\\
\mathbf{elif}\;y \leq 1.9 \cdot 10^{+171}:\\
\;\;\;\;a \cdot 120\\
\mathbf{else}:\\
\;\;\;\;60 \cdot \frac{y}{t}\\
\end{array}
\end{array}
if y < -1.35000000000000008e180Initial program 99.8%
associate-/l*99.8%
Simplified99.8%
Taylor expanded in a around 0 75.4%
Taylor expanded in x around 0 67.5%
Taylor expanded in z around inf 43.9%
if -1.35000000000000008e180 < y < 1.9000000000000001e171Initial program 99.3%
associate-/l*99.8%
Simplified99.8%
Taylor expanded in z around inf 59.6%
if 1.9000000000000001e171 < y Initial program 99.5%
associate-/l*99.3%
Simplified99.3%
Taylor expanded in a around 0 83.9%
Taylor expanded in x around 0 72.8%
Taylor expanded in z around 0 53.8%
Final simplification57.5%
(FPCore (x y z t a) :precision binary64 (if (<= y -1.25e+180) (/ (* y -60.0) z) (if (<= y 4.3e+170) (* a 120.0) (* 60.0 (/ y t)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (y <= -1.25e+180) {
tmp = (y * -60.0) / z;
} else if (y <= 4.3e+170) {
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.25d+180)) then
tmp = (y * (-60.0d0)) / z
else if (y <= 4.3d+170) 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.25e+180) {
tmp = (y * -60.0) / z;
} else if (y <= 4.3e+170) {
tmp = a * 120.0;
} else {
tmp = 60.0 * (y / t);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if y <= -1.25e+180: tmp = (y * -60.0) / z elif y <= 4.3e+170: 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.25e+180) tmp = Float64(Float64(y * -60.0) / z); elseif (y <= 4.3e+170) 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.25e+180) tmp = (y * -60.0) / z; elseif (y <= 4.3e+170) 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.25e+180], N[(N[(y * -60.0), $MachinePrecision] / z), $MachinePrecision], If[LessEqual[y, 4.3e+170], N[(a * 120.0), $MachinePrecision], N[(60.0 * N[(y / t), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.25 \cdot 10^{+180}:\\
\;\;\;\;\frac{y \cdot -60}{z}\\
\mathbf{elif}\;y \leq 4.3 \cdot 10^{+170}:\\
\;\;\;\;a \cdot 120\\
\mathbf{else}:\\
\;\;\;\;60 \cdot \frac{y}{t}\\
\end{array}
\end{array}
if y < -1.2499999999999999e180Initial program 99.8%
associate-/l*99.8%
Simplified99.8%
Taylor expanded in a around 0 75.4%
Taylor expanded in x around 0 67.5%
Taylor expanded in z around inf 43.9%
associate-*r/44.0%
Simplified44.0%
if -1.2499999999999999e180 < y < 4.2999999999999999e170Initial program 99.3%
associate-/l*99.8%
Simplified99.8%
Taylor expanded in z around inf 59.6%
if 4.2999999999999999e170 < y Initial program 99.5%
associate-/l*99.3%
Simplified99.3%
Taylor expanded in a around 0 83.9%
Taylor expanded in x around 0 72.8%
Taylor expanded in z around 0 53.8%
Final simplification57.5%
(FPCore (x y z t a) :precision binary64 (+ (* a 120.0) (* 60.0 (/ (- y x) (- t z)))))
double code(double x, double y, double z, double t, double a) {
return (a * 120.0) + (60.0 * ((y - x) / (t - z)));
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
code = (a * 120.0d0) + (60.0d0 * ((y - x) / (t - z)))
end function
public static double code(double x, double y, double z, double t, double a) {
return (a * 120.0) + (60.0 * ((y - x) / (t - z)));
}
def code(x, y, z, t, a): return (a * 120.0) + (60.0 * ((y - x) / (t - z)))
function code(x, y, z, t, a) return Float64(Float64(a * 120.0) + Float64(60.0 * Float64(Float64(y - x) / Float64(t - z)))) end
function tmp = code(x, y, z, t, a) tmp = (a * 120.0) + (60.0 * ((y - x) / (t - z))); end
code[x_, y_, z_, t_, a_] := N[(N[(a * 120.0), $MachinePrecision] + N[(60.0 * N[(N[(y - x), $MachinePrecision] / N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
a \cdot 120 + 60 \cdot \frac{y - x}{t - z}
\end{array}
Initial program 99.4%
associate-/l*99.8%
Simplified99.8%
Final simplification99.8%
(FPCore (x y z t a) :precision binary64 (+ (* a 120.0) (* (- x y) (/ 60.0 (- z t)))))
double code(double x, double y, double z, double t, double a) {
return (a * 120.0) + ((x - y) * (60.0 / (z - t)));
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
code = (a * 120.0d0) + ((x - y) * (60.0d0 / (z - t)))
end function
public static double code(double x, double y, double z, double t, double a) {
return (a * 120.0) + ((x - y) * (60.0 / (z - t)));
}
def code(x, y, z, t, a): return (a * 120.0) + ((x - y) * (60.0 / (z - t)))
function code(x, y, z, t, a) return Float64(Float64(a * 120.0) + Float64(Float64(x - y) * Float64(60.0 / Float64(z - t)))) end
function tmp = code(x, y, z, t, a) tmp = (a * 120.0) + ((x - y) * (60.0 / (z - t))); end
code[x_, y_, z_, t_, a_] := N[(N[(a * 120.0), $MachinePrecision] + N[(N[(x - y), $MachinePrecision] * N[(60.0 / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
a \cdot 120 + \left(x - y\right) \cdot \frac{60}{z - t}
\end{array}
Initial program 99.4%
*-commutative99.4%
associate-/l*99.8%
Applied egg-rr99.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.4%
associate-/l*99.8%
Simplified99.8%
Taylor expanded in z around inf 53.0%
Final simplification53.0%
(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 2024071
(FPCore (x y z t a)
:name "Data.Colour.RGB:hslsv from colour-2.3.3, B"
:precision binary64
:alt
(+ (/ 60.0 (/ (- z t) (- x y))) (* a 120.0))
(+ (/ (* 60.0 (- x y)) (- z t)) (* a 120.0)))