Average Error: 47.5 → 2.3
Time: 3.1m
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)}\]
\[\left(\sqrt[3]{\frac{2}{\tan k}} \cdot \frac{\frac{1}{k} \cdot \ell}{t}\right) \cdot \frac{\sqrt[3]{\frac{2}{\tan k}} \cdot \frac{\sqrt[3]{\frac{2}{\tan k}}}{\frac{\sin k}{\ell}}}{k}\]

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

    \[\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.7

    \[\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.7

    \[\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.8

    \[\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.4

    \[\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.3

    \[\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. Simplified10.8

    \[\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}{\left(\left(\frac{1}{k} \cdot \frac{\ell}{t}\right) \cdot \sqrt[3]{\frac{2}{\tan k}}\right)}\]
  9. Using strategy rm
  10. Applied associate-/r/7.2

    \[\leadsto \color{blue}{\left(\frac{\frac{\sqrt[3]{\frac{2}{\tan k}} \cdot \sqrt[3]{\frac{2}{\tan k}}}{\frac{\sin k}{\frac{\ell}{t}}}}{k} \cdot t\right)} \cdot \left(\left(\frac{1}{k} \cdot \frac{\ell}{t}\right) \cdot \sqrt[3]{\frac{2}{\tan k}}\right)\]
  11. Using strategy rm
  12. Applied associate-*r/7.1

    \[\leadsto \left(\frac{\frac{\sqrt[3]{\frac{2}{\tan k}} \cdot \sqrt[3]{\frac{2}{\tan k}}}{\frac{\sin k}{\frac{\ell}{t}}}}{k} \cdot t\right) \cdot \left(\color{blue}{\frac{\frac{1}{k} \cdot \ell}{t}} \cdot \sqrt[3]{\frac{2}{\tan k}}\right)\]
  13. Using strategy rm
  14. Applied associate-*l/6.9

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

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

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

Reproduce

herbie shell --seed 2018365 
(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.1m)Debug log

start2.1s

Algorithm
intervals

setup149.0ms

Pruning

2 alts after pruning (2 fresh and 0 done)

Merged error: 33.0b

localize73.0ms

Local error

Found 4 expressions with local error:

32.1b
(/ (/ (/ 2 (tan k)) (/ (* (sin k) t) (* (/ l t) (/ l t)))) (* (/ k t) (/ k t)))
1.7b
(/ (* (sin k) t) (* (/ l t) (/ l t)))
0.5b
(/ (/ 2 (tan k)) (/ (* (sin k) t) (* (/ l t) (/ l t))))
0.2b
(* (/ k t) (/ k t))

rewrite40.0ms

Algorithm
rewrite-expression-head
Counts
4 → 237
Calls

4 calls. Slowest were:

17.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))))
5.0ms
(/ (* (sin k) t) (* (/ l t) (/ l t)))

series641.0ms

Counts
4 → 12
Calls

4 calls. Slowest were:

274.0ms
(/ (/ (/ 2 (tan k)) (/ (* (sin k) t) (* (/ l t) (/ l t)))) (* (/ k t) (/ k t)))
248.0ms
(/ (/ 2 (tan k)) (/ (* (sin k) t) (* (/ l t) (/ l t))))
106.0ms
(/ (* (sin k) t) (* (/ l t) (/ l t)))
14.0ms
(* (/ k t) (/ k t))

simplify59.7s

Counts
285 → 249
Calls

285 calls. Slowest were:

1.1s
(* (* (* (/ k t) (/ k t)) (/ k t)) (* (* (/ k t) (/ k t)) (/ k t)))
903.0ms
(/ (sqrt (/ 2 (tan k))) (/ (* (sin k) t) (* (/ l t) l)))
893.0ms
(/ (/ (/ 1 (tan k)) (* t t)) (/ k t))

prune3.6s

Pruning

12 alts after pruning (12 fresh and 0 done)

Merged error: 4.3b

localize51.0ms

Local error

Found 4 expressions with local error:

14.2b
(/ (/ (* (cbrt (/ 2 (tan k))) (cbrt (/ 2 (tan k)))) (/ (sin k) (/ l t))) (/ k t))
5.1b
(* (/ 1 k) (/ l t))
2.6b
(/ (sin k) (/ l t))
1.3b
(/ (* (cbrt (/ 2 (tan k))) (cbrt (/ 2 (tan k)))) (/ (sin k) (/ l t)))

rewrite37.0ms

Algorithm
rewrite-expression-head
Counts
4 → 247
Calls

4 calls. Slowest were:

19.0ms
(/ (/ (* (cbrt (/ 2 (tan k))) (cbrt (/ 2 (tan k)))) (/ (sin k) (/ l t))) (/ k t))
8.0ms
(/ (* (cbrt (/ 2 (tan k))) (cbrt (/ 2 (tan k)))) (/ (sin k) (/ l t)))
3.0ms
(/ (sin k) (/ l t))

series860.0ms

Counts
4 → 12
Calls

4 calls. Slowest were:

402.0ms
(/ (* (cbrt (/ 2 (tan k))) (cbrt (/ 2 (tan k)))) (/ (sin k) (/ l t)))
379.0ms
(/ (/ (* (cbrt (/ 2 (tan k))) (cbrt (/ 2 (tan k)))) (/ (sin k) (/ l t))) (/ k t))
67.0ms
(/ (sin k) (/ l t))
12.0ms
(* (/ 1 k) (/ l t))

simplify36.5s

Counts
331 → 259
Calls

331 calls. Slowest were:

684.0ms
(/ (/ (cbrt (/ 2 (tan k))) (/ (sin k) (/ 1 t))) (/ k t))
643.0ms
(/ (/ (cbrt (/ 2 (tan k))) (/ (sqrt (sin k)) (/ 1 t))) (sqrt (/ k t)))
636.0ms
(/ (/ (cbrt (/ 2 (tan k))) (/ (cbrt (sin k)) (/ 1 t))) (cbrt (/ k t)))

prune4.2s

Pruning

14 alts after pruning (14 fresh and 0 done)

Merged error: 4.1b

localize11.0ms

Local error

Found 4 expressions with local error:

8.8b
(* (/ (/ (* (cbrt (/ 2 (tan k))) (cbrt (/ 2 (tan k)))) (/ (sin k) (/ l t))) k) t)
5.1b
(* (/ 1 k) (/ l t))
3.2b
(/ (/ (* (cbrt (/ 2 (tan k))) (cbrt (/ 2 (tan k)))) (/ (sin k) (/ l t))) k)
2.6b
(/ (sin k) (/ l t))

rewrite27.0ms

Algorithm
rewrite-expression-head
Counts
4 → 100
Calls

4 calls. Slowest were:

12.0ms
(* (/ (/ (* (cbrt (/ 2 (tan k))) (cbrt (/ 2 (tan k)))) (/ (sin k) (/ l t))) k) t)
8.0ms
(/ (/ (* (cbrt (/ 2 (tan k))) (cbrt (/ 2 (tan k)))) (/ (sin k) (/ l t))) k)
3.0ms
(* (/ 1 k) (/ l t))

series734.0ms

Counts
4 → 12
Calls

4 calls. Slowest were:

366.0ms
(/ (/ (* (cbrt (/ 2 (tan k))) (cbrt (/ 2 (tan k)))) (/ (sin k) (/ l t))) k)
297.0ms
(* (/ (/ (* (cbrt (/ 2 (tan k))) (cbrt (/ 2 (tan k)))) (/ (sin k) (/ l t))) k) t)
60.0ms
(/ (sin k) (/ l t))
12.0ms
(* (/ 1 k) (/ l t))

simplify4.3s

Counts
82 → 112
Calls

82 calls. Slowest were:

727.0ms
(* (/ (* (cbrt (/ 2 (tan k))) (cbrt (/ 2 (tan k)))) (/ (sin k) (/ l t))) t)
375.0ms
(* (* (* (/ 1 k) (/ 1 k)) (/ 1 k)) (* (* (/ l t) (/ l t)) (/ l t)))
341.0ms
(- (* (* (pow (cbrt 2) 2) l) (pow (/ 1 (pow k 8)) 1/3)) (* 1/18 (* (* (pow (cbrt 2) 2) l) (pow (/ 1 (pow k 2)) 1/3))))

prune2.1s

Pruning

14 alts after pruning (13 fresh and 1 done)

Merged error: 4.1b

localize12.0ms

Local error

Found 4 expressions with local error:

8.8b
(* (/ (/ (* (cbrt (/ 2 (tan k))) (cbrt (/ 2 (tan k)))) (/ (sin k) (/ l t))) k) t)
6.3b
(/ (* (/ 1 k) l) t)
3.2b
(/ (/ (* (cbrt (/ 2 (tan k))) (cbrt (/ 2 (tan k)))) (/ (sin k) (/ l t))) k)
2.6b
(/ (sin k) (/ l t))

rewrite42.0ms

Algorithm
rewrite-expression-head
Counts
4 → 90
Calls

4 calls. Slowest were:

18.0ms
(/ (/ (* (cbrt (/ 2 (tan k))) (cbrt (/ 2 (tan k)))) (/ (sin k) (/ l t))) k)
12.0ms
(* (/ (/ (* (cbrt (/ 2 (tan k))) (cbrt (/ 2 (tan k)))) (/ (sin k) (/ l t))) k) t)
8.0ms
(/ (* (/ 1 k) l) t)

series866.0ms

Counts
4 → 12
Calls

4 calls. Slowest were:

457.0ms
(/ (/ (* (cbrt (/ 2 (tan k))) (cbrt (/ 2 (tan k)))) (/ (sin k) (/ l t))) k)
333.0ms
(* (/ (/ (* (cbrt (/ 2 (tan k))) (cbrt (/ 2 (tan k)))) (/ (sin k) (/ l t))) k) t)
64.0ms
(/ (sin k) (/ l t))
12.0ms
(/ (* (/ 1 k) l) t)

simplify4.7s

Counts
72 → 102
Calls

72 calls. Slowest were:

1.1s
(* (/ (* (cbrt (/ 2 (tan k))) (cbrt (/ 2 (tan k)))) (/ (sin k) (/ l t))) t)
407.0ms
(- (* (* (pow (cbrt 2) 2) l) (pow (/ 1 (pow k 8)) 1/3)) (* 1/18 (* (* (pow (cbrt 2) 2) l) (pow (/ 1 (pow k 2)) 1/3))))
370.0ms
(sqrt (/ (/ (* (cbrt (/ 2 (tan k))) (cbrt (/ 2 (tan k)))) (/ (sin k) (/ l t))) k))

prune2.0s

Pruning

19 alts after pruning (18 fresh and 1 done)

Merged error: 1.2b

regimes702.0ms

Accuracy

0% (0.7b remaining)

Error of 2.3b against oracle of 1.6b and baseline of 2.3b

bsearch4.0ms