Differentiation and integration of functions
2 次查看(过去 30 天)
显示 更早的评论
syms x
y=(11*x+1)/sqrt(x^2+22)
diff(y)
syms x
diff((11*x+1)/sqrt(x^2+22),2)
x=dsolve('Dx=(11*x+1)/sqrt(x^2+22)','x(0)=0'))
grid
I have this code, but in line 6 its mistake. Can you help me?
I must to find
0 个评论
回答(2 个)
Bjorn Gustavsson
2020-5-21
You need to change from assignment to equality:
x=dsolve('Dx==(11*x+1)/sqrt(x^2+22)','x(0)=0')
But this is most likely not the way to solve this task.
HTH
David Hill
2020-5-21
syms x;
y=(11*x+1)/sqrt(x^2+22);
dy=diff(y);
ddy=diff(dy);
for x=1:3
Dy(x)=double(subs(dy));
DDy(x)=double(subs(ddy));
end
Y=@(x)(11*x+1)./sqrt(x.^2+22);
I=integral(Y,1,3);
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!