Details

Time bar (total: 6.8s)

sample90.0ms

Algorithm
intervals
Results
33.0ms92×body1280valid
16.0ms64×body640valid
15.0ms253×body80valid
7.0ms36×body320valid
2.0ms14×body160valid

simplify21.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 1 (3.0ms)

IterNodesCost
0267
1576
2876
31146
41326
51516
61716
71736
81736

prune13.0ms

Filtered
1 candidates to 1 candidates (100.0%)
Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New011
Fresh011
Picked000
Done000
Total022

Merged error: 0.3b

Counts
2 → 2

localize11.0ms

Local error

Found 3 expressions with local error:

0.0b
(fma a1 a1 (* a2 a2))
0.2b
(* (cos th) (fma a1 a1 (* a2 a2)))
0.4b
(/ (* (cos th) (fma a1 a1 (* a2 a2))) (sqrt 2.0))

rewrite12.0ms

Algorithm
rewrite-expression-head
Rules
11×add-sqr-sqrt
10×add-exp-log add-cbrt-cube
add-cube-cbrt *-un-lft-identity
times-frac associate-/r* sqrt-prod
pow1
expm1-log1p-u associate-*r* associate-*l* fma-udef log1p-expm1-u add-log-exp
cbrt-undiv div-exp prod-exp cbrt-unprod
distribute-rgt-in frac-2neg distribute-lft-in pow-prod-down clear-num *-commutative div-inv associate-/l* unswap-sqr
Counts
3 → 61
Calls
3 calls:
1.0ms
(fma a1 a1 (* a2 a2))
4.0ms
(* (cos th) (fma a1 a1 (* a2 a2)))
6.0ms
(/ (* (cos th) (fma a1 a1 (* a2 a2))) (sqrt 2.0))

series368.0ms

Counts
3 → 9
Calls
3 calls:
41.0ms
(fma a1 a1 (* a2 a2))
111.0ms
(* (cos th) (fma a1 a1 (* a2 a2)))
216.0ms
(/ (* (cos th) (fma a1 a1 (* a2 a2))) (sqrt 2.0))

simplify36.0ms

Algorithm
egg-herbie
Counts
70 → 70
Iterations

Useful iterations: 2 (30.0ms)

IterNodesCost
0205467
11002399
25001393

prune393.0ms

Filtered
70 candidates to 49 candidates (70.0%)
Pruning

9 alts after pruning (9 fresh and 0 done)

PrunedKeptTotal
New61970
Fresh101
Picked101
Done000
Total63972

Merged error: 0b

Counts
72 → 9

localize14.0ms

Local error

Found 4 expressions with local error:

0.1b
(* (cos th) (hypot a1 a2))
0.1b
(* (* (cos th) (hypot a1 a2)) (sqrt (fma a1 a1 (* a2 a2))))
0.4b
(/ (* (* (cos th) (hypot a1 a2)) (sqrt (fma a1 a1 (* a2 a2)))) (sqrt 2.0))
6.8b
(sqrt (fma a1 a1 (* a2 a2)))

rewrite23.0ms

Algorithm
rewrite-expression-head
Rules
20×add-exp-log add-cbrt-cube
16×add-sqr-sqrt
13×add-cube-cbrt *-un-lft-identity
12×pow1 sqrt-prod
associate-*r*
prod-exp cbrt-unprod
times-frac associate-/r*
expm1-log1p-u associate-*l* pow-prod-down log1p-expm1-u add-log-exp
cbrt-undiv div-exp
*-commutative
rem-sqrt-square frac-2neg sqrt-pow1 pow1/2 clear-num fma-udef hypot-def div-inv associate-/l* unswap-sqr
Counts
4 → 90
Calls
4 calls:
4.0ms
(* (cos th) (hypot a1 a2))
6.0ms
(* (* (cos th) (hypot a1 a2)) (sqrt (fma a1 a1 (* a2 a2))))
8.0ms
(/ (* (* (cos th) (hypot a1 a2)) (sqrt (fma a1 a1 (* a2 a2)))) (sqrt 2.0))
2.0ms
(sqrt (fma a1 a1 (* a2 a2)))

series616.0ms

Counts
4 → 12
Calls
4 calls:
102.0ms
(* (cos th) (hypot a1 a2))
179.0ms
(* (* (cos th) (hypot a1 a2)) (sqrt (fma a1 a1 (* a2 a2))))
287.0ms
(/ (* (* (cos th) (hypot a1 a2)) (sqrt (fma a1 a1 (* a2 a2)))) (sqrt 2.0))
48.0ms
(sqrt (fma a1 a1 (* a2 a2)))

simplify49.0ms

Algorithm
egg-herbie
Counts
102 → 102
Iterations

Useful iterations: 2 (41.0ms)

IterNodesCost
0305785
11700625
25001573

prune248.0ms

Filtered
102 candidates to 72 candidates (70.6%)
Pruning

6 alts after pruning (5 fresh and 1 done)

PrunedKeptTotal
New1002102
Fresh538
Picked011
Done000
Total1056111

Merged error: 0b

Counts
111 → 6

localize10.0ms

Local error

Found 4 expressions with local error:

0.0b
(hypot a1 a2)
0.1b
(* (cos th) (hypot a1 a2))
0.2b
(/ (* (cos th) (hypot a1 a2)) (/ (sqrt 2.0) (hypot a1 a2)))
0.4b
(/ (sqrt 2.0) (hypot a1 a2))

rewrite22.0ms

Algorithm
rewrite-expression-head
Rules
76×times-frac
49×add-sqr-sqrt
47×add-cube-cbrt *-un-lft-identity
30×sqrt-prod
25×associate-/r*
20×add-exp-log add-cbrt-cube
cbrt-undiv div-exp associate-/l*
pow1
expm1-log1p-u log1p-expm1-u div-inv add-log-exp
associate-*r* associate-*l* prod-exp cbrt-unprod
hypot-udef frac-2neg clear-num
sqrt-undiv pow-prod-down associate-/r/ *-commutative unswap-sqr
Counts
4 → 138
Calls
4 calls:
1.0ms
(hypot a1 a2)
4.0ms
(* (cos th) (hypot a1 a2))
8.0ms
(/ (* (cos th) (hypot a1 a2)) (/ (sqrt 2.0) (hypot a1 a2)))
4.0ms
(/ (sqrt 2.0) (hypot a1 a2))

series485.0ms

Counts
4 → 12
Calls
4 calls:
51.0ms
(hypot a1 a2)
107.0ms
(* (cos th) (hypot a1 a2))
242.0ms
(/ (* (cos th) (hypot a1 a2)) (/ (sqrt 2.0) (hypot a1 a2)))
84.0ms
(/ (sqrt 2.0) (hypot a1 a2))

simplify61.0ms

Algorithm
egg-herbie
Counts
150 → 150
Iterations

Useful iterations: 2 (49.0ms)

IterNodesCost
04241147
120381048
250021031

prune327.0ms

Filtered
150 candidates to 107 candidates (71.3%)
Pruning

6 alts after pruning (4 fresh and 2 done)

PrunedKeptTotal
New1491150
Fresh134
Picked011
Done011
Total1506156

Merged error: 0b

Counts
156 → 6

localize10.0ms

Local error

Found 4 expressions with local error:

0.0b
(hypot a1 a2)
0.1b
(* (cos th) (/ (hypot a1 a2) (/ (sqrt 2.0) (hypot a1 a2))))
0.2b
(/ (hypot a1 a2) (/ (sqrt 2.0) (hypot a1 a2)))
0.4b
(/ (sqrt 2.0) (hypot a1 a2))

rewrite50.0ms

Algorithm
rewrite-expression-head
Rules
281×times-frac
170×add-sqr-sqrt
157×add-cube-cbrt *-un-lft-identity
76×sqrt-prod
71×associate-*r*
25×associate-/r*
20×add-exp-log add-cbrt-cube
10×div-inv
associate-/l*
cbrt-undiv div-exp
pow1
expm1-log1p-u hypot-udef log1p-expm1-u add-log-exp unswap-sqr
sqrt-undiv associate-*l* prod-exp cbrt-unprod
frac-2neg clear-num associate-/r/
associate-*r/ pow-prod-down *-commutative
Counts
4 → 257
Calls
4 calls:
1.0ms
(hypot a1 a2)
24.0ms
(* (cos th) (/ (hypot a1 a2) (/ (sqrt 2.0) (hypot a1 a2))))
8.0ms
(/ (hypot a1 a2) (/ (sqrt 2.0) (hypot a1 a2)))
4.0ms
(/ (sqrt 2.0) (hypot a1 a2))

series506.0ms

Counts
4 → 12
Calls
4 calls:
45.0ms
(hypot a1 a2)
246.0ms
(* (cos th) (/ (hypot a1 a2) (/ (sqrt 2.0) (hypot a1 a2))))
126.0ms
(/ (hypot a1 a2) (/ (sqrt 2.0) (hypot a1 a2)))
88.0ms
(/ (sqrt 2.0) (hypot a1 a2))

simplify113.0ms

Algorithm
egg-herbie
Counts
269 → 269
Iterations

Useful iterations: 2 (83.0ms)

IterNodesCost
07282584
139832366
250022361

prune525.0ms

Filtered
269 candidates to 176 candidates (65.4%)
Pruning

6 alts after pruning (3 fresh and 3 done)

PrunedKeptTotal
New2690269
Fresh033
Picked011
Done022
Total2696275

Merged error: 0b

Counts
275 → 6

regimes157.0ms

Accuracy

0% (0.4b remaining)

Error of 0.5b against oracle of 0.0b and baseline of 0.5b

bsearch0.0ms

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0117
1117

end0.0ms

sample2.6s

Algorithm
intervals
Results
952.0ms2465×body1280valid
534.0ms2077×body640valid
483.0ms8047×body80valid
194.0ms1060×body320valid
72.0ms568×body160valid