![]() Volume 9, Issue 2 Articles Tricks of the Trade In and Out Trott's Corner New Products New Publications Calendar News Bulletins New Resources Classifieds Download This Issue Editorial Policy Staff Submissions Subscriptions Advertising Back Issues Contact Information |
In and Out
Interpolation Q: Given a set of nonuniformly sampled A: Here is an exact function
Sample
Superimpose the sampled data over a plot of the function to visualize the
Interpolate the data using
Compare the first and second derivatives; the red curve denotes the exact value and the green curve denotes the interpolated function in each plot. The agreement is very good.
Next, examine
Compute the numerical value of
Alternatively, compute the indefinite integral as an InterpolatingFunction using NDSolve (since
Compare the exact value
The arc length,
so we have
The arc length is, as expected, monotonically increasing.
Since
Here is a plot of
Here is a table of uniformly incremented arc length values of the interpolated function
A Plot with
|
||||||||
About Mathematica | Download Mathematica Player Copyright © 2004 Wolfram Media, Inc. All rights reserved. |