Q:

Unable to print Cosecant/Secant values

I am unable to execute these math functions in Xcode: secant(sec) / cosecant(cosec)
NSLog(@"cosec(45)=%f",cosec(45 * M_PI/180.0)); 

Error:

Showing cot/sec/cosec are implicit declaration of function cot/cosec is invalid in c99

Is there a way I can run these math functions?
Note
I am only able to run tan/sin/cos functions

A:

You have this error because 'cosec' function is not implemented in libraries you are compiling with. Try to replace usage of this function with trigonometrically equivalent operations like secant(x) = 1.0 / cos(x) and cosecant(x) = 1.0 / sin(x).

