|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
http://functions.wolfram.com/04.07.27.0003.01
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Quotient[m, n] == Round[m/n - (1 + I)/2] +
I CharacteristicFunction[(1/2) (1 + Im[m/n]), Integers] +
CharacteristicFunction[(1/2) (1 + Re[m/n]), Integers]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Cell[BoxData[RowBox[List[RowBox[List["Quotient", "[", RowBox[List["m", ",", "n"]], "]"]], "\[Equal]", RowBox[List[RowBox[List["Round", "[", RowBox[List[FractionBox["m", "n"], "-", FractionBox[RowBox[List["1", "+", "\[ImaginaryI]"]], RowBox[List[" ", "2"]]]]], "]"]], "+", RowBox[List["\[ImaginaryI]", " ", RowBox[List["CharacteristicFunction", "[", RowBox[List[RowBox[List[FractionBox["1", RowBox[List[" ", "2"]]], " ", RowBox[List["(", RowBox[List["1", "+", RowBox[List["Im", "[", FractionBox["m", "n"], "]"]]]], ")"]]]], ",", "Integers"]], "]"]]]], "+", RowBox[List["CharacteristicFunction", "[", RowBox[List[RowBox[List[FractionBox["1", RowBox[List[" ", "2"]]], " ", RowBox[List["(", RowBox[List["1", "+", RowBox[List["Re", "[", FractionBox["m", "n"], "]"]]]], ")"]]]], ",", "Integers"]], "]"]]]]]]]]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<math xmlns='http://www.w3.org/1998/Math/MathML' mathematica:form='TraditionalForm' xmlns:mathematica='http://www.wolfram.com/XML/'> <semantics> <mrow> <mrow> <mi> quotient </mi> <mo> ⁡ </mo> <mo> ( </mo> <mrow> <mi> m </mi> <mo> , </mo> <mi> n </mi> </mrow> <mo> ) </mo> </mrow> <mo> ⩵ </mo> <mrow> <mrow> <mo> ⌊ </mo> <mrow> <mfrac> <mi> m </mi> <mi> n </mi> </mfrac> <mo> - </mo> <mfrac> <mrow> <mn> 1 </mn> <mo> + </mo> <mi> ⅈ </mi> </mrow> <mn> 2 </mn> </mfrac> </mrow> <mo> ⌉ </mo> </mrow> <mo> + </mo> <mrow> <msub> <mi> χ </mi> <mi> ℤ </mi> </msub> <mo> ( </mo> <mrow> <mfrac> <mn> 1 </mn> <mn> 2 </mn> </mfrac> <mo> ⁢ </mo> <mrow> <mo> ( </mo> <mrow> <mrow> <mi> Re </mi> <mo> ⁡ </mo> <mo> ( </mo> <mfrac> <mi> m </mi> <mi> n </mi> </mfrac> <mo> ) </mo> </mrow> <mo> + </mo> <mn> 1 </mn> </mrow> <mo> ) </mo> </mrow> </mrow> <mo> ) </mo> </mrow> <mo> + </mo> <mrow> <mi> ⅈ </mi> <mo> ⁢ </mo> <mrow> <msub> <mi> χ </mi> <mi> ℤ </mi> </msub> <mo> ( </mo> <mrow> <mfrac> <mn> 1 </mn> <mn> 2 </mn> </mfrac> <mo> ⁢ </mo> <mrow> <mo> ( </mo> <mrow> <mrow> <mi> Im </mi> <mo> ⁡ </mo> <mo> ( </mo> <mfrac> <mi> m </mi> <mi> n </mi> </mfrac> <mo> ) </mo> </mrow> <mo> + </mo> <mn> 1 </mn> </mrow> <mo> ) </mo> </mrow> </mrow> <mo> ) </mo> </mrow> </mrow> </mrow> </mrow> <annotation-xml encoding='MathML-Content'> <mrow> <mrow> <mi> quotient </mi> <mo> ⁡ </mo> <mo> ( </mo> <mrow> <mi> m </mi> <mo> , </mo> <mi> n </mi> </mrow> <mo> ) </mo> </mrow> <mo> ⩵ </mo> <mrow> <mrow> <mo> ⌊ </mo> <mrow> <mfrac> <mi> m </mi> <mi> n </mi> </mfrac> <mo> - </mo> <mfrac> <mrow> <mn> 1 </mn> <mo> + </mo> <mi> ⅈ </mi> </mrow> <mn> 2 </mn> </mfrac> </mrow> <mo> ⌉ </mo> </mrow> <mo> + </mo> <mrow> <msub> <mi> χ </mi> <mi> ℤ </mi> </msub> <mo> ( </mo> <mrow> <mfrac> <mn> 1 </mn> <mn> 2 </mn> </mfrac> <mo> ⁢ </mo> <mrow> <mo> ( </mo> <mrow> <mrow> <mi> Re </mi> <mo> ⁡ </mo> <mo> ( </mo> <mfrac> <mi> m </mi> <mi> n </mi> </mfrac> <mo> ) </mo> </mrow> <mo> + </mo> <mn> 1 </mn> </mrow> <mo> ) </mo> </mrow> </mrow> <mo> ) </mo> </mrow> <mo> + </mo> <mrow> <mi> ⅈ </mi> <mo> ⁢ </mo> <mrow> <msub> <mi> χ </mi> <mi> ℤ </mi> </msub> <mo> ( </mo> <mrow> <mfrac> <mn> 1 </mn> <mn> 2 </mn> </mfrac> <mo> ⁢ </mo> <mrow> <mo> ( </mo> <mrow> <mrow> <mi> Im </mi> <mo> ⁡ </mo> <mo> ( </mo> <mfrac> <mi> m </mi> <mi> n </mi> </mfrac> <mo> ) </mo> </mrow> <mo> + </mo> <mn> 1 </mn> </mrow> <mo> ) </mo> </mrow> </mrow> <mo> ) </mo> </mrow> </mrow> </mrow> </mrow> </annotation-xml> </semantics> </math>
|
|
|
|
|
|
|
|
|
|
| |
|
|
|
|
| Cell[BoxData[RowBox[List[RowBox[List["HoldPattern", "[", RowBox[List["Quotient", "[", RowBox[List["m_", ",", "n_"]], "]"]], "]"]], "\[RuleDelayed]", RowBox[List[RowBox[List["Round", "[", RowBox[List[FractionBox["m", "n"], "-", FractionBox[RowBox[List["1", "+", "\[ImaginaryI]"]], "2"]]], "]"]], "+", RowBox[List["\[ImaginaryI]", " ", RowBox[List["CharacteristicFunction", "[", RowBox[List[RowBox[List[FractionBox["1", "2"], " ", RowBox[List["(", RowBox[List["1", "+", RowBox[List["Im", "[", FractionBox["m", "n"], "]"]]]], ")"]]]], ",", "Integers"]], "]"]]]], "+", RowBox[List["CharacteristicFunction", "[", RowBox[List[RowBox[List[FractionBox["1", "2"], " ", RowBox[List["(", RowBox[List["1", "+", RowBox[List["Re", "[", FractionBox["m", "n"], "]"]]]], ")"]]]], ",", "Integers"]], "]"]]]]]]]] |
|
|
|
|
|
|
|
|
|
|
Date Added to functions.wolfram.com (modification date)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|