New Member FAQ | Forums | Earn Revenue


Resources Entrance Ask Experts Exam Papers Jobs English Projects Universities Colleges Courses Schools Training My India



My Profile
Active Members
TodayLast 7 Days more...



Awards & Gifts
Online Exams

Fresher Jobs


Our fresher job section is exclusively for fresh graduates! Find jobs for freshers in major Indian cities including Bangalore, Chennai, Hyderabad, Pune or Kochi

Resources


Find educational articles, blogs, discussion threads and other resources.

Colleges


Find details about any college in India or search for courses.

website counter



MATLAB - Newton's Method of Interpolation


Posted Date:     Total Responses: 0    Posted By: Vikram Narayan C   Member Level: Silver   Points/Cash: 2   


clear;
clc;
n = input('Enter the number of data:');
a = input('Enter the intermediate value to find: ');
for i=1:n
x(i) = input('x: ');
end
for i=1:n
y(i) = input('y: ');
end
h = (x(n) - x(1))/(n-1);
u = (a - x(1))/h;
v = (a - x(n))/h;
fory = y(1);
bacy = y(n);
dely = y;
t = n;
for i=1:n-1
disp(dely);
dely = diff(dely);
prof =1;
temp = u;
for j=1:i
prof = prof * temp;
temp = temp - 1;
end
temp = v;
prob = 1;
for j=1:i
prob = prob * temp;
temp = temp +1 ;
end
t = t - 1;
fory = fory + (prof/factorial(i))*dely(1);
bacy = bacy + (prob/factorial(i))*dely(t);
end
fory
bacy


Project Feedbacks


No feedbacks found. Be the first to respond and make money from revenue sharing program.

Post Feedback
You must Sign In to post a feedback.
Next Project: MATLAB - Rungekutta Method
Previous Project: MATLAB - Power Method - Eigen Vectors

Return to Project Index

Post New Project


Related Projects



Advertise Here





Contact Us   Advertise   Editors    Privacy Policy    Terms Of Use   

ISC Technologies.
2006 - 2009 All Rights Reserved.