
(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(Float64(y * 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[(N[(y * N[(z - t), $MachinePrecision]), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{y \cdot \left(z - t\right)}{a - t}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 14 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(Float64(y * 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[(N[(y * N[(z - t), $MachinePrecision]), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{y \cdot \left(z - t\right)}{a - t}
\end{array}
(FPCore (x y z t a) :precision binary64 (+ x (/ y (/ (- a t) (- z t)))))
double code(double x, double y, double z, double t, double a) {
return x + (y / ((a - t) / (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 / ((a - t) / (z - t)))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + (y / ((a - t) / (z - t)));
}
def code(x, y, z, t, a): return x + (y / ((a - t) / (z - t)))
function code(x, y, z, t, a) return Float64(x + Float64(y / Float64(Float64(a - t) / Float64(z - t)))) end
function tmp = code(x, y, z, t, a) tmp = x + (y / ((a - t) / (z - t))); end
code[x_, y_, z_, t_, a_] := N[(x + N[(y / N[(N[(a - t), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{y}{\frac{a - t}{z - t}}
\end{array}
Initial program 88.9%
associate-/l*97.7%
Simplified97.7%
Final simplification97.7%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* z (/ y (- a t))))) (t_2 (- x (/ y (/ t (- z t))))))
(if (<= t -1.05e-17)
t_2
(if (<= t 1.7e-64)
t_1
(if (<= t 3.8e-43)
(- x (/ (* y t) (- a t)))
(if (<= t 6e+192) t_1 t_2))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + (z * (y / (a - t)));
double t_2 = x - (y / (t / (z - t)));
double tmp;
if (t <= -1.05e-17) {
tmp = t_2;
} else if (t <= 1.7e-64) {
tmp = t_1;
} else if (t <= 3.8e-43) {
tmp = x - ((y * t) / (a - t));
} else if (t <= 6e+192) {
tmp = t_1;
} else {
tmp = t_2;
}
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) :: t_2
real(8) :: tmp
t_1 = x + (z * (y / (a - t)))
t_2 = x - (y / (t / (z - t)))
if (t <= (-1.05d-17)) then
tmp = t_2
else if (t <= 1.7d-64) then
tmp = t_1
else if (t <= 3.8d-43) then
tmp = x - ((y * t) / (a - t))
else if (t <= 6d+192) then
tmp = t_1
else
tmp = t_2
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 - t)));
double t_2 = x - (y / (t / (z - t)));
double tmp;
if (t <= -1.05e-17) {
tmp = t_2;
} else if (t <= 1.7e-64) {
tmp = t_1;
} else if (t <= 3.8e-43) {
tmp = x - ((y * t) / (a - t));
} else if (t <= 6e+192) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + (z * (y / (a - t))) t_2 = x - (y / (t / (z - t))) tmp = 0 if t <= -1.05e-17: tmp = t_2 elif t <= 1.7e-64: tmp = t_1 elif t <= 3.8e-43: tmp = x - ((y * t) / (a - t)) elif t <= 6e+192: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(z * Float64(y / Float64(a - t)))) t_2 = Float64(x - Float64(y / Float64(t / Float64(z - t)))) tmp = 0.0 if (t <= -1.05e-17) tmp = t_2; elseif (t <= 1.7e-64) tmp = t_1; elseif (t <= 3.8e-43) tmp = Float64(x - Float64(Float64(y * t) / Float64(a - t))); elseif (t <= 6e+192) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + (z * (y / (a - t))); t_2 = x - (y / (t / (z - t))); tmp = 0.0; if (t <= -1.05e-17) tmp = t_2; elseif (t <= 1.7e-64) tmp = t_1; elseif (t <= 3.8e-43) tmp = x - ((y * t) / (a - t)); elseif (t <= 6e+192) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(z * N[(y / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x - N[(y / N[(t / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.05e-17], t$95$2, If[LessEqual[t, 1.7e-64], t$95$1, If[LessEqual[t, 3.8e-43], N[(x - N[(N[(y * t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 6e+192], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + z \cdot \frac{y}{a - t}\\
t_2 := x - \frac{y}{\frac{t}{z - t}}\\
\mathbf{if}\;t \leq -1.05 \cdot 10^{-17}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq 1.7 \cdot 10^{-64}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 3.8 \cdot 10^{-43}:\\
\;\;\;\;x - \frac{y \cdot t}{a - t}\\
\mathbf{elif}\;t \leq 6 \cdot 10^{+192}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if t < -1.04999999999999996e-17 or 6e192 < t Initial program 78.4%
associate-/l*99.9%
Simplified99.9%
Taylor expanded in a around 0 72.1%
mul-1-neg72.1%
unsub-neg72.1%
associate-/l*91.5%
Simplified91.5%
if -1.04999999999999996e-17 < t < 1.70000000000000006e-64 or 3.7999999999999997e-43 < t < 6e192Initial program 94.4%
associate-/l*96.2%
Simplified96.2%
Taylor expanded in z around inf 83.1%
associate-*l/86.3%
*-commutative86.3%
Simplified86.3%
if 1.70000000000000006e-64 < t < 3.7999999999999997e-43Initial program 99.8%
associate-/l*100.0%
Simplified100.0%
clear-num99.8%
associate-/r/100.0%
clear-num99.8%
Applied egg-rr99.8%
Taylor expanded in z around 0 99.8%
mul-1-neg99.8%
unsub-neg99.8%
Simplified99.8%
Final simplification88.6%
(FPCore (x y z t a)
:precision binary64
(if (<= t -1.02e+24)
(+ x y)
(if (<= t -5.4e-8)
(* y (- 1.0 (/ z t)))
(if (or (<= t -1.5e-152) (not (<= t 6.8e-106))) (+ x y) x))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -1.02e+24) {
tmp = x + y;
} else if (t <= -5.4e-8) {
tmp = y * (1.0 - (z / t));
} else if ((t <= -1.5e-152) || !(t <= 6.8e-106)) {
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 (t <= (-1.02d+24)) then
tmp = x + y
else if (t <= (-5.4d-8)) then
tmp = y * (1.0d0 - (z / t))
else if ((t <= (-1.5d-152)) .or. (.not. (t <= 6.8d-106))) 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 (t <= -1.02e+24) {
tmp = x + y;
} else if (t <= -5.4e-8) {
tmp = y * (1.0 - (z / t));
} else if ((t <= -1.5e-152) || !(t <= 6.8e-106)) {
tmp = x + y;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -1.02e+24: tmp = x + y elif t <= -5.4e-8: tmp = y * (1.0 - (z / t)) elif (t <= -1.5e-152) or not (t <= 6.8e-106): tmp = x + y else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -1.02e+24) tmp = Float64(x + y); elseif (t <= -5.4e-8) tmp = Float64(y * Float64(1.0 - Float64(z / t))); elseif ((t <= -1.5e-152) || !(t <= 6.8e-106)) tmp = Float64(x + y); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -1.02e+24) tmp = x + y; elseif (t <= -5.4e-8) tmp = y * (1.0 - (z / t)); elseif ((t <= -1.5e-152) || ~((t <= 6.8e-106))) tmp = x + y; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -1.02e+24], N[(x + y), $MachinePrecision], If[LessEqual[t, -5.4e-8], N[(y * N[(1.0 - N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[t, -1.5e-152], N[Not[LessEqual[t, 6.8e-106]], $MachinePrecision]], N[(x + y), $MachinePrecision], x]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.02 \cdot 10^{+24}:\\
\;\;\;\;x + y\\
\mathbf{elif}\;t \leq -5.4 \cdot 10^{-8}:\\
\;\;\;\;y \cdot \left(1 - \frac{z}{t}\right)\\
\mathbf{elif}\;t \leq -1.5 \cdot 10^{-152} \lor \neg \left(t \leq 6.8 \cdot 10^{-106}\right):\\
\;\;\;\;x + y\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if t < -1.02000000000000004e24 or -5.40000000000000005e-8 < t < -1.5e-152 or 6.79999999999999965e-106 < t Initial program 84.4%
associate-/l*98.8%
Simplified98.8%
Taylor expanded in t around inf 69.4%
+-commutative69.4%
Simplified69.4%
if -1.02000000000000004e24 < t < -5.40000000000000005e-8Initial program 100.0%
associate-/l*99.8%
Simplified99.8%
Taylor expanded in a around 0 72.2%
mul-1-neg72.2%
unsub-neg72.2%
associate-/l*72.2%
Simplified72.2%
Taylor expanded in y around inf 65.6%
if -1.5e-152 < t < 6.79999999999999965e-106Initial program 97.4%
associate-/l*94.9%
Simplified94.9%
Taylor expanded in x around inf 60.8%
Final simplification66.7%
(FPCore (x y z t a)
:precision binary64
(if (<= t -1.1e+24)
(+ x y)
(if (<= t -5.4e-22)
(* y (- 1.0 (/ z t)))
(if (<= t -2.05e-120)
(* y (/ (- z t) a))
(if (<= t 3.5e-102) x (+ x y))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -1.1e+24) {
tmp = x + y;
} else if (t <= -5.4e-22) {
tmp = y * (1.0 - (z / t));
} else if (t <= -2.05e-120) {
tmp = y * ((z - t) / a);
} else if (t <= 3.5e-102) {
tmp = x;
} 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 (t <= (-1.1d+24)) then
tmp = x + y
else if (t <= (-5.4d-22)) then
tmp = y * (1.0d0 - (z / t))
else if (t <= (-2.05d-120)) then
tmp = y * ((z - t) / a)
else if (t <= 3.5d-102) then
tmp = x
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 (t <= -1.1e+24) {
tmp = x + y;
} else if (t <= -5.4e-22) {
tmp = y * (1.0 - (z / t));
} else if (t <= -2.05e-120) {
tmp = y * ((z - t) / a);
} else if (t <= 3.5e-102) {
tmp = x;
} else {
tmp = x + y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -1.1e+24: tmp = x + y elif t <= -5.4e-22: tmp = y * (1.0 - (z / t)) elif t <= -2.05e-120: tmp = y * ((z - t) / a) elif t <= 3.5e-102: tmp = x else: tmp = x + y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -1.1e+24) tmp = Float64(x + y); elseif (t <= -5.4e-22) tmp = Float64(y * Float64(1.0 - Float64(z / t))); elseif (t <= -2.05e-120) tmp = Float64(y * Float64(Float64(z - t) / a)); elseif (t <= 3.5e-102) tmp = x; else tmp = Float64(x + y); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -1.1e+24) tmp = x + y; elseif (t <= -5.4e-22) tmp = y * (1.0 - (z / t)); elseif (t <= -2.05e-120) tmp = y * ((z - t) / a); elseif (t <= 3.5e-102) tmp = x; else tmp = x + y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -1.1e+24], N[(x + y), $MachinePrecision], If[LessEqual[t, -5.4e-22], N[(y * N[(1.0 - N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -2.05e-120], N[(y * N[(N[(z - t), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.5e-102], x, N[(x + y), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.1 \cdot 10^{+24}:\\
\;\;\;\;x + y\\
\mathbf{elif}\;t \leq -5.4 \cdot 10^{-22}:\\
\;\;\;\;y \cdot \left(1 - \frac{z}{t}\right)\\
\mathbf{elif}\;t \leq -2.05 \cdot 10^{-120}:\\
\;\;\;\;y \cdot \frac{z - t}{a}\\
\mathbf{elif}\;t \leq 3.5 \cdot 10^{-102}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;x + y\\
\end{array}
\end{array}
if t < -1.10000000000000001e24 or 3.49999999999999986e-102 < t Initial program 82.5%
associate-/l*98.5%
Simplified98.5%
Taylor expanded in t around inf 74.0%
+-commutative74.0%
Simplified74.0%
if -1.10000000000000001e24 < t < -5.4000000000000004e-22Initial program 100.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 -5.4000000000000004e-22 < t < -2.05000000000000017e-120Initial program 89.3%
associate-/l*100.0%
Simplified100.0%
Taylor expanded in a around inf 73.2%
+-commutative73.2%
associate-/l*83.8%
Simplified83.8%
Taylor expanded in y around inf 50.9%
div-sub50.9%
Simplified50.9%
if -2.05000000000000017e-120 < t < 3.49999999999999986e-102Initial program 97.6%
associate-/l*95.4%
Simplified95.4%
Taylor expanded in x around inf 58.8%
Final simplification66.9%
(FPCore (x y z t a)
:precision binary64
(if (<= t -1.05e+24)
(+ x y)
(if (<= t -1.95e-19)
(* y (- 1.0 (/ z t)))
(if (<= t -1.8e-120)
(* (- z t) (/ y a))
(if (<= t 3.4e-102) x (+ x y))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -1.05e+24) {
tmp = x + y;
} else if (t <= -1.95e-19) {
tmp = y * (1.0 - (z / t));
} else if (t <= -1.8e-120) {
tmp = (z - t) * (y / a);
} else if (t <= 3.4e-102) {
tmp = x;
} 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 (t <= (-1.05d+24)) then
tmp = x + y
else if (t <= (-1.95d-19)) then
tmp = y * (1.0d0 - (z / t))
else if (t <= (-1.8d-120)) then
tmp = (z - t) * (y / a)
else if (t <= 3.4d-102) then
tmp = x
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 (t <= -1.05e+24) {
tmp = x + y;
} else if (t <= -1.95e-19) {
tmp = y * (1.0 - (z / t));
} else if (t <= -1.8e-120) {
tmp = (z - t) * (y / a);
} else if (t <= 3.4e-102) {
tmp = x;
} else {
tmp = x + y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -1.05e+24: tmp = x + y elif t <= -1.95e-19: tmp = y * (1.0 - (z / t)) elif t <= -1.8e-120: tmp = (z - t) * (y / a) elif t <= 3.4e-102: tmp = x else: tmp = x + y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -1.05e+24) tmp = Float64(x + y); elseif (t <= -1.95e-19) tmp = Float64(y * Float64(1.0 - Float64(z / t))); elseif (t <= -1.8e-120) tmp = Float64(Float64(z - t) * Float64(y / a)); elseif (t <= 3.4e-102) tmp = x; else tmp = Float64(x + y); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -1.05e+24) tmp = x + y; elseif (t <= -1.95e-19) tmp = y * (1.0 - (z / t)); elseif (t <= -1.8e-120) tmp = (z - t) * (y / a); elseif (t <= 3.4e-102) tmp = x; else tmp = x + y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -1.05e+24], N[(x + y), $MachinePrecision], If[LessEqual[t, -1.95e-19], N[(y * N[(1.0 - N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -1.8e-120], N[(N[(z - t), $MachinePrecision] * N[(y / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.4e-102], x, N[(x + y), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.05 \cdot 10^{+24}:\\
\;\;\;\;x + y\\
\mathbf{elif}\;t \leq -1.95 \cdot 10^{-19}:\\
\;\;\;\;y \cdot \left(1 - \frac{z}{t}\right)\\
\mathbf{elif}\;t \leq -1.8 \cdot 10^{-120}:\\
\;\;\;\;\left(z - t\right) \cdot \frac{y}{a}\\
\mathbf{elif}\;t \leq 3.4 \cdot 10^{-102}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;x + y\\
\end{array}
\end{array}
if t < -1.0500000000000001e24 or 3.40000000000000013e-102 < t Initial program 82.5%
associate-/l*98.5%
Simplified98.5%
Taylor expanded in t around inf 74.0%
+-commutative74.0%
Simplified74.0%
if -1.0500000000000001e24 < t < -1.94999999999999998e-19Initial program 100.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 -1.94999999999999998e-19 < t < -1.8000000000000001e-120Initial program 89.3%
associate-/l*100.0%
Simplified100.0%
Taylor expanded in a around inf 73.2%
+-commutative73.2%
Simplified73.2%
Taylor expanded in y around inf 50.9%
div-sub50.9%
associate-*r/45.9%
associate-*l/50.9%
*-commutative50.9%
Simplified50.9%
if -1.8000000000000001e-120 < t < 3.40000000000000013e-102Initial program 97.6%
associate-/l*95.4%
Simplified95.4%
Taylor expanded in x around inf 58.8%
Final simplification66.9%
(FPCore (x y z t a) :precision binary64 (if (or (<= t -1.85e+50) (not (<= t 3.6e+237))) (+ x y) (+ x (* z (/ y (- a t))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -1.85e+50) || !(t <= 3.6e+237)) {
tmp = x + y;
} else {
tmp = x + (z * (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 ((t <= (-1.85d+50)) .or. (.not. (t <= 3.6d+237))) then
tmp = x + y
else
tmp = x + (z * (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 ((t <= -1.85e+50) || !(t <= 3.6e+237)) {
tmp = x + y;
} else {
tmp = x + (z * (y / (a - t)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (t <= -1.85e+50) or not (t <= 3.6e+237): tmp = x + y else: tmp = x + (z * (y / (a - t))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((t <= -1.85e+50) || !(t <= 3.6e+237)) tmp = Float64(x + y); else tmp = Float64(x + Float64(z * Float64(y / Float64(a - t)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((t <= -1.85e+50) || ~((t <= 3.6e+237))) tmp = x + y; else tmp = x + (z * (y / (a - t))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[t, -1.85e+50], N[Not[LessEqual[t, 3.6e+237]], $MachinePrecision]], N[(x + y), $MachinePrecision], N[(x + N[(z * N[(y / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.85 \cdot 10^{+50} \lor \neg \left(t \leq 3.6 \cdot 10^{+237}\right):\\
\;\;\;\;x + y\\
\mathbf{else}:\\
\;\;\;\;x + z \cdot \frac{y}{a - t}\\
\end{array}
\end{array}
if t < -1.85e50 or 3.60000000000000015e237 < t Initial program 70.3%
associate-/l*99.9%
Simplified99.9%
Taylor expanded in t around inf 85.3%
+-commutative85.3%
Simplified85.3%
if -1.85e50 < t < 3.60000000000000015e237Initial program 95.4%
associate-/l*96.9%
Simplified96.9%
Taylor expanded in z around inf 80.4%
associate-*l/83.0%
*-commutative83.0%
Simplified83.0%
Final simplification83.6%
(FPCore (x y z t a) :precision binary64 (if (or (<= t -4.5e-17) (not (<= t 6e+192))) (- x (/ y (/ t (- z t)))) (+ x (* z (/ y (- a t))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -4.5e-17) || !(t <= 6e+192)) {
tmp = x - (y / (t / (z - t)));
} else {
tmp = x + (z * (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 ((t <= (-4.5d-17)) .or. (.not. (t <= 6d+192))) then
tmp = x - (y / (t / (z - t)))
else
tmp = x + (z * (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 ((t <= -4.5e-17) || !(t <= 6e+192)) {
tmp = x - (y / (t / (z - t)));
} else {
tmp = x + (z * (y / (a - t)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (t <= -4.5e-17) or not (t <= 6e+192): tmp = x - (y / (t / (z - t))) else: tmp = x + (z * (y / (a - t))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((t <= -4.5e-17) || !(t <= 6e+192)) tmp = Float64(x - Float64(y / Float64(t / Float64(z - t)))); else tmp = Float64(x + Float64(z * Float64(y / Float64(a - t)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((t <= -4.5e-17) || ~((t <= 6e+192))) tmp = x - (y / (t / (z - t))); else tmp = x + (z * (y / (a - t))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[t, -4.5e-17], N[Not[LessEqual[t, 6e+192]], $MachinePrecision]], N[(x - N[(y / N[(t / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(z * N[(y / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -4.5 \cdot 10^{-17} \lor \neg \left(t \leq 6 \cdot 10^{+192}\right):\\
\;\;\;\;x - \frac{y}{\frac{t}{z - t}}\\
\mathbf{else}:\\
\;\;\;\;x + z \cdot \frac{y}{a - t}\\
\end{array}
\end{array}
if t < -4.49999999999999978e-17 or 6e192 < t Initial program 78.4%
associate-/l*99.9%
Simplified99.9%
Taylor expanded in a around 0 72.1%
mul-1-neg72.1%
unsub-neg72.1%
associate-/l*91.5%
Simplified91.5%
if -4.49999999999999978e-17 < t < 6e192Initial program 94.7%
associate-/l*96.4%
Simplified96.4%
Taylor expanded in z around inf 81.0%
associate-*l/84.2%
*-commutative84.2%
Simplified84.2%
Final simplification86.8%
(FPCore (x y z t a) :precision binary64 (if (<= t -2.5e+50) (+ x (+ y (/ a (/ t y)))) (if (<= t 3.6e+237) (+ x (* z (/ y (- a t)))) (+ x y))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -2.5e+50) {
tmp = x + (y + (a / (t / y)));
} else if (t <= 3.6e+237) {
tmp = x + (z * (y / (a - t)));
} 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 (t <= (-2.5d+50)) then
tmp = x + (y + (a / (t / y)))
else if (t <= 3.6d+237) then
tmp = x + (z * (y / (a - t)))
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 (t <= -2.5e+50) {
tmp = x + (y + (a / (t / y)));
} else if (t <= 3.6e+237) {
tmp = x + (z * (y / (a - t)));
} else {
tmp = x + y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -2.5e+50: tmp = x + (y + (a / (t / y))) elif t <= 3.6e+237: tmp = x + (z * (y / (a - t))) else: tmp = x + y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -2.5e+50) tmp = Float64(x + Float64(y + Float64(a / Float64(t / y)))); elseif (t <= 3.6e+237) tmp = Float64(x + Float64(z * Float64(y / Float64(a - t)))); else tmp = Float64(x + y); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -2.5e+50) tmp = x + (y + (a / (t / y))); elseif (t <= 3.6e+237) tmp = x + (z * (y / (a - t))); else tmp = x + y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -2.5e+50], N[(x + N[(y + N[(a / N[(t / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.6e+237], N[(x + N[(z * N[(y / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + y), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.5 \cdot 10^{+50}:\\
\;\;\;\;x + \left(y + \frac{a}{\frac{t}{y}}\right)\\
\mathbf{elif}\;t \leq 3.6 \cdot 10^{+237}:\\
\;\;\;\;x + z \cdot \frac{y}{a - t}\\
\mathbf{else}:\\
\;\;\;\;x + y\\
\end{array}
\end{array}
if t < -2.5e50Initial program 72.6%
associate-/l*99.8%
Simplified99.8%
Taylor expanded in z around 0 64.0%
+-commutative64.0%
mul-1-neg64.0%
*-commutative64.0%
associate-*l/81.8%
distribute-rgt-neg-out81.8%
Simplified81.8%
Taylor expanded in a around 0 72.5%
associate-/l*81.9%
Simplified81.9%
if -2.5e50 < t < 3.60000000000000015e237Initial program 95.4%
associate-/l*96.9%
Simplified96.9%
Taylor expanded in z around inf 80.4%
associate-*l/83.0%
*-commutative83.0%
Simplified83.0%
if 3.60000000000000015e237 < t Initial program 62.5%
associate-/l*100.0%
Simplified100.0%
Taylor expanded in t around inf 97.1%
+-commutative97.1%
Simplified97.1%
Final simplification83.6%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -2.05e+21) (not (<= a 1.2e-73))) (+ x (/ (* y z) a)) (+ x y)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -2.05e+21) || !(a <= 1.2e-73)) {
tmp = x + ((y * z) / 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 <= (-2.05d+21)) .or. (.not. (a <= 1.2d-73))) then
tmp = x + ((y * z) / 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 <= -2.05e+21) || !(a <= 1.2e-73)) {
tmp = x + ((y * z) / a);
} else {
tmp = x + y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -2.05e+21) or not (a <= 1.2e-73): tmp = x + ((y * z) / a) else: tmp = x + y return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -2.05e+21) || !(a <= 1.2e-73)) tmp = Float64(x + Float64(Float64(y * z) / a)); else tmp = Float64(x + y); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a <= -2.05e+21) || ~((a <= 1.2e-73))) tmp = x + ((y * z) / a); else tmp = x + y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -2.05e+21], N[Not[LessEqual[a, 1.2e-73]], $MachinePrecision]], N[(x + N[(N[(y * z), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], N[(x + y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -2.05 \cdot 10^{+21} \lor \neg \left(a \leq 1.2 \cdot 10^{-73}\right):\\
\;\;\;\;x + \frac{y \cdot z}{a}\\
\mathbf{else}:\\
\;\;\;\;x + y\\
\end{array}
\end{array}
if a < -2.05e21 or 1.20000000000000003e-73 < a Initial program 88.8%
associate-/l*99.9%
Simplified99.9%
Taylor expanded in t around 0 74.5%
if -2.05e21 < a < 1.20000000000000003e-73Initial program 89.0%
associate-/l*95.2%
Simplified95.2%
Taylor expanded in t around inf 65.6%
+-commutative65.6%
Simplified65.6%
Final simplification70.3%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -2e+21) (not (<= a 1.25e-73))) (+ x (* z (/ y a))) (+ x y)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -2e+21) || !(a <= 1.25e-73)) {
tmp = x + (z * (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 <= (-2d+21)) .or. (.not. (a <= 1.25d-73))) then
tmp = x + (z * (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 <= -2e+21) || !(a <= 1.25e-73)) {
tmp = x + (z * (y / a));
} else {
tmp = x + y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -2e+21) or not (a <= 1.25e-73): tmp = x + (z * (y / a)) else: tmp = x + y return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -2e+21) || !(a <= 1.25e-73)) tmp = Float64(x + Float64(z * 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 <= -2e+21) || ~((a <= 1.25e-73))) tmp = x + (z * (y / a)); else tmp = x + y; 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[(z * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + y), $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 + z \cdot \frac{y}{a}\\
\mathbf{else}:\\
\;\;\;\;x + y\\
\end{array}
\end{array}
if a < -2e21 or 1.25e-73 < a Initial program 88.8%
associate-/l*99.9%
Simplified99.9%
Taylor expanded in t around 0 74.5%
+-commutative74.5%
associate-/l*79.8%
Simplified79.8%
associate-/r/77.9%
Applied egg-rr77.9%
if -2e21 < a < 1.25e-73Initial program 89.0%
associate-/l*95.2%
Simplified95.2%
Taylor expanded in t around inf 65.6%
+-commutative65.6%
Simplified65.6%
Final simplification72.1%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -2e+21) (not (<= a 1.25e-73))) (+ x (/ y (/ a z))) (+ x y)))
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 / (a / 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 ((a <= (-2d+21)) .or. (.not. (a <= 1.25d-73))) then
tmp = x + (y / (a / 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 ((a <= -2e+21) || !(a <= 1.25e-73)) {
tmp = x + (y / (a / z));
} else {
tmp = x + y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -2e+21) or not (a <= 1.25e-73): tmp = x + (y / (a / z)) else: tmp = x + y 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(a / z))); else tmp = Float64(x + y); 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 / (a / z)); else tmp = x + y; 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[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + y), $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 + \frac{y}{\frac{a}{z}}\\
\mathbf{else}:\\
\;\;\;\;x + y\\
\end{array}
\end{array}
if a < -2e21 or 1.25e-73 < a Initial program 88.8%
associate-/l*99.9%
Simplified99.9%
Taylor expanded in t around 0 74.5%
+-commutative74.5%
associate-/l*79.8%
Simplified79.8%
if -2e21 < a < 1.25e-73Initial program 89.0%
associate-/l*95.2%
Simplified95.2%
Taylor expanded in t around inf 65.6%
+-commutative65.6%
Simplified65.6%
Final simplification73.1%
(FPCore (x y z t a) :precision binary64 (if (or (<= t -2.1e-153) (not (<= t 6.4e-102))) (+ x y) x))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -2.1e-153) || !(t <= 6.4e-102)) {
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 ((t <= (-2.1d-153)) .or. (.not. (t <= 6.4d-102))) 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 ((t <= -2.1e-153) || !(t <= 6.4e-102)) {
tmp = x + y;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (t <= -2.1e-153) or not (t <= 6.4e-102): tmp = x + y else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((t <= -2.1e-153) || !(t <= 6.4e-102)) tmp = Float64(x + y); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((t <= -2.1e-153) || ~((t <= 6.4e-102))) tmp = x + y; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[t, -2.1e-153], N[Not[LessEqual[t, 6.4e-102]], $MachinePrecision]], N[(x + y), $MachinePrecision], x]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.1 \cdot 10^{-153} \lor \neg \left(t \leq 6.4 \cdot 10^{-102}\right):\\
\;\;\;\;x + y\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if t < -2.10000000000000004e-153 or 6.39999999999999973e-102 < t Initial program 85.3%
associate-/l*98.8%
Simplified98.8%
Taylor expanded in t around inf 66.3%
+-commutative66.3%
Simplified66.3%
if -2.10000000000000004e-153 < t < 6.39999999999999973e-102Initial program 97.4%
associate-/l*94.9%
Simplified94.9%
Taylor expanded in x around inf 60.8%
Final simplification64.6%
(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 88.9%
associate-/l*97.7%
Simplified97.7%
clear-num97.6%
associate-/r/97.2%
clear-num97.3%
Applied egg-rr97.3%
Final simplification97.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 88.9%
associate-/l*97.7%
Simplified97.7%
Taylor expanded in x around inf 49.4%
Final simplification49.4%
(FPCore (x y z t a) :precision binary64 (+ x (/ y (/ (- a t) (- z t)))))
double code(double x, double y, double z, double t, double a) {
return x + (y / ((a - t) / (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 / ((a - t) / (z - t)))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + (y / ((a - t) / (z - t)));
}
def code(x, y, z, t, a): return x + (y / ((a - t) / (z - t)))
function code(x, y, z, t, a) return Float64(x + Float64(y / Float64(Float64(a - t) / Float64(z - t)))) end
function tmp = code(x, y, z, t, a) tmp = x + (y / ((a - t) / (z - t))); end
code[x_, y_, z_, t_, a_] := N[(x + N[(y / N[(N[(a - t), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{y}{\frac{a - t}{z - t}}
\end{array}
herbie shell --seed 2024031
(FPCore (x y z t a)
:name "Graphics.Rendering.Plot.Render.Plot.Axis:renderAxisTicks from plot-0.2.3.4, B"
:precision binary64
:herbie-target
(+ x (/ y (/ (- a t) (- z t))))
(+ x (/ (* y (- z t)) (- a t))))