Details

Time bar (total: 14.0s)

sample58.0ms

Algorithm
intervals
Results
15.0ms198×body80valid
13.0ms28×body2560valid
5.0msbody5120valid
4.0msbody1280valid
2.0msbody640valid
1.0msbody320valid

simplify16.0ms

Counts
1 → 1
Iterations
IterNodes
done24
224
122
012

prune19.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 35.6b

localize39.0ms

Local error

Found 4 expressions with local error:

0.0b
(+ (* re re) (* im im))
0.0b
(+ (sqrt (+ (* re re) (* im im))) re)
0.2b
(sqrt (* (+ (sqrt (+ (* re re) (* im im))) re) 2.0))
27.5b
(sqrt (+ (* re re) (* im im)))

rewrite79.0ms

Algorithm
rewrite-expression-head
Rules
pow1 add-log-exp
*-un-lft-identity
add-sqr-sqrt
add-cube-cbrt
flip3-+ add-cbrt-cube sqrt-div add-exp-log sqrt-prod flip-+
sqrt-pow1
+-commutative sum-log pow1/2 associate-*l/
rem-sqrt-square pow-prod-down distribute-lft-out
Counts
4 → 51
Calls
4 calls:
17.0ms
(+ (* re re) (* im im))
28.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
22.0ms
(sqrt (* (+ (sqrt (+ (* re re) (* im im))) re) 2.0))
11.0ms
(sqrt (+ (* re re) (* im im)))

series411.0ms

Counts
4 → 12
Calls
4 calls:
54.0ms
(+ (* re re) (* im im))
68.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
236.0ms
(sqrt (* (+ (sqrt (+ (* re re) (* im im))) re) 2.0))
53.0ms
(sqrt (+ (* re re) (* im im)))

simplify730.0ms

Counts
63 → 63
Iterations
IterNodes
done5001
21316
1279
0108

prune484.0ms

Pruning

8 alts after pruning (7 fresh and 1 done)

Merged error: 17.7b

localize58.0ms

Local error

Found 4 expressions with local error:

27.5b
(sqrt (* (* (cbrt (+ (* im im) (pow re 2))) (cbrt (+ (* im im) (pow re 2)))) (cbrt (+ (* im im) (pow re 2)))))
28.6b
(cbrt (+ (* im im) (pow re 2)))
28.6b
(cbrt (+ (* im im) (pow re 2)))
28.6b
(cbrt (+ (* im im) (pow re 2)))

rewrite215.0ms

Algorithm
rewrite-expression-head
Rules
60×cbrt-div
30×flip3-+ flip-+
28×frac-times
26×sqrt-div
24×pow1
15×sqrt-pow1
14×associate-*l/
12×pow1/3
cbrt-prod pow-prod-up
associate-*r/
add-sqr-sqrt *-un-lft-identity add-cube-cbrt
pow-plus
pow-prod-down
add-cbrt-cube add-exp-log add-log-exp
pow-sqr
pow2
pow1/2 pow3 sqrt-prod
Counts
4 → 89
Calls
4 calls:
162.0ms
(sqrt (* (* (cbrt (+ (* im im) (pow re 2))) (cbrt (+ (* im im) (pow re 2)))) (cbrt (+ (* im im) (pow re 2)))))
20.0ms
(cbrt (+ (* im im) (pow re 2)))
13.0ms
(cbrt (+ (* im im) (pow re 2)))
14.0ms
(cbrt (+ (* im im) (pow re 2)))

series485.0ms

Counts
4 → 12
Calls
4 calls:
56.0ms
(sqrt (* (* (cbrt (+ (* im im) (pow re 2))) (cbrt (+ (* im im) (pow re 2)))) (cbrt (+ (* im im) (pow re 2)))))
156.0ms
(cbrt (+ (* im im) (pow re 2)))
170.0ms
(cbrt (+ (* im im) (pow re 2)))
103.0ms
(cbrt (+ (* im im) (pow re 2)))

simplify1.4s

Counts
101 → 101
Iterations
IterNodes
done5001
32690
2662
1299
0164

prune807.0ms

Pruning

8 alts after pruning (7 fresh and 1 done)

Merged error: 9.8b

localize53.0ms

Local error

Found 4 expressions with local error:

0.3b
(/ (sqrt (* 2.0 (+ (* im im) 0))) (sqrt (- (sqrt (+ (* im im) (pow re 2))) re)))
0.5b
(- (sqrt (+ (* im im) (pow re 2))) re)
27.5b
(sqrt (+ (* im im) (pow re 2)))
29.7b
(sqrt (* 2.0 (+ (* im im) 0)))

rewrite525.0ms

Algorithm
rewrite-expression-head
Rules
50×add-sqr-sqrt sqrt-prod
37×*-un-lft-identity
36×times-frac
25×add-cube-cbrt
12×difference-of-squares
associate-/r*
pow1 sqrt-div
add-cbrt-cube add-exp-log distribute-lft-out-- add-log-exp
associate-*r/ associate-/l*
sqrt-pow1 flip3-+ flip-+
flip3-- pow1/2 associate-/r/ flip-- associate-/l/
cbrt-undiv rem-sqrt-square sqrt-undiv clear-num sub-neg frac-2neg diff-log div-exp pow-prod-down div-inv
Counts
4 → 109
Calls
4 calls:
83.0ms
(/ (sqrt (* 2.0 (+ (* im im) 0))) (sqrt (- (sqrt (+ (* im im) (pow re 2))) re)))
418.0ms
(- (sqrt (+ (* im im) (pow re 2))) re)
13.0ms
(sqrt (+ (* im im) (pow re 2)))
7.0ms
(sqrt (* 2.0 (+ (* im im) 0)))

series385.0ms

Counts
4 → 12
Calls
4 calls:
239.0ms
(/ (sqrt (* 2.0 (+ (* im im) 0))) (sqrt (- (sqrt (+ (* im im) (pow re 2))) re)))
61.0ms
(- (sqrt (+ (* im im) (pow re 2))) re)
45.0ms
(sqrt (+ (* im im) (pow re 2)))
40.0ms
(sqrt (* 2.0 (+ (* im im) 0)))

simplify995.0ms

Counts
121 → 121
Iterations
IterNodes
done5002
22075
1462
0212

prune745.0ms

Pruning

8 alts after pruning (8 fresh and 0 done)

Merged error: 5.6b

localize33.0ms

Local error

Found 4 expressions with local error:

0.3b
(* (sqrt 2.0) (/ (fabs im) (sqrt (- (sqrt (+ (* re re) (* im im))) re))))
0.3b
(/ (fabs im) (sqrt (- (sqrt (+ (* re re) (* im im))) re)))
0.5b
(- (sqrt (+ (* re re) (* im im))) re)
27.5b
(sqrt (+ (* re re) (* im im)))

rewrite284.0ms

Algorithm
rewrite-expression-head
Rules
90×add-sqr-sqrt
61×sqrt-prod
58×times-frac
57×*-un-lft-identity
41×add-cube-cbrt
33×associate-*r*
16×difference-of-squares
11×add-cbrt-cube add-exp-log
associate-/r*
distribute-lft-out--
pow1
sqrt-div associate-*l* add-log-exp unswap-sqr
associate-/r/
flip3-- flip-- associate-/l*
cbrt-undiv div-exp prod-exp cbrt-unprod div-inv
rem-sqrt-square clear-num sub-neg frac-2neg sqrt-pow1 flip3-+ pow1/2 diff-log pow-prod-down associate-*r/ *-commutative flip-+
Counts
4 → 142
Calls
4 calls:
160.0ms
(* (sqrt 2.0) (/ (fabs im) (sqrt (- (sqrt (+ (* re re) (* im im))) re))))
63.0ms
(/ (fabs im) (sqrt (- (sqrt (+ (* re re) (* im im))) re)))
49.0ms
(- (sqrt (+ (* re re) (* im im))) re)
7.0ms
(sqrt (+ (* re re) (* im im)))

series458.0ms

Counts
4 → 12
Calls
4 calls:
197.0ms
(* (sqrt 2.0) (/ (fabs im) (sqrt (- (sqrt (+ (* re re) (* im im))) re))))
143.0ms
(/ (fabs im) (sqrt (- (sqrt (+ (* re re) (* im im))) re)))
59.0ms
(- (sqrt (+ (* re re) (* im im))) re)
59.0ms
(sqrt (+ (* re re) (* im im)))

simplify1.9s

Counts
154 → 154
Iterations
IterNodes
done5002
24400
1680
0263

prune1.0s

Pruning

8 alts after pruning (7 fresh and 1 done)

Merged error: 1.0b

regimes284.0ms

Accuracy

35% (23.9b remaining)

Error of 24.3b against oracle of 0.5b and baseline of 37.2b

bsearch500.0ms

Steps
ItersRangePoint
10
1.3811172564621137e+178
2.9731570004810616e+193
7.340779959888026e+187
10
1.9179423284368085e+124
2.1150772836100282e+135
1.1127712164823512e+127
9
5.91085775043162e-144
6.737502652127218e-136
1.4719458772652928e-143
5
3.2197111124467914e-171
1.0475134286210118e-170
3.606820219200127e-171
5
-1.0286421208077902e-268
-2.624967019425452e-269
-5.289548942669333e-269
10
-6.8406817238881764e-12
-9.811585856461368e-26
-2.0367667387669787e-24

simplify11.0ms

Iterations
IterNodes
done77
177
060

end0.0ms

sample2.0s

Algorithm
intervals
Results
694.0ms694×body2560valid
510.0ms6072×body80valid
303.0ms491×body1280valid
135.0ms286×body5120valid
78.0ms253×body640valid
28.0ms136×body320valid
9.0ms68×body160valid