Details

Time bar (total: 8.8s)

sample82.0ms

Algorithm
intervals
Results
30.0ms94×body1280valid
16.0ms259×body80valid
15.0ms68×body640valid
4.0ms23×body320valid
1.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

prune8.0ms

Pruning

2 alts after pruning (2 fresh and 0 done)

Merged error: 0.6b

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.6b
(/ (* (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))

series389.0ms

Counts
3 → 9
Calls
3 calls:
37.0ms
(fma a1 a1 (* a2 a2))
114.0ms
(* (cos th) (fma a1 a1 (* a2 a2)))
238.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

prune198.0ms

Pruning

7 alts after pruning (7 fresh and 0 done)

Merged error: 0.3b

localize14.0ms

Local error

Found 4 expressions with local error:

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

rewrite33.0ms

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

series1.3s

Counts
4 → 12
Calls
4 calls:
242.0ms
(fma a1 a1 (* a2 a2))
112.0ms
(* (cos th) (fma a1 a1 (* a2 a2)))
228.0ms
(/ (/ (* (cos th) (fma a1 a1 (* a2 a2))) (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0)))) (cbrt (sqrt 2.0)))
696.0ms
(/ (* (cos th) (fma a1 a1 (* a2 a2))) (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0))))

simplify75.0ms

Algorithm
egg-herbie
Counts
149 → 149
Iterations

Useful iterations: 2 (57.0ms)

IterNodesCost
04912250
125351935
250021898

prune435.0ms

Pruning

6 alts after pruning (6 fresh and 0 done)

Merged error: 0.3b

localize21.0ms

Local error

Found 4 expressions with local error:

0.1b
(* (* (cos th) (hypot a1 a2)) (sqrt (fma a1 a1 (* a2 a2))))
0.2b
(/ (/ (* (* (cos th) (hypot a1 a2)) (sqrt (fma a1 a1 (* a2 a2)))) (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0)))) (cbrt (sqrt 2.0)))
0.4b
(/ (* (* (cos th) (hypot a1 a2)) (sqrt (fma a1 a1 (* a2 a2)))) (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0))))
7.0b
(sqrt (fma a1 a1 (* a2 a2)))

rewrite41.0ms

Algorithm
rewrite-expression-head
Rules
59×add-exp-log
56×times-frac
40×add-cbrt-cube
36×cbrt-prod add-sqr-sqrt
35×add-cube-cbrt *-un-lft-identity
24×sqrt-prod
21×prod-exp cbrt-unprod
19×cbrt-undiv div-exp
12×div-inv
10×pow1 associate-/r*
associate-*r* associate-/l*
expm1-log1p-u log1p-expm1-u add-log-exp
pow-prod-down
frac-2neg clear-num
rem-sqrt-square sqrt-pow1 pow1/2 associate-*l* *-commutative fma-udef hypot-def associate-/l/
Counts
4 → 152
Calls
4 calls:
6.0ms
(* (* (cos th) (hypot a1 a2)) (sqrt (fma a1 a1 (* a2 a2))))
15.0ms
(/ (/ (* (* (cos th) (hypot a1 a2)) (sqrt (fma a1 a1 (* a2 a2)))) (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0)))) (cbrt (sqrt 2.0)))
12.0ms
(/ (* (* (cos th) (hypot a1 a2)) (sqrt (fma a1 a1 (* a2 a2)))) (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0))))
2.0ms
(sqrt (fma a1 a1 (* a2 a2)))

series1.3s

Counts
4 → 12
Calls
4 calls:
188.0ms
(* (* (cos th) (hypot a1 a2)) (sqrt (fma a1 a1 (* a2 a2))))
322.0ms
(/ (/ (* (* (cos th) (hypot a1 a2)) (sqrt (fma a1 a1 (* a2 a2)))) (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0)))) (cbrt (sqrt 2.0)))
769.0ms
(/ (* (* (cos th) (hypot a1 a2)) (sqrt (fma a1 a1 (* a2 a2)))) (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0))))
50.0ms
(sqrt (fma a1 a1 (* a2 a2)))

simplify88.0ms

Algorithm
egg-herbie
Counts
164 → 164
Iterations

Useful iterations: 2 (68.0ms)

IterNodesCost
05682920
132202380
250022274

prune498.0ms

Pruning

6 alts after pruning (6 fresh and 0 done)

Merged error: 0b

localize14.0ms

Local error

Found 4 expressions with local error:

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

rewrite40.0ms

Algorithm
rewrite-expression-head
Rules
52×add-exp-log
36×add-cbrt-cube
26×add-sqr-sqrt
25×times-frac
20×add-cube-cbrt *-un-lft-identity
18×cbrt-prod prod-exp cbrt-unprod
16×cbrt-undiv div-exp associate-*l*
10×associate-*r* associate-/r*
sqrt-prod
pow1
expm1-log1p-u log1p-expm1-u div-inv associate-/l* add-log-exp
unswap-sqr
frac-2neg pow-prod-down clear-num *-commutative
frac-times associate-*r/ associate-*l/
Counts
4 → 132
Calls
4 calls:
4.0ms
(* (cos th) (hypot a1 a2))
7.0ms
(/ (hypot a1 a2) (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0))))
9.0ms
(/ (* (cos th) (hypot a1 a2)) (cbrt (sqrt 2.0)))
15.0ms
(* (/ (* (cos th) (hypot a1 a2)) (cbrt (sqrt 2.0))) (/ (hypot a1 a2) (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0)))))

series1.3s

Counts
4 → 12
Calls
4 calls:
109.0ms
(* (cos th) (hypot a1 a2))
423.0ms
(/ (hypot a1 a2) (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0))))
466.0ms
(/ (* (cos th) (hypot a1 a2)) (cbrt (sqrt 2.0)))
258.0ms
(* (/ (* (cos th) (hypot a1 a2)) (cbrt (sqrt 2.0))) (/ (hypot a1 a2) (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0)))))

simplify67.0ms

Algorithm
egg-herbie
Counts
144 → 144
Iterations

Useful iterations: 2 (54.0ms)

IterNodesCost
05021638
124501312
250021192

prune410.0ms

Pruning

6 alts after pruning (5 fresh and 1 done)

Merged error: 0b

regimes177.0ms

Accuracy

0% (0.4b 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
01823
11823

end0.0ms

sample2.3s

Algorithm
intervals
Results
807.0ms2514×body1280valid
479.0ms2107×body640valid
422.0ms8090×body80valid
163.0ms1057×body320valid
62.0ms549×body160valid