Skip to content

Argument ​

Generated from the engine's own definition: compute-engine's symbol, which we neither extend nor document by hand.

Complex argument (phase angle) of a number.

✓ checked against that system · ! checked, with disagreements (hover a chip)FungrimArg✓Fungrim entryWolfram LanguageArg!
Argument(complex | infinity) -> numberAs native, and keeps its digits past a double's for a complex number (N(Argument(e + i pi), 20)).
SageMatharg(complex | infinity)SymPyarg(complex | infinity)mpmatharg(complex | infinity)Juliaenumeratio_ball(angle, complex | infinity)
Typed signatures
TypePackageApplies
(complex | infinity) -> numbercompute-enginealways
(complex | infinity) -> numberevaluationreplaces compute-enginealways

Domain: Compute engine

Plot

ComplexPlot
real slice

Examples

1 more kept as data, checked against the oracles
Basic #

arg⁡(i)=π/2\arg(i) = \pi/2

live ↗
Inarg⁡(i)\arg(i)Outπ2\frac{π}{2}
live ↗
Inarg⁡(1+i)\arg(1+i)Outπ4\frac{π}{4}
live ↗
Inarg⁡(−1)\arg(-1)Outππ
Scope #
live ↗
InN(arg⁡(e+iπ),20)N(\arg(e+i π), 20)Out0.857 511 786 355 846 265 010.857\,511\,786\,355\,846\,265\,01
live ↗
Inarg⁡(−123)\arg(-123)Outππ
live ↗
Inarg⁡(123−456i)\arg(123-456i)Outarctan⁡(−15241)\arctan(-\frac{152}{41})
live ↗
Inarg⁡([[12,−1],[−53,12]])\arg(\bigl\lbrack\bigl\lbrack\frac{1}{2}, -1\bigr\rbrack, \bigl\lbrack-\frac{5}{3}, \frac{1}{2}\bigr\rbrack\bigr\rbrack)Out[[0,π],[π,0]]\bigl\lbrack\bigl\lbrack0, π\bigr\rbrack, \bigl\lbrack π, 0\bigr\rbrack\bigr\rbrack
live ↗
InFullSimplify(MatrixFunction(Argument,[[1/2,−1],[−5/3,1/2]]))\mathrm{FullSimplify}(\mathrm{MatrixFunction}(\mathrm{Argument}, \bigl\lbrack\bigl\lbrack1/2, -1\bigr\rbrack, \bigl\lbrack-5/3, 1/2\bigr\rbrack\bigr\rbrack))Out[[π2,15π10],[15π6,π2]]\bigl\lbrack\bigl\lbrack\frac{π}{2}, \frac{\sqrt{15}π}{10}\bigr\rbrack, \bigl\lbrack\frac{\sqrt{15}π}{6}, \frac{π}{2}\bigr\rbrack\bigr\rbrack
live ↗
Inarg⁡(0)\arg(0)Out00
live ↗
Inarg⁡(∞)\arg(∞)Out00
live ↗
Inarg⁡(−∞)\arg(-∞)Outππ
live ↗
Inarg⁡(∞i)\arg(∞i)OutIndeterminate⁡\operatorname{Indeterminate}
About
Examples13
Checked againstWolfram Language 12 agree1 differSageMath 11 agree1 differSymPy 9 agree1 differ2 unevaluatedmpmath 11 agree1 unevaluatedJulia 9 agree3 error
CrosswalkFungrimFungrim entry ×18Wolfram LanguageSageMathSymPympmathJulia

Implementation

mappedsympypackages/oracle/src/mappings.ts
mappedmpmathpackages/oracle/src/mappings.ts
mappedsagepackages/oracle/src/mappings.ts
mappedjuliapackages/oracle/src/mappings.ts