- #1
dabillionaire
- 2
- 0
Hi,
i have no idea how to start up my program on Newton interpolation. i have solved it manually but I am clueless on how 2 start my program. below represnts the input which i want 2 solve. every 4 lines represnts one problem. the 1st line- n,m where n is no of data points and m is no of evaluation pts. 2nd and 3rd line represent x and y of n pts. 4th line is m @ which it is to be evaluated. the function is sinx. can anyone help me out??
3 2
0.1 0.4 0.5
3.1 3.2 4.1
1.5 1.6
3 5
1.0 2.0 3.0
1.7 1.8 1.1
1.1 1.2 1.4 1.3 1.8
15 5
0.1 0.4 0.5 1.2 2.0 2.1 2.2 2.3 2.4 2.5 2.6 2.7 2.8 2.9 2.95
3.1 3.2 4.1 2.7 1.9 1.7 1.8 1.1 1.7 1.8 1.1 1.7 1.8 1.1 2.3
1.0 1.2 1.6 2.0 2.5
ma output is supposed to be in d form
e1 fN(e1)
e2 fN(e2)
.
.
em fN(em)
i have no idea how to start up my program on Newton interpolation. i have solved it manually but I am clueless on how 2 start my program. below represnts the input which i want 2 solve. every 4 lines represnts one problem. the 1st line- n,m where n is no of data points and m is no of evaluation pts. 2nd and 3rd line represent x and y of n pts. 4th line is m @ which it is to be evaluated. the function is sinx. can anyone help me out??
3 2
0.1 0.4 0.5
3.1 3.2 4.1
1.5 1.6
3 5
1.0 2.0 3.0
1.7 1.8 1.1
1.1 1.2 1.4 1.3 1.8
15 5
0.1 0.4 0.5 1.2 2.0 2.1 2.2 2.3 2.4 2.5 2.6 2.7 2.8 2.9 2.95
3.1 3.2 4.1 2.7 1.9 1.7 1.8 1.1 1.7 1.8 1.1 1.7 1.8 1.1 2.3
1.0 1.2 1.6 2.0 2.5
ma output is supposed to be in d form
e1 fN(e1)
e2 fN(e2)
.
.
em fN(em)