
(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 13 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 (let* ((t_1 (* y (/ (- z t) (- a t))))) (if (<= t_1 -2e+272) (+ x (/ (- z t) (/ (- a t) y))) (+ t_1 x))))
double code(double x, double y, double z, double t, double a) {
double t_1 = y * ((z - t) / (a - t));
double tmp;
if (t_1 <= -2e+272) {
tmp = x + ((z - t) / ((a - t) / y));
} else {
tmp = t_1 + 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) :: t_1
real(8) :: tmp
t_1 = y * ((z - t) / (a - t))
if (t_1 <= (-2d+272)) then
tmp = x + ((z - t) / ((a - t) / y))
else
tmp = t_1 + x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = y * ((z - t) / (a - t));
double tmp;
if (t_1 <= -2e+272) {
tmp = x + ((z - t) / ((a - t) / y));
} else {
tmp = t_1 + x;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = y * ((z - t) / (a - t)) tmp = 0 if t_1 <= -2e+272: tmp = x + ((z - t) / ((a - t) / y)) else: tmp = t_1 + x return tmp
function code(x, y, z, t, a) t_1 = Float64(y * Float64(Float64(z - t) / Float64(a - t))) tmp = 0.0 if (t_1 <= -2e+272) tmp = Float64(x + Float64(Float64(z - t) / Float64(Float64(a - t) / y))); else tmp = Float64(t_1 + x); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = y * ((z - t) / (a - t)); tmp = 0.0; if (t_1 <= -2e+272) tmp = x + ((z - t) / ((a - t) / y)); else tmp = t_1 + x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -2e+272], N[(x + N[(N[(z - t), $MachinePrecision] / N[(N[(a - t), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t$95$1 + x), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \frac{z - t}{a - t}\\
\mathbf{if}\;t\_1 \leq -2 \cdot 10^{+272}:\\
\;\;\;\;x + \frac{z - t}{\frac{a - t}{y}}\\
\mathbf{else}:\\
\;\;\;\;t\_1 + x\\
\end{array}
\end{array}
if (*.f64 y (/.f64 (-.f64 z t) (-.f64 a t))) < -2.0000000000000001e272Initial program 69.7%
Taylor expanded in y around 0 76.1%
*-commutative76.1%
associate-/l*99.9%
Simplified99.9%
if -2.0000000000000001e272 < (*.f64 y (/.f64 (-.f64 z t) (-.f64 a t))) Initial program 99.5%
Final simplification99.5%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (- x (/ y (/ t z)))))
(if (<= t -2.5e+26)
(+ y x)
(if (<= t -2.8e-16)
(* y (- 1.0 (/ z t)))
(if (<= t -4.6e-100)
(+ x (* y (/ z a)))
(if (<= t -4.8e-123)
t_1
(if (<= t 3800000000000.0)
(+ x (* z (/ y a)))
(if (<= t 9e+90) t_1 (+ y x)))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x - (y / (t / z));
double tmp;
if (t <= -2.5e+26) {
tmp = y + x;
} else if (t <= -2.8e-16) {
tmp = y * (1.0 - (z / t));
} else if (t <= -4.6e-100) {
tmp = x + (y * (z / a));
} else if (t <= -4.8e-123) {
tmp = t_1;
} else if (t <= 3800000000000.0) {
tmp = x + (z * (y / a));
} else if (t <= 9e+90) {
tmp = t_1;
} 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) :: t_1
real(8) :: tmp
t_1 = x - (y / (t / z))
if (t <= (-2.5d+26)) then
tmp = y + x
else if (t <= (-2.8d-16)) then
tmp = y * (1.0d0 - (z / t))
else if (t <= (-4.6d-100)) then
tmp = x + (y * (z / a))
else if (t <= (-4.8d-123)) then
tmp = t_1
else if (t <= 3800000000000.0d0) then
tmp = x + (z * (y / a))
else if (t <= 9d+90) then
tmp = t_1
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 t_1 = x - (y / (t / z));
double tmp;
if (t <= -2.5e+26) {
tmp = y + x;
} else if (t <= -2.8e-16) {
tmp = y * (1.0 - (z / t));
} else if (t <= -4.6e-100) {
tmp = x + (y * (z / a));
} else if (t <= -4.8e-123) {
tmp = t_1;
} else if (t <= 3800000000000.0) {
tmp = x + (z * (y / a));
} else if (t <= 9e+90) {
tmp = t_1;
} else {
tmp = y + x;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x - (y / (t / z)) tmp = 0 if t <= -2.5e+26: tmp = y + x elif t <= -2.8e-16: tmp = y * (1.0 - (z / t)) elif t <= -4.6e-100: tmp = x + (y * (z / a)) elif t <= -4.8e-123: tmp = t_1 elif t <= 3800000000000.0: tmp = x + (z * (y / a)) elif t <= 9e+90: tmp = t_1 else: tmp = y + x return tmp
function code(x, y, z, t, a) t_1 = Float64(x - Float64(y / Float64(t / z))) tmp = 0.0 if (t <= -2.5e+26) tmp = Float64(y + x); elseif (t <= -2.8e-16) tmp = Float64(y * Float64(1.0 - Float64(z / t))); elseif (t <= -4.6e-100) tmp = Float64(x + Float64(y * Float64(z / a))); elseif (t <= -4.8e-123) tmp = t_1; elseif (t <= 3800000000000.0) tmp = Float64(x + Float64(z * Float64(y / a))); elseif (t <= 9e+90) tmp = t_1; else tmp = Float64(y + x); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x - (y / (t / z)); tmp = 0.0; if (t <= -2.5e+26) tmp = y + x; elseif (t <= -2.8e-16) tmp = y * (1.0 - (z / t)); elseif (t <= -4.6e-100) tmp = x + (y * (z / a)); elseif (t <= -4.8e-123) tmp = t_1; elseif (t <= 3800000000000.0) tmp = x + (z * (y / a)); elseif (t <= 9e+90) tmp = t_1; else tmp = y + x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x - N[(y / N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2.5e+26], N[(y + x), $MachinePrecision], If[LessEqual[t, -2.8e-16], N[(y * N[(1.0 - N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -4.6e-100], N[(x + N[(y * N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -4.8e-123], t$95$1, If[LessEqual[t, 3800000000000.0], N[(x + N[(z * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 9e+90], t$95$1, N[(y + x), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x - \frac{y}{\frac{t}{z}}\\
\mathbf{if}\;t \leq -2.5 \cdot 10^{+26}:\\
\;\;\;\;y + x\\
\mathbf{elif}\;t \leq -2.8 \cdot 10^{-16}:\\
\;\;\;\;y \cdot \left(1 - \frac{z}{t}\right)\\
\mathbf{elif}\;t \leq -4.6 \cdot 10^{-100}:\\
\;\;\;\;x + y \cdot \frac{z}{a}\\
\mathbf{elif}\;t \leq -4.8 \cdot 10^{-123}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 3800000000000:\\
\;\;\;\;x + z \cdot \frac{y}{a}\\
\mathbf{elif}\;t \leq 9 \cdot 10^{+90}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;y + x\\
\end{array}
\end{array}
if t < -2.5e26 or 9e90 < t Initial program 99.9%
Taylor expanded in t around inf 81.5%
+-commutative81.5%
Simplified81.5%
if -2.5e26 < t < -2.8000000000000001e-16Initial program 99.9%
Taylor expanded in y around 0 100.0%
*-commutative100.0%
associate-/l*99.9%
Simplified99.9%
Taylor expanded in a around 0 78.6%
mul-1-neg78.6%
unsub-neg78.6%
associate-/l*78.6%
Simplified78.6%
Taylor expanded in y around inf 66.2%
if -2.8000000000000001e-16 < t < -4.59999999999999989e-100Initial program 99.9%
Taylor expanded in t around 0 70.4%
if -4.59999999999999989e-100 < t < -4.8e-123 or 3.8e12 < t < 9e90Initial program 99.7%
Taylor expanded in z around inf 71.4%
associate-/l*83.5%
Simplified83.5%
Taylor expanded in a around 0 67.5%
mul-1-neg67.5%
unsub-neg67.5%
associate-/l*75.5%
Simplified75.5%
if -4.8e-123 < t < 3.8e12Initial program 94.2%
Taylor expanded in t around 0 80.4%
+-commutative80.4%
associate-/l*79.0%
associate-/r/80.7%
Simplified80.7%
Final simplification79.3%
(FPCore (x y z t a) :precision binary64 (let* ((t_1 (* y (/ (- z t) (- a t))))) (if (<= t_1 (- INFINITY)) (+ x (/ (* y z) (- a t))) (+ t_1 x))))
double code(double x, double y, double z, double t, double a) {
double t_1 = y * ((z - t) / (a - t));
double tmp;
if (t_1 <= -((double) INFINITY)) {
tmp = x + ((y * z) / (a - t));
} else {
tmp = t_1 + x;
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a) {
double t_1 = y * ((z - t) / (a - t));
double tmp;
if (t_1 <= -Double.POSITIVE_INFINITY) {
tmp = x + ((y * z) / (a - t));
} else {
tmp = t_1 + x;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = y * ((z - t) / (a - t)) tmp = 0 if t_1 <= -math.inf: tmp = x + ((y * z) / (a - t)) else: tmp = t_1 + x return tmp
function code(x, y, z, t, a) t_1 = Float64(y * Float64(Float64(z - t) / Float64(a - t))) tmp = 0.0 if (t_1 <= Float64(-Inf)) tmp = Float64(x + Float64(Float64(y * z) / Float64(a - t))); else tmp = Float64(t_1 + x); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = y * ((z - t) / (a - t)); tmp = 0.0; if (t_1 <= -Inf) tmp = x + ((y * z) / (a - t)); else tmp = t_1 + x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, (-Infinity)], N[(x + N[(N[(y * z), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t$95$1 + x), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \frac{z - t}{a - t}\\
\mathbf{if}\;t\_1 \leq -\infty:\\
\;\;\;\;x + \frac{y \cdot z}{a - t}\\
\mathbf{else}:\\
\;\;\;\;t\_1 + x\\
\end{array}
\end{array}
if (*.f64 y (/.f64 (-.f64 z t) (-.f64 a t))) < -inf.0Initial program 59.1%
Taylor expanded in z around inf 99.9%
if -inf.0 < (*.f64 y (/.f64 (-.f64 z t) (-.f64 a t))) Initial program 99.5%
Final simplification99.5%
(FPCore (x y z t a) :precision binary64 (if (or (<= t -75000000000000.0) (not (<= t 1.6e+81))) (+ y x) (+ x (* y (/ (- z t) a)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -75000000000000.0) || !(t <= 1.6e+81)) {
tmp = y + x;
} else {
tmp = x + (y * ((z - 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 ((t <= (-75000000000000.0d0)) .or. (.not. (t <= 1.6d+81))) then
tmp = y + x
else
tmp = x + (y * ((z - 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 ((t <= -75000000000000.0) || !(t <= 1.6e+81)) {
tmp = y + x;
} else {
tmp = x + (y * ((z - t) / a));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (t <= -75000000000000.0) or not (t <= 1.6e+81): tmp = y + x else: tmp = x + (y * ((z - t) / a)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((t <= -75000000000000.0) || !(t <= 1.6e+81)) tmp = Float64(y + x); else tmp = Float64(x + Float64(y * Float64(Float64(z - t) / a))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((t <= -75000000000000.0) || ~((t <= 1.6e+81))) tmp = y + x; else tmp = x + (y * ((z - t) / a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[t, -75000000000000.0], N[Not[LessEqual[t, 1.6e+81]], $MachinePrecision]], N[(y + x), $MachinePrecision], N[(x + N[(y * N[(N[(z - t), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -75000000000000 \lor \neg \left(t \leq 1.6 \cdot 10^{+81}\right):\\
\;\;\;\;y + x\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \frac{z - t}{a}\\
\end{array}
\end{array}
if t < -7.5e13 or 1.6e81 < t Initial program 99.9%
Taylor expanded in t around inf 79.9%
+-commutative79.9%
Simplified79.9%
if -7.5e13 < t < 1.6e81Initial program 95.8%
Taylor expanded in a around inf 78.2%
Final simplification78.8%
(FPCore (x y z t a) :precision binary64 (if (or (<= t -4.3e+173) (not (<= t 3.6e+237))) (+ y x) (+ x (* y (/ z (- a t))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -4.3e+173) || !(t <= 3.6e+237)) {
tmp = y + x;
} 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 <= (-4.3d+173)) .or. (.not. (t <= 3.6d+237))) then
tmp = y + x
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 <= -4.3e+173) || !(t <= 3.6e+237)) {
tmp = y + x;
} else {
tmp = x + (y * (z / (a - t)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (t <= -4.3e+173) or not (t <= 3.6e+237): tmp = y + x else: tmp = x + (y * (z / (a - t))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((t <= -4.3e+173) || !(t <= 3.6e+237)) tmp = Float64(y + x); 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 <= -4.3e+173) || ~((t <= 3.6e+237))) tmp = y + x; else tmp = x + (y * (z / (a - t))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[t, -4.3e+173], N[Not[LessEqual[t, 3.6e+237]], $MachinePrecision]], N[(y + x), $MachinePrecision], N[(x + N[(y * N[(z / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -4.3 \cdot 10^{+173} \lor \neg \left(t \leq 3.6 \cdot 10^{+237}\right):\\
\;\;\;\;y + x\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \frac{z}{a - t}\\
\end{array}
\end{array}
if t < -4.30000000000000025e173 or 3.60000000000000015e237 < t Initial program 99.9%
Taylor expanded in t around inf 90.2%
+-commutative90.2%
Simplified90.2%
if -4.30000000000000025e173 < t < 3.60000000000000015e237Initial program 96.7%
Taylor expanded in z around inf 79.1%
*-commutative79.1%
associate-/l*80.8%
associate-/r/80.7%
Simplified80.7%
Final simplification82.3%
(FPCore (x y z t a) :precision binary64 (if (or (<= t -4e+174) (not (<= t 3.6e+237))) (+ y x) (+ x (/ y (/ (- a t) z)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -4e+174) || !(t <= 3.6e+237)) {
tmp = y + x;
} else {
tmp = x + (y / ((a - t) / 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 ((t <= (-4d+174)) .or. (.not. (t <= 3.6d+237))) then
tmp = y + x
else
tmp = x + (y / ((a - t) / z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -4e+174) || !(t <= 3.6e+237)) {
tmp = y + x;
} else {
tmp = x + (y / ((a - t) / z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (t <= -4e+174) or not (t <= 3.6e+237): tmp = y + x else: tmp = x + (y / ((a - t) / z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((t <= -4e+174) || !(t <= 3.6e+237)) tmp = Float64(y + x); else tmp = Float64(x + Float64(y / Float64(Float64(a - t) / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((t <= -4e+174) || ~((t <= 3.6e+237))) tmp = y + x; else tmp = x + (y / ((a - t) / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[t, -4e+174], N[Not[LessEqual[t, 3.6e+237]], $MachinePrecision]], N[(y + x), $MachinePrecision], N[(x + N[(y / N[(N[(a - t), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -4 \cdot 10^{+174} \lor \neg \left(t \leq 3.6 \cdot 10^{+237}\right):\\
\;\;\;\;y + x\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y}{\frac{a - t}{z}}\\
\end{array}
\end{array}
if t < -4.00000000000000028e174 or 3.60000000000000015e237 < t Initial program 99.9%
Taylor expanded in t around inf 90.2%
+-commutative90.2%
Simplified90.2%
if -4.00000000000000028e174 < t < 3.60000000000000015e237Initial program 96.7%
Taylor expanded in z around inf 79.1%
associate-/l*81.2%
Simplified81.2%
Final simplification82.7%
(FPCore (x y z t a) :precision binary64 (if (or (<= t -7.2e-66) (not (<= t 9.6e+58))) (- x (/ y (/ t (- z t)))) (+ x (/ (* y z) (- a t)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -7.2e-66) || !(t <= 9.6e+58)) {
tmp = x - (y / (t / (z - t)));
} 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 <= (-7.2d-66)) .or. (.not. (t <= 9.6d+58))) then
tmp = x - (y / (t / (z - t)))
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 <= -7.2e-66) || !(t <= 9.6e+58)) {
tmp = x - (y / (t / (z - t)));
} else {
tmp = x + ((y * z) / (a - t));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (t <= -7.2e-66) or not (t <= 9.6e+58): tmp = x - (y / (t / (z - t))) else: tmp = x + ((y * z) / (a - t)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((t <= -7.2e-66) || !(t <= 9.6e+58)) tmp = Float64(x - Float64(y / Float64(t / Float64(z - t)))); else tmp = Float64(x + Float64(Float64(y * z) / Float64(a - t))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((t <= -7.2e-66) || ~((t <= 9.6e+58))) tmp = x - (y / (t / (z - t))); else tmp = x + ((y * z) / (a - t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[t, -7.2e-66], N[Not[LessEqual[t, 9.6e+58]], $MachinePrecision]], N[(x - N[(y / N[(t / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y * z), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -7.2 \cdot 10^{-66} \lor \neg \left(t \leq 9.6 \cdot 10^{+58}\right):\\
\;\;\;\;x - \frac{y}{\frac{t}{z - t}}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y \cdot z}{a - t}\\
\end{array}
\end{array}
if t < -7.20000000000000025e-66 or 9.5999999999999999e58 < t Initial program 99.8%
Taylor expanded in y around 0 78.6%
*-commutative78.6%
associate-/l*89.9%
Simplified89.9%
Taylor expanded in a around 0 70.2%
mul-1-neg70.2%
unsub-neg70.2%
associate-/l*85.7%
Simplified85.7%
if -7.20000000000000025e-66 < t < 9.5999999999999999e58Initial program 95.2%
Taylor expanded in z around inf 85.5%
Final simplification85.6%
(FPCore (x y z t a) :precision binary64 (if (<= z -3e+23) (+ x (* y (/ z (- a t)))) (if (<= z 0.0023) (- x (* t (/ y (- a t)))) (+ x (/ y (/ (- a t) z))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -3e+23) {
tmp = x + (y * (z / (a - t)));
} else if (z <= 0.0023) {
tmp = x - (t * (y / (a - t)));
} else {
tmp = x + (y / ((a - t) / 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 <= (-3d+23)) then
tmp = x + (y * (z / (a - t)))
else if (z <= 0.0023d0) then
tmp = x - (t * (y / (a - t)))
else
tmp = x + (y / ((a - t) / 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 <= -3e+23) {
tmp = x + (y * (z / (a - t)));
} else if (z <= 0.0023) {
tmp = x - (t * (y / (a - t)));
} else {
tmp = x + (y / ((a - t) / z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -3e+23: tmp = x + (y * (z / (a - t))) elif z <= 0.0023: tmp = x - (t * (y / (a - t))) else: tmp = x + (y / ((a - t) / z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -3e+23) tmp = Float64(x + Float64(y * Float64(z / Float64(a - t)))); elseif (z <= 0.0023) tmp = Float64(x - Float64(t * Float64(y / Float64(a - t)))); else tmp = Float64(x + Float64(y / Float64(Float64(a - t) / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -3e+23) tmp = x + (y * (z / (a - t))); elseif (z <= 0.0023) tmp = x - (t * (y / (a - t))); else tmp = x + (y / ((a - t) / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -3e+23], N[(x + N[(y * N[(z / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 0.0023], N[(x - N[(t * N[(y / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y / N[(N[(a - t), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3 \cdot 10^{+23}:\\
\;\;\;\;x + y \cdot \frac{z}{a - t}\\
\mathbf{elif}\;z \leq 0.0023:\\
\;\;\;\;x - t \cdot \frac{y}{a - t}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y}{\frac{a - t}{z}}\\
\end{array}
\end{array}
if z < -3.0000000000000001e23Initial program 94.0%
Taylor expanded in z around inf 82.7%
*-commutative82.7%
associate-/l*86.7%
associate-/r/84.7%
Simplified84.7%
if -3.0000000000000001e23 < z < 0.0023Initial program 99.9%
Taylor expanded in z around 0 83.0%
mul-1-neg83.0%
unsub-neg83.0%
associate-/l*86.3%
Simplified86.3%
clear-num86.3%
associate-/r/86.0%
clear-num86.1%
Applied egg-rr86.1%
if 0.0023 < z Initial program 93.6%
Taylor expanded in z around inf 75.3%
associate-/l*81.4%
Simplified81.4%
Final simplification84.7%
(FPCore (x y z t a) :precision binary64 (if (<= z -3.4e+23) (+ x (* y (/ z (- a t)))) (if (<= z 0.00115) (- x (/ t (/ (- a t) y))) (+ x (/ y (/ (- a t) z))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -3.4e+23) {
tmp = x + (y * (z / (a - t)));
} else if (z <= 0.00115) {
tmp = x - (t / ((a - t) / y));
} else {
tmp = x + (y / ((a - t) / 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 <= (-3.4d+23)) then
tmp = x + (y * (z / (a - t)))
else if (z <= 0.00115d0) then
tmp = x - (t / ((a - t) / y))
else
tmp = x + (y / ((a - t) / 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 <= -3.4e+23) {
tmp = x + (y * (z / (a - t)));
} else if (z <= 0.00115) {
tmp = x - (t / ((a - t) / y));
} else {
tmp = x + (y / ((a - t) / z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -3.4e+23: tmp = x + (y * (z / (a - t))) elif z <= 0.00115: tmp = x - (t / ((a - t) / y)) else: tmp = x + (y / ((a - t) / z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -3.4e+23) tmp = Float64(x + Float64(y * Float64(z / Float64(a - t)))); elseif (z <= 0.00115) tmp = Float64(x - Float64(t / Float64(Float64(a - t) / y))); else tmp = Float64(x + Float64(y / Float64(Float64(a - t) / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -3.4e+23) tmp = x + (y * (z / (a - t))); elseif (z <= 0.00115) tmp = x - (t / ((a - t) / y)); else tmp = x + (y / ((a - t) / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -3.4e+23], N[(x + N[(y * N[(z / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 0.00115], N[(x - N[(t / N[(N[(a - t), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y / N[(N[(a - t), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3.4 \cdot 10^{+23}:\\
\;\;\;\;x + y \cdot \frac{z}{a - t}\\
\mathbf{elif}\;z \leq 0.00115:\\
\;\;\;\;x - \frac{t}{\frac{a - t}{y}}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y}{\frac{a - t}{z}}\\
\end{array}
\end{array}
if z < -3.39999999999999992e23Initial program 94.0%
Taylor expanded in z around inf 82.7%
*-commutative82.7%
associate-/l*86.7%
associate-/r/84.7%
Simplified84.7%
if -3.39999999999999992e23 < z < 0.00115Initial program 99.9%
Taylor expanded in z around 0 83.0%
mul-1-neg83.0%
unsub-neg83.0%
associate-/l*86.3%
Simplified86.3%
if 0.00115 < z Initial program 93.6%
Taylor expanded in z around inf 75.3%
associate-/l*81.4%
Simplified81.4%
Final simplification84.8%
(FPCore (x y z t a) :precision binary64 (if (<= z -4.5e+23) (+ x (* y (/ z (- a t)))) (if (<= z 0.0075) (- x (* y (/ t (- a t)))) (+ x (/ y (/ (- a t) z))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -4.5e+23) {
tmp = x + (y * (z / (a - t)));
} else if (z <= 0.0075) {
tmp = x - (y * (t / (a - t)));
} else {
tmp = x + (y / ((a - t) / 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 <= (-4.5d+23)) then
tmp = x + (y * (z / (a - t)))
else if (z <= 0.0075d0) then
tmp = x - (y * (t / (a - t)))
else
tmp = x + (y / ((a - t) / 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 <= -4.5e+23) {
tmp = x + (y * (z / (a - t)));
} else if (z <= 0.0075) {
tmp = x - (y * (t / (a - t)));
} else {
tmp = x + (y / ((a - t) / z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -4.5e+23: tmp = x + (y * (z / (a - t))) elif z <= 0.0075: tmp = x - (y * (t / (a - t))) else: tmp = x + (y / ((a - t) / z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -4.5e+23) tmp = Float64(x + Float64(y * Float64(z / Float64(a - t)))); elseif (z <= 0.0075) tmp = Float64(x - Float64(y * Float64(t / Float64(a - t)))); else tmp = Float64(x + Float64(y / Float64(Float64(a - t) / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -4.5e+23) tmp = x + (y * (z / (a - t))); elseif (z <= 0.0075) tmp = x - (y * (t / (a - t))); else tmp = x + (y / ((a - t) / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -4.5e+23], N[(x + N[(y * N[(z / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 0.0075], N[(x - N[(y * N[(t / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y / N[(N[(a - t), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -4.5 \cdot 10^{+23}:\\
\;\;\;\;x + y \cdot \frac{z}{a - t}\\
\mathbf{elif}\;z \leq 0.0075:\\
\;\;\;\;x - y \cdot \frac{t}{a - t}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y}{\frac{a - t}{z}}\\
\end{array}
\end{array}
if z < -4.49999999999999979e23Initial program 94.0%
Taylor expanded in z around inf 82.7%
*-commutative82.7%
associate-/l*86.7%
associate-/r/84.7%
Simplified84.7%
if -4.49999999999999979e23 < z < 0.0074999999999999997Initial program 99.9%
Taylor expanded in z around 0 91.3%
neg-mul-191.3%
distribute-neg-frac91.3%
Simplified91.3%
if 0.0074999999999999997 < z Initial program 93.6%
Taylor expanded in z around inf 75.3%
associate-/l*81.4%
Simplified81.4%
Final simplification87.7%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -2e+21) (not (<= a 1.25e-73))) (+ x (* y (/ z a))) (+ y x)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -2e+21) || !(a <= 1.25e-73)) {
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 ((a <= (-2d+21)) .or. (.not. (a <= 1.25d-73))) 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 ((a <= -2e+21) || !(a <= 1.25e-73)) {
tmp = x + (y * (z / a));
} else {
tmp = y + x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -2e+21) or not (a <= 1.25e-73): tmp = x + (y * (z / a)) else: tmp = y + x return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -2e+21) || !(a <= 1.25e-73)) 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 ((a <= -2e+21) || ~((a <= 1.25e-73))) tmp = x + (y * (z / a)); else tmp = y + x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -2e+21], N[Not[LessEqual[a, 1.25e-73]], $MachinePrecision]], N[(x + N[(y * N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y + x), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -2 \cdot 10^{+21} \lor \neg \left(a \leq 1.25 \cdot 10^{-73}\right):\\
\;\;\;\;x + y \cdot \frac{z}{a}\\
\mathbf{else}:\\
\;\;\;\;y + x\\
\end{array}
\end{array}
if a < -2e21 or 1.25e-73 < a Initial program 99.8%
Taylor expanded in t around 0 80.4%
if -2e21 < a < 1.25e-73Initial program 94.4%
Taylor expanded in t around inf 64.3%
+-commutative64.3%
Simplified64.3%
Final simplification72.8%
(FPCore (x y z t a) :precision binary64 (if (<= a -2.05e+21) x (if (<= a 2.85e+178) (+ y x) x)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -2.05e+21) {
tmp = x;
} else if (a <= 2.85e+178) {
tmp = y + x;
} 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 <= (-2.05d+21)) then
tmp = x
else if (a <= 2.85d+178) then
tmp = y + x
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 <= -2.05e+21) {
tmp = x;
} else if (a <= 2.85e+178) {
tmp = y + x;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -2.05e+21: tmp = x elif a <= 2.85e+178: tmp = y + x else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -2.05e+21) tmp = x; elseif (a <= 2.85e+178) tmp = Float64(y + x); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -2.05e+21) tmp = x; elseif (a <= 2.85e+178) tmp = y + x; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -2.05e+21], x, If[LessEqual[a, 2.85e+178], N[(y + x), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -2.05 \cdot 10^{+21}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq 2.85 \cdot 10^{+178}:\\
\;\;\;\;y + x\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -2.05e21 or 2.85000000000000017e178 < a Initial program 99.8%
Taylor expanded in x around inf 65.4%
if -2.05e21 < a < 2.85000000000000017e178Initial program 96.0%
Taylor expanded in t around inf 62.9%
+-commutative62.9%
Simplified62.9%
Final simplification63.7%
(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 97.3%
Taylor expanded in x around inf 49.6%
Final simplification49.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 2024031
(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)))))