Differentiating algebraic equation fractions

2 vues (au cours des 30 derniers jours)
Sanjay Mohan
Sanjay Mohan le 28 Nov 2019
Hi guys, have a test coming up and i will be able to use matlab.
How do i differentiate algebraic equations such as fractions, in real life we will use the quotient rule, but how do i do it using matlab?
Ex: d/dx ((-x^2-x)/(x+2)*(x+3))
What will i enter into matlab for it to be differentiated?

Réponse acceptée

Vladimir Sovkov
Vladimir Sovkov le 28 Nov 2019
syms x;
simplify(diff(@(x)((-x^2-x)/(x+2)*(x+3)),x))

Plus de réponses (0)

Catégories

En savoir plus sur Symbolic Math Toolbox dans Help Center et File Exchange

Produits


Version

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by