Error in fsolve function
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
yogeshwari patel
am 30 Mär. 2022
Bearbeitet: yogeshwari patel
am 1 Apr. 2022
syms x a
series(x)=sym(zeros(1));
Y=sym(zeros(1));
m=sym(1);
Y(1)=0;
Y(2)=a;
%N=input ('enter the number of coefficient required')
for k=1:6
Y(k+2)=((18*kroneckerDelta(k,m)-9*Y(k)))/(k*(k+1));
end
disp(Y)
for k=1:6
series(x)=series(x)+Y(k)*(power(x,k-1));
end
series
M=series(pi/2)-1
a=fsolve(M,0)
The last line is showing error and further i just want to evaluate the series by putting value of a by using command .But again getting error
1 Kommentar
Catalytic
am 30 Mär. 2022
We are not sitting next to you at your computer. We cannot see the error messages that you are getting.
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Symbolic Math Toolbox finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!