
Time bar (total: 1.1s)
| 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 |
| 50% | 50% | 50% | 0% | 0% | 0% | 0% | 2 |
| 66.7% | 50% | 25% | 0% | 0% | 25% | 0% | 3 |
| 80% | 50% | 12.5% | 0% | 0% | 37.5% | 0% | 4 |
| 88.9% | 50% | 6.2% | 0% | 0% | 43.7% | 0% | 5 |
| 94.1% | 50% | 3.1% | 0% | 0% | 46.9% | 0% | 6 |
| 97% | 50% | 1.6% | 0% | 0% | 48.4% | 0% | 7 |
| 98.5% | 50% | 0.8% | 0% | 0% | 49.2% | 0% | 8 |
| 99.2% | 50% | 0.4% | 0% | 0% | 49.6% | 0% | 9 |
| 99.6% | 50% | 0.2% | 0% | 0% | 49.8% | 0% | 10 |
| 99.8% | 50% | 0.1% | 0% | 0% | 49.9% | 0% | 11 |
| 99.9% | 50% | 0% | 0% | 0% | 49.9% | 0% | 12 |
Compiled 9 to 8 computations (11.1% saved)
| 383.0ms | 3 986× | 1 | valid |
| 197.0ms | 4 270× | 0 | valid |
| 0.0ms | 8× | 0 | invalid |
ival-sqrt: 163.0ms (40.9% of total)ival-add: 86.0ms (21.6% of total)adjust: 75.0ms (18.8% of total)ival-sub: 63.0ms (15.8% of total)ival-true: 5.0ms (1.3% of total)exact: 4.0ms (1% of total)ival-assert: 3.0ms (0.8% of total)| Ground Truth | Overpredictions | Example | Underpredictions | Example | Subexpression |
|---|---|---|---|---|---|
| 130 | 0 | - | 1 | (15.559854898977248) | (-.f64 (sqrt.f64 (+.f64 x #s(literal 1 binary64))) (sqrt.f64 x)) |
| 0 | 0 | - | 0 | - | (+.f64 x #s(literal 1 binary64)) |
| 0 | 0 | - | 0 | - | (sqrt.f64 x) |
| 0 | 0 | - | 0 | - | #s(literal 1 binary64) |
| 0 | 0 | - | 0 | - | (sqrt.f64 (+.f64 x #s(literal 1 binary64))) |
| 0 | 0 | - | 0 | - | x |
| Operator | Subexpression | Explanation | Count | |
|---|---|---|---|---|
-.f64 | (-.f64 (sqrt.f64 (+.f64 x #s(literal 1 binary64))) (sqrt.f64 x)) | cancellation | 129 | 1 |
| Predicted + | Predicted - | |
|---|---|---|
| + | 129 | 1 |
| - | 0 | 126 |
| Predicted + | Predicted Maybe | Predicted - | |
|---|---|---|---|
| + | 129 | 1 | 0 |
| - | 0 | 0 | 126 |
| number | freq |
|---|---|
| 0 | 127 |
| 1 | 129 |
| Predicted + | Predicted Maybe | Predicted - | |
|---|---|---|---|
| + | 1 | 0 | 0 |
| - | 0 | 0 | 0 |
| 28.0ms | 248× | 1 | valid |
| 20.0ms | 264× | 0 | valid |
Compiled 65 to 28 computations (56.9% saved)
ival-sqrt: 10.0ms (43.8% of total)adjust: 4.0ms (17.5% of total)ival-add: 4.0ms (17.5% of total)ival-sub: 3.0ms (13.1% of total)ival-assert: 0.0ms (0% of total)ival-true: 0.0ms (0% of total)exact: 0.0ms (0% of total)| 1× | egg-herbie |
| Inputs |
|---|
(-.f64 (sqrt.f64 (+.f64 x #s(literal 1 binary64))) (sqrt.f64 x)) |
| Outputs |
|---|
(-.f64 (sqrt.f64 (+.f64 x #s(literal 1 binary64))) (sqrt.f64 x)) |
Compiled 7 to 6 computations (14.3% saved)
Compiled 0 to 1 computations (-∞% saved)
| Status | Accuracy | Program |
|---|---|---|
| ▶ | 53.0% | (-.f64 (sqrt.f64 (+.f64 x #s(literal 1 binary64))) (sqrt.f64 x)) |
Compiled 7 to 6 computations (14.3% saved)
| 1× | egg-herbie |
Found 4 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| cost-diff | 0 | (sqrt.f64 x) | |
| cost-diff | 0 | (+.f64 x #s(literal 1 binary64)) | |
| cost-diff | 0 | (sqrt.f64 (+.f64 x #s(literal 1 binary64))) | |
| cost-diff | 0 | (-.f64 (sqrt.f64 (+.f64 x #s(literal 1 binary64))) (sqrt.f64 x)) |
| Inputs |
|---|
(-.f64 (sqrt.f64 (+.f64 x #s(literal 1 binary64))) (sqrt.f64 x)) |
(sqrt.f64 (+.f64 x #s(literal 1 binary64))) |
(+.f64 x #s(literal 1 binary64)) |
x |
#s(literal 1 binary64) |
(sqrt.f64 x) |
| Outputs |
|---|
(-.f64 (sqrt.f64 (+.f64 x #s(literal 1 binary64))) (sqrt.f64 x)) |
(sqrt.f64 (+.f64 x #s(literal 1 binary64))) |
(+.f64 x #s(literal 1 binary64)) |
x |
#s(literal 1 binary64) |
(sqrt.f64 x) |
Found 4 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| accuracy | 0.0 | (+.f64 x #s(literal 1 binary64)) | |
| accuracy | 0.0 | (sqrt.f64 x) | |
| accuracy | 0.0078125 | (sqrt.f64 (+.f64 x #s(literal 1 binary64))) | |
| accuracy | 30.0992022822747 | (-.f64 (sqrt.f64 (+.f64 x #s(literal 1 binary64))) (sqrt.f64 x)) |
| 12.0ms | 124× | 1 | valid |
| 6.0ms | 132× | 0 | valid |
Compiled 38 to 14 computations (63.2% saved)
ival-sqrt: 5.0ms (44.1% of total)adjust: 2.0ms (17.7% of total)ival-add: 2.0ms (17.7% of total)ival-sub: 2.0ms (17.7% of total)ival-assert: 0.0ms (0% of total)ival-true: 0.0ms (0% of total)exact: 0.0ms (0% of total)| Inputs |
|---|
(-.f64 (sqrt.f64 (+.f64 x #s(literal 1 binary64))) (sqrt.f64 x)) |
(sqrt.f64 (+.f64 x #s(literal 1 binary64))) |
(+.f64 x #s(literal 1 binary64)) |
(sqrt.f64 x) |
| Outputs |
|---|
(- 1 (sqrt x)) |
(- (+ 1 (* 1/2 x)) (sqrt x)) |
(- (+ 1 (* x (+ 1/2 (* -1/8 x)))) (sqrt x)) |
(- (+ 1 (* x (+ 1/2 (* x (- (* 1/16 x) 1/8))))) (sqrt x)) |
1 |
(+ 1 (* 1/2 x)) |
(+ 1 (* x (+ 1/2 (* -1/8 x)))) |
(+ 1 (* x (+ 1/2 (* x (- (* 1/16 x) 1/8))))) |
(+ 1 x) |
(sqrt x) |
(* 1/2 (sqrt (/ 1 x))) |
(/ (+ (* -1/8 (sqrt (/ 1 x))) (* 1/2 (sqrt x))) x) |
(/ (+ (* -1/8 (sqrt (/ 1 x))) (+ (* 1/16 (sqrt (/ 1 (pow x 3)))) (* 1/2 (sqrt x)))) x) |
(/ (+ (* -1/8 (sqrt (/ 1 x))) (+ (* -5/128 (sqrt (/ 1 (pow x 5)))) (+ (* 1/16 (sqrt (/ 1 (pow x 3)))) (* 1/2 (sqrt x))))) x) |
(* x (+ (sqrt (/ 1 x)) (* 1/2 (sqrt (/ 1 (pow x 3)))))) |
(* x (+ (sqrt (/ 1 x)) (+ (* -1/8 (sqrt (/ 1 (pow x 5)))) (* 1/2 (sqrt (/ 1 (pow x 3))))))) |
(* x (+ (sqrt (/ 1 x)) (+ (* -1/8 (sqrt (/ 1 (pow x 5)))) (+ (* 1/16 (sqrt (/ 1 (pow x 7)))) (* 1/2 (sqrt (/ 1 (pow x 3)))))))) |
x |
(* x (+ 1 (/ 1 x))) |
(* -1/2 (sqrt (/ 1 x))) |
(* -1 (/ (+ (* -1/8 (* (sqrt (/ 1 x)) (/ 1 (pow (sqrt -1) 2)))) (* 1/2 (sqrt x))) x)) |
(* -1 (/ (+ (* -1/8 (* (sqrt (/ 1 x)) (/ 1 (pow (sqrt -1) 2)))) (+ (* 1/16 (* (sqrt (/ 1 (pow x 3))) (/ 1 (pow (sqrt -1) 4)))) (* 1/2 (sqrt x)))) x)) |
(* -1 (/ (+ (* -1/8 (* (sqrt (/ 1 x)) (/ 1 (pow (sqrt -1) 2)))) (+ (* -5/128 (* (sqrt (/ 1 (pow x 5))) (/ 1 (pow (sqrt -1) 6)))) (+ (* 1/16 (* (sqrt (/ 1 (pow x 3))) (/ 1 (pow (sqrt -1) 4)))) (* 1/2 (sqrt x))))) x)) |
(* -1 (* (sqrt x) (pow (sqrt -1) 2))) |
(* -1 (* x (+ (* 1/2 (sqrt (/ 1 (pow x 3)))) (* (sqrt (/ 1 x)) (pow (sqrt -1) 2))))) |
(* -1 (* x (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (/ 1 (pow (sqrt -1) 2)))) (+ (* 1/2 (sqrt (/ 1 (pow x 3)))) (* (sqrt (/ 1 x)) (pow (sqrt -1) 2)))))) |
(* -1 (* x (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (/ 1 (pow (sqrt -1) 2)))) (+ (* 1/16 (* (sqrt (/ 1 (pow x 7))) (/ 1 (pow (sqrt -1) 4)))) (+ (* 1/2 (sqrt (/ 1 (pow x 3)))) (* (sqrt (/ 1 x)) (pow (sqrt -1) 2))))))) |
3 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 4.0ms | x | @ | -inf | ((- (sqrt (+ x 1)) (sqrt x)) (sqrt (+ x 1)) (+ x 1) (sqrt x)) |
| 3.0ms | x | @ | inf | ((- (sqrt (+ x 1)) (sqrt x)) (sqrt (+ x 1)) (+ x 1) (sqrt x)) |
| 1.0ms | x | @ | 0 | ((- (sqrt (+ x 1)) (sqrt x)) (sqrt (+ x 1)) (+ x 1) (sqrt x)) |
| 1× | egg-herbie |
| Inputs |
|---|
(- 1 (sqrt x)) |
(- (+ 1 (* 1/2 x)) (sqrt x)) |
(- (+ 1 (* x (+ 1/2 (* -1/8 x)))) (sqrt x)) |
(- (+ 1 (* x (+ 1/2 (* x (- (* 1/16 x) 1/8))))) (sqrt x)) |
1 |
(+ 1 (* 1/2 x)) |
(+ 1 (* x (+ 1/2 (* -1/8 x)))) |
(+ 1 (* x (+ 1/2 (* x (- (* 1/16 x) 1/8))))) |
(+ 1 x) |
(sqrt x) |
(* 1/2 (sqrt (/ 1 x))) |
(/ (+ (* -1/8 (sqrt (/ 1 x))) (* 1/2 (sqrt x))) x) |
(/ (+ (* -1/8 (sqrt (/ 1 x))) (+ (* 1/16 (sqrt (/ 1 (pow x 3)))) (* 1/2 (sqrt x)))) x) |
(/ (+ (* -1/8 (sqrt (/ 1 x))) (+ (* -5/128 (sqrt (/ 1 (pow x 5)))) (+ (* 1/16 (sqrt (/ 1 (pow x 3)))) (* 1/2 (sqrt x))))) x) |
(* x (+ (sqrt (/ 1 x)) (* 1/2 (sqrt (/ 1 (pow x 3)))))) |
(* x (+ (sqrt (/ 1 x)) (+ (* -1/8 (sqrt (/ 1 (pow x 5)))) (* 1/2 (sqrt (/ 1 (pow x 3))))))) |
(* x (+ (sqrt (/ 1 x)) (+ (* -1/8 (sqrt (/ 1 (pow x 5)))) (+ (* 1/16 (sqrt (/ 1 (pow x 7)))) (* 1/2 (sqrt (/ 1 (pow x 3)))))))) |
x |
(* x (+ 1 (/ 1 x))) |
(* -1/2 (sqrt (/ 1 x))) |
(* -1 (/ (+ (* -1/8 (* (sqrt (/ 1 x)) (/ 1 (pow (sqrt -1) 2)))) (* 1/2 (sqrt x))) x)) |
(* -1 (/ (+ (* -1/8 (* (sqrt (/ 1 x)) (/ 1 (pow (sqrt -1) 2)))) (+ (* 1/16 (* (sqrt (/ 1 (pow x 3))) (/ 1 (pow (sqrt -1) 4)))) (* 1/2 (sqrt x)))) x)) |
(* -1 (/ (+ (* -1/8 (* (sqrt (/ 1 x)) (/ 1 (pow (sqrt -1) 2)))) (+ (* -5/128 (* (sqrt (/ 1 (pow x 5))) (/ 1 (pow (sqrt -1) 6)))) (+ (* 1/16 (* (sqrt (/ 1 (pow x 3))) (/ 1 (pow (sqrt -1) 4)))) (* 1/2 (sqrt x))))) x)) |
(* -1 (* (sqrt x) (pow (sqrt -1) 2))) |
(* -1 (* x (+ (* 1/2 (sqrt (/ 1 (pow x 3)))) (* (sqrt (/ 1 x)) (pow (sqrt -1) 2))))) |
(* -1 (* x (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (/ 1 (pow (sqrt -1) 2)))) (+ (* 1/2 (sqrt (/ 1 (pow x 3)))) (* (sqrt (/ 1 x)) (pow (sqrt -1) 2)))))) |
(* -1 (* x (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (/ 1 (pow (sqrt -1) 2)))) (+ (* 1/16 (* (sqrt (/ 1 (pow x 7))) (/ 1 (pow (sqrt -1) 4)))) (+ (* 1/2 (sqrt (/ 1 (pow x 3)))) (* (sqrt (/ 1 x)) (pow (sqrt -1) 2))))))) |
| Outputs |
|---|
(- 1 (sqrt x)) |
(-.f64 (sqrt.f64 (+.f64 x #s(literal 1 binary64))) (sqrt.f64 x)) |
(- (+ 1 (* 1/2 x)) (sqrt x)) |
(sqrt.f64 (+.f64 x #s(literal 1 binary64))) |
(- (+ 1 (* x (+ 1/2 (* -1/8 x)))) (sqrt x)) |
(+.f64 x #s(literal 1 binary64)) |
(- (+ 1 (* x (+ 1/2 (* x (- (* 1/16 x) 1/8))))) (sqrt x)) |
(sqrt.f64 x) |
| Inputs |
|---|
(-.f64 (sqrt.f64 (+.f64 x #s(literal 1 binary64))) (sqrt.f64 x)) |
(sqrt.f64 (+.f64 x #s(literal 1 binary64))) |
(+.f64 x #s(literal 1 binary64)) |
(sqrt.f64 x) |
| Outputs |
|---|
(-.f64 (sqrt.f64 (+.f64 x #s(literal 1 binary64))) (sqrt.f64 x)) |
(sqrt.f64 (+.f64 x #s(literal 1 binary64))) |
(+.f64 x #s(literal 1 binary64)) |
(sqrt.f64 x) |
Compiled 76 to 15 computations (80.3% saved)
4 alts after pruning (3 fresh and 1 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 5 | 3 | 8 |
| Fresh | 0 | 0 | 0 |
| Picked | 0 | 1 | 1 |
| Done | 0 | 0 | 0 |
| Total | 5 | 4 | 9 |
| Status | Accuracy | Program |
|---|---|---|
| ✓ | 53.0% | (-.f64 (sqrt.f64 (+.f64 x #s(literal 1 binary64))) (sqrt.f64 x)) |
| ▶ | 48.6% | #s(approx (- (sqrt (+ x 1)) (sqrt x)) (+.f64 x #s(literal 1 binary64))) |
| ▶ | 49.1% | #s(approx (- (sqrt (+ x 1)) (sqrt x)) (sqrt.f64 (+.f64 x #s(literal 1 binary64)))) |
| ▶ | 6.3% | #s(approx (- (sqrt (+ x 1)) (sqrt x)) (sqrt.f64 x)) |
Compiled 40 to 33 computations (17.5% saved)
| 1× | egg-herbie |
Found 7 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| cost-diff | 0 | (+.f64 x #s(literal 1 binary64)) | |
| cost-diff | 0 | #s(approx (- (sqrt (+ x 1)) (sqrt x)) (+.f64 x #s(literal 1 binary64))) | |
| cost-diff | 0 | (+.f64 x #s(literal 1 binary64)) | |
| cost-diff | 0 | (sqrt.f64 (+.f64 x #s(literal 1 binary64))) | |
| cost-diff | 0 | #s(approx (- (sqrt (+ x 1)) (sqrt x)) (sqrt.f64 (+.f64 x #s(literal 1 binary64)))) | |
| cost-diff | 0 | (sqrt.f64 x) | |
| cost-diff | 0 | #s(approx (- (sqrt (+ x 1)) (sqrt x)) (sqrt.f64 x)) |
| Inputs |
|---|
#s(approx (- (sqrt (+ x 1)) (sqrt x)) (sqrt.f64 x)) |
(sqrt.f64 x) |
x |
#s(approx (- (sqrt (+ x 1)) (sqrt x)) (sqrt.f64 (+.f64 x #s(literal 1 binary64)))) |
(sqrt.f64 (+.f64 x #s(literal 1 binary64))) |
(+.f64 x #s(literal 1 binary64)) |
x |
#s(literal 1 binary64) |
#s(approx (- (sqrt (+ x 1)) (sqrt x)) (+.f64 x #s(literal 1 binary64))) |
(+.f64 x #s(literal 1 binary64)) |
x |
#s(literal 1 binary64) |
| Outputs |
|---|
#s(approx (- (sqrt (+ x 1)) (sqrt x)) (sqrt.f64 x)) |
(sqrt.f64 x) |
x |
#s(approx (- (sqrt (+ x 1)) (sqrt x)) (sqrt.f64 (+.f64 x #s(literal 1 binary64)))) |
(sqrt.f64 (+.f64 x #s(literal 1 binary64))) |
(+.f64 x #s(literal 1 binary64)) |
x |
#s(literal 1 binary64) |
#s(approx (- (sqrt (+ x 1)) (sqrt x)) (+.f64 x #s(literal 1 binary64))) |
(+.f64 x #s(literal 1 binary64)) |
x |
#s(literal 1 binary64) |
Found 7 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| accuracy | 0.0 | (+.f64 x #s(literal 1 binary64)) | |
| accuracy | 32.89101360041371 | #s(approx (- (sqrt (+ x 1)) (sqrt x)) (+.f64 x #s(literal 1 binary64))) | |
| accuracy | 0.0 | (+.f64 x #s(literal 1 binary64)) | |
| accuracy | 0.0078125 | (sqrt.f64 (+.f64 x #s(literal 1 binary64))) | |
| accuracy | 32.59351431729169 | #s(approx (- (sqrt (+ x 1)) (sqrt x)) (sqrt.f64 (+.f64 x #s(literal 1 binary64)))) | |
| accuracy | 0.0 | (sqrt.f64 x) | |
| accuracy | 59.95493128951413 | #s(approx (- (sqrt (+ x 1)) (sqrt x)) (sqrt.f64 x)) |
| 24.0ms | 124× | 1 | valid |
| 16.0ms | 132× | 0 | valid |
Compiled 90 to 21 computations (76.7% saved)
ival-sqrt: 13.0ms (46% of total)ival-add: 10.0ms (35.4% of total)adjust: 3.0ms (10.6% of total)ival-sub: 2.0ms (7.1% of total)ival-assert: 0.0ms (0% of total)ival-true: 0.0ms (0% of total)exact: 0.0ms (0% of total)| Inputs |
|---|
#s(approx (- (sqrt (+ x 1)) (sqrt x)) (sqrt.f64 x)) |
(sqrt.f64 x) |
#s(approx (- (sqrt (+ x 1)) (sqrt x)) (sqrt.f64 (+.f64 x #s(literal 1 binary64)))) |
(sqrt.f64 (+.f64 x #s(literal 1 binary64))) |
(+.f64 x #s(literal 1 binary64)) |
#s(approx (- (sqrt (+ x 1)) (sqrt x)) (+.f64 x #s(literal 1 binary64))) |
| Outputs |
|---|
(- 1 (sqrt x)) |
(- (+ 1 (* 1/2 x)) (sqrt x)) |
(- (+ 1 (* x (+ 1/2 (* -1/8 x)))) (sqrt x)) |
(- (+ 1 (* x (+ 1/2 (* x (- (* 1/16 x) 1/8))))) (sqrt x)) |
(sqrt x) |
1 |
(+ 1 (* 1/2 x)) |
(+ 1 (* x (+ 1/2 (* -1/8 x)))) |
(+ 1 (* x (+ 1/2 (* x (- (* 1/16 x) 1/8))))) |
(+ 1 x) |
(* 1/2 (sqrt (/ 1 x))) |
(/ (+ (* -1/8 (sqrt (/ 1 x))) (* 1/2 (sqrt x))) x) |
(/ (+ (* -1/8 (sqrt (/ 1 x))) (+ (* 1/16 (sqrt (/ 1 (pow x 3)))) (* 1/2 (sqrt x)))) x) |
(/ (+ (* -1/8 (sqrt (/ 1 x))) (+ (* -5/128 (sqrt (/ 1 (pow x 5)))) (+ (* 1/16 (sqrt (/ 1 (pow x 3)))) (* 1/2 (sqrt x))))) x) |
(* x (+ (sqrt (/ 1 x)) (* 1/2 (sqrt (/ 1 (pow x 3)))))) |
(* x (+ (sqrt (/ 1 x)) (+ (* -1/8 (sqrt (/ 1 (pow x 5)))) (* 1/2 (sqrt (/ 1 (pow x 3))))))) |
(* x (+ (sqrt (/ 1 x)) (+ (* -1/8 (sqrt (/ 1 (pow x 5)))) (+ (* 1/16 (sqrt (/ 1 (pow x 7)))) (* 1/2 (sqrt (/ 1 (pow x 3)))))))) |
x |
(* x (+ 1 (/ 1 x))) |
(* -1/2 (sqrt (/ 1 x))) |
(* -1 (/ (+ (* -1/8 (* (sqrt (/ 1 x)) (/ 1 (pow (sqrt -1) 2)))) (* 1/2 (sqrt x))) x)) |
(* -1 (/ (+ (* -1/8 (* (sqrt (/ 1 x)) (/ 1 (pow (sqrt -1) 2)))) (+ (* 1/16 (* (sqrt (/ 1 (pow x 3))) (/ 1 (pow (sqrt -1) 4)))) (* 1/2 (sqrt x)))) x)) |
(* -1 (/ (+ (* -1/8 (* (sqrt (/ 1 x)) (/ 1 (pow (sqrt -1) 2)))) (+ (* -5/128 (* (sqrt (/ 1 (pow x 5))) (/ 1 (pow (sqrt -1) 6)))) (+ (* 1/16 (* (sqrt (/ 1 (pow x 3))) (/ 1 (pow (sqrt -1) 4)))) (* 1/2 (sqrt x))))) x)) |
(* -1 (* (sqrt x) (pow (sqrt -1) 2))) |
(* -1 (* x (+ (* 1/2 (sqrt (/ 1 (pow x 3)))) (* (sqrt (/ 1 x)) (pow (sqrt -1) 2))))) |
(* -1 (* x (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (/ 1 (pow (sqrt -1) 2)))) (+ (* 1/2 (sqrt (/ 1 (pow x 3)))) (* (sqrt (/ 1 x)) (pow (sqrt -1) 2)))))) |
(* -1 (* x (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (/ 1 (pow (sqrt -1) 2)))) (+ (* 1/16 (* (sqrt (/ 1 (pow x 7))) (/ 1 (pow (sqrt -1) 4)))) (+ (* 1/2 (sqrt (/ 1 (pow x 3)))) (* (sqrt (/ 1 x)) (pow (sqrt -1) 2))))))) |
3 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 1.0ms | x | @ | -inf | ((- (sqrt (+ x 1)) (sqrt x)) (sqrt x) (- (sqrt (+ x 1)) (sqrt x)) (sqrt (+ x 1)) (+ x 1) (- (sqrt (+ x 1)) (sqrt x))) |
| 0.0ms | x | @ | inf | ((- (sqrt (+ x 1)) (sqrt x)) (sqrt x) (- (sqrt (+ x 1)) (sqrt x)) (sqrt (+ x 1)) (+ x 1) (- (sqrt (+ x 1)) (sqrt x))) |
| 0.0ms | x | @ | 0 | ((- (sqrt (+ x 1)) (sqrt x)) (sqrt x) (- (sqrt (+ x 1)) (sqrt x)) (sqrt (+ x 1)) (+ x 1) (- (sqrt (+ x 1)) (sqrt x))) |
| 1× | egg-herbie |
| Inputs |
|---|
(- 1 (sqrt x)) |
(- (+ 1 (* 1/2 x)) (sqrt x)) |
(- (+ 1 (* x (+ 1/2 (* -1/8 x)))) (sqrt x)) |
(- (+ 1 (* x (+ 1/2 (* x (- (* 1/16 x) 1/8))))) (sqrt x)) |
(sqrt x) |
1 |
(+ 1 (* 1/2 x)) |
(+ 1 (* x (+ 1/2 (* -1/8 x)))) |
(+ 1 (* x (+ 1/2 (* x (- (* 1/16 x) 1/8))))) |
(+ 1 x) |
(* 1/2 (sqrt (/ 1 x))) |
(/ (+ (* -1/8 (sqrt (/ 1 x))) (* 1/2 (sqrt x))) x) |
(/ (+ (* -1/8 (sqrt (/ 1 x))) (+ (* 1/16 (sqrt (/ 1 (pow x 3)))) (* 1/2 (sqrt x)))) x) |
(/ (+ (* -1/8 (sqrt (/ 1 x))) (+ (* -5/128 (sqrt (/ 1 (pow x 5)))) (+ (* 1/16 (sqrt (/ 1 (pow x 3)))) (* 1/2 (sqrt x))))) x) |
(* x (+ (sqrt (/ 1 x)) (* 1/2 (sqrt (/ 1 (pow x 3)))))) |
(* x (+ (sqrt (/ 1 x)) (+ (* -1/8 (sqrt (/ 1 (pow x 5)))) (* 1/2 (sqrt (/ 1 (pow x 3))))))) |
(* x (+ (sqrt (/ 1 x)) (+ (* -1/8 (sqrt (/ 1 (pow x 5)))) (+ (* 1/16 (sqrt (/ 1 (pow x 7)))) (* 1/2 (sqrt (/ 1 (pow x 3)))))))) |
x |
(* x (+ 1 (/ 1 x))) |
(* -1/2 (sqrt (/ 1 x))) |
(* -1 (/ (+ (* -1/8 (* (sqrt (/ 1 x)) (/ 1 (pow (sqrt -1) 2)))) (* 1/2 (sqrt x))) x)) |
(* -1 (/ (+ (* -1/8 (* (sqrt (/ 1 x)) (/ 1 (pow (sqrt -1) 2)))) (+ (* 1/16 (* (sqrt (/ 1 (pow x 3))) (/ 1 (pow (sqrt -1) 4)))) (* 1/2 (sqrt x)))) x)) |
(* -1 (/ (+ (* -1/8 (* (sqrt (/ 1 x)) (/ 1 (pow (sqrt -1) 2)))) (+ (* -5/128 (* (sqrt (/ 1 (pow x 5))) (/ 1 (pow (sqrt -1) 6)))) (+ (* 1/16 (* (sqrt (/ 1 (pow x 3))) (/ 1 (pow (sqrt -1) 4)))) (* 1/2 (sqrt x))))) x)) |
(* -1 (* (sqrt x) (pow (sqrt -1) 2))) |
(* -1 (* x (+ (* 1/2 (sqrt (/ 1 (pow x 3)))) (* (sqrt (/ 1 x)) (pow (sqrt -1) 2))))) |
(* -1 (* x (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (/ 1 (pow (sqrt -1) 2)))) (+ (* 1/2 (sqrt (/ 1 (pow x 3)))) (* (sqrt (/ 1 x)) (pow (sqrt -1) 2)))))) |
(* -1 (* x (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (/ 1 (pow (sqrt -1) 2)))) (+ (* 1/16 (* (sqrt (/ 1 (pow x 7))) (/ 1 (pow (sqrt -1) 4)))) (+ (* 1/2 (sqrt (/ 1 (pow x 3)))) (* (sqrt (/ 1 x)) (pow (sqrt -1) 2))))))) |
| Outputs |
|---|
(- 1 (sqrt x)) |
#s(approx (- (sqrt (+ x 1)) (sqrt x)) (sqrt.f64 x)) |
(- (+ 1 (* 1/2 x)) (sqrt x)) |
(sqrt.f64 x) |
(- (+ 1 (* x (+ 1/2 (* -1/8 x)))) (sqrt x)) |
#s(approx (- (sqrt (+ x 1)) (sqrt x)) (sqrt.f64 (+.f64 x #s(literal 1 binary64)))) |
(- (+ 1 (* x (+ 1/2 (* x (- (* 1/16 x) 1/8))))) (sqrt x)) |
(sqrt.f64 (+.f64 x #s(literal 1 binary64))) |
(sqrt x) |
(+.f64 x #s(literal 1 binary64)) |
1 |
#s(approx (- (sqrt (+ x 1)) (sqrt x)) (+.f64 x #s(literal 1 binary64))) |
| Inputs |
|---|
#s(approx (- (sqrt (+ x 1)) (sqrt x)) (sqrt.f64 x)) |
(sqrt.f64 x) |
#s(approx (- (sqrt (+ x 1)) (sqrt x)) (sqrt.f64 (+.f64 x #s(literal 1 binary64)))) |
(sqrt.f64 (+.f64 x #s(literal 1 binary64))) |
(+.f64 x #s(literal 1 binary64)) |
#s(approx (- (sqrt (+ x 1)) (sqrt x)) (+.f64 x #s(literal 1 binary64))) |
| Outputs |
|---|
#s(approx (- (sqrt (+ x 1)) (sqrt x)) (sqrt.f64 x)) |
(sqrt.f64 x) |
#s(approx (- (sqrt (+ x 1)) (sqrt x)) (sqrt.f64 (+.f64 x #s(literal 1 binary64)))) |
(sqrt.f64 (+.f64 x #s(literal 1 binary64))) |
(+.f64 x #s(literal 1 binary64)) |
#s(approx (- (sqrt (+ x 1)) (sqrt x)) (+.f64 x #s(literal 1 binary64))) |
Compiled 154 to 19 computations (87.7% saved)
4 alts after pruning (0 fresh and 4 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 11 | 0 | 11 |
| Fresh | 0 | 0 | 0 |
| Picked | 0 | 3 | 3 |
| Done | 0 | 1 | 1 |
| Total | 11 | 4 | 15 |
| Status | Accuracy | Program |
|---|---|---|
| ✓ | 53.0% | (-.f64 (sqrt.f64 (+.f64 x #s(literal 1 binary64))) (sqrt.f64 x)) |
| ✓ | 48.6% | #s(approx (- (sqrt (+ x 1)) (sqrt x)) (+.f64 x #s(literal 1 binary64))) |
| ✓ | 49.1% | #s(approx (- (sqrt (+ x 1)) (sqrt x)) (sqrt.f64 (+.f64 x #s(literal 1 binary64)))) |
| ✓ | 6.3% | #s(approx (- (sqrt (+ x 1)) (sqrt x)) (sqrt.f64 x)) |
Compiled 80 to 47 computations (41.3% saved)
| Inputs |
|---|
#s(approx (- (sqrt (+ x 1)) (sqrt x)) (+.f64 x #s(literal 1 binary64))) |
#s(approx (- (sqrt (+ x 1)) (sqrt x)) (sqrt.f64 x)) |
#s(approx (- (sqrt (+ x 1)) (sqrt x)) (sqrt.f64 (+.f64 x #s(literal 1 binary64)))) |
(-.f64 (sqrt.f64 (+.f64 x #s(literal 1 binary64))) (sqrt.f64 x)) |
| Outputs |
|---|
(-.f64 (sqrt.f64 (+.f64 x #s(literal 1 binary64))) (sqrt.f64 x)) |
2 calls:
| 2.0ms | x |
| 2.0ms | (-.f64 (sqrt.f64 (+.f64 x #s(literal 1 binary64))) (sqrt.f64 x)) |
| Accuracy | Segments | Branch |
|---|---|---|
| 53.0% | 1 | x |
| 53.0% | 1 | (-.f64 (sqrt.f64 (+.f64 x #s(literal 1 binary64))) (sqrt.f64 x)) |
Compiled 8 to 7 computations (12.5% saved)
| Inputs |
|---|
#s(approx (- (sqrt (+ x 1)) (sqrt x)) (+.f64 x #s(literal 1 binary64))) |
#s(approx (- (sqrt (+ x 1)) (sqrt x)) (sqrt.f64 x)) |
#s(approx (- (sqrt (+ x 1)) (sqrt x)) (sqrt.f64 (+.f64 x #s(literal 1 binary64)))) |
| Outputs |
|---|
#s(approx (- (sqrt (+ x 1)) (sqrt x)) (sqrt.f64 (+.f64 x #s(literal 1 binary64)))) |
2 calls:
| 2.0ms | x |
| 1.0ms | (-.f64 (sqrt.f64 (+.f64 x #s(literal 1 binary64))) (sqrt.f64 x)) |
| Accuracy | Segments | Branch |
|---|---|---|
| 49.1% | 1 | x |
| 49.1% | 1 | (-.f64 (sqrt.f64 (+.f64 x #s(literal 1 binary64))) (sqrt.f64 x)) |
Compiled 8 to 7 computations (12.5% saved)
Total -27.4b remaining (-83.2%)
Threshold costs -27.4b (-83.2%)
| Inputs |
|---|
#s(approx (- (sqrt (+ x 1)) (sqrt x)) (+.f64 x #s(literal 1 binary64))) |
#s(approx (- (sqrt (+ x 1)) (sqrt x)) (sqrt.f64 x)) |
| Outputs |
|---|
#s(approx (- (sqrt (+ x 1)) (sqrt x)) (+.f64 x #s(literal 1 binary64))) |
2 calls:
| 1.0ms | x |
| 1.0ms | (-.f64 (sqrt.f64 (+.f64 x #s(literal 1 binary64))) (sqrt.f64 x)) |
| Accuracy | Segments | Branch |
|---|---|---|
| 48.6% | 1 | (-.f64 (sqrt.f64 (+.f64 x #s(literal 1 binary64))) (sqrt.f64 x)) |
| 48.6% | 1 | x |
Compiled 8 to 7 computations (12.5% saved)
| 1× | egg-herbie |
| Inputs |
|---|
(-.f64 (sqrt.f64 (+.f64 x #s(literal 1 binary64))) (sqrt.f64 x)) |
#s(approx (- (sqrt (+ x 1)) (sqrt x)) (sqrt.f64 (+.f64 x #s(literal 1 binary64)))) |
#s(approx (- (sqrt (+ x 1)) (sqrt x)) (+.f64 x #s(literal 1 binary64))) |
| Outputs |
|---|
(-.f64 (sqrt.f64 (+.f64 x #s(literal 1 binary64))) (sqrt.f64 x)) |
#s(approx (- (sqrt (+ x 1)) (sqrt x)) (sqrt.f64 (+.f64 x #s(literal 1 binary64)))) |
#s(approx (- (sqrt (+ x 1)) (sqrt x)) (+.f64 x #s(literal 1 binary64))) |
| 1× | done |
Compiled 30 to 13 computations (56.7% saved)
Compiled 92 to 52 computations (43.5% saved)
Loading profile data...