diff of order n around a point x0

조회 수: 5 (최근 30일)
adam
adam 2012년 8월 3일
Hello,
I would like to calculate the derivative of order n of function f with respect to x aaround a point x0.
diff(f,x,x0,n) but doesn't work
Any help!!
Thank you in advance.
Adam

채택된 답변

Wayne King
Wayne King 2012년 8월 3일
Do you have the Symbolic Toolbox and an expression for your function?
syms t
x = cos(2*t);
y = diff(x,2)
subs(y,0) %evaluate the 2nd derivative at t=0
  댓글 수: 1
adam
adam 2012년 8월 3일
편집: adam 2012년 8월 3일
Hello, Thank you for your answer. Yes, I have the symbolic toolbox.
I would like make sum of diff(x) for exemple for order n going from 0 to 5. I tried:
{symsum(diff(x,n), n, 0, 5)}
it dipalys an error. Thank you in adavance. Good day, Aam

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Symbolic Math Toolbox에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by