
(FPCore (x y z t a b) :precision binary64 (+ (- (- x (* (- y 1.0) z)) (* (- t 1.0) a)) (* (- (+ y t) 2.0) b)))
double code(double x, double y, double z, double t, double a, double b) {
return ((x - ((y - 1.0) * z)) - ((t - 1.0) * a)) + (((y + t) - 2.0) * b);
}
real(8) function code(x, y, z, t, a, b)
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), intent (in) :: b
code = ((x - ((y - 1.0d0) * z)) - ((t - 1.0d0) * a)) + (((y + t) - 2.0d0) * b)
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return ((x - ((y - 1.0) * z)) - ((t - 1.0) * a)) + (((y + t) - 2.0) * b);
}
def code(x, y, z, t, a, b): return ((x - ((y - 1.0) * z)) - ((t - 1.0) * a)) + (((y + t) - 2.0) * b)
function code(x, y, z, t, a, b) return Float64(Float64(Float64(x - Float64(Float64(y - 1.0) * z)) - Float64(Float64(t - 1.0) * a)) + Float64(Float64(Float64(y + t) - 2.0) * b)) end
function tmp = code(x, y, z, t, a, b) tmp = ((x - ((y - 1.0) * z)) - ((t - 1.0) * a)) + (((y + t) - 2.0) * b); end
code[x_, y_, z_, t_, a_, b_] := N[(N[(N[(x - N[(N[(y - 1.0), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision] - N[(N[(t - 1.0), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(y + t), $MachinePrecision] - 2.0), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 23 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b) :precision binary64 (+ (- (- x (* (- y 1.0) z)) (* (- t 1.0) a)) (* (- (+ y t) 2.0) b)))
double code(double x, double y, double z, double t, double a, double b) {
return ((x - ((y - 1.0) * z)) - ((t - 1.0) * a)) + (((y + t) - 2.0) * b);
}
real(8) function code(x, y, z, t, a, b)
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), intent (in) :: b
code = ((x - ((y - 1.0d0) * z)) - ((t - 1.0d0) * a)) + (((y + t) - 2.0d0) * b)
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return ((x - ((y - 1.0) * z)) - ((t - 1.0) * a)) + (((y + t) - 2.0) * b);
}
def code(x, y, z, t, a, b): return ((x - ((y - 1.0) * z)) - ((t - 1.0) * a)) + (((y + t) - 2.0) * b)
function code(x, y, z, t, a, b) return Float64(Float64(Float64(x - Float64(Float64(y - 1.0) * z)) - Float64(Float64(t - 1.0) * a)) + Float64(Float64(Float64(y + t) - 2.0) * b)) end
function tmp = code(x, y, z, t, a, b) tmp = ((x - ((y - 1.0) * z)) - ((t - 1.0) * a)) + (((y + t) - 2.0) * b); end
code[x_, y_, z_, t_, a_, b_] := N[(N[(N[(x - N[(N[(y - 1.0), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision] - N[(N[(t - 1.0), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(y + t), $MachinePrecision] - 2.0), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(x - \left(y - 1\right) \cdot z\right) - \left(t - 1\right) \cdot a\right) + \left(\left(y + t\right) - 2\right) \cdot b
\end{array}
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ y (+ t -2.0))))
(if (<=
(+ (+ (+ x (* z (- 1.0 y))) (* a (- 1.0 t))) (* (- (+ y t) 2.0) b))
INFINITY)
(fma t_1 b (- x (fma (+ y -1.0) z (* (+ t -1.0) a))))
(* b t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = y + (t + -2.0);
double tmp;
if ((((x + (z * (1.0 - y))) + (a * (1.0 - t))) + (((y + t) - 2.0) * b)) <= ((double) INFINITY)) {
tmp = fma(t_1, b, (x - fma((y + -1.0), z, ((t + -1.0) * a))));
} else {
tmp = b * t_1;
}
return tmp;
}
function code(x, y, z, t, a, b) t_1 = Float64(y + Float64(t + -2.0)) tmp = 0.0 if (Float64(Float64(Float64(x + Float64(z * Float64(1.0 - y))) + Float64(a * Float64(1.0 - t))) + Float64(Float64(Float64(y + t) - 2.0) * b)) <= Inf) tmp = fma(t_1, b, Float64(x - fma(Float64(y + -1.0), z, Float64(Float64(t + -1.0) * a)))); else tmp = Float64(b * t_1); end return tmp end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(y + N[(t + -2.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(N[(N[(x + N[(z * N[(1.0 - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(a * N[(1.0 - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(y + t), $MachinePrecision] - 2.0), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision], Infinity], N[(t$95$1 * b + N[(x - N[(N[(y + -1.0), $MachinePrecision] * z + N[(N[(t + -1.0), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * t$95$1), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y + \left(t + -2\right)\\
\mathbf{if}\;\left(\left(x + z \cdot \left(1 - y\right)\right) + a \cdot \left(1 - t\right)\right) + \left(\left(y + t\right) - 2\right) \cdot b \leq \infty:\\
\;\;\;\;\mathsf{fma}\left(t\_1, b, x - \mathsf{fma}\left(y + -1, z, \left(t + -1\right) \cdot a\right)\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot t\_1\\
\end{array}
\end{array}
if (+.f64 (-.f64 (-.f64 x (*.f64 (-.f64 y #s(literal 1 binary64)) z)) (*.f64 (-.f64 t #s(literal 1 binary64)) a)) (*.f64 (-.f64 (+.f64 y t) #s(literal 2 binary64)) b)) < +inf.0Initial program 100.0%
+-commutativeN/A
accelerator-lowering-fma.f64N/A
associate--l+N/A
+-lowering-+.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
associate--l-N/A
--lowering--.f64N/A
accelerator-lowering-fma.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-eval100.0
Applied egg-rr100.0%
if +inf.0 < (+.f64 (-.f64 (-.f64 x (*.f64 (-.f64 y #s(literal 1 binary64)) z)) (*.f64 (-.f64 t #s(literal 1 binary64)) a)) (*.f64 (-.f64 (+.f64 y t) #s(literal 2 binary64)) b)) Initial program 0.0%
Taylor expanded in b around inf
*-lowering-*.f64N/A
+-commutativeN/A
associate-+r-N/A
+-lowering-+.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-eval82.3
Simplified82.3%
Final simplification99.2%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (fma y b (- x (fma (+ y -1.0) z (* (+ t -1.0) a))))))
(if (<= a -4.9e-5)
t_1
(if (<= a 1.3e+95) (fma b (+ y (+ t -2.0)) (fma z (- 1.0 y) x)) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = fma(y, b, (x - fma((y + -1.0), z, ((t + -1.0) * a))));
double tmp;
if (a <= -4.9e-5) {
tmp = t_1;
} else if (a <= 1.3e+95) {
tmp = fma(b, (y + (t + -2.0)), fma(z, (1.0 - y), x));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b) t_1 = fma(y, b, Float64(x - fma(Float64(y + -1.0), z, Float64(Float64(t + -1.0) * a)))) tmp = 0.0 if (a <= -4.9e-5) tmp = t_1; elseif (a <= 1.3e+95) tmp = fma(b, Float64(y + Float64(t + -2.0)), fma(z, Float64(1.0 - y), x)); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(y * b + N[(x - N[(N[(y + -1.0), $MachinePrecision] * z + N[(N[(t + -1.0), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -4.9e-5], t$95$1, If[LessEqual[a, 1.3e+95], N[(b * N[(y + N[(t + -2.0), $MachinePrecision]), $MachinePrecision] + N[(z * N[(1.0 - y), $MachinePrecision] + x), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(y, b, x - \mathsf{fma}\left(y + -1, z, \left(t + -1\right) \cdot a\right)\right)\\
\mathbf{if}\;a \leq -4.9 \cdot 10^{-5}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 1.3 \cdot 10^{+95}:\\
\;\;\;\;\mathsf{fma}\left(b, y + \left(t + -2\right), \mathsf{fma}\left(z, 1 - y, x\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -4.9e-5 or 1.29999999999999995e95 < a Initial program 94.1%
+-commutativeN/A
accelerator-lowering-fma.f64N/A
associate--l+N/A
+-lowering-+.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
associate--l-N/A
--lowering--.f64N/A
accelerator-lowering-fma.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-eval95.1
Applied egg-rr95.1%
Taylor expanded in y around inf
Simplified90.4%
if -4.9e-5 < a < 1.29999999999999995e95Initial program 96.7%
Taylor expanded in a around 0
+-commutativeN/A
associate--l+N/A
accelerator-lowering-fma.f64N/A
+-commutativeN/A
associate-+r-N/A
+-lowering-+.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
sub-negN/A
+-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
accelerator-lowering-fma.f64N/A
mul-1-negN/A
sub-negN/A
metadata-evalN/A
+-commutativeN/A
distribute-neg-inN/A
metadata-evalN/A
sub-negN/A
--lowering--.f6494.5
Simplified94.5%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (fma z (- 1.0 y) x)) (t_2 (* t (- b a))))
(if (<= t -1.45e+34)
t_2
(if (<= t 3.8e-195)
t_1
(if (<= t 3.1e+27)
(fma b (+ y -2.0) x)
(if (<= t 1.95e+89) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = fma(z, (1.0 - y), x);
double t_2 = t * (b - a);
double tmp;
if (t <= -1.45e+34) {
tmp = t_2;
} else if (t <= 3.8e-195) {
tmp = t_1;
} else if (t <= 3.1e+27) {
tmp = fma(b, (y + -2.0), x);
} else if (t <= 1.95e+89) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
function code(x, y, z, t, a, b) t_1 = fma(z, Float64(1.0 - y), x) t_2 = Float64(t * Float64(b - a)) tmp = 0.0 if (t <= -1.45e+34) tmp = t_2; elseif (t <= 3.8e-195) tmp = t_1; elseif (t <= 3.1e+27) tmp = fma(b, Float64(y + -2.0), x); elseif (t <= 1.95e+89) tmp = t_1; else tmp = t_2; end return tmp end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(z * N[(1.0 - y), $MachinePrecision] + x), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(b - a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.45e+34], t$95$2, If[LessEqual[t, 3.8e-195], t$95$1, If[LessEqual[t, 3.1e+27], N[(b * N[(y + -2.0), $MachinePrecision] + x), $MachinePrecision], If[LessEqual[t, 1.95e+89], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(z, 1 - y, x\right)\\
t_2 := t \cdot \left(b - a\right)\\
\mathbf{if}\;t \leq -1.45 \cdot 10^{+34}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq 3.8 \cdot 10^{-195}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 3.1 \cdot 10^{+27}:\\
\;\;\;\;\mathsf{fma}\left(b, y + -2, x\right)\\
\mathbf{elif}\;t \leq 1.95 \cdot 10^{+89}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if t < -1.4500000000000001e34 or 1.95000000000000005e89 < t Initial program 92.3%
Taylor expanded in t around inf
*-lowering-*.f64N/A
--lowering--.f6474.8
Simplified74.8%
if -1.4500000000000001e34 < t < 3.80000000000000013e-195 or 3.09999999999999996e27 < t < 1.95000000000000005e89Initial program 96.3%
Taylor expanded in b around 0
associate--r+N/A
sub-negN/A
+-commutativeN/A
associate-+r-N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
accelerator-lowering-fma.f64N/A
sub-negN/A
metadata-evalN/A
+-commutativeN/A
distribute-lft-inN/A
metadata-evalN/A
neg-mul-1N/A
sub-negN/A
--lowering--.f64N/A
sub-negN/A
+-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
accelerator-lowering-fma.f64N/A
Simplified76.2%
Taylor expanded in a around 0
+-commutativeN/A
sub-negN/A
+-commutativeN/A
neg-sub0N/A
associate-+l-N/A
neg-sub0N/A
mul-1-negN/A
accelerator-lowering-fma.f64N/A
mul-1-negN/A
neg-sub0N/A
associate-+l-N/A
neg-sub0N/A
+-commutativeN/A
sub-negN/A
--lowering--.f6462.0
Simplified62.0%
if 3.80000000000000013e-195 < t < 3.09999999999999996e27Initial program 100.0%
Taylor expanded in x around inf
Simplified66.0%
Taylor expanded in t around 0
+-commutativeN/A
accelerator-lowering-fma.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-eval64.2
Simplified64.2%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (fma a (- 1.0 t) x)) (t_2 (* y (- b z))))
(if (<= y -6.2e+84)
t_2
(if (<= y -5.5e-10)
t_1
(if (<= y 6e-299) (fma b (+ t -2.0) x) (if (<= y 2.8e+28) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = fma(a, (1.0 - t), x);
double t_2 = y * (b - z);
double tmp;
if (y <= -6.2e+84) {
tmp = t_2;
} else if (y <= -5.5e-10) {
tmp = t_1;
} else if (y <= 6e-299) {
tmp = fma(b, (t + -2.0), x);
} else if (y <= 2.8e+28) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
function code(x, y, z, t, a, b) t_1 = fma(a, Float64(1.0 - t), x) t_2 = Float64(y * Float64(b - z)) tmp = 0.0 if (y <= -6.2e+84) tmp = t_2; elseif (y <= -5.5e-10) tmp = t_1; elseif (y <= 6e-299) tmp = fma(b, Float64(t + -2.0), x); elseif (y <= 2.8e+28) tmp = t_1; else tmp = t_2; end return tmp end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(a * N[(1.0 - t), $MachinePrecision] + x), $MachinePrecision]}, Block[{t$95$2 = N[(y * N[(b - z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -6.2e+84], t$95$2, If[LessEqual[y, -5.5e-10], t$95$1, If[LessEqual[y, 6e-299], N[(b * N[(t + -2.0), $MachinePrecision] + x), $MachinePrecision], If[LessEqual[y, 2.8e+28], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(a, 1 - t, x\right)\\
t_2 := y \cdot \left(b - z\right)\\
\mathbf{if}\;y \leq -6.2 \cdot 10^{+84}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq -5.5 \cdot 10^{-10}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 6 \cdot 10^{-299}:\\
\;\;\;\;\mathsf{fma}\left(b, t + -2, x\right)\\
\mathbf{elif}\;y \leq 2.8 \cdot 10^{+28}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if y < -6.20000000000000006e84 or 2.8000000000000001e28 < y Initial program 93.6%
Taylor expanded in y around inf
*-lowering-*.f64N/A
--lowering--.f6472.9
Simplified72.9%
if -6.20000000000000006e84 < y < -5.4999999999999996e-10 or 5.99999999999999969e-299 < y < 2.8000000000000001e28Initial program 97.6%
Taylor expanded in b around 0
associate--r+N/A
sub-negN/A
+-commutativeN/A
associate-+r-N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
accelerator-lowering-fma.f64N/A
sub-negN/A
metadata-evalN/A
+-commutativeN/A
distribute-lft-inN/A
metadata-evalN/A
neg-mul-1N/A
sub-negN/A
--lowering--.f64N/A
sub-negN/A
+-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
accelerator-lowering-fma.f64N/A
Simplified78.2%
Taylor expanded in z around 0
+-commutativeN/A
sub-negN/A
+-commutativeN/A
neg-sub0N/A
associate-+l-N/A
neg-sub0N/A
mul-1-negN/A
accelerator-lowering-fma.f64N/A
mul-1-negN/A
neg-sub0N/A
associate-+l-N/A
neg-sub0N/A
+-commutativeN/A
sub-negN/A
--lowering--.f6460.4
Simplified60.4%
if -5.4999999999999996e-10 < y < 5.99999999999999969e-299Initial program 96.7%
Taylor expanded in x around inf
Simplified64.0%
Taylor expanded in y around 0
+-commutativeN/A
accelerator-lowering-fma.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-eval64.0
Simplified64.0%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ y (+ t -2.0))) (t_2 (fma b t_1 (fma z (- 1.0 y) x))))
(if (<= z -64000.0)
t_2
(if (<= z 6.7e+66) (fma b t_1 (fma a (- 1.0 t) x)) t_2))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = y + (t + -2.0);
double t_2 = fma(b, t_1, fma(z, (1.0 - y), x));
double tmp;
if (z <= -64000.0) {
tmp = t_2;
} else if (z <= 6.7e+66) {
tmp = fma(b, t_1, fma(a, (1.0 - t), x));
} else {
tmp = t_2;
}
return tmp;
}
function code(x, y, z, t, a, b) t_1 = Float64(y + Float64(t + -2.0)) t_2 = fma(b, t_1, fma(z, Float64(1.0 - y), x)) tmp = 0.0 if (z <= -64000.0) tmp = t_2; elseif (z <= 6.7e+66) tmp = fma(b, t_1, fma(a, Float64(1.0 - t), x)); else tmp = t_2; end return tmp end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(y + N[(t + -2.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * t$95$1 + N[(z * N[(1.0 - y), $MachinePrecision] + x), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -64000.0], t$95$2, If[LessEqual[z, 6.7e+66], N[(b * t$95$1 + N[(a * N[(1.0 - t), $MachinePrecision] + x), $MachinePrecision]), $MachinePrecision], t$95$2]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y + \left(t + -2\right)\\
t_2 := \mathsf{fma}\left(b, t\_1, \mathsf{fma}\left(z, 1 - y, x\right)\right)\\
\mathbf{if}\;z \leq -64000:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq 6.7 \cdot 10^{+66}:\\
\;\;\;\;\mathsf{fma}\left(b, t\_1, \mathsf{fma}\left(a, 1 - t, x\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if z < -64000 or 6.69999999999999969e66 < z Initial program 91.8%
Taylor expanded in a around 0
+-commutativeN/A
associate--l+N/A
accelerator-lowering-fma.f64N/A
+-commutativeN/A
associate-+r-N/A
+-lowering-+.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
sub-negN/A
+-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
accelerator-lowering-fma.f64N/A
mul-1-negN/A
sub-negN/A
metadata-evalN/A
+-commutativeN/A
distribute-neg-inN/A
metadata-evalN/A
sub-negN/A
--lowering--.f6485.3
Simplified85.3%
if -64000 < z < 6.69999999999999969e66Initial program 99.2%
Taylor expanded in z around 0
+-commutativeN/A
associate--l+N/A
accelerator-lowering-fma.f64N/A
+-commutativeN/A
associate-+r-N/A
+-lowering-+.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
sub-negN/A
+-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
accelerator-lowering-fma.f64N/A
sub-negN/A
metadata-evalN/A
+-commutativeN/A
distribute-lft-inN/A
metadata-evalN/A
neg-mul-1N/A
sub-negN/A
--lowering--.f6495.6
Simplified95.6%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (fma a (- 1.0 t) (fma z (- 1.0 y) x))))
(if (<= z -3.8e+105)
t_1
(if (<= z 4e+69) (fma b (+ y (+ t -2.0)) (fma a (- 1.0 t) x)) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = fma(a, (1.0 - t), fma(z, (1.0 - y), x));
double tmp;
if (z <= -3.8e+105) {
tmp = t_1;
} else if (z <= 4e+69) {
tmp = fma(b, (y + (t + -2.0)), fma(a, (1.0 - t), x));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b) t_1 = fma(a, Float64(1.0 - t), fma(z, Float64(1.0 - y), x)) tmp = 0.0 if (z <= -3.8e+105) tmp = t_1; elseif (z <= 4e+69) tmp = fma(b, Float64(y + Float64(t + -2.0)), fma(a, Float64(1.0 - t), x)); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(a * N[(1.0 - t), $MachinePrecision] + N[(z * N[(1.0 - y), $MachinePrecision] + x), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -3.8e+105], t$95$1, If[LessEqual[z, 4e+69], N[(b * N[(y + N[(t + -2.0), $MachinePrecision]), $MachinePrecision] + N[(a * N[(1.0 - t), $MachinePrecision] + x), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(a, 1 - t, \mathsf{fma}\left(z, 1 - y, x\right)\right)\\
\mathbf{if}\;z \leq -3.8 \cdot 10^{+105}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 4 \cdot 10^{+69}:\\
\;\;\;\;\mathsf{fma}\left(b, y + \left(t + -2\right), \mathsf{fma}\left(a, 1 - t, x\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -3.8e105 or 4.0000000000000003e69 < z Initial program 91.4%
Taylor expanded in b around 0
associate--r+N/A
sub-negN/A
+-commutativeN/A
associate-+r-N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
accelerator-lowering-fma.f64N/A
sub-negN/A
metadata-evalN/A
+-commutativeN/A
distribute-lft-inN/A
metadata-evalN/A
neg-mul-1N/A
sub-negN/A
--lowering--.f64N/A
sub-negN/A
+-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
accelerator-lowering-fma.f64N/A
Simplified80.0%
if -3.8e105 < z < 4.0000000000000003e69Initial program 98.6%
Taylor expanded in z around 0
+-commutativeN/A
associate--l+N/A
accelerator-lowering-fma.f64N/A
+-commutativeN/A
associate-+r-N/A
+-lowering-+.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
sub-negN/A
+-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
accelerator-lowering-fma.f64N/A
sub-negN/A
metadata-evalN/A
+-commutativeN/A
distribute-lft-inN/A
metadata-evalN/A
neg-mul-1N/A
sub-negN/A
--lowering--.f6493.0
Simplified93.0%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* y (- b z))))
(if (<= y -3.8e+57)
t_1
(if (<= y 4.3e-246)
(fma b t x)
(if (<= y 1.15e-49)
(* t (- b a))
(if (<= y 8.2e+15) (fma b -2.0 x) t_1))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = y * (b - z);
double tmp;
if (y <= -3.8e+57) {
tmp = t_1;
} else if (y <= 4.3e-246) {
tmp = fma(b, t, x);
} else if (y <= 1.15e-49) {
tmp = t * (b - a);
} else if (y <= 8.2e+15) {
tmp = fma(b, -2.0, x);
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b) t_1 = Float64(y * Float64(b - z)) tmp = 0.0 if (y <= -3.8e+57) tmp = t_1; elseif (y <= 4.3e-246) tmp = fma(b, t, x); elseif (y <= 1.15e-49) tmp = Float64(t * Float64(b - a)); elseif (y <= 8.2e+15) tmp = fma(b, -2.0, x); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(y * N[(b - z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -3.8e+57], t$95$1, If[LessEqual[y, 4.3e-246], N[(b * t + x), $MachinePrecision], If[LessEqual[y, 1.15e-49], N[(t * N[(b - a), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 8.2e+15], N[(b * -2.0 + x), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(b - z\right)\\
\mathbf{if}\;y \leq -3.8 \cdot 10^{+57}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 4.3 \cdot 10^{-246}:\\
\;\;\;\;\mathsf{fma}\left(b, t, x\right)\\
\mathbf{elif}\;y \leq 1.15 \cdot 10^{-49}:\\
\;\;\;\;t \cdot \left(b - a\right)\\
\mathbf{elif}\;y \leq 8.2 \cdot 10^{+15}:\\
\;\;\;\;\mathsf{fma}\left(b, -2, x\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -3.7999999999999999e57 or 8.2e15 < y Initial program 93.9%
Taylor expanded in y around inf
*-lowering-*.f64N/A
--lowering--.f6471.3
Simplified71.3%
if -3.7999999999999999e57 < y < 4.29999999999999992e-246Initial program 97.6%
Taylor expanded in x around inf
Simplified58.9%
Taylor expanded in y around 0
+-commutativeN/A
accelerator-lowering-fma.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-eval56.7
Simplified56.7%
Taylor expanded in t around inf
Simplified44.6%
if 4.29999999999999992e-246 < y < 1.15e-49Initial program 95.3%
Taylor expanded in t around inf
*-lowering-*.f64N/A
--lowering--.f6448.7
Simplified48.7%
if 1.15e-49 < y < 8.2e15Initial program 100.0%
Taylor expanded in x around inf
Simplified58.1%
Taylor expanded in y around 0
+-commutativeN/A
accelerator-lowering-fma.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-eval59.6
Simplified59.6%
Taylor expanded in t around 0
+-commutativeN/A
*-commutativeN/A
accelerator-lowering-fma.f6459.5
Simplified59.5%
(FPCore (x y z t a b)
:precision binary64
(if (<= b -1.9e+116)
(+ x (* (- (+ y t) 2.0) b))
(if (<= b 6.6e+35)
(fma a (- 1.0 t) (fma z (- 1.0 y) x))
(fma (+ y (+ t -2.0)) b (fma y (- z) z)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -1.9e+116) {
tmp = x + (((y + t) - 2.0) * b);
} else if (b <= 6.6e+35) {
tmp = fma(a, (1.0 - t), fma(z, (1.0 - y), x));
} else {
tmp = fma((y + (t + -2.0)), b, fma(y, -z, z));
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -1.9e+116) tmp = Float64(x + Float64(Float64(Float64(y + t) - 2.0) * b)); elseif (b <= 6.6e+35) tmp = fma(a, Float64(1.0 - t), fma(z, Float64(1.0 - y), x)); else tmp = fma(Float64(y + Float64(t + -2.0)), b, fma(y, Float64(-z), z)); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -1.9e+116], N[(x + N[(N[(N[(y + t), $MachinePrecision] - 2.0), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 6.6e+35], N[(a * N[(1.0 - t), $MachinePrecision] + N[(z * N[(1.0 - y), $MachinePrecision] + x), $MachinePrecision]), $MachinePrecision], N[(N[(y + N[(t + -2.0), $MachinePrecision]), $MachinePrecision] * b + N[(y * (-z) + z), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.9 \cdot 10^{+116}:\\
\;\;\;\;x + \left(\left(y + t\right) - 2\right) \cdot b\\
\mathbf{elif}\;b \leq 6.6 \cdot 10^{+35}:\\
\;\;\;\;\mathsf{fma}\left(a, 1 - t, \mathsf{fma}\left(z, 1 - y, x\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(y + \left(t + -2\right), b, \mathsf{fma}\left(y, -z, z\right)\right)\\
\end{array}
\end{array}
if b < -1.8999999999999999e116Initial program 86.8%
Taylor expanded in x around inf
Simplified85.4%
if -1.8999999999999999e116 < b < 6.6000000000000003e35Initial program 98.7%
Taylor expanded in b around 0
associate--r+N/A
sub-negN/A
+-commutativeN/A
associate-+r-N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
accelerator-lowering-fma.f64N/A
sub-negN/A
metadata-evalN/A
+-commutativeN/A
distribute-lft-inN/A
metadata-evalN/A
neg-mul-1N/A
sub-negN/A
--lowering--.f64N/A
sub-negN/A
+-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
accelerator-lowering-fma.f64N/A
Simplified84.6%
if 6.6000000000000003e35 < b Initial program 92.5%
+-commutativeN/A
accelerator-lowering-fma.f64N/A
associate--l+N/A
+-lowering-+.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
associate--l-N/A
--lowering--.f64N/A
accelerator-lowering-fma.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-eval92.5
Applied egg-rr92.5%
Taylor expanded in z around inf
distribute-rgt-out--N/A
*-lft-identityN/A
unsub-negN/A
mul-1-negN/A
+-commutativeN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
accelerator-lowering-fma.f64N/A
mul-1-negN/A
neg-lowering-neg.f6483.7
Simplified83.7%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ x (* (- (+ y t) 2.0) b))))
(if (<= b -5.1e+110)
t_1
(if (<= b 1.1e+33) (fma a (- 1.0 t) (fma z (- 1.0 y) x)) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (((y + t) - 2.0) * b);
double tmp;
if (b <= -5.1e+110) {
tmp = t_1;
} else if (b <= 1.1e+33) {
tmp = fma(a, (1.0 - t), fma(z, (1.0 - y), x));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b) t_1 = Float64(x + Float64(Float64(Float64(y + t) - 2.0) * b)) tmp = 0.0 if (b <= -5.1e+110) tmp = t_1; elseif (b <= 1.1e+33) tmp = fma(a, Float64(1.0 - t), fma(z, Float64(1.0 - y), x)); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x + N[(N[(N[(y + t), $MachinePrecision] - 2.0), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -5.1e+110], t$95$1, If[LessEqual[b, 1.1e+33], N[(a * N[(1.0 - t), $MachinePrecision] + N[(z * N[(1.0 - y), $MachinePrecision] + x), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \left(\left(y + t\right) - 2\right) \cdot b\\
\mathbf{if}\;b \leq -5.1 \cdot 10^{+110}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 1.1 \cdot 10^{+33}:\\
\;\;\;\;\mathsf{fma}\left(a, 1 - t, \mathsf{fma}\left(z, 1 - y, x\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -5.1000000000000002e110 or 1.09999999999999997e33 < b Initial program 90.3%
Taylor expanded in x around inf
Simplified80.4%
if -5.1000000000000002e110 < b < 1.09999999999999997e33Initial program 98.7%
Taylor expanded in b around 0
associate--r+N/A
sub-negN/A
+-commutativeN/A
associate-+r-N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
accelerator-lowering-fma.f64N/A
sub-negN/A
metadata-evalN/A
+-commutativeN/A
distribute-lft-inN/A
metadata-evalN/A
neg-mul-1N/A
sub-negN/A
--lowering--.f64N/A
sub-negN/A
+-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
accelerator-lowering-fma.f64N/A
Simplified84.5%
(FPCore (x y z t a b)
:precision binary64
(if (<= y -1.85e+58)
(* y b)
(if (<= y -4.4e-163)
x
(if (<= y 2.3e-101) z (if (<= y 5.8e+15) x (* y b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= -1.85e+58) {
tmp = y * b;
} else if (y <= -4.4e-163) {
tmp = x;
} else if (y <= 2.3e-101) {
tmp = z;
} else if (y <= 5.8e+15) {
tmp = x;
} else {
tmp = y * b;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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), intent (in) :: b
real(8) :: tmp
if (y <= (-1.85d+58)) then
tmp = y * b
else if (y <= (-4.4d-163)) then
tmp = x
else if (y <= 2.3d-101) then
tmp = z
else if (y <= 5.8d+15) then
tmp = x
else
tmp = y * b
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= -1.85e+58) {
tmp = y * b;
} else if (y <= -4.4e-163) {
tmp = x;
} else if (y <= 2.3e-101) {
tmp = z;
} else if (y <= 5.8e+15) {
tmp = x;
} else {
tmp = y * b;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if y <= -1.85e+58: tmp = y * b elif y <= -4.4e-163: tmp = x elif y <= 2.3e-101: tmp = z elif y <= 5.8e+15: tmp = x else: tmp = y * b return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (y <= -1.85e+58) tmp = Float64(y * b); elseif (y <= -4.4e-163) tmp = x; elseif (y <= 2.3e-101) tmp = z; elseif (y <= 5.8e+15) tmp = x; else tmp = Float64(y * b); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (y <= -1.85e+58) tmp = y * b; elseif (y <= -4.4e-163) tmp = x; elseif (y <= 2.3e-101) tmp = z; elseif (y <= 5.8e+15) tmp = x; else tmp = y * b; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[y, -1.85e+58], N[(y * b), $MachinePrecision], If[LessEqual[y, -4.4e-163], x, If[LessEqual[y, 2.3e-101], z, If[LessEqual[y, 5.8e+15], x, N[(y * b), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.85 \cdot 10^{+58}:\\
\;\;\;\;y \cdot b\\
\mathbf{elif}\;y \leq -4.4 \cdot 10^{-163}:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq 2.3 \cdot 10^{-101}:\\
\;\;\;\;z\\
\mathbf{elif}\;y \leq 5.8 \cdot 10^{+15}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;y \cdot b\\
\end{array}
\end{array}
if y < -1.8500000000000001e58 or 5.8e15 < y Initial program 93.9%
Taylor expanded in y around inf
*-lowering-*.f64N/A
--lowering--.f6471.3
Simplified71.3%
Taylor expanded in b around inf
*-commutativeN/A
*-lowering-*.f6440.4
Simplified40.4%
if -1.8500000000000001e58 < y < -4.40000000000000022e-163 or 2.2999999999999999e-101 < y < 5.8e15Initial program 93.4%
Taylor expanded in x around inf
Simplified33.5%
if -4.40000000000000022e-163 < y < 2.2999999999999999e-101Initial program 99.9%
Taylor expanded in z around inf
sub-negN/A
neg-mul-1N/A
distribute-rgt-inN/A
associate-*r*N/A
*-lft-identityN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
*-lowering-*.f6427.4
Simplified27.4%
Taylor expanded in y around 0
Simplified27.4%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* t (- b a))))
(if (<= t -1.4e+85)
t_1
(if (<= t 2.5e+91) (+ a (+ z (fma y (- b z) x))) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = t * (b - a);
double tmp;
if (t <= -1.4e+85) {
tmp = t_1;
} else if (t <= 2.5e+91) {
tmp = a + (z + fma(y, (b - z), x));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b) t_1 = Float64(t * Float64(b - a)) tmp = 0.0 if (t <= -1.4e+85) tmp = t_1; elseif (t <= 2.5e+91) tmp = Float64(a + Float64(z + fma(y, Float64(b - z), x))); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(t * N[(b - a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.4e+85], t$95$1, If[LessEqual[t, 2.5e+91], N[(a + N[(z + N[(y * N[(b - z), $MachinePrecision] + x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(b - a\right)\\
\mathbf{if}\;t \leq -1.4 \cdot 10^{+85}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 2.5 \cdot 10^{+91}:\\
\;\;\;\;a + \left(z + \mathsf{fma}\left(y, b - z, x\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -1.4e85 or 2.5000000000000001e91 < t Initial program 92.5%
Taylor expanded in t around inf
*-lowering-*.f64N/A
--lowering--.f6478.6
Simplified78.6%
if -1.4e85 < t < 2.5000000000000001e91Initial program 97.1%
+-commutativeN/A
accelerator-lowering-fma.f64N/A
associate--l+N/A
+-lowering-+.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
associate--l-N/A
--lowering--.f64N/A
accelerator-lowering-fma.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-eval98.3
Applied egg-rr98.3%
Taylor expanded in y around inf
Simplified85.9%
Taylor expanded in t around 0
sub-negN/A
+-commutativeN/A
distribute-neg-inN/A
mul-1-negN/A
remove-double-negN/A
associate-+l+N/A
+-commutativeN/A
sub-negN/A
+-lowering-+.f64N/A
cancel-sign-sub-invN/A
distribute-lft-neg-inN/A
distribute-rgt-neg-inN/A
neg-sub0N/A
associate-+l-N/A
neg-sub0N/A
distribute-rgt-inN/A
mul-1-negN/A
associate-*r*N/A
*-lft-identityN/A
Simplified84.0%
Final simplification82.3%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ x (* (- (+ y t) 2.0) b))))
(if (<= b -6.4e+100)
t_1
(if (<= b 1.02e+31) (+ x (fma z (- 1.0 y) a)) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (((y + t) - 2.0) * b);
double tmp;
if (b <= -6.4e+100) {
tmp = t_1;
} else if (b <= 1.02e+31) {
tmp = x + fma(z, (1.0 - y), a);
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b) t_1 = Float64(x + Float64(Float64(Float64(y + t) - 2.0) * b)) tmp = 0.0 if (b <= -6.4e+100) tmp = t_1; elseif (b <= 1.02e+31) tmp = Float64(x + fma(z, Float64(1.0 - y), a)); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x + N[(N[(N[(y + t), $MachinePrecision] - 2.0), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -6.4e+100], t$95$1, If[LessEqual[b, 1.02e+31], N[(x + N[(z * N[(1.0 - y), $MachinePrecision] + a), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \left(\left(y + t\right) - 2\right) \cdot b\\
\mathbf{if}\;b \leq -6.4 \cdot 10^{+100}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 1.02 \cdot 10^{+31}:\\
\;\;\;\;x + \mathsf{fma}\left(z, 1 - y, a\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -6.3999999999999998e100 or 1.02000000000000007e31 < b Initial program 90.5%
Taylor expanded in x around inf
Simplified79.8%
if -6.3999999999999998e100 < b < 1.02000000000000007e31Initial program 98.7%
Taylor expanded in b around 0
associate--r+N/A
sub-negN/A
+-commutativeN/A
associate-+r-N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
accelerator-lowering-fma.f64N/A
sub-negN/A
metadata-evalN/A
+-commutativeN/A
distribute-lft-inN/A
metadata-evalN/A
neg-mul-1N/A
sub-negN/A
--lowering--.f64N/A
sub-negN/A
+-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
accelerator-lowering-fma.f64N/A
Simplified84.9%
Taylor expanded in t around 0
+-commutativeN/A
associate-+l+N/A
sub-negN/A
+-commutativeN/A
neg-sub0N/A
associate-+l-N/A
neg-sub0N/A
distribute-rgt-neg-inN/A
remove-double-negN/A
mul-1-negN/A
distribute-neg-inN/A
+-commutativeN/A
+-lowering-+.f64N/A
+-commutativeN/A
distribute-neg-inN/A
mul-1-negN/A
remove-double-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
accelerator-lowering-fma.f64N/A
Simplified64.7%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* t (- b a))))
(if (<= t -1.25e+35)
t_1
(if (<= t 4.1e+86) (+ x (fma z (- 1.0 y) a)) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = t * (b - a);
double tmp;
if (t <= -1.25e+35) {
tmp = t_1;
} else if (t <= 4.1e+86) {
tmp = x + fma(z, (1.0 - y), a);
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b) t_1 = Float64(t * Float64(b - a)) tmp = 0.0 if (t <= -1.25e+35) tmp = t_1; elseif (t <= 4.1e+86) tmp = Float64(x + fma(z, Float64(1.0 - y), a)); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(t * N[(b - a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.25e+35], t$95$1, If[LessEqual[t, 4.1e+86], N[(x + N[(z * N[(1.0 - y), $MachinePrecision] + a), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(b - a\right)\\
\mathbf{if}\;t \leq -1.25 \cdot 10^{+35}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 4.1 \cdot 10^{+86}:\\
\;\;\;\;x + \mathsf{fma}\left(z, 1 - y, a\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -1.25000000000000005e35 or 4.0999999999999999e86 < t Initial program 92.3%
Taylor expanded in t around inf
*-lowering-*.f64N/A
--lowering--.f6474.8
Simplified74.8%
if -1.25000000000000005e35 < t < 4.0999999999999999e86Initial program 97.5%
Taylor expanded in b around 0
associate--r+N/A
sub-negN/A
+-commutativeN/A
associate-+r-N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
accelerator-lowering-fma.f64N/A
sub-negN/A
metadata-evalN/A
+-commutativeN/A
distribute-lft-inN/A
metadata-evalN/A
neg-mul-1N/A
sub-negN/A
--lowering--.f64N/A
sub-negN/A
+-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
accelerator-lowering-fma.f64N/A
Simplified68.6%
Taylor expanded in t around 0
+-commutativeN/A
associate-+l+N/A
sub-negN/A
+-commutativeN/A
neg-sub0N/A
associate-+l-N/A
neg-sub0N/A
distribute-rgt-neg-inN/A
remove-double-negN/A
mul-1-negN/A
distribute-neg-inN/A
+-commutativeN/A
+-lowering-+.f64N/A
+-commutativeN/A
distribute-neg-inN/A
mul-1-negN/A
remove-double-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
accelerator-lowering-fma.f64N/A
Simplified65.8%
(FPCore (x y z t a b) :precision binary64 (let* ((t_1 (* y (- b z)))) (if (<= y -7.2e+82) t_1 (if (<= y 1.15e+31) (fma a (- 1.0 t) x) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = y * (b - z);
double tmp;
if (y <= -7.2e+82) {
tmp = t_1;
} else if (y <= 1.15e+31) {
tmp = fma(a, (1.0 - t), x);
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b) t_1 = Float64(y * Float64(b - z)) tmp = 0.0 if (y <= -7.2e+82) tmp = t_1; elseif (y <= 1.15e+31) tmp = fma(a, Float64(1.0 - t), x); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(y * N[(b - z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -7.2e+82], t$95$1, If[LessEqual[y, 1.15e+31], N[(a * N[(1.0 - t), $MachinePrecision] + x), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(b - z\right)\\
\mathbf{if}\;y \leq -7.2 \cdot 10^{+82}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 1.15 \cdot 10^{+31}:\\
\;\;\;\;\mathsf{fma}\left(a, 1 - t, x\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -7.20000000000000028e82 or 1.15e31 < y Initial program 93.6%
Taylor expanded in y around inf
*-lowering-*.f64N/A
--lowering--.f6472.9
Simplified72.9%
if -7.20000000000000028e82 < y < 1.15e31Initial program 97.2%
Taylor expanded in b around 0
associate--r+N/A
sub-negN/A
+-commutativeN/A
associate-+r-N/A
distribute-rgt-neg-inN/A
mul-1-negN/A
accelerator-lowering-fma.f64N/A
sub-negN/A
metadata-evalN/A
+-commutativeN/A
distribute-lft-inN/A
metadata-evalN/A
neg-mul-1N/A
sub-negN/A
--lowering--.f64N/A
sub-negN/A
+-commutativeN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
accelerator-lowering-fma.f64N/A
Simplified69.0%
Taylor expanded in z around 0
+-commutativeN/A
sub-negN/A
+-commutativeN/A
neg-sub0N/A
associate-+l-N/A
neg-sub0N/A
mul-1-negN/A
accelerator-lowering-fma.f64N/A
mul-1-negN/A
neg-sub0N/A
associate-+l-N/A
neg-sub0N/A
+-commutativeN/A
sub-negN/A
--lowering--.f6451.0
Simplified51.0%
(FPCore (x y z t a b) :precision binary64 (let* ((t_1 (* t (- b a)))) (if (<= t -95.0) t_1 (if (<= t 5400000000000.0) (fma y b a) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = t * (b - a);
double tmp;
if (t <= -95.0) {
tmp = t_1;
} else if (t <= 5400000000000.0) {
tmp = fma(y, b, a);
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b) t_1 = Float64(t * Float64(b - a)) tmp = 0.0 if (t <= -95.0) tmp = t_1; elseif (t <= 5400000000000.0) tmp = fma(y, b, a); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(t * N[(b - a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -95.0], t$95$1, If[LessEqual[t, 5400000000000.0], N[(y * b + a), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(b - a\right)\\
\mathbf{if}\;t \leq -95:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 5400000000000:\\
\;\;\;\;\mathsf{fma}\left(y, b, a\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -95 or 5.4e12 < t Initial program 92.8%
Taylor expanded in t around inf
*-lowering-*.f64N/A
--lowering--.f6466.2
Simplified66.2%
if -95 < t < 5.4e12Initial program 97.9%
+-commutativeN/A
accelerator-lowering-fma.f64N/A
associate--l+N/A
+-lowering-+.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
associate--l-N/A
--lowering--.f64N/A
accelerator-lowering-fma.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-eval97.9
Applied egg-rr97.9%
Taylor expanded in y around inf
Simplified86.1%
Taylor expanded in a around inf
distribute-lft-out--N/A
*-rgt-identityN/A
--lowering--.f64N/A
*-lowering-*.f6438.7
Simplified38.7%
Taylor expanded in t around 0
+-commutativeN/A
*-commutativeN/A
accelerator-lowering-fma.f6438.3
Simplified38.3%
(FPCore (x y z t a b) :precision binary64 (if (<= y -1e+55) (fma y b a) (if (<= y 3.7e+110) (fma b t x) (* y (- z)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= -1e+55) {
tmp = fma(y, b, a);
} else if (y <= 3.7e+110) {
tmp = fma(b, t, x);
} else {
tmp = y * -z;
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if (y <= -1e+55) tmp = fma(y, b, a); elseif (y <= 3.7e+110) tmp = fma(b, t, x); else tmp = Float64(y * Float64(-z)); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[y, -1e+55], N[(y * b + a), $MachinePrecision], If[LessEqual[y, 3.7e+110], N[(b * t + x), $MachinePrecision], N[(y * (-z)), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1 \cdot 10^{+55}:\\
\;\;\;\;\mathsf{fma}\left(y, b, a\right)\\
\mathbf{elif}\;y \leq 3.7 \cdot 10^{+110}:\\
\;\;\;\;\mathsf{fma}\left(b, t, x\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(-z\right)\\
\end{array}
\end{array}
if y < -1.00000000000000001e55Initial program 89.9%
+-commutativeN/A
accelerator-lowering-fma.f64N/A
associate--l+N/A
+-lowering-+.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
associate--l-N/A
--lowering--.f64N/A
accelerator-lowering-fma.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-eval94.0
Applied egg-rr94.0%
Taylor expanded in y around inf
Simplified92.0%
Taylor expanded in a around inf
distribute-lft-out--N/A
*-rgt-identityN/A
--lowering--.f64N/A
*-lowering-*.f6459.1
Simplified59.1%
Taylor expanded in t around 0
+-commutativeN/A
*-commutativeN/A
accelerator-lowering-fma.f6451.2
Simplified51.2%
if -1.00000000000000001e55 < y < 3.70000000000000012e110Initial program 97.5%
Taylor expanded in x around inf
Simplified53.6%
Taylor expanded in y around 0
+-commutativeN/A
accelerator-lowering-fma.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-eval49.5
Simplified49.5%
Taylor expanded in t around inf
Simplified39.8%
if 3.70000000000000012e110 < y Initial program 95.7%
Taylor expanded in y around inf
*-lowering-*.f64N/A
--lowering--.f6474.4
Simplified74.4%
Taylor expanded in b around 0
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
mul-1-negN/A
neg-lowering-neg.f6453.5
Simplified53.5%
Final simplification44.5%
(FPCore (x y z t a b) :precision binary64 (if (<= y -2.9e+55) (fma y b a) (if (<= y 4.6e+177) (fma b t x) (fma y b a))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= -2.9e+55) {
tmp = fma(y, b, a);
} else if (y <= 4.6e+177) {
tmp = fma(b, t, x);
} else {
tmp = fma(y, b, a);
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if (y <= -2.9e+55) tmp = fma(y, b, a); elseif (y <= 4.6e+177) tmp = fma(b, t, x); else tmp = fma(y, b, a); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[y, -2.9e+55], N[(y * b + a), $MachinePrecision], If[LessEqual[y, 4.6e+177], N[(b * t + x), $MachinePrecision], N[(y * b + a), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.9 \cdot 10^{+55}:\\
\;\;\;\;\mathsf{fma}\left(y, b, a\right)\\
\mathbf{elif}\;y \leq 4.6 \cdot 10^{+177}:\\
\;\;\;\;\mathsf{fma}\left(b, t, x\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(y, b, a\right)\\
\end{array}
\end{array}
if y < -2.8999999999999999e55 or 4.5999999999999998e177 < y Initial program 93.0%
+-commutativeN/A
accelerator-lowering-fma.f64N/A
associate--l+N/A
+-lowering-+.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
associate--l-N/A
--lowering--.f64N/A
accelerator-lowering-fma.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-evalN/A
*-lowering-*.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-eval95.3
Applied egg-rr95.3%
Taylor expanded in y around inf
Simplified94.2%
Taylor expanded in a around inf
distribute-lft-out--N/A
*-rgt-identityN/A
--lowering--.f64N/A
*-lowering-*.f6457.7
Simplified57.7%
Taylor expanded in t around 0
+-commutativeN/A
*-commutativeN/A
accelerator-lowering-fma.f6449.7
Simplified49.7%
if -2.8999999999999999e55 < y < 4.5999999999999998e177Initial program 97.0%
Taylor expanded in x around inf
Simplified52.8%
Taylor expanded in y around 0
+-commutativeN/A
accelerator-lowering-fma.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-eval48.5
Simplified48.5%
Taylor expanded in t around inf
Simplified39.4%
(FPCore (x y z t a b) :precision binary64 (if (<= y -1.5e+160) (* y b) (if (<= y 9.5e+177) (fma b t x) (* y b))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= -1.5e+160) {
tmp = y * b;
} else if (y <= 9.5e+177) {
tmp = fma(b, t, x);
} else {
tmp = y * b;
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if (y <= -1.5e+160) tmp = Float64(y * b); elseif (y <= 9.5e+177) tmp = fma(b, t, x); else tmp = Float64(y * b); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[y, -1.5e+160], N[(y * b), $MachinePrecision], If[LessEqual[y, 9.5e+177], N[(b * t + x), $MachinePrecision], N[(y * b), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.5 \cdot 10^{+160}:\\
\;\;\;\;y \cdot b\\
\mathbf{elif}\;y \leq 9.5 \cdot 10^{+177}:\\
\;\;\;\;\mathsf{fma}\left(b, t, x\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot b\\
\end{array}
\end{array}
if y < -1.4999999999999999e160 or 9.49999999999999996e177 < y Initial program 90.7%
Taylor expanded in y around inf
*-lowering-*.f64N/A
--lowering--.f6482.5
Simplified82.5%
Taylor expanded in b around inf
*-commutativeN/A
*-lowering-*.f6452.2
Simplified52.2%
if -1.4999999999999999e160 < y < 9.49999999999999996e177Initial program 97.3%
Taylor expanded in x around inf
Simplified51.5%
Taylor expanded in y around 0
+-commutativeN/A
accelerator-lowering-fma.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-eval46.6
Simplified46.6%
Taylor expanded in t around inf
Simplified38.5%
(FPCore (x y z t a b) :precision binary64 (if (<= y -2.3e+57) (* y b) (if (<= y 1.05e+16) (fma b -2.0 x) (* y b))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= -2.3e+57) {
tmp = y * b;
} else if (y <= 1.05e+16) {
tmp = fma(b, -2.0, x);
} else {
tmp = y * b;
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if (y <= -2.3e+57) tmp = Float64(y * b); elseif (y <= 1.05e+16) tmp = fma(b, -2.0, x); else tmp = Float64(y * b); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[y, -2.3e+57], N[(y * b), $MachinePrecision], If[LessEqual[y, 1.05e+16], N[(b * -2.0 + x), $MachinePrecision], N[(y * b), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.3 \cdot 10^{+57}:\\
\;\;\;\;y \cdot b\\
\mathbf{elif}\;y \leq 1.05 \cdot 10^{+16}:\\
\;\;\;\;\mathsf{fma}\left(b, -2, x\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot b\\
\end{array}
\end{array}
if y < -2.2999999999999999e57 or 1.05e16 < y Initial program 93.9%
Taylor expanded in y around inf
*-lowering-*.f64N/A
--lowering--.f6471.3
Simplified71.3%
Taylor expanded in b around inf
*-commutativeN/A
*-lowering-*.f6440.4
Simplified40.4%
if -2.2999999999999999e57 < y < 1.05e16Initial program 97.1%
Taylor expanded in x around inf
Simplified52.6%
Taylor expanded in y around 0
+-commutativeN/A
accelerator-lowering-fma.f64N/A
sub-negN/A
+-lowering-+.f64N/A
metadata-eval51.5
Simplified51.5%
Taylor expanded in t around 0
+-commutativeN/A
*-commutativeN/A
accelerator-lowering-fma.f6433.7
Simplified33.7%
(FPCore (x y z t a b) :precision binary64 (if (<= t -6.3e+31) (* t b) (if (<= t 6.2e+86) x (* t b))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (t <= -6.3e+31) {
tmp = t * b;
} else if (t <= 6.2e+86) {
tmp = x;
} else {
tmp = t * b;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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), intent (in) :: b
real(8) :: tmp
if (t <= (-6.3d+31)) then
tmp = t * b
else if (t <= 6.2d+86) then
tmp = x
else
tmp = t * b
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (t <= -6.3e+31) {
tmp = t * b;
} else if (t <= 6.2e+86) {
tmp = x;
} else {
tmp = t * b;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if t <= -6.3e+31: tmp = t * b elif t <= 6.2e+86: tmp = x else: tmp = t * b return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (t <= -6.3e+31) tmp = Float64(t * b); elseif (t <= 6.2e+86) tmp = x; else tmp = Float64(t * b); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (t <= -6.3e+31) tmp = t * b; elseif (t <= 6.2e+86) tmp = x; else tmp = t * b; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[t, -6.3e+31], N[(t * b), $MachinePrecision], If[LessEqual[t, 6.2e+86], x, N[(t * b), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -6.3 \cdot 10^{+31}:\\
\;\;\;\;t \cdot b\\
\mathbf{elif}\;t \leq 6.2 \cdot 10^{+86}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;t \cdot b\\
\end{array}
\end{array}
if t < -6.2999999999999998e31 or 6.2000000000000004e86 < t Initial program 92.3%
Taylor expanded in x around inf
Simplified50.8%
Taylor expanded in t around inf
*-commutativeN/A
*-lowering-*.f6440.9
Simplified40.9%
if -6.2999999999999998e31 < t < 6.2000000000000004e86Initial program 97.5%
Taylor expanded in x around inf
Simplified22.1%
(FPCore (x y z t a b) :precision binary64 (if (<= z -7.3e+118) z (if (<= z 6.7e+127) x z)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -7.3e+118) {
tmp = z;
} else if (z <= 6.7e+127) {
tmp = x;
} else {
tmp = z;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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), intent (in) :: b
real(8) :: tmp
if (z <= (-7.3d+118)) then
tmp = z
else if (z <= 6.7d+127) then
tmp = x
else
tmp = z
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -7.3e+118) {
tmp = z;
} else if (z <= 6.7e+127) {
tmp = x;
} else {
tmp = z;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if z <= -7.3e+118: tmp = z elif z <= 6.7e+127: tmp = x else: tmp = z return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -7.3e+118) tmp = z; elseif (z <= 6.7e+127) tmp = x; else tmp = z; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (z <= -7.3e+118) tmp = z; elseif (z <= 6.7e+127) tmp = x; else tmp = z; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -7.3e+118], z, If[LessEqual[z, 6.7e+127], x, z]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -7.3 \cdot 10^{+118}:\\
\;\;\;\;z\\
\mathbf{elif}\;z \leq 6.7 \cdot 10^{+127}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;z\\
\end{array}
\end{array}
if z < -7.3000000000000003e118 or 6.6999999999999995e127 < z Initial program 91.9%
Taylor expanded in z around inf
sub-negN/A
neg-mul-1N/A
distribute-rgt-inN/A
associate-*r*N/A
*-lft-identityN/A
mul-1-negN/A
unsub-negN/A
--lowering--.f64N/A
*-lowering-*.f6460.6
Simplified60.6%
Taylor expanded in y around 0
Simplified29.2%
if -7.3000000000000003e118 < z < 6.6999999999999995e127Initial program 97.6%
Taylor expanded in x around inf
Simplified22.8%
(FPCore (x y z t a b) :precision binary64 (if (<= x -3.3e+171) x (if (<= x 3.65e-19) a x)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (x <= -3.3e+171) {
tmp = x;
} else if (x <= 3.65e-19) {
tmp = a;
} else {
tmp = x;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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), intent (in) :: b
real(8) :: tmp
if (x <= (-3.3d+171)) then
tmp = x
else if (x <= 3.65d-19) then
tmp = a
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (x <= -3.3e+171) {
tmp = x;
} else if (x <= 3.65e-19) {
tmp = a;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if x <= -3.3e+171: tmp = x elif x <= 3.65e-19: tmp = a else: tmp = x return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (x <= -3.3e+171) tmp = x; elseif (x <= 3.65e-19) tmp = a; else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (x <= -3.3e+171) tmp = x; elseif (x <= 3.65e-19) tmp = a; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[x, -3.3e+171], x, If[LessEqual[x, 3.65e-19], a, x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -3.3 \cdot 10^{+171}:\\
\;\;\;\;x\\
\mathbf{elif}\;x \leq 3.65 \cdot 10^{-19}:\\
\;\;\;\;a\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if x < -3.29999999999999991e171 or 3.6499999999999998e-19 < x Initial program 95.0%
Taylor expanded in x around inf
Simplified40.6%
if -3.29999999999999991e171 < x < 3.6499999999999998e-19Initial program 96.1%
Taylor expanded in a around inf
sub-negN/A
neg-mul-1N/A
distribute-rgt-inN/A
*-lft-identityN/A
neg-mul-1N/A
distribute-lft-neg-inN/A
*-commutativeN/A
unsub-negN/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f6426.2
Simplified26.2%
Taylor expanded in t around 0
Simplified10.3%
(FPCore (x y z t a b) :precision binary64 a)
double code(double x, double y, double z, double t, double a, double b) {
return a;
}
real(8) function code(x, y, z, t, a, b)
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), intent (in) :: b
code = a
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return a;
}
def code(x, y, z, t, a, b): return a
function code(x, y, z, t, a, b) return a end
function tmp = code(x, y, z, t, a, b) tmp = a; end
code[x_, y_, z_, t_, a_, b_] := a
\begin{array}{l}
\\
a
\end{array}
Initial program 95.7%
Taylor expanded in a around inf
sub-negN/A
neg-mul-1N/A
distribute-rgt-inN/A
*-lft-identityN/A
neg-mul-1N/A
distribute-lft-neg-inN/A
*-commutativeN/A
unsub-negN/A
--lowering--.f64N/A
*-commutativeN/A
*-lowering-*.f6423.5
Simplified23.5%
Taylor expanded in t around 0
Simplified8.7%
herbie shell --seed 2024198
(FPCore (x y z t a b)
:name "Statistics.Distribution.Beta:$centropy from math-functions-0.1.5.2"
:precision binary64
(+ (- (- x (* (- y 1.0) z)) (* (- t 1.0) a)) (* (- (+ y t) 2.0) b)))