Time bar (total: 1.9s)
| 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% | 0.8% | 49.2% | 9 |
| 50% | 0.4% | 49.6% | 10 |
| 50.2% | 0.2% | 49.6% | 11 |
| 50.2% | 0.1% | 49.7% | 12 |
Compiled 9 to 7 computations (22.2% saved)
| 945.0ms | 8256× | body | 256 | valid |
| 1.0ms | 7× | body | 256 | invalid |
| 2× | egg-herbie |
| 663× | div-sub_binary64 |
| 631× | fma-def_binary64 |
| 417× | times-frac_binary64 |
| 412× | associate-/l*_binary64 |
| 382× | fma-neg_binary64 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 7 | 11 |
| 1 | 19 | 9 |
| 2 | 50 | 9 |
| 3 | 111 | 7 |
| 4 | 236 | 7 |
| 5 | 531 | 7 |
| 6 | 1613 | 7 |
| 7 | 5578 | 7 |
| 0 | 1 | 1 |
| 1× | saturated |
| 1× | node limit |
| Inputs |
|---|
0 |
| Outputs |
|---|
0 |
| Inputs |
|---|
(exp.f64 (neg.f64 (-.f64 1 (*.f64 x x)))) |
| Outputs |
|---|
(exp.f64 (neg.f64 (-.f64 1 (*.f64 x x)))) |
(exp.f64 (+.f64 -1 (*.f64 x x))) |
(exp.f64 (+.f64 (*.f64 x x) -1)) |
(exp.f64 (fma.f64 x x -1)) |
Compiled 9 to 7 computations (22.2% saved)
| 1× | egg-herbie |
| 663× | div-sub_binary64 |
| 631× | fma-def_binary64 |
| 417× | times-frac_binary64 |
| 412× | associate-/l*_binary64 |
| 382× | fma-neg_binary64 |
Useful iterations: 3 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 7 | 11 |
| 1 | 19 | 9 |
| 2 | 50 | 9 |
| 3 | 111 | 7 |
| 4 | 236 | 7 |
| 5 | 531 | 7 |
| 6 | 1613 | 7 |
| 7 | 5578 | 7 |
| 1× | node limit |
| Inputs |
|---|
(exp.f64 (neg.f64 (-.f64 1 (*.f64 x x)))) |
| Outputs |
|---|
(exp.f64 (neg.f64 (-.f64 1 (*.f64 x x)))) |
(exp.f64 (+.f64 -1 (*.f64 x x))) |
(exp.f64 (+.f64 (*.f64 x x) -1)) |
(exp.f64 (fma.f64 x x -1)) |
Compiled 13 to 9 computations (30.8% saved)
2 alts after pruning (2 fresh and 0 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 1 | 1 | 2 |
| Fresh | 0 | 1 | 1 |
| Picked | 0 | 0 | 0 |
| Done | 0 | 0 | 0 |
| Total | 1 | 2 | 3 |
| Status | Error | Program |
|---|---|---|
| ▶ | 0.0b | (exp.f64 (neg.f64 (-.f64 1 (*.f64 x x)))) |
Compiled 8 to 6 computations (25% saved)
Found 2 expressions with local error:
| New | Error | Program |
|---|---|---|
| 0.0b | (exp.f64 (neg.f64 (-.f64 1 (*.f64 x x)))) | |
| ✓ | 0.0b | (exp.f64 (neg.f64 (-.f64 1 (*.f64 x x)))) |
3 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 1.0ms | x | @ | 0 | (exp.f64 (neg.f64 (-.f64 1 (*.f64 x x)))) |
| 0.0ms | x | @ | inf | (exp.f64 (neg.f64 (-.f64 1 (*.f64 x x)))) |
| 0.0ms | x | @ | -inf | (exp.f64 (neg.f64 (-.f64 1 (*.f64 x x)))) |
| 1× | batch-egg-rewrite |
| 606× | pow1_binary64 |
| 566× | add-log-exp_binary64 |
| 565× | log1p-expm1-u_binary64 |
| 565× | expm1-log1p-u_binary64 |
| 554× | add-exp-log_binary64 |
Useful iterations: 1 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 7 | 11 |
| 1 | 145 | 9 |
| 2 | 1841 | 9 |
| 1× | node limit |
| Inputs |
|---|
(exp.f64 (neg.f64 (-.f64 1 (*.f64 x x)))) |
| Outputs |
|---|
((#(struct:change #<rule egg-rr> (2) ((x +.f64 1 (expm1.f64 (+.f64 -1 (*.f64 x x))))))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (+.f64 1 (exp.f64 (+.f64 -1 (*.f64 x x)))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (exp.f64 (+.f64 -1 (*.f64 x x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (exp.f64 (+.f64 -1 (*.f64 x x))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (E.f64) (exp.f64 (*.f64 x (neg.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (exp.f64 (+.f64 -1 (*.f64 x x)))) (pow.f64 (cbrt.f64 (exp.f64 (+.f64 -1 (*.f64 x x)))) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (exp.f64 (+.f64 -1 (*.f64 x x)))) 2) (cbrt.f64 (exp.f64 (+.f64 -1 (*.f64 x x)))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (exp.f64 (+.f64 -1 (*.f64 x x)))) (sqrt.f64 (exp.f64 (+.f64 -1 (*.f64 x x)))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (exp.f64 (+.f64 -1 (*.f64 x x))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (/.f64 (exp.f64 (+.f64 -1 (*.f64 x x))) 1))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (E.f64) (pow.f64 (exp.f64 x) x))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 -1 (neg.f64 (exp.f64 (+.f64 -1 (*.f64 x x)))))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (exp.f64 (+.f64 -1 (*.f64 x x))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (exp.f64 (+.f64 -1 (*.f64 x x))) -1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (E.f64) (+.f64 -1 (*.f64 x x)))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (exp.f64 (+.f64 -1 (*.f64 x x))) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (exp.f64 (+.f64 -1 (*.f64 x x)))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (exp.f64 (+.f64 -1 (*.f64 x x)))) 2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (exp.f64 (sqrt.f64 (+.f64 -1 (*.f64 x x)))) (sqrt.f64 (+.f64 -1 (*.f64 x x))))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (exp.f64 (pow.f64 (cbrt.f64 (+.f64 -1 (*.f64 x x))) 2)) (cbrt.f64 (+.f64 -1 (*.f64 x x))))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (exp.f64 -1) (+.f64 -1 (*.f64 x x)))))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (exp.f64 (+.f64 -1 (*.f64 x x))) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (exp.f64 (+.f64 -1 (*.f64 x x)))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (exp.f64 (+.f64 -1 (*.f64 x x))) 3))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (exp.f64 (+.f64 -1 (*.f64 x x)))))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (exp.f64 (+.f64 -1 (*.f64 x x))))))))) |
| 1× | egg-herbie |
| 707× | distribute-lft-out_binary64 |
| 453× | fma-neg_binary64 |
| 394× | *-commutative_binary64 |
| 355× | distribute-rgt-out_binary64 |
| 341× | associate-*l*_binary64 |
Useful iterations: 3 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 24 | 151 |
| 1 | 60 | 131 |
| 2 | 145 | 119 |
| 3 | 461 | 112 |
| 4 | 1854 | 112 |
| 5 | 3798 | 112 |
| 6 | 5492 | 112 |
| 7 | 7410 | 112 |
| 1× | node limit |
| Inputs |
|---|
(exp.f64 -1) |
(+.f64 (*.f64 (exp.f64 -1) (pow.f64 x 2)) (exp.f64 -1)) |
(+.f64 (*.f64 (exp.f64 -1) (pow.f64 x 2)) (+.f64 (exp.f64 -1) (*.f64 1/2 (*.f64 (exp.f64 -1) (pow.f64 x 4))))) |
(+.f64 (*.f64 1/6 (*.f64 (exp.f64 -1) (pow.f64 x 6))) (+.f64 (*.f64 (exp.f64 -1) (pow.f64 x 2)) (+.f64 (exp.f64 -1) (*.f64 1/2 (*.f64 (exp.f64 -1) (pow.f64 x 4)))))) |
(exp.f64 (-.f64 (pow.f64 x 2) 1)) |
(exp.f64 (-.f64 (pow.f64 x 2) 1)) |
(exp.f64 (-.f64 (pow.f64 x 2) 1)) |
(exp.f64 (-.f64 (pow.f64 x 2) 1)) |
(exp.f64 (-.f64 (pow.f64 x 2) 1)) |
(exp.f64 (-.f64 (pow.f64 x 2) 1)) |
(exp.f64 (-.f64 (pow.f64 x 2) 1)) |
(exp.f64 (-.f64 (pow.f64 x 2) 1)) |
| Outputs |
|---|
(exp.f64 -1) |
(+.f64 (*.f64 (exp.f64 -1) (pow.f64 x 2)) (exp.f64 -1)) |
(fma.f64 (exp.f64 -1) (*.f64 x x) (exp.f64 -1)) |
(*.f64 (+.f64 (*.f64 x x) 1) (exp.f64 -1)) |
(*.f64 (exp.f64 -1) (fma.f64 x x 1)) |
(+.f64 (*.f64 (exp.f64 -1) (pow.f64 x 2)) (+.f64 (exp.f64 -1) (*.f64 1/2 (*.f64 (exp.f64 -1) (pow.f64 x 4))))) |
(+.f64 (fma.f64 (exp.f64 -1) (*.f64 x x) (exp.f64 -1)) (*.f64 1/2 (*.f64 (exp.f64 -1) (pow.f64 x 4)))) |
(fma.f64 (exp.f64 -1) (*.f64 x x) (fma.f64 1/2 (*.f64 (exp.f64 -1) (pow.f64 x 4)) (exp.f64 -1))) |
(*.f64 (exp.f64 -1) (+.f64 (*.f64 1/2 (pow.f64 x 4)) (fma.f64 x x 1))) |
(*.f64 (exp.f64 -1) (fma.f64 1/2 (pow.f64 x 4) (fma.f64 x x 1))) |
(+.f64 (*.f64 1/6 (*.f64 (exp.f64 -1) (pow.f64 x 6))) (+.f64 (*.f64 (exp.f64 -1) (pow.f64 x 2)) (+.f64 (exp.f64 -1) (*.f64 1/2 (*.f64 (exp.f64 -1) (pow.f64 x 4)))))) |
(fma.f64 1/6 (*.f64 (exp.f64 -1) (pow.f64 x 6)) (+.f64 (fma.f64 (exp.f64 -1) (*.f64 x x) (exp.f64 -1)) (*.f64 1/2 (*.f64 (exp.f64 -1) (pow.f64 x 4))))) |
(fma.f64 1/6 (*.f64 (exp.f64 -1) (pow.f64 x 6)) (fma.f64 (exp.f64 -1) (*.f64 x x) (fma.f64 1/2 (*.f64 (exp.f64 -1) (pow.f64 x 4)) (exp.f64 -1)))) |
(fma.f64 (fma.f64 x x 1) (exp.f64 -1) (*.f64 (exp.f64 -1) (+.f64 (*.f64 1/2 (pow.f64 x 4)) (*.f64 1/6 (pow.f64 x 6))))) |
(*.f64 (exp.f64 -1) (+.f64 (*.f64 1/2 (pow.f64 x 4)) (fma.f64 1/6 (pow.f64 x 6) (fma.f64 x x 1)))) |
(*.f64 (exp.f64 -1) (+.f64 (fma.f64 x x 1) (fma.f64 1/2 (pow.f64 x 4) (*.f64 1/6 (pow.f64 x 6))))) |
(exp.f64 (-.f64 (pow.f64 x 2) 1)) |
(exp.f64 (+.f64 (*.f64 x x) -1)) |
(exp.f64 (fma.f64 x x -1)) |
(exp.f64 (-.f64 (pow.f64 x 2) 1)) |
(exp.f64 (+.f64 (*.f64 x x) -1)) |
(exp.f64 (fma.f64 x x -1)) |
(exp.f64 (-.f64 (pow.f64 x 2) 1)) |
(exp.f64 (+.f64 (*.f64 x x) -1)) |
(exp.f64 (fma.f64 x x -1)) |
(exp.f64 (-.f64 (pow.f64 x 2) 1)) |
(exp.f64 (+.f64 (*.f64 x x) -1)) |
(exp.f64 (fma.f64 x x -1)) |
(exp.f64 (-.f64 (pow.f64 x 2) 1)) |
(exp.f64 (+.f64 (*.f64 x x) -1)) |
(exp.f64 (fma.f64 x x -1)) |
(exp.f64 (-.f64 (pow.f64 x 2) 1)) |
(exp.f64 (+.f64 (*.f64 x x) -1)) |
(exp.f64 (fma.f64 x x -1)) |
(exp.f64 (-.f64 (pow.f64 x 2) 1)) |
(exp.f64 (+.f64 (*.f64 x x) -1)) |
(exp.f64 (fma.f64 x x -1)) |
(exp.f64 (-.f64 (pow.f64 x 2) 1)) |
(exp.f64 (+.f64 (*.f64 x x) -1)) |
(exp.f64 (fma.f64 x x -1)) |
Compiled 359 to 249 computations (30.6% saved)
3 alts after pruning (2 fresh and 1 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 33 | 2 | 35 |
| Fresh | 0 | 0 | 0 |
| Picked | 0 | 1 | 1 |
| Done | 0 | 0 | 0 |
| Total | 33 | 3 | 36 |
| Status | Error | Program |
|---|---|---|
| ▶ | 0.8b | (exp.f64 -1) |
| ✓ | 0.0b | (exp.f64 (neg.f64 (-.f64 1 (*.f64 x x)))) |
| ▶ | 0.0b | (+.f64 1 (expm1.f64 (+.f64 -1 (*.f64 x x)))) |
Compiled 20 to 16 computations (20% saved)
Found 4 expressions with local error:
| New | Error | Program |
|---|---|---|
| 0.0b | (expm1.f64 (+.f64 -1 (*.f64 x x))) | |
| 0.0b | (+.f64 1 (expm1.f64 (+.f64 -1 (*.f64 x x)))) | |
| ✓ | 0.0b | (+.f64 1 (expm1.f64 (+.f64 -1 (*.f64 x x)))) |
| ✓ | 0.0b | (expm1.f64 (+.f64 -1 (*.f64 x x))) |
6 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 0.0ms | x | @ | 0 | (expm1.f64 (+.f64 -1 (*.f64 x x))) |
| 0.0ms | x | @ | 0 | (+.f64 1 (expm1.f64 (+.f64 -1 (*.f64 x x)))) |
| 0.0ms | x | @ | inf | (expm1.f64 (+.f64 -1 (*.f64 x x))) |
| 0.0ms | x | @ | inf | (+.f64 1 (expm1.f64 (+.f64 -1 (*.f64 x x)))) |
| 0.0ms | x | @ | -inf | (expm1.f64 (+.f64 -1 (*.f64 x x))) |
| 1× | batch-egg-rewrite |
| 807× | pow1_binary64 |
| 752× | add-log-exp_binary64 |
| 751× | log1p-expm1-u_binary64 |
| 751× | expm1-log1p-u_binary64 |
| 738× | add-exp-log_binary64 |
Useful iterations: 1 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 8 | 21 |
| 1 | 165 | 14 |
| 2 | 2074 | 14 |
| 1× | node limit |
| Inputs |
|---|
(expm1.f64 (+.f64 -1 (*.f64 x x))) |
(+.f64 1 (expm1.f64 (+.f64 -1 (*.f64 x x)))) |
| Outputs |
|---|
((#(struct:change #<rule egg-rr> (2) ((x +.f64 (exp.f64 (fma.f64 x x -1)) -1)))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (exp.f64 (fma.f64 x x -1)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (expm1.f64 (fma.f64 x x -1)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (expm1.f64 (fma.f64 x x -1)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (expm1.f64 (fma.f64 x x -1))) (pow.f64 (cbrt.f64 (expm1.f64 (fma.f64 x x -1))) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (expm1.f64 (fma.f64 x x -1))) 2) (cbrt.f64 (expm1.f64 (fma.f64 x x -1))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (expm1.f64 (fma.f64 x x -1))) (sqrt.f64 (expm1.f64 (fma.f64 x x -1))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (pow.f64 (exp.f64 (fma.f64 x x -1)) 3) 1) (+.f64 (pow.f64 (exp.f64 (fma.f64 x x -1)) 2) (+.f64 1 (exp.f64 (fma.f64 x x -1)))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (pow.f64 (exp.f64 (fma.f64 x x -1)) 2) 1) (+.f64 (exp.f64 (fma.f64 x x -1)) 1))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (expm1.f64 (fma.f64 x x -1)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (expm1.f64 (fma.f64 x x -1))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (expm1.f64 (fma.f64 x x -1))) 2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (expm1.f64 (fma.f64 x x -1)) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (expm1.f64 (fma.f64 x x -1)) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (expm1.f64 (fma.f64 x x -1))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (expm1.f64 (fma.f64 x x -1)) 3))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (expm1.f64 (fma.f64 x x -1))))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (expm1.f64 (fma.f64 x x -1)))))))) |
((#(struct:change #<rule egg-rr> (2) ((x -.f64 (exp.f64 (fma.f64 x x -1)) 0)))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (+.f64 1 (exp.f64 (fma.f64 x x -1))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (/.f64 1 (-.f64 1 (expm1.f64 (fma.f64 x x -1)))) (/.f64 (pow.f64 (expm1.f64 (fma.f64 x x -1)) 2) (-.f64 1 (expm1.f64 (fma.f64 x x -1)))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (exp.f64 (fma.f64 x x -1)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (exp.f64 (fma.f64 x x -1)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (exp.f64 -1) (pow.f64 (exp.f64 x) x))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (exp.f64 x) x) (exp.f64 -1))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (exp.f64 (fma.f64 x x -1))) (pow.f64 (cbrt.f64 (exp.f64 (fma.f64 x x -1))) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (exp.f64 (fma.f64 x x -1))) 2) (cbrt.f64 (exp.f64 (fma.f64 x x -1))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (exp.f64 (fma.f64 x x -1))) (sqrt.f64 (exp.f64 (fma.f64 x x -1))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (+.f64 1 (pow.f64 (expm1.f64 (fma.f64 x x -1)) 3)) (/.f64 1 (+.f64 1 (*.f64 (expm1.f64 (fma.f64 x x -1)) (-.f64 (expm1.f64 (fma.f64 x x -1)) 1)))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (-.f64 1 (pow.f64 (expm1.f64 (fma.f64 x x -1)) 2)) (/.f64 1 (-.f64 1 (expm1.f64 (fma.f64 x x -1)))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (/.f64 (+.f64 1 (*.f64 (expm1.f64 (fma.f64 x x -1)) (-.f64 (expm1.f64 (fma.f64 x x -1)) 1))) (+.f64 1 (pow.f64 (expm1.f64 (fma.f64 x x -1)) 3))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (/.f64 (-.f64 1 (expm1.f64 (fma.f64 x x -1))) (-.f64 1 (pow.f64 (expm1.f64 (fma.f64 x x -1)) 2))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 1 (pow.f64 (expm1.f64 (fma.f64 x x -1)) 3)) (+.f64 1 (*.f64 (expm1.f64 (fma.f64 x x -1)) (-.f64 (expm1.f64 (fma.f64 x x -1)) 1))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 1 (pow.f64 (expm1.f64 (fma.f64 x x -1)) 3)) (+.f64 (pow.f64 (expm1.f64 (fma.f64 x x -1)) 2) (-.f64 1 (expm1.f64 (fma.f64 x x -1)))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 1 (pow.f64 (expm1.f64 (fma.f64 x x -1)) 2)) (-.f64 1 (expm1.f64 (fma.f64 x x -1))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (+.f64 1 (pow.f64 (expm1.f64 (fma.f64 x x -1)) 3))) (neg.f64 (+.f64 1 (*.f64 (expm1.f64 (fma.f64 x x -1)) (-.f64 (expm1.f64 (fma.f64 x x -1)) 1)))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (-.f64 1 (pow.f64 (expm1.f64 (fma.f64 x x -1)) 2))) (neg.f64 (-.f64 1 (expm1.f64 (fma.f64 x x -1)))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (pow.f64 (expm1.f64 (fma.f64 x x -1)) 2) 1) (-.f64 (expm1.f64 (fma.f64 x x -1)) 1))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (exp.f64 (fma.f64 x x -1)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (E.f64) (fma.f64 x x -1))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (exp.f64 (fma.f64 x x -1)) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (exp.f64 (fma.f64 x x -1))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (exp.f64 (fma.f64 x x -1))) 2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (exp.f64 (sqrt.f64 (fma.f64 x x -1))) (sqrt.f64 (fma.f64 x x -1)))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (exp.f64 (pow.f64 (cbrt.f64 (fma.f64 x x -1)) 2)) (cbrt.f64 (fma.f64 x x -1)))))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (exp.f64 (fma.f64 x x -1)) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (exp.f64 (fma.f64 x x -1))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (exp.f64 (fma.f64 x x -1)) 3))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (exp.f64 (fma.f64 x x -1))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (fma.f64 x x -1))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (exp.f64 (fma.f64 x x -1))))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 1 (expm1.f64 (fma.f64 x x -1)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (pow.f64 (cbrt.f64 (expm1.f64 (fma.f64 x x -1))) 2) (cbrt.f64 (expm1.f64 (fma.f64 x x -1))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (sqrt.f64 (expm1.f64 (fma.f64 x x -1))) (sqrt.f64 (expm1.f64 (fma.f64 x x -1))) 1))))) |
| 1× | egg-herbie |
| 691× | distribute-lft-out_binary64 |
| 542× | fma-def_binary64 |
| 480× | fma-neg_binary64 |
| 408× | *-commutative_binary64 |
| 341× | distribute-rgt-out_binary64 |
Useful iterations: 4 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 29 | 310 |
| 1 | 76 | 266 |
| 2 | 194 | 245 |
| 3 | 656 | 229 |
| 4 | 2487 | 227 |
| 5 | 6316 | 227 |
| 1× | node limit |
| Inputs |
|---|
(-.f64 (exp.f64 -1) 1) |
(-.f64 (+.f64 (*.f64 (exp.f64 -1) (pow.f64 x 2)) (exp.f64 -1)) 1) |
(-.f64 (+.f64 (*.f64 (exp.f64 -1) (pow.f64 x 2)) (+.f64 (exp.f64 -1) (*.f64 1/2 (*.f64 (exp.f64 -1) (pow.f64 x 4))))) 1) |
(-.f64 (+.f64 (*.f64 1/6 (*.f64 (exp.f64 -1) (pow.f64 x 6))) (+.f64 (*.f64 (exp.f64 -1) (pow.f64 x 2)) (+.f64 (exp.f64 -1) (*.f64 1/2 (*.f64 (exp.f64 -1) (pow.f64 x 4)))))) 1) |
(-.f64 (exp.f64 (-.f64 (pow.f64 x 2) 1)) 1) |
(-.f64 (exp.f64 (-.f64 (pow.f64 x 2) 1)) 1) |
(-.f64 (exp.f64 (-.f64 (pow.f64 x 2) 1)) 1) |
(-.f64 (exp.f64 (-.f64 (pow.f64 x 2) 1)) 1) |
(-.f64 (exp.f64 (-.f64 (pow.f64 x 2) 1)) 1) |
(-.f64 (exp.f64 (-.f64 (pow.f64 x 2) 1)) 1) |
(-.f64 (exp.f64 (-.f64 (pow.f64 x 2) 1)) 1) |
(-.f64 (exp.f64 (-.f64 (pow.f64 x 2) 1)) 1) |
(exp.f64 -1) |
(+.f64 (*.f64 (exp.f64 -1) (pow.f64 x 2)) (exp.f64 -1)) |
(+.f64 (*.f64 (exp.f64 -1) (pow.f64 x 2)) (+.f64 (exp.f64 -1) (*.f64 1/2 (*.f64 (exp.f64 -1) (pow.f64 x 4))))) |
(+.f64 (*.f64 1/6 (*.f64 (exp.f64 -1) (pow.f64 x 6))) (+.f64 (*.f64 (exp.f64 -1) (pow.f64 x 2)) (+.f64 (exp.f64 -1) (*.f64 1/2 (*.f64 (exp.f64 -1) (pow.f64 x 4)))))) |
(exp.f64 (-.f64 (pow.f64 x 2) 1)) |
(exp.f64 (-.f64 (pow.f64 x 2) 1)) |
(exp.f64 (-.f64 (pow.f64 x 2) 1)) |
(exp.f64 (-.f64 (pow.f64 x 2) 1)) |
(exp.f64 (-.f64 (pow.f64 x 2) 1)) |
(exp.f64 (-.f64 (pow.f64 x 2) 1)) |
(exp.f64 (-.f64 (pow.f64 x 2) 1)) |
(exp.f64 (-.f64 (pow.f64 x 2) 1)) |
| Outputs |
|---|
(-.f64 (exp.f64 -1) 1) |
(expm1.f64 -1) |
(-.f64 (+.f64 (*.f64 (exp.f64 -1) (pow.f64 x 2)) (exp.f64 -1)) 1) |
(+.f64 (*.f64 (exp.f64 -1) (*.f64 x x)) (expm1.f64 -1)) |
(fma.f64 (exp.f64 -1) (*.f64 x x) (expm1.f64 -1)) |
(fma.f64 (fma.f64 x x 1) (exp.f64 -1) -1) |
(fma.f64 (exp.f64 -1) (fma.f64 x x 1) -1) |
(-.f64 (+.f64 (*.f64 (exp.f64 -1) (pow.f64 x 2)) (+.f64 (exp.f64 -1) (*.f64 1/2 (*.f64 (exp.f64 -1) (pow.f64 x 4))))) 1) |
(+.f64 (+.f64 (fma.f64 (exp.f64 -1) (*.f64 x x) (exp.f64 -1)) (*.f64 1/2 (*.f64 (exp.f64 -1) (pow.f64 x 4)))) -1) |
(fma.f64 (exp.f64 -1) (*.f64 x x) (+.f64 (*.f64 1/2 (*.f64 (exp.f64 -1) (pow.f64 x 4))) (expm1.f64 -1))) |
(+.f64 -1 (*.f64 (exp.f64 -1) (+.f64 (fma.f64 x x 1) (*.f64 1/2 (pow.f64 x 4))))) |
(fma.f64 (exp.f64 -1) (fma.f64 1/2 (pow.f64 x 4) (fma.f64 x x 1)) -1) |
(-.f64 (+.f64 (*.f64 1/6 (*.f64 (exp.f64 -1) (pow.f64 x 6))) (+.f64 (*.f64 (exp.f64 -1) (pow.f64 x 2)) (+.f64 (exp.f64 -1) (*.f64 1/2 (*.f64 (exp.f64 -1) (pow.f64 x 4)))))) 1) |
(+.f64 (fma.f64 1/6 (*.f64 (exp.f64 -1) (pow.f64 x 6)) (+.f64 (fma.f64 (exp.f64 -1) (*.f64 x x) (exp.f64 -1)) (*.f64 1/2 (*.f64 (exp.f64 -1) (pow.f64 x 4))))) -1) |
(fma.f64 1/6 (*.f64 (exp.f64 -1) (pow.f64 x 6)) (fma.f64 (exp.f64 -1) (*.f64 x x) (+.f64 (*.f64 1/2 (*.f64 (exp.f64 -1) (pow.f64 x 4))) (expm1.f64 -1)))) |
(+.f64 -1 (fma.f64 (exp.f64 -1) (*.f64 1/6 (pow.f64 x 6)) (*.f64 (exp.f64 -1) (+.f64 (fma.f64 x x 1) (*.f64 1/2 (pow.f64 x 4)))))) |
(+.f64 -1 (*.f64 (exp.f64 -1) (+.f64 (fma.f64 1/6 (pow.f64 x 6) (fma.f64 x x 1)) (*.f64 1/2 (pow.f64 x 4))))) |
(fma.f64 (exp.f64 -1) (+.f64 (fma.f64 x x 1) (fma.f64 1/2 (pow.f64 x 4) (*.f64 1/6 (pow.f64 x 6)))) -1) |
(-.f64 (exp.f64 (-.f64 (pow.f64 x 2) 1)) 1) |
(expm1.f64 (+.f64 (*.f64 x x) -1)) |
(expm1.f64 (fma.f64 x x -1)) |
(-.f64 (exp.f64 (-.f64 (pow.f64 x 2) 1)) 1) |
(expm1.f64 (+.f64 (*.f64 x x) -1)) |
(expm1.f64 (fma.f64 x x -1)) |
(-.f64 (exp.f64 (-.f64 (pow.f64 x 2) 1)) 1) |
(expm1.f64 (+.f64 (*.f64 x x) -1)) |
(expm1.f64 (fma.f64 x x -1)) |
(-.f64 (exp.f64 (-.f64 (pow.f64 x 2) 1)) 1) |
(expm1.f64 (+.f64 (*.f64 x x) -1)) |
(expm1.f64 (fma.f64 x x -1)) |
(-.f64 (exp.f64 (-.f64 (pow.f64 x 2) 1)) 1) |
(expm1.f64 (+.f64 (*.f64 x x) -1)) |
(expm1.f64 (fma.f64 x x -1)) |
(-.f64 (exp.f64 (-.f64 (pow.f64 x 2) 1)) 1) |
(expm1.f64 (+.f64 (*.f64 x x) -1)) |
(expm1.f64 (fma.f64 x x -1)) |
(-.f64 (exp.f64 (-.f64 (pow.f64 x 2) 1)) 1) |
(expm1.f64 (+.f64 (*.f64 x x) -1)) |
(expm1.f64 (fma.f64 x x -1)) |
(-.f64 (exp.f64 (-.f64 (pow.f64 x 2) 1)) 1) |
(expm1.f64 (+.f64 (*.f64 x x) -1)) |
(expm1.f64 (fma.f64 x x -1)) |
(exp.f64 -1) |
(+.f64 (*.f64 (exp.f64 -1) (pow.f64 x 2)) (exp.f64 -1)) |
(fma.f64 (exp.f64 -1) (*.f64 x x) (exp.f64 -1)) |
(*.f64 (exp.f64 -1) (fma.f64 x x 1)) |
(+.f64 (*.f64 (exp.f64 -1) (pow.f64 x 2)) (+.f64 (exp.f64 -1) (*.f64 1/2 (*.f64 (exp.f64 -1) (pow.f64 x 4))))) |
(+.f64 (fma.f64 (exp.f64 -1) (*.f64 x x) (exp.f64 -1)) (*.f64 1/2 (*.f64 (exp.f64 -1) (pow.f64 x 4)))) |
(fma.f64 (exp.f64 -1) (*.f64 x x) (fma.f64 1/2 (*.f64 (exp.f64 -1) (pow.f64 x 4)) (exp.f64 -1))) |
(*.f64 (exp.f64 -1) (+.f64 (fma.f64 x x 1) (*.f64 1/2 (pow.f64 x 4)))) |
(*.f64 (exp.f64 -1) (fma.f64 1/2 (pow.f64 x 4) (fma.f64 x x 1))) |
(+.f64 (*.f64 1/6 (*.f64 (exp.f64 -1) (pow.f64 x 6))) (+.f64 (*.f64 (exp.f64 -1) (pow.f64 x 2)) (+.f64 (exp.f64 -1) (*.f64 1/2 (*.f64 (exp.f64 -1) (pow.f64 x 4)))))) |
(fma.f64 1/6 (*.f64 (exp.f64 -1) (pow.f64 x 6)) (+.f64 (fma.f64 (exp.f64 -1) (*.f64 x x) (exp.f64 -1)) (*.f64 1/2 (*.f64 (exp.f64 -1) (pow.f64 x 4))))) |
(fma.f64 1/6 (*.f64 (exp.f64 -1) (pow.f64 x 6)) (fma.f64 (exp.f64 -1) (*.f64 x x) (fma.f64 1/2 (*.f64 (exp.f64 -1) (pow.f64 x 4)) (exp.f64 -1)))) |
(fma.f64 (exp.f64 -1) (*.f64 1/6 (pow.f64 x 6)) (*.f64 (exp.f64 -1) (+.f64 (fma.f64 x x 1) (*.f64 1/2 (pow.f64 x 4))))) |
(*.f64 (exp.f64 -1) (+.f64 (fma.f64 1/6 (pow.f64 x 6) (fma.f64 x x 1)) (*.f64 1/2 (pow.f64 x 4)))) |
(*.f64 (exp.f64 -1) (+.f64 (fma.f64 x x 1) (fma.f64 1/2 (pow.f64 x 4) (*.f64 1/6 (pow.f64 x 6))))) |
(exp.f64 (-.f64 (pow.f64 x 2) 1)) |
(exp.f64 (+.f64 (*.f64 x x) -1)) |
(exp.f64 (fma.f64 x x -1)) |
(exp.f64 (-.f64 (pow.f64 x 2) 1)) |
(exp.f64 (+.f64 (*.f64 x x) -1)) |
(exp.f64 (fma.f64 x x -1)) |
(exp.f64 (-.f64 (pow.f64 x 2) 1)) |
(exp.f64 (+.f64 (*.f64 x x) -1)) |
(exp.f64 (fma.f64 x x -1)) |
(exp.f64 (-.f64 (pow.f64 x 2) 1)) |
(exp.f64 (+.f64 (*.f64 x x) -1)) |
(exp.f64 (fma.f64 x x -1)) |
(exp.f64 (-.f64 (pow.f64 x 2) 1)) |
(exp.f64 (+.f64 (*.f64 x x) -1)) |
(exp.f64 (fma.f64 x x -1)) |
(exp.f64 (-.f64 (pow.f64 x 2) 1)) |
(exp.f64 (+.f64 (*.f64 x x) -1)) |
(exp.f64 (fma.f64 x x -1)) |
(exp.f64 (-.f64 (pow.f64 x 2) 1)) |
(exp.f64 (+.f64 (*.f64 x x) -1)) |
(exp.f64 (fma.f64 x x -1)) |
(exp.f64 (-.f64 (pow.f64 x 2) 1)) |
(exp.f64 (+.f64 (*.f64 x x) -1)) |
(exp.f64 (fma.f64 x x -1)) |
Compiled 935 to 731 computations (21.8% saved)
4 alts after pruning (1 fresh and 3 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 71 | 1 | 72 |
| Fresh | 0 | 0 | 0 |
| Picked | 0 | 1 | 1 |
| Done | 0 | 2 | 2 |
| Total | 71 | 4 | 75 |
| Status | Error | Program |
|---|---|---|
| ✓ | 0.8b | (exp.f64 -1) |
| ▶ | 0.0b | (*.f64 (pow.f64 (exp.f64 x) x) (exp.f64 -1)) |
| ✓ | 0.0b | (exp.f64 (neg.f64 (-.f64 1 (*.f64 x x)))) |
| ✓ | 0.0b | (+.f64 1 (expm1.f64 (+.f64 -1 (*.f64 x x)))) |
Compiled 28 to 22 computations (21.4% saved)
Found 4 expressions with local error:
| New | Error | Program |
|---|---|---|
| 0.0b | (*.f64 (pow.f64 (exp.f64 x) x) (exp.f64 -1)) | |
| 0.0b | (pow.f64 (exp.f64 x) x) | |
| ✓ | 0.0b | (pow.f64 (exp.f64 x) x) |
| ✓ | 0.0b | (*.f64 (pow.f64 (exp.f64 x) x) (exp.f64 -1)) |
6 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 4.0ms | x | @ | inf | (pow.f64 (exp.f64 x) x) |
| 1.0ms | x | @ | 0 | (*.f64 (pow.f64 (exp.f64 x) x) (exp.f64 -1)) |
| 1.0ms | x | @ | inf | (*.f64 (pow.f64 (exp.f64 x) x) (exp.f64 -1)) |
| 1.0ms | x | @ | -inf | (*.f64 (pow.f64 (exp.f64 x) x) (exp.f64 -1)) |
| 0.0ms | x | @ | 0 | (pow.f64 (exp.f64 x) x) |
| 1× | batch-egg-rewrite |
| 575× | pow1_binary64 |
| 528× | add-log-exp_binary64 |
| 528× | log1p-expm1-u_binary64 |
| 528× | expm1-log1p-u_binary64 |
| 514× | add-exp-log_binary64 |
Useful iterations: 1 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 7 | 17 |
| 1 | 130 | 15 |
| 2 | 1468 | 15 |
| 1× | node limit |
| Inputs |
|---|
(*.f64 (pow.f64 (exp.f64 x) x) (exp.f64 -1)) |
(pow.f64 (exp.f64 x) x) |
| Outputs |
|---|
((#(struct:change #<rule egg-rr> (2) ((x -.f64 (+.f64 1 (exp.f64 (+.f64 -1 (*.f64 x x)))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (exp.f64 (+.f64 -1 (*.f64 x x))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (exp.f64 (+.f64 -1 (*.f64 x x))) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (exp.f64 (+.f64 -1 (*.f64 x x)))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (exp.f64 (+.f64 -1 (*.f64 x x)))) 2)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (exp.f64 (+.f64 -1 (*.f64 x x))) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (exp.f64 (+.f64 -1 (*.f64 x x)))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (exp.f64 (+.f64 -1 (*.f64 x x))) 3))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (exp.f64 (+.f64 -1 (*.f64 x x)))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (+.f64 -1 (*.f64 x x)))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (exp.f64 (+.f64 -1 (*.f64 x x))))))))) |
((#(struct:change #<rule egg-rr> (2) ((x -.f64 (+.f64 1 (pow.f64 (exp.f64 x) x)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (exp.f64 x) x) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (pow.f64 (exp.f64 x) x))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (pow.f64 (exp.f64 x) x)) (pow.f64 (cbrt.f64 (pow.f64 (exp.f64 x) x)) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (pow.f64 (exp.f64 x) x)) 2) (cbrt.f64 (pow.f64 (exp.f64 x) x)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (pow.f64 (exp.f64 x) x)) (sqrt.f64 (pow.f64 (exp.f64 x) x)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 1 x) (pow.f64 (exp.f64 x) x))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (pow.f64 (cbrt.f64 (exp.f64 x)) 2) x) (pow.f64 (cbrt.f64 (exp.f64 x)) x))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (sqrt.f64 (exp.f64 x)) x) (pow.f64 (sqrt.f64 (exp.f64 x)) x))))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (exp.f64 x) (+.f64 x x)))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (pow.f64 (exp.f64 x) x)))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (pow.f64 (exp.f64 x) x) 3))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (pow.f64 (exp.f64 x) x)))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 x x))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (pow.f64 (exp.f64 x) x))))))) |
| 1× | egg-herbie |
| 486× | associate-+l+_binary64 |
| 479× | fma-def_binary64 |
| 457× | distribute-rgt-out_binary64 |
| 439× | *-commutative_binary64 |
| 435× | associate-*l*_binary64 |
Useful iterations: 3 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 31 | 246 |
| 1 | 78 | 218 |
| 2 | 199 | 200 |
| 3 | 594 | 195 |
| 4 | 2324 | 195 |
| 5 | 4560 | 195 |
| 6 | 5499 | 195 |
| 1× | node limit |
| Inputs |
|---|
(exp.f64 -1) |
(+.f64 (*.f64 (exp.f64 -1) (pow.f64 x 2)) (exp.f64 -1)) |
(+.f64 (*.f64 (exp.f64 -1) (pow.f64 x 2)) (+.f64 (exp.f64 -1) (*.f64 1/2 (*.f64 (exp.f64 -1) (pow.f64 x 4))))) |
(+.f64 (*.f64 1/6 (*.f64 (exp.f64 -1) (pow.f64 x 6))) (+.f64 (*.f64 (exp.f64 -1) (pow.f64 x 2)) (+.f64 (exp.f64 -1) (*.f64 1/2 (*.f64 (exp.f64 -1) (pow.f64 x 4)))))) |
(*.f64 (exp.f64 (pow.f64 x 2)) (exp.f64 -1)) |
(*.f64 (exp.f64 (pow.f64 x 2)) (exp.f64 -1)) |
(*.f64 (exp.f64 (pow.f64 x 2)) (exp.f64 -1)) |
(*.f64 (exp.f64 (pow.f64 x 2)) (exp.f64 -1)) |
(*.f64 (exp.f64 (pow.f64 x 2)) (exp.f64 -1)) |
(*.f64 (exp.f64 (pow.f64 x 2)) (exp.f64 -1)) |
(*.f64 (exp.f64 (pow.f64 x 2)) (exp.f64 -1)) |
(*.f64 (exp.f64 (pow.f64 x 2)) (exp.f64 -1)) |
1 |
(+.f64 1 (pow.f64 x 2)) |
(+.f64 1 (+.f64 (pow.f64 x 2) (*.f64 1/2 (pow.f64 x 4)))) |
(+.f64 1 (+.f64 (*.f64 1/6 (pow.f64 x 6)) (+.f64 (pow.f64 x 2) (*.f64 1/2 (pow.f64 x 4))))) |
(exp.f64 (pow.f64 x 2)) |
(exp.f64 (pow.f64 x 2)) |
(exp.f64 (pow.f64 x 2)) |
(exp.f64 (pow.f64 x 2)) |
(exp.f64 (pow.f64 x 2)) |
(exp.f64 (pow.f64 x 2)) |
(exp.f64 (pow.f64 x 2)) |
(exp.f64 (pow.f64 x 2)) |
| Outputs |
|---|
(exp.f64 -1) |
(+.f64 (*.f64 (exp.f64 -1) (pow.f64 x 2)) (exp.f64 -1)) |
(fma.f64 (exp.f64 -1) (*.f64 x x) (exp.f64 -1)) |
(*.f64 (fma.f64 x x 1) (exp.f64 -1)) |
(*.f64 (exp.f64 -1) (fma.f64 x x 1)) |
(+.f64 (*.f64 (exp.f64 -1) (pow.f64 x 2)) (+.f64 (exp.f64 -1) (*.f64 1/2 (*.f64 (exp.f64 -1) (pow.f64 x 4))))) |
(+.f64 (fma.f64 (exp.f64 -1) (*.f64 x x) (exp.f64 -1)) (*.f64 1/2 (*.f64 (exp.f64 -1) (pow.f64 x 4)))) |
(+.f64 (*.f64 1/2 (*.f64 (exp.f64 -1) (pow.f64 x 4))) (*.f64 (fma.f64 x x 1) (exp.f64 -1))) |
(*.f64 (exp.f64 -1) (fma.f64 x x (fma.f64 1/2 (pow.f64 x 4) 1))) |
(*.f64 (exp.f64 -1) (fma.f64 1/2 (pow.f64 x 4) (fma.f64 x x 1))) |
(+.f64 (*.f64 1/6 (*.f64 (exp.f64 -1) (pow.f64 x 6))) (+.f64 (*.f64 (exp.f64 -1) (pow.f64 x 2)) (+.f64 (exp.f64 -1) (*.f64 1/2 (*.f64 (exp.f64 -1) (pow.f64 x 4)))))) |
(fma.f64 1/6 (*.f64 (exp.f64 -1) (pow.f64 x 6)) (+.f64 (fma.f64 (exp.f64 -1) (*.f64 x x) (exp.f64 -1)) (*.f64 1/2 (*.f64 (exp.f64 -1) (pow.f64 x 4))))) |
(fma.f64 1/6 (*.f64 (exp.f64 -1) (pow.f64 x 6)) (+.f64 (*.f64 1/2 (*.f64 (exp.f64 -1) (pow.f64 x 4))) (*.f64 (fma.f64 x x 1) (exp.f64 -1)))) |
(fma.f64 (exp.f64 -1) (*.f64 1/6 (pow.f64 x 6)) (*.f64 (exp.f64 -1) (fma.f64 x x (fma.f64 1/2 (pow.f64 x 4) 1)))) |
(*.f64 (exp.f64 -1) (fma.f64 x x (fma.f64 1/2 (pow.f64 x 4) (fma.f64 1/6 (pow.f64 x 6) 1)))) |
(*.f64 (exp.f64 (pow.f64 x 2)) (exp.f64 -1)) |
(exp.f64 (+.f64 (*.f64 x x) -1)) |
(exp.f64 (fma.f64 x x -1)) |
(*.f64 (exp.f64 (pow.f64 x 2)) (exp.f64 -1)) |
(exp.f64 (+.f64 (*.f64 x x) -1)) |
(exp.f64 (fma.f64 x x -1)) |
(*.f64 (exp.f64 (pow.f64 x 2)) (exp.f64 -1)) |
(exp.f64 (+.f64 (*.f64 x x) -1)) |
(exp.f64 (fma.f64 x x -1)) |
(*.f64 (exp.f64 (pow.f64 x 2)) (exp.f64 -1)) |
(exp.f64 (+.f64 (*.f64 x x) -1)) |
(exp.f64 (fma.f64 x x -1)) |
(*.f64 (exp.f64 (pow.f64 x 2)) (exp.f64 -1)) |
(exp.f64 (+.f64 (*.f64 x x) -1)) |
(exp.f64 (fma.f64 x x -1)) |
(*.f64 (exp.f64 (pow.f64 x 2)) (exp.f64 -1)) |
(exp.f64 (+.f64 (*.f64 x x) -1)) |
(exp.f64 (fma.f64 x x -1)) |
(*.f64 (exp.f64 (pow.f64 x 2)) (exp.f64 -1)) |
(exp.f64 (+.f64 (*.f64 x x) -1)) |
(exp.f64 (fma.f64 x x -1)) |
(*.f64 (exp.f64 (pow.f64 x 2)) (exp.f64 -1)) |
(exp.f64 (+.f64 (*.f64 x x) -1)) |
(exp.f64 (fma.f64 x x -1)) |
1 |
(+.f64 1 (pow.f64 x 2)) |
(+.f64 (*.f64 x x) 1) |
(fma.f64 x x 1) |
(+.f64 1 (+.f64 (pow.f64 x 2) (*.f64 1/2 (pow.f64 x 4)))) |
(+.f64 1 (+.f64 (*.f64 x x) (*.f64 1/2 (pow.f64 x 4)))) |
(+.f64 1 (fma.f64 x x (*.f64 1/2 (pow.f64 x 4)))) |
(fma.f64 x x (fma.f64 1/2 (pow.f64 x 4) 1)) |
(fma.f64 1/2 (pow.f64 x 4) (fma.f64 x x 1)) |
(+.f64 1 (+.f64 (*.f64 1/6 (pow.f64 x 6)) (+.f64 (pow.f64 x 2) (*.f64 1/2 (pow.f64 x 4))))) |
(+.f64 1 (fma.f64 1/6 (pow.f64 x 6) (+.f64 (*.f64 x x) (*.f64 1/2 (pow.f64 x 4))))) |
(+.f64 1 (fma.f64 1/6 (pow.f64 x 6) (fma.f64 x x (*.f64 1/2 (pow.f64 x 4))))) |
(fma.f64 1/6 (pow.f64 x 6) (fma.f64 x x (fma.f64 1/2 (pow.f64 x 4) 1))) |
(fma.f64 x x (fma.f64 1/2 (pow.f64 x 4) (fma.f64 1/6 (pow.f64 x 6) 1))) |
(exp.f64 (pow.f64 x 2)) |
(exp.f64 (*.f64 x x)) |
(pow.f64 (exp.f64 x) x) |
(exp.f64 (pow.f64 x 2)) |
(exp.f64 (*.f64 x x)) |
(pow.f64 (exp.f64 x) x) |
(exp.f64 (pow.f64 x 2)) |
(exp.f64 (*.f64 x x)) |
(pow.f64 (exp.f64 x) x) |
(exp.f64 (pow.f64 x 2)) |
(exp.f64 (*.f64 x x)) |
(pow.f64 (exp.f64 x) x) |
(exp.f64 (pow.f64 x 2)) |
(exp.f64 (*.f64 x x)) |
(pow.f64 (exp.f64 x) x) |
(exp.f64 (pow.f64 x 2)) |
(exp.f64 (*.f64 x x)) |
(pow.f64 (exp.f64 x) x) |
(exp.f64 (pow.f64 x 2)) |
(exp.f64 (*.f64 x x)) |
(pow.f64 (exp.f64 x) x) |
(exp.f64 (pow.f64 x 2)) |
(exp.f64 (*.f64 x x)) |
(pow.f64 (exp.f64 x) x) |
Compiled 465 to 314 computations (32.5% saved)
5 alts after pruning (2 fresh and 3 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 42 | 2 | 44 |
| Fresh | 0 | 0 | 0 |
| Picked | 0 | 1 | 1 |
| Done | 1 | 2 | 3 |
| Total | 43 | 5 | 48 |
| Status | Error | Program |
|---|---|---|
| ▶ | 0.0b | (*.f64 (exp.f64 (*.f64 x x)) (exp.f64 -1)) |
| ✓ | 0.0b | (*.f64 (pow.f64 (exp.f64 x) x) (exp.f64 -1)) |
| ✓ | 0.8b | (exp.f64 -1) |
| ▶ | 0.0b | (exp.f64 (+.f64 -1 (*.f64 x x))) |
| ✓ | 0.0b | (+.f64 1 (expm1.f64 (+.f64 -1 (*.f64 x x)))) |
Compiled 35 to 27 computations (22.9% saved)
Found 2 expressions with local error:
| New | Error | Program |
|---|---|---|
| 0.0b | (exp.f64 (+.f64 -1 (*.f64 x x))) | |
| ✓ | 0.0b | (exp.f64 (+.f64 -1 (*.f64 x x))) |
3 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 0.0ms | x | @ | 0 | (exp.f64 (+.f64 -1 (*.f64 x x))) |
| 0.0ms | x | @ | -inf | (exp.f64 (+.f64 -1 (*.f64 x x))) |
| 0.0ms | x | @ | inf | (exp.f64 (+.f64 -1 (*.f64 x x))) |
| 1× | batch-egg-rewrite |
| 592× | pow1_binary64 |
| 551× | add-log-exp_binary64 |
| 551× | log1p-expm1-u_binary64 |
| 551× | expm1-log1p-u_binary64 |
| 539× | add-exp-log_binary64 |
Useful iterations: 1 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 6 | 9 |
| 1 | 122 | 7 |
| 2 | 1503 | 7 |
| 1× | node limit |
| Inputs |
|---|
(exp.f64 (+.f64 -1 (*.f64 x x))) |
| Outputs |
|---|
((#(struct:change #<rule egg-rr> (2) ((x +.f64 1 (expm1.f64 (fma.f64 x x -1)))))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (+.f64 1 (exp.f64 (fma.f64 x x -1))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (exp.f64 (fma.f64 x x -1)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (exp.f64 (fma.f64 x x -1)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (exp.f64 -1) (exp.f64 (*.f64 x x)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (exp.f64 (*.f64 x x)) (exp.f64 -1))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (exp.f64 (fma.f64 x x -1))) (pow.f64 (cbrt.f64 (exp.f64 (fma.f64 x x -1))) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (exp.f64 (fma.f64 x x -1))) 2) (cbrt.f64 (exp.f64 (fma.f64 x x -1))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (exp.f64 (fma.f64 x x -1))) (sqrt.f64 (exp.f64 (fma.f64 x x -1))))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (exp.f64 (fma.f64 x x -1)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (exp.f64 (fma.f64 x x -1)) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (exp.f64 (fma.f64 x x -1))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (exp.f64 (fma.f64 x x -1))) 2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (exp.f64 (sqrt.f64 (fma.f64 x x -1))) (sqrt.f64 (fma.f64 x x -1)))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (exp.f64 1) (fma.f64 x x -1))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (exp.f64 (pow.f64 (cbrt.f64 (fma.f64 x x -1)) 2)) (cbrt.f64 (fma.f64 x x -1)))))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (exp.f64 (fma.f64 x x -1)) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (exp.f64 (fma.f64 x x -1))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (exp.f64 (fma.f64 x x -1)) 3))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (exp.f64 (fma.f64 x x -1))))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (exp.f64 (fma.f64 x x -1)))))))) |
| 1× | egg-herbie |
| 707× | distribute-lft-out_binary64 |
| 453× | fma-neg_binary64 |
| 394× | *-commutative_binary64 |
| 355× | distribute-rgt-out_binary64 |
| 341× | associate-*l*_binary64 |
Useful iterations: 3 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 24 | 151 |
| 1 | 60 | 131 |
| 2 | 145 | 119 |
| 3 | 461 | 112 |
| 4 | 1854 | 112 |
| 5 | 3798 | 112 |
| 6 | 5492 | 112 |
| 7 | 7410 | 112 |
| 1× | node limit |
| Inputs |
|---|
(exp.f64 -1) |
(+.f64 (*.f64 (exp.f64 -1) (pow.f64 x 2)) (exp.f64 -1)) |
(+.f64 (*.f64 (exp.f64 -1) (pow.f64 x 2)) (+.f64 (exp.f64 -1) (*.f64 1/2 (*.f64 (exp.f64 -1) (pow.f64 x 4))))) |
(+.f64 (*.f64 1/6 (*.f64 (exp.f64 -1) (pow.f64 x 6))) (+.f64 (*.f64 (exp.f64 -1) (pow.f64 x 2)) (+.f64 (exp.f64 -1) (*.f64 1/2 (*.f64 (exp.f64 -1) (pow.f64 x 4)))))) |
(exp.f64 (-.f64 (pow.f64 x 2) 1)) |
(exp.f64 (-.f64 (pow.f64 x 2) 1)) |
(exp.f64 (-.f64 (pow.f64 x 2) 1)) |
(exp.f64 (-.f64 (pow.f64 x 2) 1)) |
(exp.f64 (-.f64 (pow.f64 x 2) 1)) |
(exp.f64 (-.f64 (pow.f64 x 2) 1)) |
(exp.f64 (-.f64 (pow.f64 x 2) 1)) |
(exp.f64 (-.f64 (pow.f64 x 2) 1)) |
| Outputs |
|---|
(exp.f64 -1) |
(+.f64 (*.f64 (exp.f64 -1) (pow.f64 x 2)) (exp.f64 -1)) |
(fma.f64 (exp.f64 -1) (*.f64 x x) (exp.f64 -1)) |
(*.f64 (+.f64 (*.f64 x x) 1) (exp.f64 -1)) |
(*.f64 (exp.f64 -1) (fma.f64 x x 1)) |
(+.f64 (*.f64 (exp.f64 -1) (pow.f64 x 2)) (+.f64 (exp.f64 -1) (*.f64 1/2 (*.f64 (exp.f64 -1) (pow.f64 x 4))))) |
(+.f64 (fma.f64 (exp.f64 -1) (*.f64 x x) (exp.f64 -1)) (*.f64 1/2 (*.f64 (exp.f64 -1) (pow.f64 x 4)))) |
(fma.f64 (exp.f64 -1) (*.f64 x x) (fma.f64 1/2 (*.f64 (exp.f64 -1) (pow.f64 x 4)) (exp.f64 -1))) |
(*.f64 (exp.f64 -1) (+.f64 (*.f64 1/2 (pow.f64 x 4)) (fma.f64 x x 1))) |
(*.f64 (exp.f64 -1) (fma.f64 1/2 (pow.f64 x 4) (fma.f64 x x 1))) |
(+.f64 (*.f64 1/6 (*.f64 (exp.f64 -1) (pow.f64 x 6))) (+.f64 (*.f64 (exp.f64 -1) (pow.f64 x 2)) (+.f64 (exp.f64 -1) (*.f64 1/2 (*.f64 (exp.f64 -1) (pow.f64 x 4)))))) |
(fma.f64 1/6 (*.f64 (exp.f64 -1) (pow.f64 x 6)) (+.f64 (fma.f64 (exp.f64 -1) (*.f64 x x) (exp.f64 -1)) (*.f64 1/2 (*.f64 (exp.f64 -1) (pow.f64 x 4))))) |
(fma.f64 1/6 (*.f64 (exp.f64 -1) (pow.f64 x 6)) (fma.f64 (exp.f64 -1) (*.f64 x x) (fma.f64 1/2 (*.f64 (exp.f64 -1) (pow.f64 x 4)) (exp.f64 -1)))) |
(fma.f64 (fma.f64 x x 1) (exp.f64 -1) (*.f64 (exp.f64 -1) (+.f64 (*.f64 1/2 (pow.f64 x 4)) (*.f64 1/6 (pow.f64 x 6))))) |
(*.f64 (exp.f64 -1) (+.f64 (*.f64 1/2 (pow.f64 x 4)) (fma.f64 1/6 (pow.f64 x 6) (fma.f64 x x 1)))) |
(*.f64 (exp.f64 -1) (+.f64 (fma.f64 x x 1) (fma.f64 1/2 (pow.f64 x 4) (*.f64 1/6 (pow.f64 x 6))))) |
(exp.f64 (-.f64 (pow.f64 x 2) 1)) |
(exp.f64 (+.f64 (*.f64 x x) -1)) |
(exp.f64 (fma.f64 x x -1)) |
(exp.f64 (-.f64 (pow.f64 x 2) 1)) |
(exp.f64 (+.f64 (*.f64 x x) -1)) |
(exp.f64 (fma.f64 x x -1)) |
(exp.f64 (-.f64 (pow.f64 x 2) 1)) |
(exp.f64 (+.f64 (*.f64 x x) -1)) |
(exp.f64 (fma.f64 x x -1)) |
(exp.f64 (-.f64 (pow.f64 x 2) 1)) |
(exp.f64 (+.f64 (*.f64 x x) -1)) |
(exp.f64 (fma.f64 x x -1)) |
(exp.f64 (-.f64 (pow.f64 x 2) 1)) |
(exp.f64 (+.f64 (*.f64 x x) -1)) |
(exp.f64 (fma.f64 x x -1)) |
(exp.f64 (-.f64 (pow.f64 x 2) 1)) |
(exp.f64 (+.f64 (*.f64 x x) -1)) |
(exp.f64 (fma.f64 x x -1)) |
(exp.f64 (-.f64 (pow.f64 x 2) 1)) |
(exp.f64 (+.f64 (*.f64 x x) -1)) |
(exp.f64 (fma.f64 x x -1)) |
(exp.f64 (-.f64 (pow.f64 x 2) 1)) |
(exp.f64 (+.f64 (*.f64 x x) -1)) |
(exp.f64 (fma.f64 x x -1)) |
Found 4 expressions with local error:
| New | Error | Program |
|---|---|---|
| 0.0b | (exp.f64 (*.f64 x x)) | |
| 0.0b | (*.f64 (exp.f64 (*.f64 x x)) (exp.f64 -1)) | |
| ✓ | 0.0b | (*.f64 (exp.f64 (*.f64 x x)) (exp.f64 -1)) |
| ✓ | 0.0b | (exp.f64 (*.f64 x x)) |
6 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 0.0ms | x | @ | inf | (*.f64 (exp.f64 (*.f64 x x)) (exp.f64 -1)) |
| 0.0ms | x | @ | 0 | (exp.f64 (*.f64 x x)) |
| 0.0ms | x | @ | 0 | (*.f64 (exp.f64 (*.f64 x x)) (exp.f64 -1)) |
| 0.0ms | x | @ | -inf | (*.f64 (exp.f64 (*.f64 x x)) (exp.f64 -1)) |
| 0.0ms | x | @ | inf | (exp.f64 (*.f64 x x)) |
| 1× | batch-egg-rewrite |
| 545× | pow1_binary64 |
| 521× | add-sqr-sqrt_binary64 |
| 501× | add-log-exp_binary64 |
| 501× | log1p-expm1-u_binary64 |
| 501× | expm1-log1p-u_binary64 |
Useful iterations: 1 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 7 | 15 |
| 1 | 129 | 13 |
| 2 | 1429 | 13 |
| 1× | node limit |
| Inputs |
|---|
(exp.f64 (*.f64 x x)) |
(*.f64 (exp.f64 (*.f64 x x)) (exp.f64 -1)) |
| Outputs |
|---|
((#(struct:change #<rule egg-rr> (2) ((x +.f64 1 (expm1.f64 (*.f64 x x)))))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (+.f64 1 (exp.f64 (*.f64 x x))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (exp.f64 (*.f64 x x)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (exp.f64 (*.f64 x x)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (exp.f64 (*.f64 x x))) (pow.f64 (cbrt.f64 (exp.f64 (*.f64 x x))) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (exp.f64 (*.f64 x x))) 2) (cbrt.f64 (exp.f64 (*.f64 x x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (exp.f64 (*.f64 x x))) (sqrt.f64 (exp.f64 (*.f64 x x))))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (exp.f64 (*.f64 x x)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (exp.f64 x) x)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (exp.f64 (*.f64 x x)) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (exp.f64 (*.f64 x x))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (exp.f64 (*.f64 x x))) 2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (exp.f64 (cbrt.f64 (pow.f64 x 4))) (pow.f64 (cbrt.f64 x) 2))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (exp.f64 1) (*.f64 x x))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (exp.f64 x) (pow.f64 (cbrt.f64 x) 2)) (cbrt.f64 x))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (exp.f64 x) (sqrt.f64 x)) (sqrt.f64 x))))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (exp.f64 (*.f64 x x)) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (exp.f64 (*.f64 x x))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (exp.f64 (*.f64 x x)) 3))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (exp.f64 (*.f64 x x))))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (exp.f64 (*.f64 x x)))))))) |
((#(struct:change #<rule egg-rr> (2) ((x -.f64 (+.f64 1 (exp.f64 (fma.f64 x x -1))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (exp.f64 (fma.f64 x x -1)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (exp.f64 (fma.f64 x x -1)) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (exp.f64 (fma.f64 x x -1))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (exp.f64 (fma.f64 x x -1))) 2)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (exp.f64 (fma.f64 x x -1)) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (exp.f64 (fma.f64 x x -1))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (exp.f64 (fma.f64 x x -1)) 3))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (exp.f64 (fma.f64 x x -1))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (fma.f64 x x -1))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (exp.f64 (fma.f64 x x -1)))))))) |
| 1× | egg-herbie |
| 486× | associate-+l+_binary64 |
| 479× | fma-def_binary64 |
| 457× | distribute-rgt-out_binary64 |
| 441× | *-commutative_binary64 |
| 417× | associate-*l*_binary64 |
Useful iterations: 3 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 31 | 246 |
| 1 | 78 | 218 |
| 2 | 199 | 200 |
| 3 | 593 | 195 |
| 4 | 2273 | 195 |
| 5 | 4511 | 195 |
| 6 | 5451 | 195 |
| 1× | node limit |
| Inputs |
|---|
1 |
(+.f64 1 (pow.f64 x 2)) |
(+.f64 1 (+.f64 (pow.f64 x 2) (*.f64 1/2 (pow.f64 x 4)))) |
(+.f64 1 (+.f64 (*.f64 1/6 (pow.f64 x 6)) (+.f64 (pow.f64 x 2) (*.f64 1/2 (pow.f64 x 4))))) |
(exp.f64 (pow.f64 x 2)) |
(exp.f64 (pow.f64 x 2)) |
(exp.f64 (pow.f64 x 2)) |
(exp.f64 (pow.f64 x 2)) |
(exp.f64 (pow.f64 x 2)) |
(exp.f64 (pow.f64 x 2)) |
(exp.f64 (pow.f64 x 2)) |
(exp.f64 (pow.f64 x 2)) |
(exp.f64 -1) |
(+.f64 (*.f64 (exp.f64 -1) (pow.f64 x 2)) (exp.f64 -1)) |
(+.f64 (*.f64 (exp.f64 -1) (pow.f64 x 2)) (+.f64 (exp.f64 -1) (*.f64 1/2 (*.f64 (exp.f64 -1) (pow.f64 x 4))))) |
(+.f64 (*.f64 1/6 (*.f64 (exp.f64 -1) (pow.f64 x 6))) (+.f64 (*.f64 (exp.f64 -1) (pow.f64 x 2)) (+.f64 (exp.f64 -1) (*.f64 1/2 (*.f64 (exp.f64 -1) (pow.f64 x 4)))))) |
(*.f64 (exp.f64 (pow.f64 x 2)) (exp.f64 -1)) |
(*.f64 (exp.f64 (pow.f64 x 2)) (exp.f64 -1)) |
(*.f64 (exp.f64 (pow.f64 x 2)) (exp.f64 -1)) |
(*.f64 (exp.f64 (pow.f64 x 2)) (exp.f64 -1)) |
(*.f64 (exp.f64 (pow.f64 x 2)) (exp.f64 -1)) |
(*.f64 (exp.f64 (pow.f64 x 2)) (exp.f64 -1)) |
(*.f64 (exp.f64 (pow.f64 x 2)) (exp.f64 -1)) |
(*.f64 (exp.f64 (pow.f64 x 2)) (exp.f64 -1)) |
| Outputs |
|---|
1 |
(+.f64 1 (pow.f64 x 2)) |
(+.f64 1 (*.f64 x x)) |
(fma.f64 x x 1) |
(+.f64 1 (+.f64 (pow.f64 x 2) (*.f64 1/2 (pow.f64 x 4)))) |
(+.f64 1 (+.f64 (*.f64 x x) (*.f64 1/2 (pow.f64 x 4)))) |
(+.f64 1 (fma.f64 x x (*.f64 1/2 (pow.f64 x 4)))) |
(fma.f64 x x (fma.f64 1/2 (pow.f64 x 4) 1)) |
(fma.f64 1/2 (pow.f64 x 4) (fma.f64 x x 1)) |
(+.f64 1 (+.f64 (*.f64 1/6 (pow.f64 x 6)) (+.f64 (pow.f64 x 2) (*.f64 1/2 (pow.f64 x 4))))) |
(+.f64 1 (fma.f64 1/6 (pow.f64 x 6) (+.f64 (*.f64 x x) (*.f64 1/2 (pow.f64 x 4))))) |
(+.f64 1 (fma.f64 1/6 (pow.f64 x 6) (fma.f64 x x (*.f64 1/2 (pow.f64 x 4))))) |
(fma.f64 1/6 (pow.f64 x 6) (fma.f64 x x (fma.f64 1/2 (pow.f64 x 4) 1))) |
(fma.f64 1/6 (pow.f64 x 6) (fma.f64 1/2 (pow.f64 x 4) (fma.f64 x x 1))) |
(fma.f64 x x (fma.f64 1/2 (pow.f64 x 4) (fma.f64 1/6 (pow.f64 x 6) 1))) |
(exp.f64 (pow.f64 x 2)) |
(exp.f64 (*.f64 x x)) |
(pow.f64 (exp.f64 x) x) |
(exp.f64 (pow.f64 x 2)) |
(exp.f64 (*.f64 x x)) |
(pow.f64 (exp.f64 x) x) |
(exp.f64 (pow.f64 x 2)) |
(exp.f64 (*.f64 x x)) |
(pow.f64 (exp.f64 x) x) |
(exp.f64 (pow.f64 x 2)) |
(exp.f64 (*.f64 x x)) |
(pow.f64 (exp.f64 x) x) |
(exp.f64 (pow.f64 x 2)) |
(exp.f64 (*.f64 x x)) |
(pow.f64 (exp.f64 x) x) |
(exp.f64 (pow.f64 x 2)) |
(exp.f64 (*.f64 x x)) |
(pow.f64 (exp.f64 x) x) |
(exp.f64 (pow.f64 x 2)) |
(exp.f64 (*.f64 x x)) |
(pow.f64 (exp.f64 x) x) |
(exp.f64 (pow.f64 x 2)) |
(exp.f64 (*.f64 x x)) |
(pow.f64 (exp.f64 x) x) |
(exp.f64 -1) |
(+.f64 (*.f64 (exp.f64 -1) (pow.f64 x 2)) (exp.f64 -1)) |
(fma.f64 (exp.f64 -1) (*.f64 x x) (exp.f64 -1)) |
(*.f64 (fma.f64 x x 1) (exp.f64 -1)) |
(+.f64 (*.f64 (exp.f64 -1) (pow.f64 x 2)) (+.f64 (exp.f64 -1) (*.f64 1/2 (*.f64 (exp.f64 -1) (pow.f64 x 4))))) |
(+.f64 (fma.f64 (exp.f64 -1) (*.f64 x x) (exp.f64 -1)) (*.f64 (*.f64 1/2 (exp.f64 -1)) (pow.f64 x 4))) |
(+.f64 (*.f64 1/2 (*.f64 (pow.f64 x 4) (exp.f64 -1))) (*.f64 (fma.f64 x x 1) (exp.f64 -1))) |
(*.f64 (exp.f64 -1) (fma.f64 x x (fma.f64 1/2 (pow.f64 x 4) 1))) |
(*.f64 (exp.f64 -1) (fma.f64 1/2 (pow.f64 x 4) (fma.f64 x x 1))) |
(+.f64 (*.f64 1/6 (*.f64 (exp.f64 -1) (pow.f64 x 6))) (+.f64 (*.f64 (exp.f64 -1) (pow.f64 x 2)) (+.f64 (exp.f64 -1) (*.f64 1/2 (*.f64 (exp.f64 -1) (pow.f64 x 4)))))) |
(fma.f64 1/6 (*.f64 (pow.f64 x 6) (exp.f64 -1)) (+.f64 (fma.f64 (exp.f64 -1) (*.f64 x x) (exp.f64 -1)) (*.f64 (*.f64 1/2 (exp.f64 -1)) (pow.f64 x 4)))) |
(fma.f64 1/6 (*.f64 (pow.f64 x 6) (exp.f64 -1)) (+.f64 (*.f64 1/2 (*.f64 (pow.f64 x 4) (exp.f64 -1))) (*.f64 (fma.f64 x x 1) (exp.f64 -1)))) |
(fma.f64 1/6 (*.f64 (pow.f64 x 6) (exp.f64 -1)) (*.f64 (exp.f64 -1) (fma.f64 x x (fma.f64 1/2 (pow.f64 x 4) 1)))) |
(*.f64 (exp.f64 -1) (fma.f64 1/6 (pow.f64 x 6) (fma.f64 1/2 (pow.f64 x 4) (fma.f64 x x 1)))) |
(*.f64 (exp.f64 -1) (fma.f64 x x (fma.f64 1/2 (pow.f64 x 4) (fma.f64 1/6 (pow.f64 x 6) 1)))) |
(*.f64 (exp.f64 (pow.f64 x 2)) (exp.f64 -1)) |
(exp.f64 (+.f64 (*.f64 x x) -1)) |
(exp.f64 (fma.f64 x x -1)) |
(*.f64 (exp.f64 (pow.f64 x 2)) (exp.f64 -1)) |
(exp.f64 (+.f64 (*.f64 x x) -1)) |
(exp.f64 (fma.f64 x x -1)) |
(*.f64 (exp.f64 (pow.f64 x 2)) (exp.f64 -1)) |
(exp.f64 (+.f64 (*.f64 x x) -1)) |
(exp.f64 (fma.f64 x x -1)) |
(*.f64 (exp.f64 (pow.f64 x 2)) (exp.f64 -1)) |
(exp.f64 (+.f64 (*.f64 x x) -1)) |
(exp.f64 (fma.f64 x x -1)) |
(*.f64 (exp.f64 (pow.f64 x 2)) (exp.f64 -1)) |
(exp.f64 (+.f64 (*.f64 x x) -1)) |
(exp.f64 (fma.f64 x x -1)) |
(*.f64 (exp.f64 (pow.f64 x 2)) (exp.f64 -1)) |
(exp.f64 (+.f64 (*.f64 x x) -1)) |
(exp.f64 (fma.f64 x x -1)) |
(*.f64 (exp.f64 (pow.f64 x 2)) (exp.f64 -1)) |
(exp.f64 (+.f64 (*.f64 x x) -1)) |
(exp.f64 (fma.f64 x x -1)) |
(*.f64 (exp.f64 (pow.f64 x 2)) (exp.f64 -1)) |
(exp.f64 (+.f64 (*.f64 x x) -1)) |
(exp.f64 (fma.f64 x x -1)) |
Compiled 789 to 564 computations (28.5% saved)
5 alts after pruning (0 fresh and 5 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 78 | 0 | 78 |
| Fresh | 0 | 0 | 0 |
| Picked | 0 | 1 | 1 |
| Done | 0 | 4 | 4 |
| Total | 78 | 5 | 83 |
| Status | Error | Program |
|---|---|---|
| ✓ | 0.0b | (*.f64 (exp.f64 (*.f64 x x)) (exp.f64 -1)) |
| ✓ | 0.0b | (*.f64 (pow.f64 (exp.f64 x) x) (exp.f64 -1)) |
| ✓ | 0.8b | (exp.f64 -1) |
| ✓ | 0.0b | (exp.f64 (+.f64 -1 (*.f64 x x))) |
| ✓ | 0.0b | (+.f64 1 (expm1.f64 (+.f64 -1 (*.f64 x x)))) |
Compiled 35 to 27 computations (22.9% saved)
| Inputs |
|---|
(exp.f64 -1) |
(exp.f64 (+.f64 -1 (*.f64 x x))) |
(exp.f64 (neg.f64 (-.f64 1 (*.f64 x x)))) |
(+.f64 1 (expm1.f64 (+.f64 -1 (*.f64 x x)))) |
(*.f64 (exp.f64 (*.f64 x x)) (exp.f64 -1)) |
(*.f64 (pow.f64 (exp.f64 x) x) (exp.f64 -1)) |
| Outputs |
|---|
(*.f64 (pow.f64 (exp.f64 x) x) (exp.f64 -1)) |
9 calls:
| 6.0ms | (exp.f64 (neg.f64 (-.f64 1 (*.f64 x x)))) |
| 5.0ms | (*.f64 x x) |
| 5.0ms | x |
| 2.0ms | (*.f64 x x) |
| 2.0ms | (-.f64 1 (*.f64 x x)) |
| Error | Segments | Branch |
|---|---|---|
| 0.0b | 1 | x |
| 0.0b | 1 | (exp.f64 (neg.f64 (-.f64 1 (*.f64 x x)))) |
| 0.0b | 1 | (exp.f64 (neg.f64 (-.f64 1 (*.f64 x x)))) |
| 0.0b | 1 | (neg.f64 (-.f64 1 (*.f64 x x))) |
| 0.0b | 1 | (neg.f64 (-.f64 1 (*.f64 x x))) |
| 0.0b | 1 | (-.f64 1 (*.f64 x x)) |
| 0.0b | 1 | (-.f64 1 (*.f64 x x)) |
| 0.0b | 1 | (*.f64 x x) |
| 0.0b | 1 | (*.f64 x x) |
Compiled 90 to 60 computations (33.3% saved)
Total -0.8b remaining (-3869.2%)
Threshold costs -0.8b (-3869.2%)
| Inputs |
|---|
(exp.f64 -1) |
(exp.f64 (+.f64 -1 (*.f64 x x))) |
(exp.f64 (neg.f64 (-.f64 1 (*.f64 x x)))) |
(+.f64 1 (expm1.f64 (+.f64 -1 (*.f64 x x)))) |
(*.f64 (exp.f64 (*.f64 x x)) (exp.f64 -1)) |
| Outputs |
|---|
(exp.f64 (+.f64 -1 (*.f64 x x))) |
8 calls:
| 13.0ms | x |
| 6.0ms | (-.f64 1 (*.f64 x x)) |
| 2.0ms | (*.f64 x x) |
| 2.0ms | (-.f64 1 (*.f64 x x)) |
| 2.0ms | (exp.f64 (neg.f64 (-.f64 1 (*.f64 x x)))) |
| Error | Segments | Branch |
|---|---|---|
| 0.0b | 1 | x |
| 0.0b | 1 | (exp.f64 (neg.f64 (-.f64 1 (*.f64 x x)))) |
| 0.0b | 1 | (exp.f64 (neg.f64 (-.f64 1 (*.f64 x x)))) |
| 0.0b | 1 | (neg.f64 (-.f64 1 (*.f64 x x))) |
| 0.0b | 1 | (neg.f64 (-.f64 1 (*.f64 x x))) |
| 0.0b | 1 | (-.f64 1 (*.f64 x x)) |
| 0.0b | 1 | (-.f64 1 (*.f64 x x)) |
| 0.0b | 1 | (*.f64 x x) |
Compiled 79 to 53 computations (32.9% saved)
| 1× | egg-herbie |
| 1× | +-commutative_binary64 |
| 1× | *-commutative_binary64 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 10 | 23 |
| 1 | 12 | 23 |
| 1× | saturated |
| Inputs |
|---|
(*.f64 (pow.f64 (exp.f64 x) x) (exp.f64 -1)) |
(exp.f64 (+.f64 -1 (*.f64 x x))) |
(exp.f64 -1) |
| Outputs |
|---|
(*.f64 (pow.f64 (exp.f64 x) x) (exp.f64 -1)) |
(exp.f64 (+.f64 -1 (*.f64 x x))) |
(exp.f64 -1) |
| 1× | done |
Compiled 34 to 26 computations (23.5% saved)
Loading profile data...