Computer Science Canada Graphing Program |
Author: | Omicron91 [ Mon Apr 18, 2005 6:44 pm ] | ||
Post subject: | Graphing Program | ||
Hey guys, just thought as my first submission I would put up something I made to do my Math homework, lol. Just feed it the variables and you can graph some very interesting things. Right now you can only use A((X + B)**C)+D, so parabolas, lines, hyperbolas if you know what you're doing, but it's got a save function and whatnot to so give it a try.
|
Author: | jamonathin [ Mon Apr 18, 2005 8:38 pm ] |
Post subject: | |
Your program says it can graphs all these things, well when do you chose which one it draws? I rarely get a parabola, because most of the time its a line. It's a good start, don't get me wrong, it's just prone to a lot of erros. Good work though. |
Author: | Omicron91 [ Tue Apr 19, 2005 7:40 am ] |
Post subject: | |
You have to set the X exponent value to 2 to get a parabola, if you set it to 1 then you get a line. It's basically inputting the formula of a line or parabola and it will only graph what you give it. |
Author: | dann_west [ Mon May 02, 2005 2:11 pm ] |
Post subject: | Re: Graphing Program |
Pretty good. Maybe you could make it so you cn make many kins of graphs and charts. |
Author: | pro123 [ Tue May 03, 2005 10:58 am ] |
Post subject: | |
It is a really good program. But I agree you should make different kinds. I like the grid. |
Author: | Delos [ Wed May 04, 2005 8:30 pm ] |
Post subject: | |
A solid start to a graphing programme. Suggestions: 1) Set your window positions a little better. Since you're using 2 windows, try keep one left and one right. Use Config.Display (cdScreenWidth) and the same of cdScreenHeight to define their positions on any resolution. (I.e., since you're using the actual resolution settings as markers, you can divide up the screen as you see fit and position the windows accordingly. As long as the monitor is on a high enough resolution, this will neaten things. Lower resolutions will have overlap, so ensure that this setup works on lower resolutions first.) 2) Check your code for the "Draw another function" part. At times, if I selected that option once, it would not allow me to access the menu after that function was drawn. Instead, it prompted for the creation of a third function. 3) Check your bounds for function drawing. Some flatter functions (those with small "stretch" values) did not graph across the screen. Also, expand your formula to this: f(x) = a ( k (x-p)^exp ) + q Keep in mind the differing stretches caused by a and k. 4) As "values" are entered, display them in the equation! Also, check your hardcoded text, you've included a number of 2's in the initial position that shouldn't be there. 5) Error trap please. 6) Give the User the option of selecting the name of the picture they wish to save as. 7) Congradulations on using procedures. Keep up the habit. Also look into functions, you'll be suprised how versitile they are. + bits. |