Details

Time bar (total: 6.2s)

sample64.0ms

Algorithm
intervals
Results
17.0ms275×body80valid
12.0ms29×body1280valid
10.0ms37×body640valid
5.0ms24×body320valid
2.0ms12×body160valid

simplify59.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0348
1788
22618
38348
426008
550018

prune10.0ms

Pruning

2 alts after pruning (2 fresh and 0 done)

Merged error: 2.8b

localize19.0ms

Local error

Found 4 expressions with local error:

0.0b
(hypot (* (- lambda1 lambda2) (cos (/ (+ phi1 phi2) 2.0))) (- phi1 phi2))
0.1b
(* (hypot (* (- lambda1 lambda2) (cos (/ (+ phi1 phi2) 2.0))) (- phi1 phi2)) R)
0.2b
(* (- lambda1 lambda2) (cos (/ (+ phi1 phi2) 2.0)))
2.0b
(cos (/ (+ phi1 phi2) 2.0))

rewrite18.0ms

Algorithm
rewrite-expression-head
Rules
14×add-sqr-sqrt
10×*-un-lft-identity
pow1 add-exp-log add-cube-cbrt associate-*l* add-cbrt-cube
associate-*r*
expm1-log1p-u log1p-expm1-u add-log-exp
pow-prod-down associate-*l/ prod-exp *-commutative cbrt-unprod unswap-sqr
hypot-udef flip3-- flip-- distribute-lft-out-- difference-of-squares
Counts
4 → 63
Calls
4 calls:
1.0ms
(hypot (* (- lambda1 lambda2) (cos (/ (+ phi1 phi2) 2.0))) (- phi1 phi2))
3.0ms
(* (hypot (* (- lambda1 lambda2) (cos (/ (+ phi1 phi2) 2.0))) (- phi1 phi2)) R)
7.0ms
(* (- lambda1 lambda2) (cos (/ (+ phi1 phi2) 2.0)))
5.0ms
(cos (/ (+ phi1 phi2) 2.0))

series1.2s

Counts
4 → 12
Calls
4 calls:
379.0ms
(hypot (* (- lambda1 lambda2) (cos (/ (+ phi1 phi2) 2.0))) (- phi1 phi2))
663.0ms
(* (hypot (* (- lambda1 lambda2) (cos (/ (+ phi1 phi2) 2.0))) (- phi1 phi2)) R)
91.0ms
(* (- lambda1 lambda2) (cos (/ (+ phi1 phi2) 2.0)))
28.0ms
(cos (/ (+ phi1 phi2) 2.0))

simplify39.0ms

Algorithm
egg-herbie
Counts
75 → 75
Iterations

Useful iterations: 2 (31.0ms)

IterNodesCost
0328677
11130579
25001569

prune281.0ms

Pruning

11 alts after pruning (11 fresh and 0 done)

Merged error: 2.6b

localize19.0ms

Local error

Found 4 expressions with local error:

0.4b
(cbrt (cos (/ (+ phi1 phi2) 2.0)))
2.0b
(cos (/ (+ phi1 phi2) 2.0))
2.0b
(cos (/ (+ phi1 phi2) 2.0))
2.0b
(cos (/ (+ phi1 phi2) 2.0))

rewrite21.0ms

Algorithm
rewrite-expression-head
Rules
add-sqr-sqrt add-cube-cbrt *-un-lft-identity
pow1 add-exp-log expm1-log1p-u add-cbrt-cube log1p-expm1-u add-log-exp
cbrt-prod
pow1/3
Counts
4 → 40
Calls
4 calls:
1.0ms
(cbrt (cos (/ (+ phi1 phi2) 2.0)))
8.0ms
(cos (/ (+ phi1 phi2) 2.0))
5.0ms
(cos (/ (+ phi1 phi2) 2.0))
5.0ms
(cos (/ (+ phi1 phi2) 2.0))

series198.0ms

Counts
4 → 12
Calls
4 calls:
117.0ms
(cbrt (cos (/ (+ phi1 phi2) 2.0)))
27.0ms
(cos (/ (+ phi1 phi2) 2.0))
27.0ms
(cos (/ (+ phi1 phi2) 2.0))
27.0ms
(cos (/ (+ phi1 phi2) 2.0))

simplify184.0ms

Algorithm
egg-herbie
Counts
52 → 52
Iterations

Useful iterations: 4 (52.0ms)

IterNodesCost
088284
1165254
2433252
31255252
44860243
55001243

prune269.0ms

Pruning

12 alts after pruning (11 fresh and 1 done)

Merged error: 2.6b

localize26.0ms

Local error

Found 4 expressions with local error:

2.0b
(cos (/ (+ phi1 phi2) 2.0))
2.0b
(cos (/ (+ phi1 phi2) 2.0))
2.0b
(cos (/ (+ phi1 phi2) 2.0))
2.0b
(cos (/ (+ phi1 phi2) 2.0))

rewrite21.0ms

Algorithm
rewrite-expression-head
Rules
pow1 add-exp-log add-sqr-sqrt expm1-log1p-u add-cube-cbrt *-un-lft-identity add-cbrt-cube log1p-expm1-u add-log-exp
Counts
4 → 36
Calls
4 calls:
5.0ms
(cos (/ (+ phi1 phi2) 2.0))
5.0ms
(cos (/ (+ phi1 phi2) 2.0))
5.0ms
(cos (/ (+ phi1 phi2) 2.0))
5.0ms
(cos (/ (+ phi1 phi2) 2.0))

series111.0ms

Counts
4 → 12
Calls
4 calls:
26.0ms
(cos (/ (+ phi1 phi2) 2.0))
31.0ms
(cos (/ (+ phi1 phi2) 2.0))
27.0ms
(cos (/ (+ phi1 phi2) 2.0))
27.0ms
(cos (/ (+ phi1 phi2) 2.0))

simplify99.0ms

Algorithm
egg-herbie
Counts
48 → 48
Iterations

Useful iterations: 4 (27.0ms)

IterNodesCost
054240
197212
2247212
3653212
42375204
55001204

prune292.0ms

Pruning

12 alts after pruning (10 fresh and 2 done)

Merged error: 2.6b

localize17.0ms

Local error

Found 4 expressions with local error:

0.5b
(cbrt (- lambda1 lambda2))
0.5b
(cbrt (- lambda1 lambda2))
0.5b
(cbrt (- lambda1 lambda2))
2.0b
(cos (/ (+ phi1 phi2) 2.0))

rewrite18.0ms

Algorithm
rewrite-expression-head
Rules
15×cbrt-prod
13×add-sqr-sqrt *-un-lft-identity
add-cube-cbrt
cbrt-div
pow1 add-exp-log expm1-log1p-u add-cbrt-cube log1p-expm1-u add-log-exp
flip3-- pow1/3 flip-- distribute-lft-out-- difference-of-squares
Counts
4 → 60
Calls
4 calls:
3.0ms
(cbrt (- lambda1 lambda2))
3.0ms
(cbrt (- lambda1 lambda2))
3.0ms
(cbrt (- lambda1 lambda2))
8.0ms
(cos (/ (+ phi1 phi2) 2.0))

series468.0ms

Counts
4 → 12
Calls
4 calls:
148.0ms
(cbrt (- lambda1 lambda2))
144.0ms
(cbrt (- lambda1 lambda2))
149.0ms
(cbrt (- lambda1 lambda2))
26.0ms
(cos (/ (+ phi1 phi2) 2.0))

simplify119.0ms

Algorithm
egg-herbie
Counts
72 → 72
Iterations

Useful iterations: 4 (114.0ms)

IterNodesCost
0199399
1419377
21147368
33713347
45001342

prune310.0ms

Pruning

14 alts after pruning (12 fresh and 2 done)

Merged error: 2.6b

regimes579.0ms

Accuracy

0% (0.3b remaining)

Error of 4.0b against oracle of 3.6b and baseline of 4.0b

bsearch0.0ms

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
02119
12119

end0.0ms

sample1.8s

Algorithm
intervals
Results
535.0ms8398×body80valid
369.0ms1289×body640valid
325.0ms796×body1280valid
154.0ms733×body320valid
52.0ms380×body160valid