Average Error: 5.3 → 4.6
Time: 48.8s
Precision: 64
Internal Precision: 128
\[\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}\;y \le -4.0595361259506224 \cdot 10^{-44}:\\ \;\;\;\;\left(b \cdot c - \left(\left(x \cdot i\right) \cdot 4.0 + \left(j \cdot k\right) \cdot 27.0\right)\right) + \left(\left(18.0 \cdot y\right) \cdot \left(x \cdot z\right) - 4.0 \cdot a\right) \cdot t\\ \mathbf{else}:\\ \;\;\;\;\left(b \cdot c - \left(\left(j \cdot 27.0\right) \cdot k + \left(4.0 \cdot x\right) \cdot i\right)\right) + \left(18.0 \cdot \left(\left(y \cdot z\right) \cdot x\right) - 4.0 \cdot a\right) \cdot t\\ \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

Derivation

  1. Split input into 2 regimes
  2. if y < -4.0595361259506224e-44

    1. Initial program 8.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. Simplified6.1

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

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

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

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

    if -4.0595361259506224e-44 < y

    1. Initial program 4.1

      \[\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. Simplified5.0

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

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

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

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;y \le -4.0595361259506224 \cdot 10^{-44}:\\ \;\;\;\;\left(b \cdot c - \left(\left(x \cdot i\right) \cdot 4.0 + \left(j \cdot k\right) \cdot 27.0\right)\right) + \left(\left(18.0 \cdot y\right) \cdot \left(x \cdot z\right) - 4.0 \cdot a\right) \cdot t\\ \mathbf{else}:\\ \;\;\;\;\left(b \cdot c - \left(\left(j \cdot 27.0\right) \cdot k + \left(4.0 \cdot x\right) \cdot i\right)\right) + \left(18.0 \cdot \left(\left(y \cdot z\right) \cdot x\right) - 4.0 \cdot a\right) \cdot t\\ \end{array}\]

Reproduce

herbie shell --seed 2019094 
(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)))