diff options
author | ocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-03-01 10:06:03 +0000 |
---|---|---|
committer | ocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-03-01 10:06:03 +0000 |
commit | 2b25baff72412deb6075fe3a3bcba3bf7d0e8401 (patch) | |
tree | 425832b33246e19d77897127da20b89ea19b92c6 /math.c | |
parent | 5ed418b594ad4e45fb6ac302fbb93a2a610e43ff (diff) | |
download | ruby-2b25baff72412deb6075fe3a3bcba3bf7d0e8401.tar.gz |
* dir.c: supress warning "/* within comment"
* bignum.c, io.c, math.c, pack.c, time.c: ANSI styled.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10008 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'math.c')
-rw-r--r-- | math.c | 9 |
1 files changed, 3 insertions, 6 deletions
@@ -146,8 +146,7 @@ math_atan(VALUE obj, VALUE x) #ifndef HAVE_COSH double -cosh(x) - double x; +cosh(double x) { return (exp(x) + exp(-x)) / 2; } @@ -170,8 +169,7 @@ math_cosh(VALUE obj, VALUE x) #ifndef HAVE_SINH double -sinh(x) - double x; +sinh(double x) { return (exp(x) - exp(-x)) / 2; } @@ -194,8 +192,7 @@ math_sinh(VALUE obj, VALUE x) #ifndef HAVE_TANH double -tanh(x) - double x; +tanh(double x) { return sinh(x) / cosh(x); } |