Author: colomon Date: 2010-05-14 12:54:30 +0200 (Fri, 14 May 2010) New Revision: 30622
Modified: docs/Perl6/Spec/S32-setting-library/Numeric.pod Log: [spec] Switch atan2 to work on Real instead of Numeric. Add TrigBase argument to it as well. Modified: docs/Perl6/Spec/S32-setting-library/Numeric.pod =================================================================== --- docs/Perl6/Spec/S32-setting-library/Numeric.pod 2010-05-13 08:50:56 UTC (rev 30621) +++ docs/Perl6/Spec/S32-setting-library/Numeric.pod 2010-05-14 10:54:30 UTC (rev 30622) @@ -19,8 +19,8 @@ Created: 19 Mar 2009 extracted from S29-functions.pod - Last Modified: 9 Apr 2010 - Version: 6 + Last Modified: 14 May 2010 + Version: 7 The document is a draft. @@ -337,8 +337,8 @@ =item atan2 - our Numeric multi method atan2 ( Numeric $y: Numeric $x = 1 ) - our Numeric multi atan2 ( Numeric $y, Numeric $x = 1 ) + our Real multi method atan2 ( Real $y: Real $x = 1, TrigBase $base = CALLER::<$?TRIGBASE> ) + our Real multi atan2 ( Real $y, Real $x = 1, TrigBase $base = CALLER::<$?TRIGBASE> ) This second form of C<atan> computes the arctangent of C<$y/$x>, and takes the quadrant into account. Otherwise behaves as other trigonometric functions.