MathGroup Archive 2005

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

Search the Archive

Re: Complex numbers in Mathematica


In the regular Mathematica, version 5.2 (NOT the Teacher's Edition), I get:

   Factor[(5 - 3I) + (-4 + I)x + (1 - I)x^2]
((1 + I) - I*x)*((1 - 4*I) + (1 + I)*x)

(output shown in InputFormat above).

Per Rønne wrote:
> If I write:
> 
> In[8]=Factor[(5 - 3I) + (-4 + I)x + (1 - I)x^2]
> 
> I get
> Nonreal::"warning": "Nonreal number encountered."
> Out[8]= Nonreal
> 
> The same with Sqrt[-1].
> 
> Why doesn't it show the complex numbers? According to the books it
> should - is it a matter of preferences set?
> 
> I'm using Mathematica Teacher's Edition 1.1 on MacOS X.

-- 
Murray Eisenberg                     murray at math.umass.edu
Mathematics & Statistics Dept.
Lederle Graduate Research Tower      phone 413 549-1020 (H)
University of Massachusetts                413 545-2859 (W)
710 North Pleasant Street            fax   413 545-1801
Amherst, MA 01003-9305


  • Prev by Date: Re: Complex numbers in Mathematica
  • Next by Date: Re: Timing for a cell
  • Previous by thread: Re: Complex numbers in Mathematica
  • Next by thread: Re: Complex numbers in Mathematica