Average Error: 16.4 → 13.7
Time: 1.5m
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{\sqrt[3]{\tan \left(\ell \cdot \pi\right)}}{F} \cdot \frac{\sqrt[3]{\tan \left(\ell \cdot \pi\right)}}{F}\right) \cdot \sqrt[3]{\tan \left(\pi \cdot \ell\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.4

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

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

    \[\leadsto \pi \cdot \ell - \color{blue}{\left(\frac{1}{F \cdot F} \cdot \left(\sqrt[3]{\tan \left(\pi \cdot \ell\right)} \cdot \sqrt[3]{\tan \left(\pi \cdot \ell\right)}\right)\right) \cdot \sqrt[3]{\tan \left(\pi \cdot \ell\right)}}\]
  5. Applied simplify13.7

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

Runtime

Time bar (total: 1.5m)Debug logProfile

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