Derivative of a function with constants
15 次查看(过去 30 天)
显示 更早的评论
Hello,
how can i calculate the derivative of a function like x*e^x(a*x^2+b*x+c), where a,b,c are constants(for example integers).
I tried syms x a b c and then
f=inline('ax^2+bx+c','x')
diff(f(x),x)
but then i get an error.
A function like that is easy enough without Matlab but i want the sum of y'''+y''-y'+y which needs a lot of calculation.
Thanks in advance.
1 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Calculus 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!