
Time bar (total: 3.3s)
| 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 |
| 0% | 0% | 50% | 0% | 0% | 50% | 0% | 3 |
| 50% | 25% | 25% | 0% | 0% | 50% | 0% | 4 |
| 75% | 37.5% | 12.5% | 0% | 0% | 50% | 0% | 5 |
| 87.5% | 43.7% | 6.2% | 0% | 0% | 50% | 0% | 6 |
| 93.8% | 46.9% | 3.1% | 0% | 0% | 50% | 0% | 7 |
| 96.9% | 48.4% | 1.6% | 0% | 0% | 50% | 0% | 8 |
| 98.4% | 49.2% | 0.8% | 0% | 0% | 50% | 0% | 9 |
| 99.2% | 49.6% | 0.4% | 0% | 0% | 50% | 0% | 10 |
| 99.6% | 49.8% | 0.2% | 0% | 0% | 50% | 0% | 11 |
| 99.8% | 49.9% | 0.1% | 0% | 0% | 50% | 0% | 12 |
Compiled 8 to 7 computations (12.5% saved)
| 559.0ms | 8 256× | 0 | valid |
| 0.0ms | 4× | 0 | invalid |
ival-mult: 216.0ms (53.9% of total)ival-sub: 109.0ms (27.2% of total)ival-sqrt: 62.0ms (15.5% of total)ival-true: 6.0ms (1.5% of total)exact: 4.0ms (1% of total)ival-assert: 3.0ms (0.7% of total)| Ground Truth | Overpredictions | Example | Underpredictions | Example | Subexpression |
|---|---|---|---|---|---|
| 0 | 0 | - | 0 | - | (sqrt.f64 (-.f64 #s(literal 1 binary64) (*.f64 x x))) |
| 0 | 0 | - | 0 | - | #s(literal 1 binary64) |
| 0 | 0 | - | 0 | - | (-.f64 #s(literal 1 binary64) (*.f64 x x)) |
| 0 | 0 | - | 0 | - | (*.f64 x x) |
| 0 | 0 | - | 0 | - | x |
| Predicted + | Predicted - | |
|---|---|---|
| + | 0 | 0 |
| - | 0 | 256 |
| Predicted + | Predicted Maybe | Predicted - | |
|---|---|---|---|
| + | 0 | 0 | 0 |
| - | 0 | 0 | 256 |
| number | freq |
|---|---|
| 0 | 256 |
| Predicted + | Predicted Maybe | Predicted - | |
|---|---|---|---|
| + | 0 | 0 | 0 |
| - | 0 | 0 | 1 |
| 31.0ms | 512× | 0 | valid |
Compiled 58 to 24 computations (58.6% saved)
ival-mult: 4.0ms (35.8% of total)ival-sqrt: 4.0ms (35.8% of total)ival-sub: 2.0ms (17.9% of total)ival-true: 0.0ms (0% of total)exact: 0.0ms (0% of total)ival-assert: 0.0ms (0% of total)| 1× | egg-herbie |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 7 | 13 |
| 1 | 25 | 13 |
| 2 | 45 | 13 |
| 3 | 87 | 13 |
| 4 | 116 | 13 |
| 5 | 167 | 13 |
| 6 | 280 | 13 |
| 7 | 507 | 13 |
| 8 | 900 | 13 |
| 9 | 1467 | 13 |
| 10 | 3839 | 13 |
| 11 | 5537 | 13 |
| 12 | 6300 | 13 |
| 13 | 6598 | 13 |
| 14 | 6654 | 13 |
| 15 | 6686 | 13 |
| 16 | 6948 | 13 |
| 17 | 7542 | 13 |
| 0 | 5 | 6 |
| 0 | 8 | 6 |
| 1 | 15 | 6 |
| 2 | 22 | 6 |
| 3 | 30 | 6 |
| 4 | 45 | 6 |
| 5 | 65 | 6 |
| 6 | 108 | 6 |
| 7 | 305 | 6 |
| 8 | 585 | 6 |
| 9 | 1159 | 6 |
| 10 | 2070 | 6 |
| 11 | 3779 | 6 |
| 12 | 4733 | 6 |
| 13 | 5051 | 6 |
| 14 | 5337 | 6 |
| 15 | 5506 | 6 |
| 16 | 5583 | 6 |
| 17 | 5850 | 6 |
| 18 | 6848 | 6 |
| 19 | 7904 | 6 |
| 0 | 8289 | 6 |
| 1× | iter limit |
| 1× | node limit |
| 1× | iter limit |
| 1× | node limit |
| Inputs |
|---|
(sqrt.f64 (-.f64 #s(literal 1 binary64) (*.f64 x x))) |
| Outputs |
|---|
(sqrt.f64 (-.f64 #s(literal 1 binary64) (*.f64 x x))) |
(abs x)
Compiled 6 to 5 computations (16.7% saved)
Compiled 0 to 1 computations (-∞% saved)
| Status | Accuracy | Program |
|---|---|---|
| ▶ | 100.0% | (sqrt.f64 (-.f64 #s(literal 1 binary64) (*.f64 x x))) |
Compiled 6 to 5 computations (16.7% saved)
| 1× | egg-herbie |
Found 3 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| cost-diff | 0 | (*.f64 x x) | |
| cost-diff | 0 | (-.f64 #s(literal 1 binary64) (*.f64 x x)) | |
| cost-diff | 0 | (sqrt.f64 (-.f64 #s(literal 1 binary64) (*.f64 x x))) |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 5 | 16 |
| 0 | 8 | 16 |
| 1 | 15 | 16 |
| 2 | 22 | 16 |
| 3 | 30 | 16 |
| 4 | 45 | 16 |
| 5 | 65 | 16 |
| 6 | 108 | 16 |
| 7 | 305 | 16 |
| 8 | 585 | 16 |
| 9 | 1159 | 16 |
| 10 | 2070 | 16 |
| 11 | 3779 | 16 |
| 12 | 4733 | 16 |
| 13 | 5051 | 16 |
| 14 | 5337 | 16 |
| 15 | 5506 | 16 |
| 16 | 5583 | 16 |
| 17 | 5850 | 16 |
| 18 | 6848 | 16 |
| 19 | 7904 | 16 |
| 0 | 8289 | 16 |
| 1× | iter limit |
| 1× | node limit |
| 1× | iter limit |
| Inputs |
|---|
(sqrt.f64 (-.f64 #s(literal 1 binary64) (*.f64 x x))) |
(-.f64 #s(literal 1 binary64) (*.f64 x x)) |
#s(literal 1 binary64) |
(*.f64 x x) |
x |
| Outputs |
|---|
(sqrt.f64 (-.f64 #s(literal 1 binary64) (*.f64 x x))) |
(-.f64 #s(literal 1 binary64) (*.f64 x x)) |
#s(literal 1 binary64) |
(*.f64 x x) |
x |
Found 3 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| accuracy | 0 | (-.f64 #s(literal 1 binary64) (*.f64 x x)) | |
| accuracy | 0 | (*.f64 x x) | |
| accuracy | 0.0078125 | (sqrt.f64 (-.f64 #s(literal 1 binary64) (*.f64 x x))) |
| 13.0ms | 256× | 0 | valid |
Compiled 34 to 12 computations (64.7% saved)
ival-mult: 2.0ms (38% of total)ival-sqrt: 2.0ms (38% of total)ival-sub: 1.0ms (19% of total)ival-true: 0.0ms (0% of total)exact: 0.0ms (0% of total)ival-assert: 0.0ms (0% of total)| Inputs |
|---|
#s(alt #<batchref> (patch (sqrt.f64 (-.f64 #s(literal 1 binary64) (*.f64 x x))) #<representation binary64>) () ()) |
#s(alt #<batchref> (patch (-.f64 #s(literal 1 binary64) (*.f64 x x)) #<representation binary64>) () ()) |
#s(alt #<batchref> (patch (*.f64 x x) #<representation binary64>) () ()) |
| Outputs |
|---|
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch (sqrt.f64 (-.f64 #s(literal 1 binary64) (*.f64 x x))) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch (sqrt.f64 (-.f64 #s(literal 1 binary64) (*.f64 x x))) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch (sqrt.f64 (-.f64 #s(literal 1 binary64) (*.f64 x x))) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch (sqrt.f64 (-.f64 #s(literal 1 binary64) (*.f64 x x))) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch (-.f64 #s(literal 1 binary64) (*.f64 x x)) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch (-.f64 #s(literal 1 binary64) (*.f64 x x)) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch (-.f64 #s(literal 1 binary64) (*.f64 x x)) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch (-.f64 #s(literal 1 binary64) (*.f64 x x)) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch (*.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch (*.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch (*.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch (*.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch (sqrt.f64 (-.f64 #s(literal 1 binary64) (*.f64 x x))) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch (sqrt.f64 (-.f64 #s(literal 1 binary64) (*.f64 x x))) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch (sqrt.f64 (-.f64 #s(literal 1 binary64) (*.f64 x x))) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch (sqrt.f64 (-.f64 #s(literal 1 binary64) (*.f64 x x))) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch (-.f64 #s(literal 1 binary64) (*.f64 x x)) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch (-.f64 #s(literal 1 binary64) (*.f64 x x)) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch (-.f64 #s(literal 1 binary64) (*.f64 x x)) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch (-.f64 #s(literal 1 binary64) (*.f64 x x)) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch (*.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch (*.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch (*.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch (*.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch (sqrt.f64 (-.f64 #s(literal 1 binary64) (*.f64 x x))) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch (sqrt.f64 (-.f64 #s(literal 1 binary64) (*.f64 x x))) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch (sqrt.f64 (-.f64 #s(literal 1 binary64) (*.f64 x x))) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch (sqrt.f64 (-.f64 #s(literal 1 binary64) (*.f64 x x))) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch (-.f64 #s(literal 1 binary64) (*.f64 x x)) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch (-.f64 #s(literal 1 binary64) (*.f64 x x)) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch (-.f64 #s(literal 1 binary64) (*.f64 x x)) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch (-.f64 #s(literal 1 binary64) (*.f64 x x)) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch (*.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch (*.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch (*.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch (*.f64 x x) #<representation binary64>) () ())) ()) |
3 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 1.0ms | x | @ | inf | ((sqrt (- 1 (* x x))) (- 1 (* x x)) (* x x)) |
| 1.0ms | x | @ | -inf | ((sqrt (- 1 (* x x))) (- 1 (* x x)) (* x x)) |
| 1.0ms | x | @ | 0 | ((sqrt (- 1 (* x x))) (- 1 (* x x)) (* x x)) |
| 1× | egg-herbie |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 62 | 295 |
| 1 | 149 | 286 |
| 2 | 419 | 278 |
| 3 | 1279 | 264 |
| 4 | 3834 | 263 |
| 5 | 6189 | 263 |
| 0 | 8174 | 252 |
| 1× | iter limit |
| 1× | node limit |
| Inputs |
|---|
1 |
(+ 1 (* -1/2 (pow x 2))) |
(+ 1 (* (pow x 2) (- (* -1/8 (pow x 2)) 1/2))) |
(+ 1 (* (pow x 2) (- (* (pow x 2) (- (* -1/16 (pow x 2)) 1/8)) 1/2))) |
1 |
(+ 1 (* -1 (pow x 2))) |
(+ 1 (* -1 (pow x 2))) |
(+ 1 (* -1 (pow x 2))) |
(pow x 2) |
(pow x 2) |
(pow x 2) |
(pow x 2) |
(* x (sqrt -1)) |
(* x (+ (sqrt -1) (* 1/2 (/ 1 (* (pow x 2) (sqrt -1)))))) |
(* x (- (+ (sqrt -1) (/ 1/2 (* (pow x 2) (sqrt -1)))) (/ 1/8 (* (pow x 4) (pow (sqrt -1) 3))))) |
(* x (- (+ (sqrt -1) (+ (/ 1/2 (* (pow x 2) (sqrt -1))) (* 1/16 (/ 1 (* (pow x 6) (pow (sqrt -1) 5)))))) (* 1/8 (/ 1 (* (pow x 4) (pow (sqrt -1) 3)))))) |
(* -1 (pow x 2)) |
(* (pow x 2) (- (/ 1 (pow x 2)) 1)) |
(* (pow x 2) (- (/ 1 (pow x 2)) 1)) |
(* (pow x 2) (- (/ 1 (pow x 2)) 1)) |
(pow x 2) |
(pow x 2) |
(pow x 2) |
(pow x 2) |
(* -1 (* x (sqrt -1))) |
(* -1 (* x (+ (sqrt -1) (* 1/2 (/ 1 (* (pow x 2) (sqrt -1))))))) |
(* -1 (* x (- (+ (sqrt -1) (/ 1/2 (* (pow x 2) (sqrt -1)))) (/ 1/8 (* (pow x 4) (pow (sqrt -1) 3)))))) |
(* -1 (* x (- (+ (sqrt -1) (+ (/ 1/2 (* (pow x 2) (sqrt -1))) (* 1/16 (/ 1 (* (pow x 6) (pow (sqrt -1) 5)))))) (* 1/8 (/ 1 (* (pow x 4) (pow (sqrt -1) 3))))))) |
(* -1 (pow x 2)) |
(* (pow x 2) (- (/ 1 (pow x 2)) 1)) |
(* (pow x 2) (- (/ 1 (pow x 2)) 1)) |
(* (pow x 2) (- (/ 1 (pow x 2)) 1)) |
(pow x 2) |
(pow x 2) |
(pow x 2) |
(pow x 2) |
| Outputs |
|---|
#s(literal 1 binary64) |
(fma.f64 (*.f64 x x) #s(literal -1/2 binary64) #s(literal 1 binary64)) |
(fma.f64 (fma.f64 #s(literal -1/8 binary64) (*.f64 x x) #s(literal -1/2 binary64)) (*.f64 x x) #s(literal 1 binary64)) |
(fma.f64 (fma.f64 (fma.f64 #s(literal -1/16 binary64) (*.f64 x x) #s(literal -1/8 binary64)) (*.f64 x x) #s(literal -1/2 binary64)) (*.f64 x x) #s(literal 1 binary64)) |
#s(literal 1 binary64) |
(fma.f64 (neg.f64 x) x #s(literal 1 binary64)) |
(fma.f64 (neg.f64 x) x #s(literal 1 binary64)) |
(fma.f64 (neg.f64 x) x #s(literal 1 binary64)) |
(*.f64 x x) |
(*.f64 x x) |
(*.f64 x x) |
(*.f64 x x) |
(*.f64 (sqrt.f64 #s(literal -1 binary64)) x) |
(fma.f64 (sqrt.f64 #s(literal -1 binary64)) x (/.f64 #s(literal 1/2 binary64) (*.f64 (sqrt.f64 #s(literal -1 binary64)) x))) |
(fma.f64 (-.f64 (sqrt.f64 #s(literal -1 binary64)) (/.f64 (/.f64 #s(literal -1/8 binary64) (sqrt.f64 #s(literal -1 binary64))) (pow.f64 x #s(literal 4 binary64)))) x (/.f64 #s(literal 1/2 binary64) (*.f64 (sqrt.f64 #s(literal -1 binary64)) x))) |
(fma.f64 (-.f64 (+.f64 (/.f64 (/.f64 #s(literal 1/16 binary64) (pow.f64 (sqrt.f64 #s(literal -1 binary64)) #s(literal 5 binary64))) (pow.f64 x #s(literal 6 binary64))) (sqrt.f64 #s(literal -1 binary64))) (/.f64 (/.f64 #s(literal -1/8 binary64) (sqrt.f64 #s(literal -1 binary64))) (pow.f64 x #s(literal 4 binary64)))) x (/.f64 #s(literal 1/2 binary64) (*.f64 (sqrt.f64 #s(literal -1 binary64)) x))) |
(*.f64 (neg.f64 x) x) |
(fma.f64 (neg.f64 x) x #s(literal 1 binary64)) |
(fma.f64 (neg.f64 x) x #s(literal 1 binary64)) |
(fma.f64 (neg.f64 x) x #s(literal 1 binary64)) |
(*.f64 x x) |
(*.f64 x x) |
(*.f64 x x) |
(*.f64 x x) |
(*.f64 (neg.f64 x) (sqrt.f64 #s(literal -1 binary64))) |
(neg.f64 (fma.f64 (sqrt.f64 #s(literal -1 binary64)) x (/.f64 #s(literal 1/2 binary64) (*.f64 (sqrt.f64 #s(literal -1 binary64)) x)))) |
(fma.f64 (-.f64 (/.f64 (/.f64 #s(literal -1/8 binary64) (sqrt.f64 #s(literal -1 binary64))) (pow.f64 x #s(literal 4 binary64))) (sqrt.f64 #s(literal -1 binary64))) x (/.f64 #s(literal -1/2 binary64) (*.f64 (sqrt.f64 #s(literal -1 binary64)) x))) |
(fma.f64 (-.f64 (-.f64 (/.f64 (/.f64 #s(literal -1/8 binary64) (sqrt.f64 #s(literal -1 binary64))) (pow.f64 x #s(literal 4 binary64))) (/.f64 (/.f64 #s(literal 1/16 binary64) (pow.f64 (sqrt.f64 #s(literal -1 binary64)) #s(literal 5 binary64))) (pow.f64 x #s(literal 6 binary64)))) (sqrt.f64 #s(literal -1 binary64))) x (/.f64 #s(literal -1/2 binary64) (*.f64 (sqrt.f64 #s(literal -1 binary64)) x))) |
(*.f64 (neg.f64 x) x) |
(fma.f64 (neg.f64 x) x #s(literal 1 binary64)) |
(fma.f64 (neg.f64 x) x #s(literal 1 binary64)) |
(fma.f64 (neg.f64 x) x #s(literal 1 binary64)) |
(*.f64 x x) |
(*.f64 x x) |
(*.f64 x x) |
(*.f64 x x) |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 5 | 14 |
| 0 | 8 | 14 |
| 1 | 32 | 14 |
| 2 | 187 | 14 |
| 3 | 1340 | 14 |
| 0 | 9365 | 12 |
| 1× | iter limit |
| 1× | node limit |
| 1× | iter limit |
| Inputs |
|---|
(sqrt.f64 (-.f64 #s(literal 1 binary64) (*.f64 x x))) |
(-.f64 #s(literal 1 binary64) (*.f64 x x)) |
(*.f64 x x) |
| Outputs |
|---|
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
Compiled 9 807 to 1 269 computations (87.1% saved)
3 alts after pruning (2 fresh and 1 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 389 | 2 | 391 |
| Fresh | 0 | 0 | 0 |
| Picked | 0 | 1 | 1 |
| Done | 0 | 0 | 0 |
| Total | 389 | 3 | 392 |
| Status | Accuracy | Program |
|---|---|---|
| ✓ | 100.0% | (sqrt.f64 (-.f64 #s(literal 1 binary64) (*.f64 x x))) |
| ▶ | 99.8% | #s(approx (sqrt (- 1 (* x x))) (fma.f64 (*.f64 x x) #s(literal -1/2 binary64) #s(literal 1 binary64))) |
| ▶ | 99.7% | #s(approx (sqrt (- 1 (* x x))) #s(literal 1 binary64)) |
Compiled 27 to 22 computations (18.5% saved)
| 1× | egg-herbie |
Found 4 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| cost-diff | 0 | (*.f64 x x) | |
| cost-diff | 0 | (fma.f64 (*.f64 x x) #s(literal -1/2 binary64) #s(literal 1 binary64)) | |
| cost-diff | 0 | #s(approx (sqrt (- 1 (* x x))) (fma.f64 (*.f64 x x) #s(literal -1/2 binary64) #s(literal 1 binary64))) | |
| cost-diff | 0 | #s(approx (sqrt (- 1 (* x x))) #s(literal 1 binary64)) |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 10 | 34 |
| 0 | 13 | 34 |
| 1 | 24 | 34 |
| 2 | 34 | 34 |
| 3 | 42 | 34 |
| 4 | 57 | 34 |
| 5 | 77 | 34 |
| 6 | 120 | 34 |
| 7 | 322 | 34 |
| 8 | 606 | 34 |
| 9 | 1204 | 34 |
| 10 | 2236 | 34 |
| 11 | 3244 | 34 |
| 12 | 3987 | 34 |
| 13 | 4283 | 34 |
| 14 | 4593 | 34 |
| 15 | 4749 | 34 |
| 16 | 4826 | 34 |
| 17 | 5035 | 34 |
| 18 | 5798 | 34 |
| 19 | 6004 | 34 |
| 20 | 7685 | 34 |
| 0 | 8151 | 34 |
| 1× | iter limit |
| 1× | node limit |
| 1× | iter limit |
| Inputs |
|---|
#s(approx (sqrt (- 1 (* x x))) #s(literal 1 binary64)) |
#s(literal 1 binary64) |
#s(approx (sqrt (- 1 (* x x))) (fma.f64 (*.f64 x x) #s(literal -1/2 binary64) #s(literal 1 binary64))) |
(fma.f64 (*.f64 x x) #s(literal -1/2 binary64) #s(literal 1 binary64)) |
(*.f64 x x) |
x |
#s(literal -1/2 binary64) |
#s(literal 1 binary64) |
| Outputs |
|---|
#s(approx (sqrt (- 1 (* x x))) #s(literal 1 binary64)) |
#s(literal 1 binary64) |
#s(approx (sqrt (- 1 (* x x))) (fma.f64 #s(literal -1/2 binary64) (*.f64 x x) #s(literal 1 binary64))) |
(fma.f64 #s(literal -1/2 binary64) (*.f64 x x) #s(literal 1 binary64)) |
(*.f64 x x) |
x |
#s(literal -1/2 binary64) |
#s(literal 1 binary64) |
Found 4 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| accuracy | 0 | (fma.f64 (*.f64 x x) #s(literal -1/2 binary64) #s(literal 1 binary64)) | |
| accuracy | 0 | (*.f64 x x) | |
| accuracy | 0.14376171717406933 | #s(approx (sqrt (- 1 (* x x))) (fma.f64 (*.f64 x x) #s(literal -1/2 binary64) #s(literal 1 binary64))) | |
| accuracy | 0.1913533683554549 | #s(approx (sqrt (- 1 (* x x))) #s(literal 1 binary64)) |
| 14.0ms | 256× | 0 | valid |
Compiled 62 to 21 computations (66.1% saved)
ival-mult: 3.0ms (36.5% of total)ival-sqrt: 2.0ms (24.4% of total)ival-sub: 1.0ms (12.2% of total)ival-add: 1.0ms (12.2% of total)ival-true: 0.0ms (0% of total)exact: 0.0ms (0% of total)ival-assert: 0.0ms (0% of total)| Inputs |
|---|
#s(alt #<batchref> (patch #s(approx (sqrt (- 1 (* x x))) #s(literal 1 binary64)) #<representation binary64>) () ()) |
#s(alt #<batchref> (patch #s(approx (sqrt (- 1 (* x x))) (fma.f64 (*.f64 x x) #s(literal -1/2 binary64) #s(literal 1 binary64))) #<representation binary64>) () ()) |
#s(alt #<batchref> (patch (fma.f64 (*.f64 x x) #s(literal -1/2 binary64) #s(literal 1 binary64)) #<representation binary64>) () ()) |
#s(alt #<batchref> (patch (*.f64 x x) #<representation binary64>) () ()) |
| Outputs |
|---|
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch #s(approx (sqrt (- 1 (* x x))) #s(literal 1 binary64)) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch #s(approx (sqrt (- 1 (* x x))) #s(literal 1 binary64)) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch #s(approx (sqrt (- 1 (* x x))) #s(literal 1 binary64)) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch #s(approx (sqrt (- 1 (* x x))) #s(literal 1 binary64)) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch #s(approx (sqrt (- 1 (* x x))) (fma.f64 (*.f64 x x) #s(literal -1/2 binary64) #s(literal 1 binary64))) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch #s(approx (sqrt (- 1 (* x x))) (fma.f64 (*.f64 x x) #s(literal -1/2 binary64) #s(literal 1 binary64))) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch #s(approx (sqrt (- 1 (* x x))) (fma.f64 (*.f64 x x) #s(literal -1/2 binary64) #s(literal 1 binary64))) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch #s(approx (sqrt (- 1 (* x x))) (fma.f64 (*.f64 x x) #s(literal -1/2 binary64) #s(literal 1 binary64))) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch (fma.f64 (*.f64 x x) #s(literal -1/2 binary64) #s(literal 1 binary64)) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch (fma.f64 (*.f64 x x) #s(literal -1/2 binary64) #s(literal 1 binary64)) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch (fma.f64 (*.f64 x x) #s(literal -1/2 binary64) #s(literal 1 binary64)) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch (fma.f64 (*.f64 x x) #s(literal -1/2 binary64) #s(literal 1 binary64)) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch (*.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch (*.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch (*.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch (*.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch #s(approx (sqrt (- 1 (* x x))) #s(literal 1 binary64)) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch #s(approx (sqrt (- 1 (* x x))) #s(literal 1 binary64)) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch #s(approx (sqrt (- 1 (* x x))) #s(literal 1 binary64)) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch #s(approx (sqrt (- 1 (* x x))) #s(literal 1 binary64)) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch #s(approx (sqrt (- 1 (* x x))) (fma.f64 (*.f64 x x) #s(literal -1/2 binary64) #s(literal 1 binary64))) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch #s(approx (sqrt (- 1 (* x x))) (fma.f64 (*.f64 x x) #s(literal -1/2 binary64) #s(literal 1 binary64))) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch #s(approx (sqrt (- 1 (* x x))) (fma.f64 (*.f64 x x) #s(literal -1/2 binary64) #s(literal 1 binary64))) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch #s(approx (sqrt (- 1 (* x x))) (fma.f64 (*.f64 x x) #s(literal -1/2 binary64) #s(literal 1 binary64))) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch (fma.f64 (*.f64 x x) #s(literal -1/2 binary64) #s(literal 1 binary64)) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch (fma.f64 (*.f64 x x) #s(literal -1/2 binary64) #s(literal 1 binary64)) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch (fma.f64 (*.f64 x x) #s(literal -1/2 binary64) #s(literal 1 binary64)) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch (fma.f64 (*.f64 x x) #s(literal -1/2 binary64) #s(literal 1 binary64)) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch (*.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch (*.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch (*.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch (*.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch #s(approx (sqrt (- 1 (* x x))) #s(literal 1 binary64)) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch #s(approx (sqrt (- 1 (* x x))) #s(literal 1 binary64)) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch #s(approx (sqrt (- 1 (* x x))) #s(literal 1 binary64)) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch #s(approx (sqrt (- 1 (* x x))) #s(literal 1 binary64)) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch #s(approx (sqrt (- 1 (* x x))) (fma.f64 (*.f64 x x) #s(literal -1/2 binary64) #s(literal 1 binary64))) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch #s(approx (sqrt (- 1 (* x x))) (fma.f64 (*.f64 x x) #s(literal -1/2 binary64) #s(literal 1 binary64))) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch #s(approx (sqrt (- 1 (* x x))) (fma.f64 (*.f64 x x) #s(literal -1/2 binary64) #s(literal 1 binary64))) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch #s(approx (sqrt (- 1 (* x x))) (fma.f64 (*.f64 x x) #s(literal -1/2 binary64) #s(literal 1 binary64))) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch (fma.f64 (*.f64 x x) #s(literal -1/2 binary64) #s(literal 1 binary64)) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch (fma.f64 (*.f64 x x) #s(literal -1/2 binary64) #s(literal 1 binary64)) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch (fma.f64 (*.f64 x x) #s(literal -1/2 binary64) #s(literal 1 binary64)) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch (fma.f64 (*.f64 x x) #s(literal -1/2 binary64) #s(literal 1 binary64)) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch (*.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch (*.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch (*.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch (*.f64 x x) #<representation binary64>) () ())) ()) |
3 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 1.0ms | x | @ | inf | ((sqrt (- 1 (* x x))) (sqrt (- 1 (* x x))) (+ (* (* x x) -1/2) 1) (* x x)) |
| 1.0ms | x | @ | -inf | ((sqrt (- 1 (* x x))) (sqrt (- 1 (* x x))) (+ (* (* x x) -1/2) 1) (* x x)) |
| 0.0ms | x | @ | 0 | ((sqrt (- 1 (* x x))) (sqrt (- 1 (* x x))) (+ (* (* x x) -1/2) 1) (* x x)) |
| 1× | egg-herbie |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 60 | 502 |
| 1 | 144 | 502 |
| 2 | 404 | 486 |
| 3 | 1258 | 458 |
| 4 | 3795 | 456 |
| 5 | 6250 | 456 |
| 0 | 8269 | 425 |
| 1× | iter limit |
| 1× | node limit |
| Inputs |
|---|
1 |
(+ 1 (* -1/2 (pow x 2))) |
(+ 1 (* (pow x 2) (- (* -1/8 (pow x 2)) 1/2))) |
(+ 1 (* (pow x 2) (- (* (pow x 2) (- (* -1/16 (pow x 2)) 1/8)) 1/2))) |
1 |
(+ 1 (* -1/2 (pow x 2))) |
(+ 1 (* (pow x 2) (- (* -1/8 (pow x 2)) 1/2))) |
(+ 1 (* (pow x 2) (- (* (pow x 2) (- (* -1/16 (pow x 2)) 1/8)) 1/2))) |
1 |
(+ 1 (* -1/2 (pow x 2))) |
(+ 1 (* -1/2 (pow x 2))) |
(+ 1 (* -1/2 (pow x 2))) |
(pow x 2) |
(pow x 2) |
(pow x 2) |
(pow x 2) |
(* x (sqrt -1)) |
(* x (+ (sqrt -1) (* 1/2 (/ 1 (* (pow x 2) (sqrt -1)))))) |
(* x (- (+ (sqrt -1) (/ 1/2 (* (pow x 2) (sqrt -1)))) (/ 1/8 (* (pow x 4) (pow (sqrt -1) 3))))) |
(* x (- (+ (sqrt -1) (+ (/ 1/2 (* (pow x 2) (sqrt -1))) (* 1/16 (/ 1 (* (pow x 6) (pow (sqrt -1) 5)))))) (* 1/8 (/ 1 (* (pow x 4) (pow (sqrt -1) 3)))))) |
(* x (sqrt -1)) |
(* x (+ (sqrt -1) (* 1/2 (/ 1 (* (pow x 2) (sqrt -1)))))) |
(* x (- (+ (sqrt -1) (/ 1/2 (* (pow x 2) (sqrt -1)))) (/ 1/8 (* (pow x 4) (pow (sqrt -1) 3))))) |
(* x (- (+ (sqrt -1) (+ (/ 1/2 (* (pow x 2) (sqrt -1))) (* 1/16 (/ 1 (* (pow x 6) (pow (sqrt -1) 5)))))) (* 1/8 (/ 1 (* (pow x 4) (pow (sqrt -1) 3)))))) |
(* -1/2 (pow x 2)) |
(* (pow x 2) (- (/ 1 (pow x 2)) 1/2)) |
(* (pow x 2) (- (/ 1 (pow x 2)) 1/2)) |
(* (pow x 2) (- (/ 1 (pow x 2)) 1/2)) |
(pow x 2) |
(pow x 2) |
(pow x 2) |
(pow x 2) |
(* -1 (* x (sqrt -1))) |
(* -1 (* x (+ (sqrt -1) (* 1/2 (/ 1 (* (pow x 2) (sqrt -1))))))) |
(* -1 (* x (- (+ (sqrt -1) (/ 1/2 (* (pow x 2) (sqrt -1)))) (/ 1/8 (* (pow x 4) (pow (sqrt -1) 3)))))) |
(* -1 (* x (- (+ (sqrt -1) (+ (/ 1/2 (* (pow x 2) (sqrt -1))) (* 1/16 (/ 1 (* (pow x 6) (pow (sqrt -1) 5)))))) (* 1/8 (/ 1 (* (pow x 4) (pow (sqrt -1) 3))))))) |
(* -1 (* x (sqrt -1))) |
(* -1 (* x (+ (sqrt -1) (* 1/2 (/ 1 (* (pow x 2) (sqrt -1))))))) |
(* -1 (* x (- (+ (sqrt -1) (/ 1/2 (* (pow x 2) (sqrt -1)))) (/ 1/8 (* (pow x 4) (pow (sqrt -1) 3)))))) |
(* -1 (* x (- (+ (sqrt -1) (+ (/ 1/2 (* (pow x 2) (sqrt -1))) (* 1/16 (/ 1 (* (pow x 6) (pow (sqrt -1) 5)))))) (* 1/8 (/ 1 (* (pow x 4) (pow (sqrt -1) 3))))))) |
(* -1/2 (pow x 2)) |
(* (pow x 2) (- (/ 1 (pow x 2)) 1/2)) |
(* (pow x 2) (- (/ 1 (pow x 2)) 1/2)) |
(* (pow x 2) (- (/ 1 (pow x 2)) 1/2)) |
(pow x 2) |
(pow x 2) |
(pow x 2) |
(pow x 2) |
| Outputs |
|---|
#s(literal 1 binary64) |
(fma.f64 (*.f64 x x) #s(literal -1/2 binary64) #s(literal 1 binary64)) |
(fma.f64 (fma.f64 #s(literal -1/8 binary64) (*.f64 x x) #s(literal -1/2 binary64)) (*.f64 x x) #s(literal 1 binary64)) |
(fma.f64 (fma.f64 (fma.f64 #s(literal -1/16 binary64) (*.f64 x x) #s(literal -1/8 binary64)) (*.f64 x x) #s(literal -1/2 binary64)) (*.f64 x x) #s(literal 1 binary64)) |
#s(literal 1 binary64) |
(fma.f64 (*.f64 x x) #s(literal -1/2 binary64) #s(literal 1 binary64)) |
(fma.f64 (fma.f64 #s(literal -1/8 binary64) (*.f64 x x) #s(literal -1/2 binary64)) (*.f64 x x) #s(literal 1 binary64)) |
(fma.f64 (fma.f64 (fma.f64 #s(literal -1/16 binary64) (*.f64 x x) #s(literal -1/8 binary64)) (*.f64 x x) #s(literal -1/2 binary64)) (*.f64 x x) #s(literal 1 binary64)) |
#s(literal 1 binary64) |
(fma.f64 (*.f64 x x) #s(literal -1/2 binary64) #s(literal 1 binary64)) |
(fma.f64 (*.f64 x x) #s(literal -1/2 binary64) #s(literal 1 binary64)) |
(fma.f64 (*.f64 x x) #s(literal -1/2 binary64) #s(literal 1 binary64)) |
(*.f64 x x) |
(*.f64 x x) |
(*.f64 x x) |
(*.f64 x x) |
(*.f64 (sqrt.f64 #s(literal -1 binary64)) x) |
(fma.f64 (sqrt.f64 #s(literal -1 binary64)) x (/.f64 #s(literal 1/2 binary64) (*.f64 (sqrt.f64 #s(literal -1 binary64)) x))) |
(fma.f64 (-.f64 (sqrt.f64 #s(literal -1 binary64)) (/.f64 (/.f64 #s(literal -1/8 binary64) (sqrt.f64 #s(literal -1 binary64))) (pow.f64 x #s(literal 4 binary64)))) x (/.f64 #s(literal 1/2 binary64) (*.f64 (sqrt.f64 #s(literal -1 binary64)) x))) |
(fma.f64 (-.f64 (+.f64 (/.f64 (/.f64 #s(literal 1/16 binary64) (pow.f64 (sqrt.f64 #s(literal -1 binary64)) #s(literal 5 binary64))) (pow.f64 x #s(literal 6 binary64))) (sqrt.f64 #s(literal -1 binary64))) (/.f64 (/.f64 #s(literal -1/8 binary64) (sqrt.f64 #s(literal -1 binary64))) (pow.f64 x #s(literal 4 binary64)))) x (/.f64 #s(literal 1/2 binary64) (*.f64 (sqrt.f64 #s(literal -1 binary64)) x))) |
(*.f64 (sqrt.f64 #s(literal -1 binary64)) x) |
(fma.f64 (sqrt.f64 #s(literal -1 binary64)) x (/.f64 #s(literal 1/2 binary64) (*.f64 (sqrt.f64 #s(literal -1 binary64)) x))) |
(fma.f64 (-.f64 (sqrt.f64 #s(literal -1 binary64)) (/.f64 (/.f64 #s(literal -1/8 binary64) (sqrt.f64 #s(literal -1 binary64))) (pow.f64 x #s(literal 4 binary64)))) x (/.f64 #s(literal 1/2 binary64) (*.f64 (sqrt.f64 #s(literal -1 binary64)) x))) |
(fma.f64 (-.f64 (+.f64 (/.f64 (/.f64 #s(literal 1/16 binary64) (pow.f64 (sqrt.f64 #s(literal -1 binary64)) #s(literal 5 binary64))) (pow.f64 x #s(literal 6 binary64))) (sqrt.f64 #s(literal -1 binary64))) (/.f64 (/.f64 #s(literal -1/8 binary64) (sqrt.f64 #s(literal -1 binary64))) (pow.f64 x #s(literal 4 binary64)))) x (/.f64 #s(literal 1/2 binary64) (*.f64 (sqrt.f64 #s(literal -1 binary64)) x))) |
(*.f64 (*.f64 x x) #s(literal -1/2 binary64)) |
(fma.f64 (*.f64 x x) #s(literal -1/2 binary64) #s(literal 1 binary64)) |
(fma.f64 (*.f64 x x) #s(literal -1/2 binary64) #s(literal 1 binary64)) |
(fma.f64 (*.f64 x x) #s(literal -1/2 binary64) #s(literal 1 binary64)) |
(*.f64 x x) |
(*.f64 x x) |
(*.f64 x x) |
(*.f64 x x) |
(*.f64 (neg.f64 x) (sqrt.f64 #s(literal -1 binary64))) |
(neg.f64 (fma.f64 (sqrt.f64 #s(literal -1 binary64)) x (/.f64 #s(literal 1/2 binary64) (*.f64 (sqrt.f64 #s(literal -1 binary64)) x)))) |
(fma.f64 (-.f64 (/.f64 (/.f64 #s(literal -1/8 binary64) (sqrt.f64 #s(literal -1 binary64))) (pow.f64 x #s(literal 4 binary64))) (sqrt.f64 #s(literal -1 binary64))) x (/.f64 #s(literal -1/2 binary64) (*.f64 (sqrt.f64 #s(literal -1 binary64)) x))) |
(fma.f64 (-.f64 (-.f64 (/.f64 (/.f64 #s(literal -1/8 binary64) (sqrt.f64 #s(literal -1 binary64))) (pow.f64 x #s(literal 4 binary64))) (/.f64 (/.f64 #s(literal 1/16 binary64) (pow.f64 (sqrt.f64 #s(literal -1 binary64)) #s(literal 5 binary64))) (pow.f64 x #s(literal 6 binary64)))) (sqrt.f64 #s(literal -1 binary64))) x (/.f64 #s(literal -1/2 binary64) (*.f64 (sqrt.f64 #s(literal -1 binary64)) x))) |
(*.f64 (neg.f64 x) (sqrt.f64 #s(literal -1 binary64))) |
(neg.f64 (fma.f64 (sqrt.f64 #s(literal -1 binary64)) x (/.f64 #s(literal 1/2 binary64) (*.f64 (sqrt.f64 #s(literal -1 binary64)) x)))) |
(fma.f64 (-.f64 (/.f64 (/.f64 #s(literal -1/8 binary64) (sqrt.f64 #s(literal -1 binary64))) (pow.f64 x #s(literal 4 binary64))) (sqrt.f64 #s(literal -1 binary64))) x (/.f64 #s(literal -1/2 binary64) (*.f64 (sqrt.f64 #s(literal -1 binary64)) x))) |
(fma.f64 (-.f64 (-.f64 (/.f64 (/.f64 #s(literal -1/8 binary64) (sqrt.f64 #s(literal -1 binary64))) (pow.f64 x #s(literal 4 binary64))) (/.f64 (/.f64 #s(literal 1/16 binary64) (pow.f64 (sqrt.f64 #s(literal -1 binary64)) #s(literal 5 binary64))) (pow.f64 x #s(literal 6 binary64)))) (sqrt.f64 #s(literal -1 binary64))) x (/.f64 #s(literal -1/2 binary64) (*.f64 (sqrt.f64 #s(literal -1 binary64)) x))) |
(*.f64 (*.f64 x x) #s(literal -1/2 binary64)) |
(fma.f64 (*.f64 x x) #s(literal -1/2 binary64) #s(literal 1 binary64)) |
(fma.f64 (*.f64 x x) #s(literal -1/2 binary64) #s(literal 1 binary64)) |
(fma.f64 (*.f64 x x) #s(literal -1/2 binary64) #s(literal 1 binary64)) |
(*.f64 x x) |
(*.f64 x x) |
(*.f64 x x) |
(*.f64 x x) |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 10 | 30 |
| 0 | 13 | 30 |
| 1 | 51 | 30 |
| 2 | 330 | 30 |
| 3 | 2676 | 30 |
| 0 | 8770 | 28 |
| 1× | iter limit |
| 1× | node limit |
| 1× | iter limit |
| Inputs |
|---|
#s(approx (sqrt (- 1 (* x x))) #s(literal 1 binary64)) |
#s(approx (sqrt (- 1 (* x x))) (fma.f64 (*.f64 x x) #s(literal -1/2 binary64) #s(literal 1 binary64))) |
(fma.f64 (*.f64 x x) #s(literal -1/2 binary64) #s(literal 1 binary64)) |
(*.f64 x x) |
| Outputs |
|---|
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
Compiled 4 666 to 550 computations (88.2% saved)
3 alts after pruning (0 fresh and 3 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 180 | 0 | 180 |
| Fresh | 0 | 0 | 0 |
| Picked | 0 | 2 | 2 |
| Done | 0 | 1 | 1 |
| Total | 180 | 3 | 183 |
| Status | Accuracy | Program |
|---|---|---|
| ✓ | 100.0% | (sqrt.f64 (-.f64 #s(literal 1 binary64) (*.f64 x x))) |
| ✓ | 99.8% | #s(approx (sqrt (- 1 (* x x))) (fma.f64 (*.f64 x x) #s(literal -1/2 binary64) #s(literal 1 binary64))) |
| ✓ | 99.7% | #s(approx (sqrt (- 1 (* x x))) #s(literal 1 binary64)) |
Compiled 54 to 35 computations (35.2% saved)
| Inputs |
|---|
#s(approx (sqrt (- 1 (* x x))) #s(literal 1 binary64)) |
#s(approx (sqrt (- 1 (* x x))) (fma.f64 (*.f64 x x) #s(literal -1/2 binary64) #s(literal 1 binary64))) |
(sqrt.f64 (-.f64 #s(literal 1 binary64) (*.f64 x x))) |
| Outputs |
|---|
(sqrt.f64 (-.f64 #s(literal 1 binary64) (*.f64 x x))) |
4 calls:
| 47.0ms | (sqrt.f64 (-.f64 #s(literal 1 binary64) (*.f64 x x))) |
| 2.0ms | x |
| 2.0ms | (*.f64 x x) |
| 1.0ms | (-.f64 #s(literal 1 binary64) (*.f64 x x)) |
| Accuracy | Segments | Branch |
|---|---|---|
| 100.0% | 1 | x |
| 100.0% | 1 | (sqrt.f64 (-.f64 #s(literal 1 binary64) (*.f64 x x))) |
| 100.0% | 1 | (-.f64 #s(literal 1 binary64) (*.f64 x x)) |
| 100.0% | 1 | (*.f64 x x) |
Compiled 15 to 12 computations (20% saved)
| Inputs |
|---|
#s(approx (sqrt (- 1 (* x x))) #s(literal 1 binary64)) |
#s(approx (sqrt (- 1 (* x x))) (fma.f64 (*.f64 x x) #s(literal -1/2 binary64) #s(literal 1 binary64))) |
| Outputs |
|---|
#s(approx (sqrt (- 1 (* x x))) (fma.f64 (*.f64 x x) #s(literal -1/2 binary64) #s(literal 1 binary64))) |
4 calls:
| 1.0ms | x |
| 1.0ms | (*.f64 x x) |
| 1.0ms | (sqrt.f64 (-.f64 #s(literal 1 binary64) (*.f64 x x))) |
| 1.0ms | (-.f64 #s(literal 1 binary64) (*.f64 x x)) |
| Accuracy | Segments | Branch |
|---|---|---|
| 99.8% | 1 | x |
| 99.8% | 1 | (sqrt.f64 (-.f64 #s(literal 1 binary64) (*.f64 x x))) |
| 99.8% | 1 | (-.f64 #s(literal 1 binary64) (*.f64 x x)) |
| 99.8% | 1 | (*.f64 x x) |
Compiled 15 to 12 computations (20% saved)
Total 0.0b remaining (0%)
Threshold costs 0b (0%)
| Inputs |
|---|
#s(approx (sqrt (- 1 (* x x))) #s(literal 1 binary64)) |
| Outputs |
|---|
#s(approx (sqrt (- 1 (* x x))) #s(literal 1 binary64)) |
4 calls:
| 1.0ms | x |
| 1.0ms | (*.f64 x x) |
| 1.0ms | (-.f64 #s(literal 1 binary64) (*.f64 x x)) |
| 1.0ms | (sqrt.f64 (-.f64 #s(literal 1 binary64) (*.f64 x x))) |
| Accuracy | Segments | Branch |
|---|---|---|
| 99.7% | 1 | x |
| 99.7% | 1 | (sqrt.f64 (-.f64 #s(literal 1 binary64) (*.f64 x x))) |
| 99.7% | 1 | (-.f64 #s(literal 1 binary64) (*.f64 x x)) |
| 99.7% | 1 | (*.f64 x x) |
Compiled 15 to 12 computations (20% saved)
| 1× | egg-herbie |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 12 | 27 |
| 1 | 20 | 27 |
| 2 | 27 | 27 |
| 3 | 31 | 27 |
| 4 | 33 | 27 |
| 1× | saturated |
| Inputs |
|---|
(sqrt.f64 (-.f64 #s(literal 1 binary64) (*.f64 x x))) |
#s(approx (sqrt (- 1 (* x x))) (fma.f64 (*.f64 x x) #s(literal -1/2 binary64) #s(literal 1 binary64))) |
#s(approx (sqrt (- 1 (* x x))) #s(literal 1 binary64)) |
| Outputs |
|---|
(sqrt.f64 (-.f64 #s(literal 1 binary64) (*.f64 x x))) |
#s(approx (sqrt (- 1 (* x x))) (fma.f64 (*.f64 x x) #s(literal -1/2 binary64) #s(literal 1 binary64))) |
#s(approx (sqrt (- 1 (* x x))) #s(literal 1 binary64)) |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 62 | 295 |
| 1 | 149 | 286 |
| 2 | 419 | 278 |
| 3 | 1279 | 264 |
| 4 | 3834 | 263 |
| 5 | 6189 | 263 |
| 0 | 8174 | 252 |
| 1× | done |
| 1× | iter limit |
| 1× | node limit |
Compiled 34 to 20 computations (41.2% saved)
(abs x)
Compiled 90 to 56 computations (37.8% saved)
Loading profile data...