Area by Quadratic Splines
|
12-13-2017, 01:42 PM
Post: #1
|
|||
|
|||
Area by Quadratic Splines
Introduction
The program QUADSUM calculates the area under the curve described by the set of points (x_n, y_n). The points are connected, in groups of three, by quadratic splines. Thus, points (x1, y1), (x2, y2), and (x3, y3) are connected by a quadratic spline, (x3, y3), (x4, y4), (x5, y5) are connected by another quadratic spline, and so on. The number of points for QUADSUM must be odd. HP Prime Program QUADSUM Code:
Example Find the area under the curve with these points connected by quadratic splines: (0,2), (1,1), (2,2), (3,6), (4,4) Note that the point (2,2) ends the first spline and starts the second. QUADSUM({0,1,2,3,4}, {2,1,2,6,4}) returns 12.6666666667 FYI: The polynomial described would be the piecewise equation: y = { x^2 -2x + 2 for 0 < x ≤ 2, -3x^2 + 19x – 24 for 2 < x ≤ 4 |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Area by Quadratic Splines - Eddie W. Shore - 12-13-2017 01:42 PM
RE: Area by Quadratic Splines - AlexFekken - 12-14-2017, 06:57 AM
RE: Area by Quadratic Splines - AlexFekken - 12-20-2017, 05:03 AM
|
User(s) browsing this thread: 1 Guest(s)