ruby-changes:14353
From: akr <ko1@a...>
Date: Sun, 27 Dec 2009 10:37:32 +0900 (JST)
Subject: [ruby-changes:14353] Ruby:r26183 (trunk): rdoc update.
akr 2009-12-27 10:37:23 +0900 (Sun, 27 Dec 2009) New Revision: 26183 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=26183 Log: rdoc update. Modified files: trunk/math.c Index: math.c =================================================================== --- math.c (revision 26182) +++ math.c (revision 26183) @@ -67,6 +67,17 @@ * Computes the arc tangent given <i>y</i> and <i>x</i>. Returns * -PI..PI. * + * Math.atan2(-0.0, -1.0) #=> -3.141592653589793 + * Math.atan2(-1.0, -1.0) #=> -2.356194490192345 + * Math.atan2(-1.0, 0.0) #=> -1.5707963267948966 + * Math.atan2(-1.0, 1.0) #=> -0.7853981633974483 + * Math.atan2(-0.0, 1.0) #=> -0.0 + * Math.atan2(0.0, 1.0) #=> 0.0 + * Math.atan2(1.0, 1.0) #=> 0.7853981633974483 + * Math.atan2(1.0, 0.0) #=> 1.5707963267948966 + * Math.atan2(1.0, -1.0) #=> 2.356194490192345 + * Math.atan2(0.0, -1.0) #=> 3.141592653589793 + * */ static VALUE -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/