|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
http://functions.wolfram.com/04.03.27.0019.01
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Round[x] == x - FractionalPart[x + 1/2] - 1/2 - CharacteristicFunction[
(2 x - 1)/4, Integers] + Sign[CharacteristicFunction[1/2 + x, Integers] +
UnitStep[1/2 + x]] /; Element[x, Reals]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Cell[BoxData[RowBox[List[RowBox[List[RowBox[List["Round", "[", "x", "]"]], "\[Equal]", RowBox[List["x", "-", RowBox[List["FractionalPart", "[", RowBox[List["x", "+", FractionBox["1", "2"]]], "]"]], "-", FractionBox["1", "2"], "-", RowBox[List["CharacteristicFunction", "[", RowBox[List[FractionBox[RowBox[List[RowBox[List["2", "x"]], "-", "1"]], "4"], ",", "Integers"]], "]"]], "+", RowBox[List["Sign", "[", RowBox[List[RowBox[List["CharacteristicFunction", "[", RowBox[List[RowBox[List[FractionBox["1", "2"], "+", "x"]], ",", "Integers"]], "]"]], "+", RowBox[List["UnitStep", "[", RowBox[List[FractionBox["1", "2"], "+", "x"]], "]"]]]], "]"]]]]]], "/;", RowBox[List["x", "\[Element]", "Reals"]]]]]]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<math xmlns='http://www.w3.org/1998/Math/MathML' mathematica:form='TraditionalForm' xmlns:mathematica='http://www.wolfram.com/XML/'> <semantics> <mrow> <mrow> <mrow> <mo> ⌊ </mo> <mi> x </mi> <mo> ⌉ </mo> </mrow> <mo> ⩵ </mo> <mrow> <mi> x </mi> <mo> - </mo> <mrow> <mi> frac </mi> <mo> ⁡ </mo> <mo> ( </mo> <mrow> <mi> x </mi> <mo> + </mo> <mfrac> <mn> 1 </mn> <mn> 2 </mn> </mfrac> </mrow> <mo> ) </mo> </mrow> <mo> - </mo> <mfrac> <mn> 1 </mn> <mn> 2 </mn> </mfrac> <mo> - </mo> <mrow> <msub> <mi> χ </mi> <mi> ℤ </mi> </msub> <mo> ( </mo> <mfrac> <mrow> <mrow> <mn> 2 </mn> <mo> ⁢ </mo> <mi> x </mi> </mrow> <mo> - </mo> <mn> 1 </mn> </mrow> <mn> 4 </mn> </mfrac> <mo> ) </mo> </mrow> <mo> + </mo> <mrow> <mi> sgn </mi> <mo> ⁡ </mo> <mo> ( </mo> <mrow> <mrow> <msub> <mi> χ </mi> <mi> ℤ </mi> </msub> <mo> ( </mo> <mrow> <mi> x </mi> <mo> + </mo> <mfrac> <mn> 1 </mn> <mn> 2 </mn> </mfrac> </mrow> <mo> ) </mo> </mrow> <mo> + </mo> <mrow> <mi> θ </mi> <mo> ⁡ </mo> <mo> ( </mo> <mrow> <mi> x </mi> <mo> + </mo> <mfrac> <mn> 1 </mn> <mn> 2 </mn> </mfrac> </mrow> <mo> ) </mo> </mrow> </mrow> <mo> ) </mo> </mrow> </mrow> </mrow> <mo> /; </mo> <mrow> <mi> x </mi> <mo> ∈ </mo> <semantics> <mi> ℝ </mi> <annotation encoding='Mathematica'> TagBox["\[DoubleStruckCapitalR]", Function[Reals]] </annotation> </semantics> </mrow> </mrow> <annotation-xml encoding='MathML-Content'> <mrow> <mrow> <mrow> <mo> ⌊ </mo> <mi> x </mi> <mo> ⌉ </mo> </mrow> <mo> ⩵ </mo> <mrow> <mi> x </mi> <mo> - </mo> <mrow> <mi> frac </mi> <mo> ⁡ </mo> <mo> ( </mo> <mrow> <mi> x </mi> <mo> + </mo> <mfrac> <mn> 1 </mn> <mn> 2 </mn> </mfrac> </mrow> <mo> ) </mo> </mrow> <mo> - </mo> <mfrac> <mn> 1 </mn> <mn> 2 </mn> </mfrac> <mo> - </mo> <mrow> <msub> <mi> χ </mi> <mi> ℤ </mi> </msub> <mo> ( </mo> <mfrac> <mrow> <mrow> <mn> 2 </mn> <mo> ⁢ </mo> <mi> x </mi> </mrow> <mo> - </mo> <mn> 1 </mn> </mrow> <mn> 4 </mn> </mfrac> <mo> ) </mo> </mrow> <mo> + </mo> <mrow> <mi> sgn </mi> <mo> ⁡ </mo> <mo> ( </mo> <mrow> <mrow> <msub> <mi> χ </mi> <mi> ℤ </mi> </msub> <mo> ( </mo> <mrow> <mi> x </mi> <mo> + </mo> <mfrac> <mn> 1 </mn> <mn> 2 </mn> </mfrac> </mrow> <mo> ) </mo> </mrow> <mo> + </mo> <mrow> <mi> θ </mi> <mo> ⁡ </mo> <mo> ( </mo> <mrow> <mi> x </mi> <mo> + </mo> <mfrac> <mn> 1 </mn> <mn> 2 </mn> </mfrac> </mrow> <mo> ) </mo> </mrow> </mrow> <mo> ) </mo> </mrow> </mrow> </mrow> <mo> /; </mo> <mrow> <mi> x </mi> <mo> ∈ </mo> <semantics> <mi> ℝ </mi> <annotation encoding='Mathematica'> TagBox["\[DoubleStruckCapitalR]", Function[Reals]] </annotation> </semantics> </mrow> </mrow> </annotation-xml> </semantics> </math>
|
|
|
|
|
|
|
|
|
|
| |
|
|
|
|
| Cell[BoxData[RowBox[List[RowBox[List["HoldPattern", "[", RowBox[List["Round", "[", "x_", "]"]], "]"]], "\[RuleDelayed]", RowBox[List[RowBox[List["x", "-", RowBox[List["FractionalPart", "[", RowBox[List["x", "+", FractionBox["1", "2"]]], "]"]], "-", FractionBox["1", "2"], "-", RowBox[List["CharacteristicFunction", "[", RowBox[List[RowBox[List[FractionBox["1", "4"], " ", RowBox[List["(", RowBox[List[RowBox[List["2", " ", "x"]], "-", "1"]], ")"]]]], ",", "Integers"]], "]"]], "+", RowBox[List["Sign", "[", RowBox[List[RowBox[List["CharacteristicFunction", "[", RowBox[List[RowBox[List[FractionBox["1", "2"], "+", "x"]], ",", "Integers"]], "]"]], "+", RowBox[List["UnitStep", "[", RowBox[List[FractionBox["1", "2"], "+", "x"]], "]"]]]], "]"]]]], "/;", RowBox[List["x", "\[Element]", "Reals"]]]]]]]] |
|
|
|
|
|
|
|
|
|
|
Date Added to functions.wolfram.com (modification date)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|