Details

Time bar (total: 25.2s)

sample161.0ms

Algorithm
intervals
Results
54.0ms82×body1280valid
35.0ms74×body640valid
28.0ms268×body80valid
13.0ms39×body320valid
4.0ms16×body160valid

simplify337.0ms

Counts
1 → 1
Iterations

Useful iterations: 2 (17.0ms)

IterNodesCost
01219
12613
25712
38712
411412
513212
615012
717012
817212
done17212

prune10.0ms

Pruning

2 alts after pruning (2 fresh and 0 done)

Merged error: 0.6b

localize17.0ms

Local error

Found 3 expressions with local error:

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

rewrite38.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))
16.0ms
(* (cos th) (fma a1 a1 (* a2 a2)))
18.0ms
(/ (* (cos th) (fma a1 a1 (* a2 a2))) (sqrt 2.0))

series561.0ms

Counts
3 → 9
Calls
3 calls:
68.0ms
(fma a1 a1 (* a2 a2))
147.0ms
(* (cos th) (fma a1 a1 (* a2 a2)))
345.0ms
(/ (* (cos th) (fma a1 a1 (* a2 a2))) (sqrt 2.0))

simplify3.5s

Counts
70 → 70
Iterations

Useful iterations: done (3.5s)

IterNodesCost
0103947
1201911
2750777
33465759
done5000758

prune310.0ms

Pruning

9 alts after pruning (8 fresh and 1 done)

Merged error: 0.3b

localize31.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))) (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0))))
0.3b
(/ (/ (* (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)))

rewrite107.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))
38.0ms
(/ (* (cos th) (fma a1 a1 (* a2 a2))) (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0))))
38.0ms
(/ (/ (* (cos th) (fma a1 a1 (* a2 a2))) (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0)))) (cbrt (sqrt 2.0)))
16.0ms
(* (cos th) (fma a1 a1 (* a2 a2)))

series1.7s

Counts
4 → 12
Calls
4 calls:
52.0ms
(fma a1 a1 (* a2 a2))
1.0s
(/ (* (cos th) (fma a1 a1 (* a2 a2))) (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0))))
354.0ms
(/ (/ (* (cos th) (fma a1 a1 (* a2 a2))) (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0)))) (cbrt (sqrt 2.0)))
206.0ms
(* (cos th) (fma a1 a1 (* a2 a2)))

simplify1.2s

Counts
149 → 149
Iterations

Useful iterations: done (1.2s)

IterNodesCost
02153852
14733514
217653026
done50003009

prune584.0ms

Pruning

8 alts after pruning (7 fresh and 1 done)

Merged error: 0.3b

localize34.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))))
0.3b
(/ (/ (* (* (cos th) (hypot a1 a2)) (sqrt (fma a1 a1 (* a2 a2)))) (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0)))) (cbrt (sqrt 2.0)))
7.3b
(sqrt (fma a1 a1 (* a2 a2)))

rewrite138.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:
25.0ms
(* (* (cos th) (hypot a1 a2)) (sqrt (fma a1 a1 (* a2 a2))))
46.0ms
(/ (* (* (cos th) (hypot a1 a2)) (sqrt (fma a1 a1 (* a2 a2)))) (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0))))
54.0ms
(/ (/ (* (* (cos th) (hypot a1 a2)) (sqrt (fma a1 a1 (* a2 a2)))) (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0)))) (cbrt (sqrt 2.0)))
3.0ms
(sqrt (fma a1 a1 (* a2 a2)))

series1.9s

Counts
4 → 12
Calls
4 calls:
292.0ms
(* (* (cos th) (hypot a1 a2)) (sqrt (fma a1 a1 (* a2 a2))))
1.1s
(/ (* (* (cos th) (hypot a1 a2)) (sqrt (fma a1 a1 (* a2 a2)))) (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0))))
460.0ms
(/ (/ (* (* (cos th) (hypot a1 a2)) (sqrt (fma a1 a1 (* a2 a2)))) (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0)))) (cbrt (sqrt 2.0)))
88.0ms
(sqrt (fma a1 a1 (* a2 a2)))

simplify1.4s

Counts
164 → 164
Iterations

Useful iterations: done (1.4s)

IterNodesCost
02365165
15414599
221693146
done50013123

prune671.0ms

Pruning

7 alts after pruning (6 fresh and 1 done)

Merged error: 0b

localize17.0ms

Local error

Found 4 expressions with local error:

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

rewrite139.0ms

Algorithm
rewrite-expression-head
Rules
224×times-frac
83×add-sqr-sqrt
81×add-cube-cbrt *-un-lft-identity
78×cbrt-prod
61×add-exp-log
44×add-cbrt-cube
39×sqrt-prod
29×cbrt-undiv div-exp
25×div-inv
19×associate-/r*
14×associate-/l*
12×prod-exp cbrt-unprod
11×associate-/r/
pow1
expm1-log1p-u log1p-expm1-u add-log-exp
frac-2neg associate-*r* associate-*l* clear-num
pow-prod-down *-commutative associate-/l/ unswap-sqr
Counts
4 → 239
Calls
4 calls:
18.0ms
(* (cos th) (hypot a1 a2))
19.0ms
(/ (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0))) (hypot a1 a2))
25.0ms
(/ (* (cos th) (hypot a1 a2)) (/ (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0))) (hypot a1 a2)))
53.0ms
(/ (/ (* (cos th) (hypot a1 a2)) (/ (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0))) (hypot a1 a2))) (cbrt (sqrt 2.0)))

series2.2s

Counts
4 → 12
Calls
4 calls:
136.0ms
(* (cos th) (hypot a1 a2))
466.0ms
(/ (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0))) (hypot a1 a2))
1.2s
(/ (* (cos th) (hypot a1 a2)) (/ (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0))) (hypot a1 a2)))
394.0ms
(/ (/ (* (cos th) (hypot a1 a2)) (/ (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0))) (hypot a1 a2))) (cbrt (sqrt 2.0)))

simplify2.3s

Counts
251 → 251
Iterations

Useful iterations: done (2.3s)

IterNodesCost
03567160
18546864
231126090
done50015891

prune1.1s

Pruning

6 alts after pruning (5 fresh and 1 done)

Merged error: 0b

regimes334.0ms

Accuracy

0% (0.4b remaining)

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

bsearch0.0ms

simplify6.0ms

Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01633
11833
done1833

end0.0ms

sample6.4s

Algorithm
intervals
Results
2.3s2498×body1280valid
1.7s1995×body640valid
1.0s8073×body80valid
535.0ms1075×body320valid
179.0ms529×body160valid