
(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 19 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
(+ (- (- x (* (- y 1.0) z)) (* (- t 1.0) a)) (* (- (+ y t) 2.0) b))))
(if (<= t_1 INFINITY) t_1 (* (- (+ t y) 2.0) b))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = ((x - ((y - 1.0) * z)) - ((t - 1.0) * a)) + (((y + t) - 2.0) * b);
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = ((t + y) - 2.0) * b;
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = ((x - ((y - 1.0) * z)) - ((t - 1.0) * a)) + (((y + t) - 2.0) * b);
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = ((t + y) - 2.0) * b;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = ((x - ((y - 1.0) * z)) - ((t - 1.0) * a)) + (((y + t) - 2.0) * b) tmp = 0 if t_1 <= math.inf: tmp = t_1 else: tmp = ((t + y) - 2.0) * b return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(Float64(x - Float64(Float64(y - 1.0) * z)) - Float64(Float64(t - 1.0) * a)) + Float64(Float64(Float64(y + t) - 2.0) * b)) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(Float64(Float64(t + y) - 2.0) * b); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = ((x - ((y - 1.0) * z)) - ((t - 1.0) * a)) + (((y + t) - 2.0) * b); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = ((t + y) - 2.0) * b; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = 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]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(N[(N[(t + y), $MachinePrecision] - 2.0), $MachinePrecision] * b), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \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\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\left(\left(t + y\right) - 2\right) \cdot b\\
\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%
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 y around 0
sub-negN/A
+-commutativeN/A
+-commutativeN/A
distribute-neg-inN/A
mul-1-negN/A
remove-double-negN/A
associate-+l+N/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
sub-negN/A
metadata-evalN/A
distribute-lft-inN/A
metadata-evalN/A
+-commutativeN/A
neg-mul-1N/A
sub-negN/A
lower--.f64N/A
lower-+.f64N/A
Applied rewrites67.2%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
lower--.f64N/A
lower-+.f6475.4
Applied rewrites75.4%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* (- b z) y)))
(if (<= y -3.45e+124)
t_1
(if (<= y -2.1e+30)
(- x (fma a (- t 1.0) (* z (- y 1.0))))
(if (<= y 2.95e+99) (fma (- 1.0 t) a (+ z (fma (- t 2.0) b x))) t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (b - z) * y;
double tmp;
if (y <= -3.45e+124) {
tmp = t_1;
} else if (y <= -2.1e+30) {
tmp = x - fma(a, (t - 1.0), (z * (y - 1.0)));
} else if (y <= 2.95e+99) {
tmp = fma((1.0 - t), a, (z + fma((t - 2.0), b, x)));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b) t_1 = Float64(Float64(b - z) * y) tmp = 0.0 if (y <= -3.45e+124) tmp = t_1; elseif (y <= -2.1e+30) tmp = Float64(x - fma(a, Float64(t - 1.0), Float64(z * Float64(y - 1.0)))); elseif (y <= 2.95e+99) tmp = fma(Float64(1.0 - t), a, Float64(z + fma(Float64(t - 2.0), b, x))); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(b - z), $MachinePrecision] * y), $MachinePrecision]}, If[LessEqual[y, -3.45e+124], t$95$1, If[LessEqual[y, -2.1e+30], N[(x - N[(a * N[(t - 1.0), $MachinePrecision] + N[(z * N[(y - 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.95e+99], N[(N[(1.0 - t), $MachinePrecision] * a + N[(z + N[(N[(t - 2.0), $MachinePrecision] * b + x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(b - z\right) \cdot y\\
\mathbf{if}\;y \leq -3.45 \cdot 10^{+124}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -2.1 \cdot 10^{+30}:\\
\;\;\;\;x - \mathsf{fma}\left(a, t - 1, z \cdot \left(y - 1\right)\right)\\
\mathbf{elif}\;y \leq 2.95 \cdot 10^{+99}:\\
\;\;\;\;\mathsf{fma}\left(1 - t, a, z + \mathsf{fma}\left(t - 2, b, x\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -3.45e124 or 2.9499999999999999e99 < y Initial program 90.8%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
lower--.f6475.5
Applied rewrites75.5%
if -3.45e124 < y < -2.1e30Initial program 100.0%
Taylor expanded in y around 0
sub-negN/A
+-commutativeN/A
+-commutativeN/A
distribute-neg-inN/A
mul-1-negN/A
remove-double-negN/A
associate-+l+N/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
sub-negN/A
metadata-evalN/A
distribute-lft-inN/A
metadata-evalN/A
+-commutativeN/A
neg-mul-1N/A
sub-negN/A
lower--.f64N/A
lower-+.f64N/A
Applied rewrites70.8%
Taylor expanded in b around 0
lower--.f64N/A
lower-fma.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower--.f6491.4
Applied rewrites91.4%
if -2.1e30 < y < 2.9499999999999999e99Initial program 96.8%
Taylor expanded in y around 0
sub-negN/A
+-commutativeN/A
+-commutativeN/A
distribute-neg-inN/A
mul-1-negN/A
remove-double-negN/A
associate-+l+N/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
sub-negN/A
metadata-evalN/A
distribute-lft-inN/A
metadata-evalN/A
+-commutativeN/A
neg-mul-1N/A
sub-negN/A
lower--.f64N/A
lower-+.f64N/A
Applied rewrites96.8%
(FPCore (x y z t a b) :precision binary64 (if (or (<= t -7800000.0) (not (<= t 4.3e+42))) (fma (- 1.0 t) a (+ z (fma (- t 2.0) b x))) (fma (- 1.0 y) z (+ a (fma (- y 2.0) b x)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -7800000.0) || !(t <= 4.3e+42)) {
tmp = fma((1.0 - t), a, (z + fma((t - 2.0), b, x)));
} else {
tmp = fma((1.0 - y), z, (a + fma((y - 2.0), b, x)));
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if ((t <= -7800000.0) || !(t <= 4.3e+42)) tmp = fma(Float64(1.0 - t), a, Float64(z + fma(Float64(t - 2.0), b, x))); else tmp = fma(Float64(1.0 - y), z, Float64(a + fma(Float64(y - 2.0), b, x))); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[t, -7800000.0], N[Not[LessEqual[t, 4.3e+42]], $MachinePrecision]], N[(N[(1.0 - t), $MachinePrecision] * a + N[(z + N[(N[(t - 2.0), $MachinePrecision] * b + x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(1.0 - y), $MachinePrecision] * z + N[(a + N[(N[(y - 2.0), $MachinePrecision] * b + x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -7800000 \lor \neg \left(t \leq 4.3 \cdot 10^{+42}\right):\\
\;\;\;\;\mathsf{fma}\left(1 - t, a, z + \mathsf{fma}\left(t - 2, b, x\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(1 - y, z, a + \mathsf{fma}\left(y - 2, b, x\right)\right)\\
\end{array}
\end{array}
if t < -7.8e6 or 4.2999999999999998e42 < t Initial program 92.8%
Taylor expanded in y around 0
sub-negN/A
+-commutativeN/A
+-commutativeN/A
distribute-neg-inN/A
mul-1-negN/A
remove-double-negN/A
associate-+l+N/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
sub-negN/A
metadata-evalN/A
distribute-lft-inN/A
metadata-evalN/A
+-commutativeN/A
neg-mul-1N/A
sub-negN/A
lower--.f64N/A
lower-+.f64N/A
Applied rewrites88.8%
if -7.8e6 < t < 4.2999999999999998e42Initial program 97.7%
Taylor expanded in t around 0
sub-negN/A
+-commutativeN/A
+-commutativeN/A
distribute-neg-inN/A
mul-1-negN/A
remove-double-negN/A
associate-+l+N/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
sub-negN/A
metadata-evalN/A
distribute-lft-inN/A
metadata-evalN/A
+-commutativeN/A
neg-mul-1N/A
sub-negN/A
lower--.f64N/A
lower-+.f64N/A
Applied rewrites98.4%
Final simplification93.7%
(FPCore (x y z t a b) :precision binary64 (if (or (<= b -1.8e+85) (not (<= b 4.4e+109))) (* (- (+ t y) 2.0) b) (- x (fma a (- t 1.0) (* z (- y 1.0))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((b <= -1.8e+85) || !(b <= 4.4e+109)) {
tmp = ((t + y) - 2.0) * b;
} else {
tmp = x - fma(a, (t - 1.0), (z * (y - 1.0)));
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if ((b <= -1.8e+85) || !(b <= 4.4e+109)) tmp = Float64(Float64(Float64(t + y) - 2.0) * b); else tmp = Float64(x - fma(a, Float64(t - 1.0), Float64(z * Float64(y - 1.0)))); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[b, -1.8e+85], N[Not[LessEqual[b, 4.4e+109]], $MachinePrecision]], N[(N[(N[(t + y), $MachinePrecision] - 2.0), $MachinePrecision] * b), $MachinePrecision], N[(x - N[(a * N[(t - 1.0), $MachinePrecision] + N[(z * N[(y - 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.8 \cdot 10^{+85} \lor \neg \left(b \leq 4.4 \cdot 10^{+109}\right):\\
\;\;\;\;\left(\left(t + y\right) - 2\right) \cdot b\\
\mathbf{else}:\\
\;\;\;\;x - \mathsf{fma}\left(a, t - 1, z \cdot \left(y - 1\right)\right)\\
\end{array}
\end{array}
if b < -1.7999999999999999e85 or 4.3999999999999998e109 < b Initial program 87.8%
Taylor expanded in y around 0
sub-negN/A
+-commutativeN/A
+-commutativeN/A
distribute-neg-inN/A
mul-1-negN/A
remove-double-negN/A
associate-+l+N/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
sub-negN/A
metadata-evalN/A
distribute-lft-inN/A
metadata-evalN/A
+-commutativeN/A
neg-mul-1N/A
sub-negN/A
lower--.f64N/A
lower-+.f64N/A
Applied rewrites69.3%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
lower--.f64N/A
lower-+.f6479.1
Applied rewrites79.1%
if -1.7999999999999999e85 < b < 4.3999999999999998e109Initial program 98.8%
Taylor expanded in y around 0
sub-negN/A
+-commutativeN/A
+-commutativeN/A
distribute-neg-inN/A
mul-1-negN/A
remove-double-negN/A
associate-+l+N/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
sub-negN/A
metadata-evalN/A
distribute-lft-inN/A
metadata-evalN/A
+-commutativeN/A
neg-mul-1N/A
sub-negN/A
lower--.f64N/A
lower-+.f64N/A
Applied rewrites78.5%
Taylor expanded in b around 0
lower--.f64N/A
lower-fma.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower--.f6488.7
Applied rewrites88.7%
Final simplification85.6%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -1.15e+146) (not (<= y 2.95e+99))) (* (- b z) y) (fma (- 1.0 t) a (fma (- t 2.0) b x))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -1.15e+146) || !(y <= 2.95e+99)) {
tmp = (b - z) * y;
} else {
tmp = fma((1.0 - t), a, fma((t - 2.0), b, x));
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if ((y <= -1.15e+146) || !(y <= 2.95e+99)) tmp = Float64(Float64(b - z) * y); else tmp = fma(Float64(1.0 - t), a, fma(Float64(t - 2.0), b, x)); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -1.15e+146], N[Not[LessEqual[y, 2.95e+99]], $MachinePrecision]], N[(N[(b - z), $MachinePrecision] * y), $MachinePrecision], N[(N[(1.0 - t), $MachinePrecision] * a + N[(N[(t - 2.0), $MachinePrecision] * b + x), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.15 \cdot 10^{+146} \lor \neg \left(y \leq 2.95 \cdot 10^{+99}\right):\\
\;\;\;\;\left(b - z\right) \cdot y\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(1 - t, a, \mathsf{fma}\left(t - 2, b, x\right)\right)\\
\end{array}
\end{array}
if y < -1.15e146 or 2.9499999999999999e99 < y Initial program 91.5%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
lower--.f6476.5
Applied rewrites76.5%
if -1.15e146 < y < 2.9499999999999999e99Initial program 96.7%
Taylor expanded in y around 0
sub-negN/A
+-commutativeN/A
+-commutativeN/A
distribute-neg-inN/A
mul-1-negN/A
remove-double-negN/A
associate-+l+N/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
sub-negN/A
metadata-evalN/A
distribute-lft-inN/A
metadata-evalN/A
+-commutativeN/A
neg-mul-1N/A
sub-negN/A
lower--.f64N/A
lower-+.f64N/A
Applied rewrites92.8%
Taylor expanded in z around 0
Applied rewrites78.5%
Final simplification77.9%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* (- b a) t)))
(if (<= t -2.9e+203)
t_1
(if (<= t -145.0)
(fma (- t) a (+ z x))
(if (<= t 1.75e+47) (+ (fma (- 1.0 y) z a) x) t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (b - a) * t;
double tmp;
if (t <= -2.9e+203) {
tmp = t_1;
} else if (t <= -145.0) {
tmp = fma(-t, a, (z + x));
} else if (t <= 1.75e+47) {
tmp = fma((1.0 - y), z, a) + x;
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b) t_1 = Float64(Float64(b - a) * t) tmp = 0.0 if (t <= -2.9e+203) tmp = t_1; elseif (t <= -145.0) tmp = fma(Float64(-t), a, Float64(z + x)); elseif (t <= 1.75e+47) tmp = Float64(fma(Float64(1.0 - y), z, a) + x); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(b - a), $MachinePrecision] * t), $MachinePrecision]}, If[LessEqual[t, -2.9e+203], t$95$1, If[LessEqual[t, -145.0], N[((-t) * a + N[(z + x), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.75e+47], N[(N[(N[(1.0 - y), $MachinePrecision] * z + a), $MachinePrecision] + x), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(b - a\right) \cdot t\\
\mathbf{if}\;t \leq -2.9 \cdot 10^{+203}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -145:\\
\;\;\;\;\mathsf{fma}\left(-t, a, z + x\right)\\
\mathbf{elif}\;t \leq 1.75 \cdot 10^{+47}:\\
\;\;\;\;\mathsf{fma}\left(1 - y, z, a\right) + x\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -2.90000000000000011e203 or 1.75000000000000008e47 < t Initial program 92.0%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
lower--.f6484.8
Applied rewrites84.8%
if -2.90000000000000011e203 < t < -145Initial program 92.6%
Taylor expanded in y around 0
sub-negN/A
+-commutativeN/A
+-commutativeN/A
distribute-neg-inN/A
mul-1-negN/A
remove-double-negN/A
associate-+l+N/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
sub-negN/A
metadata-evalN/A
distribute-lft-inN/A
metadata-evalN/A
+-commutativeN/A
neg-mul-1N/A
sub-negN/A
lower--.f64N/A
lower-+.f64N/A
Applied rewrites80.7%
Taylor expanded in b around 0
Applied rewrites71.6%
Taylor expanded in t around inf
Applied rewrites68.9%
if -145 < t < 1.75000000000000008e47Initial program 98.4%
Taylor expanded in y around 0
sub-negN/A
+-commutativeN/A
+-commutativeN/A
distribute-neg-inN/A
mul-1-negN/A
remove-double-negN/A
associate-+l+N/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
sub-negN/A
metadata-evalN/A
distribute-lft-inN/A
metadata-evalN/A
+-commutativeN/A
neg-mul-1N/A
sub-negN/A
lower--.f64N/A
lower-+.f64N/A
Applied rewrites62.6%
Taylor expanded in b around 0
lower--.f64N/A
lower-fma.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower--.f6471.0
Applied rewrites71.0%
Taylor expanded in t around 0
Applied rewrites70.9%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* (- b a) t)))
(if (<= t -145.0)
t_1
(if (<= t -5.2e-215)
(- x (* y z))
(if (<= t 4.3e+42) (* (- b z) y) t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (b - a) * t;
double tmp;
if (t <= -145.0) {
tmp = t_1;
} else if (t <= -5.2e-215) {
tmp = x - (y * z);
} else if (t <= 4.3e+42) {
tmp = (b - z) * y;
} else {
tmp = t_1;
}
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) :: t_1
real(8) :: tmp
t_1 = (b - a) * t
if (t <= (-145.0d0)) then
tmp = t_1
else if (t <= (-5.2d-215)) then
tmp = x - (y * z)
else if (t <= 4.3d+42) then
tmp = (b - z) * 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 b) {
double t_1 = (b - a) * t;
double tmp;
if (t <= -145.0) {
tmp = t_1;
} else if (t <= -5.2e-215) {
tmp = x - (y * z);
} else if (t <= 4.3e+42) {
tmp = (b - z) * y;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (b - a) * t tmp = 0 if t <= -145.0: tmp = t_1 elif t <= -5.2e-215: tmp = x - (y * z) elif t <= 4.3e+42: tmp = (b - z) * y else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(b - a) * t) tmp = 0.0 if (t <= -145.0) tmp = t_1; elseif (t <= -5.2e-215) tmp = Float64(x - Float64(y * z)); elseif (t <= 4.3e+42) tmp = Float64(Float64(b - z) * y); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (b - a) * t; tmp = 0.0; if (t <= -145.0) tmp = t_1; elseif (t <= -5.2e-215) tmp = x - (y * z); elseif (t <= 4.3e+42) tmp = (b - z) * y; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(b - a), $MachinePrecision] * t), $MachinePrecision]}, If[LessEqual[t, -145.0], t$95$1, If[LessEqual[t, -5.2e-215], N[(x - N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 4.3e+42], N[(N[(b - z), $MachinePrecision] * y), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(b - a\right) \cdot t\\
\mathbf{if}\;t \leq -145:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -5.2 \cdot 10^{-215}:\\
\;\;\;\;x - y \cdot z\\
\mathbf{elif}\;t \leq 4.3 \cdot 10^{+42}:\\
\;\;\;\;\left(b - z\right) \cdot y\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -145 or 4.2999999999999998e42 < t Initial program 92.2%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
lower--.f6472.6
Applied rewrites72.6%
if -145 < t < -5.2e-215Initial program 98.1%
Taylor expanded in y around 0
sub-negN/A
+-commutativeN/A
+-commutativeN/A
distribute-neg-inN/A
mul-1-negN/A
remove-double-negN/A
associate-+l+N/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
sub-negN/A
metadata-evalN/A
distribute-lft-inN/A
metadata-evalN/A
+-commutativeN/A
neg-mul-1N/A
sub-negN/A
lower--.f64N/A
lower-+.f64N/A
Applied rewrites65.1%
Taylor expanded in b around 0
lower--.f64N/A
lower-fma.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower--.f6477.7
Applied rewrites77.7%
Taylor expanded in y around inf
Applied rewrites48.6%
if -5.2e-215 < t < 4.2999999999999998e42Initial program 98.6%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
lower--.f6441.8
Applied rewrites41.8%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* (- b a) t)))
(if (<= t -26500000000.0)
t_1
(if (<= t -1.75e-242) (* (- 1.0 y) z) (if (<= t 1.35e+41) (* b y) t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (b - a) * t;
double tmp;
if (t <= -26500000000.0) {
tmp = t_1;
} else if (t <= -1.75e-242) {
tmp = (1.0 - y) * z;
} else if (t <= 1.35e+41) {
tmp = b * y;
} else {
tmp = t_1;
}
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) :: t_1
real(8) :: tmp
t_1 = (b - a) * t
if (t <= (-26500000000.0d0)) then
tmp = t_1
else if (t <= (-1.75d-242)) then
tmp = (1.0d0 - y) * z
else if (t <= 1.35d+41) then
tmp = b * 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 b) {
double t_1 = (b - a) * t;
double tmp;
if (t <= -26500000000.0) {
tmp = t_1;
} else if (t <= -1.75e-242) {
tmp = (1.0 - y) * z;
} else if (t <= 1.35e+41) {
tmp = b * y;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (b - a) * t tmp = 0 if t <= -26500000000.0: tmp = t_1 elif t <= -1.75e-242: tmp = (1.0 - y) * z elif t <= 1.35e+41: tmp = b * y else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(b - a) * t) tmp = 0.0 if (t <= -26500000000.0) tmp = t_1; elseif (t <= -1.75e-242) tmp = Float64(Float64(1.0 - y) * z); elseif (t <= 1.35e+41) tmp = Float64(b * y); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (b - a) * t; tmp = 0.0; if (t <= -26500000000.0) tmp = t_1; elseif (t <= -1.75e-242) tmp = (1.0 - y) * z; elseif (t <= 1.35e+41) tmp = b * y; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(b - a), $MachinePrecision] * t), $MachinePrecision]}, If[LessEqual[t, -26500000000.0], t$95$1, If[LessEqual[t, -1.75e-242], N[(N[(1.0 - y), $MachinePrecision] * z), $MachinePrecision], If[LessEqual[t, 1.35e+41], N[(b * y), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(b - a\right) \cdot t\\
\mathbf{if}\;t \leq -26500000000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -1.75 \cdot 10^{-242}:\\
\;\;\;\;\left(1 - y\right) \cdot z\\
\mathbf{elif}\;t \leq 1.35 \cdot 10^{+41}:\\
\;\;\;\;b \cdot y\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -2.65e10 or 1.35e41 < t Initial program 92.8%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
lower--.f6474.2
Applied rewrites74.2%
if -2.65e10 < t < -1.7499999999999999e-242Initial program 96.9%
Taylor expanded in z around inf
*-commutativeN/A
sub-negN/A
neg-mul-1N/A
+-commutativeN/A
metadata-evalN/A
distribute-lft-inN/A
metadata-evalN/A
sub-negN/A
lower-*.f64N/A
sub-negN/A
metadata-evalN/A
distribute-lft-inN/A
metadata-evalN/A
+-commutativeN/A
neg-mul-1N/A
sub-negN/A
lower--.f6440.9
Applied rewrites40.9%
if -1.7499999999999999e-242 < t < 1.35e41Initial program 98.5%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
lower--.f6441.3
Applied rewrites41.3%
Taylor expanded in z around 0
Applied rewrites30.7%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* (- t 2.0) b)))
(if (<= b -5.6e+142)
t_1
(if (<= b -8.5e+30) (* b y) (if (<= b 1.2e+111) (* (- 1.0 t) a) t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (t - 2.0) * b;
double tmp;
if (b <= -5.6e+142) {
tmp = t_1;
} else if (b <= -8.5e+30) {
tmp = b * y;
} else if (b <= 1.2e+111) {
tmp = (1.0 - t) * a;
} else {
tmp = t_1;
}
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) :: t_1
real(8) :: tmp
t_1 = (t - 2.0d0) * b
if (b <= (-5.6d+142)) then
tmp = t_1
else if (b <= (-8.5d+30)) then
tmp = b * y
else if (b <= 1.2d+111) then
tmp = (1.0d0 - t) * 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 b) {
double t_1 = (t - 2.0) * b;
double tmp;
if (b <= -5.6e+142) {
tmp = t_1;
} else if (b <= -8.5e+30) {
tmp = b * y;
} else if (b <= 1.2e+111) {
tmp = (1.0 - t) * a;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (t - 2.0) * b tmp = 0 if b <= -5.6e+142: tmp = t_1 elif b <= -8.5e+30: tmp = b * y elif b <= 1.2e+111: tmp = (1.0 - t) * a else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(t - 2.0) * b) tmp = 0.0 if (b <= -5.6e+142) tmp = t_1; elseif (b <= -8.5e+30) tmp = Float64(b * y); elseif (b <= 1.2e+111) tmp = Float64(Float64(1.0 - t) * a); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (t - 2.0) * b; tmp = 0.0; if (b <= -5.6e+142) tmp = t_1; elseif (b <= -8.5e+30) tmp = b * y; elseif (b <= 1.2e+111) tmp = (1.0 - t) * a; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(t - 2.0), $MachinePrecision] * b), $MachinePrecision]}, If[LessEqual[b, -5.6e+142], t$95$1, If[LessEqual[b, -8.5e+30], N[(b * y), $MachinePrecision], If[LessEqual[b, 1.2e+111], N[(N[(1.0 - t), $MachinePrecision] * a), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(t - 2\right) \cdot b\\
\mathbf{if}\;b \leq -5.6 \cdot 10^{+142}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -8.5 \cdot 10^{+30}:\\
\;\;\;\;b \cdot y\\
\mathbf{elif}\;b \leq 1.2 \cdot 10^{+111}:\\
\;\;\;\;\left(1 - t\right) \cdot a\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -5.6e142 or 1.20000000000000003e111 < b Initial program 86.5%
Taylor expanded in y around 0
sub-negN/A
+-commutativeN/A
+-commutativeN/A
distribute-neg-inN/A
mul-1-negN/A
remove-double-negN/A
associate-+l+N/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
sub-negN/A
metadata-evalN/A
distribute-lft-inN/A
metadata-evalN/A
+-commutativeN/A
neg-mul-1N/A
sub-negN/A
lower--.f64N/A
lower-+.f64N/A
Applied rewrites71.3%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
lower--.f64N/A
lower-+.f6479.5
Applied rewrites79.5%
Taylor expanded in y around 0
Applied rewrites53.7%
if -5.6e142 < b < -8.4999999999999995e30Initial program 100.0%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
lower--.f6459.3
Applied rewrites59.3%
Taylor expanded in z around 0
Applied rewrites49.4%
if -8.4999999999999995e30 < b < 1.20000000000000003e111Initial program 98.8%
Taylor expanded in a around inf
*-commutativeN/A
sub-negN/A
neg-mul-1N/A
+-commutativeN/A
metadata-evalN/A
distribute-lft-inN/A
metadata-evalN/A
sub-negN/A
lower-*.f64N/A
sub-negN/A
metadata-evalN/A
distribute-lft-inN/A
metadata-evalN/A
+-commutativeN/A
neg-mul-1N/A
sub-negN/A
lower--.f6446.2
Applied rewrites46.2%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* (- t 2.0) b)))
(if (<= b -5.6e+142)
t_1
(if (<= b -9.4e+26) (* b y) (if (<= b 2.6e+110) (* (- a) t) t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (t - 2.0) * b;
double tmp;
if (b <= -5.6e+142) {
tmp = t_1;
} else if (b <= -9.4e+26) {
tmp = b * y;
} else if (b <= 2.6e+110) {
tmp = -a * t;
} else {
tmp = t_1;
}
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) :: t_1
real(8) :: tmp
t_1 = (t - 2.0d0) * b
if (b <= (-5.6d+142)) then
tmp = t_1
else if (b <= (-9.4d+26)) then
tmp = b * y
else if (b <= 2.6d+110) then
tmp = -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 b) {
double t_1 = (t - 2.0) * b;
double tmp;
if (b <= -5.6e+142) {
tmp = t_1;
} else if (b <= -9.4e+26) {
tmp = b * y;
} else if (b <= 2.6e+110) {
tmp = -a * t;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (t - 2.0) * b tmp = 0 if b <= -5.6e+142: tmp = t_1 elif b <= -9.4e+26: tmp = b * y elif b <= 2.6e+110: tmp = -a * t else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(t - 2.0) * b) tmp = 0.0 if (b <= -5.6e+142) tmp = t_1; elseif (b <= -9.4e+26) tmp = Float64(b * y); elseif (b <= 2.6e+110) tmp = Float64(Float64(-a) * t); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (t - 2.0) * b; tmp = 0.0; if (b <= -5.6e+142) tmp = t_1; elseif (b <= -9.4e+26) tmp = b * y; elseif (b <= 2.6e+110) tmp = -a * t; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(t - 2.0), $MachinePrecision] * b), $MachinePrecision]}, If[LessEqual[b, -5.6e+142], t$95$1, If[LessEqual[b, -9.4e+26], N[(b * y), $MachinePrecision], If[LessEqual[b, 2.6e+110], N[((-a) * t), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(t - 2\right) \cdot b\\
\mathbf{if}\;b \leq -5.6 \cdot 10^{+142}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -9.4 \cdot 10^{+26}:\\
\;\;\;\;b \cdot y\\
\mathbf{elif}\;b \leq 2.6 \cdot 10^{+110}:\\
\;\;\;\;\left(-a\right) \cdot t\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -5.6e142 or 2.6e110 < b Initial program 86.5%
Taylor expanded in y around 0
sub-negN/A
+-commutativeN/A
+-commutativeN/A
distribute-neg-inN/A
mul-1-negN/A
remove-double-negN/A
associate-+l+N/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
sub-negN/A
metadata-evalN/A
distribute-lft-inN/A
metadata-evalN/A
+-commutativeN/A
neg-mul-1N/A
sub-negN/A
lower--.f64N/A
lower-+.f64N/A
Applied rewrites71.3%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
lower--.f64N/A
lower-+.f6479.5
Applied rewrites79.5%
Taylor expanded in y around 0
Applied rewrites53.7%
if -5.6e142 < b < -9.3999999999999995e26Initial program 100.0%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
lower--.f6459.3
Applied rewrites59.3%
Taylor expanded in z around 0
Applied rewrites49.4%
if -9.3999999999999995e26 < b < 2.6e110Initial program 98.8%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
lower--.f6439.0
Applied rewrites39.0%
Taylor expanded in a around inf
Applied rewrites35.8%
(FPCore (x y z t a b) :precision binary64 (if (or (<= b -4e+36) (not (<= b 4e+109))) (* (- (+ t y) 2.0) b) (fma (- 1.0 t) a (+ z x))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((b <= -4e+36) || !(b <= 4e+109)) {
tmp = ((t + y) - 2.0) * b;
} else {
tmp = fma((1.0 - t), a, (z + x));
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if ((b <= -4e+36) || !(b <= 4e+109)) tmp = Float64(Float64(Float64(t + y) - 2.0) * b); else tmp = fma(Float64(1.0 - t), a, Float64(z + x)); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[b, -4e+36], N[Not[LessEqual[b, 4e+109]], $MachinePrecision]], N[(N[(N[(t + y), $MachinePrecision] - 2.0), $MachinePrecision] * b), $MachinePrecision], N[(N[(1.0 - t), $MachinePrecision] * a + N[(z + x), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -4 \cdot 10^{+36} \lor \neg \left(b \leq 4 \cdot 10^{+109}\right):\\
\;\;\;\;\left(\left(t + y\right) - 2\right) \cdot b\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(1 - t, a, z + x\right)\\
\end{array}
\end{array}
if b < -4.00000000000000017e36 or 3.99999999999999993e109 < b Initial program 89.2%
Taylor expanded in y around 0
sub-negN/A
+-commutativeN/A
+-commutativeN/A
distribute-neg-inN/A
mul-1-negN/A
remove-double-negN/A
associate-+l+N/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
sub-negN/A
metadata-evalN/A
distribute-lft-inN/A
metadata-evalN/A
+-commutativeN/A
neg-mul-1N/A
sub-negN/A
lower--.f64N/A
lower-+.f64N/A
Applied rewrites65.8%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
lower--.f64N/A
lower-+.f6475.4
Applied rewrites75.4%
if -4.00000000000000017e36 < b < 3.99999999999999993e109Initial program 98.8%
Taylor expanded in y around 0
sub-negN/A
+-commutativeN/A
+-commutativeN/A
distribute-neg-inN/A
mul-1-negN/A
remove-double-negN/A
associate-+l+N/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
sub-negN/A
metadata-evalN/A
distribute-lft-inN/A
metadata-evalN/A
+-commutativeN/A
neg-mul-1N/A
sub-negN/A
lower--.f64N/A
lower-+.f64N/A
Applied rewrites81.1%
Taylor expanded in b around 0
Applied rewrites76.9%
Final simplification76.4%
(FPCore (x y z t a b) :precision binary64 (if (or (<= b -4e+36) (not (<= b 3.8e+109))) (* (- (+ t y) 2.0) b) (fma (- t) a (+ z x))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((b <= -4e+36) || !(b <= 3.8e+109)) {
tmp = ((t + y) - 2.0) * b;
} else {
tmp = fma(-t, a, (z + x));
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if ((b <= -4e+36) || !(b <= 3.8e+109)) tmp = Float64(Float64(Float64(t + y) - 2.0) * b); else tmp = fma(Float64(-t), a, Float64(z + x)); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[b, -4e+36], N[Not[LessEqual[b, 3.8e+109]], $MachinePrecision]], N[(N[(N[(t + y), $MachinePrecision] - 2.0), $MachinePrecision] * b), $MachinePrecision], N[((-t) * a + N[(z + x), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -4 \cdot 10^{+36} \lor \neg \left(b \leq 3.8 \cdot 10^{+109}\right):\\
\;\;\;\;\left(\left(t + y\right) - 2\right) \cdot b\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(-t, a, z + x\right)\\
\end{array}
\end{array}
if b < -4.00000000000000017e36 or 3.80000000000000039e109 < b Initial program 89.2%
Taylor expanded in y around 0
sub-negN/A
+-commutativeN/A
+-commutativeN/A
distribute-neg-inN/A
mul-1-negN/A
remove-double-negN/A
associate-+l+N/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
sub-negN/A
metadata-evalN/A
distribute-lft-inN/A
metadata-evalN/A
+-commutativeN/A
neg-mul-1N/A
sub-negN/A
lower--.f64N/A
lower-+.f64N/A
Applied rewrites65.8%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
lower--.f64N/A
lower-+.f6475.4
Applied rewrites75.4%
if -4.00000000000000017e36 < b < 3.80000000000000039e109Initial program 98.8%
Taylor expanded in y around 0
sub-negN/A
+-commutativeN/A
+-commutativeN/A
distribute-neg-inN/A
mul-1-negN/A
remove-double-negN/A
associate-+l+N/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
sub-negN/A
metadata-evalN/A
distribute-lft-inN/A
metadata-evalN/A
+-commutativeN/A
neg-mul-1N/A
sub-negN/A
lower--.f64N/A
lower-+.f64N/A
Applied rewrites81.1%
Taylor expanded in b around 0
Applied rewrites76.9%
Taylor expanded in t around inf
Applied rewrites66.7%
Final simplification69.8%
(FPCore (x y z t a b) :precision binary64 (if (<= y -720.0) (* b y) (if (<= y 7.5e-93) (* 1.0 z) (if (<= y 4.4e+60) (* b t) (* b y)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= -720.0) {
tmp = b * y;
} else if (y <= 7.5e-93) {
tmp = 1.0 * z;
} else if (y <= 4.4e+60) {
tmp = b * t;
} else {
tmp = b * y;
}
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 <= (-720.0d0)) then
tmp = b * y
else if (y <= 7.5d-93) then
tmp = 1.0d0 * z
else if (y <= 4.4d+60) then
tmp = b * t
else
tmp = b * y
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 <= -720.0) {
tmp = b * y;
} else if (y <= 7.5e-93) {
tmp = 1.0 * z;
} else if (y <= 4.4e+60) {
tmp = b * t;
} else {
tmp = b * y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if y <= -720.0: tmp = b * y elif y <= 7.5e-93: tmp = 1.0 * z elif y <= 4.4e+60: tmp = b * t else: tmp = b * y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (y <= -720.0) tmp = Float64(b * y); elseif (y <= 7.5e-93) tmp = Float64(1.0 * z); elseif (y <= 4.4e+60) tmp = Float64(b * t); else tmp = Float64(b * y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (y <= -720.0) tmp = b * y; elseif (y <= 7.5e-93) tmp = 1.0 * z; elseif (y <= 4.4e+60) tmp = b * t; else tmp = b * y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[y, -720.0], N[(b * y), $MachinePrecision], If[LessEqual[y, 7.5e-93], N[(1.0 * z), $MachinePrecision], If[LessEqual[y, 4.4e+60], N[(b * t), $MachinePrecision], N[(b * y), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -720:\\
\;\;\;\;b \cdot y\\
\mathbf{elif}\;y \leq 7.5 \cdot 10^{-93}:\\
\;\;\;\;1 \cdot z\\
\mathbf{elif}\;y \leq 4.4 \cdot 10^{+60}:\\
\;\;\;\;b \cdot t\\
\mathbf{else}:\\
\;\;\;\;b \cdot y\\
\end{array}
\end{array}
if y < -720 or 4.39999999999999992e60 < y Initial program 92.5%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
lower--.f6463.5
Applied rewrites63.5%
Taylor expanded in z around 0
Applied rewrites41.3%
if -720 < y < 7.50000000000000034e-93Initial program 97.3%
Taylor expanded in z around inf
*-commutativeN/A
sub-negN/A
neg-mul-1N/A
+-commutativeN/A
metadata-evalN/A
distribute-lft-inN/A
metadata-evalN/A
sub-negN/A
lower-*.f64N/A
sub-negN/A
metadata-evalN/A
distribute-lft-inN/A
metadata-evalN/A
+-commutativeN/A
neg-mul-1N/A
sub-negN/A
lower--.f6421.8
Applied rewrites21.8%
Taylor expanded in y around 0
Applied rewrites21.8%
if 7.50000000000000034e-93 < y < 4.39999999999999992e60Initial program 97.2%
Taylor expanded in y around 0
sub-negN/A
+-commutativeN/A
+-commutativeN/A
distribute-neg-inN/A
mul-1-negN/A
remove-double-negN/A
associate-+l+N/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
sub-negN/A
metadata-evalN/A
distribute-lft-inN/A
metadata-evalN/A
+-commutativeN/A
neg-mul-1N/A
sub-negN/A
lower--.f64N/A
lower-+.f64N/A
Applied rewrites94.2%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
lower--.f64N/A
lower-+.f6444.0
Applied rewrites44.0%
Taylor expanded in t around inf
Applied rewrites35.4%
(FPCore (x y z t a b) :precision binary64 (if (or (<= t -2.6e+41) (not (<= t 7600000000.0))) (* (- b a) t) (fma 1.0 a (+ z x))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -2.6e+41) || !(t <= 7600000000.0)) {
tmp = (b - a) * t;
} else {
tmp = fma(1.0, a, (z + x));
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if ((t <= -2.6e+41) || !(t <= 7600000000.0)) tmp = Float64(Float64(b - a) * t); else tmp = fma(1.0, a, Float64(z + x)); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[t, -2.6e+41], N[Not[LessEqual[t, 7600000000.0]], $MachinePrecision]], N[(N[(b - a), $MachinePrecision] * t), $MachinePrecision], N[(1.0 * a + N[(z + x), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.6 \cdot 10^{+41} \lor \neg \left(t \leq 7600000000\right):\\
\;\;\;\;\left(b - a\right) \cdot t\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(1, a, z + x\right)\\
\end{array}
\end{array}
if t < -2.6000000000000001e41 or 7.6e9 < t Initial program 92.3%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
lower--.f6476.2
Applied rewrites76.2%
if -2.6000000000000001e41 < t < 7.6e9Initial program 97.8%
Taylor expanded in y around 0
sub-negN/A
+-commutativeN/A
+-commutativeN/A
distribute-neg-inN/A
mul-1-negN/A
remove-double-negN/A
associate-+l+N/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
sub-negN/A
metadata-evalN/A
distribute-lft-inN/A
metadata-evalN/A
+-commutativeN/A
neg-mul-1N/A
sub-negN/A
lower--.f64N/A
lower-+.f64N/A
Applied rewrites65.8%
Taylor expanded in b around 0
Applied rewrites56.7%
Taylor expanded in t around 0
Applied rewrites54.1%
Final simplification64.2%
(FPCore (x y z t a b) :precision binary64 (if (or (<= t -8000000.0) (not (<= t 4.3e+42))) (* (- b a) t) (* (- b z) y)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((t <= -8000000.0) || !(t <= 4.3e+42)) {
tmp = (b - a) * t;
} else {
tmp = (b - z) * y;
}
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 <= (-8000000.0d0)) .or. (.not. (t <= 4.3d+42))) then
tmp = (b - a) * t
else
tmp = (b - z) * y
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 <= -8000000.0) || !(t <= 4.3e+42)) {
tmp = (b - a) * t;
} else {
tmp = (b - z) * y;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (t <= -8000000.0) or not (t <= 4.3e+42): tmp = (b - a) * t else: tmp = (b - z) * y return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((t <= -8000000.0) || !(t <= 4.3e+42)) tmp = Float64(Float64(b - a) * t); else tmp = Float64(Float64(b - z) * y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((t <= -8000000.0) || ~((t <= 4.3e+42))) tmp = (b - a) * t; else tmp = (b - z) * y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[t, -8000000.0], N[Not[LessEqual[t, 4.3e+42]], $MachinePrecision]], N[(N[(b - a), $MachinePrecision] * t), $MachinePrecision], N[(N[(b - z), $MachinePrecision] * y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -8000000 \lor \neg \left(t \leq 4.3 \cdot 10^{+42}\right):\\
\;\;\;\;\left(b - a\right) \cdot t\\
\mathbf{else}:\\
\;\;\;\;\left(b - z\right) \cdot y\\
\end{array}
\end{array}
if t < -8e6 or 4.2999999999999998e42 < t Initial program 92.8%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
lower--.f6474.0
Applied rewrites74.0%
if -8e6 < t < 4.2999999999999998e42Initial program 97.7%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
lower--.f6439.3
Applied rewrites39.3%
Final simplification56.4%
(FPCore (x y z t a b) :precision binary64 (if (or (<= a -34000000.0) (not (<= a 2.9e-5))) (* (- 1.0 t) a) (* (- 1.0 y) z)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((a <= -34000000.0) || !(a <= 2.9e-5)) {
tmp = (1.0 - t) * a;
} else {
tmp = (1.0 - y) * 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 ((a <= (-34000000.0d0)) .or. (.not. (a <= 2.9d-5))) then
tmp = (1.0d0 - t) * a
else
tmp = (1.0d0 - y) * 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 ((a <= -34000000.0) || !(a <= 2.9e-5)) {
tmp = (1.0 - t) * a;
} else {
tmp = (1.0 - y) * z;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (a <= -34000000.0) or not (a <= 2.9e-5): tmp = (1.0 - t) * a else: tmp = (1.0 - y) * z return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((a <= -34000000.0) || !(a <= 2.9e-5)) tmp = Float64(Float64(1.0 - t) * a); else tmp = Float64(Float64(1.0 - y) * z); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((a <= -34000000.0) || ~((a <= 2.9e-5))) tmp = (1.0 - t) * a; else tmp = (1.0 - y) * z; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[a, -34000000.0], N[Not[LessEqual[a, 2.9e-5]], $MachinePrecision]], N[(N[(1.0 - t), $MachinePrecision] * a), $MachinePrecision], N[(N[(1.0 - y), $MachinePrecision] * z), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -34000000 \lor \neg \left(a \leq 2.9 \cdot 10^{-5}\right):\\
\;\;\;\;\left(1 - t\right) \cdot a\\
\mathbf{else}:\\
\;\;\;\;\left(1 - y\right) \cdot z\\
\end{array}
\end{array}
if a < -3.4e7 or 2.9e-5 < a Initial program 91.7%
Taylor expanded in a around inf
*-commutativeN/A
sub-negN/A
neg-mul-1N/A
+-commutativeN/A
metadata-evalN/A
distribute-lft-inN/A
metadata-evalN/A
sub-negN/A
lower-*.f64N/A
sub-negN/A
metadata-evalN/A
distribute-lft-inN/A
metadata-evalN/A
+-commutativeN/A
neg-mul-1N/A
sub-negN/A
lower--.f6458.7
Applied rewrites58.7%
if -3.4e7 < a < 2.9e-5Initial program 99.2%
Taylor expanded in z around inf
*-commutativeN/A
sub-negN/A
neg-mul-1N/A
+-commutativeN/A
metadata-evalN/A
distribute-lft-inN/A
metadata-evalN/A
sub-negN/A
lower-*.f64N/A
sub-negN/A
metadata-evalN/A
distribute-lft-inN/A
metadata-evalN/A
+-commutativeN/A
neg-mul-1N/A
sub-negN/A
lower--.f6437.8
Applied rewrites37.8%
Final simplification48.6%
(FPCore (x y z t a b) :precision binary64 (if (<= b -9.4e+26) (* b y) (if (<= b 2.85e+110) (* (- a) t) (* b t))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (b <= -9.4e+26) {
tmp = b * y;
} else if (b <= 2.85e+110) {
tmp = -a * t;
} else {
tmp = b * t;
}
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 (b <= (-9.4d+26)) then
tmp = b * y
else if (b <= 2.85d+110) then
tmp = -a * t
else
tmp = b * t
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 (b <= -9.4e+26) {
tmp = b * y;
} else if (b <= 2.85e+110) {
tmp = -a * t;
} else {
tmp = b * t;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if b <= -9.4e+26: tmp = b * y elif b <= 2.85e+110: tmp = -a * t else: tmp = b * t return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (b <= -9.4e+26) tmp = Float64(b * y); elseif (b <= 2.85e+110) tmp = Float64(Float64(-a) * t); else tmp = Float64(b * t); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (b <= -9.4e+26) tmp = b * y; elseif (b <= 2.85e+110) tmp = -a * t; else tmp = b * t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[b, -9.4e+26], N[(b * y), $MachinePrecision], If[LessEqual[b, 2.85e+110], N[((-a) * t), $MachinePrecision], N[(b * t), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -9.4 \cdot 10^{+26}:\\
\;\;\;\;b \cdot y\\
\mathbf{elif}\;b \leq 2.85 \cdot 10^{+110}:\\
\;\;\;\;\left(-a\right) \cdot t\\
\mathbf{else}:\\
\;\;\;\;b \cdot t\\
\end{array}
\end{array}
if b < -9.3999999999999995e26Initial program 91.5%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
lower--.f6448.5
Applied rewrites48.5%
Taylor expanded in z around 0
Applied rewrites42.2%
if -9.3999999999999995e26 < b < 2.8500000000000001e110Initial program 98.8%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
lower--.f6439.0
Applied rewrites39.0%
Taylor expanded in a around inf
Applied rewrites35.8%
if 2.8500000000000001e110 < b Initial program 87.0%
Taylor expanded in y around 0
sub-negN/A
+-commutativeN/A
+-commutativeN/A
distribute-neg-inN/A
mul-1-negN/A
remove-double-negN/A
associate-+l+N/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
sub-negN/A
metadata-evalN/A
distribute-lft-inN/A
metadata-evalN/A
+-commutativeN/A
neg-mul-1N/A
sub-negN/A
lower--.f64N/A
lower-+.f64N/A
Applied rewrites72.7%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
lower--.f64N/A
lower-+.f6479.1
Applied rewrites79.1%
Taylor expanded in t around inf
Applied rewrites39.1%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -3.8e-17) (not (<= y 4.4e+60))) (* b y) (* b t)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -3.8e-17) || !(y <= 4.4e+60)) {
tmp = b * y;
} else {
tmp = b * t;
}
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 <= (-3.8d-17)) .or. (.not. (y <= 4.4d+60))) then
tmp = b * y
else
tmp = b * t
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 <= -3.8e-17) || !(y <= 4.4e+60)) {
tmp = b * y;
} else {
tmp = b * t;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (y <= -3.8e-17) or not (y <= 4.4e+60): tmp = b * y else: tmp = b * t return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((y <= -3.8e-17) || !(y <= 4.4e+60)) tmp = Float64(b * y); else tmp = Float64(b * t); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((y <= -3.8e-17) || ~((y <= 4.4e+60))) tmp = b * y; else tmp = b * t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -3.8e-17], N[Not[LessEqual[y, 4.4e+60]], $MachinePrecision]], N[(b * y), $MachinePrecision], N[(b * t), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -3.8 \cdot 10^{-17} \lor \neg \left(y \leq 4.4 \cdot 10^{+60}\right):\\
\;\;\;\;b \cdot y\\
\mathbf{else}:\\
\;\;\;\;b \cdot t\\
\end{array}
\end{array}
if y < -3.8000000000000001e-17 or 4.39999999999999992e60 < y Initial program 92.8%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
lower--.f6461.3
Applied rewrites61.3%
Taylor expanded in z around 0
Applied rewrites39.9%
if -3.8000000000000001e-17 < y < 4.39999999999999992e60Initial program 97.2%
Taylor expanded in y around 0
sub-negN/A
+-commutativeN/A
+-commutativeN/A
distribute-neg-inN/A
mul-1-negN/A
remove-double-negN/A
associate-+l+N/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
sub-negN/A
metadata-evalN/A
distribute-lft-inN/A
metadata-evalN/A
+-commutativeN/A
neg-mul-1N/A
sub-negN/A
lower--.f64N/A
lower-+.f64N/A
Applied rewrites98.6%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
lower--.f64N/A
lower-+.f6428.1
Applied rewrites28.1%
Taylor expanded in t around inf
Applied rewrites20.8%
Final simplification29.0%
(FPCore (x y z t a b) :precision binary64 (* b y))
double code(double x, double y, double z, double t, double a, double b) {
return b * y;
}
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 = b * y
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return b * y;
}
def code(x, y, z, t, a, b): return b * y
function code(x, y, z, t, a, b) return Float64(b * y) end
function tmp = code(x, y, z, t, a, b) tmp = b * y; end
code[x_, y_, z_, t_, a_, b_] := N[(b * y), $MachinePrecision]
\begin{array}{l}
\\
b \cdot y
\end{array}
Initial program 95.3%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
lower--.f6428.5
Applied rewrites28.5%
Taylor expanded in z around 0
Applied rewrites18.6%
herbie shell --seed 2024318
(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)))