Time bar (total: 3.5s)
| 1× | search |
| True | Other | False | Iter |
|---|---|---|---|
| 0% | 99.9% | 0.1% | 0 |
| 0% | 99.9% | 0.1% | 1 |
| 0% | 99.9% | 0.1% | 2 |
| 0% | 99.9% | 0.1% | 3 |
| 0% | 99.9% | 0.1% | 4 |
| 25% | 74.9% | 0.1% | 5 |
| 37.5% | 62.4% | 0.1% | 6 |
| 56.2% | 43.7% | 0.1% | 7 |
| 65.6% | 34.3% | 0.1% | 8 |
| 76.5% | 23.4% | 0.1% | 9 |
| 82% | 18% | 0.1% | 10 |
| 87.8% | 12.1% | 0.1% | 11 |
| 90.7% | 9.2% | 0.1% | 12 |
Compiled 11 to 7 computations (36.4% saved)
| 2.0s | 8256× | body | 256 | valid |
| 2× | egg-herbie |
| 2× | hypot-def_binary64 |
| 2× | fma-def_binary64 |
| 1× | swap-re-im |
| 1× | +-commutative_binary64 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 9 | 8 |
| 1 | 13 | 8 |
| 0 | 2 | 2 |
| 1 | 2 | 2 |
| 1× | unsound |
| 1× | saturated |
| Inputs |
|---|
0 |
1 |
| Outputs |
|---|
0 |
1 |
0 |
| Inputs |
|---|
(sqrt.f64 (+.f64 (*.f64 re re) (*.f64 im im))) |
(sqrt.f64 (+.f64 (*.f64 im im) (*.f64 re re))) |
| Outputs |
|---|
(sqrt.f64 (+.f64 (*.f64 re re) (*.f64 im im))) |
(hypot.f64 re im) |
(sqrt.f64 (+.f64 (*.f64 im im) (*.f64 re re))) |
(hypot.f64 re im) |
(sort re im)
Compiled 12 to 8 computations (33.3% saved)
| 1× | egg-herbie |
| 2× | hypot-def_binary64 |
| 2× | fma-def_binary64 |
| 1× | +-commutative_binary64 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 7 | 4 |
| 1 | 10 | 4 |
| 2 | 12 | 4 |
| 1× | saturated |
| Inputs |
|---|
(sqrt.f64 (+.f64 (*.f64 re re) (*.f64 im im))) |
| Outputs |
|---|
(sqrt.f64 (+.f64 (*.f64 re re) (*.f64 im im))) |
(hypot.f64 re im) |
Compiled 13 to 7 computations (46.2% saved)
3 alts after pruning (3 fresh and 0 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 0 | 2 | 2 |
| Fresh | 0 | 1 | 1 |
| Picked | 0 | 0 | 0 |
| Done | 0 | 0 | 0 |
| Total | 0 | 3 | 3 |
| Status | Error | Program |
|---|---|---|
| ▶ | 0.0b | (hypot.f64 re im) |
| ▶ | 35.2b | (sqrt.f64 (+.f64 (*.f64 re re) (*.f64 im im))) |
Compiled 15 to 9 computations (40% saved)
Found 2 expressions with local error:
| New | Error | Program |
|---|---|---|
| ✓ | 0.0b | (+.f64 (*.f64 re re) (*.f64 im im)) |
| ✓ | 33.0b | (sqrt.f64 (+.f64 (*.f64 re re) (*.f64 im im))) |
Compiled 25 to 6 computations (76% saved)
12 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 1.0ms | re | @ | 0 | (sqrt.f64 (+.f64 (*.f64 re re) (*.f64 im im))) |
| 1.0ms | re | @ | inf | (sqrt.f64 (+.f64 (*.f64 re re) (*.f64 im im))) |
| 1.0ms | im | @ | inf | (sqrt.f64 (+.f64 (*.f64 re re) (*.f64 im im))) |
| 1.0ms | im | @ | 0 | (sqrt.f64 (+.f64 (*.f64 re re) (*.f64 im im))) |
| 0.0ms | im | @ | -inf | (sqrt.f64 (+.f64 (*.f64 re re) (*.f64 im im))) |
| 1× | batch-egg-rewrite |
| 725× | pow1_binary64 |
| 676× | add-log-exp_binary64 |
| 676× | log1p-expm1-u_binary64 |
| 676× | expm1-log1p-u_binary64 |
| 656× | add-exp-log_binary64 |
Useful iterations: 1 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 7 | 12 |
| 1 | 150 | 11 |
| 2 | 1971 | 11 |
| 1× | node limit |
| Inputs |
|---|
(sqrt.f64 (+.f64 (*.f64 re re) (*.f64 im im))) |
(+.f64 (*.f64 re re) (*.f64 im im)) |
| Outputs |
|---|
((#(struct:change #<rule egg-rr> (2) ((x -.f64 (+.f64 1 (hypot.f64 re im)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (hypot.f64 re im) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (hypot.f64 re im))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (hypot.f64 re im)) 2) (cbrt.f64 (hypot.f64 re im)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (hypot.f64 re im)) (pow.f64 (cbrt.f64 (hypot.f64 re im)) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (hypot.f64 re im)) (sqrt.f64 (hypot.f64 re im)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (pow.f64 (pow.f64 (cbrt.f64 (hypot.f64 re im)) 2) 2)) (sqrt.f64 (pow.f64 (cbrt.f64 (hypot.f64 re im)) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 1 1/2) (hypot.f64 re im))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (pow.f64 (pow.f64 (cbrt.f64 (hypot.f64 re im)) 2) 2) 1/2) (pow.f64 (pow.f64 (cbrt.f64 (hypot.f64 re im)) 2) 1/2))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (sqrt.f64 (-.f64 (pow.f64 re 4) (pow.f64 im 4))) (sqrt.f64 (-.f64 (*.f64 re re) (*.f64 im im))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (sqrt.f64 (+.f64 (pow.f64 re 6) (pow.f64 im 6))) (sqrt.f64 (+.f64 (pow.f64 re 4) (-.f64 (pow.f64 im 4) (pow.f64 (*.f64 re im) 2)))))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (hypot.f64 re im) 2) 1/2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (hypot.f64 re im) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (hypot.f64 re im) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (hypot.f64 re im)) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (hypot.f64 re im)) 2)))) (#(struct:change #<rule egg-rr> (2) ((x fabs.f64 (hypot.f64 re im))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (hypot.f64 re im)))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (hypot.f64 re im) 3))))) (#(struct:change #<rule egg-rr> (2) ((x hypot.f64 re im)))) (#(struct:change #<rule egg-rr> (2) ((x hypot.f64 im re)))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (hypot.f64 re im)))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (hypot.f64 re im)))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (hypot.f64 re im))))))) |
((#(struct:change #<rule egg-rr> (2) ((x -.f64 (+.f64 1 (pow.f64 (hypot.f64 re im) 2)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (/.f64 (pow.f64 re 4) (-.f64 (*.f64 re re) (*.f64 im im))) (/.f64 (pow.f64 im 4) (-.f64 (*.f64 re re) (*.f64 im im))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (hypot.f64 re im) 2) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (hypot.f64 re im) (hypot.f64 re im))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (pow.f64 (hypot.f64 re im) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (hypot.f64 re im)) 2) (pow.f64 (pow.f64 (cbrt.f64 (hypot.f64 re im)) 2) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (hypot.f64 re im)) 2) (*.f64 (cbrt.f64 (hypot.f64 re im)) (hypot.f64 re im)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (pow.f64 (cbrt.f64 (hypot.f64 re im)) 2) 2) (pow.f64 (cbrt.f64 (hypot.f64 re im)) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (hypot.f64 re im)) (*.f64 (sqrt.f64 (hypot.f64 re im)) (hypot.f64 re im)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (+.f64 (pow.f64 re 6) (pow.f64 im 6)) (/.f64 1 (+.f64 (pow.f64 re 4) (-.f64 (pow.f64 im 4) (pow.f64 (*.f64 re im) 2)))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (-.f64 (pow.f64 re 4) (pow.f64 im 4)) (/.f64 1 (-.f64 (*.f64 re re) (*.f64 im im))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 (hypot.f64 re im) (sqrt.f64 (hypot.f64 re im))) (sqrt.f64 (hypot.f64 re im)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 (hypot.f64 re im) (pow.f64 (cbrt.f64 (hypot.f64 re im)) 2)) (cbrt.f64 (hypot.f64 re im)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (/.f64 (+.f64 (pow.f64 re 4) (-.f64 (pow.f64 im 4) (pow.f64 (*.f64 re im) 2))) (+.f64 (pow.f64 re 6) (pow.f64 im 6))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (/.f64 (-.f64 (*.f64 re re) (*.f64 im im)) (-.f64 (pow.f64 re 4) (pow.f64 im 4))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 (pow.f64 re 6) (pow.f64 im 6)) (+.f64 (pow.f64 re 4) (-.f64 (pow.f64 im 4) (pow.f64 (*.f64 re im) 2))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 (pow.f64 re 6) (pow.f64 im 6)) (+.f64 (pow.f64 im 4) (-.f64 (pow.f64 re 4) (pow.f64 (*.f64 re im) 2))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (pow.f64 re 4) (pow.f64 im 4)) (-.f64 (*.f64 re re) (*.f64 im im)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (+.f64 (pow.f64 re 6) (pow.f64 im 6))) (neg.f64 (+.f64 (pow.f64 re 4) (-.f64 (pow.f64 im 4) (pow.f64 (*.f64 re im) 2)))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (-.f64 (pow.f64 re 4) (pow.f64 im 4))) (neg.f64 (-.f64 (*.f64 re re) (*.f64 im im))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (pow.f64 im 4) (pow.f64 re 4)) (-.f64 (*.f64 im im) (*.f64 re re)))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (hypot.f64 re im) 2) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (hypot.f64 re im) 2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (pow.f64 (hypot.f64 re im) 2) 2) 1/2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (pow.f64 (hypot.f64 re im) 2) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (cbrt.f64 (hypot.f64 re im)) 2) 3)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (pow.f64 (hypot.f64 re im) 2) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (pow.f64 (hypot.f64 re im) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (pow.f64 (hypot.f64 re im) 2) 3))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (pow.f64 (hypot.f64 re im) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (pow.f64 (hypot.f64 re im) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (pow.f64 (hypot.f64 re im) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 re re (*.f64 im im))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 im im (*.f64 re re))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 1 (*.f64 re re) (*.f64 im im))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 1 (*.f64 im im) (*.f64 re re))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (cbrt.f64 (pow.f64 re 4)) (pow.f64 (cbrt.f64 re) 2) (*.f64 im im))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (cbrt.f64 (pow.f64 im 4)) (pow.f64 (cbrt.f64 im) 2) (*.f64 re re)))))) |
| 1× | egg-herbie |
| 774× | unswap-sqr_binary64 |
| 754× | associate-*l/_binary64 |
| 605× | associate-*r/_binary64 |
| 318× | *-commutative_binary64 |
| 314× | associate-/l/_binary64 |
Useful iterations: 1 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 65 | 669 |
| 1 | 194 | 622 |
| 2 | 567 | 622 |
| 3 | 2294 | 622 |
| 4 | 6203 | 622 |
| 1× | node limit |
| Inputs |
|---|
im |
(+.f64 (*.f64 1/2 (/.f64 (pow.f64 re 2) im)) im) |
(+.f64 (*.f64 -1/8 (/.f64 (pow.f64 re 4) (pow.f64 im 3))) (+.f64 (*.f64 1/2 (/.f64 (pow.f64 re 2) im)) im)) |
(+.f64 (*.f64 -1/8 (/.f64 (pow.f64 re 4) (pow.f64 im 3))) (+.f64 (*.f64 1/2 (/.f64 (pow.f64 re 2) im)) (+.f64 (*.f64 1/16 (/.f64 (pow.f64 re 6) (pow.f64 im 5))) im))) |
re |
(+.f64 (*.f64 1/2 (/.f64 (pow.f64 im 2) re)) re) |
(+.f64 (*.f64 1/2 (/.f64 (pow.f64 im 2) re)) (+.f64 re (*.f64 -1/8 (/.f64 (pow.f64 im 4) (pow.f64 re 3))))) |
(+.f64 (*.f64 1/2 (/.f64 (pow.f64 im 2) re)) (+.f64 (*.f64 1/16 (/.f64 (pow.f64 im 6) (pow.f64 re 5))) (+.f64 re (*.f64 -1/8 (/.f64 (pow.f64 im 4) (pow.f64 re 3)))))) |
(*.f64 -1 re) |
(+.f64 (*.f64 -1 re) (*.f64 -1/2 (/.f64 (pow.f64 im 2) re))) |
(+.f64 (*.f64 -1 re) (+.f64 (*.f64 1/8 (/.f64 (pow.f64 im 4) (pow.f64 re 3))) (*.f64 -1/2 (/.f64 (pow.f64 im 2) re)))) |
(+.f64 (*.f64 -1 re) (+.f64 (*.f64 1/8 (/.f64 (pow.f64 im 4) (pow.f64 re 3))) (+.f64 (*.f64 -1/16 (/.f64 (pow.f64 im 6) (pow.f64 re 5))) (*.f64 -1/2 (/.f64 (pow.f64 im 2) re))))) |
re |
(+.f64 (*.f64 1/2 (/.f64 (pow.f64 im 2) re)) re) |
(+.f64 (*.f64 1/2 (/.f64 (pow.f64 im 2) re)) (+.f64 re (*.f64 -1/8 (/.f64 (pow.f64 im 4) (pow.f64 re 3))))) |
(+.f64 (*.f64 1/2 (/.f64 (pow.f64 im 2) re)) (+.f64 (*.f64 1/16 (/.f64 (pow.f64 im 6) (pow.f64 re 5))) (+.f64 re (*.f64 -1/8 (/.f64 (pow.f64 im 4) (pow.f64 re 3)))))) |
im |
(+.f64 (*.f64 1/2 (/.f64 (pow.f64 re 2) im)) im) |
(+.f64 (*.f64 -1/8 (/.f64 (pow.f64 re 4) (pow.f64 im 3))) (+.f64 (*.f64 1/2 (/.f64 (pow.f64 re 2) im)) im)) |
(+.f64 (*.f64 -1/8 (/.f64 (pow.f64 re 4) (pow.f64 im 3))) (+.f64 (*.f64 1/2 (/.f64 (pow.f64 re 2) im)) (+.f64 (*.f64 1/16 (/.f64 (pow.f64 re 6) (pow.f64 im 5))) im))) |
(*.f64 -1 im) |
(+.f64 (*.f64 -1/2 (/.f64 (pow.f64 re 2) im)) (*.f64 -1 im)) |
(+.f64 (*.f64 1/8 (/.f64 (pow.f64 re 4) (pow.f64 im 3))) (+.f64 (*.f64 -1/2 (/.f64 (pow.f64 re 2) im)) (*.f64 -1 im))) |
(+.f64 (*.f64 -1/16 (/.f64 (pow.f64 re 6) (pow.f64 im 5))) (+.f64 (*.f64 1/8 (/.f64 (pow.f64 re 4) (pow.f64 im 3))) (+.f64 (*.f64 -1/2 (/.f64 (pow.f64 re 2) im)) (*.f64 -1 im)))) |
(pow.f64 im 2) |
(+.f64 (pow.f64 re 2) (pow.f64 im 2)) |
(+.f64 (pow.f64 re 2) (pow.f64 im 2)) |
(+.f64 (pow.f64 re 2) (pow.f64 im 2)) |
(pow.f64 re 2) |
(+.f64 (pow.f64 re 2) (pow.f64 im 2)) |
(+.f64 (pow.f64 re 2) (pow.f64 im 2)) |
(+.f64 (pow.f64 re 2) (pow.f64 im 2)) |
(pow.f64 re 2) |
(+.f64 (pow.f64 re 2) (pow.f64 im 2)) |
(+.f64 (pow.f64 re 2) (pow.f64 im 2)) |
(+.f64 (pow.f64 re 2) (pow.f64 im 2)) |
(pow.f64 re 2) |
(+.f64 (pow.f64 re 2) (pow.f64 im 2)) |
(+.f64 (pow.f64 re 2) (pow.f64 im 2)) |
(+.f64 (pow.f64 re 2) (pow.f64 im 2)) |
(pow.f64 im 2) |
(+.f64 (pow.f64 re 2) (pow.f64 im 2)) |
(+.f64 (pow.f64 re 2) (pow.f64 im 2)) |
(+.f64 (pow.f64 re 2) (pow.f64 im 2)) |
(pow.f64 im 2) |
(+.f64 (pow.f64 re 2) (pow.f64 im 2)) |
(+.f64 (pow.f64 re 2) (pow.f64 im 2)) |
(+.f64 (pow.f64 re 2) (pow.f64 im 2)) |
| Outputs |
|---|
im |
(+.f64 (*.f64 1/2 (/.f64 (pow.f64 re 2) im)) im) |
(fma.f64 1/2 (/.f64 (*.f64 re re) im) im) |
(fma.f64 1/2 (/.f64 re (/.f64 im re)) im) |
(fma.f64 1/2 (*.f64 (/.f64 re im) re) im) |
(fma.f64 1/2 (*.f64 re (/.f64 re im)) im) |
(+.f64 (*.f64 -1/8 (/.f64 (pow.f64 re 4) (pow.f64 im 3))) (+.f64 (*.f64 1/2 (/.f64 (pow.f64 re 2) im)) im)) |
(fma.f64 -1/8 (/.f64 (pow.f64 re 4) (pow.f64 im 3)) (fma.f64 1/2 (/.f64 (*.f64 re re) im) im)) |
(fma.f64 -1/8 (/.f64 (pow.f64 re 4) (pow.f64 im 3)) (fma.f64 1/2 (/.f64 re (/.f64 im re)) im)) |
(fma.f64 -1/8 (/.f64 (pow.f64 re 4) (pow.f64 im 3)) (fma.f64 1/2 (*.f64 (/.f64 re im) re) im)) |
(fma.f64 1/2 (*.f64 re (/.f64 re im)) (fma.f64 -1/8 (/.f64 (pow.f64 re 4) (pow.f64 im 3)) im)) |
(+.f64 (*.f64 -1/8 (/.f64 (pow.f64 re 4) (pow.f64 im 3))) (+.f64 (*.f64 1/2 (/.f64 (pow.f64 re 2) im)) (+.f64 (*.f64 1/16 (/.f64 (pow.f64 re 6) (pow.f64 im 5))) im))) |
(fma.f64 -1/8 (/.f64 (pow.f64 re 4) (pow.f64 im 3)) (fma.f64 1/2 (/.f64 (*.f64 re re) im) (fma.f64 1/16 (/.f64 (pow.f64 re 6) (pow.f64 im 5)) im))) |
(fma.f64 -1/8 (/.f64 (pow.f64 re 4) (pow.f64 im 3)) (fma.f64 1/2 (/.f64 re (/.f64 im re)) (fma.f64 1/16 (/.f64 (pow.f64 re 6) (pow.f64 im 5)) im))) |
(fma.f64 1/2 (*.f64 (/.f64 re im) re) (fma.f64 -1/8 (/.f64 (pow.f64 re 4) (pow.f64 im 3)) (fma.f64 1/16 (/.f64 (pow.f64 re 6) (pow.f64 im 5)) im))) |
(fma.f64 1/2 (*.f64 re (/.f64 re im)) (fma.f64 -1/8 (/.f64 (pow.f64 re 4) (pow.f64 im 3)) (fma.f64 1/16 (/.f64 (pow.f64 re 6) (pow.f64 im 5)) im))) |
re |
(+.f64 (*.f64 1/2 (/.f64 (pow.f64 im 2) re)) re) |
(fma.f64 1/2 (/.f64 (*.f64 im im) re) re) |
(fma.f64 1/2 (/.f64 im (/.f64 re im)) re) |
(fma.f64 1/2 (*.f64 (/.f64 im re) im) re) |
(+.f64 (*.f64 1/2 (/.f64 (pow.f64 im 2) re)) (+.f64 re (*.f64 -1/8 (/.f64 (pow.f64 im 4) (pow.f64 re 3))))) |
(+.f64 (fma.f64 1/2 (/.f64 (*.f64 im im) re) re) (/.f64 (*.f64 -1/8 (pow.f64 im 4)) (pow.f64 re 3))) |
(fma.f64 1/2 (/.f64 im (/.f64 re im)) (fma.f64 -1/8 (/.f64 (pow.f64 im 4) (pow.f64 re 3)) re)) |
(fma.f64 1/2 (*.f64 (/.f64 im re) im) (fma.f64 -1/8 (/.f64 (pow.f64 im 4) (pow.f64 re 3)) re)) |
(fma.f64 1/2 (/.f64 (*.f64 im im) re) (fma.f64 -1/8 (/.f64 (pow.f64 im 4) (pow.f64 re 3)) re)) |
(+.f64 (*.f64 1/2 (/.f64 (pow.f64 im 2) re)) (+.f64 (*.f64 1/16 (/.f64 (pow.f64 im 6) (pow.f64 re 5))) (+.f64 re (*.f64 -1/8 (/.f64 (pow.f64 im 4) (pow.f64 re 3)))))) |
(fma.f64 1/2 (/.f64 (*.f64 im im) re) (fma.f64 1/16 (/.f64 (pow.f64 im 6) (pow.f64 re 5)) (+.f64 re (/.f64 (*.f64 -1/8 (pow.f64 im 4)) (pow.f64 re 3))))) |
(fma.f64 1/2 (/.f64 im (/.f64 re im)) (fma.f64 1/16 (/.f64 (pow.f64 im 6) (pow.f64 re 5)) (fma.f64 -1/8 (/.f64 (pow.f64 im 4) (pow.f64 re 3)) re))) |
(fma.f64 1/2 (*.f64 (/.f64 im re) im) (fma.f64 -1/8 (/.f64 (pow.f64 im 4) (pow.f64 re 3)) (fma.f64 1/16 (/.f64 (pow.f64 im 6) (pow.f64 re 5)) re))) |
(fma.f64 1/2 (/.f64 (*.f64 im im) re) (fma.f64 -1/8 (/.f64 (pow.f64 im 4) (pow.f64 re 3)) (fma.f64 1/16 (/.f64 (pow.f64 im 6) (pow.f64 re 5)) re))) |
(*.f64 -1 re) |
(neg.f64 re) |
(+.f64 (*.f64 -1 re) (*.f64 -1/2 (/.f64 (pow.f64 im 2) re))) |
(fma.f64 -1 re (*.f64 (/.f64 (*.f64 im im) re) -1/2)) |
(-.f64 (*.f64 (/.f64 im (/.f64 re im)) -1/2) re) |
(-.f64 (/.f64 (*.f64 im im) (/.f64 re -1/2)) re) |
(+.f64 (*.f64 -1 re) (+.f64 (*.f64 1/8 (/.f64 (pow.f64 im 4) (pow.f64 re 3))) (*.f64 -1/2 (/.f64 (pow.f64 im 2) re)))) |
(fma.f64 -1 re (fma.f64 1/8 (/.f64 (pow.f64 im 4) (pow.f64 re 3)) (*.f64 (/.f64 (*.f64 im im) re) -1/2))) |
(-.f64 (fma.f64 (/.f64 im (/.f64 re im)) -1/2 (*.f64 (/.f64 (pow.f64 im 4) (pow.f64 re 3)) 1/8)) re) |
(fma.f64 (*.f64 (/.f64 im re) im) -1/2 (-.f64 (*.f64 (/.f64 (pow.f64 im 4) (pow.f64 re 3)) 1/8) re)) |
(-.f64 (/.f64 (*.f64 im im) (/.f64 re -1/2)) (fma.f64 -1/8 (/.f64 (pow.f64 im 4) (pow.f64 re 3)) re)) |
(+.f64 (*.f64 -1 re) (+.f64 (*.f64 1/8 (/.f64 (pow.f64 im 4) (pow.f64 re 3))) (+.f64 (*.f64 -1/16 (/.f64 (pow.f64 im 6) (pow.f64 re 5))) (*.f64 -1/2 (/.f64 (pow.f64 im 2) re))))) |
(fma.f64 -1 re (fma.f64 1/8 (/.f64 (pow.f64 im 4) (pow.f64 re 3)) (fma.f64 -1/16 (/.f64 (pow.f64 im 6) (pow.f64 re 5)) (*.f64 (/.f64 (*.f64 im im) re) -1/2)))) |
(-.f64 (fma.f64 (/.f64 (pow.f64 im 4) (pow.f64 re 3)) 1/8 (fma.f64 (/.f64 im (/.f64 re im)) -1/2 (*.f64 (/.f64 (pow.f64 im 6) (pow.f64 re 5)) -1/16))) re) |
(fma.f64 (/.f64 (pow.f64 im 4) (pow.f64 re 3)) 1/8 (-.f64 (fma.f64 (*.f64 (/.f64 im re) im) -1/2 (*.f64 (/.f64 (pow.f64 im 6) (pow.f64 re 5)) -1/16)) re)) |
(-.f64 (fma.f64 (/.f64 (pow.f64 im 4) (pow.f64 re 3)) 1/8 (/.f64 (*.f64 im im) (/.f64 re -1/2))) (fma.f64 1/16 (/.f64 (pow.f64 im 6) (pow.f64 re 5)) re)) |
(-.f64 (fma.f64 (/.f64 (pow.f64 im 4) (pow.f64 re 3)) 1/8 (/.f64 -1/16 (/.f64 (pow.f64 re 5) (pow.f64 im 6)))) (fma.f64 1/2 (/.f64 (*.f64 im im) re) re)) |
re |
(+.f64 (*.f64 1/2 (/.f64 (pow.f64 im 2) re)) re) |
(fma.f64 1/2 (/.f64 (*.f64 im im) re) re) |
(fma.f64 1/2 (/.f64 im (/.f64 re im)) re) |
(fma.f64 1/2 (*.f64 (/.f64 im re) im) re) |
(+.f64 (*.f64 1/2 (/.f64 (pow.f64 im 2) re)) (+.f64 re (*.f64 -1/8 (/.f64 (pow.f64 im 4) (pow.f64 re 3))))) |
(+.f64 (fma.f64 1/2 (/.f64 (*.f64 im im) re) re) (/.f64 (*.f64 -1/8 (pow.f64 im 4)) (pow.f64 re 3))) |
(fma.f64 1/2 (/.f64 im (/.f64 re im)) (fma.f64 -1/8 (/.f64 (pow.f64 im 4) (pow.f64 re 3)) re)) |
(fma.f64 1/2 (*.f64 (/.f64 im re) im) (fma.f64 -1/8 (/.f64 (pow.f64 im 4) (pow.f64 re 3)) re)) |
(fma.f64 1/2 (/.f64 (*.f64 im im) re) (fma.f64 -1/8 (/.f64 (pow.f64 im 4) (pow.f64 re 3)) re)) |
(+.f64 (*.f64 1/2 (/.f64 (pow.f64 im 2) re)) (+.f64 (*.f64 1/16 (/.f64 (pow.f64 im 6) (pow.f64 re 5))) (+.f64 re (*.f64 -1/8 (/.f64 (pow.f64 im 4) (pow.f64 re 3)))))) |
(fma.f64 1/2 (/.f64 (*.f64 im im) re) (fma.f64 1/16 (/.f64 (pow.f64 im 6) (pow.f64 re 5)) (+.f64 re (/.f64 (*.f64 -1/8 (pow.f64 im 4)) (pow.f64 re 3))))) |
(fma.f64 1/2 (/.f64 im (/.f64 re im)) (fma.f64 1/16 (/.f64 (pow.f64 im 6) (pow.f64 re 5)) (fma.f64 -1/8 (/.f64 (pow.f64 im 4) (pow.f64 re 3)) re))) |
(fma.f64 1/2 (*.f64 (/.f64 im re) im) (fma.f64 -1/8 (/.f64 (pow.f64 im 4) (pow.f64 re 3)) (fma.f64 1/16 (/.f64 (pow.f64 im 6) (pow.f64 re 5)) re))) |
(fma.f64 1/2 (/.f64 (*.f64 im im) re) (fma.f64 -1/8 (/.f64 (pow.f64 im 4) (pow.f64 re 3)) (fma.f64 1/16 (/.f64 (pow.f64 im 6) (pow.f64 re 5)) re))) |
im |
(+.f64 (*.f64 1/2 (/.f64 (pow.f64 re 2) im)) im) |
(fma.f64 1/2 (/.f64 (*.f64 re re) im) im) |
(fma.f64 1/2 (/.f64 re (/.f64 im re)) im) |
(fma.f64 1/2 (*.f64 (/.f64 re im) re) im) |
(fma.f64 1/2 (*.f64 re (/.f64 re im)) im) |
(+.f64 (*.f64 -1/8 (/.f64 (pow.f64 re 4) (pow.f64 im 3))) (+.f64 (*.f64 1/2 (/.f64 (pow.f64 re 2) im)) im)) |
(fma.f64 -1/8 (/.f64 (pow.f64 re 4) (pow.f64 im 3)) (fma.f64 1/2 (/.f64 (*.f64 re re) im) im)) |
(fma.f64 -1/8 (/.f64 (pow.f64 re 4) (pow.f64 im 3)) (fma.f64 1/2 (/.f64 re (/.f64 im re)) im)) |
(fma.f64 -1/8 (/.f64 (pow.f64 re 4) (pow.f64 im 3)) (fma.f64 1/2 (*.f64 (/.f64 re im) re) im)) |
(fma.f64 1/2 (*.f64 re (/.f64 re im)) (fma.f64 -1/8 (/.f64 (pow.f64 re 4) (pow.f64 im 3)) im)) |
(+.f64 (*.f64 -1/8 (/.f64 (pow.f64 re 4) (pow.f64 im 3))) (+.f64 (*.f64 1/2 (/.f64 (pow.f64 re 2) im)) (+.f64 (*.f64 1/16 (/.f64 (pow.f64 re 6) (pow.f64 im 5))) im))) |
(fma.f64 -1/8 (/.f64 (pow.f64 re 4) (pow.f64 im 3)) (fma.f64 1/2 (/.f64 (*.f64 re re) im) (fma.f64 1/16 (/.f64 (pow.f64 re 6) (pow.f64 im 5)) im))) |
(fma.f64 -1/8 (/.f64 (pow.f64 re 4) (pow.f64 im 3)) (fma.f64 1/2 (/.f64 re (/.f64 im re)) (fma.f64 1/16 (/.f64 (pow.f64 re 6) (pow.f64 im 5)) im))) |
(fma.f64 1/2 (*.f64 (/.f64 re im) re) (fma.f64 -1/8 (/.f64 (pow.f64 re 4) (pow.f64 im 3)) (fma.f64 1/16 (/.f64 (pow.f64 re 6) (pow.f64 im 5)) im))) |
(fma.f64 1/2 (*.f64 re (/.f64 re im)) (fma.f64 -1/8 (/.f64 (pow.f64 re 4) (pow.f64 im 3)) (fma.f64 1/16 (/.f64 (pow.f64 re 6) (pow.f64 im 5)) im))) |
(*.f64 -1 im) |
(neg.f64 im) |
(+.f64 (*.f64 -1/2 (/.f64 (pow.f64 re 2) im)) (*.f64 -1 im)) |
(fma.f64 -1/2 (/.f64 (*.f64 re re) im) (neg.f64 im)) |
(-.f64 (*.f64 (/.f64 re (/.f64 im re)) -1/2) im) |
(-.f64 (/.f64 (*.f64 re re) (/.f64 im -1/2)) im) |
(+.f64 (*.f64 1/8 (/.f64 (pow.f64 re 4) (pow.f64 im 3))) (+.f64 (*.f64 -1/2 (/.f64 (pow.f64 re 2) im)) (*.f64 -1 im))) |
(fma.f64 1/8 (/.f64 (pow.f64 re 4) (pow.f64 im 3)) (fma.f64 -1/2 (/.f64 (*.f64 re re) im) (neg.f64 im))) |
(-.f64 (fma.f64 (/.f64 (pow.f64 re 4) (pow.f64 im 3)) 1/8 (*.f64 (/.f64 re (/.f64 im re)) -1/2)) im) |
(-.f64 (fma.f64 (*.f64 (/.f64 re im) re) -1/2 (*.f64 (/.f64 1/8 (pow.f64 im 3)) (pow.f64 re 4))) im) |
(fma.f64 (*.f64 re (/.f64 re im)) -1/2 (fma.f64 (/.f64 (pow.f64 re 4) (pow.f64 im 3)) 1/8 (neg.f64 im))) |
(fma.f64 (*.f64 re re) (/.f64 -1/2 im) (fma.f64 (pow.f64 re 4) (/.f64 1/8 (pow.f64 im 3)) (neg.f64 im))) |
(+.f64 (*.f64 -1/16 (/.f64 (pow.f64 re 6) (pow.f64 im 5))) (+.f64 (*.f64 1/8 (/.f64 (pow.f64 re 4) (pow.f64 im 3))) (+.f64 (*.f64 -1/2 (/.f64 (pow.f64 re 2) im)) (*.f64 -1 im)))) |
(fma.f64 -1/16 (/.f64 (pow.f64 re 6) (pow.f64 im 5)) (fma.f64 1/8 (/.f64 (pow.f64 re 4) (pow.f64 im 3)) (fma.f64 -1/2 (/.f64 (*.f64 re re) im) (neg.f64 im)))) |
(fma.f64 (/.f64 (pow.f64 re 6) (pow.f64 im 5)) -1/16 (-.f64 (fma.f64 (/.f64 (pow.f64 re 4) (pow.f64 im 3)) 1/8 (*.f64 (/.f64 re (/.f64 im re)) -1/2)) im)) |
(fma.f64 (/.f64 (pow.f64 re 4) (pow.f64 im 3)) 1/8 (fma.f64 (/.f64 (pow.f64 re 6) (pow.f64 im 5)) -1/16 (-.f64 (/.f64 (*.f64 re re) (/.f64 im -1/2)) im))) |
(-.f64 (fma.f64 (/.f64 (pow.f64 re 4) (pow.f64 im 3)) 1/8 (/.f64 (pow.f64 re 6) (/.f64 (pow.f64 im 5) -1/16))) (fma.f64 1/2 (*.f64 re (/.f64 re im)) im)) |
(pow.f64 im 2) |
(*.f64 im im) |
(+.f64 (pow.f64 re 2) (pow.f64 im 2)) |
(+.f64 (*.f64 re re) (*.f64 im im)) |
(fma.f64 im im (*.f64 re re)) |
(+.f64 (pow.f64 re 2) (pow.f64 im 2)) |
(+.f64 (*.f64 re re) (*.f64 im im)) |
(fma.f64 im im (*.f64 re re)) |
(+.f64 (pow.f64 re 2) (pow.f64 im 2)) |
(+.f64 (*.f64 re re) (*.f64 im im)) |
(fma.f64 im im (*.f64 re re)) |
(pow.f64 re 2) |
(*.f64 re re) |
(+.f64 (pow.f64 re 2) (pow.f64 im 2)) |
(+.f64 (*.f64 re re) (*.f64 im im)) |
(fma.f64 im im (*.f64 re re)) |
(+.f64 (pow.f64 re 2) (pow.f64 im 2)) |
(+.f64 (*.f64 re re) (*.f64 im im)) |
(fma.f64 im im (*.f64 re re)) |
(+.f64 (pow.f64 re 2) (pow.f64 im 2)) |
(+.f64 (*.f64 re re) (*.f64 im im)) |
(fma.f64 im im (*.f64 re re)) |
(pow.f64 re 2) |
(*.f64 re re) |
(+.f64 (pow.f64 re 2) (pow.f64 im 2)) |
(+.f64 (*.f64 re re) (*.f64 im im)) |
(fma.f64 im im (*.f64 re re)) |
(+.f64 (pow.f64 re 2) (pow.f64 im 2)) |
(+.f64 (*.f64 re re) (*.f64 im im)) |
(fma.f64 im im (*.f64 re re)) |
(+.f64 (pow.f64 re 2) (pow.f64 im 2)) |
(+.f64 (*.f64 re re) (*.f64 im im)) |
(fma.f64 im im (*.f64 re re)) |
(pow.f64 re 2) |
(*.f64 re re) |
(+.f64 (pow.f64 re 2) (pow.f64 im 2)) |
(+.f64 (*.f64 re re) (*.f64 im im)) |
(fma.f64 im im (*.f64 re re)) |
(+.f64 (pow.f64 re 2) (pow.f64 im 2)) |
(+.f64 (*.f64 re re) (*.f64 im im)) |
(fma.f64 im im (*.f64 re re)) |
(+.f64 (pow.f64 re 2) (pow.f64 im 2)) |
(+.f64 (*.f64 re re) (*.f64 im im)) |
(fma.f64 im im (*.f64 re re)) |
(pow.f64 im 2) |
(*.f64 im im) |
(+.f64 (pow.f64 re 2) (pow.f64 im 2)) |
(+.f64 (*.f64 re re) (*.f64 im im)) |
(fma.f64 im im (*.f64 re re)) |
(+.f64 (pow.f64 re 2) (pow.f64 im 2)) |
(+.f64 (*.f64 re re) (*.f64 im im)) |
(fma.f64 im im (*.f64 re re)) |
(+.f64 (pow.f64 re 2) (pow.f64 im 2)) |
(+.f64 (*.f64 re re) (*.f64 im im)) |
(fma.f64 im im (*.f64 re re)) |
(pow.f64 im 2) |
(*.f64 im im) |
(+.f64 (pow.f64 re 2) (pow.f64 im 2)) |
(+.f64 (*.f64 re re) (*.f64 im im)) |
(fma.f64 im im (*.f64 re re)) |
(+.f64 (pow.f64 re 2) (pow.f64 im 2)) |
(+.f64 (*.f64 re re) (*.f64 im im)) |
(fma.f64 im im (*.f64 re re)) |
(+.f64 (pow.f64 re 2) (pow.f64 im 2)) |
(+.f64 (*.f64 re re) (*.f64 im im)) |
(fma.f64 im im (*.f64 re re)) |
Found 1 expressions with local error:
| New | Error | Program |
|---|---|---|
| ✓ | 0.0b | (hypot.f64 re im) |
Compiled 7 to 3 computations (57.1% saved)
6 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 0.0ms | re | @ | 0 | (hypot.f64 re im) |
| 0.0ms | re | @ | -inf | (hypot.f64 re im) |
| 0.0ms | re | @ | inf | (hypot.f64 re im) |
| 0.0ms | im | @ | -inf | (hypot.f64 re im) |
| 0.0ms | im | @ | 0 | (hypot.f64 re im) |
| 1× | batch-egg-rewrite |
| 360× | pow1_binary64 |
| 343× | add-sqr-sqrt_binary64 |
| 339× | *-un-lft-identity_binary64 |
| 329× | add-log-exp_binary64 |
| 329× | log1p-expm1-u_binary64 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 4 | 4 |
| 1 | 79 | 4 |
| 2 | 911 | 4 |
| 1× | node limit |
| Inputs |
|---|
(hypot.f64 re im) |
| Outputs |
|---|
((#(struct:change #<rule egg-rr> (2) ((x +.f64 0 (hypot.f64 re im))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (log.f64 (sqrt.f64 (exp.f64 (hypot.f64 re im)))) (log.f64 (sqrt.f64 (exp.f64 (hypot.f64 re im)))))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (log.f64 (pow.f64 (cbrt.f64 (exp.f64 (hypot.f64 re im))) 2)) (log.f64 (cbrt.f64 (exp.f64 (hypot.f64 re im)))))))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (+.f64 1 (hypot.f64 re im)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (hypot.f64 re im) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (hypot.f64 re im))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (hypot.f64 re im)) (pow.f64 (cbrt.f64 (hypot.f64 re im)) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (hypot.f64 re im)) (pow.f64 (pow.f64 (cbrt.f64 (hypot.f64 re im)) 4) 1/2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (hypot.f64 re im)) 2) (cbrt.f64 (hypot.f64 re im)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (hypot.f64 re im)) (sqrt.f64 (hypot.f64 re im)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (hypot.f64 re im) 1/4) (sqrt.f64 (pow.f64 (hypot.f64 re im) 3/2)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (hypot.f64 re im) 1/4) (pow.f64 (pow.f64 (hypot.f64 re im) 3/2) 1/2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (pow.f64 (hypot.f64 re im) 5/2)) (pow.f64 (hypot.f64 re im) 1/6))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (pow.f64 (*.f64 (hypot.f64 re im) (cbrt.f64 (hypot.f64 re im))) 2)) (cbrt.f64 (cbrt.f64 (hypot.f64 re im))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (pow.f64 (cbrt.f64 (hypot.f64 re im)) 5)) (pow.f64 (hypot.f64 re im) 1/6))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (pow.f64 (hypot.f64 re im) 3/2)) (pow.f64 (hypot.f64 re im) 1/4))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 1 1/3) (hypot.f64 re im))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (pow.f64 (*.f64 (hypot.f64 re im) (cbrt.f64 (hypot.f64 re im))) 2) 1/3) (cbrt.f64 (cbrt.f64 (hypot.f64 re im))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (pow.f64 (hypot.f64 re im) 5/2) 1/3) (pow.f64 (hypot.f64 re im) 1/6))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 1 1/2) (hypot.f64 re im))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (pow.f64 (hypot.f64 re im) 3/2) 1/2) (pow.f64 (hypot.f64 re im) 1/4))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (pow.f64 (cbrt.f64 (hypot.f64 re im)) 4) 1/2) (cbrt.f64 (hypot.f64 re im)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (pow.f64 (cbrt.f64 (hypot.f64 re im)) 5) 1/2) (pow.f64 (hypot.f64 re im) 1/6))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (sqrt.f64 (+.f64 (pow.f64 re 6) (pow.f64 im 6))) (sqrt.f64 (+.f64 (pow.f64 re 4) (-.f64 (pow.f64 im 4) (pow.f64 (*.f64 re im) 2)))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (sqrt.f64 (-.f64 (pow.f64 re 4) (pow.f64 im 4))) (sqrt.f64 (-.f64 (*.f64 re re) (*.f64 im im))))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (hypot.f64 re im) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (hypot.f64 re im) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (hypot.f64 re im)) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (hypot.f64 re im)) 2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (hypot.f64 re im) 2) 1/2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (E.f64) (log.f64 (hypot.f64 re im)))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (hypot.f64 re im) 4) 1/4)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (exp.f64 (sqrt.f64 (log.f64 (hypot.f64 re im)))) (sqrt.f64 (log.f64 (hypot.f64 re im))))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (exp.f64 (pow.f64 (cbrt.f64 (log.f64 (hypot.f64 re im))) 2)) (cbrt.f64 (log.f64 (hypot.f64 re im))))))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (hypot.f64 re im) 2))))) (#(struct:change #<rule egg-rr> (2) ((x fabs.f64 (hypot.f64 re im))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (hypot.f64 re im)))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (hypot.f64 re im) 3))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (hypot.f64 re im)))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (hypot.f64 re im)))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (hypot.f64 re im)))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (*.f64 3 (log.f64 (hypot.f64 re im))) 1/3))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (log.f64 (cbrt.f64 (hypot.f64 re im))) 3))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (log.f64 (sqrt.f64 (hypot.f64 re im))) 2))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (*.f64 2 (log.f64 (hypot.f64 re im))) 1/2)))))) |
| 1× | egg-herbie |
| 774× | unswap-sqr_binary64 |
| 754× | associate-*l/_binary64 |
| 606× | associate-*r/_binary64 |
| 320× | *-commutative_binary64 |
| 314× | associate-/l/_binary64 |
Useful iterations: 1 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 64 | 465 |
| 1 | 192 | 454 |
| 2 | 561 | 454 |
| 3 | 2284 | 454 |
| 4 | 6188 | 454 |
| 1× | node limit |
| Inputs |
|---|
im |
(+.f64 (*.f64 1/2 (/.f64 (pow.f64 re 2) im)) im) |
(+.f64 (*.f64 -1/8 (/.f64 (pow.f64 re 4) (pow.f64 im 3))) (+.f64 (*.f64 1/2 (/.f64 (pow.f64 re 2) im)) im)) |
(+.f64 (*.f64 -1/8 (/.f64 (pow.f64 re 4) (pow.f64 im 3))) (+.f64 (*.f64 1/2 (/.f64 (pow.f64 re 2) im)) (+.f64 (*.f64 1/16 (/.f64 (pow.f64 re 6) (pow.f64 im 5))) im))) |
re |
(+.f64 (*.f64 1/2 (/.f64 (pow.f64 im 2) re)) re) |
(+.f64 (*.f64 1/2 (/.f64 (pow.f64 im 2) re)) (+.f64 re (*.f64 -1/8 (/.f64 (pow.f64 im 4) (pow.f64 re 3))))) |
(+.f64 (*.f64 1/2 (/.f64 (pow.f64 im 2) re)) (+.f64 (*.f64 1/16 (/.f64 (pow.f64 im 6) (pow.f64 re 5))) (+.f64 re (*.f64 -1/8 (/.f64 (pow.f64 im 4) (pow.f64 re 3)))))) |
(*.f64 -1 re) |
(+.f64 (*.f64 -1 re) (*.f64 -1/2 (/.f64 (pow.f64 im 2) re))) |
(+.f64 (*.f64 -1 re) (+.f64 (*.f64 1/8 (/.f64 (pow.f64 im 4) (pow.f64 re 3))) (*.f64 -1/2 (/.f64 (pow.f64 im 2) re)))) |
(+.f64 (*.f64 -1 re) (+.f64 (*.f64 1/8 (/.f64 (pow.f64 im 4) (pow.f64 re 3))) (+.f64 (*.f64 -1/16 (/.f64 (pow.f64 im 6) (pow.f64 re 5))) (*.f64 -1/2 (/.f64 (pow.f64 im 2) re))))) |
re |
(+.f64 (*.f64 1/2 (/.f64 (pow.f64 im 2) re)) re) |
(+.f64 (*.f64 1/2 (/.f64 (pow.f64 im 2) re)) (+.f64 re (*.f64 -1/8 (/.f64 (pow.f64 im 4) (pow.f64 re 3))))) |
(+.f64 (*.f64 1/2 (/.f64 (pow.f64 im 2) re)) (+.f64 (*.f64 1/16 (/.f64 (pow.f64 im 6) (pow.f64 re 5))) (+.f64 re (*.f64 -1/8 (/.f64 (pow.f64 im 4) (pow.f64 re 3)))))) |
im |
(+.f64 (*.f64 1/2 (/.f64 (pow.f64 re 2) im)) im) |
(+.f64 (*.f64 -1/8 (/.f64 (pow.f64 re 4) (pow.f64 im 3))) (+.f64 (*.f64 1/2 (/.f64 (pow.f64 re 2) im)) im)) |
(+.f64 (*.f64 -1/8 (/.f64 (pow.f64 re 4) (pow.f64 im 3))) (+.f64 (*.f64 1/2 (/.f64 (pow.f64 re 2) im)) (+.f64 (*.f64 1/16 (/.f64 (pow.f64 re 6) (pow.f64 im 5))) im))) |
(*.f64 -1 im) |
(+.f64 (*.f64 -1/2 (/.f64 (pow.f64 re 2) im)) (*.f64 -1 im)) |
(+.f64 (*.f64 1/8 (/.f64 (pow.f64 re 4) (pow.f64 im 3))) (+.f64 (*.f64 -1/2 (/.f64 (pow.f64 re 2) im)) (*.f64 -1 im))) |
(+.f64 (*.f64 -1/16 (/.f64 (pow.f64 re 6) (pow.f64 im 5))) (+.f64 (*.f64 1/8 (/.f64 (pow.f64 re 4) (pow.f64 im 3))) (+.f64 (*.f64 -1/2 (/.f64 (pow.f64 re 2) im)) (*.f64 -1 im)))) |
| Outputs |
|---|
im |
(+.f64 (*.f64 1/2 (/.f64 (pow.f64 re 2) im)) im) |
(fma.f64 1/2 (/.f64 (*.f64 re re) im) im) |
(fma.f64 1/2 (/.f64 re (/.f64 im re)) im) |
(fma.f64 1/2 (*.f64 (/.f64 re im) re) im) |
(fma.f64 1/2 (*.f64 re (/.f64 re im)) im) |
(+.f64 (*.f64 -1/8 (/.f64 (pow.f64 re 4) (pow.f64 im 3))) (+.f64 (*.f64 1/2 (/.f64 (pow.f64 re 2) im)) im)) |
(fma.f64 -1/8 (/.f64 (pow.f64 re 4) (pow.f64 im 3)) (fma.f64 1/2 (/.f64 (*.f64 re re) im) im)) |
(fma.f64 -1/8 (/.f64 (pow.f64 re 4) (pow.f64 im 3)) (fma.f64 1/2 (/.f64 re (/.f64 im re)) im)) |
(fma.f64 1/2 (*.f64 (/.f64 re im) re) (fma.f64 -1/8 (/.f64 (pow.f64 re 4) (pow.f64 im 3)) im)) |
(fma.f64 -1/8 (/.f64 (pow.f64 re 4) (pow.f64 im 3)) (fma.f64 1/2 (*.f64 re (/.f64 re im)) im)) |
(+.f64 (*.f64 -1/8 (/.f64 (pow.f64 re 4) (pow.f64 im 3))) (+.f64 (*.f64 1/2 (/.f64 (pow.f64 re 2) im)) (+.f64 (*.f64 1/16 (/.f64 (pow.f64 re 6) (pow.f64 im 5))) im))) |
(fma.f64 -1/8 (/.f64 (pow.f64 re 4) (pow.f64 im 3)) (fma.f64 1/2 (/.f64 (*.f64 re re) im) (fma.f64 1/16 (/.f64 (pow.f64 re 6) (pow.f64 im 5)) im))) |
(fma.f64 -1/8 (/.f64 (pow.f64 re 4) (pow.f64 im 3)) (fma.f64 1/2 (/.f64 re (/.f64 im re)) (fma.f64 1/16 (/.f64 (pow.f64 re 6) (pow.f64 im 5)) im))) |
(fma.f64 1/2 (*.f64 (/.f64 re im) re) (fma.f64 -1/8 (/.f64 (pow.f64 re 4) (pow.f64 im 3)) (fma.f64 1/16 (/.f64 (pow.f64 re 6) (pow.f64 im 5)) im))) |
(fma.f64 1/2 (*.f64 re (/.f64 re im)) (fma.f64 -1/8 (/.f64 (pow.f64 re 4) (pow.f64 im 3)) (fma.f64 1/16 (/.f64 (pow.f64 re 6) (pow.f64 im 5)) im))) |
re |
(+.f64 (*.f64 1/2 (/.f64 (pow.f64 im 2) re)) re) |
(fma.f64 1/2 (/.f64 (*.f64 im im) re) re) |
(fma.f64 1/2 (/.f64 im (/.f64 re im)) re) |
(+.f64 (*.f64 1/2 (/.f64 (pow.f64 im 2) re)) (+.f64 re (*.f64 -1/8 (/.f64 (pow.f64 im 4) (pow.f64 re 3))))) |
(+.f64 (fma.f64 1/2 (/.f64 (*.f64 im im) re) re) (/.f64 (*.f64 -1/8 (pow.f64 im 4)) (pow.f64 re 3))) |
(fma.f64 1/2 (/.f64 im (/.f64 re im)) (fma.f64 -1/8 (/.f64 (pow.f64 im 4) (pow.f64 re 3)) re)) |
(+.f64 (*.f64 1/2 (/.f64 (pow.f64 im 2) re)) (+.f64 (*.f64 1/16 (/.f64 (pow.f64 im 6) (pow.f64 re 5))) (+.f64 re (*.f64 -1/8 (/.f64 (pow.f64 im 4) (pow.f64 re 3)))))) |
(fma.f64 1/2 (/.f64 (*.f64 im im) re) (fma.f64 1/16 (/.f64 (pow.f64 im 6) (pow.f64 re 5)) (+.f64 re (/.f64 (*.f64 -1/8 (pow.f64 im 4)) (pow.f64 re 3))))) |
(fma.f64 1/2 (/.f64 im (/.f64 re im)) (fma.f64 1/16 (/.f64 (pow.f64 im 6) (pow.f64 re 5)) (fma.f64 -1/8 (/.f64 (pow.f64 im 4) (pow.f64 re 3)) re))) |
(fma.f64 1/2 (/.f64 im (/.f64 re im)) (fma.f64 -1/8 (/.f64 (pow.f64 im 4) (pow.f64 re 3)) (fma.f64 1/16 (/.f64 (pow.f64 im 6) (pow.f64 re 5)) re))) |
(*.f64 -1 re) |
(neg.f64 re) |
(+.f64 (*.f64 -1 re) (*.f64 -1/2 (/.f64 (pow.f64 im 2) re))) |
(fma.f64 -1 re (*.f64 (/.f64 (*.f64 im im) re) -1/2)) |
(-.f64 (*.f64 (/.f64 im (/.f64 re im)) -1/2) re) |
(-.f64 (*.f64 (*.f64 im im) (/.f64 -1/2 re)) re) |
(+.f64 (*.f64 -1 re) (+.f64 (*.f64 1/8 (/.f64 (pow.f64 im 4) (pow.f64 re 3))) (*.f64 -1/2 (/.f64 (pow.f64 im 2) re)))) |
(fma.f64 -1 re (fma.f64 1/8 (/.f64 (pow.f64 im 4) (pow.f64 re 3)) (*.f64 (/.f64 (*.f64 im im) re) -1/2))) |
(-.f64 (fma.f64 (/.f64 im (/.f64 re im)) -1/2 (*.f64 (/.f64 (pow.f64 im 4) (pow.f64 re 3)) 1/8)) re) |
(fma.f64 (/.f64 (pow.f64 im 4) (pow.f64 re 3)) 1/8 (-.f64 (*.f64 (/.f64 im (/.f64 re im)) -1/2) re)) |
(-.f64 (*.f64 (*.f64 im im) (/.f64 -1/2 re)) (fma.f64 -1/8 (/.f64 (pow.f64 im 4) (pow.f64 re 3)) re)) |
(+.f64 (*.f64 -1 re) (+.f64 (*.f64 1/8 (/.f64 (pow.f64 im 4) (pow.f64 re 3))) (+.f64 (*.f64 -1/16 (/.f64 (pow.f64 im 6) (pow.f64 re 5))) (*.f64 -1/2 (/.f64 (pow.f64 im 2) re))))) |
(fma.f64 -1 re (fma.f64 1/8 (/.f64 (pow.f64 im 4) (pow.f64 re 3)) (fma.f64 -1/16 (/.f64 (pow.f64 im 6) (pow.f64 re 5)) (*.f64 (/.f64 (*.f64 im im) re) -1/2)))) |
(-.f64 (fma.f64 (/.f64 (pow.f64 im 4) (pow.f64 re 3)) 1/8 (fma.f64 (/.f64 im (/.f64 re im)) -1/2 (*.f64 (/.f64 (pow.f64 im 6) (pow.f64 re 5)) -1/16))) re) |
(-.f64 (fma.f64 (/.f64 im (/.f64 re im)) -1/2 (fma.f64 (/.f64 (pow.f64 im 4) (pow.f64 re 3)) 1/8 (*.f64 (/.f64 (pow.f64 im 6) (pow.f64 re 5)) -1/16))) re) |
(-.f64 (fma.f64 (/.f64 (pow.f64 im 4) (pow.f64 re 3)) 1/8 (*.f64 (*.f64 im im) (/.f64 -1/2 re))) (fma.f64 1/16 (/.f64 (pow.f64 im 6) (pow.f64 re 5)) re)) |
re |
(+.f64 (*.f64 1/2 (/.f64 (pow.f64 im 2) re)) re) |
(fma.f64 1/2 (/.f64 (*.f64 im im) re) re) |
(fma.f64 1/2 (/.f64 im (/.f64 re im)) re) |
(+.f64 (*.f64 1/2 (/.f64 (pow.f64 im 2) re)) (+.f64 re (*.f64 -1/8 (/.f64 (pow.f64 im 4) (pow.f64 re 3))))) |
(+.f64 (fma.f64 1/2 (/.f64 (*.f64 im im) re) re) (/.f64 (*.f64 -1/8 (pow.f64 im 4)) (pow.f64 re 3))) |
(fma.f64 1/2 (/.f64 im (/.f64 re im)) (fma.f64 -1/8 (/.f64 (pow.f64 im 4) (pow.f64 re 3)) re)) |
(+.f64 (*.f64 1/2 (/.f64 (pow.f64 im 2) re)) (+.f64 (*.f64 1/16 (/.f64 (pow.f64 im 6) (pow.f64 re 5))) (+.f64 re (*.f64 -1/8 (/.f64 (pow.f64 im 4) (pow.f64 re 3)))))) |
(fma.f64 1/2 (/.f64 (*.f64 im im) re) (fma.f64 1/16 (/.f64 (pow.f64 im 6) (pow.f64 re 5)) (+.f64 re (/.f64 (*.f64 -1/8 (pow.f64 im 4)) (pow.f64 re 3))))) |
(fma.f64 1/2 (/.f64 im (/.f64 re im)) (fma.f64 1/16 (/.f64 (pow.f64 im 6) (pow.f64 re 5)) (fma.f64 -1/8 (/.f64 (pow.f64 im 4) (pow.f64 re 3)) re))) |
(fma.f64 1/2 (/.f64 im (/.f64 re im)) (fma.f64 -1/8 (/.f64 (pow.f64 im 4) (pow.f64 re 3)) (fma.f64 1/16 (/.f64 (pow.f64 im 6) (pow.f64 re 5)) re))) |
im |
(+.f64 (*.f64 1/2 (/.f64 (pow.f64 re 2) im)) im) |
(fma.f64 1/2 (/.f64 (*.f64 re re) im) im) |
(fma.f64 1/2 (/.f64 re (/.f64 im re)) im) |
(fma.f64 1/2 (*.f64 (/.f64 re im) re) im) |
(fma.f64 1/2 (*.f64 re (/.f64 re im)) im) |
(+.f64 (*.f64 -1/8 (/.f64 (pow.f64 re 4) (pow.f64 im 3))) (+.f64 (*.f64 1/2 (/.f64 (pow.f64 re 2) im)) im)) |
(fma.f64 -1/8 (/.f64 (pow.f64 re 4) (pow.f64 im 3)) (fma.f64 1/2 (/.f64 (*.f64 re re) im) im)) |
(fma.f64 -1/8 (/.f64 (pow.f64 re 4) (pow.f64 im 3)) (fma.f64 1/2 (/.f64 re (/.f64 im re)) im)) |
(fma.f64 1/2 (*.f64 (/.f64 re im) re) (fma.f64 -1/8 (/.f64 (pow.f64 re 4) (pow.f64 im 3)) im)) |
(fma.f64 -1/8 (/.f64 (pow.f64 re 4) (pow.f64 im 3)) (fma.f64 1/2 (*.f64 re (/.f64 re im)) im)) |
(+.f64 (*.f64 -1/8 (/.f64 (pow.f64 re 4) (pow.f64 im 3))) (+.f64 (*.f64 1/2 (/.f64 (pow.f64 re 2) im)) (+.f64 (*.f64 1/16 (/.f64 (pow.f64 re 6) (pow.f64 im 5))) im))) |
(fma.f64 -1/8 (/.f64 (pow.f64 re 4) (pow.f64 im 3)) (fma.f64 1/2 (/.f64 (*.f64 re re) im) (fma.f64 1/16 (/.f64 (pow.f64 re 6) (pow.f64 im 5)) im))) |
(fma.f64 -1/8 (/.f64 (pow.f64 re 4) (pow.f64 im 3)) (fma.f64 1/2 (/.f64 re (/.f64 im re)) (fma.f64 1/16 (/.f64 (pow.f64 re 6) (pow.f64 im 5)) im))) |
(fma.f64 1/2 (*.f64 (/.f64 re im) re) (fma.f64 -1/8 (/.f64 (pow.f64 re 4) (pow.f64 im 3)) (fma.f64 1/16 (/.f64 (pow.f64 re 6) (pow.f64 im 5)) im))) |
(fma.f64 1/2 (*.f64 re (/.f64 re im)) (fma.f64 -1/8 (/.f64 (pow.f64 re 4) (pow.f64 im 3)) (fma.f64 1/16 (/.f64 (pow.f64 re 6) (pow.f64 im 5)) im))) |
(*.f64 -1 im) |
(neg.f64 im) |
(+.f64 (*.f64 -1/2 (/.f64 (pow.f64 re 2) im)) (*.f64 -1 im)) |
(fma.f64 -1/2 (/.f64 (*.f64 re re) im) (neg.f64 im)) |
(-.f64 (*.f64 (/.f64 re (/.f64 im re)) -1/2) im) |
(-.f64 (*.f64 (/.f64 -1/2 im) (*.f64 re re)) im) |
(-.f64 (*.f64 (*.f64 re re) (/.f64 -1/2 im)) im) |
(+.f64 (*.f64 1/8 (/.f64 (pow.f64 re 4) (pow.f64 im 3))) (+.f64 (*.f64 -1/2 (/.f64 (pow.f64 re 2) im)) (*.f64 -1 im))) |
(fma.f64 1/8 (/.f64 (pow.f64 re 4) (pow.f64 im 3)) (fma.f64 -1/2 (/.f64 (*.f64 re re) im) (neg.f64 im))) |
(-.f64 (fma.f64 (/.f64 (pow.f64 re 4) (pow.f64 im 3)) 1/8 (*.f64 (/.f64 re (/.f64 im re)) -1/2)) im) |
(fma.f64 (*.f64 (/.f64 re im) re) -1/2 (-.f64 (/.f64 (*.f64 (pow.f64 re 4) 1/8) (pow.f64 im 3)) im)) |
(-.f64 (/.f64 (*.f64 (pow.f64 re 4) 1/8) (pow.f64 im 3)) (fma.f64 1/2 (*.f64 re (/.f64 re im)) im)) |
(+.f64 (*.f64 -1/16 (/.f64 (pow.f64 re 6) (pow.f64 im 5))) (+.f64 (*.f64 1/8 (/.f64 (pow.f64 re 4) (pow.f64 im 3))) (+.f64 (*.f64 -1/2 (/.f64 (pow.f64 re 2) im)) (*.f64 -1 im)))) |
(fma.f64 -1/16 (/.f64 (pow.f64 re 6) (pow.f64 im 5)) (fma.f64 1/8 (/.f64 (pow.f64 re 4) (pow.f64 im 3)) (fma.f64 -1/2 (/.f64 (*.f64 re re) im) (neg.f64 im)))) |
(fma.f64 (/.f64 (pow.f64 re 6) (pow.f64 im 5)) -1/16 (-.f64 (fma.f64 (/.f64 (pow.f64 re 4) (pow.f64 im 3)) 1/8 (*.f64 (/.f64 re (/.f64 im re)) -1/2)) im)) |
(fma.f64 (/.f64 (pow.f64 re 6) (pow.f64 im 5)) -1/16 (fma.f64 (*.f64 (/.f64 re im) re) -1/2 (-.f64 (/.f64 (*.f64 (pow.f64 re 4) 1/8) (pow.f64 im 3)) im))) |
(fma.f64 (/.f64 (pow.f64 re 6) (pow.f64 im 5)) -1/16 (-.f64 (/.f64 (*.f64 (pow.f64 re 4) 1/8) (pow.f64 im 3)) (fma.f64 1/2 (*.f64 re (/.f64 re im)) im))) |
Compiled 2089 to 1172 computations (43.9% saved)
5 alts after pruning (3 fresh and 2 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 169 | 3 | 172 |
| Fresh | 0 | 0 | 0 |
| Picked | 0 | 1 | 1 |
| Done | 0 | 1 | 1 |
| Total | 169 | 5 | 174 |
| Status | Error | Program |
|---|---|---|
| ▶ | 33.3b | (-.f64 (/.f64 (*.f64 im im) (/.f64 re -1/2)) re) |
| ▶ | 30.3b | (neg.f64 re) |
| 32.2b | im | |
| ✓ | 0.0b | (hypot.f64 re im) |
| ✓ | 35.2b | (sqrt.f64 (+.f64 (*.f64 re re) (*.f64 im im))) |
Compiled 33 to 21 computations (36.4% saved)
Compiled 5 to 3 computations (40% saved)
Found 1 expressions with local error:
| New | Error | Program |
|---|---|---|
| ✓ | 8.5b | (/.f64 (*.f64 im im) (/.f64 re -1/2)) |
Compiled 27 to 13 computations (51.9% saved)
6 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 1.0ms | im | @ | 0 | (/.f64 (*.f64 im im) (/.f64 re -1/2)) |
| 1.0ms | re | @ | 0 | (/.f64 (*.f64 im im) (/.f64 re -1/2)) |
| 1.0ms | re | @ | inf | (/.f64 (*.f64 im im) (/.f64 re -1/2)) |
| 1.0ms | im | @ | inf | (/.f64 (*.f64 im im) (/.f64 re -1/2)) |
| 0.0ms | re | @ | -inf | (/.f64 (*.f64 im im) (/.f64 re -1/2)) |
| 1× | batch-egg-rewrite |
| 826× | pow1_binary64 |
| 775× | add-log-exp_binary64 |
| 774× | log1p-expm1-u_binary64 |
| 774× | expm1-log1p-u_binary64 |
| 758× | add-exp-log_binary64 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 7 | 10 |
| 1 | 157 | 10 |
| 2 | 2135 | 10 |
| 1× | node limit |
| Inputs |
|---|
(/.f64 (*.f64 im im) (/.f64 re -1/2)) |
| Outputs |
|---|
((#(struct:change #<rule egg-rr> (2) ((x -.f64 (+.f64 1 (*.f64 (*.f64 im im) (/.f64 -1/2 re))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 im (/.f64 1 (/.f64 re (/.f64 im -2))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 im (*.f64 im (/.f64 -1/2 re)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 im im) (/.f64 -1/2 re))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 -1/2 (/.f64 im (/.f64 re im)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 (*.f64 im im) (/.f64 -1/2 re)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (*.f64 (*.f64 im im) (/.f64 -1/2 re)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (pow.f64 im 4)) (*.f64 (pow.f64 (cbrt.f64 im) 2) (/.f64 -1/2 re)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (*.f64 (*.f64 im im) (/.f64 -1/2 re))) (pow.f64 (cbrt.f64 (*.f64 (*.f64 im im) (/.f64 -1/2 re))) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (*.f64 (*.f64 im im) (/.f64 -1/2 re))) 2) (cbrt.f64 (*.f64 (*.f64 im im) (/.f64 -1/2 re))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 im (sqrt.f64 (/.f64 -1/2 re))) (*.f64 im (sqrt.f64 (/.f64 -1/2 re))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (neg.f64 (*.f64 im im)) (/.f64 1 (*.f64 re 2)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 -1/2 re) (*.f64 im im))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 im (/.f64 re im)) -1/2)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 im 1) (/.f64 im (*.f64 re -2)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 im re) (/.f64 im -2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (cbrt.f64 (pow.f64 im 4)) 1) (/.f64 (pow.f64 (cbrt.f64 im) 2) (*.f64 re -2)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 1 re) (/.f64 (*.f64 im im) -2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (cbrt.f64 (pow.f64 im 4)) re) (/.f64 (pow.f64 (cbrt.f64 im) 2) -2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 im (*.f64 re -2)) im)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 im (pow.f64 (cbrt.f64 (*.f64 re -2)) 2)) (/.f64 im (cbrt.f64 (*.f64 re -2))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 1 (pow.f64 (cbrt.f64 (*.f64 re -2)) 2)) (/.f64 (*.f64 im im) (cbrt.f64 (*.f64 re -2))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (cbrt.f64 (pow.f64 im 4)) (pow.f64 (cbrt.f64 (*.f64 re -2)) 2)) (cbrt.f64 (*.f64 (*.f64 im im) (/.f64 -1/2 re))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 1 (sqrt.f64 (*.f64 re -2))) (/.f64 (*.f64 im im) (sqrt.f64 (*.f64 re -2))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (cbrt.f64 (pow.f64 im 4)) (sqrt.f64 (*.f64 re -2))) (/.f64 (pow.f64 (cbrt.f64 im) 2) (sqrt.f64 (*.f64 re -2))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (*.f64 im im) 1) (/.f64 -1/2 re))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (*.f64 im im) (neg.f64 re)) 1/2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 (*.f64 im im) (/.f64 -1/2 re)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (*.f64 (*.f64 im im) (/.f64 -1/2 re)) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (*.f64 (*.f64 im im) (/.f64 -1/2 re))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 im (sqrt.f64 (/.f64 -1/2 re))) 2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (/.f64 re (/.f64 (*.f64 im im) -2)) -1)))) (#(struct:change #<rule egg-rr> (2) ((x neg.f64 (/.f64 (*.f64 im im) (*.f64 re 2)))))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (/.f64 (pow.f64 im 4) (*.f64 (*.f64 re re) 4)))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (pow.f64 (pow.f64 (exp.f64 im) im) (/.f64 -1/2 re)))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (*.f64 (*.f64 im im) (/.f64 -1/2 re)) 3))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (/.f64 (pow.f64 (*.f64 im im) 3) (pow.f64 (*.f64 re -2) 3)))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (*.f64 (*.f64 im im) (/.f64 -1/2 re))))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (*.f64 (*.f64 im im) (/.f64 -1/2 re))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (*.f64 (*.f64 im im) (/.f64 -1/2 re)))))))) |
| 1× | egg-herbie |
| 682× | associate-/l/_binary64 |
| 528× | associate-*l*_binary64 |
| 493× | *-commutative_binary64 |
| 470× | sqr-pow_binary64 |
| 437× | associate-*l/_binary64 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 8 | 240 |
| 1 | 16 | 240 |
| 2 | 31 | 240 |
| 3 | 62 | 240 |
| 4 | 169 | 240 |
| 5 | 615 | 240 |
| 6 | 2654 | 240 |
| 7 | 3723 | 240 |
| 8 | 3933 | 240 |
| 9 | 4152 | 240 |
| 10 | 4380 | 240 |
| 11 | 4718 | 240 |
| 12 | 6225 | 240 |
| 13 | 6892 | 240 |
| 14 | 7688 | 240 |
| 1× | node limit |
| Inputs |
|---|
(*.f64 -1/2 (/.f64 (pow.f64 im 2) re)) |
(*.f64 -1/2 (/.f64 (pow.f64 im 2) re)) |
(*.f64 -1/2 (/.f64 (pow.f64 im 2) re)) |
(*.f64 -1/2 (/.f64 (pow.f64 im 2) re)) |
(*.f64 -1/2 (/.f64 (pow.f64 im 2) re)) |
(*.f64 -1/2 (/.f64 (pow.f64 im 2) re)) |
(*.f64 -1/2 (/.f64 (pow.f64 im 2) re)) |
(*.f64 -1/2 (/.f64 (pow.f64 im 2) re)) |
(*.f64 -1/2 (/.f64 (pow.f64 im 2) re)) |
(*.f64 -1/2 (/.f64 (pow.f64 im 2) re)) |
(*.f64 -1/2 (/.f64 (pow.f64 im 2) re)) |
(*.f64 -1/2 (/.f64 (pow.f64 im 2) re)) |
(*.f64 -1/2 (/.f64 (pow.f64 im 2) re)) |
(*.f64 -1/2 (/.f64 (pow.f64 im 2) re)) |
(*.f64 -1/2 (/.f64 (pow.f64 im 2) re)) |
(*.f64 -1/2 (/.f64 (pow.f64 im 2) re)) |
(*.f64 -1/2 (/.f64 (pow.f64 im 2) re)) |
(*.f64 -1/2 (/.f64 (pow.f64 im 2) re)) |
(*.f64 -1/2 (/.f64 (pow.f64 im 2) re)) |
(*.f64 -1/2 (/.f64 (pow.f64 im 2) re)) |
(*.f64 -1/2 (/.f64 (pow.f64 im 2) re)) |
(*.f64 -1/2 (/.f64 (pow.f64 im 2) re)) |
(*.f64 -1/2 (/.f64 (pow.f64 im 2) re)) |
(*.f64 -1/2 (/.f64 (pow.f64 im 2) re)) |
| Outputs |
|---|
(*.f64 -1/2 (/.f64 (pow.f64 im 2) re)) |
(*.f64 -1/2 (/.f64 (*.f64 im im) re)) |
(*.f64 -1/2 (/.f64 im (/.f64 re im))) |
(*.f64 -1/2 (*.f64 (/.f64 im re) im)) |
(*.f64 -1/2 (*.f64 im (/.f64 im re))) |
(*.f64 -1/2 (/.f64 (pow.f64 im 2) re)) |
(*.f64 -1/2 (/.f64 (*.f64 im im) re)) |
(*.f64 -1/2 (/.f64 im (/.f64 re im))) |
(*.f64 -1/2 (*.f64 (/.f64 im re) im)) |
(*.f64 -1/2 (*.f64 im (/.f64 im re))) |
(*.f64 -1/2 (/.f64 (pow.f64 im 2) re)) |
(*.f64 -1/2 (/.f64 (*.f64 im im) re)) |
(*.f64 -1/2 (/.f64 im (/.f64 re im))) |
(*.f64 -1/2 (*.f64 (/.f64 im re) im)) |
(*.f64 -1/2 (*.f64 im (/.f64 im re))) |
(*.f64 -1/2 (/.f64 (pow.f64 im 2) re)) |
(*.f64 -1/2 (/.f64 (*.f64 im im) re)) |
(*.f64 -1/2 (/.f64 im (/.f64 re im))) |
(*.f64 -1/2 (*.f64 (/.f64 im re) im)) |
(*.f64 -1/2 (*.f64 im (/.f64 im re))) |
(*.f64 -1/2 (/.f64 (pow.f64 im 2) re)) |
(*.f64 -1/2 (/.f64 (*.f64 im im) re)) |
(*.f64 -1/2 (/.f64 im (/.f64 re im))) |
(*.f64 -1/2 (*.f64 (/.f64 im re) im)) |
(*.f64 -1/2 (*.f64 im (/.f64 im re))) |
(*.f64 -1/2 (/.f64 (pow.f64 im 2) re)) |
(*.f64 -1/2 (/.f64 (*.f64 im im) re)) |
(*.f64 -1/2 (/.f64 im (/.f64 re im))) |
(*.f64 -1/2 (*.f64 (/.f64 im re) im)) |
(*.f64 -1/2 (*.f64 im (/.f64 im re))) |
(*.f64 -1/2 (/.f64 (pow.f64 im 2) re)) |
(*.f64 -1/2 (/.f64 (*.f64 im im) re)) |
(*.f64 -1/2 (/.f64 im (/.f64 re im))) |
(*.f64 -1/2 (*.f64 (/.f64 im re) im)) |
(*.f64 -1/2 (*.f64 im (/.f64 im re))) |
(*.f64 -1/2 (/.f64 (pow.f64 im 2) re)) |
(*.f64 -1/2 (/.f64 (*.f64 im im) re)) |
(*.f64 -1/2 (/.f64 im (/.f64 re im))) |
(*.f64 -1/2 (*.f64 (/.f64 im re) im)) |
(*.f64 -1/2 (*.f64 im (/.f64 im re))) |
(*.f64 -1/2 (/.f64 (pow.f64 im 2) re)) |
(*.f64 -1/2 (/.f64 (*.f64 im im) re)) |
(*.f64 -1/2 (/.f64 im (/.f64 re im))) |
(*.f64 -1/2 (*.f64 (/.f64 im re) im)) |
(*.f64 -1/2 (*.f64 im (/.f64 im re))) |
(*.f64 -1/2 (/.f64 (pow.f64 im 2) re)) |
(*.f64 -1/2 (/.f64 (*.f64 im im) re)) |
(*.f64 -1/2 (/.f64 im (/.f64 re im))) |
(*.f64 -1/2 (*.f64 (/.f64 im re) im)) |
(*.f64 -1/2 (*.f64 im (/.f64 im re))) |
(*.f64 -1/2 (/.f64 (pow.f64 im 2) re)) |
(*.f64 -1/2 (/.f64 (*.f64 im im) re)) |
(*.f64 -1/2 (/.f64 im (/.f64 re im))) |
(*.f64 -1/2 (*.f64 (/.f64 im re) im)) |
(*.f64 -1/2 (*.f64 im (/.f64 im re))) |
(*.f64 -1/2 (/.f64 (pow.f64 im 2) re)) |
(*.f64 -1/2 (/.f64 (*.f64 im im) re)) |
(*.f64 -1/2 (/.f64 im (/.f64 re im))) |
(*.f64 -1/2 (*.f64 (/.f64 im re) im)) |
(*.f64 -1/2 (*.f64 im (/.f64 im re))) |
(*.f64 -1/2 (/.f64 (pow.f64 im 2) re)) |
(*.f64 -1/2 (/.f64 (*.f64 im im) re)) |
(*.f64 -1/2 (/.f64 im (/.f64 re im))) |
(*.f64 -1/2 (*.f64 (/.f64 im re) im)) |
(*.f64 -1/2 (*.f64 im (/.f64 im re))) |
(*.f64 -1/2 (/.f64 (pow.f64 im 2) re)) |
(*.f64 -1/2 (/.f64 (*.f64 im im) re)) |
(*.f64 -1/2 (/.f64 im (/.f64 re im))) |
(*.f64 -1/2 (*.f64 (/.f64 im re) im)) |
(*.f64 -1/2 (*.f64 im (/.f64 im re))) |
(*.f64 -1/2 (/.f64 (pow.f64 im 2) re)) |
(*.f64 -1/2 (/.f64 (*.f64 im im) re)) |
(*.f64 -1/2 (/.f64 im (/.f64 re im))) |
(*.f64 -1/2 (*.f64 (/.f64 im re) im)) |
(*.f64 -1/2 (*.f64 im (/.f64 im re))) |
(*.f64 -1/2 (/.f64 (pow.f64 im 2) re)) |
(*.f64 -1/2 (/.f64 (*.f64 im im) re)) |
(*.f64 -1/2 (/.f64 im (/.f64 re im))) |
(*.f64 -1/2 (*.f64 (/.f64 im re) im)) |
(*.f64 -1/2 (*.f64 im (/.f64 im re))) |
(*.f64 -1/2 (/.f64 (pow.f64 im 2) re)) |
(*.f64 -1/2 (/.f64 (*.f64 im im) re)) |
(*.f64 -1/2 (/.f64 im (/.f64 re im))) |
(*.f64 -1/2 (*.f64 (/.f64 im re) im)) |
(*.f64 -1/2 (*.f64 im (/.f64 im re))) |
(*.f64 -1/2 (/.f64 (pow.f64 im 2) re)) |
(*.f64 -1/2 (/.f64 (*.f64 im im) re)) |
(*.f64 -1/2 (/.f64 im (/.f64 re im))) |
(*.f64 -1/2 (*.f64 (/.f64 im re) im)) |
(*.f64 -1/2 (*.f64 im (/.f64 im re))) |
(*.f64 -1/2 (/.f64 (pow.f64 im 2) re)) |
(*.f64 -1/2 (/.f64 (*.f64 im im) re)) |
(*.f64 -1/2 (/.f64 im (/.f64 re im))) |
(*.f64 -1/2 (*.f64 (/.f64 im re) im)) |
(*.f64 -1/2 (*.f64 im (/.f64 im re))) |
(*.f64 -1/2 (/.f64 (pow.f64 im 2) re)) |
(*.f64 -1/2 (/.f64 (*.f64 im im) re)) |
(*.f64 -1/2 (/.f64 im (/.f64 re im))) |
(*.f64 -1/2 (*.f64 (/.f64 im re) im)) |
(*.f64 -1/2 (*.f64 im (/.f64 im re))) |
(*.f64 -1/2 (/.f64 (pow.f64 im 2) re)) |
(*.f64 -1/2 (/.f64 (*.f64 im im) re)) |
(*.f64 -1/2 (/.f64 im (/.f64 re im))) |
(*.f64 -1/2 (*.f64 (/.f64 im re) im)) |
(*.f64 -1/2 (*.f64 im (/.f64 im re))) |
(*.f64 -1/2 (/.f64 (pow.f64 im 2) re)) |
(*.f64 -1/2 (/.f64 (*.f64 im im) re)) |
(*.f64 -1/2 (/.f64 im (/.f64 re im))) |
(*.f64 -1/2 (*.f64 (/.f64 im re) im)) |
(*.f64 -1/2 (*.f64 im (/.f64 im re))) |
(*.f64 -1/2 (/.f64 (pow.f64 im 2) re)) |
(*.f64 -1/2 (/.f64 (*.f64 im im) re)) |
(*.f64 -1/2 (/.f64 im (/.f64 re im))) |
(*.f64 -1/2 (*.f64 (/.f64 im re) im)) |
(*.f64 -1/2 (*.f64 im (/.f64 im re))) |
(*.f64 -1/2 (/.f64 (pow.f64 im 2) re)) |
(*.f64 -1/2 (/.f64 (*.f64 im im) re)) |
(*.f64 -1/2 (/.f64 im (/.f64 re im))) |
(*.f64 -1/2 (*.f64 (/.f64 im re) im)) |
(*.f64 -1/2 (*.f64 im (/.f64 im re))) |
Compiled 533 to 323 computations (39.4% saved)
5 alts after pruning (2 fresh and 3 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 41 | 1 | 42 |
| Fresh | 0 | 1 | 1 |
| Picked | 1 | 0 | 1 |
| Done | 0 | 3 | 3 |
| Total | 42 | 5 | 47 |
| Status | Error | Program |
|---|---|---|
| ✓ | 30.3b | (neg.f64 re) |
| 32.2b | im | |
| ✓ | 0.0b | (hypot.f64 re im) |
| ✓ | 35.2b | (sqrt.f64 (+.f64 (*.f64 re re) (*.f64 im im))) |
| ▶ | 30.5b | (-.f64 (*.f64 (/.f64 im (/.f64 re im)) -1/2) re) |
Compiled 33 to 21 computations (36.4% saved)
Found 1 expressions with local error:
| New | Error | Program |
|---|---|---|
| ✓ | 0.1b | (/.f64 im (/.f64 re im)) |
Compiled 29 to 10 computations (65.5% saved)
6 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 0.0ms | im | @ | inf | (/.f64 im (/.f64 re im)) |
| 0.0ms | re | @ | -inf | (/.f64 im (/.f64 re im)) |
| 0.0ms | im | @ | 0 | (/.f64 im (/.f64 re im)) |
| 0.0ms | im | @ | -inf | (/.f64 im (/.f64 re im)) |
| 0.0ms | re | @ | 0 | (/.f64 im (/.f64 re im)) |
| 1× | batch-egg-rewrite |
| 637× | pow1_binary64 |
| 592× | add-log-exp_binary64 |
| 592× | log1p-expm1-u_binary64 |
| 592× | expm1-log1p-u_binary64 |
| 578× | add-exp-log_binary64 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 5 | 7 |
| 1 | 110 | 7 |
| 2 | 1605 | 7 |
| 1× | node limit |
| Inputs |
|---|
(/.f64 im (/.f64 re im)) |
| Outputs |
|---|
((#(struct:change #<rule egg-rr> (2) ((x -.f64 (+.f64 1 (*.f64 im (/.f64 im re))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 im (/.f64 im re))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 im (/.f64 im re)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (*.f64 im (/.f64 im re)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (*.f64 im (/.f64 im re))) (pow.f64 (cbrt.f64 (*.f64 im (/.f64 im re))) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (*.f64 im (/.f64 im re))) 2) (cbrt.f64 (*.f64 im (/.f64 im re))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 im) 2) (*.f64 (cbrt.f64 im) (/.f64 im re)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (*.f64 im (/.f64 im re))) (sqrt.f64 (*.f64 im (/.f64 im re))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 im) (*.f64 (sqrt.f64 im) (/.f64 im re)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (neg.f64 im) (/.f64 1 (/.f64 (neg.f64 re) im)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 im re) im)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (pow.f64 (cbrt.f64 im) 2) 1) (/.f64 (cbrt.f64 im) (/.f64 re im)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (sqrt.f64 im) 1) (/.f64 (sqrt.f64 im) (/.f64 re im)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (sqrt.f64 im) re) (/.f64 (sqrt.f64 im) (/.f64 1 im)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 1 re) (/.f64 im (/.f64 1 im)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (pow.f64 (cbrt.f64 im) 2) re) (/.f64 (cbrt.f64 im) (/.f64 1 im)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 1 (pow.f64 (cbrt.f64 (/.f64 re im)) 2)) (/.f64 im (cbrt.f64 (/.f64 re im))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (pow.f64 (cbrt.f64 im) 2) (pow.f64 (cbrt.f64 (/.f64 re im)) 2)) (cbrt.f64 (*.f64 im (/.f64 im re))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (sqrt.f64 im) (pow.f64 (cbrt.f64 (/.f64 re im)) 2)) (/.f64 (sqrt.f64 im) (cbrt.f64 (/.f64 re im))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 1 (sqrt.f64 (/.f64 re im))) (/.f64 im (sqrt.f64 (/.f64 re im))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (pow.f64 (cbrt.f64 im) 2) (sqrt.f64 (/.f64 re im))) (/.f64 (cbrt.f64 im) (sqrt.f64 (/.f64 re im))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 im 1) (/.f64 im re))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 im (neg.f64 re)) (neg.f64 im))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 (/.f64 im re) 1) im)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 (/.f64 im re) (pow.f64 (cbrt.f64 im) 2)) (cbrt.f64 im))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 (/.f64 im re) (sqrt.f64 im)) (sqrt.f64 im))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 im (/.f64 im re)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (*.f64 im (/.f64 im re)) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (*.f64 im (/.f64 im re))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (*.f64 im (/.f64 im re))) 2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (/.f64 re (*.f64 im im)) -1)))) (#(struct:change #<rule egg-rr> (2) ((x neg.f64 (/.f64 im (/.f64 (neg.f64 re) im)))))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (*.f64 im (/.f64 im re)) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (pow.f64 (exp.f64 im) (/.f64 im re)))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (*.f64 im (/.f64 im re)) 3))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (*.f64 im (/.f64 im re))))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (*.f64 im (/.f64 im re))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (*.f64 im (/.f64 im re)))))))) |
| 1× | egg-herbie |
| 759× | sqr-pow_binary64 |
| 434× | unswap-sqr_binary64 |
| 423× | *-commutative_binary64 |
| 423× | associate-*r/_binary64 |
| 393× | associate-/r/_binary64 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 6 | 168 |
| 1 | 11 | 168 |
| 2 | 20 | 168 |
| 3 | 37 | 168 |
| 4 | 83 | 168 |
| 5 | 266 | 168 |
| 6 | 1091 | 168 |
| 7 | 3478 | 168 |
| 8 | 4280 | 168 |
| 9 | 4465 | 168 |
| 10 | 4681 | 168 |
| 11 | 5028 | 168 |
| 12 | 5456 | 168 |
| 13 | 5935 | 168 |
| 14 | 6584 | 168 |
| 15 | 7273 | 168 |
| 1× | node limit |
| Inputs |
|---|
(/.f64 (pow.f64 im 2) re) |
(/.f64 (pow.f64 im 2) re) |
(/.f64 (pow.f64 im 2) re) |
(/.f64 (pow.f64 im 2) re) |
(/.f64 (pow.f64 im 2) re) |
(/.f64 (pow.f64 im 2) re) |
(/.f64 (pow.f64 im 2) re) |
(/.f64 (pow.f64 im 2) re) |
(/.f64 (pow.f64 im 2) re) |
(/.f64 (pow.f64 im 2) re) |
(/.f64 (pow.f64 im 2) re) |
(/.f64 (pow.f64 im 2) re) |
(/.f64 (pow.f64 im 2) re) |
(/.f64 (pow.f64 im 2) re) |
(/.f64 (pow.f64 im 2) re) |
(/.f64 (pow.f64 im 2) re) |
(/.f64 (pow.f64 im 2) re) |
(/.f64 (pow.f64 im 2) re) |
(/.f64 (pow.f64 im 2) re) |
(/.f64 (pow.f64 im 2) re) |
(/.f64 (pow.f64 im 2) re) |
(/.f64 (pow.f64 im 2) re) |
(/.f64 (pow.f64 im 2) re) |
(/.f64 (pow.f64 im 2) re) |
| Outputs |
|---|
(/.f64 (pow.f64 im 2) re) |
(/.f64 (*.f64 im im) re) |
(/.f64 im (/.f64 re im)) |
(*.f64 (/.f64 im re) im) |
(*.f64 im (/.f64 im re)) |
(/.f64 (pow.f64 im 2) re) |
(/.f64 (*.f64 im im) re) |
(/.f64 im (/.f64 re im)) |
(*.f64 (/.f64 im re) im) |
(*.f64 im (/.f64 im re)) |
(/.f64 (pow.f64 im 2) re) |
(/.f64 (*.f64 im im) re) |
(/.f64 im (/.f64 re im)) |
(*.f64 (/.f64 im re) im) |
(*.f64 im (/.f64 im re)) |
(/.f64 (pow.f64 im 2) re) |
(/.f64 (*.f64 im im) re) |
(/.f64 im (/.f64 re im)) |
(*.f64 (/.f64 im re) im) |
(*.f64 im (/.f64 im re)) |
(/.f64 (pow.f64 im 2) re) |
(/.f64 (*.f64 im im) re) |
(/.f64 im (/.f64 re im)) |
(*.f64 (/.f64 im re) im) |
(*.f64 im (/.f64 im re)) |
(/.f64 (pow.f64 im 2) re) |
(/.f64 (*.f64 im im) re) |
(/.f64 im (/.f64 re im)) |
(*.f64 (/.f64 im re) im) |
(*.f64 im (/.f64 im re)) |
(/.f64 (pow.f64 im 2) re) |
(/.f64 (*.f64 im im) re) |
(/.f64 im (/.f64 re im)) |
(*.f64 (/.f64 im re) im) |
(*.f64 im (/.f64 im re)) |
(/.f64 (pow.f64 im 2) re) |
(/.f64 (*.f64 im im) re) |
(/.f64 im (/.f64 re im)) |
(*.f64 (/.f64 im re) im) |
(*.f64 im (/.f64 im re)) |
(/.f64 (pow.f64 im 2) re) |
(/.f64 (*.f64 im im) re) |
(/.f64 im (/.f64 re im)) |
(*.f64 (/.f64 im re) im) |
(*.f64 im (/.f64 im re)) |
(/.f64 (pow.f64 im 2) re) |
(/.f64 (*.f64 im im) re) |
(/.f64 im (/.f64 re im)) |
(*.f64 (/.f64 im re) im) |
(*.f64 im (/.f64 im re)) |
(/.f64 (pow.f64 im 2) re) |
(/.f64 (*.f64 im im) re) |
(/.f64 im (/.f64 re im)) |
(*.f64 (/.f64 im re) im) |
(*.f64 im (/.f64 im re)) |
(/.f64 (pow.f64 im 2) re) |
(/.f64 (*.f64 im im) re) |
(/.f64 im (/.f64 re im)) |
(*.f64 (/.f64 im re) im) |
(*.f64 im (/.f64 im re)) |
(/.f64 (pow.f64 im 2) re) |
(/.f64 (*.f64 im im) re) |
(/.f64 im (/.f64 re im)) |
(*.f64 (/.f64 im re) im) |
(*.f64 im (/.f64 im re)) |
(/.f64 (pow.f64 im 2) re) |
(/.f64 (*.f64 im im) re) |
(/.f64 im (/.f64 re im)) |
(*.f64 (/.f64 im re) im) |
(*.f64 im (/.f64 im re)) |
(/.f64 (pow.f64 im 2) re) |
(/.f64 (*.f64 im im) re) |
(/.f64 im (/.f64 re im)) |
(*.f64 (/.f64 im re) im) |
(*.f64 im (/.f64 im re)) |
(/.f64 (pow.f64 im 2) re) |
(/.f64 (*.f64 im im) re) |
(/.f64 im (/.f64 re im)) |
(*.f64 (/.f64 im re) im) |
(*.f64 im (/.f64 im re)) |
(/.f64 (pow.f64 im 2) re) |
(/.f64 (*.f64 im im) re) |
(/.f64 im (/.f64 re im)) |
(*.f64 (/.f64 im re) im) |
(*.f64 im (/.f64 im re)) |
(/.f64 (pow.f64 im 2) re) |
(/.f64 (*.f64 im im) re) |
(/.f64 im (/.f64 re im)) |
(*.f64 (/.f64 im re) im) |
(*.f64 im (/.f64 im re)) |
(/.f64 (pow.f64 im 2) re) |
(/.f64 (*.f64 im im) re) |
(/.f64 im (/.f64 re im)) |
(*.f64 (/.f64 im re) im) |
(*.f64 im (/.f64 im re)) |
(/.f64 (pow.f64 im 2) re) |
(/.f64 (*.f64 im im) re) |
(/.f64 im (/.f64 re im)) |
(*.f64 (/.f64 im re) im) |
(*.f64 im (/.f64 im re)) |
(/.f64 (pow.f64 im 2) re) |
(/.f64 (*.f64 im im) re) |
(/.f64 im (/.f64 re im)) |
(*.f64 (/.f64 im re) im) |
(*.f64 im (/.f64 im re)) |
(/.f64 (pow.f64 im 2) re) |
(/.f64 (*.f64 im im) re) |
(/.f64 im (/.f64 re im)) |
(*.f64 (/.f64 im re) im) |
(*.f64 im (/.f64 im re)) |
(/.f64 (pow.f64 im 2) re) |
(/.f64 (*.f64 im im) re) |
(/.f64 im (/.f64 re im)) |
(*.f64 (/.f64 im re) im) |
(*.f64 im (/.f64 im re)) |
(/.f64 (pow.f64 im 2) re) |
(/.f64 (*.f64 im im) re) |
(/.f64 im (/.f64 re im)) |
(*.f64 (/.f64 im re) im) |
(*.f64 im (/.f64 im re)) |
Compiled 536 to 258 computations (51.9% saved)
5 alts after pruning (1 fresh and 4 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 39 | 0 | 39 |
| Fresh | 0 | 1 | 1 |
| Picked | 0 | 1 | 1 |
| Done | 0 | 3 | 3 |
| Total | 39 | 5 | 44 |
| Status | Error | Program |
|---|---|---|
| ✓ | 30.3b | (neg.f64 re) |
| 32.2b | im | |
| ✓ | 0.0b | (hypot.f64 re im) |
| ✓ | 35.2b | (sqrt.f64 (+.f64 (*.f64 re re) (*.f64 im im))) |
| ✓ | 30.5b | (-.f64 (*.f64 (/.f64 im (/.f64 re im)) -1/2) re) |
Compiled 33 to 21 computations (36.4% saved)
Compiled 2 to 2 computations (0% saved)
5 alts after pruning (1 fresh and 4 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 0 | 0 | 0 |
| Fresh | 0 | 1 | 1 |
| Picked | 0 | 0 | 0 |
| Done | 0 | 4 | 4 |
| Total | 0 | 5 | 5 |
| Status | Error | Program |
|---|---|---|
| ✓ | 30.3b | (neg.f64 re) |
| 32.2b | im | |
| ✓ | 0.0b | (hypot.f64 re im) |
| ✓ | 35.2b | (sqrt.f64 (+.f64 (*.f64 re re) (*.f64 im im))) |
| ✓ | 30.5b | (-.f64 (*.f64 (/.f64 im (/.f64 re im)) -1/2) re) |
Compiled 33 to 21 computations (36.4% saved)
| Inputs |
|---|
im |
(neg.f64 re) |
(-.f64 (*.f64 (/.f64 im (/.f64 re im)) -1/2) re) |
(-.f64 (/.f64 (*.f64 im im) (/.f64 re -1/2)) re) |
(hypot.f64 re im) |
(sqrt.f64 (+.f64 (*.f64 re re) (*.f64 im im))) |
| Outputs |
|---|
(hypot.f64 re im) |
8 calls:
| 8.0ms | (+.f64 (*.f64 re re) (*.f64 im im)) |
| 5.0ms | re |
| 5.0ms | im |
| 4.0ms | (sqrt.f64 (+.f64 (*.f64 re re) (*.f64 im im))) |
| 4.0ms | (*.f64 im im) |
| Error | Segments | Branch |
|---|---|---|
| 0.0b | 1 | re |
| 0.0b | 1 | im |
| 0.0b | 1 | (sqrt.f64 (+.f64 (*.f64 re re) (*.f64 im im))) |
| 0.0b | 1 | (+.f64 (*.f64 re re) (*.f64 im im)) |
| 0.0b | 1 | (*.f64 re re) |
| 0.0b | 1 | (*.f64 re re) |
| 0.0b | 1 | (*.f64 im im) |
| 0.0b | 1 | (*.f64 im im) |
Compiled 79 to 44 computations (44.3% saved)
| Inputs |
|---|
im |
(neg.f64 re) |
(-.f64 (*.f64 (/.f64 im (/.f64 re im)) -1/2) re) |
(-.f64 (/.f64 (*.f64 im im) (/.f64 re -1/2)) re) |
| Outputs |
|---|
(-.f64 (*.f64 (/.f64 im (/.f64 re im)) -1/2) re) |
im |
(neg.f64 re) |
im |
(neg.f64 re) |
im |
4 calls:
| 21.0ms | re |
| 18.0ms | (*.f64 im im) |
| 12.0ms | im |
| 9.0ms | (*.f64 im im) |
| Error | Segments | Branch |
|---|---|---|
| 9.7b | 6 | re |
| 9.9b | 2 | im |
| 17.0b | 2 | (*.f64 im im) |
| 17.0b | 2 | (*.f64 im im) |
Compiled 39 to 23 computations (41% saved)
| 5× | binary-search |
| Time | Left | Right |
|---|---|---|
| 35.0ms | -1.618986003622812e-205 | -8.226565693299523e-210 |
| 17.0ms | -3.4550455850610005e-177 | -7.176526133203662e-183 |
| 18.0ms | -5.962936472060393e-101 | -3.8994085034543956e-103 |
| 20.0ms | -3.295502009220733e-49 | -1.465229708125514e-53 |
| 19.0ms | -1.0005096622161097e-35 | -1.3065671615117336e-36 |
Compiled 15 to 10 computations (33.3% saved)
Total -52.0b remaining (-529.5%)
Threshold costs -52.0b (-529.5%)
| Inputs |
|---|
im |
(neg.f64 re) |
| Outputs |
|---|
(neg.f64 re) |
im |
(neg.f64 re) |
im |
(neg.f64 re) |
im |
2 calls:
| 171.0ms | re |
| 9.0ms | im |
| Error | Segments | Branch |
|---|---|---|
| 9.8b | 6 | re |
| 9.9b | 2 | im |
Compiled 11 to 7 computations (36.4% saved)
| 5× | binary-search |
| Time | Left | Right |
|---|---|---|
| 20.0ms | -1.618986003622812e-205 | -8.226565693299523e-210 |
| 21.0ms | -3.4550455850610005e-177 | -7.176526133203662e-183 |
| 21.0ms | -5.962936472060393e-101 | -3.8994085034543956e-103 |
| 18.0ms | -3.295502009220733e-49 | -1.465229708125514e-53 |
| 19.0ms | -1.0005096622161097e-35 | -1.3065671615117336e-36 |
Compiled 15 to 10 computations (33.3% saved)
| 1× | egg-herbie |
| 2× | +-commutative_binary64 |
| 2× | *-commutative_binary64 |
| 2× | sub-neg_binary64 |
| 1× | neg-sub0_binary64 |
| 1× | neg-mul-1_binary64 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 27 | 99 |
| 1 | 33 | 99 |
| 2 | 36 | 99 |
| 3 | 37 | 99 |
| 1× | fuel |
| 1× | saturated |
| Inputs |
|---|
(hypot.f64 re im) |
(if (<=.f64 re -7486702128610473/748288838313422294120286634350736906063837462003712) (-.f64 (*.f64 (/.f64 im (/.f64 re im)) -1/2) re) (if (<=.f64 re -2169105429933563/6582018229284824168619876730229402019930943462534319453394436096) im (if (<=.f64 re -4699033196416605/78804012392788958424558080200287227610159478540930893335896586808491443542994421222828532509769831281613255980613632) (neg.f64 re) (if (<=.f64 re -7881720156509275/2281220308811097609320585802850145662446614253624279965289596258949637583604338693252956405658685699889321154786797203655344352360687718999126330659861107094125997337180132475041437096123301888) im (if (<=.f64 re -3657631258547243/22592111669665739975592870737637022906810831294812620197467215446901550642889587999246991367961839975767182923986271972624986374927027127581012424707895568851446368731861728964581056579941628221790058875830676242925879296) (neg.f64 re) im))))) |
(if (<=.f64 re -7486702128610473/748288838313422294120286634350736906063837462003712) (neg.f64 re) (if (<=.f64 re -2169105429933563/6582018229284824168619876730229402019930943462534319453394436096) im (if (<=.f64 re -4699033196416605/78804012392788958424558080200287227610159478540930893335896586808491443542994421222828532509769831281613255980613632) (neg.f64 re) (if (<=.f64 re -7881720156509275/2281220308811097609320585802850145662446614253624279965289596258949637583604338693252956405658685699889321154786797203655344352360687718999126330659861107094125997337180132475041437096123301888) im (if (<=.f64 re -3657631258547243/22592111669665739975592870737637022906810831294812620197467215446901550642889587999246991367961839975767182923986271972624986374927027127581012424707895568851446368731861728964581056579941628221790058875830676242925879296) (neg.f64 re) im))))) |
im |
| Outputs |
|---|
(hypot.f64 re im) |
(if (<=.f64 re -7486702128610473/748288838313422294120286634350736906063837462003712) (-.f64 (*.f64 (/.f64 im (/.f64 re im)) -1/2) re) (if (<=.f64 re -2169105429933563/6582018229284824168619876730229402019930943462534319453394436096) im (if (<=.f64 re -4699033196416605/78804012392788958424558080200287227610159478540930893335896586808491443542994421222828532509769831281613255980613632) (neg.f64 re) (if (<=.f64 re -7881720156509275/2281220308811097609320585802850145662446614253624279965289596258949637583604338693252956405658685699889321154786797203655344352360687718999126330659861107094125997337180132475041437096123301888) im (if (<=.f64 re -3657631258547243/22592111669665739975592870737637022906810831294812620197467215446901550642889587999246991367961839975767182923986271972624986374927027127581012424707895568851446368731861728964581056579941628221790058875830676242925879296) (neg.f64 re) im))))) |
(if (<=.f64 re -7486702128610473/748288838313422294120286634350736906063837462003712) (neg.f64 re) (if (<=.f64 re -2169105429933563/6582018229284824168619876730229402019930943462534319453394436096) im (if (<=.f64 re -4699033196416605/78804012392788958424558080200287227610159478540930893335896586808491443542994421222828532509769831281613255980613632) (neg.f64 re) (if (<=.f64 re -7881720156509275/2281220308811097609320585802850145662446614253624279965289596258949637583604338693252956405658685699889321154786797203655344352360687718999126330659861107094125997337180132475041437096123301888) im (if (<=.f64 re -3657631258547243/22592111669665739975592870737637022906810831294812620197467215446901550642889587999246991367961839975767182923986271972624986374927027127581012424707895568851446368731861728964581056579941628221790058875830676242925879296) (neg.f64 re) im))))) |
im |
Compiled 77 to 46 computations (40.3% saved)
| 1× | egg-herbie |
| 2× | hypot-def_binary64 |
| 2× | fma-def_binary64 |
| 1× | +-commutative_binary64 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 7 | 4 |
| 1 | 10 | 4 |
| 2 | 12 | 4 |
| 1× | saturated |
Compiled 15 to 9 computations (40% saved)
(sort re im)
Compiled 81 to 45 computations (44.4% saved)
Loading profile data...