angle of a vector
Publié : sam. sept. 27, 2025 4:14 am
Hi, the command ARG() says
Angle of a vector
The arg command finds the angle of a complex number (the argument) or the angle of a vector defined by two points.
arg takes v, a number or a vector defined by two points.
arg(v) returns the argument of v if v is a complex number or the angle between the positive x direction and v if v is a vector.
Example
arg(1+i) -> pi/4
How do you get the angle of a vector?
I wish to obtain
arg([3,4]) -> atan(4/3)
Angle of a vector
The arg command finds the angle of a complex number (the argument) or the angle of a vector defined by two points.
arg takes v, a number or a vector defined by two points.
arg(v) returns the argument of v if v is a complex number or the angle between the positive x direction and v if v is a vector.
Example
arg(1+i) -> pi/4
How do you get the angle of a vector?
I wish to obtain
arg([3,4]) -> atan(4/3)