Odhrán
Followers: 0 Following: 0
Statistics
1 Question
0 Answers
RANK
230,776
of 292,873
REPUTATION
0
CONTRIBUTIONS
1 Question
0 Answers
ANSWER ACCEPTANCE
100.0%
VOTES RECEIVED
0
RANK
of 19,953
REPUTATION
N/A
AVERAGE RATING
0.00
CONTRIBUTIONS
0 Files
DOWNLOADS
0
ALL TIME DOWNLOADS
0
RANK
of 148,075
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
The code runs when if I do; newton_recur(@(x) x^2,@(x) 2*x,1,10) but wont work if I leave out the @(x). is there a way to do this so that the user doesn't need to add @(x)?
function x = newton_recur(f,df,x0,n) Xhist = 1:n; x = x0; for i = 1:n x = x - f(x)/df(x); Xhist(1,i) = x; end di...
9 months ago | 2 answers | 0