Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
|
|
@ -0,0 +1,17 @@
|
|||
Procedure GCDiv(a, b); Euclidean algorithm
|
||||
Protected r
|
||||
While b
|
||||
r = b
|
||||
b = a%b
|
||||
a = r
|
||||
Wend
|
||||
ProcedureReturn a
|
||||
EndProcedure
|
||||
|
||||
Procedure LCM(m,n)
|
||||
Protected t
|
||||
If m And n
|
||||
t=m*n/GCDiv(m,n)
|
||||
EndIf
|
||||
ProcedureReturn t*Sign(t)
|
||||
EndProcedure
|
||||
Loading…
Add table
Add a link
Reference in a new issue