Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
2025.0.0 - Português


%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

  • complex — Build an array of complex numbers from their parts
  • imult — multiplicação pela parte imaginária i

History

VersãoDescrição
2025.0.0 New simplified syntax introduced to enter complex numbers: 1i, 1j
Report an issue
<< %f or %F Constants %inf >>

Copyright (c) 2022-2024 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Thu Oct 24 11:16:49 CEST 2024