Time bar (total: 1.6s)
| 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)
| 831.0ms | 8256× | body | 128 | valid |
| 0.0ms | 1× | body | 128 | invalid |
Compiled 18 to 14 computations (22.2% saved)
| 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)) |
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.0b | (exp.f64 (fma.f64 x x -1)) |
Compiled 25 to 17 computations (32% saved)
Found 1 expressions with local error:
| New | Error | Program |
|---|---|---|
| ✓ | 0.0b | (exp.f64 (fma.f64 x x -1)) |
3 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 1.0ms | x | @ | 0 | (exp.f64 (fma.f64 x x -1)) |
| 0.0ms | x | @ | inf | (exp.f64 (fma.f64 x x -1)) |
| 0.0ms | x | @ | -inf | (exp.f64 (fma.f64 x x -1)) |
| 1× | batch-egg-rewrite |
| 394× | pow1_binary64 |
| 361× | add-log-exp_binary64 |
| 361× | log1p-expm1-u_binary64 |
| 361× | expm1-log1p-u_binary64 |
| 353× | add-exp-log_binary64 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 5 | 7 |
| 1 | 90 | 7 |
| 2 | 971 | 7 |
| 1× | node limit |
| Inputs |
|---|
(exp.f64 (fma.f64 x x -1)) |
| 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 (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 (exp.f64 (*.f64 x x)) (exp.f64 -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 (pow.f64 (cbrt.f64 (fma.f64 x x -1)) 2)) (cbrt.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 (sqrt.f64 (fma.f64 x x -1))) (sqrt.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 log1p.f64 (expm1.f64 (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)))))))) |
| 1× | egg-herbie |
| 724× | distribute-lft-out_binary64 |
| 385× | *-commutative_binary64 |
| 380× | fma-def_binary64 |
| 341× | distribute-rgt-out_binary64 |
| 340× | associate-*l*_binary64 |
Useful iterations: 3 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 22 | 81 |
| 1 | 55 | 79 |
| 2 | 136 | 63 |
| 3 | 448 | 56 |
| 4 | 1828 | 56 |
| 5 | 3578 | 56 |
| 6 | 4583 | 56 |
| 1× | node limit |
| Inputs |
|---|
(exp.f64 -1) |
(+.f64 (exp.f64 -1) (*.f64 (exp.f64 -1) (pow.f64 x 2))) |
(+.f64 (exp.f64 -1) (+.f64 (*.f64 1/2 (*.f64 (exp.f64 -1) (pow.f64 x 4))) (*.f64 (exp.f64 -1) (pow.f64 x 2)))) |
(+.f64 (exp.f64 -1) (+.f64 (*.f64 1/6 (*.f64 (exp.f64 -1) (pow.f64 x 6))) (+.f64 (*.f64 1/2 (*.f64 (exp.f64 -1) (pow.f64 x 4))) (*.f64 (exp.f64 -1) (pow.f64 x 2))))) |
| Outputs |
|---|
(exp.f64 -1) |
(+.f64 (exp.f64 -1) (*.f64 (exp.f64 -1) (pow.f64 x 2))) |
(+.f64 (exp.f64 -1) (*.f64 (exp.f64 -1) (*.f64 x x))) |
(*.f64 (+.f64 (*.f64 x x) 1) (exp.f64 -1)) |
(*.f64 (exp.f64 -1) (fma.f64 x x 1)) |
(+.f64 (exp.f64 -1) (+.f64 (*.f64 1/2 (*.f64 (exp.f64 -1) (pow.f64 x 4))) (*.f64 (exp.f64 -1) (pow.f64 x 2)))) |
(+.f64 (exp.f64 -1) (fma.f64 1/2 (*.f64 (exp.f64 -1) (pow.f64 x 4)) (*.f64 (exp.f64 -1) (*.f64 x x)))) |
(+.f64 (exp.f64 -1) (fma.f64 (exp.f64 -1) (*.f64 x x) (*.f64 (exp.f64 -1) (*.f64 (pow.f64 x 4) 1/2)))) |
(*.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 (exp.f64 -1) (+.f64 (*.f64 1/6 (*.f64 (exp.f64 -1) (pow.f64 x 6))) (+.f64 (*.f64 1/2 (*.f64 (exp.f64 -1) (pow.f64 x 4))) (*.f64 (exp.f64 -1) (pow.f64 x 2))))) |
(+.f64 (exp.f64 -1) (fma.f64 1/6 (*.f64 (exp.f64 -1) (pow.f64 x 6)) (fma.f64 1/2 (*.f64 (exp.f64 -1) (pow.f64 x 4)) (*.f64 (exp.f64 -1) (*.f64 x x))))) |
(+.f64 (exp.f64 -1) (fma.f64 1/6 (*.f64 (exp.f64 -1) (pow.f64 x 6)) (fma.f64 (exp.f64 -1) (*.f64 x x) (*.f64 (exp.f64 -1) (*.f64 (pow.f64 x 4) 1/2))))) |
(fma.f64 (exp.f64 -1) (*.f64 1/6 (pow.f64 x 6)) (*.f64 (exp.f64 -1) (+.f64 (*.f64 1/2 (pow.f64 x 4)) (fma.f64 x x 1)))) |
(*.f64 (exp.f64 -1) (+.f64 (*.f64 1/6 (pow.f64 x 6)) (fma.f64 1/2 (pow.f64 x 4) (fma.f64 x x 1)))) |
(*.f64 (exp.f64 -1) (+.f64 (fma.f64 x x 1) (fma.f64 1/6 (pow.f64 x 6) (*.f64 1/2 (pow.f64 x 4))))) |
2 alts after pruning (2 fresh and 0 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 25 | 2 | 27 |
| Fresh | 0 | 0 | 0 |
| Picked | 1 | 0 | 1 |
| Done | 0 | 0 | 0 |
| Total | 26 | 2 | 28 |
| Status | Error | Program |
|---|---|---|
| ▶ | 0.0b | (expm1.f64 (log1p.f64 (exp.f64 (fma.f64 x x -1)))) |
| 0.0b | (*.f64 (exp.f64 (*.f64 x x)) (exp.f64 -1)) |
Compiled 308 to 235 computations (23.7% saved)
Found 3 expressions with local error:
| New | Error | Program |
|---|---|---|
| 0.0b | (exp.f64 (fma.f64 x x -1)) | |
| ✓ | 1.0b | (log1p.f64 (exp.f64 (fma.f64 x x -1))) |
| ✓ | 1.0b | (expm1.f64 (log1p.f64 (exp.f64 (fma.f64 x x -1)))) |
6 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 57.0ms | x | @ | inf | (log1p.f64 (exp.f64 (fma.f64 x x -1))) |
| 37.0ms | x | @ | -inf | (log1p.f64 (exp.f64 (fma.f64 x x -1))) |
| 2.0ms | x | @ | 0 | (log1p.f64 (exp.f64 (fma.f64 x x -1))) |
| 0.0ms | x | @ | 0 | (expm1.f64 (log1p.f64 (exp.f64 (fma.f64 x x -1)))) |
| 0.0ms | x | @ | inf | (expm1.f64 (log1p.f64 (exp.f64 (fma.f64 x x -1)))) |
| 1× | batch-egg-rewrite |
| 475× | pow1_binary64 |
| 435× | add-log-exp_binary64 |
| 435× | expm1-log1p-u_binary64 |
| 434× | log1p-expm1-u_binary64 |
| 425× | add-exp-log_binary64 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 7 | 16 |
| 1 | 109 | 16 |
| 2 | 1177 | 16 |
| 1× | node limit |
| Inputs |
|---|
(expm1.f64 (log1p.f64 (exp.f64 (fma.f64 x x -1)))) |
(log1p.f64 (exp.f64 (fma.f64 x x -1))) |
| 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 (exp.f64 (fma.f64 x x -1)) 1) -1)))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (+.f64 (exp.f64 (fma.f64 x x -1)) 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 (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 (exp.f64 (*.f64 x x)) (exp.f64 -1))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (pow.f64 (+.f64 (exp.f64 (fma.f64 x x -1)) 1) 3) 1) (+.f64 (*.f64 (+.f64 (exp.f64 (fma.f64 x x -1)) 1) (+.f64 (exp.f64 (fma.f64 x x -1)) 1)) (+.f64 1 (*.f64 (+.f64 (exp.f64 (fma.f64 x x -1)) 1) 1))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (*.f64 (+.f64 (exp.f64 (fma.f64 x x -1)) 1) (+.f64 (exp.f64 (fma.f64 x x -1)) 1)) 1) (+.f64 (+.f64 (exp.f64 (fma.f64 x x -1)) 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 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 pow.f64 (exp.f64 1) (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 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 (+.f64 1 (log1p.f64 (exp.f64 (fma.f64 x x -1)))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (log1p.f64 (exp.f64 (fma.f64 x x -1))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (log1p.f64 (exp.f64 (fma.f64 x x -1))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (log1p.f64 (exp.f64 (fma.f64 x x -1)))) (cbrt.f64 (pow.f64 (log1p.f64 (exp.f64 (fma.f64 x x -1))) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (pow.f64 (log1p.f64 (exp.f64 (fma.f64 x x -1))) 2)) (cbrt.f64 (log1p.f64 (exp.f64 (fma.f64 x x -1)))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (log1p.f64 (exp.f64 (fma.f64 x x -1)))) (sqrt.f64 (log1p.f64 (exp.f64 (fma.f64 x x -1)))))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (log1p.f64 (exp.f64 (fma.f64 x x -1))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (log1p.f64 (exp.f64 (fma.f64 x x -1))) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (log1p.f64 (exp.f64 (fma.f64 x x -1)))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (log1p.f64 (exp.f64 (fma.f64 x x -1)))) 2)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (log1p.f64 (exp.f64 (fma.f64 x x -1))) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (+.f64 (exp.f64 (fma.f64 x x -1)) 1))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (log1p.f64 (exp.f64 (fma.f64 x x -1))) 3))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (log1p.f64 (exp.f64 (fma.f64 x x -1)))))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (log1p.f64 (exp.f64 (fma.f64 x x -1))))))))) |
| 1× | egg-herbie |
| 401× | unswap-sqr_binary64 |
| 355× | fma-neg_binary64 |
| 330× | times-frac_binary64 |
| 238× | associate-/l*_binary64 |
| 200× | distribute-rgt-neg-in_binary64 |
Useful iterations: 2 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 56 | 453 |
| 1 | 172 | 442 |
| 2 | 589 | 397 |
| 3 | 3455 | 397 |
| 1× | node limit |
| Inputs |
|---|
(exp.f64 -1) |
(+.f64 (exp.f64 -1) (*.f64 (exp.f64 -1) (pow.f64 x 2))) |
(+.f64 (exp.f64 -1) (+.f64 (*.f64 1/2 (*.f64 (exp.f64 -1) (pow.f64 x 4))) (*.f64 (exp.f64 -1) (pow.f64 x 2)))) |
(+.f64 (exp.f64 -1) (+.f64 (*.f64 1/6 (*.f64 (exp.f64 -1) (pow.f64 x 6))) (+.f64 (*.f64 1/2 (*.f64 (exp.f64 -1) (pow.f64 x 4))) (*.f64 (exp.f64 -1) (pow.f64 x 2))))) |
(exp.f64 (fma.f64 x x -1)) |
(exp.f64 (fma.f64 x x -1)) |
(exp.f64 (fma.f64 x x -1)) |
(exp.f64 (fma.f64 x x -1)) |
(exp.f64 (fma.f64 x x -1)) |
(exp.f64 (fma.f64 x x -1)) |
(exp.f64 (fma.f64 x x -1)) |
(exp.f64 (fma.f64 x x -1)) |
(log.f64 (+.f64 1 (exp.f64 -1))) |
(+.f64 (log.f64 (+.f64 1 (exp.f64 -1))) (/.f64 (*.f64 (exp.f64 -1) (pow.f64 x 2)) (+.f64 1 (exp.f64 -1)))) |
(-.f64 (+.f64 (*.f64 1/2 (/.f64 (*.f64 (exp.f64 -1) (pow.f64 x 4)) (+.f64 1 (exp.f64 -1)))) (+.f64 (log.f64 (+.f64 1 (exp.f64 -1))) (/.f64 (*.f64 (exp.f64 -1) (pow.f64 x 2)) (+.f64 1 (exp.f64 -1))))) (*.f64 1/2 (/.f64 (*.f64 (pow.f64 (exp.f64 -1) 2) (pow.f64 x 4)) (pow.f64 (+.f64 1 (exp.f64 -1)) 2)))) |
(-.f64 (+.f64 (*.f64 1/3 (/.f64 (*.f64 (pow.f64 (exp.f64 -1) 3) (pow.f64 x 6)) (pow.f64 (+.f64 1 (exp.f64 -1)) 3))) (+.f64 (*.f64 1/6 (/.f64 (*.f64 (exp.f64 -1) (pow.f64 x 6)) (+.f64 1 (exp.f64 -1)))) (+.f64 (*.f64 1/2 (/.f64 (*.f64 (exp.f64 -1) (pow.f64 x 4)) (+.f64 1 (exp.f64 -1)))) (+.f64 (log.f64 (+.f64 1 (exp.f64 -1))) (/.f64 (*.f64 (exp.f64 -1) (pow.f64 x 2)) (+.f64 1 (exp.f64 -1))))))) (+.f64 (*.f64 1/2 (/.f64 (*.f64 (pow.f64 (exp.f64 -1) 2) (pow.f64 x 4)) (pow.f64 (+.f64 1 (exp.f64 -1)) 2))) (*.f64 1/2 (/.f64 (*.f64 (pow.f64 (exp.f64 -1) 2) (pow.f64 x 6)) (pow.f64 (+.f64 1 (exp.f64 -1)) 2))))) |
(log.f64 (+.f64 1 (exp.f64 (fma.f64 x x -1)))) |
(log.f64 (+.f64 1 (exp.f64 (fma.f64 x x -1)))) |
(log.f64 (+.f64 1 (exp.f64 (fma.f64 x x -1)))) |
(log.f64 (+.f64 1 (exp.f64 (fma.f64 x x -1)))) |
(log.f64 (+.f64 1 (exp.f64 (fma.f64 x x -1)))) |
(log.f64 (+.f64 1 (exp.f64 (fma.f64 x x -1)))) |
(log.f64 (+.f64 1 (exp.f64 (fma.f64 x x -1)))) |
(log.f64 (+.f64 1 (exp.f64 (fma.f64 x x -1)))) |
| Outputs |
|---|
(exp.f64 -1) |
(+.f64 (exp.f64 -1) (*.f64 (exp.f64 -1) (pow.f64 x 2))) |
(+.f64 (exp.f64 -1) (*.f64 (exp.f64 -1) (*.f64 x x))) |
(*.f64 (+.f64 (*.f64 x x) 1) (exp.f64 -1)) |
(*.f64 (exp.f64 -1) (fma.f64 x x 1)) |
(+.f64 (exp.f64 -1) (+.f64 (*.f64 1/2 (*.f64 (exp.f64 -1) (pow.f64 x 4))) (*.f64 (exp.f64 -1) (pow.f64 x 2)))) |
(+.f64 (exp.f64 -1) (fma.f64 1/2 (*.f64 (exp.f64 -1) (pow.f64 x 4)) (*.f64 (exp.f64 -1) (*.f64 x x)))) |
(+.f64 (exp.f64 -1) (fma.f64 (exp.f64 -1) (*.f64 x x) (*.f64 (exp.f64 -1) (*.f64 (pow.f64 x 4) 1/2)))) |
(*.f64 (exp.f64 -1) (+.f64 (*.f64 1/2 (pow.f64 x 4)) (fma.f64 x x 1))) |
(+.f64 (exp.f64 -1) (+.f64 (*.f64 1/6 (*.f64 (exp.f64 -1) (pow.f64 x 6))) (+.f64 (*.f64 1/2 (*.f64 (exp.f64 -1) (pow.f64 x 4))) (*.f64 (exp.f64 -1) (pow.f64 x 2))))) |
(+.f64 (exp.f64 -1) (fma.f64 1/6 (*.f64 (exp.f64 -1) (pow.f64 x 6)) (fma.f64 1/2 (*.f64 (exp.f64 -1) (pow.f64 x 4)) (*.f64 (exp.f64 -1) (*.f64 x x))))) |
(+.f64 (exp.f64 -1) (fma.f64 1/6 (*.f64 (exp.f64 -1) (pow.f64 x 6)) (fma.f64 (exp.f64 -1) (*.f64 x x) (*.f64 (exp.f64 -1) (*.f64 (pow.f64 x 4) 1/2))))) |
(fma.f64 (exp.f64 -1) (*.f64 1/6 (pow.f64 x 6)) (*.f64 (exp.f64 -1) (+.f64 (*.f64 1/2 (pow.f64 x 4)) (fma.f64 x x 1)))) |
(exp.f64 (fma.f64 x x -1)) |
(exp.f64 (fma.f64 x x -1)) |
(exp.f64 (fma.f64 x x -1)) |
(exp.f64 (fma.f64 x x -1)) |
(exp.f64 (fma.f64 x x -1)) |
(exp.f64 (fma.f64 x x -1)) |
(exp.f64 (fma.f64 x x -1)) |
(exp.f64 (fma.f64 x x -1)) |
(log.f64 (+.f64 1 (exp.f64 -1))) |
(log1p.f64 (exp.f64 -1)) |
(+.f64 (log.f64 (+.f64 1 (exp.f64 -1))) (/.f64 (*.f64 (exp.f64 -1) (pow.f64 x 2)) (+.f64 1 (exp.f64 -1)))) |
(+.f64 (log1p.f64 (exp.f64 -1)) (/.f64 (exp.f64 -1) (/.f64 (+.f64 (exp.f64 -1) 1) (*.f64 x x)))) |
(+.f64 (log1p.f64 (exp.f64 -1)) (*.f64 (/.f64 (exp.f64 -1) (+.f64 (exp.f64 -1) 1)) (*.f64 x x))) |
(fma.f64 (/.f64 (exp.f64 -1) (+.f64 (exp.f64 -1) 1)) (*.f64 x x) (log1p.f64 (exp.f64 -1))) |
(-.f64 (+.f64 (*.f64 1/2 (/.f64 (*.f64 (exp.f64 -1) (pow.f64 x 4)) (+.f64 1 (exp.f64 -1)))) (+.f64 (log.f64 (+.f64 1 (exp.f64 -1))) (/.f64 (*.f64 (exp.f64 -1) (pow.f64 x 2)) (+.f64 1 (exp.f64 -1))))) (*.f64 1/2 (/.f64 (*.f64 (pow.f64 (exp.f64 -1) 2) (pow.f64 x 4)) (pow.f64 (+.f64 1 (exp.f64 -1)) 2)))) |
(+.f64 (fma.f64 1/2 (/.f64 (*.f64 (exp.f64 -1) (pow.f64 x 4)) (+.f64 (exp.f64 -1) 1)) (+.f64 (log1p.f64 (exp.f64 -1)) (/.f64 (exp.f64 -1) (/.f64 (+.f64 (exp.f64 -1) 1) (*.f64 x x))))) (*.f64 -1/2 (/.f64 (*.f64 (pow.f64 x 4) (pow.f64 (exp.f64 -1) 2)) (pow.f64 (+.f64 (exp.f64 -1) 1) 2)))) |
(fma.f64 1/2 (/.f64 (*.f64 (exp.f64 -1) (pow.f64 x 4)) (+.f64 (exp.f64 -1) 1)) (+.f64 (*.f64 (/.f64 (exp.f64 -1) (+.f64 (exp.f64 -1) 1)) (*.f64 x x)) (-.f64 (log1p.f64 (exp.f64 -1)) (*.f64 1/2 (/.f64 (*.f64 (pow.f64 x 4) (exp.f64 -2)) (pow.f64 (+.f64 (exp.f64 -1) 1) 2)))))) |
(fma.f64 (/.f64 (exp.f64 -2) (/.f64 (pow.f64 (+.f64 (exp.f64 -1) 1) 2) (pow.f64 x 4))) -1/2 (fma.f64 1/2 (*.f64 (pow.f64 x 4) (/.f64 (exp.f64 -1) (+.f64 (exp.f64 -1) 1))) (fma.f64 (/.f64 (exp.f64 -1) (+.f64 (exp.f64 -1) 1)) (*.f64 x x) (log1p.f64 (exp.f64 -1))))) |
(-.f64 (+.f64 (*.f64 1/3 (/.f64 (*.f64 (pow.f64 (exp.f64 -1) 3) (pow.f64 x 6)) (pow.f64 (+.f64 1 (exp.f64 -1)) 3))) (+.f64 (*.f64 1/6 (/.f64 (*.f64 (exp.f64 -1) (pow.f64 x 6)) (+.f64 1 (exp.f64 -1)))) (+.f64 (*.f64 1/2 (/.f64 (*.f64 (exp.f64 -1) (pow.f64 x 4)) (+.f64 1 (exp.f64 -1)))) (+.f64 (log.f64 (+.f64 1 (exp.f64 -1))) (/.f64 (*.f64 (exp.f64 -1) (pow.f64 x 2)) (+.f64 1 (exp.f64 -1))))))) (+.f64 (*.f64 1/2 (/.f64 (*.f64 (pow.f64 (exp.f64 -1) 2) (pow.f64 x 4)) (pow.f64 (+.f64 1 (exp.f64 -1)) 2))) (*.f64 1/2 (/.f64 (*.f64 (pow.f64 (exp.f64 -1) 2) (pow.f64 x 6)) (pow.f64 (+.f64 1 (exp.f64 -1)) 2))))) |
(-.f64 (fma.f64 1/3 (/.f64 (*.f64 (pow.f64 x 6) (pow.f64 (exp.f64 -1) 3)) (pow.f64 (+.f64 (exp.f64 -1) 1) 3)) (fma.f64 1/6 (/.f64 (*.f64 (exp.f64 -1) (pow.f64 x 6)) (+.f64 (exp.f64 -1) 1)) (fma.f64 1/2 (/.f64 (*.f64 (exp.f64 -1) (pow.f64 x 4)) (+.f64 (exp.f64 -1) 1)) (+.f64 (log1p.f64 (exp.f64 -1)) (/.f64 (exp.f64 -1) (/.f64 (+.f64 (exp.f64 -1) 1) (*.f64 x x))))))) (*.f64 1/2 (+.f64 (/.f64 (*.f64 (pow.f64 x 4) (pow.f64 (exp.f64 -1) 2)) (pow.f64 (+.f64 (exp.f64 -1) 1) 2)) (/.f64 (*.f64 (pow.f64 x 6) (pow.f64 (exp.f64 -1) 2)) (pow.f64 (+.f64 (exp.f64 -1) 1) 2))))) |
(+.f64 (fma.f64 1/3 (/.f64 (pow.f64 x 6) (/.f64 (pow.f64 (+.f64 (exp.f64 -1) 1) 3) (pow.f64 (exp.f64 -1) 3))) (fma.f64 1/6 (*.f64 (/.f64 (exp.f64 -1) (+.f64 (exp.f64 -1) 1)) (pow.f64 x 6)) (+.f64 (*.f64 (/.f64 (exp.f64 -1) (+.f64 (exp.f64 -1) 1)) (*.f64 x x)) (fma.f64 1/2 (/.f64 (*.f64 (exp.f64 -1) (pow.f64 x 4)) (+.f64 (exp.f64 -1) 1)) (log1p.f64 (exp.f64 -1)))))) (*.f64 -1/2 (+.f64 (/.f64 (*.f64 (pow.f64 x 4) (exp.f64 -2)) (pow.f64 (+.f64 (exp.f64 -1) 1) 2)) (*.f64 (/.f64 (exp.f64 -2) (pow.f64 (+.f64 (exp.f64 -1) 1) 2)) (pow.f64 x 6))))) |
(fma.f64 -1/2 (*.f64 (/.f64 (exp.f64 -2) (pow.f64 (+.f64 (exp.f64 -1) 1) 2)) (+.f64 (pow.f64 x 4) (pow.f64 x 6))) (fma.f64 1/6 (*.f64 (pow.f64 x 6) (/.f64 (exp.f64 -1) (+.f64 (exp.f64 -1) 1))) (fma.f64 1/3 (*.f64 (/.f64 (pow.f64 x 6) (pow.f64 (+.f64 (exp.f64 -1) 1) 3)) (exp.f64 -3)) (fma.f64 1/2 (*.f64 (pow.f64 x 4) (/.f64 (exp.f64 -1) (+.f64 (exp.f64 -1) 1))) (fma.f64 (/.f64 (exp.f64 -1) (+.f64 (exp.f64 -1) 1)) (*.f64 x x) (log1p.f64 (exp.f64 -1))))))) |
(log.f64 (+.f64 1 (exp.f64 (fma.f64 x x -1)))) |
(log1p.f64 (exp.f64 (fma.f64 x x -1))) |
(log.f64 (+.f64 1 (exp.f64 (fma.f64 x x -1)))) |
(log1p.f64 (exp.f64 (fma.f64 x x -1))) |
(log.f64 (+.f64 1 (exp.f64 (fma.f64 x x -1)))) |
(log1p.f64 (exp.f64 (fma.f64 x x -1))) |
(log.f64 (+.f64 1 (exp.f64 (fma.f64 x x -1)))) |
(log1p.f64 (exp.f64 (fma.f64 x x -1))) |
(log.f64 (+.f64 1 (exp.f64 (fma.f64 x x -1)))) |
(log1p.f64 (exp.f64 (fma.f64 x x -1))) |
(log.f64 (+.f64 1 (exp.f64 (fma.f64 x x -1)))) |
(log1p.f64 (exp.f64 (fma.f64 x x -1))) |
(log.f64 (+.f64 1 (exp.f64 (fma.f64 x x -1)))) |
(log1p.f64 (exp.f64 (fma.f64 x x -1))) |
(log.f64 (+.f64 1 (exp.f64 (fma.f64 x x -1)))) |
(log1p.f64 (exp.f64 (fma.f64 x x -1))) |
2 alts after pruning (1 fresh and 1 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 82 | 0 | 82 |
| Fresh | 0 | 1 | 1 |
| Picked | 0 | 1 | 1 |
| Done | 0 | 0 | 0 |
| Total | 82 | 2 | 84 |
| Status | Error | Program |
|---|---|---|
| ✓ | 0.0b | (expm1.f64 (log1p.f64 (exp.f64 (fma.f64 x x -1)))) |
| ▶ | 0.0b | (*.f64 (exp.f64 (*.f64 x x)) (exp.f64 -1)) |
Compiled 1201 to 981 computations (18.3% saved)
Found 2 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)) |
6 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 1.0ms | x | @ | inf | (*.f64 (exp.f64 (*.f64 x x)) (exp.f64 -1)) |
| 0.0ms | x | @ | 0 | (*.f64 (exp.f64 (*.f64 x x)) (exp.f64 -1)) |
| 0.0ms | x | @ | 0 | (exp.f64 (*.f64 x x)) |
| 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 |
| 501× | add-log-exp_binary64 |
| 501× | log1p-expm1-u_binary64 |
| 501× | expm1-log1p-u_binary64 |
| 487× | add-exp-log_binary64 |
Useful iterations: 1 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 7 | 15 |
| 1 | 129 | 13 |
| 2 | 1429 | 13 |
| 1× | node limit |
| Inputs |
|---|
(*.f64 (exp.f64 (*.f64 x x)) (exp.f64 -1)) |
(exp.f64 (*.f64 x x)) |
| Outputs |
|---|
((#(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 cbrt.f64 (*.f64 (pow.f64 (pow.f64 (exp.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 (pow.f64 (exp.f64 x) x) 3)))))) (#(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 expm1.f64 (log1p.f64 (exp.f64 (fma.f64 x x -1)))))))) |
((#(struct:change #<rule egg-rr> (2) ((x +.f64 1 (expm1.f64 (*.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 pow.f64 (pow.f64 (exp.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 (pow.f64 (exp.f64 x) x) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (pow.f64 (exp.f64 x) x)) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (pow.f64 (exp.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 (pow.f64 (exp.f64 x) x) 2))))) (#(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 log1p.f64 (expm1.f64 (pow.f64 (exp.f64 x) x)))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (pow.f64 (exp.f64 x) x))))))) |
| 1× | egg-herbie |
| 512× | fma-def_binary64 |
| 439× | *-commutative_binary64 |
| 437× | distribute-rgt-out_binary64 |
| 424× | associate-*l*_binary64 |
| 349× | distribute-lft-out_binary64 |
Useful iterations: 3 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 32 | 244 |
| 1 | 84 | 216 |
| 2 | 208 | 200 |
| 3 | 592 | 195 |
| 4 | 2307 | 195 |
| 5 | 4558 | 195 |
| 1× | node limit |
| Inputs |
|---|
(exp.f64 -1) |
(+.f64 (exp.f64 -1) (*.f64 (exp.f64 -1) (pow.f64 x 2))) |
(+.f64 (exp.f64 -1) (+.f64 (*.f64 1/2 (*.f64 (exp.f64 -1) (pow.f64 x 4))) (*.f64 (exp.f64 -1) (pow.f64 x 2)))) |
(+.f64 (exp.f64 -1) (+.f64 (*.f64 1/6 (*.f64 (exp.f64 -1) (pow.f64 x 6))) (+.f64 (*.f64 1/2 (*.f64 (exp.f64 -1) (pow.f64 x 4))) (*.f64 (exp.f64 -1) (pow.f64 x 2))))) |
(*.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 (*.f64 1/2 (pow.f64 x 4)) (+.f64 1 (pow.f64 x 2))) |
(+.f64 (*.f64 1/2 (pow.f64 x 4)) (+.f64 1 (+.f64 (*.f64 1/6 (pow.f64 x 6)) (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 (pow.f64 x 2)) |
| Outputs |
|---|
(exp.f64 -1) |
(+.f64 (exp.f64 -1) (*.f64 (exp.f64 -1) (pow.f64 x 2))) |
(+.f64 (exp.f64 -1) (*.f64 (exp.f64 -1) (*.f64 x x))) |
(*.f64 (fma.f64 x x 1) (exp.f64 -1)) |
(*.f64 (exp.f64 -1) (fma.f64 x x 1)) |
(+.f64 (exp.f64 -1) (+.f64 (*.f64 1/2 (*.f64 (exp.f64 -1) (pow.f64 x 4))) (*.f64 (exp.f64 -1) (pow.f64 x 2)))) |
(+.f64 (exp.f64 -1) (fma.f64 1/2 (*.f64 (exp.f64 -1) (pow.f64 x 4)) (*.f64 (exp.f64 -1) (*.f64 x x)))) |
(+.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 (exp.f64 -1) (+.f64 (*.f64 1/6 (*.f64 (exp.f64 -1) (pow.f64 x 6))) (+.f64 (*.f64 1/2 (*.f64 (exp.f64 -1) (pow.f64 x 4))) (*.f64 (exp.f64 -1) (pow.f64 x 2))))) |
(+.f64 (exp.f64 -1) (fma.f64 1/6 (*.f64 (exp.f64 -1) (pow.f64 x 6)) (fma.f64 1/2 (*.f64 (exp.f64 -1) (pow.f64 x 4)) (*.f64 (exp.f64 -1) (*.f64 x x))))) |
(+.f64 (fma.f64 1/6 (*.f64 (exp.f64 -1) (pow.f64 x 6)) (*.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 1/2 (pow.f64 x 4) (fma.f64 x x (fma.f64 1/6 (pow.f64 x 6) 1)))) |
(*.f64 (exp.f64 -1) (fma.f64 x x (fma.f64 1/6 (pow.f64 x 6) (fma.f64 1/2 (pow.f64 x 4) 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 (*.f64 1/2 (pow.f64 x 4)) (+.f64 1 (pow.f64 x 2))) |
(fma.f64 1/2 (pow.f64 x 4) (+.f64 (*.f64 x x) 1)) |
(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) 1)) |
(+.f64 (*.f64 1/2 (pow.f64 x 4)) (+.f64 1 (+.f64 (*.f64 1/6 (pow.f64 x 6)) (pow.f64 x 2)))) |
(fma.f64 1/2 (pow.f64 x 4) (+.f64 1 (fma.f64 1/6 (pow.f64 x 6) (*.f64 x x)))) |
(+.f64 (fma.f64 x x (*.f64 1/6 (pow.f64 x 6))) (fma.f64 1/2 (pow.f64 x 4) 1)) |
(fma.f64 1/2 (pow.f64 x 4) (fma.f64 x x (fma.f64 1/6 (pow.f64 x 6) 1))) |
(fma.f64 x x (fma.f64 1/6 (pow.f64 x 6) (fma.f64 1/2 (pow.f64 x 4) 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) |
3 alts after pruning (2 fresh and 1 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 48 | 2 | 50 |
| Fresh | 0 | 0 | 0 |
| Picked | 1 | 0 | 1 |
| Done | 0 | 1 | 1 |
| Total | 49 | 3 | 52 |
| Status | Error | Program |
|---|---|---|
| ✓ | 0.0b | (expm1.f64 (log1p.f64 (exp.f64 (fma.f64 x x -1)))) |
| 0.1b | (*.f64 (pow.f64 (cbrt.f64 (pow.f64 (exp.f64 x) x)) 3) (exp.f64 -1)) | |
| ▶ | 0.0b | (*.f64 (pow.f64 (exp.f64 x) x) (exp.f64 -1)) |
Compiled 566 to 396 computations (30% saved)
Found 2 expressions with local error:
| New | Error | Program |
|---|---|---|
| ✓ | 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 | |
|---|---|---|---|---|
| 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)) |
| 0.0ms | x | @ | -inf | (*.f64 (pow.f64 (exp.f64 x) x) (exp.f64 -1)) |
| 0.0ms | x | @ | 0 | (pow.f64 (exp.f64 x) x) |
| 0.0ms | x | @ | -inf | (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 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 log1p.f64 (expm1.f64 (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 -.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 log1p.f64 (expm1.f64 (exp.f64 (*.f64 x x))))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (exp.f64 (*.f64 x x)))))))) |
| 1× | egg-herbie |
| 512× | fma-def_binary64 |
| 439× | *-commutative_binary64 |
| 437× | distribute-rgt-out_binary64 |
| 424× | associate-*l*_binary64 |
| 349× | distribute-lft-out_binary64 |
Useful iterations: 3 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 32 | 244 |
| 1 | 84 | 216 |
| 2 | 208 | 200 |
| 3 | 592 | 195 |
| 4 | 2307 | 195 |
| 5 | 4558 | 195 |
| 1× | node limit |
| Inputs |
|---|
(exp.f64 -1) |
(+.f64 (exp.f64 -1) (*.f64 (exp.f64 -1) (pow.f64 x 2))) |
(+.f64 (exp.f64 -1) (+.f64 (*.f64 1/2 (*.f64 (exp.f64 -1) (pow.f64 x 4))) (*.f64 (exp.f64 -1) (pow.f64 x 2)))) |
(+.f64 (exp.f64 -1) (+.f64 (*.f64 1/6 (*.f64 (exp.f64 -1) (pow.f64 x 6))) (+.f64 (*.f64 1/2 (*.f64 (exp.f64 -1) (pow.f64 x 4))) (*.f64 (exp.f64 -1) (pow.f64 x 2))))) |
(*.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 (*.f64 1/2 (pow.f64 x 4)) (+.f64 1 (pow.f64 x 2))) |
(+.f64 (*.f64 1/2 (pow.f64 x 4)) (+.f64 1 (+.f64 (*.f64 1/6 (pow.f64 x 6)) (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 (pow.f64 x 2)) |
| Outputs |
|---|
(exp.f64 -1) |
(+.f64 (exp.f64 -1) (*.f64 (exp.f64 -1) (pow.f64 x 2))) |
(+.f64 (exp.f64 -1) (*.f64 (exp.f64 -1) (*.f64 x x))) |
(*.f64 (fma.f64 x x 1) (exp.f64 -1)) |
(*.f64 (exp.f64 -1) (fma.f64 x x 1)) |
(+.f64 (exp.f64 -1) (+.f64 (*.f64 1/2 (*.f64 (exp.f64 -1) (pow.f64 x 4))) (*.f64 (exp.f64 -1) (pow.f64 x 2)))) |
(+.f64 (exp.f64 -1) (fma.f64 1/2 (*.f64 (exp.f64 -1) (pow.f64 x 4)) (*.f64 (exp.f64 -1) (*.f64 x x)))) |
(+.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 (exp.f64 -1) (+.f64 (*.f64 1/6 (*.f64 (exp.f64 -1) (pow.f64 x 6))) (+.f64 (*.f64 1/2 (*.f64 (exp.f64 -1) (pow.f64 x 4))) (*.f64 (exp.f64 -1) (pow.f64 x 2))))) |
(+.f64 (exp.f64 -1) (fma.f64 1/6 (*.f64 (exp.f64 -1) (pow.f64 x 6)) (fma.f64 1/2 (*.f64 (exp.f64 -1) (pow.f64 x 4)) (*.f64 (exp.f64 -1) (*.f64 x x))))) |
(+.f64 (fma.f64 1/6 (*.f64 (exp.f64 -1) (pow.f64 x 6)) (*.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 1/2 (pow.f64 x 4) (fma.f64 x x (fma.f64 1/6 (pow.f64 x 6) 1)))) |
(*.f64 (exp.f64 -1) (fma.f64 x x (fma.f64 1/6 (pow.f64 x 6) (fma.f64 1/2 (pow.f64 x 4) 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 (*.f64 1/2 (pow.f64 x 4)) (+.f64 1 (pow.f64 x 2))) |
(fma.f64 1/2 (pow.f64 x 4) (+.f64 (*.f64 x x) 1)) |
(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) 1)) |
(+.f64 (*.f64 1/2 (pow.f64 x 4)) (+.f64 1 (+.f64 (*.f64 1/6 (pow.f64 x 6)) (pow.f64 x 2)))) |
(fma.f64 1/2 (pow.f64 x 4) (+.f64 1 (fma.f64 1/6 (pow.f64 x 6) (*.f64 x x)))) |
(+.f64 (fma.f64 x x (*.f64 1/6 (pow.f64 x 6))) (fma.f64 1/2 (pow.f64 x 4) 1)) |
(fma.f64 1/2 (pow.f64 x 4) (fma.f64 x x (fma.f64 1/6 (pow.f64 x 6) 1))) |
(fma.f64 x x (fma.f64 1/6 (pow.f64 x 6) (fma.f64 1/2 (pow.f64 x 4) 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) |
3 alts after pruning (1 fresh and 2 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 46 | 0 | 46 |
| Fresh | 0 | 1 | 1 |
| Picked | 0 | 1 | 1 |
| Done | 0 | 1 | 1 |
| Total | 46 | 3 | 49 |
| Status | Error | Program |
|---|---|---|
| ✓ | 0.0b | (expm1.f64 (log1p.f64 (exp.f64 (fma.f64 x x -1)))) |
| 0.1b | (*.f64 (pow.f64 (cbrt.f64 (pow.f64 (exp.f64 x) x)) 3) (exp.f64 -1)) | |
| ✓ | 0.0b | (*.f64 (pow.f64 (exp.f64 x) x) (exp.f64 -1)) |
Compiled 516 to 351 computations (32% saved)
Total 0.0b remaining (53.2%)
Threshold costs 0.0b (53.2%)
Compiled 151 to 102 computations (32.5% saved)
| 1× | egg-herbie |
| 1× | +-commutative_binary64 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 6 | 9 |
| 1 | 7 | 9 |
| 1× | saturated |
| Inputs |
|---|
(exp.f64 (+.f64 -1 (*.f64 x x))) |
| Outputs |
|---|
(exp.f64 (+.f64 -1 (*.f64 x x))) |
| 1× | fuel |
Compiled 41 to 31 computations (24.4% saved)
Loading profile data...