Details

Time bar (total: 9.1s)

sample170.0ms

Algorithm
intervals
Results
70.0ms1214×body80nan
24.0ms391×body80valid
4.0msbody1280valid
4.0ms10×body640valid
2.0ms11×body320valid
1.0ms10×body160valid

simplify39.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 0 (1.0ms)

IterNodesCost
03110
16210
213710
334410
4115510
5500110

prune3.0ms

Filtered
1 candidates to 0 candidates (0.0%)
Pruning

2 alts after pruning (2 fresh and 0 done)

PrunedKeptTotal
New011
Fresh011
Picked000
Done000
Total022

Merged error: 2.2b

Counts
2 → 1

localize17.0ms

Local error

Found 4 expressions with local error:

0.0b
(exp (+ (* y (- (log z) t)) (* a (- (log (- 1.0 z)) b))))
0.2b
(* y (- (log z) t))
0.8b
(+ (* y (- (log z) t)) (* a (- (log (- 1.0 z)) b)))
5.4b
(log (- 1.0 z))

rewrite25.0ms

Algorithm
rewrite-expression-head
Rules
10×distribute-rgt-in sub-neg distribute-lft-in associate-*r/ exp-sum
associate-+l+ associate-+r+
flip3-- flip--
frac-add
+-commutative log-div fma-def *-commutative
flip3-+ flip-+
Counts
4 → 36
Calls
4 calls:
9.0ms
(exp (+ (* y (- (log z) t)) (* a (- (log (- 1.0 z)) b))))
3.0ms
(* y (- (log z) t))
8.0ms
(+ (* y (- (log z) t)) (* a (- (log (- 1.0 z)) b)))
2.0ms
(log (- 1.0 z))

series438.0ms

Counts
4 → 12
Calls
4 calls:
140.0ms
(exp (+ (* y (- (log z) t)) (* a (- (log (- 1.0 z)) b))))
67.0ms
(* y (- (log z) t))
187.0ms
(+ (* y (- (log z) t)) (* a (- (log (- 1.0 z)) b)))
45.0ms
(log (- 1.0 z))

simplify48.0ms

Algorithm
egg-herbie
Counts
48 → 48
Iterations

Useful iterations: 2 (42.0ms)

IterNodesCost
0524486
11928471
25001465

prune173.0ms

Filtered
48 candidates to 33 candidates (68.8%)
Pruning

4 alts after pruning (4 fresh and 0 done)

PrunedKeptTotal
New44448
Fresh000
Picked101
Done000
Total45449

Merged error: 0.1b

Counts
49 → 4

localize23.0ms

Local error

Found 4 expressions with local error:

0.0b
(* a (- (- (log 1.0) (+ (* 1/2 (/ (pow z 2) (pow 1.0 2))) (* 1.0 z))) b))
0.1b
(exp (+ (* y (- (log z) t)) (* a (- (- (log 1.0) (+ (* 1/2 (/ (pow z 2) (pow 1.0 2))) (* 1.0 z))) b))))
0.2b
(* y (- (log z) t))
0.8b
(+ (* y (- (log z) t)) (* a (- (- (log 1.0) (+ (* 1/2 (/ (pow z 2) (pow 1.0 2))) (* 1.0 z))) b)))

rewrite36.0ms

Algorithm
rewrite-expression-head
Rules
18×distribute-rgt-in sub-neg distribute-lft-in
16×associate-+r+
14×exp-sum
12×associate-*r/ associate--l+
associate-+l+
flip3-- flip--
frac-add
*-commutative
+-commutative fma-def
flip3-+ flip-+
Counts
4 → 53
Calls
4 calls:
5.0ms
(* a (- (- (log 1.0) (+ (* 1/2 (/ (pow z 2) (pow 1.0 2))) (* 1.0 z))) b))
14.0ms
(exp (+ (* y (- (log z) t)) (* a (- (- (log 1.0) (+ (* 1/2 (/ (pow z 2) (pow 1.0 2))) (* 1.0 z))) b))))
4.0ms
(* y (- (log z) t))
10.0ms
(+ (* y (- (log z) t)) (* a (- (- (log 1.0) (+ (* 1/2 (/ (pow z 2) (pow 1.0 2))) (* 1.0 z))) b)))

series572.0ms

Counts
4 → 12
Calls
4 calls:
101.0ms
(* a (- (- (log 1.0) (+ (* 1/2 (/ (pow z 2) (pow 1.0 2))) (* 1.0 z))) b))
164.0ms
(exp (+ (* y (- (log z) t)) (* a (- (- (log 1.0) (+ (* 1/2 (/ (pow z 2) (pow 1.0 2))) (* 1.0 z))) b))))
72.0ms
(* y (- (log z) t))
234.0ms
(+ (* y (- (log z) t)) (* a (- (- (log 1.0) (+ (* 1/2 (/ (pow z 2) (pow 1.0 2))) (* 1.0 z))) b)))

simplify53.0ms

Algorithm
egg-herbie
Counts
65 → 65
Iterations

Useful iterations: 2 (43.0ms)

IterNodesCost
0489955
11906923
25003907

prune244.0ms

Filtered
65 candidates to 36 candidates (55.4%)
Pruning

4 alts after pruning (4 fresh and 0 done)

PrunedKeptTotal
New61465
Fresh303
Picked101
Done000
Total65469

Merged error: 0.1b

Counts
69 → 4

localize26.0ms

Local error

Found 4 expressions with local error:

0.0b
(* x (exp (+ (* y (log z)) (fma (- (log 1.0) (+ (fma 1/2 (/ (pow z 2) (pow 1.0 2)) (* 1.0 z)) b)) a (* y (- t))))))
0.1b
(exp (+ (* y (log z)) (fma (- (log 1.0) (+ (fma 1/2 (/ (pow z 2) (pow 1.0 2)) (* 1.0 z)) b)) a (* y (- t)))))
0.3b
(+ (* y (log z)) (fma (- (log 1.0) (+ (fma 1/2 (/ (pow z 2) (pow 1.0 2)) (* 1.0 z)) b)) a (* y (- t))))
0.3b
(* y (log z))

rewrite16.0ms

Algorithm
rewrite-expression-head
Rules
exp-sum
+-commutative associate-+r+ associate-*r* *-commutative fma-udef
fma-def
flip3-+ flip-+
Counts
4 → 14
Calls
4 calls:
5.0ms
(* x (exp (+ (* y (log z)) (fma (- (log 1.0) (+ (fma 1/2 (/ (pow z 2) (pow 1.0 2)) (* 1.0 z)) b)) a (* y (- t))))))
4.0ms
(exp (+ (* y (log z)) (fma (- (log 1.0) (+ (fma 1/2 (/ (pow z 2) (pow 1.0 2)) (* 1.0 z)) b)) a (* y (- t)))))
4.0ms
(+ (* y (log z)) (fma (- (log 1.0) (+ (fma 1/2 (/ (pow z 2) (pow 1.0 2)) (* 1.0 z)) b)) a (* y (- t))))
3.0ms
(* y (log z))

series657.0ms

Counts
4 → 12
Calls
4 calls:
225.0ms
(* x (exp (+ (* y (log z)) (fma (- (log 1.0) (+ (fma 1/2 (/ (pow z 2) (pow 1.0 2)) (* 1.0 z)) b)) a (* y (- t))))))
164.0ms
(exp (+ (* y (log z)) (fma (- (log 1.0) (+ (fma 1/2 (/ (pow z 2) (pow 1.0 2)) (* 1.0 z)) b)) a (* y (- t)))))
230.0ms
(+ (* y (log z)) (fma (- (log 1.0) (+ (fma 1/2 (/ (pow z 2) (pow 1.0 2)) (* 1.0 z)) b)) a (* y (- t))))
37.0ms
(* y (log z))

simplify70.0ms

Algorithm
egg-herbie
Counts
26 → 26
Iterations

Useful iterations: 2 (19.0ms)

IterNodesCost
0234274
1710262
22630253
35001253

prune124.0ms

Filtered
26 candidates to 19 candidates (73.1%)
Pruning

3 alts after pruning (3 fresh and 0 done)

PrunedKeptTotal
New24226
Fresh213
Picked101
Done000
Total27330

Merged error: 0.1b

Counts
30 → 3

localize23.0ms

Local error

Found 4 expressions with local error:

0.0b
(fma (- (log 1.0) (+ (fma 1/2 (/ (pow z 2) (pow 1.0 2)) (* 1.0 z)) b)) a (* y (- t)))
0.0b
(* x (exp (fma y (log z) (fma (- (log 1.0) (+ (fma 1/2 (/ (pow z 2) (pow 1.0 2)) (* 1.0 z)) b)) a (* y (- t))))))
0.1b
(exp (fma y (log z) (fma (- (log 1.0) (+ (fma 1/2 (/ (pow z 2) (pow 1.0 2)) (* 1.0 z)) b)) a (* y (- t)))))
0.1b
(fma y (log z) (fma (- (log 1.0) (+ (fma 1/2 (/ (pow z 2) (pow 1.0 2)) (* 1.0 z)) b)) a (* y (- t))))

rewrite6.0ms

Algorithm
rewrite-expression-head
Rules
fma-udef
exp-sum
associate-*r* *-commutative
Counts
4 → 5
Calls
4 calls:
1.0ms
(fma (- (log 1.0) (+ (fma 1/2 (/ (pow z 2) (pow 1.0 2)) (* 1.0 z)) b)) a (* y (- t)))
2.0ms
(* x (exp (fma y (log z) (fma (- (log 1.0) (+ (fma 1/2 (/ (pow z 2) (pow 1.0 2)) (* 1.0 z)) b)) a (* y (- t))))))
1.0ms
(exp (fma y (log z) (fma (- (log 1.0) (+ (fma 1/2 (/ (pow z 2) (pow 1.0 2)) (* 1.0 z)) b)) a (* y (- t)))))
1.0ms
(fma y (log z) (fma (- (log 1.0) (+ (fma 1/2 (/ (pow z 2) (pow 1.0 2)) (* 1.0 z)) b)) a (* y (- t))))

series805.0ms

Counts
4 → 12
Calls
4 calls:
177.0ms
(fma (- (log 1.0) (+ (fma 1/2 (/ (pow z 2) (pow 1.0 2)) (* 1.0 z)) b)) a (* y (- t)))
224.0ms
(* x (exp (fma y (log z) (fma (- (log 1.0) (+ (fma 1/2 (/ (pow z 2) (pow 1.0 2)) (* 1.0 z)) b)) a (* y (- t))))))
174.0ms
(exp (fma y (log z) (fma (- (log 1.0) (+ (fma 1/2 (/ (pow z 2) (pow 1.0 2)) (* 1.0 z)) b)) a (* y (- t)))))
230.0ms
(fma y (log z) (fma (- (log 1.0) (+ (fma 1/2 (/ (pow z 2) (pow 1.0 2)) (* 1.0 z)) b)) a (* y (- t))))

simplify42.0ms

Algorithm
egg-herbie
Counts
17 → 17
Iterations

Useful iterations: 3 (39.0ms)

IterNodesCost
0159134
1465128
21563123
35002118

prune59.0ms

Filtered
17 candidates to 12 candidates (70.6%)
Pruning

3 alts after pruning (2 fresh and 1 done)

PrunedKeptTotal
New17017
Fresh022
Picked011
Done000
Total17320

Merged error: 0.1b

Counts
20 → 3

regimes180.0ms

Accuracy

0% (0.1b remaining)

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

bsearch0.0ms

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
03015
13415
23515
33515

end0.0ms

sample5.3s

Algorithm
intervals
Results
2.3s40835×body80nan
784.0ms12515×body80valid
131.0ms367×body640valid
94.0ms429×body320valid
58.0ms79×body1280valid
37.0ms269×body160valid