[SciPy-user] symbolic variables

Robert Kern rkern at ucsd.edu
Mon Jun 13 14:17:41 CDT 2005

Ryan Krauss wrote:
> Is there a way within SciPy to do symbolic math - sort of like the 
> symbolic toolbox of Matlab that interfaces with Maple?
> I need to be able to work with matrices that have at least one symbolic 
> variable in them.  Most of the time, all of the variables will be 
> assigned numeric values, but occasionally I need symbolic output.  It 
> would be great not to have to do all of this twice in two different 
> pieces of software - one for numeric and one for symbolic.

No, Scipy does not have any symbolic capabilities. Pearu does have 
Python bindings to GiNaC (PyGiNaC), but I believe it is unmaintained at 
this time.

> If this can't be done in SciPy, can anyone recommend a good symbolic 
> program that can do matrices?

I usually use Maxima when I have to do such things. YACAS might also do 
what you need.

Robert Kern
rkern at ucsd.edu

"In the fields of hell where the grass grows high
  Are the graves of dreams allowed to die."
   -- Richard Harter

More information about the SciPy-user mailing list