So a couple years ago when I was taking Algebra 1, I made a nifty little program for some simple linear graph line functions.
Namely, it would find the slope of a line given two points and it could find the midpoint of a line (given the endpoints of course), and find the endpoint of a line given the midpoint/other endpoint.
So I'm taking Algebra II this year, and I'm finding the program has limitations. Ergo, I went to revamp some things and ended up rewriting most of the program so it has a lot better interface. Same functions and whatnot.
But it's extremely limited. I want to make the program into a filler-inner. Fex, you could give it two points of a line, and it would retrieve slope, X-intercept, Y-intercept and an equation for the line (Y = mx + b), which could then be stored to one of the equation variables.
The goal of the (new) program is thus: Find the x-intercept, y-intercept, slope and equation from any 2 of the aforementioned variables (or substitute X/Y intercept with two arbitrary points on the line).
This is where it gets incredibly ugly.
Getting x-int, y-int, equation and slope from two points is fine and dandy. But I want it to be able to do more. Like you'd give it two points and it could fill in the rest of the information, or you could give it one point and the slope, or the X-intercept and the Y-intercept, or the X-intercept and the slope, and et cetera.
This is made somewhat simpler by the fact that X-int and Y-int are essentially the same as any two given points on the line, and more useful at that.
However, I have little idea about how to do this without epic (even legendary) amounts of hard-to-navigate Menu cruft and assorted annoyances (like the time I tried to do the same thing with right triangles a while back; my skills were reflected in the 58% I got on the subsequent test).
Right now I've got a vague idea of what to do (which is probably going to be completely redone). X1, Y1, X2, Y2, slope1 and slope2 would be set to some unlikely number (perhaps 1.23456). A couple Menus would provide input for X1, Y1, X2, Y2 and slope, and a "GO" key. Whichever of these differed from 1.23456 would determine where the program went next. If no slope was given, it would use the points to get a slope numerator and denominator. Whichever way it went, it would use the given variables to determine the Y-int and X-int (this would be skipped if the points provided were already the x/y intercept). And from then, it would determine what the equation would be, display all the variables and give an option to store the equation to one of the Y= variables.
Somehow I don't feel too confident about this... at all.
Namely, it would find the slope of a line given two points and it could find the midpoint of a line (given the endpoints of course), and find the endpoint of a line given the midpoint/other endpoint.
So I'm taking Algebra II this year, and I'm finding the program has limitations. Ergo, I went to revamp some things and ended up rewriting most of the program so it has a lot better interface. Same functions and whatnot.
But it's extremely limited. I want to make the program into a filler-inner. Fex, you could give it two points of a line, and it would retrieve slope, X-intercept, Y-intercept and an equation for the line (Y = mx + b), which could then be stored to one of the equation variables.
The goal of the (new) program is thus: Find the x-intercept, y-intercept, slope and equation from any 2 of the aforementioned variables (or substitute X/Y intercept with two arbitrary points on the line).
This is where it gets incredibly ugly.
Getting x-int, y-int, equation and slope from two points is fine and dandy. But I want it to be able to do more. Like you'd give it two points and it could fill in the rest of the information, or you could give it one point and the slope, or the X-intercept and the Y-intercept, or the X-intercept and the slope, and et cetera.
This is made somewhat simpler by the fact that X-int and Y-int are essentially the same as any two given points on the line, and more useful at that.
However, I have little idea about how to do this without epic (even legendary) amounts of hard-to-navigate Menu cruft and assorted annoyances (like the time I tried to do the same thing with right triangles a while back; my skills were reflected in the 58% I got on the subsequent test).
Right now I've got a vague idea of what to do (which is probably going to be completely redone). X1, Y1, X2, Y2, slope1 and slope2 would be set to some unlikely number (perhaps 1.23456). A couple Menus would provide input for X1, Y1, X2, Y2 and slope, and a "GO" key. Whichever of these differed from 1.23456 would determine where the program went next. If no slope was given, it would use the points to get a slope numerator and denominator. Whichever way it went, it would use the given variables to determine the Y-int and X-int (this would be skipped if the points provided were already the x/y intercept). And from then, it would determine what the equation would be, display all the variables and give an option to store the equation to one of the Y= variables.
Somehow I don't feel too confident about this... at all.