According to http://us3.php.net/math, M_PI is a PHP constant.  Unless 
I'm reading that incorrectly, which at this point is entirely possible...:)

JS

James Keeline wrote:

>>James Keeline wrote:
>>
>>
>>$Hdg=2*M_PI-acos((sin($lat2)-sin($lat1)*cos($miles))/(sin($miles)*cos($lat1)));
>>    
>>
>>> 
>>>
>>>Also, you have this item:
>>>
>>> 2*M_PI
>>>
>>>Have you defined a constant called M_PI or do you expect it to be a
>>>      
>>>
>>variable?
>>    
>>
>
>--- Jamey Saunders <[EMAIL PROTECTED]> wrote:
>
>  
>
>>I've done a degrees to radians conversion before running the expression, 
>>and a radians to degrees conversion afterwards, and I'm getting no more 
>>errors.  I'm not getting the correct answer, but it's progress.
>>
>>It's not a Google Maps app right now, rather just a quick 
>>proof-of-concept thing.  (Proof that I can do it!)  It may morph into 
>>one in the future...:)
>>
>>Thanks,
>>JS
>>    
>>
>
>
>Is M_PI defined as a constant or is it supposed to be a variable?  Without a
>dollar sign, PHP thinks it is a constant.  
>
>James
>_____
>
>
>James D. Keeline
>http://www.Keeline.com  http://www.Keeline.com/articles
>http://Stratemeyer.org  http://www.Keeline.com/TSCollection
>
>http://www.ITeachPHP.com -- Free Computer Classes: Linux, PHP, etc.
>Fall Semester Begins Sep 7 -- New Classes Start Every Few Weeks.
>
>
>
>Community email addresses:
>  Post message: [email protected]
>  Subscribe:    [EMAIL PROTECTED]
>  Unsubscribe:  [EMAIL PROTECTED]
>  List owner:   [EMAIL PROTECTED]
>
>Shortcut URL to this page:
>  http://groups.yahoo.com/group/php-list 
>Yahoo! Groups Links
>
>
>
> 
>
>
>
>  
>


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/HKFolB/TM
--------------------------------------------------------------------~-> 

Community email addresses:
  Post message: [email protected]
  Subscribe:    [EMAIL PROTECTED]
  Unsubscribe:  [EMAIL PROTECTED]
  List owner:   [EMAIL PROTECTED]

Shortcut URL to this page:
  http://groups.yahoo.com/group/php-list 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php-list/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to