2080 5

CSC165 ยท 2080 ยท 5 marks

Give the example of ceiling, floor and boolean function. How do you plot the graph of the function?

Give the example of ceiling, floor and boolean function. How do you plot the graph of the function? [5]

Discrete StructuresChapter 1: Basic Discrete StructuresFunctions for Computer Science

The floor function for any real number x is defined as the greatest integer less than or equal to x. It is denoted by โŒŠxโŒ‹. Expression Value Reason --------- โŒŠ3.5โŒ‹ 3 Greatest integer โ‰ค 3.5 is 3 โŒŠ-2.4โŒ‹ -3 Greatest integer โ‰ค -2.4 is -3 โŒŠ3.143โŒ‹ 3 Greatest integer โ‰ค 3.143 is 3 --- The ceiling function...