Piecewise Functions

The piecewise functions are functions defined by different criteria according to the intervals being considered.

D. evitablePiecewise Functions

Floor Function

The floor function or greatest integer function gives the largest integer less than or equal to x.

floor function

x 0 0.5 0.9 1 1.5 1.9 2
floor function 0 0 0 1 1 1 2

Floor Function

Ceiling Function

The ceiling function or least integer function gives the smallest integer greater than or equal to x.

ceiling function

x 0 0.5 0.9 1 1.5 1.9 2
ceiling function 1 1 1 2 2 2 3

Ceiling Function

Fractional Part Function

Fractional part function

Fractional part function

x 0 0.5 0.9 1 1.5 1.9 2
Fractional part function 0 0.5 0.9 0 0.5 0.9 0

Fractional Part Function

Sign Function

y = sgn(x)

Sign Function    

Sign Function