Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: Finding the roots (zeros) of an equation with stata


From   Tirthankar Chakravarty <[email protected]>
To   [email protected]
Subject   Re: st: Finding the roots (zeros) of an equation with stata
Date   Tue, 9 Jun 2009 17:03:19 +0100

/* begin */
clear*
mata
polyroots((-5, 0, 2, 1))
end
/* end */

T

On Tue, Jun 9, 2009 at 4:46 PM, Nathan Danneman<[email protected]> wrote:
> Hi all,
>
> I would like to find the roots of complex univariate expressions, such
> as y=x^3+2x^2-5.
> By roots, I mean zeros.  As in the "root" of 2x+4 is -2 (the place
> where the graph of the line crosses the x-axis).
>
> Are there commands for this?
>
> Thanks,
> N
>
> --
> "Imagination is more important than knowledge..."
>      -- Albert Einstein
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/statalist/faq
> *   http://www.ats.ucla.edu/stat/stata/
>



-- 
To every ω-consistent recursive class κ of formulae there correspond
recursive class signs r, such that neither v Gen r nor Neg(v Gen r)
belongs to Flg(κ) (where v is the free variable of r).

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index