
Time bar (total: 1.3s)
| 1× | search |
| Probability | Valid | Unknown | Precondition | Infinite | Domain | Can't | Iter |
|---|---|---|---|---|---|---|---|
| 0% | 0% | 100% | 0% | 0% | 0% | 0% | 0 |
| 100% | 100% | 0% | 0% | 0% | 0% | 0% | 1 |
Compiled 10 to 6 computations (40% saved)
| 369.0ms | 8 256× | 0 | valid |
ival-pow2: 100.0ms (49.5% of total)ival-sqrt: 58.0ms (28.7% of total)ival-add: 36.0ms (17.8% of total)ival-true: 6.0ms (3% of total)ival-assert: 3.0ms (1.5% of total)| Ground Truth | Overpredictions | Example | Underpredictions | Example | Subexpression |
|---|---|---|---|---|---|
| 127 | 0 | - | 1 | (-3.205063124266989e-162) | (sqrt.f64 (+.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 x #s(literal 2 binary64)))) |
| 0 | 0 | - | 0 | - | (pow.f64 x #s(literal 2 binary64)) |
| 0 | 0 | - | 0 | - | #s(literal 2 binary64) |
| 0 | 0 | - | 0 | - | (+.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 x #s(literal 2 binary64))) |
| 0 | 0 | - | 0 | - | x |
| Operator | Subexpression | Explanation | Count | |
|---|---|---|---|---|
sqrt.f64 | (sqrt.f64 (+.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 x #s(literal 2 binary64)))) | oflow-rescue | 64 | 0 |
| ↳ | (+.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 x #s(literal 2 binary64))) | overflow | 64 | |
| ↳ | (pow.f64 x #s(literal 2 binary64)) | overflow | 128 | |
sqrt.f64 | (sqrt.f64 (+.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 x #s(literal 2 binary64)))) | uflow-rescue | 62 | 0 |
| ↳ | (+.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 x #s(literal 2 binary64))) | underflow | 62 | |
| ↳ | (pow.f64 x #s(literal 2 binary64)) | underflow | 124 |
| Predicted + | Predicted - | |
|---|---|---|
| + | 126 | 1 |
| - | 0 | 129 |
| Predicted + | Predicted Maybe | Predicted - | |
|---|---|---|---|
| + | 126 | 0 | 1 |
| - | 0 | 0 | 129 |
| number | freq |
|---|---|
| 0 | 130 |
| 1 | 126 |
| Predicted + | Predicted Maybe | Predicted - | |
|---|---|---|---|
| + | 1 | 0 | 0 |
| - | 0 | 0 | 0 |
| 24.0ms | 512× | 0 | valid |
Compiled 72 to 24 computations (66.7% saved)
ival-pow2: 6.0ms (46.8% of total)ival-sqrt: 4.0ms (31.2% of total)ival-add: 2.0ms (15.6% of total)ival-true: 0.0ms (0% of total)exact: 0.0ms (0% of total)ival-assert: 0.0ms (0% of total)| 1× | egg-herbie |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 7 | 15 |
| 1 | 15 | 13 |
| 2 | 35 | 13 |
| 3 | 146 | 13 |
| 4 | 286 | 13 |
| 5 | 313 | 13 |
| 6 | 315 | 13 |
| 0 | 5 | 8 |
| 0 | 8 | 6 |
| 1 | 10 | 6 |
| 2 | 15 | 6 |
| 3 | 18 | 6 |
| 0 | 18 | 3 |
| 1× | iter limit |
| 1× | saturated |
| 1× | iter limit |
| 1× | saturated |
| Inputs |
|---|
(sqrt.f64 (+.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 x #s(literal 2 binary64)))) |
| Outputs |
|---|
(hypot.f64 x x) |
Compiled 8 to 5 computations (37.5% saved)
Compiled 0 to 1 computations (-∞% saved)
| Status | Accuracy | Program |
|---|---|---|
| ▶ | 53.9% | (sqrt.f64 (+.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 x #s(literal 2 binary64)))) |
Compiled 8 to 5 computations (37.5% saved)
| 1× | egg-herbie |
Found 3 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| cost-diff | -5184 | (sqrt.f64 (+.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 x #s(literal 2 binary64)))) | |
| cost-diff | 192 | (+.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 x #s(literal 2 binary64))) | |
| cost-diff | 6144 | (pow.f64 x #s(literal 2 binary64)) |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 5 | 20 |
| 0 | 8 | 16 |
| 1 | 10 | 16 |
| 2 | 15 | 16 |
| 3 | 18 | 16 |
| 0 | 18 | 13 |
| 1× | iter limit |
| 1× | saturated |
| 1× | iter limit |
| Inputs |
|---|
(sqrt.f64 (+.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 x #s(literal 2 binary64)))) |
(+.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 x #s(literal 2 binary64))) |
(pow.f64 x #s(literal 2 binary64)) |
x |
#s(literal 2 binary64) |
| Outputs |
|---|
(hypot.f64 x x) |
(*.f64 (*.f64 x x) #s(literal 2 binary64)) |
(*.f64 x x) |
x |
#s(literal 2 binary64) |
Found 3 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| accuracy | 0 | (pow.f64 x #s(literal 2 binary64)) | |
| accuracy | 0 | (+.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 x #s(literal 2 binary64))) | |
| accuracy | 29.528840470955043 | (sqrt.f64 (+.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 x #s(literal 2 binary64)))) |
| 12.0ms | 256× | 0 | valid |
Compiled 42 to 12 computations (71.4% saved)
ival-pow2: 3.0ms (48.5% of total)ival-sqrt: 2.0ms (32.3% of total)ival-add: 1.0ms (16.2% of total)ival-true: 0.0ms (0% of total)exact: 0.0ms (0% of total)ival-assert: 0.0ms (0% of total)| Inputs |
|---|
#s(alt #<batchref> (patch (pow.f64 x #s(literal 2 binary64)) #<representation binary64>) () ()) |
#s(alt #<batchref> (patch (+.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 x #s(literal 2 binary64))) #<representation binary64>) () ()) |
#s(alt #<batchref> (patch (sqrt.f64 (+.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 x #s(literal 2 binary64)))) #<representation binary64>) () ()) |
| Outputs |
|---|
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch (pow.f64 x #s(literal 2 binary64)) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch (pow.f64 x #s(literal 2 binary64)) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch (pow.f64 x #s(literal 2 binary64)) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch (pow.f64 x #s(literal 2 binary64)) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch (+.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 x #s(literal 2 binary64))) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch (+.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 x #s(literal 2 binary64))) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch (+.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 x #s(literal 2 binary64))) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch (+.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 x #s(literal 2 binary64))) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch (sqrt.f64 (+.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 x #s(literal 2 binary64)))) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch (sqrt.f64 (+.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 x #s(literal 2 binary64)))) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch (sqrt.f64 (+.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 x #s(literal 2 binary64)))) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch (sqrt.f64 (+.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 x #s(literal 2 binary64)))) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch (pow.f64 x #s(literal 2 binary64)) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch (pow.f64 x #s(literal 2 binary64)) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch (pow.f64 x #s(literal 2 binary64)) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch (pow.f64 x #s(literal 2 binary64)) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch (+.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 x #s(literal 2 binary64))) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch (+.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 x #s(literal 2 binary64))) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch (+.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 x #s(literal 2 binary64))) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch (+.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 x #s(literal 2 binary64))) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch (sqrt.f64 (+.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 x #s(literal 2 binary64)))) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch (sqrt.f64 (+.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 x #s(literal 2 binary64)))) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch (sqrt.f64 (+.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 x #s(literal 2 binary64)))) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch (sqrt.f64 (+.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 x #s(literal 2 binary64)))) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch (pow.f64 x #s(literal 2 binary64)) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch (pow.f64 x #s(literal 2 binary64)) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch (pow.f64 x #s(literal 2 binary64)) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch (pow.f64 x #s(literal 2 binary64)) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch (+.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 x #s(literal 2 binary64))) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch (+.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 x #s(literal 2 binary64))) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch (+.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 x #s(literal 2 binary64))) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch (+.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 x #s(literal 2 binary64))) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch (sqrt.f64 (+.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 x #s(literal 2 binary64)))) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch (sqrt.f64 (+.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 x #s(literal 2 binary64)))) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch (sqrt.f64 (+.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 x #s(literal 2 binary64)))) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch (sqrt.f64 (+.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 x #s(literal 2 binary64)))) #<representation binary64>) () ())) ()) |
3 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 1.0ms | x | @ | 0 | ((pow x 2) (+ (pow x 2) (pow x 2)) (sqrt (+ (pow x 2) (pow x 2)))) |
| 1.0ms | x | @ | inf | ((pow x 2) (+ (pow x 2) (pow x 2)) (sqrt (+ (pow x 2) (pow x 2)))) |
| 1.0ms | x | @ | -inf | ((pow x 2) (+ (pow x 2) (pow x 2)) (sqrt (+ (pow x 2) (pow x 2)))) |
| 1× | egg-herbie |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 8 | 148 |
| 1 | 15 | 148 |
| 2 | 32 | 148 |
| 3 | 37 | 148 |
| 4 | 41 | 148 |
| 5 | 53 | 148 |
| 6 | 65 | 148 |
| 7 | 76 | 148 |
| 8 | 96 | 148 |
| 9 | 101 | 148 |
| 0 | 101 | 148 |
| 1× | iter limit |
| 1× | saturated |
| Inputs |
|---|
(pow x 2) |
(pow x 2) |
(pow x 2) |
(pow x 2) |
(* 2 (pow x 2)) |
(* 2 (pow x 2)) |
(* 2 (pow x 2)) |
(* 2 (pow x 2)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(pow x 2) |
(pow x 2) |
(pow x 2) |
(pow x 2) |
(* 2 (pow x 2)) |
(* 2 (pow x 2)) |
(* 2 (pow x 2)) |
(* 2 (pow x 2)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(pow x 2) |
(pow x 2) |
(pow x 2) |
(pow x 2) |
(* 2 (pow x 2)) |
(* 2 (pow x 2)) |
(* 2 (pow x 2)) |
(* 2 (pow x 2)) |
(* -1 (* x (sqrt 2))) |
(* -1 (* x (sqrt 2))) |
(* -1 (* x (sqrt 2))) |
(* -1 (* x (sqrt 2))) |
| Outputs |
|---|
(*.f64 x x) |
(*.f64 x x) |
(*.f64 x x) |
(*.f64 x x) |
(*.f64 (*.f64 x x) #s(literal 2 binary64)) |
(*.f64 (*.f64 x x) #s(literal 2 binary64)) |
(*.f64 (*.f64 x x) #s(literal 2 binary64)) |
(*.f64 (*.f64 x x) #s(literal 2 binary64)) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x) |
(*.f64 x x) |
(*.f64 x x) |
(*.f64 x x) |
(*.f64 x x) |
(*.f64 (*.f64 x x) #s(literal 2 binary64)) |
(*.f64 (*.f64 x x) #s(literal 2 binary64)) |
(*.f64 (*.f64 x x) #s(literal 2 binary64)) |
(*.f64 (*.f64 x x) #s(literal 2 binary64)) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x) |
(*.f64 x x) |
(*.f64 x x) |
(*.f64 x x) |
(*.f64 x x) |
(*.f64 (*.f64 x x) #s(literal 2 binary64)) |
(*.f64 (*.f64 x x) #s(literal 2 binary64)) |
(*.f64 (*.f64 x x) #s(literal 2 binary64)) |
(*.f64 (*.f64 x x) #s(literal 2 binary64)) |
(*.f64 (neg.f64 x) (sqrt.f64 #s(literal 2 binary64))) |
(*.f64 (neg.f64 x) (sqrt.f64 #s(literal 2 binary64))) |
(*.f64 (neg.f64 x) (sqrt.f64 #s(literal 2 binary64))) |
(*.f64 (neg.f64 x) (sqrt.f64 #s(literal 2 binary64))) |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 5 | 18 |
| 0 | 8 | 14 |
| 1 | 28 | 10 |
| 0 | 170 | 9 |
| 1× | iter limit |
| 1× | iter limit |
| 1× | iter limit |
| 1× | unsound |
| 1× | iter limit |
| Inputs |
|---|
(pow.f64 x #s(literal 2 binary64)) |
(+.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 x #s(literal 2 binary64))) |
(sqrt.f64 (+.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 x #s(literal 2 binary64)))) |
| 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> |
Compiled 945 to 118 computations (87.5% saved)
4 alts after pruning (4 fresh and 0 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 83 | 4 | 87 |
| Fresh | 0 | 0 | 0 |
| Picked | 1 | 0 | 1 |
| Done | 0 | 0 | 0 |
| Total | 84 | 4 | 88 |
| Status | Accuracy | Program |
|---|---|---|
| ▶ | 100.0% | (hypot.f64 x x) |
| ▶ | 53.9% | (sqrt.f64 (*.f64 x (+.f64 x x))) |
| ▶ | 50.8% | #s(approx (sqrt (+ (pow x 2) (pow x 2))) (*.f64 (sqrt.f64 #s(literal 2 binary64)) x)) |
| ▶ | 50.8% | #s(approx (sqrt (+ (pow x 2) (pow x 2))) (*.f64 (neg.f64 x) (sqrt.f64 #s(literal 2 binary64)))) |
Compiled 36 to 25 computations (30.6% saved)
| 1× | egg-herbie |
Found 11 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| cost-diff | 0 | (hypot.f64 x x) | |
| cost-diff | -5184 | (sqrt.f64 (*.f64 x (+.f64 x x))) | |
| cost-diff | -128 | (+.f64 x x) | |
| cost-diff | 0 | (*.f64 x (+.f64 x x)) | |
| cost-diff | 0 | (sqrt.f64 #s(literal 2 binary64)) | |
| cost-diff | 0 | (*.f64 (sqrt.f64 #s(literal 2 binary64)) x) | |
| cost-diff | 0 | #s(approx (sqrt (+ (pow x 2) (pow x 2))) (*.f64 (sqrt.f64 #s(literal 2 binary64)) x)) | |
| cost-diff | 0 | (sqrt.f64 #s(literal 2 binary64)) | |
| cost-diff | 0 | (neg.f64 x) | |
| cost-diff | 0 | (*.f64 (neg.f64 x) (sqrt.f64 #s(literal 2 binary64))) | |
| cost-diff | 0 | #s(approx (sqrt (+ (pow x 2) (pow x 2))) (*.f64 (neg.f64 x) (sqrt.f64 #s(literal 2 binary64)))) |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 15 | 65 |
| 0 | 25 | 52 |
| 1 | 36 | 52 |
| 2 | 48 | 52 |
| 3 | 59 | 52 |
| 4 | 65 | 52 |
| 5 | 76 | 52 |
| 6 | 104 | 52 |
| 7 | 123 | 52 |
| 8 | 138 | 52 |
| 9 | 216 | 52 |
| 10 | 346 | 52 |
| 11 | 360 | 52 |
| 12 | 364 | 52 |
| 0 | 364 | 52 |
| 1× | iter limit |
| 1× | saturated |
| 1× | iter limit |
| Inputs |
|---|
#s(approx (sqrt (+ (pow x 2) (pow x 2))) (*.f64 (neg.f64 x) (sqrt.f64 #s(literal 2 binary64)))) |
(*.f64 (neg.f64 x) (sqrt.f64 #s(literal 2 binary64))) |
(neg.f64 x) |
x |
(sqrt.f64 #s(literal 2 binary64)) |
#s(literal 2 binary64) |
#s(approx (sqrt (+ (pow x 2) (pow x 2))) (*.f64 (sqrt.f64 #s(literal 2 binary64)) x)) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x) |
(sqrt.f64 #s(literal 2 binary64)) |
#s(literal 2 binary64) |
x |
(sqrt.f64 (*.f64 x (+.f64 x x))) |
(*.f64 x (+.f64 x x)) |
x |
(+.f64 x x) |
(hypot.f64 x x) |
x |
| Outputs |
|---|
#s(approx (sqrt (+ (pow x 2) (pow x 2))) (*.f64 (sqrt.f64 #s(literal 2 binary64)) (neg.f64 x))) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) (neg.f64 x)) |
(neg.f64 x) |
x |
(sqrt.f64 #s(literal 2 binary64)) |
#s(literal 2 binary64) |
#s(approx (sqrt (+ (pow x 2) (pow x 2))) (*.f64 (sqrt.f64 #s(literal 2 binary64)) x)) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x) |
(sqrt.f64 #s(literal 2 binary64)) |
#s(literal 2 binary64) |
x |
(hypot.f64 x x) |
(*.f64 (*.f64 #s(literal 2 binary64) x) x) |
x |
(*.f64 #s(literal 2 binary64) x) |
(hypot.f64 x x) |
x |
Found 11 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| accuracy | 0.02734375 | (hypot.f64 x x) | |
| accuracy | 0 | (+.f64 x x) | |
| accuracy | 0 | (*.f64 x (+.f64 x x)) | |
| accuracy | 29.528840470955043 | (sqrt.f64 (*.f64 x (+.f64 x x))) | |
| accuracy | 0 | (sqrt.f64 #s(literal 2 binary64)) | |
| accuracy | 0.41796875 | (*.f64 (sqrt.f64 #s(literal 2 binary64)) x) | |
| accuracy | 31.29591355370109 | #s(approx (sqrt (+ (pow x 2) (pow x 2))) (*.f64 (sqrt.f64 #s(literal 2 binary64)) x)) | |
| accuracy | 0 | (sqrt.f64 #s(literal 2 binary64)) | |
| accuracy | 0 | (neg.f64 x) | |
| accuracy | 0.41796875 | (*.f64 (neg.f64 x) (sqrt.f64 #s(literal 2 binary64))) | |
| accuracy | 31.260703610900592 | #s(approx (sqrt (+ (pow x 2) (pow x 2))) (*.f64 (neg.f64 x) (sqrt.f64 #s(literal 2 binary64)))) |
| 36.0ms | 256× | 0 | valid |
Compiled 126 to 31 computations (75.4% saved)
ival-sqrt: 11.0ms (42.3% of total)ival-mult: 5.0ms (19.2% of total)ival-hypot: 4.0ms (15.4% of total)ival-pow2: 3.0ms (11.5% of total)ival-add: 2.0ms (7.7% of total)ival-neg: 1.0ms (3.8% of total)ival-assert: 0.0ms (0% of total)ival-true: 0.0ms (0% of total)exact: 0.0ms (0% of total)| Inputs |
|---|
#s(alt #<batchref> (patch #s(approx (sqrt (+ (pow x 2) (pow x 2))) (*.f64 (neg.f64 x) (sqrt.f64 #s(literal 2 binary64)))) #<representation binary64>) () ()) |
#s(alt #<batchref> (patch (*.f64 (neg.f64 x) (sqrt.f64 #s(literal 2 binary64))) #<representation binary64>) () ()) |
#s(alt #<batchref> (patch (neg.f64 x) #<representation binary64>) () ()) |
#s(alt #<batchref> (patch (sqrt.f64 #s(literal 2 binary64)) #<representation binary64>) () ()) |
#s(alt #<batchref> (patch #s(approx (sqrt (+ (pow x 2) (pow x 2))) (*.f64 (sqrt.f64 #s(literal 2 binary64)) x)) #<representation binary64>) () ()) |
#s(alt #<batchref> (patch (*.f64 (sqrt.f64 #s(literal 2 binary64)) x) #<representation binary64>) () ()) |
#s(alt #<batchref> (patch (*.f64 x (+.f64 x x)) #<representation binary64>) () ()) |
#s(alt #<batchref> (patch (+.f64 x x) #<representation binary64>) () ()) |
#s(alt #<batchref> (patch (sqrt.f64 (*.f64 x (+.f64 x x))) #<representation binary64>) () ()) |
#s(alt #<batchref> (patch (hypot.f64 x x) #<representation binary64>) () ()) |
| Outputs |
|---|
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch #s(approx (sqrt (+ (pow x 2) (pow x 2))) (*.f64 (neg.f64 x) (sqrt.f64 #s(literal 2 binary64)))) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch #s(approx (sqrt (+ (pow x 2) (pow x 2))) (*.f64 (neg.f64 x) (sqrt.f64 #s(literal 2 binary64)))) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch #s(approx (sqrt (+ (pow x 2) (pow x 2))) (*.f64 (neg.f64 x) (sqrt.f64 #s(literal 2 binary64)))) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch #s(approx (sqrt (+ (pow x 2) (pow x 2))) (*.f64 (neg.f64 x) (sqrt.f64 #s(literal 2 binary64)))) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch (*.f64 (neg.f64 x) (sqrt.f64 #s(literal 2 binary64))) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch (*.f64 (neg.f64 x) (sqrt.f64 #s(literal 2 binary64))) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch (*.f64 (neg.f64 x) (sqrt.f64 #s(literal 2 binary64))) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch (*.f64 (neg.f64 x) (sqrt.f64 #s(literal 2 binary64))) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch (neg.f64 x) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch (neg.f64 x) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch (neg.f64 x) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch (neg.f64 x) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch #s(approx (sqrt (+ (pow x 2) (pow x 2))) (*.f64 (sqrt.f64 #s(literal 2 binary64)) x)) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch #s(approx (sqrt (+ (pow x 2) (pow x 2))) (*.f64 (sqrt.f64 #s(literal 2 binary64)) x)) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch #s(approx (sqrt (+ (pow x 2) (pow x 2))) (*.f64 (sqrt.f64 #s(literal 2 binary64)) x)) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch #s(approx (sqrt (+ (pow x 2) (pow x 2))) (*.f64 (sqrt.f64 #s(literal 2 binary64)) x)) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch (*.f64 (sqrt.f64 #s(literal 2 binary64)) x) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch (*.f64 (sqrt.f64 #s(literal 2 binary64)) x) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch (*.f64 (sqrt.f64 #s(literal 2 binary64)) x) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch (*.f64 (sqrt.f64 #s(literal 2 binary64)) x) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch (*.f64 x (+.f64 x x)) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch (*.f64 x (+.f64 x x)) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch (*.f64 x (+.f64 x x)) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch (*.f64 x (+.f64 x x)) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch (+.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch (+.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch (+.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch (+.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch (sqrt.f64 (*.f64 x (+.f64 x x))) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch (sqrt.f64 (*.f64 x (+.f64 x x))) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch (sqrt.f64 (*.f64 x (+.f64 x x))) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch (sqrt.f64 (*.f64 x (+.f64 x x))) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch (hypot.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch (hypot.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch (hypot.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch (hypot.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch #s(approx (sqrt (+ (pow x 2) (pow x 2))) (*.f64 (neg.f64 x) (sqrt.f64 #s(literal 2 binary64)))) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch #s(approx (sqrt (+ (pow x 2) (pow x 2))) (*.f64 (neg.f64 x) (sqrt.f64 #s(literal 2 binary64)))) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch #s(approx (sqrt (+ (pow x 2) (pow x 2))) (*.f64 (neg.f64 x) (sqrt.f64 #s(literal 2 binary64)))) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch #s(approx (sqrt (+ (pow x 2) (pow x 2))) (*.f64 (neg.f64 x) (sqrt.f64 #s(literal 2 binary64)))) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch (*.f64 (neg.f64 x) (sqrt.f64 #s(literal 2 binary64))) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch (*.f64 (neg.f64 x) (sqrt.f64 #s(literal 2 binary64))) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch (*.f64 (neg.f64 x) (sqrt.f64 #s(literal 2 binary64))) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch (*.f64 (neg.f64 x) (sqrt.f64 #s(literal 2 binary64))) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch (neg.f64 x) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch (neg.f64 x) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch (neg.f64 x) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch (neg.f64 x) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch #s(approx (sqrt (+ (pow x 2) (pow x 2))) (*.f64 (sqrt.f64 #s(literal 2 binary64)) x)) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch #s(approx (sqrt (+ (pow x 2) (pow x 2))) (*.f64 (sqrt.f64 #s(literal 2 binary64)) x)) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch #s(approx (sqrt (+ (pow x 2) (pow x 2))) (*.f64 (sqrt.f64 #s(literal 2 binary64)) x)) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch #s(approx (sqrt (+ (pow x 2) (pow x 2))) (*.f64 (sqrt.f64 #s(literal 2 binary64)) x)) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch (*.f64 (sqrt.f64 #s(literal 2 binary64)) x) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch (*.f64 (sqrt.f64 #s(literal 2 binary64)) x) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch (*.f64 (sqrt.f64 #s(literal 2 binary64)) x) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch (*.f64 (sqrt.f64 #s(literal 2 binary64)) x) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch (*.f64 x (+.f64 x x)) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch (*.f64 x (+.f64 x x)) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch (*.f64 x (+.f64 x x)) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch (*.f64 x (+.f64 x x)) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch (+.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch (+.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch (+.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch (+.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch (sqrt.f64 (*.f64 x (+.f64 x x))) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch (sqrt.f64 (*.f64 x (+.f64 x x))) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch (sqrt.f64 (*.f64 x (+.f64 x x))) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch (sqrt.f64 (*.f64 x (+.f64 x x))) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch (hypot.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch (hypot.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch (hypot.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch (hypot.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch #s(approx (sqrt (+ (pow x 2) (pow x 2))) (*.f64 (neg.f64 x) (sqrt.f64 #s(literal 2 binary64)))) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch #s(approx (sqrt (+ (pow x 2) (pow x 2))) (*.f64 (neg.f64 x) (sqrt.f64 #s(literal 2 binary64)))) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch #s(approx (sqrt (+ (pow x 2) (pow x 2))) (*.f64 (neg.f64 x) (sqrt.f64 #s(literal 2 binary64)))) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch #s(approx (sqrt (+ (pow x 2) (pow x 2))) (*.f64 (neg.f64 x) (sqrt.f64 #s(literal 2 binary64)))) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch (*.f64 (neg.f64 x) (sqrt.f64 #s(literal 2 binary64))) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch (*.f64 (neg.f64 x) (sqrt.f64 #s(literal 2 binary64))) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch (*.f64 (neg.f64 x) (sqrt.f64 #s(literal 2 binary64))) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch (*.f64 (neg.f64 x) (sqrt.f64 #s(literal 2 binary64))) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch (neg.f64 x) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch (neg.f64 x) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch (neg.f64 x) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch (neg.f64 x) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch #s(approx (sqrt (+ (pow x 2) (pow x 2))) (*.f64 (sqrt.f64 #s(literal 2 binary64)) x)) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch #s(approx (sqrt (+ (pow x 2) (pow x 2))) (*.f64 (sqrt.f64 #s(literal 2 binary64)) x)) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch #s(approx (sqrt (+ (pow x 2) (pow x 2))) (*.f64 (sqrt.f64 #s(literal 2 binary64)) x)) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch #s(approx (sqrt (+ (pow x 2) (pow x 2))) (*.f64 (sqrt.f64 #s(literal 2 binary64)) x)) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch (*.f64 (sqrt.f64 #s(literal 2 binary64)) x) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch (*.f64 (sqrt.f64 #s(literal 2 binary64)) x) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch (*.f64 (sqrt.f64 #s(literal 2 binary64)) x) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch (*.f64 (sqrt.f64 #s(literal 2 binary64)) x) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch (*.f64 x (+.f64 x x)) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch (*.f64 x (+.f64 x x)) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch (*.f64 x (+.f64 x x)) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch (*.f64 x (+.f64 x x)) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch (+.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch (+.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch (+.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch (+.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch (sqrt.f64 (*.f64 x (+.f64 x x))) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch (sqrt.f64 (*.f64 x (+.f64 x x))) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch (sqrt.f64 (*.f64 x (+.f64 x x))) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch (sqrt.f64 (*.f64 x (+.f64 x x))) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch (hypot.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch (hypot.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch (hypot.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch (hypot.f64 x x) #<representation binary64>) () ())) ()) |
3 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 1.0ms | x | @ | inf | ((sqrt (+ (pow x 2) (pow x 2))) (* (neg x) (sqrt 2)) (neg x) (sqrt 2) (sqrt (+ (pow x 2) (pow x 2))) (* (sqrt 2) x) (* x (+ x x)) (+ x x) (sqrt (* x (+ x x))) (sqrt (+ (* x x) (* x x)))) |
| 1.0ms | x | @ | 0 | ((sqrt (+ (pow x 2) (pow x 2))) (* (neg x) (sqrt 2)) (neg x) (sqrt 2) (sqrt (+ (pow x 2) (pow x 2))) (* (sqrt 2) x) (* x (+ x x)) (+ x x) (sqrt (* x (+ x x))) (sqrt (+ (* x x) (* x x)))) |
| 1.0ms | x | @ | -inf | ((sqrt (+ (pow x 2) (pow x 2))) (* (neg x) (sqrt 2)) (neg x) (sqrt 2) (sqrt (+ (pow x 2) (pow x 2))) (* (sqrt 2) x) (* x (+ x x)) (+ x x) (sqrt (* x (+ x x))) (sqrt (+ (* x x) (* x x)))) |
| 1× | egg-herbie |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 10 | 436 |
| 1 | 19 | 436 |
| 2 | 33 | 436 |
| 3 | 37 | 436 |
| 4 | 45 | 436 |
| 5 | 56 | 436 |
| 6 | 67 | 436 |
| 7 | 89 | 436 |
| 8 | 100 | 436 |
| 9 | 100 | 436 |
| 0 | 100 | 436 |
| 1× | iter limit |
| 1× | saturated |
| Inputs |
|---|
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* -1 (* x (sqrt 2))) |
(* -1 (* x (sqrt 2))) |
(* -1 (* x (sqrt 2))) |
(* -1 (* x (sqrt 2))) |
(* -1 x) |
(* -1 x) |
(* -1 x) |
(* -1 x) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* 2 (pow x 2)) |
(* 2 (pow x 2)) |
(* 2 (pow x 2)) |
(* 2 (pow x 2)) |
(* 2 x) |
(* 2 x) |
(* 2 x) |
(* 2 x) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* -1 (* x (sqrt 2))) |
(* -1 (* x (sqrt 2))) |
(* -1 (* x (sqrt 2))) |
(* -1 (* x (sqrt 2))) |
(* -1 x) |
(* -1 x) |
(* -1 x) |
(* -1 x) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* 2 (pow x 2)) |
(* 2 (pow x 2)) |
(* 2 (pow x 2)) |
(* 2 (pow x 2)) |
(* 2 x) |
(* 2 x) |
(* 2 x) |
(* 2 x) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* -1 (* x (sqrt 2))) |
(* -1 (* x (sqrt 2))) |
(* -1 (* x (sqrt 2))) |
(* -1 (* x (sqrt 2))) |
(* -1 (* x (sqrt 2))) |
(* -1 (* x (sqrt 2))) |
(* -1 (* x (sqrt 2))) |
(* -1 (* x (sqrt 2))) |
(* -1 x) |
(* -1 x) |
(* -1 x) |
(* -1 x) |
(* -1 (* x (sqrt 2))) |
(* -1 (* x (sqrt 2))) |
(* -1 (* x (sqrt 2))) |
(* -1 (* x (sqrt 2))) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* 2 (pow x 2)) |
(* 2 (pow x 2)) |
(* 2 (pow x 2)) |
(* 2 (pow x 2)) |
(* 2 x) |
(* 2 x) |
(* 2 x) |
(* 2 x) |
(* -1 (* x (sqrt 2))) |
(* -1 (* x (sqrt 2))) |
(* -1 (* x (sqrt 2))) |
(* -1 (* x (sqrt 2))) |
(* -1 (* x (sqrt 2))) |
(* -1 (* x (sqrt 2))) |
(* -1 (* x (sqrt 2))) |
(* -1 (* x (sqrt 2))) |
| Outputs |
|---|
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x) |
(*.f64 (neg.f64 x) (sqrt.f64 #s(literal 2 binary64))) |
(*.f64 (neg.f64 x) (sqrt.f64 #s(literal 2 binary64))) |
(*.f64 (neg.f64 x) (sqrt.f64 #s(literal 2 binary64))) |
(*.f64 (neg.f64 x) (sqrt.f64 #s(literal 2 binary64))) |
(neg.f64 x) |
(neg.f64 x) |
(neg.f64 x) |
(neg.f64 x) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x) |
(*.f64 (*.f64 x x) #s(literal 2 binary64)) |
(*.f64 (*.f64 x x) #s(literal 2 binary64)) |
(*.f64 (*.f64 x x) #s(literal 2 binary64)) |
(*.f64 (*.f64 x x) #s(literal 2 binary64)) |
(*.f64 #s(literal 2 binary64) x) |
(*.f64 #s(literal 2 binary64) x) |
(*.f64 #s(literal 2 binary64) x) |
(*.f64 #s(literal 2 binary64) x) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x) |
(*.f64 (neg.f64 x) (sqrt.f64 #s(literal 2 binary64))) |
(*.f64 (neg.f64 x) (sqrt.f64 #s(literal 2 binary64))) |
(*.f64 (neg.f64 x) (sqrt.f64 #s(literal 2 binary64))) |
(*.f64 (neg.f64 x) (sqrt.f64 #s(literal 2 binary64))) |
(neg.f64 x) |
(neg.f64 x) |
(neg.f64 x) |
(neg.f64 x) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x) |
(*.f64 (*.f64 x x) #s(literal 2 binary64)) |
(*.f64 (*.f64 x x) #s(literal 2 binary64)) |
(*.f64 (*.f64 x x) #s(literal 2 binary64)) |
(*.f64 (*.f64 x x) #s(literal 2 binary64)) |
(*.f64 #s(literal 2 binary64) x) |
(*.f64 #s(literal 2 binary64) x) |
(*.f64 #s(literal 2 binary64) x) |
(*.f64 #s(literal 2 binary64) x) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x) |
(*.f64 (neg.f64 x) (sqrt.f64 #s(literal 2 binary64))) |
(*.f64 (neg.f64 x) (sqrt.f64 #s(literal 2 binary64))) |
(*.f64 (neg.f64 x) (sqrt.f64 #s(literal 2 binary64))) |
(*.f64 (neg.f64 x) (sqrt.f64 #s(literal 2 binary64))) |
(*.f64 (neg.f64 x) (sqrt.f64 #s(literal 2 binary64))) |
(*.f64 (neg.f64 x) (sqrt.f64 #s(literal 2 binary64))) |
(*.f64 (neg.f64 x) (sqrt.f64 #s(literal 2 binary64))) |
(*.f64 (neg.f64 x) (sqrt.f64 #s(literal 2 binary64))) |
(neg.f64 x) |
(neg.f64 x) |
(neg.f64 x) |
(neg.f64 x) |
(*.f64 (neg.f64 x) (sqrt.f64 #s(literal 2 binary64))) |
(*.f64 (neg.f64 x) (sqrt.f64 #s(literal 2 binary64))) |
(*.f64 (neg.f64 x) (sqrt.f64 #s(literal 2 binary64))) |
(*.f64 (neg.f64 x) (sqrt.f64 #s(literal 2 binary64))) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x) |
(*.f64 (*.f64 x x) #s(literal 2 binary64)) |
(*.f64 (*.f64 x x) #s(literal 2 binary64)) |
(*.f64 (*.f64 x x) #s(literal 2 binary64)) |
(*.f64 (*.f64 x x) #s(literal 2 binary64)) |
(*.f64 #s(literal 2 binary64) x) |
(*.f64 #s(literal 2 binary64) x) |
(*.f64 #s(literal 2 binary64) x) |
(*.f64 #s(literal 2 binary64) x) |
(*.f64 (neg.f64 x) (sqrt.f64 #s(literal 2 binary64))) |
(*.f64 (neg.f64 x) (sqrt.f64 #s(literal 2 binary64))) |
(*.f64 (neg.f64 x) (sqrt.f64 #s(literal 2 binary64))) |
(*.f64 (neg.f64 x) (sqrt.f64 #s(literal 2 binary64))) |
(*.f64 (neg.f64 x) (sqrt.f64 #s(literal 2 binary64))) |
(*.f64 (neg.f64 x) (sqrt.f64 #s(literal 2 binary64))) |
(*.f64 (neg.f64 x) (sqrt.f64 #s(literal 2 binary64))) |
(*.f64 (neg.f64 x) (sqrt.f64 #s(literal 2 binary64))) |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 15 | 57 |
| 0 | 25 | 42 |
| 1 | 66 | 42 |
| 0 | 303 | 42 |
| 1× | iter limit |
| 1× | iter limit |
| 1× | iter limit |
| 1× | unsound |
| 1× | iter limit |
| Inputs |
|---|
#s(approx (sqrt (+ (pow x 2) (pow x 2))) (*.f64 (neg.f64 x) (sqrt.f64 #s(literal 2 binary64)))) |
(*.f64 (neg.f64 x) (sqrt.f64 #s(literal 2 binary64))) |
(neg.f64 x) |
(sqrt.f64 #s(literal 2 binary64)) |
#s(approx (sqrt (+ (pow x 2) (pow x 2))) (*.f64 (sqrt.f64 #s(literal 2 binary64)) x)) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x) |
(*.f64 x (+.f64 x x)) |
(+.f64 x x) |
(sqrt.f64 (*.f64 x (+.f64 x x))) |
(hypot.f64 x x) |
| 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> |
Compiled 2 728 to 262 computations (90.4% saved)
6 alts after pruning (2 fresh and 4 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 221 | 2 | 223 |
| Fresh | 0 | 0 | 0 |
| Picked | 0 | 4 | 4 |
| Done | 0 | 0 | 0 |
| Total | 221 | 6 | 227 |
| Status | Accuracy | Program |
|---|---|---|
| ✓ | 100.0% | (hypot.f64 x x) |
| ▶ | 3.5% | (sqrt.f64 (+.f64 x x)) |
| ✓ | 53.9% | (sqrt.f64 (*.f64 x (+.f64 x x))) |
| ✓ | 50.8% | #s(approx (sqrt (+ (pow x 2) (pow x 2))) (*.f64 (sqrt.f64 #s(literal 2 binary64)) x)) |
| ✓ | 50.8% | #s(approx (sqrt (+ (pow x 2) (pow x 2))) (*.f64 (neg.f64 x) (sqrt.f64 #s(literal 2 binary64)))) |
| ▶ | 50.6% | #s(approx (sqrt (+ (pow x 2) (pow x 2))) (*.f64 (exp.f64 (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/2 binary64))) x)) |
Compiled 56 to 40 computations (28.6% saved)
| 1× | egg-herbie |
Found 6 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| cost-diff | -128 | (+.f64 x x) | |
| cost-diff | 0 | (sqrt.f64 (+.f64 x x)) | |
| cost-diff | 0 | (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/2 binary64)) | |
| cost-diff | 0 | (*.f64 (exp.f64 (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/2 binary64))) x) | |
| cost-diff | 0 | #s(approx (sqrt (+ (pow x 2) (pow x 2))) (*.f64 (exp.f64 (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/2 binary64))) x)) | |
| cost-diff | 12480 | (exp.f64 (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/2 binary64))) |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 13 | 45 |
| 0 | 19 | 37 |
| 1 | 27 | 34 |
| 2 | 35 | 34 |
| 0 | 35 | 31 |
| 1× | iter limit |
| 1× | saturated |
| 1× | iter limit |
| Inputs |
|---|
#s(approx (sqrt (+ (pow x 2) (pow x 2))) (*.f64 (exp.f64 (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/2 binary64))) x)) |
(*.f64 (exp.f64 (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/2 binary64))) x) |
(exp.f64 (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/2 binary64))) |
(*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/2 binary64)) |
(log.f64 #s(literal 2 binary64)) |
#s(literal 2 binary64) |
#s(literal 1/2 binary64) |
x |
(sqrt.f64 (+.f64 x x)) |
(+.f64 x x) |
x |
| Outputs |
|---|
#s(approx (sqrt (+ (pow x 2) (pow x 2))) (*.f64 (sqrt.f64 #s(literal 2 binary64)) x)) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x) |
(sqrt.f64 #s(literal 2 binary64)) |
(*.f64 #s(literal 1/2 binary64) (log.f64 #s(literal 2 binary64))) |
(log.f64 #s(literal 2 binary64)) |
#s(literal 2 binary64) |
#s(literal 1/2 binary64) |
x |
(sqrt.f64 (*.f64 #s(literal 2 binary64) x)) |
(*.f64 #s(literal 2 binary64) x) |
x |
Found 6 expressions of interest:
| New | Metric | Score | Program |
|---|---|---|---|
| accuracy | 0 | (+.f64 x x) | |
| accuracy | 0 | (sqrt.f64 (+.f64 x x)) | |
| accuracy | 0 | (log.f64 #s(literal 2 binary64)) | |
| accuracy | 0 | #s(approx (sqrt (+ (pow x 2) (pow x 2))) (*.f64 (exp.f64 (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/2 binary64))) x)) | |
| accuracy | 0.1953125 | (*.f64 (exp.f64 (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/2 binary64))) x) | |
| accuracy | 0.5 | (exp.f64 (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/2 binary64))) |
| 15.0ms | 128× | 0 | invalid |
| 13.0ms | 128× | 0 | valid |
Compiled 84 to 28 computations (66.7% saved)
ival-mult: 6.0ms (29.6% of total)ival-exp: 3.0ms (14.8% of total)ival-log: 3.0ms (14.8% of total)ival-sqrt: 3.0ms (14.8% of total)ival-pow2: 3.0ms (14.8% of total)ival-add: 2.0ms (9.9% of total)ival-assert: 0.0ms (0% of total)ival-true: 0.0ms (0% of total)exact: 0.0ms (0% of total)| Inputs |
|---|
#s(alt #<batchref> (patch (exp.f64 (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/2 binary64))) #<representation binary64>) () ()) |
#s(alt #<batchref> (patch #s(approx (sqrt (+ (pow x 2) (pow x 2))) (*.f64 (exp.f64 (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/2 binary64))) x)) #<representation binary64>) () ()) |
#s(alt #<batchref> (patch (*.f64 (exp.f64 (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/2 binary64))) x) #<representation binary64>) () ()) |
#s(alt #<batchref> (patch (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/2 binary64)) #<representation binary64>) () ()) |
#s(alt #<batchref> (patch (sqrt.f64 (+.f64 x x)) #<representation binary64>) () ()) |
#s(alt #<batchref> (patch (+.f64 x x) #<representation binary64>) () ()) |
#s(alt #<batchref> (patch (log.f64 #s(literal 2 binary64)) #<representation binary64>) () ()) |
| Outputs |
|---|
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch #s(approx (sqrt (+ (pow x 2) (pow x 2))) (*.f64 (exp.f64 (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/2 binary64))) x)) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch #s(approx (sqrt (+ (pow x 2) (pow x 2))) (*.f64 (exp.f64 (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/2 binary64))) x)) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch #s(approx (sqrt (+ (pow x 2) (pow x 2))) (*.f64 (exp.f64 (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/2 binary64))) x)) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch #s(approx (sqrt (+ (pow x 2) (pow x 2))) (*.f64 (exp.f64 (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/2 binary64))) x)) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch (*.f64 (exp.f64 (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/2 binary64))) x) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch (*.f64 (exp.f64 (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/2 binary64))) x) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch (*.f64 (exp.f64 (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/2 binary64))) x) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch (*.f64 (exp.f64 (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/2 binary64))) x) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch (sqrt.f64 (+.f64 x x)) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch (sqrt.f64 (+.f64 x x)) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch (sqrt.f64 (+.f64 x x)) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch (sqrt.f64 (+.f64 x x)) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch (+.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch (+.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch (+.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor 0 x) (#s(alt #<batchref> (patch (+.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch #s(approx (sqrt (+ (pow x 2) (pow x 2))) (*.f64 (exp.f64 (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/2 binary64))) x)) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch #s(approx (sqrt (+ (pow x 2) (pow x 2))) (*.f64 (exp.f64 (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/2 binary64))) x)) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch #s(approx (sqrt (+ (pow x 2) (pow x 2))) (*.f64 (exp.f64 (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/2 binary64))) x)) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch #s(approx (sqrt (+ (pow x 2) (pow x 2))) (*.f64 (exp.f64 (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/2 binary64))) x)) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch (*.f64 (exp.f64 (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/2 binary64))) x) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch (*.f64 (exp.f64 (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/2 binary64))) x) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch (*.f64 (exp.f64 (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/2 binary64))) x) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch (*.f64 (exp.f64 (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/2 binary64))) x) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch (sqrt.f64 (+.f64 x x)) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch (sqrt.f64 (+.f64 x x)) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch (sqrt.f64 (+.f64 x x)) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch (sqrt.f64 (+.f64 x x)) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch (+.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch (+.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch (+.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor inf x) (#s(alt #<batchref> (patch (+.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch #s(approx (sqrt (+ (pow x 2) (pow x 2))) (*.f64 (exp.f64 (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/2 binary64))) x)) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch #s(approx (sqrt (+ (pow x 2) (pow x 2))) (*.f64 (exp.f64 (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/2 binary64))) x)) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch #s(approx (sqrt (+ (pow x 2) (pow x 2))) (*.f64 (exp.f64 (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/2 binary64))) x)) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch #s(approx (sqrt (+ (pow x 2) (pow x 2))) (*.f64 (exp.f64 (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/2 binary64))) x)) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch (*.f64 (exp.f64 (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/2 binary64))) x) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch (*.f64 (exp.f64 (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/2 binary64))) x) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch (*.f64 (exp.f64 (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/2 binary64))) x) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch (*.f64 (exp.f64 (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/2 binary64))) x) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch (sqrt.f64 (+.f64 x x)) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch (sqrt.f64 (+.f64 x x)) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch (sqrt.f64 (+.f64 x x)) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch (sqrt.f64 (+.f64 x x)) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch (+.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch (+.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch (+.f64 x x) #<representation binary64>) () ())) ()) |
#s(alt #<batchref> (taylor -inf x) (#s(alt #<batchref> (patch (+.f64 x x) #<representation binary64>) () ())) ()) |
3 calls:
| Time | Variable | Point | Expression | |
|---|---|---|---|---|
| 2.0ms | x | @ | -inf | ((exp (* (log 2) 1/2)) (sqrt (+ (pow x 2) (pow x 2))) (* (exp (* (log 2) 1/2)) x) (* (log 2) 1/2) (sqrt (+ x x)) (+ x x) (log 2)) |
| 1.0ms | x | @ | 0 | ((exp (* (log 2) 1/2)) (sqrt (+ (pow x 2) (pow x 2))) (* (exp (* (log 2) 1/2)) x) (* (log 2) 1/2) (sqrt (+ x x)) (+ x x) (log 2)) |
| 1.0ms | x | @ | inf | ((exp (* (log 2) 1/2)) (sqrt (+ (pow x 2) (pow x 2))) (* (exp (* (log 2) 1/2)) x) (* (log 2) 1/2) (sqrt (+ x x)) (+ x x) (log 2)) |
| 1× | egg-herbie |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 15 | 212 |
| 1 | 30 | 212 |
| 2 | 74 | 212 |
| 3 | 132 | 212 |
| 4 | 149 | 212 |
| 5 | 195 | 212 |
| 6 | 240 | 212 |
| 7 | 271 | 212 |
| 8 | 327 | 212 |
| 9 | 338 | 212 |
| 10 | 338 | 212 |
| 0 | 338 | 212 |
| 1× | iter limit |
| 1× | saturated |
| Inputs |
|---|
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* (sqrt x) (sqrt 2)) |
(* (sqrt x) (sqrt 2)) |
(* (sqrt x) (sqrt 2)) |
(* (sqrt x) (sqrt 2)) |
(* 2 x) |
(* 2 x) |
(* 2 x) |
(* 2 x) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* (sqrt x) (sqrt 2)) |
(* (sqrt x) (sqrt 2)) |
(* (sqrt x) (sqrt 2)) |
(* (sqrt x) (sqrt 2)) |
(* 2 x) |
(* 2 x) |
(* 2 x) |
(* 2 x) |
(* -1 (* x (sqrt 2))) |
(* -1 (* x (sqrt 2))) |
(* -1 (* x (sqrt 2))) |
(* -1 (* x (sqrt 2))) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* x (sqrt 2)) |
(* -1 (* (sqrt x) (* (sqrt -2) (sqrt -1)))) |
(* -1 (* (sqrt x) (* (sqrt -2) (sqrt -1)))) |
(* -1 (* (sqrt x) (* (sqrt -2) (sqrt -1)))) |
(* -1 (* (sqrt x) (* (sqrt -2) (sqrt -1)))) |
(* 2 x) |
(* 2 x) |
(* 2 x) |
(* 2 x) |
| Outputs |
|---|
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x) |
(*.f64 (sqrt.f64 x) (sqrt.f64 #s(literal 2 binary64))) |
(*.f64 (sqrt.f64 x) (sqrt.f64 #s(literal 2 binary64))) |
(*.f64 (sqrt.f64 x) (sqrt.f64 #s(literal 2 binary64))) |
(*.f64 (sqrt.f64 x) (sqrt.f64 #s(literal 2 binary64))) |
(*.f64 #s(literal 2 binary64) x) |
(*.f64 #s(literal 2 binary64) x) |
(*.f64 #s(literal 2 binary64) x) |
(*.f64 #s(literal 2 binary64) x) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x) |
(*.f64 (sqrt.f64 x) (sqrt.f64 #s(literal 2 binary64))) |
(*.f64 (sqrt.f64 x) (sqrt.f64 #s(literal 2 binary64))) |
(*.f64 (sqrt.f64 x) (sqrt.f64 #s(literal 2 binary64))) |
(*.f64 (sqrt.f64 x) (sqrt.f64 #s(literal 2 binary64))) |
(*.f64 #s(literal 2 binary64) x) |
(*.f64 #s(literal 2 binary64) x) |
(*.f64 #s(literal 2 binary64) x) |
(*.f64 #s(literal 2 binary64) x) |
(*.f64 (neg.f64 x) (sqrt.f64 #s(literal 2 binary64))) |
(*.f64 (neg.f64 x) (sqrt.f64 #s(literal 2 binary64))) |
(*.f64 (neg.f64 x) (sqrt.f64 #s(literal 2 binary64))) |
(*.f64 (neg.f64 x) (sqrt.f64 #s(literal 2 binary64))) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x) |
(*.f64 (sqrt.f64 #s(literal 2 binary64)) x) |
(neg.f64 (*.f64 (*.f64 (sqrt.f64 #s(literal -1 binary64)) (sqrt.f64 #s(literal -2 binary64))) (sqrt.f64 x))) |
(neg.f64 (*.f64 (*.f64 (sqrt.f64 #s(literal -1 binary64)) (sqrt.f64 #s(literal -2 binary64))) (sqrt.f64 x))) |
(neg.f64 (*.f64 (*.f64 (sqrt.f64 #s(literal -1 binary64)) (sqrt.f64 #s(literal -2 binary64))) (sqrt.f64 x))) |
(neg.f64 (*.f64 (*.f64 (sqrt.f64 #s(literal -1 binary64)) (sqrt.f64 #s(literal -2 binary64))) (sqrt.f64 x))) |
(*.f64 #s(literal 2 binary64) x) |
(*.f64 #s(literal 2 binary64) x) |
(*.f64 #s(literal 2 binary64) x) |
(*.f64 #s(literal 2 binary64) x) |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 13 | 41 |
| 0 | 19 | 33 |
| 1 | 51 | 28 |
| 0 | 264 | 26 |
| 1× | iter limit |
| 1× | iter limit |
| 1× | iter limit |
| 1× | unsound |
| 1× | iter limit |
| Inputs |
|---|
(exp.f64 (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/2 binary64))) |
#s(approx (sqrt (+ (pow x 2) (pow x 2))) (*.f64 (exp.f64 (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/2 binary64))) x)) |
(*.f64 (exp.f64 (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/2 binary64))) x) |
(*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/2 binary64)) |
(sqrt.f64 (+.f64 x x)) |
(+.f64 x x) |
(log.f64 #s(literal 2 binary64)) |
| 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> |
Compiled 1 133 to 158 computations (86.1% saved)
6 alts after pruning (0 fresh and 6 done)
| Pruned | Kept | Total | |
|---|---|---|---|
| New | 99 | 0 | 99 |
| Fresh | 0 | 0 | 0 |
| Picked | 0 | 2 | 2 |
| Done | 0 | 4 | 4 |
| Total | 99 | 6 | 105 |
| Status | Accuracy | Program |
|---|---|---|
| ✓ | 100.0% | (hypot.f64 x x) |
| ✓ | 3.5% | (sqrt.f64 (+.f64 x x)) |
| ✓ | 53.9% | (sqrt.f64 (*.f64 x (+.f64 x x))) |
| ✓ | 50.8% | #s(approx (sqrt (+ (pow x 2) (pow x 2))) (*.f64 (sqrt.f64 #s(literal 2 binary64)) x)) |
| ✓ | 50.8% | #s(approx (sqrt (+ (pow x 2) (pow x 2))) (*.f64 (neg.f64 x) (sqrt.f64 #s(literal 2 binary64)))) |
| ✓ | 50.6% | #s(approx (sqrt (+ (pow x 2) (pow x 2))) (*.f64 (exp.f64 (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/2 binary64))) x)) |
Compiled 120 to 66 computations (45% saved)
| Inputs |
|---|
(sqrt.f64 (+.f64 x x)) |
#s(approx (sqrt (+ (pow x 2) (pow x 2))) (*.f64 (sqrt.f64 #s(literal 2 binary64)) x)) |
#s(approx (sqrt (+ (pow x 2) (pow x 2))) (*.f64 (neg.f64 x) (sqrt.f64 #s(literal 2 binary64)))) |
(sqrt.f64 (*.f64 x (+.f64 x x))) |
(hypot.f64 x x) |
#s(approx (sqrt (+ (pow x 2) (pow x 2))) (*.f64 (exp.f64 (*.f64 (log.f64 #s(literal 2 binary64)) #s(literal 1/2 binary64))) x)) |
(sqrt.f64 (+.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 x #s(literal 2 binary64)))) |
| Outputs |
|---|
(hypot.f64 x x) |
4 calls:
| 3.0ms | x |
| 3.0ms | (pow.f64 x #s(literal 2 binary64)) |
| 3.0ms | (sqrt.f64 (+.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 x #s(literal 2 binary64)))) |
| 3.0ms | (+.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 x #s(literal 2 binary64))) |
| Accuracy | Segments | Branch |
|---|---|---|
| 100.0% | 1 | x |
| 100.0% | 1 | (sqrt.f64 (+.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 x #s(literal 2 binary64)))) |
| 100.0% | 1 | (+.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 x #s(literal 2 binary64))) |
| 100.0% | 1 | (pow.f64 x #s(literal 2 binary64)) |
Compiled 19 to 13 computations (31.6% saved)
| Inputs |
|---|
(sqrt.f64 (+.f64 x x)) |
#s(approx (sqrt (+ (pow x 2) (pow x 2))) (*.f64 (sqrt.f64 #s(literal 2 binary64)) x)) |
#s(approx (sqrt (+ (pow x 2) (pow x 2))) (*.f64 (neg.f64 x) (sqrt.f64 #s(literal 2 binary64)))) |
(sqrt.f64 (*.f64 x (+.f64 x x))) |
| Outputs |
|---|
#s(approx (sqrt (+ (pow x 2) (pow x 2))) (*.f64 (neg.f64 x) (sqrt.f64 #s(literal 2 binary64)))) |
#s(approx (sqrt (+ (pow x 2) (pow x 2))) (*.f64 (sqrt.f64 #s(literal 2 binary64)) x)) |
4 calls:
| 8.0ms | (pow.f64 x #s(literal 2 binary64)) |
| 2.0ms | x |
| 2.0ms | (+.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 x #s(literal 2 binary64))) |
| 2.0ms | (sqrt.f64 (+.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 x #s(literal 2 binary64)))) |
| Accuracy | Segments | Branch |
|---|---|---|
| 99.3% | 2 | x |
| 77.4% | 3 | (sqrt.f64 (+.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 x #s(literal 2 binary64)))) |
| 77.4% | 3 | (+.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 x #s(literal 2 binary64))) |
| 77.4% | 3 | (pow.f64 x #s(literal 2 binary64)) |
Compiled 19 to 13 computations (31.6% saved)
| Inputs |
|---|
(sqrt.f64 (+.f64 x x)) |
#s(approx (sqrt (+ (pow x 2) (pow x 2))) (*.f64 (sqrt.f64 #s(literal 2 binary64)) x)) |
| Outputs |
|---|
#s(approx (sqrt (+ (pow x 2) (pow x 2))) (*.f64 (sqrt.f64 #s(literal 2 binary64)) x)) |
4 calls:
| 2.0ms | (sqrt.f64 (+.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 x #s(literal 2 binary64)))) |
| 2.0ms | x |
| 1.0ms | (+.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 x #s(literal 2 binary64))) |
| 1.0ms | (pow.f64 x #s(literal 2 binary64)) |
| Accuracy | Segments | Branch |
|---|---|---|
| 50.8% | 1 | (sqrt.f64 (+.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 x #s(literal 2 binary64)))) |
| 50.8% | 1 | (+.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 x #s(literal 2 binary64))) |
| 50.8% | 1 | (pow.f64 x #s(literal 2 binary64)) |
| 50.8% | 1 | x |
Compiled 19 to 13 computations (31.6% saved)
Total 0.0b remaining (0%)
Threshold costs 0b (0%)
| Inputs |
|---|
(sqrt.f64 (+.f64 x x)) |
| Outputs |
|---|
(sqrt.f64 (+.f64 x x)) |
4 calls:
| 5.0ms | x |
| 1.0ms | (sqrt.f64 (+.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 x #s(literal 2 binary64)))) |
| 1.0ms | (+.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 x #s(literal 2 binary64))) |
| 1.0ms | (pow.f64 x #s(literal 2 binary64)) |
| Accuracy | Segments | Branch |
|---|---|---|
| 3.5% | 1 | x |
| 3.5% | 1 | (sqrt.f64 (+.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 x #s(literal 2 binary64)))) |
| 3.5% | 1 | (+.f64 (pow.f64 x #s(literal 2 binary64)) (pow.f64 x #s(literal 2 binary64))) |
| 3.5% | 1 | (pow.f64 x #s(literal 2 binary64)) |
Compiled 19 to 13 computations (31.6% saved)
| 1× | binary-search |
| 1× | narrow-enough |
| Time | Left | Right |
|---|---|---|
| 9.0ms | -3.4272565673255887e-307 | 7.894148361671454e-308 |
| 5.0ms | 112× | 0 | valid |
Compiled 200 to 155 computations (22.5% saved)
ival-add: 1.0ms (39% of total)ival-sqrt: 1.0ms (39% of total)ival-pow2: 1.0ms (39% 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 | 17 | 51 |
| 1 | 25 | 51 |
| 2 | 32 | 51 |
| 3 | 37 | 51 |
| 4 | 40 | 51 |
| 5 | 41 | 51 |
| 1× | saturated |
| Inputs |
|---|
(hypot.f64 x x) |
(if (<=.f64 x #s(literal -202402253307311/202402253307310618352495346718917307049556649764142118356901358027430339567995346891960383701437124495187077864316811911389808737385793476867013399940738509921517424276566361364466907742093216341239767678472745068562007483424692698618103355649159556340810056512358769552333414615230502532186327508646006263307707741093494784 binary64)) #s(approx (sqrt (+ (pow x 2) (pow x 2))) (*.f64 (neg.f64 x) (sqrt.f64 #s(literal 2 binary64)))) #s(approx (sqrt (+ (pow x 2) (pow x 2))) (*.f64 (sqrt.f64 #s(literal 2 binary64)) x))) |
#s(approx (sqrt (+ (pow x 2) (pow x 2))) (*.f64 (sqrt.f64 #s(literal 2 binary64)) x)) |
(sqrt.f64 (+.f64 x x)) |
| Outputs |
|---|
(hypot.f64 x x) |
(if (<=.f64 x #s(literal -202402253307311/202402253307310618352495346718917307049556649764142118356901358027430339567995346891960383701437124495187077864316811911389808737385793476867013399940738509921517424276566361364466907742093216341239767678472745068562007483424692698618103355649159556340810056512358769552333414615230502532186327508646006263307707741093494784 binary64)) #s(approx (sqrt (+ (pow x 2) (pow x 2))) (*.f64 (sqrt.f64 #s(literal 2 binary64)) (neg.f64 x))) #s(approx (sqrt (+ (pow x 2) (pow x 2))) (*.f64 (sqrt.f64 #s(literal 2 binary64)) x))) |
#s(approx (sqrt (+ (pow x 2) (pow x 2))) (*.f64 (sqrt.f64 #s(literal 2 binary64)) x)) |
(sqrt.f64 (+.f64 x x)) |
Useful iterations: 0 (0.0ms)
| Iter | Nodes | Cost |
|---|---|---|
| 0 | 5 | 18 |
| 0 | 8 | 14 |
| 1 | 28 | 10 |
| 0 | 170 | 9 |
| 0 | 15 | 57 |
| 0 | 25 | 42 |
| 1 | 66 | 42 |
| 0 | 303 | 42 |
| 0 | 8 | 148 |
| 1 | 15 | 148 |
| 2 | 32 | 148 |
| 3 | 37 | 148 |
| 4 | 41 | 148 |
| 5 | 53 | 148 |
| 6 | 65 | 148 |
| 7 | 76 | 148 |
| 8 | 96 | 148 |
| 9 | 101 | 148 |
| 0 | 101 | 148 |
| 1× | done |
| 1× | iter limit |
| 1× | saturated |
| 1× | iter limit |
| 1× | iter limit |
| 1× | iter limit |
| 1× | unsound |
| 1× | iter limit |
| 1× | iter limit |
| 1× | iter limit |
| 1× | iter limit |
| 1× | unsound |
| 1× | iter limit |
Compiled 99 to 50 computations (49.5% saved)
Compiled 118 to 46 computations (61% saved)
Loading profile data...