
Time bar (total: 2.6s)
| 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)
| 626.0ms | 8 256× | 0 | valid |
| 17.0ms | 504× | 0 | invalid |
ival-add: 158.0ms (64.7% of total)ival-sqrt: 76.0ms (31.1% of total)ival-true: 6.0ms (2.5% of total)ival-assert: 3.0ms (1.2% 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 |
| 29.0ms | 512× | 0 | valid |
Compiled 26 to 16 computations (38.5% saved)
ival-sqrt: 14.0ms (77.5% of total)ival-add: 3.0ms (16.6% of total)ival-true: 0.0ms (0% of total)ival-assert: 0.0ms (0% of total)| 1× | egg-herbie |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 12 | 24 |
| 1 | 26 | 22 |
| 2 | 41 | 22 |
| 3 | 63 | 22 |
| 4 | 116 | 22 |
| 5 | 155 | 22 |
| 6 | 194 | 22 |
| 7 | 205 | 22 |
| 8 | 207 | 22 |
| 0 | 4 | 4 |
| 0 | 6 | 4 |
| 1 | 7 | 4 |
| 0 | 7 | 4 |
| 1× | iter limit |
| 1× | saturated |
| 1× | iter limit |
| 1× | saturated |
| Inputs |
|---|
(sqrt.f64 (+.f64 x y)) |
| Outputs |
|---|
(sqrt.f64 (+.f64 x y)) |
(sqrt.f64 (+.f64 y x)) |
(sort 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)) |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 4 | 9 |
| 0 | 6 | 9 |
| 1 | 7 | 9 |
| 0 | 7 | 9 |
| 1× | iter limit |
| 1× | saturated |
| 1× | iter limit |
| Inputs |
|---|
(sqrt.f64 (+.f64 x y)) |
(+.f64 x y) |
x |
y |
| Outputs |
|---|
(sqrt.f64 (+.f64 x y)) |
(sqrt.f64 (+.f64 y x)) |
(+.f64 x y) |
(+.f64 y x) |
x |
y |
Found 2 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| accuracy | 0 | (+.f64 x y) | |
| accuracy | 0 | (sqrt.f64 (+.f64 x y)) |
| 9.0ms | 256× | 0 | valid |
Compiled 11 to 6 computations (45.5% saved)
ival-sqrt: 2.0ms (58.6% of total)ival-add: 1.0ms (29.3% of total)ival-true: 0.0ms (0% of total)ival-assert: 0.0ms (0% of total)| Inputs |
|---|
#s(alt (sqrt.f64 (+.f64 x y)) (patch (sqrt.f64 (+.f64 x y)) #<representation binary64>) () ()) |
#s(alt (+.f64 x y) (patch (+.f64 x y) #<representation binary64>) () ()) |
| Outputs |
|---|
#s(alt (sqrt x) (taylor 0 y) (#s(alt (sqrt.f64 (+.f64 x y)) (patch (sqrt.f64 (+.f64 x y)) #<representation binary64>) () ())) ()) |
#s(alt (+ (sqrt x) (* 1/2 (* (sqrt (/ 1 x)) y))) (taylor 0 y) (#s(alt (sqrt.f64 (+.f64 x y)) (patch (sqrt.f64 (+.f64 x y)) #<representation binary64>) () ())) ()) |
#s(alt (+ (sqrt x) (* y (+ (* -1/8 (* (sqrt (/ 1 (pow x 3))) y)) (* 1/2 (sqrt (/ 1 x)))))) (taylor 0 y) (#s(alt (sqrt.f64 (+.f64 x y)) (patch (sqrt.f64 (+.f64 x y)) #<representation binary64>) () ())) ()) |
#s(alt (+ (sqrt x) (* y (+ (* 1/2 (sqrt (/ 1 x))) (* y (+ (* -1/8 (sqrt (/ 1 (pow x 3)))) (* 1/16 (* (sqrt (/ 1 (pow x 5))) y))))))) (taylor 0 y) (#s(alt (sqrt.f64 (+.f64 x y)) (patch (sqrt.f64 (+.f64 x y)) #<representation binary64>) () ())) ()) |
#s(alt x (taylor 0 y) (#s(alt (+.f64 x y) (patch (+.f64 x y) #<representation binary64>) () ())) ()) |
#s(alt (+ x y) (taylor 0 y) (#s(alt (+.f64 x y) (patch (+.f64 x y) #<representation binary64>) () ())) ()) |
#s(alt (+ x y) (taylor 0 y) (#s(alt (+.f64 x y) (patch (+.f64 x y) #<representation binary64>) () ())) ()) |
#s(alt (+ x y) (taylor 0 y) (#s(alt (+.f64 x y) (patch (+.f64 x y) #<representation binary64>) () ())) ()) |
#s(alt (sqrt y) (taylor inf y) (#s(alt (sqrt.f64 (+.f64 x y)) (patch (sqrt.f64 (+.f64 x y)) #<representation binary64>) () ())) ()) |
#s(alt (* y (+ (sqrt (/ 1 y)) (* 1/2 (* x (sqrt (/ 1 (pow y 3))))))) (taylor inf y) (#s(alt (sqrt.f64 (+.f64 x y)) (patch (sqrt.f64 (+.f64 x y)) #<representation binary64>) () ())) ()) |
#s(alt (* y (+ (sqrt (/ 1 y)) (+ (* -1/8 (* (pow x 2) (sqrt (/ 1 (pow y 5))))) (* 1/2 (* x (sqrt (/ 1 (pow y 3)))))))) (taylor inf y) (#s(alt (sqrt.f64 (+.f64 x y)) (patch (sqrt.f64 (+.f64 x y)) #<representation binary64>) () ())) ()) |
#s(alt (* 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))))))))) (taylor inf y) (#s(alt (sqrt.f64 (+.f64 x y)) (patch (sqrt.f64 (+.f64 x y)) #<representation binary64>) () ())) ()) |
#s(alt y (taylor inf y) (#s(alt (+.f64 x y) (patch (+.f64 x y) #<representation binary64>) () ())) ()) |
#s(alt (* y (+ 1 (/ x y))) (taylor inf y) (#s(alt (+.f64 x y) (patch (+.f64 x y) #<representation binary64>) () ())) ()) |
#s(alt (* y (+ 1 (/ x y))) (taylor inf y) (#s(alt (+.f64 x y) (patch (+.f64 x y) #<representation binary64>) () ())) ()) |
#s(alt (* y (+ 1 (/ x y))) (taylor inf y) (#s(alt (+.f64 x y) (patch (+.f64 x y) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* (sqrt y) (pow (sqrt -1) 2))) (taylor -inf y) (#s(alt (sqrt.f64 (+.f64 x y)) (patch (sqrt.f64 (+.f64 x y)) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* y (+ (* 1/2 (* x (sqrt (/ 1 (pow y 3))))) (* (sqrt (/ 1 y)) (pow (sqrt -1) 2))))) (taylor -inf y) (#s(alt (sqrt.f64 (+.f64 x y)) (patch (sqrt.f64 (+.f64 x y)) #<representation binary64>) () ())) ()) |
#s(alt (* -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)))))) (taylor -inf y) (#s(alt (sqrt.f64 (+.f64 x y)) (patch (sqrt.f64 (+.f64 x y)) #<representation binary64>) () ())) ()) |
#s(alt (* -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))))))) (taylor -inf y) (#s(alt (sqrt.f64 (+.f64 x y)) (patch (sqrt.f64 (+.f64 x y)) #<representation binary64>) () ())) ()) |
#s(alt y (taylor -inf y) (#s(alt (+.f64 x y) (patch (+.f64 x y) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* y (- (* -1 (/ x y)) 1))) (taylor -inf y) (#s(alt (+.f64 x y) (patch (+.f64 x y) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* y (- (* -1 (/ x y)) 1))) (taylor -inf y) (#s(alt (+.f64 x y) (patch (+.f64 x y) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* y (- (* -1 (/ x y)) 1))) (taylor -inf y) (#s(alt (+.f64 x y) (patch (+.f64 x y) #<representation binary64>) () ())) ()) |
#s(alt (sqrt y) (taylor 0 x) (#s(alt (sqrt.f64 (+.f64 x y)) (patch (sqrt.f64 (+.f64 x y)) #<representation binary64>) () ())) ()) |
#s(alt (+ (sqrt y) (* 1/2 (* x (sqrt (/ 1 y))))) (taylor 0 x) (#s(alt (sqrt.f64 (+.f64 x y)) (patch (sqrt.f64 (+.f64 x y)) #<representation binary64>) () ())) ()) |
#s(alt (+ (sqrt y) (* x (+ (* -1/8 (* x (sqrt (/ 1 (pow y 3))))) (* 1/2 (sqrt (/ 1 y)))))) (taylor 0 x) (#s(alt (sqrt.f64 (+.f64 x y)) (patch (sqrt.f64 (+.f64 x y)) #<representation binary64>) () ())) ()) |
#s(alt (+ (sqrt y) (* x (+ (* 1/2 (sqrt (/ 1 y))) (* x (+ (* -1/8 (sqrt (/ 1 (pow y 3)))) (* 1/16 (* x (sqrt (/ 1 (pow y 5)))))))))) (taylor 0 x) (#s(alt (sqrt.f64 (+.f64 x y)) (patch (sqrt.f64 (+.f64 x y)) #<representation binary64>) () ())) ()) |
#s(alt y (taylor 0 x) (#s(alt (+.f64 x y) (patch (+.f64 x y) #<representation binary64>) () ())) ()) |
#s(alt (+ x y) (taylor 0 x) (#s(alt (+.f64 x y) (patch (+.f64 x y) #<representation binary64>) () ())) ()) |
#s(alt (+ x y) (taylor 0 x) (#s(alt (+.f64 x y) (patch (+.f64 x y) #<representation binary64>) () ())) ()) |
#s(alt (+ x y) (taylor 0 x) (#s(alt (+.f64 x y) (patch (+.f64 x y) #<representation binary64>) () ())) ()) |
#s(alt (sqrt x) (taylor inf x) (#s(alt (sqrt.f64 (+.f64 x y)) (patch (sqrt.f64 (+.f64 x y)) #<representation binary64>) () ())) ()) |
#s(alt (* x (+ (sqrt (/ 1 x)) (* 1/2 (* (sqrt (/ 1 (pow x 3))) y)))) (taylor inf x) (#s(alt (sqrt.f64 (+.f64 x y)) (patch (sqrt.f64 (+.f64 x y)) #<representation binary64>) () ())) ()) |
#s(alt (* x (+ (sqrt (/ 1 x)) (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (pow y 2))) (* 1/2 (* (sqrt (/ 1 (pow x 3))) y))))) (taylor inf x) (#s(alt (sqrt.f64 (+.f64 x y)) (patch (sqrt.f64 (+.f64 x y)) #<representation binary64>) () ())) ()) |
#s(alt (* 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)))))) (taylor inf x) (#s(alt (sqrt.f64 (+.f64 x y)) (patch (sqrt.f64 (+.f64 x y)) #<representation binary64>) () ())) ()) |
#s(alt x (taylor inf x) (#s(alt (+.f64 x y) (patch (+.f64 x y) #<representation binary64>) () ())) ()) |
#s(alt (* x (+ 1 (/ y x))) (taylor inf x) (#s(alt (+.f64 x y) (patch (+.f64 x y) #<representation binary64>) () ())) ()) |
#s(alt (* x (+ 1 (/ y x))) (taylor inf x) (#s(alt (+.f64 x y) (patch (+.f64 x y) #<representation binary64>) () ())) ()) |
#s(alt (* x (+ 1 (/ y x))) (taylor inf x) (#s(alt (+.f64 x y) (patch (+.f64 x y) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* (sqrt x) (pow (sqrt -1) 2))) (taylor -inf x) (#s(alt (sqrt.f64 (+.f64 x y)) (patch (sqrt.f64 (+.f64 x y)) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* x (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) y)) (* (sqrt (/ 1 x)) (pow (sqrt -1) 2))))) (taylor -inf x) (#s(alt (sqrt.f64 (+.f64 x y)) (patch (sqrt.f64 (+.f64 x y)) #<representation binary64>) () ())) ()) |
#s(alt (* -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)))))) (taylor -inf x) (#s(alt (sqrt.f64 (+.f64 x y)) (patch (sqrt.f64 (+.f64 x y)) #<representation binary64>) () ())) ()) |
#s(alt (* -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))))))) (taylor -inf x) (#s(alt (sqrt.f64 (+.f64 x y)) (patch (sqrt.f64 (+.f64 x y)) #<representation binary64>) () ())) ()) |
#s(alt x (taylor -inf x) (#s(alt (+.f64 x y) (patch (+.f64 x y) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* x (- (* -1 (/ y x)) 1))) (taylor -inf x) (#s(alt (+.f64 x y) (patch (+.f64 x y) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* x (- (* -1 (/ y x)) 1))) (taylor -inf x) (#s(alt (+.f64 x y) (patch (+.f64 x y) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* x (- (* -1 (/ y x)) 1))) (taylor -inf x) (#s(alt (+.f64 x y) (patch (+.f64 x y) #<representation binary64>) () ())) ()) |
6 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 3.0ms | y | @ | inf | ((sqrt (+ x y)) (+ x y)) |
| 2.0ms | y | @ | -inf | ((sqrt (+ x y)) (+ x y)) |
| 1.0ms | x | @ | -inf | ((sqrt (+ x y)) (+ x y)) |
| 1.0ms | x | @ | inf | ((sqrt (+ x y)) (+ x y)) |
| 0.0ms | y | @ | 0 | ((sqrt (+ x y)) (+ x y)) |
| 1× | egg-herbie |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 156 | 630 |
| 1 | 454 | 600 |
| 2 | 1426 | 582 |
| 3 | 4628 | 570 |
| 0 | 8167 | 534 |
| 1× | iter limit |
| 1× | node limit |
| Inputs |
|---|
(sqrt x) |
(+ (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))))))) |
x |
(+ x y) |
(+ x y) |
(+ x y) |
(sqrt 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 |
(* y (+ 1 (/ x y))) |
(* y (+ 1 (/ x y))) |
(* 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))))))) |
y |
(* -1 (* y (- (* -1 (/ x y)) 1))) |
(* -1 (* y (- (* -1 (/ x y)) 1))) |
(* -1 (* y (- (* -1 (/ x y)) 1))) |
(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) |
(+ x 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))) |
(* x (+ 1 (/ 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))))))) |
x |
(* -1 (* x (- (* -1 (/ y x)) 1))) |
(* -1 (* x (- (* -1 (/ y x)) 1))) |
(* -1 (* x (- (* -1 (/ y x)) 1))) |
| Outputs |
|---|
(sqrt x) |
(sqrt.f64 x) |
(+ (sqrt x) (* 1/2 (* (sqrt (/ 1 x)) y))) |
(fma.f64 (*.f64 y #s(literal 1/2 binary64)) (sqrt.f64 (/.f64 #s(literal 1 binary64) x)) (sqrt.f64 x)) |
(+ (sqrt x) (* y (+ (* -1/8 (* (sqrt (/ 1 (pow x 3))) y)) (* 1/2 (sqrt (/ 1 x)))))) |
(fma.f64 (fma.f64 (*.f64 #s(literal -1/8 binary64) y) (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 x #s(literal 3 binary64)))) (*.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) x)) #s(literal 1/2 binary64))) y (sqrt.f64 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))))))) |
(fma.f64 (fma.f64 (fma.f64 (*.f64 #s(literal 1/16 binary64) y) (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 x #s(literal 5 binary64)))) (*.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 x #s(literal 3 binary64)))) #s(literal -1/8 binary64))) y (*.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) x)) #s(literal 1/2 binary64))) y (sqrt.f64 x)) |
x |
(+ x y) |
(+.f64 y x) |
(+ x y) |
(+.f64 y x) |
(+ x y) |
(+.f64 y x) |
(sqrt y) |
(sqrt.f64 y) |
(* y (+ (sqrt (/ 1 y)) (* 1/2 (* x (sqrt (/ 1 (pow y 3))))))) |
(*.f64 (fma.f64 (*.f64 #s(literal 1/2 binary64) x) (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 y #s(literal 3 binary64)))) (sqrt.f64 (/.f64 #s(literal 1 binary64) y))) y) |
(* y (+ (sqrt (/ 1 y)) (+ (* -1/8 (* (pow x 2) (sqrt (/ 1 (pow y 5))))) (* 1/2 (* x (sqrt (/ 1 (pow y 3)))))))) |
(*.f64 (fma.f64 (*.f64 (*.f64 #s(literal -1/8 binary64) x) x) (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 y #s(literal 5 binary64)))) (fma.f64 (*.f64 #s(literal 1/2 binary64) x) (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 y #s(literal 3 binary64)))) (sqrt.f64 (/.f64 #s(literal 1 binary64) y)))) y) |
(* 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))))))))) |
(*.f64 (fma.f64 (*.f64 #s(literal 1/16 binary64) (pow.f64 x #s(literal 3 binary64))) (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 y #s(literal 7 binary64)))) (fma.f64 (*.f64 (*.f64 #s(literal -1/8 binary64) x) x) (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 y #s(literal 5 binary64)))) (fma.f64 (*.f64 #s(literal 1/2 binary64) x) (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 y #s(literal 3 binary64)))) (sqrt.f64 (/.f64 #s(literal 1 binary64) y))))) y) |
y |
(* y (+ 1 (/ x y))) |
(+.f64 y x) |
(* y (+ 1 (/ x y))) |
(+.f64 y x) |
(* y (+ 1 (/ x y))) |
(+.f64 y x) |
(* -1 (* (sqrt y) (pow (sqrt -1) 2))) |
(sqrt.f64 y) |
(* -1 (* y (+ (* 1/2 (* x (sqrt (/ 1 (pow y 3))))) (* (sqrt (/ 1 y)) (pow (sqrt -1) 2))))) |
(*.f64 (fma.f64 (*.f64 #s(literal -1/2 binary64) x) (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 y #s(literal 3 binary64)))) (sqrt.f64 (/.f64 #s(literal 1 binary64) y))) y) |
(* -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)))))) |
(*.f64 (fma.f64 (*.f64 #s(literal -1/2 binary64) x) (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 y #s(literal 3 binary64)))) (fma.f64 (*.f64 (*.f64 #s(literal -1/8 binary64) x) x) (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 y #s(literal 5 binary64)))) (sqrt.f64 (/.f64 #s(literal 1 binary64) y)))) y) |
(* -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))))))) |
(*.f64 (fma.f64 #s(literal -1/16 binary64) (/.f64 (*.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 y #s(literal 7 binary64)))) (pow.f64 x #s(literal 3 binary64))) (pow.f64 (sqrt.f64 #s(literal -1 binary64)) #s(literal 4 binary64))) (fma.f64 (*.f64 #s(literal -1/2 binary64) x) (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 y #s(literal 3 binary64)))) (fma.f64 (*.f64 (*.f64 #s(literal -1/8 binary64) x) x) (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 y #s(literal 5 binary64)))) (sqrt.f64 (/.f64 #s(literal 1 binary64) y))))) y) |
y |
(* -1 (* y (- (* -1 (/ x y)) 1))) |
(+.f64 y x) |
(* -1 (* y (- (* -1 (/ x y)) 1))) |
(+.f64 y x) |
(* -1 (* y (- (* -1 (/ x y)) 1))) |
(+.f64 y x) |
(sqrt y) |
(sqrt.f64 y) |
(+ (sqrt y) (* 1/2 (* x (sqrt (/ 1 y))))) |
(fma.f64 (*.f64 #s(literal 1/2 binary64) x) (sqrt.f64 (/.f64 #s(literal 1 binary64) y)) (sqrt.f64 y)) |
(+ (sqrt y) (* x (+ (* -1/8 (* x (sqrt (/ 1 (pow y 3))))) (* 1/2 (sqrt (/ 1 y)))))) |
(fma.f64 (fma.f64 (*.f64 #s(literal -1/8 binary64) x) (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 y #s(literal 3 binary64)))) (*.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) y)) #s(literal 1/2 binary64))) x (sqrt.f64 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)))))))))) |
(fma.f64 (fma.f64 (fma.f64 (*.f64 #s(literal 1/16 binary64) x) (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 y #s(literal 5 binary64)))) (*.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 y #s(literal 3 binary64)))) #s(literal -1/8 binary64))) x (*.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) y)) #s(literal 1/2 binary64))) x (sqrt.f64 y)) |
y |
(+ x y) |
(+.f64 y x) |
(+ x y) |
(+.f64 y x) |
(+ x y) |
(+.f64 y x) |
(sqrt x) |
(sqrt.f64 x) |
(* x (+ (sqrt (/ 1 x)) (* 1/2 (* (sqrt (/ 1 (pow x 3))) y)))) |
(*.f64 (fma.f64 (*.f64 y #s(literal 1/2 binary64)) (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 x #s(literal 3 binary64)))) (sqrt.f64 (/.f64 #s(literal 1 binary64) x))) x) |
(* x (+ (sqrt (/ 1 x)) (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (pow y 2))) (* 1/2 (* (sqrt (/ 1 (pow x 3))) y))))) |
(*.f64 (fma.f64 y (fma.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 x #s(literal 5 binary64)))) (*.f64 #s(literal -1/8 binary64) y) (*.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 x #s(literal 3 binary64)))) #s(literal 1/2 binary64))) (sqrt.f64 (/.f64 #s(literal 1 binary64) x))) x) |
(* 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)))))) |
(*.f64 (fma.f64 (*.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 x #s(literal 7 binary64)))) #s(literal 1/16 binary64)) (pow.f64 y #s(literal 3 binary64)) (fma.f64 y (fma.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 x #s(literal 5 binary64)))) (*.f64 #s(literal -1/8 binary64) y) (*.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 x #s(literal 3 binary64)))) #s(literal 1/2 binary64))) (sqrt.f64 (/.f64 #s(literal 1 binary64) x)))) x) |
x |
(* x (+ 1 (/ y x))) |
(+.f64 y x) |
(* x (+ 1 (/ y x))) |
(+.f64 y x) |
(* x (+ 1 (/ y x))) |
(+.f64 y x) |
(* -1 (* (sqrt x) (pow (sqrt -1) 2))) |
(sqrt.f64 x) |
(* -1 (* x (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) y)) (* (sqrt (/ 1 x)) (pow (sqrt -1) 2))))) |
(*.f64 (fma.f64 (*.f64 #s(literal -1/2 binary64) y) (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 x #s(literal 3 binary64)))) (sqrt.f64 (/.f64 #s(literal 1 binary64) x))) x) |
(* -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)))))) |
(*.f64 (fma.f64 (*.f64 #s(literal -1/2 binary64) y) (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 x #s(literal 3 binary64)))) (fma.f64 (*.f64 (*.f64 y y) #s(literal -1/8 binary64)) (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 x #s(literal 5 binary64)))) (sqrt.f64 (/.f64 #s(literal 1 binary64) x)))) x) |
(* -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))))))) |
(*.f64 (fma.f64 #s(literal -1/16 binary64) (/.f64 (*.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 x #s(literal 7 binary64)))) (pow.f64 y #s(literal 3 binary64))) (pow.f64 (sqrt.f64 #s(literal -1 binary64)) #s(literal 4 binary64))) (fma.f64 (*.f64 #s(literal -1/2 binary64) y) (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 x #s(literal 3 binary64)))) (fma.f64 (*.f64 (*.f64 y y) #s(literal -1/8 binary64)) (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 x #s(literal 5 binary64)))) (sqrt.f64 (/.f64 #s(literal 1 binary64) x))))) x) |
x |
(* -1 (* x (- (* -1 (/ y x)) 1))) |
(+.f64 y x) |
(* -1 (* x (- (* -1 (/ y x)) 1))) |
(+.f64 y x) |
(* -1 (* x (- (* -1 (/ y x)) 1))) |
(+.f64 y x) |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 4 | 7 |
| 0 | 6 | 7 |
| 1 | 22 | 7 |
| 2 | 145 | 7 |
| 3 | 1366 | 7 |
| 0 | 8310 | 7 |
| 1× | iter limit |
| 1× | node limit |
| 1× | iter limit |
| Inputs |
|---|
(sqrt.f64 (+.f64 x y)) |
(+.f64 x y) |
| Outputs |
|---|
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
Compiled 5 681 to 881 computations (84.5% saved)
2 alts after pruning (1 fresh and 1 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 267 | 1 | 268 |
| Fresh | 0 | 0 | 0 |
| Picked | 0 | 1 | 1 |
| Done | 0 | 0 | 0 |
| Total | 267 | 2 | 269 |
| Status | Accuracy | Program |
|---|---|---|
| ✓ | 100.0% | (sqrt.f64 (+.f64 x y)) |
| ▶ | 98.6% | #s(approx (sqrt (+ x y)) (sqrt.f64 y)) |
Compiled 7 to 8 computations (-14.3% saved)
| 1× | egg-herbie |
Found 2 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| cost-diff | 0 | (sqrt.f64 y) | |
| cost-diff | 0 | #s(approx (sqrt (+ x y)) (sqrt.f64 y)) |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 6 | 10 |
| 0 | 7 | 10 |
| 1 | 8 | 10 |
| 0 | 8 | 10 |
| 1× | iter limit |
| 1× | saturated |
| 1× | iter limit |
| Inputs |
|---|
#s(approx (sqrt (+ x y)) (sqrt.f64 y)) |
(sqrt.f64 y) |
y |
| Outputs |
|---|
#s(approx (sqrt (+ x y)) (sqrt.f64 y)) |
(sqrt.f64 y) |
y |
Found 2 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| accuracy | 0 | (sqrt.f64 y) | |
| accuracy | 0.8845086772797692 | #s(approx (sqrt (+ x y)) (sqrt.f64 y)) |
| 13.0ms | 256× | 0 | valid |
Compiled 9 to 7 computations (22.2% saved)
ival-sqrt: 4.0ms (76.6% of total)ival-add: 1.0ms (19.2% of total)ival-true: 0.0ms (0% of total)ival-assert: 0.0ms (0% of total)| Inputs |
|---|
#s(alt #s(approx (sqrt (+ x y)) (sqrt.f64 y)) (patch #s(approx (sqrt (+ x y)) (sqrt.f64 y)) #<representation binary64>) () ()) |
#s(alt (sqrt.f64 y) (patch (sqrt.f64 y) #<representation binary64>) () ()) |
| Outputs |
|---|
#s(alt (sqrt x) (taylor 0 y) (#s(alt #s(approx (sqrt (+ x y)) (sqrt.f64 y)) (patch #s(approx (sqrt (+ x y)) (sqrt.f64 y)) #<representation binary64>) () ())) ()) |
#s(alt (+ (sqrt x) (* 1/2 (* (sqrt (/ 1 x)) y))) (taylor 0 y) (#s(alt #s(approx (sqrt (+ x y)) (sqrt.f64 y)) (patch #s(approx (sqrt (+ x y)) (sqrt.f64 y)) #<representation binary64>) () ())) ()) |
#s(alt (+ (sqrt x) (* y (+ (* -1/8 (* (sqrt (/ 1 (pow x 3))) y)) (* 1/2 (sqrt (/ 1 x)))))) (taylor 0 y) (#s(alt #s(approx (sqrt (+ x y)) (sqrt.f64 y)) (patch #s(approx (sqrt (+ x y)) (sqrt.f64 y)) #<representation binary64>) () ())) ()) |
#s(alt (+ (sqrt x) (* y (+ (* 1/2 (sqrt (/ 1 x))) (* y (+ (* -1/8 (sqrt (/ 1 (pow x 3)))) (* 1/16 (* (sqrt (/ 1 (pow x 5))) y))))))) (taylor 0 y) (#s(alt #s(approx (sqrt (+ x y)) (sqrt.f64 y)) (patch #s(approx (sqrt (+ x y)) (sqrt.f64 y)) #<representation binary64>) () ())) ()) |
#s(alt (sqrt y) (taylor 0 y) (#s(alt (sqrt.f64 y) (patch (sqrt.f64 y) #<representation binary64>) () ())) ()) |
#s(alt (sqrt y) (taylor 0 y) (#s(alt (sqrt.f64 y) (patch (sqrt.f64 y) #<representation binary64>) () ())) ()) |
#s(alt (sqrt y) (taylor 0 y) (#s(alt (sqrt.f64 y) (patch (sqrt.f64 y) #<representation binary64>) () ())) ()) |
#s(alt (sqrt y) (taylor 0 y) (#s(alt (sqrt.f64 y) (patch (sqrt.f64 y) #<representation binary64>) () ())) ()) |
#s(alt (sqrt y) (taylor inf y) (#s(alt #s(approx (sqrt (+ x y)) (sqrt.f64 y)) (patch #s(approx (sqrt (+ x y)) (sqrt.f64 y)) #<representation binary64>) () ())) ()) |
#s(alt (* y (+ (sqrt (/ 1 y)) (* 1/2 (* x (sqrt (/ 1 (pow y 3))))))) (taylor inf y) (#s(alt #s(approx (sqrt (+ x y)) (sqrt.f64 y)) (patch #s(approx (sqrt (+ x y)) (sqrt.f64 y)) #<representation binary64>) () ())) ()) |
#s(alt (* y (+ (sqrt (/ 1 y)) (+ (* -1/8 (* (pow x 2) (sqrt (/ 1 (pow y 5))))) (* 1/2 (* x (sqrt (/ 1 (pow y 3)))))))) (taylor inf y) (#s(alt #s(approx (sqrt (+ x y)) (sqrt.f64 y)) (patch #s(approx (sqrt (+ x y)) (sqrt.f64 y)) #<representation binary64>) () ())) ()) |
#s(alt (* 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))))))))) (taylor inf y) (#s(alt #s(approx (sqrt (+ x y)) (sqrt.f64 y)) (patch #s(approx (sqrt (+ x y)) (sqrt.f64 y)) #<representation binary64>) () ())) ()) |
#s(alt (sqrt y) (taylor inf y) (#s(alt (sqrt.f64 y) (patch (sqrt.f64 y) #<representation binary64>) () ())) ()) |
#s(alt (sqrt y) (taylor inf y) (#s(alt (sqrt.f64 y) (patch (sqrt.f64 y) #<representation binary64>) () ())) ()) |
#s(alt (sqrt y) (taylor inf y) (#s(alt (sqrt.f64 y) (patch (sqrt.f64 y) #<representation binary64>) () ())) ()) |
#s(alt (sqrt y) (taylor inf y) (#s(alt (sqrt.f64 y) (patch (sqrt.f64 y) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* (sqrt y) (pow (sqrt -1) 2))) (taylor -inf y) (#s(alt #s(approx (sqrt (+ x y)) (sqrt.f64 y)) (patch #s(approx (sqrt (+ x y)) (sqrt.f64 y)) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* y (+ (* 1/2 (* x (sqrt (/ 1 (pow y 3))))) (* (sqrt (/ 1 y)) (pow (sqrt -1) 2))))) (taylor -inf y) (#s(alt #s(approx (sqrt (+ x y)) (sqrt.f64 y)) (patch #s(approx (sqrt (+ x y)) (sqrt.f64 y)) #<representation binary64>) () ())) ()) |
#s(alt (* -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)))))) (taylor -inf y) (#s(alt #s(approx (sqrt (+ x y)) (sqrt.f64 y)) (patch #s(approx (sqrt (+ x y)) (sqrt.f64 y)) #<representation binary64>) () ())) ()) |
#s(alt (* -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))))))) (taylor -inf y) (#s(alt #s(approx (sqrt (+ x y)) (sqrt.f64 y)) (patch #s(approx (sqrt (+ x y)) (sqrt.f64 y)) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* (sqrt y) (pow (sqrt -1) 2))) (taylor -inf y) (#s(alt (sqrt.f64 y) (patch (sqrt.f64 y) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* (sqrt y) (pow (sqrt -1) 2))) (taylor -inf y) (#s(alt (sqrt.f64 y) (patch (sqrt.f64 y) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* (sqrt y) (pow (sqrt -1) 2))) (taylor -inf y) (#s(alt (sqrt.f64 y) (patch (sqrt.f64 y) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* (sqrt y) (pow (sqrt -1) 2))) (taylor -inf y) (#s(alt (sqrt.f64 y) (patch (sqrt.f64 y) #<representation binary64>) () ())) ()) |
#s(alt (sqrt y) (taylor 0 x) (#s(alt #s(approx (sqrt (+ x y)) (sqrt.f64 y)) (patch #s(approx (sqrt (+ x y)) (sqrt.f64 y)) #<representation binary64>) () ())) ()) |
#s(alt (+ (sqrt y) (* 1/2 (* x (sqrt (/ 1 y))))) (taylor 0 x) (#s(alt #s(approx (sqrt (+ x y)) (sqrt.f64 y)) (patch #s(approx (sqrt (+ x y)) (sqrt.f64 y)) #<representation binary64>) () ())) ()) |
#s(alt (+ (sqrt y) (* x (+ (* -1/8 (* x (sqrt (/ 1 (pow y 3))))) (* 1/2 (sqrt (/ 1 y)))))) (taylor 0 x) (#s(alt #s(approx (sqrt (+ x y)) (sqrt.f64 y)) (patch #s(approx (sqrt (+ x y)) (sqrt.f64 y)) #<representation binary64>) () ())) ()) |
#s(alt (+ (sqrt y) (* x (+ (* 1/2 (sqrt (/ 1 y))) (* x (+ (* -1/8 (sqrt (/ 1 (pow y 3)))) (* 1/16 (* x (sqrt (/ 1 (pow y 5)))))))))) (taylor 0 x) (#s(alt #s(approx (sqrt (+ x y)) (sqrt.f64 y)) (patch #s(approx (sqrt (+ x y)) (sqrt.f64 y)) #<representation binary64>) () ())) ()) |
#s(alt (sqrt x) (taylor inf x) (#s(alt #s(approx (sqrt (+ x y)) (sqrt.f64 y)) (patch #s(approx (sqrt (+ x y)) (sqrt.f64 y)) #<representation binary64>) () ())) ()) |
#s(alt (* x (+ (sqrt (/ 1 x)) (* 1/2 (* (sqrt (/ 1 (pow x 3))) y)))) (taylor inf x) (#s(alt #s(approx (sqrt (+ x y)) (sqrt.f64 y)) (patch #s(approx (sqrt (+ x y)) (sqrt.f64 y)) #<representation binary64>) () ())) ()) |
#s(alt (* x (+ (sqrt (/ 1 x)) (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (pow y 2))) (* 1/2 (* (sqrt (/ 1 (pow x 3))) y))))) (taylor inf x) (#s(alt #s(approx (sqrt (+ x y)) (sqrt.f64 y)) (patch #s(approx (sqrt (+ x y)) (sqrt.f64 y)) #<representation binary64>) () ())) ()) |
#s(alt (* 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)))))) (taylor inf x) (#s(alt #s(approx (sqrt (+ x y)) (sqrt.f64 y)) (patch #s(approx (sqrt (+ x y)) (sqrt.f64 y)) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* (sqrt x) (pow (sqrt -1) 2))) (taylor -inf x) (#s(alt #s(approx (sqrt (+ x y)) (sqrt.f64 y)) (patch #s(approx (sqrt (+ x y)) (sqrt.f64 y)) #<representation binary64>) () ())) ()) |
#s(alt (* -1 (* x (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) y)) (* (sqrt (/ 1 x)) (pow (sqrt -1) 2))))) (taylor -inf x) (#s(alt #s(approx (sqrt (+ x y)) (sqrt.f64 y)) (patch #s(approx (sqrt (+ x y)) (sqrt.f64 y)) #<representation binary64>) () ())) ()) |
#s(alt (* -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)))))) (taylor -inf x) (#s(alt #s(approx (sqrt (+ x y)) (sqrt.f64 y)) (patch #s(approx (sqrt (+ x y)) (sqrt.f64 y)) #<representation binary64>) () ())) ()) |
#s(alt (* -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))))))) (taylor -inf x) (#s(alt #s(approx (sqrt (+ x y)) (sqrt.f64 y)) (patch #s(approx (sqrt (+ x y)) (sqrt.f64 y)) #<representation binary64>) () ())) ()) |
6 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 1.0ms | y | @ | inf | ((sqrt (+ x y)) (sqrt y)) |
| 1.0ms | y | @ | -inf | ((sqrt (+ x y)) (sqrt y)) |
| 0.0ms | y | @ | 0 | ((sqrt (+ x y)) (sqrt y)) |
| 0.0ms | x | @ | -inf | ((sqrt (+ x y)) (sqrt y)) |
| 0.0ms | x | @ | inf | ((sqrt (+ x y)) (sqrt y)) |
| 1× | egg-herbie |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 141 | 594 |
| 1 | 405 | 564 |
| 2 | 1310 | 546 |
| 3 | 3611 | 524 |
| 4 | 7975 | 524 |
| 0 | 8051 | 490 |
| 1× | iter limit |
| 1× | node limit |
| Inputs |
|---|
(sqrt x) |
(+ (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))))))) |
(sqrt y) |
(sqrt y) |
(sqrt y) |
(sqrt y) |
(sqrt 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))))))))) |
(sqrt y) |
(sqrt y) |
(sqrt y) |
(sqrt 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 (* (sqrt y) (pow (sqrt -1) 2))) |
(* -1 (* (sqrt y) (pow (sqrt -1) 2))) |
(* -1 (* (sqrt y) (pow (sqrt -1) 2))) |
(* -1 (* (sqrt y) (pow (sqrt -1) 2))) |
(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)))))))))) |
(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)))))) |
(* -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))))))) |
| Outputs |
|---|
(sqrt x) |
(sqrt.f64 x) |
(+ (sqrt x) (* 1/2 (* (sqrt (/ 1 x)) y))) |
(fma.f64 (*.f64 y #s(literal 1/2 binary64)) (sqrt.f64 (/.f64 #s(literal 1 binary64) x)) (sqrt.f64 x)) |
(+ (sqrt x) (* y (+ (* -1/8 (* (sqrt (/ 1 (pow x 3))) y)) (* 1/2 (sqrt (/ 1 x)))))) |
(fma.f64 (fma.f64 (*.f64 #s(literal -1/8 binary64) y) (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 x #s(literal 3 binary64)))) (*.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) x)) #s(literal 1/2 binary64))) y (sqrt.f64 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))))))) |
(fma.f64 (fma.f64 (fma.f64 (*.f64 #s(literal 1/16 binary64) y) (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 x #s(literal 5 binary64)))) (*.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 x #s(literal 3 binary64)))) #s(literal -1/8 binary64))) y (*.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) x)) #s(literal 1/2 binary64))) y (sqrt.f64 x)) |
(sqrt y) |
(sqrt.f64 y) |
(sqrt y) |
(sqrt.f64 y) |
(sqrt y) |
(sqrt.f64 y) |
(sqrt y) |
(sqrt.f64 y) |
(sqrt y) |
(sqrt.f64 y) |
(* y (+ (sqrt (/ 1 y)) (* 1/2 (* x (sqrt (/ 1 (pow y 3))))))) |
(*.f64 (fma.f64 (*.f64 #s(literal 1/2 binary64) x) (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 y #s(literal 3 binary64)))) (sqrt.f64 (/.f64 #s(literal 1 binary64) y))) y) |
(* y (+ (sqrt (/ 1 y)) (+ (* -1/8 (* (pow x 2) (sqrt (/ 1 (pow y 5))))) (* 1/2 (* x (sqrt (/ 1 (pow y 3)))))))) |
(*.f64 (fma.f64 x (fma.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 y #s(literal 5 binary64)))) (*.f64 #s(literal -1/8 binary64) x) (*.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 y #s(literal 3 binary64)))) #s(literal 1/2 binary64))) (sqrt.f64 (/.f64 #s(literal 1 binary64) y))) y) |
(* 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))))))))) |
(*.f64 (fma.f64 (*.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 y #s(literal 7 binary64)))) #s(literal 1/16 binary64)) (pow.f64 x #s(literal 3 binary64)) (fma.f64 x (fma.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 y #s(literal 5 binary64)))) (*.f64 #s(literal -1/8 binary64) x) (*.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 y #s(literal 3 binary64)))) #s(literal 1/2 binary64))) (sqrt.f64 (/.f64 #s(literal 1 binary64) y)))) y) |
(sqrt y) |
(sqrt.f64 y) |
(sqrt y) |
(sqrt.f64 y) |
(sqrt y) |
(sqrt.f64 y) |
(sqrt y) |
(sqrt.f64 y) |
(* -1 (* (sqrt y) (pow (sqrt -1) 2))) |
(sqrt.f64 y) |
(* -1 (* y (+ (* 1/2 (* x (sqrt (/ 1 (pow y 3))))) (* (sqrt (/ 1 y)) (pow (sqrt -1) 2))))) |
(*.f64 (fma.f64 (*.f64 #s(literal -1/2 binary64) x) (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 y #s(literal 3 binary64)))) (sqrt.f64 (/.f64 #s(literal 1 binary64) y))) y) |
(* -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)))))) |
(*.f64 (fma.f64 (*.f64 #s(literal -1/2 binary64) x) (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 y #s(literal 3 binary64)))) (fma.f64 (*.f64 (*.f64 x x) #s(literal -1/8 binary64)) (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 y #s(literal 5 binary64)))) (sqrt.f64 (/.f64 #s(literal 1 binary64) y)))) y) |
(* -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))))))) |
(*.f64 (-.f64 (fma.f64 (*.f64 #s(literal -1/2 binary64) x) (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 y #s(literal 3 binary64)))) (sqrt.f64 (/.f64 #s(literal 1 binary64) y))) (*.f64 (*.f64 x x) (fma.f64 (/.f64 x (pow.f64 (sqrt.f64 #s(literal -1 binary64)) #s(literal 4 binary64))) (*.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 y #s(literal 7 binary64)))) #s(literal 1/16 binary64)) (*.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 y #s(literal 5 binary64)))) #s(literal 1/8 binary64))))) y) |
(* -1 (* (sqrt y) (pow (sqrt -1) 2))) |
(sqrt.f64 y) |
(* -1 (* (sqrt y) (pow (sqrt -1) 2))) |
(sqrt.f64 y) |
(* -1 (* (sqrt y) (pow (sqrt -1) 2))) |
(sqrt.f64 y) |
(* -1 (* (sqrt y) (pow (sqrt -1) 2))) |
(sqrt.f64 y) |
(sqrt y) |
(sqrt.f64 y) |
(+ (sqrt y) (* 1/2 (* x (sqrt (/ 1 y))))) |
(fma.f64 (*.f64 #s(literal 1/2 binary64) x) (sqrt.f64 (/.f64 #s(literal 1 binary64) y)) (sqrt.f64 y)) |
(+ (sqrt y) (* x (+ (* -1/8 (* x (sqrt (/ 1 (pow y 3))))) (* 1/2 (sqrt (/ 1 y)))))) |
(fma.f64 (fma.f64 (*.f64 #s(literal -1/8 binary64) x) (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 y #s(literal 3 binary64)))) (*.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) y)) #s(literal 1/2 binary64))) x (sqrt.f64 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)))))))))) |
(fma.f64 (fma.f64 (fma.f64 (*.f64 #s(literal 1/16 binary64) x) (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 y #s(literal 5 binary64)))) (*.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 y #s(literal 3 binary64)))) #s(literal -1/8 binary64))) x (*.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) y)) #s(literal 1/2 binary64))) x (sqrt.f64 y)) |
(sqrt x) |
(sqrt.f64 x) |
(* x (+ (sqrt (/ 1 x)) (* 1/2 (* (sqrt (/ 1 (pow x 3))) y)))) |
(*.f64 (fma.f64 (*.f64 y #s(literal 1/2 binary64)) (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 x #s(literal 3 binary64)))) (sqrt.f64 (/.f64 #s(literal 1 binary64) x))) x) |
(* x (+ (sqrt (/ 1 x)) (+ (* -1/8 (* (sqrt (/ 1 (pow x 5))) (pow y 2))) (* 1/2 (* (sqrt (/ 1 (pow x 3))) y))))) |
(*.f64 (fma.f64 y (fma.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 x #s(literal 5 binary64)))) (*.f64 #s(literal -1/8 binary64) y) (*.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 x #s(literal 3 binary64)))) #s(literal 1/2 binary64))) (sqrt.f64 (/.f64 #s(literal 1 binary64) x))) x) |
(* 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)))))) |
(*.f64 (fma.f64 y (fma.f64 y (fma.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 x #s(literal 7 binary64)))) (*.f64 #s(literal 1/16 binary64) y) (*.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 x #s(literal 5 binary64)))) #s(literal -1/8 binary64))) (*.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 x #s(literal 3 binary64)))) #s(literal 1/2 binary64))) (sqrt.f64 (/.f64 #s(literal 1 binary64) x))) x) |
(* -1 (* (sqrt x) (pow (sqrt -1) 2))) |
(sqrt.f64 x) |
(* -1 (* x (+ (* 1/2 (* (sqrt (/ 1 (pow x 3))) y)) (* (sqrt (/ 1 x)) (pow (sqrt -1) 2))))) |
(*.f64 (fma.f64 (*.f64 #s(literal -1/2 binary64) y) (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 x #s(literal 3 binary64)))) (sqrt.f64 (/.f64 #s(literal 1 binary64) x))) x) |
(* -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)))))) |
(*.f64 (fma.f64 (*.f64 #s(literal -1/2 binary64) y) (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 x #s(literal 3 binary64)))) (fma.f64 (*.f64 (*.f64 #s(literal -1/8 binary64) y) y) (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 x #s(literal 5 binary64)))) (sqrt.f64 (/.f64 #s(literal 1 binary64) x)))) x) |
(* -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))))))) |
(*.f64 (-.f64 (fma.f64 (*.f64 #s(literal -1/2 binary64) y) (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 x #s(literal 3 binary64)))) (sqrt.f64 (/.f64 #s(literal 1 binary64) x))) (*.f64 (*.f64 y y) (fma.f64 #s(literal 1/8 binary64) (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 x #s(literal 5 binary64)))) (/.f64 (*.f64 (sqrt.f64 (/.f64 #s(literal 1 binary64) (pow.f64 x #s(literal 7 binary64)))) (*.f64 #s(literal 1/16 binary64) y)) (pow.f64 (sqrt.f64 #s(literal -1 binary64)) #s(literal 4 binary64)))))) x) |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 6 | 9 |
| 0 | 7 | 9 |
| 1 | 24 | 9 |
| 2 | 151 | 9 |
| 3 | 1382 | 9 |
| 0 | 8340 | 9 |
| 1× | iter limit |
| 1× | node limit |
| 1× | iter limit |
| Inputs |
|---|
#s(approx (sqrt (+ x y)) (sqrt.f64 y)) |
(sqrt.f64 y) |
| Outputs |
|---|
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
#<batchref> |
Compiled 626 to 167 computations (73.3% saved)
2 alts after pruning (0 fresh and 2 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 49 | 0 | 49 |
| Fresh | 0 | 0 | 0 |
| Picked | 0 | 1 | 1 |
| Done | 0 | 1 | 1 |
| Total | 49 | 2 | 51 |
| Status | Accuracy | Program |
|---|---|---|
| ✓ | 100.0% | (sqrt.f64 (+.f64 x y)) |
| ✓ | 98.6% | #s(approx (sqrt (+ x y)) (sqrt.f64 y)) |
Compiled 14 to 14 computations (0% saved)
| Inputs |
|---|
#s(approx (sqrt (+ x y)) (sqrt.f64 y)) |
(sqrt.f64 (+.f64 x y)) |
| Outputs |
|---|
(sqrt.f64 (+.f64 x y)) |
4 calls:
| 5.0ms | x |
| 2.0ms | (sqrt.f64 (+.f64 x y)) |
| 2.0ms | (+.f64 x y) |
| 2.0ms | y |
| 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)) (sqrt.f64 y)) |
| Outputs |
|---|
#s(approx (sqrt (+ x y)) (sqrt.f64 y)) |
4 calls:
| 1.0ms | (sqrt.f64 (+.f64 x y)) |
| 1.0ms | (+.f64 x y) |
| 1.0ms | y |
| 1.0ms | x |
| Accuracy | Segments | Branch |
|---|---|---|
| 98.6% | 1 | x |
| 98.6% | 1 | y |
| 98.6% | 1 | (sqrt.f64 (+.f64 x y)) |
| 98.6% | 1 | (+.f64 x y) |
Compiled 9 to 11 computations (-22.2% saved)
| 1× | egg-herbie |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 8 | 11 |
| 1 | 9 | 11 |
| 1× | saturated |
| Inputs |
|---|
(sqrt.f64 (+.f64 x y)) |
#s(approx (sqrt (+ x y)) (sqrt.f64 y)) |
| Outputs |
|---|
(sqrt.f64 (+.f64 x y)) |
(sqrt.f64 (+.f64 y x)) |
#s(approx (sqrt (+ x y)) (sqrt.f64 y)) |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 156 | 630 |
| 1 | 454 | 600 |
| 2 | 1426 | 582 |
| 3 | 4628 | 570 |
| 0 | 8167 | 534 |
| 1× | done |
| 1× | iter limit |
| 1× | node limit |
Compiled 9 to 9 computations (0% saved)
(sort x y)
Compiled 38 to 36 computations (5.3% saved)
Loading profile data...