How to do a taylor series in matlab with e?

조회 수: 4 (최근 30일)
Bella
Bella 2016년 5월 25일
편집: Todd Leonhardt 2016년 5월 25일
if the equation was g(x)=e^x/(cos(x)+tan3(x)) for x=2 I tried >> x=2;taylor(exp(e^x/(cos(x)+tan3(x)))) but an error comes up with undefined function or variable 'e'

답변 (1개)

Todd Leonhardt
Todd Leonhardt 2016년 5월 25일
편집: Todd Leonhardt 2016년 5월 25일
Check out this example of how to compute Taylor series in Matlab:
Make sure you define x as a symbolic variable first.
  댓글 수: 2
Bella
Bella 2016년 5월 25일
now it says undefined function 'taylor'
Todd Leonhardt
Todd Leonhardt 2016년 5월 25일
taylor operates symbolically
You need to give it the variable.
Do you have the symbolic math toolbox?

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Mathematics에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by