
(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 (* (/ 60.0 (- z t)) (- x y))))
double code(double x, double y, double z, double t, double a) {
return fma(a, 120.0, ((60.0 / (z - t)) * (x - y)));
}
function code(x, y, z, t, a) return fma(a, 120.0, Float64(Float64(60.0 / Float64(z - t)) * Float64(x - y))) end
code[x_, y_, z_, t_, a_] := N[(a * 120.0 + N[(N[(60.0 / N[(z - t), $MachinePrecision]), $MachinePrecision] * N[(x - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\mathsf{fma}\left(a, 120, \frac{60}{z - t} \cdot \left(x - y\right)\right)
\end{array}
Initial program 99.4%
+-commutative99.4%
fma-def99.5%
associate-*l/99.8%
Simplified99.8%
Final simplification99.8%
(FPCore (x y z t a)
:precision binary64
(if (<= (* a 120.0) -1e+159)
(* a 120.0)
(if (or (<= (* a 120.0) -1e+93)
(and (not (<= (* a 120.0) -5e-75)) (<= (* a 120.0) 1e-13)))
(* 60.0 (/ (- x y) (- z t)))
(* a 120.0))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a * 120.0) <= -1e+159) {
tmp = a * 120.0;
} else if (((a * 120.0) <= -1e+93) || (!((a * 120.0) <= -5e-75) && ((a * 120.0) <= 1e-13))) {
tmp = 60.0 * ((x - y) / (z - t));
} else {
tmp = a * 120.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((a * 120.0d0) <= (-1d+159)) then
tmp = a * 120.0d0
else if (((a * 120.0d0) <= (-1d+93)) .or. (.not. ((a * 120.0d0) <= (-5d-75))) .and. ((a * 120.0d0) <= 1d-13)) then
tmp = 60.0d0 * ((x - y) / (z - t))
else
tmp = a * 120.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a * 120.0) <= -1e+159) {
tmp = a * 120.0;
} else if (((a * 120.0) <= -1e+93) || (!((a * 120.0) <= -5e-75) && ((a * 120.0) <= 1e-13))) {
tmp = 60.0 * ((x - y) / (z - t));
} else {
tmp = a * 120.0;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a * 120.0) <= -1e+159: tmp = a * 120.0 elif ((a * 120.0) <= -1e+93) or (not ((a * 120.0) <= -5e-75) and ((a * 120.0) <= 1e-13)): tmp = 60.0 * ((x - y) / (z - t)) else: tmp = a * 120.0 return tmp
function code(x, y, z, t, a) tmp = 0.0 if (Float64(a * 120.0) <= -1e+159) tmp = Float64(a * 120.0); elseif ((Float64(a * 120.0) <= -1e+93) || (!(Float64(a * 120.0) <= -5e-75) && (Float64(a * 120.0) <= 1e-13))) tmp = Float64(60.0 * Float64(Float64(x - y) / Float64(z - t))); else tmp = Float64(a * 120.0); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a * 120.0) <= -1e+159) tmp = a * 120.0; elseif (((a * 120.0) <= -1e+93) || (~(((a * 120.0) <= -5e-75)) && ((a * 120.0) <= 1e-13))) tmp = 60.0 * ((x - y) / (z - t)); else tmp = a * 120.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[N[(a * 120.0), $MachinePrecision], -1e+159], N[(a * 120.0), $MachinePrecision], If[Or[LessEqual[N[(a * 120.0), $MachinePrecision], -1e+93], And[N[Not[LessEqual[N[(a * 120.0), $MachinePrecision], -5e-75]], $MachinePrecision], LessEqual[N[(a * 120.0), $MachinePrecision], 1e-13]]], N[(60.0 * N[(N[(x - y), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * 120.0), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \cdot 120 \leq -1 \cdot 10^{+159}:\\
\;\;\;\;a \cdot 120\\
\mathbf{elif}\;a \cdot 120 \leq -1 \cdot 10^{+93} \lor \neg \left(a \cdot 120 \leq -5 \cdot 10^{-75}\right) \land a \cdot 120 \leq 10^{-13}:\\
\;\;\;\;60 \cdot \frac{x - y}{z - t}\\
\mathbf{else}:\\
\;\;\;\;a \cdot 120\\
\end{array}
\end{array}
if (*.f64 a 120) < -9.9999999999999993e158 or -1.00000000000000004e93 < (*.f64 a 120) < -4.99999999999999979e-75 or 1e-13 < (*.f64 a 120) Initial program 99.9%
associate-/l*99.8%
Simplified99.8%
Taylor expanded in z around inf 73.5%
if -9.9999999999999993e158 < (*.f64 a 120) < -1.00000000000000004e93 or -4.99999999999999979e-75 < (*.f64 a 120) < 1e-13Initial program 98.9%
associate-/l*99.6%
Simplified99.6%
Taylor expanded in a around 0 80.3%
Final simplification76.5%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* 60.0 (/ (- x y) (- z t)))))
(if (<= (* a 120.0) -1e+159)
(* a 120.0)
(if (<= (* a 120.0) -1e+93)
t_1
(if (<= (* a 120.0) -5e-75)
(* a 120.0)
(if (<= (* a 120.0) 1e-13) t_1 (+ (* a 120.0) (* y (/ 60.0 t)))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = 60.0 * ((x - y) / (z - t));
double tmp;
if ((a * 120.0) <= -1e+159) {
tmp = a * 120.0;
} else if ((a * 120.0) <= -1e+93) {
tmp = t_1;
} else if ((a * 120.0) <= -5e-75) {
tmp = a * 120.0;
} else if ((a * 120.0) <= 1e-13) {
tmp = t_1;
} else {
tmp = (a * 120.0) + (y * (60.0 / t));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = 60.0d0 * ((x - y) / (z - t))
if ((a * 120.0d0) <= (-1d+159)) then
tmp = a * 120.0d0
else if ((a * 120.0d0) <= (-1d+93)) then
tmp = t_1
else if ((a * 120.0d0) <= (-5d-75)) then
tmp = a * 120.0d0
else if ((a * 120.0d0) <= 1d-13) then
tmp = t_1
else
tmp = (a * 120.0d0) + (y * (60.0d0 / t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = 60.0 * ((x - y) / (z - t));
double tmp;
if ((a * 120.0) <= -1e+159) {
tmp = a * 120.0;
} else if ((a * 120.0) <= -1e+93) {
tmp = t_1;
} else if ((a * 120.0) <= -5e-75) {
tmp = a * 120.0;
} else if ((a * 120.0) <= 1e-13) {
tmp = t_1;
} else {
tmp = (a * 120.0) + (y * (60.0 / t));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = 60.0 * ((x - y) / (z - t)) tmp = 0 if (a * 120.0) <= -1e+159: tmp = a * 120.0 elif (a * 120.0) <= -1e+93: tmp = t_1 elif (a * 120.0) <= -5e-75: tmp = a * 120.0 elif (a * 120.0) <= 1e-13: tmp = t_1 else: tmp = (a * 120.0) + (y * (60.0 / t)) return tmp
function code(x, y, z, t, a) t_1 = Float64(60.0 * Float64(Float64(x - y) / Float64(z - t))) tmp = 0.0 if (Float64(a * 120.0) <= -1e+159) tmp = Float64(a * 120.0); elseif (Float64(a * 120.0) <= -1e+93) tmp = t_1; elseif (Float64(a * 120.0) <= -5e-75) tmp = Float64(a * 120.0); elseif (Float64(a * 120.0) <= 1e-13) tmp = t_1; else tmp = Float64(Float64(a * 120.0) + Float64(y * Float64(60.0 / t))); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = 60.0 * ((x - y) / (z - t)); tmp = 0.0; if ((a * 120.0) <= -1e+159) tmp = a * 120.0; elseif ((a * 120.0) <= -1e+93) tmp = t_1; elseif ((a * 120.0) <= -5e-75) tmp = a * 120.0; elseif ((a * 120.0) <= 1e-13) tmp = t_1; else tmp = (a * 120.0) + (y * (60.0 / t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(60.0 * N[(N[(x - y), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(a * 120.0), $MachinePrecision], -1e+159], N[(a * 120.0), $MachinePrecision], If[LessEqual[N[(a * 120.0), $MachinePrecision], -1e+93], t$95$1, If[LessEqual[N[(a * 120.0), $MachinePrecision], -5e-75], N[(a * 120.0), $MachinePrecision], If[LessEqual[N[(a * 120.0), $MachinePrecision], 1e-13], t$95$1, N[(N[(a * 120.0), $MachinePrecision] + N[(y * N[(60.0 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := 60 \cdot \frac{x - y}{z - t}\\
\mathbf{if}\;a \cdot 120 \leq -1 \cdot 10^{+159}:\\
\;\;\;\;a \cdot 120\\
\mathbf{elif}\;a \cdot 120 \leq -1 \cdot 10^{+93}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \cdot 120 \leq -5 \cdot 10^{-75}:\\
\;\;\;\;a \cdot 120\\
\mathbf{elif}\;a \cdot 120 \leq 10^{-13}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;a \cdot 120 + y \cdot \frac{60}{t}\\
\end{array}
\end{array}
if (*.f64 a 120) < -9.9999999999999993e158 or -1.00000000000000004e93 < (*.f64 a 120) < -4.99999999999999979e-75Initial program 99.9%
associate-/l*99.8%
Simplified99.8%
Taylor expanded in z around inf 76.1%
if -9.9999999999999993e158 < (*.f64 a 120) < -1.00000000000000004e93 or -4.99999999999999979e-75 < (*.f64 a 120) < 1e-13Initial program 98.9%
associate-/l*99.6%
Simplified99.6%
Taylor expanded in a around 0 80.3%
if 1e-13 < (*.f64 a 120) Initial program 99.9%
associate-/l*99.9%
Simplified99.9%
Taylor expanded in z around 0 71.4%
neg-mul-171.4%
distribute-neg-frac71.4%
Simplified71.4%
Taylor expanded in x around 0 75.3%
associate-/r/75.2%
Applied egg-rr75.2%
Final simplification77.7%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* 60.0 (/ (- x y) (- z t)))))
(if (<= (* a 120.0) -1e+159)
(* a 120.0)
(if (<= (* a 120.0) -1e+93)
t_1
(if (<= (* a 120.0) -5e-75)
(* a 120.0)
(if (<= (* a 120.0) 1e-13) t_1 (+ (* a 120.0) (/ 60.0 (/ t y)))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = 60.0 * ((x - y) / (z - t));
double tmp;
if ((a * 120.0) <= -1e+159) {
tmp = a * 120.0;
} else if ((a * 120.0) <= -1e+93) {
tmp = t_1;
} else if ((a * 120.0) <= -5e-75) {
tmp = a * 120.0;
} else if ((a * 120.0) <= 1e-13) {
tmp = t_1;
} else {
tmp = (a * 120.0) + (60.0 / (t / y));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = 60.0d0 * ((x - y) / (z - t))
if ((a * 120.0d0) <= (-1d+159)) then
tmp = a * 120.0d0
else if ((a * 120.0d0) <= (-1d+93)) then
tmp = t_1
else if ((a * 120.0d0) <= (-5d-75)) then
tmp = a * 120.0d0
else if ((a * 120.0d0) <= 1d-13) then
tmp = t_1
else
tmp = (a * 120.0d0) + (60.0d0 / (t / y))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = 60.0 * ((x - y) / (z - t));
double tmp;
if ((a * 120.0) <= -1e+159) {
tmp = a * 120.0;
} else if ((a * 120.0) <= -1e+93) {
tmp = t_1;
} else if ((a * 120.0) <= -5e-75) {
tmp = a * 120.0;
} else if ((a * 120.0) <= 1e-13) {
tmp = t_1;
} else {
tmp = (a * 120.0) + (60.0 / (t / y));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = 60.0 * ((x - y) / (z - t)) tmp = 0 if (a * 120.0) <= -1e+159: tmp = a * 120.0 elif (a * 120.0) <= -1e+93: tmp = t_1 elif (a * 120.0) <= -5e-75: tmp = a * 120.0 elif (a * 120.0) <= 1e-13: tmp = t_1 else: tmp = (a * 120.0) + (60.0 / (t / y)) return tmp
function code(x, y, z, t, a) t_1 = Float64(60.0 * Float64(Float64(x - y) / Float64(z - t))) tmp = 0.0 if (Float64(a * 120.0) <= -1e+159) tmp = Float64(a * 120.0); elseif (Float64(a * 120.0) <= -1e+93) tmp = t_1; elseif (Float64(a * 120.0) <= -5e-75) tmp = Float64(a * 120.0); elseif (Float64(a * 120.0) <= 1e-13) tmp = t_1; else tmp = Float64(Float64(a * 120.0) + Float64(60.0 / Float64(t / y))); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = 60.0 * ((x - y) / (z - t)); tmp = 0.0; if ((a * 120.0) <= -1e+159) tmp = a * 120.0; elseif ((a * 120.0) <= -1e+93) tmp = t_1; elseif ((a * 120.0) <= -5e-75) tmp = a * 120.0; elseif ((a * 120.0) <= 1e-13) tmp = t_1; else tmp = (a * 120.0) + (60.0 / (t / y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(60.0 * N[(N[(x - y), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(a * 120.0), $MachinePrecision], -1e+159], N[(a * 120.0), $MachinePrecision], If[LessEqual[N[(a * 120.0), $MachinePrecision], -1e+93], t$95$1, If[LessEqual[N[(a * 120.0), $MachinePrecision], -5e-75], N[(a * 120.0), $MachinePrecision], If[LessEqual[N[(a * 120.0), $MachinePrecision], 1e-13], t$95$1, N[(N[(a * 120.0), $MachinePrecision] + N[(60.0 / N[(t / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := 60 \cdot \frac{x - y}{z - t}\\
\mathbf{if}\;a \cdot 120 \leq -1 \cdot 10^{+159}:\\
\;\;\;\;a \cdot 120\\
\mathbf{elif}\;a \cdot 120 \leq -1 \cdot 10^{+93}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \cdot 120 \leq -5 \cdot 10^{-75}:\\
\;\;\;\;a \cdot 120\\
\mathbf{elif}\;a \cdot 120 \leq 10^{-13}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;a \cdot 120 + \frac{60}{\frac{t}{y}}\\
\end{array}
\end{array}
if (*.f64 a 120) < -9.9999999999999993e158 or -1.00000000000000004e93 < (*.f64 a 120) < -4.99999999999999979e-75Initial program 99.9%
associate-/l*99.8%
Simplified99.8%
Taylor expanded in z around inf 76.1%
if -9.9999999999999993e158 < (*.f64 a 120) < -1.00000000000000004e93 or -4.99999999999999979e-75 < (*.f64 a 120) < 1e-13Initial program 98.9%
associate-/l*99.6%
Simplified99.6%
Taylor expanded in a around 0 80.3%
if 1e-13 < (*.f64 a 120) Initial program 99.9%
associate-/l*99.9%
Simplified99.9%
Taylor expanded in z around 0 71.4%
neg-mul-171.4%
distribute-neg-frac71.4%
Simplified71.4%
Taylor expanded in x around 0 75.3%
Final simplification77.7%
(FPCore (x y z t a)
:precision binary64
(if (<= (* a 120.0) -1e+159)
(* a 120.0)
(if (<= (* a 120.0) -1e+93)
(* 60.0 (/ (- x y) (- z t)))
(if (<= (* a 120.0) -5e-75)
(* a 120.0)
(if (<= (* a 120.0) 1e-13)
(/ (* 60.0 (- x y)) (- z t))
(+ (* a 120.0) (/ 60.0 (/ t y))))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a * 120.0) <= -1e+159) {
tmp = a * 120.0;
} else if ((a * 120.0) <= -1e+93) {
tmp = 60.0 * ((x - y) / (z - t));
} else if ((a * 120.0) <= -5e-75) {
tmp = a * 120.0;
} else if ((a * 120.0) <= 1e-13) {
tmp = (60.0 * (x - y)) / (z - t);
} else {
tmp = (a * 120.0) + (60.0 / (t / y));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((a * 120.0d0) <= (-1d+159)) then
tmp = a * 120.0d0
else if ((a * 120.0d0) <= (-1d+93)) then
tmp = 60.0d0 * ((x - y) / (z - t))
else if ((a * 120.0d0) <= (-5d-75)) then
tmp = a * 120.0d0
else if ((a * 120.0d0) <= 1d-13) then
tmp = (60.0d0 * (x - y)) / (z - t)
else
tmp = (a * 120.0d0) + (60.0d0 / (t / y))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a * 120.0) <= -1e+159) {
tmp = a * 120.0;
} else if ((a * 120.0) <= -1e+93) {
tmp = 60.0 * ((x - y) / (z - t));
} else if ((a * 120.0) <= -5e-75) {
tmp = a * 120.0;
} else if ((a * 120.0) <= 1e-13) {
tmp = (60.0 * (x - y)) / (z - t);
} else {
tmp = (a * 120.0) + (60.0 / (t / y));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a * 120.0) <= -1e+159: tmp = a * 120.0 elif (a * 120.0) <= -1e+93: tmp = 60.0 * ((x - y) / (z - t)) elif (a * 120.0) <= -5e-75: tmp = a * 120.0 elif (a * 120.0) <= 1e-13: tmp = (60.0 * (x - y)) / (z - t) else: tmp = (a * 120.0) + (60.0 / (t / y)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (Float64(a * 120.0) <= -1e+159) tmp = Float64(a * 120.0); elseif (Float64(a * 120.0) <= -1e+93) tmp = Float64(60.0 * Float64(Float64(x - y) / Float64(z - t))); elseif (Float64(a * 120.0) <= -5e-75) tmp = Float64(a * 120.0); elseif (Float64(a * 120.0) <= 1e-13) tmp = Float64(Float64(60.0 * Float64(x - y)) / Float64(z - t)); else tmp = Float64(Float64(a * 120.0) + Float64(60.0 / Float64(t / y))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a * 120.0) <= -1e+159) tmp = a * 120.0; elseif ((a * 120.0) <= -1e+93) tmp = 60.0 * ((x - y) / (z - t)); elseif ((a * 120.0) <= -5e-75) tmp = a * 120.0; elseif ((a * 120.0) <= 1e-13) tmp = (60.0 * (x - y)) / (z - t); else tmp = (a * 120.0) + (60.0 / (t / y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[N[(a * 120.0), $MachinePrecision], -1e+159], N[(a * 120.0), $MachinePrecision], If[LessEqual[N[(a * 120.0), $MachinePrecision], -1e+93], N[(60.0 * N[(N[(x - y), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(a * 120.0), $MachinePrecision], -5e-75], N[(a * 120.0), $MachinePrecision], If[LessEqual[N[(a * 120.0), $MachinePrecision], 1e-13], N[(N[(60.0 * N[(x - y), $MachinePrecision]), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision], N[(N[(a * 120.0), $MachinePrecision] + N[(60.0 / N[(t / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \cdot 120 \leq -1 \cdot 10^{+159}:\\
\;\;\;\;a \cdot 120\\
\mathbf{elif}\;a \cdot 120 \leq -1 \cdot 10^{+93}:\\
\;\;\;\;60 \cdot \frac{x - y}{z - t}\\
\mathbf{elif}\;a \cdot 120 \leq -5 \cdot 10^{-75}:\\
\;\;\;\;a \cdot 120\\
\mathbf{elif}\;a \cdot 120 \leq 10^{-13}:\\
\;\;\;\;\frac{60 \cdot \left(x - y\right)}{z - t}\\
\mathbf{else}:\\
\;\;\;\;a \cdot 120 + \frac{60}{\frac{t}{y}}\\
\end{array}
\end{array}
if (*.f64 a 120) < -9.9999999999999993e158 or -1.00000000000000004e93 < (*.f64 a 120) < -4.99999999999999979e-75Initial program 99.9%
associate-/l*99.8%
Simplified99.8%
Taylor expanded in z around inf 76.1%
if -9.9999999999999993e158 < (*.f64 a 120) < -1.00000000000000004e93Initial program 92.9%
associate-/l*99.9%
Simplified99.9%
Taylor expanded in a around 0 92.4%
if -4.99999999999999979e-75 < (*.f64 a 120) < 1e-13Initial program 99.7%
associate-/l*99.5%
Simplified99.5%
associate-/r/99.7%
Applied egg-rr99.7%
Taylor expanded in a around 0 78.7%
associate-*r/78.8%
*-commutative78.8%
Simplified78.8%
if 1e-13 < (*.f64 a 120) Initial program 99.9%
associate-/l*99.9%
Simplified99.9%
Taylor expanded in z around 0 71.4%
neg-mul-171.4%
distribute-neg-frac71.4%
Simplified71.4%
Taylor expanded in x around 0 75.3%
Final simplification77.8%
(FPCore (x y z t a)
:precision binary64
(if (<= (* a 120.0) -1e+159)
(* a 120.0)
(if (<= (* a 120.0) -1e+93)
(* 60.0 (/ (- x y) (- z t)))
(if (<= (* a 120.0) -5e-75)
(* a 120.0)
(if (<= (* a 120.0) 1e-13)
(/ (- x y) (/ (- z t) 60.0))
(+ (* a 120.0) (/ 60.0 (/ t y))))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a * 120.0) <= -1e+159) {
tmp = a * 120.0;
} else if ((a * 120.0) <= -1e+93) {
tmp = 60.0 * ((x - y) / (z - t));
} else if ((a * 120.0) <= -5e-75) {
tmp = a * 120.0;
} else if ((a * 120.0) <= 1e-13) {
tmp = (x - y) / ((z - t) / 60.0);
} else {
tmp = (a * 120.0) + (60.0 / (t / y));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((a * 120.0d0) <= (-1d+159)) then
tmp = a * 120.0d0
else if ((a * 120.0d0) <= (-1d+93)) then
tmp = 60.0d0 * ((x - y) / (z - t))
else if ((a * 120.0d0) <= (-5d-75)) then
tmp = a * 120.0d0
else if ((a * 120.0d0) <= 1d-13) then
tmp = (x - y) / ((z - t) / 60.0d0)
else
tmp = (a * 120.0d0) + (60.0d0 / (t / y))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a * 120.0) <= -1e+159) {
tmp = a * 120.0;
} else if ((a * 120.0) <= -1e+93) {
tmp = 60.0 * ((x - y) / (z - t));
} else if ((a * 120.0) <= -5e-75) {
tmp = a * 120.0;
} else if ((a * 120.0) <= 1e-13) {
tmp = (x - y) / ((z - t) / 60.0);
} else {
tmp = (a * 120.0) + (60.0 / (t / y));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a * 120.0) <= -1e+159: tmp = a * 120.0 elif (a * 120.0) <= -1e+93: tmp = 60.0 * ((x - y) / (z - t)) elif (a * 120.0) <= -5e-75: tmp = a * 120.0 elif (a * 120.0) <= 1e-13: tmp = (x - y) / ((z - t) / 60.0) else: tmp = (a * 120.0) + (60.0 / (t / y)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (Float64(a * 120.0) <= -1e+159) tmp = Float64(a * 120.0); elseif (Float64(a * 120.0) <= -1e+93) tmp = Float64(60.0 * Float64(Float64(x - y) / Float64(z - t))); elseif (Float64(a * 120.0) <= -5e-75) tmp = Float64(a * 120.0); elseif (Float64(a * 120.0) <= 1e-13) tmp = Float64(Float64(x - y) / Float64(Float64(z - t) / 60.0)); else tmp = Float64(Float64(a * 120.0) + Float64(60.0 / Float64(t / y))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a * 120.0) <= -1e+159) tmp = a * 120.0; elseif ((a * 120.0) <= -1e+93) tmp = 60.0 * ((x - y) / (z - t)); elseif ((a * 120.0) <= -5e-75) tmp = a * 120.0; elseif ((a * 120.0) <= 1e-13) tmp = (x - y) / ((z - t) / 60.0); else tmp = (a * 120.0) + (60.0 / (t / y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[N[(a * 120.0), $MachinePrecision], -1e+159], N[(a * 120.0), $MachinePrecision], If[LessEqual[N[(a * 120.0), $MachinePrecision], -1e+93], N[(60.0 * N[(N[(x - y), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(a * 120.0), $MachinePrecision], -5e-75], N[(a * 120.0), $MachinePrecision], If[LessEqual[N[(a * 120.0), $MachinePrecision], 1e-13], N[(N[(x - y), $MachinePrecision] / N[(N[(z - t), $MachinePrecision] / 60.0), $MachinePrecision]), $MachinePrecision], N[(N[(a * 120.0), $MachinePrecision] + N[(60.0 / N[(t / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \cdot 120 \leq -1 \cdot 10^{+159}:\\
\;\;\;\;a \cdot 120\\
\mathbf{elif}\;a \cdot 120 \leq -1 \cdot 10^{+93}:\\
\;\;\;\;60 \cdot \frac{x - y}{z - t}\\
\mathbf{elif}\;a \cdot 120 \leq -5 \cdot 10^{-75}:\\
\;\;\;\;a \cdot 120\\
\mathbf{elif}\;a \cdot 120 \leq 10^{-13}:\\
\;\;\;\;\frac{x - y}{\frac{z - t}{60}}\\
\mathbf{else}:\\
\;\;\;\;a \cdot 120 + \frac{60}{\frac{t}{y}}\\
\end{array}
\end{array}
if (*.f64 a 120) < -9.9999999999999993e158 or -1.00000000000000004e93 < (*.f64 a 120) < -4.99999999999999979e-75Initial program 99.9%
associate-/l*99.8%
Simplified99.8%
Taylor expanded in z around inf 76.1%
if -9.9999999999999993e158 < (*.f64 a 120) < -1.00000000000000004e93Initial program 92.9%
associate-/l*99.9%
Simplified99.9%
Taylor expanded in a around 0 92.4%
if -4.99999999999999979e-75 < (*.f64 a 120) < 1e-13Initial program 99.7%
associate-/l*99.5%
Simplified99.5%
associate-/r/99.7%
Applied egg-rr99.7%
Taylor expanded in a around 0 78.7%
associate-*r/78.8%
*-commutative78.8%
associate-/l*78.8%
Simplified78.8%
if 1e-13 < (*.f64 a 120) Initial program 99.9%
associate-/l*99.9%
Simplified99.9%
Taylor expanded in z around 0 71.4%
neg-mul-171.4%
distribute-neg-frac71.4%
Simplified71.4%
Taylor expanded in x around 0 75.3%
Final simplification77.8%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* -60.0 (/ y (- z t)))))
(if (<= y -3.3e+171)
t_1
(if (<= y 5.5e-105)
(* a 120.0)
(if (<= y 7e-86)
(* 60.0 (/ x (- z t)))
(if (<= y 1.55e+75) (* a 120.0) t_1))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = -60.0 * (y / (z - t));
double tmp;
if (y <= -3.3e+171) {
tmp = t_1;
} else if (y <= 5.5e-105) {
tmp = a * 120.0;
} else if (y <= 7e-86) {
tmp = 60.0 * (x / (z - t));
} else if (y <= 1.55e+75) {
tmp = a * 120.0;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = (-60.0d0) * (y / (z - t))
if (y <= (-3.3d+171)) then
tmp = t_1
else if (y <= 5.5d-105) then
tmp = a * 120.0d0
else if (y <= 7d-86) then
tmp = 60.0d0 * (x / (z - t))
else if (y <= 1.55d+75) then
tmp = a * 120.0d0
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = -60.0 * (y / (z - t));
double tmp;
if (y <= -3.3e+171) {
tmp = t_1;
} else if (y <= 5.5e-105) {
tmp = a * 120.0;
} else if (y <= 7e-86) {
tmp = 60.0 * (x / (z - t));
} else if (y <= 1.55e+75) {
tmp = a * 120.0;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = -60.0 * (y / (z - t)) tmp = 0 if y <= -3.3e+171: tmp = t_1 elif y <= 5.5e-105: tmp = a * 120.0 elif y <= 7e-86: tmp = 60.0 * (x / (z - t)) elif y <= 1.55e+75: tmp = a * 120.0 else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(-60.0 * Float64(y / Float64(z - t))) tmp = 0.0 if (y <= -3.3e+171) tmp = t_1; elseif (y <= 5.5e-105) tmp = Float64(a * 120.0); elseif (y <= 7e-86) tmp = Float64(60.0 * Float64(x / Float64(z - t))); elseif (y <= 1.55e+75) tmp = Float64(a * 120.0); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = -60.0 * (y / (z - t)); tmp = 0.0; if (y <= -3.3e+171) tmp = t_1; elseif (y <= 5.5e-105) tmp = a * 120.0; elseif (y <= 7e-86) tmp = 60.0 * (x / (z - t)); elseif (y <= 1.55e+75) tmp = a * 120.0; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(-60.0 * N[(y / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -3.3e+171], t$95$1, If[LessEqual[y, 5.5e-105], N[(a * 120.0), $MachinePrecision], If[LessEqual[y, 7e-86], N[(60.0 * N[(x / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.55e+75], N[(a * 120.0), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := -60 \cdot \frac{y}{z - t}\\
\mathbf{if}\;y \leq -3.3 \cdot 10^{+171}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 5.5 \cdot 10^{-105}:\\
\;\;\;\;a \cdot 120\\
\mathbf{elif}\;y \leq 7 \cdot 10^{-86}:\\
\;\;\;\;60 \cdot \frac{x}{z - t}\\
\mathbf{elif}\;y \leq 1.55 \cdot 10^{+75}:\\
\;\;\;\;a \cdot 120\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if y < -3.29999999999999991e171 or 1.5500000000000001e75 < y Initial program 98.7%
associate-/l*99.7%
Simplified99.7%
associate-/r/99.7%
Applied egg-rr99.7%
Taylor expanded in y around inf 66.4%
if -3.29999999999999991e171 < y < 5.50000000000000029e-105 or 7.00000000000000041e-86 < y < 1.5500000000000001e75Initial program 99.8%
associate-/l*99.7%
Simplified99.7%
Taylor expanded in z around inf 62.6%
if 5.50000000000000029e-105 < y < 7.00000000000000041e-86Initial program 99.2%
associate-/l*99.2%
Simplified99.2%
associate-/r/99.7%
Applied egg-rr99.7%
Taylor expanded in x around inf 85.2%
Final simplification64.4%
(FPCore (x y z t a)
:precision binary64
(if (<= y -2.8e+174)
(/ -60.0 (/ (- z t) y))
(if (<= y 2.4e-106)
(* a 120.0)
(if (<= y 5.6e-86)
(* 60.0 (/ x (- z t)))
(if (<= y 2.1e+75) (* a 120.0) (* -60.0 (/ y (- z t))))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (y <= -2.8e+174) {
tmp = -60.0 / ((z - t) / y);
} else if (y <= 2.4e-106) {
tmp = a * 120.0;
} else if (y <= 5.6e-86) {
tmp = 60.0 * (x / (z - t));
} else if (y <= 2.1e+75) {
tmp = a * 120.0;
} else {
tmp = -60.0 * (y / (z - t));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (y <= (-2.8d+174)) then
tmp = (-60.0d0) / ((z - t) / y)
else if (y <= 2.4d-106) then
tmp = a * 120.0d0
else if (y <= 5.6d-86) then
tmp = 60.0d0 * (x / (z - t))
else if (y <= 2.1d+75) then
tmp = a * 120.0d0
else
tmp = (-60.0d0) * (y / (z - t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (y <= -2.8e+174) {
tmp = -60.0 / ((z - t) / y);
} else if (y <= 2.4e-106) {
tmp = a * 120.0;
} else if (y <= 5.6e-86) {
tmp = 60.0 * (x / (z - t));
} else if (y <= 2.1e+75) {
tmp = a * 120.0;
} else {
tmp = -60.0 * (y / (z - t));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if y <= -2.8e+174: tmp = -60.0 / ((z - t) / y) elif y <= 2.4e-106: tmp = a * 120.0 elif y <= 5.6e-86: tmp = 60.0 * (x / (z - t)) elif y <= 2.1e+75: tmp = a * 120.0 else: tmp = -60.0 * (y / (z - t)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (y <= -2.8e+174) tmp = Float64(-60.0 / Float64(Float64(z - t) / y)); elseif (y <= 2.4e-106) tmp = Float64(a * 120.0); elseif (y <= 5.6e-86) tmp = Float64(60.0 * Float64(x / Float64(z - t))); elseif (y <= 2.1e+75) tmp = Float64(a * 120.0); else tmp = Float64(-60.0 * Float64(y / Float64(z - t))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (y <= -2.8e+174) tmp = -60.0 / ((z - t) / y); elseif (y <= 2.4e-106) tmp = a * 120.0; elseif (y <= 5.6e-86) tmp = 60.0 * (x / (z - t)); elseif (y <= 2.1e+75) tmp = a * 120.0; else tmp = -60.0 * (y / (z - t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[y, -2.8e+174], N[(-60.0 / N[(N[(z - t), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.4e-106], N[(a * 120.0), $MachinePrecision], If[LessEqual[y, 5.6e-86], N[(60.0 * N[(x / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.1e+75], N[(a * 120.0), $MachinePrecision], N[(-60.0 * N[(y / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.8 \cdot 10^{+174}:\\
\;\;\;\;\frac{-60}{\frac{z - t}{y}}\\
\mathbf{elif}\;y \leq 2.4 \cdot 10^{-106}:\\
\;\;\;\;a \cdot 120\\
\mathbf{elif}\;y \leq 5.6 \cdot 10^{-86}:\\
\;\;\;\;60 \cdot \frac{x}{z - t}\\
\mathbf{elif}\;y \leq 2.1 \cdot 10^{+75}:\\
\;\;\;\;a \cdot 120\\
\mathbf{else}:\\
\;\;\;\;-60 \cdot \frac{y}{z - t}\\
\end{array}
\end{array}
if y < -2.7999999999999999e174Initial program 97.3%
associate-/l*99.7%
Simplified99.7%
associate-/r/99.6%
Applied egg-rr99.6%
Taylor expanded in y around inf 64.5%
associate-*r/64.1%
associate-/l*64.5%
Simplified64.5%
if -2.7999999999999999e174 < y < 2.3999999999999998e-106 or 5.60000000000000019e-86 < y < 2.09999999999999999e75Initial program 99.8%
associate-/l*99.7%
Simplified99.7%
Taylor expanded in z around inf 62.6%
if 2.3999999999999998e-106 < y < 5.60000000000000019e-86Initial program 99.2%
associate-/l*99.2%
Simplified99.2%
associate-/r/99.7%
Applied egg-rr99.7%
Taylor expanded in x around inf 85.2%
if 2.09999999999999999e75 < y Initial program 99.8%
associate-/l*99.7%
Simplified99.7%
associate-/r/99.8%
Applied egg-rr99.8%
Taylor expanded in y around inf 68.1%
Final simplification64.4%
(FPCore (x y z t a)
:precision binary64
(if (<= z -8.5e-31)
(+ (* a 120.0) (* -60.0 (/ y z)))
(if (<= z 2.7e-33)
(+ (* (- x y) (/ -60.0 t)) (* a 120.0))
(if (<= z 7.2e+139)
(/ (- x y) (/ (- z t) 60.0))
(+ (* a 120.0) (* x (/ 60.0 z)))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -8.5e-31) {
tmp = (a * 120.0) + (-60.0 * (y / z));
} else if (z <= 2.7e-33) {
tmp = ((x - y) * (-60.0 / t)) + (a * 120.0);
} else if (z <= 7.2e+139) {
tmp = (x - y) / ((z - t) / 60.0);
} else {
tmp = (a * 120.0) + (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) :: tmp
if (z <= (-8.5d-31)) then
tmp = (a * 120.0d0) + ((-60.0d0) * (y / z))
else if (z <= 2.7d-33) then
tmp = ((x - y) * ((-60.0d0) / t)) + (a * 120.0d0)
else if (z <= 7.2d+139) then
tmp = (x - y) / ((z - t) / 60.0d0)
else
tmp = (a * 120.0d0) + (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 tmp;
if (z <= -8.5e-31) {
tmp = (a * 120.0) + (-60.0 * (y / z));
} else if (z <= 2.7e-33) {
tmp = ((x - y) * (-60.0 / t)) + (a * 120.0);
} else if (z <= 7.2e+139) {
tmp = (x - y) / ((z - t) / 60.0);
} else {
tmp = (a * 120.0) + (x * (60.0 / z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -8.5e-31: tmp = (a * 120.0) + (-60.0 * (y / z)) elif z <= 2.7e-33: tmp = ((x - y) * (-60.0 / t)) + (a * 120.0) elif z <= 7.2e+139: tmp = (x - y) / ((z - t) / 60.0) else: tmp = (a * 120.0) + (x * (60.0 / z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -8.5e-31) tmp = Float64(Float64(a * 120.0) + Float64(-60.0 * Float64(y / z))); elseif (z <= 2.7e-33) tmp = Float64(Float64(Float64(x - y) * Float64(-60.0 / t)) + Float64(a * 120.0)); elseif (z <= 7.2e+139) tmp = Float64(Float64(x - y) / Float64(Float64(z - t) / 60.0)); else tmp = Float64(Float64(a * 120.0) + Float64(x * Float64(60.0 / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -8.5e-31) tmp = (a * 120.0) + (-60.0 * (y / z)); elseif (z <= 2.7e-33) tmp = ((x - y) * (-60.0 / t)) + (a * 120.0); elseif (z <= 7.2e+139) tmp = (x - y) / ((z - t) / 60.0); else tmp = (a * 120.0) + (x * (60.0 / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -8.5e-31], N[(N[(a * 120.0), $MachinePrecision] + N[(-60.0 * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.7e-33], N[(N[(N[(x - y), $MachinePrecision] * N[(-60.0 / t), $MachinePrecision]), $MachinePrecision] + N[(a * 120.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 7.2e+139], N[(N[(x - y), $MachinePrecision] / N[(N[(z - t), $MachinePrecision] / 60.0), $MachinePrecision]), $MachinePrecision], N[(N[(a * 120.0), $MachinePrecision] + N[(x * N[(60.0 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -8.5 \cdot 10^{-31}:\\
\;\;\;\;a \cdot 120 + -60 \cdot \frac{y}{z}\\
\mathbf{elif}\;z \leq 2.7 \cdot 10^{-33}:\\
\;\;\;\;\left(x - y\right) \cdot \frac{-60}{t} + a \cdot 120\\
\mathbf{elif}\;z \leq 7.2 \cdot 10^{+139}:\\
\;\;\;\;\frac{x - y}{\frac{z - t}{60}}\\
\mathbf{else}:\\
\;\;\;\;a \cdot 120 + x \cdot \frac{60}{z}\\
\end{array}
\end{array}
if z < -8.5000000000000007e-31Initial program 97.9%
associate-/l*99.7%
Simplified99.7%
Taylor expanded in z around inf 96.8%
Taylor expanded in x around 0 83.5%
if -8.5000000000000007e-31 < z < 2.7000000000000001e-33Initial program 99.9%
associate-/l*99.7%
Simplified99.7%
associate-/r/99.8%
Applied egg-rr99.8%
Taylor expanded in z around 0 87.6%
if 2.7000000000000001e-33 < z < 7.19999999999999971e139Initial program 99.5%
associate-/l*99.6%
Simplified99.6%
associate-/r/99.5%
Applied egg-rr99.5%
Taylor expanded in a around 0 72.5%
associate-*r/72.6%
*-commutative72.6%
associate-/l*72.8%
Simplified72.8%
if 7.19999999999999971e139 < z Initial program 99.7%
associate-/l*99.7%
Simplified99.7%
Taylor expanded in z around inf 99.7%
Taylor expanded in x around inf 91.7%
associate-*r/91.7%
associate-*l/91.7%
*-commutative91.7%
Simplified91.7%
Final simplification85.7%
(FPCore (x y z t a) :precision binary64 (if (or (<= y -1.05e+192) (not (<= y 9.5e+74))) (* 60.0 (/ (- x y) (- z t))) (+ (* a 120.0) (* (/ 60.0 (- z t)) x))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((y <= -1.05e+192) || !(y <= 9.5e+74)) {
tmp = 60.0 * ((x - y) / (z - t));
} else {
tmp = (a * 120.0) + ((60.0 / (z - t)) * x);
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((y <= (-1.05d+192)) .or. (.not. (y <= 9.5d+74))) then
tmp = 60.0d0 * ((x - y) / (z - t))
else
tmp = (a * 120.0d0) + ((60.0d0 / (z - t)) * x)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((y <= -1.05e+192) || !(y <= 9.5e+74)) {
tmp = 60.0 * ((x - y) / (z - t));
} else {
tmp = (a * 120.0) + ((60.0 / (z - t)) * x);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (y <= -1.05e+192) or not (y <= 9.5e+74): tmp = 60.0 * ((x - y) / (z - t)) else: tmp = (a * 120.0) + ((60.0 / (z - t)) * x) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((y <= -1.05e+192) || !(y <= 9.5e+74)) tmp = Float64(60.0 * Float64(Float64(x - y) / Float64(z - t))); else tmp = Float64(Float64(a * 120.0) + Float64(Float64(60.0 / Float64(z - t)) * x)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((y <= -1.05e+192) || ~((y <= 9.5e+74))) tmp = 60.0 * ((x - y) / (z - t)); else tmp = (a * 120.0) + ((60.0 / (z - t)) * x); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[y, -1.05e+192], N[Not[LessEqual[y, 9.5e+74]], $MachinePrecision]], N[(60.0 * N[(N[(x - y), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(a * 120.0), $MachinePrecision] + N[(N[(60.0 / N[(z - t), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.05 \cdot 10^{+192} \lor \neg \left(y \leq 9.5 \cdot 10^{+74}\right):\\
\;\;\;\;60 \cdot \frac{x - y}{z - t}\\
\mathbf{else}:\\
\;\;\;\;a \cdot 120 + \frac{60}{z - t} \cdot x\\
\end{array}
\end{array}
if y < -1.04999999999999997e192 or 9.5000000000000006e74 < y Initial program 98.7%
associate-/l*99.7%
Simplified99.7%
Taylor expanded in a around 0 76.6%
if -1.04999999999999997e192 < y < 9.5000000000000006e74Initial program 99.8%
associate-/l*99.7%
Simplified99.7%
Taylor expanded in x around inf 86.2%
associate-*r/86.3%
associate-*l/86.2%
*-commutative86.2%
Simplified86.2%
Final simplification83.3%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -5.5e-32) (not (<= z 4.3e-7))) (+ (/ 60.0 (/ z (- x y))) (* a 120.0)) (+ (* (- x y) (/ -60.0 t)) (* a 120.0))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -5.5e-32) || !(z <= 4.3e-7)) {
tmp = (60.0 / (z / (x - y))) + (a * 120.0);
} else {
tmp = ((x - y) * (-60.0 / t)) + (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 ((z <= (-5.5d-32)) .or. (.not. (z <= 4.3d-7))) then
tmp = (60.0d0 / (z / (x - y))) + (a * 120.0d0)
else
tmp = ((x - y) * ((-60.0d0) / t)) + (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 ((z <= -5.5e-32) || !(z <= 4.3e-7)) {
tmp = (60.0 / (z / (x - y))) + (a * 120.0);
} else {
tmp = ((x - y) * (-60.0 / t)) + (a * 120.0);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -5.5e-32) or not (z <= 4.3e-7): tmp = (60.0 / (z / (x - y))) + (a * 120.0) else: tmp = ((x - y) * (-60.0 / t)) + (a * 120.0) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -5.5e-32) || !(z <= 4.3e-7)) tmp = Float64(Float64(60.0 / Float64(z / Float64(x - y))) + Float64(a * 120.0)); else tmp = Float64(Float64(Float64(x - y) * Float64(-60.0 / t)) + Float64(a * 120.0)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((z <= -5.5e-32) || ~((z <= 4.3e-7))) tmp = (60.0 / (z / (x - y))) + (a * 120.0); else tmp = ((x - y) * (-60.0 / t)) + (a * 120.0); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -5.5e-32], N[Not[LessEqual[z, 4.3e-7]], $MachinePrecision]], N[(N[(60.0 / N[(z / N[(x - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(a * 120.0), $MachinePrecision]), $MachinePrecision], N[(N[(N[(x - y), $MachinePrecision] * N[(-60.0 / t), $MachinePrecision]), $MachinePrecision] + N[(a * 120.0), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -5.5 \cdot 10^{-32} \lor \neg \left(z \leq 4.3 \cdot 10^{-7}\right):\\
\;\;\;\;\frac{60}{\frac{z}{x - y}} + a \cdot 120\\
\mathbf{else}:\\
\;\;\;\;\left(x - y\right) \cdot \frac{-60}{t} + a \cdot 120\\
\end{array}
\end{array}
if z < -5.50000000000000024e-32 or 4.3000000000000001e-7 < z Initial program 98.7%
associate-/l*99.7%
Simplified99.7%
Taylor expanded in z around inf 98.1%
if -5.50000000000000024e-32 < z < 4.3000000000000001e-7Initial program 99.9%
associate-/l*99.7%
Simplified99.7%
associate-/r/99.8%
Applied egg-rr99.8%
Taylor expanded in z around 0 86.4%
Final simplification90.5%
(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(Float64(60.0 / 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[(N[(60.0 / N[(z - t), $MachinePrecision]), $MachinePrecision] * N[(x - y), $MachinePrecision]), $MachinePrecision] + N[(a * 120.0), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{60}{z - t} \cdot \left(x - y\right) + a \cdot 120
\end{array}
Initial program 99.4%
associate-/l*99.7%
Simplified99.7%
associate-/r/99.8%
Applied egg-rr99.8%
Final simplification99.8%
(FPCore (x y z t a) :precision binary64 (if (or (<= y -3.2e+176) (not (<= y 1.45e+75))) (* -60.0 (/ y (- z t))) (* a 120.0)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((y <= -3.2e+176) || !(y <= 1.45e+75)) {
tmp = -60.0 * (y / (z - t));
} else {
tmp = a * 120.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((y <= (-3.2d+176)) .or. (.not. (y <= 1.45d+75))) then
tmp = (-60.0d0) * (y / (z - t))
else
tmp = a * 120.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((y <= -3.2e+176) || !(y <= 1.45e+75)) {
tmp = -60.0 * (y / (z - t));
} else {
tmp = a * 120.0;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (y <= -3.2e+176) or not (y <= 1.45e+75): tmp = -60.0 * (y / (z - t)) else: tmp = a * 120.0 return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((y <= -3.2e+176) || !(y <= 1.45e+75)) tmp = Float64(-60.0 * Float64(y / Float64(z - t))); else tmp = Float64(a * 120.0); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((y <= -3.2e+176) || ~((y <= 1.45e+75))) tmp = -60.0 * (y / (z - t)); else tmp = a * 120.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[y, -3.2e+176], N[Not[LessEqual[y, 1.45e+75]], $MachinePrecision]], N[(-60.0 * N[(y / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * 120.0), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -3.2 \cdot 10^{+176} \lor \neg \left(y \leq 1.45 \cdot 10^{+75}\right):\\
\;\;\;\;-60 \cdot \frac{y}{z - t}\\
\mathbf{else}:\\
\;\;\;\;a \cdot 120\\
\end{array}
\end{array}
if y < -3.1999999999999998e176 or 1.4499999999999999e75 < y Initial program 98.7%
associate-/l*99.7%
Simplified99.7%
associate-/r/99.7%
Applied egg-rr99.7%
Taylor expanded in y around inf 66.4%
if -3.1999999999999998e176 < y < 1.4499999999999999e75Initial program 99.8%
associate-/l*99.7%
Simplified99.7%
Taylor expanded in z around inf 60.9%
Final simplification62.7%
(FPCore (x y z t a) :precision binary64 (if (or (<= y -3.4e+193) (not (<= y 5e+215))) (* -60.0 (/ y z)) (* a 120.0)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((y <= -3.4e+193) || !(y <= 5e+215)) {
tmp = -60.0 * (y / z);
} else {
tmp = a * 120.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((y <= (-3.4d+193)) .or. (.not. (y <= 5d+215))) then
tmp = (-60.0d0) * (y / z)
else
tmp = a * 120.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((y <= -3.4e+193) || !(y <= 5e+215)) {
tmp = -60.0 * (y / z);
} else {
tmp = a * 120.0;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (y <= -3.4e+193) or not (y <= 5e+215): tmp = -60.0 * (y / z) else: tmp = a * 120.0 return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((y <= -3.4e+193) || !(y <= 5e+215)) tmp = Float64(-60.0 * Float64(y / z)); else tmp = Float64(a * 120.0); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((y <= -3.4e+193) || ~((y <= 5e+215))) tmp = -60.0 * (y / z); else tmp = a * 120.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[y, -3.4e+193], N[Not[LessEqual[y, 5e+215]], $MachinePrecision]], N[(-60.0 * N[(y / z), $MachinePrecision]), $MachinePrecision], N[(a * 120.0), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -3.4 \cdot 10^{+193} \lor \neg \left(y \leq 5 \cdot 10^{+215}\right):\\
\;\;\;\;-60 \cdot \frac{y}{z}\\
\mathbf{else}:\\
\;\;\;\;a \cdot 120\\
\end{array}
\end{array}
if y < -3.39999999999999986e193 or 5.0000000000000001e215 < y Initial program 98.1%
associate-/l*99.7%
Simplified99.7%
associate-/r/99.7%
Applied egg-rr99.7%
Taylor expanded in y around inf 75.4%
Taylor expanded in z around inf 45.2%
if -3.39999999999999986e193 < y < 5.0000000000000001e215Initial program 99.8%
associate-/l*99.7%
Simplified99.7%
Taylor expanded in z around inf 57.0%
Final simplification54.5%
(FPCore (x y z t a) :precision binary64 (if (<= y -1.4e+204) (* -60.0 (/ y z)) (if (<= y 1.5e+185) (* a 120.0) (* 60.0 (/ y t)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (y <= -1.4e+204) {
tmp = -60.0 * (y / z);
} else if (y <= 1.5e+185) {
tmp = a * 120.0;
} else {
tmp = 60.0 * (y / t);
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (y <= (-1.4d+204)) then
tmp = (-60.0d0) * (y / z)
else if (y <= 1.5d+185) then
tmp = a * 120.0d0
else
tmp = 60.0d0 * (y / t)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (y <= -1.4e+204) {
tmp = -60.0 * (y / z);
} else if (y <= 1.5e+185) {
tmp = a * 120.0;
} else {
tmp = 60.0 * (y / t);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if y <= -1.4e+204: tmp = -60.0 * (y / z) elif y <= 1.5e+185: tmp = a * 120.0 else: tmp = 60.0 * (y / t) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (y <= -1.4e+204) tmp = Float64(-60.0 * Float64(y / z)); elseif (y <= 1.5e+185) tmp = Float64(a * 120.0); else tmp = Float64(60.0 * Float64(y / t)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (y <= -1.4e+204) tmp = -60.0 * (y / z); elseif (y <= 1.5e+185) tmp = a * 120.0; else tmp = 60.0 * (y / t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[y, -1.4e+204], N[(-60.0 * N[(y / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.5e+185], N[(a * 120.0), $MachinePrecision], N[(60.0 * N[(y / t), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.4 \cdot 10^{+204}:\\
\;\;\;\;-60 \cdot \frac{y}{z}\\
\mathbf{elif}\;y \leq 1.5 \cdot 10^{+185}:\\
\;\;\;\;a \cdot 120\\
\mathbf{else}:\\
\;\;\;\;60 \cdot \frac{y}{t}\\
\end{array}
\end{array}
if y < -1.40000000000000012e204Initial program 97.1%
associate-/l*99.8%
Simplified99.8%
associate-/r/99.7%
Applied egg-rr99.7%
Taylor expanded in y around inf 65.8%
Taylor expanded in z around inf 45.9%
if -1.40000000000000012e204 < y < 1.49999999999999997e185Initial program 99.8%
associate-/l*99.7%
Simplified99.7%
Taylor expanded in z around inf 58.7%
if 1.49999999999999997e185 < y Initial program 99.8%
associate-/l*99.6%
Simplified99.6%
associate-/r/99.9%
Applied egg-rr99.9%
Taylor expanded in y around inf 80.8%
Taylor expanded in z around 0 50.5%
Final simplification56.1%
(FPCore (x y z t a) :precision binary64 (if (<= y -7.2e+206) (/ -60.0 (/ z y)) (if (<= y 1.4e+185) (* a 120.0) (* 60.0 (/ y t)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (y <= -7.2e+206) {
tmp = -60.0 / (z / y);
} else if (y <= 1.4e+185) {
tmp = a * 120.0;
} else {
tmp = 60.0 * (y / t);
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (y <= (-7.2d+206)) then
tmp = (-60.0d0) / (z / y)
else if (y <= 1.4d+185) then
tmp = a * 120.0d0
else
tmp = 60.0d0 * (y / t)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (y <= -7.2e+206) {
tmp = -60.0 / (z / y);
} else if (y <= 1.4e+185) {
tmp = a * 120.0;
} else {
tmp = 60.0 * (y / t);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if y <= -7.2e+206: tmp = -60.0 / (z / y) elif y <= 1.4e+185: tmp = a * 120.0 else: tmp = 60.0 * (y / t) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (y <= -7.2e+206) tmp = Float64(-60.0 / Float64(z / y)); elseif (y <= 1.4e+185) tmp = Float64(a * 120.0); else tmp = Float64(60.0 * Float64(y / t)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (y <= -7.2e+206) tmp = -60.0 / (z / y); elseif (y <= 1.4e+185) tmp = a * 120.0; else tmp = 60.0 * (y / t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[y, -7.2e+206], N[(-60.0 / N[(z / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.4e+185], N[(a * 120.0), $MachinePrecision], N[(60.0 * N[(y / t), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -7.2 \cdot 10^{+206}:\\
\;\;\;\;\frac{-60}{\frac{z}{y}}\\
\mathbf{elif}\;y \leq 1.4 \cdot 10^{+185}:\\
\;\;\;\;a \cdot 120\\
\mathbf{else}:\\
\;\;\;\;60 \cdot \frac{y}{t}\\
\end{array}
\end{array}
if y < -7.20000000000000057e206Initial program 97.1%
associate-/l*99.8%
Simplified99.8%
associate-/r/99.7%
Applied egg-rr99.7%
Taylor expanded in y around inf 65.8%
Taylor expanded in z around inf 45.9%
associate-*r/45.5%
associate-/l*45.9%
Simplified45.9%
if -7.20000000000000057e206 < y < 1.39999999999999991e185Initial program 99.8%
associate-/l*99.7%
Simplified99.7%
Taylor expanded in z around inf 58.7%
if 1.39999999999999991e185 < y Initial program 99.8%
associate-/l*99.6%
Simplified99.6%
associate-/r/99.9%
Applied egg-rr99.9%
Taylor expanded in y around inf 80.8%
Taylor expanded in z around 0 50.5%
Final simplification56.1%
(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.7%
Simplified99.7%
Taylor expanded in z around inf 49.5%
Final simplification49.5%
(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 2023278
(FPCore (x y z t a)
:name "Data.Colour.RGB:hslsv from colour-2.3.3, B"
:precision binary64
:herbie-target
(+ (/ 60.0 (/ (- z t) (- x y))) (* a 120.0))
(+ (/ (* 60.0 (- x y)) (- z t)) (* a 120.0)))