<< %f or %F Constants %inf >>

Scilab Help >> Scilab > Variables > Constants > %i, 1i, 1j

%i, 1i, 1j

imaginary unit

Syntax

%i
1i
1j

Description

%i is imaginary unit, used to enter complex number.

Complex numbers can also be entered using the simplified syntax 1i (equivalent to 1*%i) or 2j (equivalent to 2*%i).

Example

1 + %i == complex(1, 1)
2 + 3 * %i == complex(2, 3)

1 + 1i == complex(1, 1)
2 + 3j == complex(2, 3)

1 + 1.23i == complex(1, 1.23)
1 + 3.46i == complex(1, 3.46)

See also

History

VersionDescription
2025.0.0 New simplified syntax introduced to enter complex numbers: 1i, 1j

Report an issue
<< %f or %F Constants %inf >>