Time bar (total: 2.1s)
| 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)
| 785.0ms | 8256× | body | 256 | valid |
| 2× | egg-herbie |
| 2× | hypot-def_binary64 |
| 2× | fma-def_binary64 |
| 1× | swap-x-y |
| 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 x x) (*.f64 y y))) |
(sqrt.f64 (+.f64 (*.f64 y y) (*.f64 x x))) |
| Outputs |
|---|
(sqrt.f64 (+.f64 (*.f64 x x) (*.f64 y y))) |
(hypot.f64 x y) |
(sqrt.f64 (+.f64 (*.f64 y y) (*.f64 x x))) |
(hypot.f64 x y) |
(sort x y)
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 x x) (*.f64 y y))) |
| Outputs |
|---|
(sqrt.f64 (+.f64 (*.f64 x x) (*.f64 y y))) |
(hypot.f64 x y) |
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 x y) |
| ▶ | 35.2b | (sqrt.f64 (+.f64 (*.f64 x x) (*.f64 y y))) |
Compiled 15 to 9 computations (40% saved)
Found 2 expressions with local error:
| New | Error | Program |
|---|---|---|
| ✓ | 0.0b | (+.f64 (*.f64 x x) (*.f64 y y)) |
| ✓ | 33.0b | (sqrt.f64 (+.f64 (*.f64 x x) (*.f64 y y))) |
Compiled 25 to 6 computations (76% saved)
12 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 1.0ms | x | @ | 0 | (sqrt.f64 (+.f64 (*.f64 x x) (*.f64 y y))) |
| 1.0ms | x | @ | inf | (sqrt.f64 (+.f64 (*.f64 x x) (*.f64 y y))) |
| 1.0ms | y | @ | inf | (sqrt.f64 (+.f64 (*.f64 x x) (*.f64 y y))) |
| 1.0ms | y | @ | 0 | (sqrt.f64 (+.f64 (*.f64 x x) (*.f64 y y))) |
| 0.0ms | x | @ | -inf | (sqrt.f64 (+.f64 (*.f64 x x) (*.f64 y y))) |
| 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 x x) (*.f64 y y))) |
(+.f64 (*.f64 x x) (*.f64 y y)) |
| Outputs |
|---|
((#(struct:change #<rule egg-rr> (2) ((x -.f64 (+.f64 1 (hypot.f64 x y)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (hypot.f64 x y) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (hypot.f64 x y))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (hypot.f64 x y)) 2) (cbrt.f64 (hypot.f64 x y)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (hypot.f64 x y)) (pow.f64 (cbrt.f64 (hypot.f64 x y)) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (hypot.f64 x y)) (sqrt.f64 (hypot.f64 x y)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (pow.f64 (pow.f64 (cbrt.f64 (hypot.f64 x y)) 2) 2)) (sqrt.f64 (pow.f64 (cbrt.f64 (hypot.f64 x y)) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 1 1/2) (hypot.f64 x y))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (pow.f64 (pow.f64 (cbrt.f64 (hypot.f64 x y)) 2) 2) 1/2) (pow.f64 (pow.f64 (cbrt.f64 (hypot.f64 x y)) 2) 1/2))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (sqrt.f64 (-.f64 (pow.f64 x 4) (pow.f64 y 4))) (sqrt.f64 (-.f64 (*.f64 x x) (*.f64 y y))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (sqrt.f64 (+.f64 (pow.f64 x 6) (pow.f64 y 6))) (sqrt.f64 (+.f64 (pow.f64 x 4) (-.f64 (pow.f64 y 4) (pow.f64 (*.f64 x y) 2)))))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (hypot.f64 x y) 2) 1/2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (hypot.f64 x y) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (hypot.f64 x y) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (hypot.f64 x y)) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (hypot.f64 x y)) 2)))) (#(struct:change #<rule egg-rr> (2) ((x fabs.f64 (hypot.f64 x y))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (hypot.f64 x y)))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (hypot.f64 x y) 3))))) (#(struct:change #<rule egg-rr> (2) ((x hypot.f64 x y)))) (#(struct:change #<rule egg-rr> (2) ((x hypot.f64 y x)))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (hypot.f64 x y)))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (hypot.f64 x y)))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (hypot.f64 x y))))))) |
((#(struct:change #<rule egg-rr> (2) ((x -.f64 (+.f64 1 (pow.f64 (hypot.f64 x y) 2)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (/.f64 (pow.f64 x 4) (-.f64 (*.f64 x x) (*.f64 y y))) (/.f64 (pow.f64 y 4) (-.f64 (*.f64 x x) (*.f64 y y))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (hypot.f64 x y) 2) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (hypot.f64 x y) (hypot.f64 x y))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (pow.f64 (hypot.f64 x y) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (hypot.f64 x y)) 2) (pow.f64 (pow.f64 (cbrt.f64 (hypot.f64 x y)) 2) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (hypot.f64 x y)) 2) (*.f64 (cbrt.f64 (hypot.f64 x y)) (hypot.f64 x y)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (pow.f64 (cbrt.f64 (hypot.f64 x y)) 2) 2) (pow.f64 (cbrt.f64 (hypot.f64 x y)) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (hypot.f64 x y)) (*.f64 (sqrt.f64 (hypot.f64 x y)) (hypot.f64 x y)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (+.f64 (pow.f64 x 6) (pow.f64 y 6)) (/.f64 1 (+.f64 (pow.f64 x 4) (-.f64 (pow.f64 y 4) (pow.f64 (*.f64 x y) 2)))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (-.f64 (pow.f64 x 4) (pow.f64 y 4)) (/.f64 1 (-.f64 (*.f64 x x) (*.f64 y y))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 (hypot.f64 x y) (sqrt.f64 (hypot.f64 x y))) (sqrt.f64 (hypot.f64 x y)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 (hypot.f64 x y) (pow.f64 (cbrt.f64 (hypot.f64 x y)) 2)) (cbrt.f64 (hypot.f64 x y)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (/.f64 (+.f64 (pow.f64 x 4) (-.f64 (pow.f64 y 4) (pow.f64 (*.f64 x y) 2))) (+.f64 (pow.f64 x 6) (pow.f64 y 6))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (/.f64 (-.f64 (*.f64 x x) (*.f64 y y)) (-.f64 (pow.f64 x 4) (pow.f64 y 4))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 (pow.f64 x 6) (pow.f64 y 6)) (+.f64 (pow.f64 x 4) (-.f64 (pow.f64 y 4) (pow.f64 (*.f64 x y) 2))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 (pow.f64 x 6) (pow.f64 y 6)) (+.f64 (pow.f64 y 4) (-.f64 (pow.f64 x 4) (pow.f64 (*.f64 x y) 2))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (pow.f64 x 4) (pow.f64 y 4)) (-.f64 (*.f64 x x) (*.f64 y y)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (+.f64 (pow.f64 x 6) (pow.f64 y 6))) (neg.f64 (+.f64 (pow.f64 x 4) (-.f64 (pow.f64 y 4) (pow.f64 (*.f64 x y) 2)))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (-.f64 (pow.f64 x 4) (pow.f64 y 4))) (neg.f64 (-.f64 (*.f64 x x) (*.f64 y y))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (pow.f64 y 4) (pow.f64 x 4)) (-.f64 (*.f64 y y) (*.f64 x x)))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (hypot.f64 x y) 2) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (hypot.f64 x y) 2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (pow.f64 (hypot.f64 x y) 2) 2) 1/2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (pow.f64 (hypot.f64 x y) 2) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (cbrt.f64 (hypot.f64 x y)) 2) 3)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (pow.f64 (hypot.f64 x y) 2) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (pow.f64 (hypot.f64 x y) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (pow.f64 (hypot.f64 x y) 2) 3))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (pow.f64 (hypot.f64 x y) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (pow.f64 (hypot.f64 x y) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (pow.f64 (hypot.f64 x y) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 x x (*.f64 y y))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 y y (*.f64 x x))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 1 (*.f64 x x) (*.f64 y y))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 1 (*.f64 y y) (*.f64 x x))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (cbrt.f64 (pow.f64 x 4)) (pow.f64 (cbrt.f64 x) 2) (*.f64 y y))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (cbrt.f64 (pow.f64 y 4)) (pow.f64 (cbrt.f64 y) 2) (*.f64 x x)))))) |
| 1× | egg-herbie |
| 774× | unswap-sqr_binary64 |
| 754× | associate-*l/_binary64 |
| 621× | associate-*r/_binary64 |
| 441× | fma-neg_binary64 |
| 314× | associate-/l/_binary64 |
Useful iterations: 2 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 67 | 673 |
| 1 | 199 | 626 |
| 2 | 579 | 622 |
| 3 | 2338 | 622 |
| 4 | 6433 | 622 |
| 1× | node limit |
| Inputs |
|---|
y |
(+.f64 y (*.f64 1/2 (/.f64 (pow.f64 x 2) y))) |
(+.f64 (*.f64 -1/8 (/.f64 (pow.f64 x 4) (pow.f64 y 3))) (+.f64 y (*.f64 1/2 (/.f64 (pow.f64 x 2) y)))) |
(+.f64 (*.f64 -1/8 (/.f64 (pow.f64 x 4) (pow.f64 y 3))) (+.f64 y (+.f64 (*.f64 1/2 (/.f64 (pow.f64 x 2) y)) (*.f64 1/16 (/.f64 (pow.f64 x 6) (pow.f64 y 5)))))) |
x |
(+.f64 (*.f64 1/2 (/.f64 (pow.f64 y 2) x)) x) |
(+.f64 (*.f64 1/2 (/.f64 (pow.f64 y 2) x)) (+.f64 (*.f64 -1/8 (/.f64 (pow.f64 y 4) (pow.f64 x 3))) x)) |
(+.f64 (*.f64 1/2 (/.f64 (pow.f64 y 2) x)) (+.f64 (*.f64 1/16 (/.f64 (pow.f64 y 6) (pow.f64 x 5))) (+.f64 (*.f64 -1/8 (/.f64 (pow.f64 y 4) (pow.f64 x 3))) x))) |
(*.f64 -1 x) |
(+.f64 (*.f64 -1/2 (/.f64 (pow.f64 y 2) x)) (*.f64 -1 x)) |
(+.f64 (*.f64 -1/2 (/.f64 (pow.f64 y 2) x)) (+.f64 (*.f64 1/8 (/.f64 (pow.f64 y 4) (pow.f64 x 3))) (*.f64 -1 x))) |
(+.f64 (*.f64 -1/2 (/.f64 (pow.f64 y 2) x)) (+.f64 (*.f64 1/8 (/.f64 (pow.f64 y 4) (pow.f64 x 3))) (+.f64 (*.f64 -1 x) (*.f64 -1/16 (/.f64 (pow.f64 y 6) (pow.f64 x 5)))))) |
x |
(+.f64 (*.f64 1/2 (/.f64 (pow.f64 y 2) x)) x) |
(+.f64 (*.f64 1/2 (/.f64 (pow.f64 y 2) x)) (+.f64 (*.f64 -1/8 (/.f64 (pow.f64 y 4) (pow.f64 x 3))) x)) |
(+.f64 (*.f64 1/2 (/.f64 (pow.f64 y 2) x)) (+.f64 (*.f64 1/16 (/.f64 (pow.f64 y 6) (pow.f64 x 5))) (+.f64 (*.f64 -1/8 (/.f64 (pow.f64 y 4) (pow.f64 x 3))) x))) |
y |
(+.f64 y (*.f64 1/2 (/.f64 (pow.f64 x 2) y))) |
(+.f64 (*.f64 -1/8 (/.f64 (pow.f64 x 4) (pow.f64 y 3))) (+.f64 y (*.f64 1/2 (/.f64 (pow.f64 x 2) y)))) |
(+.f64 (*.f64 -1/8 (/.f64 (pow.f64 x 4) (pow.f64 y 3))) (+.f64 y (+.f64 (*.f64 1/2 (/.f64 (pow.f64 x 2) y)) (*.f64 1/16 (/.f64 (pow.f64 x 6) (pow.f64 y 5)))))) |
(*.f64 -1 y) |
(+.f64 (*.f64 -1/2 (/.f64 (pow.f64 x 2) y)) (*.f64 -1 y)) |
(+.f64 (*.f64 -1/2 (/.f64 (pow.f64 x 2) y)) (+.f64 (*.f64 -1 y) (*.f64 1/8 (/.f64 (pow.f64 x 4) (pow.f64 y 3))))) |
(+.f64 (*.f64 -1/2 (/.f64 (pow.f64 x 2) y)) (+.f64 (*.f64 -1/16 (/.f64 (pow.f64 x 6) (pow.f64 y 5))) (+.f64 (*.f64 -1 y) (*.f64 1/8 (/.f64 (pow.f64 x 4) (pow.f64 y 3)))))) |
(pow.f64 y 2) |
(+.f64 (pow.f64 y 2) (pow.f64 x 2)) |
(+.f64 (pow.f64 y 2) (pow.f64 x 2)) |
(+.f64 (pow.f64 y 2) (pow.f64 x 2)) |
(pow.f64 x 2) |
(+.f64 (pow.f64 y 2) (pow.f64 x 2)) |
(+.f64 (pow.f64 y 2) (pow.f64 x 2)) |
(+.f64 (pow.f64 y 2) (pow.f64 x 2)) |
(pow.f64 x 2) |
(+.f64 (pow.f64 y 2) (pow.f64 x 2)) |
(+.f64 (pow.f64 y 2) (pow.f64 x 2)) |
(+.f64 (pow.f64 y 2) (pow.f64 x 2)) |
(pow.f64 x 2) |
(+.f64 (pow.f64 y 2) (pow.f64 x 2)) |
(+.f64 (pow.f64 y 2) (pow.f64 x 2)) |
(+.f64 (pow.f64 y 2) (pow.f64 x 2)) |
(pow.f64 y 2) |
(+.f64 (pow.f64 y 2) (pow.f64 x 2)) |
(+.f64 (pow.f64 y 2) (pow.f64 x 2)) |
(+.f64 (pow.f64 y 2) (pow.f64 x 2)) |
(pow.f64 y 2) |
(+.f64 (pow.f64 y 2) (pow.f64 x 2)) |
(+.f64 (pow.f64 y 2) (pow.f64 x 2)) |
(+.f64 (pow.f64 y 2) (pow.f64 x 2)) |
| Outputs |
|---|
y |
(+.f64 y (*.f64 1/2 (/.f64 (pow.f64 x 2) y))) |
(+.f64 y (*.f64 1/2 (/.f64 (*.f64 x x) y))) |
(fma.f64 1/2 (/.f64 x (/.f64 y x)) y) |
(fma.f64 1/2 (*.f64 (/.f64 x y) x) y) |
(fma.f64 1/2 (*.f64 x (/.f64 x y)) y) |
(+.f64 (*.f64 -1/8 (/.f64 (pow.f64 x 4) (pow.f64 y 3))) (+.f64 y (*.f64 1/2 (/.f64 (pow.f64 x 2) y)))) |
(fma.f64 -1/8 (/.f64 (pow.f64 x 4) (pow.f64 y 3)) (+.f64 y (*.f64 1/2 (/.f64 (*.f64 x x) y)))) |
(fma.f64 -1/8 (/.f64 (pow.f64 x 4) (pow.f64 y 3)) (fma.f64 1/2 (/.f64 x (/.f64 y x)) y)) |
(fma.f64 -1/8 (/.f64 (pow.f64 x 4) (pow.f64 y 3)) (fma.f64 1/2 (*.f64 (/.f64 x y) x) y)) |
(fma.f64 -1/8 (/.f64 (pow.f64 x 4) (pow.f64 y 3)) (fma.f64 1/2 (*.f64 x (/.f64 x y)) y)) |
(+.f64 (*.f64 -1/8 (/.f64 (pow.f64 x 4) (pow.f64 y 3))) (+.f64 y (+.f64 (*.f64 1/2 (/.f64 (pow.f64 x 2) y)) (*.f64 1/16 (/.f64 (pow.f64 x 6) (pow.f64 y 5)))))) |
(fma.f64 -1/8 (/.f64 (pow.f64 x 4) (pow.f64 y 3)) (+.f64 y (fma.f64 1/2 (/.f64 (*.f64 x x) y) (*.f64 1/16 (/.f64 (pow.f64 x 6) (pow.f64 y 5)))))) |
(fma.f64 -1/8 (/.f64 (pow.f64 x 4) (pow.f64 y 3)) (+.f64 y (fma.f64 1/2 (/.f64 x (/.f64 y x)) (/.f64 1/16 (/.f64 (pow.f64 y 5) (pow.f64 x 6)))))) |
(fma.f64 -1/8 (/.f64 (pow.f64 x 4) (pow.f64 y 3)) (fma.f64 1/2 (*.f64 (/.f64 x y) x) (fma.f64 1/16 (/.f64 (pow.f64 x 6) (pow.f64 y 5)) y))) |
(fma.f64 -1/8 (/.f64 (pow.f64 x 4) (pow.f64 y 3)) (fma.f64 1/2 (*.f64 x (/.f64 x y)) (fma.f64 1/16 (/.f64 (pow.f64 x 6) (pow.f64 y 5)) y))) |
x |
(+.f64 (*.f64 1/2 (/.f64 (pow.f64 y 2) x)) x) |
(fma.f64 1/2 (/.f64 (*.f64 y y) x) x) |
(fma.f64 1/2 (*.f64 (/.f64 y x) y) x) |
(+.f64 (*.f64 1/2 (/.f64 (pow.f64 y 2) x)) (+.f64 (*.f64 -1/8 (/.f64 (pow.f64 y 4) (pow.f64 x 3))) x)) |
(fma.f64 1/2 (/.f64 (*.f64 y y) x) (fma.f64 -1/8 (/.f64 (pow.f64 y 4) (pow.f64 x 3)) x)) |
(fma.f64 1/2 (*.f64 (/.f64 y x) y) (fma.f64 -1/8 (/.f64 (pow.f64 y 4) (pow.f64 x 3)) x)) |
(+.f64 (*.f64 1/2 (/.f64 (pow.f64 y 2) x)) (+.f64 (*.f64 1/16 (/.f64 (pow.f64 y 6) (pow.f64 x 5))) (+.f64 (*.f64 -1/8 (/.f64 (pow.f64 y 4) (pow.f64 x 3))) x))) |
(fma.f64 1/2 (/.f64 (*.f64 y y) x) (fma.f64 1/16 (/.f64 (pow.f64 y 6) (pow.f64 x 5)) (fma.f64 -1/8 (/.f64 (pow.f64 y 4) (pow.f64 x 3)) x))) |
(fma.f64 1/2 (*.f64 (/.f64 y x) y) (fma.f64 -1/8 (/.f64 (pow.f64 y 4) (pow.f64 x 3)) (fma.f64 1/16 (/.f64 (pow.f64 y 6) (pow.f64 x 5)) x))) |
(fma.f64 1/2 (/.f64 (*.f64 y y) x) (fma.f64 -1/8 (/.f64 (pow.f64 y 4) (pow.f64 x 3)) (fma.f64 1/16 (/.f64 (pow.f64 y 6) (pow.f64 x 5)) x))) |
(*.f64 -1 x) |
(neg.f64 x) |
(+.f64 (*.f64 -1/2 (/.f64 (pow.f64 y 2) x)) (*.f64 -1 x)) |
(fma.f64 -1/2 (/.f64 (*.f64 y y) x) (neg.f64 x)) |
(-.f64 (*.f64 (/.f64 (*.f64 y y) x) -1/2) x) |
(-.f64 (*.f64 (/.f64 -1/2 x) (*.f64 y y)) x) |
(-.f64 (/.f64 -1/2 (/.f64 x (*.f64 y y))) x) |
(+.f64 (*.f64 -1/2 (/.f64 (pow.f64 y 2) x)) (+.f64 (*.f64 1/8 (/.f64 (pow.f64 y 4) (pow.f64 x 3))) (*.f64 -1 x))) |
(fma.f64 -1/2 (/.f64 (*.f64 y y) x) (fma.f64 1/8 (/.f64 (pow.f64 y 4) (pow.f64 x 3)) (neg.f64 x))) |
(fma.f64 (/.f64 (*.f64 y y) x) -1/2 (-.f64 (*.f64 (/.f64 (pow.f64 y 4) (pow.f64 x 3)) 1/8) x)) |
(fma.f64 (/.f64 (pow.f64 y 4) (pow.f64 x 3)) 1/8 (-.f64 (*.f64 (/.f64 -1/2 x) (*.f64 y y)) x)) |
(-.f64 (/.f64 -1/2 (/.f64 x (*.f64 y y))) (fma.f64 -1/8 (/.f64 (pow.f64 y 4) (pow.f64 x 3)) x)) |
(+.f64 (*.f64 -1/2 (/.f64 (pow.f64 y 2) x)) (+.f64 (*.f64 1/8 (/.f64 (pow.f64 y 4) (pow.f64 x 3))) (+.f64 (*.f64 -1 x) (*.f64 -1/16 (/.f64 (pow.f64 y 6) (pow.f64 x 5)))))) |
(fma.f64 -1/2 (/.f64 (*.f64 y y) x) (fma.f64 1/8 (/.f64 (pow.f64 y 4) (pow.f64 x 3)) (fma.f64 -1 x (*.f64 (/.f64 (pow.f64 y 6) (pow.f64 x 5)) -1/16)))) |
(fma.f64 (/.f64 (*.f64 y y) x) -1/2 (fma.f64 (/.f64 (pow.f64 y 4) (pow.f64 x 3)) 1/8 (-.f64 (*.f64 (/.f64 (pow.f64 y 6) (pow.f64 x 5)) -1/16) x))) |
(fma.f64 (*.f64 (/.f64 y x) y) -1/2 (-.f64 (fma.f64 (/.f64 (pow.f64 y 4) (pow.f64 x 3)) 1/8 (*.f64 (/.f64 (pow.f64 y 6) (pow.f64 x 5)) -1/16)) x)) |
(-.f64 (fma.f64 (/.f64 (pow.f64 y 6) (pow.f64 x 5)) -1/16 (/.f64 -1/2 (/.f64 x (*.f64 y y)))) (fma.f64 -1/8 (/.f64 (pow.f64 y 4) (pow.f64 x 3)) x)) |
x |
(+.f64 (*.f64 1/2 (/.f64 (pow.f64 y 2) x)) x) |
(fma.f64 1/2 (/.f64 (*.f64 y y) x) x) |
(fma.f64 1/2 (*.f64 (/.f64 y x) y) x) |
(+.f64 (*.f64 1/2 (/.f64 (pow.f64 y 2) x)) (+.f64 (*.f64 -1/8 (/.f64 (pow.f64 y 4) (pow.f64 x 3))) x)) |
(fma.f64 1/2 (/.f64 (*.f64 y y) x) (fma.f64 -1/8 (/.f64 (pow.f64 y 4) (pow.f64 x 3)) x)) |
(fma.f64 1/2 (*.f64 (/.f64 y x) y) (fma.f64 -1/8 (/.f64 (pow.f64 y 4) (pow.f64 x 3)) x)) |
(+.f64 (*.f64 1/2 (/.f64 (pow.f64 y 2) x)) (+.f64 (*.f64 1/16 (/.f64 (pow.f64 y 6) (pow.f64 x 5))) (+.f64 (*.f64 -1/8 (/.f64 (pow.f64 y 4) (pow.f64 x 3))) x))) |
(fma.f64 1/2 (/.f64 (*.f64 y y) x) (fma.f64 1/16 (/.f64 (pow.f64 y 6) (pow.f64 x 5)) (fma.f64 -1/8 (/.f64 (pow.f64 y 4) (pow.f64 x 3)) x))) |
(fma.f64 1/2 (*.f64 (/.f64 y x) y) (fma.f64 -1/8 (/.f64 (pow.f64 y 4) (pow.f64 x 3)) (fma.f64 1/16 (/.f64 (pow.f64 y 6) (pow.f64 x 5)) x))) |
(fma.f64 1/2 (/.f64 (*.f64 y y) x) (fma.f64 -1/8 (/.f64 (pow.f64 y 4) (pow.f64 x 3)) (fma.f64 1/16 (/.f64 (pow.f64 y 6) (pow.f64 x 5)) x))) |
y |
(+.f64 y (*.f64 1/2 (/.f64 (pow.f64 x 2) y))) |
(+.f64 y (*.f64 1/2 (/.f64 (*.f64 x x) y))) |
(fma.f64 1/2 (/.f64 x (/.f64 y x)) y) |
(fma.f64 1/2 (*.f64 (/.f64 x y) x) y) |
(fma.f64 1/2 (*.f64 x (/.f64 x y)) y) |
(+.f64 (*.f64 -1/8 (/.f64 (pow.f64 x 4) (pow.f64 y 3))) (+.f64 y (*.f64 1/2 (/.f64 (pow.f64 x 2) y)))) |
(fma.f64 -1/8 (/.f64 (pow.f64 x 4) (pow.f64 y 3)) (+.f64 y (*.f64 1/2 (/.f64 (*.f64 x x) y)))) |
(fma.f64 -1/8 (/.f64 (pow.f64 x 4) (pow.f64 y 3)) (fma.f64 1/2 (/.f64 x (/.f64 y x)) y)) |
(fma.f64 -1/8 (/.f64 (pow.f64 x 4) (pow.f64 y 3)) (fma.f64 1/2 (*.f64 (/.f64 x y) x) y)) |
(fma.f64 -1/8 (/.f64 (pow.f64 x 4) (pow.f64 y 3)) (fma.f64 1/2 (*.f64 x (/.f64 x y)) y)) |
(+.f64 (*.f64 -1/8 (/.f64 (pow.f64 x 4) (pow.f64 y 3))) (+.f64 y (+.f64 (*.f64 1/2 (/.f64 (pow.f64 x 2) y)) (*.f64 1/16 (/.f64 (pow.f64 x 6) (pow.f64 y 5)))))) |
(fma.f64 -1/8 (/.f64 (pow.f64 x 4) (pow.f64 y 3)) (+.f64 y (fma.f64 1/2 (/.f64 (*.f64 x x) y) (*.f64 1/16 (/.f64 (pow.f64 x 6) (pow.f64 y 5)))))) |
(fma.f64 -1/8 (/.f64 (pow.f64 x 4) (pow.f64 y 3)) (+.f64 y (fma.f64 1/2 (/.f64 x (/.f64 y x)) (/.f64 1/16 (/.f64 (pow.f64 y 5) (pow.f64 x 6)))))) |
(fma.f64 -1/8 (/.f64 (pow.f64 x 4) (pow.f64 y 3)) (fma.f64 1/2 (*.f64 (/.f64 x y) x) (fma.f64 1/16 (/.f64 (pow.f64 x 6) (pow.f64 y 5)) y))) |
(fma.f64 -1/8 (/.f64 (pow.f64 x 4) (pow.f64 y 3)) (fma.f64 1/2 (*.f64 x (/.f64 x y)) (fma.f64 1/16 (/.f64 (pow.f64 x 6) (pow.f64 y 5)) y))) |
(*.f64 -1 y) |
(neg.f64 y) |
(+.f64 (*.f64 -1/2 (/.f64 (pow.f64 x 2) y)) (*.f64 -1 y)) |
(fma.f64 -1/2 (/.f64 (*.f64 x x) y) (neg.f64 y)) |
(-.f64 (*.f64 (/.f64 x (/.f64 y x)) -1/2) y) |
(-.f64 (*.f64 (/.f64 -1/2 y) (*.f64 x x)) y) |
(-.f64 (/.f64 (*.f64 x x) (/.f64 y -1/2)) y) |
(+.f64 (*.f64 -1/2 (/.f64 (pow.f64 x 2) y)) (+.f64 (*.f64 -1 y) (*.f64 1/8 (/.f64 (pow.f64 x 4) (pow.f64 y 3))))) |
(fma.f64 -1/2 (/.f64 (*.f64 x x) y) (fma.f64 -1 y (/.f64 (*.f64 1/8 (pow.f64 x 4)) (pow.f64 y 3)))) |
(fma.f64 (/.f64 x (/.f64 y x)) -1/2 (-.f64 (*.f64 (/.f64 (pow.f64 x 4) (pow.f64 y 3)) 1/8) y)) |
(-.f64 (fma.f64 (*.f64 (/.f64 x y) x) -1/2 (/.f64 1/8 (/.f64 (pow.f64 y 3) (pow.f64 x 4)))) y) |
(fma.f64 (/.f64 (pow.f64 x 4) (pow.f64 y 3)) 1/8 (-.f64 (/.f64 (*.f64 x x) (/.f64 y -1/2)) y)) |
(fma.f64 (pow.f64 x 4) (/.f64 1/8 (pow.f64 y 3)) (-.f64 (/.f64 (*.f64 x x) (/.f64 y -1/2)) y)) |
(+.f64 (*.f64 -1/2 (/.f64 (pow.f64 x 2) y)) (+.f64 (*.f64 -1/16 (/.f64 (pow.f64 x 6) (pow.f64 y 5))) (+.f64 (*.f64 -1 y) (*.f64 1/8 (/.f64 (pow.f64 x 4) (pow.f64 y 3)))))) |
(fma.f64 -1/2 (/.f64 (*.f64 x x) y) (fma.f64 -1/16 (/.f64 (pow.f64 x 6) (pow.f64 y 5)) (fma.f64 -1 y (/.f64 (*.f64 1/8 (pow.f64 x 4)) (pow.f64 y 3))))) |
(fma.f64 (/.f64 x (/.f64 y x)) -1/2 (fma.f64 (/.f64 (pow.f64 x 6) (pow.f64 y 5)) -1/16 (-.f64 (*.f64 (/.f64 (pow.f64 x 4) (pow.f64 y 3)) 1/8) y))) |
(fma.f64 (*.f64 (/.f64 x y) x) -1/2 (fma.f64 (/.f64 (pow.f64 x 4) (pow.f64 y 3)) 1/8 (-.f64 (/.f64 (*.f64 (pow.f64 x 6) -1/16) (pow.f64 y 5)) y))) |
(fma.f64 (*.f64 x (/.f64 x y)) -1/2 (fma.f64 (/.f64 (pow.f64 x 4) (pow.f64 y 3)) 1/8 (-.f64 (*.f64 (pow.f64 x 6) (/.f64 -1/16 (pow.f64 y 5))) y))) |
(fma.f64 (*.f64 x x) (/.f64 -1/2 y) (fma.f64 (pow.f64 x 4) (/.f64 1/8 (pow.f64 y 3)) (-.f64 (*.f64 (pow.f64 x 6) (/.f64 -1/16 (pow.f64 y 5))) y))) |
(pow.f64 y 2) |
(*.f64 y y) |
(+.f64 (pow.f64 y 2) (pow.f64 x 2)) |
(+.f64 (*.f64 x x) (*.f64 y y)) |
(fma.f64 x x (*.f64 y y)) |
(fma.f64 y y (*.f64 x x)) |
(+.f64 (pow.f64 y 2) (pow.f64 x 2)) |
(+.f64 (*.f64 x x) (*.f64 y y)) |
(fma.f64 x x (*.f64 y y)) |
(fma.f64 y y (*.f64 x x)) |
(+.f64 (pow.f64 y 2) (pow.f64 x 2)) |
(+.f64 (*.f64 x x) (*.f64 y y)) |
(fma.f64 x x (*.f64 y y)) |
(fma.f64 y y (*.f64 x x)) |
(pow.f64 x 2) |
(*.f64 x x) |
(+.f64 (pow.f64 y 2) (pow.f64 x 2)) |
(+.f64 (*.f64 x x) (*.f64 y y)) |
(fma.f64 x x (*.f64 y y)) |
(fma.f64 y y (*.f64 x x)) |
(+.f64 (pow.f64 y 2) (pow.f64 x 2)) |
(+.f64 (*.f64 x x) (*.f64 y y)) |
(fma.f64 x x (*.f64 y y)) |
(fma.f64 y y (*.f64 x x)) |
(+.f64 (pow.f64 y 2) (pow.f64 x 2)) |
(+.f64 (*.f64 x x) (*.f64 y y)) |
(fma.f64 x x (*.f64 y y)) |
(fma.f64 y y (*.f64 x x)) |
(pow.f64 x 2) |
(*.f64 x x) |
(+.f64 (pow.f64 y 2) (pow.f64 x 2)) |
(+.f64 (*.f64 x x) (*.f64 y y)) |
(fma.f64 x x (*.f64 y y)) |
(fma.f64 y y (*.f64 x x)) |
(+.f64 (pow.f64 y 2) (pow.f64 x 2)) |
(+.f64 (*.f64 x x) (*.f64 y y)) |
(fma.f64 x x (*.f64 y y)) |
(fma.f64 y y (*.f64 x x)) |
(+.f64 (pow.f64 y 2) (pow.f64 x 2)) |
(+.f64 (*.f64 x x) (*.f64 y y)) |
(fma.f64 x x (*.f64 y y)) |
(fma.f64 y y (*.f64 x x)) |
(pow.f64 x 2) |
(*.f64 x x) |
(+.f64 (pow.f64 y 2) (pow.f64 x 2)) |
(+.f64 (*.f64 x x) (*.f64 y y)) |
(fma.f64 x x (*.f64 y y)) |
(fma.f64 y y (*.f64 x x)) |
(+.f64 (pow.f64 y 2) (pow.f64 x 2)) |
(+.f64 (*.f64 x x) (*.f64 y y)) |
(fma.f64 x x (*.f64 y y)) |
(fma.f64 y y (*.f64 x x)) |
(+.f64 (pow.f64 y 2) (pow.f64 x 2)) |
(+.f64 (*.f64 x x) (*.f64 y y)) |
(fma.f64 x x (*.f64 y y)) |
(fma.f64 y y (*.f64 x x)) |
(pow.f64 y 2) |
(*.f64 y y) |
(+.f64 (pow.f64 y 2) (pow.f64 x 2)) |
(+.f64 (*.f64 x x) (*.f64 y y)) |
(fma.f64 x x (*.f64 y y)) |
(fma.f64 y y (*.f64 x x)) |
(+.f64 (pow.f64 y 2) (pow.f64 x 2)) |
(+.f64 (*.f64 x x) (*.f64 y y)) |
(fma.f64 x x (*.f64 y y)) |
(fma.f64 y y (*.f64 x x)) |
(+.f64 (pow.f64 y 2) (pow.f64 x 2)) |
(+.f64 (*.f64 x x) (*.f64 y y)) |
(fma.f64 x x (*.f64 y y)) |
(fma.f64 y y (*.f64 x x)) |
(pow.f64 y 2) |
(*.f64 y y) |
(+.f64 (pow.f64 y 2) (pow.f64 x 2)) |
(+.f64 (*.f64 x x) (*.f64 y y)) |
(fma.f64 x x (*.f64 y y)) |
(fma.f64 y y (*.f64 x x)) |
(+.f64 (pow.f64 y 2) (pow.f64 x 2)) |
(+.f64 (*.f64 x x) (*.f64 y y)) |
(fma.f64 x x (*.f64 y y)) |
(fma.f64 y y (*.f64 x x)) |
(+.f64 (pow.f64 y 2) (pow.f64 x 2)) |
(+.f64 (*.f64 x x) (*.f64 y y)) |
(fma.f64 x x (*.f64 y y)) |
(fma.f64 y y (*.f64 x x)) |
Found 1 expressions with local error:
| New | Error | Program |
|---|---|---|
| ✓ | 0.0b | (hypot.f64 x y) |
Compiled 7 to 3 computations (57.1% saved)
6 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 0.0ms | x | @ | 0 | (hypot.f64 x y) |
| 0.0ms | x | @ | -inf | (hypot.f64 x y) |
| 0.0ms | x | @ | inf | (hypot.f64 x y) |
| 0.0ms | y | @ | 0 | (hypot.f64 x y) |
| 0.0ms | y | @ | -inf | (hypot.f64 x y) |
| 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 x y) |
| Outputs |
|---|
((#(struct:change #<rule egg-rr> (2) ((x +.f64 0 (hypot.f64 x y))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (log.f64 (sqrt.f64 (exp.f64 (hypot.f64 x y)))) (log.f64 (sqrt.f64 (exp.f64 (hypot.f64 x y)))))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (log.f64 (pow.f64 (cbrt.f64 (exp.f64 (hypot.f64 x y))) 2)) (log.f64 (cbrt.f64 (exp.f64 (hypot.f64 x y)))))))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (+.f64 1 (hypot.f64 x y)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (hypot.f64 x y) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (hypot.f64 x y))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (hypot.f64 x y)) (pow.f64 (cbrt.f64 (hypot.f64 x y)) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (hypot.f64 x y)) (pow.f64 (pow.f64 (cbrt.f64 (hypot.f64 x y)) 4) 1/2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (hypot.f64 x y)) 2) (cbrt.f64 (hypot.f64 x y)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (hypot.f64 x y)) (sqrt.f64 (hypot.f64 x y)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (hypot.f64 x y) 1/4) (sqrt.f64 (pow.f64 (hypot.f64 x y) 3/2)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (hypot.f64 x y) 1/4) (pow.f64 (pow.f64 (hypot.f64 x y) 3/2) 1/2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (pow.f64 (hypot.f64 x y) 5/2)) (pow.f64 (hypot.f64 x y) 1/6))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (pow.f64 (*.f64 (hypot.f64 x y) (cbrt.f64 (hypot.f64 x y))) 2)) (cbrt.f64 (cbrt.f64 (hypot.f64 x y))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (pow.f64 (cbrt.f64 (hypot.f64 x y)) 5)) (pow.f64 (hypot.f64 x y) 1/6))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (pow.f64 (hypot.f64 x y) 3/2)) (pow.f64 (hypot.f64 x y) 1/4))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 1 1/3) (hypot.f64 x y))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (pow.f64 (*.f64 (hypot.f64 x y) (cbrt.f64 (hypot.f64 x y))) 2) 1/3) (cbrt.f64 (cbrt.f64 (hypot.f64 x y))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (pow.f64 (hypot.f64 x y) 5/2) 1/3) (pow.f64 (hypot.f64 x y) 1/6))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 1 1/2) (hypot.f64 x y))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (pow.f64 (hypot.f64 x y) 3/2) 1/2) (pow.f64 (hypot.f64 x y) 1/4))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (pow.f64 (cbrt.f64 (hypot.f64 x y)) 4) 1/2) (cbrt.f64 (hypot.f64 x y)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (pow.f64 (cbrt.f64 (hypot.f64 x y)) 5) 1/2) (pow.f64 (hypot.f64 x y) 1/6))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (sqrt.f64 (+.f64 (pow.f64 x 6) (pow.f64 y 6))) (sqrt.f64 (+.f64 (pow.f64 x 4) (-.f64 (pow.f64 y 4) (pow.f64 (*.f64 x y) 2)))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (sqrt.f64 (-.f64 (pow.f64 x 4) (pow.f64 y 4))) (sqrt.f64 (-.f64 (*.f64 x x) (*.f64 y y))))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (hypot.f64 x y) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (hypot.f64 x y) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (hypot.f64 x y)) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (hypot.f64 x y)) 2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (hypot.f64 x y) 2) 1/2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (E.f64) (log.f64 (hypot.f64 x y)))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (hypot.f64 x y) 4) 1/4)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (exp.f64 (sqrt.f64 (log.f64 (hypot.f64 x y)))) (sqrt.f64 (log.f64 (hypot.f64 x y))))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (exp.f64 (pow.f64 (cbrt.f64 (log.f64 (hypot.f64 x y))) 2)) (cbrt.f64 (log.f64 (hypot.f64 x y))))))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (hypot.f64 x y) 2))))) (#(struct:change #<rule egg-rr> (2) ((x fabs.f64 (hypot.f64 x y))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (hypot.f64 x y)))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (hypot.f64 x y) 3))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (hypot.f64 x y)))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (hypot.f64 x y)))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (hypot.f64 x y)))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (*.f64 3 (log.f64 (hypot.f64 x y))) 1/3))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (log.f64 (cbrt.f64 (hypot.f64 x y))) 3))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (log.f64 (sqrt.f64 (hypot.f64 x y))) 2))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (*.f64 2 (log.f64 (hypot.f64 x y))) 1/2)))))) |
| 1× | egg-herbie |
| 774× | unswap-sqr_binary64 |
| 754× | associate-*l/_binary64 |
| 619× | associate-*r/_binary64 |
| 441× | fma-neg_binary64 |
| 319× | *-commutative_binary64 |
Useful iterations: 2 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 66 | 469 |
| 1 | 197 | 458 |
| 2 | 573 | 454 |
| 3 | 2335 | 454 |
| 4 | 6401 | 454 |
| 1× | node limit |
| Inputs |
|---|
y |
(+.f64 y (*.f64 1/2 (/.f64 (pow.f64 x 2) y))) |
(+.f64 (*.f64 -1/8 (/.f64 (pow.f64 x 4) (pow.f64 y 3))) (+.f64 y (*.f64 1/2 (/.f64 (pow.f64 x 2) y)))) |
(+.f64 (*.f64 -1/8 (/.f64 (pow.f64 x 4) (pow.f64 y 3))) (+.f64 y (+.f64 (*.f64 1/2 (/.f64 (pow.f64 x 2) y)) (*.f64 1/16 (/.f64 (pow.f64 x 6) (pow.f64 y 5)))))) |
x |
(+.f64 (*.f64 1/2 (/.f64 (pow.f64 y 2) x)) x) |
(+.f64 (*.f64 1/2 (/.f64 (pow.f64 y 2) x)) (+.f64 (*.f64 -1/8 (/.f64 (pow.f64 y 4) (pow.f64 x 3))) x)) |
(+.f64 (*.f64 1/2 (/.f64 (pow.f64 y 2) x)) (+.f64 (*.f64 1/16 (/.f64 (pow.f64 y 6) (pow.f64 x 5))) (+.f64 (*.f64 -1/8 (/.f64 (pow.f64 y 4) (pow.f64 x 3))) x))) |
(*.f64 -1 x) |
(+.f64 (*.f64 -1/2 (/.f64 (pow.f64 y 2) x)) (*.f64 -1 x)) |
(+.f64 (*.f64 -1/2 (/.f64 (pow.f64 y 2) x)) (+.f64 (*.f64 1/8 (/.f64 (pow.f64 y 4) (pow.f64 x 3))) (*.f64 -1 x))) |
(+.f64 (*.f64 -1/2 (/.f64 (pow.f64 y 2) x)) (+.f64 (*.f64 1/8 (/.f64 (pow.f64 y 4) (pow.f64 x 3))) (+.f64 (*.f64 -1 x) (*.f64 -1/16 (/.f64 (pow.f64 y 6) (pow.f64 x 5)))))) |
x |
(+.f64 (*.f64 1/2 (/.f64 (pow.f64 y 2) x)) x) |
(+.f64 (*.f64 1/2 (/.f64 (pow.f64 y 2) x)) (+.f64 (*.f64 -1/8 (/.f64 (pow.f64 y 4) (pow.f64 x 3))) x)) |
(+.f64 (*.f64 1/2 (/.f64 (pow.f64 y 2) x)) (+.f64 (*.f64 1/16 (/.f64 (pow.f64 y 6) (pow.f64 x 5))) (+.f64 (*.f64 -1/8 (/.f64 (pow.f64 y 4) (pow.f64 x 3))) x))) |
y |
(+.f64 y (*.f64 1/2 (/.f64 (pow.f64 x 2) y))) |
(+.f64 (*.f64 -1/8 (/.f64 (pow.f64 x 4) (pow.f64 y 3))) (+.f64 y (*.f64 1/2 (/.f64 (pow.f64 x 2) y)))) |
(+.f64 (*.f64 -1/8 (/.f64 (pow.f64 x 4) (pow.f64 y 3))) (+.f64 y (+.f64 (*.f64 1/2 (/.f64 (pow.f64 x 2) y)) (*.f64 1/16 (/.f64 (pow.f64 x 6) (pow.f64 y 5)))))) |
(*.f64 -1 y) |
(+.f64 (*.f64 -1/2 (/.f64 (pow.f64 x 2) y)) (*.f64 -1 y)) |
(+.f64 (*.f64 -1/2 (/.f64 (pow.f64 x 2) y)) (+.f64 (*.f64 -1 y) (*.f64 1/8 (/.f64 (pow.f64 x 4) (pow.f64 y 3))))) |
(+.f64 (*.f64 -1/2 (/.f64 (pow.f64 x 2) y)) (+.f64 (*.f64 -1/16 (/.f64 (pow.f64 x 6) (pow.f64 y 5))) (+.f64 (*.f64 -1 y) (*.f64 1/8 (/.f64 (pow.f64 x 4) (pow.f64 y 3)))))) |
| Outputs |
|---|
y |
(+.f64 y (*.f64 1/2 (/.f64 (pow.f64 x 2) y))) |
(+.f64 y (*.f64 1/2 (/.f64 (*.f64 x x) y))) |
(fma.f64 1/2 (/.f64 x (/.f64 y x)) y) |
(fma.f64 1/2 (*.f64 (/.f64 x y) x) y) |
(fma.f64 1/2 (*.f64 x (/.f64 x y)) y) |
(+.f64 (*.f64 -1/8 (/.f64 (pow.f64 x 4) (pow.f64 y 3))) (+.f64 y (*.f64 1/2 (/.f64 (pow.f64 x 2) y)))) |
(fma.f64 -1/8 (/.f64 (pow.f64 x 4) (pow.f64 y 3)) (+.f64 y (*.f64 1/2 (/.f64 (*.f64 x x) y)))) |
(fma.f64 -1/8 (/.f64 (pow.f64 x 4) (pow.f64 y 3)) (fma.f64 1/2 (/.f64 x (/.f64 y x)) y)) |
(fma.f64 -1/8 (/.f64 (pow.f64 x 4) (pow.f64 y 3)) (fma.f64 1/2 (*.f64 (/.f64 x y) x) y)) |
(fma.f64 -1/8 (/.f64 (pow.f64 x 4) (pow.f64 y 3)) (fma.f64 1/2 (*.f64 x (/.f64 x y)) y)) |
(+.f64 (*.f64 -1/8 (/.f64 (pow.f64 x 4) (pow.f64 y 3))) (+.f64 y (+.f64 (*.f64 1/2 (/.f64 (pow.f64 x 2) y)) (*.f64 1/16 (/.f64 (pow.f64 x 6) (pow.f64 y 5)))))) |
(fma.f64 -1/8 (/.f64 (pow.f64 x 4) (pow.f64 y 3)) (+.f64 y (fma.f64 1/2 (/.f64 (*.f64 x x) y) (*.f64 1/16 (/.f64 (pow.f64 x 6) (pow.f64 y 5)))))) |
(fma.f64 -1/8 (/.f64 (pow.f64 x 4) (pow.f64 y 3)) (+.f64 y (fma.f64 1/2 (/.f64 x (/.f64 y x)) (/.f64 1/16 (/.f64 (pow.f64 y 5) (pow.f64 x 6)))))) |
(fma.f64 -1/8 (/.f64 (pow.f64 x 4) (pow.f64 y 3)) (fma.f64 1/2 (*.f64 (/.f64 x y) x) (fma.f64 1/16 (/.f64 (pow.f64 x 6) (pow.f64 y 5)) y))) |
(fma.f64 -1/8 (/.f64 (pow.f64 x 4) (pow.f64 y 3)) (fma.f64 1/2 (*.f64 x (/.f64 x y)) (fma.f64 1/16 (/.f64 (pow.f64 x 6) (pow.f64 y 5)) y))) |
x |
(+.f64 (*.f64 1/2 (/.f64 (pow.f64 y 2) x)) x) |
(fma.f64 1/2 (/.f64 (*.f64 y y) x) x) |
(fma.f64 1/2 (*.f64 (/.f64 y x) y) x) |
(fma.f64 1/2 (*.f64 y (/.f64 y x)) x) |
(+.f64 (*.f64 1/2 (/.f64 (pow.f64 y 2) x)) (+.f64 (*.f64 -1/8 (/.f64 (pow.f64 y 4) (pow.f64 x 3))) x)) |
(fma.f64 1/2 (/.f64 (*.f64 y y) x) (fma.f64 -1/8 (/.f64 (pow.f64 y 4) (pow.f64 x 3)) x)) |
(fma.f64 1/2 (*.f64 (/.f64 y x) y) (fma.f64 -1/8 (/.f64 (pow.f64 y 4) (pow.f64 x 3)) x)) |
(fma.f64 1/2 (*.f64 y (/.f64 y x)) (fma.f64 -1/8 (/.f64 (pow.f64 y 4) (pow.f64 x 3)) x)) |
(+.f64 (*.f64 1/2 (/.f64 (pow.f64 y 2) x)) (+.f64 (*.f64 1/16 (/.f64 (pow.f64 y 6) (pow.f64 x 5))) (+.f64 (*.f64 -1/8 (/.f64 (pow.f64 y 4) (pow.f64 x 3))) x))) |
(fma.f64 1/2 (/.f64 (*.f64 y y) x) (fma.f64 1/16 (/.f64 (pow.f64 y 6) (pow.f64 x 5)) (fma.f64 -1/8 (/.f64 (pow.f64 y 4) (pow.f64 x 3)) x))) |
(fma.f64 1/2 (*.f64 (/.f64 y x) y) (fma.f64 -1/8 (/.f64 (pow.f64 y 4) (pow.f64 x 3)) (fma.f64 1/16 (/.f64 (pow.f64 y 6) (pow.f64 x 5)) x))) |
(fma.f64 1/2 (*.f64 y (/.f64 y x)) (fma.f64 -1/8 (/.f64 (pow.f64 y 4) (pow.f64 x 3)) (fma.f64 1/16 (/.f64 (pow.f64 y 6) (pow.f64 x 5)) x))) |
(*.f64 -1 x) |
(neg.f64 x) |
(+.f64 (*.f64 -1/2 (/.f64 (pow.f64 y 2) x)) (*.f64 -1 x)) |
(fma.f64 -1/2 (/.f64 (*.f64 y y) x) (neg.f64 x)) |
(-.f64 (*.f64 (/.f64 (*.f64 y y) x) -1/2) x) |
(-.f64 (*.f64 (/.f64 -1/2 x) (*.f64 y y)) x) |
(-.f64 (*.f64 (*.f64 y y) (/.f64 -1/2 x)) x) |
(+.f64 (*.f64 -1/2 (/.f64 (pow.f64 y 2) x)) (+.f64 (*.f64 1/8 (/.f64 (pow.f64 y 4) (pow.f64 x 3))) (*.f64 -1 x))) |
(fma.f64 -1/2 (/.f64 (*.f64 y y) x) (fma.f64 1/8 (/.f64 (pow.f64 y 4) (pow.f64 x 3)) (neg.f64 x))) |
(fma.f64 (/.f64 (*.f64 y y) x) -1/2 (-.f64 (*.f64 (/.f64 (pow.f64 y 4) (pow.f64 x 3)) 1/8) x)) |
(-.f64 (fma.f64 (/.f64 (pow.f64 y 4) (pow.f64 x 3)) 1/8 (*.f64 (/.f64 -1/2 x) (*.f64 y y))) x) |
(-.f64 (*.f64 (*.f64 y y) (/.f64 -1/2 x)) (fma.f64 -1/8 (/.f64 (pow.f64 y 4) (pow.f64 x 3)) x)) |
(+.f64 (*.f64 -1/2 (/.f64 (pow.f64 y 2) x)) (+.f64 (*.f64 1/8 (/.f64 (pow.f64 y 4) (pow.f64 x 3))) (+.f64 (*.f64 -1 x) (*.f64 -1/16 (/.f64 (pow.f64 y 6) (pow.f64 x 5)))))) |
(fma.f64 -1/2 (/.f64 (*.f64 y y) x) (fma.f64 1/8 (/.f64 (pow.f64 y 4) (pow.f64 x 3)) (fma.f64 -1 x (*.f64 (/.f64 (pow.f64 y 6) (pow.f64 x 5)) -1/16)))) |
(fma.f64 (/.f64 (*.f64 y y) x) -1/2 (fma.f64 (/.f64 (pow.f64 y 4) (pow.f64 x 3)) 1/8 (-.f64 (*.f64 (/.f64 (pow.f64 y 6) (pow.f64 x 5)) -1/16) x))) |
(fma.f64 (/.f64 (pow.f64 y 4) (pow.f64 x 3)) 1/8 (-.f64 (fma.f64 (/.f64 (pow.f64 y 6) (pow.f64 x 5)) -1/16 (*.f64 (/.f64 -1/2 x) (*.f64 y y))) x)) |
(-.f64 (fma.f64 (/.f64 (pow.f64 y 4) (pow.f64 x 3)) 1/8 (*.f64 (*.f64 y y) (/.f64 -1/2 x))) (fma.f64 1/16 (/.f64 (pow.f64 y 6) (pow.f64 x 5)) x)) |
x |
(+.f64 (*.f64 1/2 (/.f64 (pow.f64 y 2) x)) x) |
(fma.f64 1/2 (/.f64 (*.f64 y y) x) x) |
(fma.f64 1/2 (*.f64 (/.f64 y x) y) x) |
(fma.f64 1/2 (*.f64 y (/.f64 y x)) x) |
(+.f64 (*.f64 1/2 (/.f64 (pow.f64 y 2) x)) (+.f64 (*.f64 -1/8 (/.f64 (pow.f64 y 4) (pow.f64 x 3))) x)) |
(fma.f64 1/2 (/.f64 (*.f64 y y) x) (fma.f64 -1/8 (/.f64 (pow.f64 y 4) (pow.f64 x 3)) x)) |
(fma.f64 1/2 (*.f64 (/.f64 y x) y) (fma.f64 -1/8 (/.f64 (pow.f64 y 4) (pow.f64 x 3)) x)) |
(fma.f64 1/2 (*.f64 y (/.f64 y x)) (fma.f64 -1/8 (/.f64 (pow.f64 y 4) (pow.f64 x 3)) x)) |
(+.f64 (*.f64 1/2 (/.f64 (pow.f64 y 2) x)) (+.f64 (*.f64 1/16 (/.f64 (pow.f64 y 6) (pow.f64 x 5))) (+.f64 (*.f64 -1/8 (/.f64 (pow.f64 y 4) (pow.f64 x 3))) x))) |
(fma.f64 1/2 (/.f64 (*.f64 y y) x) (fma.f64 1/16 (/.f64 (pow.f64 y 6) (pow.f64 x 5)) (fma.f64 -1/8 (/.f64 (pow.f64 y 4) (pow.f64 x 3)) x))) |
(fma.f64 1/2 (*.f64 (/.f64 y x) y) (fma.f64 -1/8 (/.f64 (pow.f64 y 4) (pow.f64 x 3)) (fma.f64 1/16 (/.f64 (pow.f64 y 6) (pow.f64 x 5)) x))) |
(fma.f64 1/2 (*.f64 y (/.f64 y x)) (fma.f64 -1/8 (/.f64 (pow.f64 y 4) (pow.f64 x 3)) (fma.f64 1/16 (/.f64 (pow.f64 y 6) (pow.f64 x 5)) x))) |
y |
(+.f64 y (*.f64 1/2 (/.f64 (pow.f64 x 2) y))) |
(+.f64 y (*.f64 1/2 (/.f64 (*.f64 x x) y))) |
(fma.f64 1/2 (/.f64 x (/.f64 y x)) y) |
(fma.f64 1/2 (*.f64 (/.f64 x y) x) y) |
(fma.f64 1/2 (*.f64 x (/.f64 x y)) y) |
(+.f64 (*.f64 -1/8 (/.f64 (pow.f64 x 4) (pow.f64 y 3))) (+.f64 y (*.f64 1/2 (/.f64 (pow.f64 x 2) y)))) |
(fma.f64 -1/8 (/.f64 (pow.f64 x 4) (pow.f64 y 3)) (+.f64 y (*.f64 1/2 (/.f64 (*.f64 x x) y)))) |
(fma.f64 -1/8 (/.f64 (pow.f64 x 4) (pow.f64 y 3)) (fma.f64 1/2 (/.f64 x (/.f64 y x)) y)) |
(fma.f64 -1/8 (/.f64 (pow.f64 x 4) (pow.f64 y 3)) (fma.f64 1/2 (*.f64 (/.f64 x y) x) y)) |
(fma.f64 -1/8 (/.f64 (pow.f64 x 4) (pow.f64 y 3)) (fma.f64 1/2 (*.f64 x (/.f64 x y)) y)) |
(+.f64 (*.f64 -1/8 (/.f64 (pow.f64 x 4) (pow.f64 y 3))) (+.f64 y (+.f64 (*.f64 1/2 (/.f64 (pow.f64 x 2) y)) (*.f64 1/16 (/.f64 (pow.f64 x 6) (pow.f64 y 5)))))) |
(fma.f64 -1/8 (/.f64 (pow.f64 x 4) (pow.f64 y 3)) (+.f64 y (fma.f64 1/2 (/.f64 (*.f64 x x) y) (*.f64 1/16 (/.f64 (pow.f64 x 6) (pow.f64 y 5)))))) |
(fma.f64 -1/8 (/.f64 (pow.f64 x 4) (pow.f64 y 3)) (+.f64 y (fma.f64 1/2 (/.f64 x (/.f64 y x)) (/.f64 1/16 (/.f64 (pow.f64 y 5) (pow.f64 x 6)))))) |
(fma.f64 -1/8 (/.f64 (pow.f64 x 4) (pow.f64 y 3)) (fma.f64 1/2 (*.f64 (/.f64 x y) x) (fma.f64 1/16 (/.f64 (pow.f64 x 6) (pow.f64 y 5)) y))) |
(fma.f64 -1/8 (/.f64 (pow.f64 x 4) (pow.f64 y 3)) (fma.f64 1/2 (*.f64 x (/.f64 x y)) (fma.f64 1/16 (/.f64 (pow.f64 x 6) (pow.f64 y 5)) y))) |
(*.f64 -1 y) |
(neg.f64 y) |
(+.f64 (*.f64 -1/2 (/.f64 (pow.f64 x 2) y)) (*.f64 -1 y)) |
(fma.f64 -1/2 (/.f64 (*.f64 x x) y) (neg.f64 y)) |
(-.f64 (*.f64 (/.f64 x (/.f64 y x)) -1/2) y) |
(-.f64 (*.f64 (/.f64 -1/2 y) (*.f64 x x)) y) |
(-.f64 (*.f64 (*.f64 x x) (/.f64 -1/2 y)) y) |
(+.f64 (*.f64 -1/2 (/.f64 (pow.f64 x 2) y)) (+.f64 (*.f64 -1 y) (*.f64 1/8 (/.f64 (pow.f64 x 4) (pow.f64 y 3))))) |
(fma.f64 -1/2 (/.f64 (*.f64 x x) y) (fma.f64 -1 y (*.f64 (/.f64 (pow.f64 x 4) (pow.f64 y 3)) 1/8))) |
(fma.f64 (/.f64 x (/.f64 y x)) -1/2 (-.f64 (*.f64 (/.f64 (pow.f64 x 4) (pow.f64 y 3)) 1/8) y)) |
(-.f64 (fma.f64 (*.f64 (/.f64 x y) x) -1/2 (/.f64 (*.f64 (pow.f64 x 4) 1/8) (pow.f64 y 3))) y) |
(fma.f64 (/.f64 -1/2 y) (*.f64 x x) (-.f64 (/.f64 (*.f64 (pow.f64 x 4) 1/8) (pow.f64 y 3)) y)) |
(fma.f64 (*.f64 x x) (/.f64 -1/2 y) (-.f64 (/.f64 (*.f64 (pow.f64 x 4) 1/8) (pow.f64 y 3)) y)) |
(+.f64 (*.f64 -1/2 (/.f64 (pow.f64 x 2) y)) (+.f64 (*.f64 -1/16 (/.f64 (pow.f64 x 6) (pow.f64 y 5))) (+.f64 (*.f64 -1 y) (*.f64 1/8 (/.f64 (pow.f64 x 4) (pow.f64 y 3)))))) |
(fma.f64 -1/2 (/.f64 (*.f64 x x) y) (fma.f64 -1/16 (/.f64 (pow.f64 x 6) (pow.f64 y 5)) (fma.f64 -1 y (*.f64 (/.f64 (pow.f64 x 4) (pow.f64 y 3)) 1/8)))) |
(fma.f64 (/.f64 x (/.f64 y x)) -1/2 (fma.f64 (/.f64 (pow.f64 x 6) (pow.f64 y 5)) -1/16 (-.f64 (*.f64 (/.f64 (pow.f64 x 4) (pow.f64 y 3)) 1/8) y))) |
(fma.f64 (*.f64 (/.f64 x y) x) -1/2 (-.f64 (fma.f64 (/.f64 (pow.f64 x 4) (pow.f64 y 3)) 1/8 (*.f64 (/.f64 (pow.f64 x 6) (pow.f64 y 5)) -1/16)) y)) |
(fma.f64 (/.f64 -1/16 (pow.f64 y 5)) (pow.f64 x 6) (fma.f64 (/.f64 -1/2 y) (*.f64 x x) (-.f64 (/.f64 (*.f64 (pow.f64 x 4) 1/8) (pow.f64 y 3)) y))) |
(fma.f64 (pow.f64 x 6) (/.f64 -1/16 (pow.f64 y 5)) (fma.f64 (*.f64 x x) (/.f64 -1/2 y) (-.f64 (/.f64 (*.f64 (pow.f64 x 4) 1/8) (pow.f64 y 3)) y))) |
Compiled 2089 to 1175 computations (43.8% 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 -1/2 (/.f64 x (*.f64 y y))) x) |
| 32.2b | y | |
| ▶ | 30.3b | (neg.f64 x) |
| ✓ | 0.0b | (hypot.f64 x y) |
| ✓ | 35.2b | (sqrt.f64 (+.f64 (*.f64 x x) (*.f64 y y))) |
Compiled 33 to 21 computations (36.4% saved)
Compiled 5 to 3 computations (40% saved)
Found 2 expressions with local error:
| New | Error | Program |
|---|---|---|
| ✓ | 0.5b | (/.f64 -1/2 (/.f64 x (*.f64 y y))) |
| ✓ | 8.8b | (/.f64 x (*.f64 y y)) |
Compiled 29 to 10 computations (65.5% saved)
12 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 1.0ms | x | @ | -inf | (/.f64 -1/2 (/.f64 x (*.f64 y y))) |
| 1.0ms | x | @ | inf | (/.f64 x (*.f64 y y)) |
| 1.0ms | x | @ | 0 | (/.f64 x (*.f64 y y)) |
| 1.0ms | y | @ | 0 | (/.f64 -1/2 (/.f64 x (*.f64 y y))) |
| 1.0ms | x | @ | 0 | (/.f64 -1/2 (/.f64 x (*.f64 y y))) |
| 1× | batch-egg-rewrite |
| 808× | pow1_binary64 |
| 756× | add-log-exp_binary64 |
| 755× | log1p-expm1-u_binary64 |
| 755× | expm1-log1p-u_binary64 |
| 739× | add-exp-log_binary64 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 7 | 17 |
| 1 | 156 | 17 |
| 2 | 2097 | 17 |
| 1× | node limit |
| Inputs |
|---|
(/.f64 x (*.f64 y y)) |
(/.f64 -1/2 (/.f64 x (*.f64 y y))) |
| Outputs |
|---|
((#(struct:change #<rule egg-rr> (2) ((x -.f64 (+.f64 1 (*.f64 x (pow.f64 y -2))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 x (pow.f64 y -2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 x (pow.f64 y -2)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (*.f64 x (pow.f64 y -2)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (*.f64 x (pow.f64 y -2))) (cbrt.f64 (/.f64 (*.f64 x x) (pow.f64 y 4))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (/.f64 (*.f64 x x) (pow.f64 y 4))) (cbrt.f64 (*.f64 x (pow.f64 y -2))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 x) 2) (*.f64 (cbrt.f64 x) (pow.f64 y -2)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (sqrt.f64 x) y) (/.f64 (sqrt.f64 x) y))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 x) (*.f64 (sqrt.f64 x) (pow.f64 y -2)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (neg.f64 x) (/.f64 1 (*.f64 y (neg.f64 y))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 y -2) x)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 x y) (/.f64 1 y))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 1 y) (/.f64 x y))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (pow.f64 (cbrt.f64 x) 2) y) (/.f64 (cbrt.f64 x) y))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (pow.f64 (cbrt.f64 x) 2) 1) (/.f64 (cbrt.f64 x) (*.f64 y y)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (sqrt.f64 x) 1) (/.f64 (sqrt.f64 x) (*.f64 y y)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 1 (cbrt.f64 (pow.f64 y 4))) (/.f64 x (pow.f64 (cbrt.f64 y) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (pow.f64 (cbrt.f64 x) 2) (cbrt.f64 (pow.f64 y 4))) (cbrt.f64 (*.f64 x (pow.f64 y -2))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (sqrt.f64 x) (cbrt.f64 (pow.f64 y 4))) (/.f64 (sqrt.f64 x) (pow.f64 (cbrt.f64 y) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 x (pow.f64 y -2)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (*.f64 x (pow.f64 y -2)) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (*.f64 x (pow.f64 y -2))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (/.f64 (sqrt.f64 x) y) 2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (/.f64 y (/.f64 x y)) -1)))) (#(struct:change #<rule egg-rr> (2) ((x neg.f64 (/.f64 x (*.f64 y (neg.f64 y))))))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (/.f64 (*.f64 x x) (pow.f64 y 4)))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (pow.f64 (exp.f64 x) (pow.f64 y -2)))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (*.f64 x (pow.f64 y -2)) 3))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (/.f64 (pow.f64 x 3) (pow.f64 (*.f64 y y) 3)))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (*.f64 x (pow.f64 y -2))))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (*.f64 x (pow.f64 y -2))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (*.f64 x (pow.f64 y -2)))))))) |
((#(struct:change #<rule egg-rr> (2) ((x -.f64 (+.f64 1 (*.f64 (*.f64 y y) (/.f64 -1/2 x))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 y y) (/.f64 -1/2 x))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 -1/2 (/.f64 y (/.f64 x y)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 (*.f64 y y) (/.f64 -1/2 x)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (*.f64 (*.f64 y y) (/.f64 -1/2 x)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (*.f64 (*.f64 y y) (/.f64 -1/2 x))) (pow.f64 (cbrt.f64 (*.f64 (*.f64 y y) (/.f64 -1/2 x))) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (*.f64 (*.f64 y y) (/.f64 -1/2 x))) 2) (cbrt.f64 (*.f64 (*.f64 y y) (/.f64 -1/2 x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 (sqrt.f64 (/.f64 -1/2 x)) y) (*.f64 (sqrt.f64 (/.f64 -1/2 x)) y))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1/2 (/.f64 1 (*.f64 (neg.f64 x) (pow.f64 y -2))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 y (/.f64 x y)) -1/2)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 -1/2 x) (*.f64 y y))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 -1/2 (neg.f64 x)) (*.f64 y (neg.f64 y)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 -1/2 (/.f64 x y)) y)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 (/.f64 -1/2 x) y) y)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 (/.f64 -1/2 x) 1) (*.f64 y y))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 (/.f64 -1/2 x) (cbrt.f64 (pow.f64 y 4))) (pow.f64 (cbrt.f64 y) 2))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 (*.f64 y y) (/.f64 -1/2 x)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (*.f64 (*.f64 y y) (/.f64 -1/2 x)) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (*.f64 (*.f64 y y) (/.f64 -1/2 x))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 (sqrt.f64 (/.f64 -1/2 x)) y) 2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 (*.f64 x (pow.f64 y -2)) -2) -1)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (/.f64 1/4 (/.f64 (*.f64 x x) (pow.f64 y 4))))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (pow.f64 (exp.f64 -1/2) (/.f64 y (/.f64 x y))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (*.f64 (*.f64 y y) (/.f64 -1/2 x)) 3))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (*.f64 (*.f64 y y) (/.f64 -1/2 x))))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (*.f64 (*.f64 y y) (/.f64 -1/2 x))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (*.f64 (*.f64 y y) (/.f64 -1/2 x)))))))) |
| 1× | egg-herbie |
| 732× | associate-/l/_binary64 |
| 533× | associate-*l*_binary64 |
| 503× | associate-*l/_binary64 |
| 499× | associate-*r/_binary64 |
| 486× | *-commutative_binary64 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 9 | 408 |
| 1 | 17 | 408 |
| 2 | 32 | 408 |
| 3 | 65 | 408 |
| 4 | 174 | 408 |
| 5 | 635 | 408 |
| 6 | 2696 | 408 |
| 7 | 3826 | 408 |
| 8 | 4036 | 408 |
| 9 | 4256 | 408 |
| 10 | 4484 | 408 |
| 11 | 4820 | 408 |
| 12 | 6434 | 408 |
| 13 | 7111 | 408 |
| 14 | 7944 | 408 |
| 1× | node limit |
| Inputs |
|---|
(/.f64 x (pow.f64 y 2)) |
(/.f64 x (pow.f64 y 2)) |
(/.f64 x (pow.f64 y 2)) |
(/.f64 x (pow.f64 y 2)) |
(/.f64 x (pow.f64 y 2)) |
(/.f64 x (pow.f64 y 2)) |
(/.f64 x (pow.f64 y 2)) |
(/.f64 x (pow.f64 y 2)) |
(/.f64 x (pow.f64 y 2)) |
(/.f64 x (pow.f64 y 2)) |
(/.f64 x (pow.f64 y 2)) |
(/.f64 x (pow.f64 y 2)) |
(/.f64 x (pow.f64 y 2)) |
(/.f64 x (pow.f64 y 2)) |
(/.f64 x (pow.f64 y 2)) |
(/.f64 x (pow.f64 y 2)) |
(/.f64 x (pow.f64 y 2)) |
(/.f64 x (pow.f64 y 2)) |
(/.f64 x (pow.f64 y 2)) |
(/.f64 x (pow.f64 y 2)) |
(/.f64 x (pow.f64 y 2)) |
(/.f64 x (pow.f64 y 2)) |
(/.f64 x (pow.f64 y 2)) |
(/.f64 x (pow.f64 y 2)) |
(*.f64 -1/2 (/.f64 (pow.f64 y 2) x)) |
(*.f64 -1/2 (/.f64 (pow.f64 y 2) x)) |
(*.f64 -1/2 (/.f64 (pow.f64 y 2) x)) |
(*.f64 -1/2 (/.f64 (pow.f64 y 2) x)) |
(*.f64 -1/2 (/.f64 (pow.f64 y 2) x)) |
(*.f64 -1/2 (/.f64 (pow.f64 y 2) x)) |
(*.f64 -1/2 (/.f64 (pow.f64 y 2) x)) |
(*.f64 -1/2 (/.f64 (pow.f64 y 2) x)) |
(*.f64 -1/2 (/.f64 (pow.f64 y 2) x)) |
(*.f64 -1/2 (/.f64 (pow.f64 y 2) x)) |
(*.f64 -1/2 (/.f64 (pow.f64 y 2) x)) |
(*.f64 -1/2 (/.f64 (pow.f64 y 2) x)) |
(*.f64 -1/2 (/.f64 (pow.f64 y 2) x)) |
(*.f64 -1/2 (/.f64 (pow.f64 y 2) x)) |
(*.f64 -1/2 (/.f64 (pow.f64 y 2) x)) |
(*.f64 -1/2 (/.f64 (pow.f64 y 2) x)) |
(*.f64 -1/2 (/.f64 (pow.f64 y 2) x)) |
(*.f64 -1/2 (/.f64 (pow.f64 y 2) x)) |
(*.f64 -1/2 (/.f64 (pow.f64 y 2) x)) |
(*.f64 -1/2 (/.f64 (pow.f64 y 2) x)) |
(*.f64 -1/2 (/.f64 (pow.f64 y 2) x)) |
(*.f64 -1/2 (/.f64 (pow.f64 y 2) x)) |
(*.f64 -1/2 (/.f64 (pow.f64 y 2) x)) |
(*.f64 -1/2 (/.f64 (pow.f64 y 2) x)) |
| Outputs |
|---|
(/.f64 x (pow.f64 y 2)) |
(/.f64 x (*.f64 y y)) |
(/.f64 x (pow.f64 y 2)) |
(/.f64 x (*.f64 y y)) |
(/.f64 x (pow.f64 y 2)) |
(/.f64 x (*.f64 y y)) |
(/.f64 x (pow.f64 y 2)) |
(/.f64 x (*.f64 y y)) |
(/.f64 x (pow.f64 y 2)) |
(/.f64 x (*.f64 y y)) |
(/.f64 x (pow.f64 y 2)) |
(/.f64 x (*.f64 y y)) |
(/.f64 x (pow.f64 y 2)) |
(/.f64 x (*.f64 y y)) |
(/.f64 x (pow.f64 y 2)) |
(/.f64 x (*.f64 y y)) |
(/.f64 x (pow.f64 y 2)) |
(/.f64 x (*.f64 y y)) |
(/.f64 x (pow.f64 y 2)) |
(/.f64 x (*.f64 y y)) |
(/.f64 x (pow.f64 y 2)) |
(/.f64 x (*.f64 y y)) |
(/.f64 x (pow.f64 y 2)) |
(/.f64 x (*.f64 y y)) |
(/.f64 x (pow.f64 y 2)) |
(/.f64 x (*.f64 y y)) |
(/.f64 x (pow.f64 y 2)) |
(/.f64 x (*.f64 y y)) |
(/.f64 x (pow.f64 y 2)) |
(/.f64 x (*.f64 y y)) |
(/.f64 x (pow.f64 y 2)) |
(/.f64 x (*.f64 y y)) |
(/.f64 x (pow.f64 y 2)) |
(/.f64 x (*.f64 y y)) |
(/.f64 x (pow.f64 y 2)) |
(/.f64 x (*.f64 y y)) |
(/.f64 x (pow.f64 y 2)) |
(/.f64 x (*.f64 y y)) |
(/.f64 x (pow.f64 y 2)) |
(/.f64 x (*.f64 y y)) |
(/.f64 x (pow.f64 y 2)) |
(/.f64 x (*.f64 y y)) |
(/.f64 x (pow.f64 y 2)) |
(/.f64 x (*.f64 y y)) |
(/.f64 x (pow.f64 y 2)) |
(/.f64 x (*.f64 y y)) |
(/.f64 x (pow.f64 y 2)) |
(/.f64 x (*.f64 y y)) |
(*.f64 -1/2 (/.f64 (pow.f64 y 2) x)) |
(/.f64 (*.f64 -1/2 (*.f64 y y)) x) |
(/.f64 (*.f64 (*.f64 y y) -1/2) x) |
(*.f64 -1/2 (/.f64 y (/.f64 x y))) |
(*.f64 -1/2 (*.f64 y (/.f64 y x))) |
(*.f64 y (/.f64 (*.f64 y -1/2) x)) |
(*.f64 y (/.f64 -1/2 (/.f64 x y))) |
(*.f64 -1/2 (/.f64 (pow.f64 y 2) x)) |
(/.f64 (*.f64 -1/2 (*.f64 y y)) x) |
(/.f64 (*.f64 (*.f64 y y) -1/2) x) |
(*.f64 -1/2 (/.f64 y (/.f64 x y))) |
(*.f64 -1/2 (*.f64 y (/.f64 y x))) |
(*.f64 y (/.f64 (*.f64 y -1/2) x)) |
(*.f64 y (/.f64 -1/2 (/.f64 x y))) |
(*.f64 -1/2 (/.f64 (pow.f64 y 2) x)) |
(/.f64 (*.f64 -1/2 (*.f64 y y)) x) |
(/.f64 (*.f64 (*.f64 y y) -1/2) x) |
(*.f64 -1/2 (/.f64 y (/.f64 x y))) |
(*.f64 -1/2 (*.f64 y (/.f64 y x))) |
(*.f64 y (/.f64 (*.f64 y -1/2) x)) |
(*.f64 y (/.f64 -1/2 (/.f64 x y))) |
(*.f64 -1/2 (/.f64 (pow.f64 y 2) x)) |
(/.f64 (*.f64 -1/2 (*.f64 y y)) x) |
(/.f64 (*.f64 (*.f64 y y) -1/2) x) |
(*.f64 -1/2 (/.f64 y (/.f64 x y))) |
(*.f64 -1/2 (*.f64 y (/.f64 y x))) |
(*.f64 y (/.f64 (*.f64 y -1/2) x)) |
(*.f64 y (/.f64 -1/2 (/.f64 x y))) |
(*.f64 -1/2 (/.f64 (pow.f64 y 2) x)) |
(/.f64 (*.f64 -1/2 (*.f64 y y)) x) |
(/.f64 (*.f64 (*.f64 y y) -1/2) x) |
(*.f64 -1/2 (/.f64 y (/.f64 x y))) |
(*.f64 -1/2 (*.f64 y (/.f64 y x))) |
(*.f64 y (/.f64 (*.f64 y -1/2) x)) |
(*.f64 y (/.f64 -1/2 (/.f64 x y))) |
(*.f64 -1/2 (/.f64 (pow.f64 y 2) x)) |
(/.f64 (*.f64 -1/2 (*.f64 y y)) x) |
(/.f64 (*.f64 (*.f64 y y) -1/2) x) |
(*.f64 -1/2 (/.f64 y (/.f64 x y))) |
(*.f64 -1/2 (*.f64 y (/.f64 y x))) |
(*.f64 y (/.f64 (*.f64 y -1/2) x)) |
(*.f64 y (/.f64 -1/2 (/.f64 x y))) |
(*.f64 -1/2 (/.f64 (pow.f64 y 2) x)) |
(/.f64 (*.f64 -1/2 (*.f64 y y)) x) |
(/.f64 (*.f64 (*.f64 y y) -1/2) x) |
(*.f64 -1/2 (/.f64 y (/.f64 x y))) |
(*.f64 -1/2 (*.f64 y (/.f64 y x))) |
(*.f64 y (/.f64 (*.f64 y -1/2) x)) |
(*.f64 y (/.f64 -1/2 (/.f64 x y))) |
(*.f64 -1/2 (/.f64 (pow.f64 y 2) x)) |
(/.f64 (*.f64 -1/2 (*.f64 y y)) x) |
(/.f64 (*.f64 (*.f64 y y) -1/2) x) |
(*.f64 -1/2 (/.f64 y (/.f64 x y))) |
(*.f64 -1/2 (*.f64 y (/.f64 y x))) |
(*.f64 y (/.f64 (*.f64 y -1/2) x)) |
(*.f64 y (/.f64 -1/2 (/.f64 x y))) |
(*.f64 -1/2 (/.f64 (pow.f64 y 2) x)) |
(/.f64 (*.f64 -1/2 (*.f64 y y)) x) |
(/.f64 (*.f64 (*.f64 y y) -1/2) x) |
(*.f64 -1/2 (/.f64 y (/.f64 x y))) |
(*.f64 -1/2 (*.f64 y (/.f64 y x))) |
(*.f64 y (/.f64 (*.f64 y -1/2) x)) |
(*.f64 y (/.f64 -1/2 (/.f64 x y))) |
(*.f64 -1/2 (/.f64 (pow.f64 y 2) x)) |
(/.f64 (*.f64 -1/2 (*.f64 y y)) x) |
(/.f64 (*.f64 (*.f64 y y) -1/2) x) |
(*.f64 -1/2 (/.f64 y (/.f64 x y))) |
(*.f64 -1/2 (*.f64 y (/.f64 y x))) |
(*.f64 y (/.f64 (*.f64 y -1/2) x)) |
(*.f64 y (/.f64 -1/2 (/.f64 x y))) |
(*.f64 -1/2 (/.f64 (pow.f64 y 2) x)) |
(/.f64 (*.f64 -1/2 (*.f64 y y)) x) |
(/.f64 (*.f64 (*.f64 y y) -1/2) x) |
(*.f64 -1/2 (/.f64 y (/.f64 x y))) |
(*.f64 -1/2 (*.f64 y (/.f64 y x))) |
(*.f64 y (/.f64 (*.f64 y -1/2) x)) |
(*.f64 y (/.f64 -1/2 (/.f64 x y))) |
(*.f64 -1/2 (/.f64 (pow.f64 y 2) x)) |
(/.f64 (*.f64 -1/2 (*.f64 y y)) x) |
(/.f64 (*.f64 (*.f64 y y) -1/2) x) |
(*.f64 -1/2 (/.f64 y (/.f64 x y))) |
(*.f64 -1/2 (*.f64 y (/.f64 y x))) |
(*.f64 y (/.f64 (*.f64 y -1/2) x)) |
(*.f64 y (/.f64 -1/2 (/.f64 x y))) |
(*.f64 -1/2 (/.f64 (pow.f64 y 2) x)) |
(/.f64 (*.f64 -1/2 (*.f64 y y)) x) |
(/.f64 (*.f64 (*.f64 y y) -1/2) x) |
(*.f64 -1/2 (/.f64 y (/.f64 x y))) |
(*.f64 -1/2 (*.f64 y (/.f64 y x))) |
(*.f64 y (/.f64 (*.f64 y -1/2) x)) |
(*.f64 y (/.f64 -1/2 (/.f64 x y))) |
(*.f64 -1/2 (/.f64 (pow.f64 y 2) x)) |
(/.f64 (*.f64 -1/2 (*.f64 y y)) x) |
(/.f64 (*.f64 (*.f64 y y) -1/2) x) |
(*.f64 -1/2 (/.f64 y (/.f64 x y))) |
(*.f64 -1/2 (*.f64 y (/.f64 y x))) |
(*.f64 y (/.f64 (*.f64 y -1/2) x)) |
(*.f64 y (/.f64 -1/2 (/.f64 x y))) |
(*.f64 -1/2 (/.f64 (pow.f64 y 2) x)) |
(/.f64 (*.f64 -1/2 (*.f64 y y)) x) |
(/.f64 (*.f64 (*.f64 y y) -1/2) x) |
(*.f64 -1/2 (/.f64 y (/.f64 x y))) |
(*.f64 -1/2 (*.f64 y (/.f64 y x))) |
(*.f64 y (/.f64 (*.f64 y -1/2) x)) |
(*.f64 y (/.f64 -1/2 (/.f64 x y))) |
(*.f64 -1/2 (/.f64 (pow.f64 y 2) x)) |
(/.f64 (*.f64 -1/2 (*.f64 y y)) x) |
(/.f64 (*.f64 (*.f64 y y) -1/2) x) |
(*.f64 -1/2 (/.f64 y (/.f64 x y))) |
(*.f64 -1/2 (*.f64 y (/.f64 y x))) |
(*.f64 y (/.f64 (*.f64 y -1/2) x)) |
(*.f64 y (/.f64 -1/2 (/.f64 x y))) |
(*.f64 -1/2 (/.f64 (pow.f64 y 2) x)) |
(/.f64 (*.f64 -1/2 (*.f64 y y)) x) |
(/.f64 (*.f64 (*.f64 y y) -1/2) x) |
(*.f64 -1/2 (/.f64 y (/.f64 x y))) |
(*.f64 -1/2 (*.f64 y (/.f64 y x))) |
(*.f64 y (/.f64 (*.f64 y -1/2) x)) |
(*.f64 y (/.f64 -1/2 (/.f64 x y))) |
(*.f64 -1/2 (/.f64 (pow.f64 y 2) x)) |
(/.f64 (*.f64 -1/2 (*.f64 y y)) x) |
(/.f64 (*.f64 (*.f64 y y) -1/2) x) |
(*.f64 -1/2 (/.f64 y (/.f64 x y))) |
(*.f64 -1/2 (*.f64 y (/.f64 y x))) |
(*.f64 y (/.f64 (*.f64 y -1/2) x)) |
(*.f64 y (/.f64 -1/2 (/.f64 x y))) |
(*.f64 -1/2 (/.f64 (pow.f64 y 2) x)) |
(/.f64 (*.f64 -1/2 (*.f64 y y)) x) |
(/.f64 (*.f64 (*.f64 y y) -1/2) x) |
(*.f64 -1/2 (/.f64 y (/.f64 x y))) |
(*.f64 -1/2 (*.f64 y (/.f64 y x))) |
(*.f64 y (/.f64 (*.f64 y -1/2) x)) |
(*.f64 y (/.f64 -1/2 (/.f64 x y))) |
(*.f64 -1/2 (/.f64 (pow.f64 y 2) x)) |
(/.f64 (*.f64 -1/2 (*.f64 y y)) x) |
(/.f64 (*.f64 (*.f64 y y) -1/2) x) |
(*.f64 -1/2 (/.f64 y (/.f64 x y))) |
(*.f64 -1/2 (*.f64 y (/.f64 y x))) |
(*.f64 y (/.f64 (*.f64 y -1/2) x)) |
(*.f64 y (/.f64 -1/2 (/.f64 x y))) |
(*.f64 -1/2 (/.f64 (pow.f64 y 2) x)) |
(/.f64 (*.f64 -1/2 (*.f64 y y)) x) |
(/.f64 (*.f64 (*.f64 y y) -1/2) x) |
(*.f64 -1/2 (/.f64 y (/.f64 x y))) |
(*.f64 -1/2 (*.f64 y (/.f64 y x))) |
(*.f64 y (/.f64 (*.f64 y -1/2) x)) |
(*.f64 y (/.f64 -1/2 (/.f64 x y))) |
(*.f64 -1/2 (/.f64 (pow.f64 y 2) x)) |
(/.f64 (*.f64 -1/2 (*.f64 y y)) x) |
(/.f64 (*.f64 (*.f64 y y) -1/2) x) |
(*.f64 -1/2 (/.f64 y (/.f64 x y))) |
(*.f64 -1/2 (*.f64 y (/.f64 y x))) |
(*.f64 y (/.f64 (*.f64 y -1/2) x)) |
(*.f64 y (/.f64 -1/2 (/.f64 x y))) |
(*.f64 -1/2 (/.f64 (pow.f64 y 2) x)) |
(/.f64 (*.f64 -1/2 (*.f64 y y)) x) |
(/.f64 (*.f64 (*.f64 y y) -1/2) x) |
(*.f64 -1/2 (/.f64 y (/.f64 x y))) |
(*.f64 -1/2 (*.f64 y (/.f64 y x))) |
(*.f64 y (/.f64 (*.f64 y -1/2) x)) |
(*.f64 y (/.f64 -1/2 (/.f64 x y))) |
(*.f64 -1/2 (/.f64 (pow.f64 y 2) x)) |
(/.f64 (*.f64 -1/2 (*.f64 y y)) x) |
(/.f64 (*.f64 (*.f64 y y) -1/2) x) |
(*.f64 -1/2 (/.f64 y (/.f64 x y))) |
(*.f64 -1/2 (*.f64 y (/.f64 y x))) |
(*.f64 y (/.f64 (*.f64 y -1/2) x)) |
(*.f64 y (/.f64 -1/2 (/.f64 x y))) |
Compiled 778 to 471 computations (39.5% saved)
5 alts after pruning (2 fresh and 3 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 62 | 1 | 63 |
| Fresh | 0 | 1 | 1 |
| Picked | 1 | 0 | 1 |
| Done | 0 | 3 | 3 |
| Total | 63 | 5 | 68 |
| Status | Error | Program |
|---|---|---|
| 32.2b | y | |
| ✓ | 30.3b | (neg.f64 x) |
| ✓ | 0.0b | (hypot.f64 x y) |
| ✓ | 35.2b | (sqrt.f64 (+.f64 (*.f64 x x) (*.f64 y y))) |
| ▶ | 30.5b | (-.f64 (*.f64 (/.f64 y (/.f64 x y)) -1/2) x) |
Compiled 33 to 21 computations (36.4% saved)
Found 1 expressions with local error:
| New | Error | Program |
|---|---|---|
| ✓ | 0.1b | (/.f64 y (/.f64 x y)) |
Compiled 29 to 10 computations (65.5% saved)
6 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 1.0ms | x | @ | -inf | (/.f64 y (/.f64 x y)) |
| 0.0ms | y | @ | inf | (/.f64 y (/.f64 x y)) |
| 0.0ms | y | @ | 0 | (/.f64 y (/.f64 x y)) |
| 0.0ms | y | @ | -inf | (/.f64 y (/.f64 x y)) |
| 0.0ms | x | @ | 0 | (/.f64 y (/.f64 x y)) |
| 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 y (/.f64 x y)) |
| Outputs |
|---|
((#(struct:change #<rule egg-rr> (2) ((x -.f64 (+.f64 1 (*.f64 y (/.f64 y x))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 y (/.f64 y x))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 y (/.f64 y x)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (*.f64 y (/.f64 y x)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (*.f64 y (/.f64 y x))) (pow.f64 (cbrt.f64 (*.f64 y (/.f64 y x))) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (*.f64 y (/.f64 y x))) 2) (cbrt.f64 (*.f64 y (/.f64 y x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 y) 2) (*.f64 (cbrt.f64 y) (/.f64 y x)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (*.f64 y (/.f64 y x))) (sqrt.f64 (*.f64 y (/.f64 y x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 y) (*.f64 (sqrt.f64 y) (/.f64 y x)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (neg.f64 y) (/.f64 1 (/.f64 (neg.f64 x) y)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 y x) y)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (pow.f64 (cbrt.f64 y) 2) 1) (/.f64 (cbrt.f64 y) (/.f64 x y)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (sqrt.f64 y) 1) (/.f64 (sqrt.f64 y) (/.f64 x y)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (sqrt.f64 y) x) (/.f64 (sqrt.f64 y) (/.f64 1 y)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 1 x) (/.f64 y (/.f64 1 y)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (pow.f64 (cbrt.f64 y) 2) x) (/.f64 (cbrt.f64 y) (/.f64 1 y)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 1 (pow.f64 (cbrt.f64 (/.f64 x y)) 2)) (/.f64 y (cbrt.f64 (/.f64 x y))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (pow.f64 (cbrt.f64 y) 2) (pow.f64 (cbrt.f64 (/.f64 x y)) 2)) (cbrt.f64 (*.f64 y (/.f64 y x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (sqrt.f64 y) (pow.f64 (cbrt.f64 (/.f64 x y)) 2)) (/.f64 (sqrt.f64 y) (cbrt.f64 (/.f64 x y))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 1 (sqrt.f64 (/.f64 x y))) (/.f64 y (sqrt.f64 (/.f64 x y))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 (pow.f64 (cbrt.f64 y) 2) (sqrt.f64 (/.f64 x y))) (/.f64 (cbrt.f64 y) (sqrt.f64 (/.f64 x y))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 y 1) (/.f64 y x))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (/.f64 y (neg.f64 x)) (neg.f64 y))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 (/.f64 y x) 1) y)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 (/.f64 y x) (pow.f64 (cbrt.f64 y) 2)) (cbrt.f64 y))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 (/.f64 y x) (sqrt.f64 y)) (sqrt.f64 y))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 y (/.f64 y x)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (*.f64 y (/.f64 y x)) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (*.f64 y (/.f64 y x))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (*.f64 y (/.f64 y x))) 2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (/.f64 x (*.f64 y y)) -1)))) (#(struct:change #<rule egg-rr> (2) ((x neg.f64 (/.f64 y (/.f64 (neg.f64 x) y)))))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (*.f64 y (/.f64 y x)) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (pow.f64 (exp.f64 y) (/.f64 y x)))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (*.f64 y (/.f64 y x)) 3))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (*.f64 y (/.f64 y x))))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (*.f64 y (/.f64 y x))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (*.f64 y (/.f64 y x)))))))) |
| 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 y 2) x) |
(/.f64 (pow.f64 y 2) x) |
(/.f64 (pow.f64 y 2) x) |
(/.f64 (pow.f64 y 2) x) |
(/.f64 (pow.f64 y 2) x) |
(/.f64 (pow.f64 y 2) x) |
(/.f64 (pow.f64 y 2) x) |
(/.f64 (pow.f64 y 2) x) |
(/.f64 (pow.f64 y 2) x) |
(/.f64 (pow.f64 y 2) x) |
(/.f64 (pow.f64 y 2) x) |
(/.f64 (pow.f64 y 2) x) |
(/.f64 (pow.f64 y 2) x) |
(/.f64 (pow.f64 y 2) x) |
(/.f64 (pow.f64 y 2) x) |
(/.f64 (pow.f64 y 2) x) |
(/.f64 (pow.f64 y 2) x) |
(/.f64 (pow.f64 y 2) x) |
(/.f64 (pow.f64 y 2) x) |
(/.f64 (pow.f64 y 2) x) |
(/.f64 (pow.f64 y 2) x) |
(/.f64 (pow.f64 y 2) x) |
(/.f64 (pow.f64 y 2) x) |
(/.f64 (pow.f64 y 2) x) |
| Outputs |
|---|
(/.f64 (pow.f64 y 2) x) |
(/.f64 (*.f64 y y) x) |
(/.f64 y (/.f64 x y)) |
(*.f64 (/.f64 y x) y) |
(*.f64 y (/.f64 y x)) |
(/.f64 (pow.f64 y 2) x) |
(/.f64 (*.f64 y y) x) |
(/.f64 y (/.f64 x y)) |
(*.f64 (/.f64 y x) y) |
(*.f64 y (/.f64 y x)) |
(/.f64 (pow.f64 y 2) x) |
(/.f64 (*.f64 y y) x) |
(/.f64 y (/.f64 x y)) |
(*.f64 (/.f64 y x) y) |
(*.f64 y (/.f64 y x)) |
(/.f64 (pow.f64 y 2) x) |
(/.f64 (*.f64 y y) x) |
(/.f64 y (/.f64 x y)) |
(*.f64 (/.f64 y x) y) |
(*.f64 y (/.f64 y x)) |
(/.f64 (pow.f64 y 2) x) |
(/.f64 (*.f64 y y) x) |
(/.f64 y (/.f64 x y)) |
(*.f64 (/.f64 y x) y) |
(*.f64 y (/.f64 y x)) |
(/.f64 (pow.f64 y 2) x) |
(/.f64 (*.f64 y y) x) |
(/.f64 y (/.f64 x y)) |
(*.f64 (/.f64 y x) y) |
(*.f64 y (/.f64 y x)) |
(/.f64 (pow.f64 y 2) x) |
(/.f64 (*.f64 y y) x) |
(/.f64 y (/.f64 x y)) |
(*.f64 (/.f64 y x) y) |
(*.f64 y (/.f64 y x)) |
(/.f64 (pow.f64 y 2) x) |
(/.f64 (*.f64 y y) x) |
(/.f64 y (/.f64 x y)) |
(*.f64 (/.f64 y x) y) |
(*.f64 y (/.f64 y x)) |
(/.f64 (pow.f64 y 2) x) |
(/.f64 (*.f64 y y) x) |
(/.f64 y (/.f64 x y)) |
(*.f64 (/.f64 y x) y) |
(*.f64 y (/.f64 y x)) |
(/.f64 (pow.f64 y 2) x) |
(/.f64 (*.f64 y y) x) |
(/.f64 y (/.f64 x y)) |
(*.f64 (/.f64 y x) y) |
(*.f64 y (/.f64 y x)) |
(/.f64 (pow.f64 y 2) x) |
(/.f64 (*.f64 y y) x) |
(/.f64 y (/.f64 x y)) |
(*.f64 (/.f64 y x) y) |
(*.f64 y (/.f64 y x)) |
(/.f64 (pow.f64 y 2) x) |
(/.f64 (*.f64 y y) x) |
(/.f64 y (/.f64 x y)) |
(*.f64 (/.f64 y x) y) |
(*.f64 y (/.f64 y x)) |
(/.f64 (pow.f64 y 2) x) |
(/.f64 (*.f64 y y) x) |
(/.f64 y (/.f64 x y)) |
(*.f64 (/.f64 y x) y) |
(*.f64 y (/.f64 y x)) |
(/.f64 (pow.f64 y 2) x) |
(/.f64 (*.f64 y y) x) |
(/.f64 y (/.f64 x y)) |
(*.f64 (/.f64 y x) y) |
(*.f64 y (/.f64 y x)) |
(/.f64 (pow.f64 y 2) x) |
(/.f64 (*.f64 y y) x) |
(/.f64 y (/.f64 x y)) |
(*.f64 (/.f64 y x) y) |
(*.f64 y (/.f64 y x)) |
(/.f64 (pow.f64 y 2) x) |
(/.f64 (*.f64 y y) x) |
(/.f64 y (/.f64 x y)) |
(*.f64 (/.f64 y x) y) |
(*.f64 y (/.f64 y x)) |
(/.f64 (pow.f64 y 2) x) |
(/.f64 (*.f64 y y) x) |
(/.f64 y (/.f64 x y)) |
(*.f64 (/.f64 y x) y) |
(*.f64 y (/.f64 y x)) |
(/.f64 (pow.f64 y 2) x) |
(/.f64 (*.f64 y y) x) |
(/.f64 y (/.f64 x y)) |
(*.f64 (/.f64 y x) y) |
(*.f64 y (/.f64 y x)) |
(/.f64 (pow.f64 y 2) x) |
(/.f64 (*.f64 y y) x) |
(/.f64 y (/.f64 x y)) |
(*.f64 (/.f64 y x) y) |
(*.f64 y (/.f64 y x)) |
(/.f64 (pow.f64 y 2) x) |
(/.f64 (*.f64 y y) x) |
(/.f64 y (/.f64 x y)) |
(*.f64 (/.f64 y x) y) |
(*.f64 y (/.f64 y x)) |
(/.f64 (pow.f64 y 2) x) |
(/.f64 (*.f64 y y) x) |
(/.f64 y (/.f64 x y)) |
(*.f64 (/.f64 y x) y) |
(*.f64 y (/.f64 y x)) |
(/.f64 (pow.f64 y 2) x) |
(/.f64 (*.f64 y y) x) |
(/.f64 y (/.f64 x y)) |
(*.f64 (/.f64 y x) y) |
(*.f64 y (/.f64 y x)) |
(/.f64 (pow.f64 y 2) x) |
(/.f64 (*.f64 y y) x) |
(/.f64 y (/.f64 x y)) |
(*.f64 (/.f64 y x) y) |
(*.f64 y (/.f64 y x)) |
(/.f64 (pow.f64 y 2) x) |
(/.f64 (*.f64 y y) x) |
(/.f64 y (/.f64 x y)) |
(*.f64 (/.f64 y x) y) |
(*.f64 y (/.f64 y x)) |
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 |
|---|---|---|
| 32.2b | y | |
| ✓ | 30.3b | (neg.f64 x) |
| ✓ | 0.0b | (hypot.f64 x y) |
| ✓ | 35.2b | (sqrt.f64 (+.f64 (*.f64 x x) (*.f64 y y))) |
| ✓ | 30.5b | (-.f64 (*.f64 (/.f64 y (/.f64 x y)) -1/2) x) |
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 |
|---|---|---|
| 32.2b | y | |
| ✓ | 30.3b | (neg.f64 x) |
| ✓ | 0.0b | (hypot.f64 x y) |
| ✓ | 35.2b | (sqrt.f64 (+.f64 (*.f64 x x) (*.f64 y y))) |
| ✓ | 30.5b | (-.f64 (*.f64 (/.f64 y (/.f64 x y)) -1/2) x) |
Compiled 33 to 21 computations (36.4% saved)
| Inputs |
|---|
y |
(neg.f64 x) |
(-.f64 (*.f64 (/.f64 y (/.f64 x y)) -1/2) x) |
(-.f64 (/.f64 -1/2 (/.f64 x (*.f64 y y))) x) |
(hypot.f64 x y) |
(sqrt.f64 (+.f64 (*.f64 x x) (*.f64 y y))) |
| Outputs |
|---|
(hypot.f64 x y) |
8 calls:
| 47.0ms | y |
| 5.0ms | x |
| 4.0ms | (*.f64 x x) |
| 4.0ms | (+.f64 (*.f64 x x) (*.f64 y y)) |
| 4.0ms | (sqrt.f64 (+.f64 (*.f64 x x) (*.f64 y y))) |
| Error | Segments | Branch |
|---|---|---|
| 0.0b | 1 | x |
| 0.0b | 1 | y |
| 0.0b | 1 | (sqrt.f64 (+.f64 (*.f64 x x) (*.f64 y y))) |
| 0.0b | 1 | (+.f64 (*.f64 x x) (*.f64 y y)) |
| 0.0b | 1 | (*.f64 x x) |
| 0.0b | 1 | (*.f64 x x) |
| 0.0b | 1 | (*.f64 y y) |
| 0.0b | 1 | (*.f64 y y) |
Compiled 79 to 44 computations (44.3% saved)
| Inputs |
|---|
y |
(neg.f64 x) |
(-.f64 (*.f64 (/.f64 y (/.f64 x y)) -1/2) x) |
(-.f64 (/.f64 -1/2 (/.f64 x (*.f64 y y))) x) |
| Outputs |
|---|
(-.f64 (*.f64 (/.f64 y (/.f64 x y)) -1/2) x) |
y |
(neg.f64 x) |
y |
(neg.f64 x) |
y |
4 calls:
| 22.0ms | x |
| 12.0ms | y |
| 9.0ms | (*.f64 y y) |
| 8.0ms | (*.f64 y y) |
| Error | Segments | Branch |
|---|---|---|
| 9.7b | 6 | x |
| 9.9b | 2 | y |
| 17.0b | 2 | (*.f64 y y) |
| 17.0b | 2 | (*.f64 y y) |
Compiled 39 to 23 computations (41% saved)
| 5× | binary-search |
| Time | Left | Right |
|---|---|---|
| 18.0ms | -1.618986003622812e-205 | -8.226565693299523e-210 |
| 19.0ms | -3.4550455850610005e-177 | -7.176526133203662e-183 |
| 18.0ms | -5.962936472060393e-101 | -3.8994085034543956e-103 |
| 18.0ms | -3.295502009220733e-49 | -1.465229708125514e-53 |
| 21.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 |
|---|
y |
(neg.f64 x) |
| Outputs |
|---|
(neg.f64 x) |
y |
(neg.f64 x) |
y |
(neg.f64 x) |
y |
2 calls:
| 18.0ms | x |
| 9.0ms | y |
| Error | Segments | Branch |
|---|---|---|
| 9.8b | 6 | x |
| 9.9b | 2 | y |
Compiled 11 to 7 computations (36.4% saved)
| 5× | binary-search |
| Time | Left | Right |
|---|---|---|
| 20.0ms | -1.618986003622812e-205 | -8.226565693299523e-210 |
| 20.0ms | -3.4550455850610005e-177 | -7.176526133203662e-183 |
| 22.0ms | -5.962936472060393e-101 | -3.8994085034543956e-103 |
| 18.0ms | -3.295502009220733e-49 | -1.465229708125514e-53 |
| 18.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 x y) |
(if (<=.f64 x -7486702128610473/748288838313422294120286634350736906063837462003712) (-.f64 (*.f64 (/.f64 y (/.f64 x y)) -1/2) x) (if (<=.f64 x -2169105429933563/6582018229284824168619876730229402019930943462534319453394436096) y (if (<=.f64 x -4699033196416605/78804012392788958424558080200287227610159478540930893335896586808491443542994421222828532509769831281613255980613632) (neg.f64 x) (if (<=.f64 x -7881720156509275/2281220308811097609320585802850145662446614253624279965289596258949637583604338693252956405658685699889321154786797203655344352360687718999126330659861107094125997337180132475041437096123301888) y (if (<=.f64 x -3657631258547243/22592111669665739975592870737637022906810831294812620197467215446901550642889587999246991367961839975767182923986271972624986374927027127581012424707895568851446368731861728964581056579941628221790058875830676242925879296) (neg.f64 x) y))))) |
(if (<=.f64 x -7486702128610473/748288838313422294120286634350736906063837462003712) (neg.f64 x) (if (<=.f64 x -2169105429933563/6582018229284824168619876730229402019930943462534319453394436096) y (if (<=.f64 x -4699033196416605/78804012392788958424558080200287227610159478540930893335896586808491443542994421222828532509769831281613255980613632) (neg.f64 x) (if (<=.f64 x -7881720156509275/2281220308811097609320585802850145662446614253624279965289596258949637583604338693252956405658685699889321154786797203655344352360687718999126330659861107094125997337180132475041437096123301888) y (if (<=.f64 x -3657631258547243/22592111669665739975592870737637022906810831294812620197467215446901550642889587999246991367961839975767182923986271972624986374927027127581012424707895568851446368731861728964581056579941628221790058875830676242925879296) (neg.f64 x) y))))) |
y |
| Outputs |
|---|
(hypot.f64 x y) |
(if (<=.f64 x -7486702128610473/748288838313422294120286634350736906063837462003712) (-.f64 (*.f64 (/.f64 y (/.f64 x y)) -1/2) x) (if (<=.f64 x -2169105429933563/6582018229284824168619876730229402019930943462534319453394436096) y (if (<=.f64 x -4699033196416605/78804012392788958424558080200287227610159478540930893335896586808491443542994421222828532509769831281613255980613632) (neg.f64 x) (if (<=.f64 x -7881720156509275/2281220308811097609320585802850145662446614253624279965289596258949637583604338693252956405658685699889321154786797203655344352360687718999126330659861107094125997337180132475041437096123301888) y (if (<=.f64 x -3657631258547243/22592111669665739975592870737637022906810831294812620197467215446901550642889587999246991367961839975767182923986271972624986374927027127581012424707895568851446368731861728964581056579941628221790058875830676242925879296) (neg.f64 x) y))))) |
(if (<=.f64 x -7486702128610473/748288838313422294120286634350736906063837462003712) (neg.f64 x) (if (<=.f64 x -2169105429933563/6582018229284824168619876730229402019930943462534319453394436096) y (if (<=.f64 x -4699033196416605/78804012392788958424558080200287227610159478540930893335896586808491443542994421222828532509769831281613255980613632) (neg.f64 x) (if (<=.f64 x -7881720156509275/2281220308811097609320585802850145662446614253624279965289596258949637583604338693252956405658685699889321154786797203655344352360687718999126330659861107094125997337180132475041437096123301888) y (if (<=.f64 x -3657631258547243/22592111669665739975592870737637022906810831294812620197467215446901550642889587999246991367961839975767182923986271972624986374927027127581012424707895568851446368731861728964581056579941628221790058875830676242925879296) (neg.f64 x) y))))) |
y |
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 x y)
Compiled 81 to 45 computations (44.4% saved)
Loading profile data...