
(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 25 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
(+ (* (- (+ t y) 2.0) b) (- (- x (* z (- y 1.0))) (* a (- t 1.0))))))
(if (<= t_1 2e+304)
t_1
(fma (- b a) t (fma (- y 2.0) b (fma (- 1.0 y) z a))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (((t + y) - 2.0) * b) + ((x - (z * (y - 1.0))) - (a * (t - 1.0)));
double tmp;
if (t_1 <= 2e+304) {
tmp = t_1;
} else {
tmp = fma((b - a), t, fma((y - 2.0), b, fma((1.0 - y), z, a)));
}
return tmp;
}
function code(x, y, z, t, a, b) t_1 = Float64(Float64(Float64(Float64(t + y) - 2.0) * b) + Float64(Float64(x - Float64(z * Float64(y - 1.0))) - Float64(a * Float64(t - 1.0)))) tmp = 0.0 if (t_1 <= 2e+304) tmp = t_1; else tmp = fma(Float64(b - a), t, fma(Float64(y - 2.0), b, fma(Float64(1.0 - y), z, a))); end return tmp end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(N[(N[(t + y), $MachinePrecision] - 2.0), $MachinePrecision] * b), $MachinePrecision] + N[(N[(x - N[(z * N[(y - 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * N[(t - 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, 2e+304], t$95$1, N[(N[(b - a), $MachinePrecision] * t + N[(N[(y - 2.0), $MachinePrecision] * b + N[(N[(1.0 - y), $MachinePrecision] * z + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(\left(t + y\right) - 2\right) \cdot b + \left(\left(x - z \cdot \left(y - 1\right)\right) - a \cdot \left(t - 1\right)\right)\\
\mathbf{if}\;t\_1 \leq 2 \cdot 10^{+304}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(b - a, t, \mathsf{fma}\left(y - 2, b, \mathsf{fma}\left(1 - y, z, a\right)\right)\right)\\
\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)) < 1.9999999999999999e304Initial program 100.0%
if 1.9999999999999999e304 < (+.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 73.1%
Taylor expanded in x around 0
Applied rewrites94.2%
Final simplification98.8%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1
(+ (* (- (+ t y) 2.0) b) (- (- x (* z (- y 1.0))) (* a (- t 1.0))))))
(if (<= t_1 (- INFINITY))
(* (- a) t)
(if (<= t_1 2e+304) (+ z x) (* b t)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (((t + y) - 2.0) * b) + ((x - (z * (y - 1.0))) - (a * (t - 1.0)));
double tmp;
if (t_1 <= -((double) INFINITY)) {
tmp = -a * t;
} else if (t_1 <= 2e+304) {
tmp = z + x;
} else {
tmp = b * t;
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (((t + y) - 2.0) * b) + ((x - (z * (y - 1.0))) - (a * (t - 1.0)));
double tmp;
if (t_1 <= -Double.POSITIVE_INFINITY) {
tmp = -a * t;
} else if (t_1 <= 2e+304) {
tmp = z + x;
} else {
tmp = b * t;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (((t + y) - 2.0) * b) + ((x - (z * (y - 1.0))) - (a * (t - 1.0))) tmp = 0 if t_1 <= -math.inf: tmp = -a * t elif t_1 <= 2e+304: tmp = z + x else: tmp = b * t return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(Float64(Float64(t + y) - 2.0) * b) + Float64(Float64(x - Float64(z * Float64(y - 1.0))) - Float64(a * Float64(t - 1.0)))) tmp = 0.0 if (t_1 <= Float64(-Inf)) tmp = Float64(Float64(-a) * t); elseif (t_1 <= 2e+304) tmp = Float64(z + x); else tmp = Float64(b * t); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (((t + y) - 2.0) * b) + ((x - (z * (y - 1.0))) - (a * (t - 1.0))); tmp = 0.0; if (t_1 <= -Inf) tmp = -a * t; elseif (t_1 <= 2e+304) tmp = z + x; else tmp = b * t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(N[(N[(t + y), $MachinePrecision] - 2.0), $MachinePrecision] * b), $MachinePrecision] + N[(N[(x - N[(z * N[(y - 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * N[(t - 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, (-Infinity)], N[((-a) * t), $MachinePrecision], If[LessEqual[t$95$1, 2e+304], N[(z + x), $MachinePrecision], N[(b * t), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(\left(t + y\right) - 2\right) \cdot b + \left(\left(x - z \cdot \left(y - 1\right)\right) - a \cdot \left(t - 1\right)\right)\\
\mathbf{if}\;t\_1 \leq -\infty:\\
\;\;\;\;\left(-a\right) \cdot t\\
\mathbf{elif}\;t\_1 \leq 2 \cdot 10^{+304}:\\
\;\;\;\;z + x\\
\mathbf{else}:\\
\;\;\;\;b \cdot t\\
\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%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
lower--.f6450.1
Applied rewrites50.1%
Taylor expanded in a around inf
Applied rewrites39.8%
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)) < 1.9999999999999999e304Initial program 100.0%
Taylor expanded in a around 0
sub-negN/A
+-commutativeN/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
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
lower--.f64N/A
lower-+.f6474.5
Applied rewrites74.5%
Taylor expanded in y around 0
Applied rewrites62.3%
Taylor expanded in b around 0
Applied rewrites45.6%
if 1.9999999999999999e304 < (+.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 73.1%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
lower--.f6454.4
Applied rewrites54.4%
Taylor expanded in a around 0
Applied rewrites39.3%
Final simplification43.5%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1
(+ (* (- (+ t y) 2.0) b) (- (- x (* z (- y 1.0))) (* a (- t 1.0))))))
(if (<= t_1 (- INFINITY)) (* b y) (if (<= t_1 2e+304) (+ z x) (* b t)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (((t + y) - 2.0) * b) + ((x - (z * (y - 1.0))) - (a * (t - 1.0)));
double tmp;
if (t_1 <= -((double) INFINITY)) {
tmp = b * y;
} else if (t_1 <= 2e+304) {
tmp = z + x;
} else {
tmp = b * t;
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (((t + y) - 2.0) * b) + ((x - (z * (y - 1.0))) - (a * (t - 1.0)));
double tmp;
if (t_1 <= -Double.POSITIVE_INFINITY) {
tmp = b * y;
} else if (t_1 <= 2e+304) {
tmp = z + x;
} else {
tmp = b * t;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (((t + y) - 2.0) * b) + ((x - (z * (y - 1.0))) - (a * (t - 1.0))) tmp = 0 if t_1 <= -math.inf: tmp = b * y elif t_1 <= 2e+304: tmp = z + x else: tmp = b * t return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(Float64(Float64(t + y) - 2.0) * b) + Float64(Float64(x - Float64(z * Float64(y - 1.0))) - Float64(a * Float64(t - 1.0)))) tmp = 0.0 if (t_1 <= Float64(-Inf)) tmp = Float64(b * y); elseif (t_1 <= 2e+304) tmp = Float64(z + x); else tmp = Float64(b * t); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (((t + y) - 2.0) * b) + ((x - (z * (y - 1.0))) - (a * (t - 1.0))); tmp = 0.0; if (t_1 <= -Inf) tmp = b * y; elseif (t_1 <= 2e+304) tmp = z + x; else tmp = b * t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(N[(N[(t + y), $MachinePrecision] - 2.0), $MachinePrecision] * b), $MachinePrecision] + N[(N[(x - N[(z * N[(y - 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * N[(t - 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, (-Infinity)], N[(b * y), $MachinePrecision], If[LessEqual[t$95$1, 2e+304], N[(z + x), $MachinePrecision], N[(b * t), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(\left(t + y\right) - 2\right) \cdot b + \left(\left(x - z \cdot \left(y - 1\right)\right) - a \cdot \left(t - 1\right)\right)\\
\mathbf{if}\;t\_1 \leq -\infty:\\
\;\;\;\;b \cdot y\\
\mathbf{elif}\;t\_1 \leq 2 \cdot 10^{+304}:\\
\;\;\;\;z + x\\
\mathbf{else}:\\
\;\;\;\;b \cdot t\\
\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%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
lower--.f6454.8
Applied rewrites54.8%
Taylor expanded in z around 0
Applied rewrites29.5%
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)) < 1.9999999999999999e304Initial program 100.0%
Taylor expanded in a around 0
sub-negN/A
+-commutativeN/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
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
lower--.f64N/A
lower-+.f6474.5
Applied rewrites74.5%
Taylor expanded in y around 0
Applied rewrites62.3%
Taylor expanded in b around 0
Applied rewrites45.6%
if 1.9999999999999999e304 < (+.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 73.1%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
lower--.f6454.4
Applied rewrites54.4%
Taylor expanded in a around 0
Applied rewrites39.3%
Final simplification41.9%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1
(+ (* (- (+ t y) 2.0) b) (- (- x (* z (- y 1.0))) (* a (- t 1.0))))))
(if (<= t_1 (- INFINITY)) (* b t) (if (<= t_1 2e+304) (+ z x) (* b t)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (((t + y) - 2.0) * b) + ((x - (z * (y - 1.0))) - (a * (t - 1.0)));
double tmp;
if (t_1 <= -((double) INFINITY)) {
tmp = b * t;
} else if (t_1 <= 2e+304) {
tmp = z + x;
} else {
tmp = b * t;
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (((t + y) - 2.0) * b) + ((x - (z * (y - 1.0))) - (a * (t - 1.0)));
double tmp;
if (t_1 <= -Double.POSITIVE_INFINITY) {
tmp = b * t;
} else if (t_1 <= 2e+304) {
tmp = z + x;
} else {
tmp = b * t;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (((t + y) - 2.0) * b) + ((x - (z * (y - 1.0))) - (a * (t - 1.0))) tmp = 0 if t_1 <= -math.inf: tmp = b * t elif t_1 <= 2e+304: tmp = z + x else: tmp = b * t return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(Float64(Float64(t + y) - 2.0) * b) + Float64(Float64(x - Float64(z * Float64(y - 1.0))) - Float64(a * Float64(t - 1.0)))) tmp = 0.0 if (t_1 <= Float64(-Inf)) tmp = Float64(b * t); elseif (t_1 <= 2e+304) tmp = Float64(z + x); else tmp = Float64(b * t); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (((t + y) - 2.0) * b) + ((x - (z * (y - 1.0))) - (a * (t - 1.0))); tmp = 0.0; if (t_1 <= -Inf) tmp = b * t; elseif (t_1 <= 2e+304) tmp = z + x; else tmp = b * t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(N[(N[(t + y), $MachinePrecision] - 2.0), $MachinePrecision] * b), $MachinePrecision] + N[(N[(x - N[(z * N[(y - 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * N[(t - 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, (-Infinity)], N[(b * t), $MachinePrecision], If[LessEqual[t$95$1, 2e+304], N[(z + x), $MachinePrecision], N[(b * t), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(\left(t + y\right) - 2\right) \cdot b + \left(\left(x - z \cdot \left(y - 1\right)\right) - a \cdot \left(t - 1\right)\right)\\
\mathbf{if}\;t\_1 \leq -\infty:\\
\;\;\;\;b \cdot t\\
\mathbf{elif}\;t\_1 \leq 2 \cdot 10^{+304}:\\
\;\;\;\;z + x\\
\mathbf{else}:\\
\;\;\;\;b \cdot t\\
\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.0 or 1.9999999999999999e304 < (+.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 84.6%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
lower--.f6452.6
Applied rewrites52.6%
Taylor expanded in a around 0
Applied rewrites29.8%
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)) < 1.9999999999999999e304Initial program 100.0%
Taylor expanded in a around 0
sub-negN/A
+-commutativeN/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
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
lower--.f64N/A
lower-+.f6474.5
Applied rewrites74.5%
Taylor expanded in y around 0
Applied rewrites62.3%
Taylor expanded in b around 0
Applied rewrites45.6%
Final simplification40.0%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (fma (- 1.0 t) a x)) (t_2 (* (- (+ t y) 2.0) b)))
(if (<= b -1.5e+112)
t_2
(if (<= b -2.5e-71)
t_1
(if (<= b 1.35e-277)
(fma (- 1.0 y) z x)
(if (<= b 1.15e+52) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = fma((1.0 - t), a, x);
double t_2 = ((t + y) - 2.0) * b;
double tmp;
if (b <= -1.5e+112) {
tmp = t_2;
} else if (b <= -2.5e-71) {
tmp = t_1;
} else if (b <= 1.35e-277) {
tmp = fma((1.0 - y), z, x);
} else if (b <= 1.15e+52) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
function code(x, y, z, t, a, b) t_1 = fma(Float64(1.0 - t), a, x) t_2 = Float64(Float64(Float64(t + y) - 2.0) * b) tmp = 0.0 if (b <= -1.5e+112) tmp = t_2; elseif (b <= -2.5e-71) tmp = t_1; elseif (b <= 1.35e-277) tmp = fma(Float64(1.0 - y), z, x); elseif (b <= 1.15e+52) tmp = t_1; else tmp = t_2; end return tmp end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(1.0 - t), $MachinePrecision] * a + x), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(t + y), $MachinePrecision] - 2.0), $MachinePrecision] * b), $MachinePrecision]}, If[LessEqual[b, -1.5e+112], t$95$2, If[LessEqual[b, -2.5e-71], t$95$1, If[LessEqual[b, 1.35e-277], N[(N[(1.0 - y), $MachinePrecision] * z + x), $MachinePrecision], If[LessEqual[b, 1.15e+52], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(1 - t, a, x\right)\\
t_2 := \left(\left(t + y\right) - 2\right) \cdot b\\
\mathbf{if}\;b \leq -1.5 \cdot 10^{+112}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq -2.5 \cdot 10^{-71}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 1.35 \cdot 10^{-277}:\\
\;\;\;\;\mathsf{fma}\left(1 - y, z, x\right)\\
\mathbf{elif}\;b \leq 1.15 \cdot 10^{+52}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if b < -1.4999999999999999e112 or 1.15e52 < b Initial program 86.5%
Taylor expanded in x around 0
Applied rewrites91.9%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
lower--.f64N/A
lower-+.f6473.2
Applied rewrites73.2%
if -1.4999999999999999e112 < b < -2.49999999999999999e-71 or 1.34999999999999988e-277 < b < 1.15e52Initial program 99.0%
Taylor expanded in x around 0
Applied rewrites76.6%
Taylor expanded in z around 0
sub-negN/A
+-commutativeN/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
mul-1-negN/A
sub-negN/A
lower--.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
lower--.f64N/A
lower-+.f6481.2
Applied rewrites81.2%
Taylor expanded in b around 0
Applied rewrites64.7%
if -2.49999999999999999e-71 < b < 1.34999999999999988e-277Initial program 98.4%
Taylor expanded in a around 0
sub-negN/A
+-commutativeN/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
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
lower--.f64N/A
lower-+.f6478.7
Applied rewrites78.7%
Taylor expanded in b around 0
Applied rewrites77.2%
(FPCore (x y z t a b)
:precision binary64
(if (<= y -5.8e+62)
(fma (- b a) t (fma (- y 2.0) b (fma (- 1.0 y) z a)))
(if (<= y 3.9e-7)
(fma (- 1.0 t) a (+ (fma (- t 2.0) b x) z))
(fma (- 1.0 y) z (fma (- (+ t y) 2.0) b x)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= -5.8e+62) {
tmp = fma((b - a), t, fma((y - 2.0), b, fma((1.0 - y), z, a)));
} else if (y <= 3.9e-7) {
tmp = fma((1.0 - t), a, (fma((t - 2.0), b, x) + z));
} else {
tmp = fma((1.0 - y), z, fma(((t + y) - 2.0), b, x));
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if (y <= -5.8e+62) tmp = fma(Float64(b - a), t, fma(Float64(y - 2.0), b, fma(Float64(1.0 - y), z, a))); elseif (y <= 3.9e-7) tmp = fma(Float64(1.0 - t), a, Float64(fma(Float64(t - 2.0), b, x) + z)); else tmp = fma(Float64(1.0 - y), z, fma(Float64(Float64(t + y) - 2.0), b, x)); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[y, -5.8e+62], N[(N[(b - a), $MachinePrecision] * t + N[(N[(y - 2.0), $MachinePrecision] * b + N[(N[(1.0 - y), $MachinePrecision] * z + a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.9e-7], N[(N[(1.0 - t), $MachinePrecision] * a + N[(N[(N[(t - 2.0), $MachinePrecision] * b + x), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision], N[(N[(1.0 - y), $MachinePrecision] * z + N[(N[(N[(t + y), $MachinePrecision] - 2.0), $MachinePrecision] * b + x), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -5.8 \cdot 10^{+62}:\\
\;\;\;\;\mathsf{fma}\left(b - a, t, \mathsf{fma}\left(y - 2, b, \mathsf{fma}\left(1 - y, z, a\right)\right)\right)\\
\mathbf{elif}\;y \leq 3.9 \cdot 10^{-7}:\\
\;\;\;\;\mathsf{fma}\left(1 - t, a, \mathsf{fma}\left(t - 2, b, x\right) + z\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(1 - y, z, \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right)\right)\\
\end{array}
\end{array}
if y < -5.79999999999999968e62Initial program 93.0%
Taylor expanded in x around 0
Applied rewrites90.8%
if -5.79999999999999968e62 < y < 3.90000000000000025e-7Initial program 97.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
+-commutativeN/A
distribute-lft-inN/A
metadata-evalN/A
neg-mul-1N/A
sub-negN/A
lower--.f64N/A
lower-+.f64N/A
Applied rewrites98.8%
if 3.90000000000000025e-7 < y Initial program 87.5%
Taylor expanded in a around 0
sub-negN/A
+-commutativeN/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
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
lower--.f64N/A
lower-+.f6487.8
Applied rewrites87.8%
Final simplification95.0%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (fma (- 1.0 y) z (fma (- (+ t y) 2.0) b x))))
(if (<= y -1.65e+63)
t_1
(if (<= y 3.9e-7) (fma (- 1.0 t) a (+ (fma (- t 2.0) b x) z)) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = fma((1.0 - y), z, fma(((t + y) - 2.0), b, x));
double tmp;
if (y <= -1.65e+63) {
tmp = t_1;
} else if (y <= 3.9e-7) {
tmp = fma((1.0 - t), a, (fma((t - 2.0), b, x) + z));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b) t_1 = fma(Float64(1.0 - y), z, fma(Float64(Float64(t + y) - 2.0), b, x)) tmp = 0.0 if (y <= -1.65e+63) tmp = t_1; elseif (y <= 3.9e-7) tmp = fma(Float64(1.0 - t), a, Float64(fma(Float64(t - 2.0), b, x) + z)); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(1.0 - y), $MachinePrecision] * z + N[(N[(N[(t + y), $MachinePrecision] - 2.0), $MachinePrecision] * b + x), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.65e+63], t$95$1, If[LessEqual[y, 3.9e-7], N[(N[(1.0 - t), $MachinePrecision] * a + N[(N[(N[(t - 2.0), $MachinePrecision] * b + x), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(1 - y, z, \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right)\right)\\
\mathbf{if}\;y \leq -1.65 \cdot 10^{+63}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 3.9 \cdot 10^{-7}:\\
\;\;\;\;\mathsf{fma}\left(1 - t, a, \mathsf{fma}\left(t - 2, b, x\right) + z\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -1.6500000000000001e63 or 3.90000000000000025e-7 < y Initial program 89.9%
Taylor expanded in a around 0
sub-negN/A
+-commutativeN/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
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
lower--.f64N/A
lower-+.f6485.1
Applied rewrites85.1%
if -1.6500000000000001e63 < y < 3.90000000000000025e-7Initial program 97.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
+-commutativeN/A
distribute-lft-inN/A
metadata-evalN/A
neg-mul-1N/A
sub-negN/A
lower--.f64N/A
lower-+.f64N/A
Applied rewrites98.8%
Final simplification93.5%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (- x (fma a (- t 1.0) (* z (- y 1.0))))))
(if (<= z -1.4e+56)
t_1
(if (<= z 4.1e+126) (fma (- 1.0 t) a (fma (- (+ t y) 2.0) b x)) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x - fma(a, (t - 1.0), (z * (y - 1.0)));
double tmp;
if (z <= -1.4e+56) {
tmp = t_1;
} else if (z <= 4.1e+126) {
tmp = fma((1.0 - t), a, fma(((t + y) - 2.0), b, x));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b) t_1 = Float64(x - fma(a, Float64(t - 1.0), Float64(z * Float64(y - 1.0)))) tmp = 0.0 if (z <= -1.4e+56) tmp = t_1; elseif (z <= 4.1e+126) tmp = fma(Float64(1.0 - t), a, fma(Float64(Float64(t + y) - 2.0), b, x)); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x - N[(a * N[(t - 1.0), $MachinePrecision] + N[(z * N[(y - 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.4e+56], t$95$1, If[LessEqual[z, 4.1e+126], N[(N[(1.0 - t), $MachinePrecision] * a + N[(N[(N[(t + y), $MachinePrecision] - 2.0), $MachinePrecision] * b + x), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x - \mathsf{fma}\left(a, t - 1, z \cdot \left(y - 1\right)\right)\\
\mathbf{if}\;z \leq -1.4 \cdot 10^{+56}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 4.1 \cdot 10^{+126}:\\
\;\;\;\;\mathsf{fma}\left(1 - t, a, \mathsf{fma}\left(\left(t + y\right) - 2, b, x\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -1.40000000000000004e56 or 4.1000000000000001e126 < z Initial program 89.5%
Taylor expanded in x around 0
Applied rewrites91.8%
Taylor expanded in b around 0
lower--.f64N/A
lower-fma.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower--.f6486.9
Applied rewrites86.9%
if -1.40000000000000004e56 < z < 4.1000000000000001e126Initial program 97.5%
Taylor expanded in x around 0
Applied rewrites75.1%
Taylor expanded in z around 0
sub-negN/A
+-commutativeN/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
mul-1-negN/A
sub-negN/A
lower--.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
lower--.f64N/A
lower-+.f6495.2
Applied rewrites95.2%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* (- b z) y)))
(if (<= y -1.7e+64)
t_1
(if (<= y 1.2e+114) (fma (- 1.0 t) a (+ (fma (- t 2.0) b x) z)) 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 <= -1.7e+64) {
tmp = t_1;
} else if (y <= 1.2e+114) {
tmp = fma((1.0 - t), a, (fma((t - 2.0), b, x) + z));
} 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 <= -1.7e+64) tmp = t_1; elseif (y <= 1.2e+114) tmp = fma(Float64(1.0 - t), a, Float64(fma(Float64(t - 2.0), b, x) + z)); 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, -1.7e+64], t$95$1, If[LessEqual[y, 1.2e+114], N[(N[(1.0 - t), $MachinePrecision] * a + N[(N[(N[(t - 2.0), $MachinePrecision] * b + x), $MachinePrecision] + z), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(b - z\right) \cdot y\\
\mathbf{if}\;y \leq -1.7 \cdot 10^{+64}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 1.2 \cdot 10^{+114}:\\
\;\;\;\;\mathsf{fma}\left(1 - t, a, \mathsf{fma}\left(t - 2, b, x\right) + z\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -1.7000000000000001e64 or 1.2e114 < y Initial program 88.5%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
lower--.f6478.2
Applied rewrites78.2%
if -1.7000000000000001e64 < y < 1.2e114Initial 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
+-commutativeN/A
distribute-lft-inN/A
metadata-evalN/A
neg-mul-1N/A
sub-negN/A
lower--.f64N/A
lower-+.f64N/A
Applied rewrites94.0%
Final simplification89.2%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* (- b a) t)) (t_2 (* (- b z) y)))
(if (<= y -5.8e+62)
t_2
(if (<= y -1.02e-79)
t_1
(if (<= y 1.95e-135) (+ z x) (if (<= y 0.0021) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (b - a) * t;
double t_2 = (b - z) * y;
double tmp;
if (y <= -5.8e+62) {
tmp = t_2;
} else if (y <= -1.02e-79) {
tmp = t_1;
} else if (y <= 1.95e-135) {
tmp = z + x;
} else if (y <= 0.0021) {
tmp = t_1;
} else {
tmp = t_2;
}
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) :: t_2
real(8) :: tmp
t_1 = (b - a) * t
t_2 = (b - z) * y
if (y <= (-5.8d+62)) then
tmp = t_2
else if (y <= (-1.02d-79)) then
tmp = t_1
else if (y <= 1.95d-135) then
tmp = z + x
else if (y <= 0.0021d0) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (b - a) * t;
double t_2 = (b - z) * y;
double tmp;
if (y <= -5.8e+62) {
tmp = t_2;
} else if (y <= -1.02e-79) {
tmp = t_1;
} else if (y <= 1.95e-135) {
tmp = z + x;
} else if (y <= 0.0021) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (b - a) * t t_2 = (b - z) * y tmp = 0 if y <= -5.8e+62: tmp = t_2 elif y <= -1.02e-79: tmp = t_1 elif y <= 1.95e-135: tmp = z + x elif y <= 0.0021: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(b - a) * t) t_2 = Float64(Float64(b - z) * y) tmp = 0.0 if (y <= -5.8e+62) tmp = t_2; elseif (y <= -1.02e-79) tmp = t_1; elseif (y <= 1.95e-135) tmp = Float64(z + x); elseif (y <= 0.0021) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (b - a) * t; t_2 = (b - z) * y; tmp = 0.0; if (y <= -5.8e+62) tmp = t_2; elseif (y <= -1.02e-79) tmp = t_1; elseif (y <= 1.95e-135) tmp = z + x; elseif (y <= 0.0021) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(b - a), $MachinePrecision] * t), $MachinePrecision]}, Block[{t$95$2 = N[(N[(b - z), $MachinePrecision] * y), $MachinePrecision]}, If[LessEqual[y, -5.8e+62], t$95$2, If[LessEqual[y, -1.02e-79], t$95$1, If[LessEqual[y, 1.95e-135], N[(z + x), $MachinePrecision], If[LessEqual[y, 0.0021], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(b - a\right) \cdot t\\
t_2 := \left(b - z\right) \cdot y\\
\mathbf{if}\;y \leq -5.8 \cdot 10^{+62}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq -1.02 \cdot 10^{-79}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 1.95 \cdot 10^{-135}:\\
\;\;\;\;z + x\\
\mathbf{elif}\;y \leq 0.0021:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if y < -5.79999999999999968e62 or 0.00209999999999999987 < y Initial program 89.8%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
lower--.f6472.5
Applied rewrites72.5%
if -5.79999999999999968e62 < y < -1.02000000000000002e-79 or 1.95000000000000011e-135 < y < 0.00209999999999999987Initial program 97.0%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
lower--.f6448.6
Applied rewrites48.6%
if -1.02000000000000002e-79 < y < 1.95000000000000011e-135Initial program 97.8%
Taylor expanded in a around 0
sub-negN/A
+-commutativeN/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
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
lower--.f64N/A
lower-+.f6469.6
Applied rewrites69.6%
Taylor expanded in y around 0
Applied rewrites69.6%
Taylor expanded in b around 0
Applied rewrites51.8%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (fma (- b a) t (fma (- y 2.0) b a))))
(if (<= b -33000000000000.0)
t_1
(if (<= b 7.2e+155) (- x (fma a (- t 1.0) (* z (- y 1.0)))) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = fma((b - a), t, fma((y - 2.0), b, a));
double tmp;
if (b <= -33000000000000.0) {
tmp = t_1;
} else if (b <= 7.2e+155) {
tmp = x - fma(a, (t - 1.0), (z * (y - 1.0)));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b) t_1 = fma(Float64(b - a), t, fma(Float64(y - 2.0), b, a)) tmp = 0.0 if (b <= -33000000000000.0) tmp = t_1; elseif (b <= 7.2e+155) tmp = Float64(x - fma(a, Float64(t - 1.0), Float64(z * Float64(y - 1.0)))); 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 + N[(N[(y - 2.0), $MachinePrecision] * b + a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -33000000000000.0], t$95$1, If[LessEqual[b, 7.2e+155], N[(x - N[(a * N[(t - 1.0), $MachinePrecision] + N[(z * N[(y - 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(b - a, t, \mathsf{fma}\left(y - 2, b, a\right)\right)\\
\mathbf{if}\;b \leq -33000000000000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 7.2 \cdot 10^{+155}:\\
\;\;\;\;x - \mathsf{fma}\left(a, t - 1, z \cdot \left(y - 1\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -3.3e13 or 7.20000000000000015e155 < b Initial program 87.4%
Taylor expanded in x around 0
Applied rewrites91.8%
Taylor expanded in z around 0
Applied rewrites86.0%
if -3.3e13 < b < 7.20000000000000015e155Initial program 98.2%
Taylor expanded in x around 0
Applied rewrites75.9%
Taylor expanded in b around 0
lower--.f64N/A
lower-fma.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower--.f6489.6
Applied rewrites89.6%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* (- b a) t)))
(if (<= t -2.85e+107)
t_1
(if (<= t -7e-98)
(fma (- 1.0 y) z x)
(if (<= t 3.2e+39) (fma (- y 2.0) b (+ 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.85e+107) {
tmp = t_1;
} else if (t <= -7e-98) {
tmp = fma((1.0 - y), z, x);
} else if (t <= 3.2e+39) {
tmp = fma((y - 2.0), b, (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.85e+107) tmp = t_1; elseif (t <= -7e-98) tmp = fma(Float64(1.0 - y), z, x); elseif (t <= 3.2e+39) tmp = fma(Float64(y - 2.0), b, Float64(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.85e+107], t$95$1, If[LessEqual[t, -7e-98], N[(N[(1.0 - y), $MachinePrecision] * z + x), $MachinePrecision], If[LessEqual[t, 3.2e+39], N[(N[(y - 2.0), $MachinePrecision] * b + N[(a + x), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(b - a\right) \cdot t\\
\mathbf{if}\;t \leq -2.85 \cdot 10^{+107}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -7 \cdot 10^{-98}:\\
\;\;\;\;\mathsf{fma}\left(1 - y, z, x\right)\\
\mathbf{elif}\;t \leq 3.2 \cdot 10^{+39}:\\
\;\;\;\;\mathsf{fma}\left(y - 2, b, a + x\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -2.84999999999999986e107 or 3.19999999999999993e39 < t Initial program 87.5%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
lower--.f6466.2
Applied rewrites66.2%
if -2.84999999999999986e107 < t < -7.0000000000000004e-98Initial program 97.8%
Taylor expanded in a around 0
sub-negN/A
+-commutativeN/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
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
lower--.f64N/A
lower-+.f6478.7
Applied rewrites78.7%
Taylor expanded in b around 0
Applied rewrites70.9%
if -7.0000000000000004e-98 < t < 3.19999999999999993e39Initial program 99.1%
Taylor expanded in x around 0
Applied rewrites74.9%
Taylor expanded in z around 0
sub-negN/A
+-commutativeN/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
mul-1-negN/A
sub-negN/A
lower--.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
lower--.f64N/A
lower-+.f6474.9
Applied rewrites74.9%
Taylor expanded in t around 0
Applied rewrites74.5%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* (- b z) y)))
(if (<= y -3.5e+63)
t_1
(if (<= y 75000000.0) (fma (- b a) t (+ (fma -2.0 b z) a)) 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.5e+63) {
tmp = t_1;
} else if (y <= 75000000.0) {
tmp = fma((b - a), t, (fma(-2.0, b, z) + a));
} 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.5e+63) tmp = t_1; elseif (y <= 75000000.0) tmp = fma(Float64(b - a), t, Float64(fma(-2.0, b, z) + a)); 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.5e+63], t$95$1, If[LessEqual[y, 75000000.0], N[(N[(b - a), $MachinePrecision] * t + N[(N[(-2.0 * b + z), $MachinePrecision] + a), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(b - z\right) \cdot y\\
\mathbf{if}\;y \leq -3.5 \cdot 10^{+63}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 75000000:\\
\;\;\;\;\mathsf{fma}\left(b - a, t, \mathsf{fma}\left(-2, b, z\right) + a\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -3.50000000000000029e63 or 7.5e7 < y Initial program 89.7%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
lower--.f6473.2
Applied rewrites73.2%
if -3.50000000000000029e63 < y < 7.5e7Initial program 97.5%
Taylor expanded in x around 0
Applied rewrites77.2%
Taylor expanded in y around 0
Applied rewrites76.7%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (fma (- 1.0 y) z (* (- 1.0 t) a))))
(if (<= a -1.1e+166)
t_1
(if (<= a 1.65e+57) (+ (fma (- t 2.0) b z) x) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = fma((1.0 - y), z, ((1.0 - t) * a));
double tmp;
if (a <= -1.1e+166) {
tmp = t_1;
} else if (a <= 1.65e+57) {
tmp = fma((t - 2.0), b, z) + x;
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b) t_1 = fma(Float64(1.0 - y), z, Float64(Float64(1.0 - t) * a)) tmp = 0.0 if (a <= -1.1e+166) tmp = t_1; elseif (a <= 1.65e+57) tmp = Float64(fma(Float64(t - 2.0), b, z) + x); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(1.0 - y), $MachinePrecision] * z + N[(N[(1.0 - t), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.1e+166], t$95$1, If[LessEqual[a, 1.65e+57], N[(N[(N[(t - 2.0), $MachinePrecision] * b + z), $MachinePrecision] + x), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(1 - y, z, \left(1 - t\right) \cdot a\right)\\
\mathbf{if}\;a \leq -1.1 \cdot 10^{+166}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 1.65 \cdot 10^{+57}:\\
\;\;\;\;\mathsf{fma}\left(t - 2, b, z\right) + x\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -1.1e166 or 1.6500000000000001e57 < a Initial program 93.9%
Taylor expanded in x around 0
Applied rewrites94.6%
Taylor expanded in b around 0
Applied rewrites82.7%
if -1.1e166 < a < 1.6500000000000001e57Initial program 94.8%
Taylor expanded in a around 0
sub-negN/A
+-commutativeN/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
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
lower--.f64N/A
lower-+.f6490.8
Applied rewrites90.8%
Taylor expanded in y around 0
Applied rewrites66.4%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (fma (- y) z (* (- 1.0 t) a))))
(if (<= a -4.2e+166)
t_1
(if (<= a 2.4e+67) (+ (fma (- t 2.0) b z) x) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = fma(-y, z, ((1.0 - t) * a));
double tmp;
if (a <= -4.2e+166) {
tmp = t_1;
} else if (a <= 2.4e+67) {
tmp = fma((t - 2.0), b, z) + x;
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b) t_1 = fma(Float64(-y), z, Float64(Float64(1.0 - t) * a)) tmp = 0.0 if (a <= -4.2e+166) tmp = t_1; elseif (a <= 2.4e+67) tmp = Float64(fma(Float64(t - 2.0), b, z) + x); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[((-y) * z + N[(N[(1.0 - t), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -4.2e+166], t$95$1, If[LessEqual[a, 2.4e+67], N[(N[(N[(t - 2.0), $MachinePrecision] * b + z), $MachinePrecision] + x), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-y, z, \left(1 - t\right) \cdot a\right)\\
\mathbf{if}\;a \leq -4.2 \cdot 10^{+166}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 2.4 \cdot 10^{+67}:\\
\;\;\;\;\mathsf{fma}\left(t - 2, b, z\right) + x\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -4.2000000000000001e166 or 2.40000000000000002e67 < a Initial program 93.6%
Taylor expanded in x around 0
Applied rewrites95.5%
Taylor expanded in b around 0
Applied rewrites84.2%
Taylor expanded in y around inf
Applied rewrites82.0%
if -4.2000000000000001e166 < a < 2.40000000000000002e67Initial program 94.9%
Taylor expanded in a around 0
sub-negN/A
+-commutativeN/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
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
lower--.f64N/A
lower-+.f6491.0
Applied rewrites91.0%
Taylor expanded in y around 0
Applied rewrites66.1%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* (- b z) y)))
(if (<= y -1.55e+64)
t_1
(if (<= y 2.65e-236)
(fma (- 1.0 t) a x)
(if (<= y 125000.0) (+ (fma -2.0 b z) 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 <= -1.55e+64) {
tmp = t_1;
} else if (y <= 2.65e-236) {
tmp = fma((1.0 - t), a, x);
} else if (y <= 125000.0) {
tmp = fma(-2.0, b, z) + 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 <= -1.55e+64) tmp = t_1; elseif (y <= 2.65e-236) tmp = fma(Float64(1.0 - t), a, x); elseif (y <= 125000.0) tmp = Float64(fma(-2.0, b, z) + 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, -1.55e+64], t$95$1, If[LessEqual[y, 2.65e-236], N[(N[(1.0 - t), $MachinePrecision] * a + x), $MachinePrecision], If[LessEqual[y, 125000.0], N[(N[(-2.0 * b + z), $MachinePrecision] + x), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(b - z\right) \cdot y\\
\mathbf{if}\;y \leq -1.55 \cdot 10^{+64}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 2.65 \cdot 10^{-236}:\\
\;\;\;\;\mathsf{fma}\left(1 - t, a, x\right)\\
\mathbf{elif}\;y \leq 125000:\\
\;\;\;\;\mathsf{fma}\left(-2, b, z\right) + x\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -1.55e64 or 125000 < y Initial program 89.7%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
lower--.f6473.2
Applied rewrites73.2%
if -1.55e64 < y < 2.6500000000000001e-236Initial program 97.9%
Taylor expanded in x around 0
Applied rewrites77.8%
Taylor expanded in z around 0
sub-negN/A
+-commutativeN/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
mul-1-negN/A
sub-negN/A
lower--.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
lower--.f64N/A
lower-+.f6481.6
Applied rewrites81.6%
Taylor expanded in b around 0
Applied rewrites61.3%
if 2.6500000000000001e-236 < y < 125000Initial program 96.8%
Taylor expanded in a around 0
sub-negN/A
+-commutativeN/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
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
lower--.f64N/A
lower-+.f6476.8
Applied rewrites76.8%
Taylor expanded in y around 0
Applied rewrites76.8%
Taylor expanded in t around 0
Applied rewrites61.3%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* (- b a) t)))
(if (<= t -2.8e+107)
t_1
(if (<= t -12.5) (* (- 1.0 y) z) (if (<= t 1.6e+70) (+ z 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.8e+107) {
tmp = t_1;
} else if (t <= -12.5) {
tmp = (1.0 - y) * z;
} else if (t <= 1.6e+70) {
tmp = z + x;
} 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 <= (-2.8d+107)) then
tmp = t_1
else if (t <= (-12.5d0)) then
tmp = (1.0d0 - y) * z
else if (t <= 1.6d+70) then
tmp = z + x
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (b - a) * t;
double tmp;
if (t <= -2.8e+107) {
tmp = t_1;
} else if (t <= -12.5) {
tmp = (1.0 - y) * z;
} else if (t <= 1.6e+70) {
tmp = z + x;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (b - a) * t tmp = 0 if t <= -2.8e+107: tmp = t_1 elif t <= -12.5: tmp = (1.0 - y) * z elif t <= 1.6e+70: tmp = z + 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.8e+107) tmp = t_1; elseif (t <= -12.5) tmp = Float64(Float64(1.0 - y) * z); elseif (t <= 1.6e+70) tmp = Float64(z + x); 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 <= -2.8e+107) tmp = t_1; elseif (t <= -12.5) tmp = (1.0 - y) * z; elseif (t <= 1.6e+70) tmp = z + x; 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, -2.8e+107], t$95$1, If[LessEqual[t, -12.5], N[(N[(1.0 - y), $MachinePrecision] * z), $MachinePrecision], If[LessEqual[t, 1.6e+70], N[(z + x), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(b - a\right) \cdot t\\
\mathbf{if}\;t \leq -2.8 \cdot 10^{+107}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -12.5:\\
\;\;\;\;\left(1 - y\right) \cdot z\\
\mathbf{elif}\;t \leq 1.6 \cdot 10^{+70}:\\
\;\;\;\;z + x\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -2.79999999999999985e107 or 1.6000000000000001e70 < t Initial program 86.5%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
lower--.f6469.0
Applied rewrites69.0%
if -2.79999999999999985e107 < t < -12.5Initial program 96.2%
Taylor expanded in z around inf
*-commutativeN/A
sub-negN/A
metadata-evalN/A
distribute-neg-inN/A
+-commutativeN/A
metadata-evalN/A
sub-negN/A
mul-1-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 -12.5 < t < 1.6000000000000001e70Initial program 99.3%
Taylor expanded in a around 0
sub-negN/A
+-commutativeN/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
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
lower--.f64N/A
lower-+.f6479.2
Applied rewrites79.2%
Taylor expanded in y around 0
Applied rewrites51.2%
Taylor expanded in b around 0
Applied rewrites39.6%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* (- 1.0 t) a)))
(if (<= a -1.7e+100)
t_1
(if (<= a 1.76e+22) (+ z x) (if (<= a 4.6e+96) (* (- 1.0 y) z) t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (1.0 - t) * a;
double tmp;
if (a <= -1.7e+100) {
tmp = t_1;
} else if (a <= 1.76e+22) {
tmp = z + x;
} else if (a <= 4.6e+96) {
tmp = (1.0 - y) * z;
} 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 = (1.0d0 - t) * a
if (a <= (-1.7d+100)) then
tmp = t_1
else if (a <= 1.76d+22) then
tmp = z + x
else if (a <= 4.6d+96) then
tmp = (1.0d0 - y) * z
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 = (1.0 - t) * a;
double tmp;
if (a <= -1.7e+100) {
tmp = t_1;
} else if (a <= 1.76e+22) {
tmp = z + x;
} else if (a <= 4.6e+96) {
tmp = (1.0 - y) * z;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (1.0 - t) * a tmp = 0 if a <= -1.7e+100: tmp = t_1 elif a <= 1.76e+22: tmp = z + x elif a <= 4.6e+96: tmp = (1.0 - y) * z else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(1.0 - t) * a) tmp = 0.0 if (a <= -1.7e+100) tmp = t_1; elseif (a <= 1.76e+22) tmp = Float64(z + x); elseif (a <= 4.6e+96) tmp = Float64(Float64(1.0 - y) * z); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (1.0 - t) * a; tmp = 0.0; if (a <= -1.7e+100) tmp = t_1; elseif (a <= 1.76e+22) tmp = z + x; elseif (a <= 4.6e+96) tmp = (1.0 - y) * z; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(1.0 - t), $MachinePrecision] * a), $MachinePrecision]}, If[LessEqual[a, -1.7e+100], t$95$1, If[LessEqual[a, 1.76e+22], N[(z + x), $MachinePrecision], If[LessEqual[a, 4.6e+96], N[(N[(1.0 - y), $MachinePrecision] * z), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(1 - t\right) \cdot a\\
\mathbf{if}\;a \leq -1.7 \cdot 10^{+100}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 1.76 \cdot 10^{+22}:\\
\;\;\;\;z + x\\
\mathbf{elif}\;a \leq 4.6 \cdot 10^{+96}:\\
\;\;\;\;\left(1 - y\right) \cdot z\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -1.69999999999999997e100 or 4.6000000000000003e96 < a Initial program 89.9%
Taylor expanded in a around inf
*-commutativeN/A
sub-negN/A
metadata-evalN/A
distribute-neg-inN/A
+-commutativeN/A
metadata-evalN/A
sub-negN/A
mul-1-negN/A
lower-*.f64N/A
sub-negN/A
metadata-evalN/A
+-commutativeN/A
distribute-lft-inN/A
metadata-evalN/A
neg-mul-1N/A
sub-negN/A
lower--.f6462.3
Applied rewrites62.3%
if -1.69999999999999997e100 < a < 1.76e22Initial program 97.3%
Taylor expanded in a around 0
sub-negN/A
+-commutativeN/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
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
lower--.f64N/A
lower-+.f6494.0
Applied rewrites94.0%
Taylor expanded in y around 0
Applied rewrites68.5%
Taylor expanded in b around 0
Applied rewrites45.2%
if 1.76e22 < a < 4.6000000000000003e96Initial program 95.0%
Taylor expanded in z around inf
*-commutativeN/A
sub-negN/A
metadata-evalN/A
distribute-neg-inN/A
+-commutativeN/A
metadata-evalN/A
sub-negN/A
mul-1-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.7
Applied rewrites46.7%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* (- z) y)))
(if (<= y -1.8e+218)
t_1
(if (<= y -6.8e+38) (* b y) (if (<= y 1.1e+15) (+ z x) t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = -z * y;
double tmp;
if (y <= -1.8e+218) {
tmp = t_1;
} else if (y <= -6.8e+38) {
tmp = b * y;
} else if (y <= 1.1e+15) {
tmp = z + x;
} 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 = -z * y
if (y <= (-1.8d+218)) then
tmp = t_1
else if (y <= (-6.8d+38)) then
tmp = b * y
else if (y <= 1.1d+15) then
tmp = z + x
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = -z * y;
double tmp;
if (y <= -1.8e+218) {
tmp = t_1;
} else if (y <= -6.8e+38) {
tmp = b * y;
} else if (y <= 1.1e+15) {
tmp = z + x;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = -z * y tmp = 0 if y <= -1.8e+218: tmp = t_1 elif y <= -6.8e+38: tmp = b * y elif y <= 1.1e+15: tmp = z + x else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(-z) * y) tmp = 0.0 if (y <= -1.8e+218) tmp = t_1; elseif (y <= -6.8e+38) tmp = Float64(b * y); elseif (y <= 1.1e+15) tmp = Float64(z + x); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = -z * y; tmp = 0.0; if (y <= -1.8e+218) tmp = t_1; elseif (y <= -6.8e+38) tmp = b * y; elseif (y <= 1.1e+15) tmp = z + x; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[((-z) * y), $MachinePrecision]}, If[LessEqual[y, -1.8e+218], t$95$1, If[LessEqual[y, -6.8e+38], N[(b * y), $MachinePrecision], If[LessEqual[y, 1.1e+15], N[(z + x), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(-z\right) \cdot y\\
\mathbf{if}\;y \leq -1.8 \cdot 10^{+218}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -6.8 \cdot 10^{+38}:\\
\;\;\;\;b \cdot y\\
\mathbf{elif}\;y \leq 1.1 \cdot 10^{+15}:\\
\;\;\;\;z + x\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -1.79999999999999995e218 or 1.1e15 < y Initial program 88.2%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
lower--.f6476.8
Applied rewrites76.8%
Taylor expanded in z around inf
Applied rewrites57.0%
if -1.79999999999999995e218 < y < -6.79999999999999992e38Initial program 93.8%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
lower--.f6457.4
Applied rewrites57.4%
Taylor expanded in z around 0
Applied rewrites42.5%
if -6.79999999999999992e38 < y < 1.1e15Initial program 97.4%
Taylor expanded in a around 0
sub-negN/A
+-commutativeN/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
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
lower--.f64N/A
lower-+.f6469.3
Applied rewrites69.3%
Taylor expanded in y around 0
Applied rewrites68.1%
Taylor expanded in b around 0
Applied rewrites42.6%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* (- b z) y)))
(if (<= y -3.2e+63)
t_1
(if (<= y 176000.0) (+ (fma (- t 2.0) b z) 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.2e+63) {
tmp = t_1;
} else if (y <= 176000.0) {
tmp = fma((t - 2.0), b, z) + 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.2e+63) tmp = t_1; elseif (y <= 176000.0) tmp = Float64(fma(Float64(t - 2.0), b, z) + 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.2e+63], t$95$1, If[LessEqual[y, 176000.0], N[(N[(N[(t - 2.0), $MachinePrecision] * b + z), $MachinePrecision] + x), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(b - z\right) \cdot y\\
\mathbf{if}\;y \leq -3.2 \cdot 10^{+63}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 176000:\\
\;\;\;\;\mathsf{fma}\left(t - 2, b, z\right) + x\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -3.20000000000000011e63 or 176000 < y Initial program 89.7%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
lower--.f6473.2
Applied rewrites73.2%
if -3.20000000000000011e63 < y < 176000Initial program 97.5%
Taylor expanded in a around 0
sub-negN/A
+-commutativeN/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
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
lower--.f64N/A
lower-+.f6468.0
Applied rewrites68.0%
Taylor expanded in y around 0
Applied rewrites67.5%
(FPCore (x y z t a b) :precision binary64 (let* ((t_1 (fma (- 1.0 y) z x))) (if (<= z -1.4e+56) t_1 (if (<= z 2.95e+105) (fma (- 1.0 t) a x) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = fma((1.0 - y), z, x);
double tmp;
if (z <= -1.4e+56) {
tmp = t_1;
} else if (z <= 2.95e+105) {
tmp = fma((1.0 - t), a, x);
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b) t_1 = fma(Float64(1.0 - y), z, x) tmp = 0.0 if (z <= -1.4e+56) tmp = t_1; elseif (z <= 2.95e+105) tmp = fma(Float64(1.0 - t), a, x); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(1.0 - y), $MachinePrecision] * z + x), $MachinePrecision]}, If[LessEqual[z, -1.4e+56], t$95$1, If[LessEqual[z, 2.95e+105], N[(N[(1.0 - t), $MachinePrecision] * a + x), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(1 - y, z, x\right)\\
\mathbf{if}\;z \leq -1.4 \cdot 10^{+56}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 2.95 \cdot 10^{+105}:\\
\;\;\;\;\mathsf{fma}\left(1 - t, a, x\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -1.40000000000000004e56 or 2.94999999999999983e105 < z Initial program 88.8%
Taylor expanded in a around 0
sub-negN/A
+-commutativeN/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
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
lower--.f64N/A
lower-+.f6485.2
Applied rewrites85.2%
Taylor expanded in b around 0
Applied rewrites72.9%
if -1.40000000000000004e56 < z < 2.94999999999999983e105Initial program 98.1%
Taylor expanded in x around 0
Applied rewrites74.6%
Taylor expanded in z around 0
sub-negN/A
+-commutativeN/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
mul-1-negN/A
sub-negN/A
lower--.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
lower--.f64N/A
lower-+.f6495.1
Applied rewrites95.1%
Taylor expanded in b around 0
Applied rewrites60.1%
(FPCore (x y z t a b) :precision binary64 (let* ((t_1 (* (- 1.0 y) z))) (if (<= z -1.05e+92) t_1 (if (<= z 5.7e+107) (fma (- 1.0 t) a x) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (1.0 - y) * z;
double tmp;
if (z <= -1.05e+92) {
tmp = t_1;
} else if (z <= 5.7e+107) {
tmp = fma((1.0 - t), a, x);
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b) t_1 = Float64(Float64(1.0 - y) * z) tmp = 0.0 if (z <= -1.05e+92) tmp = t_1; elseif (z <= 5.7e+107) tmp = fma(Float64(1.0 - t), a, x); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(1.0 - y), $MachinePrecision] * z), $MachinePrecision]}, If[LessEqual[z, -1.05e+92], t$95$1, If[LessEqual[z, 5.7e+107], N[(N[(1.0 - t), $MachinePrecision] * a + x), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(1 - y\right) \cdot z\\
\mathbf{if}\;z \leq -1.05 \cdot 10^{+92}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 5.7 \cdot 10^{+107}:\\
\;\;\;\;\mathsf{fma}\left(1 - t, a, x\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -1.04999999999999993e92 or 5.69999999999999972e107 < z Initial program 88.7%
Taylor expanded in z around inf
*-commutativeN/A
sub-negN/A
metadata-evalN/A
distribute-neg-inN/A
+-commutativeN/A
metadata-evalN/A
sub-negN/A
mul-1-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--.f6471.0
Applied rewrites71.0%
if -1.04999999999999993e92 < z < 5.69999999999999972e107Initial program 97.6%
Taylor expanded in x around 0
Applied rewrites74.9%
Taylor expanded in z around 0
sub-negN/A
+-commutativeN/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
mul-1-negN/A
sub-negN/A
lower--.f64N/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
lower--.f64N/A
lower-+.f6493.0
Applied rewrites93.0%
Taylor expanded in b around 0
Applied rewrites59.9%
(FPCore (x y z t a b) :precision binary64 (let* ((t_1 (* (- 1.0 t) a))) (if (<= a -1.7e+100) t_1 (if (<= a 6e+98) (+ z x) t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (1.0 - t) * a;
double tmp;
if (a <= -1.7e+100) {
tmp = t_1;
} else if (a <= 6e+98) {
tmp = z + x;
} 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 = (1.0d0 - t) * a
if (a <= (-1.7d+100)) then
tmp = t_1
else if (a <= 6d+98) then
tmp = z + x
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (1.0 - t) * a;
double tmp;
if (a <= -1.7e+100) {
tmp = t_1;
} else if (a <= 6e+98) {
tmp = z + x;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (1.0 - t) * a tmp = 0 if a <= -1.7e+100: tmp = t_1 elif a <= 6e+98: tmp = z + x else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(1.0 - t) * a) tmp = 0.0 if (a <= -1.7e+100) tmp = t_1; elseif (a <= 6e+98) tmp = Float64(z + x); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (1.0 - t) * a; tmp = 0.0; if (a <= -1.7e+100) tmp = t_1; elseif (a <= 6e+98) tmp = z + x; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(1.0 - t), $MachinePrecision] * a), $MachinePrecision]}, If[LessEqual[a, -1.7e+100], t$95$1, If[LessEqual[a, 6e+98], N[(z + x), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(1 - t\right) \cdot a\\
\mathbf{if}\;a \leq -1.7 \cdot 10^{+100}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 6 \cdot 10^{+98}:\\
\;\;\;\;z + x\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -1.69999999999999997e100 or 6.0000000000000003e98 < a Initial program 89.8%
Taylor expanded in a around inf
*-commutativeN/A
sub-negN/A
metadata-evalN/A
distribute-neg-inN/A
+-commutativeN/A
metadata-evalN/A
sub-negN/A
mul-1-negN/A
lower-*.f64N/A
sub-negN/A
metadata-evalN/A
+-commutativeN/A
distribute-lft-inN/A
metadata-evalN/A
neg-mul-1N/A
sub-negN/A
lower--.f6463.0
Applied rewrites63.0%
if -1.69999999999999997e100 < a < 6.0000000000000003e98Initial program 97.0%
Taylor expanded in a around 0
sub-negN/A
+-commutativeN/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
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
lower--.f64N/A
lower-+.f6492.5
Applied rewrites92.5%
Taylor expanded in y around 0
Applied rewrites65.6%
Taylor expanded in b around 0
Applied rewrites42.3%
(FPCore (x y z t a b) :precision binary64 (if (<= x -2.7e+73) (+ z x) (if (<= x 1.15e+99) (+ a z) (+ z x))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (x <= -2.7e+73) {
tmp = z + x;
} else if (x <= 1.15e+99) {
tmp = a + z;
} else {
tmp = z + 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 <= (-2.7d+73)) then
tmp = z + x
else if (x <= 1.15d+99) then
tmp = a + z
else
tmp = z + 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 <= -2.7e+73) {
tmp = z + x;
} else if (x <= 1.15e+99) {
tmp = a + z;
} else {
tmp = z + x;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if x <= -2.7e+73: tmp = z + x elif x <= 1.15e+99: tmp = a + z else: tmp = z + x return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (x <= -2.7e+73) tmp = Float64(z + x); elseif (x <= 1.15e+99) tmp = Float64(a + z); else tmp = Float64(z + x); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (x <= -2.7e+73) tmp = z + x; elseif (x <= 1.15e+99) tmp = a + z; else tmp = z + x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[x, -2.7e+73], N[(z + x), $MachinePrecision], If[LessEqual[x, 1.15e+99], N[(a + z), $MachinePrecision], N[(z + x), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2.7 \cdot 10^{+73}:\\
\;\;\;\;z + x\\
\mathbf{elif}\;x \leq 1.15 \cdot 10^{+99}:\\
\;\;\;\;a + z\\
\mathbf{else}:\\
\;\;\;\;z + x\\
\end{array}
\end{array}
if x < -2.6999999999999999e73 or 1.1500000000000001e99 < x Initial program 93.2%
Taylor expanded in a around 0
sub-negN/A
+-commutativeN/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
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
lower--.f64N/A
lower-+.f6480.7
Applied rewrites80.7%
Taylor expanded in y around 0
Applied rewrites55.7%
Taylor expanded in b around 0
Applied rewrites47.6%
if -2.6999999999999999e73 < x < 1.1500000000000001e99Initial program 95.4%
Taylor expanded in x around 0
Applied rewrites96.6%
Taylor expanded in b around 0
Applied rewrites64.9%
Taylor expanded in y around 0
Applied rewrites48.5%
Taylor expanded in t around 0
Applied rewrites32.2%
(FPCore (x y z t a b) :precision binary64 (+ z x))
double code(double x, double y, double z, double t, double a, double b) {
return z + x;
}
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 = z + x
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return z + x;
}
def code(x, y, z, t, a, b): return z + x
function code(x, y, z, t, a, b) return Float64(z + x) end
function tmp = code(x, y, z, t, a, b) tmp = z + x; end
code[x_, y_, z_, t_, a_, b_] := N[(z + x), $MachinePrecision]
\begin{array}{l}
\\
z + x
\end{array}
Initial program 94.5%
Taylor expanded in a around 0
sub-negN/A
+-commutativeN/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
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
lower--.f64N/A
lower-+.f6474.4
Applied rewrites74.4%
Taylor expanded in y around 0
Applied rewrites51.0%
Taylor expanded in b around 0
Applied rewrites30.5%
herbie shell --seed 2024294
(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)))