I’ve been trying to make a specific calculation in xcode with user defined variables. Here’s what I have:
-(IBAction)calculate:(id)sender{
NSString *oneField = self.one.text;
NSString *twoField = self.two.text;
double resultInNum;
double onedouble = [oneField doubleValue];
double twodouble = [twoField doubleValue];
And what I need to do, is cube root the outcome of
(twodouble/onedouble)
I can’t quite find away. Any ideas?
Use the
powfunction frommath.h