File: scifac.usg

package info (click to toggle)
maxima 5.6-17
  • links: PTS
  • area: main
  • in suites: woody
  • size: 30,572 kB
  • ctags: 47,715
  • sloc: ansic: 154,079; lisp: 147,553; asm: 45,843; tcl: 16,744; sh: 11,057; makefile: 7,198; perl: 1,842; sed: 334; fortran: 24; awk: 5
file content (18 lines) | stat: -rw-r--r-- 874 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
   GCFAC(exp) is a new factoring function that does approximately what
scientists do in trying to make expressions more compact.  It is limited
to monomial-type factoring.  For a sum, it does the following:

	1) Factors over the integers.
	2) Factors out the largest powers of terms occurring as
	   coefficients, regardless of the complexity of the terms.
	3) Uses (1) and (2) in factoring adjacent pairs of terms.
	4) Repeatedly and recursively applies these techniques until
	   the expression no longer changes.

   Feature (3) does not necessarily do an optimal job of pairwise
factoring because of the combinatorially-difficult nature of finding
which of all possible rearrangements of the pairs yields the most
compact pair-factored result.

   To access this function, do LOAD(SCIFAC)$ .  A demonstration is
available in SHARE1;SCIFAC DEMO .  Bugs to GCOOK@MIT-MC .