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
smichr on master
point2D now will subclass Evalf… fixed failing tests test evalf for entities Also, … and 1 more (compare)
I think it is there https://github.com/sympy/sympy_doc
That's auto-generated. You should not manually make changes to that repo.
cancel
does with rational functions)
minpoly
. minpoly((sqrt(x)+1)/(sqrt(x)*(x+sqrt(x)), y)
gives x*y - 1
meaning that the expression equals 1/x
./bin/test
do not work on ubuntu. So is the solution here simply cloning a wsl version of the sympy repo and keeping its functioning separate from windows?
Hi all -- I'm looking at how to differentiate expressions involving IndexedBase objects. When I run the following code:
import sympy
n = sympy.symbols('n', integer=True)
M = sympy.IndexedBase('M', shape=(n, n))
x = sympy.IndexedBase('x', shape=n)
i = sympy.Idx('i', n)
j = sympy.Idx('j', n)
k = sympy.Idx('k', n)
energy = 0.5 * M[i, j] * x[i] * x[j]
print(sympy.simplify(energy.diff(x[k])))
I get an expression involving lots of Kronecker deltas. I feel it should be possible to simplify these out but I don't know how. Thoughts?