Polymer Production With Addition Polymerization
Integration of polynomes can be hard with hand in calculus. In some engineering and scientific problems, very complex polynomials can be obtained to solve. In that way, you may need to calculate integral of that polynomial. In Matlab, you can calculate the integrations of polynomials in a very basic way, with ‘polyint()’ command. In this article we will explain the use of ‘polyint()’ command to calculate integrations of polynomials in Matlab, with a very basic example.
First of all, you need to know how to define polynomials in Matlab. To define polynomials, you need to create a vector that represents the polynomial in Matlab. This representation is like that; For example we created a vector ‘a’ which represents the polynomial of 2x^3+5x^2+3x+6. As you understand that the coefficient of each degrees of variable ‘x’ is constitutes vector ‘a’. So you can create a vector that represents your polynomial like this.
To calculate integration of a polynomial, you need to use ‘polyint()’ command. You just need to type your vector that represents your polynomial, just like above example as shown by green box. Polynomial ‘a’ typed inside the polyint() command and it is assigned to variable ‘b’.
The result of integration is shown same logic of representation of polynomials in Matlab. ‘0’ at the end of result ‘b’ represents the integration constant.
If you want to use your own integration constant, you can use polyint() command as shown by green arrow above. You need to type out the constant that you want to see, just beside the vector to be integrated, inside polyint() command in Matlab.
As you see also, we calculated the second integration of ‘a’, which asigned to variable ‘c’ above as shown by green arrow.
Intergation in Matlab with ‘polyint()’ command is very simple like above. Do not forget to leave your comments and questions about ‘polyint()’ command in Matlab below. Your feedback is very important for us.