Details

Time bar (total: 6.0s)

sample55.0ms

Algorithm
intervals
Results
34.0ms623×body80valid

simplify52.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 2 (7.0ms)

IterNodesCost
05515
117914
256113
3182413
4500213

prune6.0ms

Pruning

1 alts after pruning (1 fresh and 0 done)

Merged error: 0.2b

localize16.0ms

Local error

Found 4 expressions with local error:

0.0b
(+ (pow (+ (* a a) (* b b)) 2.0) (* 4.0 (+ (* (* a a) (+ 1.0 a)) (* (* b b) (- 1.0 (* 3.0 a))))))
0.1b
(* (* a a) (+ 1.0 a))
0.3b
(pow (+ (* a a) (* b b)) 2.0)
0.5b
(* (* b b) (- 1.0 (* 3.0 a)))

rewrite140.0ms

Algorithm
rewrite-expression-head
Rules
15×pow1 add-exp-log
14×add-sqr-sqrt *-un-lft-identity add-cbrt-cube
12×add-cube-cbrt
distribute-rgt-in fma-def distribute-lft-in associate-*r*
unpow-prod-down prod-diff pow-prod-down prod-exp cbrt-unprod add-log-exp
expm1-log1p-u associate-*r/ log1p-expm1-u
pow-unpow
sub-neg associate-+r+ flip3-+ associate-*l* *-commutative flip-+ unswap-sqr sqr-pow
+-commutative pow-to-exp flip3-- pow-pow pow-exp sum-log flip-- distribute-lft-out
Counts
4 → 100
Calls
4 calls:
65.0ms
(+ (pow (+ (* a a) (* b b)) 2.0) (* 4.0 (+ (* (* a a) (+ 1.0 a)) (* (* b b) (- 1.0 (* 3.0 a))))))
30.0ms
(* (* a a) (+ 1.0 a))
10.0ms
(pow (+ (* a a) (* b b)) 2.0)
32.0ms
(* (* b b) (- 1.0 (* 3.0 a)))

series329.0ms

Counts
4 → 12
Calls
4 calls:
120.0ms
(+ (pow (+ (* a a) (* b b)) 2.0) (* 4.0 (+ (* (* a a) (+ 1.0 a)) (* (* b b) (- 1.0 (* 3.0 a))))))
51.0ms
(* (* a a) (+ 1.0 a))
105.0ms
(pow (+ (* a a) (* b b)) 2.0)
53.0ms
(* (* b b) (- 1.0 (* 3.0 a)))

simplify86.0ms

Algorithm
egg-herbie
Counts
112 → 112
Iterations

Useful iterations: 2 (74.0ms)

IterNodesCost
0564828
12826724
25001715

prune308.0ms

Pruning

6 alts after pruning (6 fresh and 0 done)

Merged error: 0.0b

localize18.0ms

Local error

Found 4 expressions with local error:

0.0b
(* 4.0 (+ (* (* a a) (+ 1.0 a)) (* (* b b) (- 1.0 (* 3.0 a)))))
0.1b
(* (* a a) (+ 1.0 a))
0.2b
(fma (pow (+ (* a a) (* b b)) (/ 2.0 2)) (pow (+ (* a a) (* b b)) (/ 2.0 2)) (* 4.0 (+ (* (* a a) (+ 1.0 a)) (* (* b b) (- 1.0 (* 3.0 a))))))
0.5b
(* (* b b) (- 1.0 (* 3.0 a)))

rewrite153.0ms

Algorithm
rewrite-expression-head
Rules
18×associate-*r/
16×pow1 add-exp-log add-cbrt-cube
14×add-sqr-sqrt
12×*-un-lft-identity
10×add-cube-cbrt associate-*r*
distribute-rgt-in distribute-lft-in pow-prod-down prod-exp cbrt-unprod
prod-diff
associate-*l*
expm1-log1p-u flip3-+ frac-add flip-+ log1p-expm1-u add-log-exp
flip3-- *-commutative flip-- unswap-sqr
sub-neg
fma-udef distribute-lft-out
Counts
4 → 97
Calls
4 calls:
87.0ms
(* 4.0 (+ (* (* a a) (+ 1.0 a)) (* (* b b) (- 1.0 (* 3.0 a)))))
31.0ms
(* (* a a) (+ 1.0 a))
0.0ms
(fma (pow (+ (* a a) (* b b)) (/ 2.0 2)) (pow (+ (* a a) (* b b)) (/ 2.0 2)) (* 4.0 (+ (* (* a a) (+ 1.0 a)) (* (* b b) (- 1.0 (* 3.0 a))))))
32.0ms
(* (* b b) (- 1.0 (* 3.0 a)))

series297.0ms

Counts
4 → 12
Calls
4 calls:
69.0ms
(* 4.0 (+ (* (* a a) (+ 1.0 a)) (* (* b b) (- 1.0 (* 3.0 a)))))
48.0ms
(* (* a a) (+ 1.0 a))
129.0ms
(fma (pow (+ (* a a) (* b b)) (/ 2.0 2)) (pow (+ (* a a) (* b b)) (/ 2.0 2)) (* 4.0 (+ (* (* a a) (+ 1.0 a)) (* (* b b) (- 1.0 (* 3.0 a))))))
50.0ms
(* (* b b) (- 1.0 (* 3.0 a)))

simplify102.0ms

Algorithm
egg-herbie
Counts
109 → 109
Iterations

Useful iterations: 2 (92.0ms)

IterNodesCost
06661047
13763904
25001897

prune340.0ms

Pruning

4 alts after pruning (4 fresh and 0 done)

Merged error: 0.0b

localize19.0ms

Local error

Found 4 expressions with local error:

0.5b
(* (* b b) (- 1.0 (* 3.0 a)))
0.5b
(* (* b b) (- 1.0 (* 3.0 a)))
8.5b
(sqrt (+ (pow (+ (* a a) (* b b)) 2.0) (* 4.0 (+ (* (* a a) (+ 1.0 a)) (* (* b b) (- 1.0 (* 3.0 a)))))))
8.5b
(sqrt (+ (pow (+ (* a a) (* b b)) 2.0) (* 4.0 (+ (* (* a a) (+ 1.0 a)) (* (* b b) (- 1.0 (* 3.0 a)))))))

rewrite194.0ms

Algorithm
rewrite-expression-head
Rules
16×pow1 add-sqr-sqrt
14×add-exp-log add-cbrt-cube
12×add-cube-cbrt *-un-lft-identity prod-diff
10×distribute-rgt-in distribute-lft-in
associate-*r* pow-prod-down prod-exp sqrt-prod cbrt-unprod
expm1-log1p-u sub-neg sqrt-div associate-*r/ log1p-expm1-u add-log-exp
rem-sqrt-square flip3-- sqrt-pow1 flip3-+ pow1/2 associate-*l* *-commutative flip-- flip-+ unswap-sqr
Counts
4 → 100
Calls
4 calls:
30.0ms
(* (* b b) (- 1.0 (* 3.0 a)))
30.0ms
(* (* b b) (- 1.0 (* 3.0 a)))
65.0ms
(sqrt (+ (pow (+ (* a a) (* b b)) 2.0) (* 4.0 (+ (* (* a a) (+ 1.0 a)) (* (* b b) (- 1.0 (* 3.0 a)))))))
66.0ms
(sqrt (+ (pow (+ (* a a) (* b b)) 2.0) (* 4.0 (+ (* (* a a) (+ 1.0 a)) (* (* b b) (- 1.0 (* 3.0 a)))))))

series454.0ms

Counts
4 → 12
Calls
4 calls:
53.0ms
(* (* b b) (- 1.0 (* 3.0 a)))
48.0ms
(* (* b b) (- 1.0 (* 3.0 a)))
175.0ms
(sqrt (+ (pow (+ (* a a) (* b b)) 2.0) (* 4.0 (+ (* (* a a) (+ 1.0 a)) (* (* b b) (- 1.0 (* 3.0 a)))))))
178.0ms
(sqrt (+ (pow (+ (* a a) (* b b)) 2.0) (* 4.0 (+ (* (* a a) (+ 1.0 a)) (* (* b b) (- 1.0 (* 3.0 a)))))))

simplify52.0ms

Algorithm
egg-herbie
Counts
112 → 112
Iterations

Useful iterations: 2 (39.0ms)

IterNodesCost
03881306
116741186
250021176

prune371.0ms

Pruning

4 alts after pruning (3 fresh and 1 done)

Merged error: 0.0b

localize24.0ms

Local error

Found 4 expressions with local error:

0.5b
(* (* b b) (- 1.0 (* 3.0 a)))
9.0b
(cbrt (fma (pow (+ (* a a) (* b b)) (/ 2.0 2)) (pow (+ (* a a) (* b b)) (/ 2.0 2)) (* 4.0 (+ (* (* a a) (+ 1.0 a)) (* (* b b) (- 1.0 (* 3.0 a)))))))
9.0b
(cbrt (fma (pow (+ (* a a) (* b b)) (/ 2.0 2)) (pow (+ (* a a) (* b b)) (/ 2.0 2)) (* 4.0 (+ (* (* a a) (+ 1.0 a)) (* (* b b) (- 1.0 (* 3.0 a)))))))
9.0b
(cbrt (fma (pow (+ (* a a) (* b b)) (/ 2.0 2)) (pow (+ (* a a) (* b b)) (/ 2.0 2)) (* 4.0 (+ (* (* a a) (+ 1.0 a)) (* (* b b) (- 1.0 (* 3.0 a)))))))

rewrite37.0ms

Algorithm
rewrite-expression-head
Rules
11×add-sqr-sqrt
10×add-cube-cbrt *-un-lft-identity
pow1 add-exp-log cbrt-prod add-cbrt-cube
prod-diff
distribute-rgt-in distribute-lft-in
expm1-log1p-u log1p-expm1-u add-log-exp
pow1/3 associate-*r* pow-prod-down prod-exp cbrt-unprod
sub-neg associate-*r/
flip3-- associate-*l* *-commutative flip-- unswap-sqr
Counts
4 → 72
Calls
4 calls:
32.0ms
(* (* b b) (- 1.0 (* 3.0 a)))
1.0ms
(cbrt (fma (pow (+ (* a a) (* b b)) (/ 2.0 2)) (pow (+ (* a a) (* b b)) (/ 2.0 2)) (* 4.0 (+ (* (* a a) (+ 1.0 a)) (* (* b b) (- 1.0 (* 3.0 a)))))))
1.0ms
(cbrt (fma (pow (+ (* a a) (* b b)) (/ 2.0 2)) (pow (+ (* a a) (* b b)) (/ 2.0 2)) (* 4.0 (+ (* (* a a) (+ 1.0 a)) (* (* b b) (- 1.0 (* 3.0 a)))))))
1.0ms
(cbrt (fma (pow (+ (* a a) (* b b)) (/ 2.0 2)) (pow (+ (* a a) (* b b)) (/ 2.0 2)) (* 4.0 (+ (* (* a a) (+ 1.0 a)) (* (* b b) (- 1.0 (* 3.0 a)))))))

series844.0ms

Counts
4 → 12
Calls
4 calls:
49.0ms
(* (* b b) (- 1.0 (* 3.0 a)))
267.0ms
(cbrt (fma (pow (+ (* a a) (* b b)) (/ 2.0 2)) (pow (+ (* a a) (* b b)) (/ 2.0 2)) (* 4.0 (+ (* (* a a) (+ 1.0 a)) (* (* b b) (- 1.0 (* 3.0 a)))))))
266.0ms
(cbrt (fma (pow (+ (* a a) (* b b)) (/ 2.0 2)) (pow (+ (* a a) (* b b)) (/ 2.0 2)) (* 4.0 (+ (* (* a a) (+ 1.0 a)) (* (* b b) (- 1.0 (* 3.0 a)))))))
262.0ms
(cbrt (fma (pow (+ (* a a) (* b b)) (/ 2.0 2)) (pow (+ (* a a) (* b b)) (/ 2.0 2)) (* 4.0 (+ (* (* a a) (+ 1.0 a)) (* (* b b) (- 1.0 (* 3.0 a)))))))

simplify50.0ms

Algorithm
egg-herbie
Counts
84 → 84
Iterations

Useful iterations: 2 (36.0ms)

IterNodesCost
03771702
114951526
250011476

prune397.0ms

Pruning

5 alts after pruning (3 fresh and 2 done)

Merged error: 0.0b

regimes145.0ms

Accuracy

0% (0.2b remaining)

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

bsearch0.0ms

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
02932
12932

end0.0ms

sample1.5s

Algorithm
intervals
Results
1.0s20611×body80valid