Average Error: 16.2 → 12.2
Time: 1.4m
Precision: 64
Internal Precision: 2880
\[\pi \cdot \ell - \frac{1}{F \cdot F} \cdot \tan \left(\pi \cdot \ell\right)\]
\[\pi \cdot \ell - {\left(\frac{\frac{\tan \left(\ell \cdot \pi\right)}{F}}{F}\right)}^{1}\]

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.2

    \[\pi \cdot \ell - \frac{1}{F \cdot F} \cdot \tan \left(\pi \cdot \ell\right)\]
  2. Using strategy rm
  3. Applied pow116.2

    \[\leadsto \pi \cdot \ell - \frac{1}{F \cdot F} \cdot \color{blue}{{\left(\tan \left(\pi \cdot \ell\right)\right)}^{1}}\]
  4. Applied pow116.2

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

    \[\leadsto \pi \cdot \ell - \color{blue}{{\left(\frac{1}{F \cdot F} \cdot \tan \left(\pi \cdot \ell\right)\right)}^{1}}\]
  6. Applied simplify16.0

    \[\leadsto \pi \cdot \ell - {\color{blue}{\left(\frac{\tan \left(\ell \cdot \pi\right)}{F \cdot F}\right)}}^{1}\]
  7. Using strategy rm
  8. Applied associate-/r*12.2

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

Runtime

Time bar (total: 1.4m)Debug logProfile

herbie shell --seed 2020178 +o rules:numerics
(FPCore (F l)
  :name "VandenBroeck and Keller, Equation (6)"
  (- (* PI l) (* (/ 1 (* F F)) (tan (* PI l)))))