The problem is that I want to make a programme which from an inicial function that I defined, makes its partial derivate and then lets me to replace the variables with numeric values in the derivated function.
This is what I have:
How can I do that?
EDIT: I use 2.7 version of python
This is what I have:
from math import * from sympy import symbols, diff v,r=symbols('v r', real=True) i=v/r #This is my initial function d1=diff(i, v) #the first partial derivate print d1 d2=diff(i, r) #the second one print d2Now what I want to do is to define for example r=1 and v=1 and then obtain the numeric value of d1 and d2.
How can I do that?
EDIT: I use 2.7 version of python