im trying to calculate sin cosine and tan but im getting the wrong calculation
what am i doing wrong
and also does anyone know how to do inverse sin cos and tan
what am i doing wrong
Code:
- (IBAction)sin:(id)sender
{
float result = sin([conv_display floatValue]);
[conv_display setFloatValue:result];
}
- (IBAction)cos:(id)sender
{
float result = cos([conv_display floatValue]);
[conv_display setFloatValue:result];
}
- (IBAction)tan:(id)sender
{
float result = tan([conv_display floatValue]);
[conv_display setFloatValue:result];
}
and also does anyone know how to do inverse sin cos and tan
Last edited by a moderator: