Skip to content

Arctan2 ​

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

Two-argument arctangent giving the angle of a vector.

✓ checked against that system · ! checked, with disagreements (hover a chip)WikipediaAtan2WikidataQ776598FungrimAtan2✓Fungrim entry
Arctan2(y: real | signed_infinity, x: real | signed_infinity) -> realas compute-engine declares it
SageMathatan2(y: real | signed_infinity, x: real | signed_infinity)mpmathatan2(y: real | signed_infinity, x: real | signed_infinity)Juliaenumeratio_atan2(y: real | signed_infinity, x: real | signed_infinity)Rustatan2(y: real | signed_infinity, x: real | signed_infinity)
Typed signatures
TypePackageApplies
(y: real | signed_infinity, x: real | signed_infinity) -> realcompute-enginealways

Domain: Compute engine

Plot

Examples

Basic #

The angle of the point (1,1)(1, 1)

live ↗
Inarctan⁡(1,1)\arctan(1, 1)Outπ4\frac{π}{4}

The negative real axis is at angle π\pi

live ↗
Inarctan⁡(0,−1)\arctan(0, -1)Outππ
About
Examples2
Checked againstWolfram Language 2 agreeSageMath 2 agreempmath 2 agreeJulia 2 agreeRust 2 agree
CrosswalkWikipediaWikidataFungrimFungrim entry ×9SageMathmpmathJuliaRust

Implementation

mappedwolframpackages/oracle/src/mappings.ts
mappedmpmathpackages/oracle/src/mappings.ts
mappedsagepackages/oracle/src/mappings.ts
mappedjuliapackages/oracle/src/mappings.ts
mappedrustpackages/oracle/src/mappings.ts