import sympy as sym def sens_coef(self, U_err, I_sd, I_err, I_dig): U_err, I_sd, I_err, I_dig = sym.symbols('U_err I_sd I_err I_dig') R = (U_err)/(I_sd + I_err + I_dig) self.k1 = sym.diff(R, U_err) self.k2 = sym.diff(R, I_sd) self.k3 = sym.diff(R, I_err) self.k4 =sym.diff(R, I_dig) return self.k1, self.k2, self.k3, self.k4I have this function and need to derivative that. How I can outnumbers in this function and calculate this?
Derivative function
Derivative function
|
May-01-2021, 10:54 AM
You might find this method useful: https://docs.scipy.org/doc/scipy/referen...ative.html
|
|
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
Unexpected output: symbols for derivative not being displayed | saucerdesigner | 0 | 2,560 |
Jun-22-2020, 10:06 PM Last Post: saucerdesigner |
|
Derivative operation | therealpaulie | 2 | 2,885 |
May-07-2019, 08:01 AM Last Post: therealpaulie |
Users browsing this thread: 1 Guest(s)