Using Taylor Expansions: how to impose 'large' approximations, i.e., "for large x"?
조회 수: 1 (최근 30일)
이전 댓글 표시
Say I have a function:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/572947/image.png)
and I want to see what happens in the region of large x, i.e., I Taylor expad f(x) in the region of large x and see how the functiuon changes. I Can do this on paper but how do I instruct matlab to take x as being say x>>a where a is small?
댓글 수: 0
답변 (1개)
Walter Roberson
2021년 4월 5일
format long g
syms alpha x
f = sin(alpha*x)
fapprox(x) = taylor(f, x, 10000, 'order', 20)
fapprox(3183*pi)
fapprox_tenth(x) = simplify(subs(ans, alpha, 1/10))
fapprox_tenth(3183*pi)
vpa(ans)
sin(3183*pi*1/10)
That's a pretty good approximation
sin(10*3183*pi*1/10)
vpa(fapprox_tenth(10*3183*pi))
but that is not.
댓글 수: 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!