
(FPCore (x y z t a) :precision binary64 (+ x (* y (/ (- z t) (- a t)))))
double code(double x, double y, double z, double t, double a) {
return x + (y * ((z - t) / (a - 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 - t) / (a - t)))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + (y * ((z - t) / (a - t)));
}
def code(x, y, z, t, a): return x + (y * ((z - t) / (a - t)))
function code(x, y, z, t, a) return Float64(x + Float64(y * Float64(Float64(z - t) / Float64(a - t)))) end
function tmp = code(x, y, z, t, a) tmp = x + (y * ((z - t) / (a - t))); end
code[x_, y_, z_, t_, a_] := N[(x + N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + y \cdot \frac{z - t}{a - t}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 15 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a) :precision binary64 (+ x (* y (/ (- z t) (- a t)))))
double code(double x, double y, double z, double t, double a) {
return x + (y * ((z - t) / (a - 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 - t) / (a - t)))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + (y * ((z - t) / (a - t)));
}
def code(x, y, z, t, a): return x + (y * ((z - t) / (a - t)))
function code(x, y, z, t, a) return Float64(x + Float64(y * Float64(Float64(z - t) / Float64(a - t)))) end
function tmp = code(x, y, z, t, a) tmp = x + (y * ((z - t) / (a - t))); end
code[x_, y_, z_, t_, a_] := N[(x + N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + y \cdot \frac{z - t}{a - t}
\end{array}
(FPCore (x y z t a) :precision binary64 (fma y (/ (- z t) (- a t)) x))
double code(double x, double y, double z, double t, double a) {
return fma(y, ((z - t) / (a - t)), x);
}
function code(x, y, z, t, a) return fma(y, Float64(Float64(z - t) / Float64(a - t)), x) end
code[x_, y_, z_, t_, a_] := N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision]
\begin{array}{l}
\\
\mathsf{fma}\left(y, \frac{z - t}{a - t}, x\right)
\end{array}
Initial program 99.2%
+-commutative99.2%
fma-def99.2%
Simplified99.2%
Final simplification99.2%
(FPCore (x y z t a)
:precision binary64
(if (<= t -9.5e+111)
(+ y x)
(if (<= t -2.6e-91)
(- x (/ y (/ t z)))
(if (<= t 8.5e-17) (+ x (/ y (/ a z))) (+ y x)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -9.5e+111) {
tmp = y + x;
} else if (t <= -2.6e-91) {
tmp = x - (y / (t / z));
} else if (t <= 8.5e-17) {
tmp = x + (y / (a / z));
} else {
tmp = y + 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 (t <= (-9.5d+111)) then
tmp = y + x
else if (t <= (-2.6d-91)) then
tmp = x - (y / (t / z))
else if (t <= 8.5d-17) then
tmp = x + (y / (a / z))
else
tmp = y + x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -9.5e+111) {
tmp = y + x;
} else if (t <= -2.6e-91) {
tmp = x - (y / (t / z));
} else if (t <= 8.5e-17) {
tmp = x + (y / (a / z));
} else {
tmp = y + x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -9.5e+111: tmp = y + x elif t <= -2.6e-91: tmp = x - (y / (t / z)) elif t <= 8.5e-17: tmp = x + (y / (a / z)) else: tmp = y + x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -9.5e+111) tmp = Float64(y + x); elseif (t <= -2.6e-91) tmp = Float64(x - Float64(y / Float64(t / z))); elseif (t <= 8.5e-17) tmp = Float64(x + Float64(y / Float64(a / z))); else tmp = Float64(y + x); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -9.5e+111) tmp = y + x; elseif (t <= -2.6e-91) tmp = x - (y / (t / z)); elseif (t <= 8.5e-17) tmp = x + (y / (a / z)); else tmp = y + x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -9.5e+111], N[(y + x), $MachinePrecision], If[LessEqual[t, -2.6e-91], N[(x - N[(y / N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 8.5e-17], N[(x + N[(y / N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y + x), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -9.5 \cdot 10^{+111}:\\
\;\;\;\;y + x\\
\mathbf{elif}\;t \leq -2.6 \cdot 10^{-91}:\\
\;\;\;\;x - \frac{y}{\frac{t}{z}}\\
\mathbf{elif}\;t \leq 8.5 \cdot 10^{-17}:\\
\;\;\;\;x + \frac{y}{\frac{a}{z}}\\
\mathbf{else}:\\
\;\;\;\;y + x\\
\end{array}
\end{array}
if t < -9.50000000000000019e111 or 8.5e-17 < t Initial program 99.9%
Taylor expanded in t around inf 85.5%
if -9.50000000000000019e111 < t < -2.60000000000000014e-91Initial program 99.9%
Taylor expanded in z around inf 80.2%
Taylor expanded in a around 0 68.5%
+-commutative68.5%
mul-1-neg68.5%
unsub-neg68.5%
associate-/l*70.2%
Simplified70.2%
if -2.60000000000000014e-91 < t < 8.5e-17Initial program 98.0%
Taylor expanded in t around 0 78.9%
associate-/l*81.8%
Simplified81.8%
Final simplification81.1%
(FPCore (x y z t a)
:precision binary64
(if (<= t -7.6e+112)
(+ y x)
(if (<= t -1e-94)
(- x (* y (/ z t)))
(if (<= t 4.5e-17) (+ x (/ y (/ a z))) (+ y x)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -7.6e+112) {
tmp = y + x;
} else if (t <= -1e-94) {
tmp = x - (y * (z / t));
} else if (t <= 4.5e-17) {
tmp = x + (y / (a / z));
} else {
tmp = y + 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 (t <= (-7.6d+112)) then
tmp = y + x
else if (t <= (-1d-94)) then
tmp = x - (y * (z / t))
else if (t <= 4.5d-17) then
tmp = x + (y / (a / z))
else
tmp = y + x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -7.6e+112) {
tmp = y + x;
} else if (t <= -1e-94) {
tmp = x - (y * (z / t));
} else if (t <= 4.5e-17) {
tmp = x + (y / (a / z));
} else {
tmp = y + x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -7.6e+112: tmp = y + x elif t <= -1e-94: tmp = x - (y * (z / t)) elif t <= 4.5e-17: tmp = x + (y / (a / z)) else: tmp = y + x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -7.6e+112) tmp = Float64(y + x); elseif (t <= -1e-94) tmp = Float64(x - Float64(y * Float64(z / t))); elseif (t <= 4.5e-17) tmp = Float64(x + Float64(y / Float64(a / z))); else tmp = Float64(y + x); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -7.6e+112) tmp = y + x; elseif (t <= -1e-94) tmp = x - (y * (z / t)); elseif (t <= 4.5e-17) tmp = x + (y / (a / z)); else tmp = y + x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -7.6e+112], N[(y + x), $MachinePrecision], If[LessEqual[t, -1e-94], N[(x - N[(y * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 4.5e-17], N[(x + N[(y / N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y + x), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -7.6 \cdot 10^{+112}:\\
\;\;\;\;y + x\\
\mathbf{elif}\;t \leq -1 \cdot 10^{-94}:\\
\;\;\;\;x - y \cdot \frac{z}{t}\\
\mathbf{elif}\;t \leq 4.5 \cdot 10^{-17}:\\
\;\;\;\;x + \frac{y}{\frac{a}{z}}\\
\mathbf{else}:\\
\;\;\;\;y + x\\
\end{array}
\end{array}
if t < -7.60000000000000015e112 or 4.49999999999999978e-17 < t Initial program 99.9%
Taylor expanded in t around inf 85.5%
if -7.60000000000000015e112 < t < -9.9999999999999996e-95Initial program 99.9%
Taylor expanded in z around inf 80.2%
Taylor expanded in a around 0 70.3%
associate-*r/70.3%
neg-mul-170.3%
Simplified70.3%
if -9.9999999999999996e-95 < t < 4.49999999999999978e-17Initial program 98.0%
Taylor expanded in t around 0 78.9%
associate-/l*81.8%
Simplified81.8%
Final simplification81.2%
(FPCore (x y z t a)
:precision binary64
(if (<= t -5.2e+93)
(+ y x)
(if (<= t -3e+17)
(* (- t z) (/ y (- t a)))
(if (<= t 7e-18) (+ x (/ y (/ a z))) (+ y x)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -5.2e+93) {
tmp = y + x;
} else if (t <= -3e+17) {
tmp = (t - z) * (y / (t - a));
} else if (t <= 7e-18) {
tmp = x + (y / (a / z));
} else {
tmp = y + 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 (t <= (-5.2d+93)) then
tmp = y + x
else if (t <= (-3d+17)) then
tmp = (t - z) * (y / (t - a))
else if (t <= 7d-18) then
tmp = x + (y / (a / z))
else
tmp = y + x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -5.2e+93) {
tmp = y + x;
} else if (t <= -3e+17) {
tmp = (t - z) * (y / (t - a));
} else if (t <= 7e-18) {
tmp = x + (y / (a / z));
} else {
tmp = y + x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -5.2e+93: tmp = y + x elif t <= -3e+17: tmp = (t - z) * (y / (t - a)) elif t <= 7e-18: tmp = x + (y / (a / z)) else: tmp = y + x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -5.2e+93) tmp = Float64(y + x); elseif (t <= -3e+17) tmp = Float64(Float64(t - z) * Float64(y / Float64(t - a))); elseif (t <= 7e-18) tmp = Float64(x + Float64(y / Float64(a / z))); else tmp = Float64(y + x); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -5.2e+93) tmp = y + x; elseif (t <= -3e+17) tmp = (t - z) * (y / (t - a)); elseif (t <= 7e-18) tmp = x + (y / (a / z)); else tmp = y + x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -5.2e+93], N[(y + x), $MachinePrecision], If[LessEqual[t, -3e+17], N[(N[(t - z), $MachinePrecision] * N[(y / N[(t - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 7e-18], N[(x + N[(y / N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y + x), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -5.2 \cdot 10^{+93}:\\
\;\;\;\;y + x\\
\mathbf{elif}\;t \leq -3 \cdot 10^{+17}:\\
\;\;\;\;\left(t - z\right) \cdot \frac{y}{t - a}\\
\mathbf{elif}\;t \leq 7 \cdot 10^{-18}:\\
\;\;\;\;x + \frac{y}{\frac{a}{z}}\\
\mathbf{else}:\\
\;\;\;\;y + x\\
\end{array}
\end{array}
if t < -5.19999999999999999e93 or 6.9999999999999997e-18 < t Initial program 99.9%
Taylor expanded in t around inf 85.4%
if -5.19999999999999999e93 < t < -3e17Initial program 100.0%
+-commutative100.0%
*-commutative100.0%
associate-*l/78.6%
sub-neg78.6%
+-commutative78.6%
neg-sub078.6%
associate-+l-78.6%
sub0-neg78.6%
neg-mul-178.6%
times-frac99.7%
fma-def99.7%
sub-neg99.7%
+-commutative99.7%
neg-sub099.7%
associate-+l-99.7%
sub0-neg99.7%
neg-mul-199.7%
*-commutative99.7%
associate-/l*99.7%
metadata-eval99.7%
/-rgt-identity99.7%
Simplified99.7%
Taylor expanded in y around -inf 61.7%
*-commutative61.7%
associate-*r/82.8%
Simplified82.8%
if -3e17 < t < 6.9999999999999997e-18Initial program 98.4%
Taylor expanded in t around 0 77.0%
associate-/l*79.1%
Simplified79.1%
Final simplification82.2%
(FPCore (x y z t a) :precision binary64 (if (or (<= t -1.15e+64) (not (<= t 8.5e-18))) (- x (/ y (+ (/ a t) -1.0))) (+ x (* y (/ z (- a t))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -1.15e+64) || !(t <= 8.5e-18)) {
tmp = x - (y / ((a / t) + -1.0));
} else {
tmp = x + (y * (z / (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 ((t <= (-1.15d+64)) .or. (.not. (t <= 8.5d-18))) then
tmp = x - (y / ((a / t) + (-1.0d0)))
else
tmp = x + (y * (z / (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 ((t <= -1.15e+64) || !(t <= 8.5e-18)) {
tmp = x - (y / ((a / t) + -1.0));
} else {
tmp = x + (y * (z / (a - t)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (t <= -1.15e+64) or not (t <= 8.5e-18): tmp = x - (y / ((a / t) + -1.0)) else: tmp = x + (y * (z / (a - t))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((t <= -1.15e+64) || !(t <= 8.5e-18)) tmp = Float64(x - Float64(y / Float64(Float64(a / t) + -1.0))); else tmp = Float64(x + Float64(y * Float64(z / Float64(a - t)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((t <= -1.15e+64) || ~((t <= 8.5e-18))) tmp = x - (y / ((a / t) + -1.0)); else tmp = x + (y * (z / (a - t))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[t, -1.15e+64], N[Not[LessEqual[t, 8.5e-18]], $MachinePrecision]], N[(x - N[(y / N[(N[(a / t), $MachinePrecision] + -1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(z / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.15 \cdot 10^{+64} \lor \neg \left(t \leq 8.5 \cdot 10^{-18}\right):\\
\;\;\;\;x - \frac{y}{\frac{a}{t} + -1}\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \frac{z}{a - t}\\
\end{array}
\end{array}
if t < -1.15e64 or 8.4999999999999995e-18 < t Initial program 99.9%
Taylor expanded in z around 0 66.4%
+-commutative66.4%
mul-1-neg66.4%
unsub-neg66.4%
associate-/l*89.5%
div-sub89.5%
*-inverses89.5%
Simplified89.5%
if -1.15e64 < t < 8.4999999999999995e-18Initial program 98.5%
Taylor expanded in z around inf 91.2%
Final simplification90.4%
(FPCore (x y z t a) :precision binary64 (if (<= t -1.4e+178) (+ y x) (if (<= t 9.2e-17) (+ x (* y (/ z (- a t)))) (+ y x))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -1.4e+178) {
tmp = y + x;
} else if (t <= 9.2e-17) {
tmp = x + (y * (z / (a - t)));
} else {
tmp = y + 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 (t <= (-1.4d+178)) then
tmp = y + x
else if (t <= 9.2d-17) then
tmp = x + (y * (z / (a - t)))
else
tmp = y + x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -1.4e+178) {
tmp = y + x;
} else if (t <= 9.2e-17) {
tmp = x + (y * (z / (a - t)));
} else {
tmp = y + x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -1.4e+178: tmp = y + x elif t <= 9.2e-17: tmp = x + (y * (z / (a - t))) else: tmp = y + x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -1.4e+178) tmp = Float64(y + x); elseif (t <= 9.2e-17) tmp = Float64(x + Float64(y * Float64(z / Float64(a - t)))); else tmp = Float64(y + x); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -1.4e+178) tmp = y + x; elseif (t <= 9.2e-17) tmp = x + (y * (z / (a - t))); else tmp = y + x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -1.4e+178], N[(y + x), $MachinePrecision], If[LessEqual[t, 9.2e-17], N[(x + N[(y * N[(z / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y + x), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.4 \cdot 10^{+178}:\\
\;\;\;\;y + x\\
\mathbf{elif}\;t \leq 9.2 \cdot 10^{-17}:\\
\;\;\;\;x + y \cdot \frac{z}{a - t}\\
\mathbf{else}:\\
\;\;\;\;y + x\\
\end{array}
\end{array}
if t < -1.39999999999999997e178 or 9.20000000000000035e-17 < t Initial program 99.9%
Taylor expanded in t around inf 89.7%
if -1.39999999999999997e178 < t < 9.20000000000000035e-17Initial program 98.8%
Taylor expanded in z around inf 87.0%
Final simplification88.0%
(FPCore (x y z t a) :precision binary64 (if (<= t -2.7e-14) (+ x (/ (- t z) (/ t y))) (if (<= t 1e-18) (+ x (* y (/ z (- a t)))) (- x (/ y (+ (/ a t) -1.0))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -2.7e-14) {
tmp = x + ((t - z) / (t / y));
} else if (t <= 1e-18) {
tmp = x + (y * (z / (a - t)));
} else {
tmp = x - (y / ((a / t) + -1.0));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (t <= (-2.7d-14)) then
tmp = x + ((t - z) / (t / y))
else if (t <= 1d-18) then
tmp = x + (y * (z / (a - t)))
else
tmp = x - (y / ((a / t) + (-1.0d0)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -2.7e-14) {
tmp = x + ((t - z) / (t / y));
} else if (t <= 1e-18) {
tmp = x + (y * (z / (a - t)));
} else {
tmp = x - (y / ((a / t) + -1.0));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -2.7e-14: tmp = x + ((t - z) / (t / y)) elif t <= 1e-18: tmp = x + (y * (z / (a - t))) else: tmp = x - (y / ((a / t) + -1.0)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -2.7e-14) tmp = Float64(x + Float64(Float64(t - z) / Float64(t / y))); elseif (t <= 1e-18) tmp = Float64(x + Float64(y * Float64(z / Float64(a - t)))); else tmp = Float64(x - Float64(y / Float64(Float64(a / t) + -1.0))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -2.7e-14) tmp = x + ((t - z) / (t / y)); elseif (t <= 1e-18) tmp = x + (y * (z / (a - t))); else tmp = x - (y / ((a / t) + -1.0)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -2.7e-14], N[(x + N[(N[(t - z), $MachinePrecision] / N[(t / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1e-18], N[(x + N[(y * N[(z / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x - N[(y / N[(N[(a / t), $MachinePrecision] + -1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.7 \cdot 10^{-14}:\\
\;\;\;\;x + \frac{t - z}{\frac{t}{y}}\\
\mathbf{elif}\;t \leq 10^{-18}:\\
\;\;\;\;x + y \cdot \frac{z}{a - t}\\
\mathbf{else}:\\
\;\;\;\;x - \frac{y}{\frac{a}{t} + -1}\\
\end{array}
\end{array}
if t < -2.6999999999999999e-14Initial program 99.9%
Taylor expanded in a around 0 62.6%
+-commutative62.6%
mul-1-neg62.6%
unsub-neg62.6%
associate-/l*84.3%
Simplified84.3%
if -2.6999999999999999e-14 < t < 1.0000000000000001e-18Initial program 98.3%
Taylor expanded in z around inf 93.5%
if 1.0000000000000001e-18 < t Initial program 99.9%
Taylor expanded in z around 0 76.1%
+-commutative76.1%
mul-1-neg76.1%
unsub-neg76.1%
associate-/l*95.8%
div-sub95.8%
*-inverses95.8%
Simplified95.8%
Final simplification91.2%
(FPCore (x y z t a) :precision binary64 (if (<= t -6.5e-47) (+ y x) (if (<= t 7.6e-17) (+ x (* y (/ z a))) (+ y x))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -6.5e-47) {
tmp = y + x;
} else if (t <= 7.6e-17) {
tmp = x + (y * (z / a));
} else {
tmp = y + 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 (t <= (-6.5d-47)) then
tmp = y + x
else if (t <= 7.6d-17) then
tmp = x + (y * (z / a))
else
tmp = y + x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -6.5e-47) {
tmp = y + x;
} else if (t <= 7.6e-17) {
tmp = x + (y * (z / a));
} else {
tmp = y + x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -6.5e-47: tmp = y + x elif t <= 7.6e-17: tmp = x + (y * (z / a)) else: tmp = y + x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -6.5e-47) tmp = Float64(y + x); elseif (t <= 7.6e-17) tmp = Float64(x + Float64(y * Float64(z / a))); else tmp = Float64(y + x); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -6.5e-47) tmp = y + x; elseif (t <= 7.6e-17) tmp = x + (y * (z / a)); else tmp = y + x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -6.5e-47], N[(y + x), $MachinePrecision], If[LessEqual[t, 7.6e-17], N[(x + N[(y * N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y + x), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -6.5 \cdot 10^{-47}:\\
\;\;\;\;y + x\\
\mathbf{elif}\;t \leq 7.6 \cdot 10^{-17}:\\
\;\;\;\;x + y \cdot \frac{z}{a}\\
\mathbf{else}:\\
\;\;\;\;y + x\\
\end{array}
\end{array}
if t < -6.5000000000000004e-47 or 7.6000000000000002e-17 < t Initial program 99.9%
Taylor expanded in t around inf 78.0%
if -6.5000000000000004e-47 < t < 7.6000000000000002e-17Initial program 98.2%
Taylor expanded in t around 0 81.3%
Final simplification79.4%
(FPCore (x y z t a) :precision binary64 (if (<= t -7.8e-47) (+ y x) (if (<= t 6.5e-17) (+ x (/ y (/ a z))) (+ y x))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -7.8e-47) {
tmp = y + x;
} else if (t <= 6.5e-17) {
tmp = x + (y / (a / z));
} else {
tmp = y + 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 (t <= (-7.8d-47)) then
tmp = y + x
else if (t <= 6.5d-17) then
tmp = x + (y / (a / z))
else
tmp = y + x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -7.8e-47) {
tmp = y + x;
} else if (t <= 6.5e-17) {
tmp = x + (y / (a / z));
} else {
tmp = y + x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -7.8e-47: tmp = y + x elif t <= 6.5e-17: tmp = x + (y / (a / z)) else: tmp = y + x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -7.8e-47) tmp = Float64(y + x); elseif (t <= 6.5e-17) tmp = Float64(x + Float64(y / Float64(a / z))); else tmp = Float64(y + x); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -7.8e-47) tmp = y + x; elseif (t <= 6.5e-17) tmp = x + (y / (a / z)); else tmp = y + x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -7.8e-47], N[(y + x), $MachinePrecision], If[LessEqual[t, 6.5e-17], N[(x + N[(y / N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y + x), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -7.8 \cdot 10^{-47}:\\
\;\;\;\;y + x\\
\mathbf{elif}\;t \leq 6.5 \cdot 10^{-17}:\\
\;\;\;\;x + \frac{y}{\frac{a}{z}}\\
\mathbf{else}:\\
\;\;\;\;y + x\\
\end{array}
\end{array}
if t < -7.79999999999999956e-47 or 6.4999999999999996e-17 < t Initial program 99.9%
Taylor expanded in t around inf 78.0%
if -7.79999999999999956e-47 < t < 6.4999999999999996e-17Initial program 98.2%
Taylor expanded in t around 0 79.7%
associate-/l*81.4%
Simplified81.4%
Final simplification79.5%
(FPCore (x y z t a) :precision binary64 (+ x (* y (/ (- z t) (- a t)))))
double code(double x, double y, double z, double t, double a) {
return x + (y * ((z - t) / (a - 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 - t) / (a - t)))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + (y * ((z - t) / (a - t)));
}
def code(x, y, z, t, a): return x + (y * ((z - t) / (a - t)))
function code(x, y, z, t, a) return Float64(x + Float64(y * Float64(Float64(z - t) / Float64(a - t)))) end
function tmp = code(x, y, z, t, a) tmp = x + (y * ((z - t) / (a - t))); end
code[x_, y_, z_, t_, a_] := N[(x + N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + y \cdot \frac{z - t}{a - t}
\end{array}
Initial program 99.2%
Final simplification99.2%
(FPCore (x y z t a) :precision binary64 (if (<= z -1.65e+264) (/ (* y z) a) (if (<= z 1.2e+201) (+ y x) (* (- z) (/ y t)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1.65e+264) {
tmp = (y * z) / a;
} else if (z <= 1.2e+201) {
tmp = y + x;
} else {
tmp = -z * (y / 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 (z <= (-1.65d+264)) then
tmp = (y * z) / a
else if (z <= 1.2d+201) then
tmp = y + x
else
tmp = -z * (y / t)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1.65e+264) {
tmp = (y * z) / a;
} else if (z <= 1.2e+201) {
tmp = y + x;
} else {
tmp = -z * (y / t);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -1.65e+264: tmp = (y * z) / a elif z <= 1.2e+201: tmp = y + x else: tmp = -z * (y / t) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -1.65e+264) tmp = Float64(Float64(y * z) / a); elseif (z <= 1.2e+201) tmp = Float64(y + x); else tmp = Float64(Float64(-z) * Float64(y / t)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -1.65e+264) tmp = (y * z) / a; elseif (z <= 1.2e+201) tmp = y + x; else tmp = -z * (y / t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -1.65e+264], N[(N[(y * z), $MachinePrecision] / a), $MachinePrecision], If[LessEqual[z, 1.2e+201], N[(y + x), $MachinePrecision], N[((-z) * N[(y / t), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.65 \cdot 10^{+264}:\\
\;\;\;\;\frac{y \cdot z}{a}\\
\mathbf{elif}\;z \leq 1.2 \cdot 10^{+201}:\\
\;\;\;\;y + x\\
\mathbf{else}:\\
\;\;\;\;\left(-z\right) \cdot \frac{y}{t}\\
\end{array}
\end{array}
if z < -1.65e264Initial program 89.3%
Taylor expanded in t around 0 77.9%
Taylor expanded in y around inf 77.9%
if -1.65e264 < z < 1.19999999999999996e201Initial program 99.5%
Taylor expanded in t around inf 68.8%
if 1.19999999999999996e201 < z Initial program 99.8%
+-commutative99.8%
*-commutative99.8%
associate-*l/76.3%
sub-neg76.3%
+-commutative76.3%
neg-sub076.3%
associate-+l-76.3%
sub0-neg76.3%
neg-mul-176.3%
times-frac99.8%
fma-def99.8%
sub-neg99.8%
+-commutative99.8%
neg-sub099.8%
associate-+l-99.8%
sub0-neg99.8%
neg-mul-199.8%
*-commutative99.8%
associate-/l*99.8%
metadata-eval99.8%
/-rgt-identity99.8%
Simplified99.8%
Taylor expanded in z around inf 66.6%
associate-*r/66.6%
associate-*r*66.6%
neg-mul-166.6%
Simplified66.6%
Taylor expanded in t around inf 51.7%
mul-1-neg51.7%
associate-/l*60.8%
distribute-neg-frac60.8%
Simplified60.8%
Taylor expanded in y around 0 51.7%
mul-1-neg51.7%
associate-*l/60.9%
*-commutative60.9%
distribute-rgt-neg-in60.9%
distribute-neg-frac60.9%
Simplified60.9%
Final simplification68.5%
(FPCore (x y z t a) :precision binary64 (if (<= z -1.06e+266) (/ (* y z) a) (if (<= z 8e+203) (+ y x) (* y (- (/ z t))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1.06e+266) {
tmp = (y * z) / a;
} else if (z <= 8e+203) {
tmp = y + x;
} else {
tmp = y * -(z / t);
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (z <= (-1.06d+266)) then
tmp = (y * z) / a
else if (z <= 8d+203) then
tmp = y + x
else
tmp = y * -(z / t)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1.06e+266) {
tmp = (y * z) / a;
} else if (z <= 8e+203) {
tmp = y + x;
} else {
tmp = y * -(z / t);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -1.06e+266: tmp = (y * z) / a elif z <= 8e+203: tmp = y + x else: tmp = y * -(z / t) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -1.06e+266) tmp = Float64(Float64(y * z) / a); elseif (z <= 8e+203) tmp = Float64(y + x); else tmp = Float64(y * Float64(-Float64(z / t))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -1.06e+266) tmp = (y * z) / a; elseif (z <= 8e+203) tmp = y + x; else tmp = y * -(z / t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -1.06e+266], N[(N[(y * z), $MachinePrecision] / a), $MachinePrecision], If[LessEqual[z, 8e+203], N[(y + x), $MachinePrecision], N[(y * (-N[(z / t), $MachinePrecision])), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.06 \cdot 10^{+266}:\\
\;\;\;\;\frac{y \cdot z}{a}\\
\mathbf{elif}\;z \leq 8 \cdot 10^{+203}:\\
\;\;\;\;y + x\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(-\frac{z}{t}\right)\\
\end{array}
\end{array}
if z < -1.06000000000000007e266Initial program 89.3%
Taylor expanded in t around 0 77.9%
Taylor expanded in y around inf 77.9%
if -1.06000000000000007e266 < z < 7.9999999999999999e203Initial program 99.5%
Taylor expanded in t around inf 68.8%
if 7.9999999999999999e203 < z Initial program 99.8%
+-commutative99.8%
*-commutative99.8%
associate-*l/76.3%
sub-neg76.3%
+-commutative76.3%
neg-sub076.3%
associate-+l-76.3%
sub0-neg76.3%
neg-mul-176.3%
times-frac99.8%
fma-def99.8%
sub-neg99.8%
+-commutative99.8%
neg-sub099.8%
associate-+l-99.8%
sub0-neg99.8%
neg-mul-199.8%
*-commutative99.8%
associate-/l*99.8%
metadata-eval99.8%
/-rgt-identity99.8%
Simplified99.8%
Taylor expanded in z around inf 66.6%
associate-*r/66.6%
associate-*r*66.6%
neg-mul-166.6%
Simplified66.6%
Taylor expanded in y around 0 66.6%
mul-1-neg66.6%
associate-*r/85.5%
*-commutative85.5%
distribute-rgt-neg-in85.5%
Simplified85.5%
Taylor expanded in t around inf 61.0%
Final simplification68.5%
(FPCore (x y z t a) :precision binary64 (if (<= t -4.5e-51) (+ y x) (if (<= t 2.8e-21) x (+ y x))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -4.5e-51) {
tmp = y + x;
} else if (t <= 2.8e-21) {
tmp = x;
} else {
tmp = y + 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 (t <= (-4.5d-51)) then
tmp = y + x
else if (t <= 2.8d-21) then
tmp = x
else
tmp = y + x
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.5e-51) {
tmp = y + x;
} else if (t <= 2.8e-21) {
tmp = x;
} else {
tmp = y + x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -4.5e-51: tmp = y + x elif t <= 2.8e-21: tmp = x else: tmp = y + x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -4.5e-51) tmp = Float64(y + x); elseif (t <= 2.8e-21) tmp = x; else tmp = Float64(y + x); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -4.5e-51) tmp = y + x; elseif (t <= 2.8e-21) tmp = x; else tmp = y + x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -4.5e-51], N[(y + x), $MachinePrecision], If[LessEqual[t, 2.8e-21], x, N[(y + x), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -4.5 \cdot 10^{-51}:\\
\;\;\;\;y + x\\
\mathbf{elif}\;t \leq 2.8 \cdot 10^{-21}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;y + x\\
\end{array}
\end{array}
if t < -4.49999999999999974e-51 or 2.80000000000000004e-21 < t Initial program 99.9%
Taylor expanded in t around inf 77.3%
if -4.49999999999999974e-51 < t < 2.80000000000000004e-21Initial program 98.2%
Taylor expanded in x around inf 56.0%
Final simplification68.3%
(FPCore (x y z t a) :precision binary64 (if (<= y -1.15e+86) y (if (<= y 3.3e+121) x y)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (y <= -1.15e+86) {
tmp = y;
} else if (y <= 3.3e+121) {
tmp = x;
} else {
tmp = 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 (y <= (-1.15d+86)) then
tmp = y
else if (y <= 3.3d+121) then
tmp = x
else
tmp = y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (y <= -1.15e+86) {
tmp = y;
} else if (y <= 3.3e+121) {
tmp = x;
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if y <= -1.15e+86: tmp = y elif y <= 3.3e+121: tmp = x else: tmp = y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (y <= -1.15e+86) tmp = y; elseif (y <= 3.3e+121) tmp = x; else tmp = y; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (y <= -1.15e+86) tmp = y; elseif (y <= 3.3e+121) tmp = x; else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[y, -1.15e+86], y, If[LessEqual[y, 3.3e+121], x, y]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.15 \cdot 10^{+86}:\\
\;\;\;\;y\\
\mathbf{elif}\;y \leq 3.3 \cdot 10^{+121}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if y < -1.14999999999999995e86 or 3.29999999999999979e121 < y Initial program 99.9%
associate-*r/58.6%
clear-num58.5%
Applied egg-rr58.5%
Taylor expanded in z around 0 30.3%
+-commutative30.3%
mul-1-neg30.3%
unsub-neg30.3%
associate-/l*63.1%
Simplified63.1%
Taylor expanded in x around 0 14.6%
mul-1-neg14.6%
associate-*l/48.4%
*-commutative48.4%
distribute-rgt-neg-in48.4%
distribute-neg-frac48.4%
Simplified48.4%
Taylor expanded in t around inf 39.0%
if -1.14999999999999995e86 < y < 3.29999999999999979e121Initial program 98.8%
Taylor expanded in x around inf 65.1%
Final simplification56.3%
(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}
Initial program 99.2%
Taylor expanded in x around inf 50.6%
Final simplification50.6%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* y (/ (- z t) (- a t))))))
(if (< y -8.508084860551241e-17)
t_1
(if (< y 2.894426862792089e-49)
(+ x (* (* y (- z t)) (/ 1.0 (- a t))))
t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + (y * ((z - t) / (a - t)));
double tmp;
if (y < -8.508084860551241e-17) {
tmp = t_1;
} else if (y < 2.894426862792089e-49) {
tmp = x + ((y * (z - t)) * (1.0 / (a - t)));
} 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 * ((z - t) / (a - t)))
if (y < (-8.508084860551241d-17)) then
tmp = t_1
else if (y < 2.894426862792089d-49) then
tmp = x + ((y * (z - t)) * (1.0d0 / (a - t)))
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 * ((z - t) / (a - t)));
double tmp;
if (y < -8.508084860551241e-17) {
tmp = t_1;
} else if (y < 2.894426862792089e-49) {
tmp = x + ((y * (z - t)) * (1.0 / (a - t)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + (y * ((z - t) / (a - t))) tmp = 0 if y < -8.508084860551241e-17: tmp = t_1 elif y < 2.894426862792089e-49: tmp = x + ((y * (z - t)) * (1.0 / (a - t))) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(y * Float64(Float64(z - t) / Float64(a - t)))) tmp = 0.0 if (y < -8.508084860551241e-17) tmp = t_1; elseif (y < 2.894426862792089e-49) tmp = Float64(x + Float64(Float64(y * Float64(z - t)) * Float64(1.0 / Float64(a - t)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + (y * ((z - t) / (a - t))); tmp = 0.0; if (y < -8.508084860551241e-17) tmp = t_1; elseif (y < 2.894426862792089e-49) tmp = x + ((y * (z - t)) * (1.0 / (a - t))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[y, -8.508084860551241e-17], t$95$1, If[Less[y, 2.894426862792089e-49], N[(x + N[(N[(y * N[(z - t), $MachinePrecision]), $MachinePrecision] * N[(1.0 / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + y \cdot \frac{z - t}{a - t}\\
\mathbf{if}\;y < -8.508084860551241 \cdot 10^{-17}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y < 2.894426862792089 \cdot 10^{-49}:\\
\;\;\;\;x + \left(y \cdot \left(z - t\right)\right) \cdot \frac{1}{a - t}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
herbie shell --seed 2023192
(FPCore (x y z t a)
:name "Graphics.Rendering.Plot.Render.Plot.Axis:renderAxisLine from plot-0.2.3.4, B"
:precision binary64
:herbie-target
(if (< y -8.508084860551241e-17) (+ x (* y (/ (- z t) (- a t)))) (if (< y 2.894426862792089e-49) (+ x (* (* y (- z t)) (/ 1.0 (- a t)))) (+ x (* y (/ (- z t) (- a t))))))
(+ x (* y (/ (- z t) (- a t)))))