|
1 | 1 | --
|
2 | 2 | -- CIRCLE
|
3 | 3 | --
|
4 |
| --- avoid bit-exact output here because operations may not be bit-exact. |
5 |
| -SET extra_float_digits = 0; |
| 4 | +-- Back off displayed precision a little bit to reduce platform-to-platform |
| 5 | +-- variation in results. |
| 6 | +SET extra_float_digits = -1; |
6 | 7 | CREATE TABLE CIRCLE_TBL (f1 circle);
|
7 | 8 | INSERT INTO CIRCLE_TBL VALUES ('<(5,1),3>');
|
8 | 9 | INSERT INTO CIRCLE_TBL VALUES ('<(1,2),100>');
|
@@ -113,12 +114,12 @@ SELECT '' as five, c1.f1 AS one, c2.f1 AS two, (c1.f1 <-> c2.f1) AS distance
|
113 | 114 | five | one | two | distance
|
114 | 115 | ------+----------------+----------------+------------------
|
115 | 116 | | <(3,5),0> | <(1,2),3> | 0.60555127546399
|
116 |
| - | <(3,5),0> | <(5,1),3> | 1.47213595499958 |
| 117 | + | <(3,5),0> | <(5,1),3> | 1.4721359549996 |
117 | 118 | | <(100,200),10> | <(100,1),115> | 74
|
118 |
| - | <(100,200),10> | <(1,2),100> | 111.370729772479 |
119 |
| - | <(1,3),5> | <(100,200),10> | 205.476756144497 |
| 119 | + | <(100,200),10> | <(1,2),100> | 111.37072977248 |
| 120 | + | <(1,3),5> | <(100,200),10> | 205.4767561445 |
120 | 121 | | <(5,1),3> | <(100,200),10> | 207.51303816328
|
121 |
| - | <(3,5),0> | <(100,200),10> | 207.793480159531 |
122 |
| - | <(1,2),3> | <(100,200),10> | 208.370729772479 |
| 122 | + | <(3,5),0> | <(100,200),10> | 207.79348015953 |
| 123 | + | <(1,2),3> | <(100,200),10> | 208.37072977248 |
123 | 124 | (8 rows)
|
124 | 125 |
|
0 commit comments