Quote:
Originally Posted by stemfrom
hello everyone,
i want to make an iphone program that makes the graph of a mathematic function,like sin(x). So,i want to put the mathematical expression:sin(x) in a UITextfield and then take it and use it like a function.
does anyone know how to do this?
|
There's no simple API call to do this. You would need to either write a formula parser, or find a third party formula parser that you could use. I don't know if there are any open source solutions. I would suggest searching the web for open source Objective C formula parsers.
Edit: I did a little googling (using the search string "open source Objective C mathematical expression parser") and found this:
http://mac.softpedia.com/progDownloa...oad-86833.html