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!