Differentiation and integration of functions

2 visualizzazioni (ultimi 30 giorni)
Artur Shpak
Artur Shpak il 21 Mag 2020
Risposto: David Hill il 21 Mag 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

Risposte (2)

Bjorn Gustavsson
Bjorn Gustavsson il 21 Mag 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 il 21 Mag 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);

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by