Average Error: 47.4 → 1.7
Time: 3.6m
Precision: 64
Internal Precision: 128
\[\frac{2}{\left(\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) - 1\right)}\]
\[\frac{\frac{\sqrt[3]{\frac{2}{\tan k}} \cdot \sqrt[3]{2}}{\frac{\frac{k}{\ell}}{\sqrt[3]{\frac{2}{\sin k}} \cdot \sqrt[3]{\cos k}}}}{\left(\left(t \cdot \sin k\right) \cdot \sqrt[3]{\tan k}\right) \cdot \frac{k}{\ell}}\]

Error

Bits error versus t

Bits error versus l

Bits error versus k

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 47.4

    \[\frac{2}{\left(\left(\frac{{t}^{3}}{\ell \cdot \ell} \cdot \sin k\right) \cdot \tan k\right) \cdot \left(\left(1 + {\left(\frac{k}{t}\right)}^{2}\right) - 1\right)}\]
  2. Initial simplification30.5

    \[\leadsto \frac{\frac{\frac{2}{\tan k}}{\frac{\sin k \cdot t}{\frac{\ell}{t} \cdot \frac{\ell}{t}}}}{\frac{k}{t} \cdot \frac{k}{t}}\]
  3. Using strategy rm
  4. Applied times-frac29.5

    \[\leadsto \frac{\frac{\frac{2}{\tan k}}{\color{blue}{\frac{\sin k}{\frac{\ell}{t}} \cdot \frac{t}{\frac{\ell}{t}}}}}{\frac{k}{t} \cdot \frac{k}{t}}\]
  5. Applied add-cube-cbrt29.6

    \[\leadsto \frac{\frac{\color{blue}{\left(\sqrt[3]{\frac{2}{\tan k}} \cdot \sqrt[3]{\frac{2}{\tan k}}\right) \cdot \sqrt[3]{\frac{2}{\tan k}}}}{\frac{\sin k}{\frac{\ell}{t}} \cdot \frac{t}{\frac{\ell}{t}}}}{\frac{k}{t} \cdot \frac{k}{t}}\]
  6. Applied times-frac29.3

    \[\leadsto \frac{\color{blue}{\frac{\sqrt[3]{\frac{2}{\tan k}} \cdot \sqrt[3]{\frac{2}{\tan k}}}{\frac{\sin k}{\frac{\ell}{t}}} \cdot \frac{\sqrt[3]{\frac{2}{\tan k}}}{\frac{t}{\frac{\ell}{t}}}}}{\frac{k}{t} \cdot \frac{k}{t}}\]
  7. Applied times-frac18.4

    \[\leadsto \color{blue}{\frac{\frac{\sqrt[3]{\frac{2}{\tan k}} \cdot \sqrt[3]{\frac{2}{\tan k}}}{\frac{\sin k}{\frac{\ell}{t}}}}{\frac{k}{t}} \cdot \frac{\frac{\sqrt[3]{\frac{2}{\tan k}}}{\frac{t}{\frac{\ell}{t}}}}{\frac{k}{t}}}\]
  8. Simplified11.6

    \[\leadsto \frac{\frac{\sqrt[3]{\frac{2}{\tan k}} \cdot \sqrt[3]{\frac{2}{\tan k}}}{\frac{\sin k}{\frac{\ell}{t}}}}{\frac{k}{t}} \cdot \color{blue}{\frac{\sqrt[3]{\frac{2}{\tan k}}}{\frac{t}{1 \cdot \ell} \cdot k}}\]
  9. Using strategy rm
  10. Applied *-un-lft-identity11.6

    \[\leadsto \frac{\frac{\sqrt[3]{\frac{2}{\tan k}} \cdot \sqrt[3]{\frac{2}{\tan k}}}{\frac{\sin k}{\frac{\ell}{t}}}}{\color{blue}{1 \cdot \frac{k}{t}}} \cdot \frac{\sqrt[3]{\frac{2}{\tan k}}}{\frac{t}{1 \cdot \ell} \cdot k}\]
  11. Applied associate-/r/11.7

    \[\leadsto \frac{\color{blue}{\frac{\sqrt[3]{\frac{2}{\tan k}} \cdot \sqrt[3]{\frac{2}{\tan k}}}{\sin k} \cdot \frac{\ell}{t}}}{1 \cdot \frac{k}{t}} \cdot \frac{\sqrt[3]{\frac{2}{\tan k}}}{\frac{t}{1 \cdot \ell} \cdot k}\]
  12. Applied times-frac11.7

    \[\leadsto \color{blue}{\left(\frac{\frac{\sqrt[3]{\frac{2}{\tan k}} \cdot \sqrt[3]{\frac{2}{\tan k}}}{\sin k}}{1} \cdot \frac{\frac{\ell}{t}}{\frac{k}{t}}\right)} \cdot \frac{\sqrt[3]{\frac{2}{\tan k}}}{\frac{t}{1 \cdot \ell} \cdot k}\]
  13. Simplified11.7

    \[\leadsto \left(\color{blue}{\left(\sqrt[3]{\frac{2}{\tan k}} \cdot \frac{\sqrt[3]{\frac{2}{\tan k}}}{\sin k}\right)} \cdot \frac{\frac{\ell}{t}}{\frac{k}{t}}\right) \cdot \frac{\sqrt[3]{\frac{2}{\tan k}}}{\frac{t}{1 \cdot \ell} \cdot k}\]
  14. Simplified7.4

    \[\leadsto \left(\left(\sqrt[3]{\frac{2}{\tan k}} \cdot \frac{\sqrt[3]{\frac{2}{\tan k}}}{\sin k}\right) \cdot \color{blue}{\left(1 \cdot \frac{\ell}{k}\right)}\right) \cdot \frac{\sqrt[3]{\frac{2}{\tan k}}}{\frac{t}{1 \cdot \ell} \cdot k}\]
  15. Using strategy rm
  16. Applied cbrt-div7.4

    \[\leadsto \left(\left(\color{blue}{\frac{\sqrt[3]{2}}{\sqrt[3]{\tan k}}} \cdot \frac{\sqrt[3]{\frac{2}{\tan k}}}{\sin k}\right) \cdot \left(1 \cdot \frac{\ell}{k}\right)\right) \cdot \frac{\sqrt[3]{\frac{2}{\tan k}}}{\frac{t}{1 \cdot \ell} \cdot k}\]
  17. Applied frac-times7.4

    \[\leadsto \left(\color{blue}{\frac{\sqrt[3]{2} \cdot \sqrt[3]{\frac{2}{\tan k}}}{\sqrt[3]{\tan k} \cdot \sin k}} \cdot \left(1 \cdot \frac{\ell}{k}\right)\right) \cdot \frac{\sqrt[3]{\frac{2}{\tan k}}}{\frac{t}{1 \cdot \ell} \cdot k}\]
  18. Applied associate-*l/7.3

    \[\leadsto \color{blue}{\frac{\left(\sqrt[3]{2} \cdot \sqrt[3]{\frac{2}{\tan k}}\right) \cdot \left(1 \cdot \frac{\ell}{k}\right)}{\sqrt[3]{\tan k} \cdot \sin k}} \cdot \frac{\sqrt[3]{\frac{2}{\tan k}}}{\frac{t}{1 \cdot \ell} \cdot k}\]
  19. Applied frac-times6.9

    \[\leadsto \color{blue}{\frac{\left(\left(\sqrt[3]{2} \cdot \sqrt[3]{\frac{2}{\tan k}}\right) \cdot \left(1 \cdot \frac{\ell}{k}\right)\right) \cdot \sqrt[3]{\frac{2}{\tan k}}}{\left(\sqrt[3]{\tan k} \cdot \sin k\right) \cdot \left(\frac{t}{1 \cdot \ell} \cdot k\right)}}\]
  20. Simplified6.9

    \[\leadsto \frac{\color{blue}{\frac{\sqrt[3]{2} \cdot \sqrt[3]{\frac{2}{\tan k}}}{\frac{\frac{k}{\ell}}{\sqrt[3]{\frac{2}{\tan k}}}}}}{\left(\sqrt[3]{\tan k} \cdot \sin k\right) \cdot \left(\frac{t}{1 \cdot \ell} \cdot k\right)}\]
  21. Simplified1.7

    \[\leadsto \frac{\frac{\sqrt[3]{2} \cdot \sqrt[3]{\frac{2}{\tan k}}}{\frac{\frac{k}{\ell}}{\sqrt[3]{\frac{2}{\tan k}}}}}{\color{blue}{\frac{k}{\ell} \cdot \left(\left(\sin k \cdot t\right) \cdot \sqrt[3]{\tan k}\right)}}\]
  22. Using strategy rm
  23. Applied tan-quot1.7

    \[\leadsto \frac{\frac{\sqrt[3]{2} \cdot \sqrt[3]{\frac{2}{\tan k}}}{\frac{\frac{k}{\ell}}{\sqrt[3]{\frac{2}{\color{blue}{\frac{\sin k}{\cos k}}}}}}}{\frac{k}{\ell} \cdot \left(\left(\sin k \cdot t\right) \cdot \sqrt[3]{\tan k}\right)}\]
  24. Applied associate-/r/1.7

    \[\leadsto \frac{\frac{\sqrt[3]{2} \cdot \sqrt[3]{\frac{2}{\tan k}}}{\frac{\frac{k}{\ell}}{\sqrt[3]{\color{blue}{\frac{2}{\sin k} \cdot \cos k}}}}}{\frac{k}{\ell} \cdot \left(\left(\sin k \cdot t\right) \cdot \sqrt[3]{\tan k}\right)}\]
  25. Applied cbrt-prod1.7

    \[\leadsto \frac{\frac{\sqrt[3]{2} \cdot \sqrt[3]{\frac{2}{\tan k}}}{\frac{\frac{k}{\ell}}{\color{blue}{\sqrt[3]{\frac{2}{\sin k}} \cdot \sqrt[3]{\cos k}}}}}{\frac{k}{\ell} \cdot \left(\left(\sin k \cdot t\right) \cdot \sqrt[3]{\tan k}\right)}\]
  26. Final simplification1.7

    \[\leadsto \frac{\frac{\sqrt[3]{\frac{2}{\tan k}} \cdot \sqrt[3]{2}}{\frac{\frac{k}{\ell}}{\sqrt[3]{\frac{2}{\sin k}} \cdot \sqrt[3]{\cos k}}}}{\left(\left(t \cdot \sin k\right) \cdot \sqrt[3]{\tan k}\right) \cdot \frac{k}{\ell}}\]

Reproduce

herbie shell --seed 2018360 
(FPCore (t l k)
  :name "Toniolo and Linder, Equation (10-)"
  (/ 2 (* (* (* (/ (pow t 3) (* l l)) (sin k)) (tan k)) (- (+ 1 (pow (/ k t) 2)) 1))))

Details

Time bar (total: 2.6m)Debug log

start2.1s

Algorithm
intervals

setup122.0ms

Pruning

2 alts after pruning (2 fresh and 0 done)

Merged error: 33.3b

localize50.0ms

Local error

Found 4 expressions with local error:

31.5b
(/ (/ (/ 2 (tan k)) (/ (* (sin k) t) (* (/ l t) (/ l t)))) (* (/ k t) (/ k t)))
3.5b
(/ (* (sin k) t) (* (/ l t) (/ l t)))
1.5b
(/ (/ 2 (tan k)) (/ (* (sin k) t) (* (/ l t) (/ l t))))
0.2b
(* (/ k t) (/ k t))

rewrite36.0ms

Algorithm
rewrite-expression-head
Counts
4 → 237
Calls

4 calls. Slowest were:

12.0ms
(/ (/ (/ 2 (tan k)) (/ (* (sin k) t) (* (/ l t) (/ l t)))) (* (/ k t) (/ k t)))
7.0ms
(/ (/ 2 (tan k)) (/ (* (sin k) t) (* (/ l t) (/ l t))))
6.0ms
(/ (* (sin k) t) (* (/ l t) (/ l t)))

series675.0ms

Counts
4 → 12
Calls

4 calls. Slowest were:

289.0ms
(/ (/ 2 (tan k)) (/ (* (sin k) t) (* (/ l t) (/ l t))))
244.0ms
(/ (/ (/ 2 (tan k)) (/ (* (sin k) t) (* (/ l t) (/ l t)))) (* (/ k t) (/ k t)))
121.0ms
(/ (* (sin k) t) (* (/ l t) (/ l t)))
21.0ms
(* (/ k t) (/ k t))

simplify59.2s

Counts
285 → 249
Calls

285 calls. Slowest were:

1.1s
(* (* (* (/ k t) (/ k t)) (/ k t)) (* (* (/ k t) (/ k t)) (/ k t)))
821.0ms
(/ (/ (cbrt (/ 2 (tan k))) (/ (* (sin k) t) (* (/ l t) (/ l t)))) (/ k t))
689.0ms
(/ (* (* (/ (/ 2 (tan k)) (/ (* (sin k) t) (* (/ l t) (/ l t)))) (/ (/ 2 (tan k)) (/ (* (sin k) t) (* (/ l t) (/ l t))))) (/ (/ 2 (tan k)) (/ (* (sin k) t) (* (/ l t) (/ l t))))) (* (* (* (/ k t) (/ k t)) (/ k t)) (* (* (/ k t) (/ k t)) (/ k t))))

prune3.7s

Pruning

15 alts after pruning (15 fresh and 0 done)

Merged error: 5.5b

localize30.0ms

Local error

Found 4 expressions with local error:

12.9b
(/ (/ (* (cbrt (/ 2 (tan k))) (cbrt (/ 2 (tan k)))) (/ (sin k) (/ l t))) (/ k t))
5.4b
(* (/ t (* 1 l)) k)
2.5b
(/ (sin k) (/ l t))
1.3b
(* (/ (/ (* (cbrt (/ 2 (tan k))) (cbrt (/ 2 (tan k)))) (/ (sin k) (/ l t))) (/ k t)) (/ (cbrt (/ 2 (tan k))) (* (/ t (* 1 l)) k)))

rewrite53.0ms

Algorithm
rewrite-expression-head
Counts
4 → 323
Calls

4 calls. Slowest were:

22.0ms
(* (/ (/ (* (cbrt (/ 2 (tan k))) (cbrt (/ 2 (tan k)))) (/ (sin k) (/ l t))) (/ k t)) (/ (cbrt (/ 2 (tan k))) (* (/ t (* 1 l)) k)))
13.0ms
(/ (/ (* (cbrt (/ 2 (tan k))) (cbrt (/ 2 (tan k)))) (/ (sin k) (/ l t))) (/ k t))
6.0ms
(/ (sin k) (/ l t))

series691.0ms

Counts
4 → 12
Calls

4 calls. Slowest were:

331.0ms
(/ (/ (* (cbrt (/ 2 (tan k))) (cbrt (/ 2 (tan k)))) (/ (sin k) (/ l t))) (/ k t))
256.0ms
(* (/ (/ (* (cbrt (/ 2 (tan k))) (cbrt (/ 2 (tan k)))) (/ (sin k) (/ l t))) (/ k t)) (/ (cbrt (/ 2 (tan k))) (* (/ t (* 1 l)) k)))
80.0ms
(/ (sin k) (/ l t))
23.0ms
(* (/ t (* 1 l)) k)

simplify54.1s

Counts
393 → 335
Calls

393 calls. Slowest were:

2.8s
(/ (/ (cbrt (/ 2 (tan k))) (/ (sin k) (/ 1 t))) (/ 1 t))
954.0ms
(/ (/ 1 (/ (sin k) (/ l t))) (/ 1 t))
775.0ms
(* (/ (/ (* (/ 2 (tan k)) (/ 2 (tan k))) (/ (* (* (sin k) (sin k)) (sin k)) (* (* (/ l t) (/ l t)) (/ l t)))) (* (* (/ k t) (/ k t)) (/ k t))) (* (* (/ (cbrt (/ 2 (tan k))) (* (/ t (* 1 l)) k)) (/ (cbrt (/ 2 (tan k))) (* (/ t (* 1 l)) k))) (/ (cbrt (/ 2 (tan k))) (* (/ t (* 1 l)) k))))

prune5.9s

Pruning

14 alts after pruning (14 fresh and 0 done)

Merged error: 2.5b

localize17.0ms

Local error

Found 4 expressions with local error:

5.4b
(* (/ t (* 1 l)) k)
1.3b
(* (* (* (cbrt (/ 2 (tan k))) (/ (cbrt (/ 2 (tan k))) (sin k))) (* 1 (/ l k))) (/ (cbrt (/ 2 (tan k))) (* (/ t (* 1 l)) k)))
1.1b
(/ (cbrt (/ 2 (tan k))) (* (/ t (* 1 l)) k))
0.6b
(cbrt (/ 2 (tan k)))

rewrite66.0ms

Algorithm
rewrite-expression-head
Counts
4 → 114
Calls

4 calls. Slowest were:

54.0ms
(* (* (* (cbrt (/ 2 (tan k))) (/ (cbrt (/ 2 (tan k))) (sin k))) (* 1 (/ l k))) (/ (cbrt (/ 2 (tan k))) (* (/ t (* 1 l)) k)))
7.0ms
(/ (cbrt (/ 2 (tan k))) (* (/ t (* 1 l)) k))
2.0ms
(* (/ t (* 1 l)) k)

series814.0ms

Counts
4 → 12
Calls

4 calls. Slowest were:

318.0ms
(/ (cbrt (/ 2 (tan k))) (* (/ t (* 1 l)) k))
241.0ms
(cbrt (/ 2 (tan k)))
234.0ms
(* (* (* (cbrt (/ 2 (tan k))) (/ (cbrt (/ 2 (tan k))) (sin k))) (* 1 (/ l k))) (/ (cbrt (/ 2 (tan k))) (* (/ t (* 1 l)) k)))
21.0ms
(* (/ t (* 1 l)) k)

simplify14.2s

Counts
103 → 126
Calls

103 calls. Slowest were:

767.0ms
(+ (+ (+ (log (cbrt (/ 2 (tan k)))) (log (/ (cbrt (/ 2 (tan k))) (sin k)))) (log (* 1 (/ l k)))) (- (log (cbrt (/ 2 (tan k)))) (log (* (/ t (* 1 l)) k))))
593.0ms
(* (* (* (cbrt (/ 2 (tan k))) (/ (cbrt (/ 2 (tan k))) (sin k))) (* 1 (/ l k))) (/ (cbrt (/ 2 (tan k))) (* (/ t (* 1 l)) k)))
587.0ms
(* (* (* (cbrt 2) (cbrt (/ 2 (tan k)))) (* 1 (/ l k))) (/ (cbrt (/ 2 (tan k))) (* (/ t (* 1 l)) k)))

prune2.1s

Pruning

16 alts after pruning (16 fresh and 0 done)

Merged error: 0.0b

localize25.0ms

Local error

Found 4 expressions with local error:

4.7b
(* (/ k l) (* (* (sin k) t) (cbrt (tan k))))
1.0b
(cbrt 2)
0.7b
(/ (* (cbrt 2) (cbrt (/ 2 (tan k)))) (/ (/ k l) (cbrt (/ 2 (tan k)))))
0.6b
(cbrt (/ 2 (tan k)))

rewrite50.0ms

Algorithm
rewrite-expression-head
Counts
4 → 139
Calls

4 calls. Slowest were:

23.0ms
(/ (* (cbrt 2) (cbrt (/ 2 (tan k)))) (/ (/ k l) (cbrt (/ 2 (tan k)))))
20.0ms
(* (/ k l) (* (* (sin k) t) (cbrt (tan k))))
1.0ms
(cbrt (/ 2 (tan k)))

series881.0ms

Counts
4 → 10
Calls

4 calls. Slowest were:

307.0ms
(* (/ k l) (* (* (sin k) t) (cbrt (tan k))))
302.0ms
(/ (* (cbrt 2) (cbrt (/ 2 (tan k)))) (/ (/ k l) (cbrt (/ 2 (tan k)))))
271.0ms
(cbrt (/ 2 (tan k)))
0.0ms
(cbrt 2)

simplify6.5s

Counts
151 → 149
Calls

151 calls. Slowest were:

678.0ms
(- (log (* (cbrt 2) (cbrt (/ 2 (tan k))))) (- (log (/ k l)) (log (cbrt (/ 2 (tan k))))))
574.0ms
(/ (* 2 (/ 2 (tan k))) (/ (* (* (/ k l) (/ k l)) (/ k l)) (/ 2 (tan k))))
502.0ms
(/ (* 2 (/ 2 (tan k))) (* (* (/ (/ k l) (cbrt (/ 2 (tan k)))) (/ (/ k l) (cbrt (/ 2 (tan k))))) (/ (/ k l) (cbrt (/ 2 (tan k))))))

prune2.9s

Pruning

16 alts after pruning (15 fresh and 1 done)

Merged error: 0.0b

regimes659.0ms

Accuracy

0% (1.6b remaining)

Error of 1.7b against oracle of 0.1b and baseline of 1.7b

bsearch7.0ms