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

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

˜UNITR2 version 2.3
%˜
`(™" * Fundamental Units of Real Quadratic Fields *"
2™" * coefficients w.r.t standard integer basis *"À™
¬<õINPUT
ÀF§"start="ÁƒM
ÞPƒMÔñŽ™À‡õINPUT
ZƒMÓñïñ"Ž™"too big"À‡õINPUT
d¸
"n™ƒMÁ":"Á
Ex³õSqDiv(ƒM)ÒñŽ™À¶
p‚ˆõUnitR2(ƒMÂ&…AÂ&…BÂ&ƒNorm)
‹Œ™" "ÁƒNormÁ"= Norm"Á
§–™"("Á…AÁ","Á…BÁ")"
® ·
¹ª ƒM
´¹
ɾ¿
ÒȘ
üÒõUnitR2(ƒMÂ&…AÂ&…BÂ&ƒNorm)
ܘ in: M
Eæ˜ out: A#,B# are coefficients and Norm is its norm
}ðºƒAƒCƒA0ƒC0ƒQM…C…G…WA…WB…WC
†ú˜
µ˜*get irreducible quadratic irrationals
¾˜
ЃQMрƃM)
ø"ƒMçñÖñŽƒAуQMÀƒCÑñ
%,
ÀƒAуQMÀƒCÑñÀ€æƒA)Ž¡ƒA
[6ƒA0уAÀƒC0уCÀ…AуA0À…BÑñÀ…CуC0
d@˜
ŠJ˜*continued fraction expansion
“T˜
œ^¸
¼hƒAуQMÞ(ƒA݃QM)çƒC
ÛrƒCÑ(ƒMރAïñ)èƒC
|€çƒCуC0ƒAуA0}Žõ Normalize
K†…WAхAåƒA݅BåƒMÀ…WBхA݃Aå…BÀ…WCхCåƒC
j…GрĀąWA…WC)…WB)
œš…AхWAè…GÀ…BхWBè…GÀ…CхWCè…G
¥¤¹
®®˜
θ˜*normalize coefficients
ט
êÌõ Normalize
֍ƒMçñÖñŽƒNormхAïñޅBïñåƒM
'à
À
Vê
À…CÖñŽ…AÑñå…AÀ…BÑñå…B—
qô
À…AÑ(…AޅB)èñ
¦þ
ÀƒNormÑ((ñå…A݅B)ïñރMå…Bïñ)èñ
­•
¶˜
Ô˜ get a square divisor
Ý&˜
ó0³õSqDiv(ƒN)
þ:ºƒSD
DƒSDруN)ÀƒNуNèƒSD
LNƒNÑñŽƒSDÑñƒNçƒSDŽñD
YX•(ƒSD)


  3 Responses to “Category : BASIC Source Code
Archive   : UBAS830.ZIP
Filename : UNITR2.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/