Practical 7

Numbers

Let’s use the following example to illustrate the difference between symbolic and standard numbers representation.

> Exercise: Numbers

> Use the polynomial roots command to find the roots of the polynomial

> Now, define as a symbolic variable and define the polynomial in MATLAB as follows:

p = x^2+9*x+6

> Use the solve(p) command to find the roots using the Symbolic Toolbox.

> What is the difference between the answers for the standard and symbolic methods?