+ Reply to Thread
Results 1 to 5 of 5

derivatives of a cubic spline

  1. #1
    Registered User
    Join Date
    06-14-2008
    Posts
    12

    derivatives of a cubic spline

    Dear all,

    I'm a newbee to VBA. I'm essentially after a function to calculate the interpolated cubic spline points and their associated derivatives at each point. Does anyone have a function that can do this?

    Many thanks in advance for your help.

    Regards,
    John

  2. #2
    Forum Contributor
    Join Date
    01-18-2005
    Location
    Auckland New Zealand
    MS-Off Ver
    Office Professional 2007
    Posts
    295
    Try this code:
    Taken from http://user.services.openoffice.org/...hp?f=45&t=4574
    Hoping you will know how to use it

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    06-14-2008
    Posts
    12
    Thanks for the code. Not sure how to get the derivative out of the natural cubic
    spline though.... being a newbee.

    Hoping someone can assist.

    Regards,
    John

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689
    If you solve for the coefficients, you can calculate the derivatives.

    What is this for?

  5. #5
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259
    Hello johnboy12,

    I don't know how far down you the rabbit hole you want to go with this, but here is an article that may help or at least point you in the right direction.

    Cubic Splines

    Sincerely,
    Leith Ross

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1