Average Error: 16.5 → 0.7
Time: 1.7m
Precision: 64
Internal Precision: 3200
\[\pi \cdot \ell - \frac{1}{F \cdot F} \cdot \tan \left(\pi \cdot \ell\right)\]
\[\pi \cdot \ell - \frac{\frac{1}{F}}{\frac{F}{\pi \cdot \ell} - \left(\pi \cdot F\right) \cdot \log \left(e^{\frac{1}{3} \cdot \ell}\right)}\]

Error

Bits error versus F

Bits error versus l

Derivation

  1. Initial program 16.5

    \[\pi \cdot \ell - \frac{1}{F \cdot F} \cdot \tan \left(\pi \cdot \ell\right)\]
  2. Applied simplify16.2

    \[\leadsto \color{blue}{\ell \cdot \pi - \frac{\tan \left(\ell \cdot \pi\right)}{F \cdot F}}\]
  3. Using strategy rm
  4. Applied associate-/r*12.2

    \[\leadsto \ell \cdot \pi - \color{blue}{\frac{\frac{\tan \left(\ell \cdot \pi\right)}{F}}{F}}\]
  5. Using strategy rm
  6. Applied clear-num12.2

    \[\leadsto \ell \cdot \pi - \color{blue}{\frac{1}{\frac{F}{\frac{\tan \left(\ell \cdot \pi\right)}{F}}}}\]
  7. Taylor expanded around 0 30.7

    \[\leadsto \ell \cdot \pi - \frac{1}{\color{blue}{\frac{{F}^{2}}{\pi \cdot \ell} - \frac{1}{3} \cdot \left({F}^{2} \cdot \left(\pi \cdot \ell\right)\right)}}\]
  8. Applied simplify8.3

    \[\leadsto \color{blue}{\pi \cdot \ell - \frac{\frac{1}{F}}{\frac{F}{\pi \cdot \ell} - \left(\pi \cdot F\right) \cdot \left(\frac{1}{3} \cdot \ell\right)}}\]
  9. Using strategy rm
  10. Applied add-log-exp0.7

    \[\leadsto \pi \cdot \ell - \frac{\frac{1}{F}}{\frac{F}{\pi \cdot \ell} - \left(\pi \cdot F\right) \cdot \color{blue}{\log \left(e^{\frac{1}{3} \cdot \ell}\right)}}\]

Runtime

Time bar (total: 1.7m)Debug logProfile

herbie shell --seed '#(1070706311 3771791028 4128836681 4194990999 2341756049 504035650)' 
(FPCore (F l)
  :name "VandenBroeck and Keller, Equation (6)"
  (- (* PI l) (* (/ 1 (* F F)) (tan (* PI l)))))