Problems with partial derivatives

9 visualizaciones (últimos 30 días)
aaron schulz
aaron schulz el 1 de Mzo. de 2017
I need to calculate the partial derivative of a function with respect to a scalar, but diff(a,e) does not work (if a is my function and e my scalar). It always tells me that N must be a positive integer.
now this is my function: a = e*sin(alpha)/(sin(alpha+betha))
and this is the scalar: e = 112.376
first i thought i'd have to create symbolic expressions for all sin and alpha etc. but those are obviously no symbolic expressions but variables with values. So I would need to get a value as a result from the partial derivative. Or do i need to create all of those variables as symbolic expressions first, then see what function matlab will give me as a result and then plug the values back in?

Respuestas (0)

Categorías

Más información sobre Symbolic Math Toolbox en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by