|
-
Jun 28th, 2002, 10:45 PM
#12
Frenzied Member
Re: Pythagoras theorem.
Originally posted by Lior
Hi,
I would wanna know how to be able to find groups of numbers who are valid groups for the known pythagoras theorem (a^2+b^2=c^2)
I mean, how can I represent A, B, and C with a general variable, let's say n.
so:
A = something with n
B = something with n
C = something with n
so A^2+B^2=C^2
therefore, when I know the number A, I can know also the numbers B and C
of course that in this way, B and C would be only one option for making a group with A.
I hope I made myself clear, sorry, that's my poor english level so far.
btw heres some VB code that'll do that for you. Make a multiline textbox with a scroll bar, and add this to a button:
VB Code:
Dim A As Long
Dim B As Long
Dim D As Long
Dim N As Long
Dim M As Long
For M = 1 To 1000
N = M + 1
A = Sqr(N) - Sqr(M)
B = 2 * N * M
c = Sqr(N) + Sqr(M)
Text1 = Text1 & A & "²" & vbTab & B & "²" & vbTab & "= " & c & "²" & vbCrLf
Next
I just applied the formula.
You just proved that sig advertisements work.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|