From 3108ad7bf3dcae52054a1c29b86246cdb470000b Mon Sep 17 00:00:00 2001 From: Marcus Stollsteimer Date: Tue, 5 Jan 2021 15:13:53 +0100 Subject: [DOC] Fix grammar: "is same as" -> "is the same as" --- math.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'math.c') diff --git a/math.c b/math.c index f64ad93c06..470979c424 100644 --- a/math.c +++ b/math.c @@ -809,7 +809,7 @@ math_erfc(VALUE unused_obj, VALUE x) * * Calculates the gamma function of x. * - * Note that gamma(n) is same as fact(n-1) for integer n > 0. + * Note that gamma(n) is the same as fact(n-1) for integer n > 0. * However gamma(n) returns float and can be an approximation. * * def fact(n) (1..n).inject(1) {|r,i| r*i } end @@ -900,9 +900,9 @@ math_gamma(VALUE unused_obj, VALUE x) * * Calculates the logarithmic gamma of +x+ and the sign of gamma of +x+. * - * Math.lgamma(x) is same as + * Math.lgamma(x) is the same as * [Math.log(Math.gamma(x).abs), Math.gamma(x) < 0 ? -1 : 1] - * but avoid overflow by Math.gamma(x) for large x. + * but avoids overflow by Math.gamma(x) for large x. * * Math.lgamma(0) #=> [Infinity, 1] * -- cgit v1.2.1