exp(-x) - sinx = 0
5 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
hi, i'm planning to reach the root of this function:
exp(-x) - sinx = 0;
here is my code:
------------------------------
x0 = input('please enter x0 ::: ');
eps = input('please enter steps ::: ');
% eps is the step
iterator = 0;
for i=0:eps:x0
x=x+exp(-x) - sin(x);
iterator = iteratio + 1;
end
disp('root ::: '); disp(x);
disp('iterate count ::: '); disp(iterator);
------------------------------
well i can't make it work. can you help me with that?
0 commentaires
Réponses (2)
reza
le 10 Jan 2014
6 commentaires
Youssef Khmou
le 11 Jan 2014
Modifié(e) : Youssef Khmou
le 11 Jan 2014
alright, infinite number of solutions with period of ~3.1
thanks
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!