Nevilles Method Python 3.6
Nevilles Method Python 3.6
4
import numpy as np
import scipy as sp
# This program is based on Neville's Method in Burden and Faires 9th edition
# page 123, Algorithm 3.1
#
#
#
#
I
II
III
IV
# Part I
x=[-2,-1,0,1,2]
# Part II
y = []
def f(x):
return 3**x
for i in range(len(x)):
y.append( f(x[i]))
print(y[i])
# Part III
def Nevilles(x):
for i in range(len(x)):
new = []
for j in range(i):
new.append(j)