Hello Community,
i have some more or less complicated funtions, e.g. a simple one:
f(r,theta) = r*(pi*cos(theta)+2*sin(theta));x = x0 +r*cos(theta);y = y0 +r*cos(theta);
and I need the symbolic derivative of f with respect to x any y: d f(r(x,y),theta(x,y)) / dx = ….
my code look like this:
syms f f1 f2 r theta x x0 y0 y pif = r*(pi*cos(theta)+2*sin(theta));f1 = x == x0 + r*cos(theta);f2 = y == y0 + r*sin(theta);dr_dx = diff(solve(f1,r),x)dtheta_x = diff(solve(f1,theta),x)dr_dy = diff(solve(f2,r),y)dtheta_y = diff(solve(f2,theta),y)df_r = diff(f,r)df_theta = diff(f,theta)
but how i could create the desired derivative..
Best Answer