Mathematica 9 is now available
 Documentation / Mathematica / The Mathematica Book / Practical Introduction / Numerical Calculations  /

1.1.5 Complex Numbers




You can enter complex numbers in Mathematica just by including the constant I, equal to . Make sure that you type a capital I


.




  • This gives the imaginary number result 


    .
  • In[1]:= Sqrt[-4]

    Out[1]=

  • This gives the ratio of two complex numbers.
  • In[2]:= (4 + 3 I) / (2 - I)

    Out[2]=

  • Here is the numerical value of a complex exponential.
  • In[3]:= Exp[2 + 9 I] //N

    Out[3]=


    Complex number operations.



    Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information
    THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
    SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.