Details

Time bar (total: 10.0s)

sample24.0ms

Algorithm
intervals
Results
6.0ms192×body80valid
3.0ms18×body2560valid
3.0ms17×body1280valid
2.0ms13×body640valid
1.0msbody5120valid
1.0msbody320valid
0.0msbody160valid

simplify8.0ms

Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
01215
12215
22315
done2315

prune3.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 36.4b

localize12.0ms

Local error

Found 3 expressions with local error:

0.0b
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
0.6b
(+ (sqrt (+ (* re re) (* im im))) re)
27.4b
(sqrt (+ (* re re) (* im im)))

rewrite29.0ms

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

series262.0ms

Counts
3 → 9
Calls
3 calls:
178.0ms
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
49.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
36.0ms
(sqrt (+ (* re re) (* im im)))

simplify840.0ms

Counts
49 → 49
Iterations

Useful iterations: done (839.0ms)

IterNodesCost
099722
1243617
2667569
31886542
done5001541

prune175.0ms

Pruning

10 alts after pruning (9 fresh and 1 done)

Merged error: 16.4b

localize12.0ms

Local error

Found 3 expressions with local error:

0.4b
(* (sqrt 2.0) (sqrt (+ (sqrt (+ (* re re) (* im im))) re)))
0.6b
(+ (sqrt (+ (* re re) (* im im))) re)
27.4b
(sqrt (+ (* re re) (* im im)))

rewrite61.0ms

Algorithm
rewrite-expression-head
Rules
17×add-sqr-sqrt
14×sqrt-prod
12×*-un-lft-identity
pow1 add-cube-cbrt
associate-*r*
associate-*l*
add-exp-log add-cbrt-cube add-log-exp
sqrt-div unswap-sqr
sqrt-pow1 flip3-+ pow1/2 pow-prod-down flip-+
associate-*r/ distribute-lft-out
+-commutative rem-sqrt-square sqrt-unprod prod-exp sum-log *-commutative cbrt-unprod
Counts
3 → 60
Calls
3 calls:
42.0ms
(* (sqrt 2.0) (sqrt (+ (sqrt (+ (* re re) (* im im))) re)))
13.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
4.0ms
(sqrt (+ (* re re) (* im im)))

series260.0ms

Counts
3 → 9
Calls
3 calls:
176.0ms
(* (sqrt 2.0) (sqrt (+ (sqrt (+ (* re re) (* im im))) re)))
48.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
36.0ms
(sqrt (+ (* re re) (* im im)))

simplify1.7s

Counts
69 → 69
Iterations

Useful iterations: done (1.7s)

IterNodesCost
01221096
1290967
2861908
32693883
done5001882

prune196.0ms

Pruning

11 alts after pruning (10 fresh and 1 done)

Merged error: 16.4b

localize14.0ms

Local error

Found 4 expressions with local error:

12.0b
(+ (* (* (cbrt (sqrt (+ (* re re) (* im im)))) (cbrt (sqrt (+ (* re re) (* im im))))) (cbrt (sqrt (+ (* re re) (* im im))))) re)
27.4b
(sqrt (+ (* re re) (* im im)))
27.4b
(sqrt (+ (* re re) (* im im)))
27.4b
(sqrt (+ (* re re) (* im im)))

rewrite50.0ms

Algorithm
rewrite-expression-head
Rules
10×add-sqr-sqrt
sqrt-prod
pow1 add-cube-cbrt *-un-lft-identity
sqrt-div add-log-exp
add-exp-log flip3-+ add-cbrt-cube flip-+
rem-sqrt-square sqrt-pow1 pow1/2
+-commutative sum-log
Counts
4 → 56
Calls
4 calls:
38.0ms
(+ (* (* (cbrt (sqrt (+ (* re re) (* im im)))) (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)))
4.0ms
(sqrt (+ (* re re) (* im im)))

series157.0ms

Counts
4 → 12
Calls
4 calls:
46.0ms
(+ (* (* (cbrt (sqrt (+ (* re re) (* im im)))) (cbrt (sqrt (+ (* re re) (* im im))))) (cbrt (sqrt (+ (* re re) (* im im))))) re)
38.0ms
(sqrt (+ (* re re) (* im im)))
36.0ms
(sqrt (+ (* re re) (* im im)))
36.0ms
(sqrt (+ (* re re) (* im im)))

simplify1.8s

Counts
68 → 68
Iterations

Useful iterations: 4 (585.0ms)

IterNodesCost
0621223
11621127
2399661
31164622
43721614
done5000614

prune273.0ms

Pruning

10 alts after pruning (10 fresh and 0 done)

Merged error: 16.4b

localize14.0ms

Local error

Found 4 expressions with local error:

0.3b
(/ (sqrt (* 2.0 (+ 0 (* im im)))) (sqrt (- (sqrt (+ (* re re) (* im im))) re)))
0.9b
(- (sqrt (+ (* re re) (* im im))) re)
26.4b
(sqrt (* 2.0 (+ 0 (* im im))))
27.4b
(sqrt (+ (* re re) (* im im)))

rewrite53.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-exp-log add-cbrt-cube distribute-lft-out-- add-log-exp
associate-*r/ associate-/l*
sqrt-pow1 flip3-+ flip-+
flip3-- pow1/2 associate-/r/ flip-- associate-/l/
cbrt-undiv sub-neg rem-sqrt-square sqrt-undiv frac-2neg diff-log div-exp pow-prod-down clear-num div-inv
Counts
4 → 109
Calls
4 calls:
25.0ms
(/ (sqrt (* 2.0 (+ 0 (* im im)))) (sqrt (- (sqrt (+ (* re re) (* im im))) re)))
18.0ms
(- (sqrt (+ (* re re) (* im im))) re)
3.0ms
(sqrt (* 2.0 (+ 0 (* im im))))
4.0ms
(sqrt (+ (* re re) (* im im)))

series315.0ms

Counts
4 → 12
Calls
4 calls:
194.0ms
(/ (sqrt (* 2.0 (+ 0 (* im im)))) (sqrt (- (sqrt (+ (* re re) (* im im))) re)))
47.0ms
(- (sqrt (+ (* re re) (* im im))) re)
37.0ms
(sqrt (* 2.0 (+ 0 (* im im))))
37.0ms
(sqrt (+ (* re re) (* im im)))

simplify2.4s

Counts
121 → 121
Iterations

Useful iterations: 3 (1.1s)

IterNodesCost
02122952
14412510
212912370
347742333
done50002333

prune345.0ms

Pruning

11 alts after pruning (11 fresh and 0 done)

Merged error: 10.3b

regimes210.0ms

Accuracy

55.7% (12.0b remaining)

Error of 22.1b against oracle of 10.2b and baseline of 37.2b

bsearch105.0ms

Steps
ItersRangePoint
7
5.023487767188019e-90
3.713870109526283e-88
9.989819735270073e-90
10
-2.7283838574175814e+156
-2.4047927607493394e+144
-1.3292486390963865e+154

simplify3.0ms

Iterations

Useful iterations: 1 (2.0ms)

IterNodesCost
03551
14449
done4449

end0.0ms

sample655.0ms

Algorithm
intervals
Results
188.0ms6020×body80valid
141.0ms719×body2560valid
75.0ms479×body1280valid
65.0ms266×body5120valid
33.0ms280×body640valid
15.0ms163×body320valid
5.0ms73×body160valid