There is no limitation in the kind of math you can do on the iPhone. It's up to you to program efficient algorithms to compute the math. For example, we have developed 2 graphing apps that involve the computation of arbitrary complex math expressions to display them as 1D graph ("Math Graphing") or 2D images ("Patterns"). The iPhone and iPod touch are definitely fast enough to perform quite complex math operations.