Average Error: 12.8 → 0.6
Time: 1.6m
Precision: 64
Internal Precision: 384
\[\left(\left(3 + \frac{2}{r \cdot r}\right) - \frac{\left(0.125 \cdot \left(3 - 2 \cdot v\right)\right) \cdot \left(\left(\left(w \cdot w\right) \cdot r\right) \cdot r\right)}{1 - v}\right) - 4.5\]
\[\left(\frac{2}{r \cdot r} + 3\right) - \left(\left(\sqrt[3]{\left(\left(\frac{0.125}{1 - v} \cdot \left(\left(3 - v\right) - v\right)\right) \cdot \left(w \cdot r\right)\right) \cdot \left(w \cdot r\right)} \cdot \sqrt[3]{\left(\left(\frac{0.125}{1 - v} \cdot \left(\left(3 - v\right) - v\right)\right) \cdot \left(w \cdot r\right)\right) \cdot \left(w \cdot r\right)}\right) \cdot \sqrt[3]{\left(\left(\frac{0.125}{1 - v} \cdot \left(\left(3 - v\right) - v\right)\right) \cdot \left(w \cdot r\right)\right) \cdot \left(w \cdot r\right)} + 4.5\right)\]

Error

Bits error versus v

Bits error versus w

Bits error versus r

Derivation

  1. Initial program 12.8

    \[\left(\left(3 + \frac{2}{r \cdot r}\right) - \frac{\left(0.125 \cdot \left(3 - 2 \cdot v\right)\right) \cdot \left(\left(\left(w \cdot w\right) \cdot r\right) \cdot r\right)}{1 - v}\right) - 4.5\]
  2. Applied simplify0.4

    \[\leadsto \color{blue}{\left(\frac{2}{r \cdot r} + 3\right) - (\left(\frac{0.125}{1 - v} \cdot \left(\left(3 - v\right) - v\right)\right) \cdot \left(\left(w \cdot r\right) \cdot \left(w \cdot r\right)\right) + 4.5)_*}\]
  3. Using strategy rm
  4. Applied fma-udef0.4

    \[\leadsto \left(\frac{2}{r \cdot r} + 3\right) - \color{blue}{\left(\left(\frac{0.125}{1 - v} \cdot \left(\left(3 - v\right) - v\right)\right) \cdot \left(\left(w \cdot r\right) \cdot \left(w \cdot r\right)\right) + 4.5\right)}\]
  5. Using strategy rm
  6. Applied associate-*r*0.3

    \[\leadsto \left(\frac{2}{r \cdot r} + 3\right) - \left(\color{blue}{\left(\left(\frac{0.125}{1 - v} \cdot \left(\left(3 - v\right) - v\right)\right) \cdot \left(w \cdot r\right)\right) \cdot \left(w \cdot r\right)} + 4.5\right)\]
  7. Using strategy rm
  8. Applied add-cube-cbrt0.6

    \[\leadsto \left(\frac{2}{r \cdot r} + 3\right) - \left(\color{blue}{\left(\sqrt[3]{\left(\left(\frac{0.125}{1 - v} \cdot \left(\left(3 - v\right) - v\right)\right) \cdot \left(w \cdot r\right)\right) \cdot \left(w \cdot r\right)} \cdot \sqrt[3]{\left(\left(\frac{0.125}{1 - v} \cdot \left(\left(3 - v\right) - v\right)\right) \cdot \left(w \cdot r\right)\right) \cdot \left(w \cdot r\right)}\right) \cdot \sqrt[3]{\left(\left(\frac{0.125}{1 - v} \cdot \left(\left(3 - v\right) - v\right)\right) \cdot \left(w \cdot r\right)\right) \cdot \left(w \cdot r\right)}} + 4.5\right)\]

Runtime

Time bar (total: 1.6m)Debug logProfile

herbie shell --seed '#(1064300848 3212030778 2049303162 3567222883 2277747821 1384278011)' +o rules:numerics
(FPCore (v w r)
  :name "Rosa's TurbineBenchmark"
  (- (- (+ 3 (/ 2 (* r r))) (/ (* (* 0.125 (- 3 (* 2 v))) (* (* (* w w) r) r)) (- 1 v))) 4.5))