Time bar (total: 4.9s)
| 1× | search |
| Probability | Valid | Unknown | Precondition | Infinite | Domain | Can't | Iter |
|---|---|---|---|---|---|---|---|
| 0% | 0% | 49.6% | 50.4% | 0% | 0% | 0% | 0 |
| 100% | 49.6% | 0% | 50.4% | 0% | 0% | 0% | 1 |
Compiled 12 to 9 computations (25% saved)
| 2.8s | 4400× | body | 2048 | valid |
| 773.0ms | 2048× | body | 1024 | valid |
| 186.0ms | 1003× | body | 512 | valid |
| 116.0ms | 805× | body | 256 | valid |
| 2× | egg-herbie |
| 12× | fma-def |
| 12× | +-commutative |
| 10× | associate-+l- |
| 8× | sub-neg |
| 6× | associate--r+ |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 7 | 11 |
| 1 | 11 | 11 |
| 2 | 15 | 11 |
| 3 | 22 | 11 |
| 4 | 29 | 11 |
| 5 | 39 | 11 |
| 6 | 55 | 11 |
| 7 | 65 | 11 |
| 8 | 68 | 11 |
| 0 | 1 | 1 |
| 1× | saturated |
| 1× | saturated |
| Inputs |
|---|
0 |
| Outputs |
|---|
0 |
| Inputs |
|---|
(-.f64 1 (cos.f64 x)) |
| Outputs |
|---|
(-.f64 1 (cos.f64 x)) |
Compiled 6 to 5 computations (16.7% saved)
| 1× | egg-herbie |
| 12× | fma-def |
| 12× | +-commutative |
| 10× | associate-+l- |
| 8× | sub-neg |
| 6× | associate--r+ |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 7 | 11 |
| 1 | 11 | 11 |
| 2 | 15 | 11 |
| 3 | 22 | 11 |
| 4 | 29 | 11 |
| 5 | 39 | 11 |
| 6 | 55 | 11 |
| 7 | 65 | 11 |
| 8 | 68 | 11 |
| 1× | saturated |
| Inputs |
|---|
(-.f64 1 (cos.f64 x)) |
| Outputs |
|---|
(-.f64 1 (cos.f64 x)) |
Compiled 5 to 4 computations (20% 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 |
|---|---|---|
| ▶ | 30.2b | (-.f64 1 (cos.f64 x)) |
Compiled 5 to 4 computations (20% saved)
Found 1 expressions with local error:
| New | Error | Program |
|---|---|---|
| ✓ | 3.0b | (-.f64 1 (cos.f64 x)) |
Compiled 9 to 5 computations (44.4% saved)
3 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 0.0ms | x | @ | 0 | (-.f64 1 (cos.f64 x)) |
| 0.0ms | x | @ | inf | (-.f64 1 (cos.f64 x)) |
| 0.0ms | x | @ | -inf | (-.f64 1 (cos.f64 x)) |
| 1× | batch-egg-rewrite |
| 1402× | add-sqr-sqrt |
| 1386× | *-un-lft-identity |
| 1288× | add-cube-cbrt |
| 1276× | add-cbrt-cube |
| 1266× | add-exp-log |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 7 | 11 |
| 1 | 140 | 11 |
| 2 | 1686 | 11 |
| 1× | node limit |
| Inputs |
|---|
(-.f64 1 (cos.f64 x)) |
| Outputs |
|---|
((#(struct:change #<rule egg-rr> (2) ((x +.f64 1 (neg.f64 (cos.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 1 (*.f64 (neg.f64 (cos.f64 x)) 1))))) (#(struct:change #<rule egg-rr> (2) ((x +.f64 (neg.f64 (cos.f64 x)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 1 (-.f64 1 (cos.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (-.f64 1 (cos.f64 x)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (sqrt.f64 (-.f64 1 (cos.f64 x))) (sqrt.f64 (-.f64 1 (cos.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (cbrt.f64 (-.f64 1 (cos.f64 x))) (pow.f64 (cbrt.f64 (-.f64 1 (cos.f64 x))) 2))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (pow.f64 (cbrt.f64 (-.f64 1 (cos.f64 x))) 2) (cbrt.f64 (-.f64 1 (cos.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (*.f64 (sin.f64 x) (sin.f64 x)) (/.f64 1 (+.f64 1 (cos.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x *.f64 (-.f64 1 (pow.f64 (cos.f64 x) 3)) (/.f64 1 (+.f64 1 (fma.f64 (cos.f64 x) (cos.f64 x) (cos.f64 x)))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (/.f64 (+.f64 1 (cos.f64 x)) (*.f64 (sin.f64 x) (sin.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 1 (/.f64 (+.f64 1 (fma.f64 (cos.f64 x) (cos.f64 x) (cos.f64 x))) (-.f64 1 (pow.f64 (cos.f64 x) 3))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (sin.f64 x) (sin.f64 x)) (+.f64 1 (cos.f64 x)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 1 (pow.f64 (cos.f64 x) 3)) (+.f64 1 (fma.f64 (cos.f64 x) (cos.f64 x) (cos.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (-.f64 1 (*.f64 (neg.f64 (cos.f64 x)) (neg.f64 (cos.f64 x)))) (-.f64 1 (neg.f64 (cos.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (+.f64 1 (pow.f64 (neg.f64 (cos.f64 x)) 3)) (+.f64 1 (-.f64 (*.f64 (neg.f64 (cos.f64 x)) (neg.f64 (cos.f64 x))) (neg.f64 (cos.f64 x)))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (*.f64 (sin.f64 x) (sin.f64 x))) (neg.f64 (+.f64 1 (cos.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (neg.f64 (-.f64 1 (pow.f64 (cos.f64 x) 3))) (neg.f64 (+.f64 1 (fma.f64 (cos.f64 x) (cos.f64 x) (cos.f64 x)))))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (-.f64 1 (cos.f64 x)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (-.f64 1 (cos.f64 x))) 2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (-.f64 1 (cos.f64 x))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (-.f64 1 (cos.f64 x)) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (-.f64 1 (cos.f64 x)) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (exp.f64 (-.f64 1 (cos.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (-.f64 1 (cos.f64 x)) 3))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (-.f64 1 (cos.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log1p.f64 (neg.f64 (cos.f64 x))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (log1p.f64 (neg.f64 (cos.f64 x))) 1))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (-.f64 1 (cos.f64 x)))))))) |
| 1× | egg-herbie |
| 932× | associate-/l* |
| 906× | associate-*r* |
| 896× | times-frac |
| 852× | distribute-lft-in |
| 792× | *-commutative |
Useful iterations: 2 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 95 | 817 |
| 1 | 232 | 757 |
| 2 | 782 | 687 |
| 3 | 3180 | 687 |
| 1× | node limit |
| Inputs |
|---|
(*.f64 1/2 (pow.f64 x 2)) |
(+.f64 (*.f64 1/2 (pow.f64 x 2)) (*.f64 -1/24 (pow.f64 x 4))) |
(+.f64 (*.f64 1/2 (pow.f64 x 2)) (+.f64 (*.f64 -1/24 (pow.f64 x 4)) (*.f64 1/720 (pow.f64 x 6)))) |
(+.f64 (*.f64 1/2 (pow.f64 x 2)) (+.f64 (*.f64 -1/24 (pow.f64 x 4)) (+.f64 (*.f64 1/720 (pow.f64 x 6)) (*.f64 -1/40320 (pow.f64 x 8))))) |
(+.f64 1 (neg.f64 (cos.f64 x))) |
(+.f64 1 (*.f64 (neg.f64 (cos.f64 x)) 1)) |
(+.f64 (neg.f64 (cos.f64 x)) 1) |
(*.f64 1 (-.f64 1 (cos.f64 x))) |
(*.f64 (-.f64 1 (cos.f64 x)) 1) |
(*.f64 (sqrt.f64 (-.f64 1 (cos.f64 x))) (sqrt.f64 (-.f64 1 (cos.f64 x)))) |
(*.f64 (cbrt.f64 (-.f64 1 (cos.f64 x))) (pow.f64 (cbrt.f64 (-.f64 1 (cos.f64 x))) 2)) |
(*.f64 (pow.f64 (cbrt.f64 (-.f64 1 (cos.f64 x))) 2) (cbrt.f64 (-.f64 1 (cos.f64 x)))) |
(*.f64 (*.f64 (sin.f64 x) (sin.f64 x)) (/.f64 1 (+.f64 1 (cos.f64 x)))) |
(*.f64 (-.f64 1 (pow.f64 (cos.f64 x) 3)) (/.f64 1 (+.f64 1 (fma.f64 (cos.f64 x) (cos.f64 x) (cos.f64 x))))) |
(/.f64 1 (/.f64 (+.f64 1 (cos.f64 x)) (*.f64 (sin.f64 x) (sin.f64 x)))) |
(/.f64 1 (/.f64 (+.f64 1 (fma.f64 (cos.f64 x) (cos.f64 x) (cos.f64 x))) (-.f64 1 (pow.f64 (cos.f64 x) 3)))) |
(/.f64 (*.f64 (sin.f64 x) (sin.f64 x)) (+.f64 1 (cos.f64 x))) |
(/.f64 (-.f64 1 (pow.f64 (cos.f64 x) 3)) (+.f64 1 (fma.f64 (cos.f64 x) (cos.f64 x) (cos.f64 x)))) |
(/.f64 (-.f64 1 (*.f64 (neg.f64 (cos.f64 x)) (neg.f64 (cos.f64 x)))) (-.f64 1 (neg.f64 (cos.f64 x)))) |
(/.f64 (+.f64 1 (pow.f64 (neg.f64 (cos.f64 x)) 3)) (+.f64 1 (-.f64 (*.f64 (neg.f64 (cos.f64 x)) (neg.f64 (cos.f64 x))) (neg.f64 (cos.f64 x))))) |
(/.f64 (neg.f64 (*.f64 (sin.f64 x) (sin.f64 x))) (neg.f64 (+.f64 1 (cos.f64 x)))) |
(/.f64 (neg.f64 (-.f64 1 (pow.f64 (cos.f64 x) 3))) (neg.f64 (+.f64 1 (fma.f64 (cos.f64 x) (cos.f64 x) (cos.f64 x))))) |
(pow.f64 (-.f64 1 (cos.f64 x)) 1) |
(pow.f64 (sqrt.f64 (-.f64 1 (cos.f64 x))) 2) |
(pow.f64 (cbrt.f64 (-.f64 1 (cos.f64 x))) 3) |
(pow.f64 (pow.f64 (-.f64 1 (cos.f64 x)) 3) 1/3) |
(sqrt.f64 (pow.f64 (-.f64 1 (cos.f64 x)) 2)) |
(log.f64 (exp.f64 (-.f64 1 (cos.f64 x)))) |
(cbrt.f64 (pow.f64 (-.f64 1 (cos.f64 x)) 3)) |
(expm1.f64 (log1p.f64 (-.f64 1 (cos.f64 x)))) |
(exp.f64 (log1p.f64 (neg.f64 (cos.f64 x)))) |
(exp.f64 (*.f64 (log1p.f64 (neg.f64 (cos.f64 x))) 1)) |
(log1p.f64 (expm1.f64 (-.f64 1 (cos.f64 x)))) |
| Outputs |
|---|
(*.f64 1/2 (pow.f64 x 2)) |
(*.f64 1/2 (*.f64 x x)) |
(+.f64 (*.f64 1/2 (pow.f64 x 2)) (*.f64 -1/24 (pow.f64 x 4))) |
(fma.f64 1/2 (*.f64 x x) (*.f64 -1/24 (pow.f64 x 4))) |
(+.f64 (*.f64 1/2 (pow.f64 x 2)) (+.f64 (*.f64 -1/24 (pow.f64 x 4)) (*.f64 1/720 (pow.f64 x 6)))) |
(fma.f64 1/2 (*.f64 x x) (fma.f64 -1/24 (pow.f64 x 4) (*.f64 1/720 (pow.f64 x 6)))) |
(+.f64 (*.f64 1/2 (pow.f64 x 2)) (+.f64 (*.f64 -1/24 (pow.f64 x 4)) (+.f64 (*.f64 1/720 (pow.f64 x 6)) (*.f64 -1/40320 (pow.f64 x 8))))) |
(fma.f64 1/2 (*.f64 x x) (fma.f64 -1/24 (pow.f64 x 4) (fma.f64 1/720 (pow.f64 x 6) (*.f64 -1/40320 (pow.f64 x 8))))) |
(+.f64 1 (neg.f64 (cos.f64 x))) |
(-.f64 1 (cos.f64 x)) |
(+.f64 1 (*.f64 (neg.f64 (cos.f64 x)) 1)) |
(-.f64 1 (cos.f64 x)) |
(+.f64 (neg.f64 (cos.f64 x)) 1) |
(-.f64 1 (cos.f64 x)) |
(*.f64 1 (-.f64 1 (cos.f64 x))) |
(-.f64 1 (cos.f64 x)) |
(*.f64 (-.f64 1 (cos.f64 x)) 1) |
(-.f64 1 (cos.f64 x)) |
(*.f64 (sqrt.f64 (-.f64 1 (cos.f64 x))) (sqrt.f64 (-.f64 1 (cos.f64 x)))) |
(-.f64 1 (cos.f64 x)) |
(*.f64 (cbrt.f64 (-.f64 1 (cos.f64 x))) (pow.f64 (cbrt.f64 (-.f64 1 (cos.f64 x))) 2)) |
(-.f64 1 (cos.f64 x)) |
(*.f64 (pow.f64 (cbrt.f64 (-.f64 1 (cos.f64 x))) 2) (cbrt.f64 (-.f64 1 (cos.f64 x)))) |
(-.f64 1 (cos.f64 x)) |
(*.f64 (*.f64 (sin.f64 x) (sin.f64 x)) (/.f64 1 (+.f64 1 (cos.f64 x)))) |
(*.f64 (sin.f64 x) (*.f64 (sin.f64 x) (/.f64 1 (+.f64 1 (cos.f64 x))))) |
(/.f64 (*.f64 (sin.f64 x) (sin.f64 x)) (+.f64 1 (cos.f64 x))) |
(*.f64 (sin.f64 x) (tan.f64 (/.f64 x 2))) |
(*.f64 (-.f64 1 (pow.f64 (cos.f64 x) 3)) (/.f64 1 (+.f64 1 (fma.f64 (cos.f64 x) (cos.f64 x) (cos.f64 x))))) |
(/.f64 (*.f64 (-.f64 1 (pow.f64 (cos.f64 x) 3)) 1) (+.f64 1 (fma.f64 (cos.f64 x) (cos.f64 x) (cos.f64 x)))) |
(/.f64 (-.f64 1 (pow.f64 (cos.f64 x) 3)) (+.f64 1 (*.f64 (cos.f64 x) (-.f64 (cos.f64 x) -1)))) |
(/.f64 (-.f64 1 (pow.f64 (cos.f64 x) 3)) (fma.f64 (cos.f64 x) (+.f64 1 (cos.f64 x)) 1)) |
(/.f64 1 (/.f64 (+.f64 1 (cos.f64 x)) (*.f64 (sin.f64 x) (sin.f64 x)))) |
(*.f64 (sin.f64 x) (*.f64 (sin.f64 x) (/.f64 1 (+.f64 1 (cos.f64 x))))) |
(/.f64 (*.f64 (sin.f64 x) (sin.f64 x)) (+.f64 1 (cos.f64 x))) |
(*.f64 (sin.f64 x) (tan.f64 (/.f64 x 2))) |
(/.f64 1 (/.f64 (+.f64 1 (fma.f64 (cos.f64 x) (cos.f64 x) (cos.f64 x))) (-.f64 1 (pow.f64 (cos.f64 x) 3)))) |
(/.f64 (*.f64 (-.f64 1 (pow.f64 (cos.f64 x) 3)) 1) (+.f64 1 (fma.f64 (cos.f64 x) (cos.f64 x) (cos.f64 x)))) |
(/.f64 (-.f64 1 (pow.f64 (cos.f64 x) 3)) (+.f64 1 (*.f64 (cos.f64 x) (-.f64 (cos.f64 x) -1)))) |
(/.f64 (-.f64 1 (pow.f64 (cos.f64 x) 3)) (fma.f64 (cos.f64 x) (+.f64 1 (cos.f64 x)) 1)) |
(/.f64 (*.f64 (sin.f64 x) (sin.f64 x)) (+.f64 1 (cos.f64 x))) |
(*.f64 (sin.f64 x) (*.f64 (sin.f64 x) (/.f64 1 (+.f64 1 (cos.f64 x))))) |
(*.f64 (sin.f64 x) (tan.f64 (/.f64 x 2))) |
(/.f64 (-.f64 1 (pow.f64 (cos.f64 x) 3)) (+.f64 1 (fma.f64 (cos.f64 x) (cos.f64 x) (cos.f64 x)))) |
(/.f64 (*.f64 (-.f64 1 (pow.f64 (cos.f64 x) 3)) 1) (+.f64 1 (fma.f64 (cos.f64 x) (cos.f64 x) (cos.f64 x)))) |
(/.f64 (-.f64 1 (pow.f64 (cos.f64 x) 3)) (+.f64 1 (*.f64 (cos.f64 x) (-.f64 (cos.f64 x) -1)))) |
(/.f64 (-.f64 1 (pow.f64 (cos.f64 x) 3)) (fma.f64 (cos.f64 x) (+.f64 1 (cos.f64 x)) 1)) |
(/.f64 (-.f64 1 (*.f64 (neg.f64 (cos.f64 x)) (neg.f64 (cos.f64 x)))) (-.f64 1 (neg.f64 (cos.f64 x)))) |
(*.f64 (sin.f64 x) (*.f64 (sin.f64 x) (/.f64 1 (+.f64 1 (cos.f64 x))))) |
(/.f64 (*.f64 (sin.f64 x) (sin.f64 x)) (+.f64 1 (cos.f64 x))) |
(*.f64 (sin.f64 x) (tan.f64 (/.f64 x 2))) |
(/.f64 (+.f64 1 (pow.f64 (neg.f64 (cos.f64 x)) 3)) (+.f64 1 (-.f64 (*.f64 (neg.f64 (cos.f64 x)) (neg.f64 (cos.f64 x))) (neg.f64 (cos.f64 x))))) |
(/.f64 (*.f64 (-.f64 1 (pow.f64 (cos.f64 x) 3)) 1) (+.f64 1 (fma.f64 (cos.f64 x) (cos.f64 x) (cos.f64 x)))) |
(/.f64 (-.f64 1 (pow.f64 (cos.f64 x) 3)) (+.f64 1 (*.f64 (cos.f64 x) (-.f64 (cos.f64 x) -1)))) |
(/.f64 (-.f64 1 (pow.f64 (cos.f64 x) 3)) (fma.f64 (cos.f64 x) (+.f64 1 (cos.f64 x)) 1)) |
(/.f64 (neg.f64 (*.f64 (sin.f64 x) (sin.f64 x))) (neg.f64 (+.f64 1 (cos.f64 x)))) |
(*.f64 (sin.f64 x) (*.f64 (sin.f64 x) (/.f64 1 (+.f64 1 (cos.f64 x))))) |
(/.f64 (*.f64 (sin.f64 x) (sin.f64 x)) (+.f64 1 (cos.f64 x))) |
(*.f64 (sin.f64 x) (tan.f64 (/.f64 x 2))) |
(/.f64 (neg.f64 (-.f64 1 (pow.f64 (cos.f64 x) 3))) (neg.f64 (+.f64 1 (fma.f64 (cos.f64 x) (cos.f64 x) (cos.f64 x))))) |
(/.f64 (*.f64 (-.f64 1 (pow.f64 (cos.f64 x) 3)) 1) (+.f64 1 (fma.f64 (cos.f64 x) (cos.f64 x) (cos.f64 x)))) |
(/.f64 (-.f64 1 (pow.f64 (cos.f64 x) 3)) (+.f64 1 (*.f64 (cos.f64 x) (-.f64 (cos.f64 x) -1)))) |
(/.f64 (-.f64 1 (pow.f64 (cos.f64 x) 3)) (fma.f64 (cos.f64 x) (+.f64 1 (cos.f64 x)) 1)) |
(pow.f64 (-.f64 1 (cos.f64 x)) 1) |
(-.f64 1 (cos.f64 x)) |
(pow.f64 (sqrt.f64 (-.f64 1 (cos.f64 x))) 2) |
(-.f64 1 (cos.f64 x)) |
(pow.f64 (cbrt.f64 (-.f64 1 (cos.f64 x))) 3) |
(-.f64 1 (cos.f64 x)) |
(pow.f64 (pow.f64 (-.f64 1 (cos.f64 x)) 3) 1/3) |
(-.f64 1 (cos.f64 x)) |
(sqrt.f64 (pow.f64 (-.f64 1 (cos.f64 x)) 2)) |
(-.f64 1 (cos.f64 x)) |
(log.f64 (exp.f64 (-.f64 1 (cos.f64 x)))) |
(-.f64 1 (cos.f64 x)) |
(cbrt.f64 (pow.f64 (-.f64 1 (cos.f64 x)) 3)) |
(-.f64 1 (cos.f64 x)) |
(expm1.f64 (log1p.f64 (-.f64 1 (cos.f64 x)))) |
(-.f64 1 (cos.f64 x)) |
(exp.f64 (log1p.f64 (neg.f64 (cos.f64 x)))) |
(exp.f64 (*.f64 (log1p.f64 (neg.f64 (cos.f64 x))) 1)) |
(exp.f64 (log1p.f64 (neg.f64 (cos.f64 x)))) |
(log1p.f64 (expm1.f64 (-.f64 1 (cos.f64 x)))) |
(-.f64 1 (cos.f64 x)) |
Compiled 469 to 279 computations (40.5% saved)
4 alts after pruning (3 fresh and 1 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 40 | 3 | 43 |
| Fresh | 0 | 0 | 0 |
| Picked | 0 | 1 | 1 |
| Done | 0 | 0 | 0 |
| Total | 40 | 4 | 44 |
| Status | Error | Program |
|---|---|---|
| ▶ | 0b | (fma.f64 1/2 (*.f64 x x) (*.f64 -1/24 (pow.f64 x 4))) |
| ✓ | 30.2b | (-.f64 1 (cos.f64 x)) |
| ▶ | 0.0b | (*.f64 (sin.f64 x) (tan.f64 (/.f64 x 2))) |
| ▶ | 0.3b | (*.f64 1/2 (*.f64 x x)) |
Compiled 30 to 22 computations (26.7% saved)
Compiled 11 to 5 computations (54.5% saved)
Found 1 expressions with local error:
| New | Error | Program |
|---|---|---|
| ✓ | 0.0b | (*.f64 (sin.f64 x) (tan.f64 (/.f64 x 2))) |
Compiled 19 to 12 computations (36.8% saved)
3 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 1.0ms | x | @ | inf | (*.f64 (sin.f64 x) (tan.f64 (/.f64 x 2))) |
| 1.0ms | x | @ | -inf | (*.f64 (sin.f64 x) (tan.f64 (/.f64 x 2))) |
| 0.0ms | x | @ | 0 | (*.f64 (sin.f64 x) (tan.f64 (/.f64 x 2))) |
| 1× | batch-egg-rewrite |
| 1792× | add-sqr-sqrt |
| 1766× | *-un-lft-identity |
| 1644× | add-cube-cbrt |
| 1624× | add-cbrt-cube |
| 182× | pow1 |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 9 | 21 |
| 1 | 187 | 21 |
| 2 | 2214 | 21 |
| 1× | node limit |
| Inputs |
|---|
(*.f64 (sin.f64 x) (tan.f64 (/.f64 x 2))) |
| Outputs |
|---|
((#(struct:change #<rule egg-rr> (2) ((x -.f64 (exp.f64 (log1p.f64 (*.f64 (sin.f64 x) (tan.f64 (*.f64 x 1/2))))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (sin.f64 x) (sin.f64 (*.f64 x 1/2))) (cos.f64 (*.f64 x 1/2)))))) (#(struct:change #<rule egg-rr> (2) ((x /.f64 (*.f64 (sin.f64 (*.f64 x 1/2)) (sin.f64 x)) (cos.f64 (*.f64 x 1/2)))))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 (sin.f64 x) (tan.f64 (*.f64 x 1/2))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (*.f64 (sin.f64 x) (tan.f64 (*.f64 x 1/2)))) 2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (*.f64 (sin.f64 x) (tan.f64 (*.f64 x 1/2)))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (*.f64 (sin.f64 x) (tan.f64 (*.f64 x 1/2))) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (pow.f64 (*.f64 (sin.f64 x) (tan.f64 (*.f64 x 1/2))) 2))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (pow.f64 (exp.f64 (sin.f64 x)) (tan.f64 (*.f64 x 1/2))))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (+.f64 1 (expm1.f64 (*.f64 (sin.f64 x) (tan.f64 (*.f64 x 1/2))))))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (*.f64 (sin.f64 x) (tan.f64 (*.f64 x 1/2))) 3))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (*.f64 (sin.f64 x) (tan.f64 (*.f64 x 1/2)))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (*.f64 (sin.f64 x) (tan.f64 (*.f64 x 1/2)))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (*.f64 (log.f64 (*.f64 (sin.f64 x) (tan.f64 (*.f64 x 1/2)))) 1))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (*.f64 (sin.f64 x) (tan.f64 (*.f64 x 1/2))))))))) |
| 1× | egg-herbie |
| 1088× | fma-def |
| 952× | distribute-lft-in |
| 894× | distribute-rgt-in |
| 874× | *-commutative |
| 738× | associate-*r* |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 69 | 779 |
| 1 | 152 | 779 |
| 2 | 419 | 779 |
| 3 | 2320 | 779 |
| 4 | 6397 | 779 |
| 1× | node limit |
| Inputs |
|---|
(*.f64 1/2 (pow.f64 x 2)) |
(+.f64 (*.f64 1/2 (pow.f64 x 2)) (*.f64 -1/24 (pow.f64 x 4))) |
(+.f64 (*.f64 1/2 (pow.f64 x 2)) (+.f64 (*.f64 -1/24 (pow.f64 x 4)) (*.f64 1/720 (pow.f64 x 6)))) |
(+.f64 (*.f64 1/2 (pow.f64 x 2)) (+.f64 (*.f64 -1/24 (pow.f64 x 4)) (+.f64 (*.f64 1/720 (pow.f64 x 6)) (*.f64 -1/40320 (pow.f64 x 8))))) |
(/.f64 (*.f64 (sin.f64 x) (sin.f64 (*.f64 1/2 x))) (cos.f64 (*.f64 1/2 x))) |
(/.f64 (*.f64 (sin.f64 x) (sin.f64 (*.f64 1/2 x))) (cos.f64 (*.f64 1/2 x))) |
(/.f64 (*.f64 (sin.f64 x) (sin.f64 (*.f64 1/2 x))) (cos.f64 (*.f64 1/2 x))) |
(/.f64 (*.f64 (sin.f64 x) (sin.f64 (*.f64 1/2 x))) (cos.f64 (*.f64 1/2 x))) |
(/.f64 (*.f64 (sin.f64 x) (sin.f64 (*.f64 1/2 x))) (cos.f64 (*.f64 1/2 x))) |
(/.f64 (*.f64 (sin.f64 x) (sin.f64 (*.f64 1/2 x))) (cos.f64 (*.f64 1/2 x))) |
(/.f64 (*.f64 (sin.f64 x) (sin.f64 (*.f64 1/2 x))) (cos.f64 (*.f64 1/2 x))) |
(/.f64 (*.f64 (sin.f64 x) (sin.f64 (*.f64 1/2 x))) (cos.f64 (*.f64 1/2 x))) |
(-.f64 (exp.f64 (log1p.f64 (*.f64 (sin.f64 x) (tan.f64 (*.f64 x 1/2))))) 1) |
(/.f64 (*.f64 (sin.f64 x) (sin.f64 (*.f64 x 1/2))) (cos.f64 (*.f64 x 1/2))) |
(/.f64 (*.f64 (sin.f64 (*.f64 x 1/2)) (sin.f64 x)) (cos.f64 (*.f64 x 1/2))) |
(pow.f64 (*.f64 (sin.f64 x) (tan.f64 (*.f64 x 1/2))) 1) |
(pow.f64 (sqrt.f64 (*.f64 (sin.f64 x) (tan.f64 (*.f64 x 1/2)))) 2) |
(pow.f64 (cbrt.f64 (*.f64 (sin.f64 x) (tan.f64 (*.f64 x 1/2)))) 3) |
(pow.f64 (pow.f64 (*.f64 (sin.f64 x) (tan.f64 (*.f64 x 1/2))) 3) 1/3) |
(sqrt.f64 (pow.f64 (*.f64 (sin.f64 x) (tan.f64 (*.f64 x 1/2))) 2)) |
(log.f64 (pow.f64 (exp.f64 (sin.f64 x)) (tan.f64 (*.f64 x 1/2)))) |
(log.f64 (+.f64 1 (expm1.f64 (*.f64 (sin.f64 x) (tan.f64 (*.f64 x 1/2)))))) |
(cbrt.f64 (pow.f64 (*.f64 (sin.f64 x) (tan.f64 (*.f64 x 1/2))) 3)) |
(expm1.f64 (log1p.f64 (*.f64 (sin.f64 x) (tan.f64 (*.f64 x 1/2))))) |
(exp.f64 (log.f64 (*.f64 (sin.f64 x) (tan.f64 (*.f64 x 1/2))))) |
(exp.f64 (*.f64 (log.f64 (*.f64 (sin.f64 x) (tan.f64 (*.f64 x 1/2)))) 1)) |
(log1p.f64 (expm1.f64 (*.f64 (sin.f64 x) (tan.f64 (*.f64 x 1/2))))) |
| Outputs |
|---|
(*.f64 1/2 (pow.f64 x 2)) |
(*.f64 1/2 (*.f64 x x)) |
(+.f64 (*.f64 1/2 (pow.f64 x 2)) (*.f64 -1/24 (pow.f64 x 4))) |
(fma.f64 1/2 (*.f64 x x) (*.f64 -1/24 (pow.f64 x 4))) |
(fma.f64 -1/24 (pow.f64 x 4) (*.f64 1/2 (*.f64 x x))) |
(*.f64 (*.f64 x x) (fma.f64 x (*.f64 x -1/24) 1/2)) |
(+.f64 (*.f64 1/2 (pow.f64 x 2)) (+.f64 (*.f64 -1/24 (pow.f64 x 4)) (*.f64 1/720 (pow.f64 x 6)))) |
(fma.f64 1/2 (*.f64 x x) (fma.f64 -1/24 (pow.f64 x 4) (*.f64 1/720 (pow.f64 x 6)))) |
(fma.f64 (*.f64 x x) (fma.f64 x (*.f64 x -1/24) 1/2) (*.f64 1/720 (pow.f64 x 6))) |
(+.f64 (*.f64 1/2 (pow.f64 x 2)) (+.f64 (*.f64 -1/24 (pow.f64 x 4)) (+.f64 (*.f64 1/720 (pow.f64 x 6)) (*.f64 -1/40320 (pow.f64 x 8))))) |
(fma.f64 1/2 (*.f64 x x) (fma.f64 -1/24 (pow.f64 x 4) (fma.f64 1/720 (pow.f64 x 6) (*.f64 -1/40320 (pow.f64 x 8))))) |
(fma.f64 1/2 (*.f64 x x) (fma.f64 -1/24 (pow.f64 x 4) (fma.f64 -1/40320 (pow.f64 x 8) (*.f64 1/720 (pow.f64 x 6))))) |
(fma.f64 1/2 (*.f64 x x) (fma.f64 (pow.f64 x 4) (fma.f64 (pow.f64 x 4) -1/40320 -1/24) (*.f64 1/720 (pow.f64 x 6)))) |
(/.f64 (*.f64 (sin.f64 x) (sin.f64 (*.f64 1/2 x))) (cos.f64 (*.f64 1/2 x))) |
(/.f64 (sin.f64 (*.f64 1/2 x)) (/.f64 (cos.f64 (*.f64 1/2 x)) (sin.f64 x))) |
(*.f64 (/.f64 (sin.f64 (*.f64 1/2 x)) (cos.f64 (*.f64 1/2 x))) (sin.f64 x)) |
(*.f64 (sin.f64 x) (/.f64 (sin.f64 (*.f64 1/2 x)) (cos.f64 (*.f64 1/2 x)))) |
(/.f64 (*.f64 (sin.f64 x) (sin.f64 (*.f64 1/2 x))) (cos.f64 (*.f64 1/2 x))) |
(/.f64 (sin.f64 (*.f64 1/2 x)) (/.f64 (cos.f64 (*.f64 1/2 x)) (sin.f64 x))) |
(*.f64 (/.f64 (sin.f64 (*.f64 1/2 x)) (cos.f64 (*.f64 1/2 x))) (sin.f64 x)) |
(*.f64 (sin.f64 x) (/.f64 (sin.f64 (*.f64 1/2 x)) (cos.f64 (*.f64 1/2 x)))) |
(/.f64 (*.f64 (sin.f64 x) (sin.f64 (*.f64 1/2 x))) (cos.f64 (*.f64 1/2 x))) |
(/.f64 (sin.f64 (*.f64 1/2 x)) (/.f64 (cos.f64 (*.f64 1/2 x)) (sin.f64 x))) |
(*.f64 (/.f64 (sin.f64 (*.f64 1/2 x)) (cos.f64 (*.f64 1/2 x))) (sin.f64 x)) |
(*.f64 (sin.f64 x) (/.f64 (sin.f64 (*.f64 1/2 x)) (cos.f64 (*.f64 1/2 x)))) |
(/.f64 (*.f64 (sin.f64 x) (sin.f64 (*.f64 1/2 x))) (cos.f64 (*.f64 1/2 x))) |
(/.f64 (sin.f64 (*.f64 1/2 x)) (/.f64 (cos.f64 (*.f64 1/2 x)) (sin.f64 x))) |
(*.f64 (/.f64 (sin.f64 (*.f64 1/2 x)) (cos.f64 (*.f64 1/2 x))) (sin.f64 x)) |
(*.f64 (sin.f64 x) (/.f64 (sin.f64 (*.f64 1/2 x)) (cos.f64 (*.f64 1/2 x)))) |
(/.f64 (*.f64 (sin.f64 x) (sin.f64 (*.f64 1/2 x))) (cos.f64 (*.f64 1/2 x))) |
(/.f64 (sin.f64 (*.f64 1/2 x)) (/.f64 (cos.f64 (*.f64 1/2 x)) (sin.f64 x))) |
(*.f64 (/.f64 (sin.f64 (*.f64 1/2 x)) (cos.f64 (*.f64 1/2 x))) (sin.f64 x)) |
(*.f64 (sin.f64 x) (/.f64 (sin.f64 (*.f64 1/2 x)) (cos.f64 (*.f64 1/2 x)))) |
(/.f64 (*.f64 (sin.f64 x) (sin.f64 (*.f64 1/2 x))) (cos.f64 (*.f64 1/2 x))) |
(/.f64 (sin.f64 (*.f64 1/2 x)) (/.f64 (cos.f64 (*.f64 1/2 x)) (sin.f64 x))) |
(*.f64 (/.f64 (sin.f64 (*.f64 1/2 x)) (cos.f64 (*.f64 1/2 x))) (sin.f64 x)) |
(*.f64 (sin.f64 x) (/.f64 (sin.f64 (*.f64 1/2 x)) (cos.f64 (*.f64 1/2 x)))) |
(/.f64 (*.f64 (sin.f64 x) (sin.f64 (*.f64 1/2 x))) (cos.f64 (*.f64 1/2 x))) |
(/.f64 (sin.f64 (*.f64 1/2 x)) (/.f64 (cos.f64 (*.f64 1/2 x)) (sin.f64 x))) |
(*.f64 (/.f64 (sin.f64 (*.f64 1/2 x)) (cos.f64 (*.f64 1/2 x))) (sin.f64 x)) |
(*.f64 (sin.f64 x) (/.f64 (sin.f64 (*.f64 1/2 x)) (cos.f64 (*.f64 1/2 x)))) |
(/.f64 (*.f64 (sin.f64 x) (sin.f64 (*.f64 1/2 x))) (cos.f64 (*.f64 1/2 x))) |
(/.f64 (sin.f64 (*.f64 1/2 x)) (/.f64 (cos.f64 (*.f64 1/2 x)) (sin.f64 x))) |
(*.f64 (/.f64 (sin.f64 (*.f64 1/2 x)) (cos.f64 (*.f64 1/2 x))) (sin.f64 x)) |
(*.f64 (sin.f64 x) (/.f64 (sin.f64 (*.f64 1/2 x)) (cos.f64 (*.f64 1/2 x)))) |
(-.f64 (exp.f64 (log1p.f64 (*.f64 (sin.f64 x) (tan.f64 (*.f64 x 1/2))))) 1) |
(*.f64 (sin.f64 x) (tan.f64 (*.f64 1/2 x))) |
(/.f64 (*.f64 (sin.f64 x) (sin.f64 (*.f64 x 1/2))) (cos.f64 (*.f64 x 1/2))) |
(/.f64 (sin.f64 (*.f64 1/2 x)) (/.f64 (cos.f64 (*.f64 1/2 x)) (sin.f64 x))) |
(*.f64 (/.f64 (sin.f64 (*.f64 1/2 x)) (cos.f64 (*.f64 1/2 x))) (sin.f64 x)) |
(*.f64 (sin.f64 x) (/.f64 (sin.f64 (*.f64 1/2 x)) (cos.f64 (*.f64 1/2 x)))) |
(/.f64 (*.f64 (sin.f64 (*.f64 x 1/2)) (sin.f64 x)) (cos.f64 (*.f64 x 1/2))) |
(/.f64 (sin.f64 (*.f64 1/2 x)) (/.f64 (cos.f64 (*.f64 1/2 x)) (sin.f64 x))) |
(*.f64 (/.f64 (sin.f64 (*.f64 1/2 x)) (cos.f64 (*.f64 1/2 x))) (sin.f64 x)) |
(*.f64 (sin.f64 x) (/.f64 (sin.f64 (*.f64 1/2 x)) (cos.f64 (*.f64 1/2 x)))) |
(pow.f64 (*.f64 (sin.f64 x) (tan.f64 (*.f64 x 1/2))) 1) |
(*.f64 (sin.f64 x) (tan.f64 (*.f64 1/2 x))) |
(pow.f64 (sqrt.f64 (*.f64 (sin.f64 x) (tan.f64 (*.f64 x 1/2)))) 2) |
(*.f64 (sin.f64 x) (tan.f64 (*.f64 1/2 x))) |
(pow.f64 (cbrt.f64 (*.f64 (sin.f64 x) (tan.f64 (*.f64 x 1/2)))) 3) |
(*.f64 (sin.f64 x) (tan.f64 (*.f64 1/2 x))) |
(pow.f64 (pow.f64 (*.f64 (sin.f64 x) (tan.f64 (*.f64 x 1/2))) 3) 1/3) |
(*.f64 (sin.f64 x) (tan.f64 (*.f64 1/2 x))) |
(sqrt.f64 (pow.f64 (*.f64 (sin.f64 x) (tan.f64 (*.f64 x 1/2))) 2)) |
(*.f64 (sin.f64 x) (tan.f64 (*.f64 1/2 x))) |
(log.f64 (pow.f64 (exp.f64 (sin.f64 x)) (tan.f64 (*.f64 x 1/2)))) |
(*.f64 (sin.f64 x) (tan.f64 (*.f64 1/2 x))) |
(log.f64 (+.f64 1 (expm1.f64 (*.f64 (sin.f64 x) (tan.f64 (*.f64 x 1/2)))))) |
(*.f64 (sin.f64 x) (tan.f64 (*.f64 1/2 x))) |
(cbrt.f64 (pow.f64 (*.f64 (sin.f64 x) (tan.f64 (*.f64 x 1/2))) 3)) |
(*.f64 (sin.f64 x) (tan.f64 (*.f64 1/2 x))) |
(expm1.f64 (log1p.f64 (*.f64 (sin.f64 x) (tan.f64 (*.f64 x 1/2))))) |
(*.f64 (sin.f64 x) (tan.f64 (*.f64 1/2 x))) |
(exp.f64 (log.f64 (*.f64 (sin.f64 x) (tan.f64 (*.f64 x 1/2))))) |
(*.f64 (sin.f64 x) (tan.f64 (*.f64 1/2 x))) |
(exp.f64 (*.f64 (log.f64 (*.f64 (sin.f64 x) (tan.f64 (*.f64 x 1/2)))) 1)) |
(*.f64 (sin.f64 x) (tan.f64 (*.f64 1/2 x))) |
(log1p.f64 (expm1.f64 (*.f64 (sin.f64 x) (tan.f64 (*.f64 x 1/2))))) |
(*.f64 (sin.f64 x) (tan.f64 (*.f64 1/2 x))) |
Found 1 expressions with local error:
| New | Error | Program |
|---|---|---|
| ✓ | 0.1b | (*.f64 -1/24 (pow.f64 x 4)) |
Compiled 26 to 17 computations (34.6% saved)
3 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 2.0ms | x | @ | inf | (*.f64 -1/24 (pow.f64 x 4)) |
| 0.0ms | x | @ | 0 | (*.f64 -1/24 (pow.f64 x 4)) |
| 0.0ms | x | @ | -inf | (*.f64 -1/24 (pow.f64 x 4)) |
| 1× | batch-egg-rewrite |
| 1214× | add-sqr-sqrt |
| 1190× | *-un-lft-identity |
| 1132× | pow1 |
| 1120× | add-cube-cbrt |
| 1112× | add-cbrt-cube |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 7 | 13 |
| 1 | 146 | 13 |
| 2 | 1588 | 13 |
| 1× | node limit |
| Inputs |
|---|
(*.f64 -1/24 (pow.f64 x 4)) |
| Outputs |
|---|
((#(struct:change #<rule egg-rr> (2) ((x -.f64 (+.f64 1 (*.f64 -1/24 (pow.f64 x 4))) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 -1/24 (pow.f64 x 4)) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 (sqrt.f64 -1/24) (*.f64 x x)) 2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (*.f64 -1/24 (pow.f64 x 4))) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (*.f64 -1/24 (pow.f64 x 4)) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (*.f64 (pow.f64 x 8) 1/576))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (pow.f64 (exp.f64 (pow.f64 x 4)) -1/24))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (*.f64 -1/24 (pow.f64 x 4)) 3))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (*.f64 -1/24 (pow.f64 x 4))))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (*.f64 -1/24 (pow.f64 x 4))))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (*.f64 -1/24 (pow.f64 x 4)))))))) |
| 1× | egg-herbie |
| 1288× | distribute-rgt-in |
| 1264× | distribute-lft-in |
| 1002× | log-prod |
| 666× | associate-*r* |
| 640× | associate-+r+ |
Useful iterations: 2 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 38 | 275 |
| 1 | 93 | 209 |
| 2 | 328 | 143 |
| 3 | 1794 | 143 |
| 4 | 7731 | 143 |
| 1× | node limit |
| Inputs |
|---|
(-.f64 (+.f64 1 (*.f64 -1/24 (pow.f64 x 4))) 1) |
(pow.f64 (*.f64 -1/24 (pow.f64 x 4)) 1) |
(pow.f64 (*.f64 (sqrt.f64 -1/24) (*.f64 x x)) 2) |
(pow.f64 (cbrt.f64 (*.f64 -1/24 (pow.f64 x 4))) 3) |
(pow.f64 (pow.f64 (*.f64 -1/24 (pow.f64 x 4)) 3) 1/3) |
(sqrt.f64 (*.f64 (pow.f64 x 8) 1/576)) |
(log.f64 (pow.f64 (exp.f64 (pow.f64 x 4)) -1/24)) |
(cbrt.f64 (pow.f64 (*.f64 -1/24 (pow.f64 x 4)) 3)) |
(expm1.f64 (log1p.f64 (*.f64 -1/24 (pow.f64 x 4)))) |
(exp.f64 (log.f64 (*.f64 -1/24 (pow.f64 x 4)))) |
(log1p.f64 (expm1.f64 (*.f64 -1/24 (pow.f64 x 4)))) |
| Outputs |
|---|
(-.f64 (+.f64 1 (*.f64 -1/24 (pow.f64 x 4))) 1) |
(+.f64 (+.f64 1 (*.f64 -1/24 (pow.f64 x 4))) -1) |
(+.f64 (*.f64 -1/24 (pow.f64 x 4)) 0) |
(*.f64 -1/24 (pow.f64 x 4)) |
(pow.f64 (*.f64 -1/24 (pow.f64 x 4)) 1) |
(+.f64 (+.f64 1 (*.f64 -1/24 (pow.f64 x 4))) -1) |
(+.f64 (*.f64 -1/24 (pow.f64 x 4)) 0) |
(*.f64 -1/24 (pow.f64 x 4)) |
(pow.f64 (*.f64 (sqrt.f64 -1/24) (*.f64 x x)) 2) |
(+.f64 (+.f64 1 (*.f64 -1/24 (pow.f64 x 4))) -1) |
(+.f64 (*.f64 -1/24 (pow.f64 x 4)) 0) |
(*.f64 -1/24 (pow.f64 x 4)) |
(pow.f64 (cbrt.f64 (*.f64 -1/24 (pow.f64 x 4))) 3) |
(+.f64 (+.f64 1 (*.f64 -1/24 (pow.f64 x 4))) -1) |
(+.f64 (*.f64 -1/24 (pow.f64 x 4)) 0) |
(*.f64 -1/24 (pow.f64 x 4)) |
(pow.f64 (pow.f64 (*.f64 -1/24 (pow.f64 x 4)) 3) 1/3) |
(+.f64 (+.f64 1 (*.f64 -1/24 (pow.f64 x 4))) -1) |
(+.f64 (*.f64 -1/24 (pow.f64 x 4)) 0) |
(*.f64 -1/24 (pow.f64 x 4)) |
(sqrt.f64 (*.f64 (pow.f64 x 8) 1/576)) |
(+.f64 (+.f64 1 (*.f64 -1/24 (pow.f64 x 4))) -1) |
(+.f64 (*.f64 -1/24 (pow.f64 x 4)) 0) |
(*.f64 -1/24 (pow.f64 x 4)) |
(log.f64 (pow.f64 (exp.f64 (pow.f64 x 4)) -1/24)) |
(+.f64 (+.f64 1 (*.f64 -1/24 (pow.f64 x 4))) -1) |
(+.f64 (*.f64 -1/24 (pow.f64 x 4)) 0) |
(*.f64 -1/24 (pow.f64 x 4)) |
(cbrt.f64 (pow.f64 (*.f64 -1/24 (pow.f64 x 4)) 3)) |
(+.f64 (+.f64 1 (*.f64 -1/24 (pow.f64 x 4))) -1) |
(+.f64 (*.f64 -1/24 (pow.f64 x 4)) 0) |
(*.f64 -1/24 (pow.f64 x 4)) |
(expm1.f64 (log1p.f64 (*.f64 -1/24 (pow.f64 x 4)))) |
(+.f64 (+.f64 1 (*.f64 -1/24 (pow.f64 x 4))) -1) |
(+.f64 (*.f64 -1/24 (pow.f64 x 4)) 0) |
(*.f64 -1/24 (pow.f64 x 4)) |
(exp.f64 (log.f64 (*.f64 -1/24 (pow.f64 x 4)))) |
(+.f64 (+.f64 1 (*.f64 -1/24 (pow.f64 x 4))) -1) |
(+.f64 (*.f64 -1/24 (pow.f64 x 4)) 0) |
(*.f64 -1/24 (pow.f64 x 4)) |
(log1p.f64 (expm1.f64 (*.f64 -1/24 (pow.f64 x 4)))) |
(+.f64 (+.f64 1 (*.f64 -1/24 (pow.f64 x 4))) -1) |
(+.f64 (*.f64 -1/24 (pow.f64 x 4)) 0) |
(*.f64 -1/24 (pow.f64 x 4)) |
Compiled 564 to 387 computations (31.4% saved)
3 alts after pruning (1 fresh and 2 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 46 | 1 | 47 |
| Fresh | 0 | 0 | 0 |
| Picked | 1 | 0 | 1 |
| Done | 1 | 2 | 3 |
| Total | 48 | 3 | 51 |
| Status | Error | Program |
|---|---|---|
| ✓ | 30.2b | (-.f64 1 (cos.f64 x)) |
| ▶ | 0b | (*.f64 (*.f64 x x) (fma.f64 x (*.f64 x -1/24) 1/2)) |
| ✓ | 0.3b | (*.f64 1/2 (*.f64 x x)) |
Compiled 22 to 15 computations (31.8% saved)
Found 1 expressions with local error:
| New | Error | Program |
|---|---|---|
| ✓ | 0.3b | (*.f64 x -1/24) |
Compiled 26 to 15 computations (42.3% saved)
3 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 0.0ms | x | @ | -inf | (*.f64 x -1/24) |
| 0.0ms | x | @ | 0 | (*.f64 x -1/24) |
| 0.0ms | x | @ | inf | (*.f64 x -1/24) |
| 1× | batch-egg-rewrite |
| 922× | associate-*l* |
| 904× | add-sqr-sqrt |
| 884× | *-un-lft-identity |
| 842× | pow1 |
| 828× | add-cube-cbrt |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 5 | 7 |
| 1 | 100 | 7 |
| 2 | 1112 | 7 |
| 1× | node limit |
| Inputs |
|---|
(*.f64 x -1/24) |
| Outputs |
|---|
((#(struct:change #<rule egg-rr> (2) ((x -.f64 (+.f64 (*.f64 x -1/24) 1) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (*.f64 x -1/24) 1)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (sqrt.f64 (*.f64 x -1/24)) 2)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (cbrt.f64 (*.f64 x -1/24)) 3)))) (#(struct:change #<rule egg-rr> (2) ((x pow.f64 (pow.f64 (*.f64 x -1/24) 3) 1/3)))) (#(struct:change #<rule egg-rr> (2) ((x sqrt.f64 (*.f64 x (*.f64 x 1/576)))))) (#(struct:change #<rule egg-rr> (2) ((x log.f64 (pow.f64 (exp.f64 x) -1/24))))) (#(struct:change #<rule egg-rr> (2) ((x cbrt.f64 (pow.f64 (*.f64 x -1/24) 3))))) (#(struct:change #<rule egg-rr> (2) ((x expm1.f64 (log1p.f64 (*.f64 x -1/24)))))) (#(struct:change #<rule egg-rr> (2) ((x exp.f64 (log.f64 (*.f64 x -1/24)))))) (#(struct:change #<rule egg-rr> (2) ((x log1p.f64 (expm1.f64 (*.f64 x -1/24))))))) |
| 1× | egg-herbie |
| 840× | log-prod |
| 808× | distribute-rgt-out |
| 790× | +-commutative |
| 690× | fma-def |
| 624× | *-commutative |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 34 | 161 |
| 1 | 85 | 161 |
| 2 | 261 | 161 |
| 3 | 1816 | 161 |
| 4 | 3918 | 161 |
| 5 | 6091 | 161 |
| 1× | node limit |
| Inputs |
|---|
(*.f64 -1/24 x) |
(*.f64 -1/24 x) |
(*.f64 -1/24 x) |
(*.f64 -1/24 x) |
(*.f64 -1/24 x) |
(*.f64 -1/24 x) |
(*.f64 -1/24 x) |
(*.f64 -1/24 x) |
(*.f64 -1/24 x) |
(*.f64 -1/24 x) |
(*.f64 -1/24 x) |
(*.f64 -1/24 x) |
(-.f64 (+.f64 (*.f64 x -1/24) 1) 1) |
(pow.f64 (*.f64 x -1/24) 1) |
(pow.f64 (sqrt.f64 (*.f64 x -1/24)) 2) |
(pow.f64 (cbrt.f64 (*.f64 x -1/24)) 3) |
(pow.f64 (pow.f64 (*.f64 x -1/24) 3) 1/3) |
(sqrt.f64 (*.f64 x (*.f64 x 1/576))) |
(log.f64 (pow.f64 (exp.f64 x) -1/24)) |
(cbrt.f64 (pow.f64 (*.f64 x -1/24) 3)) |
(expm1.f64 (log1p.f64 (*.f64 x -1/24))) |
(exp.f64 (log.f64 (*.f64 x -1/24))) |
(log1p.f64 (expm1.f64 (*.f64 x -1/24))) |
| Outputs |
|---|
(*.f64 -1/24 x) |
(*.f64 -1/24 x) |
(*.f64 -1/24 x) |
(*.f64 -1/24 x) |
(*.f64 -1/24 x) |
(*.f64 -1/24 x) |
(*.f64 -1/24 x) |
(*.f64 -1/24 x) |
(*.f64 -1/24 x) |
(*.f64 -1/24 x) |
(*.f64 -1/24 x) |
(*.f64 -1/24 x) |
(-.f64 (+.f64 (*.f64 x -1/24) 1) 1) |
(*.f64 -1/24 x) |
(pow.f64 (*.f64 x -1/24) 1) |
(*.f64 -1/24 x) |
(pow.f64 (sqrt.f64 (*.f64 x -1/24)) 2) |
(*.f64 -1/24 x) |
(pow.f64 (cbrt.f64 (*.f64 x -1/24)) 3) |
(*.f64 -1/24 x) |
(pow.f64 (pow.f64 (*.f64 x -1/24) 3) 1/3) |
(*.f64 -1/24 x) |
(sqrt.f64 (*.f64 x (*.f64 x 1/576))) |
(*.f64 -1/24 x) |
(log.f64 (pow.f64 (exp.f64 x) -1/24)) |
(*.f64 -1/24 x) |
(cbrt.f64 (pow.f64 (*.f64 x -1/24) 3)) |
(*.f64 -1/24 x) |
(expm1.f64 (log1p.f64 (*.f64 x -1/24))) |
(*.f64 -1/24 x) |
(exp.f64 (log.f64 (*.f64 x -1/24))) |
(*.f64 -1/24 x) |
(log1p.f64 (expm1.f64 (*.f64 x -1/24))) |
(*.f64 -1/24 x) |
Compiled 151 to 91 computations (39.7% saved)
3 alts after pruning (0 fresh and 3 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 12 | 0 | 12 |
| Fresh | 0 | 0 | 0 |
| Picked | 0 | 1 | 1 |
| Done | 0 | 2 | 2 |
| Total | 12 | 3 | 15 |
| Status | Error | Program |
|---|---|---|
| ✓ | 30.2b | (-.f64 1 (cos.f64 x)) |
| ✓ | 0b | (*.f64 (*.f64 x x) (fma.f64 x (*.f64 x -1/24) 1/2)) |
| ✓ | 0.3b | (*.f64 1/2 (*.f64 x x)) |
Compiled 22 to 15 computations (31.8% saved)
| Inputs |
|---|
(*.f64 1/2 (*.f64 x x)) |
(-.f64 1 (cos.f64 x)) |
(*.f64 (*.f64 x x) (fma.f64 x (*.f64 x -1/24) 1/2)) |
(*.f64 (sin.f64 x) (tan.f64 (/.f64 x 2))) |
(fma.f64 1/2 (*.f64 x x) (*.f64 -1/24 (pow.f64 x 4))) |
| Outputs |
|---|
(*.f64 (*.f64 x x) (fma.f64 x (*.f64 x -1/24) 1/2)) |
3 calls:
| 7.0ms | x |
| 2.0ms | (cos.f64 x) |
| 2.0ms | (-.f64 1 (cos.f64 x)) |
| Error | Segments | Branch |
|---|---|---|
| 0b | 1 | x |
| 0b | 1 | (-.f64 1 (cos.f64 x)) |
| 0b | 1 | (cos.f64 x) |
Compiled 47 to 30 computations (36.2% saved)
Total -30.0b remaining (-11864.7%)
Threshold costs -30.0b (-11864.7%)
| Inputs |
|---|
(*.f64 1/2 (*.f64 x x)) |
(-.f64 1 (cos.f64 x)) |
| Outputs |
|---|
(*.f64 1/2 (*.f64 x x)) |
3 calls:
| 3.0ms | x |
| 2.0ms | (-.f64 1 (cos.f64 x)) |
| 2.0ms | (cos.f64 x) |
| Error | Segments | Branch |
|---|---|---|
| 0.3b | 1 | x |
| 0.3b | 1 | (-.f64 1 (cos.f64 x)) |
| 0.3b | 1 | (cos.f64 x) |
Compiled 20 to 14 computations (30% saved)
| 1× | egg-herbie |
| 6× | *-commutative |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 11 | 40 |
| 1 | 14 | 40 |
| 1× | done |
| 1× | saturated |
| Inputs |
|---|
(*.f64 (*.f64 x x) (fma.f64 x (*.f64 x -1/24) 1/2)) |
(*.f64 1/2 (*.f64 x x)) |
| Outputs |
|---|
(*.f64 (*.f64 x x) (fma.f64 x (*.f64 x -1/24) 1/2)) |
(*.f64 1/2 (*.f64 x x)) |
(*.f64 (*.f64 x x) 1/2) |
Compiled 17 to 11 computations (35.3% saved)
| 2× | egg-herbie |
| 1088× | fma-def |
| 952× | distribute-lft-in |
| 932× | associate-/l* |
| 906× | associate-*r* |
| 896× | times-frac |
Useful iterations: 2 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 95 | 817 |
| 1 | 232 | 757 |
| 2 | 782 | 687 |
| 3 | 3180 | 687 |
| 0 | 69 | 779 |
| 1 | 152 | 779 |
| 2 | 419 | 779 |
| 3 | 2320 | 779 |
| 4 | 6397 | 779 |
| 1× | node limit |
| 1× | node limit |
Compiled 198 to 133 computations (32.8% saved)
Compiled 16 to 9 computations (43.8% saved)
Loading profile data...