Average Error: 12.6 → 0.4
Time: 19.9s
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{\frac{2}{r}}{r} - \left(4.5 - 3\right)\right) - {\left(w \cdot r\right)}^2 \cdot \sqrt[3]{{\left(\frac{0.125}{1 - v} \cdot \left(3 - \left(v + v\right)\right)\right)}^3}\]

Error

Bits error versus v

Bits error versus w

Bits error versus r

Derivation

  1. Initial program 12.6

    \[\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 taylor 12.6

    \[\leadsto \left(\left(3 + \frac{2}{r \cdot r}\right) - \frac{\left(0.125 \cdot \left(3 - 2 \cdot v\right)\right) \cdot \left(\left({w}^2 \cdot r\right) \cdot r\right)}{1 - v}\right) - 4.5\]
  3. Taylor expanded around inf 12.6

    \[\leadsto \left(\left(3 + \frac{2}{r \cdot r}\right) - \frac{\left(0.125 \cdot \left(3 - 2 \cdot v\right)\right) \cdot \left(\color{blue}{\left({w}^2 \cdot r\right)} \cdot r\right)}{1 - v}\right) - 4.5\]
  4. Applied simplify 0.3

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

    \[\leadsto \left(\frac{\frac{2}{r}}{r} - \left(4.5 - 3\right)\right) - {\left(w \cdot r\right)}^2 \cdot \color{blue}{\sqrt[3]{{\left(\frac{0.125}{1 - v} \cdot \left(3 - \left(v + v\right)\right)\right)}^3}}\]
  7. Removed slow pow expressions

Runtime

Time bar (total: 19.9s) Debug logProfile

Please include this information when filing a bug report:

herbie shell --seed '#(1064524629 4159152179 2999149171 575749698 4006532819 692958815)'
(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))