|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
http://functions.wolfram.com/04.04.27.0017.01
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
IntegerPart[x] == Round[x - 1/2] + 1 /; (Element[x, Reals] && x < 0) ||
Element[(x + 1)/2, Integers]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Cell[BoxData[RowBox[List[RowBox[List[RowBox[List["IntegerPart", "[", "x", "]"]], "\[Equal]", RowBox[List[RowBox[List["Round", "[", RowBox[List["x", "-", FractionBox["1", "2"]]], "]"]], "+", "1"]]]], "/;", RowBox[List[RowBox[List[RowBox[List["x", "\[Element]", "Reals"]], "\[And]", RowBox[List["x", "<", "0"]]]], "\[Or]", RowBox[List[FractionBox[RowBox[List["x", "+", "1"]], "2"], "\[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> <mi> int </mi> <mo> ⁡ </mo> <mo> ( </mo> <mi> x </mi> <mo> ) </mo> </mrow> <mo> ⩵ </mo> <mtext> </mtext> <mrow> <mrow> <mo> ⌊ </mo> <mrow> <mi> x </mi> <mo> - </mo> <mfrac> <mn> 1 </mn> <mn> 2 </mn> </mfrac> </mrow> <mo> ⌉ </mo> </mrow> <mo> + </mo> <mn> 1 </mn> </mrow> </mrow> <mo> /; </mo> <mrow> <mrow> <mrow> <mi> x </mi> <mo> ∈ </mo> <semantics> <mi> ℝ </mi> <annotation encoding='Mathematica'> TagBox["\[DoubleStruckCapitalR]", Function[Reals]] </annotation> </semantics> </mrow> <mo> ∧ </mo> <mrow> <mi> x </mi> <mo> < </mo> <mn> 0 </mn> </mrow> </mrow> <mo> ∨ </mo> <mrow> <mfrac> <mrow> <mi> x </mi> <mo> + </mo> <mn> 1 </mn> </mrow> <mn> 2 </mn> </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> <mi> int </mi> <mo> ⁡ </mo> <mo> ( </mo> <mi> x </mi> <mo> ) </mo> </mrow> <mo> ⩵ </mo> <mtext> </mtext> <mrow> <mrow> <mo> ⌊ </mo> <mrow> <mi> x </mi> <mo> - </mo> <mfrac> <mn> 1 </mn> <mn> 2 </mn> </mfrac> </mrow> <mo> ⌉ </mo> </mrow> <mo> + </mo> <mn> 1 </mn> </mrow> </mrow> <mo> /; </mo> <mrow> <mrow> <mrow> <mi> x </mi> <mo> ∈ </mo> <semantics> <mi> ℝ </mi> <annotation encoding='Mathematica'> TagBox["\[DoubleStruckCapitalR]", Function[Reals]] </annotation> </semantics> </mrow> <mo> ∧ </mo> <mrow> <mi> x </mi> <mo> < </mo> <mn> 0 </mn> </mrow> </mrow> <mo> ∨ </mo> <mrow> <mfrac> <mrow> <mi> x </mi> <mo> + </mo> <mn> 1 </mn> </mrow> <mn> 2 </mn> </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["IntegerPart", "[", "x_", "]"]], "]"]], "\[RuleDelayed]", RowBox[List[RowBox[List[RowBox[List["Round", "[", RowBox[List["x", "-", FractionBox["1", "2"]]], "]"]], "+", "1"]], "/;", RowBox[List[RowBox[List["(", RowBox[List[RowBox[List["x", "\[Element]", "Reals"]], "&&", RowBox[List["x", "<", "0"]]]], ")"]], "||", RowBox[List[FractionBox[RowBox[List["x", "+", "1"]], "2"], "\[Element]", "Integers"]]]]]]]]]] |
|
|
|
|
|
|
|
|
|
|
Date Added to functions.wolfram.com (modification date)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|