Taylor expansion with symbolic toolbox
8 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hello everyone,
I want to know how to do an approximation by the first and the second terms of Taylor expansion to symbolic expression, as for the expression below. How could I do that!
thank you for your help
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/217150/image.png)
0 Kommentare
Antworten (1)
Shreshth
am 16 Jan. 2025 um 6:20
Hi Insaf,
I am assuming, you want to find the approximate with the Taylor series expansion of f up to the second order.
You can achieve this using "taylor" function. Here is the sample code for your reference:
syms x(theta) alpha r a
f = x(theta) + alpha * (r + x(theta))^a
taylor_expansion = taylor(f, 'Order', 2)
Refer to the following documentation for more information on "taylor" function:
0 Kommentare
Siehe auch
Kategorien
Mehr zu Calculus finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!