Average Error: 12.1 → 12.7
Time: 8.2s
Precision: 64
\[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)\]
\[\begin{array}{l} \mathbf{if}\;j \le -2.31841043213645909 \cdot 10^{-174}:\\ \;\;\;\;\left(x \cdot \left(y \cdot z - t \cdot a\right) - \left(b \cdot \left(c \cdot z\right) + \left(b \cdot \left(\sqrt[3]{-i \cdot a} \cdot \sqrt[3]{-i \cdot a}\right)\right) \cdot \left(\sqrt[3]{\sqrt[3]{-i \cdot a} \cdot \sqrt[3]{-i \cdot a}} \cdot \sqrt[3]{\sqrt[3]{-i \cdot a}}\right)\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)\\ \mathbf{elif}\;j \le 8.93782603631727 \cdot 10^{-115}:\\ \;\;\;\;\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + 0\\ \mathbf{else}:\\ \;\;\;\;\left(x \cdot \left(y \cdot z - t \cdot a\right) - \left(b \cdot \left(c \cdot z\right) + \left(-a \cdot \left(i \cdot b\right)\right)\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)\\ \end{array}\]
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)
\begin{array}{l}
\mathbf{if}\;j \le -2.31841043213645909 \cdot 10^{-174}:\\
\;\;\;\;\left(x \cdot \left(y \cdot z - t \cdot a\right) - \left(b \cdot \left(c \cdot z\right) + \left(b \cdot \left(\sqrt[3]{-i \cdot a} \cdot \sqrt[3]{-i \cdot a}\right)\right) \cdot \left(\sqrt[3]{\sqrt[3]{-i \cdot a} \cdot \sqrt[3]{-i \cdot a}} \cdot \sqrt[3]{\sqrt[3]{-i \cdot a}}\right)\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)\\

\mathbf{elif}\;j \le 8.93782603631727 \cdot 10^{-115}:\\
\;\;\;\;\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + 0\\

\mathbf{else}:\\
\;\;\;\;\left(x \cdot \left(y \cdot z - t \cdot a\right) - \left(b \cdot \left(c \cdot z\right) + \left(-a \cdot \left(i \cdot b\right)\right)\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)\\

\end{array}
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	return ((double) (((double) (((double) (x * ((double) (((double) (y * z)) - ((double) (t * a)))))) - ((double) (b * ((double) (((double) (c * z)) - ((double) (i * a)))))))) + ((double) (j * ((double) (((double) (c * t)) - ((double) (i * y))))))));
}
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
	double VAR;
	if ((j <= -2.318410432136459e-174)) {
		VAR = ((double) (((double) (((double) (x * ((double) (((double) (y * z)) - ((double) (t * a)))))) - ((double) (((double) (b * ((double) (c * z)))) + ((double) (((double) (b * ((double) (((double) cbrt(((double) -(((double) (i * a)))))) * ((double) cbrt(((double) -(((double) (i * a)))))))))) * ((double) (((double) cbrt(((double) (((double) cbrt(((double) -(((double) (i * a)))))) * ((double) cbrt(((double) -(((double) (i * a)))))))))) * ((double) cbrt(((double) cbrt(((double) -(((double) (i * a)))))))))))))))) + ((double) (j * ((double) (((double) (c * t)) - ((double) (i * y))))))));
	} else {
		double VAR_1;
		if ((j <= 8.93782603631727e-115)) {
			VAR_1 = ((double) (((double) (((double) (x * ((double) (((double) (y * z)) - ((double) (t * a)))))) - ((double) (b * ((double) (((double) (c * z)) - ((double) (i * a)))))))) + 0.0));
		} else {
			VAR_1 = ((double) (((double) (((double) (x * ((double) (((double) (y * z)) - ((double) (t * a)))))) - ((double) (((double) (b * ((double) (c * z)))) + ((double) -(((double) (a * ((double) (i * b)))))))))) + ((double) (j * ((double) (((double) (c * t)) - ((double) (i * y))))))));
		}
		VAR = VAR_1;
	}
	return VAR;
}

Error

Bits error versus x

Bits error versus y

Bits error versus z

Bits error versus t

Bits error versus a

Bits error versus b

Bits error versus c

Bits error versus i

Bits error versus j

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Split input into 3 regimes
  2. if j < -2.318410432136459e-174

    1. Initial program 9.9

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)\]
    2. Using strategy rm
    3. Applied sub-neg9.9

      \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \color{blue}{\left(c \cdot z + \left(-i \cdot a\right)\right)}\right) + j \cdot \left(c \cdot t - i \cdot y\right)\]
    4. Applied distribute-lft-in9.9

      \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - \color{blue}{\left(b \cdot \left(c \cdot z\right) + b \cdot \left(-i \cdot a\right)\right)}\right) + j \cdot \left(c \cdot t - i \cdot y\right)\]
    5. Using strategy rm
    6. Applied add-cube-cbrt10.1

      \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - \left(b \cdot \left(c \cdot z\right) + b \cdot \color{blue}{\left(\left(\sqrt[3]{-i \cdot a} \cdot \sqrt[3]{-i \cdot a}\right) \cdot \sqrt[3]{-i \cdot a}\right)}\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)\]
    7. Applied associate-*r*10.1

      \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - \left(b \cdot \left(c \cdot z\right) + \color{blue}{\left(b \cdot \left(\sqrt[3]{-i \cdot a} \cdot \sqrt[3]{-i \cdot a}\right)\right) \cdot \sqrt[3]{-i \cdot a}}\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)\]
    8. Using strategy rm
    9. Applied add-cube-cbrt10.1

      \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - \left(b \cdot \left(c \cdot z\right) + \left(b \cdot \left(\sqrt[3]{-i \cdot a} \cdot \sqrt[3]{-i \cdot a}\right)\right) \cdot \sqrt[3]{\color{blue}{\left(\sqrt[3]{-i \cdot a} \cdot \sqrt[3]{-i \cdot a}\right) \cdot \sqrt[3]{-i \cdot a}}}\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)\]
    10. Applied cbrt-prod10.1

      \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - \left(b \cdot \left(c \cdot z\right) + \left(b \cdot \left(\sqrt[3]{-i \cdot a} \cdot \sqrt[3]{-i \cdot a}\right)\right) \cdot \color{blue}{\left(\sqrt[3]{\sqrt[3]{-i \cdot a} \cdot \sqrt[3]{-i \cdot a}} \cdot \sqrt[3]{\sqrt[3]{-i \cdot a}}\right)}\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)\]

    if -2.318410432136459e-174 < j < 8.93782603631727e-115

    1. Initial program 17.5

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)\]
    2. Taylor expanded around 0 18.3

      \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \color{blue}{0}\]

    if 8.93782603631727e-115 < j

    1. Initial program 8.6

      \[\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)\]
    2. Using strategy rm
    3. Applied sub-neg8.6

      \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \color{blue}{\left(c \cdot z + \left(-i \cdot a\right)\right)}\right) + j \cdot \left(c \cdot t - i \cdot y\right)\]
    4. Applied distribute-lft-in8.6

      \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - \color{blue}{\left(b \cdot \left(c \cdot z\right) + b \cdot \left(-i \cdot a\right)\right)}\right) + j \cdot \left(c \cdot t - i \cdot y\right)\]
    5. Using strategy rm
    6. Applied distribute-rgt-neg-out8.6

      \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - \left(b \cdot \left(c \cdot z\right) + \color{blue}{\left(-b \cdot \left(i \cdot a\right)\right)}\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)\]
    7. Simplified9.3

      \[\leadsto \left(x \cdot \left(y \cdot z - t \cdot a\right) - \left(b \cdot \left(c \cdot z\right) + \left(-\color{blue}{a \cdot \left(i \cdot b\right)}\right)\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)\]
  3. Recombined 3 regimes into one program.
  4. Final simplification12.7

    \[\leadsto \begin{array}{l} \mathbf{if}\;j \le -2.31841043213645909 \cdot 10^{-174}:\\ \;\;\;\;\left(x \cdot \left(y \cdot z - t \cdot a\right) - \left(b \cdot \left(c \cdot z\right) + \left(b \cdot \left(\sqrt[3]{-i \cdot a} \cdot \sqrt[3]{-i \cdot a}\right)\right) \cdot \left(\sqrt[3]{\sqrt[3]{-i \cdot a} \cdot \sqrt[3]{-i \cdot a}} \cdot \sqrt[3]{\sqrt[3]{-i \cdot a}}\right)\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)\\ \mathbf{elif}\;j \le 8.93782603631727 \cdot 10^{-115}:\\ \;\;\;\;\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + 0\\ \mathbf{else}:\\ \;\;\;\;\left(x \cdot \left(y \cdot z - t \cdot a\right) - \left(b \cdot \left(c \cdot z\right) + \left(-a \cdot \left(i \cdot b\right)\right)\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)\\ \end{array}\]

Reproduce

herbie shell --seed 2020122 
(FPCore (x y z t a b c i j)
  :name "Linear.Matrix:det33 from linear-1.19.1.3"
  :precision binary64
  (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))