
(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 16 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a) :precision binary64 (+ (/ (* 60.0 (- x y)) (- z t)) (* a 120.0)))
double code(double x, double y, double z, double t, double a) {
return ((60.0 * (x - y)) / (z - t)) + (a * 120.0);
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
code = ((60.0d0 * (x - y)) / (z - t)) + (a * 120.0d0)
end function
public static double code(double x, double y, double z, double t, double a) {
return ((60.0 * (x - y)) / (z - t)) + (a * 120.0);
}
def code(x, y, z, t, a): return ((60.0 * (x - y)) / (z - t)) + (a * 120.0)
function code(x, y, z, t, a) return Float64(Float64(Float64(60.0 * Float64(x - y)) / Float64(z - t)) + Float64(a * 120.0)) end
function tmp = code(x, y, z, t, a) tmp = ((60.0 * (x - y)) / (z - t)) + (a * 120.0); end
code[x_, y_, z_, t_, a_] := N[(N[(N[(60.0 * N[(x - y), $MachinePrecision]), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision] + N[(a * 120.0), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{60 \cdot \left(x - y\right)}{z - t} + a \cdot 120
\end{array}
(FPCore (x y z t a) :precision binary64 (fma a 120.0 (/ (- x y) (/ (- z t) 60.0))))
double code(double x, double y, double z, double t, double a) {
return fma(a, 120.0, ((x - y) / ((z - t) / 60.0)));
}
function code(x, y, z, t, a) return fma(a, 120.0, Float64(Float64(x - y) / Float64(Float64(z - t) / 60.0))) end
code[x_, y_, z_, t_, a_] := N[(a * 120.0 + N[(N[(x - y), $MachinePrecision] / N[(N[(z - t), $MachinePrecision] / 60.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\mathsf{fma}\left(a, 120, \frac{x - y}{\frac{z - t}{60}}\right)
\end{array}
Initial program 99.4%
Applied egg-rr0
Applied egg-rr0
Applied egg-rr0
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (/ (* 60.0 (- x y)) (- z t))))
(if (<= t_1 -2e+108)
(* 60.0 (/ (- x y) (- z t)))
(if (<= t_1 1e+139) (+ (/ 60.0 (/ (- z t) x)) (* a 120.0)) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = (60.0 * (x - y)) / (z - t);
double tmp;
if (t_1 <= -2e+108) {
tmp = 60.0 * ((x - y) / (z - t));
} else if (t_1 <= 1e+139) {
tmp = (60.0 / ((z - t) / x)) + (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 * (x - y)) / (z - t)
if (t_1 <= (-2d+108)) then
tmp = 60.0d0 * ((x - y) / (z - t))
else if (t_1 <= 1d+139) then
tmp = (60.0d0 / ((z - t) / x)) + (a * 120.0d0)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = (60.0 * (x - y)) / (z - t);
double tmp;
if (t_1 <= -2e+108) {
tmp = 60.0 * ((x - y) / (z - t));
} else if (t_1 <= 1e+139) {
tmp = (60.0 / ((z - t) / x)) + (a * 120.0);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = (60.0 * (x - y)) / (z - t) tmp = 0 if t_1 <= -2e+108: tmp = 60.0 * ((x - y) / (z - t)) elif t_1 <= 1e+139: tmp = (60.0 / ((z - t) / x)) + (a * 120.0) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(Float64(60.0 * Float64(x - y)) / Float64(z - t)) tmp = 0.0 if (t_1 <= -2e+108) tmp = Float64(60.0 * Float64(Float64(x - y) / Float64(z - t))); elseif (t_1 <= 1e+139) tmp = Float64(Float64(60.0 / Float64(Float64(z - t) / x)) + Float64(a * 120.0)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = (60.0 * (x - y)) / (z - t); tmp = 0.0; if (t_1 <= -2e+108) tmp = 60.0 * ((x - y) / (z - t)); elseif (t_1 <= 1e+139) tmp = (60.0 / ((z - t) / x)) + (a * 120.0); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(60.0 * N[(x - y), $MachinePrecision]), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -2e+108], N[(60.0 * N[(N[(x - y), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 1e+139], N[(N[(60.0 / N[(N[(z - t), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] + N[(a * 120.0), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{60 \cdot \left(x - y\right)}{z - t}\\
\mathbf{if}\;t\_1 \leq -2 \cdot 10^{+108}:\\
\;\;\;\;60 \cdot \frac{x - y}{z - t}\\
\mathbf{elif}\;t\_1 \leq 10^{+139}:\\
\;\;\;\;\frac{60}{\frac{z - t}{x}} + a \cdot 120\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) < -2.0000000000000001e108Initial program 96.9%
Applied egg-rr0
Taylor expanded in a around 0 0
Simplified0
if -2.0000000000000001e108 < (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) < 1.00000000000000003e139Initial program 99.7%
Applied egg-rr0
Taylor expanded in x around inf 0
Simplified0
if 1.00000000000000003e139 < (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) Initial program 99.8%
Taylor expanded in a around 0 0
Simplified0
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* (/ (- x y) t) -60.0)))
(if (<= (- z t) -1e+134)
(* 120.0 a)
(if (<= (- z t) -1e+52)
t_1
(if (<= (- z t) -1e-12)
(* 120.0 a)
(if (<= (- z t) 1e+47) t_1 (* 120.0 a)))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = ((x - y) / t) * -60.0;
double tmp;
if ((z - t) <= -1e+134) {
tmp = 120.0 * a;
} else if ((z - t) <= -1e+52) {
tmp = t_1;
} else if ((z - t) <= -1e-12) {
tmp = 120.0 * a;
} else if ((z - t) <= 1e+47) {
tmp = t_1;
} else {
tmp = 120.0 * a;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = ((x - y) / t) * (-60.0d0)
if ((z - t) <= (-1d+134)) then
tmp = 120.0d0 * a
else if ((z - t) <= (-1d+52)) then
tmp = t_1
else if ((z - t) <= (-1d-12)) then
tmp = 120.0d0 * a
else if ((z - t) <= 1d+47) then
tmp = t_1
else
tmp = 120.0d0 * a
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = ((x - y) / t) * -60.0;
double tmp;
if ((z - t) <= -1e+134) {
tmp = 120.0 * a;
} else if ((z - t) <= -1e+52) {
tmp = t_1;
} else if ((z - t) <= -1e-12) {
tmp = 120.0 * a;
} else if ((z - t) <= 1e+47) {
tmp = t_1;
} else {
tmp = 120.0 * a;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = ((x - y) / t) * -60.0 tmp = 0 if (z - t) <= -1e+134: tmp = 120.0 * a elif (z - t) <= -1e+52: tmp = t_1 elif (z - t) <= -1e-12: tmp = 120.0 * a elif (z - t) <= 1e+47: tmp = t_1 else: tmp = 120.0 * a return tmp
function code(x, y, z, t, a) t_1 = Float64(Float64(Float64(x - y) / t) * -60.0) tmp = 0.0 if (Float64(z - t) <= -1e+134) tmp = Float64(120.0 * a); elseif (Float64(z - t) <= -1e+52) tmp = t_1; elseif (Float64(z - t) <= -1e-12) tmp = Float64(120.0 * a); elseif (Float64(z - t) <= 1e+47) tmp = t_1; else tmp = Float64(120.0 * a); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = ((x - y) / t) * -60.0; tmp = 0.0; if ((z - t) <= -1e+134) tmp = 120.0 * a; elseif ((z - t) <= -1e+52) tmp = t_1; elseif ((z - t) <= -1e-12) tmp = 120.0 * a; elseif ((z - t) <= 1e+47) tmp = t_1; else tmp = 120.0 * a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(N[(x - y), $MachinePrecision] / t), $MachinePrecision] * -60.0), $MachinePrecision]}, If[LessEqual[N[(z - t), $MachinePrecision], -1e+134], N[(120.0 * a), $MachinePrecision], If[LessEqual[N[(z - t), $MachinePrecision], -1e+52], t$95$1, If[LessEqual[N[(z - t), $MachinePrecision], -1e-12], N[(120.0 * a), $MachinePrecision], If[LessEqual[N[(z - t), $MachinePrecision], 1e+47], t$95$1, N[(120.0 * a), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x - y}{t} \cdot -60\\
\mathbf{if}\;z - t \leq -1 \cdot 10^{+134}:\\
\;\;\;\;120 \cdot a\\
\mathbf{elif}\;z - t \leq -1 \cdot 10^{+52}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z - t \leq -1 \cdot 10^{-12}:\\
\;\;\;\;120 \cdot a\\
\mathbf{elif}\;z - t \leq 10^{+47}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;120 \cdot a\\
\end{array}
\end{array}
if (-.f64 z t) < -9.99999999999999921e133 or -9.9999999999999999e51 < (-.f64 z t) < -9.9999999999999998e-13 or 1e47 < (-.f64 z t) Initial program 99.8%
Taylor expanded in z around inf 0
Simplified0
if -9.99999999999999921e133 < (-.f64 z t) < -9.9999999999999999e51 or -9.9999999999999998e-13 < (-.f64 z t) < 1e47Initial program 98.6%
Taylor expanded in z around 0 0
Simplified0
Taylor expanded in t around 0 0
Simplified0
Applied egg-rr0
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (/ (* 60.0 (- x y)) (- z t))))
(if (<= t_1 -500000000000.0)
(* 60.0 (/ (- x y) (- z t)))
(if (<= t_1 1e-53) (* 120.0 a) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = (60.0 * (x - y)) / (z - t);
double tmp;
if (t_1 <= -500000000000.0) {
tmp = 60.0 * ((x - y) / (z - t));
} else if (t_1 <= 1e-53) {
tmp = 120.0 * a;
} 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 * (x - y)) / (z - t)
if (t_1 <= (-500000000000.0d0)) then
tmp = 60.0d0 * ((x - y) / (z - t))
else if (t_1 <= 1d-53) then
tmp = 120.0d0 * a
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = (60.0 * (x - y)) / (z - t);
double tmp;
if (t_1 <= -500000000000.0) {
tmp = 60.0 * ((x - y) / (z - t));
} else if (t_1 <= 1e-53) {
tmp = 120.0 * a;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = (60.0 * (x - y)) / (z - t) tmp = 0 if t_1 <= -500000000000.0: tmp = 60.0 * ((x - y) / (z - t)) elif t_1 <= 1e-53: tmp = 120.0 * a else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(Float64(60.0 * Float64(x - y)) / Float64(z - t)) tmp = 0.0 if (t_1 <= -500000000000.0) tmp = Float64(60.0 * Float64(Float64(x - y) / Float64(z - t))); elseif (t_1 <= 1e-53) tmp = Float64(120.0 * a); else tmp = t_1; 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 (t_1 <= -500000000000.0) tmp = 60.0 * ((x - y) / (z - t)); elseif (t_1 <= 1e-53) tmp = 120.0 * a; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(60.0 * N[(x - y), $MachinePrecision]), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -500000000000.0], N[(60.0 * N[(N[(x - y), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 1e-53], N[(120.0 * a), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{60 \cdot \left(x - y\right)}{z - t}\\
\mathbf{if}\;t\_1 \leq -500000000000:\\
\;\;\;\;60 \cdot \frac{x - y}{z - t}\\
\mathbf{elif}\;t\_1 \leq 10^{-53}:\\
\;\;\;\;120 \cdot a\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) < -5e11Initial program 98.1%
Applied egg-rr0
Taylor expanded in a around 0 0
Simplified0
if -5e11 < (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) < 1.00000000000000003e-53Initial program 99.8%
Taylor expanded in z around inf 0
Simplified0
if 1.00000000000000003e-53 < (/.f64 (*.f64 #s(literal 60 binary64) (-.f64 x y)) (-.f64 z t)) Initial program 99.7%
Taylor expanded in a around 0 0
Simplified0
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ (* (/ 60.0 z) (- x y)) (* a 120.0))))
(if (<= z -2.3e-77)
t_1
(if (<= z 2.3e-289)
(* 60.0 (/ (- x y) (- z t)))
(if (<= z 9.2e-156)
(+ (* 60.0 (* y (/ 1.0 t))) (* a 120.0))
(if (<= z 38000.0) (+ (/ (* -60.0 x) t) (* a 120.0)) t_1))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = ((60.0 / z) * (x - y)) + (a * 120.0);
double tmp;
if (z <= -2.3e-77) {
tmp = t_1;
} else if (z <= 2.3e-289) {
tmp = 60.0 * ((x - y) / (z - t));
} else if (z <= 9.2e-156) {
tmp = (60.0 * (y * (1.0 / t))) + (a * 120.0);
} else if (z <= 38000.0) {
tmp = ((-60.0 * x) / t) + (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 / z) * (x - y)) + (a * 120.0d0)
if (z <= (-2.3d-77)) then
tmp = t_1
else if (z <= 2.3d-289) then
tmp = 60.0d0 * ((x - y) / (z - t))
else if (z <= 9.2d-156) then
tmp = (60.0d0 * (y * (1.0d0 / t))) + (a * 120.0d0)
else if (z <= 38000.0d0) then
tmp = (((-60.0d0) * x) / t) + (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 / z) * (x - y)) + (a * 120.0);
double tmp;
if (z <= -2.3e-77) {
tmp = t_1;
} else if (z <= 2.3e-289) {
tmp = 60.0 * ((x - y) / (z - t));
} else if (z <= 9.2e-156) {
tmp = (60.0 * (y * (1.0 / t))) + (a * 120.0);
} else if (z <= 38000.0) {
tmp = ((-60.0 * x) / t) + (a * 120.0);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = ((60.0 / z) * (x - y)) + (a * 120.0) tmp = 0 if z <= -2.3e-77: tmp = t_1 elif z <= 2.3e-289: tmp = 60.0 * ((x - y) / (z - t)) elif z <= 9.2e-156: tmp = (60.0 * (y * (1.0 / t))) + (a * 120.0) elif z <= 38000.0: tmp = ((-60.0 * x) / t) + (a * 120.0) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(Float64(Float64(60.0 / z) * Float64(x - y)) + Float64(a * 120.0)) tmp = 0.0 if (z <= -2.3e-77) tmp = t_1; elseif (z <= 2.3e-289) tmp = Float64(60.0 * Float64(Float64(x - y) / Float64(z - t))); elseif (z <= 9.2e-156) tmp = Float64(Float64(60.0 * Float64(y * Float64(1.0 / t))) + Float64(a * 120.0)); elseif (z <= 38000.0) tmp = Float64(Float64(Float64(-60.0 * x) / t) + 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 / z) * (x - y)) + (a * 120.0); tmp = 0.0; if (z <= -2.3e-77) tmp = t_1; elseif (z <= 2.3e-289) tmp = 60.0 * ((x - y) / (z - t)); elseif (z <= 9.2e-156) tmp = (60.0 * (y * (1.0 / t))) + (a * 120.0); elseif (z <= 38000.0) tmp = ((-60.0 * x) / t) + (a * 120.0); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(N[(60.0 / z), $MachinePrecision] * N[(x - y), $MachinePrecision]), $MachinePrecision] + N[(a * 120.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2.3e-77], t$95$1, If[LessEqual[z, 2.3e-289], N[(60.0 * N[(N[(x - y), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 9.2e-156], N[(N[(60.0 * N[(y * N[(1.0 / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(a * 120.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 38000.0], N[(N[(N[(-60.0 * x), $MachinePrecision] / t), $MachinePrecision] + N[(a * 120.0), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{60}{z} \cdot \left(x - y\right) + a \cdot 120\\
\mathbf{if}\;z \leq -2.3 \cdot 10^{-77}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 2.3 \cdot 10^{-289}:\\
\;\;\;\;60 \cdot \frac{x - y}{z - t}\\
\mathbf{elif}\;z \leq 9.2 \cdot 10^{-156}:\\
\;\;\;\;60 \cdot \left(y \cdot \frac{1}{t}\right) + a \cdot 120\\
\mathbf{elif}\;z \leq 38000:\\
\;\;\;\;\frac{-60 \cdot x}{t} + a \cdot 120\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -2.29999999999999999e-77 or 38000 < z Initial program 99.0%
Applied egg-rr0
Taylor expanded in z around inf 0
Simplified0
if -2.29999999999999999e-77 < z < 2.3000000000000002e-289Initial program 99.7%
Applied egg-rr0
Taylor expanded in a around 0 0
Simplified0
if 2.3000000000000002e-289 < z < 9.1999999999999998e-156Initial program 99.8%
Taylor expanded in z around 0 0
Simplified0
Taylor expanded in x around 0 0
Simplified0
Applied egg-rr0
if 9.1999999999999998e-156 < z < 38000Initial program 99.7%
Taylor expanded in z around 0 0
Simplified0
Taylor expanded in x around inf 0
Simplified0
(FPCore (x y z t a) :precision binary64 (if (<= (- z t) -5e+146) (* 120.0 a) (if (<= (- z t) 1e+106) (* 60.0 (/ (- x y) (- z t))) (* 120.0 a))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z - t) <= -5e+146) {
tmp = 120.0 * a;
} else if ((z - t) <= 1e+106) {
tmp = 60.0 * ((x - y) / (z - t));
} else {
tmp = 120.0 * a;
}
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 - t) <= (-5d+146)) then
tmp = 120.0d0 * a
else if ((z - t) <= 1d+106) then
tmp = 60.0d0 * ((x - y) / (z - t))
else
tmp = 120.0d0 * a
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z - t) <= -5e+146) {
tmp = 120.0 * a;
} else if ((z - t) <= 1e+106) {
tmp = 60.0 * ((x - y) / (z - t));
} else {
tmp = 120.0 * a;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z - t) <= -5e+146: tmp = 120.0 * a elif (z - t) <= 1e+106: tmp = 60.0 * ((x - y) / (z - t)) else: tmp = 120.0 * a return tmp
function code(x, y, z, t, a) tmp = 0.0 if (Float64(z - t) <= -5e+146) tmp = Float64(120.0 * a); elseif (Float64(z - t) <= 1e+106) tmp = Float64(60.0 * Float64(Float64(x - y) / Float64(z - t))); else tmp = Float64(120.0 * a); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((z - t) <= -5e+146) tmp = 120.0 * a; elseif ((z - t) <= 1e+106) tmp = 60.0 * ((x - y) / (z - t)); else tmp = 120.0 * a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[N[(z - t), $MachinePrecision], -5e+146], N[(120.0 * a), $MachinePrecision], If[LessEqual[N[(z - t), $MachinePrecision], 1e+106], N[(60.0 * N[(N[(x - y), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(120.0 * a), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z - t \leq -5 \cdot 10^{+146}:\\
\;\;\;\;120 \cdot a\\
\mathbf{elif}\;z - t \leq 10^{+106}:\\
\;\;\;\;60 \cdot \frac{x - y}{z - t}\\
\mathbf{else}:\\
\;\;\;\;120 \cdot a\\
\end{array}
\end{array}
if (-.f64 z t) < -4.9999999999999999e146 or 1.00000000000000009e106 < (-.f64 z t) Initial program 99.8%
Taylor expanded in z around inf 0
Simplified0
if -4.9999999999999999e146 < (-.f64 z t) < 1.00000000000000009e106Initial program 98.9%
Applied egg-rr0
Taylor expanded in a around 0 0
Simplified0
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ (/ 60.0 (/ (- z t) x)) (* a 120.0))))
(if (<= x -4.2e+24)
t_1
(if (<= x 48000000.0) (+ (/ 60.0 (/ (- z t) (- y))) (* a 120.0)) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = (60.0 / ((z - t) / x)) + (a * 120.0);
double tmp;
if (x <= -4.2e+24) {
tmp = t_1;
} else if (x <= 48000000.0) {
tmp = (60.0 / ((z - t) / -y)) + (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 / ((z - t) / x)) + (a * 120.0d0)
if (x <= (-4.2d+24)) then
tmp = t_1
else if (x <= 48000000.0d0) then
tmp = (60.0d0 / ((z - t) / -y)) + (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 / ((z - t) / x)) + (a * 120.0);
double tmp;
if (x <= -4.2e+24) {
tmp = t_1;
} else if (x <= 48000000.0) {
tmp = (60.0 / ((z - t) / -y)) + (a * 120.0);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = (60.0 / ((z - t) / x)) + (a * 120.0) tmp = 0 if x <= -4.2e+24: tmp = t_1 elif x <= 48000000.0: tmp = (60.0 / ((z - t) / -y)) + (a * 120.0) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(Float64(60.0 / Float64(Float64(z - t) / x)) + Float64(a * 120.0)) tmp = 0.0 if (x <= -4.2e+24) tmp = t_1; elseif (x <= 48000000.0) tmp = Float64(Float64(60.0 / Float64(Float64(z - t) / Float64(-y))) + 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 / ((z - t) / x)) + (a * 120.0); tmp = 0.0; if (x <= -4.2e+24) tmp = t_1; elseif (x <= 48000000.0) tmp = (60.0 / ((z - t) / -y)) + (a * 120.0); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(60.0 / N[(N[(z - t), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision] + N[(a * 120.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -4.2e+24], t$95$1, If[LessEqual[x, 48000000.0], N[(N[(60.0 / N[(N[(z - t), $MachinePrecision] / (-y)), $MachinePrecision]), $MachinePrecision] + N[(a * 120.0), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{60}{\frac{z - t}{x}} + a \cdot 120\\
\mathbf{if}\;x \leq -4.2 \cdot 10^{+24}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 48000000:\\
\;\;\;\;\frac{60}{\frac{z - t}{-y}} + a \cdot 120\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -4.2000000000000003e24 or 4.8e7 < x Initial program 99.0%
Applied egg-rr0
Taylor expanded in x around inf 0
Simplified0
if -4.2000000000000003e24 < x < 4.8e7Initial program 99.7%
Applied egg-rr0
Taylor expanded in x around 0 0
Simplified0
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ (* (/ 60.0 z) (- x y)) (* a 120.0))))
(if (<= z -3.5e-81)
t_1
(if (<= z 29000.0) (+ (* (/ (- x y) t) -60.0) (* a 120.0)) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = ((60.0 / z) * (x - y)) + (a * 120.0);
double tmp;
if (z <= -3.5e-81) {
tmp = t_1;
} else if (z <= 29000.0) {
tmp = (((x - y) / t) * -60.0) + (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 / z) * (x - y)) + (a * 120.0d0)
if (z <= (-3.5d-81)) then
tmp = t_1
else if (z <= 29000.0d0) then
tmp = (((x - y) / t) * (-60.0d0)) + (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 / z) * (x - y)) + (a * 120.0);
double tmp;
if (z <= -3.5e-81) {
tmp = t_1;
} else if (z <= 29000.0) {
tmp = (((x - y) / t) * -60.0) + (a * 120.0);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = ((60.0 / z) * (x - y)) + (a * 120.0) tmp = 0 if z <= -3.5e-81: tmp = t_1 elif z <= 29000.0: tmp = (((x - y) / t) * -60.0) + (a * 120.0) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(Float64(Float64(60.0 / z) * Float64(x - y)) + Float64(a * 120.0)) tmp = 0.0 if (z <= -3.5e-81) tmp = t_1; elseif (z <= 29000.0) tmp = Float64(Float64(Float64(Float64(x - y) / t) * -60.0) + 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 / z) * (x - y)) + (a * 120.0); tmp = 0.0; if (z <= -3.5e-81) tmp = t_1; elseif (z <= 29000.0) tmp = (((x - y) / t) * -60.0) + (a * 120.0); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(N[(60.0 / z), $MachinePrecision] * N[(x - y), $MachinePrecision]), $MachinePrecision] + N[(a * 120.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -3.5e-81], t$95$1, If[LessEqual[z, 29000.0], N[(N[(N[(N[(x - y), $MachinePrecision] / t), $MachinePrecision] * -60.0), $MachinePrecision] + N[(a * 120.0), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{60}{z} \cdot \left(x - y\right) + a \cdot 120\\
\mathbf{if}\;z \leq -3.5 \cdot 10^{-81}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 29000:\\
\;\;\;\;\frac{x - y}{t} \cdot -60 + a \cdot 120\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -3.49999999999999986e-81 or 29000 < z Initial program 99.0%
Applied egg-rr0
Taylor expanded in z around inf 0
Simplified0
if -3.49999999999999986e-81 < z < 29000Initial program 99.8%
Taylor expanded in z around 0 0
Simplified0
Applied egg-rr0
(FPCore (x y z t a) :precision binary64 (let* ((t_1 (/ (* 60.0 x) (- z t)))) (if (<= x -4.7e+169) t_1 (if (<= x 6e+29) (* 120.0 a) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = (60.0 * x) / (z - t);
double tmp;
if (x <= -4.7e+169) {
tmp = t_1;
} else if (x <= 6e+29) {
tmp = 120.0 * a;
} 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 * x) / (z - t)
if (x <= (-4.7d+169)) then
tmp = t_1
else if (x <= 6d+29) then
tmp = 120.0d0 * a
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = (60.0 * x) / (z - t);
double tmp;
if (x <= -4.7e+169) {
tmp = t_1;
} else if (x <= 6e+29) {
tmp = 120.0 * a;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = (60.0 * x) / (z - t) tmp = 0 if x <= -4.7e+169: tmp = t_1 elif x <= 6e+29: tmp = 120.0 * a else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(Float64(60.0 * x) / Float64(z - t)) tmp = 0.0 if (x <= -4.7e+169) tmp = t_1; elseif (x <= 6e+29) tmp = Float64(120.0 * a); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = (60.0 * x) / (z - t); tmp = 0.0; if (x <= -4.7e+169) tmp = t_1; elseif (x <= 6e+29) tmp = 120.0 * a; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(60.0 * x), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -4.7e+169], t$95$1, If[LessEqual[x, 6e+29], N[(120.0 * a), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{60 \cdot x}{z - t}\\
\mathbf{if}\;x \leq -4.7 \cdot 10^{+169}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 6 \cdot 10^{+29}:\\
\;\;\;\;120 \cdot a\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -4.6999999999999998e169 or 5.9999999999999998e29 < x Initial program 98.7%
Taylor expanded in x around inf 0
Simplified0
if -4.6999999999999998e169 < x < 5.9999999999999998e29Initial program 99.8%
Taylor expanded in z around inf 0
Simplified0
(FPCore (x y z t a) :precision binary64 (let* ((t_1 (/ x (/ t -60.0)))) (if (<= x -1.8e+170) t_1 (if (<= x 1.5e+271) (* 120.0 a) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x / (t / -60.0);
double tmp;
if (x <= -1.8e+170) {
tmp = t_1;
} else if (x <= 1.5e+271) {
tmp = 120.0 * a;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = x / (t / (-60.0d0))
if (x <= (-1.8d+170)) then
tmp = t_1
else if (x <= 1.5d+271) then
tmp = 120.0d0 * a
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x / (t / -60.0);
double tmp;
if (x <= -1.8e+170) {
tmp = t_1;
} else if (x <= 1.5e+271) {
tmp = 120.0 * a;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x / (t / -60.0) tmp = 0 if x <= -1.8e+170: tmp = t_1 elif x <= 1.5e+271: tmp = 120.0 * a else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x / Float64(t / -60.0)) tmp = 0.0 if (x <= -1.8e+170) tmp = t_1; elseif (x <= 1.5e+271) tmp = Float64(120.0 * a); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x / (t / -60.0); tmp = 0.0; if (x <= -1.8e+170) tmp = t_1; elseif (x <= 1.5e+271) tmp = 120.0 * a; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x / N[(t / -60.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.8e+170], t$95$1, If[LessEqual[x, 1.5e+271], N[(120.0 * a), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{\frac{t}{-60}}\\
\mathbf{if}\;x \leq -1.8 \cdot 10^{+170}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 1.5 \cdot 10^{+271}:\\
\;\;\;\;120 \cdot a\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -1.8e170 or 1.5e271 < x Initial program 97.7%
Taylor expanded in z around 0 0
Simplified0
Taylor expanded in x around inf 0
Simplified0
Applied egg-rr0
Applied egg-rr0
if -1.8e170 < x < 1.5e271Initial program 99.8%
Taylor expanded in z around inf 0
Simplified0
(FPCore (x y z t a) :precision binary64 (let* ((t_1 (* x (/ -60.0 t)))) (if (<= x -1.04e+170) t_1 (if (<= x 4.2e+272) (* 120.0 a) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x * (-60.0 / t);
double tmp;
if (x <= -1.04e+170) {
tmp = t_1;
} else if (x <= 4.2e+272) {
tmp = 120.0 * a;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = x * ((-60.0d0) / t)
if (x <= (-1.04d+170)) then
tmp = t_1
else if (x <= 4.2d+272) then
tmp = 120.0d0 * a
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x * (-60.0 / t);
double tmp;
if (x <= -1.04e+170) {
tmp = t_1;
} else if (x <= 4.2e+272) {
tmp = 120.0 * a;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x * (-60.0 / t) tmp = 0 if x <= -1.04e+170: tmp = t_1 elif x <= 4.2e+272: tmp = 120.0 * a else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x * Float64(-60.0 / t)) tmp = 0.0 if (x <= -1.04e+170) tmp = t_1; elseif (x <= 4.2e+272) tmp = Float64(120.0 * a); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x * (-60.0 / t); tmp = 0.0; if (x <= -1.04e+170) tmp = t_1; elseif (x <= 4.2e+272) tmp = 120.0 * a; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x * N[(-60.0 / t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.04e+170], t$95$1, If[LessEqual[x, 4.2e+272], N[(120.0 * a), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \frac{-60}{t}\\
\mathbf{if}\;x \leq -1.04 \cdot 10^{+170}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 4.2 \cdot 10^{+272}:\\
\;\;\;\;120 \cdot a\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -1.04e170 or 4.19999999999999991e272 < x Initial program 97.7%
Taylor expanded in z around 0 0
Simplified0
Taylor expanded in x around inf 0
Simplified0
Applied egg-rr0
if -1.04e170 < x < 4.19999999999999991e272Initial program 99.8%
Taylor expanded in z around inf 0
Simplified0
(FPCore (x y z t a) :precision binary64 (+ (/ (- x y) (/ (- z t) 60.0)) (* a 120.0)))
double code(double x, double y, double z, double t, double a) {
return ((x - y) / ((z - t) / 60.0)) + (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 = ((x - y) / ((z - t) / 60.0d0)) + (a * 120.0d0)
end function
public static double code(double x, double y, double z, double t, double a) {
return ((x - y) / ((z - t) / 60.0)) + (a * 120.0);
}
def code(x, y, z, t, a): return ((x - y) / ((z - t) / 60.0)) + (a * 120.0)
function code(x, y, z, t, a) return Float64(Float64(Float64(x - y) / Float64(Float64(z - t) / 60.0)) + Float64(a * 120.0)) end
function tmp = code(x, y, z, t, a) tmp = ((x - y) / ((z - t) / 60.0)) + (a * 120.0); end
code[x_, y_, z_, t_, a_] := N[(N[(N[(x - y), $MachinePrecision] / N[(N[(z - t), $MachinePrecision] / 60.0), $MachinePrecision]), $MachinePrecision] + N[(a * 120.0), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x - y}{\frac{z - t}{60}} + a \cdot 120
\end{array}
Initial program 99.4%
Applied egg-rr0
Applied egg-rr0
(FPCore (x y z t a) :precision binary64 (+ (/ 60.0 (/ (- z t) (- x y))) (* a 120.0)))
double code(double x, double y, double z, double t, double a) {
return (60.0 / ((z - t) / (x - y))) + (a * 120.0);
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
code = (60.0d0 / ((z - t) / (x - y))) + (a * 120.0d0)
end function
public static double code(double x, double y, double z, double t, double a) {
return (60.0 / ((z - t) / (x - y))) + (a * 120.0);
}
def code(x, y, z, t, a): return (60.0 / ((z - t) / (x - y))) + (a * 120.0)
function code(x, y, z, t, a) return Float64(Float64(60.0 / Float64(Float64(z - t) / Float64(x - y))) + Float64(a * 120.0)) end
function tmp = code(x, y, z, t, a) tmp = (60.0 / ((z - t) / (x - y))) + (a * 120.0); end
code[x_, y_, z_, t_, a_] := N[(N[(60.0 / N[(N[(z - t), $MachinePrecision] / N[(x - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(a * 120.0), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{60}{\frac{z - t}{x - y}} + a \cdot 120
\end{array}
Initial program 99.4%
Applied egg-rr0
(FPCore (x y z t a) :precision binary64 (+ (* (/ (- x y) (- z t)) 60.0) (* a 120.0)))
double code(double x, double y, double z, double t, double a) {
return (((x - y) / (z - t)) * 60.0) + (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 = (((x - y) / (z - t)) * 60.0d0) + (a * 120.0d0)
end function
public static double code(double x, double y, double z, double t, double a) {
return (((x - y) / (z - t)) * 60.0) + (a * 120.0);
}
def code(x, y, z, t, a): return (((x - y) / (z - t)) * 60.0) + (a * 120.0)
function code(x, y, z, t, a) return Float64(Float64(Float64(Float64(x - y) / Float64(z - t)) * 60.0) + Float64(a * 120.0)) end
function tmp = code(x, y, z, t, a) tmp = (((x - y) / (z - t)) * 60.0) + (a * 120.0); end
code[x_, y_, z_, t_, a_] := N[(N[(N[(N[(x - y), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision] * 60.0), $MachinePrecision] + N[(a * 120.0), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x - y}{z - t} \cdot 60 + a \cdot 120
\end{array}
Initial program 99.4%
Applied egg-rr0
(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%
Applied egg-rr0
(FPCore (x y z t a) :precision binary64 (* 120.0 a))
double code(double x, double y, double z, double t, double a) {
return 120.0 * a;
}
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 = 120.0d0 * a
end function
public static double code(double x, double y, double z, double t, double a) {
return 120.0 * a;
}
def code(x, y, z, t, a): return 120.0 * a
function code(x, y, z, t, a) return Float64(120.0 * a) end
function tmp = code(x, y, z, t, a) tmp = 120.0 * a; end
code[x_, y_, z_, t_, a_] := N[(120.0 * a), $MachinePrecision]
\begin{array}{l}
\\
120 \cdot a
\end{array}
Initial program 99.4%
Taylor expanded in z around inf 0
Simplified0
(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 2024110
(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)))