How to do polynomial differentiation
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Raiven Balderas
el 28 de Mzo. de 2018
Comentada: Raiven Balderas
el 28 de Mzo. de 2018
How to do polynomial differentiation without using known matlab commands
2 comentarios
Guillaume
el 28 de Mzo. de 2018
Why wouldn't you want to use known matlab commands. And for that matter, what are unknown matlab commands then?
Respuesta aceptada
Roger Stafford
el 28 de Mzo. de 2018
Let P be the usual Matlab row vector of coefficients of a polynomial. Then, (as we all learned in calculus,) the corresponding vector of coefficients of the polynomial's derivative, dP, is:
n = length(P);
dP = (n-1:-1:1).*P(1:n-1);
Más respuestas (1)
Walter Roberson
el 28 de Mzo. de 2018
Multiply each location in the coefficient vector by the degree it corresponds to, and get rid of the location corresponding to degree 0. You can probably build the degree list using the ":" operator.
0 comentarios
Ver también
Categorías
Más información sobre Elementary Math 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!