1. Limited time only! Sign up for a free 30min personal tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Accurately interpolating more Data points for a bump profile

  1. Sep 20, 2012 #1
    Hi there,

    I require some advice on how to interpolate more data points on a bump profile. Basically i have a curve defined be twentyfive (x,y) data points. The bump is meant to accurately represent half of an aerofoil. I would like to accurately interpolate more data points (lets say up to 50) so that i can generate a smoother curve in my computer simulation.
    The bump geometry profile it:

    x y
    -1.5 , 0
    -1.4 , 0.002
    -1.2 , 0.014
    -1 , 0.044
    -0.8 ,0.099
    -0.6 , 0.178
    -0.4 , 0.257
    -0.3, 0.2835
    -0.2 , 0.31
    -0 , 0.331
    0.2 , 0.325
    0.35 , 0.308
    0.4 ,0.3
    0.6 ,0.258
    0.63 ,0.251
    0.8 ,0.207
    0.9 ,0.181
    1 ,0.155
    1.2 ,0.103
    1.24 ,0.093
    1.4 ,0.058
    1.58 ,0.031
    1.6 ,0.027
    1.8 ,0.006
    2 ,0

    I do not know what type of function this is wheter its quadratic or cubic etc....

    Any asistance would be greatly apreciated.
  2. jcsd
  3. Sep 20, 2012 #2


    User Avatar
    Science Advisor

    Hey Hughezy and welcome to the forums.

    For interpolation, there are quite a number of techniques available.

    The simplest is the Lagrange Interpolation formula which generates an n+1th degree polynomial for n data points, but if you want more control over the actual interpolation model you will need something a bit more developed, and for that you should check out BSPLINES.



    In terms of calculating these, you can use standard numerical platforms like MATLAB or something like Octave which is free, and then get some coded routines to generate the right data structures with all the information for that model.

    If you have MATLAB, then a google search returns this:


    This kind of stuff is a big topic in 3D animation and games design, so the relevant literature in this area (i.e. computer graphics) should have more information if you wish to dig deeper (as well as certain areas of applied mathematics).
  4. Sep 20, 2012 #3
    Hi Chiro,

    Thankyou for the reply!
    I do indeed have MATLAB although my experience is limited. I have no idea where to start with B-spline tools. Do you know if there is a tutorial avaliable? Or do you yourself have any further advise?

    Looking at the langrange polynomial on

    Solving an n+1th polynomial for 25 data points by hand would be a ridiculously long calculation. And im not sure how accurate it would end up being. I was ignorant as to how difficult this will be, and with my current time constraints im not sure whether this will be possible.

    But again thankyou
  5. Sep 20, 2012 #4


    User Avatar
    Science Advisor

Share this great discussion with others via Reddit, Google+, Twitter, or Facebook