Details

Time bar (total: 4.4s)

sample94.0ms

Algorithm
intervals
Results
50.0ms105×body1280valid
17.0ms58×body640valid
5.0ms19×body320valid
4.0ms64×body80valid
2.0ms10×body160valid

simplify3.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
0209
1209

prune12.0ms

Filtered
1 candidates to 1 candidates (0.0%)
Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New011
Fresh011
Picked000
Done000
Total022

Merged error: 15.1b

Counts
2 → 2

localize11.0ms

Local error

Found 3 expressions with local error:

0.1b
(* r (sin b))
0.3b
(/ (* r (sin b)) (cos (+ a b)))
2.2b
(cos (+ a b))

rewrite18.0ms

Algorithm
rewrite-expression-head
Rules
10×add-exp-log add-cbrt-cube
add-sqr-sqrt
add-cube-cbrt *-un-lft-identity
pow1
times-frac associate-*r* associate-*l* associate-/r* add-log-exp
cbrt-undiv div-exp prod-exp cbrt-unprod
cos-sum frac-2neg pow-prod-down clear-num *-commutative div-inv associate-/l* unswap-sqr
Counts
3 → 47
Calls
3 calls:
4.0ms
(* r (sin b))
5.0ms
(/ (* r (sin b)) (cos (+ a b)))
7.0ms
(cos (+ a b))

series39.0ms

Counts
3 → 9
Calls
3 calls:
7.0ms
(* r (sin b))
25.0ms
(/ (* r (sin b)) (cos (+ a b)))
6.0ms
(cos (+ a b))

simplify63.0ms

Algorithm
egg-herbie
Counts
56 → 56
Iterations

Useful iterations: 0 (59.0ms)

IterNodesCost
05047439

prune87.0ms

Filtered
43 candidates to 56 candidates (-30.2%)
Pruning

7 alts after pruning (7 fresh and 0 done)

PrunedKeptTotal
New50656
Fresh011
Picked101
Done000
Total51758

Merged error: 0.2b

Counts
58 → 7

localize17.0ms

Local error

Found 4 expressions with local error:

0.1b
(- (* (cos a) (cos b)) (* (sin a) (sin b)))
0.1b
(* r (sin b))
0.2b
(* (sin a) (sin b))
0.3b
(/ (* r (sin b)) (- (* (cos a) (cos b)) (* (sin a) (sin b))))

rewrite24.0ms

Algorithm
rewrite-expression-head
Rules
14×add-sqr-sqrt
13×add-exp-log add-cbrt-cube
10×add-cube-cbrt *-un-lft-identity
pow1
associate-*r* associate-*l* add-log-exp
sin-mult
associate-/r/ cos-mult
times-frac prod-exp associate-/r* cbrt-unprod
cbrt-undiv flip3-- div-exp pow-prod-down *-commutative frac-sub flip-- sub-div unswap-sqr
sub-neg frac-2neg diff-log clear-num div-inv associate-/l*
Counts
4 → 76
Calls
4 calls:
5.0ms
(- (* (cos a) (cos b)) (* (sin a) (sin b)))
4.0ms
(* r (sin b))
4.0ms
(* (sin a) (sin b))
9.0ms
(/ (* r (sin b)) (- (* (cos a) (cos b)) (* (sin a) (sin b))))

series86.0ms

Counts
4 → 12
Calls
4 calls:
17.0ms
(- (* (cos a) (cos b)) (* (sin a) (sin b)))
7.0ms
(* r (sin b))
11.0ms
(* (sin a) (sin b))
51.0ms
(/ (* r (sin b)) (- (* (cos a) (cos b)) (* (sin a) (sin b))))

simplify48.0ms

Algorithm
egg-herbie
Counts
88 → 88
Iterations

Useful iterations: 0 (41.0ms)

IterNodesCost
05440981

prune127.0ms

Filtered
65 candidates to 88 candidates (-35.4%)
Pruning

8 alts after pruning (8 fresh and 0 done)

PrunedKeptTotal
New80888
Fresh606
Picked101
Done000
Total87895

Merged error: 0.0b

Counts
95 → 8

localize17.0ms

Local error

Found 4 expressions with local error:

0.1b
(- (* (/ (cos b) (sin b)) (cos a)) (sin a))
0.2b
(/ (cos b) (sin b))
0.2b
(* (/ (cos b) (sin b)) (cos a))
0.2b
(/ r (- (* (/ (cos b) (sin b)) (cos a)) (sin a)))

rewrite30.0ms

Algorithm
rewrite-expression-head
Rules
33×add-sqr-sqrt
28×add-cube-cbrt *-un-lft-identity times-frac
13×add-exp-log associate-*l* add-cbrt-cube
pow1 associate-/r* associate-/l* add-log-exp
cbrt-undiv div-exp associate-*r* div-inv
flip3-- frac-2neg prod-exp clear-num associate-/r/ flip-- cbrt-unprod unswap-sqr
sub-neg diff-log pow-prod-down associate-*l/ *-commutative
Counts
4 → 100
Calls
4 calls:
6.0ms
(- (* (/ (cos b) (sin b)) (cos a)) (sin a))
4.0ms
(/ (cos b) (sin b))
7.0ms
(* (/ (cos b) (sin b)) (cos a))
8.0ms
(/ r (- (* (/ (cos b) (sin b)) (cos a)) (sin a)))

series85.0ms

Counts
4 → 12
Calls
4 calls:
19.0ms
(- (* (/ (cos b) (sin b)) (cos a)) (sin a))
6.0ms
(/ (cos b) (sin b))
15.0ms
(* (/ (cos b) (sin b)) (cos a))
46.0ms
(/ r (- (* (/ (cos b) (sin b)) (cos a)) (sin a)))

simplify44.0ms

Algorithm
egg-herbie
Counts
112 → 112
Iterations

Useful iterations: 0 (33.0ms)

IterNodesCost
051511440

prune132.0ms

Filtered
82 candidates to 112 candidates (-36.6%)
Pruning

8 alts after pruning (8 fresh and 0 done)

PrunedKeptTotal
New1111112
Fresh077
Picked101
Done000
Total1128120

Merged error: 0.0b

Counts
120 → 8

localize17.0ms

Local error

Found 4 expressions with local error:

0.1b
(- (* (cos a) (cos b)) (* (sin b) (sin a)))
0.2b
(* r (/ (sin b) (- (* (cos a) (cos b)) (* (sin b) (sin a)))))
0.2b
(* (sin b) (sin a))
0.2b
(/ (sin b) (- (* (cos a) (cos b)) (* (sin b) (sin a))))

rewrite31.0ms

Algorithm
rewrite-expression-head
Rules
29×add-sqr-sqrt
22×add-cube-cbrt *-un-lft-identity
20×associate-*r*
19×times-frac
13×add-exp-log add-cbrt-cube
pow1 associate-/r/
sin-mult
associate-*l* cos-mult add-log-exp
flip3-- prod-exp associate-/r* frac-sub flip-- cbrt-unprod associate-/l* sub-div unswap-sqr
cbrt-undiv div-exp pow-prod-down *-commutative div-inv
sub-neg frac-2neg diff-log associate-*r/ clear-num
Counts
4 → 100
Calls
4 calls:
5.0ms
(- (* (cos a) (cos b)) (* (sin b) (sin a)))
11.0ms
(* r (/ (sin b) (- (* (cos a) (cos b)) (* (sin b) (sin a)))))
5.0ms
(* (sin b) (sin a))
8.0ms
(/ (sin b) (- (* (cos a) (cos b)) (* (sin b) (sin a))))

series108.0ms

Counts
4 → 12
Calls
4 calls:
17.0ms
(- (* (cos a) (cos b)) (* (sin b) (sin a)))
51.0ms
(* r (/ (sin b) (- (* (cos a) (cos b)) (* (sin b) (sin a)))))
10.0ms
(* (sin b) (sin a))
31.0ms
(/ (sin b) (- (* (cos a) (cos b)) (* (sin b) (sin a))))

simplify55.0ms

Algorithm
egg-herbie
Counts
112 → 112
Iterations

Useful iterations: 0 (43.0ms)

IterNodesCost
053701722

prune101.0ms

Filtered
87 candidates to 112 candidates (-28.7%)
Pruning

9 alts after pruning (8 fresh and 1 done)

PrunedKeptTotal
New1111112
Fresh077
Picked011
Done000
Total1119120

Merged error: 0b

Counts
120 → 9

regimes248.0ms

Accuracy

0% (0.3b remaining)

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

bsearch0.0ms

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
01516
11516

end0.0ms

sample2.9s

Algorithm
intervals
Results
1.6s2865×body1280valid
561.0ms1867×body640valid
174.0ms791×body320valid
155.0ms2127×body80valid
58.0ms351×body160valid

Profiling

Loading profile data...