Created
June 30, 2026 07:31
-
-
Save TomoG29/c8f3e73e0b4bea6bf36baaf25f994690 to your computer and use it in GitHub Desktop.
Blog_DifferentialBySymPy.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from sympy import * | |
| x = Symbol('x') | |
| f = x**3 | |
| df = diff(f) | |
| print(df) | |
| for i in range(1, 6): | |
| print(df.subs(x, i)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment