Darrin Thompson wrote:
On Wed, Jul 23, 2008 at 2:12 AM, Alberto Ruiz <[EMAIL PROTECTED]> 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

_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to