PDA

View Full Version : [Calc] Pythagorean Theorem



WMD54
10-14-2008, 11:01 PM
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.

:"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

supafly12
01-06-2009, 01:25 PM
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

Scruffy120
01-09-2009, 06:31 PM
its mathematically impossible to do that -_-
and nice app WMD, but the extension is .8xp?

WMD54
01-10-2009, 12:36 AM
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. -_-

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.

Blaze_Fire
01-10-2009, 03:51 AM
Very cool, too bad I use a cheap calc :D

nx.dcr
01-12-2009, 11:07 PM
=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.