
(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 22 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
(-
(* (- (* c a) (* i y)) j)
(- (* (- (* a t) (* z y)) x) (* (- (* i t) (* c z)) b)))))
(if (<= t_1 (- INFINITY))
(-
(- (* (fma (- a) (* (/ t y) x) (* z x)) y) (* (- (* c z) (* i t)) b))
(* (- (* i y) (* c a)) j))
(if (<= t_1 INFINITY)
t_1
(fma (fma (- j) y (* b t)) i (* (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 t_1 = (((c * a) - (i * y)) * j) - ((((a * t) - (z * y)) * x) - (((i * t) - (c * z)) * b));
double tmp;
if (t_1 <= -((double) INFINITY)) {
tmp = ((fma(-a, ((t / y) * x), (z * x)) * y) - (((c * z) - (i * t)) * b)) - (((i * y) - (c * a)) * j);
} else if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = fma(fma(-j, y, (b * t)), i, (fma(-z, b, (j * a)) * c));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(Float64(c * a) - Float64(i * y)) * j) - Float64(Float64(Float64(Float64(a * t) - Float64(z * y)) * x) - Float64(Float64(Float64(i * t) - Float64(c * z)) * b))) tmp = 0.0 if (t_1 <= Float64(-Inf)) tmp = Float64(Float64(Float64(fma(Float64(-a), Float64(Float64(t / y) * x), Float64(z * x)) * y) - Float64(Float64(Float64(c * z) - Float64(i * t)) * b)) - Float64(Float64(Float64(i * y) - Float64(c * a)) * j)); elseif (t_1 <= Inf) tmp = t_1; else tmp = fma(fma(Float64(-j), y, Float64(b * t)), i, Float64(fma(Float64(-z), b, Float64(j * a)) * c)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(N[(c * a), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision] - N[(N[(N[(N[(a * t), $MachinePrecision] - N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision] - N[(N[(N[(i * t), $MachinePrecision] - N[(c * z), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, (-Infinity)], N[(N[(N[(N[((-a) * N[(N[(t / y), $MachinePrecision] * x), $MachinePrecision] + N[(z * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision] - N[(N[(N[(c * z), $MachinePrecision] - N[(i * t), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(i * y), $MachinePrecision] - N[(c * a), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, Infinity], t$95$1, N[(N[((-j) * y + N[(b * t), $MachinePrecision]), $MachinePrecision] * i + N[(N[((-z) * b + N[(j * a), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(c \cdot a - i \cdot y\right) \cdot j - \left(\left(a \cdot t - z \cdot y\right) \cdot x - \left(i \cdot t - c \cdot z\right) \cdot b\right)\\
\mathbf{if}\;t\_1 \leq -\infty:\\
\;\;\;\;\left(\mathsf{fma}\left(-a, \frac{t}{y} \cdot x, z \cdot x\right) \cdot y - \left(c \cdot z - i \cdot t\right) \cdot b\right) - \left(i \cdot y - c \cdot a\right) \cdot j\\
\mathbf{elif}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-j, y, b \cdot t\right), i, \mathsf{fma}\left(-z, b, j \cdot a\right) \cdot c\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) < -inf.0Initial program 80.6%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
associate-/l*N/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
associate-/l*N/A
lower-*.f64N/A
lower-/.f64N/A
*-commutativeN/A
lower-*.f6491.1
Applied rewrites91.1%
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)))) < +inf.0Initial program 93.6%
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 c around 0
Applied rewrites41.8%
Taylor expanded in x around 0
Applied rewrites64.7%
Final simplification87.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(-
(* (- (* c a) (* i y)) j)
(- (* (- (* a t) (* z y)) x) (* (- (* i t) (* c z)) b)))))
(if (<= t_1 INFINITY)
t_1
(fma (fma (- j) y (* b t)) i (* (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 t_1 = (((c * a) - (i * y)) * j) - ((((a * t) - (z * y)) * x) - (((i * t) - (c * z)) * b));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = fma(fma(-j, y, (b * t)), i, (fma(-z, b, (j * a)) * c));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(Float64(c * a) - Float64(i * y)) * j) - Float64(Float64(Float64(Float64(a * t) - Float64(z * y)) * x) - Float64(Float64(Float64(i * t) - Float64(c * z)) * b))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = fma(fma(Float64(-j), y, Float64(b * t)), i, Float64(fma(Float64(-z), b, Float64(j * a)) * c)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(N[(c * a), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision] - N[(N[(N[(N[(a * t), $MachinePrecision] - N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision] - N[(N[(N[(i * t), $MachinePrecision] - N[(c * z), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(N[((-j) * y + N[(b * t), $MachinePrecision]), $MachinePrecision] * i + N[(N[((-z) * b + N[(j * a), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(c \cdot a - i \cdot y\right) \cdot j - \left(\left(a \cdot t - z \cdot y\right) \cdot x - \left(i \cdot t - c \cdot z\right) \cdot b\right)\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-j, y, b \cdot t\right), i, \mathsf{fma}\left(-z, b, j \cdot a\right) \cdot c\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) < +inf.0Initial program 90.2%
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 c around 0
Applied rewrites41.8%
Taylor expanded in x around 0
Applied rewrites64.7%
Final simplification85.4%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= c -1e+225)
(* (fma j a (* (- z) b)) c)
(if (<= c 1.35e+123)
(fma
(fma (- i) y (* c a))
j
(fma (fma (- x) a (* i b)) t (* (fma (- c) b (* y x)) z)))
(fma (* i b) t (* (fma (- b) z (* 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 <= -1e+225) {
tmp = fma(j, a, (-z * b)) * c;
} else if (c <= 1.35e+123) {
tmp = fma(fma(-i, y, (c * a)), j, fma(fma(-x, a, (i * b)), t, (fma(-c, b, (y * x)) * z)));
} else {
tmp = fma((i * b), t, (fma(-b, z, (j * a)) * c));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (c <= -1e+225) tmp = Float64(fma(j, a, Float64(Float64(-z) * b)) * c); elseif (c <= 1.35e+123) 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(Float64(i * b), t, Float64(fma(Float64(-b), z, Float64(j * a)) * c)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[c, -1e+225], N[(N[(j * a + N[((-z) * b), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision], If[LessEqual[c, 1.35e+123], 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[(i * b), $MachinePrecision] * t + N[(N[((-b) * z + N[(j * a), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -1 \cdot 10^{+225}:\\
\;\;\;\;\mathsf{fma}\left(j, a, \left(-z\right) \cdot b\right) \cdot c\\
\mathbf{elif}\;c \leq 1.35 \cdot 10^{+123}:\\
\;\;\;\;\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(i \cdot b, t, \mathsf{fma}\left(-b, z, j \cdot a\right) \cdot c\right)\\
\end{array}
\end{array}
if c < -9.99999999999999928e224Initial program 53.2%
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-*.f6488.6
Applied rewrites88.6%
Applied rewrites94.5%
if -9.99999999999999928e224 < c < 1.35000000000000007e123Initial program 77.8%
Taylor expanded in t around 0
associate--l+N/A
*-commutativeN/A
lower-fma.f64N/A
cancel-sub-sign-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 rewrites82.1%
if 1.35000000000000007e123 < c Initial program 59.1%
Taylor expanded in c around 0
Applied rewrites79.8%
Taylor expanded in x around 0
Applied rewrites82.4%
Taylor expanded in y around 0
Applied rewrites86.1%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= c -4.2e+62)
(* (fma j a (* (- z) b)) c)
(if (<= c -3.3e-196)
(fma (fma (- i) y (* c a)) j (* (fma (- a) x (* i b)) t))
(if (<= c 1.3e-45)
(fma (fma (- y) j (* b t)) i (* (fma (- t) a (* z y)) x))
(if (<= c 3e+97)
(fma (fma (- x) t (* j c)) a (* (fma (- z) c (* i t)) b))
(fma (* i b) t (* (fma (- b) z (* 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 <= -4.2e+62) {
tmp = fma(j, a, (-z * b)) * c;
} else if (c <= -3.3e-196) {
tmp = fma(fma(-i, y, (c * a)), j, (fma(-a, x, (i * b)) * t));
} else if (c <= 1.3e-45) {
tmp = fma(fma(-y, j, (b * t)), i, (fma(-t, a, (z * y)) * x));
} else if (c <= 3e+97) {
tmp = fma(fma(-x, t, (j * c)), a, (fma(-z, c, (i * t)) * b));
} else {
tmp = fma((i * b), t, (fma(-b, z, (j * a)) * c));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (c <= -4.2e+62) tmp = Float64(fma(j, a, Float64(Float64(-z) * b)) * c); elseif (c <= -3.3e-196) tmp = fma(fma(Float64(-i), y, Float64(c * a)), j, Float64(fma(Float64(-a), x, Float64(i * b)) * t)); elseif (c <= 1.3e-45) tmp = fma(fma(Float64(-y), j, Float64(b * t)), i, Float64(fma(Float64(-t), a, Float64(z * y)) * x)); elseif (c <= 3e+97) tmp = fma(fma(Float64(-x), t, Float64(j * c)), a, Float64(fma(Float64(-z), c, Float64(i * t)) * b)); else tmp = fma(Float64(i * b), t, Float64(fma(Float64(-b), z, Float64(j * a)) * c)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[c, -4.2e+62], N[(N[(j * a + N[((-z) * b), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision], If[LessEqual[c, -3.3e-196], N[(N[((-i) * y + N[(c * a), $MachinePrecision]), $MachinePrecision] * j + N[(N[((-a) * x + N[(i * b), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 1.3e-45], N[(N[((-y) * j + N[(b * t), $MachinePrecision]), $MachinePrecision] * i + N[(N[((-t) * a + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 3e+97], N[(N[((-x) * t + N[(j * c), $MachinePrecision]), $MachinePrecision] * a + N[(N[((-z) * c + N[(i * t), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision], N[(N[(i * b), $MachinePrecision] * t + N[(N[((-b) * z + N[(j * a), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -4.2 \cdot 10^{+62}:\\
\;\;\;\;\mathsf{fma}\left(j, a, \left(-z\right) \cdot b\right) \cdot c\\
\mathbf{elif}\;c \leq -3.3 \cdot 10^{-196}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \mathsf{fma}\left(-a, x, i \cdot b\right) \cdot t\right)\\
\mathbf{elif}\;c \leq 1.3 \cdot 10^{-45}:\\
\;\;\;\;\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}\;c \leq 3 \cdot 10^{+97}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-x, t, j \cdot c\right), a, \mathsf{fma}\left(-z, c, i \cdot t\right) \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(i \cdot b, t, \mathsf{fma}\left(-b, z, j \cdot a\right) \cdot c\right)\\
\end{array}
\end{array}
if c < -4.2e62Initial program 62.9%
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-*.f6470.5
Applied rewrites70.5%
Applied rewrites72.2%
if -4.2e62 < c < -3.29999999999999999e-196Initial program 77.5%
Taylor expanded in t around 0
associate--l+N/A
*-commutativeN/A
lower-fma.f64N/A
cancel-sub-sign-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 rewrites84.9%
Taylor expanded in z around 0
Applied rewrites76.1%
if -3.29999999999999999e-196 < c < 1.29999999999999993e-45Initial program 84.8%
Taylor expanded in c around 0
sub-negN/A
+-commutativeN/A
mul-1-negN/A
remove-double-negN/A
associate-+l+N/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
*-commutativeN/A
associate-*r*N/A
*-commutativeN/A
distribute-lft-inN/A
remove-double-negN/A
mul-1-negN/A
sub-negN/A
Applied rewrites81.0%
if 1.29999999999999993e-45 < c < 2.9999999999999998e97Initial program 71.6%
Taylor expanded in t around 0
associate--l+N/A
*-commutativeN/A
lower-fma.f64N/A
cancel-sub-sign-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.9%
Taylor expanded in y around 0
sub-negN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
distribute-lft-inN/A
*-commutativeN/A
lower-fma.f64N/A
mul-1-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
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
distribute-lft-neg-inN/A
Applied rewrites75.4%
if 2.9999999999999998e97 < c Initial program 61.9%
Taylor expanded in c around 0
Applied rewrites81.2%
Taylor expanded in x around 0
Applied rewrites81.4%
Taylor expanded in y around 0
Applied rewrites84.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma (- z) c (* i t)) b))
(t_2 (fma (fma (- j) y (* b t)) i (* (fma (- z) b (* j a)) c))))
(if (<= b -1.6e+74)
(fma (fma (- x) t (* j c)) a t_1)
(if (<= b -2.55e-141)
t_2
(if (<= b 1.65e+24)
(fma (fma (- t) a (* z y)) x (* (fma (- i) y (* c a)) j))
(if (<= b 2.25e+176) t_2 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(-z, c, (i * t)) * b;
double t_2 = fma(fma(-j, y, (b * t)), i, (fma(-z, b, (j * a)) * c));
double tmp;
if (b <= -1.6e+74) {
tmp = fma(fma(-x, t, (j * c)), a, t_1);
} else if (b <= -2.55e-141) {
tmp = t_2;
} else if (b <= 1.65e+24) {
tmp = fma(fma(-t, a, (z * y)), x, (fma(-i, y, (c * a)) * j));
} else if (b <= 2.25e+176) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(fma(Float64(-z), c, Float64(i * t)) * b) t_2 = fma(fma(Float64(-j), y, Float64(b * t)), i, Float64(fma(Float64(-z), b, Float64(j * a)) * c)) tmp = 0.0 if (b <= -1.6e+74) tmp = fma(fma(Float64(-x), t, Float64(j * c)), a, t_1); elseif (b <= -2.55e-141) tmp = t_2; elseif (b <= 1.65e+24) tmp = fma(fma(Float64(-t), a, Float64(z * y)), x, Float64(fma(Float64(-i), y, Float64(c * a)) * j)); elseif (b <= 2.25e+176) tmp = t_2; else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-z) * c + N[(i * t), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]}, Block[{t$95$2 = N[(N[((-j) * y + N[(b * t), $MachinePrecision]), $MachinePrecision] * i + N[(N[((-z) * b + N[(j * a), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.6e+74], N[(N[((-x) * t + N[(j * c), $MachinePrecision]), $MachinePrecision] * a + t$95$1), $MachinePrecision], If[LessEqual[b, -2.55e-141], t$95$2, If[LessEqual[b, 1.65e+24], N[(N[((-t) * a + N[(z * y), $MachinePrecision]), $MachinePrecision] * x + N[(N[((-i) * y + N[(c * a), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.25e+176], t$95$2, t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-z, c, i \cdot t\right) \cdot b\\
t_2 := \mathsf{fma}\left(\mathsf{fma}\left(-j, y, b \cdot t\right), i, \mathsf{fma}\left(-z, b, j \cdot a\right) \cdot c\right)\\
\mathbf{if}\;b \leq -1.6 \cdot 10^{+74}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-x, t, j \cdot c\right), a, t\_1\right)\\
\mathbf{elif}\;b \leq -2.55 \cdot 10^{-141}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq 1.65 \cdot 10^{+24}:\\
\;\;\;\;\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{elif}\;b \leq 2.25 \cdot 10^{+176}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -1.59999999999999997e74Initial program 76.6%
Taylor expanded in t around 0
associate--l+N/A
*-commutativeN/A
lower-fma.f64N/A
cancel-sub-sign-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.6%
Taylor expanded in y around 0
sub-negN/A
mul-1-negN/A
distribute-rgt-neg-inN/A
mul-1-negN/A
distribute-lft-inN/A
*-commutativeN/A
lower-fma.f64N/A
mul-1-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
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
distribute-lft-neg-inN/A
Applied rewrites83.2%
if -1.59999999999999997e74 < b < -2.54999999999999989e-141 or 1.6499999999999999e24 < b < 2.25000000000000002e176Initial program 73.4%
Taylor expanded in c around 0
Applied rewrites78.8%
Taylor expanded in x around 0
Applied rewrites76.8%
if -2.54999999999999989e-141 < b < 1.6499999999999999e24Initial program 73.3%
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-sub-sign-invN/A
+-commutativeN/A
neg-mul-1N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6471.9
Applied rewrites71.9%
if 2.25000000000000002e176 < b Initial program 67.8%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.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
lower-*.f6493.5
Applied rewrites93.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (fma (- i) y (* c a)))
(t_2 (fma t_1 j (* (fma (- a) x (* i b)) t))))
(if (<= t -1.1e-23)
t_2
(if (<= t 5e-74)
(fma (fma (- j) y (* b t)) i (* (fma (- z) b (* j a)) c))
(if (<= t 3.2e+94) (fma (fma (- t) a (* z y)) x (* t_1 j)) 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(-i, y, (c * a));
double t_2 = fma(t_1, j, (fma(-a, x, (i * b)) * t));
double tmp;
if (t <= -1.1e-23) {
tmp = t_2;
} else if (t <= 5e-74) {
tmp = fma(fma(-j, y, (b * t)), i, (fma(-z, b, (j * a)) * c));
} else if (t <= 3.2e+94) {
tmp = fma(fma(-t, a, (z * y)), x, (t_1 * j));
} else {
tmp = t_2;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = fma(Float64(-i), y, Float64(c * a)) t_2 = fma(t_1, j, Float64(fma(Float64(-a), x, Float64(i * b)) * t)) tmp = 0.0 if (t <= -1.1e-23) tmp = t_2; elseif (t <= 5e-74) tmp = fma(fma(Float64(-j), y, Float64(b * t)), i, Float64(fma(Float64(-z), b, Float64(j * a)) * c)); elseif (t <= 3.2e+94) tmp = fma(fma(Float64(-t), a, Float64(z * y)), x, Float64(t_1 * j)); else tmp = t_2; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[((-i) * y + N[(c * a), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t$95$1 * j + N[(N[((-a) * x + N[(i * b), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.1e-23], t$95$2, If[LessEqual[t, 5e-74], N[(N[((-j) * y + N[(b * t), $MachinePrecision]), $MachinePrecision] * i + N[(N[((-z) * b + N[(j * a), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.2e+94], N[(N[((-t) * a + N[(z * y), $MachinePrecision]), $MachinePrecision] * x + N[(t$95$1 * j), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-i, y, c \cdot a\right)\\
t_2 := \mathsf{fma}\left(t\_1, j, \mathsf{fma}\left(-a, x, i \cdot b\right) \cdot t\right)\\
\mathbf{if}\;t \leq -1.1 \cdot 10^{-23}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq 5 \cdot 10^{-74}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-j, y, b \cdot t\right), i, \mathsf{fma}\left(-z, b, j \cdot a\right) \cdot c\right)\\
\mathbf{elif}\;t \leq 3.2 \cdot 10^{+94}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-t, a, z \cdot y\right), x, t\_1 \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if t < -1.1e-23 or 3.20000000000000014e94 < t Initial program 66.7%
Taylor expanded in t around 0
associate--l+N/A
*-commutativeN/A
lower-fma.f64N/A
cancel-sub-sign-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.9%
Taylor expanded in z around 0
Applied rewrites78.4%
if -1.1e-23 < t < 4.99999999999999998e-74Initial program 78.9%
Taylor expanded in c around 0
Applied rewrites84.4%
Taylor expanded in x around 0
Applied rewrites71.8%
if 4.99999999999999998e-74 < t < 3.20000000000000014e94Initial program 79.4%
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-sub-sign-invN/A
+-commutativeN/A
neg-mul-1N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6473.9
Applied rewrites73.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma (- a) t (* z y)) x)) (t_2 (* (fma j a (* (- z) b)) c)))
(if (<= c -1.9e+68)
t_2
(if (<= c -3.6e-27)
t_1
(if (<= c -1.55e-193)
(* (fma (- i) y (* c a)) j)
(if (<= c 5.8e-293)
t_1
(if (<= c 6.4e-108)
(* (* i b) t)
(if (<= c 1.05e-19) 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(-a, t, (z * y)) * x;
double t_2 = fma(j, a, (-z * b)) * c;
double tmp;
if (c <= -1.9e+68) {
tmp = t_2;
} else if (c <= -3.6e-27) {
tmp = t_1;
} else if (c <= -1.55e-193) {
tmp = fma(-i, y, (c * a)) * j;
} else if (c <= 5.8e-293) {
tmp = t_1;
} else if (c <= 6.4e-108) {
tmp = (i * b) * t;
} else if (c <= 1.05e-19) {
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(-a), t, Float64(z * y)) * x) t_2 = Float64(fma(j, a, Float64(Float64(-z) * b)) * c) tmp = 0.0 if (c <= -1.9e+68) tmp = t_2; elseif (c <= -3.6e-27) tmp = t_1; elseif (c <= -1.55e-193) tmp = Float64(fma(Float64(-i), y, Float64(c * a)) * j); elseif (c <= 5.8e-293) tmp = t_1; elseif (c <= 6.4e-108) tmp = Float64(Float64(i * b) * t); elseif (c <= 1.05e-19) 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[((-a) * t + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]}, Block[{t$95$2 = N[(N[(j * a + N[((-z) * b), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision]}, If[LessEqual[c, -1.9e+68], t$95$2, If[LessEqual[c, -3.6e-27], t$95$1, If[LessEqual[c, -1.55e-193], N[(N[((-i) * y + N[(c * a), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision], If[LessEqual[c, 5.8e-293], t$95$1, If[LessEqual[c, 6.4e-108], N[(N[(i * b), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[c, 1.05e-19], t$95$1, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\
t_2 := \mathsf{fma}\left(j, a, \left(-z\right) \cdot b\right) \cdot c\\
\mathbf{if}\;c \leq -1.9 \cdot 10^{+68}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;c \leq -3.6 \cdot 10^{-27}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq -1.55 \cdot 10^{-193}:\\
\;\;\;\;\mathsf{fma}\left(-i, y, c \cdot a\right) \cdot j\\
\mathbf{elif}\;c \leq 5.8 \cdot 10^{-293}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq 6.4 \cdot 10^{-108}:\\
\;\;\;\;\left(i \cdot b\right) \cdot t\\
\mathbf{elif}\;c \leq 1.05 \cdot 10^{-19}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if c < -1.9e68 or 1.0499999999999999e-19 < c Initial program 63.5%
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-*.f6468.0
Applied rewrites68.0%
Applied rewrites69.7%
if -1.9e68 < c < -3.5999999999999999e-27 or -1.5500000000000001e-193 < c < 5.7999999999999999e-293 or 6.3999999999999999e-108 < c < 1.0499999999999999e-19Initial program 79.4%
Taylor expanded in t around 0
associate--l+N/A
*-commutativeN/A
lower-fma.f64N/A
cancel-sub-sign-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 rewrites73.3%
Taylor expanded in x around inf
*-commutativeN/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6458.6
Applied rewrites58.6%
if -3.5999999999999999e-27 < c < -1.5500000000000001e-193Initial program 82.7%
Taylor expanded in t around 0
associate--l+N/A
*-commutativeN/A
lower-fma.f64N/A
cancel-sub-sign-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 rewrites91.3%
Taylor expanded in j around inf
Applied rewrites51.4%
if 5.7999999999999999e-293 < c < 6.3999999999999999e-108Initial program 84.4%
Taylor expanded in t 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
remove-double-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6467.1
Applied rewrites67.1%
Taylor expanded in x around 0
Applied rewrites61.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (fma (fma (- i) y (* c a)) j (* (fma (- a) x (* i b)) t))))
(if (<= t -1.1e-23)
t_1
(if (<= t 3.1e-62)
(fma (fma (- j) y (* b t)) i (* (fma (- z) b (* j a)) c))
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(fma(-i, y, (c * a)), j, (fma(-a, x, (i * b)) * t));
double tmp;
if (t <= -1.1e-23) {
tmp = t_1;
} else if (t <= 3.1e-62) {
tmp = fma(fma(-j, y, (b * t)), i, (fma(-z, b, (j * a)) * c));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = fma(fma(Float64(-i), y, Float64(c * a)), j, Float64(fma(Float64(-a), x, Float64(i * b)) * t)) tmp = 0.0 if (t <= -1.1e-23) tmp = t_1; elseif (t <= 3.1e-62) tmp = fma(fma(Float64(-j), y, Float64(b * t)), i, Float64(fma(Float64(-z), b, Float64(j * a)) * c)); 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 + N[(N[((-a) * x + N[(i * b), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.1e-23], t$95$1, If[LessEqual[t, 3.1e-62], N[(N[((-j) * y + N[(b * t), $MachinePrecision]), $MachinePrecision] * i + N[(N[((-z) * b + N[(j * a), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(\mathsf{fma}\left(-i, y, c \cdot a\right), j, \mathsf{fma}\left(-a, x, i \cdot b\right) \cdot t\right)\\
\mathbf{if}\;t \leq -1.1 \cdot 10^{-23}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 3.1 \cdot 10^{-62}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-j, y, b \cdot t\right), i, \mathsf{fma}\left(-z, b, j \cdot a\right) \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -1.1e-23 or 3.0999999999999999e-62 < t Initial program 69.0%
Taylor expanded in t around 0
associate--l+N/A
*-commutativeN/A
lower-fma.f64N/A
cancel-sub-sign-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.7%
Taylor expanded in z around 0
Applied rewrites74.0%
if -1.1e-23 < t < 3.0999999999999999e-62Initial program 79.1%
Taylor expanded in c around 0
Applied rewrites84.6%
Taylor expanded in x around 0
Applied rewrites72.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma (- a) t (* z y)) x)))
(if (<= x -1e+130)
t_1
(if (<= x 3e+143)
(fma (fma (- j) y (* b t)) i (* (fma (- z) b (* j a)) c))
t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(-a, t, (z * y)) * x;
double tmp;
if (x <= -1e+130) {
tmp = t_1;
} else if (x <= 3e+143) {
tmp = fma(fma(-j, y, (b * t)), i, (fma(-z, b, (j * a)) * c));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(fma(Float64(-a), t, Float64(z * y)) * x) tmp = 0.0 if (x <= -1e+130) tmp = t_1; elseif (x <= 3e+143) tmp = fma(fma(Float64(-j), y, Float64(b * t)), i, Float64(fma(Float64(-z), b, Float64(j * a)) * c)); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-a) * t + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]}, If[LessEqual[x, -1e+130], t$95$1, If[LessEqual[x, 3e+143], N[(N[((-j) * y + N[(b * t), $MachinePrecision]), $MachinePrecision] * i + N[(N[((-z) * b + N[(j * a), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\
\mathbf{if}\;x \leq -1 \cdot 10^{+130}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 3 \cdot 10^{+143}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-j, y, b \cdot t\right), i, \mathsf{fma}\left(-z, b, j \cdot a\right) \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -1.0000000000000001e130 or 3.0000000000000001e143 < x Initial program 81.0%
Taylor expanded in t around 0
associate--l+N/A
*-commutativeN/A
lower-fma.f64N/A
cancel-sub-sign-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 rewrites67.3%
Taylor expanded in x around inf
*-commutativeN/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6481.7
Applied rewrites81.7%
if -1.0000000000000001e130 < x < 3.0000000000000001e143Initial program 71.0%
Taylor expanded in c around 0
Applied rewrites70.6%
Taylor expanded in x around 0
Applied rewrites68.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma (- a) t (* z y)) x)) (t_2 (* (fma j a (* (- z) b)) c)))
(if (<= c -1.9e+68)
t_2
(if (<= c -6.2e-27)
t_1
(if (<= c 3.9e-293)
(* (fma (- i) j (* z x)) y)
(if (<= c 6.4e-108) (* (* i b) t) (if (<= c 1.05e-19) 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(-a, t, (z * y)) * x;
double t_2 = fma(j, a, (-z * b)) * c;
double tmp;
if (c <= -1.9e+68) {
tmp = t_2;
} else if (c <= -6.2e-27) {
tmp = t_1;
} else if (c <= 3.9e-293) {
tmp = fma(-i, j, (z * x)) * y;
} else if (c <= 6.4e-108) {
tmp = (i * b) * t;
} else if (c <= 1.05e-19) {
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(-a), t, Float64(z * y)) * x) t_2 = Float64(fma(j, a, Float64(Float64(-z) * b)) * c) tmp = 0.0 if (c <= -1.9e+68) tmp = t_2; elseif (c <= -6.2e-27) tmp = t_1; elseif (c <= 3.9e-293) tmp = Float64(fma(Float64(-i), j, Float64(z * x)) * y); elseif (c <= 6.4e-108) tmp = Float64(Float64(i * b) * t); elseif (c <= 1.05e-19) 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[((-a) * t + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]}, Block[{t$95$2 = N[(N[(j * a + N[((-z) * b), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision]}, If[LessEqual[c, -1.9e+68], t$95$2, If[LessEqual[c, -6.2e-27], t$95$1, If[LessEqual[c, 3.9e-293], N[(N[((-i) * j + N[(z * x), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[c, 6.4e-108], N[(N[(i * b), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[c, 1.05e-19], t$95$1, t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\
t_2 := \mathsf{fma}\left(j, a, \left(-z\right) \cdot b\right) \cdot c\\
\mathbf{if}\;c \leq -1.9 \cdot 10^{+68}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;c \leq -6.2 \cdot 10^{-27}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq 3.9 \cdot 10^{-293}:\\
\;\;\;\;\mathsf{fma}\left(-i, j, z \cdot x\right) \cdot y\\
\mathbf{elif}\;c \leq 6.4 \cdot 10^{-108}:\\
\;\;\;\;\left(i \cdot b\right) \cdot t\\
\mathbf{elif}\;c \leq 1.05 \cdot 10^{-19}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if c < -1.9e68 or 1.0499999999999999e-19 < c Initial program 63.5%
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-*.f6468.0
Applied rewrites68.0%
Applied rewrites69.7%
if -1.9e68 < c < -6.1999999999999997e-27 or 6.3999999999999999e-108 < c < 1.0499999999999999e-19Initial program 76.0%
Taylor expanded in t around 0
associate--l+N/A
*-commutativeN/A
lower-fma.f64N/A
cancel-sub-sign-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 rewrites73.0%
Taylor expanded in x around inf
*-commutativeN/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
lower-*.f64N/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 -6.1999999999999997e-27 < c < 3.9e-293Initial program 83.1%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
lower-fma.f64N/A
neg-mul-1N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6447.3
Applied rewrites47.3%
if 3.9e-293 < c < 6.3999999999999999e-108Initial program 84.4%
Taylor expanded in t 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
remove-double-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6467.1
Applied rewrites67.1%
Taylor expanded in x around 0
Applied rewrites61.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma (- a) t (* z y)) x)))
(if (<= x -1e+130)
t_1
(if (<= x -1.05e-109)
(fma (* i b) t (* (fma (- b) z (* j a)) c))
(if (<= x 3.8e+86) (fma (* j c) a (* (fma (- y) j (* b t)) i)) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(-a, t, (z * y)) * x;
double tmp;
if (x <= -1e+130) {
tmp = t_1;
} else if (x <= -1.05e-109) {
tmp = fma((i * b), t, (fma(-b, z, (j * a)) * c));
} else if (x <= 3.8e+86) {
tmp = fma((j * c), a, (fma(-y, j, (b * t)) * i));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(fma(Float64(-a), t, Float64(z * y)) * x) tmp = 0.0 if (x <= -1e+130) tmp = t_1; elseif (x <= -1.05e-109) tmp = fma(Float64(i * b), t, Float64(fma(Float64(-b), z, Float64(j * a)) * c)); elseif (x <= 3.8e+86) tmp = fma(Float64(j * c), a, Float64(fma(Float64(-y), j, Float64(b * t)) * i)); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-a) * t + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]}, If[LessEqual[x, -1e+130], t$95$1, If[LessEqual[x, -1.05e-109], N[(N[(i * b), $MachinePrecision] * t + N[(N[((-b) * z + N[(j * a), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 3.8e+86], N[(N[(j * c), $MachinePrecision] * a + N[(N[((-y) * j + N[(b * t), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\
\mathbf{if}\;x \leq -1 \cdot 10^{+130}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq -1.05 \cdot 10^{-109}:\\
\;\;\;\;\mathsf{fma}\left(i \cdot b, t, \mathsf{fma}\left(-b, z, j \cdot a\right) \cdot c\right)\\
\mathbf{elif}\;x \leq 3.8 \cdot 10^{+86}:\\
\;\;\;\;\mathsf{fma}\left(j \cdot c, a, \mathsf{fma}\left(-y, j, b \cdot t\right) \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -1.0000000000000001e130 or 3.79999999999999978e86 < x Initial program 79.7%
Taylor expanded in t around 0
associate--l+N/A
*-commutativeN/A
lower-fma.f64N/A
cancel-sub-sign-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 rewrites68.3%
Taylor expanded in x around inf
*-commutativeN/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6477.7
Applied rewrites77.7%
if -1.0000000000000001e130 < x < -1.04999999999999998e-109Initial program 73.0%
Taylor expanded in c around 0
Applied rewrites77.3%
Taylor expanded in x around 0
Applied rewrites72.2%
Taylor expanded in y around 0
Applied rewrites65.9%
if -1.04999999999999998e-109 < x < 3.79999999999999978e86Initial program 70.2%
Taylor expanded in c around 0
Applied rewrites67.5%
Taylor expanded in x around 0
Applied rewrites68.6%
Taylor expanded in z around 0
Applied rewrites63.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma (- a) t (* z y)) x)))
(if (<= x -1e+130)
t_1
(if (<= x 2.8e+143) (fma (* i b) t (* (fma (- b) z (* j a)) c)) t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(-a, t, (z * y)) * x;
double tmp;
if (x <= -1e+130) {
tmp = t_1;
} else if (x <= 2.8e+143) {
tmp = fma((i * b), t, (fma(-b, z, (j * a)) * c));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(fma(Float64(-a), t, Float64(z * y)) * x) tmp = 0.0 if (x <= -1e+130) tmp = t_1; elseif (x <= 2.8e+143) tmp = fma(Float64(i * b), t, Float64(fma(Float64(-b), z, Float64(j * a)) * c)); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[((-a) * t + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]}, If[LessEqual[x, -1e+130], t$95$1, If[LessEqual[x, 2.8e+143], N[(N[(i * b), $MachinePrecision] * t + N[(N[((-b) * z + N[(j * a), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\
\mathbf{if}\;x \leq -1 \cdot 10^{+130}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 2.8 \cdot 10^{+143}:\\
\;\;\;\;\mathsf{fma}\left(i \cdot b, t, \mathsf{fma}\left(-b, z, j \cdot a\right) \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -1.0000000000000001e130 or 2.79999999999999998e143 < x Initial program 81.0%
Taylor expanded in t around 0
associate--l+N/A
*-commutativeN/A
lower-fma.f64N/A
cancel-sub-sign-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 rewrites67.3%
Taylor expanded in x around inf
*-commutativeN/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6481.7
Applied rewrites81.7%
if -1.0000000000000001e130 < x < 2.79999999999999998e143Initial program 71.0%
Taylor expanded in c around 0
Applied rewrites70.6%
Taylor expanded in x around 0
Applied rewrites68.9%
Taylor expanded in y around 0
Applied rewrites61.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma j a (* (- z) b)) c)))
(if (<= c -1.9e+68)
t_1
(if (<= c -250000000.0)
(* (fma (- a) t (* z y)) x)
(if (<= c 4.6e-11) (* (fma (- x) a (* i b)) t) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(j, a, (-z * b)) * c;
double tmp;
if (c <= -1.9e+68) {
tmp = t_1;
} else if (c <= -250000000.0) {
tmp = fma(-a, t, (z * y)) * x;
} else if (c <= 4.6e-11) {
tmp = fma(-x, a, (i * b)) * t;
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(fma(j, a, Float64(Float64(-z) * b)) * c) tmp = 0.0 if (c <= -1.9e+68) tmp = t_1; elseif (c <= -250000000.0) tmp = Float64(fma(Float64(-a), t, Float64(z * y)) * x); elseif (c <= 4.6e-11) tmp = Float64(fma(Float64(-x), a, Float64(i * b)) * t); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(j * a + N[((-z) * b), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision]}, If[LessEqual[c, -1.9e+68], t$95$1, If[LessEqual[c, -250000000.0], N[(N[((-a) * t + N[(z * y), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[c, 4.6e-11], N[(N[((-x) * a + N[(i * b), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(j, a, \left(-z\right) \cdot b\right) \cdot c\\
\mathbf{if}\;c \leq -1.9 \cdot 10^{+68}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq -250000000:\\
\;\;\;\;\mathsf{fma}\left(-a, t, z \cdot y\right) \cdot x\\
\mathbf{elif}\;c \leq 4.6 \cdot 10^{-11}:\\
\;\;\;\;\mathsf{fma}\left(-x, a, i \cdot b\right) \cdot t\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if c < -1.9e68 or 4.60000000000000027e-11 < c Initial program 63.4%
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-*.f6469.7
Applied rewrites69.7%
Applied rewrites71.5%
if -1.9e68 < c < -2.5e8Initial program 67.2%
Taylor expanded in t around 0
associate--l+N/A
*-commutativeN/A
lower-fma.f64N/A
cancel-sub-sign-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 rewrites60.5%
Taylor expanded in x around inf
*-commutativeN/A
sub-negN/A
mul-1-negN/A
+-commutativeN/A
lower-*.f64N/A
associate-*r*N/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6475.0
Applied rewrites75.0%
if -2.5e8 < c < 4.60000000000000027e-11Initial program 82.9%
Taylor expanded in t 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
remove-double-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6451.7
Applied rewrites51.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (fma j a (* (- z) b)) c)))
(if (<= c -520000000.0)
t_1
(if (<= c -2.3e-208)
(* (fma (- i) y (* c a)) j)
(if (<= c 4.4e-11) (* (* i t) b) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = fma(j, a, (-z * b)) * c;
double tmp;
if (c <= -520000000.0) {
tmp = t_1;
} else if (c <= -2.3e-208) {
tmp = fma(-i, y, (c * a)) * j;
} else if (c <= 4.4e-11) {
tmp = (i * t) * b;
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(fma(j, a, Float64(Float64(-z) * b)) * c) tmp = 0.0 if (c <= -520000000.0) tmp = t_1; elseif (c <= -2.3e-208) tmp = Float64(fma(Float64(-i), y, Float64(c * a)) * j); elseif (c <= 4.4e-11) tmp = Float64(Float64(i * t) * b); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(j * a + N[((-z) * b), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision]}, If[LessEqual[c, -520000000.0], t$95$1, If[LessEqual[c, -2.3e-208], N[(N[((-i) * y + N[(c * a), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision], If[LessEqual[c, 4.4e-11], N[(N[(i * t), $MachinePrecision] * b), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(j, a, \left(-z\right) \cdot b\right) \cdot c\\
\mathbf{if}\;c \leq -520000000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq -2.3 \cdot 10^{-208}:\\
\;\;\;\;\mathsf{fma}\left(-i, y, c \cdot a\right) \cdot j\\
\mathbf{elif}\;c \leq 4.4 \cdot 10^{-11}:\\
\;\;\;\;\left(i \cdot t\right) \cdot b\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if c < -5.2e8 or 4.4000000000000003e-11 < c Initial program 63.6%
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-*.f6465.5
Applied rewrites65.5%
Applied rewrites67.1%
if -5.2e8 < c < -2.29999999999999997e-208Initial program 83.6%
Taylor expanded in t around 0
associate--l+N/A
*-commutativeN/A
lower-fma.f64N/A
cancel-sub-sign-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 rewrites90.5%
Taylor expanded in j around inf
Applied rewrites44.6%
if -2.29999999999999997e-208 < c < 4.4000000000000003e-11Initial program 82.7%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
*-commutativeN/A
associate-*r*N/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6454.1
Applied rewrites54.1%
Taylor expanded in y around 0
Applied rewrites43.5%
(FPCore (x y z t a b c i j) :precision binary64 (let* ((t_1 (* (fma (- i) y (* c a)) j))) (if (<= c -2.75e-208) t_1 (if (<= c 2.25e-107) (* (* i b) t) 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 (c <= -2.75e-208) {
tmp = t_1;
} else if (c <= 2.25e-107) {
tmp = (i * b) * t;
} 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 (c <= -2.75e-208) tmp = t_1; elseif (c <= 2.25e-107) tmp = Float64(Float64(i * b) * t); 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[c, -2.75e-208], t$95$1, If[LessEqual[c, 2.25e-107], N[(N[(i * b), $MachinePrecision] * t), $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}\;c \leq -2.75 \cdot 10^{-208}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq 2.25 \cdot 10^{-107}:\\
\;\;\;\;\left(i \cdot b\right) \cdot t\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if c < -2.7499999999999998e-208 or 2.25000000000000008e-107 < c Initial program 69.9%
Taylor expanded in t around 0
associate--l+N/A
*-commutativeN/A
lower-fma.f64N/A
cancel-sub-sign-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 rewrites73.1%
Taylor expanded in j around inf
Applied rewrites47.0%
if -2.7499999999999998e-208 < c < 2.25000000000000008e-107Initial program 83.4%
Taylor expanded in t 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
remove-double-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6458.4
Applied rewrites58.4%
Taylor expanded in x around 0
Applied rewrites49.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (* j a) c)))
(if (<= a -1.55e+81)
t_1
(if (<= a -4.8e-120)
(* (* z y) x)
(if (<= a 1.1e+36) (* (* b t) 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 = (j * a) * c;
double tmp;
if (a <= -1.55e+81) {
tmp = t_1;
} else if (a <= -4.8e-120) {
tmp = (z * y) * x;
} else if (a <= 1.1e+36) {
tmp = (b * t) * i;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = (j * a) * c
if (a <= (-1.55d+81)) then
tmp = t_1
else if (a <= (-4.8d-120)) then
tmp = (z * y) * x
else if (a <= 1.1d+36) then
tmp = (b * t) * i
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (j * a) * c;
double tmp;
if (a <= -1.55e+81) {
tmp = t_1;
} else if (a <= -4.8e-120) {
tmp = (z * y) * x;
} else if (a <= 1.1e+36) {
tmp = (b * t) * i;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (j * a) * c tmp = 0 if a <= -1.55e+81: tmp = t_1 elif a <= -4.8e-120: tmp = (z * y) * x elif a <= 1.1e+36: tmp = (b * t) * i else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(j * a) * c) tmp = 0.0 if (a <= -1.55e+81) tmp = t_1; elseif (a <= -4.8e-120) tmp = Float64(Float64(z * y) * x); elseif (a <= 1.1e+36) tmp = Float64(Float64(b * t) * i); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (j * a) * c; tmp = 0.0; if (a <= -1.55e+81) tmp = t_1; elseif (a <= -4.8e-120) tmp = (z * y) * x; elseif (a <= 1.1e+36) tmp = (b * t) * i; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(j * a), $MachinePrecision] * c), $MachinePrecision]}, If[LessEqual[a, -1.55e+81], t$95$1, If[LessEqual[a, -4.8e-120], N[(N[(z * y), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[a, 1.1e+36], N[(N[(b * t), $MachinePrecision] * i), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(j \cdot a\right) \cdot c\\
\mathbf{if}\;a \leq -1.55 \cdot 10^{+81}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -4.8 \cdot 10^{-120}:\\
\;\;\;\;\left(z \cdot y\right) \cdot x\\
\mathbf{elif}\;a \leq 1.1 \cdot 10^{+36}:\\
\;\;\;\;\left(b \cdot t\right) \cdot i\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -1.55e81 or 1.1e36 < a Initial program 64.2%
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-*.f6454.0
Applied rewrites54.0%
Taylor expanded in z around 0
Applied rewrites45.6%
if -1.55e81 < a < -4.7999999999999999e-120Initial program 83.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-*.f6449.1
Applied rewrites49.1%
Taylor expanded in x around inf
Applied rewrites42.7%
if -4.7999999999999999e-120 < a < 1.1e36Initial program 80.5%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
*-commutativeN/A
associate-*r*N/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6454.4
Applied rewrites54.4%
Taylor expanded in y around 0
Applied rewrites36.7%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= t -5.5e-121) (* (* i t) b) (if (<= t 2.02e+40) (* (* y x) z) (* (* b t) i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= -5.5e-121) {
tmp = (i * t) * b;
} else if (t <= 2.02e+40) {
tmp = (y * x) * z;
} else {
tmp = (b * t) * i;
}
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 <= (-5.5d-121)) then
tmp = (i * t) * b
else if (t <= 2.02d+40) then
tmp = (y * x) * z
else
tmp = (b * t) * i
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 <= -5.5e-121) {
tmp = (i * t) * b;
} else if (t <= 2.02e+40) {
tmp = (y * x) * z;
} else {
tmp = (b * t) * i;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if t <= -5.5e-121: tmp = (i * t) * b elif t <= 2.02e+40: tmp = (y * x) * z else: tmp = (b * t) * i return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (t <= -5.5e-121) tmp = Float64(Float64(i * t) * b); elseif (t <= 2.02e+40) tmp = Float64(Float64(y * x) * z); else tmp = Float64(Float64(b * t) * i); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (t <= -5.5e-121) tmp = (i * t) * b; elseif (t <= 2.02e+40) tmp = (y * x) * z; else tmp = (b * t) * i; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[t, -5.5e-121], N[(N[(i * t), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[t, 2.02e+40], N[(N[(y * x), $MachinePrecision] * z), $MachinePrecision], N[(N[(b * t), $MachinePrecision] * i), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -5.5 \cdot 10^{-121}:\\
\;\;\;\;\left(i \cdot t\right) \cdot b\\
\mathbf{elif}\;t \leq 2.02 \cdot 10^{+40}:\\
\;\;\;\;\left(y \cdot x\right) \cdot z\\
\mathbf{else}:\\
\;\;\;\;\left(b \cdot t\right) \cdot i\\
\end{array}
\end{array}
if t < -5.50000000000000031e-121Initial program 72.7%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
*-commutativeN/A
associate-*r*N/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6447.6
Applied rewrites47.6%
Taylor expanded in y around 0
Applied rewrites38.0%
if -5.50000000000000031e-121 < t < 2.0200000000000001e40Initial program 78.6%
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-*.f6451.7
Applied rewrites51.7%
Taylor expanded in x around inf
Applied rewrites33.3%
if 2.0200000000000001e40 < t Initial program 64.2%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
*-commutativeN/A
associate-*r*N/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6447.8
Applied rewrites47.8%
Taylor expanded in y around 0
Applied rewrites42.3%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= y -1.55e+43) (* (* z y) x) (if (<= y 420000.0) (* (* i b) t) (* (* 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 (y <= -1.55e+43) {
tmp = (z * y) * x;
} else if (y <= 420000.0) {
tmp = (i * b) * t;
} else {
tmp = (y * x) * 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 (y <= (-1.55d+43)) then
tmp = (z * y) * x
else if (y <= 420000.0d0) then
tmp = (i * b) * t
else
tmp = (y * x) * 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 (y <= -1.55e+43) {
tmp = (z * y) * x;
} else if (y <= 420000.0) {
tmp = (i * b) * t;
} else {
tmp = (y * x) * z;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if y <= -1.55e+43: tmp = (z * y) * x elif y <= 420000.0: tmp = (i * b) * t else: tmp = (y * x) * z return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (y <= -1.55e+43) tmp = Float64(Float64(z * y) * x); elseif (y <= 420000.0) tmp = Float64(Float64(i * b) * t); else tmp = Float64(Float64(y * x) * z); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (y <= -1.55e+43) tmp = (z * y) * x; elseif (y <= 420000.0) tmp = (i * b) * t; else tmp = (y * x) * z; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[y, -1.55e+43], N[(N[(z * y), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[y, 420000.0], N[(N[(i * b), $MachinePrecision] * t), $MachinePrecision], N[(N[(y * x), $MachinePrecision] * z), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.55 \cdot 10^{+43}:\\
\;\;\;\;\left(z \cdot y\right) \cdot x\\
\mathbf{elif}\;y \leq 420000:\\
\;\;\;\;\left(i \cdot b\right) \cdot t\\
\mathbf{else}:\\
\;\;\;\;\left(y \cdot x\right) \cdot z\\
\end{array}
\end{array}
if y < -1.5500000000000001e43Initial program 54.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-*.f6441.1
Applied rewrites41.1%
Taylor expanded in x around inf
Applied rewrites36.7%
if -1.5500000000000001e43 < y < 4.2e5Initial program 82.2%
Taylor expanded in t 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
remove-double-negN/A
lower-fma.f64N/A
lower-neg.f64N/A
*-commutativeN/A
lower-*.f6450.8
Applied rewrites50.8%
Taylor expanded in x around 0
Applied rewrites33.8%
if 4.2e5 < y Initial program 66.6%
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.3
Applied rewrites49.3%
Taylor expanded in x around inf
Applied rewrites41.8%
(FPCore (x y z t a b c i j) :precision binary64 (let* ((t_1 (* (* i t) b))) (if (<= t -5.5e-121) t_1 (if (<= t 2.02e+40) (* (* 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 = (i * t) * b;
double tmp;
if (t <= -5.5e-121) {
tmp = t_1;
} else if (t <= 2.02e+40) {
tmp = (y * x) * z;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = (i * t) * b
if (t <= (-5.5d-121)) then
tmp = t_1
else if (t <= 2.02d+40) then
tmp = (y * x) * z
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (i * t) * b;
double tmp;
if (t <= -5.5e-121) {
tmp = t_1;
} else if (t <= 2.02e+40) {
tmp = (y * x) * z;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (i * t) * b tmp = 0 if t <= -5.5e-121: tmp = t_1 elif t <= 2.02e+40: tmp = (y * x) * z else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(i * t) * b) tmp = 0.0 if (t <= -5.5e-121) tmp = t_1; elseif (t <= 2.02e+40) tmp = Float64(Float64(y * x) * z); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (i * t) * b; tmp = 0.0; if (t <= -5.5e-121) tmp = t_1; elseif (t <= 2.02e+40) tmp = (y * x) * z; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(i * t), $MachinePrecision] * b), $MachinePrecision]}, If[LessEqual[t, -5.5e-121], t$95$1, If[LessEqual[t, 2.02e+40], N[(N[(y * x), $MachinePrecision] * z), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(i \cdot t\right) \cdot b\\
\mathbf{if}\;t \leq -5.5 \cdot 10^{-121}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 2.02 \cdot 10^{+40}:\\
\;\;\;\;\left(y \cdot x\right) \cdot z\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -5.50000000000000031e-121 or 2.0200000000000001e40 < t Initial program 69.6%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
*-commutativeN/A
associate-*r*N/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6447.7
Applied rewrites47.7%
Taylor expanded in y around 0
Applied rewrites37.7%
if -5.50000000000000031e-121 < t < 2.0200000000000001e40Initial program 78.6%
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-*.f6451.7
Applied rewrites51.7%
Taylor expanded in x around inf
Applied rewrites33.3%
(FPCore (x y z t a b c i j) :precision binary64 (let* ((t_1 (* (* i t) b))) (if (<= t -1.2e-121) t_1 (if (<= t 2e+40) (* (* z y) x) t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (i * t) * b;
double tmp;
if (t <= -1.2e-121) {
tmp = t_1;
} else if (t <= 2e+40) {
tmp = (z * y) * x;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = (i * t) * b
if (t <= (-1.2d-121)) then
tmp = t_1
else if (t <= 2d+40) then
tmp = (z * y) * x
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (i * t) * b;
double tmp;
if (t <= -1.2e-121) {
tmp = t_1;
} else if (t <= 2e+40) {
tmp = (z * y) * x;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (i * t) * b tmp = 0 if t <= -1.2e-121: tmp = t_1 elif t <= 2e+40: tmp = (z * y) * x else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(i * t) * b) tmp = 0.0 if (t <= -1.2e-121) tmp = t_1; elseif (t <= 2e+40) tmp = Float64(Float64(z * y) * x); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (i * t) * b; tmp = 0.0; if (t <= -1.2e-121) tmp = t_1; elseif (t <= 2e+40) tmp = (z * y) * x; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(i * t), $MachinePrecision] * b), $MachinePrecision]}, If[LessEqual[t, -1.2e-121], t$95$1, If[LessEqual[t, 2e+40], N[(N[(z * y), $MachinePrecision] * x), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(i \cdot t\right) \cdot b\\
\mathbf{if}\;t \leq -1.2 \cdot 10^{-121}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 2 \cdot 10^{+40}:\\
\;\;\;\;\left(z \cdot y\right) \cdot x\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -1.20000000000000002e-121 or 2.00000000000000006e40 < t Initial program 69.6%
Taylor expanded in i around inf
*-commutativeN/A
lower-*.f64N/A
sub-negN/A
*-commutativeN/A
associate-*r*N/A
mul-1-negN/A
remove-double-negN/A
lower-fma.f64N/A
mul-1-negN/A
lower-neg.f64N/A
lower-*.f6447.7
Applied rewrites47.7%
Taylor expanded in y around 0
Applied rewrites37.7%
if -1.20000000000000002e-121 < t < 2.00000000000000006e40Initial program 78.6%
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-*.f6451.7
Applied rewrites51.7%
Taylor expanded in x around inf
Applied rewrites32.3%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= i -2.35e-286) (* (* z x) y) (* (* 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 (i <= -2.35e-286) {
tmp = (z * x) * y;
} else {
tmp = (z * y) * 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 (i <= (-2.35d-286)) then
tmp = (z * x) * y
else
tmp = (z * y) * 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 (i <= -2.35e-286) {
tmp = (z * x) * y;
} else {
tmp = (z * y) * x;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if i <= -2.35e-286: tmp = (z * x) * y else: tmp = (z * y) * x return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (i <= -2.35e-286) tmp = Float64(Float64(z * x) * y); else tmp = Float64(Float64(z * y) * x); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (i <= -2.35e-286) tmp = (z * x) * y; else tmp = (z * y) * x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[i, -2.35e-286], N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision], N[(N[(z * y), $MachinePrecision] * x), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -2.35 \cdot 10^{-286}:\\
\;\;\;\;\left(z \cdot x\right) \cdot y\\
\mathbf{else}:\\
\;\;\;\;\left(z \cdot y\right) \cdot x\\
\end{array}
\end{array}
if i < -2.35e-286Initial program 72.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-*.f6437.6
Applied rewrites37.6%
Taylor expanded in x around inf
Applied rewrites20.4%
Applied rewrites23.7%
if -2.35e-286 < i Initial program 74.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-*.f6436.9
Applied rewrites36.9%
Taylor expanded in x around inf
Applied rewrites22.7%
(FPCore (x y z t a b c i j) :precision binary64 (* (* z x) y))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return (z * x) * y;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = (z * x) * y
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return (z * x) * y;
}
def code(x, y, z, t, a, b, c, i, j): return (z * x) * y
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(z * x) * y) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = (z * x) * y; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(z * x), $MachinePrecision] * y), $MachinePrecision]
\begin{array}{l}
\\
\left(z \cdot x\right) \cdot y
\end{array}
Initial program 73.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-*.f6437.3
Applied rewrites37.3%
Taylor expanded in x around inf
Applied rewrites21.5%
Applied rewrites21.4%
(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 2024298
(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)))))