home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.hp48
- Path: sparky!uunet!think.com!rpi!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!fseipel
- From: fseipel@magnus.acs.ohio-state.edu (Frank E Seipel)
- Subject: Simplification of polynomial products
- Message-ID: <1992Nov16.022804.6403@magnus.acs.ohio-state.edu>
- Sender: news@magnus.acs.ohio-state.edu
- Nntp-Posting-Host: magnusug.magnus.acs.ohio-state.edu
- Organization: The Ohio State University
- Date: Mon, 16 Nov 1992 02:28:04 GMT
- Lines: 22
-
- Here is a short program to take an algebraic on Level 1 and simplify
- it completely through successive EXPANDs until the resulting polynomial
- is unchanged. It then performs a COLCT on the resulting polynomial, e.g.
-
- Input: Output:
-
- 4: 4:
- 3: 3:
- 2: 2:
- 1: '(X+7)*(2*X+4)*(X-8)' 1: '-224+2*X^3+2*X^2-116*X'
- SIMP
-
- SIMP:
-
- << 0 -> P2 P1
- << DO P2 'P1' STO P2 EXPAN 'P2' STO UNTIL P1 P2 SAME END P2 COLCT >>
- >>
-
- --
-
- Frank Seipel A.C.E.C. BBS (614) 471-8559 3/12/24oo bps
- fseipel@magnus.acs.ohio-state.edu Pandora BBS (614) 471-9209 3/12oo bps
-