
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
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), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(i * a)))) + Float64(j * Float64(Float64(c * t) - Float64(i * y)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 29 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
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), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(i * a)))) + Float64(j * Float64(Float64(c * t) - Float64(i * y)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)
\end{array}
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(-
(* (- (* c t) (* i y)) j)
(- (* (- (* a t) (* z y)) x) (* (- (* i a) (* c z)) b)))))
(if (<= t_1 INFINITY)
t_1
(*
(fma b z (/ (fma (* z x) y (* (fma (- t) x (* i b)) a)) (- c)))
(- c)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (((c * t) - (i * y)) * j) - ((((a * t) - (z * y)) * x) - (((i * a) - (c * z)) * b));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = fma(b, z, (fma((z * x), y, (fma(-t, x, (i * b)) * a)) / -c)) * -c;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(Float64(c * t) - Float64(i * y)) * j) - Float64(Float64(Float64(Float64(a * t) - Float64(z * y)) * x) - Float64(Float64(Float64(i * a) - Float64(c * z)) * b))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(fma(b, z, Float64(fma(Float64(z * x), y, Float64(fma(Float64(-t), x, Float64(i * b)) * a)) / Float64(-c))) * Float64(-c)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision] - N[(N[(N[(N[(a * t), $MachinePrecision] - N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision] - N[(N[(N[(i * a), $MachinePrecision] - N[(c * z), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(N[(b * z + N[(N[(N[(z * x), $MachinePrecision] * y + N[(N[((-t) * x + N[(i * b), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision] / (-c)), $MachinePrecision]), $MachinePrecision] * (-c)), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(c \cdot t - i \cdot y\right) \cdot j - \left(\left(a \cdot t - z \cdot y\right) \cdot x - \left(i \cdot a - c \cdot z\right) \cdot b\right)\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(b, z, \frac{\mathsf{fma}\left(z \cdot x, y, \mathsf{fma}\left(-t, x, i \cdot b\right) \cdot a\right)}{-c}\right) \cdot \left(-c\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) < +inf.0Initial program 94.1%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) Initial program 0.0%
Taylor expanded in j around 0
sub-negN/A
+-commutativeN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
sub-negN/A
distribute-neg-inN/A
distribute-lft-neg-inN/A
neg-mul-1N/A
remove-double-negN/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
Applied rewrites48.9%
Taylor expanded in c around -inf
Applied rewrites59.2%
Final simplification88.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (fma (- c) z (* i a))))
(if (<= j -3.05e+81)
(fma t_1 b (* (fma (- i) y (* c t)) j))
(if (<= j 4.4e+130)
(fma t_1 b (* (fma (- a) t (* z y)) x))
(+ (* (* (- z) c) b) (* (- (* c t) (* i y)) j))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(-c, z, (i * a));
double tmp;
if (j <= -3.05e+81) {
tmp = fma(t_1, b, (fma(-i, y, (c * t)) * j));
} else if (j <= 4.4e+130) {
tmp = fma(t_1, b, (fma(-a, t, (z * y)) * x));
} else {
tmp = ((-z * c) * b) + (((c * t) - (i * y)) * j);
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = fma(Float64(-c), z, Float64(i * a)) tmp = 0.0 if (j <= -3.05e+81) tmp = fma(t_1, b, Float64(fma(Float64(-i), y, Float64(c * t)) * j)); elseif (j <= 4.4e+130) tmp = fma(t_1, b, Float64(fma(Float64(-a), t, Float64(z * y)) * x)); else tmp = Float64(Float64(Float64(Float64(-z) * c) * b) + Float64(Float64(Float64(c * t) - Float64(i * y)) * j)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[((-c) * z + N[(i * a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -3.05e+81], N[(t$95$1 * b + N[(N[((-i) * y + N[(c * t), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 4.4e+130], N[(t$95$1 * b + N[(N[((-a) * t + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision], N[(N[(N[((-z) * c), $MachinePrecision] * b), $MachinePrecision] + N[(N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-c, z, i \cdot a\right)\\
\mathbf{if}\;j \leq -3.05 \cdot 10^{+81}:\\
\;\;\;\;\mathsf{fma}\left(t\_1, b, \mathsf{fma}\left(-i, y, c \cdot t\right) \cdot j\right)\\
\mathbf{elif}\;j \leq 4.4 \cdot 10^{+130}:\\
\;\;\;\;\mathsf{fma}\left(t\_1, b, \mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\right)\\
\mathbf{else}:\\
\;\;\;\;\left(\left(-z\right) \cdot c\right) \cdot b + \left(c \cdot t - i \cdot y\right) \cdot j\\
\end{array}
\end{array}
if j < -3.05000000000000019e81Initial program 74.1%
Taylor expanded in x around 0
sub-negN/A
+-commutativeN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
sub-negN/A
distribute-neg-inN/A
distribute-lft-neg-inN/A
neg-mul-1N/A
remove-double-negN/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
Applied rewrites73.2%
if -3.05000000000000019e81 < j < 4.39999999999999987e130Initial program 80.2%
Taylor expanded in j around 0
sub-negN/A
+-commutativeN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
sub-negN/A
distribute-neg-inN/A
distribute-lft-neg-inN/A
neg-mul-1N/A
remove-double-negN/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
Applied rewrites80.1%
if 4.39999999999999987e130 < j Initial program 80.6%
Taylor expanded in c around inf
associate-*r*N/A
lower-*.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
lower-*.f6487.1
Applied rewrites87.1%
Final simplification79.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (- (* c t) (* i y)) j)))
(if (<= j -3.6e+81)
(+ (* (* i b) a) t_1)
(if (<= j 4.4e+130)
(fma (fma (- c) z (* i a)) b (* (fma (- a) t (* z y)) x))
(+ (* (* (- z) c) b) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((c * t) - (i * y)) * j;
double tmp;
if (j <= -3.6e+81) {
tmp = ((i * b) * a) + t_1;
} else if (j <= 4.4e+130) {
tmp = fma(fma(-c, z, (i * a)), b, (fma(-a, t, (z * y)) * x));
} else {
tmp = ((-z * c) * b) + t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(c * t) - Float64(i * y)) * j) tmp = 0.0 if (j <= -3.6e+81) tmp = Float64(Float64(Float64(i * b) * a) + t_1); elseif (j <= 4.4e+130) tmp = fma(fma(Float64(-c), z, Float64(i * a)), b, Float64(fma(Float64(-a), t, Float64(z * y)) * x)); else tmp = Float64(Float64(Float64(Float64(-z) * c) * b) + t_1); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]}, If[LessEqual[j, -3.6e+81], N[(N[(N[(i * b), $MachinePrecision] * a), $MachinePrecision] + t$95$1), $MachinePrecision], If[LessEqual[j, 4.4e+130], N[(N[((-c) * z + N[(i * a), $MachinePrecision]), $MachinePrecision] * b + N[(N[((-a) * t + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision], N[(N[(N[((-z) * c), $MachinePrecision] * b), $MachinePrecision] + t$95$1), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(c \cdot t - i \cdot y\right) \cdot j\\
\mathbf{if}\;j \leq -3.6 \cdot 10^{+81}:\\
\;\;\;\;\left(i \cdot b\right) \cdot a + t\_1\\
\mathbf{elif}\;j \leq 4.4 \cdot 10^{+130}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-c, z, i \cdot a\right), b, \mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\right)\\
\mathbf{else}:\\
\;\;\;\;\left(\left(-z\right) \cdot c\right) \cdot b + t\_1\\
\end{array}
\end{array}
if j < -3.60000000000000005e81Initial program 74.1%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
lower-*.f6470.6
Applied rewrites70.6%
if -3.60000000000000005e81 < j < 4.39999999999999987e130Initial program 80.2%
Taylor expanded in j around 0
sub-negN/A
+-commutativeN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
sub-negN/A
distribute-neg-inN/A
distribute-lft-neg-inN/A
neg-mul-1N/A
remove-double-negN/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
Applied rewrites80.1%
if 4.39999999999999987e130 < j Initial program 80.6%
Taylor expanded in c around inf
associate-*r*N/A
lower-*.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
lower-*.f6487.1
Applied rewrites87.1%
Final simplification79.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma (- a) t (* z y)) x)))
(if (<= x -1.55e+90)
t_1
(if (<= x -2.9e-177)
(fma (fma (- c) z (* i a)) b (* (* c t) j))
(if (<= x 1e-28) (* (* (- (/ (* b a) y) j) y) i) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(-a, t, (z * y)) * x;
double tmp;
if (x <= -1.55e+90) {
tmp = t_1;
} else if (x <= -2.9e-177) {
tmp = fma(fma(-c, z, (i * a)), b, ((c * t) * j));
} else if (x <= 1e-28) {
tmp = ((((b * a) / y) - j) * y) * i;
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(fma(Float64(-a), t, Float64(z * y)) * x) tmp = 0.0 if (x <= -1.55e+90) tmp = t_1; elseif (x <= -2.9e-177) tmp = fma(fma(Float64(-c), z, Float64(i * a)), b, Float64(Float64(c * t) * j)); elseif (x <= 1e-28) tmp = Float64(Float64(Float64(Float64(Float64(b * a) / y) - j) * y) * i); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-a) * t + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]}, If[LessEqual[x, -1.55e+90], t$95$1, If[LessEqual[x, -2.9e-177], N[(N[((-c) * z + N[(i * a), $MachinePrecision]), $MachinePrecision] * b + N[(N[(c * t), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1e-28], N[(N[(N[(N[(N[(b * a), $MachinePrecision] / y), $MachinePrecision] - j), $MachinePrecision] * y), $MachinePrecision] * i), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\
\mathbf{if}\;x \leq -1.55 \cdot 10^{+90}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq -2.9 \cdot 10^{-177}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-c, z, i \cdot a\right), b, \left(c \cdot t\right) \cdot j\right)\\
\mathbf{elif}\;x \leq 10^{-28}:\\
\;\;\;\;\left(\left(\frac{b \cdot a}{y} - j\right) \cdot y\right) \cdot i\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -1.54999999999999994e90 or 9.99999999999999971e-29 < x Initial program 77.9%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
+-commutativeN/A
mul-1-negN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6467.9
Applied rewrites67.9%
if -1.54999999999999994e90 < x < -2.89999999999999997e-177Initial program 84.6%
Taylor expanded in x around 0
sub-negN/A
+-commutativeN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
sub-negN/A
distribute-neg-inN/A
distribute-lft-neg-inN/A
neg-mul-1N/A
remove-double-negN/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
Applied rewrites66.0%
Taylor expanded in c around inf
Applied rewrites61.7%
if -2.89999999999999997e-177 < x < 9.99999999999999971e-29Initial program 76.2%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
*-commutativeN/A
associate-*r*N/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6460.2
Applied rewrites60.2%
Taylor expanded in y around inf
Applied rewrites60.3%
Final simplification64.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma (- b) c (* y x)) z)))
(if (<= z -3.8e+80)
t_1
(if (<= z 3.6e-293)
(* (fma (- x) t (* i b)) a)
(if (<= z 1.4e+80) (* (* (- (/ (* b a) y) j) y) i) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(-b, c, (y * x)) * z;
double tmp;
if (z <= -3.8e+80) {
tmp = t_1;
} else if (z <= 3.6e-293) {
tmp = fma(-x, t, (i * b)) * a;
} else if (z <= 1.4e+80) {
tmp = ((((b * a) / y) - j) * y) * i;
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(fma(Float64(-b), c, Float64(y * x)) * z) tmp = 0.0 if (z <= -3.8e+80) tmp = t_1; elseif (z <= 3.6e-293) tmp = Float64(fma(Float64(-x), t, Float64(i * b)) * a); elseif (z <= 1.4e+80) tmp = Float64(Float64(Float64(Float64(Float64(b * a) / y) - j) * y) * i); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-b) * c + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision]}, If[LessEqual[z, -3.8e+80], t$95$1, If[LessEqual[z, 3.6e-293], N[(N[((-x) * t + N[(i * b), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[z, 1.4e+80], N[(N[(N[(N[(N[(b * a), $MachinePrecision] / y), $MachinePrecision] - j), $MachinePrecision] * y), $MachinePrecision] * i), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\\
\mathbf{if}\;z \leq -3.8 \cdot 10^{+80}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 3.6 \cdot 10^{-293}:\\
\;\;\;\;\mathsf{fma}\left(-x, t, i \cdot b\right) \cdot a\\
\mathbf{elif}\;z \leq 1.4 \cdot 10^{+80}:\\
\;\;\;\;\left(\left(\frac{b \cdot a}{y} - j\right) \cdot y\right) \cdot i\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -3.79999999999999997e80 or 1.39999999999999992e80 < z Initial program 73.1%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
lower-*.f6471.7
Applied rewrites71.7%
if -3.79999999999999997e80 < z < 3.59999999999999985e-293Initial program 85.5%
Taylor expanded in a around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
*-commutativeN/A
associate-*r*N/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6460.7
Applied rewrites60.7%
if 3.59999999999999985e-293 < z < 1.39999999999999992e80Initial program 79.5%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
*-commutativeN/A
associate-*r*N/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6457.0
Applied rewrites57.0%
Taylor expanded in y around inf
Applied rewrites57.1%
Final simplification63.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma (- b) c (* y x)) z)))
(if (<= z -3.8e+80)
t_1
(if (<= z 3.6e-293)
(* (fma (- x) t (* i b)) a)
(if (<= z 1.4e+80) (* (* (- (* (/ b y) a) j) y) i) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(-b, c, (y * x)) * z;
double tmp;
if (z <= -3.8e+80) {
tmp = t_1;
} else if (z <= 3.6e-293) {
tmp = fma(-x, t, (i * b)) * a;
} else if (z <= 1.4e+80) {
tmp = ((((b / y) * a) - j) * y) * i;
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(fma(Float64(-b), c, Float64(y * x)) * z) tmp = 0.0 if (z <= -3.8e+80) tmp = t_1; elseif (z <= 3.6e-293) tmp = Float64(fma(Float64(-x), t, Float64(i * b)) * a); elseif (z <= 1.4e+80) tmp = Float64(Float64(Float64(Float64(Float64(b / y) * a) - j) * y) * i); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-b) * c + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision]}, If[LessEqual[z, -3.8e+80], t$95$1, If[LessEqual[z, 3.6e-293], N[(N[((-x) * t + N[(i * b), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[z, 1.4e+80], N[(N[(N[(N[(N[(b / y), $MachinePrecision] * a), $MachinePrecision] - j), $MachinePrecision] * y), $MachinePrecision] * i), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\\
\mathbf{if}\;z \leq -3.8 \cdot 10^{+80}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 3.6 \cdot 10^{-293}:\\
\;\;\;\;\mathsf{fma}\left(-x, t, i \cdot b\right) \cdot a\\
\mathbf{elif}\;z \leq 1.4 \cdot 10^{+80}:\\
\;\;\;\;\left(\left(\frac{b}{y} \cdot a - j\right) \cdot y\right) \cdot i\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -3.79999999999999997e80 or 1.39999999999999992e80 < z Initial program 73.1%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
lower-*.f6471.7
Applied rewrites71.7%
if -3.79999999999999997e80 < z < 3.59999999999999985e-293Initial program 85.5%
Taylor expanded in a around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
*-commutativeN/A
associate-*r*N/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6460.7
Applied rewrites60.7%
if 3.59999999999999985e-293 < z < 1.39999999999999992e80Initial program 79.5%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
*-commutativeN/A
associate-*r*N/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6457.0
Applied rewrites57.0%
Taylor expanded in y around inf
Applied rewrites57.1%
Applied rewrites57.1%
Final simplification63.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma (- y) j (* b a)) i)))
(if (<= i -1.02e+18)
t_1
(if (<= i 3.9e+118)
(fma (* (- z) c) b (* (fma (- a) t (* z y)) x))
t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(-y, j, (b * a)) * i;
double tmp;
if (i <= -1.02e+18) {
tmp = t_1;
} else if (i <= 3.9e+118) {
tmp = fma((-z * c), b, (fma(-a, t, (z * y)) * x));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(fma(Float64(-y), j, Float64(b * a)) * i) tmp = 0.0 if (i <= -1.02e+18) tmp = t_1; elseif (i <= 3.9e+118) tmp = fma(Float64(Float64(-z) * c), b, Float64(fma(Float64(-a), t, Float64(z * y)) * x)); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-y) * j + N[(b * a), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision]}, If[LessEqual[i, -1.02e+18], t$95$1, If[LessEqual[i, 3.9e+118], N[(N[((-z) * c), $MachinePrecision] * b + N[(N[((-a) * t + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-y, j, b \cdot a\right) \cdot i\\
\mathbf{if}\;i \leq -1.02 \cdot 10^{+18}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 3.9 \cdot 10^{+118}:\\
\;\;\;\;\mathsf{fma}\left(\left(-z\right) \cdot c, b, \mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if i < -1.02e18 or 3.9e118 < i Initial program 79.1%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
*-commutativeN/A
associate-*r*N/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6473.1
Applied rewrites73.1%
if -1.02e18 < i < 3.9e118Initial program 79.0%
Taylor expanded in j around 0
sub-negN/A
+-commutativeN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
sub-negN/A
distribute-neg-inN/A
distribute-lft-neg-inN/A
neg-mul-1N/A
remove-double-negN/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
Applied rewrites73.5%
Taylor expanded in c around inf
Applied rewrites68.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (* (- x) t) a)) (t_2 (* (* b a) i)))
(if (<= a -1.1e+245)
t_2
(if (<= a -1.5e+36)
t_1
(if (<= a -1e-34)
(* (* i a) b)
(if (<= a 1.6e-11) (* (* z y) x) (if (<= a 6.2e+121) t_1 t_2)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (-x * t) * a;
double t_2 = (b * a) * i;
double tmp;
if (a <= -1.1e+245) {
tmp = t_2;
} else if (a <= -1.5e+36) {
tmp = t_1;
} else if (a <= -1e-34) {
tmp = (i * a) * b;
} else if (a <= 1.6e-11) {
tmp = (z * y) * x;
} else if (a <= 6.2e+121) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
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), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (-x * t) * a
t_2 = (b * a) * i
if (a <= (-1.1d+245)) then
tmp = t_2
else if (a <= (-1.5d+36)) then
tmp = t_1
else if (a <= (-1d-34)) then
tmp = (i * a) * b
else if (a <= 1.6d-11) then
tmp = (z * y) * x
else if (a <= 6.2d+121) 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 c, double i, double j) {
double t_1 = (-x * t) * a;
double t_2 = (b * a) * i;
double tmp;
if (a <= -1.1e+245) {
tmp = t_2;
} else if (a <= -1.5e+36) {
tmp = t_1;
} else if (a <= -1e-34) {
tmp = (i * a) * b;
} else if (a <= 1.6e-11) {
tmp = (z * y) * x;
} else if (a <= 6.2e+121) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (-x * t) * a t_2 = (b * a) * i tmp = 0 if a <= -1.1e+245: tmp = t_2 elif a <= -1.5e+36: tmp = t_1 elif a <= -1e-34: tmp = (i * a) * b elif a <= 1.6e-11: tmp = (z * y) * x elif a <= 6.2e+121: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(-x) * t) * a) t_2 = Float64(Float64(b * a) * i) tmp = 0.0 if (a <= -1.1e+245) tmp = t_2; elseif (a <= -1.5e+36) tmp = t_1; elseif (a <= -1e-34) tmp = Float64(Float64(i * a) * b); elseif (a <= 1.6e-11) tmp = Float64(Float64(z * y) * x); elseif (a <= 6.2e+121) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (-x * t) * a; t_2 = (b * a) * i; tmp = 0.0; if (a <= -1.1e+245) tmp = t_2; elseif (a <= -1.5e+36) tmp = t_1; elseif (a <= -1e-34) tmp = (i * a) * b; elseif (a <= 1.6e-11) tmp = (z * y) * x; elseif (a <= 6.2e+121) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-x) * t), $MachinePrecision] * a), $MachinePrecision]}, Block[{t$95$2 = N[(N[(b * a), $MachinePrecision] * i), $MachinePrecision]}, If[LessEqual[a, -1.1e+245], t$95$2, If[LessEqual[a, -1.5e+36], t$95$1, If[LessEqual[a, -1e-34], N[(N[(i * a), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[a, 1.6e-11], N[(N[(z * y), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[a, 6.2e+121], t$95$1, t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(\left(-x\right) \cdot t\right) \cdot a\\
t_2 := \left(b \cdot a\right) \cdot i\\
\mathbf{if}\;a \leq -1.1 \cdot 10^{+245}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq -1.5 \cdot 10^{+36}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -1 \cdot 10^{-34}:\\
\;\;\;\;\left(i \cdot a\right) \cdot b\\
\mathbf{elif}\;a \leq 1.6 \cdot 10^{-11}:\\
\;\;\;\;\left(z \cdot y\right) \cdot x\\
\mathbf{elif}\;a \leq 6.2 \cdot 10^{+121}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if a < -1.1e245 or 6.20000000000000016e121 < a Initial program 72.7%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
*-commutativeN/A
associate-*r*N/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6463.8
Applied rewrites63.8%
Taylor expanded in b around inf
Applied rewrites54.4%
if -1.1e245 < a < -1.5e36 or 1.59999999999999997e-11 < a < 6.20000000000000016e121Initial program 68.1%
Taylor expanded in j around 0
sub-negN/A
+-commutativeN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
sub-negN/A
distribute-neg-inN/A
distribute-lft-neg-inN/A
neg-mul-1N/A
remove-double-negN/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
Applied rewrites74.1%
Taylor expanded in t around inf
Applied rewrites45.3%
if -1.5e36 < a < -9.99999999999999928e-35Initial program 84.0%
Taylor expanded in x around 0
sub-negN/A
+-commutativeN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
sub-negN/A
distribute-neg-inN/A
distribute-lft-neg-inN/A
neg-mul-1N/A
remove-double-negN/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
Applied rewrites74.0%
Taylor expanded in a around inf
Applied rewrites43.9%
Applied rewrites43.9%
if -9.99999999999999928e-35 < a < 1.59999999999999997e-11Initial program 86.8%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
+-commutativeN/A
mul-1-negN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6439.3
Applied rewrites39.3%
Taylor expanded in a around 0
Applied rewrites35.3%
Final simplification42.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma (- b) c (* y x)) z)))
(if (<= z -3.8e+80)
t_1
(if (<= z 3.6e-293)
(* (fma (- x) t (* i b)) a)
(if (<= z 1.4e+80) (fma (* (- y) j) i (* (* b a) i)) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(-b, c, (y * x)) * z;
double tmp;
if (z <= -3.8e+80) {
tmp = t_1;
} else if (z <= 3.6e-293) {
tmp = fma(-x, t, (i * b)) * a;
} else if (z <= 1.4e+80) {
tmp = fma((-y * j), i, ((b * a) * i));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(fma(Float64(-b), c, Float64(y * x)) * z) tmp = 0.0 if (z <= -3.8e+80) tmp = t_1; elseif (z <= 3.6e-293) tmp = Float64(fma(Float64(-x), t, Float64(i * b)) * a); elseif (z <= 1.4e+80) tmp = fma(Float64(Float64(-y) * j), i, Float64(Float64(b * a) * i)); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-b) * c + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision]}, If[LessEqual[z, -3.8e+80], t$95$1, If[LessEqual[z, 3.6e-293], N[(N[((-x) * t + N[(i * b), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[z, 1.4e+80], N[(N[((-y) * j), $MachinePrecision] * i + N[(N[(b * a), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\\
\mathbf{if}\;z \leq -3.8 \cdot 10^{+80}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 3.6 \cdot 10^{-293}:\\
\;\;\;\;\mathsf{fma}\left(-x, t, i \cdot b\right) \cdot a\\
\mathbf{elif}\;z \leq 1.4 \cdot 10^{+80}:\\
\;\;\;\;\mathsf{fma}\left(\left(-y\right) \cdot j, i, \left(b \cdot a\right) \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -3.79999999999999997e80 or 1.39999999999999992e80 < z Initial program 73.1%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
lower-*.f6471.7
Applied rewrites71.7%
if -3.79999999999999997e80 < z < 3.59999999999999985e-293Initial program 85.5%
Taylor expanded in a around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
*-commutativeN/A
associate-*r*N/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6460.7
Applied rewrites60.7%
if 3.59999999999999985e-293 < z < 1.39999999999999992e80Initial program 79.5%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
*-commutativeN/A
associate-*r*N/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6457.0
Applied rewrites57.0%
Applied rewrites57.0%
Final simplification63.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (* z y) x)))
(if (<= z -7.4e+80)
t_1
(if (<= z 4.8e-293)
(* (* (- x) t) a)
(if (<= z 1.05e+80)
(* (* (- y) j) i)
(if (<= z 2.5e+249) t_1 (* (* (- z) c) b)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (z * y) * x;
double tmp;
if (z <= -7.4e+80) {
tmp = t_1;
} else if (z <= 4.8e-293) {
tmp = (-x * t) * a;
} else if (z <= 1.05e+80) {
tmp = (-y * j) * i;
} else if (z <= 2.5e+249) {
tmp = t_1;
} else {
tmp = (-z * c) * b;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
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), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = (z * y) * x
if (z <= (-7.4d+80)) then
tmp = t_1
else if (z <= 4.8d-293) then
tmp = (-x * t) * a
else if (z <= 1.05d+80) then
tmp = (-y * j) * i
else if (z <= 2.5d+249) then
tmp = t_1
else
tmp = (-z * c) * b
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (z * y) * x;
double tmp;
if (z <= -7.4e+80) {
tmp = t_1;
} else if (z <= 4.8e-293) {
tmp = (-x * t) * a;
} else if (z <= 1.05e+80) {
tmp = (-y * j) * i;
} else if (z <= 2.5e+249) {
tmp = t_1;
} else {
tmp = (-z * c) * b;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (z * y) * x tmp = 0 if z <= -7.4e+80: tmp = t_1 elif z <= 4.8e-293: tmp = (-x * t) * a elif z <= 1.05e+80: tmp = (-y * j) * i elif z <= 2.5e+249: tmp = t_1 else: tmp = (-z * c) * b return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(z * y) * x) tmp = 0.0 if (z <= -7.4e+80) tmp = t_1; elseif (z <= 4.8e-293) tmp = Float64(Float64(Float64(-x) * t) * a); elseif (z <= 1.05e+80) tmp = Float64(Float64(Float64(-y) * j) * i); elseif (z <= 2.5e+249) tmp = t_1; else tmp = Float64(Float64(Float64(-z) * c) * b); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (z * y) * x; tmp = 0.0; if (z <= -7.4e+80) tmp = t_1; elseif (z <= 4.8e-293) tmp = (-x * t) * a; elseif (z <= 1.05e+80) tmp = (-y * j) * i; elseif (z <= 2.5e+249) tmp = t_1; else tmp = (-z * c) * b; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(z * y), $MachinePrecision] * x), $MachinePrecision]}, If[LessEqual[z, -7.4e+80], t$95$1, If[LessEqual[z, 4.8e-293], N[(N[((-x) * t), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[z, 1.05e+80], N[(N[((-y) * j), $MachinePrecision] * i), $MachinePrecision], If[LessEqual[z, 2.5e+249], t$95$1, N[(N[((-z) * c), $MachinePrecision] * b), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(z \cdot y\right) \cdot x\\
\mathbf{if}\;z \leq -7.4 \cdot 10^{+80}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 4.8 \cdot 10^{-293}:\\
\;\;\;\;\left(\left(-x\right) \cdot t\right) \cdot a\\
\mathbf{elif}\;z \leq 1.05 \cdot 10^{+80}:\\
\;\;\;\;\left(\left(-y\right) \cdot j\right) \cdot i\\
\mathbf{elif}\;z \leq 2.5 \cdot 10^{+249}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\left(\left(-z\right) \cdot c\right) \cdot b\\
\end{array}
\end{array}
if z < -7.39999999999999992e80 or 1.05000000000000001e80 < z < 2.4999999999999998e249Initial program 73.0%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
+-commutativeN/A
mul-1-negN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6460.2
Applied rewrites60.2%
Taylor expanded in a around 0
Applied rewrites52.9%
if -7.39999999999999992e80 < z < 4.7999999999999998e-293Initial program 85.5%
Taylor expanded in j around 0
sub-negN/A
+-commutativeN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
sub-negN/A
distribute-neg-inN/A
distribute-lft-neg-inN/A
neg-mul-1N/A
remove-double-negN/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
Applied rewrites74.9%
Taylor expanded in t around inf
Applied rewrites34.3%
if 4.7999999999999998e-293 < z < 1.05000000000000001e80Initial program 79.5%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
*-commutativeN/A
associate-*r*N/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6457.0
Applied rewrites57.0%
Taylor expanded in b around 0
Applied rewrites41.2%
if 2.4999999999999998e249 < z Initial program 73.8%
Taylor expanded in x around 0
sub-negN/A
+-commutativeN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
sub-negN/A
distribute-neg-inN/A
distribute-lft-neg-inN/A
neg-mul-1N/A
remove-double-negN/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
Applied rewrites60.9%
Taylor expanded in z around inf
Applied rewrites42.0%
Applied rewrites61.1%
Final simplification43.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (* z y) x)))
(if (<= z -1.48e+110)
t_1
(if (<= z 2.6e-263)
(* (* b a) i)
(if (<= z 1.05e+80)
(* (* (- y) i) j)
(if (<= z 2.5e+249) t_1 (* (* (- z) c) b)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (z * y) * x;
double tmp;
if (z <= -1.48e+110) {
tmp = t_1;
} else if (z <= 2.6e-263) {
tmp = (b * a) * i;
} else if (z <= 1.05e+80) {
tmp = (-y * i) * j;
} else if (z <= 2.5e+249) {
tmp = t_1;
} else {
tmp = (-z * c) * b;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
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), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = (z * y) * x
if (z <= (-1.48d+110)) then
tmp = t_1
else if (z <= 2.6d-263) then
tmp = (b * a) * i
else if (z <= 1.05d+80) then
tmp = (-y * i) * j
else if (z <= 2.5d+249) then
tmp = t_1
else
tmp = (-z * c) * b
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (z * y) * x;
double tmp;
if (z <= -1.48e+110) {
tmp = t_1;
} else if (z <= 2.6e-263) {
tmp = (b * a) * i;
} else if (z <= 1.05e+80) {
tmp = (-y * i) * j;
} else if (z <= 2.5e+249) {
tmp = t_1;
} else {
tmp = (-z * c) * b;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (z * y) * x tmp = 0 if z <= -1.48e+110: tmp = t_1 elif z <= 2.6e-263: tmp = (b * a) * i elif z <= 1.05e+80: tmp = (-y * i) * j elif z <= 2.5e+249: tmp = t_1 else: tmp = (-z * c) * b return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(z * y) * x) tmp = 0.0 if (z <= -1.48e+110) tmp = t_1; elseif (z <= 2.6e-263) tmp = Float64(Float64(b * a) * i); elseif (z <= 1.05e+80) tmp = Float64(Float64(Float64(-y) * i) * j); elseif (z <= 2.5e+249) tmp = t_1; else tmp = Float64(Float64(Float64(-z) * c) * b); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (z * y) * x; tmp = 0.0; if (z <= -1.48e+110) tmp = t_1; elseif (z <= 2.6e-263) tmp = (b * a) * i; elseif (z <= 1.05e+80) tmp = (-y * i) * j; elseif (z <= 2.5e+249) tmp = t_1; else tmp = (-z * c) * b; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(z * y), $MachinePrecision] * x), $MachinePrecision]}, If[LessEqual[z, -1.48e+110], t$95$1, If[LessEqual[z, 2.6e-263], N[(N[(b * a), $MachinePrecision] * i), $MachinePrecision], If[LessEqual[z, 1.05e+80], N[(N[((-y) * i), $MachinePrecision] * j), $MachinePrecision], If[LessEqual[z, 2.5e+249], t$95$1, N[(N[((-z) * c), $MachinePrecision] * b), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(z \cdot y\right) \cdot x\\
\mathbf{if}\;z \leq -1.48 \cdot 10^{+110}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 2.6 \cdot 10^{-263}:\\
\;\;\;\;\left(b \cdot a\right) \cdot i\\
\mathbf{elif}\;z \leq 1.05 \cdot 10^{+80}:\\
\;\;\;\;\left(\left(-y\right) \cdot i\right) \cdot j\\
\mathbf{elif}\;z \leq 2.5 \cdot 10^{+249}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\left(\left(-z\right) \cdot c\right) \cdot b\\
\end{array}
\end{array}
if z < -1.48000000000000008e110 or 1.05000000000000001e80 < z < 2.4999999999999998e249Initial program 70.8%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
+-commutativeN/A
mul-1-negN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6464.8
Applied rewrites64.8%
Taylor expanded in a around 0
Applied rewrites56.9%
if -1.48000000000000008e110 < z < 2.6e-263Initial program 86.6%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
*-commutativeN/A
associate-*r*N/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6450.1
Applied rewrites50.1%
Taylor expanded in b around inf
Applied rewrites31.9%
if 2.6e-263 < z < 1.05000000000000001e80Initial program 78.5%
Taylor expanded in j around inf
*-commutativeN/A
lower-*.f64N/A
cancel-sign-sub-invN/A
+-commutativeN/A
neg-mul-1N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
lower-*.f6446.7
Applied rewrites46.7%
Taylor expanded in c around 0
Applied rewrites36.4%
if 2.4999999999999998e249 < z Initial program 73.8%
Taylor expanded in x around 0
sub-negN/A
+-commutativeN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
sub-negN/A
distribute-neg-inN/A
distribute-lft-neg-inN/A
neg-mul-1N/A
remove-double-negN/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
Applied rewrites60.9%
Taylor expanded in z around inf
Applied rewrites42.0%
Applied rewrites61.1%
Final simplification42.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (* z y) x)))
(if (<= z -7.4e+80)
t_1
(if (<= z 4.8e-293)
(* (* (- x) t) a)
(if (<= z 9e+79)
(* (* (- j) i) y)
(if (<= z 2.5e+249) t_1 (* (* (- z) c) b)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (z * y) * x;
double tmp;
if (z <= -7.4e+80) {
tmp = t_1;
} else if (z <= 4.8e-293) {
tmp = (-x * t) * a;
} else if (z <= 9e+79) {
tmp = (-j * i) * y;
} else if (z <= 2.5e+249) {
tmp = t_1;
} else {
tmp = (-z * c) * b;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
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), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = (z * y) * x
if (z <= (-7.4d+80)) then
tmp = t_1
else if (z <= 4.8d-293) then
tmp = (-x * t) * a
else if (z <= 9d+79) then
tmp = (-j * i) * y
else if (z <= 2.5d+249) then
tmp = t_1
else
tmp = (-z * c) * b
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (z * y) * x;
double tmp;
if (z <= -7.4e+80) {
tmp = t_1;
} else if (z <= 4.8e-293) {
tmp = (-x * t) * a;
} else if (z <= 9e+79) {
tmp = (-j * i) * y;
} else if (z <= 2.5e+249) {
tmp = t_1;
} else {
tmp = (-z * c) * b;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (z * y) * x tmp = 0 if z <= -7.4e+80: tmp = t_1 elif z <= 4.8e-293: tmp = (-x * t) * a elif z <= 9e+79: tmp = (-j * i) * y elif z <= 2.5e+249: tmp = t_1 else: tmp = (-z * c) * b return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(z * y) * x) tmp = 0.0 if (z <= -7.4e+80) tmp = t_1; elseif (z <= 4.8e-293) tmp = Float64(Float64(Float64(-x) * t) * a); elseif (z <= 9e+79) tmp = Float64(Float64(Float64(-j) * i) * y); elseif (z <= 2.5e+249) tmp = t_1; else tmp = Float64(Float64(Float64(-z) * c) * b); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (z * y) * x; tmp = 0.0; if (z <= -7.4e+80) tmp = t_1; elseif (z <= 4.8e-293) tmp = (-x * t) * a; elseif (z <= 9e+79) tmp = (-j * i) * y; elseif (z <= 2.5e+249) tmp = t_1; else tmp = (-z * c) * b; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(z * y), $MachinePrecision] * x), $MachinePrecision]}, If[LessEqual[z, -7.4e+80], t$95$1, If[LessEqual[z, 4.8e-293], N[(N[((-x) * t), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[z, 9e+79], N[(N[((-j) * i), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[z, 2.5e+249], t$95$1, N[(N[((-z) * c), $MachinePrecision] * b), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(z \cdot y\right) \cdot x\\
\mathbf{if}\;z \leq -7.4 \cdot 10^{+80}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 4.8 \cdot 10^{-293}:\\
\;\;\;\;\left(\left(-x\right) \cdot t\right) \cdot a\\
\mathbf{elif}\;z \leq 9 \cdot 10^{+79}:\\
\;\;\;\;\left(\left(-j\right) \cdot i\right) \cdot y\\
\mathbf{elif}\;z \leq 2.5 \cdot 10^{+249}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\left(\left(-z\right) \cdot c\right) \cdot b\\
\end{array}
\end{array}
if z < -7.39999999999999992e80 or 8.99999999999999987e79 < z < 2.4999999999999998e249Initial program 73.0%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
+-commutativeN/A
mul-1-negN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6460.2
Applied rewrites60.2%
Taylor expanded in a around 0
Applied rewrites52.9%
if -7.39999999999999992e80 < z < 4.7999999999999998e-293Initial program 85.5%
Taylor expanded in j around 0
sub-negN/A
+-commutativeN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
sub-negN/A
distribute-neg-inN/A
distribute-lft-neg-inN/A
neg-mul-1N/A
remove-double-negN/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
Applied rewrites74.9%
Taylor expanded in t around inf
Applied rewrites34.3%
if 4.7999999999999998e-293 < z < 8.99999999999999987e79Initial program 79.5%
Taylor expanded in x around 0
sub-negN/A
+-commutativeN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
sub-negN/A
distribute-neg-inN/A
distribute-lft-neg-inN/A
neg-mul-1N/A
remove-double-negN/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
Applied rewrites66.8%
Taylor expanded in a around inf
Applied rewrites20.2%
Taylor expanded in y around inf
Applied rewrites33.9%
if 2.4999999999999998e249 < z Initial program 73.8%
Taylor expanded in x around 0
sub-negN/A
+-commutativeN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
sub-negN/A
distribute-neg-inN/A
distribute-lft-neg-inN/A
neg-mul-1N/A
remove-double-negN/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
Applied rewrites60.9%
Taylor expanded in z around inf
Applied rewrites42.0%
Applied rewrites61.1%
Final simplification41.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma (- b) c (* y x)) z)))
(if (<= z -3.8e+80)
t_1
(if (<= z 3.6e-293)
(* (fma (- x) t (* i b)) a)
(if (<= z 1.4e+80) (* (fma (- y) j (* b a)) i) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(-b, c, (y * x)) * z;
double tmp;
if (z <= -3.8e+80) {
tmp = t_1;
} else if (z <= 3.6e-293) {
tmp = fma(-x, t, (i * b)) * a;
} else if (z <= 1.4e+80) {
tmp = fma(-y, j, (b * a)) * i;
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(fma(Float64(-b), c, Float64(y * x)) * z) tmp = 0.0 if (z <= -3.8e+80) tmp = t_1; elseif (z <= 3.6e-293) tmp = Float64(fma(Float64(-x), t, Float64(i * b)) * a); elseif (z <= 1.4e+80) tmp = Float64(fma(Float64(-y), j, Float64(b * a)) * i); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-b) * c + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision]}, If[LessEqual[z, -3.8e+80], t$95$1, If[LessEqual[z, 3.6e-293], N[(N[((-x) * t + N[(i * b), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[z, 1.4e+80], N[(N[((-y) * j + N[(b * a), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\\
\mathbf{if}\;z \leq -3.8 \cdot 10^{+80}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 3.6 \cdot 10^{-293}:\\
\;\;\;\;\mathsf{fma}\left(-x, t, i \cdot b\right) \cdot a\\
\mathbf{elif}\;z \leq 1.4 \cdot 10^{+80}:\\
\;\;\;\;\mathsf{fma}\left(-y, j, b \cdot a\right) \cdot i\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -3.79999999999999997e80 or 1.39999999999999992e80 < z Initial program 73.1%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
lower-*.f6471.7
Applied rewrites71.7%
if -3.79999999999999997e80 < z < 3.59999999999999985e-293Initial program 85.5%
Taylor expanded in a around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
*-commutativeN/A
associate-*r*N/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6460.7
Applied rewrites60.7%
if 3.59999999999999985e-293 < z < 1.39999999999999992e80Initial program 79.5%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
*-commutativeN/A
associate-*r*N/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6457.0
Applied rewrites57.0%
Final simplification63.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma (- b) c (* y x)) z)))
(if (<= z -3.8e+80)
t_1
(if (<= z 3.5e-257)
(* (fma (- x) t (* i b)) a)
(if (<= z 1.75e-32) (* (fma (- i) y (* c t)) j) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(-b, c, (y * x)) * z;
double tmp;
if (z <= -3.8e+80) {
tmp = t_1;
} else if (z <= 3.5e-257) {
tmp = fma(-x, t, (i * b)) * a;
} else if (z <= 1.75e-32) {
tmp = fma(-i, y, (c * t)) * j;
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(fma(Float64(-b), c, Float64(y * x)) * z) tmp = 0.0 if (z <= -3.8e+80) tmp = t_1; elseif (z <= 3.5e-257) tmp = Float64(fma(Float64(-x), t, Float64(i * b)) * a); elseif (z <= 1.75e-32) tmp = Float64(fma(Float64(-i), y, Float64(c * t)) * j); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-b) * c + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision]}, If[LessEqual[z, -3.8e+80], t$95$1, If[LessEqual[z, 3.5e-257], N[(N[((-x) * t + N[(i * b), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[z, 1.75e-32], N[(N[((-i) * y + N[(c * t), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\\
\mathbf{if}\;z \leq -3.8 \cdot 10^{+80}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 3.5 \cdot 10^{-257}:\\
\;\;\;\;\mathsf{fma}\left(-x, t, i \cdot b\right) \cdot a\\
\mathbf{elif}\;z \leq 1.75 \cdot 10^{-32}:\\
\;\;\;\;\mathsf{fma}\left(-i, y, c \cdot t\right) \cdot j\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -3.79999999999999997e80 or 1.7499999999999999e-32 < z Initial program 74.7%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
lower-*.f6467.1
Applied rewrites67.1%
if -3.79999999999999997e80 < z < 3.50000000000000029e-257Initial program 85.0%
Taylor expanded in a around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
*-commutativeN/A
associate-*r*N/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6460.7
Applied rewrites60.7%
if 3.50000000000000029e-257 < z < 1.7499999999999999e-32Initial program 78.2%
Taylor expanded in j around inf
*-commutativeN/A
lower-*.f64N/A
cancel-sign-sub-invN/A
+-commutativeN/A
neg-mul-1N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
lower-*.f6455.3
Applied rewrites55.3%
Final simplification62.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma (- j) i (* z x)) y)))
(if (<= y -7.5e-82)
t_1
(if (<= y -1.8e-140)
(* (fma (- x) a (* j c)) t)
(if (<= y 1.36e+63) (* (fma (- c) z (* i a)) b) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(-j, i, (z * x)) * y;
double tmp;
if (y <= -7.5e-82) {
tmp = t_1;
} else if (y <= -1.8e-140) {
tmp = fma(-x, a, (j * c)) * t;
} else if (y <= 1.36e+63) {
tmp = fma(-c, z, (i * a)) * b;
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(fma(Float64(-j), i, Float64(z * x)) * y) tmp = 0.0 if (y <= -7.5e-82) tmp = t_1; elseif (y <= -1.8e-140) tmp = Float64(fma(Float64(-x), a, Float64(j * c)) * t); elseif (y <= 1.36e+63) tmp = Float64(fma(Float64(-c), z, Float64(i * a)) * b); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-j) * i + N[(z * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]}, If[LessEqual[y, -7.5e-82], t$95$1, If[LessEqual[y, -1.8e-140], N[(N[((-x) * a + N[(j * c), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[y, 1.36e+63], N[(N[((-c) * z + N[(i * a), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-j, i, z \cdot x\right) \cdot y\\
\mathbf{if}\;y \leq -7.5 \cdot 10^{-82}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -1.8 \cdot 10^{-140}:\\
\;\;\;\;\mathsf{fma}\left(-x, a, j \cdot c\right) \cdot t\\
\mathbf{elif}\;y \leq 1.36 \cdot 10^{+63}:\\
\;\;\;\;\mathsf{fma}\left(-c, z, i \cdot a\right) \cdot b\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -7.4999999999999997e-82 or 1.36000000000000006e63 < y Initial program 73.2%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6465.8
Applied rewrites65.8%
if -7.4999999999999997e-82 < y < -1.8e-140Initial program 75.7%
Taylor expanded in t around inf
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6470.2
Applied rewrites70.2%
if -1.8e-140 < y < 1.36000000000000006e63Initial program 87.4%
Taylor expanded in b around inf
*-commutativeN/A
sub-negN/A
+-commutativeN/A
remove-double-negN/A
distribute-neg-inN/A
sub-negN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
sub-negN/A
distribute-neg-inN/A
distribute-lft-neg-inN/A
neg-mul-1N/A
remove-double-negN/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
lower-*.f6452.1
Applied rewrites52.1%
Final simplification60.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma (- j) i (* z x)) y)))
(if (<= y -2.3e-17)
t_1
(if (<= y -8.2e-141)
(* (fma (- a) t (* z y)) x)
(if (<= y 1.36e+63) (* (fma (- c) z (* i a)) b) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(-j, i, (z * x)) * y;
double tmp;
if (y <= -2.3e-17) {
tmp = t_1;
} else if (y <= -8.2e-141) {
tmp = fma(-a, t, (z * y)) * x;
} else if (y <= 1.36e+63) {
tmp = fma(-c, z, (i * a)) * b;
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(fma(Float64(-j), i, Float64(z * x)) * y) tmp = 0.0 if (y <= -2.3e-17) tmp = t_1; elseif (y <= -8.2e-141) tmp = Float64(fma(Float64(-a), t, Float64(z * y)) * x); elseif (y <= 1.36e+63) tmp = Float64(fma(Float64(-c), z, Float64(i * a)) * b); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-j) * i + N[(z * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]}, If[LessEqual[y, -2.3e-17], t$95$1, If[LessEqual[y, -8.2e-141], N[(N[((-a) * t + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[y, 1.36e+63], N[(N[((-c) * z + N[(i * a), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-j, i, z \cdot x\right) \cdot y\\
\mathbf{if}\;y \leq -2.3 \cdot 10^{-17}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -8.2 \cdot 10^{-141}:\\
\;\;\;\;\mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\
\mathbf{elif}\;y \leq 1.36 \cdot 10^{+63}:\\
\;\;\;\;\mathsf{fma}\left(-c, z, i \cdot a\right) \cdot b\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -2.30000000000000009e-17 or 1.36000000000000006e63 < y Initial program 71.6%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6467.2
Applied rewrites67.2%
if -2.30000000000000009e-17 < y < -8.20000000000000005e-141Initial program 80.8%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
+-commutativeN/A
mul-1-negN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6458.8
Applied rewrites58.8%
if -8.20000000000000005e-141 < y < 1.36000000000000006e63Initial program 87.4%
Taylor expanded in b around inf
*-commutativeN/A
sub-negN/A
+-commutativeN/A
remove-double-negN/A
distribute-neg-inN/A
sub-negN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
sub-negN/A
distribute-neg-inN/A
distribute-lft-neg-inN/A
neg-mul-1N/A
remove-double-negN/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
lower-*.f6452.1
Applied rewrites52.1%
Final simplification60.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma (- a) t (* z y)) x)))
(if (<= x -5.3e-43)
t_1
(if (<= x 1.4e-160)
(* (fma (- c) z (* i a)) b)
(if (<= x 2e-15) (* (fma (- i) y (* c t)) j) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(-a, t, (z * y)) * x;
double tmp;
if (x <= -5.3e-43) {
tmp = t_1;
} else if (x <= 1.4e-160) {
tmp = fma(-c, z, (i * a)) * b;
} else if (x <= 2e-15) {
tmp = fma(-i, y, (c * t)) * j;
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(fma(Float64(-a), t, Float64(z * y)) * x) tmp = 0.0 if (x <= -5.3e-43) tmp = t_1; elseif (x <= 1.4e-160) tmp = Float64(fma(Float64(-c), z, Float64(i * a)) * b); elseif (x <= 2e-15) tmp = Float64(fma(Float64(-i), y, Float64(c * t)) * j); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-a) * t + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]}, If[LessEqual[x, -5.3e-43], t$95$1, If[LessEqual[x, 1.4e-160], N[(N[((-c) * z + N[(i * a), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[x, 2e-15], N[(N[((-i) * y + N[(c * t), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\
\mathbf{if}\;x \leq -5.3 \cdot 10^{-43}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 1.4 \cdot 10^{-160}:\\
\;\;\;\;\mathsf{fma}\left(-c, z, i \cdot a\right) \cdot b\\
\mathbf{elif}\;x \leq 2 \cdot 10^{-15}:\\
\;\;\;\;\mathsf{fma}\left(-i, y, c \cdot t\right) \cdot j\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -5.3000000000000003e-43 or 2.0000000000000002e-15 < x Initial program 79.0%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
+-commutativeN/A
mul-1-negN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6462.4
Applied rewrites62.4%
if -5.3000000000000003e-43 < x < 1.40000000000000008e-160Initial program 77.3%
Taylor expanded in b around inf
*-commutativeN/A
sub-negN/A
+-commutativeN/A
remove-double-negN/A
distribute-neg-inN/A
sub-negN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
sub-negN/A
distribute-neg-inN/A
distribute-lft-neg-inN/A
neg-mul-1N/A
remove-double-negN/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
lower-*.f6453.5
Applied rewrites53.5%
if 1.40000000000000008e-160 < x < 2.0000000000000002e-15Initial program 84.7%
Taylor expanded in j around inf
*-commutativeN/A
lower-*.f64N/A
cancel-sign-sub-invN/A
+-commutativeN/A
neg-mul-1N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
lower-*.f6455.2
Applied rewrites55.2%
Final simplification58.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (* z y) x)))
(if (<= z -7.4e+80)
t_1
(if (<= z 4.8e-293)
(* (* (- x) t) a)
(if (<= z 9e+79) (* (* (- j) i) y) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (z * y) * x;
double tmp;
if (z <= -7.4e+80) {
tmp = t_1;
} else if (z <= 4.8e-293) {
tmp = (-x * t) * a;
} else if (z <= 9e+79) {
tmp = (-j * i) * y;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
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), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = (z * y) * x
if (z <= (-7.4d+80)) then
tmp = t_1
else if (z <= 4.8d-293) then
tmp = (-x * t) * a
else if (z <= 9d+79) then
tmp = (-j * i) * 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 c, double i, double j) {
double t_1 = (z * y) * x;
double tmp;
if (z <= -7.4e+80) {
tmp = t_1;
} else if (z <= 4.8e-293) {
tmp = (-x * t) * a;
} else if (z <= 9e+79) {
tmp = (-j * i) * y;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (z * y) * x tmp = 0 if z <= -7.4e+80: tmp = t_1 elif z <= 4.8e-293: tmp = (-x * t) * a elif z <= 9e+79: tmp = (-j * i) * y else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(z * y) * x) tmp = 0.0 if (z <= -7.4e+80) tmp = t_1; elseif (z <= 4.8e-293) tmp = Float64(Float64(Float64(-x) * t) * a); elseif (z <= 9e+79) tmp = Float64(Float64(Float64(-j) * i) * y); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (z * y) * x; tmp = 0.0; if (z <= -7.4e+80) tmp = t_1; elseif (z <= 4.8e-293) tmp = (-x * t) * a; elseif (z <= 9e+79) tmp = (-j * i) * y; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(z * y), $MachinePrecision] * x), $MachinePrecision]}, If[LessEqual[z, -7.4e+80], t$95$1, If[LessEqual[z, 4.8e-293], N[(N[((-x) * t), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[z, 9e+79], N[(N[((-j) * i), $MachinePrecision] * y), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(z \cdot y\right) \cdot x\\
\mathbf{if}\;z \leq -7.4 \cdot 10^{+80}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 4.8 \cdot 10^{-293}:\\
\;\;\;\;\left(\left(-x\right) \cdot t\right) \cdot a\\
\mathbf{elif}\;z \leq 9 \cdot 10^{+79}:\\
\;\;\;\;\left(\left(-j\right) \cdot i\right) \cdot y\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -7.39999999999999992e80 or 8.99999999999999987e79 < z Initial program 73.1%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
+-commutativeN/A
mul-1-negN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6457.4
Applied rewrites57.4%
Taylor expanded in a around 0
Applied rewrites49.1%
if -7.39999999999999992e80 < z < 4.7999999999999998e-293Initial program 85.5%
Taylor expanded in j around 0
sub-negN/A
+-commutativeN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
sub-negN/A
distribute-neg-inN/A
distribute-lft-neg-inN/A
neg-mul-1N/A
remove-double-negN/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
Applied rewrites74.9%
Taylor expanded in t around inf
Applied rewrites34.3%
if 4.7999999999999998e-293 < z < 8.99999999999999987e79Initial program 79.5%
Taylor expanded in x around 0
sub-negN/A
+-commutativeN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
sub-negN/A
distribute-neg-inN/A
distribute-lft-neg-inN/A
neg-mul-1N/A
remove-double-negN/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
Applied rewrites66.8%
Taylor expanded in a around inf
Applied rewrites20.2%
Taylor expanded in y around inf
Applied rewrites33.9%
Final simplification39.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma (- a) t (* z y)) x)))
(if (<= x -5.3e-43)
t_1
(if (<= x 1.8e-42) (* (fma (- c) z (* i a)) b) t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(-a, t, (z * y)) * x;
double tmp;
if (x <= -5.3e-43) {
tmp = t_1;
} else if (x <= 1.8e-42) {
tmp = fma(-c, z, (i * a)) * b;
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(fma(Float64(-a), t, Float64(z * y)) * x) tmp = 0.0 if (x <= -5.3e-43) tmp = t_1; elseif (x <= 1.8e-42) tmp = Float64(fma(Float64(-c), z, Float64(i * a)) * b); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-a) * t + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]}, If[LessEqual[x, -5.3e-43], t$95$1, If[LessEqual[x, 1.8e-42], N[(N[((-c) * z + N[(i * a), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\
\mathbf{if}\;x \leq -5.3 \cdot 10^{-43}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 1.8 \cdot 10^{-42}:\\
\;\;\;\;\mathsf{fma}\left(-c, z, i \cdot a\right) \cdot b\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -5.3000000000000003e-43 or 1.8000000000000001e-42 < x Initial program 79.5%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
+-commutativeN/A
mul-1-negN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6460.5
Applied rewrites60.5%
if -5.3000000000000003e-43 < x < 1.8000000000000001e-42Initial program 78.4%
Taylor expanded in b around inf
*-commutativeN/A
sub-negN/A
+-commutativeN/A
remove-double-negN/A
distribute-neg-inN/A
sub-negN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
sub-negN/A
distribute-neg-inN/A
distribute-lft-neg-inN/A
neg-mul-1N/A
remove-double-negN/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
lower-*.f6451.2
Applied rewrites51.2%
Final simplification56.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma (- b) z (* j t)) c)))
(if (<= c -5.5e-9)
t_1
(if (<= c 8.4e+182) (* (fma (- a) t (* z y)) x) t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(-b, z, (j * t)) * c;
double tmp;
if (c <= -5.5e-9) {
tmp = t_1;
} else if (c <= 8.4e+182) {
tmp = fma(-a, t, (z * y)) * x;
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(fma(Float64(-b), z, Float64(j * t)) * c) tmp = 0.0 if (c <= -5.5e-9) tmp = t_1; elseif (c <= 8.4e+182) tmp = Float64(fma(Float64(-a), t, Float64(z * y)) * x); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-b) * z + N[(j * t), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision]}, If[LessEqual[c, -5.5e-9], t$95$1, If[LessEqual[c, 8.4e+182], N[(N[((-a) * t + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-b, z, j \cdot t\right) \cdot c\\
\mathbf{if}\;c \leq -5.5 \cdot 10^{-9}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq 8.4 \cdot 10^{+182}:\\
\;\;\;\;\mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if c < -5.4999999999999996e-9 or 8.3999999999999996e182 < c Initial program 70.6%
Taylor expanded in c around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6464.7
Applied rewrites64.7%
if -5.4999999999999996e-9 < c < 8.3999999999999996e182Initial program 83.5%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
+-commutativeN/A
mul-1-negN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6449.2
Applied rewrites49.2%
Final simplification54.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma (- a) t (* z y)) x)))
(if (<= t -4.1e+29)
t_1
(if (<= t 3.5e-117) (* (fma (- b) c (* y x)) z) t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(-a, t, (z * y)) * x;
double tmp;
if (t <= -4.1e+29) {
tmp = t_1;
} else if (t <= 3.5e-117) {
tmp = fma(-b, c, (y * x)) * z;
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(fma(Float64(-a), t, Float64(z * y)) * x) tmp = 0.0 if (t <= -4.1e+29) tmp = t_1; elseif (t <= 3.5e-117) tmp = Float64(fma(Float64(-b), c, Float64(y * x)) * z); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-a) * t + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]}, If[LessEqual[t, -4.1e+29], t$95$1, If[LessEqual[t, 3.5e-117], N[(N[((-b) * c + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\
\mathbf{if}\;t \leq -4.1 \cdot 10^{+29}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 3.5 \cdot 10^{-117}:\\
\;\;\;\;\mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -4.1000000000000003e29 or 3.4999999999999998e-117 < t Initial program 72.7%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
+-commutativeN/A
mul-1-negN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6455.1
Applied rewrites55.1%
if -4.1000000000000003e29 < t < 3.4999999999999998e-117Initial program 87.4%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
lower-*.f6452.1
Applied rewrites52.1%
Final simplification53.8%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= y -3.4e-56)
(* (* z y) x)
(if (<= y 3.5e-119)
(* (* b a) i)
(if (<= y 3.5e+87) (* (* c t) j) (* (* z x) y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (y <= -3.4e-56) {
tmp = (z * y) * x;
} else if (y <= 3.5e-119) {
tmp = (b * a) * i;
} else if (y <= 3.5e+87) {
tmp = (c * t) * j;
} else {
tmp = (z * x) * y;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
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), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (y <= (-3.4d-56)) then
tmp = (z * y) * x
else if (y <= 3.5d-119) then
tmp = (b * a) * i
else if (y <= 3.5d+87) then
tmp = (c * t) * j
else
tmp = (z * x) * y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (y <= -3.4e-56) {
tmp = (z * y) * x;
} else if (y <= 3.5e-119) {
tmp = (b * a) * i;
} else if (y <= 3.5e+87) {
tmp = (c * t) * j;
} else {
tmp = (z * x) * y;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if y <= -3.4e-56: tmp = (z * y) * x elif y <= 3.5e-119: tmp = (b * a) * i elif y <= 3.5e+87: tmp = (c * t) * j else: tmp = (z * x) * y return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (y <= -3.4e-56) tmp = Float64(Float64(z * y) * x); elseif (y <= 3.5e-119) tmp = Float64(Float64(b * a) * i); elseif (y <= 3.5e+87) tmp = Float64(Float64(c * t) * j); else tmp = Float64(Float64(z * x) * y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (y <= -3.4e-56) tmp = (z * y) * x; elseif (y <= 3.5e-119) tmp = (b * a) * i; elseif (y <= 3.5e+87) tmp = (c * t) * j; else tmp = (z * x) * y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[y, -3.4e-56], N[(N[(z * y), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[y, 3.5e-119], N[(N[(b * a), $MachinePrecision] * i), $MachinePrecision], If[LessEqual[y, 3.5e+87], N[(N[(c * t), $MachinePrecision] * j), $MachinePrecision], N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -3.4 \cdot 10^{-56}:\\
\;\;\;\;\left(z \cdot y\right) \cdot x\\
\mathbf{elif}\;y \leq 3.5 \cdot 10^{-119}:\\
\;\;\;\;\left(b \cdot a\right) \cdot i\\
\mathbf{elif}\;y \leq 3.5 \cdot 10^{+87}:\\
\;\;\;\;\left(c \cdot t\right) \cdot j\\
\mathbf{else}:\\
\;\;\;\;\left(z \cdot x\right) \cdot y\\
\end{array}
\end{array}
if y < -3.39999999999999982e-56Initial program 77.1%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
+-commutativeN/A
mul-1-negN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6451.2
Applied rewrites51.2%
Taylor expanded in a around 0
Applied rewrites41.8%
if -3.39999999999999982e-56 < y < 3.5e-119Initial program 86.8%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
*-commutativeN/A
associate-*r*N/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6436.9
Applied rewrites36.9%
Taylor expanded in b around inf
Applied rewrites31.1%
if 3.5e-119 < y < 3.49999999999999986e87Initial program 81.1%
Taylor expanded in j around inf
*-commutativeN/A
lower-*.f64N/A
cancel-sign-sub-invN/A
+-commutativeN/A
neg-mul-1N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
lower-*.f6442.4
Applied rewrites42.4%
Taylor expanded in c around inf
Applied rewrites32.2%
if 3.49999999999999986e87 < y Initial program 66.3%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6478.5
Applied rewrites78.5%
Taylor expanded in x around inf
Applied rewrites50.3%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= y -3.7e-57)
(* (* z y) x)
(if (<= y 2.35e-119)
(* (* i b) a)
(if (<= y 3.5e+87) (* (* c t) j) (* (* z x) y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (y <= -3.7e-57) {
tmp = (z * y) * x;
} else if (y <= 2.35e-119) {
tmp = (i * b) * a;
} else if (y <= 3.5e+87) {
tmp = (c * t) * j;
} else {
tmp = (z * x) * y;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
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), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (y <= (-3.7d-57)) then
tmp = (z * y) * x
else if (y <= 2.35d-119) then
tmp = (i * b) * a
else if (y <= 3.5d+87) then
tmp = (c * t) * j
else
tmp = (z * x) * y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (y <= -3.7e-57) {
tmp = (z * y) * x;
} else if (y <= 2.35e-119) {
tmp = (i * b) * a;
} else if (y <= 3.5e+87) {
tmp = (c * t) * j;
} else {
tmp = (z * x) * y;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if y <= -3.7e-57: tmp = (z * y) * x elif y <= 2.35e-119: tmp = (i * b) * a elif y <= 3.5e+87: tmp = (c * t) * j else: tmp = (z * x) * y return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (y <= -3.7e-57) tmp = Float64(Float64(z * y) * x); elseif (y <= 2.35e-119) tmp = Float64(Float64(i * b) * a); elseif (y <= 3.5e+87) tmp = Float64(Float64(c * t) * j); else tmp = Float64(Float64(z * x) * y); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (y <= -3.7e-57) tmp = (z * y) * x; elseif (y <= 2.35e-119) tmp = (i * b) * a; elseif (y <= 3.5e+87) tmp = (c * t) * j; else tmp = (z * x) * y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[y, -3.7e-57], N[(N[(z * y), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[y, 2.35e-119], N[(N[(i * b), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[y, 3.5e+87], N[(N[(c * t), $MachinePrecision] * j), $MachinePrecision], N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -3.7 \cdot 10^{-57}:\\
\;\;\;\;\left(z \cdot y\right) \cdot x\\
\mathbf{elif}\;y \leq 2.35 \cdot 10^{-119}:\\
\;\;\;\;\left(i \cdot b\right) \cdot a\\
\mathbf{elif}\;y \leq 3.5 \cdot 10^{+87}:\\
\;\;\;\;\left(c \cdot t\right) \cdot j\\
\mathbf{else}:\\
\;\;\;\;\left(z \cdot x\right) \cdot y\\
\end{array}
\end{array}
if y < -3.7e-57Initial program 77.1%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
+-commutativeN/A
mul-1-negN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6451.2
Applied rewrites51.2%
Taylor expanded in a around 0
Applied rewrites41.8%
if -3.7e-57 < y < 2.35000000000000001e-119Initial program 86.8%
Taylor expanded in x around 0
sub-negN/A
+-commutativeN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
sub-negN/A
distribute-neg-inN/A
distribute-lft-neg-inN/A
neg-mul-1N/A
remove-double-negN/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
Applied rewrites62.7%
Taylor expanded in a around inf
Applied rewrites29.9%
if 2.35000000000000001e-119 < y < 3.49999999999999986e87Initial program 81.1%
Taylor expanded in j around inf
*-commutativeN/A
lower-*.f64N/A
cancel-sign-sub-invN/A
+-commutativeN/A
neg-mul-1N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
lower-*.f6442.4
Applied rewrites42.4%
Taylor expanded in c around inf
Applied rewrites32.2%
if 3.49999999999999986e87 < y Initial program 66.3%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6478.5
Applied rewrites78.5%
Taylor expanded in x around inf
Applied rewrites50.3%
Final simplification37.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (* z y) x)))
(if (<= y -3.7e-57)
t_1
(if (<= y 2.35e-119)
(* (* i b) a)
(if (<= y 2.9e+87) (* (* c t) j) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (z * y) * x;
double tmp;
if (y <= -3.7e-57) {
tmp = t_1;
} else if (y <= 2.35e-119) {
tmp = (i * b) * a;
} else if (y <= 2.9e+87) {
tmp = (c * t) * j;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
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), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = (z * y) * x
if (y <= (-3.7d-57)) then
tmp = t_1
else if (y <= 2.35d-119) then
tmp = (i * b) * a
else if (y <= 2.9d+87) then
tmp = (c * t) * j
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 c, double i, double j) {
double t_1 = (z * y) * x;
double tmp;
if (y <= -3.7e-57) {
tmp = t_1;
} else if (y <= 2.35e-119) {
tmp = (i * b) * a;
} else if (y <= 2.9e+87) {
tmp = (c * t) * j;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (z * y) * x tmp = 0 if y <= -3.7e-57: tmp = t_1 elif y <= 2.35e-119: tmp = (i * b) * a elif y <= 2.9e+87: tmp = (c * t) * j else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(z * y) * x) tmp = 0.0 if (y <= -3.7e-57) tmp = t_1; elseif (y <= 2.35e-119) tmp = Float64(Float64(i * b) * a); elseif (y <= 2.9e+87) tmp = Float64(Float64(c * t) * j); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (z * y) * x; tmp = 0.0; if (y <= -3.7e-57) tmp = t_1; elseif (y <= 2.35e-119) tmp = (i * b) * a; elseif (y <= 2.9e+87) tmp = (c * t) * j; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(z * y), $MachinePrecision] * x), $MachinePrecision]}, If[LessEqual[y, -3.7e-57], t$95$1, If[LessEqual[y, 2.35e-119], N[(N[(i * b), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[y, 2.9e+87], N[(N[(c * t), $MachinePrecision] * j), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(z \cdot y\right) \cdot x\\
\mathbf{if}\;y \leq -3.7 \cdot 10^{-57}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 2.35 \cdot 10^{-119}:\\
\;\;\;\;\left(i \cdot b\right) \cdot a\\
\mathbf{elif}\;y \leq 2.9 \cdot 10^{+87}:\\
\;\;\;\;\left(c \cdot t\right) \cdot j\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -3.7e-57 or 2.8999999999999998e87 < y Initial program 72.9%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
+-commutativeN/A
mul-1-negN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6452.5
Applied rewrites52.5%
Taylor expanded in a around 0
Applied rewrites44.3%
if -3.7e-57 < y < 2.35000000000000001e-119Initial program 86.8%
Taylor expanded in x around 0
sub-negN/A
+-commutativeN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
sub-negN/A
distribute-neg-inN/A
distribute-lft-neg-inN/A
neg-mul-1N/A
remove-double-negN/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
Applied rewrites62.7%
Taylor expanded in a around inf
Applied rewrites29.9%
if 2.35000000000000001e-119 < y < 2.8999999999999998e87Initial program 81.1%
Taylor expanded in j around inf
*-commutativeN/A
lower-*.f64N/A
cancel-sign-sub-invN/A
+-commutativeN/A
neg-mul-1N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
lower-*.f6442.4
Applied rewrites42.4%
Taylor expanded in c around inf
Applied rewrites32.2%
Final simplification37.2%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= b 4.7e+127) (* (fma (- a) t (* z y)) x) (* (* b a) i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (b <= 4.7e+127) {
tmp = fma(-a, t, (z * y)) * x;
} else {
tmp = (b * a) * i;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (b <= 4.7e+127) tmp = Float64(fma(Float64(-a), t, Float64(z * y)) * x); else tmp = Float64(Float64(b * a) * i); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[b, 4.7e+127], N[(N[((-a) * t + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], N[(N[(b * a), $MachinePrecision] * i), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq 4.7 \cdot 10^{+127}:\\
\;\;\;\;\mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\
\mathbf{else}:\\
\;\;\;\;\left(b \cdot a\right) \cdot i\\
\end{array}
\end{array}
if b < 4.70000000000000035e127Initial program 78.1%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
+-commutativeN/A
mul-1-negN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6447.5
Applied rewrites47.5%
if 4.70000000000000035e127 < b Initial program 84.6%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
*-commutativeN/A
associate-*r*N/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6467.7
Applied rewrites67.7%
Taylor expanded in b around inf
Applied rewrites57.5%
(FPCore (x y z t a b c i j) :precision binary64 (let* ((t_1 (* (* z y) x))) (if (<= y -3.7e-57) t_1 (if (<= y 1.7e-65) (* (* i b) a) t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (z * y) * x;
double tmp;
if (y <= -3.7e-57) {
tmp = t_1;
} else if (y <= 1.7e-65) {
tmp = (i * b) * a;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
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), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = (z * y) * x
if (y <= (-3.7d-57)) then
tmp = t_1
else if (y <= 1.7d-65) then
tmp = (i * b) * 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 c, double i, double j) {
double t_1 = (z * y) * x;
double tmp;
if (y <= -3.7e-57) {
tmp = t_1;
} else if (y <= 1.7e-65) {
tmp = (i * b) * a;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (z * y) * x tmp = 0 if y <= -3.7e-57: tmp = t_1 elif y <= 1.7e-65: tmp = (i * b) * a else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(z * y) * x) tmp = 0.0 if (y <= -3.7e-57) tmp = t_1; elseif (y <= 1.7e-65) tmp = Float64(Float64(i * b) * a); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (z * y) * x; tmp = 0.0; if (y <= -3.7e-57) tmp = t_1; elseif (y <= 1.7e-65) tmp = (i * b) * a; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(z * y), $MachinePrecision] * x), $MachinePrecision]}, If[LessEqual[y, -3.7e-57], t$95$1, If[LessEqual[y, 1.7e-65], N[(N[(i * b), $MachinePrecision] * a), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(z \cdot y\right) \cdot x\\
\mathbf{if}\;y \leq -3.7 \cdot 10^{-57}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 1.7 \cdot 10^{-65}:\\
\;\;\;\;\left(i \cdot b\right) \cdot a\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -3.7e-57 or 1.69999999999999993e-65 < y Initial program 74.5%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
+-commutativeN/A
mul-1-negN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6450.9
Applied rewrites50.9%
Taylor expanded in a around 0
Applied rewrites38.9%
if -3.7e-57 < y < 1.69999999999999993e-65Initial program 85.7%
Taylor expanded in x around 0
sub-negN/A
+-commutativeN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
sub-negN/A
distribute-neg-inN/A
distribute-lft-neg-inN/A
neg-mul-1N/A
remove-double-negN/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
Applied rewrites63.5%
Taylor expanded in a around inf
Applied rewrites29.9%
Final simplification35.2%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= i -2e-76) (* (* i a) b) (if (<= i 2.4e-31) (* (* j t) c) (* (* i b) a))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (i <= -2e-76) {
tmp = (i * a) * b;
} else if (i <= 2.4e-31) {
tmp = (j * t) * c;
} else {
tmp = (i * b) * a;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
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), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (i <= (-2d-76)) then
tmp = (i * a) * b
else if (i <= 2.4d-31) then
tmp = (j * t) * c
else
tmp = (i * b) * a
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (i <= -2e-76) {
tmp = (i * a) * b;
} else if (i <= 2.4e-31) {
tmp = (j * t) * c;
} else {
tmp = (i * b) * a;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if i <= -2e-76: tmp = (i * a) * b elif i <= 2.4e-31: tmp = (j * t) * c else: tmp = (i * b) * a return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (i <= -2e-76) tmp = Float64(Float64(i * a) * b); elseif (i <= 2.4e-31) tmp = Float64(Float64(j * t) * c); else tmp = Float64(Float64(i * b) * a); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (i <= -2e-76) tmp = (i * a) * b; elseif (i <= 2.4e-31) tmp = (j * t) * c; else tmp = (i * b) * a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[i, -2e-76], N[(N[(i * a), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[i, 2.4e-31], N[(N[(j * t), $MachinePrecision] * c), $MachinePrecision], N[(N[(i * b), $MachinePrecision] * a), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -2 \cdot 10^{-76}:\\
\;\;\;\;\left(i \cdot a\right) \cdot b\\
\mathbf{elif}\;i \leq 2.4 \cdot 10^{-31}:\\
\;\;\;\;\left(j \cdot t\right) \cdot c\\
\mathbf{else}:\\
\;\;\;\;\left(i \cdot b\right) \cdot a\\
\end{array}
\end{array}
if i < -1.99999999999999985e-76Initial program 81.9%
Taylor expanded in x around 0
sub-negN/A
+-commutativeN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
sub-negN/A
distribute-neg-inN/A
distribute-lft-neg-inN/A
neg-mul-1N/A
remove-double-negN/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
Applied rewrites63.9%
Taylor expanded in a around inf
Applied rewrites32.3%
Applied rewrites35.8%
if -1.99999999999999985e-76 < i < 2.4e-31Initial program 78.2%
Taylor expanded in x around 0
sub-negN/A
+-commutativeN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
sub-negN/A
distribute-neg-inN/A
distribute-lft-neg-inN/A
neg-mul-1N/A
remove-double-negN/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
Applied rewrites50.0%
Taylor expanded in t around inf
Applied rewrites24.7%
if 2.4e-31 < i Initial program 76.9%
Taylor expanded in x around 0
sub-negN/A
+-commutativeN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
sub-negN/A
distribute-neg-inN/A
distribute-lft-neg-inN/A
neg-mul-1N/A
remove-double-negN/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
Applied rewrites62.1%
Taylor expanded in a around inf
Applied rewrites29.4%
Final simplification29.5%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= t 2.7e-108) (* (* i a) b) (* (* i b) a)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= 2.7e-108) {
tmp = (i * a) * b;
} else {
tmp = (i * b) * a;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
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), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (t <= 2.7d-108) then
tmp = (i * a) * b
else
tmp = (i * b) * a
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= 2.7e-108) {
tmp = (i * a) * b;
} else {
tmp = (i * b) * a;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if t <= 2.7e-108: tmp = (i * a) * b else: tmp = (i * b) * a return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (t <= 2.7e-108) tmp = Float64(Float64(i * a) * b); else tmp = Float64(Float64(i * b) * a); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (t <= 2.7e-108) tmp = (i * a) * b; else tmp = (i * b) * a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[t, 2.7e-108], N[(N[(i * a), $MachinePrecision] * b), $MachinePrecision], N[(N[(i * b), $MachinePrecision] * a), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq 2.7 \cdot 10^{-108}:\\
\;\;\;\;\left(i \cdot a\right) \cdot b\\
\mathbf{else}:\\
\;\;\;\;\left(i \cdot b\right) \cdot a\\
\end{array}
\end{array}
if t < 2.70000000000000005e-108Initial program 80.8%
Taylor expanded in x around 0
sub-negN/A
+-commutativeN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
sub-negN/A
distribute-neg-inN/A
distribute-lft-neg-inN/A
neg-mul-1N/A
remove-double-negN/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
Applied rewrites62.3%
Taylor expanded in a around inf
Applied rewrites20.3%
Applied rewrites23.1%
if 2.70000000000000005e-108 < t Initial program 75.9%
Taylor expanded in x around 0
sub-negN/A
+-commutativeN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
sub-negN/A
distribute-neg-inN/A
distribute-lft-neg-inN/A
neg-mul-1N/A
remove-double-negN/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
Applied rewrites48.7%
Taylor expanded in a around inf
Applied rewrites18.4%
Final simplification21.4%
(FPCore (x y z t a b c i j) :precision binary64 (* (* i a) b))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return (i * a) * b;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
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), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = (i * a) * b
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return (i * a) * b;
}
def code(x, y, z, t, a, b, c, i, j): return (i * a) * b
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(i * a) * b) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = (i * a) * b; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(i * a), $MachinePrecision] * b), $MachinePrecision]
\begin{array}{l}
\\
\left(i \cdot a\right) \cdot b
\end{array}
Initial program 79.1%
Taylor expanded in x around 0
sub-negN/A
+-commutativeN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
sub-negN/A
distribute-neg-inN/A
distribute-lft-neg-inN/A
neg-mul-1N/A
remove-double-negN/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
Applied rewrites57.5%
Taylor expanded in a around inf
Applied rewrites19.6%
Applied rewrites19.6%
Final simplification19.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a))))
(/
(* j (- (pow (* c t) 2.0) (pow (* i y) 2.0)))
(+ (* c t) (* i y)))))
(t_2
(-
(* x (- (* z y) (* a t)))
(- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j)))))
(if (< t -8.120978919195912e-33)
t_2
(if (< t -4.712553818218485e-169)
t_1
(if (< t -7.633533346031584e-308)
t_2
(if (< t 1.0535888557455487e-139) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (pow((c * t), 2.0) - pow((i * y), 2.0))) / ((c * t) + (i * y)));
double t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j));
double tmp;
if (t < -8.120978919195912e-33) {
tmp = t_2;
} else if (t < -4.712553818218485e-169) {
tmp = t_1;
} else if (t < -7.633533346031584e-308) {
tmp = t_2;
} else if (t < 1.0535888557455487e-139) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
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), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (((c * t) ** 2.0d0) - ((i * y) ** 2.0d0))) / ((c * t) + (i * y)))
t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j))
if (t < (-8.120978919195912d-33)) then
tmp = t_2
else if (t < (-4.712553818218485d-169)) then
tmp = t_1
else if (t < (-7.633533346031584d-308)) then
tmp = t_2
else if (t < 1.0535888557455487d-139) 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 c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (Math.pow((c * t), 2.0) - Math.pow((i * y), 2.0))) / ((c * t) + (i * y)));
double t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j));
double tmp;
if (t < -8.120978919195912e-33) {
tmp = t_2;
} else if (t < -4.712553818218485e-169) {
tmp = t_1;
} else if (t < -7.633533346031584e-308) {
tmp = t_2;
} else if (t < 1.0535888557455487e-139) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (math.pow((c * t), 2.0) - math.pow((i * y), 2.0))) / ((c * t) + (i * y))) t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j)) tmp = 0 if t < -8.120978919195912e-33: tmp = t_2 elif t < -4.712553818218485e-169: tmp = t_1 elif t < -7.633533346031584e-308: tmp = t_2 elif t < 1.0535888557455487e-139: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(i * a)))) + Float64(Float64(j * Float64((Float64(c * t) ^ 2.0) - (Float64(i * y) ^ 2.0))) / Float64(Float64(c * t) + Float64(i * y)))) t_2 = Float64(Float64(x * Float64(Float64(z * y) - Float64(a * t))) - Float64(Float64(b * Float64(Float64(z * c) - Float64(a * i))) - Float64(Float64(Float64(c * t) - Float64(y * i)) * j))) tmp = 0.0 if (t < -8.120978919195912e-33) tmp = t_2; elseif (t < -4.712553818218485e-169) tmp = t_1; elseif (t < -7.633533346031584e-308) tmp = t_2; elseif (t < 1.0535888557455487e-139) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (((c * t) ^ 2.0) - ((i * y) ^ 2.0))) / ((c * t) + (i * y))); t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j)); tmp = 0.0; if (t < -8.120978919195912e-33) tmp = t_2; elseif (t < -4.712553818218485e-169) tmp = t_1; elseif (t < -7.633533346031584e-308) tmp = t_2; elseif (t < 1.0535888557455487e-139) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(j * N[(N[Power[N[(c * t), $MachinePrecision], 2.0], $MachinePrecision] - N[Power[N[(i * y), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(c * t), $MachinePrecision] + N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[(N[(z * y), $MachinePrecision] - N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(b * N[(N[(z * c), $MachinePrecision] - N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(c * t), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[t, -8.120978919195912e-33], t$95$2, If[Less[t, -4.712553818218485e-169], t$95$1, If[Less[t, -7.633533346031584e-308], t$95$2, If[Less[t, 1.0535888557455487e-139], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \frac{j \cdot \left({\left(c \cdot t\right)}^{2} - {\left(i \cdot y\right)}^{2}\right)}{c \cdot t + i \cdot y}\\
t_2 := x \cdot \left(z \cdot y - a \cdot t\right) - \left(b \cdot \left(z \cdot c - a \cdot i\right) - \left(c \cdot t - y \cdot i\right) \cdot j\right)\\
\mathbf{if}\;t < -8.120978919195912 \cdot 10^{-33}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t < -4.712553818218485 \cdot 10^{-169}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t < -7.633533346031584 \cdot 10^{-308}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t < 1.0535888557455487 \cdot 10^{-139}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
herbie shell --seed 2024277
(FPCore (x y z t a b c i j)
:name "Linear.Matrix:det33 from linear-1.19.1.3"
:precision binary64
:alt
(! :herbie-platform default (if (< t -1015122364899489/125000000000000000000000000000000000000000000000) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t -942510763643697/2000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (/ (* j (- (pow (* c t) 2) (pow (* i y) 2))) (+ (* c t) (* i y)))) (if (< t -238547917063487/3125000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t 10535888557455487/100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (/ (* j (- (pow (* c t) 2) (pow (* i y) 2))) (+ (* c t) (* i y)))) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))))))))
(+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))