Differentiate with respect to 'cos(theta)'
조회 수: 4 (최근 30일)
이전 댓글 표시
Hi, I am trying to differentiate with respect to cos(theta), but I can't seem to get matlab to do this. If I use the diff function I get:
>> diff(cos(the),cos(the))
ans =
diff(cos(the), cos(the))
When the answer I'm looking for is 1. If anyone knows of a way to do this it would be greatly appreciated! Cheers!
댓글 수: 0
채택된 답변
Walter Roberson
2012년 6월 22일
It is easy to get this wrong. Please see http://www.mathworks.com/matlabcentral/answers/40904-how-to-symbolically-differentiate-a-function-with-respect-to-a-different-function
댓글 수: 0
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!