
(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 (fma a 120.0 (/ (* (- x y) -60.0) (- t z))))
double code(double x, double y, double z, double t, double a) {
return fma(a, 120.0, (((x - y) * -60.0) / (t - z)));
}
function code(x, y, z, t, a) return fma(a, 120.0, Float64(Float64(Float64(x - y) * -60.0) / Float64(t - z))) end
code[x_, y_, z_, t_, a_] := N[(a * 120.0 + N[(N[(N[(x - y), $MachinePrecision] * -60.0), $MachinePrecision] / N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\mathsf{fma}\left(a, 120, \frac{\left(x - y\right) \cdot -60}{t - z}\right)
\end{array}
Initial program 99.8%
lift-+.f64N/A
+-commutativeN/A
lift-*.f64N/A
lower-fma.f6499.8
lift-/.f64N/A
frac-2negN/A
lower-/.f64N/A
lift-*.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
lower-*.f64N/A
metadata-evalN/A
neg-sub0N/A
lift--.f64N/A
sub-negN/A
+-commutativeN/A
associate--r+N/A
neg-sub0N/A
remove-double-negN/A
lower--.f6499.8
Applied rewrites99.8%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (/ (* (- x y) 60.0) (- z t))))
(if (<= t_1 -2e+28)
(/ (- x y) (* (- t z) -0.016666666666666666))
(if (<= t_1 -2e-100)
(fma a 120.0 (/ (* y 60.0) t))
(if (<= t_1 5e+14) (* a 120.0) 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+28) {
tmp = (x - y) / ((t - z) * -0.016666666666666666);
} else if (t_1 <= -2e-100) {
tmp = fma(a, 120.0, ((y * 60.0) / t));
} else if (t_1 <= 5e+14) {
tmp = a * 120.0;
} 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+28) tmp = Float64(Float64(x - y) / Float64(Float64(t - z) * -0.016666666666666666)); elseif (t_1 <= -2e-100) tmp = fma(a, 120.0, Float64(Float64(y * 60.0) / t)); elseif (t_1 <= 5e+14) tmp = Float64(a * 120.0); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(N[(x - y), $MachinePrecision] * 60.0), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -2e+28], N[(N[(x - y), $MachinePrecision] / N[(N[(t - z), $MachinePrecision] * -0.016666666666666666), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, -2e-100], N[(a * 120.0 + N[(N[(y * 60.0), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 5e+14], N[(a * 120.0), $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^{+28}:\\
\;\;\;\;\frac{x - y}{\left(t - z\right) \cdot -0.016666666666666666}\\
\mathbf{elif}\;t\_1 \leq -2 \cdot 10^{-100}:\\
\;\;\;\;\mathsf{fma}\left(a, 120, \frac{y \cdot 60}{t}\right)\\
\mathbf{elif}\;t\_1 \leq 5 \cdot 10^{+14}:\\
\;\;\;\;a \cdot 120\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) < -1.99999999999999992e28Initial program 99.6%
Taylor expanded in a around 0
associate-*r/N/A
lower-/.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower--.f6485.1
Applied rewrites85.1%
Applied rewrites85.2%
if -1.99999999999999992e28 < (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) < -2e-100Initial program 99.8%
lift-+.f64N/A
+-commutativeN/A
lift-*.f64N/A
lower-fma.f6499.8
lift-/.f64N/A
frac-2negN/A
lower-/.f64N/A
lift-*.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
lower-*.f64N/A
metadata-evalN/A
neg-sub0N/A
lift--.f64N/A
sub-negN/A
+-commutativeN/A
associate--r+N/A
neg-sub0N/A
remove-double-negN/A
lower--.f6499.8
Applied rewrites99.8%
Taylor expanded in t around inf
lower-*.f64N/A
lower-/.f64N/A
lower--.f6471.3
Applied rewrites71.3%
Taylor expanded in x around 0
Applied rewrites69.0%
if -2e-100 < (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) < 5e14Initial program 99.9%
Taylor expanded in z around inf
lower-*.f6480.1
Applied rewrites80.1%
if 5e14 < (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) Initial program 99.8%
Taylor expanded in a around 0
associate-*r/N/A
lower-/.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower--.f6485.0
Applied rewrites85.0%
Final simplification80.8%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* -60.0 (/ (- x y) t)))
(t_2 (* (- x y) 60.0))
(t_3 (/ t_2 (- z t))))
(if (<= t_3 -2e+99)
t_1
(if (<= t_3 5e+24) (* a 120.0) (if (<= t_3 2e+105) t_1 (/ t_2 z))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = -60.0 * ((x - y) / t);
double t_2 = (x - y) * 60.0;
double t_3 = t_2 / (z - t);
double tmp;
if (t_3 <= -2e+99) {
tmp = t_1;
} else if (t_3 <= 5e+24) {
tmp = a * 120.0;
} else if (t_3 <= 2e+105) {
tmp = t_1;
} else {
tmp = t_2 / z;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = (-60.0d0) * ((x - y) / t)
t_2 = (x - y) * 60.0d0
t_3 = t_2 / (z - t)
if (t_3 <= (-2d+99)) then
tmp = t_1
else if (t_3 <= 5d+24) then
tmp = a * 120.0d0
else if (t_3 <= 2d+105) then
tmp = t_1
else
tmp = t_2 / z
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) / t);
double t_2 = (x - y) * 60.0;
double t_3 = t_2 / (z - t);
double tmp;
if (t_3 <= -2e+99) {
tmp = t_1;
} else if (t_3 <= 5e+24) {
tmp = a * 120.0;
} else if (t_3 <= 2e+105) {
tmp = t_1;
} else {
tmp = t_2 / z;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = -60.0 * ((x - y) / t) t_2 = (x - y) * 60.0 t_3 = t_2 / (z - t) tmp = 0 if t_3 <= -2e+99: tmp = t_1 elif t_3 <= 5e+24: tmp = a * 120.0 elif t_3 <= 2e+105: tmp = t_1 else: tmp = t_2 / z return tmp
function code(x, y, z, t, a) t_1 = Float64(-60.0 * Float64(Float64(x - y) / t)) t_2 = Float64(Float64(x - y) * 60.0) t_3 = Float64(t_2 / Float64(z - t)) tmp = 0.0 if (t_3 <= -2e+99) tmp = t_1; elseif (t_3 <= 5e+24) tmp = Float64(a * 120.0); elseif (t_3 <= 2e+105) tmp = t_1; else tmp = Float64(t_2 / z); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = -60.0 * ((x - y) / t); t_2 = (x - y) * 60.0; t_3 = t_2 / (z - t); tmp = 0.0; if (t_3 <= -2e+99) tmp = t_1; elseif (t_3 <= 5e+24) tmp = a * 120.0; elseif (t_3 <= 2e+105) tmp = t_1; else tmp = t_2 / z; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(-60.0 * N[(N[(x - y), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x - y), $MachinePrecision] * 60.0), $MachinePrecision]}, Block[{t$95$3 = N[(t$95$2 / N[(z - t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$3, -2e+99], t$95$1, If[LessEqual[t$95$3, 5e+24], N[(a * 120.0), $MachinePrecision], If[LessEqual[t$95$3, 2e+105], t$95$1, N[(t$95$2 / z), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := -60 \cdot \frac{x - y}{t}\\
t_2 := \left(x - y\right) \cdot 60\\
t_3 := \frac{t\_2}{z - t}\\
\mathbf{if}\;t\_3 \leq -2 \cdot 10^{+99}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t\_3 \leq 5 \cdot 10^{+24}:\\
\;\;\;\;a \cdot 120\\
\mathbf{elif}\;t\_3 \leq 2 \cdot 10^{+105}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\frac{t\_2}{z}\\
\end{array}
\end{array}
if (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) < -1.9999999999999999e99 or 5.00000000000000045e24 < (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) < 1.9999999999999999e105Initial program 99.6%
Taylor expanded in a around 0
associate-*r/N/A
lower-/.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower--.f6494.0
Applied rewrites94.0%
Taylor expanded in z around 0
Applied rewrites67.9%
if -1.9999999999999999e99 < (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) < 5.00000000000000045e24Initial program 99.8%
Taylor expanded in z around inf
lower-*.f6469.0
Applied rewrites69.0%
if 1.9999999999999999e105 < (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) Initial program 99.8%
Taylor expanded in a around 0
associate-*r/N/A
lower-/.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower--.f6485.1
Applied rewrites85.1%
Taylor expanded in z around inf
Applied rewrites57.5%
Final simplification67.3%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (/ (* (- x y) 60.0) (- z t))))
(if (<= t_1 -2e+28)
(/ (- x y) (* (- t z) -0.016666666666666666))
(if (<= t_1 5e+14) (* a 120.0) 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+28) {
tmp = (x - y) / ((t - z) * -0.016666666666666666);
} else if (t_1 <= 5e+14) {
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 = ((x - y) * 60.0d0) / (z - t)
if (t_1 <= (-2d+28)) then
tmp = (x - y) / ((t - z) * (-0.016666666666666666d0))
else if (t_1 <= 5d+14) then
tmp = a * 120.0d0
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = ((x - y) * 60.0) / (z - t);
double tmp;
if (t_1 <= -2e+28) {
tmp = (x - y) / ((t - z) * -0.016666666666666666);
} else if (t_1 <= 5e+14) {
tmp = a * 120.0;
} 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+28: tmp = (x - y) / ((t - z) * -0.016666666666666666) elif t_1 <= 5e+14: tmp = a * 120.0 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+28) tmp = Float64(Float64(x - y) / Float64(Float64(t - z) * -0.016666666666666666)); elseif (t_1 <= 5e+14) tmp = Float64(a * 120.0); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = ((x - y) * 60.0) / (z - t); tmp = 0.0; if (t_1 <= -2e+28) tmp = (x - y) / ((t - z) * -0.016666666666666666); elseif (t_1 <= 5e+14) tmp = a * 120.0; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(N[(x - y), $MachinePrecision] * 60.0), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -2e+28], N[(N[(x - y), $MachinePrecision] / N[(N[(t - z), $MachinePrecision] * -0.016666666666666666), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 5e+14], N[(a * 120.0), $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^{+28}:\\
\;\;\;\;\frac{x - y}{\left(t - z\right) \cdot -0.016666666666666666}\\
\mathbf{elif}\;t\_1 \leq 5 \cdot 10^{+14}:\\
\;\;\;\;a \cdot 120\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) < -1.99999999999999992e28Initial program 99.6%
Taylor expanded in a around 0
associate-*r/N/A
lower-/.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower--.f6485.1
Applied rewrites85.1%
Applied rewrites85.2%
if -1.99999999999999992e28 < (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) < 5e14Initial program 99.8%
Taylor expanded in z around inf
lower-*.f6474.4
Applied rewrites74.4%
if 5e14 < (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) Initial program 99.8%
Taylor expanded in a around 0
associate-*r/N/A
lower-/.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower--.f6485.0
Applied rewrites85.0%
Final simplification79.1%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (/ (* (- x y) 60.0) (- z t))))
(if (<= t_1 -2e+28)
(* (- x y) (/ -60.0 (- t z)))
(if (<= t_1 5e+14) (* a 120.0) 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+28) {
tmp = (x - y) * (-60.0 / (t - z));
} else if (t_1 <= 5e+14) {
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 = ((x - y) * 60.0d0) / (z - t)
if (t_1 <= (-2d+28)) then
tmp = (x - y) * ((-60.0d0) / (t - z))
else if (t_1 <= 5d+14) then
tmp = a * 120.0d0
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = ((x - y) * 60.0) / (z - t);
double tmp;
if (t_1 <= -2e+28) {
tmp = (x - y) * (-60.0 / (t - z));
} else if (t_1 <= 5e+14) {
tmp = a * 120.0;
} 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+28: tmp = (x - y) * (-60.0 / (t - z)) elif t_1 <= 5e+14: tmp = a * 120.0 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+28) tmp = Float64(Float64(x - y) * Float64(-60.0 / Float64(t - z))); elseif (t_1 <= 5e+14) tmp = Float64(a * 120.0); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = ((x - y) * 60.0) / (z - t); tmp = 0.0; if (t_1 <= -2e+28) tmp = (x - y) * (-60.0 / (t - z)); elseif (t_1 <= 5e+14) tmp = a * 120.0; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(N[(x - y), $MachinePrecision] * 60.0), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -2e+28], N[(N[(x - y), $MachinePrecision] * N[(-60.0 / N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 5e+14], N[(a * 120.0), $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^{+28}:\\
\;\;\;\;\left(x - y\right) \cdot \frac{-60}{t - z}\\
\mathbf{elif}\;t\_1 \leq 5 \cdot 10^{+14}:\\
\;\;\;\;a \cdot 120\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) < -1.99999999999999992e28Initial program 99.6%
Taylor expanded in a around 0
associate-*r/N/A
lower-/.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower--.f6485.1
Applied rewrites85.1%
Applied rewrites85.1%
if -1.99999999999999992e28 < (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) < 5e14Initial program 99.8%
Taylor expanded in z around inf
lower-*.f6474.4
Applied rewrites74.4%
if 5e14 < (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) Initial program 99.8%
Taylor expanded in a around 0
associate-*r/N/A
lower-/.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower--.f6485.0
Applied rewrites85.0%
Final simplification79.1%
(FPCore (x y z t a) :precision binary64 (let* ((t_1 (* (- x y) (/ -60.0 (- t z)))) (t_2 (/ (* (- x y) 60.0) (- z t)))) (if (<= t_2 -2e+28) t_1 (if (<= t_2 5e+14) (* a 120.0) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = (x - y) * (-60.0 / (t - z));
double t_2 = ((x - y) * 60.0) / (z - t);
double tmp;
if (t_2 <= -2e+28) {
tmp = t_1;
} else if (t_2 <= 5e+14) {
tmp = a * 120.0;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (x - y) * ((-60.0d0) / (t - z))
t_2 = ((x - y) * 60.0d0) / (z - t)
if (t_2 <= (-2d+28)) then
tmp = t_1
else if (t_2 <= 5d+14) then
tmp = a * 120.0d0
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = (x - y) * (-60.0 / (t - z));
double t_2 = ((x - y) * 60.0) / (z - t);
double tmp;
if (t_2 <= -2e+28) {
tmp = t_1;
} else if (t_2 <= 5e+14) {
tmp = a * 120.0;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = (x - y) * (-60.0 / (t - z)) t_2 = ((x - y) * 60.0) / (z - t) tmp = 0 if t_2 <= -2e+28: tmp = t_1 elif t_2 <= 5e+14: tmp = a * 120.0 else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(Float64(x - y) * Float64(-60.0 / Float64(t - z))) t_2 = Float64(Float64(Float64(x - y) * 60.0) / Float64(z - t)) tmp = 0.0 if (t_2 <= -2e+28) tmp = t_1; elseif (t_2 <= 5e+14) tmp = Float64(a * 120.0); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = (x - y) * (-60.0 / (t - z)); t_2 = ((x - y) * 60.0) / (z - t); tmp = 0.0; if (t_2 <= -2e+28) tmp = t_1; elseif (t_2 <= 5e+14) tmp = a * 120.0; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(x - y), $MachinePrecision] * N[(-60.0 / N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(x - y), $MachinePrecision] * 60.0), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, -2e+28], t$95$1, If[LessEqual[t$95$2, 5e+14], N[(a * 120.0), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x - y\right) \cdot \frac{-60}{t - z}\\
t_2 := \frac{\left(x - y\right) \cdot 60}{z - t}\\
\mathbf{if}\;t\_2 \leq -2 \cdot 10^{+28}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t\_2 \leq 5 \cdot 10^{+14}:\\
\;\;\;\;a \cdot 120\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) < -1.99999999999999992e28 or 5e14 < (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) Initial program 99.7%
Taylor expanded in a around 0
associate-*r/N/A
lower-/.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower--.f6485.1
Applied rewrites85.1%
Applied rewrites85.0%
if -1.99999999999999992e28 < (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) < 5e14Initial program 99.8%
Taylor expanded in z around inf
lower-*.f6474.4
Applied rewrites74.4%
Final simplification79.1%
(FPCore (x y z t a) :precision binary64 (let* ((t_1 (* -60.0 (/ (- x y) t))) (t_2 (/ (* (- x y) 60.0) (- z t)))) (if (<= t_2 -2e+99) t_1 (if (<= t_2 5e+24) (* a 120.0) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = -60.0 * ((x - y) / t);
double t_2 = ((x - y) * 60.0) / (z - t);
double tmp;
if (t_2 <= -2e+99) {
tmp = t_1;
} else if (t_2 <= 5e+24) {
tmp = a * 120.0;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (-60.0d0) * ((x - y) / t)
t_2 = ((x - y) * 60.0d0) / (z - t)
if (t_2 <= (-2d+99)) then
tmp = t_1
else if (t_2 <= 5d+24) then
tmp = a * 120.0d0
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = -60.0 * ((x - y) / t);
double t_2 = ((x - y) * 60.0) / (z - t);
double tmp;
if (t_2 <= -2e+99) {
tmp = t_1;
} else if (t_2 <= 5e+24) {
tmp = a * 120.0;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = -60.0 * ((x - y) / t) t_2 = ((x - y) * 60.0) / (z - t) tmp = 0 if t_2 <= -2e+99: tmp = t_1 elif t_2 <= 5e+24: tmp = a * 120.0 else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(-60.0 * Float64(Float64(x - y) / t)) t_2 = Float64(Float64(Float64(x - y) * 60.0) / Float64(z - t)) tmp = 0.0 if (t_2 <= -2e+99) tmp = t_1; elseif (t_2 <= 5e+24) tmp = Float64(a * 120.0); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = -60.0 * ((x - y) / t); t_2 = ((x - y) * 60.0) / (z - t); tmp = 0.0; if (t_2 <= -2e+99) tmp = t_1; elseif (t_2 <= 5e+24) tmp = a * 120.0; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(-60.0 * N[(N[(x - y), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(x - y), $MachinePrecision] * 60.0), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, -2e+99], t$95$1, If[LessEqual[t$95$2, 5e+24], N[(a * 120.0), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := -60 \cdot \frac{x - y}{t}\\
t_2 := \frac{\left(x - y\right) \cdot 60}{z - t}\\
\mathbf{if}\;t\_2 \leq -2 \cdot 10^{+99}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t\_2 \leq 5 \cdot 10^{+24}:\\
\;\;\;\;a \cdot 120\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) < -1.9999999999999999e99 or 5.00000000000000045e24 < (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) Initial program 99.7%
Taylor expanded in a around 0
associate-*r/N/A
lower-/.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower--.f6490.8
Applied rewrites90.8%
Taylor expanded in z around 0
Applied rewrites58.5%
if -1.9999999999999999e99 < (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) < 5.00000000000000045e24Initial program 99.8%
Taylor expanded in z around inf
lower-*.f6469.0
Applied rewrites69.0%
Final simplification65.4%
(FPCore (x y z t a) :precision binary64 (let* ((t_1 (* -60.0 (/ x (- t z)))) (t_2 (/ (* (- x y) 60.0) (- z t)))) (if (<= t_2 -2e+28) t_1 (if (<= t_2 5e+14) (* a 120.0) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = -60.0 * (x / (t - z));
double t_2 = ((x - y) * 60.0) / (z - t);
double tmp;
if (t_2 <= -2e+28) {
tmp = t_1;
} else if (t_2 <= 5e+14) {
tmp = a * 120.0;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (-60.0d0) * (x / (t - z))
t_2 = ((x - y) * 60.0d0) / (z - t)
if (t_2 <= (-2d+28)) then
tmp = t_1
else if (t_2 <= 5d+14) then
tmp = a * 120.0d0
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = -60.0 * (x / (t - z));
double t_2 = ((x - y) * 60.0) / (z - t);
double tmp;
if (t_2 <= -2e+28) {
tmp = t_1;
} else if (t_2 <= 5e+14) {
tmp = a * 120.0;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = -60.0 * (x / (t - z)) t_2 = ((x - y) * 60.0) / (z - t) tmp = 0 if t_2 <= -2e+28: tmp = t_1 elif t_2 <= 5e+14: tmp = a * 120.0 else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(-60.0 * Float64(x / Float64(t - z))) t_2 = Float64(Float64(Float64(x - y) * 60.0) / Float64(z - t)) tmp = 0.0 if (t_2 <= -2e+28) tmp = t_1; elseif (t_2 <= 5e+14) tmp = Float64(a * 120.0); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = -60.0 * (x / (t - z)); t_2 = ((x - y) * 60.0) / (z - t); tmp = 0.0; if (t_2 <= -2e+28) tmp = t_1; elseif (t_2 <= 5e+14) 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[(x / N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(x - y), $MachinePrecision] * 60.0), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, -2e+28], t$95$1, If[LessEqual[t$95$2, 5e+14], N[(a * 120.0), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := -60 \cdot \frac{x}{t - z}\\
t_2 := \frac{\left(x - y\right) \cdot 60}{z - t}\\
\mathbf{if}\;t\_2 \leq -2 \cdot 10^{+28}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t\_2 \leq 5 \cdot 10^{+14}:\\
\;\;\;\;a \cdot 120\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) < -1.99999999999999992e28 or 5e14 < (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) Initial program 99.7%
lift-+.f64N/A
+-commutativeN/A
lift-*.f64N/A
lower-fma.f6499.7
lift-/.f64N/A
frac-2negN/A
lower-/.f64N/A
lift-*.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
lower-*.f64N/A
metadata-evalN/A
neg-sub0N/A
lift--.f64N/A
sub-negN/A
+-commutativeN/A
associate--r+N/A
neg-sub0N/A
remove-double-negN/A
lower--.f6499.7
Applied rewrites99.7%
Taylor expanded in x around inf
lower-*.f64N/A
lower-/.f64N/A
lower--.f6445.3
Applied rewrites45.3%
if -1.99999999999999992e28 < (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) < 5e14Initial program 99.8%
Taylor expanded in z around inf
lower-*.f6474.4
Applied rewrites74.4%
Final simplification61.5%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (/ (* (- x y) 60.0) (- z t))))
(if (<= t_1 -2e+99)
(* -60.0 (/ x t))
(if (<= t_1 4e+163) (* a 120.0) (* x (/ 60.0 z))))))
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+99) {
tmp = -60.0 * (x / t);
} else if (t_1 <= 4e+163) {
tmp = a * 120.0;
} else {
tmp = x * (60.0 / z);
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = ((x - y) * 60.0d0) / (z - t)
if (t_1 <= (-2d+99)) then
tmp = (-60.0d0) * (x / t)
else if (t_1 <= 4d+163) then
tmp = a * 120.0d0
else
tmp = x * (60.0d0 / z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = ((x - y) * 60.0) / (z - t);
double tmp;
if (t_1 <= -2e+99) {
tmp = -60.0 * (x / t);
} else if (t_1 <= 4e+163) {
tmp = a * 120.0;
} else {
tmp = x * (60.0 / z);
}
return tmp;
}
def code(x, y, z, t, a): t_1 = ((x - y) * 60.0) / (z - t) tmp = 0 if t_1 <= -2e+99: tmp = -60.0 * (x / t) elif t_1 <= 4e+163: tmp = a * 120.0 else: tmp = x * (60.0 / z) 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+99) tmp = Float64(-60.0 * Float64(x / t)); elseif (t_1 <= 4e+163) tmp = Float64(a * 120.0); else tmp = Float64(x * Float64(60.0 / z)); 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+99) tmp = -60.0 * (x / t); elseif (t_1 <= 4e+163) tmp = a * 120.0; else tmp = x * (60.0 / z); 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+99], N[(-60.0 * N[(x / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 4e+163], N[(a * 120.0), $MachinePrecision], N[(x * N[(60.0 / z), $MachinePrecision]), $MachinePrecision]]]]
\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^{+99}:\\
\;\;\;\;-60 \cdot \frac{x}{t}\\
\mathbf{elif}\;t\_1 \leq 4 \cdot 10^{+163}:\\
\;\;\;\;a \cdot 120\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{60}{z}\\
\end{array}
\end{array}
if (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) < -1.9999999999999999e99Initial program 99.5%
lift-+.f64N/A
+-commutativeN/A
lift-*.f64N/A
lower-fma.f6499.5
lift-/.f64N/A
frac-2negN/A
lower-/.f64N/A
lift-*.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
lower-*.f64N/A
metadata-evalN/A
neg-sub0N/A
lift--.f64N/A
sub-negN/A
+-commutativeN/A
associate--r+N/A
neg-sub0N/A
remove-double-negN/A
lower--.f6499.5
Applied rewrites99.5%
Taylor expanded in x around inf
lower-*.f64N/A
lower-/.f64N/A
lower--.f6450.2
Applied rewrites50.2%
Taylor expanded in t around inf
Applied rewrites40.6%
if -1.9999999999999999e99 < (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) < 3.9999999999999998e163Initial program 99.8%
Taylor expanded in z around inf
lower-*.f6463.8
Applied rewrites63.8%
if 3.9999999999999998e163 < (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) Initial program 99.8%
lift-+.f64N/A
+-commutativeN/A
lift-*.f64N/A
lower-fma.f6499.8
lift-/.f64N/A
frac-2negN/A
lower-/.f64N/A
lift-*.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
lower-*.f64N/A
metadata-evalN/A
neg-sub0N/A
lift--.f64N/A
sub-negN/A
+-commutativeN/A
associate--r+N/A
neg-sub0N/A
remove-double-negN/A
lower--.f6499.8
Applied rewrites99.8%
Taylor expanded in x around inf
lower-*.f64N/A
lower-/.f64N/A
lower--.f6450.6
Applied rewrites50.6%
Taylor expanded in t around inf
Applied rewrites22.8%
Taylor expanded in t around 0
Applied rewrites43.1%
Final simplification58.2%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (/ (* (- x y) 60.0) (- z t))))
(if (<= t_1 -2e+99)
(* x (/ -60.0 t))
(if (<= t_1 4e+163) (* a 120.0) (* x (/ 60.0 z))))))
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+99) {
tmp = x * (-60.0 / t);
} else if (t_1 <= 4e+163) {
tmp = a * 120.0;
} else {
tmp = x * (60.0 / z);
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = ((x - y) * 60.0d0) / (z - t)
if (t_1 <= (-2d+99)) then
tmp = x * ((-60.0d0) / t)
else if (t_1 <= 4d+163) then
tmp = a * 120.0d0
else
tmp = x * (60.0d0 / z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = ((x - y) * 60.0) / (z - t);
double tmp;
if (t_1 <= -2e+99) {
tmp = x * (-60.0 / t);
} else if (t_1 <= 4e+163) {
tmp = a * 120.0;
} else {
tmp = x * (60.0 / z);
}
return tmp;
}
def code(x, y, z, t, a): t_1 = ((x - y) * 60.0) / (z - t) tmp = 0 if t_1 <= -2e+99: tmp = x * (-60.0 / t) elif t_1 <= 4e+163: tmp = a * 120.0 else: tmp = x * (60.0 / z) 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+99) tmp = Float64(x * Float64(-60.0 / t)); elseif (t_1 <= 4e+163) tmp = Float64(a * 120.0); else tmp = Float64(x * Float64(60.0 / z)); 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+99) tmp = x * (-60.0 / t); elseif (t_1 <= 4e+163) tmp = a * 120.0; else tmp = x * (60.0 / z); 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+99], N[(x * N[(-60.0 / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 4e+163], N[(a * 120.0), $MachinePrecision], N[(x * N[(60.0 / z), $MachinePrecision]), $MachinePrecision]]]]
\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^{+99}:\\
\;\;\;\;x \cdot \frac{-60}{t}\\
\mathbf{elif}\;t\_1 \leq 4 \cdot 10^{+163}:\\
\;\;\;\;a \cdot 120\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{60}{z}\\
\end{array}
\end{array}
if (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) < -1.9999999999999999e99Initial program 99.5%
lift-+.f64N/A
+-commutativeN/A
lift-*.f64N/A
lower-fma.f6499.5
lift-/.f64N/A
frac-2negN/A
lower-/.f64N/A
lift-*.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
lower-*.f64N/A
metadata-evalN/A
neg-sub0N/A
lift--.f64N/A
sub-negN/A
+-commutativeN/A
associate--r+N/A
neg-sub0N/A
remove-double-negN/A
lower--.f6499.5
Applied rewrites99.5%
Taylor expanded in x around inf
lower-*.f64N/A
lower-/.f64N/A
lower--.f6450.2
Applied rewrites50.2%
Taylor expanded in t around inf
Applied rewrites40.5%
Applied rewrites40.5%
if -1.9999999999999999e99 < (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) < 3.9999999999999998e163Initial program 99.8%
Taylor expanded in z around inf
lower-*.f6463.8
Applied rewrites63.8%
if 3.9999999999999998e163 < (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) Initial program 99.8%
lift-+.f64N/A
+-commutativeN/A
lift-*.f64N/A
lower-fma.f6499.8
lift-/.f64N/A
frac-2negN/A
lower-/.f64N/A
lift-*.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
lower-*.f64N/A
metadata-evalN/A
neg-sub0N/A
lift--.f64N/A
sub-negN/A
+-commutativeN/A
associate--r+N/A
neg-sub0N/A
remove-double-negN/A
lower--.f6499.8
Applied rewrites99.8%
Taylor expanded in x around inf
lower-*.f64N/A
lower-/.f64N/A
lower--.f6450.6
Applied rewrites50.6%
Taylor expanded in t around inf
Applied rewrites22.8%
Taylor expanded in t around 0
Applied rewrites43.1%
Final simplification58.2%
(FPCore (x y z t a) :precision binary64 (let* ((t_1 (* x (/ -60.0 t))) (t_2 (/ (* (- x y) 60.0) (- z t)))) (if (<= t_2 -2e+99) t_1 (if (<= t_2 2e+213) (* a 120.0) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x * (-60.0 / t);
double t_2 = ((x - y) * 60.0) / (z - t);
double tmp;
if (t_2 <= -2e+99) {
tmp = t_1;
} else if (t_2 <= 2e+213) {
tmp = a * 120.0;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x * ((-60.0d0) / t)
t_2 = ((x - y) * 60.0d0) / (z - t)
if (t_2 <= (-2d+99)) then
tmp = t_1
else if (t_2 <= 2d+213) then
tmp = a * 120.0d0
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x * (-60.0 / t);
double t_2 = ((x - y) * 60.0) / (z - t);
double tmp;
if (t_2 <= -2e+99) {
tmp = t_1;
} else if (t_2 <= 2e+213) {
tmp = a * 120.0;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x * (-60.0 / t) t_2 = ((x - y) * 60.0) / (z - t) tmp = 0 if t_2 <= -2e+99: tmp = t_1 elif t_2 <= 2e+213: tmp = a * 120.0 else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x * Float64(-60.0 / t)) t_2 = Float64(Float64(Float64(x - y) * 60.0) / Float64(z - t)) tmp = 0.0 if (t_2 <= -2e+99) tmp = t_1; elseif (t_2 <= 2e+213) tmp = Float64(a * 120.0); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x * (-60.0 / t); t_2 = ((x - y) * 60.0) / (z - t); tmp = 0.0; if (t_2 <= -2e+99) tmp = t_1; elseif (t_2 <= 2e+213) tmp = a * 120.0; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x * N[(-60.0 / t), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(x - y), $MachinePrecision] * 60.0), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, -2e+99], t$95$1, If[LessEqual[t$95$2, 2e+213], N[(a * 120.0), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \frac{-60}{t}\\
t_2 := \frac{\left(x - y\right) \cdot 60}{z - t}\\
\mathbf{if}\;t\_2 \leq -2 \cdot 10^{+99}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t\_2 \leq 2 \cdot 10^{+213}:\\
\;\;\;\;a \cdot 120\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) < -1.9999999999999999e99 or 1.99999999999999997e213 < (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) Initial program 99.6%
lift-+.f64N/A
+-commutativeN/A
lift-*.f64N/A
lower-fma.f6499.6
lift-/.f64N/A
frac-2negN/A
lower-/.f64N/A
lift-*.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
lower-*.f64N/A
metadata-evalN/A
neg-sub0N/A
lift--.f64N/A
sub-negN/A
+-commutativeN/A
associate--r+N/A
neg-sub0N/A
remove-double-negN/A
lower--.f6499.6
Applied rewrites99.6%
Taylor expanded in x around inf
lower-*.f64N/A
lower-/.f64N/A
lower--.f6451.2
Applied rewrites51.2%
Taylor expanded in t around inf
Applied rewrites39.0%
Applied rewrites39.0%
if -1.9999999999999999e99 < (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) < 1.99999999999999997e213Initial program 99.8%
Taylor expanded in z around inf
lower-*.f6461.6
Applied rewrites61.6%
Final simplification56.7%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (/ (- x y) t)))
(if (<= t -6e-77)
(fma a 120.0 (* -60.0 t_1))
(if (<= t 2.15e-32)
(fma a 120.0 (/ (* (- x y) 60.0) z))
(fma -60.0 t_1 (* a 120.0))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = (x - y) / t;
double tmp;
if (t <= -6e-77) {
tmp = fma(a, 120.0, (-60.0 * t_1));
} else if (t <= 2.15e-32) {
tmp = fma(a, 120.0, (((x - y) * 60.0) / z));
} else {
tmp = fma(-60.0, t_1, (a * 120.0));
}
return tmp;
}
function code(x, y, z, t, a) t_1 = Float64(Float64(x - y) / t) tmp = 0.0 if (t <= -6e-77) tmp = fma(a, 120.0, Float64(-60.0 * t_1)); elseif (t <= 2.15e-32) tmp = fma(a, 120.0, Float64(Float64(Float64(x - y) * 60.0) / z)); else tmp = fma(-60.0, t_1, Float64(a * 120.0)); end return tmp end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(x - y), $MachinePrecision] / t), $MachinePrecision]}, If[LessEqual[t, -6e-77], N[(a * 120.0 + N[(-60.0 * t$95$1), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.15e-32], N[(a * 120.0 + N[(N[(N[(x - y), $MachinePrecision] * 60.0), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], N[(-60.0 * t$95$1 + N[(a * 120.0), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x - y}{t}\\
\mathbf{if}\;t \leq -6 \cdot 10^{-77}:\\
\;\;\;\;\mathsf{fma}\left(a, 120, -60 \cdot t\_1\right)\\
\mathbf{elif}\;t \leq 2.15 \cdot 10^{-32}:\\
\;\;\;\;\mathsf{fma}\left(a, 120, \frac{\left(x - y\right) \cdot 60}{z}\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(-60, t\_1, a \cdot 120\right)\\
\end{array}
\end{array}
if t < -6.00000000000000033e-77Initial program 99.8%
lift-+.f64N/A
+-commutativeN/A
lift-*.f64N/A
lower-fma.f6499.9
lift-/.f64N/A
frac-2negN/A
lower-/.f64N/A
lift-*.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
lower-*.f64N/A
metadata-evalN/A
neg-sub0N/A
lift--.f64N/A
sub-negN/A
+-commutativeN/A
associate--r+N/A
neg-sub0N/A
remove-double-negN/A
lower--.f6499.9
Applied rewrites99.9%
Taylor expanded in t around inf
lower-*.f64N/A
lower-/.f64N/A
lower--.f6488.1
Applied rewrites88.1%
if -6.00000000000000033e-77 < t < 2.14999999999999995e-32Initial program 99.8%
lift-+.f64N/A
+-commutativeN/A
lift-*.f64N/A
lower-fma.f6499.8
lift-/.f64N/A
frac-2negN/A
lower-/.f64N/A
lift-*.f64N/A
*-commutativeN/A
distribute-rgt-neg-inN/A
lower-*.f64N/A
metadata-evalN/A
neg-sub0N/A
lift--.f64N/A
sub-negN/A
+-commutativeN/A
associate--r+N/A
neg-sub0N/A
remove-double-negN/A
lower--.f6499.8
Applied rewrites99.8%
Taylor expanded in t around 0
associate-*r/N/A
lower-/.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower--.f6490.3
Applied rewrites90.3%
if 2.14999999999999995e-32 < t Initial program 99.7%
Taylor expanded in z around 0
lower-fma.f64N/A
lower-/.f64N/A
lower--.f64N/A
lower-*.f6493.3
Applied rewrites93.3%
Final simplification90.4%
(FPCore (x y z t a)
:precision binary64
(if (<= y -1.02e+29)
(/ (* (- x y) 60.0) (- z t))
(if (<= y 1.85e+111)
(fma 60.0 (/ x (- z t)) (* a 120.0))
(* (- x y) (/ -60.0 (- t z))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (y <= -1.02e+29) {
tmp = ((x - y) * 60.0) / (z - t);
} else if (y <= 1.85e+111) {
tmp = fma(60.0, (x / (z - t)), (a * 120.0));
} else {
tmp = (x - y) * (-60.0 / (t - z));
}
return tmp;
}
function code(x, y, z, t, a) tmp = 0.0 if (y <= -1.02e+29) tmp = Float64(Float64(Float64(x - y) * 60.0) / Float64(z - t)); elseif (y <= 1.85e+111) tmp = fma(60.0, Float64(x / Float64(z - t)), Float64(a * 120.0)); else tmp = Float64(Float64(x - y) * Float64(-60.0 / Float64(t - z))); end return tmp end
code[x_, y_, z_, t_, a_] := If[LessEqual[y, -1.02e+29], N[(N[(N[(x - y), $MachinePrecision] * 60.0), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.85e+111], N[(60.0 * N[(x / N[(z - t), $MachinePrecision]), $MachinePrecision] + N[(a * 120.0), $MachinePrecision]), $MachinePrecision], N[(N[(x - y), $MachinePrecision] * N[(-60.0 / N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.02 \cdot 10^{+29}:\\
\;\;\;\;\frac{\left(x - y\right) \cdot 60}{z - t}\\
\mathbf{elif}\;y \leq 1.85 \cdot 10^{+111}:\\
\;\;\;\;\mathsf{fma}\left(60, \frac{x}{z - t}, a \cdot 120\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x - y\right) \cdot \frac{-60}{t - z}\\
\end{array}
\end{array}
if y < -1.0200000000000001e29Initial program 99.9%
Taylor expanded in a around 0
associate-*r/N/A
lower-/.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower--.f6469.2
Applied rewrites69.2%
if -1.0200000000000001e29 < y < 1.8500000000000001e111Initial program 99.8%
Taylor expanded in y around 0
lower-fma.f64N/A
lower-/.f64N/A
lower--.f64N/A
lower-*.f6493.0
Applied rewrites93.0%
if 1.8500000000000001e111 < y Initial program 99.5%
Taylor expanded in a around 0
associate-*r/N/A
lower-/.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower--.f6485.6
Applied rewrites85.6%
Applied rewrites85.7%
Final simplification86.8%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (fma -60.0 (/ (- x y) t) (* a 120.0))))
(if (<= t -1.02e-63)
t_1
(if (<= t 1.4e-31) (/ (- x y) (* (- t z) -0.016666666666666666)) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = fma(-60.0, ((x - y) / t), (a * 120.0));
double tmp;
if (t <= -1.02e-63) {
tmp = t_1;
} else if (t <= 1.4e-31) {
tmp = (x - y) / ((t - z) * -0.016666666666666666);
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a) t_1 = fma(-60.0, Float64(Float64(x - y) / t), Float64(a * 120.0)) tmp = 0.0 if (t <= -1.02e-63) tmp = t_1; elseif (t <= 1.4e-31) tmp = Float64(Float64(x - y) / Float64(Float64(t - z) * -0.016666666666666666)); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(-60.0 * N[(N[(x - y), $MachinePrecision] / t), $MachinePrecision] + N[(a * 120.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.02e-63], t$95$1, If[LessEqual[t, 1.4e-31], N[(N[(x - y), $MachinePrecision] / N[(N[(t - z), $MachinePrecision] * -0.016666666666666666), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-60, \frac{x - y}{t}, a \cdot 120\right)\\
\mathbf{if}\;t \leq -1.02 \cdot 10^{-63}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 1.4 \cdot 10^{-31}:\\
\;\;\;\;\frac{x - y}{\left(t - z\right) \cdot -0.016666666666666666}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -1.01999999999999997e-63 or 1.3999999999999999e-31 < t Initial program 99.8%
Taylor expanded in z around 0
lower-fma.f64N/A
lower-/.f64N/A
lower--.f64N/A
lower-*.f6490.2
Applied rewrites90.2%
if -1.01999999999999997e-63 < t < 1.3999999999999999e-31Initial program 99.8%
Taylor expanded in a around 0
associate-*r/N/A
lower-/.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower--.f6469.6
Applied rewrites69.6%
Applied rewrites69.7%
Final simplification82.1%
(FPCore (x y z t a) :precision binary64 (let* ((t_1 (/ y (* (- t z) 0.016666666666666666)))) (if (<= y -5.1e+24) t_1 (if (<= y 1.85e+111) (* a 120.0) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = y / ((t - z) * 0.016666666666666666);
double tmp;
if (y <= -5.1e+24) {
tmp = t_1;
} else if (y <= 1.85e+111) {
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 = y / ((t - z) * 0.016666666666666666d0)
if (y <= (-5.1d+24)) then
tmp = t_1
else if (y <= 1.85d+111) 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 = y / ((t - z) * 0.016666666666666666);
double tmp;
if (y <= -5.1e+24) {
tmp = t_1;
} else if (y <= 1.85e+111) {
tmp = a * 120.0;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = y / ((t - z) * 0.016666666666666666) tmp = 0 if y <= -5.1e+24: tmp = t_1 elif y <= 1.85e+111: tmp = a * 120.0 else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(y / Float64(Float64(t - z) * 0.016666666666666666)) tmp = 0.0 if (y <= -5.1e+24) tmp = t_1; elseif (y <= 1.85e+111) tmp = Float64(a * 120.0); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = y / ((t - z) * 0.016666666666666666); tmp = 0.0; if (y <= -5.1e+24) tmp = t_1; elseif (y <= 1.85e+111) tmp = a * 120.0; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(y / N[(N[(t - z), $MachinePrecision] * 0.016666666666666666), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -5.1e+24], t$95$1, If[LessEqual[y, 1.85e+111], N[(a * 120.0), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{y}{\left(t - z\right) \cdot 0.016666666666666666}\\
\mathbf{if}\;y \leq -5.1 \cdot 10^{+24}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 1.85 \cdot 10^{+111}:\\
\;\;\;\;a \cdot 120\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -5.0999999999999995e24 or 1.8500000000000001e111 < y Initial program 99.7%
Taylor expanded in a around 0
associate-*r/N/A
lower-/.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower--.f6476.6
Applied rewrites76.6%
Applied rewrites76.6%
Taylor expanded in x around 0
Applied rewrites62.0%
Applied rewrites62.1%
if -5.0999999999999995e24 < y < 1.8500000000000001e111Initial program 99.8%
Taylor expanded in z around inf
lower-*.f6463.4
Applied rewrites63.4%
Final simplification62.9%
(FPCore (x y z t a) :precision binary64 (let* ((t_1 (* y (/ 60.0 (- t z))))) (if (<= y -5.1e+24) t_1 (if (<= y 1.85e+111) (* a 120.0) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = y * (60.0 / (t - z));
double tmp;
if (y <= -5.1e+24) {
tmp = t_1;
} else if (y <= 1.85e+111) {
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 = y * (60.0d0 / (t - z))
if (y <= (-5.1d+24)) then
tmp = t_1
else if (y <= 1.85d+111) 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 = y * (60.0 / (t - z));
double tmp;
if (y <= -5.1e+24) {
tmp = t_1;
} else if (y <= 1.85e+111) {
tmp = a * 120.0;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = y * (60.0 / (t - z)) tmp = 0 if y <= -5.1e+24: tmp = t_1 elif y <= 1.85e+111: tmp = a * 120.0 else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(y * Float64(60.0 / Float64(t - z))) tmp = 0.0 if (y <= -5.1e+24) tmp = t_1; elseif (y <= 1.85e+111) tmp = Float64(a * 120.0); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = y * (60.0 / (t - z)); tmp = 0.0; if (y <= -5.1e+24) tmp = t_1; elseif (y <= 1.85e+111) tmp = a * 120.0; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(y * N[(60.0 / N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -5.1e+24], t$95$1, If[LessEqual[y, 1.85e+111], N[(a * 120.0), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \frac{60}{t - z}\\
\mathbf{if}\;y \leq -5.1 \cdot 10^{+24}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 1.85 \cdot 10^{+111}:\\
\;\;\;\;a \cdot 120\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -5.0999999999999995e24 or 1.8500000000000001e111 < y Initial program 99.7%
Taylor expanded in a around 0
associate-*r/N/A
lower-/.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower--.f6476.6
Applied rewrites76.6%
Applied rewrites76.6%
Taylor expanded in x around 0
Applied rewrites62.0%
if -5.0999999999999995e24 < y < 1.8500000000000001e111Initial program 99.8%
Taylor expanded in z around inf
lower-*.f6463.4
Applied rewrites63.4%
Final simplification62.9%
(FPCore (x y z t a) :precision binary64 (* a 120.0))
double code(double x, double y, double z, double t, double a) {
return a * 120.0;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
code = a * 120.0d0
end function
public static double code(double x, double y, double z, double t, double a) {
return a * 120.0;
}
def code(x, y, z, t, a): return a * 120.0
function code(x, y, z, t, a) return Float64(a * 120.0) end
function tmp = code(x, y, z, t, a) tmp = a * 120.0; end
code[x_, y_, z_, t_, a_] := N[(a * 120.0), $MachinePrecision]
\begin{array}{l}
\\
a \cdot 120
\end{array}
Initial program 99.8%
Taylor expanded in z around inf
lower-*.f6449.2
Applied rewrites49.2%
Final simplification49.2%
(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 2024221
(FPCore (x y z t a)
:name "Data.Colour.RGB:hslsv from colour-2.3.3, B"
:precision binary64
:alt
(! :herbie-platform default (+ (/ 60 (/ (- z t) (- x y))) (* a 120)))
(+ (/ (* 60.0 (- x y)) (- z t)) (* a 120.0)))