根号求导,根号下的变量应该怎么求导呢?
摘要你看看:syms x1 x2 x3f = x1^2+x2^2+x3^2;fx1 = diff(f,x1);fx2 = diff(f,x2);fx3 = diff(f,x3);x11 = input(请
你看看:syms x1 x2 x3f = x1^2+x2^2+x3^2;fx1 = diff(f,x1);fx2 = diff(f,x2);fx3 = diff(f,x3);x11 = input(‘请输入整数x1:’);x22 = input(‘请输入整数x2:’);x33 = input(‘请输入整数x3:’);subs(fx1,x1,x11)subs(fx2,x2,x22)subs(fx3,x3,x33)输出的subs就是赋值之后的每一个偏导的结果,你可以试着运行一下根号求导。diff默认对x求导,如果有好几个x,则默认对x1求导,默认求一介导。