Average Error: 12.1 → 0.6
Time: 1.9m
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{1}{\sqrt{\frac{r}{\frac{2}{r}}}}}{\sqrt{\frac{r}{\frac{2}{r}}}} + 3\right) - (\left(\frac{3 - v \cdot 2}{\frac{1 - v}{0.125}}\right) \cdot \left(\left(w \cdot r\right) \cdot \left(w \cdot r\right)\right) + 4.5)_*\]

Error

Bits error versus v

Bits error versus w

Bits error versus r

Derivation

  1. Initial program 12.1

    \[\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{\frac{2}{r}}{r} + 3\right) - (\left(\frac{3 - v \cdot 2}{\frac{1 - v}{0.125}}\right) \cdot \left(\left(w \cdot r\right) \cdot \left(w \cdot r\right)\right) + 4.5)_*}\]
  3. Using strategy rm
  4. Applied clear-num0.5

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

    \[\leadsto \left(\frac{1}{\color{blue}{\sqrt{\frac{r}{\frac{2}{r}}} \cdot \sqrt{\frac{r}{\frac{2}{r}}}}} + 3\right) - (\left(\frac{3 - v \cdot 2}{\frac{1 - v}{0.125}}\right) \cdot \left(\left(w \cdot r\right) \cdot \left(w \cdot r\right)\right) + 4.5)_*\]
  7. Applied associate-/r*0.6

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

Runtime

Time bar (total: 1.9m)Debug logProfile

herbie shell --seed '#(1070386091 2509006183 1430610344 1025408621 36622005 1425925650)' +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))