Discrete Structures20805 marksFunctions for Computer Science
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]
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...