
Time bar (total: 793.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 |
| 50% | 50% | 50% | 0.1% | 0% | 0% | 0% | 3 |
| 50% | 50% | 50% | 0.1% | 0% | 0% | 0% | 4 |
| 62.5% | 62.4% | 37.5% | 0.1% | 0% | 0% | 0% | 5 |
| 66.7% | 62.4% | 31.2% | 0.1% | 0% | 6.2% | 0% | 6 |
| 75% | 65.6% | 21.9% | 0.1% | 0% | 12.5% | 0% | 7 |
| 80% | 68.7% | 17.2% | 0.1% | 0% | 14% | 0% | 8 |
| 85.7% | 70.2% | 11.7% | 0.1% | 0% | 18% | 0% | 9 |
| 88.9% | 71.8% | 9% | 0.1% | 0% | 19.1% | 0% | 10 |
| 92.3% | 72.6% | 6% | 0.1% | 0% | 21.3% | 0% | 11 |
| 94.1% | 73.4% | 4.6% | 0.1% | 0% | 22% | 0% | 12 |
Compiled 8 to 7 computations (12.5% saved)
| 372.0ms | 8 256× | 0 | valid |
| 13.0ms | 315× | 0 | invalid |
ival-mult: 71.0ms (35.5% of total)ival-sqrt: 68.0ms (34% of total)ival-add: 51.0ms (25.5% of total)ival-true: 7.0ms (3.5% of total)ival-assert: 4.0ms (2% of total)| Ground Truth | Overpredictions | Example | Underpredictions | Example | Subexpression |
|---|---|---|---|---|---|
| 94 | 0 | - | 0 | - | (sqrt.f64 (+.f64 (*.f64 x x) y)) |
| 0 | 0 | - | 0 | - | (+.f64 (*.f64 x x) y) |
| 0 | 0 | - | 0 | - | y |
| 0 | 0 | - | 0 | - | (*.f64 x x) |
| 0 | 0 | - | 0 | - | x |
| Operator | Subexpression | Explanation | Count | |
|---|---|---|---|---|
sqrt.f64 | (sqrt.f64 (+.f64 (*.f64 x x) y)) | oflow-rescue | 94 | 0 |
| ↳ | (+.f64 (*.f64 x x) y) | overflow | 94 | |
| ↳ | (*.f64 x x) | overflow | 94 |
| Predicted + | Predicted - | |
|---|---|---|
| + | 94 | 0 |
| - | 0 | 162 |
| Predicted + | Predicted Maybe | Predicted - | |
|---|---|---|---|
| + | 94 | 0 | 0 |
| - | 0 | 0 | 162 |
| number | freq |
|---|---|
| 0 | 162 |
| 1 | 94 |
| Predicted + | Predicted Maybe | Predicted - | |
|---|---|---|---|
| + | 1 | 0 | 0 |
| - | 0 | 0 | 0 |
| 23.0ms | 512× | 0 | valid |
Compiled 58 to 24 computations (58.6% saved)
ival-sqrt: 5.0ms (42.3% of total)ival-mult: 4.0ms (33.8% of total)ival-add: 2.0ms (16.9% of total)ival-true: 0.0ms (0% of total)ival-assert: 0.0ms (0% of total)| 1× | egg-herbie |
| Inputs |
|---|
(sqrt.f64 (+.f64 (*.f64 x x) y)) |
| Outputs |
|---|
(sqrt.f64 (+.f64 (*.f64 x x) y)) |
Compiled 6 to 5 computations (16.7% saved)
Compiled 0 to 2 computations (-∞% saved)
| Status | Accuracy | Program |
|---|---|---|
| ▶ | 65.7% | (sqrt.f64 (+.f64 (*.f64 x x) y)) |
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 (*.f64 x x) y) | |
| cost-diff | 0 | (sqrt.f64 (+.f64 (*.f64 x x) y)) |
| Inputs |
|---|
(sqrt.f64 (+.f64 (*.f64 x x) y)) |
(+.f64 (*.f64 x x) y) |
(*.f64 x x) |
x |
y |
| Outputs |
|---|
(sqrt.f64 (+.f64 (*.f64 x x) y)) |
(+.f64 (*.f64 x x) y) |
(*.f64 x x) |
x |
y |
Found 3 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| accuracy | 0.0 | (*.f64 x x) | |
| accuracy | 0.00390625 | (+.f64 (*.f64 x x) y) | |
| accuracy | 21.957160346264658 | (sqrt.f64 (+.f64 (*.f64 x x) y)) |
| 11.0ms | 256× | 0 | valid |
Compiled 34 to 12 computations (64.7% saved)
ival-mult: 2.0ms (37.7% of total)ival-sqrt: 2.0ms (37.7% of total)ival-add: 1.0ms (18.8% of total)ival-true: 0.0ms (0% of total)ival-assert: 0.0ms (0% of total)| Inputs |
|---|
(sqrt.f64 (+.f64 (*.f64 x x) y)) |
(+.f64 (*.f64 x x) y) |
(*.f64 x x) |
| Outputs |
|---|
(sqrt y) |
(+ (sqrt y) (* 1/2 (* (pow x 2) (sqrt (/ 1 y))))) |
(+ (sqrt y) (* (pow x 2) (+ (* -1/8 (* (pow x 2) (sqrt (/ 1 (pow y 3))))) (* 1/2 (sqrt (/ 1 y)))))) |
(+ (sqrt y) (* (pow x 2) (+ (* 1/2 (sqrt (/ 1 y))) (* (pow x 2) (+ (* -1/8 (sqrt (/ 1 (pow y 3)))) (* 1/16 (* (pow x 2) (sqrt (/ 1 (pow y 5)))))))))) |
y |
(+ y (pow x 2)) |
(pow x 2) |
x |
(* x (+ 1 (* 1/2 (/ y (pow x 2))))) |
(* x (+ 1 (+ (* -1/8 (/ (pow y 2) (pow x 4))) (* 1/2 (/ y (pow x 2)))))) |
(* x (+ 1 (+ (* -1/8 (/ (pow y 2) (pow x 4))) (+ (* 1/16 (/ (pow y 3) (pow x 6))) (* 1/2 (/ y (pow x 2))))))) |
(* (pow x 2) (+ 1 (/ y (pow x 2)))) |
(* -1 x) |
(* -1 (* x (+ 1 (* 1/2 (/ y (pow x 2)))))) |
(* -1 (* x (+ 1 (+ (* -1/8 (/ (pow y 2) (pow x 4))) (* 1/2 (/ y (pow x 2))))))) |
(* -1 (* x (+ 1 (+ (* -1/8 (/ (pow y 2) (pow x 4))) (+ (* 1/16 (/ (pow y 3) (pow x 6))) (* 1/2 (/ y (pow x 2)))))))) |
(+ x (* 1/2 (/ y x))) |
(+ x (* y (+ (* -1/8 (/ y (pow x 3))) (* 1/2 (/ 1 x))))) |
(+ x (* y (+ (* y (- (* 1/16 (/ y (pow x 5))) (* 1/8 (/ 1 (pow x 3))))) (* 1/2 (/ 1 x))))) |
(* y (+ (sqrt (/ 1 y)) (* 1/2 (* (pow x 2) (sqrt (/ 1 (pow y 3))))))) |
(* y (+ (sqrt (/ 1 y)) (+ (* -1/8 (* (pow x 4) (sqrt (/ 1 (pow y 5))))) (* 1/2 (* (pow x 2) (sqrt (/ 1 (pow y 3)))))))) |
(* y (+ (sqrt (/ 1 y)) (+ (* -1/8 (* (pow x 4) (sqrt (/ 1 (pow y 5))))) (+ (* 1/16 (* (pow x 6) (sqrt (/ 1 (pow y 7))))) (* 1/2 (* (pow x 2) (sqrt (/ 1 (pow y 3))))))))) |
(* y (+ 1 (/ (pow x 2) y))) |
(* -1 (* (sqrt y) (pow (sqrt -1) 2))) |
(* -1 (* y (+ (* 1/2 (* (pow x 2) (sqrt (/ 1 (pow y 3))))) (* (sqrt (/ 1 y)) (pow (sqrt -1) 2))))) |
(* -1 (* y (+ (* -1/8 (* (/ (pow x 4) (pow (sqrt -1) 2)) (sqrt (/ 1 (pow y 5))))) (+ (* 1/2 (* (pow x 2) (sqrt (/ 1 (pow y 3))))) (* (sqrt (/ 1 y)) (pow (sqrt -1) 2)))))) |
(* -1 (* y (+ (* -1/8 (* (/ (pow x 4) (pow (sqrt -1) 2)) (sqrt (/ 1 (pow y 5))))) (+ (* 1/16 (* (/ (pow x 6) (pow (sqrt -1) 4)) (sqrt (/ 1 (pow y 7))))) (+ (* 1/2 (* (pow x 2) (sqrt (/ 1 (pow y 3))))) (* (sqrt (/ 1 y)) (pow (sqrt -1) 2))))))) |
(* -1 (* y (- (* -1 (/ (pow x 2) y)) 1))) |
6 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 1.0ms | y | @ | -inf | ((sqrt (+ (* x x) y)) (+ (* x x) y) (* x x)) |
| 1.0ms | x | @ | inf | ((sqrt (+ (* x x) y)) (+ (* x x) y) (* x x)) |
| 1.0ms | x | @ | 0 | ((sqrt (+ (* x x) y)) (+ (* x x) y) (* x x)) |
| 1.0ms | y | @ | inf | ((sqrt (+ (* x x) y)) (+ (* x x) y) (* x x)) |
| 1.0ms | y | @ | 0 | ((sqrt (+ (* x x) y)) (+ (* x x) y) (* x x)) |
| 1× | egg-herbie |
| Inputs |
|---|
(sqrt y) |
(+ (sqrt y) (* 1/2 (* (pow x 2) (sqrt (/ 1 y))))) |
(+ (sqrt y) (* (pow x 2) (+ (* -1/8 (* (pow x 2) (sqrt (/ 1 (pow y 3))))) (* 1/2 (sqrt (/ 1 y)))))) |
(+ (sqrt y) (* (pow x 2) (+ (* 1/2 (sqrt (/ 1 y))) (* (pow x 2) (+ (* -1/8 (sqrt (/ 1 (pow y 3)))) (* 1/16 (* (pow x 2) (sqrt (/ 1 (pow y 5)))))))))) |
y |
(+ y (pow x 2)) |
(pow x 2) |
x |
(* x (+ 1 (* 1/2 (/ y (pow x 2))))) |
(* x (+ 1 (+ (* -1/8 (/ (pow y 2) (pow x 4))) (* 1/2 (/ y (pow x 2)))))) |
(* x (+ 1 (+ (* -1/8 (/ (pow y 2) (pow x 4))) (+ (* 1/16 (/ (pow y 3) (pow x 6))) (* 1/2 (/ y (pow x 2))))))) |
(* (pow x 2) (+ 1 (/ y (pow x 2)))) |
(* -1 x) |
(* -1 (* x (+ 1 (* 1/2 (/ y (pow x 2)))))) |
(* -1 (* x (+ 1 (+ (* -1/8 (/ (pow y 2) (pow x 4))) (* 1/2 (/ y (pow x 2))))))) |
(* -1 (* x (+ 1 (+ (* -1/8 (/ (pow y 2) (pow x 4))) (+ (* 1/16 (/ (pow y 3) (pow x 6))) (* 1/2 (/ y (pow x 2)))))))) |
(+ x (* 1/2 (/ y x))) |
(+ x (* y (+ (* -1/8 (/ y (pow x 3))) (* 1/2 (/ 1 x))))) |
(+ x (* y (+ (* y (- (* 1/16 (/ y (pow x 5))) (* 1/8 (/ 1 (pow x 3))))) (* 1/2 (/ 1 x))))) |
(* y (+ (sqrt (/ 1 y)) (* 1/2 (* (pow x 2) (sqrt (/ 1 (pow y 3))))))) |
(* y (+ (sqrt (/ 1 y)) (+ (* -1/8 (* (pow x 4) (sqrt (/ 1 (pow y 5))))) (* 1/2 (* (pow x 2) (sqrt (/ 1 (pow y 3)))))))) |
(* y (+ (sqrt (/ 1 y)) (+ (* -1/8 (* (pow x 4) (sqrt (/ 1 (pow y 5))))) (+ (* 1/16 (* (pow x 6) (sqrt (/ 1 (pow y 7))))) (* 1/2 (* (pow x 2) (sqrt (/ 1 (pow y 3))))))))) |
(* y (+ 1 (/ (pow x 2) y))) |
(* -1 (* (sqrt y) (pow (sqrt -1) 2))) |
(* -1 (* y (+ (* 1/2 (* (pow x 2) (sqrt (/ 1 (pow y 3))))) (* (sqrt (/ 1 y)) (pow (sqrt -1) 2))))) |
(* -1 (* y (+ (* -1/8 (* (/ (pow x 4) (pow (sqrt -1) 2)) (sqrt (/ 1 (pow y 5))))) (+ (* 1/2 (* (pow x 2) (sqrt (/ 1 (pow y 3))))) (* (sqrt (/ 1 y)) (pow (sqrt -1) 2)))))) |
(* -1 (* y (+ (* -1/8 (* (/ (pow x 4) (pow (sqrt -1) 2)) (sqrt (/ 1 (pow y 5))))) (+ (* 1/16 (* (/ (pow x 6) (pow (sqrt -1) 4)) (sqrt (/ 1 (pow y 7))))) (+ (* 1/2 (* (pow x 2) (sqrt (/ 1 (pow y 3))))) (* (sqrt (/ 1 y)) (pow (sqrt -1) 2))))))) |
(* -1 (* y (- (* -1 (/ (pow x 2) y)) 1))) |
| Outputs |
|---|
(sqrt y) |
(sqrt.f64 (+.f64 (*.f64 x x) y)) |
(+ (sqrt y) (* 1/2 (* (pow x 2) (sqrt (/ 1 y))))) |
(+.f64 (*.f64 x x) y) |
(+ (sqrt y) (* (pow x 2) (+ (* -1/8 (* (pow x 2) (sqrt (/ 1 (pow y 3))))) (* 1/2 (sqrt (/ 1 y)))))) |
(*.f64 x x) |
| Inputs |
|---|
(sqrt.f64 (+.f64 (*.f64 x x) y)) |
(+.f64 (*.f64 x x) y) |
(*.f64 x x) |
| Outputs |
|---|
(sqrt.f64 (+.f64 (*.f64 x x) y)) |
(+.f64 (*.f64 x x) y) |
(*.f64 x x) |
Compiled 53 to 11 computations (79.2% saved)
3 alts after pruning (2 fresh and 1 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 4 | 2 | 6 |
| Fresh | 0 | 0 | 0 |
| Picked | 0 | 1 | 1 |
| Done | 0 | 0 | 0 |
| Total | 4 | 3 | 7 |
| Status | Accuracy | Program |
|---|---|---|
| ✓ | 65.7% | (sqrt.f64 (+.f64 (*.f64 x x) y)) |
| ▶ | 6.7% | #s(approx (sqrt (+ (* x x) y)) (+.f64 (*.f64 x x) y)) |
| ▶ | 5.9% | #s(approx (sqrt (+ (* x x) y)) (*.f64 x x)) |
Compiled 28 to 20 computations (28.6% saved)
| 1× | egg-herbie |
Found 5 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| cost-diff | 0 | (*.f64 x x) | |
| cost-diff | 0 | (+.f64 (*.f64 x x) y) | |
| cost-diff | 0 | #s(approx (sqrt (+ (* x x) y)) (+.f64 (*.f64 x x) y)) | |
| cost-diff | 0 | (*.f64 x x) | |
| cost-diff | 0 | #s(approx (sqrt (+ (* x x) y)) (*.f64 x x)) |
| Inputs |
|---|
#s(approx (sqrt (+ (* x x) y)) (*.f64 x x)) |
(*.f64 x x) |
x |
#s(approx (sqrt (+ (* x x) y)) (+.f64 (*.f64 x x) y)) |
(+.f64 (*.f64 x x) y) |
(*.f64 x x) |
x |
y |
| Outputs |
|---|
#s(approx (sqrt (+ (* x x) y)) (*.f64 x x)) |
(*.f64 x x) |
x |
#s(approx (sqrt (+ (* x x) y)) (+.f64 (*.f64 x x) y)) |
(+.f64 (*.f64 x x) y) |
(*.f64 x x) |
x |
y |
Found 5 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| accuracy | 0.0 | (*.f64 x x) | |
| accuracy | 0.00390625 | (+.f64 (*.f64 x x) y) | |
| accuracy | 59.71322172754641 | #s(approx (sqrt (+ (* x x) y)) (+.f64 (*.f64 x x) y)) | |
| accuracy | 0.0 | (*.f64 x x) | |
| accuracy | 60.24264412447722 | #s(approx (sqrt (+ (* x x) y)) (*.f64 x x)) |
| 12.0ms | 256× | 0 | valid |
Compiled 64 to 16 computations (75% saved)
ival-mult: 2.0ms (37.5% of total)ival-sqrt: 2.0ms (37.5% of total)ival-add: 1.0ms (18.7% of total)ival-true: 0.0ms (0% of total)ival-assert: 0.0ms (0% of total)| Inputs |
|---|
#s(approx (sqrt (+ (* x x) y)) (*.f64 x x)) |
(*.f64 x x) |
#s(approx (sqrt (+ (* x x) y)) (+.f64 (*.f64 x x) y)) |
(+.f64 (*.f64 x x) y) |
| Outputs |
|---|
(sqrt y) |
(+ (sqrt y) (* 1/2 (* (pow x 2) (sqrt (/ 1 y))))) |
(+ (sqrt y) (* (pow x 2) (+ (* -1/8 (* (pow x 2) (sqrt (/ 1 (pow y 3))))) (* 1/2 (sqrt (/ 1 y)))))) |
(+ (sqrt y) (* (pow x 2) (+ (* 1/2 (sqrt (/ 1 y))) (* (pow x 2) (+ (* -1/8 (sqrt (/ 1 (pow y 3)))) (* 1/16 (* (pow x 2) (sqrt (/ 1 (pow y 5)))))))))) |
(pow x 2) |
y |
(+ y (pow x 2)) |
x |
(* x (+ 1 (* 1/2 (/ y (pow x 2))))) |
(* x (+ 1 (+ (* -1/8 (/ (pow y 2) (pow x 4))) (* 1/2 (/ y (pow x 2)))))) |
(* x (+ 1 (+ (* -1/8 (/ (pow y 2) (pow x 4))) (+ (* 1/16 (/ (pow y 3) (pow x 6))) (* 1/2 (/ y (pow x 2))))))) |
(* (pow x 2) (+ 1 (/ y (pow x 2)))) |
(* -1 x) |
(* -1 (* x (+ 1 (* 1/2 (/ y (pow x 2)))))) |
(* -1 (* x (+ 1 (+ (* -1/8 (/ (pow y 2) (pow x 4))) (* 1/2 (/ y (pow x 2))))))) |
(* -1 (* x (+ 1 (+ (* -1/8 (/ (pow y 2) (pow x 4))) (+ (* 1/16 (/ (pow y 3) (pow x 6))) (* 1/2 (/ y (pow x 2)))))))) |
(+ x (* 1/2 (/ y x))) |
(+ x (* y (+ (* -1/8 (/ y (pow x 3))) (* 1/2 (/ 1 x))))) |
(+ x (* y (+ (* y (- (* 1/16 (/ y (pow x 5))) (* 1/8 (/ 1 (pow x 3))))) (* 1/2 (/ 1 x))))) |
(* y (+ (sqrt (/ 1 y)) (* 1/2 (* (pow x 2) (sqrt (/ 1 (pow y 3))))))) |
(* y (+ (sqrt (/ 1 y)) (+ (* -1/8 (* (pow x 4) (sqrt (/ 1 (pow y 5))))) (* 1/2 (* (pow x 2) (sqrt (/ 1 (pow y 3)))))))) |
(* y (+ (sqrt (/ 1 y)) (+ (* -1/8 (* (pow x 4) (sqrt (/ 1 (pow y 5))))) (+ (* 1/16 (* (pow x 6) (sqrt (/ 1 (pow y 7))))) (* 1/2 (* (pow x 2) (sqrt (/ 1 (pow y 3))))))))) |
(* y (+ 1 (/ (pow x 2) y))) |
(* -1 (* (sqrt y) (pow (sqrt -1) 2))) |
(* -1 (* y (+ (* 1/2 (* (pow x 2) (sqrt (/ 1 (pow y 3))))) (* (sqrt (/ 1 y)) (pow (sqrt -1) 2))))) |
(* -1 (* y (+ (* -1/8 (* (/ (pow x 4) (pow (sqrt -1) 2)) (sqrt (/ 1 (pow y 5))))) (+ (* 1/2 (* (pow x 2) (sqrt (/ 1 (pow y 3))))) (* (sqrt (/ 1 y)) (pow (sqrt -1) 2)))))) |
(* -1 (* y (+ (* -1/8 (* (/ (pow x 4) (pow (sqrt -1) 2)) (sqrt (/ 1 (pow y 5))))) (+ (* 1/16 (* (/ (pow x 6) (pow (sqrt -1) 4)) (sqrt (/ 1 (pow y 7))))) (+ (* 1/2 (* (pow x 2) (sqrt (/ 1 (pow y 3))))) (* (sqrt (/ 1 y)) (pow (sqrt -1) 2))))))) |
(* -1 (* y (- (* -1 (/ (pow x 2) y)) 1))) |
6 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 0.0ms | x | @ | inf | ((sqrt (+ (* x x) y)) (* x x) (sqrt (+ (* x x) y)) (+ (* x x) y)) |
| 0.0ms | x | @ | -inf | ((sqrt (+ (* x x) y)) (* x x) (sqrt (+ (* x x) y)) (+ (* x x) y)) |
| 0.0ms | y | @ | -inf | ((sqrt (+ (* x x) y)) (* x x) (sqrt (+ (* x x) y)) (+ (* x x) y)) |
| 0.0ms | x | @ | 0 | ((sqrt (+ (* x x) y)) (* x x) (sqrt (+ (* x x) y)) (+ (* x x) y)) |
| 0.0ms | y | @ | inf | ((sqrt (+ (* x x) y)) (* x x) (sqrt (+ (* x x) y)) (+ (* x x) y)) |
| 1× | egg-herbie |
| Inputs |
|---|
(sqrt y) |
(+ (sqrt y) (* 1/2 (* (pow x 2) (sqrt (/ 1 y))))) |
(+ (sqrt y) (* (pow x 2) (+ (* -1/8 (* (pow x 2) (sqrt (/ 1 (pow y 3))))) (* 1/2 (sqrt (/ 1 y)))))) |
(+ (sqrt y) (* (pow x 2) (+ (* 1/2 (sqrt (/ 1 y))) (* (pow x 2) (+ (* -1/8 (sqrt (/ 1 (pow y 3)))) (* 1/16 (* (pow x 2) (sqrt (/ 1 (pow y 5)))))))))) |
(pow x 2) |
y |
(+ y (pow x 2)) |
x |
(* x (+ 1 (* 1/2 (/ y (pow x 2))))) |
(* x (+ 1 (+ (* -1/8 (/ (pow y 2) (pow x 4))) (* 1/2 (/ y (pow x 2)))))) |
(* x (+ 1 (+ (* -1/8 (/ (pow y 2) (pow x 4))) (+ (* 1/16 (/ (pow y 3) (pow x 6))) (* 1/2 (/ y (pow x 2))))))) |
(* (pow x 2) (+ 1 (/ y (pow x 2)))) |
(* -1 x) |
(* -1 (* x (+ 1 (* 1/2 (/ y (pow x 2)))))) |
(* -1 (* x (+ 1 (+ (* -1/8 (/ (pow y 2) (pow x 4))) (* 1/2 (/ y (pow x 2))))))) |
(* -1 (* x (+ 1 (+ (* -1/8 (/ (pow y 2) (pow x 4))) (+ (* 1/16 (/ (pow y 3) (pow x 6))) (* 1/2 (/ y (pow x 2)))))))) |
(+ x (* 1/2 (/ y x))) |
(+ x (* y (+ (* -1/8 (/ y (pow x 3))) (* 1/2 (/ 1 x))))) |
(+ x (* y (+ (* y (- (* 1/16 (/ y (pow x 5))) (* 1/8 (/ 1 (pow x 3))))) (* 1/2 (/ 1 x))))) |
(* y (+ (sqrt (/ 1 y)) (* 1/2 (* (pow x 2) (sqrt (/ 1 (pow y 3))))))) |
(* y (+ (sqrt (/ 1 y)) (+ (* -1/8 (* (pow x 4) (sqrt (/ 1 (pow y 5))))) (* 1/2 (* (pow x 2) (sqrt (/ 1 (pow y 3)))))))) |
(* y (+ (sqrt (/ 1 y)) (+ (* -1/8 (* (pow x 4) (sqrt (/ 1 (pow y 5))))) (+ (* 1/16 (* (pow x 6) (sqrt (/ 1 (pow y 7))))) (* 1/2 (* (pow x 2) (sqrt (/ 1 (pow y 3))))))))) |
(* y (+ 1 (/ (pow x 2) y))) |
(* -1 (* (sqrt y) (pow (sqrt -1) 2))) |
(* -1 (* y (+ (* 1/2 (* (pow x 2) (sqrt (/ 1 (pow y 3))))) (* (sqrt (/ 1 y)) (pow (sqrt -1) 2))))) |
(* -1 (* y (+ (* -1/8 (* (/ (pow x 4) (pow (sqrt -1) 2)) (sqrt (/ 1 (pow y 5))))) (+ (* 1/2 (* (pow x 2) (sqrt (/ 1 (pow y 3))))) (* (sqrt (/ 1 y)) (pow (sqrt -1) 2)))))) |
(* -1 (* y (+ (* -1/8 (* (/ (pow x 4) (pow (sqrt -1) 2)) (sqrt (/ 1 (pow y 5))))) (+ (* 1/16 (* (/ (pow x 6) (pow (sqrt -1) 4)) (sqrt (/ 1 (pow y 7))))) (+ (* 1/2 (* (pow x 2) (sqrt (/ 1 (pow y 3))))) (* (sqrt (/ 1 y)) (pow (sqrt -1) 2))))))) |
(* -1 (* y (- (* -1 (/ (pow x 2) y)) 1))) |
| Outputs |
|---|
(sqrt y) |
#s(approx (sqrt (+ (* x x) y)) (*.f64 x x)) |
(+ (sqrt y) (* 1/2 (* (pow x 2) (sqrt (/ 1 y))))) |
(*.f64 x x) |
(+ (sqrt y) (* (pow x 2) (+ (* -1/8 (* (pow x 2) (sqrt (/ 1 (pow y 3))))) (* 1/2 (sqrt (/ 1 y)))))) |
#s(approx (sqrt (+ (* x x) y)) (+.f64 (*.f64 x x) y)) |
(+ (sqrt y) (* (pow x 2) (+ (* 1/2 (sqrt (/ 1 y))) (* (pow x 2) (+ (* -1/8 (sqrt (/ 1 (pow y 3)))) (* 1/16 (* (pow x 2) (sqrt (/ 1 (pow y 5)))))))))) |
(+.f64 (*.f64 x x) y) |
| Inputs |
|---|
#s(approx (sqrt (+ (* x x) y)) (*.f64 x x)) |
(*.f64 x x) |
#s(approx (sqrt (+ (* x x) y)) (+.f64 (*.f64 x x) y)) |
(+.f64 (*.f64 x x) y) |
| Outputs |
|---|
#s(approx (sqrt (+ (* x x) y)) (*.f64 x x)) |
(*.f64 x x) |
#s(approx (sqrt (+ (* x x) y)) (+.f64 (*.f64 x x) y)) |
(+.f64 (*.f64 x x) y) |
Compiled 92 to 11 computations (88% saved)
3 alts after pruning (0 fresh and 3 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 7 | 0 | 7 |
| Fresh | 0 | 0 | 0 |
| Picked | 0 | 2 | 2 |
| Done | 0 | 1 | 1 |
| Total | 7 | 3 | 10 |
| Status | Accuracy | Program |
|---|---|---|
| ✓ | 65.7% | (sqrt.f64 (+.f64 (*.f64 x x) y)) |
| ✓ | 6.7% | #s(approx (sqrt (+ (* x x) y)) (+.f64 (*.f64 x x) y)) |
| ✓ | 5.9% | #s(approx (sqrt (+ (* x x) y)) (*.f64 x x)) |
Compiled 56 to 30 computations (46.4% saved)
| Inputs |
|---|
#s(approx (sqrt (+ (* x x) y)) (*.f64 x x)) |
#s(approx (sqrt (+ (* x x) y)) (+.f64 (*.f64 x x) y)) |
(sqrt.f64 (+.f64 (*.f64 x x) y)) |
| Outputs |
|---|
(sqrt.f64 (+.f64 (*.f64 x x) y)) |
5 calls:
| 2.0ms | y |
| 2.0ms | x |
| 2.0ms | (sqrt.f64 (+.f64 (*.f64 x x) y)) |
| 2.0ms | (+.f64 (*.f64 x x) y) |
| 1.0ms | (*.f64 x x) |
| Accuracy | Segments | Branch |
|---|---|---|
| 65.7% | 1 | x |
| 65.7% | 1 | y |
| 65.7% | 1 | (sqrt.f64 (+.f64 (*.f64 x x) y)) |
| 65.7% | 1 | (+.f64 (*.f64 x x) y) |
| 65.7% | 1 | (*.f64 x x) |
Compiled 16 to 16 computations (0% saved)
| Inputs |
|---|
#s(approx (sqrt (+ (* x x) y)) (*.f64 x x)) |
#s(approx (sqrt (+ (* x x) y)) (+.f64 (*.f64 x x) y)) |
| Outputs |
|---|
#s(approx (sqrt (+ (* x x) y)) (+.f64 (*.f64 x x) y)) |
5 calls:
| 1.0ms | y |
| 1.0ms | (+.f64 (*.f64 x x) y) |
| 1.0ms | (sqrt.f64 (+.f64 (*.f64 x x) y)) |
| 1.0ms | x |
| 1.0ms | (*.f64 x x) |
| Accuracy | Segments | Branch |
|---|---|---|
| 6.7% | 1 | y |
| 6.7% | 1 | x |
| 6.7% | 1 | (sqrt.f64 (+.f64 (*.f64 x x) y)) |
| 6.7% | 1 | (+.f64 (*.f64 x x) y) |
| 6.7% | 1 | (*.f64 x x) |
Compiled 16 to 16 computations (0% saved)
Total -0.0b remaining (-0%)
Threshold costs -0b (-0%)
| Inputs |
|---|
#s(approx (sqrt (+ (* x x) y)) (*.f64 x x)) |
| Outputs |
|---|
#s(approx (sqrt (+ (* x x) y)) (*.f64 x x)) |
5 calls:
| 2.0ms | (sqrt.f64 (+.f64 (*.f64 x x) y)) |
| 1.0ms | y |
| 1.0ms | x |
| 1.0ms | (+.f64 (*.f64 x x) y) |
| 1.0ms | (*.f64 x x) |
| Accuracy | Segments | Branch |
|---|---|---|
| 5.9% | 1 | x |
| 5.9% | 1 | y |
| 5.9% | 1 | (sqrt.f64 (+.f64 (*.f64 x x) y)) |
| 5.9% | 1 | (+.f64 (*.f64 x x) y) |
| 5.9% | 1 | (*.f64 x x) |
Compiled 16 to 16 computations (0% saved)
| 1× | egg-herbie |
| Inputs |
|---|
(sqrt.f64 (+.f64 (*.f64 x x) y)) |
#s(approx (sqrt (+ (* x x) y)) (+.f64 (*.f64 x x) y)) |
#s(approx (sqrt (+ (* x x) y)) (*.f64 x x)) |
| Outputs |
|---|
(sqrt.f64 (+.f64 (*.f64 x x) y)) |
#s(approx (sqrt (+ (* x x) y)) (+.f64 (*.f64 x x) y)) |
#s(approx (sqrt (+ (* x x) y)) (*.f64 x x)) |
| 1× | done |
Compiled 28 to 10 computations (64.3% saved)
Compiled 126 to 62 computations (50.8% saved)
Loading profile data...