Details

Time bar (total: 21.1s)

sample47.0ms

Algorithm
intervals
Results
27.0ms443×body80valid

simplify5.1s

Counts
1 → 1
Iterations

Useful iterations: 5 (220.0ms)

IterNodesCost
01119
12019
24517
310817
424513
562311
6134611
7374011
done500111

prune10.0ms

Pruning

2 alts after pruning (2 fresh and 0 done)

Merged error: 7.9b

localize17.0ms

Local error

Found 3 expressions with local error:

0.0b
(- (* 3 (* x.re x.re)) (* x.im x.im))
0.2b
(* 3 (* x.re x.re))
7.4b
(* (- (* 3 (* x.re x.re)) (* x.im x.im)) x.im)

rewrite138.0ms

Algorithm
rewrite-expression-head
Rules
10×pow1 add-exp-log add-cbrt-cube
add-sqr-sqrt
add-cube-cbrt *-un-lft-identity associate-*l*
add-log-exp
associate-*r* pow-prod-down prod-exp cbrt-unprod
flip3-- associate-*l/ *-commutative flip-- unswap-sqr
sub-neg diff-log
Counts
3 → 51
Calls
3 calls:
23.0ms
(- (* 3 (* x.re x.re)) (* x.im x.im))
27.0ms
(* 3 (* x.re x.re))
87.0ms
(* (- (* 3 (* x.re x.re)) (* x.im x.im)) x.im)

series170.0ms

Counts
3 → 9
Calls
3 calls:
41.0ms
(- (* 3 (* x.re x.re)) (* x.im x.im))
43.0ms
(* 3 (* x.re x.re))
87.0ms
(* (- (* 3 (* x.re x.re)) (* x.im x.im)) x.im)

simplify2.1s

Counts
60 → 60
Iterations

Useful iterations: 3 (843.0ms)

IterNodesCost
086725
1208688
2625592
32055582
done5000582

prune183.0ms

Pruning

11 alts after pruning (10 fresh and 1 done)

Merged error: 7.8b

localize22.0ms

Local error

Found 4 expressions with local error:

0.0b
(+ (* x.re x.im) (* x.im x.re))
0.2b
(+ (* (- (* x.re x.re) (* x.im x.im)) x.im) (* (+ (* x.re x.im) (* x.im x.re)) x.re))
0.2b
(* (+ (* x.re x.im) (* x.im x.re)) x.re)
7.4b
(* (- (* x.re x.re) (* x.im x.im)) x.im)

rewrite121.0ms

Algorithm
rewrite-expression-head
Rules
12×add-sqr-sqrt associate-*l/
pow1 add-exp-log add-cube-cbrt *-un-lft-identity add-cbrt-cube add-log-exp
associate-*l*
associate-*r*
flip3-+ flip-+
frac-add
flip3-- flip--
+-commutative pow-prod-down prod-exp sum-log *-commutative cbrt-unprod unswap-sqr
difference-of-squares
Counts
4 → 67
Calls
4 calls:
8.0ms
(+ (* x.re x.im) (* x.im x.re))
37.0ms
(+ (* (- (* x.re x.re) (* x.im x.im)) x.im) (* (+ (* x.re x.im) (* x.im x.re)) x.re))
46.0ms
(* (+ (* x.re x.im) (* x.im x.re)) x.re)
28.0ms
(* (- (* x.re x.re) (* x.im x.im)) x.im)

series260.0ms

Counts
4 → 12
Calls
4 calls:
37.0ms
(+ (* x.re x.im) (* x.im x.re))
111.0ms
(+ (* (- (* x.re x.re) (* x.im x.im)) x.im) (* (+ (* x.re x.im) (* x.im x.re)) x.re))
23.0ms
(* (+ (* x.re x.im) (* x.im x.re)) x.re)
90.0ms
(* (- (* x.re x.re) (* x.im x.im)) x.im)

simplify1.4s

Counts
79 → 79
Iterations

Useful iterations: done (1.4s)

IterNodesCost
01351507
13991393
216981127
done50011029

prune321.0ms

Pruning

5 alts after pruning (4 fresh and 1 done)

Merged error: 0.0b

localize20.0ms

Local error

Found 4 expressions with local error:

0.0b
(* (- x.re x.im) x.im)
0.2b
(+ (* (+ x.re x.im) (* (- x.re x.im) x.im)) (* (+ (* x.re x.im) (* x.im x.re)) x.re))
0.2b
(* (+ (* x.re x.im) (* x.im x.re)) x.re)
0.3b
(* (+ x.re x.im) (* (- x.re x.im) x.im))

rewrite222.0ms

Algorithm
rewrite-expression-head
Rules
44×associate-*l/
19×flip3-+ flip-+
16×frac-add
15×add-sqr-sqrt
13×pow1 add-exp-log *-un-lft-identity add-cbrt-cube
12×frac-times associate-*l*
10×flip3-- flip--
add-cube-cbrt
associate-*r*
associate-*r/ add-log-exp
pow-prod-down prod-exp cbrt-unprod
*-commutative
unswap-sqr
+-commutative sum-log distribute-lft-out distribute-lft-out-- difference-of-squares
Counts
4 → 96
Calls
4 calls:
45.0ms
(* (- x.re x.im) x.im)
54.0ms
(+ (* (+ x.re x.im) (* (- x.re x.im) x.im)) (* (+ (* x.re x.im) (* x.im x.re)) x.re))
48.0ms
(* (+ (* x.re x.im) (* x.im x.re)) x.re)
66.0ms
(* (+ x.re x.im) (* (- x.re x.im) x.im))

series306.0ms

Counts
4 → 12
Calls
4 calls:
56.0ms
(* (- x.re x.im) x.im)
111.0ms
(+ (* (+ x.re x.im) (* (- x.re x.im) x.im)) (* (+ (* x.re x.im) (* x.im x.re)) x.re))
40.0ms
(* (+ (* x.re x.im) (* x.im x.re)) x.re)
98.0ms
(* (+ x.re x.im) (* (- x.re x.im) x.im))

simplify4.3s

Counts
108 → 108
Iterations

Useful iterations: done (4.3s)

IterNodesCost
02102695
17262477
238592007
done50001585

prune359.0ms

Pruning

8 alts after pruning (8 fresh and 0 done)

Merged error: 0.0b

localize50.0ms

Local error

Found 4 expressions with local error:

0.3b
(* (cbrt (* (+ x.re x.im) (* (- x.re x.im) x.im))) (cbrt (* (+ x.re x.im) (* (- x.re x.im) x.im))))
12.7b
(cbrt (* (+ x.re x.im) (* (- x.re x.im) x.im)))
12.7b
(cbrt (* (+ x.re x.im) (* (- x.re x.im) x.im)))
12.7b
(cbrt (* (+ x.re x.im) (* (- x.re x.im) x.im)))

rewrite310.0ms

Algorithm
rewrite-expression-head
Rules
176×associate-*l/
168×cbrt-div
148×frac-times
63×flip3-- flip3-+ flip-- flip-+
50×associate-*r/
11×pow1
10×add-sqr-sqrt
pow1/3
add-cube-cbrt *-un-lft-identity
cbrt-prod
add-exp-log
swap-sqr associate-*r* associate-*l* add-cbrt-cube add-log-exp
pow-prod-down pow-sqr pow-prod-up
pow2 pow-plus prod-exp *-commutative cbrt-unprod unswap-sqr
Counts
4 → 162
Calls
4 calls:
116.0ms
(* (cbrt (* (+ x.re x.im) (* (- x.re x.im) x.im))) (cbrt (* (+ x.re x.im) (* (- x.re x.im) x.im))))
38.0ms
(cbrt (* (+ x.re x.im) (* (- x.re x.im) x.im)))
63.0ms
(cbrt (* (+ x.re x.im) (* (- x.re x.im) x.im)))
61.0ms
(cbrt (* (+ x.re x.im) (* (- x.re x.im) x.im)))

series922.0ms

Counts
4 → 12
Calls
4 calls:
228.0ms
(* (cbrt (* (+ x.re x.im) (* (- x.re x.im) x.im))) (cbrt (* (+ x.re x.im) (* (- x.re x.im) x.im))))
219.0ms
(cbrt (* (+ x.re x.im) (* (- x.re x.im) x.im)))
216.0ms
(cbrt (* (+ x.re x.im) (* (- x.re x.im) x.im)))
258.0ms
(cbrt (* (+ x.re x.im) (* (- x.re x.im) x.im)))

simplify1.3s

Counts
174 → 174
Iterations

Useful iterations: done (1.3s)

IterNodesCost
02706030
14525687
212335538
done50005410

prune978.0ms

Pruning

8 alts after pruning (7 fresh and 1 done)

Merged error: 0.0b

regimes118.0ms

Accuracy

0% (0.6b remaining)

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

bsearch0.0ms

simplify5.0ms

Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01442
12142
done2142

end0.0ms

sample2.4s

Algorithm
intervals
Results
1.9s14404×body80valid