Added Helps for Homework 3.2

This commit is contained in:
2018-11-02 01:35:23 -04:00
parent 2a245cbef2
commit 83e17b81a6
2 changed files with 142 additions and 0 deletions

7
Nevilles.m Normal file
View File

@@ -0,0 +1,7 @@
function [value] = Nevilles(P0, P1, x0, x1, x)
%
%Nevilles(P0, P1, x0, x1, x)
%This is function to calculate Pn using Nevilles method
%
value = (((x - x1)/(x0 - x1)) * P0) + (((x - x0)/(x1 - x0)) * P1);
end