Time bar (total: 2.6s)
| 1× | search |
| True | Other | False | Iter |
|---|---|---|---|
| 0% | 100% | 0% | 0 |
| 0% | 100% | 0% | 1 |
| 0% | 100% | 0% | 2 |
| 25% | 75% | 0% | 3 |
| 25% | 62.5% | 12.5% | 4 |
| 25% | 56.2% | 18.8% | 5 |
| 28.1% | 50% | 21.9% | 6 |
| 29.7% | 46.9% | 23.5% | 7 |
| 30.5% | 45.3% | 24.3% | 8 |
| 30.8% | 44.9% | 24.3% | 9 |
| 31.2% | 44.5% | 24.3% | 10 |
| 31.3% | 44.4% | 24.3% | 11 |
| 31.4% | 44.3% | 24.3% | 12 |
| 31.4% | 44.2% | 24.3% | 13 |
| 31.5% | 44.2% | 24.3% | 14 |
Compiled 9 to 6 computations (33.3% saved)
| 858.0ms | 2765× | body | 1024 | valid |
| 285.0ms | 1330× | body | 512 | valid |
| 246.0ms | 3199× | body | 128 | valid |
| 110.0ms | 291× | body | 2048 | valid |
| 100.0ms | 671× | body | 256 | valid |
Compiled 18 to 12 computations (33.3% saved)
| 2× | egg-herbie |
| 1× | +-commutative_binary64 |
| 1× | sub-neg_binary64 |
| 1× | 1-exp_binary64 |
| 1× | expm1-def_binary64 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 6 | 8 |
| 1 | 12 | 8 |
| 2 | 13 | 8 |
| 0 | 1 | 1 |
| 1× | saturated |
| 1× | saturated |
| Inputs |
|---|
0 |
| Outputs |
|---|
0 |
| Inputs |
|---|
(/.f64 (exp.f64 x) (-.f64 (exp.f64 x) 1)) |
| Outputs |
|---|
(/.f64 (exp.f64 x) (-.f64 (exp.f64 x) 1)) |
(/.f64 (exp.f64 x) (expm1.f64 x)) |
Compiled 8 to 5 computations (37.5% saved)
| 1× | egg-herbie |
| 1× | +-commutative_binary64 |
| 1× | sub-neg_binary64 |
| 1× | 1-exp_binary64 |
| 1× | expm1-def_binary64 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 6 | 8 |
| 1 | 12 | 8 |
| 2 | 13 | 8 |
| 1× | saturated |
| Inputs |
|---|
(/.f64 (exp.f64 x) (-.f64 (exp.f64 x) 1)) |
| Outputs |
|---|
(/.f64 (exp.f64 x) (-.f64 (exp.f64 x) 1)) |
(/.f64 (exp.f64 x) (expm1.f64 x)) |
1 alts after pruning (1 fresh and 0 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 1 | 1 | 2 |
| Fresh | 1 | 0 | 1 |
| Picked | 0 | 0 | 0 |
| Done | 0 | 0 | 0 |
| Total | 2 | 1 | 3 |
| Status | Error | Program |
|---|---|---|
| ▶ | 0.8b | (/.f64 (exp.f64 x) (expm1.f64 x)) |
Compiled 25 to 15 computations (40% saved)
Found 2 expressions with local error:
| New | Error | Program |
|---|---|---|
| ✓ | 0.0b | (expm1.f64 x) |
| ✓ | 0.7b | (/.f64 (exp.f64 x) (expm1.f64 x)) |
6 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 1.0ms | x | @ | inf | (/.f64 (exp.f64 x) (expm1.f64 x)) |
| 1.0ms | x | @ | -inf | (/.f64 (exp.f64 x) (expm1.f64 x)) |
| 1.0ms | x | @ | 0 | (/.f64 (exp.f64 x) (expm1.f64 x)) |
| 0.0ms | x | @ | 0 | (expm1.f64 x) |
| 0.0ms | x | @ | inf | (expm1.f64 x) |
| 1× | batch-egg-rewrite |
| 516× | pow1_binary64 |
| 477× | add-log-exp_binary64 |
| 477× | log1p-expm1-u_binary64 |
| 477× | expm1-log1p-u_binary64 |
| 465× | add-exp-log_binary64 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 5 | 11 |
| 1 | 99 | 11 |
| 2 | 1287 | 11 |
| 1× | node limit |
| Inputs |
|---|
(/.f64 (exp.f64 x) (expm1.f64 x)) |
(expm1.f64 x) |
| Outputs |
|---|
((#(struct:change #<rule egg-rr> (2) ((x -.f64 (+.f64 1 (/.f64 (exp.f64 x) (expm1.f64 x))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (exp.f64 x) (/.f64 1 (expm1.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (exp.f64 x) (expm1.f64 x)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (/.f64 (exp.f64 x) (expm1.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (exp.f64 x)) 2) (*.f64 (cbrt.f64 (exp.f64 x)) (/.f64 1 (expm1.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (/.f64 (exp.f64 x) (expm1.f64 x))) (pow.f64 (cbrt.f64 (/.f64 (exp.f64 x) (expm1.f64 x))) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (/.f64 (exp.f64 x) (expm1.f64 x))) 2) (cbrt.f64 (/.f64 (exp.f64 x) (expm1.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (exp.f64 x)) (*.f64 (sqrt.f64 (exp.f64 x)) (/.f64 1 (expm1.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (/.f64 (exp.f64 x) (expm1.f64 x))) (sqrt.f64 (/.f64 (exp.f64 x) (expm1.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (neg.f64 (exp.f64 x)) (/.f64 1 (neg.f64 (expm1.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 1 (expm1.f64 x)) (exp.f64 x))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (pow.f64 (cbrt.f64 (exp.f64 x)) 2) 1) (/.f64 (cbrt.f64 (exp.f64 x)) (expm1.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (sqrt.f64 (exp.f64 x)) 1) (/.f64 (sqrt.f64 (exp.f64 x)) (expm1.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 1 (pow.f64 (cbrt.f64 (expm1.f64 x)) 2)) (/.f64 (exp.f64 x) (cbrt.f64 (expm1.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (pow.f64 (cbrt.f64 (exp.f64 x)) 2) (pow.f64 (cbrt.f64 (expm1.f64 x)) 2)) (cbrt.f64 (/.f64 (exp.f64 x) (expm1.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (sqrt.f64 (exp.f64 x)) (pow.f64 (cbrt.f64 (expm1.f64 x)) 2)) (/.f64 (sqrt.f64 (exp.f64 x)) (cbrt.f64 (expm1.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 1 (sqrt.f64 (expm1.f64 x))) (/.f64 (exp.f64 x) (sqrt.f64 (expm1.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (pow.f64 (cbrt.f64 (exp.f64 x)) 2) (sqrt.f64 (expm1.f64 x))) (/.f64 (cbrt.f64 (exp.f64 x)) (sqrt.f64 (expm1.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (/.f64 (exp.f64 x) (expm1.f64 x)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (/.f64 (exp.f64 x) (expm1.f64 x)) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (/.f64 (exp.f64 x) (expm1.f64 x))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (/.f64 (exp.f64 x) (expm1.f64 x))) 2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (/.f64 (expm1.f64 x) (exp.f64 x)) -1)))) (#(struct:change #<rule egg-rr> (2) ((x neg.f64 (/.f64 (exp.f64 x) (neg.f64 (expm1.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (/.f64 (exp.f64 x) (expm1.f64 x)) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (/.f64 (exp.f64 x) (expm1.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (/.f64 (exp.f64 x) (expm1.f64 x)) 3))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (/.f64 (pow.f64 (exp.f64 x) 3) (pow.f64 (expm1.f64 x) 3)))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (/.f64 (exp.f64 x) (expm1.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (-.f64 x (log.f64 (expm1.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (/.f64 (exp.f64 x) (expm1.f64 x)))))))) |
((#(struct:change #<rule egg-rr> (2) ((x +.f64 (exp.f64 x) -1)))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (exp.f64 x) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (expm1.f64 x) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (expm1.f64 x))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (expm1.f64 x)) (pow.f64 (cbrt.f64 (expm1.f64 x)) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (expm1.f64 x)) 2) (cbrt.f64 (expm1.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (expm1.f64 x)) (sqrt.f64 (expm1.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (+.f64 (sqrt.f64 (exp.f64 x)) 1) (-.f64 (sqrt.f64 (exp.f64 x)) 1))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (pow.f64 (exp.f64 x) 3) 1) (+.f64 (pow.f64 (exp.f64 x) 2) (+.f64 1 (exp.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (pow.f64 (exp.f64 x) 2) 1) (+.f64 (exp.f64 x) 1))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (expm1.f64 x) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (expm1.f64 x) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (expm1.f64 x)) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (expm1.f64 x)) 2)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (expm1.f64 x) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (expm1.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (expm1.f64 x) 3))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (expm1.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 1 (exp.f64 x) -1)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (pow.f64 (cbrt.f64 (exp.f64 x)) 2) (cbrt.f64 (exp.f64 x)) -1)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (sqrt.f64 (exp.f64 x)) (sqrt.f64 (exp.f64 x)) -1)))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (expm1.f64 x))))))) |
| 1× | egg-herbie |
| 803× | unswap-sqr_binary64 |
| 507× | distribute-lft-out_binary64 |
| 395× | *-commutative_binary64 |
| 382× | fma-def_binary64 |
| 237× | distribute-rgt-out_binary64 |
Useful iterations: 3 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 33 | 174 |
| 1 | 85 | 174 |
| 2 | 192 | 174 |
| 3 | 562 | 168 |
| 4 | 1516 | 168 |
| 5 | 2593 | 168 |
| 6 | 4717 | 168 |
| 1× | node limit |
| Inputs |
|---|
(/.f64 1 x) |
(+.f64 1/2 (/.f64 1 x)) |
(+.f64 1/2 (+.f64 (*.f64 1/12 x) (/.f64 1 x))) |
(+.f64 1/2 (+.f64 (*.f64 -1/720 (pow.f64 x 3)) (+.f64 (*.f64 1/12 x) (/.f64 1 x)))) |
(/.f64 (exp.f64 x) (-.f64 (exp.f64 x) 1)) |
(/.f64 (exp.f64 x) (-.f64 (exp.f64 x) 1)) |
(/.f64 (exp.f64 x) (-.f64 (exp.f64 x) 1)) |
(/.f64 (exp.f64 x) (-.f64 (exp.f64 x) 1)) |
(/.f64 (exp.f64 x) (-.f64 (exp.f64 x) 1)) |
(/.f64 (exp.f64 x) (-.f64 (exp.f64 x) 1)) |
(/.f64 (exp.f64 x) (-.f64 (exp.f64 x) 1)) |
(/.f64 (exp.f64 x) (-.f64 (exp.f64 x) 1)) |
x |
(+.f64 (*.f64 1/2 (pow.f64 x 2)) x) |
(+.f64 (*.f64 1/6 (pow.f64 x 3)) (+.f64 (*.f64 1/2 (pow.f64 x 2)) x)) |
(+.f64 (*.f64 1/6 (pow.f64 x 3)) (+.f64 (*.f64 1/2 (pow.f64 x 2)) (+.f64 (*.f64 1/24 (pow.f64 x 4)) x))) |
(-.f64 (exp.f64 x) 1) |
(-.f64 (exp.f64 x) 1) |
(-.f64 (exp.f64 x) 1) |
(-.f64 (exp.f64 x) 1) |
(-.f64 (exp.f64 x) 1) |
(-.f64 (exp.f64 x) 1) |
(-.f64 (exp.f64 x) 1) |
(-.f64 (exp.f64 x) 1) |
| Outputs |
|---|
(/.f64 1 x) |
(+.f64 1/2 (/.f64 1 x)) |
(+.f64 (/.f64 1 x) 1/2) |
(+.f64 1/2 (+.f64 (*.f64 1/12 x) (/.f64 1 x))) |
(+.f64 1/2 (fma.f64 1/12 x (/.f64 1 x))) |
(+.f64 1/2 (fma.f64 x 1/12 (/.f64 1 x))) |
(+.f64 (/.f64 1 x) (fma.f64 x 1/12 1/2)) |
(+.f64 1/2 (+.f64 (*.f64 -1/720 (pow.f64 x 3)) (+.f64 (*.f64 1/12 x) (/.f64 1 x)))) |
(+.f64 1/2 (fma.f64 -1/720 (pow.f64 x 3) (fma.f64 1/12 x (/.f64 1 x)))) |
(+.f64 1/2 (fma.f64 -1/720 (pow.f64 x 3) (fma.f64 x 1/12 (/.f64 1 x)))) |
(+.f64 (fma.f64 x 1/12 (/.f64 1 x)) (fma.f64 -1/720 (pow.f64 x 3) 1/2)) |
(+.f64 (/.f64 1 x) (fma.f64 x 1/12 (fma.f64 -1/720 (pow.f64 x 3) 1/2))) |
(+.f64 1/2 (fma.f64 x 1/12 (fma.f64 -1/720 (pow.f64 x 3) (/.f64 1 x)))) |
(/.f64 (exp.f64 x) (-.f64 (exp.f64 x) 1)) |
(/.f64 (exp.f64 x) (expm1.f64 x)) |
(/.f64 (exp.f64 x) (-.f64 (exp.f64 x) 1)) |
(/.f64 (exp.f64 x) (expm1.f64 x)) |
(/.f64 (exp.f64 x) (-.f64 (exp.f64 x) 1)) |
(/.f64 (exp.f64 x) (expm1.f64 x)) |
(/.f64 (exp.f64 x) (-.f64 (exp.f64 x) 1)) |
(/.f64 (exp.f64 x) (expm1.f64 x)) |
(/.f64 (exp.f64 x) (-.f64 (exp.f64 x) 1)) |
(/.f64 (exp.f64 x) (expm1.f64 x)) |
(/.f64 (exp.f64 x) (-.f64 (exp.f64 x) 1)) |
(/.f64 (exp.f64 x) (expm1.f64 x)) |
(/.f64 (exp.f64 x) (-.f64 (exp.f64 x) 1)) |
(/.f64 (exp.f64 x) (expm1.f64 x)) |
(/.f64 (exp.f64 x) (-.f64 (exp.f64 x) 1)) |
(/.f64 (exp.f64 x) (expm1.f64 x)) |
x |
(+.f64 (*.f64 1/2 (pow.f64 x 2)) x) |
(fma.f64 1/2 (*.f64 x x) x) |
(*.f64 x (fma.f64 x 1/2 1)) |
(fma.f64 x (*.f64 x 1/2) x) |
(+.f64 (*.f64 1/6 (pow.f64 x 3)) (+.f64 (*.f64 1/2 (pow.f64 x 2)) x)) |
(fma.f64 1/6 (pow.f64 x 3) (fma.f64 1/2 (*.f64 x x) x)) |
(fma.f64 (pow.f64 x 3) 1/6 (fma.f64 1/2 (*.f64 x x) x)) |
(fma.f64 x (*.f64 x 1/2) (fma.f64 (pow.f64 x 3) 1/6 x)) |
(fma.f64 x (*.f64 x (fma.f64 x 1/6 1/2)) x) |
(fma.f64 (*.f64 x x) (fma.f64 x 1/6 1/2) x) |
(+.f64 (*.f64 1/6 (pow.f64 x 3)) (+.f64 (*.f64 1/2 (pow.f64 x 2)) (+.f64 (*.f64 1/24 (pow.f64 x 4)) x))) |
(fma.f64 1/6 (pow.f64 x 3) (fma.f64 1/2 (*.f64 x x) (fma.f64 1/24 (pow.f64 x 4) x))) |
(fma.f64 (pow.f64 x 3) 1/6 (fma.f64 1/2 (*.f64 x x) (fma.f64 1/24 (pow.f64 x 4) x))) |
(fma.f64 x (*.f64 x 1/2) (fma.f64 (pow.f64 x 3) 1/6 (fma.f64 1/24 (pow.f64 x 4) x))) |
(fma.f64 x (*.f64 x (fma.f64 x 1/6 1/2)) (fma.f64 1/24 (pow.f64 x 4) x)) |
(fma.f64 (*.f64 x x) (fma.f64 x 1/6 1/2) (fma.f64 1/24 (pow.f64 x 4) x)) |
(-.f64 (exp.f64 x) 1) |
(expm1.f64 x) |
(-.f64 (exp.f64 x) 1) |
(expm1.f64 x) |
(-.f64 (exp.f64 x) 1) |
(expm1.f64 x) |
(-.f64 (exp.f64 x) 1) |
(expm1.f64 x) |
(-.f64 (exp.f64 x) 1) |
(expm1.f64 x) |
(-.f64 (exp.f64 x) 1) |
(expm1.f64 x) |
(-.f64 (exp.f64 x) 1) |
(expm1.f64 x) |
(-.f64 (exp.f64 x) 1) |
(expm1.f64 x) |
4 alts after pruning (4 fresh and 0 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 66 | 4 | 70 |
| Fresh | 0 | 0 | 0 |
| Picked | 1 | 0 | 1 |
| Done | 0 | 0 | 0 |
| Total | 67 | 4 | 71 |
| Status | Error | Program |
|---|---|---|
| 20.7b | (+.f64 (/.f64 1 x) (fma.f64 x 1/12 1/2)) | |
| 20.7b | (+.f64 1/2 (/.f64 1 x)) | |
| 24.9b | (pow.f64 (sqrt.f64 (/.f64 (exp.f64 x) (expm1.f64 x))) 2) | |
| ▶ | 0.8b | (/.f64 (exp.f64 x) (log1p.f64 (expm1.f64 (expm1.f64 x)))) |
Compiled 758 to 358 computations (52.8% saved)
Found 2 expressions with local error:
| New | Error | Program |
|---|---|---|
| 0.0b | (expm1.f64 x) | |
| ✓ | 0.7b | (/.f64 (exp.f64 x) (log1p.f64 (expm1.f64 (expm1.f64 x)))) |
3 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 0.0ms | x | @ | 0 | (/.f64 (exp.f64 x) (log1p.f64 (expm1.f64 (expm1.f64 x)))) |
| 0.0ms | x | @ | inf | (/.f64 (exp.f64 x) (log1p.f64 (expm1.f64 (expm1.f64 x)))) |
| 0.0ms | x | @ | -inf | (/.f64 (exp.f64 x) (log1p.f64 (expm1.f64 (expm1.f64 x)))) |
| 1× | batch-egg-rewrite |
| 597× | pow1_binary64 |
| 552× | expm1-log1p-u_binary64 |
| 551× | add-log-exp_binary64 |
| 551× | log1p-expm1-u_binary64 |
| 537× | add-exp-log_binary64 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 7 | 8 |
| 1 | 121 | 8 |
| 2 | 1494 | 8 |
| 1× | node limit |
| Inputs |
|---|
(/.f64 (exp.f64 x) (log1p.f64 (expm1.f64 (expm1.f64 x)))) |
| Outputs |
|---|
((#(struct:change #<rule egg-rr> (2) ((x -.f64 (+.f64 1 (/.f64 (exp.f64 x) (expm1.f64 x))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (exp.f64 x) (/.f64 1 (expm1.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (exp.f64 x) (expm1.f64 x)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (/.f64 (exp.f64 x) (expm1.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (exp.f64 x)) 2) (*.f64 (cbrt.f64 (exp.f64 x)) (/.f64 1 (expm1.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (/.f64 (exp.f64 x) (expm1.f64 x))) (pow.f64 (cbrt.f64 (/.f64 (exp.f64 x) (expm1.f64 x))) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (/.f64 (exp.f64 x) (expm1.f64 x))) 2) (cbrt.f64 (/.f64 (exp.f64 x) (expm1.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (exp.f64 x)) (*.f64 (sqrt.f64 (exp.f64 x)) (/.f64 1 (expm1.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (/.f64 (exp.f64 x) (expm1.f64 x))) (sqrt.f64 (/.f64 (exp.f64 x) (expm1.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (neg.f64 (exp.f64 x)) (/.f64 1 (neg.f64 (expm1.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 1 (expm1.f64 x)) (exp.f64 x))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (pow.f64 (cbrt.f64 (exp.f64 x)) 2) 1) (/.f64 (cbrt.f64 (exp.f64 x)) (expm1.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (sqrt.f64 (exp.f64 x)) 1) (/.f64 (sqrt.f64 (exp.f64 x)) (expm1.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 1 (pow.f64 (cbrt.f64 (expm1.f64 x)) 2)) (/.f64 (exp.f64 x) (cbrt.f64 (expm1.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (pow.f64 (cbrt.f64 (exp.f64 x)) 2) (pow.f64 (cbrt.f64 (expm1.f64 x)) 2)) (cbrt.f64 (/.f64 (exp.f64 x) (expm1.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (sqrt.f64 (exp.f64 x)) (pow.f64 (cbrt.f64 (expm1.f64 x)) 2)) (/.f64 (sqrt.f64 (exp.f64 x)) (cbrt.f64 (expm1.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 1 (sqrt.f64 (expm1.f64 x))) (/.f64 (exp.f64 x) (sqrt.f64 (expm1.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (pow.f64 (cbrt.f64 (exp.f64 x)) 2) (sqrt.f64 (expm1.f64 x))) (/.f64 (cbrt.f64 (exp.f64 x)) (sqrt.f64 (expm1.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (/.f64 (exp.f64 x) (expm1.f64 x)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (/.f64 (exp.f64 x) (expm1.f64 x)) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (/.f64 (exp.f64 x) (expm1.f64 x))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (/.f64 (exp.f64 x) (expm1.f64 x))) 2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (/.f64 (expm1.f64 x) (exp.f64 x)) -1)))) (#(struct:change #<rule egg-rr> (2) ((x neg.f64 (/.f64 (exp.f64 x) (neg.f64 (expm1.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (/.f64 (exp.f64 x) (expm1.f64 x)) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (/.f64 (exp.f64 x) (expm1.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (/.f64 (exp.f64 x) (expm1.f64 x)) 3))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (/.f64 (pow.f64 (exp.f64 x) 3) (pow.f64 (expm1.f64 x) 3)))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (/.f64 (exp.f64 x) (expm1.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (-.f64 x (log.f64 (expm1.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (/.f64 (exp.f64 x) (expm1.f64 x)))))))) |
| 1× | egg-herbie |
| 567× | sqr-pow_binary64 |
| 438× | associate-*l*_binary64 |
| 362× | unswap-sqr_binary64 |
| 313× | pow-sqr_binary64 |
| 311× | fma-def_binary64 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 19 | 104 |
| 1 | 48 | 104 |
| 2 | 94 | 104 |
| 3 | 215 | 104 |
| 4 | 331 | 104 |
| 5 | 568 | 104 |
| 6 | 1456 | 104 |
| 7 | 2283 | 104 |
| 8 | 2369 | 104 |
| 9 | 2502 | 104 |
| 10 | 2660 | 104 |
| 11 | 2890 | 104 |
| 12 | 3212 | 104 |
| 13 | 3633 | 104 |
| 14 | 4133 | 104 |
| 15 | 4728 | 104 |
| 1× | node limit |
| Inputs |
|---|
(/.f64 1 x) |
(+.f64 1/2 (/.f64 1 x)) |
(+.f64 1/2 (+.f64 (*.f64 1/12 x) (/.f64 1 x))) |
(+.f64 1/2 (+.f64 (*.f64 -1/720 (pow.f64 x 3)) (+.f64 (*.f64 1/12 x) (/.f64 1 x)))) |
(/.f64 (exp.f64 x) (-.f64 (exp.f64 x) 1)) |
(/.f64 (exp.f64 x) (-.f64 (exp.f64 x) 1)) |
(/.f64 (exp.f64 x) (-.f64 (exp.f64 x) 1)) |
(/.f64 (exp.f64 x) (-.f64 (exp.f64 x) 1)) |
(/.f64 (exp.f64 x) (-.f64 (exp.f64 x) 1)) |
(/.f64 (exp.f64 x) (-.f64 (exp.f64 x) 1)) |
(/.f64 (exp.f64 x) (-.f64 (exp.f64 x) 1)) |
(/.f64 (exp.f64 x) (-.f64 (exp.f64 x) 1)) |
| Outputs |
|---|
(/.f64 1 x) |
(+.f64 1/2 (/.f64 1 x)) |
(+.f64 (/.f64 1 x) 1/2) |
(+.f64 1/2 (+.f64 (*.f64 1/12 x) (/.f64 1 x))) |
(+.f64 1/2 (fma.f64 1/12 x (/.f64 1 x))) |
(+.f64 1/2 (fma.f64 x 1/12 (/.f64 1 x))) |
(+.f64 (/.f64 1 x) (fma.f64 x 1/12 1/2)) |
(+.f64 1/2 (+.f64 (*.f64 -1/720 (pow.f64 x 3)) (+.f64 (*.f64 1/12 x) (/.f64 1 x)))) |
(+.f64 1/2 (fma.f64 -1/720 (pow.f64 x 3) (fma.f64 1/12 x (/.f64 1 x)))) |
(+.f64 1/2 (fma.f64 -1/720 (pow.f64 x 3) (fma.f64 x 1/12 (/.f64 1 x)))) |
(+.f64 (fma.f64 x 1/12 (/.f64 1 x)) (fma.f64 -1/720 (pow.f64 x 3) 1/2)) |
(+.f64 (/.f64 1 x) (fma.f64 -1/720 (pow.f64 x 3) (fma.f64 x 1/12 1/2))) |
(+.f64 (/.f64 1 x) (fma.f64 x (fma.f64 x (*.f64 x -1/720) 1/12) 1/2)) |
(/.f64 (exp.f64 x) (-.f64 (exp.f64 x) 1)) |
(/.f64 (exp.f64 x) (expm1.f64 x)) |
(/.f64 (exp.f64 x) (-.f64 (exp.f64 x) 1)) |
(/.f64 (exp.f64 x) (expm1.f64 x)) |
(/.f64 (exp.f64 x) (-.f64 (exp.f64 x) 1)) |
(/.f64 (exp.f64 x) (expm1.f64 x)) |
(/.f64 (exp.f64 x) (-.f64 (exp.f64 x) 1)) |
(/.f64 (exp.f64 x) (expm1.f64 x)) |
(/.f64 (exp.f64 x) (-.f64 (exp.f64 x) 1)) |
(/.f64 (exp.f64 x) (expm1.f64 x)) |
(/.f64 (exp.f64 x) (-.f64 (exp.f64 x) 1)) |
(/.f64 (exp.f64 x) (expm1.f64 x)) |
(/.f64 (exp.f64 x) (-.f64 (exp.f64 x) 1)) |
(/.f64 (exp.f64 x) (expm1.f64 x)) |
(/.f64 (exp.f64 x) (-.f64 (exp.f64 x) 1)) |
(/.f64 (exp.f64 x) (expm1.f64 x)) |
4 alts after pruning (3 fresh and 1 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 70 | 0 | 70 |
| Fresh | 0 | 3 | 3 |
| Picked | 0 | 1 | 1 |
| Done | 0 | 0 | 0 |
| Total | 70 | 4 | 74 |
| Status | Error | Program |
|---|---|---|
| ▶ | 20.7b | (+.f64 (/.f64 1 x) (fma.f64 x 1/12 1/2)) |
| 20.7b | (+.f64 1/2 (/.f64 1 x)) | |
| 24.9b | (pow.f64 (sqrt.f64 (/.f64 (exp.f64 x) (expm1.f64 x))) 2) | |
| ✓ | 0.8b | (/.f64 (exp.f64 x) (log1p.f64 (expm1.f64 (expm1.f64 x)))) |
Compiled 810 to 409 computations (49.5% saved)
Found 2 expressions with local error:
| New | Error | Program |
|---|---|---|
| ✓ | 0.0b | (+.f64 (/.f64 1 x) (fma.f64 x 1/12 1/2)) |
| ✓ | 0.1b | (fma.f64 x 1/12 1/2) |
6 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 1.0ms | x | @ | 0 | (fma.f64 x 1/12 1/2) |
| 0.0ms | x | @ | -inf | (fma.f64 x 1/12 1/2) |
| 0.0ms | x | @ | inf | (fma.f64 x 1/12 1/2) |
| 0.0ms | x | @ | -inf | (+.f64 (/.f64 1 x) (fma.f64 x 1/12 1/2)) |
| 0.0ms | x | @ | 0 | (+.f64 (/.f64 1 x) (fma.f64 x 1/12 1/2)) |
| 1× | batch-egg-rewrite |
| 842× | pow1_binary64 |
| 790× | log1p-expm1-u_binary64 |
| 790× | expm1-log1p-u_binary64 |
| 85× | add-sqr-sqrt_binary64 |
| 80× | add-cbrt-cube_binary64 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 8 | 16 |
| 1 | 172 | 16 |
| 2 | 2127 | 16 |
| 1× | node limit |
| Inputs |
|---|
(fma.f64 x 1/12 1/2) |
(+.f64 (/.f64 1 x) (fma.f64 x 1/12 1/2)) |
| Outputs |
|---|
((#(struct:change #<rule egg-rr> (2) ((x +.f64 1/2 (*.f64 x 1/12))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 x 1/12) 1/2)))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 (*.f64 x 1/12) 1) 1/2)))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (exp.f64 (log1p.f64 (fma.f64 x 1/12 1/2))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (fma.f64 x 1/12 1/2) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (fma.f64 x 1/12 1/2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (fma.f64 x 1/12 1/2)) (pow.f64 (cbrt.f64 (fma.f64 x 1/12 1/2)) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (fma.f64 x 1/12 1/2)) 2) (cbrt.f64 (fma.f64 x 1/12 1/2)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (fma.f64 x 1/12 1/2)) (sqrt.f64 (fma.f64 x 1/12 1/2)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 (pow.f64 (*.f64 x 1/12) 3) 1/8) (+.f64 (*.f64 (*.f64 x 1/12) (*.f64 x 1/12)) (-.f64 1/4 (*.f64 (*.f64 x 1/12) 1/2))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (*.f64 (*.f64 x 1/12) (*.f64 x 1/12)) 1/4) (-.f64 (*.f64 x 1/12) 1/2))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (fma.f64 x 1/12 1/2) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (fma.f64 x 1/12 1/2)) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (fma.f64 x 1/12 1/2)) 2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (fma.f64 x 1/12 1/2) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (fma.f64 x 1/12 1/2) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (fma.f64 x 1/12 1/2)))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (+.f64 1 (expm1.f64 (fma.f64 x 1/12 1/2))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (fma.f64 x 1/12 1/2) 3))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (fma.f64 x 1/12 1/2)))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (fma.f64 x 1/12 1/2)))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (log.f64 (fma.f64 x 1/12 1/2)) 1))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (fma.f64 x 1/12 1/2))))))) |
((#(struct:change #<rule egg-rr> (2) ((x -.f64 (exp.f64 (log1p.f64 (+.f64 (fma.f64 x 1/12 1/2) (/.f64 1 x)))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (/.f64 (pow.f64 x -2) (-.f64 (/.f64 1 x) (fma.f64 x 1/12 1/2))) (/.f64 (pow.f64 (fma.f64 x 1/12 1/2) 2) (-.f64 (/.f64 1 x) (fma.f64 x 1/12 1/2))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (+.f64 (fma.f64 x 1/12 1/2) (/.f64 1 x)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (+.f64 (fma.f64 x 1/12 1/2) (/.f64 1 x)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (+.f64 (fma.f64 x 1/12 1/2) (/.f64 1 x))) (pow.f64 (cbrt.f64 (+.f64 (fma.f64 x 1/12 1/2) (/.f64 1 x))) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (+.f64 (fma.f64 x 1/12 1/2) (/.f64 1 x))) 2) (cbrt.f64 (+.f64 (fma.f64 x 1/12 1/2) (/.f64 1 x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (+.f64 (fma.f64 x 1/12 1/2) (/.f64 1 x))) (sqrt.f64 (+.f64 (fma.f64 x 1/12 1/2) (/.f64 1 x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (+.f64 (pow.f64 x -3) (pow.f64 (fma.f64 x 1/12 1/2) 3)) (/.f64 1 (+.f64 (pow.f64 x -2) (-.f64 (pow.f64 (fma.f64 x 1/12 1/2) 2) (/.f64 (fma.f64 x 1/12 1/2) x)))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (-.f64 (pow.f64 x -2) (pow.f64 (fma.f64 x 1/12 1/2) 2)) (/.f64 1 (-.f64 (/.f64 1 x) (fma.f64 x 1/12 1/2))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (/.f64 (+.f64 (pow.f64 x -2) (-.f64 (pow.f64 (fma.f64 x 1/12 1/2) 2) (/.f64 (fma.f64 x 1/12 1/2) x))) (+.f64 (pow.f64 x -3) (pow.f64 (fma.f64 x 1/12 1/2) 3))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (/.f64 (-.f64 (/.f64 1 x) (fma.f64 x 1/12 1/2)) (-.f64 (pow.f64 x -2) (pow.f64 (fma.f64 x 1/12 1/2) 2))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 (pow.f64 x -3) (pow.f64 (fma.f64 x 1/12 1/2) 3)) (+.f64 (pow.f64 x -2) (-.f64 (pow.f64 (fma.f64 x 1/12 1/2) 2) (/.f64 (fma.f64 x 1/12 1/2) x))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 (pow.f64 x -3) (pow.f64 (fma.f64 x 1/12 1/2) 3)) (+.f64 (pow.f64 (fma.f64 x 1/12 1/2) 2) (-.f64 (pow.f64 x -2) (/.f64 (fma.f64 x 1/12 1/2) x))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (pow.f64 x -2) (pow.f64 (fma.f64 x 1/12 1/2) 2)) (-.f64 (/.f64 1 x) (fma.f64 x 1/12 1/2)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (+.f64 (pow.f64 x -3) (pow.f64 (fma.f64 x 1/12 1/2) 3))) (neg.f64 (+.f64 (pow.f64 x -2) (-.f64 (pow.f64 (fma.f64 x 1/12 1/2) 2) (/.f64 (fma.f64 x 1/12 1/2) x)))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (-.f64 (pow.f64 x -2) (pow.f64 (fma.f64 x 1/12 1/2) 2))) (neg.f64 (-.f64 (/.f64 1 x) (fma.f64 x 1/12 1/2))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (pow.f64 (fma.f64 x 1/12 1/2) 2) (pow.f64 x -2)) (-.f64 (fma.f64 x 1/12 1/2) (/.f64 1 x)))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (+.f64 (fma.f64 x 1/12 1/2) (/.f64 1 x)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (+.f64 (fma.f64 x 1/12 1/2) (/.f64 1 x)) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (+.f64 (fma.f64 x 1/12 1/2) (/.f64 1 x))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (+.f64 (fma.f64 x 1/12 1/2) (/.f64 1 x))) 2)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (+.f64 (fma.f64 x 1/12 1/2) (/.f64 1 x)) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (+.f64 (fma.f64 x 1/12 1/2) (/.f64 1 x))))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (+.f64 1 (expm1.f64 (+.f64 (fma.f64 x 1/12 1/2) (/.f64 1 x)))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (+.f64 (fma.f64 x 1/12 1/2) (/.f64 1 x)) 3))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (+.f64 (fma.f64 x 1/12 1/2) (/.f64 1 x))))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 1 (fma.f64 x 1/12 1/2) (/.f64 1 x))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 1 (/.f64 1 x) (fma.f64 x 1/12 1/2))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (pow.f64 (cbrt.f64 (fma.f64 x 1/12 1/2)) 2) (cbrt.f64 (fma.f64 x 1/12 1/2)) (/.f64 1 x))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (cbrt.f64 (pow.f64 x -2)) (cbrt.f64 (/.f64 1 x)) (fma.f64 x 1/12 1/2))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (sqrt.f64 (fma.f64 x 1/12 1/2)) (sqrt.f64 (fma.f64 x 1/12 1/2)) (/.f64 1 x))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (pow.f64 x -1/2) (pow.f64 x -1/2) (fma.f64 x 1/12 1/2))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (+.f64 (fma.f64 x 1/12 1/2) (/.f64 1 x))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (log.f64 (+.f64 (fma.f64 x 1/12 1/2) (/.f64 1 x))) 1))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (+.f64 (fma.f64 x 1/12 1/2) (/.f64 1 x)))))))) |
| 1× | egg-herbie |
| 6× | fma-def_binary64 |
| 5× | +-commutative_binary64 |
| 2× | associate-+r+_binary64 |
| 2× | associate-+l+_binary64 |
| 1× | *-commutative_binary64 |
Useful iterations: 1 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 13 | 171 |
| 1 | 23 | 149 |
| 2 | 28 | 149 |
| 3 | 30 | 149 |
| 1× | saturated |
| Inputs |
|---|
1/2 |
(+.f64 1/2 (*.f64 1/12 x)) |
(+.f64 1/2 (*.f64 1/12 x)) |
(+.f64 1/2 (*.f64 1/12 x)) |
(*.f64 1/12 x) |
(+.f64 1/2 (*.f64 1/12 x)) |
(+.f64 1/2 (*.f64 1/12 x)) |
(+.f64 1/2 (*.f64 1/12 x)) |
(*.f64 1/12 x) |
(+.f64 1/2 (*.f64 1/12 x)) |
(+.f64 1/2 (*.f64 1/12 x)) |
(+.f64 1/2 (*.f64 1/12 x)) |
(/.f64 1 x) |
(+.f64 1/2 (/.f64 1 x)) |
(+.f64 1/2 (+.f64 (*.f64 1/12 x) (/.f64 1 x))) |
(+.f64 1/2 (+.f64 (*.f64 1/12 x) (/.f64 1 x))) |
(*.f64 1/12 x) |
(+.f64 1/2 (*.f64 1/12 x)) |
(+.f64 1/2 (+.f64 (/.f64 1 x) (*.f64 1/12 x))) |
(+.f64 1/2 (+.f64 (/.f64 1 x) (*.f64 1/12 x))) |
(*.f64 1/12 x) |
(+.f64 1/2 (*.f64 1/12 x)) |
(+.f64 1/2 (+.f64 (/.f64 1 x) (*.f64 1/12 x))) |
(+.f64 1/2 (+.f64 (/.f64 1 x) (*.f64 1/12 x))) |
| Outputs |
|---|
1/2 |
(+.f64 1/2 (*.f64 1/12 x)) |
(fma.f64 1/12 x 1/2) |
(+.f64 1/2 (*.f64 1/12 x)) |
(fma.f64 1/12 x 1/2) |
(+.f64 1/2 (*.f64 1/12 x)) |
(fma.f64 1/12 x 1/2) |
(*.f64 1/12 x) |
(+.f64 1/2 (*.f64 1/12 x)) |
(fma.f64 1/12 x 1/2) |
(+.f64 1/2 (*.f64 1/12 x)) |
(fma.f64 1/12 x 1/2) |
(+.f64 1/2 (*.f64 1/12 x)) |
(fma.f64 1/12 x 1/2) |
(*.f64 1/12 x) |
(+.f64 1/2 (*.f64 1/12 x)) |
(fma.f64 1/12 x 1/2) |
(+.f64 1/2 (*.f64 1/12 x)) |
(fma.f64 1/12 x 1/2) |
(+.f64 1/2 (*.f64 1/12 x)) |
(fma.f64 1/12 x 1/2) |
(/.f64 1 x) |
(+.f64 1/2 (/.f64 1 x)) |
(+.f64 1/2 (+.f64 (*.f64 1/12 x) (/.f64 1 x))) |
(+.f64 1/2 (fma.f64 1/12 x (/.f64 1 x))) |
(+.f64 (fma.f64 1/12 x 1/2) (/.f64 1 x)) |
(+.f64 1/2 (+.f64 (*.f64 1/12 x) (/.f64 1 x))) |
(+.f64 1/2 (fma.f64 1/12 x (/.f64 1 x))) |
(+.f64 (fma.f64 1/12 x 1/2) (/.f64 1 x)) |
(*.f64 1/12 x) |
(+.f64 1/2 (*.f64 1/12 x)) |
(fma.f64 1/12 x 1/2) |
(+.f64 1/2 (+.f64 (/.f64 1 x) (*.f64 1/12 x))) |
(+.f64 1/2 (fma.f64 1/12 x (/.f64 1 x))) |
(+.f64 (fma.f64 1/12 x 1/2) (/.f64 1 x)) |
(+.f64 1/2 (+.f64 (/.f64 1 x) (*.f64 1/12 x))) |
(+.f64 1/2 (fma.f64 1/12 x (/.f64 1 x))) |
(+.f64 (fma.f64 1/12 x 1/2) (/.f64 1 x)) |
(*.f64 1/12 x) |
(+.f64 1/2 (*.f64 1/12 x)) |
(fma.f64 1/12 x 1/2) |
(+.f64 1/2 (+.f64 (/.f64 1 x) (*.f64 1/12 x))) |
(+.f64 1/2 (fma.f64 1/12 x (/.f64 1 x))) |
(+.f64 (fma.f64 1/12 x 1/2) (/.f64 1 x)) |
(+.f64 1/2 (+.f64 (/.f64 1 x) (*.f64 1/12 x))) |
(+.f64 1/2 (fma.f64 1/12 x (/.f64 1 x))) |
(+.f64 (fma.f64 1/12 x 1/2) (/.f64 1 x)) |
4 alts after pruning (2 fresh and 2 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 67 | 0 | 67 |
| Fresh | 0 | 2 | 2 |
| Picked | 0 | 1 | 1 |
| Done | 0 | 1 | 1 |
| Total | 67 | 4 | 71 |
| Status | Error | Program |
|---|---|---|
| ✓ | 20.7b | (+.f64 (/.f64 1 x) (fma.f64 x 1/12 1/2)) |
| ▶ | 20.7b | (+.f64 1/2 (/.f64 1 x)) |
| 24.9b | (pow.f64 (sqrt.f64 (/.f64 (exp.f64 x) (expm1.f64 x))) 2) | |
| ✓ | 0.8b | (/.f64 (exp.f64 x) (log1p.f64 (expm1.f64 (expm1.f64 x)))) |
Compiled 967 to 774 computations (20% saved)
Found 1 expressions with local error:
| New | Error | Program |
|---|---|---|
| ✓ | 0.0b | (+.f64 1/2 (/.f64 1 x)) |
3 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 0.0ms | x | @ | -inf | (+.f64 1/2 (/.f64 1 x)) |
| 0.0ms | x | @ | 0 | (+.f64 1/2 (/.f64 1 x)) |
| 0.0ms | x | @ | inf | (+.f64 1/2 (/.f64 1 x)) |
| 1× | batch-egg-rewrite |
| 628× | pow1_binary64 |
| 588× | add-log-exp_binary64 |
| 588× | log1p-expm1-u_binary64 |
| 588× | expm1-log1p-u_binary64 |
| 64× | add-sqr-sqrt_binary64 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 6 | 7 |
| 1 | 130 | 7 |
| 2 | 1589 | 7 |
| 1× | node limit |
| Inputs |
|---|
(+.f64 1/2 (/.f64 1 x)) |
| Outputs |
|---|
((#(struct:change #<rule egg-rr> (2) ((x -.f64 (exp.f64 (log1p.f64 (+.f64 1/2 (/.f64 1 x)))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (/.f64 1/4 (-.f64 1/2 (/.f64 1 x))) (/.f64 (pow.f64 x -2) (-.f64 1/2 (/.f64 1 x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (+.f64 1/2 (/.f64 1 x)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (+.f64 1/2 (/.f64 1 x)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (+.f64 1/2 (/.f64 1 x))) (cbrt.f64 (pow.f64 (+.f64 1/2 (/.f64 1 x)) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (pow.f64 (+.f64 1/2 (/.f64 1 x)) 2)) (cbrt.f64 (+.f64 1/2 (/.f64 1 x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (+.f64 1/2 (/.f64 1 x))) (sqrt.f64 (+.f64 1/2 (/.f64 1 x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (+.f64 1/8 (pow.f64 x -3)) (/.f64 1 (+.f64 1/4 (-.f64 (pow.f64 x -2) (/.f64 1/2 x)))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (-.f64 1/4 (pow.f64 x -2)) (/.f64 1 (-.f64 1/2 (/.f64 1 x))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (/.f64 (+.f64 1/4 (-.f64 (pow.f64 x -2) (/.f64 1/2 x))) (+.f64 1/8 (pow.f64 x -3))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (/.f64 (-.f64 1/2 (/.f64 1 x)) (-.f64 1/4 (pow.f64 x -2))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 1/8 (pow.f64 x -3)) (+.f64 1/4 (-.f64 (pow.f64 x -2) (/.f64 1/2 x))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 1/8 (pow.f64 x -3)) (+.f64 (pow.f64 x -2) (-.f64 1/4 (/.f64 1/2 x))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 1/4 (pow.f64 x -2)) (-.f64 1/2 (/.f64 1 x)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (+.f64 1/8 (pow.f64 x -3))) (neg.f64 (+.f64 1/4 (-.f64 (pow.f64 x -2) (/.f64 1/2 x)))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (-.f64 1/4 (pow.f64 x -2))) (neg.f64 (-.f64 1/2 (/.f64 1 x))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (pow.f64 x -2) 1/4) (-.f64 (/.f64 1 x) 1/2))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (+.f64 1/2 (/.f64 1 x)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (+.f64 1/2 (/.f64 1 x)) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (+.f64 1/2 (/.f64 1 x))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (+.f64 1/2 (/.f64 1 x))) 2)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (+.f64 1/2 (/.f64 1 x)) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (+.f64 1/2 (/.f64 1 x))))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (+.f64 1 (expm1.f64 (+.f64 1/2 (/.f64 1 x)))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (+.f64 1/2 (/.f64 1 x)) 3))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (+.f64 1/2 (/.f64 1 x))))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 1 (/.f64 1 x) 1/2)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (cbrt.f64 (pow.f64 x -2)) (/.f64 1 (cbrt.f64 x)) 1/2)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (pow.f64 x -1/2) (pow.f64 x -1/2) 1/2)))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (+.f64 1/2 (/.f64 1 x))))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (+.f64 1/2 (/.f64 1 x)))))))) |
| 1× | egg-herbie |
| 1× | 1-exp_binary64 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 5 | 6 |
| 1 | 7 | 6 |
| 1× | saturated |
| Inputs |
|---|
(/.f64 1 x) |
1/2 |
1/2 |
| Outputs |
|---|
(/.f64 1 x) |
1/2 |
1/2 |
4 alts after pruning (2 fresh and 2 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 32 | 1 | 33 |
| Fresh | 0 | 1 | 1 |
| Picked | 1 | 0 | 1 |
| Done | 0 | 2 | 2 |
| Total | 33 | 4 | 37 |
| Status | Error | Program |
|---|---|---|
| 21.5b | (pow.f64 (cbrt.f64 (+.f64 1/2 (/.f64 1 x))) 3) | |
| 24.9b | (pow.f64 (sqrt.f64 (/.f64 (exp.f64 x) (expm1.f64 x))) 2) | |
| ✓ | 20.7b | (+.f64 (/.f64 1 x) (fma.f64 x 1/12 1/2)) |
| ✓ | 0.8b | (/.f64 (exp.f64 x) (log1p.f64 (expm1.f64 (expm1.f64 x)))) |
Compiled 374 to 313 computations (16.3% saved)
Total 0.2b remaining (37.7%)
Threshold costs 0.2b (37.7%)
Compiled 287 to 147 computations (48.8% saved)
| 1× | egg-herbie |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 7 | 12 |
| 1× | saturated |
| Inputs |
|---|
(/.f64 (exp.f64 x) (log1p.f64 (expm1.f64 (expm1.f64 x)))) |
| Outputs |
|---|
(/.f64 (exp.f64 x) (log1p.f64 (expm1.f64 (expm1.f64 x)))) |
| 1× | fuel |
Compiled 51 to 40 computations (21.6% saved)
Loading profile data...