summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorshigek <shigek@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-04-24 13:32:30 +0000
committershigek <shigek@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-04-24 13:32:30 +0000
commit42afa18dad9272dc8bfc96d87c0a8f10d154907c (patch)
tree5be89de0864f635d2a12b8424d558220076eb818
parent5fa7cb55b836a598d79ff1c58b26b8a089908e4b (diff)
downloadruby-42afa18dad9272dc8bfc96d87c0a8f10d154907c.tar.gz
ruby-42afa18dad9272dc8bfc96d87c0a8f10d154907c.tar.xz
ruby-42afa18dad9272dc8bfc96d87c0a8f10d154907c.zip
More explanations for sincos.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3721 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ext/bigdecimal/bigdecimal_en.html2
-rw-r--r--ext/bigdecimal/bigdecimal_ja.html1
2 files changed, 2 insertions, 1 deletions
diff --git a/ext/bigdecimal/bigdecimal_en.html b/ext/bigdecimal/bigdecimal_en.html
index c87cd5ccd..ad4ac460c 100644
--- a/ext/bigdecimal/bigdecimal_en.html
+++ b/ext/bigdecimal/bigdecimal_en.html
@@ -467,7 +467,7 @@ computes square root value of a with significant digit number n at least.<BR>
<LI><B>sincos</B></LI><BR>
computes and returns sine and cosine value of a with significant digit number n at least.<BR>
sin,cos = a.sincos(n)<BR>
-
+Computation may return bad results unless |a|<2*3.1415.....
<LI><B>exp</B></LI><BR>
c = a.exp(n)<BR>
computes the base of natural logarithm value(e=2.718281828....) powered by a
diff --git a/ext/bigdecimal/bigdecimal_ja.html b/ext/bigdecimal/bigdecimal_ja.html
index bfddabd3b..e9fa7a090 100644
--- a/ext/bigdecimal/bigdecimal_ja.html
+++ b/ext/bigdecimal/bigdecimal_ja.html
@@ -415,6 +415,7 @@ a の有効桁 n 桁の sin と cos を同時に(テイラー展開で)計算して、
n は必要な有効桁数です( n の sin や cos を計算するわけではありません)。
<BR>
sin,cos = a.sincos(n)<BR>
+|a|<2*3.1415....でないと正しい答えを計算できないこともあります。
<LI>exp</LI><BR>
自然対数の底e(=2.718281828....)の a 乗を計算します。<BR>
c = a.exp(n)<BR>