Details

Time bar (total: 7.5s)

sample90.0ms

Algorithm
intervals
Results
31.0ms88×body1280valid
16.0ms77×body640valid
13.0ms263×body80valid
6.0ms39×body320valid
2.0ms17×body160valid

simplify19.0ms

Counts
1 → 1
Iterations

Useful iterations: 1 (3.0ms)

IterNodesCost
0267
1576
2876
31146
41326
51516
61716
71736
81736
done1736

prune8.0ms

Pruning

2 alts after pruning (2 fresh and 0 done)

Merged error: 0.3b

localize10.0ms

Local error

Found 2 expressions with local error:

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
10×add-sqr-sqrt
add-exp-log add-cbrt-cube
add-cube-cbrt *-un-lft-identity
times-frac associate-/r* sqrt-prod
pow1
associate-*r* associate-*l*
cbrt-undiv expm1-log1p-u div-exp prod-exp cbrt-unprod fma-udef log1p-expm1-u add-log-exp
distribute-rgt-in frac-2neg distribute-lft-in pow-prod-down clear-num *-commutative div-inv associate-/l* unswap-sqr
Counts
2 → 51
Calls
2 calls:
9.0ms
(* (cos th) (fma a1 a1 (* a2 a2)))
12.0ms
(/ (* (cos th) (fma a1 a1 (* a2 a2))) (sqrt 2.0))

series350.0ms

Counts
2 → 6
Calls
2 calls:
116.0ms
(* (cos th) (fma a1 a1 (* a2 a2)))
234.0ms
(/ (* (cos th) (fma a1 a1 (* a2 a2))) (sqrt 2.0))

simplify33.0ms

Counts
57 → 57
Iterations

Useful iterations: 2 (28.0ms)

IterNodesCost
0202424
1995365
25001359
done5001359

prune155.0ms

Pruning

10 alts after pruning (10 fresh and 0 done)

Merged error: 0.0b

localize18.0ms

Local error

Found 4 expressions with local error:

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

rewrite62.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:
25.0ms
(* (* (cos th) (hypot a1 a2)) (sqrt (fma a1 a1 (* a2 a2))))
9.0ms
(* (cos th) (hypot a1 a2))
25.0ms
(/ (* (* (cos th) (hypot a1 a2)) (sqrt (fma a1 a1 (* a2 a2)))) (sqrt 2.0))
2.0ms
(sqrt (fma a1 a1 (* a2 a2)))

series658.0ms

Counts
4 → 12
Calls
4 calls:
195.0ms
(* (* (cos th) (hypot a1 a2)) (sqrt (fma a1 a1 (* a2 a2))))
112.0ms
(* (cos th) (hypot a1 a2))
306.0ms
(/ (* (* (cos th) (hypot a1 a2)) (sqrt (fma a1 a1 (* a2 a2)))) (sqrt 2.0))
45.0ms
(sqrt (fma a1 a1 (* a2 a2)))

simplify48.0ms

Counts
102 → 102
Iterations

Useful iterations: 2 (40.0ms)

IterNodesCost
0305785
11700625
25001573
done5001573

prune282.0ms

Pruning

6 alts after pruning (6 fresh and 0 done)

Merged error: 0b

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

rewrite102.0ms

Algorithm
rewrite-expression-head
Rules
61×add-exp-log add-sqr-sqrt
59×times-frac
48×add-cube-cbrt *-un-lft-identity
44×cbrt-prod
43×add-cbrt-cube
34×associate-*r*
23×prod-exp cbrt-unprod
22×sqrt-prod
18×cbrt-undiv div-exp
10×associate-/r*
pow1 associate-*l*
unswap-sqr
expm1-log1p-u log1p-expm1-u div-inv associate-/l* add-log-exp
frac-2neg pow-prod-down clear-num *-commutative
frac-times associate-*r/ associate-*l/
Counts
4 → 170
Calls
4 calls:
8.0ms
(* (cos th) (hypot a1 a2))
7.0ms
(/ (hypot a1 a2) (cbrt (sqrt 2.0)))
17.0ms
(/ (* (cos th) (hypot a1 a2)) (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0))))
63.0ms
(* (/ (* (cos th) (hypot a1 a2)) (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0)))) (/ (hypot a1 a2) (cbrt (sqrt 2.0))))

series1.2s

Counts
4 → 12
Calls
4 calls:
114.0ms
(* (cos th) (hypot a1 a2))
291.0ms
(/ (hypot a1 a2) (cbrt (sqrt 2.0)))
589.0ms
(/ (* (cos th) (hypot a1 a2)) (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0))))
255.0ms
(* (/ (* (cos th) (hypot a1 a2)) (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0)))) (/ (hypot a1 a2) (cbrt (sqrt 2.0))))

simplify106.0ms

Counts
182 → 182
Iterations

Useful iterations: 2 (90.0ms)

IterNodesCost
06362325
137671967
250011857
done50011857

prune514.0ms

Pruning

6 alts after pruning (5 fresh and 1 done)

Merged error: 0b

localize16.0ms

Local error

Found 4 expressions with local error:

0.1b
(* (pow (* (cos th) (hypot a1 a2)) 1) (sqrt (fma a1 a1 (* a2 a2))))
0.1b
(* (cos th) (hypot a1 a2))
0.3b
(/ (* (pow (* (cos th) (hypot a1 a2)) 1) (sqrt (fma a1 a1 (* a2 a2)))) (sqrt 2.0))
7.0b
(sqrt (fma a1 a1 (* a2 a2)))

rewrite51.0ms

Algorithm
rewrite-expression-head
Rules
28×add-exp-log
23×add-sqr-sqrt
14×add-cube-cbrt *-un-lft-identity sqrt-prod
13×add-cbrt-cube
11×prod-exp
associate-*r*
pow1 associate-*l*
times-frac associate-/r*
div-exp unswap-sqr
expm1-log1p-u pow-exp log1p-expm1-u add-log-exp
cbrt-unprod sqr-pow
cbrt-undiv pow-to-exp pow-prod-down *-commutative
unpow-prod-down rem-sqrt-square frac-2neg sqrt-pow1 pow1/2 clear-num fma-udef hypot-def div-inv associate-/l*
Counts
4 → 99
Calls
4 calls:
21.0ms
(* (pow (* (cos th) (hypot a1 a2)) 1) (sqrt (fma a1 a1 (* a2 a2))))
9.0ms
(* (cos th) (hypot a1 a2))
17.0ms
(/ (* (pow (* (cos th) (hypot a1 a2)) 1) (sqrt (fma a1 a1 (* a2 a2)))) (sqrt 2.0))
2.0ms
(sqrt (fma a1 a1 (* a2 a2)))

series651.0ms

Counts
4 → 12
Calls
4 calls:
195.0ms
(* (pow (* (cos th) (hypot a1 a2)) 1) (sqrt (fma a1 a1 (* a2 a2))))
110.0ms
(* (cos th) (hypot a1 a2))
300.0ms
(/ (* (pow (* (cos th) (hypot a1 a2)) 1) (sqrt (fma a1 a1 (* a2 a2)))) (sqrt 2.0))
46.0ms
(sqrt (fma a1 a1 (* a2 a2)))

simplify53.0ms

Counts
111 → 111
Iterations

Useful iterations: 2 (44.0ms)

IterNodesCost
0310909
11542735
25001671
done5001671

prune313.0ms

Pruning

6 alts after pruning (4 fresh and 2 done)

Merged error: 0b

regimes122.0ms

Accuracy

0% (0.4b remaining)

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

bsearch0.0ms

simplify1.0ms

Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01514
11514
done1514

end0.0ms

sample2.6s

Algorithm
intervals
Results
813.0ms2550×body1280valid
438.0ms2099×body640valid
408.0ms8227×body80valid
372.0ms1059×body320valid
51.0ms494×body160valid