title: Calculate square of value using NSExpression?
body: <pre><code>NSString *formul=@"3^2";
  NSExpression *e = [NSExpression expressionWithFormat:formul];
  int result = [[e expressionValueWithObject:nil context:nil] intValue];
  NSLog(@"formule:%d", result);
  </code></pre>
  
  <p>I am trying to calculate (a+b)^2.</p>