Mathematica Give to an interpolation function an analitic function with mathematica

Click For Summary
To convert an InterpolatingFunction from a differential equation solution into an approximate analytic form in Mathematica, the user seeks to express the output as a polynomial function, such as g[theta1] = a * theta1^2 + b * theta1 + c. The discussion highlights the use of the "FindFit" function to achieve this transformation. By applying "FindFit," users can fit the interpolated data to a desired polynomial model. This method provides a way to derive coefficients for the polynomial that best approximates the original InterpolatingFunction. The goal is to obtain a more manageable analytic representation of the solution.
UNKNOWN089
Messages
3
Reaction score
0
i have solved a differential equation with shooting methods, the output is in form of interpolate function, i can see it with a graphics, but i i would have an approssimate analitic form what kind of function i have to do ?

the equation give in output have this form..

InterpolatingFunction[{{-0.35,0.35}},<>][theta1]

where theta1 is the indipendet variable...
i would like to have a forme like :

g[theta1] = a *theta1^2+ b*theta1+ c...

how can i have this solution ?
 
Physics news on Phys.org
Use "FindFit"
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 0 ·
Replies
0
Views
855
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 9 ·
Replies
9
Views
2K