Average Error: 0.4 → 0.5
Time: 1.6m
Precision: 64
Internal Precision: 384
\[\left(\left(\left(e + d\right) + c\right) + b\right) + a\]
\[(\left(\sqrt{\left(\left(e + d\right) + c\right) + b}\right) \cdot \left(\sqrt{\left(\left(e + d\right) + c\right) + b}\right) + a)_*\]

Error

Bits error versus a

Bits error versus b

Bits error versus c

Bits error versus d

Bits error versus e

Target

Original0.4
Target0.2
Herbie0.5
\[\left(d + \left(c + \left(a + b\right)\right)\right) + e\]

Derivation

  1. Initial program 0.4

    \[\left(\left(\left(e + d\right) + c\right) + b\right) + a\]
  2. Using strategy rm
  3. Applied add-sqr-sqrt0.6

    \[\leadsto \color{blue}{\sqrt{\left(\left(e + d\right) + c\right) + b} \cdot \sqrt{\left(\left(e + d\right) + c\right) + b}} + a\]
  4. Applied fma-def0.5

    \[\leadsto \color{blue}{(\left(\sqrt{\left(\left(e + d\right) + c\right) + b}\right) \cdot \left(\sqrt{\left(\left(e + d\right) + c\right) + b}\right) + a)_*}\]

Runtime

Time bar (total: 1.6m)Debug logProfile

herbie shell --seed '#(1070833653 108281690 3330367898 3632331308 3494323072 43156186)' +o rules:numerics
(FPCore (a b c d e)
  :name "Expression 1, p15"
  :pre (<= 1 a 2 b 4 c 8 d 16 e 32)

  :herbie-target
  (+ (+ d (+ c (+ a b))) e)

  (+ (+ (+ (+ e d) c) b) a))