
(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.5%
associate-/l*99.9%
Simplified99.9%
clear-num99.8%
un-div-inv99.9%
Applied egg-rr99.9%
(FPCore (x y z t a)
:precision binary64
(if (<= (* a 120.0) -1e+186)
(* a 120.0)
(if (<= (* a 120.0) -20000000.0)
(+ (* a 120.0) (* -60.0 (/ y z)))
(if (or (<= (* a 120.0) -5e-72) (not (<= (* a 120.0) 5e+99)))
(* 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) <= -1e+186) {
tmp = a * 120.0;
} else if ((a * 120.0) <= -20000000.0) {
tmp = (a * 120.0) + (-60.0 * (y / z));
} else if (((a * 120.0) <= -5e-72) || !((a * 120.0) <= 5e+99)) {
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) <= (-1d+186)) then
tmp = a * 120.0d0
else if ((a * 120.0d0) <= (-20000000.0d0)) then
tmp = (a * 120.0d0) + ((-60.0d0) * (y / z))
else if (((a * 120.0d0) <= (-5d-72)) .or. (.not. ((a * 120.0d0) <= 5d+99))) 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) <= -1e+186) {
tmp = a * 120.0;
} else if ((a * 120.0) <= -20000000.0) {
tmp = (a * 120.0) + (-60.0 * (y / z));
} else if (((a * 120.0) <= -5e-72) || !((a * 120.0) <= 5e+99)) {
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) <= -1e+186: tmp = a * 120.0 elif (a * 120.0) <= -20000000.0: tmp = (a * 120.0) + (-60.0 * (y / z)) elif ((a * 120.0) <= -5e-72) or not ((a * 120.0) <= 5e+99): 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) <= -1e+186) tmp = Float64(a * 120.0); elseif (Float64(a * 120.0) <= -20000000.0) tmp = Float64(Float64(a * 120.0) + Float64(-60.0 * Float64(y / z))); elseif ((Float64(a * 120.0) <= -5e-72) || !(Float64(a * 120.0) <= 5e+99)) 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) <= -1e+186) tmp = a * 120.0; elseif ((a * 120.0) <= -20000000.0) tmp = (a * 120.0) + (-60.0 * (y / z)); elseif (((a * 120.0) <= -5e-72) || ~(((a * 120.0) <= 5e+99))) tmp = a * 120.0; else tmp = 60.0 * ((x - y) / (z - t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[N[(a * 120.0), $MachinePrecision], -1e+186], N[(a * 120.0), $MachinePrecision], If[LessEqual[N[(a * 120.0), $MachinePrecision], -20000000.0], N[(N[(a * 120.0), $MachinePrecision] + N[(-60.0 * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[N[(a * 120.0), $MachinePrecision], -5e-72], N[Not[LessEqual[N[(a * 120.0), $MachinePrecision], 5e+99]], $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 -1 \cdot 10^{+186}:\\
\;\;\;\;a \cdot 120\\
\mathbf{elif}\;a \cdot 120 \leq -20000000:\\
\;\;\;\;a \cdot 120 + -60 \cdot \frac{y}{z}\\
\mathbf{elif}\;a \cdot 120 \leq -5 \cdot 10^{-72} \lor \neg \left(a \cdot 120 \leq 5 \cdot 10^{+99}\right):\\
\;\;\;\;a \cdot 120\\
\mathbf{else}:\\
\;\;\;\;60 \cdot \frac{x - y}{z - t}\\
\end{array}
\end{array}
if (*.f64 a #s(literal 120 binary64)) < -9.9999999999999998e185 or -2e7 < (*.f64 a #s(literal 120 binary64)) < -4.9999999999999996e-72 or 5.00000000000000008e99 < (*.f64 a #s(literal 120 binary64)) Initial program 100.0%
associate-/l*100.0%
Simplified100.0%
Taylor expanded in z around inf 85.0%
if -9.9999999999999998e185 < (*.f64 a #s(literal 120 binary64)) < -2e7Initial program 97.3%
associate-/l*99.8%
Simplified99.8%
clear-num99.8%
un-div-inv99.8%
Applied egg-rr99.8%
Taylor expanded in z around inf 80.7%
Taylor expanded in x around 0 77.8%
if -4.9999999999999996e-72 < (*.f64 a #s(literal 120 binary64)) < 5.00000000000000008e99Initial program 99.8%
associate-/l*99.8%
Simplified99.8%
Taylor expanded in a around 0 75.4%
Final simplification79.7%
(FPCore (x y z t a)
:precision binary64
(if (<= (* a 120.0) -1e+186)
(+ (* a 120.0) (* 60.0 (/ x z)))
(if (<= (* a 120.0) -100000.0)
(+ (* a 120.0) (* -60.0 (/ y z)))
(if (<= (* a 120.0) -1e-71)
(+ (* a 120.0) (/ 60.0 (/ z x)))
(if (<= (* a 120.0) 5e+99) (/ 60.0 (/ (- z t) (- x y))) (* a 120.0))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a * 120.0) <= -1e+186) {
tmp = (a * 120.0) + (60.0 * (x / z));
} else if ((a * 120.0) <= -100000.0) {
tmp = (a * 120.0) + (-60.0 * (y / z));
} else if ((a * 120.0) <= -1e-71) {
tmp = (a * 120.0) + (60.0 / (z / x));
} else if ((a * 120.0) <= 5e+99) {
tmp = 60.0 / ((z - t) / (x - y));
} else {
tmp = a * 120.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((a * 120.0d0) <= (-1d+186)) then
tmp = (a * 120.0d0) + (60.0d0 * (x / z))
else if ((a * 120.0d0) <= (-100000.0d0)) then
tmp = (a * 120.0d0) + ((-60.0d0) * (y / z))
else if ((a * 120.0d0) <= (-1d-71)) then
tmp = (a * 120.0d0) + (60.0d0 / (z / x))
else if ((a * 120.0d0) <= 5d+99) then
tmp = 60.0d0 / ((z - t) / (x - y))
else
tmp = a * 120.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a * 120.0) <= -1e+186) {
tmp = (a * 120.0) + (60.0 * (x / z));
} else if ((a * 120.0) <= -100000.0) {
tmp = (a * 120.0) + (-60.0 * (y / z));
} else if ((a * 120.0) <= -1e-71) {
tmp = (a * 120.0) + (60.0 / (z / x));
} else if ((a * 120.0) <= 5e+99) {
tmp = 60.0 / ((z - t) / (x - y));
} else {
tmp = a * 120.0;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a * 120.0) <= -1e+186: tmp = (a * 120.0) + (60.0 * (x / z)) elif (a * 120.0) <= -100000.0: tmp = (a * 120.0) + (-60.0 * (y / z)) elif (a * 120.0) <= -1e-71: tmp = (a * 120.0) + (60.0 / (z / x)) elif (a * 120.0) <= 5e+99: tmp = 60.0 / ((z - t) / (x - y)) else: tmp = a * 120.0 return tmp
function code(x, y, z, t, a) tmp = 0.0 if (Float64(a * 120.0) <= -1e+186) tmp = Float64(Float64(a * 120.0) + Float64(60.0 * Float64(x / z))); elseif (Float64(a * 120.0) <= -100000.0) tmp = Float64(Float64(a * 120.0) + Float64(-60.0 * Float64(y / z))); elseif (Float64(a * 120.0) <= -1e-71) tmp = Float64(Float64(a * 120.0) + Float64(60.0 / Float64(z / x))); elseif (Float64(a * 120.0) <= 5e+99) tmp = Float64(60.0 / Float64(Float64(z - t) / Float64(x - y))); else tmp = Float64(a * 120.0); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a * 120.0) <= -1e+186) tmp = (a * 120.0) + (60.0 * (x / z)); elseif ((a * 120.0) <= -100000.0) tmp = (a * 120.0) + (-60.0 * (y / z)); elseif ((a * 120.0) <= -1e-71) tmp = (a * 120.0) + (60.0 / (z / x)); elseif ((a * 120.0) <= 5e+99) tmp = 60.0 / ((z - t) / (x - y)); else tmp = a * 120.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[N[(a * 120.0), $MachinePrecision], -1e+186], N[(N[(a * 120.0), $MachinePrecision] + N[(60.0 * N[(x / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(a * 120.0), $MachinePrecision], -100000.0], N[(N[(a * 120.0), $MachinePrecision] + N[(-60.0 * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(a * 120.0), $MachinePrecision], -1e-71], N[(N[(a * 120.0), $MachinePrecision] + N[(60.0 / N[(z / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(a * 120.0), $MachinePrecision], 5e+99], N[(60.0 / N[(N[(z - t), $MachinePrecision] / N[(x - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * 120.0), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \cdot 120 \leq -1 \cdot 10^{+186}:\\
\;\;\;\;a \cdot 120 + 60 \cdot \frac{x}{z}\\
\mathbf{elif}\;a \cdot 120 \leq -100000:\\
\;\;\;\;a \cdot 120 + -60 \cdot \frac{y}{z}\\
\mathbf{elif}\;a \cdot 120 \leq -1 \cdot 10^{-71}:\\
\;\;\;\;a \cdot 120 + \frac{60}{\frac{z}{x}}\\
\mathbf{elif}\;a \cdot 120 \leq 5 \cdot 10^{+99}:\\
\;\;\;\;\frac{60}{\frac{z - t}{x - y}}\\
\mathbf{else}:\\
\;\;\;\;a \cdot 120\\
\end{array}
\end{array}
if (*.f64 a #s(literal 120 binary64)) < -9.9999999999999998e185Initial program 100.0%
associate-/l*100.0%
Simplified100.0%
Taylor expanded in x around inf 91.6%
associate-*r/91.6%
*-commutative91.6%
associate-*r/91.6%
Simplified91.6%
Taylor expanded in z around inf 83.6%
if -9.9999999999999998e185 < (*.f64 a #s(literal 120 binary64)) < -1e5Initial program 97.3%
associate-/l*99.8%
Simplified99.8%
clear-num99.8%
un-div-inv99.8%
Applied egg-rr99.8%
Taylor expanded in z around inf 78.7%
Taylor expanded in x around 0 78.4%
if -1e5 < (*.f64 a #s(literal 120 binary64)) < -9.9999999999999992e-72Initial program 99.9%
associate-/l*99.8%
Simplified99.8%
clear-num99.8%
un-div-inv99.9%
Applied egg-rr99.9%
Taylor expanded in z around inf 65.7%
Taylor expanded in x around inf 71.8%
if -9.9999999999999992e-72 < (*.f64 a #s(literal 120 binary64)) < 5.00000000000000008e99Initial program 99.8%
associate-/l*99.8%
Simplified99.8%
Taylor expanded in a around 0 74.7%
clear-num99.7%
un-div-inv99.8%
Applied egg-rr74.8%
if 5.00000000000000008e99 < (*.f64 a #s(literal 120 binary64)) Initial program 100.0%
associate-/l*100.0%
Simplified100.0%
Taylor expanded in z around inf 92.4%
Final simplification79.8%
(FPCore (x y z t a)
:precision binary64
(if (<= (* a 120.0) -1e+186)
(+ (* a 120.0) (* 60.0 (/ x z)))
(if (<= (* a 120.0) -100000.0)
(+ (* a 120.0) (* -60.0 (/ y z)))
(if (<= (* a 120.0) -1e-71)
(+ (* a 120.0) (/ 60.0 (/ z x)))
(if (<= (* a 120.0) 5e+99) (* 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+186) {
tmp = (a * 120.0) + (60.0 * (x / z));
} else if ((a * 120.0) <= -100000.0) {
tmp = (a * 120.0) + (-60.0 * (y / z));
} else if ((a * 120.0) <= -1e-71) {
tmp = (a * 120.0) + (60.0 / (z / x));
} else if ((a * 120.0) <= 5e+99) {
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+186)) then
tmp = (a * 120.0d0) + (60.0d0 * (x / z))
else if ((a * 120.0d0) <= (-100000.0d0)) then
tmp = (a * 120.0d0) + ((-60.0d0) * (y / z))
else if ((a * 120.0d0) <= (-1d-71)) then
tmp = (a * 120.0d0) + (60.0d0 / (z / x))
else if ((a * 120.0d0) <= 5d+99) 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+186) {
tmp = (a * 120.0) + (60.0 * (x / z));
} else if ((a * 120.0) <= -100000.0) {
tmp = (a * 120.0) + (-60.0 * (y / z));
} else if ((a * 120.0) <= -1e-71) {
tmp = (a * 120.0) + (60.0 / (z / x));
} else if ((a * 120.0) <= 5e+99) {
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+186: tmp = (a * 120.0) + (60.0 * (x / z)) elif (a * 120.0) <= -100000.0: tmp = (a * 120.0) + (-60.0 * (y / z)) elif (a * 120.0) <= -1e-71: tmp = (a * 120.0) + (60.0 / (z / x)) elif (a * 120.0) <= 5e+99: 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+186) tmp = Float64(Float64(a * 120.0) + Float64(60.0 * Float64(x / z))); elseif (Float64(a * 120.0) <= -100000.0) tmp = Float64(Float64(a * 120.0) + Float64(-60.0 * Float64(y / z))); elseif (Float64(a * 120.0) <= -1e-71) tmp = Float64(Float64(a * 120.0) + Float64(60.0 / Float64(z / x))); elseif (Float64(a * 120.0) <= 5e+99) 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+186) tmp = (a * 120.0) + (60.0 * (x / z)); elseif ((a * 120.0) <= -100000.0) tmp = (a * 120.0) + (-60.0 * (y / z)); elseif ((a * 120.0) <= -1e-71) tmp = (a * 120.0) + (60.0 / (z / x)); elseif ((a * 120.0) <= 5e+99) 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+186], N[(N[(a * 120.0), $MachinePrecision] + N[(60.0 * N[(x / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(a * 120.0), $MachinePrecision], -100000.0], N[(N[(a * 120.0), $MachinePrecision] + N[(-60.0 * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(a * 120.0), $MachinePrecision], -1e-71], N[(N[(a * 120.0), $MachinePrecision] + N[(60.0 / N[(z / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(a * 120.0), $MachinePrecision], 5e+99], 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^{+186}:\\
\;\;\;\;a \cdot 120 + 60 \cdot \frac{x}{z}\\
\mathbf{elif}\;a \cdot 120 \leq -100000:\\
\;\;\;\;a \cdot 120 + -60 \cdot \frac{y}{z}\\
\mathbf{elif}\;a \cdot 120 \leq -1 \cdot 10^{-71}:\\
\;\;\;\;a \cdot 120 + \frac{60}{\frac{z}{x}}\\
\mathbf{elif}\;a \cdot 120 \leq 5 \cdot 10^{+99}:\\
\;\;\;\;60 \cdot \frac{x - y}{z - t}\\
\mathbf{else}:\\
\;\;\;\;a \cdot 120\\
\end{array}
\end{array}
if (*.f64 a #s(literal 120 binary64)) < -9.9999999999999998e185Initial program 100.0%
associate-/l*100.0%
Simplified100.0%
Taylor expanded in x around inf 91.6%
associate-*r/91.6%
*-commutative91.6%
associate-*r/91.6%
Simplified91.6%
Taylor expanded in z around inf 83.6%
if -9.9999999999999998e185 < (*.f64 a #s(literal 120 binary64)) < -1e5Initial program 97.3%
associate-/l*99.8%
Simplified99.8%
clear-num99.8%
un-div-inv99.8%
Applied egg-rr99.8%
Taylor expanded in z around inf 78.7%
Taylor expanded in x around 0 78.4%
if -1e5 < (*.f64 a #s(literal 120 binary64)) < -9.9999999999999992e-72Initial program 99.9%
associate-/l*99.8%
Simplified99.8%
clear-num99.8%
un-div-inv99.9%
Applied egg-rr99.9%
Taylor expanded in z around inf 65.7%
Taylor expanded in x around inf 71.8%
if -9.9999999999999992e-72 < (*.f64 a #s(literal 120 binary64)) < 5.00000000000000008e99Initial program 99.8%
associate-/l*99.8%
Simplified99.8%
Taylor expanded in a around 0 74.7%
if 5.00000000000000008e99 < (*.f64 a #s(literal 120 binary64)) Initial program 100.0%
associate-/l*100.0%
Simplified100.0%
Taylor expanded in z around inf 92.4%
Final simplification79.8%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ (* a 120.0) (* 60.0 (/ x z)))))
(if (<= (* a 120.0) -1e+186)
t_1
(if (<= (* a 120.0) -100000.0)
(+ (* a 120.0) (* -60.0 (/ y z)))
(if (<= (* a 120.0) -1e-71)
t_1
(if (<= (* a 120.0) 5e+99)
(* 60.0 (/ (- x y) (- z t)))
(* a 120.0)))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = (a * 120.0) + (60.0 * (x / z));
double tmp;
if ((a * 120.0) <= -1e+186) {
tmp = t_1;
} else if ((a * 120.0) <= -100000.0) {
tmp = (a * 120.0) + (-60.0 * (y / z));
} else if ((a * 120.0) <= -1e-71) {
tmp = t_1;
} else if ((a * 120.0) <= 5e+99) {
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) :: t_1
real(8) :: tmp
t_1 = (a * 120.0d0) + (60.0d0 * (x / z))
if ((a * 120.0d0) <= (-1d+186)) then
tmp = t_1
else if ((a * 120.0d0) <= (-100000.0d0)) then
tmp = (a * 120.0d0) + ((-60.0d0) * (y / z))
else if ((a * 120.0d0) <= (-1d-71)) then
tmp = t_1
else if ((a * 120.0d0) <= 5d+99) 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 t_1 = (a * 120.0) + (60.0 * (x / z));
double tmp;
if ((a * 120.0) <= -1e+186) {
tmp = t_1;
} else if ((a * 120.0) <= -100000.0) {
tmp = (a * 120.0) + (-60.0 * (y / z));
} else if ((a * 120.0) <= -1e-71) {
tmp = t_1;
} else if ((a * 120.0) <= 5e+99) {
tmp = 60.0 * ((x - y) / (z - t));
} else {
tmp = a * 120.0;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = (a * 120.0) + (60.0 * (x / z)) tmp = 0 if (a * 120.0) <= -1e+186: tmp = t_1 elif (a * 120.0) <= -100000.0: tmp = (a * 120.0) + (-60.0 * (y / z)) elif (a * 120.0) <= -1e-71: tmp = t_1 elif (a * 120.0) <= 5e+99: tmp = 60.0 * ((x - y) / (z - t)) else: tmp = a * 120.0 return tmp
function code(x, y, z, t, a) t_1 = Float64(Float64(a * 120.0) + Float64(60.0 * Float64(x / z))) tmp = 0.0 if (Float64(a * 120.0) <= -1e+186) tmp = t_1; elseif (Float64(a * 120.0) <= -100000.0) tmp = Float64(Float64(a * 120.0) + Float64(-60.0 * Float64(y / z))); elseif (Float64(a * 120.0) <= -1e-71) tmp = t_1; elseif (Float64(a * 120.0) <= 5e+99) 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) t_1 = (a * 120.0) + (60.0 * (x / z)); tmp = 0.0; if ((a * 120.0) <= -1e+186) tmp = t_1; elseif ((a * 120.0) <= -100000.0) tmp = (a * 120.0) + (-60.0 * (y / z)); elseif ((a * 120.0) <= -1e-71) tmp = t_1; elseif ((a * 120.0) <= 5e+99) tmp = 60.0 * ((x - y) / (z - t)); else tmp = a * 120.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(a * 120.0), $MachinePrecision] + N[(60.0 * N[(x / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(a * 120.0), $MachinePrecision], -1e+186], t$95$1, If[LessEqual[N[(a * 120.0), $MachinePrecision], -100000.0], N[(N[(a * 120.0), $MachinePrecision] + N[(-60.0 * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(a * 120.0), $MachinePrecision], -1e-71], t$95$1, If[LessEqual[N[(a * 120.0), $MachinePrecision], 5e+99], 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}
t_1 := a \cdot 120 + 60 \cdot \frac{x}{z}\\
\mathbf{if}\;a \cdot 120 \leq -1 \cdot 10^{+186}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \cdot 120 \leq -100000:\\
\;\;\;\;a \cdot 120 + -60 \cdot \frac{y}{z}\\
\mathbf{elif}\;a \cdot 120 \leq -1 \cdot 10^{-71}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \cdot 120 \leq 5 \cdot 10^{+99}:\\
\;\;\;\;60 \cdot \frac{x - y}{z - t}\\
\mathbf{else}:\\
\;\;\;\;a \cdot 120\\
\end{array}
\end{array}
if (*.f64 a #s(literal 120 binary64)) < -9.9999999999999998e185 or -1e5 < (*.f64 a #s(literal 120 binary64)) < -9.9999999999999992e-72Initial program 99.9%
associate-/l*99.9%
Simplified99.9%
Taylor expanded in x around inf 92.4%
associate-*r/92.4%
*-commutative92.4%
associate-*r/92.4%
Simplified92.4%
Taylor expanded in z around inf 79.8%
if -9.9999999999999998e185 < (*.f64 a #s(literal 120 binary64)) < -1e5Initial program 97.3%
associate-/l*99.8%
Simplified99.8%
clear-num99.8%
un-div-inv99.8%
Applied egg-rr99.8%
Taylor expanded in z around inf 78.7%
Taylor expanded in x around 0 78.4%
if -9.9999999999999992e-72 < (*.f64 a #s(literal 120 binary64)) < 5.00000000000000008e99Initial program 99.8%
associate-/l*99.8%
Simplified99.8%
Taylor expanded in a around 0 74.7%
if 5.00000000000000008e99 < (*.f64 a #s(literal 120 binary64)) Initial program 100.0%
associate-/l*100.0%
Simplified100.0%
Taylor expanded in z around inf 92.4%
Final simplification79.8%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (/ 60.0 (- z t))))
(if (<= y -3.9e+104)
(* (- x y) t_1)
(if (or (<= y 1.06e+148) (and (not (<= y 9.5e+222)) (<= y 1.3e+252)))
(+ (* a 120.0) (* x t_1))
(* 60.0 (/ (- x y) (- z t)))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = 60.0 / (z - t);
double tmp;
if (y <= -3.9e+104) {
tmp = (x - y) * t_1;
} else if ((y <= 1.06e+148) || (!(y <= 9.5e+222) && (y <= 1.3e+252))) {
tmp = (a * 120.0) + (x * t_1);
} 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) :: t_1
real(8) :: tmp
t_1 = 60.0d0 / (z - t)
if (y <= (-3.9d+104)) then
tmp = (x - y) * t_1
else if ((y <= 1.06d+148) .or. (.not. (y <= 9.5d+222)) .and. (y <= 1.3d+252)) then
tmp = (a * 120.0d0) + (x * t_1)
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 t_1 = 60.0 / (z - t);
double tmp;
if (y <= -3.9e+104) {
tmp = (x - y) * t_1;
} else if ((y <= 1.06e+148) || (!(y <= 9.5e+222) && (y <= 1.3e+252))) {
tmp = (a * 120.0) + (x * t_1);
} else {
tmp = 60.0 * ((x - y) / (z - t));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = 60.0 / (z - t) tmp = 0 if y <= -3.9e+104: tmp = (x - y) * t_1 elif (y <= 1.06e+148) or (not (y <= 9.5e+222) and (y <= 1.3e+252)): tmp = (a * 120.0) + (x * t_1) else: tmp = 60.0 * ((x - y) / (z - t)) return tmp
function code(x, y, z, t, a) t_1 = Float64(60.0 / Float64(z - t)) tmp = 0.0 if (y <= -3.9e+104) tmp = Float64(Float64(x - y) * t_1); elseif ((y <= 1.06e+148) || (!(y <= 9.5e+222) && (y <= 1.3e+252))) tmp = Float64(Float64(a * 120.0) + Float64(x * t_1)); 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) t_1 = 60.0 / (z - t); tmp = 0.0; if (y <= -3.9e+104) tmp = (x - y) * t_1; elseif ((y <= 1.06e+148) || (~((y <= 9.5e+222)) && (y <= 1.3e+252))) tmp = (a * 120.0) + (x * t_1); else tmp = 60.0 * ((x - y) / (z - t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(60.0 / N[(z - t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -3.9e+104], N[(N[(x - y), $MachinePrecision] * t$95$1), $MachinePrecision], If[Or[LessEqual[y, 1.06e+148], And[N[Not[LessEqual[y, 9.5e+222]], $MachinePrecision], LessEqual[y, 1.3e+252]]], N[(N[(a * 120.0), $MachinePrecision] + N[(x * t$95$1), $MachinePrecision]), $MachinePrecision], N[(60.0 * N[(N[(x - y), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{60}{z - t}\\
\mathbf{if}\;y \leq -3.9 \cdot 10^{+104}:\\
\;\;\;\;\left(x - y\right) \cdot t\_1\\
\mathbf{elif}\;y \leq 1.06 \cdot 10^{+148} \lor \neg \left(y \leq 9.5 \cdot 10^{+222}\right) \land y \leq 1.3 \cdot 10^{+252}:\\
\;\;\;\;a \cdot 120 + x \cdot t\_1\\
\mathbf{else}:\\
\;\;\;\;60 \cdot \frac{x - y}{z - t}\\
\end{array}
\end{array}
if y < -3.90000000000000017e104Initial program 99.9%
associate-/l*99.7%
Simplified99.7%
clear-num99.6%
un-div-inv99.8%
Applied egg-rr99.8%
Taylor expanded in a around 0 70.9%
associate-*r/71.1%
associate-*l/71.1%
*-commutative71.1%
Simplified71.1%
if -3.90000000000000017e104 < y < 1.06e148 or 9.5000000000000001e222 < y < 1.30000000000000009e252Initial program 99.9%
associate-/l*99.9%
Simplified99.9%
Taylor expanded in x around inf 94.3%
associate-*r/94.3%
*-commutative94.3%
associate-*r/94.3%
Simplified94.3%
if 1.06e148 < y < 9.5000000000000001e222 or 1.30000000000000009e252 < y Initial program 96.4%
associate-/l*99.8%
Simplified99.8%
Taylor expanded in a around 0 86.8%
Final simplification89.8%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ (* a 120.0) (* x (/ 60.0 (- z t))))))
(if (<= t -1.45e-43)
t_1
(if (<= t -3.2e-96)
(* 60.0 (/ (- x y) (- z t)))
(if (<= t 4.4e-28) (+ (* a 120.0) (/ 60.0 (/ z (- x y)))) t_1)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = (a * 120.0) + (x * (60.0 / (z - t)));
double tmp;
if (t <= -1.45e-43) {
tmp = t_1;
} else if (t <= -3.2e-96) {
tmp = 60.0 * ((x - y) / (z - t));
} else if (t <= 4.4e-28) {
tmp = (a * 120.0) + (60.0 / (z / (x - y)));
} 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 = (a * 120.0d0) + (x * (60.0d0 / (z - t)))
if (t <= (-1.45d-43)) then
tmp = t_1
else if (t <= (-3.2d-96)) then
tmp = 60.0d0 * ((x - y) / (z - t))
else if (t <= 4.4d-28) then
tmp = (a * 120.0d0) + (60.0d0 / (z / (x - y)))
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 = (a * 120.0) + (x * (60.0 / (z - t)));
double tmp;
if (t <= -1.45e-43) {
tmp = t_1;
} else if (t <= -3.2e-96) {
tmp = 60.0 * ((x - y) / (z - t));
} else if (t <= 4.4e-28) {
tmp = (a * 120.0) + (60.0 / (z / (x - y)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = (a * 120.0) + (x * (60.0 / (z - t))) tmp = 0 if t <= -1.45e-43: tmp = t_1 elif t <= -3.2e-96: tmp = 60.0 * ((x - y) / (z - t)) elif t <= 4.4e-28: tmp = (a * 120.0) + (60.0 / (z / (x - y))) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(Float64(a * 120.0) + Float64(x * Float64(60.0 / Float64(z - t)))) tmp = 0.0 if (t <= -1.45e-43) tmp = t_1; elseif (t <= -3.2e-96) tmp = Float64(60.0 * Float64(Float64(x - y) / Float64(z - t))); elseif (t <= 4.4e-28) tmp = Float64(Float64(a * 120.0) + Float64(60.0 / Float64(z / Float64(x - y)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = (a * 120.0) + (x * (60.0 / (z - t))); tmp = 0.0; if (t <= -1.45e-43) tmp = t_1; elseif (t <= -3.2e-96) tmp = 60.0 * ((x - y) / (z - t)); elseif (t <= 4.4e-28) tmp = (a * 120.0) + (60.0 / (z / (x - y))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(a * 120.0), $MachinePrecision] + N[(x * N[(60.0 / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.45e-43], t$95$1, If[LessEqual[t, -3.2e-96], N[(60.0 * N[(N[(x - y), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 4.4e-28], N[(N[(a * 120.0), $MachinePrecision] + N[(60.0 / N[(z / N[(x - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot 120 + x \cdot \frac{60}{z - t}\\
\mathbf{if}\;t \leq -1.45 \cdot 10^{-43}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -3.2 \cdot 10^{-96}:\\
\;\;\;\;60 \cdot \frac{x - y}{z - t}\\
\mathbf{elif}\;t \leq 4.4 \cdot 10^{-28}:\\
\;\;\;\;a \cdot 120 + \frac{60}{\frac{z}{x - y}}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -1.4500000000000001e-43 or 4.39999999999999992e-28 < t Initial program 99.8%
associate-/l*99.9%
Simplified99.9%
Taylor expanded in x around inf 86.6%
associate-*r/86.6%
*-commutative86.6%
associate-*r/86.6%
Simplified86.6%
if -1.4500000000000001e-43 < t < -3.20000000000000012e-96Initial program 99.9%
associate-/l*99.8%
Simplified99.8%
Taylor expanded in a around 0 93.0%
if -3.20000000000000012e-96 < t < 4.39999999999999992e-28Initial program 98.9%
associate-/l*99.9%
Simplified99.9%
clear-num99.8%
un-div-inv99.9%
Applied egg-rr99.9%
Taylor expanded in z around inf 93.0%
Final simplification89.6%
(FPCore (x y z t a) :precision binary64 (if (or (<= (* a 120.0) -5e-72) (not (<= (* a 120.0) 5e+99))) (* 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-72) || !((a * 120.0) <= 5e+99)) {
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-72)) .or. (.not. ((a * 120.0d0) <= 5d+99))) 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-72) || !((a * 120.0) <= 5e+99)) {
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-72) or not ((a * 120.0) <= 5e+99): 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-72) || !(Float64(a * 120.0) <= 5e+99)) 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-72) || ~(((a * 120.0) <= 5e+99))) 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-72], N[Not[LessEqual[N[(a * 120.0), $MachinePrecision], 5e+99]], $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^{-72} \lor \neg \left(a \cdot 120 \leq 5 \cdot 10^{+99}\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.9999999999999996e-72 or 5.00000000000000008e99 < (*.f64 a #s(literal 120 binary64)) Initial program 99.3%
associate-/l*99.9%
Simplified99.9%
Taylor expanded in z around inf 79.5%
if -4.9999999999999996e-72 < (*.f64 a #s(literal 120 binary64)) < 5.00000000000000008e99Initial program 99.8%
associate-/l*99.8%
Simplified99.8%
Taylor expanded in a around 0 75.4%
Final simplification77.7%
(FPCore (x y z t a) :precision binary64 (if (or (<= y -2.7e+56) (not (<= y 1.65e+152))) (+ (* 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 ((y <= -2.7e+56) || !(y <= 1.65e+152)) {
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 ((y <= (-2.7d+56)) .or. (.not. (y <= 1.65d+152))) 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 ((y <= -2.7e+56) || !(y <= 1.65e+152)) {
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 (y <= -2.7e+56) or not (y <= 1.65e+152): 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 ((y <= -2.7e+56) || !(y <= 1.65e+152)) 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 ((y <= -2.7e+56) || ~((y <= 1.65e+152))) 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[Or[LessEqual[y, -2.7e+56], N[Not[LessEqual[y, 1.65e+152]], $MachinePrecision]], 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}\;y \leq -2.7 \cdot 10^{+56} \lor \neg \left(y \leq 1.65 \cdot 10^{+152}\right):\\
\;\;\;\;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 y < -2.7000000000000001e56 or 1.6500000000000001e152 < y Initial program 98.7%
associate-/l*99.8%
Simplified99.8%
Taylor expanded in x around 0 91.3%
associate-*r/91.4%
Simplified91.4%
if -2.7000000000000001e56 < y < 1.6500000000000001e152Initial program 99.9%
associate-/l*99.9%
Simplified99.9%
Taylor expanded in x around inf 96.6%
associate-*r/96.5%
Simplified96.5%
Final simplification94.8%
(FPCore (x y z t a) :precision binary64 (if (or (<= y -3.3e+58) (not (<= y 9.5e+152))) (+ (* a 120.0) (/ (* y -60.0) (- z t))) (+ (* a 120.0) (* x (/ 60.0 (- z t))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((y <= -3.3e+58) || !(y <= 9.5e+152)) {
tmp = (a * 120.0) + ((y * -60.0) / (z - t));
} else {
tmp = (a * 120.0) + (x * (60.0 / (z - t)));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((y <= (-3.3d+58)) .or. (.not. (y <= 9.5d+152))) then
tmp = (a * 120.0d0) + ((y * (-60.0d0)) / (z - t))
else
tmp = (a * 120.0d0) + (x * (60.0d0 / (z - t)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((y <= -3.3e+58) || !(y <= 9.5e+152)) {
tmp = (a * 120.0) + ((y * -60.0) / (z - t));
} else {
tmp = (a * 120.0) + (x * (60.0 / (z - t)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (y <= -3.3e+58) or not (y <= 9.5e+152): tmp = (a * 120.0) + ((y * -60.0) / (z - t)) else: tmp = (a * 120.0) + (x * (60.0 / (z - t))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((y <= -3.3e+58) || !(y <= 9.5e+152)) tmp = Float64(Float64(a * 120.0) + Float64(Float64(y * -60.0) / Float64(z - t))); else tmp = Float64(Float64(a * 120.0) + Float64(x * Float64(60.0 / Float64(z - t)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((y <= -3.3e+58) || ~((y <= 9.5e+152))) tmp = (a * 120.0) + ((y * -60.0) / (z - t)); else tmp = (a * 120.0) + (x * (60.0 / (z - t))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[y, -3.3e+58], N[Not[LessEqual[y, 9.5e+152]], $MachinePrecision]], 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[(x * N[(60.0 / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -3.3 \cdot 10^{+58} \lor \neg \left(y \leq 9.5 \cdot 10^{+152}\right):\\
\;\;\;\;a \cdot 120 + \frac{y \cdot -60}{z - t}\\
\mathbf{else}:\\
\;\;\;\;a \cdot 120 + x \cdot \frac{60}{z - t}\\
\end{array}
\end{array}
if y < -3.29999999999999983e58 or 9.49999999999999916e152 < y Initial program 98.7%
associate-/l*99.8%
Simplified99.8%
Taylor expanded in x around 0 91.3%
associate-*r/91.4%
Simplified91.4%
if -3.29999999999999983e58 < y < 9.49999999999999916e152Initial program 99.9%
associate-/l*99.9%
Simplified99.9%
Taylor expanded in x around inf 96.6%
associate-*r/96.5%
*-commutative96.5%
associate-*r/96.5%
Simplified96.5%
Final simplification94.8%
(FPCore (x y z t a)
:precision binary64
(if (<= a -2.8e-148)
(* a 120.0)
(if (<= a -6.4e-262)
(* -60.0 (/ x t))
(if (<= a 2.4e-159) (* 60.0 (/ x z)) (* a 120.0)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -2.8e-148) {
tmp = a * 120.0;
} else if (a <= -6.4e-262) {
tmp = -60.0 * (x / t);
} else if (a <= 2.4e-159) {
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 (a <= (-2.8d-148)) then
tmp = a * 120.0d0
else if (a <= (-6.4d-262)) then
tmp = (-60.0d0) * (x / t)
else if (a <= 2.4d-159) 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 (a <= -2.8e-148) {
tmp = a * 120.0;
} else if (a <= -6.4e-262) {
tmp = -60.0 * (x / t);
} else if (a <= 2.4e-159) {
tmp = 60.0 * (x / z);
} else {
tmp = a * 120.0;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -2.8e-148: tmp = a * 120.0 elif a <= -6.4e-262: tmp = -60.0 * (x / t) elif a <= 2.4e-159: tmp = 60.0 * (x / z) else: tmp = a * 120.0 return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -2.8e-148) tmp = Float64(a * 120.0); elseif (a <= -6.4e-262) tmp = Float64(-60.0 * Float64(x / t)); elseif (a <= 2.4e-159) 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 (a <= -2.8e-148) tmp = a * 120.0; elseif (a <= -6.4e-262) tmp = -60.0 * (x / t); elseif (a <= 2.4e-159) tmp = 60.0 * (x / z); else tmp = a * 120.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -2.8e-148], N[(a * 120.0), $MachinePrecision], If[LessEqual[a, -6.4e-262], N[(-60.0 * N[(x / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.4e-159], N[(60.0 * N[(x / z), $MachinePrecision]), $MachinePrecision], N[(a * 120.0), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -2.8 \cdot 10^{-148}:\\
\;\;\;\;a \cdot 120\\
\mathbf{elif}\;a \leq -6.4 \cdot 10^{-262}:\\
\;\;\;\;-60 \cdot \frac{x}{t}\\
\mathbf{elif}\;a \leq 2.4 \cdot 10^{-159}:\\
\;\;\;\;60 \cdot \frac{x}{z}\\
\mathbf{else}:\\
\;\;\;\;a \cdot 120\\
\end{array}
\end{array}
if a < -2.8e-148 or 2.39999999999999997e-159 < a Initial program 99.4%
associate-/l*99.9%
Simplified99.9%
Taylor expanded in z around inf 68.2%
if -2.8e-148 < a < -6.4000000000000001e-262Initial program 99.7%
associate-/l*100.0%
Simplified100.0%
Taylor expanded in x around inf 51.9%
associate-*r/51.6%
*-commutative51.6%
associate-*r/51.9%
Simplified51.9%
Taylor expanded in z around 0 59.6%
Taylor expanded in x around inf 59.6%
if -6.4000000000000001e-262 < a < 2.39999999999999997e-159Initial program 99.7%
associate-/l*99.6%
Simplified99.6%
Taylor expanded in a around 0 88.7%
Taylor expanded in z around inf 60.6%
Taylor expanded in x around inf 36.3%
Final simplification62.4%
(FPCore (x y z t a) :precision binary64 (if (or (<= y -4.9e+104) (not (<= y 1.2e+151))) (* -60.0 (/ y (- z t))) (* a 120.0)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((y <= -4.9e+104) || !(y <= 1.2e+151)) {
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 <= (-4.9d+104)) .or. (.not. (y <= 1.2d+151))) 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 <= -4.9e+104) || !(y <= 1.2e+151)) {
tmp = -60.0 * (y / (z - t));
} else {
tmp = a * 120.0;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (y <= -4.9e+104) or not (y <= 1.2e+151): 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 <= -4.9e+104) || !(y <= 1.2e+151)) 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 <= -4.9e+104) || ~((y <= 1.2e+151))) 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, -4.9e+104], N[Not[LessEqual[y, 1.2e+151]], $MachinePrecision]], N[(-60.0 * N[(y / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * 120.0), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -4.9 \cdot 10^{+104} \lor \neg \left(y \leq 1.2 \cdot 10^{+151}\right):\\
\;\;\;\;-60 \cdot \frac{y}{z - t}\\
\mathbf{else}:\\
\;\;\;\;a \cdot 120\\
\end{array}
\end{array}
if y < -4.89999999999999985e104 or 1.20000000000000005e151 < y Initial program 98.6%
associate-/l*99.8%
Simplified99.8%
Taylor expanded in a around 0 71.5%
Taylor expanded in x around 0 63.0%
if -4.89999999999999985e104 < y < 1.20000000000000005e151Initial program 99.9%
associate-/l*99.9%
Simplified99.9%
Taylor expanded in z around inf 67.8%
Final simplification66.4%
(FPCore (x y z t a) :precision binary64 (if (<= y -4.9e+104) (/ (* y -60.0) (- z t)) (if (<= y 1.4e+148) (* a 120.0) (* -60.0 (/ y (- z t))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (y <= -4.9e+104) {
tmp = (y * -60.0) / (z - t);
} else if (y <= 1.4e+148) {
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 <= (-4.9d+104)) then
tmp = (y * (-60.0d0)) / (z - t)
else if (y <= 1.4d+148) 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 <= -4.9e+104) {
tmp = (y * -60.0) / (z - t);
} else if (y <= 1.4e+148) {
tmp = a * 120.0;
} else {
tmp = -60.0 * (y / (z - t));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if y <= -4.9e+104: tmp = (y * -60.0) / (z - t) elif y <= 1.4e+148: 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 <= -4.9e+104) tmp = Float64(Float64(y * -60.0) / Float64(z - t)); elseif (y <= 1.4e+148) 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 <= -4.9e+104) tmp = (y * -60.0) / (z - t); elseif (y <= 1.4e+148) 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, -4.9e+104], N[(N[(y * -60.0), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.4e+148], 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 -4.9 \cdot 10^{+104}:\\
\;\;\;\;\frac{y \cdot -60}{z - t}\\
\mathbf{elif}\;y \leq 1.4 \cdot 10^{+148}:\\
\;\;\;\;a \cdot 120\\
\mathbf{else}:\\
\;\;\;\;-60 \cdot \frac{y}{z - t}\\
\end{array}
\end{array}
if y < -4.89999999999999985e104Initial program 99.9%
associate-/l*99.7%
Simplified99.7%
Taylor expanded in a around 0 70.9%
Taylor expanded in x around 0 66.2%
associate-*r/95.0%
Simplified66.3%
if -4.89999999999999985e104 < y < 1.3999999999999999e148Initial program 99.9%
associate-/l*99.9%
Simplified99.9%
Taylor expanded in z around inf 67.8%
if 1.3999999999999999e148 < y Initial program 97.3%
associate-/l*99.8%
Simplified99.8%
Taylor expanded in a around 0 72.1%
Taylor expanded in x around 0 59.7%
Final simplification66.4%
(FPCore (x y z t a) :precision binary64 (if (or (<= y -2e+270) (not (<= y 2.3e+141))) (* -60.0 (/ y z)) (* a 120.0)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((y <= -2e+270) || !(y <= 2.3e+141)) {
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 <= (-2d+270)) .or. (.not. (y <= 2.3d+141))) 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 <= -2e+270) || !(y <= 2.3e+141)) {
tmp = -60.0 * (y / z);
} else {
tmp = a * 120.0;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (y <= -2e+270) or not (y <= 2.3e+141): tmp = -60.0 * (y / z) else: tmp = a * 120.0 return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((y <= -2e+270) || !(y <= 2.3e+141)) 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 <= -2e+270) || ~((y <= 2.3e+141))) 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, -2e+270], N[Not[LessEqual[y, 2.3e+141]], $MachinePrecision]], N[(-60.0 * N[(y / z), $MachinePrecision]), $MachinePrecision], N[(a * 120.0), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2 \cdot 10^{+270} \lor \neg \left(y \leq 2.3 \cdot 10^{+141}\right):\\
\;\;\;\;-60 \cdot \frac{y}{z}\\
\mathbf{else}:\\
\;\;\;\;a \cdot 120\\
\end{array}
\end{array}
if y < -2.0000000000000001e270 or 2.3000000000000002e141 < y Initial program 97.8%
associate-/l*99.8%
Simplified99.8%
Taylor expanded in a around 0 74.0%
Taylor expanded in z around inf 47.4%
Taylor expanded in x around 0 49.7%
if -2.0000000000000001e270 < y < 2.3000000000000002e141Initial program 99.8%
associate-/l*99.9%
Simplified99.9%
Taylor expanded in z around inf 63.1%
Final simplification60.6%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -1.8e-162) (not (<= a 4.7e-191))) (* a 120.0) (* -60.0 (/ x t))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -1.8e-162) || !(a <= 4.7e-191)) {
tmp = a * 120.0;
} else {
tmp = -60.0 * (x / t);
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((a <= (-1.8d-162)) .or. (.not. (a <= 4.7d-191))) then
tmp = a * 120.0d0
else
tmp = (-60.0d0) * (x / t)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -1.8e-162) || !(a <= 4.7e-191)) {
tmp = a * 120.0;
} else {
tmp = -60.0 * (x / t);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -1.8e-162) or not (a <= 4.7e-191): tmp = a * 120.0 else: tmp = -60.0 * (x / t) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -1.8e-162) || !(a <= 4.7e-191)) tmp = Float64(a * 120.0); else tmp = Float64(-60.0 * Float64(x / t)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a <= -1.8e-162) || ~((a <= 4.7e-191))) tmp = a * 120.0; else tmp = -60.0 * (x / t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -1.8e-162], N[Not[LessEqual[a, 4.7e-191]], $MachinePrecision]], N[(a * 120.0), $MachinePrecision], N[(-60.0 * N[(x / t), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.8 \cdot 10^{-162} \lor \neg \left(a \leq 4.7 \cdot 10^{-191}\right):\\
\;\;\;\;a \cdot 120\\
\mathbf{else}:\\
\;\;\;\;-60 \cdot \frac{x}{t}\\
\end{array}
\end{array}
if a < -1.7999999999999999e-162 or 4.6999999999999997e-191 < a Initial program 99.4%
associate-/l*99.9%
Simplified99.9%
Taylor expanded in z around inf 66.3%
if -1.7999999999999999e-162 < a < 4.6999999999999997e-191Initial program 99.7%
associate-/l*99.7%
Simplified99.7%
Taylor expanded in x around inf 57.9%
associate-*r/57.8%
*-commutative57.8%
associate-*r/57.8%
Simplified57.8%
Taylor expanded in z around 0 34.8%
Taylor expanded in x around inf 30.7%
Final simplification59.9%
(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.5%
associate-/l*99.9%
Simplified99.9%
Final simplification99.9%
(FPCore (x y z t a) :precision binary64 (* a 120.0))
double code(double x, double y, double z, double t, double a) {
return a * 120.0;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
code = a * 120.0d0
end function
public static double code(double x, double y, double z, double t, double a) {
return a * 120.0;
}
def code(x, y, z, t, a): return a * 120.0
function code(x, y, z, t, a) return Float64(a * 120.0) end
function tmp = code(x, y, z, t, a) tmp = a * 120.0; end
code[x_, y_, z_, t_, a_] := N[(a * 120.0), $MachinePrecision]
\begin{array}{l}
\\
a \cdot 120
\end{array}
Initial program 99.5%
associate-/l*99.9%
Simplified99.9%
Taylor expanded in z around inf 56.5%
Final simplification56.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 2024086
(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)))