|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
http://functions.wolfram.com/04.07.27.0008.01
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Quotient[m, n] == Round[m/n - 1/2] /; Element[m/n, Reals] &&
!Element[(m + n)/(2 n), Integers]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Cell[BoxData[RowBox[List[RowBox[List[RowBox[List["Quotient", "[", RowBox[List["m", ",", "n"]], "]"]], "\[Equal]", RowBox[List["Round", "[", RowBox[List[FractionBox["m", "n"], "-", FractionBox["1", "2"]]], "]"]]]], "/;", RowBox[List[RowBox[List[FractionBox["m", "n"], "\[Element]", "Reals"]], "\[And]", RowBox[List["Not", "[", RowBox[List[FractionBox[RowBox[List["m", "+", "n"]], RowBox[List["2", "n"]]], "\[Element]", "Integers"]], "]"]]]]]]]]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<math xmlns='http://www.w3.org/1998/Math/MathML' mathematica:form='TraditionalForm' xmlns:mathematica='http://www.wolfram.com/XML/'> <semantics> <mrow> <mrow> <mrow> <mrow> <mi> quotient </mi> <mo> ⁡ </mo> <mo> ( </mo> <mrow> <mi> m </mi> <mo> , </mo> <mi> n </mi> </mrow> <mo> ) </mo> </mrow> <mo> ⩵ </mo> <mtext> </mtext> <mrow> <mo> ⌊ </mo> <mrow> <mfrac> <mi> m </mi> <mi> n </mi> </mfrac> <mo> - </mo> <mfrac> <mn> 1 </mn> <mn> 2 </mn> </mfrac> </mrow> </mrow> </mrow> <mo> ⌉ </mo> </mrow> <mo> /; </mo> <mrow> <mrow> <mfrac> <mi> m </mi> <mi> n </mi> </mfrac> <mo> ∈ </mo> <semantics> <mi> ℝ </mi> <annotation encoding='Mathematica'> TagBox["\[DoubleStruckCapitalR]", Function[Reals]] </annotation> </semantics> </mrow> <mo> ∧ </mo> <mrow> <mfrac> <mrow> <mi> m </mi> <mo> + </mo> <mi> n </mi> </mrow> <mrow> <mn> 2 </mn> <mo> ⁢ </mo> <mi> n </mi> </mrow> </mfrac> <mo> ∉ </mo> <semantics> <mi> ℤ </mi> <annotation encoding='Mathematica'> TagBox["\[DoubleStruckCapitalZ]", Function[Integers]] </annotation> </semantics> </mrow> </mrow> </mrow> <annotation-xml encoding='MathML-Content'> <mrow> <mrow> <mrow> <mrow> <mi> quotient </mi> <mo> ⁡ </mo> <mo> ( </mo> <mrow> <mi> m </mi> <mo> , </mo> <mi> n </mi> </mrow> <mo> ) </mo> </mrow> <mo> ⩵ </mo> <mtext> </mtext> <mrow> <mo> ⌊ </mo> <mrow> <mfrac> <mi> m </mi> <mi> n </mi> </mfrac> <mo> - </mo> <mfrac> <mn> 1 </mn> <mn> 2 </mn> </mfrac> </mrow> </mrow> </mrow> <mo> ⌉ </mo> </mrow> <mo> /; </mo> <mrow> <mrow> <mfrac> <mi> m </mi> <mi> n </mi> </mfrac> <mo> ∈ </mo> <semantics> <mi> ℝ </mi> <annotation encoding='Mathematica'> TagBox["\[DoubleStruckCapitalR]", Function[Reals]] </annotation> </semantics> </mrow> <mo> ∧ </mo> <mrow> <mfrac> <mrow> <mi> m </mi> <mo> + </mo> <mi> n </mi> </mrow> <mrow> <mn> 2 </mn> <mo> ⁢ </mo> <mi> n </mi> </mrow> </mfrac> <mo> ∉ </mo> <semantics> <mi> ℤ </mi> <annotation encoding='Mathematica'> TagBox["\[DoubleStruckCapitalZ]", Function[Integers]] </annotation> </semantics> </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["1", "2"]]], "]"]], "/;", RowBox[List[RowBox[List[FractionBox["m", "n"], "\[Element]", "Reals"]], "&&", RowBox[List["!", RowBox[List[FractionBox[RowBox[List["m", "+", "n"]], RowBox[List["2", " ", "n"]]], "\[Element]", "Integers"]]]]]]]]]]]] |
|
|
|
|
|
|
|
|
|
|
Date Added to functions.wolfram.com (modification date)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|