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

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

˜sqrtmod
>˜ sample of square root modulo a prime
G˜
Y(ƒPrmрÎñ2#)
j2ƒNumA0Ññê
ˆ<ƒNumAуNumA0ïñçƒPrm
±FƒSqrtAѳõSqrt_modó(ƒNumAƒPrm)
ÖP™ƒNumAçƒPrmƒSqrtAïñçƒPrm
ÝZ¿
æd˜
n˜* fnSqrt_mod(A,P) ver 1.1
.x˜ input : P prime >2
L‚˜ : A integer
†Œ˜ output : one of the square roots of A modulo P
¢–˜ destroy : nothing
Ë ˜ remark : WORD and POINT = any
Ôª˜
ò´³õSqrt_mod(ƒAƒP)
¾ºIƒXƒZEƒQƒAns
SȍƒPçñÑñŽƒAnsрڃAÂ(ƒPÝñ)èñƒP)À‡ñJ
pÒƒXуPÞñÀEÑÞñ
’Ü’À EÀƒXуXèñÀ“£
©æƒQÑñåƒXÝñ
ÖðƒZÑñÀ’À ƒZÀ“€ÈƒZƒP)ÑÞñ
úúƒZрۀڃZƒQƒP)ƒP)
8ƒXрڃAƒQƒP)ÀƒAnsрڃAÂ(ƒQÝñ)èñƒP)
XƒKÑ(ƒPÞñ)è(ñåƒQ)
s‰IсEÞñŠð‹Þñ
Ø"€ÚƒXƒKƒP)ÖñŽƒAnsуAnsåƒZçƒPÀƒZуZïñçƒPÀƒXуXåƒZçƒPÀƒKèÑñ
þ6ÀƒZуZïñçƒPÀƒKèÑñ
@Œ
>J(ƒAnsïñރA)çƒPÖðŽ™"illegal parameter"À–À¿
LT•(ƒAns)


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