Time bar (total: 2.4s)
| 1× | search |
| True | Other | False | Iter |
|---|---|---|---|
| 0% | 100% | 0% | 0 |
| 0% | 100% | 0% | 1 |
| 0% | 100% | 0% | 2 |
| 25% | 75% | 0% | 3 |
| 25% | 62.5% | 12.5% | 4 |
| 25% | 56.2% | 18.8% | 5 |
| 28.1% | 50% | 21.9% | 6 |
| 29.7% | 46.9% | 23.5% | 7 |
| 30.5% | 45.3% | 24.3% | 8 |
| 30.8% | 44.9% | 24.3% | 9 |
| 31.2% | 44.5% | 24.3% | 10 |
| 31.3% | 44.4% | 24.3% | 11 |
| 31.4% | 44.3% | 24.3% | 12 |
| 31.4% | 44.2% | 24.3% | 13 |
| 31.5% | 44.2% | 24.3% | 14 |
Compiled 9 to 6 computations (33.3% saved)
| 853.0ms | 2694× | body | 1024 | valid |
| 284.0ms | 1368× | body | 512 | valid |
| 255.0ms | 3221× | body | 128 | valid |
| 102.0ms | 694× | body | 256 | valid |
| 101.0ms | 279× | body | 2048 | valid |
| 0.0ms | 1× | body | 2048 | invalid |
| 0.0ms | 1× | body | 128 | invalid |
Compiled 18 to 12 computations (33.3% saved)
| 2× | egg-herbie |
| 1× | +-commutative_binary64 |
| 1× | sub-neg_binary64 |
| 1× | 1-exp_binary64 |
| 1× | expm1-def_binary64 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 6 | 8 |
| 1 | 12 | 8 |
| 2 | 13 | 8 |
| 0 | 1 | 1 |
| 1× | saturated |
| 1× | saturated |
| Inputs |
|---|
0 |
| Outputs |
|---|
0 |
| Inputs |
|---|
(/.f64 (exp.f64 x) (-.f64 (exp.f64 x) 1)) |
| Outputs |
|---|
(/.f64 (exp.f64 x) (-.f64 (exp.f64 x) 1)) |
(/.f64 (exp.f64 x) (expm1.f64 x)) |
Compiled 8 to 5 computations (37.5% saved)
| 1× | egg-herbie |
| 1× | +-commutative_binary64 |
| 1× | sub-neg_binary64 |
| 1× | 1-exp_binary64 |
| 1× | expm1-def_binary64 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 6 | 8 |
| 1 | 12 | 8 |
| 2 | 13 | 8 |
| 1× | saturated |
| Inputs |
|---|
(/.f64 (exp.f64 x) (-.f64 (exp.f64 x) 1)) |
| Outputs |
|---|
(/.f64 (exp.f64 x) (-.f64 (exp.f64 x) 1)) |
(/.f64 (exp.f64 x) (expm1.f64 x)) |
1 alts after pruning (1 fresh and 0 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 1 | 1 | 2 |
| Fresh | 1 | 0 | 1 |
| Picked | 0 | 0 | 0 |
| Done | 0 | 0 | 0 |
| Total | 2 | 1 | 3 |
| Status | Error | Program |
|---|---|---|
| ▶ | 0.3b | (/.f64 (exp.f64 x) (expm1.f64 x)) |
Compiled 25 to 15 computations (40% saved)
Found 1 expressions with local error:
| New | Error | Program |
|---|---|---|
| ✓ | 0.3b | (/.f64 (exp.f64 x) (expm1.f64 x)) |
3 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 1.0ms | x | @ | inf | (/.f64 (exp.f64 x) (expm1.f64 x)) |
| 1.0ms | x | @ | -inf | (/.f64 (exp.f64 x) (expm1.f64 x)) |
| 1.0ms | x | @ | 0 | (/.f64 (exp.f64 x) (expm1.f64 x)) |
| 1× | batch-egg-rewrite |
| 516× | pow1_binary64 |
| 477× | add-log-exp_binary64 |
| 477× | log1p-expm1-u_binary64 |
| 477× | expm1-log1p-u_binary64 |
| 465× | add-exp-log_binary64 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 5 | 8 |
| 1 | 99 | 8 |
| 2 | 1287 | 8 |
| 1× | node limit |
| Inputs |
|---|
(/.f64 (exp.f64 x) (expm1.f64 x)) |
| Outputs |
|---|
((#(struct:change #<rule egg-rr> (2) ((x -.f64 (+.f64 1 (/.f64 (exp.f64 x) (expm1.f64 x))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (exp.f64 x) (/.f64 1 (expm1.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (exp.f64 x) (expm1.f64 x)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (/.f64 (exp.f64 x) (expm1.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (exp.f64 x)) 2) (*.f64 (cbrt.f64 (exp.f64 x)) (/.f64 1 (expm1.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (/.f64 (exp.f64 x) (expm1.f64 x))) (pow.f64 (cbrt.f64 (/.f64 (exp.f64 x) (expm1.f64 x))) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (/.f64 (exp.f64 x) (expm1.f64 x))) 2) (cbrt.f64 (/.f64 (exp.f64 x) (expm1.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (exp.f64 x)) (*.f64 (sqrt.f64 (exp.f64 x)) (/.f64 1 (expm1.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (/.f64 (exp.f64 x) (expm1.f64 x))) (sqrt.f64 (/.f64 (exp.f64 x) (expm1.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (neg.f64 (exp.f64 x)) (/.f64 1 (neg.f64 (expm1.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 1 (expm1.f64 x)) (exp.f64 x))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (pow.f64 (cbrt.f64 (exp.f64 x)) 2) 1) (/.f64 (cbrt.f64 (exp.f64 x)) (expm1.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (sqrt.f64 (exp.f64 x)) 1) (/.f64 (sqrt.f64 (exp.f64 x)) (expm1.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 1 (pow.f64 (cbrt.f64 (expm1.f64 x)) 2)) (/.f64 (exp.f64 x) (cbrt.f64 (expm1.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (pow.f64 (cbrt.f64 (exp.f64 x)) 2) (pow.f64 (cbrt.f64 (expm1.f64 x)) 2)) (cbrt.f64 (/.f64 (exp.f64 x) (expm1.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (sqrt.f64 (exp.f64 x)) (pow.f64 (cbrt.f64 (expm1.f64 x)) 2)) (/.f64 (sqrt.f64 (exp.f64 x)) (cbrt.f64 (expm1.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 1 (sqrt.f64 (expm1.f64 x))) (/.f64 (exp.f64 x) (sqrt.f64 (expm1.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (pow.f64 (cbrt.f64 (exp.f64 x)) 2) (sqrt.f64 (expm1.f64 x))) (/.f64 (cbrt.f64 (exp.f64 x)) (sqrt.f64 (expm1.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (/.f64 (exp.f64 x) (expm1.f64 x)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (/.f64 (exp.f64 x) (expm1.f64 x)) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (/.f64 (exp.f64 x) (expm1.f64 x))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (/.f64 (exp.f64 x) (expm1.f64 x))) 2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (/.f64 (expm1.f64 x) (exp.f64 x)) -1)))) (#(struct:change #<rule egg-rr> (2) ((x neg.f64 (/.f64 (exp.f64 x) (neg.f64 (expm1.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (/.f64 (exp.f64 x) (expm1.f64 x)) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (/.f64 (exp.f64 x) (expm1.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (/.f64 (exp.f64 x) (expm1.f64 x)) 3))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (/.f64 (pow.f64 (exp.f64 x) 3) (pow.f64 (expm1.f64 x) 3)))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (/.f64 (exp.f64 x) (expm1.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (-.f64 x (log.f64 (expm1.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (/.f64 (exp.f64 x) (expm1.f64 x)))))))) |
| 1× | egg-herbie |
| 1089× | fma-neg_binary64 |
| 754× | fma-def_binary64 |
| 260× | cancel-sign-sub-inv_binary64 |
| 211× | associate-*l*_binary64 |
| 208× | unswap-sqr_binary64 |
Useful iterations: 2 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 18 | 110 |
| 1 | 46 | 106 |
| 2 | 101 | 104 |
| 3 | 306 | 104 |
| 4 | 830 | 104 |
| 5 | 1782 | 104 |
| 6 | 3144 | 104 |
| 7 | 4892 | 104 |
| 1× | node limit |
| Inputs |
|---|
(/.f64 1 x) |
(+.f64 1/2 (/.f64 1 x)) |
(+.f64 1/2 (+.f64 (/.f64 1 x) (*.f64 1/12 x))) |
(-.f64 (+.f64 1/2 (+.f64 (/.f64 1 x) (*.f64 1/12 x))) (*.f64 1/720 (pow.f64 x 3))) |
(/.f64 (exp.f64 x) (-.f64 (exp.f64 x) 1)) |
(/.f64 (exp.f64 x) (-.f64 (exp.f64 x) 1)) |
(/.f64 (exp.f64 x) (-.f64 (exp.f64 x) 1)) |
(/.f64 (exp.f64 x) (-.f64 (exp.f64 x) 1)) |
(/.f64 (exp.f64 x) (-.f64 (exp.f64 x) 1)) |
(/.f64 (exp.f64 x) (-.f64 (exp.f64 x) 1)) |
(/.f64 (exp.f64 x) (-.f64 (exp.f64 x) 1)) |
(/.f64 (exp.f64 x) (-.f64 (exp.f64 x) 1)) |
| Outputs |
|---|
(/.f64 1 x) |
(+.f64 1/2 (/.f64 1 x)) |
(+.f64 (/.f64 1 x) 1/2) |
(+.f64 1/2 (+.f64 (/.f64 1 x) (*.f64 1/12 x))) |
(+.f64 1/2 (+.f64 (/.f64 1 x) (*.f64 x 1/12))) |
(+.f64 1/2 (fma.f64 x 1/12 (/.f64 1 x))) |
(+.f64 (/.f64 1 x) (fma.f64 x 1/12 1/2)) |
(-.f64 (+.f64 1/2 (+.f64 (/.f64 1 x) (*.f64 1/12 x))) (*.f64 1/720 (pow.f64 x 3))) |
(+.f64 1/2 (-.f64 (+.f64 (/.f64 1 x) (*.f64 x 1/12)) (*.f64 1/720 (pow.f64 x 3)))) |
(+.f64 1/2 (+.f64 (fma.f64 x 1/12 (/.f64 1 x)) (*.f64 (pow.f64 x 3) -1/720))) |
(fma.f64 (pow.f64 x 3) -1/720 (+.f64 (/.f64 1 x) (fma.f64 x 1/12 1/2))) |
(+.f64 (/.f64 1 x) (fma.f64 x 1/12 (fma.f64 (pow.f64 x 3) -1/720 1/2))) |
(-.f64 (fma.f64 x 1/12 (/.f64 1 x)) (fma.f64 1/720 (pow.f64 x 3) -1/2)) |
(/.f64 (exp.f64 x) (-.f64 (exp.f64 x) 1)) |
(/.f64 (exp.f64 x) (expm1.f64 x)) |
(/.f64 (exp.f64 x) (-.f64 (exp.f64 x) 1)) |
(/.f64 (exp.f64 x) (expm1.f64 x)) |
(/.f64 (exp.f64 x) (-.f64 (exp.f64 x) 1)) |
(/.f64 (exp.f64 x) (expm1.f64 x)) |
(/.f64 (exp.f64 x) (-.f64 (exp.f64 x) 1)) |
(/.f64 (exp.f64 x) (expm1.f64 x)) |
(/.f64 (exp.f64 x) (-.f64 (exp.f64 x) 1)) |
(/.f64 (exp.f64 x) (expm1.f64 x)) |
(/.f64 (exp.f64 x) (-.f64 (exp.f64 x) 1)) |
(/.f64 (exp.f64 x) (expm1.f64 x)) |
(/.f64 (exp.f64 x) (-.f64 (exp.f64 x) 1)) |
(/.f64 (exp.f64 x) (expm1.f64 x)) |
(/.f64 (exp.f64 x) (-.f64 (exp.f64 x) 1)) |
(/.f64 (exp.f64 x) (expm1.f64 x)) |
2 alts after pruning (2 fresh and 0 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 38 | 2 | 40 |
| Fresh | 0 | 0 | 0 |
| Picked | 1 | 0 | 1 |
| Done | 0 | 0 | 0 |
| Total | 39 | 2 | 41 |
| Status | Error | Program |
|---|---|---|
| ▶ | 0.3b | (*.f64 (exp.f64 x) (/.f64 1 (expm1.f64 x))) |
| 17.4b | (+.f64 1/2 (/.f64 1 x)) |
Compiled 417 to 188 computations (54.9% saved)
Found 2 expressions with local error:
| New | Error | Program |
|---|---|---|
| ✓ | 0.0b | (/.f64 1 (expm1.f64 x)) |
| ✓ | 0.2b | (*.f64 (exp.f64 x) (/.f64 1 (expm1.f64 x))) |
6 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 1.0ms | x | @ | inf | (/.f64 1 (expm1.f64 x)) |
| 1.0ms | x | @ | -inf | (/.f64 1 (expm1.f64 x)) |
| 0.0ms | x | @ | 0 | (*.f64 (exp.f64 x) (/.f64 1 (expm1.f64 x))) |
| 0.0ms | x | @ | 0 | (/.f64 1 (expm1.f64 x)) |
| 0.0ms | x | @ | -inf | (*.f64 (exp.f64 x) (/.f64 1 (expm1.f64 x))) |
| 1× | batch-egg-rewrite |
| 592× | pow1_binary64 |
| 545× | add-log-exp_binary64 |
| 545× | log1p-expm1-u_binary64 |
| 545× | expm1-log1p-u_binary64 |
| 64× | add-sqr-sqrt_binary64 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 7 | 14 |
| 1 | 135 | 14 |
| 2 | 1583 | 14 |
| 1× | node limit |
| Inputs |
|---|
(*.f64 (exp.f64 x) (/.f64 1 (expm1.f64 x))) |
(/.f64 1 (expm1.f64 x)) |
| Outputs |
|---|
((#(struct:change #<rule egg-rr> (2) ((x -.f64 (exp.f64 (log1p.f64 (/.f64 (exp.f64 x) (expm1.f64 x)))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (exp.f64 x) (expm1.f64 x))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (/.f64 (expm1.f64 x) (exp.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (pow.f64 (cbrt.f64 (exp.f64 x)) 2) (/.f64 (expm1.f64 x) (cbrt.f64 (exp.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (sqrt.f64 (exp.f64 x)) (/.f64 (expm1.f64 x) (sqrt.f64 (exp.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (exp.f64 x)) (neg.f64 (expm1.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (/.f64 (exp.f64 x) (sqrt.f64 (expm1.f64 x))) (sqrt.f64 (expm1.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (/.f64 (exp.f64 x) 1) (expm1.f64 x))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (/.f64 (exp.f64 x) (pow.f64 (cbrt.f64 (expm1.f64 x)) 2)) (cbrt.f64 (expm1.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 -1 (exp.f64 x)) (neg.f64 (expm1.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (exp.f64 x) -1) (neg.f64 (expm1.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (/.f64 (exp.f64 x) (expm1.f64 x)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (/.f64 (exp.f64 x) (expm1.f64 x)) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (/.f64 (exp.f64 x) (expm1.f64 x))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (/.f64 (exp.f64 x) (expm1.f64 x))) 2)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (/.f64 (exp.f64 x) (expm1.f64 x)) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (/.f64 (exp.f64 x) (expm1.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (+.f64 1 (expm1.f64 (/.f64 (exp.f64 x) (expm1.f64 x)))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (/.f64 (exp.f64 x) (expm1.f64 x)) 3))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (/.f64 (pow.f64 (exp.f64 x) 3) (pow.f64 (expm1.f64 x) 3)))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (*.f64 (pow.f64 (exp.f64 x) 3) (pow.f64 (/.f64 1 (expm1.f64 x)) 3)))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (*.f64 (pow.f64 (/.f64 1 (expm1.f64 x)) 3) (pow.f64 (exp.f64 x) 3)))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (/.f64 (exp.f64 x) (expm1.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (-.f64 x (log.f64 (expm1.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (/.f64 (exp.f64 x) (expm1.f64 x)))))))) |
((#(struct:change #<rule egg-rr> (2) ((x -.f64 (exp.f64 (log1p.f64 (/.f64 1 (expm1.f64 x)))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (/.f64 1 (expm1.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 1 (expm1.f64 x)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 1 (cbrt.f64 (expm1.f64 x))) (cbrt.f64 (pow.f64 (expm1.f64 x) -2)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (pow.f64 (expm1.f64 x) -2)) (/.f64 1 (cbrt.f64 (expm1.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (expm1.f64 x) -1/2) (pow.f64 (expm1.f64 x) -1/2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 -1 (/.f64 1 (neg.f64 (expm1.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (pow.f64 (cbrt.f64 (expm1.f64 x)) 2) -1) (pow.f64 (cbrt.f64 (expm1.f64 x)) -1))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (sqrt.f64 (expm1.f64 x)) -1) (pow.f64 (sqrt.f64 (expm1.f64 x)) -1))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (expm1.f64 x) -1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (/.f64 1 (expm1.f64 x)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (/.f64 1 (expm1.f64 x)) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (/.f64 1 (cbrt.f64 (expm1.f64 x))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (expm1.f64 x) -1/2) 2)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (expm1.f64 x) -2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (/.f64 1 (expm1.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (+.f64 1 (expm1.f64 (/.f64 1 (expm1.f64 x)))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (/.f64 1 (expm1.f64 x)) 3))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (/.f64 1 (expm1.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (neg.f64 (log.f64 (expm1.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (/.f64 1 (expm1.f64 x)))))))) |
| 1× | egg-herbie |
| 596× | fma-def_binary64 |
| 297× | fma-neg_binary64 |
| 284× | distribute-rgt-neg-in_binary64 |
| 284× | unswap-sqr_binary64 |
| 232× | associate-*l*_binary64 |
Useful iterations: 2 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 23 | 204 |
| 1 | 63 | 194 |
| 2 | 149 | 192 |
| 3 | 449 | 192 |
| 4 | 1199 | 192 |
| 5 | 2845 | 192 |
| 6 | 4177 | 192 |
| 1× | node limit |
| Inputs |
|---|
(/.f64 1 x) |
(+.f64 1/2 (/.f64 1 x)) |
(+.f64 1/2 (+.f64 (/.f64 1 x) (*.f64 1/12 x))) |
(-.f64 (+.f64 1/2 (+.f64 (/.f64 1 x) (*.f64 1/12 x))) (*.f64 1/720 (pow.f64 x 3))) |
(/.f64 (exp.f64 x) (-.f64 (exp.f64 x) 1)) |
(/.f64 (exp.f64 x) (-.f64 (exp.f64 x) 1)) |
(/.f64 (exp.f64 x) (-.f64 (exp.f64 x) 1)) |
(/.f64 (exp.f64 x) (-.f64 (exp.f64 x) 1)) |
(/.f64 (exp.f64 x) (-.f64 (exp.f64 x) 1)) |
(/.f64 (exp.f64 x) (-.f64 (exp.f64 x) 1)) |
(/.f64 (exp.f64 x) (-.f64 (exp.f64 x) 1)) |
(/.f64 (exp.f64 x) (-.f64 (exp.f64 x) 1)) |
(/.f64 1 x) |
(-.f64 (/.f64 1 x) 1/2) |
(-.f64 (+.f64 (/.f64 1 x) (*.f64 1/12 x)) 1/2) |
(-.f64 (+.f64 (/.f64 1 x) (*.f64 1/12 x)) (+.f64 1/2 (*.f64 1/720 (pow.f64 x 3)))) |
(/.f64 1 (-.f64 (exp.f64 x) 1)) |
(/.f64 1 (-.f64 (exp.f64 x) 1)) |
(/.f64 1 (-.f64 (exp.f64 x) 1)) |
(/.f64 1 (-.f64 (exp.f64 x) 1)) |
(/.f64 1 (-.f64 (exp.f64 x) 1)) |
(/.f64 1 (-.f64 (exp.f64 x) 1)) |
(/.f64 1 (-.f64 (exp.f64 x) 1)) |
(/.f64 1 (-.f64 (exp.f64 x) 1)) |
| Outputs |
|---|
(/.f64 1 x) |
(+.f64 1/2 (/.f64 1 x)) |
(+.f64 (/.f64 1 x) 1/2) |
(+.f64 1/2 (+.f64 (/.f64 1 x) (*.f64 1/12 x))) |
(+.f64 1/2 (+.f64 (/.f64 1 x) (*.f64 x 1/12))) |
(+.f64 1/2 (fma.f64 x 1/12 (/.f64 1 x))) |
(+.f64 (/.f64 1 x) (fma.f64 x 1/12 1/2)) |
(-.f64 (+.f64 1/2 (+.f64 (/.f64 1 x) (*.f64 1/12 x))) (*.f64 1/720 (pow.f64 x 3))) |
(+.f64 1/2 (-.f64 (+.f64 (/.f64 1 x) (*.f64 x 1/12)) (*.f64 1/720 (pow.f64 x 3)))) |
(+.f64 1/2 (+.f64 (fma.f64 x 1/12 (/.f64 1 x)) (*.f64 (pow.f64 x 3) -1/720))) |
(fma.f64 (pow.f64 x 3) -1/720 (+.f64 (/.f64 1 x) (fma.f64 x 1/12 1/2))) |
(+.f64 1/2 (fma.f64 x (fma.f64 x (*.f64 x -1/720) 1/12) (/.f64 1 x))) |
(+.f64 (/.f64 1 x) (fma.f64 x 1/12 (fma.f64 (pow.f64 x 3) -1/720 1/2))) |
(/.f64 (exp.f64 x) (-.f64 (exp.f64 x) 1)) |
(/.f64 (exp.f64 x) (expm1.f64 x)) |
(/.f64 (exp.f64 x) (-.f64 (exp.f64 x) 1)) |
(/.f64 (exp.f64 x) (expm1.f64 x)) |
(/.f64 (exp.f64 x) (-.f64 (exp.f64 x) 1)) |
(/.f64 (exp.f64 x) (expm1.f64 x)) |
(/.f64 (exp.f64 x) (-.f64 (exp.f64 x) 1)) |
(/.f64 (exp.f64 x) (expm1.f64 x)) |
(/.f64 (exp.f64 x) (-.f64 (exp.f64 x) 1)) |
(/.f64 (exp.f64 x) (expm1.f64 x)) |
(/.f64 (exp.f64 x) (-.f64 (exp.f64 x) 1)) |
(/.f64 (exp.f64 x) (expm1.f64 x)) |
(/.f64 (exp.f64 x) (-.f64 (exp.f64 x) 1)) |
(/.f64 (exp.f64 x) (expm1.f64 x)) |
(/.f64 (exp.f64 x) (-.f64 (exp.f64 x) 1)) |
(/.f64 (exp.f64 x) (expm1.f64 x)) |
(/.f64 1 x) |
(-.f64 (/.f64 1 x) 1/2) |
(+.f64 (/.f64 1 x) -1/2) |
(-.f64 (+.f64 (/.f64 1 x) (*.f64 1/12 x)) 1/2) |
(+.f64 (/.f64 1 x) (-.f64 (*.f64 x 1/12) 1/2)) |
(+.f64 (/.f64 1 x) (fma.f64 x 1/12 -1/2)) |
(-.f64 (+.f64 (/.f64 1 x) (*.f64 1/12 x)) (+.f64 1/2 (*.f64 1/720 (pow.f64 x 3)))) |
(-.f64 (+.f64 (/.f64 1 x) (*.f64 x 1/12)) (+.f64 1/2 (*.f64 1/720 (pow.f64 x 3)))) |
(-.f64 (fma.f64 x 1/12 (/.f64 1 x)) (fma.f64 1/720 (pow.f64 x 3) 1/2)) |
(+.f64 (/.f64 1 x) (fma.f64 x 1/12 (fma.f64 (pow.f64 x 3) -1/720 -1/2))) |
(+.f64 -1/2 (fma.f64 x (fma.f64 x (*.f64 x -1/720) 1/12) (/.f64 1 x))) |
(fma.f64 x 1/12 (-.f64 (/.f64 1 x) (fma.f64 1/720 (pow.f64 x 3) 1/2))) |
(/.f64 1 (-.f64 (exp.f64 x) 1)) |
(/.f64 1 (expm1.f64 x)) |
(/.f64 1 (-.f64 (exp.f64 x) 1)) |
(/.f64 1 (expm1.f64 x)) |
(/.f64 1 (-.f64 (exp.f64 x) 1)) |
(/.f64 1 (expm1.f64 x)) |
(/.f64 1 (-.f64 (exp.f64 x) 1)) |
(/.f64 1 (expm1.f64 x)) |
(/.f64 1 (-.f64 (exp.f64 x) 1)) |
(/.f64 1 (expm1.f64 x)) |
(/.f64 1 (-.f64 (exp.f64 x) 1)) |
(/.f64 1 (expm1.f64 x)) |
(/.f64 1 (-.f64 (exp.f64 x) 1)) |
(/.f64 1 (expm1.f64 x)) |
(/.f64 1 (-.f64 (exp.f64 x) 1)) |
(/.f64 1 (expm1.f64 x)) |
2 alts after pruning (1 fresh and 1 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 62 | 0 | 62 |
| Fresh | 0 | 1 | 1 |
| Picked | 0 | 1 | 1 |
| Done | 0 | 0 | 0 |
| Total | 62 | 2 | 64 |
| Status | Error | Program |
|---|---|---|
| ✓ | 0.3b | (*.f64 (exp.f64 x) (/.f64 1 (expm1.f64 x))) |
| ▶ | 17.4b | (+.f64 1/2 (/.f64 1 x)) |
Compiled 607 to 327 computations (46.1% saved)
2 alts after pruning (0 fresh and 2 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 0 | 0 | 0 |
| Fresh | 0 | 0 | 0 |
| Picked | 0 | 1 | 1 |
| Done | 0 | 1 | 1 |
| Total | 0 | 2 | 2 |
| Status | Error | Program |
|---|---|---|
| ✓ | 0.3b | (*.f64 (exp.f64 x) (/.f64 1 (expm1.f64 x))) |
| ✓ | 17.4b | (+.f64 1/2 (/.f64 1 x)) |
Compiled 14 to 11 computations (21.4% saved)
Total 0.1b remaining (19.7%)
Threshold costs 0.1b (19.7%)
Compiled 64 to 40 computations (37.5% saved)
| 1× | egg-herbie |
| 1× | *-commutative_binary64 |
| 1× | 1-exp_binary64 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 7 | 11 |
| 1 | 10 | 11 |
| 1× | saturated |
| Inputs |
|---|
(*.f64 (exp.f64 x) (/.f64 1 (expm1.f64 x))) |
| Outputs |
|---|
(*.f64 (exp.f64 x) (/.f64 1 (expm1.f64 x))) |
| 1× | done |
Compiled 30 to 23 computations (23.3% saved)
Loading profile data...