how to solve tan(x)=x
7 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
huang
am 26 Feb. 2014
Beantwortet: Arun Nyamagoudar
am 21 Feb. 2020
May I ask how to solve tan(x)=x in matlab?
0 Kommentare
Akzeptierte Antwort
Star Strider
am 26 Feb. 2014
tanxx = @(x) tan(x)-x;
for a = -1:1
xs = fzero(tanxx, a)
end
0 Kommentare
Weitere Antworten (1)
Arun Nyamagoudar
am 21 Feb. 2020
Use the below code with vpasolve,
syms x
for n = 1:100
x1 = (2*n-1)*pi/2;
x2 = (2*n+1)*pi/2;
v(n) = double(vpasolve(tan(x)-x == 0,x,[x1 x2]));
end
0 Kommentare
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!