matlab求导,总是跳出warning,>> sym t;Xe='sqrt(800*800-430*430*(300*sin(t)-125)^2/((300*cos(t))^2-(300*sin(t)-125)^2))+430*300*cos(t)/sqrt((300*cos(t))^2+(300*sin(t)-125)^2)';diff(Xe)diff(Xe,2)Warning:The method char/diff will be removed in a fut
来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/21 14:32:02
matlab求导,总是跳出warning,>> sym t;Xe='sqrt(800*800-430*430*(300*sin(t)-125)^2/((300*cos(t))^2-(300*sin(t)-125)^2))+430*300*cos(t)/sqrt((300*cos(t))^2+(300*sin(t)-125)^2)';diff(Xe)diff(Xe,2)Warning:The method char/diff will be removed in a fut
matlab求导,总是跳出warning,
>> sym t;
Xe='sqrt(800*800-430*430*(300*sin(t)-125)^2/((300*cos(t))^2-(300*sin(t)-125)^2))+430*300*cos(t)/sqrt((300*cos(t))^2+(300*sin(t)-125)^2)';
diff(Xe)
diff(Xe,2)
Warning:The method char/diff will be removed in a future release.Use sym/diff instead.For example
diff(sym('x^2')).After removal diff('x^2') will return diff(double('x^2')).
> In char.diff at 10
ans =
(2580*cos(t)*(288*cos(t)*sin(t) - (24*cos(t)*(300*sin(t) - 125))/25))/((300*sin(t) - 125)^2/625 + 144*cos(t)^2)^(3/2) - (5*((1849*(180000*cos(t)*sin(t) + 600*cos(t)*(300*sin(t) - 125))*(300*sin(t) - 125)^2)/((300*sin(t) - 125)^2 - 90000*cos(t)^2)^2 - (1109400*cos(t)*(300*sin(t) - 125))/((300*sin(t) - 125)^2 - 90000*cos(t)^2)))/((1849*(300*sin(t) - 125)^2)/((300*sin(t) - 125)^2 - 90000*cos(t)^2) + 6400)^(1/2) - (5160*sin(t))/((300*sin(t) - 125)^2/625 + 144*cos(t)^2)^(1/2)
matlab求导,总是跳出warning,>> sym t;Xe='sqrt(800*800-430*430*(300*sin(t)-125)^2/((300*cos(t))^2-(300*sin(t)-125)^2))+430*300*cos(t)/sqrt((300*cos(t))^2+(300*sin(t)-125)^2)';diff(Xe)diff(Xe,2)Warning:The method char/diff will be removed in a fut
把变量Xe也声明成符号变量试试?