summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-06-20 11:29:21 +0000
committertadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-06-20 11:29:21 +0000
commita05fd849a148f129e5797b8261cd7e14f871e650 (patch)
treee89d12ff720a8a66fb907ac4141cb4e440a4ba84
parent40d6a7527e6ea663585ea3d82b2e3968fe0d4836 (diff)
* complex.c: edited rdoc.
* numeric.c: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23767 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog6
-rw-r--r--complex.c13
-rw-r--r--numeric.c5
3 files changed, 22 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 15c5ae3..d71e8ed 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Sat Jun 20 20:28:44 2009 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * complex.c: edited rdoc.
+
+ * numeric.c: ditto.
+
Sat Jun 20 08:56:47 2009 Tadayoshi Funaba <tadf@dotrb.org>
* complex.c: edited rdoc.
diff --git a/complex.c b/complex.c
index 30c4199..c2113f2 100644
--- a/complex.c
+++ b/complex.c
@@ -380,6 +380,13 @@ nucomp_s_canonicalize_internal(VALUE klass, VALUE real, VALUE imag)
}
}
+/*
+ * call-seq:
+ * Complex.rect(real[, imag]) => complex
+ * Complex.rectangular(real[, imag]) => complex
+ *
+ * Returns a complex object which denotes the given rectangular form.
+ */
static VALUE
nucomp_s_new(int argc, VALUE *argv, VALUE klass)
{
@@ -519,6 +526,12 @@ f_complex_polar(VALUE klass, VALUE x, VALUE y)
f_mul(x, m_sin(y)));
}
+/*
+ * call-seq:
+ * Complex.polar(abs, arg) => complex
+ *
+ * Returns a complex object which denotes the given polar form.
+ */
static VALUE
nucomp_s_polar(VALUE klass, VALUE abs, VALUE arg)
{
diff --git a/numeric.c b/numeric.c
index cf3f0d2..c20e510 100644
--- a/numeric.c
+++ b/numeric.c
@@ -502,8 +502,9 @@ num_to_int(VALUE num)
*
* Document-class: Float
*
- * <code>Float</code> objects represent inexact numbers using the native
- * architecture's double-precision floating point representation.
+ * <code>Float</code> objects represent inexact real numbers using
+ * the native architecture's double-precision floating point
+ * representation.
*/
VALUE