On Thu, 30 Aug 2012 15:03:43 -0400
Paul Anderson wrote:
> Works great until you start using a coordinate system that places
> points on a sphere:)
Just pretend it's a really, really big hill. ;)
--
Just my 0.0002 million dollars worth,
Shawn
Programming is as much about organization an
Works great until you start using a coordinate system that places points on a
sphere:)
Paul Anderson -- VE3HOP
On 2012-08-30, at 2:31 PM, Uri Guttman wrote:
> On 08/30/2012 12:20 PM, Paul Anderson wrote:
>> It looks like 2*10^-13 miles is about twice the inter atomic distance in
>> d
On 08/30/2012 12:20 PM, Paul Anderson wrote:
It looks like 2*10^-13 miles is about twice the inter atomic distance in
diamond:)
i don't know why you need to calculate great circle distances. it is
obvious to any observer that the earth is flat so simple geometric
distances should be fine.
It looks like 2*10^-13 miles is about twice the inter atomic distance in
diamond:)
Paul Anderson -- VE3HOP
On 2012-08-30, at 4:22 AM, Chris Stinemetz wrote:
>>
>>
>> Because floating-point arithmetic as done by limited precision computers is
>> always an approximation. An IEEE 754
>
>
> Because floating-point arithmetic as done by limited precision computers is
> always an approximation. An IEEE 754 double-precision 64-bit floating point
> number uses a 53-bit fraction and therefore has about 16 decimal digits of
> precision. So calculating zero within 13 digits (e-013) i
That is 99.99780441116897988% error. 16 9's is better than any
measuring instrument in existence. I think it'll do:)
Paul Anderson -- VE3HOP
On 2012-08-30, at 1:29 AM, Jim Gibson wrote:
>
> On Aug 29, 2012, at 5:53 PM, Chris Stinemetz wrote:
>
>> Just one question. If th
On Aug 29, 2012, at 5:53 PM, Chris Stinemetz wrote:
> Just one question. If the two sets of coordinates are the same I was
> expecting the distance to be 0 miles.
>
> Instead I get:
>
> 2.19558883102012e-013
>
> For the following example.
>
> #!/usr/bin/perl
>
> use strict;
> use warnings;
>
>
> The Math::Trig routines all work with radians. Therefore, you are going to
> have to convert your locations from degrees to radians. You can use the
> Math::Trig::deg2rad function. Note that pi/2 is radians, so you are
> subtracting degrees from radians, which never works.
>
> The great_circ
On Aug 29, 2012, at 2:08 PM, Chris Stinemetz wrote:
> Hello List,
>
> I'm tyring to find the distance in miles between two sets of
> coordinates by using the module Math::Trig
>
> I'm expecting the return distance to be around 16.91 miles.
>
> Any help is greatly appriciated.
>
> Chris
>
> #
Hello List,
I'm tyring to find the distance in miles between two sets of
coordinates by using the module Math::Trig
I'm expecting the return distance to be around 16.91 miles.
Any help is greatly appriciated.
Chris
#!/usr/bin/perl
use strict;
use warnings;
use Math::Trig qw(pi great_circle_di
10 matches
Mail list logo