
(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 16 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 -5e-259)
(+ x (* (- y x) (/ (- z t) (- a t))))
(if (<= t_1 0.0)
(+ y (/ (* (- y x) (- a z)) t))
(if (<= t_1 2e+61)
(*
x
(+
(+ (/ t (- a t)) 1.0)
(+ (* y (/ (- z t) (* x (- a t)))) (/ z (- t a)))))
(fma (- z t) (/ (- y x) (- 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 <= -5e-259) {
tmp = x + ((y - x) * ((z - t) / (a - t)));
} else if (t_1 <= 0.0) {
tmp = y + (((y - x) * (a - z)) / t);
} else if (t_1 <= 2e+61) {
tmp = x * (((t / (a - t)) + 1.0) + ((y * ((z - t) / (x * (a - t)))) + (z / (t - a))));
} else {
tmp = fma((z - t), ((y - x) / (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 <= -5e-259) tmp = Float64(x + Float64(Float64(y - x) * Float64(Float64(z - t) / Float64(a - t)))); elseif (t_1 <= 0.0) tmp = Float64(y + Float64(Float64(Float64(y - x) * Float64(a - z)) / t)); elseif (t_1 <= 2e+61) tmp = Float64(x * Float64(Float64(Float64(t / Float64(a - t)) + 1.0) + Float64(Float64(y * Float64(Float64(z - t) / Float64(x * Float64(a - t)))) + Float64(z / Float64(t - a))))); else tmp = fma(Float64(z - t), Float64(Float64(y - x) / 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, -5e-259], N[(x + N[(N[(y - x), $MachinePrecision] * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 0.0], N[(y + N[(N[(N[(y - x), $MachinePrecision] * N[(a - z), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 2e+61], N[(x * N[(N[(N[(t / N[(a - t), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision] + N[(N[(y * N[(N[(z - t), $MachinePrecision] / N[(x * N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(z / N[(t - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(z - t), $MachinePrecision] * N[(N[(y - x), $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 -5 \cdot 10^{-259}:\\
\;\;\;\;x + \left(y - x\right) \cdot \frac{z - t}{a - t}\\
\mathbf{elif}\;t\_1 \leq 0:\\
\;\;\;\;y + \frac{\left(y - x\right) \cdot \left(a - z\right)}{t}\\
\mathbf{elif}\;t\_1 \leq 2 \cdot 10^{+61}:\\
\;\;\;\;x \cdot \left(\left(\frac{t}{a - t} + 1\right) + \left(y \cdot \frac{z - t}{x \cdot \left(a - t\right)} + \frac{z}{t - a}\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(z - t, \frac{y - x}{a - t}, x\right)\\
\end{array}
\end{array}
if (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < -4.99999999999999977e-259Initial program 75.7%
+-commutative75.7%
associate-/l*92.2%
fma-define92.2%
Simplified92.2%
fma-undefine92.2%
Applied egg-rr92.2%
if -4.99999999999999977e-259 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < 0.0Initial program 3.3%
Taylor expanded in t around inf 99.7%
associate--l+99.7%
associate-*r/99.7%
associate-*r/99.7%
mul-1-neg99.7%
div-sub99.7%
mul-1-neg99.7%
distribute-lft-out--99.7%
associate-*r/99.7%
mul-1-neg99.7%
unsub-neg99.7%
distribute-rgt-out--99.7%
Simplified99.7%
if 0.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < 1.9999999999999999e61Initial program 89.1%
Taylor expanded in x around -inf 99.6%
mul-1-neg99.6%
*-commutative99.6%
distribute-rgt-neg-in99.6%
+-commutative99.6%
mul-1-neg99.6%
unsub-neg99.6%
associate-/l*97.2%
+-commutative97.2%
Simplified97.2%
if 1.9999999999999999e61 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) Initial program 60.2%
Taylor expanded in x around 0 63.2%
distribute-rgt-in63.2%
*-lft-identity63.2%
mul-1-neg63.2%
distribute-lft-neg-out63.2%
/-rgt-identity63.2%
times-frac57.7%
*-commutative57.7%
*-rgt-identity57.7%
mul-1-neg57.7%
associate-/l*68.7%
div-sub68.7%
associate-+r+68.2%
+-commutative68.2%
Simplified89.3%
Final simplification92.5%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (/ (* (- y x) (- z t)) (- a t)))))
(if (<= t_1 (- INFINITY))
(+ x (/ y (/ (- a t) (- z t))))
(if (<= t_1 -5e-259)
t_1
(if (<= t_1 0.0)
(+ y (/ (* (- y x) (- a z)) t))
(if (<= t_1 1e+305) t_1 (+ x (* (- z t) (/ y (- 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 = x + (y / ((a - t) / (z - t)));
} else if (t_1 <= -5e-259) {
tmp = t_1;
} else if (t_1 <= 0.0) {
tmp = y + (((y - x) * (a - z)) / t);
} else if (t_1 <= 1e+305) {
tmp = t_1;
} else {
tmp = x + ((z - t) * (y / (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 = x + (y / ((a - t) / (z - t)));
} else if (t_1 <= -5e-259) {
tmp = t_1;
} else if (t_1 <= 0.0) {
tmp = y + (((y - x) * (a - z)) / t);
} else if (t_1 <= 1e+305) {
tmp = t_1;
} else {
tmp = x + ((z - t) * (y / (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 = x + (y / ((a - t) / (z - t))) elif t_1 <= -5e-259: tmp = t_1 elif t_1 <= 0.0: tmp = y + (((y - x) * (a - z)) / t) elif t_1 <= 1e+305: tmp = t_1 else: tmp = x + ((z - t) * (y / (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(x + Float64(y / Float64(Float64(a - t) / Float64(z - t)))); elseif (t_1 <= -5e-259) tmp = t_1; elseif (t_1 <= 0.0) tmp = Float64(y + Float64(Float64(Float64(y - x) * Float64(a - z)) / t)); elseif (t_1 <= 1e+305) tmp = t_1; else tmp = Float64(x + Float64(Float64(z - t) * Float64(y / 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 = x + (y / ((a - t) / (z - t))); elseif (t_1 <= -5e-259) tmp = t_1; elseif (t_1 <= 0.0) tmp = y + (((y - x) * (a - z)) / t); elseif (t_1 <= 1e+305) tmp = t_1; else tmp = x + ((z - t) * (y / (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[(x + N[(y / N[(N[(a - t), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, -5e-259], t$95$1, If[LessEqual[t$95$1, 0.0], N[(y + N[(N[(N[(y - x), $MachinePrecision] * N[(a - z), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 1e+305], t$95$1, N[(x + N[(N[(z - t), $MachinePrecision] * N[(y / N[(a - t), $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:\\
\;\;\;\;x + \frac{y}{\frac{a - t}{z - t}}\\
\mathbf{elif}\;t\_1 \leq -5 \cdot 10^{-259}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t\_1 \leq 0:\\
\;\;\;\;y + \frac{\left(y - x\right) \cdot \left(a - z\right)}{t}\\
\mathbf{elif}\;t\_1 \leq 10^{+305}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;x + \left(z - t\right) \cdot \frac{y}{a - t}\\
\end{array}
\end{array}
if (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < -inf.0Initial program 40.0%
+-commutative40.0%
associate-/l*82.7%
fma-define82.7%
Simplified82.7%
fma-undefine82.7%
Applied egg-rr82.7%
clear-num82.7%
un-div-inv82.8%
sub-neg82.8%
add-sqr-sqrt47.1%
sqrt-unprod54.3%
sqr-neg54.3%
sqrt-unprod26.2%
add-sqr-sqrt61.5%
Applied egg-rr61.5%
Taylor expanded in y around inf 65.7%
if -inf.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < -4.99999999999999977e-259 or 0.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < 9.9999999999999994e304Initial program 95.1%
if -4.99999999999999977e-259 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < 0.0Initial program 3.3%
Taylor expanded in t around inf 99.7%
associate--l+99.7%
associate-*r/99.7%
associate-*r/99.7%
mul-1-neg99.7%
div-sub99.7%
mul-1-neg99.7%
distribute-lft-out--99.7%
associate-*r/99.7%
mul-1-neg99.7%
unsub-neg99.7%
distribute-rgt-out--99.7%
Simplified99.7%
if 9.9999999999999994e304 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) Initial program 41.6%
Taylor expanded in y around inf 35.4%
*-commutative35.4%
*-lft-identity35.4%
times-frac70.9%
/-rgt-identity70.9%
Simplified70.9%
Final simplification85.1%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (/ (* (- y x) (- z t)) (- a t)))))
(if (or (<= t_1 -5e-259) (not (<= t_1 0.0)))
(+ x (* (- y x) (/ (- z t) (- a t))))
(+ y (/ (* (- y x) (- a z)) 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 <= -5e-259) || !(t_1 <= 0.0)) {
tmp = x + ((y - x) * ((z - t) / (a - t)));
} else {
tmp = y + (((y - x) * (a - z)) / t);
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = x + (((y - x) * (z - t)) / (a - t))
if ((t_1 <= (-5d-259)) .or. (.not. (t_1 <= 0.0d0))) then
tmp = x + ((y - x) * ((z - t) / (a - t)))
else
tmp = y + (((y - x) * (a - z)) / 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 + (((y - x) * (z - t)) / (a - t));
double tmp;
if ((t_1 <= -5e-259) || !(t_1 <= 0.0)) {
tmp = x + ((y - x) * ((z - t) / (a - t)));
} else {
tmp = y + (((y - x) * (a - z)) / t);
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + (((y - x) * (z - t)) / (a - t)) tmp = 0 if (t_1 <= -5e-259) or not (t_1 <= 0.0): tmp = x + ((y - x) * ((z - t) / (a - t))) else: tmp = y + (((y - x) * (a - z)) / 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 <= -5e-259) || !(t_1 <= 0.0)) tmp = Float64(x + Float64(Float64(y - x) * Float64(Float64(z - t) / Float64(a - t)))); else tmp = Float64(y + Float64(Float64(Float64(y - x) * Float64(a - z)) / 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 <= -5e-259) || ~((t_1 <= 0.0))) tmp = x + ((y - x) * ((z - t) / (a - t))); else tmp = y + (((y - x) * (a - z)) / 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[Or[LessEqual[t$95$1, -5e-259], N[Not[LessEqual[t$95$1, 0.0]], $MachinePrecision]], N[(x + N[(N[(y - x), $MachinePrecision] * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y + N[(N[(N[(y - x), $MachinePrecision] * N[(a - z), $MachinePrecision]), $MachinePrecision] / t), $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 -5 \cdot 10^{-259} \lor \neg \left(t\_1 \leq 0\right):\\
\;\;\;\;x + \left(y - x\right) \cdot \frac{z - t}{a - t}\\
\mathbf{else}:\\
\;\;\;\;y + \frac{\left(y - x\right) \cdot \left(a - z\right)}{t}\\
\end{array}
\end{array}
if (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < -4.99999999999999977e-259 or 0.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) Initial program 73.1%
+-commutative73.1%
associate-/l*90.5%
fma-define90.5%
Simplified90.5%
fma-undefine90.5%
Applied egg-rr90.5%
if -4.99999999999999977e-259 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < 0.0Initial program 3.3%
Taylor expanded in t around inf 99.7%
associate--l+99.7%
associate-*r/99.7%
associate-*r/99.7%
mul-1-neg99.7%
div-sub99.7%
mul-1-neg99.7%
distribute-lft-out--99.7%
associate-*r/99.7%
mul-1-neg99.7%
unsub-neg99.7%
distribute-rgt-out--99.7%
Simplified99.7%
Final simplification91.0%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* x (/ (- z a) t))))
(if (<= t -5.9e+75)
y
(if (<= t -1.25e-12)
t_1
(if (<= t 13000.0) x (if (<= t 8.5e+204) t_1 y))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x * ((z - a) / t);
double tmp;
if (t <= -5.9e+75) {
tmp = y;
} else if (t <= -1.25e-12) {
tmp = t_1;
} else if (t <= 13000.0) {
tmp = x;
} else if (t <= 8.5e+204) {
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 * ((z - a) / t)
if (t <= (-5.9d+75)) then
tmp = y
else if (t <= (-1.25d-12)) then
tmp = t_1
else if (t <= 13000.0d0) then
tmp = x
else if (t <= 8.5d+204) 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 * ((z - a) / t);
double tmp;
if (t <= -5.9e+75) {
tmp = y;
} else if (t <= -1.25e-12) {
tmp = t_1;
} else if (t <= 13000.0) {
tmp = x;
} else if (t <= 8.5e+204) {
tmp = t_1;
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x * ((z - a) / t) tmp = 0 if t <= -5.9e+75: tmp = y elif t <= -1.25e-12: tmp = t_1 elif t <= 13000.0: tmp = x elif t <= 8.5e+204: tmp = t_1 else: tmp = y return tmp
function code(x, y, z, t, a) t_1 = Float64(x * Float64(Float64(z - a) / t)) tmp = 0.0 if (t <= -5.9e+75) tmp = y; elseif (t <= -1.25e-12) tmp = t_1; elseif (t <= 13000.0) tmp = x; elseif (t <= 8.5e+204) tmp = t_1; else tmp = y; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x * ((z - a) / t); tmp = 0.0; if (t <= -5.9e+75) tmp = y; elseif (t <= -1.25e-12) tmp = t_1; elseif (t <= 13000.0) tmp = x; elseif (t <= 8.5e+204) tmp = t_1; else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x * N[(N[(z - a), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -5.9e+75], y, If[LessEqual[t, -1.25e-12], t$95$1, If[LessEqual[t, 13000.0], x, If[LessEqual[t, 8.5e+204], t$95$1, y]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \frac{z - a}{t}\\
\mathbf{if}\;t \leq -5.9 \cdot 10^{+75}:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq -1.25 \cdot 10^{-12}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 13000:\\
\;\;\;\;x\\
\mathbf{elif}\;t \leq 8.5 \cdot 10^{+204}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if t < -5.89999999999999983e75 or 8.5e204 < t Initial program 32.2%
Taylor expanded in t around inf 65.0%
if -5.89999999999999983e75 < t < -1.24999999999999992e-12 or 13000 < t < 8.5e204Initial program 63.5%
Taylor expanded in x around -inf 44.9%
associate-*r*44.9%
neg-mul-144.9%
+-commutative44.9%
Simplified44.9%
Taylor expanded in t around -inf 34.8%
associate-/l*42.0%
Simplified42.0%
if -1.24999999999999992e-12 < t < 13000Initial program 92.2%
Taylor expanded in a around inf 43.3%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* y (/ (- z t) (- a t)))))
(if (<= t -5e-38)
t_1
(if (<= t 4.6e-91)
(+ x (* z (/ (- y x) a)))
(if (<= t 1.7e+58) (* z (/ (- y x) (- a t))) t_1)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = y * ((z - t) / (a - t));
double tmp;
if (t <= -5e-38) {
tmp = t_1;
} else if (t <= 4.6e-91) {
tmp = x + (z * ((y - x) / a));
} else if (t <= 1.7e+58) {
tmp = z * ((y - x) / (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 = y * ((z - t) / (a - t))
if (t <= (-5d-38)) then
tmp = t_1
else if (t <= 4.6d-91) then
tmp = x + (z * ((y - x) / a))
else if (t <= 1.7d+58) then
tmp = z * ((y - x) / (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 = y * ((z - t) / (a - t));
double tmp;
if (t <= -5e-38) {
tmp = t_1;
} else if (t <= 4.6e-91) {
tmp = x + (z * ((y - x) / a));
} else if (t <= 1.7e+58) {
tmp = z * ((y - x) / (a - t));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = y * ((z - t) / (a - t)) tmp = 0 if t <= -5e-38: tmp = t_1 elif t <= 4.6e-91: tmp = x + (z * ((y - x) / a)) elif t <= 1.7e+58: tmp = z * ((y - x) / (a - t)) else: tmp = t_1 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 <= -5e-38) tmp = t_1; elseif (t <= 4.6e-91) tmp = Float64(x + Float64(z * Float64(Float64(y - x) / a))); elseif (t <= 1.7e+58) tmp = Float64(z * Float64(Float64(y - x) / Float64(a - t))); else tmp = t_1; 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 <= -5e-38) tmp = t_1; elseif (t <= 4.6e-91) tmp = x + (z * ((y - x) / a)); elseif (t <= 1.7e+58) tmp = z * ((y - x) / (a - t)); else tmp = t_1; 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, -5e-38], t$95$1, If[LessEqual[t, 4.6e-91], N[(x + N[(z * N[(N[(y - x), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.7e+58], N[(z * N[(N[(y - x), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \frac{z - t}{a - t}\\
\mathbf{if}\;t \leq -5 \cdot 10^{-38}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 4.6 \cdot 10^{-91}:\\
\;\;\;\;x + z \cdot \frac{y - x}{a}\\
\mathbf{elif}\;t \leq 1.7 \cdot 10^{+58}:\\
\;\;\;\;z \cdot \frac{y - x}{a - t}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -5.00000000000000033e-38 or 1.7e58 < t Initial program 46.9%
+-commutative46.9%
associate-/l*77.7%
fma-define77.7%
Simplified77.7%
fma-undefine77.7%
Applied egg-rr77.7%
Taylor expanded in y around inf 65.6%
div-sub65.6%
Simplified65.6%
if -5.00000000000000033e-38 < t < 4.59999999999999991e-91Initial program 93.0%
Taylor expanded in t around 0 75.3%
associate-/l*78.2%
Simplified78.2%
if 4.59999999999999991e-91 < t < 1.7e58Initial program 79.7%
+-commutative79.7%
associate-/l*85.6%
fma-define85.6%
Simplified85.6%
fma-undefine85.6%
Applied egg-rr85.6%
Taylor expanded in z around inf 64.1%
div-sub64.1%
Simplified64.1%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* y (/ (- z t) (- a t)))))
(if (<= t -2.3e-39)
t_1
(if (<= t 2.4e-91)
(+ x (* y (/ z a)))
(if (<= t 8.8e+57) (* z (/ (- y x) (- a t))) t_1)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = y * ((z - t) / (a - t));
double tmp;
if (t <= -2.3e-39) {
tmp = t_1;
} else if (t <= 2.4e-91) {
tmp = x + (y * (z / a));
} else if (t <= 8.8e+57) {
tmp = z * ((y - x) / (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 = y * ((z - t) / (a - t))
if (t <= (-2.3d-39)) then
tmp = t_1
else if (t <= 2.4d-91) then
tmp = x + (y * (z / a))
else if (t <= 8.8d+57) then
tmp = z * ((y - x) / (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 = y * ((z - t) / (a - t));
double tmp;
if (t <= -2.3e-39) {
tmp = t_1;
} else if (t <= 2.4e-91) {
tmp = x + (y * (z / a));
} else if (t <= 8.8e+57) {
tmp = z * ((y - x) / (a - t));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = y * ((z - t) / (a - t)) tmp = 0 if t <= -2.3e-39: tmp = t_1 elif t <= 2.4e-91: tmp = x + (y * (z / a)) elif t <= 8.8e+57: tmp = z * ((y - x) / (a - t)) else: tmp = t_1 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 <= -2.3e-39) tmp = t_1; elseif (t <= 2.4e-91) tmp = Float64(x + Float64(y * Float64(z / a))); elseif (t <= 8.8e+57) tmp = Float64(z * Float64(Float64(y - x) / Float64(a - t))); else tmp = t_1; 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 <= -2.3e-39) tmp = t_1; elseif (t <= 2.4e-91) tmp = x + (y * (z / a)); elseif (t <= 8.8e+57) tmp = z * ((y - x) / (a - t)); else tmp = t_1; 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, -2.3e-39], t$95$1, If[LessEqual[t, 2.4e-91], N[(x + N[(y * N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 8.8e+57], N[(z * N[(N[(y - x), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \frac{z - t}{a - t}\\
\mathbf{if}\;t \leq -2.3 \cdot 10^{-39}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 2.4 \cdot 10^{-91}:\\
\;\;\;\;x + y \cdot \frac{z}{a}\\
\mathbf{elif}\;t \leq 8.8 \cdot 10^{+57}:\\
\;\;\;\;z \cdot \frac{y - x}{a - t}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -2.30000000000000008e-39 or 8.8000000000000003e57 < t Initial program 46.9%
+-commutative46.9%
associate-/l*77.7%
fma-define77.7%
Simplified77.7%
fma-undefine77.7%
Applied egg-rr77.7%
Taylor expanded in y around inf 65.6%
div-sub65.6%
Simplified65.6%
if -2.30000000000000008e-39 < t < 2.40000000000000011e-91Initial program 93.0%
Taylor expanded in a around inf 77.2%
associate-/l*80.5%
Simplified80.5%
Taylor expanded in y around inf 70.8%
associate-/l*72.0%
Simplified72.0%
Taylor expanded in z around inf 68.8%
associate-/l*70.1%
Simplified70.1%
if 2.40000000000000011e-91 < t < 8.8000000000000003e57Initial program 79.7%
+-commutative79.7%
associate-/l*85.6%
fma-define85.6%
Simplified85.6%
fma-undefine85.6%
Applied egg-rr85.6%
Taylor expanded in z around inf 64.1%
div-sub64.1%
Simplified64.1%
(FPCore (x y z t a)
:precision binary64
(if (<= t -1.95e+80)
y
(if (<= t -1.7e-10)
(* x (/ (- z a) t))
(if (<= t 1.6e+61) (+ x (* y (/ z a))) y))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -1.95e+80) {
tmp = y;
} else if (t <= -1.7e-10) {
tmp = x * ((z - a) / t);
} else if (t <= 1.6e+61) {
tmp = x + (y * (z / a));
} 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 <= (-1.95d+80)) then
tmp = y
else if (t <= (-1.7d-10)) then
tmp = x * ((z - a) / t)
else if (t <= 1.6d+61) then
tmp = x + (y * (z / a))
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 <= -1.95e+80) {
tmp = y;
} else if (t <= -1.7e-10) {
tmp = x * ((z - a) / t);
} else if (t <= 1.6e+61) {
tmp = x + (y * (z / a));
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -1.95e+80: tmp = y elif t <= -1.7e-10: tmp = x * ((z - a) / t) elif t <= 1.6e+61: tmp = x + (y * (z / a)) else: tmp = y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -1.95e+80) tmp = y; elseif (t <= -1.7e-10) tmp = Float64(x * Float64(Float64(z - a) / t)); elseif (t <= 1.6e+61) tmp = Float64(x + Float64(y * Float64(z / a))); else tmp = y; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -1.95e+80) tmp = y; elseif (t <= -1.7e-10) tmp = x * ((z - a) / t); elseif (t <= 1.6e+61) tmp = x + (y * (z / a)); else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -1.95e+80], y, If[LessEqual[t, -1.7e-10], N[(x * N[(N[(z - a), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.6e+61], N[(x + N[(y * N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], y]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.95 \cdot 10^{+80}:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq -1.7 \cdot 10^{-10}:\\
\;\;\;\;x \cdot \frac{z - a}{t}\\
\mathbf{elif}\;t \leq 1.6 \cdot 10^{+61}:\\
\;\;\;\;x + y \cdot \frac{z}{a}\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if t < -1.94999999999999999e80 or 1.5999999999999999e61 < t Initial program 39.2%
Taylor expanded in t around inf 55.6%
if -1.94999999999999999e80 < t < -1.70000000000000007e-10Initial program 74.8%
Taylor expanded in x around -inf 47.1%
associate-*r*47.1%
neg-mul-147.1%
+-commutative47.1%
Simplified47.1%
Taylor expanded in t around -inf 42.7%
associate-/l*42.7%
Simplified42.7%
if -1.70000000000000007e-10 < t < 1.5999999999999999e61Initial program 89.8%
Taylor expanded in a around inf 68.8%
associate-/l*72.7%
Simplified72.7%
Taylor expanded in y around inf 63.6%
associate-/l*65.3%
Simplified65.3%
Taylor expanded in z around inf 62.3%
associate-/l*63.9%
Simplified63.9%
(FPCore (x y z t a) :precision binary64 (if (or (<= y -1.45e-177) (not (<= y 1.3e-66))) (+ x (/ y (/ (- a t) (- z t)))) (+ x (* z (/ (- y x) (- a t))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((y <= -1.45e-177) || !(y <= 1.3e-66)) {
tmp = x + (y / ((a - t) / (z - t)));
} 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 ((y <= (-1.45d-177)) .or. (.not. (y <= 1.3d-66))) then
tmp = x + (y / ((a - t) / (z - t)))
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 ((y <= -1.45e-177) || !(y <= 1.3e-66)) {
tmp = x + (y / ((a - t) / (z - t)));
} else {
tmp = x + (z * ((y - x) / (a - t)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (y <= -1.45e-177) or not (y <= 1.3e-66): tmp = x + (y / ((a - t) / (z - t))) else: tmp = x + (z * ((y - x) / (a - t))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((y <= -1.45e-177) || !(y <= 1.3e-66)) tmp = Float64(x + Float64(y / Float64(Float64(a - t) / Float64(z - t)))); 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 ((y <= -1.45e-177) || ~((y <= 1.3e-66))) tmp = x + (y / ((a - t) / (z - t))); else tmp = x + (z * ((y - x) / (a - t))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[y, -1.45e-177], N[Not[LessEqual[y, 1.3e-66]], $MachinePrecision]], N[(x + N[(y / N[(N[(a - t), $MachinePrecision] / N[(z - t), $MachinePrecision]), $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}\;y \leq -1.45 \cdot 10^{-177} \lor \neg \left(y \leq 1.3 \cdot 10^{-66}\right):\\
\;\;\;\;x + \frac{y}{\frac{a - t}{z - t}}\\
\mathbf{else}:\\
\;\;\;\;x + z \cdot \frac{y - x}{a - t}\\
\end{array}
\end{array}
if y < -1.44999999999999999e-177 or 1.2999999999999999e-66 < y Initial program 68.6%
+-commutative68.6%
associate-/l*88.5%
fma-define88.5%
Simplified88.5%
fma-undefine88.5%
Applied egg-rr88.5%
clear-num88.4%
un-div-inv88.4%
sub-neg88.4%
add-sqr-sqrt51.4%
sqrt-unprod68.4%
sqr-neg68.4%
sqrt-unprod32.7%
add-sqr-sqrt78.3%
Applied egg-rr78.3%
Taylor expanded in y around inf 79.6%
if -1.44999999999999999e-177 < y < 1.2999999999999999e-66Initial program 71.2%
Taylor expanded in z around inf 68.1%
associate-/l*70.5%
Simplified70.5%
Final simplification77.1%
(FPCore (x y z t a) :precision binary64 (if (or (<= t -1.05e+74) (not (<= t 1.02e+65))) (* y (/ (- z t) (- a t))) (+ x (* z (/ (- y x) (- a t))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -1.05e+74) || !(t <= 1.02e+65)) {
tmp = y * ((z - t) / (a - t));
} 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.05d+74)) .or. (.not. (t <= 1.02d+65))) then
tmp = y * ((z - t) / (a - t))
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.05e+74) || !(t <= 1.02e+65)) {
tmp = y * ((z - t) / (a - t));
} else {
tmp = x + (z * ((y - x) / (a - t)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (t <= -1.05e+74) or not (t <= 1.02e+65): tmp = y * ((z - t) / (a - t)) else: tmp = x + (z * ((y - x) / (a - t))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((t <= -1.05e+74) || !(t <= 1.02e+65)) tmp = Float64(y * Float64(Float64(z - t) / Float64(a - t))); 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.05e+74) || ~((t <= 1.02e+65))) tmp = y * ((z - t) / (a - t)); else tmp = x + (z * ((y - x) / (a - t))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[t, -1.05e+74], N[Not[LessEqual[t, 1.02e+65]], $MachinePrecision]], N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $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.05 \cdot 10^{+74} \lor \neg \left(t \leq 1.02 \cdot 10^{+65}\right):\\
\;\;\;\;y \cdot \frac{z - t}{a - t}\\
\mathbf{else}:\\
\;\;\;\;x + z \cdot \frac{y - x}{a - t}\\
\end{array}
\end{array}
if t < -1.0499999999999999e74 or 1.02000000000000005e65 < t Initial program 38.9%
+-commutative38.9%
associate-/l*75.3%
fma-define75.3%
Simplified75.3%
fma-undefine75.3%
Applied egg-rr75.3%
Taylor expanded in y around inf 69.1%
div-sub69.1%
Simplified69.1%
if -1.0499999999999999e74 < t < 1.02000000000000005e65Initial program 88.2%
Taylor expanded in z around inf 77.4%
associate-/l*79.7%
Simplified79.7%
Final simplification75.7%
(FPCore (x y z t a)
:precision binary64
(if (<= a -2e-96)
(+ x (/ y (/ (- a t) (- z t))))
(if (<= a 5.5e-41)
(+ y (/ (* (- y x) (- a z)) t))
(+ x (* (- z t) (/ y (- a t)))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -2e-96) {
tmp = x + (y / ((a - t) / (z - t)));
} else if (a <= 5.5e-41) {
tmp = y + (((y - x) * (a - z)) / t);
} else {
tmp = x + ((z - t) * (y / (a - t)));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (a <= (-2d-96)) then
tmp = x + (y / ((a - t) / (z - t)))
else if (a <= 5.5d-41) then
tmp = y + (((y - x) * (a - z)) / t)
else
tmp = x + ((z - t) * (y / (a - t)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -2e-96) {
tmp = x + (y / ((a - t) / (z - t)));
} else if (a <= 5.5e-41) {
tmp = y + (((y - x) * (a - z)) / t);
} else {
tmp = x + ((z - t) * (y / (a - t)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -2e-96: tmp = x + (y / ((a - t) / (z - t))) elif a <= 5.5e-41: tmp = y + (((y - x) * (a - z)) / t) else: tmp = x + ((z - t) * (y / (a - t))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -2e-96) tmp = Float64(x + Float64(y / Float64(Float64(a - t) / Float64(z - t)))); elseif (a <= 5.5e-41) tmp = Float64(y + Float64(Float64(Float64(y - x) * Float64(a - z)) / t)); else tmp = Float64(x + Float64(Float64(z - t) * Float64(y / Float64(a - t)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -2e-96) tmp = x + (y / ((a - t) / (z - t))); elseif (a <= 5.5e-41) tmp = y + (((y - x) * (a - z)) / t); else tmp = x + ((z - t) * (y / (a - t))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -2e-96], N[(x + N[(y / N[(N[(a - t), $MachinePrecision] / N[(z - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 5.5e-41], N[(y + N[(N[(N[(y - x), $MachinePrecision] * N[(a - z), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(z - t), $MachinePrecision] * N[(y / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -2 \cdot 10^{-96}:\\
\;\;\;\;x + \frac{y}{\frac{a - t}{z - t}}\\
\mathbf{elif}\;a \leq 5.5 \cdot 10^{-41}:\\
\;\;\;\;y + \frac{\left(y - x\right) \cdot \left(a - z\right)}{t}\\
\mathbf{else}:\\
\;\;\;\;x + \left(z - t\right) \cdot \frac{y}{a - t}\\
\end{array}
\end{array}
if a < -1.9999999999999998e-96Initial program 74.7%
+-commutative74.7%
associate-/l*91.5%
fma-define91.5%
Simplified91.5%
fma-undefine91.5%
Applied egg-rr91.5%
clear-num91.4%
un-div-inv91.4%
sub-neg91.4%
add-sqr-sqrt46.6%
sqrt-unprod67.5%
sqr-neg67.5%
sqrt-unprod40.5%
add-sqr-sqrt80.0%
Applied egg-rr80.0%
Taylor expanded in y around inf 80.3%
if -1.9999999999999998e-96 < a < 5.50000000000000022e-41Initial program 69.5%
Taylor expanded in t around inf 86.7%
associate--l+86.7%
associate-*r/86.7%
associate-*r/86.7%
mul-1-neg86.7%
div-sub86.8%
mul-1-neg86.8%
distribute-lft-out--86.8%
associate-*r/86.8%
mul-1-neg86.8%
unsub-neg86.8%
distribute-rgt-out--86.8%
Simplified86.8%
if 5.50000000000000022e-41 < a Initial program 62.4%
Taylor expanded in y around inf 63.0%
*-commutative63.0%
*-lft-identity63.0%
times-frac74.1%
/-rgt-identity74.1%
Simplified74.1%
Final simplification81.1%
(FPCore (x y z t a) :precision binary64 (if (or (<= t -9.5e-41) (not (<= t 4.4e-69))) (* y (/ (- z t) (- a t))) (+ x (* y (/ z a)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -9.5e-41) || !(t <= 4.4e-69)) {
tmp = y * ((z - t) / (a - t));
} else {
tmp = x + (y * (z / a));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((t <= (-9.5d-41)) .or. (.not. (t <= 4.4d-69))) then
tmp = y * ((z - t) / (a - t))
else
tmp = x + (y * (z / a))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -9.5e-41) || !(t <= 4.4e-69)) {
tmp = y * ((z - t) / (a - t));
} else {
tmp = x + (y * (z / a));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (t <= -9.5e-41) or not (t <= 4.4e-69): tmp = y * ((z - t) / (a - t)) else: tmp = x + (y * (z / a)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((t <= -9.5e-41) || !(t <= 4.4e-69)) tmp = Float64(y * Float64(Float64(z - t) / Float64(a - t))); else tmp = Float64(x + Float64(y * Float64(z / a))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((t <= -9.5e-41) || ~((t <= 4.4e-69))) tmp = y * ((z - t) / (a - t)); else tmp = x + (y * (z / a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[t, -9.5e-41], N[Not[LessEqual[t, 4.4e-69]], $MachinePrecision]], N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -9.5 \cdot 10^{-41} \lor \neg \left(t \leq 4.4 \cdot 10^{-69}\right):\\
\;\;\;\;y \cdot \frac{z - t}{a - t}\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \frac{z}{a}\\
\end{array}
\end{array}
if t < -9.4999999999999997e-41 or 4.4e-69 < t Initial program 53.2%
+-commutative53.2%
associate-/l*79.0%
fma-define79.0%
Simplified79.0%
fma-undefine79.0%
Applied egg-rr79.0%
Taylor expanded in y around inf 63.0%
div-sub63.0%
Simplified63.0%
if -9.4999999999999997e-41 < t < 4.4e-69Initial program 93.2%
Taylor expanded in a around inf 76.9%
associate-/l*80.1%
Simplified80.1%
Taylor expanded in y around inf 69.8%
associate-/l*70.9%
Simplified70.9%
Taylor expanded in z around inf 67.9%
associate-/l*69.1%
Simplified69.1%
Final simplification65.4%
(FPCore (x y z t a) :precision binary64 (if (<= a -2.2e+84) (+ x (* y (/ (- z t) a))) (if (<= a 2.25e+98) (* y (/ (- z t) (- a t))) (* x (- 1.0 (/ z a))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -2.2e+84) {
tmp = x + (y * ((z - t) / a));
} else if (a <= 2.25e+98) {
tmp = y * ((z - t) / (a - t));
} else {
tmp = x * (1.0 - (z / a));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (a <= (-2.2d+84)) then
tmp = x + (y * ((z - t) / a))
else if (a <= 2.25d+98) then
tmp = y * ((z - t) / (a - t))
else
tmp = x * (1.0d0 - (z / a))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -2.2e+84) {
tmp = x + (y * ((z - t) / a));
} else if (a <= 2.25e+98) {
tmp = y * ((z - t) / (a - t));
} else {
tmp = x * (1.0 - (z / a));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -2.2e+84: tmp = x + (y * ((z - t) / a)) elif a <= 2.25e+98: tmp = y * ((z - t) / (a - t)) else: tmp = x * (1.0 - (z / a)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -2.2e+84) tmp = Float64(x + Float64(y * Float64(Float64(z - t) / a))); elseif (a <= 2.25e+98) tmp = Float64(y * Float64(Float64(z - t) / Float64(a - t))); else tmp = Float64(x * Float64(1.0 - Float64(z / a))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -2.2e+84) tmp = x + (y * ((z - t) / a)); elseif (a <= 2.25e+98) tmp = y * ((z - t) / (a - t)); else tmp = x * (1.0 - (z / a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -2.2e+84], N[(x + N[(y * N[(N[(z - t), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.25e+98], N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(1.0 - N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -2.2 \cdot 10^{+84}:\\
\;\;\;\;x + y \cdot \frac{z - t}{a}\\
\mathbf{elif}\;a \leq 2.25 \cdot 10^{+98}:\\
\;\;\;\;y \cdot \frac{z - t}{a - t}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(1 - \frac{z}{a}\right)\\
\end{array}
\end{array}
if a < -2.1999999999999998e84Initial program 72.4%
Taylor expanded in a around inf 64.3%
associate-/l*81.2%
Simplified81.2%
Taylor expanded in y around inf 71.1%
associate-/l*80.9%
Simplified80.9%
if -2.1999999999999998e84 < a < 2.2500000000000001e98Initial program 71.7%
+-commutative71.7%
associate-/l*82.9%
fma-define82.9%
Simplified82.9%
fma-undefine82.9%
Applied egg-rr82.9%
Taylor expanded in y around inf 61.0%
div-sub61.0%
Simplified61.0%
if 2.2500000000000001e98 < a Initial program 55.9%
Taylor expanded in x around -inf 73.6%
associate-*r*73.6%
neg-mul-173.6%
+-commutative73.6%
Simplified73.6%
Taylor expanded in t around 0 71.0%
Final simplification66.4%
(FPCore (x y z t a) :precision binary64 (if (<= t -1.25e+76) y (if (<= t -8.5e-14) (/ (* x z) t) (if (<= t 7.8e+60) x y))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -1.25e+76) {
tmp = y;
} else if (t <= -8.5e-14) {
tmp = (x * z) / t;
} else if (t <= 7.8e+60) {
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 <= (-1.25d+76)) then
tmp = y
else if (t <= (-8.5d-14)) then
tmp = (x * z) / t
else if (t <= 7.8d+60) 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 <= -1.25e+76) {
tmp = y;
} else if (t <= -8.5e-14) {
tmp = (x * z) / t;
} else if (t <= 7.8e+60) {
tmp = x;
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -1.25e+76: tmp = y elif t <= -8.5e-14: tmp = (x * z) / t elif t <= 7.8e+60: tmp = x else: tmp = y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -1.25e+76) tmp = y; elseif (t <= -8.5e-14) tmp = Float64(Float64(x * z) / t); elseif (t <= 7.8e+60) tmp = x; else tmp = y; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -1.25e+76) tmp = y; elseif (t <= -8.5e-14) tmp = (x * z) / t; elseif (t <= 7.8e+60) tmp = x; else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -1.25e+76], y, If[LessEqual[t, -8.5e-14], N[(N[(x * z), $MachinePrecision] / t), $MachinePrecision], If[LessEqual[t, 7.8e+60], x, y]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.25 \cdot 10^{+76}:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq -8.5 \cdot 10^{-14}:\\
\;\;\;\;\frac{x \cdot z}{t}\\
\mathbf{elif}\;t \leq 7.8 \cdot 10^{+60}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if t < -1.24999999999999998e76 or 7.8000000000000006e60 < t Initial program 39.2%
Taylor expanded in t around inf 55.6%
if -1.24999999999999998e76 < t < -8.50000000000000038e-14Initial program 74.8%
Taylor expanded in x around -inf 47.1%
associate-*r*47.1%
neg-mul-147.1%
+-commutative47.1%
Simplified47.1%
Taylor expanded in a around 0 34.4%
if -8.50000000000000038e-14 < t < 7.8000000000000006e60Initial program 89.8%
Taylor expanded in a around inf 42.1%
(FPCore (x y z t a) :precision binary64 (if (<= t -2.9e+79) y (if (<= t -2.05e-10) (* x (/ z t)) (if (<= t 7.5e+68) x y))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -2.9e+79) {
tmp = y;
} else if (t <= -2.05e-10) {
tmp = x * (z / t);
} else if (t <= 7.5e+68) {
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 <= (-2.9d+79)) then
tmp = y
else if (t <= (-2.05d-10)) then
tmp = x * (z / t)
else if (t <= 7.5d+68) 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 <= -2.9e+79) {
tmp = y;
} else if (t <= -2.05e-10) {
tmp = x * (z / t);
} else if (t <= 7.5e+68) {
tmp = x;
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -2.9e+79: tmp = y elif t <= -2.05e-10: tmp = x * (z / t) elif t <= 7.5e+68: tmp = x else: tmp = y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -2.9e+79) tmp = y; elseif (t <= -2.05e-10) tmp = Float64(x * Float64(z / t)); elseif (t <= 7.5e+68) tmp = x; else tmp = y; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -2.9e+79) tmp = y; elseif (t <= -2.05e-10) tmp = x * (z / t); elseif (t <= 7.5e+68) tmp = x; else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -2.9e+79], y, If[LessEqual[t, -2.05e-10], N[(x * N[(z / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 7.5e+68], x, y]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.9 \cdot 10^{+79}:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq -2.05 \cdot 10^{-10}:\\
\;\;\;\;x \cdot \frac{z}{t}\\
\mathbf{elif}\;t \leq 7.5 \cdot 10^{+68}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if t < -2.89999999999999992e79 or 7.49999999999999959e68 < t Initial program 39.2%
Taylor expanded in t around inf 55.6%
if -2.89999999999999992e79 < t < -2.0499999999999999e-10Initial program 74.8%
Taylor expanded in x around -inf 47.1%
associate-*r*47.1%
neg-mul-147.1%
+-commutative47.1%
Simplified47.1%
Taylor expanded in a around 0 34.4%
associate-/l*34.4%
Simplified34.4%
if -2.0499999999999999e-10 < t < 7.49999999999999959e68Initial program 89.8%
Taylor expanded in a around inf 42.1%
(FPCore (x y z t a) :precision binary64 (if (<= t -1.3e-10) y (if (<= t 1.35e+58) x y)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -1.3e-10) {
tmp = y;
} else if (t <= 1.35e+58) {
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 <= (-1.3d-10)) then
tmp = y
else if (t <= 1.35d+58) 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 <= -1.3e-10) {
tmp = y;
} else if (t <= 1.35e+58) {
tmp = x;
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -1.3e-10: tmp = y elif t <= 1.35e+58: tmp = x else: tmp = y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -1.3e-10) tmp = y; elseif (t <= 1.35e+58) tmp = x; else tmp = y; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -1.3e-10) tmp = y; elseif (t <= 1.35e+58) tmp = x; else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -1.3e-10], y, If[LessEqual[t, 1.35e+58], x, y]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.3 \cdot 10^{-10}:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq 1.35 \cdot 10^{+58}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if t < -1.29999999999999991e-10 or 1.3500000000000001e58 < t Initial program 46.1%
Taylor expanded in t around inf 47.0%
if -1.29999999999999991e-10 < t < 1.3500000000000001e58Initial program 89.8%
Taylor expanded in a around inf 42.1%
(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 69.3%
Taylor expanded in a around inf 27.6%
(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 2024137
(FPCore (x y z t a)
:name "Graphics.Rendering.Chart.Axis.Types:linMap from Chart-1.5.3"
:precision binary64
:alt
(! :herbie-platform default (if (< a -646122513817703/4000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ x (* (/ (- y x) 1) (/ (- z t) (- a t)))) (if (< a 1887201585041587/50000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (- y (* (/ z t) (- y x))) (+ x (* (/ (- y x) 1) (/ (- z t) (- a t)))))))
(+ x (/ (* (- y x) (- z t)) (- a t))))