complex
complex(r, [i])
Convert real numbers or arrays to complex. i
defaults to zero.
Examples
julia> complex(1)
1 + 0im
julia> complex(1, 1)
1 + 1im
julia> complex([1,2,3], [3,2,1])
3-element Array{Complex{Int64},1}:
1+3im
2+2im
3+1im
See Also
base, big, bytes2hex, cconvert, complex, convert, dec, hex, hex2bytes, hex2num, oct, oftype, parse, promote, signed, unsafe_convert, unsigned, widen,User Contributed Notes
Add a Note
The format of note supported is markdown, use triple backtick to start and end a code block.