Larry Wall schreef:

> +=item pi
> +
> + constant Num Num::pi = atan(1,1) * 4;
> + constant Int Int::pi = 3;
> [...]
>  =item I<Standard Trig Functions>
> [...]
> + multi Num::func (  Num  $x            : :$base = 'radians' --> Num )
> + multi Math::Trig::func ( Num $x = $+_, :$base = 'radians' --> Num )
>
>  where I<func> is one of:
>  sin, cos, tan, asin, acos, atan, sec, cosec, cotan, asec, acosec,
> [...]
>  =item atan
> [...]
> + multi Math::Trig::atan2 (Num $y, Num $x = 1 : Num :$base --> Num )
>
>  This second form of C<atan> computes the arctangent of $y/$x, and
>  takes the quadrant into account. Otherwise behaves as other
> trigonometric functions. -Replaces Perl 5 C<atan2>.
>
> +[Note: changed atan back to atan2, or the default $x = 1 will
> confuse MMD. +The other alternative would be to remove the default.
> --law]

I guess that all atan() with two parameters, should be atan2()?

-- 
Grtz, Ruud

Reply via email to