Details

Time bar (total: 28.1s)

sample123.0ms

Algorithm
intervals
Results
44.0ms85×body1280valid
21.0ms260×body80valid
20.0ms54×body640valid
8.0ms30×body320valid
2.0ms15×body160valid

simplify160.0ms

Counts
1 → 1
Iterations

Useful iterations: 1 (5.0ms)

IterNodesCost
01219
12513
24913
37613
49513
511113
612613
714213
done14213

prune10.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 0.8b

localize20.0ms

Local error

Found 3 expressions with local error:

0.0b
(+ (* a1 a1) (* a2 a2))
0.6b
(* (/ (cos th) (sqrt 2.0)) (+ (* a1 a1) (* a2 a2)))
0.8b
(/ (cos th) (sqrt 2.0))

rewrite90.0ms

Algorithm
rewrite-expression-head
Rules
40×add-sqr-sqrt
38×times-frac
32×add-cube-cbrt *-un-lft-identity
22×associate-*l* sqrt-prod
10×add-exp-log add-cbrt-cube
associate-/r*
pow1 add-log-exp
flip3-+ associate-*r* flip-+ associate-/l* unswap-sqr
cbrt-undiv frac-times associate-*r/ div-exp prod-exp cbrt-unprod div-inv
+-commutative distribute-rgt-in frac-2neg distribute-lft-in pow-prod-down associate-*l/ clear-num sum-log *-commutative
Counts
3 → 98
Calls
3 calls:
8.0ms
(+ (* a1 a1) (* a2 a2))
59.0ms
(* (/ (cos th) (sqrt 2.0)) (+ (* a1 a1) (* a2 a2)))
19.0ms
(/ (cos th) (sqrt 2.0))

series403.0ms

Counts
3 → 9
Calls
3 calls:
35.0ms
(+ (* a1 a1) (* a2 a2))
300.0ms
(* (/ (cos th) (sqrt 2.0)) (+ (* a1 a1) (* a2 a2)))
68.0ms
(/ (cos th) (sqrt 2.0))

simplify2.0s

Counts
107 → 107
Iterations

Useful iterations: done (2.0s)

IterNodesCost
01581536
15331481
231601327
done50001322

prune455.0ms

Pruning

10 alts after pruning (10 fresh and 0 done)

Merged error: 0.3b

localize16.0ms

Local error

Found 4 expressions with local error:

0.0b
(+ (* a1 a1) (* a2 a2))
0.6b
(* (/ (/ (cos th) (sqrt (sqrt 2.0))) (sqrt (sqrt 2.0))) (+ (* a1 a1) (* a2 a2)))
0.7b
(/ (/ (cos th) (sqrt (sqrt 2.0))) (sqrt (sqrt 2.0)))
0.7b
(/ (cos th) (sqrt (sqrt 2.0)))

rewrite365.0ms

Algorithm
rewrite-expression-head
Rules
1137×sqrt-prod
1119×times-frac
625×add-sqr-sqrt
578×add-cube-cbrt *-un-lft-identity
283×associate-*l*
34×associate-/l*
22×div-inv
20×add-exp-log add-cbrt-cube
18×associate-/r*
13×unswap-sqr
cbrt-undiv div-exp
pow1 add-log-exp
flip3-+ associate-*r* prod-exp cbrt-unprod flip-+
frac-times frac-2neg associate-*r/ clear-num
+-commutative distribute-rgt-in distribute-lft-in pow-prod-down associate-*l/ sum-log *-commutative associate-/l/
Counts
4 → 717
Calls
4 calls:
10.0ms
(+ (* a1 a1) (* a2 a2))
190.0ms
(* (/ (/ (cos th) (sqrt (sqrt 2.0))) (sqrt (sqrt 2.0))) (+ (* a1 a1) (* a2 a2)))
41.0ms
(/ (/ (cos th) (sqrt (sqrt 2.0))) (sqrt (sqrt 2.0)))
18.0ms
(/ (cos th) (sqrt (sqrt 2.0)))

series522.0ms

Counts
4 → 12
Calls
4 calls:
36.0ms
(+ (* a1 a1) (* a2 a2))
279.0ms
(* (/ (/ (cos th) (sqrt (sqrt 2.0))) (sqrt (sqrt 2.0))) (+ (* a1 a1) (* a2 a2)))
74.0ms
(/ (/ (cos th) (sqrt (sqrt 2.0))) (sqrt (sqrt 2.0)))
132.0ms
(/ (cos th) (sqrt (sqrt 2.0)))

simplify1.0s

Counts
729 → 729
Iterations

Useful iterations: done (1.0s)

IterNodesCost
055315882
1205214258
done500013378

prune2.6s

Pruning

6 alts after pruning (6 fresh and 0 done)

Merged error: 0.3b

localize48.0ms

Local error

Found 4 expressions with local error:

0.2b
(* (/ (cos th) (fabs (cbrt (sqrt 2.0)))) (/ (/ 1 (sqrt (sqrt 2.0))) (sqrt (cbrt (sqrt 2.0)))))
0.6b
(* (* (/ (cos th) (fabs (cbrt (sqrt 2.0)))) (/ (/ 1 (sqrt (sqrt 2.0))) (sqrt (cbrt (sqrt 2.0))))) (+ (* a1 a1) (* a2 a2)))
1.0b
(/ (/ 1 (sqrt (sqrt 2.0))) (sqrt (cbrt (sqrt 2.0))))
1.0b
(/ 1 (sqrt (sqrt 2.0)))

rewrite815.0ms

Algorithm
rewrite-expression-head
Rules
1588×times-frac
1571×sqrt-prod
987×add-sqr-sqrt
786×*-un-lft-identity
762×add-cube-cbrt
406×cbrt-prod
379×associate-*r*
99×add-exp-log
61×add-cbrt-cube
58×unswap-sqr
42×div-exp
34×associate-/l*
31×prod-exp
29×div-inv
22×cbrt-undiv
21×associate-/r*
19×cbrt-unprod
15×pow1
14×associate-*l*
10×frac-times
pow-flip sqrt-pow1 associate-*l/
rec-exp 1-exp associate-*r/
flip3-+ pow-prod-down flip-+ add-log-exp
pow1/2
frac-2neg pow1/3 clear-num *-commutative pow-div
distribute-rgt-in distribute-lft-in associate-/l/ inv-pow
Counts
4 → 1013
Calls
4 calls:
240.0ms
(* (/ (cos th) (fabs (cbrt (sqrt 2.0)))) (/ (/ 1 (sqrt (sqrt 2.0))) (sqrt (cbrt (sqrt 2.0)))))
274.0ms
(* (* (/ (cos th) (fabs (cbrt (sqrt 2.0)))) (/ (/ 1 (sqrt (sqrt 2.0))) (sqrt (cbrt (sqrt 2.0))))) (+ (* a1 a1) (* a2 a2)))
55.0ms
(/ (/ 1 (sqrt (sqrt 2.0))) (sqrt (cbrt (sqrt 2.0))))
19.0ms
(/ 1 (sqrt (sqrt 2.0)))

series2.0s

Counts
4 → 8
Calls
4 calls:
679.0ms
(* (/ (cos th) (fabs (cbrt (sqrt 2.0)))) (/ (/ 1 (sqrt (sqrt 2.0))) (sqrt (cbrt (sqrt 2.0)))))
1.4s
(* (* (/ (cos th) (fabs (cbrt (sqrt 2.0)))) (/ (/ 1 (sqrt (sqrt 2.0))) (sqrt (cbrt (sqrt 2.0))))) (+ (* a1 a1) (* a2 a2)))
0.0ms
(/ (/ 1 (sqrt (sqrt 2.0))) (sqrt (cbrt (sqrt 2.0))))
0.0ms
(/ 1 (sqrt (sqrt 2.0)))

simplify2.8s

Counts
1021 → 1021
Iterations

Useful iterations: done (2.7s)

IterNodesCost
092025355
1336120832
done500019933

prune2.8s

Pruning

6 alts after pruning (5 fresh and 1 done)

Merged error: 0.3b

localize48.0ms

Local error

Found 4 expressions with local error:

0.2b
(/ (* (pow a1 2) (cos th)) (fabs (cbrt (sqrt 2.0))))
0.2b
(/ (* (cos th) (pow a2 2)) (fabs (cbrt (sqrt 2.0))))
0.3b
(* (pow a1 2) (cos th))
0.4b
(* (cbrt (/ 1 2.0)) (+ (/ (* (pow a1 2) (cos th)) (fabs (cbrt (sqrt 2.0)))) (/ (* (cos th) (pow a2 2)) (fabs (cbrt (sqrt 2.0))))))

rewrite187.0ms

Algorithm
rewrite-expression-head
Rules
35×add-sqr-sqrt
31×add-exp-log
24×associate-*l*
23×*-un-lft-identity
20×add-cube-cbrt
17×times-frac add-cbrt-cube
16×cbrt-prod
10×prod-exp
div-exp associate-*r* unswap-sqr
pow1 associate-/r*
div-inv
cbrt-undiv unpow-prod-down cbrt-div cbrt-unprod add-log-exp
frac-times pow-to-exp associate-*r/ pow-exp
frac-2neg flip3-+ frac-add clear-num *-commutative flip-+ associate-/l* unpow2 sqr-pow
distribute-rgt-in distribute-rgt-out distribute-lft-in pow-prod-down associate-*l/ distribute-lft-out
Counts
4 → 118
Calls
4 calls:
27.0ms
(/ (* (pow a1 2) (cos th)) (fabs (cbrt (sqrt 2.0))))
23.0ms
(/ (* (cos th) (pow a2 2)) (fabs (cbrt (sqrt 2.0))))
15.0ms
(* (pow a1 2) (cos th))
113.0ms
(* (cbrt (/ 1 2.0)) (+ (/ (* (pow a1 2) (cos th)) (fabs (cbrt (sqrt 2.0)))) (/ (* (cos th) (pow a2 2)) (fabs (cbrt (sqrt 2.0))))))

series1.4s

Counts
4 → 12
Calls
4 calls:
244.0ms
(/ (* (pow a1 2) (cos th)) (fabs (cbrt (sqrt 2.0))))
295.0ms
(/ (* (cos th) (pow a2 2)) (fabs (cbrt (sqrt 2.0))))
64.0ms
(* (pow a1 2) (cos th))
766.0ms
(* (cbrt (/ 1 2.0)) (+ (/ (* (pow a1 2) (cos th)) (fabs (cbrt (sqrt 2.0)))) (/ (* (cos th) (pow a2 2)) (fabs (cbrt (sqrt 2.0))))))

simplify2.5s

Counts
130 → 130
Iterations

Useful iterations: 2 (582.0ms)

IterNodesCost
02442857
17052713
242222476
done50002476

prune779.0ms

Pruning

6 alts after pruning (5 fresh and 1 done)

Merged error: 0.0b

regimes397.0ms

Accuracy

0% (0.4b remaining)

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

bsearch0.0ms

simplify9.0ms

Iterations

Useful iterations: 2 (5.0ms)

IterNodesCost
02232
12930
23128
33528
43728
done3728

end0.0ms

sample6.6s

Algorithm
intervals
Results
2.0s2091×body640valid
1.8s2490×body1280valid
1.4s8065×body80valid
457.0ms1047×body320valid
111.0ms555×body160valid