Results 1 to 3 of 3

Thread: Graph plotting

  1. #1

    Thread Starter
    Frenzied Member CyberCarsten's Avatar
    Join Date
    Sep 1999
    Location
    Aalborg Ø, Denmark
    Posts
    1,544

    Graph plotting

    I am programming a graph plotter, and I have set up the coordinate system and plotted a function by entering the code in the program....but how would it be possible to plot a function that I enter in an edit box in a dialog....fx: 2*x+1 ????
    razor
    Software Engineer Student, Aalborg University, Denmark
    http://www.cs.auc.dk

    My email at AUC: will get a new email soon
    My website: http://www.razorsoftware.net


    Windows XP Pro/ Gentoo Linux (Laptop)
    Windows XP Pro (Home PC)

  2. #2
    Frenzied Member Jop's Avatar
    Join Date
    Mar 2000
    Location
    Amsterdam, the Netherlands
    Posts
    1,986
    hmm you'd have to write an expression parser for that I think.

    I've read a book (C++ the complete reference (4th edition)) which contains code for a simple expression parser.. their code is freely available online:
    http://www.osborne.com/products/0072...26803_code.zip

    it's the last appendix..
    I don't think it's the most effecient code, but this should help you out a bit I guess.
    Do a search on google if you need more info.
    Good luck!
    Jop - validweb.nl

    Alcohol doesn't solve any problems, but then again, neither does milk.

  3. #3

    Thread Starter
    Frenzied Member CyberCarsten's Avatar
    Join Date
    Sep 1999
    Location
    Aalborg Ø, Denmark
    Posts
    1,544
    thanks
    razor
    Software Engineer Student, Aalborg University, Denmark
    http://www.cs.auc.dk

    My email at AUC: will get a new email soon
    My website: http://www.razorsoftware.net


    Windows XP Pro/ Gentoo Linux (Laptop)
    Windows XP Pro (Home PC)

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