From 7729de4d91ffbf0fe8fa4f2a95b85d3406845471 Mon Sep 17 00:00:00 2001 From: marcandre Date: Mon, 17 May 2010 21:07:33 +0000 Subject: * 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 --- math.c | 52 ++++++++++++++++++++++++++-------------------------- 1 file changed, 26 insertions(+), 26 deletions(-) (limited to 'math.c') 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 y and x. 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 x (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 x (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 x (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 x. 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 x. 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 x. 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 x (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 x (expressed in * radians). @@ -218,7 +218,7 @@ tanh(double x) /* * call-seq: - * Math.tanh() => float + * Math.tanh() -> float * * Computes the hyperbolic tangent of x (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 x. */ @@ -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 x. */ @@ -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 x. */ @@ -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 numeric. * 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 numeric. * @@ -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 numeric. * @@ -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 numeric. * @@ -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 numeric. * @@ -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 * Float) and exponent (a Fixnum) 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 x and y. @@ -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. -- cgit v1.2.3