how to solve tan(x)=x
7 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
huang
il 26 Feb 2014
Risposto: Arun Nyamagoudar
il 21 Feb 2020
May I ask how to solve tan(x)=x in matlab?
0 Commenti
Risposta accettata
Più risposte (1)
Arun Nyamagoudar
il 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 Commenti
Vedere anche
Categorie
Scopri di più su Symbolic Math Toolbox in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!