Details

Time bar (total: 7.1s)

sample90.0ms

Algorithm
intervals
Results
28.0ms270×body80valid
18.0ms28×body1280valid
15.0ms37×body640valid
8.0ms24×body320valid
2.0ms11×body160valid

simplify56.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0348
1788
22618
38348
426008
550018

prune7.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 3.4b

localize17.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)))
3.4b
(cos (/ (+ phi1 phi2) 2.0))

rewrite20.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:
0.0ms
(hypot (* (- lambda1 lambda2) (cos (/ (+ phi1 phi2) 2.0))) (- phi1 phi2))
3.0ms
(* (hypot (* (- lambda1 lambda2) (cos (/ (+ phi1 phi2) 2.0))) (- phi1 phi2)) R)
10.0ms
(* (- lambda1 lambda2) (cos (/ (+ phi1 phi2) 2.0)))
5.0ms
(cos (/ (+ phi1 phi2) 2.0))

series901.0ms

Counts
4 → 12
Calls
4 calls:
358.0ms
(hypot (* (- lambda1 lambda2) (cos (/ (+ phi1 phi2) 2.0))) (- phi1 phi2))
431.0ms
(* (hypot (* (- lambda1 lambda2) (cos (/ (+ phi1 phi2) 2.0))) (- phi1 phi2)) R)
86.0ms
(* (- lambda1 lambda2) (cos (/ (+ phi1 phi2) 2.0)))
26.0ms
(cos (/ (+ phi1 phi2) 2.0))

simplify39.0ms

Algorithm
egg-herbie
Counts
75 → 75
Iterations

Useful iterations: 2 (29.0ms)

IterNodesCost
0328677
11130579
25001569

prune260.0ms

Pruning

12 alts after pruning (12 fresh and 0 done)

Merged error: 3.2b

localize18.0ms

Local error

Found 4 expressions with local error:

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

rewrite22.0ms

Algorithm
rewrite-expression-head
Rules
18×add-sqr-sqrt
12×associate-*l*
11×add-exp-log *-un-lft-identity
add-cube-cbrt
add-cbrt-cube
pow1
associate-*r*
expm1-log1p-u unpow-prod-down prod-exp log1p-expm1-u add-log-exp unswap-sqr
pow-prod-down associate-*l/ *-commutative cbrt-unprod sqr-pow
pow-to-exp hypot-udef flip3-- pow-exp flip-- distribute-lft-out-- difference-of-squares
Counts
4 → 71
Calls
4 calls:
0.0ms
(hypot (* (- lambda1 lambda2) (cos (/ (+ phi1 phi2) 2.0))) (- phi1 phi2))
5.0ms
(* (pow (hypot (* (- lambda1 lambda2) (cos (/ (+ phi1 phi2) 2.0))) (- phi1 phi2)) 1) R)
10.0ms
(* (- lambda1 lambda2) (cos (/ (+ phi1 phi2) 2.0)))
5.0ms
(cos (/ (+ phi1 phi2) 2.0))

series918.0ms

Counts
4 → 12
Calls
4 calls:
366.0ms
(hypot (* (- lambda1 lambda2) (cos (/ (+ phi1 phi2) 2.0))) (- phi1 phi2))
439.0ms
(* (pow (hypot (* (- lambda1 lambda2) (cos (/ (+ phi1 phi2) 2.0))) (- phi1 phi2)) 1) R)
87.0ms
(* (- lambda1 lambda2) (cos (/ (+ phi1 phi2) 2.0)))
26.0ms
(cos (/ (+ phi1 phi2) 2.0))

simplify43.0ms

Algorithm
egg-herbie
Counts
83 → 83
Iterations

Useful iterations: 2 (34.0ms)

IterNodesCost
0367768
11276675
25001661

prune315.0ms

Pruning

11 alts after pruning (10 fresh and 1 done)

Merged error: 3.2b

localize22.0ms

Local error

Found 4 expressions with local error:

0.2b
(* (- lambda1 lambda2) (cbrt (pow (cos (/ (+ phi1 phi2) 2.0)) 3)))
0.4b
(pow (cos (/ (+ phi1 phi2) 2.0)) 3)
0.5b
(cbrt (pow (cos (/ (+ phi1 phi2) 2.0)) 3))
3.4b
(cos (/ (+ phi1 phi2) 2.0))

rewrite26.0ms

Algorithm
rewrite-expression-head
Rules
28×cbrt-prod
26×add-sqr-sqrt
17×*-un-lft-identity
15×add-cube-cbrt associate-*r*
10×unpow-prod-down cube-prod
pow1 add-exp-log
add-cbrt-cube
associate-*l* unswap-sqr
expm1-log1p-u log1p-expm1-u add-log-exp sqr-pow
cube-mult pow-unpow unpow3
associate-*l/
pow-to-exp flip3-- pow-pow pow1/3 pow-prod-down pow-exp prod-exp *-commutative flip-- rem-cbrt-cube cbrt-unprod distribute-lft-out-- rem-cube-cbrt difference-of-squares
Counts
4 → 97
Calls
4 calls:
15.0ms
(* (- lambda1 lambda2) (cbrt (pow (cos (/ (+ phi1 phi2) 2.0)) 3)))
1.0ms
(pow (cos (/ (+ phi1 phi2) 2.0)) 3)
1.0ms
(cbrt (pow (cos (/ (+ phi1 phi2) 2.0)) 3))
5.0ms
(cos (/ (+ phi1 phi2) 2.0))

series190.0ms

Counts
4 → 12
Calls
4 calls:
85.0ms
(* (- lambda1 lambda2) (cbrt (pow (cos (/ (+ phi1 phi2) 2.0)) 3)))
48.0ms
(pow (cos (/ (+ phi1 phi2) 2.0)) 3)
30.0ms
(cbrt (pow (cos (/ (+ phi1 phi2) 2.0)) 3))
27.0ms
(cos (/ (+ phi1 phi2) 2.0))

simplify42.0ms

Algorithm
egg-herbie
Counts
109 → 109
Iterations

Useful iterations: 2 (34.0ms)

IterNodesCost
0273715
11100668
25002655

prune359.0ms

Pruning

12 alts after pruning (10 fresh and 2 done)

Merged error: 3.2b

localize20.0ms

Local error

Found 4 expressions with local error:

0.5b
(cbrt (cos (/ (+ phi1 phi2) 2.0)))
3.4b
(cos (/ (+ phi1 phi2) 2.0))
3.4b
(cos (/ (+ phi1 phi2) 2.0))
3.4b
(cos (/ (+ phi1 phi2) 2.0))

rewrite16.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:
0.0ms
(cbrt (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))

series197.0ms

Counts
4 → 12
Calls
4 calls:
115.0ms
(cbrt (cos (/ (+ phi1 phi2) 2.0)))
26.0ms
(cos (/ (+ phi1 phi2) 2.0))
26.0ms
(cos (/ (+ phi1 phi2) 2.0))
29.0ms
(cos (/ (+ phi1 phi2) 2.0))

simplify177.0ms

Algorithm
egg-herbie
Counts
52 → 52
Iterations

Useful iterations: 4 (51.0ms)

IterNodesCost
088284
1165254
2433252
31255252
44860243
55001243

prune264.0ms

Pruning

13 alts after pruning (11 fresh and 2 done)

Merged error: 3.2b

regimes402.0ms

Accuracy

0% (0.2b remaining)

Error of 4.1b against oracle of 3.9b and baseline of 4.1b

bsearch0.0ms

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0218
1218

end0.0ms

sample2.7s

Algorithm
intervals
Results
874.0ms8299×body80valid
576.0ms1309×body640valid
468.0ms788×body1280valid
250.0ms762×body320valid
87.0ms394×body160valid