mrkn
1c3e07f0d6
* ext/bigdecimal/bigdecimal.c (Init_bigdecimal): add two new constants BigDecimal::INFINITY and BigDecimal::NAN.
...
* ext/bigdecimal/lib/bigdecimal/math.rb (BigMath.exp): modify the behaviors for infinity arguments as same as Math.exp.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28533 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-03 07:47:00 +00:00
nobu
5b20a1398b
* ext/bigdecimal/lib/bigdecimal/math.rb (BigMath#log): improved
...
precision and performance. [ruby-dev:41295]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27747 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-12 06:04:59 +00:00
mrkn
74365313f7
* ext/bigdecimal/lib/bigdecimal/math.rb (atan), test/bigdecimal/test_bigmath.rb (test_atan): explicitly specify the precision for calculating a reciprocal number of an argument. [Bug #3267 ]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-11 05:11:59 +00:00
nobu
39ea1c8c7c
* ext/bigdecimal/lib/bigdecimal/math.rb (atan): atan(Infinity) is
...
PI/2.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25063 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-23 17:21:26 +00:00
nobu
1ef3ac4738
* ext/bigdecimal/lib/bigdecimal/math.rb (atan): reduce loop with
...
the formula of the double corner. based on a patch from
Masahiro Kanai (CanI) in [ruby-dev:39367].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25062 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-23 17:08:37 +00:00
nobu
8c3926aea0
* ext/bigdecimal/lib/bigdecimal/math.rb (atan): refined.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25057 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-23 12:25:20 +00:00
nobu
2c34b66e24
* ext/bigdecimal/lib/bigdecimal/{ludcmp,math}.rb: depend on
...
bigdecimal.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25029 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-21 20:04:10 +00:00
nobu
51132a8ad9
* ext/bigdecimal/lib/bigdecimal/newton.rb: rdoc needs to be
...
followed by the definition.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25028 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-21 20:00:21 +00:00
nobu
c1f1b452cb
* ext/bigdecimal/lib/bigdecimal/*.rb: made module functions.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25027 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-21 19:56:20 +00:00
nobu
178dafefa9
* ext/bigdecimal/lib/*.rb: fixed indent.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25026 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-21 19:49:32 +00:00
nobu
cd4f59bc5e
* ext/bigdecimal/lib/bigdecimal/math.rb (sin, cos, atan, exp, log):
...
improved precision and performance. based on a patch from Makoto
Yamashita in [ruby-core:25600] and [ruby-core:25602].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25013 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-20 15:07:38 +00:00
nobu
287a34ae0d
* {ext,lib,test}/**/*.rb: removed trailing spaces.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-06 03:56:38 +00:00
matz
e644398bc6
* ext/bigdecimal/bigdecimal.c (BigDecimal_to_r): moved from
...
bigdecimal/util, converted into C. [ruby-dev:36805]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20191 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-11-11 10:45:21 +00:00
matz
09f4a8643c
* ext/bigdecimal/lib/bigdecimal/jacobian.rb (Jacobian::dfdxi):
...
typo fixed (raize -> raise). [ruby-list:45101]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17492 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-20 19:39:36 +00:00
matz
4bacdc1e46
* bignum.c (bignorm): sizeof(long) may be smaller than
...
sizeof(VALUE). [ruby-dev:29013]
* ruby.h (FIXNUM_MAX): fixnum may be bigger than long.
* ruby.h (SIGNED_VALUE): signed integer of size of VALUE.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10510 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-07-11 05:00:02 +00:00
matz
60bf66e0cd
* ext/bigdecimal/bigdecimal.c: add RDoc document. a patch from
...
mathew <meta at pobox.com>. [ruby-core:07050]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10428 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-29 09:09:33 +00:00
matz
d1a5aa5685
* ext/bigdecimal/lib/bigdecimal/newton.rb (Newton::nlsolve): typo
...
fixed: raize -> raise. [ruby-talk:196608]
* string.c (rb_str_ord): new method.
* parse.y (rbracket): allow optional newline before closing
brackets.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10242 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-10 16:09:12 +00:00
ocean
c1ed63a4c4
* ext/bigdecimal/sample/linear.rb: resolve LoadError.
...
* ext/bigdecimal/sample/nlsolve.rb: ditto.
* ext/bigdecimal/lib/bigdecimal/nlsolve.rb: removed because this file
is sample script and same file exists in ext/bigdecimal/sample.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7996 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-02-18 17:31:14 +00:00
ocean
ce5140ad2a
* bigdecimal/newton.rb: resolve LoadError.
...
* bigdecimal/nlsolve.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7994 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-02-18 16:42:43 +00:00
shigek
38b9eb1674
mult & div instead of * & /.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4459 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-08-29 13:33:37 +00:00
shigek
caf213d9ad
E added. Typo corrected.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4411 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-08-19 14:16:09 +00:00
shigek
a8027639b8
Refinement for speedup.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4401 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-08-17 14:35:53 +00:00
shigek
32df87feab
Typo 'selt' corrected to 'self'.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4395 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-08-16 13:36:40 +00:00
shigek
3fe728e76b
sqrt() & atan() added.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4394 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-08-15 14:13:49 +00:00
shigek
1e97118d8f
Newly added.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4388 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-08-14 15:34:17 +00:00
shigek
9cfc06d9ae
Comment changed.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4357 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-08-08 15:31:53 +00:00
shigek
de20b0bf59
Trailing 0s in split removed.(to_digits changed).
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4333 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-08-05 14:03:57 +00:00
shigek
f2c49270e7
Bug in to_digits fixed.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4330 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-08-05 09:32:09 +00:00
shigek
480fa2f5cc
Typo pointed out by Javier Goizueta fixed.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4319 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-08-04 13:47:29 +00:00
shigek
651f324a27
Spec for div changed.
...
add,sub,mult,div now can specify exact digits number.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4154 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-07-25 02:27:33 +00:00
shigek
1bb3071bde
As discussed in ruby-dev ML:
...
lib directory moved.
util.rb created instead of bigdecimal-rational.rb
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4093 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-07-18 15:26:37 +00:00
shigek
e242cf9def
More pathes from Tadasi Saito.
...
As discussed in ruby-dev ML:
E,PI, etc are disabled.
BigDecimal op String disabled.
to_f changed.
lib directory moved.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4092 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-07-18 15:24:25 +00:00
shigek
f64d6232ab
Changed according to Tadashi Saito's advice.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4009 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-06-27 04:40:25 +00:00
shigek
cff57b4a26
Dir. rearrangement according to the suggestions from Minero Aoki.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3722 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-24 13:37:32 +00:00
shigek
640c19405c
Rubbish !
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3627 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-03-28 05:15:59 +00:00
shigek
7744351708
Copied from rough/bigdecimal,documents & some sample programs added.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3625 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-03-28 05:00:21 +00:00