Chronology Current Month Current Thread Current Date
[Year List] [Month List (current year)] [Date Index] [Thread Index] [Thread Prev] [Thread Next] [Date Prev] [Date Next]

Re: Algorithm needed to convert a text string to a mathematical expression



<Raacc@aol.com> wrote:
Does anyone have a source for an algorithm that will look at a text string
and convert it into a mathematical expression?

This is a common application of "stacks", which are usually taught in a
second-semester course in Pascal or C or C++ or whatever. Many "CS2"
textbooks probably discuss this topic. The one I have is "Advanced
Programming in Pascal with Data Structures" by Larry Nyhoff and Sanford
Leestma, published by Macmillan.

--
Jon Bell <jtbell@presby.edu> Presbyterian College
Dept. of Physics and Computer Science Clinton, South Carolina USA