
(FPCore (x y z t a) :precision binary64 (+ (/ (* 60.0 (- x y)) (- z t)) (* a 120.0)))
double code(double x, double y, double z, double t, double a) {
return ((60.0 * (x - y)) / (z - t)) + (a * 120.0);
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
code = ((60.0d0 * (x - y)) / (z - t)) + (a * 120.0d0)
end function
public static double code(double x, double y, double z, double t, double a) {
return ((60.0 * (x - y)) / (z - t)) + (a * 120.0);
}
def code(x, y, z, t, a): return ((60.0 * (x - y)) / (z - t)) + (a * 120.0)
function code(x, y, z, t, a) return Float64(Float64(Float64(60.0 * Float64(x - y)) / Float64(z - t)) + Float64(a * 120.0)) end
function tmp = code(x, y, z, t, a) tmp = ((60.0 * (x - y)) / (z - t)) + (a * 120.0); end
code[x_, y_, z_, t_, a_] := N[(N[(N[(60.0 * N[(x - y), $MachinePrecision]), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision] + N[(a * 120.0), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{60 \cdot \left(x - y\right)}{z - t} + a \cdot 120
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 17 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a) :precision binary64 (+ (/ (* 60.0 (- x y)) (- z t)) (* a 120.0)))
double code(double x, double y, double z, double t, double a) {
return ((60.0 * (x - y)) / (z - t)) + (a * 120.0);
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
code = ((60.0d0 * (x - y)) / (z - t)) + (a * 120.0d0)
end function
public static double code(double x, double y, double z, double t, double a) {
return ((60.0 * (x - y)) / (z - t)) + (a * 120.0);
}
def code(x, y, z, t, a): return ((60.0 * (x - y)) / (z - t)) + (a * 120.0)
function code(x, y, z, t, a) return Float64(Float64(Float64(60.0 * Float64(x - y)) / Float64(z - t)) + Float64(a * 120.0)) end
function tmp = code(x, y, z, t, a) tmp = ((60.0 * (x - y)) / (z - t)) + (a * 120.0); end
code[x_, y_, z_, t_, a_] := N[(N[(N[(60.0 * N[(x - y), $MachinePrecision]), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision] + N[(a * 120.0), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{60 \cdot \left(x - y\right)}{z - t} + a \cdot 120
\end{array}
(FPCore (x y z t a) :precision binary64 (+ (/ 60.0 (/ (- z t) (- x y))) (* a 120.0)))
double code(double x, double y, double z, double t, double a) {
return (60.0 / ((z - t) / (x - y))) + (a * 120.0);
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
code = (60.0d0 / ((z - t) / (x - y))) + (a * 120.0d0)
end function
public static double code(double x, double y, double z, double t, double a) {
return (60.0 / ((z - t) / (x - y))) + (a * 120.0);
}
def code(x, y, z, t, a): return (60.0 / ((z - t) / (x - y))) + (a * 120.0)
function code(x, y, z, t, a) return Float64(Float64(60.0 / Float64(Float64(z - t) / Float64(x - y))) + Float64(a * 120.0)) end
function tmp = code(x, y, z, t, a) tmp = (60.0 / ((z - t) / (x - y))) + (a * 120.0); end
code[x_, y_, z_, t_, a_] := N[(N[(60.0 / N[(N[(z - t), $MachinePrecision] / N[(x - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(a * 120.0), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{60}{\frac{z - t}{x - y}} + a \cdot 120
\end{array}
Initial program 99.4%
associate-/l*99.8%
Simplified99.8%
clear-num99.8%
un-div-inv99.8%
Applied egg-rr99.8%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* -60.0 (/ y (- z t)))))
(if (<= a -4.7e-73)
(* a 120.0)
(if (<= a -2.55e-210)
t_1
(if (<= a -1.3e-227)
(/ x (* (- z t) 0.016666666666666666))
(if (<= a 1.25e-282)
(/ (* y -60.0) (- z t))
(if (<= a 3.1e-226)
(* x (/ 60.0 (- z t)))
(if (<= a 2.9e+20) t_1 (* a 120.0)))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = -60.0 * (y / (z - t));
double tmp;
if (a <= -4.7e-73) {
tmp = a * 120.0;
} else if (a <= -2.55e-210) {
tmp = t_1;
} else if (a <= -1.3e-227) {
tmp = x / ((z - t) * 0.016666666666666666);
} else if (a <= 1.25e-282) {
tmp = (y * -60.0) / (z - t);
} else if (a <= 3.1e-226) {
tmp = x * (60.0 / (z - t));
} else if (a <= 2.9e+20) {
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) :: tmp
t_1 = (-60.0d0) * (y / (z - t))
if (a <= (-4.7d-73)) then
tmp = a * 120.0d0
else if (a <= (-2.55d-210)) then
tmp = t_1
else if (a <= (-1.3d-227)) then
tmp = x / ((z - t) * 0.016666666666666666d0)
else if (a <= 1.25d-282) then
tmp = (y * (-60.0d0)) / (z - t)
else if (a <= 3.1d-226) then
tmp = x * (60.0d0 / (z - t))
else if (a <= 2.9d+20) 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 * (y / (z - t));
double tmp;
if (a <= -4.7e-73) {
tmp = a * 120.0;
} else if (a <= -2.55e-210) {
tmp = t_1;
} else if (a <= -1.3e-227) {
tmp = x / ((z - t) * 0.016666666666666666);
} else if (a <= 1.25e-282) {
tmp = (y * -60.0) / (z - t);
} else if (a <= 3.1e-226) {
tmp = x * (60.0 / (z - t));
} else if (a <= 2.9e+20) {
tmp = t_1;
} else {
tmp = a * 120.0;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = -60.0 * (y / (z - t)) tmp = 0 if a <= -4.7e-73: tmp = a * 120.0 elif a <= -2.55e-210: tmp = t_1 elif a <= -1.3e-227: tmp = x / ((z - t) * 0.016666666666666666) elif a <= 1.25e-282: tmp = (y * -60.0) / (z - t) elif a <= 3.1e-226: tmp = x * (60.0 / (z - t)) elif a <= 2.9e+20: tmp = t_1 else: tmp = a * 120.0 return tmp
function code(x, y, z, t, a) t_1 = Float64(-60.0 * Float64(y / Float64(z - t))) tmp = 0.0 if (a <= -4.7e-73) tmp = Float64(a * 120.0); elseif (a <= -2.55e-210) tmp = t_1; elseif (a <= -1.3e-227) tmp = Float64(x / Float64(Float64(z - t) * 0.016666666666666666)); elseif (a <= 1.25e-282) tmp = Float64(Float64(y * -60.0) / Float64(z - t)); elseif (a <= 3.1e-226) tmp = Float64(x * Float64(60.0 / Float64(z - t))); elseif (a <= 2.9e+20) 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 * (y / (z - t)); tmp = 0.0; if (a <= -4.7e-73) tmp = a * 120.0; elseif (a <= -2.55e-210) tmp = t_1; elseif (a <= -1.3e-227) tmp = x / ((z - t) * 0.016666666666666666); elseif (a <= 1.25e-282) tmp = (y * -60.0) / (z - t); elseif (a <= 3.1e-226) tmp = x * (60.0 / (z - t)); elseif (a <= 2.9e+20) 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[(y / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -4.7e-73], N[(a * 120.0), $MachinePrecision], If[LessEqual[a, -2.55e-210], t$95$1, If[LessEqual[a, -1.3e-227], N[(x / N[(N[(z - t), $MachinePrecision] * 0.016666666666666666), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.25e-282], N[(N[(y * -60.0), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 3.1e-226], N[(x * N[(60.0 / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.9e+20], t$95$1, N[(a * 120.0), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := -60 \cdot \frac{y}{z - t}\\
\mathbf{if}\;a \leq -4.7 \cdot 10^{-73}:\\
\;\;\;\;a \cdot 120\\
\mathbf{elif}\;a \leq -2.55 \cdot 10^{-210}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -1.3 \cdot 10^{-227}:\\
\;\;\;\;\frac{x}{\left(z - t\right) \cdot 0.016666666666666666}\\
\mathbf{elif}\;a \leq 1.25 \cdot 10^{-282}:\\
\;\;\;\;\frac{y \cdot -60}{z - t}\\
\mathbf{elif}\;a \leq 3.1 \cdot 10^{-226}:\\
\;\;\;\;x \cdot \frac{60}{z - t}\\
\mathbf{elif}\;a \leq 2.9 \cdot 10^{+20}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;a \cdot 120\\
\end{array}
\end{array}
if a < -4.69999999999999994e-73 or 2.9e20 < a Initial program 99.9%
associate-/l*99.9%
Simplified99.9%
Taylor expanded in z around inf 72.3%
if -4.69999999999999994e-73 < a < -2.54999999999999998e-210 or 3.09999999999999989e-226 < a < 2.9e20Initial program 99.7%
associate-/l*99.7%
Simplified99.7%
Taylor expanded in a around inf 89.0%
*-commutative89.0%
Simplified89.0%
Taylor expanded in y around inf 55.0%
if -2.54999999999999998e-210 < a < -1.30000000000000006e-227Initial program 99.5%
associate-/l*99.8%
Simplified99.8%
Taylor expanded in a around inf 99.5%
*-commutative99.5%
Simplified99.5%
Taylor expanded in x around inf 89.2%
associate-*r/88.9%
associate-*l/89.1%
metadata-eval89.1%
associate-*r/88.9%
*-commutative88.9%
associate-*r/89.1%
metadata-eval89.1%
Simplified89.1%
clear-num89.4%
un-div-inv89.4%
div-inv89.4%
metadata-eval89.4%
Applied egg-rr89.4%
if -1.30000000000000006e-227 < a < 1.25e-282Initial program 94.6%
associate-/l*99.8%
Simplified99.8%
Taylor expanded in a around inf 69.4%
*-commutative69.4%
Simplified69.4%
Taylor expanded in y around inf 57.5%
associate-*r/57.5%
Simplified57.5%
if 1.25e-282 < a < 3.09999999999999989e-226Initial program 99.5%
associate-/l*99.5%
Simplified99.5%
Taylor expanded in a around inf 80.2%
*-commutative80.2%
Simplified80.2%
Taylor expanded in x around inf 80.2%
associate-*r/80.2%
associate-*l/80.2%
metadata-eval80.2%
associate-*r/80.1%
*-commutative80.1%
associate-*r/80.2%
metadata-eval80.2%
Simplified80.2%
Final simplification67.3%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* -60.0 (/ y (- z t)))))
(if (<= a -1.25e-72)
(* a 120.0)
(if (<= a -3.3e-210)
t_1
(if (<= a -2.1e-223)
(/ x (* (- z t) 0.016666666666666666))
(if (<= a 6.8e-282)
t_1
(if (<= a 2.1e-224)
(* x (/ 60.0 (- z t)))
(if (<= a 2.9e+20) t_1 (* a 120.0)))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = -60.0 * (y / (z - t));
double tmp;
if (a <= -1.25e-72) {
tmp = a * 120.0;
} else if (a <= -3.3e-210) {
tmp = t_1;
} else if (a <= -2.1e-223) {
tmp = x / ((z - t) * 0.016666666666666666);
} else if (a <= 6.8e-282) {
tmp = t_1;
} else if (a <= 2.1e-224) {
tmp = x * (60.0 / (z - t));
} else if (a <= 2.9e+20) {
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) :: tmp
t_1 = (-60.0d0) * (y / (z - t))
if (a <= (-1.25d-72)) then
tmp = a * 120.0d0
else if (a <= (-3.3d-210)) then
tmp = t_1
else if (a <= (-2.1d-223)) then
tmp = x / ((z - t) * 0.016666666666666666d0)
else if (a <= 6.8d-282) then
tmp = t_1
else if (a <= 2.1d-224) then
tmp = x * (60.0d0 / (z - t))
else if (a <= 2.9d+20) 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 * (y / (z - t));
double tmp;
if (a <= -1.25e-72) {
tmp = a * 120.0;
} else if (a <= -3.3e-210) {
tmp = t_1;
} else if (a <= -2.1e-223) {
tmp = x / ((z - t) * 0.016666666666666666);
} else if (a <= 6.8e-282) {
tmp = t_1;
} else if (a <= 2.1e-224) {
tmp = x * (60.0 / (z - t));
} else if (a <= 2.9e+20) {
tmp = t_1;
} else {
tmp = a * 120.0;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = -60.0 * (y / (z - t)) tmp = 0 if a <= -1.25e-72: tmp = a * 120.0 elif a <= -3.3e-210: tmp = t_1 elif a <= -2.1e-223: tmp = x / ((z - t) * 0.016666666666666666) elif a <= 6.8e-282: tmp = t_1 elif a <= 2.1e-224: tmp = x * (60.0 / (z - t)) elif a <= 2.9e+20: tmp = t_1 else: tmp = a * 120.0 return tmp
function code(x, y, z, t, a) t_1 = Float64(-60.0 * Float64(y / Float64(z - t))) tmp = 0.0 if (a <= -1.25e-72) tmp = Float64(a * 120.0); elseif (a <= -3.3e-210) tmp = t_1; elseif (a <= -2.1e-223) tmp = Float64(x / Float64(Float64(z - t) * 0.016666666666666666)); elseif (a <= 6.8e-282) tmp = t_1; elseif (a <= 2.1e-224) tmp = Float64(x * Float64(60.0 / Float64(z - t))); elseif (a <= 2.9e+20) 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 * (y / (z - t)); tmp = 0.0; if (a <= -1.25e-72) tmp = a * 120.0; elseif (a <= -3.3e-210) tmp = t_1; elseif (a <= -2.1e-223) tmp = x / ((z - t) * 0.016666666666666666); elseif (a <= 6.8e-282) tmp = t_1; elseif (a <= 2.1e-224) tmp = x * (60.0 / (z - t)); elseif (a <= 2.9e+20) 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[(y / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.25e-72], N[(a * 120.0), $MachinePrecision], If[LessEqual[a, -3.3e-210], t$95$1, If[LessEqual[a, -2.1e-223], N[(x / N[(N[(z - t), $MachinePrecision] * 0.016666666666666666), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 6.8e-282], t$95$1, If[LessEqual[a, 2.1e-224], N[(x * N[(60.0 / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.9e+20], t$95$1, N[(a * 120.0), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := -60 \cdot \frac{y}{z - t}\\
\mathbf{if}\;a \leq -1.25 \cdot 10^{-72}:\\
\;\;\;\;a \cdot 120\\
\mathbf{elif}\;a \leq -3.3 \cdot 10^{-210}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -2.1 \cdot 10^{-223}:\\
\;\;\;\;\frac{x}{\left(z - t\right) \cdot 0.016666666666666666}\\
\mathbf{elif}\;a \leq 6.8 \cdot 10^{-282}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 2.1 \cdot 10^{-224}:\\
\;\;\;\;x \cdot \frac{60}{z - t}\\
\mathbf{elif}\;a \leq 2.9 \cdot 10^{+20}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;a \cdot 120\\
\end{array}
\end{array}
if a < -1.2499999999999999e-72 or 2.9e20 < a Initial program 99.9%
associate-/l*99.9%
Simplified99.9%
Taylor expanded in z around inf 72.3%
if -1.2499999999999999e-72 < a < -3.3e-210 or -2.09999999999999982e-223 < a < 6.79999999999999997e-282 or 2.10000000000000006e-224 < a < 2.9e20Initial program 98.6%
associate-/l*99.7%
Simplified99.7%
Taylor expanded in a around inf 84.8%
*-commutative84.8%
Simplified84.8%
Taylor expanded in y around inf 55.6%
if -3.3e-210 < a < -2.09999999999999982e-223Initial program 99.5%
associate-/l*99.8%
Simplified99.8%
Taylor expanded in a around inf 99.5%
*-commutative99.5%
Simplified99.5%
Taylor expanded in x around inf 89.2%
associate-*r/88.9%
associate-*l/89.1%
metadata-eval89.1%
associate-*r/88.9%
*-commutative88.9%
associate-*r/89.1%
metadata-eval89.1%
Simplified89.1%
clear-num89.4%
un-div-inv89.4%
div-inv89.4%
metadata-eval89.4%
Applied egg-rr89.4%
if 6.79999999999999997e-282 < a < 2.10000000000000006e-224Initial program 99.5%
associate-/l*99.5%
Simplified99.5%
Taylor expanded in a around inf 80.2%
*-commutative80.2%
Simplified80.2%
Taylor expanded in x around inf 80.2%
associate-*r/80.2%
associate-*l/80.2%
metadata-eval80.2%
associate-*r/80.1%
*-commutative80.1%
associate-*r/80.2%
metadata-eval80.2%
Simplified80.2%
Final simplification67.3%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* -60.0 (/ y (- z t)))))
(if (<= a -4e-75)
(* a 120.0)
(if (<= a -4.8e-210)
t_1
(if (<= a -2.35e-219)
(* 60.0 (/ x (- z t)))
(if (<= a 1.1e-273)
t_1
(if (<= a 2.9e-221)
(* x (/ 60.0 (- z t)))
(if (<= a 2.9e+20) t_1 (* a 120.0)))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = -60.0 * (y / (z - t));
double tmp;
if (a <= -4e-75) {
tmp = a * 120.0;
} else if (a <= -4.8e-210) {
tmp = t_1;
} else if (a <= -2.35e-219) {
tmp = 60.0 * (x / (z - t));
} else if (a <= 1.1e-273) {
tmp = t_1;
} else if (a <= 2.9e-221) {
tmp = x * (60.0 / (z - t));
} else if (a <= 2.9e+20) {
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) :: tmp
t_1 = (-60.0d0) * (y / (z - t))
if (a <= (-4d-75)) then
tmp = a * 120.0d0
else if (a <= (-4.8d-210)) then
tmp = t_1
else if (a <= (-2.35d-219)) then
tmp = 60.0d0 * (x / (z - t))
else if (a <= 1.1d-273) then
tmp = t_1
else if (a <= 2.9d-221) then
tmp = x * (60.0d0 / (z - t))
else if (a <= 2.9d+20) 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 * (y / (z - t));
double tmp;
if (a <= -4e-75) {
tmp = a * 120.0;
} else if (a <= -4.8e-210) {
tmp = t_1;
} else if (a <= -2.35e-219) {
tmp = 60.0 * (x / (z - t));
} else if (a <= 1.1e-273) {
tmp = t_1;
} else if (a <= 2.9e-221) {
tmp = x * (60.0 / (z - t));
} else if (a <= 2.9e+20) {
tmp = t_1;
} else {
tmp = a * 120.0;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = -60.0 * (y / (z - t)) tmp = 0 if a <= -4e-75: tmp = a * 120.0 elif a <= -4.8e-210: tmp = t_1 elif a <= -2.35e-219: tmp = 60.0 * (x / (z - t)) elif a <= 1.1e-273: tmp = t_1 elif a <= 2.9e-221: tmp = x * (60.0 / (z - t)) elif a <= 2.9e+20: tmp = t_1 else: tmp = a * 120.0 return tmp
function code(x, y, z, t, a) t_1 = Float64(-60.0 * Float64(y / Float64(z - t))) tmp = 0.0 if (a <= -4e-75) tmp = Float64(a * 120.0); elseif (a <= -4.8e-210) tmp = t_1; elseif (a <= -2.35e-219) tmp = Float64(60.0 * Float64(x / Float64(z - t))); elseif (a <= 1.1e-273) tmp = t_1; elseif (a <= 2.9e-221) tmp = Float64(x * Float64(60.0 / Float64(z - t))); elseif (a <= 2.9e+20) 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 * (y / (z - t)); tmp = 0.0; if (a <= -4e-75) tmp = a * 120.0; elseif (a <= -4.8e-210) tmp = t_1; elseif (a <= -2.35e-219) tmp = 60.0 * (x / (z - t)); elseif (a <= 1.1e-273) tmp = t_1; elseif (a <= 2.9e-221) tmp = x * (60.0 / (z - t)); elseif (a <= 2.9e+20) 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[(y / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -4e-75], N[(a * 120.0), $MachinePrecision], If[LessEqual[a, -4.8e-210], t$95$1, If[LessEqual[a, -2.35e-219], N[(60.0 * N[(x / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.1e-273], t$95$1, If[LessEqual[a, 2.9e-221], N[(x * N[(60.0 / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.9e+20], t$95$1, N[(a * 120.0), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := -60 \cdot \frac{y}{z - t}\\
\mathbf{if}\;a \leq -4 \cdot 10^{-75}:\\
\;\;\;\;a \cdot 120\\
\mathbf{elif}\;a \leq -4.8 \cdot 10^{-210}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -2.35 \cdot 10^{-219}:\\
\;\;\;\;60 \cdot \frac{x}{z - t}\\
\mathbf{elif}\;a \leq 1.1 \cdot 10^{-273}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 2.9 \cdot 10^{-221}:\\
\;\;\;\;x \cdot \frac{60}{z - t}\\
\mathbf{elif}\;a \leq 2.9 \cdot 10^{+20}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;a \cdot 120\\
\end{array}
\end{array}
if a < -3.9999999999999998e-75 or 2.9e20 < a Initial program 99.9%
associate-/l*99.9%
Simplified99.9%
Taylor expanded in z around inf 72.3%
if -3.9999999999999998e-75 < a < -4.80000000000000008e-210 or -2.35e-219 < a < 1.0999999999999999e-273 or 2.89999999999999994e-221 < a < 2.9e20Initial program 98.7%
associate-/l*99.7%
Simplified99.7%
Taylor expanded in a around inf 85.2%
*-commutative85.2%
Simplified85.2%
Taylor expanded in y around inf 55.5%
if -4.80000000000000008e-210 < a < -2.35e-219Initial program 99.6%
associate-/l*100.0%
Simplified100.0%
Taylor expanded in a around inf 99.3%
*-commutative99.3%
Simplified99.3%
Taylor expanded in x around inf 100.0%
if 1.0999999999999999e-273 < a < 2.89999999999999994e-221Initial program 99.5%
associate-/l*99.5%
Simplified99.5%
Taylor expanded in a around inf 80.2%
*-commutative80.2%
Simplified80.2%
Taylor expanded in x around inf 80.2%
associate-*r/80.2%
associate-*l/80.2%
metadata-eval80.2%
associate-*r/80.1%
*-commutative80.1%
associate-*r/80.2%
metadata-eval80.2%
Simplified80.2%
Final simplification67.3%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* 60.0 (/ x (- z t)))) (t_2 (* -60.0 (/ y (- z t)))))
(if (<= a -6.8e-74)
(* a 120.0)
(if (<= a -4.5e-210)
t_2
(if (<= a -1.9e-219)
t_1
(if (<= a 3.5e-274)
t_2
(if (<= a 4.4e-220) t_1 (if (<= a 3.3e+20) t_2 (* a 120.0)))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = 60.0 * (x / (z - t));
double t_2 = -60.0 * (y / (z - t));
double tmp;
if (a <= -6.8e-74) {
tmp = a * 120.0;
} else if (a <= -4.5e-210) {
tmp = t_2;
} else if (a <= -1.9e-219) {
tmp = t_1;
} else if (a <= 3.5e-274) {
tmp = t_2;
} else if (a <= 4.4e-220) {
tmp = t_1;
} else if (a <= 3.3e+20) {
tmp = t_2;
} 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 / (z - t))
t_2 = (-60.0d0) * (y / (z - t))
if (a <= (-6.8d-74)) then
tmp = a * 120.0d0
else if (a <= (-4.5d-210)) then
tmp = t_2
else if (a <= (-1.9d-219)) then
tmp = t_1
else if (a <= 3.5d-274) then
tmp = t_2
else if (a <= 4.4d-220) then
tmp = t_1
else if (a <= 3.3d+20) then
tmp = t_2
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 / (z - t));
double t_2 = -60.0 * (y / (z - t));
double tmp;
if (a <= -6.8e-74) {
tmp = a * 120.0;
} else if (a <= -4.5e-210) {
tmp = t_2;
} else if (a <= -1.9e-219) {
tmp = t_1;
} else if (a <= 3.5e-274) {
tmp = t_2;
} else if (a <= 4.4e-220) {
tmp = t_1;
} else if (a <= 3.3e+20) {
tmp = t_2;
} else {
tmp = a * 120.0;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = 60.0 * (x / (z - t)) t_2 = -60.0 * (y / (z - t)) tmp = 0 if a <= -6.8e-74: tmp = a * 120.0 elif a <= -4.5e-210: tmp = t_2 elif a <= -1.9e-219: tmp = t_1 elif a <= 3.5e-274: tmp = t_2 elif a <= 4.4e-220: tmp = t_1 elif a <= 3.3e+20: tmp = t_2 else: tmp = a * 120.0 return tmp
function code(x, y, z, t, a) t_1 = Float64(60.0 * Float64(x / Float64(z - t))) t_2 = Float64(-60.0 * Float64(y / Float64(z - t))) tmp = 0.0 if (a <= -6.8e-74) tmp = Float64(a * 120.0); elseif (a <= -4.5e-210) tmp = t_2; elseif (a <= -1.9e-219) tmp = t_1; elseif (a <= 3.5e-274) tmp = t_2; elseif (a <= 4.4e-220) tmp = t_1; elseif (a <= 3.3e+20) tmp = t_2; else tmp = Float64(a * 120.0); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = 60.0 * (x / (z - t)); t_2 = -60.0 * (y / (z - t)); tmp = 0.0; if (a <= -6.8e-74) tmp = a * 120.0; elseif (a <= -4.5e-210) tmp = t_2; elseif (a <= -1.9e-219) tmp = t_1; elseif (a <= 3.5e-274) tmp = t_2; elseif (a <= 4.4e-220) tmp = t_1; elseif (a <= 3.3e+20) tmp = t_2; else tmp = a * 120.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(60.0 * N[(x / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(-60.0 * N[(y / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -6.8e-74], N[(a * 120.0), $MachinePrecision], If[LessEqual[a, -4.5e-210], t$95$2, If[LessEqual[a, -1.9e-219], t$95$1, If[LessEqual[a, 3.5e-274], t$95$2, If[LessEqual[a, 4.4e-220], t$95$1, If[LessEqual[a, 3.3e+20], t$95$2, N[(a * 120.0), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := 60 \cdot \frac{x}{z - t}\\
t_2 := -60 \cdot \frac{y}{z - t}\\
\mathbf{if}\;a \leq -6.8 \cdot 10^{-74}:\\
\;\;\;\;a \cdot 120\\
\mathbf{elif}\;a \leq -4.5 \cdot 10^{-210}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq -1.9 \cdot 10^{-219}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 3.5 \cdot 10^{-274}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq 4.4 \cdot 10^{-220}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 3.3 \cdot 10^{+20}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;a \cdot 120\\
\end{array}
\end{array}
if a < -6.8000000000000001e-74 or 3.3e20 < a Initial program 99.9%
associate-/l*99.9%
Simplified99.9%
Taylor expanded in z around inf 72.3%
if -6.8000000000000001e-74 < a < -4.5000000000000002e-210 or -1.90000000000000012e-219 < a < 3.49999999999999982e-274 or 4.39999999999999973e-220 < a < 3.3e20Initial program 98.7%
associate-/l*99.7%
Simplified99.7%
Taylor expanded in a around inf 85.2%
*-commutative85.2%
Simplified85.2%
Taylor expanded in y around inf 55.5%
if -4.5000000000000002e-210 < a < -1.90000000000000012e-219 or 3.49999999999999982e-274 < a < 4.39999999999999973e-220Initial program 99.5%
associate-/l*99.7%
Simplified99.7%
Taylor expanded in a around inf 88.1%
*-commutative88.1%
Simplified88.1%
Taylor expanded in x around inf 88.4%
Final simplification67.3%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* -60.0 (/ y (- z t)))))
(if (<= a -2.2e-73)
(* a 120.0)
(if (<= a -2.55e-210)
t_1
(if (<= a -2.4e-219)
(* 60.0 (/ x z))
(if (<= a 4.5e+20) t_1 (* a 120.0)))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = -60.0 * (y / (z - t));
double tmp;
if (a <= -2.2e-73) {
tmp = a * 120.0;
} else if (a <= -2.55e-210) {
tmp = t_1;
} else if (a <= -2.4e-219) {
tmp = 60.0 * (x / z);
} else if (a <= 4.5e+20) {
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) :: tmp
t_1 = (-60.0d0) * (y / (z - t))
if (a <= (-2.2d-73)) then
tmp = a * 120.0d0
else if (a <= (-2.55d-210)) then
tmp = t_1
else if (a <= (-2.4d-219)) then
tmp = 60.0d0 * (x / z)
else if (a <= 4.5d+20) 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 * (y / (z - t));
double tmp;
if (a <= -2.2e-73) {
tmp = a * 120.0;
} else if (a <= -2.55e-210) {
tmp = t_1;
} else if (a <= -2.4e-219) {
tmp = 60.0 * (x / z);
} else if (a <= 4.5e+20) {
tmp = t_1;
} else {
tmp = a * 120.0;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = -60.0 * (y / (z - t)) tmp = 0 if a <= -2.2e-73: tmp = a * 120.0 elif a <= -2.55e-210: tmp = t_1 elif a <= -2.4e-219: tmp = 60.0 * (x / z) elif a <= 4.5e+20: tmp = t_1 else: tmp = a * 120.0 return tmp
function code(x, y, z, t, a) t_1 = Float64(-60.0 * Float64(y / Float64(z - t))) tmp = 0.0 if (a <= -2.2e-73) tmp = Float64(a * 120.0); elseif (a <= -2.55e-210) tmp = t_1; elseif (a <= -2.4e-219) tmp = Float64(60.0 * Float64(x / z)); elseif (a <= 4.5e+20) 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 * (y / (z - t)); tmp = 0.0; if (a <= -2.2e-73) tmp = a * 120.0; elseif (a <= -2.55e-210) tmp = t_1; elseif (a <= -2.4e-219) tmp = 60.0 * (x / z); elseif (a <= 4.5e+20) 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[(y / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -2.2e-73], N[(a * 120.0), $MachinePrecision], If[LessEqual[a, -2.55e-210], t$95$1, If[LessEqual[a, -2.4e-219], N[(60.0 * N[(x / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 4.5e+20], t$95$1, N[(a * 120.0), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := -60 \cdot \frac{y}{z - t}\\
\mathbf{if}\;a \leq -2.2 \cdot 10^{-73}:\\
\;\;\;\;a \cdot 120\\
\mathbf{elif}\;a \leq -2.55 \cdot 10^{-210}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -2.4 \cdot 10^{-219}:\\
\;\;\;\;60 \cdot \frac{x}{z}\\
\mathbf{elif}\;a \leq 4.5 \cdot 10^{+20}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;a \cdot 120\\
\end{array}
\end{array}
if a < -2.2e-73 or 4.5e20 < a Initial program 99.9%
associate-/l*99.9%
Simplified99.9%
Taylor expanded in z around inf 72.3%
if -2.2e-73 < a < -2.54999999999999998e-210 or -2.40000000000000014e-219 < a < 4.5e20Initial program 98.7%
associate-/l*99.7%
Simplified99.7%
Taylor expanded in a around inf 84.7%
*-commutative84.7%
Simplified84.7%
Taylor expanded in y around inf 52.2%
if -2.54999999999999998e-210 < a < -2.40000000000000014e-219Initial program 99.6%
associate-/l*100.0%
Simplified100.0%
Taylor expanded in x around inf 100.0%
associate-*r/99.6%
Simplified99.6%
Taylor expanded in z around inf 85.9%
Taylor expanded in x around inf 85.9%
Final simplification64.7%
(FPCore (x y z t a)
:precision binary64
(if (<= (* a 120.0) -5e-40)
(* a 120.0)
(if (<= (* a 120.0) 2e-21)
(* 60.0 (/ (- x y) (- z t)))
(+ (* a 120.0) (* -60.0 (/ (- x y) t))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a * 120.0) <= -5e-40) {
tmp = a * 120.0;
} else if ((a * 120.0) <= 2e-21) {
tmp = 60.0 * ((x - y) / (z - t));
} else {
tmp = (a * 120.0) + (-60.0 * ((x - y) / t));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((a * 120.0d0) <= (-5d-40)) then
tmp = a * 120.0d0
else if ((a * 120.0d0) <= 2d-21) then
tmp = 60.0d0 * ((x - y) / (z - t))
else
tmp = (a * 120.0d0) + ((-60.0d0) * ((x - y) / t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a * 120.0) <= -5e-40) {
tmp = a * 120.0;
} else if ((a * 120.0) <= 2e-21) {
tmp = 60.0 * ((x - y) / (z - t));
} else {
tmp = (a * 120.0) + (-60.0 * ((x - y) / t));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a * 120.0) <= -5e-40: tmp = a * 120.0 elif (a * 120.0) <= 2e-21: tmp = 60.0 * ((x - y) / (z - t)) else: tmp = (a * 120.0) + (-60.0 * ((x - y) / t)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (Float64(a * 120.0) <= -5e-40) tmp = Float64(a * 120.0); elseif (Float64(a * 120.0) <= 2e-21) tmp = Float64(60.0 * Float64(Float64(x - y) / Float64(z - t))); else tmp = Float64(Float64(a * 120.0) + Float64(-60.0 * Float64(Float64(x - y) / t))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a * 120.0) <= -5e-40) tmp = a * 120.0; elseif ((a * 120.0) <= 2e-21) tmp = 60.0 * ((x - y) / (z - t)); else tmp = (a * 120.0) + (-60.0 * ((x - y) / t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[N[(a * 120.0), $MachinePrecision], -5e-40], N[(a * 120.0), $MachinePrecision], If[LessEqual[N[(a * 120.0), $MachinePrecision], 2e-21], N[(60.0 * N[(N[(x - y), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(a * 120.0), $MachinePrecision] + N[(-60.0 * N[(N[(x - y), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \cdot 120 \leq -5 \cdot 10^{-40}:\\
\;\;\;\;a \cdot 120\\
\mathbf{elif}\;a \cdot 120 \leq 2 \cdot 10^{-21}:\\
\;\;\;\;60 \cdot \frac{x - y}{z - t}\\
\mathbf{else}:\\
\;\;\;\;a \cdot 120 + -60 \cdot \frac{x - y}{t}\\
\end{array}
\end{array}
if (*.f64 a #s(literal 120 binary64)) < -4.99999999999999965e-40Initial program 99.9%
associate-/l*99.9%
Simplified99.9%
Taylor expanded in z around inf 80.3%
if -4.99999999999999965e-40 < (*.f64 a #s(literal 120 binary64)) < 1.99999999999999982e-21Initial program 98.8%
associate-/l*99.7%
Simplified99.7%
Taylor expanded in a around 0 82.1%
if 1.99999999999999982e-21 < (*.f64 a #s(literal 120 binary64)) Initial program 99.8%
associate-/l*99.9%
Simplified99.9%
Taylor expanded in z around 0 74.8%
Final simplification79.7%
(FPCore (x y z t a) :precision binary64 (if (or (<= (* a 120.0) -5e-40) (not (<= (* a 120.0) 8e+68))) (* a 120.0) (* 60.0 (/ (- x y) (- z t)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (((a * 120.0) <= -5e-40) || !((a * 120.0) <= 8e+68)) {
tmp = a * 120.0;
} else {
tmp = 60.0 * ((x - y) / (z - t));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (((a * 120.0d0) <= (-5d-40)) .or. (.not. ((a * 120.0d0) <= 8d+68))) then
tmp = a * 120.0d0
else
tmp = 60.0d0 * ((x - y) / (z - t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (((a * 120.0) <= -5e-40) || !((a * 120.0) <= 8e+68)) {
tmp = a * 120.0;
} else {
tmp = 60.0 * ((x - y) / (z - t));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if ((a * 120.0) <= -5e-40) or not ((a * 120.0) <= 8e+68): tmp = a * 120.0 else: tmp = 60.0 * ((x - y) / (z - t)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((Float64(a * 120.0) <= -5e-40) || !(Float64(a * 120.0) <= 8e+68)) tmp = Float64(a * 120.0); else tmp = Float64(60.0 * Float64(Float64(x - y) / Float64(z - t))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (((a * 120.0) <= -5e-40) || ~(((a * 120.0) <= 8e+68))) tmp = a * 120.0; else tmp = 60.0 * ((x - y) / (z - t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[N[(a * 120.0), $MachinePrecision], -5e-40], N[Not[LessEqual[N[(a * 120.0), $MachinePrecision], 8e+68]], $MachinePrecision]], N[(a * 120.0), $MachinePrecision], N[(60.0 * N[(N[(x - y), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \cdot 120 \leq -5 \cdot 10^{-40} \lor \neg \left(a \cdot 120 \leq 8 \cdot 10^{+68}\right):\\
\;\;\;\;a \cdot 120\\
\mathbf{else}:\\
\;\;\;\;60 \cdot \frac{x - y}{z - t}\\
\end{array}
\end{array}
if (*.f64 a #s(literal 120 binary64)) < -4.99999999999999965e-40 or 7.99999999999999962e68 < (*.f64 a #s(literal 120 binary64)) Initial program 99.9%
associate-/l*99.9%
Simplified99.9%
Taylor expanded in z around inf 79.8%
if -4.99999999999999965e-40 < (*.f64 a #s(literal 120 binary64)) < 7.99999999999999962e68Initial program 99.0%
associate-/l*99.7%
Simplified99.7%
Taylor expanded in a around 0 77.4%
Final simplification78.5%
(FPCore (x y z t a) :precision binary64 (if (or (<= x -1.8e+175) (not (<= x 1.15e+82))) (+ (* a 120.0) (/ 60.0 (/ (- z t) x))) (+ (* a 120.0) (/ (* y -60.0) (- z t)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((x <= -1.8e+175) || !(x <= 1.15e+82)) {
tmp = (a * 120.0) + (60.0 / ((z - t) / x));
} else {
tmp = (a * 120.0) + ((y * -60.0) / (z - t));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((x <= (-1.8d+175)) .or. (.not. (x <= 1.15d+82))) then
tmp = (a * 120.0d0) + (60.0d0 / ((z - t) / x))
else
tmp = (a * 120.0d0) + ((y * (-60.0d0)) / (z - t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((x <= -1.8e+175) || !(x <= 1.15e+82)) {
tmp = (a * 120.0) + (60.0 / ((z - t) / x));
} else {
tmp = (a * 120.0) + ((y * -60.0) / (z - t));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (x <= -1.8e+175) or not (x <= 1.15e+82): tmp = (a * 120.0) + (60.0 / ((z - t) / x)) else: tmp = (a * 120.0) + ((y * -60.0) / (z - t)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((x <= -1.8e+175) || !(x <= 1.15e+82)) tmp = Float64(Float64(a * 120.0) + Float64(60.0 / Float64(Float64(z - t) / x))); else tmp = Float64(Float64(a * 120.0) + Float64(Float64(y * -60.0) / Float64(z - t))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((x <= -1.8e+175) || ~((x <= 1.15e+82))) tmp = (a * 120.0) + (60.0 / ((z - t) / x)); else tmp = (a * 120.0) + ((y * -60.0) / (z - t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[x, -1.8e+175], N[Not[LessEqual[x, 1.15e+82]], $MachinePrecision]], N[(N[(a * 120.0), $MachinePrecision] + N[(60.0 / N[(N[(z - t), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(a * 120.0), $MachinePrecision] + N[(N[(y * -60.0), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.8 \cdot 10^{+175} \lor \neg \left(x \leq 1.15 \cdot 10^{+82}\right):\\
\;\;\;\;a \cdot 120 + \frac{60}{\frac{z - t}{x}}\\
\mathbf{else}:\\
\;\;\;\;a \cdot 120 + \frac{y \cdot -60}{z - t}\\
\end{array}
\end{array}
if x < -1.80000000000000017e175 or 1.14999999999999994e82 < x Initial program 98.4%
associate-/l*99.8%
Simplified99.8%
clear-num99.8%
un-div-inv99.9%
Applied egg-rr99.9%
Taylor expanded in x around inf 92.6%
if -1.80000000000000017e175 < x < 1.14999999999999994e82Initial program 99.8%
associate-/l*99.8%
Simplified99.8%
Taylor expanded in x around 0 91.5%
associate-*r/91.5%
Simplified91.5%
Final simplification91.8%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -5.4e-40) (not (<= z 650000.0))) (+ (* a 120.0) (/ 60.0 (/ z (- x y)))) (+ (* a 120.0) (* -60.0 (/ (- x y) t)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -5.4e-40) || !(z <= 650000.0)) {
tmp = (a * 120.0) + (60.0 / (z / (x - y)));
} else {
tmp = (a * 120.0) + (-60.0 * ((x - y) / t));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((z <= (-5.4d-40)) .or. (.not. (z <= 650000.0d0))) then
tmp = (a * 120.0d0) + (60.0d0 / (z / (x - y)))
else
tmp = (a * 120.0d0) + ((-60.0d0) * ((x - y) / t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -5.4e-40) || !(z <= 650000.0)) {
tmp = (a * 120.0) + (60.0 / (z / (x - y)));
} else {
tmp = (a * 120.0) + (-60.0 * ((x - y) / t));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -5.4e-40) or not (z <= 650000.0): tmp = (a * 120.0) + (60.0 / (z / (x - y))) else: tmp = (a * 120.0) + (-60.0 * ((x - y) / t)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -5.4e-40) || !(z <= 650000.0)) tmp = Float64(Float64(a * 120.0) + Float64(60.0 / Float64(z / Float64(x - y)))); else tmp = Float64(Float64(a * 120.0) + Float64(-60.0 * Float64(Float64(x - y) / t))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((z <= -5.4e-40) || ~((z <= 650000.0))) tmp = (a * 120.0) + (60.0 / (z / (x - y))); else tmp = (a * 120.0) + (-60.0 * ((x - y) / t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -5.4e-40], N[Not[LessEqual[z, 650000.0]], $MachinePrecision]], N[(N[(a * 120.0), $MachinePrecision] + N[(60.0 / N[(z / N[(x - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(a * 120.0), $MachinePrecision] + N[(-60.0 * N[(N[(x - y), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -5.4 \cdot 10^{-40} \lor \neg \left(z \leq 650000\right):\\
\;\;\;\;a \cdot 120 + \frac{60}{\frac{z}{x - y}}\\
\mathbf{else}:\\
\;\;\;\;a \cdot 120 + -60 \cdot \frac{x - y}{t}\\
\end{array}
\end{array}
if z < -5.4e-40 or 6.5e5 < z Initial program 99.8%
associate-/l*99.7%
Simplified99.7%
clear-num99.7%
un-div-inv99.8%
Applied egg-rr99.8%
Taylor expanded in z around inf 88.4%
if -5.4e-40 < z < 6.5e5Initial program 99.0%
associate-/l*99.9%
Simplified99.9%
Taylor expanded in z around 0 84.8%
Final simplification86.8%
(FPCore (x y z t a)
:precision binary64
(if (<= x -8.2e+171)
(+ (* a 120.0) (/ 60.0 (/ (- z t) x)))
(if (<= x 3.05e+82)
(+ (* a 120.0) (/ 60.0 (/ (- t z) y)))
(+ (* a 120.0) (/ (* 60.0 x) (- z t))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (x <= -8.2e+171) {
tmp = (a * 120.0) + (60.0 / ((z - t) / x));
} else if (x <= 3.05e+82) {
tmp = (a * 120.0) + (60.0 / ((t - z) / y));
} else {
tmp = (a * 120.0) + ((60.0 * x) / (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 <= (-8.2d+171)) then
tmp = (a * 120.0d0) + (60.0d0 / ((z - t) / x))
else if (x <= 3.05d+82) then
tmp = (a * 120.0d0) + (60.0d0 / ((t - z) / y))
else
tmp = (a * 120.0d0) + ((60.0d0 * x) / (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 <= -8.2e+171) {
tmp = (a * 120.0) + (60.0 / ((z - t) / x));
} else if (x <= 3.05e+82) {
tmp = (a * 120.0) + (60.0 / ((t - z) / y));
} else {
tmp = (a * 120.0) + ((60.0 * x) / (z - t));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if x <= -8.2e+171: tmp = (a * 120.0) + (60.0 / ((z - t) / x)) elif x <= 3.05e+82: tmp = (a * 120.0) + (60.0 / ((t - z) / y)) else: tmp = (a * 120.0) + ((60.0 * x) / (z - t)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (x <= -8.2e+171) tmp = Float64(Float64(a * 120.0) + Float64(60.0 / Float64(Float64(z - t) / x))); elseif (x <= 3.05e+82) tmp = Float64(Float64(a * 120.0) + Float64(60.0 / Float64(Float64(t - z) / y))); else tmp = Float64(Float64(a * 120.0) + Float64(Float64(60.0 * x) / Float64(z - t))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (x <= -8.2e+171) tmp = (a * 120.0) + (60.0 / ((z - t) / x)); elseif (x <= 3.05e+82) tmp = (a * 120.0) + (60.0 / ((t - z) / y)); else tmp = (a * 120.0) + ((60.0 * x) / (z - t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[x, -8.2e+171], N[(N[(a * 120.0), $MachinePrecision] + N[(60.0 / N[(N[(z - t), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 3.05e+82], 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[(N[(60.0 * x), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -8.2 \cdot 10^{+171}:\\
\;\;\;\;a \cdot 120 + \frac{60}{\frac{z - t}{x}}\\
\mathbf{elif}\;x \leq 3.05 \cdot 10^{+82}:\\
\;\;\;\;a \cdot 120 + \frac{60}{\frac{t - z}{y}}\\
\mathbf{else}:\\
\;\;\;\;a \cdot 120 + \frac{60 \cdot x}{z - t}\\
\end{array}
\end{array}
if x < -8.1999999999999992e171Initial program 96.5%
associate-/l*99.7%
Simplified99.7%
clear-num99.8%
un-div-inv99.8%
Applied egg-rr99.8%
Taylor expanded in x around inf 99.8%
if -8.1999999999999992e171 < x < 3.0499999999999999e82Initial program 99.8%
associate-/l*99.8%
Simplified99.8%
clear-num99.8%
un-div-inv99.8%
Applied egg-rr99.8%
Taylor expanded in x around 0 91.5%
associate-*r/91.5%
mul-1-neg91.5%
Simplified91.5%
if 3.0499999999999999e82 < x Initial program 99.9%
associate-/l*99.8%
Simplified99.8%
Taylor expanded in x around inf 87.1%
associate-*r/87.1%
Simplified87.1%
Final simplification91.8%
(FPCore (x y z t a)
:precision binary64
(if (<= x -8.2e+171)
(+ (* a 120.0) (/ 60.0 (/ (- z t) x)))
(if (<= x 2.3e+83)
(+ (* a 120.0) (/ (* y -60.0) (- z t)))
(+ (* a 120.0) (/ (* 60.0 x) (- z t))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (x <= -8.2e+171) {
tmp = (a * 120.0) + (60.0 / ((z - t) / x));
} else if (x <= 2.3e+83) {
tmp = (a * 120.0) + ((y * -60.0) / (z - t));
} else {
tmp = (a * 120.0) + ((60.0 * x) / (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 <= (-8.2d+171)) then
tmp = (a * 120.0d0) + (60.0d0 / ((z - t) / x))
else if (x <= 2.3d+83) then
tmp = (a * 120.0d0) + ((y * (-60.0d0)) / (z - t))
else
tmp = (a * 120.0d0) + ((60.0d0 * x) / (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 <= -8.2e+171) {
tmp = (a * 120.0) + (60.0 / ((z - t) / x));
} else if (x <= 2.3e+83) {
tmp = (a * 120.0) + ((y * -60.0) / (z - t));
} else {
tmp = (a * 120.0) + ((60.0 * x) / (z - t));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if x <= -8.2e+171: tmp = (a * 120.0) + (60.0 / ((z - t) / x)) elif x <= 2.3e+83: tmp = (a * 120.0) + ((y * -60.0) / (z - t)) else: tmp = (a * 120.0) + ((60.0 * x) / (z - t)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (x <= -8.2e+171) tmp = Float64(Float64(a * 120.0) + Float64(60.0 / Float64(Float64(z - t) / x))); elseif (x <= 2.3e+83) tmp = Float64(Float64(a * 120.0) + Float64(Float64(y * -60.0) / Float64(z - t))); else tmp = Float64(Float64(a * 120.0) + Float64(Float64(60.0 * x) / Float64(z - t))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (x <= -8.2e+171) tmp = (a * 120.0) + (60.0 / ((z - t) / x)); elseif (x <= 2.3e+83) tmp = (a * 120.0) + ((y * -60.0) / (z - t)); else tmp = (a * 120.0) + ((60.0 * x) / (z - t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[x, -8.2e+171], N[(N[(a * 120.0), $MachinePrecision] + N[(60.0 / N[(N[(z - t), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.3e+83], N[(N[(a * 120.0), $MachinePrecision] + N[(N[(y * -60.0), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(a * 120.0), $MachinePrecision] + N[(N[(60.0 * x), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -8.2 \cdot 10^{+171}:\\
\;\;\;\;a \cdot 120 + \frac{60}{\frac{z - t}{x}}\\
\mathbf{elif}\;x \leq 2.3 \cdot 10^{+83}:\\
\;\;\;\;a \cdot 120 + \frac{y \cdot -60}{z - t}\\
\mathbf{else}:\\
\;\;\;\;a \cdot 120 + \frac{60 \cdot x}{z - t}\\
\end{array}
\end{array}
if x < -8.1999999999999992e171Initial program 96.5%
associate-/l*99.7%
Simplified99.7%
clear-num99.8%
un-div-inv99.8%
Applied egg-rr99.8%
Taylor expanded in x around inf 99.8%
if -8.1999999999999992e171 < x < 2.29999999999999995e83Initial program 99.8%
associate-/l*99.8%
Simplified99.8%
Taylor expanded in x around 0 91.5%
associate-*r/91.5%
Simplified91.5%
if 2.29999999999999995e83 < x Initial program 99.9%
associate-/l*99.8%
Simplified99.8%
Taylor expanded in x around inf 87.1%
associate-*r/87.1%
Simplified87.1%
Final simplification91.8%
(FPCore (x y z t a) :precision binary64 (+ (* a 120.0) (* 60.0 (/ (- x y) (- z t)))))
double code(double x, double y, double z, double t, double a) {
return (a * 120.0) + (60.0 * ((x - y) / (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) + (60.0d0 * ((x - y) / (z - t)))
end function
public static double code(double x, double y, double z, double t, double a) {
return (a * 120.0) + (60.0 * ((x - y) / (z - t)));
}
def code(x, y, z, t, a): return (a * 120.0) + (60.0 * ((x - y) / (z - t)))
function code(x, y, z, t, a) return Float64(Float64(a * 120.0) + Float64(60.0 * Float64(Float64(x - y) / Float64(z - t)))) end
function tmp = code(x, y, z, t, a) tmp = (a * 120.0) + (60.0 * ((x - y) / (z - t))); end
code[x_, y_, z_, t_, a_] := N[(N[(a * 120.0), $MachinePrecision] + N[(60.0 * N[(N[(x - y), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
a \cdot 120 + 60 \cdot \frac{x - y}{z - t}
\end{array}
Initial program 99.4%
associate-/l*99.8%
Simplified99.8%
Final simplification99.8%
(FPCore (x y z t a) :precision binary64 (if (<= x -9.4e+201) (* x (/ 60.0 z)) (* a 120.0)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (x <= -9.4e+201) {
tmp = x * (60.0 / z);
} else {
tmp = a * 120.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (x <= (-9.4d+201)) then
tmp = x * (60.0d0 / z)
else
tmp = a * 120.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (x <= -9.4e+201) {
tmp = x * (60.0 / z);
} else {
tmp = a * 120.0;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if x <= -9.4e+201: tmp = x * (60.0 / z) else: tmp = a * 120.0 return tmp
function code(x, y, z, t, a) tmp = 0.0 if (x <= -9.4e+201) tmp = Float64(x * Float64(60.0 / z)); else tmp = Float64(a * 120.0); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (x <= -9.4e+201) tmp = x * (60.0 / z); else tmp = a * 120.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[x, -9.4e+201], N[(x * N[(60.0 / z), $MachinePrecision]), $MachinePrecision], N[(a * 120.0), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -9.4 \cdot 10^{+201}:\\
\;\;\;\;x \cdot \frac{60}{z}\\
\mathbf{else}:\\
\;\;\;\;a \cdot 120\\
\end{array}
\end{array}
if x < -9.3999999999999995e201Initial program 96.0%
associate-/l*99.8%
Simplified99.8%
Taylor expanded in x around inf 99.8%
associate-*r/96.0%
Simplified96.0%
Taylor expanded in z around inf 64.4%
Taylor expanded in x around inf 59.4%
clear-num59.4%
un-div-inv59.5%
Applied egg-rr59.5%
associate-/r/59.5%
Simplified59.5%
if -9.3999999999999995e201 < x Initial program 99.8%
associate-/l*99.8%
Simplified99.8%
Taylor expanded in z around inf 53.4%
Final simplification54.0%
(FPCore (x y z t a) :precision binary64 (if (<= x -9.2e+198) (* 60.0 (/ x z)) (* a 120.0)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (x <= -9.2e+198) {
tmp = 60.0 * (x / z);
} else {
tmp = a * 120.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (x <= (-9.2d+198)) then
tmp = 60.0d0 * (x / z)
else
tmp = a * 120.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (x <= -9.2e+198) {
tmp = 60.0 * (x / z);
} else {
tmp = a * 120.0;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if x <= -9.2e+198: tmp = 60.0 * (x / z) else: tmp = a * 120.0 return tmp
function code(x, y, z, t, a) tmp = 0.0 if (x <= -9.2e+198) tmp = Float64(60.0 * Float64(x / z)); else tmp = Float64(a * 120.0); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (x <= -9.2e+198) tmp = 60.0 * (x / z); else tmp = a * 120.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[x, -9.2e+198], N[(60.0 * N[(x / z), $MachinePrecision]), $MachinePrecision], N[(a * 120.0), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -9.2 \cdot 10^{+198}:\\
\;\;\;\;60 \cdot \frac{x}{z}\\
\mathbf{else}:\\
\;\;\;\;a \cdot 120\\
\end{array}
\end{array}
if x < -9.2000000000000002e198Initial program 96.0%
associate-/l*99.8%
Simplified99.8%
Taylor expanded in x around inf 99.8%
associate-*r/96.0%
Simplified96.0%
Taylor expanded in z around inf 64.4%
Taylor expanded in x around inf 59.4%
if -9.2000000000000002e198 < x Initial program 99.8%
associate-/l*99.8%
Simplified99.8%
Taylor expanded in z around inf 53.4%
Final simplification54.0%
(FPCore (x y z t a) :precision binary64 (if (<= x -6.6e+201) (* -60.0 (/ x t)) (* a 120.0)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (x <= -6.6e+201) {
tmp = -60.0 * (x / 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 (x <= (-6.6d+201)) then
tmp = (-60.0d0) * (x / 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 (x <= -6.6e+201) {
tmp = -60.0 * (x / t);
} else {
tmp = a * 120.0;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if x <= -6.6e+201: tmp = -60.0 * (x / t) else: tmp = a * 120.0 return tmp
function code(x, y, z, t, a) tmp = 0.0 if (x <= -6.6e+201) tmp = Float64(-60.0 * Float64(x / t)); else tmp = Float64(a * 120.0); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (x <= -6.6e+201) tmp = -60.0 * (x / t); else tmp = a * 120.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[x, -6.6e+201], N[(-60.0 * N[(x / t), $MachinePrecision]), $MachinePrecision], N[(a * 120.0), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -6.6 \cdot 10^{+201}:\\
\;\;\;\;-60 \cdot \frac{x}{t}\\
\mathbf{else}:\\
\;\;\;\;a \cdot 120\\
\end{array}
\end{array}
if x < -6.6e201Initial program 96.0%
associate-/l*99.8%
Simplified99.8%
Taylor expanded in a around inf 84.8%
*-commutative84.8%
Simplified84.8%
Taylor expanded in x around inf 83.4%
associate-*r/79.6%
associate-*l/83.4%
metadata-eval83.4%
associate-*r/83.4%
*-commutative83.4%
associate-*r/83.4%
metadata-eval83.4%
Simplified83.4%
Taylor expanded in z around 0 45.9%
if -6.6e201 < x Initial program 99.8%
associate-/l*99.8%
Simplified99.8%
Taylor expanded in z around inf 53.4%
Final simplification52.7%
(FPCore (x y z t a) :precision binary64 (* a 120.0))
double code(double x, double y, double z, double t, double a) {
return a * 120.0;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
code = a * 120.0d0
end function
public static double code(double x, double y, double z, double t, double a) {
return a * 120.0;
}
def code(x, y, z, t, a): return a * 120.0
function code(x, y, z, t, a) return Float64(a * 120.0) end
function tmp = code(x, y, z, t, a) tmp = a * 120.0; end
code[x_, y_, z_, t_, a_] := N[(a * 120.0), $MachinePrecision]
\begin{array}{l}
\\
a \cdot 120
\end{array}
Initial program 99.4%
associate-/l*99.8%
Simplified99.8%
Taylor expanded in z around inf 50.0%
Final simplification50.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 2024089
(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)))