Looking for a bunch of solved Sympy problems (Calculus)

1 reply · 2K views · last reply
JD_PM
Messages
1,125
Reaction score
156
Homework Statement
Please see image
Relevant Equations
Please see image
Two weeks ago I had no idea on how to code using Python. Now I have completed an online course on functions, loops and strings. However, in that course I did not practice using the specific library called Sympy. Besides, I will use Python in the Physics-Math background, for solving problems like this one:

Screenshot of a homework worksheet titled Gravitational Potential and Lagrange Points, with text, a fifth-order polynomial equation, and a Python code cell importing sympy.

Typeset homework question defining a gravitational potential V(r, phi) in polar coordinates with two square-root terms, with definitions of R_c, R_*, and omega squared, followed by Question 4 asking for a Python method converting x, y to r and phi.
Screenshot of a homework page with Question 5 (define a meshgrid for x and y from -5.5 to 5.5, then compute a potential), Question 6 (create a matplotlib contourplot with 50 levels between -7 and -4, plot the first Lagrangian point in red), and a link to Matplotlib documentation.

So I am wondering if you know about any collection of solved problems in Calculus I and II (vector calculus) using Sympy for practicing (so as to know how to solve an equation using Sympy, how to numerically evaluate their solutions, verify that there exists only one real solution...).

Thanks
 
I have found a book called 'Doing Math with Python'. It seems cool.

Any suggestion is welcomed.