+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Join Date
    Apr 2008
    Location
    ATX
    Posts
    1,545
    Points
    1,591,322.65
    Rep Power
    219

    Default [Calc] Pythagorean Theorem

    This program finds the missing side length of a right triangle given the other two sides using the Pythagorean theorem. It can come in handy, plus it gives you all the data that you would get from the in between steps so you can write that down and make it look like you did work ;) like always, don't copy and paste the program because it won't work. Download using the link at the bottom.
    Code:
    :"The pythagorean theorem
    ClrHome
    0üA:0üB:0üC:0üD:0üE:0üF:0üG:0üH:0üI
    Disp "Enter all data.","Enter 0 for the","unknown."
    For(E,1,750)
    End
    Lbl 1
    ClrHome
    Prompt (A)
    Prompt (B)
    Prompt (C)
    If A>0 and B>0 and C>0
    Then
    Goto 2
    End
    If A=0 and B=0 and C=0
    Then
    Goto 3
    End
    If A=0
    Then
    CÜ-BÜüD
    ð(D)üA
    Output(4,1,"A=")
    Output(4,3,A
    Goto 2
    End
    If B=0
    Then
    CÜ-AÜüD
    ð(D)üB
    Output(4,1,"B=")
    Output(4,3,B
    Goto 2
    End
    If C=0
    Then
    AÜ+BÜüD
    ð(D)üC
    Output(4,1,"C=")
    Output(4,3,C
    Goto 2
    End
    Lbl 2
    Output(5,1,"AÜ=")
    Output(5,4,AÜ
    Output(6,1,"BÜ="
    Output(6,4,BÜ
    Output(7,1,"AÜ+BÜ="
    Output(7,7,AÜ+BÜ
    Output(8,1,"CÜ="
    Output(8,4,CÜ
    Pause 
    ClrHome
    Goto 1
    Lbl 3
    ClrHome
    Output(4,1,"      Bye!      "
    For(Á,1,750)
    End
    ClrHome
    Stop

  2. #2
    Join Date
    Dec 2008
    Location
    armenia
    Posts
    85
    Points
    156,105.62
    Rep Power
    200

    Red face

    ty but if you kno the 2 sides you just use this formula a*a+b*b=c*c
    if it could do it knowing the angles or only 1 side it would be awsome
    good job though

  3. #3
    Join Date
    Feb 2008
    Location
    New York
    Posts
    3,114
    Points
    2,766,290.34
    Rep Power
    226

    Default

    its mathematically impossible to do that -_-
    and nice app WMD, but the extension is .8xp?

  4. #4
    Join Date
    Apr 2008
    Location
    ATX
    Posts
    1,545
    Points
    1,591,322.65
    Rep Power
    219

    Default

    Quote Originally Posted by supafly12 View Post
    ty but if you kno the 2 sides you just use this formula a*a+b*b=c*c
    if it could do it knowing the angles or only 1 side it would be awsome
    good job though
    no shit. you just described the pythagorean theorem. a² + b² = c². this is a program for your calculator that does all the work for you. -_-
    Quote Originally Posted by Scruffy120 View Post
    its mathematically impossible to do that -_-
    and nice app WMD, but the extension is .8xp?
    no, if you know the angles you can use the law of cosines to find the side lengths. just learned about that yesterday in teh skool. at least i think so. we've been applying it to triangles that aren't right triangles but i don't see why it wouldn't work for a right triangle. if that is the case, i might write something to do if for me, if i do, i'll share with you nubbies. but i doubt i will that little phase died out fast. and .8xp is the extension because that's the extension for a TI-83/84 Plus calculator program, hence the [Calc] in the description.
    Last edited by WMD54; 01-10-2009 at 12:39 AM.

  5. #5
    Join Date
    Jun 2008
    Location
    Yes.
    Posts
    477
    Points
    460,542.80
    Rep Power
    207

    Default

    Very cool, too bad I use a cheap calc

  6. #6
    Join Date
    Jul 2008
    Location
    Phoenix, AZ
    Posts
    1,932
    Points
    3,231,545.02
    Rep Power
    216

    Default

    =o My dumb Alg 2 Math teacher is going through this. Im like a Genious In Math, (Cuz im ahead in credits :]) But i wish i had a good calculator to use this! Nice Job.

    My Personal ArtBlog & Resource Sharing: www.nxflow.com





+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts