martes, 30 de agosto de 2016

Derivar en MatLab

>> syms fx x

>> fx=(x^3)+(200+(2*x))^299-(1/(x^2))

fx =

(2*x + 200)^299 - 1/x^2 + x^3

>> Dfx=diff(fx, x)

Dfx =

598*(2*x + 200)^298 + 3*x^2 + 2/x^3