Details

Time bar (total: 5.2s)

sample25.0ms

Algorithm
intervals
Results
10.0ms273×body80valid
1.0msbody320valid
0.0msbody640valid
0.0msbody160valid

simplify75.0ms

Algorithm
egg-herbie
Counts
1 → 1
Iterations

Useful iterations: 1 (3.0ms)

IterNodesCost
0548
11467
23377
310177
436597
550017

prune8.0ms

Pruning

2 alts after pruning (2 fresh and 0 done)

Merged error: 2.5b

localize11.0ms

Local error

Found 4 expressions with local error:

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

rewrite56.0ms

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

series700.0ms

Counts
4 → 12
Calls
4 calls:
89.0ms
(tanh (/ x y))
89.0ms
(tanh (/ t y))
242.0ms
(* z (- (tanh (/ t y)) (tanh (/ x y))))
280.0ms
(fma y (* z (- (tanh (/ t y)) (tanh (/ x y)))) x)

simplify53.0ms

Algorithm
egg-herbie
Counts
101 → 101
Iterations

Useful iterations: 1 (11.0ms)

IterNodesCost
04741186
11938917
25002917

prune302.0ms

Pruning

6 alts after pruning (6 fresh and 0 done)

Merged error: 0.7b

localize12.0ms

Local error

Found 4 expressions with local error:

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

rewrite146.0ms

Algorithm
rewrite-expression-head
Rules
55×distribute-rgt-in distribute-lft-in
54×prod-diff
47×add-sqr-sqrt
45×*-un-lft-identity
43×add-cube-cbrt
33×associate-*r/
18×frac-sub
14×tanh-def
11×pow1 add-exp-log add-cbrt-cube
sub-neg associate-*r* associate-*l*
expm1-log1p-u pow-prod-down prod-exp cbrt-unprod log1p-expm1-u add-log-exp
flip3-- *-commutative flip--
distribute-lft-out-- difference-of-squares unswap-sqr
Counts
4 → 154
Calls
4 calls:
4.0ms
(tanh (/ x y))
2.0ms
(tanh (/ t y))
44.0ms
(* z (- (tanh (/ t y)) (tanh (/ x y))))
88.0ms
(* y (* z (- (tanh (/ t y)) (tanh (/ x y)))))

series606.0ms

Counts
4 → 12
Calls
4 calls:
84.0ms
(tanh (/ x y))
90.0ms
(tanh (/ t y))
249.0ms
(* z (- (tanh (/ t y)) (tanh (/ x y))))
182.0ms
(* y (* z (- (tanh (/ t y)) (tanh (/ x y)))))

simplify84.0ms

Algorithm
egg-herbie
Counts
166 → 166
Iterations

Useful iterations: 1 (16.0ms)

IterNodesCost
06792657
127811892
250011892

prune373.0ms

Pruning

6 alts after pruning (5 fresh and 1 done)

Merged error: 0.7b

localize12.0ms

Local error

Found 4 expressions with local error:

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

rewrite81.0ms

Algorithm
rewrite-expression-head
Rules
28×add-sqr-sqrt *-un-lft-identity
27×prod-diff
24×add-cube-cbrt
18×frac-sub
14×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 pow-prod-down prod-exp cbrt-unprod
flip3-- flip-- distribute-lft-out-- difference-of-squares
diff-log associate-*l* *-commutative
Counts
4 → 116
Calls
4 calls:
2.0ms
(tanh (/ x y))
14.0ms
(- (tanh (/ t y)) (tanh (/ x y)))
2.0ms
(tanh (/ t y))
56.0ms
(* (* y z) (- (tanh (/ t y)) (tanh (/ x y))))

series611.0ms

Counts
4 → 12
Calls
4 calls:
87.0ms
(tanh (/ x y))
255.0ms
(- (tanh (/ t y)) (tanh (/ x y)))
90.0ms
(tanh (/ t y))
179.0ms
(* (* y z) (- (tanh (/ t y)) (tanh (/ x y))))

simplify83.0ms

Algorithm
egg-herbie
Counts
128 → 128
Iterations

Useful iterations: 2 (64.0ms)

IterNodesCost
06501841
128801440
250021437

prune361.0ms

Pruning

6 alts after pruning (5 fresh and 1 done)

Merged error: 0.7b

localize9.0ms

Local error

Found 3 expressions with local error:

0.0b
(tanh (/ t y))
1.8b
(fma y (* z (- (tanh (/ t y)) 0)) x)
2.1b
(* z (- (tanh (/ t y)) 0))

rewrite41.0ms

Algorithm
rewrite-expression-head
Rules
21×add-sqr-sqrt
19×*-un-lft-identity
18×prod-diff
17×add-cube-cbrt
11×distribute-rgt-in distribute-lft-in
pow1 add-exp-log associate-*r* add-cbrt-cube
expm1-log1p-u associate-*l* log1p-expm1-u add-log-exp
sub-neg associate-*r/
flip3-- pow-prod-down prod-exp *-commutative flip-- cbrt-unprod fma-udef tanh-def distribute-lft-out-- difference-of-squares unswap-sqr
Counts
3 → 68
Calls
3 calls:
2.0ms
(tanh (/ t y))
0.0ms
(fma y (* z (- (tanh (/ t y)) 0)) x)
33.0ms
(* z (- (tanh (/ t y)) 0))

series330.0ms

Counts
3 → 9
Calls
3 calls:
87.0ms
(tanh (/ t y))
147.0ms
(fma y (* z (- (tanh (/ t y)) 0)) x)
96.0ms
(* z (- (tanh (/ t y)) 0))

simplify41.0ms

Algorithm
egg-herbie
Counts
77 → 77
Iterations

Useful iterations: 2 (35.0ms)

IterNodesCost
0275629
11106374
25001328

prune165.0ms

Pruning

6 alts after pruning (5 fresh and 1 done)

Merged error: 0.7b

regimes123.0ms

Accuracy

-1.6% (4.1b remaining)

Error of 4.8b against oracle of 0.7b and baseline of 4.8b

bsearch22.0ms

Steps
ItersRangePoint
5
-2.6742775223269694e+266
-9.77429183080671e+265
-2.2284208632084627e+266

simplify1.0ms

Algorithm
egg-herbie
Iterations

Useful iterations: 0 (0.0ms)

IterNodesCost
02110
12110

end0.0ms

sample864.0ms

Algorithm
intervals
Results
524.0ms8313×body80valid
15.0ms105×body640valid
10.0ms51×body1280valid
7.0ms66×body320valid
3.0ms41×body160valid