
(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 21 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}
(FPCore (x y z t a)
:precision binary64
(if (<= (* a 120.0) -1e-71)
(* a 120.0)
(if (<= (* a 120.0) 2e-36)
(* 60.0 (/ (- x y) (- z t)))
(if (<= (* a 120.0) 1e+168)
(+ (* a 120.0) (* -60.0 (/ x t)))
(- (* a 120.0) (* 60.0 (/ y z)))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a * 120.0) <= -1e-71) {
tmp = a * 120.0;
} else if ((a * 120.0) <= 2e-36) {
tmp = 60.0 * ((x - y) / (z - t));
} else if ((a * 120.0) <= 1e+168) {
tmp = (a * 120.0) + (-60.0 * (x / t));
} else {
tmp = (a * 120.0) - (60.0 * (y / z));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((a * 120.0d0) <= (-1d-71)) then
tmp = a * 120.0d0
else if ((a * 120.0d0) <= 2d-36) then
tmp = 60.0d0 * ((x - y) / (z - t))
else if ((a * 120.0d0) <= 1d+168) then
tmp = (a * 120.0d0) + ((-60.0d0) * (x / t))
else
tmp = (a * 120.0d0) - (60.0d0 * (y / z))
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-71) {
tmp = a * 120.0;
} else if ((a * 120.0) <= 2e-36) {
tmp = 60.0 * ((x - y) / (z - t));
} else if ((a * 120.0) <= 1e+168) {
tmp = (a * 120.0) + (-60.0 * (x / t));
} else {
tmp = (a * 120.0) - (60.0 * (y / z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a * 120.0) <= -1e-71: tmp = a * 120.0 elif (a * 120.0) <= 2e-36: tmp = 60.0 * ((x - y) / (z - t)) elif (a * 120.0) <= 1e+168: tmp = (a * 120.0) + (-60.0 * (x / t)) else: tmp = (a * 120.0) - (60.0 * (y / z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (Float64(a * 120.0) <= -1e-71) tmp = Float64(a * 120.0); elseif (Float64(a * 120.0) <= 2e-36) tmp = Float64(60.0 * Float64(Float64(x - y) / Float64(z - t))); elseif (Float64(a * 120.0) <= 1e+168) tmp = Float64(Float64(a * 120.0) + Float64(-60.0 * Float64(x / t))); else tmp = Float64(Float64(a * 120.0) - Float64(60.0 * Float64(y / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a * 120.0) <= -1e-71) tmp = a * 120.0; elseif ((a * 120.0) <= 2e-36) tmp = 60.0 * ((x - y) / (z - t)); elseif ((a * 120.0) <= 1e+168) tmp = (a * 120.0) + (-60.0 * (x / t)); else tmp = (a * 120.0) - (60.0 * (y / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[N[(a * 120.0), $MachinePrecision], -1e-71], N[(a * 120.0), $MachinePrecision], If[LessEqual[N[(a * 120.0), $MachinePrecision], 2e-36], N[(60.0 * N[(N[(x - y), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(a * 120.0), $MachinePrecision], 1e+168], N[(N[(a * 120.0), $MachinePrecision] + N[(-60.0 * N[(x / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(a * 120.0), $MachinePrecision] - N[(60.0 * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \cdot 120 \leq -1 \cdot 10^{-71}:\\
\;\;\;\;a \cdot 120\\
\mathbf{elif}\;a \cdot 120 \leq 2 \cdot 10^{-36}:\\
\;\;\;\;60 \cdot \frac{x - y}{z - t}\\
\mathbf{elif}\;a \cdot 120 \leq 10^{+168}:\\
\;\;\;\;a \cdot 120 + -60 \cdot \frac{x}{t}\\
\mathbf{else}:\\
\;\;\;\;a \cdot 120 - 60 \cdot \frac{y}{z}\\
\end{array}
\end{array}
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* 60.0 (/ x (- z t)))) (t_2 (* (/ y (- z t)) -60.0)))
(if (<= y -1.25e+157)
t_2
(if (<= y -2.55e-299)
(* a 120.0)
(if (<= y 4e-289)
t_1
(if (<= y 2.9e-156)
(* a 120.0)
(if (<= y 2.3e-138) t_1 (if (<= y 5.5e+94) (* a 120.0) t_2))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = 60.0 * (x / (z - t));
double t_2 = (y / (z - t)) * -60.0;
double tmp;
if (y <= -1.25e+157) {
tmp = t_2;
} else if (y <= -2.55e-299) {
tmp = a * 120.0;
} else if (y <= 4e-289) {
tmp = t_1;
} else if (y <= 2.9e-156) {
tmp = a * 120.0;
} else if (y <= 2.3e-138) {
tmp = t_1;
} else if (y <= 5.5e+94) {
tmp = a * 120.0;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = 60.0d0 * (x / (z - t))
t_2 = (y / (z - t)) * (-60.0d0)
if (y <= (-1.25d+157)) then
tmp = t_2
else if (y <= (-2.55d-299)) then
tmp = a * 120.0d0
else if (y <= 4d-289) then
tmp = t_1
else if (y <= 2.9d-156) then
tmp = a * 120.0d0
else if (y <= 2.3d-138) then
tmp = t_1
else if (y <= 5.5d+94) then
tmp = a * 120.0d0
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = 60.0 * (x / (z - t));
double t_2 = (y / (z - t)) * -60.0;
double tmp;
if (y <= -1.25e+157) {
tmp = t_2;
} else if (y <= -2.55e-299) {
tmp = a * 120.0;
} else if (y <= 4e-289) {
tmp = t_1;
} else if (y <= 2.9e-156) {
tmp = a * 120.0;
} else if (y <= 2.3e-138) {
tmp = t_1;
} else if (y <= 5.5e+94) {
tmp = a * 120.0;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = 60.0 * (x / (z - t)) t_2 = (y / (z - t)) * -60.0 tmp = 0 if y <= -1.25e+157: tmp = t_2 elif y <= -2.55e-299: tmp = a * 120.0 elif y <= 4e-289: tmp = t_1 elif y <= 2.9e-156: tmp = a * 120.0 elif y <= 2.3e-138: tmp = t_1 elif y <= 5.5e+94: tmp = a * 120.0 else: tmp = t_2 return tmp
function code(x, y, z, t, a) t_1 = Float64(60.0 * Float64(x / Float64(z - t))) t_2 = Float64(Float64(y / Float64(z - t)) * -60.0) tmp = 0.0 if (y <= -1.25e+157) tmp = t_2; elseif (y <= -2.55e-299) tmp = Float64(a * 120.0); elseif (y <= 4e-289) tmp = t_1; elseif (y <= 2.9e-156) tmp = Float64(a * 120.0); elseif (y <= 2.3e-138) tmp = t_1; elseif (y <= 5.5e+94) tmp = Float64(a * 120.0); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = 60.0 * (x / (z - t)); t_2 = (y / (z - t)) * -60.0; tmp = 0.0; if (y <= -1.25e+157) tmp = t_2; elseif (y <= -2.55e-299) tmp = a * 120.0; elseif (y <= 4e-289) tmp = t_1; elseif (y <= 2.9e-156) tmp = a * 120.0; elseif (y <= 2.3e-138) tmp = t_1; elseif (y <= 5.5e+94) tmp = a * 120.0; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(60.0 * N[(x / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(y / N[(z - t), $MachinePrecision]), $MachinePrecision] * -60.0), $MachinePrecision]}, If[LessEqual[y, -1.25e+157], t$95$2, If[LessEqual[y, -2.55e-299], N[(a * 120.0), $MachinePrecision], If[LessEqual[y, 4e-289], t$95$1, If[LessEqual[y, 2.9e-156], N[(a * 120.0), $MachinePrecision], If[LessEqual[y, 2.3e-138], t$95$1, If[LessEqual[y, 5.5e+94], N[(a * 120.0), $MachinePrecision], t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := 60 \cdot \frac{x}{z - t}\\
t_2 := \frac{y}{z - t} \cdot -60\\
\mathbf{if}\;y \leq -1.25 \cdot 10^{+157}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq -2.55 \cdot 10^{-299}:\\
\;\;\;\;a \cdot 120\\
\mathbf{elif}\;y \leq 4 \cdot 10^{-289}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 2.9 \cdot 10^{-156}:\\
\;\;\;\;a \cdot 120\\
\mathbf{elif}\;y \leq 2.3 \cdot 10^{-138}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 5.5 \cdot 10^{+94}:\\
\;\;\;\;a \cdot 120\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
(FPCore (x y z t a) :precision binary64 (if (or (<= (* a 120.0) -1e-71) (not (<= (* a 120.0) 10000.0))) (* 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-71) || !((a * 120.0) <= 10000.0)) {
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-71)) .or. (.not. ((a * 120.0d0) <= 10000.0d0))) 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-71) || !((a * 120.0) <= 10000.0)) {
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-71) or not ((a * 120.0) <= 10000.0): 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-71) || !(Float64(a * 120.0) <= 10000.0)) 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-71) || ~(((a * 120.0) <= 10000.0))) 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], -1e-71], N[Not[LessEqual[N[(a * 120.0), $MachinePrecision], 10000.0]], $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^{-71} \lor \neg \left(a \cdot 120 \leq 10000\right):\\
\;\;\;\;a \cdot 120\\
\mathbf{else}:\\
\;\;\;\;60 \cdot \frac{x - y}{z - t}\\
\end{array}
\end{array}
(FPCore (x y z t a)
:precision binary64
(if (<= a -1.3e-100)
(* a 120.0)
(if (<= a -4e-265)
(* (/ y (- z t)) -60.0)
(if (<= a 8e-306)
(* 60.0 (/ x (- z t)))
(if (<= a 1.8e-183) (* 60.0 (/ (- x y) z)) (* a 120.0))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -1.3e-100) {
tmp = a * 120.0;
} else if (a <= -4e-265) {
tmp = (y / (z - t)) * -60.0;
} else if (a <= 8e-306) {
tmp = 60.0 * (x / (z - t));
} else if (a <= 1.8e-183) {
tmp = 60.0 * ((x - 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 (a <= (-1.3d-100)) then
tmp = a * 120.0d0
else if (a <= (-4d-265)) then
tmp = (y / (z - t)) * (-60.0d0)
else if (a <= 8d-306) then
tmp = 60.0d0 * (x / (z - t))
else if (a <= 1.8d-183) then
tmp = 60.0d0 * ((x - 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 (a <= -1.3e-100) {
tmp = a * 120.0;
} else if (a <= -4e-265) {
tmp = (y / (z - t)) * -60.0;
} else if (a <= 8e-306) {
tmp = 60.0 * (x / (z - t));
} else if (a <= 1.8e-183) {
tmp = 60.0 * ((x - y) / z);
} else {
tmp = a * 120.0;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -1.3e-100: tmp = a * 120.0 elif a <= -4e-265: tmp = (y / (z - t)) * -60.0 elif a <= 8e-306: tmp = 60.0 * (x / (z - t)) elif a <= 1.8e-183: tmp = 60.0 * ((x - y) / z) else: tmp = a * 120.0 return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -1.3e-100) tmp = Float64(a * 120.0); elseif (a <= -4e-265) tmp = Float64(Float64(y / Float64(z - t)) * -60.0); elseif (a <= 8e-306) tmp = Float64(60.0 * Float64(x / Float64(z - t))); elseif (a <= 1.8e-183) tmp = Float64(60.0 * Float64(Float64(x - 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 (a <= -1.3e-100) tmp = a * 120.0; elseif (a <= -4e-265) tmp = (y / (z - t)) * -60.0; elseif (a <= 8e-306) tmp = 60.0 * (x / (z - t)); elseif (a <= 1.8e-183) tmp = 60.0 * ((x - y) / z); else tmp = a * 120.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -1.3e-100], N[(a * 120.0), $MachinePrecision], If[LessEqual[a, -4e-265], N[(N[(y / N[(z - t), $MachinePrecision]), $MachinePrecision] * -60.0), $MachinePrecision], If[LessEqual[a, 8e-306], N[(60.0 * N[(x / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.8e-183], N[(60.0 * N[(N[(x - y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], N[(a * 120.0), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.3 \cdot 10^{-100}:\\
\;\;\;\;a \cdot 120\\
\mathbf{elif}\;a \leq -4 \cdot 10^{-265}:\\
\;\;\;\;\frac{y}{z - t} \cdot -60\\
\mathbf{elif}\;a \leq 8 \cdot 10^{-306}:\\
\;\;\;\;60 \cdot \frac{x}{z - t}\\
\mathbf{elif}\;a \leq 1.8 \cdot 10^{-183}:\\
\;\;\;\;60 \cdot \frac{x - y}{z}\\
\mathbf{else}:\\
\;\;\;\;a \cdot 120\\
\end{array}
\end{array}
(FPCore (x y z t a)
:precision binary64
(if (<= a -6.4e-99)
(* a 120.0)
(if (<= a -1.5e-265)
(/ -60.0 (/ (- z t) y))
(if (<= a 4.5e-305)
(* 60.0 (/ x (- z t)))
(if (<= a 6.8e-184) (* 60.0 (/ (- x y) z)) (* a 120.0))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -6.4e-99) {
tmp = a * 120.0;
} else if (a <= -1.5e-265) {
tmp = -60.0 / ((z - t) / y);
} else if (a <= 4.5e-305) {
tmp = 60.0 * (x / (z - t));
} else if (a <= 6.8e-184) {
tmp = 60.0 * ((x - 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 (a <= (-6.4d-99)) then
tmp = a * 120.0d0
else if (a <= (-1.5d-265)) then
tmp = (-60.0d0) / ((z - t) / y)
else if (a <= 4.5d-305) then
tmp = 60.0d0 * (x / (z - t))
else if (a <= 6.8d-184) then
tmp = 60.0d0 * ((x - 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 (a <= -6.4e-99) {
tmp = a * 120.0;
} else if (a <= -1.5e-265) {
tmp = -60.0 / ((z - t) / y);
} else if (a <= 4.5e-305) {
tmp = 60.0 * (x / (z - t));
} else if (a <= 6.8e-184) {
tmp = 60.0 * ((x - y) / z);
} else {
tmp = a * 120.0;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -6.4e-99: tmp = a * 120.0 elif a <= -1.5e-265: tmp = -60.0 / ((z - t) / y) elif a <= 4.5e-305: tmp = 60.0 * (x / (z - t)) elif a <= 6.8e-184: tmp = 60.0 * ((x - y) / z) else: tmp = a * 120.0 return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -6.4e-99) tmp = Float64(a * 120.0); elseif (a <= -1.5e-265) tmp = Float64(-60.0 / Float64(Float64(z - t) / y)); elseif (a <= 4.5e-305) tmp = Float64(60.0 * Float64(x / Float64(z - t))); elseif (a <= 6.8e-184) tmp = Float64(60.0 * Float64(Float64(x - 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 (a <= -6.4e-99) tmp = a * 120.0; elseif (a <= -1.5e-265) tmp = -60.0 / ((z - t) / y); elseif (a <= 4.5e-305) tmp = 60.0 * (x / (z - t)); elseif (a <= 6.8e-184) tmp = 60.0 * ((x - y) / z); else tmp = a * 120.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -6.4e-99], N[(a * 120.0), $MachinePrecision], If[LessEqual[a, -1.5e-265], N[(-60.0 / N[(N[(z - t), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 4.5e-305], N[(60.0 * N[(x / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 6.8e-184], N[(60.0 * N[(N[(x - y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], N[(a * 120.0), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -6.4 \cdot 10^{-99}:\\
\;\;\;\;a \cdot 120\\
\mathbf{elif}\;a \leq -1.5 \cdot 10^{-265}:\\
\;\;\;\;\frac{-60}{\frac{z - t}{y}}\\
\mathbf{elif}\;a \leq 4.5 \cdot 10^{-305}:\\
\;\;\;\;60 \cdot \frac{x}{z - t}\\
\mathbf{elif}\;a \leq 6.8 \cdot 10^{-184}:\\
\;\;\;\;60 \cdot \frac{x - y}{z}\\
\mathbf{else}:\\
\;\;\;\;a \cdot 120\\
\end{array}
\end{array}
(FPCore (x y z t a)
:precision binary64
(if (<= a -2.25e-101)
(* a 120.0)
(if (<= a -4.4e-265)
(/ -60.0 (/ (- z t) y))
(if (<= a 2.1e-306)
(/ x (* (- z t) 0.016666666666666666))
(if (<= a 1.85e-183) (* 60.0 (/ (- x y) z)) (* a 120.0))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -2.25e-101) {
tmp = a * 120.0;
} else if (a <= -4.4e-265) {
tmp = -60.0 / ((z - t) / y);
} else if (a <= 2.1e-306) {
tmp = x / ((z - t) * 0.016666666666666666);
} else if (a <= 1.85e-183) {
tmp = 60.0 * ((x - 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 (a <= (-2.25d-101)) then
tmp = a * 120.0d0
else if (a <= (-4.4d-265)) then
tmp = (-60.0d0) / ((z - t) / y)
else if (a <= 2.1d-306) then
tmp = x / ((z - t) * 0.016666666666666666d0)
else if (a <= 1.85d-183) then
tmp = 60.0d0 * ((x - 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 (a <= -2.25e-101) {
tmp = a * 120.0;
} else if (a <= -4.4e-265) {
tmp = -60.0 / ((z - t) / y);
} else if (a <= 2.1e-306) {
tmp = x / ((z - t) * 0.016666666666666666);
} else if (a <= 1.85e-183) {
tmp = 60.0 * ((x - y) / z);
} else {
tmp = a * 120.0;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -2.25e-101: tmp = a * 120.0 elif a <= -4.4e-265: tmp = -60.0 / ((z - t) / y) elif a <= 2.1e-306: tmp = x / ((z - t) * 0.016666666666666666) elif a <= 1.85e-183: tmp = 60.0 * ((x - y) / z) else: tmp = a * 120.0 return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -2.25e-101) tmp = Float64(a * 120.0); elseif (a <= -4.4e-265) tmp = Float64(-60.0 / Float64(Float64(z - t) / y)); elseif (a <= 2.1e-306) tmp = Float64(x / Float64(Float64(z - t) * 0.016666666666666666)); elseif (a <= 1.85e-183) tmp = Float64(60.0 * Float64(Float64(x - 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 (a <= -2.25e-101) tmp = a * 120.0; elseif (a <= -4.4e-265) tmp = -60.0 / ((z - t) / y); elseif (a <= 2.1e-306) tmp = x / ((z - t) * 0.016666666666666666); elseif (a <= 1.85e-183) tmp = 60.0 * ((x - y) / z); else tmp = a * 120.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -2.25e-101], N[(a * 120.0), $MachinePrecision], If[LessEqual[a, -4.4e-265], N[(-60.0 / N[(N[(z - t), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.1e-306], N[(x / N[(N[(z - t), $MachinePrecision] * 0.016666666666666666), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.85e-183], N[(60.0 * N[(N[(x - y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], N[(a * 120.0), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -2.25 \cdot 10^{-101}:\\
\;\;\;\;a \cdot 120\\
\mathbf{elif}\;a \leq -4.4 \cdot 10^{-265}:\\
\;\;\;\;\frac{-60}{\frac{z - t}{y}}\\
\mathbf{elif}\;a \leq 2.1 \cdot 10^{-306}:\\
\;\;\;\;\frac{x}{\left(z - t\right) \cdot 0.016666666666666666}\\
\mathbf{elif}\;a \leq 1.85 \cdot 10^{-183}:\\
\;\;\;\;60 \cdot \frac{x - y}{z}\\
\mathbf{else}:\\
\;\;\;\;a \cdot 120\\
\end{array}
\end{array}
(FPCore (x y z t a)
:precision binary64
(if (<= a -3e-100)
(* a 120.0)
(if (<= a -1.6e-265)
(/ y (* (- z t) -0.016666666666666666))
(if (<= a 7.5e-306)
(/ x (* (- z t) 0.016666666666666666))
(if (<= a 1.15e-184) (* 60.0 (/ (- x y) z)) (* a 120.0))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -3e-100) {
tmp = a * 120.0;
} else if (a <= -1.6e-265) {
tmp = y / ((z - t) * -0.016666666666666666);
} else if (a <= 7.5e-306) {
tmp = x / ((z - t) * 0.016666666666666666);
} else if (a <= 1.15e-184) {
tmp = 60.0 * ((x - 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 (a <= (-3d-100)) then
tmp = a * 120.0d0
else if (a <= (-1.6d-265)) then
tmp = y / ((z - t) * (-0.016666666666666666d0))
else if (a <= 7.5d-306) then
tmp = x / ((z - t) * 0.016666666666666666d0)
else if (a <= 1.15d-184) then
tmp = 60.0d0 * ((x - 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 (a <= -3e-100) {
tmp = a * 120.0;
} else if (a <= -1.6e-265) {
tmp = y / ((z - t) * -0.016666666666666666);
} else if (a <= 7.5e-306) {
tmp = x / ((z - t) * 0.016666666666666666);
} else if (a <= 1.15e-184) {
tmp = 60.0 * ((x - y) / z);
} else {
tmp = a * 120.0;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -3e-100: tmp = a * 120.0 elif a <= -1.6e-265: tmp = y / ((z - t) * -0.016666666666666666) elif a <= 7.5e-306: tmp = x / ((z - t) * 0.016666666666666666) elif a <= 1.15e-184: tmp = 60.0 * ((x - y) / z) else: tmp = a * 120.0 return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -3e-100) tmp = Float64(a * 120.0); elseif (a <= -1.6e-265) tmp = Float64(y / Float64(Float64(z - t) * -0.016666666666666666)); elseif (a <= 7.5e-306) tmp = Float64(x / Float64(Float64(z - t) * 0.016666666666666666)); elseif (a <= 1.15e-184) tmp = Float64(60.0 * Float64(Float64(x - 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 (a <= -3e-100) tmp = a * 120.0; elseif (a <= -1.6e-265) tmp = y / ((z - t) * -0.016666666666666666); elseif (a <= 7.5e-306) tmp = x / ((z - t) * 0.016666666666666666); elseif (a <= 1.15e-184) tmp = 60.0 * ((x - y) / z); else tmp = a * 120.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -3e-100], N[(a * 120.0), $MachinePrecision], If[LessEqual[a, -1.6e-265], N[(y / N[(N[(z - t), $MachinePrecision] * -0.016666666666666666), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 7.5e-306], N[(x / N[(N[(z - t), $MachinePrecision] * 0.016666666666666666), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.15e-184], N[(60.0 * N[(N[(x - y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], N[(a * 120.0), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -3 \cdot 10^{-100}:\\
\;\;\;\;a \cdot 120\\
\mathbf{elif}\;a \leq -1.6 \cdot 10^{-265}:\\
\;\;\;\;\frac{y}{\left(z - t\right) \cdot -0.016666666666666666}\\
\mathbf{elif}\;a \leq 7.5 \cdot 10^{-306}:\\
\;\;\;\;\frac{x}{\left(z - t\right) \cdot 0.016666666666666666}\\
\mathbf{elif}\;a \leq 1.15 \cdot 10^{-184}:\\
\;\;\;\;60 \cdot \frac{x - y}{z}\\
\mathbf{else}:\\
\;\;\;\;a \cdot 120\\
\end{array}
\end{array}
(FPCore (x y z t a) :precision binary64 (if (or (<= y -6.6e+157) (not (<= y 9.5e+94))) (* 60.0 (/ (- x y) (- z t))) (+ (* a 120.0) (/ 60.0 (/ (- z t) x)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((y <= -6.6e+157) || !(y <= 9.5e+94)) {
tmp = 60.0 * ((x - y) / (z - t));
} else {
tmp = (a * 120.0) + (60.0 / ((z - t) / x));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((y <= (-6.6d+157)) .or. (.not. (y <= 9.5d+94))) then
tmp = 60.0d0 * ((x - y) / (z - t))
else
tmp = (a * 120.0d0) + (60.0d0 / ((z - t) / x))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((y <= -6.6e+157) || !(y <= 9.5e+94)) {
tmp = 60.0 * ((x - y) / (z - t));
} else {
tmp = (a * 120.0) + (60.0 / ((z - t) / x));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (y <= -6.6e+157) or not (y <= 9.5e+94): tmp = 60.0 * ((x - y) / (z - t)) else: tmp = (a * 120.0) + (60.0 / ((z - t) / x)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((y <= -6.6e+157) || !(y <= 9.5e+94)) tmp = Float64(60.0 * Float64(Float64(x - y) / Float64(z - t))); else tmp = Float64(Float64(a * 120.0) + Float64(60.0 / Float64(Float64(z - t) / x))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((y <= -6.6e+157) || ~((y <= 9.5e+94))) tmp = 60.0 * ((x - y) / (z - t)); else tmp = (a * 120.0) + (60.0 / ((z - t) / x)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[y, -6.6e+157], N[Not[LessEqual[y, 9.5e+94]], $MachinePrecision]], N[(60.0 * N[(N[(x - y), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(a * 120.0), $MachinePrecision] + N[(60.0 / N[(N[(z - t), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -6.6 \cdot 10^{+157} \lor \neg \left(y \leq 9.5 \cdot 10^{+94}\right):\\
\;\;\;\;60 \cdot \frac{x - y}{z - t}\\
\mathbf{else}:\\
\;\;\;\;a \cdot 120 + \frac{60}{\frac{z - t}{x}}\\
\end{array}
\end{array}
(FPCore (x y z t a) :precision binary64 (if (or (<= y -1.2e+68) (not (<= y 7e+79))) (+ (* a 120.0) (/ (* y -60.0) (- z t))) (+ (* a 120.0) (/ 60.0 (/ (- z t) x)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((y <= -1.2e+68) || !(y <= 7e+79)) {
tmp = (a * 120.0) + ((y * -60.0) / (z - t));
} else {
tmp = (a * 120.0) + (60.0 / ((z - t) / x));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((y <= (-1.2d+68)) .or. (.not. (y <= 7d+79))) then
tmp = (a * 120.0d0) + ((y * (-60.0d0)) / (z - t))
else
tmp = (a * 120.0d0) + (60.0d0 / ((z - t) / x))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((y <= -1.2e+68) || !(y <= 7e+79)) {
tmp = (a * 120.0) + ((y * -60.0) / (z - t));
} else {
tmp = (a * 120.0) + (60.0 / ((z - t) / x));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (y <= -1.2e+68) or not (y <= 7e+79): tmp = (a * 120.0) + ((y * -60.0) / (z - t)) else: tmp = (a * 120.0) + (60.0 / ((z - t) / x)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((y <= -1.2e+68) || !(y <= 7e+79)) tmp = Float64(Float64(a * 120.0) + Float64(Float64(y * -60.0) / Float64(z - t))); else tmp = Float64(Float64(a * 120.0) + Float64(60.0 / Float64(Float64(z - t) / x))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((y <= -1.2e+68) || ~((y <= 7e+79))) tmp = (a * 120.0) + ((y * -60.0) / (z - t)); else tmp = (a * 120.0) + (60.0 / ((z - t) / x)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[y, -1.2e+68], N[Not[LessEqual[y, 7e+79]], $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[(60.0 / N[(N[(z - t), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.2 \cdot 10^{+68} \lor \neg \left(y \leq 7 \cdot 10^{+79}\right):\\
\;\;\;\;a \cdot 120 + \frac{y \cdot -60}{z - t}\\
\mathbf{else}:\\
\;\;\;\;a \cdot 120 + \frac{60}{\frac{z - t}{x}}\\
\end{array}
\end{array}
(FPCore (x y z t a) :precision binary64 (if (or (<= y -1.05e+68) (not (<= y 1e+76))) (+ (* a 120.0) (/ (* y -60.0) (- z t))) (+ (/ (* x 60.0) (- z t)) (* a 120.0))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((y <= -1.05e+68) || !(y <= 1e+76)) {
tmp = (a * 120.0) + ((y * -60.0) / (z - t));
} else {
tmp = ((x * 60.0) / (z - t)) + (a * 120.0);
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((y <= (-1.05d+68)) .or. (.not. (y <= 1d+76))) then
tmp = (a * 120.0d0) + ((y * (-60.0d0)) / (z - t))
else
tmp = ((x * 60.0d0) / (z - t)) + (a * 120.0d0)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((y <= -1.05e+68) || !(y <= 1e+76)) {
tmp = (a * 120.0) + ((y * -60.0) / (z - t));
} else {
tmp = ((x * 60.0) / (z - t)) + (a * 120.0);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (y <= -1.05e+68) or not (y <= 1e+76): tmp = (a * 120.0) + ((y * -60.0) / (z - t)) else: tmp = ((x * 60.0) / (z - t)) + (a * 120.0) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((y <= -1.05e+68) || !(y <= 1e+76)) tmp = Float64(Float64(a * 120.0) + Float64(Float64(y * -60.0) / Float64(z - t))); else tmp = Float64(Float64(Float64(x * 60.0) / Float64(z - t)) + Float64(a * 120.0)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((y <= -1.05e+68) || ~((y <= 1e+76))) tmp = (a * 120.0) + ((y * -60.0) / (z - t)); else tmp = ((x * 60.0) / (z - t)) + (a * 120.0); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[y, -1.05e+68], N[Not[LessEqual[y, 1e+76]], $MachinePrecision]], N[(N[(a * 120.0), $MachinePrecision] + N[(N[(y * -60.0), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(x * 60.0), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision] + N[(a * 120.0), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.05 \cdot 10^{+68} \lor \neg \left(y \leq 10^{+76}\right):\\
\;\;\;\;a \cdot 120 + \frac{y \cdot -60}{z - t}\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot 60}{z - t} + a \cdot 120\\
\end{array}
\end{array}
(FPCore (x y z t a) :precision binary64 (if (or (<= y -9.2e+67) (not (<= y 1.45e+79))) (- (* a 120.0) (* 60.0 (/ y (- z t)))) (+ (/ (* x 60.0) (- z t)) (* a 120.0))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((y <= -9.2e+67) || !(y <= 1.45e+79)) {
tmp = (a * 120.0) - (60.0 * (y / (z - t)));
} else {
tmp = ((x * 60.0) / (z - t)) + (a * 120.0);
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((y <= (-9.2d+67)) .or. (.not. (y <= 1.45d+79))) then
tmp = (a * 120.0d0) - (60.0d0 * (y / (z - t)))
else
tmp = ((x * 60.0d0) / (z - t)) + (a * 120.0d0)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((y <= -9.2e+67) || !(y <= 1.45e+79)) {
tmp = (a * 120.0) - (60.0 * (y / (z - t)));
} else {
tmp = ((x * 60.0) / (z - t)) + (a * 120.0);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (y <= -9.2e+67) or not (y <= 1.45e+79): tmp = (a * 120.0) - (60.0 * (y / (z - t))) else: tmp = ((x * 60.0) / (z - t)) + (a * 120.0) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((y <= -9.2e+67) || !(y <= 1.45e+79)) tmp = Float64(Float64(a * 120.0) - Float64(60.0 * Float64(y / Float64(z - t)))); else tmp = Float64(Float64(Float64(x * 60.0) / Float64(z - t)) + Float64(a * 120.0)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((y <= -9.2e+67) || ~((y <= 1.45e+79))) tmp = (a * 120.0) - (60.0 * (y / (z - t))); else tmp = ((x * 60.0) / (z - t)) + (a * 120.0); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[y, -9.2e+67], N[Not[LessEqual[y, 1.45e+79]], $MachinePrecision]], N[(N[(a * 120.0), $MachinePrecision] - N[(60.0 * N[(y / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(x * 60.0), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision] + N[(a * 120.0), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -9.2 \cdot 10^{+67} \lor \neg \left(y \leq 1.45 \cdot 10^{+79}\right):\\
\;\;\;\;a \cdot 120 - 60 \cdot \frac{y}{z - t}\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot 60}{z - t} + a \cdot 120\\
\end{array}
\end{array}
(FPCore (x y z t a) :precision binary64 (if (or (<= y -1.04e+68) (not (<= y 1.65e+75))) (+ (/ 60.0 (/ (- t z) y)) (* a 120.0)) (+ (/ (* x 60.0) (- z t)) (* a 120.0))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((y <= -1.04e+68) || !(y <= 1.65e+75)) {
tmp = (60.0 / ((t - z) / y)) + (a * 120.0);
} else {
tmp = ((x * 60.0) / (z - t)) + (a * 120.0);
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((y <= (-1.04d+68)) .or. (.not. (y <= 1.65d+75))) then
tmp = (60.0d0 / ((t - z) / y)) + (a * 120.0d0)
else
tmp = ((x * 60.0d0) / (z - t)) + (a * 120.0d0)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((y <= -1.04e+68) || !(y <= 1.65e+75)) {
tmp = (60.0 / ((t - z) / y)) + (a * 120.0);
} else {
tmp = ((x * 60.0) / (z - t)) + (a * 120.0);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (y <= -1.04e+68) or not (y <= 1.65e+75): tmp = (60.0 / ((t - z) / y)) + (a * 120.0) else: tmp = ((x * 60.0) / (z - t)) + (a * 120.0) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((y <= -1.04e+68) || !(y <= 1.65e+75)) tmp = Float64(Float64(60.0 / Float64(Float64(t - z) / y)) + Float64(a * 120.0)); else tmp = Float64(Float64(Float64(x * 60.0) / Float64(z - t)) + Float64(a * 120.0)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((y <= -1.04e+68) || ~((y <= 1.65e+75))) tmp = (60.0 / ((t - z) / y)) + (a * 120.0); else tmp = ((x * 60.0) / (z - t)) + (a * 120.0); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[y, -1.04e+68], N[Not[LessEqual[y, 1.65e+75]], $MachinePrecision]], N[(N[(60.0 / N[(N[(t - z), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision] + N[(a * 120.0), $MachinePrecision]), $MachinePrecision], N[(N[(N[(x * 60.0), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision] + N[(a * 120.0), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.04 \cdot 10^{+68} \lor \neg \left(y \leq 1.65 \cdot 10^{+75}\right):\\
\;\;\;\;\frac{60}{\frac{t - z}{y}} + a \cdot 120\\
\mathbf{else}:\\
\;\;\;\;\frac{x \cdot 60}{z - t} + a \cdot 120\\
\end{array}
\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}
(FPCore (x y z t a) :precision binary64 (+ (/ (- y x) (* (- z t) -0.016666666666666666)) (* a 120.0)))
double code(double x, double y, double z, double t, double a) {
return ((y - x) / ((z - t) * -0.016666666666666666)) + (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 = ((y - x) / ((z - t) * (-0.016666666666666666d0))) + (a * 120.0d0)
end function
public static double code(double x, double y, double z, double t, double a) {
return ((y - x) / ((z - t) * -0.016666666666666666)) + (a * 120.0);
}
def code(x, y, z, t, a): return ((y - x) / ((z - t) * -0.016666666666666666)) + (a * 120.0)
function code(x, y, z, t, a) return Float64(Float64(Float64(y - x) / Float64(Float64(z - t) * -0.016666666666666666)) + Float64(a * 120.0)) end
function tmp = code(x, y, z, t, a) tmp = ((y - x) / ((z - t) * -0.016666666666666666)) + (a * 120.0); end
code[x_, y_, z_, t_, a_] := N[(N[(N[(y - x), $MachinePrecision] / N[(N[(z - t), $MachinePrecision] * -0.016666666666666666), $MachinePrecision]), $MachinePrecision] + N[(a * 120.0), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{y - x}{\left(z - t\right) \cdot -0.016666666666666666} + a \cdot 120
\end{array}
(FPCore (x y z t a) :precision binary64 (if (or (<= y -1.9e+158) (not (<= y 3.1e+97))) (* (/ y (- z t)) -60.0) (* a 120.0)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((y <= -1.9e+158) || !(y <= 3.1e+97)) {
tmp = (y / (z - t)) * -60.0;
} 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 <= (-1.9d+158)) .or. (.not. (y <= 3.1d+97))) then
tmp = (y / (z - t)) * (-60.0d0)
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 <= -1.9e+158) || !(y <= 3.1e+97)) {
tmp = (y / (z - t)) * -60.0;
} else {
tmp = a * 120.0;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (y <= -1.9e+158) or not (y <= 3.1e+97): tmp = (y / (z - t)) * -60.0 else: tmp = a * 120.0 return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((y <= -1.9e+158) || !(y <= 3.1e+97)) tmp = Float64(Float64(y / Float64(z - t)) * -60.0); else tmp = Float64(a * 120.0); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((y <= -1.9e+158) || ~((y <= 3.1e+97))) tmp = (y / (z - t)) * -60.0; else tmp = a * 120.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[y, -1.9e+158], N[Not[LessEqual[y, 3.1e+97]], $MachinePrecision]], N[(N[(y / N[(z - t), $MachinePrecision]), $MachinePrecision] * -60.0), $MachinePrecision], N[(a * 120.0), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.9 \cdot 10^{+158} \lor \neg \left(y \leq 3.1 \cdot 10^{+97}\right):\\
\;\;\;\;\frac{y}{z - t} \cdot -60\\
\mathbf{else}:\\
\;\;\;\;a \cdot 120\\
\end{array}
\end{array}
(FPCore (x y z t a) :precision binary64 (if (or (<= y -2.2e+209) (not (<= y 1.3e+97))) (* -60.0 (/ (- y) t)) (* a 120.0)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((y <= -2.2e+209) || !(y <= 1.3e+97)) {
tmp = -60.0 * (-y / 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 <= (-2.2d+209)) .or. (.not. (y <= 1.3d+97))) then
tmp = (-60.0d0) * (-y / 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 <= -2.2e+209) || !(y <= 1.3e+97)) {
tmp = -60.0 * (-y / t);
} else {
tmp = a * 120.0;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (y <= -2.2e+209) or not (y <= 1.3e+97): tmp = -60.0 * (-y / t) else: tmp = a * 120.0 return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((y <= -2.2e+209) || !(y <= 1.3e+97)) tmp = Float64(-60.0 * Float64(Float64(-y) / 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 <= -2.2e+209) || ~((y <= 1.3e+97))) tmp = -60.0 * (-y / t); else tmp = a * 120.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[y, -2.2e+209], N[Not[LessEqual[y, 1.3e+97]], $MachinePrecision]], N[(-60.0 * N[((-y) / t), $MachinePrecision]), $MachinePrecision], N[(a * 120.0), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.2 \cdot 10^{+209} \lor \neg \left(y \leq 1.3 \cdot 10^{+97}\right):\\
\;\;\;\;-60 \cdot \frac{-y}{t}\\
\mathbf{else}:\\
\;\;\;\;a \cdot 120\\
\end{array}
\end{array}
(FPCore (x y z t a) :precision binary64 (if (or (<= x -1.04e+248) (not (<= x 4.6e+213))) (* 60.0 (/ x z)) (* a 120.0)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((x <= -1.04e+248) || !(x <= 4.6e+213)) {
tmp = 60.0 * (x / z);
} else {
tmp = a * 120.0;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((x <= (-1.04d+248)) .or. (.not. (x <= 4.6d+213))) then
tmp = 60.0d0 * (x / z)
else
tmp = a * 120.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((x <= -1.04e+248) || !(x <= 4.6e+213)) {
tmp = 60.0 * (x / z);
} else {
tmp = a * 120.0;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (x <= -1.04e+248) or not (x <= 4.6e+213): tmp = 60.0 * (x / z) else: tmp = a * 120.0 return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((x <= -1.04e+248) || !(x <= 4.6e+213)) tmp = Float64(60.0 * Float64(x / z)); else tmp = Float64(a * 120.0); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((x <= -1.04e+248) || ~((x <= 4.6e+213))) tmp = 60.0 * (x / z); else tmp = a * 120.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[x, -1.04e+248], N[Not[LessEqual[x, 4.6e+213]], $MachinePrecision]], N[(60.0 * N[(x / z), $MachinePrecision]), $MachinePrecision], N[(a * 120.0), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.04 \cdot 10^{+248} \lor \neg \left(x \leq 4.6 \cdot 10^{+213}\right):\\
\;\;\;\;60 \cdot \frac{x}{z}\\
\mathbf{else}:\\
\;\;\;\;a \cdot 120\\
\end{array}
\end{array}
(FPCore (x y z t a) :precision binary64 (if (<= x -7.8e+248) (* 60.0 (/ x z)) (if (<= x 4.6e+213) (* a 120.0) (* x (/ 60.0 z)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (x <= -7.8e+248) {
tmp = 60.0 * (x / z);
} else if (x <= 4.6e+213) {
tmp = a * 120.0;
} else {
tmp = x * (60.0 / z);
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (x <= (-7.8d+248)) then
tmp = 60.0d0 * (x / z)
else if (x <= 4.6d+213) then
tmp = a * 120.0d0
else
tmp = x * (60.0d0 / z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (x <= -7.8e+248) {
tmp = 60.0 * (x / z);
} else if (x <= 4.6e+213) {
tmp = a * 120.0;
} else {
tmp = x * (60.0 / z);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if x <= -7.8e+248: tmp = 60.0 * (x / z) elif x <= 4.6e+213: tmp = a * 120.0 else: tmp = x * (60.0 / z) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (x <= -7.8e+248) tmp = Float64(60.0 * Float64(x / z)); elseif (x <= 4.6e+213) tmp = Float64(a * 120.0); else tmp = Float64(x * Float64(60.0 / z)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (x <= -7.8e+248) tmp = 60.0 * (x / z); elseif (x <= 4.6e+213) tmp = a * 120.0; else tmp = x * (60.0 / z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[x, -7.8e+248], N[(60.0 * N[(x / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 4.6e+213], N[(a * 120.0), $MachinePrecision], N[(x * N[(60.0 / z), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -7.8 \cdot 10^{+248}:\\
\;\;\;\;60 \cdot \frac{x}{z}\\
\mathbf{elif}\;x \leq 4.6 \cdot 10^{+213}:\\
\;\;\;\;a \cdot 120\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{60}{z}\\
\end{array}
\end{array}
(FPCore (x y z t a) :precision binary64 (if (<= x 1.22e+213) (* a 120.0) (* -60.0 (/ x t))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (x <= 1.22e+213) {
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 (x <= 1.22d+213) 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 (x <= 1.22e+213) {
tmp = a * 120.0;
} else {
tmp = -60.0 * (x / t);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if x <= 1.22e+213: tmp = a * 120.0 else: tmp = -60.0 * (x / t) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (x <= 1.22e+213) 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 (x <= 1.22e+213) tmp = a * 120.0; else tmp = -60.0 * (x / t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[x, 1.22e+213], N[(a * 120.0), $MachinePrecision], N[(-60.0 * N[(x / t), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq 1.22 \cdot 10^{+213}:\\
\;\;\;\;a \cdot 120\\
\mathbf{else}:\\
\;\;\;\;-60 \cdot \frac{x}{t}\\
\end{array}
\end{array}
(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}
(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 2023350
(FPCore (x y z t a)
:name "Data.Colour.RGB:hslsv from colour-2.3.3, B"
:precision binary64
:herbie-target
(+ (/ 60.0 (/ (- z t) (- x y))) (* a 120.0))
(+ (/ (* 60.0 (- x y)) (- z t)) (* a 120.0)))