Problems with partial derivatives

9 次查看(过去 30 天)
aaron schulz
aaron schulz 2017-3-1
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?

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Symbolic Math Toolbox 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by