| Author |
Comment/Response |
yehuda ben-shimol
|
09/26/10 02:47am
D[Sin[x]^2]
returns the desired result
if you would like to use Derivative formalism then you need to define a function
that is
Derivative[1][Sin[#]^2&][x]
Since you didn't quoted your code, I suspect problems might be with
1) use Capitals for built in functions, e.g., Sin rather than sin
2) use Square brackets for function arguments, that is, Sin[x] rather than Sin(x) (or sin(x)) which denotes multiplication in Mathematica
3) defining the variable for the derivative (therefore use D[...,x] or Derivative as I used above)
yehuda
URL: , |
|