Time bar (total: 3.8s)
| 1× | search |
| Probability | Valid | Unknown | Precondition | Infinite | Domain | Can't | Iter |
|---|---|---|---|---|---|---|---|
| 0% | 0% | 100% | 0% | 0% | 0% | 0% | 0 |
| 0% | 0% | 100% | 0% | 0% | 0% | 0% | 1 |
| 0% | 0% | 100% | 0% | 0% | 0% | 0% | 2 |
| 50% | 50% | 50% | 0% | 0% | 0% | 0% | 3 |
| 66.7% | 50% | 25% | 0% | 0% | 0% | 25% | 4 |
| 80% | 50% | 12.5% | 0% | 0% | 0% | 37.5% | 5 |
| 88.9% | 50% | 6.2% | 0% | 0% | 0% | 43.7% | 6 |
| 94.1% | 50% | 3.1% | 0% | 0% | 0% | 46.9% | 7 |
| 97% | 50% | 1.6% | 0% | 0% | 0% | 48.4% | 8 |
| 97% | 50% | 1.6% | 0% | 0% | 0% | 48.4% | 9 |
| 97.7% | 50.4% | 1.2% | 0% | 0% | 0% | 48.4% | 10 |
| 97.7% | 50.4% | 1.2% | 0% | 0% | 0% | 48.4% | 11 |
| 97.9% | 50.4% | 1.1% | 0% | 0% | 0% | 48.5% | 12 |
Compiled 15 to 8 computations (46.7% saved)
| 2.0s | 4034× | body | 1024 | valid |
| 517.0ms | 1987× | body | 512 | valid |
| 278.0ms | 1818× | body | 256 | valid |
| 234.0ms | 417× | body | 2048 | valid |
| 1.0ms | 11× | body | 256 | unsamplable |
| 2× | egg-herbie |
| 1032× | associate-*r* |
| 804× | *-commutative |
| 774× | fma-def |
| 770× | times-frac |
| 752× | associate-+r+ |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 10 | 43 |
| 1 | 22 | 43 |
| 2 | 36 | 43 |
| 3 | 61 | 43 |
| 4 | 130 | 43 |
| 5 | 351 | 43 |
| 6 | 1046 | 43 |
| 7 | 2825 | 43 |
| 8 | 5986 | 43 |
| 0 | 1 | 1 |
| 1× | saturated |
| 1× | node limit |
| Inputs |
|---|
0 |
| Outputs |
|---|
0 |
| Inputs |
|---|
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) |
| Outputs |
|---|
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) |
Compiled 15 to 8 computations (46.7% saved)
| 1× | egg-herbie |
| 1032× | associate-*r* |
| 804× | *-commutative |
| 774× | fma-def |
| 770× | times-frac |
| 752× | associate-+r+ |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 10 | 43 |
| 1 | 22 | 43 |
| 2 | 36 | 43 |
| 3 | 61 | 43 |
| 4 | 130 | 43 |
| 5 | 351 | 43 |
| 6 | 1046 | 43 |
| 7 | 2825 | 43 |
| 8 | 5986 | 43 |
| 1× | node limit |
| Inputs |
|---|
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) |
| Outputs |
|---|
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) |
Compiled 14 to 7 computations (50% 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 | Accuracy | Program |
|---|---|---|
| ▶ | 9.1% | (/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) |
Compiled 14 to 7 computations (50% saved)
Found 3 expressions with local accuracy:
| New | Accuracy | Program |
|---|---|---|
| ✓ | 100.0% | (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) |
| ✓ | 97.7% | (/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) |
| ✓ | 91.0% | (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) |
Compiled 34 to 7 computations (79.4% saved)
9 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 1.0ms | x | @ | inf | (/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) |
| 1.0ms | x | @ | -inf | (/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) |
| 0.0ms | x | @ | 0 | (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) |
| 0.0ms | x | @ | 0 | (/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) |
| 0.0ms | x | @ | -inf | (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) |
| 3× | egg-rewrite-iter-limit |
| 3× | egg-rewrite |
| 1× | batch-egg-rewrite |
| 238× | add-sqr-sqrt |
| 238× | add-sqr-sqrt |
| 230× | pow1 |
| 230× | *-un-lft-identity |
| 230× | pow1 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 10 | 33 |
| 1 | 226 | 33 |
| 2 | 4074 | 33 |
| 0 | 8 | 11 |
| 1 | 170 | 11 |
| 2 | 2644 | 11 |
| 0 | 8 | 11 |
| 0 | 10 | 5 |
| 1 | 226 | 5 |
| 2 | 4074 | 5 |
| 0 | 10 | 5 |
| 0 | 8 | 11 |
| 1 | 169 | 11 |
| 2 | 2616 | 11 |
| 0 | 8 | 11 |
| 1× | iter limit |
| 1× | unsound |
| 1× | iter limit |
| 1× | unsound |
| 1× | iter limit |
| 1× | unsound |
| 1× | unsound |
| Inputs |
|---|
(-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) |
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) |
(+.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) |
| Outputs |
|---|
(((+.f64 (exp.f64 x) (neg.f64 (exp.f64 (neg.f64 x)))) (2)) ((*.f64 1 (*.f64 2 (sinh.f64 x))) (2)) ((*.f64 (sqrt.f64 (*.f64 2 (sinh.f64 x))) (sqrt.f64 (*.f64 2 (sinh.f64 x)))) (2)) ((*.f64 (*.f64 (cbrt.f64 (*.f64 2 (sinh.f64 x))) (cbrt.f64 (*.f64 2 (sinh.f64 x)))) (cbrt.f64 (*.f64 2 (sinh.f64 x)))) (2)) ((*.f64 2 (sinh.f64 x)) (2)) ((/.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)))) (2)) ((/.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)))))) (2)) ((pow.f64 (*.f64 2 (sinh.f64 x)) 1) (2)) ((log.f64 (exp.f64 (*.f64 2 (sinh.f64 x)))) (2)) ((cbrt.f64 (*.f64 (*.f64 (*.f64 2 (sinh.f64 x)) (*.f64 2 (sinh.f64 x))) (*.f64 2 (sinh.f64 x)))) (2)) ((expm1.f64 (log1p.f64 (*.f64 2 (sinh.f64 x)))) (2)) ((exp.f64 (log.f64 (*.f64 2 (sinh.f64 x)))) (2)) ((log1p.f64 (expm1.f64 (*.f64 2 (sinh.f64 x)))) (2))) |
(((-.f64 (/.f64 (exp.f64 x) (*.f64 2 (cosh.f64 x))) (/.f64 (exp.f64 (neg.f64 x)) (*.f64 2 (cosh.f64 x)))) (2)) ((*.f64 (*.f64 2 (sinh.f64 x)) (/.f64 1 (*.f64 2 (cosh.f64 x)))) (2)) ((*.f64 1 (tanh.f64 x)) (2)) ((*.f64 (sqrt.f64 (tanh.f64 x)) (sqrt.f64 (tanh.f64 x))) (2)) ((*.f64 (*.f64 (cbrt.f64 (tanh.f64 x)) (cbrt.f64 (tanh.f64 x))) (cbrt.f64 (tanh.f64 x))) (2)) ((pow.f64 (tanh.f64 x) 1) (2)) ((log.f64 (exp.f64 (tanh.f64 x))) (2)) ((cbrt.f64 (*.f64 (*.f64 (tanh.f64 x) (tanh.f64 x)) (tanh.f64 x))) (2)) ((expm1.f64 (log1p.f64 (tanh.f64 x))) (2)) ((exp.f64 (log.f64 (tanh.f64 x))) (2)) ((log1p.f64 (expm1.f64 (tanh.f64 x))) (2)) ((tanh.f64 x) (2))) |
(((*.f64 1 (*.f64 2 (cosh.f64 x))) (2)) ((*.f64 (sqrt.f64 (*.f64 2 (cosh.f64 x))) (sqrt.f64 (*.f64 2 (cosh.f64 x)))) (2)) ((*.f64 (*.f64 (cbrt.f64 (*.f64 2 (cosh.f64 x))) (cbrt.f64 (*.f64 2 (cosh.f64 x)))) (cbrt.f64 (*.f64 2 (cosh.f64 x)))) (2)) ((*.f64 2 (cosh.f64 x)) (2)) ((/.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)))) (2)) ((/.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)))))) (2)) ((pow.f64 (*.f64 2 (cosh.f64 x)) 1) (2)) ((log.f64 (exp.f64 (*.f64 2 (cosh.f64 x)))) (2)) ((cbrt.f64 (*.f64 (*.f64 (*.f64 2 (cosh.f64 x)) (*.f64 2 (cosh.f64 x))) (*.f64 2 (cosh.f64 x)))) (2)) ((expm1.f64 (log1p.f64 (*.f64 2 (cosh.f64 x)))) (2)) ((exp.f64 (log.f64 (*.f64 2 (cosh.f64 x)))) (2)) ((log1p.f64 (expm1.f64 (*.f64 2 (cosh.f64 x)))) (2))) |
| 1× | egg-herbie |
| 860× | associate--r+ |
| 792× | associate-/l* |
| 604× | associate-/r* |
| 584× | associate-*r/ |
| 564× | times-frac |
Useful iterations: 2 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 144 | 1097 |
| 1 | 360 | 1045 |
| 2 | 1524 | 1023 |
| 3 | 5523 | 1023 |
| 1× | node limit |
| Inputs |
|---|
(*.f64 2 x) |
(+.f64 (*.f64 2 x) (*.f64 1/3 (pow.f64 x 3))) |
(+.f64 (*.f64 2 x) (+.f64 (*.f64 1/3 (pow.f64 x 3)) (*.f64 1/60 (pow.f64 x 5)))) |
(+.f64 (*.f64 2 x) (+.f64 (*.f64 1/3 (pow.f64 x 3)) (+.f64 (*.f64 1/2520 (pow.f64 x 7)) (*.f64 1/60 (pow.f64 x 5))))) |
(-.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))) |
x |
(+.f64 (*.f64 -1/3 (pow.f64 x 3)) x) |
(+.f64 (*.f64 -1/3 (pow.f64 x 3)) (+.f64 (*.f64 2/15 (pow.f64 x 5)) x)) |
(+.f64 (*.f64 -17/315 (pow.f64 x 7)) (+.f64 (*.f64 -1/3 (pow.f64 x 3)) (+.f64 (*.f64 2/15 (pow.f64 x 5)) x))) |
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 (neg.f64 x)) (exp.f64 x))) |
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 (neg.f64 x)) (exp.f64 x))) |
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 (neg.f64 x)) (exp.f64 x))) |
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 (neg.f64 x)) (exp.f64 x))) |
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (*.f64 -1 x))) (+.f64 (exp.f64 x) (exp.f64 (*.f64 -1 x)))) |
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (*.f64 -1 x))) (+.f64 (exp.f64 x) (exp.f64 (*.f64 -1 x)))) |
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (*.f64 -1 x))) (+.f64 (exp.f64 x) (exp.f64 (*.f64 -1 x)))) |
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (*.f64 -1 x))) (+.f64 (exp.f64 x) (exp.f64 (*.f64 -1 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 (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))) |
(+.f64 (exp.f64 x) (neg.f64 (exp.f64 (neg.f64 x)))) |
(*.f64 1 (*.f64 2 (sinh.f64 x))) |
(*.f64 (sqrt.f64 (*.f64 2 (sinh.f64 x))) (sqrt.f64 (*.f64 2 (sinh.f64 x)))) |
(*.f64 (*.f64 (cbrt.f64 (*.f64 2 (sinh.f64 x))) (cbrt.f64 (*.f64 2 (sinh.f64 x)))) (cbrt.f64 (*.f64 2 (sinh.f64 x)))) |
(*.f64 2 (sinh.f64 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)))) |
(/.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)))))) |
(pow.f64 (*.f64 2 (sinh.f64 x)) 1) |
(log.f64 (exp.f64 (*.f64 2 (sinh.f64 x)))) |
(cbrt.f64 (*.f64 (*.f64 (*.f64 2 (sinh.f64 x)) (*.f64 2 (sinh.f64 x))) (*.f64 2 (sinh.f64 x)))) |
(expm1.f64 (log1p.f64 (*.f64 2 (sinh.f64 x)))) |
(exp.f64 (log.f64 (*.f64 2 (sinh.f64 x)))) |
(log1p.f64 (expm1.f64 (*.f64 2 (sinh.f64 x)))) |
(-.f64 (/.f64 (exp.f64 x) (*.f64 2 (cosh.f64 x))) (/.f64 (exp.f64 (neg.f64 x)) (*.f64 2 (cosh.f64 x)))) |
(*.f64 (*.f64 2 (sinh.f64 x)) (/.f64 1 (*.f64 2 (cosh.f64 x)))) |
(*.f64 1 (tanh.f64 x)) |
(*.f64 (sqrt.f64 (tanh.f64 x)) (sqrt.f64 (tanh.f64 x))) |
(*.f64 (*.f64 (cbrt.f64 (tanh.f64 x)) (cbrt.f64 (tanh.f64 x))) (cbrt.f64 (tanh.f64 x))) |
(pow.f64 (tanh.f64 x) 1) |
(log.f64 (exp.f64 (tanh.f64 x))) |
(cbrt.f64 (*.f64 (*.f64 (tanh.f64 x) (tanh.f64 x)) (tanh.f64 x))) |
(expm1.f64 (log1p.f64 (tanh.f64 x))) |
(exp.f64 (log.f64 (tanh.f64 x))) |
(log1p.f64 (expm1.f64 (tanh.f64 x))) |
(tanh.f64 x) |
(*.f64 1 (*.f64 2 (cosh.f64 x))) |
(*.f64 (sqrt.f64 (*.f64 2 (cosh.f64 x))) (sqrt.f64 (*.f64 2 (cosh.f64 x)))) |
(*.f64 (*.f64 (cbrt.f64 (*.f64 2 (cosh.f64 x))) (cbrt.f64 (*.f64 2 (cosh.f64 x)))) (cbrt.f64 (*.f64 2 (cosh.f64 x)))) |
(*.f64 2 (cosh.f64 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)))) |
(/.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)))))) |
(pow.f64 (*.f64 2 (cosh.f64 x)) 1) |
(log.f64 (exp.f64 (*.f64 2 (cosh.f64 x)))) |
(cbrt.f64 (*.f64 (*.f64 (*.f64 2 (cosh.f64 x)) (*.f64 2 (cosh.f64 x))) (*.f64 2 (cosh.f64 x)))) |
(expm1.f64 (log1p.f64 (*.f64 2 (cosh.f64 x)))) |
(exp.f64 (log.f64 (*.f64 2 (cosh.f64 x)))) |
(log1p.f64 (expm1.f64 (*.f64 2 (cosh.f64 x)))) |
| Outputs |
|---|
(*.f64 2 x) |
(+.f64 x x) |
(+.f64 (*.f64 2 x) (*.f64 1/3 (pow.f64 x 3))) |
(fma.f64 2 x (*.f64 1/3 (pow.f64 x 3))) |
(fma.f64 1/3 (pow.f64 x 3) (+.f64 x x)) |
(+.f64 (*.f64 2 x) (+.f64 (*.f64 1/3 (pow.f64 x 3)) (*.f64 1/60 (pow.f64 x 5)))) |
(fma.f64 2 x (fma.f64 1/3 (pow.f64 x 3) (*.f64 1/60 (pow.f64 x 5)))) |
(fma.f64 1/3 (pow.f64 x 3) (fma.f64 1/60 (pow.f64 x 5) (+.f64 x x))) |
(+.f64 (*.f64 2 x) (+.f64 (*.f64 1/3 (pow.f64 x 3)) (+.f64 (*.f64 1/2520 (pow.f64 x 7)) (*.f64 1/60 (pow.f64 x 5))))) |
(fma.f64 2 x (fma.f64 1/3 (pow.f64 x 3) (fma.f64 1/2520 (pow.f64 x 7) (*.f64 1/60 (pow.f64 x 5))))) |
(fma.f64 2 x (fma.f64 1/3 (pow.f64 x 3) (fma.f64 1/60 (pow.f64 x 5) (*.f64 1/2520 (pow.f64 x 7))))) |
(fma.f64 2 x (fma.f64 1/60 (pow.f64 x 5) (fma.f64 1/3 (pow.f64 x 3) (*.f64 1/2520 (pow.f64 x 7))))) |
(-.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))) |
x |
(+.f64 (*.f64 -1/3 (pow.f64 x 3)) x) |
(fma.f64 -1/3 (pow.f64 x 3) x) |
(fma.f64 (pow.f64 x 3) -1/3 x) |
(+.f64 (*.f64 -1/3 (pow.f64 x 3)) (+.f64 (*.f64 2/15 (pow.f64 x 5)) x)) |
(fma.f64 -1/3 (pow.f64 x 3) (fma.f64 2/15 (pow.f64 x 5) x)) |
(fma.f64 (pow.f64 x 3) -1/3 (fma.f64 (pow.f64 x 5) 2/15 x)) |
(+.f64 (*.f64 -17/315 (pow.f64 x 7)) (+.f64 (*.f64 -1/3 (pow.f64 x 3)) (+.f64 (*.f64 2/15 (pow.f64 x 5)) x))) |
(fma.f64 -17/315 (pow.f64 x 7) (fma.f64 -1/3 (pow.f64 x 3) (fma.f64 2/15 (pow.f64 x 5) x))) |
(fma.f64 (pow.f64 x 7) -17/315 (fma.f64 (pow.f64 x 3) -1/3 (fma.f64 (pow.f64 x 5) 2/15 x))) |
(fma.f64 (pow.f64 x 3) -1/3 (fma.f64 (pow.f64 x 7) -17/315 (fma.f64 (pow.f64 x 5) 2/15 x))) |
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 (neg.f64 x)) (exp.f64 x))) |
(tanh.f64 x) |
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 (neg.f64 x)) (exp.f64 x))) |
(tanh.f64 x) |
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 (neg.f64 x)) (exp.f64 x))) |
(tanh.f64 x) |
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 (neg.f64 x)) (exp.f64 x))) |
(tanh.f64 x) |
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (*.f64 -1 x))) (+.f64 (exp.f64 x) (exp.f64 (*.f64 -1 x)))) |
(tanh.f64 x) |
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (*.f64 -1 x))) (+.f64 (exp.f64 x) (exp.f64 (*.f64 -1 x)))) |
(tanh.f64 x) |
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (*.f64 -1 x))) (+.f64 (exp.f64 x) (exp.f64 (*.f64 -1 x)))) |
(tanh.f64 x) |
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (*.f64 -1 x))) (+.f64 (exp.f64 x) (exp.f64 (*.f64 -1 x)))) |
(tanh.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 (+.f64 2 (*.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 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 x x (fma.f64 1/12 (pow.f64 x 4) 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))) |
(+.f64 (exp.f64 x) (neg.f64 (exp.f64 (neg.f64 x)))) |
(-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) |
(*.f64 1 (*.f64 2 (sinh.f64 x))) |
(*.f64 2 (sinh.f64 x)) |
(*.f64 (sqrt.f64 (*.f64 2 (sinh.f64 x))) (sqrt.f64 (*.f64 2 (sinh.f64 x)))) |
(*.f64 2 (sinh.f64 x)) |
(*.f64 (*.f64 (cbrt.f64 (*.f64 2 (sinh.f64 x))) (cbrt.f64 (*.f64 2 (sinh.f64 x)))) (cbrt.f64 (*.f64 2 (sinh.f64 x)))) |
(*.f64 2 (sinh.f64 x)) |
(*.f64 2 (sinh.f64 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)))) |
(/.f64 (-.f64 (exp.f64 (+.f64 x x)) (exp.f64 (+.f64 (neg.f64 x) (neg.f64 x)))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) |
(/.f64 (-.f64 (pow.f64 (exp.f64 x) 2) (pow.f64 (exp.f64 -2) x)) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 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)))))) |
(/.f64 (-.f64 (pow.f64 (exp.f64 x) 3) (pow.f64 (exp.f64 (neg.f64 x)) 3)) (+.f64 (exp.f64 (+.f64 x x)) (*.f64 (exp.f64 (neg.f64 x)) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))))) |
(/.f64 (-.f64 (pow.f64 (exp.f64 x) 3) (pow.f64 (exp.f64 (neg.f64 x)) 3)) (+.f64 (pow.f64 (exp.f64 x) 2) (+.f64 1 (pow.f64 (exp.f64 -2) x)))) |
(/.f64 (-.f64 (pow.f64 (exp.f64 x) 3) (exp.f64 (*.f64 x -3))) (+.f64 1 (+.f64 (pow.f64 (exp.f64 x) 2) (pow.f64 (exp.f64 -2) x)))) |
(/.f64 (-.f64 (exp.f64 (*.f64 3 x)) (exp.f64 (*.f64 x -3))) (+.f64 1 (+.f64 (pow.f64 (exp.f64 x) 2) (pow.f64 (exp.f64 -2) x)))) |
(pow.f64 (*.f64 2 (sinh.f64 x)) 1) |
(*.f64 2 (sinh.f64 x)) |
(log.f64 (exp.f64 (*.f64 2 (sinh.f64 x)))) |
(*.f64 2 (sinh.f64 x)) |
(cbrt.f64 (*.f64 (*.f64 (*.f64 2 (sinh.f64 x)) (*.f64 2 (sinh.f64 x))) (*.f64 2 (sinh.f64 x)))) |
(*.f64 2 (sinh.f64 x)) |
(expm1.f64 (log1p.f64 (*.f64 2 (sinh.f64 x)))) |
(*.f64 2 (sinh.f64 x)) |
(exp.f64 (log.f64 (*.f64 2 (sinh.f64 x)))) |
(*.f64 2 (sinh.f64 x)) |
(log1p.f64 (expm1.f64 (*.f64 2 (sinh.f64 x)))) |
(*.f64 2 (sinh.f64 x)) |
(-.f64 (/.f64 (exp.f64 x) (*.f64 2 (cosh.f64 x))) (/.f64 (exp.f64 (neg.f64 x)) (*.f64 2 (cosh.f64 x)))) |
(tanh.f64 x) |
(*.f64 (*.f64 2 (sinh.f64 x)) (/.f64 1 (*.f64 2 (cosh.f64 x)))) |
(tanh.f64 x) |
(*.f64 1 (tanh.f64 x)) |
(tanh.f64 x) |
(*.f64 (sqrt.f64 (tanh.f64 x)) (sqrt.f64 (tanh.f64 x))) |
(tanh.f64 x) |
(*.f64 (*.f64 (cbrt.f64 (tanh.f64 x)) (cbrt.f64 (tanh.f64 x))) (cbrt.f64 (tanh.f64 x))) |
(tanh.f64 x) |
(pow.f64 (tanh.f64 x) 1) |
(tanh.f64 x) |
(log.f64 (exp.f64 (tanh.f64 x))) |
(tanh.f64 x) |
(cbrt.f64 (*.f64 (*.f64 (tanh.f64 x) (tanh.f64 x)) (tanh.f64 x))) |
(tanh.f64 x) |
(expm1.f64 (log1p.f64 (tanh.f64 x))) |
(tanh.f64 x) |
(exp.f64 (log.f64 (tanh.f64 x))) |
(tanh.f64 x) |
(log1p.f64 (expm1.f64 (tanh.f64 x))) |
(tanh.f64 x) |
(tanh.f64 x) |
(*.f64 1 (*.f64 2 (cosh.f64 x))) |
(*.f64 2 (cosh.f64 x)) |
(*.f64 (sqrt.f64 (*.f64 2 (cosh.f64 x))) (sqrt.f64 (*.f64 2 (cosh.f64 x)))) |
(*.f64 2 (cosh.f64 x)) |
(*.f64 (*.f64 (cbrt.f64 (*.f64 2 (cosh.f64 x))) (cbrt.f64 (*.f64 2 (cosh.f64 x)))) (cbrt.f64 (*.f64 2 (cosh.f64 x)))) |
(*.f64 2 (cosh.f64 x)) |
(*.f64 2 (cosh.f64 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)))) |
(*.f64 2 (cosh.f64 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)))))) |
(/.f64 (+.f64 (pow.f64 (exp.f64 x) 3) (pow.f64 (exp.f64 (neg.f64 x)) 3)) (+.f64 (exp.f64 (+.f64 x x)) (*.f64 (exp.f64 (neg.f64 x)) (-.f64 (exp.f64 (neg.f64 x)) (exp.f64 x))))) |
(/.f64 (+.f64 (pow.f64 (exp.f64 x) 3) (pow.f64 (exp.f64 (neg.f64 x)) 3)) (+.f64 (pow.f64 (exp.f64 x) 2) (+.f64 -1 (pow.f64 (exp.f64 -2) x)))) |
(/.f64 (+.f64 (pow.f64 (exp.f64 x) 3) (exp.f64 (*.f64 x -3))) (+.f64 (pow.f64 (exp.f64 x) 2) (expm1.f64 (*.f64 x -2)))) |
(/.f64 (+.f64 (exp.f64 (*.f64 3 x)) (exp.f64 (*.f64 x -3))) (+.f64 (pow.f64 (exp.f64 x) 2) (expm1.f64 (*.f64 x -2)))) |
(pow.f64 (*.f64 2 (cosh.f64 x)) 1) |
(*.f64 2 (cosh.f64 x)) |
(log.f64 (exp.f64 (*.f64 2 (cosh.f64 x)))) |
(*.f64 2 (cosh.f64 x)) |
(cbrt.f64 (*.f64 (*.f64 (*.f64 2 (cosh.f64 x)) (*.f64 2 (cosh.f64 x))) (*.f64 2 (cosh.f64 x)))) |
(*.f64 2 (cosh.f64 x)) |
(expm1.f64 (log1p.f64 (*.f64 2 (cosh.f64 x)))) |
(*.f64 2 (cosh.f64 x)) |
(exp.f64 (log.f64 (*.f64 2 (cosh.f64 x)))) |
(*.f64 2 (cosh.f64 x)) |
(log1p.f64 (expm1.f64 (*.f64 2 (cosh.f64 x)))) |
(*.f64 2 (cosh.f64 x)) |
Compiled 1461 to 653 computations (55.3% saved)
3 alts after pruning (3 fresh and 0 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 86 | 3 | 89 |
| Fresh | 0 | 0 | 0 |
| Picked | 1 | 0 | 1 |
| Done | 0 | 0 | 0 |
| Total | 87 | 3 | 90 |
| Status | Accuracy | Program |
|---|---|---|
| ▶ | 96.3% | (+.f64 (*.f64 -1/3 (pow.f64 x 3)) x) |
| ▶ | 100.0% | (tanh.f64 x) |
| 96.1% | x |
Compiled 13 to 9 computations (30.8% saved)
Found 1 expressions with local accuracy:
| New | Accuracy | Program |
|---|---|---|
| ✓ | 100.0% | (tanh.f64 x) |
Compiled 4 to 2 computations (50% saved)
3 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 1.0ms | x | @ | -inf | (tanh.f64 x) |
| 1.0ms | x | @ | inf | (tanh.f64 x) |
| 0.0ms | x | @ | 0 | (tanh.f64 x) |
| 1× | batch-egg-rewrite |
| 1142× | add-sqr-sqrt |
| 1124× | *-un-lft-identity |
| 1084× | pow1 |
| 1050× | add-cube-cbrt |
| 1042× | add-cbrt-cube |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 4 | 5 |
| 1 | 95 | 5 |
| 2 | 1318 | 5 |
| 1× | node limit |
| Inputs |
|---|
(tanh.f64 x) |
| Outputs |
|---|
(((-.f64 (+.f64 1 (tanh.f64 x)) 1) (2)) ((-.f64 (/.f64 1 (+.f64 1 (exp.f64 (*.f64 x -2)))) (/.f64 (exp.f64 (*.f64 x -2)) (+.f64 1 (exp.f64 (*.f64 x -2))))) (2)) ((-.f64 (/.f64 (exp.f64 x) (*.f64 2 (cosh.f64 x))) (/.f64 (exp.f64 (neg.f64 x)) (*.f64 2 (cosh.f64 x)))) (2)) ((-.f64 (/.f64 (pow.f64 (exp.f64 2) x) (+.f64 1 (pow.f64 (exp.f64 2) x))) (/.f64 1 (+.f64 1 (pow.f64 (exp.f64 2) x)))) (2)) ((*.f64 (tanh.f64 x) 1) (2)) ((*.f64 1 (tanh.f64 x)) (2)) ((*.f64 (sqrt.f64 (tanh.f64 x)) (sqrt.f64 (tanh.f64 x))) (2)) ((*.f64 (cbrt.f64 (tanh.f64 x)) (pow.f64 (cbrt.f64 (tanh.f64 x)) 2)) (2)) ((*.f64 (pow.f64 (cbrt.f64 (tanh.f64 x)) 2) (cbrt.f64 (tanh.f64 x))) (2)) ((*.f64 (*.f64 2 (sinh.f64 x)) (/.f64 1 (*.f64 2 (cosh.f64 x)))) (2)) ((*.f64 (expm1.f64 (*.f64 x 2)) (/.f64 1 (+.f64 1 (pow.f64 (exp.f64 2) x)))) (2)) ((*.f64 (-.f64 1 (exp.f64 (*.f64 x -2))) (/.f64 1 (+.f64 1 (exp.f64 (*.f64 x -2))))) (2)) ((/.f64 1 (/.f64 (*.f64 2 (cosh.f64 x)) (*.f64 2 (sinh.f64 x)))) (2)) ((/.f64 1 (/.f64 (+.f64 1 (pow.f64 (exp.f64 2) x)) (expm1.f64 (*.f64 x 2)))) (2)) ((/.f64 1 (/.f64 (+.f64 1 (exp.f64 (*.f64 x -2))) (-.f64 1 (exp.f64 (*.f64 x -2))))) (2)) ((/.f64 (*.f64 2 (sinh.f64 x)) (*.f64 2 (cosh.f64 x))) (2)) ((/.f64 (expm1.f64 (*.f64 x 2)) (+.f64 1 (pow.f64 (exp.f64 2) x))) (2)) ((/.f64 (-.f64 1 (exp.f64 (*.f64 x -2))) (+.f64 1 (exp.f64 (*.f64 x -2)))) (2)) ((/.f64 (neg.f64 (*.f64 2 (sinh.f64 x))) (neg.f64 (*.f64 2 (cosh.f64 x)))) (2)) ((/.f64 (neg.f64 (expm1.f64 (*.f64 x 2))) (neg.f64 (+.f64 1 (pow.f64 (exp.f64 2) x)))) (2)) ((/.f64 (neg.f64 (-.f64 1 (exp.f64 (*.f64 x -2)))) (neg.f64 (+.f64 1 (exp.f64 (*.f64 x -2))))) (2)) ((pow.f64 (tanh.f64 x) 1) (2)) ((pow.f64 (sqrt.f64 (tanh.f64 x)) 2) (2)) ((pow.f64 (cbrt.f64 (tanh.f64 x)) 3) (2)) ((pow.f64 (pow.f64 (tanh.f64 x) 3) 1/3) (2)) ((sqrt.f64 (pow.f64 (tanh.f64 x) 2)) (2)) ((log.f64 (exp.f64 (tanh.f64 x))) (2)) ((cbrt.f64 (pow.f64 (tanh.f64 x) 3)) (2)) ((expm1.f64 (log1p.f64 (tanh.f64 x))) (2)) ((exp.f64 (log.f64 (tanh.f64 x))) (2)) ((log1p.f64 (expm1.f64 (tanh.f64 x))) (2))) |
| 1× | egg-herbie |
| 1276× | associate-*r* |
| 1146× | associate-+l+ |
| 1052× | associate-*l* |
| 1036× | associate-+r+ |
| 742× | associate-+r- |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 102 | 283 |
| 1 | 256 | 283 |
| 2 | 1016 | 283 |
| 3 | 6073 | 283 |
| 1× | node limit |
| Inputs |
|---|
x |
(+.f64 (*.f64 -1/3 (pow.f64 x 3)) x) |
(+.f64 (*.f64 -1/3 (pow.f64 x 3)) (+.f64 (*.f64 2/15 (pow.f64 x 5)) x)) |
(+.f64 (*.f64 -17/315 (pow.f64 x 7)) (+.f64 (*.f64 -1/3 (pow.f64 x 3)) (+.f64 (*.f64 2/15 (pow.f64 x 5)) x))) |
(/.f64 (-.f64 (exp.f64 x) (/.f64 1 (exp.f64 x))) (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x))) |
(/.f64 (-.f64 (exp.f64 x) (/.f64 1 (exp.f64 x))) (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x))) |
(/.f64 (-.f64 (exp.f64 x) (/.f64 1 (exp.f64 x))) (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x))) |
(/.f64 (-.f64 (exp.f64 x) (/.f64 1 (exp.f64 x))) (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x))) |
(/.f64 (-.f64 (exp.f64 x) (/.f64 1 (exp.f64 x))) (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x))) |
(/.f64 (-.f64 (exp.f64 x) (/.f64 1 (exp.f64 x))) (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x))) |
(/.f64 (-.f64 (exp.f64 x) (/.f64 1 (exp.f64 x))) (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x))) |
(/.f64 (-.f64 (exp.f64 x) (/.f64 1 (exp.f64 x))) (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x))) |
(-.f64 (+.f64 1 (tanh.f64 x)) 1) |
(-.f64 (/.f64 1 (+.f64 1 (exp.f64 (*.f64 x -2)))) (/.f64 (exp.f64 (*.f64 x -2)) (+.f64 1 (exp.f64 (*.f64 x -2))))) |
(-.f64 (/.f64 (exp.f64 x) (*.f64 2 (cosh.f64 x))) (/.f64 (exp.f64 (neg.f64 x)) (*.f64 2 (cosh.f64 x)))) |
(-.f64 (/.f64 (pow.f64 (exp.f64 2) x) (+.f64 1 (pow.f64 (exp.f64 2) x))) (/.f64 1 (+.f64 1 (pow.f64 (exp.f64 2) x)))) |
(*.f64 (tanh.f64 x) 1) |
(*.f64 1 (tanh.f64 x)) |
(*.f64 (sqrt.f64 (tanh.f64 x)) (sqrt.f64 (tanh.f64 x))) |
(*.f64 (cbrt.f64 (tanh.f64 x)) (pow.f64 (cbrt.f64 (tanh.f64 x)) 2)) |
(*.f64 (pow.f64 (cbrt.f64 (tanh.f64 x)) 2) (cbrt.f64 (tanh.f64 x))) |
(*.f64 (*.f64 2 (sinh.f64 x)) (/.f64 1 (*.f64 2 (cosh.f64 x)))) |
(*.f64 (expm1.f64 (*.f64 x 2)) (/.f64 1 (+.f64 1 (pow.f64 (exp.f64 2) x)))) |
(*.f64 (-.f64 1 (exp.f64 (*.f64 x -2))) (/.f64 1 (+.f64 1 (exp.f64 (*.f64 x -2))))) |
(/.f64 1 (/.f64 (*.f64 2 (cosh.f64 x)) (*.f64 2 (sinh.f64 x)))) |
(/.f64 1 (/.f64 (+.f64 1 (pow.f64 (exp.f64 2) x)) (expm1.f64 (*.f64 x 2)))) |
(/.f64 1 (/.f64 (+.f64 1 (exp.f64 (*.f64 x -2))) (-.f64 1 (exp.f64 (*.f64 x -2))))) |
(/.f64 (*.f64 2 (sinh.f64 x)) (*.f64 2 (cosh.f64 x))) |
(/.f64 (expm1.f64 (*.f64 x 2)) (+.f64 1 (pow.f64 (exp.f64 2) x))) |
(/.f64 (-.f64 1 (exp.f64 (*.f64 x -2))) (+.f64 1 (exp.f64 (*.f64 x -2)))) |
(/.f64 (neg.f64 (*.f64 2 (sinh.f64 x))) (neg.f64 (*.f64 2 (cosh.f64 x)))) |
(/.f64 (neg.f64 (expm1.f64 (*.f64 x 2))) (neg.f64 (+.f64 1 (pow.f64 (exp.f64 2) x)))) |
(/.f64 (neg.f64 (-.f64 1 (exp.f64 (*.f64 x -2)))) (neg.f64 (+.f64 1 (exp.f64 (*.f64 x -2))))) |
(pow.f64 (tanh.f64 x) 1) |
(pow.f64 (sqrt.f64 (tanh.f64 x)) 2) |
(pow.f64 (cbrt.f64 (tanh.f64 x)) 3) |
(pow.f64 (pow.f64 (tanh.f64 x) 3) 1/3) |
(sqrt.f64 (pow.f64 (tanh.f64 x) 2)) |
(log.f64 (exp.f64 (tanh.f64 x))) |
(cbrt.f64 (pow.f64 (tanh.f64 x) 3)) |
(expm1.f64 (log1p.f64 (tanh.f64 x))) |
(exp.f64 (log.f64 (tanh.f64 x))) |
(log1p.f64 (expm1.f64 (tanh.f64 x))) |
| Outputs |
|---|
x |
(+.f64 (*.f64 -1/3 (pow.f64 x 3)) x) |
(fma.f64 -1/3 (pow.f64 x 3) x) |
(+.f64 (*.f64 -1/3 (pow.f64 x 3)) (+.f64 (*.f64 2/15 (pow.f64 x 5)) x)) |
(fma.f64 -1/3 (pow.f64 x 3) (fma.f64 2/15 (pow.f64 x 5) x)) |
(+.f64 (*.f64 -17/315 (pow.f64 x 7)) (+.f64 (*.f64 -1/3 (pow.f64 x 3)) (+.f64 (*.f64 2/15 (pow.f64 x 5)) x))) |
(fma.f64 -17/315 (pow.f64 x 7) (fma.f64 -1/3 (pow.f64 x 3) (fma.f64 2/15 (pow.f64 x 5) x))) |
(fma.f64 -1/3 (pow.f64 x 3) (fma.f64 -17/315 (pow.f64 x 7) (fma.f64 2/15 (pow.f64 x 5) x))) |
(/.f64 (-.f64 (exp.f64 x) (/.f64 1 (exp.f64 x))) (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x))) |
(tanh.f64 x) |
(/.f64 (-.f64 (exp.f64 x) (/.f64 1 (exp.f64 x))) (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x))) |
(tanh.f64 x) |
(/.f64 (-.f64 (exp.f64 x) (/.f64 1 (exp.f64 x))) (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x))) |
(tanh.f64 x) |
(/.f64 (-.f64 (exp.f64 x) (/.f64 1 (exp.f64 x))) (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x))) |
(tanh.f64 x) |
(/.f64 (-.f64 (exp.f64 x) (/.f64 1 (exp.f64 x))) (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x))) |
(tanh.f64 x) |
(/.f64 (-.f64 (exp.f64 x) (/.f64 1 (exp.f64 x))) (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x))) |
(tanh.f64 x) |
(/.f64 (-.f64 (exp.f64 x) (/.f64 1 (exp.f64 x))) (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x))) |
(tanh.f64 x) |
(/.f64 (-.f64 (exp.f64 x) (/.f64 1 (exp.f64 x))) (+.f64 (/.f64 1 (exp.f64 x)) (exp.f64 x))) |
(tanh.f64 x) |
(-.f64 (+.f64 1 (tanh.f64 x)) 1) |
(tanh.f64 x) |
(-.f64 (/.f64 1 (+.f64 1 (exp.f64 (*.f64 x -2)))) (/.f64 (exp.f64 (*.f64 x -2)) (+.f64 1 (exp.f64 (*.f64 x -2))))) |
(tanh.f64 x) |
(-.f64 (/.f64 (exp.f64 x) (*.f64 2 (cosh.f64 x))) (/.f64 (exp.f64 (neg.f64 x)) (*.f64 2 (cosh.f64 x)))) |
(tanh.f64 x) |
(-.f64 (/.f64 (pow.f64 (exp.f64 2) x) (+.f64 1 (pow.f64 (exp.f64 2) x))) (/.f64 1 (+.f64 1 (pow.f64 (exp.f64 2) x)))) |
(tanh.f64 x) |
(*.f64 (tanh.f64 x) 1) |
(tanh.f64 x) |
(*.f64 1 (tanh.f64 x)) |
(tanh.f64 x) |
(*.f64 (sqrt.f64 (tanh.f64 x)) (sqrt.f64 (tanh.f64 x))) |
(tanh.f64 x) |
(*.f64 (cbrt.f64 (tanh.f64 x)) (pow.f64 (cbrt.f64 (tanh.f64 x)) 2)) |
(tanh.f64 x) |
(*.f64 (pow.f64 (cbrt.f64 (tanh.f64 x)) 2) (cbrt.f64 (tanh.f64 x))) |
(tanh.f64 x) |
(*.f64 (*.f64 2 (sinh.f64 x)) (/.f64 1 (*.f64 2 (cosh.f64 x)))) |
(tanh.f64 x) |
(*.f64 (expm1.f64 (*.f64 x 2)) (/.f64 1 (+.f64 1 (pow.f64 (exp.f64 2) x)))) |
(tanh.f64 x) |
(*.f64 (-.f64 1 (exp.f64 (*.f64 x -2))) (/.f64 1 (+.f64 1 (exp.f64 (*.f64 x -2))))) |
(tanh.f64 x) |
(/.f64 1 (/.f64 (*.f64 2 (cosh.f64 x)) (*.f64 2 (sinh.f64 x)))) |
(tanh.f64 x) |
(/.f64 1 (/.f64 (+.f64 1 (pow.f64 (exp.f64 2) x)) (expm1.f64 (*.f64 x 2)))) |
(tanh.f64 x) |
(/.f64 1 (/.f64 (+.f64 1 (exp.f64 (*.f64 x -2))) (-.f64 1 (exp.f64 (*.f64 x -2))))) |
(tanh.f64 x) |
(/.f64 (*.f64 2 (sinh.f64 x)) (*.f64 2 (cosh.f64 x))) |
(tanh.f64 x) |
(/.f64 (expm1.f64 (*.f64 x 2)) (+.f64 1 (pow.f64 (exp.f64 2) x))) |
(tanh.f64 x) |
(/.f64 (-.f64 1 (exp.f64 (*.f64 x -2))) (+.f64 1 (exp.f64 (*.f64 x -2)))) |
(tanh.f64 x) |
(/.f64 (neg.f64 (*.f64 2 (sinh.f64 x))) (neg.f64 (*.f64 2 (cosh.f64 x)))) |
(tanh.f64 x) |
(/.f64 (neg.f64 (expm1.f64 (*.f64 x 2))) (neg.f64 (+.f64 1 (pow.f64 (exp.f64 2) x)))) |
(tanh.f64 x) |
(/.f64 (neg.f64 (-.f64 1 (exp.f64 (*.f64 x -2)))) (neg.f64 (+.f64 1 (exp.f64 (*.f64 x -2))))) |
(tanh.f64 x) |
(pow.f64 (tanh.f64 x) 1) |
(tanh.f64 x) |
(pow.f64 (sqrt.f64 (tanh.f64 x)) 2) |
(tanh.f64 x) |
(pow.f64 (cbrt.f64 (tanh.f64 x)) 3) |
(tanh.f64 x) |
(pow.f64 (pow.f64 (tanh.f64 x) 3) 1/3) |
(tanh.f64 x) |
(sqrt.f64 (pow.f64 (tanh.f64 x) 2)) |
(tanh.f64 x) |
(log.f64 (exp.f64 (tanh.f64 x))) |
(tanh.f64 x) |
(cbrt.f64 (pow.f64 (tanh.f64 x) 3)) |
(tanh.f64 x) |
(expm1.f64 (log1p.f64 (tanh.f64 x))) |
(tanh.f64 x) |
(exp.f64 (log.f64 (tanh.f64 x))) |
(tanh.f64 x) |
(log1p.f64 (expm1.f64 (tanh.f64 x))) |
(tanh.f64 x) |
Found 2 expressions with local accuracy:
| New | Accuracy | Program |
|---|---|---|
| ✓ | 100.0% | (+.f64 (*.f64 -1/3 (pow.f64 x 3)) x) |
| ✓ | 99.8% | (*.f64 -1/3 (pow.f64 x 3)) |
Compiled 19 to 14 computations (26.3% saved)
6 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 0.0ms | x | @ | 0 | (*.f64 -1/3 (pow.f64 x 3)) |
| 0.0ms | x | @ | inf | (+.f64 (*.f64 -1/3 (pow.f64 x 3)) x) |
| 0.0ms | x | @ | inf | (*.f64 -1/3 (pow.f64 x 3)) |
| 0.0ms | x | @ | -inf | (*.f64 -1/3 (pow.f64 x 3)) |
| 0.0ms | x | @ | -inf | (+.f64 (*.f64 -1/3 (pow.f64 x 3)) x) |
| 1× | batch-egg-rewrite |
| 1736× | add-sqr-sqrt |
| 1702× | *-un-lft-identity |
| 1612× | add-cube-cbrt |
| 1600× | add-cbrt-cube |
| 166× | add-exp-log |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 8 | 28 |
| 1 | 180 | 28 |
| 2 | 2168 | 28 |
| 1× | node limit |
| Inputs |
|---|
(*.f64 -1/3 (pow.f64 x 3)) |
(+.f64 (*.f64 -1/3 (pow.f64 x 3)) x) |
| Outputs |
|---|
(((-.f64 (exp.f64 (log1p.f64 (*.f64 -1/3 (pow.f64 x 3)))) 1) (2)) ((pow.f64 (*.f64 -1/3 (pow.f64 x 3)) 1) (2)) ((pow.f64 (*.f64 (pow.f64 x 3/2) (sqrt.f64 -1/3)) 2) (2)) ((pow.f64 (*.f64 x (cbrt.f64 -1/3)) 3) (2)) ((pow.f64 (pow.f64 (*.f64 -1/3 (pow.f64 x 3)) 3) 1/3) (2)) ((sqrt.f64 (*.f64 (pow.f64 x 6) 1/9)) (2)) ((log.f64 (pow.f64 (exp.f64 -1/3) (pow.f64 x 3))) (2)) ((log.f64 (+.f64 1 (expm1.f64 (*.f64 -1/3 (pow.f64 x 3))))) (2)) ((cbrt.f64 (pow.f64 (*.f64 -1/3 (pow.f64 x 3)) 3)) (2)) ((expm1.f64 (log1p.f64 (*.f64 -1/3 (pow.f64 x 3)))) (2)) ((exp.f64 (log.f64 (*.f64 -1/3 (pow.f64 x 3)))) (2)) ((exp.f64 (*.f64 (log.f64 (*.f64 -1/3 (pow.f64 x 3))) 1)) (2)) ((log1p.f64 (expm1.f64 (*.f64 -1/3 (pow.f64 x 3)))) (2))) |
(((-.f64 (exp.f64 (log1p.f64 (fma.f64 -1/3 (pow.f64 x 3) x))) 1) (2)) ((-.f64 (/.f64 (*.f64 (pow.f64 x 6) 1/9) (-.f64 (*.f64 -1/3 (pow.f64 x 3)) x)) (/.f64 (*.f64 x x) (-.f64 (*.f64 -1/3 (pow.f64 x 3)) x))) (2)) ((*.f64 (fma.f64 -1/3 (pow.f64 x 3) x) 1) (2)) ((*.f64 1 (fma.f64 -1/3 (pow.f64 x 3) x)) (2)) ((*.f64 (sqrt.f64 (fma.f64 -1/3 (pow.f64 x 3) x)) (sqrt.f64 (fma.f64 -1/3 (pow.f64 x 3) x))) (2)) ((*.f64 (cbrt.f64 (fma.f64 -1/3 (pow.f64 x 3) x)) (pow.f64 (cbrt.f64 (fma.f64 -1/3 (pow.f64 x 3) x)) 2)) (2)) ((*.f64 (pow.f64 (cbrt.f64 (fma.f64 -1/3 (pow.f64 x 3) x)) 2) (cbrt.f64 (fma.f64 -1/3 (pow.f64 x 3) x))) (2)) ((*.f64 (-.f64 (*.f64 (pow.f64 x 6) 1/9) (*.f64 x x)) (/.f64 1 (-.f64 (*.f64 -1/3 (pow.f64 x 3)) x))) (2)) ((*.f64 (+.f64 (pow.f64 x 3) (pow.f64 (*.f64 -1/3 (pow.f64 x 3)) 3)) (/.f64 1 (+.f64 (*.f64 (pow.f64 x 6) 1/9) (*.f64 x (-.f64 x (*.f64 -1/3 (pow.f64 x 3))))))) (2)) ((/.f64 1 (/.f64 (-.f64 (*.f64 -1/3 (pow.f64 x 3)) x) (-.f64 (*.f64 (pow.f64 x 6) 1/9) (*.f64 x x)))) (2)) ((/.f64 1 (/.f64 (+.f64 (*.f64 (pow.f64 x 6) 1/9) (*.f64 x (-.f64 x (*.f64 -1/3 (pow.f64 x 3))))) (+.f64 (pow.f64 x 3) (pow.f64 (*.f64 -1/3 (pow.f64 x 3)) 3)))) (2)) ((/.f64 (-.f64 (*.f64 (pow.f64 x 6) 1/9) (*.f64 x x)) (-.f64 (*.f64 -1/3 (pow.f64 x 3)) x)) (2)) ((/.f64 (+.f64 (pow.f64 x 3) (pow.f64 (*.f64 -1/3 (pow.f64 x 3)) 3)) (+.f64 (*.f64 (pow.f64 x 6) 1/9) (*.f64 x (-.f64 x (*.f64 -1/3 (pow.f64 x 3)))))) (2)) ((/.f64 (+.f64 (pow.f64 x 3) (pow.f64 (*.f64 -1/3 (pow.f64 x 3)) 3)) (+.f64 (*.f64 x x) (-.f64 (*.f64 (pow.f64 x 6) 1/9) (*.f64 (pow.f64 x 3) (*.f64 -1/3 x))))) (2)) ((/.f64 (-.f64 (*.f64 x x) (*.f64 (pow.f64 x 6) 1/9)) (-.f64 x (*.f64 -1/3 (pow.f64 x 3)))) (2)) ((/.f64 (neg.f64 (-.f64 (*.f64 (pow.f64 x 6) 1/9) (*.f64 x x))) (neg.f64 (-.f64 (*.f64 -1/3 (pow.f64 x 3)) x))) (2)) ((/.f64 (neg.f64 (+.f64 (pow.f64 x 3) (pow.f64 (*.f64 -1/3 (pow.f64 x 3)) 3))) (neg.f64 (+.f64 (*.f64 (pow.f64 x 6) 1/9) (*.f64 x (-.f64 x (*.f64 -1/3 (pow.f64 x 3))))))) (2)) ((pow.f64 (fma.f64 -1/3 (pow.f64 x 3) x) 1) (2)) ((pow.f64 (sqrt.f64 (fma.f64 -1/3 (pow.f64 x 3) x)) 2) (2)) ((pow.f64 (cbrt.f64 (fma.f64 -1/3 (pow.f64 x 3) x)) 3) (2)) ((pow.f64 (pow.f64 (fma.f64 -1/3 (pow.f64 x 3) x) 3) 1/3) (2)) ((sqrt.f64 (pow.f64 (fma.f64 -1/3 (pow.f64 x 3) x) 2)) (2)) ((log.f64 (exp.f64 (fma.f64 -1/3 (pow.f64 x 3) x))) (2)) ((log.f64 (+.f64 1 (expm1.f64 (fma.f64 -1/3 (pow.f64 x 3) x)))) (2)) ((cbrt.f64 (pow.f64 (fma.f64 -1/3 (pow.f64 x 3) x) 3)) (2)) ((expm1.f64 (log1p.f64 (fma.f64 -1/3 (pow.f64 x 3) x))) (2)) ((exp.f64 (log.f64 (fma.f64 -1/3 (pow.f64 x 3) x))) (2)) ((exp.f64 (*.f64 (log.f64 (fma.f64 -1/3 (pow.f64 x 3) x)) 1)) (2)) ((log1p.f64 (expm1.f64 (fma.f64 -1/3 (pow.f64 x 3) x))) (2)) ((fma.f64 -1/3 (pow.f64 x 3) x) (2)) ((fma.f64 (pow.f64 x 3) -1/3 x) (2)) ((fma.f64 1 x (*.f64 -1/3 (pow.f64 x 3))) (2)) ((fma.f64 1 (*.f64 -1/3 (pow.f64 x 3)) x) (2)) ((fma.f64 (*.f64 (pow.f64 x 3/2) (sqrt.f64 -1/3)) (*.f64 (pow.f64 x 3/2) (sqrt.f64 -1/3)) x) (2)) ((fma.f64 (sqrt.f64 x) (sqrt.f64 x) (*.f64 -1/3 (pow.f64 x 3))) (2)) ((fma.f64 (pow.f64 (*.f64 x (cbrt.f64 -1/3)) 2) (*.f64 x (cbrt.f64 -1/3)) x) (2)) ((fma.f64 (pow.f64 (cbrt.f64 x) 2) (cbrt.f64 x) (*.f64 -1/3 (pow.f64 x 3))) (2))) |
| 1× | egg-herbie |
| 828× | associate-*r/ |
| 676× | associate-*l/ |
| 648× | +-commutative |
| 606× | associate--r+ |
| 558× | unswap-sqr |
Useful iterations: 2 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 119 | 1289 |
| 1 | 286 | 1239 |
| 2 | 1157 | 1171 |
| 3 | 5224 | 1171 |
| 1× | node limit |
| Inputs |
|---|
x |
(*.f64 -1/3 (pow.f64 x 3)) |
(*.f64 -1/3 (pow.f64 x 3)) |
(-.f64 (exp.f64 (log1p.f64 (*.f64 -1/3 (pow.f64 x 3)))) 1) |
(pow.f64 (*.f64 -1/3 (pow.f64 x 3)) 1) |
(pow.f64 (*.f64 (pow.f64 x 3/2) (sqrt.f64 -1/3)) 2) |
(pow.f64 (*.f64 x (cbrt.f64 -1/3)) 3) |
(pow.f64 (pow.f64 (*.f64 -1/3 (pow.f64 x 3)) 3) 1/3) |
(sqrt.f64 (*.f64 (pow.f64 x 6) 1/9)) |
(log.f64 (pow.f64 (exp.f64 -1/3) (pow.f64 x 3))) |
(log.f64 (+.f64 1 (expm1.f64 (*.f64 -1/3 (pow.f64 x 3))))) |
(cbrt.f64 (pow.f64 (*.f64 -1/3 (pow.f64 x 3)) 3)) |
(expm1.f64 (log1p.f64 (*.f64 -1/3 (pow.f64 x 3)))) |
(exp.f64 (log.f64 (*.f64 -1/3 (pow.f64 x 3)))) |
(exp.f64 (*.f64 (log.f64 (*.f64 -1/3 (pow.f64 x 3))) 1)) |
(log1p.f64 (expm1.f64 (*.f64 -1/3 (pow.f64 x 3)))) |
(-.f64 (exp.f64 (log1p.f64 (fma.f64 -1/3 (pow.f64 x 3) x))) 1) |
(-.f64 (/.f64 (*.f64 (pow.f64 x 6) 1/9) (-.f64 (*.f64 -1/3 (pow.f64 x 3)) x)) (/.f64 (*.f64 x x) (-.f64 (*.f64 -1/3 (pow.f64 x 3)) x))) |
(*.f64 (fma.f64 -1/3 (pow.f64 x 3) x) 1) |
(*.f64 1 (fma.f64 -1/3 (pow.f64 x 3) x)) |
(*.f64 (sqrt.f64 (fma.f64 -1/3 (pow.f64 x 3) x)) (sqrt.f64 (fma.f64 -1/3 (pow.f64 x 3) x))) |
(*.f64 (cbrt.f64 (fma.f64 -1/3 (pow.f64 x 3) x)) (pow.f64 (cbrt.f64 (fma.f64 -1/3 (pow.f64 x 3) x)) 2)) |
(*.f64 (pow.f64 (cbrt.f64 (fma.f64 -1/3 (pow.f64 x 3) x)) 2) (cbrt.f64 (fma.f64 -1/3 (pow.f64 x 3) x))) |
(*.f64 (-.f64 (*.f64 (pow.f64 x 6) 1/9) (*.f64 x x)) (/.f64 1 (-.f64 (*.f64 -1/3 (pow.f64 x 3)) x))) |
(*.f64 (+.f64 (pow.f64 x 3) (pow.f64 (*.f64 -1/3 (pow.f64 x 3)) 3)) (/.f64 1 (+.f64 (*.f64 (pow.f64 x 6) 1/9) (*.f64 x (-.f64 x (*.f64 -1/3 (pow.f64 x 3))))))) |
(/.f64 1 (/.f64 (-.f64 (*.f64 -1/3 (pow.f64 x 3)) x) (-.f64 (*.f64 (pow.f64 x 6) 1/9) (*.f64 x x)))) |
(/.f64 1 (/.f64 (+.f64 (*.f64 (pow.f64 x 6) 1/9) (*.f64 x (-.f64 x (*.f64 -1/3 (pow.f64 x 3))))) (+.f64 (pow.f64 x 3) (pow.f64 (*.f64 -1/3 (pow.f64 x 3)) 3)))) |
(/.f64 (-.f64 (*.f64 (pow.f64 x 6) 1/9) (*.f64 x x)) (-.f64 (*.f64 -1/3 (pow.f64 x 3)) x)) |
(/.f64 (+.f64 (pow.f64 x 3) (pow.f64 (*.f64 -1/3 (pow.f64 x 3)) 3)) (+.f64 (*.f64 (pow.f64 x 6) 1/9) (*.f64 x (-.f64 x (*.f64 -1/3 (pow.f64 x 3)))))) |
(/.f64 (+.f64 (pow.f64 x 3) (pow.f64 (*.f64 -1/3 (pow.f64 x 3)) 3)) (+.f64 (*.f64 x x) (-.f64 (*.f64 (pow.f64 x 6) 1/9) (*.f64 (pow.f64 x 3) (*.f64 -1/3 x))))) |
(/.f64 (-.f64 (*.f64 x x) (*.f64 (pow.f64 x 6) 1/9)) (-.f64 x (*.f64 -1/3 (pow.f64 x 3)))) |
(/.f64 (neg.f64 (-.f64 (*.f64 (pow.f64 x 6) 1/9) (*.f64 x x))) (neg.f64 (-.f64 (*.f64 -1/3 (pow.f64 x 3)) x))) |
(/.f64 (neg.f64 (+.f64 (pow.f64 x 3) (pow.f64 (*.f64 -1/3 (pow.f64 x 3)) 3))) (neg.f64 (+.f64 (*.f64 (pow.f64 x 6) 1/9) (*.f64 x (-.f64 x (*.f64 -1/3 (pow.f64 x 3))))))) |
(pow.f64 (fma.f64 -1/3 (pow.f64 x 3) x) 1) |
(pow.f64 (sqrt.f64 (fma.f64 -1/3 (pow.f64 x 3) x)) 2) |
(pow.f64 (cbrt.f64 (fma.f64 -1/3 (pow.f64 x 3) x)) 3) |
(pow.f64 (pow.f64 (fma.f64 -1/3 (pow.f64 x 3) x) 3) 1/3) |
(sqrt.f64 (pow.f64 (fma.f64 -1/3 (pow.f64 x 3) x) 2)) |
(log.f64 (exp.f64 (fma.f64 -1/3 (pow.f64 x 3) x))) |
(log.f64 (+.f64 1 (expm1.f64 (fma.f64 -1/3 (pow.f64 x 3) x)))) |
(cbrt.f64 (pow.f64 (fma.f64 -1/3 (pow.f64 x 3) x) 3)) |
(expm1.f64 (log1p.f64 (fma.f64 -1/3 (pow.f64 x 3) x))) |
(exp.f64 (log.f64 (fma.f64 -1/3 (pow.f64 x 3) x))) |
(exp.f64 (*.f64 (log.f64 (fma.f64 -1/3 (pow.f64 x 3) x)) 1)) |
(log1p.f64 (expm1.f64 (fma.f64 -1/3 (pow.f64 x 3) x))) |
(fma.f64 -1/3 (pow.f64 x 3) x) |
(fma.f64 (pow.f64 x 3) -1/3 x) |
(fma.f64 1 x (*.f64 -1/3 (pow.f64 x 3))) |
(fma.f64 1 (*.f64 -1/3 (pow.f64 x 3)) x) |
(fma.f64 (*.f64 (pow.f64 x 3/2) (sqrt.f64 -1/3)) (*.f64 (pow.f64 x 3/2) (sqrt.f64 -1/3)) x) |
(fma.f64 (sqrt.f64 x) (sqrt.f64 x) (*.f64 -1/3 (pow.f64 x 3))) |
(fma.f64 (pow.f64 (*.f64 x (cbrt.f64 -1/3)) 2) (*.f64 x (cbrt.f64 -1/3)) x) |
(fma.f64 (pow.f64 (cbrt.f64 x) 2) (cbrt.f64 x) (*.f64 -1/3 (pow.f64 x 3))) |
| Outputs |
|---|
x |
(*.f64 -1/3 (pow.f64 x 3)) |
(*.f64 -1/3 (pow.f64 x 3)) |
(-.f64 (exp.f64 (log1p.f64 (*.f64 -1/3 (pow.f64 x 3)))) 1) |
(*.f64 -1/3 (pow.f64 x 3)) |
(pow.f64 (*.f64 -1/3 (pow.f64 x 3)) 1) |
(*.f64 -1/3 (pow.f64 x 3)) |
(pow.f64 (*.f64 (pow.f64 x 3/2) (sqrt.f64 -1/3)) 2) |
(*.f64 -1/3 (pow.f64 x 3)) |
(pow.f64 (*.f64 x (cbrt.f64 -1/3)) 3) |
(*.f64 -1/3 (pow.f64 x 3)) |
(pow.f64 (pow.f64 (*.f64 -1/3 (pow.f64 x 3)) 3) 1/3) |
(*.f64 -1/3 (pow.f64 x 3)) |
(sqrt.f64 (*.f64 (pow.f64 x 6) 1/9)) |
(log.f64 (pow.f64 (exp.f64 -1/3) (pow.f64 x 3))) |
(*.f64 -1/3 (pow.f64 x 3)) |
(log.f64 (+.f64 1 (expm1.f64 (*.f64 -1/3 (pow.f64 x 3))))) |
(*.f64 -1/3 (pow.f64 x 3)) |
(cbrt.f64 (pow.f64 (*.f64 -1/3 (pow.f64 x 3)) 3)) |
(*.f64 -1/3 (pow.f64 x 3)) |
(expm1.f64 (log1p.f64 (*.f64 -1/3 (pow.f64 x 3)))) |
(*.f64 -1/3 (pow.f64 x 3)) |
(exp.f64 (log.f64 (*.f64 -1/3 (pow.f64 x 3)))) |
(*.f64 -1/3 (pow.f64 x 3)) |
(exp.f64 (*.f64 (log.f64 (*.f64 -1/3 (pow.f64 x 3))) 1)) |
(*.f64 -1/3 (pow.f64 x 3)) |
(log1p.f64 (expm1.f64 (*.f64 -1/3 (pow.f64 x 3)))) |
(*.f64 -1/3 (pow.f64 x 3)) |
(-.f64 (exp.f64 (log1p.f64 (fma.f64 -1/3 (pow.f64 x 3) x))) 1) |
(fma.f64 -1/3 (pow.f64 x 3) x) |
(-.f64 (/.f64 (*.f64 (pow.f64 x 6) 1/9) (-.f64 (*.f64 -1/3 (pow.f64 x 3)) x)) (/.f64 (*.f64 x x) (-.f64 (*.f64 -1/3 (pow.f64 x 3)) x))) |
(/.f64 (-.f64 (*.f64 (pow.f64 x 6) 1/9) (*.f64 x x)) (fma.f64 -1/3 (pow.f64 x 3) (neg.f64 x))) |
(/.f64 (-.f64 (*.f64 (pow.f64 x 6) 1/9) (*.f64 x x)) (-.f64 (*.f64 -1/3 (pow.f64 x 3)) x)) |
(/.f64 (fma.f64 x x (*.f64 (pow.f64 x 6) -1/9)) (fma.f64 (pow.f64 x 3) 1/3 x)) |
(*.f64 (fma.f64 -1/3 (pow.f64 x 3) x) 1) |
(fma.f64 -1/3 (pow.f64 x 3) x) |
(*.f64 1 (fma.f64 -1/3 (pow.f64 x 3) x)) |
(fma.f64 -1/3 (pow.f64 x 3) x) |
(*.f64 (sqrt.f64 (fma.f64 -1/3 (pow.f64 x 3) x)) (sqrt.f64 (fma.f64 -1/3 (pow.f64 x 3) x))) |
(fma.f64 -1/3 (pow.f64 x 3) x) |
(*.f64 (cbrt.f64 (fma.f64 -1/3 (pow.f64 x 3) x)) (pow.f64 (cbrt.f64 (fma.f64 -1/3 (pow.f64 x 3) x)) 2)) |
(fma.f64 -1/3 (pow.f64 x 3) x) |
(*.f64 (pow.f64 (cbrt.f64 (fma.f64 -1/3 (pow.f64 x 3) x)) 2) (cbrt.f64 (fma.f64 -1/3 (pow.f64 x 3) x))) |
(fma.f64 -1/3 (pow.f64 x 3) x) |
(*.f64 (-.f64 (*.f64 (pow.f64 x 6) 1/9) (*.f64 x x)) (/.f64 1 (-.f64 (*.f64 -1/3 (pow.f64 x 3)) x))) |
(/.f64 (-.f64 (*.f64 (pow.f64 x 6) 1/9) (*.f64 x x)) (fma.f64 -1/3 (pow.f64 x 3) (neg.f64 x))) |
(/.f64 (-.f64 (*.f64 (pow.f64 x 6) 1/9) (*.f64 x x)) (-.f64 (*.f64 -1/3 (pow.f64 x 3)) x)) |
(/.f64 (fma.f64 x x (*.f64 (pow.f64 x 6) -1/9)) (fma.f64 (pow.f64 x 3) 1/3 x)) |
(*.f64 (+.f64 (pow.f64 x 3) (pow.f64 (*.f64 -1/3 (pow.f64 x 3)) 3)) (/.f64 1 (+.f64 (*.f64 (pow.f64 x 6) 1/9) (*.f64 x (-.f64 x (*.f64 -1/3 (pow.f64 x 3))))))) |
(/.f64 (*.f64 (+.f64 (pow.f64 x 3) (*.f64 -1/27 (pow.f64 (pow.f64 x 3) 3))) 1) (fma.f64 (pow.f64 x 6) 1/9 (*.f64 x (+.f64 x (*.f64 1/3 (pow.f64 x 3)))))) |
(/.f64 (fma.f64 -1/27 (pow.f64 (pow.f64 x 3) 3) (pow.f64 x 3)) (fma.f64 x (+.f64 x (*.f64 (pow.f64 x 3) 1/3)) (*.f64 (pow.f64 x 6) 1/9))) |
(/.f64 (fma.f64 -1/27 (pow.f64 (pow.f64 x 3) 3) (pow.f64 x 3)) (fma.f64 x x (fma.f64 (pow.f64 x 6) 1/9 (*.f64 1/3 (pow.f64 x 4))))) |
(/.f64 1 (/.f64 (-.f64 (*.f64 -1/3 (pow.f64 x 3)) x) (-.f64 (*.f64 (pow.f64 x 6) 1/9) (*.f64 x x)))) |
(/.f64 (-.f64 (*.f64 (pow.f64 x 6) 1/9) (*.f64 x x)) (fma.f64 -1/3 (pow.f64 x 3) (neg.f64 x))) |
(/.f64 (-.f64 (*.f64 (pow.f64 x 6) 1/9) (*.f64 x x)) (-.f64 (*.f64 -1/3 (pow.f64 x 3)) x)) |
(/.f64 (fma.f64 x x (*.f64 (pow.f64 x 6) -1/9)) (fma.f64 (pow.f64 x 3) 1/3 x)) |
(/.f64 1 (/.f64 (+.f64 (*.f64 (pow.f64 x 6) 1/9) (*.f64 x (-.f64 x (*.f64 -1/3 (pow.f64 x 3))))) (+.f64 (pow.f64 x 3) (pow.f64 (*.f64 -1/3 (pow.f64 x 3)) 3)))) |
(/.f64 (*.f64 (+.f64 (pow.f64 x 3) (*.f64 -1/27 (pow.f64 (pow.f64 x 3) 3))) 1) (fma.f64 (pow.f64 x 6) 1/9 (*.f64 x (+.f64 x (*.f64 1/3 (pow.f64 x 3)))))) |
(/.f64 (fma.f64 -1/27 (pow.f64 (pow.f64 x 3) 3) (pow.f64 x 3)) (fma.f64 x (+.f64 x (*.f64 (pow.f64 x 3) 1/3)) (*.f64 (pow.f64 x 6) 1/9))) |
(/.f64 (fma.f64 -1/27 (pow.f64 (pow.f64 x 3) 3) (pow.f64 x 3)) (fma.f64 x x (fma.f64 (pow.f64 x 6) 1/9 (*.f64 1/3 (pow.f64 x 4))))) |
(/.f64 (-.f64 (*.f64 (pow.f64 x 6) 1/9) (*.f64 x x)) (-.f64 (*.f64 -1/3 (pow.f64 x 3)) x)) |
(/.f64 (-.f64 (*.f64 (pow.f64 x 6) 1/9) (*.f64 x x)) (fma.f64 -1/3 (pow.f64 x 3) (neg.f64 x))) |
(/.f64 (fma.f64 x x (*.f64 (pow.f64 x 6) -1/9)) (fma.f64 (pow.f64 x 3) 1/3 x)) |
(/.f64 (+.f64 (pow.f64 x 3) (pow.f64 (*.f64 -1/3 (pow.f64 x 3)) 3)) (+.f64 (*.f64 (pow.f64 x 6) 1/9) (*.f64 x (-.f64 x (*.f64 -1/3 (pow.f64 x 3)))))) |
(/.f64 (*.f64 (+.f64 (pow.f64 x 3) (*.f64 -1/27 (pow.f64 (pow.f64 x 3) 3))) 1) (fma.f64 (pow.f64 x 6) 1/9 (*.f64 x (+.f64 x (*.f64 1/3 (pow.f64 x 3)))))) |
(/.f64 (fma.f64 -1/27 (pow.f64 (pow.f64 x 3) 3) (pow.f64 x 3)) (fma.f64 x (+.f64 x (*.f64 (pow.f64 x 3) 1/3)) (*.f64 (pow.f64 x 6) 1/9))) |
(/.f64 (fma.f64 -1/27 (pow.f64 (pow.f64 x 3) 3) (pow.f64 x 3)) (fma.f64 x x (fma.f64 (pow.f64 x 6) 1/9 (*.f64 1/3 (pow.f64 x 4))))) |
(/.f64 (+.f64 (pow.f64 x 3) (pow.f64 (*.f64 -1/3 (pow.f64 x 3)) 3)) (+.f64 (*.f64 x x) (-.f64 (*.f64 (pow.f64 x 6) 1/9) (*.f64 (pow.f64 x 3) (*.f64 -1/3 x))))) |
(/.f64 (*.f64 (+.f64 (pow.f64 x 3) (*.f64 -1/27 (pow.f64 (pow.f64 x 3) 3))) 1) (fma.f64 (pow.f64 x 6) 1/9 (*.f64 x (+.f64 x (*.f64 1/3 (pow.f64 x 3)))))) |
(/.f64 (fma.f64 -1/27 (pow.f64 (pow.f64 x 3) 3) (pow.f64 x 3)) (fma.f64 x (+.f64 x (*.f64 (pow.f64 x 3) 1/3)) (*.f64 (pow.f64 x 6) 1/9))) |
(/.f64 (fma.f64 -1/27 (pow.f64 (pow.f64 x 3) 3) (pow.f64 x 3)) (fma.f64 x x (fma.f64 (pow.f64 x 6) 1/9 (*.f64 1/3 (pow.f64 x 4))))) |
(/.f64 (-.f64 (*.f64 x x) (*.f64 (pow.f64 x 6) 1/9)) (-.f64 x (*.f64 -1/3 (pow.f64 x 3)))) |
(/.f64 (-.f64 (*.f64 (pow.f64 x 6) 1/9) (*.f64 x x)) (fma.f64 -1/3 (pow.f64 x 3) (neg.f64 x))) |
(/.f64 (-.f64 (*.f64 (pow.f64 x 6) 1/9) (*.f64 x x)) (-.f64 (*.f64 -1/3 (pow.f64 x 3)) x)) |
(/.f64 (fma.f64 x x (*.f64 (pow.f64 x 6) -1/9)) (fma.f64 (pow.f64 x 3) 1/3 x)) |
(/.f64 (neg.f64 (-.f64 (*.f64 (pow.f64 x 6) 1/9) (*.f64 x x))) (neg.f64 (-.f64 (*.f64 -1/3 (pow.f64 x 3)) x))) |
(/.f64 (-.f64 (*.f64 (pow.f64 x 6) 1/9) (*.f64 x x)) (fma.f64 -1/3 (pow.f64 x 3) (neg.f64 x))) |
(/.f64 (-.f64 (*.f64 (pow.f64 x 6) 1/9) (*.f64 x x)) (-.f64 (*.f64 -1/3 (pow.f64 x 3)) x)) |
(/.f64 (fma.f64 x x (*.f64 (pow.f64 x 6) -1/9)) (fma.f64 (pow.f64 x 3) 1/3 x)) |
(/.f64 (neg.f64 (+.f64 (pow.f64 x 3) (pow.f64 (*.f64 -1/3 (pow.f64 x 3)) 3))) (neg.f64 (+.f64 (*.f64 (pow.f64 x 6) 1/9) (*.f64 x (-.f64 x (*.f64 -1/3 (pow.f64 x 3))))))) |
(/.f64 (*.f64 (+.f64 (pow.f64 x 3) (*.f64 -1/27 (pow.f64 (pow.f64 x 3) 3))) 1) (fma.f64 (pow.f64 x 6) 1/9 (*.f64 x (+.f64 x (*.f64 1/3 (pow.f64 x 3)))))) |
(/.f64 (fma.f64 -1/27 (pow.f64 (pow.f64 x 3) 3) (pow.f64 x 3)) (fma.f64 x (+.f64 x (*.f64 (pow.f64 x 3) 1/3)) (*.f64 (pow.f64 x 6) 1/9))) |
(/.f64 (fma.f64 -1/27 (pow.f64 (pow.f64 x 3) 3) (pow.f64 x 3)) (fma.f64 x x (fma.f64 (pow.f64 x 6) 1/9 (*.f64 1/3 (pow.f64 x 4))))) |
(pow.f64 (fma.f64 -1/3 (pow.f64 x 3) x) 1) |
(fma.f64 -1/3 (pow.f64 x 3) x) |
(pow.f64 (sqrt.f64 (fma.f64 -1/3 (pow.f64 x 3) x)) 2) |
(fma.f64 -1/3 (pow.f64 x 3) x) |
(pow.f64 (cbrt.f64 (fma.f64 -1/3 (pow.f64 x 3) x)) 3) |
(fma.f64 -1/3 (pow.f64 x 3) x) |
(pow.f64 (pow.f64 (fma.f64 -1/3 (pow.f64 x 3) x) 3) 1/3) |
(fma.f64 -1/3 (pow.f64 x 3) x) |
(sqrt.f64 (pow.f64 (fma.f64 -1/3 (pow.f64 x 3) x) 2)) |
(fma.f64 -1/3 (pow.f64 x 3) x) |
(log.f64 (exp.f64 (fma.f64 -1/3 (pow.f64 x 3) x))) |
(fma.f64 -1/3 (pow.f64 x 3) x) |
(log.f64 (+.f64 1 (expm1.f64 (fma.f64 -1/3 (pow.f64 x 3) x)))) |
(fma.f64 -1/3 (pow.f64 x 3) x) |
(cbrt.f64 (pow.f64 (fma.f64 -1/3 (pow.f64 x 3) x) 3)) |
(fma.f64 -1/3 (pow.f64 x 3) x) |
(expm1.f64 (log1p.f64 (fma.f64 -1/3 (pow.f64 x 3) x))) |
(fma.f64 -1/3 (pow.f64 x 3) x) |
(exp.f64 (log.f64 (fma.f64 -1/3 (pow.f64 x 3) x))) |
(fma.f64 -1/3 (pow.f64 x 3) x) |
(exp.f64 (*.f64 (log.f64 (fma.f64 -1/3 (pow.f64 x 3) x)) 1)) |
(fma.f64 -1/3 (pow.f64 x 3) x) |
(log1p.f64 (expm1.f64 (fma.f64 -1/3 (pow.f64 x 3) x))) |
(fma.f64 -1/3 (pow.f64 x 3) x) |
(fma.f64 -1/3 (pow.f64 x 3) x) |
(fma.f64 (pow.f64 x 3) -1/3 x) |
(fma.f64 -1/3 (pow.f64 x 3) x) |
(fma.f64 1 x (*.f64 -1/3 (pow.f64 x 3))) |
(fma.f64 -1/3 (pow.f64 x 3) x) |
(fma.f64 1 (*.f64 -1/3 (pow.f64 x 3)) x) |
(fma.f64 -1/3 (pow.f64 x 3) x) |
(fma.f64 (*.f64 (pow.f64 x 3/2) (sqrt.f64 -1/3)) (*.f64 (pow.f64 x 3/2) (sqrt.f64 -1/3)) x) |
(fma.f64 -1/3 (pow.f64 x 3) x) |
(fma.f64 (sqrt.f64 x) (sqrt.f64 x) (*.f64 -1/3 (pow.f64 x 3))) |
(fma.f64 -1/3 (pow.f64 x 3) x) |
(fma.f64 (pow.f64 (*.f64 x (cbrt.f64 -1/3)) 2) (*.f64 x (cbrt.f64 -1/3)) x) |
(fma.f64 -1/3 (pow.f64 x 3) x) |
(fma.f64 (pow.f64 (cbrt.f64 x) 2) (cbrt.f64 x) (*.f64 -1/3 (pow.f64 x 3))) |
(fma.f64 -1/3 (pow.f64 x 3) x) |
Compiled 1154 to 845 computations (26.8% saved)
3 alts after pruning (1 fresh and 2 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 98 | 0 | 98 |
| Fresh | 0 | 1 | 1 |
| Picked | 0 | 1 | 1 |
| Done | 0 | 1 | 1 |
| Total | 98 | 3 | 101 |
| Status | Accuracy | Program |
|---|---|---|
| ✓ | 96.3% | (+.f64 (*.f64 -1/3 (pow.f64 x 3)) x) |
| ✓ | 100.0% | (tanh.f64 x) |
| 96.1% | x |
Compiled 13 to 9 computations (30.8% saved)
Compiled 1 to 1 computations (0% saved)
3 alts after pruning (1 fresh and 2 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 0 | 0 | 0 |
| Fresh | 0 | 1 | 1 |
| Picked | 0 | 0 | 0 |
| Done | 0 | 2 | 2 |
| Total | 0 | 3 | 3 |
| Status | Accuracy | Program |
|---|---|---|
| ✓ | 96.3% | (+.f64 (*.f64 -1/3 (pow.f64 x 3)) x) |
| ✓ | 100.0% | (tanh.f64 x) |
| 96.1% | x |
Compiled 13 to 9 computations (30.8% saved)
Compiled 1 to 1 computations (0% saved)
3 alts after pruning (1 fresh and 2 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 0 | 0 | 0 |
| Fresh | 0 | 1 | 1 |
| Picked | 0 | 0 | 0 |
| Done | 0 | 2 | 2 |
| Total | 0 | 3 | 3 |
| Status | Accuracy | Program |
|---|---|---|
| ✓ | 96.3% | (+.f64 (*.f64 -1/3 (pow.f64 x 3)) x) |
| ✓ | 100.0% | (tanh.f64 x) |
| 96.1% | x |
Compiled 13 to 9 computations (30.8% saved)
Total -59.2b remaining (-758193.4%)
Threshold costs -59.2b (-758193.4%)
| Inputs |
|---|
x |
(tanh.f64 x) |
(+.f64 (*.f64 -1/3 (pow.f64 x 3)) x) |
(/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) |
| Outputs |
|---|
(tanh.f64 x) |
2 calls:
| 4.0ms | x |
| 2.0ms | (/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) |
| Accuracy | Segments | Branch |
|---|---|---|
| 100.0% | 1 | x |
| 100.0% | 1 | (/.f64 (-.f64 (exp.f64 x) (exp.f64 (neg.f64 x))) (+.f64 (exp.f64 x) (exp.f64 (neg.f64 x)))) |
Compiled 40 to 21 computations (47.5% saved)
| 1× | egg-herbie |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 4 | 6 |
| 1× | fuel |
| 1× | saturated |
| Inputs |
|---|
(tanh.f64 x) |
x |
| Outputs |
|---|
(tanh.f64 x) |
x |
Compiled 5 to 3 computations (40% saved)
| 1× | egg-herbie |
| 860× | associate--r+ |
| 792× | associate-/l* |
| 604× | associate-/r* |
| 584× | associate-*r/ |
| 564× | times-frac |
Useful iterations: 2 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 144 | 1097 |
| 1 | 360 | 1045 |
| 2 | 1524 | 1023 |
| 3 | 5523 | 1023 |
| 1× | node limit |
Compiled 29 to 10 computations (65.5% saved)
Compiled 4 to 2 computations (50% saved)
Loading profile data...