Assumptions:
TeX:
\operatorname{atan2}\!\left(y, x\right) = \begin{cases} 0, & x = y = 0\\\operatorname{atan}\!\left(\frac{y}{x}\right), & x > 0\\\left(\frac{\pi}{2}\right) \operatorname{sgn}(y) - \operatorname{atan}\!\left(\frac{x}{y}\right), & y \ne 0\\\pi, & y = 0 \;\mathbin{\operatorname{and}}\; x < 0\\ \end{cases} x \in \mathbb{R} \;\mathbin{\operatorname{and}}\; y \in \mathbb{R}
Definitions:
Fungrim symbol | Notation | Short description |
---|---|---|
Atan2 | Two-argument inverse tangent | |
Atan | Inverse tangent | |
Pi | The constant pi (3.14...) | |
Sign | Sign function | |
RR | Real numbers |
Source code for this entry:
Entry(ID("22fb4a"), Formula(Equal(Atan2(y, x), Cases(Tuple(0, Equal(x, y, 0)), Tuple(Atan(Div(y, x)), Greater(x, 0)), Tuple(Sub(Mul(Parentheses(Div(Pi, 2)), Sign(y)), Atan(Div(x, y))), NotEqual(y, 0)), Tuple(Pi, And(Equal(y, 0), Less(x, 0)))))), Variables(x, y), Assumptions(And(Element(x, RR), Element(y, RR))))