Category : BASIC Source Code
Archive   : UBAS830.ZIP
Filename : REALQF.UB

 
Output of file : REALQF.UB contained in archive : UBAS830.ZIP

˜±
REALQF version 2.3
C˜Ø
1st version by Y.KIDA
s˜ corrected & revised by A.KUDO & Y.KIDA
|(˜
†2Ÿñ
¡<ƒXFÑñˆÀƒOFÑñïñ
»F¤„XƒXF)‚MXƒXF)
P™À™"Fundamental units and class numbers of real quadratic fields"
QZ™"Displays fundamental units as coefficients of canonical integral basis"
dõINPUT™À§"Inside the square root="ÁƒM
Šn¨€š
xƒMÔñŽ¿
‚ƒMÒñïñ"Ž™"Too big"À‡ñd
Œ³õSqDiv(ƒM)ÒñŽ™"It has a square divisor."À‡ñd
–ˆõ
RealQuadratic(ƒM)
O ™"Fundamental units is ("Á…UAÁ","Á…UBÁ")"
rª™"Class number is "ÁƒH
’´™"( F="ÁƒFÁ")"Á€âñ)Á€š
¢¾‡õINPUT
«È˜
¹Ò˜PART1
Âܘ
ßæõ
RealQuadratic(ƒM)
ðƒDуMÀƒAÑñÀƒMçñÖñŽƒDÑñåƒMÀƒAÑñ
'ú˜
~˜PART 2 : Register irreducible quadratic irrational numbers (half numbers only)
‡˜
 ƒQDрƃD)ÀƒFÑð
©"¸
ß,ƒYÑ(ƒDރAïñ)èñÀƒYÕð‡õ EXPAND_IN
ù6ƒIAÑ(ƒQDރA)èñ
@€æƒY)Ž
'JÀ‰ƒCуIAÝñŠ€ÆƒY)
`T ÀƒYçƒC ƒFÀ„XƒF)уAåƒOFÝñåƒC—
h^ÀŒ
rhÀ
œrÀ‰ƒCуIA݃IAçñÝñŠ€ÆƒY)‹ñ
Õ| ÀƒYçƒC ƒFÀ„XƒF)уAåƒOFÝñåƒC—
݆ÀŒ
ðƒAуAÝñ
ùš¹
¤˜
<®˜PART 3 : Expand in ontinued fraction and classify
~¸˜ Calculate fundamental units simultaneously first
‡Â˜
šÌõ EXPAND_IN
»Ö„XƒFÝñ)ÑðÀ˜sentinel
ÙàƒHÑðÀIIÑñÀƒNÑñ
êƒX0фXII)ÀƒAуX0èƒOFÀƒCÑ£
%ô…UAуAÀ…UBÑñÀ…UCуC
.þ˜
7¸
{ƒC0уCÀƒAуQDÞ(ƒA݃QD)çƒCÀƒCÑ(ƒDރAïñ)èƒC
¡ƒC҃C0‡ñDÀ˜unregistered
º&ƒXуAåƒOF݃C
ì0ƒXуX0‡õEXP1_END˜expansion cycles
3:IрäƒX„Xñ)ƒF)ÝñÀ‚MXI)ÑñÀ˜delete same class
tD…WAхUAåƒA݅UBåƒDÀ…WBхUA݅UBåƒAÀ…WCхUCåƒC
“N…GрąWA€ąWB…WC))
ÅX…UAхWAè…GÀ…UBхWBè…GÀ…UCхWCè…G
Ðb ƒN
Ùl¹
âv˜
ô€õEXP1_END
ŠƒDçñŽ
5”À…UCÖñŽ…UAÑñå…UAÀ…UBÑñå…UB—
PžÀ…UAÑ(…UAޅUB)èñ
Z¨À
z²À…UCÑñŽ…UBÑñå…UB
’¼À…UAхUAèñ—
›Æ˜
­ÐõALLDONE?
ËÚ’À IIÀ“‚MXII)Ñð
òä ƒHÀIIՃF‡õ
NEXT_CLASS
 NçñŽƒHÑރH
" ø¢‚MXðÃF)Ñð
) •
2 ˜
F õ
NEXT_CLASS
p ƒX0фXII)ÀƒAуX0èƒOFÀƒCÑ£
y *˜
‚ 4¸
‹ >’
Ï HƒC0уCÀƒAуQDÞ(ƒA݃QD)çƒCÀƒCÑ(ƒDރAïñ)èƒC
á R“ƒCՃC0
ú \ƒXуAåƒOF݃C

fƒXуX0‡õALLDONE?
K
pIрäƒX„Xñ)ƒF)ÝñÀ‚MXI)Ññ
T
z¹
]
„˜
{
Ž˜ get a square divisor
„
˜˜
š
¢³õSqDiv(ƒN)
¥
¬ºƒSD
Æ
¶ƒSDруN)ÀƒNуNèƒSD
ó
ÀƒNÑñŽƒSDÑñƒNçƒSDŽñ¶
Ê•(ƒSD)


  3 Responses to “Category : BASIC Source Code
Archive   : UBAS830.ZIP
Filename : REALQF.UB

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/