Details

Time bar (total: 4.7s)

sample25.0ms

Algorithm
intervals
Results
11.0ms269×body80valid
1.0msbody1280valid
1.0msbody640valid
0.0msbody320valid

simplify79.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 1 (4.0ms)

IterNodesCost
0548
11467
23377
310177
436597
550017

prune8.0ms

Pruning

2 alts after pruning (2 fresh and 0 done)

Merged error: 1.3b

localize11.0ms

Local error

Found 4 expressions with local error:

0.0b
(- (tanh (/ t y)) (tanh (/ x y)))
0.0b
(tanh (/ x y))
0.8b
(* z (- (tanh (/ t y)) (tanh (/ x y))))
1.5b
(fma y (* z (- (tanh (/ t y)) (tanh (/ x y)))) x)

rewrite29.0ms

Algorithm
rewrite-expression-head
Rules
31×add-sqr-sqrt
29×*-un-lft-identity
27×prod-diff
25×add-cube-cbrt
18×frac-sub
13×tanh-def
11×distribute-rgt-in distribute-lft-in associate-*r/
pow1 add-exp-log add-cbrt-cube add-log-exp
associate-*r*
expm1-log1p-u log1p-expm1-u
sub-neg fma-neg associate-*l*
flip3-- flip-- distribute-lft-out-- difference-of-squares
diff-log pow-prod-down prod-exp *-commutative cbrt-unprod fma-udef unswap-sqr
Counts
4 → 114
Calls
4 calls:
7.0ms
(- (tanh (/ t y)) (tanh (/ x y)))
2.0ms
(tanh (/ x y))
15.0ms
(* z (- (tanh (/ t y)) (tanh (/ x y))))
1.0ms
(fma y (* z (- (tanh (/ t y)) (tanh (/ x y)))) x)

series753.0ms

Counts
4 → 12
Calls
4 calls:
217.0ms
(- (tanh (/ t y)) (tanh (/ x y)))
81.0ms
(tanh (/ x y))
214.0ms
(* z (- (tanh (/ t y)) (tanh (/ x y))))
241.0ms
(fma y (* z (- (tanh (/ t y)) (tanh (/ x y)))) x)

simplify68.0ms

Algorithm
egg-herbie
Counts
126 → 126
Iterations

Useful iterations: 2 (53.0ms)

IterNodesCost
05601798
122571400
250011397

prune363.0ms

Pruning

6 alts after pruning (6 fresh and 0 done)

Merged error: 0.5b

localize12.0ms

Local error

Found 4 expressions with local error:

0.0b
(+ (* z (tanh (/ t y))) (* z (- (tanh (/ x y)))))
1.5b
(fma y (+ (* z (tanh (/ t y))) (* z (- (tanh (/ x y))))) x)
1.7b
(* z (tanh (/ t y)))
2.0b
(* z (- (tanh (/ x y))))

rewrite22.0ms

Algorithm
rewrite-expression-head
Rules
24×associate-*r/
14×add-sqr-sqrt
13×associate-*r*
12×distribute-neg-frac
10×add-cube-cbrt *-un-lft-identity
frac-add
pow1 add-exp-log add-cbrt-cube tanh-def
associate-*l* add-log-exp
expm1-log1p-u log1p-expm1-u
distribute-lft-neg-in distribute-rgt-neg-in distribute-rgt-neg-out
pow-prod-down prod-exp *-commutative cbrt-unprod unswap-sqr
+-commutative neg-mul-1 fma-def flip3-+ unsub-neg sum-log flip-+ fma-udef distribute-lft-out
Counts
4 → 90
Calls
4 calls:
7.0ms
(+ (* z (tanh (/ t y))) (* z (- (tanh (/ x y)))))
1.0ms
(fma y (+ (* z (tanh (/ t y))) (* z (- (tanh (/ x y))))) x)
5.0ms
(* z (tanh (/ t y)))
6.0ms
(* z (- (tanh (/ x y))))

series603.0ms

Counts
4 → 12
Calls
4 calls:
197.0ms
(+ (* z (tanh (/ t y))) (* z (- (tanh (/ x y)))))
238.0ms
(fma y (+ (* z (tanh (/ t y))) (* z (- (tanh (/ x y))))) x)
84.0ms
(* z (tanh (/ t y)))
85.0ms
(* z (- (tanh (/ x y))))

simplify68.0ms

Algorithm
egg-herbie
Counts
102 → 102
Iterations

Useful iterations: 2 (59.0ms)

IterNodesCost
0570898
12499831
25002827

prune332.0ms

Pruning

6 alts after pruning (5 fresh and 1 done)

Merged error: 0.5b

localize15.0ms

Local error

Found 3 expressions with local error:

0.0b
(tanh (/ x y))
0.0b
(- (tanh (/ t y)) (tanh (/ x y)))
4.6b
(* (* y z) (- (tanh (/ t y)) (tanh (/ x y))))

rewrite26.0ms

Algorithm
rewrite-expression-head
Rules
27×add-sqr-sqrt *-un-lft-identity prod-diff
23×add-cube-cbrt
18×frac-sub
13×tanh-def
11×distribute-rgt-in distribute-lft-in associate-*r/
pow1 add-exp-log add-cbrt-cube
associate-*r* add-log-exp
expm1-log1p-u sub-neg fma-neg pow-prod-down prod-exp cbrt-unprod log1p-expm1-u
flip3-- flip-- distribute-lft-out-- difference-of-squares
diff-log associate-*l* *-commutative
Counts
3 → 104
Calls
3 calls:
2.0ms
(tanh (/ x y))
7.0ms
(- (tanh (/ t y)) (tanh (/ x y)))
13.0ms
(* (* y z) (- (tanh (/ t y)) (tanh (/ x y))))

series458.0ms

Counts
3 → 9
Calls
3 calls:
79.0ms
(tanh (/ x y))
219.0ms
(- (tanh (/ t y)) (tanh (/ x y)))
159.0ms
(* (* y z) (- (tanh (/ t y)) (tanh (/ x y))))

simplify76.0ms

Algorithm
egg-herbie
Counts
113 → 113
Iterations

Useful iterations: 2 (62.0ms)

IterNodesCost
06471771
128681370
250011367

prune305.0ms

Pruning

7 alts after pruning (5 fresh and 2 done)

Merged error: 0.5b

localize11.0ms

Local error

Found 4 expressions with local error:

0.0b
(tanh (/ x y))
2.0b
(* z (- (tanh (/ x y))))
3.6b
(/ (* t z) y)
6.5b
(fma y (+ (/ (* t z) y) (* z (- (tanh (/ x y))))) x)

rewrite16.0ms

Algorithm
rewrite-expression-head
Rules
12×add-sqr-sqrt
11×add-exp-log add-cbrt-cube
10×add-cube-cbrt *-un-lft-identity associate-*r*
pow1
expm1-log1p-u log1p-expm1-u add-log-exp
distribute-lft-neg-in distribute-rgt-neg-in times-frac associate-*r/ associate-*l* associate-/r* distribute-neg-frac
cbrt-undiv div-exp prod-exp cbrt-unprod tanh-def
neg-mul-1 frac-2neg pow-prod-down clear-num *-commutative distribute-rgt-neg-out fma-udef div-inv associate-/l* unswap-sqr
Counts
4 → 76
Calls
4 calls:
2.0ms
(tanh (/ x y))
6.0ms
(* z (- (tanh (/ x y))))
4.0ms
(/ (* t z) y)
1.0ms
(fma y (+ (/ (* t z) y) (* z (- (tanh (/ x y))))) x)

series272.0ms

Counts
4 → 12
Calls
4 calls:
79.0ms
(tanh (/ x y))
86.0ms
(* z (- (tanh (/ x y))))
19.0ms
(/ (* t z) y)
88.0ms
(fma y (+ (/ (* t z) y) (* z (- (tanh (/ x y))))) x)

simplify40.0ms

Algorithm
egg-herbie
Counts
88 → 88
Iterations

Useful iterations: 1 (9.0ms)

IterNodesCost
0331464
11461412
25001412

prune425.0ms

Pruning

2 alts after pruning (1 fresh and 1 done)

Merged error: 0b

regimes66.0ms

Accuracy

-1.6% (2.0b remaining)

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

bsearch62.0ms

Steps
ItersRangePoint
10
-2.18548157849493e+148
-3.120279629663506e+138
-2.165089628162499e+148

simplify2.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
02512
12912
23012
33012

end0.0ms

sample600.0ms

Algorithm
intervals
Results
341.0ms8320×body80valid
16.0ms100×body640valid
11.0ms50×body1280valid
9.0ms74×body320valid
2.0ms31×body160valid