Assumptions:
TeX:
\operatorname{atan2}\!\left(y, x\right) = \mathop{\operatorname{solution}\,}\limits_{\theta \in \left(-\pi, \pi\right]} \left[\left(x, y\right) = \left(r \cos\!\left(\theta\right), r \sin\!\left(\theta\right)\right)\; \text{ where } r = \sqrt{{x}^{2} + {y}^{2}}\right] x \in \mathbb{R} \,\mathbin{\operatorname{and}}\, y \in \mathbb{R} \,\mathbin{\operatorname{and}}\, \left(x \ne 0 \,\mathbin{\operatorname{or}}\, y \ne 0\right)
Definitions:
Fungrim symbol | Notation | Short description |
---|---|---|
Atan2 | Two-argument inverse tangent | |
Sin | Sine | |
Sqrt | Principal square root | |
Pow | Power | |
OpenClosedInterval | Open-closed interval | |
ConstPi | The constant pi (3.14...) | |
RR | Real numbers |
Source code for this entry:
Entry(ID("a2af66"), Formula(Equal(Atan2(y, x), UniqueSolution(Brackets(Where(Equal(Tuple(x, y), Tuple(Mul(r, Cos(theta)), Mul(r, Sin(theta)))), Equal(r, Sqrt(Add(Pow(x, 2), Pow(y, 2)))))), theta, Element(theta, OpenClosedInterval(Neg(ConstPi), ConstPi))))), Variables(x, y), Assumptions(And(Element(x, RR), Element(y, RR), Or(Unequal(x, 0), Unequal(y, 0)))))