필터 지우기
필터 지우기

Difference between D(f)(x) and diff( f(x) , x )

조회 수: 2 (최근 30일)
VincentLec
VincentLec 2016년 6월 23일
답변: Muhammad Usman Saleem 2016년 6월 23일
Hello, So, I'm using the symbolic notation and I have defined both x and f(x) as symbolic functions like this
syms x f(x)
After a couple of operations, I get (in my Command window) a formula that includes both D(f)(x) and diff(f(x),x).
D(f)(x)+...+diff(f(x),x)
I was wondering if there is any difference between both of them or if they both represent the derivative of f in respect towards x.
Thanks a bunch

채택된 답변

Muhammad Usman Saleem
Muhammad Usman Saleem 2016년 6월 23일
let say you are working with two for loops one has index variable f and other is x
the
D(f)(x)
means everytimes these loops run you are calling value of vector(may matrix) with indices f,x
while
diff( f(x) , x )
means you are calling vector f element of index x and with x( suppose your for loop has index variable x) taking its just difference.

추가 답변 (0개)

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by