Page 33 - DCAP407_DATA_STRUCTURE
P. 33
Data Structure
Let us consider the following example.
ceiling (1.5)=2
ceiling(0)=0
ceiling(2)=2
ceiling(-3)=-3
ceiling(-1.1)=-1
Find out ceiling(x) for various values of x.
Figure 2.5 shows the graph for ceiling(x).
Figure 2.5: Ceiling Function
Source: http://mathworld.wolfram.com/CeilingFunction.html
Did you know? The name and symbol for the floor function and ceiling function was invented by K. E.
Iverson (Graham et. al. 1994).
Summation Symbol
Summation symbol is Σ. Summation is the operation of combining a sequence of numbers using
addition. The result is the sum or total of all the numbers. Apart from numbers, other types of values
such as, vectors, matrices, polynomials, and elements of any additive group can also be added using
summation symbol.
26 LOVELY PROFESSIONAL UNIVERSITY