Swiginac Installation

Mac OS X

  • The following instructions were tested on a MacBook Pro with MacOS 10.5.5. I had previously installed the developer tools from the Mac OS X installation CD.

pkg-config

  • download

    • ./configure
      make
      sudo make install
      

Install CLN

  • Download and extract cln

  • DO NOT run autoconf. On my Mac this completely messed up the configure script

    • ./configure
      make #(this took a long time; maybe 10 minutes)
      sudo make install
      

Install GiNAC

  • download and extract

    • ./configure
      make #(this took a long time; maybe 10 minutes)
      sudo make install
      

Install Swig

  • download

  • I installed this on my system previously and I don't remember it being very difficult

swiginac

  • I installed with svn like this:
    • svn checkout svn://svn.berlios.de/swiginac/trunk swiginac
  • make sure that mglpython (found in the continuity installation directory) is in your path
    • mglpython setup.py build
      mglpython setup.py install --prefix ~/cont_dev/pcty/MglToolsLib/
      

Testing

  • Run python
    • >>> from swiginac import *
      >>> x = symbol('x')
      >>> y = symbol('y')
      >>> print sin(x*y).diff(x,1)
      cos(y*x)*y
      

Unit Tests

  • cd tests/swiginac
    python checkall.py
    cd ../Symbolic
    python SymbolicTests.py
    
  • Hopefully, you will get a message telling you that more than 130 tests have been run, and that all but one went well.