Details

Time bar (total: 8.5s)

sample26.0ms

Algorithm
intervals
Results
6.0ms193×body80valid
5.0ms28×body2560valid
2.0ms10×body5120valid
2.0ms13×body1280valid
1.0msbody640valid
0.0msbody320valid
0.0msbody160valid

simplify14.0ms

Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
01215
11715
22415
32915
43315
done3315

prune3.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 38.3b

localize10.0ms

Local error

Found 4 expressions with local error:

0.0b
(+ (* re re) (* im im))
0.0b
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
0.5b
(- (sqrt (+ (* re re) (* im im))) re)
31.2b
(sqrt (+ (* re re) (* im im)))

rewrite40.0ms

Algorithm
rewrite-expression-head
Rules
10×add-sqr-sqrt
pow1 add-log-exp
*-un-lft-identity
add-cube-cbrt sqrt-prod
add-exp-log sqrt-div add-cbrt-cube
sqrt-pow1
flip3-- flip3-+ pow1/2 associate-*r/ flip-- flip-+ difference-of-squares
+-commutative sub-neg rem-sqrt-square diff-log pow-prod-down sum-log distribute-lft-out--
Counts
4 → 54
Calls
4 calls:
3.0ms
(+ (* re re) (* im im))
12.0ms
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
21.0ms
(- (sqrt (+ (* re re) (* im im))) re)
4.0ms
(sqrt (+ (* re re) (* im im)))

series282.0ms

Counts
4 → 12
Calls
4 calls:
26.0ms
(+ (* re re) (* im im))
172.0ms
(sqrt (* 2.0 (- (sqrt (+ (* re re) (* im im))) re)))
48.0ms
(- (sqrt (+ (* re re) (* im im))) re)
36.0ms
(sqrt (+ (* re re) (* im im)))

simplify1.3s

Counts
66 → 66
Iterations

Useful iterations: done (1.3s)

IterNodesCost
0114942
1256828
2830752
32906727
done5000726

prune197.0ms

Pruning

9 alts after pruning (9 fresh and 0 done)

Merged error: 17.6b

localize15.0ms

Local error

Found 4 expressions with local error:

0.5b
(- (sqrt (+ (* re re) (* im im))) re)
31.2b
(sqrt (+ (* re re) (* im im)))
31.2b
(sqrt (+ (* re re) (* im im)))
31.2b
(sqrt (+ (* re re) (* im im)))

rewrite32.0ms

Algorithm
rewrite-expression-head
Rules
14×add-sqr-sqrt
10×sqrt-prod
*-un-lft-identity
pow1 add-cube-cbrt
sqrt-div add-log-exp
add-exp-log add-cbrt-cube
rem-sqrt-square sqrt-pow1 flip3-+ pow1/2 flip-+
difference-of-squares
sub-neg flip3-- diff-log flip-- distribute-lft-out--
Counts
4 → 60
Calls
4 calls:
18.0ms
(- (sqrt (+ (* re re) (* im im))) re)
3.0ms
(sqrt (+ (* re re) (* im im)))
3.0ms
(sqrt (+ (* re re) (* im im)))
7.0ms
(sqrt (+ (* re re) (* im im)))

series157.0ms

Counts
4 → 12
Calls
4 calls:
49.0ms
(- (sqrt (+ (* re re) (* im im))) re)
34.0ms
(sqrt (+ (* re re) (* im im)))
39.0ms
(sqrt (+ (* re re) (* im im)))
35.0ms
(sqrt (+ (* re re) (* im im)))

simplify1.2s

Counts
72 → 72
Iterations

Useful iterations: 4 (390.0ms)

IterNodesCost
064907
1137773
2325723
3744709
41781707
done5000707

prune266.0ms

Pruning

9 alts after pruning (8 fresh and 1 done)

Merged error: 17.6b

localize15.0ms

Local error

Found 4 expressions with local error:

0.3b
(* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (cbrt (+ (* re re) (* im im)))))
6.4b
(- (* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (cbrt (+ (* re re) (* im im))))) re)
32.2b
(cbrt (+ (* re re) (* im im)))
32.2b
(cbrt (+ (* re re) (* im im)))

rewrite26.0ms

Algorithm
rewrite-expression-head
Rules
16×add-sqr-sqrt
10×cbrt-prod add-cube-cbrt *-un-lft-identity
associate-*r*
sqrt-prod
pow1 add-exp-log cbrt-div add-cbrt-cube add-log-exp
flip3-+ associate-*l* flip-+ unswap-sqr
pow1/3 sqrt-div associate-*r/
sub-neg flip3-- diff-log pow-prod-down prod-exp *-commutative flip-- cbrt-unprod
Counts
4 → 66
Calls
4 calls:
13.0ms
(* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (cbrt (+ (* re re) (* im im)))))
8.0ms
(- (* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (cbrt (+ (* re re) (* im im))))) re)
2.0ms
(cbrt (+ (* re re) (* im im)))
2.0ms
(cbrt (+ (* re re) (* im im)))

series386.0ms

Counts
4 → 12
Calls
4 calls:
115.0ms
(* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (cbrt (+ (* re re) (* im im)))))
80.0ms
(- (* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (cbrt (+ (* re re) (* im im))))) re)
93.0ms
(cbrt (+ (* re re) (* im im)))
99.0ms
(cbrt (+ (* re re) (* im im)))

simplify1.5s

Counts
78 → 78
Iterations

Useful iterations: done (1.5s)

IterNodesCost
01361729
13061600
29251439
328731404
done50011402

prune299.0ms

Pruning

9 alts after pruning (8 fresh and 1 done)

Merged error: 17.6b

localize17.0ms

Local error

Found 4 expressions with local error:

4.0b
(- (* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (* (cbrt (sqrt (+ (* re re) (* im im)))) (cbrt (sqrt (+ (* re re) (* im im))))))) re)
31.2b
(sqrt (+ (* re re) (* im im)))
31.2b
(sqrt (+ (* re re) (* im im)))
32.2b
(cbrt (+ (* re re) (* im im)))

rewrite48.0ms

Algorithm
rewrite-expression-head
Rules
add-sqr-sqrt
add-cube-cbrt *-un-lft-identity
pow1 sqrt-prod add-log-exp
add-exp-log sqrt-div add-cbrt-cube
cbrt-prod flip3-+ flip-+
rem-sqrt-square cbrt-div sqrt-pow1 pow1/2
sub-neg flip3-- pow1/3 diff-log flip--
Counts
4 → 55
Calls
4 calls:
37.0ms
(- (* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (* (cbrt (sqrt (+ (* re re) (* im im)))) (cbrt (sqrt (+ (* re re) (* im im))))))) re)
3.0ms
(sqrt (+ (* re re) (* im im)))
3.0ms
(sqrt (+ (* re re) (* im im)))
2.0ms
(cbrt (+ (* re re) (* im im)))

series248.0ms

Counts
4 → 12
Calls
4 calls:
81.0ms
(- (* (fabs (cbrt (+ (* re re) (* im im)))) (sqrt (* (cbrt (sqrt (+ (* re re) (* im im)))) (cbrt (sqrt (+ (* re re) (* im im))))))) re)
39.0ms
(sqrt (+ (* re re) (* im im)))
34.0ms
(sqrt (+ (* re re) (* im im)))
93.0ms
(cbrt (+ (* re re) (* im im)))

simplify1.0s

Counts
67 → 67
Iterations

Useful iterations: 3 (317.0ms)

IterNodesCost
01111332
12601068
2737928
32264908
done5000908

prune293.0ms

Pruning

10 alts after pruning (8 fresh and 2 done)

Merged error: 17.6b

regimes372.0ms

Accuracy

55.2% (9.7b remaining)

Error of 26.9b against oracle of 17.2b and baseline of 38.9b

bsearch121.0ms

Steps
ItersRangePoint
6
3.255384081654771e-138
3.751532506820157e-137
3.3295675416622e-138
8
-2.897696440015651e-243
-1.0192993546445385e-247
-1.1227336800725336e-247
8
-7.845778557459706e+107
-1.3467292900271907e+105
-1.0155374128313363e+107

simplify4.0ms

Iterations

Useful iterations: 1 (3.0ms)

IterNodesCost
04487
15785
done5785

end0.0ms

sample644.0ms

Algorithm
intervals
Results
194.0ms6026×body80valid
133.0ms713×body2560valid
70.0ms481×body1280valid
68.0ms294×body5120valid
31.0ms266×body640valid
13.0ms144×body320valid
4.0ms76×body160valid