Slope Calculator 11-09-2013, 04:21 AM
#1

Formula for slope:

y2 - y1

______

x2 - x1

I made a simple calculator, but it took me so long because I missed a ")".

I know it's simple, but yeah

I will be making more stuff, I might send this to my math teacher for the lulz (we learned slope like a long time ago but yeah, we are doing something now that INVOLVES slope).

y2 - y1

______

x2 - x1

I made a simple calculator, but it took me so long because I missed a ")".

I know it's simple, but yeah

I will be making more stuff, I might send this to my math teacher for the lulz (we learned slope like a long time ago but yeah, we are doing something now that INVOLVES slope).

Code:

`x1 = int(input("Enter the first x value."))`

x2 = int(input("Enter the second x value."))

y1 = int(input("Enter the first y value."))

y2 = int(input("Enter the second y value."))

#^Just a bunch of stuff, assigning whatever you enter to the variable above.

print ("The slope is", y2 - y1, "/", x2 - x1);

#^Does all the math and prints it out.