From: unbewusst.sein@... (=?ISO-8859-1?Q?Une_B=E9v?= =?ISO-8859-1?Q?ue?=) Date: 2007-11-23T04:40:12+09:00 Subject: Re: eigenvector discrepency was (Re: [Matrix] eigenvalues, eigenvectors in Ruby ???) M. Edward (Ed) Borasky wrote: > > RSpec has an "approximately equal" operator that allows you to specify > how close two floating point numbers "should be". I forget what it's > called, but you should be able to lift the code for it and specify how > close numbers need to be. There is something like this built into the > eigensystem solvers, however, so you probably don't want to use a finer > tolerance than the solver did. :) Actually, since this capability is > built into RSpec, you should consider using RSpec as a test framework > for number crunching code. I'll have a look upon RSpec, thanks ! Une B�vue