0 7

BIT152 · 0 · 5 marks

Define celling and floor function. Explain Boolean function with example.

Define celling and floor function. Explain Boolean function with example. [5]

Discrete StructureChapter 4: Functions and MappingsCeiling and floor functions

--- The floor function of a real number x, denoted ⌊x⌋, is defined as the greatest integer less than or equal to x. $$\lfloor x \rfloor = \text{largest integer } n \text{ such that } n \leq x$$ Examples: - ⌊3.7⌋ = 3 - ⌊5⌋ = 5 - ⌊-2.3⌋ = -3 --- The ceiling function of a real number x, denoted ⌈x⌉,...