diff options
author | Marcus Stollsteimer <sto.mar@web.de> | 2021-01-05 15:13:53 +0100 |
---|---|---|
committer | Marcus Stollsteimer <sto.mar@web.de> | 2021-01-05 15:13:53 +0100 |
commit | 3108ad7bf3dcae52054a1c29b86246cdb470000b (patch) | |
tree | 48879bbd126fe3c3ee37f714130abe7c4a2de49a /math.c | |
parent | 3d439447250f19333418adcdf777142dda4b3364 (diff) |
[DOC] Fix grammar: "is same as" -> "is the same as"
Diffstat (limited to 'math.c')
-rw-r--r-- | math.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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] * |