summaryrefslogtreecommitdiff
path: root/math.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-12-27 01:37:23 (GMT)
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-12-27 01:37:23 (GMT)
commit4d4ed5640c73f5be7920778b009b168beb10061e (patch)
treeffd599a52fc4452e61f091b44bb3ac6fb1ecd755 /math.c
parent568595b30f009902ba2af6ecc4776a652868169f (diff)
rdoc update.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26183 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'math.c')
-rw-r--r--math.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/math.c b/math.c
index 1a448b8..4d294bf 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 <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