Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vectorized complex accessors #685

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 6 additions & 7 deletions src/functions-reference/complex-valued_basic_functions.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -98,19 +98,18 @@ component in all elements of the output.
Given a complex number, its real and imaginary parts can be
extracted with the following functions.


<!-- real; get_real; (complex z); -->
<!-- reals; get_real; (complexes z); -->
\index{{\tt \bfseries get\_real }!{\tt (complex z): real}|hyperpage}

`real` **`get_real`**`(complex z)`<br>\newline
Return the real part of the complex number `z`.
`reals` **`get_real`**`(complexes z)`<br>\newline
Return the real part of the complex number `z`. If the input is a scalar complex the output will be a scalar `real`. Otherwise, the output is is a container of `real` values.
`r since("2.28")`

<!-- real; get_imag; (complex z); -->
<!-- reals; get_imag; (complexes z); -->
\index{{\tt \bfseries get\_imag }!{\tt (complex z): real}|hyperpage}

`real` **`get_imag`**`(complex z)`<br>\newline
Return the imaginary part of the complex number `z`.
`reals` **`get_imag`**`(complexes z)`<br>\newline
Return the imaginary part(s) of the complex number(s) `z`. If the input is a scalar complex the output will be a scalar `real`. Otherwise, the output is is a container of `real` values.
`r since("2.28")`

## Complex arithmetic operators {#complex-arithmetic}
Expand Down