
Time bar (total: 1.1s)
| 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 |
| 68.8% | 68.7% | 31.2% | 0.1% | 0% | 0% | 0% | 6 |
| 78.1% | 78% | 21.9% | 0.1% | 0% | 0% | 0% | 7 |
| 82.8% | 82.7% | 17.2% | 0.1% | 0% | 0% | 0% | 8 |
| 88.3% | 88.2% | 11.7% | 0.1% | 0% | 0% | 0% | 9 |
| 91% | 90.9% | 9% | 0.1% | 0% | 0% | 0% | 10 |
| 93.9% | 93.9% | 6% | 0.1% | 0% | 0% | 0% | 11 |
| 95.4% | 95.3% | 4.6% | 0.1% | 0% | 0% | 0% | 12 |
Compiled 13 to 11 computations (15.4% saved)
| 461.0ms | 8 254× | 0 | valid |
| 0.0ms | 2× | 1 | valid |
ival-div: 108.0ms (39.8% of total)ival-mult: 62.0ms (22.9% of total)ival-add: 42.0ms (15.5% of total)ival-sub: 41.0ms (15.1% of total)exact: 8.0ms (2.9% of total)ival-true: 7.0ms (2.6% of total)ival-assert: 3.0ms (1.1% of total)adjust: 0.0ms (0% of total)| Ground Truth | Overpredictions | Example | Underpredictions | Example | Subexpression |
|---|---|---|---|---|---|
| 28 | 0 | - | 0 | - | (/.f64 y (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64)))) |
| 0 | 0 | - | 0 | - | (/.f64 (*.f64 x y) #s(literal 2 binary64)) |
| 0 | 0 | - | 0 | - | #s(literal 1 binary64) |
| 0 | 0 | - | 0 | - | (*.f64 x y) |
| 0 | 0 | - | 0 | - | (-.f64 x (/.f64 y (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64))))) |
| 0 | 0 | - | 0 | - | (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64))) |
| 0 | 0 | - | 0 | - | #s(literal 2 binary64) |
| 0 | 0 | - | 0 | - | 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 |
| 34.0ms | 512× | 0 | valid |
Compiled 132 to 40 computations (69.7% saved)
ival-div: 9.0ms (47.2% of total)ival-mult: 4.0ms (21% of total)ival-sub: 2.0ms (10.5% of total)ival-add: 2.0ms (10.5% of total)exact: 1.0ms (5.2% of total)ival-true: 0.0ms (0% of total)ival-assert: 0.0ms (0% of total)| 1× | egg-herbie |
| Inputs |
|---|
(-.f64 x (/.f64 y (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64))))) |
| Outputs |
|---|
(-.f64 x (/.f64 y (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64))))) |
Compiled 11 to 9 computations (18.2% saved)
Compiled 0 to 2 computations (-∞% saved)
| Status | Accuracy | Program |
|---|---|---|
| ▶ | 99.9% | (-.f64 x (/.f64 y (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64))))) |
Compiled 11 to 9 computations (18.2% saved)
| 1× | egg-herbie |
Found 4 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| cost-diff | 0 | (/.f64 (*.f64 x y) #s(literal 2 binary64)) | |
| cost-diff | 0 | (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64))) | |
| cost-diff | 0 | (/.f64 y (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64)))) | |
| cost-diff | 0 | (-.f64 x (/.f64 y (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64))))) |
| Inputs |
|---|
(-.f64 x (/.f64 y (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64))))) |
x |
(/.f64 y (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64)))) |
y |
(+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64))) |
#s(literal 1 binary64) |
(/.f64 (*.f64 x y) #s(literal 2 binary64)) |
(*.f64 x y) |
#s(literal 2 binary64) |
| Outputs |
|---|
(-.f64 x (/.f64 y (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64))))) |
x |
(/.f64 y (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64)))) |
y |
(+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64))) |
#s(literal 1 binary64) |
(/.f64 (*.f64 x y) #s(literal 2 binary64)) |
(*.f64 x y) |
#s(literal 2 binary64) |
Found 4 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| accuracy | 0.0 | (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64))) | |
| accuracy | 0.0 | (*.f64 x y) | |
| accuracy | 0.00390625 | (-.f64 x (/.f64 y (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64))))) | |
| accuracy | 6.664012333241889 | (/.f64 y (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64)))) |
| 22.0ms | 256× | 0 | valid |
Compiled 80 to 20 computations (75% saved)
ival-sub: 8.0ms (54% of total)ival-div: 3.0ms (20.3% of total)ival-mult: 2.0ms (13.5% of total)ival-add: 1.0ms (6.8% of total)ival-true: 0.0ms (0% of total)exact: 0.0ms (0% of total)ival-assert: 0.0ms (0% of total)| Inputs |
|---|
(-.f64 x (/.f64 y (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64))))) |
(/.f64 y (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64)))) |
(+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64))) |
(/.f64 (*.f64 x y) #s(literal 2 binary64)) |
(*.f64 x y) |
| Outputs |
|---|
(* -1 y) |
(- (* x (+ 1 (* 1/2 (pow y 2)))) y) |
(- (* x (+ 1 (+ (* -1/4 (* x (pow y 3))) (* 1/2 (pow y 2))))) y) |
(- (* x (+ 1 (+ (* 1/2 (pow y 2)) (* x (+ (* -1/4 (pow y 3)) (* 1/8 (* x (pow y 4)))))))) y) |
y |
(+ y (* -1/2 (* x (pow y 2)))) |
(+ y (* x (- (* 1/4 (* x (pow y 3))) (* 1/2 (pow y 2))))) |
(+ y (* x (- (* x (- (* -1/8 (* x (pow y 4))) (* -1/4 (pow y 3)))) (* 1/2 (pow y 2))))) |
1 |
(+ 1 (* 1/2 (* x y))) |
(* 1/2 (* x y)) |
(* x y) |
x |
(* x (- 1 (* 2 (/ 1 (pow x 2))))) |
(* x (- (+ 1 (/ 4 (* (pow x 3) y))) (* 2 (/ 1 (pow x 2))))) |
(* x (- (+ 1 (* 4 (/ 1 (* (pow x 3) y)))) (+ (* 8 (/ 1 (* (pow x 4) (pow y 2)))) (* 2 (/ 1 (pow x 2)))))) |
(/ 2 x) |
(/ (- 2 (* 4 (/ 1 (* x y)))) x) |
(/ (- (+ 2 (/ 8 (* (pow x 2) (pow y 2)))) (/ 4 (* x y))) x) |
(/ (- (+ 2 (* 8 (/ 1 (* (pow x 2) (pow y 2))))) (+ (* 16 (/ 1 (* (pow x 3) (pow y 3)))) (/ 4 (* x y)))) x) |
(* x (+ (* 1/2 y) (/ 1 x))) |
(* -1 (* x (- (* 2 (/ 1 (pow x 2))) 1))) |
(* -1 (* x (- (* 2 (/ 1 (pow x 2))) (+ 1 (/ 4 (* (pow x 3) y)))))) |
(* -1 (* x (- (+ (* -1 (/ (- (* 4 (/ 1 y)) (* 8 (/ 1 (* x (pow y 2))))) (pow x 3))) (* 2 (/ 1 (pow x 2)))) 1))) |
(* -1 (/ (- (* 4 (/ 1 (* x y))) 2) x)) |
(* -1 (/ (- (* -1 (/ (- (* 8 (/ 1 (* x (pow y 2)))) (* 4 (/ 1 y))) x)) 2) x)) |
(* -1 (/ (- (* -1 (/ (- (* -1 (/ (- (* 16 (/ 1 (* x (pow y 3)))) (* 8 (/ 1 (pow y 2)))) x)) (* 4 (/ 1 y))) x)) 2) x)) |
(* -1 (* x (- (* -1/2 y) (/ 1 x)))) |
(+ x (* -1 y)) |
(+ x (* y (- (* 1/2 (* x y)) 1))) |
(+ x (* y (- (* y (+ (* -1/4 (* (pow x 2) y)) (* 1/2 x))) 1))) |
(* y (+ 1 (* -1/2 (* x y)))) |
(* y (+ 1 (* y (- (* 1/4 (* (pow x 2) y)) (* 1/2 x))))) |
(* y (+ 1 (* y (- (* y (- (* -1/8 (* (pow x 3) y)) (* -1/4 (pow x 2)))) (* 1/2 x))))) |
(- x (* 2 (/ 1 x))) |
(- (+ x (* 4 (/ 1 (* (pow x 2) y)))) (* 2 (/ 1 x))) |
(- (+ x (/ 4 (* (pow x 2) y))) (+ (* 2 (/ 1 x)) (/ 8 (* (pow x 3) (pow y 2))))) |
(- (+ x (+ (* 16 (/ 1 (* (pow x 4) (pow y 3)))) (/ 4 (* (pow x 2) y)))) (+ (* 2 (/ 1 x)) (* 8 (/ 1 (* (pow x 3) (pow y 2)))))) |
(- (* 2 (/ 1 x)) (* 4 (/ 1 (* (pow x 2) y)))) |
(- (+ (* 2 (/ 1 x)) (/ 8 (* (pow x 3) (pow y 2)))) (/ 4 (* (pow x 2) y))) |
(- (+ (* 2 (/ 1 x)) (* 8 (/ 1 (* (pow x 3) (pow y 2))))) (+ (* 16 (/ 1 (* (pow x 4) (pow y 3)))) (/ 4 (* (pow x 2) y)))) |
(* y (+ (* 1/2 x) (/ 1 y))) |
(- (+ x (* -1 (/ (- (* 8 (/ 1 (* (pow x 3) y))) (* 4 (/ 1 (pow x 2)))) y))) (* 2 (/ 1 x))) |
(- (+ x (* -1 (/ (- (* -1 (/ (- (* 16 (/ 1 (* (pow x 4) y))) (* 8 (/ 1 (pow x 3)))) y)) (* 4 (/ 1 (pow x 2)))) y))) (* 2 (/ 1 x))) |
(+ (* -1 (/ (- (* 4 (/ 1 (pow x 2))) (* 8 (/ 1 (* (pow x 3) y)))) y)) (* 2 (/ 1 x))) |
(+ (* -1 (/ (+ (* -1 (/ (- (* 8 (/ 1 (pow x 3))) (* 16 (/ 1 (* (pow x 4) y)))) y)) (* 4 (/ 1 (pow x 2)))) y)) (* 2 (/ 1 x))) |
(* -1 (* y (- (* -1/2 x) (/ 1 y)))) |
6 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 1.0ms | x | @ | inf | ((- x (/ y (+ 1 (/ (* x y) 2)))) (/ y (+ 1 (/ (* x y) 2))) (+ 1 (/ (* x y) 2)) (/ (* x y) 2) (* x y)) |
| 1.0ms | y | @ | 0 | ((- x (/ y (+ 1 (/ (* x y) 2)))) (/ y (+ 1 (/ (* x y) 2))) (+ 1 (/ (* x y) 2)) (/ (* x y) 2) (* x y)) |
| 1.0ms | y | @ | inf | ((- x (/ y (+ 1 (/ (* x y) 2)))) (/ y (+ 1 (/ (* x y) 2))) (+ 1 (/ (* x y) 2)) (/ (* x y) 2) (* x y)) |
| 1.0ms | x | @ | 0 | ((- x (/ y (+ 1 (/ (* x y) 2)))) (/ y (+ 1 (/ (* x y) 2))) (+ 1 (/ (* x y) 2)) (/ (* x y) 2) (* x y)) |
| 1.0ms | y | @ | -inf | ((- x (/ y (+ 1 (/ (* x y) 2)))) (/ y (+ 1 (/ (* x y) 2))) (+ 1 (/ (* x y) 2)) (/ (* x y) 2) (* x y)) |
| 1× | egg-herbie |
| Inputs |
|---|
(* -1 y) |
(- (* x (+ 1 (* 1/2 (pow y 2)))) y) |
(- (* x (+ 1 (+ (* -1/4 (* x (pow y 3))) (* 1/2 (pow y 2))))) y) |
(- (* x (+ 1 (+ (* 1/2 (pow y 2)) (* x (+ (* -1/4 (pow y 3)) (* 1/8 (* x (pow y 4)))))))) y) |
y |
(+ y (* -1/2 (* x (pow y 2)))) |
(+ y (* x (- (* 1/4 (* x (pow y 3))) (* 1/2 (pow y 2))))) |
(+ y (* x (- (* x (- (* -1/8 (* x (pow y 4))) (* -1/4 (pow y 3)))) (* 1/2 (pow y 2))))) |
1 |
(+ 1 (* 1/2 (* x y))) |
(* 1/2 (* x y)) |
(* x y) |
x |
(* x (- 1 (* 2 (/ 1 (pow x 2))))) |
(* x (- (+ 1 (/ 4 (* (pow x 3) y))) (* 2 (/ 1 (pow x 2))))) |
(* x (- (+ 1 (* 4 (/ 1 (* (pow x 3) y)))) (+ (* 8 (/ 1 (* (pow x 4) (pow y 2)))) (* 2 (/ 1 (pow x 2)))))) |
(/ 2 x) |
(/ (- 2 (* 4 (/ 1 (* x y)))) x) |
(/ (- (+ 2 (/ 8 (* (pow x 2) (pow y 2)))) (/ 4 (* x y))) x) |
(/ (- (+ 2 (* 8 (/ 1 (* (pow x 2) (pow y 2))))) (+ (* 16 (/ 1 (* (pow x 3) (pow y 3)))) (/ 4 (* x y)))) x) |
(* x (+ (* 1/2 y) (/ 1 x))) |
(* -1 (* x (- (* 2 (/ 1 (pow x 2))) 1))) |
(* -1 (* x (- (* 2 (/ 1 (pow x 2))) (+ 1 (/ 4 (* (pow x 3) y)))))) |
(* -1 (* x (- (+ (* -1 (/ (- (* 4 (/ 1 y)) (* 8 (/ 1 (* x (pow y 2))))) (pow x 3))) (* 2 (/ 1 (pow x 2)))) 1))) |
(* -1 (/ (- (* 4 (/ 1 (* x y))) 2) x)) |
(* -1 (/ (- (* -1 (/ (- (* 8 (/ 1 (* x (pow y 2)))) (* 4 (/ 1 y))) x)) 2) x)) |
(* -1 (/ (- (* -1 (/ (- (* -1 (/ (- (* 16 (/ 1 (* x (pow y 3)))) (* 8 (/ 1 (pow y 2)))) x)) (* 4 (/ 1 y))) x)) 2) x)) |
(* -1 (* x (- (* -1/2 y) (/ 1 x)))) |
(+ x (* -1 y)) |
(+ x (* y (- (* 1/2 (* x y)) 1))) |
(+ x (* y (- (* y (+ (* -1/4 (* (pow x 2) y)) (* 1/2 x))) 1))) |
(* y (+ 1 (* -1/2 (* x y)))) |
(* y (+ 1 (* y (- (* 1/4 (* (pow x 2) y)) (* 1/2 x))))) |
(* y (+ 1 (* y (- (* y (- (* -1/8 (* (pow x 3) y)) (* -1/4 (pow x 2)))) (* 1/2 x))))) |
(- x (* 2 (/ 1 x))) |
(- (+ x (* 4 (/ 1 (* (pow x 2) y)))) (* 2 (/ 1 x))) |
(- (+ x (/ 4 (* (pow x 2) y))) (+ (* 2 (/ 1 x)) (/ 8 (* (pow x 3) (pow y 2))))) |
(- (+ x (+ (* 16 (/ 1 (* (pow x 4) (pow y 3)))) (/ 4 (* (pow x 2) y)))) (+ (* 2 (/ 1 x)) (* 8 (/ 1 (* (pow x 3) (pow y 2)))))) |
(- (* 2 (/ 1 x)) (* 4 (/ 1 (* (pow x 2) y)))) |
(- (+ (* 2 (/ 1 x)) (/ 8 (* (pow x 3) (pow y 2)))) (/ 4 (* (pow x 2) y))) |
(- (+ (* 2 (/ 1 x)) (* 8 (/ 1 (* (pow x 3) (pow y 2))))) (+ (* 16 (/ 1 (* (pow x 4) (pow y 3)))) (/ 4 (* (pow x 2) y)))) |
(* y (+ (* 1/2 x) (/ 1 y))) |
(- (+ x (* -1 (/ (- (* 8 (/ 1 (* (pow x 3) y))) (* 4 (/ 1 (pow x 2)))) y))) (* 2 (/ 1 x))) |
(- (+ x (* -1 (/ (- (* -1 (/ (- (* 16 (/ 1 (* (pow x 4) y))) (* 8 (/ 1 (pow x 3)))) y)) (* 4 (/ 1 (pow x 2)))) y))) (* 2 (/ 1 x))) |
(+ (* -1 (/ (- (* 4 (/ 1 (pow x 2))) (* 8 (/ 1 (* (pow x 3) y)))) y)) (* 2 (/ 1 x))) |
(+ (* -1 (/ (+ (* -1 (/ (- (* 8 (/ 1 (pow x 3))) (* 16 (/ 1 (* (pow x 4) y)))) y)) (* 4 (/ 1 (pow x 2)))) y)) (* 2 (/ 1 x))) |
(* -1 (* y (- (* -1/2 x) (/ 1 y)))) |
| Outputs |
|---|
(* -1 y) |
(-.f64 x (/.f64 y (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64))))) |
(- (* x (+ 1 (* 1/2 (pow y 2)))) y) |
(/.f64 y (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64)))) |
(- (* x (+ 1 (+ (* -1/4 (* x (pow y 3))) (* 1/2 (pow y 2))))) y) |
(+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64))) |
(- (* x (+ 1 (+ (* 1/2 (pow y 2)) (* x (+ (* -1/4 (pow y 3)) (* 1/8 (* x (pow y 4)))))))) y) |
(/.f64 (*.f64 x y) #s(literal 2 binary64)) |
y |
(*.f64 x y) |
| Inputs |
|---|
(-.f64 x (/.f64 y (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64))))) |
(/.f64 y (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64)))) |
(+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64))) |
(/.f64 (*.f64 x y) #s(literal 2 binary64)) |
(*.f64 x y) |
| Outputs |
|---|
(-.f64 x (/.f64 y (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64))))) |
(/.f64 y (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64)))) |
(+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64))) |
(/.f64 (*.f64 x y) #s(literal 2 binary64)) |
(*.f64 x y) |
Compiled 150 to 22 computations (85.3% saved)
5 alts after pruning (4 fresh and 1 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 6 | 4 | 10 |
| Fresh | 0 | 0 | 0 |
| Picked | 0 | 1 | 1 |
| Done | 0 | 0 | 0 |
| Total | 6 | 5 | 11 |
| Status | Accuracy | Program |
|---|---|---|
| ✓ | 99.9% | (-.f64 x (/.f64 y (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64))))) |
| ▶ | 42.2% | (-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y))) |
| ▶ | 3.6% | #s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (/.f64 (*.f64 x y) #s(literal 2 binary64))) |
| ▶ | 2.9% | #s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (/.f64 y (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64))))) |
| ▶ | 3.5% | #s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64)))) |
Compiled 83 to 64 computations (22.9% saved)
| 1× | egg-herbie |
Found 14 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| cost-diff | 0 | (*.f64 x y) | |
| cost-diff | 0 | #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y)) | |
| cost-diff | 0 | (-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y))) | |
| cost-diff | 0 | (*.f64 x y) | |
| cost-diff | 0 | (/.f64 (*.f64 x y) #s(literal 2 binary64)) | |
| cost-diff | 0 | #s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (/.f64 (*.f64 x y) #s(literal 2 binary64))) | |
| cost-diff | 0 | (/.f64 (*.f64 x y) #s(literal 2 binary64)) | |
| cost-diff | 0 | (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64))) | |
| cost-diff | 0 | (/.f64 y (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64)))) | |
| cost-diff | 0 | #s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (/.f64 y (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64))))) | |
| cost-diff | 0 | (*.f64 x y) | |
| cost-diff | 0 | (/.f64 (*.f64 x y) #s(literal 2 binary64)) | |
| cost-diff | 0 | (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64))) | |
| cost-diff | 0 | #s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64)))) |
| Inputs |
|---|
#s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64)))) |
(+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64))) |
#s(literal 1 binary64) |
(/.f64 (*.f64 x y) #s(literal 2 binary64)) |
(*.f64 x y) |
x |
y |
#s(literal 2 binary64) |
#s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (/.f64 y (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64))))) |
(/.f64 y (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64)))) |
y |
(+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64))) |
#s(literal 1 binary64) |
(/.f64 (*.f64 x y) #s(literal 2 binary64)) |
(*.f64 x y) |
x |
#s(literal 2 binary64) |
#s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (/.f64 (*.f64 x y) #s(literal 2 binary64))) |
(/.f64 (*.f64 x y) #s(literal 2 binary64)) |
(*.f64 x y) |
x |
y |
#s(literal 2 binary64) |
(-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y))) |
x |
#s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y)) |
(*.f64 x y) |
y |
| Outputs |
|---|
#s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64)))) |
(+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64))) |
#s(literal 1 binary64) |
(/.f64 (*.f64 x y) #s(literal 2 binary64)) |
(*.f64 x y) |
x |
y |
#s(literal 2 binary64) |
#s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (/.f64 y (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64))))) |
(/.f64 y (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64)))) |
y |
(+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64))) |
#s(literal 1 binary64) |
(/.f64 (*.f64 x y) #s(literal 2 binary64)) |
(*.f64 x y) |
x |
#s(literal 2 binary64) |
#s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (/.f64 (*.f64 x y) #s(literal 2 binary64))) |
(/.f64 (*.f64 x y) #s(literal 2 binary64)) |
(*.f64 x y) |
x |
y |
#s(literal 2 binary64) |
(-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y))) |
x |
#s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y)) |
(*.f64 x y) |
y |
Found 14 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| accuracy | 0.0 | (*.f64 x y) | |
| accuracy | 0.00390625 | (-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y))) | |
| accuracy | 61.518645248072964 | #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y)) | |
| accuracy | 0.0 | (/.f64 (*.f64 x y) #s(literal 2 binary64)) | |
| accuracy | 0.0 | (*.f64 x y) | |
| accuracy | 61.704256600608986 | #s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (/.f64 (*.f64 x y) #s(literal 2 binary64))) | |
| accuracy | 0.0 | (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64))) | |
| accuracy | 0.0 | (*.f64 x y) | |
| accuracy | 6.664012333241889 | (/.f64 y (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64)))) | |
| accuracy | 62.06717333779006 | #s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (/.f64 y (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64))))) | |
| accuracy | 0.0 | (/.f64 (*.f64 x y) #s(literal 2 binary64)) | |
| accuracy | 0.0 | (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64))) | |
| accuracy | 0.0 | (*.f64 x y) | |
| accuracy | 61.777629662850565 | #s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64)))) |
| 26.0ms | 256× | 0 | valid |
Compiled 266 to 31 computations (88.3% saved)
ival-mult: 8.0ms (57% of total)ival-div: 3.0ms (21.4% of total)ival-sub: 1.0ms (7.1% of total)ival-add: 1.0ms (7.1% of total)ival-true: 0.0ms (0% of total)exact: 0.0ms (0% of total)ival-assert: 0.0ms (0% of total)| Inputs |
|---|
#s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64)))) |
(+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64))) |
(/.f64 (*.f64 x y) #s(literal 2 binary64)) |
(*.f64 x y) |
#s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (/.f64 y (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64))))) |
(/.f64 y (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64)))) |
#s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (/.f64 (*.f64 x y) #s(literal 2 binary64))) |
(-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y))) |
#s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y)) |
| Outputs |
|---|
(* -1 y) |
(- (* x (+ 1 (* 1/2 (pow y 2)))) y) |
(- (* x (+ 1 (+ (* -1/4 (* x (pow y 3))) (* 1/2 (pow y 2))))) y) |
(- (* x (+ 1 (+ (* 1/2 (pow y 2)) (* x (+ (* -1/4 (pow y 3)) (* 1/8 (* x (pow y 4)))))))) y) |
1 |
(+ 1 (* 1/2 (* x y))) |
(* 1/2 (* x y)) |
(* x y) |
y |
(+ y (* -1/2 (* x (pow y 2)))) |
(+ y (* x (- (* 1/4 (* x (pow y 3))) (* 1/2 (pow y 2))))) |
(+ y (* x (- (* x (- (* -1/8 (* x (pow y 4))) (* -1/4 (pow y 3)))) (* 1/2 (pow y 2))))) |
x |
(* x (- 1 (* 2 (/ 1 (pow x 2))))) |
(* x (- (+ 1 (/ 4 (* (pow x 3) y))) (* 2 (/ 1 (pow x 2))))) |
(* x (- (+ 1 (* 4 (/ 1 (* (pow x 3) y)))) (+ (* 8 (/ 1 (* (pow x 4) (pow y 2)))) (* 2 (/ 1 (pow x 2)))))) |
(* x (+ (* 1/2 y) (/ 1 x))) |
(/ 2 x) |
(/ (- 2 (* 4 (/ 1 (* x y)))) x) |
(/ (- (+ 2 (/ 8 (* (pow x 2) (pow y 2)))) (/ 4 (* x y))) x) |
(/ (- (+ 2 (* 8 (/ 1 (* (pow x 2) (pow y 2))))) (+ (* 16 (/ 1 (* (pow x 3) (pow y 3)))) (/ 4 (* x y)))) x) |
(* -1 (* x (- (* 2 (/ 1 (pow x 2))) 1))) |
(* -1 (* x (- (* 2 (/ 1 (pow x 2))) (+ 1 (/ 4 (* (pow x 3) y)))))) |
(* -1 (* x (- (+ (* -1 (/ (- (* 4 (/ 1 y)) (* 8 (/ 1 (* x (pow y 2))))) (pow x 3))) (* 2 (/ 1 (pow x 2)))) 1))) |
(* -1 (* x (- (* -1/2 y) (/ 1 x)))) |
(* -1 (/ (- (* 4 (/ 1 (* x y))) 2) x)) |
(* -1 (/ (- (* -1 (/ (- (* 8 (/ 1 (* x (pow y 2)))) (* 4 (/ 1 y))) x)) 2) x)) |
(* -1 (/ (- (* -1 (/ (- (* -1 (/ (- (* 16 (/ 1 (* x (pow y 3)))) (* 8 (/ 1 (pow y 2)))) x)) (* 4 (/ 1 y))) x)) 2) x)) |
(+ x (* -1 y)) |
(+ x (* y (- (* 1/2 (* x y)) 1))) |
(+ x (* y (- (* y (+ (* -1/4 (* (pow x 2) y)) (* 1/2 x))) 1))) |
(* y (+ 1 (* -1/2 (* x y)))) |
(* y (+ 1 (* y (- (* 1/4 (* (pow x 2) y)) (* 1/2 x))))) |
(* y (+ 1 (* y (- (* y (- (* -1/8 (* (pow x 3) y)) (* -1/4 (pow x 2)))) (* 1/2 x))))) |
(- x (* 2 (/ 1 x))) |
(- (+ x (* 4 (/ 1 (* (pow x 2) y)))) (* 2 (/ 1 x))) |
(- (+ x (/ 4 (* (pow x 2) y))) (+ (* 2 (/ 1 x)) (/ 8 (* (pow x 3) (pow y 2))))) |
(- (+ x (+ (* 16 (/ 1 (* (pow x 4) (pow y 3)))) (/ 4 (* (pow x 2) y)))) (+ (* 2 (/ 1 x)) (* 8 (/ 1 (* (pow x 3) (pow y 2)))))) |
(* y (+ (* 1/2 x) (/ 1 y))) |
(- (* 2 (/ 1 x)) (* 4 (/ 1 (* (pow x 2) y)))) |
(- (+ (* 2 (/ 1 x)) (/ 8 (* (pow x 3) (pow y 2)))) (/ 4 (* (pow x 2) y))) |
(- (+ (* 2 (/ 1 x)) (* 8 (/ 1 (* (pow x 3) (pow y 2))))) (+ (* 16 (/ 1 (* (pow x 4) (pow y 3)))) (/ 4 (* (pow x 2) y)))) |
(- (+ x (* -1 (/ (- (* 8 (/ 1 (* (pow x 3) y))) (* 4 (/ 1 (pow x 2)))) y))) (* 2 (/ 1 x))) |
(- (+ x (* -1 (/ (- (* -1 (/ (- (* 16 (/ 1 (* (pow x 4) y))) (* 8 (/ 1 (pow x 3)))) y)) (* 4 (/ 1 (pow x 2)))) y))) (* 2 (/ 1 x))) |
(* -1 (* y (- (* -1/2 x) (/ 1 y)))) |
(+ (* -1 (/ (- (* 4 (/ 1 (pow x 2))) (* 8 (/ 1 (* (pow x 3) y)))) y)) (* 2 (/ 1 x))) |
(+ (* -1 (/ (+ (* -1 (/ (- (* 8 (/ 1 (pow x 3))) (* 16 (/ 1 (* (pow x 4) y)))) y)) (* 4 (/ 1 (pow x 2)))) y)) (* 2 (/ 1 x))) |
6 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 1.0ms | x | @ | -inf | ((- x (/ y (+ 1 (/ (* x y) 2)))) (+ 1 (/ (* x y) 2)) (/ (* x y) 2) (* x y) (- x (/ y (+ 1 (/ (* x y) 2)))) (/ y (+ 1 (/ (* x y) 2))) (- x (/ y (+ 1 (/ (* x y) 2)))) (- x (/ y (+ 1 (/ (* x y) 2)))) (/ y (+ 1 (/ (* x y) 2)))) |
| 1.0ms | y | @ | -inf | ((- x (/ y (+ 1 (/ (* x y) 2)))) (+ 1 (/ (* x y) 2)) (/ (* x y) 2) (* x y) (- x (/ y (+ 1 (/ (* x y) 2)))) (/ y (+ 1 (/ (* x y) 2))) (- x (/ y (+ 1 (/ (* x y) 2)))) (- x (/ y (+ 1 (/ (* x y) 2)))) (/ y (+ 1 (/ (* x y) 2)))) |
| 1.0ms | x | @ | 0 | ((- x (/ y (+ 1 (/ (* x y) 2)))) (+ 1 (/ (* x y) 2)) (/ (* x y) 2) (* x y) (- x (/ y (+ 1 (/ (* x y) 2)))) (/ y (+ 1 (/ (* x y) 2))) (- x (/ y (+ 1 (/ (* x y) 2)))) (- x (/ y (+ 1 (/ (* x y) 2)))) (/ y (+ 1 (/ (* x y) 2)))) |
| 1.0ms | x | @ | inf | ((- x (/ y (+ 1 (/ (* x y) 2)))) (+ 1 (/ (* x y) 2)) (/ (* x y) 2) (* x y) (- x (/ y (+ 1 (/ (* x y) 2)))) (/ y (+ 1 (/ (* x y) 2))) (- x (/ y (+ 1 (/ (* x y) 2)))) (- x (/ y (+ 1 (/ (* x y) 2)))) (/ y (+ 1 (/ (* x y) 2)))) |
| 0.0ms | y | @ | inf | ((- x (/ y (+ 1 (/ (* x y) 2)))) (+ 1 (/ (* x y) 2)) (/ (* x y) 2) (* x y) (- x (/ y (+ 1 (/ (* x y) 2)))) (/ y (+ 1 (/ (* x y) 2))) (- x (/ y (+ 1 (/ (* x y) 2)))) (- x (/ y (+ 1 (/ (* x y) 2)))) (/ y (+ 1 (/ (* x y) 2)))) |
| 1× | egg-herbie |
| Inputs |
|---|
(* -1 y) |
(- (* x (+ 1 (* 1/2 (pow y 2)))) y) |
(- (* x (+ 1 (+ (* -1/4 (* x (pow y 3))) (* 1/2 (pow y 2))))) y) |
(- (* x (+ 1 (+ (* 1/2 (pow y 2)) (* x (+ (* -1/4 (pow y 3)) (* 1/8 (* x (pow y 4)))))))) y) |
1 |
(+ 1 (* 1/2 (* x y))) |
(* 1/2 (* x y)) |
(* x y) |
y |
(+ y (* -1/2 (* x (pow y 2)))) |
(+ y (* x (- (* 1/4 (* x (pow y 3))) (* 1/2 (pow y 2))))) |
(+ y (* x (- (* x (- (* -1/8 (* x (pow y 4))) (* -1/4 (pow y 3)))) (* 1/2 (pow y 2))))) |
x |
(* x (- 1 (* 2 (/ 1 (pow x 2))))) |
(* x (- (+ 1 (/ 4 (* (pow x 3) y))) (* 2 (/ 1 (pow x 2))))) |
(* x (- (+ 1 (* 4 (/ 1 (* (pow x 3) y)))) (+ (* 8 (/ 1 (* (pow x 4) (pow y 2)))) (* 2 (/ 1 (pow x 2)))))) |
(* x (+ (* 1/2 y) (/ 1 x))) |
(/ 2 x) |
(/ (- 2 (* 4 (/ 1 (* x y)))) x) |
(/ (- (+ 2 (/ 8 (* (pow x 2) (pow y 2)))) (/ 4 (* x y))) x) |
(/ (- (+ 2 (* 8 (/ 1 (* (pow x 2) (pow y 2))))) (+ (* 16 (/ 1 (* (pow x 3) (pow y 3)))) (/ 4 (* x y)))) x) |
(* -1 (* x (- (* 2 (/ 1 (pow x 2))) 1))) |
(* -1 (* x (- (* 2 (/ 1 (pow x 2))) (+ 1 (/ 4 (* (pow x 3) y)))))) |
(* -1 (* x (- (+ (* -1 (/ (- (* 4 (/ 1 y)) (* 8 (/ 1 (* x (pow y 2))))) (pow x 3))) (* 2 (/ 1 (pow x 2)))) 1))) |
(* -1 (* x (- (* -1/2 y) (/ 1 x)))) |
(* -1 (/ (- (* 4 (/ 1 (* x y))) 2) x)) |
(* -1 (/ (- (* -1 (/ (- (* 8 (/ 1 (* x (pow y 2)))) (* 4 (/ 1 y))) x)) 2) x)) |
(* -1 (/ (- (* -1 (/ (- (* -1 (/ (- (* 16 (/ 1 (* x (pow y 3)))) (* 8 (/ 1 (pow y 2)))) x)) (* 4 (/ 1 y))) x)) 2) x)) |
(+ x (* -1 y)) |
(+ x (* y (- (* 1/2 (* x y)) 1))) |
(+ x (* y (- (* y (+ (* -1/4 (* (pow x 2) y)) (* 1/2 x))) 1))) |
(* y (+ 1 (* -1/2 (* x y)))) |
(* y (+ 1 (* y (- (* 1/4 (* (pow x 2) y)) (* 1/2 x))))) |
(* y (+ 1 (* y (- (* y (- (* -1/8 (* (pow x 3) y)) (* -1/4 (pow x 2)))) (* 1/2 x))))) |
(- x (* 2 (/ 1 x))) |
(- (+ x (* 4 (/ 1 (* (pow x 2) y)))) (* 2 (/ 1 x))) |
(- (+ x (/ 4 (* (pow x 2) y))) (+ (* 2 (/ 1 x)) (/ 8 (* (pow x 3) (pow y 2))))) |
(- (+ x (+ (* 16 (/ 1 (* (pow x 4) (pow y 3)))) (/ 4 (* (pow x 2) y)))) (+ (* 2 (/ 1 x)) (* 8 (/ 1 (* (pow x 3) (pow y 2)))))) |
(* y (+ (* 1/2 x) (/ 1 y))) |
(- (* 2 (/ 1 x)) (* 4 (/ 1 (* (pow x 2) y)))) |
(- (+ (* 2 (/ 1 x)) (/ 8 (* (pow x 3) (pow y 2)))) (/ 4 (* (pow x 2) y))) |
(- (+ (* 2 (/ 1 x)) (* 8 (/ 1 (* (pow x 3) (pow y 2))))) (+ (* 16 (/ 1 (* (pow x 4) (pow y 3)))) (/ 4 (* (pow x 2) y)))) |
(- (+ x (* -1 (/ (- (* 8 (/ 1 (* (pow x 3) y))) (* 4 (/ 1 (pow x 2)))) y))) (* 2 (/ 1 x))) |
(- (+ x (* -1 (/ (- (* -1 (/ (- (* 16 (/ 1 (* (pow x 4) y))) (* 8 (/ 1 (pow x 3)))) y)) (* 4 (/ 1 (pow x 2)))) y))) (* 2 (/ 1 x))) |
(* -1 (* y (- (* -1/2 x) (/ 1 y)))) |
(+ (* -1 (/ (- (* 4 (/ 1 (pow x 2))) (* 8 (/ 1 (* (pow x 3) y)))) y)) (* 2 (/ 1 x))) |
(+ (* -1 (/ (+ (* -1 (/ (- (* 8 (/ 1 (pow x 3))) (* 16 (/ 1 (* (pow x 4) y)))) y)) (* 4 (/ 1 (pow x 2)))) y)) (* 2 (/ 1 x))) |
| Outputs |
|---|
(* -1 y) |
#s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64)))) |
(- (* x (+ 1 (* 1/2 (pow y 2)))) y) |
(+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64))) |
(- (* x (+ 1 (+ (* -1/4 (* x (pow y 3))) (* 1/2 (pow y 2))))) y) |
(/.f64 (*.f64 x y) #s(literal 2 binary64)) |
(- (* x (+ 1 (+ (* 1/2 (pow y 2)) (* x (+ (* -1/4 (pow y 3)) (* 1/8 (* x (pow y 4)))))))) y) |
(*.f64 x y) |
1 |
#s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (/.f64 y (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64))))) |
(+ 1 (* 1/2 (* x y))) |
(/.f64 y (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64)))) |
(* 1/2 (* x y)) |
#s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (/.f64 (*.f64 x y) #s(literal 2 binary64))) |
(* x y) |
(-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y))) |
y |
#s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y)) |
| Inputs |
|---|
#s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64)))) |
(+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64))) |
(/.f64 (*.f64 x y) #s(literal 2 binary64)) |
(*.f64 x y) |
#s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (/.f64 y (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64))))) |
(/.f64 y (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64)))) |
#s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (/.f64 (*.f64 x y) #s(literal 2 binary64))) |
(-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y))) |
#s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y)) |
| Outputs |
|---|
#s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64)))) |
(+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64))) |
(/.f64 (*.f64 x y) #s(literal 2 binary64)) |
(*.f64 x y) |
#s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (/.f64 y (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64))))) |
(/.f64 y (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64)))) |
#s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (/.f64 (*.f64 x y) #s(literal 2 binary64))) |
(-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y))) |
#s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y)) |
Compiled 749 to 47 computations (93.7% saved)
8 alts after pruning (3 fresh and 5 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 26 | 3 | 29 |
| Fresh | 0 | 0 | 0 |
| Picked | 0 | 4 | 4 |
| Done | 0 | 1 | 1 |
| Total | 26 | 8 | 34 |
| Status | Accuracy | Program |
|---|---|---|
| ✓ | 99.9% | (-.f64 x (/.f64 y (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64))))) |
| ✓ | 42.2% | (-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y))) |
| ▶ | 3.4% | (-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) #s(approx (* x y) (-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y)))))) |
| ✓ | 3.6% | #s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (/.f64 (*.f64 x y) #s(literal 2 binary64))) |
| ▶ | 10.0% | #s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (/.f64 #s(approx (* x y) (-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y)))) #s(literal 2 binary64))) |
| ✓ | 2.9% | #s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (/.f64 y (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64))))) |
| ✓ | 3.5% | #s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64)))) |
| ▶ | 3.6% | #s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (*.f64 x y)) |
Compiled 162 to 105 computations (35.2% saved)
| 1× | egg-herbie |
Found 10 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| cost-diff | 0 | (-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y))) | |
| cost-diff | 0 | #s(approx (* x y) (-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y)))) | |
| cost-diff | 0 | #s(approx (/ y (+ 1 (/ (* x y) 2))) #s(approx (* x y) (-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y))))) | |
| cost-diff | 0 | (-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) #s(approx (* x y) (-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y)))))) | |
| cost-diff | 0 | (-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y))) | |
| cost-diff | 0 | #s(approx (* x y) (-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y)))) | |
| cost-diff | 0 | (/.f64 #s(approx (* x y) (-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y)))) #s(literal 2 binary64)) | |
| cost-diff | 0 | #s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (/.f64 #s(approx (* x y) (-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y)))) #s(literal 2 binary64))) | |
| cost-diff | 0 | (*.f64 x y) | |
| cost-diff | 0 | #s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (*.f64 x y)) |
| Inputs |
|---|
#s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (*.f64 x y)) |
(*.f64 x y) |
x |
y |
#s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (/.f64 #s(approx (* x y) (-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y)))) #s(literal 2 binary64))) |
(/.f64 #s(approx (* x y) (-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y)))) #s(literal 2 binary64)) |
#s(approx (* x y) (-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y)))) |
(-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y))) |
x |
#s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y)) |
(*.f64 x y) |
y |
#s(literal 2 binary64) |
(-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) #s(approx (* x y) (-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y)))))) |
x |
#s(approx (/ y (+ 1 (/ (* x y) 2))) #s(approx (* x y) (-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y))))) |
#s(approx (* x y) (-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y)))) |
(-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y))) |
#s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y)) |
(*.f64 x y) |
y |
| Outputs |
|---|
#s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (*.f64 x y)) |
(*.f64 x y) |
x |
y |
#s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (/.f64 #s(approx (* x y) (-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y)))) #s(literal 2 binary64))) |
(/.f64 #s(approx (* x y) (-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y)))) #s(literal 2 binary64)) |
#s(approx (* x y) (-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y)))) |
(-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y))) |
x |
#s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y)) |
(*.f64 x y) |
y |
#s(literal 2 binary64) |
(-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) #s(approx (* x y) (-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y)))))) |
x |
#s(approx (/ y (+ 1 (/ (* x y) 2))) #s(approx (* x y) (-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y))))) |
#s(approx (* x y) (-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y)))) |
(-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y))) |
#s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y)) |
(*.f64 x y) |
y |
Found 10 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| accuracy | 0.00390625 | (-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) #s(approx (* x y) (-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y)))))) | |
| accuracy | 61.518645248072964 | #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y)) | |
| accuracy | 61.518645248072964 | #s(approx (/ y (+ 1 (/ (* x y) 2))) #s(approx (* x y) (-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y))))) | |
| accuracy | 61.70323213879182 | #s(approx (* x y) (-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y)))) | |
| accuracy | 0.00390625 | (-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y))) | |
| accuracy | 61.518645248072964 | #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y)) | |
| accuracy | 61.70323213879182 | #s(approx (* x y) (-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y)))) | |
| accuracy | 61.704256600608986 | #s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (/.f64 #s(approx (* x y) (-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y)))) #s(literal 2 binary64))) | |
| accuracy | 0.0 | (*.f64 x y) | |
| accuracy | 61.70323213879182 | #s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (*.f64 x y)) |
| 21.0ms | 256× | 0 | valid |
Compiled 350 to 30 computations (91.4% saved)
ival-div: 3.0ms (35.6% of total)ival-mult: 2.0ms (23.8% of total)ival-sub: 1.0ms (11.9% of total)ival-add: 1.0ms (11.9% of total)ival-true: 0.0ms (0% of total)exact: 0.0ms (0% of total)ival-assert: 0.0ms (0% of total)| Inputs |
|---|
#s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (*.f64 x y)) |
(*.f64 x y) |
#s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (/.f64 #s(approx (* x y) (-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y)))) #s(literal 2 binary64))) |
(/.f64 #s(approx (* x y) (-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y)))) #s(literal 2 binary64)) |
#s(approx (* x y) (-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y)))) |
(-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y))) |
(-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) #s(approx (* x y) (-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y)))))) |
#s(approx (/ y (+ 1 (/ (* x y) 2))) #s(approx (* x y) (-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y))))) |
#s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y)) |
| Outputs |
|---|
(* -1 y) |
(- (* x (+ 1 (* 1/2 (pow y 2)))) y) |
(- (* x (+ 1 (+ (* -1/4 (* x (pow y 3))) (* 1/2 (pow y 2))))) y) |
(- (* x (+ 1 (+ (* 1/2 (pow y 2)) (* x (+ (* -1/4 (pow y 3)) (* 1/8 (* x (pow y 4)))))))) y) |
(* x y) |
(* 1/2 (* x y)) |
y |
(+ y (* -1/2 (* x (pow y 2)))) |
(+ y (* x (- (* 1/4 (* x (pow y 3))) (* 1/2 (pow y 2))))) |
(+ y (* x (- (* x (- (* -1/8 (* x (pow y 4))) (* -1/4 (pow y 3)))) (* 1/2 (pow y 2))))) |
x |
(* x (- 1 (* 2 (/ 1 (pow x 2))))) |
(* x (- (+ 1 (/ 4 (* (pow x 3) y))) (* 2 (/ 1 (pow x 2))))) |
(* x (- (+ 1 (* 4 (/ 1 (* (pow x 3) y)))) (+ (* 8 (/ 1 (* (pow x 4) (pow y 2)))) (* 2 (/ 1 (pow x 2)))))) |
(/ 2 x) |
(/ (- 2 (* 4 (/ 1 (* x y)))) x) |
(/ (- (+ 2 (/ 8 (* (pow x 2) (pow y 2)))) (/ 4 (* x y))) x) |
(/ (- (+ 2 (* 8 (/ 1 (* (pow x 2) (pow y 2))))) (+ (* 16 (/ 1 (* (pow x 3) (pow y 3)))) (/ 4 (* x y)))) x) |
(* -1 (* x (- (* 2 (/ 1 (pow x 2))) 1))) |
(* -1 (* x (- (* 2 (/ 1 (pow x 2))) (+ 1 (/ 4 (* (pow x 3) y)))))) |
(* -1 (* x (- (+ (* -1 (/ (- (* 4 (/ 1 y)) (* 8 (/ 1 (* x (pow y 2))))) (pow x 3))) (* 2 (/ 1 (pow x 2)))) 1))) |
(* -1 (/ (- (* 4 (/ 1 (* x y))) 2) x)) |
(* -1 (/ (- (* -1 (/ (- (* 8 (/ 1 (* x (pow y 2)))) (* 4 (/ 1 y))) x)) 2) x)) |
(* -1 (/ (- (* -1 (/ (- (* -1 (/ (- (* 16 (/ 1 (* x (pow y 3)))) (* 8 (/ 1 (pow y 2)))) x)) (* 4 (/ 1 y))) x)) 2) x)) |
(+ x (* -1 y)) |
(+ x (* y (- (* 1/2 (* x y)) 1))) |
(+ x (* y (- (* y (+ (* -1/4 (* (pow x 2) y)) (* 1/2 x))) 1))) |
(* y (+ 1 (* -1/2 (* x y)))) |
(* y (+ 1 (* y (- (* 1/4 (* (pow x 2) y)) (* 1/2 x))))) |
(* y (+ 1 (* y (- (* y (- (* -1/8 (* (pow x 3) y)) (* -1/4 (pow x 2)))) (* 1/2 x))))) |
(- x (* 2 (/ 1 x))) |
(- (+ x (* 4 (/ 1 (* (pow x 2) y)))) (* 2 (/ 1 x))) |
(- (+ x (/ 4 (* (pow x 2) y))) (+ (* 2 (/ 1 x)) (/ 8 (* (pow x 3) (pow y 2))))) |
(- (+ x (+ (* 16 (/ 1 (* (pow x 4) (pow y 3)))) (/ 4 (* (pow x 2) y)))) (+ (* 2 (/ 1 x)) (* 8 (/ 1 (* (pow x 3) (pow y 2)))))) |
(- (* 2 (/ 1 x)) (* 4 (/ 1 (* (pow x 2) y)))) |
(- (+ (* 2 (/ 1 x)) (/ 8 (* (pow x 3) (pow y 2)))) (/ 4 (* (pow x 2) y))) |
(- (+ (* 2 (/ 1 x)) (* 8 (/ 1 (* (pow x 3) (pow y 2))))) (+ (* 16 (/ 1 (* (pow x 4) (pow y 3)))) (/ 4 (* (pow x 2) y)))) |
(- (+ x (* -1 (/ (- (* 8 (/ 1 (* (pow x 3) y))) (* 4 (/ 1 (pow x 2)))) y))) (* 2 (/ 1 x))) |
(- (+ x (* -1 (/ (- (* -1 (/ (- (* 16 (/ 1 (* (pow x 4) y))) (* 8 (/ 1 (pow x 3)))) y)) (* 4 (/ 1 (pow x 2)))) y))) (* 2 (/ 1 x))) |
(+ (* -1 (/ (- (* 4 (/ 1 (pow x 2))) (* 8 (/ 1 (* (pow x 3) y)))) y)) (* 2 (/ 1 x))) |
(+ (* -1 (/ (+ (* -1 (/ (- (* 8 (/ 1 (pow x 3))) (* 16 (/ 1 (* (pow x 4) y)))) y)) (* 4 (/ 1 (pow x 2)))) y)) (* 2 (/ 1 x))) |
6 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 3.0ms | x | @ | 0 | ((- x (/ y (+ 1 (/ (* x y) 2)))) (* x y) (- x (/ y (+ 1 (/ (* x y) 2)))) (/ (* x y) 2) (* x y) (- x (/ y (+ 1 (/ (* x y) 2)))) (- x (/ y (+ 1 (/ (* x y) 2)))) (/ y (+ 1 (/ (* x y) 2))) (/ y (+ 1 (/ (* x y) 2)))) |
| 1.0ms | x | @ | -inf | ((- x (/ y (+ 1 (/ (* x y) 2)))) (* x y) (- x (/ y (+ 1 (/ (* x y) 2)))) (/ (* x y) 2) (* x y) (- x (/ y (+ 1 (/ (* x y) 2)))) (- x (/ y (+ 1 (/ (* x y) 2)))) (/ y (+ 1 (/ (* x y) 2))) (/ y (+ 1 (/ (* x y) 2)))) |
| 1.0ms | y | @ | -inf | ((- x (/ y (+ 1 (/ (* x y) 2)))) (* x y) (- x (/ y (+ 1 (/ (* x y) 2)))) (/ (* x y) 2) (* x y) (- x (/ y (+ 1 (/ (* x y) 2)))) (- x (/ y (+ 1 (/ (* x y) 2)))) (/ y (+ 1 (/ (* x y) 2))) (/ y (+ 1 (/ (* x y) 2)))) |
| 1.0ms | x | @ | inf | ((- x (/ y (+ 1 (/ (* x y) 2)))) (* x y) (- x (/ y (+ 1 (/ (* x y) 2)))) (/ (* x y) 2) (* x y) (- x (/ y (+ 1 (/ (* x y) 2)))) (- x (/ y (+ 1 (/ (* x y) 2)))) (/ y (+ 1 (/ (* x y) 2))) (/ y (+ 1 (/ (* x y) 2)))) |
| 0.0ms | y | @ | inf | ((- x (/ y (+ 1 (/ (* x y) 2)))) (* x y) (- x (/ y (+ 1 (/ (* x y) 2)))) (/ (* x y) 2) (* x y) (- x (/ y (+ 1 (/ (* x y) 2)))) (- x (/ y (+ 1 (/ (* x y) 2)))) (/ y (+ 1 (/ (* x y) 2))) (/ y (+ 1 (/ (* x y) 2)))) |
| 1× | egg-herbie |
| Inputs |
|---|
(* -1 y) |
(- (* x (+ 1 (* 1/2 (pow y 2)))) y) |
(- (* x (+ 1 (+ (* -1/4 (* x (pow y 3))) (* 1/2 (pow y 2))))) y) |
(- (* x (+ 1 (+ (* 1/2 (pow y 2)) (* x (+ (* -1/4 (pow y 3)) (* 1/8 (* x (pow y 4)))))))) y) |
(* x y) |
(* 1/2 (* x y)) |
y |
(+ y (* -1/2 (* x (pow y 2)))) |
(+ y (* x (- (* 1/4 (* x (pow y 3))) (* 1/2 (pow y 2))))) |
(+ y (* x (- (* x (- (* -1/8 (* x (pow y 4))) (* -1/4 (pow y 3)))) (* 1/2 (pow y 2))))) |
x |
(* x (- 1 (* 2 (/ 1 (pow x 2))))) |
(* x (- (+ 1 (/ 4 (* (pow x 3) y))) (* 2 (/ 1 (pow x 2))))) |
(* x (- (+ 1 (* 4 (/ 1 (* (pow x 3) y)))) (+ (* 8 (/ 1 (* (pow x 4) (pow y 2)))) (* 2 (/ 1 (pow x 2)))))) |
(/ 2 x) |
(/ (- 2 (* 4 (/ 1 (* x y)))) x) |
(/ (- (+ 2 (/ 8 (* (pow x 2) (pow y 2)))) (/ 4 (* x y))) x) |
(/ (- (+ 2 (* 8 (/ 1 (* (pow x 2) (pow y 2))))) (+ (* 16 (/ 1 (* (pow x 3) (pow y 3)))) (/ 4 (* x y)))) x) |
(* -1 (* x (- (* 2 (/ 1 (pow x 2))) 1))) |
(* -1 (* x (- (* 2 (/ 1 (pow x 2))) (+ 1 (/ 4 (* (pow x 3) y)))))) |
(* -1 (* x (- (+ (* -1 (/ (- (* 4 (/ 1 y)) (* 8 (/ 1 (* x (pow y 2))))) (pow x 3))) (* 2 (/ 1 (pow x 2)))) 1))) |
(* -1 (/ (- (* 4 (/ 1 (* x y))) 2) x)) |
(* -1 (/ (- (* -1 (/ (- (* 8 (/ 1 (* x (pow y 2)))) (* 4 (/ 1 y))) x)) 2) x)) |
(* -1 (/ (- (* -1 (/ (- (* -1 (/ (- (* 16 (/ 1 (* x (pow y 3)))) (* 8 (/ 1 (pow y 2)))) x)) (* 4 (/ 1 y))) x)) 2) x)) |
(+ x (* -1 y)) |
(+ x (* y (- (* 1/2 (* x y)) 1))) |
(+ x (* y (- (* y (+ (* -1/4 (* (pow x 2) y)) (* 1/2 x))) 1))) |
(* y (+ 1 (* -1/2 (* x y)))) |
(* y (+ 1 (* y (- (* 1/4 (* (pow x 2) y)) (* 1/2 x))))) |
(* y (+ 1 (* y (- (* y (- (* -1/8 (* (pow x 3) y)) (* -1/4 (pow x 2)))) (* 1/2 x))))) |
(- x (* 2 (/ 1 x))) |
(- (+ x (* 4 (/ 1 (* (pow x 2) y)))) (* 2 (/ 1 x))) |
(- (+ x (/ 4 (* (pow x 2) y))) (+ (* 2 (/ 1 x)) (/ 8 (* (pow x 3) (pow y 2))))) |
(- (+ x (+ (* 16 (/ 1 (* (pow x 4) (pow y 3)))) (/ 4 (* (pow x 2) y)))) (+ (* 2 (/ 1 x)) (* 8 (/ 1 (* (pow x 3) (pow y 2)))))) |
(- (* 2 (/ 1 x)) (* 4 (/ 1 (* (pow x 2) y)))) |
(- (+ (* 2 (/ 1 x)) (/ 8 (* (pow x 3) (pow y 2)))) (/ 4 (* (pow x 2) y))) |
(- (+ (* 2 (/ 1 x)) (* 8 (/ 1 (* (pow x 3) (pow y 2))))) (+ (* 16 (/ 1 (* (pow x 4) (pow y 3)))) (/ 4 (* (pow x 2) y)))) |
(- (+ x (* -1 (/ (- (* 8 (/ 1 (* (pow x 3) y))) (* 4 (/ 1 (pow x 2)))) y))) (* 2 (/ 1 x))) |
(- (+ x (* -1 (/ (- (* -1 (/ (- (* 16 (/ 1 (* (pow x 4) y))) (* 8 (/ 1 (pow x 3)))) y)) (* 4 (/ 1 (pow x 2)))) y))) (* 2 (/ 1 x))) |
(+ (* -1 (/ (- (* 4 (/ 1 (pow x 2))) (* 8 (/ 1 (* (pow x 3) y)))) y)) (* 2 (/ 1 x))) |
(+ (* -1 (/ (+ (* -1 (/ (- (* 8 (/ 1 (pow x 3))) (* 16 (/ 1 (* (pow x 4) y)))) y)) (* 4 (/ 1 (pow x 2)))) y)) (* 2 (/ 1 x))) |
| Outputs |
|---|
(* -1 y) |
#s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (*.f64 x y)) |
(- (* x (+ 1 (* 1/2 (pow y 2)))) y) |
(*.f64 x y) |
(- (* x (+ 1 (+ (* -1/4 (* x (pow y 3))) (* 1/2 (pow y 2))))) y) |
#s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (/.f64 #s(approx (* x y) (-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y)))) #s(literal 2 binary64))) |
(- (* x (+ 1 (+ (* 1/2 (pow y 2)) (* x (+ (* -1/4 (pow y 3)) (* 1/8 (* x (pow y 4)))))))) y) |
(/.f64 #s(approx (* x y) (-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y)))) #s(literal 2 binary64)) |
(* x y) |
#s(approx (* x y) (-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y)))) |
(* 1/2 (* x y)) |
(-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y))) |
y |
(-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) #s(approx (* x y) (-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y)))))) |
(+ y (* -1/2 (* x (pow y 2)))) |
#s(approx (/ y (+ 1 (/ (* x y) 2))) #s(approx (* x y) (-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y))))) |
(+ y (* x (- (* 1/4 (* x (pow y 3))) (* 1/2 (pow y 2))))) |
#s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y)) |
| Inputs |
|---|
#s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (*.f64 x y)) |
(*.f64 x y) |
#s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (/.f64 #s(approx (* x y) (-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y)))) #s(literal 2 binary64))) |
(/.f64 #s(approx (* x y) (-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y)))) #s(literal 2 binary64)) |
#s(approx (* x y) (-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y)))) |
(-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y))) |
(-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) #s(approx (* x y) (-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y)))))) |
#s(approx (/ y (+ 1 (/ (* x y) 2))) #s(approx (* x y) (-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y))))) |
#s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y)) |
| Outputs |
|---|
#s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (*.f64 x y)) |
(*.f64 x y) |
#s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (/.f64 #s(approx (* x y) (-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y)))) #s(literal 2 binary64))) |
(/.f64 #s(approx (* x y) (-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y)))) #s(literal 2 binary64)) |
#s(approx (* x y) (-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y)))) |
(-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y))) |
(-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) #s(approx (* x y) (-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y)))))) |
#s(approx (/ y (+ 1 (/ (* x y) 2))) #s(approx (* x y) (-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y))))) |
#s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y)) |
Compiled 767 to 38 computations (95% saved)
8 alts after pruning (0 fresh and 8 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 23 | 0 | 23 |
| Fresh | 0 | 0 | 0 |
| Picked | 0 | 3 | 3 |
| Done | 0 | 5 | 5 |
| Total | 23 | 8 | 31 |
| Status | Accuracy | Program |
|---|---|---|
| ✓ | 99.9% | (-.f64 x (/.f64 y (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64))))) |
| ✓ | 42.2% | (-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y))) |
| ✓ | 3.4% | (-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) #s(approx (* x y) (-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y)))))) |
| ✓ | 3.6% | #s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (/.f64 (*.f64 x y) #s(literal 2 binary64))) |
| ✓ | 10.0% | #s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (/.f64 #s(approx (* x y) (-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y)))) #s(literal 2 binary64))) |
| ✓ | 2.9% | #s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (/.f64 y (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64))))) |
| ✓ | 3.5% | #s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64)))) |
| ✓ | 3.6% | #s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (*.f64 x y)) |
Compiled 324 to 132 computations (59.3% saved)
| Inputs |
|---|
#s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (*.f64 x y)) |
(-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y))) |
(-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) #s(approx (* x y) (-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y)))))) |
#s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (/.f64 (*.f64 x y) #s(literal 2 binary64))) |
#s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64)))) |
#s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (/.f64 #s(approx (* x y) (-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y)))) #s(literal 2 binary64))) |
#s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (/.f64 y (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64))))) |
(-.f64 x (/.f64 y (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64))))) |
| Outputs |
|---|
(-.f64 x (/.f64 y (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64))))) |
3 calls:
| 4.0ms | (-.f64 x (/.f64 y (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64))))) |
| 3.0ms | y |
| 3.0ms | x |
| Accuracy | Segments | Branch |
|---|---|---|
| 99.9% | 1 | x |
| 99.9% | 1 | y |
| 99.9% | 1 | (-.f64 x (/.f64 y (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64))))) |
Compiled 13 to 13 computations (0% saved)
| Inputs |
|---|
#s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (*.f64 x y)) |
(-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y))) |
(-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) #s(approx (* x y) (-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y)))))) |
#s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (/.f64 (*.f64 x y) #s(literal 2 binary64))) |
#s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64)))) |
#s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (/.f64 #s(approx (* x y) (-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y)))) #s(literal 2 binary64))) |
#s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (/.f64 y (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64))))) |
| Outputs |
|---|
(-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y))) |
3 calls:
| 4.0ms | x |
| 3.0ms | (-.f64 x (/.f64 y (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64))))) |
| 3.0ms | y |
| Accuracy | Segments | Branch |
|---|---|---|
| 42.2% | 1 | x |
| 42.2% | 1 | y |
| 42.2% | 1 | (-.f64 x (/.f64 y (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64))))) |
Compiled 13 to 13 computations (0% saved)
Total 0.0b remaining (0%)
Threshold costs 0b (0%)
| Inputs |
|---|
#s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (*.f64 x y)) |
| Outputs |
|---|
#s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (*.f64 x y)) |
3 calls:
| 1.0ms | (-.f64 x (/.f64 y (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64))))) |
| 1.0ms | x |
| 1.0ms | y |
| Accuracy | Segments | Branch |
|---|---|---|
| 3.6% | 1 | (-.f64 x (/.f64 y (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64))))) |
| 3.6% | 1 | x |
| 3.6% | 1 | y |
Compiled 13 to 13 computations (0% saved)
| 1× | egg-herbie |
| Inputs |
|---|
(-.f64 x (/.f64 y (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64))))) |
(-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y))) |
#s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (*.f64 x y)) |
| Outputs |
|---|
(-.f64 x (/.f64 y (+.f64 #s(literal 1 binary64) (/.f64 (*.f64 x y) #s(literal 2 binary64))))) |
(-.f64 x #s(approx (/ y (+ 1 (/ (* x y) 2))) (*.f64 x y))) |
#s(approx (- x (/ y (+ 1 (/ (* x y) 2)))) (*.f64 x y)) |
| 1× | done |
Compiled 41 to 19 computations (53.7% saved)
Compiled 104 to 56 computations (46.2% saved)
Loading profile data...