|
[Date Index]
[Thread Index]
[Author Index]
Re: calculating the azimuth between two lat/lon's
- To: mathgroup at smc.vnet.net
- Subject: [mg35007] Re: calculating the azimuth between two lat/lon's
- From: Peter <peter1963 at totalise.co.uk>
- Date: Wed, 19 Jun 2002 05:52:42 -0400 (EDT)
- References: <aec3co$4nl$1@smc.vnet.net> <aeh3ub$dq8$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Benjamin Tubb wrote:
> There appears to be a syntax error in your code here for the Mod[] function,
> in which you include three arguments when it only allows one. Please
> clarify.
>
> CC=Mod[p[B]-p[A],2Pi,-Pi];
>
> "DrBob" <majort at cox-internet.com> wrote in message
> news:<aec3co$4nl$1 at smc.vnet.net>...
>
>
>>\[IndentingNewLine]CC =
>
>
>>Mod[p[B] - p[A], 2 Pi, \(-Pi\)];
>
>
> Benjamin Tubb
>
> brtubb at writeme.com
>
>
>
>
Benjamin,
See the help browser:
Mod[m, n, d] gives a result x such that d <= x <= d+n and x mod n == m mod n
So in this case the result lies in [-Pi,Pi]
Peter
Prev by Date:
Problem with entering text into a mathematica notebook by VB or QuicKeys
Next by Date:
Convolution problem
Previous by thread:
Re: calculating the azimuth between two lat/lon's
Next by thread:
RE: Re: calculating the azimuth between two lat/lon's
|