I want to know how to use trigonometric functions (an example would be helpful), and what I have to import to use them. Are they in math.h with things like pow() and sqrt()?
I want to know how to use trigonometric functions (an example would be helpful),
Share
You just want to use things like sin() cos() and such? If so, you don’t even need to import math.h as long has you have:
#import <Foundation/Foundation.h>in your header file. You can just do something likedouble result = cos(12);