Re:Re: TIB: TI-B:Two Questions


[Prev][Next][Index][Thread]

Re:Re: TIB: TI-B:Two Questions




this message is probably too late but when did "g" come in? and the reason 
it gives 3x is because 3*x equals 3x unless you put a number into x it will 
give you that,reply if you dont get what i mean or if i mis-understood you

               -Operations


>From: Christoph Bergemann <mathwizard@gmx.de>
>Reply-To: ti-basic@lists.ticalc.org
>To: ti-basic@lists.ticalc.org
>Subject: Re:Re: TIB: TI-B:Two Questions
>Date: Mon, 22 May 2000 13:01:22 +0200 (MEST)
>
>
>Thanx for your ideas about my program, but I have the following problem
>now:
>When I run the program and let it calculate g(a) it just gives me what
>g(x) is. My code is this:
>
>:prog()
>:Prgm
>:InputStr f
>Which lets the user input his function, which is then saved as f.
>:expr(f)->h
>Which converts String f to an expression h.
>:Define g(x)=h
>Defines g(x) as h
>:Disp g(3)
>Displays g(3)
>:Endprgm
>
>But everything the program does is give me the function I gave it. For
>example if I say f=3*x the program displays 3x, instead of 9. What did I do
>wrong?
>Thanx.
>
>--
>Sent through GMX FreeMail - http://www.gmx.net
>
>

________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com




Follow-Ups: