Time bar (total: 3.3s)
| 1× | search |
| True | Other | False | Iter |
|---|---|---|---|
| 0% | 100% | 0% | 0 |
| 0% | 100% | 0% | 1 |
| 0% | 100% | 0% | 2 |
| 50% | 50% | 0% | 3 |
| 50% | 25% | 25% | 4 |
| 50% | 12.5% | 37.5% | 5 |
| 50% | 6.2% | 43.8% | 6 |
| 50% | 3.1% | 46.9% | 7 |
| 50% | 1.6% | 48.5% | 8 |
| 50% | 1.6% | 48.5% | 9 |
| 50.4% | 1.2% | 48.5% | 10 |
| 50.4% | 1.2% | 48.5% | 11 |
| 50.4% | 1.1% | 48.6% | 12 |
| 50.4% | 1% | 48.6% | 13 |
| 50.5% | 0.9% | 48.6% | 14 |
Compiled 15 to 8 computations (46.7% saved)
| 1.8s | 4077× | body | 1024 | valid |
| 547.0ms | 2004× | body | 512 | valid |
| 208.0ms | 411× | body | 2048 | valid |
| 180.0ms | 1000× | body | 256 | valid |
| 135.0ms | 764× | body | 128 | valid |
Compiled 30 to 16 computations (46.7% saved)
| 2× | egg-herbie |
| 720× | fma-def_binary64 |
| 478× | fma-neg_binary64 |
| 464× | times-frac_binary64 |
| 264× | associate-*l*_binary64 |
| 226× | associate-*r*_binary64 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 8 | 22 |
| 1 | 20 | 22 |
| 2 | 35 | 22 |
| 3 | 59 | 22 |
| 4 | 133 | 22 |
| 5 | 336 | 22 |
| 6 | 878 | 22 |
| 7 | 2569 | 22 |
| 0 | 1 | 1 |
| 1× | saturated |
| 1× | node limit |
| Inputs |
|---|
0 |
| Outputs |
|---|
0 |
| Inputs |
|---|
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) |
| Outputs |
|---|
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) |
Compiled 14 to 7 computations (50% saved)
| 1× | egg-herbie |
| 720× | fma-def_binary64 |
| 478× | fma-neg_binary64 |
| 464× | times-frac_binary64 |
| 264× | associate-*l*_binary64 |
| 226× | associate-*r*_binary64 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 8 | 22 |
| 1 | 20 | 22 |
| 2 | 35 | 22 |
| 3 | 59 | 22 |
| 4 | 133 | 22 |
| 5 | 336 | 22 |
| 6 | 878 | 22 |
| 7 | 2569 | 22 |
| 1× | node limit |
| Inputs |
|---|
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) |
| Outputs |
|---|
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) |
2 alts after pruning (2 fresh and 0 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 0 | 1 | 1 |
| Fresh | 0 | 1 | 1 |
| Picked | 0 | 0 | 0 |
| Done | 0 | 0 | 0 |
| Total | 0 | 2 | 2 |
| Status | Error | Program |
|---|---|---|
| ▶ | 58.5b | (/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) |
Compiled 42 to 21 computations (50% saved)
Found 2 expressions with local error:
| New | Error | Program |
|---|---|---|
| ✓ | 0.7b | (/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) |
| ✓ | 5.0b | (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) |
6 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 7.0ms | x | @ | inf | (/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) |
| 5.0ms | x | @ | -inf | (/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) |
| 1.0ms | x | @ | 0 | (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) |
| 1.0ms | x | @ | 0 | (/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) |
| 0.0ms | x | @ | inf | (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) |
| 2× | egg-rewrite-iter-limit |
| 2× | egg-rewrite |
| 1× | batch-egg-rewrite |
| 99× | add-sqr-sqrt_binary64 |
| 99× | add-sqr-sqrt_binary64 |
| 95× | *-un-lft-identity_binary64 |
| 95× | pow1_binary64 |
| 95× | *-un-lft-identity_binary64 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 8 | 12 |
| 1 | 186 | 12 |
| 2 | 3690 | 12 |
| 0 | 6 | 6 |
| 1 | 130 | 6 |
| 2 | 2149 | 6 |
| 0 | 6 | 6 |
| 0 | 8 | 3 |
| 1 | 186 | 3 |
| 2 | 3690 | 3 |
| 0 | 8 | 3 |
| 1× | iter limit |
| 1× | unsound |
| 1× | iter limit |
| 1× | unsound |
| 1× | unsound |
| Inputs |
|---|
(-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) |
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) |
| Outputs |
|---|
((#(struct:change #<rule egg-rr> (2) ((x +.f64 (exp.f64 x) (neg.f64 (exp.f64 (neg.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (*.f64 2 (sinh.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 (cbrt.f64 (*.f64 2 (sinh.f64 x))) (cbrt.f64 (*.f64 2 (sinh.f64 x)))) (cbrt.f64 (*.f64 2 (sinh.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (*.f64 2 (sinh.f64 x))) (sqrt.f64 (*.f64 2 (sinh.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 2 (sinh.f64 x))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (pow.f64 (exp.f64 x) 3) (pow.f64 (exp.f64 (neg.f64 x)) 3)) (+.f64 (*.f64 (exp.f64 x) (exp.f64 x)) (+.f64 (*.f64 (exp.f64 (neg.f64 x)) (exp.f64 (neg.f64 x))) (*.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (*.f64 (exp.f64 x) (exp.f64 x)) (*.f64 (exp.f64 (neg.f64 x)) (exp.f64 (neg.f64 x)))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 2 (sinh.f64 x)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (*.f64 2 (sinh.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (*.f64 (*.f64 (*.f64 2 (sinh.f64 x)) (*.f64 2 (sinh.f64 x))) (*.f64 2 (sinh.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (*.f64 2 (sinh.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (*.f64 2 (sinh.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (*.f64 2 (sinh.f64 x)))))))) |
((#(struct:change #<rule egg-rr> (2) ((x -.f64 (/.f64 (exp.f64 x) (*.f64 2 (cosh.f64 x))) (/.f64 (exp.f64 (neg.f64 x)) (*.f64 2 (cosh.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 2 (sinh.f64 x)) (/.f64 1 (*.f64 2 (cosh.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (tanh.f64 x))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 (cbrt.f64 (tanh.f64 x)) (cbrt.f64 (tanh.f64 x))) (cbrt.f64 (tanh.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (tanh.f64 x)) (sqrt.f64 (tanh.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (tanh.f64 x) 1)))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (tanh.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (*.f64 (*.f64 (tanh.f64 x) (tanh.f64 x)) (tanh.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (tanh.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (tanh.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x tanh.f64 x)))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (tanh.f64 x))))))) |
| 1× | egg-herbie |
| 495× | fma-neg_binary64 |
| 484× | fma-def_binary64 |
| 421× | distribute-rgt-neg-in_binary64 |
| 377× | cancel-sign-sub-inv_binary64 |
| 314× | distribute-lft-neg-in_binary64 |
Useful iterations: 3 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 36 | 238 |
| 1 | 100 | 238 |
| 2 | 253 | 234 |
| 3 | 793 | 232 |
| 4 | 2098 | 232 |
| 5 | 3959 | 232 |
| 1× | node limit |
| Inputs |
|---|
(*.f64 2 x) |
(+.f64 (*.f64 1/3 (pow.f64 x 3)) (*.f64 2 x)) |
(+.f64 (*.f64 1/60 (pow.f64 x 5)) (+.f64 (*.f64 1/3 (pow.f64 x 3)) (*.f64 2 x))) |
(+.f64 (*.f64 1/60 (pow.f64 x 5)) (+.f64 (*.f64 1/2520 (pow.f64 x 7)) (+.f64 (*.f64 1/3 (pow.f64 x 3)) (*.f64 2 x)))) |
(-.f64 (exp.f64 x) (exp.f64 (*.f64 -1 x))) |
(-.f64 (exp.f64 x) (exp.f64 (*.f64 -1 x))) |
(-.f64 (exp.f64 x) (exp.f64 (*.f64 -1 x))) |
(-.f64 (exp.f64 x) (exp.f64 (*.f64 -1 x))) |
x |
(-.f64 x (*.f64 1/3 (pow.f64 x 3))) |
(-.f64 (+.f64 (*.f64 2/15 (pow.f64 x 5)) x) (*.f64 1/3 (pow.f64 x 3))) |
(-.f64 (+.f64 (*.f64 2/15 (pow.f64 x 5)) x) (+.f64 (*.f64 17/315 (pow.f64 x 7)) (*.f64 1/3 (pow.f64 x 3)))) |
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (*.f64 -1 x))) (+.f64 (exp.f64 (*.f64 -1 x)) (exp.f64 x))) |
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (*.f64 -1 x))) (+.f64 (exp.f64 (*.f64 -1 x)) (exp.f64 x))) |
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (*.f64 -1 x))) (+.f64 (exp.f64 (*.f64 -1 x)) (exp.f64 x))) |
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (*.f64 -1 x))) (+.f64 (exp.f64 (*.f64 -1 x)) (exp.f64 x))) |
| Outputs |
|---|
(*.f64 2 x) |
(+.f64 (*.f64 1/3 (pow.f64 x 3)) (*.f64 2 x)) |
(fma.f64 1/3 (pow.f64 x 3) (*.f64 2 x)) |
(*.f64 x (fma.f64 x (*.f64 x 1/3) 2)) |
(+.f64 (*.f64 1/60 (pow.f64 x 5)) (+.f64 (*.f64 1/3 (pow.f64 x 3)) (*.f64 2 x))) |
(fma.f64 1/60 (pow.f64 x 5) (fma.f64 1/3 (pow.f64 x 3) (*.f64 2 x))) |
(fma.f64 1/3 (pow.f64 x 3) (fma.f64 1/60 (pow.f64 x 5) (*.f64 2 x))) |
(fma.f64 x (fma.f64 x (*.f64 x 1/3) 2) (*.f64 1/60 (pow.f64 x 5))) |
(+.f64 (*.f64 1/60 (pow.f64 x 5)) (+.f64 (*.f64 1/2520 (pow.f64 x 7)) (+.f64 (*.f64 1/3 (pow.f64 x 3)) (*.f64 2 x)))) |
(fma.f64 1/60 (pow.f64 x 5) (fma.f64 1/2520 (pow.f64 x 7) (fma.f64 1/3 (pow.f64 x 3) (*.f64 2 x)))) |
(fma.f64 1/60 (pow.f64 x 5) (fma.f64 1/3 (pow.f64 x 3) (fma.f64 2 x (*.f64 1/2520 (pow.f64 x 7))))) |
(fma.f64 x (fma.f64 x (*.f64 x 1/3) 2) (fma.f64 1/60 (pow.f64 x 5) (*.f64 1/2520 (pow.f64 x 7)))) |
(fma.f64 1/3 (pow.f64 x 3) (fma.f64 1/2520 (pow.f64 x 7) (fma.f64 1/60 (pow.f64 x 5) (*.f64 2 x)))) |
(-.f64 (exp.f64 x) (exp.f64 (*.f64 -1 x))) |
(-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) |
(-.f64 (exp.f64 x) (exp.f64 (*.f64 -1 x))) |
(-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) |
(-.f64 (exp.f64 x) (exp.f64 (*.f64 -1 x))) |
(-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) |
(-.f64 (exp.f64 x) (exp.f64 (*.f64 -1 x))) |
(-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) |
x |
(-.f64 x (*.f64 1/3 (pow.f64 x 3))) |
(+.f64 x (*.f64 -1/3 (pow.f64 x 3))) |
(+.f64 x (*.f64 (pow.f64 x 3) -1/3)) |
(fma.f64 (pow.f64 x 3) -1/3 x) |
(-.f64 (+.f64 (*.f64 2/15 (pow.f64 x 5)) x) (*.f64 1/3 (pow.f64 x 3))) |
(+.f64 (fma.f64 2/15 (pow.f64 x 5) x) (*.f64 -1/3 (pow.f64 x 3))) |
(+.f64 (fma.f64 (pow.f64 x 5) 2/15 x) (*.f64 (pow.f64 x 3) -1/3)) |
(fma.f64 (pow.f64 x 3) -1/3 (fma.f64 (pow.f64 x 5) 2/15 x)) |
(fma.f64 (pow.f64 x 5) 2/15 (fma.f64 (pow.f64 x 3) -1/3 x)) |
(-.f64 (+.f64 (*.f64 2/15 (pow.f64 x 5)) x) (+.f64 (*.f64 17/315 (pow.f64 x 7)) (*.f64 1/3 (pow.f64 x 3)))) |
(-.f64 (fma.f64 2/15 (pow.f64 x 5) x) (fma.f64 17/315 (pow.f64 x 7) (*.f64 1/3 (pow.f64 x 3)))) |
(-.f64 (fma.f64 (pow.f64 x 5) 2/15 x) (fma.f64 1/3 (pow.f64 x 3) (*.f64 (pow.f64 x 7) 17/315))) |
(+.f64 (fma.f64 (pow.f64 x 5) 2/15 x) (fma.f64 (pow.f64 x 3) -1/3 (*.f64 (pow.f64 x 7) -17/315))) |
(fma.f64 (pow.f64 x 7) -17/315 (fma.f64 (pow.f64 x 5) 2/15 (fma.f64 (pow.f64 x 3) -1/3 x))) |
(fma.f64 (pow.f64 x 5) 2/15 (fma.f64 (pow.f64 x 7) -17/315 (fma.f64 (pow.f64 x 3) -1/3 x))) |
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (*.f64 -1 x))) (+.f64 (exp.f64 (*.f64 -1 x)) (exp.f64 x))) |
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) |
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (*.f64 -1 x))) (+.f64 (exp.f64 (*.f64 -1 x)) (exp.f64 x))) |
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) |
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (*.f64 -1 x))) (+.f64 (exp.f64 (*.f64 -1 x)) (exp.f64 x))) |
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) |
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (*.f64 -1 x))) (+.f64 (exp.f64 (*.f64 -1 x)) (exp.f64 x))) |
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) |
2 alts after pruning (2 fresh and 0 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 41 | 2 | 43 |
| Fresh | 0 | 0 | 0 |
| Picked | 1 | 0 | 1 |
| Done | 0 | 0 | 0 |
| Total | 42 | 2 | 44 |
| Status | Error | Program |
|---|---|---|
| ▶ | 0.0b | (tanh.f64 x) |
| 1.5b | (fma.f64 (pow.f64 x 3) -1/3 x) |
Compiled 597 to 280 computations (53.1% saved)
Found 1 expressions with local error:
| New | Error | Program |
|---|---|---|
| ✓ | 0.0b | (tanh.f64 x) |
3 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 9.0ms | x | @ | inf | (tanh.f64 x) |
| 9.0ms | x | @ | -inf | (tanh.f64 x) |
| 1.0ms | x | @ | 0 | (tanh.f64 x) |
| 1× | batch-egg-rewrite |
| 465× | pow1_binary64 |
| 437× | add-log-exp_binary64 |
| 435× | log1p-expm1-u_binary64 |
| 435× | expm1-log1p-u_binary64 |
| 428× | add-exp-log_binary64 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 3 | 3 |
| 1 | 75 | 3 |
| 2 | 1079 | 3 |
| 1× | node limit |
| Inputs |
|---|
(tanh.f64 x) |
| Outputs |
|---|
((#(struct:change #<rule egg-rr> (2) ((x -.f64 (+.f64 1 (tanh.f64 x)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (/.f64 1 (+.f64 1 (pow.f64 (exp.f64 -2) x))) (/.f64 (pow.f64 (exp.f64 -2) x) (+.f64 1 (pow.f64 (exp.f64 -2) x))))))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (/.f64 (pow.f64 (exp.f64 2) x) (+.f64 1 (pow.f64 (exp.f64 2) x))) (/.f64 1 (+.f64 1 (pow.f64 (exp.f64 2) x))))))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (/.f64 (exp.f64 x) (*.f64 2 (cosh.f64 x))) (/.f64 (exp.f64 (neg.f64 x)) (*.f64 2 (cosh.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (tanh.f64 x) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (tanh.f64 x))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (tanh.f64 x)) (pow.f64 (cbrt.f64 (tanh.f64 x)) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (tanh.f64 x)) 2) (cbrt.f64 (tanh.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (tanh.f64 x)) (sqrt.f64 (tanh.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (-.f64 1 (pow.f64 (exp.f64 -2) x)) (/.f64 1 (+.f64 1 (pow.f64 (exp.f64 -2) x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (expm1.f64 (*.f64 x 2)) (/.f64 1 (+.f64 1 (pow.f64 (exp.f64 2) x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 2 (sinh.f64 x)) (/.f64 1 (*.f64 2 (cosh.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (/.f64 (+.f64 1 (pow.f64 (exp.f64 -2) x)) (-.f64 1 (pow.f64 (exp.f64 -2) x))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (/.f64 (+.f64 1 (pow.f64 (exp.f64 2) x)) (expm1.f64 (*.f64 x 2))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (/.f64 (*.f64 2 (cosh.f64 x)) (*.f64 2 (sinh.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 1 (pow.f64 (exp.f64 -2) x)) (+.f64 1 (pow.f64 (exp.f64 -2) x)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (expm1.f64 (*.f64 x 2)) (+.f64 1 (pow.f64 (exp.f64 2) x)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 2 (sinh.f64 x)) (*.f64 2 (cosh.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (-.f64 1 (pow.f64 (exp.f64 -2) x))) (neg.f64 (+.f64 1 (pow.f64 (exp.f64 -2) x))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (expm1.f64 (*.f64 x 2))) (neg.f64 (+.f64 1 (pow.f64 (exp.f64 2) x))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (*.f64 2 (sinh.f64 x))) (neg.f64 (*.f64 2 (cosh.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (tanh.f64 x) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (tanh.f64 x) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (tanh.f64 x)) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (tanh.f64 x)) 2)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (tanh.f64 x) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (tanh.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (tanh.f64 x) 3))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (tanh.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (tanh.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (tanh.f64 x))))))) |
| 1× | egg-herbie |
| 490× | fma-neg_binary64 |
| 404× | distribute-rgt-neg-in_binary64 |
| 367× | cancel-sign-sub-inv_binary64 |
| 299× | distribute-lft-neg-in_binary64 |
| 281× | fma-def_binary64 |
Useful iterations: 3 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 25 | 228 |
| 1 | 73 | 228 |
| 2 | 179 | 224 |
| 3 | 535 | 222 |
| 4 | 1589 | 222 |
| 5 | 3314 | 222 |
| 6 | 4744 | 222 |
| 1× | node limit |
| Inputs |
|---|
x |
(-.f64 x (*.f64 1/3 (pow.f64 x 3))) |
(-.f64 (+.f64 (*.f64 2/15 (pow.f64 x 5)) x) (*.f64 1/3 (pow.f64 x 3))) |
(-.f64 (+.f64 (*.f64 2/15 (pow.f64 x 5)) x) (+.f64 (*.f64 17/315 (pow.f64 x 7)) (*.f64 1/3 (pow.f64 x 3)))) |
(/.f64 (-.f64 (exp.f64 x) (/.f64 1 (exp.f64 x))) (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x))) |
(/.f64 (-.f64 (exp.f64 x) (/.f64 1 (exp.f64 x))) (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x))) |
(/.f64 (-.f64 (exp.f64 x) (/.f64 1 (exp.f64 x))) (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x))) |
(/.f64 (-.f64 (exp.f64 x) (/.f64 1 (exp.f64 x))) (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x))) |
(/.f64 (-.f64 (exp.f64 x) (/.f64 1 (exp.f64 x))) (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x))) |
(/.f64 (-.f64 (exp.f64 x) (/.f64 1 (exp.f64 x))) (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x))) |
(/.f64 (-.f64 (exp.f64 x) (/.f64 1 (exp.f64 x))) (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x))) |
(/.f64 (-.f64 (exp.f64 x) (/.f64 1 (exp.f64 x))) (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x))) |
| Outputs |
|---|
x |
(-.f64 x (*.f64 1/3 (pow.f64 x 3))) |
(+.f64 x (*.f64 -1/3 (pow.f64 x 3))) |
(fma.f64 (pow.f64 x 3) -1/3 x) |
(-.f64 (+.f64 (*.f64 2/15 (pow.f64 x 5)) x) (*.f64 1/3 (pow.f64 x 3))) |
(+.f64 (fma.f64 2/15 (pow.f64 x 5) x) (*.f64 -1/3 (pow.f64 x 3))) |
(-.f64 (fma.f64 2/15 (pow.f64 x 5) x) (*.f64 1/3 (pow.f64 x 3))) |
(fma.f64 (pow.f64 x 3) -1/3 (fma.f64 2/15 (pow.f64 x 5) x)) |
(-.f64 (+.f64 (*.f64 2/15 (pow.f64 x 5)) x) (+.f64 (*.f64 17/315 (pow.f64 x 7)) (*.f64 1/3 (pow.f64 x 3)))) |
(-.f64 (fma.f64 2/15 (pow.f64 x 5) x) (fma.f64 17/315 (pow.f64 x 7) (*.f64 1/3 (pow.f64 x 3)))) |
(-.f64 (fma.f64 2/15 (pow.f64 x 5) x) (fma.f64 1/3 (pow.f64 x 3) (*.f64 17/315 (pow.f64 x 7)))) |
(+.f64 x (fma.f64 2/15 (pow.f64 x 5) (fma.f64 (pow.f64 x 3) -1/3 (*.f64 (pow.f64 x 7) -17/315)))) |
(fma.f64 (pow.f64 x 7) -17/315 (fma.f64 (pow.f64 x 3) -1/3 (fma.f64 2/15 (pow.f64 x 5) x))) |
(/.f64 (-.f64 (exp.f64 x) (/.f64 1 (exp.f64 x))) (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x))) |
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) |
(/.f64 (-.f64 (exp.f64 x) (/.f64 1 (exp.f64 x))) (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x))) |
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) |
(/.f64 (-.f64 (exp.f64 x) (/.f64 1 (exp.f64 x))) (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x))) |
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) |
(/.f64 (-.f64 (exp.f64 x) (/.f64 1 (exp.f64 x))) (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x))) |
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) |
(/.f64 (-.f64 (exp.f64 x) (/.f64 1 (exp.f64 x))) (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x))) |
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) |
(/.f64 (-.f64 (exp.f64 x) (/.f64 1 (exp.f64 x))) (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x))) |
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) |
(/.f64 (-.f64 (exp.f64 x) (/.f64 1 (exp.f64 x))) (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x))) |
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) |
(/.f64 (-.f64 (exp.f64 x) (/.f64 1 (exp.f64 x))) (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x))) |
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) |
2 alts after pruning (1 fresh and 1 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 40 | 0 | 40 |
| Fresh | 0 | 1 | 1 |
| Picked | 0 | 1 | 1 |
| Done | 0 | 0 | 0 |
| Total | 40 | 2 | 42 |
| Status | Error | Program |
|---|---|---|
| ✓ | 0.0b | (tanh.f64 x) |
| ▶ | 1.5b | (fma.f64 (pow.f64 x 3) -1/3 x) |
Compiled 410 to 283 computations (31% saved)
Found 1 expressions with local error:
| New | Error | Program |
|---|---|---|
| ✓ | 0.0b | (fma.f64 (pow.f64 x 3) -1/3 x) |
3 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 1.0ms | x | @ | -inf | (fma.f64 (pow.f64 x 3) -1/3 x) |
| 1.0ms | x | @ | inf | (fma.f64 (pow.f64 x 3) -1/3 x) |
| 1.0ms | x | @ | 0 | (fma.f64 (pow.f64 x 3) -1/3 x) |
| 1× | batch-egg-rewrite |
| 522× | pow1_binary64 |
| 492× | add-log-exp_binary64 |
| 492× | log1p-expm1-u_binary64 |
| 492× | expm1-log1p-u_binary64 |
| 482× | add-exp-log_binary64 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 6 | 8 |
| 1 | 130 | 8 |
| 2 | 1341 | 8 |
| 1× | node limit |
| Inputs |
|---|
(fma.f64 (pow.f64 x 3) -1/3 x) |
| Outputs |
|---|
((#(struct:change #<rule egg-rr> (2) ((x +.f64 x (*.f64 (pow.f64 x 3) -1/3))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 (pow.f64 x 3) -1/3) x)))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 (*.f64 (pow.f64 x 3) -1/3) 1) x)))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (+.f64 1 (fma.f64 (pow.f64 x 3) -1/3 x)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (fma.f64 (pow.f64 x 3) -1/3 x) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (fma.f64 (pow.f64 x 3) -1/3 x))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (fma.f64 (pow.f64 x 3) -1/3 x)) (cbrt.f64 (pow.f64 (fma.f64 (pow.f64 x 3) -1/3 x) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (pow.f64 (fma.f64 (pow.f64 x 3) -1/3 x) 2)) (cbrt.f64 (fma.f64 (pow.f64 x 3) -1/3 x)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (fma.f64 (pow.f64 x 3) -1/3 x)) (sqrt.f64 (fma.f64 (pow.f64 x 3) -1/3 x)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 (pow.f64 (*.f64 (pow.f64 x 3) -1/3) 3) (pow.f64 x 3)) (+.f64 (*.f64 (*.f64 (pow.f64 x 3) -1/3) (*.f64 (pow.f64 x 3) -1/3)) (-.f64 (*.f64 x x) (*.f64 (*.f64 (pow.f64 x 3) -1/3) x))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (*.f64 (*.f64 (pow.f64 x 3) -1/3) (*.f64 (pow.f64 x 3) -1/3)) (*.f64 x x)) (-.f64 (*.f64 (pow.f64 x 3) -1/3) x))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (fma.f64 (pow.f64 x 3) -1/3 x) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (fma.f64 (pow.f64 x 3) -1/3 x) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (fma.f64 (pow.f64 x 3) -1/3 x)) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (fma.f64 (pow.f64 x 3) -1/3 x)) 2)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (fma.f64 (pow.f64 x 3) -1/3 x) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (fma.f64 (pow.f64 x 3) -1/3 x)))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (fma.f64 (pow.f64 x 3) -1/3 x) 3))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (fma.f64 (pow.f64 x 3) -1/3 x)))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (fma.f64 (pow.f64 x 3) -1/3 x)))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (fma.f64 (pow.f64 x 3) -1/3 x))))))) |
| 1× | egg-herbie |
| 1047× | fma-def_binary64 |
| 818× | unswap-sqr_binary64 |
| 241× | associate-*l*_binary64 |
| 194× | fma-neg_binary64 |
| 174× | associate-*r*_binary64 |
Useful iterations: 2 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 9 | 105 |
| 1 | 23 | 105 |
| 2 | 61 | 87 |
| 3 | 194 | 87 |
| 4 | 429 | 87 |
| 5 | 1190 | 87 |
| 6 | 2374 | 87 |
| 7 | 3266 | 87 |
| 1× | node limit |
| Inputs |
|---|
x |
(-.f64 x (*.f64 1/3 (pow.f64 x 3))) |
(-.f64 x (*.f64 1/3 (pow.f64 x 3))) |
(-.f64 x (*.f64 1/3 (pow.f64 x 3))) |
(*.f64 -1/3 (pow.f64 x 3)) |
(-.f64 x (*.f64 1/3 (pow.f64 x 3))) |
(-.f64 x (*.f64 1/3 (pow.f64 x 3))) |
(-.f64 x (*.f64 1/3 (pow.f64 x 3))) |
(*.f64 -1/3 (pow.f64 x 3)) |
(-.f64 x (*.f64 1/3 (pow.f64 x 3))) |
(-.f64 x (*.f64 1/3 (pow.f64 x 3))) |
(-.f64 x (*.f64 1/3 (pow.f64 x 3))) |
| Outputs |
|---|
x |
(-.f64 x (*.f64 1/3 (pow.f64 x 3))) |
(+.f64 x (*.f64 (pow.f64 x 3) -1/3)) |
(fma.f64 (pow.f64 x 3) -1/3 x) |
(-.f64 x (*.f64 1/3 (pow.f64 x 3))) |
(+.f64 x (*.f64 (pow.f64 x 3) -1/3)) |
(fma.f64 (pow.f64 x 3) -1/3 x) |
(-.f64 x (*.f64 1/3 (pow.f64 x 3))) |
(+.f64 x (*.f64 (pow.f64 x 3) -1/3)) |
(fma.f64 (pow.f64 x 3) -1/3 x) |
(*.f64 -1/3 (pow.f64 x 3)) |
(*.f64 (pow.f64 x 3) -1/3) |
(-.f64 x (*.f64 1/3 (pow.f64 x 3))) |
(+.f64 x (*.f64 (pow.f64 x 3) -1/3)) |
(fma.f64 (pow.f64 x 3) -1/3 x) |
(-.f64 x (*.f64 1/3 (pow.f64 x 3))) |
(+.f64 x (*.f64 (pow.f64 x 3) -1/3)) |
(fma.f64 (pow.f64 x 3) -1/3 x) |
(-.f64 x (*.f64 1/3 (pow.f64 x 3))) |
(+.f64 x (*.f64 (pow.f64 x 3) -1/3)) |
(fma.f64 (pow.f64 x 3) -1/3 x) |
(*.f64 -1/3 (pow.f64 x 3)) |
(*.f64 (pow.f64 x 3) -1/3) |
(-.f64 x (*.f64 1/3 (pow.f64 x 3))) |
(+.f64 x (*.f64 (pow.f64 x 3) -1/3)) |
(fma.f64 (pow.f64 x 3) -1/3 x) |
(-.f64 x (*.f64 1/3 (pow.f64 x 3))) |
(+.f64 x (*.f64 (pow.f64 x 3) -1/3)) |
(fma.f64 (pow.f64 x 3) -1/3 x) |
(-.f64 x (*.f64 1/3 (pow.f64 x 3))) |
(+.f64 x (*.f64 (pow.f64 x 3) -1/3)) |
(fma.f64 (pow.f64 x 3) -1/3 x) |
2 alts after pruning (0 fresh and 2 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 26 | 0 | 26 |
| Fresh | 0 | 0 | 0 |
| Picked | 0 | 1 | 1 |
| Done | 0 | 1 | 1 |
| Total | 26 | 2 | 28 |
| Status | Error | Program |
|---|---|---|
| ✓ | 0.0b | (tanh.f64 x) |
| ✓ | 1.5b | (fma.f64 (pow.f64 x 3) -1/3 x) |
Compiled 277 to 208 computations (24.9% saved)
Total 0.0b remaining (73%)
Threshold costs 0.0b (73%)
Compiled 280 to 192 computations (31.4% saved)
| 1× | egg-herbie |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 3 | 3 |
| 1× | saturated |
| Inputs |
|---|
(tanh.f64 x) |
| Outputs |
|---|
(tanh.f64 x) |
| 1× | done |
Compiled 16 to 11 computations (31.3% saved)
Loading profile data...