
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))
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) - (t * i)))) + (j * ((c * a) - (y * i)));
}
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) - (t * i)))) + (j * ((c * a) - (y * i)))
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) - (t * i)))) + (j * ((c * a) - (y * i)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
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(t * i)))) + Float64(j * Float64(Float64(c * a) - Float64(y * i)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i))); 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[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right)
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 26 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))
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) - (t * i)))) + (j * ((c * a) - (y * i)));
}
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) - (t * i)))) + (j * ((c * a) - (y * i)))
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) - (t * i)))) + (j * ((c * a) - (y * i)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
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(t * i)))) + Float64(j * Float64(Float64(c * a) - Float64(y * i)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i))); 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[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right)
\end{array}
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i))))
(* j (- (* c a) (* y i))))))
(if (<= t_1 INFINITY)
t_1
(fma (fma (- x) t (* j c)) a (* (fma (- b) c (* y x)) z)))))
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) - (t * i)))) + (j * ((c * a) - (y * i)));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = fma(fma(-x, t, (j * c)), a, (fma(-b, c, (y * x)) * z));
}
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(t * i)))) + Float64(j * Float64(Float64(c * a) - Float64(y * i)))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = fma(fma(Float64(-x), t, Float64(j * c)), a, Float64(fma(Float64(-b), c, Float64(y * x)) * z)); end return 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[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(N[((-x) * t + N[(j * c), $MachinePrecision]), $MachinePrecision] * a + N[(N[((-b) * c + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision]]]
\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 - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right)\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-x, t, j \cdot c\right), a, \mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) < +inf.0Initial program 90.7%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) Initial program 0.0%
Taylor expanded in t around 0
associate--l+N/A
*-commutativeN/A
lower-fma.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
*-commutativeN/A
lower-*.f64N/A
associate--l+N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
Applied rewrites51.3%
Taylor expanded in i around 0
Applied rewrites64.7%
Final simplification85.1%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= c -7.8e+49)
(fma (fma (- x) t (* j c)) a (* (fma (- b) c (* y x)) z))
(if (<= c 1.05e+259)
(fma
(fma (- i) y (* c a))
j
(fma (fma (- c) b (* y x)) z (* (fma (- x) a (* i b)) t)))
(* (fma (- z) b (* j a)) c))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (c <= -7.8e+49) {
tmp = fma(fma(-x, t, (j * c)), a, (fma(-b, c, (y * x)) * z));
} else if (c <= 1.05e+259) {
tmp = fma(fma(-i, y, (c * a)), j, fma(fma(-c, b, (y * x)), z, (fma(-x, a, (i * b)) * t)));
} else {
tmp = fma(-z, b, (j * a)) * c;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (c <= -7.8e+49) tmp = fma(fma(Float64(-x), t, Float64(j * c)), a, Float64(fma(Float64(-b), c, Float64(y * x)) * z)); elseif (c <= 1.05e+259) tmp = fma(fma(Float64(-i), y, Float64(c * a)), j, fma(fma(Float64(-c), b, Float64(y * x)), z, Float64(fma(Float64(-x), a, Float64(i * b)) * t))); else tmp = Float64(fma(Float64(-z), b, Float64(j * a)) * c); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[c, -7.8e+49], N[(N[((-x) * t + N[(j * c), $MachinePrecision]), $MachinePrecision] * a + N[(N[((-b) * c + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 1.05e+259], N[(N[((-i) * y + N[(c * a), $MachinePrecision]), $MachinePrecision] * j + N[(N[((-c) * b + N[(y * x), $MachinePrecision]), $MachinePrecision] * z + N[(N[((-x) * a + N[(i * b), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[((-z) * b + N[(j * a), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -7.8 \cdot 10^{+49}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-x, t, j \cdot c\right), a, \mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\right)\\
\mathbf{elif}\;c \leq 1.05 \cdot 10^{+259}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \mathsf{fma}\left(\mathsf{fma}\left(-c, b, y \cdot x\right), z, \mathsf{fma}\left(-x, a, i \cdot b\right) \cdot t\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(-z, b, j \cdot a\right) \cdot c\\
\end{array}
\end{array}
if c < -7.8000000000000002e49Initial program 47.9%
Taylor expanded in t around 0
associate--l+N/A
*-commutativeN/A
lower-fma.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
*-commutativeN/A
lower-*.f64N/A
associate--l+N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
Applied rewrites57.7%
Taylor expanded in i around 0
Applied rewrites76.9%
if -7.8000000000000002e49 < c < 1.05000000000000003e259Initial program 78.1%
Taylor expanded in t around 0
associate--l+N/A
*-commutativeN/A
lower-fma.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
*-commutativeN/A
lower-*.f64N/A
associate--l+N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
Applied rewrites83.9%
Applied rewrites83.4%
if 1.05000000000000003e259 < c Initial program 58.7%
Taylor expanded in c around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6483.3
Applied rewrites83.3%
Final simplification82.1%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= a 1.12e+109)
(fma
(fma (- i) y (* c a))
j
(fma (fma (- x) a (* i b)) t (* (fma (- c) b (* y x)) z)))
(fma (fma (- x) t (* j c)) a (* (fma (- b) c (* y x)) z))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (a <= 1.12e+109) {
tmp = fma(fma(-i, y, (c * a)), j, fma(fma(-x, a, (i * b)), t, (fma(-c, b, (y * x)) * z)));
} else {
tmp = fma(fma(-x, t, (j * c)), a, (fma(-b, c, (y * x)) * z));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (a <= 1.12e+109) tmp = fma(fma(Float64(-i), y, Float64(c * a)), j, fma(fma(Float64(-x), a, Float64(i * b)), t, Float64(fma(Float64(-c), b, Float64(y * x)) * z))); else tmp = fma(fma(Float64(-x), t, Float64(j * c)), a, Float64(fma(Float64(-b), c, Float64(y * x)) * z)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[a, 1.12e+109], N[(N[((-i) * y + N[(c * a), $MachinePrecision]), $MachinePrecision] * j + N[(N[((-x) * a + N[(i * b), $MachinePrecision]), $MachinePrecision] * t + N[(N[((-c) * b + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[((-x) * t + N[(j * c), $MachinePrecision]), $MachinePrecision] * a + N[(N[((-b) * c + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq 1.12 \cdot 10^{+109}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \mathsf{fma}\left(\mathsf{fma}\left(-x, a, i \cdot b\right), t, \mathsf{fma}\left(-c, b, y \cdot x\right) \cdot z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-x, t, j \cdot c\right), a, \mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\right)\\
\end{array}
\end{array}
if a < 1.1199999999999999e109Initial program 69.8%
Taylor expanded in t around 0
associate--l+N/A
*-commutativeN/A
lower-fma.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
*-commutativeN/A
lower-*.f64N/A
associate--l+N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
Applied rewrites78.8%
if 1.1199999999999999e109 < a Initial program 76.3%
Taylor expanded in t around 0
associate--l+N/A
*-commutativeN/A
lower-fma.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
*-commutativeN/A
lower-*.f64N/A
associate--l+N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
Applied rewrites70.8%
Taylor expanded in i around 0
Applied rewrites92.5%
Final simplification81.7%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= j -9e+85)
(fma (* (- a) t) x (* (fma (- i) y (* c a)) j))
(if (<= j -1.7e-170)
(* (fma (- x) a (* i b)) t)
(if (<= j -5.8e-251)
(* (fma (- c) b (* y x)) z)
(if (<= j 3.45e+28)
(fma (fma (- z) c (* i t)) b (* (* j c) a))
(+ (* (* z x) y) (* j (- (* c a) (* y i)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (j <= -9e+85) {
tmp = fma((-a * t), x, (fma(-i, y, (c * a)) * j));
} else if (j <= -1.7e-170) {
tmp = fma(-x, a, (i * b)) * t;
} else if (j <= -5.8e-251) {
tmp = fma(-c, b, (y * x)) * z;
} else if (j <= 3.45e+28) {
tmp = fma(fma(-z, c, (i * t)), b, ((j * c) * a));
} else {
tmp = ((z * x) * y) + (j * ((c * a) - (y * i)));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (j <= -9e+85) tmp = fma(Float64(Float64(-a) * t), x, Float64(fma(Float64(-i), y, Float64(c * a)) * j)); elseif (j <= -1.7e-170) tmp = Float64(fma(Float64(-x), a, Float64(i * b)) * t); elseif (j <= -5.8e-251) tmp = Float64(fma(Float64(-c), b, Float64(y * x)) * z); elseif (j <= 3.45e+28) tmp = fma(fma(Float64(-z), c, Float64(i * t)), b, Float64(Float64(j * c) * a)); else tmp = Float64(Float64(Float64(z * x) * y) + Float64(j * Float64(Float64(c * a) - Float64(y * i)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[j, -9e+85], N[(N[((-a) * t), $MachinePrecision] * x + N[(N[((-i) * y + N[(c * a), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -1.7e-170], N[(N[((-x) * a + N[(i * b), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[j, -5.8e-251], N[(N[((-c) * b + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision], If[LessEqual[j, 3.45e+28], N[(N[((-z) * c + N[(i * t), $MachinePrecision]), $MachinePrecision] * b + N[(N[(j * c), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision], N[(N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision] + N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -9 \cdot 10^{+85}:\\
\;\;\;\;\mathsf{fma}\left(\left(-a\right) \cdot t, x, \mathsf{fma}\left(-i, y, c \cdot a\right) \cdot j\right)\\
\mathbf{elif}\;j \leq -1.7 \cdot 10^{-170}:\\
\;\;\;\;\mathsf{fma}\left(-x, a, i \cdot b\right) \cdot t\\
\mathbf{elif}\;j \leq -5.8 \cdot 10^{-251}:\\
\;\;\;\;\mathsf{fma}\left(-c, b, y \cdot x\right) \cdot z\\
\mathbf{elif}\;j \leq 3.45 \cdot 10^{+28}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-z, c, i \cdot t\right), b, \left(j \cdot c\right) \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;\left(z \cdot x\right) \cdot y + j \cdot \left(c \cdot a - y \cdot i\right)\\
\end{array}
\end{array}
if j < -9.00000000000000013e85Initial program 72.9%
Taylor expanded in b around 0
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
sub-negN/A
+-commutativeN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
*-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
*-commutativeN/A
lower-*.f6486.5
Applied rewrites86.5%
Taylor expanded in y around 0
Applied rewrites83.5%
if -9.00000000000000013e85 < j < -1.70000000000000006e-170Initial program 72.3%
Taylor expanded in t 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-*.f6453.9
Applied rewrites53.9%
if -1.70000000000000006e-170 < j < -5.8000000000000001e-251Initial program 58.4%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6478.3
Applied rewrites78.3%
if -5.8000000000000001e-251 < j < 3.45e28Initial program 72.3%
Taylor expanded in y 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
remove-double-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f64N/A
Applied rewrites70.8%
Taylor expanded in x around 0
Applied rewrites59.8%
if 3.45e28 < j Initial program 71.4%
Taylor expanded in y around inf
*-commutativeN/A
associate-*r*N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f6465.2
Applied rewrites65.2%
Final simplification65.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (fma (- x) t (* j c)))
(t_2 (fma t_1 a (* (fma (- b) c (* y x)) z))))
(if (<= z -8.4e+74)
t_2
(if (<= z 8e-216)
(fma (- i) (* j y) (fma (fma (- a) x (* i b)) t (* (* z y) x)))
(if (<= z 1.05e+27) (fma (fma (- z) c (* i t)) b (* t_1 a)) 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 = fma(-x, t, (j * c));
double t_2 = fma(t_1, a, (fma(-b, c, (y * x)) * z));
double tmp;
if (z <= -8.4e+74) {
tmp = t_2;
} else if (z <= 8e-216) {
tmp = fma(-i, (j * y), fma(fma(-a, x, (i * b)), t, ((z * y) * x)));
} else if (z <= 1.05e+27) {
tmp = fma(fma(-z, c, (i * t)), b, (t_1 * a));
} else {
tmp = t_2;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = fma(Float64(-x), t, Float64(j * c)) t_2 = fma(t_1, a, Float64(fma(Float64(-b), c, Float64(y * x)) * z)) tmp = 0.0 if (z <= -8.4e+74) tmp = t_2; elseif (z <= 8e-216) tmp = fma(Float64(-i), Float64(j * y), fma(fma(Float64(-a), x, Float64(i * b)), t, Float64(Float64(z * y) * x))); elseif (z <= 1.05e+27) tmp = fma(fma(Float64(-z), c, Float64(i * t)), b, Float64(t_1 * a)); else tmp = t_2; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[((-x) * t + N[(j * c), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t$95$1 * a + N[(N[((-b) * c + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -8.4e+74], t$95$2, If[LessEqual[z, 8e-216], N[((-i) * N[(j * y), $MachinePrecision] + N[(N[((-a) * x + N[(i * b), $MachinePrecision]), $MachinePrecision] * t + N[(N[(z * y), $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.05e+27], N[(N[((-z) * c + N[(i * t), $MachinePrecision]), $MachinePrecision] * b + N[(t$95$1 * a), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-x, t, j \cdot c\right)\\
t_2 := \mathsf{fma}\left(t\_1, a, \mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\right)\\
\mathbf{if}\;z \leq -8.4 \cdot 10^{+74}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq 8 \cdot 10^{-216}:\\
\;\;\;\;\mathsf{fma}\left(-i, j \cdot y, \mathsf{fma}\left(\mathsf{fma}\left(-a, x, i \cdot b\right), t, \left(z \cdot y\right) \cdot x\right)\right)\\
\mathbf{elif}\;z \leq 1.05 \cdot 10^{+27}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-z, c, i \cdot t\right), b, t\_1 \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if z < -8.3999999999999995e74 or 1.04999999999999997e27 < z Initial program 62.8%
Taylor expanded in t around 0
associate--l+N/A
*-commutativeN/A
lower-fma.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
*-commutativeN/A
lower-*.f64N/A
associate--l+N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
Applied rewrites76.0%
Taylor expanded in i around 0
Applied rewrites81.5%
if -8.3999999999999995e74 < z < 8.0000000000000003e-216Initial program 73.2%
Taylor expanded in t around 0
associate--l+N/A
*-commutativeN/A
lower-fma.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
*-commutativeN/A
lower-*.f64N/A
associate--l+N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
Applied rewrites76.7%
Taylor expanded in c around 0
Applied rewrites74.6%
if 8.0000000000000003e-216 < z < 1.04999999999999997e27Initial program 83.8%
Taylor expanded in y 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
remove-double-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f64N/A
Applied rewrites76.5%
Final simplification77.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (fma (- x) t (* j c)))
(t_2 (fma t_1 a (* (fma (- b) c (* y x)) z))))
(if (<= z -8.4e+74)
t_2
(if (<= z 8e-216)
(fma (fma (- y) j (* b t)) i (* (fma (- t) a (* z y)) x))
(if (<= z 1.05e+27) (fma (fma (- z) c (* i t)) b (* t_1 a)) 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 = fma(-x, t, (j * c));
double t_2 = fma(t_1, a, (fma(-b, c, (y * x)) * z));
double tmp;
if (z <= -8.4e+74) {
tmp = t_2;
} else if (z <= 8e-216) {
tmp = fma(fma(-y, j, (b * t)), i, (fma(-t, a, (z * y)) * x));
} else if (z <= 1.05e+27) {
tmp = fma(fma(-z, c, (i * t)), b, (t_1 * a));
} else {
tmp = t_2;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = fma(Float64(-x), t, Float64(j * c)) t_2 = fma(t_1, a, Float64(fma(Float64(-b), c, Float64(y * x)) * z)) tmp = 0.0 if (z <= -8.4e+74) tmp = t_2; elseif (z <= 8e-216) tmp = fma(fma(Float64(-y), j, Float64(b * t)), i, Float64(fma(Float64(-t), a, Float64(z * y)) * x)); elseif (z <= 1.05e+27) tmp = fma(fma(Float64(-z), c, Float64(i * t)), b, Float64(t_1 * a)); else tmp = t_2; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[((-x) * t + N[(j * c), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t$95$1 * a + N[(N[((-b) * c + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -8.4e+74], t$95$2, If[LessEqual[z, 8e-216], N[(N[((-y) * j + N[(b * t), $MachinePrecision]), $MachinePrecision] * i + N[(N[((-t) * a + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.05e+27], N[(N[((-z) * c + N[(i * t), $MachinePrecision]), $MachinePrecision] * b + N[(t$95$1 * a), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-x, t, j \cdot c\right)\\
t_2 := \mathsf{fma}\left(t\_1, a, \mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\right)\\
\mathbf{if}\;z \leq -8.4 \cdot 10^{+74}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq 8 \cdot 10^{-216}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-y, j, b \cdot t\right), i, \mathsf{fma}\left(-t, a, z \cdot y\right) \cdot x\right)\\
\mathbf{elif}\;z \leq 1.05 \cdot 10^{+27}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-z, c, i \cdot t\right), b, t\_1 \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if z < -8.3999999999999995e74 or 1.04999999999999997e27 < z Initial program 62.8%
Taylor expanded in t around 0
associate--l+N/A
*-commutativeN/A
lower-fma.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
*-commutativeN/A
lower-*.f64N/A
associate--l+N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
Applied rewrites76.0%
Taylor expanded in i around 0
Applied rewrites81.5%
if -8.3999999999999995e74 < z < 8.0000000000000003e-216Initial program 73.2%
Taylor expanded in c around 0
cancel-sign-sub-invN/A
+-commutativeN/A
metadata-evalN/A
*-lft-identityN/A
associate-+l+N/A
*-commutativeN/A
associate-*r*N/A
cancel-sign-subN/A
*-commutativeN/A
associate-*r*N/A
mul-1-negN/A
distribute-rgt-out--N/A
+-commutativeN/A
Applied rewrites74.5%
if 8.0000000000000003e-216 < z < 1.04999999999999997e27Initial program 83.8%
Taylor expanded in y 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
remove-double-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f64N/A
Applied rewrites76.5%
Final simplification77.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma (- x) t (/ (* (* z y) x) a)) a)))
(if (<= x -5.4e+180)
t_1
(if (<= x -2.8e-14)
(fma (* (- a) t) x (* (fma (- i) y (* c a)) j))
(if (<= x 8.5e+22)
(+ (* (* (- z) b) c) (* j (- (* c a) (* 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(-x, t, (((z * y) * x) / a)) * a;
double tmp;
if (x <= -5.4e+180) {
tmp = t_1;
} else if (x <= -2.8e-14) {
tmp = fma((-a * t), x, (fma(-i, y, (c * a)) * j));
} else if (x <= 8.5e+22) {
tmp = ((-z * b) * c) + (j * ((c * a) - (y * i)));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(fma(Float64(-x), t, Float64(Float64(Float64(z * y) * x) / a)) * a) tmp = 0.0 if (x <= -5.4e+180) tmp = t_1; elseif (x <= -2.8e-14) tmp = fma(Float64(Float64(-a) * t), x, Float64(fma(Float64(-i), y, Float64(c * a)) * j)); elseif (x <= 8.5e+22) tmp = Float64(Float64(Float64(Float64(-z) * b) * c) + Float64(j * Float64(Float64(c * a) - Float64(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[((-x) * t + N[(N[(N[(z * y), $MachinePrecision] * x), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision]}, If[LessEqual[x, -5.4e+180], t$95$1, If[LessEqual[x, -2.8e-14], N[(N[((-a) * t), $MachinePrecision] * x + N[(N[((-i) * y + N[(c * a), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 8.5e+22], N[(N[(N[((-z) * b), $MachinePrecision] * c), $MachinePrecision] + N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-x, t, \frac{\left(z \cdot y\right) \cdot x}{a}\right) \cdot a\\
\mathbf{if}\;x \leq -5.4 \cdot 10^{+180}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq -2.8 \cdot 10^{-14}:\\
\;\;\;\;\mathsf{fma}\left(\left(-a\right) \cdot t, x, \mathsf{fma}\left(-i, y, c \cdot a\right) \cdot j\right)\\
\mathbf{elif}\;x \leq 8.5 \cdot 10^{+22}:\\
\;\;\;\;\left(\left(-z\right) \cdot b\right) \cdot c + j \cdot \left(c \cdot a - y \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -5.40000000000000033e180 or 8.49999999999999979e22 < x Initial program 71.8%
Taylor expanded in t around 0
associate--l+N/A
*-commutativeN/A
lower-fma.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
*-commutativeN/A
lower-*.f64N/A
associate--l+N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
Applied rewrites70.3%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6464.7
Applied rewrites64.7%
Taylor expanded in a around inf
Applied rewrites66.7%
if -5.40000000000000033e180 < x < -2.8000000000000001e-14Initial program 72.0%
Taylor expanded in b around 0
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
sub-negN/A
+-commutativeN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
*-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
*-commutativeN/A
lower-*.f6468.2
Applied rewrites68.2%
Taylor expanded in y around 0
Applied rewrites60.9%
if -2.8000000000000001e-14 < x < 8.49999999999999979e22Initial program 70.5%
Taylor expanded in c around inf
*-commutativeN/A
associate-*r*N/A
associate-*l*N/A
lower-*.f64N/A
*-commutativeN/A
associate-*r*N/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6463.7
Applied rewrites63.7%
Final simplification64.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma (- x) a (* i b)) t)))
(if (<= t -7e+78)
t_1
(if (<= t -2.6e-61)
(fma (* (- a) t) x (* (fma (- i) y (* c a)) j))
(if (<= t 7.5e-17)
(+ (* (* (- z) b) c) (* j (- (* c a) (* 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(-x, a, (i * b)) * t;
double tmp;
if (t <= -7e+78) {
tmp = t_1;
} else if (t <= -2.6e-61) {
tmp = fma((-a * t), x, (fma(-i, y, (c * a)) * j));
} else if (t <= 7.5e-17) {
tmp = ((-z * b) * c) + (j * ((c * a) - (y * i)));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(fma(Float64(-x), a, Float64(i * b)) * t) tmp = 0.0 if (t <= -7e+78) tmp = t_1; elseif (t <= -2.6e-61) tmp = fma(Float64(Float64(-a) * t), x, Float64(fma(Float64(-i), y, Float64(c * a)) * j)); elseif (t <= 7.5e-17) tmp = Float64(Float64(Float64(Float64(-z) * b) * c) + Float64(j * Float64(Float64(c * a) - Float64(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[((-x) * a + N[(i * b), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]}, If[LessEqual[t, -7e+78], t$95$1, If[LessEqual[t, -2.6e-61], N[(N[((-a) * t), $MachinePrecision] * x + N[(N[((-i) * y + N[(c * a), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 7.5e-17], N[(N[(N[((-z) * b), $MachinePrecision] * c), $MachinePrecision] + N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-x, a, i \cdot b\right) \cdot t\\
\mathbf{if}\;t \leq -7 \cdot 10^{+78}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -2.6 \cdot 10^{-61}:\\
\;\;\;\;\mathsf{fma}\left(\left(-a\right) \cdot t, x, \mathsf{fma}\left(-i, y, c \cdot a\right) \cdot j\right)\\
\mathbf{elif}\;t \leq 7.5 \cdot 10^{-17}:\\
\;\;\;\;\left(\left(-z\right) \cdot b\right) \cdot c + j \cdot \left(c \cdot a - y \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -7.0000000000000003e78 or 7.49999999999999984e-17 < t Initial program 61.1%
Taylor expanded in t 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-*.f6459.9
Applied rewrites59.9%
if -7.0000000000000003e78 < t < -2.6000000000000001e-61Initial program 77.1%
Taylor expanded in b around 0
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
sub-negN/A
+-commutativeN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
*-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
*-commutativeN/A
lower-*.f6473.0
Applied rewrites73.0%
Taylor expanded in y around 0
Applied rewrites70.8%
if -2.6000000000000001e-61 < t < 7.49999999999999984e-17Initial program 81.0%
Taylor expanded in c around inf
*-commutativeN/A
associate-*r*N/A
associate-*l*N/A
lower-*.f64N/A
*-commutativeN/A
associate-*r*N/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6467.2
Applied rewrites67.2%
Final simplification64.0%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= z -8.4e+74) (not (<= z 9.8e-216))) (fma (fma (- x) t (* j c)) a (* (fma (- b) c (* y x)) z)) (fma (fma (- y) j (* b t)) i (* (fma (- t) a (* z y)) x))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((z <= -8.4e+74) || !(z <= 9.8e-216)) {
tmp = fma(fma(-x, t, (j * c)), a, (fma(-b, c, (y * x)) * z));
} else {
tmp = fma(fma(-y, j, (b * t)), i, (fma(-t, a, (z * y)) * x));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((z <= -8.4e+74) || !(z <= 9.8e-216)) tmp = fma(fma(Float64(-x), t, Float64(j * c)), a, Float64(fma(Float64(-b), c, Float64(y * x)) * z)); else tmp = fma(fma(Float64(-y), j, Float64(b * t)), i, Float64(fma(Float64(-t), a, Float64(z * y)) * x)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[z, -8.4e+74], N[Not[LessEqual[z, 9.8e-216]], $MachinePrecision]], N[(N[((-x) * t + N[(j * c), $MachinePrecision]), $MachinePrecision] * a + N[(N[((-b) * c + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision], N[(N[((-y) * j + N[(b * t), $MachinePrecision]), $MachinePrecision] * i + N[(N[((-t) * a + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -8.4 \cdot 10^{+74} \lor \neg \left(z \leq 9.8 \cdot 10^{-216}\right):\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-x, t, j \cdot c\right), a, \mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-y, j, b \cdot t\right), i, \mathsf{fma}\left(-t, a, z \cdot y\right) \cdot x\right)\\
\end{array}
\end{array}
if z < -8.3999999999999995e74 or 9.8000000000000003e-216 < z Initial program 70.0%
Taylor expanded in t around 0
associate--l+N/A
*-commutativeN/A
lower-fma.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
*-commutativeN/A
lower-*.f64N/A
associate--l+N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
Applied rewrites77.4%
Taylor expanded in i around 0
Applied rewrites75.1%
if -8.3999999999999995e74 < z < 9.8000000000000003e-216Initial program 73.2%
Taylor expanded in c around 0
cancel-sign-sub-invN/A
+-commutativeN/A
metadata-evalN/A
*-lft-identityN/A
associate-+l+N/A
*-commutativeN/A
associate-*r*N/A
cancel-sign-subN/A
*-commutativeN/A
associate-*r*N/A
mul-1-negN/A
distribute-rgt-out--N/A
+-commutativeN/A
Applied rewrites74.5%
Final simplification74.9%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= j -2.45e+14) (not (<= j 3.7e+170))) (fma (fma (- t) a (* z y)) x (* (fma (- i) y (* c a)) j)) (fma (fma (- x) t (* j c)) a (* (fma (- b) c (* y x)) z))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((j <= -2.45e+14) || !(j <= 3.7e+170)) {
tmp = fma(fma(-t, a, (z * y)), x, (fma(-i, y, (c * a)) * j));
} else {
tmp = fma(fma(-x, t, (j * c)), a, (fma(-b, c, (y * x)) * z));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((j <= -2.45e+14) || !(j <= 3.7e+170)) tmp = fma(fma(Float64(-t), a, Float64(z * y)), x, Float64(fma(Float64(-i), y, Float64(c * a)) * j)); else tmp = fma(fma(Float64(-x), t, Float64(j * c)), a, Float64(fma(Float64(-b), c, Float64(y * x)) * z)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[j, -2.45e+14], N[Not[LessEqual[j, 3.7e+170]], $MachinePrecision]], N[(N[((-t) * a + N[(z * y), $MachinePrecision]), $MachinePrecision] * x + N[(N[((-i) * y + N[(c * a), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision], N[(N[((-x) * t + N[(j * c), $MachinePrecision]), $MachinePrecision] * a + N[(N[((-b) * c + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -2.45 \cdot 10^{+14} \lor \neg \left(j \leq 3.7 \cdot 10^{+170}\right):\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-t, a, z \cdot y\right), x, \mathsf{fma}\left(-i, y, c \cdot a\right) \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-x, t, j \cdot c\right), a, \mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\right)\\
\end{array}
\end{array}
if j < -2.45e14 or 3.69999999999999987e170 < j Initial program 75.6%
Taylor expanded in b around 0
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
sub-negN/A
+-commutativeN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
*-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
*-commutativeN/A
lower-*.f6482.7
Applied rewrites82.7%
if -2.45e14 < j < 3.69999999999999987e170Initial program 68.9%
Taylor expanded in t around 0
associate--l+N/A
*-commutativeN/A
lower-fma.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
*-commutativeN/A
lower-*.f64N/A
associate--l+N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
Applied rewrites78.5%
Taylor expanded in i around 0
Applied rewrites68.0%
Final simplification73.0%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= j -2.95e+94)
(fma (* (- a) t) x (* (fma (- i) y (* c a)) j))
(if (<= j 6.5e+107)
(fma (fma (- x) t (* j c)) a (* (fma (- b) c (* y x)) z))
(+ (* (* z x) y) (* j (- (* c a) (* y i)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (j <= -2.95e+94) {
tmp = fma((-a * t), x, (fma(-i, y, (c * a)) * j));
} else if (j <= 6.5e+107) {
tmp = fma(fma(-x, t, (j * c)), a, (fma(-b, c, (y * x)) * z));
} else {
tmp = ((z * x) * y) + (j * ((c * a) - (y * i)));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (j <= -2.95e+94) tmp = fma(Float64(Float64(-a) * t), x, Float64(fma(Float64(-i), y, Float64(c * a)) * j)); elseif (j <= 6.5e+107) tmp = fma(fma(Float64(-x), t, Float64(j * c)), a, Float64(fma(Float64(-b), c, Float64(y * x)) * z)); else tmp = Float64(Float64(Float64(z * x) * y) + Float64(j * Float64(Float64(c * a) - Float64(y * i)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[j, -2.95e+94], N[(N[((-a) * t), $MachinePrecision] * x + N[(N[((-i) * y + N[(c * a), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 6.5e+107], N[(N[((-x) * t + N[(j * c), $MachinePrecision]), $MachinePrecision] * a + N[(N[((-b) * c + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision], N[(N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision] + N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -2.95 \cdot 10^{+94}:\\
\;\;\;\;\mathsf{fma}\left(\left(-a\right) \cdot t, x, \mathsf{fma}\left(-i, y, c \cdot a\right) \cdot j\right)\\
\mathbf{elif}\;j \leq 6.5 \cdot 10^{+107}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-x, t, j \cdot c\right), a, \mathsf{fma}\left(-b, c, y \cdot x\right) \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;\left(z \cdot x\right) \cdot y + j \cdot \left(c \cdot a - y \cdot i\right)\\
\end{array}
\end{array}
if j < -2.94999999999999995e94Initial program 70.9%
Taylor expanded in b around 0
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
sub-negN/A
+-commutativeN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
*-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
*-commutativeN/A
lower-*.f6485.5
Applied rewrites85.5%
Taylor expanded in y around 0
Applied rewrites84.7%
if -2.94999999999999995e94 < j < 6.5000000000000006e107Initial program 72.6%
Taylor expanded in t around 0
associate--l+N/A
*-commutativeN/A
lower-fma.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
*-commutativeN/A
lower-*.f64N/A
associate--l+N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
Applied rewrites77.5%
Taylor expanded in i around 0
Applied rewrites70.3%
if 6.5000000000000006e107 < j Initial program 66.5%
Taylor expanded in y around inf
*-commutativeN/A
associate-*r*N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f6466.2
Applied rewrites66.2%
Final simplification71.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma (- x) a (* i b)) t)) (t_2 (* (fma (- i) y (* c a)) j)))
(if (<= j -1.66e+125)
t_2
(if (<= j -1.7e-170)
t_1
(if (<= j -8.5e-285)
(* (fma (- c) b (* y x)) z)
(if (<= j 2e-49) 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 = fma(-x, a, (i * b)) * t;
double t_2 = fma(-i, y, (c * a)) * j;
double tmp;
if (j <= -1.66e+125) {
tmp = t_2;
} else if (j <= -1.7e-170) {
tmp = t_1;
} else if (j <= -8.5e-285) {
tmp = fma(-c, b, (y * x)) * z;
} else if (j <= 2e-49) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(fma(Float64(-x), a, Float64(i * b)) * t) t_2 = Float64(fma(Float64(-i), y, Float64(c * a)) * j) tmp = 0.0 if (j <= -1.66e+125) tmp = t_2; elseif (j <= -1.7e-170) tmp = t_1; elseif (j <= -8.5e-285) tmp = Float64(fma(Float64(-c), b, Float64(y * x)) * z); elseif (j <= 2e-49) tmp = t_1; else tmp = t_2; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-x) * a + N[(i * b), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]}, Block[{t$95$2 = N[(N[((-i) * y + N[(c * a), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]}, If[LessEqual[j, -1.66e+125], t$95$2, If[LessEqual[j, -1.7e-170], t$95$1, If[LessEqual[j, -8.5e-285], N[(N[((-c) * b + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision], If[LessEqual[j, 2e-49], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-x, a, i \cdot b\right) \cdot t\\
t_2 := \mathsf{fma}\left(-i, y, c \cdot a\right) \cdot j\\
\mathbf{if}\;j \leq -1.66 \cdot 10^{+125}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;j \leq -1.7 \cdot 10^{-170}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq -8.5 \cdot 10^{-285}:\\
\;\;\;\;\mathsf{fma}\left(-c, b, y \cdot x\right) \cdot z\\
\mathbf{elif}\;j \leq 2 \cdot 10^{-49}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if j < -1.66000000000000005e125 or 1.99999999999999987e-49 < j Initial program 72.3%
Taylor expanded in t around 0
associate--l+N/A
*-commutativeN/A
lower-fma.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
*-commutativeN/A
lower-*.f64N/A
associate--l+N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
Applied rewrites80.0%
Taylor expanded in j around inf
Applied rewrites60.5%
if -1.66000000000000005e125 < j < -1.70000000000000006e-170 or -8.49999999999999979e-285 < j < 1.99999999999999987e-49Initial program 72.1%
Taylor expanded in t 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-*.f6455.2
Applied rewrites55.2%
if -1.70000000000000006e-170 < j < -8.49999999999999979e-285Initial program 59.7%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6476.7
Applied rewrites76.7%
Final simplification59.3%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= a -4.1e-107)
(fma (* (- a) t) x (* (fma (- i) y (* c a)) j))
(if (<= a -4.4e-243)
(* (fma (- y) j (* b t)) i)
(if (<= a 5.2e-13)
(* (fma (- c) b (* y x)) z)
(* (fma (- x) t (* j c)) a)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (a <= -4.1e-107) {
tmp = fma((-a * t), x, (fma(-i, y, (c * a)) * j));
} else if (a <= -4.4e-243) {
tmp = fma(-y, j, (b * t)) * i;
} else if (a <= 5.2e-13) {
tmp = fma(-c, b, (y * x)) * z;
} else {
tmp = fma(-x, t, (j * c)) * a;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (a <= -4.1e-107) tmp = fma(Float64(Float64(-a) * t), x, Float64(fma(Float64(-i), y, Float64(c * a)) * j)); elseif (a <= -4.4e-243) tmp = Float64(fma(Float64(-y), j, Float64(b * t)) * i); elseif (a <= 5.2e-13) tmp = Float64(fma(Float64(-c), b, Float64(y * x)) * z); else tmp = Float64(fma(Float64(-x), t, Float64(j * c)) * a); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[a, -4.1e-107], N[(N[((-a) * t), $MachinePrecision] * x + N[(N[((-i) * y + N[(c * a), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -4.4e-243], N[(N[((-y) * j + N[(b * t), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision], If[LessEqual[a, 5.2e-13], N[(N[((-c) * b + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision], N[(N[((-x) * t + N[(j * c), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -4.1 \cdot 10^{-107}:\\
\;\;\;\;\mathsf{fma}\left(\left(-a\right) \cdot t, x, \mathsf{fma}\left(-i, y, c \cdot a\right) \cdot j\right)\\
\mathbf{elif}\;a \leq -4.4 \cdot 10^{-243}:\\
\;\;\;\;\mathsf{fma}\left(-y, j, b \cdot t\right) \cdot i\\
\mathbf{elif}\;a \leq 5.2 \cdot 10^{-13}:\\
\;\;\;\;\mathsf{fma}\left(-c, b, y \cdot x\right) \cdot z\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(-x, t, j \cdot c\right) \cdot a\\
\end{array}
\end{array}
if a < -4.0999999999999999e-107Initial program 63.5%
Taylor expanded in b around 0
+-commutativeN/A
*-commutativeN/A
lower-fma.f64N/A
sub-negN/A
+-commutativeN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f64N/A
*-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
*-commutativeN/A
lower-*.f6467.5
Applied rewrites67.5%
Taylor expanded in y around 0
Applied rewrites64.9%
if -4.0999999999999999e-107 < a < -4.3999999999999998e-243Initial program 81.2%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6463.8
Applied rewrites63.8%
if -4.3999999999999998e-243 < a < 5.2000000000000001e-13Initial program 70.2%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6456.9
Applied rewrites56.9%
if 5.2000000000000001e-13 < a Initial program 75.4%
Taylor expanded in a 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-*.f6468.5
Applied rewrites68.5%
Final simplification63.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma (- x) t (* j c)) a)))
(if (<= a -1.2e-80)
t_1
(if (<= a -4.4e-243)
(* (fma (- y) j (* b t)) i)
(if (<= a 5.2e-13) (* (fma (- c) b (* 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(-x, t, (j * c)) * a;
double tmp;
if (a <= -1.2e-80) {
tmp = t_1;
} else if (a <= -4.4e-243) {
tmp = fma(-y, j, (b * t)) * i;
} else if (a <= 5.2e-13) {
tmp = fma(-c, b, (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(-x), t, Float64(j * c)) * a) tmp = 0.0 if (a <= -1.2e-80) tmp = t_1; elseif (a <= -4.4e-243) tmp = Float64(fma(Float64(-y), j, Float64(b * t)) * i); elseif (a <= 5.2e-13) tmp = Float64(fma(Float64(-c), b, 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[((-x) * t + N[(j * c), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision]}, If[LessEqual[a, -1.2e-80], t$95$1, If[LessEqual[a, -4.4e-243], N[(N[((-y) * j + N[(b * t), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision], If[LessEqual[a, 5.2e-13], N[(N[((-c) * b + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-x, t, j \cdot c\right) \cdot a\\
\mathbf{if}\;a \leq -1.2 \cdot 10^{-80}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -4.4 \cdot 10^{-243}:\\
\;\;\;\;\mathsf{fma}\left(-y, j, b \cdot t\right) \cdot i\\
\mathbf{elif}\;a \leq 5.2 \cdot 10^{-13}:\\
\;\;\;\;\mathsf{fma}\left(-c, b, y \cdot x\right) \cdot z\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -1.2e-80 or 5.2000000000000001e-13 < a Initial program 70.0%
Taylor expanded in a 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-*.f6466.1
Applied rewrites66.1%
if -1.2e-80 < a < -4.3999999999999998e-243Initial program 77.0%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6462.0
Applied rewrites62.0%
if -4.3999999999999998e-243 < a < 5.2000000000000001e-13Initial program 70.2%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6456.9
Applied rewrites56.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma (- x) t (* j c)) a)))
(if (<= a -6.5e-107)
t_1
(if (<= a -1.15e-157)
(* (fma (- x) a (* i b)) t)
(if (<= a 5.2e-13) (* (fma (- c) b (* 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(-x, t, (j * c)) * a;
double tmp;
if (a <= -6.5e-107) {
tmp = t_1;
} else if (a <= -1.15e-157) {
tmp = fma(-x, a, (i * b)) * t;
} else if (a <= 5.2e-13) {
tmp = fma(-c, b, (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(-x), t, Float64(j * c)) * a) tmp = 0.0 if (a <= -6.5e-107) tmp = t_1; elseif (a <= -1.15e-157) tmp = Float64(fma(Float64(-x), a, Float64(i * b)) * t); elseif (a <= 5.2e-13) tmp = Float64(fma(Float64(-c), b, 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[((-x) * t + N[(j * c), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision]}, If[LessEqual[a, -6.5e-107], t$95$1, If[LessEqual[a, -1.15e-157], N[(N[((-x) * a + N[(i * b), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[a, 5.2e-13], N[(N[((-c) * b + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-x, t, j \cdot c\right) \cdot a\\
\mathbf{if}\;a \leq -6.5 \cdot 10^{-107}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -1.15 \cdot 10^{-157}:\\
\;\;\;\;\mathsf{fma}\left(-x, a, i \cdot b\right) \cdot t\\
\mathbf{elif}\;a \leq 5.2 \cdot 10^{-13}:\\
\;\;\;\;\mathsf{fma}\left(-c, b, y \cdot x\right) \cdot z\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -6.5000000000000002e-107 or 5.2000000000000001e-13 < a Initial program 69.2%
Taylor expanded in a 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-*.f6464.9
Applied rewrites64.9%
if -6.5000000000000002e-107 < a < -1.14999999999999994e-157Initial program 84.3%
Taylor expanded in t 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-*.f6453.4
Applied rewrites53.4%
if -1.14999999999999994e-157 < a < 5.2000000000000001e-13Initial program 71.8%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6456.4
Applied rewrites56.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma (- i) y (* c a)) j)))
(if (<= j -1.58e+125)
t_1
(if (<= j 1.65e-161)
(* (fma (- a) t (* z y)) x)
(if (<= j 3.6e+42) (* (fma (- c) b (* 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(-i, y, (c * a)) * j;
double tmp;
if (j <= -1.58e+125) {
tmp = t_1;
} else if (j <= 1.65e-161) {
tmp = fma(-a, t, (z * y)) * x;
} else if (j <= 3.6e+42) {
tmp = fma(-c, b, (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(-i), y, Float64(c * a)) * j) tmp = 0.0 if (j <= -1.58e+125) tmp = t_1; elseif (j <= 1.65e-161) tmp = Float64(fma(Float64(-a), t, Float64(z * y)) * x); elseif (j <= 3.6e+42) tmp = Float64(fma(Float64(-c), b, 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[((-i) * y + N[(c * a), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]}, If[LessEqual[j, -1.58e+125], t$95$1, If[LessEqual[j, 1.65e-161], N[(N[((-a) * t + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[j, 3.6e+42], N[(N[((-c) * b + N[(y * x), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-i, y, c \cdot a\right) \cdot j\\
\mathbf{if}\;j \leq -1.58 \cdot 10^{+125}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq 1.65 \cdot 10^{-161}:\\
\;\;\;\;\mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\
\mathbf{elif}\;j \leq 3.6 \cdot 10^{+42}:\\
\;\;\;\;\mathsf{fma}\left(-c, b, y \cdot x\right) \cdot z\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if j < -1.5800000000000001e125 or 3.6000000000000001e42 < j Initial program 69.9%
Taylor expanded in t around 0
associate--l+N/A
*-commutativeN/A
lower-fma.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
*-commutativeN/A
lower-*.f64N/A
associate--l+N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
Applied rewrites78.7%
Taylor expanded in j around inf
Applied rewrites64.0%
if -1.5800000000000001e125 < j < 1.6499999999999999e-161Initial program 68.7%
Taylor expanded in t around 0
associate--l+N/A
*-commutativeN/A
lower-fma.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
*-commutativeN/A
lower-*.f64N/A
associate--l+N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
Applied rewrites75.2%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6451.8
Applied rewrites51.8%
if 1.6499999999999999e-161 < j < 3.6000000000000001e42Initial program 81.2%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6448.9
Applied rewrites48.9%
Final simplification56.0%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= t -3.8e+74)
(* (* b t) i)
(if (or (<= t -1.52e-59) (not (<= t 7.5e-17)))
(* (- a) (* t x))
(* (- b) (* c z)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= -3.8e+74) {
tmp = (b * t) * i;
} else if ((t <= -1.52e-59) || !(t <= 7.5e-17)) {
tmp = -a * (t * x);
} else {
tmp = -b * (c * z);
}
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 <= (-3.8d+74)) then
tmp = (b * t) * i
else if ((t <= (-1.52d-59)) .or. (.not. (t <= 7.5d-17))) then
tmp = -a * (t * x)
else
tmp = -b * (c * z)
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 <= -3.8e+74) {
tmp = (b * t) * i;
} else if ((t <= -1.52e-59) || !(t <= 7.5e-17)) {
tmp = -a * (t * x);
} else {
tmp = -b * (c * z);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if t <= -3.8e+74: tmp = (b * t) * i elif (t <= -1.52e-59) or not (t <= 7.5e-17): tmp = -a * (t * x) else: tmp = -b * (c * z) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (t <= -3.8e+74) tmp = Float64(Float64(b * t) * i); elseif ((t <= -1.52e-59) || !(t <= 7.5e-17)) tmp = Float64(Float64(-a) * Float64(t * x)); else tmp = Float64(Float64(-b) * Float64(c * z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (t <= -3.8e+74) tmp = (b * t) * i; elseif ((t <= -1.52e-59) || ~((t <= 7.5e-17))) tmp = -a * (t * x); else tmp = -b * (c * z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[t, -3.8e+74], N[(N[(b * t), $MachinePrecision] * i), $MachinePrecision], If[Or[LessEqual[t, -1.52e-59], N[Not[LessEqual[t, 7.5e-17]], $MachinePrecision]], N[((-a) * N[(t * x), $MachinePrecision]), $MachinePrecision], N[((-b) * N[(c * z), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -3.8 \cdot 10^{+74}:\\
\;\;\;\;\left(b \cdot t\right) \cdot i\\
\mathbf{elif}\;t \leq -1.52 \cdot 10^{-59} \lor \neg \left(t \leq 7.5 \cdot 10^{-17}\right):\\
\;\;\;\;\left(-a\right) \cdot \left(t \cdot x\right)\\
\mathbf{else}:\\
\;\;\;\;\left(-b\right) \cdot \left(c \cdot z\right)\\
\end{array}
\end{array}
if t < -3.7999999999999998e74Initial program 63.8%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6449.9
Applied rewrites49.9%
Taylor expanded in y around 0
Applied rewrites44.2%
if -3.7999999999999998e74 < t < -1.51999999999999998e-59 or 7.49999999999999984e-17 < t Initial program 63.0%
Taylor expanded in y 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
remove-double-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f64N/A
Applied rewrites62.3%
Taylor expanded in x around inf
Applied rewrites41.2%
if -1.51999999999999998e-59 < t < 7.49999999999999984e-17Initial program 81.1%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6449.9
Applied rewrites49.9%
Taylor expanded in x around 0
Applied rewrites31.8%
Final simplification37.8%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= j -1.58e+125) (not (<= j 7e-42))) (* (fma (- i) y (* c a)) j) (* (fma (- a) t (* z y)) x)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((j <= -1.58e+125) || !(j <= 7e-42)) {
tmp = fma(-i, y, (c * a)) * j;
} else {
tmp = fma(-a, t, (z * y)) * x;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((j <= -1.58e+125) || !(j <= 7e-42)) tmp = Float64(fma(Float64(-i), y, Float64(c * a)) * j); else tmp = Float64(fma(Float64(-a), t, Float64(z * y)) * x); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[j, -1.58e+125], N[Not[LessEqual[j, 7e-42]], $MachinePrecision]], N[(N[((-i) * y + N[(c * a), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision], N[(N[((-a) * t + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -1.58 \cdot 10^{+125} \lor \neg \left(j \leq 7 \cdot 10^{-42}\right):\\
\;\;\;\;\mathsf{fma}\left(-i, y, c \cdot a\right) \cdot j\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\
\end{array}
\end{array}
if j < -1.5800000000000001e125 or 7.0000000000000004e-42 < j Initial program 72.1%
Taylor expanded in t around 0
associate--l+N/A
*-commutativeN/A
lower-fma.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
*-commutativeN/A
lower-*.f64N/A
associate--l+N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
Applied rewrites80.6%
Taylor expanded in j around inf
Applied rewrites61.0%
if -1.5800000000000001e125 < j < 7.0000000000000004e-42Initial program 70.5%
Taylor expanded in t around 0
associate--l+N/A
*-commutativeN/A
lower-fma.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
*-commutativeN/A
lower-*.f64N/A
associate--l+N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
Applied rewrites74.4%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6448.3
Applied rewrites48.3%
Final simplification53.9%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= t -2.15e+71)
(* (* b t) i)
(if (<= t -1.52e-59)
(* (* (- t) a) x)
(if (<= t 7.5e-17) (* (* (- b) c) z) (* (- a) (* t x))))))
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.15e+71) {
tmp = (b * t) * i;
} else if (t <= -1.52e-59) {
tmp = (-t * a) * x;
} else if (t <= 7.5e-17) {
tmp = (-b * c) * z;
} else {
tmp = -a * (t * x);
}
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.15d+71)) then
tmp = (b * t) * i
else if (t <= (-1.52d-59)) then
tmp = (-t * a) * x
else if (t <= 7.5d-17) then
tmp = (-b * c) * z
else
tmp = -a * (t * x)
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.15e+71) {
tmp = (b * t) * i;
} else if (t <= -1.52e-59) {
tmp = (-t * a) * x;
} else if (t <= 7.5e-17) {
tmp = (-b * c) * z;
} else {
tmp = -a * (t * x);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if t <= -2.15e+71: tmp = (b * t) * i elif t <= -1.52e-59: tmp = (-t * a) * x elif t <= 7.5e-17: tmp = (-b * c) * z else: tmp = -a * (t * x) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (t <= -2.15e+71) tmp = Float64(Float64(b * t) * i); elseif (t <= -1.52e-59) tmp = Float64(Float64(Float64(-t) * a) * x); elseif (t <= 7.5e-17) tmp = Float64(Float64(Float64(-b) * c) * z); else tmp = Float64(Float64(-a) * Float64(t * x)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (t <= -2.15e+71) tmp = (b * t) * i; elseif (t <= -1.52e-59) tmp = (-t * a) * x; elseif (t <= 7.5e-17) tmp = (-b * c) * z; else tmp = -a * (t * x); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[t, -2.15e+71], N[(N[(b * t), $MachinePrecision] * i), $MachinePrecision], If[LessEqual[t, -1.52e-59], N[(N[((-t) * a), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[t, 7.5e-17], N[(N[((-b) * c), $MachinePrecision] * z), $MachinePrecision], N[((-a) * N[(t * x), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.15 \cdot 10^{+71}:\\
\;\;\;\;\left(b \cdot t\right) \cdot i\\
\mathbf{elif}\;t \leq -1.52 \cdot 10^{-59}:\\
\;\;\;\;\left(\left(-t\right) \cdot a\right) \cdot x\\
\mathbf{elif}\;t \leq 7.5 \cdot 10^{-17}:\\
\;\;\;\;\left(\left(-b\right) \cdot c\right) \cdot z\\
\mathbf{else}:\\
\;\;\;\;\left(-a\right) \cdot \left(t \cdot x\right)\\
\end{array}
\end{array}
if t < -2.14999999999999992e71Initial program 63.8%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6449.9
Applied rewrites49.9%
Taylor expanded in y around 0
Applied rewrites44.2%
if -2.14999999999999992e71 < t < -1.51999999999999998e-59Initial program 78.9%
Taylor expanded in t around 0
associate--l+N/A
*-commutativeN/A
lower-fma.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
*-commutativeN/A
lower-*.f64N/A
associate--l+N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
Applied rewrites79.6%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6450.8
Applied rewrites50.8%
Taylor expanded in y around 0
Applied rewrites40.8%
if -1.51999999999999998e-59 < t < 7.49999999999999984e-17Initial program 81.1%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6449.9
Applied rewrites49.9%
Taylor expanded in x around 0
Applied rewrites32.2%
if 7.49999999999999984e-17 < t Initial program 58.3%
Taylor expanded in y 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
remove-double-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f64N/A
Applied rewrites60.4%
Taylor expanded in x around inf
Applied rewrites41.3%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= t -2.15e+71)
(* (* b t) i)
(if (<= t -1.52e-59)
(* (* (- t) a) x)
(if (<= t 7.5e-17) (* (- b) (* c z)) (* (- a) (* t x))))))
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.15e+71) {
tmp = (b * t) * i;
} else if (t <= -1.52e-59) {
tmp = (-t * a) * x;
} else if (t <= 7.5e-17) {
tmp = -b * (c * z);
} else {
tmp = -a * (t * x);
}
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.15d+71)) then
tmp = (b * t) * i
else if (t <= (-1.52d-59)) then
tmp = (-t * a) * x
else if (t <= 7.5d-17) then
tmp = -b * (c * z)
else
tmp = -a * (t * x)
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.15e+71) {
tmp = (b * t) * i;
} else if (t <= -1.52e-59) {
tmp = (-t * a) * x;
} else if (t <= 7.5e-17) {
tmp = -b * (c * z);
} else {
tmp = -a * (t * x);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if t <= -2.15e+71: tmp = (b * t) * i elif t <= -1.52e-59: tmp = (-t * a) * x elif t <= 7.5e-17: tmp = -b * (c * z) else: tmp = -a * (t * x) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (t <= -2.15e+71) tmp = Float64(Float64(b * t) * i); elseif (t <= -1.52e-59) tmp = Float64(Float64(Float64(-t) * a) * x); elseif (t <= 7.5e-17) tmp = Float64(Float64(-b) * Float64(c * z)); else tmp = Float64(Float64(-a) * Float64(t * x)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (t <= -2.15e+71) tmp = (b * t) * i; elseif (t <= -1.52e-59) tmp = (-t * a) * x; elseif (t <= 7.5e-17) tmp = -b * (c * z); else tmp = -a * (t * x); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[t, -2.15e+71], N[(N[(b * t), $MachinePrecision] * i), $MachinePrecision], If[LessEqual[t, -1.52e-59], N[(N[((-t) * a), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[t, 7.5e-17], N[((-b) * N[(c * z), $MachinePrecision]), $MachinePrecision], N[((-a) * N[(t * x), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.15 \cdot 10^{+71}:\\
\;\;\;\;\left(b \cdot t\right) \cdot i\\
\mathbf{elif}\;t \leq -1.52 \cdot 10^{-59}:\\
\;\;\;\;\left(\left(-t\right) \cdot a\right) \cdot x\\
\mathbf{elif}\;t \leq 7.5 \cdot 10^{-17}:\\
\;\;\;\;\left(-b\right) \cdot \left(c \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;\left(-a\right) \cdot \left(t \cdot x\right)\\
\end{array}
\end{array}
if t < -2.14999999999999992e71Initial program 63.8%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6449.9
Applied rewrites49.9%
Taylor expanded in y around 0
Applied rewrites44.2%
if -2.14999999999999992e71 < t < -1.51999999999999998e-59Initial program 78.9%
Taylor expanded in t around 0
associate--l+N/A
*-commutativeN/A
lower-fma.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
*-commutativeN/A
lower-*.f64N/A
associate--l+N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
Applied rewrites79.6%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6450.8
Applied rewrites50.8%
Taylor expanded in y around 0
Applied rewrites40.8%
if -1.51999999999999998e-59 < t < 7.49999999999999984e-17Initial program 81.1%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6449.9
Applied rewrites49.9%
Taylor expanded in x around 0
Applied rewrites31.8%
if 7.49999999999999984e-17 < t Initial program 58.3%
Taylor expanded in y 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
remove-double-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f64N/A
Applied rewrites60.4%
Taylor expanded in x around inf
Applied rewrites41.3%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= i -7.5e+124)
(* (* b t) i)
(if (<= i 3.4e-143)
(* (* y x) z)
(if (<= i 6e+57) (* (- b) (* c z)) (* (* i t) b)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (i <= -7.5e+124) {
tmp = (b * t) * i;
} else if (i <= 3.4e-143) {
tmp = (y * x) * z;
} else if (i <= 6e+57) {
tmp = -b * (c * z);
} else {
tmp = (i * t) * 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) :: tmp
if (i <= (-7.5d+124)) then
tmp = (b * t) * i
else if (i <= 3.4d-143) then
tmp = (y * x) * z
else if (i <= 6d+57) then
tmp = -b * (c * z)
else
tmp = (i * t) * b
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (i <= -7.5e+124) {
tmp = (b * t) * i;
} else if (i <= 3.4e-143) {
tmp = (y * x) * z;
} else if (i <= 6e+57) {
tmp = -b * (c * z);
} else {
tmp = (i * t) * b;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if i <= -7.5e+124: tmp = (b * t) * i elif i <= 3.4e-143: tmp = (y * x) * z elif i <= 6e+57: tmp = -b * (c * z) else: tmp = (i * t) * b return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (i <= -7.5e+124) tmp = Float64(Float64(b * t) * i); elseif (i <= 3.4e-143) tmp = Float64(Float64(y * x) * z); elseif (i <= 6e+57) tmp = Float64(Float64(-b) * Float64(c * z)); else tmp = Float64(Float64(i * t) * b); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (i <= -7.5e+124) tmp = (b * t) * i; elseif (i <= 3.4e-143) tmp = (y * x) * z; elseif (i <= 6e+57) tmp = -b * (c * z); else tmp = (i * t) * b; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[i, -7.5e+124], N[(N[(b * t), $MachinePrecision] * i), $MachinePrecision], If[LessEqual[i, 3.4e-143], N[(N[(y * x), $MachinePrecision] * z), $MachinePrecision], If[LessEqual[i, 6e+57], N[((-b) * N[(c * z), $MachinePrecision]), $MachinePrecision], N[(N[(i * t), $MachinePrecision] * b), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -7.5 \cdot 10^{+124}:\\
\;\;\;\;\left(b \cdot t\right) \cdot i\\
\mathbf{elif}\;i \leq 3.4 \cdot 10^{-143}:\\
\;\;\;\;\left(y \cdot x\right) \cdot z\\
\mathbf{elif}\;i \leq 6 \cdot 10^{+57}:\\
\;\;\;\;\left(-b\right) \cdot \left(c \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;\left(i \cdot t\right) \cdot b\\
\end{array}
\end{array}
if i < -7.50000000000000038e124Initial program 57.4%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6466.7
Applied rewrites66.7%
Taylor expanded in y around 0
Applied rewrites50.6%
if -7.50000000000000038e124 < i < 3.39999999999999983e-143Initial program 77.8%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6445.6
Applied rewrites45.6%
Taylor expanded in x around inf
Applied rewrites30.0%
if 3.39999999999999983e-143 < i < 5.9999999999999999e57Initial program 88.3%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6447.6
Applied rewrites47.6%
Taylor expanded in x around 0
Applied rewrites33.4%
if 5.9999999999999999e57 < i Initial program 58.0%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6458.3
Applied rewrites58.3%
Taylor expanded in y around 0
Applied rewrites37.1%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= t -1.2e+23) (* (* b t) i) (if (<= t 2.7e+136) (* (fma (- i) y (* c a)) j) (* (- a) (* t x)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= -1.2e+23) {
tmp = (b * t) * i;
} else if (t <= 2.7e+136) {
tmp = fma(-i, y, (c * a)) * j;
} else {
tmp = -a * (t * x);
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (t <= -1.2e+23) tmp = Float64(Float64(b * t) * i); elseif (t <= 2.7e+136) tmp = Float64(fma(Float64(-i), y, Float64(c * a)) * j); else tmp = Float64(Float64(-a) * Float64(t * x)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[t, -1.2e+23], N[(N[(b * t), $MachinePrecision] * i), $MachinePrecision], If[LessEqual[t, 2.7e+136], N[(N[((-i) * y + N[(c * a), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision], N[((-a) * N[(t * x), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.2 \cdot 10^{+23}:\\
\;\;\;\;\left(b \cdot t\right) \cdot i\\
\mathbf{elif}\;t \leq 2.7 \cdot 10^{+136}:\\
\;\;\;\;\mathsf{fma}\left(-i, y, c \cdot a\right) \cdot j\\
\mathbf{else}:\\
\;\;\;\;\left(-a\right) \cdot \left(t \cdot x\right)\\
\end{array}
\end{array}
if t < -1.2e23Initial program 66.6%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6449.2
Applied rewrites49.2%
Taylor expanded in y around 0
Applied rewrites42.5%
if -1.2e23 < t < 2.7000000000000002e136Initial program 78.3%
Taylor expanded in t around 0
associate--l+N/A
*-commutativeN/A
lower-fma.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
*-commutativeN/A
lower-*.f64N/A
associate--l+N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
Applied rewrites72.9%
Taylor expanded in j around inf
Applied rewrites44.5%
if 2.7000000000000002e136 < t Initial program 47.4%
Taylor expanded in y 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
remove-double-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f64N/A
Applied rewrites53.5%
Taylor expanded in x around inf
Applied rewrites59.5%
Final simplification46.0%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= i -7.5e+124) (* (* b t) i) (if (<= i 8.5e+56) (* (* y x) z) (* (* i t) b))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (i <= -7.5e+124) {
tmp = (b * t) * i;
} else if (i <= 8.5e+56) {
tmp = (y * x) * z;
} else {
tmp = (i * t) * 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) :: tmp
if (i <= (-7.5d+124)) then
tmp = (b * t) * i
else if (i <= 8.5d+56) then
tmp = (y * x) * z
else
tmp = (i * t) * b
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (i <= -7.5e+124) {
tmp = (b * t) * i;
} else if (i <= 8.5e+56) {
tmp = (y * x) * z;
} else {
tmp = (i * t) * b;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if i <= -7.5e+124: tmp = (b * t) * i elif i <= 8.5e+56: tmp = (y * x) * z else: tmp = (i * t) * b return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (i <= -7.5e+124) tmp = Float64(Float64(b * t) * i); elseif (i <= 8.5e+56) tmp = Float64(Float64(y * x) * z); else tmp = Float64(Float64(i * t) * b); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (i <= -7.5e+124) tmp = (b * t) * i; elseif (i <= 8.5e+56) tmp = (y * x) * z; else tmp = (i * t) * b; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[i, -7.5e+124], N[(N[(b * t), $MachinePrecision] * i), $MachinePrecision], If[LessEqual[i, 8.5e+56], N[(N[(y * x), $MachinePrecision] * z), $MachinePrecision], N[(N[(i * t), $MachinePrecision] * b), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -7.5 \cdot 10^{+124}:\\
\;\;\;\;\left(b \cdot t\right) \cdot i\\
\mathbf{elif}\;i \leq 8.5 \cdot 10^{+56}:\\
\;\;\;\;\left(y \cdot x\right) \cdot z\\
\mathbf{else}:\\
\;\;\;\;\left(i \cdot t\right) \cdot b\\
\end{array}
\end{array}
if i < -7.50000000000000038e124Initial program 57.4%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6466.7
Applied rewrites66.7%
Taylor expanded in y around 0
Applied rewrites50.6%
if -7.50000000000000038e124 < i < 8.4999999999999998e56Initial program 80.7%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6446.5
Applied rewrites46.5%
Taylor expanded in x around inf
Applied rewrites26.9%
if 8.4999999999999998e56 < i Initial program 58.7%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6457.4
Applied rewrites57.4%
Taylor expanded in y around 0
Applied rewrites36.5%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= i -1.1e+125) (* (* i b) t) (if (<= i 8.5e+56) (* (* y x) z) (* (* i t) b))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (i <= -1.1e+125) {
tmp = (i * b) * t;
} else if (i <= 8.5e+56) {
tmp = (y * x) * z;
} else {
tmp = (i * t) * 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) :: tmp
if (i <= (-1.1d+125)) then
tmp = (i * b) * t
else if (i <= 8.5d+56) then
tmp = (y * x) * z
else
tmp = (i * t) * b
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (i <= -1.1e+125) {
tmp = (i * b) * t;
} else if (i <= 8.5e+56) {
tmp = (y * x) * z;
} else {
tmp = (i * t) * b;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if i <= -1.1e+125: tmp = (i * b) * t elif i <= 8.5e+56: tmp = (y * x) * z else: tmp = (i * t) * b return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (i <= -1.1e+125) tmp = Float64(Float64(i * b) * t); elseif (i <= 8.5e+56) tmp = Float64(Float64(y * x) * z); else tmp = Float64(Float64(i * t) * b); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (i <= -1.1e+125) tmp = (i * b) * t; elseif (i <= 8.5e+56) tmp = (y * x) * z; else tmp = (i * t) * b; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[i, -1.1e+125], N[(N[(i * b), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[i, 8.5e+56], N[(N[(y * x), $MachinePrecision] * z), $MachinePrecision], N[(N[(i * t), $MachinePrecision] * b), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -1.1 \cdot 10^{+125}:\\
\;\;\;\;\left(i \cdot b\right) \cdot t\\
\mathbf{elif}\;i \leq 8.5 \cdot 10^{+56}:\\
\;\;\;\;\left(y \cdot x\right) \cdot z\\
\mathbf{else}:\\
\;\;\;\;\left(i \cdot t\right) \cdot b\\
\end{array}
\end{array}
if i < -1.09999999999999995e125Initial program 57.4%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6466.7
Applied rewrites66.7%
Taylor expanded in y around 0
Applied rewrites46.8%
Applied rewrites50.6%
if -1.09999999999999995e125 < i < 8.4999999999999998e56Initial program 80.7%
Taylor expanded in z around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
*-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6446.5
Applied rewrites46.5%
Taylor expanded in x around inf
Applied rewrites26.9%
if 8.4999999999999998e56 < i Initial program 58.7%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6457.4
Applied rewrites57.4%
Taylor expanded in y around 0
Applied rewrites36.5%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= i -1.75e+126) (* (* i b) t) (if (<= i 8.5e+56) (* (* z y) x) (* (* i t) b))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (i <= -1.75e+126) {
tmp = (i * b) * t;
} else if (i <= 8.5e+56) {
tmp = (z * y) * x;
} else {
tmp = (i * t) * 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) :: tmp
if (i <= (-1.75d+126)) then
tmp = (i * b) * t
else if (i <= 8.5d+56) then
tmp = (z * y) * x
else
tmp = (i * t) * b
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (i <= -1.75e+126) {
tmp = (i * b) * t;
} else if (i <= 8.5e+56) {
tmp = (z * y) * x;
} else {
tmp = (i * t) * b;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if i <= -1.75e+126: tmp = (i * b) * t elif i <= 8.5e+56: tmp = (z * y) * x else: tmp = (i * t) * b return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (i <= -1.75e+126) tmp = Float64(Float64(i * b) * t); elseif (i <= 8.5e+56) tmp = Float64(Float64(z * y) * x); else tmp = Float64(Float64(i * t) * b); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (i <= -1.75e+126) tmp = (i * b) * t; elseif (i <= 8.5e+56) tmp = (z * y) * x; else tmp = (i * t) * b; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[i, -1.75e+126], N[(N[(i * b), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[i, 8.5e+56], N[(N[(z * y), $MachinePrecision] * x), $MachinePrecision], N[(N[(i * t), $MachinePrecision] * b), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -1.75 \cdot 10^{+126}:\\
\;\;\;\;\left(i \cdot b\right) \cdot t\\
\mathbf{elif}\;i \leq 8.5 \cdot 10^{+56}:\\
\;\;\;\;\left(z \cdot y\right) \cdot x\\
\mathbf{else}:\\
\;\;\;\;\left(i \cdot t\right) \cdot b\\
\end{array}
\end{array}
if i < -1.7500000000000001e126Initial program 57.4%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6466.7
Applied rewrites66.7%
Taylor expanded in y around 0
Applied rewrites46.8%
Applied rewrites50.6%
if -1.7500000000000001e126 < i < 8.4999999999999998e56Initial program 80.7%
Taylor expanded in t around 0
associate--l+N/A
*-commutativeN/A
lower-fma.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
*-commutativeN/A
lower-*.f64N/A
associate--l+N/A
*-commutativeN/A
associate-*r*N/A
associate-*r*N/A
Applied rewrites81.8%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6444.9
Applied rewrites44.9%
Taylor expanded in y around inf
Applied rewrites25.7%
if 8.4999999999999998e56 < i Initial program 58.7%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6457.4
Applied rewrites57.4%
Taylor expanded in y around 0
Applied rewrites36.5%
(FPCore (x y z t a b c i j) :precision binary64 (* (* i b) t))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return (i * b) * t;
}
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 * b) * t
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 * b) * t;
}
def code(x, y, z, t, a, b, c, i, j): return (i * b) * t
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(i * b) * t) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = (i * b) * t; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(i * b), $MachinePrecision] * t), $MachinePrecision]
\begin{array}{l}
\\
\left(i \cdot b\right) \cdot t
\end{array}
Initial program 71.2%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
mul-1-negN/A
*-commutativeN/A
distribute-lft-neg-inN/A
mul-1-negN/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6435.9
Applied rewrites35.9%
Taylor expanded in y around 0
Applied rewrites21.2%
Applied rewrites22.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* c a) (* y i))))
(t_2
(+
(-
(* x (- (* y z) (* t a)))
(/
(* b (- (pow (* c z) 2.0) (pow (* t i) 2.0)))
(+ (* c z) (* t i))))
t_1)))
(if (< x -1.469694296777705e-64)
t_2
(if (< x 3.2113527362226803e-147)
(- (* (- (* b i) (* x a)) t) (- (* z (* c b)) 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 = j * ((c * a) - (y * i));
double t_2 = ((x * ((y * z) - (t * a))) - ((b * (pow((c * z), 2.0) - pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1;
double tmp;
if (x < -1.469694296777705e-64) {
tmp = t_2;
} else if (x < 3.2113527362226803e-147) {
tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - 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 = j * ((c * a) - (y * i))
t_2 = ((x * ((y * z) - (t * a))) - ((b * (((c * z) ** 2.0d0) - ((t * i) ** 2.0d0))) / ((c * z) + (t * i)))) + t_1
if (x < (-1.469694296777705d-64)) then
tmp = t_2
else if (x < 3.2113527362226803d-147) then
tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - 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 = j * ((c * a) - (y * i));
double t_2 = ((x * ((y * z) - (t * a))) - ((b * (Math.pow((c * z), 2.0) - Math.pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1;
double tmp;
if (x < -1.469694296777705e-64) {
tmp = t_2;
} else if (x < 3.2113527362226803e-147) {
tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1);
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((c * a) - (y * i)) t_2 = ((x * ((y * z) - (t * a))) - ((b * (math.pow((c * z), 2.0) - math.pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1 tmp = 0 if x < -1.469694296777705e-64: tmp = t_2 elif x < 3.2113527362226803e-147: tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(c * a) - Float64(y * i))) t_2 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(Float64(b * Float64((Float64(c * z) ^ 2.0) - (Float64(t * i) ^ 2.0))) / Float64(Float64(c * z) + Float64(t * i)))) + t_1) tmp = 0.0 if (x < -1.469694296777705e-64) tmp = t_2; elseif (x < 3.2113527362226803e-147) tmp = Float64(Float64(Float64(Float64(b * i) - Float64(x * a)) * t) - Float64(Float64(z * Float64(c * b)) - 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 = j * ((c * a) - (y * i)); t_2 = ((x * ((y * z) - (t * a))) - ((b * (((c * z) ^ 2.0) - ((t * i) ^ 2.0))) / ((c * z) + (t * i)))) + t_1; tmp = 0.0; if (x < -1.469694296777705e-64) tmp = t_2; elseif (x < 3.2113527362226803e-147) tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - 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[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(b * N[(N[Power[N[(c * z), $MachinePrecision], 2.0], $MachinePrecision] - N[Power[N[(t * i), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(c * z), $MachinePrecision] + N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]}, If[Less[x, -1.469694296777705e-64], t$95$2, If[Less[x, 3.2113527362226803e-147], N[(N[(N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision] - N[(N[(z * N[(c * b), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]), $MachinePrecision], t$95$2]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(c \cdot a - y \cdot i\right)\\
t_2 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - \frac{b \cdot \left({\left(c \cdot z\right)}^{2} - {\left(t \cdot i\right)}^{2}\right)}{c \cdot z + t \cdot i}\right) + t\_1\\
\mathbf{if}\;x < -1.469694296777705 \cdot 10^{-64}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;x < 3.2113527362226803 \cdot 10^{-147}:\\
\;\;\;\;\left(b \cdot i - x \cdot a\right) \cdot t - \left(z \cdot \left(c \cdot b\right) - t\_1\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
herbie shell --seed 2024317
(FPCore (x y z t a b c i j)
:name "Data.Colour.Matrix:determinant from colour-2.3.3, A"
:precision binary64
:alt
(! :herbie-platform default (if (< x -293938859355541/2000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2) (pow (* t i) 2))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i)))) (if (< x 32113527362226803/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (- (* (- (* b i) (* x a)) t) (- (* z (* c b)) (* j (- (* c a) (* y i))))) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2) (pow (* t i) 2))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i)))))))
(+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))