Average Error: 5.6 → 2.9
Time: 3.6m
Precision: 64
Internal Precision: 576
\[\left(\left(\left(\left(\left(\left(x \cdot 18.0\right) \cdot y\right) \cdot z\right) \cdot t - \left(a \cdot 4.0\right) \cdot t\right) + b \cdot c\right) - \left(x \cdot 4.0\right) \cdot i\right) - \left(j \cdot 27.0\right) \cdot k\]
\[\begin{array}{l} \mathbf{if}\;\left(\left(c \cdot b - k \cdot \left(27.0 \cdot j\right)\right) - \frac{x \cdot \left(\left(i \cdot 4.0\right) \cdot \left(i \cdot 4.0\right) - \left(\left(t \cdot y\right) \cdot \left(z \cdot 18.0\right)\right) \cdot \left(\left(t \cdot y\right) \cdot \left(z \cdot 18.0\right)\right)\right)}{i \cdot 4.0 + \left(t \cdot y\right) \cdot \left(z \cdot 18.0\right)}\right) + \left(-4.0 \cdot a\right) \cdot t \le -5.547019294989348 \cdot 10^{+302}:\\ \;\;\;\;\left(\left(\left(\left(\left(\left(x \cdot 18.0\right) \cdot y\right) \cdot z\right) \cdot t - \left(a \cdot 4.0\right) \cdot t\right) + b \cdot c\right) - \left(x \cdot 4.0\right) \cdot i\right) - \left(j \cdot 27.0\right) \cdot k\\ \mathbf{if}\;\left(\left(c \cdot b - k \cdot \left(27.0 \cdot j\right)\right) - \frac{x \cdot \left(\left(i \cdot 4.0\right) \cdot \left(i \cdot 4.0\right) - \left(\left(t \cdot y\right) \cdot \left(z \cdot 18.0\right)\right) \cdot \left(\left(t \cdot y\right) \cdot \left(z \cdot 18.0\right)\right)\right)}{i \cdot 4.0 + \left(t \cdot y\right) \cdot \left(z \cdot 18.0\right)}\right) + \left(-4.0 \cdot a\right) \cdot t \le -1.9183469463938016 \cdot 10^{+93}:\\ \;\;\;\;\left(\left(c \cdot b - k \cdot \left(27.0 \cdot j\right)\right) - \frac{x \cdot \left(\left(i \cdot 4.0\right) \cdot \left(i \cdot 4.0\right) - \left(\left(t \cdot y\right) \cdot \left(z \cdot 18.0\right)\right) \cdot \left(\left(t \cdot y\right) \cdot \left(z \cdot 18.0\right)\right)\right)}{i \cdot 4.0 + \left(t \cdot y\right) \cdot \left(z \cdot 18.0\right)}\right) + \left(-4.0 \cdot a\right) \cdot t\\ \mathbf{if}\;\left(\left(c \cdot b - k \cdot \left(27.0 \cdot j\right)\right) - \frac{x \cdot \left(\left(i \cdot 4.0\right) \cdot \left(i \cdot 4.0\right) - \left(\left(t \cdot y\right) \cdot \left(z \cdot 18.0\right)\right) \cdot \left(\left(t \cdot y\right) \cdot \left(z \cdot 18.0\right)\right)\right)}{i \cdot 4.0 + \left(t \cdot y\right) \cdot \left(z \cdot 18.0\right)}\right) + \left(-4.0 \cdot a\right) \cdot t \le 4.218312456325165 \cdot 10^{+301}:\\ \;\;\;\;\left(\left(c \cdot b - \left(k \cdot j\right) \cdot 27.0\right) - x \cdot \left(i \cdot 4.0 - \left(t \cdot 18.0\right) \cdot \left(z \cdot y\right)\right)\right) + t \cdot \left(-4.0 \cdot a\right)\\ \mathbf{else}:\\ \;\;\;\;\left(\left(\left(\left(\left(\left(x \cdot 18.0\right) \cdot y\right) \cdot z\right) \cdot t - \left(a \cdot 4.0\right) \cdot t\right) + b \cdot c\right) - \left(x \cdot 4.0\right) \cdot i\right) - \left(j \cdot 27.0\right) \cdot k\\ \end{array}\]

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

Bits error versus k

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Split input into 4 regimes
  2. if (+ (- (- (* c b) (* k (* 27.0 j))) (/ (* x (- (* (* i 4.0) (* i 4.0)) (* (* (* t y) (* z 18.0)) (* (* t y) (* z 18.0))))) (+ (* i 4.0) (* (* t y) (* z 18.0))))) (* (- (* 4.0 a)) t)) < -5.547019294989348e+302

    1. Initial program 6.9

      \[\left(\left(\left(\left(\left(\left(x \cdot 18.0\right) \cdot y\right) \cdot z\right) \cdot t - \left(a \cdot 4.0\right) \cdot t\right) + b \cdot c\right) - \left(x \cdot 4.0\right) \cdot i\right) - \left(j \cdot 27.0\right) \cdot k\]

    if -5.547019294989348e+302 < (+ (- (- (* c b) (* k (* 27.0 j))) (/ (* x (- (* (* i 4.0) (* i 4.0)) (* (* (* t y) (* z 18.0)) (* (* t y) (* z 18.0))))) (+ (* i 4.0) (* (* t y) (* z 18.0))))) (* (- (* 4.0 a)) t)) < -1.9183469463938016e+93

    1. Initial program 7.0

      \[\left(\left(\left(\left(\left(\left(x \cdot 18.0\right) \cdot y\right) \cdot z\right) \cdot t - \left(a \cdot 4.0\right) \cdot t\right) + b \cdot c\right) - \left(x \cdot 4.0\right) \cdot i\right) - \left(j \cdot 27.0\right) \cdot k\]
    2. Applied simplify6.5

      \[\leadsto \color{blue}{\left(\left(b \cdot c - i \cdot \left(x \cdot 4.0\right)\right) - j \cdot \left(27.0 \cdot k\right)\right) + t \cdot \left(\left(z \cdot x\right) \cdot \left(y \cdot 18.0\right) - 4.0 \cdot a\right)}\]
    3. Using strategy rm
    4. Applied sub-neg6.5

      \[\leadsto \left(\left(b \cdot c - i \cdot \left(x \cdot 4.0\right)\right) - j \cdot \left(27.0 \cdot k\right)\right) + t \cdot \color{blue}{\left(\left(z \cdot x\right) \cdot \left(y \cdot 18.0\right) + \left(-4.0 \cdot a\right)\right)}\]
    5. Applied distribute-rgt-in6.5

      \[\leadsto \left(\left(b \cdot c - i \cdot \left(x \cdot 4.0\right)\right) - j \cdot \left(27.0 \cdot k\right)\right) + \color{blue}{\left(\left(\left(z \cdot x\right) \cdot \left(y \cdot 18.0\right)\right) \cdot t + \left(-4.0 \cdot a\right) \cdot t\right)}\]
    6. Applied associate-+r+6.5

      \[\leadsto \color{blue}{\left(\left(\left(b \cdot c - i \cdot \left(x \cdot 4.0\right)\right) - j \cdot \left(27.0 \cdot k\right)\right) + \left(\left(z \cdot x\right) \cdot \left(y \cdot 18.0\right)\right) \cdot t\right) + \left(-4.0 \cdot a\right) \cdot t}\]
    7. Applied simplify0.2

      \[\leadsto \color{blue}{\left(\left(c \cdot b - k \cdot \left(27.0 \cdot j\right)\right) - x \cdot \left(i \cdot 4.0 - \left(t \cdot y\right) \cdot \left(z \cdot 18.0\right)\right)\right)} + \left(-4.0 \cdot a\right) \cdot t\]
    8. Using strategy rm
    9. Applied flip--0.2

      \[\leadsto \left(\left(c \cdot b - k \cdot \left(27.0 \cdot j\right)\right) - x \cdot \color{blue}{\frac{\left(i \cdot 4.0\right) \cdot \left(i \cdot 4.0\right) - \left(\left(t \cdot y\right) \cdot \left(z \cdot 18.0\right)\right) \cdot \left(\left(t \cdot y\right) \cdot \left(z \cdot 18.0\right)\right)}{i \cdot 4.0 + \left(t \cdot y\right) \cdot \left(z \cdot 18.0\right)}}\right) + \left(-4.0 \cdot a\right) \cdot t\]
    10. Applied associate-*r/0.3

      \[\leadsto \left(\left(c \cdot b - k \cdot \left(27.0 \cdot j\right)\right) - \color{blue}{\frac{x \cdot \left(\left(i \cdot 4.0\right) \cdot \left(i \cdot 4.0\right) - \left(\left(t \cdot y\right) \cdot \left(z \cdot 18.0\right)\right) \cdot \left(\left(t \cdot y\right) \cdot \left(z \cdot 18.0\right)\right)\right)}{i \cdot 4.0 + \left(t \cdot y\right) \cdot \left(z \cdot 18.0\right)}}\right) + \left(-4.0 \cdot a\right) \cdot t\]

    if -1.9183469463938016e+93 < (+ (- (- (* c b) (* k (* 27.0 j))) (/ (* x (- (* (* i 4.0) (* i 4.0)) (* (* (* t y) (* z 18.0)) (* (* t y) (* z 18.0))))) (+ (* i 4.0) (* (* t y) (* z 18.0))))) (* (- (* 4.0 a)) t)) < 4.218312456325165e+301

    1. Initial program 4.2

      \[\left(\left(\left(\left(\left(\left(x \cdot 18.0\right) \cdot y\right) \cdot z\right) \cdot t - \left(a \cdot 4.0\right) \cdot t\right) + b \cdot c\right) - \left(x \cdot 4.0\right) \cdot i\right) - \left(j \cdot 27.0\right) \cdot k\]
    2. Applied simplify4.4

      \[\leadsto \color{blue}{\left(\left(b \cdot c - i \cdot \left(x \cdot 4.0\right)\right) - j \cdot \left(27.0 \cdot k\right)\right) + t \cdot \left(\left(z \cdot x\right) \cdot \left(y \cdot 18.0\right) - 4.0 \cdot a\right)}\]
    3. Using strategy rm
    4. Applied sub-neg4.4

      \[\leadsto \left(\left(b \cdot c - i \cdot \left(x \cdot 4.0\right)\right) - j \cdot \left(27.0 \cdot k\right)\right) + t \cdot \color{blue}{\left(\left(z \cdot x\right) \cdot \left(y \cdot 18.0\right) + \left(-4.0 \cdot a\right)\right)}\]
    5. Applied distribute-lft-in4.4

      \[\leadsto \left(\left(b \cdot c - i \cdot \left(x \cdot 4.0\right)\right) - j \cdot \left(27.0 \cdot k\right)\right) + \color{blue}{\left(t \cdot \left(\left(z \cdot x\right) \cdot \left(y \cdot 18.0\right)\right) + t \cdot \left(-4.0 \cdot a\right)\right)}\]
    6. Applied associate-+r+4.4

      \[\leadsto \color{blue}{\left(\left(\left(b \cdot c - i \cdot \left(x \cdot 4.0\right)\right) - j \cdot \left(27.0 \cdot k\right)\right) + t \cdot \left(\left(z \cdot x\right) \cdot \left(y \cdot 18.0\right)\right)\right) + t \cdot \left(-4.0 \cdot a\right)}\]
    7. Applied simplify1.2

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

    if 4.218312456325165e+301 < (+ (- (- (* c b) (* k (* 27.0 j))) (/ (* x (- (* (* i 4.0) (* i 4.0)) (* (* (* t y) (* z 18.0)) (* (* t y) (* z 18.0))))) (+ (* i 4.0) (* (* t y) (* z 18.0))))) (* (- (* 4.0 a)) t))

    1. Initial program 6.0

      \[\left(\left(\left(\left(\left(\left(x \cdot 18.0\right) \cdot y\right) \cdot z\right) \cdot t - \left(a \cdot 4.0\right) \cdot t\right) + b \cdot c\right) - \left(x \cdot 4.0\right) \cdot i\right) - \left(j \cdot 27.0\right) \cdot k\]
  3. Recombined 4 regimes into one program.

Runtime

Time bar (total: 3.6m)Debug logProfile

herbie shell --seed 2018198 
(FPCore (x y z t a b c i j k)
  :name "Diagrams.Solve.Polynomial:cubForm  from diagrams-solve-0.1"
  (- (- (+ (- (* (* (* (* x 18.0) y) z) t) (* (* a 4.0) t)) (* b c)) (* (* x 4.0) i)) (* (* j 27.0) k)))