please give a matlab code with comment
In a wind tunnel experiment, the force on a projectile due to the air resistance was measured at different velocities:
Velocity (100 ft/sec) 0 2 4 6 8 10
Force (100 lb) 0 2.90 14.8 39.6 74.3 119
Find an interpolating polynomial p(t) = a0 + a1t + a2t 2 + a3t 3 + a4t 4 + a5t 5 for these data (that is, find the coefficients a0, a1, .... of such a polynomial, so that p(0) = 0, p(2) = 2.90, p(4) = 14.8...).
What happens if you try to use a polynomial of degree less than 5?
The polyomial is
If we use a polyomial less than degree 5 we will get an approximate polynomial as the data has 6 points and a polynomial of degree lesser than 5 will not have that many variables
Hope this was helpful. Please do leave a positive rating if you liked this answer. Thanks and have a good day!
Get Answers For Free
Most questions answered within 1 hours.