mirror of
https://bitbucket.org/Mattrixwv/octavefunctions.git
synced 2025-12-06 18:53:57 -05:00
Updated to the correct syntax
This commit is contained in:
@@ -5,7 +5,7 @@ function [xList, errorList] = FalsePosition(f, p0, p1, errorAllowed)
|
|||||||
%
|
%
|
||||||
|
|
||||||
%Make sure the number of arguments is correct
|
%Make sure the number of arguments is correct
|
||||||
if(narginchk(4, 4))
|
if(nargin ~= 4)
|
||||||
error('That is an incorrect number of arguments')
|
error('That is an incorrect number of arguments')
|
||||||
end
|
end
|
||||||
%A few necesary before we begin
|
%A few necesary before we begin
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ function [xList, functionValueList] = Mullers(f, p0, p1, p2, errorAllowed)
|
|||||||
%
|
%
|
||||||
|
|
||||||
%Make sure the number of arguments is correct
|
%Make sure the number of arguments is correct
|
||||||
if(narginchk(5,5))
|
if(nargin ~= 5)
|
||||||
error('That is an incorrect number of arguments')
|
error('That is an incorrect number of arguments')
|
||||||
end
|
end
|
||||||
%A few necesary things before we get started
|
%A few necesary things before we get started
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ function [xList, errorList] = NewNewton (f, startingValue, errorAllowed)
|
|||||||
%
|
%
|
||||||
|
|
||||||
%Make sure the number of arguments is correct
|
%Make sure the number of arguments is correct
|
||||||
if(narginchk(3,3))
|
if(nargin ~= 3)
|
||||||
error('That is an incorrect number of arguments')
|
error('That is an incorrect number of arguments')
|
||||||
end
|
end
|
||||||
%A few necesary things before we get started
|
%A few necesary things before we get started
|
||||||
|
|||||||
2
Secant.m
2
Secant.m
@@ -5,7 +5,7 @@ function [xList, errorList] = Secant(f, p0, p1, errorAllowed)
|
|||||||
%
|
%
|
||||||
|
|
||||||
%Make sure the number of arguments is correct
|
%Make sure the number of arguments is correct
|
||||||
if(narginchk(4,4))
|
if(nargin ~= 4)
|
||||||
error('That is an incorrect number of arguments')
|
error('That is an incorrect number of arguments')
|
||||||
end
|
end
|
||||||
%A few necesary things before we get started
|
%A few necesary things before we get started
|
||||||
|
|||||||
Reference in New Issue
Block a user