creating a coefficient matrix for a polynomial
1 次查看(过去 30 天)
显示 更早的评论
I have a function f(x) = a_0 +a1*x+a2*x^2+a3*x^3
I need to create a matrix such that
row 1 contains f(0) term as first element and other terms as 0 0 0
row 2 is coefficients of differentiation of f(x) at 0 which would be 0 1 0 0
row 3 is coefficients of f(x) at x = L i.e [1 L L^2 L^3]
2 个评论
Walter Roberson
2020-3-23
The differentiation of f(x) at 0: f' would be a1+2*a2*x+3*a3*x^2 and evaluated at 0 that would be a1, not 1
Anyhow, go ahead and create the matrix; you have already given instructions on how you want to built it.
Perhaps the hint you need is: coeffs() ?
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Polynomials 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!