summaryrefslogtreecommitdiff
path: root/math.c
diff options
context:
space:
mode:
authormarcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-05-17 21:07:33 +0000
committermarcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-05-17 21:07:33 +0000
commit7729de4d91ffbf0fe8fa4f2a95b85d3406845471 (patch)
treed930ee058c37104d7cd892dbbb7c56dc775abebc /math.c
parente181ae53918c09139e7f60bf5ad32741d91339cd (diff)
* array.c: Documentation: change => in call-seq to ->.
Harmonize "#=>" in examples. [ruby-core:30206] * bignum.c: ditto * class.c: ditto * compar.c: ditto * cont.c: ditto * dir.c: ditto * encoding.c: ditto * enum.c: ditto * enumerator.c: ditto * error.c: ditto * eval.c: ditto * file.c: ditto * gc.c: ditto * io.c: ditto * load.c: ditto * marshal.c: ditto * math.c: ditto * numeric.c: ditto * object.c: ditto * pack.c: ditto * proc.c: ditto * process.c: ditto * random.c: ditto * range.c: ditto * re.c: ditto * ruby.c: ditto * signal.c: ditto * sprintf.c: ditto * string.c: ditto * struct.c: ditto * thread.c: ditto * time.c: ditto * transcode.c: ditto * variable.c: ditto * vm_eval.c: ditto * vm_method.c: ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27865 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'math.c')
-rw-r--r--math.c52
1 files changed, 26 insertions, 26 deletions
diff --git a/math.c b/math.c
index 3d673129bd..23bca55c4b 100644
--- a/math.c
+++ b/math.c
@@ -30,7 +30,7 @@ extern VALUE rb_to_float(VALUE val);
/*
* call-seq:
- * Math.atan2(y, x) => float
+ * Math.atan2(y, x) -> float
*
* Computes the arc tangent given <i>y</i> and <i>x</i>. Returns
* -PI..PI.
@@ -63,7 +63,7 @@ math_atan2(VALUE obj, VALUE y, VALUE x)
/*
* call-seq:
- * Math.cos(x) => float
+ * Math.cos(x) -> float
*
* Computes the cosine of <i>x</i> (expressed in radians). Returns
* -1..1.
@@ -78,7 +78,7 @@ math_cos(VALUE obj, VALUE x)
/*
* call-seq:
- * Math.sin(x) => float
+ * Math.sin(x) -> float
*
* Computes the sine of <i>x</i> (expressed in radians). Returns
* -1..1.
@@ -95,7 +95,7 @@ math_sin(VALUE obj, VALUE x)
/*
* call-seq:
- * Math.tan(x) => float
+ * Math.tan(x) -> float
*
* Returns the tangent of <i>x</i> (expressed in radians).
*/
@@ -110,7 +110,7 @@ math_tan(VALUE obj, VALUE x)
/*
* call-seq:
- * Math.acos(x) => float
+ * Math.acos(x) -> float
*
* Computes the arc cosine of <i>x</i>. Returns 0..PI.
*/
@@ -130,7 +130,7 @@ math_acos(VALUE obj, VALUE x)
/*
* call-seq:
- * Math.asin(x) => float
+ * Math.asin(x) -> float
*
* Computes the arc sine of <i>x</i>. Returns -{PI/2} .. {PI/2}.
*/
@@ -150,7 +150,7 @@ math_asin(VALUE obj, VALUE x)
/*
* call-seq:
- * Math.atan(x) => float
+ * Math.atan(x) -> float
*
* Computes the arc tangent of <i>x</i>. Returns -{PI/2} .. {PI/2}.
*/
@@ -172,7 +172,7 @@ cosh(double x)
/*
* call-seq:
- * Math.cosh(x) => float
+ * Math.cosh(x) -> float
*
* Computes the hyperbolic cosine of <i>x</i> (expressed in radians).
*/
@@ -195,7 +195,7 @@ sinh(double x)
/*
* call-seq:
- * Math.sinh(x) => float
+ * Math.sinh(x) -> float
*
* Computes the hyperbolic sine of <i>x</i> (expressed in
* radians).
@@ -218,7 +218,7 @@ tanh(double x)
/*
* call-seq:
- * Math.tanh() => float
+ * Math.tanh() -> float
*
* Computes the hyperbolic tangent of <i>x</i> (expressed in
* radians).
@@ -233,7 +233,7 @@ math_tanh(VALUE obj, VALUE x)
/*
* call-seq:
- * Math.acosh(x) => float
+ * Math.acosh(x) -> float
*
* Computes the inverse hyperbolic cosine of <i>x</i>.
*/
@@ -253,7 +253,7 @@ math_acosh(VALUE obj, VALUE x)
/*
* call-seq:
- * Math.asinh(x) => float
+ * Math.asinh(x) -> float
*
* Computes the inverse hyperbolic sine of <i>x</i>.
*/
@@ -267,7 +267,7 @@ math_asinh(VALUE obj, VALUE x)
/*
* call-seq:
- * Math.atanh(x) => float
+ * Math.atanh(x) -> float
*
* Computes the inverse hyperbolic tangent of <i>x</i>.
*/
@@ -290,7 +290,7 @@ math_atanh(VALUE obj, VALUE x)
/*
* call-seq:
- * Math.exp(x) => float
+ * Math.exp(x) -> float
*
* Returns e**x.
*
@@ -318,8 +318,8 @@ math_exp(VALUE obj, VALUE x)
/*
* call-seq:
- * Math.log(numeric) => float
- * Math.log(num,base) => float
+ * Math.log(numeric) -> float
+ * Math.log(num,base) -> float
*
* Returns the natural logarithm of <i>numeric</i>.
* If additional second argument is given, it will be the base
@@ -367,7 +367,7 @@ extern double log2(double);
/*
* call-seq:
- * Math.log2(numeric) => float
+ * Math.log2(numeric) -> float
*
* Returns the base 2 logarithm of <i>numeric</i>.
*
@@ -395,7 +395,7 @@ math_log2(VALUE obj, VALUE x)
/*
* call-seq:
- * Math.log10(numeric) => float
+ * Math.log10(numeric) -> float
*
* Returns the base 10 logarithm of <i>numeric</i>.
*
@@ -422,7 +422,7 @@ math_log10(VALUE obj, VALUE x)
/*
* call-seq:
- * Math.sqrt(numeric) => float
+ * Math.sqrt(numeric) -> float
*
* Returns the non-negative square root of <i>numeric</i>.
*
@@ -460,7 +460,7 @@ math_sqrt(VALUE obj, VALUE x)
/*
* call-seq:
- * Math.cbrt(numeric) => float
+ * Math.cbrt(numeric) -> float
*
* Returns the cube root of <i>numeric</i>.
*
@@ -499,7 +499,7 @@ math_cbrt(VALUE obj, VALUE x)
/*
* call-seq:
- * Math.frexp(numeric) => [ fraction, exponent ]
+ * Math.frexp(numeric) -> [ fraction, exponent ]
*
* Returns a two-element array containing the normalized fraction (a
* <code>Float</code>) and exponent (a <code>Fixnum</code>) of
@@ -540,7 +540,7 @@ math_ldexp(VALUE obj, VALUE x, VALUE n)
/*
* call-seq:
- * Math.hypot(x, y) => float
+ * Math.hypot(x, y) -> float
*
* Returns sqrt(x**2 + y**2), the hypotenuse of a right-angled triangle
* with sides <i>x</i> and <i>y</i>.
@@ -557,7 +557,7 @@ math_hypot(VALUE obj, VALUE x, VALUE y)
/*
* call-seq:
- * Math.erf(x) => float
+ * Math.erf(x) -> float
*
* Calculates the error function of x.
*/
@@ -571,7 +571,7 @@ math_erf(VALUE obj, VALUE x)
/*
* call-seq:
- * Math.erfc(x) => float
+ * Math.erfc(x) -> float
*
* Calculates the complementary error function of x.
*/
@@ -585,7 +585,7 @@ math_erfc(VALUE obj, VALUE x)
/*
* call-seq:
- * Math.gamma(x) => float
+ * Math.gamma(x) -> float
*
* Calculates the gamma function of x.
*
@@ -674,7 +674,7 @@ math_gamma(VALUE obj, VALUE x)
/*
* call-seq:
- * Math.lgamma(x) => [float, -1 or 1]
+ * Math.lgamma(x) -> [float, -1 or 1]
*
* Calculates the logarithmic gamma of x and
* the sign of gamma of x.