Time bar (total: 4.6s)
| 1× | search |
| Probability | Valid | Unknown | Precondition | Infinite | Domain | Can't | Iter |
|---|---|---|---|---|---|---|---|
| 0% | 0% | 100% | 0% | 0% | 0% | 0% | 0 |
| 100% | 100% | 0% | 0% | 0% | 0% | 0% | 1 |
Compiled 9 to 7 computations (22.2% saved)
| 1.3s | 2299× | body | 2048 | valid |
| 676.0ms | 4429× | body | 256 | valid |
| 432.0ms | 1004× | body | 1024 | valid |
| 138.0ms | 524× | body | 512 | valid |
| 2× | egg-herbie |
| 39× | fma-def_binary64 |
| 32× | fma-neg_binary64 |
| 15× | cancel-sign-sub-inv_binary64 |
| 12× | sub-neg_binary64 |
| 10× | distribute-rgt-in_binary64 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 7 | 11 |
| 1 | 12 | 11 |
| 2 | 16 | 11 |
| 3 | 23 | 11 |
| 4 | 32 | 11 |
| 5 | 49 | 11 |
| 6 | 86 | 11 |
| 7 | 122 | 11 |
| 8 | 168 | 11 |
| 9 | 204 | 11 |
| 10 | 230 | 11 |
| 11 | 232 | 11 |
| 0 | 1 | 1 |
| 1× | saturated |
| 1× | saturated |
| Inputs |
|---|
0 |
| Outputs |
|---|
0 |
| Inputs |
|---|
(-.f64 (atan.f64 (+.f64 N 1)) (atan.f64 N)) |
| Outputs |
|---|
(-.f64 (atan.f64 (+.f64 N 1)) (atan.f64 N)) |
Compiled 9 to 7 computations (22.2% saved)
| 1× | egg-herbie |
| 39× | fma-def_binary64 |
| 32× | fma-neg_binary64 |
| 15× | cancel-sign-sub-inv_binary64 |
| 12× | sub-neg_binary64 |
| 10× | distribute-rgt-in_binary64 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 7 | 11 |
| 1 | 12 | 11 |
| 2 | 16 | 11 |
| 3 | 23 | 11 |
| 4 | 32 | 11 |
| 5 | 49 | 11 |
| 6 | 86 | 11 |
| 7 | 122 | 11 |
| 8 | 168 | 11 |
| 9 | 204 | 11 |
| 10 | 230 | 11 |
| 11 | 232 | 11 |
| 1× | saturated |
| Inputs |
|---|
(-.f64 (atan.f64 (+.f64 N 1)) (atan.f64 N)) |
| Outputs |
|---|
(-.f64 (atan.f64 (+.f64 N 1)) (atan.f64 N)) |
Compiled 8 to 6 computations (25% saved)
2 alts after pruning (2 fresh and 0 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 0 | 1 | 1 |
| Fresh | 0 | 1 | 1 |
| Picked | 0 | 0 | 0 |
| Done | 0 | 0 | 0 |
| Total | 0 | 2 | 2 |
| Status | Error | Program |
|---|---|---|
| ▶ | 17.0b | (-.f64 (atan.f64 (+.f64 N 1)) (atan.f64 N)) |
Compiled 8 to 6 computations (25% saved)
Found 1 expressions with local error:
| New | Error | Program |
|---|---|---|
| ✓ | 1.3b | (-.f64 (atan.f64 (+.f64 N 1)) (atan.f64 N)) |
Compiled 19 to 12 computations (36.8% saved)
3 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 0.0ms | N | @ | 0 | (-.f64 (atan.f64 (+.f64 N 1)) (atan.f64 N)) |
| 0.0ms | N | @ | inf | (-.f64 (atan.f64 (+.f64 N 1)) (atan.f64 N)) |
| 0.0ms | N | @ | -inf | (-.f64 (atan.f64 (+.f64 N 1)) (atan.f64 N)) |
| 1× | batch-egg-rewrite |
| 890× | pow1_binary64 |
| 828× | log1p-expm1-u_binary64 |
| 828× | expm1-log1p-u_binary64 |
| 827× | add-log-exp_binary64 |
| 810× | add-exp-log_binary64 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 7 | 11 |
| 1 | 156 | 11 |
| 2 | 2213 | 11 |
| 1× | node limit |
| Inputs |
|---|
(-.f64 (atan.f64 (+.f64 N 1)) (atan.f64 N)) |
| Outputs |
|---|
((#(struct:change #<rule egg-rr> (2) ((x +.f64 (atan.f64 (+.f64 N 1)) (neg.f64 (atan.f64 N)))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (atan.f64 (+.f64 N 1)) (*.f64 (neg.f64 (atan.f64 N)) 1))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (-.f64 (atan.f64 (+.f64 N 1)) (atan.f64 N)) (fma.f64 (neg.f64 (atan.f64 N)) 1 (atan.f64 N)))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (-.f64 (atan.f64 (+.f64 N 1)) (atan.f64 N)) (fma.f64 (neg.f64 (cbrt.f64 (atan.f64 N))) (pow.f64 (cbrt.f64 (atan.f64 N)) 2) (atan.f64 N)))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (-.f64 (atan.f64 (+.f64 N 1)) (atan.f64 N)) (fma.f64 (neg.f64 (sqrt.f64 (atan.f64 N))) (sqrt.f64 (atan.f64 N)) (atan.f64 N)))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (neg.f64 (atan.f64 N)) (atan.f64 (+.f64 N 1)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (-.f64 (atan.f64 (+.f64 N 1)) (atan.f64 N)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (-.f64 (atan.f64 (+.f64 N 1)) (atan.f64 N)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (-.f64 (atan.f64 (+.f64 N 1)) (atan.f64 N))) (pow.f64 (cbrt.f64 (-.f64 (atan.f64 (+.f64 N 1)) (atan.f64 N))) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (-.f64 (atan.f64 (+.f64 N 1)) (atan.f64 N))) 2) (cbrt.f64 (-.f64 (atan.f64 (+.f64 N 1)) (atan.f64 N))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (-.f64 (atan.f64 (+.f64 N 1)) (atan.f64 N))) (sqrt.f64 (-.f64 (atan.f64 (+.f64 N 1)) (atan.f64 N))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (-.f64 (pow.f64 (atan.f64 (+.f64 N 1)) 3) (pow.f64 (atan.f64 N) 3)) (/.f64 1 (+.f64 (pow.f64 (atan.f64 (+.f64 N 1)) 2) (*.f64 (atan.f64 N) (+.f64 (atan.f64 (+.f64 N 1)) (atan.f64 N))))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (-.f64 (pow.f64 (atan.f64 (+.f64 N 1)) 2) (pow.f64 (atan.f64 N) 2)) (/.f64 1 (+.f64 (atan.f64 (+.f64 N 1)) (atan.f64 N))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (+.f64 (sqrt.f64 (atan.f64 (+.f64 N 1))) (sqrt.f64 (atan.f64 N))) (-.f64 (sqrt.f64 (atan.f64 (+.f64 N 1))) (sqrt.f64 (atan.f64 N))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (/.f64 (+.f64 (pow.f64 (atan.f64 (+.f64 N 1)) 2) (*.f64 (atan.f64 N) (+.f64 (atan.f64 (+.f64 N 1)) (atan.f64 N)))) (-.f64 (pow.f64 (atan.f64 (+.f64 N 1)) 3) (pow.f64 (atan.f64 N) 3))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (/.f64 (+.f64 (atan.f64 (+.f64 N 1)) (atan.f64 N)) (-.f64 (pow.f64 (atan.f64 (+.f64 N 1)) 2) (pow.f64 (atan.f64 N) 2))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (pow.f64 (atan.f64 (+.f64 N 1)) 3) (pow.f64 (atan.f64 N) 3)) (+.f64 (pow.f64 (atan.f64 (+.f64 N 1)) 2) (*.f64 (atan.f64 N) (+.f64 (atan.f64 (+.f64 N 1)) (atan.f64 N)))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (pow.f64 (atan.f64 (+.f64 N 1)) 2) (pow.f64 (atan.f64 N) 2)) (+.f64 (atan.f64 (+.f64 N 1)) (atan.f64 N)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (-.f64 (pow.f64 (atan.f64 (+.f64 N 1)) 3) (pow.f64 (atan.f64 N) 3))) (neg.f64 (+.f64 (pow.f64 (atan.f64 (+.f64 N 1)) 2) (*.f64 (atan.f64 N) (+.f64 (atan.f64 (+.f64 N 1)) (atan.f64 N))))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (-.f64 (pow.f64 (atan.f64 (+.f64 N 1)) 2) (pow.f64 (atan.f64 N) 2))) (neg.f64 (+.f64 (atan.f64 (+.f64 N 1)) (atan.f64 N))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 (pow.f64 (atan.f64 (+.f64 N 1)) 3) (pow.f64 (neg.f64 (atan.f64 N)) 3)) (+.f64 (pow.f64 (atan.f64 (+.f64 N 1)) 2) (-.f64 (*.f64 (neg.f64 (atan.f64 N)) (neg.f64 (atan.f64 N))) (*.f64 (atan.f64 (+.f64 N 1)) (neg.f64 (atan.f64 N))))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (pow.f64 (atan.f64 (+.f64 N 1)) 2) (*.f64 (neg.f64 (atan.f64 N)) (neg.f64 (atan.f64 N)))) (-.f64 (atan.f64 (+.f64 N 1)) (neg.f64 (atan.f64 N))))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (-.f64 (atan.f64 (+.f64 N 1)) (atan.f64 N)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (-.f64 (atan.f64 (+.f64 N 1)) (atan.f64 N)) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (-.f64 (atan.f64 (+.f64 N 1)) (atan.f64 N))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (-.f64 (atan.f64 (+.f64 N 1)) (atan.f64 N))) 2)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (-.f64 (atan.f64 (+.f64 N 1)) (atan.f64 N)) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (-.f64 (atan.f64 (+.f64 N 1)) (atan.f64 N))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (-.f64 (atan.f64 (+.f64 N 1)) (atan.f64 N)) 3))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (-.f64 (atan.f64 (+.f64 N 1)) (atan.f64 N))))))) (#(struct:change #<rule egg-rr> (2) ((x atan2.f64 (+.f64 N (-.f64 1 N)) (+.f64 1 (*.f64 N (+.f64 N 1))))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (-.f64 (atan.f64 (+.f64 N 1)) (atan.f64 N))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (-.f64 (atan.f64 (+.f64 N 1)) (atan.f64 N))))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 1 (atan.f64 (+.f64 N 1)) (neg.f64 (atan.f64 N)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (pow.f64 (cbrt.f64 (atan.f64 (+.f64 N 1))) 2) (cbrt.f64 (atan.f64 (+.f64 N 1))) (neg.f64 (atan.f64 N)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (sqrt.f64 (atan.f64 (+.f64 N 1))) (sqrt.f64 (atan.f64 (+.f64 N 1))) (neg.f64 (atan.f64 N))))))) |
| 1× | egg-herbie |
| 52× | fma-def_binary64 |
| 43× | fma-neg_binary64 |
| 23× | cancel-sign-sub-inv_binary64 |
| 18× | sub-neg_binary64 |
| 14× | associate--r+_binary64 |
Useful iterations: 1 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 9 | 52 |
| 1 | 20 | 44 |
| 2 | 31 | 44 |
| 3 | 61 | 44 |
| 4 | 88 | 44 |
| 5 | 134 | 44 |
| 6 | 182 | 44 |
| 7 | 215 | 44 |
| 8 | 258 | 44 |
| 9 | 294 | 44 |
| 10 | 320 | 44 |
| 11 | 322 | 44 |
| 1× | saturated |
| Inputs |
|---|
(-.f64 (atan.f64 (-.f64 1 (*.f64 -1 N))) (atan.f64 N)) |
(-.f64 (atan.f64 (-.f64 1 (*.f64 -1 N))) (atan.f64 N)) |
(-.f64 (atan.f64 (-.f64 1 (*.f64 -1 N))) (atan.f64 N)) |
(-.f64 (atan.f64 (-.f64 1 (*.f64 -1 N))) (atan.f64 N)) |
| Outputs |
|---|
(-.f64 (atan.f64 (-.f64 1 (*.f64 -1 N))) (atan.f64 N)) |
(-.f64 (atan.f64 (-.f64 1 (neg.f64 N))) (atan.f64 N)) |
(-.f64 (atan.f64 (+.f64 1 N)) (atan.f64 N)) |
(-.f64 (atan.f64 (-.f64 1 (*.f64 -1 N))) (atan.f64 N)) |
(-.f64 (atan.f64 (-.f64 1 (neg.f64 N))) (atan.f64 N)) |
(-.f64 (atan.f64 (+.f64 1 N)) (atan.f64 N)) |
(-.f64 (atan.f64 (-.f64 1 (*.f64 -1 N))) (atan.f64 N)) |
(-.f64 (atan.f64 (-.f64 1 (neg.f64 N))) (atan.f64 N)) |
(-.f64 (atan.f64 (+.f64 1 N)) (atan.f64 N)) |
(-.f64 (atan.f64 (-.f64 1 (*.f64 -1 N))) (atan.f64 N)) |
(-.f64 (atan.f64 (-.f64 1 (neg.f64 N))) (atan.f64 N)) |
(-.f64 (atan.f64 (+.f64 1 N)) (atan.f64 N)) |
Compiled 599 to 388 computations (35.2% saved)
3 alts after pruning (3 fresh and 0 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 35 | 3 | 38 |
| Fresh | 0 | 0 | 0 |
| Picked | 1 | 0 | 1 |
| Done | 0 | 0 | 0 |
| Total | 36 | 3 | 39 |
| Status | Error | Program |
|---|---|---|
| ▶ | 16.0b | (atan2.f64 (+.f64 N (-.f64 1 N)) (+.f64 1 (*.f64 N (+.f64 N 1)))) |
| ▶ | 51.3b | (+.f64 (-.f64 (atan.f64 (+.f64 N 1)) (atan.f64 N)) (fma.f64 (neg.f64 (sqrt.f64 (atan.f64 N))) (sqrt.f64 (atan.f64 N)) (atan.f64 N))) |
| ▶ | 34.1b | (fma.f64 (pow.f64 (cbrt.f64 (atan.f64 (+.f64 N 1))) 2) (cbrt.f64 (atan.f64 (+.f64 N 1))) (neg.f64 (atan.f64 N))) |
Compiled 50 to 34 computations (32% saved)
Found 3 expressions with local error:
| New | Error | Program |
|---|---|---|
| ✓ | 0.3b | (sqrt.f64 (atan.f64 N)) |
| 1.3b | (-.f64 (atan.f64 (+.f64 N 1)) (atan.f64 N)) | |
| ✓ | 28.2b | (fma.f64 (neg.f64 (sqrt.f64 (atan.f64 N))) (sqrt.f64 (atan.f64 N)) (atan.f64 N)) |
Compiled 54 to 20 computations (63% saved)
6 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 2.0ms | N | @ | -inf | (fma.f64 (neg.f64 (sqrt.f64 (atan.f64 N))) (sqrt.f64 (atan.f64 N)) (atan.f64 N)) |
| 1.0ms | N | @ | inf | (fma.f64 (neg.f64 (sqrt.f64 (atan.f64 N))) (sqrt.f64 (atan.f64 N)) (atan.f64 N)) |
| 1.0ms | N | @ | 0 | (fma.f64 (neg.f64 (sqrt.f64 (atan.f64 N))) (sqrt.f64 (atan.f64 N)) (atan.f64 N)) |
| 0.0ms | N | @ | 0 | (sqrt.f64 (atan.f64 N)) |
| 0.0ms | N | @ | inf | (sqrt.f64 (atan.f64 N)) |
| 1× | batch-egg-rewrite |
| 463× | pow1_binary64 |
| 446× | add-sqr-sqrt_binary64 |
| 438× | *-un-lft-identity_binary64 |
| 427× | add-log-exp_binary64 |
| 426× | log1p-expm1-u_binary64 |
Useful iterations: 1 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 6 | 22 |
| 1 | 122 | 13 |
| 2 | 1490 | 13 |
| 1× | node limit |
| Inputs |
|---|
(fma.f64 (neg.f64 (sqrt.f64 (atan.f64 N))) (sqrt.f64 (atan.f64 N)) (atan.f64 N)) |
(sqrt.f64 (atan.f64 N)) |
| Outputs |
|---|
((#(struct:change #<rule egg-rr> (2) ((x +.f64 (atan.f64 N) (atan.f64 N))))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (+.f64 1 (+.f64 (atan.f64 N) (atan.f64 N))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (atan.f64 N)) (+.f64 (sqrt.f64 (atan.f64 N)) (sqrt.f64 (atan.f64 N))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (+.f64 (atan.f64 N) (atan.f64 N)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (+.f64 (atan.f64 N) (atan.f64 N)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (+.f64 (atan.f64 N) (atan.f64 N))) (pow.f64 (cbrt.f64 (+.f64 (atan.f64 N) (atan.f64 N))) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (+.f64 (atan.f64 N) (atan.f64 N))) 2) (cbrt.f64 (+.f64 (atan.f64 N) (atan.f64 N))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (+.f64 (atan.f64 N) (atan.f64 N))) (sqrt.f64 (+.f64 (atan.f64 N) (atan.f64 N))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 (pow.f64 (atan.f64 N) 3) (pow.f64 (atan.f64 N) 3)) (+.f64 (pow.f64 (atan.f64 N) 2) (-.f64 (pow.f64 (atan.f64 N) 2) (pow.f64 (atan.f64 N) 2))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (pow.f64 (atan.f64 N) 2) (pow.f64 (atan.f64 N) 2)) (-.f64 (atan.f64 N) (atan.f64 N)))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (+.f64 (atan.f64 N) (atan.f64 N)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (+.f64 (atan.f64 N) (atan.f64 N)) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (+.f64 (atan.f64 N) (atan.f64 N))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (+.f64 (atan.f64 N) (atan.f64 N))) 2)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (+.f64 (atan.f64 N) (atan.f64 N)) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (+.f64 (atan.f64 N) (atan.f64 N))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (+.f64 (atan.f64 N) (atan.f64 N)) 3))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (+.f64 (atan.f64 N) (atan.f64 N))))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (+.f64 (atan.f64 N) (atan.f64 N))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (+.f64 (atan.f64 N) (atan.f64 N)))))))) |
((#(struct:change #<rule egg-rr> (2) ((x +.f64 0 (sqrt.f64 (atan.f64 N)))))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 0 (sqrt.f64 (atan.f64 N)))))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (+.f64 1 (sqrt.f64 (atan.f64 N))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (atan.f64 N)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (atan.f64 N)) -1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (sqrt.f64 (atan.f64 N)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (atan.f64 N)) (cbrt.f64 (sqrt.f64 (atan.f64 N))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (atan.f64 N)) (neg.f64 (cbrt.f64 (sqrt.f64 (atan.f64 N)))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (sqrt.f64 (atan.f64 N))) (cbrt.f64 (atan.f64 N)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (atan.f64 N) 1/4) (pow.f64 (atan.f64 N) 1/4))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (atan.f64 N) 1/4) (neg.f64 (pow.f64 (atan.f64 N) 1/4)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 -1 (sqrt.f64 (atan.f64 N)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (pow.f64 (cbrt.f64 (atan.f64 N)) 2)) (sqrt.f64 (cbrt.f64 (atan.f64 N))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 1 1/2) (sqrt.f64 (atan.f64 N)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (pow.f64 (cbrt.f64 (atan.f64 N)) 2) 1/2) (pow.f64 (cbrt.f64 (atan.f64 N)) 1/2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (neg.f64 (cbrt.f64 (atan.f64 N))) (cbrt.f64 (sqrt.f64 (atan.f64 N))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (neg.f64 (pow.f64 (atan.f64 N) 1/4)) (pow.f64 (atan.f64 N) 1/4))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 -1 (cbrt.f64 (atan.f64 N))) (cbrt.f64 (sqrt.f64 (atan.f64 N))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 -1 (pow.f64 (atan.f64 N) 1/4)) (pow.f64 (atan.f64 N) 1/4))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 0 (pow.f64 (atan.f64 N) 3/2)) (+.f64 0 (+.f64 (atan.f64 N) (*.f64 0 (sqrt.f64 (atan.f64 N))))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 0 (atan.f64 N)) (sqrt.f64 (atan.f64 N)))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (atan.f64 N) 1/2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (atan.f64 N)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (atan.f64 N) 3/2) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (sqrt.f64 (atan.f64 N))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (atan.f64 N) 1/4) 2)))) (#(struct:change #<rule egg-rr> (2) ((x neg.f64 (sqrt.f64 (atan.f64 N)))))) (#(struct:change #<rule egg-rr> (2) ((x fabs.f64 (sqrt.f64 (atan.f64 N)))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (sqrt.f64 (atan.f64 N))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (atan.f64 N) 3/2))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (sqrt.f64 (atan.f64 N))))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (sqrt.f64 (atan.f64 N))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (sqrt.f64 (atan.f64 N)))))))) |
| 1× | egg-herbie |
| 4× | fma-def_binary64 |
| 3× | +-commutative_binary64 |
| 3× | sub-neg_binary64 |
| 2× | *-commutative_binary64 |
| 1× | associate-+l-_binary64 |
Useful iterations: 1 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 6 | 72 |
| 1 | 13 | 12 |
| 2 | 19 | 12 |
| 3 | 20 | 12 |
| 4 | 22 | 12 |
| 5 | 26 | 12 |
| 6 | 30 | 12 |
| 7 | 35 | 12 |
| 1× | saturated |
| Inputs |
|---|
(+.f64 (atan.f64 N) (*.f64 -1 (atan.f64 N))) |
(+.f64 (atan.f64 N) (*.f64 -1 (atan.f64 N))) |
(+.f64 (atan.f64 N) (*.f64 -1 (atan.f64 N))) |
(+.f64 (atan.f64 N) (*.f64 -1 (atan.f64 N))) |
(+.f64 (atan.f64 N) (*.f64 -1 (atan.f64 N))) |
(+.f64 (atan.f64 N) (*.f64 -1 (atan.f64 N))) |
(+.f64 (atan.f64 N) (*.f64 -1 (atan.f64 N))) |
(+.f64 (atan.f64 N) (*.f64 -1 (atan.f64 N))) |
(+.f64 (atan.f64 N) (*.f64 -1 (atan.f64 N))) |
(+.f64 (atan.f64 N) (*.f64 -1 (atan.f64 N))) |
(+.f64 (atan.f64 N) (*.f64 -1 (atan.f64 N))) |
(+.f64 (atan.f64 N) (*.f64 -1 (atan.f64 N))) |
| Outputs |
|---|
(+.f64 (atan.f64 N) (*.f64 -1 (atan.f64 N))) |
(*.f64 0 (atan.f64 N)) |
0 |
(+.f64 (atan.f64 N) (*.f64 -1 (atan.f64 N))) |
(*.f64 0 (atan.f64 N)) |
0 |
(+.f64 (atan.f64 N) (*.f64 -1 (atan.f64 N))) |
(*.f64 0 (atan.f64 N)) |
0 |
(+.f64 (atan.f64 N) (*.f64 -1 (atan.f64 N))) |
(*.f64 0 (atan.f64 N)) |
0 |
(+.f64 (atan.f64 N) (*.f64 -1 (atan.f64 N))) |
(*.f64 0 (atan.f64 N)) |
0 |
(+.f64 (atan.f64 N) (*.f64 -1 (atan.f64 N))) |
(*.f64 0 (atan.f64 N)) |
0 |
(+.f64 (atan.f64 N) (*.f64 -1 (atan.f64 N))) |
(*.f64 0 (atan.f64 N)) |
0 |
(+.f64 (atan.f64 N) (*.f64 -1 (atan.f64 N))) |
(*.f64 0 (atan.f64 N)) |
0 |
(+.f64 (atan.f64 N) (*.f64 -1 (atan.f64 N))) |
(*.f64 0 (atan.f64 N)) |
0 |
(+.f64 (atan.f64 N) (*.f64 -1 (atan.f64 N))) |
(*.f64 0 (atan.f64 N)) |
0 |
(+.f64 (atan.f64 N) (*.f64 -1 (atan.f64 N))) |
(*.f64 0 (atan.f64 N)) |
0 |
(+.f64 (atan.f64 N) (*.f64 -1 (atan.f64 N))) |
(*.f64 0 (atan.f64 N)) |
0 |
Found 2 expressions with local error:
| New | Error | Program |
|---|---|---|
| ✓ | 0.0b | (atan2.f64 (+.f64 N (-.f64 1 N)) (+.f64 1 (*.f64 N (+.f64 N 1)))) |
| ✓ | 2.2b | (+.f64 N (-.f64 1 N)) |
Compiled 39 to 26 computations (33.3% saved)
6 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 0.0ms | N | @ | inf | (atan2.f64 (+.f64 N (-.f64 1 N)) (+.f64 1 (*.f64 N (+.f64 N 1)))) |
| 0.0ms | N | @ | -inf | (atan2.f64 (+.f64 N (-.f64 1 N)) (+.f64 1 (*.f64 N (+.f64 N 1)))) |
| 0.0ms | N | @ | 0 | (+.f64 N (-.f64 1 N)) |
| 0.0ms | N | @ | 0 | (atan2.f64 (+.f64 N (-.f64 1 N)) (+.f64 1 (*.f64 N (+.f64 N 1)))) |
| 0.0ms | N | @ | -inf | (+.f64 N (-.f64 1 N)) |
| 1× | batch-egg-rewrite |
| 616× | fma-def_binary64 |
| 473× | log-prod_binary64 |
| 352× | pow-prod-down_binary64 |
| 297× | fma-neg_binary64 |
| 270× | pow2_binary64 |
Useful iterations: 1 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 9 | 26 |
| 1 | 210 | 24 |
| 2 | 3076 | 24 |
| 1× | node limit |
| Inputs |
|---|
(+.f64 N (-.f64 1 N)) |
(atan2.f64 (+.f64 N (-.f64 1 N)) (+.f64 1 (*.f64 N (+.f64 N 1)))) |
| Outputs |
|---|
((#(struct:change #<rule egg-rr> (2) ((x -.f64 1 (-.f64 N N))))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (+.f64 N 1) N)))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (exp.f64 (log1p.f64 (+.f64 N (-.f64 1 N)))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (/.f64 (*.f64 N N) (+.f64 (+.f64 N -1) N)) (/.f64 (pow.f64 (-.f64 1 N) 2) (+.f64 (+.f64 N -1) N)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (+.f64 N (-.f64 1 N)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (+.f64 N (-.f64 1 N)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (+.f64 N (-.f64 1 N))) (pow.f64 (cbrt.f64 (+.f64 N (-.f64 1 N))) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (+.f64 N (-.f64 1 N))) 2) (cbrt.f64 (+.f64 N (-.f64 1 N))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (+.f64 N (-.f64 1 N))) (sqrt.f64 (+.f64 N (-.f64 1 N))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (+.f64 (pow.f64 N 3) (pow.f64 (-.f64 1 N) 3)) (/.f64 1 (fma.f64 (-.f64 1 N) (-.f64 (-.f64 1 N) N) (*.f64 N N))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (-.f64 (*.f64 N N) (pow.f64 (-.f64 1 N) 2)) (/.f64 1 (+.f64 (+.f64 N -1) N)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (+.f64 (sqrt.f64 (+.f64 N 1)) (sqrt.f64 N)) (-.f64 (sqrt.f64 (+.f64 N 1)) (sqrt.f64 N)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (/.f64 (fma.f64 (-.f64 1 N) (-.f64 (-.f64 1 N) N) (*.f64 N N)) (+.f64 (pow.f64 N 3) (pow.f64 (-.f64 1 N) 3))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (/.f64 (+.f64 (+.f64 N -1) N) (-.f64 (*.f64 N N) (pow.f64 (-.f64 1 N) 2))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 (pow.f64 N 3) (pow.f64 (-.f64 1 N) 3)) (fma.f64 (-.f64 1 N) (-.f64 (-.f64 1 N) N) (*.f64 N N)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 (pow.f64 N 3) (pow.f64 (-.f64 1 N) 3)) (+.f64 (pow.f64 (-.f64 1 N) 2) (-.f64 (*.f64 N N) (*.f64 N (-.f64 1 N)))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (*.f64 N N) (pow.f64 (-.f64 1 N) 2)) (+.f64 (+.f64 N -1) N))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (+.f64 (pow.f64 N 3) (pow.f64 (-.f64 1 N) 3))) (neg.f64 (fma.f64 (-.f64 1 N) (-.f64 (-.f64 1 N) N) (*.f64 N N))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (-.f64 (*.f64 N N) (pow.f64 (-.f64 1 N) 2))) (neg.f64 (+.f64 (+.f64 N -1) N)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (pow.f64 (+.f64 N 1) 3) (pow.f64 N 3)) (+.f64 (pow.f64 (+.f64 N 1) 2) (fma.f64 N N (fma.f64 N N N))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (pow.f64 (+.f64 N 1) 2) (*.f64 N N)) (+.f64 (+.f64 N 1) N))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (pow.f64 (-.f64 1 N) 2) (*.f64 N N)) (-.f64 (-.f64 1 N) N))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (+.f64 N (-.f64 1 N)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (+.f64 N (-.f64 1 N)) 2) 1/2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (+.f64 N (-.f64 1 N)) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (+.f64 N (-.f64 1 N))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (+.f64 N (-.f64 1 N))) 2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (/.f64 (fma.f64 (-.f64 1 N) (-.f64 (-.f64 1 N) N) (*.f64 N N)) (+.f64 (pow.f64 N 3) (pow.f64 (-.f64 1 N) 3))) -1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (/.f64 (+.f64 (+.f64 N -1) N) (-.f64 (*.f64 N N) (pow.f64 (-.f64 1 N) 2))) -1)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (+.f64 N (-.f64 1 N)) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (+.f64 N (-.f64 1 N))))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (+.f64 1 (expm1.f64 (+.f64 N (-.f64 1 N)))))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (/.f64 (+.f64 1 (expm1.f64 (+.f64 N 1))) (exp.f64 N)))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (/.f64 (exp.f64 (+.f64 N 1)) (+.f64 1 (expm1.f64 N))))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (/.f64 (+.f64 1 (expm1.f64 (+.f64 N 1))) (+.f64 1 (expm1.f64 N))))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (*.f64 (+.f64 1 (expm1.f64 N)) (exp.f64 (-.f64 1 N))))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (*.f64 (exp.f64 N) (+.f64 1 (expm1.f64 (-.f64 1 N)))))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (*.f64 (+.f64 1 (expm1.f64 N)) (+.f64 1 (expm1.f64 (-.f64 1 N)))))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (*.f64 (+.f64 1 (expm1.f64 (-.f64 1 N))) (exp.f64 N)))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (*.f64 (exp.f64 (-.f64 1 N)) (+.f64 1 (expm1.f64 N))))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (*.f64 (+.f64 1 (expm1.f64 (-.f64 1 N))) (+.f64 1 (expm1.f64 N))))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (*.f64 (exp.f64 (+.f64 N 1)) (exp.f64 (neg.f64 N))))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (*.f64 (+.f64 1 (expm1.f64 (+.f64 N 1))) (exp.f64 (neg.f64 N))))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (*.f64 (+.f64 1 (expm1.f64 (+.f64 N 1))) (/.f64 1 (exp.f64 N))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (+.f64 N (-.f64 1 N)) 3))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (+.f64 N (-.f64 1 N))))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (+.f64 N (-.f64 1 N))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log1p.f64 (-.f64 N N)))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (log1p.f64 (-.f64 N N)) 1))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (*.f64 3 (log1p.f64 (-.f64 N N))) 1/3))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (*.f64 1/3 (log1p.f64 (-.f64 N N))) 3))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (*.f64 1/2 (log1p.f64 (-.f64 N N))) 2))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 N 1 (-.f64 1 N))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 1 N (-.f64 1 N))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 1 (-.f64 1 N) N)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 1 (+.f64 N (-.f64 1 N)) (fma.f64 (neg.f64 N) 1 N))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 1 (+.f64 N (-.f64 1 N)) (fma.f64 (neg.f64 (cbrt.f64 N)) (cbrt.f64 (*.f64 N N)) N))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 1 (+.f64 N (-.f64 1 N)) (fma.f64 -1 N N))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 1 (+.f64 N 1) (neg.f64 N))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (-.f64 1 N) 1 N)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (+.f64 N (-.f64 1 N)) 1 (fma.f64 (neg.f64 N) 1 N))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (+.f64 N (-.f64 1 N)) 1 (fma.f64 (neg.f64 (cbrt.f64 N)) (cbrt.f64 (*.f64 N N)) N))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (+.f64 N (-.f64 1 N)) 1 (fma.f64 -1 N N))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (+.f64 N 1) 1 (neg.f64 N))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (cbrt.f64 (+.f64 N (-.f64 1 N))) (pow.f64 (cbrt.f64 (+.f64 N (-.f64 1 N))) 2) (fma.f64 (neg.f64 N) 1 N))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (cbrt.f64 (+.f64 N (-.f64 1 N))) (pow.f64 (cbrt.f64 (+.f64 N (-.f64 1 N))) 2) (fma.f64 (neg.f64 (cbrt.f64 N)) (cbrt.f64 (*.f64 N N)) N))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (cbrt.f64 (+.f64 N (-.f64 1 N))) (pow.f64 (cbrt.f64 (+.f64 N (-.f64 1 N))) 2) (fma.f64 -1 N N))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (pow.f64 (cbrt.f64 (+.f64 N (-.f64 1 N))) 2) (cbrt.f64 (+.f64 N (-.f64 1 N))) (fma.f64 (neg.f64 N) 1 N))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (pow.f64 (cbrt.f64 (+.f64 N (-.f64 1 N))) 2) (cbrt.f64 (+.f64 N (-.f64 1 N))) (fma.f64 (neg.f64 (cbrt.f64 N)) (cbrt.f64 (*.f64 N N)) N))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (pow.f64 (cbrt.f64 (+.f64 N (-.f64 1 N))) 2) (cbrt.f64 (+.f64 N (-.f64 1 N))) (fma.f64 -1 N N))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (cbrt.f64 N) (cbrt.f64 (*.f64 N N)) (-.f64 1 N))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (cbrt.f64 (*.f64 N N)) (cbrt.f64 N) (-.f64 1 N))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (cbrt.f64 (*.f64 N N)) (*.f64 (cbrt.f64 N) 1) (-.f64 1 N))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (cbrt.f64 (+.f64 N 1)) (pow.f64 (cbrt.f64 (+.f64 N 1)) 2) (neg.f64 N))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (pow.f64 (cbrt.f64 (+.f64 N 1)) 2) (cbrt.f64 (+.f64 N 1)) (neg.f64 N))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (cbrt.f64 (-.f64 1 N)) (pow.f64 (cbrt.f64 (-.f64 1 N)) 2) N)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (pow.f64 (cbrt.f64 (-.f64 1 N)) 2) (cbrt.f64 (-.f64 1 N)) N)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (sqrt.f64 (+.f64 N (-.f64 1 N))) (sqrt.f64 (+.f64 N (-.f64 1 N))) (fma.f64 (neg.f64 N) 1 N))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (sqrt.f64 (+.f64 N (-.f64 1 N))) (sqrt.f64 (+.f64 N (-.f64 1 N))) (fma.f64 (neg.f64 (cbrt.f64 N)) (cbrt.f64 (*.f64 N N)) N))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (sqrt.f64 (+.f64 N (-.f64 1 N))) (sqrt.f64 (+.f64 N (-.f64 1 N))) (fma.f64 -1 N N))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (sqrt.f64 N) (sqrt.f64 N) (-.f64 1 N))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (sqrt.f64 N) (*.f64 (sqrt.f64 N) 1) (-.f64 1 N))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (sqrt.f64 (+.f64 N 1)) (sqrt.f64 (+.f64 N 1)) (neg.f64 N))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (sqrt.f64 (-.f64 1 N)) (sqrt.f64 (-.f64 1 N)) N)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (-.f64 1 (pow.f64 N 3)) (/.f64 1 (+.f64 1 (fma.f64 N N N))) N)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (+.f64 (pow.f64 N 3) (pow.f64 (-.f64 1 N) 3)) (/.f64 1 (fma.f64 (-.f64 1 N) (-.f64 (-.f64 1 N) N) (*.f64 N N))) (fma.f64 (neg.f64 N) 1 N))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (+.f64 (pow.f64 N 3) (pow.f64 (-.f64 1 N) 3)) (/.f64 1 (fma.f64 (-.f64 1 N) (-.f64 (-.f64 1 N) N) (*.f64 N N))) (fma.f64 (neg.f64 (cbrt.f64 N)) (cbrt.f64 (*.f64 N N)) N))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (+.f64 (pow.f64 N 3) (pow.f64 (-.f64 1 N) 3)) (/.f64 1 (fma.f64 (-.f64 1 N) (-.f64 (-.f64 1 N) N) (*.f64 N N))) (fma.f64 -1 N N))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (+.f64 1 (pow.f64 N 3)) (/.f64 1 (-.f64 (fma.f64 N N 1) N)) (neg.f64 N))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (-.f64 1 (*.f64 N N)) (/.f64 1 (+.f64 N 1)) N)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (-.f64 (*.f64 N N) (pow.f64 (-.f64 1 N) 2)) (/.f64 1 (+.f64 (+.f64 N -1) N)) (fma.f64 (neg.f64 N) 1 N))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (-.f64 (*.f64 N N) (pow.f64 (-.f64 1 N) 2)) (/.f64 1 (+.f64 (+.f64 N -1) N)) (fma.f64 (neg.f64 (cbrt.f64 N)) (cbrt.f64 (*.f64 N N)) N))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (-.f64 (*.f64 N N) (pow.f64 (-.f64 1 N) 2)) (/.f64 1 (+.f64 (+.f64 N -1) N)) (fma.f64 -1 N N))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (fma.f64 N N -1) (/.f64 1 (+.f64 N -1)) (neg.f64 N))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (+.f64 (sqrt.f64 (+.f64 N 1)) (sqrt.f64 N)) (-.f64 (sqrt.f64 (+.f64 N 1)) (sqrt.f64 N)) (fma.f64 (neg.f64 N) 1 N))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (+.f64 (sqrt.f64 (+.f64 N 1)) (sqrt.f64 N)) (-.f64 (sqrt.f64 (+.f64 N 1)) (sqrt.f64 N)) (fma.f64 (neg.f64 (cbrt.f64 N)) (cbrt.f64 (*.f64 N N)) N))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (+.f64 (sqrt.f64 (+.f64 N 1)) (sqrt.f64 N)) (-.f64 (sqrt.f64 (+.f64 N 1)) (sqrt.f64 N)) (fma.f64 -1 N N))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (/.f64 (-.f64 1 (pow.f64 N 3)) (+.f64 1 (pow.f64 (fma.f64 N N N) 3))) (fma.f64 (fma.f64 N N N) (-.f64 (fma.f64 N N N) 1) 1) N)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (/.f64 (-.f64 1 (pow.f64 N 3)) (-.f64 1 (pow.f64 (fma.f64 N N N) 2))) (-.f64 1 (fma.f64 N N N)) N)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (/.f64 (-.f64 1 (*.f64 N N)) (+.f64 1 (pow.f64 N 3))) (-.f64 (fma.f64 N N 1) N) N)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (/.f64 (-.f64 1 (*.f64 N N)) (fma.f64 N N -1)) (+.f64 N -1) N))))) |
((#(struct:change #<rule egg-rr> (2) ((x +.f64 0 (atan2.f64 (+.f64 N (-.f64 1 N)) (+.f64 1 (fma.f64 N N N))))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (log.f64 (pow.f64 (cbrt.f64 (exp.f64 (atan2.f64 (+.f64 N (-.f64 1 N)) (+.f64 1 (fma.f64 N N N))))) 2)) (log.f64 (cbrt.f64 (exp.f64 (atan2.f64 (+.f64 N (-.f64 1 N)) (+.f64 1 (fma.f64 N N N)))))))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (log.f64 (sqrt.f64 (exp.f64 (atan2.f64 (+.f64 N (-.f64 1 N)) (+.f64 1 (fma.f64 N N N)))))) (log.f64 (sqrt.f64 (exp.f64 (atan2.f64 (+.f64 N (-.f64 1 N)) (+.f64 1 (fma.f64 N N N)))))))))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (exp.f64 (log1p.f64 (atan2.f64 (+.f64 N (-.f64 1 N)) (+.f64 1 (fma.f64 N N N))))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (atan2.f64 (+.f64 N (-.f64 1 N)) (+.f64 1 (fma.f64 N N N))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (atan2.f64 (+.f64 N (-.f64 1 N)) (+.f64 1 (fma.f64 N N N))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (atan2.f64 (+.f64 N (-.f64 1 N)) (+.f64 1 (fma.f64 N N N)))) (pow.f64 (cbrt.f64 (atan2.f64 (+.f64 N (-.f64 1 N)) (+.f64 1 (fma.f64 N N N)))) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (atan2.f64 (+.f64 N (-.f64 1 N)) (+.f64 1 (fma.f64 N N N)))) 2) (cbrt.f64 (atan2.f64 (+.f64 N (-.f64 1 N)) (+.f64 1 (fma.f64 N N N)))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (atan2.f64 (+.f64 N (-.f64 1 N)) (+.f64 1 (fma.f64 N N N)))) (sqrt.f64 (atan2.f64 (+.f64 N (-.f64 1 N)) (+.f64 1 (fma.f64 N N N)))))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (atan2.f64 (+.f64 N (-.f64 1 N)) (+.f64 1 (fma.f64 N N N))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (atan2.f64 (+.f64 N (-.f64 1 N)) (+.f64 1 (fma.f64 N N N))) 2) 1/2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (atan2.f64 (+.f64 N (-.f64 1 N)) (+.f64 1 (fma.f64 N N N))) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (atan2.f64 (+.f64 N (-.f64 1 N)) (+.f64 1 (fma.f64 N N N)))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (atan2.f64 (+.f64 N (-.f64 1 N)) (+.f64 1 (fma.f64 N N N)))) 2)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (atan2.f64 (+.f64 N (-.f64 1 N)) (+.f64 1 (fma.f64 N N N))) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (atan2.f64 (+.f64 N (-.f64 1 N)) (+.f64 1 (fma.f64 N N N)))))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (+.f64 1 (expm1.f64 (atan2.f64 (+.f64 N (-.f64 1 N)) (+.f64 1 (fma.f64 N N N))))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (atan2.f64 (+.f64 N (-.f64 1 N)) (+.f64 1 (fma.f64 N N N))) 3))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (atan2.f64 (+.f64 N (-.f64 1 N)) (+.f64 1 (fma.f64 N N N)))))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (atan2.f64 (+.f64 N (-.f64 1 N)) (+.f64 1 (fma.f64 N N N)))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (atan2.f64 (+.f64 N (-.f64 1 N)) (+.f64 1 (fma.f64 N N N)))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (log.f64 (atan2.f64 (+.f64 N (-.f64 1 N)) (+.f64 1 (fma.f64 N N N)))) 1))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (*.f64 3 (log.f64 (atan2.f64 (+.f64 N (-.f64 1 N)) (+.f64 1 (fma.f64 N N N))))) 1/3))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (log.f64 (cbrt.f64 (atan2.f64 (+.f64 N (-.f64 1 N)) (+.f64 1 (fma.f64 N N N))))) 3))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (log.f64 (sqrt.f64 (atan2.f64 (+.f64 N (-.f64 1 N)) (+.f64 1 (fma.f64 N N N))))) 2)))))) |
| 1× | egg-herbie |
| 968× | fma-neg_binary64 |
| 532× | unswap-sqr_binary64 |
| 444× | distribute-rgt-neg-in_binary64 |
| 354× | cancel-sign-sub-inv_binary64 |
| 314× | fma-def_binary64 |
Useful iterations: 1 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 18 | 168 |
| 1 | 42 | 144 |
| 2 | 66 | 144 |
| 3 | 162 | 144 |
| 4 | 578 | 144 |
| 5 | 1634 | 144 |
| 6 | 3610 | 144 |
| 7 | 5642 | 144 |
| 8 | 7321 | 144 |
| 1× | node limit |
| Inputs |
|---|
1 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
(atan2.f64 1 (+.f64 1 (*.f64 N (+.f64 N 1)))) |
(atan2.f64 1 (+.f64 1 (*.f64 N (+.f64 N 1)))) |
(atan2.f64 1 (+.f64 1 (*.f64 N (+.f64 N 1)))) |
(atan2.f64 1 (+.f64 1 (*.f64 N (+.f64 N 1)))) |
(atan2.f64 1 (+.f64 N (+.f64 1 (pow.f64 N 2)))) |
(atan2.f64 1 (+.f64 N (+.f64 1 (pow.f64 N 2)))) |
(atan2.f64 1 (+.f64 N (+.f64 1 (pow.f64 N 2)))) |
(atan2.f64 1 (+.f64 N (+.f64 1 (pow.f64 N 2)))) |
(atan2.f64 1 (+.f64 1 (*.f64 N (-.f64 1 (*.f64 -1 N))))) |
(atan2.f64 1 (+.f64 1 (*.f64 N (-.f64 1 (*.f64 -1 N))))) |
(atan2.f64 1 (+.f64 1 (*.f64 N (-.f64 1 (*.f64 -1 N))))) |
(atan2.f64 1 (+.f64 1 (*.f64 N (-.f64 1 (*.f64 -1 N))))) |
| Outputs |
|---|
1 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
1 |
(atan2.f64 1 (+.f64 1 (*.f64 N (+.f64 N 1)))) |
(atan2.f64 1 (+.f64 1 (*.f64 N (+.f64 1 N)))) |
(atan2.f64 1 (+.f64 N (fma.f64 N N 1))) |
(atan2.f64 1 (fma.f64 N N (+.f64 1 N))) |
(atan2.f64 1 (+.f64 1 (*.f64 N (+.f64 N 1)))) |
(atan2.f64 1 (+.f64 1 (*.f64 N (+.f64 1 N)))) |
(atan2.f64 1 (+.f64 N (fma.f64 N N 1))) |
(atan2.f64 1 (fma.f64 N N (+.f64 1 N))) |
(atan2.f64 1 (+.f64 1 (*.f64 N (+.f64 N 1)))) |
(atan2.f64 1 (+.f64 1 (*.f64 N (+.f64 1 N)))) |
(atan2.f64 1 (+.f64 N (fma.f64 N N 1))) |
(atan2.f64 1 (fma.f64 N N (+.f64 1 N))) |
(atan2.f64 1 (+.f64 1 (*.f64 N (+.f64 N 1)))) |
(atan2.f64 1 (+.f64 1 (*.f64 N (+.f64 1 N)))) |
(atan2.f64 1 (+.f64 N (fma.f64 N N 1))) |
(atan2.f64 1 (fma.f64 N N (+.f64 1 N))) |
(atan2.f64 1 (+.f64 N (+.f64 1 (pow.f64 N 2)))) |
(atan2.f64 1 (+.f64 1 (*.f64 N (+.f64 1 N)))) |
(atan2.f64 1 (+.f64 N (fma.f64 N N 1))) |
(atan2.f64 1 (fma.f64 N N (+.f64 1 N))) |
(atan2.f64 1 (+.f64 N (+.f64 1 (pow.f64 N 2)))) |
(atan2.f64 1 (+.f64 1 (*.f64 N (+.f64 1 N)))) |
(atan2.f64 1 (+.f64 N (fma.f64 N N 1))) |
(atan2.f64 1 (fma.f64 N N (+.f64 1 N))) |
(atan2.f64 1 (+.f64 N (+.f64 1 (pow.f64 N 2)))) |
(atan2.f64 1 (+.f64 1 (*.f64 N (+.f64 1 N)))) |
(atan2.f64 1 (+.f64 N (fma.f64 N N 1))) |
(atan2.f64 1 (fma.f64 N N (+.f64 1 N))) |
(atan2.f64 1 (+.f64 N (+.f64 1 (pow.f64 N 2)))) |
(atan2.f64 1 (+.f64 1 (*.f64 N (+.f64 1 N)))) |
(atan2.f64 1 (+.f64 N (fma.f64 N N 1))) |
(atan2.f64 1 (fma.f64 N N (+.f64 1 N))) |
(atan2.f64 1 (+.f64 1 (*.f64 N (-.f64 1 (*.f64 -1 N))))) |
(atan2.f64 1 (+.f64 1 (*.f64 N (+.f64 1 N)))) |
(atan2.f64 1 (+.f64 N (fma.f64 N N 1))) |
(atan2.f64 1 (fma.f64 N N (+.f64 1 N))) |
(atan2.f64 1 (+.f64 1 (*.f64 N (-.f64 1 (*.f64 -1 N))))) |
(atan2.f64 1 (+.f64 1 (*.f64 N (+.f64 1 N)))) |
(atan2.f64 1 (+.f64 N (fma.f64 N N 1))) |
(atan2.f64 1 (fma.f64 N N (+.f64 1 N))) |
(atan2.f64 1 (+.f64 1 (*.f64 N (-.f64 1 (*.f64 -1 N))))) |
(atan2.f64 1 (+.f64 1 (*.f64 N (+.f64 1 N)))) |
(atan2.f64 1 (+.f64 N (fma.f64 N N 1))) |
(atan2.f64 1 (fma.f64 N N (+.f64 1 N))) |
(atan2.f64 1 (+.f64 1 (*.f64 N (-.f64 1 (*.f64 -1 N))))) |
(atan2.f64 1 (+.f64 1 (*.f64 N (+.f64 1 N)))) |
(atan2.f64 1 (+.f64 N (fma.f64 N N 1))) |
(atan2.f64 1 (fma.f64 N N (+.f64 1 N))) |
Found 3 expressions with local error:
| New | Error | Program |
|---|---|---|
| ✓ | 0.5b | (pow.f64 (cbrt.f64 (atan.f64 (+.f64 N 1))) 2) |
| ✓ | 1.0b | (cbrt.f64 (atan.f64 (+.f64 N 1))) |
| ✓ | 31.3b | (fma.f64 (pow.f64 (cbrt.f64 (atan.f64 (+.f64 N 1))) 2) (cbrt.f64 (atan.f64 (+.f64 N 1))) (neg.f64 (atan.f64 N))) |
Compiled 44 to 31 computations (29.5% saved)
9 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 17.0ms | N | @ | 0 | (fma.f64 (pow.f64 (cbrt.f64 (atan.f64 (+.f64 N 1))) 2) (cbrt.f64 (atan.f64 (+.f64 N 1))) (neg.f64 (atan.f64 N))) |
| 6.0ms | N | @ | inf | (fma.f64 (pow.f64 (cbrt.f64 (atan.f64 (+.f64 N 1))) 2) (cbrt.f64 (atan.f64 (+.f64 N 1))) (neg.f64 (atan.f64 N))) |
| 4.0ms | N | @ | -inf | (fma.f64 (pow.f64 (cbrt.f64 (atan.f64 (+.f64 N 1))) 2) (cbrt.f64 (atan.f64 (+.f64 N 1))) (neg.f64 (atan.f64 N))) |
| 1.0ms | N | @ | inf | (cbrt.f64 (atan.f64 (+.f64 N 1))) |
| 1.0ms | N | @ | 0 | (cbrt.f64 (atan.f64 (+.f64 N 1))) |
| 1× | batch-egg-rewrite |
| 886× | pow1_binary64 |
| 821× | add-log-exp_binary64 |
| 821× | log1p-expm1-u_binary64 |
| 821× | expm1-log1p-u_binary64 |
| 803× | add-exp-log_binary64 |
Useful iterations: 1 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 11 | 32 |
| 1 | 226 | 30 |
| 2 | 2608 | 30 |
| 1× | node limit |
| Inputs |
|---|
(fma.f64 (pow.f64 (cbrt.f64 (atan.f64 (+.f64 N 1))) 2) (cbrt.f64 (atan.f64 (+.f64 N 1))) (neg.f64 (atan.f64 N))) |
(cbrt.f64 (atan.f64 (+.f64 N 1))) |
(pow.f64 (cbrt.f64 (atan.f64 (+.f64 N 1))) 2) |
| Outputs |
|---|
((#(struct:change #<rule egg-rr> (2) ((x +.f64 (atan.f64 (+.f64 N 1)) (atan.f64 N))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (atan.f64 N) (atan.f64 (+.f64 N 1)))))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (atan.f64 (+.f64 N 1)) (atan.f64 N))))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (+.f64 1 (+.f64 (atan.f64 (+.f64 N 1)) (atan.f64 N))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (+.f64 (atan.f64 (+.f64 N 1)) 0) (atan.f64 N))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (+.f64 (atan.f64 (+.f64 N 1)) (atan.f64 N)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (+.f64 (atan.f64 (+.f64 N 1)) (atan.f64 N)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (+.f64 (atan.f64 (+.f64 N 1)) (atan.f64 N))) (pow.f64 (cbrt.f64 (+.f64 (atan.f64 (+.f64 N 1)) (atan.f64 N))) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (+.f64 (atan.f64 (+.f64 N 1)) (atan.f64 N))) 2) (cbrt.f64 (+.f64 (atan.f64 (+.f64 N 1)) (atan.f64 N))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (+.f64 (atan.f64 (+.f64 N 1)) (atan.f64 N))) (sqrt.f64 (+.f64 (atan.f64 (+.f64 N 1)) (atan.f64 N))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 (pow.f64 (atan.f64 (+.f64 N 1)) 3) (pow.f64 (atan.f64 N) 3)) (+.f64 (pow.f64 (atan.f64 (+.f64 N 1)) 2) (-.f64 (pow.f64 (atan.f64 N) 2) (*.f64 (atan.f64 (+.f64 N 1)) (atan.f64 N)))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (pow.f64 (atan.f64 (+.f64 N 1)) 2) (pow.f64 (atan.f64 N) 2)) (+.f64 (atan.f64 (+.f64 N 1)) (atan.f64 N)))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (+.f64 (atan.f64 (+.f64 N 1)) (atan.f64 N)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (+.f64 (atan.f64 (+.f64 N 1)) (atan.f64 N)) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (+.f64 (atan.f64 (+.f64 N 1)) (atan.f64 N))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (+.f64 (atan.f64 (+.f64 N 1)) (atan.f64 N))) 2)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (+.f64 (atan.f64 (+.f64 N 1)) (atan.f64 N)) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (+.f64 (atan.f64 (+.f64 N 1)) (atan.f64 N))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (+.f64 (atan.f64 (+.f64 N 1)) (atan.f64 N)) 3))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (+.f64 (atan.f64 (+.f64 N 1)) (atan.f64 N))))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (+.f64 (atan.f64 (+.f64 N 1)) (atan.f64 N))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (+.f64 (atan.f64 (+.f64 N 1)) (atan.f64 N)))))))) |
((#(struct:change #<rule egg-rr> (2) ((x -.f64 (+.f64 1 (cbrt.f64 (atan.f64 (+.f64 N 1)))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (cbrt.f64 (atan.f64 (+.f64 N 1))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (atan.f64 (+.f64 N 1))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (cbrt.f64 (atan.f64 (+.f64 N 1)))) 2) (cbrt.f64 (cbrt.f64 (atan.f64 (+.f64 N 1)))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (cbrt.f64 (atan.f64 (+.f64 N 1)))) (pow.f64 (cbrt.f64 (cbrt.f64 (atan.f64 (+.f64 N 1)))) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (atan.f64 (+.f64 N 1)) 1/6) (pow.f64 (atan.f64 (+.f64 N 1)) 1/6))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (cbrt.f64 (pow.f64 (cbrt.f64 (atan.f64 (+.f64 N 1))) 4))) (sqrt.f64 (pow.f64 (cbrt.f64 (cbrt.f64 (atan.f64 (+.f64 N 1)))) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 1 1/3) (cbrt.f64 (atan.f64 (+.f64 N 1))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (sqrt.f64 (atan.f64 (+.f64 N 1))) 1/3) (pow.f64 (sqrt.f64 (atan.f64 (+.f64 N 1))) 1/3))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (atan.f64 (+.f64 N 1)) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (atan.f64 (+.f64 N 1))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (cbrt.f64 (atan.f64 (+.f64 N 1))) 2) 1/2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (cbrt.f64 (atan.f64 (+.f64 N 1)))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (atan.f64 (+.f64 N 1)) 1/6) 2)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (cbrt.f64 (atan.f64 (+.f64 N 1))) 2))))) (#(struct:change #<rule egg-rr> (2) ((x fabs.f64 (cbrt.f64 (atan.f64 (+.f64 N 1))))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (cbrt.f64 (atan.f64 (+.f64 N 1)))))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (cbrt.f64 (atan.f64 (+.f64 N 1)))))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (cbrt.f64 (atan.f64 (+.f64 N 1)))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (cbrt.f64 (atan.f64 (+.f64 N 1))))))))) |
((#(struct:change #<rule egg-rr> (2) ((x -.f64 (+.f64 1 (pow.f64 (cbrt.f64 (atan.f64 (+.f64 N 1))) 2)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (pow.f64 (cbrt.f64 (atan.f64 (+.f64 N 1))) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (atan.f64 (+.f64 N 1))) (cbrt.f64 (atan.f64 (+.f64 N 1))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (atan.f64 (+.f64 N 1))) 2) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (cbrt.f64 (atan.f64 (+.f64 N 1)))) 2) (cbrt.f64 (pow.f64 (cbrt.f64 (atan.f64 (+.f64 N 1))) 4)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (cbrt.f64 (atan.f64 (+.f64 N 1)))) 2) (*.f64 (cbrt.f64 (cbrt.f64 (atan.f64 (+.f64 N 1)))) (cbrt.f64 (atan.f64 (+.f64 N 1)))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (pow.f64 (cbrt.f64 (atan.f64 (+.f64 N 1))) 4)) (pow.f64 (cbrt.f64 (cbrt.f64 (atan.f64 (+.f64 N 1)))) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (atan.f64 (+.f64 N 1))) (pow.f64 (atan.f64 (+.f64 N 1)) 1/6))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (atan.f64 (+.f64 N 1)) 1/6) (*.f64 (pow.f64 (atan.f64 (+.f64 N 1)) 1/6) (cbrt.f64 (atan.f64 (+.f64 N 1)))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 (cbrt.f64 (atan.f64 (+.f64 N 1))) (pow.f64 (cbrt.f64 (cbrt.f64 (atan.f64 (+.f64 N 1)))) 2)) (cbrt.f64 (cbrt.f64 (atan.f64 (+.f64 N 1)))))))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (cbrt.f64 (atan.f64 (+.f64 N 1))) 4))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (pow.f64 (cbrt.f64 (atan.f64 (+.f64 N 1))) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (atan.f64 (+.f64 N 1)) 2))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (pow.f64 (cbrt.f64 (atan.f64 (+.f64 N 1))) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (pow.f64 (cbrt.f64 (atan.f64 (+.f64 N 1))) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 2 (log.f64 (cbrt.f64 (atan.f64 (+.f64 N 1)))))))))) |
| 1× | egg-herbie |
| 1003× | fma-def_binary64 |
| 772× | fma-neg_binary64 |
| 506× | associate-*l*_binary64 |
| 390× | distribute-rgt-neg-in_binary64 |
| 361× | associate-*r*_binary64 |
Useful iterations: 1 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 23 | 396 |
| 1 | 68 | 360 |
| 2 | 104 | 360 |
| 3 | 168 | 360 |
| 4 | 286 | 360 |
| 5 | 664 | 360 |
| 6 | 2252 | 360 |
| 7 | 3256 | 360 |
| 8 | 4885 | 360 |
| 9 | 6855 | 360 |
| 1× | node limit |
| Inputs |
|---|
(-.f64 (*.f64 (pow.f64 1 1/3) (atan.f64 (+.f64 N 1))) (atan.f64 N)) |
(-.f64 (*.f64 (pow.f64 1 1/3) (atan.f64 (+.f64 N 1))) (atan.f64 N)) |
(-.f64 (*.f64 (pow.f64 1 1/3) (atan.f64 (+.f64 N 1))) (atan.f64 N)) |
(-.f64 (*.f64 (pow.f64 1 1/3) (atan.f64 (+.f64 N 1))) (atan.f64 N)) |
(-.f64 (*.f64 (pow.f64 1 1/3) (atan.f64 (+.f64 N 1))) (atan.f64 N)) |
(-.f64 (*.f64 (pow.f64 1 1/3) (atan.f64 (+.f64 N 1))) (atan.f64 N)) |
(-.f64 (*.f64 (pow.f64 1 1/3) (atan.f64 (+.f64 N 1))) (atan.f64 N)) |
(-.f64 (*.f64 (pow.f64 1 1/3) (atan.f64 (+.f64 N 1))) (atan.f64 N)) |
(-.f64 (*.f64 (pow.f64 1 1/3) (atan.f64 (-.f64 1 (*.f64 -1 N)))) (atan.f64 N)) |
(-.f64 (*.f64 (pow.f64 1 1/3) (atan.f64 (-.f64 1 (*.f64 -1 N)))) (atan.f64 N)) |
(-.f64 (*.f64 (pow.f64 1 1/3) (atan.f64 (-.f64 1 (*.f64 -1 N)))) (atan.f64 N)) |
(-.f64 (*.f64 (pow.f64 1 1/3) (atan.f64 (-.f64 1 (*.f64 -1 N)))) (atan.f64 N)) |
(pow.f64 (atan.f64 (+.f64 N 1)) 1/3) |
(pow.f64 (atan.f64 (+.f64 N 1)) 1/3) |
(pow.f64 (atan.f64 (+.f64 N 1)) 1/3) |
(pow.f64 (atan.f64 (+.f64 N 1)) 1/3) |
(pow.f64 (atan.f64 (+.f64 N 1)) 1/3) |
(pow.f64 (atan.f64 (+.f64 N 1)) 1/3) |
(pow.f64 (atan.f64 (+.f64 N 1)) 1/3) |
(pow.f64 (atan.f64 (+.f64 N 1)) 1/3) |
(pow.f64 (atan.f64 (-.f64 1 (*.f64 -1 N))) 1/3) |
(pow.f64 (atan.f64 (-.f64 1 (*.f64 -1 N))) 1/3) |
(pow.f64 (atan.f64 (-.f64 1 (*.f64 -1 N))) 1/3) |
(pow.f64 (atan.f64 (-.f64 1 (*.f64 -1 N))) 1/3) |
(pow.f64 (pow.f64 (atan.f64 (+.f64 N 1)) 2) 1/3) |
(pow.f64 (pow.f64 (atan.f64 (+.f64 N 1)) 2) 1/3) |
(pow.f64 (pow.f64 (atan.f64 (+.f64 N 1)) 2) 1/3) |
(pow.f64 (pow.f64 (atan.f64 (+.f64 N 1)) 2) 1/3) |
(pow.f64 (pow.f64 (atan.f64 (+.f64 N 1)) 2) 1/3) |
(pow.f64 (pow.f64 (atan.f64 (+.f64 N 1)) 2) 1/3) |
(pow.f64 (pow.f64 (atan.f64 (+.f64 N 1)) 2) 1/3) |
(pow.f64 (pow.f64 (atan.f64 (+.f64 N 1)) 2) 1/3) |
(pow.f64 (pow.f64 (atan.f64 (-.f64 1 (*.f64 -1 N))) 2) 1/3) |
(pow.f64 (pow.f64 (atan.f64 (-.f64 1 (*.f64 -1 N))) 2) 1/3) |
(pow.f64 (pow.f64 (atan.f64 (-.f64 1 (*.f64 -1 N))) 2) 1/3) |
(pow.f64 (pow.f64 (atan.f64 (-.f64 1 (*.f64 -1 N))) 2) 1/3) |
| Outputs |
|---|
(-.f64 (*.f64 (pow.f64 1 1/3) (atan.f64 (+.f64 N 1))) (atan.f64 N)) |
(-.f64 (*.f64 1 (atan.f64 (+.f64 1 N))) (atan.f64 N)) |
(-.f64 (atan.f64 (+.f64 1 N)) (atan.f64 N)) |
(-.f64 (*.f64 (pow.f64 1 1/3) (atan.f64 (+.f64 N 1))) (atan.f64 N)) |
(-.f64 (*.f64 1 (atan.f64 (+.f64 1 N))) (atan.f64 N)) |
(-.f64 (atan.f64 (+.f64 1 N)) (atan.f64 N)) |
(-.f64 (*.f64 (pow.f64 1 1/3) (atan.f64 (+.f64 N 1))) (atan.f64 N)) |
(-.f64 (*.f64 1 (atan.f64 (+.f64 1 N))) (atan.f64 N)) |
(-.f64 (atan.f64 (+.f64 1 N)) (atan.f64 N)) |
(-.f64 (*.f64 (pow.f64 1 1/3) (atan.f64 (+.f64 N 1))) (atan.f64 N)) |
(-.f64 (*.f64 1 (atan.f64 (+.f64 1 N))) (atan.f64 N)) |
(-.f64 (atan.f64 (+.f64 1 N)) (atan.f64 N)) |
(-.f64 (*.f64 (pow.f64 1 1/3) (atan.f64 (+.f64 N 1))) (atan.f64 N)) |
(-.f64 (*.f64 1 (atan.f64 (+.f64 1 N))) (atan.f64 N)) |
(-.f64 (atan.f64 (+.f64 1 N)) (atan.f64 N)) |
(-.f64 (*.f64 (pow.f64 1 1/3) (atan.f64 (+.f64 N 1))) (atan.f64 N)) |
(-.f64 (*.f64 1 (atan.f64 (+.f64 1 N))) (atan.f64 N)) |
(-.f64 (atan.f64 (+.f64 1 N)) (atan.f64 N)) |
(-.f64 (*.f64 (pow.f64 1 1/3) (atan.f64 (+.f64 N 1))) (atan.f64 N)) |
(-.f64 (*.f64 1 (atan.f64 (+.f64 1 N))) (atan.f64 N)) |
(-.f64 (atan.f64 (+.f64 1 N)) (atan.f64 N)) |
(-.f64 (*.f64 (pow.f64 1 1/3) (atan.f64 (+.f64 N 1))) (atan.f64 N)) |
(-.f64 (*.f64 1 (atan.f64 (+.f64 1 N))) (atan.f64 N)) |
(-.f64 (atan.f64 (+.f64 1 N)) (atan.f64 N)) |
(-.f64 (*.f64 (pow.f64 1 1/3) (atan.f64 (-.f64 1 (*.f64 -1 N)))) (atan.f64 N)) |
(-.f64 (*.f64 1 (atan.f64 (+.f64 1 N))) (atan.f64 N)) |
(-.f64 (atan.f64 (+.f64 1 N)) (atan.f64 N)) |
(-.f64 (*.f64 (pow.f64 1 1/3) (atan.f64 (-.f64 1 (*.f64 -1 N)))) (atan.f64 N)) |
(-.f64 (*.f64 1 (atan.f64 (+.f64 1 N))) (atan.f64 N)) |
(-.f64 (atan.f64 (+.f64 1 N)) (atan.f64 N)) |
(-.f64 (*.f64 (pow.f64 1 1/3) (atan.f64 (-.f64 1 (*.f64 -1 N)))) (atan.f64 N)) |
(-.f64 (*.f64 1 (atan.f64 (+.f64 1 N))) (atan.f64 N)) |
(-.f64 (atan.f64 (+.f64 1 N)) (atan.f64 N)) |
(-.f64 (*.f64 (pow.f64 1 1/3) (atan.f64 (-.f64 1 (*.f64 -1 N)))) (atan.f64 N)) |
(-.f64 (*.f64 1 (atan.f64 (+.f64 1 N))) (atan.f64 N)) |
(-.f64 (atan.f64 (+.f64 1 N)) (atan.f64 N)) |
(pow.f64 (atan.f64 (+.f64 N 1)) 1/3) |
(cbrt.f64 (atan.f64 (+.f64 1 N))) |
(pow.f64 (atan.f64 (+.f64 N 1)) 1/3) |
(cbrt.f64 (atan.f64 (+.f64 1 N))) |
(pow.f64 (atan.f64 (+.f64 N 1)) 1/3) |
(cbrt.f64 (atan.f64 (+.f64 1 N))) |
(pow.f64 (atan.f64 (+.f64 N 1)) 1/3) |
(cbrt.f64 (atan.f64 (+.f64 1 N))) |
(pow.f64 (atan.f64 (+.f64 N 1)) 1/3) |
(cbrt.f64 (atan.f64 (+.f64 1 N))) |
(pow.f64 (atan.f64 (+.f64 N 1)) 1/3) |
(cbrt.f64 (atan.f64 (+.f64 1 N))) |
(pow.f64 (atan.f64 (+.f64 N 1)) 1/3) |
(cbrt.f64 (atan.f64 (+.f64 1 N))) |
(pow.f64 (atan.f64 (+.f64 N 1)) 1/3) |
(cbrt.f64 (atan.f64 (+.f64 1 N))) |
(pow.f64 (atan.f64 (-.f64 1 (*.f64 -1 N))) 1/3) |
(cbrt.f64 (atan.f64 (+.f64 1 N))) |
(pow.f64 (atan.f64 (-.f64 1 (*.f64 -1 N))) 1/3) |
(cbrt.f64 (atan.f64 (+.f64 1 N))) |
(pow.f64 (atan.f64 (-.f64 1 (*.f64 -1 N))) 1/3) |
(cbrt.f64 (atan.f64 (+.f64 1 N))) |
(pow.f64 (atan.f64 (-.f64 1 (*.f64 -1 N))) 1/3) |
(cbrt.f64 (atan.f64 (+.f64 1 N))) |
(pow.f64 (pow.f64 (atan.f64 (+.f64 N 1)) 2) 1/3) |
(cbrt.f64 (pow.f64 (atan.f64 (+.f64 1 N)) 2)) |
(pow.f64 (pow.f64 (atan.f64 (+.f64 N 1)) 2) 1/3) |
(cbrt.f64 (pow.f64 (atan.f64 (+.f64 1 N)) 2)) |
(pow.f64 (pow.f64 (atan.f64 (+.f64 N 1)) 2) 1/3) |
(cbrt.f64 (pow.f64 (atan.f64 (+.f64 1 N)) 2)) |
(pow.f64 (pow.f64 (atan.f64 (+.f64 N 1)) 2) 1/3) |
(cbrt.f64 (pow.f64 (atan.f64 (+.f64 1 N)) 2)) |
(pow.f64 (pow.f64 (atan.f64 (+.f64 N 1)) 2) 1/3) |
(cbrt.f64 (pow.f64 (atan.f64 (+.f64 1 N)) 2)) |
(pow.f64 (pow.f64 (atan.f64 (+.f64 N 1)) 2) 1/3) |
(cbrt.f64 (pow.f64 (atan.f64 (+.f64 1 N)) 2)) |
(pow.f64 (pow.f64 (atan.f64 (+.f64 N 1)) 2) 1/3) |
(cbrt.f64 (pow.f64 (atan.f64 (+.f64 1 N)) 2)) |
(pow.f64 (pow.f64 (atan.f64 (+.f64 N 1)) 2) 1/3) |
(cbrt.f64 (pow.f64 (atan.f64 (+.f64 1 N)) 2)) |
(pow.f64 (pow.f64 (atan.f64 (-.f64 1 (*.f64 -1 N))) 2) 1/3) |
(cbrt.f64 (pow.f64 (atan.f64 (+.f64 1 N)) 2)) |
(pow.f64 (pow.f64 (atan.f64 (-.f64 1 (*.f64 -1 N))) 2) 1/3) |
(cbrt.f64 (pow.f64 (atan.f64 (+.f64 1 N)) 2)) |
(pow.f64 (pow.f64 (atan.f64 (-.f64 1 (*.f64 -1 N))) 2) 1/3) |
(cbrt.f64 (pow.f64 (atan.f64 (+.f64 1 N)) 2)) |
(pow.f64 (pow.f64 (atan.f64 (-.f64 1 (*.f64 -1 N))) 2) 1/3) |
(cbrt.f64 (pow.f64 (atan.f64 (+.f64 1 N)) 2)) |
Compiled 7168 to 4161 computations (42% saved)
1 alts after pruning (1 fresh and 0 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 344 | 1 | 345 |
| Fresh | 0 | 0 | 0 |
| Picked | 1 | 0 | 1 |
| Done | 2 | 0 | 2 |
| Total | 347 | 1 | 348 |
| Status | Error | Program |
|---|---|---|
| ▶ | 0.2b | (atan2.f64 1 (+.f64 1 (*.f64 N (+.f64 N 1)))) |
Compiled 10 to 8 computations (20% saved)
Found 1 expressions with local error:
| New | Error | Program |
|---|---|---|
| ✓ | 0.2b | (atan2.f64 1 (+.f64 1 (*.f64 N (+.f64 N 1)))) |
Compiled 27 to 19 computations (29.6% saved)
3 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 0.0ms | N | @ | 0 | (atan2.f64 1 (+.f64 1 (*.f64 N (+.f64 N 1)))) |
| 0.0ms | N | @ | inf | (atan2.f64 1 (+.f64 1 (*.f64 N (+.f64 N 1)))) |
| 0.0ms | N | @ | -inf | (atan2.f64 1 (+.f64 1 (*.f64 N (+.f64 N 1)))) |
| 1× | batch-egg-rewrite |
| 798× | pow1_binary64 |
| 742× | log1p-expm1-u_binary64 |
| 742× | expm1-log1p-u_binary64 |
| 741× | add-log-exp_binary64 |
| 727× | add-exp-log_binary64 |
Useful iterations: 1 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 7 | 13 |
| 1 | 152 | 11 |
| 2 | 2057 | 11 |
| 1× | node limit |
| Inputs |
|---|
(atan2.f64 1 (+.f64 1 (*.f64 N (+.f64 N 1)))) |
| Outputs |
|---|
((#(struct:change #<rule egg-rr> (2) ((x -.f64 (+.f64 1 (atan2.f64 1 (+.f64 1 (fma.f64 N N N)))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N)))) (pow.f64 (cbrt.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N)))) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N)))) 2) (cbrt.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N)))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N)))) (sqrt.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N)))))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N)))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N)))) 2)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N)))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))) 3))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N)))))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N)))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))))))))) |
| 1× | egg-herbie |
| 968× | fma-neg_binary64 |
| 532× | unswap-sqr_binary64 |
| 451× | distribute-rgt-neg-in_binary64 |
| 353× | cancel-sign-sub-inv_binary64 |
| 312× | neg-sub0_binary64 |
Useful iterations: 1 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 14 | 104 |
| 1 | 33 | 88 |
| 2 | 54 | 88 |
| 3 | 151 | 88 |
| 4 | 575 | 88 |
| 5 | 1638 | 88 |
| 6 | 3627 | 88 |
| 7 | 5662 | 88 |
| 8 | 7359 | 88 |
| 1× | node limit |
| Inputs |
|---|
(atan2.f64 1 (+.f64 N (+.f64 1 (pow.f64 N 2)))) |
(atan2.f64 1 (+.f64 N (+.f64 1 (pow.f64 N 2)))) |
(atan2.f64 1 (+.f64 N (+.f64 1 (pow.f64 N 2)))) |
(atan2.f64 1 (+.f64 N (+.f64 1 (pow.f64 N 2)))) |
(atan2.f64 1 (+.f64 1 (*.f64 N (-.f64 1 (*.f64 -1 N))))) |
(atan2.f64 1 (+.f64 1 (*.f64 N (-.f64 1 (*.f64 -1 N))))) |
(atan2.f64 1 (+.f64 1 (*.f64 N (-.f64 1 (*.f64 -1 N))))) |
(atan2.f64 1 (+.f64 1 (*.f64 N (-.f64 1 (*.f64 -1 N))))) |
| Outputs |
|---|
(atan2.f64 1 (+.f64 N (+.f64 1 (pow.f64 N 2)))) |
(atan2.f64 1 (+.f64 N (+.f64 1 (*.f64 N N)))) |
(atan2.f64 1 (+.f64 N (fma.f64 N N 1))) |
(atan2.f64 1 (+.f64 1 (fma.f64 N N N))) |
(atan2.f64 1 (fma.f64 N N (-.f64 N -1))) |
(atan2.f64 1 (-.f64 N (fma.f64 N N -1))) |
(atan2.f64 1 (+.f64 N (+.f64 1 (pow.f64 N 2)))) |
(atan2.f64 1 (+.f64 N (+.f64 1 (*.f64 N N)))) |
(atan2.f64 1 (+.f64 N (fma.f64 N N 1))) |
(atan2.f64 1 (+.f64 1 (fma.f64 N N N))) |
(atan2.f64 1 (fma.f64 N N (-.f64 N -1))) |
(atan2.f64 1 (-.f64 N (fma.f64 N N -1))) |
(atan2.f64 1 (+.f64 N (+.f64 1 (pow.f64 N 2)))) |
(atan2.f64 1 (+.f64 N (+.f64 1 (*.f64 N N)))) |
(atan2.f64 1 (+.f64 N (fma.f64 N N 1))) |
(atan2.f64 1 (+.f64 1 (fma.f64 N N N))) |
(atan2.f64 1 (fma.f64 N N (-.f64 N -1))) |
(atan2.f64 1 (-.f64 N (fma.f64 N N -1))) |
(atan2.f64 1 (+.f64 N (+.f64 1 (pow.f64 N 2)))) |
(atan2.f64 1 (+.f64 N (+.f64 1 (*.f64 N N)))) |
(atan2.f64 1 (+.f64 N (fma.f64 N N 1))) |
(atan2.f64 1 (+.f64 1 (fma.f64 N N N))) |
(atan2.f64 1 (fma.f64 N N (-.f64 N -1))) |
(atan2.f64 1 (-.f64 N (fma.f64 N N -1))) |
(atan2.f64 1 (+.f64 1 (*.f64 N (-.f64 1 (*.f64 -1 N))))) |
(atan2.f64 1 (+.f64 N (+.f64 1 (*.f64 N N)))) |
(atan2.f64 1 (+.f64 N (fma.f64 N N 1))) |
(atan2.f64 1 (+.f64 1 (fma.f64 N N N))) |
(atan2.f64 1 (fma.f64 N N (-.f64 N -1))) |
(atan2.f64 1 (-.f64 N (fma.f64 N N -1))) |
(atan2.f64 1 (+.f64 1 (*.f64 N (-.f64 1 (*.f64 -1 N))))) |
(atan2.f64 1 (+.f64 N (+.f64 1 (*.f64 N N)))) |
(atan2.f64 1 (+.f64 N (fma.f64 N N 1))) |
(atan2.f64 1 (+.f64 1 (fma.f64 N N N))) |
(atan2.f64 1 (fma.f64 N N (-.f64 N -1))) |
(atan2.f64 1 (-.f64 N (fma.f64 N N -1))) |
(atan2.f64 1 (+.f64 1 (*.f64 N (-.f64 1 (*.f64 -1 N))))) |
(atan2.f64 1 (+.f64 N (+.f64 1 (*.f64 N N)))) |
(atan2.f64 1 (+.f64 N (fma.f64 N N 1))) |
(atan2.f64 1 (+.f64 1 (fma.f64 N N N))) |
(atan2.f64 1 (fma.f64 N N (-.f64 N -1))) |
(atan2.f64 1 (-.f64 N (fma.f64 N N -1))) |
(atan2.f64 1 (+.f64 1 (*.f64 N (-.f64 1 (*.f64 -1 N))))) |
(atan2.f64 1 (+.f64 N (+.f64 1 (*.f64 N N)))) |
(atan2.f64 1 (+.f64 N (fma.f64 N N 1))) |
(atan2.f64 1 (+.f64 1 (fma.f64 N N N))) |
(atan2.f64 1 (fma.f64 N N (-.f64 N -1))) |
(atan2.f64 1 (-.f64 N (fma.f64 N N -1))) |
Compiled 228 to 146 computations (36% saved)
3 alts after pruning (2 fresh and 1 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 17 | 2 | 19 |
| Fresh | 0 | 0 | 0 |
| Picked | 0 | 1 | 1 |
| Done | 0 | 0 | 0 |
| Total | 17 | 3 | 20 |
| Status | Error | Program |
|---|---|---|
| ✓ | 0.2b | (atan2.f64 1 (+.f64 1 (*.f64 N (+.f64 N 1)))) |
| ▶ | 0.8b | (pow.f64 (sqrt.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N)))) 2) |
| ▶ | 11.0b | (cbrt.f64 (pow.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))) 3)) |
Compiled 34 to 26 computations (23.5% saved)
Found 3 expressions with local error:
| New | Error | Program |
|---|---|---|
| ✓ | 0.2b | (atan2.f64 1 (+.f64 1 (fma.f64 N N N))) |
| ✓ | 0.5b | (pow.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))) 3) |
| ✓ | 11.0b | (cbrt.f64 (pow.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))) 3)) |
Compiled 43 to 23 computations (46.5% saved)
9 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 2.0ms | N | @ | 0 | (pow.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))) 3) |
| 1.0ms | N | @ | inf | (pow.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))) 3) |
| 1.0ms | N | @ | -inf | (pow.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))) 3) |
| 0.0ms | N | @ | 0 | (cbrt.f64 (pow.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))) 3)) |
| 0.0ms | N | @ | -inf | (cbrt.f64 (pow.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))) 3)) |
| 1× | batch-egg-rewrite |
| 761× | pow1_binary64 |
| 714× | add-log-exp_binary64 |
| 713× | log1p-expm1-u_binary64 |
| 713× | expm1-log1p-u_binary64 |
| 698× | add-exp-log_binary64 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 9 | 36 |
| 1 | 188 | 36 |
| 2 | 1975 | 36 |
| 1× | node limit |
| Inputs |
|---|
(cbrt.f64 (pow.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))) 3)) |
(pow.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))) 3) |
(atan2.f64 1 (+.f64 1 (fma.f64 N N N))) |
| Outputs |
|---|
((#(struct:change #<rule egg-rr> (2) ((x -.f64 (+.f64 1 (atan2.f64 1 (+.f64 1 (fma.f64 N N N)))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N)))) (pow.f64 (cbrt.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N)))) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N)))) (pow.f64 (pow.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))) 2) 1/3))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N)))) 2) (cbrt.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N)))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N)))) (sqrt.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N)))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 1 1/3) (atan2.f64 1 (+.f64 1 (fma.f64 N N N))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (pow.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))) 2) 1/3) (cbrt.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N)))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (pow.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))) 3/2) 1/3) (pow.f64 (pow.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))) 3/2) 1/3))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N)))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N)))) 2)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N)))))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N)))))))) (#(struct:change #<rule egg-rr> (2) ((x atan2.f64 1 (+.f64 1 (fma.f64 N N N)))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N)))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))))))))) |
((#(struct:change #<rule egg-rr> (2) ((x -.f64 (+.f64 1 (pow.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))) 3)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (pow.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))) 3))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))) (pow.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))) 3) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))) 2) (atan2.f64 1 (+.f64 1 (fma.f64 N N N))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N)))) 2) (*.f64 (cbrt.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N)))) (pow.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N)))) (*.f64 (sqrt.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N)))) (pow.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))) 3/2) (pow.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))) 3/2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (pow.f64 (cbrt.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N)))) 2) 3) (atan2.f64 1 (+.f64 1 (fma.f64 N N N))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (sqrt.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N)))) 3) (pow.f64 (sqrt.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N)))) 3))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 (pow.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))) 2) 1) (atan2.f64 1 (+.f64 1 (fma.f64 N N N))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 (pow.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))) 2) (pow.f64 (cbrt.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N)))) 2)) (cbrt.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N)))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 (pow.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))) 2) (sqrt.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))))) (sqrt.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N)))))))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))) 6))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (pow.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))) 3)))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (pow.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))) 3) 3))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (pow.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))) 3)))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (pow.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))) 3)))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 3 (log.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N)))))))))) |
((#(struct:change #<rule egg-rr> (2) ((x -.f64 (+.f64 1 (atan2.f64 1 (+.f64 1 (fma.f64 N N N)))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N)))) (pow.f64 (cbrt.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N)))) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N)))) (pow.f64 (pow.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))) 2) 1/3))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N)))) 2) (cbrt.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N)))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N)))) (sqrt.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N)))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 1 1/3) (atan2.f64 1 (+.f64 1 (fma.f64 N N N))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (pow.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))) 2) 1/3) (cbrt.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N)))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (pow.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))) 3/2) 1/3) (pow.f64 (pow.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))) 3/2) 1/3))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N)))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N)))) 2)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N)))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))) 3))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N)))))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N)))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))))))))) |
| 1× | egg-herbie |
| 1274× | sqr-pow_binary64 |
| 676× | cube-prod_binary64 |
| 666× | pow-sqr_binary64 |
| 560× | fabs-mul_binary64 |
| 374× | unpow3_binary64 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 8 | 432 |
| 1 | 21 | 432 |
| 2 | 32 | 432 |
| 3 | 50 | 432 |
| 4 | 79 | 432 |
| 5 | 166 | 432 |
| 6 | 553 | 432 |
| 7 | 1227 | 432 |
| 8 | 1319 | 432 |
| 9 | 1453 | 432 |
| 10 | 1611 | 432 |
| 11 | 1845 | 432 |
| 12 | 2167 | 432 |
| 13 | 2589 | 432 |
| 14 | 3091 | 432 |
| 15 | 3693 | 432 |
| 16 | 4417 | 432 |
| 17 | 4738 | 432 |
| 18 | 5020 | 432 |
| 19 | 5244 | 432 |
| 20 | 5422 | 432 |
| 21 | 5506 | 432 |
| 22 | 6446 | 432 |
| 23 | 7420 | 432 |
| 24 | 7886 | 432 |
| 1× | node limit |
| Inputs |
|---|
(atan2.f64 1 (+.f64 (fma.f64 N N N) 1)) |
(atan2.f64 1 (+.f64 (fma.f64 N N N) 1)) |
(atan2.f64 1 (+.f64 (fma.f64 N N N) 1)) |
(atan2.f64 1 (+.f64 (fma.f64 N N N) 1)) |
(atan2.f64 1 (+.f64 (fma.f64 N N N) 1)) |
(atan2.f64 1 (+.f64 (fma.f64 N N N) 1)) |
(atan2.f64 1 (+.f64 (fma.f64 N N N) 1)) |
(atan2.f64 1 (+.f64 (fma.f64 N N N) 1)) |
(atan2.f64 1 (+.f64 (fma.f64 N N N) 1)) |
(atan2.f64 1 (+.f64 (fma.f64 N N N) 1)) |
(atan2.f64 1 (+.f64 (fma.f64 N N N) 1)) |
(atan2.f64 1 (+.f64 (fma.f64 N N N) 1)) |
(pow.f64 (atan2.f64 1 (+.f64 (fma.f64 N N N) 1)) 3) |
(pow.f64 (atan2.f64 1 (+.f64 (fma.f64 N N N) 1)) 3) |
(pow.f64 (atan2.f64 1 (+.f64 (fma.f64 N N N) 1)) 3) |
(pow.f64 (atan2.f64 1 (+.f64 (fma.f64 N N N) 1)) 3) |
(pow.f64 (atan2.f64 1 (+.f64 (fma.f64 N N N) 1)) 3) |
(pow.f64 (atan2.f64 1 (+.f64 (fma.f64 N N N) 1)) 3) |
(pow.f64 (atan2.f64 1 (+.f64 (fma.f64 N N N) 1)) 3) |
(pow.f64 (atan2.f64 1 (+.f64 (fma.f64 N N N) 1)) 3) |
(pow.f64 (atan2.f64 1 (+.f64 (fma.f64 N N N) 1)) 3) |
(pow.f64 (atan2.f64 1 (+.f64 (fma.f64 N N N) 1)) 3) |
(pow.f64 (atan2.f64 1 (+.f64 (fma.f64 N N N) 1)) 3) |
(pow.f64 (atan2.f64 1 (+.f64 (fma.f64 N N N) 1)) 3) |
(atan2.f64 1 (+.f64 (fma.f64 N N N) 1)) |
(atan2.f64 1 (+.f64 (fma.f64 N N N) 1)) |
(atan2.f64 1 (+.f64 (fma.f64 N N N) 1)) |
(atan2.f64 1 (+.f64 (fma.f64 N N N) 1)) |
(atan2.f64 1 (+.f64 (fma.f64 N N N) 1)) |
(atan2.f64 1 (+.f64 (fma.f64 N N N) 1)) |
(atan2.f64 1 (+.f64 (fma.f64 N N N) 1)) |
(atan2.f64 1 (+.f64 (fma.f64 N N N) 1)) |
(atan2.f64 1 (+.f64 (fma.f64 N N N) 1)) |
(atan2.f64 1 (+.f64 (fma.f64 N N N) 1)) |
(atan2.f64 1 (+.f64 (fma.f64 N N N) 1)) |
(atan2.f64 1 (+.f64 (fma.f64 N N N) 1)) |
| Outputs |
|---|
(atan2.f64 1 (+.f64 (fma.f64 N N N) 1)) |
(atan2.f64 1 (+.f64 1 (fma.f64 N N N))) |
(atan2.f64 1 (+.f64 (fma.f64 N N N) 1)) |
(atan2.f64 1 (+.f64 1 (fma.f64 N N N))) |
(atan2.f64 1 (+.f64 (fma.f64 N N N) 1)) |
(atan2.f64 1 (+.f64 1 (fma.f64 N N N))) |
(atan2.f64 1 (+.f64 (fma.f64 N N N) 1)) |
(atan2.f64 1 (+.f64 1 (fma.f64 N N N))) |
(atan2.f64 1 (+.f64 (fma.f64 N N N) 1)) |
(atan2.f64 1 (+.f64 1 (fma.f64 N N N))) |
(atan2.f64 1 (+.f64 (fma.f64 N N N) 1)) |
(atan2.f64 1 (+.f64 1 (fma.f64 N N N))) |
(atan2.f64 1 (+.f64 (fma.f64 N N N) 1)) |
(atan2.f64 1 (+.f64 1 (fma.f64 N N N))) |
(atan2.f64 1 (+.f64 (fma.f64 N N N) 1)) |
(atan2.f64 1 (+.f64 1 (fma.f64 N N N))) |
(atan2.f64 1 (+.f64 (fma.f64 N N N) 1)) |
(atan2.f64 1 (+.f64 1 (fma.f64 N N N))) |
(atan2.f64 1 (+.f64 (fma.f64 N N N) 1)) |
(atan2.f64 1 (+.f64 1 (fma.f64 N N N))) |
(atan2.f64 1 (+.f64 (fma.f64 N N N) 1)) |
(atan2.f64 1 (+.f64 1 (fma.f64 N N N))) |
(atan2.f64 1 (+.f64 (fma.f64 N N N) 1)) |
(atan2.f64 1 (+.f64 1 (fma.f64 N N N))) |
(pow.f64 (atan2.f64 1 (+.f64 (fma.f64 N N N) 1)) 3) |
(pow.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))) 3) |
(pow.f64 (atan2.f64 1 (+.f64 (fma.f64 N N N) 1)) 3) |
(pow.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))) 3) |
(pow.f64 (atan2.f64 1 (+.f64 (fma.f64 N N N) 1)) 3) |
(pow.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))) 3) |
(pow.f64 (atan2.f64 1 (+.f64 (fma.f64 N N N) 1)) 3) |
(pow.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))) 3) |
(pow.f64 (atan2.f64 1 (+.f64 (fma.f64 N N N) 1)) 3) |
(pow.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))) 3) |
(pow.f64 (atan2.f64 1 (+.f64 (fma.f64 N N N) 1)) 3) |
(pow.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))) 3) |
(pow.f64 (atan2.f64 1 (+.f64 (fma.f64 N N N) 1)) 3) |
(pow.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))) 3) |
(pow.f64 (atan2.f64 1 (+.f64 (fma.f64 N N N) 1)) 3) |
(pow.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))) 3) |
(pow.f64 (atan2.f64 1 (+.f64 (fma.f64 N N N) 1)) 3) |
(pow.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))) 3) |
(pow.f64 (atan2.f64 1 (+.f64 (fma.f64 N N N) 1)) 3) |
(pow.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))) 3) |
(pow.f64 (atan2.f64 1 (+.f64 (fma.f64 N N N) 1)) 3) |
(pow.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))) 3) |
(pow.f64 (atan2.f64 1 (+.f64 (fma.f64 N N N) 1)) 3) |
(pow.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))) 3) |
(atan2.f64 1 (+.f64 (fma.f64 N N N) 1)) |
(atan2.f64 1 (+.f64 1 (fma.f64 N N N))) |
(atan2.f64 1 (+.f64 (fma.f64 N N N) 1)) |
(atan2.f64 1 (+.f64 1 (fma.f64 N N N))) |
(atan2.f64 1 (+.f64 (fma.f64 N N N) 1)) |
(atan2.f64 1 (+.f64 1 (fma.f64 N N N))) |
(atan2.f64 1 (+.f64 (fma.f64 N N N) 1)) |
(atan2.f64 1 (+.f64 1 (fma.f64 N N N))) |
(atan2.f64 1 (+.f64 (fma.f64 N N N) 1)) |
(atan2.f64 1 (+.f64 1 (fma.f64 N N N))) |
(atan2.f64 1 (+.f64 (fma.f64 N N N) 1)) |
(atan2.f64 1 (+.f64 1 (fma.f64 N N N))) |
(atan2.f64 1 (+.f64 (fma.f64 N N N) 1)) |
(atan2.f64 1 (+.f64 1 (fma.f64 N N N))) |
(atan2.f64 1 (+.f64 (fma.f64 N N N) 1)) |
(atan2.f64 1 (+.f64 1 (fma.f64 N N N))) |
(atan2.f64 1 (+.f64 (fma.f64 N N N) 1)) |
(atan2.f64 1 (+.f64 1 (fma.f64 N N N))) |
(atan2.f64 1 (+.f64 (fma.f64 N N N) 1)) |
(atan2.f64 1 (+.f64 1 (fma.f64 N N N))) |
(atan2.f64 1 (+.f64 (fma.f64 N N N) 1)) |
(atan2.f64 1 (+.f64 1 (fma.f64 N N N))) |
(atan2.f64 1 (+.f64 (fma.f64 N N N) 1)) |
(atan2.f64 1 (+.f64 1 (fma.f64 N N N))) |
Found 3 expressions with local error:
| New | Error | Program |
|---|---|---|
| 0.2b | (atan2.f64 1 (+.f64 1 (fma.f64 N N N))) | |
| ✓ | 0.6b | (pow.f64 (sqrt.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N)))) 2) |
| ✓ | 15.6b | (sqrt.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N)))) |
Compiled 42 to 22 computations (47.6% saved)
6 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 6.0ms | N | @ | 0 | (sqrt.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N)))) |
| 3.0ms | N | @ | -inf | (sqrt.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N)))) |
| 1.0ms | N | @ | -inf | (pow.f64 (sqrt.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N)))) 2) |
| 1.0ms | N | @ | inf | (pow.f64 (sqrt.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N)))) 2) |
| 1.0ms | N | @ | 0 | (pow.f64 (sqrt.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N)))) 2) |
| 1× | batch-egg-rewrite |
| 735× | pow1_binary64 |
| 684× | add-log-exp_binary64 |
| 683× | log1p-expm1-u_binary64 |
| 683× | expm1-log1p-u_binary64 |
| 669× | add-exp-log_binary64 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 9 | 24 |
| 1 | 186 | 24 |
| 2 | 1924 | 24 |
| 1× | node limit |
| Inputs |
|---|
(sqrt.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N)))) |
(pow.f64 (sqrt.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N)))) 2) |
| Outputs |
|---|
((#(struct:change #<rule egg-rr> (2) ((x -.f64 (+.f64 1 (sqrt.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (sqrt.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N)))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N)))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N)))) (cbrt.f64 (sqrt.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (sqrt.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))))) (cbrt.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N)))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))) 1/4) (pow.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))) 1/4))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (pow.f64 (cbrt.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N)))) 2)) (sqrt.f64 (cbrt.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 1 1/2) (sqrt.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N)))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (pow.f64 (cbrt.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N)))) 2) 1/2) (pow.f64 (cbrt.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N)))) 1/2))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))) 1/2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N)))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))) 3/2) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (sqrt.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))) 1/4) 2)))) (#(struct:change #<rule egg-rr> (2) ((x fabs.f64 (sqrt.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N)))))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (sqrt.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))) 3/2))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (sqrt.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))))))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (sqrt.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (sqrt.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N)))))))))) |
((#(struct:change #<rule egg-rr> (2) ((x -.f64 (+.f64 1 (atan2.f64 1 (+.f64 1 (fma.f64 N N N)))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N)))) (sqrt.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N)))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N)))) (pow.f64 (cbrt.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N)))) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N)))) (*.f64 (cbrt.f64 (sqrt.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))))) (sqrt.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N)))) 2) (cbrt.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N)))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))) 1/4) (*.f64 (pow.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))) 1/4) (sqrt.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 (sqrt.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N)))) (pow.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))) 1/4)) (pow.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))) 1/4))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 (sqrt.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N)))) (cbrt.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))))) (cbrt.f64 (sqrt.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))))))))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N)))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))) 3))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N)))))))) (#(struct:change #<rule egg-rr> (2) ((x atan2.f64 1 (+.f64 1 (fma.f64 N N N)))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N)))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))))))))) |
| 1× | egg-herbie |
| 25× | fma-def_binary64 |
| 6× | +-commutative_binary64 |
| 4× | distribute-lft-in_binary64 |
| 3× | distribute-rgt1-in_binary64 |
| 2× | *-commutative_binary64 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 7 | 288 |
| 1 | 12 | 288 |
| 2 | 18 | 288 |
| 3 | 27 | 288 |
| 4 | 35 | 288 |
| 5 | 39 | 288 |
| 6 | 51 | 288 |
| 7 | 64 | 288 |
| 8 | 69 | 288 |
| 9 | 70 | 288 |
| 1× | saturated |
| Inputs |
|---|
(sqrt.f64 (atan2.f64 1 (+.f64 (fma.f64 N N N) 1))) |
(sqrt.f64 (atan2.f64 1 (+.f64 (fma.f64 N N N) 1))) |
(sqrt.f64 (atan2.f64 1 (+.f64 (fma.f64 N N N) 1))) |
(sqrt.f64 (atan2.f64 1 (+.f64 (fma.f64 N N N) 1))) |
(sqrt.f64 (atan2.f64 1 (+.f64 (fma.f64 N N N) 1))) |
(sqrt.f64 (atan2.f64 1 (+.f64 (fma.f64 N N N) 1))) |
(sqrt.f64 (atan2.f64 1 (+.f64 (fma.f64 N N N) 1))) |
(sqrt.f64 (atan2.f64 1 (+.f64 (fma.f64 N N N) 1))) |
(sqrt.f64 (atan2.f64 1 (+.f64 (fma.f64 N N N) 1))) |
(sqrt.f64 (atan2.f64 1 (+.f64 (fma.f64 N N N) 1))) |
(sqrt.f64 (atan2.f64 1 (+.f64 (fma.f64 N N N) 1))) |
(sqrt.f64 (atan2.f64 1 (+.f64 (fma.f64 N N N) 1))) |
(atan2.f64 1 (+.f64 (fma.f64 N N N) 1)) |
(atan2.f64 1 (+.f64 (fma.f64 N N N) 1)) |
(atan2.f64 1 (+.f64 (fma.f64 N N N) 1)) |
(atan2.f64 1 (+.f64 (fma.f64 N N N) 1)) |
(atan2.f64 1 (+.f64 (fma.f64 N N N) 1)) |
(atan2.f64 1 (+.f64 (fma.f64 N N N) 1)) |
(atan2.f64 1 (+.f64 (fma.f64 N N N) 1)) |
(atan2.f64 1 (+.f64 (fma.f64 N N N) 1)) |
(atan2.f64 1 (+.f64 (fma.f64 N N N) 1)) |
(atan2.f64 1 (+.f64 (fma.f64 N N N) 1)) |
(atan2.f64 1 (+.f64 (fma.f64 N N N) 1)) |
(atan2.f64 1 (+.f64 (fma.f64 N N N) 1)) |
| Outputs |
|---|
(sqrt.f64 (atan2.f64 1 (+.f64 (fma.f64 N N N) 1))) |
(sqrt.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N)))) |
(sqrt.f64 (atan2.f64 1 (+.f64 (fma.f64 N N N) 1))) |
(sqrt.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N)))) |
(sqrt.f64 (atan2.f64 1 (+.f64 (fma.f64 N N N) 1))) |
(sqrt.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N)))) |
(sqrt.f64 (atan2.f64 1 (+.f64 (fma.f64 N N N) 1))) |
(sqrt.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N)))) |
(sqrt.f64 (atan2.f64 1 (+.f64 (fma.f64 N N N) 1))) |
(sqrt.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N)))) |
(sqrt.f64 (atan2.f64 1 (+.f64 (fma.f64 N N N) 1))) |
(sqrt.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N)))) |
(sqrt.f64 (atan2.f64 1 (+.f64 (fma.f64 N N N) 1))) |
(sqrt.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N)))) |
(sqrt.f64 (atan2.f64 1 (+.f64 (fma.f64 N N N) 1))) |
(sqrt.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N)))) |
(sqrt.f64 (atan2.f64 1 (+.f64 (fma.f64 N N N) 1))) |
(sqrt.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N)))) |
(sqrt.f64 (atan2.f64 1 (+.f64 (fma.f64 N N N) 1))) |
(sqrt.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N)))) |
(sqrt.f64 (atan2.f64 1 (+.f64 (fma.f64 N N N) 1))) |
(sqrt.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N)))) |
(sqrt.f64 (atan2.f64 1 (+.f64 (fma.f64 N N N) 1))) |
(sqrt.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N)))) |
(atan2.f64 1 (+.f64 (fma.f64 N N N) 1)) |
(atan2.f64 1 (+.f64 1 (fma.f64 N N N))) |
(atan2.f64 1 (+.f64 (fma.f64 N N N) 1)) |
(atan2.f64 1 (+.f64 1 (fma.f64 N N N))) |
(atan2.f64 1 (+.f64 (fma.f64 N N N) 1)) |
(atan2.f64 1 (+.f64 1 (fma.f64 N N N))) |
(atan2.f64 1 (+.f64 (fma.f64 N N N) 1)) |
(atan2.f64 1 (+.f64 1 (fma.f64 N N N))) |
(atan2.f64 1 (+.f64 (fma.f64 N N N) 1)) |
(atan2.f64 1 (+.f64 1 (fma.f64 N N N))) |
(atan2.f64 1 (+.f64 (fma.f64 N N N) 1)) |
(atan2.f64 1 (+.f64 1 (fma.f64 N N N))) |
(atan2.f64 1 (+.f64 (fma.f64 N N N) 1)) |
(atan2.f64 1 (+.f64 1 (fma.f64 N N N))) |
(atan2.f64 1 (+.f64 (fma.f64 N N N) 1)) |
(atan2.f64 1 (+.f64 1 (fma.f64 N N N))) |
(atan2.f64 1 (+.f64 (fma.f64 N N N) 1)) |
(atan2.f64 1 (+.f64 1 (fma.f64 N N N))) |
(atan2.f64 1 (+.f64 (fma.f64 N N N) 1)) |
(atan2.f64 1 (+.f64 1 (fma.f64 N N N))) |
(atan2.f64 1 (+.f64 (fma.f64 N N N) 1)) |
(atan2.f64 1 (+.f64 1 (fma.f64 N N N))) |
(atan2.f64 1 (+.f64 (fma.f64 N N N) 1)) |
(atan2.f64 1 (+.f64 1 (fma.f64 N N N))) |
Compiled 1348 to 869 computations (35.5% saved)
9 alts after pruning (6 fresh and 3 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 78 | 6 | 84 |
| Fresh | 0 | 0 | 0 |
| Picked | 0 | 1 | 1 |
| Done | 0 | 2 | 2 |
| Total | 78 | 9 | 87 |
| Status | Error | Program |
|---|---|---|
| 0.8b | (*.f64 (pow.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))) 1/4) (*.f64 (pow.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))) 1/4) (sqrt.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N)))))) | |
| ✓ | 0.2b | (atan2.f64 1 (+.f64 1 (*.f64 N (+.f64 N 1)))) |
| 1.3b | (*.f64 (*.f64 (sqrt.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N)))) (cbrt.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))))) (cbrt.f64 (sqrt.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N)))))) | |
| 0.9b | (pow.f64 (pow.f64 (pow.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))) 1/4) 2) 2) | |
| 11.0b | (cbrt.f64 (*.f64 (pow.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))) 2) (atan2.f64 1 (+.f64 1 (fma.f64 N N N))))) | |
| 0.8b | (pow.f64 (pow.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))) 1/2) 2) | |
| ✓ | 0.8b | (pow.f64 (sqrt.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N)))) 2) |
| 5.7b | (pow.f64 (cbrt.f64 (pow.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))) 3/2)) 2) | |
| ✓ | 11.0b | (cbrt.f64 (pow.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))) 3)) |
Compiled 160 to 114 computations (28.8% saved)
Total -51.7b remaining (-22393.1%)
Threshold costs -51.7b (-22393.1%)
| Inputs |
|---|
(atan2.f64 1 (+.f64 1 (*.f64 N (+.f64 N 1)))) |
(atan2.f64 (+.f64 N (-.f64 1 N)) (+.f64 1 (*.f64 N (+.f64 N 1)))) |
(-.f64 (atan.f64 (+.f64 N 1)) (atan.f64 N)) |
(pow.f64 (sqrt.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N)))) 2) |
(cbrt.f64 (pow.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))) 3)) |
(pow.f64 (pow.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))) 1/2) 2) |
(pow.f64 (cbrt.f64 (pow.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))) 3/2)) 2) |
(pow.f64 (pow.f64 (pow.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))) 1/4) 2) 2) |
(cbrt.f64 (*.f64 (pow.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))) 2) (atan2.f64 1 (+.f64 1 (fma.f64 N N N))))) |
(fma.f64 (pow.f64 (cbrt.f64 (atan.f64 (+.f64 N 1))) 2) (cbrt.f64 (atan.f64 (+.f64 N 1))) (neg.f64 (atan.f64 N))) |
(+.f64 (-.f64 (atan.f64 (+.f64 N 1)) (atan.f64 N)) (fma.f64 (neg.f64 (sqrt.f64 (atan.f64 N))) (sqrt.f64 (atan.f64 N)) (atan.f64 N))) |
(*.f64 (pow.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))) 1/4) (*.f64 (pow.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))) 1/4) (sqrt.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N)))))) |
(*.f64 (*.f64 (sqrt.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N)))) (cbrt.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N))))) (cbrt.f64 (sqrt.f64 (atan2.f64 1 (+.f64 1 (fma.f64 N N N)))))) |
| Outputs |
|---|
(atan2.f64 1 (+.f64 1 (*.f64 N (+.f64 N 1)))) |
2 calls:
| 9.0ms | N |
| 3.0ms | (-.f64 (atan.f64 (+.f64 N 1)) (atan.f64 N)) |
| Error | Segments | Branch |
|---|---|---|
| 0.2b | 1 | N |
| 0.2b | 1 | (-.f64 (atan.f64 (+.f64 N 1)) (atan.f64 N)) |
Compiled 216 to 140 computations (35.2% saved)
| 1× | egg-herbie |
| 2× | +-commutative_binary64 |
| 1× | *-commutative_binary64 |
| 1× | 1-exp_binary64 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 7 | 13 |
| 1 | 12 | 13 |
| 1× | fuel |
| 1× | saturated |
| Inputs |
|---|
(atan2.f64 1 (+.f64 1 (*.f64 N (+.f64 N 1)))) |
| Outputs |
|---|
(atan2.f64 1 (+.f64 1 (*.f64 N (+.f64 N 1)))) |
(atan2.f64 1 (+.f64 1 (*.f64 N (+.f64 1 N)))) |
Compiled 10 to 8 computations (20% saved)
Compiled 10 to 8 computations (20% saved)
Loading profile data...