matlab中我输入df=diff('x^3-3*x-1')回车后得到的是:df = -26 -43 -6 6 -9 7
来源:学生作业帮 编辑:大师作文网作业帮 分类:综合作业 时间:2024/11/14 09:30:30
matlab中我输入df=diff('x^3-3*x-1')回车后得到的是:df = -26 -43 -6 6 -9 78 -75 4 为什么得导数?
help sym/diff.m
DIFF Differentiate.
DIFF(S) differentiates a symbolic expression S with respect to its
free variable as determined by FINDSYM.
DIFF(S,'v') or DIFF(S,sym('v')) differentiates S with respect to v.
DIFF(S,n),for a positive integer n,differentiates S n times.
DIFF(S,'v',n) and DIFF(S,n,'v') are also acceptable.
Examples;
x = sym('x');
t = sym('t');
diff(sin(x^2)) is 2*cos(x^2)*x
diff(t^6,6) is 720.
See also INT,JACOBIAN,FINDSYM.
这个才是求导的函数,输入必须是sym
你用的那个,输入是数组,是求差分用的,是先将字符串转换成ASCII码,然后求的ASCII码的差.
DIFF Differentiate.
DIFF(S) differentiates a symbolic expression S with respect to its
free variable as determined by FINDSYM.
DIFF(S,'v') or DIFF(S,sym('v')) differentiates S with respect to v.
DIFF(S,n),for a positive integer n,differentiates S n times.
DIFF(S,'v',n) and DIFF(S,n,'v') are also acceptable.
Examples;
x = sym('x');
t = sym('t');
diff(sin(x^2)) is 2*cos(x^2)*x
diff(t^6,6) is 720.
See also INT,JACOBIAN,FINDSYM.
这个才是求导的函数,输入必须是sym
你用的那个,输入是数组,是求差分用的,是先将字符串转换成ASCII码,然后求的ASCII码的差.
matlab的问题:当我输入>> syms x;>>f=x*x 按回车后就出错,这是怎么回事啊?请大家帮帮
为什么在matlab中输入syms x f=sym('x/(cos(x))^2') y(1)=diff(f)
matlab中,希望求函数f(x)=x的1/3次方,及其导函数z=df(x)/dx
matlab中df=df.';的语法含义是什么
求y=4*x*y+x.^2关于x的导数在x=3,4,6,8的值.用matlab的diff函数
求未知函数 1,xdx/1+x2=df(x) 2,xe的x次方的平方dx=df(x) 3,根号下(x+1)dx=df(x
matlab中做指数拟合,如何输入一个x值,得到拟合后的y值?
f(lnx+1)=e^x+3x 求df(x)/dx
matlab diff怎么不能求1/x^2的导数
已知xy坐标下的两组偏导(df/dx and df/dy),如何可以得到这个函数f(x,y)用matlab codes?
matlab中y=x+ln(y)怎么用diff求导
df(x)=f'(x)dx