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

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -