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

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

˜¸ POLFACT1 VER 2.0
™
U™" * Polynomial factorization modulo a prime *"
Š(™" * gives only a decomposition type *"
¿2™" * use x or X for a variable *"
ö<™" * example : x^3+2*x^2+3*x+4 *"À™
ÿF˜ž

K€®ÂÂð
P±"f(x)="Á…W
*Z…U0Ñ""
AdIѲ…WÂ"xX")
‡n&IŽ…U0Ýр¼…WIÞñ)Ý"_X"À…Wр»…WIÝñÂå)À‡ñd
žx…U0рý…U0݅W)
³‚™À™"f(X)="Á…U0
ÃŒAutoswÑð
Ñ–õModP
ʪ˪"--------------------------------------------"
9ªØAutoswŽƒPр΁Autosw)À AutoswÀ‡ñæ
M´§"Mod P="ÁƒP
^¾ƒPÑðŽ¿
…ÈÀ¯°$ƒPÔðŽAutoswÑރPÀ‡ñª
œÒ]ƒPրуP)Ž™
¾ÜÀ™"not a prime"À€¤À‡õModP
Øæ™" modulo "ÁƒPÀ™
ð…XѳõPolfact1Uô(…U0ƒP)ÀMojiÑñA
ú‰IÑñŠ€Â…X)
4…Wрþ…XI)
X™"degree="Á€ìñ)€þ…WÂñ)Á
i™" type= "Á
€"‰JÑñŠ€Â…W)
™, Ramiрþ…WJ)
´6 RamiŽ™€ÓMoji)Á
å@ À„RamiÒñŽ™"("Á€»€üRami)ÂñÂå)Á")"Á
òJ  Moji
ùTŒ
^™
hŒ
&rÅ€Â…X)ÑðŽ™" constant"
5|‡õModpp
>†˜
G˜
Pš˜
m¤õPolfact1(…U0ƒP)
®ºIDeg…UÑð…Ansр½)
¢¸¤†Z²Û…U0))
¯Â²‘уP
å̉IÑðŠ²Û…U0)À€ÿ…UI)рÿ…U0I)çƒPÀŒ
֍Ÿ²Û…U)ÕðŽ•(…Ans)
'à…UѲ݅U)À˜ýRemoveConstFactor
0ê˜
Uô˜ get factors for each degree
^þ˜
pˆõMakeZPZ:ô
DegÑñ
“õ
DegreeLoop
°&…Xѳõ
DegreeFactors¨ô
Ï0€Â…X)Ž…AnsÝр½…X)
:¶²Û…U)ÒñåDegÝñŽˆõRaiseZPZmí Deg
DÀ‡õ
DegreeLoop"
@Nß²Û…U)Ž…AnsÝр½€½²Û…U)Âñ))
JX²‘Ñð
Xb•(…Ans)
al˜
€v˜ Get number of factors
‰€˜
¡Š³õ
DegreeFactors
Ë”ºDegMemDegG…G…AnsÀRamiÑð
ñž…GрąU…Z)ÀDegGѲۅG)
¨°DegGÑðŽ…Ansр½)À‡ñ4
;²…Ansр½Deg)ÀDegMemсDegGèDeg
b¼…UèхGÀ£Ž–À˜system error
ˆÆ…GрąU…Z)ÀDegGѲۅG)
˜Ðê²Û…G)
¥Ú Rami
Ú䉁IÑñŠDegMemށDegGèDegÀ…AnsÝсRamiÀŒ
õîDegMemсDegGèDeg
ø…UèхGÀ»£Ž–À˜system error
B…GрąU…Z)ÀDegGѲۅG)
K ‘.
X Rami
€ ‰IÑñŠDegMemÀ…AnsÝсRamiÀŒ
©*‰IÑñŠ²Û…U)À†ZI)çхUÀŒ
·4•(…Ans)
À>˜
ÔH˜ MAKE Z^P-Z
ÝR˜
î\õMakeZPZ
þfºI…W
% p²Û…U)҃PŽ…ZÑ_XïƒPÀ‡ñ¶
D z…WрûðÂñ)À…Zрûñ)
] „‰IÑðŠ€ÂƒP)Þñ
† Ž€ÃIƒP)Ž…ZхZå…Wç…U
ž ˜…WхWïñç…U
¥ ¢Œ
¾ ¬…ZхZå…Wç…U
Û ¶…WхZÀ†Zñ)хZ

À‰IÑñŠ²Û…U)À…WхWå…Zç…UÀ†ZI)хWÀŒ
6
Ê…ZÑ(…ZހûðÂñ))ç…U
=
Ô•
F
Þ˜
`
è˜ MAKE Z^(P^deg)-Z
i
ò˜
{
üõRaiseZPZ
‹
ºI…W
£
…WхZ݀ûðÂñ)
º
…Zрû€ÿ…WÂð))
ð
$‰IÑñŠ²Û…W)À…ZÝцZI)å€ÿ…WI)ÀŒ
 .…ZÑ(…ZހûðÂñ))ç…U
 8•


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