Details

Time bar (total: 1.8s)

sample16.0ms

Algorithm
intervals
Results
9.0ms343×body80valid

simplify70.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 4 (11.0ms)

IterNodesCost
0266
1556
21226
32056
42535
53075
63635
74985
89115
911875
1011885
1111885

prune4.0ms

Pruning

2 alts after pruning (2 fresh and 0 done)

Merged error: 0.1b

localize6.0ms

Local error

Found 3 expressions with local error:

0.0b
(- (* x 3.0) 4.0)
0.1b
(* x (- (* x 3.0) 4.0))
0.1b
(* 3.0 (+ 1.0 (* x (- (* x 3.0) 4.0))))

rewrite21.0ms

Algorithm
rewrite-expression-head
Rules
11×add-sqr-sqrt
pow1 add-exp-log add-cube-cbrt *-un-lft-identity add-cbrt-cube
associate-*r* associate-*l*
add-log-exp
associate-*r/
distribute-rgt-in sub-neg distribute-lft-in
flip3-- pow-prod-down prod-exp *-commutative flip-- cbrt-unprod unswap-sqr
flip3-+ diff-log flip-+
Counts
3 → 58
Calls
3 calls:
3.0ms
(- (* x 3.0) 4.0)
10.0ms
(* x (- (* x 3.0) 4.0))
7.0ms
(* 3.0 (+ 1.0 (* x (- (* x 3.0) 4.0))))

series137.0ms

Counts
3 → 9
Calls
3 calls:
40.0ms
(- (* x 3.0) 4.0)
59.0ms
(* x (- (* x 3.0) 4.0))
37.0ms
(* 3.0 (+ 1.0 (* x (- (* x 3.0) 4.0))))

simplify46.0ms

Algorithm
egg-herbie
Counts
67 → 67
Iterations

Useful iterations: 2 (40.0ms)

IterNodesCost
0267361
11213324
25001323

prune113.0ms

Pruning

5 alts after pruning (4 fresh and 1 done)

Merged error: 0b

localize7.0ms

Local error

Found 2 expressions with local error:

0.0b
(- (+ (* 9.0 (pow x 2)) 3.0) (* 12.0 x))
0.2b
(* 9.0 (pow x 2))

rewrite33.0ms

Algorithm
rewrite-expression-head
Rules
11×add-sqr-sqrt
associate-*r*
add-exp-log add-log-exp
add-cube-cbrt *-un-lft-identity
unpow-prod-down add-cbrt-cube unswap-sqr
associate-*l* prod-exp
pow1 diff-log unpow2 sqr-pow
pow-to-exp sub-neg flip3-- pow-exp associate--l+ sum-log *-commutative flip-- cbrt-unprod
Counts
2 → 41
Calls
2 calls:
26.0ms
(- (+ (* 9.0 (pow x 2)) 3.0) (* 12.0 x))
6.0ms
(* 9.0 (pow x 2))

series48.0ms

Counts
2 → 6
Calls
2 calls:
23.0ms
(- (+ (* 9.0 (pow x 2)) 3.0) (* 12.0 x))
26.0ms
(* 9.0 (pow x 2))

simplify155.0ms

Algorithm
egg-herbie
Counts
47 → 47
Iterations

Useful iterations: 3 (151.0ms)

IterNodesCost
0193233
1766207
24099201
35003200

prune83.0ms

Pruning

4 alts after pruning (3 fresh and 1 done)

Merged error: 0b

localize5.0ms

Local error

Found 1 expressions with local error:

0.1b
(* x (- (* x 9.0) 12.0))

rewrite11.0ms

Algorithm
rewrite-expression-head
Rules
add-sqr-sqrt
pow1 add-exp-log add-cube-cbrt *-un-lft-identity associate-*r* associate-*l* add-cbrt-cube
distribute-rgt-in sub-neg distribute-lft-in associate-*r/
flip3-- pow-prod-down prod-exp *-commutative flip-- cbrt-unprod add-log-exp unswap-sqr
Counts
1 → 24
Calls
1 calls:
10.0ms
(* x (- (* x 9.0) 12.0))

series62.0ms

Counts
1 → 3
Calls
1 calls:
62.0ms
(* x (- (* x 9.0) 12.0))

simplify75.0ms

Algorithm
egg-herbie
Counts
27 → 27
Iterations

Useful iterations: 1 (5.0ms)

IterNodesCost
0118130
1497113
22567113
35002113

prune44.0ms

Pruning

4 alts after pruning (2 fresh and 2 done)

Merged error: 0b

localize10.0ms

Local error

Found 4 expressions with local error:

0.2b
(* 9.0 (pow x 2))
0.3b
(* (sqrt (* 9.0 (pow x 2))) (sqrt (* 9.0 (pow x 2))))
17.3b
(sqrt (* 9.0 (pow x 2)))
17.3b
(sqrt (* 9.0 (pow x 2)))

rewrite30.0ms

Algorithm
rewrite-expression-head
Rules
21×pow1
19×add-sqr-sqrt
12×associate-*r*
11×add-exp-log add-cube-cbrt *-un-lft-identity
10×sqrt-pow1 pow1/2
add-cbrt-cube
associate-*l*
sqrt-prod
pow-prod-up unswap-sqr
unpow-prod-down swap-sqr prod-exp add-log-exp
pow-prod-down pow-sqr
*-commutative cbrt-unprod unpow2 sqr-pow
pow2 pow-to-exp pow-plus sqrt-unprod pow-exp rem-square-sqrt
Counts
4 → 85
Calls
4 calls:
5.0ms
(* 9.0 (pow x 2))
15.0ms
(* (sqrt (* 9.0 (pow x 2))) (sqrt (* 9.0 (pow x 2))))
2.0ms
(sqrt (* 9.0 (pow x 2)))
2.0ms
(sqrt (* 9.0 (pow x 2)))

series174.0ms

Counts
4 → 12
Calls
4 calls:
31.0ms
(* 9.0 (pow x 2))
74.0ms
(* (sqrt (* 9.0 (pow x 2))) (sqrt (* 9.0 (pow x 2))))
34.0ms
(sqrt (* 9.0 (pow x 2)))
34.0ms
(sqrt (* 9.0 (pow x 2)))

simplify45.0ms

Algorithm
egg-herbie
Counts
97 → 97
Iterations

Useful iterations: 2 (38.0ms)

IterNodesCost
0185352
1927297
25002286

prune196.0ms

Pruning

4 alts after pruning (1 fresh and 3 done)

Merged error: 0b

regimes17.0ms

Accuracy

0% (0.1b remaining)

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

bsearch0.0ms

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
0135
1135

end0.0ms

sample370.0ms

Algorithm
intervals
Results
262.0ms10660×body80valid