[#2320] Problems in mathn, rational, complex, matrix — Gavin Sinclair <gsinclair@...>
I received a message from Richard Graham mentioning a problem in the
[#2346] Patch for socket.c: control reverse lookup for every instance — Thomas Uehlinger <uehli@...>
Hi all
[#2357] Use the BasicSocket#do_not_reverse_lookup flag in Webrick — Thomas Uehlinger <uehli@...>
Hi
[#2367] Standard libraries — Dave Thomas <dave@...>
From ruby-dev summary:
Hi,
Hi,
By the way, this issue is about a matter of taste, so the debate is somewhat
Hi,
On Thu, Feb 12, 2004 at 02:58:22PM +0900, NAKAMURA, Hiroshi wrote:
On Thursday, February 12, 2004, 8:18:32 PM, Mauricio wrote:
On Thursday 12 February 2004 04:37, Gavin Sinclair wrote:
On Friday, February 13, 2004, 12:44:15 AM, Sean wrote:
(Dave Thomas: there's a question for you in the second paragraph; if you're
[#2397] PATCH: deprecate cgi-lib, getopts, importenv, parsearg from standard library — Gavin Sinclair <gsinclair@...>
Index: cgi-lib.rb
* Gavin Sinclair (gsinclair@soyabean.com.au) wrote:
On Thursday, February 12, 2004, 11:39:37 PM, E wrote:
Hi,
Hi,
[#2422] Re: [ruby-cvs] ruby: * lib/ftools.rb: documented — "U.Nakamura" <usa@...>
Hello,
[#2449] make install not getting through rdoc phase — "David A. Black" <dblack@...>
Hi --
[#2465] PATCH: OpenStruct#initialize to yield self — Gavin Sinclair <gsinclair@...>
This is a common approach I use to object initialization; I don't know
On Fri, 20 Feb 2004 02:42:00 +0900, Dave Thomas wrote:
> > As more general suggestion. Could 'new' yield the new object is a block
On Fri, 20 Feb 2004 08:24:31 +0900, Carlos wrote:
Hi,
Yukihiro Matsumoto wrote:
On Feb 20, 2004, at 4:33 PM, Joel VanderWerf wrote:
[#2494] rehash segfault — Nathaniel Talbott <nathaniel@...>
I don't have a lot of information on this bug at this point, but
Hi,
On Wed, Feb 25, 2004 at 03:30:54AM +0900, Yukihiro Matsumoto wrote:
[#2504] foldl and foldr — "Sean E. Russell" <ser@...>
Sorry if I'm opening old wounds; I have a hard time believing that nobody has
Re: Problems in mathn, rational, complex, matrix
On Sun, 1 Feb 2004, Gavin Sinclair wrote: > On Sunday, February 1, 2004, 7:02:31 PM, Mathieu wrote: > > You have to do Matrix[[7.0,6.0],[3.0,9.0]], or the equivalent thing with > > Rationals. For the determinant to be meaningful, the Matrix must not be > > filled with Integers. A number like 1.0 is mathematically an Integer too. However, in a language like Ruby, the class of an Object is an information that distinguishes 1.0 from 1 (although 1.0==1) and that plays a role in determining the operation to use. To instruct the Matrix class to use Float#/, you have to replace your integers of class Integer (eg: 7) by integers of class Float (eg: 1.0). Likewise if you want it to use Rational#/, you have to replace them by integers of class Rational (that is, with denominator 1, Rational(7,1)). > I'd say that Ruby should do the same thing, however it is implemented. > It is not Ruby's custom to expose computers' limitations on > mathematics (e.g. overflow errors). huh? Ruby pretty much exposes overflow errors of Float in the same way as C would do (IEEE standard). It doesn't expose overflow errors on Integers, _because_ its Integers are arbitrary-precision, but you still can get problems like out-of-memory errors and insanely long computations. ________________________________________________________________ Mathieu Bouchard http://artengine.ca/matju