how to solve tan(x)=x
7 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
huang
le 26 Fév 2014
Réponse apportée : Arun Nyamagoudar
le 21 Fév 2020
May I ask how to solve tan(x)=x in matlab?
0 commentaires
Réponse acceptée
Star Strider
le 26 Fév 2014
tanxx = @(x) tan(x)-x;
for a = -1:1
xs = fzero(tanxx, a)
end
0 commentaires
Plus de réponses (1)
Arun Nyamagoudar
le 21 Fév 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 commentaires
Voir également
Catégories
En savoir plus sur Symbolic Math Toolbox dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!