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


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

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




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




References: