Last active
May 8, 2020 12:38
-
-
Save michaeljymsgutierrez/5c2f6d35a7bb0262b25fd76d0d18e386 to your computer and use it in GitHub Desktop.
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
# Requires python 3 | |
import scipy as sp | |
import sympy as sym | |
x = sym.symbols('x') | |
expression = input('Enter Expression: ') | |
transform = sym.diff(expression); | |
init_transform = str(transform) | |
print(init_transform.replace('**','^').replace('*','')) | |
# print(sym.diff(3 * x**2 + 6 * x)) | |
# print(sym.diff(x**5))i |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment