iPhone — working with complex numbers
问题 I'm trying to figure out the best way to put complex numbers into my math-oriented iPhone app. I've found the mac osx manual page for complex numbers, which looks like a reasonable start. Three questions: (1) Is this the best starting point? (2) I will need an object-oriented wrapper -- can NSValue do this somehow? Or should I just write my own? (not difficult, but I'd rather use a built-in one if it exists). (3) Is there a built-in way to get a string representation of a complex? 回答1: Seems