Question: Write a Java program to compute the Lagrange interpolating polynomial P() of degree one, two , or three and then compute P(1940), P(1975), and P(2020).

Write a Java program to compute the Lagrange interpolating polynomial P() of degree one, two , or three and then compute P(1940), P(1975), and P(2020). Which was the most accurate polynomial degree?

Consider the data, Year 1950 1960 1970 1980 1990 2000 Population 151,326 179,323 203,302 226,542 249,633 281,422 (in thousands) Here x = 1950. x, = 1960, x2 = 1970, xz = 1980, x4 = 1990, Xs = 2000 yo =151,326, y; = 179,323, y2 = 203,302, yz = 226,542, YA = 249,633, ys = 281,422

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!