Details

Time bar (total: 6.0s)

sample79.0ms

Algorithm
intervals
Results
26.0ms73×body1280valid
15.0ms76×body640valid
12.0ms251×body80valid
4.0ms28×body320valid
3.0ms28×body160valid

simplify20.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 1 (3.0ms)

IterNodesCost
0267
1576
2876
31146
41326
51516
61716
71736
81736

prune7.0ms

Pruning

2 alts after pruning (2 fresh and 0 done)

Merged error: 0.3b

localize10.0ms

Local error

Found 3 expressions with local error:

0.0b
(fma a1 a1 (* a2 a2))
0.1b
(* (cos th) (fma a1 a1 (* a2 a2)))
0.3b
(/ (* (cos th) (fma a1 a1 (* a2 a2))) (sqrt 2.0))

rewrite23.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:
0.0ms
(fma a1 a1 (* a2 a2))
9.0ms
(* (cos th) (fma a1 a1 (* a2 a2)))
13.0ms
(/ (* (cos th) (fma a1 a1 (* a2 a2))) (sqrt 2.0))

series343.0ms

Counts
3 → 9
Calls
3 calls:
32.0ms
(fma a1 a1 (* a2 a2))
109.0ms
(* (cos th) (fma a1 a1 (* a2 a2)))
202.0ms
(/ (* (cos th) (fma a1 a1 (* a2 a2))) (sqrt 2.0))

simplify34.0ms

Algorithm
egg-herbie
Counts
70 → 70
Iterations

Useful iterations: 2 (28.0ms)

IterNodesCost
0205467
11002399
25001393

prune185.0ms

Pruning

7 alts after pruning (7 fresh and 0 done)

Merged error: 0.0b

localize13.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.3b
(/ (* (* (cos th) (hypot a1 a2)) (sqrt (fma a1 a1 (* a2 a2)))) (sqrt 2.0))
4.4b
(sqrt (fma a1 a1 (* a2 a2)))

rewrite63.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:
8.0ms
(* (cos th) (hypot a1 a2))
23.0ms
(* (* (cos th) (hypot a1 a2)) (sqrt (fma a1 a1 (* a2 a2))))
28.0ms
(/ (* (* (cos th) (hypot a1 a2)) (sqrt (fma a1 a1 (* a2 a2)))) (sqrt 2.0))
2.0ms
(sqrt (fma a1 a1 (* a2 a2)))

series593.0ms

Counts
4 → 12
Calls
4 calls:
98.0ms
(* (cos th) (hypot a1 a2))
173.0ms
(* (* (cos th) (hypot a1 a2)) (sqrt (fma a1 a1 (* a2 a2))))
277.0ms
(/ (* (* (cos th) (hypot a1 a2)) (sqrt (fma a1 a1 (* a2 a2)))) (sqrt 2.0))
44.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

prune288.0ms

Pruning

7 alts after pruning (7 fresh and 0 done)

Merged error: 0b

localize9.0ms

Local error

Found 3 expressions with local error:

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

rewrite48.0ms

Algorithm
rewrite-expression-head
Rules
36×times-frac
35×add-sqr-sqrt
33×add-cube-cbrt *-un-lft-identity
25×associate-*r*
21×sqrt-prod
19×add-exp-log add-cbrt-cube
10×pow1
prod-exp cbrt-unprod
associate-/r*
associate-*l* pow-prod-down
cbrt-undiv expm1-log1p-u div-exp log1p-expm1-u associate-/l* add-log-exp
*-commutative div-inv
sqrt-undiv hypot-udef frac-2neg associate-*r/ clear-num unswap-sqr
Counts
3 → 106
Calls
3 calls:
9.0ms
(* (cos th) (hypot a1 a2))
29.0ms
(* (* (cos th) (hypot a1 a2)) (/ (hypot a1 a2) (sqrt 2.0)))
7.0ms
(/ (hypot a1 a2) (sqrt 2.0))

series426.0ms

Counts
3 → 9
Calls
3 calls:
97.0ms
(* (cos th) (hypot a1 a2))
224.0ms
(* (* (cos th) (hypot a1 a2)) (/ (hypot a1 a2) (sqrt 2.0)))
104.0ms
(/ (hypot a1 a2) (sqrt 2.0))

simplify56.0ms

Algorithm
egg-herbie
Counts
115 → 115
Iterations

Useful iterations: 2 (47.0ms)

IterNodesCost
0358850
12005753
25001735

prune274.0ms

Pruning

7 alts after pruning (6 fresh and 1 done)

Merged error: 0b

localize12.0ms

Local error

Found 4 expressions with local error:

0.0b
(+ (* a1 a1) (* a2 a2))
0.1b
(* (cos th) (hypot a1 a2))
0.3b
(* (* (cos th) (hypot a1 a2)) (sqrt (/ (+ (* a1 a1) (* a2 a2)) 2.0)))
4.6b
(sqrt (/ (+ (* a1 a1) (* a2 a2)) 2.0))

rewrite68.0ms

Algorithm
rewrite-expression-head
Rules
26×add-sqr-sqrt sqrt-prod
21×add-cube-cbrt *-un-lft-identity
19×times-frac associate-*r*
12×pow1
11×add-exp-log add-cbrt-cube
add-log-exp
expm1-log1p-u associate-*l* pow-prod-down prod-exp cbrt-unprod log1p-expm1-u
rem-sqrt-square sqrt-div *-commutative div-inv
+-commutative fma-def sqrt-pow1 flip3-+ pow1/2 associate-*r/ sum-log flip-+ unswap-sqr
Counts
4 → 95
Calls
4 calls:
8.0ms
(+ (* a1 a1) (* a2 a2))
9.0ms
(* (cos th) (hypot a1 a2))
39.0ms
(* (* (cos th) (hypot a1 a2)) (sqrt (/ (+ (* a1 a1) (* a2 a2)) 2.0)))
9.0ms
(sqrt (/ (+ (* a1 a1) (* a2 a2)) 2.0))

series428.0ms

Counts
4 → 12
Calls
4 calls:
30.0ms
(+ (* a1 a1) (* a2 a2))
96.0ms
(* (cos th) (hypot a1 a2))
234.0ms
(* (* (cos th) (hypot a1 a2)) (sqrt (/ (+ (* a1 a1) (* a2 a2)) 2.0)))
68.0ms
(sqrt (/ (+ (* a1 a1) (* a2 a2)) 2.0))

simplify48.0ms

Algorithm
egg-herbie
Counts
107 → 107
Iterations

Useful iterations: 2 (40.0ms)

IterNodesCost
0381803
11791697
25001688

prune294.0ms

Pruning

6 alts after pruning (4 fresh and 2 done)

Merged error: 0b

regimes151.0ms

Accuracy

0% (0.3b remaining)

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

bsearch0.0ms

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0169
1169

end0.0ms

sample2.5s

Algorithm
intervals
Results
993.0ms2511×body1280valid
455.0ms2182×body640valid
381.0ms7971×body80valid
164.0ms1046×body320valid
62.0ms589×body160valid