Details

Time bar (total: 3.4s)

sample28.0ms

Algorithm
intervals
Results
8.0ms194×body80valid
4.0ms23×body2560valid
2.0ms14×body1280valid
2.0msbody5120valid
1.0msbody640valid
0.0msbody320valid
0.0msbody160valid

simplify6.0ms

Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0248
1308
2338
3338
done338

prune3.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 38.9b

localize9.0ms

Local error

Found 3 expressions with local error:

0.0b
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
0.9b
(+ (sqrt (+ (* re re) (* im im))) re)
29.6b
(sqrt (+ (* re re) (* im im)))

rewrite67.0ms

Algorithm
rewrite-expression-head
Rules
*-un-lft-identity
pow1 add-sqr-sqrt sqrt-prod
add-cube-cbrt fma-def
add-log-exp
sqrt-div
add-exp-log expm1-log1p-u sqrt-pow1 flip3-+ add-cbrt-cube flip-+ log1p-expm1-u
pow1/2 associate-*r/
+-commutative rem-sqrt-square pow-prod-down sum-log hypot-def distribute-lft-out
Counts
3 → 53
Calls
3 calls:
26.0ms
(sqrt (* 2.0 (+ (sqrt (+ (* re re) (* im im))) re)))
32.0ms
(+ (sqrt (+ (* re re) (* im im))) re)
8.0ms
(sqrt (+ (* re re) (* im im)))

series263.0ms

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

simplify71.0ms

Counts
62 → 62
Iterations

Useful iterations: 3 (66.0ms)

IterNodesCost
0264372
1830337
22660322
35002320
done5002320

prune178.0ms

Pruning

5 alts after pruning (5 fresh and 0 done)

Merged error: 7.4b

localize8.0ms

Local error

Found 3 expressions with local error:

0.0b
(sqrt (* 2.0 (* 1 (+ re (hypot re im)))))
0.0b
(hypot re im)
0.9b
(+ re (hypot re im))

rewrite29.0ms

Algorithm
rewrite-expression-head
Rules
pow1
*-un-lft-identity
add-log-exp
add-sqr-sqrt add-cube-cbrt associate-*r/
add-exp-log expm1-log1p-u fma-def sqrt-pow1 pow-prod-down add-cbrt-cube log1p-expm1-u
flip3-+ sqrt-div flip-+
+-commutative hypot-udef pow1/2 sum-log sqrt-prod distribute-lft-out
Counts
3 → 43
Calls
3 calls:
22.0ms
(sqrt (* 2.0 (* 1 (+ re (hypot re im)))))
0.0ms
(hypot re im)
6.0ms
(+ re (hypot re im))

series298.0ms

Counts
3 → 9
Calls
3 calls:
188.0ms
(sqrt (* 2.0 (* 1 (+ re (hypot re im)))))
51.0ms
(hypot re im)
59.0ms
(+ re (hypot re im))

simplify80.0ms

Counts
52 → 52
Iterations

Useful iterations: 2 (20.0ms)

IterNodesCost
0208209
1808191
23269185
35001185
done5001185

prune148.0ms

Pruning

8 alts after pruning (7 fresh and 1 done)

Merged error: 7.3b

localize10.0ms

Local error

Found 4 expressions with local error:

0.0b
(sqrt (hypot re im))
0.0b
(sqrt (hypot re im))
0.5b
(* (sqrt (hypot re im)) (sqrt (hypot re im)))
8.0b
(+ re (* (sqrt (hypot re im)) (sqrt (hypot re im))))

rewrite27.0ms

Algorithm
rewrite-expression-head
Rules
29×add-sqr-sqrt
24×sqrt-prod
21×pow1
15×add-cube-cbrt *-un-lft-identity
10×sqrt-pow1 pow1/2
swap-sqr
add-exp-log associate-*r* associate-*l* add-cbrt-cube add-log-exp
pow-prod-up
expm1-log1p-u log1p-expm1-u unswap-sqr
fma-def pow-prod-down pow-sqr
rem-sqrt-square
+-commutative pow2 flip3-+ pow-plus sqrt-unprod prod-exp sum-log rem-square-sqrt *-commutative cbrt-unprod flip-+
Counts
4 → 97
Calls
4 calls:
1.0ms
(sqrt (hypot re im))
1.0ms
(sqrt (hypot re im))
12.0ms
(* (sqrt (hypot re im)) (sqrt (hypot re im)))
10.0ms
(+ re (* (sqrt (hypot re im)) (sqrt (hypot re im))))

series278.0ms

Counts
4 → 12
Calls
4 calls:
86.0ms
(sqrt (hypot re im))
86.0ms
(sqrt (hypot re im))
51.0ms
(* (sqrt (hypot re im)) (sqrt (hypot re im)))
55.0ms
(+ re (* (sqrt (hypot re im)) (sqrt (hypot re im))))

simplify35.0ms

Counts
109 → 109
Iterations

Useful iterations: 2 (29.0ms)

IterNodesCost
0224457
1848384
25001355
done5001355

prune255.0ms

Pruning

9 alts after pruning (8 fresh and 1 done)

Merged error: 7.3b

localize15.0ms

Local error

Found 4 expressions with local error:

0.5b
(* (sqrt (hypot re im)) (sqrt (hypot re im)))
8.0b
(+ re (* (sqrt (hypot re im)) (sqrt (hypot re im))))
8.0b
(+ re (* (sqrt (hypot re im)) (sqrt (hypot re im))))
8.0b
(+ re (* (sqrt (hypot re im)) (sqrt (hypot re im))))

rewrite36.0ms

Algorithm
rewrite-expression-head
Rules
27×add-sqr-sqrt
19×pow1
18×sqrt-prod
15×add-cube-cbrt *-un-lft-identity
10×add-log-exp
fma-def
sqrt-pow1 pow1/2 swap-sqr
add-exp-log associate-*r* associate-*l* add-cbrt-cube
pow-prod-up
expm1-log1p-u log1p-expm1-u unswap-sqr
+-commutative flip3-+ pow-prod-down sum-log pow-sqr flip-+
pow2 pow-plus sqrt-unprod prod-exp rem-square-sqrt *-commutative cbrt-unprod
Counts
4 → 99
Calls
4 calls:
12.0ms
(* (sqrt (hypot re im)) (sqrt (hypot re im)))
6.0ms
(+ re (* (sqrt (hypot re im)) (sqrt (hypot re im))))
6.0ms
(+ re (* (sqrt (hypot re im)) (sqrt (hypot re im))))
10.0ms
(+ re (* (sqrt (hypot re im)) (sqrt (hypot re im))))

series223.0ms

Counts
4 → 12
Calls
4 calls:
46.0ms
(* (sqrt (hypot re im)) (sqrt (hypot re im)))
61.0ms
(+ re (* (sqrt (hypot re im)) (sqrt (hypot re im))))
55.0ms
(+ re (* (sqrt (hypot re im)) (sqrt (hypot re im))))
61.0ms
(+ re (* (sqrt (hypot re im)) (sqrt (hypot re im))))

simplify170.0ms

Counts
111 → 111
Iterations

Useful iterations: 2 (22.0ms)

IterNodesCost
0161547
1592446
23637426
35001426
done5001426

prune345.0ms

Pruning

9 alts after pruning (7 fresh and 2 done)

Merged error: 7.3b

regimes150.0ms

Accuracy

30.2% (4.0b remaining)

Error of 11.5b against oracle of 7.5b and baseline of 13.3b

bsearch43.0ms

Steps
ItersRangePoint
8
-1.3259787995368483e+39
-2.6306519911584922e+36
-6.300475905611319e+37

simplify1.0ms

Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
02813
13013
23013
done3013

end0.0ms

sample674.0ms

Algorithm
intervals
Results
188.0ms6025×body80valid
119.0ms664×body2560valid
71.0ms287×body5120valid
70.0ms492×body1280valid
32.0ms280×body640valid
14.0ms158×body320valid
5.0ms94×body160valid