Time bar (total: 2.9s)
| 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)
| 905.0ms | 2777× | body | 1024 | valid |
| 289.0ms | 1319× | body | 512 | valid |
| 254.0ms | 3168× | body | 128 | valid |
| 115.0ms | 315× | body | 2048 | valid |
| 105.0ms | 677× | body | 256 | valid |
| 0.0ms | 1× | body | 2048 | invalid |
| 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 exp.f64 (-.f64 x (log.f64 (expm1.f64 x))))))) (#(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 expm1.f64 (log1p.f64 (/.f64 (exp.f64 x) (expm1.f64 x)))))))) |
| 1× | egg-herbie |
| 567× | sqr-pow_binary64 |
| 438× | associate-*l*_binary64 |
| 362× | unswap-sqr_binary64 |
| 313× | pow-sqr_binary64 |
| 311× | fma-def_binary64 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 19 | 104 |
| 1 | 48 | 104 |
| 2 | 94 | 104 |
| 3 | 215 | 104 |
| 4 | 331 | 104 |
| 5 | 568 | 104 |
| 6 | 1456 | 104 |
| 7 | 2283 | 104 |
| 8 | 2369 | 104 |
| 9 | 2502 | 104 |
| 10 | 2660 | 104 |
| 11 | 2890 | 104 |
| 12 | 3212 | 104 |
| 13 | 3633 | 104 |
| 14 | 4133 | 104 |
| 15 | 4728 | 104 |
| 1× | node limit |
| Inputs |
|---|
(/.f64 1 x) |
(+.f64 1/2 (/.f64 1 x)) |
(+.f64 1/2 (+.f64 (*.f64 1/12 x) (/.f64 1 x))) |
(+.f64 1/2 (+.f64 (*.f64 -1/720 (pow.f64 x 3)) (+.f64 (*.f64 1/12 x) (/.f64 1 x)))) |
(/.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/12 x) (/.f64 1 x))) |
(+.f64 1/2 (fma.f64 1/12 x (/.f64 1 x))) |
(+.f64 1/2 (fma.f64 x 1/12 (/.f64 1 x))) |
(+.f64 (/.f64 1 x) (fma.f64 x 1/12 1/2)) |
(+.f64 1/2 (+.f64 (*.f64 -1/720 (pow.f64 x 3)) (+.f64 (*.f64 1/12 x) (/.f64 1 x)))) |
(+.f64 1/2 (fma.f64 -1/720 (pow.f64 x 3) (fma.f64 1/12 x (/.f64 1 x)))) |
(+.f64 1/2 (fma.f64 -1/720 (pow.f64 x 3) (fma.f64 x 1/12 (/.f64 1 x)))) |
(+.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 -1/720 (pow.f64 x 3) (fma.f64 x 1/12 1/2))) |
(+.f64 (/.f64 1 x) (fma.f64 x (fma.f64 x (*.f64 x -1/720) 1/12) 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)) |
3 alts after pruning (2 fresh and 1 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 38 | 2 | 40 |
| Fresh | 0 | 0 | 0 |
| Picked | 0 | 1 | 1 |
| Done | 0 | 0 | 0 |
| Total | 38 | 3 | 41 |
| Status | Error | Program |
|---|---|---|
| ✓ | 0.3b | (/.f64 (exp.f64 x) (expm1.f64 x)) |
| 22.9b | (+.f64 (/.f64 1 x) 1/2) | |
| ▶ | 0.3b | (pow.f64 (/.f64 (expm1.f64 x) (exp.f64 x)) -1) |
Compiled 423 to 191 computations (54.8% saved)
Found 2 expressions with local error:
| New | Error | Program |
|---|---|---|
| ✓ | 0.0b | (pow.f64 (/.f64 (expm1.f64 x) (exp.f64 x)) -1) |
| ✓ | 0.3b | (/.f64 (expm1.f64 x) (exp.f64 x)) |
6 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 1.0ms | x | @ | inf | (/.f64 (expm1.f64 x) (exp.f64 x)) |
| 1.0ms | x | @ | -inf | (pow.f64 (/.f64 (expm1.f64 x) (exp.f64 x)) -1) |
| 1.0ms | x | @ | inf | (pow.f64 (/.f64 (expm1.f64 x) (exp.f64 x)) -1) |
| 1.0ms | x | @ | -inf | (/.f64 (expm1.f64 x) (exp.f64 x)) |
| 1.0ms | x | @ | 0 | (/.f64 (expm1.f64 x) (exp.f64 x)) |
| 1× | batch-egg-rewrite |
| 672× | pow1_binary64 |
| 625× | add-log-exp_binary64 |
| 625× | log1p-expm1-u_binary64 |
| 625× | expm1-log1p-u_binary64 |
| 69× | add-sqr-sqrt_binary64 |
Useful iterations: 1 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 7 | 19 |
| 1 | 141 | 16 |
| 2 | 1742 | 16 |
| 1× | node limit |
| Inputs |
|---|
(/.f64 (expm1.f64 x) (exp.f64 x)) |
(pow.f64 (/.f64 (expm1.f64 x) (exp.f64 x)) -1) |
| Outputs |
|---|
((#(struct:change #<rule egg-rr> (2) ((x -.f64 (exp.f64 (log1p.f64 (/.f64 (expm1.f64 x) (exp.f64 x)))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (/.f64 (exp.f64 x) (exp.f64 x)) (exp.f64 (neg.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (expm1.f64 x) (exp.f64 (neg.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (expm1.f64 x) (exp.f64 x)) 1)))) (#(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 (expm1.f64 x)) 2) (*.f64 (cbrt.f64 (expm1.f64 x)) (exp.f64 (neg.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (/.f64 (expm1.f64 x) (exp.f64 x))) (pow.f64 (cbrt.f64 (/.f64 (expm1.f64 x) (exp.f64 x))) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (/.f64 (expm1.f64 x) (exp.f64 x))) 2) (cbrt.f64 (/.f64 (expm1.f64 x) (exp.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (expm1.f64 x)) (*.f64 (sqrt.f64 (expm1.f64 x)) (exp.f64 (neg.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (/.f64 (expm1.f64 x) (exp.f64 x))) (sqrt.f64 (/.f64 (expm1.f64 x) (exp.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (neg.f64 (expm1.f64 x)) (/.f64 1 (neg.f64 (exp.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (exp.f64 (neg.f64 x)) (expm1.f64 x))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (pow.f64 (cbrt.f64 (expm1.f64 x)) 2) 1) (/.f64 (cbrt.f64 (expm1.f64 x)) (exp.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (sqrt.f64 (expm1.f64 x)) 1) (/.f64 (sqrt.f64 (expm1.f64 x)) (exp.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 1 (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 (/.f64 (pow.f64 (cbrt.f64 (expm1.f64 x)) 2) (pow.f64 (cbrt.f64 (exp.f64 x)) 2)) (cbrt.f64 (/.f64 (expm1.f64 x) (exp.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (sqrt.f64 (expm1.f64 x)) (pow.f64 (cbrt.f64 (exp.f64 x)) 2)) (/.f64 (sqrt.f64 (expm1.f64 x)) (cbrt.f64 (exp.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 1 (sqrt.f64 (exp.f64 x))) (/.f64 (expm1.f64 x) (sqrt.f64 (exp.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (pow.f64 (cbrt.f64 (expm1.f64 x)) 2) (sqrt.f64 (exp.f64 x))) (/.f64 (cbrt.f64 (expm1.f64 x)) (sqrt.f64 (exp.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (/.f64 (expm1.f64 x) (exp.f64 x)) 1)))) (#(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 (expm1.f64 x) (exp.f64 x)) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (/.f64 (expm1.f64 x) (exp.f64 x))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (/.f64 (expm1.f64 x) (exp.f64 x))) 2)))) (#(struct:change #<rule egg-rr> (2) ((x neg.f64 (/.f64 (expm1.f64 x) (neg.f64 (exp.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (/.f64 (expm1.f64 x) (exp.f64 x)) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (/.f64 (expm1.f64 x) (exp.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (+.f64 1 (expm1.f64 (/.f64 (expm1.f64 x) (exp.f64 x)))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (/.f64 (expm1.f64 x) (exp.f64 x)) 3))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (/.f64 (pow.f64 (expm1.f64 x) 3) (pow.f64 (exp.f64 x) 3)))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (-.f64 (log.f64 (expm1.f64 x)) x))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (/.f64 (expm1.f64 x) (exp.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (/.f64 (expm1.f64 x) (exp.f64 x)))))))) |
((#(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) (/.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 (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 (/.f64 (exp.f64 x) (expm1.f64 x))) (sqrt.f64 (/.f64 (exp.f64 x) (expm1.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (expm1.f64 x) -1) (pow.f64 (exp.f64 (neg.f64 x)) -1))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (pow.f64 (cbrt.f64 (/.f64 (expm1.f64 x) (exp.f64 x))) 2) -1) (pow.f64 (cbrt.f64 (/.f64 (expm1.f64 x) (exp.f64 x))) -1))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (sqrt.f64 (/.f64 (expm1.f64 x) (exp.f64 x))) -1) (pow.f64 (sqrt.f64 (/.f64 (expm1.f64 x) (exp.f64 x))) -1))))) (#(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)) (/.f64 (cbrt.f64 (exp.f64 x)) (cbrt.f64 (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 *.f64 (/.f64 (sqrt.f64 (exp.f64 x)) (sqrt.f64 (expm1.f64 x))) (/.f64 (sqrt.f64 (exp.f64 x)) (sqrt.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 1 (neg.f64 (expm1.f64 x))) (neg.f64 (exp.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (exp.f64 x) (expm1.f64 x))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 -1 (neg.f64 (/.f64 (expm1.f64 x) (exp.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 1 (/.f64 (/.f64 (expm1.f64 x) (exp.f64 x)) 1))))) (#(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 (sqrt.f64 (/.f64 (exp.f64 x) (expm1.f64 x))) (sqrt.f64 (/.f64 (expm1.f64 x) (exp.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 1 (expm1.f64 x)) (exp.f64 (neg.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 (pow.f64 (cbrt.f64 (/.f64 (expm1.f64 x) (exp.f64 x))) 2)) (cbrt.f64 (/.f64 (expm1.f64 x) (exp.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (/.f64 (expm1.f64 x) (exp.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 exp.f64 (-.f64 x (log.f64 (expm1.f64 x))))))) (#(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 expm1.f64 (log1p.f64 (/.f64 (exp.f64 x) (expm1.f64 x)))))))) |
| 1× | egg-herbie |
| 803× | unswap-sqr_binary64 |
| 493× | distribute-lft-out_binary64 |
| 413× | *-commutative_binary64 |
| 384× | fma-def_binary64 |
| 232× | distribute-rgt-out_binary64 |
Useful iterations: 4 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 35 | 214 |
| 1 | 90 | 214 |
| 2 | 205 | 214 |
| 3 | 594 | 208 |
| 4 | 1600 | 200 |
| 5 | 2745 | 200 |
| 1× | node limit |
| Inputs |
|---|
x |
(+.f64 (*.f64 -1/2 (pow.f64 x 2)) x) |
(+.f64 (*.f64 1/6 (pow.f64 x 3)) (+.f64 (*.f64 -1/2 (pow.f64 x 2)) x)) |
(+.f64 (*.f64 1/6 (pow.f64 x 3)) (+.f64 (*.f64 -1/2 (pow.f64 x 2)) (+.f64 (*.f64 -1/24 (pow.f64 x 4)) x))) |
(/.f64 (-.f64 (exp.f64 x) 1) (exp.f64 x)) |
(/.f64 (-.f64 (exp.f64 x) 1) (exp.f64 x)) |
(/.f64 (-.f64 (exp.f64 x) 1) (exp.f64 x)) |
(/.f64 (-.f64 (exp.f64 x) 1) (exp.f64 x)) |
(/.f64 (-.f64 (exp.f64 x) 1) (exp.f64 x)) |
(/.f64 (-.f64 (exp.f64 x) 1) (exp.f64 x)) |
(/.f64 (-.f64 (exp.f64 x) 1) (exp.f64 x)) |
(/.f64 (-.f64 (exp.f64 x) 1) (exp.f64 x)) |
(/.f64 1 x) |
(+.f64 1/2 (/.f64 1 x)) |
(+.f64 1/2 (+.f64 (*.f64 1/12 x) (/.f64 1 x))) |
(+.f64 1/2 (+.f64 (*.f64 -1/720 (pow.f64 x 3)) (+.f64 (*.f64 1/12 x) (/.f64 1 x)))) |
(/.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 |
|---|
x |
(+.f64 (*.f64 -1/2 (pow.f64 x 2)) x) |
(fma.f64 -1/2 (*.f64 x x) x) |
(fma.f64 x (*.f64 x -1/2) x) |
(*.f64 x (fma.f64 x -1/2 1)) |
(+.f64 (*.f64 1/6 (pow.f64 x 3)) (+.f64 (*.f64 -1/2 (pow.f64 x 2)) x)) |
(fma.f64 1/6 (pow.f64 x 3) (fma.f64 -1/2 (*.f64 x x) x)) |
(fma.f64 x (*.f64 x -1/2) (fma.f64 1/6 (pow.f64 x 3) x)) |
(fma.f64 x (*.f64 x (fma.f64 x 1/6 -1/2)) x) |
(+.f64 (*.f64 1/6 (pow.f64 x 3)) (+.f64 (*.f64 -1/2 (pow.f64 x 2)) (+.f64 (*.f64 -1/24 (pow.f64 x 4)) x))) |
(fma.f64 1/6 (pow.f64 x 3) (fma.f64 -1/2 (*.f64 x x) (fma.f64 -1/24 (pow.f64 x 4) x))) |
(fma.f64 x (*.f64 x -1/2) (fma.f64 1/6 (pow.f64 x 3) (fma.f64 -1/24 (pow.f64 x 4) x))) |
(fma.f64 x (*.f64 x (fma.f64 x 1/6 -1/2)) (fma.f64 -1/24 (pow.f64 x 4) x)) |
(fma.f64 (*.f64 x x) (fma.f64 x 1/6 -1/2) (fma.f64 -1/24 (pow.f64 x 4) x)) |
(/.f64 (-.f64 (exp.f64 x) 1) (exp.f64 x)) |
(/.f64 (expm1.f64 x) (exp.f64 x)) |
(-.f64 1 (exp.f64 (neg.f64 x))) |
(neg.f64 (expm1.f64 (neg.f64 x))) |
(/.f64 (-.f64 (exp.f64 x) 1) (exp.f64 x)) |
(/.f64 (expm1.f64 x) (exp.f64 x)) |
(-.f64 1 (exp.f64 (neg.f64 x))) |
(neg.f64 (expm1.f64 (neg.f64 x))) |
(/.f64 (-.f64 (exp.f64 x) 1) (exp.f64 x)) |
(/.f64 (expm1.f64 x) (exp.f64 x)) |
(-.f64 1 (exp.f64 (neg.f64 x))) |
(neg.f64 (expm1.f64 (neg.f64 x))) |
(/.f64 (-.f64 (exp.f64 x) 1) (exp.f64 x)) |
(/.f64 (expm1.f64 x) (exp.f64 x)) |
(-.f64 1 (exp.f64 (neg.f64 x))) |
(neg.f64 (expm1.f64 (neg.f64 x))) |
(/.f64 (-.f64 (exp.f64 x) 1) (exp.f64 x)) |
(/.f64 (expm1.f64 x) (exp.f64 x)) |
(-.f64 1 (exp.f64 (neg.f64 x))) |
(neg.f64 (expm1.f64 (neg.f64 x))) |
(/.f64 (-.f64 (exp.f64 x) 1) (exp.f64 x)) |
(/.f64 (expm1.f64 x) (exp.f64 x)) |
(-.f64 1 (exp.f64 (neg.f64 x))) |
(neg.f64 (expm1.f64 (neg.f64 x))) |
(/.f64 (-.f64 (exp.f64 x) 1) (exp.f64 x)) |
(/.f64 (expm1.f64 x) (exp.f64 x)) |
(-.f64 1 (exp.f64 (neg.f64 x))) |
(neg.f64 (expm1.f64 (neg.f64 x))) |
(/.f64 (-.f64 (exp.f64 x) 1) (exp.f64 x)) |
(/.f64 (expm1.f64 x) (exp.f64 x)) |
(-.f64 1 (exp.f64 (neg.f64 x))) |
(neg.f64 (expm1.f64 (neg.f64 x))) |
(/.f64 1 x) |
(+.f64 1/2 (/.f64 1 x)) |
(+.f64 (/.f64 1 x) 1/2) |
(+.f64 1/2 (+.f64 (*.f64 1/12 x) (/.f64 1 x))) |
(+.f64 1/2 (fma.f64 1/12 x (/.f64 1 x))) |
(+.f64 1/2 (fma.f64 x 1/12 (/.f64 1 x))) |
(+.f64 (/.f64 1 x) (fma.f64 x 1/12 1/2)) |
(+.f64 1/2 (+.f64 (*.f64 -1/720 (pow.f64 x 3)) (+.f64 (*.f64 1/12 x) (/.f64 1 x)))) |
(+.f64 1/2 (fma.f64 -1/720 (pow.f64 x 3) (fma.f64 1/12 x (/.f64 1 x)))) |
(+.f64 1/2 (fma.f64 (pow.f64 x 3) -1/720 (fma.f64 x 1/12 (/.f64 1 x)))) |
(+.f64 (fma.f64 x 1/12 (/.f64 1 x)) (fma.f64 (pow.f64 x 3) -1/720 1/2)) |
(+.f64 (/.f64 1 x) (fma.f64 x 1/12 (fma.f64 (pow.f64 x 3) -1/720 1/2))) |
(+.f64 (/.f64 1 x) (fma.f64 (pow.f64 x 3) -1/720 (fma.f64 x 1/12 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 | 89 | 2 | 91 |
| Fresh | 1 | 0 | 1 |
| Picked | 1 | 0 | 1 |
| Done | 1 | 0 | 1 |
| Total | 92 | 2 | 94 |
| Status | Error | Program |
|---|---|---|
| 0.3b | (*.f64 (exp.f64 x) (/.f64 1 (expm1.f64 x))) | |
| ▶ | 0.0b | (pow.f64 (neg.f64 (expm1.f64 (neg.f64 x))) -1) |
Compiled 1034 to 460 computations (55.5% saved)
Found 1 expressions with local error:
| New | Error | Program |
|---|---|---|
| ✓ | 0.0b | (pow.f64 (neg.f64 (expm1.f64 (neg.f64 x))) -1) |
3 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 2.0ms | x | @ | -inf | (pow.f64 (neg.f64 (expm1.f64 (neg.f64 x))) -1) |
| 1.0ms | x | @ | inf | (pow.f64 (neg.f64 (expm1.f64 (neg.f64 x))) -1) |
| 1.0ms | x | @ | 0 | (pow.f64 (neg.f64 (expm1.f64 (neg.f64 x))) -1) |
| 1× | batch-egg-rewrite |
| 457× | pow1_binary64 |
| 428× | add-log-exp_binary64 |
| 426× | log1p-expm1-u_binary64 |
| 426× | expm1-log1p-u_binary64 |
| 418× | add-exp-log_binary64 |
Useful iterations: 1 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 7 | 10 |
| 1 | 142 | 6 |
| 2 | 1692 | 6 |
| 1× | node limit |
| Inputs |
|---|
(pow.f64 (neg.f64 (expm1.f64 (neg.f64 x))) -1) |
| Outputs |
|---|
((#(struct:change #<rule egg-rr> (2) ((x -.f64 (+.f64 1 (/.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 1 (/.f64 -1 (expm1.f64 x)))))) (#(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 (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 /.f64 -1 (expm1.f64 x))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (expm1.f64 x))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (/.f64 (expm1.f64 x) 1))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (pow.f64 (expm1.f64 x) -1/2) (sqrt.f64 (expm1.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (/.f64 1 (pow.f64 (cbrt.f64 (expm1.f64 x)) 2)) (cbrt.f64 (expm1.f64 x)))))) (#(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 cbrt.f64 (pow.f64 (/.f64 -1 (expm1.f64 x)) 3))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (neg.f64 (log.f64 (expm1.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (/.f64 -1 (expm1.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (/.f64 -1 (expm1.f64 x)))))))) |
| 1× | egg-herbie |
| 756× | fma-def_binary64 |
| 604× | associate-*l*_binary64 |
| 429× | unswap-sqr_binary64 |
| 324× | *-commutative_binary64 |
| 209× | fma-neg_binary64 |
Useful iterations: 5 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 25 | 128 |
| 1 | 60 | 128 |
| 2 | 115 | 128 |
| 3 | 262 | 120 |
| 4 | 450 | 120 |
| 5 | 930 | 104 |
| 6 | 2320 | 104 |
| 7 | 4602 | 104 |
| 1× | node limit |
| Inputs |
|---|
(/.f64 1 x) |
(+.f64 1/2 (/.f64 1 x)) |
(+.f64 1/2 (+.f64 (*.f64 1/12 x) (/.f64 1 x))) |
(+.f64 1/2 (+.f64 (*.f64 -1/720 (pow.f64 x 3)) (+.f64 (*.f64 1/12 x) (/.f64 1 x)))) |
(/.f64 1 (-.f64 1 (exp.f64 (neg.f64 x)))) |
(/.f64 1 (-.f64 1 (exp.f64 (neg.f64 x)))) |
(/.f64 1 (-.f64 1 (exp.f64 (neg.f64 x)))) |
(/.f64 1 (-.f64 1 (exp.f64 (neg.f64 x)))) |
(/.f64 1 (-.f64 1 (exp.f64 (*.f64 -1 x)))) |
(/.f64 1 (-.f64 1 (exp.f64 (*.f64 -1 x)))) |
(/.f64 1 (-.f64 1 (exp.f64 (*.f64 -1 x)))) |
(/.f64 1 (-.f64 1 (exp.f64 (*.f64 -1 x)))) |
| Outputs |
|---|
(/.f64 1 x) |
(+.f64 1/2 (/.f64 1 x)) |
(+.f64 (/.f64 1 x) 1/2) |
(+.f64 1/2 (+.f64 (*.f64 1/12 x) (/.f64 1 x))) |
(+.f64 1/2 (fma.f64 1/12 x (/.f64 1 x))) |
(+.f64 1/2 (fma.f64 x 1/12 (/.f64 1 x))) |
(+.f64 (/.f64 1 x) (fma.f64 x 1/12 1/2)) |
(+.f64 1/2 (+.f64 (*.f64 -1/720 (pow.f64 x 3)) (+.f64 (*.f64 1/12 x) (/.f64 1 x)))) |
(+.f64 1/2 (fma.f64 -1/720 (pow.f64 x 3) (fma.f64 1/12 x (/.f64 1 x)))) |
(+.f64 1/2 (fma.f64 -1/720 (pow.f64 x 3) (fma.f64 x 1/12 (/.f64 1 x)))) |
(+.f64 1/2 (fma.f64 x 1/12 (fma.f64 -1/720 (pow.f64 x 3) (/.f64 1 x)))) |
(+.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 (fma.f64 x (*.f64 x -1/720) 1/12) 1/2)) |
(+.f64 (fma.f64 x 1/12 1/2) (fma.f64 -1/720 (pow.f64 x 3) (/.f64 1 x))) |
(+.f64 (/.f64 1 x) (fma.f64 x 1/12 (fma.f64 -1/720 (pow.f64 x 3) 1/2))) |
(/.f64 1 (-.f64 1 (exp.f64 (neg.f64 x)))) |
(/.f64 1 (neg.f64 (expm1.f64 (neg.f64 x)))) |
(/.f64 -1 (expm1.f64 (neg.f64 x))) |
(/.f64 1 (-.f64 1 (exp.f64 (neg.f64 x)))) |
(/.f64 1 (neg.f64 (expm1.f64 (neg.f64 x)))) |
(/.f64 -1 (expm1.f64 (neg.f64 x))) |
(/.f64 1 (-.f64 1 (exp.f64 (neg.f64 x)))) |
(/.f64 1 (neg.f64 (expm1.f64 (neg.f64 x)))) |
(/.f64 -1 (expm1.f64 (neg.f64 x))) |
(/.f64 1 (-.f64 1 (exp.f64 (neg.f64 x)))) |
(/.f64 1 (neg.f64 (expm1.f64 (neg.f64 x)))) |
(/.f64 -1 (expm1.f64 (neg.f64 x))) |
(/.f64 1 (-.f64 1 (exp.f64 (*.f64 -1 x)))) |
(/.f64 1 (-.f64 1 (exp.f64 (neg.f64 x)))) |
(/.f64 1 (neg.f64 (expm1.f64 (neg.f64 x)))) |
(/.f64 -1 (expm1.f64 (neg.f64 x))) |
(/.f64 1 (-.f64 1 (exp.f64 (*.f64 -1 x)))) |
(/.f64 1 (-.f64 1 (exp.f64 (neg.f64 x)))) |
(/.f64 1 (neg.f64 (expm1.f64 (neg.f64 x)))) |
(/.f64 -1 (expm1.f64 (neg.f64 x))) |
(/.f64 1 (-.f64 1 (exp.f64 (*.f64 -1 x)))) |
(/.f64 1 (-.f64 1 (exp.f64 (neg.f64 x)))) |
(/.f64 1 (neg.f64 (expm1.f64 (neg.f64 x)))) |
(/.f64 -1 (expm1.f64 (neg.f64 x))) |
(/.f64 1 (-.f64 1 (exp.f64 (*.f64 -1 x)))) |
(/.f64 1 (-.f64 1 (exp.f64 (neg.f64 x)))) |
(/.f64 1 (neg.f64 (expm1.f64 (neg.f64 x)))) |
(/.f64 -1 (expm1.f64 (neg.f64 x))) |
2 alts after pruning (1 fresh and 1 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 30 | 0 | 30 |
| Fresh | 0 | 1 | 1 |
| Picked | 0 | 1 | 1 |
| Done | 0 | 0 | 0 |
| Total | 30 | 2 | 32 |
| Status | Error | Program |
|---|---|---|
| ▶ | 0.3b | (*.f64 (exp.f64 x) (/.f64 1 (expm1.f64 x))) |
| ✓ | 0.0b | (pow.f64 (neg.f64 (expm1.f64 (neg.f64 x))) -1) |
Compiled 251 to 169 computations (32.7% saved)
Found 2 expressions with local error:
| New | Error | Program |
|---|---|---|
| ✓ | 0.0b | (/.f64 1 (expm1.f64 x)) |
| ✓ | 0.3b | (*.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 exp.f64 (-.f64 x (log.f64 (expm1.f64 x))))))) (#(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 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 exp.f64 (neg.f64 (log.f64 (expm1.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (/.f64 1 (expm1.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (/.f64 1 (expm1.f64 x)))))))) |
| 1× | egg-herbie |
| 512× | fma-neg_binary64 |
| 411× | distribute-rgt-neg-in_binary64 |
| 321× | fma-def_binary64 |
| 281× | distribute-lft-neg-in_binary64 |
| 221× | cancel-sign-sub-inv_binary64 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 23 | 192 |
| 1 | 59 | 192 |
| 2 | 123 | 192 |
| 3 | 307 | 192 |
| 4 | 517 | 192 |
| 5 | 1048 | 192 |
| 6 | 2130 | 192 |
| 7 | 3948 | 192 |
| 8 | 4881 | 192 |
| 1× | node limit |
| Inputs |
|---|
(/.f64 1 x) |
(+.f64 1/2 (/.f64 1 x)) |
(+.f64 1/2 (+.f64 (*.f64 1/12 x) (/.f64 1 x))) |
(+.f64 1/2 (+.f64 (*.f64 -1/720 (pow.f64 x 3)) (+.f64 (*.f64 1/12 x) (/.f64 1 x)))) |
(/.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/12 x) (/.f64 1 x)) 1/2) |
(-.f64 (+.f64 (*.f64 -1/720 (pow.f64 x 3)) (+.f64 (*.f64 1/12 x) (/.f64 1 x))) 1/2) |
(/.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/12 x) (/.f64 1 x))) |
(+.f64 1/2 (fma.f64 1/12 x (/.f64 1 x))) |
(+.f64 1/2 (fma.f64 x 1/12 (/.f64 1 x))) |
(+.f64 (/.f64 1 x) (fma.f64 x 1/12 1/2)) |
(+.f64 1/2 (+.f64 (*.f64 -1/720 (pow.f64 x 3)) (+.f64 (*.f64 1/12 x) (/.f64 1 x)))) |
(+.f64 1/2 (fma.f64 -1/720 (pow.f64 x 3) (fma.f64 1/12 x (/.f64 1 x)))) |
(+.f64 1/2 (fma.f64 -1/720 (pow.f64 x 3) (fma.f64 x 1/12 (/.f64 1 x)))) |
(fma.f64 -1/720 (pow.f64 x 3) (+.f64 1/2 (fma.f64 x 1/12 (/.f64 1 x)))) |
(+.f64 (/.f64 1 x) (fma.f64 x (fma.f64 -1/720 (*.f64 x x) 1/12) 1/2)) |
(fma.f64 x (fma.f64 -1/720 (*.f64 x x) 1/12) (+.f64 (/.f64 1 x) 1/2)) |
(+.f64 (/.f64 1 x) (fma.f64 x 1/12 (fma.f64 -1/720 (pow.f64 x 3) 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)) |
(/.f64 1 x) |
(-.f64 (/.f64 1 x) 1/2) |
(+.f64 (/.f64 1 x) -1/2) |
(-.f64 (+.f64 (*.f64 1/12 x) (/.f64 1 x)) 1/2) |
(+.f64 (fma.f64 1/12 x (/.f64 1 x)) -1/2) |
(+.f64 (fma.f64 x 1/12 (/.f64 1 x)) -1/2) |
(+.f64 (/.f64 1 x) (fma.f64 x 1/12 -1/2)) |
(-.f64 (/.f64 1 x) (fma.f64 x -1/12 1/2)) |
(-.f64 (+.f64 (*.f64 -1/720 (pow.f64 x 3)) (+.f64 (*.f64 1/12 x) (/.f64 1 x))) 1/2) |
(+.f64 (fma.f64 -1/720 (pow.f64 x 3) (fma.f64 1/12 x (/.f64 1 x))) -1/2) |
(fma.f64 -1/720 (pow.f64 x 3) (+.f64 (fma.f64 x 1/12 (/.f64 1 x)) -1/2)) |
(+.f64 (fma.f64 x 1/12 (/.f64 1 x)) (fma.f64 -1/720 (pow.f64 x 3) -1/2)) |
(fma.f64 x 1/12 (+.f64 (/.f64 1 x) (fma.f64 -1/720 (pow.f64 x 3) -1/2))) |
(+.f64 (/.f64 1 x) (fma.f64 -1/720 (pow.f64 x 3) (fma.f64 x 1/12 -1/2))) |
(+.f64 (/.f64 1 x) (fma.f64 x (fma.f64 -1/720 (*.f64 x x) 1/12) -1/2)) |
(fma.f64 -1/720 (pow.f64 x 3) (-.f64 (/.f64 1 x) (fma.f64 x -1/12 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 (0 fresh and 2 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 62 | 0 | 62 |
| Fresh | 0 | 0 | 0 |
| Picked | 0 | 1 | 1 |
| Done | 0 | 1 | 1 |
| Total | 62 | 2 | 64 |
| Status | Error | Program |
|---|---|---|
| ✓ | 0.3b | (*.f64 (exp.f64 x) (/.f64 1 (expm1.f64 x))) |
| ✓ | 0.0b | (pow.f64 (neg.f64 (expm1.f64 (neg.f64 x))) -1) |
Compiled 602 to 323 computations (46.3% saved)
Total -62.0b remaining (-528733.2%)
Threshold costs -62.0b (-528733.2%)
| Inputs |
|---|
(*.f64 (exp.f64 x) (/.f64 1 (expm1.f64 x))) |
(pow.f64 (neg.f64 (expm1.f64 (neg.f64 x))) -1) |
(+.f64 (/.f64 1 x) 1/2) |
(pow.f64 (/.f64 (expm1.f64 x) (exp.f64 x)) -1) |
(/.f64 (exp.f64 x) (expm1.f64 x)) |
(/.f64 (exp.f64 x) (-.f64 (exp.f64 x) 1)) |
| Outputs |
|---|
(pow.f64 (neg.f64 (expm1.f64 (neg.f64 x))) -1) |
| 9.0ms | 0.0b | x |
| 2.0ms | 0.0b | (/.f64 (exp.f64 x) (-.f64 (exp.f64 x) 1)) |
| 2.0ms | 0.0b | (exp.f64 x) |
Compiled 51 to 30 computations (41.2% saved)
| 1× | egg-herbie |
| 2× | +-commutative_binary64 |
| 2× | *-commutative_binary64 |
| 2× | sub-neg_binary64 |
| 2× | neg-sub0_binary64 |
| 2× | neg-mul-1_binary64 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 7 | 10 |
| 1 | 12 | 10 |
| 2 | 16 | 10 |
| 3 | 18 | 10 |
| 1× | saturated |
| Inputs |
|---|
(pow.f64 (neg.f64 (expm1.f64 (neg.f64 x))) -1) |
| Outputs |
|---|
(pow.f64 (neg.f64 (expm1.f64 (neg.f64 x))) -1) |
| 1× | done |
Compiled 14 to 12 computations (14.3% saved)
Loading profile data...