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

Error

Bits error versus F

Bits error versus l

Derivation

  1. Initial program 16.2

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

    \[\leadsto \color{blue}{\ell \cdot \pi - \frac{\tan \left(\ell \cdot \pi\right)}{F \cdot F}}\]
  3. Using strategy rm
  4. Applied *-un-lft-identity15.9

    \[\leadsto \ell \cdot \pi - \frac{\color{blue}{1 \cdot \tan \left(\ell \cdot \pi\right)}}{F \cdot F}\]
  5. Applied times-frac12.2

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

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

    \[\leadsto \ell \cdot \pi - \frac{1}{F} \cdot \frac{1}{\color{blue}{\frac{F}{\pi \cdot \ell} - \frac{1}{3} \cdot \left(F \cdot \left(\pi \cdot \ell\right)\right)}}\]
  9. Applied simplify7.9

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

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

Runtime

Time bar (total: 1.1m)Debug logProfile

herbie shell --seed '#(1070227846 1561819246 480764335 4016816270 2602869839 2117310382)' 
(FPCore (F l)
  :name "VandenBroeck and Keller, Equation (6)"
  (- (* PI l) (* (/ 1 (* F F)) (tan (* PI l)))))