Average Error: 16.1 → 12.0
Time: 2.4m
Precision: 64
Internal Precision: 4224
\[\pi \cdot \ell - \frac{1}{F \cdot F} \cdot \tan \left(\pi \cdot \ell\right)\]
\[\ell \cdot \pi - \frac{\tan \left(\ell \cdot \pi\right) \cdot \frac{1}{F}}{F}\]

Error

Bits error versus F

Bits error versus l

Derivation

  1. Initial program 16.1

    \[\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 associate-/r*12.0

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

    \[\leadsto \ell \cdot \pi - \frac{\color{blue}{\tan \left(\ell \cdot \pi\right) \cdot \frac{1}{F}}}{F}\]

Runtime

Time bar (total: 2.4m)Debug logProfile

herbie shell --seed '#(1070609872 3456127585 2380521889 2328837196 1765472538 734540918)' 
(FPCore (F l)
  :name "VandenBroeck and Keller, Equation (6)"
  (- (* PI l) (* (/ 1 (* F F)) (tan (* PI l)))))