Average Error: 16.0 → 7.8
Time: 2.5m
Precision: 64
Internal Precision: 4160
\[\pi \cdot \ell - \frac{1}{F \cdot F} \cdot \tan \left(\pi \cdot \ell\right)\]
\[\pi \cdot \ell - \frac{1}{F \cdot \left(\frac{\frac{F}{\pi}}{\ell} - \left(\sqrt{\pi \cdot \frac{1}{3}} \cdot \sqrt{\pi \cdot \frac{1}{3}}\right) \cdot \left(\ell \cdot F\right)\right)}\]

Error

Bits error versus F

Bits error versus l

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 16.0

    \[\pi \cdot \ell - \frac{1}{F \cdot F} \cdot \tan \left(\pi \cdot \ell\right)\]
  2. Initial simplification15.8

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

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

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

    \[\leadsto \pi \cdot \ell - \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. Simplified7.8

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

    \[\leadsto \pi \cdot \ell - \frac{1}{\left(\frac{\frac{F}{\pi}}{\ell} - \left(\ell \cdot F\right) \cdot \color{blue}{\left(\sqrt{\pi \cdot \frac{1}{3}} \cdot \sqrt{\pi \cdot \frac{1}{3}}\right)}\right) \cdot F}\]
  11. Final simplification7.8

    \[\leadsto \pi \cdot \ell - \frac{1}{F \cdot \left(\frac{\frac{F}{\pi}}{\ell} - \left(\sqrt{\pi \cdot \frac{1}{3}} \cdot \sqrt{\pi \cdot \frac{1}{3}}\right) \cdot \left(\ell \cdot F\right)\right)}\]

Runtime

Time bar (total: 2.5m)Debug logProfile

herbie shell --seed 2018249 
(FPCore (F l)
  :name "VandenBroeck and Keller, Equation (6)"
  (- (* PI l) (* (/ 1 (* F F)) (tan (* PI l)))))