
Time bar (total: 643.0ms)
| 1× | search |
| Probability | Valid | Unknown | Precondition | Infinite | Domain | Can't | Iter |
|---|---|---|---|---|---|---|---|
| 0% | 0% | 99.9% | 0.1% | 0% | 0% | 0% | 0 |
| 0% | 0% | 99.9% | 0.1% | 0% | 0% | 0% | 1 |
| 0% | 0% | 99.9% | 0.1% | 0% | 0% | 0% | 2 |
| 25% | 25% | 74.9% | 0.1% | 0% | 0% | 0% | 3 |
| 28.6% | 25% | 62.4% | 0.1% | 0% | 12.5% | 0% | 4 |
| 46.2% | 37.5% | 43.7% | 0.1% | 0% | 18.7% | 0% | 5 |
| 52.2% | 37.5% | 34.3% | 0.1% | 0% | 28.1% | 0% | 6 |
| 65.1% | 43.7% | 23.4% | 0.1% | 0% | 32.8% | 0% | 7 |
| 70.9% | 43.7% | 18% | 0.1% | 0% | 38.2% | 0% | 8 |
| 79.5% | 46.8% | 12.1% | 0.1% | 0% | 41% | 0% | 9 |
| 83.6% | 46.8% | 9.2% | 0.1% | 0% | 43.9% | 0% | 10 |
| 88.7% | 48.4% | 6.1% | 0.1% | 0% | 45.4% | 0% | 11 |
| 91.3% | 48.4% | 4.6% | 0.1% | 0% | 46.9% | 0% | 12 |
Compiled 6 to 6 computations (0% saved)
| 273.0ms | 8 256× | 0 | valid |
| 18.0ms | 493× | 0 | invalid |
ival-sqrt: 64.0ms (49.9% of total)ival-add: 56.0ms (43.7% of total)ival-true: 6.0ms (4.7% of total)ival-assert: 3.0ms (2.3% of total)| Ground Truth | Overpredictions | Example | Underpredictions | Example | Subexpression |
|---|---|---|---|---|---|
| 0 | 0 | - | 0 | - | (sqrt.f64 (+.f64 x y)) |
| 0 | 0 | - | 0 | - | y |
| 0 | 0 | - | 0 | - | (+.f64 x y) |
| 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 |
| 18.0ms | 512× | 0 | valid |
Compiled 35 to 20 computations (42.9% saved)
ival-add: 3.0ms (43% of total)ival-sqrt: 3.0ms (43% of total)ival-true: 0.0ms (0% of total)ival-assert: 0.0ms (0% of total)| 1× | egg-herbie |
| Inputs |
|---|
(sqrt.f64 (+.f64 x y)) |
| Outputs |
|---|
(sqrt.f64 (+.f64 x y)) |
Compiled 4 to 4 computations (0% saved)
Compiled 0 to 2 computations (-∞% saved)
| Status | Accuracy | Program |
|---|---|---|
| ▶ | 100.0% | (sqrt.f64 (+.f64 x y)) |
Compiled 4 to 4 computations (0% saved)
| 1× | egg-herbie |
Found 2 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| cost-diff | 0 | (+.f64 x y) | |
| cost-diff | 0 | (sqrt.f64 (+.f64 x y)) |
| Inputs |
|---|
(sqrt.f64 (+.f64 x y)) |
(+.f64 x y) |
x |
y |
| Outputs |
|---|
(sqrt.f64 (+.f64 x y)) |
(+.f64 x y) |
x |
y |
Found 2 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| accuracy | 0.0 | (+.f64 x y) | |
| accuracy | 0.01171875 | (sqrt.f64 (+.f64 x y)) |
| 9.0ms | 256× | 0 | valid |
Compiled 20 to 10 computations (50% saved)
ival-sqrt: 2.0ms (59.4% of total)ival-add: 1.0ms (29.7% of total)ival-true: 0.0ms (0% of total)ival-assert: 0.0ms (0% of total)| Inputs |
|---|
(sqrt.f64 (+.f64 x y)) |
(+.f64 x y) |
| Outputs |
|---|
(sqrt y) |
(+ (sqrt y) (* 1/2 (* x (sqrt (/ 1 y))))) |
(+ (sqrt y) (* x (+ (* -1/8 (* x (sqrt (/ 1 (pow y 3))))) (* 1/2 (sqrt (/ 1 y)))))) |
(+ (sqrt y) (* x (+ (* 1/2 (sqrt (/ 1 y))) (* x (+ (* -1/8 (sqrt (/ 1 (pow y 3)))) (* 1/16 (* x (sqrt (/ 1 (pow y 5)))))))))) |
y |
(+ x y) |
(sqrt x) |
(* x (+ (sqrt (/ 1 x)) (* 1/2 (* (sqrt (/ 1 (pow x 3))) y)))) |
(* x (+ (sqrt (/ 1 x)) (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (pow y 2))) (* 1/2 (* (sqrt (/ 1 (pow x 3))) y))))) |
(* x (+ (sqrt (/ 1 x)) (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (pow y 2))) (+ (* 1/16 (* (sqrt (/ 1 (pow x 7))) (pow y 3))) (* 1/2 (* (sqrt (/ 1 (pow x 3))) y)))))) |
x |
(* x (+ 1 (/ y x))) |
(* -1 (* (sqrt x) (pow (sqrt -1) 2))) |
(* -1 (* x (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) y)) (* (sqrt (/ 1 x)) (pow (sqrt -1) 2))))) |
(* -1 (* x (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (/ (pow y 2) (pow (sqrt -1) 2)))) (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) y)) (* (sqrt (/ 1 x)) (pow (sqrt -1) 2)))))) |
(* -1 (* x (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (/ (pow y 2) (pow (sqrt -1) 2)))) (+ (* 1/16 (* (sqrt (/ 1 (pow x 7))) (/ (pow y 3) (pow (sqrt -1) 4)))) (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) y)) (* (sqrt (/ 1 x)) (pow (sqrt -1) 2))))))) |
(* -1 (* x (- (* -1 (/ y x)) 1))) |
(+ (sqrt x) (* 1/2 (* (sqrt (/ 1 x)) y))) |
(+ (sqrt x) (* y (+ (* -1/8 (* (sqrt (/ 1 (pow x 3))) y)) (* 1/2 (sqrt (/ 1 x)))))) |
(+ (sqrt x) (* y (+ (* 1/2 (sqrt (/ 1 x))) (* y (+ (* -1/8 (sqrt (/ 1 (pow x 3)))) (* 1/16 (* (sqrt (/ 1 (pow x 5))) y))))))) |
(* y (+ (sqrt (/ 1 y)) (* 1/2 (* x (sqrt (/ 1 (pow y 3))))))) |
(* y (+ (sqrt (/ 1 y)) (+ (* -1/8 (* (pow x 2) (sqrt (/ 1 (pow y 5))))) (* 1/2 (* x (sqrt (/ 1 (pow y 3)))))))) |
(* y (+ (sqrt (/ 1 y)) (+ (* -1/8 (* (pow x 2) (sqrt (/ 1 (pow y 5))))) (+ (* 1/16 (* (pow x 3) (sqrt (/ 1 (pow y 7))))) (* 1/2 (* x (sqrt (/ 1 (pow y 3))))))))) |
(* y (+ 1 (/ x y))) |
(* -1 (* (sqrt y) (pow (sqrt -1) 2))) |
(* -1 (* y (+ (* 1/2 (* x (sqrt (/ 1 (pow y 3))))) (* (sqrt (/ 1 y)) (pow (sqrt -1) 2))))) |
(* -1 (* y (+ (* -1/8 (* (/ (pow x 2) (pow (sqrt -1) 2)) (sqrt (/ 1 (pow y 5))))) (+ (* 1/2 (* x (sqrt (/ 1 (pow y 3))))) (* (sqrt (/ 1 y)) (pow (sqrt -1) 2)))))) |
(* -1 (* y (+ (* -1/8 (* (/ (pow x 2) (pow (sqrt -1) 2)) (sqrt (/ 1 (pow y 5))))) (+ (* 1/16 (* (/ (pow x 3) (pow (sqrt -1) 4)) (sqrt (/ 1 (pow y 7))))) (+ (* 1/2 (* x (sqrt (/ 1 (pow y 3))))) (* (sqrt (/ 1 y)) (pow (sqrt -1) 2))))))) |
(* -1 (* y (- (* -1 (/ x y)) 1))) |
6 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 1.0ms | x | @ | -inf | ((sqrt (+ x y)) (+ x y)) |
| 1.0ms | y | @ | -inf | ((sqrt (+ x y)) (+ x y)) |
| 1.0ms | x | @ | inf | ((sqrt (+ x y)) (+ x y)) |
| 1.0ms | y | @ | inf | ((sqrt (+ x y)) (+ x y)) |
| 0.0ms | x | @ | 0 | ((sqrt (+ x y)) (+ x y)) |
| 1× | egg-herbie |
| Inputs |
|---|
(sqrt y) |
(+ (sqrt y) (* 1/2 (* x (sqrt (/ 1 y))))) |
(+ (sqrt y) (* x (+ (* -1/8 (* x (sqrt (/ 1 (pow y 3))))) (* 1/2 (sqrt (/ 1 y)))))) |
(+ (sqrt y) (* x (+ (* 1/2 (sqrt (/ 1 y))) (* x (+ (* -1/8 (sqrt (/ 1 (pow y 3)))) (* 1/16 (* x (sqrt (/ 1 (pow y 5)))))))))) |
y |
(+ x y) |
(sqrt x) |
(* x (+ (sqrt (/ 1 x)) (* 1/2 (* (sqrt (/ 1 (pow x 3))) y)))) |
(* x (+ (sqrt (/ 1 x)) (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (pow y 2))) (* 1/2 (* (sqrt (/ 1 (pow x 3))) y))))) |
(* x (+ (sqrt (/ 1 x)) (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (pow y 2))) (+ (* 1/16 (* (sqrt (/ 1 (pow x 7))) (pow y 3))) (* 1/2 (* (sqrt (/ 1 (pow x 3))) y)))))) |
x |
(* x (+ 1 (/ y x))) |
(* -1 (* (sqrt x) (pow (sqrt -1) 2))) |
(* -1 (* x (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) y)) (* (sqrt (/ 1 x)) (pow (sqrt -1) 2))))) |
(* -1 (* x (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (/ (pow y 2) (pow (sqrt -1) 2)))) (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) y)) (* (sqrt (/ 1 x)) (pow (sqrt -1) 2)))))) |
(* -1 (* x (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (/ (pow y 2) (pow (sqrt -1) 2)))) (+ (* 1/16 (* (sqrt (/ 1 (pow x 7))) (/ (pow y 3) (pow (sqrt -1) 4)))) (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) y)) (* (sqrt (/ 1 x)) (pow (sqrt -1) 2))))))) |
(* -1 (* x (- (* -1 (/ y x)) 1))) |
(+ (sqrt x) (* 1/2 (* (sqrt (/ 1 x)) y))) |
(+ (sqrt x) (* y (+ (* -1/8 (* (sqrt (/ 1 (pow x 3))) y)) (* 1/2 (sqrt (/ 1 x)))))) |
(+ (sqrt x) (* y (+ (* 1/2 (sqrt (/ 1 x))) (* y (+ (* -1/8 (sqrt (/ 1 (pow x 3)))) (* 1/16 (* (sqrt (/ 1 (pow x 5))) y))))))) |
(* y (+ (sqrt (/ 1 y)) (* 1/2 (* x (sqrt (/ 1 (pow y 3))))))) |
(* y (+ (sqrt (/ 1 y)) (+ (* -1/8 (* (pow x 2) (sqrt (/ 1 (pow y 5))))) (* 1/2 (* x (sqrt (/ 1 (pow y 3)))))))) |
(* y (+ (sqrt (/ 1 y)) (+ (* -1/8 (* (pow x 2) (sqrt (/ 1 (pow y 5))))) (+ (* 1/16 (* (pow x 3) (sqrt (/ 1 (pow y 7))))) (* 1/2 (* x (sqrt (/ 1 (pow y 3))))))))) |
(* y (+ 1 (/ x y))) |
(* -1 (* (sqrt y) (pow (sqrt -1) 2))) |
(* -1 (* y (+ (* 1/2 (* x (sqrt (/ 1 (pow y 3))))) (* (sqrt (/ 1 y)) (pow (sqrt -1) 2))))) |
(* -1 (* y (+ (* -1/8 (* (/ (pow x 2) (pow (sqrt -1) 2)) (sqrt (/ 1 (pow y 5))))) (+ (* 1/2 (* x (sqrt (/ 1 (pow y 3))))) (* (sqrt (/ 1 y)) (pow (sqrt -1) 2)))))) |
(* -1 (* y (+ (* -1/8 (* (/ (pow x 2) (pow (sqrt -1) 2)) (sqrt (/ 1 (pow y 5))))) (+ (* 1/16 (* (/ (pow x 3) (pow (sqrt -1) 4)) (sqrt (/ 1 (pow y 7))))) (+ (* 1/2 (* x (sqrt (/ 1 (pow y 3))))) (* (sqrt (/ 1 y)) (pow (sqrt -1) 2))))))) |
(* -1 (* y (- (* -1 (/ x y)) 1))) |
| Outputs |
|---|
(sqrt y) |
(sqrt.f64 (+.f64 x y)) |
(+ (sqrt y) (* 1/2 (* x (sqrt (/ 1 y))))) |
(+.f64 x y) |
| Inputs |
|---|
(sqrt.f64 (+.f64 x y)) |
(+.f64 x y) |
| Outputs |
|---|
(sqrt.f64 (+.f64 x y)) |
(+.f64 x y) |
Compiled 25 to 8 computations (68% saved)
2 alts after pruning (1 fresh and 1 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 3 | 1 | 4 |
| Fresh | 0 | 0 | 0 |
| Picked | 0 | 1 | 1 |
| Done | 0 | 0 | 0 |
| Total | 3 | 2 | 5 |
| Status | Accuracy | Program |
|---|---|---|
| ✓ | 100.0% | (sqrt.f64 (+.f64 x y)) |
| ▶ | 6.7% | #s(approx (sqrt (+ x y)) (+.f64 x y)) |
Compiled 12 to 10 computations (16.7% saved)
| 1× | egg-herbie |
Found 2 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| cost-diff | 0 | (+.f64 x y) | |
| cost-diff | 0 | #s(approx (sqrt (+ x y)) (+.f64 x y)) |
| Inputs |
|---|
#s(approx (sqrt (+ x y)) (+.f64 x y)) |
(+.f64 x y) |
x |
y |
| Outputs |
|---|
#s(approx (sqrt (+ x y)) (+.f64 x y)) |
(+.f64 x y) |
x |
y |
Found 2 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| accuracy | 0.0 | (+.f64 x y) | |
| accuracy | 59.7001553686024 | #s(approx (sqrt (+ x y)) (+.f64 x y)) |
| 11.0ms | 256× | 0 | valid |
Compiled 24 to 12 computations (50% saved)
ival-add: 3.0ms (56.6% of total)ival-sqrt: 2.0ms (37.7% of total)ival-true: 0.0ms (0% of total)ival-assert: 0.0ms (0% of total)| Inputs |
|---|
#s(approx (sqrt (+ x y)) (+.f64 x y)) |
(+.f64 x y) |
| Outputs |
|---|
(sqrt y) |
(+ (sqrt y) (* 1/2 (* x (sqrt (/ 1 y))))) |
(+ (sqrt y) (* x (+ (* -1/8 (* x (sqrt (/ 1 (pow y 3))))) (* 1/2 (sqrt (/ 1 y)))))) |
(+ (sqrt y) (* x (+ (* 1/2 (sqrt (/ 1 y))) (* x (+ (* -1/8 (sqrt (/ 1 (pow y 3)))) (* 1/16 (* x (sqrt (/ 1 (pow y 5)))))))))) |
y |
(+ x y) |
(sqrt x) |
(* x (+ (sqrt (/ 1 x)) (* 1/2 (* (sqrt (/ 1 (pow x 3))) y)))) |
(* x (+ (sqrt (/ 1 x)) (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (pow y 2))) (* 1/2 (* (sqrt (/ 1 (pow x 3))) y))))) |
(* x (+ (sqrt (/ 1 x)) (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (pow y 2))) (+ (* 1/16 (* (sqrt (/ 1 (pow x 7))) (pow y 3))) (* 1/2 (* (sqrt (/ 1 (pow x 3))) y)))))) |
x |
(* x (+ 1 (/ y x))) |
(* -1 (* (sqrt x) (pow (sqrt -1) 2))) |
(* -1 (* x (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) y)) (* (sqrt (/ 1 x)) (pow (sqrt -1) 2))))) |
(* -1 (* x (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (/ (pow y 2) (pow (sqrt -1) 2)))) (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) y)) (* (sqrt (/ 1 x)) (pow (sqrt -1) 2)))))) |
(* -1 (* x (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (/ (pow y 2) (pow (sqrt -1) 2)))) (+ (* 1/16 (* (sqrt (/ 1 (pow x 7))) (/ (pow y 3) (pow (sqrt -1) 4)))) (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) y)) (* (sqrt (/ 1 x)) (pow (sqrt -1) 2))))))) |
(* -1 (* x (- (* -1 (/ y x)) 1))) |
(+ (sqrt x) (* 1/2 (* (sqrt (/ 1 x)) y))) |
(+ (sqrt x) (* y (+ (* -1/8 (* (sqrt (/ 1 (pow x 3))) y)) (* 1/2 (sqrt (/ 1 x)))))) |
(+ (sqrt x) (* y (+ (* 1/2 (sqrt (/ 1 x))) (* y (+ (* -1/8 (sqrt (/ 1 (pow x 3)))) (* 1/16 (* (sqrt (/ 1 (pow x 5))) y))))))) |
(* y (+ (sqrt (/ 1 y)) (* 1/2 (* x (sqrt (/ 1 (pow y 3))))))) |
(* y (+ (sqrt (/ 1 y)) (+ (* -1/8 (* (pow x 2) (sqrt (/ 1 (pow y 5))))) (* 1/2 (* x (sqrt (/ 1 (pow y 3)))))))) |
(* y (+ (sqrt (/ 1 y)) (+ (* -1/8 (* (pow x 2) (sqrt (/ 1 (pow y 5))))) (+ (* 1/16 (* (pow x 3) (sqrt (/ 1 (pow y 7))))) (* 1/2 (* x (sqrt (/ 1 (pow y 3))))))))) |
(* y (+ 1 (/ x y))) |
(* -1 (* (sqrt y) (pow (sqrt -1) 2))) |
(* -1 (* y (+ (* 1/2 (* x (sqrt (/ 1 (pow y 3))))) (* (sqrt (/ 1 y)) (pow (sqrt -1) 2))))) |
(* -1 (* y (+ (* -1/8 (* (/ (pow x 2) (pow (sqrt -1) 2)) (sqrt (/ 1 (pow y 5))))) (+ (* 1/2 (* x (sqrt (/ 1 (pow y 3))))) (* (sqrt (/ 1 y)) (pow (sqrt -1) 2)))))) |
(* -1 (* y (+ (* -1/8 (* (/ (pow x 2) (pow (sqrt -1) 2)) (sqrt (/ 1 (pow y 5))))) (+ (* 1/16 (* (/ (pow x 3) (pow (sqrt -1) 4)) (sqrt (/ 1 (pow y 7))))) (+ (* 1/2 (* x (sqrt (/ 1 (pow y 3))))) (* (sqrt (/ 1 y)) (pow (sqrt -1) 2))))))) |
(* -1 (* y (- (* -1 (/ x y)) 1))) |
6 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 0.0ms | x | @ | -inf | ((sqrt (+ x y)) (+ x y)) |
| 0.0ms | y | @ | -inf | ((sqrt (+ x y)) (+ x y)) |
| 0.0ms | x | @ | inf | ((sqrt (+ x y)) (+ x y)) |
| 0.0ms | y | @ | inf | ((sqrt (+ x y)) (+ x y)) |
| 0.0ms | x | @ | 0 | ((sqrt (+ x y)) (+ x y)) |
| 1× | egg-herbie |
| Inputs |
|---|
(sqrt y) |
(+ (sqrt y) (* 1/2 (* x (sqrt (/ 1 y))))) |
(+ (sqrt y) (* x (+ (* -1/8 (* x (sqrt (/ 1 (pow y 3))))) (* 1/2 (sqrt (/ 1 y)))))) |
(+ (sqrt y) (* x (+ (* 1/2 (sqrt (/ 1 y))) (* x (+ (* -1/8 (sqrt (/ 1 (pow y 3)))) (* 1/16 (* x (sqrt (/ 1 (pow y 5)))))))))) |
y |
(+ x y) |
(sqrt x) |
(* x (+ (sqrt (/ 1 x)) (* 1/2 (* (sqrt (/ 1 (pow x 3))) y)))) |
(* x (+ (sqrt (/ 1 x)) (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (pow y 2))) (* 1/2 (* (sqrt (/ 1 (pow x 3))) y))))) |
(* x (+ (sqrt (/ 1 x)) (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (pow y 2))) (+ (* 1/16 (* (sqrt (/ 1 (pow x 7))) (pow y 3))) (* 1/2 (* (sqrt (/ 1 (pow x 3))) y)))))) |
x |
(* x (+ 1 (/ y x))) |
(* -1 (* (sqrt x) (pow (sqrt -1) 2))) |
(* -1 (* x (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) y)) (* (sqrt (/ 1 x)) (pow (sqrt -1) 2))))) |
(* -1 (* x (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (/ (pow y 2) (pow (sqrt -1) 2)))) (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) y)) (* (sqrt (/ 1 x)) (pow (sqrt -1) 2)))))) |
(* -1 (* x (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (/ (pow y 2) (pow (sqrt -1) 2)))) (+ (* 1/16 (* (sqrt (/ 1 (pow x 7))) (/ (pow y 3) (pow (sqrt -1) 4)))) (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) y)) (* (sqrt (/ 1 x)) (pow (sqrt -1) 2))))))) |
(* -1 (* x (- (* -1 (/ y x)) 1))) |
(+ (sqrt x) (* 1/2 (* (sqrt (/ 1 x)) y))) |
(+ (sqrt x) (* y (+ (* -1/8 (* (sqrt (/ 1 (pow x 3))) y)) (* 1/2 (sqrt (/ 1 x)))))) |
(+ (sqrt x) (* y (+ (* 1/2 (sqrt (/ 1 x))) (* y (+ (* -1/8 (sqrt (/ 1 (pow x 3)))) (* 1/16 (* (sqrt (/ 1 (pow x 5))) y))))))) |
(* y (+ (sqrt (/ 1 y)) (* 1/2 (* x (sqrt (/ 1 (pow y 3))))))) |
(* y (+ (sqrt (/ 1 y)) (+ (* -1/8 (* (pow x 2) (sqrt (/ 1 (pow y 5))))) (* 1/2 (* x (sqrt (/ 1 (pow y 3)))))))) |
(* y (+ (sqrt (/ 1 y)) (+ (* -1/8 (* (pow x 2) (sqrt (/ 1 (pow y 5))))) (+ (* 1/16 (* (pow x 3) (sqrt (/ 1 (pow y 7))))) (* 1/2 (* x (sqrt (/ 1 (pow y 3))))))))) |
(* y (+ 1 (/ x y))) |
(* -1 (* (sqrt y) (pow (sqrt -1) 2))) |
(* -1 (* y (+ (* 1/2 (* x (sqrt (/ 1 (pow y 3))))) (* (sqrt (/ 1 y)) (pow (sqrt -1) 2))))) |
(* -1 (* y (+ (* -1/8 (* (/ (pow x 2) (pow (sqrt -1) 2)) (sqrt (/ 1 (pow y 5))))) (+ (* 1/2 (* x (sqrt (/ 1 (pow y 3))))) (* (sqrt (/ 1 y)) (pow (sqrt -1) 2)))))) |
(* -1 (* y (+ (* -1/8 (* (/ (pow x 2) (pow (sqrt -1) 2)) (sqrt (/ 1 (pow y 5))))) (+ (* 1/16 (* (/ (pow x 3) (pow (sqrt -1) 4)) (sqrt (/ 1 (pow y 7))))) (+ (* 1/2 (* x (sqrt (/ 1 (pow y 3))))) (* (sqrt (/ 1 y)) (pow (sqrt -1) 2))))))) |
(* -1 (* y (- (* -1 (/ x y)) 1))) |
| Outputs |
|---|
(sqrt y) |
#s(approx (sqrt (+ x y)) (+.f64 x y)) |
(+ (sqrt y) (* 1/2 (* x (sqrt (/ 1 y))))) |
(+.f64 x y) |
| Inputs |
|---|
#s(approx (sqrt (+ x y)) (+.f64 x y)) |
(+.f64 x y) |
| Outputs |
|---|
#s(approx (sqrt (+ x y)) (+.f64 x y)) |
(+.f64 x y) |
Compiled 29 to 7 computations (75.9% saved)
2 alts after pruning (0 fresh and 2 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 3 | 0 | 3 |
| Fresh | 0 | 0 | 0 |
| Picked | 0 | 1 | 1 |
| Done | 0 | 1 | 1 |
| Total | 3 | 2 | 5 |
| Status | Accuracy | Program |
|---|---|---|
| ✓ | 100.0% | (sqrt.f64 (+.f64 x y)) |
| ✓ | 6.7% | #s(approx (sqrt (+ x y)) (+.f64 x y)) |
Compiled 24 to 17 computations (29.2% saved)
| Inputs |
|---|
#s(approx (sqrt (+ x y)) (+.f64 x y)) |
(sqrt.f64 (+.f64 x y)) |
| Outputs |
|---|
(sqrt.f64 (+.f64 x y)) |
4 calls:
| 1.0ms | (sqrt.f64 (+.f64 x y)) |
| 1.0ms | (+.f64 x y) |
| 1.0ms | y |
| 1.0ms | x |
| Accuracy | Segments | Branch |
|---|---|---|
| 100.0% | 1 | x |
| 100.0% | 1 | y |
| 100.0% | 1 | (sqrt.f64 (+.f64 x y)) |
| 100.0% | 1 | (+.f64 x y) |
Compiled 9 to 11 computations (-22.2% saved)
Total -0.0b remaining (-0%)
Threshold costs -0b (-0%)
| Inputs |
|---|
#s(approx (sqrt (+ x y)) (+.f64 x y)) |
| Outputs |
|---|
#s(approx (sqrt (+ x y)) (+.f64 x y)) |
4 calls:
| 3.0ms | y |
| 1.0ms | x |
| 1.0ms | (sqrt.f64 (+.f64 x y)) |
| 1.0ms | (+.f64 x y) |
| Accuracy | Segments | Branch |
|---|---|---|
| 6.7% | 1 | x |
| 6.7% | 1 | y |
| 6.7% | 1 | (sqrt.f64 (+.f64 x y)) |
| 6.7% | 1 | (+.f64 x y) |
Compiled 9 to 11 computations (-22.2% saved)
| 1× | egg-herbie |
| Inputs |
|---|
(sqrt.f64 (+.f64 x y)) |
#s(approx (sqrt (+ x y)) (+.f64 x y)) |
| Outputs |
|---|
(sqrt.f64 (+.f64 x y)) |
#s(approx (sqrt (+ x y)) (+.f64 x y)) |
| 1× | done |
Compiled 12 to 7 computations (41.7% saved)
Compiled 32 to 22 computations (31.3% saved)
Loading profile data...