Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Identity in sumpy

I want this to become this

I searched a lot, but I couldn’t find it. Just tell me the name of the function. It’s enough

1

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

(5y-3x)**2

to:

25y-30xy+9x*2
How?

please help me!

I tested with factor() and it didn’t work !

>Solution :

expand()

>>> expand((x + 1)**2)
 2
x  + 2⋅x + 1

>>> expand((x + 2)*(x - 3))
 2
x  - x - 6

from
https://docs.sympy.org/latest/tutorials/intro-tutorial/simplification.html#expand

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading