How Do I
Enter a Complex Number?
In Maple, the default representation of the imaginary unit −1 is I. Thus, 1+2 I is a complex number in Maple. The example below demonstrates two ways to enter a complex number in Maple.
Maple provides a way to customize the manner in which complex numbers are displayed. For instance, you may want to use i or j as the imaginary unit instead of I.
Example: Multiply Two Complex Numbers
Using a Different Symbol for the Imaginary Unit
Related Topics
Maple uses I for the constant −1. Multiply 1+2 I by 3+4 I and display the result inline.
Step
Description
Illustration
1
Type 1+2 I. Put a space between 2 and I to signify multiplication. (Alternatively, use * for multiplication.)
2
Enter * and then type 3+4 I.
3
Press Ctrl + = to evaluate the expression inline.
Note that the multiplication symbol is needed between the two expressions in parentheses.
1+2 I⋅3+4 I = −5+10⁢I
Using the Palette
You can also enter complex numbers using the Common Symbols palette. From the palette, the symbols ⅈ, ȷ, and I can all be used to enter a complex number.
Note that simply typing i will not produce the imaginary unit, but typing I will.
When you type the letter i or j in Maple, it is understood as the name `i` or `j`. Only I is an initially known constant. This means:
You can use i or j as variables. For instance, as the index in expressions such as seqi2,i=1..5 = 1,4,9,16,25.
Typing I results in the imaginary constant. Thus, I2 = −1.
From the Common Symbols palette: ⅈ, ȷ, and I all mean the imaginary constant.
Results are displayed using I for the constant −1. For example, x2+1=0→solvex=I,x=−I.
You can customize the setting that specifies which symbol represents the imaginary unit. This will enable you to simply type this symbol to get −1. Furthermore, ordinarily in output the imaginary unit is displayed with a capital I, no matter which symbol was used for input. By changing this setting, you change the output display.
To change the symbol used for the imaginary unit, (both for input and output), use the interface command. The calling sequence is interface(imaginaryunit=symbol);
Here, we set j to be the symbol for the imaginary unit.
Thereafter, clicking on ⅈ, ȷ, or I in the Common Symbols palette, or typing the letter j,will produce the imaginary unit, and its symbol as displayed in any output will be ȷ.
From the palette:
By typing:
In computations:
The How Do I... topics cover the essentials for doing mathematics in Maple. Learn more about available tools and features, such as palettes and the context panel.
How Do I...
...Enter a Function?
...Enter a Matrix?
...Enter a Simple Expression?
...Evaluate an Expression?
...Import Tabular Data?
...Plot a Function?
...Plot a Straight Line?
...Plot Multiple Functions?
...Solve an Ordinary Differential Equation?
...Work with Random Generators?
Tools and Features
Palettes
Context Panel
Command Completion
Equation Labels
Assistants
Maple Help
Plotting Guide
Applications
Example Worksheets
Manuals
Refer to Help>Quick Reference for basic Getting Started tips.
See Also
MaplePortal
I
palettes
Note for non-Windows users: The keystrokes given in this document are for Windows. There will be differences for other platforms. If you are using a different platform, see Shortcut Keys.
Download Help Document