Results 1 to 2 of 2

Thread: Does anyone know of an eval class

  1. #1

    Thread Starter
    Addicted Member RCharlton's Avatar
    Join Date
    Mar 2000
    Location
    London, UK
    Posts
    202
    Which evaluates a mathematical expression and is not part of a big package? Just a simple eval ie

    blah.eval("6+(3*cos78)+7^2");

    Thanks

  2. #2

    Thread Starter
    Addicted Member RCharlton's Avatar
    Join Date
    Mar 2000
    Location
    London, UK
    Posts
    202

    Eval

    I think it has something to do with:

    Converting the equation to postfix and then evaluating the postfix.

    Any ideas?

    Thanks,

    Richard

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