
(FPCore (x y z t a) :precision binary64 (+ x (* (- y z) (/ (- t x) (- a z)))))
double code(double x, double y, double z, double t, double a) {
return x + ((y - z) * ((t - x) / (a - z)));
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
code = x + ((y - z) * ((t - x) / (a - z)))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + ((y - z) * ((t - x) / (a - z)));
}
def code(x, y, z, t, a): return x + ((y - z) * ((t - x) / (a - z)))
function code(x, y, z, t, a) return Float64(x + Float64(Float64(y - z) * Float64(Float64(t - x) / Float64(a - z)))) end
function tmp = code(x, y, z, t, a) tmp = x + ((y - z) * ((t - x) / (a - z))); end
code[x_, y_, z_, t_, a_] := N[(x + N[(N[(y - z), $MachinePrecision] * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \left(y - z\right) \cdot \frac{t - x}{a - z}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 19 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a) :precision binary64 (+ x (* (- y z) (/ (- t x) (- a z)))))
double code(double x, double y, double z, double t, double a) {
return x + ((y - z) * ((t - x) / (a - z)));
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
code = x + ((y - z) * ((t - x) / (a - z)))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + ((y - z) * ((t - x) / (a - z)));
}
def code(x, y, z, t, a): return x + ((y - z) * ((t - x) / (a - z)))
function code(x, y, z, t, a) return Float64(x + Float64(Float64(y - z) * Float64(Float64(t - x) / Float64(a - z)))) end
function tmp = code(x, y, z, t, a) tmp = x + ((y - z) * ((t - x) / (a - z))); end
code[x_, y_, z_, t_, a_] := N[(x + N[(N[(y - z), $MachinePrecision] * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \left(y - z\right) \cdot \frac{t - x}{a - z}
\end{array}
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (fma (/ (- y z) (- a z)) (- t x) x))
(t_2 (+ x (* (- y z) (/ (- t x) (- a z))))))
(if (<= t_2 -5e-300)
t_1
(if (<= t_2 0.0) (+ t (* (/ (- x) z) (- a y))) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = fma(((y - z) / (a - z)), (t - x), x);
double t_2 = x + ((y - z) * ((t - x) / (a - z)));
double tmp;
if (t_2 <= -5e-300) {
tmp = t_1;
} else if (t_2 <= 0.0) {
tmp = t + ((-x / z) * (a - y));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a) t_1 = fma(Float64(Float64(y - z) / Float64(a - z)), Float64(t - x), x) t_2 = Float64(x + Float64(Float64(y - z) * Float64(Float64(t - x) / Float64(a - z)))) tmp = 0.0 if (t_2 <= -5e-300) tmp = t_1; elseif (t_2 <= 0.0) tmp = Float64(t + Float64(Float64(Float64(-x) / z) * Float64(a - y))); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision] * N[(t - x), $MachinePrecision] + x), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(N[(y - z), $MachinePrecision] * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, -5e-300], t$95$1, If[LessEqual[t$95$2, 0.0], N[(t + N[(N[((-x) / z), $MachinePrecision] * N[(a - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(\frac{y - z}{a - z}, t - x, x\right)\\
t_2 := x + \left(y - z\right) \cdot \frac{t - x}{a - z}\\
\mathbf{if}\;t\_2 \leq -5 \cdot 10^{-300}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t\_2 \leq 0:\\
\;\;\;\;t + \frac{-x}{z} \cdot \left(a - y\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < -4.99999999999999996e-300 or 0.0 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) Initial program 88.9%
lift-+.f64N/A
+-commutativeN/A
lift-*.f64N/A
lift-/.f64N/A
clear-numN/A
associate-*r/N/A
div-invN/A
times-fracN/A
lift--.f64N/A
flip--N/A
clear-numN/A
clear-numN/A
flip--N/A
lift--.f64N/A
lower-fma.f64N/A
lower-/.f6493.9
Applied rewrites93.9%
if -4.99999999999999996e-300 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < 0.0Initial program 3.1%
lift-+.f64N/A
+-commutativeN/A
lift-*.f64N/A
lift-/.f64N/A
clear-numN/A
associate-*r/N/A
div-invN/A
times-fracN/A
lift--.f64N/A
flip--N/A
clear-numN/A
clear-numN/A
flip--N/A
lift--.f64N/A
lower-fma.f64N/A
lower-/.f643.1
Applied rewrites3.1%
Taylor expanded in y around inf
div-subN/A
associate-/l*N/A
lower-/.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower--.f64N/A
lower--.f6428.7
Applied rewrites28.7%
Taylor expanded in z around inf
associate--l+N/A
distribute-lft-out--N/A
div-subN/A
mul-1-negN/A
unsub-negN/A
lower--.f64N/A
div-subN/A
associate-/l*N/A
associate-/l*N/A
distribute-rgt-out--N/A
lower-*.f64N/A
lower-/.f64N/A
lower--.f64N/A
lower--.f6499.8
Applied rewrites99.8%
Taylor expanded in t around 0
Applied rewrites99.8%
Final simplification94.5%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* (- y z) (/ (- t x) (- a z))))) (t_2 (+ x (- (- t)))))
(if (<= t_1 -1e+292)
(* y (/ (- t x) a))
(if (<= t_1 -5e-300)
t_2
(if (<= t_1 0.0)
(* x (/ (- y a) z))
(if (<= t_1 5e+293) t_2 (* t (/ y (- a z)))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + ((y - z) * ((t - x) / (a - z)));
double t_2 = x + -(-t);
double tmp;
if (t_1 <= -1e+292) {
tmp = y * ((t - x) / a);
} else if (t_1 <= -5e-300) {
tmp = t_2;
} else if (t_1 <= 0.0) {
tmp = x * ((y - a) / z);
} else if (t_1 <= 5e+293) {
tmp = t_2;
} else {
tmp = t * (y / (a - z));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x + ((y - z) * ((t - x) / (a - z)))
t_2 = x + -(-t)
if (t_1 <= (-1d+292)) then
tmp = y * ((t - x) / a)
else if (t_1 <= (-5d-300)) then
tmp = t_2
else if (t_1 <= 0.0d0) then
tmp = x * ((y - a) / z)
else if (t_1 <= 5d+293) then
tmp = t_2
else
tmp = t * (y / (a - z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x + ((y - z) * ((t - x) / (a - z)));
double t_2 = x + -(-t);
double tmp;
if (t_1 <= -1e+292) {
tmp = y * ((t - x) / a);
} else if (t_1 <= -5e-300) {
tmp = t_2;
} else if (t_1 <= 0.0) {
tmp = x * ((y - a) / z);
} else if (t_1 <= 5e+293) {
tmp = t_2;
} else {
tmp = t * (y / (a - z));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + ((y - z) * ((t - x) / (a - z))) t_2 = x + -(-t) tmp = 0 if t_1 <= -1e+292: tmp = y * ((t - x) / a) elif t_1 <= -5e-300: tmp = t_2 elif t_1 <= 0.0: tmp = x * ((y - a) / z) elif t_1 <= 5e+293: tmp = t_2 else: tmp = t * (y / (a - z)) return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(y - z) * Float64(Float64(t - x) / Float64(a - z)))) t_2 = Float64(x + Float64(-Float64(-t))) tmp = 0.0 if (t_1 <= -1e+292) tmp = Float64(y * Float64(Float64(t - x) / a)); elseif (t_1 <= -5e-300) tmp = t_2; elseif (t_1 <= 0.0) tmp = Float64(x * Float64(Float64(y - a) / z)); elseif (t_1 <= 5e+293) tmp = t_2; else tmp = Float64(t * Float64(y / Float64(a - z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + ((y - z) * ((t - x) / (a - z))); t_2 = x + -(-t); tmp = 0.0; if (t_1 <= -1e+292) tmp = y * ((t - x) / a); elseif (t_1 <= -5e-300) tmp = t_2; elseif (t_1 <= 0.0) tmp = x * ((y - a) / z); elseif (t_1 <= 5e+293) tmp = t_2; else tmp = t * (y / (a - z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(y - z), $MachinePrecision] * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x + (-(-t))), $MachinePrecision]}, If[LessEqual[t$95$1, -1e+292], N[(y * N[(N[(t - x), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, -5e-300], t$95$2, If[LessEqual[t$95$1, 0.0], N[(x * N[(N[(y - a), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 5e+293], t$95$2, N[(t * N[(y / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \left(y - z\right) \cdot \frac{t - x}{a - z}\\
t_2 := x + \left(-\left(-t\right)\right)\\
\mathbf{if}\;t\_1 \leq -1 \cdot 10^{+292}:\\
\;\;\;\;y \cdot \frac{t - x}{a}\\
\mathbf{elif}\;t\_1 \leq -5 \cdot 10^{-300}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t\_1 \leq 0:\\
\;\;\;\;x \cdot \frac{y - a}{z}\\
\mathbf{elif}\;t\_1 \leq 5 \cdot 10^{+293}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t \cdot \frac{y}{a - z}\\
\end{array}
\end{array}
if (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < -1e292Initial program 85.4%
lift-+.f64N/A
+-commutativeN/A
lift-*.f64N/A
lift-/.f64N/A
clear-numN/A
associate-*r/N/A
div-invN/A
times-fracN/A
lift--.f64N/A
flip--N/A
clear-numN/A
clear-numN/A
flip--N/A
lift--.f64N/A
lower-fma.f64N/A
lower-/.f6490.1
Applied rewrites90.1%
Taylor expanded in y around inf
div-subN/A
associate-/l*N/A
lower-/.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower--.f64N/A
lower--.f6473.4
Applied rewrites73.4%
Taylor expanded in a around inf
Applied rewrites55.4%
if -1e292 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < -4.99999999999999996e-300 or 0.0 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < 5.00000000000000033e293Initial program 91.3%
Taylor expanded in t around inf
lower-/.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower--.f6458.9
Applied rewrites58.9%
Taylor expanded in a around 0
Applied rewrites52.6%
Taylor expanded in y around 0
Applied rewrites46.7%
if -4.99999999999999996e-300 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < 0.0Initial program 3.1%
lift-+.f64N/A
+-commutativeN/A
lift-*.f64N/A
lift-/.f64N/A
clear-numN/A
associate-*r/N/A
div-invN/A
times-fracN/A
lift--.f64N/A
flip--N/A
clear-numN/A
clear-numN/A
flip--N/A
lift--.f64N/A
lower-fma.f64N/A
lower-/.f643.1
Applied rewrites3.1%
Taylor expanded in y around inf
div-subN/A
associate-/l*N/A
lower-/.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower--.f64N/A
lower--.f6428.7
Applied rewrites28.7%
Taylor expanded in z around inf
associate--l+N/A
distribute-lft-out--N/A
div-subN/A
mul-1-negN/A
unsub-negN/A
lower--.f64N/A
div-subN/A
associate-/l*N/A
associate-/l*N/A
distribute-rgt-out--N/A
lower-*.f64N/A
lower-/.f64N/A
lower--.f64N/A
lower--.f6499.8
Applied rewrites99.8%
Taylor expanded in t around 0
Applied rewrites53.7%
if 5.00000000000000033e293 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) Initial program 75.6%
lift-+.f64N/A
+-commutativeN/A
lift-*.f64N/A
lift-/.f64N/A
clear-numN/A
associate-*r/N/A
div-invN/A
times-fracN/A
lift--.f64N/A
flip--N/A
clear-numN/A
clear-numN/A
flip--N/A
lift--.f64N/A
lower-fma.f64N/A
lower-/.f6499.9
Applied rewrites99.9%
Taylor expanded in y around inf
div-subN/A
associate-/l*N/A
lower-/.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower--.f64N/A
lower--.f6482.5
Applied rewrites82.5%
Taylor expanded in t around inf
Applied rewrites78.7%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* x (/ (- y a) z)))
(t_2 (+ x (* (- y z) (/ (- t x) (- a z)))))
(t_3 (+ x (- (- t)))))
(if (<= t_2 (- INFINITY))
t_1
(if (<= t_2 -5e-300)
t_3
(if (<= t_2 0.0) t_1 (if (<= t_2 5e+293) t_3 (* t (/ y (- a z)))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x * ((y - a) / z);
double t_2 = x + ((y - z) * ((t - x) / (a - z)));
double t_3 = x + -(-t);
double tmp;
if (t_2 <= -((double) INFINITY)) {
tmp = t_1;
} else if (t_2 <= -5e-300) {
tmp = t_3;
} else if (t_2 <= 0.0) {
tmp = t_1;
} else if (t_2 <= 5e+293) {
tmp = t_3;
} else {
tmp = t * (y / (a - z));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x * ((y - a) / z);
double t_2 = x + ((y - z) * ((t - x) / (a - z)));
double t_3 = x + -(-t);
double tmp;
if (t_2 <= -Double.POSITIVE_INFINITY) {
tmp = t_1;
} else if (t_2 <= -5e-300) {
tmp = t_3;
} else if (t_2 <= 0.0) {
tmp = t_1;
} else if (t_2 <= 5e+293) {
tmp = t_3;
} else {
tmp = t * (y / (a - z));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x * ((y - a) / z) t_2 = x + ((y - z) * ((t - x) / (a - z))) t_3 = x + -(-t) tmp = 0 if t_2 <= -math.inf: tmp = t_1 elif t_2 <= -5e-300: tmp = t_3 elif t_2 <= 0.0: tmp = t_1 elif t_2 <= 5e+293: tmp = t_3 else: tmp = t * (y / (a - z)) return tmp
function code(x, y, z, t, a) t_1 = Float64(x * Float64(Float64(y - a) / z)) t_2 = Float64(x + Float64(Float64(y - z) * Float64(Float64(t - x) / Float64(a - z)))) t_3 = Float64(x + Float64(-Float64(-t))) tmp = 0.0 if (t_2 <= Float64(-Inf)) tmp = t_1; elseif (t_2 <= -5e-300) tmp = t_3; elseif (t_2 <= 0.0) tmp = t_1; elseif (t_2 <= 5e+293) tmp = t_3; else tmp = Float64(t * Float64(y / Float64(a - z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x * ((y - a) / z); t_2 = x + ((y - z) * ((t - x) / (a - z))); t_3 = x + -(-t); tmp = 0.0; if (t_2 <= -Inf) tmp = t_1; elseif (t_2 <= -5e-300) tmp = t_3; elseif (t_2 <= 0.0) tmp = t_1; elseif (t_2 <= 5e+293) tmp = t_3; else tmp = t * (y / (a - z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x * N[(N[(y - a), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(N[(y - z), $MachinePrecision] * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(x + (-(-t))), $MachinePrecision]}, If[LessEqual[t$95$2, (-Infinity)], t$95$1, If[LessEqual[t$95$2, -5e-300], t$95$3, If[LessEqual[t$95$2, 0.0], t$95$1, If[LessEqual[t$95$2, 5e+293], t$95$3, N[(t * N[(y / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \frac{y - a}{z}\\
t_2 := x + \left(y - z\right) \cdot \frac{t - x}{a - z}\\
t_3 := x + \left(-\left(-t\right)\right)\\
\mathbf{if}\;t\_2 \leq -\infty:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t\_2 \leq -5 \cdot 10^{-300}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;t\_2 \leq 0:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t\_2 \leq 5 \cdot 10^{+293}:\\
\;\;\;\;t\_3\\
\mathbf{else}:\\
\;\;\;\;t \cdot \frac{y}{a - z}\\
\end{array}
\end{array}
if (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < -inf.0 or -4.99999999999999996e-300 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < 0.0Initial program 29.6%
lift-+.f64N/A
+-commutativeN/A
lift-*.f64N/A
lift-/.f64N/A
clear-numN/A
associate-*r/N/A
div-invN/A
times-fracN/A
lift--.f64N/A
flip--N/A
clear-numN/A
clear-numN/A
flip--N/A
lift--.f64N/A
lower-fma.f64N/A
lower-/.f6431.7
Applied rewrites31.7%
Taylor expanded in y around inf
div-subN/A
associate-/l*N/A
lower-/.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower--.f64N/A
lower--.f6449.4
Applied rewrites49.4%
Taylor expanded in z around inf
associate--l+N/A
distribute-lft-out--N/A
div-subN/A
mul-1-negN/A
unsub-negN/A
lower--.f64N/A
div-subN/A
associate-/l*N/A
associate-/l*N/A
distribute-rgt-out--N/A
lower-*.f64N/A
lower-/.f64N/A
lower--.f64N/A
lower--.f6486.4
Applied rewrites86.4%
Taylor expanded in t around 0
Applied rewrites53.9%
if -inf.0 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < -4.99999999999999996e-300 or 0.0 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < 5.00000000000000033e293Initial program 91.5%
Taylor expanded in t around inf
lower-/.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower--.f6458.6
Applied rewrites58.6%
Taylor expanded in a around 0
Applied rewrites52.7%
Taylor expanded in y around 0
Applied rewrites46.5%
if 5.00000000000000033e293 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) Initial program 75.6%
lift-+.f64N/A
+-commutativeN/A
lift-*.f64N/A
lift-/.f64N/A
clear-numN/A
associate-*r/N/A
div-invN/A
times-fracN/A
lift--.f64N/A
flip--N/A
clear-numN/A
clear-numN/A
flip--N/A
lift--.f64N/A
lower-fma.f64N/A
lower-/.f6499.9
Applied rewrites99.9%
Taylor expanded in y around inf
div-subN/A
associate-/l*N/A
lower-/.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower--.f64N/A
lower--.f6482.5
Applied rewrites82.5%
Taylor expanded in t around inf
Applied rewrites78.7%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (fma (/ (- t x) z) (- a y) t)))
(if (<= z -1.1e+172)
t_1
(if (<= z 3.4e-47)
(fma (/ y (- a z)) (- t x) x)
(if (<= z 8.5e+110) (+ x (* (- y z) (/ t (- a z)))) t_1)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = fma(((t - x) / z), (a - y), t);
double tmp;
if (z <= -1.1e+172) {
tmp = t_1;
} else if (z <= 3.4e-47) {
tmp = fma((y / (a - z)), (t - x), x);
} else if (z <= 8.5e+110) {
tmp = x + ((y - z) * (t / (a - z)));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a) t_1 = fma(Float64(Float64(t - x) / z), Float64(a - y), t) tmp = 0.0 if (z <= -1.1e+172) tmp = t_1; elseif (z <= 3.4e-47) tmp = fma(Float64(y / Float64(a - z)), Float64(t - x), x); elseif (z <= 8.5e+110) tmp = Float64(x + Float64(Float64(y - z) * Float64(t / Float64(a - z)))); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(N[(t - x), $MachinePrecision] / z), $MachinePrecision] * N[(a - y), $MachinePrecision] + t), $MachinePrecision]}, If[LessEqual[z, -1.1e+172], t$95$1, If[LessEqual[z, 3.4e-47], N[(N[(y / N[(a - z), $MachinePrecision]), $MachinePrecision] * N[(t - x), $MachinePrecision] + x), $MachinePrecision], If[LessEqual[z, 8.5e+110], N[(x + N[(N[(y - z), $MachinePrecision] * N[(t / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(\frac{t - x}{z}, a - y, t\right)\\
\mathbf{if}\;z \leq -1.1 \cdot 10^{+172}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 3.4 \cdot 10^{-47}:\\
\;\;\;\;\mathsf{fma}\left(\frac{y}{a - z}, t - x, x\right)\\
\mathbf{elif}\;z \leq 8.5 \cdot 10^{+110}:\\
\;\;\;\;x + \left(y - z\right) \cdot \frac{t}{a - z}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -1.1000000000000001e172 or 8.5000000000000004e110 < z Initial program 62.0%
Taylor expanded in z around inf
+-commutativeN/A
associate--l+N/A
sub-negN/A
mul-1-negN/A
remove-double-negN/A
+-commutativeN/A
associate-+r+N/A
associate-/l*N/A
associate-/l*N/A
associate-*r*N/A
distribute-rgt-outN/A
lower-fma.f64N/A
Applied rewrites86.9%
if -1.1000000000000001e172 < z < 3.4000000000000002e-47Initial program 88.0%
lift-+.f64N/A
+-commutativeN/A
lift-*.f64N/A
lift-/.f64N/A
clear-numN/A
associate-*r/N/A
div-invN/A
times-fracN/A
lift--.f64N/A
flip--N/A
clear-numN/A
clear-numN/A
flip--N/A
lift--.f64N/A
lower-fma.f64N/A
lower-/.f6492.0
Applied rewrites92.0%
Taylor expanded in y around inf
lower-/.f64N/A
lower--.f6481.4
Applied rewrites81.4%
if 3.4000000000000002e-47 < z < 8.5000000000000004e110Initial program 88.0%
Taylor expanded in t around inf
lower-/.f64N/A
lower--.f6482.3
Applied rewrites82.3%
Final simplification83.4%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* t (/ (- y z) a)))))
(if (<= a -1.1e+74)
t_1
(if (<= a 3.9e-8)
(- t (/ (* y (- t x)) z))
(if (<= a 8.4e+242) (fma (/ y a) (- t x) x) t_1)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + (t * ((y - z) / a));
double tmp;
if (a <= -1.1e+74) {
tmp = t_1;
} else if (a <= 3.9e-8) {
tmp = t - ((y * (t - x)) / z);
} else if (a <= 8.4e+242) {
tmp = fma((y / a), (t - x), x);
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a) t_1 = Float64(x + Float64(t * Float64(Float64(y - z) / a))) tmp = 0.0 if (a <= -1.1e+74) tmp = t_1; elseif (a <= 3.9e-8) tmp = Float64(t - Float64(Float64(y * Float64(t - x)) / z)); elseif (a <= 8.4e+242) tmp = fma(Float64(y / a), Float64(t - x), x); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(t * N[(N[(y - z), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.1e+74], t$95$1, If[LessEqual[a, 3.9e-8], N[(t - N[(N[(y * N[(t - x), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 8.4e+242], N[(N[(y / a), $MachinePrecision] * N[(t - x), $MachinePrecision] + x), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + t \cdot \frac{y - z}{a}\\
\mathbf{if}\;a \leq -1.1 \cdot 10^{+74}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 3.9 \cdot 10^{-8}:\\
\;\;\;\;t - \frac{y \cdot \left(t - x\right)}{z}\\
\mathbf{elif}\;a \leq 8.4 \cdot 10^{+242}:\\
\;\;\;\;\mathsf{fma}\left(\frac{y}{a}, t - x, x\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -1.1000000000000001e74 or 8.3999999999999997e242 < a Initial program 95.6%
Taylor expanded in t around inf
lower-/.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower--.f6465.3
Applied rewrites65.3%
Taylor expanded in a around inf
Applied rewrites72.4%
if -1.1000000000000001e74 < a < 3.89999999999999985e-8Initial program 69.1%
lift-+.f64N/A
+-commutativeN/A
lift-*.f64N/A
lift-/.f64N/A
clear-numN/A
associate-*r/N/A
div-invN/A
times-fracN/A
lift--.f64N/A
flip--N/A
clear-numN/A
clear-numN/A
flip--N/A
lift--.f64N/A
lower-fma.f64N/A
lower-/.f6476.4
Applied rewrites76.4%
Taylor expanded in y around inf
div-subN/A
associate-/l*N/A
lower-/.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower--.f64N/A
lower--.f6447.7
Applied rewrites47.7%
Taylor expanded in z around inf
associate--l+N/A
distribute-lft-out--N/A
div-subN/A
mul-1-negN/A
unsub-negN/A
lower--.f64N/A
div-subN/A
associate-/l*N/A
associate-/l*N/A
distribute-rgt-out--N/A
lower-*.f64N/A
lower-/.f64N/A
lower--.f64N/A
lower--.f6475.3
Applied rewrites75.3%
Taylor expanded in y around inf
Applied rewrites71.9%
if 3.89999999999999985e-8 < a < 8.3999999999999997e242Initial program 88.3%
lift-+.f64N/A
+-commutativeN/A
lift-*.f64N/A
lift-/.f64N/A
clear-numN/A
associate-*r/N/A
div-invN/A
times-fracN/A
lift--.f64N/A
flip--N/A
clear-numN/A
clear-numN/A
flip--N/A
lift--.f64N/A
lower-fma.f64N/A
lower-/.f6493.0
Applied rewrites93.0%
Taylor expanded in z around 0
lower-/.f6467.0
Applied rewrites67.0%
(FPCore (x y z t a)
:precision binary64
(if (<= z -1.15e+172)
(+ x (- t x))
(if (<= z -7.2e-129)
(fma (/ y a) (- x) x)
(if (<= z 2.15e+27) (+ x (/ (* y t) a)) (+ x (- (- t)))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1.15e+172) {
tmp = x + (t - x);
} else if (z <= -7.2e-129) {
tmp = fma((y / a), -x, x);
} else if (z <= 2.15e+27) {
tmp = x + ((y * t) / a);
} else {
tmp = x + -(-t);
}
return tmp;
}
function code(x, y, z, t, a) tmp = 0.0 if (z <= -1.15e+172) tmp = Float64(x + Float64(t - x)); elseif (z <= -7.2e-129) tmp = fma(Float64(y / a), Float64(-x), x); elseif (z <= 2.15e+27) tmp = Float64(x + Float64(Float64(y * t) / a)); else tmp = Float64(x + Float64(-Float64(-t))); end return tmp end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -1.15e+172], N[(x + N[(t - x), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -7.2e-129], N[(N[(y / a), $MachinePrecision] * (-x) + x), $MachinePrecision], If[LessEqual[z, 2.15e+27], N[(x + N[(N[(y * t), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], N[(x + (-(-t))), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.15 \cdot 10^{+172}:\\
\;\;\;\;x + \left(t - x\right)\\
\mathbf{elif}\;z \leq -7.2 \cdot 10^{-129}:\\
\;\;\;\;\mathsf{fma}\left(\frac{y}{a}, -x, x\right)\\
\mathbf{elif}\;z \leq 2.15 \cdot 10^{+27}:\\
\;\;\;\;x + \frac{y \cdot t}{a}\\
\mathbf{else}:\\
\;\;\;\;x + \left(-\left(-t\right)\right)\\
\end{array}
\end{array}
if z < -1.15e172Initial program 60.2%
Taylor expanded in z around inf
lower--.f6442.4
Applied rewrites42.4%
if -1.15e172 < z < -7.2e-129Initial program 88.5%
lift-+.f64N/A
+-commutativeN/A
lift-*.f64N/A
lift-/.f64N/A
clear-numN/A
associate-*r/N/A
div-invN/A
times-fracN/A
lift--.f64N/A
flip--N/A
clear-numN/A
clear-numN/A
flip--N/A
lift--.f64N/A
lower-fma.f64N/A
lower-/.f6491.5
Applied rewrites91.5%
Taylor expanded in z around 0
lower-/.f6462.8
Applied rewrites62.8%
Taylor expanded in t around 0
mul-1-negN/A
lower-neg.f6452.8
Applied rewrites52.8%
if -7.2e-129 < z < 2.15000000000000004e27Initial program 87.8%
Taylor expanded in z around 0
lower-/.f64N/A
lower-*.f64N/A
lower--.f6464.6
Applied rewrites64.6%
Taylor expanded in t around inf
Applied rewrites57.0%
if 2.15000000000000004e27 < z Initial program 68.8%
Taylor expanded in t around inf
lower-/.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower--.f6438.3
Applied rewrites38.3%
Taylor expanded in a around 0
Applied rewrites59.4%
Taylor expanded in y around 0
Applied rewrites52.4%
Final simplification52.8%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ t (* (/ (- x) z) (- a y)))))
(if (<= z -1.1e+172)
t_1
(if (<= z 8.5e+110) (fma (/ y (- a z)) (- t x) x) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t + ((-x / z) * (a - y));
double tmp;
if (z <= -1.1e+172) {
tmp = t_1;
} else if (z <= 8.5e+110) {
tmp = fma((y / (a - z)), (t - x), x);
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a) t_1 = Float64(t + Float64(Float64(Float64(-x) / z) * Float64(a - y))) tmp = 0.0 if (z <= -1.1e+172) tmp = t_1; elseif (z <= 8.5e+110) tmp = fma(Float64(y / Float64(a - z)), Float64(t - x), x); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t + N[(N[((-x) / z), $MachinePrecision] * N[(a - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.1e+172], t$95$1, If[LessEqual[z, 8.5e+110], N[(N[(y / N[(a - z), $MachinePrecision]), $MachinePrecision] * N[(t - x), $MachinePrecision] + x), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t + \frac{-x}{z} \cdot \left(a - y\right)\\
\mathbf{if}\;z \leq -1.1 \cdot 10^{+172}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 8.5 \cdot 10^{+110}:\\
\;\;\;\;\mathsf{fma}\left(\frac{y}{a - z}, t - x, x\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -1.1000000000000001e172 or 8.5000000000000004e110 < z Initial program 62.0%
lift-+.f64N/A
+-commutativeN/A
lift-*.f64N/A
lift-/.f64N/A
clear-numN/A
associate-*r/N/A
div-invN/A
times-fracN/A
lift--.f64N/A
flip--N/A
clear-numN/A
clear-numN/A
flip--N/A
lift--.f64N/A
lower-fma.f64N/A
lower-/.f6468.8
Applied rewrites68.8%
Taylor expanded in y around inf
div-subN/A
associate-/l*N/A
lower-/.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower--.f64N/A
lower--.f6417.5
Applied rewrites17.5%
Taylor expanded in z around inf
associate--l+N/A
distribute-lft-out--N/A
div-subN/A
mul-1-negN/A
unsub-negN/A
lower--.f64N/A
div-subN/A
associate-/l*N/A
associate-/l*N/A
distribute-rgt-out--N/A
lower-*.f64N/A
lower-/.f64N/A
lower--.f64N/A
lower--.f6486.9
Applied rewrites86.9%
Taylor expanded in t around 0
Applied rewrites80.3%
if -1.1000000000000001e172 < z < 8.5000000000000004e110Initial program 88.0%
lift-+.f64N/A
+-commutativeN/A
lift-*.f64N/A
lift-/.f64N/A
clear-numN/A
associate-*r/N/A
div-invN/A
times-fracN/A
lift--.f64N/A
flip--N/A
clear-numN/A
clear-numN/A
flip--N/A
lift--.f64N/A
lower-fma.f64N/A
lower-/.f6491.2
Applied rewrites91.2%
Taylor expanded in y around inf
lower-/.f64N/A
lower--.f6479.0
Applied rewrites79.0%
Final simplification79.5%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (fma (/ (- t x) z) (- a y) t)))
(if (<= z -1.1e+172)
t_1
(if (<= z 1.2e+110) (fma (/ y (- a z)) (- t x) x) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = fma(((t - x) / z), (a - y), t);
double tmp;
if (z <= -1.1e+172) {
tmp = t_1;
} else if (z <= 1.2e+110) {
tmp = fma((y / (a - z)), (t - x), x);
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a) t_1 = fma(Float64(Float64(t - x) / z), Float64(a - y), t) tmp = 0.0 if (z <= -1.1e+172) tmp = t_1; elseif (z <= 1.2e+110) tmp = fma(Float64(y / Float64(a - z)), Float64(t - x), x); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(N[(t - x), $MachinePrecision] / z), $MachinePrecision] * N[(a - y), $MachinePrecision] + t), $MachinePrecision]}, If[LessEqual[z, -1.1e+172], t$95$1, If[LessEqual[z, 1.2e+110], N[(N[(y / N[(a - z), $MachinePrecision]), $MachinePrecision] * N[(t - x), $MachinePrecision] + x), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(\frac{t - x}{z}, a - y, t\right)\\
\mathbf{if}\;z \leq -1.1 \cdot 10^{+172}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 1.2 \cdot 10^{+110}:\\
\;\;\;\;\mathsf{fma}\left(\frac{y}{a - z}, t - x, x\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -1.1000000000000001e172 or 1.20000000000000006e110 < z Initial program 62.0%
Taylor expanded in z around inf
+-commutativeN/A
associate--l+N/A
sub-negN/A
mul-1-negN/A
remove-double-negN/A
+-commutativeN/A
associate-+r+N/A
associate-/l*N/A
associate-/l*N/A
associate-*r*N/A
distribute-rgt-outN/A
lower-fma.f64N/A
Applied rewrites86.9%
if -1.1000000000000001e172 < z < 1.20000000000000006e110Initial program 88.0%
lift-+.f64N/A
+-commutativeN/A
lift-*.f64N/A
lift-/.f64N/A
clear-numN/A
associate-*r/N/A
div-invN/A
times-fracN/A
lift--.f64N/A
flip--N/A
clear-numN/A
clear-numN/A
flip--N/A
lift--.f64N/A
lower-fma.f64N/A
lower-/.f6491.2
Applied rewrites91.2%
Taylor expanded in y around inf
lower-/.f64N/A
lower--.f6479.0
Applied rewrites79.0%
Final simplification81.7%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (- t (/ (* y (- t x)) z))))
(if (<= z -1.15e+172)
t_1
(if (<= z 4.5e+110) (fma (/ y (- a z)) (- t x) x) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t - ((y * (t - x)) / z);
double tmp;
if (z <= -1.15e+172) {
tmp = t_1;
} else if (z <= 4.5e+110) {
tmp = fma((y / (a - z)), (t - x), x);
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a) t_1 = Float64(t - Float64(Float64(y * Float64(t - x)) / z)) tmp = 0.0 if (z <= -1.15e+172) tmp = t_1; elseif (z <= 4.5e+110) tmp = fma(Float64(y / Float64(a - z)), Float64(t - x), x); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t - N[(N[(y * N[(t - x), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.15e+172], t$95$1, If[LessEqual[z, 4.5e+110], N[(N[(y / N[(a - z), $MachinePrecision]), $MachinePrecision] * N[(t - x), $MachinePrecision] + x), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t - \frac{y \cdot \left(t - x\right)}{z}\\
\mathbf{if}\;z \leq -1.15 \cdot 10^{+172}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 4.5 \cdot 10^{+110}:\\
\;\;\;\;\mathsf{fma}\left(\frac{y}{a - z}, t - x, x\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -1.15e172 or 4.5000000000000003e110 < z Initial program 62.0%
lift-+.f64N/A
+-commutativeN/A
lift-*.f64N/A
lift-/.f64N/A
clear-numN/A
associate-*r/N/A
div-invN/A
times-fracN/A
lift--.f64N/A
flip--N/A
clear-numN/A
clear-numN/A
flip--N/A
lift--.f64N/A
lower-fma.f64N/A
lower-/.f6468.8
Applied rewrites68.8%
Taylor expanded in y around inf
div-subN/A
associate-/l*N/A
lower-/.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower--.f64N/A
lower--.f6417.5
Applied rewrites17.5%
Taylor expanded in z around inf
associate--l+N/A
distribute-lft-out--N/A
div-subN/A
mul-1-negN/A
unsub-negN/A
lower--.f64N/A
div-subN/A
associate-/l*N/A
associate-/l*N/A
distribute-rgt-out--N/A
lower-*.f64N/A
lower-/.f64N/A
lower--.f64N/A
lower--.f6486.9
Applied rewrites86.9%
Taylor expanded in y around inf
Applied rewrites72.2%
if -1.15e172 < z < 4.5000000000000003e110Initial program 88.0%
lift-+.f64N/A
+-commutativeN/A
lift-*.f64N/A
lift-/.f64N/A
clear-numN/A
associate-*r/N/A
div-invN/A
times-fracN/A
lift--.f64N/A
flip--N/A
clear-numN/A
clear-numN/A
flip--N/A
lift--.f64N/A
lower-fma.f64N/A
lower-/.f6491.2
Applied rewrites91.2%
Taylor expanded in y around inf
lower-/.f64N/A
lower--.f6479.0
Applied rewrites79.0%
(FPCore (x y z t a) :precision binary64 (let* ((t_1 (fma (- y z) (/ (- t x) a) x))) (if (<= a -1.1e+74) t_1 (if (<= a 3.9e-8) (- t (/ (* y (- t x)) z)) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = fma((y - z), ((t - x) / a), x);
double tmp;
if (a <= -1.1e+74) {
tmp = t_1;
} else if (a <= 3.9e-8) {
tmp = t - ((y * (t - x)) / z);
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a) t_1 = fma(Float64(y - z), Float64(Float64(t - x) / a), x) tmp = 0.0 if (a <= -1.1e+74) tmp = t_1; elseif (a <= 3.9e-8) tmp = Float64(t - Float64(Float64(y * Float64(t - x)) / z)); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(y - z), $MachinePrecision] * N[(N[(t - x), $MachinePrecision] / a), $MachinePrecision] + x), $MachinePrecision]}, If[LessEqual[a, -1.1e+74], t$95$1, If[LessEqual[a, 3.9e-8], N[(t - N[(N[(y * N[(t - x), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(y - z, \frac{t - x}{a}, x\right)\\
\mathbf{if}\;a \leq -1.1 \cdot 10^{+74}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 3.9 \cdot 10^{-8}:\\
\;\;\;\;t - \frac{y \cdot \left(t - x\right)}{z}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -1.1000000000000001e74 or 3.89999999999999985e-8 < a Initial program 91.8%
Taylor expanded in a around inf
+-commutativeN/A
*-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
lower--.f64N/A
lower-/.f64N/A
lower--.f6474.3
Applied rewrites74.3%
if -1.1000000000000001e74 < a < 3.89999999999999985e-8Initial program 69.1%
lift-+.f64N/A
+-commutativeN/A
lift-*.f64N/A
lift-/.f64N/A
clear-numN/A
associate-*r/N/A
div-invN/A
times-fracN/A
lift--.f64N/A
flip--N/A
clear-numN/A
clear-numN/A
flip--N/A
lift--.f64N/A
lower-fma.f64N/A
lower-/.f6476.4
Applied rewrites76.4%
Taylor expanded in y around inf
div-subN/A
associate-/l*N/A
lower-/.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower--.f64N/A
lower--.f6447.7
Applied rewrites47.7%
Taylor expanded in z around inf
associate--l+N/A
distribute-lft-out--N/A
div-subN/A
mul-1-negN/A
unsub-negN/A
lower--.f64N/A
div-subN/A
associate-/l*N/A
associate-/l*N/A
distribute-rgt-out--N/A
lower-*.f64N/A
lower-/.f64N/A
lower--.f64N/A
lower--.f6475.3
Applied rewrites75.3%
Taylor expanded in y around inf
Applied rewrites71.9%
(FPCore (x y z t a) :precision binary64 (let* ((t_1 (fma y (/ (- t x) a) x))) (if (<= a -9.5e+130) t_1 (if (<= a 3.9e-8) (- t (/ (* y (- t x)) z)) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = fma(y, ((t - x) / a), x);
double tmp;
if (a <= -9.5e+130) {
tmp = t_1;
} else if (a <= 3.9e-8) {
tmp = t - ((y * (t - x)) / z);
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a) t_1 = fma(y, Float64(Float64(t - x) / a), x) tmp = 0.0 if (a <= -9.5e+130) tmp = t_1; elseif (a <= 3.9e-8) tmp = Float64(t - Float64(Float64(y * Float64(t - x)) / z)); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(y * N[(N[(t - x), $MachinePrecision] / a), $MachinePrecision] + x), $MachinePrecision]}, If[LessEqual[a, -9.5e+130], t$95$1, If[LessEqual[a, 3.9e-8], N[(t - N[(N[(y * N[(t - x), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(y, \frac{t - x}{a}, x\right)\\
\mathbf{if}\;a \leq -9.5 \cdot 10^{+130}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 3.9 \cdot 10^{-8}:\\
\;\;\;\;t - \frac{y \cdot \left(t - x\right)}{z}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -9.5000000000000009e130 or 3.89999999999999985e-8 < a Initial program 92.2%
Taylor expanded in z around 0
+-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
lower-/.f64N/A
lower--.f6467.4
Applied rewrites67.4%
if -9.5000000000000009e130 < a < 3.89999999999999985e-8Initial program 69.9%
lift-+.f64N/A
+-commutativeN/A
lift-*.f64N/A
lift-/.f64N/A
clear-numN/A
associate-*r/N/A
div-invN/A
times-fracN/A
lift--.f64N/A
flip--N/A
clear-numN/A
clear-numN/A
flip--N/A
lift--.f64N/A
lower-fma.f64N/A
lower-/.f6476.9
Applied rewrites76.9%
Taylor expanded in y around inf
div-subN/A
associate-/l*N/A
lower-/.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower--.f64N/A
lower--.f6446.3
Applied rewrites46.3%
Taylor expanded in z around inf
associate--l+N/A
distribute-lft-out--N/A
div-subN/A
mul-1-negN/A
unsub-negN/A
lower--.f64N/A
div-subN/A
associate-/l*N/A
associate-/l*N/A
distribute-rgt-out--N/A
lower-*.f64N/A
lower-/.f64N/A
lower--.f64N/A
lower--.f6475.1
Applied rewrites75.1%
Taylor expanded in y around inf
Applied rewrites69.9%
(FPCore (x y z t a) :precision binary64 (let* ((t_1 (fma a (/ (- t x) z) t))) (if (<= z -1.1e+172) t_1 (if (<= z 9e+112) (fma (/ y a) (- t x) x) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = fma(a, ((t - x) / z), t);
double tmp;
if (z <= -1.1e+172) {
tmp = t_1;
} else if (z <= 9e+112) {
tmp = fma((y / a), (t - x), x);
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a) t_1 = fma(a, Float64(Float64(t - x) / z), t) tmp = 0.0 if (z <= -1.1e+172) tmp = t_1; elseif (z <= 9e+112) tmp = fma(Float64(y / a), Float64(t - x), x); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(a * N[(N[(t - x), $MachinePrecision] / z), $MachinePrecision] + t), $MachinePrecision]}, If[LessEqual[z, -1.1e+172], t$95$1, If[LessEqual[z, 9e+112], N[(N[(y / a), $MachinePrecision] * N[(t - x), $MachinePrecision] + x), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(a, \frac{t - x}{z}, t\right)\\
\mathbf{if}\;z \leq -1.1 \cdot 10^{+172}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 9 \cdot 10^{+112}:\\
\;\;\;\;\mathsf{fma}\left(\frac{y}{a}, t - x, x\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -1.1000000000000001e172 or 8.9999999999999998e112 < z Initial program 62.0%
lift-+.f64N/A
+-commutativeN/A
lift-*.f64N/A
lift-/.f64N/A
clear-numN/A
associate-*r/N/A
div-invN/A
times-fracN/A
lift--.f64N/A
flip--N/A
clear-numN/A
clear-numN/A
flip--N/A
lift--.f64N/A
lower-fma.f64N/A
lower-/.f6468.8
Applied rewrites68.8%
Taylor expanded in y around inf
div-subN/A
associate-/l*N/A
lower-/.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower--.f64N/A
lower--.f6417.5
Applied rewrites17.5%
Taylor expanded in z around inf
associate--l+N/A
distribute-lft-out--N/A
div-subN/A
mul-1-negN/A
unsub-negN/A
lower--.f64N/A
div-subN/A
associate-/l*N/A
associate-/l*N/A
distribute-rgt-out--N/A
lower-*.f64N/A
lower-/.f64N/A
lower--.f64N/A
lower--.f6486.9
Applied rewrites86.9%
Taylor expanded in y around 0
Applied rewrites68.1%
if -1.1000000000000001e172 < z < 8.9999999999999998e112Initial program 88.0%
lift-+.f64N/A
+-commutativeN/A
lift-*.f64N/A
lift-/.f64N/A
clear-numN/A
associate-*r/N/A
div-invN/A
times-fracN/A
lift--.f64N/A
flip--N/A
clear-numN/A
clear-numN/A
flip--N/A
lift--.f64N/A
lower-fma.f64N/A
lower-/.f6491.2
Applied rewrites91.2%
Taylor expanded in z around 0
lower-/.f6464.7
Applied rewrites64.7%
(FPCore (x y z t a) :precision binary64 (let* ((t_1 (fma a (/ (- t x) z) t))) (if (<= z -1.1e+172) t_1 (if (<= z 9e+112) (fma y (/ (- t x) a) x) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = fma(a, ((t - x) / z), t);
double tmp;
if (z <= -1.1e+172) {
tmp = t_1;
} else if (z <= 9e+112) {
tmp = fma(y, ((t - x) / a), x);
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a) t_1 = fma(a, Float64(Float64(t - x) / z), t) tmp = 0.0 if (z <= -1.1e+172) tmp = t_1; elseif (z <= 9e+112) tmp = fma(y, Float64(Float64(t - x) / a), x); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(a * N[(N[(t - x), $MachinePrecision] / z), $MachinePrecision] + t), $MachinePrecision]}, If[LessEqual[z, -1.1e+172], t$95$1, If[LessEqual[z, 9e+112], N[(y * N[(N[(t - x), $MachinePrecision] / a), $MachinePrecision] + x), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(a, \frac{t - x}{z}, t\right)\\
\mathbf{if}\;z \leq -1.1 \cdot 10^{+172}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 9 \cdot 10^{+112}:\\
\;\;\;\;\mathsf{fma}\left(y, \frac{t - x}{a}, x\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -1.1000000000000001e172 or 8.9999999999999998e112 < z Initial program 62.0%
lift-+.f64N/A
+-commutativeN/A
lift-*.f64N/A
lift-/.f64N/A
clear-numN/A
associate-*r/N/A
div-invN/A
times-fracN/A
lift--.f64N/A
flip--N/A
clear-numN/A
clear-numN/A
flip--N/A
lift--.f64N/A
lower-fma.f64N/A
lower-/.f6468.8
Applied rewrites68.8%
Taylor expanded in y around inf
div-subN/A
associate-/l*N/A
lower-/.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower--.f64N/A
lower--.f6417.5
Applied rewrites17.5%
Taylor expanded in z around inf
associate--l+N/A
distribute-lft-out--N/A
div-subN/A
mul-1-negN/A
unsub-negN/A
lower--.f64N/A
div-subN/A
associate-/l*N/A
associate-/l*N/A
distribute-rgt-out--N/A
lower-*.f64N/A
lower-/.f64N/A
lower--.f64N/A
lower--.f6486.9
Applied rewrites86.9%
Taylor expanded in y around 0
Applied rewrites68.1%
if -1.1000000000000001e172 < z < 8.9999999999999998e112Initial program 88.0%
Taylor expanded in z around 0
+-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
lower-/.f64N/A
lower--.f6463.6
Applied rewrites63.6%
(FPCore (x y z t a) :precision binary64 (if (<= z -1.15e+172) (+ x (- t x)) (if (<= z 9e+27) (fma y (/ (- t x) a) x) (+ x (- (- t))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1.15e+172) {
tmp = x + (t - x);
} else if (z <= 9e+27) {
tmp = fma(y, ((t - x) / a), x);
} else {
tmp = x + -(-t);
}
return tmp;
}
function code(x, y, z, t, a) tmp = 0.0 if (z <= -1.15e+172) tmp = Float64(x + Float64(t - x)); elseif (z <= 9e+27) tmp = fma(y, Float64(Float64(t - x) / a), x); else tmp = Float64(x + Float64(-Float64(-t))); end return tmp end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -1.15e+172], N[(x + N[(t - x), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 9e+27], N[(y * N[(N[(t - x), $MachinePrecision] / a), $MachinePrecision] + x), $MachinePrecision], N[(x + (-(-t))), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.15 \cdot 10^{+172}:\\
\;\;\;\;x + \left(t - x\right)\\
\mathbf{elif}\;z \leq 9 \cdot 10^{+27}:\\
\;\;\;\;\mathsf{fma}\left(y, \frac{t - x}{a}, x\right)\\
\mathbf{else}:\\
\;\;\;\;x + \left(-\left(-t\right)\right)\\
\end{array}
\end{array}
if z < -1.15e172Initial program 60.2%
Taylor expanded in z around inf
lower--.f6442.4
Applied rewrites42.4%
if -1.15e172 < z < 8.9999999999999998e27Initial program 88.1%
Taylor expanded in z around 0
+-commutativeN/A
associate-/l*N/A
lower-fma.f64N/A
lower-/.f64N/A
lower--.f6465.6
Applied rewrites65.6%
if 8.9999999999999998e27 < z Initial program 68.8%
Taylor expanded in t around inf
lower-/.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower--.f6438.3
Applied rewrites38.3%
Taylor expanded in a around 0
Applied rewrites59.4%
Taylor expanded in y around 0
Applied rewrites52.4%
(FPCore (x y z t a) :precision binary64 (if (<= z -2.1e+158) (+ x (- t x)) (if (<= z 2.15e+27) (+ x (/ (* y t) a)) (+ x (- (- t))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -2.1e+158) {
tmp = x + (t - x);
} else if (z <= 2.15e+27) {
tmp = x + ((y * t) / a);
} else {
tmp = x + -(-t);
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (z <= (-2.1d+158)) then
tmp = x + (t - x)
else if (z <= 2.15d+27) then
tmp = x + ((y * t) / a)
else
tmp = x + -(-t)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -2.1e+158) {
tmp = x + (t - x);
} else if (z <= 2.15e+27) {
tmp = x + ((y * t) / a);
} else {
tmp = x + -(-t);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -2.1e+158: tmp = x + (t - x) elif z <= 2.15e+27: tmp = x + ((y * t) / a) else: tmp = x + -(-t) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -2.1e+158) tmp = Float64(x + Float64(t - x)); elseif (z <= 2.15e+27) tmp = Float64(x + Float64(Float64(y * t) / a)); else tmp = Float64(x + Float64(-Float64(-t))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -2.1e+158) tmp = x + (t - x); elseif (z <= 2.15e+27) tmp = x + ((y * t) / a); else tmp = x + -(-t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -2.1e+158], N[(x + N[(t - x), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.15e+27], N[(x + N[(N[(y * t), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], N[(x + (-(-t))), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.1 \cdot 10^{+158}:\\
\;\;\;\;x + \left(t - x\right)\\
\mathbf{elif}\;z \leq 2.15 \cdot 10^{+27}:\\
\;\;\;\;x + \frac{y \cdot t}{a}\\
\mathbf{else}:\\
\;\;\;\;x + \left(-\left(-t\right)\right)\\
\end{array}
\end{array}
if z < -2.0999999999999999e158Initial program 63.4%
Taylor expanded in z around inf
lower--.f6441.7
Applied rewrites41.7%
if -2.0999999999999999e158 < z < 2.15000000000000004e27Initial program 87.8%
Taylor expanded in z around 0
lower-/.f64N/A
lower-*.f64N/A
lower--.f6460.0
Applied rewrites60.0%
Taylor expanded in t around inf
Applied rewrites53.1%
if 2.15000000000000004e27 < z Initial program 68.8%
Taylor expanded in t around inf
lower-/.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower--.f6438.3
Applied rewrites38.3%
Taylor expanded in a around 0
Applied rewrites59.4%
Taylor expanded in y around 0
Applied rewrites52.4%
Final simplification51.2%
(FPCore (x y z t a) :precision binary64 (let* ((t_1 (* x (/ (- y a) z)))) (if (<= y -1.52e+145) t_1 (if (<= y 4e+190) (+ x (- (- t))) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x * ((y - a) / z);
double tmp;
if (y <= -1.52e+145) {
tmp = t_1;
} else if (y <= 4e+190) {
tmp = x + -(-t);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = x * ((y - a) / z)
if (y <= (-1.52d+145)) then
tmp = t_1
else if (y <= 4d+190) then
tmp = x + -(-t)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x * ((y - a) / z);
double tmp;
if (y <= -1.52e+145) {
tmp = t_1;
} else if (y <= 4e+190) {
tmp = x + -(-t);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x * ((y - a) / z) tmp = 0 if y <= -1.52e+145: tmp = t_1 elif y <= 4e+190: tmp = x + -(-t) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x * Float64(Float64(y - a) / z)) tmp = 0.0 if (y <= -1.52e+145) tmp = t_1; elseif (y <= 4e+190) tmp = Float64(x + Float64(-Float64(-t))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x * ((y - a) / z); tmp = 0.0; if (y <= -1.52e+145) tmp = t_1; elseif (y <= 4e+190) tmp = x + -(-t); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x * N[(N[(y - a), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.52e+145], t$95$1, If[LessEqual[y, 4e+190], N[(x + (-(-t))), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \frac{y - a}{z}\\
\mathbf{if}\;y \leq -1.52 \cdot 10^{+145}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 4 \cdot 10^{+190}:\\
\;\;\;\;x + \left(-\left(-t\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -1.52000000000000011e145 or 4.0000000000000003e190 < y Initial program 89.1%
lift-+.f64N/A
+-commutativeN/A
lift-*.f64N/A
lift-/.f64N/A
clear-numN/A
associate-*r/N/A
div-invN/A
times-fracN/A
lift--.f64N/A
flip--N/A
clear-numN/A
clear-numN/A
flip--N/A
lift--.f64N/A
lower-fma.f64N/A
lower-/.f6492.9
Applied rewrites92.9%
Taylor expanded in y around inf
div-subN/A
associate-/l*N/A
lower-/.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower--.f64N/A
lower--.f6465.0
Applied rewrites65.0%
Taylor expanded in z around inf
associate--l+N/A
distribute-lft-out--N/A
div-subN/A
mul-1-negN/A
unsub-negN/A
lower--.f64N/A
div-subN/A
associate-/l*N/A
associate-/l*N/A
distribute-rgt-out--N/A
lower-*.f64N/A
lower-/.f64N/A
lower--.f64N/A
lower--.f6466.0
Applied rewrites66.0%
Taylor expanded in t around 0
Applied rewrites41.7%
if -1.52000000000000011e145 < y < 4.0000000000000003e190Initial program 76.5%
Taylor expanded in t around inf
lower-/.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower--.f6458.7
Applied rewrites58.7%
Taylor expanded in a around 0
Applied rewrites49.8%
Taylor expanded in y around 0
Applied rewrites43.7%
(FPCore (x y z t a) :precision binary64 (+ x (- (- t))))
double code(double x, double y, double z, double t, double a) {
return x + -(-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 + -(-t)
end function
public static double code(double x, double y, double z, double t, double a) {
return x + -(-t);
}
def code(x, y, z, t, a): return x + -(-t)
function code(x, y, z, t, a) return Float64(x + Float64(-Float64(-t))) end
function tmp = code(x, y, z, t, a) tmp = x + -(-t); end
code[x_, y_, z_, t_, a_] := N[(x + (-(-t))), $MachinePrecision]
\begin{array}{l}
\\
x + \left(-\left(-t\right)\right)
\end{array}
Initial program 79.2%
Taylor expanded in t around inf
lower-/.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower--.f6454.9
Applied rewrites54.9%
Taylor expanded in a around 0
Applied rewrites48.3%
Taylor expanded in y around 0
Applied rewrites35.6%
(FPCore (x y z t a) :precision binary64 (+ x (- t x)))
double code(double x, double y, double z, double t, double a) {
return x + (t - 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 + (t - x)
end function
public static double code(double x, double y, double z, double t, double a) {
return x + (t - x);
}
def code(x, y, z, t, a): return x + (t - x)
function code(x, y, z, t, a) return Float64(x + Float64(t - x)) end
function tmp = code(x, y, z, t, a) tmp = x + (t - x); end
code[x_, y_, z_, t_, a_] := N[(x + N[(t - x), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \left(t - x\right)
\end{array}
Initial program 79.2%
Taylor expanded in z around inf
lower--.f6421.7
Applied rewrites21.7%
(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(x + Float64(-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}
\\
x + \left(-x\right)
\end{array}
Initial program 79.2%
Taylor expanded in z around inf
lower--.f6421.7
Applied rewrites21.7%
Taylor expanded in t around 0
Applied rewrites2.7%
herbie shell --seed 2024222
(FPCore (x y z t a)
:name "Numeric.Signal:interpolate from hsignal-0.2.7.1"
:precision binary64
(+ x (* (- y z) (/ (- t x) (- a z)))))