Time bar (total: 3.6s)
| 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 |
| 12.5% | 87.4% | 0.1% | 5 |
| 25% | 68.7% | 6.3% | 6 |
| 34.3% | 53.1% | 12.6% | 7 |
| 46.8% | 39% | 14.1% | 8 |
| 53.1% | 28.9% | 18% | 9 |
| 60.1% | 20.7% | 19.2% | 10 |
| 63.6% | 15% | 21.4% | 11 |
| 67.3% | 10.6% | 22% | 12 |
Compiled 9 to 6 computations (33.3% saved)
| 1.1s | 8256× | body | 256 | valid |
| 26.0ms | 320× | body | 256 | invalid |
| 2× | egg-herbie |
| 2× | +-commutative_binary64 |
| 2× | fma-def_binary64 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 9 | 14 |
| 1 | 13 | 14 |
| 0 | 2 | 2 |
| 1× | saturated |
| 1× | saturated |
| Inputs |
|---|
0 |
1 |
| Outputs |
|---|
0 |
1 |
| Inputs |
|---|
(sqrt.f64 (+.f64 (*.f64 x x) y)) |
(sqrt.f64 (+.f64 (*.f64 y y) x)) |
| Outputs |
|---|
(sqrt.f64 (+.f64 (*.f64 x x) y)) |
(sqrt.f64 (fma.f64 x x y)) |
(sqrt.f64 (+.f64 (*.f64 y y) x)) |
(sqrt.f64 (fma.f64 y y x)) |
Compiled 10 to 7 computations (30% saved)
| 1× | egg-herbie |
| 1× | +-commutative_binary64 |
| 1× | fma-def_binary64 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 6 | 7 |
| 1 | 8 | 7 |
| 1× | saturated |
| Inputs |
|---|
(sqrt.f64 (+.f64 (*.f64 x x) y)) |
| Outputs |
|---|
(sqrt.f64 (+.f64 (*.f64 x x) y)) |
(sqrt.f64 (fma.f64 x 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 |
|---|---|---|
| ▶ | 20.0b | (sqrt.f64 (fma.f64 x x y)) |
| ▶ | 20.0b | (sqrt.f64 (+.f64 (*.f64 x x) y)) |
Compiled 15 to 9 computations (40% saved)
Found 2 expressions with local error:
| New | Error | Program |
|---|---|---|
| ✓ | 0.0b | (+.f64 (*.f64 x x) y) |
| ✓ | 18.6b | (sqrt.f64 (+.f64 (*.f64 x x) y)) |
Compiled 18 to 5 computations (72.2% saved)
12 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 7.0ms | y | @ | inf | (sqrt.f64 (+.f64 (*.f64 x x) y)) |
| 1.0ms | x | @ | 0 | (sqrt.f64 (+.f64 (*.f64 x x) y)) |
| 1.0ms | x | @ | inf | (sqrt.f64 (+.f64 (*.f64 x x) y)) |
| 1.0ms | y | @ | -inf | (sqrt.f64 (+.f64 (*.f64 x x) y)) |
| 1.0ms | y | @ | 0 | (sqrt.f64 (+.f64 (*.f64 x x) y)) |
| 1× | batch-egg-rewrite |
| 662× | pow1_binary64 |
| 619× | add-log-exp_binary64 |
| 619× | log1p-expm1-u_binary64 |
| 619× | expm1-log1p-u_binary64 |
| 602× | add-exp-log_binary64 |
Useful iterations: 1 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 6 | 12 |
| 1 | 130 | 11 |
| 2 | 1751 | 11 |
| 1× | node limit |
| Inputs |
|---|
(sqrt.f64 (+.f64 (*.f64 x x) y)) |
(+.f64 (*.f64 x x) y) |
| Outputs |
|---|
((#(struct:change #<rule egg-rr> (2) ((x -.f64 (+.f64 1 (hypot.f64 x (sqrt.f64 y))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (hypot.f64 x (sqrt.f64 y)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (hypot.f64 x (sqrt.f64 y)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (hypot.f64 x (sqrt.f64 y))) (cbrt.f64 (fma.f64 x x y)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (fma.f64 x x y)) (cbrt.f64 (hypot.f64 x (sqrt.f64 y))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (fma.f64 x x y) 1/4) (pow.f64 (fma.f64 x x y) 1/4))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (pow.f64 (cbrt.f64 (fma.f64 x x y)) 2)) (sqrt.f64 (cbrt.f64 (fma.f64 x x y))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 1 1/2) (hypot.f64 x (sqrt.f64 y)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (pow.f64 (cbrt.f64 (fma.f64 x x y)) 2) 1/2) (pow.f64 (cbrt.f64 (fma.f64 x x y)) 1/2))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (sqrt.f64 (-.f64 (pow.f64 x 4) (*.f64 y y))) (sqrt.f64 (-.f64 (*.f64 x x) y)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (sqrt.f64 (+.f64 (pow.f64 x 6) (pow.f64 y 3))) (sqrt.f64 (+.f64 (pow.f64 x 4) (*.f64 y (-.f64 y (*.f64 x x))))))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (fma.f64 x x y) 1/2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (hypot.f64 x (sqrt.f64 y)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (fma.f64 x x y) 3/2) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (hypot.f64 x (sqrt.f64 y))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (fma.f64 x x y) 1/4) 2)))) (#(struct:change #<rule egg-rr> (2) ((x fabs.f64 (hypot.f64 x (sqrt.f64 y)))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (hypot.f64 x (sqrt.f64 y))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (fma.f64 x x y) 3/2))))) (#(struct:change #<rule egg-rr> (2) ((x hypot.f64 x (sqrt.f64 y))))) (#(struct:change #<rule egg-rr> (2) ((x hypot.f64 (sqrt.f64 y) x)))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (hypot.f64 x (sqrt.f64 y))))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (hypot.f64 x (sqrt.f64 y))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (hypot.f64 x (sqrt.f64 y)))))))) |
((#(struct:change #<rule egg-rr> (2) ((x -.f64 (+.f64 1 (fma.f64 x x y)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (/.f64 (pow.f64 x 4) (-.f64 (*.f64 x x) y)) (/.f64 (*.f64 y y) (-.f64 (*.f64 x x) y)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (fma.f64 x x y) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (hypot.f64 x (sqrt.f64 y)) (hypot.f64 x (sqrt.f64 y)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (fma.f64 x x y))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (fma.f64 x x y)) (pow.f64 (cbrt.f64 (fma.f64 x x y)) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (fma.f64 x x y)) (*.f64 (cbrt.f64 (hypot.f64 x (sqrt.f64 y))) (hypot.f64 x (sqrt.f64 y))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (fma.f64 x x y)) 2) (cbrt.f64 (fma.f64 x x y)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (fma.f64 x x y) 1/4) (*.f64 (pow.f64 (fma.f64 x x y) 1/4) (hypot.f64 x (sqrt.f64 y))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (+.f64 (pow.f64 x 6) (pow.f64 y 3)) (/.f64 1 (+.f64 (pow.f64 x 4) (*.f64 y (-.f64 y (*.f64 x x))))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (-.f64 (pow.f64 x 4) (*.f64 y y)) (/.f64 1 (-.f64 (*.f64 x x) y)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 (hypot.f64 x (sqrt.f64 y)) (pow.f64 (fma.f64 x x y) 1/4)) (pow.f64 (fma.f64 x x y) 1/4))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 (hypot.f64 x (sqrt.f64 y)) (cbrt.f64 (fma.f64 x x y))) (cbrt.f64 (hypot.f64 x (sqrt.f64 y))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (/.f64 (+.f64 (pow.f64 x 4) (*.f64 y (-.f64 y (*.f64 x x)))) (+.f64 (pow.f64 x 6) (pow.f64 y 3))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (/.f64 (-.f64 (*.f64 x x) y) (-.f64 (pow.f64 x 4) (*.f64 y y))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 (pow.f64 x 6) (pow.f64 y 3)) (+.f64 (pow.f64 x 4) (*.f64 y (-.f64 y (*.f64 x x)))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 (pow.f64 x 6) (pow.f64 y 3)) (+.f64 (*.f64 y y) (-.f64 (pow.f64 x 4) (*.f64 (*.f64 x x) y))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (pow.f64 x 4) (*.f64 y y)) (-.f64 (*.f64 x x) y))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (+.f64 (pow.f64 x 6) (pow.f64 y 3))) (neg.f64 (+.f64 (pow.f64 x 4) (*.f64 y (-.f64 y (*.f64 x x))))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (-.f64 (pow.f64 x 4) (*.f64 y y))) (neg.f64 (-.f64 (*.f64 x x) y)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (*.f64 y y) (pow.f64 x 4)) (-.f64 y (*.f64 x x)))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (fma.f64 x x y) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (hypot.f64 x (sqrt.f64 y)) 2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (fma.f64 x x y) 2) 1/2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (fma.f64 x x y) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (fma.f64 x x y)) 3)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (fma.f64 x x y) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (fma.f64 x x y)))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (fma.f64 x x y) 3))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (fma.f64 x x y)))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (fma.f64 x x y)))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (fma.f64 x x y)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 x x y)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 1 (*.f64 x x) y)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 1 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) y)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (pow.f64 (cbrt.f64 y) 2) (cbrt.f64 y) (*.f64 x x))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (sqrt.f64 y) (sqrt.f64 y) (*.f64 x x)))))) |
| 1× | egg-herbie |
| 759× | times-frac_binary64 |
| 599× | associate-/l*_binary64 |
| 502× | unswap-sqr_binary64 |
| 498× | fma-neg_binary64 |
| 427× | cancel-sign-sub-inv_binary64 |
Useful iterations: 3 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 60 | 454 |
| 1 | 161 | 416 |
| 2 | 444 | 416 |
| 3 | 1586 | 414 |
| 4 | 5763 | 414 |
| 1× | node limit |
| Inputs |
|---|
(sqrt.f64 y) |
(+.f64 (*.f64 1/2 (*.f64 (sqrt.f64 (/.f64 1 y)) (pow.f64 x 2))) (sqrt.f64 y)) |
(+.f64 (*.f64 -1/8 (*.f64 (sqrt.f64 (/.f64 1 (pow.f64 y 3))) (pow.f64 x 4))) (+.f64 (*.f64 1/2 (*.f64 (sqrt.f64 (/.f64 1 y)) (pow.f64 x 2))) (sqrt.f64 y))) |
(+.f64 (*.f64 1/16 (*.f64 (sqrt.f64 (/.f64 1 (pow.f64 y 5))) (pow.f64 x 6))) (+.f64 (*.f64 -1/8 (*.f64 (sqrt.f64 (/.f64 1 (pow.f64 y 3))) (pow.f64 x 4))) (+.f64 (*.f64 1/2 (*.f64 (sqrt.f64 (/.f64 1 y)) (pow.f64 x 2))) (sqrt.f64 y)))) |
x |
(+.f64 (*.f64 1/2 (/.f64 y x)) x) |
(+.f64 (*.f64 1/2 (/.f64 y x)) (+.f64 (*.f64 -1/8 (/.f64 (pow.f64 y 2) (pow.f64 x 3))) x)) |
(+.f64 (*.f64 1/16 (/.f64 (pow.f64 y 3) (pow.f64 x 5))) (+.f64 (*.f64 1/2 (/.f64 y x)) (+.f64 (*.f64 -1/8 (/.f64 (pow.f64 y 2) (pow.f64 x 3))) x))) |
(*.f64 -1 x) |
(+.f64 (*.f64 -1/2 (/.f64 y x)) (*.f64 -1 x)) |
(+.f64 (*.f64 -1/2 (/.f64 y x)) (+.f64 (*.f64 -1 x) (*.f64 1/8 (/.f64 (pow.f64 y 2) (pow.f64 x 3))))) |
(+.f64 (*.f64 -1/2 (/.f64 y x)) (+.f64 (*.f64 -1/16 (/.f64 (pow.f64 y 3) (pow.f64 x 5))) (+.f64 (*.f64 -1 x) (*.f64 1/8 (/.f64 (pow.f64 y 2) (pow.f64 x 3)))))) |
x |
(+.f64 (*.f64 1/2 (/.f64 y x)) x) |
(+.f64 (*.f64 1/2 (/.f64 y x)) (+.f64 (*.f64 -1/8 (/.f64 (pow.f64 y 2) (pow.f64 x 3))) x)) |
(+.f64 (*.f64 1/16 (/.f64 (pow.f64 y 3) (pow.f64 x 5))) (+.f64 (*.f64 1/2 (/.f64 y x)) (+.f64 (*.f64 -1/8 (/.f64 (pow.f64 y 2) (pow.f64 x 3))) x))) |
y |
(+.f64 y (pow.f64 x 2)) |
(+.f64 y (pow.f64 x 2)) |
(+.f64 y (pow.f64 x 2)) |
(pow.f64 x 2) |
(+.f64 y (pow.f64 x 2)) |
(+.f64 y (pow.f64 x 2)) |
(+.f64 y (pow.f64 x 2)) |
(pow.f64 x 2) |
(+.f64 y (pow.f64 x 2)) |
(+.f64 y (pow.f64 x 2)) |
(+.f64 y (pow.f64 x 2)) |
(pow.f64 x 2) |
(+.f64 y (pow.f64 x 2)) |
(+.f64 y (pow.f64 x 2)) |
(+.f64 y (pow.f64 x 2)) |
y |
(+.f64 y (pow.f64 x 2)) |
(+.f64 y (pow.f64 x 2)) |
(+.f64 y (pow.f64 x 2)) |
y |
(+.f64 y (pow.f64 x 2)) |
(+.f64 y (pow.f64 x 2)) |
(+.f64 y (pow.f64 x 2)) |
| Outputs |
|---|
(sqrt.f64 y) |
(+.f64 (*.f64 1/2 (*.f64 (sqrt.f64 (/.f64 1 y)) (pow.f64 x 2))) (sqrt.f64 y)) |
(fma.f64 1/2 (*.f64 (sqrt.f64 (/.f64 1 y)) (*.f64 x x)) (sqrt.f64 y)) |
(+.f64 (*.f64 -1/8 (*.f64 (sqrt.f64 (/.f64 1 (pow.f64 y 3))) (pow.f64 x 4))) (+.f64 (*.f64 1/2 (*.f64 (sqrt.f64 (/.f64 1 y)) (pow.f64 x 2))) (sqrt.f64 y))) |
(fma.f64 -1/8 (*.f64 (sqrt.f64 (/.f64 1 (pow.f64 y 3))) (pow.f64 x 4)) (fma.f64 1/2 (*.f64 (sqrt.f64 (/.f64 1 y)) (*.f64 x x)) (sqrt.f64 y))) |
(fma.f64 (sqrt.f64 (/.f64 1 y)) (*.f64 1/2 (*.f64 x x)) (fma.f64 (sqrt.f64 (/.f64 1 (pow.f64 y 3))) (*.f64 -1/8 (pow.f64 x 4)) (sqrt.f64 y))) |
(+.f64 (*.f64 1/16 (*.f64 (sqrt.f64 (/.f64 1 (pow.f64 y 5))) (pow.f64 x 6))) (+.f64 (*.f64 -1/8 (*.f64 (sqrt.f64 (/.f64 1 (pow.f64 y 3))) (pow.f64 x 4))) (+.f64 (*.f64 1/2 (*.f64 (sqrt.f64 (/.f64 1 y)) (pow.f64 x 2))) (sqrt.f64 y)))) |
(fma.f64 1/16 (*.f64 (sqrt.f64 (/.f64 1 (pow.f64 y 5))) (pow.f64 x 6)) (fma.f64 -1/8 (*.f64 (sqrt.f64 (/.f64 1 (pow.f64 y 3))) (pow.f64 x 4)) (fma.f64 1/2 (*.f64 (sqrt.f64 (/.f64 1 y)) (*.f64 x x)) (sqrt.f64 y)))) |
(fma.f64 (sqrt.f64 (/.f64 1 (pow.f64 y 5))) (*.f64 1/16 (pow.f64 x 6)) (fma.f64 (sqrt.f64 (/.f64 1 y)) (*.f64 1/2 (*.f64 x x)) (fma.f64 (sqrt.f64 (/.f64 1 (pow.f64 y 3))) (*.f64 -1/8 (pow.f64 x 4)) (sqrt.f64 y)))) |
(fma.f64 (sqrt.f64 (/.f64 1 (pow.f64 y 3))) (*.f64 -1/8 (pow.f64 x 4)) (fma.f64 (sqrt.f64 (/.f64 1 (pow.f64 y 5))) (*.f64 1/16 (pow.f64 x 6)) (fma.f64 1/2 (*.f64 (sqrt.f64 (/.f64 1 y)) (*.f64 x x)) (sqrt.f64 y)))) |
x |
(+.f64 (*.f64 1/2 (/.f64 y x)) x) |
(fma.f64 1/2 (/.f64 y x) x) |
(+.f64 (*.f64 1/2 (/.f64 y x)) (+.f64 (*.f64 -1/8 (/.f64 (pow.f64 y 2) (pow.f64 x 3))) x)) |
(fma.f64 1/2 (/.f64 y x) (fma.f64 -1/8 (/.f64 (*.f64 y y) (pow.f64 x 3)) x)) |
(fma.f64 1/2 (/.f64 y x) (fma.f64 -1/8 (/.f64 y (/.f64 (pow.f64 x 3) y)) x)) |
(fma.f64 1/2 (/.f64 y x) (fma.f64 -1/8 (*.f64 y (/.f64 y (pow.f64 x 3))) x)) |
(fma.f64 -1/8 (*.f64 y (/.f64 y (pow.f64 x 3))) (fma.f64 1/2 (/.f64 y x) x)) |
(+.f64 (*.f64 1/16 (/.f64 (pow.f64 y 3) (pow.f64 x 5))) (+.f64 (*.f64 1/2 (/.f64 y x)) (+.f64 (*.f64 -1/8 (/.f64 (pow.f64 y 2) (pow.f64 x 3))) x))) |
(fma.f64 1/16 (/.f64 (pow.f64 y 3) (pow.f64 x 5)) (fma.f64 1/2 (/.f64 y x) (fma.f64 -1/8 (/.f64 (*.f64 y y) (pow.f64 x 3)) x))) |
(fma.f64 1/16 (/.f64 (pow.f64 y 3) (pow.f64 x 5)) (fma.f64 1/2 (/.f64 y x) (fma.f64 -1/8 (/.f64 y (/.f64 (pow.f64 x 3) y)) x))) |
(fma.f64 1/2 (/.f64 y x) (fma.f64 1/16 (/.f64 (pow.f64 y 3) (pow.f64 x 5)) (fma.f64 -1/8 (/.f64 y (/.f64 (pow.f64 x 3) y)) x))) |
(fma.f64 1/2 (/.f64 y x) (fma.f64 1/16 (/.f64 (pow.f64 y 3) (pow.f64 x 5)) (fma.f64 -1/8 (*.f64 y (/.f64 y (pow.f64 x 3))) x))) |
(fma.f64 1/16 (/.f64 (pow.f64 y 3) (pow.f64 x 5)) (fma.f64 -1/8 (*.f64 y (/.f64 y (pow.f64 x 3))) (fma.f64 1/2 (/.f64 y x) x))) |
(*.f64 -1 x) |
(neg.f64 x) |
(+.f64 (*.f64 -1/2 (/.f64 y x)) (*.f64 -1 x)) |
(fma.f64 -1/2 (/.f64 y x) (neg.f64 x)) |
(-.f64 (*.f64 (/.f64 y x) -1/2) x) |
(+.f64 (*.f64 -1/2 (/.f64 y x)) (+.f64 (*.f64 -1 x) (*.f64 1/8 (/.f64 (pow.f64 y 2) (pow.f64 x 3))))) |
(fma.f64 -1/2 (/.f64 y x) (fma.f64 -1 x (*.f64 (/.f64 (*.f64 y y) (pow.f64 x 3)) 1/8))) |
(fma.f64 (/.f64 y x) -1/2 (-.f64 (*.f64 (/.f64 y (/.f64 (pow.f64 x 3) y)) 1/8) x)) |
(-.f64 (fma.f64 (/.f64 y x) -1/2 (*.f64 (/.f64 y (/.f64 (pow.f64 x 3) y)) 1/8)) x) |
(-.f64 (*.f64 (/.f64 y x) (+.f64 -1/2 (*.f64 (/.f64 y x) (/.f64 1/8 x)))) x) |
(fma.f64 (/.f64 y x) (+.f64 -1/2 (*.f64 (/.f64 y x) (/.f64 1/8 x))) (neg.f64 x)) |
(+.f64 (*.f64 -1/2 (/.f64 y x)) (+.f64 (*.f64 -1/16 (/.f64 (pow.f64 y 3) (pow.f64 x 5))) (+.f64 (*.f64 -1 x) (*.f64 1/8 (/.f64 (pow.f64 y 2) (pow.f64 x 3)))))) |
(fma.f64 -1/2 (/.f64 y x) (fma.f64 -1/16 (/.f64 (pow.f64 y 3) (pow.f64 x 5)) (fma.f64 -1 x (*.f64 (/.f64 (*.f64 y y) (pow.f64 x 3)) 1/8)))) |
(fma.f64 (/.f64 y x) -1/2 (fma.f64 (/.f64 (pow.f64 y 3) (pow.f64 x 5)) -1/16 (-.f64 (*.f64 (/.f64 y (/.f64 (pow.f64 x 3) y)) 1/8) x))) |
(fma.f64 (/.f64 y x) -1/2 (fma.f64 (/.f64 y (/.f64 (pow.f64 x 3) y)) 1/8 (-.f64 (/.f64 (*.f64 (pow.f64 y 3) -1/16) (pow.f64 x 5)) x))) |
(fma.f64 (/.f64 (pow.f64 y 3) (pow.f64 x 5)) -1/16 (-.f64 (*.f64 (/.f64 y x) (+.f64 -1/2 (*.f64 (/.f64 y x) (/.f64 1/8 x)))) x)) |
(fma.f64 (pow.f64 y 3) (/.f64 -1/16 (pow.f64 x 5)) (fma.f64 (/.f64 y x) (+.f64 -1/2 (*.f64 (/.f64 y x) (/.f64 1/8 x))) (neg.f64 x))) |
x |
(+.f64 (*.f64 1/2 (/.f64 y x)) x) |
(fma.f64 1/2 (/.f64 y x) x) |
(+.f64 (*.f64 1/2 (/.f64 y x)) (+.f64 (*.f64 -1/8 (/.f64 (pow.f64 y 2) (pow.f64 x 3))) x)) |
(fma.f64 1/2 (/.f64 y x) (fma.f64 -1/8 (/.f64 (*.f64 y y) (pow.f64 x 3)) x)) |
(fma.f64 1/2 (/.f64 y x) (fma.f64 -1/8 (/.f64 y (/.f64 (pow.f64 x 3) y)) x)) |
(fma.f64 1/2 (/.f64 y x) (fma.f64 -1/8 (*.f64 y (/.f64 y (pow.f64 x 3))) x)) |
(fma.f64 -1/8 (*.f64 y (/.f64 y (pow.f64 x 3))) (fma.f64 1/2 (/.f64 y x) x)) |
(+.f64 (*.f64 1/16 (/.f64 (pow.f64 y 3) (pow.f64 x 5))) (+.f64 (*.f64 1/2 (/.f64 y x)) (+.f64 (*.f64 -1/8 (/.f64 (pow.f64 y 2) (pow.f64 x 3))) x))) |
(fma.f64 1/16 (/.f64 (pow.f64 y 3) (pow.f64 x 5)) (fma.f64 1/2 (/.f64 y x) (fma.f64 -1/8 (/.f64 (*.f64 y y) (pow.f64 x 3)) x))) |
(fma.f64 1/16 (/.f64 (pow.f64 y 3) (pow.f64 x 5)) (fma.f64 1/2 (/.f64 y x) (fma.f64 -1/8 (/.f64 y (/.f64 (pow.f64 x 3) y)) x))) |
(fma.f64 1/2 (/.f64 y x) (fma.f64 1/16 (/.f64 (pow.f64 y 3) (pow.f64 x 5)) (fma.f64 -1/8 (/.f64 y (/.f64 (pow.f64 x 3) y)) x))) |
(fma.f64 1/2 (/.f64 y x) (fma.f64 1/16 (/.f64 (pow.f64 y 3) (pow.f64 x 5)) (fma.f64 -1/8 (*.f64 y (/.f64 y (pow.f64 x 3))) x))) |
(fma.f64 1/16 (/.f64 (pow.f64 y 3) (pow.f64 x 5)) (fma.f64 -1/8 (*.f64 y (/.f64 y (pow.f64 x 3))) (fma.f64 1/2 (/.f64 y x) x))) |
y |
(+.f64 y (pow.f64 x 2)) |
(+.f64 y (*.f64 x x)) |
(fma.f64 x x y) |
(+.f64 y (pow.f64 x 2)) |
(+.f64 y (*.f64 x x)) |
(fma.f64 x x y) |
(+.f64 y (pow.f64 x 2)) |
(+.f64 y (*.f64 x x)) |
(fma.f64 x x y) |
(pow.f64 x 2) |
(*.f64 x x) |
(+.f64 y (pow.f64 x 2)) |
(+.f64 y (*.f64 x x)) |
(fma.f64 x x y) |
(+.f64 y (pow.f64 x 2)) |
(+.f64 y (*.f64 x x)) |
(fma.f64 x x y) |
(+.f64 y (pow.f64 x 2)) |
(+.f64 y (*.f64 x x)) |
(fma.f64 x x y) |
(pow.f64 x 2) |
(*.f64 x x) |
(+.f64 y (pow.f64 x 2)) |
(+.f64 y (*.f64 x x)) |
(fma.f64 x x y) |
(+.f64 y (pow.f64 x 2)) |
(+.f64 y (*.f64 x x)) |
(fma.f64 x x y) |
(+.f64 y (pow.f64 x 2)) |
(+.f64 y (*.f64 x x)) |
(fma.f64 x x y) |
(pow.f64 x 2) |
(*.f64 x x) |
(+.f64 y (pow.f64 x 2)) |
(+.f64 y (*.f64 x x)) |
(fma.f64 x x y) |
(+.f64 y (pow.f64 x 2)) |
(+.f64 y (*.f64 x x)) |
(fma.f64 x x y) |
(+.f64 y (pow.f64 x 2)) |
(+.f64 y (*.f64 x x)) |
(fma.f64 x x y) |
y |
(+.f64 y (pow.f64 x 2)) |
(+.f64 y (*.f64 x x)) |
(fma.f64 x x y) |
(+.f64 y (pow.f64 x 2)) |
(+.f64 y (*.f64 x x)) |
(fma.f64 x x y) |
(+.f64 y (pow.f64 x 2)) |
(+.f64 y (*.f64 x x)) |
(fma.f64 x x y) |
y |
(+.f64 y (pow.f64 x 2)) |
(+.f64 y (*.f64 x x)) |
(fma.f64 x x y) |
(+.f64 y (pow.f64 x 2)) |
(+.f64 y (*.f64 x x)) |
(fma.f64 x x y) |
(+.f64 y (pow.f64 x 2)) |
(+.f64 y (*.f64 x x)) |
(fma.f64 x x y) |
Found 1 expressions with local error:
| New | Error | Program |
|---|---|---|
| ✓ | 18.6b | (sqrt.f64 (fma.f64 x x y)) |
Compiled 13 to 4 computations (69.2% saved)
6 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 1.0ms | x | @ | 0 | (sqrt.f64 (fma.f64 x x y)) |
| 0.0ms | y | @ | -inf | (sqrt.f64 (fma.f64 x x y)) |
| 0.0ms | x | @ | inf | (sqrt.f64 (fma.f64 x x y)) |
| 0.0ms | x | @ | -inf | (sqrt.f64 (fma.f64 x x y)) |
| 0.0ms | y | @ | 0 | (sqrt.f64 (fma.f64 x x y)) |
| 1× | batch-egg-rewrite |
| 439× | pow1_binary64 |
| 421× | add-sqr-sqrt_binary64 |
| 414× | *-un-lft-identity_binary64 |
| 404× | add-log-exp_binary64 |
| 404× | log1p-expm1-u_binary64 |
Useful iterations: 1 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 5 | 7 |
| 1 | 98 | 6 |
| 2 | 1121 | 6 |
| 1× | node limit |
| Inputs |
|---|
(sqrt.f64 (fma.f64 x x y)) |
| Outputs |
|---|
((#(struct:change #<rule egg-rr> (2) ((x +.f64 0 (hypot.f64 x (sqrt.f64 y)))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (log.f64 (sqrt.f64 (exp.f64 (hypot.f64 x (sqrt.f64 y))))) (log.f64 (sqrt.f64 (exp.f64 (hypot.f64 x (sqrt.f64 y))))))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (log.f64 (*.f64 (cbrt.f64 (exp.f64 (hypot.f64 x (sqrt.f64 y)))) (cbrt.f64 (exp.f64 (hypot.f64 x (sqrt.f64 y)))))) (log.f64 (cbrt.f64 (exp.f64 (hypot.f64 x (sqrt.f64 y))))))))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (+.f64 1 (hypot.f64 x (sqrt.f64 y))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (hypot.f64 x (sqrt.f64 y)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (hypot.f64 x (sqrt.f64 y)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (hypot.f64 x (sqrt.f64 y))) (cbrt.f64 (fma.f64 x x y)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (fma.f64 x x y)) (cbrt.f64 (hypot.f64 x (sqrt.f64 y))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (fma.f64 x x y) 1/4) (pow.f64 (fma.f64 x x y) 1/4))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (pow.f64 (cbrt.f64 (fma.f64 x x y)) 2)) (sqrt.f64 (cbrt.f64 (fma.f64 x x y))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 1 1/2) (hypot.f64 x (sqrt.f64 y)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (pow.f64 (cbrt.f64 (fma.f64 x x y)) 2) 1/2) (pow.f64 (cbrt.f64 (fma.f64 x x y)) 1/2))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (fma.f64 x x y) 1/2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (hypot.f64 x (sqrt.f64 y)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (fma.f64 x x y) 3/2) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (hypot.f64 x (sqrt.f64 y))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (fma.f64 x x y) 1/4) 2)))) (#(struct:change #<rule egg-rr> (2) ((x fabs.f64 (hypot.f64 x (sqrt.f64 y)))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (hypot.f64 x (sqrt.f64 y))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (fma.f64 x x y) 3/2))))) (#(struct:change #<rule egg-rr> (2) ((x hypot.f64 x (sqrt.f64 y))))) (#(struct:change #<rule egg-rr> (2) ((x hypot.f64 (sqrt.f64 y) x)))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (hypot.f64 x (sqrt.f64 y))))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (hypot.f64 x (sqrt.f64 y))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (hypot.f64 x (sqrt.f64 y)))))))) |
| 1× | egg-herbie |
| 759× | times-frac_binary64 |
| 598× | associate-/l*_binary64 |
| 502× | unswap-sqr_binary64 |
| 498× | fma-neg_binary64 |
| 427× | cancel-sign-sub-inv_binary64 |
Useful iterations: 3 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 59 | 313 |
| 1 | 159 | 311 |
| 2 | 440 | 311 |
| 3 | 1580 | 309 |
| 4 | 5737 | 309 |
| 1× | node limit |
| Inputs |
|---|
(sqrt.f64 y) |
(+.f64 (*.f64 1/2 (*.f64 (sqrt.f64 (/.f64 1 y)) (pow.f64 x 2))) (sqrt.f64 y)) |
(+.f64 (*.f64 -1/8 (*.f64 (sqrt.f64 (/.f64 1 (pow.f64 y 3))) (pow.f64 x 4))) (+.f64 (*.f64 1/2 (*.f64 (sqrt.f64 (/.f64 1 y)) (pow.f64 x 2))) (sqrt.f64 y))) |
(+.f64 (*.f64 1/16 (*.f64 (sqrt.f64 (/.f64 1 (pow.f64 y 5))) (pow.f64 x 6))) (+.f64 (*.f64 -1/8 (*.f64 (sqrt.f64 (/.f64 1 (pow.f64 y 3))) (pow.f64 x 4))) (+.f64 (*.f64 1/2 (*.f64 (sqrt.f64 (/.f64 1 y)) (pow.f64 x 2))) (sqrt.f64 y)))) |
x |
(+.f64 (*.f64 1/2 (/.f64 y x)) x) |
(+.f64 (*.f64 1/2 (/.f64 y x)) (+.f64 (*.f64 -1/8 (/.f64 (pow.f64 y 2) (pow.f64 x 3))) x)) |
(+.f64 (*.f64 1/16 (/.f64 (pow.f64 y 3) (pow.f64 x 5))) (+.f64 (*.f64 1/2 (/.f64 y x)) (+.f64 (*.f64 -1/8 (/.f64 (pow.f64 y 2) (pow.f64 x 3))) x))) |
(*.f64 -1 x) |
(+.f64 (*.f64 -1/2 (/.f64 y x)) (*.f64 -1 x)) |
(+.f64 (*.f64 -1/2 (/.f64 y x)) (+.f64 (*.f64 -1 x) (*.f64 1/8 (/.f64 (pow.f64 y 2) (pow.f64 x 3))))) |
(+.f64 (*.f64 -1/2 (/.f64 y x)) (+.f64 (*.f64 -1/16 (/.f64 (pow.f64 y 3) (pow.f64 x 5))) (+.f64 (*.f64 -1 x) (*.f64 1/8 (/.f64 (pow.f64 y 2) (pow.f64 x 3)))))) |
x |
(+.f64 (*.f64 1/2 (/.f64 y x)) x) |
(+.f64 (*.f64 1/2 (/.f64 y x)) (+.f64 (*.f64 -1/8 (/.f64 (pow.f64 y 2) (pow.f64 x 3))) x)) |
(+.f64 (*.f64 1/16 (/.f64 (pow.f64 y 3) (pow.f64 x 5))) (+.f64 (*.f64 1/2 (/.f64 y x)) (+.f64 (*.f64 -1/8 (/.f64 (pow.f64 y 2) (pow.f64 x 3))) x))) |
| Outputs |
|---|
(sqrt.f64 y) |
(+.f64 (*.f64 1/2 (*.f64 (sqrt.f64 (/.f64 1 y)) (pow.f64 x 2))) (sqrt.f64 y)) |
(fma.f64 1/2 (*.f64 (sqrt.f64 (/.f64 1 y)) (*.f64 x x)) (sqrt.f64 y)) |
(+.f64 (*.f64 -1/8 (*.f64 (sqrt.f64 (/.f64 1 (pow.f64 y 3))) (pow.f64 x 4))) (+.f64 (*.f64 1/2 (*.f64 (sqrt.f64 (/.f64 1 y)) (pow.f64 x 2))) (sqrt.f64 y))) |
(fma.f64 -1/8 (*.f64 (sqrt.f64 (/.f64 1 (pow.f64 y 3))) (pow.f64 x 4)) (fma.f64 1/2 (*.f64 (sqrt.f64 (/.f64 1 y)) (*.f64 x x)) (sqrt.f64 y))) |
(fma.f64 1/2 (*.f64 (sqrt.f64 (/.f64 1 y)) (*.f64 x x)) (fma.f64 (sqrt.f64 (/.f64 1 (pow.f64 y 3))) (*.f64 -1/8 (pow.f64 x 4)) (sqrt.f64 y))) |
(fma.f64 (sqrt.f64 (/.f64 1 y)) (*.f64 1/2 (*.f64 x x)) (fma.f64 (sqrt.f64 (/.f64 1 (pow.f64 y 3))) (*.f64 -1/8 (pow.f64 x 4)) (sqrt.f64 y))) |
(+.f64 (*.f64 1/16 (*.f64 (sqrt.f64 (/.f64 1 (pow.f64 y 5))) (pow.f64 x 6))) (+.f64 (*.f64 -1/8 (*.f64 (sqrt.f64 (/.f64 1 (pow.f64 y 3))) (pow.f64 x 4))) (+.f64 (*.f64 1/2 (*.f64 (sqrt.f64 (/.f64 1 y)) (pow.f64 x 2))) (sqrt.f64 y)))) |
(fma.f64 1/16 (*.f64 (sqrt.f64 (/.f64 1 (pow.f64 y 5))) (pow.f64 x 6)) (fma.f64 -1/8 (*.f64 (sqrt.f64 (/.f64 1 (pow.f64 y 3))) (pow.f64 x 4)) (fma.f64 1/2 (*.f64 (sqrt.f64 (/.f64 1 y)) (*.f64 x x)) (sqrt.f64 y)))) |
(fma.f64 -1/8 (*.f64 (sqrt.f64 (/.f64 1 (pow.f64 y 3))) (pow.f64 x 4)) (fma.f64 (sqrt.f64 (/.f64 1 (pow.f64 y 5))) (*.f64 1/16 (pow.f64 x 6)) (fma.f64 1/2 (*.f64 (sqrt.f64 (/.f64 1 y)) (*.f64 x x)) (sqrt.f64 y)))) |
(fma.f64 (sqrt.f64 (/.f64 1 (pow.f64 y 3))) (*.f64 -1/8 (pow.f64 x 4)) (fma.f64 (sqrt.f64 (/.f64 1 (pow.f64 y 5))) (*.f64 1/16 (pow.f64 x 6)) (fma.f64 1/2 (*.f64 (sqrt.f64 (/.f64 1 y)) (*.f64 x x)) (sqrt.f64 y)))) |
x |
(+.f64 (*.f64 1/2 (/.f64 y x)) x) |
(fma.f64 1/2 (/.f64 y x) x) |
(+.f64 (*.f64 1/2 (/.f64 y x)) (+.f64 (*.f64 -1/8 (/.f64 (pow.f64 y 2) (pow.f64 x 3))) x)) |
(fma.f64 1/2 (/.f64 y x) (fma.f64 -1/8 (/.f64 (*.f64 y y) (pow.f64 x 3)) x)) |
(fma.f64 1/2 (/.f64 y x) (fma.f64 -1/8 (*.f64 (/.f64 y (pow.f64 x 3)) y) x)) |
(fma.f64 1/2 (/.f64 y x) (fma.f64 -1/8 (*.f64 y (/.f64 y (pow.f64 x 3))) x)) |
(+.f64 (*.f64 1/16 (/.f64 (pow.f64 y 3) (pow.f64 x 5))) (+.f64 (*.f64 1/2 (/.f64 y x)) (+.f64 (*.f64 -1/8 (/.f64 (pow.f64 y 2) (pow.f64 x 3))) x))) |
(fma.f64 1/16 (/.f64 (pow.f64 y 3) (pow.f64 x 5)) (fma.f64 1/2 (/.f64 y x) (fma.f64 -1/8 (/.f64 (*.f64 y y) (pow.f64 x 3)) x))) |
(fma.f64 1/2 (/.f64 y x) (fma.f64 1/16 (/.f64 (pow.f64 y 3) (pow.f64 x 5)) (fma.f64 -1/8 (*.f64 (/.f64 y (pow.f64 x 3)) y) x))) |
(fma.f64 1/2 (/.f64 y x) (fma.f64 1/16 (/.f64 (pow.f64 y 3) (pow.f64 x 5)) (fma.f64 -1/8 (*.f64 y (/.f64 y (pow.f64 x 3))) x))) |
(*.f64 -1 x) |
(neg.f64 x) |
(+.f64 (*.f64 -1/2 (/.f64 y x)) (*.f64 -1 x)) |
(fma.f64 -1/2 (/.f64 y x) (neg.f64 x)) |
(-.f64 (*.f64 (/.f64 y x) -1/2) x) |
(fma.f64 (/.f64 y x) -1/2 (neg.f64 x)) |
(+.f64 (*.f64 -1/2 (/.f64 y x)) (+.f64 (*.f64 -1 x) (*.f64 1/8 (/.f64 (pow.f64 y 2) (pow.f64 x 3))))) |
(fma.f64 -1/2 (/.f64 y x) (fma.f64 -1 x (*.f64 (/.f64 (*.f64 y y) (pow.f64 x 3)) 1/8))) |
(fma.f64 (/.f64 y x) -1/2 (-.f64 (*.f64 (/.f64 (*.f64 y y) (pow.f64 x 3)) 1/8) x)) |
(-.f64 (fma.f64 (/.f64 y x) -1/2 (*.f64 (*.f64 (/.f64 y (pow.f64 x 3)) y) 1/8)) x) |
(-.f64 (*.f64 (/.f64 y x) (+.f64 -1/2 (/.f64 1/8 (/.f64 x (/.f64 y x))))) x) |
(fma.f64 (/.f64 y x) (+.f64 -1/2 (/.f64 1/8 (/.f64 x (/.f64 y x)))) (neg.f64 x)) |
(+.f64 (*.f64 -1/2 (/.f64 y x)) (+.f64 (*.f64 -1/16 (/.f64 (pow.f64 y 3) (pow.f64 x 5))) (+.f64 (*.f64 -1 x) (*.f64 1/8 (/.f64 (pow.f64 y 2) (pow.f64 x 3)))))) |
(fma.f64 -1/2 (/.f64 y x) (fma.f64 -1/16 (/.f64 (pow.f64 y 3) (pow.f64 x 5)) (fma.f64 -1 x (*.f64 (/.f64 (*.f64 y y) (pow.f64 x 3)) 1/8)))) |
(fma.f64 (/.f64 y x) -1/2 (fma.f64 (/.f64 (pow.f64 y 3) (pow.f64 x 5)) -1/16 (-.f64 (*.f64 (/.f64 (*.f64 y y) (pow.f64 x 3)) 1/8) x))) |
(fma.f64 (/.f64 y x) -1/2 (-.f64 (fma.f64 (/.f64 (pow.f64 y 3) (pow.f64 x 5)) -1/16 (*.f64 (*.f64 (/.f64 y (pow.f64 x 3)) y) 1/8)) x)) |
(fma.f64 (/.f64 (pow.f64 y 3) (pow.f64 x 5)) -1/16 (-.f64 (*.f64 (/.f64 y x) (+.f64 -1/2 (/.f64 1/8 (/.f64 x (/.f64 y x))))) x)) |
(fma.f64 (pow.f64 y 3) (/.f64 -1/16 (pow.f64 x 5)) (fma.f64 (/.f64 y x) (+.f64 -1/2 (/.f64 1/8 (/.f64 x (/.f64 y x)))) (neg.f64 x))) |
x |
(+.f64 (*.f64 1/2 (/.f64 y x)) x) |
(fma.f64 1/2 (/.f64 y x) x) |
(+.f64 (*.f64 1/2 (/.f64 y x)) (+.f64 (*.f64 -1/8 (/.f64 (pow.f64 y 2) (pow.f64 x 3))) x)) |
(fma.f64 1/2 (/.f64 y x) (fma.f64 -1/8 (/.f64 (*.f64 y y) (pow.f64 x 3)) x)) |
(fma.f64 1/2 (/.f64 y x) (fma.f64 -1/8 (*.f64 (/.f64 y (pow.f64 x 3)) y) x)) |
(fma.f64 1/2 (/.f64 y x) (fma.f64 -1/8 (*.f64 y (/.f64 y (pow.f64 x 3))) x)) |
(+.f64 (*.f64 1/16 (/.f64 (pow.f64 y 3) (pow.f64 x 5))) (+.f64 (*.f64 1/2 (/.f64 y x)) (+.f64 (*.f64 -1/8 (/.f64 (pow.f64 y 2) (pow.f64 x 3))) x))) |
(fma.f64 1/16 (/.f64 (pow.f64 y 3) (pow.f64 x 5)) (fma.f64 1/2 (/.f64 y x) (fma.f64 -1/8 (/.f64 (*.f64 y y) (pow.f64 x 3)) x))) |
(fma.f64 1/2 (/.f64 y x) (fma.f64 1/16 (/.f64 (pow.f64 y 3) (pow.f64 x 5)) (fma.f64 -1/8 (*.f64 (/.f64 y (pow.f64 x 3)) y) x))) |
(fma.f64 1/2 (/.f64 y x) (fma.f64 1/16 (/.f64 (pow.f64 y 3) (pow.f64 x 5)) (fma.f64 -1/8 (*.f64 y (/.f64 y (pow.f64 x 3))) x))) |
Compiled 1630 to 805 computations (50.6% saved)
7 alts after pruning (6 fresh and 1 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 129 | 6 | 135 |
| Fresh | 0 | 0 | 0 |
| Picked | 1 | 0 | 1 |
| Done | 0 | 1 | 1 |
| Total | 130 | 7 | 137 |
| Status | Error | Program |
|---|---|---|
| ▶ | 40.0b | (neg.f64 x) |
| 43.7b | x | |
| ✓ | 20.0b | (sqrt.f64 (+.f64 (*.f64 x x) y)) |
| ▶ | 40.2b | (-.f64 (*.f64 (/.f64 y x) -1/2) x) |
| ▶ | 20.5b | (hypot.f64 (sqrt.f64 y) x) |
| ▶ | 43.8b | (+.f64 (*.f64 1/2 (/.f64 y x)) x) |
| ▶ | 41.7b | (sqrt.f64 y) |
Compiled 75 to 51 computations (32% saved)
Found 1 expressions with local error:
| New | Error | Program |
|---|---|---|
| ✓ | 0.0b | (hypot.f64 (sqrt.f64 y) x) |
Compiled 10 to 4 computations (60% saved)
6 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 2.0ms | y | @ | -inf | (hypot.f64 (sqrt.f64 y) x) |
| 2.0ms | y | @ | inf | (hypot.f64 (sqrt.f64 y) x) |
| 1.0ms | y | @ | 0 | (hypot.f64 (sqrt.f64 y) x) |
| 1.0ms | x | @ | 0 | (hypot.f64 (sqrt.f64 y) x) |
| 0.0ms | x | @ | inf | (hypot.f64 (sqrt.f64 y) x) |
| 1× | batch-egg-rewrite |
| 432× | pow1_binary64 |
| 413× | add-sqr-sqrt_binary64 |
| 406× | *-un-lft-identity_binary64 |
| 397× | add-log-exp_binary64 |
| 397× | log1p-expm1-u_binary64 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 5 | 6 |
| 1 | 99 | 6 |
| 2 | 1129 | 6 |
| 1× | node limit |
| Inputs |
|---|
(hypot.f64 (sqrt.f64 y) x) |
| Outputs |
|---|
((#(struct:change #<rule egg-rr> (2) ((x +.f64 0 (hypot.f64 (sqrt.f64 y) x))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (log.f64 (*.f64 (cbrt.f64 (exp.f64 (hypot.f64 (sqrt.f64 y) x))) (cbrt.f64 (exp.f64 (hypot.f64 (sqrt.f64 y) x))))) (log.f64 (cbrt.f64 (exp.f64 (hypot.f64 (sqrt.f64 y) x)))))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (log.f64 (sqrt.f64 (exp.f64 (hypot.f64 (sqrt.f64 y) x)))) (log.f64 (sqrt.f64 (exp.f64 (hypot.f64 (sqrt.f64 y) x)))))))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (+.f64 1 (hypot.f64 (sqrt.f64 y) x)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (hypot.f64 (sqrt.f64 y) x) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (hypot.f64 (sqrt.f64 y) x))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (hypot.f64 (sqrt.f64 y) x)) (cbrt.f64 (fma.f64 x x y)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (fma.f64 x x y)) (cbrt.f64 (hypot.f64 (sqrt.f64 y) x)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (hypot.f64 (sqrt.f64 y) x)) (sqrt.f64 (hypot.f64 (sqrt.f64 y) x)))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (hypot.f64 (sqrt.f64 y) x) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (fma.f64 x x y) 1/2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (hypot.f64 (sqrt.f64 y) x) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (hypot.f64 (sqrt.f64 y) x)) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (hypot.f64 (sqrt.f64 y) x)) 2)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (fma.f64 x x y))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (hypot.f64 (sqrt.f64 y) x)))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (hypot.f64 (sqrt.f64 y) x) 3))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (hypot.f64 (sqrt.f64 y) x)))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (hypot.f64 (sqrt.f64 y) x)))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (hypot.f64 (sqrt.f64 y) x))))))) |
| 1× | egg-herbie |
| 759× | times-frac_binary64 |
| 598× | associate-/l*_binary64 |
| 502× | unswap-sqr_binary64 |
| 498× | fma-neg_binary64 |
| 427× | cancel-sign-sub-inv_binary64 |
Useful iterations: 3 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 59 | 250 |
| 1 | 159 | 248 |
| 2 | 440 | 248 |
| 3 | 1580 | 246 |
| 4 | 5736 | 246 |
| 1× | node limit |
| Inputs |
|---|
x |
(sqrt.f64 y) |
(+.f64 (*.f64 1/2 (*.f64 (sqrt.f64 (/.f64 1 y)) (pow.f64 x 2))) (sqrt.f64 y)) |
(+.f64 (*.f64 -1/8 (*.f64 (sqrt.f64 (/.f64 1 (pow.f64 y 3))) (pow.f64 x 4))) (+.f64 (*.f64 1/2 (*.f64 (sqrt.f64 (/.f64 1 y)) (pow.f64 x 2))) (sqrt.f64 y))) |
(+.f64 (*.f64 1/16 (*.f64 (sqrt.f64 (/.f64 1 (pow.f64 y 5))) (pow.f64 x 6))) (+.f64 (*.f64 -1/8 (*.f64 (sqrt.f64 (/.f64 1 (pow.f64 y 3))) (pow.f64 x 4))) (+.f64 (*.f64 1/2 (*.f64 (sqrt.f64 (/.f64 1 y)) (pow.f64 x 2))) (sqrt.f64 y)))) |
x |
(+.f64 (*.f64 1/2 (/.f64 y x)) x) |
(+.f64 (*.f64 1/2 (/.f64 y x)) (+.f64 (*.f64 -1/8 (/.f64 (pow.f64 y 2) (pow.f64 x 3))) x)) |
(+.f64 (*.f64 1/16 (/.f64 (pow.f64 y 3) (pow.f64 x 5))) (+.f64 (*.f64 1/2 (/.f64 y x)) (+.f64 (*.f64 -1/8 (/.f64 (pow.f64 y 2) (pow.f64 x 3))) x))) |
(*.f64 -1 x) |
(+.f64 (*.f64 -1/2 (/.f64 y x)) (*.f64 -1 x)) |
(+.f64 (*.f64 -1/2 (/.f64 y x)) (+.f64 (*.f64 -1 x) (*.f64 1/8 (/.f64 (pow.f64 y 2) (pow.f64 x 3))))) |
(+.f64 (*.f64 -1/2 (/.f64 y x)) (+.f64 (*.f64 -1/16 (/.f64 (pow.f64 y 3) (pow.f64 x 5))) (+.f64 (*.f64 -1 x) (*.f64 1/8 (/.f64 (pow.f64 y 2) (pow.f64 x 3)))))) |
| Outputs |
|---|
x |
(sqrt.f64 y) |
(+.f64 (*.f64 1/2 (*.f64 (sqrt.f64 (/.f64 1 y)) (pow.f64 x 2))) (sqrt.f64 y)) |
(fma.f64 1/2 (*.f64 (sqrt.f64 (/.f64 1 y)) (*.f64 x x)) (sqrt.f64 y)) |
(fma.f64 1/2 (*.f64 x (*.f64 x (sqrt.f64 (/.f64 1 y)))) (sqrt.f64 y)) |
(fma.f64 (sqrt.f64 (/.f64 1 y)) (*.f64 x (*.f64 x 1/2)) (sqrt.f64 y)) |
(+.f64 (*.f64 -1/8 (*.f64 (sqrt.f64 (/.f64 1 (pow.f64 y 3))) (pow.f64 x 4))) (+.f64 (*.f64 1/2 (*.f64 (sqrt.f64 (/.f64 1 y)) (pow.f64 x 2))) (sqrt.f64 y))) |
(fma.f64 -1/8 (*.f64 (sqrt.f64 (/.f64 1 (pow.f64 y 3))) (pow.f64 x 4)) (fma.f64 1/2 (*.f64 (sqrt.f64 (/.f64 1 y)) (*.f64 x x)) (sqrt.f64 y))) |
(fma.f64 -1/8 (*.f64 (sqrt.f64 (/.f64 1 (pow.f64 y 3))) (pow.f64 x 4)) (fma.f64 1/2 (*.f64 x (*.f64 x (sqrt.f64 (/.f64 1 y)))) (sqrt.f64 y))) |
(fma.f64 (sqrt.f64 (/.f64 1 (pow.f64 y 3))) (*.f64 -1/8 (pow.f64 x 4)) (fma.f64 (sqrt.f64 (/.f64 1 y)) (*.f64 x (*.f64 x 1/2)) (sqrt.f64 y))) |
(fma.f64 (sqrt.f64 (/.f64 1 y)) (*.f64 x (*.f64 x 1/2)) (fma.f64 (sqrt.f64 (/.f64 1 (pow.f64 y 3))) (*.f64 -1/8 (pow.f64 x 4)) (sqrt.f64 y))) |
(+.f64 (*.f64 1/16 (*.f64 (sqrt.f64 (/.f64 1 (pow.f64 y 5))) (pow.f64 x 6))) (+.f64 (*.f64 -1/8 (*.f64 (sqrt.f64 (/.f64 1 (pow.f64 y 3))) (pow.f64 x 4))) (+.f64 (*.f64 1/2 (*.f64 (sqrt.f64 (/.f64 1 y)) (pow.f64 x 2))) (sqrt.f64 y)))) |
(fma.f64 1/16 (*.f64 (sqrt.f64 (/.f64 1 (pow.f64 y 5))) (pow.f64 x 6)) (fma.f64 -1/8 (*.f64 (sqrt.f64 (/.f64 1 (pow.f64 y 3))) (pow.f64 x 4)) (fma.f64 1/2 (*.f64 (sqrt.f64 (/.f64 1 y)) (*.f64 x x)) (sqrt.f64 y)))) |
(fma.f64 1/16 (*.f64 (sqrt.f64 (/.f64 1 (pow.f64 y 5))) (pow.f64 x 6)) (fma.f64 -1/8 (*.f64 (sqrt.f64 (/.f64 1 (pow.f64 y 3))) (pow.f64 x 4)) (fma.f64 1/2 (*.f64 x (*.f64 x (sqrt.f64 (/.f64 1 y)))) (sqrt.f64 y)))) |
(fma.f64 (sqrt.f64 (/.f64 1 (pow.f64 y 5))) (*.f64 1/16 (pow.f64 x 6)) (fma.f64 (sqrt.f64 (/.f64 1 (pow.f64 y 3))) (*.f64 -1/8 (pow.f64 x 4)) (fma.f64 (sqrt.f64 (/.f64 1 y)) (*.f64 x (*.f64 x 1/2)) (sqrt.f64 y)))) |
(fma.f64 (sqrt.f64 (/.f64 1 (pow.f64 y 3))) (*.f64 -1/8 (pow.f64 x 4)) (fma.f64 (sqrt.f64 (/.f64 1 (pow.f64 y 5))) (*.f64 1/16 (pow.f64 x 6)) (fma.f64 (sqrt.f64 (/.f64 1 y)) (*.f64 x (*.f64 x 1/2)) (sqrt.f64 y)))) |
x |
(+.f64 (*.f64 1/2 (/.f64 y x)) x) |
(fma.f64 1/2 (/.f64 y x) x) |
(+.f64 (*.f64 1/2 (/.f64 y x)) (+.f64 (*.f64 -1/8 (/.f64 (pow.f64 y 2) (pow.f64 x 3))) x)) |
(fma.f64 1/2 (/.f64 y x) (fma.f64 -1/8 (/.f64 (*.f64 y y) (pow.f64 x 3)) x)) |
(fma.f64 1/2 (/.f64 y x) (fma.f64 -1/8 (*.f64 (/.f64 y (pow.f64 x 3)) y) x)) |
(fma.f64 1/2 (/.f64 y x) (fma.f64 -1/8 (*.f64 y (/.f64 y (pow.f64 x 3))) x)) |
(+.f64 (*.f64 1/16 (/.f64 (pow.f64 y 3) (pow.f64 x 5))) (+.f64 (*.f64 1/2 (/.f64 y x)) (+.f64 (*.f64 -1/8 (/.f64 (pow.f64 y 2) (pow.f64 x 3))) x))) |
(fma.f64 1/16 (/.f64 (pow.f64 y 3) (pow.f64 x 5)) (fma.f64 1/2 (/.f64 y x) (fma.f64 -1/8 (/.f64 (*.f64 y y) (pow.f64 x 3)) x))) |
(fma.f64 1/2 (/.f64 y x) (fma.f64 1/16 (/.f64 (pow.f64 y 3) (pow.f64 x 5)) (fma.f64 -1/8 (*.f64 (/.f64 y (pow.f64 x 3)) y) x))) |
(fma.f64 1/2 (/.f64 y x) (fma.f64 1/16 (/.f64 (pow.f64 y 3) (pow.f64 x 5)) (fma.f64 -1/8 (*.f64 y (/.f64 y (pow.f64 x 3))) x))) |
(*.f64 -1 x) |
(neg.f64 x) |
(+.f64 (*.f64 -1/2 (/.f64 y x)) (*.f64 -1 x)) |
(fma.f64 -1/2 (/.f64 y x) (neg.f64 x)) |
(-.f64 (*.f64 (/.f64 y x) -1/2) x) |
(-.f64 (*.f64 y (/.f64 -1/2 x)) x) |
(fma.f64 (/.f64 y x) -1/2 (neg.f64 x)) |
(+.f64 (*.f64 -1/2 (/.f64 y x)) (+.f64 (*.f64 -1 x) (*.f64 1/8 (/.f64 (pow.f64 y 2) (pow.f64 x 3))))) |
(fma.f64 -1/2 (/.f64 y x) (fma.f64 -1 x (*.f64 (/.f64 (*.f64 y y) (pow.f64 x 3)) 1/8))) |
(fma.f64 (/.f64 y x) -1/2 (-.f64 (*.f64 (/.f64 (*.f64 y y) (pow.f64 x 3)) 1/8) x)) |
(-.f64 (fma.f64 (/.f64 y x) -1/2 (*.f64 (*.f64 (/.f64 y (pow.f64 x 3)) y) 1/8)) x) |
(-.f64 (*.f64 (/.f64 y x) (+.f64 -1/2 (*.f64 (/.f64 y x) (/.f64 1/8 x)))) x) |
(fma.f64 (/.f64 y x) (+.f64 -1/2 (/.f64 1/8 (/.f64 x (/.f64 y x)))) (neg.f64 x)) |
(+.f64 (*.f64 -1/2 (/.f64 y x)) (+.f64 (*.f64 -1/16 (/.f64 (pow.f64 y 3) (pow.f64 x 5))) (+.f64 (*.f64 -1 x) (*.f64 1/8 (/.f64 (pow.f64 y 2) (pow.f64 x 3)))))) |
(fma.f64 -1/2 (/.f64 y x) (fma.f64 -1/16 (/.f64 (pow.f64 y 3) (pow.f64 x 5)) (fma.f64 -1 x (*.f64 (/.f64 (*.f64 y y) (pow.f64 x 3)) 1/8)))) |
(fma.f64 (/.f64 y x) -1/2 (fma.f64 (/.f64 (pow.f64 y 3) (pow.f64 x 5)) -1/16 (-.f64 (*.f64 (/.f64 (*.f64 y y) (pow.f64 x 3)) 1/8) x))) |
(fma.f64 (/.f64 y x) -1/2 (-.f64 (fma.f64 (/.f64 (pow.f64 y 3) (pow.f64 x 5)) -1/16 (*.f64 (*.f64 (/.f64 y (pow.f64 x 3)) y) 1/8)) x)) |
(fma.f64 (/.f64 (pow.f64 y 3) (pow.f64 x 5)) -1/16 (-.f64 (*.f64 (/.f64 y x) (+.f64 -1/2 (*.f64 (/.f64 y x) (/.f64 1/8 x)))) x)) |
(fma.f64 (pow.f64 y 3) (/.f64 -1/16 (pow.f64 x 5)) (fma.f64 (/.f64 y x) (+.f64 -1/2 (/.f64 1/8 (/.f64 x (/.f64 y x)))) (neg.f64 x))) |
Compiled 5 to 3 computations (40% saved)
Compiled 20 to 9 computations (55% saved)
Compiled 20 to 9 computations (55% saved)
Compiled 5 to 3 computations (40% saved)
Compiled 525 to 285 computations (45.7% saved)
7 alts after pruning (1 fresh and 6 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 41 | 1 | 42 |
| Fresh | 1 | 0 | 1 |
| Picked | 0 | 1 | 1 |
| Done | 0 | 5 | 5 |
| Total | 42 | 7 | 49 |
| Status | Error | Program |
|---|---|---|
| ✓ | 40.0b | (neg.f64 x) |
| ✓ | 20.0b | (sqrt.f64 (+.f64 (*.f64 x x) y)) |
| ✓ | 40.2b | (-.f64 (*.f64 (/.f64 y x) -1/2) x) |
| 43.7b | x | |
| ✓ | 20.5b | (hypot.f64 (sqrt.f64 y) x) |
| ✓ | 43.8b | (+.f64 (*.f64 1/2 (/.f64 y x)) x) |
| ✓ | 41.7b | (sqrt.f64 y) |
Compiled 43 to 29 computations (32.6% saved)
Compiled 2 to 2 computations (0% saved)
7 alts after pruning (1 fresh and 6 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 0 | 0 | 0 |
| Fresh | 0 | 1 | 1 |
| Picked | 0 | 0 | 0 |
| Done | 0 | 6 | 6 |
| Total | 0 | 7 | 7 |
| Status | Error | Program |
|---|---|---|
| ✓ | 40.0b | (neg.f64 x) |
| ✓ | 20.0b | (sqrt.f64 (+.f64 (*.f64 x x) y)) |
| ✓ | 40.2b | (-.f64 (*.f64 (/.f64 y x) -1/2) x) |
| 43.7b | x | |
| ✓ | 20.5b | (hypot.f64 (sqrt.f64 y) x) |
| ✓ | 43.8b | (+.f64 (*.f64 1/2 (/.f64 y x)) x) |
| ✓ | 41.7b | (sqrt.f64 y) |
Compiled 43 to 29 computations (32.6% saved)
Compiled 2 to 2 computations (0% saved)
7 alts after pruning (1 fresh and 6 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 0 | 0 | 0 |
| Fresh | 0 | 1 | 1 |
| Picked | 0 | 0 | 0 |
| Done | 0 | 6 | 6 |
| Total | 0 | 7 | 7 |
| Status | Error | Program |
|---|---|---|
| ✓ | 40.0b | (neg.f64 x) |
| ✓ | 20.0b | (sqrt.f64 (+.f64 (*.f64 x x) y)) |
| ✓ | 40.2b | (-.f64 (*.f64 (/.f64 y x) -1/2) x) |
| 43.7b | x | |
| ✓ | 20.5b | (hypot.f64 (sqrt.f64 y) x) |
| ✓ | 43.8b | (+.f64 (*.f64 1/2 (/.f64 y x)) x) |
| ✓ | 41.7b | (sqrt.f64 y) |
Compiled 43 to 29 computations (32.6% saved)
| Inputs |
|---|
x |
x |
(neg.f64 x) |
(-.f64 (*.f64 (/.f64 y x) -1/2) x) |
(+.f64 (*.f64 1/2 (/.f64 y x)) x) |
(sqrt.f64 y) |
(sqrt.f64 (+.f64 (*.f64 x x) y)) |
(hypot.f64 (sqrt.f64 y) x) |
(sqrt.f64 (fma.f64 x x y)) |
| Outputs |
|---|
(neg.f64 x) |
(sqrt.f64 (fma.f64 x x y)) |
x |
6 calls:
| 112.0ms | (*.f64 x x) |
| 61.0ms | y |
| 22.0ms | x |
| 15.0ms | (*.f64 x x) |
| 13.0ms | (sqrt.f64 (+.f64 (*.f64 x x) y)) |
| Error | Segments | Branch |
|---|---|---|
| 0b | 3 | x |
| 5.2b | 3 | y |
| 8.8b | 2 | (sqrt.f64 (+.f64 (*.f64 x x) y)) |
| 8.8b | 2 | (+.f64 (*.f64 x x) y) |
| 8.8b | 2 | (*.f64 x x) |
| 8.8b | 2 | (*.f64 x x) |
Compiled 68 to 36 computations (47.1% saved)
| 2× | binary-search |
| Time | Left | Right |
|---|---|---|
| 32.0ms | 4.2405064940455596e+86 | 3.780321451447804e+87 |
| 22.0ms | -4.618988821803745e+155 | -1.205036194840004e+152 |
Compiled 13 to 9 computations (30.8% saved)
| Inputs |
|---|
x |
x |
(neg.f64 x) |
(-.f64 (*.f64 (/.f64 y x) -1/2) x) |
(+.f64 (*.f64 1/2 (/.f64 y x)) x) |
(sqrt.f64 y) |
(sqrt.f64 (+.f64 (*.f64 x x) y)) |
(hypot.f64 (sqrt.f64 y) x) |
| Outputs |
|---|
(neg.f64 x) |
(sqrt.f64 (+.f64 (*.f64 x x) y)) |
x |
6 calls:
| 103.0ms | x |
| 38.0ms | y |
| 15.0ms | (sqrt.f64 (+.f64 (*.f64 x x) y)) |
| 13.0ms | (+.f64 (*.f64 x x) y) |
| 12.0ms | (*.f64 x x) |
| Error | Segments | Branch |
|---|---|---|
| 0.0b | 3 | x |
| 5.2b | 3 | y |
| 8.8b | 2 | (sqrt.f64 (+.f64 (*.f64 x x) y)) |
| 8.8b | 2 | (+.f64 (*.f64 x x) y) |
| 8.8b | 2 | (*.f64 x x) |
| 8.8b | 2 | (*.f64 x x) |
Compiled 63 to 34 computations (46% saved)
| 2× | binary-search |
| Time | Left | Right |
|---|---|---|
| 32.0ms | 4.2405064940455596e+86 | 3.780321451447804e+87 |
| 64.0ms | -4.618988821803745e+155 | -1.205036194840004e+152 |
Compiled 13 to 9 computations (30.8% saved)
| Inputs |
|---|
x |
x |
(neg.f64 x) |
(-.f64 (*.f64 (/.f64 y x) -1/2) x) |
(+.f64 (*.f64 1/2 (/.f64 y x)) x) |
(sqrt.f64 y) |
| Outputs |
|---|
(-.f64 (*.f64 (/.f64 y x) -1/2) x) |
(sqrt.f64 y) |
(+.f64 (*.f64 1/2 (/.f64 y x)) x) |
(sqrt.f64 y) |
(+.f64 (*.f64 1/2 (/.f64 y x)) x) |
2 calls:
| 71.0ms | y |
| 58.0ms | x |
| Error | Segments | Branch |
|---|---|---|
| 5.6b | 5 | x |
| 25.0b | 6 | y |
Compiled 28 to 15 computations (46.4% saved)
| 4× | binary-search |
| Time | Left | Right |
|---|---|---|
| 96.0ms | 3.9753815869082376e+36 | 5.029145804959393e+37 |
| 134.0ms | 1.2288514348048841e+20 | 7.770298779051505e+21 |
| 88.0ms | 6.331995661450691e-57 | 1.056269867795918e-51 |
| 73.0ms | -2.303120609406091e-94 | -2.8048402946088303e-99 |
Compiled 478 to 350 computations (26.8% saved)
| Inputs |
|---|
x |
x |
(neg.f64 x) |
(-.f64 (*.f64 (/.f64 y x) -1/2) x) |
(+.f64 (*.f64 1/2 (/.f64 y x)) x) |
| Outputs |
|---|
(neg.f64 x) |
(+.f64 (*.f64 1/2 (/.f64 y x)) x) |
2 calls:
| 17.0ms | y |
| 12.0ms | x |
| Error | Segments | Branch |
|---|---|---|
| 20.4b | 2 | x |
| 36.2b | 2 | y |
Compiled 26 to 14 computations (46.2% saved)
| 1× | binary-search |
| Time | Left | Right |
|---|---|---|
| 50.0ms | 4.6026073125008665e-269 | 7.231123420675729e-255 |
Compiled 163 to 119 computations (27% saved)
| Inputs |
|---|
x |
x |
(neg.f64 x) |
(-.f64 (*.f64 (/.f64 y x) -1/2) x) |
| Outputs |
|---|
(-.f64 (*.f64 (/.f64 y x) -1/2) x) |
x |
2 calls:
| 22.0ms | x |
| 17.0ms | y |
| Error | Segments | Branch |
|---|---|---|
| 20.5b | 2 | x |
| 36.2b | 2 | y |
Compiled 19 to 11 computations (42.1% saved)
| 1× | binary-search |
| Time | Left | Right |
|---|---|---|
| 57.0ms | -7.743155243996523e-153 | -1.4479470988250633e-157 |
Compiled 125 to 89 computations (28.8% saved)
| Inputs |
|---|
x |
x |
(neg.f64 x) |
| Outputs |
|---|
(neg.f64 x) |
x |
2 calls:
| 15.0ms | y |
| 10.0ms | x |
| Error | Segments | Branch |
|---|---|---|
| 20.5b | 2 | x |
| 36.3b | 2 | y |
Compiled 12 to 7 computations (41.7% saved)
| 1× | binary-search |
| Time | Left | Right |
|---|---|---|
| 36.0ms | -2.5994692718385035e-304 | 6.99145857544507e-304 |
Compiled 94 to 72 computations (23.4% saved)
Total 0.0b remaining (0%)
Threshold costs 0.0b (0%)
| Inputs |
|---|
x |
x |
| Outputs |
|---|
x |
2 calls:
| 5.0ms | x |
| 4.0ms | y |
| Error | Segments | Branch |
|---|---|---|
| 43.7b | 1 | x |
| 43.7b | 1 | y |
Compiled 10 to 6 computations (40% saved)
| 1× | egg-herbie |
| 4× | +-commutative_binary64 |
| 3× | *-commutative_binary64 |
| 2× | sub-neg_binary64 |
| 1× | neg-sub0_binary64 |
| 1× | neg-mul-1_binary64 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 47 | 155 |
| 1 | 55 | 155 |
| 2 | 58 | 155 |
| 3 | 59 | 155 |
| 1× | fuel |
| 1× | saturated |
| Inputs |
|---|
(if (<=.f64 x -461898882180374491305081930954147208907610703403346851104600231989952547873995861176039816674140037742753948221034974536095772696598478181570329021331275776) (neg.f64 x) (if (<=.f64 x 424050649404555962079885449986528389786092231668027316455562713318732517490200009506816) (sqrt.f64 (fma.f64 x x y)) x)) |
(if (<=.f64 x -461898882180374491305081930954147208907610703403346851104600231989952547873995861176039816674140037742753948221034974536095772696598478181570329021331275776) (neg.f64 x) (if (<=.f64 x 424050649404555962079885449986528389786092231668027316455562713318732517490200009506816) (sqrt.f64 (+.f64 (*.f64 x x) y)) x)) |
(if (<=.f64 x -112295717659724272/39402006196394479212279040100143613805079739270465446667948293404245721771497210611414266254884915640806627990306816) (-.f64 (*.f64 (/.f64 y x) -1/2) x) (if (<=.f64 x 5742252960529749/883423532389192164791648750371459257913741948437809479060803100646309888) (sqrt.f64 y) (if (<=.f64 x 7600000000000000000000) (+.f64 (*.f64 1/2 (/.f64 y x)) x) (if (<=.f64 x 4000000000000000169682549496071847936) (sqrt.f64 y) (+.f64 (*.f64 1/2 (/.f64 y x)) x))))) |
(if (<=.f64 x 3803720624176790/528294531135665246352339784916516606518847326036121522127960709026673902556724859474417255887657187894674394993257128678882347559502685537250538978462939576908386683999005084168731517676426441053024232908211188404148028292751561738838396898767036476489538580897737998336) (neg.f64 x) (+.f64 (*.f64 1/2 (/.f64 y x)) x)) |
(if (<=.f64 x -3538089773270195/471745303102692669030194322623533611364615152552055053547025787530703020299018606510765840647207345942683546878845480612471323078740599079070179281429087005456174415872) (-.f64 (*.f64 (/.f64 y x) -1/2) x) x) |
(if (<=.f64 x 0) (neg.f64 x) x) |
x |
| Outputs |
|---|
(if (<=.f64 x -461898882180374491305081930954147208907610703403346851104600231989952547873995861176039816674140037742753948221034974536095772696598478181570329021331275776) (neg.f64 x) (if (<=.f64 x 424050649404555962079885449986528389786092231668027316455562713318732517490200009506816) (sqrt.f64 (fma.f64 x x y)) x)) |
(if (<=.f64 x -461898882180374491305081930954147208907610703403346851104600231989952547873995861176039816674140037742753948221034974536095772696598478181570329021331275776) (neg.f64 x) (if (<=.f64 x 424050649404555962079885449986528389786092231668027316455562713318732517490200009506816) (sqrt.f64 (+.f64 (*.f64 x x) y)) x)) |
(if (<=.f64 x -461898882180374491305081930954147208907610703403346851104600231989952547873995861176039816674140037742753948221034974536095772696598478181570329021331275776) (neg.f64 x) (if (<=.f64 x 424050649404555962079885449986528389786092231668027316455562713318732517490200009506816) (sqrt.f64 (+.f64 y (*.f64 x x))) x)) |
(if (<=.f64 x -112295717659724272/39402006196394479212279040100143613805079739270465446667948293404245721771497210611414266254884915640806627990306816) (-.f64 (*.f64 (/.f64 y x) -1/2) x) (if (<=.f64 x 5742252960529749/883423532389192164791648750371459257913741948437809479060803100646309888) (sqrt.f64 y) (if (<=.f64 x 7600000000000000000000) (+.f64 (*.f64 1/2 (/.f64 y x)) x) (if (<=.f64 x 4000000000000000169682549496071847936) (sqrt.f64 y) (+.f64 (*.f64 1/2 (/.f64 y x)) x))))) |
(if (<=.f64 x -7018482353732767/2462625387274654950767440006258975862817483704404090416746768337765357610718575663213391640930307227550414249394176) (-.f64 (*.f64 (/.f64 y x) -1/2) x) (if (<=.f64 x 5742252960529749/883423532389192164791648750371459257913741948437809479060803100646309888) (sqrt.f64 y) (if (<=.f64 x 7600000000000000000000) (+.f64 x (*.f64 (/.f64 y x) 1/2)) (if (<=.f64 x 4000000000000000169682549496071847936) (sqrt.f64 y) (+.f64 x (*.f64 (/.f64 y x) 1/2)))))) |
(if (<=.f64 x 3803720624176790/528294531135665246352339784916516606518847326036121522127960709026673902556724859474417255887657187894674394993257128678882347559502685537250538978462939576908386683999005084168731517676426441053024232908211188404148028292751561738838396898767036476489538580897737998336) (neg.f64 x) (+.f64 (*.f64 1/2 (/.f64 y x)) x)) |
(if (<=.f64 x 1901860312088395/264147265567832623176169892458258303259423663018060761063980354513336951278362429737208627943828593947337197496628564339441173779751342768625269489231469788454193341999502542084365758838213220526512116454105594202074014146375780869419198449383518238244769290448868999168) (neg.f64 x) (+.f64 x (*.f64 (/.f64 y x) 1/2))) |
(if (<=.f64 x -3538089773270195/471745303102692669030194322623533611364615152552055053547025787530703020299018606510765840647207345942683546878845480612471323078740599079070179281429087005456174415872) (-.f64 (*.f64 (/.f64 y x) -1/2) x) x) |
(if (<=.f64 x 0) (neg.f64 x) x) |
x |
Compiled 121 to 75 computations (38% saved)
| 4× | egg-herbie |
| 759× | times-frac_binary64 |
| 598× | associate-/l*_binary64 |
| 502× | unswap-sqr_binary64 |
| 498× | fma-neg_binary64 |
| 427× | cancel-sign-sub-inv_binary64 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 6 | 7 |
| 1 | 8 | 7 |
| 0 | 59 | 313 |
| 1 | 159 | 311 |
| 2 | 440 | 311 |
| 3 | 1580 | 309 |
| 4 | 5737 | 309 |
| 0 | 6 | 7 |
| 1 | 8 | 7 |
| 0 | 6 | 7 |
| 1 | 8 | 7 |
| 1× | saturated |
| 1× | saturated |
| 1× | node limit |
| 1× | saturated |
Compiled 54 to 34 computations (37% saved)
Compiled 109 to 58 computations (46.8% saved)
Loading profile data...