The relationship between the sides and angles of a right-angle triangle is described by trigonometry functions, sometimes known as circular functions. These trigonometric functions derive the relationship between the angles and sides of a triangle. In trigonometry, there are three primary functions of sine (sin), cosine (cos), tangent (tan). The other three main functions can be derived from the primary functions as cotangent (cot), secant (sec), and cosecant (cosec).
sin x = a/h
cos x = b/h
tan x = a/b
Tan x can also be represented as sin x/cos x
sec x = 1/cosx = h/b
cosec x = 1/sinx = h/a
cot x = 1/tan x = b/a