Details

Time bar (total: 4.5s)

sample62.0ms

Algorithm
intervals
Results
17.0ms271×body80valid
11.0ms39×body640valid
10.0ms25×body1280valid
4.0ms19×body320valid
2.0ms14×body160valid

simplify57.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0348
1788
22618
38348
426008
550018

prune8.0ms

Filtered
1 candidates to 1 candidates (100.0%)
Pruning

1 alts after pruning (1 fresh and 0 done)

PrunedKeptTotal
New011
Fresh101
Picked000
Done000
Total112

Merged error: 3.4b

Counts
2 → 1

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

rewrite11.0ms

Algorithm
rewrite-expression-head
Rules
associate-*l/ *-commutative
hypot-udef flip3-- flip--
Counts
4 → 5
Calls
4 calls:
1.0ms
(hypot (* (- lambda1 lambda2) (cos (/ (+ phi1 phi2) 2.0))) (- phi1 phi2))
2.0ms
(* (hypot (* (- lambda1 lambda2) (cos (/ (+ phi1 phi2) 2.0))) (- phi1 phi2)) R)
5.0ms
(* (- lambda1 lambda2) (cos (/ (+ phi1 phi2) 2.0)))
4.0ms
(cos (/ (+ phi1 phi2) 2.0))

series922.0ms

Counts
4 → 12
Calls
4 calls:
364.0ms
(hypot (* (- lambda1 lambda2) (cos (/ (+ phi1 phi2) 2.0))) (- phi1 phi2))
441.0ms
(* (hypot (* (- lambda1 lambda2) (cos (/ (+ phi1 phi2) 2.0))) (- phi1 phi2)) R)
86.0ms
(* (- lambda1 lambda2) (cos (/ (+ phi1 phi2) 2.0)))
31.0ms
(cos (/ (+ phi1 phi2) 2.0))

simplify66.0ms

Algorithm
egg-herbie
Counts
17 → 17
Iterations

Useful iterations: 3 (63.0ms)

IterNodesCost
0210148
1659128
22836116
35002112

prune55.0ms

Filtered
17 candidates to 15 candidates (88.2%)
Pruning

4 alts after pruning (3 fresh and 1 done)

PrunedKeptTotal
New14317
Fresh000
Picked011
Done000
Total14418

Merged error: 3.3b

Counts
18 → 4

localize7.0ms

Local error

Found 2 expressions with local error:

0.0b
(hypot (- lambda1 lambda2) (- phi1 phi2))
0.0b
(* (hypot (- lambda1 lambda2) (- phi1 phi2)) R)

rewrite3.0ms

Algorithm
rewrite-expression-head
Rules
hypot-udef *-commutative
Counts
2 → 2
Calls
2 calls:
1.0ms
(hypot (- lambda1 lambda2) (- phi1 phi2))
2.0ms
(* (hypot (- lambda1 lambda2) (- phi1 phi2)) R)

series288.0ms

Counts
2 → 6
Calls
2 calls:
139.0ms
(hypot (- lambda1 lambda2) (- phi1 phi2))
149.0ms
(* (hypot (- lambda1 lambda2) (- phi1 phi2)) R)

simplify118.0ms

Algorithm
egg-herbie
Counts
8 → 8
Iterations

Useful iterations: 4 (113.0ms)

IterNodesCost
010246
128045
291341
3423836
4500135

prune21.0ms

Filtered
8 candidates to 7 candidates (87.5%)
Pruning

4 alts after pruning (2 fresh and 2 done)

PrunedKeptTotal
New808
Fresh022
Picked011
Done011
Total8412

Merged error: 3.3b

Counts
12 → 4

localize4.0ms

Local error

Found 1 expressions with local error:

0.0b
(* (- phi2 phi1) R)

rewrite3.0ms

Algorithm
rewrite-expression-head
Rules
associate-*l/
flip3-- *-commutative flip--
Counts
1 → 3
Calls
1 calls:
3.0ms
(* (- phi2 phi1) R)

series29.0ms

Counts
1 → 3
Calls
1 calls:
29.0ms
(* (- phi2 phi1) R)

simplify69.0ms

Algorithm
egg-herbie
Counts
6 → 6
Iterations

Useful iterations: 1 (3.0ms)

IterNodesCost
03914
19112
222212
360012
4216212
5500212

prune14.0ms

Filtered
6 candidates to 4 candidates (66.7%)
Pruning

4 alts after pruning (1 fresh and 3 done)

PrunedKeptTotal
New606
Fresh011
Picked011
Done022
Total6410

Merged error: 3.3b

Counts
10 → 4

localize19.0ms

Local error

Found 4 expressions with local error:

2.5b
(cos (* 0.5 (+ phi2 phi1)))
3.1b
(* (+ (/ lambda2 lambda1) 1) (/ (* R phi1) lambda1))
4.3b
(/ (* R phi1) lambda1)
7.0b
(fma (- (/ phi2 (cos (* 0.5 (+ phi2 phi1))))) (* (+ (/ lambda2 lambda1) 1) (/ (* R phi1) lambda1)) (- (* lambda2 (* (cos (* 0.5 (+ phi2 phi1))) R))))

rewrite16.0ms

Algorithm
rewrite-expression-head
Rules
10×frac-times
associate-/l*
flip3-+ flip-+
associate-*r/ clear-num *-commutative
cos-sum frac-2neg
+-commutative distribute-rgt-in distribute-lft-in associate-*l/ div-inv
associate-*r* un-div-inv fma-udef
Counts
4 → 30
Calls
4 calls:
4.0ms
(cos (* 0.5 (+ phi2 phi1)))
7.0ms
(* (+ (/ lambda2 lambda1) 1) (/ (* R phi1) lambda1))
3.0ms
(/ (* R phi1) lambda1)
1.0ms
(fma (- (/ phi2 (cos (* 0.5 (+ phi2 phi1))))) (* (+ (/ lambda2 lambda1) 1) (/ (* R phi1) lambda1)) (- (* lambda2 (* (cos (* 0.5 (+ phi2 phi1))) R))))

series372.0ms

Counts
4 → 12
Calls
4 calls:
25.0ms
(cos (* 0.5 (+ phi2 phi1)))
52.0ms
(* (+ (/ lambda2 lambda1) 1) (/ (* R phi1) lambda1))
18.0ms
(/ (* R phi1) lambda1)
276.0ms
(fma (- (/ phi2 (cos (* 0.5 (+ phi2 phi1))))) (* (+ (/ lambda2 lambda1) 1) (/ (* R phi1) lambda1)) (- (* lambda2 (* (cos (* 0.5 (+ phi2 phi1))) R))))

simplify36.0ms

Algorithm
egg-herbie
Counts
42 → 42
Iterations

Useful iterations: 2 (31.0ms)

IterNodesCost
0259289
11180282
25002267

prune125.0ms

Filtered
42 candidates to 30 candidates (71.4%)
Pruning

4 alts after pruning (0 fresh and 4 done)

PrunedKeptTotal
New42042
Fresh000
Picked011
Done033
Total42446

Merged error: 3.3b

Counts
46 → 4

regimes134.0ms

Accuracy

0% (0.1b remaining)

Error of 3.8b against oracle of 3.7b and baseline of 3.8b

bsearch0.0ms

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0178
1178

end0.0ms

sample2.1s

Algorithm
intervals
Results
563.0ms8407×body80valid
527.0ms781×body1280valid
384.0ms1308×body640valid
159.0ms735×body320valid
48.0ms332×body160valid