Is Floor Function Equality Proven for All Non-Negative x?

  • MHB
  • Thread starter anemone
  • Start date
  • Tags
    Function
In summary, the floor function, denoted as ⌊x⌋, gives the largest integer that is less than or equal to the input value x. It is often used in mathematical equations to round down a number to the nearest integer or to define the greatest integer function. The main difference between the floor function and the ceiling function is that the former rounds down to the nearest integer while the latter rounds up. In programming, the floor function is commonly used to convert floating-point numbers to integers for various tasks. There are two special cases for the floor function: if the input is already an integer, it will return the same value, and for negative numbers, it will return the next smallest integer.
  • #1
anemone
Gold Member
MHB
POTW Director
3,883
115
For all $x\ge 0$, prove that \(\displaystyle \left\lfloor{\sqrt[n]{x}}\right\rfloor=\left\lfloor{\sqrt[n]{\left\lfloor{x}\right\rfloor}}\right\rfloor\).
 
Mathematics news on Phys.org
  • #2
anemone said:
For all $x\ge 0$, prove that \(\displaystyle \left\lfloor{\sqrt[n]{x}}\right\rfloor=\left\lfloor{\sqrt[n]{\left\lfloor{x}\right\rfloor}}\right\rfloor\).

let $l^n <= x < (l+1)^n$
then $\lfloor{\sqrt[n]{x}}\rfloor = l\cdots(1)$

from the given condition because l is integer $l^n$ is also integer and it cannot be greater than $\lfloor x \rfloor$

so $l^n <= \lfloor x \rfloor < (l+1)^n$

so $l = \lfloor{\sqrt[n]{\lfloor{x}\rfloor}\rfloor}\cdots(2)$
from (1) and (2) we get the result
 
  • #3
Well done, kaliprasad! And thanks for participating!
 

1. What is the floor function?

The floor function, denoted as ⌊x⌋, gives the largest integer that is less than or equal to the input value x.

2. How is the floor function used in mathematical equations?

The floor function is often used to round down a number to the nearest integer. It can also be used to define the greatest integer function, which is the same as the floor function.

3. What is the difference between the floor function and the ceiling function?

The floor function rounds down to the nearest integer, while the ceiling function rounds up to the nearest integer. For example, ⌊3.5⌋ = 3 and ⌈3.5⌉ = 4.

4. How is the floor function used in programming?

In programming, the floor function is often used to convert a floating-point number to an integer. This can be useful for various tasks such as indexing arrays or calculating percentages.

5. Are there any special cases for the floor function?

Yes, there are two special cases for the floor function. First, if the input is already an integer, the floor function will return the same value. Second, for negative numbers, the floor function will return the next smallest integer. For example, ⌊-3.5⌋ = -4.

Similar threads

Replies
9
Views
2K
Replies
1
Views
955
Replies
2
Views
764
Replies
1
Views
790
Replies
1
Views
1K
  • Linear and Abstract Algebra
Replies
2
Views
1K
Replies
3
Views
1K
  • General Math
Replies
3
Views
1K
Replies
2
Views
1K
Replies
1
Views
1K
Back
Top