
(FPCore (x y z t a) :precision binary64 (+ x (/ (* y (- z t)) (- z a))))
double code(double x, double y, double z, double t, double a) {
return x + ((y * (z - t)) / (z - a));
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
code = x + ((y * (z - t)) / (z - a))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + ((y * (z - t)) / (z - a));
}
def code(x, y, z, t, a): return x + ((y * (z - t)) / (z - a))
function code(x, y, z, t, a) return Float64(x + Float64(Float64(y * Float64(z - t)) / Float64(z - a))) end
function tmp = code(x, y, z, t, a) tmp = x + ((y * (z - t)) / (z - a)); end
code[x_, y_, z_, t_, a_] := N[(x + N[(N[(y * N[(z - t), $MachinePrecision]), $MachinePrecision] / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{y \cdot \left(z - t\right)}{z - a}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 12 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a) :precision binary64 (+ x (/ (* y (- z t)) (- z a))))
double code(double x, double y, double z, double t, double a) {
return x + ((y * (z - t)) / (z - a));
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
code = x + ((y * (z - t)) / (z - a))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + ((y * (z - t)) / (z - a));
}
def code(x, y, z, t, a): return x + ((y * (z - t)) / (z - a))
function code(x, y, z, t, a) return Float64(x + Float64(Float64(y * Float64(z - t)) / Float64(z - a))) end
function tmp = code(x, y, z, t, a) tmp = x + ((y * (z - t)) / (z - a)); end
code[x_, y_, z_, t_, a_] := N[(x + N[(N[(y * N[(z - t), $MachinePrecision]), $MachinePrecision] / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{y \cdot \left(z - t\right)}{z - a}
\end{array}
(FPCore (x y z t a) :precision binary64 (+ x (* (/ (- z t) (- z a)) y)))
double code(double x, double y, double z, double t, double a) {
return x + (((z - t) / (z - a)) * y);
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
code = x + (((z - t) / (z - a)) * y)
end function
public static double code(double x, double y, double z, double t, double a) {
return x + (((z - t) / (z - a)) * y);
}
def code(x, y, z, t, a): return x + (((z - t) / (z - a)) * y)
function code(x, y, z, t, a) return Float64(x + Float64(Float64(Float64(z - t) / Float64(z - a)) * y)) end
function tmp = code(x, y, z, t, a) tmp = x + (((z - t) / (z - a)) * y); end
code[x_, y_, z_, t_, a_] := N[(x + N[(N[(N[(z - t), $MachinePrecision] / N[(z - a), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{z - t}{z - a} \cdot y
\end{array}
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* y (/ (- z t) z)))))
(if (<= z -3.4e-34)
t_1
(if (<= z -3.9e-67)
(+ x (* y (/ t a)))
(if (or (<= z -2e-105) (not (<= z 3.6e-27)))
t_1
(+ x (/ (* t y) a)))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + (y * ((z - t) / z));
double tmp;
if (z <= -3.4e-34) {
tmp = t_1;
} else if (z <= -3.9e-67) {
tmp = x + (y * (t / a));
} else if ((z <= -2e-105) || !(z <= 3.6e-27)) {
tmp = t_1;
} else {
tmp = x + ((t * y) / a);
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = x + (y * ((z - t) / z))
if (z <= (-3.4d-34)) then
tmp = t_1
else if (z <= (-3.9d-67)) then
tmp = x + (y * (t / a))
else if ((z <= (-2d-105)) .or. (.not. (z <= 3.6d-27))) then
tmp = t_1
else
tmp = x + ((t * y) / a)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x + (y * ((z - t) / z));
double tmp;
if (z <= -3.4e-34) {
tmp = t_1;
} else if (z <= -3.9e-67) {
tmp = x + (y * (t / a));
} else if ((z <= -2e-105) || !(z <= 3.6e-27)) {
tmp = t_1;
} else {
tmp = x + ((t * y) / a);
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + (y * ((z - t) / z)) tmp = 0 if z <= -3.4e-34: tmp = t_1 elif z <= -3.9e-67: tmp = x + (y * (t / a)) elif (z <= -2e-105) or not (z <= 3.6e-27): tmp = t_1 else: tmp = x + ((t * y) / a) return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(y * Float64(Float64(z - t) / z))) tmp = 0.0 if (z <= -3.4e-34) tmp = t_1; elseif (z <= -3.9e-67) tmp = Float64(x + Float64(y * Float64(t / a))); elseif ((z <= -2e-105) || !(z <= 3.6e-27)) tmp = t_1; else tmp = Float64(x + Float64(Float64(t * y) / a)); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + (y * ((z - t) / z)); tmp = 0.0; if (z <= -3.4e-34) tmp = t_1; elseif (z <= -3.9e-67) tmp = x + (y * (t / a)); elseif ((z <= -2e-105) || ~((z <= 3.6e-27))) tmp = t_1; else tmp = x + ((t * y) / a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(y * N[(N[(z - t), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -3.4e-34], t$95$1, If[LessEqual[z, -3.9e-67], N[(x + N[(y * N[(t / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[z, -2e-105], N[Not[LessEqual[z, 3.6e-27]], $MachinePrecision]], t$95$1, N[(x + N[(N[(t * y), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + y \cdot \frac{z - t}{z}\\
\mathbf{if}\;z \leq -3.4 \cdot 10^{-34}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq -3.9 \cdot 10^{-67}:\\
\;\;\;\;x + y \cdot \frac{t}{a}\\
\mathbf{elif}\;z \leq -2 \cdot 10^{-105} \lor \neg \left(z \leq 3.6 \cdot 10^{-27}\right):\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;x + \frac{t \cdot y}{a}\\
\end{array}
\end{array}
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (/ y (- 1.0 (/ a z))))))
(if (<= z -4.9e-14)
t_1
(if (<= z -3.6e-67)
(+ x (* y (/ t a)))
(if (<= z -1.9e-105)
(+ x (* (- z t) (/ y z)))
(if (<= z 8.5e-42) (+ x (/ (* t y) a)) t_1))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + (y / (1.0 - (a / z)));
double tmp;
if (z <= -4.9e-14) {
tmp = t_1;
} else if (z <= -3.6e-67) {
tmp = x + (y * (t / a));
} else if (z <= -1.9e-105) {
tmp = x + ((z - t) * (y / z));
} else if (z <= 8.5e-42) {
tmp = x + ((t * y) / a);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = x + (y / (1.0d0 - (a / z)))
if (z <= (-4.9d-14)) then
tmp = t_1
else if (z <= (-3.6d-67)) then
tmp = x + (y * (t / a))
else if (z <= (-1.9d-105)) then
tmp = x + ((z - t) * (y / z))
else if (z <= 8.5d-42) then
tmp = x + ((t * y) / a)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x + (y / (1.0 - (a / z)));
double tmp;
if (z <= -4.9e-14) {
tmp = t_1;
} else if (z <= -3.6e-67) {
tmp = x + (y * (t / a));
} else if (z <= -1.9e-105) {
tmp = x + ((z - t) * (y / z));
} else if (z <= 8.5e-42) {
tmp = x + ((t * y) / a);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + (y / (1.0 - (a / z))) tmp = 0 if z <= -4.9e-14: tmp = t_1 elif z <= -3.6e-67: tmp = x + (y * (t / a)) elif z <= -1.9e-105: tmp = x + ((z - t) * (y / z)) elif z <= 8.5e-42: tmp = x + ((t * y) / a) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(y / Float64(1.0 - Float64(a / z)))) tmp = 0.0 if (z <= -4.9e-14) tmp = t_1; elseif (z <= -3.6e-67) tmp = Float64(x + Float64(y * Float64(t / a))); elseif (z <= -1.9e-105) tmp = Float64(x + Float64(Float64(z - t) * Float64(y / z))); elseif (z <= 8.5e-42) tmp = Float64(x + Float64(Float64(t * y) / a)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + (y / (1.0 - (a / z))); tmp = 0.0; if (z <= -4.9e-14) tmp = t_1; elseif (z <= -3.6e-67) tmp = x + (y * (t / a)); elseif (z <= -1.9e-105) tmp = x + ((z - t) * (y / z)); elseif (z <= 8.5e-42) tmp = x + ((t * y) / a); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(y / N[(1.0 - N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -4.9e-14], t$95$1, If[LessEqual[z, -3.6e-67], N[(x + N[(y * N[(t / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -1.9e-105], N[(x + N[(N[(z - t), $MachinePrecision] * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 8.5e-42], N[(x + N[(N[(t * y), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \frac{y}{1 - \frac{a}{z}}\\
\mathbf{if}\;z \leq -4.9 \cdot 10^{-14}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq -3.6 \cdot 10^{-67}:\\
\;\;\;\;x + y \cdot \frac{t}{a}\\
\mathbf{elif}\;z \leq -1.9 \cdot 10^{-105}:\\
\;\;\;\;x + \left(z - t\right) \cdot \frac{y}{z}\\
\mathbf{elif}\;z \leq 8.5 \cdot 10^{-42}:\\
\;\;\;\;x + \frac{t \cdot y}{a}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
(FPCore (x y z t a)
:precision binary64
(if (<= z -2.6e-15)
(+ x (/ y (- 1.0 (/ a z))))
(if (<= z -4e-67)
(+ x (* y (/ t a)))
(if (<= z -1.85e-105)
(+ x (* (- z t) (/ y z)))
(if (<= z 5e-42) (+ x (/ (* t y) a)) (+ x (/ y (/ (- z a) z))))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -2.6e-15) {
tmp = x + (y / (1.0 - (a / z)));
} else if (z <= -4e-67) {
tmp = x + (y * (t / a));
} else if (z <= -1.85e-105) {
tmp = x + ((z - t) * (y / z));
} else if (z <= 5e-42) {
tmp = x + ((t * y) / a);
} else {
tmp = x + (y / ((z - a) / z));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (z <= (-2.6d-15)) then
tmp = x + (y / (1.0d0 - (a / z)))
else if (z <= (-4d-67)) then
tmp = x + (y * (t / a))
else if (z <= (-1.85d-105)) then
tmp = x + ((z - t) * (y / z))
else if (z <= 5d-42) then
tmp = x + ((t * y) / a)
else
tmp = x + (y / ((z - a) / z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -2.6e-15) {
tmp = x + (y / (1.0 - (a / z)));
} else if (z <= -4e-67) {
tmp = x + (y * (t / a));
} else if (z <= -1.85e-105) {
tmp = x + ((z - t) * (y / z));
} else if (z <= 5e-42) {
tmp = x + ((t * y) / a);
} else {
tmp = x + (y / ((z - a) / z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -2.6e-15: tmp = x + (y / (1.0 - (a / z))) elif z <= -4e-67: tmp = x + (y * (t / a)) elif z <= -1.85e-105: tmp = x + ((z - t) * (y / z)) elif z <= 5e-42: tmp = x + ((t * y) / a) else: tmp = x + (y / ((z - a) / z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -2.6e-15) tmp = Float64(x + Float64(y / Float64(1.0 - Float64(a / z)))); elseif (z <= -4e-67) tmp = Float64(x + Float64(y * Float64(t / a))); elseif (z <= -1.85e-105) tmp = Float64(x + Float64(Float64(z - t) * Float64(y / z))); elseif (z <= 5e-42) tmp = Float64(x + Float64(Float64(t * y) / a)); else tmp = Float64(x + Float64(y / Float64(Float64(z - a) / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -2.6e-15) tmp = x + (y / (1.0 - (a / z))); elseif (z <= -4e-67) tmp = x + (y * (t / a)); elseif (z <= -1.85e-105) tmp = x + ((z - t) * (y / z)); elseif (z <= 5e-42) tmp = x + ((t * y) / a); else tmp = x + (y / ((z - a) / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -2.6e-15], N[(x + N[(y / N[(1.0 - N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -4e-67], N[(x + N[(y * N[(t / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -1.85e-105], N[(x + N[(N[(z - t), $MachinePrecision] * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 5e-42], N[(x + N[(N[(t * y), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], N[(x + N[(y / N[(N[(z - a), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.6 \cdot 10^{-15}:\\
\;\;\;\;x + \frac{y}{1 - \frac{a}{z}}\\
\mathbf{elif}\;z \leq -4 \cdot 10^{-67}:\\
\;\;\;\;x + y \cdot \frac{t}{a}\\
\mathbf{elif}\;z \leq -1.85 \cdot 10^{-105}:\\
\;\;\;\;x + \left(z - t\right) \cdot \frac{y}{z}\\
\mathbf{elif}\;z \leq 5 \cdot 10^{-42}:\\
\;\;\;\;x + \frac{t \cdot y}{a}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y}{\frac{z - a}{z}}\\
\end{array}
\end{array}
(FPCore (x y z t a)
:precision binary64
(if (<= z -15.5)
(+ x y)
(if (<= z -3.7e-67)
(+ x (* y (/ t a)))
(if (<= z -1.35e-105)
(- x (* t (/ y z)))
(if (<= z 4.8e-27) (+ x (/ (* t y) a)) (+ x y))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -15.5) {
tmp = x + y;
} else if (z <= -3.7e-67) {
tmp = x + (y * (t / a));
} else if (z <= -1.35e-105) {
tmp = x - (t * (y / z));
} else if (z <= 4.8e-27) {
tmp = x + ((t * y) / a);
} else {
tmp = x + y;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (z <= (-15.5d0)) then
tmp = x + y
else if (z <= (-3.7d-67)) then
tmp = x + (y * (t / a))
else if (z <= (-1.35d-105)) then
tmp = x - (t * (y / z))
else if (z <= 4.8d-27) then
tmp = x + ((t * y) / a)
else
tmp = x + y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -15.5) {
tmp = x + y;
} else if (z <= -3.7e-67) {
tmp = x + (y * (t / a));
} else if (z <= -1.35e-105) {
tmp = x - (t * (y / z));
} else if (z <= 4.8e-27) {
tmp = x + ((t * y) / a);
} else {
tmp = x + y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -15.5: tmp = x + y elif z <= -3.7e-67: tmp = x + (y * (t / a)) elif z <= -1.35e-105: tmp = x - (t * (y / z)) elif z <= 4.8e-27: tmp = x + ((t * y) / a) else: tmp = x + y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -15.5) tmp = Float64(x + y); elseif (z <= -3.7e-67) tmp = Float64(x + Float64(y * Float64(t / a))); elseif (z <= -1.35e-105) tmp = Float64(x - Float64(t * Float64(y / z))); elseif (z <= 4.8e-27) tmp = Float64(x + Float64(Float64(t * y) / a)); else tmp = Float64(x + y); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -15.5) tmp = x + y; elseif (z <= -3.7e-67) tmp = x + (y * (t / a)); elseif (z <= -1.35e-105) tmp = x - (t * (y / z)); elseif (z <= 4.8e-27) tmp = x + ((t * y) / a); else tmp = x + y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -15.5], N[(x + y), $MachinePrecision], If[LessEqual[z, -3.7e-67], N[(x + N[(y * N[(t / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -1.35e-105], N[(x - N[(t * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4.8e-27], N[(x + N[(N[(t * y), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], N[(x + y), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -15.5:\\
\;\;\;\;x + y\\
\mathbf{elif}\;z \leq -3.7 \cdot 10^{-67}:\\
\;\;\;\;x + y \cdot \frac{t}{a}\\
\mathbf{elif}\;z \leq -1.35 \cdot 10^{-105}:\\
\;\;\;\;x - t \cdot \frac{y}{z}\\
\mathbf{elif}\;z \leq 4.8 \cdot 10^{-27}:\\
\;\;\;\;x + \frac{t \cdot y}{a}\\
\mathbf{else}:\\
\;\;\;\;x + y\\
\end{array}
\end{array}
(FPCore (x y z t a) :precision binary64 (if (or (<= z -2.6e-14) (not (<= z 7.2e-43))) (+ x (/ y (- 1.0 (/ a z)))) (+ x (/ (* t y) a))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -2.6e-14) || !(z <= 7.2e-43)) {
tmp = x + (y / (1.0 - (a / z)));
} else {
tmp = x + ((t * y) / a);
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((z <= (-2.6d-14)) .or. (.not. (z <= 7.2d-43))) then
tmp = x + (y / (1.0d0 - (a / z)))
else
tmp = x + ((t * y) / a)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -2.6e-14) || !(z <= 7.2e-43)) {
tmp = x + (y / (1.0 - (a / z)));
} else {
tmp = x + ((t * y) / a);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -2.6e-14) or not (z <= 7.2e-43): tmp = x + (y / (1.0 - (a / z))) else: tmp = x + ((t * y) / a) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -2.6e-14) || !(z <= 7.2e-43)) tmp = Float64(x + Float64(y / Float64(1.0 - Float64(a / z)))); else tmp = Float64(x + Float64(Float64(t * y) / a)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((z <= -2.6e-14) || ~((z <= 7.2e-43))) tmp = x + (y / (1.0 - (a / z))); else tmp = x + ((t * y) / a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -2.6e-14], N[Not[LessEqual[z, 7.2e-43]], $MachinePrecision]], N[(x + N[(y / N[(1.0 - N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(t * y), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.6 \cdot 10^{-14} \lor \neg \left(z \leq 7.2 \cdot 10^{-43}\right):\\
\;\;\;\;x + \frac{y}{1 - \frac{a}{z}}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{t \cdot y}{a}\\
\end{array}
\end{array}
(FPCore (x y z t a) :precision binary64 (if (<= z -7.8e-33) (+ x (* z (/ y (- z a)))) (if (<= z 2.6e-42) (+ x (* (/ y a) (- t z))) (+ x (/ y (/ (- z a) z))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -7.8e-33) {
tmp = x + (z * (y / (z - a)));
} else if (z <= 2.6e-42) {
tmp = x + ((y / a) * (t - z));
} else {
tmp = x + (y / ((z - a) / z));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (z <= (-7.8d-33)) then
tmp = x + (z * (y / (z - a)))
else if (z <= 2.6d-42) then
tmp = x + ((y / a) * (t - z))
else
tmp = x + (y / ((z - a) / z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -7.8e-33) {
tmp = x + (z * (y / (z - a)));
} else if (z <= 2.6e-42) {
tmp = x + ((y / a) * (t - z));
} else {
tmp = x + (y / ((z - a) / z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -7.8e-33: tmp = x + (z * (y / (z - a))) elif z <= 2.6e-42: tmp = x + ((y / a) * (t - z)) else: tmp = x + (y / ((z - a) / z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -7.8e-33) tmp = Float64(x + Float64(z * Float64(y / Float64(z - a)))); elseif (z <= 2.6e-42) tmp = Float64(x + Float64(Float64(y / a) * Float64(t - z))); else tmp = Float64(x + Float64(y / Float64(Float64(z - a) / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -7.8e-33) tmp = x + (z * (y / (z - a))); elseif (z <= 2.6e-42) tmp = x + ((y / a) * (t - z)); else tmp = x + (y / ((z - a) / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -7.8e-33], N[(x + N[(z * N[(y / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.6e-42], N[(x + N[(N[(y / a), $MachinePrecision] * N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y / N[(N[(z - a), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -7.8 \cdot 10^{-33}:\\
\;\;\;\;x + z \cdot \frac{y}{z - a}\\
\mathbf{elif}\;z \leq 2.6 \cdot 10^{-42}:\\
\;\;\;\;x + \frac{y}{a} \cdot \left(t - z\right)\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y}{\frac{z - a}{z}}\\
\end{array}
\end{array}
(FPCore (x y z t a) :precision binary64 (if (or (<= z -5800000.0) (not (<= z 4.7e-27))) (+ x y) (+ x (/ (* t y) a))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -5800000.0) || !(z <= 4.7e-27)) {
tmp = x + y;
} else {
tmp = x + ((t * y) / a);
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((z <= (-5800000.0d0)) .or. (.not. (z <= 4.7d-27))) then
tmp = x + y
else
tmp = x + ((t * y) / a)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -5800000.0) || !(z <= 4.7e-27)) {
tmp = x + y;
} else {
tmp = x + ((t * y) / a);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -5800000.0) or not (z <= 4.7e-27): tmp = x + y else: tmp = x + ((t * y) / a) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -5800000.0) || !(z <= 4.7e-27)) tmp = Float64(x + y); else tmp = Float64(x + Float64(Float64(t * y) / a)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((z <= -5800000.0) || ~((z <= 4.7e-27))) tmp = x + y; else tmp = x + ((t * y) / a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -5800000.0], N[Not[LessEqual[z, 4.7e-27]], $MachinePrecision]], N[(x + y), $MachinePrecision], N[(x + N[(N[(t * y), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -5800000 \lor \neg \left(z \leq 4.7 \cdot 10^{-27}\right):\\
\;\;\;\;x + y\\
\mathbf{else}:\\
\;\;\;\;x + \frac{t \cdot y}{a}\\
\end{array}
\end{array}
(FPCore (x y z t a) :precision binary64 (if (or (<= z -30.0) (not (<= z 6.6e-27))) (+ x y) (+ x (* y (/ t a)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -30.0) || !(z <= 6.6e-27)) {
tmp = x + y;
} else {
tmp = x + (y * (t / a));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((z <= (-30.0d0)) .or. (.not. (z <= 6.6d-27))) then
tmp = x + y
else
tmp = x + (y * (t / a))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -30.0) || !(z <= 6.6e-27)) {
tmp = x + y;
} else {
tmp = x + (y * (t / a));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -30.0) or not (z <= 6.6e-27): tmp = x + y else: tmp = x + (y * (t / a)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -30.0) || !(z <= 6.6e-27)) tmp = Float64(x + y); else tmp = Float64(x + Float64(y * Float64(t / a))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((z <= -30.0) || ~((z <= 6.6e-27))) tmp = x + y; else tmp = x + (y * (t / a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -30.0], N[Not[LessEqual[z, 6.6e-27]], $MachinePrecision]], N[(x + y), $MachinePrecision], N[(x + N[(y * N[(t / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -30 \lor \neg \left(z \leq 6.6 \cdot 10^{-27}\right):\\
\;\;\;\;x + y\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \frac{t}{a}\\
\end{array}
\end{array}
(FPCore (x y z t a) :precision binary64 (if (<= x -4.5e-55) x (if (<= x 5e-154) y (if (<= x 3.1e-19) x (if (<= x 1e-12) y x)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (x <= -4.5e-55) {
tmp = x;
} else if (x <= 5e-154) {
tmp = y;
} else if (x <= 3.1e-19) {
tmp = x;
} else if (x <= 1e-12) {
tmp = y;
} else {
tmp = 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 (x <= (-4.5d-55)) then
tmp = x
else if (x <= 5d-154) then
tmp = y
else if (x <= 3.1d-19) then
tmp = x
else if (x <= 1d-12) then
tmp = y
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (x <= -4.5e-55) {
tmp = x;
} else if (x <= 5e-154) {
tmp = y;
} else if (x <= 3.1e-19) {
tmp = x;
} else if (x <= 1e-12) {
tmp = y;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if x <= -4.5e-55: tmp = x elif x <= 5e-154: tmp = y elif x <= 3.1e-19: tmp = x elif x <= 1e-12: tmp = y else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (x <= -4.5e-55) tmp = x; elseif (x <= 5e-154) tmp = y; elseif (x <= 3.1e-19) tmp = x; elseif (x <= 1e-12) tmp = y; else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (x <= -4.5e-55) tmp = x; elseif (x <= 5e-154) tmp = y; elseif (x <= 3.1e-19) tmp = x; elseif (x <= 1e-12) tmp = y; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[x, -4.5e-55], x, If[LessEqual[x, 5e-154], y, If[LessEqual[x, 3.1e-19], x, If[LessEqual[x, 1e-12], y, x]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -4.5 \cdot 10^{-55}:\\
\;\;\;\;x\\
\mathbf{elif}\;x \leq 5 \cdot 10^{-154}:\\
\;\;\;\;y\\
\mathbf{elif}\;x \leq 3.1 \cdot 10^{-19}:\\
\;\;\;\;x\\
\mathbf{elif}\;x \leq 10^{-12}:\\
\;\;\;\;y\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
(FPCore (x y z t a) :precision binary64 (if (<= a 1.26e+113) (+ x y) x))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= 1.26e+113) {
tmp = x + y;
} else {
tmp = 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 (a <= 1.26d+113) then
tmp = x + y
else
tmp = x
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.26e+113) {
tmp = x + y;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= 1.26e+113: tmp = x + y else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= 1.26e+113) tmp = Float64(x + y); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= 1.26e+113) tmp = x + y; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, 1.26e+113], N[(x + y), $MachinePrecision], x]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq 1.26 \cdot 10^{+113}:\\
\;\;\;\;x + y\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
(FPCore (x y z t a) :precision binary64 x)
double code(double x, double y, double z, double t, double a) {
return x;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
code = x
end function
public static double code(double x, double y, double z, double t, double a) {
return x;
}
def code(x, y, z, t, a): return x
function code(x, y, z, t, a) return x end
function tmp = code(x, y, z, t, a) tmp = x; end
code[x_, y_, z_, t_, a_] := x
\begin{array}{l}
\\
x
\end{array}
(FPCore (x y z t a) :precision binary64 (+ x (/ y (/ (- z a) (- z t)))))
double code(double x, double y, double z, double t, double a) {
return x + (y / ((z - a) / (z - t)));
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
code = x + (y / ((z - a) / (z - t)))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + (y / ((z - a) / (z - t)));
}
def code(x, y, z, t, a): return x + (y / ((z - a) / (z - t)))
function code(x, y, z, t, a) return Float64(x + Float64(y / Float64(Float64(z - a) / Float64(z - t)))) end
function tmp = code(x, y, z, t, a) tmp = x + (y / ((z - a) / (z - t))); end
code[x_, y_, z_, t_, a_] := N[(x + N[(y / N[(N[(z - a), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{y}{\frac{z - a}{z - t}}
\end{array}
herbie shell --seed 2024008
(FPCore (x y z t a)
:name "Graphics.Rendering.Plot.Render.Plot.Axis:renderAxisTicks from plot-0.2.3.4, A"
:precision binary64
:herbie-target
(+ x (/ y (/ (- z a) (- z t))))
(+ x (/ (* y (- z t)) (- z a))))