calculus - How to input a polynomial in standard algebraic notation and get its derivative? (Python) -


I have no problem with derivative computing..It's just that I do not know how to handle a whole polynomial standard algebraic signaling : P

In Python, for computer algebra, there is a way to go.

The derivative of a polynomial in sympection is straightforward:

  & gt; & Gt; & Gt; Import Simpi as SP & gt; & Gt; & Gt; X = sp.symbols ('x')> and gt; & Gt; Sp.diff (3 * x ** 4 + 8 * x ** 2 - 3 * x + 1) 12 * x ** 3 + 16 * x - 3    

Comments

Popular posts from this blog

python - how we can use ajax() in views.py in django? -

matlab - Using loops to get multiple values into a cell -

python - Sequence Pattern recognition with Pybrain -