Java graphing[Source]

Discussion in 'Programming General' started by samy, May 10, 2009.

Java graphing[Source]
  1. Unread #1 - May 10, 2009 at 9:32 PM
  2. samy
    Joined:
    Dec 1, 2005
    Posts:
    168
    Referrals:
    1
    Sythe Gold:
    0

    samy Active Member
    Banned

    Java graphing[Source]

    I made this program for my java class, I thought it was cool.

    I would appreciate any suggestions related to the structure of my code.

    I will try to answer as many questions as I can.

    Features:
    Graphs a polynomial function using the values from the sliders as input.
    Repaints after every slider change.
    Window can be changed via text fields. Pressing the draw button after.

    Pics:
    [​IMG]
    [​IMG]

    Things to note:
    1.Each X pixel of the graph has its y value calculated, then a line is drawn connecting the two. This method technically could produce a faulty graph, though it is very unlikely unless it is given a very small space.

    2.It would be very easy to add more things for this to graph.

    Challenge:
    Add the ability to graph an input equation. Ex. A user can input 3x^4-6x^2 and that will be graphed as such.
     

    Attached Files:

  3. Unread #2 - Jun 17, 2009 at 6:23 PM
  4. Sei Italiano
    Joined:
    Feb 4, 2009
    Posts:
    578
    Referrals:
    1
    Sythe Gold:
    1

    Sei Italiano Forum Addict

    Java graphing[Source]

    nice!!

    but since blupig wont let me compliment my friends invention let me say this instead

    good, downloaded.
     
  5. Unread #3 - Jul 5, 2009 at 2:57 AM
  6. DylanAn
    Joined:
    Jun 13, 2009
    Posts:
    215
    Referrals:
    0
    Sythe Gold:
    1

    DylanAn Active Member

    Java graphing[Source]

    Thanks for the share, i love reading sources, do I mind if I edit it for personal use?
     
  7. Unread #4 - May 5, 2011 at 1:22 AM
  8. Sei Italiano
    Joined:
    Feb 4, 2009
    Posts:
    578
    Referrals:
    1
    Sythe Gold:
    1

    Sei Italiano Forum Addict

    Java graphing[Source]

    Intentionally Gravedigged upon Samy's request

    btw, just used this again to remind myself about derivatives :p
     
< Java help service! | how do i donate >

Users viewing this thread
1 guest


 
 
Adblock breaks this site