Average Error: 16.0 → 12.0
Time: 1.9m
Precision: 64
Internal Precision: 3392
\[\pi \cdot \ell - \frac{1}{F \cdot F} \cdot \tan \left(\pi \cdot \ell\right)\]
\[\ell \cdot \pi - \frac{1}{F} \cdot \left(\tan \left(\ell \cdot \pi\right) \cdot \frac{1}{F}\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. Applied simplify15.8

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

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

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

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

Runtime

Time bar (total: 1.9m)Debug logProfile

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