[futurebasic] Re: Maths Function

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : June 1998 : Group Archive : Group : All Groups

From: "Edwards, Waverly" <WEdwards@...>
Date: Tue, 30 Jun 1998 13:17:28 -0400
I believe a few years ago By Design software had an equation evaluator.
I think they sold/still sell it for $69.95 (off top of my head).

The other thing you could do is you can read "C", I know there have been
a few articles in Dr Dobbs Journal, C Users Journal and there may have
been articles in MacTech on equation evaluations.  I can't say that I've
ever seen any in BASIC but it doesn't mean the code doesn't exist.



W. 

	-----Original Message-----
	From:	tatewake@... [SMTP:tatewake@...]
	Sent:	None
	To:	futurebasic@...
	Subject:	Re: Maths Function

	>I have a text field where a math statement like "2*x+3" or
"2*(x) + 3" is
	>entered.
	>I then want to evaluate this statement for certain values of x.
	>Is there a simple way of doing this?
	>TIA

	Yeah:
	DEF FN yourfunc(exp1) = 2*exp1+3
	Y = FN yourfunc(5)

	Simple, eh? I remember when this was new to the Tandy CoCo...
	Only we had to define them fna through fnz and was limited(as I
remeber) to
	one parameter...

	See the help file under "DEF FN" for more info.

	~ There are three types of people; those
	   who can count, and those who can't.   ~

	-- TJ Grant (tatewake@...)
	Inspired Software. http://inspired.netstreet.net/
	Macintosh, Dos, Windows, and BeOS software solutions.
	Phone: 407-728-7563