
Time bar (total: 1.9s)
| 1× | search |
| Probability | Valid | Unknown | Precondition | Infinite | Domain | Can't | Iter |
|---|---|---|---|---|---|---|---|
| 0% | 0% | 50% | 50% | 0% | 0% | 0% | 0 |
| 100% | 50% | 0% | 50% | 0% | 0% | 0% | 1 |
Compiled 17 to 12 computations (29.4% saved)
| 586.0ms | 4 839× | 1 | valid |
| 578.0ms | 3 161× | 2 | valid |
| 13.0ms | 256× | 0 | valid |
ival-sqrt: 296.0ms (31.9% of total)adjust: 238.0ms (25.6% of total)ival-sub: 182.0ms (19.6% of total)ival-add: 141.0ms (15.2% of total)ival-<=: 48.0ms (5.2% of total)ival-and: 11.0ms (1.2% of total)exact: 10.0ms (1.1% of total)ival-assert: 3.0ms (0.3% of total)| Ground Truth | Overpredictions | Example | Underpredictions | Example | Subexpression |
|---|---|---|---|---|---|
| 255 | 0 | - | 0 | - | (-.f64 (sqrt.f64 (+.f64 #s(literal 1 binary64) x)) (sqrt.f64 (-.f64 #s(literal 1 binary64) x))) |
| 0 | 0 | - | 0 | - | (sqrt.f64 (+.f64 #s(literal 1 binary64) x)) |
| 0 | 0 | - | 0 | - | (+.f64 #s(literal 1 binary64) x) |
| 0 | 0 | - | 0 | - | (-.f64 #s(literal 1 binary64) x) |
| 0 | 0 | - | 0 | - | #s(literal 1 binary64) |
| 0 | 0 | - | 0 | - | (sqrt.f64 (-.f64 #s(literal 1 binary64) x)) |
| 0 | 0 | - | 0 | - | x |
| Operator | Subexpression | Explanation | Count | |
|---|---|---|---|---|
-.f64 | (-.f64 (sqrt.f64 (+.f64 #s(literal 1 binary64) x)) (sqrt.f64 (-.f64 #s(literal 1 binary64) x))) | cancellation | 255 | 0 |
| Predicted + | Predicted - | |
|---|---|---|
| + | 255 | 0 |
| - | 0 | 1 |
| Predicted + | Predicted Maybe | Predicted - | |
|---|---|---|---|
| + | 255 | 0 | 0 |
| - | 0 | 0 | 1 |
| number | freq |
|---|---|
| 0 | 1 |
| 1 | 255 |
| Predicted + | Predicted Maybe | Predicted - | |
|---|---|---|---|
| + | 1 | 0 | 0 |
| - | 0 | 0 | 0 |
| 39.0ms | 312× | 1 | valid |
| 36.0ms | 190× | 2 | valid |
| 1.0ms | 10× | 0 | valid |
Compiled 88 to 32 computations (63.6% saved)
ival-sqrt: 17.0ms (33.2% of total)adjust: 13.0ms (25.4% of total)ival-sub: 12.0ms (23.4% of total)ival-add: 8.0ms (15.6% 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 #s(literal 1 binary64) x)) (sqrt.f64 (-.f64 #s(literal 1 binary64) x))) |
| Outputs |
|---|
(-.f64 (sqrt.f64 (+.f64 #s(literal 1 binary64) x)) (sqrt.f64 (-.f64 #s(literal 1 binary64) x))) |
Compiled 9 to 7 computations (22.2% saved)
Compiled 0 to 1 computations (-∞% saved)
| Status | Accuracy | Program |
|---|---|---|
| ▶ | 7.1% | (-.f64 (sqrt.f64 (+.f64 #s(literal 1 binary64) x)) (sqrt.f64 (-.f64 #s(literal 1 binary64) x))) |
Compiled 9 to 7 computations (22.2% saved)
| 1× | egg-herbie |
Found 4 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| cost-diff | 0 | (sqrt.f64 (-.f64 #s(literal 1 binary64) x)) | |
| cost-diff | 0 | (+.f64 #s(literal 1 binary64) x) | |
| cost-diff | 0 | (sqrt.f64 (+.f64 #s(literal 1 binary64) x)) | |
| cost-diff | 0 | (-.f64 (sqrt.f64 (+.f64 #s(literal 1 binary64) x)) (sqrt.f64 (-.f64 #s(literal 1 binary64) x))) |
| Inputs |
|---|
(-.f64 (sqrt.f64 (+.f64 #s(literal 1 binary64) x)) (sqrt.f64 (-.f64 #s(literal 1 binary64) x))) |
(sqrt.f64 (+.f64 #s(literal 1 binary64) x)) |
(+.f64 #s(literal 1 binary64) x) |
#s(literal 1 binary64) |
x |
(sqrt.f64 (-.f64 #s(literal 1 binary64) x)) |
(-.f64 #s(literal 1 binary64) x) |
| Outputs |
|---|
(-.f64 (sqrt.f64 (+.f64 #s(literal 1 binary64) x)) (sqrt.f64 (-.f64 #s(literal 1 binary64) x))) |
(sqrt.f64 (+.f64 #s(literal 1 binary64) x)) |
(+.f64 #s(literal 1 binary64) x) |
#s(literal 1 binary64) |
x |
(sqrt.f64 (-.f64 #s(literal 1 binary64) x)) |
(-.f64 #s(literal 1 binary64) x) |
Found 4 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| accuracy | 0.0 | (+.f64 #s(literal 1 binary64) x) | |
| accuracy | 0.0 | (sqrt.f64 (+.f64 #s(literal 1 binary64) x)) | |
| accuracy | 0.00390625 | (sqrt.f64 (-.f64 #s(literal 1 binary64) x)) | |
| accuracy | 59.46320209457001 | (-.f64 (sqrt.f64 (+.f64 #s(literal 1 binary64) x)) (sqrt.f64 (-.f64 #s(literal 1 binary64) x))) |
| 33.0ms | 156× | 1 | valid |
| 21.0ms | 95× | 2 | valid |
| 0.0ms | 5× | 0 | valid |
Compiled 52 to 16 computations (69.2% saved)
ival-sub: 15.0ms (36.5% of total)ival-sqrt: 13.0ms (31.7% of total)adjust: 8.0ms (19.5% of total)ival-add: 4.0ms (9.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 #s(literal 1 binary64) x)) (sqrt.f64 (-.f64 #s(literal 1 binary64) x))) |
(sqrt.f64 (+.f64 #s(literal 1 binary64) x)) |
(+.f64 #s(literal 1 binary64) x) |
(sqrt.f64 (-.f64 #s(literal 1 binary64) x)) |
| Outputs |
|---|
x |
(* x (+ 1 (* 1/8 (pow x 2)))) |
(* x (+ 1 (* (pow x 2) (+ 1/8 (* 7/128 (pow x 2)))))) |
(* x (+ 1 (* (pow x 2) (+ 1/8 (* (pow x 2) (+ 7/128 (* 33/1024 (pow x 2)))))))) |
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 (* -1/2 x)) |
(+ 1 (* x (- (* -1/8 x) 1/2))) |
(+ 1 (* x (- (* x (- (* -1/16 x) 1/8)) 1/2))) |
(* x (- (sqrt (/ 1 x)) (* (sqrt (/ 1 x)) (sqrt -1)))) |
(* x (- (+ (sqrt (/ 1 x)) (* 1/2 (sqrt (/ 1 (pow x 3))))) (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) (/ 1 (sqrt -1)))) (* (sqrt (/ 1 x)) (sqrt -1))))) |
(* x (- (+ (sqrt (/ 1 x)) (+ (* -1/8 (sqrt (/ 1 (pow x 5)))) (* 1/2 (sqrt (/ 1 (pow x 3)))))) (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (/ 1 (pow (sqrt -1) 3)))) (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) (/ 1 (sqrt -1)))) (* (sqrt (/ 1 x)) (sqrt -1)))))) |
(* 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))))))) (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (/ 1 (pow (sqrt -1) 3)))) (+ (* 1/16 (* (sqrt (/ 1 (pow x 7))) (/ 1 (pow (sqrt -1) 5)))) (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) (/ 1 (sqrt -1)))) (* (sqrt (/ 1 x)) (sqrt -1))))))) |
(sqrt 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 (+ 1 (/ 1 x))) |
(* (sqrt x) (sqrt -1)) |
(* x (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) (/ 1 (sqrt -1)))) (* (sqrt (/ 1 x)) (sqrt -1)))) |
(* x (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (/ 1 (pow (sqrt -1) 3)))) (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) (/ 1 (sqrt -1)))) (* (sqrt (/ 1 x)) (sqrt -1))))) |
(* x (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (/ 1 (pow (sqrt -1) 3)))) (+ (* 1/16 (* (sqrt (/ 1 (pow x 7))) (/ 1 (pow (sqrt -1) 5)))) (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) (/ 1 (sqrt -1)))) (* (sqrt (/ 1 x)) (sqrt -1)))))) |
(* -1 (* x (- (* (sqrt (/ 1 x)) (pow (sqrt -1) 2)) (* (sqrt (/ 1 x)) (sqrt -1))))) |
(* -1 (* x (- (+ (* 1/2 (sqrt (/ 1 (pow x 3)))) (* (sqrt (/ 1 x)) (pow (sqrt -1) 2))) (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) (sqrt -1))) (* (sqrt (/ 1 x)) (sqrt -1)))))) |
(* -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/8 (* (sqrt (/ 1 (pow x 5))) (sqrt -1))) (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) (sqrt -1))) (* (sqrt (/ 1 x)) (sqrt -1))))))) |
(* -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))))) (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (sqrt -1))) (+ (* 1/16 (* (sqrt (/ 1 (pow x 7))) (sqrt -1))) (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) (sqrt -1))) (* (sqrt (/ 1 x)) (sqrt -1)))))))) |
(* -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))))))) |
(* -1 (* (sqrt x) (sqrt -1))) |
(* -1 (* x (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) (sqrt -1))) (* (sqrt (/ 1 x)) (sqrt -1))))) |
(* -1 (* x (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (sqrt -1))) (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) (sqrt -1))) (* (sqrt (/ 1 x)) (sqrt -1)))))) |
(* -1 (* x (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (sqrt -1))) (+ (* 1/16 (* (sqrt (/ 1 (pow x 7))) (sqrt -1))) (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) (sqrt -1))) (* (sqrt (/ 1 x)) (sqrt -1))))))) |
3 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 8.0ms | x | @ | inf | ((- (sqrt (+ 1 x)) (sqrt (- 1 x))) (sqrt (+ 1 x)) (+ 1 x) (sqrt (- 1 x))) |
| 2.0ms | x | @ | -inf | ((- (sqrt (+ 1 x)) (sqrt (- 1 x))) (sqrt (+ 1 x)) (+ 1 x) (sqrt (- 1 x))) |
| 1.0ms | x | @ | 0 | ((- (sqrt (+ 1 x)) (sqrt (- 1 x))) (sqrt (+ 1 x)) (+ 1 x) (sqrt (- 1 x))) |
| 1× | egg-herbie |
| Inputs |
|---|
x |
(* x (+ 1 (* 1/8 (pow x 2)))) |
(* x (+ 1 (* (pow x 2) (+ 1/8 (* 7/128 (pow x 2)))))) |
(* x (+ 1 (* (pow x 2) (+ 1/8 (* (pow x 2) (+ 7/128 (* 33/1024 (pow x 2)))))))) |
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 (* -1/2 x)) |
(+ 1 (* x (- (* -1/8 x) 1/2))) |
(+ 1 (* x (- (* x (- (* -1/16 x) 1/8)) 1/2))) |
(* x (- (sqrt (/ 1 x)) (* (sqrt (/ 1 x)) (sqrt -1)))) |
(* x (- (+ (sqrt (/ 1 x)) (* 1/2 (sqrt (/ 1 (pow x 3))))) (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) (/ 1 (sqrt -1)))) (* (sqrt (/ 1 x)) (sqrt -1))))) |
(* x (- (+ (sqrt (/ 1 x)) (+ (* -1/8 (sqrt (/ 1 (pow x 5)))) (* 1/2 (sqrt (/ 1 (pow x 3)))))) (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (/ 1 (pow (sqrt -1) 3)))) (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) (/ 1 (sqrt -1)))) (* (sqrt (/ 1 x)) (sqrt -1)))))) |
(* 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))))))) (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (/ 1 (pow (sqrt -1) 3)))) (+ (* 1/16 (* (sqrt (/ 1 (pow x 7))) (/ 1 (pow (sqrt -1) 5)))) (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) (/ 1 (sqrt -1)))) (* (sqrt (/ 1 x)) (sqrt -1))))))) |
(sqrt 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 (+ 1 (/ 1 x))) |
(* (sqrt x) (sqrt -1)) |
(* x (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) (/ 1 (sqrt -1)))) (* (sqrt (/ 1 x)) (sqrt -1)))) |
(* x (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (/ 1 (pow (sqrt -1) 3)))) (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) (/ 1 (sqrt -1)))) (* (sqrt (/ 1 x)) (sqrt -1))))) |
(* x (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (/ 1 (pow (sqrt -1) 3)))) (+ (* 1/16 (* (sqrt (/ 1 (pow x 7))) (/ 1 (pow (sqrt -1) 5)))) (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) (/ 1 (sqrt -1)))) (* (sqrt (/ 1 x)) (sqrt -1)))))) |
(* -1 (* x (- (* (sqrt (/ 1 x)) (pow (sqrt -1) 2)) (* (sqrt (/ 1 x)) (sqrt -1))))) |
(* -1 (* x (- (+ (* 1/2 (sqrt (/ 1 (pow x 3)))) (* (sqrt (/ 1 x)) (pow (sqrt -1) 2))) (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) (sqrt -1))) (* (sqrt (/ 1 x)) (sqrt -1)))))) |
(* -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/8 (* (sqrt (/ 1 (pow x 5))) (sqrt -1))) (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) (sqrt -1))) (* (sqrt (/ 1 x)) (sqrt -1))))))) |
(* -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))))) (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (sqrt -1))) (+ (* 1/16 (* (sqrt (/ 1 (pow x 7))) (sqrt -1))) (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) (sqrt -1))) (* (sqrt (/ 1 x)) (sqrt -1)))))))) |
(* -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))))))) |
(* -1 (* (sqrt x) (sqrt -1))) |
(* -1 (* x (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) (sqrt -1))) (* (sqrt (/ 1 x)) (sqrt -1))))) |
(* -1 (* x (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (sqrt -1))) (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) (sqrt -1))) (* (sqrt (/ 1 x)) (sqrt -1)))))) |
(* -1 (* x (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (sqrt -1))) (+ (* 1/16 (* (sqrt (/ 1 (pow x 7))) (sqrt -1))) (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) (sqrt -1))) (* (sqrt (/ 1 x)) (sqrt -1))))))) |
| Outputs |
|---|
x |
(-.f64 (sqrt.f64 (+.f64 #s(literal 1 binary64) x)) (sqrt.f64 (-.f64 #s(literal 1 binary64) x))) |
(* x (+ 1 (* 1/8 (pow x 2)))) |
(sqrt.f64 (+.f64 #s(literal 1 binary64) x)) |
(* x (+ 1 (* (pow x 2) (+ 1/8 (* 7/128 (pow x 2)))))) |
(+.f64 #s(literal 1 binary64) x) |
(* x (+ 1 (* (pow x 2) (+ 1/8 (* (pow x 2) (+ 7/128 (* 33/1024 (pow x 2)))))))) |
(sqrt.f64 (-.f64 #s(literal 1 binary64) x)) |
| Inputs |
|---|
(-.f64 (sqrt.f64 (+.f64 #s(literal 1 binary64) x)) (sqrt.f64 (-.f64 #s(literal 1 binary64) x))) |
(sqrt.f64 (+.f64 #s(literal 1 binary64) x)) |
(+.f64 #s(literal 1 binary64) x) |
(sqrt.f64 (-.f64 #s(literal 1 binary64) x)) |
| Outputs |
|---|
(-.f64 (sqrt.f64 (+.f64 #s(literal 1 binary64) x)) (sqrt.f64 (-.f64 #s(literal 1 binary64) x))) |
(sqrt.f64 (+.f64 #s(literal 1 binary64) x)) |
(+.f64 #s(literal 1 binary64) x) |
(sqrt.f64 (-.f64 #s(literal 1 binary64) x)) |
Compiled 96 to 17 computations (82.3% saved)
3 alts after pruning (2 fresh and 1 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 6 | 2 | 8 |
| Fresh | 0 | 0 | 0 |
| Picked | 0 | 1 | 1 |
| Done | 0 | 0 | 0 |
| Total | 6 | 3 | 9 |
| Status | Accuracy | Program |
|---|---|---|
| ✓ | 7.1% | (-.f64 (sqrt.f64 (+.f64 #s(literal 1 binary64) x)) (sqrt.f64 (-.f64 #s(literal 1 binary64) x))) |
| ▶ | 3.6% | #s(approx (- (sqrt (+ 1 x)) (sqrt (- 1 x))) (+.f64 #s(literal 1 binary64) x)) |
| ▶ | 3.6% | #s(approx (- (sqrt (+ 1 x)) (sqrt (- 1 x))) (sqrt.f64 (-.f64 #s(literal 1 binary64) x))) |
Compiled 36 to 28 computations (22.2% saved)
| 1× | egg-herbie |
Found 5 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| cost-diff | 0 | (+.f64 #s(literal 1 binary64) x) | |
| cost-diff | 0 | #s(approx (- (sqrt (+ 1 x)) (sqrt (- 1 x))) (+.f64 #s(literal 1 binary64) x)) | |
| cost-diff | 0 | (-.f64 #s(literal 1 binary64) x) | |
| cost-diff | 0 | (sqrt.f64 (-.f64 #s(literal 1 binary64) x)) | |
| cost-diff | 0 | #s(approx (- (sqrt (+ 1 x)) (sqrt (- 1 x))) (sqrt.f64 (-.f64 #s(literal 1 binary64) x))) |
| Inputs |
|---|
#s(approx (- (sqrt (+ 1 x)) (sqrt (- 1 x))) (sqrt.f64 (-.f64 #s(literal 1 binary64) x))) |
(sqrt.f64 (-.f64 #s(literal 1 binary64) x)) |
(-.f64 #s(literal 1 binary64) x) |
#s(literal 1 binary64) |
x |
#s(approx (- (sqrt (+ 1 x)) (sqrt (- 1 x))) (+.f64 #s(literal 1 binary64) x)) |
(+.f64 #s(literal 1 binary64) x) |
#s(literal 1 binary64) |
x |
| Outputs |
|---|
#s(approx (- (sqrt (+ 1 x)) (sqrt (- 1 x))) (sqrt.f64 (-.f64 #s(literal 1 binary64) x))) |
(sqrt.f64 (-.f64 #s(literal 1 binary64) x)) |
(-.f64 #s(literal 1 binary64) x) |
#s(literal 1 binary64) |
x |
#s(approx (- (sqrt (+ 1 x)) (sqrt (- 1 x))) (+.f64 #s(literal 1 binary64) x)) |
(+.f64 #s(literal 1 binary64) x) |
#s(literal 1 binary64) |
x |
Found 5 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| accuracy | 0.0 | (+.f64 #s(literal 1 binary64) x) | |
| accuracy | 61.69285527184973 | #s(approx (- (sqrt (+ 1 x)) (sqrt (- 1 x))) (+.f64 #s(literal 1 binary64) x)) | |
| accuracy | 0.0 | (-.f64 #s(literal 1 binary64) x) | |
| accuracy | 0.00390625 | (sqrt.f64 (-.f64 #s(literal 1 binary64) x)) | |
| accuracy | 61.692857547357804 | #s(approx (- (sqrt (+ 1 x)) (sqrt (- 1 x))) (sqrt.f64 (-.f64 #s(literal 1 binary64) x))) |
| 21.0ms | 95× | 2 | valid |
| 18.0ms | 156× | 1 | valid |
| 0.0ms | 5× | 0 | valid |
Compiled 75 to 22 computations (70.7% saved)
ival-sqrt: 12.0ms (42.9% of total)adjust: 6.0ms (21.4% of total)ival-sub: 5.0ms (17.9% of total)ival-add: 3.0ms (10.7% 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 (+ 1 x)) (sqrt (- 1 x))) (sqrt.f64 (-.f64 #s(literal 1 binary64) x))) |
(sqrt.f64 (-.f64 #s(literal 1 binary64) x)) |
(-.f64 #s(literal 1 binary64) x) |
#s(approx (- (sqrt (+ 1 x)) (sqrt (- 1 x))) (+.f64 #s(literal 1 binary64) x)) |
(+.f64 #s(literal 1 binary64) x) |
| Outputs |
|---|
x |
(* x (+ 1 (* 1/8 (pow x 2)))) |
(* x (+ 1 (* (pow x 2) (+ 1/8 (* 7/128 (pow x 2)))))) |
(* x (+ 1 (* (pow x 2) (+ 1/8 (* (pow x 2) (+ 7/128 (* 33/1024 (pow x 2)))))))) |
1 |
(+ 1 (* -1/2 x)) |
(+ 1 (* x (- (* -1/8 x) 1/2))) |
(+ 1 (* x (- (* x (- (* -1/16 x) 1/8)) 1/2))) |
(+ 1 (* -1 x)) |
(+ 1 x) |
(* x (- (sqrt (/ 1 x)) (* (sqrt (/ 1 x)) (sqrt -1)))) |
(* x (- (+ (sqrt (/ 1 x)) (* 1/2 (sqrt (/ 1 (pow x 3))))) (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) (/ 1 (sqrt -1)))) (* (sqrt (/ 1 x)) (sqrt -1))))) |
(* x (- (+ (sqrt (/ 1 x)) (+ (* -1/8 (sqrt (/ 1 (pow x 5)))) (* 1/2 (sqrt (/ 1 (pow x 3)))))) (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (/ 1 (pow (sqrt -1) 3)))) (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) (/ 1 (sqrt -1)))) (* (sqrt (/ 1 x)) (sqrt -1)))))) |
(* 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))))))) (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (/ 1 (pow (sqrt -1) 3)))) (+ (* 1/16 (* (sqrt (/ 1 (pow x 7))) (/ 1 (pow (sqrt -1) 5)))) (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) (/ 1 (sqrt -1)))) (* (sqrt (/ 1 x)) (sqrt -1))))))) |
(* (sqrt x) (sqrt -1)) |
(* x (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) (/ 1 (sqrt -1)))) (* (sqrt (/ 1 x)) (sqrt -1)))) |
(* x (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (/ 1 (pow (sqrt -1) 3)))) (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) (/ 1 (sqrt -1)))) (* (sqrt (/ 1 x)) (sqrt -1))))) |
(* x (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (/ 1 (pow (sqrt -1) 3)))) (+ (* 1/16 (* (sqrt (/ 1 (pow x 7))) (/ 1 (pow (sqrt -1) 5)))) (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) (/ 1 (sqrt -1)))) (* (sqrt (/ 1 x)) (sqrt -1)))))) |
(* -1 x) |
(* x (- (/ 1 x) 1)) |
(* x (+ 1 (/ 1 x))) |
(* -1 (* x (- (* (sqrt (/ 1 x)) (pow (sqrt -1) 2)) (* (sqrt (/ 1 x)) (sqrt -1))))) |
(* -1 (* x (- (+ (* 1/2 (sqrt (/ 1 (pow x 3)))) (* (sqrt (/ 1 x)) (pow (sqrt -1) 2))) (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) (sqrt -1))) (* (sqrt (/ 1 x)) (sqrt -1)))))) |
(* -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/8 (* (sqrt (/ 1 (pow x 5))) (sqrt -1))) (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) (sqrt -1))) (* (sqrt (/ 1 x)) (sqrt -1))))))) |
(* -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))))) (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (sqrt -1))) (+ (* 1/16 (* (sqrt (/ 1 (pow x 7))) (sqrt -1))) (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) (sqrt -1))) (* (sqrt (/ 1 x)) (sqrt -1)))))))) |
(* -1 (* (sqrt x) (sqrt -1))) |
(* -1 (* x (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) (sqrt -1))) (* (sqrt (/ 1 x)) (sqrt -1))))) |
(* -1 (* x (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (sqrt -1))) (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) (sqrt -1))) (* (sqrt (/ 1 x)) (sqrt -1)))))) |
(* -1 (* x (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (sqrt -1))) (+ (* 1/16 (* (sqrt (/ 1 (pow x 7))) (sqrt -1))) (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) (sqrt -1))) (* (sqrt (/ 1 x)) (sqrt -1))))))) |
(* -1 (* x (- 1 (/ 1 x)))) |
3 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 0.0ms | x | @ | -inf | ((- (sqrt (+ 1 x)) (sqrt (- 1 x))) (sqrt (- 1 x)) (- 1 x) (- (sqrt (+ 1 x)) (sqrt (- 1 x))) (+ 1 x)) |
| 0.0ms | x | @ | inf | ((- (sqrt (+ 1 x)) (sqrt (- 1 x))) (sqrt (- 1 x)) (- 1 x) (- (sqrt (+ 1 x)) (sqrt (- 1 x))) (+ 1 x)) |
| 0.0ms | x | @ | 0 | ((- (sqrt (+ 1 x)) (sqrt (- 1 x))) (sqrt (- 1 x)) (- 1 x) (- (sqrt (+ 1 x)) (sqrt (- 1 x))) (+ 1 x)) |
| 1× | egg-herbie |
| Inputs |
|---|
x |
(* x (+ 1 (* 1/8 (pow x 2)))) |
(* x (+ 1 (* (pow x 2) (+ 1/8 (* 7/128 (pow x 2)))))) |
(* x (+ 1 (* (pow x 2) (+ 1/8 (* (pow x 2) (+ 7/128 (* 33/1024 (pow x 2)))))))) |
1 |
(+ 1 (* -1/2 x)) |
(+ 1 (* x (- (* -1/8 x) 1/2))) |
(+ 1 (* x (- (* x (- (* -1/16 x) 1/8)) 1/2))) |
(+ 1 (* -1 x)) |
(+ 1 x) |
(* x (- (sqrt (/ 1 x)) (* (sqrt (/ 1 x)) (sqrt -1)))) |
(* x (- (+ (sqrt (/ 1 x)) (* 1/2 (sqrt (/ 1 (pow x 3))))) (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) (/ 1 (sqrt -1)))) (* (sqrt (/ 1 x)) (sqrt -1))))) |
(* x (- (+ (sqrt (/ 1 x)) (+ (* -1/8 (sqrt (/ 1 (pow x 5)))) (* 1/2 (sqrt (/ 1 (pow x 3)))))) (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (/ 1 (pow (sqrt -1) 3)))) (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) (/ 1 (sqrt -1)))) (* (sqrt (/ 1 x)) (sqrt -1)))))) |
(* 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))))))) (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (/ 1 (pow (sqrt -1) 3)))) (+ (* 1/16 (* (sqrt (/ 1 (pow x 7))) (/ 1 (pow (sqrt -1) 5)))) (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) (/ 1 (sqrt -1)))) (* (sqrt (/ 1 x)) (sqrt -1))))))) |
(* (sqrt x) (sqrt -1)) |
(* x (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) (/ 1 (sqrt -1)))) (* (sqrt (/ 1 x)) (sqrt -1)))) |
(* x (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (/ 1 (pow (sqrt -1) 3)))) (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) (/ 1 (sqrt -1)))) (* (sqrt (/ 1 x)) (sqrt -1))))) |
(* x (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (/ 1 (pow (sqrt -1) 3)))) (+ (* 1/16 (* (sqrt (/ 1 (pow x 7))) (/ 1 (pow (sqrt -1) 5)))) (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) (/ 1 (sqrt -1)))) (* (sqrt (/ 1 x)) (sqrt -1)))))) |
(* -1 x) |
(* x (- (/ 1 x) 1)) |
(* x (+ 1 (/ 1 x))) |
(* -1 (* x (- (* (sqrt (/ 1 x)) (pow (sqrt -1) 2)) (* (sqrt (/ 1 x)) (sqrt -1))))) |
(* -1 (* x (- (+ (* 1/2 (sqrt (/ 1 (pow x 3)))) (* (sqrt (/ 1 x)) (pow (sqrt -1) 2))) (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) (sqrt -1))) (* (sqrt (/ 1 x)) (sqrt -1)))))) |
(* -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/8 (* (sqrt (/ 1 (pow x 5))) (sqrt -1))) (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) (sqrt -1))) (* (sqrt (/ 1 x)) (sqrt -1))))))) |
(* -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))))) (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (sqrt -1))) (+ (* 1/16 (* (sqrt (/ 1 (pow x 7))) (sqrt -1))) (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) (sqrt -1))) (* (sqrt (/ 1 x)) (sqrt -1)))))))) |
(* -1 (* (sqrt x) (sqrt -1))) |
(* -1 (* x (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) (sqrt -1))) (* (sqrt (/ 1 x)) (sqrt -1))))) |
(* -1 (* x (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (sqrt -1))) (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) (sqrt -1))) (* (sqrt (/ 1 x)) (sqrt -1)))))) |
(* -1 (* x (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (sqrt -1))) (+ (* 1/16 (* (sqrt (/ 1 (pow x 7))) (sqrt -1))) (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) (sqrt -1))) (* (sqrt (/ 1 x)) (sqrt -1))))))) |
(* -1 (* x (- 1 (/ 1 x)))) |
| Outputs |
|---|
x |
#s(approx (- (sqrt (+ 1 x)) (sqrt (- 1 x))) (sqrt.f64 (-.f64 #s(literal 1 binary64) x))) |
(* x (+ 1 (* 1/8 (pow x 2)))) |
(sqrt.f64 (-.f64 #s(literal 1 binary64) x)) |
(* x (+ 1 (* (pow x 2) (+ 1/8 (* 7/128 (pow x 2)))))) |
(-.f64 #s(literal 1 binary64) x) |
(* x (+ 1 (* (pow x 2) (+ 1/8 (* (pow x 2) (+ 7/128 (* 33/1024 (pow x 2)))))))) |
#s(approx (- (sqrt (+ 1 x)) (sqrt (- 1 x))) (+.f64 #s(literal 1 binary64) x)) |
1 |
(+.f64 #s(literal 1 binary64) x) |
| Inputs |
|---|
#s(approx (- (sqrt (+ 1 x)) (sqrt (- 1 x))) (sqrt.f64 (-.f64 #s(literal 1 binary64) x))) |
(sqrt.f64 (-.f64 #s(literal 1 binary64) x)) |
(-.f64 #s(literal 1 binary64) x) |
#s(approx (- (sqrt (+ 1 x)) (sqrt (- 1 x))) (+.f64 #s(literal 1 binary64) x)) |
(+.f64 #s(literal 1 binary64) x) |
| Outputs |
|---|
#s(approx (- (sqrt (+ 1 x)) (sqrt (- 1 x))) (sqrt.f64 (-.f64 #s(literal 1 binary64) x))) |
(sqrt.f64 (-.f64 #s(literal 1 binary64) x)) |
(-.f64 #s(literal 1 binary64) x) |
#s(approx (- (sqrt (+ 1 x)) (sqrt (- 1 x))) (+.f64 #s(literal 1 binary64) x)) |
(+.f64 #s(literal 1 binary64) x) |
Compiled 146 to 18 computations (87.7% saved)
3 alts after pruning (1 fresh and 2 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 8 | 1 | 9 |
| Fresh | 0 | 0 | 0 |
| Picked | 1 | 1 | 2 |
| Done | 0 | 1 | 1 |
| Total | 9 | 3 | 12 |
| Status | Accuracy | Program |
|---|---|---|
| ✓ | 7.1% | (-.f64 (sqrt.f64 (+.f64 #s(literal 1 binary64) x)) (sqrt.f64 (-.f64 #s(literal 1 binary64) x))) |
| ▶ | 3.6% | #s(approx (- (sqrt (+ 1 x)) (sqrt (- 1 x))) (-.f64 #s(literal 1 binary64) x)) |
| ✓ | 3.6% | #s(approx (- (sqrt (+ 1 x)) (sqrt (- 1 x))) (+.f64 #s(literal 1 binary64) x)) |
Compiled 35 to 27 computations (22.9% saved)
| 1× | egg-herbie |
Found 2 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| cost-diff | 0 | (-.f64 #s(literal 1 binary64) x) | |
| cost-diff | 0 | #s(approx (- (sqrt (+ 1 x)) (sqrt (- 1 x))) (-.f64 #s(literal 1 binary64) x)) |
| Inputs |
|---|
#s(approx (- (sqrt (+ 1 x)) (sqrt (- 1 x))) (-.f64 #s(literal 1 binary64) x)) |
(-.f64 #s(literal 1 binary64) x) |
#s(literal 1 binary64) |
x |
| Outputs |
|---|
#s(approx (- (sqrt (+ 1 x)) (sqrt (- 1 x))) (-.f64 #s(literal 1 binary64) x)) |
(-.f64 #s(literal 1 binary64) x) |
#s(literal 1 binary64) |
x |
Found 2 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| accuracy | 0.0 | (-.f64 #s(literal 1 binary64) x) | |
| accuracy | 61.69285803191179 | #s(approx (- (sqrt (+ 1 x)) (sqrt (- 1 x))) (-.f64 #s(literal 1 binary64) x)) |
| 22.0ms | 95× | 2 | valid |
| 17.0ms | 156× | 1 | valid |
| 0.0ms | 5× | 0 | valid |
Compiled 34 to 19 computations (44.1% saved)
ival-add: 10.0ms (33.1% of total)ival-sqrt: 8.0ms (26.5% of total)adjust: 6.0ms (19.8% of total)ival-sub: 5.0ms (16.5% 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 (+ 1 x)) (sqrt (- 1 x))) (-.f64 #s(literal 1 binary64) x)) |
(-.f64 #s(literal 1 binary64) x) |
| Outputs |
|---|
x |
(* x (+ 1 (* 1/8 (pow x 2)))) |
(* x (+ 1 (* (pow x 2) (+ 1/8 (* 7/128 (pow x 2)))))) |
(* x (+ 1 (* (pow x 2) (+ 1/8 (* (pow x 2) (+ 7/128 (* 33/1024 (pow x 2)))))))) |
1 |
(+ 1 (* -1 x)) |
(* x (- (sqrt (/ 1 x)) (* (sqrt (/ 1 x)) (sqrt -1)))) |
(* x (- (+ (sqrt (/ 1 x)) (* 1/2 (sqrt (/ 1 (pow x 3))))) (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) (/ 1 (sqrt -1)))) (* (sqrt (/ 1 x)) (sqrt -1))))) |
(* x (- (+ (sqrt (/ 1 x)) (+ (* -1/8 (sqrt (/ 1 (pow x 5)))) (* 1/2 (sqrt (/ 1 (pow x 3)))))) (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (/ 1 (pow (sqrt -1) 3)))) (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) (/ 1 (sqrt -1)))) (* (sqrt (/ 1 x)) (sqrt -1)))))) |
(* 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))))))) (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (/ 1 (pow (sqrt -1) 3)))) (+ (* 1/16 (* (sqrt (/ 1 (pow x 7))) (/ 1 (pow (sqrt -1) 5)))) (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) (/ 1 (sqrt -1)))) (* (sqrt (/ 1 x)) (sqrt -1))))))) |
(* -1 x) |
(* x (- (/ 1 x) 1)) |
(* -1 (* x (- (* (sqrt (/ 1 x)) (pow (sqrt -1) 2)) (* (sqrt (/ 1 x)) (sqrt -1))))) |
(* -1 (* x (- (+ (* 1/2 (sqrt (/ 1 (pow x 3)))) (* (sqrt (/ 1 x)) (pow (sqrt -1) 2))) (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) (sqrt -1))) (* (sqrt (/ 1 x)) (sqrt -1)))))) |
(* -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/8 (* (sqrt (/ 1 (pow x 5))) (sqrt -1))) (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) (sqrt -1))) (* (sqrt (/ 1 x)) (sqrt -1))))))) |
(* -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))))) (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (sqrt -1))) (+ (* 1/16 (* (sqrt (/ 1 (pow x 7))) (sqrt -1))) (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) (sqrt -1))) (* (sqrt (/ 1 x)) (sqrt -1)))))))) |
(* -1 (* x (- 1 (/ 1 x)))) |
3 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 0.0ms | x | @ | inf | ((- (sqrt (+ 1 x)) (sqrt (- 1 x))) (- 1 x)) |
| 0.0ms | x | @ | -inf | ((- (sqrt (+ 1 x)) (sqrt (- 1 x))) (- 1 x)) |
| 0.0ms | x | @ | 0 | ((- (sqrt (+ 1 x)) (sqrt (- 1 x))) (- 1 x)) |
| 1× | egg-herbie |
| Inputs |
|---|
x |
(* x (+ 1 (* 1/8 (pow x 2)))) |
(* x (+ 1 (* (pow x 2) (+ 1/8 (* 7/128 (pow x 2)))))) |
(* x (+ 1 (* (pow x 2) (+ 1/8 (* (pow x 2) (+ 7/128 (* 33/1024 (pow x 2)))))))) |
1 |
(+ 1 (* -1 x)) |
(* x (- (sqrt (/ 1 x)) (* (sqrt (/ 1 x)) (sqrt -1)))) |
(* x (- (+ (sqrt (/ 1 x)) (* 1/2 (sqrt (/ 1 (pow x 3))))) (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) (/ 1 (sqrt -1)))) (* (sqrt (/ 1 x)) (sqrt -1))))) |
(* x (- (+ (sqrt (/ 1 x)) (+ (* -1/8 (sqrt (/ 1 (pow x 5)))) (* 1/2 (sqrt (/ 1 (pow x 3)))))) (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (/ 1 (pow (sqrt -1) 3)))) (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) (/ 1 (sqrt -1)))) (* (sqrt (/ 1 x)) (sqrt -1)))))) |
(* 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))))))) (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (/ 1 (pow (sqrt -1) 3)))) (+ (* 1/16 (* (sqrt (/ 1 (pow x 7))) (/ 1 (pow (sqrt -1) 5)))) (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) (/ 1 (sqrt -1)))) (* (sqrt (/ 1 x)) (sqrt -1))))))) |
(* -1 x) |
(* x (- (/ 1 x) 1)) |
(* -1 (* x (- (* (sqrt (/ 1 x)) (pow (sqrt -1) 2)) (* (sqrt (/ 1 x)) (sqrt -1))))) |
(* -1 (* x (- (+ (* 1/2 (sqrt (/ 1 (pow x 3)))) (* (sqrt (/ 1 x)) (pow (sqrt -1) 2))) (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) (sqrt -1))) (* (sqrt (/ 1 x)) (sqrt -1)))))) |
(* -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/8 (* (sqrt (/ 1 (pow x 5))) (sqrt -1))) (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) (sqrt -1))) (* (sqrt (/ 1 x)) (sqrt -1))))))) |
(* -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))))) (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (sqrt -1))) (+ (* 1/16 (* (sqrt (/ 1 (pow x 7))) (sqrt -1))) (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) (sqrt -1))) (* (sqrt (/ 1 x)) (sqrt -1)))))))) |
(* -1 (* x (- 1 (/ 1 x)))) |
| Outputs |
|---|
x |
#s(approx (- (sqrt (+ 1 x)) (sqrt (- 1 x))) (-.f64 #s(literal 1 binary64) x)) |
(* x (+ 1 (* 1/8 (pow x 2)))) |
(-.f64 #s(literal 1 binary64) x) |
| Inputs |
|---|
#s(approx (- (sqrt (+ 1 x)) (sqrt (- 1 x))) (-.f64 #s(literal 1 binary64) x)) |
(-.f64 #s(literal 1 binary64) x) |
| Outputs |
|---|
#s(approx (- (sqrt (+ 1 x)) (sqrt (- 1 x))) (-.f64 #s(literal 1 binary64) x)) |
(-.f64 #s(literal 1 binary64) x) |
Compiled 49 to 11 computations (77.6% saved)
3 alts after pruning (0 fresh and 3 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 3 | 0 | 3 |
| Fresh | 0 | 0 | 0 |
| Picked | 0 | 1 | 1 |
| Done | 0 | 2 | 2 |
| Total | 3 | 3 | 6 |
| Status | Accuracy | Program |
|---|---|---|
| ✓ | 7.1% | (-.f64 (sqrt.f64 (+.f64 #s(literal 1 binary64) x)) (sqrt.f64 (-.f64 #s(literal 1 binary64) x))) |
| ✓ | 3.6% | #s(approx (- (sqrt (+ 1 x)) (sqrt (- 1 x))) (-.f64 #s(literal 1 binary64) x)) |
| ✓ | 3.6% | #s(approx (- (sqrt (+ 1 x)) (sqrt (- 1 x))) (+.f64 #s(literal 1 binary64) x)) |
Compiled 84 to 43 computations (48.8% saved)
| Inputs |
|---|
#s(approx (- (sqrt (+ 1 x)) (sqrt (- 1 x))) (+.f64 #s(literal 1 binary64) x)) |
#s(approx (- (sqrt (+ 1 x)) (sqrt (- 1 x))) (-.f64 #s(literal 1 binary64) x)) |
#s(approx (- (sqrt (+ 1 x)) (sqrt (- 1 x))) (sqrt.f64 (-.f64 #s(literal 1 binary64) x))) |
(-.f64 (sqrt.f64 (+.f64 #s(literal 1 binary64) x)) (sqrt.f64 (-.f64 #s(literal 1 binary64) x))) |
| Outputs |
|---|
(-.f64 (sqrt.f64 (+.f64 #s(literal 1 binary64) x)) (sqrt.f64 (-.f64 #s(literal 1 binary64) x))) |
2 calls:
| 3.0ms | (-.f64 (sqrt.f64 (+.f64 #s(literal 1 binary64) x)) (sqrt.f64 (-.f64 #s(literal 1 binary64) x))) |
| 2.0ms | x |
| Accuracy | Segments | Branch |
|---|---|---|
| 7.1% | 1 | x |
| 7.1% | 1 | (-.f64 (sqrt.f64 (+.f64 #s(literal 1 binary64) x)) (sqrt.f64 (-.f64 #s(literal 1 binary64) x))) |
Compiled 10 to 8 computations (20% saved)
Total -0.0b remaining (-0%)
Threshold costs -0b (-0%)
| Inputs |
|---|
#s(approx (- (sqrt (+ 1 x)) (sqrt (- 1 x))) (+.f64 #s(literal 1 binary64) x)) |
#s(approx (- (sqrt (+ 1 x)) (sqrt (- 1 x))) (-.f64 #s(literal 1 binary64) x)) |
#s(approx (- (sqrt (+ 1 x)) (sqrt (- 1 x))) (sqrt.f64 (-.f64 #s(literal 1 binary64) x))) |
| Outputs |
|---|
#s(approx (- (sqrt (+ 1 x)) (sqrt (- 1 x))) (+.f64 #s(literal 1 binary64) x)) |
2 calls:
| 2.0ms | x |
| 1.0ms | (-.f64 (sqrt.f64 (+.f64 #s(literal 1 binary64) x)) (sqrt.f64 (-.f64 #s(literal 1 binary64) x))) |
| Accuracy | Segments | Branch |
|---|---|---|
| 3.6% | 1 | x |
| 3.6% | 1 | (-.f64 (sqrt.f64 (+.f64 #s(literal 1 binary64) x)) (sqrt.f64 (-.f64 #s(literal 1 binary64) x))) |
Compiled 10 to 8 computations (20% saved)
| 1× | egg-herbie |
| Inputs |
|---|
(-.f64 (sqrt.f64 (+.f64 #s(literal 1 binary64) x)) (sqrt.f64 (-.f64 #s(literal 1 binary64) x))) |
#s(approx (- (sqrt (+ 1 x)) (sqrt (- 1 x))) (+.f64 #s(literal 1 binary64) x)) |
| Outputs |
|---|
(-.f64 (sqrt.f64 (+.f64 #s(literal 1 binary64) x)) (sqrt.f64 (-.f64 #s(literal 1 binary64) x))) |
#s(approx (- (sqrt (+ 1 x)) (sqrt (- 1 x))) (+.f64 #s(literal 1 binary64) x)) |
| 1× | done |
Compiled 22 to 14 computations (36.4% saved)
Compiled 88 to 62 computations (29.5% saved)
Loading profile data...