Fungrim home page

Fungrim entry: a2af66

atan2 ⁣(y,x)=solutionθ(π,π][(x,y)=(rcos ⁣(θ),rsin ⁣(θ))   where r=x2+y2]\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]
Assumptions:xRandyRand(x0ory0)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)
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
Atan2atan2 ⁣(y,x)\operatorname{atan2}\!\left(y, x\right) Two-argument inverse tangent
Sinsin ⁣(z)\sin\!\left(z\right) Sine
Sqrtz\sqrt{z} Principal square root
Powab{a}^{b} Power
OpenClosedInterval(a,b]\left(a, b\right] Open-closed interval
ConstPiπ\pi The constant pi (3.14...)
RRR\mathbb{R} 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)))))

Topics using this entry

Copyright (C) Fredrik Johansson and contributors. Fungrim is provided under the MIT license. The source code is on GitHub.

2019-06-18 07:49:59.356594 UTC