Details

Time bar (total: 8.9s)

sample20.0ms

Algorithm
intervals
Results
5.0ms54×body1280valid
3.0ms136×body80valid
3.0ms37×body640valid
1.0ms18×body320valid
0.0ms11×body160valid

simplify22.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0126
1166
2196
3216
4276
5396
6586
7796
81076
91606
102776
113036
123036

prune2.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 28.4b

localize6.0ms

Local error

Found 3 expressions with local error:

0.0b
(/ (+ x 1.0) (- x 1.0))
0.0b
(/ x (+ x 1.0))
3.3b
(- (/ x (+ x 1.0)) (/ (+ x 1.0) (- x 1.0)))

rewrite205.0ms

Algorithm
rewrite-expression-head
Rules
981×*-un-lft-identity
736×times-frac
585×add-sqr-sqrt
468×prod-diff
419×add-cube-cbrt
189×distribute-lft-out
94×associate-/r/
90×distribute-lft-out--
81×difference-of-squares
47×div-inv
29×flip3-+ flip-+
20×flip3-- flip--
18×fma-neg
associate-/r*
add-exp-log add-cbrt-cube associate-/l*
add-log-exp
pow1 expm1-log1p-u log1p-expm1-u
cbrt-undiv frac-2neg div-exp clear-num associate-/l/
sub-neg diff-log frac-sub
Counts
3 → 596
Calls
3 calls:
25.0ms
(/ (+ x 1.0) (- x 1.0))
10.0ms
(/ x (+ x 1.0))
115.0ms
(- (/ x (+ x 1.0)) (/ (+ x 1.0) (- x 1.0)))

series189.0ms

Counts
3 → 9
Calls
3 calls:
39.0ms
(/ (+ x 1.0) (- x 1.0))
30.0ms
(/ x (+ x 1.0))
120.0ms
(- (/ x (+ x 1.0)) (/ (+ x 1.0) (- x 1.0)))

simplify215.0ms

Algorithm
egg-herbie
Counts
605 → 605
Iterations

Useful iterations: 2 (72.0ms)

IterNodesCost
0120818366
1368713388
2500113292

prune725.0ms

Pruning

6 alts after pruning (6 fresh and 0 done)

Merged error: 0.2b

localize14.0ms

Local error

Found 4 expressions with local error:

0.0b
(pow (/ (+ x 1.0) (- x 1.0)) 3)
0.0b
(* (/ x (+ x 1.0)) (/ x (+ x 1.0)))
0.0b
(pow (/ x (+ x 1.0)) 3)
3.3b
(- (pow (/ x (+ x 1.0)) 3) (pow (/ (+ x 1.0) (- x 1.0)) 3))

rewrite804.0ms

Algorithm
rewrite-expression-head
Rules
4459×*-un-lft-identity
3312×times-frac
2747×add-sqr-sqrt
2436×prod-diff
2258×unpow-prod-down cube-prod
1963×add-cube-cbrt
840×distribute-lft-out
420×associate-/r/
397×distribute-lft-out--
380×difference-of-squares
210×div-inv
124×flip3-+ flip-+
115×sqr-pow
103×cube-mult unpow3
87×flip3-- flip--
42×fma-neg
24×swap-sqr
22×add-exp-log add-cbrt-cube
18×associate-*r* associate-*l*
13×pow1
cbrt-undiv pow-unpow div-exp add-log-exp
cube-div expm1-log1p-u pow-exp prod-exp cbrt-unprod log1p-expm1-u rem-cube-cbrt unswap-sqr
pow-to-exp pow-pow
difference-cubes pow2 frac-times sub-neg pow-plus diff-log associate-*r/ pow-prod-down associate-*l/ pow-sqr *-commutative pow-prod-up frac-sub
Counts
4 → 2789
Calls
4 calls:
22.0ms
(pow (/ (+ x 1.0) (- x 1.0)) 3)
49.0ms
(* (/ x (+ x 1.0)) (/ x (+ x 1.0)))
15.0ms
(pow (/ x (+ x 1.0)) 3)
342.0ms
(- (pow (/ x (+ x 1.0)) 3) (pow (/ (+ x 1.0) (- x 1.0)) 3))

series412.0ms

Counts
4 → 12
Calls
4 calls:
54.0ms
(pow (/ (+ x 1.0) (- x 1.0)) 3)
41.0ms
(* (/ x (+ x 1.0)) (/ x (+ x 1.0)))
50.0ms
(pow (/ x (+ x 1.0)) 3)
267.0ms
(- (pow (/ x (+ x 1.0)) 3) (pow (/ (+ x 1.0) (- x 1.0)) 3))

simplify922.0ms

Algorithm
egg-herbie
Counts
2801 → 2801
Iterations

Useful iterations: 1 (44.0ms)

IterNodesCost
02426103769
1500393457

prune1.9s

Pruning

7 alts after pruning (7 fresh and 0 done)

Merged error: 0.2b

localize8.0ms

Local error

Found 3 expressions with local error:

0.0b
(/ 1 (+ x 1.0))
0.0b
(/ (+ x 1.0) (- x 1.0))
28.9b
(fma x (/ 1 (+ x 1.0)) (- (/ (+ x 1.0) (- x 1.0))))

rewrite42.0ms

Algorithm
rewrite-expression-head
Rules
53×*-un-lft-identity
33×add-sqr-sqrt
32×times-frac
23×add-cube-cbrt
10×distribute-lft-out
add-exp-log associate-/r*
add-cbrt-cube associate-/l*
distribute-lft-out-- difference-of-squares
pow1 associate-/r/
expm1-log1p-u div-exp log1p-expm1-u add-log-exp
cbrt-undiv frac-2neg flip3-+ clear-num flip-+ div-inv associate-/l/
rec-exp flip3-- pow-flip 1-exp flip-- fma-udef inv-pow
Counts
3 → 96
Calls
3 calls:
11.0ms
(/ 1 (+ x 1.0))
27.0ms
(/ (+ x 1.0) (- x 1.0))
0.0ms
(fma x (/ 1 (+ x 1.0)) (- (/ (+ x 1.0) (- x 1.0))))

series188.0ms

Counts
3 → 9
Calls
3 calls:
21.0ms
(/ 1 (+ x 1.0))
41.0ms
(/ (+ x 1.0) (- x 1.0))
126.0ms
(fma x (/ 1 (+ x 1.0)) (- (/ (+ x 1.0) (- x 1.0))))

simplify101.0ms

Algorithm
egg-herbie
Counts
105 → 105
Iterations

Useful iterations: 3 (93.0ms)

IterNodesCost
0352622
11159566
24375539
35001535

prune191.0ms

Pruning

7 alts after pruning (6 fresh and 1 done)

Merged error: 0.2b

localize30.0ms

Local error

Found 4 expressions with local error:

20.7b
(* (pow (/ 1 (- x 1.0)) 3) (pow (+ x 1.0) 3))
20.7b
(* (pow (/ 1 (- x 1.0)) 3) (pow (+ x 1.0) 3))
29.3b
(fma (pow (/ x (- (* x x) (* 1.0 1.0))) 3) (pow (- x 1.0) 3) (- (* (pow (/ 1 (- x 1.0)) 3) (pow (+ x 1.0) 3))))
32.2b
(fma (- (pow (/ 1 (- x 1.0)) 3)) (pow (+ x 1.0) 3) (* (pow (/ 1 (- x 1.0)) 3) (pow (+ x 1.0) 3)))

rewrite219.0ms

Algorithm
rewrite-expression-head
Rules
192×add-sqr-sqrt
96×*-un-lft-identity associate-*l*
92×times-frac
90×unpow-prod-down cube-prod
64×add-exp-log unswap-sqr
48×add-cube-cbrt
36×pow-exp prod-exp
28×associate-*r* sqr-pow
18×pow-to-exp
14×cube-div
12×div-exp distribute-lft-out-- difference-of-squares
associate-/r/ add-cbrt-cube
rec-exp 1-exp
pow1 expm1-log1p-u cube-mult frac-times flip3-- flip3-+ unpow3 associate-*r/ flip-- flip-+ log1p-expm1-u div-inv distribute-lft-out add-log-exp
pow-prod-down associate-*l/ *-commutative cbrt-unprod fma-udef
Counts
4 → 278
Calls
4 calls:
99.0ms
(* (pow (/ 1 (- x 1.0)) 3) (pow (+ x 1.0) 3))
100.0ms
(* (pow (/ 1 (- x 1.0)) 3) (pow (+ x 1.0) 3))
0.0ms
(fma (pow (/ x (- (* x x) (* 1.0 1.0))) 3) (pow (- x 1.0) 3) (- (* (pow (/ 1 (- x 1.0)) 3) (pow (+ x 1.0) 3))))
0.0ms
(fma (- (pow (/ 1 (- x 1.0)) 3)) (pow (+ x 1.0) 3) (* (pow (/ 1 (- x 1.0)) 3) (pow (+ x 1.0) 3)))

series891.0ms

Counts
4 → 12
Calls
4 calls:
69.0ms
(* (pow (/ 1 (- x 1.0)) 3) (pow (+ x 1.0) 3))
74.0ms
(* (pow (/ 1 (- x 1.0)) 3) (pow (+ x 1.0) 3))
317.0ms
(fma (pow (/ x (- (* x x) (* 1.0 1.0))) 3) (pow (- x 1.0) 3) (- (* (pow (/ 1 (- x 1.0)) 3) (pow (+ x 1.0) 3))))
430.0ms
(fma (- (pow (/ 1 (- x 1.0)) 3)) (pow (+ x 1.0) 3) (* (pow (/ 1 (- x 1.0)) 3) (pow (+ x 1.0) 3)))

simplify124.0ms

Algorithm
egg-herbie
Counts
290 → 290
Iterations

Useful iterations: 2 (90.0ms)

IterNodesCost
05812792
131682491
250012436

prune961.0ms

Pruning

7 alts after pruning (6 fresh and 1 done)

Merged error: 0.1b

regimes56.0ms

Accuracy

99.7% (0.1b remaining)

Error of 0.2b against oracle of 0.1b and baseline of 29.7b

bsearch122.0ms

Steps
ItersRangePoint
10
18189.836774986274
3039113653047454.0
18487.752119395096
7
-598248.8181308185
-11413.0783357711
-29617.572649619902

simplify3.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
08082
19382
210782
310982
410982

end0.0ms

sample557.0ms

Algorithm
intervals
Results
178.0ms1682×body1280valid
108.0ms1257×body640valid
89.0ms4111×body80valid
43.0ms642×body320valid
13.0ms308×body160valid