perldoc perlfunc

     atan2 Y,X
             Returns the arctangent of Y/X in the range -pi to
             pi.

             For the tangent operation, you may use the
             "Math::Trig::tan" function, or use the familiar
             relation:

                 sub tan { sin($_[0]) / cos($_[0])  }

you should have said:
$result = atan2($u,$v);


> -----Original Message-----
> From: siren jones [mailto:[EMAIL PROTECTED]]
> Sent: Monday, April 22, 2002 3:20 PM
> To: [EMAIL PROTECTED]
> Subject: Inverse tangent function?
> 
> 
> 
> Trying to figure out what the inverse tangent function is...
> (as in FORTRAN arctan)
> 
> Tried using:
> 
> $ result = atan2(u/v);
> print "result = $result \n ";
> 
> Got error: "Too few arguments".
> 
> Any suggestions on either the function or where to look up math
> functions for PERl?  Couldn't find it in "Programming PERL", 
> by O'reilly.
> 
> Thanks in advance.
> 
> -s
> 
> _________________________________________________________________
> Join the world's largest e-mail service with MSN Hotmail. 
> http://www.hotmail.com
> 
> 
> -- 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

----------------------------------------------------------------------------
--------------------
The views and opinions expressed in this email message are the sender's
own, and do not necessarily represent the views and opinions of Summit
Systems Inc.


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to