[#9722] Kernel#system broken inside Dir.chdir(&block) if system command doesn't have shell characters — <noreply@...>

Bugs item #7278, was opened at 2006-12-14 13:59

8 messages 2006/12/14

[#9749] System V IPC in standard library? — Steven Jenkins <steven.jenkins@...>

Back in August, I needed a semaphore to serialize access to an external

14 messages 2006/12/19

[#9753] CVS freeze — SASADA Koichi <ko1@...>

Hi,

20 messages 2006/12/20
[#9755] Re: [ruby-dev:30039] CVS freeze — SASADA Koichi <ko1@...> 2006/12/20

Hi,

[#9757] Re: [ruby-dev:30040] Re: CVS freeze — SASADA Koichi <ko1@...> 2006/12/20

Hi,

Re: [ ruby-Bugs-7001 ] Determinant Problem in Matrix.rb

From: URABE Shyouhei <shyouhei@...>
Date: 2006-12-01 15:15:56 UTC
List: ruby-core #9647
Nex3 wrote:
> Given that the typical way of calculating determinants involves no
> division at all, it seems odd that I would be required to use floats
> to get the correct result. In addition, the documentation of the
> Matrix class doesn't say that one should use floats... in fact, the
> example given for Matrix#determinant is done with integers.

Sorry not defining determinants in a typical way.  It does divide.

> That said, when looking at the documentation, I noticed that it said
> that "mathn" must be required in order for determinants to work
> properly. And this does work properly (with integers) after requiring
> mathn. Although it is rather unintuitive to do so.

Like many other computer languages, Ruby's Integer instances do not
behave as mathematical integers do.  Whenever you want to do a
mathematical computation you (1) use Float instead, (2) require 'mathn',
or (3) learn how Integer behaves.

In This Thread