New

Complex.New($x$,$y$) returns a complex number $z = x + \mathrm{i}\,y$.

Example

The following example creates the complex number $z=3+2\mathrm{i}$.

Input

Example.Quanty
-- Complex.New(x,y)
z = Complex.New(3,2)
print(z)

Result

(3 + 2 I)

List of all functions in complex

Print/export