-(NSString*) calculate:(NSString*) str{
@try {
NSExpression *ex=[NSExpression expressionWithFormat:str];
NSNumber *str2= [ex expressionValueWithObject:nil context:nil];
return [str2 stringValue];
}
@catch (NSException *exception) {
return @"Sytax Error";
}