How to turn a table into an equation?

  • Context: Undergrad 
  • Thread starter Thread starter StillDumb
  • Start date Start date
  • Tags Tags
    Table
Click For Summary
SUMMARY

This discussion focuses on converting a table of data points into a mathematical equation that periodically returns to zero between each point. Users explore various methods, including modeling the data with sine or cosine waves and using piecewise linear functions. The conversation highlights Hermite interpolation as a viable solution for obtaining a single function that fits the points and their derivatives. Additionally, cubic spline interpolation is recommended for those willing to engage with more complex mathematical concepts.

PREREQUISITES
  • Understanding of basic trigonometric functions, specifically sine and cosine.
  • Familiarity with piecewise functions and their applications.
  • Knowledge of Hermite interpolation and its mathematical principles.
  • Basic understanding of cubic spline interpolation techniques.
NEXT STEPS
  • Research "Hermite interpolation" to understand how to fit points and derivatives with a single function.
  • Learn about "cubic spline interpolation" and its implementation for smooth transitions between data points.
  • Explore the use of "sine and cosine functions" for modeling periodic data patterns.
  • Investigate "piecewise linear functions" and their applications in data fitting.
USEFUL FOR

Mathematicians, data analysts, and engineers looking to model data points with periodic behavior or smooth transitions. This discussion is particularly beneficial for those interested in interpolation techniques and mathematical modeling.

StillDumb
Messages
6
Reaction score
0
Hey guys
Sorry if this is a dumb question, but how do I turn a table into an equation? I need the line or curve to fit the points. And I need the line or curve to periodically go back to zero in between each point. Below are my numbers and straight line slopes.

x y Slope
1 20
2 8 -12
3 9 1
4 19 10
5 27 8
6 9 -18
7 19 10
8 27 8
9 1 -26
10 27 26
11 20 -7
12 5 -15
13 19 14
14 20 1

Questions:
1) Since I want the equation to periodically return to zero in between each point, is there a way that I can model this as a sin or cos wave (or a combination)? That would make sense, right?
2) Or if I want straight lines, how do I do that without having 14 piece-wise functions?
3) Also, is there a way maybe to find the pattern of the slopes and make dY/dX equal to that pattern? That way I can work backwards using some calculus?

Thanks
 
Mathematics news on Phys.org
You might want to take a look at this:

http://en.wikipedia.org/wiki/Hermite_interpolation

This is probably the easiest way of obtaining a single function to fit the points and derivatives. If you're allowing piecewise functions, you could take a look at spline interpolation. Cubic splines are pretty powerful, but you'll need some practice with it before you try.
 

Similar threads

  • · Replies 24 ·
Replies
24
Views
3K
  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 51 ·
2
Replies
51
Views
4K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 68 ·
3
Replies
68
Views
12K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 10 ·
Replies
10
Views
6K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 2 ·
Replies
2
Views
2K