Skip Menu |

This queue is for tickets about the Math-Complex CPAN distribution.

Report information
The Basics
Id: 62511
Status: resolved
Priority: 0/
Queue: Math-Complex

People
Owner: Nobody in particular
Requestors: christopher_heys [...] yahoo.co.uk
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: great_circle_waypoint
Date: Thu, 28 Oct 2010 12:01:51 +0100 (BST)
To: bug-Math-Complex [...] rt.cpan.org
From: Chris Heys <christopher_heys [...] yahoo.co.uk>
Dear CPAN About Math::Trig. I thank the author of great_circle_waypoint but I am finding it difficult to use. My understanding is that $phi = 1.571 corresponds to the Equator. Here are two points that lie either side of the Equator, equidistant from it and on the same line of longitude : ($theta0, $phi0) = (1, (1.571 + 1)) ($theta1, $phi1) = (1, (1.571 - 1)) The expectation was that ($thetai, $phii) = great_circle_waypoint($theta0, $phi0, $theta1, $phi1, 0.5); would give me the answer ($thetai, $phii) = (1, 1.571) but in fact I get ($thetai, $phii) = (1, 0) I am running Perl 5.8.8 under Windows XP
You're right about the expected outcome, and when I try it I get precisely the expected outcome: $ perl -MMath::Trig=great_circle_waypoint -lwe 'print join",",great_circle_waypoint((1, (1.571 + 1)), (1, (1.571 - 1)))' 1,1.571 I get this on Perl 5.8.8 and other Perl versions. I'm not using Windows, but I doubt that has any influence. Which version of Math::Trig do you have that gives the surprising output?
Subject: Re: [rt.cpan.org #62511] great_circle_waypoint
Date: Mon, 11 Jul 2011 15:09:12 +0100 (BST)
To: bug-Math-Complex [...] rt.cpan.org
From: Chris Heys <christopher_heys [...] yahoo.co.uk>
from Chris Heys, Telford, UK   Dear ZEFRAM   Thanks for looking into things, and for keeping me in the picture. I infer from your 'and other Perl versions' that you have spent some time on the matter. On looking into my trig.pm, I find the line   $VERSION = 1.03;   as opposed to the current version 1.21 . All that Windows can tell me about the file is 'created/modified 3 Jan 06, which was I should think when I downloaded it. This will teach me to check that I am using the latest version, before making a fuss. Perhaps you would delete the bug report, from CPAN, for me. As I understand the source code incidentally, if $way is not specified then a value of 0.5 is inferred - a useful but undocumented feature. Again, my thanks. --- On Tue, 3/5/11, ZEFRAM via RT <bug-Math-Complex@rt.cpan.org> wrote: From: ZEFRAM via RT <bug-Math-Complex@rt.cpan.org> Subject: [rt.cpan.org #62511] great_circle_waypoint To: christopher_heys@yahoo.co.uk Date: Tuesday, 3 May, 2011, 21:05 <URL: https://rt.cpan.org/Ticket/Display.html?id=62511 > You're right about the expected outcome, and when I try it I get precisely the expected outcome: $ perl -MMath::Trig=great_circle_waypoint -lwe 'print join",",great_circle_waypoint((1, (1.571 + 1)), (1, (1.571 - 1)))'      1,1.571 I get this on Perl 5.8.8 and other Perl versions.  I'm not using Windows, but I doubt that has any influence. Which version of Math::Trig do you have that gives the surprising output?
Subject: Re: [rt.cpan.org #62511] great_circle_waypoint
Date: Mon, 11 Jul 2011 15:30:58 +0100
To: Chris Heys via RT <bug-Math-Complex [...] rt.cpan.org>
From: Zefram <zefram [...] fysh.org>
Chris Heys via RT wrote: Show quoted text
>On looking into my trig.pm, I find the line > >$VERSION = 1.03;
That's sufficiently old that I can readily attribute your problem to it. The change log includes a fix for great_circle_waypoint() in Math::Trig 1.04 in 2006, and a correction to its example usage (reported by you) in Math::Trig 1.05 in 2007. Show quoted text
>This will teach me to check that I am using the latest version, before >making a fuss.
Quite. -zefram