Differentiation and integration of functions

2 visualizaciones (últimos 30 días)
Artur Shpak
Artur Shpak el 21 de Mayo de 2020
Respondida: David Hill el 21 de Mayo de 2020
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

Respuestas (2)

Bjorn Gustavsson
Bjorn Gustavsson el 21 de Mayo de 2020
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
David Hill el 21 de Mayo de 2020
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);

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by