Average Error: 17.2 → 8.9
Time: 4.2m
Precision: 64
Internal Precision: 4928
\[\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 \left(\frac{1}{3} \cdot \ell\right)}\]

Error

Bits error versus F

Bits error versus l

Derivation

  1. Initial program 17.2

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

    \[\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.8

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

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

    \[\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.9

    \[\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)}}\]

Runtime

Time bar (total: 4.2m)Debug logProfile

herbie shell --seed '#(1072330854 3074818769 591214268 3603999196 3863745332 3332387116)' 
(FPCore (F l)
  :name "VandenBroeck and Keller, Equation (6)"
  (- (* PI l) (* (/ 1 (* F F)) (tan (* PI l)))))