Roots function - polynomials, MATLAB in Statistics

Roots function - Polynomials:

The roots function in MATLAB is used to find the roots of an equation represented by a polynomial. For illustration, for the mathematical function (Note that this is a mathematical expression, not a MATLAB!),

f(x) = 4x3 - 2x2 - 8x + 3

to compute the equation f(x) = 0:

>> roots([4 -2 -8 3])

ans =

   -1.3660

    1.5000

    0.3660

 

 

Posted Date: 10/22/2012 8:41:33 AM | Location : United States







Related Discussions:- Roots function - polynomials, Assignment Help, Ask Question on Roots function - polynomials, Get Answer, Expert's Help, Roots function - polynomials Discussions

Write discussion on Roots function - polynomials
Your posts are moderated
Related Questions
Help function: Function is computing the two values, there are two output arguments in the function header (i.e., area & circum), that are placed in the square brackets [ ]. A

Properties of the text box - graphics objects: By using get will show properties of the text box, the illustration is as shown below: >> get(thand)   BackgroundColor

#qYou will need to examine two of the nine sections of data: one section of qualitative data (choose either Gender or Position) one section of quantitative data (choose either Intr

Tracing: Sometimes, when a program has loops and/or selection statements and is not running properly, it is helpful in the debugging process to know exactly which statements h

Persistent Variables: Generally, whenever a function stops executing, then the local variables from that function are cleared. That means that each and every time a function i

Logical Built-In Functions: There are built-in functions in the MATLAB which are useful in conjunction with vectors or matrices of all logical true or false values; two of the

Run-time or execution-time error: The Run-time, or execution-time, errors are found whenever a script or function is executing. With most of the languages, an illustration of

Nested Structures: The nested structure is a structure in which at least one of the members is itself a structure. For illustration, a structure for the line segment may co

Roots function - Polynomials: The roots function in MATLAB is used to find the roots of an equation represented by a polynomial. For illustration, for the mathematical functio

Illustration of Median When the vector is not in sorted order to start with, the median function will still return the right answer (it will sort the vector automatically). For