[Haskell-cafe] Re: BLAS Solve Example

apfelmus apfelmus at quantentunnel.de
Wed Jul 23 11:53:57 EDT 2008


Darrin Thompson wrote:
> On Wed, Jul 23, 2008 at 2:12 AM, Alberto Ruiz <aruiz at um.es> wrote:
>> $ ghci solve.hs
>> *Main> sol
>> 3 |> [-5.555555555555511e-2,0.11111111111111113,0.2777777777777776]
>>
> 
> I was hoping for rational solutions. If I were a true jedi master I'd
> write my own solver, which might be the right thing to do. All I know
> so far is gauss' method. Probably I'd learn something implementing the
> back substitution. hmm....

The Hugs interpreter has a few nice Haskell demos, including a simple gauss 
elimination

   http://darcs.haskell.org/hugs98/demos/Matrix.hs

Of course, this is unsuitable for serious floating point calculations.


Regards,
apfelmus



More information about the Haskell-Cafe mailing list