A computer algebra system written in pure Python http://sympy.org/ . To get started to with contributing https://github.com/sympy/sympy/wiki/Introduction-to-contributing
plot.py
and came across the check_arguments()
function here. Though I sort of understand how it works, I still don't understand it's purpose. The docstrings aren't much of a help either. Can someone tell me why the function behaves that way?
>>> Sum(exp(x*sin(n/m)),(n,1,m))
Sum(exp(x*sin(n/m)), (n, 1, m))
>>> Sum(exp(x*sin(n/m)),(n,1,m)).doit()
Piecewise((m*exp(c3_), Eq(exp(c2_), 1)), ((exp(c2_) - exp(c2_*(m + 1)))*exp(c3_)/(1 - exp(c2_)), True))
pip install -e
or setup.py develop
. Although I personally just run Python directly from the sympy
directory. That does not require reinstalling, as it will just import the development version of SymPy directly.
./bin/test test_solvers.py
, and use -k
to select a specific test like ./bin/test -k test_whatever