Just had finished my latest java project and am pretty proud of it, it mutha f'n graphs shit!
Anyways... I've put so much work into this after finally working out how to even have a y = statement, to having the friken slope be negative, I've had so many problems, but I have finally made it so its done.
Unfortunately there is one problem tho with the code, it doesn't print the origin correctly, however everything else I believe is flawless
This java program uses the gridworld.jar extension, this is a project for a class, therefore, that is the reason why I chose such a stupid and useless thing to create.
Equation line = new Equation(2, 2, 1, "Line");
Equation parabola = new Equation(1, 0, 0, 1, "Parabola");
Equation cubic = new Equation(1, 0, 0, 0, .75, "Cubic");
Equation exponential = new Equation(1, -2, 0, 1, "Exponential");
Pics:
Line:
Parabola:
Cubic:
Exponential:
If you have any questions or ideas on what to implicate into this, please feel free and post below, post as well on how you think it came out, can't wait to find out what u guys think
So change type to int, then have line be like 1, parabola be like 2, etc. then request user input for each corresponding piece of information required for that type of graph?
Not sure what you're saying, plz give example, that would help.