error when using diff() on trigonometric functions
Ältere Kommentare anzeigen
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 Kommentare
Wayne King
am 14 Mär. 2013
Can you please give which version of MATLAB you are using? Thanks
alex pabouctsidis
am 14 Mär. 2013
Jan
am 14 Mär. 2013
Did you create a variable or function called "cos" before?
alex pabouctsidis
am 14 Mär. 2013
Antworten (0)
Kategorien
Mehr zu Common Operations finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!