Average Error: 16.6 → 12.2
Time: 8.4s
Precision: 64
\[\pi \cdot \ell - \frac{1}{F \cdot F} \cdot \tan \left(\pi \cdot \ell\right)\]
\[\pi \cdot \ell - \frac{1}{F} \cdot \left(\left(\sqrt[3]{\frac{1}{F}} \cdot \sqrt[3]{\frac{1}{F}}\right) \cdot \left(\frac{\sqrt[3]{1}}{\sqrt[3]{F}} \cdot \tan \left(\pi \cdot \ell\right)\right)\right)\]
\pi \cdot \ell - \frac{1}{F \cdot F} \cdot \tan \left(\pi \cdot \ell\right)
\pi \cdot \ell - \frac{1}{F} \cdot \left(\left(\sqrt[3]{\frac{1}{F}} \cdot \sqrt[3]{\frac{1}{F}}\right) \cdot \left(\frac{\sqrt[3]{1}}{\sqrt[3]{F}} \cdot \tan \left(\pi \cdot \ell\right)\right)\right)
double code(double F, double l) {
	return ((((double) M_PI) * l) - ((1.0 / (F * F)) * tan((((double) M_PI) * l))));
}
double code(double F, double l) {
	return ((((double) M_PI) * l) - ((1.0 / F) * ((cbrt((1.0 / F)) * cbrt((1.0 / F))) * ((cbrt(1.0) / cbrt(F)) * tan((((double) M_PI) * l))))));
}

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

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

    \[\leadsto \pi \cdot \ell - \frac{\color{blue}{1 \cdot 1}}{F \cdot F} \cdot \tan \left(\pi \cdot \ell\right)\]
  4. Applied times-frac16.6

    \[\leadsto \pi \cdot \ell - \color{blue}{\left(\frac{1}{F} \cdot \frac{1}{F}\right)} \cdot \tan \left(\pi \cdot \ell\right)\]
  5. Applied associate-*l*12.1

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

    \[\leadsto \pi \cdot \ell - \frac{1}{F} \cdot \left(\color{blue}{\left(\left(\sqrt[3]{\frac{1}{F}} \cdot \sqrt[3]{\frac{1}{F}}\right) \cdot \sqrt[3]{\frac{1}{F}}\right)} \cdot \tan \left(\pi \cdot \ell\right)\right)\]
  8. Applied associate-*l*12.2

    \[\leadsto \pi \cdot \ell - \frac{1}{F} \cdot \color{blue}{\left(\left(\sqrt[3]{\frac{1}{F}} \cdot \sqrt[3]{\frac{1}{F}}\right) \cdot \left(\sqrt[3]{\frac{1}{F}} \cdot \tan \left(\pi \cdot \ell\right)\right)\right)}\]
  9. Using strategy rm
  10. Applied cbrt-div12.2

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

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

Reproduce

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