Re: Function from string
Re: Function from string
- Subject: Re: Function from string
- From: Henry McGilton <email@hidden>
- Date: Sat, 30 Jun 2007 12:49:04 -0700
On Jun 30, 2007, at 12:13 PM, David Arnold wrote:
I'd like to write a little GUI where the user types in a string
using mathematical operators, something like:
x^2*exp(-x^2)
Then I want to take that string, make a function of it, and use the
result to plot the graph of the function over a given domain. Has
anyone some rudimentary code ideas that will get me on my way?
Google is your friend . . .
Search for math function parser or math expression parser
or even a simple math parser and you will get zillions of
hits, many with downloadable source code. That should be a
place to get you started.
Also, for Cocoa/Objective-C questions like this,
<http://www.cocoabuilder.com>
is one of the first places to search, as many questions have
already been asked and answered there.
Cheers,
........ Henry
===============================+============================
Henry McGilton, Boulevardier | Trilithon Software
Objective-C/Java Composer | Seroia Research
-------------------------------+----------------------------
mailto:email@hidden | http://www.trilithon.com
|
===============================+============================
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden