Fungrim home page

Fungrim entry: a5ef5f

(a=b)        ((u,v)=(0,sgn(b)))   where (d,u,v)=xgcd ⁣(a,b)\left(\left|a\right| = \left|b\right|\right) \;\implies\; \left(\left(u, v\right) = \left(0, \operatorname{sgn}(b)\right)\right)\; \text{ where } \left(d, u, v\right) = \operatorname{xgcd}\!\left(a, b\right)
Assumptions:aZ{0}  and  bZ{0}a \in \mathbb{Z} \setminus \left\{0\right\} \;\mathbin{\operatorname{and}}\; b \in \mathbb{Z} \setminus \left\{0\right\}
TeX:
\left(\left|a\right| = \left|b\right|\right) \;\implies\; \left(\left(u, v\right) = \left(0, \operatorname{sgn}(b)\right)\right)\; \text{ where } \left(d, u, v\right) = \operatorname{xgcd}\!\left(a, b\right)

a \in \mathbb{Z} \setminus \left\{0\right\} \;\mathbin{\operatorname{and}}\; b \in \mathbb{Z} \setminus \left\{0\right\}
Definitions:
Fungrim symbol Notation Short description
Absz\left|z\right| Absolute value
Signsgn(z)\operatorname{sgn}(z) Sign function
XGCDxgcd ⁣(a,b)\operatorname{xgcd}\!\left(a, b\right) Extended greatest common divisor
ZZZ\mathbb{Z} Integers
Source code for this entry:
Entry(ID("a5ef5f"),
    Formula(Where(Implies(Equal(Abs(a), Abs(b)), Equal(Tuple(u, v), Tuple(0, Sign(b)))), Equal(Tuple(d, u, v), XGCD(a, b)))),
    Variables(a, b),
    Assumptions(And(Element(a, SetMinus(ZZ, Set(0))), Element(b, SetMinus(ZZ, Set(0))))))

Topics using this entry

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

2021-03-15 19:12:00.328586 UTC