
(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 (fma (* (/ -1.0 (- t a)) (- z t)) (- y x) x))
(t_2 (+ (/ (* (- z t) (- y x)) (- a t)) x)))
(if (<= t_2 -1e-223)
t_1
(if (<= t_2 0.0)
(- y (/ (fma (* (- z a) (/ (- y x) t)) a (* (- z a) (- y x))) t))
t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = fma(((-1.0 / (t - a)) * (z - t)), (y - x), x);
double t_2 = (((z - t) * (y - x)) / (a - t)) + x;
double tmp;
if (t_2 <= -1e-223) {
tmp = t_1;
} else if (t_2 <= 0.0) {
tmp = y - (fma(((z - a) * ((y - x) / t)), a, ((z - a) * (y - x))) / t);
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a) t_1 = fma(Float64(Float64(-1.0 / Float64(t - a)) * Float64(z - t)), Float64(y - x), x) t_2 = Float64(Float64(Float64(Float64(z - t) * Float64(y - x)) / Float64(a - t)) + x) tmp = 0.0 if (t_2 <= -1e-223) tmp = t_1; elseif (t_2 <= 0.0) tmp = Float64(y - Float64(fma(Float64(Float64(z - a) * Float64(Float64(y - x) / t)), a, Float64(Float64(z - a) * Float64(y - x))) / t)); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(N[(-1.0 / N[(t - a), $MachinePrecision]), $MachinePrecision] * N[(z - t), $MachinePrecision]), $MachinePrecision] * N[(y - x), $MachinePrecision] + x), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(N[(z - t), $MachinePrecision] * N[(y - x), $MachinePrecision]), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision]}, If[LessEqual[t$95$2, -1e-223], t$95$1, If[LessEqual[t$95$2, 0.0], N[(y - N[(N[(N[(N[(z - a), $MachinePrecision] * N[(N[(y - x), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision] * a + N[(N[(z - a), $MachinePrecision] * N[(y - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(\frac{-1}{t - a} \cdot \left(z - t\right), y - x, x\right)\\
t_2 := \frac{\left(z - t\right) \cdot \left(y - x\right)}{a - t} + x\\
\mathbf{if}\;t\_2 \leq -1 \cdot 10^{-223}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t\_2 \leq 0:\\
\;\;\;\;y - \frac{\mathsf{fma}\left(\left(z - a\right) \cdot \frac{y - x}{t}, a, \left(z - a\right) \cdot \left(y - x\right)\right)}{t}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < -9.9999999999999997e-224 or 0.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) Initial program 73.3%
lift-+.f64N/A
+-commutativeN/A
lift-/.f64N/A
clear-numN/A
associate-/r/N/A
lift-*.f64N/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
lower-*.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--.f6490.5
Applied rewrites90.5%
if -9.9999999999999997e-224 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < 0.0Initial program 4.7%
Taylor expanded in t around -inf
mul-1-negN/A
unsub-negN/A
lower--.f64N/A
lower-/.f64N/A
Applied rewrites99.7%
Final simplification91.2%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ (/ (* (- z t) (- y x)) (- a t)) x)))
(if (<= t_1 (- INFINITY))
(fma (/ (- x y) t) (- z a) y)
(if (<= t_1 -1e-223)
t_1
(if (<= t_1 0.0)
(fma (/ x t) (- z a) y)
(if (<= t_1 5e+280) t_1 (* (/ (- z t) (- a t)) y)))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = (((z - t) * (y - x)) / (a - t)) + x;
double tmp;
if (t_1 <= -((double) INFINITY)) {
tmp = fma(((x - y) / t), (z - a), y);
} else if (t_1 <= -1e-223) {
tmp = t_1;
} else if (t_1 <= 0.0) {
tmp = fma((x / t), (z - a), y);
} else if (t_1 <= 5e+280) {
tmp = t_1;
} else {
tmp = ((z - t) / (a - t)) * y;
}
return tmp;
}
function code(x, y, z, t, a) t_1 = Float64(Float64(Float64(Float64(z - t) * Float64(y - x)) / Float64(a - t)) + x) tmp = 0.0 if (t_1 <= Float64(-Inf)) tmp = fma(Float64(Float64(x - y) / t), Float64(z - a), y); elseif (t_1 <= -1e-223) tmp = t_1; elseif (t_1 <= 0.0) tmp = fma(Float64(x / t), Float64(z - a), y); elseif (t_1 <= 5e+280) tmp = t_1; else tmp = Float64(Float64(Float64(z - t) / Float64(a - t)) * y); end return tmp end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(N[(N[(z - t), $MachinePrecision] * N[(y - x), $MachinePrecision]), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision]}, If[LessEqual[t$95$1, (-Infinity)], N[(N[(N[(x - y), $MachinePrecision] / t), $MachinePrecision] * N[(z - a), $MachinePrecision] + y), $MachinePrecision], If[LessEqual[t$95$1, -1e-223], t$95$1, If[LessEqual[t$95$1, 0.0], N[(N[(x / t), $MachinePrecision] * N[(z - a), $MachinePrecision] + y), $MachinePrecision], If[LessEqual[t$95$1, 5e+280], t$95$1, N[(N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{\left(z - t\right) \cdot \left(y - x\right)}{a - t} + x\\
\mathbf{if}\;t\_1 \leq -\infty:\\
\;\;\;\;\mathsf{fma}\left(\frac{x - y}{t}, z - a, y\right)\\
\mathbf{elif}\;t\_1 \leq -1 \cdot 10^{-223}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t\_1 \leq 0:\\
\;\;\;\;\mathsf{fma}\left(\frac{x}{t}, z - a, y\right)\\
\mathbf{elif}\;t\_1 \leq 5 \cdot 10^{+280}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\frac{z - t}{a - t} \cdot y\\
\end{array}
\end{array}
if (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < -inf.0Initial program 30.1%
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 rewrites74.5%
if -inf.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < -9.9999999999999997e-224 or 0.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < 5.0000000000000002e280Initial program 99.6%
if -9.9999999999999997e-224 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < 0.0Initial program 4.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 rewrites89.9%
Taylor expanded in y around 0
Applied rewrites89.9%
if 5.0000000000000002e280 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) Initial program 33.9%
Taylor expanded in y 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--.f6466.0
Applied rewrites66.0%
Applied rewrites65.8%
Applied rewrites68.3%
Final simplification88.8%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (fma (* (/ -1.0 (- t a)) (- z t)) (- y x) x))
(t_2 (+ (/ (* (- z t) (- y x)) (- a t)) x)))
(if (<= t_2 -1e-223) 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 = fma(((-1.0 / (t - a)) * (z - t)), (y - x), x);
double t_2 = (((z - t) * (y - x)) / (a - t)) + x;
double tmp;
if (t_2 <= -1e-223) {
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 = fma(Float64(Float64(-1.0 / Float64(t - a)) * Float64(z - t)), Float64(y - x), x) t_2 = Float64(Float64(Float64(Float64(z - t) * Float64(y - x)) / Float64(a - t)) + x) tmp = 0.0 if (t_2 <= -1e-223) 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[(N[(N[(-1.0 / N[(t - a), $MachinePrecision]), $MachinePrecision] * N[(z - t), $MachinePrecision]), $MachinePrecision] * N[(y - x), $MachinePrecision] + x), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(N[(z - t), $MachinePrecision] * N[(y - x), $MachinePrecision]), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision]}, If[LessEqual[t$95$2, -1e-223], 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 := \mathsf{fma}\left(\frac{-1}{t - a} \cdot \left(z - t\right), y - x, x\right)\\
t_2 := \frac{\left(z - t\right) \cdot \left(y - x\right)}{a - t} + x\\
\mathbf{if}\;t\_2 \leq -1 \cdot 10^{-223}:\\
\;\;\;\;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))) < -9.9999999999999997e-224 or 0.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) Initial program 73.3%
lift-+.f64N/A
+-commutativeN/A
lift-/.f64N/A
clear-numN/A
associate-/r/N/A
lift-*.f64N/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
lower-*.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--.f6490.5
Applied rewrites90.5%
if -9.9999999999999997e-224 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < 0.0Initial program 4.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 rewrites89.9%
Taylor expanded in y around 0
Applied rewrites89.9%
Final simplification90.5%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* (/ (- z t) (- a t)) y)) (t_2 (fma (/ x t) (- z a) y)))
(if (<= t -4.5e+100)
t_2
(if (<= t -1.45e-17)
t_1
(if (<= t 0.096) (fma (/ (- y x) a) z x) (if (<= t 6e+154) t_1 t_2))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = ((z - t) / (a - t)) * y;
double t_2 = fma((x / t), (z - a), y);
double tmp;
if (t <= -4.5e+100) {
tmp = t_2;
} else if (t <= -1.45e-17) {
tmp = t_1;
} else if (t <= 0.096) {
tmp = fma(((y - x) / a), z, x);
} else if (t <= 6e+154) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
function code(x, y, z, t, a) t_1 = Float64(Float64(Float64(z - t) / Float64(a - t)) * y) t_2 = fma(Float64(x / t), Float64(z - a), y) tmp = 0.0 if (t <= -4.5e+100) tmp = t_2; elseif (t <= -1.45e-17) tmp = t_1; elseif (t <= 0.096) tmp = fma(Float64(Float64(y - x) / a), z, x); elseif (t <= 6e+154) tmp = t_1; else tmp = t_2; end return tmp end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x / t), $MachinePrecision] * N[(z - a), $MachinePrecision] + y), $MachinePrecision]}, If[LessEqual[t, -4.5e+100], t$95$2, If[LessEqual[t, -1.45e-17], t$95$1, If[LessEqual[t, 0.096], N[(N[(N[(y - x), $MachinePrecision] / a), $MachinePrecision] * z + x), $MachinePrecision], If[LessEqual[t, 6e+154], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{z - t}{a - t} \cdot y\\
t_2 := \mathsf{fma}\left(\frac{x}{t}, z - a, y\right)\\
\mathbf{if}\;t \leq -4.5 \cdot 10^{+100}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq -1.45 \cdot 10^{-17}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 0.096:\\
\;\;\;\;\mathsf{fma}\left(\frac{y - x}{a}, z, x\right)\\
\mathbf{elif}\;t \leq 6 \cdot 10^{+154}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if t < -4.50000000000000036e100 or 6.00000000000000052e154 < t Initial program 34.8%
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 rewrites80.1%
Taylor expanded in y around 0
Applied rewrites75.9%
if -4.50000000000000036e100 < t < -1.4500000000000001e-17 or 0.096000000000000002 < t < 6.00000000000000052e154Initial program 65.2%
Taylor expanded in y 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--.f6469.9
Applied rewrites69.9%
Applied rewrites69.7%
Applied rewrites70.2%
if -1.4500000000000001e-17 < t < 0.096000000000000002Initial program 92.7%
Taylor expanded in t around 0
+-commutativeN/A
associate-/l*N/A
*-commutativeN/A
lower-fma.f64N/A
lower-/.f64N/A
lower--.f6478.4
Applied rewrites78.4%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* (/ y (- a t)) (- z t))) (t_2 (fma (/ x t) (- z a) y)))
(if (<= t -4.5e+100)
t_2
(if (<= t -1.45e-17)
t_1
(if (<= t 0.096) (fma (/ (- y x) a) z x) (if (<= t 6e+154) t_1 t_2))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = (y / (a - t)) * (z - t);
double t_2 = fma((x / t), (z - a), y);
double tmp;
if (t <= -4.5e+100) {
tmp = t_2;
} else if (t <= -1.45e-17) {
tmp = t_1;
} else if (t <= 0.096) {
tmp = fma(((y - x) / a), z, x);
} else if (t <= 6e+154) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
function code(x, y, z, t, a) t_1 = Float64(Float64(y / Float64(a - t)) * Float64(z - t)) t_2 = fma(Float64(x / t), Float64(z - a), y) tmp = 0.0 if (t <= -4.5e+100) tmp = t_2; elseif (t <= -1.45e-17) tmp = t_1; elseif (t <= 0.096) tmp = fma(Float64(Float64(y - x) / a), z, x); elseif (t <= 6e+154) tmp = t_1; else tmp = t_2; end return tmp end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(y / N[(a - t), $MachinePrecision]), $MachinePrecision] * N[(z - t), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x / t), $MachinePrecision] * N[(z - a), $MachinePrecision] + y), $MachinePrecision]}, If[LessEqual[t, -4.5e+100], t$95$2, If[LessEqual[t, -1.45e-17], t$95$1, If[LessEqual[t, 0.096], N[(N[(N[(y - x), $MachinePrecision] / a), $MachinePrecision] * z + x), $MachinePrecision], If[LessEqual[t, 6e+154], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{y}{a - t} \cdot \left(z - t\right)\\
t_2 := \mathsf{fma}\left(\frac{x}{t}, z - a, y\right)\\
\mathbf{if}\;t \leq -4.5 \cdot 10^{+100}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq -1.45 \cdot 10^{-17}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 0.096:\\
\;\;\;\;\mathsf{fma}\left(\frac{y - x}{a}, z, x\right)\\
\mathbf{elif}\;t \leq 6 \cdot 10^{+154}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if t < -4.50000000000000036e100 or 6.00000000000000052e154 < t Initial program 34.8%
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 rewrites80.1%
Taylor expanded in y around 0
Applied rewrites75.9%
if -4.50000000000000036e100 < t < -1.4500000000000001e-17 or 0.096000000000000002 < t < 6.00000000000000052e154Initial program 65.2%
Taylor expanded in y 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--.f6469.9
Applied rewrites69.9%
if -1.4500000000000001e-17 < t < 0.096000000000000002Initial program 92.7%
Taylor expanded in t around 0
+-commutativeN/A
associate-/l*N/A
*-commutativeN/A
lower-fma.f64N/A
lower-/.f64N/A
lower--.f6478.4
Applied rewrites78.4%
Final simplification75.9%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (/ (* (- x y) z) t)) (t_2 (+ (- y x) x)))
(if (<= t -1.02e+81)
t_2
(if (<= t -1.7e-35)
t_1
(if (<= t 1.15e-134)
(* (/ z a) (- y x))
(if (<= t 2.25e+79) t_1 t_2))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = ((x - y) * z) / t;
double t_2 = (y - x) + x;
double tmp;
if (t <= -1.02e+81) {
tmp = t_2;
} else if (t <= -1.7e-35) {
tmp = t_1;
} else if (t <= 1.15e-134) {
tmp = (z / a) * (y - x);
} else if (t <= 2.25e+79) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = ((x - y) * z) / t
t_2 = (y - x) + x
if (t <= (-1.02d+81)) then
tmp = t_2
else if (t <= (-1.7d-35)) then
tmp = t_1
else if (t <= 1.15d-134) then
tmp = (z / a) * (y - x)
else if (t <= 2.25d+79) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = ((x - y) * z) / t;
double t_2 = (y - x) + x;
double tmp;
if (t <= -1.02e+81) {
tmp = t_2;
} else if (t <= -1.7e-35) {
tmp = t_1;
} else if (t <= 1.15e-134) {
tmp = (z / a) * (y - x);
} else if (t <= 2.25e+79) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = ((x - y) * z) / t t_2 = (y - x) + x tmp = 0 if t <= -1.02e+81: tmp = t_2 elif t <= -1.7e-35: tmp = t_1 elif t <= 1.15e-134: tmp = (z / a) * (y - x) elif t <= 2.25e+79: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a) t_1 = Float64(Float64(Float64(x - y) * z) / t) t_2 = Float64(Float64(y - x) + x) tmp = 0.0 if (t <= -1.02e+81) tmp = t_2; elseif (t <= -1.7e-35) tmp = t_1; elseif (t <= 1.15e-134) tmp = Float64(Float64(z / a) * Float64(y - x)); elseif (t <= 2.25e+79) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = ((x - y) * z) / t; t_2 = (y - x) + x; tmp = 0.0; if (t <= -1.02e+81) tmp = t_2; elseif (t <= -1.7e-35) tmp = t_1; elseif (t <= 1.15e-134) tmp = (z / a) * (y - x); elseif (t <= 2.25e+79) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(N[(x - y), $MachinePrecision] * z), $MachinePrecision] / t), $MachinePrecision]}, Block[{t$95$2 = N[(N[(y - x), $MachinePrecision] + x), $MachinePrecision]}, If[LessEqual[t, -1.02e+81], t$95$2, If[LessEqual[t, -1.7e-35], t$95$1, If[LessEqual[t, 1.15e-134], N[(N[(z / a), $MachinePrecision] * N[(y - x), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.25e+79], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{\left(x - y\right) \cdot z}{t}\\
t_2 := \left(y - x\right) + x\\
\mathbf{if}\;t \leq -1.02 \cdot 10^{+81}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq -1.7 \cdot 10^{-35}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 1.15 \cdot 10^{-134}:\\
\;\;\;\;\frac{z}{a} \cdot \left(y - x\right)\\
\mathbf{elif}\;t \leq 2.25 \cdot 10^{+79}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if t < -1.01999999999999992e81 or 2.24999999999999997e79 < t Initial program 36.7%
Taylor expanded in t around inf
lower--.f6440.0
Applied rewrites40.0%
if -1.01999999999999992e81 < t < -1.7000000000000001e-35 or 1.15e-134 < t < 2.24999999999999997e79Initial program 84.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 rewrites51.1%
Taylor expanded in z around inf
Applied rewrites37.5%
if -1.7000000000000001e-35 < t < 1.15e-134Initial program 93.4%
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--.f6454.3
Applied rewrites54.3%
Taylor expanded in a around inf
Applied rewrites51.1%
Final simplification43.3%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (/ (* (- x y) z) t)) (t_2 (+ (- y x) x)))
(if (<= t -1.02e+81)
t_2
(if (<= t -1.35e-35)
t_1
(if (<= t 9.5e-135)
(/ (* z (- y x)) a)
(if (<= t 2.25e+79) t_1 t_2))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = ((x - y) * z) / t;
double t_2 = (y - x) + x;
double tmp;
if (t <= -1.02e+81) {
tmp = t_2;
} else if (t <= -1.35e-35) {
tmp = t_1;
} else if (t <= 9.5e-135) {
tmp = (z * (y - x)) / a;
} else if (t <= 2.25e+79) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = ((x - y) * z) / t
t_2 = (y - x) + x
if (t <= (-1.02d+81)) then
tmp = t_2
else if (t <= (-1.35d-35)) then
tmp = t_1
else if (t <= 9.5d-135) then
tmp = (z * (y - x)) / a
else if (t <= 2.25d+79) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = ((x - y) * z) / t;
double t_2 = (y - x) + x;
double tmp;
if (t <= -1.02e+81) {
tmp = t_2;
} else if (t <= -1.35e-35) {
tmp = t_1;
} else if (t <= 9.5e-135) {
tmp = (z * (y - x)) / a;
} else if (t <= 2.25e+79) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = ((x - y) * z) / t t_2 = (y - x) + x tmp = 0 if t <= -1.02e+81: tmp = t_2 elif t <= -1.35e-35: tmp = t_1 elif t <= 9.5e-135: tmp = (z * (y - x)) / a elif t <= 2.25e+79: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a) t_1 = Float64(Float64(Float64(x - y) * z) / t) t_2 = Float64(Float64(y - x) + x) tmp = 0.0 if (t <= -1.02e+81) tmp = t_2; elseif (t <= -1.35e-35) tmp = t_1; elseif (t <= 9.5e-135) tmp = Float64(Float64(z * Float64(y - x)) / a); elseif (t <= 2.25e+79) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = ((x - y) * z) / t; t_2 = (y - x) + x; tmp = 0.0; if (t <= -1.02e+81) tmp = t_2; elseif (t <= -1.35e-35) tmp = t_1; elseif (t <= 9.5e-135) tmp = (z * (y - x)) / a; elseif (t <= 2.25e+79) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(N[(x - y), $MachinePrecision] * z), $MachinePrecision] / t), $MachinePrecision]}, Block[{t$95$2 = N[(N[(y - x), $MachinePrecision] + x), $MachinePrecision]}, If[LessEqual[t, -1.02e+81], t$95$2, If[LessEqual[t, -1.35e-35], t$95$1, If[LessEqual[t, 9.5e-135], N[(N[(z * N[(y - x), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision], If[LessEqual[t, 2.25e+79], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{\left(x - y\right) \cdot z}{t}\\
t_2 := \left(y - x\right) + x\\
\mathbf{if}\;t \leq -1.02 \cdot 10^{+81}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq -1.35 \cdot 10^{-35}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 9.5 \cdot 10^{-135}:\\
\;\;\;\;\frac{z \cdot \left(y - x\right)}{a}\\
\mathbf{elif}\;t \leq 2.25 \cdot 10^{+79}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if t < -1.01999999999999992e81 or 2.24999999999999997e79 < t Initial program 36.7%
Taylor expanded in t around inf
lower--.f6440.0
Applied rewrites40.0%
if -1.01999999999999992e81 < t < -1.3499999999999999e-35 or 9.50000000000000007e-135 < t < 2.24999999999999997e79Initial program 84.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 rewrites51.1%
Taylor expanded in z around inf
Applied rewrites37.5%
if -1.3499999999999999e-35 < t < 9.50000000000000007e-135Initial program 93.4%
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--.f6454.3
Applied rewrites54.3%
Taylor expanded in a around inf
Applied rewrites48.1%
Final simplification42.2%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ (- y x) x)))
(if (<= t -1.28e+29)
t_1
(if (<= t -3.3e-162)
(* (/ y (- a t)) z)
(if (<= t 7.4e-153)
(/ (* z (- y x)) a)
(if (<= t 2e+75) (* (/ (- z t) 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 <= -1.28e+29) {
tmp = t_1;
} else if (t <= -3.3e-162) {
tmp = (y / (a - t)) * z;
} else if (t <= 7.4e-153) {
tmp = (z * (y - x)) / a;
} else if (t <= 2e+75) {
tmp = ((z - t) / 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 <= (-1.28d+29)) then
tmp = t_1
else if (t <= (-3.3d-162)) then
tmp = (y / (a - t)) * z
else if (t <= 7.4d-153) then
tmp = (z * (y - x)) / a
else if (t <= 2d+75) then
tmp = ((z - t) / 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 <= -1.28e+29) {
tmp = t_1;
} else if (t <= -3.3e-162) {
tmp = (y / (a - t)) * z;
} else if (t <= 7.4e-153) {
tmp = (z * (y - x)) / a;
} else if (t <= 2e+75) {
tmp = ((z - t) / a) * y;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = (y - x) + x tmp = 0 if t <= -1.28e+29: tmp = t_1 elif t <= -3.3e-162: tmp = (y / (a - t)) * z elif t <= 7.4e-153: tmp = (z * (y - x)) / a elif t <= 2e+75: tmp = ((z - t) / 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 <= -1.28e+29) tmp = t_1; elseif (t <= -3.3e-162) tmp = Float64(Float64(y / Float64(a - t)) * z); elseif (t <= 7.4e-153) tmp = Float64(Float64(z * Float64(y - x)) / a); elseif (t <= 2e+75) tmp = Float64(Float64(Float64(z - t) / 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 <= -1.28e+29) tmp = t_1; elseif (t <= -3.3e-162) tmp = (y / (a - t)) * z; elseif (t <= 7.4e-153) tmp = (z * (y - x)) / a; elseif (t <= 2e+75) tmp = ((z - t) / 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, -1.28e+29], t$95$1, If[LessEqual[t, -3.3e-162], N[(N[(y / N[(a - t), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision], If[LessEqual[t, 7.4e-153], N[(N[(z * N[(y - x), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision], If[LessEqual[t, 2e+75], N[(N[(N[(z - t), $MachinePrecision] / a), $MachinePrecision] * y), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(y - x\right) + x\\
\mathbf{if}\;t \leq -1.28 \cdot 10^{+29}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -3.3 \cdot 10^{-162}:\\
\;\;\;\;\frac{y}{a - t} \cdot z\\
\mathbf{elif}\;t \leq 7.4 \cdot 10^{-153}:\\
\;\;\;\;\frac{z \cdot \left(y - x\right)}{a}\\
\mathbf{elif}\;t \leq 2 \cdot 10^{+75}:\\
\;\;\;\;\frac{z - t}{a} \cdot y\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -1.28e29 or 1.99999999999999985e75 < t Initial program 40.3%
Taylor expanded in t around inf
lower--.f6437.8
Applied rewrites37.8%
if -1.28e29 < t < -3.30000000000000013e-162Initial program 92.5%
Taylor expanded in y 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--.f6453.6
Applied rewrites53.6%
Taylor expanded in z around inf
Applied rewrites34.7%
Applied rewrites36.9%
if -3.30000000000000013e-162 < t < 7.4000000000000005e-153Initial program 96.7%
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--.f6459.9
Applied rewrites59.9%
Taylor expanded in a around inf
Applied rewrites54.0%
if 7.4000000000000005e-153 < t < 1.99999999999999985e75Initial program 81.7%
Taylor expanded in y 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--.f6449.9
Applied rewrites49.9%
Taylor expanded in a around inf
Applied rewrites40.5%
Final simplification41.8%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (fma (/ x t) (- a) y)))
(if (<= t -6.4e-18)
t_1
(if (<= t 1.15e-134)
(* (/ z a) (- y x))
(if (<= t 1.8e+70) (/ (* (- x y) z) t) t_1)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = fma((x / t), -a, y);
double tmp;
if (t <= -6.4e-18) {
tmp = t_1;
} else if (t <= 1.15e-134) {
tmp = (z / a) * (y - x);
} else if (t <= 1.8e+70) {
tmp = ((x - y) * z) / t;
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a) t_1 = fma(Float64(x / t), Float64(-a), y) tmp = 0.0 if (t <= -6.4e-18) tmp = t_1; elseif (t <= 1.15e-134) tmp = Float64(Float64(z / a) * Float64(y - x)); elseif (t <= 1.8e+70) tmp = Float64(Float64(Float64(x - y) * z) / t); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(x / t), $MachinePrecision] * (-a) + y), $MachinePrecision]}, If[LessEqual[t, -6.4e-18], t$95$1, If[LessEqual[t, 1.15e-134], N[(N[(z / a), $MachinePrecision] * N[(y - x), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.8e+70], N[(N[(N[(x - y), $MachinePrecision] * z), $MachinePrecision] / t), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(\frac{x}{t}, -a, y\right)\\
\mathbf{if}\;t \leq -6.4 \cdot 10^{-18}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 1.15 \cdot 10^{-134}:\\
\;\;\;\;\frac{z}{a} \cdot \left(y - x\right)\\
\mathbf{elif}\;t \leq 1.8 \cdot 10^{+70}:\\
\;\;\;\;\frac{\left(x - y\right) \cdot z}{t}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -6.3999999999999998e-18 or 1.8e70 < t Initial program 45.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 rewrites74.2%
Taylor expanded in y around 0
Applied rewrites65.9%
Taylor expanded in a around inf
Applied rewrites51.9%
if -6.3999999999999998e-18 < t < 1.15e-134Initial program 93.7%
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--.f6453.7
Applied rewrites53.7%
Taylor expanded in a around inf
Applied rewrites48.6%
if 1.15e-134 < t < 1.8e70Initial program 81.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 rewrites49.8%
Taylor expanded in z around inf
Applied rewrites41.3%
Final simplification49.2%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ (- y x) x)))
(if (<= t -2e-17)
t_1
(if (<= t 7.4e-153)
(/ (* z (- y x)) a)
(if (<= t 2e+75) (* (/ (- z t) 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 <= -2e-17) {
tmp = t_1;
} else if (t <= 7.4e-153) {
tmp = (z * (y - x)) / a;
} else if (t <= 2e+75) {
tmp = ((z - t) / 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 <= (-2d-17)) then
tmp = t_1
else if (t <= 7.4d-153) then
tmp = (z * (y - x)) / a
else if (t <= 2d+75) then
tmp = ((z - t) / 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 <= -2e-17) {
tmp = t_1;
} else if (t <= 7.4e-153) {
tmp = (z * (y - x)) / a;
} else if (t <= 2e+75) {
tmp = ((z - t) / a) * y;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = (y - x) + x tmp = 0 if t <= -2e-17: tmp = t_1 elif t <= 7.4e-153: tmp = (z * (y - x)) / a elif t <= 2e+75: tmp = ((z - t) / 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 <= -2e-17) tmp = t_1; elseif (t <= 7.4e-153) tmp = Float64(Float64(z * Float64(y - x)) / a); elseif (t <= 2e+75) tmp = Float64(Float64(Float64(z - t) / 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 <= -2e-17) tmp = t_1; elseif (t <= 7.4e-153) tmp = (z * (y - x)) / a; elseif (t <= 2e+75) tmp = ((z - t) / 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, -2e-17], t$95$1, If[LessEqual[t, 7.4e-153], N[(N[(z * N[(y - x), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision], If[LessEqual[t, 2e+75], N[(N[(N[(z - t), $MachinePrecision] / a), $MachinePrecision] * y), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(y - x\right) + x\\
\mathbf{if}\;t \leq -2 \cdot 10^{-17}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 7.4 \cdot 10^{-153}:\\
\;\;\;\;\frac{z \cdot \left(y - x\right)}{a}\\
\mathbf{elif}\;t \leq 2 \cdot 10^{+75}:\\
\;\;\;\;\frac{z - t}{a} \cdot y\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -2.00000000000000014e-17 or 1.99999999999999985e75 < t Initial program 45.4%
Taylor expanded in t around inf
lower--.f6435.7
Applied rewrites35.7%
if -2.00000000000000014e-17 < t < 7.4000000000000005e-153Initial program 94.4%
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--.f6454.4
Applied rewrites54.4%
Taylor expanded in a around inf
Applied rewrites46.1%
if 7.4000000000000005e-153 < t < 1.99999999999999985e75Initial program 81.7%
Taylor expanded in y 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--.f6449.9
Applied rewrites49.9%
Taylor expanded in a around inf
Applied rewrites40.5%
Final simplification40.1%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (fma (/ (- x y) t) (- z a) y)))
(if (<= t -2.8e+33)
t_1
(if (<= t 21000.0) (+ (/ (* z (- y x)) (- a t)) 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.8e+33) {
tmp = t_1;
} else if (t <= 21000.0) {
tmp = ((z * (y - x)) / (a - t)) + 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.8e+33) tmp = t_1; elseif (t <= 21000.0) tmp = Float64(Float64(Float64(z * Float64(y - x)) / Float64(a - t)) + 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.8e+33], t$95$1, If[LessEqual[t, 21000.0], N[(N[(N[(z * N[(y - x), $MachinePrecision]), $MachinePrecision] / N[(a - t), $MachinePrecision]), $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.8 \cdot 10^{+33}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 21000:\\
\;\;\;\;\frac{z \cdot \left(y - x\right)}{a - t} + x\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -2.8000000000000001e33 or 21000 < t Initial program 40.1%
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.9%
if -2.8000000000000001e33 < t < 21000Initial program 93.4%
Taylor expanded in t around 0
lower-*.f64N/A
lower--.f6483.9
Applied rewrites83.9%
Final simplification80.1%
(FPCore (x y z t a) :precision binary64 (let* ((t_1 (fma (/ (- x y) t) (- z a) y))) (if (<= t -2.55e+33) t_1 (if (<= t 3.4e-28) (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.55e+33) {
tmp = t_1;
} else if (t <= 3.4e-28) {
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.55e+33) tmp = t_1; elseif (t <= 3.4e-28) 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.55e+33], t$95$1, If[LessEqual[t, 3.4e-28], 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.55 \cdot 10^{+33}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 3.4 \cdot 10^{-28}:\\
\;\;\;\;\mathsf{fma}\left(\frac{y - x}{a}, z, x\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -2.5499999999999999e33 or 3.4000000000000001e-28 < t Initial program 41.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 rewrites74.8%
if -2.5499999999999999e33 < t < 3.4000000000000001e-28Initial program 94.6%
Taylor expanded in t around 0
+-commutativeN/A
associate-/l*N/A
*-commutativeN/A
lower-fma.f64N/A
lower-/.f64N/A
lower--.f6476.5
Applied rewrites76.5%
(FPCore (x y z t a) :precision binary64 (let* ((t_1 (fma (/ x t) (- z a) y))) (if (<= t -2.8e+33) t_1 (if (<= t 3.5e-27) (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 <= -2.8e+33) {
tmp = t_1;
} else if (t <= 3.5e-27) {
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 <= -2.8e+33) tmp = t_1; elseif (t <= 3.5e-27) 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, -2.8e+33], t$95$1, If[LessEqual[t, 3.5e-27], 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 -2.8 \cdot 10^{+33}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 3.5 \cdot 10^{-27}:\\
\;\;\;\;\mathsf{fma}\left(\frac{y - x}{a}, z, x\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -2.8000000000000001e33 or 3.5000000000000001e-27 < t Initial program 41.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 rewrites74.8%
Taylor expanded in y around 0
Applied rewrites68.1%
if -2.8000000000000001e33 < t < 3.5000000000000001e-27Initial program 94.6%
Taylor expanded in t around 0
+-commutativeN/A
associate-/l*N/A
*-commutativeN/A
lower-fma.f64N/A
lower-/.f64N/A
lower--.f6476.5
Applied rewrites76.5%
(FPCore (x y z t a) :precision binary64 (let* ((t_1 (fma (/ (- x y) t) z y))) (if (<= t -1.3e-35) t_1 (if (<= t 1.2e-134) (* (/ z a) (- y x)) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = fma(((x - y) / t), z, y);
double tmp;
if (t <= -1.3e-35) {
tmp = t_1;
} else if (t <= 1.2e-134) {
tmp = (z / a) * (y - x);
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a) t_1 = fma(Float64(Float64(x - y) / t), z, y) tmp = 0.0 if (t <= -1.3e-35) tmp = t_1; elseif (t <= 1.2e-134) tmp = Float64(Float64(z / a) * Float64(y - 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] * z + y), $MachinePrecision]}, If[LessEqual[t, -1.3e-35], t$95$1, If[LessEqual[t, 1.2e-134], N[(N[(z / a), $MachinePrecision] * N[(y - x), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(\frac{x - y}{t}, z, y\right)\\
\mathbf{if}\;t \leq -1.3 \cdot 10^{-35}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 1.2 \cdot 10^{-134}:\\
\;\;\;\;\frac{z}{a} \cdot \left(y - x\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -1.30000000000000002e-35 or 1.20000000000000005e-134 < t Initial program 54.8%
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 rewrites67.9%
Taylor expanded in a around 0
Applied rewrites61.9%
if -1.30000000000000002e-35 < t < 1.20000000000000005e-134Initial program 93.4%
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--.f6454.3
Applied rewrites54.3%
Taylor expanded in a around inf
Applied rewrites51.1%
Final simplification58.2%
(FPCore (x y z t a) :precision binary64 (let* ((t_1 (+ (- y x) x))) (if (<= t -2e-17) t_1 (if (<= t 2.25e+89) (/ (* z (- y 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 <= -2e-17) {
tmp = t_1;
} else if (t <= 2.25e+89) {
tmp = (z * (y - x)) / a;
} 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 <= (-2d-17)) then
tmp = t_1
else if (t <= 2.25d+89) then
tmp = (z * (y - x)) / a
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 <= -2e-17) {
tmp = t_1;
} else if (t <= 2.25e+89) {
tmp = (z * (y - x)) / a;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = (y - x) + x tmp = 0 if t <= -2e-17: tmp = t_1 elif t <= 2.25e+89: tmp = (z * (y - 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 <= -2e-17) tmp = t_1; elseif (t <= 2.25e+89) tmp = Float64(Float64(z * Float64(y - x)) / a); 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 <= -2e-17) tmp = t_1; elseif (t <= 2.25e+89) tmp = (z * (y - x)) / a; 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, -2e-17], t$95$1, If[LessEqual[t, 2.25e+89], N[(N[(z * N[(y - x), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(y - x\right) + x\\
\mathbf{if}\;t \leq -2 \cdot 10^{-17}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 2.25 \cdot 10^{+89}:\\
\;\;\;\;\frac{z \cdot \left(y - x\right)}{a}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -2.00000000000000014e-17 or 2.25e89 < t Initial program 45.8%
Taylor expanded in t around inf
lower--.f6436.0
Applied rewrites36.0%
if -2.00000000000000014e-17 < t < 2.25e89Initial program 89.6%
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--.f6452.8
Applied rewrites52.8%
Taylor expanded in a around inf
Applied rewrites39.8%
Final simplification38.0%
(FPCore (x y z t a) :precision binary64 (let* ((t_1 (+ (- y x) x))) (if (<= t -1.8e-19) t_1 (if (<= t 1.95e+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 <= -1.8e-19) {
tmp = t_1;
} else if (t <= 1.95e+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 <= (-1.8d-19)) then
tmp = t_1
else if (t <= 1.95d+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 <= -1.8e-19) {
tmp = t_1;
} else if (t <= 1.95e+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 <= -1.8e-19: tmp = t_1 elif t <= 1.95e+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 <= -1.8e-19) tmp = t_1; elseif (t <= 1.95e+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 <= -1.8e-19) tmp = t_1; elseif (t <= 1.95e+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, -1.8e-19], t$95$1, If[LessEqual[t, 1.95e+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 -1.8 \cdot 10^{-19}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 1.95 \cdot 10^{+89}:\\
\;\;\;\;\frac{z}{a} \cdot y\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -1.8000000000000001e-19 or 1.95000000000000005e89 < t Initial program 46.2%
Taylor expanded in t around inf
lower--.f6435.7
Applied rewrites35.7%
if -1.8000000000000001e-19 < t < 1.95000000000000005e89Initial program 89.6%
Taylor expanded in y 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--.f6443.7
Applied rewrites43.7%
Taylor expanded in t around 0
Applied rewrites32.6%
Final simplification34.1%
(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 68.2%
Taylor expanded in t around inf
lower--.f6420.3
Applied rewrites20.3%
Final simplification20.3%
(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 68.2%
Taylor expanded in t around inf
lower--.f6420.3
Applied rewrites20.3%
Taylor expanded in y around 0
Applied rewrites2.8%
Final simplification2.8%
(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 2024240
(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))))