noob python and C questions

A place to discuss the implementation and style of computer programs.

Moderators: phlip, Moderators General, Prelates

Re: noob python and C questions

Postby skeptical scientist » Sun May 13, 2012 1:33 pm UTC

Does anyone know of a nice python class/library for dealing with matrices?
I'm looking forward to the day when the SNES emulator on my computer works by emulating the elementary particles in an actual, physical box with Nintendo stamped on the side.

"With math, all things are possible." —Rebecca Watson
User avatar
skeptical scientist
closed-minded spiritualist
 
Posts: 5920
Joined: Tue Nov 28, 2006 6:09 am UTC
Location: Madison, Wisconsin

Re: noob python and C questions

Postby Robert'); DROP TABLE *; » Sun May 13, 2012 2:14 pm UTC

NumPy includes a matrix class.
...And that is how we know the Earth to be banana-shaped.
User avatar
Robert'); DROP TABLE *;
 
Posts: 635
Joined: Mon Sep 08, 2008 6:46 pm UTC
Location: in ur fieldz

Re: noob python and C questions

Postby PM 2Ring » Mon May 14, 2012 4:09 am UTC

skeptical scientist wrote:Does anyone know of a nice python class/library for dealing with matrices?


mpmath does matrices, and all sorts of fancy functions, with arbitrary-precision arithmetic, if desired. If you're using Python on Linux, mpmath is probably in your standard repos, at least, it is under Debian and its relatives.
User avatar
PM 2Ring
 
Posts: 2624
Joined: Mon Jan 26, 2009 3:19 pm UTC
Location: Mid north coast, NSW, Australia

Re: noob python and C questions

Postby Cleverbeans » Tue May 15, 2012 12:00 am UTC

I use Sage a great deal, and it certainly handles matrices among other things mathematical.
"Labor is prior to, and independent of, capital. Capital is only the fruit of labor, and could never have existed if labor had not first existed. Labor is the superior of capital, and deserves much the higher consideration." - Abraham Lincoln
Cleverbeans
 
Posts: 883
Joined: Wed Mar 26, 2008 1:16 pm UTC

Previous

Return to Coding

Who is online

Users browsing this forum: No registered users and 10 guests