Average Error: 8.4 → 7.9
Time: 51.0s
Precision: 64
Internal Precision: 128
\[\pi \cdot \ell - \frac{1}{F \cdot F} \cdot \tan \left(\pi \cdot \ell\right)\]
\[\pi \cdot \ell - \frac{\sin \left(\pi \cdot \ell\right)}{\left(\left(\sqrt[3]{\cos \left(\sqrt[3]{\pi \cdot \ell} \cdot \left(\sqrt[3]{\pi \cdot \ell} \cdot \sqrt[3]{\pi \cdot \ell}\right)\right)} \cdot \sqrt[3]{\cos \left(\pi \cdot \ell\right)}\right) \cdot \sqrt[3]{\cos \left(\sqrt[3]{\pi \cdot \ell} \cdot \left(\sqrt[3]{\pi \cdot \ell} \cdot \sqrt[3]{\pi \cdot \ell}\right)\right)}\right) \cdot {F}^{2}}\]

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 8.4

    \[\pi \cdot \ell - \frac{1}{F \cdot F} \cdot \tan \left(\pi \cdot \ell\right)\]
  2. Initial simplification8.4

    \[\leadsto (\left(\tan \left(\pi \cdot \ell\right)\right) \cdot \left(\frac{-1}{F \cdot F}\right) + \left(\pi \cdot \ell\right))_*\]
  3. Taylor expanded around -inf 7.9

    \[\leadsto \color{blue}{\pi \cdot \ell - \frac{\sin \left(\pi \cdot \ell\right)}{{F}^{2} \cdot \cos \left(\pi \cdot \ell\right)}}\]
  4. Using strategy rm
  5. Applied add-cube-cbrt7.9

    \[\leadsto \pi \cdot \ell - \frac{\sin \left(\pi \cdot \ell\right)}{{F}^{2} \cdot \cos \color{blue}{\left(\left(\sqrt[3]{\pi \cdot \ell} \cdot \sqrt[3]{\pi \cdot \ell}\right) \cdot \sqrt[3]{\pi \cdot \ell}\right)}}\]
  6. Using strategy rm
  7. Applied add-cube-cbrt7.9

    \[\leadsto \pi \cdot \ell - \frac{\sin \left(\pi \cdot \ell\right)}{{F}^{2} \cdot \color{blue}{\left(\left(\sqrt[3]{\cos \left(\left(\sqrt[3]{\pi \cdot \ell} \cdot \sqrt[3]{\pi \cdot \ell}\right) \cdot \sqrt[3]{\pi \cdot \ell}\right)} \cdot \sqrt[3]{\cos \left(\left(\sqrt[3]{\pi \cdot \ell} \cdot \sqrt[3]{\pi \cdot \ell}\right) \cdot \sqrt[3]{\pi \cdot \ell}\right)}\right) \cdot \sqrt[3]{\cos \left(\left(\sqrt[3]{\pi \cdot \ell} \cdot \sqrt[3]{\pi \cdot \ell}\right) \cdot \sqrt[3]{\pi \cdot \ell}\right)}\right)}}\]
  8. Taylor expanded around -inf 7.9

    \[\leadsto \pi \cdot \ell - \frac{\sin \left(\pi \cdot \ell\right)}{{F}^{2} \cdot \left(\left(\sqrt[3]{\color{blue}{\cos \left(\pi \cdot \ell\right)}} \cdot \sqrt[3]{\cos \left(\left(\sqrt[3]{\pi \cdot \ell} \cdot \sqrt[3]{\pi \cdot \ell}\right) \cdot \sqrt[3]{\pi \cdot \ell}\right)}\right) \cdot \sqrt[3]{\cos \left(\left(\sqrt[3]{\pi \cdot \ell} \cdot \sqrt[3]{\pi \cdot \ell}\right) \cdot \sqrt[3]{\pi \cdot \ell}\right)}\right)}\]
  9. Final simplification7.9

    \[\leadsto \pi \cdot \ell - \frac{\sin \left(\pi \cdot \ell\right)}{\left(\left(\sqrt[3]{\cos \left(\sqrt[3]{\pi \cdot \ell} \cdot \left(\sqrt[3]{\pi \cdot \ell} \cdot \sqrt[3]{\pi \cdot \ell}\right)\right)} \cdot \sqrt[3]{\cos \left(\pi \cdot \ell\right)}\right) \cdot \sqrt[3]{\cos \left(\sqrt[3]{\pi \cdot \ell} \cdot \left(\sqrt[3]{\pi \cdot \ell} \cdot \sqrt[3]{\pi \cdot \ell}\right)\right)}\right) \cdot {F}^{2}}\]

Reproduce

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

Details

Time bar (total: 15.0s)Debug log

start1.8s

Algorithm
intervals

setup200.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 8.7b

localize23.0ms

Local error

Found 4 expressions with local error:

8.1b
(fma (tan (* PI l)) (/ -1 (* F F)) (* PI l))
2.5b
(tan (* PI l))
0.5b
(/ -1 (* F F))
0.2b
(* PI l)

rewrite19.0ms

Algorithm
rewrite-expression-head
Counts
4 → 43
Calls

4 calls. Slowest were:

3.0ms
(tan (* PI l))
2.0ms
(fma (tan (* PI l)) (/ -1 (* F F)) (* PI l))
1.0ms
(/ -1 (* F F))

series179.0ms

Counts
4 → 12
Calls

4 calls. Slowest were:

97.0ms
(fma (tan (* PI l)) (/ -1 (* F F)) (* PI l))
45.0ms
(tan (* PI l))
26.0ms
(* PI l)
10.0ms
(/ -1 (* F F))

simplify931.0ms

Counts
12 → 55
Calls

12 calls. Slowest were:

477.0ms
(- (* PI l) (+ (/ (* PI l) (pow F 2)) (* 1/3 (/ (* (pow PI 3) (pow l 3)) (pow F 2)))))
304.0ms
(+ (* 2/15 (* (pow PI 5) (pow l 5))) (+ (* 1/3 (* (pow PI 3) (pow l 3))) (* PI l)))
61.0ms
(- (* PI l) (/ (sin (* PI l)) (* (pow F 2) (cos (* PI l)))))

prune570.0ms

Pruning

8 alts after pruning (8 fresh and 0 done)

Merged error: 8.4b

localize16.0ms

Local error

Found 4 expressions with local error:

7.9b
(/ (sin (* PI l)) (* (pow F 2) (cos (* PI l))))
2.3b
(cos (* PI l))
2.3b
(sin (* PI l))
0.2b
(* PI l)

rewrite12.0ms

Algorithm
rewrite-expression-head
Counts
4 → 52
Calls

4 calls. Slowest were:

8.0ms
(/ (sin (* PI l)) (* (pow F 2) (cos (* PI l))))
1.0ms
(sin (* PI l))
1.0ms
(cos (* PI l))

series150.0ms

Counts
4 → 12
Calls

4 calls. Slowest were:

85.0ms
(/ (sin (* PI l)) (* (pow F 2) (cos (* PI l))))
35.0ms
(* PI l)
18.0ms
(sin (* PI l))
11.0ms
(cos (* PI l))

simplify1.2s

Counts
26 → 64
Calls

26 calls. Slowest were:

203.0ms
(- (+ (* 1/24 (* (pow PI 4) (pow l 4))) 1) (* 1/2 (* (pow PI 2) (pow l 2))))
203.0ms
(- (+ (* 1/120 (* (pow PI 5) (pow l 5))) (* PI l)) (* 1/6 (* (pow PI 3) (pow l 3))))
179.0ms
(- (log (sin (* PI l))) (+ (log (pow F 2)) (log (cos (* PI l)))))

prune985.0ms

Pruning

11 alts after pruning (11 fresh and 0 done)

Merged error: 7.4b

localize26.0ms

Local error

Found 4 expressions with local error:

7.9b
(/ (sin (* PI l)) (* (pow F 2) (cos (* (* (cbrt (* PI l)) (cbrt (* PI l))) (cbrt (* PI l))))))
2.3b
(cos (* (* (cbrt (* PI l)) (cbrt (* PI l))) (cbrt (* PI l))))
2.3b
(sin (* PI l))
0.6b
(cbrt (* PI l))

rewrite61.0ms

Algorithm
rewrite-expression-head
Counts
4 → 53
Calls

4 calls. Slowest were:

37.0ms
(/ (sin (* PI l)) (* (pow F 2) (cos (* (* (cbrt (* PI l)) (cbrt (* PI l))) (cbrt (* PI l))))))
19.0ms
(cos (* (* (cbrt (* PI l)) (cbrt (* PI l))) (cbrt (* PI l))))
3.0ms
(sin (* PI l))

series450.0ms

Counts
4 → 12
Calls

4 calls. Slowest were:

301.0ms
(cbrt (* PI l))
105.0ms
(/ (sin (* PI l)) (* (pow F 2) (cos (* (* (cbrt (* PI l)) (cbrt (* PI l))) (cbrt (* PI l))))))
24.0ms
(sin (* PI l))
19.0ms
(cos (* (* (cbrt (* PI l)) (cbrt (* PI l))) (cbrt (* PI l))))

simplify1.4s

Counts
27 → 65
Calls

27 calls. Slowest were:

232.0ms
(- (+ (* 1/24 (* (pow PI 4) (pow l 4))) 1) (* 1/2 (* (pow PI 2) (pow l 2))))
183.0ms
(* (cbrt -1) (exp (* 1/3 (- (log PI) (log (/ -1 l))))))
179.0ms
(- (+ (* 1/120 (* (pow PI 5) (pow l 5))) (* PI l)) (* 1/6 (* (pow PI 3) (pow l 3))))

prune1.1s

Pruning

12 alts after pruning (12 fresh and 0 done)

Merged error: 7.4b

localize23.0ms

Local error

Found 4 expressions with local error:

7.9b
(/ (sin (* PI l)) (* (pow F 2) (* (* (cbrt (cos (* (* (cbrt (* PI l)) (cbrt (* PI l))) (cbrt (* PI l))))) (cbrt (cos (* (* (cbrt (* PI l)) (cbrt (* PI l))) (cbrt (* PI l)))))) (cbrt (cos (* (* (cbrt (* PI l)) (cbrt (* PI l))) (cbrt (* PI l))))))))
2.3b
(cos (* (* (cbrt (* PI l)) (cbrt (* PI l))) (cbrt (* PI l))))
2.3b
(cos (* (* (cbrt (* PI l)) (cbrt (* PI l))) (cbrt (* PI l))))
2.3b
(cos (* (* (cbrt (* PI l)) (cbrt (* PI l))) (cbrt (* PI l))))

rewrite341.0ms

Algorithm
rewrite-expression-head
Counts
4 → 57
Calls

4 calls. Slowest were:

269.0ms
(/ (sin (* PI l)) (* (pow F 2) (* (* (cbrt (cos (* (* (cbrt (* PI l)) (cbrt (* PI l))) (cbrt (* PI l))))) (cbrt (cos (* (* (cbrt (* PI l)) (cbrt (* PI l))) (cbrt (* PI l)))))) (cbrt (cos (* (* (cbrt (* PI l)) (cbrt (* PI l))) (cbrt (* PI l))))))))
35.0ms
(cos (* (* (cbrt (* PI l)) (cbrt (* PI l))) (cbrt (* PI l))))
18.0ms
(cos (* (* (cbrt (* PI l)) (cbrt (* PI l))) (cbrt (* PI l))))

series156.0ms

Counts
4 → 12
Calls

4 calls. Slowest were:

104.0ms
(/ (sin (* PI l)) (* (pow F 2) (* (* (cbrt (cos (* (* (cbrt (* PI l)) (cbrt (* PI l))) (cbrt (* PI l))))) (cbrt (cos (* (* (cbrt (* PI l)) (cbrt (* PI l))) (cbrt (* PI l)))))) (cbrt (cos (* (* (cbrt (* PI l)) (cbrt (* PI l))) (cbrt (* PI l))))))))
17.0ms
(cos (* (* (cbrt (* PI l)) (cbrt (* PI l))) (cbrt (* PI l))))
17.0ms
(cos (* (* (cbrt (* PI l)) (cbrt (* PI l))) (cbrt (* PI l))))
17.0ms
(cos (* (* (cbrt (* PI l)) (cbrt (* PI l))) (cbrt (* PI l))))

simplify3.7s

Counts
32 → 69
Calls

32 calls. Slowest were:

589.0ms
(- (log (sin (* PI l))) (+ (* (log F) 2) (+ (log (* (cbrt (cos (* (* (cbrt (* PI l)) (cbrt (* PI l))) (cbrt (* PI l))))) (cbrt (cos (* (* (cbrt (* PI l)) (cbrt (* PI l))) (cbrt (* PI l))))))) (log (cbrt (cos (* (* (cbrt (* PI l)) (cbrt (* PI l))) (cbrt (* PI l)))))))))
340.0ms
(- (log (sin (* PI l))) (+ (log (pow F 2)) (+ (+ (log (cbrt (cos (* (* (cbrt (* PI l)) (cbrt (* PI l))) (cbrt (* PI l)))))) (log (cbrt (cos (* (* (cbrt (* PI l)) (cbrt (* PI l))) (cbrt (* PI l))))))) (log (cbrt (cos (* (* (cbrt (* PI l)) (cbrt (* PI l))) (cbrt (* PI l)))))))))
322.0ms
(- (log (sin (* PI l))) (+ (* (log F) 2) (+ (+ (log (cbrt (cos (* (* (cbrt (* PI l)) (cbrt (* PI l))) (cbrt (* PI l)))))) (log (cbrt (cos (* (* (cbrt (* PI l)) (cbrt (* PI l))) (cbrt (* PI l))))))) (log (cbrt (cos (* (* (cbrt (* PI l)) (cbrt (* PI l))) (cbrt (* PI l)))))))))

prune1.2s

Pruning

13 alts after pruning (13 fresh and 0 done)

Merged error: 7.4b

regimes507.0ms

Accuracy

0% (1.8b remaining)

Error of 7.9b against oracle of 6.1b and baseline of 7.9b

bsearch5.0ms