Details

Time bar (total: 19.1s)

sample166.0ms

Algorithm
intervals
Results
74.0ms77×body1280valid
27.0ms65×body640valid
26.0ms252×body80valid
7.0ms25×body320valid
2.0ms12×body160valid

simplify233.0ms

Counts
1 → 1
Iterations

Useful iterations: 2 (18.0ms)

IterNodesCost
01219
12613
25712
38712
411412
513212
615112
717312
817512
done17512

prune13.0ms

Pruning

2 alts after pruning (2 fresh and 0 done)

Merged error: 0.3b

localize16.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.4b
(/ (* (cos th) (fma a1 a1 (* a2 a2))) (sqrt 2.0))

rewrite33.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))
11.0ms
(* (cos th) (fma a1 a1 (* a2 a2)))
19.0ms
(/ (* (cos th) (fma a1 a1 (* a2 a2))) (sqrt 2.0))

series488.0ms

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

simplify1.4s

Counts
70 → 70
Iterations

Useful iterations: done (1.3s)

IterNodesCost
0103947
1216911
21322777
done5000775

prune294.0ms

Pruning

7 alts after pruning (7 fresh and 0 done)

Merged error: 0b

localize16.0ms

Local error

Found 4 expressions with local error:

0.0b
(fma a1 a1 (* a2 a2))
0.1b
(* (cos th) (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)))

rewrite95.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:
0.0ms
(fma a1 a1 (* a2 a2))
10.0ms
(* (cos th) (fma a1 a1 (* a2 a2)))
26.0ms
(/ (* (cos th) (fma a1 a1 (* a2 a2))) (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0))))
53.0ms
(/ (/ (* (cos th) (fma a1 a1 (* a2 a2))) (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0)))) (cbrt (sqrt 2.0)))

series1.4s

Counts
4 → 12
Calls
4 calls:
72.0ms
(fma a1 a1 (* a2 a2))
150.0ms
(* (cos th) (fma a1 a1 (* a2 a2)))
884.0ms
(/ (* (cos th) (fma a1 a1 (* a2 a2))) (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0))))
335.0ms
(/ (/ (* (cos th) (fma a1 a1 (* a2 a2))) (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0)))) (cbrt (sqrt 2.0)))

simplify1.8s

Counts
149 → 149
Iterations

Useful iterations: done (1.8s)

IterNodesCost
02153852
15023510
227433078
done50003031

prune739.0ms

Pruning

7 alts after pruning (6 fresh and 1 done)

Merged error: 0b

localize35.0ms

Local error

Found 4 expressions with local error:

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

rewrite119.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:
37.0ms
(* (* (hypot a1 a2) (cos th)) (sqrt (fma a1 a1 (* a2 a2))))
20.0ms
(* (hypot a1 a2) (cos th))
55.0ms
(/ (* (* (hypot a1 a2) (cos th)) (sqrt (fma a1 a1 (* a2 a2)))) (sqrt 2.0))
3.0ms
(sqrt (fma a1 a1 (* a2 a2)))

series938.0ms

Counts
4 → 12
Calls
4 calls:
313.0ms
(* (* (hypot a1 a2) (cos th)) (sqrt (fma a1 a1 (* a2 a2))))
150.0ms
(* (hypot a1 a2) (cos th))
395.0ms
(/ (* (* (hypot a1 a2) (cos th)) (sqrt (fma a1 a1 (* a2 a2)))) (sqrt 2.0))
80.0ms
(sqrt (fma a1 a1 (* a2 a2)))

simplify1.6s

Counts
102 → 102
Iterations

Useful iterations: done (1.6s)

IterNodesCost
01371582
13151450
219771021
done5001965

prune427.0ms

Pruning

7 alts after pruning (5 fresh and 2 done)

Merged error: 0b

localize34.0ms

Local error

Found 4 expressions with local error:

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

rewrite183.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:
24.0ms
(* (hypot a1 a2) (cos th))
38.0ms
(/ (* (hypot a1 a2) (cos th)) (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0))))
10.0ms
(/ (hypot a1 a2) (cbrt (sqrt 2.0)))
98.0ms
(* (/ (* (hypot a1 a2) (cos th)) (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0)))) (/ (hypot a1 a2) (cbrt (sqrt 2.0))))

series1.5s

Counts
4 → 12
Calls
4 calls:
177.0ms
(* (hypot a1 a2) (cos th))
668.0ms
(/ (* (hypot a1 a2) (cos th)) (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0))))
399.0ms
(/ (hypot a1 a2) (cbrt (sqrt 2.0)))
289.0ms
(* (/ (* (hypot a1 a2) (cos th)) (* (cbrt (sqrt 2.0)) (cbrt (sqrt 2.0)))) (/ (hypot a1 a2) (cbrt (sqrt 2.0))))

simplify565.0ms

Counts
182 → 182
Iterations

Useful iterations: done (557.0ms)

IterNodesCost
02403751
16683557
done50002925

prune791.0ms

Pruning

7 alts after pruning (4 fresh and 3 done)

Merged error: 0b

regimes288.0ms

Accuracy

0% (0.5b remaining)

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

bsearch0.0ms

simplify3.0ms

Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01321
11421
done1421

end0.0ms

sample5.9s

Algorithm
intervals
Results
2.5s2519×body1280valid
1.1s7835×body80valid
992.0ms2110×body640valid
455.0ms1010×body320valid
104.0ms527×body160valid