CEIL, FLOOR AND COMPOSITE FUNCTIONS
.png)
CEIL , FLOOR AND COMPOSITE FUNCTION CEIL AND FLOOR FUNCTION:- INTRODUCTION:- In Mathematics and Computer Programming, two important functions are used quite often. One is the floor function , and the other is the ceiling function For example, the floor and ceiling of a decimal 3.31 are 3 and 4 respectively. So with the help of these two functions, we get the nearest integer in a number line of a given decimal. CEILING FUNCTION:- The ceiling function, denoted as ⌈ x ⌉, is a mathematical function that rounds a real number x x up to the smallest integer greater than or equal to x x . In simpler terms, it gives the "smallest" integer that is not less than x x . Formal Definition: For any real number x x , the ceiling function ⌈ x ⌉ \lceil x \rceil is defined as: ⌈ x ⌉ = the smallest integer n such that n ≥ x \lceil x \rceil = \text{the smallest integer } n \text{ such that } n \geq x ⌈ x ⌉ = the smal...