|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
http://functions.wolfram.com/04.06.16.0003.01
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Mod[m, -n] == Mod[m, n] - I n (1 - CharacteristicFunction[Im[m/n], Integers])
Sign[Abs[Im[m/n]]] - n (1 - CharacteristicFunction[Re[m/n], Integers])
Sign[Abs[Re[m/n]]]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Cell[BoxData[RowBox[List[RowBox[List["Mod", "[", RowBox[List["m", ",", RowBox[List["-", "n"]]]], "]"]], "\[Equal]", RowBox[List[RowBox[List["Mod", "[", RowBox[List["m", ",", "n"]], "]"]], "-", RowBox[List["\[ImaginaryI]", " ", "n", " ", RowBox[List["(", RowBox[List["1", "-", RowBox[List["CharacteristicFunction", "[", RowBox[List[RowBox[List["Im", "[", FractionBox["m", "n"], "]"]], ",", "Integers"]], "]"]]]], ")"]], RowBox[List["Sign", "[", RowBox[List["Abs", "[", RowBox[List["Im", "[", FractionBox["m", "n"], "]"]], "]"]], "]"]]]], "-", RowBox[List["n", " ", RowBox[List["(", RowBox[List["1", "-", RowBox[List["CharacteristicFunction", "[", RowBox[List[RowBox[List["Re", "[", FractionBox["m", "n"], "]"]], ",", "Integers"]], "]"]]]], ")"]], RowBox[List["Sign", "[", RowBox[List["Abs", "[", RowBox[List["Re", "[", FractionBox["m", "n"], "]"]], "]"]], "]"]]]]]]]]]]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<math xmlns='http://www.w3.org/1998/Math/MathML' mathematica:form='TraditionalForm' xmlns:mathematica='http://www.wolfram.com/XML/'> <semantics> <mrow> <semantics> <mrow> <mi> m </mi> <mo> ⁢ </mo> <mi> mod </mi> <mo> ⁢ </mo> <mrow> <mo> - </mo> <mi> n </mi> </mrow> </mrow> <annotation-xml encoding='MathML-Content'> <apply> <rem /> <ci> $CellContext`m </ci> <apply> <times /> <cn type='integer'> -1 </cn> <ci> $CellContext`n </ci> </apply> </apply> </annotation-xml> </semantics> <mo> ⩵ </mo> <mrow> <semantics> <mrow> <mi> m </mi> <mo> ⁢ </mo> <mi> mod </mi> <mo> ⁢ </mo> <mi> n </mi> </mrow> <annotation-xml encoding='MathML-Content'> <apply> <rem /> <ci> $CellContext`m </ci> <ci> $CellContext`n </ci> </apply> </annotation-xml> </semantics> <mo> - </mo> <mrow> <mi> n </mi> <mo> ⁢ </mo> <mrow> <mo> ( </mo> <mrow> <mn> 1 </mn> <mo> - </mo> <mrow> <msub> <mi> χ </mi> <mi> ℤ </mi> </msub> <mo> ( </mo> <mrow> <mi> Re </mi> <mo> ⁡ </mo> <mo> ( </mo> <mfrac> <mi> m </mi> <mi> n </mi> </mfrac> <mo> ) </mo> </mrow> <mo> ) </mo> </mrow> </mrow> <mo> ) </mo> </mrow> <mo> ⁢ </mo> <mrow> <mi> sgn </mi> <mo> ⁡ </mo> <mo> ( </mo> <mrow> <semantics> <mo> ❘ </mo> <annotation encoding='Mathematica'> "\[LeftBracketingBar]" </annotation> </semantics> <mrow> <mi> Re </mi> <mo> ⁡ </mo> <mo> ( </mo> <mfrac> <mi> m </mi> <mi> n </mi> </mfrac> <mo> ) </mo> </mrow> <semantics> <mo> ❘ </mo> <annotation encoding='Mathematica'> "\[RightBracketingBar]" </annotation> </semantics> </mrow> <mo> ) </mo> </mrow> </mrow> <mo> - </mo> <mrow> <mi> ⅈ </mi> <mo> ⁢ </mo> <mi> n </mi> <mo> ⁢ </mo> <mrow> <mo> ( </mo> <mrow> <mn> 1 </mn> <mo> - </mo> <mrow> <msub> <mi> χ </mi> <mi> ℤ </mi> </msub> <mo> ( </mo> <mrow> <mi> Im </mi> <mo> ⁡ </mo> <mo> ( </mo> <mfrac> <mi> m </mi> <mi> n </mi> </mfrac> <mo> ) </mo> </mrow> <mo> ) </mo> </mrow> </mrow> <mo> ) </mo> </mrow> <mo> ⁢ </mo> <mrow> <mi> sgn </mi> <mo> ⁡ </mo> <mo> ( </mo> <mrow> <semantics> <mo> ❘ </mo> <annotation encoding='Mathematica'> "\[LeftBracketingBar]" </annotation> </semantics> <mrow> <mi> Im </mi> <mo> ⁡ </mo> <mo> ( </mo> <mfrac> <mi> m </mi> <mi> n </mi> </mfrac> <mo> ) </mo> </mrow> <semantics> <mo> ❘ </mo> <annotation encoding='Mathematica'> "\[RightBracketingBar]" </annotation> </semantics> </mrow> <mo> ) </mo> </mrow> </mrow> </mrow> </mrow> <annotation-xml encoding='MathML-Content'> <apply> <eq /> <apply> <rem /> <ci> $CellContext`m </ci> <apply> <times /> <cn type='integer'> -1 </cn> <ci> $CellContext`n </ci> </apply> </apply> <apply> <plus /> <apply> <rem /> <ci> $CellContext`m </ci> <ci> $CellContext`n </ci> </apply> <apply> <times /> <cn type='integer'> -1 </cn> <apply> <times /> <ci> n </ci> <apply> <plus /> <cn type='integer'> 1 </cn> <apply> <times /> <cn type='integer'> -1 </cn> <apply> <apply> <ci> Subscript </ci> <ci> χ </ci> <ci> ℤ </ci> </apply> <apply> <real /> <apply> <times /> <ci> m </ci> <apply> <power /> <ci> n </ci> <cn type='integer'> -1 </cn> </apply> </apply> </apply> </apply> </apply> </apply> <apply> <ci> Sign </ci> <apply> <abs /> <apply> <real /> <apply> <times /> <ci> m </ci> <apply> <power /> <ci> n </ci> <cn type='integer'> -1 </cn> </apply> </apply> </apply> </apply> </apply> </apply> </apply> <apply> <times /> <cn type='integer'> -1 </cn> <apply> <times /> <imaginaryi /> <ci> n </ci> <apply> <plus /> <cn type='integer'> 1 </cn> <apply> <times /> <cn type='integer'> -1 </cn> <apply> <apply> <ci> Subscript </ci> <ci> χ </ci> <ci> ℤ </ci> </apply> <apply> <imaginary /> <apply> <times /> <ci> m </ci> <apply> <power /> <ci> n </ci> <cn type='integer'> -1 </cn> </apply> </apply> </apply> </apply> </apply> </apply> <apply> <ci> Sign </ci> <apply> <abs /> <apply> <imaginary /> <apply> <times /> <ci> m </ci> <apply> <power /> <ci> n </ci> <cn type='integer'> -1 </cn> </apply> </apply> </apply> </apply> </apply> </apply> </apply> </apply> </apply> </annotation-xml> </semantics> </math>
|
|
|
|
|
|
|
|
|
|
| |
|
|
|
|
| Cell[BoxData[RowBox[List[RowBox[List["HoldPattern", "[", RowBox[List["Mod", "[", RowBox[List["m_", ",", RowBox[List["-", "n_"]]]], "]"]], "]"]], "\[RuleDelayed]", RowBox[List[RowBox[List["Mod", "[", RowBox[List["m", ",", "n"]], "]"]], "-", RowBox[List["\[ImaginaryI]", " ", "n", " ", RowBox[List["(", RowBox[List["1", "-", RowBox[List["CharacteristicFunction", "[", RowBox[List[RowBox[List["Im", "[", FractionBox["m", "n"], "]"]], ",", "Integers"]], "]"]]]], ")"]], " ", RowBox[List["Sign", "[", RowBox[List["Abs", "[", RowBox[List["Im", "[", FractionBox["m", "n"], "]"]], "]"]], "]"]]]], "-", RowBox[List["n", " ", RowBox[List["(", RowBox[List["1", "-", RowBox[List["CharacteristicFunction", "[", RowBox[List[RowBox[List["Re", "[", FractionBox["m", "n"], "]"]], ",", "Integers"]], "]"]]]], ")"]], " ", RowBox[List["Sign", "[", RowBox[List["Abs", "[", RowBox[List["Re", "[", FractionBox["m", "n"], "]"]], "]"]], "]"]]]]]]]]]] |
|
|
|
|
|
|
|
|
|
|
Date Added to functions.wolfram.com (modification date)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|