Average Error: 16.6 → 8.5
Time: 8.2s
Precision: binary64
\[\pi \cdot \ell - \frac{1}{F \cdot F} \cdot \tan \left(\pi \cdot \ell\right)\]
\[\pi \cdot \ell + 1 \cdot \frac{\frac{-1}{F}}{\frac{F}{\pi \cdot \ell} + \pi \cdot \left(\ell \cdot \left(F \cdot -0.3333333333333333\right)\right)}\]
\pi \cdot \ell - \frac{1}{F \cdot F} \cdot \tan \left(\pi \cdot \ell\right)
\pi \cdot \ell + 1 \cdot \frac{\frac{-1}{F}}{\frac{F}{\pi \cdot \ell} + \pi \cdot \left(\ell \cdot \left(F \cdot -0.3333333333333333\right)\right)}
double code(double F, double l) {
	return ((double) (((double) (((double) M_PI) * l)) - ((double) ((1.0 / ((double) (F * F))) * ((double) tan(((double) (((double) M_PI) * l))))))));
}
double code(double F, double l) {
	return ((double) (((double) (((double) M_PI) * l)) + ((double) (1.0 * ((-1.0 / F) / ((double) ((F / ((double) (((double) M_PI) * l))) + ((double) (((double) M_PI) * ((double) (l * ((double) (F * -0.3333333333333333)))))))))))));
}

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. Simplified16.4

    \[\leadsto \color{blue}{\pi \cdot \ell - 1 \cdot \frac{\tan \left(\pi \cdot \ell\right)}{F \cdot F}}\]
  3. Using strategy rm
  4. Applied clear-num16.4

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

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

    \[\leadsto \pi \cdot \ell - 1 \cdot \frac{1}{F \cdot \color{blue}{\left(\frac{F}{\pi \cdot \ell} - 0.3333333333333333 \cdot \left(F \cdot \left(\pi \cdot \ell\right)\right)\right)}}\]
  7. Simplified8.5

    \[\leadsto \pi \cdot \ell - 1 \cdot \frac{1}{F \cdot \color{blue}{\left(\frac{F}{\pi \cdot \ell} + \pi \cdot \left(\ell \cdot \left(F \cdot -0.3333333333333333\right)\right)\right)}}\]
  8. Using strategy rm
  9. Applied associate-/r*8.5

    \[\leadsto \pi \cdot \ell - 1 \cdot \color{blue}{\frac{\frac{1}{F}}{\frac{F}{\pi \cdot \ell} + \pi \cdot \left(\ell \cdot \left(F \cdot -0.3333333333333333\right)\right)}}\]
  10. Final simplification8.5

    \[\leadsto \pi \cdot \ell + 1 \cdot \frac{\frac{-1}{F}}{\frac{F}{\pi \cdot \ell} + \pi \cdot \left(\ell \cdot \left(F \cdot -0.3333333333333333\right)\right)}\]

Reproduce

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