MathGroup Archive 2002

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: how do i solve this polynom?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg37646] Re: [mg37609] how do i solve this polynom?
  • From: Vladimir Bondarenko <vvb at mail.strace.net>
  • Date: Thu, 7 Nov 2002 06:42:11 -0500 (EST)
  • References: <200211061154.GAA22853@smc.vnet.net>
  • Reply-to: Vladimir Bondarenko <vvb at mail.strace.net>
  • Sender: owner-wri-mathgroup at wolfram.com

"Boris" <kyboris at bezeqint.net> wrote on Wednesday, November 06, 2002, 7:54:28 AM

B> how do i solve this polynom?

B> 2x^3+6x^2+5x+2=0?

B> anyone can help?


If you want to find the roots, call Solve and remember to use '==' and not '=' .

For example,

  In[1] := Solve[2x^3 + 6x^2 + 5x + 2 == 0, x]//InputForm

  Out[1] = {{x -> -2}, {x -> -1/2 - I/2}, {x -> -1/2 + I/2}}


(* To get to a specific root, you may wish to use something like *)


  In[2] := Solve[2x^3 + 6x^2 + 5x + 2 == 0, x][[1, 1, 2]]

  Out[2] = -2

(* To see the numeric values, calculate *)

  In[3] := N[Solve[2x^3 + 6x^2 + 5x + 2 == 0, x]]

  Out[3] = {{x -> -2.}, {x -> -0.5 - 0.5 I}, {x -> -0.5 + 0.5 I}}

(* or apply NSolve *)
  
  In[4] := NSolve[2x^3 + 6x^2 + 5x + 2 == 0, x]

  Out[4] = {{x -> -2.}, {x -> -0.5 - 0.5 I}, {x -> -0.5 + 0.5 I}}


There is a nice detailed discussion of the topic at

Help -> Help Browser -> Built-in Functions -> Algebratc Computation ->
Equation Solving -> Solve

Or better, instead of clicking through the Help Browser wasting your
time, you can simply set the cursor at Solve or NSolve and hit tha F1
key to reach the help on Solve/NSolve and enjoy reading ;-)


Best wishes,

Vladimir Bondarenko
Mathematical and Production Director
Symbolic Testing Group
Email:  vvb at mail.strace.net

Web  :  http://www.CAS-testing.org/ (under development, 95% ready)
        http://maple.bug-list.org/  (under development, 20% ready)

Voice:  (380)-652-447325 Mon-Fri 6 a.m. - 3 p.m. GMT
ICQ  :  173050619
Mail :  76 Zalesskaya Str, Simferopol, Crimea, Ukraine




  • Prev by Date: Kalman Filter &Smoother, Subspace Identification
  • Next by Date: Re: Tensors in Mathematica
  • Previous by thread: how do i solve this polynom?
  • Next by thread: Re: how do i solve this polynom?