Time bar (total: 9.1s)
| 1× | search |
| Probability | Valid | Unknown | Precondition | Infinite | Domain | Can't | Iter |
|---|---|---|---|---|---|---|---|
| 0% | 0% | 99.9% | 0.1% | 0% | 0% | 0% | 0 |
| 0% | 0% | 99.9% | 0.1% | 0% | 0% | 0% | 1 |
| 0% | 0% | 99.9% | 0.1% | 0% | 0% | 0% | 2 |
| 0% | 0% | 99.9% | 0.1% | 0% | 0% | 0% | 3 |
| 0% | 0% | 99.9% | 0.1% | 0% | 0% | 0% | 4 |
| 50% | 50% | 50% | 0.1% | 0% | 0% | 0% | 5 |
| 50% | 50% | 50% | 0.1% | 0% | 0% | 0% | 6 |
| 57.1% | 50% | 37.5% | 0.1% | 12.5% | 0% | 0% | 7 |
| 57.1% | 50% | 37.5% | 0.1% | 12.5% | 0% | 0% | 8 |
| 61.5% | 50% | 31.2% | 0.1% | 18.7% | 0% | 0% | 9 |
| 61.5% | 50% | 31.2% | 0.1% | 18.7% | 0% | 0% | 10 |
| 64% | 50% | 28.1% | 0.1% | 21.9% | 0% | 0% | 11 |
| 64% | 50% | 28.1% | 0.1% | 21.9% | 0% | 0% | 12 |
Compiled 14 to 11 computations (21.4% saved)
| 1.5s | 2091× | body | 1024 | valid |
| 1.0s | 1990× | body | 1024 | infinite |
| 915.0ms | 5153× | body | 256 | valid |
| 324.0ms | 1061× | body | 512 | infinite |
| 320.0ms | 1007× | body | 512 | valid |
| 278.0ms | 1522× | body | 256 | infinite |
| 5.0ms | 5× | body | 2048 | valid |
| 2× | egg-herbie |
| 748× | times-frac_binary64 |
| 628× | fma-def_binary64 |
| 384× | sqr-pow_binary64 |
| 320× | unswap-sqr_binary64 |
| 302× | associate-*l*_binary64 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 18 | 36 |
| 1 | 49 | 36 |
| 2 | 131 | 36 |
| 3 | 255 | 34 |
| 4 | 372 | 34 |
| 5 | 669 | 34 |
| 6 | 1531 | 34 |
| 7 | 2660 | 34 |
| 8 | 3812 | 34 |
| 9 | 4558 | 34 |
| 10 | 5152 | 34 |
| 11 | 6060 | 34 |
| 12 | 7567 | 34 |
| 0 | 2 | 2 |
| 1× | saturated |
| 1× | node limit |
| Inputs |
|---|
0 |
1 |
| Outputs |
|---|
0 |
1 |
| Inputs |
|---|
(*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))) |
(*.f64 (*.f64 1/2 (cos.f64 im)) (+.f64 (exp.f64 (neg.f64 re)) (exp.f64 re))) |
| Outputs |
|---|
(*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))) |
(*.f64 (cos.f64 re) (*.f64 1/2 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))) |
(*.f64 (cos.f64 re) (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im)))) |
(*.f64 (*.f64 1/2 (cos.f64 im)) (+.f64 (exp.f64 (neg.f64 re)) (exp.f64 re))) |
(*.f64 1/2 (*.f64 (cos.f64 im) (+.f64 (exp.f64 (neg.f64 re)) (exp.f64 re)))) |
(*.f64 (cos.f64 im) (fma.f64 1/2 (exp.f64 re) (/.f64 1/2 (exp.f64 re)))) |
Compiled 15 to 12 computations (20% saved)
| 1× | egg-herbie |
| 573× | fma-def_binary64 |
| 530× | associate-/l*_binary64 |
| 430× | unswap-sqr_binary64 |
| 374× | times-frac_binary64 |
| 340× | associate-/r/_binary64 |
Useful iterations: 3 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 11 | 18 |
| 1 | 28 | 18 |
| 2 | 70 | 18 |
| 3 | 132 | 17 |
| 4 | 192 | 17 |
| 5 | 346 | 17 |
| 6 | 780 | 17 |
| 7 | 1351 | 17 |
| 8 | 3967 | 17 |
| 9 | 4490 | 17 |
| 10 | 5461 | 17 |
| 11 | 6024 | 17 |
| 12 | 7058 | 17 |
| 1× | node limit |
| Inputs |
|---|
(*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))) |
| Outputs |
|---|
(*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))) |
(*.f64 (cos.f64 re) (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im)))) |
Compiled 24 to 15 computations (37.5% saved)
2 alts after pruning (2 fresh and 0 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 1 | 1 | 2 |
| Fresh | 0 | 1 | 1 |
| Picked | 0 | 0 | 0 |
| Done | 0 | 0 | 0 |
| Total | 1 | 2 | 3 |
| Status | Error | Program |
|---|---|---|
| ▶ | 0.0b | (*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))) |
Compiled 13 to 10 computations (23.1% saved)
Found 2 expressions with local error:
| New | Error | Program |
|---|---|---|
| ✓ | 0.0b | (*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))) |
| ✓ | 0.0b | (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)) |
Compiled 35 to 13 computations (62.9% saved)
9 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 3.0ms | im | @ | inf | (*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))) |
| 2.0ms | re | @ | 0 | (*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))) |
| 2.0ms | re | @ | inf | (*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))) |
| 1.0ms | re | @ | -inf | (*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))) |
| 1.0ms | im | @ | -inf | (*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))) |
| 2× | egg-rewrite-iter-limit |
| 2× | egg-rewrite |
| 1× | batch-egg-rewrite |
| 121× | add-sqr-sqrt_binary64 |
| 121× | add-sqr-sqrt_binary64 |
| 116× | *-un-lft-identity_binary64 |
| 116× | pow1_binary64 |
| 116× | *-un-lft-identity_binary64 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 11 | 28 |
| 1 | 233 | 28 |
| 2 | 3784 | 28 |
| 0 | 6 | 10 |
| 1 | 126 | 10 |
| 2 | 2082 | 10 |
| 0 | 6 | 10 |
| 0 | 11 | 18 |
| 1 | 233 | 18 |
| 2 | 3780 | 18 |
| 0 | 11 | 18 |
| 1× | iter limit |
| 1× | unsound |
| 1× | iter limit |
| 1× | unsound |
| 1× | unsound |
| Inputs |
|---|
(+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)) |
(*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))) |
| Outputs |
|---|
((#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 (cbrt.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))) (cbrt.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))) (cbrt.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))) (sqrt.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 (pow.f64 (exp.f64 (neg.f64 im)) 3) (pow.f64 (exp.f64 im) 3)) (+.f64 (*.f64 (exp.f64 (neg.f64 im)) (exp.f64 (neg.f64 im))) (-.f64 (*.f64 (exp.f64 im) (exp.f64 im)) (*.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (*.f64 (exp.f64 (neg.f64 im)) (exp.f64 (neg.f64 im))) (*.f64 (exp.f64 im) (exp.f64 im))) (-.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (*.f64 (*.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))))))) |
((#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 (exp.f64 (neg.f64 im)) (*.f64 1/2 (cos.f64 re))) (*.f64 (exp.f64 im) (*.f64 1/2 (cos.f64 re))))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 (*.f64 1/2 (cos.f64 re)) (exp.f64 (neg.f64 im))) (*.f64 (*.f64 1/2 (cos.f64 re)) (exp.f64 im)))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (*.f64 (*.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))) (*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))))) (*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))))))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))))))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))))))))) |
| 1× | egg-herbie |
| 613× | associate-+l+_binary64 |
| 607× | distribute-rgt-out_binary64 |
| 435× | distribute-lft-out_binary64 |
| 417× | associate-+r+_binary64 |
| 363× | *-commutative_binary64 |
Useful iterations: 4 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 64 | 669 |
| 1 | 190 | 606 |
| 2 | 609 | 570 |
| 3 | 2284 | 565 |
| 4 | 5021 | 563 |
| 5 | 7232 | 563 |
| 1× | node limit |
| Inputs |
|---|
2 |
(+.f64 2 (pow.f64 im 2)) |
(+.f64 2 (+.f64 (pow.f64 im 2) (*.f64 1/12 (pow.f64 im 4)))) |
(+.f64 2 (+.f64 (pow.f64 im 2) (+.f64 (*.f64 1/12 (pow.f64 im 4)) (*.f64 1/360 (pow.f64 im 6))))) |
(+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) |
(+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) |
(+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) |
(+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) |
(+.f64 (exp.f64 im) (exp.f64 (*.f64 -1 im))) |
(+.f64 (exp.f64 im) (exp.f64 (*.f64 -1 im))) |
(+.f64 (exp.f64 im) (exp.f64 (*.f64 -1 im))) |
(+.f64 (exp.f64 im) (exp.f64 (*.f64 -1 im))) |
(*.f64 1/2 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))) |
(+.f64 (*.f64 1/2 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))) (*.f64 -1/4 (*.f64 (pow.f64 re 2) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))))) |
(+.f64 (*.f64 1/2 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))) (+.f64 (*.f64 -1/4 (*.f64 (pow.f64 re 2) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) (*.f64 1/48 (*.f64 (pow.f64 re 4) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))))) |
(+.f64 (*.f64 -1/1440 (*.f64 (pow.f64 re 6) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) (+.f64 (*.f64 1/2 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))) (+.f64 (*.f64 -1/4 (*.f64 (pow.f64 re 2) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) (*.f64 1/48 (*.f64 (pow.f64 re 4) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))))))) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) |
(cos.f64 re) |
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (cos.f64 re)) |
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (+.f64 (cos.f64 re) (*.f64 1/24 (*.f64 (cos.f64 re) (pow.f64 im 4))))) |
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (+.f64 (cos.f64 re) (+.f64 (*.f64 1/24 (*.f64 (cos.f64 re) (pow.f64 im 4))) (*.f64 1/720 (*.f64 (cos.f64 re) (pow.f64 im 6)))))) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (*.f64 -1 im))))) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (*.f64 -1 im))))) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (*.f64 -1 im))))) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (*.f64 -1 im))))) |
| Outputs |
|---|
2 |
(+.f64 2 (pow.f64 im 2)) |
(+.f64 2 (*.f64 im im)) |
(fma.f64 im im 2) |
(+.f64 2 (+.f64 (pow.f64 im 2) (*.f64 1/12 (pow.f64 im 4)))) |
(+.f64 2 (+.f64 (*.f64 im im) (*.f64 1/12 (pow.f64 im 4)))) |
(+.f64 2 (fma.f64 im im (*.f64 1/12 (pow.f64 im 4)))) |
(fma.f64 im im (fma.f64 1/12 (pow.f64 im 4) 2)) |
(+.f64 2 (+.f64 (pow.f64 im 2) (+.f64 (*.f64 1/12 (pow.f64 im 4)) (*.f64 1/360 (pow.f64 im 6))))) |
(+.f64 2 (+.f64 (*.f64 im im) (fma.f64 1/12 (pow.f64 im 4) (*.f64 1/360 (pow.f64 im 6))))) |
(+.f64 2 (fma.f64 im im (fma.f64 1/12 (pow.f64 im 4) (*.f64 1/360 (pow.f64 im 6))))) |
(+.f64 (fma.f64 1/12 (pow.f64 im 4) (*.f64 im im)) (fma.f64 1/360 (pow.f64 im 6) 2)) |
(+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) |
(+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) |
(+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) |
(+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) |
(+.f64 (exp.f64 im) (exp.f64 (*.f64 -1 im))) |
(+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) |
(+.f64 (exp.f64 im) (exp.f64 (*.f64 -1 im))) |
(+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) |
(+.f64 (exp.f64 im) (exp.f64 (*.f64 -1 im))) |
(+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) |
(+.f64 (exp.f64 im) (exp.f64 (*.f64 -1 im))) |
(+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) |
(*.f64 1/2 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))) |
(*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) 1/2) |
(fma.f64 (exp.f64 im) 1/2 (/.f64 1/2 (exp.f64 im))) |
(+.f64 (*.f64 1/2 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))) (*.f64 -1/4 (*.f64 (pow.f64 re 2) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))))) |
(fma.f64 1/2 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (*.f64 -1/4 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (*.f64 re re)))) |
(*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (+.f64 1/2 (*.f64 -1/4 (*.f64 re re)))) |
(*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (fma.f64 (*.f64 -1/4 re) re 1/2)) |
(*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (fma.f64 -1/4 (*.f64 re re) 1/2)) |
(+.f64 (*.f64 1/2 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))) (+.f64 (*.f64 -1/4 (*.f64 (pow.f64 re 2) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) (*.f64 1/48 (*.f64 (pow.f64 re 4) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))))) |
(fma.f64 1/2 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (fma.f64 -1/4 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (*.f64 re re)) (*.f64 1/48 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (pow.f64 re 4))))) |
(fma.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) 1/2 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (+.f64 (*.f64 -1/4 (*.f64 re re)) (*.f64 1/48 (pow.f64 re 4))))) |
(*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (+.f64 1/2 (fma.f64 1/48 (pow.f64 re 4) (*.f64 -1/4 (*.f64 re re))))) |
(+.f64 (*.f64 -1/1440 (*.f64 (pow.f64 re 6) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) (+.f64 (*.f64 1/2 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))) (+.f64 (*.f64 -1/4 (*.f64 (pow.f64 re 2) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) (*.f64 1/48 (*.f64 (pow.f64 re 4) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))))))) |
(fma.f64 -1/1440 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (pow.f64 re 6)) (fma.f64 1/2 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (fma.f64 -1/4 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (*.f64 re re)) (*.f64 1/48 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (pow.f64 re 4)))))) |
(+.f64 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (+.f64 (*.f64 -1/4 (*.f64 re re)) (*.f64 1/48 (pow.f64 re 4)))) (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (+.f64 (*.f64 -1/1440 (pow.f64 re 6)) 1/2))) |
(*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (+.f64 (fma.f64 1/48 (pow.f64 re 4) (*.f64 -1/4 (*.f64 re re))) (fma.f64 -1/1440 (pow.f64 re 6) 1/2))) |
(*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (+.f64 (fma.f64 -1/1440 (pow.f64 re 6) 1/2) (fma.f64 1/48 (pow.f64 re 4) (*.f64 -1/4 (*.f64 re re))))) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) |
(*.f64 1/2 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (cos.f64 re))) |
(*.f64 (fma.f64 (exp.f64 im) 1/2 (/.f64 1/2 (exp.f64 im))) (cos.f64 re)) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) |
(*.f64 1/2 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (cos.f64 re))) |
(*.f64 (fma.f64 (exp.f64 im) 1/2 (/.f64 1/2 (exp.f64 im))) (cos.f64 re)) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) |
(*.f64 1/2 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (cos.f64 re))) |
(*.f64 (fma.f64 (exp.f64 im) 1/2 (/.f64 1/2 (exp.f64 im))) (cos.f64 re)) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) |
(*.f64 1/2 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (cos.f64 re))) |
(*.f64 (fma.f64 (exp.f64 im) 1/2 (/.f64 1/2 (exp.f64 im))) (cos.f64 re)) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) |
(*.f64 1/2 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (cos.f64 re))) |
(*.f64 (fma.f64 (exp.f64 im) 1/2 (/.f64 1/2 (exp.f64 im))) (cos.f64 re)) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) |
(*.f64 1/2 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (cos.f64 re))) |
(*.f64 (fma.f64 (exp.f64 im) 1/2 (/.f64 1/2 (exp.f64 im))) (cos.f64 re)) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) |
(*.f64 1/2 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (cos.f64 re))) |
(*.f64 (fma.f64 (exp.f64 im) 1/2 (/.f64 1/2 (exp.f64 im))) (cos.f64 re)) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) |
(*.f64 1/2 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (cos.f64 re))) |
(*.f64 (fma.f64 (exp.f64 im) 1/2 (/.f64 1/2 (exp.f64 im))) (cos.f64 re)) |
(cos.f64 re) |
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (cos.f64 re)) |
(fma.f64 1/2 (*.f64 (*.f64 im im) (cos.f64 re)) (cos.f64 re)) |
(fma.f64 (*.f64 1/2 (cos.f64 re)) (*.f64 im im) (cos.f64 re)) |
(*.f64 (+.f64 (*.f64 im (*.f64 im 1/2)) 1) (cos.f64 re)) |
(fma.f64 (*.f64 im im) (*.f64 1/2 (cos.f64 re)) (cos.f64 re)) |
(*.f64 (cos.f64 re) (+.f64 1 (*.f64 im (*.f64 im 1/2)))) |
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (+.f64 (cos.f64 re) (*.f64 1/24 (*.f64 (cos.f64 re) (pow.f64 im 4))))) |
(fma.f64 1/2 (*.f64 (*.f64 im im) (cos.f64 re)) (+.f64 (cos.f64 re) (*.f64 1/24 (*.f64 (pow.f64 im 4) (cos.f64 re))))) |
(fma.f64 1/2 (*.f64 im (*.f64 im (cos.f64 re))) (fma.f64 1/24 (*.f64 (pow.f64 im 4) (cos.f64 re)) (cos.f64 re))) |
(+.f64 (cos.f64 re) (*.f64 (cos.f64 re) (+.f64 (*.f64 im (*.f64 im 1/2)) (*.f64 (pow.f64 im 4) 1/24)))) |
(*.f64 (cos.f64 re) (+.f64 (+.f64 1 (*.f64 im (*.f64 im 1/2))) (*.f64 (pow.f64 im 4) 1/24))) |
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (+.f64 (cos.f64 re) (+.f64 (*.f64 1/24 (*.f64 (cos.f64 re) (pow.f64 im 4))) (*.f64 1/720 (*.f64 (cos.f64 re) (pow.f64 im 6)))))) |
(+.f64 (fma.f64 1/2 (*.f64 (*.f64 im im) (cos.f64 re)) (cos.f64 re)) (fma.f64 1/24 (*.f64 (pow.f64 im 4) (cos.f64 re)) (*.f64 1/720 (*.f64 (pow.f64 im 6) (cos.f64 re))))) |
(+.f64 (fma.f64 (*.f64 1/2 (cos.f64 re)) (*.f64 im im) (cos.f64 re)) (fma.f64 1/24 (*.f64 (pow.f64 im 4) (cos.f64 re)) (*.f64 (pow.f64 im 6) (*.f64 (cos.f64 re) 1/720)))) |
(+.f64 (*.f64 (+.f64 (*.f64 im (*.f64 im 1/2)) 1) (cos.f64 re)) (*.f64 (cos.f64 re) (+.f64 (*.f64 (pow.f64 im 4) 1/24) (*.f64 (pow.f64 im 6) 1/720)))) |
(+.f64 (cos.f64 re) (*.f64 (cos.f64 re) (+.f64 (+.f64 (*.f64 (pow.f64 im 6) 1/720) (*.f64 im (*.f64 im 1/2))) (*.f64 (pow.f64 im 4) 1/24)))) |
(*.f64 (cos.f64 re) (+.f64 1 (+.f64 (+.f64 (*.f64 (pow.f64 im 6) 1/720) (*.f64 im (*.f64 im 1/2))) (*.f64 (pow.f64 im 4) 1/24)))) |
(*.f64 (cos.f64 re) (+.f64 1 (+.f64 (*.f64 im (+.f64 (*.f64 im 1/2) (*.f64 1/24 (pow.f64 im 3)))) (*.f64 (pow.f64 im 6) 1/720)))) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) |
(*.f64 1/2 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (cos.f64 re))) |
(*.f64 (fma.f64 (exp.f64 im) 1/2 (/.f64 1/2 (exp.f64 im))) (cos.f64 re)) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) |
(*.f64 1/2 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (cos.f64 re))) |
(*.f64 (fma.f64 (exp.f64 im) 1/2 (/.f64 1/2 (exp.f64 im))) (cos.f64 re)) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) |
(*.f64 1/2 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (cos.f64 re))) |
(*.f64 (fma.f64 (exp.f64 im) 1/2 (/.f64 1/2 (exp.f64 im))) (cos.f64 re)) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) |
(*.f64 1/2 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (cos.f64 re))) |
(*.f64 (fma.f64 (exp.f64 im) 1/2 (/.f64 1/2 (exp.f64 im))) (cos.f64 re)) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (*.f64 -1 im))))) |
(*.f64 1/2 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (cos.f64 re))) |
(*.f64 (fma.f64 (exp.f64 im) 1/2 (/.f64 1/2 (exp.f64 im))) (cos.f64 re)) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (*.f64 -1 im))))) |
(*.f64 1/2 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (cos.f64 re))) |
(*.f64 (fma.f64 (exp.f64 im) 1/2 (/.f64 1/2 (exp.f64 im))) (cos.f64 re)) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (*.f64 -1 im))))) |
(*.f64 1/2 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (cos.f64 re))) |
(*.f64 (fma.f64 (exp.f64 im) 1/2 (/.f64 1/2 (exp.f64 im))) (cos.f64 re)) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (*.f64 -1 im))))) |
(*.f64 1/2 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (cos.f64 re))) |
(*.f64 (fma.f64 (exp.f64 im) 1/2 (/.f64 1/2 (exp.f64 im))) (cos.f64 re)) |
Compiled 786 to 356 computations (54.7% saved)
7 alts after pruning (6 fresh and 1 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 40 | 6 | 46 |
| Fresh | 0 | 0 | 0 |
| Picked | 0 | 1 | 1 |
| Done | 0 | 0 | 0 |
| Total | 40 | 7 | 47 |
| Status | Error | Program |
|---|---|---|
| ✓ | 0.0b | (*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))) |
| ▶ | 0.7b | (*.f64 (cos.f64 re) (+.f64 1 (*.f64 im (*.f64 im 1/2)))) |
| ▶ | 1.4b | (*.f64 (*.f64 1/2 (cos.f64 re)) (expm1.f64 (log1p.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))))) |
| ▶ | 0.9b | (cos.f64 re) |
| ▶ | 0.7b | (*.f64 (cos.f64 re) (+.f64 (+.f64 1 (*.f64 im (*.f64 im 1/2))) (*.f64 (pow.f64 im 4) 1/24))) |
| 1.1b | (*.f64 (*.f64 1/2 (cos.f64 re)) (*.f64 (sqrt.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))) (sqrt.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))))) | |
| ▶ | 26.3b | (*.f64 1/2 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))) |
Compiled 175 to 126 computations (28% saved)
Found 2 expressions with local error:
| New | Error | Program |
|---|---|---|
| ✓ | 0.0b | (+.f64 (+.f64 1 (*.f64 im (*.f64 im 1/2))) (*.f64 (pow.f64 im 4) 1/24)) |
| ✓ | 0.1b | (*.f64 (pow.f64 im 4) 1/24) |
Compiled 62 to 44 computations (29% saved)
6 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 1.0ms | im | @ | 0 | (*.f64 (pow.f64 im 4) 1/24) |
| 1.0ms | im | @ | inf | (+.f64 (+.f64 1 (*.f64 im (*.f64 im 1/2))) (*.f64 (pow.f64 im 4) 1/24)) |
| 1.0ms | im | @ | inf | (*.f64 (pow.f64 im 4) 1/24) |
| 0.0ms | im | @ | 0 | (+.f64 (+.f64 1 (*.f64 im (*.f64 im 1/2))) (*.f64 (pow.f64 im 4) 1/24)) |
| 0.0ms | im | @ | -inf | (+.f64 (+.f64 1 (*.f64 im (*.f64 im 1/2))) (*.f64 (pow.f64 im 4) 1/24)) |
| 1× | batch-egg-rewrite |
| 624× | fma-def_binary64 |
| 545× | log-prod_binary64 |
| 347× | pow-prod-down_binary64 |
| 313× | pow2_binary64 |
| 247× | fma-neg_binary64 |
Useful iterations: 1 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 12 | 26 |
| 1 | 263 | 22 |
| 2 | 3319 | 22 |
| 1× | node limit |
| Inputs |
|---|
(*.f64 (pow.f64 im 4) 1/24) |
(+.f64 (+.f64 1 (*.f64 im (*.f64 im 1/2))) (*.f64 (pow.f64 im 4) 1/24)) |
| Outputs |
|---|
((#(struct:change #<rule egg-rr> (2) ((x +.f64 0 (*.f64 (pow.f64 im 4) 1/24))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (log.f64 (pow.f64 (cbrt.f64 (pow.f64 (exp.f64 1/24) (pow.f64 im 4))) 2)) (log.f64 (cbrt.f64 (pow.f64 (exp.f64 1/24) (pow.f64 im 4)))))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (log.f64 (sqrt.f64 (pow.f64 (exp.f64 1/24) (pow.f64 im 4)))) (log.f64 (sqrt.f64 (pow.f64 (exp.f64 1/24) (pow.f64 im 4)))))))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (exp.f64 (log1p.f64 (*.f64 (pow.f64 im 4) 1/24))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 (pow.f64 im 4) 1/24) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 1/576 (pow.f64 im 8)) 1/2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (*.f64 (pow.f64 im 4) 1/24)) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 (*.f64 im im) (sqrt.f64 1/24)) 2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 1/13824 (pow.f64 im 12)) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (*.f64 1/576 (pow.f64 im 8)))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (pow.f64 (exp.f64 1/24) (pow.f64 im 4)))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (+.f64 1 (expm1.f64 (*.f64 (pow.f64 im 4) 1/24))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (*.f64 1/13824 (pow.f64 im 12)))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (*.f64 (pow.f64 im 4) 1/24)))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (*.f64 (pow.f64 im 4) 1/24)))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (*.f64 (pow.f64 im 4) 1/24)))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (log.f64 (*.f64 (pow.f64 im 4) 1/24)) 1)))))) |
((#(struct:change #<rule egg-rr> (2) ((x -.f64 (exp.f64 (log1p.f64 (fma.f64 (pow.f64 im 4) 1/24 (fma.f64 im (*.f64 im 1/2) 1)))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (/.f64 (pow.f64 (fma.f64 im (*.f64 im 1/2) 1) 2) (+.f64 (fma.f64 im (*.f64 im 1/2) 1) (*.f64 -1/24 (pow.f64 im 4)))) (/.f64 (*.f64 1/576 (pow.f64 im 8)) (+.f64 (fma.f64 im (*.f64 im 1/2) 1) (*.f64 -1/24 (pow.f64 im 4)))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (fma.f64 (pow.f64 im 4) 1/24 (fma.f64 im (*.f64 im 1/2) 1)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (fma.f64 (pow.f64 im 4) 1/24 (fma.f64 im (*.f64 im 1/2) 1)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (fma.f64 (pow.f64 im 4) 1/24 (fma.f64 im (*.f64 im 1/2) 1))) (pow.f64 (cbrt.f64 (fma.f64 (pow.f64 im 4) 1/24 (fma.f64 im (*.f64 im 1/2) 1))) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (fma.f64 (pow.f64 im 4) 1/24 (fma.f64 im (*.f64 im 1/2) 1))) 2) (cbrt.f64 (fma.f64 (pow.f64 im 4) 1/24 (fma.f64 im (*.f64 im 1/2) 1))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (fma.f64 (pow.f64 im 4) 1/24 (fma.f64 im (*.f64 im 1/2) 1))) (sqrt.f64 (fma.f64 (pow.f64 im 4) 1/24 (fma.f64 im (*.f64 im 1/2) 1))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (fma.f64 1/13824 (pow.f64 im 12) (pow.f64 (fma.f64 im (*.f64 im 1/2) 1) 3)) (/.f64 1 (fma.f64 (*.f64 (pow.f64 im 4) 1/24) (-.f64 (*.f64 (pow.f64 im 4) 1/24) (fma.f64 im (*.f64 im 1/2) 1)) (pow.f64 (fma.f64 im (*.f64 im 1/2) 1) 2))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (-.f64 (pow.f64 (fma.f64 im (*.f64 im 1/2) 1) 2) (*.f64 1/576 (pow.f64 im 8))) (/.f64 1 (+.f64 (fma.f64 im (*.f64 im 1/2) 1) (*.f64 -1/24 (pow.f64 im 4)))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (/.f64 (fma.f64 (*.f64 (pow.f64 im 4) 1/24) (-.f64 (*.f64 (pow.f64 im 4) 1/24) (fma.f64 im (*.f64 im 1/2) 1)) (pow.f64 (fma.f64 im (*.f64 im 1/2) 1) 2)) (fma.f64 1/13824 (pow.f64 im 12) (pow.f64 (fma.f64 im (*.f64 im 1/2) 1) 3))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (/.f64 (+.f64 (fma.f64 im (*.f64 im 1/2) 1) (*.f64 -1/24 (pow.f64 im 4))) (-.f64 (pow.f64 (fma.f64 im (*.f64 im 1/2) 1) 2) (*.f64 1/576 (pow.f64 im 8)))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (fma.f64 1/13824 (pow.f64 im 12) (pow.f64 (fma.f64 im (*.f64 im 1/2) 1) 3)) (fma.f64 (*.f64 (pow.f64 im 4) 1/24) (-.f64 (*.f64 (pow.f64 im 4) 1/24) (fma.f64 im (*.f64 im 1/2) 1)) (pow.f64 (fma.f64 im (*.f64 im 1/2) 1) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (fma.f64 1/13824 (pow.f64 im 12) (pow.f64 (fma.f64 im (*.f64 im 1/2) 1) 3)) (fma.f64 1/576 (pow.f64 im 8) (-.f64 (pow.f64 (fma.f64 im (*.f64 im 1/2) 1) 2) (*.f64 (*.f64 (pow.f64 im 4) 1/24) (fma.f64 im (*.f64 im 1/2) 1)))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (pow.f64 (fma.f64 im (*.f64 im 1/2) 1) 2) (*.f64 1/576 (pow.f64 im 8))) (+.f64 (fma.f64 im (*.f64 im 1/2) 1) (*.f64 -1/24 (pow.f64 im 4))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (fma.f64 1/13824 (pow.f64 im 12) (pow.f64 (fma.f64 im (*.f64 im 1/2) 1) 3))) (neg.f64 (fma.f64 (*.f64 (pow.f64 im 4) 1/24) (-.f64 (*.f64 (pow.f64 im 4) 1/24) (fma.f64 im (*.f64 im 1/2) 1)) (pow.f64 (fma.f64 im (*.f64 im 1/2) 1) 2))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (-.f64 (pow.f64 (fma.f64 im (*.f64 im 1/2) 1) 2) (*.f64 1/576 (pow.f64 im 8)))) (neg.f64 (+.f64 (fma.f64 im (*.f64 im 1/2) 1) (*.f64 -1/24 (pow.f64 im 4)))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 1 (pow.f64 (fma.f64 im (*.f64 im 1/2) (*.f64 (pow.f64 im 4) 1/24)) 3)) (+.f64 1 (-.f64 (pow.f64 (fma.f64 im (*.f64 im 1/2) (*.f64 (pow.f64 im 4) 1/24)) 2) (fma.f64 im (*.f64 im 1/2) (*.f64 (pow.f64 im 4) 1/24)))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (*.f64 1/576 (pow.f64 im 8)) (pow.f64 (fma.f64 im (*.f64 im 1/2) 1) 2)) (-.f64 (*.f64 (pow.f64 im 4) 1/24) (fma.f64 im (*.f64 im 1/2) 1)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 1 (pow.f64 (fma.f64 im (*.f64 im 1/2) (*.f64 (pow.f64 im 4) 1/24)) 2)) (-.f64 1 (fma.f64 im (*.f64 im 1/2) (*.f64 (pow.f64 im 4) 1/24))))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (fma.f64 (pow.f64 im 4) 1/24 (fma.f64 im (*.f64 im 1/2) 1)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (fma.f64 (pow.f64 im 4) 1/24 (fma.f64 im (*.f64 im 1/2) 1)) 2) 1/2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (fma.f64 (pow.f64 im 4) 1/24 (fma.f64 im (*.f64 im 1/2) 1)) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (fma.f64 (pow.f64 im 4) 1/24 (fma.f64 im (*.f64 im 1/2) 1))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (fma.f64 (pow.f64 im 4) 1/24 (fma.f64 im (*.f64 im 1/2) 1))) 2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (/.f64 (fma.f64 (*.f64 (pow.f64 im 4) 1/24) (-.f64 (*.f64 (pow.f64 im 4) 1/24) (fma.f64 im (*.f64 im 1/2) 1)) (pow.f64 (fma.f64 im (*.f64 im 1/2) 1) 2)) (fma.f64 1/13824 (pow.f64 im 12) (pow.f64 (fma.f64 im (*.f64 im 1/2) 1) 3))) -1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (/.f64 (+.f64 (fma.f64 im (*.f64 im 1/2) 1) (*.f64 -1/24 (pow.f64 im 4))) (-.f64 (pow.f64 (fma.f64 im (*.f64 im 1/2) 1) 2) (*.f64 1/576 (pow.f64 im 8)))) -1)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (fma.f64 (pow.f64 im 4) 1/24 (fma.f64 im (*.f64 im 1/2) 1)) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (fma.f64 (pow.f64 im 4) 1/24 (fma.f64 im (*.f64 im 1/2) 1))))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (+.f64 1 (expm1.f64 (fma.f64 (pow.f64 im 4) 1/24 (fma.f64 im (*.f64 im 1/2) 1)))))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (*.f64 (+.f64 1 (expm1.f64 (*.f64 (pow.f64 im 4) 1/24))) (exp.f64 (fma.f64 im (*.f64 im 1/2) 1))))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (*.f64 (pow.f64 (exp.f64 1/24) (pow.f64 im 4)) (+.f64 1 (expm1.f64 (fma.f64 im (*.f64 im 1/2) 1)))))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (*.f64 (+.f64 1 (expm1.f64 (*.f64 (pow.f64 im 4) 1/24))) (+.f64 1 (expm1.f64 (fma.f64 im (*.f64 im 1/2) 1)))))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (*.f64 (+.f64 1 (expm1.f64 (fma.f64 im (*.f64 im 1/2) 1))) (pow.f64 (exp.f64 1/24) (pow.f64 im 4))))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (*.f64 (exp.f64 (fma.f64 im (*.f64 im 1/2) 1)) (+.f64 1 (expm1.f64 (*.f64 (pow.f64 im 4) 1/24)))))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (*.f64 (+.f64 1 (expm1.f64 (fma.f64 im (*.f64 im 1/2) 1))) (+.f64 1 (expm1.f64 (*.f64 (pow.f64 im 4) 1/24)))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (fma.f64 (pow.f64 im 4) 1/24 (fma.f64 im (*.f64 im 1/2) 1)) 3))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (fma.f64 (pow.f64 im 4) 1/24 (fma.f64 im (*.f64 im 1/2) 1))))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (fma.f64 (pow.f64 im 4) 1/24 (fma.f64 im (*.f64 im 1/2) 1))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log1p.f64 (fma.f64 im (*.f64 im 1/2) (*.f64 (pow.f64 im 4) 1/24))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (log1p.f64 (fma.f64 im (*.f64 im 1/2) (*.f64 (pow.f64 im 4) 1/24))) 1))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 im (*.f64 im 1/2) (+.f64 1 (*.f64 (pow.f64 im 4) 1/24)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (pow.f64 im 4) 1/24 (fma.f64 im (*.f64 im 1/2) 1))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 1/24 (pow.f64 im 4) (fma.f64 im (*.f64 im 1/2) 1))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 (pow.f64 im 4) 1/24) 1 (fma.f64 im (*.f64 im 1/2) 1))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 1 (*.f64 (pow.f64 im 4) 1/24) (fma.f64 im (*.f64 im 1/2) 1))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 1 (*.f64 1/2 (*.f64 im im)) (+.f64 1 (*.f64 (pow.f64 im 4) 1/24)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 1 (fma.f64 im (*.f64 im 1/2) 1) (*.f64 (pow.f64 im 4) 1/24))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 1 (fma.f64 im (*.f64 im 1/2) (*.f64 (pow.f64 im 4) 1/24)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 1/2 (*.f64 im im) (+.f64 1 (*.f64 (pow.f64 im 4) 1/24)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 im 1/2) im (+.f64 1 (*.f64 (pow.f64 im 4) 1/24)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 1/2 (*.f64 im im)) 1 (+.f64 1 (*.f64 (pow.f64 im 4) 1/24)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (fma.f64 im (*.f64 im 1/2) 1) 1 (*.f64 (pow.f64 im 4) 1/24))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 im im) 1/2 (+.f64 1 (*.f64 (pow.f64 im 4) 1/24)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 im im) (*.f64 (*.f64 im im) 1/24) (fma.f64 im (*.f64 im 1/2) 1))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (cbrt.f64 (fma.f64 im (*.f64 im 1/2) 1)) (cbrt.f64 (pow.f64 (fma.f64 im (*.f64 im 1/2) 1) 2)) (*.f64 (pow.f64 im 4) 1/24))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (cbrt.f64 (pow.f64 (fma.f64 im (*.f64 im 1/2) 1) 2)) (cbrt.f64 (fma.f64 im (*.f64 im 1/2) 1)) (*.f64 (pow.f64 im 4) 1/24))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (cbrt.f64 (*.f64 im im)) (*.f64 (cbrt.f64 im) (*.f64 im 1/2)) (+.f64 1 (*.f64 (pow.f64 im 4) 1/24)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (pow.f64 (cbrt.f64 (*.f64 im 1/2)) 2) (*.f64 (cbrt.f64 (*.f64 im 1/2)) im) (+.f64 1 (*.f64 (pow.f64 im 4) 1/24)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (cbrt.f64 (*.f64 (pow.f64 im 4) 1/24)) (cbrt.f64 (*.f64 1/576 (pow.f64 im 8))) (fma.f64 im (*.f64 im 1/2) 1))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (cbrt.f64 (*.f64 1/576 (pow.f64 im 8))) (cbrt.f64 (*.f64 (pow.f64 im 4) 1/24)) (fma.f64 im (*.f64 im 1/2) 1))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (cbrt.f64 (*.f64 1/2 (*.f64 im im))) (cbrt.f64 (*.f64 (pow.f64 im 4) 1/4)) (+.f64 1 (*.f64 (pow.f64 im 4) 1/24)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (cbrt.f64 (*.f64 (pow.f64 im 4) 1/4)) (cbrt.f64 (*.f64 1/2 (*.f64 im im))) (+.f64 1 (*.f64 (pow.f64 im 4) 1/24)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (cbrt.f64 (pow.f64 im 8)) (*.f64 (pow.f64 (cbrt.f64 im) 4) 1/24) (fma.f64 im (*.f64 im 1/2) 1))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (hypot.f64 1 (*.f64 im (sqrt.f64 1/2))) (hypot.f64 1 (*.f64 im (sqrt.f64 1/2))) (*.f64 (pow.f64 im 4) 1/24))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (sqrt.f64 im) (*.f64 (sqrt.f64 im) (*.f64 im 1/2)) (+.f64 1 (*.f64 (pow.f64 im 4) 1/24)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (sqrt.f64 (*.f64 im 1/2)) (*.f64 (sqrt.f64 (*.f64 im 1/2)) im) (+.f64 1 (*.f64 (pow.f64 im 4) 1/24)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 (*.f64 im im) (sqrt.f64 1/24)) (*.f64 (*.f64 im im) (sqrt.f64 1/24)) (fma.f64 im (*.f64 im 1/2) 1))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 im (sqrt.f64 1/2)) (*.f64 im (sqrt.f64 1/2)) (+.f64 1 (*.f64 (pow.f64 im 4) 1/24)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (fma.f64 (pow.f64 im 6) 1/8 1) (/.f64 1 (fma.f64 (*.f64 1/2 (*.f64 im im)) (fma.f64 im (*.f64 im 1/2) -1) 1)) (*.f64 (pow.f64 im 4) 1/24))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (-.f64 1 (*.f64 (pow.f64 im 4) 1/4)) (/.f64 1 (-.f64 1 (*.f64 1/2 (*.f64 im im)))) (*.f64 (pow.f64 im 4) 1/24))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (pow.f64 (cbrt.f64 (fma.f64 im (*.f64 im 1/2) (*.f64 (pow.f64 im 4) 1/24))) 2) (cbrt.f64 (fma.f64 im (*.f64 im 1/2) (*.f64 (pow.f64 im 4) 1/24))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (sqrt.f64 (fma.f64 im (*.f64 im 1/2) (*.f64 (pow.f64 im 4) 1/24))) (sqrt.f64 (fma.f64 im (*.f64 im 1/2) (*.f64 (pow.f64 im 4) 1/24))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 1/24 (cbrt.f64 (pow.f64 im 8))) (pow.f64 (cbrt.f64 im) 4) (fma.f64 im (*.f64 im 1/2) 1))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 1/24 (*.f64 im im)) (*.f64 im im) (fma.f64 im (*.f64 im 1/2) 1))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 im (pow.f64 (cbrt.f64 (*.f64 im 1/2)) 2)) (cbrt.f64 (*.f64 im 1/2)) (+.f64 1 (*.f64 (pow.f64 im 4) 1/24)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 im (sqrt.f64 (*.f64 im 1/2))) (sqrt.f64 (*.f64 im 1/2)) (+.f64 1 (*.f64 (pow.f64 im 4) 1/24)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 (*.f64 im 1/2) (cbrt.f64 (*.f64 im im))) (cbrt.f64 im) (+.f64 1 (*.f64 (pow.f64 im 4) 1/24)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 (*.f64 im 1/2) (sqrt.f64 im)) (sqrt.f64 im) (+.f64 1 (*.f64 (pow.f64 im 4) 1/24))))))) |
| 1× | egg-herbie |
| 1057× | sqr-pow_binary64 |
| 747× | fma-def_binary64 |
| 506× | pow-sqr_binary64 |
| 443× | cube-prod_binary64 |
| 398× | associate-*l*_binary64 |
Useful iterations: 2 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 14 | 239 |
| 1 | 29 | 237 |
| 2 | 57 | 225 |
| 3 | 146 | 225 |
| 4 | 416 | 225 |
| 5 | 1492 | 225 |
| 6 | 2851 | 225 |
| 7 | 3331 | 225 |
| 8 | 3506 | 225 |
| 9 | 3705 | 225 |
| 10 | 3978 | 225 |
| 11 | 4335 | 225 |
| 12 | 4788 | 225 |
| 13 | 5319 | 225 |
| 14 | 5943 | 225 |
| 15 | 6694 | 225 |
| 16 | 7002 | 225 |
| 17 | 7224 | 225 |
| 18 | 7420 | 225 |
| 19 | 7474 | 225 |
| 20 | 7496 | 225 |
| 1× | node limit |
| Inputs |
|---|
(*.f64 1/24 (pow.f64 im 4)) |
(*.f64 1/24 (pow.f64 im 4)) |
(*.f64 1/24 (pow.f64 im 4)) |
(*.f64 1/24 (pow.f64 im 4)) |
(*.f64 1/24 (pow.f64 im 4)) |
(*.f64 1/24 (pow.f64 im 4)) |
(*.f64 1/24 (pow.f64 im 4)) |
(*.f64 1/24 (pow.f64 im 4)) |
(*.f64 1/24 (pow.f64 im 4)) |
(*.f64 1/24 (pow.f64 im 4)) |
(*.f64 1/24 (pow.f64 im 4)) |
(*.f64 1/24 (pow.f64 im 4)) |
1 |
(+.f64 1 (*.f64 1/2 (pow.f64 im 2))) |
(+.f64 1 (+.f64 (*.f64 1/2 (pow.f64 im 2)) (*.f64 1/24 (pow.f64 im 4)))) |
(+.f64 1 (+.f64 (*.f64 1/2 (pow.f64 im 2)) (*.f64 1/24 (pow.f64 im 4)))) |
(*.f64 1/24 (pow.f64 im 4)) |
(+.f64 (*.f64 1/2 (pow.f64 im 2)) (*.f64 1/24 (pow.f64 im 4))) |
(+.f64 1 (+.f64 (*.f64 1/2 (pow.f64 im 2)) (*.f64 1/24 (pow.f64 im 4)))) |
(+.f64 1 (+.f64 (*.f64 1/2 (pow.f64 im 2)) (*.f64 1/24 (pow.f64 im 4)))) |
(*.f64 1/24 (pow.f64 im 4)) |
(+.f64 (*.f64 1/2 (pow.f64 im 2)) (*.f64 1/24 (pow.f64 im 4))) |
(+.f64 1 (+.f64 (*.f64 1/2 (pow.f64 im 2)) (*.f64 1/24 (pow.f64 im 4)))) |
(+.f64 1 (+.f64 (*.f64 1/2 (pow.f64 im 2)) (*.f64 1/24 (pow.f64 im 4)))) |
| Outputs |
|---|
(*.f64 1/24 (pow.f64 im 4)) |
(*.f64 1/24 (pow.f64 im 4)) |
(*.f64 1/24 (pow.f64 im 4)) |
(*.f64 1/24 (pow.f64 im 4)) |
(*.f64 1/24 (pow.f64 im 4)) |
(*.f64 1/24 (pow.f64 im 4)) |
(*.f64 1/24 (pow.f64 im 4)) |
(*.f64 1/24 (pow.f64 im 4)) |
(*.f64 1/24 (pow.f64 im 4)) |
(*.f64 1/24 (pow.f64 im 4)) |
(*.f64 1/24 (pow.f64 im 4)) |
(*.f64 1/24 (pow.f64 im 4)) |
1 |
(+.f64 1 (*.f64 1/2 (pow.f64 im 2))) |
(+.f64 1 (*.f64 1/2 (*.f64 im im))) |
(fma.f64 1/2 (*.f64 im im) 1) |
(fma.f64 im (*.f64 im 1/2) 1) |
(+.f64 1 (+.f64 (*.f64 1/2 (pow.f64 im 2)) (*.f64 1/24 (pow.f64 im 4)))) |
(+.f64 1 (fma.f64 1/2 (*.f64 im im) (*.f64 1/24 (pow.f64 im 4)))) |
(+.f64 (*.f64 1/24 (pow.f64 im 4)) (fma.f64 1/2 (*.f64 im im) 1)) |
(fma.f64 1/24 (pow.f64 im 4) (fma.f64 im (*.f64 im 1/2) 1)) |
(fma.f64 (*.f64 im im) (fma.f64 1/24 (*.f64 im im) 1/2) 1) |
(+.f64 1 (+.f64 (*.f64 1/2 (pow.f64 im 2)) (*.f64 1/24 (pow.f64 im 4)))) |
(+.f64 1 (fma.f64 1/2 (*.f64 im im) (*.f64 1/24 (pow.f64 im 4)))) |
(+.f64 (*.f64 1/24 (pow.f64 im 4)) (fma.f64 1/2 (*.f64 im im) 1)) |
(fma.f64 1/24 (pow.f64 im 4) (fma.f64 im (*.f64 im 1/2) 1)) |
(fma.f64 (*.f64 im im) (fma.f64 1/24 (*.f64 im im) 1/2) 1) |
(*.f64 1/24 (pow.f64 im 4)) |
(+.f64 (*.f64 1/2 (pow.f64 im 2)) (*.f64 1/24 (pow.f64 im 4))) |
(fma.f64 1/2 (*.f64 im im) (*.f64 1/24 (pow.f64 im 4))) |
(fma.f64 1/24 (pow.f64 im 4) (*.f64 im (*.f64 im 1/2))) |
(fma.f64 1/24 (pow.f64 im 4) (*.f64 1/2 (*.f64 im im))) |
(*.f64 (*.f64 im im) (fma.f64 1/24 (*.f64 im im) 1/2)) |
(*.f64 im (*.f64 im (fma.f64 1/24 (*.f64 im im) 1/2))) |
(*.f64 im (fma.f64 1/24 (pow.f64 im 3) (*.f64 im 1/2))) |
(+.f64 1 (+.f64 (*.f64 1/2 (pow.f64 im 2)) (*.f64 1/24 (pow.f64 im 4)))) |
(+.f64 1 (fma.f64 1/2 (*.f64 im im) (*.f64 1/24 (pow.f64 im 4)))) |
(+.f64 (*.f64 1/24 (pow.f64 im 4)) (fma.f64 1/2 (*.f64 im im) 1)) |
(fma.f64 1/24 (pow.f64 im 4) (fma.f64 im (*.f64 im 1/2) 1)) |
(fma.f64 (*.f64 im im) (fma.f64 1/24 (*.f64 im im) 1/2) 1) |
(+.f64 1 (+.f64 (*.f64 1/2 (pow.f64 im 2)) (*.f64 1/24 (pow.f64 im 4)))) |
(+.f64 1 (fma.f64 1/2 (*.f64 im im) (*.f64 1/24 (pow.f64 im 4)))) |
(+.f64 (*.f64 1/24 (pow.f64 im 4)) (fma.f64 1/2 (*.f64 im im) 1)) |
(fma.f64 1/24 (pow.f64 im 4) (fma.f64 im (*.f64 im 1/2) 1)) |
(fma.f64 (*.f64 im im) (fma.f64 1/24 (*.f64 im im) 1/2) 1) |
(*.f64 1/24 (pow.f64 im 4)) |
(+.f64 (*.f64 1/2 (pow.f64 im 2)) (*.f64 1/24 (pow.f64 im 4))) |
(fma.f64 1/2 (*.f64 im im) (*.f64 1/24 (pow.f64 im 4))) |
(fma.f64 1/24 (pow.f64 im 4) (*.f64 im (*.f64 im 1/2))) |
(fma.f64 1/24 (pow.f64 im 4) (*.f64 1/2 (*.f64 im im))) |
(*.f64 (*.f64 im im) (fma.f64 1/24 (*.f64 im im) 1/2)) |
(*.f64 im (*.f64 im (fma.f64 1/24 (*.f64 im im) 1/2))) |
(*.f64 im (fma.f64 1/24 (pow.f64 im 3) (*.f64 im 1/2))) |
(+.f64 1 (+.f64 (*.f64 1/2 (pow.f64 im 2)) (*.f64 1/24 (pow.f64 im 4)))) |
(+.f64 1 (fma.f64 1/2 (*.f64 im im) (*.f64 1/24 (pow.f64 im 4)))) |
(+.f64 (*.f64 1/24 (pow.f64 im 4)) (fma.f64 1/2 (*.f64 im im) 1)) |
(fma.f64 1/24 (pow.f64 im 4) (fma.f64 im (*.f64 im 1/2) 1)) |
(fma.f64 (*.f64 im im) (fma.f64 1/24 (*.f64 im im) 1/2) 1) |
(+.f64 1 (+.f64 (*.f64 1/2 (pow.f64 im 2)) (*.f64 1/24 (pow.f64 im 4)))) |
(+.f64 1 (fma.f64 1/2 (*.f64 im im) (*.f64 1/24 (pow.f64 im 4)))) |
(+.f64 (*.f64 1/24 (pow.f64 im 4)) (fma.f64 1/2 (*.f64 im im) 1)) |
(fma.f64 1/24 (pow.f64 im 4) (fma.f64 im (*.f64 im 1/2) 1)) |
(fma.f64 (*.f64 im im) (fma.f64 1/24 (*.f64 im im) 1/2) 1) |
Compiled 5 to 3 computations (40% saved)
Found 1 expressions with local error:
| New | Error | Program |
|---|---|---|
| ✓ | 0.0b | (*.f64 (cos.f64 re) (+.f64 1 (*.f64 im (*.f64 im 1/2)))) |
Compiled 33 to 21 computations (36.4% saved)
6 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 2.0ms | im | @ | 0 | (*.f64 (cos.f64 re) (+.f64 1 (*.f64 im (*.f64 im 1/2)))) |
| 1.0ms | re | @ | inf | (*.f64 (cos.f64 re) (+.f64 1 (*.f64 im (*.f64 im 1/2)))) |
| 1.0ms | re | @ | 0 | (*.f64 (cos.f64 re) (+.f64 1 (*.f64 im (*.f64 im 1/2)))) |
| 1.0ms | im | @ | inf | (*.f64 (cos.f64 re) (+.f64 1 (*.f64 im (*.f64 im 1/2)))) |
| 0.0ms | re | @ | -inf | (*.f64 (cos.f64 re) (+.f64 1 (*.f64 im (*.f64 im 1/2)))) |
| 1× | batch-egg-rewrite |
| 591× | prod-diff_binary64 |
| 489× | log-prod_binary64 |
| 356× | fma-def_binary64 |
| 332× | pow-prod-down_binary64 |
| 256× | pow2_binary64 |
Useful iterations: 1 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 10 | 15 |
| 1 | 207 | 13 |
| 2 | 2619 | 13 |
| 1× | node limit |
| Inputs |
|---|
(*.f64 (cos.f64 re) (+.f64 1 (*.f64 im (*.f64 im 1/2)))) |
| Outputs |
|---|
((#(struct:change #<rule egg-rr> (2) ((x +.f64 (cos.f64 re) (*.f64 (cos.f64 re) (*.f64 im (*.f64 im 1/2))))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (cos.f64 re) (*.f64 (*.f64 (cos.f64 re) (*.f64 im (*.f64 im 1/2))) 1))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 0 (*.f64 (cos.f64 re) (fma.f64 im (*.f64 im 1/2) 1)))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 (cos.f64 re) (*.f64 im (*.f64 im 1/2))) (cos.f64 re))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (log.f64 (pow.f64 (cbrt.f64 (pow.f64 (exp.f64 (cos.f64 re)) (fma.f64 im (*.f64 im 1/2) 1))) 2)) (log.f64 (cbrt.f64 (pow.f64 (exp.f64 (cos.f64 re)) (fma.f64 im (*.f64 im 1/2) 1)))))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (log.f64 (sqrt.f64 (pow.f64 (exp.f64 (cos.f64 re)) (fma.f64 im (*.f64 im 1/2) 1)))) (log.f64 (sqrt.f64 (pow.f64 (exp.f64 (cos.f64 re)) (fma.f64 im (*.f64 im 1/2) 1)))))))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (exp.f64 (log1p.f64 (*.f64 (cos.f64 re) (fma.f64 im (*.f64 im 1/2) 1)))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 (pow.f64 (cos.f64 re) 3) (*.f64 (pow.f64 (cos.f64 re) 3) (*.f64 (pow.f64 im 6) 1/8))) (+.f64 (pow.f64 (cos.f64 re) 2) (-.f64 (pow.f64 (*.f64 (cos.f64 re) (*.f64 im (*.f64 im 1/2))) 2) (*.f64 (cos.f64 re) (*.f64 (cos.f64 re) (*.f64 im (*.f64 im 1/2)))))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (pow.f64 (cos.f64 re) 2) (pow.f64 (*.f64 (cos.f64 re) (*.f64 im (*.f64 im 1/2))) 2)) (-.f64 (cos.f64 re) (*.f64 (cos.f64 re) (*.f64 im (*.f64 im 1/2)))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (fma.f64 (pow.f64 im 6) 1/8 1) (cos.f64 re)) (fma.f64 (*.f64 im (*.f64 im 1/2)) (fma.f64 im (*.f64 im 1/2) -1) 1))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (-.f64 1 (*.f64 (pow.f64 im 4) 1/4)) (cos.f64 re)) (-.f64 1 (*.f64 im (*.f64 im 1/2))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (cos.f64 re) (fma.f64 (pow.f64 im 6) 1/8 1)) (fma.f64 (*.f64 im (*.f64 im 1/2)) (fma.f64 im (*.f64 im 1/2) -1) 1))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (cos.f64 re) (-.f64 1 (*.f64 (pow.f64 im 4) 1/4))) (-.f64 1 (*.f64 im (*.f64 im 1/2))))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 (cos.f64 re) (fma.f64 im (*.f64 im 1/2) 1)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (*.f64 (cos.f64 re) (fma.f64 im (*.f64 im 1/2) 1)) 2) 1/2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (*.f64 (cos.f64 re) (fma.f64 im (*.f64 im 1/2) 1)) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (*.f64 (cos.f64 re) (fma.f64 im (*.f64 im 1/2) 1))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (*.f64 (cos.f64 re) (fma.f64 im (*.f64 im 1/2) 1))) 2)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (*.f64 (cos.f64 re) (fma.f64 im (*.f64 im 1/2) 1)) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (pow.f64 (exp.f64 (cos.f64 re)) (fma.f64 im (*.f64 im 1/2) 1)))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (+.f64 1 (expm1.f64 (*.f64 (cos.f64 re) (fma.f64 im (*.f64 im 1/2) 1)))))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (*.f64 (+.f64 1 (expm1.f64 (cos.f64 re))) (exp.f64 (*.f64 (cos.f64 re) (*.f64 im (*.f64 im 1/2))))))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (*.f64 (exp.f64 (*.f64 (cos.f64 re) (*.f64 im (*.f64 im 1/2)))) (exp.f64 (cos.f64 re))))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (*.f64 (exp.f64 (*.f64 (cos.f64 re) (*.f64 im (*.f64 im 1/2)))) (+.f64 1 (expm1.f64 (cos.f64 re)))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (*.f64 (cos.f64 re) (fma.f64 im (*.f64 im 1/2) 1)) 3))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (*.f64 (cos.f64 re) (fma.f64 im (*.f64 im 1/2) 1))))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (*.f64 (cos.f64 re) (fma.f64 im (*.f64 im 1/2) 1))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (*.f64 (cos.f64 re) (fma.f64 im (*.f64 im 1/2) 1))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (log.f64 (*.f64 (cos.f64 re) (fma.f64 im (*.f64 im 1/2) 1))) 1))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (*.f64 3 (log.f64 (*.f64 (cos.f64 re) (fma.f64 im (*.f64 im 1/2) 1)))) 1/3))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (log.f64 (cbrt.f64 (*.f64 (cos.f64 re) (fma.f64 im (*.f64 im 1/2) 1)))) 3))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (log.f64 (sqrt.f64 (*.f64 (cos.f64 re) (fma.f64 im (*.f64 im 1/2) 1)))) 2))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (*.f64 (log.f64 (*.f64 (cos.f64 re) (fma.f64 im (*.f64 im 1/2) 1))) 1) 1))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (cos.f64 re) 1 (*.f64 (cos.f64 re) (*.f64 im (*.f64 im 1/2))))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (cos.f64 re) 1 (*.f64 (*.f64 (cos.f64 re) (*.f64 im (*.f64 im 1/2))) 1))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (cos.f64 re) (*.f64 im (*.f64 im 1/2)) (cos.f64 re))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 1 (cos.f64 re) (*.f64 (cos.f64 re) (*.f64 im (*.f64 im 1/2))))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 1 (cos.f64 re) (*.f64 (*.f64 (cos.f64 re) (*.f64 im (*.f64 im 1/2))) 1))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 1 (*.f64 (cos.f64 re) (*.f64 im (*.f64 im 1/2))) (cos.f64 re))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 im (*.f64 (*.f64 im 1/2) (cos.f64 re)) (cos.f64 re))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 im 1/2) (*.f64 im (cos.f64 re)) (cos.f64 re))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 im (*.f64 im 1/2)) (cos.f64 re) (cos.f64 re))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 im im) (*.f64 1/2 (cos.f64 re)) (cos.f64 re))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (cbrt.f64 (*.f64 (pow.f64 im 4) 1/4)) (*.f64 (cbrt.f64 (*.f64 im (*.f64 im 1/2))) (cos.f64 re)) (cos.f64 re))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (cbrt.f64 (cos.f64 re)) (cbrt.f64 (pow.f64 (cos.f64 re) 2)) (*.f64 (cos.f64 re) (*.f64 im (*.f64 im 1/2))))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (cbrt.f64 (cos.f64 re)) (cbrt.f64 (pow.f64 (cos.f64 re) 2)) (*.f64 (*.f64 (cos.f64 re) (*.f64 im (*.f64 im 1/2))) 1))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (cbrt.f64 (pow.f64 (cos.f64 re) 2)) (cbrt.f64 (cos.f64 re)) (*.f64 (cos.f64 re) (*.f64 im (*.f64 im 1/2))))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (cbrt.f64 (pow.f64 (cos.f64 re) 2)) (cbrt.f64 (cos.f64 re)) (*.f64 (*.f64 (cos.f64 re) (*.f64 im (*.f64 im 1/2))) 1))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (cbrt.f64 (pow.f64 (cos.f64 re) 2)) (*.f64 (cbrt.f64 (cos.f64 re)) 1) (*.f64 (cos.f64 re) (*.f64 im (*.f64 im 1/2))))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (cbrt.f64 (pow.f64 (cos.f64 re) 2)) (*.f64 (cbrt.f64 (cos.f64 re)) 1) (*.f64 (*.f64 (cos.f64 re) (*.f64 im (*.f64 im 1/2))) 1))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (cbrt.f64 (pow.f64 (cos.f64 re) 2)) (*.f64 (cbrt.f64 (cos.f64 re)) (*.f64 im (*.f64 im 1/2))) (cos.f64 re))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 im (sqrt.f64 1/2)) (*.f64 (*.f64 im (sqrt.f64 1/2)) (cos.f64 re)) (cos.f64 re))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (sqrt.f64 (cos.f64 re)) (sqrt.f64 (cos.f64 re)) (*.f64 (cos.f64 re) (*.f64 im (*.f64 im 1/2))))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (sqrt.f64 (cos.f64 re)) (sqrt.f64 (cos.f64 re)) (*.f64 (*.f64 (cos.f64 re) (*.f64 im (*.f64 im 1/2))) 1))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (sqrt.f64 (cos.f64 re)) (*.f64 (sqrt.f64 (cos.f64 re)) 1) (*.f64 (cos.f64 re) (*.f64 im (*.f64 im 1/2))))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (sqrt.f64 (cos.f64 re)) (*.f64 (sqrt.f64 (cos.f64 re)) 1) (*.f64 (*.f64 (cos.f64 re) (*.f64 im (*.f64 im 1/2))) 1))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (sqrt.f64 (cos.f64 re)) (*.f64 (sqrt.f64 (cos.f64 re)) (*.f64 im (*.f64 im 1/2))) (cos.f64 re))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (pow.f64 (cbrt.f64 (*.f64 (cos.f64 re) (*.f64 im (*.f64 im 1/2)))) 2) (cbrt.f64 (*.f64 (cos.f64 re) (*.f64 im (*.f64 im 1/2)))) (cos.f64 re))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 (*.f64 im (sqrt.f64 1/2)) (sqrt.f64 (cos.f64 re))) (*.f64 (*.f64 im (sqrt.f64 1/2)) (sqrt.f64 (cos.f64 re))) (cos.f64 re))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 (cos.f64 re) im) (*.f64 im 1/2) (cos.f64 re))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 (cos.f64 re) (*.f64 im 1/2)) im (cos.f64 re))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 (cos.f64 re) (*.f64 im im)) 1/2 (cos.f64 re))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 (cos.f64 re) (cbrt.f64 (*.f64 (pow.f64 im 4) 1/4))) (cbrt.f64 (*.f64 im (*.f64 im 1/2))) (cos.f64 re))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 (cos.f64 re) (*.f64 im (sqrt.f64 1/2))) (*.f64 im (sqrt.f64 1/2)) (cos.f64 re))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (pow.f64 (*.f64 (*.f64 im (sqrt.f64 1/2)) (cbrt.f64 (cos.f64 re))) 2) (cbrt.f64 (cos.f64 re)) (cos.f64 re))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 (*.f64 im (*.f64 im 1/2)) (sqrt.f64 (cos.f64 re))) (sqrt.f64 (cos.f64 re)) (cos.f64 re)))))) |
| 1× | egg-herbie |
| 956× | fma-def_binary64 |
| 622× | associate-+l+_binary64 |
| 588× | distribute-rgt-in_binary64 |
| 578× | distribute-lft-in_binary64 |
| 554× | associate-+r+_binary64 |
Useful iterations: 4 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 36 | 436 |
| 1 | 99 | 388 |
| 2 | 297 | 360 |
| 3 | 1201 | 342 |
| 4 | 4314 | 335 |
| 5 | 5491 | 335 |
| 6 | 6669 | 335 |
| 7 | 6946 | 335 |
| 8 | 7134 | 335 |
| 9 | 7356 | 335 |
| 10 | 7667 | 335 |
| 1× | node limit |
| Inputs |
|---|
(+.f64 1 (*.f64 1/2 (pow.f64 im 2))) |
(+.f64 1 (+.f64 (*.f64 1/2 (pow.f64 im 2)) (*.f64 -1/2 (*.f64 (+.f64 1 (*.f64 1/2 (pow.f64 im 2))) (pow.f64 re 2))))) |
(+.f64 1 (+.f64 (*.f64 1/24 (*.f64 (+.f64 1 (*.f64 1/2 (pow.f64 im 2))) (pow.f64 re 4))) (+.f64 (*.f64 1/2 (pow.f64 im 2)) (*.f64 -1/2 (*.f64 (+.f64 1 (*.f64 1/2 (pow.f64 im 2))) (pow.f64 re 2)))))) |
(+.f64 1 (+.f64 (*.f64 1/24 (*.f64 (+.f64 1 (*.f64 1/2 (pow.f64 im 2))) (pow.f64 re 4))) (+.f64 (*.f64 1/2 (pow.f64 im 2)) (+.f64 (*.f64 -1/2 (*.f64 (+.f64 1 (*.f64 1/2 (pow.f64 im 2))) (pow.f64 re 2))) (*.f64 -1/720 (*.f64 (+.f64 1 (*.f64 1/2 (pow.f64 im 2))) (pow.f64 re 6))))))) |
(*.f64 (cos.f64 re) (+.f64 1 (*.f64 1/2 (pow.f64 im 2)))) |
(*.f64 (cos.f64 re) (+.f64 1 (*.f64 1/2 (pow.f64 im 2)))) |
(*.f64 (cos.f64 re) (+.f64 1 (*.f64 1/2 (pow.f64 im 2)))) |
(*.f64 (cos.f64 re) (+.f64 1 (*.f64 1/2 (pow.f64 im 2)))) |
(*.f64 (cos.f64 re) (+.f64 1 (*.f64 1/2 (pow.f64 im 2)))) |
(*.f64 (cos.f64 re) (+.f64 1 (*.f64 1/2 (pow.f64 im 2)))) |
(*.f64 (cos.f64 re) (+.f64 1 (*.f64 1/2 (pow.f64 im 2)))) |
(*.f64 (cos.f64 re) (+.f64 1 (*.f64 1/2 (pow.f64 im 2)))) |
(cos.f64 re) |
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (cos.f64 re)) |
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (cos.f64 re)) |
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (cos.f64 re)) |
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) |
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (cos.f64 re)) |
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (cos.f64 re)) |
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (cos.f64 re)) |
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) |
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (cos.f64 re)) |
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (cos.f64 re)) |
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (cos.f64 re)) |
| Outputs |
|---|
(+.f64 1 (*.f64 1/2 (pow.f64 im 2))) |
(+.f64 1 (*.f64 1/2 (*.f64 im im))) |
(fma.f64 1/2 (*.f64 im im) 1) |
(+.f64 1 (+.f64 (*.f64 1/2 (pow.f64 im 2)) (*.f64 -1/2 (*.f64 (+.f64 1 (*.f64 1/2 (pow.f64 im 2))) (pow.f64 re 2))))) |
(+.f64 1 (fma.f64 1/2 (*.f64 im im) (*.f64 -1/2 (*.f64 (+.f64 1 (*.f64 1/2 (*.f64 im im))) (*.f64 re re))))) |
(+.f64 1 (fma.f64 -1/2 (*.f64 (fma.f64 1/2 (*.f64 im im) 1) (*.f64 re re)) (*.f64 1/2 (*.f64 im im)))) |
(*.f64 (+.f64 (*.f64 -1/2 (*.f64 re re)) 1) (fma.f64 1/2 (*.f64 im im) 1)) |
(*.f64 (fma.f64 1/2 (*.f64 im im) 1) (fma.f64 -1/2 (*.f64 re re) 1)) |
(+.f64 1 (+.f64 (*.f64 1/24 (*.f64 (+.f64 1 (*.f64 1/2 (pow.f64 im 2))) (pow.f64 re 4))) (+.f64 (*.f64 1/2 (pow.f64 im 2)) (*.f64 -1/2 (*.f64 (+.f64 1 (*.f64 1/2 (pow.f64 im 2))) (pow.f64 re 2)))))) |
(+.f64 1 (fma.f64 1/24 (*.f64 (+.f64 1 (*.f64 1/2 (*.f64 im im))) (pow.f64 re 4)) (fma.f64 1/2 (*.f64 im im) (*.f64 -1/2 (*.f64 (+.f64 1 (*.f64 1/2 (*.f64 im im))) (*.f64 re re)))))) |
(+.f64 1 (fma.f64 1/24 (*.f64 (fma.f64 1/2 (*.f64 im im) 1) (pow.f64 re 4)) (fma.f64 -1/2 (*.f64 (fma.f64 1/2 (*.f64 im im) 1) (*.f64 re re)) (*.f64 1/2 (*.f64 im im))))) |
(+.f64 1 (fma.f64 1/2 (*.f64 im im) (*.f64 (fma.f64 1/2 (*.f64 im im) 1) (+.f64 (*.f64 -1/2 (*.f64 re re)) (*.f64 1/24 (pow.f64 re 4)))))) |
(*.f64 (fma.f64 1/2 (*.f64 im im) 1) (+.f64 (fma.f64 -1/2 (*.f64 re re) 1) (*.f64 1/24 (pow.f64 re 4)))) |
(+.f64 1 (+.f64 (*.f64 1/24 (*.f64 (+.f64 1 (*.f64 1/2 (pow.f64 im 2))) (pow.f64 re 4))) (+.f64 (*.f64 1/2 (pow.f64 im 2)) (+.f64 (*.f64 -1/2 (*.f64 (+.f64 1 (*.f64 1/2 (pow.f64 im 2))) (pow.f64 re 2))) (*.f64 -1/720 (*.f64 (+.f64 1 (*.f64 1/2 (pow.f64 im 2))) (pow.f64 re 6))))))) |
(+.f64 1 (fma.f64 1/24 (*.f64 (+.f64 1 (*.f64 1/2 (*.f64 im im))) (pow.f64 re 4)) (fma.f64 1/2 (*.f64 im im) (fma.f64 -1/2 (*.f64 (+.f64 1 (*.f64 1/2 (*.f64 im im))) (*.f64 re re)) (*.f64 -1/720 (*.f64 (+.f64 1 (*.f64 1/2 (*.f64 im im))) (pow.f64 re 6))))))) |
(+.f64 1 (fma.f64 1/24 (*.f64 (fma.f64 1/2 (*.f64 im im) 1) (pow.f64 re 4)) (fma.f64 1/2 (*.f64 im im) (fma.f64 -1/2 (*.f64 (fma.f64 1/2 (*.f64 im im) 1) (*.f64 re re)) (*.f64 (fma.f64 1/2 (*.f64 im im) 1) (*.f64 (pow.f64 re 6) -1/720)))))) |
(+.f64 (*.f64 (+.f64 (*.f64 -1/2 (*.f64 re re)) 1) (fma.f64 1/2 (*.f64 im im) 1)) (*.f64 (fma.f64 1/2 (*.f64 im im) 1) (+.f64 (*.f64 -1/720 (pow.f64 re 6)) (*.f64 1/24 (pow.f64 re 4))))) |
(fma.f64 (pow.f64 re 4) (fma.f64 (*.f64 im im) 1/48 1/24) (*.f64 (fma.f64 1/2 (*.f64 im im) 1) (+.f64 (fma.f64 -1/2 (*.f64 re re) 1) (*.f64 -1/720 (pow.f64 re 6))))) |
(*.f64 (fma.f64 1/2 (*.f64 im im) 1) (+.f64 (fma.f64 -1/2 (*.f64 re re) 1) (fma.f64 -1/720 (pow.f64 re 6) (*.f64 1/24 (pow.f64 re 4))))) |
(*.f64 (cos.f64 re) (+.f64 1 (*.f64 1/2 (pow.f64 im 2)))) |
(*.f64 (+.f64 1 (*.f64 1/2 (*.f64 im im))) (cos.f64 re)) |
(*.f64 (fma.f64 1/2 (*.f64 im im) 1) (cos.f64 re)) |
(*.f64 (cos.f64 re) (+.f64 1 (*.f64 1/2 (pow.f64 im 2)))) |
(*.f64 (+.f64 1 (*.f64 1/2 (*.f64 im im))) (cos.f64 re)) |
(*.f64 (fma.f64 1/2 (*.f64 im im) 1) (cos.f64 re)) |
(*.f64 (cos.f64 re) (+.f64 1 (*.f64 1/2 (pow.f64 im 2)))) |
(*.f64 (+.f64 1 (*.f64 1/2 (*.f64 im im))) (cos.f64 re)) |
(*.f64 (fma.f64 1/2 (*.f64 im im) 1) (cos.f64 re)) |
(*.f64 (cos.f64 re) (+.f64 1 (*.f64 1/2 (pow.f64 im 2)))) |
(*.f64 (+.f64 1 (*.f64 1/2 (*.f64 im im))) (cos.f64 re)) |
(*.f64 (fma.f64 1/2 (*.f64 im im) 1) (cos.f64 re)) |
(*.f64 (cos.f64 re) (+.f64 1 (*.f64 1/2 (pow.f64 im 2)))) |
(*.f64 (+.f64 1 (*.f64 1/2 (*.f64 im im))) (cos.f64 re)) |
(*.f64 (fma.f64 1/2 (*.f64 im im) 1) (cos.f64 re)) |
(*.f64 (cos.f64 re) (+.f64 1 (*.f64 1/2 (pow.f64 im 2)))) |
(*.f64 (+.f64 1 (*.f64 1/2 (*.f64 im im))) (cos.f64 re)) |
(*.f64 (fma.f64 1/2 (*.f64 im im) 1) (cos.f64 re)) |
(*.f64 (cos.f64 re) (+.f64 1 (*.f64 1/2 (pow.f64 im 2)))) |
(*.f64 (+.f64 1 (*.f64 1/2 (*.f64 im im))) (cos.f64 re)) |
(*.f64 (fma.f64 1/2 (*.f64 im im) 1) (cos.f64 re)) |
(*.f64 (cos.f64 re) (+.f64 1 (*.f64 1/2 (pow.f64 im 2)))) |
(*.f64 (+.f64 1 (*.f64 1/2 (*.f64 im im))) (cos.f64 re)) |
(*.f64 (fma.f64 1/2 (*.f64 im im) 1) (cos.f64 re)) |
(cos.f64 re) |
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (cos.f64 re)) |
(*.f64 (+.f64 1 (*.f64 1/2 (*.f64 im im))) (cos.f64 re)) |
(*.f64 (fma.f64 1/2 (*.f64 im im) 1) (cos.f64 re)) |
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (cos.f64 re)) |
(*.f64 (+.f64 1 (*.f64 1/2 (*.f64 im im))) (cos.f64 re)) |
(*.f64 (fma.f64 1/2 (*.f64 im im) 1) (cos.f64 re)) |
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (cos.f64 re)) |
(*.f64 (+.f64 1 (*.f64 1/2 (*.f64 im im))) (cos.f64 re)) |
(*.f64 (fma.f64 1/2 (*.f64 im im) 1) (cos.f64 re)) |
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) |
(*.f64 1/2 (*.f64 (*.f64 im im) (cos.f64 re))) |
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (cos.f64 re)) |
(*.f64 (+.f64 1 (*.f64 1/2 (*.f64 im im))) (cos.f64 re)) |
(*.f64 (fma.f64 1/2 (*.f64 im im) 1) (cos.f64 re)) |
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (cos.f64 re)) |
(*.f64 (+.f64 1 (*.f64 1/2 (*.f64 im im))) (cos.f64 re)) |
(*.f64 (fma.f64 1/2 (*.f64 im im) 1) (cos.f64 re)) |
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (cos.f64 re)) |
(*.f64 (+.f64 1 (*.f64 1/2 (*.f64 im im))) (cos.f64 re)) |
(*.f64 (fma.f64 1/2 (*.f64 im im) 1) (cos.f64 re)) |
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) |
(*.f64 1/2 (*.f64 (*.f64 im im) (cos.f64 re))) |
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (cos.f64 re)) |
(*.f64 (+.f64 1 (*.f64 1/2 (*.f64 im im))) (cos.f64 re)) |
(*.f64 (fma.f64 1/2 (*.f64 im im) 1) (cos.f64 re)) |
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (cos.f64 re)) |
(*.f64 (+.f64 1 (*.f64 1/2 (*.f64 im im))) (cos.f64 re)) |
(*.f64 (fma.f64 1/2 (*.f64 im im) 1) (cos.f64 re)) |
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (cos.f64 re)) |
(*.f64 (+.f64 1 (*.f64 1/2 (*.f64 im im))) (cos.f64 re)) |
(*.f64 (fma.f64 1/2 (*.f64 im im) 1) (cos.f64 re)) |
Found 1 expressions with local error:
| New | Error | Program |
|---|---|---|
| ✓ | 0.0b | (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) |
Compiled 25 to 9 computations (64% saved)
3 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 0.0ms | im | @ | 0 | (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) |
| 0.0ms | im | @ | -inf | (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) |
| 0.0ms | im | @ | inf | (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) |
| 1× | egg-rewrite-iter-limit |
| 1× | batch-egg-rewrite |
| 69× | add-sqr-sqrt_binary64 |
| 66× | add-log-exp_binary64 |
| 65× | *-un-lft-identity_binary64 |
| 65× | pow1_binary64 |
| 64× | add-exp-log_binary64 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 6 | 6 |
| 1 | 129 | 6 |
| 2 | 2150 | 6 |
| 0 | 6 | 6 |
| 1× | iter limit |
| 1× | unsound |
| Inputs |
|---|
(+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) |
| Outputs |
|---|
((#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (*.f64 2 (cosh.f64 im)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 (cbrt.f64 (*.f64 2 (cosh.f64 im))) (cbrt.f64 (*.f64 2 (cosh.f64 im)))) (cbrt.f64 (*.f64 2 (cosh.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (*.f64 2 (cosh.f64 im))) (sqrt.f64 (*.f64 2 (cosh.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 2 (cosh.f64 im))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 (pow.f64 (exp.f64 im) 3) (pow.f64 (exp.f64 (neg.f64 im)) 3)) (+.f64 (*.f64 (exp.f64 im) (exp.f64 im)) (-.f64 (*.f64 (exp.f64 (neg.f64 im)) (exp.f64 (neg.f64 im))) (*.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (*.f64 (exp.f64 im) (exp.f64 im)) (*.f64 (exp.f64 (neg.f64 im)) (exp.f64 (neg.f64 im)))) (-.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 2 (cosh.f64 im)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (*.f64 2 (cosh.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (*.f64 (*.f64 (*.f64 2 (cosh.f64 im)) (*.f64 2 (cosh.f64 im))) (*.f64 2 (cosh.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (*.f64 2 (cosh.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (*.f64 2 (cosh.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (*.f64 2 (cosh.f64 im)))))))) |
| 1× | egg-herbie |
| 707× | fma-def_binary64 |
| 401× | associate-/l/_binary64 |
| 357× | *-commutative_binary64 |
| 327× | fma-neg_binary64 |
| 300× | associate-/r/_binary64 |
Useful iterations: 3 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 23 | 87 |
| 1 | 51 | 81 |
| 2 | 116 | 79 |
| 3 | 314 | 77 |
| 4 | 1147 | 77 |
| 5 | 3088 | 77 |
| 6 | 4136 | 77 |
| 7 | 6571 | 77 |
| 1× | node limit |
| Inputs |
|---|
2 |
(+.f64 2 (pow.f64 im 2)) |
(+.f64 2 (+.f64 (pow.f64 im 2) (*.f64 1/12 (pow.f64 im 4)))) |
(+.f64 2 (+.f64 (pow.f64 im 2) (+.f64 (*.f64 1/12 (pow.f64 im 4)) (*.f64 1/360 (pow.f64 im 6))))) |
(+.f64 (exp.f64 im) (exp.f64 (*.f64 -1 im))) |
(+.f64 (exp.f64 im) (exp.f64 (*.f64 -1 im))) |
(+.f64 (exp.f64 im) (exp.f64 (*.f64 -1 im))) |
(+.f64 (exp.f64 im) (exp.f64 (*.f64 -1 im))) |
| Outputs |
|---|
2 |
(+.f64 2 (pow.f64 im 2)) |
(+.f64 2 (*.f64 im im)) |
(fma.f64 im im 2) |
(+.f64 2 (+.f64 (pow.f64 im 2) (*.f64 1/12 (pow.f64 im 4)))) |
(+.f64 2 (+.f64 (*.f64 im im) (*.f64 1/12 (pow.f64 im 4)))) |
(+.f64 2 (fma.f64 im im (*.f64 1/12 (pow.f64 im 4)))) |
(fma.f64 1/12 (pow.f64 im 4) (fma.f64 im im 2)) |
(fma.f64 im im (fma.f64 1/12 (pow.f64 im 4) 2)) |
(+.f64 2 (+.f64 (pow.f64 im 2) (+.f64 (*.f64 1/12 (pow.f64 im 4)) (*.f64 1/360 (pow.f64 im 6))))) |
(+.f64 2 (+.f64 (*.f64 im im) (fma.f64 1/12 (pow.f64 im 4) (*.f64 1/360 (pow.f64 im 6))))) |
(+.f64 2 (fma.f64 im im (fma.f64 1/12 (pow.f64 im 4) (*.f64 1/360 (pow.f64 im 6))))) |
(fma.f64 im im (fma.f64 1/12 (pow.f64 im 4) (fma.f64 1/360 (pow.f64 im 6) 2))) |
(fma.f64 im (fma.f64 1/12 (pow.f64 im 3) im) (fma.f64 1/360 (pow.f64 im 6) 2)) |
(+.f64 (exp.f64 im) (exp.f64 (*.f64 -1 im))) |
(+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) |
(+.f64 (exp.f64 im) (exp.f64 (*.f64 -1 im))) |
(+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) |
(+.f64 (exp.f64 im) (exp.f64 (*.f64 -1 im))) |
(+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) |
(+.f64 (exp.f64 im) (exp.f64 (*.f64 -1 im))) |
(+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) |
Found 4 expressions with local error:
| New | Error | Program |
|---|---|---|
| ✓ | 0.0b | (*.f64 (*.f64 1/2 (cos.f64 re)) (expm1.f64 (log1p.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))))) |
| ✓ | 0.0b | (expm1.f64 (log1p.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))) |
| 0.0b | (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)) | |
| ✓ | 1.0b | (log1p.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))) |
Compiled 52 to 15 computations (71.2% saved)
12 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 31.0ms | im | @ | inf | (log1p.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))) |
| 22.0ms | im | @ | -inf | (log1p.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))) |
| 1.0ms | im | @ | 0 | (log1p.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))) |
| 0.0ms | im | @ | 0 | (expm1.f64 (log1p.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))) |
| 0.0ms | re | @ | 0 | (*.f64 (*.f64 1/2 (cos.f64 re)) (expm1.f64 (log1p.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))))) |
| 3× | egg-rewrite-iter-limit |
| 3× | egg-rewrite |
| 1× | batch-egg-rewrite |
| 125× | add-sqr-sqrt_binary64 |
| 125× | add-sqr-sqrt_binary64 |
| 121× | pow1_binary64 |
| 121× | pow1_binary64 |
| 120× | *-un-lft-identity_binary64 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 13 | 42 |
| 1 | 248 | 42 |
| 2 | 3736 | 42 |
| 0 | 7 | 12 |
| 1 | 144 | 12 |
| 2 | 2300 | 12 |
| 0 | 7 | 12 |
| 0 | 8 | 10 |
| 1 | 147 | 10 |
| 2 | 2327 | 10 |
| 0 | 8 | 10 |
| 0 | 13 | 18 |
| 1 | 248 | 18 |
| 2 | 3746 | 18 |
| 0 | 13 | 18 |
| 1× | iter limit |
| 1× | unsound |
| 1× | iter limit |
| 1× | unsound |
| 1× | iter limit |
| 1× | unsound |
| 1× | unsound |
| Inputs |
|---|
(log1p.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))) |
(expm1.f64 (log1p.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))) |
(*.f64 (*.f64 1/2 (cos.f64 re)) (expm1.f64 (log1p.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))))) |
| Outputs |
|---|
((#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (log1p.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 (cbrt.f64 (log1p.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))) (cbrt.f64 (log1p.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))))) (cbrt.f64 (log1p.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (log1p.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))) (sqrt.f64 (log1p.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (log1p.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (log1p.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (+.f64 1 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (*.f64 (*.f64 (log1p.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))) (log1p.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))) (log1p.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (log1p.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (log1p.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))))))))) |
((#(struct:change #<rule egg-rr> (2) ((x +.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (exp.f64 (log1p.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 (cbrt.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))) (cbrt.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))) (cbrt.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))) (sqrt.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 (pow.f64 (exp.f64 (neg.f64 im)) 3) (pow.f64 (exp.f64 im) 3)) (+.f64 (*.f64 (exp.f64 (neg.f64 im)) (exp.f64 (neg.f64 im))) (-.f64 (*.f64 (exp.f64 im) (exp.f64 im)) (*.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (*.f64 (exp.f64 (neg.f64 im)) (exp.f64 (neg.f64 im))) (*.f64 (exp.f64 im) (exp.f64 im))) (-.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (*.f64 (*.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))))))) |
((#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (*.f64 (*.f64 (*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))) (*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))) (*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))))))))) |
| 1× | egg-herbie |
| 640× | associate-+l+_binary64 |
| 634× | distribute-rgt-out_binary64 |
| 487× | distribute-lft-out_binary64 |
| 438× | associate-+r+_binary64 |
| 404× | fma-def_binary64 |
Useful iterations: 4 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 83 | 819 |
| 1 | 235 | 756 |
| 2 | 699 | 720 |
| 3 | 2536 | 715 |
| 4 | 5378 | 713 |
| 5 | 7649 | 713 |
| 1× | node limit |
| Inputs |
|---|
(log.f64 3) |
(+.f64 (*.f64 1/3 (pow.f64 im 2)) (log.f64 3)) |
(+.f64 (*.f64 -1/36 (pow.f64 im 4)) (+.f64 (*.f64 1/3 (pow.f64 im 2)) (log.f64 3))) |
(+.f64 (*.f64 -1/36 (pow.f64 im 4)) (+.f64 (*.f64 1/3 (pow.f64 im 2)) (+.f64 (*.f64 13/3240 (pow.f64 im 6)) (log.f64 3)))) |
(log.f64 (+.f64 1 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) |
(log.f64 (+.f64 1 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) |
(log.f64 (+.f64 1 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) |
(log.f64 (+.f64 1 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) |
(log.f64 (+.f64 (exp.f64 (*.f64 -1 im)) (+.f64 1 (exp.f64 im)))) |
(log.f64 (+.f64 (exp.f64 (*.f64 -1 im)) (+.f64 1 (exp.f64 im)))) |
(log.f64 (+.f64 (exp.f64 (*.f64 -1 im)) (+.f64 1 (exp.f64 im)))) |
(log.f64 (+.f64 (exp.f64 (*.f64 -1 im)) (+.f64 1 (exp.f64 im)))) |
2 |
(+.f64 2 (pow.f64 im 2)) |
(+.f64 2 (+.f64 (pow.f64 im 2) (*.f64 1/12 (pow.f64 im 4)))) |
(+.f64 2 (+.f64 (pow.f64 im 2) (+.f64 (*.f64 1/12 (pow.f64 im 4)) (*.f64 1/360 (pow.f64 im 6))))) |
(+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) |
(+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) |
(+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) |
(+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) |
(+.f64 (exp.f64 im) (exp.f64 (*.f64 -1 im))) |
(+.f64 (exp.f64 im) (exp.f64 (*.f64 -1 im))) |
(+.f64 (exp.f64 im) (exp.f64 (*.f64 -1 im))) |
(+.f64 (exp.f64 im) (exp.f64 (*.f64 -1 im))) |
(*.f64 1/2 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))) |
(+.f64 (*.f64 1/2 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))) (*.f64 -1/4 (*.f64 (pow.f64 re 2) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))))) |
(+.f64 (*.f64 1/2 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))) (+.f64 (*.f64 -1/4 (*.f64 (pow.f64 re 2) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) (*.f64 1/48 (*.f64 (pow.f64 re 4) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))))) |
(+.f64 (*.f64 -1/1440 (*.f64 (pow.f64 re 6) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) (+.f64 (*.f64 1/2 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))) (+.f64 (*.f64 -1/4 (*.f64 (pow.f64 re 2) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) (*.f64 1/48 (*.f64 (pow.f64 re 4) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))))))) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) |
(cos.f64 re) |
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (cos.f64 re)) |
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (+.f64 (cos.f64 re) (*.f64 1/24 (*.f64 (cos.f64 re) (pow.f64 im 4))))) |
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (+.f64 (cos.f64 re) (+.f64 (*.f64 1/24 (*.f64 (cos.f64 re) (pow.f64 im 4))) (*.f64 1/720 (*.f64 (cos.f64 re) (pow.f64 im 6)))))) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (*.f64 -1 im))))) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (*.f64 -1 im))))) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (*.f64 -1 im))))) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (*.f64 -1 im))))) |
| Outputs |
|---|
(log.f64 3) |
(+.f64 (*.f64 1/3 (pow.f64 im 2)) (log.f64 3)) |
(fma.f64 1/3 (*.f64 im im) (log.f64 3)) |
(+.f64 (*.f64 -1/36 (pow.f64 im 4)) (+.f64 (*.f64 1/3 (pow.f64 im 2)) (log.f64 3))) |
(fma.f64 -1/36 (pow.f64 im 4) (fma.f64 1/3 (*.f64 im im) (log.f64 3))) |
(fma.f64 1/3 (*.f64 im im) (fma.f64 -1/36 (pow.f64 im 4) (log.f64 3))) |
(+.f64 (*.f64 -1/36 (pow.f64 im 4)) (+.f64 (*.f64 1/3 (pow.f64 im 2)) (+.f64 (*.f64 13/3240 (pow.f64 im 6)) (log.f64 3)))) |
(fma.f64 -1/36 (pow.f64 im 4) (fma.f64 1/3 (*.f64 im im) (fma.f64 13/3240 (pow.f64 im 6) (log.f64 3)))) |
(fma.f64 1/3 (*.f64 im im) (fma.f64 -1/36 (pow.f64 im 4) (fma.f64 13/3240 (pow.f64 im 6) (log.f64 3)))) |
(log.f64 (+.f64 1 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) |
(log1p.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))) |
(log.f64 (+.f64 1 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) |
(log1p.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))) |
(log.f64 (+.f64 1 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) |
(log1p.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))) |
(log.f64 (+.f64 1 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) |
(log1p.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))) |
(log.f64 (+.f64 (exp.f64 (*.f64 -1 im)) (+.f64 1 (exp.f64 im)))) |
(log1p.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))) |
(log.f64 (+.f64 (exp.f64 (*.f64 -1 im)) (+.f64 1 (exp.f64 im)))) |
(log1p.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))) |
(log.f64 (+.f64 (exp.f64 (*.f64 -1 im)) (+.f64 1 (exp.f64 im)))) |
(log1p.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))) |
(log.f64 (+.f64 (exp.f64 (*.f64 -1 im)) (+.f64 1 (exp.f64 im)))) |
(log1p.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))) |
2 |
(+.f64 2 (pow.f64 im 2)) |
(+.f64 2 (*.f64 im im)) |
(fma.f64 im im 2) |
(+.f64 2 (+.f64 (pow.f64 im 2) (*.f64 1/12 (pow.f64 im 4)))) |
(+.f64 (+.f64 2 (*.f64 im im)) (*.f64 (pow.f64 im 4) 1/12)) |
(+.f64 2 (fma.f64 im im (*.f64 (pow.f64 im 4) 1/12))) |
(fma.f64 (pow.f64 im 4) 1/12 (fma.f64 im im 2)) |
(fma.f64 im im (fma.f64 (pow.f64 im 4) 1/12 2)) |
(+.f64 2 (+.f64 (pow.f64 im 2) (+.f64 (*.f64 1/12 (pow.f64 im 4)) (*.f64 1/360 (pow.f64 im 6))))) |
(+.f64 (+.f64 2 (*.f64 im im)) (fma.f64 1/12 (pow.f64 im 4) (*.f64 (pow.f64 im 6) 1/360))) |
(+.f64 2 (fma.f64 im im (fma.f64 (pow.f64 im 4) 1/12 (*.f64 (pow.f64 im 6) 1/360)))) |
(+.f64 (fma.f64 im im 2) (fma.f64 (pow.f64 im 6) 1/360 (*.f64 (pow.f64 im 4) 1/12))) |
(+.f64 2 (fma.f64 im im (fma.f64 (pow.f64 im 6) 1/360 (*.f64 (pow.f64 im 4) 1/12)))) |
(+.f64 2 (fma.f64 (pow.f64 im 6) 1/360 (fma.f64 (pow.f64 im 4) 1/12 (*.f64 im im)))) |
(+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) |
(+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) |
(+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) |
(+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) |
(+.f64 (exp.f64 im) (exp.f64 (*.f64 -1 im))) |
(+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) |
(+.f64 (exp.f64 im) (exp.f64 (*.f64 -1 im))) |
(+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) |
(+.f64 (exp.f64 im) (exp.f64 (*.f64 -1 im))) |
(+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) |
(+.f64 (exp.f64 im) (exp.f64 (*.f64 -1 im))) |
(+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) |
(*.f64 1/2 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))) |
(*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) 1/2) |
(fma.f64 (exp.f64 im) 1/2 (/.f64 1/2 (exp.f64 im))) |
(+.f64 (*.f64 1/2 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))) (*.f64 -1/4 (*.f64 (pow.f64 re 2) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))))) |
(fma.f64 1/2 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (*.f64 (*.f64 -1/4 (*.f64 re re)) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) |
(*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (+.f64 1/2 (*.f64 -1/4 (*.f64 re re)))) |
(*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (fma.f64 -1/4 (*.f64 re re) 1/2)) |
(+.f64 (*.f64 1/2 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))) (+.f64 (*.f64 -1/4 (*.f64 (pow.f64 re 2) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) (*.f64 1/48 (*.f64 (pow.f64 re 4) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))))) |
(fma.f64 1/2 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (fma.f64 -1/4 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (*.f64 re re)) (*.f64 1/48 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (pow.f64 re 4))))) |
(fma.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) 1/2 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (+.f64 (*.f64 -1/4 (*.f64 re re)) (*.f64 1/48 (pow.f64 re 4))))) |
(*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (+.f64 1/2 (fma.f64 1/48 (pow.f64 re 4) (*.f64 -1/4 (*.f64 re re))))) |
(*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (+.f64 (*.f64 1/48 (pow.f64 re 4)) (fma.f64 -1/4 (*.f64 re re) 1/2))) |
(+.f64 (*.f64 -1/1440 (*.f64 (pow.f64 re 6) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) (+.f64 (*.f64 1/2 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))) (+.f64 (*.f64 -1/4 (*.f64 (pow.f64 re 2) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) (*.f64 1/48 (*.f64 (pow.f64 re 4) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))))))) |
(fma.f64 -1/1440 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (pow.f64 re 6)) (fma.f64 1/2 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (fma.f64 -1/4 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (*.f64 re re)) (*.f64 1/48 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (pow.f64 re 4)))))) |
(+.f64 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (+.f64 (*.f64 -1/4 (*.f64 re re)) (*.f64 1/48 (pow.f64 re 4)))) (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (+.f64 (*.f64 -1/1440 (pow.f64 re 6)) 1/2))) |
(*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (+.f64 (fma.f64 1/48 (pow.f64 re 4) (*.f64 -1/4 (*.f64 re re))) (fma.f64 -1/1440 (pow.f64 re 6) 1/2))) |
(*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (+.f64 (fma.f64 -1/4 (*.f64 re re) (*.f64 1/48 (pow.f64 re 4))) (fma.f64 -1/1440 (pow.f64 re 6) 1/2))) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) |
(*.f64 1/2 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (cos.f64 re))) |
(*.f64 (fma.f64 (exp.f64 im) 1/2 (/.f64 1/2 (exp.f64 im))) (cos.f64 re)) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) |
(*.f64 1/2 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (cos.f64 re))) |
(*.f64 (fma.f64 (exp.f64 im) 1/2 (/.f64 1/2 (exp.f64 im))) (cos.f64 re)) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) |
(*.f64 1/2 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (cos.f64 re))) |
(*.f64 (fma.f64 (exp.f64 im) 1/2 (/.f64 1/2 (exp.f64 im))) (cos.f64 re)) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) |
(*.f64 1/2 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (cos.f64 re))) |
(*.f64 (fma.f64 (exp.f64 im) 1/2 (/.f64 1/2 (exp.f64 im))) (cos.f64 re)) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) |
(*.f64 1/2 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (cos.f64 re))) |
(*.f64 (fma.f64 (exp.f64 im) 1/2 (/.f64 1/2 (exp.f64 im))) (cos.f64 re)) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) |
(*.f64 1/2 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (cos.f64 re))) |
(*.f64 (fma.f64 (exp.f64 im) 1/2 (/.f64 1/2 (exp.f64 im))) (cos.f64 re)) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) |
(*.f64 1/2 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (cos.f64 re))) |
(*.f64 (fma.f64 (exp.f64 im) 1/2 (/.f64 1/2 (exp.f64 im))) (cos.f64 re)) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) |
(*.f64 1/2 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (cos.f64 re))) |
(*.f64 (fma.f64 (exp.f64 im) 1/2 (/.f64 1/2 (exp.f64 im))) (cos.f64 re)) |
(cos.f64 re) |
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (cos.f64 re)) |
(fma.f64 1/2 (*.f64 (*.f64 im im) (cos.f64 re)) (cos.f64 re)) |
(fma.f64 (*.f64 1/2 (cos.f64 re)) (*.f64 im im) (cos.f64 re)) |
(fma.f64 (*.f64 im im) (*.f64 1/2 (cos.f64 re)) (cos.f64 re)) |
(fma.f64 (cos.f64 re) (*.f64 (*.f64 im im) 1/2) (cos.f64 re)) |
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (+.f64 (cos.f64 re) (*.f64 1/24 (*.f64 (cos.f64 re) (pow.f64 im 4))))) |
(+.f64 (fma.f64 1/2 (*.f64 (*.f64 im im) (cos.f64 re)) (cos.f64 re)) (*.f64 1/24 (*.f64 (pow.f64 im 4) (cos.f64 re)))) |
(fma.f64 1/2 (*.f64 im (*.f64 im (cos.f64 re))) (fma.f64 1/24 (*.f64 (pow.f64 im 4) (cos.f64 re)) (cos.f64 re))) |
(+.f64 (cos.f64 re) (*.f64 (cos.f64 re) (+.f64 (*.f64 (*.f64 im im) 1/2) (*.f64 (pow.f64 im 4) 1/24)))) |
(*.f64 (cos.f64 re) (+.f64 (*.f64 (*.f64 im im) 1/2) (+.f64 1 (*.f64 (pow.f64 im 4) 1/24)))) |
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (+.f64 (cos.f64 re) (+.f64 (*.f64 1/24 (*.f64 (cos.f64 re) (pow.f64 im 4))) (*.f64 1/720 (*.f64 (cos.f64 re) (pow.f64 im 6)))))) |
(+.f64 (fma.f64 1/2 (*.f64 (*.f64 im im) (cos.f64 re)) (cos.f64 re)) (fma.f64 1/24 (*.f64 (pow.f64 im 4) (cos.f64 re)) (*.f64 (*.f64 1/720 (cos.f64 re)) (pow.f64 im 6)))) |
(+.f64 (fma.f64 (*.f64 1/2 (cos.f64 re)) (*.f64 im im) (cos.f64 re)) (fma.f64 1/24 (*.f64 (pow.f64 im 4) (cos.f64 re)) (*.f64 (pow.f64 im 6) (*.f64 (cos.f64 re) 1/720)))) |
(+.f64 (cos.f64 re) (fma.f64 (*.f64 im im) (*.f64 1/2 (cos.f64 re)) (*.f64 (cos.f64 re) (+.f64 (*.f64 (pow.f64 im 6) 1/720) (*.f64 (pow.f64 im 4) 1/24))))) |
(+.f64 (cos.f64 re) (*.f64 (cos.f64 re) (+.f64 (*.f64 (pow.f64 im 6) 1/720) (+.f64 (*.f64 (*.f64 im im) 1/2) (*.f64 (pow.f64 im 4) 1/24))))) |
(*.f64 (cos.f64 re) (+.f64 1 (+.f64 (*.f64 (pow.f64 im 6) 1/720) (+.f64 (*.f64 (*.f64 im im) 1/2) (*.f64 (pow.f64 im 4) 1/24))))) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) |
(*.f64 1/2 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (cos.f64 re))) |
(*.f64 (fma.f64 (exp.f64 im) 1/2 (/.f64 1/2 (exp.f64 im))) (cos.f64 re)) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) |
(*.f64 1/2 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (cos.f64 re))) |
(*.f64 (fma.f64 (exp.f64 im) 1/2 (/.f64 1/2 (exp.f64 im))) (cos.f64 re)) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) |
(*.f64 1/2 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (cos.f64 re))) |
(*.f64 (fma.f64 (exp.f64 im) 1/2 (/.f64 1/2 (exp.f64 im))) (cos.f64 re)) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) |
(*.f64 1/2 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (cos.f64 re))) |
(*.f64 (fma.f64 (exp.f64 im) 1/2 (/.f64 1/2 (exp.f64 im))) (cos.f64 re)) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (*.f64 -1 im))))) |
(*.f64 1/2 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (cos.f64 re))) |
(*.f64 (fma.f64 (exp.f64 im) 1/2 (/.f64 1/2 (exp.f64 im))) (cos.f64 re)) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (*.f64 -1 im))))) |
(*.f64 1/2 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (cos.f64 re))) |
(*.f64 (fma.f64 (exp.f64 im) 1/2 (/.f64 1/2 (exp.f64 im))) (cos.f64 re)) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (*.f64 -1 im))))) |
(*.f64 1/2 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (cos.f64 re))) |
(*.f64 (fma.f64 (exp.f64 im) 1/2 (/.f64 1/2 (exp.f64 im))) (cos.f64 re)) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (*.f64 -1 im))))) |
(*.f64 1/2 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (cos.f64 re))) |
(*.f64 (fma.f64 (exp.f64 im) 1/2 (/.f64 1/2 (exp.f64 im))) (cos.f64 re)) |
Compiled 5207 to 3151 computations (39.5% saved)
10 alts after pruning (6 fresh and 4 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 283 | 5 | 288 |
| Fresh | 0 | 1 | 1 |
| Picked | 0 | 1 | 1 |
| Done | 2 | 3 | 5 |
| Total | 285 | 10 | 295 |
| Status | Error | Program |
|---|---|---|
| ✓ | 0.0b | (*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))) |
| ✓ | 0.7b | (*.f64 (cos.f64 re) (+.f64 1 (*.f64 im (*.f64 im 1/2)))) |
| ✓ | 1.4b | (*.f64 (*.f64 1/2 (cos.f64 re)) (expm1.f64 (log1p.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))))) |
| ✓ | 0.9b | (cos.f64 re) |
| ▶ | 61.3b | (*.f64 1/2 (*.f64 (*.f64 im im) (cos.f64 re))) |
| ▶ | 26.5b | (*.f64 1/2 (+.f64 2 (+.f64 (pow.f64 im 2) (*.f64 1/12 (pow.f64 im 4))))) |
| ▶ | 1.1b | (*.f64 (*.f64 1/2 (cos.f64 re)) (*.f64 (sqrt.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))) (sqrt.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))))) |
| ▶ | 26.7b | (*.f64 1/2 2) |
| 29.3b | (*.f64 (fma.f64 1/2 (*.f64 im im) 1) (fma.f64 -1/2 (*.f64 re re) 1)) | |
| ▶ | 26.3b | (*.f64 1/2 (*.f64 2 (cosh.f64 im))) |
Compiled 194 to 144 computations (25.8% saved)
Found 3 expressions with local error:
| New | Error | Program |
|---|---|---|
| ✓ | 0.0b | (*.f64 (*.f64 1/2 (cos.f64 re)) (*.f64 (sqrt.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))) (sqrt.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))))) |
| 0.0b | (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)) | |
| ✓ | 1.0b | (*.f64 (sqrt.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))) (sqrt.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))) |
Compiled 66 to 15 computations (77.3% saved)
9 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 0.0ms | im | @ | 0 | (*.f64 (sqrt.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))) (sqrt.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))) |
| 0.0ms | im | @ | -inf | (*.f64 (*.f64 1/2 (cos.f64 re)) (*.f64 (sqrt.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))) (sqrt.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))))) |
| 0.0ms | re | @ | 0 | (*.f64 (*.f64 1/2 (cos.f64 re)) (*.f64 (sqrt.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))) (sqrt.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))))) |
| 0.0ms | im | @ | inf | (*.f64 (sqrt.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))) (sqrt.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))) |
| 0.0ms | im | @ | 0 | (*.f64 (*.f64 1/2 (cos.f64 re)) (*.f64 (sqrt.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))) (sqrt.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))))) |
| 2× | egg-rewrite-iter-limit |
| 2× | egg-rewrite |
| 1× | batch-egg-rewrite |
| 127× | add-sqr-sqrt_binary64 |
| 127× | add-sqr-sqrt_binary64 |
| 122× | pow1_binary64 |
| 122× | pow1_binary64 |
| 121× | *-un-lft-identity_binary64 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 13 | 28 |
| 1 | 269 | 28 |
| 2 | 3823 | 28 |
| 0 | 8 | 10 |
| 1 | 167 | 10 |
| 2 | 2388 | 10 |
| 0 | 8 | 10 |
| 0 | 13 | 18 |
| 1 | 269 | 18 |
| 2 | 3831 | 18 |
| 0 | 13 | 18 |
| 1× | iter limit |
| 1× | unsound |
| 1× | iter limit |
| 1× | unsound |
| 1× | unsound |
| Inputs |
|---|
(*.f64 (sqrt.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))) (sqrt.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))) |
(*.f64 (*.f64 1/2 (cos.f64 re)) (*.f64 (sqrt.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))) (sqrt.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))))) |
| Outputs |
|---|
((#(struct:change #<rule egg-rr> (2) ((x +.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 (pow.f64 (exp.f64 (neg.f64 im)) 3) (pow.f64 (exp.f64 im) 3)) (+.f64 (*.f64 (exp.f64 (neg.f64 im)) (exp.f64 (neg.f64 im))) (-.f64 (*.f64 (exp.f64 im) (exp.f64 im)) (*.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (*.f64 (exp.f64 (neg.f64 im)) (exp.f64 (neg.f64 im))) (*.f64 (exp.f64 im) (exp.f64 im))) (-.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))) 2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (*.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (*.f64 (*.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))))))) |
((#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (*.f64 (*.f64 (*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))) (*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))) (*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))))))))) |
| 1× | egg-herbie |
| 613× | associate-+l+_binary64 |
| 607× | distribute-rgt-out_binary64 |
| 435× | distribute-lft-out_binary64 |
| 417× | associate-+r+_binary64 |
| 363× | *-commutative_binary64 |
Useful iterations: 4 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 64 | 669 |
| 1 | 190 | 606 |
| 2 | 609 | 570 |
| 3 | 2284 | 565 |
| 4 | 5021 | 563 |
| 5 | 7232 | 563 |
| 1× | node limit |
| Inputs |
|---|
2 |
(+.f64 2 (pow.f64 im 2)) |
(+.f64 2 (+.f64 (pow.f64 im 2) (*.f64 1/12 (pow.f64 im 4)))) |
(+.f64 2 (+.f64 (pow.f64 im 2) (+.f64 (*.f64 1/12 (pow.f64 im 4)) (*.f64 1/360 (pow.f64 im 6))))) |
(+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) |
(+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) |
(+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) |
(+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) |
(+.f64 (exp.f64 im) (exp.f64 (*.f64 -1 im))) |
(+.f64 (exp.f64 im) (exp.f64 (*.f64 -1 im))) |
(+.f64 (exp.f64 im) (exp.f64 (*.f64 -1 im))) |
(+.f64 (exp.f64 im) (exp.f64 (*.f64 -1 im))) |
(*.f64 1/2 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))) |
(+.f64 (*.f64 1/2 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))) (*.f64 -1/4 (*.f64 (pow.f64 re 2) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))))) |
(+.f64 (*.f64 1/2 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))) (+.f64 (*.f64 -1/4 (*.f64 (pow.f64 re 2) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) (*.f64 1/48 (*.f64 (pow.f64 re 4) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))))) |
(+.f64 (*.f64 -1/1440 (*.f64 (pow.f64 re 6) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) (+.f64 (*.f64 1/2 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))) (+.f64 (*.f64 -1/4 (*.f64 (pow.f64 re 2) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) (*.f64 1/48 (*.f64 (pow.f64 re 4) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))))))) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) |
(cos.f64 re) |
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (cos.f64 re)) |
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (+.f64 (cos.f64 re) (*.f64 1/24 (*.f64 (cos.f64 re) (pow.f64 im 4))))) |
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (+.f64 (cos.f64 re) (+.f64 (*.f64 1/24 (*.f64 (cos.f64 re) (pow.f64 im 4))) (*.f64 1/720 (*.f64 (cos.f64 re) (pow.f64 im 6)))))) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (*.f64 -1 im))))) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (*.f64 -1 im))))) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (*.f64 -1 im))))) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (*.f64 -1 im))))) |
| Outputs |
|---|
2 |
(+.f64 2 (pow.f64 im 2)) |
(+.f64 2 (*.f64 im im)) |
(fma.f64 im im 2) |
(+.f64 2 (+.f64 (pow.f64 im 2) (*.f64 1/12 (pow.f64 im 4)))) |
(+.f64 2 (+.f64 (*.f64 im im) (*.f64 1/12 (pow.f64 im 4)))) |
(+.f64 2 (fma.f64 im im (*.f64 1/12 (pow.f64 im 4)))) |
(fma.f64 im im (fma.f64 1/12 (pow.f64 im 4) 2)) |
(+.f64 2 (+.f64 (pow.f64 im 2) (+.f64 (*.f64 1/12 (pow.f64 im 4)) (*.f64 1/360 (pow.f64 im 6))))) |
(+.f64 2 (+.f64 (*.f64 im im) (fma.f64 1/12 (pow.f64 im 4) (*.f64 1/360 (pow.f64 im 6))))) |
(+.f64 2 (fma.f64 im im (fma.f64 1/12 (pow.f64 im 4) (*.f64 1/360 (pow.f64 im 6))))) |
(+.f64 (fma.f64 1/12 (pow.f64 im 4) (*.f64 im im)) (fma.f64 1/360 (pow.f64 im 6) 2)) |
(+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) |
(+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) |
(+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) |
(+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) |
(+.f64 (exp.f64 im) (exp.f64 (*.f64 -1 im))) |
(+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) |
(+.f64 (exp.f64 im) (exp.f64 (*.f64 -1 im))) |
(+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) |
(+.f64 (exp.f64 im) (exp.f64 (*.f64 -1 im))) |
(+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) |
(+.f64 (exp.f64 im) (exp.f64 (*.f64 -1 im))) |
(+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) |
(*.f64 1/2 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))) |
(*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) 1/2) |
(fma.f64 (exp.f64 im) 1/2 (/.f64 1/2 (exp.f64 im))) |
(+.f64 (*.f64 1/2 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))) (*.f64 -1/4 (*.f64 (pow.f64 re 2) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))))) |
(fma.f64 1/2 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (*.f64 -1/4 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (*.f64 re re)))) |
(*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (+.f64 1/2 (*.f64 -1/4 (*.f64 re re)))) |
(*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (fma.f64 (*.f64 -1/4 re) re 1/2)) |
(*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (fma.f64 -1/4 (*.f64 re re) 1/2)) |
(+.f64 (*.f64 1/2 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))) (+.f64 (*.f64 -1/4 (*.f64 (pow.f64 re 2) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) (*.f64 1/48 (*.f64 (pow.f64 re 4) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))))) |
(fma.f64 1/2 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (fma.f64 -1/4 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (*.f64 re re)) (*.f64 1/48 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (pow.f64 re 4))))) |
(fma.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) 1/2 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (+.f64 (*.f64 -1/4 (*.f64 re re)) (*.f64 1/48 (pow.f64 re 4))))) |
(*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (+.f64 1/2 (fma.f64 1/48 (pow.f64 re 4) (*.f64 -1/4 (*.f64 re re))))) |
(+.f64 (*.f64 -1/1440 (*.f64 (pow.f64 re 6) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) (+.f64 (*.f64 1/2 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))) (+.f64 (*.f64 -1/4 (*.f64 (pow.f64 re 2) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) (*.f64 1/48 (*.f64 (pow.f64 re 4) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))))))) |
(fma.f64 -1/1440 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (pow.f64 re 6)) (fma.f64 1/2 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (fma.f64 -1/4 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (*.f64 re re)) (*.f64 1/48 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (pow.f64 re 4)))))) |
(+.f64 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (+.f64 (*.f64 -1/4 (*.f64 re re)) (*.f64 1/48 (pow.f64 re 4)))) (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (+.f64 (*.f64 -1/1440 (pow.f64 re 6)) 1/2))) |
(*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (+.f64 (fma.f64 1/48 (pow.f64 re 4) (*.f64 -1/4 (*.f64 re re))) (fma.f64 -1/1440 (pow.f64 re 6) 1/2))) |
(*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (+.f64 (fma.f64 -1/1440 (pow.f64 re 6) 1/2) (fma.f64 1/48 (pow.f64 re 4) (*.f64 -1/4 (*.f64 re re))))) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) |
(*.f64 1/2 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (cos.f64 re))) |
(*.f64 (fma.f64 (exp.f64 im) 1/2 (/.f64 1/2 (exp.f64 im))) (cos.f64 re)) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) |
(*.f64 1/2 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (cos.f64 re))) |
(*.f64 (fma.f64 (exp.f64 im) 1/2 (/.f64 1/2 (exp.f64 im))) (cos.f64 re)) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) |
(*.f64 1/2 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (cos.f64 re))) |
(*.f64 (fma.f64 (exp.f64 im) 1/2 (/.f64 1/2 (exp.f64 im))) (cos.f64 re)) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) |
(*.f64 1/2 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (cos.f64 re))) |
(*.f64 (fma.f64 (exp.f64 im) 1/2 (/.f64 1/2 (exp.f64 im))) (cos.f64 re)) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) |
(*.f64 1/2 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (cos.f64 re))) |
(*.f64 (fma.f64 (exp.f64 im) 1/2 (/.f64 1/2 (exp.f64 im))) (cos.f64 re)) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) |
(*.f64 1/2 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (cos.f64 re))) |
(*.f64 (fma.f64 (exp.f64 im) 1/2 (/.f64 1/2 (exp.f64 im))) (cos.f64 re)) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) |
(*.f64 1/2 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (cos.f64 re))) |
(*.f64 (fma.f64 (exp.f64 im) 1/2 (/.f64 1/2 (exp.f64 im))) (cos.f64 re)) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) |
(*.f64 1/2 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (cos.f64 re))) |
(*.f64 (fma.f64 (exp.f64 im) 1/2 (/.f64 1/2 (exp.f64 im))) (cos.f64 re)) |
(cos.f64 re) |
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (cos.f64 re)) |
(fma.f64 1/2 (*.f64 (*.f64 im im) (cos.f64 re)) (cos.f64 re)) |
(fma.f64 (*.f64 1/2 (cos.f64 re)) (*.f64 im im) (cos.f64 re)) |
(*.f64 (+.f64 (*.f64 im (*.f64 im 1/2)) 1) (cos.f64 re)) |
(fma.f64 (*.f64 im im) (*.f64 1/2 (cos.f64 re)) (cos.f64 re)) |
(*.f64 (cos.f64 re) (+.f64 1 (*.f64 im (*.f64 im 1/2)))) |
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (+.f64 (cos.f64 re) (*.f64 1/24 (*.f64 (cos.f64 re) (pow.f64 im 4))))) |
(fma.f64 1/2 (*.f64 (*.f64 im im) (cos.f64 re)) (+.f64 (cos.f64 re) (*.f64 1/24 (*.f64 (pow.f64 im 4) (cos.f64 re))))) |
(fma.f64 1/2 (*.f64 im (*.f64 im (cos.f64 re))) (fma.f64 1/24 (*.f64 (pow.f64 im 4) (cos.f64 re)) (cos.f64 re))) |
(+.f64 (cos.f64 re) (*.f64 (cos.f64 re) (+.f64 (*.f64 im (*.f64 im 1/2)) (*.f64 (pow.f64 im 4) 1/24)))) |
(*.f64 (cos.f64 re) (+.f64 (+.f64 1 (*.f64 im (*.f64 im 1/2))) (*.f64 (pow.f64 im 4) 1/24))) |
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (+.f64 (cos.f64 re) (+.f64 (*.f64 1/24 (*.f64 (cos.f64 re) (pow.f64 im 4))) (*.f64 1/720 (*.f64 (cos.f64 re) (pow.f64 im 6)))))) |
(+.f64 (fma.f64 1/2 (*.f64 (*.f64 im im) (cos.f64 re)) (cos.f64 re)) (fma.f64 1/24 (*.f64 (pow.f64 im 4) (cos.f64 re)) (*.f64 1/720 (*.f64 (pow.f64 im 6) (cos.f64 re))))) |
(+.f64 (fma.f64 (*.f64 1/2 (cos.f64 re)) (*.f64 im im) (cos.f64 re)) (fma.f64 1/24 (*.f64 (pow.f64 im 4) (cos.f64 re)) (*.f64 (pow.f64 im 6) (*.f64 (cos.f64 re) 1/720)))) |
(+.f64 (*.f64 (+.f64 (*.f64 im (*.f64 im 1/2)) 1) (cos.f64 re)) (*.f64 (cos.f64 re) (+.f64 (*.f64 (pow.f64 im 4) 1/24) (*.f64 (pow.f64 im 6) 1/720)))) |
(+.f64 (cos.f64 re) (*.f64 (cos.f64 re) (+.f64 (+.f64 (*.f64 (pow.f64 im 6) 1/720) (*.f64 im (*.f64 im 1/2))) (*.f64 (pow.f64 im 4) 1/24)))) |
(*.f64 (cos.f64 re) (+.f64 1 (+.f64 (+.f64 (*.f64 (pow.f64 im 6) 1/720) (*.f64 im (*.f64 im 1/2))) (*.f64 (pow.f64 im 4) 1/24)))) |
(*.f64 (cos.f64 re) (+.f64 1 (+.f64 (*.f64 im (+.f64 (*.f64 im 1/2) (*.f64 1/24 (pow.f64 im 3)))) (*.f64 (pow.f64 im 6) 1/720)))) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) |
(*.f64 1/2 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (cos.f64 re))) |
(*.f64 (fma.f64 (exp.f64 im) 1/2 (/.f64 1/2 (exp.f64 im))) (cos.f64 re)) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) |
(*.f64 1/2 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (cos.f64 re))) |
(*.f64 (fma.f64 (exp.f64 im) 1/2 (/.f64 1/2 (exp.f64 im))) (cos.f64 re)) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) |
(*.f64 1/2 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (cos.f64 re))) |
(*.f64 (fma.f64 (exp.f64 im) 1/2 (/.f64 1/2 (exp.f64 im))) (cos.f64 re)) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) |
(*.f64 1/2 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (cos.f64 re))) |
(*.f64 (fma.f64 (exp.f64 im) 1/2 (/.f64 1/2 (exp.f64 im))) (cos.f64 re)) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (*.f64 -1 im))))) |
(*.f64 1/2 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (cos.f64 re))) |
(*.f64 (fma.f64 (exp.f64 im) 1/2 (/.f64 1/2 (exp.f64 im))) (cos.f64 re)) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (*.f64 -1 im))))) |
(*.f64 1/2 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (cos.f64 re))) |
(*.f64 (fma.f64 (exp.f64 im) 1/2 (/.f64 1/2 (exp.f64 im))) (cos.f64 re)) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (*.f64 -1 im))))) |
(*.f64 1/2 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (cos.f64 re))) |
(*.f64 (fma.f64 (exp.f64 im) 1/2 (/.f64 1/2 (exp.f64 im))) (cos.f64 re)) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (*.f64 -1 im))))) |
(*.f64 1/2 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (cos.f64 re))) |
(*.f64 (fma.f64 (exp.f64 im) 1/2 (/.f64 1/2 (exp.f64 im))) (cos.f64 re)) |
Compiled 7 to 7 computations (0% saved)
Found 1 expressions with local error:
| New | Error | Program |
|---|---|---|
| ✓ | 0.0b | (cosh.f64 im) |
Compiled 17 to 11 computations (35.3% saved)
3 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 1.0ms | im | @ | -inf | (cosh.f64 im) |
| 1.0ms | im | @ | inf | (cosh.f64 im) |
| 1.0ms | im | @ | 0 | (cosh.f64 im) |
| 1× | egg-rewrite-iter-limit |
| 1× | batch-egg-rewrite |
| 315× | pow1_binary64 |
| 308× | add-sqr-sqrt_binary64 |
| 299× | *-un-lft-identity_binary64 |
| 294× | add-log-exp_binary64 |
| 293× | log1p-expm1-u_binary64 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 3 | 3 |
| 1 | 63 | 3 |
| 2 | 781 | 3 |
| 0 | 3 | 3 |
| 1× | iter limit |
| 1× | node limit |
| Inputs |
|---|
(cosh.f64 im) |
| Outputs |
|---|
((#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (cosh.f64 im))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 (cbrt.f64 (cosh.f64 im)) (cbrt.f64 (cosh.f64 im))) (cbrt.f64 (cosh.f64 im)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (cosh.f64 im)) (sqrt.f64 (cosh.f64 im)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) 2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cosh.f64 im) 1)))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (cosh.f64 im)))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (*.f64 (*.f64 (cosh.f64 im) (cosh.f64 im)) (cosh.f64 im)))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (cosh.f64 im)))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (cosh.f64 im)))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (cosh.f64 im))))))) |
| 1× | egg-herbie |
| 729× | fma-def_binary64 |
| 402× | associate-/l/_binary64 |
| 399× | *-commutative_binary64 |
| 326× | distribute-lft-out_binary64 |
| 319× | associate-/r/_binary64 |
Useful iterations: 3 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 25 | 156 |
| 1 | 62 | 154 |
| 2 | 131 | 144 |
| 3 | 362 | 142 |
| 4 | 1219 | 142 |
| 5 | 3056 | 142 |
| 6 | 3831 | 142 |
| 7 | 4794 | 142 |
| 8 | 7914 | 142 |
| 1× | node limit |
| Inputs |
|---|
1 |
(+.f64 1 (*.f64 1/2 (pow.f64 im 2))) |
(+.f64 1 (+.f64 (*.f64 1/2 (pow.f64 im 2)) (*.f64 1/24 (pow.f64 im 4)))) |
(+.f64 1 (+.f64 (*.f64 1/2 (pow.f64 im 2)) (+.f64 (*.f64 1/24 (pow.f64 im 4)) (*.f64 1/720 (pow.f64 im 6))))) |
(*.f64 1/2 (+.f64 (/.f64 1 (exp.f64 im)) (exp.f64 im))) |
(*.f64 1/2 (+.f64 (/.f64 1 (exp.f64 im)) (exp.f64 im))) |
(*.f64 1/2 (+.f64 (/.f64 1 (exp.f64 im)) (exp.f64 im))) |
(*.f64 1/2 (+.f64 (/.f64 1 (exp.f64 im)) (exp.f64 im))) |
(*.f64 1/2 (+.f64 (/.f64 1 (exp.f64 im)) (exp.f64 im))) |
(*.f64 1/2 (+.f64 (/.f64 1 (exp.f64 im)) (exp.f64 im))) |
(*.f64 1/2 (+.f64 (/.f64 1 (exp.f64 im)) (exp.f64 im))) |
(*.f64 1/2 (+.f64 (/.f64 1 (exp.f64 im)) (exp.f64 im))) |
| Outputs |
|---|
1 |
(+.f64 1 (*.f64 1/2 (pow.f64 im 2))) |
(+.f64 1 (*.f64 1/2 (*.f64 im im))) |
(fma.f64 1/2 (*.f64 im im) 1) |
(+.f64 1 (+.f64 (*.f64 1/2 (pow.f64 im 2)) (*.f64 1/24 (pow.f64 im 4)))) |
(+.f64 1 (fma.f64 1/2 (*.f64 im im) (*.f64 1/24 (pow.f64 im 4)))) |
(fma.f64 1/2 (*.f64 im im) (fma.f64 1/24 (pow.f64 im 4) 1)) |
(+.f64 1 (+.f64 (*.f64 1/2 (pow.f64 im 2)) (+.f64 (*.f64 1/24 (pow.f64 im 4)) (*.f64 1/720 (pow.f64 im 6))))) |
(+.f64 1 (fma.f64 1/2 (*.f64 im im) (fma.f64 1/24 (pow.f64 im 4) (*.f64 1/720 (pow.f64 im 6))))) |
(+.f64 (fma.f64 1/2 (*.f64 im im) 1) (fma.f64 1/720 (pow.f64 im 6) (*.f64 1/24 (pow.f64 im 4)))) |
(fma.f64 1/720 (pow.f64 im 6) (fma.f64 1/2 (*.f64 im im) (fma.f64 1/24 (pow.f64 im 4) 1))) |
(fma.f64 im (*.f64 im (fma.f64 (pow.f64 im 4) 1/720 1/2)) (fma.f64 1/24 (pow.f64 im 4) 1)) |
(*.f64 1/2 (+.f64 (/.f64 1 (exp.f64 im)) (exp.f64 im))) |
(*.f64 1/2 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))) |
(fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))) |
(*.f64 1/2 (+.f64 (/.f64 1 (exp.f64 im)) (exp.f64 im))) |
(*.f64 1/2 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))) |
(fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))) |
(*.f64 1/2 (+.f64 (/.f64 1 (exp.f64 im)) (exp.f64 im))) |
(*.f64 1/2 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))) |
(fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))) |
(*.f64 1/2 (+.f64 (/.f64 1 (exp.f64 im)) (exp.f64 im))) |
(*.f64 1/2 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))) |
(fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))) |
(*.f64 1/2 (+.f64 (/.f64 1 (exp.f64 im)) (exp.f64 im))) |
(*.f64 1/2 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))) |
(fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))) |
(*.f64 1/2 (+.f64 (/.f64 1 (exp.f64 im)) (exp.f64 im))) |
(*.f64 1/2 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))) |
(fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))) |
(*.f64 1/2 (+.f64 (/.f64 1 (exp.f64 im)) (exp.f64 im))) |
(*.f64 1/2 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))) |
(fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))) |
(*.f64 1/2 (+.f64 (/.f64 1 (exp.f64 im)) (exp.f64 im))) |
(*.f64 1/2 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))) |
(fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))) |
Found 2 expressions with local error:
| New | Error | Program |
|---|---|---|
| ✓ | 0.0b | (*.f64 1/2 (*.f64 (*.f64 im im) (cos.f64 re))) |
| ✓ | 0.1b | (*.f64 (*.f64 im im) (cos.f64 re)) |
Compiled 24 to 8 computations (66.7% saved)
12 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 1.0ms | re | @ | 0 | (*.f64 1/2 (*.f64 (*.f64 im im) (cos.f64 re))) |
| 1.0ms | im | @ | 0 | (*.f64 (*.f64 im im) (cos.f64 re)) |
| 1.0ms | re | @ | -inf | (*.f64 1/2 (*.f64 (*.f64 im im) (cos.f64 re))) |
| 1.0ms | re | @ | inf | (*.f64 1/2 (*.f64 (*.f64 im im) (cos.f64 re))) |
| 0.0ms | im | @ | inf | (*.f64 (*.f64 im im) (cos.f64 re)) |
| 1× | batch-egg-rewrite |
| 741× | pow1_binary64 |
| 682× | add-log-exp_binary64 |
| 682× | log1p-expm1-u_binary64 |
| 682× | expm1-log1p-u_binary64 |
| 666× | add-exp-log_binary64 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 8 | 21 |
| 1 | 162 | 21 |
| 2 | 1904 | 21 |
| 1× | node limit |
| Inputs |
|---|
(*.f64 (*.f64 im im) (cos.f64 re)) |
(*.f64 1/2 (*.f64 (*.f64 im im) (cos.f64 re))) |
| Outputs |
|---|
((#(struct:change #<rule egg-rr> (2) ((x -.f64 (+.f64 1 (*.f64 (*.f64 im im) (cos.f64 re))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 (*.f64 im im) (cos.f64 re)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (*.f64 (*.f64 im im) (cos.f64 re)) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (*.f64 (*.f64 im im) (cos.f64 re))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 im (sqrt.f64 (cos.f64 re))) 2)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (*.f64 (pow.f64 (cos.f64 re) 2) (pow.f64 im 4)))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (pow.f64 (exp.f64 (cos.f64 re)) (*.f64 im im)))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (*.f64 (*.f64 im im) (cos.f64 re)) 3))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (*.f64 (pow.f64 (*.f64 im im) 3) (pow.f64 (cos.f64 re) 3)))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (*.f64 (pow.f64 (cos.f64 re) 3) (pow.f64 (*.f64 im im) 3)))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (*.f64 (*.f64 im im) (cos.f64 re))))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (*.f64 (*.f64 im im) (cos.f64 re))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (*.f64 (*.f64 im im) (cos.f64 re)))))))) |
((#(struct:change #<rule egg-rr> (2) ((x -.f64 (+.f64 1 (*.f64 (*.f64 im im) (*.f64 (cos.f64 re) 1/2))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 (*.f64 im im) (*.f64 (cos.f64 re) 1/2)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (*.f64 (*.f64 im im) (*.f64 (cos.f64 re) 1/2)) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (*.f64 (*.f64 im im) (*.f64 (cos.f64 re) 1/2))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 (*.f64 im (sqrt.f64 (cos.f64 re))) (sqrt.f64 1/2)) 2)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (*.f64 (*.f64 (pow.f64 (cos.f64 re) 2) (pow.f64 im 4)) 1/4))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (pow.f64 (pow.f64 (exp.f64 (cos.f64 re)) (*.f64 im im)) 1/2))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (*.f64 (*.f64 im im) (*.f64 (cos.f64 re) 1/2)) 3))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (*.f64 (*.f64 im im) (*.f64 (cos.f64 re) 1/2))))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (*.f64 (*.f64 im im) (*.f64 (cos.f64 re) 1/2))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (*.f64 (*.f64 im im) (*.f64 (cos.f64 re) 1/2)))))))) |
| 1× | egg-herbie |
| 840× | unswap-sqr_binary64 |
| 830× | distribute-rgt-in_binary64 |
| 744× | distribute-lft-out_binary64 |
| 425× | sqr-pow_binary64 |
| 363× | *-commutative_binary64 |
Useful iterations: 3 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 39 | 626 |
| 1 | 103 | 600 |
| 2 | 334 | 568 |
| 3 | 1431 | 565 |
| 4 | 2748 | 565 |
| 5 | 4697 | 565 |
| 6 | 5435 | 565 |
| 7 | 5726 | 565 |
| 8 | 5920 | 565 |
| 9 | 6137 | 565 |
| 10 | 6432 | 565 |
| 11 | 6791 | 565 |
| 1× | node limit |
| Inputs |
|---|
(*.f64 (cos.f64 re) (pow.f64 im 2)) |
(*.f64 (cos.f64 re) (pow.f64 im 2)) |
(*.f64 (cos.f64 re) (pow.f64 im 2)) |
(*.f64 (cos.f64 re) (pow.f64 im 2)) |
(*.f64 (cos.f64 re) (pow.f64 im 2)) |
(*.f64 (cos.f64 re) (pow.f64 im 2)) |
(*.f64 (cos.f64 re) (pow.f64 im 2)) |
(*.f64 (cos.f64 re) (pow.f64 im 2)) |
(*.f64 (cos.f64 re) (pow.f64 im 2)) |
(*.f64 (cos.f64 re) (pow.f64 im 2)) |
(*.f64 (cos.f64 re) (pow.f64 im 2)) |
(*.f64 (cos.f64 re) (pow.f64 im 2)) |
(pow.f64 im 2) |
(+.f64 (pow.f64 im 2) (*.f64 -1/2 (*.f64 (pow.f64 re 2) (pow.f64 im 2)))) |
(+.f64 (*.f64 1/24 (*.f64 (pow.f64 re 4) (pow.f64 im 2))) (+.f64 (pow.f64 im 2) (*.f64 -1/2 (*.f64 (pow.f64 re 2) (pow.f64 im 2))))) |
(+.f64 (*.f64 1/24 (*.f64 (pow.f64 re 4) (pow.f64 im 2))) (+.f64 (pow.f64 im 2) (+.f64 (*.f64 -1/2 (*.f64 (pow.f64 re 2) (pow.f64 im 2))) (*.f64 -1/720 (*.f64 (pow.f64 re 6) (pow.f64 im 2)))))) |
(*.f64 (cos.f64 re) (pow.f64 im 2)) |
(*.f64 (cos.f64 re) (pow.f64 im 2)) |
(*.f64 (cos.f64 re) (pow.f64 im 2)) |
(*.f64 (cos.f64 re) (pow.f64 im 2)) |
(*.f64 (cos.f64 re) (pow.f64 im 2)) |
(*.f64 (cos.f64 re) (pow.f64 im 2)) |
(*.f64 (cos.f64 re) (pow.f64 im 2)) |
(*.f64 (cos.f64 re) (pow.f64 im 2)) |
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) |
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) |
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) |
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) |
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) |
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) |
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) |
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) |
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) |
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) |
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) |
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) |
(*.f64 1/2 (pow.f64 im 2)) |
(+.f64 (*.f64 1/2 (pow.f64 im 2)) (*.f64 -1/4 (*.f64 (pow.f64 re 2) (pow.f64 im 2)))) |
(+.f64 (*.f64 1/2 (pow.f64 im 2)) (+.f64 (*.f64 1/48 (*.f64 (pow.f64 re 4) (pow.f64 im 2))) (*.f64 -1/4 (*.f64 (pow.f64 re 2) (pow.f64 im 2))))) |
(+.f64 (*.f64 -1/1440 (*.f64 (pow.f64 re 6) (pow.f64 im 2))) (+.f64 (*.f64 1/2 (pow.f64 im 2)) (+.f64 (*.f64 1/48 (*.f64 (pow.f64 re 4) (pow.f64 im 2))) (*.f64 -1/4 (*.f64 (pow.f64 re 2) (pow.f64 im 2)))))) |
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) |
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) |
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) |
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) |
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) |
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) |
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) |
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) |
| Outputs |
|---|
(*.f64 (cos.f64 re) (pow.f64 im 2)) |
(*.f64 (cos.f64 re) (*.f64 im im)) |
(*.f64 (cos.f64 re) (pow.f64 im 2)) |
(*.f64 (cos.f64 re) (*.f64 im im)) |
(*.f64 (cos.f64 re) (pow.f64 im 2)) |
(*.f64 (cos.f64 re) (*.f64 im im)) |
(*.f64 (cos.f64 re) (pow.f64 im 2)) |
(*.f64 (cos.f64 re) (*.f64 im im)) |
(*.f64 (cos.f64 re) (pow.f64 im 2)) |
(*.f64 (cos.f64 re) (*.f64 im im)) |
(*.f64 (cos.f64 re) (pow.f64 im 2)) |
(*.f64 (cos.f64 re) (*.f64 im im)) |
(*.f64 (cos.f64 re) (pow.f64 im 2)) |
(*.f64 (cos.f64 re) (*.f64 im im)) |
(*.f64 (cos.f64 re) (pow.f64 im 2)) |
(*.f64 (cos.f64 re) (*.f64 im im)) |
(*.f64 (cos.f64 re) (pow.f64 im 2)) |
(*.f64 (cos.f64 re) (*.f64 im im)) |
(*.f64 (cos.f64 re) (pow.f64 im 2)) |
(*.f64 (cos.f64 re) (*.f64 im im)) |
(*.f64 (cos.f64 re) (pow.f64 im 2)) |
(*.f64 (cos.f64 re) (*.f64 im im)) |
(*.f64 (cos.f64 re) (pow.f64 im 2)) |
(*.f64 (cos.f64 re) (*.f64 im im)) |
(pow.f64 im 2) |
(*.f64 im im) |
(+.f64 (pow.f64 im 2) (*.f64 -1/2 (*.f64 (pow.f64 re 2) (pow.f64 im 2)))) |
(+.f64 (*.f64 im im) (*.f64 -1/2 (*.f64 (*.f64 im im) (*.f64 re re)))) |
(*.f64 (+.f64 (*.f64 -1/2 (*.f64 re re)) 1) (*.f64 im im)) |
(*.f64 (*.f64 im im) (fma.f64 -1/2 (*.f64 re re) 1)) |
(*.f64 im (*.f64 im (fma.f64 -1/2 (*.f64 re re) 1))) |
(+.f64 (*.f64 1/24 (*.f64 (pow.f64 re 4) (pow.f64 im 2))) (+.f64 (pow.f64 im 2) (*.f64 -1/2 (*.f64 (pow.f64 re 2) (pow.f64 im 2))))) |
(fma.f64 1/24 (*.f64 (*.f64 im im) (pow.f64 re 4)) (+.f64 (*.f64 im im) (*.f64 -1/2 (*.f64 (*.f64 im im) (*.f64 re re))))) |
(fma.f64 1/24 (*.f64 (*.f64 im im) (pow.f64 re 4)) (*.f64 (+.f64 (*.f64 -1/2 (*.f64 re re)) 1) (*.f64 im im))) |
(*.f64 (*.f64 im im) (+.f64 (*.f64 -1/2 (*.f64 re re)) (fma.f64 1/24 (pow.f64 re 4) 1))) |
(*.f64 (*.f64 im im) (+.f64 (*.f64 re (*.f64 re -1/2)) (fma.f64 1/24 (pow.f64 re 4) 1))) |
(*.f64 im (*.f64 im (+.f64 (*.f64 1/24 (pow.f64 re 4)) (fma.f64 -1/2 (*.f64 re re) 1)))) |
(+.f64 (*.f64 1/24 (*.f64 (pow.f64 re 4) (pow.f64 im 2))) (+.f64 (pow.f64 im 2) (+.f64 (*.f64 -1/2 (*.f64 (pow.f64 re 2) (pow.f64 im 2))) (*.f64 -1/720 (*.f64 (pow.f64 re 6) (pow.f64 im 2)))))) |
(fma.f64 1/24 (*.f64 (*.f64 im im) (pow.f64 re 4)) (+.f64 (*.f64 im im) (fma.f64 -1/2 (*.f64 (*.f64 im im) (*.f64 re re)) (*.f64 -1/720 (*.f64 (*.f64 im im) (pow.f64 re 6)))))) |
(fma.f64 1/24 (*.f64 (*.f64 im im) (pow.f64 re 4)) (fma.f64 im im (*.f64 (*.f64 im im) (+.f64 (*.f64 -1/2 (*.f64 re re)) (*.f64 -1/720 (pow.f64 re 6)))))) |
(fma.f64 im im (*.f64 (*.f64 im im) (+.f64 (*.f64 1/24 (pow.f64 re 4)) (fma.f64 -1/2 (*.f64 re re) (*.f64 -1/720 (pow.f64 re 6)))))) |
(*.f64 (*.f64 im im) (+.f64 (fma.f64 -1/2 (*.f64 re re) (*.f64 -1/720 (pow.f64 re 6))) (fma.f64 1/24 (pow.f64 re 4) 1))) |
(*.f64 im (*.f64 im (+.f64 (fma.f64 1/24 (pow.f64 re 4) 1) (fma.f64 -1/2 (*.f64 re re) (*.f64 -1/720 (pow.f64 re 6)))))) |
(*.f64 (cos.f64 re) (pow.f64 im 2)) |
(*.f64 (cos.f64 re) (*.f64 im im)) |
(*.f64 (cos.f64 re) (pow.f64 im 2)) |
(*.f64 (cos.f64 re) (*.f64 im im)) |
(*.f64 (cos.f64 re) (pow.f64 im 2)) |
(*.f64 (cos.f64 re) (*.f64 im im)) |
(*.f64 (cos.f64 re) (pow.f64 im 2)) |
(*.f64 (cos.f64 re) (*.f64 im im)) |
(*.f64 (cos.f64 re) (pow.f64 im 2)) |
(*.f64 (cos.f64 re) (*.f64 im im)) |
(*.f64 (cos.f64 re) (pow.f64 im 2)) |
(*.f64 (cos.f64 re) (*.f64 im im)) |
(*.f64 (cos.f64 re) (pow.f64 im 2)) |
(*.f64 (cos.f64 re) (*.f64 im im)) |
(*.f64 (cos.f64 re) (pow.f64 im 2)) |
(*.f64 (cos.f64 re) (*.f64 im im)) |
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) |
(*.f64 (*.f64 (cos.f64 re) (*.f64 im im)) 1/2) |
(*.f64 (cos.f64 re) (*.f64 (*.f64 im im) 1/2)) |
(*.f64 im (*.f64 (cos.f64 re) (*.f64 im 1/2))) |
(*.f64 (cos.f64 re) (*.f64 im (*.f64 im 1/2))) |
(*.f64 (*.f64 im im) (*.f64 (cos.f64 re) 1/2)) |
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) |
(*.f64 (*.f64 (cos.f64 re) (*.f64 im im)) 1/2) |
(*.f64 (cos.f64 re) (*.f64 (*.f64 im im) 1/2)) |
(*.f64 im (*.f64 (cos.f64 re) (*.f64 im 1/2))) |
(*.f64 (cos.f64 re) (*.f64 im (*.f64 im 1/2))) |
(*.f64 (*.f64 im im) (*.f64 (cos.f64 re) 1/2)) |
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) |
(*.f64 (*.f64 (cos.f64 re) (*.f64 im im)) 1/2) |
(*.f64 (cos.f64 re) (*.f64 (*.f64 im im) 1/2)) |
(*.f64 im (*.f64 (cos.f64 re) (*.f64 im 1/2))) |
(*.f64 (cos.f64 re) (*.f64 im (*.f64 im 1/2))) |
(*.f64 (*.f64 im im) (*.f64 (cos.f64 re) 1/2)) |
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) |
(*.f64 (*.f64 (cos.f64 re) (*.f64 im im)) 1/2) |
(*.f64 (cos.f64 re) (*.f64 (*.f64 im im) 1/2)) |
(*.f64 im (*.f64 (cos.f64 re) (*.f64 im 1/2))) |
(*.f64 (cos.f64 re) (*.f64 im (*.f64 im 1/2))) |
(*.f64 (*.f64 im im) (*.f64 (cos.f64 re) 1/2)) |
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) |
(*.f64 (*.f64 (cos.f64 re) (*.f64 im im)) 1/2) |
(*.f64 (cos.f64 re) (*.f64 (*.f64 im im) 1/2)) |
(*.f64 im (*.f64 (cos.f64 re) (*.f64 im 1/2))) |
(*.f64 (cos.f64 re) (*.f64 im (*.f64 im 1/2))) |
(*.f64 (*.f64 im im) (*.f64 (cos.f64 re) 1/2)) |
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) |
(*.f64 (*.f64 (cos.f64 re) (*.f64 im im)) 1/2) |
(*.f64 (cos.f64 re) (*.f64 (*.f64 im im) 1/2)) |
(*.f64 im (*.f64 (cos.f64 re) (*.f64 im 1/2))) |
(*.f64 (cos.f64 re) (*.f64 im (*.f64 im 1/2))) |
(*.f64 (*.f64 im im) (*.f64 (cos.f64 re) 1/2)) |
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) |
(*.f64 (*.f64 (cos.f64 re) (*.f64 im im)) 1/2) |
(*.f64 (cos.f64 re) (*.f64 (*.f64 im im) 1/2)) |
(*.f64 im (*.f64 (cos.f64 re) (*.f64 im 1/2))) |
(*.f64 (cos.f64 re) (*.f64 im (*.f64 im 1/2))) |
(*.f64 (*.f64 im im) (*.f64 (cos.f64 re) 1/2)) |
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) |
(*.f64 (*.f64 (cos.f64 re) (*.f64 im im)) 1/2) |
(*.f64 (cos.f64 re) (*.f64 (*.f64 im im) 1/2)) |
(*.f64 im (*.f64 (cos.f64 re) (*.f64 im 1/2))) |
(*.f64 (cos.f64 re) (*.f64 im (*.f64 im 1/2))) |
(*.f64 (*.f64 im im) (*.f64 (cos.f64 re) 1/2)) |
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) |
(*.f64 (*.f64 (cos.f64 re) (*.f64 im im)) 1/2) |
(*.f64 (cos.f64 re) (*.f64 (*.f64 im im) 1/2)) |
(*.f64 im (*.f64 (cos.f64 re) (*.f64 im 1/2))) |
(*.f64 (cos.f64 re) (*.f64 im (*.f64 im 1/2))) |
(*.f64 (*.f64 im im) (*.f64 (cos.f64 re) 1/2)) |
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) |
(*.f64 (*.f64 (cos.f64 re) (*.f64 im im)) 1/2) |
(*.f64 (cos.f64 re) (*.f64 (*.f64 im im) 1/2)) |
(*.f64 im (*.f64 (cos.f64 re) (*.f64 im 1/2))) |
(*.f64 (cos.f64 re) (*.f64 im (*.f64 im 1/2))) |
(*.f64 (*.f64 im im) (*.f64 (cos.f64 re) 1/2)) |
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) |
(*.f64 (*.f64 (cos.f64 re) (*.f64 im im)) 1/2) |
(*.f64 (cos.f64 re) (*.f64 (*.f64 im im) 1/2)) |
(*.f64 im (*.f64 (cos.f64 re) (*.f64 im 1/2))) |
(*.f64 (cos.f64 re) (*.f64 im (*.f64 im 1/2))) |
(*.f64 (*.f64 im im) (*.f64 (cos.f64 re) 1/2)) |
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) |
(*.f64 (*.f64 (cos.f64 re) (*.f64 im im)) 1/2) |
(*.f64 (cos.f64 re) (*.f64 (*.f64 im im) 1/2)) |
(*.f64 im (*.f64 (cos.f64 re) (*.f64 im 1/2))) |
(*.f64 (cos.f64 re) (*.f64 im (*.f64 im 1/2))) |
(*.f64 (*.f64 im im) (*.f64 (cos.f64 re) 1/2)) |
(*.f64 1/2 (pow.f64 im 2)) |
(*.f64 (*.f64 im im) 1/2) |
(*.f64 im (*.f64 im 1/2)) |
(+.f64 (*.f64 1/2 (pow.f64 im 2)) (*.f64 -1/4 (*.f64 (pow.f64 re 2) (pow.f64 im 2)))) |
(fma.f64 1/2 (*.f64 im im) (*.f64 (*.f64 (*.f64 im im) (*.f64 re re)) -1/4)) |
(*.f64 (*.f64 im im) (+.f64 1/2 (*.f64 (*.f64 re re) -1/4))) |
(*.f64 (*.f64 im im) (fma.f64 (*.f64 re re) -1/4 1/2)) |
(+.f64 (*.f64 1/2 (pow.f64 im 2)) (+.f64 (*.f64 1/48 (*.f64 (pow.f64 re 4) (pow.f64 im 2))) (*.f64 -1/4 (*.f64 (pow.f64 re 2) (pow.f64 im 2))))) |
(fma.f64 1/2 (*.f64 im im) (fma.f64 1/48 (*.f64 (*.f64 im im) (pow.f64 re 4)) (*.f64 (*.f64 (*.f64 im im) (*.f64 re re)) -1/4))) |
(fma.f64 (*.f64 im im) 1/2 (*.f64 (*.f64 im im) (+.f64 (*.f64 (*.f64 re re) -1/4) (*.f64 (pow.f64 re 4) 1/48)))) |
(*.f64 (*.f64 im im) (+.f64 1/2 (fma.f64 (pow.f64 re 4) 1/48 (*.f64 (*.f64 re re) -1/4)))) |
(*.f64 (*.f64 im im) (+.f64 1/2 (fma.f64 (*.f64 re re) -1/4 (*.f64 (pow.f64 re 4) 1/48)))) |
(*.f64 im (*.f64 im (+.f64 (*.f64 (pow.f64 re 4) 1/48) (fma.f64 (*.f64 re re) -1/4 1/2)))) |
(+.f64 (*.f64 -1/1440 (*.f64 (pow.f64 re 6) (pow.f64 im 2))) (+.f64 (*.f64 1/2 (pow.f64 im 2)) (+.f64 (*.f64 1/48 (*.f64 (pow.f64 re 4) (pow.f64 im 2))) (*.f64 -1/4 (*.f64 (pow.f64 re 2) (pow.f64 im 2)))))) |
(fma.f64 -1/1440 (*.f64 (*.f64 im im) (pow.f64 re 6)) (fma.f64 1/2 (*.f64 im im) (fma.f64 1/48 (*.f64 (*.f64 im im) (pow.f64 re 4)) (*.f64 (*.f64 (*.f64 im im) (*.f64 re re)) -1/4)))) |
(+.f64 (*.f64 (*.f64 im im) (+.f64 (*.f64 (*.f64 re re) -1/4) (*.f64 (pow.f64 re 4) 1/48))) (*.f64 (*.f64 im im) (+.f64 (*.f64 (pow.f64 re 6) -1/1440) 1/2))) |
(*.f64 (*.f64 im im) (+.f64 (fma.f64 (pow.f64 re 4) 1/48 (*.f64 (*.f64 re re) -1/4)) (fma.f64 (pow.f64 re 6) -1/1440 1/2))) |
(*.f64 (*.f64 im im) (+.f64 (fma.f64 (*.f64 re re) -1/4 (*.f64 (pow.f64 re 4) 1/48)) (fma.f64 (pow.f64 re 6) -1/1440 1/2))) |
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) |
(*.f64 (*.f64 (cos.f64 re) (*.f64 im im)) 1/2) |
(*.f64 (cos.f64 re) (*.f64 (*.f64 im im) 1/2)) |
(*.f64 im (*.f64 (cos.f64 re) (*.f64 im 1/2))) |
(*.f64 (cos.f64 re) (*.f64 im (*.f64 im 1/2))) |
(*.f64 (*.f64 im im) (*.f64 (cos.f64 re) 1/2)) |
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) |
(*.f64 (*.f64 (cos.f64 re) (*.f64 im im)) 1/2) |
(*.f64 (cos.f64 re) (*.f64 (*.f64 im im) 1/2)) |
(*.f64 im (*.f64 (cos.f64 re) (*.f64 im 1/2))) |
(*.f64 (cos.f64 re) (*.f64 im (*.f64 im 1/2))) |
(*.f64 (*.f64 im im) (*.f64 (cos.f64 re) 1/2)) |
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) |
(*.f64 (*.f64 (cos.f64 re) (*.f64 im im)) 1/2) |
(*.f64 (cos.f64 re) (*.f64 (*.f64 im im) 1/2)) |
(*.f64 im (*.f64 (cos.f64 re) (*.f64 im 1/2))) |
(*.f64 (cos.f64 re) (*.f64 im (*.f64 im 1/2))) |
(*.f64 (*.f64 im im) (*.f64 (cos.f64 re) 1/2)) |
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) |
(*.f64 (*.f64 (cos.f64 re) (*.f64 im im)) 1/2) |
(*.f64 (cos.f64 re) (*.f64 (*.f64 im im) 1/2)) |
(*.f64 im (*.f64 (cos.f64 re) (*.f64 im 1/2))) |
(*.f64 (cos.f64 re) (*.f64 im (*.f64 im 1/2))) |
(*.f64 (*.f64 im im) (*.f64 (cos.f64 re) 1/2)) |
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) |
(*.f64 (*.f64 (cos.f64 re) (*.f64 im im)) 1/2) |
(*.f64 (cos.f64 re) (*.f64 (*.f64 im im) 1/2)) |
(*.f64 im (*.f64 (cos.f64 re) (*.f64 im 1/2))) |
(*.f64 (cos.f64 re) (*.f64 im (*.f64 im 1/2))) |
(*.f64 (*.f64 im im) (*.f64 (cos.f64 re) 1/2)) |
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) |
(*.f64 (*.f64 (cos.f64 re) (*.f64 im im)) 1/2) |
(*.f64 (cos.f64 re) (*.f64 (*.f64 im im) 1/2)) |
(*.f64 im (*.f64 (cos.f64 re) (*.f64 im 1/2))) |
(*.f64 (cos.f64 re) (*.f64 im (*.f64 im 1/2))) |
(*.f64 (*.f64 im im) (*.f64 (cos.f64 re) 1/2)) |
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) |
(*.f64 (*.f64 (cos.f64 re) (*.f64 im im)) 1/2) |
(*.f64 (cos.f64 re) (*.f64 (*.f64 im im) 1/2)) |
(*.f64 im (*.f64 (cos.f64 re) (*.f64 im 1/2))) |
(*.f64 (cos.f64 re) (*.f64 im (*.f64 im 1/2))) |
(*.f64 (*.f64 im im) (*.f64 (cos.f64 re) 1/2)) |
(*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) |
(*.f64 (*.f64 (cos.f64 re) (*.f64 im im)) 1/2) |
(*.f64 (cos.f64 re) (*.f64 (*.f64 im im) 1/2)) |
(*.f64 im (*.f64 (cos.f64 re) (*.f64 im 1/2))) |
(*.f64 (cos.f64 re) (*.f64 im (*.f64 im 1/2))) |
(*.f64 (*.f64 im im) (*.f64 (cos.f64 re) 1/2)) |
Found 2 expressions with local error:
| New | Error | Program |
|---|---|---|
| ✓ | 0.0b | (+.f64 (pow.f64 im 2) (*.f64 1/12 (pow.f64 im 4))) |
| ✓ | 0.1b | (*.f64 1/12 (pow.f64 im 4)) |
Compiled 51 to 41 computations (19.6% saved)
6 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 1.0ms | im | @ | inf | (+.f64 (pow.f64 im 2) (*.f64 1/12 (pow.f64 im 4))) |
| 1.0ms | im | @ | -inf | (+.f64 (pow.f64 im 2) (*.f64 1/12 (pow.f64 im 4))) |
| 0.0ms | im | @ | 0 | (*.f64 1/12 (pow.f64 im 4)) |
| 0.0ms | im | @ | inf | (*.f64 1/12 (pow.f64 im 4)) |
| 0.0ms | im | @ | 0 | (+.f64 (pow.f64 im 2) (*.f64 1/12 (pow.f64 im 4))) |
| 1× | batch-egg-rewrite |
| 849× | pow1_binary64 |
| 798× | add-log-exp_binary64 |
| 797× | log1p-expm1-u_binary64 |
| 797× | expm1-log1p-u_binary64 |
| 781× | add-exp-log_binary64 |
Useful iterations: 1 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 9 | 20 |
| 1 | 199 | 18 |
| 2 | 2308 | 18 |
| 1× | node limit |
| Inputs |
|---|
(*.f64 1/12 (pow.f64 im 4)) |
(+.f64 (pow.f64 im 2) (*.f64 1/12 (pow.f64 im 4))) |
| Outputs |
|---|
((#(struct:change #<rule egg-rr> (2) ((x -.f64 (+.f64 1 (*.f64 1/12 (pow.f64 im 4))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 1/12 (pow.f64 im 4)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (*.f64 1/12 (pow.f64 im 4))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 (*.f64 im im) (sqrt.f64 1/12)) 2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 (pow.f64 (pow.f64 im 4) 3) 1/1728) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (*.f64 (pow.f64 im 8) 1/144))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (pow.f64 (exp.f64 1/12) (pow.f64 im 4)))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (*.f64 (pow.f64 (pow.f64 im 4) 3) 1/1728))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (*.f64 1/12 (pow.f64 im 4))))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (*.f64 1/12 (pow.f64 im 4))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (*.f64 1/12 (pow.f64 im 4)))))))) |
((#(struct:change #<rule egg-rr> (2) ((x -.f64 (+.f64 1 (fma.f64 1/12 (pow.f64 im 4) (*.f64 im im))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (/.f64 (pow.f64 im 4) (+.f64 (*.f64 im im) (*.f64 -1/12 (pow.f64 im 4)))) (/.f64 (*.f64 (pow.f64 im 8) 1/144) (+.f64 (*.f64 im im) (*.f64 -1/12 (pow.f64 im 4)))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (fma.f64 1/12 (pow.f64 im 4) (*.f64 im im)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (fma.f64 1/12 (pow.f64 im 4) (*.f64 im im)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (fma.f64 1/12 (pow.f64 im 4) (*.f64 im im))) (pow.f64 (cbrt.f64 (fma.f64 1/12 (pow.f64 im 4) (*.f64 im im))) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (fma.f64 1/12 (pow.f64 im 4) (*.f64 im im))) 2) (cbrt.f64 (fma.f64 1/12 (pow.f64 im 4) (*.f64 im im))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (hypot.f64 im (*.f64 (*.f64 im im) (sqrt.f64 1/12))) (hypot.f64 im (*.f64 (*.f64 im im) (sqrt.f64 1/12))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (+.f64 (pow.f64 im 6) (*.f64 (pow.f64 (pow.f64 im 4) 3) 1/1728)) (/.f64 1 (+.f64 (pow.f64 im 4) (-.f64 (*.f64 (pow.f64 im 8) 1/144) (*.f64 (pow.f64 im 6) 1/12)))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (-.f64 (pow.f64 im 4) (*.f64 (pow.f64 im 8) 1/144)) (/.f64 1 (+.f64 (*.f64 im im) (*.f64 -1/12 (pow.f64 im 4)))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (/.f64 (+.f64 (pow.f64 im 4) (-.f64 (*.f64 (pow.f64 im 8) 1/144) (*.f64 (pow.f64 im 6) 1/12))) (+.f64 (pow.f64 im 6) (*.f64 (pow.f64 (pow.f64 im 4) 3) 1/1728))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (/.f64 (+.f64 (*.f64 im im) (*.f64 -1/12 (pow.f64 im 4))) (-.f64 (pow.f64 im 4) (*.f64 (pow.f64 im 8) 1/144))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 (pow.f64 im 6) (*.f64 (pow.f64 (pow.f64 im 4) 3) 1/1728)) (+.f64 (pow.f64 im 4) (-.f64 (*.f64 (pow.f64 im 8) 1/144) (*.f64 (pow.f64 im 6) 1/12))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 (pow.f64 im 6) (*.f64 (pow.f64 (pow.f64 im 4) 3) 1/1728)) (+.f64 (*.f64 (pow.f64 im 8) 1/144) (-.f64 (pow.f64 im 4) (*.f64 (pow.f64 im 6) 1/12))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (pow.f64 im 4) (*.f64 (pow.f64 im 8) 1/144)) (+.f64 (*.f64 im im) (*.f64 -1/12 (pow.f64 im 4))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (+.f64 (pow.f64 im 6) (*.f64 (pow.f64 (pow.f64 im 4) 3) 1/1728))) (neg.f64 (+.f64 (pow.f64 im 4) (-.f64 (*.f64 (pow.f64 im 8) 1/144) (*.f64 (pow.f64 im 6) 1/12)))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (-.f64 (pow.f64 im 4) (*.f64 (pow.f64 im 8) 1/144))) (neg.f64 (+.f64 (*.f64 im im) (*.f64 -1/12 (pow.f64 im 4)))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (*.f64 (pow.f64 im 8) 1/144) (pow.f64 im 4)) (-.f64 (*.f64 1/12 (pow.f64 im 4)) (*.f64 im im)))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (fma.f64 1/12 (pow.f64 im 4) (*.f64 im im)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (fma.f64 1/12 (pow.f64 im 4) (*.f64 im im)) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (fma.f64 1/12 (pow.f64 im 4) (*.f64 im im))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (hypot.f64 im (*.f64 (*.f64 im im) (sqrt.f64 1/12))) 2)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (fma.f64 1/12 (pow.f64 im 4) (*.f64 im im)) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (fma.f64 1/12 (pow.f64 im 4) (*.f64 im im))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (fma.f64 1/12 (pow.f64 im 4) (*.f64 im im)) 3))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (fma.f64 1/12 (pow.f64 im 4) (*.f64 im im))))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (fma.f64 1/12 (pow.f64 im 4) (*.f64 im im))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (fma.f64 1/12 (pow.f64 im 4) (*.f64 im im))))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 1/12 (pow.f64 im 4) (*.f64 im im))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 im im (*.f64 1/12 (pow.f64 im 4)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (pow.f64 im 4) 1/12 (*.f64 im im))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 1 (*.f64 1/12 (pow.f64 im 4)) (*.f64 im im))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 1 (*.f64 im im) (*.f64 1/12 (pow.f64 im 4)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (cbrt.f64 (pow.f64 im 4)) (pow.f64 (cbrt.f64 im) 2) (*.f64 1/12 (pow.f64 im 4)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (cbrt.f64 (*.f64 (pow.f64 im 8) 1/144)) (cbrt.f64 (*.f64 1/12 (pow.f64 im 4))) (*.f64 im im))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (*.f64 (*.f64 im im) (sqrt.f64 1/12)) (*.f64 (*.f64 im im) (sqrt.f64 1/12)) (*.f64 im im)))))) |
| 1× | egg-herbie |
| 1057× | sqr-pow_binary64 |
| 963× | fma-def_binary64 |
| 506× | pow-sqr_binary64 |
| 451× | cube-prod_binary64 |
| 361× | fabs-mul_binary64 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 9 | 51 |
| 1 | 19 | 51 |
| 2 | 38 | 51 |
| 3 | 86 | 51 |
| 4 | 295 | 51 |
| 5 | 1208 | 51 |
| 6 | 2562 | 51 |
| 7 | 3243 | 51 |
| 8 | 3454 | 51 |
| 9 | 3695 | 51 |
| 10 | 3992 | 51 |
| 11 | 4376 | 51 |
| 12 | 4837 | 51 |
| 13 | 5376 | 51 |
| 14 | 6004 | 51 |
| 15 | 6753 | 51 |
| 16 | 7063 | 51 |
| 17 | 7289 | 51 |
| 18 | 7489 | 51 |
| 19 | 7541 | 51 |
| 20 | 7565 | 51 |
| 1× | node limit |
| Inputs |
|---|
(pow.f64 im 2) |
(+.f64 (*.f64 1/12 (pow.f64 im 4)) (pow.f64 im 2)) |
(+.f64 (*.f64 1/12 (pow.f64 im 4)) (pow.f64 im 2)) |
(+.f64 (*.f64 1/12 (pow.f64 im 4)) (pow.f64 im 2)) |
(*.f64 1/12 (pow.f64 im 4)) |
(*.f64 1/12 (pow.f64 im 4)) |
| Outputs |
|---|
(pow.f64 im 2) |
(*.f64 im im) |
(+.f64 (*.f64 1/12 (pow.f64 im 4)) (pow.f64 im 2)) |
(fma.f64 1/12 (pow.f64 im 4) (*.f64 im im)) |
(fma.f64 im im (*.f64 1/12 (pow.f64 im 4))) |
(*.f64 im (fma.f64 1/12 (pow.f64 im 3) im)) |
(+.f64 (*.f64 1/12 (pow.f64 im 4)) (pow.f64 im 2)) |
(fma.f64 1/12 (pow.f64 im 4) (*.f64 im im)) |
(fma.f64 im im (*.f64 1/12 (pow.f64 im 4))) |
(*.f64 im (fma.f64 1/12 (pow.f64 im 3) im)) |
(+.f64 (*.f64 1/12 (pow.f64 im 4)) (pow.f64 im 2)) |
(fma.f64 1/12 (pow.f64 im 4) (*.f64 im im)) |
(fma.f64 im im (*.f64 1/12 (pow.f64 im 4))) |
(*.f64 im (fma.f64 1/12 (pow.f64 im 3) im)) |
(*.f64 1/12 (pow.f64 im 4)) |
(*.f64 1/12 (pow.f64 im 4)) |
Compiled 3465 to 1877 computations (45.8% saved)
14 alts after pruning (7 fresh and 7 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 192 | 6 | 198 |
| Fresh | 0 | 1 | 1 |
| Picked | 1 | 0 | 1 |
| Done | 1 | 7 | 8 |
| Total | 194 | 14 | 208 |
| Status | Error | Program |
|---|---|---|
| ✓ | 0.0b | (*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))) |
| ✓ | 0.7b | (*.f64 (cos.f64 re) (+.f64 1 (*.f64 im (*.f64 im 1/2)))) |
| ▶ | 26.5b | (*.f64 1/2 (+.f64 2 (*.f64 im im))) |
| ▶ | 62.1b | (*.f64 (*.f64 im im) (fma.f64 (*.f64 re re) -1/4 1/2)) |
| ✓ | 1.4b | (*.f64 (*.f64 1/2 (cos.f64 re)) (expm1.f64 (log1p.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))))) |
| ✓ | 0.9b | (cos.f64 re) |
| 26.5b | (*.f64 1/2 (+.f64 2 (fma.f64 (pow.f64 im 4) 1/12 (*.f64 im im)))) | |
| ▶ | 61.5b | (*.f64 im (*.f64 im 1/2)) |
| ▶ | 1.1b | (*.f64 (*.f64 1/2 (cos.f64 re)) (pow.f64 (sqrt.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))) 2)) |
| ✓ | 26.7b | (*.f64 1/2 2) |
| ▶ | 26.6b | (*.f64 1/2 (+.f64 2 (*.f64 1/12 (pow.f64 im 4)))) |
| ✓ | 61.3b | (*.f64 1/2 (*.f64 (*.f64 im im) (cos.f64 re))) |
| 29.3b | (*.f64 (fma.f64 1/2 (*.f64 im im) 1) (fma.f64 -1/2 (*.f64 re re) 1)) | |
| ✓ | 26.3b | (*.f64 1/2 (*.f64 2 (cosh.f64 im))) |
Compiled 235 to 183 computations (22.1% saved)
Found 3 expressions with local error:
| New | Error | Program |
|---|---|---|
| ✓ | 0.0b | (*.f64 (*.f64 1/2 (cos.f64 re)) (pow.f64 (sqrt.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))) 2)) |
| 0.0b | (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)) | |
| ✓ | 1.0b | (pow.f64 (sqrt.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))) 2) |
Compiled 55 to 19 computations (65.5% saved)
9 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 1.0ms | im | @ | 0 | (pow.f64 (sqrt.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))) 2) |
| 1.0ms | im | @ | inf | (pow.f64 (sqrt.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))) 2) |
| 1.0ms | im | @ | -inf | (pow.f64 (sqrt.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))) 2) |
| 0.0ms | re | @ | 0 | (*.f64 (*.f64 1/2 (cos.f64 re)) (pow.f64 (sqrt.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))) 2)) |
| 0.0ms | im | @ | 0 | (*.f64 (*.f64 1/2 (cos.f64 re)) (pow.f64 (sqrt.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))) 2)) |
| 2× | egg-rewrite-iter-limit |
| 2× | egg-rewrite |
| 1× | batch-egg-rewrite |
| 135× | add-sqr-sqrt_binary64 |
| 135× | add-sqr-sqrt_binary64 |
| 129× | pow1_binary64 |
| 129× | pow1_binary64 |
| 128× | *-un-lft-identity_binary64 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 14 | 28 |
| 1 | 292 | 28 |
| 2 | 3929 | 28 |
| 0 | 9 | 10 |
| 1 | 191 | 10 |
| 2 | 2559 | 10 |
| 0 | 9 | 10 |
| 0 | 14 | 18 |
| 1 | 292 | 18 |
| 2 | 3921 | 18 |
| 0 | 14 | 18 |
| 1× | iter limit |
| 1× | unsound |
| 1× | iter limit |
| 1× | unsound |
| 1× | unsound |
| Inputs |
|---|
(pow.f64 (sqrt.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))) 2) |
(*.f64 (*.f64 1/2 (cos.f64 re)) (pow.f64 (sqrt.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))) 2)) |
| Outputs |
|---|
((#(struct:change #<rule egg-rr> (2) ((x +.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))) (sqrt.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 (cbrt.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))) (cbrt.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))) (cbrt.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 (pow.f64 (exp.f64 (neg.f64 im)) 3) (pow.f64 (exp.f64 im) 3)) (+.f64 (*.f64 (exp.f64 (neg.f64 im)) (exp.f64 (neg.f64 im))) (-.f64 (*.f64 (exp.f64 im) (exp.f64 im)) (*.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (*.f64 (exp.f64 (neg.f64 im)) (exp.f64 (neg.f64 im))) (*.f64 (exp.f64 im) (exp.f64 im))) (-.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (*.f64 (*.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (log.f64 (sqrt.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))) 2)))))) |
((#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (*.f64 (*.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))) (*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))))) (*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))))))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))))))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)))))))))) |
| 1× | egg-herbie |
| 833× | associate-+l+_binary64 |
| 525× | associate-+r+_binary64 |
| 483× | distribute-lft-out_binary64 |
| 393× | *-commutative_binary64 |
| 371× | distribute-rgt-out_binary64 |
Useful iterations: 4 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 74 | 731 |
| 1 | 216 | 624 |
| 2 | 701 | 568 |
| 3 | 2717 | 563 |
| 4 | 6301 | 561 |
| 1× | node limit |
| Inputs |
|---|
(pow.f64 (sqrt.f64 2) 2) |
(+.f64 (pow.f64 im 2) (pow.f64 (sqrt.f64 2) 2)) |
(+.f64 (pow.f64 im 2) (+.f64 (*.f64 (-.f64 (+.f64 1/12 (*.f64 1/4 (/.f64 1 (pow.f64 (sqrt.f64 2) 2)))) (pow.f64 (/.f64 1/2 (sqrt.f64 2)) 2)) (pow.f64 im 4)) (pow.f64 (sqrt.f64 2) 2))) |
(+.f64 (pow.f64 im 2) (+.f64 (*.f64 (-.f64 (+.f64 1/12 (*.f64 1/4 (/.f64 1 (pow.f64 (sqrt.f64 2) 2)))) (pow.f64 (/.f64 1/2 (sqrt.f64 2)) 2)) (pow.f64 im 4)) (+.f64 (pow.f64 (sqrt.f64 2) 2) (*.f64 1/360 (pow.f64 im 6))))) |
(+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) |
(+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) |
(+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) |
(+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) |
(+.f64 (exp.f64 im) (exp.f64 (*.f64 -1 im))) |
(+.f64 (exp.f64 im) (exp.f64 (*.f64 -1 im))) |
(+.f64 (exp.f64 im) (exp.f64 (*.f64 -1 im))) |
(+.f64 (exp.f64 im) (exp.f64 (*.f64 -1 im))) |
(*.f64 1/2 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))) |
(+.f64 (*.f64 1/2 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))) (*.f64 -1/4 (*.f64 (pow.f64 re 2) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))))) |
(+.f64 (*.f64 1/2 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))) (+.f64 (*.f64 -1/4 (*.f64 (pow.f64 re 2) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) (*.f64 1/48 (*.f64 (pow.f64 re 4) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))))) |
(+.f64 (*.f64 -1/1440 (*.f64 (pow.f64 re 6) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) (+.f64 (*.f64 1/2 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))) (+.f64 (*.f64 -1/4 (*.f64 (pow.f64 re 2) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) (*.f64 1/48 (*.f64 (pow.f64 re 4) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))))))) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) |
(cos.f64 re) |
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (cos.f64 re)) |
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (+.f64 (cos.f64 re) (*.f64 1/24 (*.f64 (cos.f64 re) (pow.f64 im 4))))) |
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (+.f64 (cos.f64 re) (+.f64 (*.f64 1/24 (*.f64 (cos.f64 re) (pow.f64 im 4))) (*.f64 1/720 (*.f64 (cos.f64 re) (pow.f64 im 6)))))) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (*.f64 -1 im))))) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (*.f64 -1 im))))) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (*.f64 -1 im))))) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (*.f64 -1 im))))) |
| Outputs |
|---|
(pow.f64 (sqrt.f64 2) 2) |
2 |
(+.f64 (pow.f64 im 2) (pow.f64 (sqrt.f64 2) 2)) |
(+.f64 (pow.f64 (sqrt.f64 2) 2) (*.f64 im im)) |
(fma.f64 im im 2) |
(+.f64 (pow.f64 im 2) (+.f64 (*.f64 (-.f64 (+.f64 1/12 (*.f64 1/4 (/.f64 1 (pow.f64 (sqrt.f64 2) 2)))) (pow.f64 (/.f64 1/2 (sqrt.f64 2)) 2)) (pow.f64 im 4)) (pow.f64 (sqrt.f64 2) 2))) |
(+.f64 (*.f64 im im) (fma.f64 (-.f64 (+.f64 1/12 (/.f64 1/4 (pow.f64 (sqrt.f64 2) 2))) (pow.f64 (/.f64 1/2 (sqrt.f64 2)) 2)) (pow.f64 im 4) (pow.f64 (sqrt.f64 2) 2))) |
(fma.f64 im im (fma.f64 (-.f64 5/24 (pow.f64 (/.f64 1/2 (sqrt.f64 2)) 2)) (pow.f64 im 4) 2)) |
(fma.f64 im im (fma.f64 1/12 (pow.f64 im 4) 2)) |
(+.f64 (pow.f64 im 2) (+.f64 (*.f64 (-.f64 (+.f64 1/12 (*.f64 1/4 (/.f64 1 (pow.f64 (sqrt.f64 2) 2)))) (pow.f64 (/.f64 1/2 (sqrt.f64 2)) 2)) (pow.f64 im 4)) (+.f64 (pow.f64 (sqrt.f64 2) 2) (*.f64 1/360 (pow.f64 im 6))))) |
(+.f64 (*.f64 im im) (+.f64 (fma.f64 (-.f64 (+.f64 1/12 (/.f64 1/4 (pow.f64 (sqrt.f64 2) 2))) (pow.f64 (/.f64 1/2 (sqrt.f64 2)) 2)) (pow.f64 im 4) (pow.f64 (sqrt.f64 2) 2)) (*.f64 1/360 (pow.f64 im 6)))) |
(fma.f64 im im (fma.f64 (-.f64 5/24 (pow.f64 (/.f64 1/2 (sqrt.f64 2)) 2)) (pow.f64 im 4) (fma.f64 1/360 (pow.f64 im 6) 2))) |
(fma.f64 im im (fma.f64 1/12 (pow.f64 im 4) (fma.f64 1/360 (pow.f64 im 6) 2))) |
(fma.f64 1/12 (pow.f64 im 4) (fma.f64 im im (fma.f64 1/360 (pow.f64 im 6) 2))) |
(+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) |
(+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) |
(+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) |
(+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) |
(+.f64 (exp.f64 im) (exp.f64 (*.f64 -1 im))) |
(+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) |
(+.f64 (exp.f64 im) (exp.f64 (*.f64 -1 im))) |
(+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) |
(+.f64 (exp.f64 im) (exp.f64 (*.f64 -1 im))) |
(+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) |
(+.f64 (exp.f64 im) (exp.f64 (*.f64 -1 im))) |
(+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) |
(*.f64 1/2 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))) |
(fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))) |
(+.f64 (*.f64 1/2 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))) (*.f64 -1/4 (*.f64 (pow.f64 re 2) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))))) |
(fma.f64 1/2 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (*.f64 -1/4 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (*.f64 re re)))) |
(*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (+.f64 (*.f64 -1/4 (*.f64 re re)) 1/2)) |
(*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (fma.f64 -1/4 (*.f64 re re) 1/2)) |
(+.f64 (*.f64 1/2 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))) (+.f64 (*.f64 -1/4 (*.f64 (pow.f64 re 2) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) (*.f64 1/48 (*.f64 (pow.f64 re 4) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))))) |
(fma.f64 1/2 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (fma.f64 -1/4 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (*.f64 re re)) (*.f64 1/48 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (pow.f64 re 4))))) |
(fma.f64 1/2 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (+.f64 (*.f64 -1/4 (*.f64 re re)) (*.f64 1/48 (pow.f64 re 4))))) |
(*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (+.f64 1/2 (fma.f64 -1/4 (*.f64 re re) (*.f64 1/48 (pow.f64 re 4))))) |
(+.f64 (*.f64 -1/1440 (*.f64 (pow.f64 re 6) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) (+.f64 (*.f64 1/2 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))) (+.f64 (*.f64 -1/4 (*.f64 (pow.f64 re 2) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) (*.f64 1/48 (*.f64 (pow.f64 re 4) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))))))) |
(fma.f64 -1/1440 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (pow.f64 re 6)) (fma.f64 1/2 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (fma.f64 -1/4 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (*.f64 re re)) (*.f64 1/48 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (pow.f64 re 4)))))) |
(+.f64 (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (+.f64 (*.f64 -1/4 (*.f64 re re)) (*.f64 1/48 (pow.f64 re 4)))) (*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (+.f64 (*.f64 -1/1440 (pow.f64 re 6)) 1/2))) |
(*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (+.f64 (fma.f64 -1/4 (*.f64 re re) (*.f64 1/48 (pow.f64 re 4))) (fma.f64 -1/1440 (pow.f64 re 6) 1/2))) |
(*.f64 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))) (+.f64 (fma.f64 -1/1440 (pow.f64 re 6) 1/2) (fma.f64 -1/4 (*.f64 re re) (*.f64 1/48 (pow.f64 re 4))))) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) |
(*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))) |
(*.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))) (cos.f64 re)) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) |
(*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))) |
(*.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))) (cos.f64 re)) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) |
(*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))) |
(*.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))) (cos.f64 re)) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) |
(*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))) |
(*.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))) (cos.f64 re)) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) |
(*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))) |
(*.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))) (cos.f64 re)) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) |
(*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))) |
(*.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))) (cos.f64 re)) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) |
(*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))) |
(*.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))) (cos.f64 re)) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) |
(*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))) |
(*.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))) (cos.f64 re)) |
(cos.f64 re) |
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (cos.f64 re)) |
(fma.f64 1/2 (*.f64 (*.f64 im im) (cos.f64 re)) (cos.f64 re)) |
(fma.f64 (*.f64 im im) (*.f64 1/2 (cos.f64 re)) (cos.f64 re)) |
(fma.f64 (cos.f64 re) (*.f64 (*.f64 im im) 1/2) (cos.f64 re)) |
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (+.f64 (cos.f64 re) (*.f64 1/24 (*.f64 (cos.f64 re) (pow.f64 im 4))))) |
(+.f64 (fma.f64 1/2 (*.f64 (*.f64 im im) (cos.f64 re)) (cos.f64 re)) (*.f64 (*.f64 1/24 (cos.f64 re)) (pow.f64 im 4))) |
(fma.f64 1/2 (*.f64 (*.f64 im im) (cos.f64 re)) (fma.f64 (*.f64 (cos.f64 re) 1/24) (pow.f64 im 4) (cos.f64 re))) |
(+.f64 (cos.f64 re) (*.f64 (cos.f64 re) (+.f64 (*.f64 im (*.f64 im 1/2)) (*.f64 (pow.f64 im 4) 1/24)))) |
(*.f64 (cos.f64 re) (+.f64 (*.f64 (*.f64 im im) 1/2) (+.f64 1 (*.f64 (pow.f64 im 4) 1/24)))) |
(*.f64 (cos.f64 re) (+.f64 (*.f64 im (*.f64 im 1/2)) (+.f64 1 (*.f64 (pow.f64 im 4) 1/24)))) |
(+.f64 (*.f64 1/2 (*.f64 (cos.f64 re) (pow.f64 im 2))) (+.f64 (cos.f64 re) (+.f64 (*.f64 1/24 (*.f64 (cos.f64 re) (pow.f64 im 4))) (*.f64 1/720 (*.f64 (cos.f64 re) (pow.f64 im 6)))))) |
(+.f64 (fma.f64 1/2 (*.f64 (*.f64 im im) (cos.f64 re)) (cos.f64 re)) (fma.f64 1/24 (*.f64 (pow.f64 im 4) (cos.f64 re)) (*.f64 1/720 (*.f64 (pow.f64 im 6) (cos.f64 re))))) |
(+.f64 (fma.f64 1/2 (*.f64 (*.f64 im im) (cos.f64 re)) (cos.f64 re)) (fma.f64 1/24 (*.f64 (pow.f64 im 4) (cos.f64 re)) (*.f64 (cos.f64 re) (*.f64 (pow.f64 im 6) 1/720)))) |
(+.f64 (fma.f64 (*.f64 im im) (*.f64 1/2 (cos.f64 re)) (cos.f64 re)) (*.f64 (cos.f64 re) (+.f64 (*.f64 (pow.f64 im 4) 1/24) (*.f64 (pow.f64 im 6) 1/720)))) |
(+.f64 (cos.f64 re) (*.f64 (cos.f64 re) (+.f64 (*.f64 (*.f64 im im) 1/2) (+.f64 (*.f64 (pow.f64 im 6) 1/720) (*.f64 (pow.f64 im 4) 1/24))))) |
(*.f64 (cos.f64 re) (+.f64 (+.f64 1 (*.f64 (pow.f64 im 4) 1/24)) (+.f64 (*.f64 (pow.f64 im 6) 1/720) (*.f64 im (*.f64 im 1/2))))) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) |
(*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))) |
(*.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))) (cos.f64 re)) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) |
(*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))) |
(*.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))) (cos.f64 re)) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) |
(*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))) |
(*.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))) (cos.f64 re)) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im))))) |
(*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))) |
(*.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))) (cos.f64 re)) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (*.f64 -1 im))))) |
(*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))) |
(*.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))) (cos.f64 re)) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (*.f64 -1 im))))) |
(*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))) |
(*.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))) (cos.f64 re)) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (*.f64 -1 im))))) |
(*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))) |
(*.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))) (cos.f64 re)) |
(*.f64 1/2 (*.f64 (cos.f64 re) (+.f64 (exp.f64 im) (exp.f64 (*.f64 -1 im))))) |
(*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))) |
(*.f64 (fma.f64 1/2 (exp.f64 im) (/.f64 1/2 (exp.f64 im))) (cos.f64 re)) |
Compiled 12 to 8 computations (33.3% saved)
Compiled 20 to 11 computations (45% saved)
Found 1 expressions with local error:
| New | Error | Program |
|---|---|---|
| 0.1b | (*.f64 1/12 (pow.f64 im 4)) |
Compiled 31 to 26 computations (16.1% saved)
Found 2 expressions with local error:
| New | Error | Program |
|---|---|---|
| ✓ | 0.0b | (fma.f64 (*.f64 re re) -1/4 1/2) |
| ✓ | 14.5b | (*.f64 (*.f64 im im) (fma.f64 (*.f64 re re) -1/4 1/2)) |
Compiled 28 to 13 computations (53.6% saved)
9 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 1.0ms | im | @ | 0 | (*.f64 (*.f64 im im) (fma.f64 (*.f64 re re) -1/4 1/2)) |
| 1.0ms | re | @ | inf | (*.f64 (*.f64 im im) (fma.f64 (*.f64 re re) -1/4 1/2)) |
| 1.0ms | re | @ | 0 | (*.f64 (*.f64 im im) (fma.f64 (*.f64 re re) -1/4 1/2)) |
| 1.0ms | im | @ | inf | (*.f64 (*.f64 im im) (fma.f64 (*.f64 re re) -1/4 1/2)) |
| 0.0ms | re | @ | -inf | (*.f64 (*.f64 im im) (fma.f64 (*.f64 re re) -1/4 1/2)) |
| 1× | batch-egg-rewrite |
| 786× | pow1_binary64 |
| 727× | add-log-exp_binary64 |
| 727× | log1p-expm1-u_binary64 |
| 727× | expm1-log1p-u_binary64 |
| 710× | add-exp-log_binary64 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 9 | 22 |
| 1 | 182 | 22 |
| 2 | 2048 | 22 |
| 1× | node limit |
| Inputs |
|---|
(*.f64 (*.f64 im im) (fma.f64 (*.f64 re re) -1/4 1/2)) |
(fma.f64 (*.f64 re re) -1/4 1/2) |
| Outputs |
|---|
((#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 (*.f64 re (*.f64 re -1/4)) (*.f64 im im)) (*.f64 1/2 (*.f64 im im)))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 (*.f64 im im) (*.f64 re (*.f64 re -1/4))) (*.f64 (*.f64 im im) 1/2))))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (+.f64 1 (*.f64 (*.f64 im im) (fma.f64 (*.f64 re re) -1/4 1/2))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 (*.f64 im im) (fma.f64 (*.f64 re re) -1/4 1/2)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (*.f64 (*.f64 im im) (fma.f64 (*.f64 re re) -1/4 1/2)) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (*.f64 (*.f64 im im) (fma.f64 (*.f64 re re) -1/4 1/2))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 im (sqrt.f64 (fma.f64 (*.f64 re re) -1/4 1/2))) 2)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (*.f64 (*.f64 im im) (fma.f64 (*.f64 re re) -1/4 1/2)) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (pow.f64 (exp.f64 (*.f64 im im)) (fma.f64 (*.f64 re re) -1/4 1/2)))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (*.f64 (*.f64 im im) (fma.f64 (*.f64 re re) -1/4 1/2)) 3))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (*.f64 (pow.f64 (*.f64 im im) 3) (pow.f64 (fma.f64 (*.f64 re re) -1/4 1/2) 3)))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (*.f64 (pow.f64 (fma.f64 (*.f64 re re) -1/4 1/2) 3) (pow.f64 (*.f64 im im) 3)))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (*.f64 (*.f64 im im) (fma.f64 (*.f64 re re) -1/4 1/2))))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (*.f64 (*.f64 im im) (fma.f64 (*.f64 re re) -1/4 1/2))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (*.f64 (*.f64 im im) (fma.f64 (*.f64 re re) -1/4 1/2)))))))) |
((#(struct:change #<rule egg-rr> (2) ((x +.f64 1/2 (*.f64 re (*.f64 re -1/4)))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 re (*.f64 re -1/4)) 1/2)))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (*.f64 (*.f64 re (*.f64 re -1/4)) 1) 1/2)))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (+.f64 1 (fma.f64 (*.f64 re re) -1/4 1/2)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (fma.f64 (*.f64 re re) -1/4 1/2) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (fma.f64 (*.f64 re re) -1/4 1/2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (fma.f64 (*.f64 re re) -1/4 1/2)) (pow.f64 (cbrt.f64 (fma.f64 (*.f64 re re) -1/4 1/2)) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (fma.f64 (*.f64 re re) -1/4 1/2)) 2) (cbrt.f64 (fma.f64 (*.f64 re re) -1/4 1/2)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (fma.f64 (*.f64 re re) -1/4 1/2)) (sqrt.f64 (fma.f64 (*.f64 re re) -1/4 1/2)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 (pow.f64 (*.f64 re (*.f64 re -1/4)) 3) 1/8) (+.f64 (*.f64 (*.f64 re (*.f64 re -1/4)) (*.f64 re (*.f64 re -1/4))) (-.f64 1/4 (*.f64 (*.f64 re (*.f64 re -1/4)) 1/2))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (*.f64 (*.f64 re (*.f64 re -1/4)) (*.f64 re (*.f64 re -1/4))) 1/4) (-.f64 (*.f64 re (*.f64 re -1/4)) 1/2))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (fma.f64 (*.f64 re re) -1/4 1/2) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (fma.f64 (*.f64 re re) -1/4 1/2) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (fma.f64 (*.f64 re re) -1/4 1/2)) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (fma.f64 (*.f64 re re) -1/4 1/2)) 2)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (fma.f64 (*.f64 re re) -1/4 1/2) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (fma.f64 (*.f64 re re) -1/4 1/2)))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (fma.f64 (*.f64 re re) -1/4 1/2) 3))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (fma.f64 (*.f64 re re) -1/4 1/2)))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (fma.f64 (*.f64 re re) -1/4 1/2)))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (fma.f64 (*.f64 re re) -1/4 1/2))))))) |
| 1× | egg-herbie |
| 900× | unswap-sqr_binary64 |
| 700× | sqr-pow_binary64 |
| 667× | cube-prod_binary64 |
| 632× | fabs-mul_binary64 |
| 336× | pow-sqr_binary64 |
Useful iterations: 1 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 15 | 474 |
| 1 | 32 | 414 |
| 2 | 80 | 414 |
| 3 | 250 | 414 |
| 4 | 1053 | 414 |
| 5 | 1819 | 414 |
| 6 | 1948 | 414 |
| 7 | 2048 | 414 |
| 8 | 2168 | 414 |
| 9 | 2290 | 414 |
| 10 | 2437 | 414 |
| 11 | 3897 | 414 |
| 12 | 4126 | 414 |
| 13 | 4424 | 414 |
| 14 | 4759 | 414 |
| 15 | 5180 | 414 |
| 16 | 5796 | 414 |
| 17 | 6576 | 414 |
| 18 | 7063 | 414 |
| 19 | 7443 | 414 |
| 20 | 7871 | 414 |
| 1× | node limit |
| Inputs |
|---|
(*.f64 (+.f64 1/2 (*.f64 -1/4 (pow.f64 re 2))) (pow.f64 im 2)) |
(*.f64 (+.f64 1/2 (*.f64 -1/4 (pow.f64 re 2))) (pow.f64 im 2)) |
(*.f64 (+.f64 1/2 (*.f64 -1/4 (pow.f64 re 2))) (pow.f64 im 2)) |
(*.f64 (+.f64 1/2 (*.f64 -1/4 (pow.f64 re 2))) (pow.f64 im 2)) |
(*.f64 (+.f64 1/2 (*.f64 -1/4 (pow.f64 re 2))) (pow.f64 im 2)) |
(*.f64 (+.f64 1/2 (*.f64 -1/4 (pow.f64 re 2))) (pow.f64 im 2)) |
(*.f64 (+.f64 1/2 (*.f64 -1/4 (pow.f64 re 2))) (pow.f64 im 2)) |
(*.f64 (+.f64 1/2 (*.f64 -1/4 (pow.f64 re 2))) (pow.f64 im 2)) |
(*.f64 (+.f64 1/2 (*.f64 -1/4 (pow.f64 re 2))) (pow.f64 im 2)) |
(*.f64 (+.f64 1/2 (*.f64 -1/4 (pow.f64 re 2))) (pow.f64 im 2)) |
(*.f64 (+.f64 1/2 (*.f64 -1/4 (pow.f64 re 2))) (pow.f64 im 2)) |
(*.f64 (+.f64 1/2 (*.f64 -1/4 (pow.f64 re 2))) (pow.f64 im 2)) |
(*.f64 1/2 (pow.f64 im 2)) |
(+.f64 (*.f64 1/2 (pow.f64 im 2)) (*.f64 -1/4 (*.f64 (pow.f64 re 2) (pow.f64 im 2)))) |
(+.f64 (*.f64 1/2 (pow.f64 im 2)) (*.f64 -1/4 (*.f64 (pow.f64 re 2) (pow.f64 im 2)))) |
(+.f64 (*.f64 1/2 (pow.f64 im 2)) (*.f64 -1/4 (*.f64 (pow.f64 re 2) (pow.f64 im 2)))) |
(*.f64 -1/4 (*.f64 (pow.f64 re 2) (pow.f64 im 2))) |
(+.f64 (*.f64 1/2 (pow.f64 im 2)) (*.f64 -1/4 (*.f64 (pow.f64 re 2) (pow.f64 im 2)))) |
(+.f64 (*.f64 1/2 (pow.f64 im 2)) (*.f64 -1/4 (*.f64 (pow.f64 re 2) (pow.f64 im 2)))) |
(+.f64 (*.f64 1/2 (pow.f64 im 2)) (*.f64 -1/4 (*.f64 (pow.f64 re 2) (pow.f64 im 2)))) |
(*.f64 -1/4 (*.f64 (pow.f64 re 2) (pow.f64 im 2))) |
(+.f64 (*.f64 1/2 (pow.f64 im 2)) (*.f64 -1/4 (*.f64 (pow.f64 re 2) (pow.f64 im 2)))) |
(+.f64 (*.f64 1/2 (pow.f64 im 2)) (*.f64 -1/4 (*.f64 (pow.f64 re 2) (pow.f64 im 2)))) |
(+.f64 (*.f64 1/2 (pow.f64 im 2)) (*.f64 -1/4 (*.f64 (pow.f64 re 2) (pow.f64 im 2)))) |
1/2 |
(+.f64 1/2 (*.f64 -1/4 (pow.f64 re 2))) |
(+.f64 1/2 (*.f64 -1/4 (pow.f64 re 2))) |
(+.f64 1/2 (*.f64 -1/4 (pow.f64 re 2))) |
(*.f64 -1/4 (pow.f64 re 2)) |
(+.f64 1/2 (*.f64 -1/4 (pow.f64 re 2))) |
(+.f64 1/2 (*.f64 -1/4 (pow.f64 re 2))) |
(+.f64 1/2 (*.f64 -1/4 (pow.f64 re 2))) |
(*.f64 -1/4 (pow.f64 re 2)) |
(+.f64 1/2 (*.f64 -1/4 (pow.f64 re 2))) |
(+.f64 1/2 (*.f64 -1/4 (pow.f64 re 2))) |
(+.f64 1/2 (*.f64 -1/4 (pow.f64 re 2))) |
| Outputs |
|---|
(*.f64 (+.f64 1/2 (*.f64 -1/4 (pow.f64 re 2))) (pow.f64 im 2)) |
(*.f64 (+.f64 1/2 (*.f64 -1/4 (*.f64 re re))) (*.f64 im im)) |
(*.f64 (fma.f64 -1/4 (*.f64 re re) 1/2) (*.f64 im im)) |
(*.f64 (fma.f64 re (*.f64 -1/4 re) 1/2) (*.f64 im im)) |
(*.f64 (+.f64 1/2 (*.f64 -1/4 (pow.f64 re 2))) (pow.f64 im 2)) |
(*.f64 (+.f64 1/2 (*.f64 -1/4 (*.f64 re re))) (*.f64 im im)) |
(*.f64 (fma.f64 -1/4 (*.f64 re re) 1/2) (*.f64 im im)) |
(*.f64 (fma.f64 re (*.f64 -1/4 re) 1/2) (*.f64 im im)) |
(*.f64 (+.f64 1/2 (*.f64 -1/4 (pow.f64 re 2))) (pow.f64 im 2)) |
(*.f64 (+.f64 1/2 (*.f64 -1/4 (*.f64 re re))) (*.f64 im im)) |
(*.f64 (fma.f64 -1/4 (*.f64 re re) 1/2) (*.f64 im im)) |
(*.f64 (fma.f64 re (*.f64 -1/4 re) 1/2) (*.f64 im im)) |
(*.f64 (+.f64 1/2 (*.f64 -1/4 (pow.f64 re 2))) (pow.f64 im 2)) |
(*.f64 (+.f64 1/2 (*.f64 -1/4 (*.f64 re re))) (*.f64 im im)) |
(*.f64 (fma.f64 -1/4 (*.f64 re re) 1/2) (*.f64 im im)) |
(*.f64 (fma.f64 re (*.f64 -1/4 re) 1/2) (*.f64 im im)) |
(*.f64 (+.f64 1/2 (*.f64 -1/4 (pow.f64 re 2))) (pow.f64 im 2)) |
(*.f64 (+.f64 1/2 (*.f64 -1/4 (*.f64 re re))) (*.f64 im im)) |
(*.f64 (fma.f64 -1/4 (*.f64 re re) 1/2) (*.f64 im im)) |
(*.f64 (fma.f64 re (*.f64 -1/4 re) 1/2) (*.f64 im im)) |
(*.f64 (+.f64 1/2 (*.f64 -1/4 (pow.f64 re 2))) (pow.f64 im 2)) |
(*.f64 (+.f64 1/2 (*.f64 -1/4 (*.f64 re re))) (*.f64 im im)) |
(*.f64 (fma.f64 -1/4 (*.f64 re re) 1/2) (*.f64 im im)) |
(*.f64 (fma.f64 re (*.f64 -1/4 re) 1/2) (*.f64 im im)) |
(*.f64 (+.f64 1/2 (*.f64 -1/4 (pow.f64 re 2))) (pow.f64 im 2)) |
(*.f64 (+.f64 1/2 (*.f64 -1/4 (*.f64 re re))) (*.f64 im im)) |
(*.f64 (fma.f64 -1/4 (*.f64 re re) 1/2) (*.f64 im im)) |
(*.f64 (fma.f64 re (*.f64 -1/4 re) 1/2) (*.f64 im im)) |
(*.f64 (+.f64 1/2 (*.f64 -1/4 (pow.f64 re 2))) (pow.f64 im 2)) |
(*.f64 (+.f64 1/2 (*.f64 -1/4 (*.f64 re re))) (*.f64 im im)) |
(*.f64 (fma.f64 -1/4 (*.f64 re re) 1/2) (*.f64 im im)) |
(*.f64 (fma.f64 re (*.f64 -1/4 re) 1/2) (*.f64 im im)) |
(*.f64 (+.f64 1/2 (*.f64 -1/4 (pow.f64 re 2))) (pow.f64 im 2)) |
(*.f64 (+.f64 1/2 (*.f64 -1/4 (*.f64 re re))) (*.f64 im im)) |
(*.f64 (fma.f64 -1/4 (*.f64 re re) 1/2) (*.f64 im im)) |
(*.f64 (fma.f64 re (*.f64 -1/4 re) 1/2) (*.f64 im im)) |
(*.f64 (+.f64 1/2 (*.f64 -1/4 (pow.f64 re 2))) (pow.f64 im 2)) |
(*.f64 (+.f64 1/2 (*.f64 -1/4 (*.f64 re re))) (*.f64 im im)) |
(*.f64 (fma.f64 -1/4 (*.f64 re re) 1/2) (*.f64 im im)) |
(*.f64 (fma.f64 re (*.f64 -1/4 re) 1/2) (*.f64 im im)) |
(*.f64 (+.f64 1/2 (*.f64 -1/4 (pow.f64 re 2))) (pow.f64 im 2)) |
(*.f64 (+.f64 1/2 (*.f64 -1/4 (*.f64 re re))) (*.f64 im im)) |
(*.f64 (fma.f64 -1/4 (*.f64 re re) 1/2) (*.f64 im im)) |
(*.f64 (fma.f64 re (*.f64 -1/4 re) 1/2) (*.f64 im im)) |
(*.f64 (+.f64 1/2 (*.f64 -1/4 (pow.f64 re 2))) (pow.f64 im 2)) |
(*.f64 (+.f64 1/2 (*.f64 -1/4 (*.f64 re re))) (*.f64 im im)) |
(*.f64 (fma.f64 -1/4 (*.f64 re re) 1/2) (*.f64 im im)) |
(*.f64 (fma.f64 re (*.f64 -1/4 re) 1/2) (*.f64 im im)) |
(*.f64 1/2 (pow.f64 im 2)) |
(*.f64 1/2 (*.f64 im im)) |
(+.f64 (*.f64 1/2 (pow.f64 im 2)) (*.f64 -1/4 (*.f64 (pow.f64 re 2) (pow.f64 im 2)))) |
(*.f64 (+.f64 1/2 (*.f64 -1/4 (*.f64 re re))) (*.f64 im im)) |
(*.f64 (fma.f64 -1/4 (*.f64 re re) 1/2) (*.f64 im im)) |
(*.f64 (fma.f64 re (*.f64 -1/4 re) 1/2) (*.f64 im im)) |
(+.f64 (*.f64 1/2 (pow.f64 im 2)) (*.f64 -1/4 (*.f64 (pow.f64 re 2) (pow.f64 im 2)))) |
(*.f64 (+.f64 1/2 (*.f64 -1/4 (*.f64 re re))) (*.f64 im im)) |
(*.f64 (fma.f64 -1/4 (*.f64 re re) 1/2) (*.f64 im im)) |
(*.f64 (fma.f64 re (*.f64 -1/4 re) 1/2) (*.f64 im im)) |
(+.f64 (*.f64 1/2 (pow.f64 im 2)) (*.f64 -1/4 (*.f64 (pow.f64 re 2) (pow.f64 im 2)))) |
(*.f64 (+.f64 1/2 (*.f64 -1/4 (*.f64 re re))) (*.f64 im im)) |
(*.f64 (fma.f64 -1/4 (*.f64 re re) 1/2) (*.f64 im im)) |
(*.f64 (fma.f64 re (*.f64 -1/4 re) 1/2) (*.f64 im im)) |
(*.f64 -1/4 (*.f64 (pow.f64 re 2) (pow.f64 im 2))) |
(*.f64 -1/4 (*.f64 (*.f64 re re) (*.f64 im im))) |
(*.f64 -1/4 (*.f64 (*.f64 re im) (*.f64 re im))) |
(*.f64 -1/4 (*.f64 re (*.f64 re (*.f64 im im)))) |
(*.f64 (*.f64 re re) (*.f64 -1/4 (*.f64 im im))) |
(+.f64 (*.f64 1/2 (pow.f64 im 2)) (*.f64 -1/4 (*.f64 (pow.f64 re 2) (pow.f64 im 2)))) |
(*.f64 (+.f64 1/2 (*.f64 -1/4 (*.f64 re re))) (*.f64 im im)) |
(*.f64 (fma.f64 -1/4 (*.f64 re re) 1/2) (*.f64 im im)) |
(*.f64 (fma.f64 re (*.f64 -1/4 re) 1/2) (*.f64 im im)) |
(+.f64 (*.f64 1/2 (pow.f64 im 2)) (*.f64 -1/4 (*.f64 (pow.f64 re 2) (pow.f64 im 2)))) |
(*.f64 (+.f64 1/2 (*.f64 -1/4 (*.f64 re re))) (*.f64 im im)) |
(*.f64 (fma.f64 -1/4 (*.f64 re re) 1/2) (*.f64 im im)) |
(*.f64 (fma.f64 re (*.f64 -1/4 re) 1/2) (*.f64 im im)) |
(+.f64 (*.f64 1/2 (pow.f64 im 2)) (*.f64 -1/4 (*.f64 (pow.f64 re 2) (pow.f64 im 2)))) |
(*.f64 (+.f64 1/2 (*.f64 -1/4 (*.f64 re re))) (*.f64 im im)) |
(*.f64 (fma.f64 -1/4 (*.f64 re re) 1/2) (*.f64 im im)) |
(*.f64 (fma.f64 re (*.f64 -1/4 re) 1/2) (*.f64 im im)) |
(*.f64 -1/4 (*.f64 (pow.f64 re 2) (pow.f64 im 2))) |
(*.f64 -1/4 (*.f64 (*.f64 re re) (*.f64 im im))) |
(*.f64 -1/4 (*.f64 (*.f64 re im) (*.f64 re im))) |
(*.f64 -1/4 (*.f64 re (*.f64 re (*.f64 im im)))) |
(*.f64 (*.f64 re re) (*.f64 -1/4 (*.f64 im im))) |
(+.f64 (*.f64 1/2 (pow.f64 im 2)) (*.f64 -1/4 (*.f64 (pow.f64 re 2) (pow.f64 im 2)))) |
(*.f64 (+.f64 1/2 (*.f64 -1/4 (*.f64 re re))) (*.f64 im im)) |
(*.f64 (fma.f64 -1/4 (*.f64 re re) 1/2) (*.f64 im im)) |
(*.f64 (fma.f64 re (*.f64 -1/4 re) 1/2) (*.f64 im im)) |
(+.f64 (*.f64 1/2 (pow.f64 im 2)) (*.f64 -1/4 (*.f64 (pow.f64 re 2) (pow.f64 im 2)))) |
(*.f64 (+.f64 1/2 (*.f64 -1/4 (*.f64 re re))) (*.f64 im im)) |
(*.f64 (fma.f64 -1/4 (*.f64 re re) 1/2) (*.f64 im im)) |
(*.f64 (fma.f64 re (*.f64 -1/4 re) 1/2) (*.f64 im im)) |
(+.f64 (*.f64 1/2 (pow.f64 im 2)) (*.f64 -1/4 (*.f64 (pow.f64 re 2) (pow.f64 im 2)))) |
(*.f64 (+.f64 1/2 (*.f64 -1/4 (*.f64 re re))) (*.f64 im im)) |
(*.f64 (fma.f64 -1/4 (*.f64 re re) 1/2) (*.f64 im im)) |
(*.f64 (fma.f64 re (*.f64 -1/4 re) 1/2) (*.f64 im im)) |
1/2 |
(+.f64 1/2 (*.f64 -1/4 (pow.f64 re 2))) |
(+.f64 1/2 (*.f64 -1/4 (*.f64 re re))) |
(fma.f64 -1/4 (*.f64 re re) 1/2) |
(fma.f64 re (*.f64 -1/4 re) 1/2) |
(+.f64 1/2 (*.f64 -1/4 (pow.f64 re 2))) |
(+.f64 1/2 (*.f64 -1/4 (*.f64 re re))) |
(fma.f64 -1/4 (*.f64 re re) 1/2) |
(fma.f64 re (*.f64 -1/4 re) 1/2) |
(+.f64 1/2 (*.f64 -1/4 (pow.f64 re 2))) |
(+.f64 1/2 (*.f64 -1/4 (*.f64 re re))) |
(fma.f64 -1/4 (*.f64 re re) 1/2) |
(fma.f64 re (*.f64 -1/4 re) 1/2) |
(*.f64 -1/4 (pow.f64 re 2)) |
(*.f64 -1/4 (*.f64 re re)) |
(+.f64 1/2 (*.f64 -1/4 (pow.f64 re 2))) |
(+.f64 1/2 (*.f64 -1/4 (*.f64 re re))) |
(fma.f64 -1/4 (*.f64 re re) 1/2) |
(fma.f64 re (*.f64 -1/4 re) 1/2) |
(+.f64 1/2 (*.f64 -1/4 (pow.f64 re 2))) |
(+.f64 1/2 (*.f64 -1/4 (*.f64 re re))) |
(fma.f64 -1/4 (*.f64 re re) 1/2) |
(fma.f64 re (*.f64 -1/4 re) 1/2) |
(+.f64 1/2 (*.f64 -1/4 (pow.f64 re 2))) |
(+.f64 1/2 (*.f64 -1/4 (*.f64 re re))) |
(fma.f64 -1/4 (*.f64 re re) 1/2) |
(fma.f64 re (*.f64 -1/4 re) 1/2) |
(*.f64 -1/4 (pow.f64 re 2)) |
(*.f64 -1/4 (*.f64 re re)) |
(+.f64 1/2 (*.f64 -1/4 (pow.f64 re 2))) |
(+.f64 1/2 (*.f64 -1/4 (*.f64 re re))) |
(fma.f64 -1/4 (*.f64 re re) 1/2) |
(fma.f64 re (*.f64 -1/4 re) 1/2) |
(+.f64 1/2 (*.f64 -1/4 (pow.f64 re 2))) |
(+.f64 1/2 (*.f64 -1/4 (*.f64 re re))) |
(fma.f64 -1/4 (*.f64 re re) 1/2) |
(fma.f64 re (*.f64 -1/4 re) 1/2) |
(+.f64 1/2 (*.f64 -1/4 (pow.f64 re 2))) |
(+.f64 1/2 (*.f64 -1/4 (*.f64 re re))) |
(fma.f64 -1/4 (*.f64 re re) 1/2) |
(fma.f64 re (*.f64 -1/4 re) 1/2) |
Compiled 1963 to 1036 computations (47.2% saved)
14 alts after pruning (4 fresh and 10 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 123 | 2 | 125 |
| Fresh | 0 | 2 | 2 |
| Picked | 1 | 0 | 1 |
| Done | 1 | 10 | 11 |
| Total | 125 | 14 | 139 |
| Status | Error | Program |
|---|---|---|
| ✓ | 0.0b | (*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))) |
| ✓ | 0.7b | (*.f64 (cos.f64 re) (+.f64 1 (*.f64 im (*.f64 im 1/2)))) |
| ✓ | 1.4b | (*.f64 (*.f64 1/2 (cos.f64 re)) (expm1.f64 (log1p.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))))) |
| ✓ | 0.9b | (cos.f64 re) |
| 26.5b | (*.f64 1/2 (+.f64 2 (fma.f64 (pow.f64 im 4) 1/12 (*.f64 im im)))) | |
| ✓ | 61.5b | (*.f64 im (*.f64 im 1/2)) |
| 62.3b | (*.f64 (*.f64 im im) (/.f64 (-.f64 (*.f64 (*.f64 re (*.f64 re -1/4)) (*.f64 re (*.f64 re -1/4))) 1/4) (-.f64 (*.f64 re (*.f64 re -1/4)) 1/2))) | |
| 62.5b | (*.f64 (*.f64 re re) (*.f64 -1/4 (*.f64 im im))) | |
| ✓ | 1.1b | (*.f64 (*.f64 1/2 (cos.f64 re)) (pow.f64 (sqrt.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))) 2)) |
| ✓ | 26.7b | (*.f64 1/2 2) |
| ✓ | 26.6b | (*.f64 1/2 (+.f64 2 (*.f64 1/12 (pow.f64 im 4)))) |
| ✓ | 26.5b | (*.f64 1/2 (+.f64 2 (*.f64 im im))) |
| 29.3b | (*.f64 (fma.f64 1/2 (*.f64 im im) 1) (fma.f64 -1/2 (*.f64 re re) 1)) | |
| ✓ | 26.3b | (*.f64 1/2 (*.f64 2 (cosh.f64 im))) |
Compiled 167 to 129 computations (22.8% saved)
| Inputs |
|---|
(*.f64 1/2 2) |
(*.f64 im (*.f64 im 1/2)) |
(*.f64 1/2 (+.f64 2 (*.f64 im im))) |
(*.f64 (*.f64 re re) (*.f64 -1/4 (*.f64 im im))) |
(*.f64 (*.f64 im im) (/.f64 (-.f64 (*.f64 (*.f64 re (*.f64 re -1/4)) (*.f64 re (*.f64 re -1/4))) 1/4) (-.f64 (*.f64 re (*.f64 re -1/4)) 1/2))) |
(cos.f64 re) |
(*.f64 1/2 (*.f64 2 (cosh.f64 im))) |
(*.f64 1/2 (*.f64 (*.f64 im im) (cos.f64 re))) |
(*.f64 1/2 (+.f64 2 (*.f64 1/12 (pow.f64 im 4)))) |
(*.f64 (*.f64 im im) (fma.f64 (*.f64 re re) -1/4 1/2)) |
(*.f64 (cos.f64 re) (+.f64 1 (*.f64 im (*.f64 im 1/2)))) |
(*.f64 1/2 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))) |
(*.f64 1/2 (+.f64 2 (fma.f64 (pow.f64 im 4) 1/12 (*.f64 im im)))) |
(*.f64 1/2 (+.f64 2 (+.f64 (pow.f64 im 2) (*.f64 1/12 (pow.f64 im 4))))) |
(*.f64 (fma.f64 1/2 (*.f64 im im) 1) (fma.f64 -1/2 (*.f64 re re) 1)) |
(*.f64 (cos.f64 re) (+.f64 (+.f64 1 (*.f64 im (*.f64 im 1/2))) (*.f64 (pow.f64 im 4) 1/24))) |
(*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))) |
(*.f64 (*.f64 1/2 (cos.f64 re)) (expm1.f64 (log1p.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))))) |
(*.f64 (*.f64 1/2 (cos.f64 re)) (pow.f64 (sqrt.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))) 2)) |
(*.f64 (*.f64 1/2 (cos.f64 re)) (*.f64 (sqrt.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))) (sqrt.f64 (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))))) |
| Outputs |
|---|
(*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))) |
6 calls:
| 28.0ms | (cos.f64 re) |
| 11.0ms | im |
| 11.0ms | re |
| 8.0ms | (*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))) |
| 8.0ms | (*.f64 1/2 (cos.f64 re)) |
| Error | Segments | Branch |
|---|---|---|
| 0.0b | 1 | re |
| 0.0b | 1 | im |
| 0.0b | 1 | (*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))) |
| 0.0b | 1 | (*.f64 1/2 (cos.f64 re)) |
| 0.0b | 1 | (cos.f64 re) |
| 0.0b | 1 | (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im)) |
Compiled 253 to 150 computations (40.7% saved)
| Inputs |
|---|
(*.f64 1/2 2) |
(*.f64 im (*.f64 im 1/2)) |
(*.f64 1/2 (+.f64 2 (*.f64 im im))) |
(*.f64 (*.f64 re re) (*.f64 -1/4 (*.f64 im im))) |
(*.f64 (*.f64 im im) (/.f64 (-.f64 (*.f64 (*.f64 re (*.f64 re -1/4)) (*.f64 re (*.f64 re -1/4))) 1/4) (-.f64 (*.f64 re (*.f64 re -1/4)) 1/2))) |
(cos.f64 re) |
(*.f64 1/2 (*.f64 2 (cosh.f64 im))) |
(*.f64 1/2 (*.f64 (*.f64 im im) (cos.f64 re))) |
(*.f64 1/2 (+.f64 2 (*.f64 1/12 (pow.f64 im 4)))) |
(*.f64 (*.f64 im im) (fma.f64 (*.f64 re re) -1/4 1/2)) |
(*.f64 (cos.f64 re) (+.f64 1 (*.f64 im (*.f64 im 1/2)))) |
(*.f64 1/2 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))) |
(*.f64 1/2 (+.f64 2 (fma.f64 (pow.f64 im 4) 1/12 (*.f64 im im)))) |
(*.f64 1/2 (+.f64 2 (+.f64 (pow.f64 im 2) (*.f64 1/12 (pow.f64 im 4))))) |
(*.f64 (fma.f64 1/2 (*.f64 im im) 1) (fma.f64 -1/2 (*.f64 re re) 1)) |
(*.f64 (cos.f64 re) (+.f64 (+.f64 1 (*.f64 im (*.f64 im 1/2))) (*.f64 (pow.f64 im 4) 1/24))) |
| Outputs |
|---|
(*.f64 (cos.f64 re) (+.f64 (+.f64 1 (*.f64 im (*.f64 im 1/2))) (*.f64 (pow.f64 im 4) 1/24))) |
3 calls:
| 9.0ms | im |
| 9.0ms | re |
| 6.0ms | (cos.f64 re) |
| Error | Segments | Branch |
|---|---|---|
| 0.7b | 1 | re |
| 0.7b | 1 | im |
| 0.7b | 1 | (cos.f64 re) |
Compiled 168 to 110 computations (34.5% saved)
| Inputs |
|---|
(*.f64 1/2 2) |
(*.f64 im (*.f64 im 1/2)) |
(*.f64 1/2 (+.f64 2 (*.f64 im im))) |
(*.f64 (*.f64 re re) (*.f64 -1/4 (*.f64 im im))) |
(*.f64 (*.f64 im im) (/.f64 (-.f64 (*.f64 (*.f64 re (*.f64 re -1/4)) (*.f64 re (*.f64 re -1/4))) 1/4) (-.f64 (*.f64 re (*.f64 re -1/4)) 1/2))) |
(cos.f64 re) |
(*.f64 1/2 (*.f64 2 (cosh.f64 im))) |
(*.f64 1/2 (*.f64 (*.f64 im im) (cos.f64 re))) |
(*.f64 1/2 (+.f64 2 (*.f64 1/12 (pow.f64 im 4)))) |
(*.f64 (*.f64 im im) (fma.f64 (*.f64 re re) -1/4 1/2)) |
(*.f64 (cos.f64 re) (+.f64 1 (*.f64 im (*.f64 im 1/2)))) |
(*.f64 1/2 (+.f64 (exp.f64 im) (exp.f64 (neg.f64 im)))) |
(*.f64 1/2 (+.f64 2 (fma.f64 (pow.f64 im 4) 1/12 (*.f64 im im)))) |
(*.f64 1/2 (+.f64 2 (+.f64 (pow.f64 im 2) (*.f64 1/12 (pow.f64 im 4))))) |
(*.f64 (fma.f64 1/2 (*.f64 im im) 1) (fma.f64 -1/2 (*.f64 re re) 1)) |
| Outputs |
|---|
(*.f64 (cos.f64 re) (+.f64 1 (*.f64 im (*.f64 im 1/2)))) |
3 calls:
| 57.0ms | re |
| 9.0ms | (cos.f64 re) |
| 8.0ms | im |
| Error | Segments | Branch |
|---|---|---|
| 0.7b | 1 | re |
| 0.7b | 1 | im |
| 0.7b | 1 | (cos.f64 re) |
Compiled 152 to 99 computations (34.9% saved)
| Inputs |
|---|
(*.f64 1/2 2) |
(*.f64 im (*.f64 im 1/2)) |
(*.f64 1/2 (+.f64 2 (*.f64 im im))) |
(*.f64 (*.f64 re re) (*.f64 -1/4 (*.f64 im im))) |
(*.f64 (*.f64 im im) (/.f64 (-.f64 (*.f64 (*.f64 re (*.f64 re -1/4)) (*.f64 re (*.f64 re -1/4))) 1/4) (-.f64 (*.f64 re (*.f64 re -1/4)) 1/2))) |
(cos.f64 re) |
(*.f64 1/2 (*.f64 2 (cosh.f64 im))) |
(*.f64 1/2 (*.f64 (*.f64 im im) (cos.f64 re))) |
(*.f64 1/2 (+.f64 2 (*.f64 1/12 (pow.f64 im 4)))) |
(*.f64 (*.f64 im im) (fma.f64 (*.f64 re re) -1/4 1/2)) |
| Outputs |
|---|
(cos.f64 re) |
3 calls:
| 7.0ms | re |
| 7.0ms | im |
| 5.0ms | (cos.f64 re) |
| Error | Segments | Branch |
|---|---|---|
| 0.9b | 1 | re |
| 0.9b | 1 | im |
| 0.9b | 1 | (cos.f64 re) |
Compiled 96 to 61 computations (36.5% saved)
| Inputs |
|---|
(*.f64 1/2 2) |
(*.f64 im (*.f64 im 1/2)) |
(*.f64 1/2 (+.f64 2 (*.f64 im im))) |
(*.f64 (*.f64 re re) (*.f64 -1/4 (*.f64 im im))) |
(*.f64 (*.f64 im im) (/.f64 (-.f64 (*.f64 (*.f64 re (*.f64 re -1/4)) (*.f64 re (*.f64 re -1/4))) 1/4) (-.f64 (*.f64 re (*.f64 re -1/4)) 1/2))) |
| Outputs |
|---|
(*.f64 1/2 (+.f64 2 (*.f64 im im))) |
2 calls:
| 5.0ms | re |
| 5.0ms | im |
| Error | Segments | Branch |
|---|---|---|
| 26.5b | 1 | re |
| 26.5b | 1 | im |
Compiled 57 to 37 computations (35.1% saved)
Total -35.0b remaining (-131.4%)
Threshold costs -35.0b (-131.4%)
| Inputs |
|---|
(*.f64 1/2 2) |
(*.f64 im (*.f64 im 1/2)) |
| Outputs |
|---|
(*.f64 1/2 2) |
2 calls:
| 4.0ms | im |
| 3.0ms | re |
| Error | Segments | Branch |
|---|---|---|
| 26.7b | 1 | re |
| 26.7b | 1 | im |
Compiled 16 to 12 computations (25% saved)
| 1× | egg-herbie |
| 9× | *-commutative_binary64 |
| 5× | +-commutative_binary64 |
| 1× | sub-neg_binary64 |
| 1× | neg-sub0_binary64 |
| 1× | neg-mul-1_binary64 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 27 | 71 |
| 1 | 44 | 71 |
| 2 | 46 | 71 |
| 3 | 47 | 71 |
| 1× | fuel |
| 1× | saturated |
| Inputs |
|---|
(*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))) |
(*.f64 (cos.f64 re) (+.f64 (+.f64 1 (*.f64 im (*.f64 im 1/2))) (*.f64 (pow.f64 im 4) 1/24))) |
(*.f64 (cos.f64 re) (+.f64 1 (*.f64 im (*.f64 im 1/2)))) |
(cos.f64 re) |
(*.f64 1/2 (+.f64 2 (*.f64 im im))) |
(*.f64 1/2 2) |
| Outputs |
|---|
(*.f64 (*.f64 1/2 (cos.f64 re)) (+.f64 (exp.f64 (neg.f64 im)) (exp.f64 im))) |
(*.f64 (cos.f64 re) (+.f64 (+.f64 1 (*.f64 im (*.f64 im 1/2))) (*.f64 (pow.f64 im 4) 1/24))) |
(*.f64 (cos.f64 re) (+.f64 (+.f64 1 (*.f64 im (*.f64 1/2 im))) (*.f64 (pow.f64 im 4) 1/24))) |
(*.f64 (cos.f64 re) (+.f64 1 (*.f64 im (*.f64 im 1/2)))) |
(*.f64 (cos.f64 re) (+.f64 1 (*.f64 im (*.f64 1/2 im)))) |
(cos.f64 re) |
(*.f64 1/2 (+.f64 2 (*.f64 im im))) |
(*.f64 1/2 2) |
1 |
Compiled 59 to 46 computations (22% saved)
Compiled 49 to 33 computations (32.7% saved)
Loading profile data...