Taylor expansion with symbolic toolbox
조회 수: 6 (최근 30일)
이전 댓글 표시
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
댓글 수: 0
답변 (1개)
Ayush Modi
2024년 9월 18일
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
참고 항목
카테고리
Help Center 및 File Exchange에서 Calculus에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!