
(FPCore (x y z t) :precision binary64 (+ (- x (/ y (* z 3.0))) (/ t (* (* z 3.0) y))))
double code(double x, double y, double z, double t) {
return (x - (y / (z * 3.0))) + (t / ((z * 3.0) * y));
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = (x - (y / (z * 3.0d0))) + (t / ((z * 3.0d0) * y))
end function
public static double code(double x, double y, double z, double t) {
return (x - (y / (z * 3.0))) + (t / ((z * 3.0) * y));
}
def code(x, y, z, t): return (x - (y / (z * 3.0))) + (t / ((z * 3.0) * y))
function code(x, y, z, t) return Float64(Float64(x - Float64(y / Float64(z * 3.0))) + Float64(t / Float64(Float64(z * 3.0) * y))) end
function tmp = code(x, y, z, t) tmp = (x - (y / (z * 3.0))) + (t / ((z * 3.0) * y)); end
code[x_, y_, z_, t_] := N[(N[(x - N[(y / N[(z * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t / N[(N[(z * 3.0), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x - \frac{y}{z \cdot 3}\right) + \frac{t}{\left(z \cdot 3\right) \cdot y}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 19 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t) :precision binary64 (+ (- x (/ y (* z 3.0))) (/ t (* (* z 3.0) y))))
double code(double x, double y, double z, double t) {
return (x - (y / (z * 3.0))) + (t / ((z * 3.0) * y));
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = (x - (y / (z * 3.0d0))) + (t / ((z * 3.0d0) * y))
end function
public static double code(double x, double y, double z, double t) {
return (x - (y / (z * 3.0))) + (t / ((z * 3.0) * y));
}
def code(x, y, z, t): return (x - (y / (z * 3.0))) + (t / ((z * 3.0) * y))
function code(x, y, z, t) return Float64(Float64(x - Float64(y / Float64(z * 3.0))) + Float64(t / Float64(Float64(z * 3.0) * y))) end
function tmp = code(x, y, z, t) tmp = (x - (y / (z * 3.0))) + (t / ((z * 3.0) * y)); end
code[x_, y_, z_, t_] := N[(N[(x - N[(y / N[(z * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t / N[(N[(z * 3.0), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x - \frac{y}{z \cdot 3}\right) + \frac{t}{\left(z \cdot 3\right) \cdot y}
\end{array}
(FPCore (x y z t)
:precision binary64
(if (<= (* z 3.0) -5e+16)
(fma t (/ (/ 0.3333333333333333 z) y) (- x (* (/ 0.3333333333333333 z) y)))
(if (<= (* z 3.0) 4e+31)
(+ x (* 0.3333333333333333 (/ (- (/ t y) y) z)))
(+ (- x (/ y (* z 3.0))) (/ t (* (* z 3.0) y))))))
double code(double x, double y, double z, double t) {
double tmp;
if ((z * 3.0) <= -5e+16) {
tmp = fma(t, ((0.3333333333333333 / z) / y), (x - ((0.3333333333333333 / z) * y)));
} else if ((z * 3.0) <= 4e+31) {
tmp = x + (0.3333333333333333 * (((t / y) - y) / z));
} else {
tmp = (x - (y / (z * 3.0))) + (t / ((z * 3.0) * y));
}
return tmp;
}
function code(x, y, z, t) tmp = 0.0 if (Float64(z * 3.0) <= -5e+16) tmp = fma(t, Float64(Float64(0.3333333333333333 / z) / y), Float64(x - Float64(Float64(0.3333333333333333 / z) * y))); elseif (Float64(z * 3.0) <= 4e+31) tmp = Float64(x + Float64(0.3333333333333333 * Float64(Float64(Float64(t / y) - y) / z))); else tmp = Float64(Float64(x - Float64(y / Float64(z * 3.0))) + Float64(t / Float64(Float64(z * 3.0) * y))); end return tmp end
code[x_, y_, z_, t_] := If[LessEqual[N[(z * 3.0), $MachinePrecision], -5e+16], N[(t * N[(N[(0.3333333333333333 / z), $MachinePrecision] / y), $MachinePrecision] + N[(x - N[(N[(0.3333333333333333 / z), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(z * 3.0), $MachinePrecision], 4e+31], N[(x + N[(0.3333333333333333 * N[(N[(N[(t / y), $MachinePrecision] - y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x - N[(y / N[(z * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t / N[(N[(z * 3.0), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \cdot 3 \leq -5 \cdot 10^{+16}:\\
\;\;\;\;\mathsf{fma}\left(t, \frac{\frac{0.3333333333333333}{z}}{y}, x - \frac{0.3333333333333333}{z} \cdot y\right)\\
\mathbf{elif}\;z \cdot 3 \leq 4 \cdot 10^{+31}:\\
\;\;\;\;x + 0.3333333333333333 \cdot \frac{\frac{t}{y} - y}{z}\\
\mathbf{else}:\\
\;\;\;\;\left(x - \frac{y}{z \cdot 3}\right) + \frac{t}{\left(z \cdot 3\right) \cdot y}\\
\end{array}
\end{array}
(FPCore (x y z t) :precision binary64 (if (or (<= (* z 3.0) -2e-107) (not (<= (* z 3.0) 4e+31))) (+ (- x (/ y (* z 3.0))) (/ t (* (* z 3.0) y))) (+ x (* 0.3333333333333333 (/ (- (/ t y) y) z)))))
double code(double x, double y, double z, double t) {
double tmp;
if (((z * 3.0) <= -2e-107) || !((z * 3.0) <= 4e+31)) {
tmp = (x - (y / (z * 3.0))) + (t / ((z * 3.0) * y));
} else {
tmp = x + (0.3333333333333333 * (((t / y) - y) / z));
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if (((z * 3.0d0) <= (-2d-107)) .or. (.not. ((z * 3.0d0) <= 4d+31))) then
tmp = (x - (y / (z * 3.0d0))) + (t / ((z * 3.0d0) * y))
else
tmp = x + (0.3333333333333333d0 * (((t / y) - y) / z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (((z * 3.0) <= -2e-107) || !((z * 3.0) <= 4e+31)) {
tmp = (x - (y / (z * 3.0))) + (t / ((z * 3.0) * y));
} else {
tmp = x + (0.3333333333333333 * (((t / y) - y) / z));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if ((z * 3.0) <= -2e-107) or not ((z * 3.0) <= 4e+31): tmp = (x - (y / (z * 3.0))) + (t / ((z * 3.0) * y)) else: tmp = x + (0.3333333333333333 * (((t / y) - y) / z)) return tmp
function code(x, y, z, t) tmp = 0.0 if ((Float64(z * 3.0) <= -2e-107) || !(Float64(z * 3.0) <= 4e+31)) tmp = Float64(Float64(x - Float64(y / Float64(z * 3.0))) + Float64(t / Float64(Float64(z * 3.0) * y))); else tmp = Float64(x + Float64(0.3333333333333333 * Float64(Float64(Float64(t / y) - y) / z))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (((z * 3.0) <= -2e-107) || ~(((z * 3.0) <= 4e+31))) tmp = (x - (y / (z * 3.0))) + (t / ((z * 3.0) * y)); else tmp = x + (0.3333333333333333 * (((t / y) - y) / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[N[(z * 3.0), $MachinePrecision], -2e-107], N[Not[LessEqual[N[(z * 3.0), $MachinePrecision], 4e+31]], $MachinePrecision]], N[(N[(x - N[(y / N[(z * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t / N[(N[(z * 3.0), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(0.3333333333333333 * N[(N[(N[(t / y), $MachinePrecision] - y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \cdot 3 \leq -2 \cdot 10^{-107} \lor \neg \left(z \cdot 3 \leq 4 \cdot 10^{+31}\right):\\
\;\;\;\;\left(x - \frac{y}{z \cdot 3}\right) + \frac{t}{\left(z \cdot 3\right) \cdot y}\\
\mathbf{else}:\\
\;\;\;\;x + 0.3333333333333333 \cdot \frac{\frac{t}{y} - y}{z}\\
\end{array}
\end{array}
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (* 0.3333333333333333 (/ t (* z y)))))
(if (<= y -2.6e+101)
(/ (/ y z) -3.0)
(if (<= y -3.5e+44)
x
(if (<= y -9e+28)
(* -0.3333333333333333 (/ y z))
(if (<= y 2.5e-157)
t_1
(if (<= y 1.55e-65)
x
(if (<= y 4.7e-30)
t_1
(if (<= y 2.85e+109) x (* y (/ -0.3333333333333333 z)))))))))))
double code(double x, double y, double z, double t) {
double t_1 = 0.3333333333333333 * (t / (z * y));
double tmp;
if (y <= -2.6e+101) {
tmp = (y / z) / -3.0;
} else if (y <= -3.5e+44) {
tmp = x;
} else if (y <= -9e+28) {
tmp = -0.3333333333333333 * (y / z);
} else if (y <= 2.5e-157) {
tmp = t_1;
} else if (y <= 1.55e-65) {
tmp = x;
} else if (y <= 4.7e-30) {
tmp = t_1;
} else if (y <= 2.85e+109) {
tmp = x;
} else {
tmp = y * (-0.3333333333333333 / z);
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: t_1
real(8) :: tmp
t_1 = 0.3333333333333333d0 * (t / (z * y))
if (y <= (-2.6d+101)) then
tmp = (y / z) / (-3.0d0)
else if (y <= (-3.5d+44)) then
tmp = x
else if (y <= (-9d+28)) then
tmp = (-0.3333333333333333d0) * (y / z)
else if (y <= 2.5d-157) then
tmp = t_1
else if (y <= 1.55d-65) then
tmp = x
else if (y <= 4.7d-30) then
tmp = t_1
else if (y <= 2.85d+109) then
tmp = x
else
tmp = y * ((-0.3333333333333333d0) / z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = 0.3333333333333333 * (t / (z * y));
double tmp;
if (y <= -2.6e+101) {
tmp = (y / z) / -3.0;
} else if (y <= -3.5e+44) {
tmp = x;
} else if (y <= -9e+28) {
tmp = -0.3333333333333333 * (y / z);
} else if (y <= 2.5e-157) {
tmp = t_1;
} else if (y <= 1.55e-65) {
tmp = x;
} else if (y <= 4.7e-30) {
tmp = t_1;
} else if (y <= 2.85e+109) {
tmp = x;
} else {
tmp = y * (-0.3333333333333333 / z);
}
return tmp;
}
def code(x, y, z, t): t_1 = 0.3333333333333333 * (t / (z * y)) tmp = 0 if y <= -2.6e+101: tmp = (y / z) / -3.0 elif y <= -3.5e+44: tmp = x elif y <= -9e+28: tmp = -0.3333333333333333 * (y / z) elif y <= 2.5e-157: tmp = t_1 elif y <= 1.55e-65: tmp = x elif y <= 4.7e-30: tmp = t_1 elif y <= 2.85e+109: tmp = x else: tmp = y * (-0.3333333333333333 / z) return tmp
function code(x, y, z, t) t_1 = Float64(0.3333333333333333 * Float64(t / Float64(z * y))) tmp = 0.0 if (y <= -2.6e+101) tmp = Float64(Float64(y / z) / -3.0); elseif (y <= -3.5e+44) tmp = x; elseif (y <= -9e+28) tmp = Float64(-0.3333333333333333 * Float64(y / z)); elseif (y <= 2.5e-157) tmp = t_1; elseif (y <= 1.55e-65) tmp = x; elseif (y <= 4.7e-30) tmp = t_1; elseif (y <= 2.85e+109) tmp = x; else tmp = Float64(y * Float64(-0.3333333333333333 / z)); end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = 0.3333333333333333 * (t / (z * y)); tmp = 0.0; if (y <= -2.6e+101) tmp = (y / z) / -3.0; elseif (y <= -3.5e+44) tmp = x; elseif (y <= -9e+28) tmp = -0.3333333333333333 * (y / z); elseif (y <= 2.5e-157) tmp = t_1; elseif (y <= 1.55e-65) tmp = x; elseif (y <= 4.7e-30) tmp = t_1; elseif (y <= 2.85e+109) tmp = x; else tmp = y * (-0.3333333333333333 / z); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(0.3333333333333333 * N[(t / N[(z * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -2.6e+101], N[(N[(y / z), $MachinePrecision] / -3.0), $MachinePrecision], If[LessEqual[y, -3.5e+44], x, If[LessEqual[y, -9e+28], N[(-0.3333333333333333 * N[(y / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.5e-157], t$95$1, If[LessEqual[y, 1.55e-65], x, If[LessEqual[y, 4.7e-30], t$95$1, If[LessEqual[y, 2.85e+109], x, N[(y * N[(-0.3333333333333333 / z), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := 0.3333333333333333 \cdot \frac{t}{z \cdot y}\\
\mathbf{if}\;y \leq -2.6 \cdot 10^{+101}:\\
\;\;\;\;\frac{\frac{y}{z}}{-3}\\
\mathbf{elif}\;y \leq -3.5 \cdot 10^{+44}:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq -9 \cdot 10^{+28}:\\
\;\;\;\;-0.3333333333333333 \cdot \frac{y}{z}\\
\mathbf{elif}\;y \leq 2.5 \cdot 10^{-157}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 1.55 \cdot 10^{-65}:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq 4.7 \cdot 10^{-30}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 2.85 \cdot 10^{+109}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;y \cdot \frac{-0.3333333333333333}{z}\\
\end{array}
\end{array}
(FPCore (x y z t)
:precision binary64
(if (<= y -5.8e+104)
(/ (/ y z) -3.0)
(if (<= y -1.2e+45)
x
(if (<= y -2.7e+27)
(* -0.3333333333333333 (/ y z))
(if (<= y 2.5e-157)
(* 0.3333333333333333 (/ t (* z y)))
(if (<= y 1.55e-61)
x
(if (<= y 8.5e-31)
(* t (/ 0.3333333333333333 (* z y)))
(if (<= y 2.85e+109) x (* y (/ -0.3333333333333333 z))))))))))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -5.8e+104) {
tmp = (y / z) / -3.0;
} else if (y <= -1.2e+45) {
tmp = x;
} else if (y <= -2.7e+27) {
tmp = -0.3333333333333333 * (y / z);
} else if (y <= 2.5e-157) {
tmp = 0.3333333333333333 * (t / (z * y));
} else if (y <= 1.55e-61) {
tmp = x;
} else if (y <= 8.5e-31) {
tmp = t * (0.3333333333333333 / (z * y));
} else if (y <= 2.85e+109) {
tmp = x;
} else {
tmp = y * (-0.3333333333333333 / z);
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if (y <= (-5.8d+104)) then
tmp = (y / z) / (-3.0d0)
else if (y <= (-1.2d+45)) then
tmp = x
else if (y <= (-2.7d+27)) then
tmp = (-0.3333333333333333d0) * (y / z)
else if (y <= 2.5d-157) then
tmp = 0.3333333333333333d0 * (t / (z * y))
else if (y <= 1.55d-61) then
tmp = x
else if (y <= 8.5d-31) then
tmp = t * (0.3333333333333333d0 / (z * y))
else if (y <= 2.85d+109) then
tmp = x
else
tmp = y * ((-0.3333333333333333d0) / z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (y <= -5.8e+104) {
tmp = (y / z) / -3.0;
} else if (y <= -1.2e+45) {
tmp = x;
} else if (y <= -2.7e+27) {
tmp = -0.3333333333333333 * (y / z);
} else if (y <= 2.5e-157) {
tmp = 0.3333333333333333 * (t / (z * y));
} else if (y <= 1.55e-61) {
tmp = x;
} else if (y <= 8.5e-31) {
tmp = t * (0.3333333333333333 / (z * y));
} else if (y <= 2.85e+109) {
tmp = x;
} else {
tmp = y * (-0.3333333333333333 / z);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= -5.8e+104: tmp = (y / z) / -3.0 elif y <= -1.2e+45: tmp = x elif y <= -2.7e+27: tmp = -0.3333333333333333 * (y / z) elif y <= 2.5e-157: tmp = 0.3333333333333333 * (t / (z * y)) elif y <= 1.55e-61: tmp = x elif y <= 8.5e-31: tmp = t * (0.3333333333333333 / (z * y)) elif y <= 2.85e+109: tmp = x else: tmp = y * (-0.3333333333333333 / z) return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= -5.8e+104) tmp = Float64(Float64(y / z) / -3.0); elseif (y <= -1.2e+45) tmp = x; elseif (y <= -2.7e+27) tmp = Float64(-0.3333333333333333 * Float64(y / z)); elseif (y <= 2.5e-157) tmp = Float64(0.3333333333333333 * Float64(t / Float64(z * y))); elseif (y <= 1.55e-61) tmp = x; elseif (y <= 8.5e-31) tmp = Float64(t * Float64(0.3333333333333333 / Float64(z * y))); elseif (y <= 2.85e+109) tmp = x; else tmp = Float64(y * Float64(-0.3333333333333333 / z)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (y <= -5.8e+104) tmp = (y / z) / -3.0; elseif (y <= -1.2e+45) tmp = x; elseif (y <= -2.7e+27) tmp = -0.3333333333333333 * (y / z); elseif (y <= 2.5e-157) tmp = 0.3333333333333333 * (t / (z * y)); elseif (y <= 1.55e-61) tmp = x; elseif (y <= 8.5e-31) tmp = t * (0.3333333333333333 / (z * y)); elseif (y <= 2.85e+109) tmp = x; else tmp = y * (-0.3333333333333333 / z); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, -5.8e+104], N[(N[(y / z), $MachinePrecision] / -3.0), $MachinePrecision], If[LessEqual[y, -1.2e+45], x, If[LessEqual[y, -2.7e+27], N[(-0.3333333333333333 * N[(y / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.5e-157], N[(0.3333333333333333 * N[(t / N[(z * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.55e-61], x, If[LessEqual[y, 8.5e-31], N[(t * N[(0.3333333333333333 / N[(z * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.85e+109], x, N[(y * N[(-0.3333333333333333 / z), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -5.8 \cdot 10^{+104}:\\
\;\;\;\;\frac{\frac{y}{z}}{-3}\\
\mathbf{elif}\;y \leq -1.2 \cdot 10^{+45}:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq -2.7 \cdot 10^{+27}:\\
\;\;\;\;-0.3333333333333333 \cdot \frac{y}{z}\\
\mathbf{elif}\;y \leq 2.5 \cdot 10^{-157}:\\
\;\;\;\;0.3333333333333333 \cdot \frac{t}{z \cdot y}\\
\mathbf{elif}\;y \leq 1.55 \cdot 10^{-61}:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq 8.5 \cdot 10^{-31}:\\
\;\;\;\;t \cdot \frac{0.3333333333333333}{z \cdot y}\\
\mathbf{elif}\;y \leq 2.85 \cdot 10^{+109}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;y \cdot \frac{-0.3333333333333333}{z}\\
\end{array}
\end{array}
(FPCore (x y z t)
:precision binary64
(if (<= y -6e+103)
(/ (/ y z) -3.0)
(if (<= y -6.5e+44)
x
(if (<= y -1.02e+29)
(* -0.3333333333333333 (/ y z))
(if (<= y 1.6e-157)
(* t (/ (/ 0.3333333333333333 z) y))
(if (<= y 6.6e-70)
x
(if (<= y 6.2e-31)
(* t (/ 0.3333333333333333 (* z y)))
(if (<= y 2.85e+109) x (* y (/ -0.3333333333333333 z))))))))))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -6e+103) {
tmp = (y / z) / -3.0;
} else if (y <= -6.5e+44) {
tmp = x;
} else if (y <= -1.02e+29) {
tmp = -0.3333333333333333 * (y / z);
} else if (y <= 1.6e-157) {
tmp = t * ((0.3333333333333333 / z) / y);
} else if (y <= 6.6e-70) {
tmp = x;
} else if (y <= 6.2e-31) {
tmp = t * (0.3333333333333333 / (z * y));
} else if (y <= 2.85e+109) {
tmp = x;
} else {
tmp = y * (-0.3333333333333333 / z);
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if (y <= (-6d+103)) then
tmp = (y / z) / (-3.0d0)
else if (y <= (-6.5d+44)) then
tmp = x
else if (y <= (-1.02d+29)) then
tmp = (-0.3333333333333333d0) * (y / z)
else if (y <= 1.6d-157) then
tmp = t * ((0.3333333333333333d0 / z) / y)
else if (y <= 6.6d-70) then
tmp = x
else if (y <= 6.2d-31) then
tmp = t * (0.3333333333333333d0 / (z * y))
else if (y <= 2.85d+109) then
tmp = x
else
tmp = y * ((-0.3333333333333333d0) / z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (y <= -6e+103) {
tmp = (y / z) / -3.0;
} else if (y <= -6.5e+44) {
tmp = x;
} else if (y <= -1.02e+29) {
tmp = -0.3333333333333333 * (y / z);
} else if (y <= 1.6e-157) {
tmp = t * ((0.3333333333333333 / z) / y);
} else if (y <= 6.6e-70) {
tmp = x;
} else if (y <= 6.2e-31) {
tmp = t * (0.3333333333333333 / (z * y));
} else if (y <= 2.85e+109) {
tmp = x;
} else {
tmp = y * (-0.3333333333333333 / z);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= -6e+103: tmp = (y / z) / -3.0 elif y <= -6.5e+44: tmp = x elif y <= -1.02e+29: tmp = -0.3333333333333333 * (y / z) elif y <= 1.6e-157: tmp = t * ((0.3333333333333333 / z) / y) elif y <= 6.6e-70: tmp = x elif y <= 6.2e-31: tmp = t * (0.3333333333333333 / (z * y)) elif y <= 2.85e+109: tmp = x else: tmp = y * (-0.3333333333333333 / z) return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= -6e+103) tmp = Float64(Float64(y / z) / -3.0); elseif (y <= -6.5e+44) tmp = x; elseif (y <= -1.02e+29) tmp = Float64(-0.3333333333333333 * Float64(y / z)); elseif (y <= 1.6e-157) tmp = Float64(t * Float64(Float64(0.3333333333333333 / z) / y)); elseif (y <= 6.6e-70) tmp = x; elseif (y <= 6.2e-31) tmp = Float64(t * Float64(0.3333333333333333 / Float64(z * y))); elseif (y <= 2.85e+109) tmp = x; else tmp = Float64(y * Float64(-0.3333333333333333 / z)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (y <= -6e+103) tmp = (y / z) / -3.0; elseif (y <= -6.5e+44) tmp = x; elseif (y <= -1.02e+29) tmp = -0.3333333333333333 * (y / z); elseif (y <= 1.6e-157) tmp = t * ((0.3333333333333333 / z) / y); elseif (y <= 6.6e-70) tmp = x; elseif (y <= 6.2e-31) tmp = t * (0.3333333333333333 / (z * y)); elseif (y <= 2.85e+109) tmp = x; else tmp = y * (-0.3333333333333333 / z); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, -6e+103], N[(N[(y / z), $MachinePrecision] / -3.0), $MachinePrecision], If[LessEqual[y, -6.5e+44], x, If[LessEqual[y, -1.02e+29], N[(-0.3333333333333333 * N[(y / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.6e-157], N[(t * N[(N[(0.3333333333333333 / z), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 6.6e-70], x, If[LessEqual[y, 6.2e-31], N[(t * N[(0.3333333333333333 / N[(z * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.85e+109], x, N[(y * N[(-0.3333333333333333 / z), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -6 \cdot 10^{+103}:\\
\;\;\;\;\frac{\frac{y}{z}}{-3}\\
\mathbf{elif}\;y \leq -6.5 \cdot 10^{+44}:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq -1.02 \cdot 10^{+29}:\\
\;\;\;\;-0.3333333333333333 \cdot \frac{y}{z}\\
\mathbf{elif}\;y \leq 1.6 \cdot 10^{-157}:\\
\;\;\;\;t \cdot \frac{\frac{0.3333333333333333}{z}}{y}\\
\mathbf{elif}\;y \leq 6.6 \cdot 10^{-70}:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq 6.2 \cdot 10^{-31}:\\
\;\;\;\;t \cdot \frac{0.3333333333333333}{z \cdot y}\\
\mathbf{elif}\;y \leq 2.85 \cdot 10^{+109}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;y \cdot \frac{-0.3333333333333333}{z}\\
\end{array}
\end{array}
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (* (/ t z) (/ 0.3333333333333333 y))))
(if (<= y -1.25e+102)
(/ (/ y z) -3.0)
(if (<= y -3.8e+44)
x
(if (<= y -5e+27)
(* -0.3333333333333333 (/ y z))
(if (<= y 3.4e-125)
t_1
(if (<= y 9.6e-77)
x
(if (<= y 1e-12) t_1 (* y (/ -0.3333333333333333 z))))))))))
double code(double x, double y, double z, double t) {
double t_1 = (t / z) * (0.3333333333333333 / y);
double tmp;
if (y <= -1.25e+102) {
tmp = (y / z) / -3.0;
} else if (y <= -3.8e+44) {
tmp = x;
} else if (y <= -5e+27) {
tmp = -0.3333333333333333 * (y / z);
} else if (y <= 3.4e-125) {
tmp = t_1;
} else if (y <= 9.6e-77) {
tmp = x;
} else if (y <= 1e-12) {
tmp = t_1;
} else {
tmp = y * (-0.3333333333333333 / z);
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: t_1
real(8) :: tmp
t_1 = (t / z) * (0.3333333333333333d0 / y)
if (y <= (-1.25d+102)) then
tmp = (y / z) / (-3.0d0)
else if (y <= (-3.8d+44)) then
tmp = x
else if (y <= (-5d+27)) then
tmp = (-0.3333333333333333d0) * (y / z)
else if (y <= 3.4d-125) then
tmp = t_1
else if (y <= 9.6d-77) then
tmp = x
else if (y <= 1d-12) then
tmp = t_1
else
tmp = y * ((-0.3333333333333333d0) / z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = (t / z) * (0.3333333333333333 / y);
double tmp;
if (y <= -1.25e+102) {
tmp = (y / z) / -3.0;
} else if (y <= -3.8e+44) {
tmp = x;
} else if (y <= -5e+27) {
tmp = -0.3333333333333333 * (y / z);
} else if (y <= 3.4e-125) {
tmp = t_1;
} else if (y <= 9.6e-77) {
tmp = x;
} else if (y <= 1e-12) {
tmp = t_1;
} else {
tmp = y * (-0.3333333333333333 / z);
}
return tmp;
}
def code(x, y, z, t): t_1 = (t / z) * (0.3333333333333333 / y) tmp = 0 if y <= -1.25e+102: tmp = (y / z) / -3.0 elif y <= -3.8e+44: tmp = x elif y <= -5e+27: tmp = -0.3333333333333333 * (y / z) elif y <= 3.4e-125: tmp = t_1 elif y <= 9.6e-77: tmp = x elif y <= 1e-12: tmp = t_1 else: tmp = y * (-0.3333333333333333 / z) return tmp
function code(x, y, z, t) t_1 = Float64(Float64(t / z) * Float64(0.3333333333333333 / y)) tmp = 0.0 if (y <= -1.25e+102) tmp = Float64(Float64(y / z) / -3.0); elseif (y <= -3.8e+44) tmp = x; elseif (y <= -5e+27) tmp = Float64(-0.3333333333333333 * Float64(y / z)); elseif (y <= 3.4e-125) tmp = t_1; elseif (y <= 9.6e-77) tmp = x; elseif (y <= 1e-12) tmp = t_1; else tmp = Float64(y * Float64(-0.3333333333333333 / z)); end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = (t / z) * (0.3333333333333333 / y); tmp = 0.0; if (y <= -1.25e+102) tmp = (y / z) / -3.0; elseif (y <= -3.8e+44) tmp = x; elseif (y <= -5e+27) tmp = -0.3333333333333333 * (y / z); elseif (y <= 3.4e-125) tmp = t_1; elseif (y <= 9.6e-77) tmp = x; elseif (y <= 1e-12) tmp = t_1; else tmp = y * (-0.3333333333333333 / z); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(t / z), $MachinePrecision] * N[(0.3333333333333333 / y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.25e+102], N[(N[(y / z), $MachinePrecision] / -3.0), $MachinePrecision], If[LessEqual[y, -3.8e+44], x, If[LessEqual[y, -5e+27], N[(-0.3333333333333333 * N[(y / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.4e-125], t$95$1, If[LessEqual[y, 9.6e-77], x, If[LessEqual[y, 1e-12], t$95$1, N[(y * N[(-0.3333333333333333 / z), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{t}{z} \cdot \frac{0.3333333333333333}{y}\\
\mathbf{if}\;y \leq -1.25 \cdot 10^{+102}:\\
\;\;\;\;\frac{\frac{y}{z}}{-3}\\
\mathbf{elif}\;y \leq -3.8 \cdot 10^{+44}:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq -5 \cdot 10^{+27}:\\
\;\;\;\;-0.3333333333333333 \cdot \frac{y}{z}\\
\mathbf{elif}\;y \leq 3.4 \cdot 10^{-125}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 9.6 \cdot 10^{-77}:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq 10^{-12}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;y \cdot \frac{-0.3333333333333333}{z}\\
\end{array}
\end{array}
(FPCore (x y z t)
:precision binary64
(if (or (<= y -6.8e-57)
(not (or (<= y 3.3e-137) (and (not (<= y 4.3e-74)) (<= y 7.6e-39)))))
(+ x (* y (/ -0.3333333333333333 z)))
(* (/ t z) (/ 0.3333333333333333 y))))
double code(double x, double y, double z, double t) {
double tmp;
if ((y <= -6.8e-57) || !((y <= 3.3e-137) || (!(y <= 4.3e-74) && (y <= 7.6e-39)))) {
tmp = x + (y * (-0.3333333333333333 / z));
} else {
tmp = (t / z) * (0.3333333333333333 / y);
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if ((y <= (-6.8d-57)) .or. (.not. (y <= 3.3d-137) .or. (.not. (y <= 4.3d-74)) .and. (y <= 7.6d-39))) then
tmp = x + (y * ((-0.3333333333333333d0) / z))
else
tmp = (t / z) * (0.3333333333333333d0 / y)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((y <= -6.8e-57) || !((y <= 3.3e-137) || (!(y <= 4.3e-74) && (y <= 7.6e-39)))) {
tmp = x + (y * (-0.3333333333333333 / z));
} else {
tmp = (t / z) * (0.3333333333333333 / y);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (y <= -6.8e-57) or not ((y <= 3.3e-137) or (not (y <= 4.3e-74) and (y <= 7.6e-39))): tmp = x + (y * (-0.3333333333333333 / z)) else: tmp = (t / z) * (0.3333333333333333 / y) return tmp
function code(x, y, z, t) tmp = 0.0 if ((y <= -6.8e-57) || !((y <= 3.3e-137) || (!(y <= 4.3e-74) && (y <= 7.6e-39)))) tmp = Float64(x + Float64(y * Float64(-0.3333333333333333 / z))); else tmp = Float64(Float64(t / z) * Float64(0.3333333333333333 / y)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((y <= -6.8e-57) || ~(((y <= 3.3e-137) || (~((y <= 4.3e-74)) && (y <= 7.6e-39))))) tmp = x + (y * (-0.3333333333333333 / z)); else tmp = (t / z) * (0.3333333333333333 / y); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[y, -6.8e-57], N[Not[Or[LessEqual[y, 3.3e-137], And[N[Not[LessEqual[y, 4.3e-74]], $MachinePrecision], LessEqual[y, 7.6e-39]]]], $MachinePrecision]], N[(x + N[(y * N[(-0.3333333333333333 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(t / z), $MachinePrecision] * N[(0.3333333333333333 / y), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -6.8 \cdot 10^{-57} \lor \neg \left(y \leq 3.3 \cdot 10^{-137} \lor \neg \left(y \leq 4.3 \cdot 10^{-74}\right) \land y \leq 7.6 \cdot 10^{-39}\right):\\
\;\;\;\;x + y \cdot \frac{-0.3333333333333333}{z}\\
\mathbf{else}:\\
\;\;\;\;\frac{t}{z} \cdot \frac{0.3333333333333333}{y}\\
\end{array}
\end{array}
(FPCore (x y z t)
:precision binary64
(if (<= y -5e-58)
(- x (* 0.3333333333333333 (/ y z)))
(if (or (<= y 3.2e-137) (and (not (<= y 1.65e-75)) (<= y 1e-38)))
(* (/ t z) (/ 0.3333333333333333 y))
(+ x (* y (/ -0.3333333333333333 z))))))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -5e-58) {
tmp = x - (0.3333333333333333 * (y / z));
} else if ((y <= 3.2e-137) || (!(y <= 1.65e-75) && (y <= 1e-38))) {
tmp = (t / z) * (0.3333333333333333 / y);
} else {
tmp = x + (y * (-0.3333333333333333 / z));
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if (y <= (-5d-58)) then
tmp = x - (0.3333333333333333d0 * (y / z))
else if ((y <= 3.2d-137) .or. (.not. (y <= 1.65d-75)) .and. (y <= 1d-38)) then
tmp = (t / z) * (0.3333333333333333d0 / y)
else
tmp = x + (y * ((-0.3333333333333333d0) / z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (y <= -5e-58) {
tmp = x - (0.3333333333333333 * (y / z));
} else if ((y <= 3.2e-137) || (!(y <= 1.65e-75) && (y <= 1e-38))) {
tmp = (t / z) * (0.3333333333333333 / y);
} else {
tmp = x + (y * (-0.3333333333333333 / z));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= -5e-58: tmp = x - (0.3333333333333333 * (y / z)) elif (y <= 3.2e-137) or (not (y <= 1.65e-75) and (y <= 1e-38)): tmp = (t / z) * (0.3333333333333333 / y) else: tmp = x + (y * (-0.3333333333333333 / z)) return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= -5e-58) tmp = Float64(x - Float64(0.3333333333333333 * Float64(y / z))); elseif ((y <= 3.2e-137) || (!(y <= 1.65e-75) && (y <= 1e-38))) tmp = Float64(Float64(t / z) * Float64(0.3333333333333333 / y)); else tmp = Float64(x + Float64(y * Float64(-0.3333333333333333 / z))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (y <= -5e-58) tmp = x - (0.3333333333333333 * (y / z)); elseif ((y <= 3.2e-137) || (~((y <= 1.65e-75)) && (y <= 1e-38))) tmp = (t / z) * (0.3333333333333333 / y); else tmp = x + (y * (-0.3333333333333333 / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, -5e-58], N[(x - N[(0.3333333333333333 * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[y, 3.2e-137], And[N[Not[LessEqual[y, 1.65e-75]], $MachinePrecision], LessEqual[y, 1e-38]]], N[(N[(t / z), $MachinePrecision] * N[(0.3333333333333333 / y), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(-0.3333333333333333 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -5 \cdot 10^{-58}:\\
\;\;\;\;x - 0.3333333333333333 \cdot \frac{y}{z}\\
\mathbf{elif}\;y \leq 3.2 \cdot 10^{-137} \lor \neg \left(y \leq 1.65 \cdot 10^{-75}\right) \land y \leq 10^{-38}:\\
\;\;\;\;\frac{t}{z} \cdot \frac{0.3333333333333333}{y}\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \frac{-0.3333333333333333}{z}\\
\end{array}
\end{array}
(FPCore (x y z t)
:precision binary64
(if (<= y -1.5e-58)
(- x (* 0.3333333333333333 (/ y z)))
(if (<= y 9.5e-138)
(* (/ t z) (/ 0.3333333333333333 y))
(if (or (<= y 2.2e-74) (not (<= y 1.05e-38)))
(+ x (* y (/ -0.3333333333333333 z)))
(/ (* t (/ 0.3333333333333333 y)) z)))))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -1.5e-58) {
tmp = x - (0.3333333333333333 * (y / z));
} else if (y <= 9.5e-138) {
tmp = (t / z) * (0.3333333333333333 / y);
} else if ((y <= 2.2e-74) || !(y <= 1.05e-38)) {
tmp = x + (y * (-0.3333333333333333 / z));
} else {
tmp = (t * (0.3333333333333333 / y)) / z;
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if (y <= (-1.5d-58)) then
tmp = x - (0.3333333333333333d0 * (y / z))
else if (y <= 9.5d-138) then
tmp = (t / z) * (0.3333333333333333d0 / y)
else if ((y <= 2.2d-74) .or. (.not. (y <= 1.05d-38))) then
tmp = x + (y * ((-0.3333333333333333d0) / z))
else
tmp = (t * (0.3333333333333333d0 / y)) / z
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (y <= -1.5e-58) {
tmp = x - (0.3333333333333333 * (y / z));
} else if (y <= 9.5e-138) {
tmp = (t / z) * (0.3333333333333333 / y);
} else if ((y <= 2.2e-74) || !(y <= 1.05e-38)) {
tmp = x + (y * (-0.3333333333333333 / z));
} else {
tmp = (t * (0.3333333333333333 / y)) / z;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= -1.5e-58: tmp = x - (0.3333333333333333 * (y / z)) elif y <= 9.5e-138: tmp = (t / z) * (0.3333333333333333 / y) elif (y <= 2.2e-74) or not (y <= 1.05e-38): tmp = x + (y * (-0.3333333333333333 / z)) else: tmp = (t * (0.3333333333333333 / y)) / z return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= -1.5e-58) tmp = Float64(x - Float64(0.3333333333333333 * Float64(y / z))); elseif (y <= 9.5e-138) tmp = Float64(Float64(t / z) * Float64(0.3333333333333333 / y)); elseif ((y <= 2.2e-74) || !(y <= 1.05e-38)) tmp = Float64(x + Float64(y * Float64(-0.3333333333333333 / z))); else tmp = Float64(Float64(t * Float64(0.3333333333333333 / y)) / z); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (y <= -1.5e-58) tmp = x - (0.3333333333333333 * (y / z)); elseif (y <= 9.5e-138) tmp = (t / z) * (0.3333333333333333 / y); elseif ((y <= 2.2e-74) || ~((y <= 1.05e-38))) tmp = x + (y * (-0.3333333333333333 / z)); else tmp = (t * (0.3333333333333333 / y)) / z; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, -1.5e-58], N[(x - N[(0.3333333333333333 * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 9.5e-138], N[(N[(t / z), $MachinePrecision] * N[(0.3333333333333333 / y), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[y, 2.2e-74], N[Not[LessEqual[y, 1.05e-38]], $MachinePrecision]], N[(x + N[(y * N[(-0.3333333333333333 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(t * N[(0.3333333333333333 / y), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.5 \cdot 10^{-58}:\\
\;\;\;\;x - 0.3333333333333333 \cdot \frac{y}{z}\\
\mathbf{elif}\;y \leq 9.5 \cdot 10^{-138}:\\
\;\;\;\;\frac{t}{z} \cdot \frac{0.3333333333333333}{y}\\
\mathbf{elif}\;y \leq 2.2 \cdot 10^{-74} \lor \neg \left(y \leq 1.05 \cdot 10^{-38}\right):\\
\;\;\;\;x + y \cdot \frac{-0.3333333333333333}{z}\\
\mathbf{else}:\\
\;\;\;\;\frac{t \cdot \frac{0.3333333333333333}{y}}{z}\\
\end{array}
\end{array}
(FPCore (x y z t) :precision binary64 (if (or (<= y -3.35e-18) (not (<= y 2e-70))) (+ x (* 0.3333333333333333 (/ (- (/ t y) y) z))) (+ x (/ 0.3333333333333333 (* y (/ z t))))))
double code(double x, double y, double z, double t) {
double tmp;
if ((y <= -3.35e-18) || !(y <= 2e-70)) {
tmp = x + (0.3333333333333333 * (((t / y) - y) / z));
} else {
tmp = x + (0.3333333333333333 / (y * (z / t)));
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if ((y <= (-3.35d-18)) .or. (.not. (y <= 2d-70))) then
tmp = x + (0.3333333333333333d0 * (((t / y) - y) / z))
else
tmp = x + (0.3333333333333333d0 / (y * (z / t)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((y <= -3.35e-18) || !(y <= 2e-70)) {
tmp = x + (0.3333333333333333 * (((t / y) - y) / z));
} else {
tmp = x + (0.3333333333333333 / (y * (z / t)));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (y <= -3.35e-18) or not (y <= 2e-70): tmp = x + (0.3333333333333333 * (((t / y) - y) / z)) else: tmp = x + (0.3333333333333333 / (y * (z / t))) return tmp
function code(x, y, z, t) tmp = 0.0 if ((y <= -3.35e-18) || !(y <= 2e-70)) tmp = Float64(x + Float64(0.3333333333333333 * Float64(Float64(Float64(t / y) - y) / z))); else tmp = Float64(x + Float64(0.3333333333333333 / Float64(y * Float64(z / t)))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((y <= -3.35e-18) || ~((y <= 2e-70))) tmp = x + (0.3333333333333333 * (((t / y) - y) / z)); else tmp = x + (0.3333333333333333 / (y * (z / t))); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[y, -3.35e-18], N[Not[LessEqual[y, 2e-70]], $MachinePrecision]], N[(x + N[(0.3333333333333333 * N[(N[(N[(t / y), $MachinePrecision] - y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(0.3333333333333333 / N[(y * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -3.35 \cdot 10^{-18} \lor \neg \left(y \leq 2 \cdot 10^{-70}\right):\\
\;\;\;\;x + 0.3333333333333333 \cdot \frac{\frac{t}{y} - y}{z}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{0.3333333333333333}{y \cdot \frac{z}{t}}\\
\end{array}
\end{array}
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (- (/ t y) y)))
(if (<= y -1.3e-21)
(+ x (* 0.3333333333333333 (/ t_1 z)))
(if (<= y 2e-70)
(+ x (/ 0.3333333333333333 (* y (/ z t))))
(+ x (* (/ 0.3333333333333333 z) t_1))))))
double code(double x, double y, double z, double t) {
double t_1 = (t / y) - y;
double tmp;
if (y <= -1.3e-21) {
tmp = x + (0.3333333333333333 * (t_1 / z));
} else if (y <= 2e-70) {
tmp = x + (0.3333333333333333 / (y * (z / t)));
} else {
tmp = x + ((0.3333333333333333 / z) * t_1);
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: t_1
real(8) :: tmp
t_1 = (t / y) - y
if (y <= (-1.3d-21)) then
tmp = x + (0.3333333333333333d0 * (t_1 / z))
else if (y <= 2d-70) then
tmp = x + (0.3333333333333333d0 / (y * (z / t)))
else
tmp = x + ((0.3333333333333333d0 / z) * t_1)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = (t / y) - y;
double tmp;
if (y <= -1.3e-21) {
tmp = x + (0.3333333333333333 * (t_1 / z));
} else if (y <= 2e-70) {
tmp = x + (0.3333333333333333 / (y * (z / t)));
} else {
tmp = x + ((0.3333333333333333 / z) * t_1);
}
return tmp;
}
def code(x, y, z, t): t_1 = (t / y) - y tmp = 0 if y <= -1.3e-21: tmp = x + (0.3333333333333333 * (t_1 / z)) elif y <= 2e-70: tmp = x + (0.3333333333333333 / (y * (z / t))) else: tmp = x + ((0.3333333333333333 / z) * t_1) return tmp
function code(x, y, z, t) t_1 = Float64(Float64(t / y) - y) tmp = 0.0 if (y <= -1.3e-21) tmp = Float64(x + Float64(0.3333333333333333 * Float64(t_1 / z))); elseif (y <= 2e-70) tmp = Float64(x + Float64(0.3333333333333333 / Float64(y * Float64(z / t)))); else tmp = Float64(x + Float64(Float64(0.3333333333333333 / z) * t_1)); end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = (t / y) - y; tmp = 0.0; if (y <= -1.3e-21) tmp = x + (0.3333333333333333 * (t_1 / z)); elseif (y <= 2e-70) tmp = x + (0.3333333333333333 / (y * (z / t))); else tmp = x + ((0.3333333333333333 / z) * t_1); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(t / y), $MachinePrecision] - y), $MachinePrecision]}, If[LessEqual[y, -1.3e-21], N[(x + N[(0.3333333333333333 * N[(t$95$1 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2e-70], N[(x + N[(0.3333333333333333 / N[(y * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(0.3333333333333333 / z), $MachinePrecision] * t$95$1), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{t}{y} - y\\
\mathbf{if}\;y \leq -1.3 \cdot 10^{-21}:\\
\;\;\;\;x + 0.3333333333333333 \cdot \frac{t_1}{z}\\
\mathbf{elif}\;y \leq 2 \cdot 10^{-70}:\\
\;\;\;\;x + \frac{0.3333333333333333}{y \cdot \frac{z}{t}}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{0.3333333333333333}{z} \cdot t_1\\
\end{array}
\end{array}
(FPCore (x y z t) :precision binary64 (if (or (<= x -1.22e+79) (not (<= x 9.2e-60))) (+ x (* y (/ -0.3333333333333333 z))) (* -0.3333333333333333 (/ (- y (/ t y)) z))))
double code(double x, double y, double z, double t) {
double tmp;
if ((x <= -1.22e+79) || !(x <= 9.2e-60)) {
tmp = x + (y * (-0.3333333333333333 / z));
} else {
tmp = -0.3333333333333333 * ((y - (t / y)) / z);
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if ((x <= (-1.22d+79)) .or. (.not. (x <= 9.2d-60))) then
tmp = x + (y * ((-0.3333333333333333d0) / z))
else
tmp = (-0.3333333333333333d0) * ((y - (t / y)) / z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((x <= -1.22e+79) || !(x <= 9.2e-60)) {
tmp = x + (y * (-0.3333333333333333 / z));
} else {
tmp = -0.3333333333333333 * ((y - (t / y)) / z);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (x <= -1.22e+79) or not (x <= 9.2e-60): tmp = x + (y * (-0.3333333333333333 / z)) else: tmp = -0.3333333333333333 * ((y - (t / y)) / z) return tmp
function code(x, y, z, t) tmp = 0.0 if ((x <= -1.22e+79) || !(x <= 9.2e-60)) tmp = Float64(x + Float64(y * Float64(-0.3333333333333333 / z))); else tmp = Float64(-0.3333333333333333 * Float64(Float64(y - Float64(t / y)) / z)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((x <= -1.22e+79) || ~((x <= 9.2e-60))) tmp = x + (y * (-0.3333333333333333 / z)); else tmp = -0.3333333333333333 * ((y - (t / y)) / z); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[x, -1.22e+79], N[Not[LessEqual[x, 9.2e-60]], $MachinePrecision]], N[(x + N[(y * N[(-0.3333333333333333 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(-0.3333333333333333 * N[(N[(y - N[(t / y), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.22 \cdot 10^{+79} \lor \neg \left(x \leq 9.2 \cdot 10^{-60}\right):\\
\;\;\;\;x + y \cdot \frac{-0.3333333333333333}{z}\\
\mathbf{else}:\\
\;\;\;\;-0.3333333333333333 \cdot \frac{y - \frac{t}{y}}{z}\\
\end{array}
\end{array}
(FPCore (x y z t)
:precision binary64
(if (<= y -4.2e+31)
(- x (* 0.3333333333333333 (/ y z)))
(if (<= y 2.35e-11)
(+ x (* 0.3333333333333333 (/ t (* z y))))
(+ x (* y (/ -0.3333333333333333 z))))))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -4.2e+31) {
tmp = x - (0.3333333333333333 * (y / z));
} else if (y <= 2.35e-11) {
tmp = x + (0.3333333333333333 * (t / (z * y)));
} else {
tmp = x + (y * (-0.3333333333333333 / z));
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if (y <= (-4.2d+31)) then
tmp = x - (0.3333333333333333d0 * (y / z))
else if (y <= 2.35d-11) then
tmp = x + (0.3333333333333333d0 * (t / (z * y)))
else
tmp = x + (y * ((-0.3333333333333333d0) / z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (y <= -4.2e+31) {
tmp = x - (0.3333333333333333 * (y / z));
} else if (y <= 2.35e-11) {
tmp = x + (0.3333333333333333 * (t / (z * y)));
} else {
tmp = x + (y * (-0.3333333333333333 / z));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= -4.2e+31: tmp = x - (0.3333333333333333 * (y / z)) elif y <= 2.35e-11: tmp = x + (0.3333333333333333 * (t / (z * y))) else: tmp = x + (y * (-0.3333333333333333 / z)) return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= -4.2e+31) tmp = Float64(x - Float64(0.3333333333333333 * Float64(y / z))); elseif (y <= 2.35e-11) tmp = Float64(x + Float64(0.3333333333333333 * Float64(t / Float64(z * y)))); else tmp = Float64(x + Float64(y * Float64(-0.3333333333333333 / z))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (y <= -4.2e+31) tmp = x - (0.3333333333333333 * (y / z)); elseif (y <= 2.35e-11) tmp = x + (0.3333333333333333 * (t / (z * y))); else tmp = x + (y * (-0.3333333333333333 / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, -4.2e+31], N[(x - N[(0.3333333333333333 * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.35e-11], N[(x + N[(0.3333333333333333 * N[(t / N[(z * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(-0.3333333333333333 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -4.2 \cdot 10^{+31}:\\
\;\;\;\;x - 0.3333333333333333 \cdot \frac{y}{z}\\
\mathbf{elif}\;y \leq 2.35 \cdot 10^{-11}:\\
\;\;\;\;x + 0.3333333333333333 \cdot \frac{t}{z \cdot y}\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \frac{-0.3333333333333333}{z}\\
\end{array}
\end{array}
(FPCore (x y z t)
:precision binary64
(if (<= y -7.6e+28)
(- x (* 0.3333333333333333 (/ y z)))
(if (<= y 5e-14)
(+ x (/ 0.3333333333333333 (* y (/ z t))))
(+ x (* y (/ -0.3333333333333333 z))))))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -7.6e+28) {
tmp = x - (0.3333333333333333 * (y / z));
} else if (y <= 5e-14) {
tmp = x + (0.3333333333333333 / (y * (z / t)));
} else {
tmp = x + (y * (-0.3333333333333333 / z));
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if (y <= (-7.6d+28)) then
tmp = x - (0.3333333333333333d0 * (y / z))
else if (y <= 5d-14) then
tmp = x + (0.3333333333333333d0 / (y * (z / t)))
else
tmp = x + (y * ((-0.3333333333333333d0) / z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (y <= -7.6e+28) {
tmp = x - (0.3333333333333333 * (y / z));
} else if (y <= 5e-14) {
tmp = x + (0.3333333333333333 / (y * (z / t)));
} else {
tmp = x + (y * (-0.3333333333333333 / z));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= -7.6e+28: tmp = x - (0.3333333333333333 * (y / z)) elif y <= 5e-14: tmp = x + (0.3333333333333333 / (y * (z / t))) else: tmp = x + (y * (-0.3333333333333333 / z)) return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= -7.6e+28) tmp = Float64(x - Float64(0.3333333333333333 * Float64(y / z))); elseif (y <= 5e-14) tmp = Float64(x + Float64(0.3333333333333333 / Float64(y * Float64(z / t)))); else tmp = Float64(x + Float64(y * Float64(-0.3333333333333333 / z))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (y <= -7.6e+28) tmp = x - (0.3333333333333333 * (y / z)); elseif (y <= 5e-14) tmp = x + (0.3333333333333333 / (y * (z / t))); else tmp = x + (y * (-0.3333333333333333 / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, -7.6e+28], N[(x - N[(0.3333333333333333 * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 5e-14], N[(x + N[(0.3333333333333333 / N[(y * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(-0.3333333333333333 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -7.6 \cdot 10^{+28}:\\
\;\;\;\;x - 0.3333333333333333 \cdot \frac{y}{z}\\
\mathbf{elif}\;y \leq 5 \cdot 10^{-14}:\\
\;\;\;\;x + \frac{0.3333333333333333}{y \cdot \frac{z}{t}}\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \frac{-0.3333333333333333}{z}\\
\end{array}
\end{array}
(FPCore (x y z t)
:precision binary64
(if (<= y -2.7e+27)
(+ x (/ 1.0 (/ (* z -3.0) y)))
(if (<= y 8.5e-14)
(+ x (/ 0.3333333333333333 (* y (/ z t))))
(+ x (* y (/ -0.3333333333333333 z))))))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -2.7e+27) {
tmp = x + (1.0 / ((z * -3.0) / y));
} else if (y <= 8.5e-14) {
tmp = x + (0.3333333333333333 / (y * (z / t)));
} else {
tmp = x + (y * (-0.3333333333333333 / z));
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if (y <= (-2.7d+27)) then
tmp = x + (1.0d0 / ((z * (-3.0d0)) / y))
else if (y <= 8.5d-14) then
tmp = x + (0.3333333333333333d0 / (y * (z / t)))
else
tmp = x + (y * ((-0.3333333333333333d0) / z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (y <= -2.7e+27) {
tmp = x + (1.0 / ((z * -3.0) / y));
} else if (y <= 8.5e-14) {
tmp = x + (0.3333333333333333 / (y * (z / t)));
} else {
tmp = x + (y * (-0.3333333333333333 / z));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= -2.7e+27: tmp = x + (1.0 / ((z * -3.0) / y)) elif y <= 8.5e-14: tmp = x + (0.3333333333333333 / (y * (z / t))) else: tmp = x + (y * (-0.3333333333333333 / z)) return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= -2.7e+27) tmp = Float64(x + Float64(1.0 / Float64(Float64(z * -3.0) / y))); elseif (y <= 8.5e-14) tmp = Float64(x + Float64(0.3333333333333333 / Float64(y * Float64(z / t)))); else tmp = Float64(x + Float64(y * Float64(-0.3333333333333333 / z))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (y <= -2.7e+27) tmp = x + (1.0 / ((z * -3.0) / y)); elseif (y <= 8.5e-14) tmp = x + (0.3333333333333333 / (y * (z / t))); else tmp = x + (y * (-0.3333333333333333 / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, -2.7e+27], N[(x + N[(1.0 / N[(N[(z * -3.0), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 8.5e-14], N[(x + N[(0.3333333333333333 / N[(y * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(-0.3333333333333333 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.7 \cdot 10^{+27}:\\
\;\;\;\;x + \frac{1}{\frac{z \cdot -3}{y}}\\
\mathbf{elif}\;y \leq 8.5 \cdot 10^{-14}:\\
\;\;\;\;x + \frac{0.3333333333333333}{y \cdot \frac{z}{t}}\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \frac{-0.3333333333333333}{z}\\
\end{array}
\end{array}
(FPCore (x y z t) :precision binary64 (if (<= x -1.3e+78) x (if (<= x 3.5e-12) (* -0.3333333333333333 (/ y z)) x)))
double code(double x, double y, double z, double t) {
double tmp;
if (x <= -1.3e+78) {
tmp = x;
} else if (x <= 3.5e-12) {
tmp = -0.3333333333333333 * (y / z);
} else {
tmp = x;
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if (x <= (-1.3d+78)) then
tmp = x
else if (x <= 3.5d-12) then
tmp = (-0.3333333333333333d0) * (y / z)
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (x <= -1.3e+78) {
tmp = x;
} else if (x <= 3.5e-12) {
tmp = -0.3333333333333333 * (y / z);
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if x <= -1.3e+78: tmp = x elif x <= 3.5e-12: tmp = -0.3333333333333333 * (y / z) else: tmp = x return tmp
function code(x, y, z, t) tmp = 0.0 if (x <= -1.3e+78) tmp = x; elseif (x <= 3.5e-12) tmp = Float64(-0.3333333333333333 * Float64(y / z)); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (x <= -1.3e+78) tmp = x; elseif (x <= 3.5e-12) tmp = -0.3333333333333333 * (y / z); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[x, -1.3e+78], x, If[LessEqual[x, 3.5e-12], N[(-0.3333333333333333 * N[(y / z), $MachinePrecision]), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.3 \cdot 10^{+78}:\\
\;\;\;\;x\\
\mathbf{elif}\;x \leq 3.5 \cdot 10^{-12}:\\
\;\;\;\;-0.3333333333333333 \cdot \frac{y}{z}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
(FPCore (x y z t) :precision binary64 (if (<= x -4.6e+82) x (if (<= x 2e-12) (/ -0.3333333333333333 (/ z y)) x)))
double code(double x, double y, double z, double t) {
double tmp;
if (x <= -4.6e+82) {
tmp = x;
} else if (x <= 2e-12) {
tmp = -0.3333333333333333 / (z / y);
} else {
tmp = x;
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if (x <= (-4.6d+82)) then
tmp = x
else if (x <= 2d-12) then
tmp = (-0.3333333333333333d0) / (z / y)
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (x <= -4.6e+82) {
tmp = x;
} else if (x <= 2e-12) {
tmp = -0.3333333333333333 / (z / y);
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if x <= -4.6e+82: tmp = x elif x <= 2e-12: tmp = -0.3333333333333333 / (z / y) else: tmp = x return tmp
function code(x, y, z, t) tmp = 0.0 if (x <= -4.6e+82) tmp = x; elseif (x <= 2e-12) tmp = Float64(-0.3333333333333333 / Float64(z / y)); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (x <= -4.6e+82) tmp = x; elseif (x <= 2e-12) tmp = -0.3333333333333333 / (z / y); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[x, -4.6e+82], x, If[LessEqual[x, 2e-12], N[(-0.3333333333333333 / N[(z / y), $MachinePrecision]), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -4.6 \cdot 10^{+82}:\\
\;\;\;\;x\\
\mathbf{elif}\;x \leq 2 \cdot 10^{-12}:\\
\;\;\;\;\frac{-0.3333333333333333}{\frac{z}{y}}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
(FPCore (x y z t) :precision binary64 (if (<= x -4.3e+83) x (if (<= x 3.8e-12) (/ (/ y z) -3.0) x)))
double code(double x, double y, double z, double t) {
double tmp;
if (x <= -4.3e+83) {
tmp = x;
} else if (x <= 3.8e-12) {
tmp = (y / z) / -3.0;
} else {
tmp = x;
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if (x <= (-4.3d+83)) then
tmp = x
else if (x <= 3.8d-12) then
tmp = (y / z) / (-3.0d0)
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (x <= -4.3e+83) {
tmp = x;
} else if (x <= 3.8e-12) {
tmp = (y / z) / -3.0;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if x <= -4.3e+83: tmp = x elif x <= 3.8e-12: tmp = (y / z) / -3.0 else: tmp = x return tmp
function code(x, y, z, t) tmp = 0.0 if (x <= -4.3e+83) tmp = x; elseif (x <= 3.8e-12) tmp = Float64(Float64(y / z) / -3.0); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (x <= -4.3e+83) tmp = x; elseif (x <= 3.8e-12) tmp = (y / z) / -3.0; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[x, -4.3e+83], x, If[LessEqual[x, 3.8e-12], N[(N[(y / z), $MachinePrecision] / -3.0), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -4.3 \cdot 10^{+83}:\\
\;\;\;\;x\\
\mathbf{elif}\;x \leq 3.8 \cdot 10^{-12}:\\
\;\;\;\;\frac{\frac{y}{z}}{-3}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
(FPCore (x y z t) :precision binary64 x)
double code(double x, double y, double z, double t) {
return x;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = x
end function
public static double code(double x, double y, double z, double t) {
return x;
}
def code(x, y, z, t): return x
function code(x, y, z, t) return x end
function tmp = code(x, y, z, t) tmp = x; end
code[x_, y_, z_, t_] := x
\begin{array}{l}
\\
x
\end{array}
(FPCore (x y z t) :precision binary64 (+ (- x (/ y (* z 3.0))) (/ (/ t (* z 3.0)) y)))
double code(double x, double y, double z, double t) {
return (x - (y / (z * 3.0))) + ((t / (z * 3.0)) / y);
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = (x - (y / (z * 3.0d0))) + ((t / (z * 3.0d0)) / y)
end function
public static double code(double x, double y, double z, double t) {
return (x - (y / (z * 3.0))) + ((t / (z * 3.0)) / y);
}
def code(x, y, z, t): return (x - (y / (z * 3.0))) + ((t / (z * 3.0)) / y)
function code(x, y, z, t) return Float64(Float64(x - Float64(y / Float64(z * 3.0))) + Float64(Float64(t / Float64(z * 3.0)) / y)) end
function tmp = code(x, y, z, t) tmp = (x - (y / (z * 3.0))) + ((t / (z * 3.0)) / y); end
code[x_, y_, z_, t_] := N[(N[(x - N[(y / N[(z * 3.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(t / N[(z * 3.0), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x - \frac{y}{z \cdot 3}\right) + \frac{\frac{t}{z \cdot 3}}{y}
\end{array}
herbie shell --seed 2023348
(FPCore (x y z t)
:name "Diagrams.Solve.Polynomial:cubForm from diagrams-solve-0.1, H"
:precision binary64
:herbie-target
(+ (- x (/ y (* z 3.0))) (/ (/ t (* z 3.0)) y))
(+ (- x (/ y (* z 3.0))) (/ t (* (* z 3.0) y))))