anonymous19
Followers: 0 Following: 0
Statistics
2 Questions
0 Answers
RANK
160,171
of 289,952
REPUTATION
0
CONTRIBUTIONS
2 Questions
0 Answers
ANSWER ACCEPTANCE
100.0%
VOTES RECEIVED
0
RANK
of 19,611
REPUTATION
N/A
AVERAGE RATING
0.00
CONTRIBUTIONS
0 Files
DOWNLOADS
0
ALL TIME DOWNLOADS
0
RANK
of 144,332
CONTRIBUTIONS
0 Problems
0 Solutions
SCORE
0
NUMBER OF BADGES
0
CONTRIBUTIONS
0 Posts
CONTRIBUTIONS
0 Public Channels
AVERAGE RATING
CONTRIBUTIONS
0 Highlights
AVERAGE NO. OF LIKES
Feeds
Question
i am trying to find the absolute relative error of an iteration and i cant get it to work.here is my code.my equation seems to give me wrong results and then i cant get the switch statement to work.what am i doing wrong?
while e > tol && i==x_max; e=((x(i+1)-x(i))/x(i+1))*100; end switch (e) case {e< tol} ...
8 years ago | 1 answer | 0
1
answerQuestion
i want to keep calculating better values of root iteratively until either the max number of iteration is used or the error is less than the tolerance and then display the values using the switch statement.i think somethin is wrong in my while loop.
k=1; e=-1*((x(k+1)-x(k))/x(k+1))*100; while e > tol && k==x_max; e=-1*((x(k+1)-x(k))/x(k+1))*100;...
8 years ago | 1 answer | 0