|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
http://functions.wolfram.com/04.06.19.0002.01
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Im[Mod[m, n]] ==
Im[m] - Floor[(Im[m] Im[n] + Re[m] Re[n])/(Im[n]^2 + Re[n]^2)] Im[n] -
Floor[((-Im[n]) Re[m] + Im[m] Re[n])/(Im[n]^2 + Re[n]^2)] Re[n]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Cell[BoxData[RowBox[List[RowBox[List["Im", "[", RowBox[List["Mod", "[", RowBox[List["m", ",", "n"]], "]"]], "]"]], "\[Equal]", RowBox[List[RowBox[List["Im", "[", "m", "]"]], "-", RowBox[List[RowBox[List["Floor", "[", FractionBox[RowBox[List[RowBox[List[RowBox[List["Im", "[", "m", "]"]], " ", RowBox[List["Im", "[", "n", "]"]]]], "+", RowBox[List[RowBox[List["Re", "[", "m", "]"]], " ", RowBox[List["Re", "[", "n", "]"]]]]]], RowBox[List[SuperscriptBox[RowBox[List["Im", "[", "n", "]"]], "2"], "+", SuperscriptBox[RowBox[List["Re", "[", "n", "]"]], "2"]]]], "]"]], " ", RowBox[List["Im", "[", "n", "]"]]]], "-", RowBox[List[RowBox[List["Floor", "[", FractionBox[RowBox[List[RowBox[List[RowBox[List["-", RowBox[List["Im", "[", "n", "]"]]]], " ", RowBox[List["Re", "[", "m", "]"]]]], "+", RowBox[List[RowBox[List["Im", "[", "m", "]"]], " ", RowBox[List["Re", "[", "n", "]"]]]]]], RowBox[List[SuperscriptBox[RowBox[List["Im", "[", "n", "]"]], "2"], "+", SuperscriptBox[RowBox[List["Re", "[", "n", "]"]], "2"]]]], "]"]], " ", RowBox[List["Re", "[", "n", "]"]]]]]]]]]]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<math xmlns='http://www.w3.org/1998/Math/MathML' mathematica:form='TraditionalForm' xmlns:mathematica='http://www.wolfram.com/XML/'> <semantics> <mrow> <mrow> <mi> Im </mi> <mo> ⁡ </mo> <mo> ( </mo> <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> <mo> ⩵ </mo> <mrow> <mrow> <mi> Im </mi> <mo> ⁡ </mo> <mo> ( </mo> <mi> m </mi> <mo> ) </mo> </mrow> <mo> - </mo> <mrow> <mrow> <mo> ⌊ </mo> <mfrac> <mrow> <mrow> <mrow> <mi> Im </mi> <mo> ⁡ </mo> <mo> ( </mo> <mi> m </mi> <mo> ) </mo> </mrow> <mo> ⁢ </mo> <mrow> <mi> Im </mi> <mo> ⁡ </mo> <mo> ( </mo> <mi> n </mi> <mo> ) </mo> </mrow> </mrow> <mo> + </mo> <mrow> <mrow> <mi> Re </mi> <mo> ⁡ </mo> <mo> ( </mo> <mi> m </mi> <mo> ) </mo> </mrow> <mo> ⁢ </mo> <mrow> <mi> Re </mi> <mo> ⁡ </mo> <mo> ( </mo> <mi> n </mi> <mo> ) </mo> </mrow> </mrow> </mrow> <mrow> <msup> <mrow> <mi> Im </mi> <mo> ⁡ </mo> <mo> ( </mo> <mi> n </mi> <mo> ) </mo> </mrow> <mn> 2 </mn> </msup> <mo> + </mo> <msup> <mrow> <mi> Re </mi> <mo> ⁡ </mo> <mo> ( </mo> <mi> n </mi> <mo> ) </mo> </mrow> <mn> 2 </mn> </msup> </mrow> </mfrac> <mo> ⌋ </mo> </mrow> <mo> ⁢ </mo> <mrow> <mi> Im </mi> <mo> ⁡ </mo> <mo> ( </mo> <mi> n </mi> <mo> ) </mo> </mrow> </mrow> <mo> - </mo> <mrow> <mrow> <mo> ⌊ </mo> <mfrac> <mrow> <mrow> <mrow> <mi> Im </mi> <mo> ⁡ </mo> <mo> ( </mo> <mi> m </mi> <mo> ) </mo> </mrow> <mo> ⁢ </mo> <mrow> <mi> Re </mi> <mo> ⁡ </mo> <mo> ( </mo> <mi> n </mi> <mo> ) </mo> </mrow> </mrow> <mo> - </mo> <mrow> <mrow> <mi> Im </mi> <mo> ⁡ </mo> <mo> ( </mo> <mi> n </mi> <mo> ) </mo> </mrow> <mo> ⁢ </mo> <mrow> <mi> Re </mi> <mo> ⁡ </mo> <mo> ( </mo> <mi> m </mi> <mo> ) </mo> </mrow> </mrow> </mrow> <mrow> <msup> <mrow> <mi> Im </mi> <mo> ⁡ </mo> <mo> ( </mo> <mi> n </mi> <mo> ) </mo> </mrow> <mn> 2 </mn> </msup> <mo> + </mo> <msup> <mrow> <mi> Re </mi> <mo> ⁡ </mo> <mo> ( </mo> <mi> n </mi> <mo> ) </mo> </mrow> <mn> 2 </mn> </msup> </mrow> </mfrac> <mo> ⌋ </mo> </mrow> <mo> ⁢ </mo> <mrow> <mi> Re </mi> <mo> ⁡ </mo> <mo> ( </mo> <mi> n </mi> <mo> ) </mo> </mrow> </mrow> </mrow> </mrow> <annotation-xml encoding='MathML-Content'> <apply> <eq /> <apply> <imaginary /> <apply> <rem /> <ci> $CellContext`m </ci> <ci> $CellContext`n </ci> </apply> </apply> <apply> <plus /> <apply> <imaginary /> <ci> m </ci> </apply> <apply> <times /> <cn type='integer'> -1 </cn> <apply> <times /> <apply> <floor /> <apply> <times /> <apply> <plus /> <apply> <times /> <apply> <imaginary /> <ci> m </ci> </apply> <apply> <imaginary /> <ci> n </ci> </apply> </apply> <apply> <times /> <apply> <real /> <ci> m </ci> </apply> <apply> <real /> <ci> n </ci> </apply> </apply> </apply> <apply> <power /> <apply> <plus /> <apply> <power /> <apply> <imaginary /> <ci> n </ci> </apply> <cn type='integer'> 2 </cn> </apply> <apply> <power /> <apply> <real /> <ci> n </ci> </apply> <cn type='integer'> 2 </cn> </apply> </apply> <cn type='integer'> -1 </cn> </apply> </apply> </apply> <apply> <imaginary /> <ci> n </ci> </apply> </apply> </apply> <apply> <times /> <cn type='integer'> -1 </cn> <apply> <times /> <apply> <floor /> <apply> <times /> <apply> <plus /> <apply> <times /> <apply> <imaginary /> <ci> m </ci> </apply> <apply> <real /> <ci> n </ci> </apply> </apply> <apply> <times /> <cn type='integer'> -1 </cn> <apply> <times /> <apply> <imaginary /> <ci> n </ci> </apply> <apply> <real /> <ci> m </ci> </apply> </apply> </apply> </apply> <apply> <power /> <apply> <plus /> <apply> <power /> <apply> <imaginary /> <ci> n </ci> </apply> <cn type='integer'> 2 </cn> </apply> <apply> <power /> <apply> <real /> <ci> n </ci> </apply> <cn type='integer'> 2 </cn> </apply> </apply> <cn type='integer'> -1 </cn> </apply> </apply> </apply> <apply> <real /> <ci> n </ci> </apply> </apply> </apply> </apply> </apply> </annotation-xml> </semantics> </math>
|
|
|
|
|
|
|
|
|
|
| |
|
|
|
|
| Cell[BoxData[RowBox[List[RowBox[List["HoldPattern", "[", RowBox[List["Im", "[", RowBox[List["Mod", "[", RowBox[List["m_", ",", "n_"]], "]"]], "]"]], "]"]], "\[RuleDelayed]", RowBox[List[RowBox[List["Im", "[", "m", "]"]], "-", RowBox[List[RowBox[List["Floor", "[", FractionBox[RowBox[List[RowBox[List[RowBox[List["Im", "[", "m", "]"]], " ", RowBox[List["Im", "[", "n", "]"]]]], "+", RowBox[List[RowBox[List["Re", "[", "m", "]"]], " ", RowBox[List["Re", "[", "n", "]"]]]]]], RowBox[List[SuperscriptBox[RowBox[List["Im", "[", "n", "]"]], "2"], "+", SuperscriptBox[RowBox[List["Re", "[", "n", "]"]], "2"]]]], "]"]], " ", RowBox[List["Im", "[", "n", "]"]]]], "-", RowBox[List[RowBox[List["Floor", "[", FractionBox[RowBox[List[RowBox[List[RowBox[List["-", RowBox[List["Im", "[", "n", "]"]]]], " ", RowBox[List["Re", "[", "m", "]"]]]], "+", RowBox[List[RowBox[List["Im", "[", "m", "]"]], " ", RowBox[List["Re", "[", "n", "]"]]]]]], RowBox[List[SuperscriptBox[RowBox[List["Im", "[", "n", "]"]], "2"], "+", SuperscriptBox[RowBox[List["Re", "[", "n", "]"]], "2"]]]], "]"]], " ", RowBox[List["Re", "[", "n", "]"]]]]]]]]]] |
|
|
|
|
|
|
|
|
|
|
Date Added to functions.wolfram.com (modification date)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|