expanding a given function as a power series?
Afficher commentaires plus anciens
say I have a function, for example f(x)=x^3+2x. I want to know how take an arbitrary function like this, and for each x value supstitute
, the expontential function in h. I then want to expand this newly represneted function as a power series in h, as each
will equal 1+h+h^2/2+h^3/3+....
Now, I understand it will have an infinite amount of terms, so if there was a way I could pick an integer (say m) such that it only calculates this power series up to the h^m term I think that would be awesome
This is quite a big endevor for me, as I have no programming experience. Could somebody show me how to write this script?? Thank you so much I really appreciate it
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur MATLAB dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!