From 98cdc13819eaade3271cfb7768bb4b563da54a39 Mon Sep 17 00:00:00 2001 From: akr Date: Sun, 27 Dec 2009 01:37:23 +0000 Subject: rdoc update. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@26183 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- math.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/math.c b/math.c index 1a448b871..4d294bfbb 100644 --- a/math.c +++ b/math.c @@ -67,6 +67,17 @@ infinity_check(VALUE arg, double res, const char *msg) * Computes the arc tangent given y and x. 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 -- cgit