Average Error: 5.5 → 1.6
Time: 3.2m
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(c \cdot b - \left(\left(\left(i \cdot x\right) \cdot 4.0 + j \cdot \left(27.0 \cdot k\right)\right) - \left(z \cdot x\right) \cdot \left(18.0 \cdot \left(t \cdot y\right)\right)\right)\right) + t \cdot \left(-4.0 \cdot a\right) = -\infty:\\ \;\;\;\;18.0 \cdot \left(z \cdot \left(y \cdot \left(t \cdot x\right)\right)\right) - \left(4.0 \cdot \left(a \cdot t\right) + 27.0 \cdot \left(j \cdot k\right)\right)\\ \mathbf{if}\;\left(c \cdot b - \left(\left(\left(i \cdot x\right) \cdot 4.0 + j \cdot \left(27.0 \cdot k\right)\right) - \left(z \cdot x\right) \cdot \left(18.0 \cdot \left(t \cdot y\right)\right)\right)\right) + t \cdot \left(-4.0 \cdot a\right) \le 1.6747781086077075 \cdot 10^{+293}:\\ \;\;\;\;\left(c \cdot b - \left(\left(\left(i \cdot x\right) \cdot 4.0 + j \cdot \left(27.0 \cdot k\right)\right) - \left(z \cdot x\right) \cdot \left(18.0 \cdot \left(t \cdot y\right)\right)\right)\right) + t \cdot \left(-4.0 \cdot a\right)\\ \mathbf{else}:\\ \;\;\;\;\left(\left(c \cdot b - \left(k \cdot j\right) \cdot 27.0\right) - \left(x \cdot \left(i \cdot 4.0\right) + x \cdot \left(-\left(t \cdot 18.0\right) \cdot \left(z \cdot y\right)\right)\right)\right) + t \cdot \left(-4.0 \cdot a\right)\\ \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 3 regimes
  2. if (+ (- (* c b) (- (+ (* (* i x) 4.0) (* j (* 27.0 k))) (* (* z x) (* 18.0 (* t y))))) (* t (- (* 4.0 a)))) < -inf.0

    1. Initial program 16.6

      \[\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 simplify32.1

      \[\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. Taylor expanded around inf 24.7

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

    if -inf.0 < (+ (- (* c b) (- (+ (* (* i x) 4.0) (* j (* 27.0 k))) (* (* z x) (* 18.0 (* t y))))) (* t (- (* 4.0 a)))) < 1.6747781086077075e+293

    1. Initial program 4.5

      \[\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 simplify2.6

      \[\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-neg2.6

      \[\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-in2.6

      \[\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+2.6

      \[\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 simplify5.1

      \[\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)\]
    8. Using strategy rm
    9. Applied sub-neg5.1

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

      \[\leadsto \left(\left(c \cdot b - \left(k \cdot j\right) \cdot 27.0\right) - \color{blue}{\left(x \cdot \left(i \cdot 4.0\right) + x \cdot \left(-\left(t \cdot 18.0\right) \cdot \left(z \cdot y\right)\right)\right)}\right) + t \cdot \left(-4.0 \cdot a\right)\]
    11. Using strategy rm
    12. Applied associate--l-5.1

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

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

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

    1. Initial program 11.8

      \[\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 simplify26.7

      \[\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-neg26.7

      \[\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-in26.7

      \[\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+26.7

      \[\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 simplify7.3

      \[\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)\]
    8. Using strategy rm
    9. Applied sub-neg7.3

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

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

Runtime

Time bar (total: 3.2m)Debug logProfile

herbie shell --seed '#(1072936661 1621281212 3440817831 3219514234 460296804 1258167384)' 
(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)))