Difference between revisions of "Floor function"
(Importing text file) |
(TeX) |
||
Line 1: | Line 1: | ||
+ | {{TEX|done}} | ||
''entier function, greatest integer function, integral part function'' | ''entier function, greatest integer function, integral part function'' | ||
− | The function of a real variable that assigns to a real number | + | The function of a real variable that assigns to a real number $x$ the largest integer $\leq x$. The modern notation is $\lfloor x\rfloor$; the classical notation is $[x]$. In computer science and computer languages it is often denoted by $\operatorname{int}(x)$. |
− | The related ceiling function | + | The related ceiling function $\lceil x\rceil$ gives the smallest integer $\geq x$. The fractional part function is defined as |
− | + | $$\operatorname{frac}(x)=\begin{cases}x-\lfloor x\rfloor&\text{for }x\geq0,\\x-\lfloor x\rfloor-1&\text{for }x<0.\end{cases}$$ | |
The nearest integer function is | The nearest integer function is | ||
− | + | $$\operatorname{nint}(x)=\operatorname{round}(x)=x-\operatorname{frac}(x).$$ | |
====References==== | ====References==== | ||
<table><TR><TD valign="top">[a1]</TD> <TD valign="top"> R.L. Graham, D.E. Knuth, O. Patashnik, "Concrete mathematics: a foundation for computer science" , Addison-Wesley (1990)</TD></TR><TR><TD valign="top">[a2]</TD> <TD valign="top"> S. Wolfram, "Mathematica: Version 3" , Addison-Wesley (1996) pp. 718–719</TD></TR></table> | <table><TR><TD valign="top">[a1]</TD> <TD valign="top"> R.L. Graham, D.E. Knuth, O. Patashnik, "Concrete mathematics: a foundation for computer science" , Addison-Wesley (1990)</TD></TR><TR><TD valign="top">[a2]</TD> <TD valign="top"> S. Wolfram, "Mathematica: Version 3" , Addison-Wesley (1996) pp. 718–719</TD></TR></table> |
Latest revision as of 12:37, 27 August 2014
entier function, greatest integer function, integral part function
The function of a real variable that assigns to a real number $x$ the largest integer $\leq x$. The modern notation is $\lfloor x\rfloor$; the classical notation is $[x]$. In computer science and computer languages it is often denoted by $\operatorname{int}(x)$.
The related ceiling function $\lceil x\rceil$ gives the smallest integer $\geq x$. The fractional part function is defined as
$$\operatorname{frac}(x)=\begin{cases}x-\lfloor x\rfloor&\text{for }x\geq0,\\x-\lfloor x\rfloor-1&\text{for }x<0.\end{cases}$$
The nearest integer function is
$$\operatorname{nint}(x)=\operatorname{round}(x)=x-\operatorname{frac}(x).$$
References
[a1] | R.L. Graham, D.E. Knuth, O. Patashnik, "Concrete mathematics: a foundation for computer science" , Addison-Wesley (1990) |
[a2] | S. Wolfram, "Mathematica: Version 3" , Addison-Wesley (1996) pp. 718–719 |
Floor function. Encyclopedia of Mathematics. URL: http://encyclopediaofmath.org/index.php?title=Floor_function&oldid=17649