Updated rules for all trignometric functions

Updated all the trignometric functions so that, lookup table
is referred first before creating the object