In:= (1 + I)* (1 - 3 I) <===== upper case
Out= 4 - 2 i <======= lower case
With upper case I in In, it works, but uses the lower case i in Out.
In:= (1 + i)*(1 - 3 i) <==== lower case
Out= (1 - 3 i) (1 + i) <===== not multiply?
With lower case i in IN, it doesn't Works.
It seems inconsistent (or not?)
thanks in advance.
If you look closely at your Out you will see that the lower case i you refer to is different than the usual lower case i. It is Mathematicas output for I. (When the code is pasted in here as a code block, it comes through as I.)
IN with no space between I and N is a symbol. With a space in between, it is I multiplied by N. With 3I or 3N, Mathematica understands it as multiplication, since symbol names cannot begin with a number.
The multiplication example you give can be expanded if you want to see the multiplication carried out. But note that lower case i is not the imaginary unit.
Also note that * is not needed to express multiplication. It is also best to begin all symbol names with lower case, since Mathematica uses upper case for reserved words. For example, N is a built in function for evaluating an argument to a numerical value
In:= (1 + I) (1 - 3 I)
Out= 4 - 2 I
In:= I N
Out= I N
In:= (1 + i) (1 - 3 i)
Out= (1 - 3 i) (1 + i)
In:= Expand[(1 + i) (1 - 3 i)]
Out= 1 - 2 i - 3 i^2
Thanks to everyone for their answers. I understand, however, why if I write (1+ii) (3-ii) Mathematica replies 4 + 2i (only i)? Only when I change the output Font size appears 4 + 2ii.
Should not keep Mathematica the input format (if input I output I, if input ii output ii,...)?
Note: ii = Esc ii Esc
It does not display as just i. It is displaying as the esc-ii-esc but the resolution of your screen is blurring the character so you think it is just an i.
Use the magnification popup on the lower right hand side of the notebook to increase the magnification to see this.
Read this to understand this better:
The Out statement uses a special, somewhat italicized, lower case i that you can find in the Basic Math Assistant palette.
The same is true for lower case e.
Lower case i is just the symbol i. Often used as a summation index. Imaginary unit is written capitol I.