
(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 13 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 (* z (/ y a)))))
(if (<= z -2.8e+132)
(+ x y)
(if (<= z -1.28e-17)
(+ x (/ t (/ a y)))
(if (<= z -6.2e-138)
t_1
(if (<= z 4.2e-68)
(+ x (* y (/ t a)))
(if (<= z 0.00049)
t_1
(if (<= z 1.25e+103) (- x (* t (/ y z))) (+ x y)))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x - (z * (y / a));
double tmp;
if (z <= -2.8e+132) {
tmp = x + y;
} else if (z <= -1.28e-17) {
tmp = x + (t / (a / y));
} else if (z <= -6.2e-138) {
tmp = t_1;
} else if (z <= 4.2e-68) {
tmp = x + (y * (t / a));
} else if (z <= 0.00049) {
tmp = t_1;
} else if (z <= 1.25e+103) {
tmp = x - (t * (y / z));
} 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) :: t_1
real(8) :: tmp
t_1 = x - (z * (y / a))
if (z <= (-2.8d+132)) then
tmp = x + y
else if (z <= (-1.28d-17)) then
tmp = x + (t / (a / y))
else if (z <= (-6.2d-138)) then
tmp = t_1
else if (z <= 4.2d-68) then
tmp = x + (y * (t / a))
else if (z <= 0.00049d0) then
tmp = t_1
else if (z <= 1.25d+103) then
tmp = x - (t * (y / z))
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 t_1 = x - (z * (y / a));
double tmp;
if (z <= -2.8e+132) {
tmp = x + y;
} else if (z <= -1.28e-17) {
tmp = x + (t / (a / y));
} else if (z <= -6.2e-138) {
tmp = t_1;
} else if (z <= 4.2e-68) {
tmp = x + (y * (t / a));
} else if (z <= 0.00049) {
tmp = t_1;
} else if (z <= 1.25e+103) {
tmp = x - (t * (y / z));
} else {
tmp = x + y;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x - (z * (y / a)) tmp = 0 if z <= -2.8e+132: tmp = x + y elif z <= -1.28e-17: tmp = x + (t / (a / y)) elif z <= -6.2e-138: tmp = t_1 elif z <= 4.2e-68: tmp = x + (y * (t / a)) elif z <= 0.00049: tmp = t_1 elif z <= 1.25e+103: tmp = x - (t * (y / z)) else: tmp = x + y return tmp
function code(x, y, z, t, a) t_1 = Float64(x - Float64(z * Float64(y / a))) tmp = 0.0 if (z <= -2.8e+132) tmp = Float64(x + y); elseif (z <= -1.28e-17) tmp = Float64(x + Float64(t / Float64(a / y))); elseif (z <= -6.2e-138) tmp = t_1; elseif (z <= 4.2e-68) tmp = Float64(x + Float64(y * Float64(t / a))); elseif (z <= 0.00049) tmp = t_1; elseif (z <= 1.25e+103) tmp = Float64(x - Float64(t * Float64(y / z))); else tmp = Float64(x + y); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x - (z * (y / a)); tmp = 0.0; if (z <= -2.8e+132) tmp = x + y; elseif (z <= -1.28e-17) tmp = x + (t / (a / y)); elseif (z <= -6.2e-138) tmp = t_1; elseif (z <= 4.2e-68) tmp = x + (y * (t / a)); elseif (z <= 0.00049) tmp = t_1; elseif (z <= 1.25e+103) tmp = x - (t * (y / z)); else tmp = x + y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x - N[(z * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2.8e+132], N[(x + y), $MachinePrecision], If[LessEqual[z, -1.28e-17], N[(x + N[(t / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -6.2e-138], t$95$1, If[LessEqual[z, 4.2e-68], N[(x + N[(y * N[(t / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 0.00049], t$95$1, If[LessEqual[z, 1.25e+103], N[(x - N[(t * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + y), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x - z \cdot \frac{y}{a}\\
\mathbf{if}\;z \leq -2.8 \cdot 10^{+132}:\\
\;\;\;\;x + y\\
\mathbf{elif}\;z \leq -1.28 \cdot 10^{-17}:\\
\;\;\;\;x + \frac{t}{\frac{a}{y}}\\
\mathbf{elif}\;z \leq -6.2 \cdot 10^{-138}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 4.2 \cdot 10^{-68}:\\
\;\;\;\;x + y \cdot \frac{t}{a}\\
\mathbf{elif}\;z \leq 0.00049:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 1.25 \cdot 10^{+103}:\\
\;\;\;\;x - t \cdot \frac{y}{z}\\
\mathbf{else}:\\
\;\;\;\;x + y\\
\end{array}
\end{array}
(FPCore (x y z t a)
:precision binary64
(if (<= z -2.8e+132)
(+ x y)
(if (<= z -5.4e-17)
(+ x (/ t (/ a y)))
(if (<= z -3.1e-136)
(- x (* z (/ y a)))
(if (<= z 6.4e-68)
(+ x (* y (/ t a)))
(if (<= z 52000.0)
(- x (/ (* z y) a))
(if (<= z 1.2e+105) (- x (* t (/ y z))) (+ x y))))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -2.8e+132) {
tmp = x + y;
} else if (z <= -5.4e-17) {
tmp = x + (t / (a / y));
} else if (z <= -3.1e-136) {
tmp = x - (z * (y / a));
} else if (z <= 6.4e-68) {
tmp = x + (y * (t / a));
} else if (z <= 52000.0) {
tmp = x - ((z * y) / a);
} else if (z <= 1.2e+105) {
tmp = x - (t * (y / z));
} 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 <= (-2.8d+132)) then
tmp = x + y
else if (z <= (-5.4d-17)) then
tmp = x + (t / (a / y))
else if (z <= (-3.1d-136)) then
tmp = x - (z * (y / a))
else if (z <= 6.4d-68) then
tmp = x + (y * (t / a))
else if (z <= 52000.0d0) then
tmp = x - ((z * y) / a)
else if (z <= 1.2d+105) then
tmp = x - (t * (y / z))
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 <= -2.8e+132) {
tmp = x + y;
} else if (z <= -5.4e-17) {
tmp = x + (t / (a / y));
} else if (z <= -3.1e-136) {
tmp = x - (z * (y / a));
} else if (z <= 6.4e-68) {
tmp = x + (y * (t / a));
} else if (z <= 52000.0) {
tmp = x - ((z * y) / a);
} else if (z <= 1.2e+105) {
tmp = x - (t * (y / z));
} else {
tmp = x + y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -2.8e+132: tmp = x + y elif z <= -5.4e-17: tmp = x + (t / (a / y)) elif z <= -3.1e-136: tmp = x - (z * (y / a)) elif z <= 6.4e-68: tmp = x + (y * (t / a)) elif z <= 52000.0: tmp = x - ((z * y) / a) elif z <= 1.2e+105: tmp = x - (t * (y / z)) else: tmp = x + y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -2.8e+132) tmp = Float64(x + y); elseif (z <= -5.4e-17) tmp = Float64(x + Float64(t / Float64(a / y))); elseif (z <= -3.1e-136) tmp = Float64(x - Float64(z * Float64(y / a))); elseif (z <= 6.4e-68) tmp = Float64(x + Float64(y * Float64(t / a))); elseif (z <= 52000.0) tmp = Float64(x - Float64(Float64(z * y) / a)); elseif (z <= 1.2e+105) tmp = Float64(x - Float64(t * Float64(y / z))); else tmp = Float64(x + y); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -2.8e+132) tmp = x + y; elseif (z <= -5.4e-17) tmp = x + (t / (a / y)); elseif (z <= -3.1e-136) tmp = x - (z * (y / a)); elseif (z <= 6.4e-68) tmp = x + (y * (t / a)); elseif (z <= 52000.0) tmp = x - ((z * y) / a); elseif (z <= 1.2e+105) tmp = x - (t * (y / z)); else tmp = x + y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -2.8e+132], N[(x + y), $MachinePrecision], If[LessEqual[z, -5.4e-17], N[(x + N[(t / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -3.1e-136], N[(x - N[(z * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 6.4e-68], N[(x + N[(y * N[(t / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 52000.0], N[(x - N[(N[(z * y), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.2e+105], N[(x - N[(t * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + y), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.8 \cdot 10^{+132}:\\
\;\;\;\;x + y\\
\mathbf{elif}\;z \leq -5.4 \cdot 10^{-17}:\\
\;\;\;\;x + \frac{t}{\frac{a}{y}}\\
\mathbf{elif}\;z \leq -3.1 \cdot 10^{-136}:\\
\;\;\;\;x - z \cdot \frac{y}{a}\\
\mathbf{elif}\;z \leq 6.4 \cdot 10^{-68}:\\
\;\;\;\;x + y \cdot \frac{t}{a}\\
\mathbf{elif}\;z \leq 52000:\\
\;\;\;\;x - \frac{z \cdot y}{a}\\
\mathbf{elif}\;z \leq 1.2 \cdot 10^{+105}:\\
\;\;\;\;x - t \cdot \frac{y}{z}\\
\mathbf{else}:\\
\;\;\;\;x + y\\
\end{array}
\end{array}
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (- x (* t (/ y z)))))
(if (<= a -9e+69)
(+ x (/ t (/ a y)))
(if (<= a -4.7e-259)
(+ x y)
(if (<= a 2e-137)
t_1
(if (<= a 6.8e-74)
(+ x y)
(if (<= a 6.8e-40) t_1 (+ x (* y (/ t a))))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x - (t * (y / z));
double tmp;
if (a <= -9e+69) {
tmp = x + (t / (a / y));
} else if (a <= -4.7e-259) {
tmp = x + y;
} else if (a <= 2e-137) {
tmp = t_1;
} else if (a <= 6.8e-74) {
tmp = x + y;
} else if (a <= 6.8e-40) {
tmp = t_1;
} 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) :: t_1
real(8) :: tmp
t_1 = x - (t * (y / z))
if (a <= (-9d+69)) then
tmp = x + (t / (a / y))
else if (a <= (-4.7d-259)) then
tmp = x + y
else if (a <= 2d-137) then
tmp = t_1
else if (a <= 6.8d-74) then
tmp = x + y
else if (a <= 6.8d-40) then
tmp = t_1
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 t_1 = x - (t * (y / z));
double tmp;
if (a <= -9e+69) {
tmp = x + (t / (a / y));
} else if (a <= -4.7e-259) {
tmp = x + y;
} else if (a <= 2e-137) {
tmp = t_1;
} else if (a <= 6.8e-74) {
tmp = x + y;
} else if (a <= 6.8e-40) {
tmp = t_1;
} else {
tmp = x + (y * (t / a));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x - (t * (y / z)) tmp = 0 if a <= -9e+69: tmp = x + (t / (a / y)) elif a <= -4.7e-259: tmp = x + y elif a <= 2e-137: tmp = t_1 elif a <= 6.8e-74: tmp = x + y elif a <= 6.8e-40: tmp = t_1 else: tmp = x + (y * (t / a)) return tmp
function code(x, y, z, t, a) t_1 = Float64(x - Float64(t * Float64(y / z))) tmp = 0.0 if (a <= -9e+69) tmp = Float64(x + Float64(t / Float64(a / y))); elseif (a <= -4.7e-259) tmp = Float64(x + y); elseif (a <= 2e-137) tmp = t_1; elseif (a <= 6.8e-74) tmp = Float64(x + y); elseif (a <= 6.8e-40) tmp = t_1; else tmp = Float64(x + Float64(y * Float64(t / a))); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x - (t * (y / z)); tmp = 0.0; if (a <= -9e+69) tmp = x + (t / (a / y)); elseif (a <= -4.7e-259) tmp = x + y; elseif (a <= 2e-137) tmp = t_1; elseif (a <= 6.8e-74) tmp = x + y; elseif (a <= 6.8e-40) tmp = t_1; else tmp = x + (y * (t / a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x - N[(t * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -9e+69], N[(x + N[(t / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -4.7e-259], N[(x + y), $MachinePrecision], If[LessEqual[a, 2e-137], t$95$1, If[LessEqual[a, 6.8e-74], N[(x + y), $MachinePrecision], If[LessEqual[a, 6.8e-40], t$95$1, N[(x + N[(y * N[(t / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x - t \cdot \frac{y}{z}\\
\mathbf{if}\;a \leq -9 \cdot 10^{+69}:\\
\;\;\;\;x + \frac{t}{\frac{a}{y}}\\
\mathbf{elif}\;a \leq -4.7 \cdot 10^{-259}:\\
\;\;\;\;x + y\\
\mathbf{elif}\;a \leq 2 \cdot 10^{-137}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 6.8 \cdot 10^{-74}:\\
\;\;\;\;x + y\\
\mathbf{elif}\;a \leq 6.8 \cdot 10^{-40}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \frac{t}{a}\\
\end{array}
\end{array}
(FPCore (x y z t a)
:precision binary64
(if (<= a -5e+68)
(+ x (/ t (/ a y)))
(if (<= a -4.8e-231)
(+ x y)
(if (<= a 1e-178)
(- x (/ (* t y) z))
(if (<= a 4.4e-23) (* (/ (- z t) (- z a)) y) (+ x (* y (/ t a))))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -5e+68) {
tmp = x + (t / (a / y));
} else if (a <= -4.8e-231) {
tmp = x + y;
} else if (a <= 1e-178) {
tmp = x - ((t * y) / z);
} else if (a <= 4.4e-23) {
tmp = ((z - t) / (z - a)) * 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 (a <= (-5d+68)) then
tmp = x + (t / (a / y))
else if (a <= (-4.8d-231)) then
tmp = x + y
else if (a <= 1d-178) then
tmp = x - ((t * y) / z)
else if (a <= 4.4d-23) then
tmp = ((z - t) / (z - a)) * 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 (a <= -5e+68) {
tmp = x + (t / (a / y));
} else if (a <= -4.8e-231) {
tmp = x + y;
} else if (a <= 1e-178) {
tmp = x - ((t * y) / z);
} else if (a <= 4.4e-23) {
tmp = ((z - t) / (z - a)) * y;
} else {
tmp = x + (y * (t / a));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -5e+68: tmp = x + (t / (a / y)) elif a <= -4.8e-231: tmp = x + y elif a <= 1e-178: tmp = x - ((t * y) / z) elif a <= 4.4e-23: tmp = ((z - t) / (z - a)) * y else: tmp = x + (y * (t / a)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -5e+68) tmp = Float64(x + Float64(t / Float64(a / y))); elseif (a <= -4.8e-231) tmp = Float64(x + y); elseif (a <= 1e-178) tmp = Float64(x - Float64(Float64(t * y) / z)); elseif (a <= 4.4e-23) tmp = Float64(Float64(Float64(z - t) / Float64(z - a)) * 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 (a <= -5e+68) tmp = x + (t / (a / y)); elseif (a <= -4.8e-231) tmp = x + y; elseif (a <= 1e-178) tmp = x - ((t * y) / z); elseif (a <= 4.4e-23) tmp = ((z - t) / (z - a)) * y; else tmp = x + (y * (t / a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -5e+68], N[(x + N[(t / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -4.8e-231], N[(x + y), $MachinePrecision], If[LessEqual[a, 1e-178], N[(x - N[(N[(t * y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 4.4e-23], N[(N[(N[(z - t), $MachinePrecision] / N[(z - a), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision], N[(x + N[(y * N[(t / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -5 \cdot 10^{+68}:\\
\;\;\;\;x + \frac{t}{\frac{a}{y}}\\
\mathbf{elif}\;a \leq -4.8 \cdot 10^{-231}:\\
\;\;\;\;x + y\\
\mathbf{elif}\;a \leq 10^{-178}:\\
\;\;\;\;x - \frac{t \cdot y}{z}\\
\mathbf{elif}\;a \leq 4.4 \cdot 10^{-23}:\\
\;\;\;\;\frac{z - t}{z - a} \cdot y\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \frac{t}{a}\\
\end{array}
\end{array}
(FPCore (x y z t a)
:precision binary64
(if (<= a -2.6e+68)
(+ x (/ t (/ a y)))
(if (<= a -8e-232)
(+ x y)
(if (<= a 1.2e-178)
(- x (/ (* t y) z))
(if (<= a 3.2e-23)
(* (/ (- z t) (- z a)) y)
(- x (/ y (/ (- a) t))))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -2.6e+68) {
tmp = x + (t / (a / y));
} else if (a <= -8e-232) {
tmp = x + y;
} else if (a <= 1.2e-178) {
tmp = x - ((t * y) / z);
} else if (a <= 3.2e-23) {
tmp = ((z - t) / (z - a)) * y;
} else {
tmp = x - (y / (-a / 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 <= (-2.6d+68)) then
tmp = x + (t / (a / y))
else if (a <= (-8d-232)) then
tmp = x + y
else if (a <= 1.2d-178) then
tmp = x - ((t * y) / z)
else if (a <= 3.2d-23) then
tmp = ((z - t) / (z - a)) * y
else
tmp = x - (y / (-a / 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 <= -2.6e+68) {
tmp = x + (t / (a / y));
} else if (a <= -8e-232) {
tmp = x + y;
} else if (a <= 1.2e-178) {
tmp = x - ((t * y) / z);
} else if (a <= 3.2e-23) {
tmp = ((z - t) / (z - a)) * y;
} else {
tmp = x - (y / (-a / t));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -2.6e+68: tmp = x + (t / (a / y)) elif a <= -8e-232: tmp = x + y elif a <= 1.2e-178: tmp = x - ((t * y) / z) elif a <= 3.2e-23: tmp = ((z - t) / (z - a)) * y else: tmp = x - (y / (-a / t)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -2.6e+68) tmp = Float64(x + Float64(t / Float64(a / y))); elseif (a <= -8e-232) tmp = Float64(x + y); elseif (a <= 1.2e-178) tmp = Float64(x - Float64(Float64(t * y) / z)); elseif (a <= 3.2e-23) tmp = Float64(Float64(Float64(z - t) / Float64(z - a)) * y); else tmp = Float64(x - Float64(y / Float64(Float64(-a) / t))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -2.6e+68) tmp = x + (t / (a / y)); elseif (a <= -8e-232) tmp = x + y; elseif (a <= 1.2e-178) tmp = x - ((t * y) / z); elseif (a <= 3.2e-23) tmp = ((z - t) / (z - a)) * y; else tmp = x - (y / (-a / t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -2.6e+68], N[(x + N[(t / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -8e-232], N[(x + y), $MachinePrecision], If[LessEqual[a, 1.2e-178], N[(x - N[(N[(t * y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 3.2e-23], N[(N[(N[(z - t), $MachinePrecision] / N[(z - a), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision], N[(x - N[(y / N[((-a) / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -2.6 \cdot 10^{+68}:\\
\;\;\;\;x + \frac{t}{\frac{a}{y}}\\
\mathbf{elif}\;a \leq -8 \cdot 10^{-232}:\\
\;\;\;\;x + y\\
\mathbf{elif}\;a \leq 1.2 \cdot 10^{-178}:\\
\;\;\;\;x - \frac{t \cdot y}{z}\\
\mathbf{elif}\;a \leq 3.2 \cdot 10^{-23}:\\
\;\;\;\;\frac{z - t}{z - a} \cdot y\\
\mathbf{else}:\\
\;\;\;\;x - \frac{y}{\frac{-a}{t}}\\
\end{array}
\end{array}
(FPCore (x y z t a) :precision binary64 (if (or (<= x -8.6e-84) (not (<= x 6e-136))) (+ x (* z (/ y (- z a)))) (* (/ (- z t) (- z a)) y)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((x <= -8.6e-84) || !(x <= 6e-136)) {
tmp = x + (z * (y / (z - a)));
} else {
tmp = ((z - t) / (z - a)) * 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 ((x <= (-8.6d-84)) .or. (.not. (x <= 6d-136))) then
tmp = x + (z * (y / (z - a)))
else
tmp = ((z - t) / (z - a)) * y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((x <= -8.6e-84) || !(x <= 6e-136)) {
tmp = x + (z * (y / (z - a)));
} else {
tmp = ((z - t) / (z - a)) * y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (x <= -8.6e-84) or not (x <= 6e-136): tmp = x + (z * (y / (z - a))) else: tmp = ((z - t) / (z - a)) * y return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((x <= -8.6e-84) || !(x <= 6e-136)) tmp = Float64(x + Float64(z * Float64(y / Float64(z - a)))); else tmp = Float64(Float64(Float64(z - t) / Float64(z - a)) * y); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((x <= -8.6e-84) || ~((x <= 6e-136))) tmp = x + (z * (y / (z - a))); else tmp = ((z - t) / (z - a)) * y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[x, -8.6e-84], N[Not[LessEqual[x, 6e-136]], $MachinePrecision]], N[(x + N[(z * N[(y / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(z - t), $MachinePrecision] / N[(z - a), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -8.6 \cdot 10^{-84} \lor \neg \left(x \leq 6 \cdot 10^{-136}\right):\\
\;\;\;\;x + z \cdot \frac{y}{z - a}\\
\mathbf{else}:\\
\;\;\;\;\frac{z - t}{z - a} \cdot y\\
\end{array}
\end{array}
(FPCore (x y z t a) :precision binary64 (if (or (<= t -4.4e-32) (not (<= t 3.7e-198))) (- x (/ t (/ (- z a) y))) (+ x (* z (/ y (- z a))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -4.4e-32) || !(t <= 3.7e-198)) {
tmp = x - (t / ((z - a) / y));
} else {
tmp = x + (z * (y / (z - 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 ((t <= (-4.4d-32)) .or. (.not. (t <= 3.7d-198))) then
tmp = x - (t / ((z - a) / y))
else
tmp = x + (z * (y / (z - a)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -4.4e-32) || !(t <= 3.7e-198)) {
tmp = x - (t / ((z - a) / y));
} else {
tmp = x + (z * (y / (z - a)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (t <= -4.4e-32) or not (t <= 3.7e-198): tmp = x - (t / ((z - a) / y)) else: tmp = x + (z * (y / (z - a))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((t <= -4.4e-32) || !(t <= 3.7e-198)) tmp = Float64(x - Float64(t / Float64(Float64(z - a) / y))); else tmp = Float64(x + Float64(z * Float64(y / Float64(z - a)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((t <= -4.4e-32) || ~((t <= 3.7e-198))) tmp = x - (t / ((z - a) / y)); else tmp = x + (z * (y / (z - a))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[t, -4.4e-32], N[Not[LessEqual[t, 3.7e-198]], $MachinePrecision]], N[(x - N[(t / N[(N[(z - a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(z * N[(y / N[(z - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -4.4 \cdot 10^{-32} \lor \neg \left(t \leq 3.7 \cdot 10^{-198}\right):\\
\;\;\;\;x - \frac{t}{\frac{z - a}{y}}\\
\mathbf{else}:\\
\;\;\;\;x + z \cdot \frac{y}{z - a}\\
\end{array}
\end{array}
(FPCore (x y z t a) :precision binary64 (if (or (<= a -4.5e+68) (not (<= a 2.8e-70))) (+ x (* t (/ y a))) (+ x y)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -4.5e+68) || !(a <= 2.8e-70)) {
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 ((a <= (-4.5d+68)) .or. (.not. (a <= 2.8d-70))) 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 ((a <= -4.5e+68) || !(a <= 2.8e-70)) {
tmp = x + (t * (y / a));
} else {
tmp = x + y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -4.5e+68) or not (a <= 2.8e-70): tmp = x + (t * (y / a)) else: tmp = x + y return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -4.5e+68) || !(a <= 2.8e-70)) tmp = Float64(x + Float64(t * Float64(y / a))); else tmp = Float64(x + y); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a <= -4.5e+68) || ~((a <= 2.8e-70))) tmp = x + (t * (y / a)); else tmp = x + y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -4.5e+68], N[Not[LessEqual[a, 2.8e-70]], $MachinePrecision]], N[(x + N[(t * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -4.5 \cdot 10^{+68} \lor \neg \left(a \leq 2.8 \cdot 10^{-70}\right):\\
\;\;\;\;x + t \cdot \frac{y}{a}\\
\mathbf{else}:\\
\;\;\;\;x + y\\
\end{array}
\end{array}
(FPCore (x y z t a) :precision binary64 (if (<= a -4e+69) (+ x (* t (/ y a))) (if (<= a 3.7e-39) (+ x y) (+ x (* y (/ t a))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -4e+69) {
tmp = x + (t * (y / a));
} else if (a <= 3.7e-39) {
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 (a <= (-4d+69)) then
tmp = x + (t * (y / a))
else if (a <= 3.7d-39) 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 (a <= -4e+69) {
tmp = x + (t * (y / a));
} else if (a <= 3.7e-39) {
tmp = x + y;
} else {
tmp = x + (y * (t / a));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -4e+69: tmp = x + (t * (y / a)) elif a <= 3.7e-39: tmp = x + y else: tmp = x + (y * (t / a)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -4e+69) tmp = Float64(x + Float64(t * Float64(y / a))); elseif (a <= 3.7e-39) 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 (a <= -4e+69) tmp = x + (t * (y / a)); elseif (a <= 3.7e-39) tmp = x + y; else tmp = x + (y * (t / a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -4e+69], N[(x + N[(t * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 3.7e-39], N[(x + y), $MachinePrecision], N[(x + N[(y * N[(t / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -4 \cdot 10^{+69}:\\
\;\;\;\;x + t \cdot \frac{y}{a}\\
\mathbf{elif}\;a \leq 3.7 \cdot 10^{-39}:\\
\;\;\;\;x + y\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \frac{t}{a}\\
\end{array}
\end{array}
(FPCore (x y z t a) :precision binary64 (if (<= a -4e+69) (+ x (/ t (/ a y))) (if (<= a 8.5e-38) (+ x y) (+ x (* y (/ t a))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -4e+69) {
tmp = x + (t / (a / y));
} else if (a <= 8.5e-38) {
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 (a <= (-4d+69)) then
tmp = x + (t / (a / y))
else if (a <= 8.5d-38) 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 (a <= -4e+69) {
tmp = x + (t / (a / y));
} else if (a <= 8.5e-38) {
tmp = x + y;
} else {
tmp = x + (y * (t / a));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -4e+69: tmp = x + (t / (a / y)) elif a <= 8.5e-38: tmp = x + y else: tmp = x + (y * (t / a)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -4e+69) tmp = Float64(x + Float64(t / Float64(a / y))); elseif (a <= 8.5e-38) 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 (a <= -4e+69) tmp = x + (t / (a / y)); elseif (a <= 8.5e-38) tmp = x + y; else tmp = x + (y * (t / a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -4e+69], N[(x + N[(t / N[(a / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 8.5e-38], N[(x + y), $MachinePrecision], N[(x + N[(y * N[(t / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -4 \cdot 10^{+69}:\\
\;\;\;\;x + \frac{t}{\frac{a}{y}}\\
\mathbf{elif}\;a \leq 8.5 \cdot 10^{-38}:\\
\;\;\;\;x + y\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \frac{t}{a}\\
\end{array}
\end{array}
(FPCore (x y z t a) :precision binary64 (if (<= a -1.4e+70) x (if (<= a 6.7e+96) (+ x y) x)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -1.4e+70) {
tmp = x;
} else if (a <= 6.7e+96) {
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.4d+70)) then
tmp = x
else if (a <= 6.7d+96) 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.4e+70) {
tmp = x;
} else if (a <= 6.7e+96) {
tmp = x + y;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -1.4e+70: tmp = x elif a <= 6.7e+96: tmp = x + y else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -1.4e+70) tmp = x; elseif (a <= 6.7e+96) 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.4e+70) tmp = x; elseif (a <= 6.7e+96) tmp = x + y; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -1.4e+70], x, If[LessEqual[a, 6.7e+96], N[(x + y), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.4 \cdot 10^{+70}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq 6.7 \cdot 10^{+96}:\\
\;\;\;\;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 2023343
(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))))