How can I solve this derivative problem in the matlab program?

 Réponse acceptée

syms x
f = (x^2+1)*(x^3+3) ;
df = diff(x)
simplify(df)

5 commentaires

Dear KSSV,
The answer but in matlab answer is 1.
It cannot be 1.
I wrote in the matlab, the answer was 1.
Please check your matlab.
You need to do diff(f) not diff(x)!

Connectez-vous pour commenter.

Plus de réponses (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by