CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Math Parsing

  1. #1
    Join Date
    May 1999
    Posts
    1

    Math Parsing

    I am trying to write a parser that will generate a function tree from a string literal like "(1 + sin(x)) * (3 + 4 * cos(y))"
    I am wondering if there are any code snipets here, or at any math sites on the web.?

    Nigel.

  2. #2
    Join Date
    May 1999
    Location
    Bern, Switzerland
    Posts
    12

    Re: Math Parsing

    If your math expressions can get "ugly" (i.e. complex) you may want to look into "real" parsers. Visit the following web sites:

    http://www.first.gmd.de/cogent/catalog/lexparse.html
    http://www.programmar.com (commercial; I just bought it and like it).

    Otherwise, hope for a better reply.... ;-)

    Regards. Karl


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured