
(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 18 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 (/ (* (- t z) (- y x)) (- a t)))))
(if (<= t_1 -5e-237)
(- x (/ (- x y) (* (/ 1.0 (- t z)) (- t a))))
(if (<= t_1 2e-283)
(-
y
(/
(- (fma a (/ (* (- a z) (- x y)) t) (* z (- y x))) (* a (- y x)))
t))
(- x (/ (- x y) (/ (- t a) (- t z))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x - (((t - z) * (y - x)) / (a - t));
double tmp;
if (t_1 <= -5e-237) {
tmp = x - ((x - y) / ((1.0 / (t - z)) * (t - a)));
} else if (t_1 <= 2e-283) {
tmp = y - ((fma(a, (((a - z) * (x - y)) / t), (z * (y - x))) - (a * (y - x))) / t);
} else {
tmp = x - ((x - y) / ((t - a) / (t - z)));
}
return tmp;
}
function code(x, y, z, t, a) t_1 = Float64(x - Float64(Float64(Float64(t - z) * Float64(y - x)) / Float64(a - t))) tmp = 0.0 if (t_1 <= -5e-237) tmp = Float64(x - Float64(Float64(x - y) / Float64(Float64(1.0 / Float64(t - z)) * Float64(t - a)))); elseif (t_1 <= 2e-283) tmp = Float64(y - Float64(Float64(fma(a, Float64(Float64(Float64(a - z) * Float64(x - y)) / t), Float64(z * Float64(y - x))) - Float64(a * Float64(y - x))) / t)); else tmp = Float64(x - Float64(Float64(x - y) / Float64(Float64(t - a) / Float64(t - z)))); end return tmp end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x - N[(N[(N[(t - z), $MachinePrecision] * N[(y - x), $MachinePrecision]), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -5e-237], N[(x - N[(N[(x - y), $MachinePrecision] / N[(N[(1.0 / N[(t - z), $MachinePrecision]), $MachinePrecision] * N[(t - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 2e-283], N[(y - N[(N[(N[(a * N[(N[(N[(a - z), $MachinePrecision] * N[(x - y), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision] + N[(z * N[(y - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * N[(y - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], N[(x - N[(N[(x - y), $MachinePrecision] / N[(N[(t - a), $MachinePrecision] / N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x - \frac{\left(t - z\right) \cdot \left(y - x\right)}{a - t}\\
\mathbf{if}\;t\_1 \leq -5 \cdot 10^{-237}:\\
\;\;\;\;x - \frac{x - y}{\frac{1}{t - z} \cdot \left(t - a\right)}\\
\mathbf{elif}\;t\_1 \leq 2 \cdot 10^{-283}:\\
\;\;\;\;y - \frac{\mathsf{fma}\left(a, \frac{\left(a - z\right) \cdot \left(x - y\right)}{t}, z \cdot \left(y - x\right)\right) - a \cdot \left(y - x\right)}{t}\\
\mathbf{else}:\\
\;\;\;\;x - \frac{x - y}{\frac{t - a}{t - z}}\\
\end{array}
\end{array}
if (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < -5.0000000000000002e-237Initial program 65.2%
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
clear-numN/A
un-div-invN/A
lower-/.f64N/A
lower-/.f6489.1
Applied rewrites89.1%
lift-/.f64N/A
div-invN/A
*-commutativeN/A
lower-*.f64N/A
metadata-evalN/A
lower-/.f64N/A
metadata-eval89.1
Applied rewrites89.1%
if -5.0000000000000002e-237 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < 1.99999999999999989e-283Initial program 5.8%
lift-+.f64N/A
+-commutativeN/A
lift-/.f64N/A
clear-numN/A
associate-/r/N/A
lower-fma.f64N/A
frac-2negN/A
metadata-evalN/A
lower-/.f64N/A
neg-sub0N/A
lift--.f64N/A
sub-negN/A
+-commutativeN/A
associate--r+N/A
neg-sub0N/A
remove-double-negN/A
lower--.f646.2
lift-*.f64N/A
*-commutativeN/A
lower-*.f646.2
Applied rewrites6.2%
Taylor expanded in t around 0
+-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
lower-/.f64N/A
lower--.f643.7
Applied rewrites3.7%
Taylor expanded in t around -inf
mul-1-negN/A
unsub-negN/A
lower--.f64N/A
lower-/.f64N/A
Applied rewrites99.8%
if 1.99999999999999989e-283 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) Initial program 72.7%
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
clear-numN/A
un-div-invN/A
lower-/.f64N/A
lower-/.f6490.2
Applied rewrites90.2%
Final simplification90.3%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (fma (/ (- x y) t) (- z a) y))
(t_2 (- x (/ (* (- t z) (- y x)) (- a t)))))
(if (<= t_2 (- INFINITY))
t_1
(if (<= t_2 -5e-237)
(fma (/ 1.0 (- a t)) (* (- t z) (- x y)) x)
(if (<= t_2 0.0)
(fma (/ x t) (- z a) y)
(if (<= t_2 5e+303) t_2 t_1))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = fma(((x - y) / t), (z - a), y);
double t_2 = x - (((t - z) * (y - x)) / (a - t));
double tmp;
if (t_2 <= -((double) INFINITY)) {
tmp = t_1;
} else if (t_2 <= -5e-237) {
tmp = fma((1.0 / (a - t)), ((t - z) * (x - y)), x);
} else if (t_2 <= 0.0) {
tmp = fma((x / t), (z - a), y);
} else if (t_2 <= 5e+303) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a) t_1 = fma(Float64(Float64(x - y) / t), Float64(z - a), y) t_2 = Float64(x - Float64(Float64(Float64(t - z) * Float64(y - x)) / Float64(a - t))) tmp = 0.0 if (t_2 <= Float64(-Inf)) tmp = t_1; elseif (t_2 <= -5e-237) tmp = fma(Float64(1.0 / Float64(a - t)), Float64(Float64(t - z) * Float64(x - y)), x); elseif (t_2 <= 0.0) tmp = fma(Float64(x / t), Float64(z - a), y); elseif (t_2 <= 5e+303) tmp = t_2; else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(N[(x - y), $MachinePrecision] / t), $MachinePrecision] * N[(z - a), $MachinePrecision] + y), $MachinePrecision]}, Block[{t$95$2 = N[(x - N[(N[(N[(t - z), $MachinePrecision] * N[(y - x), $MachinePrecision]), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, (-Infinity)], t$95$1, If[LessEqual[t$95$2, -5e-237], N[(N[(1.0 / N[(a - t), $MachinePrecision]), $MachinePrecision] * N[(N[(t - z), $MachinePrecision] * N[(x - y), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision], If[LessEqual[t$95$2, 0.0], N[(N[(x / t), $MachinePrecision] * N[(z - a), $MachinePrecision] + y), $MachinePrecision], If[LessEqual[t$95$2, 5e+303], t$95$2, t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(\frac{x - y}{t}, z - a, y\right)\\
t_2 := x - \frac{\left(t - z\right) \cdot \left(y - x\right)}{a - t}\\
\mathbf{if}\;t\_2 \leq -\infty:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t\_2 \leq -5 \cdot 10^{-237}:\\
\;\;\;\;\mathsf{fma}\left(\frac{1}{a - t}, \left(t - z\right) \cdot \left(x - y\right), x\right)\\
\mathbf{elif}\;t\_2 \leq 0:\\
\;\;\;\;\mathsf{fma}\left(\frac{x}{t}, z - a, y\right)\\
\mathbf{elif}\;t\_2 \leq 5 \cdot 10^{+303}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < -inf.0 or 4.9999999999999997e303 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) Initial program 31.4%
Taylor expanded in t around inf
associate--l+N/A
distribute-lft-out--N/A
div-subN/A
+-commutativeN/A
mul-1-negN/A
div-subN/A
associate-/l*N/A
associate-/l*N/A
distribute-rgt-out--N/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
Applied rewrites71.3%
if -inf.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < -5.0000000000000002e-237Initial program 95.4%
lift-+.f64N/A
+-commutativeN/A
lift-/.f64N/A
clear-numN/A
associate-/r/N/A
lower-fma.f64N/A
frac-2negN/A
metadata-evalN/A
lower-/.f64N/A
neg-sub0N/A
lift--.f64N/A
sub-negN/A
+-commutativeN/A
associate--r+N/A
neg-sub0N/A
remove-double-negN/A
lower--.f6495.4
lift-*.f64N/A
*-commutativeN/A
lower-*.f6495.4
Applied rewrites95.4%
if -5.0000000000000002e-237 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < 0.0Initial program 4.0%
Taylor expanded in t around inf
associate--l+N/A
distribute-lft-out--N/A
div-subN/A
+-commutativeN/A
mul-1-negN/A
div-subN/A
associate-/l*N/A
associate-/l*N/A
distribute-rgt-out--N/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
Applied rewrites88.0%
Taylor expanded in x around inf
Applied rewrites88.0%
if 0.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < 4.9999999999999997e303Initial program 96.7%
Final simplification85.7%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (fma (/ (- x y) t) (- z a) y))
(t_2 (- x (/ (* (- t z) (- y x)) (- a t)))))
(if (<= t_2 (- INFINITY))
t_1
(if (<= t_2 -5e-237)
t_2
(if (<= t_2 0.0)
(fma (/ x t) (- z a) y)
(if (<= t_2 5e+303) t_2 t_1))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = fma(((x - y) / t), (z - a), y);
double t_2 = x - (((t - z) * (y - x)) / (a - t));
double tmp;
if (t_2 <= -((double) INFINITY)) {
tmp = t_1;
} else if (t_2 <= -5e-237) {
tmp = t_2;
} else if (t_2 <= 0.0) {
tmp = fma((x / t), (z - a), y);
} else if (t_2 <= 5e+303) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a) t_1 = fma(Float64(Float64(x - y) / t), Float64(z - a), y) t_2 = Float64(x - Float64(Float64(Float64(t - z) * Float64(y - x)) / Float64(a - t))) tmp = 0.0 if (t_2 <= Float64(-Inf)) tmp = t_1; elseif (t_2 <= -5e-237) tmp = t_2; elseif (t_2 <= 0.0) tmp = fma(Float64(x / t), Float64(z - a), y); elseif (t_2 <= 5e+303) tmp = t_2; else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(N[(x - y), $MachinePrecision] / t), $MachinePrecision] * N[(z - a), $MachinePrecision] + y), $MachinePrecision]}, Block[{t$95$2 = N[(x - N[(N[(N[(t - z), $MachinePrecision] * N[(y - x), $MachinePrecision]), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, (-Infinity)], t$95$1, If[LessEqual[t$95$2, -5e-237], t$95$2, If[LessEqual[t$95$2, 0.0], N[(N[(x / t), $MachinePrecision] * N[(z - a), $MachinePrecision] + y), $MachinePrecision], If[LessEqual[t$95$2, 5e+303], t$95$2, t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(\frac{x - y}{t}, z - a, y\right)\\
t_2 := x - \frac{\left(t - z\right) \cdot \left(y - x\right)}{a - t}\\
\mathbf{if}\;t\_2 \leq -\infty:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t\_2 \leq -5 \cdot 10^{-237}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t\_2 \leq 0:\\
\;\;\;\;\mathsf{fma}\left(\frac{x}{t}, z - a, y\right)\\
\mathbf{elif}\;t\_2 \leq 5 \cdot 10^{+303}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < -inf.0 or 4.9999999999999997e303 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) Initial program 31.4%
Taylor expanded in t around inf
associate--l+N/A
distribute-lft-out--N/A
div-subN/A
+-commutativeN/A
mul-1-negN/A
div-subN/A
associate-/l*N/A
associate-/l*N/A
distribute-rgt-out--N/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
Applied rewrites71.3%
if -inf.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < -5.0000000000000002e-237 or 0.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < 4.9999999999999997e303Initial program 96.0%
if -5.0000000000000002e-237 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < 0.0Initial program 4.0%
Taylor expanded in t around inf
associate--l+N/A
distribute-lft-out--N/A
div-subN/A
+-commutativeN/A
mul-1-negN/A
div-subN/A
associate-/l*N/A
associate-/l*N/A
distribute-rgt-out--N/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
Applied rewrites88.0%
Taylor expanded in x around inf
Applied rewrites88.0%
Final simplification85.7%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (- x (/ (* (- t z) (- y x)) (- a t)))))
(if (<= t_1 -5e-237)
(- x (/ (- x y) (* (/ 1.0 (- t z)) (- t a))))
(if (<= t_1 2e-283)
(- y (/ (fma (* (/ (- y x) t) (- z a)) a (* (- a z) (- x y))) t))
(- x (/ (- x y) (/ (- t a) (- t z))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x - (((t - z) * (y - x)) / (a - t));
double tmp;
if (t_1 <= -5e-237) {
tmp = x - ((x - y) / ((1.0 / (t - z)) * (t - a)));
} else if (t_1 <= 2e-283) {
tmp = y - (fma((((y - x) / t) * (z - a)), a, ((a - z) * (x - y))) / t);
} else {
tmp = x - ((x - y) / ((t - a) / (t - z)));
}
return tmp;
}
function code(x, y, z, t, a) t_1 = Float64(x - Float64(Float64(Float64(t - z) * Float64(y - x)) / Float64(a - t))) tmp = 0.0 if (t_1 <= -5e-237) tmp = Float64(x - Float64(Float64(x - y) / Float64(Float64(1.0 / Float64(t - z)) * Float64(t - a)))); elseif (t_1 <= 2e-283) tmp = Float64(y - Float64(fma(Float64(Float64(Float64(y - x) / t) * Float64(z - a)), a, Float64(Float64(a - z) * Float64(x - y))) / t)); else tmp = Float64(x - Float64(Float64(x - y) / Float64(Float64(t - a) / Float64(t - z)))); end return tmp end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x - N[(N[(N[(t - z), $MachinePrecision] * N[(y - x), $MachinePrecision]), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -5e-237], N[(x - N[(N[(x - y), $MachinePrecision] / N[(N[(1.0 / N[(t - z), $MachinePrecision]), $MachinePrecision] * N[(t - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 2e-283], N[(y - N[(N[(N[(N[(N[(y - x), $MachinePrecision] / t), $MachinePrecision] * N[(z - a), $MachinePrecision]), $MachinePrecision] * a + N[(N[(a - z), $MachinePrecision] * N[(x - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], N[(x - N[(N[(x - y), $MachinePrecision] / N[(N[(t - a), $MachinePrecision] / N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x - \frac{\left(t - z\right) \cdot \left(y - x\right)}{a - t}\\
\mathbf{if}\;t\_1 \leq -5 \cdot 10^{-237}:\\
\;\;\;\;x - \frac{x - y}{\frac{1}{t - z} \cdot \left(t - a\right)}\\
\mathbf{elif}\;t\_1 \leq 2 \cdot 10^{-283}:\\
\;\;\;\;y - \frac{\mathsf{fma}\left(\frac{y - x}{t} \cdot \left(z - a\right), a, \left(a - z\right) \cdot \left(x - y\right)\right)}{t}\\
\mathbf{else}:\\
\;\;\;\;x - \frac{x - y}{\frac{t - a}{t - z}}\\
\end{array}
\end{array}
if (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < -5.0000000000000002e-237Initial program 65.2%
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
clear-numN/A
un-div-invN/A
lower-/.f64N/A
lower-/.f6489.1
Applied rewrites89.1%
lift-/.f64N/A
div-invN/A
*-commutativeN/A
lower-*.f64N/A
metadata-evalN/A
lower-/.f64N/A
metadata-eval89.1
Applied rewrites89.1%
if -5.0000000000000002e-237 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < 1.99999999999999989e-283Initial program 5.8%
Taylor expanded in t around -inf
mul-1-negN/A
unsub-negN/A
lower--.f64N/A
lower-/.f64N/A
Applied rewrites93.4%
if 1.99999999999999989e-283 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) Initial program 72.7%
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
clear-numN/A
un-div-invN/A
lower-/.f64N/A
lower-/.f6490.2
Applied rewrites90.2%
Final simplification89.9%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (- x (/ (* (- t z) (- y x)) (- a t)))))
(if (<= t_1 -5e-237)
(- x (/ (- x y) (* (/ 1.0 (- t z)) (- t a))))
(if (<= t_1 0.0)
(fma (/ x t) (- z a) y)
(- x (/ (- x y) (/ (- t a) (- t z))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x - (((t - z) * (y - x)) / (a - t));
double tmp;
if (t_1 <= -5e-237) {
tmp = x - ((x - y) / ((1.0 / (t - z)) * (t - a)));
} else if (t_1 <= 0.0) {
tmp = fma((x / t), (z - a), y);
} else {
tmp = x - ((x - y) / ((t - a) / (t - z)));
}
return tmp;
}
function code(x, y, z, t, a) t_1 = Float64(x - Float64(Float64(Float64(t - z) * Float64(y - x)) / Float64(a - t))) tmp = 0.0 if (t_1 <= -5e-237) tmp = Float64(x - Float64(Float64(x - y) / Float64(Float64(1.0 / Float64(t - z)) * Float64(t - a)))); elseif (t_1 <= 0.0) tmp = fma(Float64(x / t), Float64(z - a), y); else tmp = Float64(x - Float64(Float64(x - y) / Float64(Float64(t - a) / Float64(t - z)))); end return tmp end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x - N[(N[(N[(t - z), $MachinePrecision] * N[(y - x), $MachinePrecision]), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -5e-237], N[(x - N[(N[(x - y), $MachinePrecision] / N[(N[(1.0 / N[(t - z), $MachinePrecision]), $MachinePrecision] * N[(t - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 0.0], N[(N[(x / t), $MachinePrecision] * N[(z - a), $MachinePrecision] + y), $MachinePrecision], N[(x - N[(N[(x - y), $MachinePrecision] / N[(N[(t - a), $MachinePrecision] / N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x - \frac{\left(t - z\right) \cdot \left(y - x\right)}{a - t}\\
\mathbf{if}\;t\_1 \leq -5 \cdot 10^{-237}:\\
\;\;\;\;x - \frac{x - y}{\frac{1}{t - z} \cdot \left(t - a\right)}\\
\mathbf{elif}\;t\_1 \leq 0:\\
\;\;\;\;\mathsf{fma}\left(\frac{x}{t}, z - a, y\right)\\
\mathbf{else}:\\
\;\;\;\;x - \frac{x - y}{\frac{t - a}{t - z}}\\
\end{array}
\end{array}
if (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < -5.0000000000000002e-237Initial program 65.2%
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
clear-numN/A
un-div-invN/A
lower-/.f64N/A
lower-/.f6489.1
Applied rewrites89.1%
lift-/.f64N/A
div-invN/A
*-commutativeN/A
lower-*.f64N/A
metadata-evalN/A
lower-/.f64N/A
metadata-eval89.1
Applied rewrites89.1%
if -5.0000000000000002e-237 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < 0.0Initial program 4.0%
Taylor expanded in t around inf
associate--l+N/A
distribute-lft-out--N/A
div-subN/A
+-commutativeN/A
mul-1-negN/A
div-subN/A
associate-/l*N/A
associate-/l*N/A
distribute-rgt-out--N/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
Applied rewrites88.0%
Taylor expanded in x around inf
Applied rewrites88.0%
if 0.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) Initial program 72.3%
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
clear-numN/A
un-div-invN/A
lower-/.f64N/A
lower-/.f6489.7
Applied rewrites89.7%
Final simplification89.3%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (- x (/ (- x y) (/ (- t a) (- t z)))))
(t_2 (- x (/ (* (- t z) (- y x)) (- a t)))))
(if (<= t_2 -5e-237) t_1 (if (<= t_2 0.0) (fma (/ x t) (- z a) y) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x - ((x - y) / ((t - a) / (t - z)));
double t_2 = x - (((t - z) * (y - x)) / (a - t));
double tmp;
if (t_2 <= -5e-237) {
tmp = t_1;
} else if (t_2 <= 0.0) {
tmp = fma((x / t), (z - a), y);
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a) t_1 = Float64(x - Float64(Float64(x - y) / Float64(Float64(t - a) / Float64(t - z)))) t_2 = Float64(x - Float64(Float64(Float64(t - z) * Float64(y - x)) / Float64(a - t))) tmp = 0.0 if (t_2 <= -5e-237) tmp = t_1; elseif (t_2 <= 0.0) tmp = fma(Float64(x / t), Float64(z - a), y); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x - N[(N[(x - y), $MachinePrecision] / N[(N[(t - a), $MachinePrecision] / N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x - N[(N[(N[(t - z), $MachinePrecision] * N[(y - x), $MachinePrecision]), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, -5e-237], t$95$1, If[LessEqual[t$95$2, 0.0], N[(N[(x / t), $MachinePrecision] * N[(z - a), $MachinePrecision] + y), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x - \frac{x - y}{\frac{t - a}{t - z}}\\
t_2 := x - \frac{\left(t - z\right) \cdot \left(y - x\right)}{a - t}\\
\mathbf{if}\;t\_2 \leq -5 \cdot 10^{-237}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t\_2 \leq 0:\\
\;\;\;\;\mathsf{fma}\left(\frac{x}{t}, z - a, y\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < -5.0000000000000002e-237 or 0.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) Initial program 68.6%
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
clear-numN/A
un-div-invN/A
lower-/.f64N/A
lower-/.f6489.4
Applied rewrites89.4%
if -5.0000000000000002e-237 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < 0.0Initial program 4.0%
Taylor expanded in t around inf
associate--l+N/A
distribute-lft-out--N/A
div-subN/A
+-commutativeN/A
mul-1-negN/A
div-subN/A
associate-/l*N/A
associate-/l*N/A
distribute-rgt-out--N/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
Applied rewrites88.0%
Taylor expanded in x around inf
Applied rewrites88.0%
Final simplification89.3%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (fma z (/ y a) x)))
(if (<= a -3e+25)
t_1
(if (<= a -7.2e-175)
(* (/ z (- t a)) x)
(if (<= a 1.7e-110)
(* (/ (- x y) t) z)
(if (<= a 3.2e-43) (+ (- y x) x) t_1))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = fma(z, (y / a), x);
double tmp;
if (a <= -3e+25) {
tmp = t_1;
} else if (a <= -7.2e-175) {
tmp = (z / (t - a)) * x;
} else if (a <= 1.7e-110) {
tmp = ((x - y) / t) * z;
} else if (a <= 3.2e-43) {
tmp = (y - x) + x;
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a) t_1 = fma(z, Float64(y / a), x) tmp = 0.0 if (a <= -3e+25) tmp = t_1; elseif (a <= -7.2e-175) tmp = Float64(Float64(z / Float64(t - a)) * x); elseif (a <= 1.7e-110) tmp = Float64(Float64(Float64(x - y) / t) * z); elseif (a <= 3.2e-43) tmp = Float64(Float64(y - x) + x); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(z * N[(y / a), $MachinePrecision] + x), $MachinePrecision]}, If[LessEqual[a, -3e+25], t$95$1, If[LessEqual[a, -7.2e-175], N[(N[(z / N[(t - a), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[a, 1.7e-110], N[(N[(N[(x - y), $MachinePrecision] / t), $MachinePrecision] * z), $MachinePrecision], If[LessEqual[a, 3.2e-43], N[(N[(y - x), $MachinePrecision] + x), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(z, \frac{y}{a}, x\right)\\
\mathbf{if}\;a \leq -3 \cdot 10^{+25}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -7.2 \cdot 10^{-175}:\\
\;\;\;\;\frac{z}{t - a} \cdot x\\
\mathbf{elif}\;a \leq 1.7 \cdot 10^{-110}:\\
\;\;\;\;\frac{x - y}{t} \cdot z\\
\mathbf{elif}\;a \leq 3.2 \cdot 10^{-43}:\\
\;\;\;\;\left(y - x\right) + x\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -3.00000000000000006e25 or 3.19999999999999985e-43 < a Initial program 65.7%
lift-+.f64N/A
+-commutativeN/A
lift-/.f64N/A
clear-numN/A
associate-/r/N/A
lower-fma.f64N/A
frac-2negN/A
metadata-evalN/A
lower-/.f64N/A
neg-sub0N/A
lift--.f64N/A
sub-negN/A
+-commutativeN/A
associate--r+N/A
neg-sub0N/A
remove-double-negN/A
lower--.f6465.7
lift-*.f64N/A
*-commutativeN/A
lower-*.f6465.7
Applied rewrites65.7%
Taylor expanded in t around 0
+-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
lower-/.f64N/A
lower--.f6465.5
Applied rewrites65.5%
Taylor expanded in y around inf
Applied rewrites59.0%
if -3.00000000000000006e25 < a < -7.2e-175Initial program 63.1%
Taylor expanded in z around inf
div-subN/A
associate-/l*N/A
*-commutativeN/A
associate-/l*N/A
lower-*.f64N/A
lower--.f64N/A
lower-/.f64N/A
lower--.f6463.1
Applied rewrites63.1%
Taylor expanded in y around 0
Applied rewrites42.8%
if -7.2e-175 < a < 1.7000000000000001e-110Initial program 59.7%
Taylor expanded in t around inf
associate--l+N/A
distribute-lft-out--N/A
div-subN/A
+-commutativeN/A
mul-1-negN/A
div-subN/A
associate-/l*N/A
associate-/l*N/A
distribute-rgt-out--N/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
Applied rewrites86.2%
Taylor expanded in z around inf
Applied rewrites51.9%
if 1.7000000000000001e-110 < a < 3.19999999999999985e-43Initial program 71.6%
Taylor expanded in t around inf
lower--.f6446.5
Applied rewrites46.5%
Final simplification54.0%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (fma (/ x t) (- z a) y)))
(if (<= t -4.7e+96)
t_1
(if (<= t -4.5e-170)
(fma z (/ y a) x)
(if (<= t 2.6e-57) (fma z (/ (- x) a) x) t_1)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = fma((x / t), (z - a), y);
double tmp;
if (t <= -4.7e+96) {
tmp = t_1;
} else if (t <= -4.5e-170) {
tmp = fma(z, (y / a), x);
} else if (t <= 2.6e-57) {
tmp = fma(z, (-x / a), x);
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a) t_1 = fma(Float64(x / t), Float64(z - a), y) tmp = 0.0 if (t <= -4.7e+96) tmp = t_1; elseif (t <= -4.5e-170) tmp = fma(z, Float64(y / a), x); elseif (t <= 2.6e-57) tmp = fma(z, Float64(Float64(-x) / a), x); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(x / t), $MachinePrecision] * N[(z - a), $MachinePrecision] + y), $MachinePrecision]}, If[LessEqual[t, -4.7e+96], t$95$1, If[LessEqual[t, -4.5e-170], N[(z * N[(y / a), $MachinePrecision] + x), $MachinePrecision], If[LessEqual[t, 2.6e-57], N[(z * N[((-x) / a), $MachinePrecision] + x), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(\frac{x}{t}, z - a, y\right)\\
\mathbf{if}\;t \leq -4.7 \cdot 10^{+96}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -4.5 \cdot 10^{-170}:\\
\;\;\;\;\mathsf{fma}\left(z, \frac{y}{a}, x\right)\\
\mathbf{elif}\;t \leq 2.6 \cdot 10^{-57}:\\
\;\;\;\;\mathsf{fma}\left(z, \frac{-x}{a}, x\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -4.7000000000000001e96 or 2.59999999999999985e-57 < t Initial program 37.0%
Taylor expanded in t around inf
associate--l+N/A
distribute-lft-out--N/A
div-subN/A
+-commutativeN/A
mul-1-negN/A
div-subN/A
associate-/l*N/A
associate-/l*N/A
distribute-rgt-out--N/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
Applied rewrites71.5%
Taylor expanded in x around inf
Applied rewrites68.3%
if -4.7000000000000001e96 < t < -4.50000000000000002e-170Initial program 75.3%
lift-+.f64N/A
+-commutativeN/A
lift-/.f64N/A
clear-numN/A
associate-/r/N/A
lower-fma.f64N/A
frac-2negN/A
metadata-evalN/A
lower-/.f64N/A
neg-sub0N/A
lift--.f64N/A
sub-negN/A
+-commutativeN/A
associate--r+N/A
neg-sub0N/A
remove-double-negN/A
lower--.f6475.0
lift-*.f64N/A
*-commutativeN/A
lower-*.f6475.0
Applied rewrites75.0%
Taylor expanded in t around 0
+-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
lower-/.f64N/A
lower--.f6458.2
Applied rewrites58.2%
Taylor expanded in y around inf
Applied rewrites56.5%
if -4.50000000000000002e-170 < t < 2.59999999999999985e-57Initial program 94.3%
lift-+.f64N/A
+-commutativeN/A
lift-/.f64N/A
clear-numN/A
associate-/r/N/A
lower-fma.f64N/A
frac-2negN/A
metadata-evalN/A
lower-/.f64N/A
neg-sub0N/A
lift--.f64N/A
sub-negN/A
+-commutativeN/A
associate--r+N/A
neg-sub0N/A
remove-double-negN/A
lower--.f6494.2
lift-*.f64N/A
*-commutativeN/A
lower-*.f6494.2
Applied rewrites94.2%
Taylor expanded in t around 0
+-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
lower-/.f64N/A
lower--.f6491.9
Applied rewrites91.9%
Taylor expanded in y around 0
Applied rewrites77.3%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ (- y x) x)))
(if (<= t -1.25e+102)
t_1
(if (<= t -4.5e-170)
(fma z (/ y a) x)
(if (<= t 1.85e+200) (fma z (/ (- x) a) x) t_1)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = (y - x) + x;
double tmp;
if (t <= -1.25e+102) {
tmp = t_1;
} else if (t <= -4.5e-170) {
tmp = fma(z, (y / a), x);
} else if (t <= 1.85e+200) {
tmp = fma(z, (-x / a), x);
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a) t_1 = Float64(Float64(y - x) + x) tmp = 0.0 if (t <= -1.25e+102) tmp = t_1; elseif (t <= -4.5e-170) tmp = fma(z, Float64(y / a), x); elseif (t <= 1.85e+200) tmp = fma(z, Float64(Float64(-x) / a), x); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(y - x), $MachinePrecision] + x), $MachinePrecision]}, If[LessEqual[t, -1.25e+102], t$95$1, If[LessEqual[t, -4.5e-170], N[(z * N[(y / a), $MachinePrecision] + x), $MachinePrecision], If[LessEqual[t, 1.85e+200], N[(z * N[((-x) / a), $MachinePrecision] + x), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(y - x\right) + x\\
\mathbf{if}\;t \leq -1.25 \cdot 10^{+102}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -4.5 \cdot 10^{-170}:\\
\;\;\;\;\mathsf{fma}\left(z, \frac{y}{a}, x\right)\\
\mathbf{elif}\;t \leq 1.85 \cdot 10^{+200}:\\
\;\;\;\;\mathsf{fma}\left(z, \frac{-x}{a}, x\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -1.25e102 or 1.8500000000000001e200 < t Initial program 25.9%
Taylor expanded in t around inf
lower--.f6441.7
Applied rewrites41.7%
if -1.25e102 < t < -4.50000000000000002e-170Initial program 75.3%
lift-+.f64N/A
+-commutativeN/A
lift-/.f64N/A
clear-numN/A
associate-/r/N/A
lower-fma.f64N/A
frac-2negN/A
metadata-evalN/A
lower-/.f64N/A
neg-sub0N/A
lift--.f64N/A
sub-negN/A
+-commutativeN/A
associate--r+N/A
neg-sub0N/A
remove-double-negN/A
lower--.f6475.0
lift-*.f64N/A
*-commutativeN/A
lower-*.f6475.0
Applied rewrites75.0%
Taylor expanded in t around 0
+-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
lower-/.f64N/A
lower--.f6458.2
Applied rewrites58.2%
Taylor expanded in y around inf
Applied rewrites56.5%
if -4.50000000000000002e-170 < t < 1.8500000000000001e200Initial program 81.9%
lift-+.f64N/A
+-commutativeN/A
lift-/.f64N/A
clear-numN/A
associate-/r/N/A
lower-fma.f64N/A
frac-2negN/A
metadata-evalN/A
lower-/.f64N/A
neg-sub0N/A
lift--.f64N/A
sub-negN/A
+-commutativeN/A
associate--r+N/A
neg-sub0N/A
remove-double-negN/A
lower--.f6482.1
lift-*.f64N/A
*-commutativeN/A
lower-*.f6482.1
Applied rewrites82.1%
Taylor expanded in t around 0
+-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
lower-/.f64N/A
lower--.f6473.8
Applied rewrites73.8%
Taylor expanded in y around 0
Applied rewrites62.3%
Final simplification55.1%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ (- y x) x)))
(if (<= t -1.25e+102)
t_1
(if (<= t -4.8e-170)
(fma z (/ y a) x)
(if (<= t 1.85e+200) (- x (/ (* z x) a)) t_1)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = (y - x) + x;
double tmp;
if (t <= -1.25e+102) {
tmp = t_1;
} else if (t <= -4.8e-170) {
tmp = fma(z, (y / a), x);
} else if (t <= 1.85e+200) {
tmp = x - ((z * x) / a);
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a) t_1 = Float64(Float64(y - x) + x) tmp = 0.0 if (t <= -1.25e+102) tmp = t_1; elseif (t <= -4.8e-170) tmp = fma(z, Float64(y / a), x); elseif (t <= 1.85e+200) tmp = Float64(x - Float64(Float64(z * x) / a)); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(y - x), $MachinePrecision] + x), $MachinePrecision]}, If[LessEqual[t, -1.25e+102], t$95$1, If[LessEqual[t, -4.8e-170], N[(z * N[(y / a), $MachinePrecision] + x), $MachinePrecision], If[LessEqual[t, 1.85e+200], N[(x - N[(N[(z * x), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(y - x\right) + x\\
\mathbf{if}\;t \leq -1.25 \cdot 10^{+102}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -4.8 \cdot 10^{-170}:\\
\;\;\;\;\mathsf{fma}\left(z, \frac{y}{a}, x\right)\\
\mathbf{elif}\;t \leq 1.85 \cdot 10^{+200}:\\
\;\;\;\;x - \frac{z \cdot x}{a}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -1.25e102 or 1.8500000000000001e200 < t Initial program 25.9%
Taylor expanded in t around inf
lower--.f6441.7
Applied rewrites41.7%
if -1.25e102 < t < -4.7999999999999999e-170Initial program 75.3%
lift-+.f64N/A
+-commutativeN/A
lift-/.f64N/A
clear-numN/A
associate-/r/N/A
lower-fma.f64N/A
frac-2negN/A
metadata-evalN/A
lower-/.f64N/A
neg-sub0N/A
lift--.f64N/A
sub-negN/A
+-commutativeN/A
associate--r+N/A
neg-sub0N/A
remove-double-negN/A
lower--.f6475.0
lift-*.f64N/A
*-commutativeN/A
lower-*.f6475.0
Applied rewrites75.0%
Taylor expanded in t around 0
+-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
lower-/.f64N/A
lower--.f6458.2
Applied rewrites58.2%
Taylor expanded in y around inf
Applied rewrites56.5%
if -4.7999999999999999e-170 < t < 1.8500000000000001e200Initial program 81.9%
lift-+.f64N/A
+-commutativeN/A
lift-/.f64N/A
clear-numN/A
associate-/r/N/A
lower-fma.f64N/A
frac-2negN/A
metadata-evalN/A
lower-/.f64N/A
neg-sub0N/A
lift--.f64N/A
sub-negN/A
+-commutativeN/A
associate--r+N/A
neg-sub0N/A
remove-double-negN/A
lower--.f6482.1
lift-*.f64N/A
*-commutativeN/A
lower-*.f6482.1
Applied rewrites82.1%
Taylor expanded in t around 0
+-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
lower-/.f64N/A
lower--.f6473.8
Applied rewrites73.8%
Taylor expanded in y around 0
Applied rewrites59.9%
Final simplification53.9%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (fma (/ (- x y) t) (- z a) y)))
(if (<= t -2.7e-64)
t_1
(if (<= t 4.1e+39) (fma (- y x) (/ (- z t) a) x) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = fma(((x - y) / t), (z - a), y);
double tmp;
if (t <= -2.7e-64) {
tmp = t_1;
} else if (t <= 4.1e+39) {
tmp = fma((y - x), ((z - t) / a), x);
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a) t_1 = fma(Float64(Float64(x - y) / t), Float64(z - a), y) tmp = 0.0 if (t <= -2.7e-64) tmp = t_1; elseif (t <= 4.1e+39) tmp = fma(Float64(y - x), Float64(Float64(z - t) / a), x); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(N[(x - y), $MachinePrecision] / t), $MachinePrecision] * N[(z - a), $MachinePrecision] + y), $MachinePrecision]}, If[LessEqual[t, -2.7e-64], t$95$1, If[LessEqual[t, 4.1e+39], N[(N[(y - x), $MachinePrecision] * N[(N[(z - t), $MachinePrecision] / a), $MachinePrecision] + x), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(\frac{x - y}{t}, z - a, y\right)\\
\mathbf{if}\;t \leq -2.7 \cdot 10^{-64}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 4.1 \cdot 10^{+39}:\\
\;\;\;\;\mathsf{fma}\left(y - x, \frac{z - t}{a}, x\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -2.69999999999999986e-64 or 4.10000000000000004e39 < t Initial program 42.3%
Taylor expanded in t around inf
associate--l+N/A
distribute-lft-out--N/A
div-subN/A
+-commutativeN/A
mul-1-negN/A
div-subN/A
associate-/l*N/A
associate-/l*N/A
distribute-rgt-out--N/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
Applied rewrites69.0%
if -2.69999999999999986e-64 < t < 4.10000000000000004e39Initial program 89.8%
lift-+.f64N/A
+-commutativeN/A
lift-/.f64N/A
clear-numN/A
associate-/r/N/A
lower-fma.f64N/A
frac-2negN/A
metadata-evalN/A
lower-/.f64N/A
neg-sub0N/A
lift--.f64N/A
sub-negN/A
+-commutativeN/A
associate--r+N/A
neg-sub0N/A
remove-double-negN/A
lower--.f6489.9
lift-*.f64N/A
*-commutativeN/A
lower-*.f6489.9
Applied rewrites89.9%
Taylor expanded in a around inf
+-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
lower--.f64N/A
lower-/.f64N/A
lower--.f6488.5
Applied rewrites88.5%
(FPCore (x y z t a) :precision binary64 (let* ((t_1 (fma (/ (- x y) t) (- z a) y))) (if (<= t -2.1e-64) t_1 (if (<= t 5.2e+35) (fma (/ (- y x) a) z x) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = fma(((x - y) / t), (z - a), y);
double tmp;
if (t <= -2.1e-64) {
tmp = t_1;
} else if (t <= 5.2e+35) {
tmp = fma(((y - x) / a), z, x);
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a) t_1 = fma(Float64(Float64(x - y) / t), Float64(z - a), y) tmp = 0.0 if (t <= -2.1e-64) tmp = t_1; elseif (t <= 5.2e+35) tmp = fma(Float64(Float64(y - x) / a), z, x); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(N[(x - y), $MachinePrecision] / t), $MachinePrecision] * N[(z - a), $MachinePrecision] + y), $MachinePrecision]}, If[LessEqual[t, -2.1e-64], t$95$1, If[LessEqual[t, 5.2e+35], N[(N[(N[(y - x), $MachinePrecision] / a), $MachinePrecision] * z + x), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(\frac{x - y}{t}, z - a, y\right)\\
\mathbf{if}\;t \leq -2.1 \cdot 10^{-64}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 5.2 \cdot 10^{+35}:\\
\;\;\;\;\mathsf{fma}\left(\frac{y - x}{a}, z, x\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -2.10000000000000011e-64 or 5.20000000000000013e35 < t Initial program 42.3%
Taylor expanded in t around inf
associate--l+N/A
distribute-lft-out--N/A
div-subN/A
+-commutativeN/A
mul-1-negN/A
div-subN/A
associate-/l*N/A
associate-/l*N/A
distribute-rgt-out--N/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
Applied rewrites69.0%
if -2.10000000000000011e-64 < t < 5.20000000000000013e35Initial program 89.8%
Taylor expanded in t around 0
+-commutativeN/A
associate-/l*N/A
*-commutativeN/A
lower-fma.f64N/A
lower-/.f64N/A
lower--.f6483.8
Applied rewrites83.8%
(FPCore (x y z t a) :precision binary64 (if (<= t -2.7e-64) (* (/ (- t z) (- t a)) y) (if (<= t 7.5e+36) (fma (/ (- y x) a) z x) (fma (/ x t) (- z a) y))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -2.7e-64) {
tmp = ((t - z) / (t - a)) * y;
} else if (t <= 7.5e+36) {
tmp = fma(((y - x) / a), z, x);
} else {
tmp = fma((x / t), (z - a), y);
}
return tmp;
}
function code(x, y, z, t, a) tmp = 0.0 if (t <= -2.7e-64) tmp = Float64(Float64(Float64(t - z) / Float64(t - a)) * y); elseif (t <= 7.5e+36) tmp = fma(Float64(Float64(y - x) / a), z, x); else tmp = fma(Float64(x / t), Float64(z - a), y); end return tmp end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -2.7e-64], N[(N[(N[(t - z), $MachinePrecision] / N[(t - a), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[t, 7.5e+36], N[(N[(N[(y - x), $MachinePrecision] / a), $MachinePrecision] * z + x), $MachinePrecision], N[(N[(x / t), $MachinePrecision] * N[(z - a), $MachinePrecision] + y), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.7 \cdot 10^{-64}:\\
\;\;\;\;\frac{t - z}{t - a} \cdot y\\
\mathbf{elif}\;t \leq 7.5 \cdot 10^{+36}:\\
\;\;\;\;\mathsf{fma}\left(\frac{y - x}{a}, z, x\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(\frac{x}{t}, z - a, y\right)\\
\end{array}
\end{array}
if t < -2.69999999999999986e-64Initial program 47.7%
Taylor expanded in x around 0
*-commutativeN/A
associate-/l*N/A
lower-*.f64N/A
lower--.f64N/A
lower-/.f64N/A
lower--.f6455.8
Applied rewrites55.8%
Applied rewrites63.0%
if -2.69999999999999986e-64 < t < 7.50000000000000054e36Initial program 89.8%
Taylor expanded in t around 0
+-commutativeN/A
associate-/l*N/A
*-commutativeN/A
lower-fma.f64N/A
lower-/.f64N/A
lower--.f6483.8
Applied rewrites83.8%
if 7.50000000000000054e36 < t Initial program 31.3%
Taylor expanded in t around inf
associate--l+N/A
distribute-lft-out--N/A
div-subN/A
+-commutativeN/A
mul-1-negN/A
div-subN/A
associate-/l*N/A
associate-/l*N/A
distribute-rgt-out--N/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
Applied rewrites75.5%
Taylor expanded in x around inf
Applied rewrites71.5%
Final simplification74.2%
(FPCore (x y z t a) :precision binary64 (let* ((t_1 (fma (/ x t) (- z a) y))) (if (<= t -4.7e+96) t_1 (if (<= t 7.5e+36) (fma (/ (- y x) a) z x) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = fma((x / t), (z - a), y);
double tmp;
if (t <= -4.7e+96) {
tmp = t_1;
} else if (t <= 7.5e+36) {
tmp = fma(((y - x) / a), z, x);
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a) t_1 = fma(Float64(x / t), Float64(z - a), y) tmp = 0.0 if (t <= -4.7e+96) tmp = t_1; elseif (t <= 7.5e+36) tmp = fma(Float64(Float64(y - x) / a), z, x); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(x / t), $MachinePrecision] * N[(z - a), $MachinePrecision] + y), $MachinePrecision]}, If[LessEqual[t, -4.7e+96], t$95$1, If[LessEqual[t, 7.5e+36], N[(N[(N[(y - x), $MachinePrecision] / a), $MachinePrecision] * z + x), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(\frac{x}{t}, z - a, y\right)\\
\mathbf{if}\;t \leq -4.7 \cdot 10^{+96}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 7.5 \cdot 10^{+36}:\\
\;\;\;\;\mathsf{fma}\left(\frac{y - x}{a}, z, x\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -4.7000000000000001e96 or 7.50000000000000054e36 < t Initial program 29.7%
Taylor expanded in t around inf
associate--l+N/A
distribute-lft-out--N/A
div-subN/A
+-commutativeN/A
mul-1-negN/A
div-subN/A
associate-/l*N/A
associate-/l*N/A
distribute-rgt-out--N/A
distribute-lft-neg-inN/A
lower-fma.f64N/A
Applied rewrites76.3%
Taylor expanded in x around inf
Applied rewrites72.7%
if -4.7000000000000001e96 < t < 7.50000000000000054e36Initial program 85.1%
Taylor expanded in t around 0
+-commutativeN/A
associate-/l*N/A
*-commutativeN/A
lower-fma.f64N/A
lower-/.f64N/A
lower--.f6474.5
Applied rewrites74.5%
(FPCore (x y z t a) :precision binary64 (let* ((t_1 (+ (- y x) x))) (if (<= t -1.25e+102) t_1 (if (<= t 1.85e+200) (fma z (/ y a) x) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = (y - x) + x;
double tmp;
if (t <= -1.25e+102) {
tmp = t_1;
} else if (t <= 1.85e+200) {
tmp = fma(z, (y / a), x);
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a) t_1 = Float64(Float64(y - x) + x) tmp = 0.0 if (t <= -1.25e+102) tmp = t_1; elseif (t <= 1.85e+200) tmp = fma(z, Float64(y / a), x); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(y - x), $MachinePrecision] + x), $MachinePrecision]}, If[LessEqual[t, -1.25e+102], t$95$1, If[LessEqual[t, 1.85e+200], N[(z * N[(y / a), $MachinePrecision] + x), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(y - x\right) + x\\
\mathbf{if}\;t \leq -1.25 \cdot 10^{+102}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 1.85 \cdot 10^{+200}:\\
\;\;\;\;\mathsf{fma}\left(z, \frac{y}{a}, x\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -1.25e102 or 1.8500000000000001e200 < t Initial program 25.9%
Taylor expanded in t around inf
lower--.f6441.7
Applied rewrites41.7%
if -1.25e102 < t < 1.8500000000000001e200Initial program 79.6%
lift-+.f64N/A
+-commutativeN/A
lift-/.f64N/A
clear-numN/A
associate-/r/N/A
lower-fma.f64N/A
frac-2negN/A
metadata-evalN/A
lower-/.f64N/A
neg-sub0N/A
lift--.f64N/A
sub-negN/A
+-commutativeN/A
associate--r+N/A
neg-sub0N/A
remove-double-negN/A
lower--.f6479.6
lift-*.f64N/A
*-commutativeN/A
lower-*.f6479.6
Applied rewrites79.6%
Taylor expanded in t around 0
+-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
lower-/.f64N/A
lower--.f6468.4
Applied rewrites68.4%
Taylor expanded in y around inf
Applied rewrites53.8%
Final simplification50.4%
(FPCore (x y z t a) :precision binary64 (let* ((t_1 (+ (- y x) x))) (if (<= t -5.1e+96) t_1 (if (<= t 4.2e+89) (* (/ z a) y) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = (y - x) + x;
double tmp;
if (t <= -5.1e+96) {
tmp = t_1;
} else if (t <= 4.2e+89) {
tmp = (z / a) * y;
} 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 - x) + x
if (t <= (-5.1d+96)) then
tmp = t_1
else if (t <= 4.2d+89) then
tmp = (z / a) * y
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 - x) + x;
double tmp;
if (t <= -5.1e+96) {
tmp = t_1;
} else if (t <= 4.2e+89) {
tmp = (z / a) * y;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = (y - x) + x tmp = 0 if t <= -5.1e+96: tmp = t_1 elif t <= 4.2e+89: tmp = (z / a) * y else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(Float64(y - x) + x) tmp = 0.0 if (t <= -5.1e+96) tmp = t_1; elseif (t <= 4.2e+89) tmp = Float64(Float64(z / a) * y); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = (y - x) + x; tmp = 0.0; if (t <= -5.1e+96) tmp = t_1; elseif (t <= 4.2e+89) tmp = (z / a) * y; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(y - x), $MachinePrecision] + x), $MachinePrecision]}, If[LessEqual[t, -5.1e+96], t$95$1, If[LessEqual[t, 4.2e+89], N[(N[(z / a), $MachinePrecision] * y), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(y - x\right) + x\\
\mathbf{if}\;t \leq -5.1 \cdot 10^{+96}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 4.2 \cdot 10^{+89}:\\
\;\;\;\;\frac{z}{a} \cdot y\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -5.10000000000000015e96 or 4.19999999999999972e89 < t Initial program 29.5%
Taylor expanded in t around inf
lower--.f6437.4
Applied rewrites37.4%
if -5.10000000000000015e96 < t < 4.19999999999999972e89Initial program 84.2%
Taylor expanded in x around 0
*-commutativeN/A
associate-/l*N/A
lower-*.f64N/A
lower--.f64N/A
lower-/.f64N/A
lower--.f6435.5
Applied rewrites35.5%
Taylor expanded in a around inf
Applied rewrites26.1%
Taylor expanded in t around 0
Applied rewrites24.9%
Final simplification29.4%
(FPCore (x y z t a) :precision binary64 (+ (- y x) x))
double code(double x, double y, double z, double t, double a) {
return (y - x) + 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 = (y - x) + x
end function
public static double code(double x, double y, double z, double t, double a) {
return (y - x) + x;
}
def code(x, y, z, t, a): return (y - x) + x
function code(x, y, z, t, a) return Float64(Float64(y - x) + x) end
function tmp = code(x, y, z, t, a) tmp = (y - x) + x; end
code[x_, y_, z_, t_, a_] := N[(N[(y - x), $MachinePrecision] + x), $MachinePrecision]
\begin{array}{l}
\\
\left(y - x\right) + x
\end{array}
Initial program 64.5%
Taylor expanded in t around inf
lower--.f6419.0
Applied rewrites19.0%
Final simplification19.0%
(FPCore (x y z t a) :precision binary64 (+ (- x) x))
double code(double x, double y, double z, double t, double a) {
return -x + 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 + x
end function
public static double code(double x, double y, double z, double t, double a) {
return -x + x;
}
def code(x, y, z, t, a): return -x + x
function code(x, y, z, t, a) return Float64(Float64(-x) + x) end
function tmp = code(x, y, z, t, a) tmp = -x + x; end
code[x_, y_, z_, t_, a_] := N[((-x) + x), $MachinePrecision]
\begin{array}{l}
\\
\left(-x\right) + x
\end{array}
Initial program 64.5%
Taylor expanded in t around inf
lower--.f6419.0
Applied rewrites19.0%
Taylor expanded in y around 0
Applied rewrites2.7%
Final simplification2.7%
(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 2024235
(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))))