Average Error: 5.3 → 1.6
Time: 2.7m
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}\;z \cdot y \le -1.1649585003094704 \cdot 10^{+147} \lor \neg \left(z \cdot y \le 6.638903123392168 \cdot 10^{+29}\right):\\ \;\;\;\;\left(\left(\left(\left(\left(y \cdot \left(x \cdot t\right)\right) \cdot z\right) \cdot 18.0 - \left(4.0 \cdot a\right) \cdot t\right) + b \cdot c\right) - \left(4.0 \cdot x\right) \cdot i\right) - k \cdot \left(27.0 \cdot j\right)\\ \mathbf{else}:\\ \;\;\;\;\left(\left(b \cdot c + \left(\left(\left(z \cdot y\right) \cdot \left(18.0 \cdot x\right)\right) \cdot t - \left(4.0 \cdot a\right) \cdot t\right)\right) - \left(4.0 \cdot x\right) \cdot i\right) - k \cdot \left(27.0 \cdot j\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 2 regimes
  2. if (* y z) < -1.1649585003094704e+147 or 6.638903123392168e+29 < (* y z)

    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. Taylor expanded around inf 3.5

      \[\leadsto \left(\left(\left(\color{blue}{18.0 \cdot \left(z \cdot \left(y \cdot \left(t \cdot x\right)\right)\right)} - \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 -1.1649585003094704e+147 < (* y z) < 6.638903123392168e+29

    1. Initial program 2.7

      \[\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. Using strategy rm
    3. Applied associate-*l*0.8

      \[\leadsto \left(\left(\left(\color{blue}{\left(\left(x \cdot 18.0\right) \cdot \left(y \cdot z\right)\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 2 regimes into one program.
  4. Applied simplify1.6

    \[\leadsto \color{blue}{\begin{array}{l} \mathbf{if}\;z \cdot y \le -1.1649585003094704 \cdot 10^{+147} \lor \neg \left(z \cdot y \le 6.638903123392168 \cdot 10^{+29}\right):\\ \;\;\;\;\left(\left(\left(\left(\left(y \cdot \left(x \cdot t\right)\right) \cdot z\right) \cdot 18.0 - \left(4.0 \cdot a\right) \cdot t\right) + b \cdot c\right) - \left(4.0 \cdot x\right) \cdot i\right) - k \cdot \left(27.0 \cdot j\right)\\ \mathbf{else}:\\ \;\;\;\;\left(\left(b \cdot c + \left(\left(\left(z \cdot y\right) \cdot \left(18.0 \cdot x\right)\right) \cdot t - \left(4.0 \cdot a\right) \cdot t\right)\right) - \left(4.0 \cdot x\right) \cdot i\right) - k \cdot \left(27.0 \cdot j\right)\\ \end{array}}\]

Runtime

Time bar (total: 2.7m)Debug logProfile

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