Statistics
1 Question
0 Answers
RANK
135,968
of 301,234
REPUTATION
0
CONTRIBUTIONS
1 Question
0 Answers
ANSWER ACCEPTANCE
0.0%
VOTES RECEIVED
0
RANK
of 21,204
REPUTATION
N/A
AVERAGE RATING
0.00
CONTRIBUTIONS
0 Files
DOWNLOADS
0
ALL TIME DOWNLOADS
0
RANK
of 173,580
CONTRIBUTIONS
0 Problems
0 Solutions
SCORE
0
NUMBER OF BADGES
0
CONTRIBUTIONS
0 Posts
CONTRIBUTIONS
0 Public Channels
AVERAGE RATING
CONTRIBUTIONS
0 Discussions
AVERAGE NO. OF LIKES
Feeds
Question
Why does this code, which is written to calculate sin(0) to sin(pi), also calculate sin(1.1*pi) even though the while loop should forbid it?
clc; clear; i=1; x=0; y(i)=sin(x*pi); while x<1 i=i+1; x=x+0.1; y(i)=sin(x*pi); end y <</matlabcentral/...
9 years ago | 2 answers | 0