Time bar (total: 1.3s)
| 1× | search |
| True | Other | False | Iter |
|---|---|---|---|
| 0% | 100% | 0% | 0 |
| 0% | 100% | 0% | 1 |
| 0% | 100% | 0% | 2 |
| 50% | 50% | 0% | 3 |
| 50% | 25% | 25% | 4 |
| 50% | 12.5% | 37.5% | 5 |
| 50% | 6.2% | 43.8% | 6 |
| 50% | 3.1% | 46.9% | 7 |
| 50% | 1.6% | 48.5% | 8 |
| 50% | 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 |
| 50.2% | 0% | 49.8% | 13 |
| 50.2% | 0% | 49.8% | 14 |
Compiled 9 to 7 computations (22.2% saved)
| 805.0ms | 8256× | body | 128 | valid |
| 0.0ms | 3× | body | 128 | invalid |
| 2× | egg-herbie |
| 417× | times-frac_binary64 |
| 412× | associate-/l*_binary64 |
| 360× | associate-/r*_binary64 |
| 350× | associate-*l*_binary64 |
| 200× | distribute-rgt-in_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 |
| 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 8 to 6 computations (25% saved)
| 1× | egg-herbie |
| 417× | times-frac_binary64 |
| 412× | associate-/l*_binary64 |
| 360× | associate-/r*_binary64 |
| 350× | associate-*l*_binary64 |
| 200× | distribute-rgt-in_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 |
| 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)) |
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.1b | (exp.f64 (neg.f64 (-.f64 1 (*.f64 x x)))) |
Compiled 29 to 21 computations (27.6% saved)
Found 2 expressions with local error:
| New | Error | Program |
|---|---|---|
| ✓ | 0.0b | (-.f64 1 (*.f64 x x)) |
| ✓ | 0.1b | (exp.f64 (neg.f64 (-.f64 1 (*.f64 x x)))) |
6 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 1.0ms | x | @ | 0 | (exp.f64 (neg.f64 (-.f64 1 (*.f64 x x)))) |
| 0.0ms | x | @ | inf | (-.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)))) |
| 0.0ms | x | @ | 0 | (-.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 |
| 73× | add-sqr-sqrt_binary64 |
Useful iterations: 1 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 7 | 18 |
| 1 | 145 | 16 |
| 2 | 1841 | 16 |
| 1× | node limit |
| Inputs |
|---|
(exp.f64 (neg.f64 (-.f64 1 (*.f64 x x)))) |
(-.f64 1 (*.f64 x x)) |
| Outputs |
|---|
((#(struct:change #<rule egg-rr> (2) ((x -.f64 (exp.f64 (log1p.f64 (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 log.f64 (+.f64 1 (expm1.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))))))))) |
((#(struct:change #<rule egg-rr> (2) ((x +.f64 1 (*.f64 x (neg.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 1 (*.f64 (*.f64 x (neg.f64 x)) 1))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 0 (+.f64 -1 (*.f64 x x)))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 -1 (*.f64 x x))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 -1 (neg.f64 (*.f64 x (neg.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 -1 (*.f64 (*.f64 x (neg.f64 x)) -1))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 -1 (*.f64 -1 (*.f64 x (neg.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 x (neg.f64 x)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (log.f64 (pow.f64 (cbrt.f64 (exp.f64 (+.f64 -1 (*.f64 x x)))) 2)) (log.f64 (cbrt.f64 (exp.f64 (+.f64 -1 (*.f64 x x))))))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (log.f64 (sqrt.f64 (exp.f64 (+.f64 -1 (*.f64 x x))))) (log.f64 (sqrt.f64 (exp.f64 (+.f64 -1 (*.f64 x x))))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (+.f64 -1 (*.f64 x x)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (+.f64 -1 (*.f64 x x)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (+.f64 -1 (*.f64 x x)) -1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (+.f64 -1 (*.f64 x x))) (pow.f64 (cbrt.f64 (+.f64 -1 (*.f64 x x))) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.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 *.f64 (pow.f64 (cbrt.f64 (+.f64 -1 (*.f64 x x))) 2) (neg.f64 (cbrt.f64 (+.f64 -1 (*.f64 x x)))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (+.f64 -1 (*.f64 x x))) (sqrt.f64 (+.f64 -1 (*.f64 x x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (+.f64 -1 (*.f64 x x))) (neg.f64 (sqrt.f64 (+.f64 -1 (*.f64 x x)))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (-.f64 1 (pow.f64 x 6)) (/.f64 1 (+.f64 (+.f64 1 (pow.f64 x 4)) (*.f64 x x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 -1 (+.f64 -1 (*.f64 x x)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (-.f64 1 (pow.f64 x 4)) (/.f64 1 (+.f64 1 (*.f64 x x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (neg.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 *.f64 (neg.f64 (sqrt.f64 (+.f64 -1 (*.f64 x x)))) (sqrt.f64 (+.f64 -1 (*.f64 x x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 -1 (pow.f64 (cbrt.f64 (+.f64 -1 (*.f64 x x))) 2)) (cbrt.f64 (+.f64 -1 (*.f64 x x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 -1 (sqrt.f64 (+.f64 -1 (*.f64 x x)))) (sqrt.f64 (+.f64 -1 (*.f64 x x))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (/.f64 (+.f64 (+.f64 1 (pow.f64 x 4)) (*.f64 x x)) (-.f64 1 (pow.f64 x 6))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (/.f64 (+.f64 1 (*.f64 x x)) (-.f64 1 (pow.f64 x 4))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 1 (pow.f64 x 6)) (+.f64 (+.f64 1 (pow.f64 x 4)) (*.f64 x x)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 1 (pow.f64 x 4)) (+.f64 1 (*.f64 x x)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (-.f64 1 (pow.f64 x 6))) (+.f64 (+.f64 1 (pow.f64 x 4)) (*.f64 x x)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (-.f64 1 (pow.f64 x 6))) (neg.f64 (+.f64 (+.f64 1 (pow.f64 x 4)) (*.f64 x x))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (-.f64 1 (pow.f64 x 4))) (+.f64 1 (*.f64 x x)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (-.f64 1 (pow.f64 x 4))) (neg.f64 (+.f64 1 (*.f64 x x))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 0 (pow.f64 (+.f64 -1 (*.f64 x x)) 3)) (+.f64 0 (+.f64 (pow.f64 (+.f64 -1 (*.f64 x x)) 2) (*.f64 0 (+.f64 -1 (*.f64 x x))))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 1 (pow.f64 (*.f64 x (neg.f64 x)) 3)) (+.f64 1 (-.f64 (*.f64 (*.f64 x (neg.f64 x)) (*.f64 x (neg.f64 x))) (*.f64 x (neg.f64 x)))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 0 (pow.f64 (+.f64 -1 (*.f64 x x)) 2)) (+.f64 -1 (*.f64 x x)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 1 (*.f64 (*.f64 x (neg.f64 x)) (*.f64 x (neg.f64 x)))) (-.f64 1 (*.f64 x (neg.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 -1 (-.f64 1 (pow.f64 x 6))) (+.f64 (+.f64 1 (pow.f64 x 4)) (*.f64 x x)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 -1 (-.f64 1 (pow.f64 x 4))) (+.f64 1 (*.f64 x x)))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (+.f64 -1 (*.f64 x x)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (+.f64 -1 (*.f64 x x)) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (+.f64 -1 (*.f64 x x))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (+.f64 -1 (*.f64 x x))) 2)))) (#(struct:change #<rule egg-rr> (2) ((x neg.f64 (+.f64 -1 (*.f64 x x)))))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (+.f64 -1 (*.f64 x x)) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (+.f64 -1 (*.f64 x x))))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (+.f64 1 (expm1.f64 (+.f64 -1 (*.f64 x x)))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (+.f64 -1 (*.f64 x x)) 3))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log1p.f64 (*.f64 x (neg.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (+.f64 -1 (*.f64 x x))))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (+.f64 -1 (*.f64 x x)))))))) |
| 1× | egg-herbie |
| 691× | distribute-lft-out_binary64 |
| 402× | *-commutative_binary64 |
| 354× | associate-*l*_binary64 |
| 348× | fma-def_binary64 |
| 341× | distribute-rgt-out_binary64 |
Useful iterations: 3 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 26 | 245 |
| 1 | 65 | 207 |
| 2 | 161 | 195 |
| 3 | 500 | 188 |
| 4 | 1952 | 188 |
| 5 | 4050 | 188 |
| 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)) |
1 |
(+.f64 1 (*.f64 -1 (pow.f64 x 2))) |
(+.f64 1 (*.f64 -1 (pow.f64 x 2))) |
(+.f64 1 (*.f64 -1 (pow.f64 x 2))) |
(*.f64 -1 (pow.f64 x 2)) |
(+.f64 1 (*.f64 -1 (pow.f64 x 2))) |
(+.f64 1 (*.f64 -1 (pow.f64 x 2))) |
(+.f64 1 (*.f64 -1 (pow.f64 x 2))) |
(*.f64 -1 (pow.f64 x 2)) |
(+.f64 1 (*.f64 -1 (pow.f64 x 2))) |
(+.f64 1 (*.f64 -1 (pow.f64 x 2))) |
(+.f64 1 (*.f64 -1 (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 (+.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 (fma.f64 1/2 (pow.f64 x 4) (fma.f64 x x 1)) (*.f64 1/6 (pow.f64 x 6)))) |
(*.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)) |
1 |
(+.f64 1 (*.f64 -1 (pow.f64 x 2))) |
(+.f64 1 (neg.f64 (*.f64 x x))) |
(-.f64 1 (*.f64 x x)) |
(neg.f64 (fma.f64 x x -1)) |
(+.f64 1 (*.f64 -1 (pow.f64 x 2))) |
(+.f64 1 (neg.f64 (*.f64 x x))) |
(-.f64 1 (*.f64 x x)) |
(neg.f64 (fma.f64 x x -1)) |
(+.f64 1 (*.f64 -1 (pow.f64 x 2))) |
(+.f64 1 (neg.f64 (*.f64 x x))) |
(-.f64 1 (*.f64 x x)) |
(neg.f64 (fma.f64 x x -1)) |
(*.f64 -1 (pow.f64 x 2)) |
(neg.f64 (*.f64 x x)) |
(*.f64 x (neg.f64 x)) |
(+.f64 1 (*.f64 -1 (pow.f64 x 2))) |
(+.f64 1 (neg.f64 (*.f64 x x))) |
(-.f64 1 (*.f64 x x)) |
(neg.f64 (fma.f64 x x -1)) |
(+.f64 1 (*.f64 -1 (pow.f64 x 2))) |
(+.f64 1 (neg.f64 (*.f64 x x))) |
(-.f64 1 (*.f64 x x)) |
(neg.f64 (fma.f64 x x -1)) |
(+.f64 1 (*.f64 -1 (pow.f64 x 2))) |
(+.f64 1 (neg.f64 (*.f64 x x))) |
(-.f64 1 (*.f64 x x)) |
(neg.f64 (fma.f64 x x -1)) |
(*.f64 -1 (pow.f64 x 2)) |
(neg.f64 (*.f64 x x)) |
(*.f64 x (neg.f64 x)) |
(+.f64 1 (*.f64 -1 (pow.f64 x 2))) |
(+.f64 1 (neg.f64 (*.f64 x x))) |
(-.f64 1 (*.f64 x x)) |
(neg.f64 (fma.f64 x x -1)) |
(+.f64 1 (*.f64 -1 (pow.f64 x 2))) |
(+.f64 1 (neg.f64 (*.f64 x x))) |
(-.f64 1 (*.f64 x x)) |
(neg.f64 (fma.f64 x x -1)) |
(+.f64 1 (*.f64 -1 (pow.f64 x 2))) |
(+.f64 1 (neg.f64 (*.f64 x x))) |
(-.f64 1 (*.f64 x x)) |
(neg.f64 (fma.f64 x x -1)) |
4 alts after pruning (3 fresh and 1 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 88 | 3 | 91 |
| Fresh | 0 | 0 | 0 |
| Picked | 0 | 1 | 1 |
| Done | 0 | 0 | 0 |
| Total | 88 | 4 | 92 |
| Status | Error | Program |
|---|---|---|
| ✓ | 0.1b | (exp.f64 (neg.f64 (-.f64 1 (*.f64 x x)))) |
| 0.1b | (pow.f64 (exp.f64 (pow.f64 (cbrt.f64 (+.f64 -1 (*.f64 x x))) 2)) (cbrt.f64 (+.f64 -1 (*.f64 x x)))) | |
| 63.3b | (pow.f64 (exp.f64 (sqrt.f64 (+.f64 -1 (*.f64 x x)))) (sqrt.f64 (+.f64 -1 (*.f64 x x)))) | |
| ▶ | 0.1b | (pow.f64 (E.f64) (+.f64 -1 (*.f64 x x))) |
Compiled 1186 to 798 computations (32.7% saved)
Found 2 expressions with local error:
| New | Error | Program |
|---|---|---|
| ✓ | 0.0b | (+.f64 -1 (*.f64 x x)) |
| ✓ | 0.1b | (pow.f64 (E.f64) (+.f64 -1 (*.f64 x x))) |
6 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 2.0ms | x | @ | 0 | (pow.f64 (E.f64) (+.f64 -1 (*.f64 x x))) |
| 0.0ms | x | @ | inf | (pow.f64 (E.f64) (+.f64 -1 (*.f64 x x))) |
| 0.0ms | x | @ | -inf | (pow.f64 (E.f64) (+.f64 -1 (*.f64 x x))) |
| 0.0ms | x | @ | inf | (+.f64 -1 (*.f64 x x)) |
| 0.0ms | x | @ | 0 | (+.f64 -1 (*.f64 x x)) |
| 1× | batch-egg-rewrite |
| 711× | pow1_binary64 |
| 664× | add-log-exp_binary64 |
| 663× | log1p-expm1-u_binary64 |
| 663× | expm1-log1p-u_binary64 |
| 77× | add-sqr-sqrt_binary64 |
Useful iterations: 1 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 7 | 18 |
| 1 | 152 | 12 |
| 2 | 1910 | 12 |
| 1× | node limit |
| Inputs |
|---|
(pow.f64 (E.f64) (+.f64 -1 (*.f64 x x))) |
(+.f64 -1 (*.f64 x x)) |
| Outputs |
|---|
((#(struct:change #<rule egg-rr> (2) ((x -.f64 (exp.f64 (log1p.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 1 (exp.f64 (fma.f64 x x -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 (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 (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 (pow.f64 1 (fma.f64 x x -1)) (exp.f64 (fma.f64 x x -1)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (exp.f64 2)) (fma.f64 x x -1)) (pow.f64 (cbrt.f64 (E.f64)) (fma.f64 x x -1)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (sqrt.f64 (E.f64)) (fma.f64 x x -1)) (pow.f64 (sqrt.f64 (E.f64)) (fma.f64 x x -1)))))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (exp.f64 2) (fma.f64 x x -1)))))) (#(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 log.f64 (+.f64 1 (expm1.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 exp.f64 (fma.f64 x x -1))))) (#(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)))))))) |
((#(struct:change #<rule egg-rr> (2) ((x -.f64 (exp.f64 (log1p.f64 (fma.f64 x x -1))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (/.f64 1 (-.f64 -1 (*.f64 x x))) (/.f64 (pow.f64 x 4) (-.f64 -1 (*.f64 x x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (fma.f64 x x -1) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (fma.f64 x x -1))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (fma.f64 x x -1)) (pow.f64 (cbrt.f64 (fma.f64 x x -1)) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.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 *.f64 (sqrt.f64 (fma.f64 x x -1)) (sqrt.f64 (fma.f64 x x -1)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (+.f64 -1 (pow.f64 x 6)) (/.f64 1 (+.f64 1 (+.f64 (pow.f64 x 4) (*.f64 x x)))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (-.f64 1 (pow.f64 x 4)) (/.f64 1 (-.f64 -1 (*.f64 x x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (+.f64 x 1) (-.f64 x 1))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (/.f64 (+.f64 1 (+.f64 (pow.f64 x 4) (*.f64 x x))) (+.f64 -1 (pow.f64 x 6))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (/.f64 (-.f64 -1 (*.f64 x x)) (-.f64 1 (pow.f64 x 4))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 -1 (pow.f64 x 6)) (+.f64 1 (+.f64 (pow.f64 x 4) (*.f64 x x))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 -1 (pow.f64 x 6)) (+.f64 (pow.f64 x 4) (-.f64 1 (neg.f64 (*.f64 x x)))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 1 (pow.f64 x 4)) (-.f64 -1 (*.f64 x x)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (+.f64 -1 (pow.f64 x 6))) (neg.f64 (+.f64 1 (+.f64 (pow.f64 x 4) (*.f64 x x)))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (-.f64 1 (pow.f64 x 4))) (neg.f64 (-.f64 -1 (*.f64 x x))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (pow.f64 x 4) 1) (-.f64 (*.f64 x x) -1))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (fma.f64 x x -1) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (fma.f64 x x -1) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (fma.f64 x x -1)) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (fma.f64 x x -1)) 2)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (fma.f64 x x -1) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (fma.f64 x x -1)))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (+.f64 1 (expm1.f64 (fma.f64 x x -1))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (fma.f64 x x -1) 3))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (fma.f64 x x -1)))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (fma.f64 x x -1)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 x x -1)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 1 (*.f64 x x) -1)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (cbrt.f64 (pow.f64 x 4)) (pow.f64 (cbrt.f64 x) 2) -1)))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (fma.f64 x x -1))))))) |
| 1× | egg-herbie |
| 691× | distribute-lft-out_binary64 |
| 394× | *-commutative_binary64 |
| 341× | associate-*l*_binary64 |
| 340× | fma-def_binary64 |
| 337× | distribute-rgt-out_binary64 |
Useful iterations: 3 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 24 | 223 |
| 1 | 60 | 185 |
| 2 | 145 | 173 |
| 3 | 461 | 166 |
| 4 | 1854 | 166 |
| 5 | 3798 | 166 |
| 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)) |
-1 |
(-.f64 (pow.f64 x 2) 1) |
(-.f64 (pow.f64 x 2) 1) |
(-.f64 (pow.f64 x 2) 1) |
(pow.f64 x 2) |
(-.f64 (pow.f64 x 2) 1) |
(-.f64 (pow.f64 x 2) 1) |
(-.f64 (pow.f64 x 2) 1) |
(pow.f64 x 2) |
(-.f64 (pow.f64 x 2) 1) |
(-.f64 (pow.f64 x 2) 1) |
(-.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)) |
-1 |
(-.f64 (pow.f64 x 2) 1) |
(+.f64 (*.f64 x x) -1) |
(fma.f64 x x -1) |
(-.f64 (pow.f64 x 2) 1) |
(+.f64 (*.f64 x x) -1) |
(fma.f64 x x -1) |
(-.f64 (pow.f64 x 2) 1) |
(+.f64 (*.f64 x x) -1) |
(fma.f64 x x -1) |
(pow.f64 x 2) |
(*.f64 x x) |
(-.f64 (pow.f64 x 2) 1) |
(+.f64 (*.f64 x x) -1) |
(fma.f64 x x -1) |
(-.f64 (pow.f64 x 2) 1) |
(+.f64 (*.f64 x x) -1) |
(fma.f64 x x -1) |
(-.f64 (pow.f64 x 2) 1) |
(+.f64 (*.f64 x x) -1) |
(fma.f64 x x -1) |
(pow.f64 x 2) |
(*.f64 x x) |
(-.f64 (pow.f64 x 2) 1) |
(+.f64 (*.f64 x x) -1) |
(fma.f64 x x -1) |
(-.f64 (pow.f64 x 2) 1) |
(+.f64 (*.f64 x x) -1) |
(fma.f64 x x -1) |
(-.f64 (pow.f64 x 2) 1) |
(+.f64 (*.f64 x x) -1) |
(fma.f64 x x -1) |
2 alts after pruning (1 fresh and 1 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 61 | 1 | 62 |
| Fresh | 2 | 0 | 2 |
| Picked | 1 | 0 | 1 |
| Done | 0 | 1 | 1 |
| Total | 64 | 2 | 66 |
| Status | Error | Program |
|---|---|---|
| ✓ | 0.1b | (exp.f64 (neg.f64 (-.f64 1 (*.f64 x x)))) |
| ▶ | 0.0b | (*.f64 (exp.f64 -1) (pow.f64 (exp.f64 x) x)) |
Compiled 700 to 484 computations (30.9% saved)
Found 2 expressions with local error:
| New | Error | Program |
|---|---|---|
| ✓ | 0.0b | (*.f64 (exp.f64 -1) (pow.f64 (exp.f64 x) x)) |
| ✓ | 0.0b | (pow.f64 (exp.f64 x) x) |
6 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 1.0ms | x | @ | 0 | (pow.f64 (exp.f64 x) x) |
| 1.0ms | x | @ | -inf | (pow.f64 (exp.f64 x) x) |
| 0.0ms | x | @ | inf | (*.f64 (exp.f64 -1) (pow.f64 (exp.f64 x) x)) |
| 0.0ms | x | @ | inf | (pow.f64 (exp.f64 x) x) |
| 0.0ms | x | @ | -inf | (*.f64 (exp.f64 -1) (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 |
|---|
(pow.f64 (exp.f64 x) x) |
(*.f64 (exp.f64 -1) (pow.f64 (exp.f64 x) x)) |
| Outputs |
|---|
((#(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 *.f64 (pow.f64 1 x) (exp.f64 (*.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 (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 exp.f64 (*.f64 x x))))) (#(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 (+.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 cbrt.f64 (*.f64 (pow.f64 (exp.f64 (*.f64 x x)) 3) (pow.f64 (exp.f64 -1) 3)))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (*.f64 (pow.f64 (exp.f64 -1) 3) (pow.f64 (exp.f64 (*.f64 x x)) 3)))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (+.f64 -1 (*.f64 x x)))))) (#(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 |
| 479× | fma-def_binary64 |
| 441× | *-commutative_binary64 |
| 436× | distribute-rgt-out_binary64 |
| 417× | associate-*l*_binary64 |
| 341× | distribute-lft-out_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 |
| 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)) |
2 alts after pruning (0 fresh and 2 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 46 | 0 | 46 |
| Fresh | 0 | 0 | 0 |
| Picked | 0 | 1 | 1 |
| Done | 0 | 1 | 1 |
| Total | 46 | 2 | 48 |
| Status | Error | Program |
|---|---|---|
| ✓ | 0.1b | (exp.f64 (neg.f64 (-.f64 1 (*.f64 x x)))) |
| ✓ | 0.0b | (*.f64 (exp.f64 -1) (pow.f64 (exp.f64 x) x)) |
Compiled 505 to 342 computations (32.3% saved)
Total -0.0b remaining (-73.2%)
Threshold costs -0.0b (-73.2%)
Compiled 177 to 116 computations (34.5% saved)
| 1× | egg-herbie |
| 1× | *-commutative_binary64 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 7 | 11 |
| 1 | 8 | 11 |
| 1× | saturated |
| Inputs |
|---|
(*.f64 (exp.f64 -1) (pow.f64 (exp.f64 x) x)) |
| Outputs |
|---|
(*.f64 (exp.f64 -1) (pow.f64 (exp.f64 x) x)) |
| 1× | done |
Compiled 30 to 20 computations (33.3% saved)
Loading profile data...