Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
%ME3255 Homework 3
%Ryan Hyatt
%See README.m
%TODO - A better description.
clc
clearvars
es = .00001;%accuracy?
dx = 10e-6;
maxiter = 10000;
xrold = 0;
guess = .2; % value of initial guess, if the function requires one
for maxiter = 1:5
%Newton's method.
[root(maxiter),ea(maxiter),iter(maxiter)] = newtraph(@(x) part2func(x),...
@(x) dpart2func_dx(x),...
guess,es,maxiter); % 1
end
root'
ea'
iter'