error when using diff() on trigonometric functions
이전 댓글 표시
Hello,
When i try to apply this in matlab:
syms x
diff(cos(x))
I get :
ans =
diff(cos(x), x)
Instead of -sin(x) as expected. The examples and help show that it should work for trig functions and I don't understand why this isn't working for me.
Is this a kind of bug? Has anyone encountered this before?
Thanks, Alex
댓글 수: 4
Wayne King
2013년 3월 14일
Can you please give which version of MATLAB you are using? Thanks
alex pabouctsidis
2013년 3월 14일
Jan
2013년 3월 14일
Did you create a variable or function called "cos" before?
alex pabouctsidis
2013년 3월 14일
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Common Operations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!