Finding the Cubic Spline for f(x) = sin(x^2) with M and S_i Formulas

  • Thread starter Thread starter nhrock3
  • Start date Start date
  • Tags Tags
    Cubic
nhrock3
Messages
403
Reaction score
0
find the cubic spine of
f(x)=sin(x^2)

i have two formulas
one for the M's
the other for the sums S_i

but i need a table of points
to know what indexes to put and when
here i don have
it?
 
Physics news on Phys.org
Your question is incomplete. The is no such thing as "the" cubic spline for a function. A cubic spline is an approximation to the function and different cubic splines will give different approximations. For what interval are you to find a cubic spline approximation for this function? Since this function is not periodic, there is no (finite) cubic spline that will accurately approximate it for all x. Are you given specific "knots" (points at which the cubic "pieces" meet)? If not you can select them yourself but there are an infinite number of different "correct" answers depending upon that selection.
 
the question said to find the aproximation of the function in that integral
\int_{0}^{\pi/2}\sin(x^2)
 
and i don't have a table of points

how am i supposed to do spline without points
 
in the solution i was told that i could find M1 and from it S1

but why there only M1
why not also M2 M3
which will give us S2 S3

each S_i represents subunterval
 
Once again, there is no such thing as "the" approximation to any thing. There are many different approximations with accuracy depending on what method you use and how much work you want to do. If you are asked to approximate that integral, using a cubic spline, and no other information is given, then you are free to decide for yourself what interpolation points and knots to use and how many you want to use.
 
so if i will deside to use 4 points or 7 points
f(x1)=y1 etc..
and i deside which are xi's

i will get the same quadratic polinomial
?
 
nhrock3 said:
so if i will deside to use 4 points or 7 points
f(x1)=y1 etc..
and i deside which are xi's

i will get the same quadratic polinomial
?

No, you won't. Here you are talking about a quadratic polynomial approximation, such as used in Simpson's rule for evaluating integrals, and the title of the thread asks for a cubic spline. Which is it? They aren't the same thing. Are you really just asking about Simpson's rule or something else?
 
i need to know how could we solve any differential equation using the concept of splines ?
 
Back
Top