Derivative Calculation Of Polynomials In MatLab(Illustrated Expression)
We explained the derivative calculations of polynomials and the division of polynomials in Matlab®. In this article, we explain the calculation of derivatives of divided polynomials in Matlab® with the ‘polyder()’ command with a very basic example below.
>> a = [4 6 5 8 9 3]; b = [3 5 0 3 5]; [numerator, denominator] = polyder(a,b) numerator = Columns 1 through 8 12 40 15 0 33 24 54 80 Column 9 36 denominator = Columns 1 through 8 9 30 25 18 60 50 9 30 Column 9 25 >>
To calculate the derivatives of division result and remainder in Matlab® has very basic logic. But you need to understand how to define polynomials in Matlab® to do this stuff. For example, polynomials are defined with vectors ‘a’ and ‘b’ as shown above. For instance vector ‘a’ stands for the polynomial of 4x^5+6x^4+5x^3+8x^2+9x+3. So, each element of a vector stands for coefficients respectively starting from the left in Matlab®.
YOU CAN LEARN MatLab® IN MECHANICAL BASE; Click And Start To Learn MatLab®!
So we need to see two results from the derivative calculation of the division of polynomials. So we assigned two variables named ‘numerator’ and ‘denominator to polyder() command in Matlab® as above. You can give other names to these variables. And inside the polyder(), we typed the vectors of ‘a’ and ‘b’ to calculate the division of polynomial ‘a’ with polynomial ‘b’. The results are given as shown above.
Use of the ‘polyder()’ command to calculate derivatives of numerator and denominator of the division of polynomials is very easy like above in Matlab®.
Do not forget to leave your comments and questions about calculating derivatives of the numerator and denominator of the division of polynomials with the ‘polyder()’ command in Matlab® below!
This article is prepared for completely educative and informative purposes. Images used courtesy of Matlab®
Your precious feedbacks are very important to us.