Math equation tokenization

This is a discussion on Math equation tokenization within the Tech Board forums, part of the Community Boards category; Looking for a library that will tokenize a math-"oriented" string. I know of GNU Bison/flex, and have also found this: ...

  1. #1
    Epy
    Epy is offline
    Fortran lover Epy's Avatar
    Join Date
    Sep 2009
    Location
    California, USA
    Posts
    955

    Math equation tokenization

    Looking for a library that will tokenize a math-"oriented" string. I know of GNU Bison/flex, and have also found this: GNU libmatheval - GNU Project - Free Software Foundation (FSF).

    Really, I either need some decent reading material on parsing/tokenizing or a simpler library that will take something like "a = 5*4/(3+2*somefunc(5));" and split it up by the operators.

    Thanks in advance for any suggestions.

  2. #2
    Epy
    Epy is offline
    Fortran lover Epy's Avatar
    Join Date
    Sep 2009
    Location
    California, USA
    Posts
    955
    Using Regular Expressions for Lexical..Analysis is helpful, but I suck at regular expressions.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Math equation help!!
    By alex33zebras in forum C Programming
    Replies: 2
    Last Post: 09-27-2011, 03:31 PM
  2. How to do a math equation in c Programming
    By jabber5050 in forum C Programming
    Replies: 6
    Last Post: 09-08-2011, 01:08 PM
  3. Need help reducing an equation, math wiz's welcome. =)
    By M.Richard Tober in forum C++ Programming
    Replies: 6
    Last Post: 07-23-2011, 05:45 PM
  4. C++ math equation
    By XodoX in forum C++ Programming
    Replies: 22
    Last Post: 03-01-2009, 11:02 PM
  5. A math equation
    By dizolve in forum A Brief History of Cprogramming.com
    Replies: 8
    Last Post: 12-17-2002, 11:56 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21