summaryrefslogtreecommitdiff
path: root/math.c
diff options
context:
space:
mode:
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 3d67312..23bca55 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.