mirror of
https://github.com/josdejong/mathjs.git
synced 2026-01-25 15:07:57 +00:00
26 lines
554 B
Markdown
26 lines
554 B
Markdown
# Function arg
|
|
|
|
Compute the argument of a complex value. If x = a + bi, the argument is computed as atan2(b, a).
|
|
|
|
arg(x)
|
|
|
|
For matrices, the function is evaluated element wise.
|
|
|
|
|
|
### Parameters
|
|
|
|
Parameter | Type | Description
|
|
--------- | ---- | -----------
|
|
`x` | Number | Complex | Array | Matrix | Boolean |
|
|
|
|
### Returns
|
|
|
|
Type | Description
|
|
---- | -----------
|
|
Number | Array | Matrix | res
|
|
|
|
|
|
|
|
|
|
<!-- Note: This file is automatically generated from source code comments. Changes made in this file will be overridden. -->
|