Practical 7: Symbolic Toolbox

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 p \left(x\right)=x^{2}+9x+6

> Now, define x as a symbolic variable and define the polynomial p 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?