
(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 17 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 (/ (- z y) (- z a)) (- t x) x))
(t_2 (- x (* (/ (- x t) (- a z)) (- y z)))))
(if (<= t_2 -5e-308)
t_1
(if (<= t_2 0.0) (- t (* (- y a) (/ (- t x) z))) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = fma(((z - y) / (z - a)), (t - x), x);
double t_2 = x - (((x - t) / (a - z)) * (y - z));
double tmp;
if (t_2 <= -5e-308) {
tmp = t_1;
} else if (t_2 <= 0.0) {
tmp = t - ((y - a) * ((t - x) / z));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a) t_1 = fma(Float64(Float64(z - y) / Float64(z - a)), Float64(t - x), x) t_2 = Float64(x - Float64(Float64(Float64(x - t) / Float64(a - z)) * Float64(y - z))) tmp = 0.0 if (t_2 <= -5e-308) tmp = t_1; elseif (t_2 <= 0.0) tmp = Float64(t - Float64(Float64(y - a) * Float64(Float64(t - x) / z))); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(N[(z - y), $MachinePrecision] / N[(z - a), $MachinePrecision]), $MachinePrecision] * N[(t - x), $MachinePrecision] + x), $MachinePrecision]}, Block[{t$95$2 = N[(x - N[(N[(N[(x - t), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision] * N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, -5e-308], t$95$1, If[LessEqual[t$95$2, 0.0], N[(t - N[(N[(y - a), $MachinePrecision] * N[(N[(t - x), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(\frac{z - y}{z - a}, t - x, x\right)\\
t_2 := x - \frac{x - t}{a - z} \cdot \left(y - z\right)\\
\mathbf{if}\;t\_2 \leq -5 \cdot 10^{-308}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t\_2 \leq 0:\\
\;\;\;\;t - \left(y - a\right) \cdot \frac{t - x}{z}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < -4.99999999999999955e-308 or 0.0 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) Initial program 91.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-/.f6495.4
Applied rewrites95.4%
if -4.99999999999999955e-308 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < 0.0Initial program 3.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-/.f643.4
Applied rewrites3.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--.f6499.8
Applied rewrites99.8%
Final simplification95.9%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (fma (/ (- x t) (- z a)) (- y z) x))
(t_2 (- x (* (/ (- x t) (- a z)) (- y z)))))
(if (<= t_2 -2e-186)
t_1
(if (<= t_2 5e-259) (fma (fma -1.0 t x) (/ (- y a) z) t) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = fma(((x - t) / (z - a)), (y - z), x);
double t_2 = x - (((x - t) / (a - z)) * (y - z));
double tmp;
if (t_2 <= -2e-186) {
tmp = t_1;
} else if (t_2 <= 5e-259) {
tmp = fma(fma(-1.0, t, x), ((y - a) / z), t);
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a) t_1 = fma(Float64(Float64(x - t) / Float64(z - a)), Float64(y - z), x) t_2 = Float64(x - Float64(Float64(Float64(x - t) / Float64(a - z)) * Float64(y - z))) tmp = 0.0 if (t_2 <= -2e-186) tmp = t_1; elseif (t_2 <= 5e-259) tmp = fma(fma(-1.0, t, x), Float64(Float64(y - a) / z), t); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(N[(x - t), $MachinePrecision] / N[(z - a), $MachinePrecision]), $MachinePrecision] * N[(y - z), $MachinePrecision] + x), $MachinePrecision]}, Block[{t$95$2 = N[(x - N[(N[(N[(x - t), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision] * N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, -2e-186], t$95$1, If[LessEqual[t$95$2, 5e-259], N[(N[(-1.0 * t + x), $MachinePrecision] * N[(N[(y - a), $MachinePrecision] / z), $MachinePrecision] + t), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(\frac{x - t}{z - a}, y - z, x\right)\\
t_2 := x - \frac{x - t}{a - z} \cdot \left(y - z\right)\\
\mathbf{if}\;t\_2 \leq -2 \cdot 10^{-186}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t\_2 \leq 5 \cdot 10^{-259}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-1, t, x\right), \frac{y - a}{z}, t\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < -1.9999999999999998e-186 or 4.99999999999999977e-259 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) Initial program 93.4%
lift-+.f64N/A
+-commutativeN/A
lift-*.f64N/A
*-commutativeN/A
lower-fma.f6493.4
lift-/.f64N/A
frac-2negN/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--.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--.f6493.4
Applied rewrites93.4%
if -1.9999999999999998e-186 < (+.f64 x (*.f64 (-.f64 y z) (/.f64 (-.f64 t x) (-.f64 a z)))) < 4.99999999999999977e-259Initial program 6.2%
Taylor expanded in z around inf
associate--l+N/A
distribute-lft-out--N/A
div-subN/A
+-commutativeN/A
mul-1-negN/A
distribute-rgt-out--N/A
associate-/l*N/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
Applied rewrites92.1%
Final simplification93.2%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (fma (fma -1.0 t x) (/ (- y a) z) t)))
(if (<= z -2.3e+15)
t_1
(if (<= z 9.2e-63) (+ (* (/ (- z y) a) (- x t)) x) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = fma(fma(-1.0, t, x), ((y - a) / z), t);
double tmp;
if (z <= -2.3e+15) {
tmp = t_1;
} else if (z <= 9.2e-63) {
tmp = (((z - y) / a) * (x - t)) + x;
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a) t_1 = fma(fma(-1.0, t, x), Float64(Float64(y - a) / z), t) tmp = 0.0 if (z <= -2.3e+15) tmp = t_1; elseif (z <= 9.2e-63) tmp = Float64(Float64(Float64(Float64(z - y) / a) * Float64(x - t)) + x); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(-1.0 * t + x), $MachinePrecision] * N[(N[(y - a), $MachinePrecision] / z), $MachinePrecision] + t), $MachinePrecision]}, If[LessEqual[z, -2.3e+15], t$95$1, If[LessEqual[z, 9.2e-63], N[(N[(N[(N[(z - y), $MachinePrecision] / a), $MachinePrecision] * N[(x - t), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(\mathsf{fma}\left(-1, t, x\right), \frac{y - a}{z}, t\right)\\
\mathbf{if}\;z \leq -2.3 \cdot 10^{+15}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 9.2 \cdot 10^{-63}:\\
\;\;\;\;\frac{z - y}{a} \cdot \left(x - t\right) + x\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -2.3e15 or 9.2e-63 < z Initial program 68.6%
Taylor expanded in z around inf
associate--l+N/A
distribute-lft-out--N/A
div-subN/A
+-commutativeN/A
mul-1-negN/A
distribute-rgt-out--N/A
associate-/l*N/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
Applied rewrites77.0%
if -2.3e15 < z < 9.2e-63Initial program 95.7%
Taylor expanded in a around inf
associate-/l*N/A
*-commutativeN/A
lower-*.f64N/A
lower-/.f64N/A
lower--.f64N/A
lower--.f6483.9
Applied rewrites83.9%
Final simplification80.0%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (- t (* (- y a) (/ (- t x) z)))))
(if (<= z -2.3e+15)
t_1
(if (<= z 9.2e-63) (+ (* (/ (- z y) a) (- x t)) x) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t - ((y - a) * ((t - x) / z));
double tmp;
if (z <= -2.3e+15) {
tmp = t_1;
} else if (z <= 9.2e-63) {
tmp = (((z - y) / a) * (x - t)) + 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 = t - ((y - a) * ((t - x) / z))
if (z <= (-2.3d+15)) then
tmp = t_1
else if (z <= 9.2d-63) then
tmp = (((z - y) / a) * (x - t)) + 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 = t - ((y - a) * ((t - x) / z));
double tmp;
if (z <= -2.3e+15) {
tmp = t_1;
} else if (z <= 9.2e-63) {
tmp = (((z - y) / a) * (x - t)) + x;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t - ((y - a) * ((t - x) / z)) tmp = 0 if z <= -2.3e+15: tmp = t_1 elif z <= 9.2e-63: tmp = (((z - y) / a) * (x - t)) + x else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(t - Float64(Float64(y - a) * Float64(Float64(t - x) / z))) tmp = 0.0 if (z <= -2.3e+15) tmp = t_1; elseif (z <= 9.2e-63) tmp = Float64(Float64(Float64(Float64(z - y) / a) * Float64(x - t)) + x); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t - ((y - a) * ((t - x) / z)); tmp = 0.0; if (z <= -2.3e+15) tmp = t_1; elseif (z <= 9.2e-63) tmp = (((z - y) / a) * (x - t)) + x; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t - N[(N[(y - a), $MachinePrecision] * N[(N[(t - x), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2.3e+15], t$95$1, If[LessEqual[z, 9.2e-63], N[(N[(N[(N[(z - y), $MachinePrecision] / a), $MachinePrecision] * N[(x - t), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t - \left(y - a\right) \cdot \frac{t - x}{z}\\
\mathbf{if}\;z \leq -2.3 \cdot 10^{+15}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 9.2 \cdot 10^{-63}:\\
\;\;\;\;\frac{z - y}{a} \cdot \left(x - t\right) + x\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -2.3e15 or 9.2e-63 < z Initial program 68.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-/.f6473.5
Applied rewrites73.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--.f6474.8
Applied rewrites74.8%
if -2.3e15 < z < 9.2e-63Initial program 95.7%
Taylor expanded in a around inf
associate-/l*N/A
*-commutativeN/A
lower-*.f64N/A
lower-/.f64N/A
lower--.f64N/A
lower--.f6483.9
Applied rewrites83.9%
Final simplification78.8%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (- t (* (- y a) (/ (- t x) z)))))
(if (<= z -2.3e+15)
t_1
(if (<= z 9.2e-63) (fma (- y z) (/ (- t x) a) x) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t - ((y - a) * ((t - x) / z));
double tmp;
if (z <= -2.3e+15) {
tmp = t_1;
} else if (z <= 9.2e-63) {
tmp = fma((y - z), ((t - x) / a), x);
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a) t_1 = Float64(t - Float64(Float64(y - a) * Float64(Float64(t - x) / z))) tmp = 0.0 if (z <= -2.3e+15) tmp = t_1; elseif (z <= 9.2e-63) tmp = fma(Float64(y - z), 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[(t - N[(N[(y - a), $MachinePrecision] * N[(N[(t - x), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2.3e+15], t$95$1, If[LessEqual[z, 9.2e-63], N[(N[(y - z), $MachinePrecision] * N[(N[(t - x), $MachinePrecision] / a), $MachinePrecision] + x), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t - \left(y - a\right) \cdot \frac{t - x}{z}\\
\mathbf{if}\;z \leq -2.3 \cdot 10^{+15}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 9.2 \cdot 10^{-63}:\\
\;\;\;\;\mathsf{fma}\left(y - z, \frac{t - x}{a}, x\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -2.3e15 or 9.2e-63 < z Initial program 68.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-/.f6473.5
Applied rewrites73.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--.f6474.8
Applied rewrites74.8%
if -2.3e15 < z < 9.2e-63Initial program 95.7%
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--.f6481.7
Applied rewrites81.7%
Final simplification77.8%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (fma (- y z) (/ (- t x) a) x)))
(if (<= a -5.2e-23)
t_1
(if (<= a 0.0125) (- t (/ (* (- x t) (- a y)) 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 <= -5.2e-23) {
tmp = t_1;
} else if (a <= 0.0125) {
tmp = t - (((x - t) * (a - y)) / 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 <= -5.2e-23) tmp = t_1; elseif (a <= 0.0125) tmp = Float64(t - Float64(Float64(Float64(x - t) * Float64(a - y)) / 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, -5.2e-23], t$95$1, If[LessEqual[a, 0.0125], N[(t - N[(N[(N[(x - t), $MachinePrecision] * N[(a - y), $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 -5.2 \cdot 10^{-23}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 0.0125:\\
\;\;\;\;t - \frac{\left(x - t\right) \cdot \left(a - y\right)}{z}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -5.2e-23 or 0.012500000000000001 < a Initial program 89.7%
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--.f6473.3
Applied rewrites73.3%
if -5.2e-23 < a < 0.012500000000000001Initial program 70.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-/.f6473.1
Applied rewrites73.1%
lift-/.f64N/A
clear-numN/A
lower-/.f64N/A
lower-/.f6473.1
Applied rewrites73.1%
Taylor expanded in z around inf
associate--l+N/A
associate-*r/N/A
associate-*r/N/A
mul-1-negN/A
div-subN/A
mul-1-negN/A
distribute-lft-out--N/A
associate-*r/N/A
mul-1-negN/A
unsub-negN/A
lower--.f64N/A
lower-/.f64N/A
Applied rewrites78.1%
Final simplification75.5%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* (/ (- z y) (- z a)) t)))
(if (<= z -5500000000000.0)
t_1
(if (<= z 9.6e-63) (fma (- y z) (/ (- t x) a) x) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = ((z - y) / (z - a)) * t;
double tmp;
if (z <= -5500000000000.0) {
tmp = t_1;
} else if (z <= 9.6e-63) {
tmp = fma((y - z), ((t - x) / a), x);
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a) t_1 = Float64(Float64(Float64(z - y) / Float64(z - a)) * t) tmp = 0.0 if (z <= -5500000000000.0) tmp = t_1; elseif (z <= 9.6e-63) tmp = fma(Float64(y - z), 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[(N[(N[(z - y), $MachinePrecision] / N[(z - a), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]}, If[LessEqual[z, -5500000000000.0], t$95$1, If[LessEqual[z, 9.6e-63], N[(N[(y - z), $MachinePrecision] * N[(N[(t - x), $MachinePrecision] / a), $MachinePrecision] + x), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{z - y}{z - a} \cdot t\\
\mathbf{if}\;z \leq -5500000000000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 9.6 \cdot 10^{-63}:\\
\;\;\;\;\mathsf{fma}\left(y - z, \frac{t - x}{a}, x\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -5.5e12 or 9.6000000000000002e-63 < z Initial program 68.6%
Taylor expanded in x around 0
*-commutativeN/A
associate-/l*N/A
lower-*.f64N/A
lower--.f64N/A
lower-/.f64N/A
lower--.f6456.3
Applied rewrites56.3%
Applied rewrites65.8%
if -5.5e12 < z < 9.6000000000000002e-63Initial program 95.7%
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--.f6481.7
Applied rewrites81.7%
Final simplification72.8%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* (/ (- z y) (- z a)) t)))
(if (<= z -5200000000000.0)
t_1
(if (<= z 9.6e-63) (fma (/ (- t x) a) y x) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = ((z - y) / (z - a)) * t;
double tmp;
if (z <= -5200000000000.0) {
tmp = t_1;
} else if (z <= 9.6e-63) {
tmp = fma(((t - x) / a), y, x);
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a) t_1 = Float64(Float64(Float64(z - y) / Float64(z - a)) * t) tmp = 0.0 if (z <= -5200000000000.0) tmp = t_1; elseif (z <= 9.6e-63) tmp = fma(Float64(Float64(t - x) / a), y, x); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(N[(z - y), $MachinePrecision] / N[(z - a), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]}, If[LessEqual[z, -5200000000000.0], t$95$1, If[LessEqual[z, 9.6e-63], N[(N[(N[(t - x), $MachinePrecision] / a), $MachinePrecision] * y + x), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{z - y}{z - a} \cdot t\\
\mathbf{if}\;z \leq -5200000000000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 9.6 \cdot 10^{-63}:\\
\;\;\;\;\mathsf{fma}\left(\frac{t - x}{a}, y, x\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -5.2e12 or 9.6000000000000002e-63 < z Initial program 68.6%
Taylor expanded in x around 0
*-commutativeN/A
associate-/l*N/A
lower-*.f64N/A
lower--.f64N/A
lower-/.f64N/A
lower--.f6456.3
Applied rewrites56.3%
Applied rewrites65.8%
if -5.2e12 < z < 9.6000000000000002e-63Initial program 95.7%
Taylor expanded in z around 0
+-commutativeN/A
associate-/l*N/A
*-commutativeN/A
lower-fma.f64N/A
lower-/.f64N/A
lower--.f6480.5
Applied rewrites80.5%
Final simplification72.2%
(FPCore (x y z t a) :precision binary64 (let* ((t_1 (* (/ (- z y) z) t))) (if (<= z -8e+15) t_1 (if (<= z 1.75e+43) (fma (/ (- t x) a) y x) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = ((z - y) / z) * t;
double tmp;
if (z <= -8e+15) {
tmp = t_1;
} else if (z <= 1.75e+43) {
tmp = fma(((t - x) / a), y, x);
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a) t_1 = Float64(Float64(Float64(z - y) / z) * t) tmp = 0.0 if (z <= -8e+15) tmp = t_1; elseif (z <= 1.75e+43) tmp = fma(Float64(Float64(t - x) / a), y, x); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(N[(z - y), $MachinePrecision] / z), $MachinePrecision] * t), $MachinePrecision]}, If[LessEqual[z, -8e+15], t$95$1, If[LessEqual[z, 1.75e+43], N[(N[(N[(t - x), $MachinePrecision] / a), $MachinePrecision] * y + x), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{z - y}{z} \cdot t\\
\mathbf{if}\;z \leq -8 \cdot 10^{+15}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 1.75 \cdot 10^{+43}:\\
\;\;\;\;\mathsf{fma}\left(\frac{t - x}{a}, y, x\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -8e15 or 1.7500000000000001e43 < z Initial program 64.9%
Taylor expanded in x around 0
*-commutativeN/A
associate-/l*N/A
lower-*.f64N/A
lower--.f64N/A
lower-/.f64N/A
lower--.f6456.8
Applied rewrites56.8%
Taylor expanded in a around 0
Applied rewrites59.9%
if -8e15 < z < 1.7500000000000001e43Initial program 95.0%
Taylor expanded in z around 0
+-commutativeN/A
associate-/l*N/A
*-commutativeN/A
lower-fma.f64N/A
lower-/.f64N/A
lower--.f6474.6
Applied rewrites74.6%
Final simplification67.5%
(FPCore (x y z t a) :precision binary64 (if (<= z -1.15e+131) (* (/ z (- z a)) t) (if (<= z 1.75e+43) (fma (/ (- t x) a) y x) (- t (/ (* t y) z)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1.15e+131) {
tmp = (z / (z - a)) * t;
} else if (z <= 1.75e+43) {
tmp = fma(((t - x) / a), y, x);
} else {
tmp = t - ((t * y) / z);
}
return tmp;
}
function code(x, y, z, t, a) tmp = 0.0 if (z <= -1.15e+131) tmp = Float64(Float64(z / Float64(z - a)) * t); elseif (z <= 1.75e+43) tmp = fma(Float64(Float64(t - x) / a), y, x); else tmp = Float64(t - Float64(Float64(t * y) / z)); end return tmp end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -1.15e+131], N[(N[(z / N[(z - a), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[z, 1.75e+43], N[(N[(N[(t - x), $MachinePrecision] / a), $MachinePrecision] * y + x), $MachinePrecision], N[(t - N[(N[(t * y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.15 \cdot 10^{+131}:\\
\;\;\;\;\frac{z}{z - a} \cdot t\\
\mathbf{elif}\;z \leq 1.75 \cdot 10^{+43}:\\
\;\;\;\;\mathsf{fma}\left(\frac{t - x}{a}, y, x\right)\\
\mathbf{else}:\\
\;\;\;\;t - \frac{t \cdot y}{z}\\
\end{array}
\end{array}
if z < -1.14999999999999996e131Initial program 52.3%
Taylor expanded in x around 0
*-commutativeN/A
associate-/l*N/A
lower-*.f64N/A
lower--.f64N/A
lower-/.f64N/A
lower--.f6451.9
Applied rewrites51.9%
Taylor expanded in y around 0
Applied rewrites59.4%
if -1.14999999999999996e131 < z < 1.7500000000000001e43Initial program 93.9%
Taylor expanded in z around 0
+-commutativeN/A
associate-/l*N/A
*-commutativeN/A
lower-fma.f64N/A
lower-/.f64N/A
lower--.f6468.0
Applied rewrites68.0%
if 1.7500000000000001e43 < z Initial program 61.2%
Taylor expanded in x around 0
*-commutativeN/A
associate-/l*N/A
lower-*.f64N/A
lower--.f64N/A
lower-/.f64N/A
lower--.f6458.4
Applied rewrites58.4%
Taylor expanded in a around 0
Applied rewrites65.6%
Taylor expanded in y around 0
Applied rewrites60.8%
Final simplification65.1%
(FPCore (x y z t a) :precision binary64 (let* ((t_1 (- t (/ (* t y) z)))) (if (<= z -8e+15) t_1 (if (<= z 1.75e+43) (fma (/ (- t x) a) y x) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t - ((t * y) / z);
double tmp;
if (z <= -8e+15) {
tmp = t_1;
} else if (z <= 1.75e+43) {
tmp = fma(((t - x) / a), y, x);
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a) t_1 = Float64(t - Float64(Float64(t * y) / z)) tmp = 0.0 if (z <= -8e+15) tmp = t_1; elseif (z <= 1.75e+43) tmp = fma(Float64(Float64(t - x) / a), y, x); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t - N[(N[(t * y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -8e+15], t$95$1, If[LessEqual[z, 1.75e+43], N[(N[(N[(t - x), $MachinePrecision] / a), $MachinePrecision] * y + x), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t - \frac{t \cdot y}{z}\\
\mathbf{if}\;z \leq -8 \cdot 10^{+15}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 1.75 \cdot 10^{+43}:\\
\;\;\;\;\mathsf{fma}\left(\frac{t - x}{a}, y, x\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -8e15 or 1.7500000000000001e43 < z Initial program 64.9%
Taylor expanded in x around 0
*-commutativeN/A
associate-/l*N/A
lower-*.f64N/A
lower--.f64N/A
lower-/.f64N/A
lower--.f6456.8
Applied rewrites56.8%
Taylor expanded in a around 0
Applied rewrites59.9%
Taylor expanded in y around 0
Applied rewrites54.7%
if -8e15 < z < 1.7500000000000001e43Initial program 95.0%
Taylor expanded in z around 0
+-commutativeN/A
associate-/l*N/A
*-commutativeN/A
lower-fma.f64N/A
lower-/.f64N/A
lower--.f6474.6
Applied rewrites74.6%
(FPCore (x y z t a) :precision binary64 (let* ((t_1 (- t (/ (* t y) z)))) (if (<= z -2.6e+15) t_1 (if (<= z 3800000.0) (fma (/ t a) y x) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t - ((t * y) / z);
double tmp;
if (z <= -2.6e+15) {
tmp = t_1;
} else if (z <= 3800000.0) {
tmp = fma((t / a), y, x);
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a) t_1 = Float64(t - Float64(Float64(t * y) / z)) tmp = 0.0 if (z <= -2.6e+15) tmp = t_1; elseif (z <= 3800000.0) tmp = fma(Float64(t / a), y, x); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t - N[(N[(t * y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2.6e+15], t$95$1, If[LessEqual[z, 3800000.0], N[(N[(t / a), $MachinePrecision] * y + x), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t - \frac{t \cdot y}{z}\\
\mathbf{if}\;z \leq -2.6 \cdot 10^{+15}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 3800000:\\
\;\;\;\;\mathsf{fma}\left(\frac{t}{a}, y, x\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -2.6e15 or 3.8e6 < z Initial program 66.7%
Taylor expanded in x around 0
*-commutativeN/A
associate-/l*N/A
lower-*.f64N/A
lower--.f64N/A
lower-/.f64N/A
lower--.f6456.5
Applied rewrites56.5%
Taylor expanded in a around 0
Applied rewrites57.7%
Taylor expanded in y around 0
Applied rewrites52.9%
if -2.6e15 < z < 3.8e6Initial program 95.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-/.f6496.6
Applied rewrites96.6%
Taylor expanded in z around 0
+-commutativeN/A
associate-/l*N/A
*-commutativeN/A
lower-fma.f64N/A
lower-/.f64N/A
lower--.f6477.6
Applied rewrites77.6%
Taylor expanded in x around 0
Applied rewrites68.9%
(FPCore (x y z t a) :precision binary64 (let* ((t_1 (* -1.0 (- t)))) (if (<= z -1.15e+131) t_1 (if (<= z 3.6e+47) (fma (/ t a) y x) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = -1.0 * -t;
double tmp;
if (z <= -1.15e+131) {
tmp = t_1;
} else if (z <= 3.6e+47) {
tmp = fma((t / a), y, x);
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a) t_1 = Float64(-1.0 * Float64(-t)) tmp = 0.0 if (z <= -1.15e+131) tmp = t_1; elseif (z <= 3.6e+47) tmp = fma(Float64(t / a), y, x); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(-1.0 * (-t)), $MachinePrecision]}, If[LessEqual[z, -1.15e+131], t$95$1, If[LessEqual[z, 3.6e+47], N[(N[(t / a), $MachinePrecision] * y + x), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := -1 \cdot \left(-t\right)\\
\mathbf{if}\;z \leq -1.15 \cdot 10^{+131}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 3.6 \cdot 10^{+47}:\\
\;\;\;\;\mathsf{fma}\left(\frac{t}{a}, y, x\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -1.14999999999999996e131 or 3.60000000000000008e47 < z Initial program 56.8%
Taylor expanded in x around 0
*-commutativeN/A
associate-/l*N/A
lower-*.f64N/A
lower--.f64N/A
lower-/.f64N/A
lower--.f6455.9
Applied rewrites55.9%
Taylor expanded in a around 0
Applied rewrites64.4%
Taylor expanded in y around 0
Applied rewrites54.3%
if -1.14999999999999996e131 < z < 3.60000000000000008e47Initial program 94.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-/.f6495.1
Applied rewrites95.1%
Taylor expanded in z around 0
+-commutativeN/A
associate-/l*N/A
*-commutativeN/A
lower-fma.f64N/A
lower-/.f64N/A
lower--.f6467.8
Applied rewrites67.8%
Taylor expanded in x around 0
Applied rewrites60.0%
Final simplification57.9%
(FPCore (x y z t a) :precision binary64 (let* ((t_1 (* -1.0 (- t)))) (if (<= z -4e-30) t_1 (if (<= z 5e-78) (* (/ y a) t) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = -1.0 * -t;
double tmp;
if (z <= -4e-30) {
tmp = t_1;
} else if (z <= 5e-78) {
tmp = (y / a) * t;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = (-1.0d0) * -t
if (z <= (-4d-30)) then
tmp = t_1
else if (z <= 5d-78) then
tmp = (y / a) * t
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = -1.0 * -t;
double tmp;
if (z <= -4e-30) {
tmp = t_1;
} else if (z <= 5e-78) {
tmp = (y / a) * t;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = -1.0 * -t tmp = 0 if z <= -4e-30: tmp = t_1 elif z <= 5e-78: tmp = (y / a) * t else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(-1.0 * Float64(-t)) tmp = 0.0 if (z <= -4e-30) tmp = t_1; elseif (z <= 5e-78) tmp = Float64(Float64(y / a) * t); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = -1.0 * -t; tmp = 0.0; if (z <= -4e-30) tmp = t_1; elseif (z <= 5e-78) tmp = (y / a) * t; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(-1.0 * (-t)), $MachinePrecision]}, If[LessEqual[z, -4e-30], t$95$1, If[LessEqual[z, 5e-78], N[(N[(y / a), $MachinePrecision] * t), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := -1 \cdot \left(-t\right)\\
\mathbf{if}\;z \leq -4 \cdot 10^{-30}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 5 \cdot 10^{-78}:\\
\;\;\;\;\frac{y}{a} \cdot t\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -4e-30 or 4.9999999999999996e-78 < z Initial program 70.7%
Taylor expanded in x around 0
*-commutativeN/A
associate-/l*N/A
lower-*.f64N/A
lower--.f64N/A
lower-/.f64N/A
lower--.f6454.2
Applied rewrites54.2%
Taylor expanded in a around 0
Applied rewrites52.9%
Taylor expanded in y around 0
Applied rewrites40.8%
if -4e-30 < z < 4.9999999999999996e-78Initial program 96.9%
Taylor expanded in x around 0
*-commutativeN/A
associate-/l*N/A
lower-*.f64N/A
lower--.f64N/A
lower-/.f64N/A
lower--.f6431.6
Applied rewrites31.6%
Taylor expanded in z around 0
Applied rewrites31.2%
Final simplification37.2%
(FPCore (x y z t a) :precision binary64 (* -1.0 (- t)))
double code(double x, double y, double z, double t, double a) {
return -1.0 * -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 = (-1.0d0) * -t
end function
public static double code(double x, double y, double z, double t, double a) {
return -1.0 * -t;
}
def code(x, y, z, t, a): return -1.0 * -t
function code(x, y, z, t, a) return Float64(-1.0 * Float64(-t)) end
function tmp = code(x, y, z, t, a) tmp = -1.0 * -t; end
code[x_, y_, z_, t_, a_] := N[(-1.0 * (-t)), $MachinePrecision]
\begin{array}{l}
\\
-1 \cdot \left(-t\right)
\end{array}
Initial program 80.4%
Taylor expanded in x around 0
*-commutativeN/A
associate-/l*N/A
lower-*.f64N/A
lower--.f64N/A
lower-/.f64N/A
lower--.f6445.8
Applied rewrites45.8%
Taylor expanded in a around 0
Applied rewrites40.8%
Taylor expanded in y around 0
Applied rewrites27.2%
Final simplification27.2%
(FPCore (x y z t a) :precision binary64 (+ (- t x) x))
double code(double x, double y, double z, double t, double a) {
return (t - 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 = (t - x) + x
end function
public static double code(double x, double y, double z, double t, double a) {
return (t - x) + x;
}
def code(x, y, z, t, a): return (t - x) + x
function code(x, y, z, t, a) return Float64(Float64(t - x) + x) end
function tmp = code(x, y, z, t, a) tmp = (t - x) + x; end
code[x_, y_, z_, t_, a_] := N[(N[(t - x), $MachinePrecision] + x), $MachinePrecision]
\begin{array}{l}
\\
\left(t - x\right) + x
\end{array}
Initial program 80.4%
Taylor expanded in z around inf
lower--.f6420.7
Applied rewrites20.7%
Final simplification20.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(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 80.4%
Taylor expanded in z around inf
lower--.f6420.7
Applied rewrites20.7%
Taylor expanded in x around inf
Applied rewrites2.7%
Final simplification2.7%
herbie shell --seed 2024332
(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)))))