
(FPCore (x y z t a) :precision binary64 (+ x (/ (* (- y x) (- z t)) (- a t))))
double code(double x, double y, double z, double t, double a) {
return x + (((y - x) * (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 - x) * (z - t)) / (a - t))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + (((y - x) * (z - t)) / (a - t));
}
def code(x, y, z, t, a): return x + (((y - x) * (z - t)) / (a - t))
function code(x, y, z, t, a) return Float64(x + Float64(Float64(Float64(y - x) * Float64(z - t)) / Float64(a - t))) end
function tmp = code(x, y, z, t, a) tmp = x + (((y - x) * (z - t)) / (a - t)); end
code[x_, y_, z_, t_, a_] := N[(x + N[(N[(N[(y - x), $MachinePrecision] * N[(z - t), $MachinePrecision]), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{\left(y - x\right) \cdot \left(z - t\right)}{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 x) (- z t)) (- a t))))
double code(double x, double y, double z, double t, double a) {
return x + (((y - x) * (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 - x) * (z - t)) / (a - t))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + (((y - x) * (z - t)) / (a - t));
}
def code(x, y, z, t, a): return x + (((y - x) * (z - t)) / (a - t))
function code(x, y, z, t, a) return Float64(x + Float64(Float64(Float64(y - x) * Float64(z - t)) / Float64(a - t))) end
function tmp = code(x, y, z, t, a) tmp = x + (((y - x) * (z - t)) / (a - t)); end
code[x_, y_, z_, t_, a_] := N[(x + N[(N[(N[(y - x), $MachinePrecision] * N[(z - t), $MachinePrecision]), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{\left(y - x\right) \cdot \left(z - t\right)}{a - t}
\end{array}
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (/ (* (- y x) (- z t)) (- a t)))))
(if (<= t_1 (- INFINITY))
(+ y (* (/ (- y x) t) (- a z)))
(if (<= t_1 -5e-270)
t_1
(if (<= t_1 0.0)
(+ y (- (/ (* z (- x y)) t) (/ (* a (- x y)) t)))
(fma (- y x) (/ (- z t) (- a t)) x))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + (((y - x) * (z - t)) / (a - t));
double tmp;
if (t_1 <= -((double) INFINITY)) {
tmp = y + (((y - x) / t) * (a - z));
} else if (t_1 <= -5e-270) {
tmp = t_1;
} else if (t_1 <= 0.0) {
tmp = y + (((z * (x - y)) / t) - ((a * (x - y)) / t));
} else {
tmp = fma((y - x), ((z - t) / (a - t)), x);
}
return tmp;
}
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(Float64(y - x) * Float64(z - t)) / Float64(a - t))) tmp = 0.0 if (t_1 <= Float64(-Inf)) tmp = Float64(y + Float64(Float64(Float64(y - x) / t) * Float64(a - z))); elseif (t_1 <= -5e-270) tmp = t_1; elseif (t_1 <= 0.0) tmp = Float64(y + Float64(Float64(Float64(z * Float64(x - y)) / t) - Float64(Float64(a * Float64(x - y)) / t))); else tmp = fma(Float64(y - x), Float64(Float64(z - t) / Float64(a - t)), x); end return tmp end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(N[(y - x), $MachinePrecision] * N[(z - t), $MachinePrecision]), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, (-Infinity)], N[(y + N[(N[(N[(y - x), $MachinePrecision] / t), $MachinePrecision] * N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, -5e-270], t$95$1, If[LessEqual[t$95$1, 0.0], N[(y + N[(N[(N[(z * N[(x - y), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision] - N[(N[(a * N[(x - y), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y - x), $MachinePrecision] * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \frac{\left(y - x\right) \cdot \left(z - t\right)}{a - t}\\
\mathbf{if}\;t\_1 \leq -\infty:\\
\;\;\;\;y + \frac{y - x}{t} \cdot \left(a - z\right)\\
\mathbf{elif}\;t\_1 \leq -5 \cdot 10^{-270}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t\_1 \leq 0:\\
\;\;\;\;y + \left(\frac{z \cdot \left(x - y\right)}{t} - \frac{a \cdot \left(x - y\right)}{t}\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(y - x, \frac{z - t}{a - t}, x\right)\\
\end{array}
\end{array}
if (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < -inf.0Initial program 31.5%
Taylor expanded in t around inf 57.1%
associate--l+57.1%
distribute-lft-out--57.1%
div-sub59.4%
mul-1-neg59.4%
unsub-neg59.4%
div-sub57.1%
associate-/l*68.4%
associate-/l*83.7%
distribute-rgt-out--88.3%
Simplified88.3%
if -inf.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < -4.9999999999999998e-270Initial program 97.6%
if -4.9999999999999998e-270 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < 0.0Initial program 3.9%
Taylor expanded in t around inf 100.0%
associate--l+100.0%
associate-*r/100.0%
associate-*r*100.0%
mul-1-neg100.0%
associate-*r/100.0%
associate-*r*100.0%
mul-1-neg100.0%
Simplified100.0%
if 0.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) Initial program 70.7%
+-commutative70.7%
associate-/l*89.8%
fma-define89.7%
Simplified89.7%
Final simplification92.8%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (/ (* (- y x) (- z t)) (- a t)))))
(if (<= t_1 (- INFINITY))
(+ y (* (/ (- y x) t) (- a z)))
(if (<= t_1 -5e-270)
t_1
(if (<= t_1 0.0)
(+ y (- (/ (* z (- x y)) t) (/ (* a (- x y)) t)))
(if (<= t_1 1e+276)
t_1
(+ x (* (- z t) (* (- y x) (/ 1.0 (- a t)))))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + (((y - x) * (z - t)) / (a - t));
double tmp;
if (t_1 <= -((double) INFINITY)) {
tmp = y + (((y - x) / t) * (a - z));
} else if (t_1 <= -5e-270) {
tmp = t_1;
} else if (t_1 <= 0.0) {
tmp = y + (((z * (x - y)) / t) - ((a * (x - y)) / t));
} else if (t_1 <= 1e+276) {
tmp = t_1;
} else {
tmp = x + ((z - t) * ((y - x) * (1.0 / (a - t))));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x + (((y - x) * (z - t)) / (a - t));
double tmp;
if (t_1 <= -Double.POSITIVE_INFINITY) {
tmp = y + (((y - x) / t) * (a - z));
} else if (t_1 <= -5e-270) {
tmp = t_1;
} else if (t_1 <= 0.0) {
tmp = y + (((z * (x - y)) / t) - ((a * (x - y)) / t));
} else if (t_1 <= 1e+276) {
tmp = t_1;
} else {
tmp = x + ((z - t) * ((y - x) * (1.0 / (a - t))));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + (((y - x) * (z - t)) / (a - t)) tmp = 0 if t_1 <= -math.inf: tmp = y + (((y - x) / t) * (a - z)) elif t_1 <= -5e-270: tmp = t_1 elif t_1 <= 0.0: tmp = y + (((z * (x - y)) / t) - ((a * (x - y)) / t)) elif t_1 <= 1e+276: tmp = t_1 else: tmp = x + ((z - t) * ((y - x) * (1.0 / (a - t)))) return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(Float64(y - x) * Float64(z - t)) / Float64(a - t))) tmp = 0.0 if (t_1 <= Float64(-Inf)) tmp = Float64(y + Float64(Float64(Float64(y - x) / t) * Float64(a - z))); elseif (t_1 <= -5e-270) tmp = t_1; elseif (t_1 <= 0.0) tmp = Float64(y + Float64(Float64(Float64(z * Float64(x - y)) / t) - Float64(Float64(a * Float64(x - y)) / t))); elseif (t_1 <= 1e+276) tmp = t_1; else tmp = Float64(x + Float64(Float64(z - t) * Float64(Float64(y - x) * Float64(1.0 / Float64(a - t))))); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + (((y - x) * (z - t)) / (a - t)); tmp = 0.0; if (t_1 <= -Inf) tmp = y + (((y - x) / t) * (a - z)); elseif (t_1 <= -5e-270) tmp = t_1; elseif (t_1 <= 0.0) tmp = y + (((z * (x - y)) / t) - ((a * (x - y)) / t)); elseif (t_1 <= 1e+276) tmp = t_1; else tmp = x + ((z - t) * ((y - x) * (1.0 / (a - t)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(N[(y - x), $MachinePrecision] * N[(z - t), $MachinePrecision]), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, (-Infinity)], N[(y + N[(N[(N[(y - x), $MachinePrecision] / t), $MachinePrecision] * N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, -5e-270], t$95$1, If[LessEqual[t$95$1, 0.0], N[(y + N[(N[(N[(z * N[(x - y), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision] - N[(N[(a * N[(x - y), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 1e+276], t$95$1, N[(x + N[(N[(z - t), $MachinePrecision] * N[(N[(y - x), $MachinePrecision] * N[(1.0 / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \frac{\left(y - x\right) \cdot \left(z - t\right)}{a - t}\\
\mathbf{if}\;t\_1 \leq -\infty:\\
\;\;\;\;y + \frac{y - x}{t} \cdot \left(a - z\right)\\
\mathbf{elif}\;t\_1 \leq -5 \cdot 10^{-270}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t\_1 \leq 0:\\
\;\;\;\;y + \left(\frac{z \cdot \left(x - y\right)}{t} - \frac{a \cdot \left(x - y\right)}{t}\right)\\
\mathbf{elif}\;t\_1 \leq 10^{+276}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;x + \left(z - t\right) \cdot \left(\left(y - x\right) \cdot \frac{1}{a - t}\right)\\
\end{array}
\end{array}
if (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < -inf.0Initial program 31.5%
Taylor expanded in t around inf 57.1%
associate--l+57.1%
distribute-lft-out--57.1%
div-sub59.4%
mul-1-neg59.4%
unsub-neg59.4%
div-sub57.1%
associate-/l*68.4%
associate-/l*83.7%
distribute-rgt-out--88.3%
Simplified88.3%
if -inf.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < -4.9999999999999998e-270 or 0.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < 1.0000000000000001e276Initial program 97.5%
if -4.9999999999999998e-270 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < 0.0Initial program 3.9%
Taylor expanded in t around inf 100.0%
associate--l+100.0%
associate-*r/100.0%
associate-*r*100.0%
mul-1-neg100.0%
associate-*r/100.0%
associate-*r*100.0%
mul-1-neg100.0%
Simplified100.0%
if 1.0000000000000001e276 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) Initial program 43.0%
div-inv43.0%
*-commutative43.0%
associate-*l*81.6%
Applied egg-rr81.6%
Final simplification92.8%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (/ (* (- y x) (- z t)) (- a t)))))
(if (<= t_1 (- INFINITY))
(+ y (* (/ (- y x) t) (- a z)))
(if (<= t_1 -5e-270)
t_1
(if (<= t_1 0.0)
(+ y (/ (- (* z (- x y)) (* a (- x y))) t))
(if (<= t_1 1e+276)
t_1
(+ x (* (- z t) (* (- y x) (/ 1.0 (- a t)))))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + (((y - x) * (z - t)) / (a - t));
double tmp;
if (t_1 <= -((double) INFINITY)) {
tmp = y + (((y - x) / t) * (a - z));
} else if (t_1 <= -5e-270) {
tmp = t_1;
} else if (t_1 <= 0.0) {
tmp = y + (((z * (x - y)) - (a * (x - y))) / t);
} else if (t_1 <= 1e+276) {
tmp = t_1;
} else {
tmp = x + ((z - t) * ((y - x) * (1.0 / (a - t))));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x + (((y - x) * (z - t)) / (a - t));
double tmp;
if (t_1 <= -Double.POSITIVE_INFINITY) {
tmp = y + (((y - x) / t) * (a - z));
} else if (t_1 <= -5e-270) {
tmp = t_1;
} else if (t_1 <= 0.0) {
tmp = y + (((z * (x - y)) - (a * (x - y))) / t);
} else if (t_1 <= 1e+276) {
tmp = t_1;
} else {
tmp = x + ((z - t) * ((y - x) * (1.0 / (a - t))));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + (((y - x) * (z - t)) / (a - t)) tmp = 0 if t_1 <= -math.inf: tmp = y + (((y - x) / t) * (a - z)) elif t_1 <= -5e-270: tmp = t_1 elif t_1 <= 0.0: tmp = y + (((z * (x - y)) - (a * (x - y))) / t) elif t_1 <= 1e+276: tmp = t_1 else: tmp = x + ((z - t) * ((y - x) * (1.0 / (a - t)))) return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(Float64(y - x) * Float64(z - t)) / Float64(a - t))) tmp = 0.0 if (t_1 <= Float64(-Inf)) tmp = Float64(y + Float64(Float64(Float64(y - x) / t) * Float64(a - z))); elseif (t_1 <= -5e-270) tmp = t_1; elseif (t_1 <= 0.0) tmp = Float64(y + Float64(Float64(Float64(z * Float64(x - y)) - Float64(a * Float64(x - y))) / t)); elseif (t_1 <= 1e+276) tmp = t_1; else tmp = Float64(x + Float64(Float64(z - t) * Float64(Float64(y - x) * Float64(1.0 / Float64(a - t))))); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + (((y - x) * (z - t)) / (a - t)); tmp = 0.0; if (t_1 <= -Inf) tmp = y + (((y - x) / t) * (a - z)); elseif (t_1 <= -5e-270) tmp = t_1; elseif (t_1 <= 0.0) tmp = y + (((z * (x - y)) - (a * (x - y))) / t); elseif (t_1 <= 1e+276) tmp = t_1; else tmp = x + ((z - t) * ((y - x) * (1.0 / (a - t)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(N[(y - x), $MachinePrecision] * N[(z - t), $MachinePrecision]), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, (-Infinity)], N[(y + N[(N[(N[(y - x), $MachinePrecision] / t), $MachinePrecision] * N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, -5e-270], t$95$1, If[LessEqual[t$95$1, 0.0], N[(y + N[(N[(N[(z * N[(x - y), $MachinePrecision]), $MachinePrecision] - N[(a * N[(x - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 1e+276], t$95$1, N[(x + N[(N[(z - t), $MachinePrecision] * N[(N[(y - x), $MachinePrecision] * N[(1.0 / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \frac{\left(y - x\right) \cdot \left(z - t\right)}{a - t}\\
\mathbf{if}\;t\_1 \leq -\infty:\\
\;\;\;\;y + \frac{y - x}{t} \cdot \left(a - z\right)\\
\mathbf{elif}\;t\_1 \leq -5 \cdot 10^{-270}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t\_1 \leq 0:\\
\;\;\;\;y + \frac{z \cdot \left(x - y\right) - a \cdot \left(x - y\right)}{t}\\
\mathbf{elif}\;t\_1 \leq 10^{+276}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;x + \left(z - t\right) \cdot \left(\left(y - x\right) \cdot \frac{1}{a - t}\right)\\
\end{array}
\end{array}
if (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < -inf.0Initial program 31.5%
Taylor expanded in t around inf 57.1%
associate--l+57.1%
distribute-lft-out--57.1%
div-sub59.4%
mul-1-neg59.4%
unsub-neg59.4%
div-sub57.1%
associate-/l*68.4%
associate-/l*83.7%
distribute-rgt-out--88.3%
Simplified88.3%
if -inf.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < -4.9999999999999998e-270 or 0.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < 1.0000000000000001e276Initial program 97.5%
if -4.9999999999999998e-270 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < 0.0Initial program 3.9%
Taylor expanded in t around -inf 99.9%
if 1.0000000000000001e276 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) Initial program 43.0%
div-inv43.0%
*-commutative43.0%
associate-*l*81.6%
Applied egg-rr81.6%
Final simplification92.8%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* y (/ z a))))
(if (<= t -1.25e+107)
y
(if (<= t -1.05e-145)
x
(if (<= t -2.3e-207)
t_1
(if (<= t -3.1e-238)
x
(if (<= t 8.5e-204)
t_1
(if (<= t 4.5e-97) x (if (<= t 4.05e+36) t_1 y)))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = y * (z / a);
double tmp;
if (t <= -1.25e+107) {
tmp = y;
} else if (t <= -1.05e-145) {
tmp = x;
} else if (t <= -2.3e-207) {
tmp = t_1;
} else if (t <= -3.1e-238) {
tmp = x;
} else if (t <= 8.5e-204) {
tmp = t_1;
} else if (t <= 4.5e-97) {
tmp = x;
} else if (t <= 4.05e+36) {
tmp = t_1;
} 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) :: t_1
real(8) :: tmp
t_1 = y * (z / a)
if (t <= (-1.25d+107)) then
tmp = y
else if (t <= (-1.05d-145)) then
tmp = x
else if (t <= (-2.3d-207)) then
tmp = t_1
else if (t <= (-3.1d-238)) then
tmp = x
else if (t <= 8.5d-204) then
tmp = t_1
else if (t <= 4.5d-97) then
tmp = x
else if (t <= 4.05d+36) then
tmp = t_1
else
tmp = y
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 / a);
double tmp;
if (t <= -1.25e+107) {
tmp = y;
} else if (t <= -1.05e-145) {
tmp = x;
} else if (t <= -2.3e-207) {
tmp = t_1;
} else if (t <= -3.1e-238) {
tmp = x;
} else if (t <= 8.5e-204) {
tmp = t_1;
} else if (t <= 4.5e-97) {
tmp = x;
} else if (t <= 4.05e+36) {
tmp = t_1;
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = y * (z / a) tmp = 0 if t <= -1.25e+107: tmp = y elif t <= -1.05e-145: tmp = x elif t <= -2.3e-207: tmp = t_1 elif t <= -3.1e-238: tmp = x elif t <= 8.5e-204: tmp = t_1 elif t <= 4.5e-97: tmp = x elif t <= 4.05e+36: tmp = t_1 else: tmp = y return tmp
function code(x, y, z, t, a) t_1 = Float64(y * Float64(z / a)) tmp = 0.0 if (t <= -1.25e+107) tmp = y; elseif (t <= -1.05e-145) tmp = x; elseif (t <= -2.3e-207) tmp = t_1; elseif (t <= -3.1e-238) tmp = x; elseif (t <= 8.5e-204) tmp = t_1; elseif (t <= 4.5e-97) tmp = x; elseif (t <= 4.05e+36) tmp = t_1; else tmp = y; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = y * (z / a); tmp = 0.0; if (t <= -1.25e+107) tmp = y; elseif (t <= -1.05e-145) tmp = x; elseif (t <= -2.3e-207) tmp = t_1; elseif (t <= -3.1e-238) tmp = x; elseif (t <= 8.5e-204) tmp = t_1; elseif (t <= 4.5e-97) tmp = x; elseif (t <= 4.05e+36) tmp = t_1; else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(y * N[(z / a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.25e+107], y, If[LessEqual[t, -1.05e-145], x, If[LessEqual[t, -2.3e-207], t$95$1, If[LessEqual[t, -3.1e-238], x, If[LessEqual[t, 8.5e-204], t$95$1, If[LessEqual[t, 4.5e-97], x, If[LessEqual[t, 4.05e+36], t$95$1, y]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \frac{z}{a}\\
\mathbf{if}\;t \leq -1.25 \cdot 10^{+107}:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq -1.05 \cdot 10^{-145}:\\
\;\;\;\;x\\
\mathbf{elif}\;t \leq -2.3 \cdot 10^{-207}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -3.1 \cdot 10^{-238}:\\
\;\;\;\;x\\
\mathbf{elif}\;t \leq 8.5 \cdot 10^{-204}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 4.5 \cdot 10^{-97}:\\
\;\;\;\;x\\
\mathbf{elif}\;t \leq 4.05 \cdot 10^{+36}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if t < -1.25e107 or 4.05000000000000015e36 < t Initial program 42.1%
Taylor expanded in t around inf 50.9%
if -1.25e107 < t < -1.04999999999999996e-145 or -2.3000000000000001e-207 < t < -3.1000000000000001e-238 or 8.4999999999999997e-204 < t < 4.5000000000000001e-97Initial program 87.8%
Taylor expanded in a around inf 43.4%
if -1.04999999999999996e-145 < t < -2.3000000000000001e-207 or -3.1000000000000001e-238 < t < 8.4999999999999997e-204 or 4.5000000000000001e-97 < t < 4.05000000000000015e36Initial program 87.3%
div-inv87.2%
*-commutative87.2%
associate-*l*90.9%
Applied egg-rr90.9%
div-inv91.0%
clear-num90.8%
un-div-inv93.3%
Applied egg-rr93.3%
Taylor expanded in x around 0 48.5%
associate-*r/57.2%
Simplified57.2%
Taylor expanded in t around 0 37.7%
associate-/l*46.2%
Simplified46.2%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* x (- 1.0 (/ z a)))))
(if (<= t -4.2e+103)
y
(if (<= t -9.5e-146)
t_1
(if (<= t -5.2e-207)
(* y (/ z (- a t)))
(if (<= t -2.15e-306)
t_1
(if (<= t 5.6e-275) (* y (/ z a)) (if (<= t 3.4e+46) t_1 y))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x * (1.0 - (z / a));
double tmp;
if (t <= -4.2e+103) {
tmp = y;
} else if (t <= -9.5e-146) {
tmp = t_1;
} else if (t <= -5.2e-207) {
tmp = y * (z / (a - t));
} else if (t <= -2.15e-306) {
tmp = t_1;
} else if (t <= 5.6e-275) {
tmp = y * (z / a);
} else if (t <= 3.4e+46) {
tmp = t_1;
} 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) :: t_1
real(8) :: tmp
t_1 = x * (1.0d0 - (z / a))
if (t <= (-4.2d+103)) then
tmp = y
else if (t <= (-9.5d-146)) then
tmp = t_1
else if (t <= (-5.2d-207)) then
tmp = y * (z / (a - t))
else if (t <= (-2.15d-306)) then
tmp = t_1
else if (t <= 5.6d-275) then
tmp = y * (z / a)
else if (t <= 3.4d+46) then
tmp = t_1
else
tmp = y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x * (1.0 - (z / a));
double tmp;
if (t <= -4.2e+103) {
tmp = y;
} else if (t <= -9.5e-146) {
tmp = t_1;
} else if (t <= -5.2e-207) {
tmp = y * (z / (a - t));
} else if (t <= -2.15e-306) {
tmp = t_1;
} else if (t <= 5.6e-275) {
tmp = y * (z / a);
} else if (t <= 3.4e+46) {
tmp = t_1;
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x * (1.0 - (z / a)) tmp = 0 if t <= -4.2e+103: tmp = y elif t <= -9.5e-146: tmp = t_1 elif t <= -5.2e-207: tmp = y * (z / (a - t)) elif t <= -2.15e-306: tmp = t_1 elif t <= 5.6e-275: tmp = y * (z / a) elif t <= 3.4e+46: tmp = t_1 else: tmp = y return tmp
function code(x, y, z, t, a) t_1 = Float64(x * Float64(1.0 - Float64(z / a))) tmp = 0.0 if (t <= -4.2e+103) tmp = y; elseif (t <= -9.5e-146) tmp = t_1; elseif (t <= -5.2e-207) tmp = Float64(y * Float64(z / Float64(a - t))); elseif (t <= -2.15e-306) tmp = t_1; elseif (t <= 5.6e-275) tmp = Float64(y * Float64(z / a)); elseif (t <= 3.4e+46) tmp = t_1; else tmp = y; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x * (1.0 - (z / a)); tmp = 0.0; if (t <= -4.2e+103) tmp = y; elseif (t <= -9.5e-146) tmp = t_1; elseif (t <= -5.2e-207) tmp = y * (z / (a - t)); elseif (t <= -2.15e-306) tmp = t_1; elseif (t <= 5.6e-275) tmp = y * (z / a); elseif (t <= 3.4e+46) tmp = t_1; else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x * N[(1.0 - N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -4.2e+103], y, If[LessEqual[t, -9.5e-146], t$95$1, If[LessEqual[t, -5.2e-207], N[(y * N[(z / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -2.15e-306], t$95$1, If[LessEqual[t, 5.6e-275], N[(y * N[(z / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.4e+46], t$95$1, y]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(1 - \frac{z}{a}\right)\\
\mathbf{if}\;t \leq -4.2 \cdot 10^{+103}:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq -9.5 \cdot 10^{-146}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -5.2 \cdot 10^{-207}:\\
\;\;\;\;y \cdot \frac{z}{a - t}\\
\mathbf{elif}\;t \leq -2.15 \cdot 10^{-306}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 5.6 \cdot 10^{-275}:\\
\;\;\;\;y \cdot \frac{z}{a}\\
\mathbf{elif}\;t \leq 3.4 \cdot 10^{+46}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if t < -4.2000000000000003e103 or 3.3999999999999998e46 < t Initial program 41.1%
Taylor expanded in t around inf 50.9%
if -4.2000000000000003e103 < t < -9.5000000000000005e-146 or -5.1999999999999998e-207 < t < -2.15e-306 or 5.59999999999999989e-275 < t < 3.3999999999999998e46Initial program 87.7%
Taylor expanded in x around inf 59.5%
mul-1-neg59.5%
unsub-neg59.5%
Simplified59.5%
Taylor expanded in t around 0 55.8%
if -9.5000000000000005e-146 < t < -5.1999999999999998e-207Initial program 87.0%
div-inv86.6%
*-commutative86.6%
associate-*l*87.1%
Applied egg-rr87.1%
Taylor expanded in z around inf 72.5%
div-sub72.5%
Simplified72.5%
Taylor expanded in y around inf 54.5%
associate-/l*60.6%
Simplified60.6%
if -2.15e-306 < t < 5.59999999999999989e-275Initial program 99.6%
div-inv99.4%
*-commutative99.4%
associate-*l*87.8%
Applied egg-rr87.8%
div-inv87.8%
clear-num87.8%
un-div-inv94.0%
Applied egg-rr94.0%
Taylor expanded in x around 0 88.1%
associate-*r/88.3%
Simplified88.3%
Taylor expanded in t around 0 88.1%
associate-/l*88.3%
Simplified88.3%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* x (- 1.0 (/ z a)))))
(if (<= t -2.85e+103)
y
(if (<= t -2.15e-306)
t_1
(if (<= t 2.15e-275) (* y (/ z a)) (if (<= t 2.6e+46) t_1 y))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x * (1.0 - (z / a));
double tmp;
if (t <= -2.85e+103) {
tmp = y;
} else if (t <= -2.15e-306) {
tmp = t_1;
} else if (t <= 2.15e-275) {
tmp = y * (z / a);
} else if (t <= 2.6e+46) {
tmp = t_1;
} 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) :: t_1
real(8) :: tmp
t_1 = x * (1.0d0 - (z / a))
if (t <= (-2.85d+103)) then
tmp = y
else if (t <= (-2.15d-306)) then
tmp = t_1
else if (t <= 2.15d-275) then
tmp = y * (z / a)
else if (t <= 2.6d+46) then
tmp = t_1
else
tmp = y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x * (1.0 - (z / a));
double tmp;
if (t <= -2.85e+103) {
tmp = y;
} else if (t <= -2.15e-306) {
tmp = t_1;
} else if (t <= 2.15e-275) {
tmp = y * (z / a);
} else if (t <= 2.6e+46) {
tmp = t_1;
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x * (1.0 - (z / a)) tmp = 0 if t <= -2.85e+103: tmp = y elif t <= -2.15e-306: tmp = t_1 elif t <= 2.15e-275: tmp = y * (z / a) elif t <= 2.6e+46: tmp = t_1 else: tmp = y return tmp
function code(x, y, z, t, a) t_1 = Float64(x * Float64(1.0 - Float64(z / a))) tmp = 0.0 if (t <= -2.85e+103) tmp = y; elseif (t <= -2.15e-306) tmp = t_1; elseif (t <= 2.15e-275) tmp = Float64(y * Float64(z / a)); elseif (t <= 2.6e+46) tmp = t_1; else tmp = y; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x * (1.0 - (z / a)); tmp = 0.0; if (t <= -2.85e+103) tmp = y; elseif (t <= -2.15e-306) tmp = t_1; elseif (t <= 2.15e-275) tmp = y * (z / a); elseif (t <= 2.6e+46) tmp = t_1; else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x * N[(1.0 - N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2.85e+103], y, If[LessEqual[t, -2.15e-306], t$95$1, If[LessEqual[t, 2.15e-275], N[(y * N[(z / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.6e+46], t$95$1, y]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(1 - \frac{z}{a}\right)\\
\mathbf{if}\;t \leq -2.85 \cdot 10^{+103}:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq -2.15 \cdot 10^{-306}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 2.15 \cdot 10^{-275}:\\
\;\;\;\;y \cdot \frac{z}{a}\\
\mathbf{elif}\;t \leq 2.6 \cdot 10^{+46}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if t < -2.85000000000000016e103 or 2.60000000000000013e46 < t Initial program 41.1%
Taylor expanded in t around inf 50.9%
if -2.85000000000000016e103 < t < -2.15e-306 or 2.14999999999999988e-275 < t < 2.60000000000000013e46Initial program 87.6%
Taylor expanded in x around inf 57.1%
mul-1-neg57.1%
unsub-neg57.1%
Simplified57.1%
Taylor expanded in t around 0 53.2%
if -2.15e-306 < t < 2.14999999999999988e-275Initial program 99.6%
div-inv99.4%
*-commutative99.4%
associate-*l*87.8%
Applied egg-rr87.8%
div-inv87.8%
clear-num87.8%
un-div-inv94.0%
Applied egg-rr94.0%
Taylor expanded in x around 0 88.1%
associate-*r/88.3%
Simplified88.3%
Taylor expanded in t around 0 88.1%
associate-/l*88.3%
Simplified88.3%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* z (/ (- y x) a)))))
(if (<= x -230000000.0)
t_1
(if (<= x 3.1e-89)
(* y (/ (- z t) (- a t)))
(if (<= x 1.34e+163) t_1 (* x (/ (- z a) t)))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + (z * ((y - x) / a));
double tmp;
if (x <= -230000000.0) {
tmp = t_1;
} else if (x <= 3.1e-89) {
tmp = y * ((z - t) / (a - t));
} else if (x <= 1.34e+163) {
tmp = t_1;
} else {
tmp = x * ((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) :: t_1
real(8) :: tmp
t_1 = x + (z * ((y - x) / a))
if (x <= (-230000000.0d0)) then
tmp = t_1
else if (x <= 3.1d-89) then
tmp = y * ((z - t) / (a - t))
else if (x <= 1.34d+163) then
tmp = t_1
else
tmp = x * ((z - a) / t)
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 - x) / a));
double tmp;
if (x <= -230000000.0) {
tmp = t_1;
} else if (x <= 3.1e-89) {
tmp = y * ((z - t) / (a - t));
} else if (x <= 1.34e+163) {
tmp = t_1;
} else {
tmp = x * ((z - a) / t);
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + (z * ((y - x) / a)) tmp = 0 if x <= -230000000.0: tmp = t_1 elif x <= 3.1e-89: tmp = y * ((z - t) / (a - t)) elif x <= 1.34e+163: tmp = t_1 else: tmp = x * ((z - a) / t) return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(z * Float64(Float64(y - x) / a))) tmp = 0.0 if (x <= -230000000.0) tmp = t_1; elseif (x <= 3.1e-89) tmp = Float64(y * Float64(Float64(z - t) / Float64(a - t))); elseif (x <= 1.34e+163) tmp = t_1; else tmp = Float64(x * Float64(Float64(z - a) / t)); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + (z * ((y - x) / a)); tmp = 0.0; if (x <= -230000000.0) tmp = t_1; elseif (x <= 3.1e-89) tmp = y * ((z - t) / (a - t)); elseif (x <= 1.34e+163) tmp = t_1; else tmp = x * ((z - a) / t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(z * N[(N[(y - x), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -230000000.0], t$95$1, If[LessEqual[x, 3.1e-89], N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.34e+163], t$95$1, N[(x * N[(N[(z - a), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + z \cdot \frac{y - x}{a}\\
\mathbf{if}\;x \leq -230000000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 3.1 \cdot 10^{-89}:\\
\;\;\;\;y \cdot \frac{z - t}{a - t}\\
\mathbf{elif}\;x \leq 1.34 \cdot 10^{+163}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;x \cdot \frac{z - a}{t}\\
\end{array}
\end{array}
if x < -2.3e8 or 3.09999999999999996e-89 < x < 1.33999999999999998e163Initial program 65.4%
Taylor expanded in t around 0 55.5%
associate-/l*57.3%
Simplified57.3%
if -2.3e8 < x < 3.09999999999999996e-89Initial program 80.9%
div-inv80.8%
*-commutative80.8%
associate-*l*82.8%
Applied egg-rr82.8%
div-inv82.9%
clear-num81.3%
un-div-inv82.2%
Applied egg-rr82.2%
Taylor expanded in x around 0 68.7%
associate-*r/81.5%
Simplified81.5%
if 1.33999999999999998e163 < x Initial program 50.7%
Taylor expanded in x around inf 48.3%
mul-1-neg48.3%
unsub-neg48.3%
Simplified48.3%
Taylor expanded in t around inf 47.6%
mul-1-neg47.6%
sub-neg47.6%
mul-1-neg47.6%
Simplified47.6%
Taylor expanded in x around 0 47.6%
div-sub47.6%
Simplified47.6%
(FPCore (x y z t a) :precision binary64 (if (or (<= t -2.2e+103) (not (<= t 2.7e+75))) (+ y (* (/ (- y x) t) (- a z))) (+ x (/ (- z t) (/ (- a t) (- y x))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -2.2e+103) || !(t <= 2.7e+75)) {
tmp = y + (((y - x) / t) * (a - z));
} else {
tmp = x + ((z - t) / ((a - t) / (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 <= (-2.2d+103)) .or. (.not. (t <= 2.7d+75))) then
tmp = y + (((y - x) / t) * (a - z))
else
tmp = x + ((z - t) / ((a - t) / (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 <= -2.2e+103) || !(t <= 2.7e+75)) {
tmp = y + (((y - x) / t) * (a - z));
} else {
tmp = x + ((z - t) / ((a - t) / (y - x)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (t <= -2.2e+103) or not (t <= 2.7e+75): tmp = y + (((y - x) / t) * (a - z)) else: tmp = x + ((z - t) / ((a - t) / (y - x))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((t <= -2.2e+103) || !(t <= 2.7e+75)) tmp = Float64(y + Float64(Float64(Float64(y - x) / t) * Float64(a - z))); else tmp = Float64(x + Float64(Float64(z - t) / Float64(Float64(a - t) / Float64(y - x)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((t <= -2.2e+103) || ~((t <= 2.7e+75))) tmp = y + (((y - x) / t) * (a - z)); else tmp = x + ((z - t) / ((a - t) / (y - x))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[t, -2.2e+103], N[Not[LessEqual[t, 2.7e+75]], $MachinePrecision]], N[(y + N[(N[(N[(y - x), $MachinePrecision] / t), $MachinePrecision] * N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(z - t), $MachinePrecision] / N[(N[(a - t), $MachinePrecision] / N[(y - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.2 \cdot 10^{+103} \lor \neg \left(t \leq 2.7 \cdot 10^{+75}\right):\\
\;\;\;\;y + \frac{y - x}{t} \cdot \left(a - z\right)\\
\mathbf{else}:\\
\;\;\;\;x + \frac{z - t}{\frac{a - t}{y - x}}\\
\end{array}
\end{array}
if t < -2.19999999999999992e103 or 2.69999999999999998e75 < t Initial program 39.9%
Taylor expanded in t around inf 63.4%
associate--l+63.4%
distribute-lft-out--63.4%
div-sub63.4%
mul-1-neg63.4%
unsub-neg63.4%
div-sub63.4%
associate-/l*76.3%
associate-/l*87.3%
distribute-rgt-out--87.3%
Simplified87.3%
if -2.19999999999999992e103 < t < 2.69999999999999998e75Initial program 88.4%
div-inv88.4%
*-commutative88.4%
associate-*l*88.9%
Applied egg-rr88.9%
div-inv89.0%
clear-num88.9%
un-div-inv90.6%
Applied egg-rr90.6%
Final simplification89.3%
(FPCore (x y z t a) :precision binary64 (if (or (<= t -4e+101) (not (<= t 3.5e+74))) (+ y (* (/ (- y x) t) (- a z))) (+ x (/ (* (- y x) (- z t)) (- a t)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -4e+101) || !(t <= 3.5e+74)) {
tmp = y + (((y - x) / t) * (a - z));
} else {
tmp = x + (((y - x) * (z - t)) / (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 <= (-4d+101)) .or. (.not. (t <= 3.5d+74))) then
tmp = y + (((y - x) / t) * (a - z))
else
tmp = x + (((y - x) * (z - t)) / (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 <= -4e+101) || !(t <= 3.5e+74)) {
tmp = y + (((y - x) / t) * (a - z));
} else {
tmp = x + (((y - x) * (z - t)) / (a - t));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (t <= -4e+101) or not (t <= 3.5e+74): tmp = y + (((y - x) / t) * (a - z)) else: tmp = x + (((y - x) * (z - t)) / (a - t)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((t <= -4e+101) || !(t <= 3.5e+74)) tmp = Float64(y + Float64(Float64(Float64(y - x) / t) * Float64(a - z))); else tmp = Float64(x + Float64(Float64(Float64(y - x) * Float64(z - t)) / Float64(a - t))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((t <= -4e+101) || ~((t <= 3.5e+74))) tmp = y + (((y - x) / t) * (a - z)); else tmp = x + (((y - x) * (z - t)) / (a - t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[t, -4e+101], N[Not[LessEqual[t, 3.5e+74]], $MachinePrecision]], N[(y + N[(N[(N[(y - x), $MachinePrecision] / t), $MachinePrecision] * N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(N[(y - x), $MachinePrecision] * N[(z - t), $MachinePrecision]), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -4 \cdot 10^{+101} \lor \neg \left(t \leq 3.5 \cdot 10^{+74}\right):\\
\;\;\;\;y + \frac{y - x}{t} \cdot \left(a - z\right)\\
\mathbf{else}:\\
\;\;\;\;x + \frac{\left(y - x\right) \cdot \left(z - t\right)}{a - t}\\
\end{array}
\end{array}
if t < -3.9999999999999999e101 or 3.50000000000000014e74 < t Initial program 39.9%
Taylor expanded in t around inf 63.4%
associate--l+63.4%
distribute-lft-out--63.4%
div-sub63.4%
mul-1-neg63.4%
unsub-neg63.4%
div-sub63.4%
associate-/l*76.3%
associate-/l*87.3%
distribute-rgt-out--87.3%
Simplified87.3%
if -3.9999999999999999e101 < t < 3.50000000000000014e74Initial program 88.4%
Final simplification88.0%
(FPCore (x y z t a) :precision binary64 (if (or (<= t -1.3e+102) (not (<= t 1.25e+46))) (+ y (* (/ (- y x) t) (- a z))) (+ x (* z (/ (- y x) (- a t))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -1.3e+102) || !(t <= 1.25e+46)) {
tmp = y + (((y - x) / t) * (a - z));
} else {
tmp = x + (z * ((y - x) / (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.3d+102)) .or. (.not. (t <= 1.25d+46))) then
tmp = y + (((y - x) / t) * (a - z))
else
tmp = x + (z * ((y - x) / (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.3e+102) || !(t <= 1.25e+46)) {
tmp = y + (((y - x) / t) * (a - z));
} else {
tmp = x + (z * ((y - x) / (a - t)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (t <= -1.3e+102) or not (t <= 1.25e+46): tmp = y + (((y - x) / t) * (a - z)) else: tmp = x + (z * ((y - x) / (a - t))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((t <= -1.3e+102) || !(t <= 1.25e+46)) tmp = Float64(y + Float64(Float64(Float64(y - x) / t) * Float64(a - z))); else tmp = Float64(x + Float64(z * Float64(Float64(y - x) / Float64(a - t)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((t <= -1.3e+102) || ~((t <= 1.25e+46))) tmp = y + (((y - x) / t) * (a - z)); else tmp = x + (z * ((y - x) / (a - t))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[t, -1.3e+102], N[Not[LessEqual[t, 1.25e+46]], $MachinePrecision]], N[(y + N[(N[(N[(y - x), $MachinePrecision] / t), $MachinePrecision] * N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(z * N[(N[(y - x), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.3 \cdot 10^{+102} \lor \neg \left(t \leq 1.25 \cdot 10^{+46}\right):\\
\;\;\;\;y + \frac{y - x}{t} \cdot \left(a - z\right)\\
\mathbf{else}:\\
\;\;\;\;x + z \cdot \frac{y - x}{a - t}\\
\end{array}
\end{array}
if t < -1.30000000000000003e102 or 1.2500000000000001e46 < t Initial program 40.7%
Taylor expanded in t around inf 63.5%
associate--l+63.5%
distribute-lft-out--63.5%
div-sub63.5%
mul-1-neg63.5%
unsub-neg63.5%
div-sub63.5%
associate-/l*76.0%
associate-/l*86.7%
distribute-rgt-out--86.7%
Simplified86.7%
if -1.30000000000000003e102 < t < 1.2500000000000001e46Initial program 88.8%
Taylor expanded in z around inf 80.8%
associate-/l*82.7%
Simplified82.7%
Final simplification84.3%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -5400000.0) (not (<= z 3.7e+193))) (* z (/ (- y x) (- a t))) (- x (* y (/ (- t z) (- a t))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -5400000.0) || !(z <= 3.7e+193)) {
tmp = z * ((y - x) / (a - t));
} else {
tmp = x - (y * ((t - 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 ((z <= (-5400000.0d0)) .or. (.not. (z <= 3.7d+193))) then
tmp = z * ((y - x) / (a - t))
else
tmp = x - (y * ((t - 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 ((z <= -5400000.0) || !(z <= 3.7e+193)) {
tmp = z * ((y - x) / (a - t));
} else {
tmp = x - (y * ((t - z) / (a - t)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -5400000.0) or not (z <= 3.7e+193): tmp = z * ((y - x) / (a - t)) else: tmp = x - (y * ((t - z) / (a - t))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -5400000.0) || !(z <= 3.7e+193)) tmp = Float64(z * Float64(Float64(y - x) / Float64(a - t))); else tmp = Float64(x - Float64(y * Float64(Float64(t - z) / Float64(a - t)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((z <= -5400000.0) || ~((z <= 3.7e+193))) tmp = z * ((y - x) / (a - t)); else tmp = x - (y * ((t - z) / (a - t))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -5400000.0], N[Not[LessEqual[z, 3.7e+193]], $MachinePrecision]], N[(z * N[(N[(y - x), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x - N[(y * N[(N[(t - z), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -5400000 \lor \neg \left(z \leq 3.7 \cdot 10^{+193}\right):\\
\;\;\;\;z \cdot \frac{y - x}{a - t}\\
\mathbf{else}:\\
\;\;\;\;x - y \cdot \frac{t - z}{a - t}\\
\end{array}
\end{array}
if z < -5.4e6 or 3.7000000000000003e193 < z Initial program 70.6%
div-inv70.4%
*-commutative70.4%
associate-*l*89.6%
Applied egg-rr89.6%
Taylor expanded in z around inf 86.1%
div-sub87.3%
Simplified87.3%
if -5.4e6 < z < 3.7000000000000003e193Initial program 69.8%
Taylor expanded in y around inf 64.2%
associate-/l*71.0%
Simplified71.0%
Final simplification76.4%
(FPCore (x y z t a) :precision binary64 (if (or (<= x -112000000.0) (not (<= x 1.62e+38))) (* x (+ (/ (- t z) (- a t)) 1.0)) (* y (/ (- z t) (- a t)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((x <= -112000000.0) || !(x <= 1.62e+38)) {
tmp = x * (((t - z) / (a - t)) + 1.0);
} else {
tmp = y * ((z - t) / (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 ((x <= (-112000000.0d0)) .or. (.not. (x <= 1.62d+38))) then
tmp = x * (((t - z) / (a - t)) + 1.0d0)
else
tmp = y * ((z - t) / (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 ((x <= -112000000.0) || !(x <= 1.62e+38)) {
tmp = x * (((t - z) / (a - t)) + 1.0);
} else {
tmp = y * ((z - t) / (a - t));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (x <= -112000000.0) or not (x <= 1.62e+38): tmp = x * (((t - z) / (a - t)) + 1.0) else: tmp = y * ((z - t) / (a - t)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((x <= -112000000.0) || !(x <= 1.62e+38)) tmp = Float64(x * Float64(Float64(Float64(t - z) / Float64(a - t)) + 1.0)); else tmp = Float64(y * Float64(Float64(z - t) / Float64(a - t))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((x <= -112000000.0) || ~((x <= 1.62e+38))) tmp = x * (((t - z) / (a - t)) + 1.0); else tmp = y * ((z - t) / (a - t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[x, -112000000.0], N[Not[LessEqual[x, 1.62e+38]], $MachinePrecision]], N[(x * N[(N[(N[(t - z), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision], N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -112000000 \lor \neg \left(x \leq 1.62 \cdot 10^{+38}\right):\\
\;\;\;\;x \cdot \left(\frac{t - z}{a - t} + 1\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \frac{z - t}{a - t}\\
\end{array}
\end{array}
if x < -1.12e8 or 1.62000000000000001e38 < x Initial program 60.2%
Taylor expanded in x around inf 62.4%
mul-1-neg62.4%
unsub-neg62.4%
Simplified62.4%
if -1.12e8 < x < 1.62000000000000001e38Initial program 80.3%
div-inv80.2%
*-commutative80.2%
associate-*l*83.4%
Applied egg-rr83.4%
div-inv83.5%
clear-num82.1%
un-div-inv82.9%
Applied egg-rr82.9%
Taylor expanded in x around 0 65.8%
associate-*r/78.5%
Simplified78.5%
Final simplification70.3%
(FPCore (x y z t a) :precision binary64 (if (or (<= x -59000000000.0) (not (<= x 1.7e+44))) (* x (- 1.0 (/ z a))) (* y (/ (- z t) (- a t)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((x <= -59000000000.0) || !(x <= 1.7e+44)) {
tmp = x * (1.0 - (z / a));
} else {
tmp = y * ((z - t) / (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 ((x <= (-59000000000.0d0)) .or. (.not. (x <= 1.7d+44))) then
tmp = x * (1.0d0 - (z / a))
else
tmp = y * ((z - t) / (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 ((x <= -59000000000.0) || !(x <= 1.7e+44)) {
tmp = x * (1.0 - (z / a));
} else {
tmp = y * ((z - t) / (a - t));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (x <= -59000000000.0) or not (x <= 1.7e+44): tmp = x * (1.0 - (z / a)) else: tmp = y * ((z - t) / (a - t)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((x <= -59000000000.0) || !(x <= 1.7e+44)) tmp = Float64(x * Float64(1.0 - Float64(z / a))); else tmp = Float64(y * Float64(Float64(z - t) / Float64(a - t))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((x <= -59000000000.0) || ~((x <= 1.7e+44))) tmp = x * (1.0 - (z / a)); else tmp = y * ((z - t) / (a - t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[x, -59000000000.0], N[Not[LessEqual[x, 1.7e+44]], $MachinePrecision]], N[(x * N[(1.0 - N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -59000000000 \lor \neg \left(x \leq 1.7 \cdot 10^{+44}\right):\\
\;\;\;\;x \cdot \left(1 - \frac{z}{a}\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \frac{z - t}{a - t}\\
\end{array}
\end{array}
if x < -5.9e10 or 1.7e44 < x Initial program 59.9%
Taylor expanded in x around inf 62.1%
mul-1-neg62.1%
unsub-neg62.1%
Simplified62.1%
Taylor expanded in t around 0 51.1%
if -5.9e10 < x < 1.7e44Initial program 80.5%
div-inv80.3%
*-commutative80.3%
associate-*l*83.5%
Applied egg-rr83.5%
div-inv83.6%
clear-num82.2%
un-div-inv83.0%
Applied egg-rr83.0%
Taylor expanded in x around 0 65.3%
associate-*r/77.9%
Simplified77.9%
Final simplification64.3%
(FPCore (x y z t a) :precision binary64 (if (<= t -9e+104) y (if (<= t 1.08e+46) x y)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -9e+104) {
tmp = y;
} else if (t <= 1.08e+46) {
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 (t <= (-9d+104)) then
tmp = y
else if (t <= 1.08d+46) 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 (t <= -9e+104) {
tmp = y;
} else if (t <= 1.08e+46) {
tmp = x;
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -9e+104: tmp = y elif t <= 1.08e+46: tmp = x else: tmp = y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -9e+104) tmp = y; elseif (t <= 1.08e+46) tmp = x; else tmp = y; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -9e+104) tmp = y; elseif (t <= 1.08e+46) tmp = x; else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -9e+104], y, If[LessEqual[t, 1.08e+46], x, y]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -9 \cdot 10^{+104}:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq 1.08 \cdot 10^{+46}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if t < -8.9999999999999997e104 or 1.07999999999999994e46 < t Initial program 41.5%
Taylor expanded in t around inf 51.4%
if -8.9999999999999997e104 < t < 1.07999999999999994e46Initial program 87.7%
Taylor expanded in a around inf 34.5%
(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 70.0%
Taylor expanded in a around inf 24.3%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* (/ (- y x) 1.0) (/ (- z t) (- a t))))))
(if (< a -1.6153062845442575e-142)
t_1
(if (< a 3.774403170083174e-182) (- y (* (/ z t) (- y x))) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + (((y - x) / 1.0) * ((z - t) / (a - t)));
double tmp;
if (a < -1.6153062845442575e-142) {
tmp = t_1;
} else if (a < 3.774403170083174e-182) {
tmp = y - ((z / t) * (y - x));
} 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 - x) / 1.0d0) * ((z - t) / (a - t)))
if (a < (-1.6153062845442575d-142)) then
tmp = t_1
else if (a < 3.774403170083174d-182) then
tmp = y - ((z / t) * (y - x))
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 - x) / 1.0) * ((z - t) / (a - t)));
double tmp;
if (a < -1.6153062845442575e-142) {
tmp = t_1;
} else if (a < 3.774403170083174e-182) {
tmp = y - ((z / t) * (y - x));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + (((y - x) / 1.0) * ((z - t) / (a - t))) tmp = 0 if a < -1.6153062845442575e-142: tmp = t_1 elif a < 3.774403170083174e-182: tmp = y - ((z / t) * (y - x)) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(Float64(y - x) / 1.0) * Float64(Float64(z - t) / Float64(a - t)))) tmp = 0.0 if (a < -1.6153062845442575e-142) tmp = t_1; elseif (a < 3.774403170083174e-182) tmp = Float64(y - Float64(Float64(z / t) * Float64(y - x))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + (((y - x) / 1.0) * ((z - t) / (a - t))); tmp = 0.0; if (a < -1.6153062845442575e-142) tmp = t_1; elseif (a < 3.774403170083174e-182) tmp = y - ((z / t) * (y - x)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(N[(y - x), $MachinePrecision] / 1.0), $MachinePrecision] * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[a, -1.6153062845442575e-142], t$95$1, If[Less[a, 3.774403170083174e-182], N[(y - N[(N[(z / t), $MachinePrecision] * N[(y - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \frac{y - x}{1} \cdot \frac{z - t}{a - t}\\
\mathbf{if}\;a < -1.6153062845442575 \cdot 10^{-142}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a < 3.774403170083174 \cdot 10^{-182}:\\
\;\;\;\;y - \frac{z}{t} \cdot \left(y - x\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
herbie shell --seed 2024087
(FPCore (x y z t a)
:name "Graphics.Rendering.Chart.Axis.Types:linMap from Chart-1.5.3"
:precision binary64
:alt
(if (< a -1.6153062845442575e-142) (+ x (* (/ (- y x) 1.0) (/ (- z t) (- a t)))) (if (< a 3.774403170083174e-182) (- y (* (/ z t) (- y x))) (+ x (* (/ (- y x) 1.0) (/ (- z t) (- a t))))))
(+ x (/ (* (- y x) (- z t)) (- a t))))