Next: Functions and Variables for Numbers, Previous: Numbers, Up: Numbers [Contents][Index]

#### 5.1.1 Introduction to Numbers

#### Complex numbers

A complex expression is specified in Maxima by adding the real part of the expression to `%i` times the imaginary part. Thus the roots of the equation `x^2 - 4*x + 13 = 0` are `2 + 3*%i` and `2 - 3*%i`. Note that simplification of products of complex expressions can be effected by expanding the product. Simplification of quotients, roots, and other functions of complex expressions can usually be accomplished by using the `realpart`, `imagpart`, `rectform`, `polarform`, `abs`, `carg` functions.

Categories:Complex variables ·

Next: Functions and Variables for Numbers, Previous: Numbers, Up: Numbers [Contents][Index]