Time bar (total: 1.9s)
| 1× | search |
| True | Other | False | Iter |
|---|---|---|---|
| 0% | 100% | 0% | 0 |
| 0% | 100% | 0% | 1 |
| 100% | 0% | 0% | 2 |
Compiled 10 to 8 computations (20% saved)
| 1.1s | 8256× | body | 256 | valid |
| 2× | egg-herbie |
| 700× | fma-def_binary64 |
| 434× | unswap-sqr_binary64 |
| 345× | fma-neg_binary64 |
| 311× | fabs-div_binary64 |
| 290× | exp-prod_binary64 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 8 | 13 |
| 1 | 15 | 13 |
| 2 | 21 | 13 |
| 3 | 28 | 13 |
| 4 | 47 | 13 |
| 5 | 87 | 13 |
| 6 | 184 | 13 |
| 7 | 419 | 13 |
| 8 | 1133 | 13 |
| 9 | 3111 | 13 |
| 10 | 4302 | 13 |
| 11 | 5484 | 13 |
| 12 | 7191 | 13 |
| 0 | 1 | 1 |
| 1× | saturated |
| 1× | node limit |
| Inputs |
|---|
0 |
| Outputs |
|---|
0 |
| Inputs |
|---|
(/.f64 2 (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) |
| Outputs |
|---|
(/.f64 2 (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) |
Compiled 10 to 8 computations (20% saved)
| 1× | egg-herbie |
| 700× | fma-def_binary64 |
| 434× | unswap-sqr_binary64 |
| 345× | fma-neg_binary64 |
| 311× | fabs-div_binary64 |
| 290× | exp-prod_binary64 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 8 | 13 |
| 1 | 15 | 13 |
| 2 | 21 | 13 |
| 3 | 28 | 13 |
| 4 | 47 | 13 |
| 5 | 87 | 13 |
| 6 | 184 | 13 |
| 7 | 419 | 13 |
| 8 | 1133 | 13 |
| 9 | 3111 | 13 |
| 10 | 4302 | 13 |
| 11 | 5484 | 13 |
| 12 | 7191 | 13 |
| 1× | node limit |
| Inputs |
|---|
(/.f64 2 (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) |
| Outputs |
|---|
(/.f64 2 (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) |
Compiled 9 to 7 computations (22.2% 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 |
|---|---|---|
| ▶ | 0.0b | (/.f64 2 (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) |
Compiled 9 to 7 computations (22.2% saved)
Found 1 expressions with local error:
| New | Error | Program |
|---|---|---|
| ✓ | 0.0b | (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) |
Compiled 24 to 8 computations (66.7% saved)
3 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 1.0ms | x | @ | 0 | (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) |
| 1.0ms | x | @ | -inf | (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) |
| 1.0ms | x | @ | inf | (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) |
| 1× | egg-rewrite-iter-limit |
| 1× | batch-egg-rewrite |
| 69× | add-sqr-sqrt_binary64 |
| 66× | add-log-exp_binary64 |
| 65× | *-un-lft-identity_binary64 |
| 65× | pow1_binary64 |
| 64× | add-exp-log_binary64 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 6 | 6 |
| 1 | 129 | 6 |
| 2 | 2129 | 6 |
| 0 | 6 | 6 |
| 1× | iter limit |
| 1× | unsound |
| Inputs |
|---|
(+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) |
| Outputs |
|---|
((#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (*.f64 2 (cosh.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 (cbrt.f64 (*.f64 2 (cosh.f64 x))) (cbrt.f64 (*.f64 2 (cosh.f64 x)))) (cbrt.f64 (*.f64 2 (cosh.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (*.f64 2 (cosh.f64 x))) (sqrt.f64 (*.f64 2 (cosh.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 2 (cosh.f64 x))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 (pow.f64 (exp.f64 x) 3) (pow.f64 (exp.f64 (neg.f64 x)) 3)) (+.f64 (*.f64 (exp.f64 x) (exp.f64 x)) (-.f64 (*.f64 (exp.f64 (neg.f64 x)) (exp.f64 (neg.f64 x))) (*.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (*.f64 (exp.f64 x) (exp.f64 x)) (*.f64 (exp.f64 (neg.f64 x)) (exp.f64 (neg.f64 x)))) (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 2 (cosh.f64 x)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (*.f64 2 (cosh.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (*.f64 (*.f64 (*.f64 2 (cosh.f64 x)) (*.f64 2 (cosh.f64 x))) (*.f64 2 (cosh.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (*.f64 2 (cosh.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (*.f64 2 (cosh.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (*.f64 2 (cosh.f64 x)))))))) |
| 1× | egg-herbie |
| 702× | fma-def_binary64 |
| 587× | fma-neg_binary64 |
| 403× | associate-/l/_binary64 |
| 341× | *-commutative_binary64 |
| 304× | associate-/r/_binary64 |
Useful iterations: 2 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 25 | 127 |
| 1 | 57 | 121 |
| 2 | 121 | 117 |
| 3 | 319 | 117 |
| 4 | 1077 | 117 |
| 5 | 2993 | 117 |
| 6 | 4203 | 117 |
| 7 | 7163 | 117 |
| 1× | node limit |
| Inputs |
|---|
2 |
(+.f64 2 (pow.f64 x 2)) |
(+.f64 2 (+.f64 (pow.f64 x 2) (*.f64 1/12 (pow.f64 x 4)))) |
(+.f64 2 (+.f64 (*.f64 1/360 (pow.f64 x 6)) (+.f64 (pow.f64 x 2) (*.f64 1/12 (pow.f64 x 4))))) |
(+.f64 (exp.f64 (neg.f64 x)) (exp.f64 x)) |
(+.f64 (exp.f64 (neg.f64 x)) (exp.f64 x)) |
(+.f64 (exp.f64 (neg.f64 x)) (exp.f64 x)) |
(+.f64 (exp.f64 (neg.f64 x)) (exp.f64 x)) |
(+.f64 (exp.f64 x) (exp.f64 (*.f64 -1 x))) |
(+.f64 (exp.f64 x) (exp.f64 (*.f64 -1 x))) |
(+.f64 (exp.f64 x) (exp.f64 (*.f64 -1 x))) |
(+.f64 (exp.f64 x) (exp.f64 (*.f64 -1 x))) |
| Outputs |
|---|
2 |
(+.f64 2 (pow.f64 x 2)) |
(+.f64 2 (*.f64 x x)) |
(fma.f64 x x 2) |
(+.f64 2 (+.f64 (pow.f64 x 2) (*.f64 1/12 (pow.f64 x 4)))) |
(+.f64 2 (+.f64 (*.f64 x x) (*.f64 1/12 (pow.f64 x 4)))) |
(+.f64 (fma.f64 x x 2) (*.f64 1/12 (pow.f64 x 4))) |
(fma.f64 1/12 (pow.f64 x 4) (fma.f64 x x 2)) |
(fma.f64 x x (fma.f64 1/12 (pow.f64 x 4) 2)) |
(+.f64 2 (+.f64 (*.f64 1/360 (pow.f64 x 6)) (+.f64 (pow.f64 x 2) (*.f64 1/12 (pow.f64 x 4))))) |
(+.f64 2 (fma.f64 1/360 (pow.f64 x 6) (+.f64 (*.f64 x x) (*.f64 1/12 (pow.f64 x 4))))) |
(+.f64 2 (fma.f64 1/360 (pow.f64 x 6) (fma.f64 x x (*.f64 1/12 (pow.f64 x 4))))) |
(fma.f64 1/360 (pow.f64 x 6) (fma.f64 1/12 (pow.f64 x 4) (fma.f64 x x 2))) |
(fma.f64 x x (fma.f64 1/12 (pow.f64 x 4) (fma.f64 1/360 (pow.f64 x 6) 2))) |
(+.f64 (exp.f64 (neg.f64 x)) (exp.f64 x)) |
(+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) |
(+.f64 (exp.f64 (neg.f64 x)) (exp.f64 x)) |
(+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) |
(+.f64 (exp.f64 (neg.f64 x)) (exp.f64 x)) |
(+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) |
(+.f64 (exp.f64 (neg.f64 x)) (exp.f64 x)) |
(+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) |
(+.f64 (exp.f64 x) (exp.f64 (*.f64 -1 x))) |
(+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) |
(+.f64 (exp.f64 x) (exp.f64 (*.f64 -1 x))) |
(+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) |
(+.f64 (exp.f64 x) (exp.f64 (*.f64 -1 x))) |
(+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) |
(+.f64 (exp.f64 x) (exp.f64 (*.f64 -1 x))) |
(+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) |
Compiled 259 to 168 computations (35.1% saved)
3 alts after pruning (3 fresh and 0 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 19 | 3 | 22 |
| Fresh | 0 | 0 | 0 |
| Picked | 1 | 0 | 1 |
| Done | 0 | 0 | 0 |
| Total | 20 | 3 | 23 |
| Status | Error | Program |
|---|---|---|
| ▶ | 0.4b | (/.f64 2 (expm1.f64 (log1p.f64 (*.f64 2 (cosh.f64 x))))) |
| ▶ | 35.7b | (/.f64 2 2) |
| ▶ | 0.0b | (/.f64 2 (*.f64 2 (cosh.f64 x))) |
Compiled 20 to 18 computations (10% saved)
Compiled 5 to 5 computations (0% saved)
Found 3 expressions with local error:
| New | Error | Program |
|---|---|---|
| ✓ | 0.0b | (cosh.f64 x) |
| ✓ | 0.0b | (expm1.f64 (log1p.f64 (*.f64 2 (cosh.f64 x)))) |
| ✓ | 0.9b | (log1p.f64 (*.f64 2 (cosh.f64 x))) |
Compiled 28 to 18 computations (35.7% saved)
9 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 28.0ms | x | @ | inf | (log1p.f64 (*.f64 2 (cosh.f64 x))) |
| 27.0ms | x | @ | -inf | (log1p.f64 (*.f64 2 (cosh.f64 x))) |
| 1.0ms | x | @ | 0 | (log1p.f64 (*.f64 2 (cosh.f64 x))) |
| 0.0ms | x | @ | 0 | (expm1.f64 (log1p.f64 (*.f64 2 (cosh.f64 x)))) |
| 0.0ms | x | @ | inf | (expm1.f64 (log1p.f64 (*.f64 2 (cosh.f64 x)))) |
| 1× | batch-egg-rewrite |
| 544× | pow1_binary64 |
| 528× | add-sqr-sqrt_binary64 |
| 503× | add-log-exp_binary64 |
| 502× | expm1-log1p-u_binary64 |
| 501× | log1p-expm1-u_binary64 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 7 | 17 |
| 1 | 122 | 17 |
| 2 | 1389 | 17 |
| 1× | node limit |
| Inputs |
|---|
(log1p.f64 (*.f64 2 (cosh.f64 x))) |
(expm1.f64 (log1p.f64 (*.f64 2 (cosh.f64 x)))) |
(cosh.f64 x) |
| Outputs |
|---|
((#(struct:change #<rule egg-rr> (2) ((x -.f64 (+.f64 1 (log1p.f64 (*.f64 2 (cosh.f64 x)))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (log1p.f64 (*.f64 2 (cosh.f64 x))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (log1p.f64 (*.f64 2 (cosh.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (log1p.f64 (*.f64 2 (cosh.f64 x)))) (pow.f64 (cbrt.f64 (log1p.f64 (*.f64 2 (cosh.f64 x)))) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (log1p.f64 (*.f64 2 (cosh.f64 x)))) 2) (cbrt.f64 (log1p.f64 (*.f64 2 (cosh.f64 x)))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (log1p.f64 (*.f64 2 (cosh.f64 x)))) (sqrt.f64 (log1p.f64 (*.f64 2 (cosh.f64 x)))))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (log1p.f64 (*.f64 2 (cosh.f64 x))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (log1p.f64 (*.f64 2 (cosh.f64 x))) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (log1p.f64 (*.f64 2 (cosh.f64 x)))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (log1p.f64 (*.f64 2 (cosh.f64 x)))) 2)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (log1p.f64 (*.f64 2 (cosh.f64 x))) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (+.f64 (*.f64 2 (cosh.f64 x)) 1))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (log1p.f64 (*.f64 2 (cosh.f64 x))) 3))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (log1p.f64 (*.f64 2 (cosh.f64 x)))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (log1p.f64 (*.f64 2 (cosh.f64 x))))))))) |
((#(struct:change #<rule egg-rr> (2) ((x +.f64 (+.f64 (*.f64 2 (cosh.f64 x)) 1) -1)))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (exp.f64 (neg.f64 x)) (exp.f64 x))))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (+.f64 (*.f64 2 (cosh.f64 x)) 1) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 2 (cosh.f64 x))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cosh.f64 x) 2)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 2 (cosh.f64 x)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (*.f64 2 (cosh.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (*.f64 2 (cosh.f64 x))) (pow.f64 (cbrt.f64 (*.f64 2 (cosh.f64 x))) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (*.f64 2 (cosh.f64 x))) 2) (cbrt.f64 (*.f64 2 (cosh.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (cosh.f64 x)) 2) (*.f64 (cbrt.f64 (cosh.f64 x)) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (*.f64 2 (cosh.f64 x))) (sqrt.f64 (*.f64 2 (cosh.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (cosh.f64 x)) (*.f64 (sqrt.f64 (cosh.f64 x)) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 2 (pow.f64 (cbrt.f64 (cosh.f64 x)) 2)) (cbrt.f64 (cosh.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 2 (sqrt.f64 (cosh.f64 x))) (sqrt.f64 (cosh.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (pow.f64 (+.f64 (*.f64 2 (cosh.f64 x)) 1) 3) 1) (+.f64 (*.f64 (+.f64 (*.f64 2 (cosh.f64 x)) 1) (+.f64 (*.f64 2 (cosh.f64 x)) 1)) (+.f64 1 (*.f64 (+.f64 (*.f64 2 (cosh.f64 x)) 1) 1))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 (pow.f64 (exp.f64 x) 3) (pow.f64 (exp.f64 (neg.f64 x)) 3)) (+.f64 (*.f64 (exp.f64 x) (exp.f64 x)) (-.f64 (*.f64 (exp.f64 (neg.f64 x)) (exp.f64 (neg.f64 x))) (*.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (*.f64 (+.f64 (*.f64 2 (cosh.f64 x)) 1) (+.f64 (*.f64 2 (cosh.f64 x)) 1)) 1) (+.f64 (+.f64 (*.f64 2 (cosh.f64 x)) 1) 1))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (*.f64 (exp.f64 x) (exp.f64 x)) (*.f64 (exp.f64 (neg.f64 x)) (exp.f64 (neg.f64 x)))) (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (*.f64 2 (cosh.f64 x)) 2) 2)))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 2 (*.f64 2 (cosh.f64 x))) 2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 2 (cosh.f64 x)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (*.f64 2 (cosh.f64 x)) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (*.f64 2 (cosh.f64 x))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (*.f64 2 (cosh.f64 x))) 2)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (*.f64 4 (pow.f64 (cosh.f64 x) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (pow.f64 (exp.f64 2) (cosh.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (*.f64 2 (cosh.f64 x)) 3))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (*.f64 2 (cosh.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (*.f64 2 (cosh.f64 x)))))))) |
((#(struct:change #<rule egg-rr> (2) ((x -.f64 (+.f64 1 (cosh.f64 x)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cosh.f64 x) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 2 (cosh.f64 x)) 1/2)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (cosh.f64 x))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (cosh.f64 x)) (pow.f64 (cbrt.f64 (cosh.f64 x)) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (cosh.f64 x)) 2) (cbrt.f64 (cosh.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (cosh.f64 x)) (sqrt.f64 (cosh.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 2 (cosh.f64 x)) 2)))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (/.f64 2 (*.f64 2 (cosh.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (*.f64 2 (cosh.f64 x))) -2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cosh.f64 x) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (cosh.f64 x) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (cosh.f64 x)) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (cosh.f64 x)) 2)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (cosh.f64 x) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (cosh.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (cosh.f64 x) 3))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (cosh.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (cosh.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (cosh.f64 x))))))) |
| 1× | egg-herbie |
| 597× | fma-def_binary64 |
| 536× | distribute-rgt-out_binary64 |
| 460× | *-commutative_binary64 |
| 400× | associate-*l*_binary64 |
| 391× | associate-/l/_binary64 |
Useful iterations: 3 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 48 | 433 |
| 1 | 116 | 425 |
| 2 | 274 | 411 |
| 3 | 770 | 409 |
| 4 | 2669 | 409 |
| 5 | 4839 | 409 |
| 6 | 5285 | 409 |
| 7 | 6490 | 409 |
| 1× | node limit |
| Inputs |
|---|
(log.f64 3) |
(+.f64 (*.f64 1/3 (pow.f64 x 2)) (log.f64 3)) |
(+.f64 (*.f64 1/3 (pow.f64 x 2)) (+.f64 (*.f64 -1/36 (pow.f64 x 4)) (log.f64 3))) |
(+.f64 (*.f64 13/3240 (pow.f64 x 6)) (+.f64 (*.f64 1/3 (pow.f64 x 2)) (+.f64 (*.f64 -1/36 (pow.f64 x 4)) (log.f64 3)))) |
(log.f64 (+.f64 1 (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)))) |
(log.f64 (+.f64 1 (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)))) |
(log.f64 (+.f64 1 (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)))) |
(log.f64 (+.f64 1 (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)))) |
(log.f64 (+.f64 1 (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)))) |
(log.f64 (+.f64 1 (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)))) |
(log.f64 (+.f64 1 (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)))) |
(log.f64 (+.f64 1 (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)))) |
2 |
(+.f64 2 (pow.f64 x 2)) |
(+.f64 2 (+.f64 (pow.f64 x 2) (*.f64 1/12 (pow.f64 x 4)))) |
(+.f64 2 (+.f64 (*.f64 1/360 (pow.f64 x 6)) (+.f64 (pow.f64 x 2) (*.f64 1/12 (pow.f64 x 4))))) |
(+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)) |
(+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)) |
(+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)) |
(+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)) |
(+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)) |
(+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)) |
(+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)) |
(+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)) |
1 |
(+.f64 1 (*.f64 1/2 (pow.f64 x 2))) |
(+.f64 1 (+.f64 (*.f64 1/2 (pow.f64 x 2)) (*.f64 1/24 (pow.f64 x 4)))) |
(+.f64 1 (+.f64 (*.f64 1/2 (pow.f64 x 2)) (+.f64 (*.f64 1/24 (pow.f64 x 4)) (*.f64 1/720 (pow.f64 x 6))))) |
(*.f64 1/2 (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x))) |
(*.f64 1/2 (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x))) |
(*.f64 1/2 (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x))) |
(*.f64 1/2 (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x))) |
(*.f64 1/2 (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x))) |
(*.f64 1/2 (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x))) |
(*.f64 1/2 (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x))) |
(*.f64 1/2 (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x))) |
| Outputs |
|---|
(log.f64 3) |
(+.f64 (*.f64 1/3 (pow.f64 x 2)) (log.f64 3)) |
(fma.f64 1/3 (*.f64 x x) (log.f64 3)) |
(+.f64 (*.f64 1/3 (pow.f64 x 2)) (+.f64 (*.f64 -1/36 (pow.f64 x 4)) (log.f64 3))) |
(fma.f64 1/3 (*.f64 x x) (fma.f64 -1/36 (pow.f64 x 4) (log.f64 3))) |
(+.f64 (*.f64 13/3240 (pow.f64 x 6)) (+.f64 (*.f64 1/3 (pow.f64 x 2)) (+.f64 (*.f64 -1/36 (pow.f64 x 4)) (log.f64 3)))) |
(fma.f64 13/3240 (pow.f64 x 6) (fma.f64 1/3 (*.f64 x x) (fma.f64 -1/36 (pow.f64 x 4) (log.f64 3)))) |
(fma.f64 1/3 (*.f64 x x) (fma.f64 13/3240 (pow.f64 x 6) (fma.f64 -1/36 (pow.f64 x 4) (log.f64 3)))) |
(fma.f64 (*.f64 x x) (fma.f64 x (*.f64 x -1/36) 1/3) (fma.f64 13/3240 (pow.f64 x 6) (log.f64 3))) |
(fma.f64 1/3 (*.f64 x x) (fma.f64 -1/36 (pow.f64 x 4) (fma.f64 13/3240 (pow.f64 x 6) (log.f64 3)))) |
(log.f64 (+.f64 1 (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)))) |
(log1p.f64 (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) |
(log.f64 (+.f64 1 (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)))) |
(log1p.f64 (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) |
(log.f64 (+.f64 1 (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)))) |
(log1p.f64 (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) |
(log.f64 (+.f64 1 (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)))) |
(log1p.f64 (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) |
(log.f64 (+.f64 1 (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)))) |
(log1p.f64 (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) |
(log.f64 (+.f64 1 (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)))) |
(log1p.f64 (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) |
(log.f64 (+.f64 1 (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)))) |
(log1p.f64 (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) |
(log.f64 (+.f64 1 (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)))) |
(log1p.f64 (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) |
2 |
(+.f64 2 (pow.f64 x 2)) |
(+.f64 2 (*.f64 x x)) |
(fma.f64 x x 2) |
(+.f64 2 (+.f64 (pow.f64 x 2) (*.f64 1/12 (pow.f64 x 4)))) |
(+.f64 2 (+.f64 (*.f64 x x) (*.f64 (pow.f64 x 4) 1/12))) |
(+.f64 2 (fma.f64 x x (*.f64 (pow.f64 x 4) 1/12))) |
(fma.f64 x x (fma.f64 (pow.f64 x 4) 1/12 2)) |
(fma.f64 (pow.f64 x 4) 1/12 (fma.f64 x x 2)) |
(+.f64 2 (+.f64 (*.f64 1/360 (pow.f64 x 6)) (+.f64 (pow.f64 x 2) (*.f64 1/12 (pow.f64 x 4))))) |
(+.f64 2 (fma.f64 1/360 (pow.f64 x 6) (+.f64 (*.f64 x x) (*.f64 (pow.f64 x 4) 1/12)))) |
(+.f64 2 (fma.f64 (pow.f64 x 6) 1/360 (fma.f64 x x (*.f64 (pow.f64 x 4) 1/12)))) |
(fma.f64 (pow.f64 x 6) 1/360 (fma.f64 x x (fma.f64 (pow.f64 x 4) 1/12 2))) |
(fma.f64 x x (fma.f64 (pow.f64 x 4) 1/12 (fma.f64 (pow.f64 x 6) 1/360 2))) |
(fma.f64 (pow.f64 x 4) 1/12 (fma.f64 (pow.f64 x 6) 1/360 (fma.f64 x x 2))) |
(+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)) |
(+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) |
(+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)) |
(+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) |
(+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)) |
(+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) |
(+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)) |
(+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) |
(+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)) |
(+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) |
(+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)) |
(+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) |
(+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)) |
(+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) |
(+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)) |
(+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) |
1 |
(+.f64 1 (*.f64 1/2 (pow.f64 x 2))) |
(+.f64 1 (*.f64 (*.f64 x x) 1/2)) |
(fma.f64 (*.f64 x x) 1/2 1) |
(fma.f64 x (*.f64 x 1/2) 1) |
(+.f64 1 (+.f64 (*.f64 1/2 (pow.f64 x 2)) (*.f64 1/24 (pow.f64 x 4)))) |
(+.f64 1 (fma.f64 1/2 (*.f64 x x) (*.f64 (pow.f64 x 4) 1/24))) |
(+.f64 1 (fma.f64 (*.f64 x x) 1/2 (*.f64 (pow.f64 x 4) 1/24))) |
(fma.f64 x (*.f64 x 1/2) (fma.f64 (pow.f64 x 4) 1/24 1)) |
(+.f64 1 (+.f64 (*.f64 1/2 (pow.f64 x 2)) (+.f64 (*.f64 1/24 (pow.f64 x 4)) (*.f64 1/720 (pow.f64 x 6))))) |
(+.f64 1 (fma.f64 1/2 (*.f64 x x) (fma.f64 1/24 (pow.f64 x 4) (*.f64 (pow.f64 x 6) 1/720)))) |
(+.f64 1 (fma.f64 (*.f64 x x) 1/2 (fma.f64 (pow.f64 x 4) 1/24 (*.f64 (pow.f64 x 6) 1/720)))) |
(+.f64 1 (fma.f64 x (*.f64 x 1/2) (fma.f64 (pow.f64 x 4) 1/24 (*.f64 (pow.f64 x 6) 1/720)))) |
(fma.f64 (*.f64 x x) (fma.f64 x (*.f64 x 1/24) 1/2) (fma.f64 (pow.f64 x 6) 1/720 1)) |
(fma.f64 (pow.f64 x 4) 1/24 (fma.f64 x (*.f64 x 1/2) (fma.f64 (pow.f64 x 6) 1/720 1))) |
(*.f64 1/2 (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x))) |
(*.f64 (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) 1/2) |
(fma.f64 (exp.f64 x) 1/2 (/.f64 1/2 (exp.f64 x))) |
(*.f64 1/2 (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x))) |
(*.f64 (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) 1/2) |
(fma.f64 (exp.f64 x) 1/2 (/.f64 1/2 (exp.f64 x))) |
(*.f64 1/2 (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x))) |
(*.f64 (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) 1/2) |
(fma.f64 (exp.f64 x) 1/2 (/.f64 1/2 (exp.f64 x))) |
(*.f64 1/2 (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x))) |
(*.f64 (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) 1/2) |
(fma.f64 (exp.f64 x) 1/2 (/.f64 1/2 (exp.f64 x))) |
(*.f64 1/2 (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x))) |
(*.f64 (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) 1/2) |
(fma.f64 (exp.f64 x) 1/2 (/.f64 1/2 (exp.f64 x))) |
(*.f64 1/2 (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x))) |
(*.f64 (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) 1/2) |
(fma.f64 (exp.f64 x) 1/2 (/.f64 1/2 (exp.f64 x))) |
(*.f64 1/2 (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x))) |
(*.f64 (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) 1/2) |
(fma.f64 (exp.f64 x) 1/2 (/.f64 1/2 (exp.f64 x))) |
(*.f64 1/2 (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x))) |
(*.f64 (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) 1/2) |
(fma.f64 (exp.f64 x) 1/2 (/.f64 1/2 (exp.f64 x))) |
Found 1 expressions with local error:
| New | Error | Program |
|---|---|---|
| 0.0b | (cosh.f64 x) |
Compiled 15 to 9 computations (40% saved)
Compiled 1454 to 1084 computations (25.4% saved)
3 alts after pruning (1 fresh and 2 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 119 | 1 | 120 |
| Fresh | 0 | 0 | 0 |
| Picked | 0 | 1 | 1 |
| Done | 1 | 1 | 2 |
| Total | 120 | 3 | 123 |
| Status | Error | Program |
|---|---|---|
| ▶ | 0.0b | (/.f64 2 (*.f64 2 (-.f64 (+.f64 1 (cosh.f64 x)) 1))) |
| ✓ | 35.7b | (/.f64 2 2) |
| ✓ | 0.0b | (/.f64 2 (*.f64 2 (cosh.f64 x))) |
Compiled 22 to 20 computations (9.1% saved)
Found 3 expressions with local error:
| New | Error | Program |
|---|---|---|
| ✓ | 0.0b | (+.f64 1 (cosh.f64 x)) |
| 0.0b | (cosh.f64 x) | |
| ✓ | 0.0b | (-.f64 (+.f64 1 (cosh.f64 x)) 1) |
Compiled 34 to 24 computations (29.4% saved)
6 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 0.0ms | x | @ | 0 | (-.f64 (+.f64 1 (cosh.f64 x)) 1) |
| 0.0ms | x | @ | 0 | (+.f64 1 (cosh.f64 x)) |
| 0.0ms | x | @ | inf | (+.f64 1 (cosh.f64 x)) |
| 0.0ms | x | @ | -inf | (+.f64 1 (cosh.f64 x)) |
| 0.0ms | x | @ | inf | (-.f64 (+.f64 1 (cosh.f64 x)) 1) |
| 1× | batch-egg-rewrite |
| 690× | pow1_binary64 |
| 650× | add-log-exp_binary64 |
| 648× | log1p-expm1-u_binary64 |
| 648× | expm1-log1p-u_binary64 |
| 639× | add-exp-log_binary64 |
Useful iterations: 1 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 6 | 15 |
| 1 | 139 | 9 |
| 2 | 1908 | 9 |
| 1× | node limit |
| Inputs |
|---|
(-.f64 (+.f64 1 (cosh.f64 x)) 1) |
(+.f64 1 (cosh.f64 x)) |
| Outputs |
|---|
((#(struct:change #<rule egg-rr> (2) ((x +.f64 1 (+.f64 (cosh.f64 x) -1))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 1 (*.f64 (+.f64 (cosh.f64 x) -1) 1))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (cosh.f64 x) 0)))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (+.f64 1 (cosh.f64 x)) -1)))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 -1 (+.f64 1 (cosh.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (+.f64 (cosh.f64 x) -1) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (cosh.f64 x))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cosh.f64 x) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (cosh.f64 x)) (pow.f64 (cbrt.f64 (cosh.f64 x)) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (cosh.f64 x)) 2) (cbrt.f64 (cosh.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (cosh.f64 x)) (sqrt.f64 (cosh.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 2 (cosh.f64 x)) 1/2)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (+.f64 (pow.f64 (+.f64 1 (cosh.f64 x)) 3) -1) (/.f64 1 (+.f64 (pow.f64 (+.f64 1 (cosh.f64 x)) 2) (+.f64 (cosh.f64 x) 2))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 (+.f64 (cosh.f64 x) 2) (cosh.f64 x)) (/.f64 1 (+.f64 (cosh.f64 x) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (+.f64 (sqrt.f64 (+.f64 1 (cosh.f64 x))) 1) (-.f64 (sqrt.f64 (+.f64 1 (cosh.f64 x))) 1))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (/.f64 (+.f64 (pow.f64 (+.f64 1 (cosh.f64 x)) 2) (+.f64 (cosh.f64 x) 2)) (+.f64 (pow.f64 (+.f64 1 (cosh.f64 x)) 3) -1)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (/.f64 (+.f64 (cosh.f64 x) 2) (*.f64 (+.f64 (cosh.f64 x) 2) (cosh.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (/.f64 2 (*.f64 2 (cosh.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 2 (cosh.f64 x)) 2)))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 (pow.f64 (+.f64 1 (cosh.f64 x)) 3) -1) (+.f64 (pow.f64 (+.f64 1 (cosh.f64 x)) 2) (+.f64 (cosh.f64 x) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 (pow.f64 (+.f64 1 (cosh.f64 x)) 3) -1) (+.f64 (pow.f64 (+.f64 1 (cosh.f64 x)) 2) (-.f64 1 (*.f64 (+.f64 1 (cosh.f64 x)) -1))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (+.f64 (cosh.f64 x) 2) (cosh.f64 x)) (+.f64 (cosh.f64 x) 2))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (+.f64 (cosh.f64 x) 2) (cosh.f64 x)) (-.f64 (+.f64 1 (cosh.f64 x)) -1))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (+.f64 (pow.f64 (+.f64 1 (cosh.f64 x)) 3) -1)) (neg.f64 (+.f64 (pow.f64 (+.f64 1 (cosh.f64 x)) 2) (+.f64 (cosh.f64 x) 2))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (*.f64 (+.f64 (cosh.f64 x) 2) (cosh.f64 x))) (neg.f64 (+.f64 (cosh.f64 x) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (*.f64 2 (cosh.f64 x))) -2)))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 1 (pow.f64 (+.f64 (cosh.f64 x) -1) 3)) (+.f64 1 (-.f64 (*.f64 (+.f64 (cosh.f64 x) -1) (+.f64 (cosh.f64 x) -1)) (+.f64 (cosh.f64 x) -1))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 1 (*.f64 (+.f64 (cosh.f64 x) -1) (+.f64 (cosh.f64 x) -1))) (-.f64 1 (+.f64 (cosh.f64 x) -1)))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cosh.f64 x) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (cosh.f64 x)) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (cosh.f64 x)) 2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (cosh.f64 x) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (cosh.f64 x) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (cosh.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (cosh.f64 x) 3))))) (#(struct:change #<rule egg-rr> (2) ((x cosh.f64 x)))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (cosh.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (cosh.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (cosh.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 1 (+.f64 1 (cosh.f64 x)) -1)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (pow.f64 (cbrt.f64 (+.f64 1 (cosh.f64 x))) 2) (cbrt.f64 (+.f64 1 (cosh.f64 x))) -1)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (sqrt.f64 (+.f64 1 (cosh.f64 x))) (sqrt.f64 (+.f64 1 (cosh.f64 x))) -1))))) |
((#(struct:change #<rule egg-rr> (2) ((x -.f64 (+.f64 (cosh.f64 x) 2) 1)))) (#(struct:change #<rule egg-rr> (2) ((x -.f64 (/.f64 1 (-.f64 1 (cosh.f64 x))) (/.f64 (pow.f64 (cosh.f64 x) 2) (-.f64 1 (cosh.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (+.f64 1 (cosh.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (+.f64 1 (cosh.f64 x)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (+.f64 1 (cosh.f64 x))) (pow.f64 (cbrt.f64 (+.f64 1 (cosh.f64 x))) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (+.f64 1 (cosh.f64 x))) 2) (cbrt.f64 (+.f64 1 (cosh.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (+.f64 1 (cosh.f64 x))) 2) (*.f64 (cbrt.f64 (+.f64 1 (cosh.f64 x))) 1))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (+.f64 1 (cosh.f64 x))) (sqrt.f64 (+.f64 1 (cosh.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (+.f64 1 (cosh.f64 x))) (*.f64 (sqrt.f64 (+.f64 1 (cosh.f64 x))) 1))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (+.f64 1 (pow.f64 (cosh.f64 x) 3)) (/.f64 1 (+.f64 1 (-.f64 (pow.f64 (cosh.f64 x) 2) (cosh.f64 x)))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (-.f64 1 (pow.f64 (cosh.f64 x) 2)) (/.f64 1 (-.f64 1 (cosh.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (/.f64 (+.f64 1 (-.f64 (pow.f64 (cosh.f64 x) 2) (cosh.f64 x))) (+.f64 1 (pow.f64 (cosh.f64 x) 3))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (/.f64 (-.f64 1 (cosh.f64 x)) (-.f64 1 (pow.f64 (cosh.f64 x) 2))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 1 (pow.f64 (cosh.f64 x) 3)) (+.f64 1 (-.f64 (pow.f64 (cosh.f64 x) 2) (cosh.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 1 (pow.f64 (cosh.f64 x) 3)) (+.f64 (pow.f64 (cosh.f64 x) 2) (-.f64 1 (cosh.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 1 (pow.f64 (cosh.f64 x) 2)) (-.f64 1 (cosh.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (+.f64 1 (pow.f64 (cosh.f64 x) 3))) (neg.f64 (+.f64 1 (-.f64 (pow.f64 (cosh.f64 x) 2) (cosh.f64 x)))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (-.f64 1 (pow.f64 (cosh.f64 x) 2))) (neg.f64 (-.f64 1 (cosh.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 (pow.f64 (cosh.f64 x) 2) 1) (+.f64 (cosh.f64 x) -1))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (+.f64 1 (pow.f64 (cosh.f64 x) 3)) 1) (+.f64 1 (-.f64 (pow.f64 (cosh.f64 x) 2) (cosh.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (-.f64 1 (pow.f64 (cosh.f64 x) 2)) 1) (-.f64 1 (cosh.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (+.f64 1 (cosh.f64 x)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (+.f64 1 (cosh.f64 x))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (+.f64 1 (cosh.f64 x))) 2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (+.f64 1 (cosh.f64 x)) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (+.f64 1 (cosh.f64 x)) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (+.f64 1 (cosh.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (+.f64 1 (cosh.f64 x)) 3))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log.f64 (+.f64 (cosh.f64 x) 2)))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (+.f64 1 (cosh.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log1p.f64 (cosh.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 1 (cosh.f64 x) 1)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (pow.f64 (cbrt.f64 (cosh.f64 x)) 2) (cbrt.f64 (cosh.f64 x)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x fma.f64 (sqrt.f64 (cosh.f64 x)) (sqrt.f64 (cosh.f64 x)) 1))))) |
| 1× | egg-herbie |
| 1067× | fma-def_binary64 |
| 404× | associate-/l/_binary64 |
| 392× | *-commutative_binary64 |
| 326× | distribute-lft-out_binary64 |
| 319× | associate-/l*_binary64 |
Useful iterations: 3 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 29 | 336 |
| 1 | 72 | 316 |
| 2 | 169 | 304 |
| 3 | 475 | 300 |
| 4 | 1397 | 300 |
| 5 | 3499 | 300 |
| 6 | 4274 | 300 |
| 7 | 5237 | 300 |
| 1× | node limit |
| Inputs |
|---|
1 |
(+.f64 1 (*.f64 1/2 (pow.f64 x 2))) |
(+.f64 1 (+.f64 (*.f64 1/2 (pow.f64 x 2)) (*.f64 1/24 (pow.f64 x 4)))) |
(+.f64 1 (+.f64 (*.f64 1/2 (pow.f64 x 2)) (+.f64 (*.f64 1/24 (pow.f64 x 4)) (*.f64 1/720 (pow.f64 x 6))))) |
(*.f64 1/2 (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x))) |
(*.f64 1/2 (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x))) |
(*.f64 1/2 (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x))) |
(*.f64 1/2 (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x))) |
(*.f64 1/2 (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x))) |
(*.f64 1/2 (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x))) |
(*.f64 1/2 (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x))) |
(*.f64 1/2 (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x))) |
2 |
(+.f64 2 (*.f64 1/2 (pow.f64 x 2))) |
(+.f64 2 (+.f64 (*.f64 1/2 (pow.f64 x 2)) (*.f64 1/24 (pow.f64 x 4)))) |
(+.f64 2 (+.f64 (*.f64 1/2 (pow.f64 x 2)) (+.f64 (*.f64 1/24 (pow.f64 x 4)) (*.f64 1/720 (pow.f64 x 6))))) |
(+.f64 1 (*.f64 1/2 (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)))) |
(+.f64 1 (*.f64 1/2 (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)))) |
(+.f64 1 (*.f64 1/2 (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)))) |
(+.f64 1 (*.f64 1/2 (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)))) |
(+.f64 1 (*.f64 1/2 (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)))) |
(+.f64 1 (*.f64 1/2 (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)))) |
(+.f64 1 (*.f64 1/2 (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)))) |
(+.f64 1 (*.f64 1/2 (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)))) |
| Outputs |
|---|
1 |
(+.f64 1 (*.f64 1/2 (pow.f64 x 2))) |
(+.f64 1 (*.f64 1/2 (*.f64 x x))) |
(fma.f64 1/2 (*.f64 x x) 1) |
(fma.f64 x (*.f64 1/2 x) 1) |
(+.f64 1 (+.f64 (*.f64 1/2 (pow.f64 x 2)) (*.f64 1/24 (pow.f64 x 4)))) |
(+.f64 1 (fma.f64 1/2 (*.f64 x x) (*.f64 1/24 (pow.f64 x 4)))) |
(fma.f64 1/2 (*.f64 x x) (fma.f64 1/24 (pow.f64 x 4) 1)) |
(fma.f64 (*.f64 x x) (fma.f64 x (*.f64 x 1/24) 1/2) 1) |
(+.f64 1 (+.f64 (*.f64 1/2 (pow.f64 x 2)) (+.f64 (*.f64 1/24 (pow.f64 x 4)) (*.f64 1/720 (pow.f64 x 6))))) |
(+.f64 1 (fma.f64 1/2 (*.f64 x x) (fma.f64 1/24 (pow.f64 x 4) (*.f64 1/720 (pow.f64 x 6))))) |
(+.f64 1 (fma.f64 1/2 (*.f64 x x) (fma.f64 1/720 (pow.f64 x 6) (*.f64 1/24 (pow.f64 x 4))))) |
(fma.f64 1/2 (*.f64 x x) (fma.f64 1/720 (pow.f64 x 6) (fma.f64 1/24 (pow.f64 x 4) 1))) |
(fma.f64 x (*.f64 x (fma.f64 x (*.f64 x 1/24) 1/2)) (fma.f64 1/720 (pow.f64 x 6) 1)) |
(*.f64 1/2 (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x))) |
(*.f64 1/2 (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) |
(fma.f64 1/2 (exp.f64 x) (/.f64 1/2 (exp.f64 x))) |
(*.f64 1/2 (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x))) |
(*.f64 1/2 (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) |
(fma.f64 1/2 (exp.f64 x) (/.f64 1/2 (exp.f64 x))) |
(*.f64 1/2 (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x))) |
(*.f64 1/2 (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) |
(fma.f64 1/2 (exp.f64 x) (/.f64 1/2 (exp.f64 x))) |
(*.f64 1/2 (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x))) |
(*.f64 1/2 (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) |
(fma.f64 1/2 (exp.f64 x) (/.f64 1/2 (exp.f64 x))) |
(*.f64 1/2 (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x))) |
(*.f64 1/2 (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) |
(fma.f64 1/2 (exp.f64 x) (/.f64 1/2 (exp.f64 x))) |
(*.f64 1/2 (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x))) |
(*.f64 1/2 (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) |
(fma.f64 1/2 (exp.f64 x) (/.f64 1/2 (exp.f64 x))) |
(*.f64 1/2 (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x))) |
(*.f64 1/2 (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) |
(fma.f64 1/2 (exp.f64 x) (/.f64 1/2 (exp.f64 x))) |
(*.f64 1/2 (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x))) |
(*.f64 1/2 (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) |
(fma.f64 1/2 (exp.f64 x) (/.f64 1/2 (exp.f64 x))) |
2 |
(+.f64 2 (*.f64 1/2 (pow.f64 x 2))) |
(+.f64 2 (*.f64 1/2 (*.f64 x x))) |
(fma.f64 1/2 (*.f64 x x) 2) |
(+.f64 2 (+.f64 (*.f64 1/2 (pow.f64 x 2)) (*.f64 1/24 (pow.f64 x 4)))) |
(+.f64 2 (fma.f64 1/2 (*.f64 x x) (*.f64 1/24 (pow.f64 x 4)))) |
(fma.f64 1/2 (*.f64 x x) (fma.f64 1/24 (pow.f64 x 4) 2)) |
(fma.f64 x (*.f64 x (fma.f64 x (*.f64 x 1/24) 1/2)) 2) |
(+.f64 2 (+.f64 (*.f64 1/2 (pow.f64 x 2)) (+.f64 (*.f64 1/24 (pow.f64 x 4)) (*.f64 1/720 (pow.f64 x 6))))) |
(+.f64 2 (fma.f64 1/2 (*.f64 x x) (fma.f64 1/24 (pow.f64 x 4) (*.f64 1/720 (pow.f64 x 6))))) |
(+.f64 2 (fma.f64 1/2 (*.f64 x x) (fma.f64 1/720 (pow.f64 x 6) (*.f64 1/24 (pow.f64 x 4))))) |
(fma.f64 1/2 (*.f64 x x) (fma.f64 1/720 (pow.f64 x 6) (fma.f64 1/24 (pow.f64 x 4) 2))) |
(fma.f64 1/2 (*.f64 x x) (fma.f64 1/24 (pow.f64 x 4) (fma.f64 1/720 (pow.f64 x 6) 2))) |
(+.f64 1 (*.f64 1/2 (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)))) |
(+.f64 1 (*.f64 1/2 (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))) |
(fma.f64 1/2 (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) 1) |
(+.f64 1 (*.f64 1/2 (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)))) |
(+.f64 1 (*.f64 1/2 (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))) |
(fma.f64 1/2 (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) 1) |
(+.f64 1 (*.f64 1/2 (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)))) |
(+.f64 1 (*.f64 1/2 (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))) |
(fma.f64 1/2 (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) 1) |
(+.f64 1 (*.f64 1/2 (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)))) |
(+.f64 1 (*.f64 1/2 (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))) |
(fma.f64 1/2 (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) 1) |
(+.f64 1 (*.f64 1/2 (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)))) |
(+.f64 1 (*.f64 1/2 (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))) |
(fma.f64 1/2 (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) 1) |
(+.f64 1 (*.f64 1/2 (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)))) |
(+.f64 1 (*.f64 1/2 (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))) |
(fma.f64 1/2 (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) 1) |
(+.f64 1 (*.f64 1/2 (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)))) |
(+.f64 1 (*.f64 1/2 (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))) |
(fma.f64 1/2 (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) 1) |
(+.f64 1 (*.f64 1/2 (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x)))) |
(+.f64 1 (*.f64 1/2 (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))))) |
(fma.f64 1/2 (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) 1) |
Compiled 1857 to 1444 computations (22.2% saved)
3 alts after pruning (0 fresh and 3 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 123 | 0 | 123 |
| Fresh | 0 | 0 | 0 |
| Picked | 0 | 1 | 1 |
| Done | 0 | 2 | 2 |
| Total | 123 | 3 | 126 |
| Status | Error | Program |
|---|---|---|
| ✓ | 0.0b | (/.f64 2 (*.f64 2 (-.f64 (+.f64 1 (cosh.f64 x)) 1))) |
| ✓ | 35.7b | (/.f64 2 2) |
| ✓ | 0.0b | (/.f64 2 (*.f64 2 (cosh.f64 x))) |
Compiled 22 to 20 computations (9.1% saved)
Total -36.1b remaining (-924683.6%)
Threshold costs -36.1b (-924683.6%)
| Inputs |
|---|
(/.f64 2 2) |
(/.f64 2 (*.f64 2 (cosh.f64 x))) |
(/.f64 2 (*.f64 2 (-.f64 (+.f64 1 (cosh.f64 x)) 1))) |
(/.f64 2 (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) |
(/.f64 2 (expm1.f64 (log1p.f64 (*.f64 2 (cosh.f64 x))))) |
| Outputs |
|---|
(/.f64 2 (*.f64 2 (cosh.f64 x))) |
5 calls:
| 4.0ms | x |
| 2.0ms | (/.f64 2 (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) |
| 2.0ms | (/.f64 2 (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) |
| 2.0ms | (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) |
| 2.0ms | (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) |
| Error | Segments | Branch |
|---|---|---|
| 0.0b | 1 | x |
| 0.0b | 1 | (/.f64 2 (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) |
| 0.0b | 1 | (/.f64 2 (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) |
| 0.0b | 1 | (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) |
| 0.0b | 1 | (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) |
Compiled 70 to 54 computations (22.9% saved)
| 1× | egg-herbie |
| 1× | *-commutative_binary64 |
| 1× | 1-exp_binary64 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 8 | 10 |
| 1 | 11 | 10 |
| 1× | saturated |
| Inputs |
|---|
(/.f64 2 (*.f64 2 (cosh.f64 x))) |
(/.f64 2 2) |
| Outputs |
|---|
(/.f64 2 (*.f64 2 (cosh.f64 x))) |
(/.f64 2 2) |
1 |
| 1× | done |
Compiled 17 to 15 computations (11.8% saved)
Loading profile data...