Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Slope Finder
#1
I just put this together quickly for homework for my algerbra 1 class.
I had about 54 problems that I had to do something like find he slope for a line that goes through (4,2) and (3,2)
This program easily solves that prblem, i finished my homework in a couple of minutes Big Grin
Code:
import os
os.system("clear")
while True:
    print "--------------------------------------------------"
    print "        Slope Finder             "
    print "--------------------------------------------------"
    a = 0
    b = 0
    c = 0
    d = c
    a = input("First x: ")
    b = input("First y: ")
    c = input("Second x: ")
    d = input("Second y: ")
    print d - b,"/",c - a
Reply
#2
Lol was "(y1-y2/x1-x2)" that hard?

Good program I guess. :p
[Image: MreGSXsigcopy.png]

Reply
#3
(10-15-2009, 03:16 PM)MreGSX Wrote: Lol was "(y1-y2/x1-x2)" that hard?

Good program I guess. :p

I have trouble storing more than 1 number in my head Big Grin
Reply
#4
(10-15-2009, 03:19 PM)nevets04 Wrote: I have trouble storing more than 1 number in my head Big Grin

Vertical
Horizontal

?
Reply
#5
(10-15-2009, 04:08 PM)Jamza Wrote: Vertical
Horizontal

?

(1,-5) (-4,9)

You're not looking at a coordinate plane.
[Image: MreGSXsigcopy.png]

Reply


Forum Jump:


Users browsing this thread: 5 Guest(s)