File: rncomb.dem

package info (click to toggle)
maxima 5.21.1-2squeeze
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 94,928 kB
  • ctags: 43,849
  • sloc: lisp: 298,974; fortran: 14,666; perl: 14,325; tcl: 10,494; sh: 4,052; makefile: 2,975; ansic: 471; awk: 24; sed: 7
file content (13 lines) | stat: -rw-r--r-- 369 bytes parent folder | download | duplicates (16)
1
2
3
4
5
6
7
8
9
10
11
12
13
load("rncomb")$
/*  COMBINE will not combine the terms in EXP1 because
      their denominators are not identical:   */
exp1:x/(2*(x+y))+z/(x+y);
combine(exp1);
/*  RNCOMBINE will: */
rncombine(%);
/*  RNCOMBINE will combine terms whenever their denominators are
    identical or differ by a numerical factor.  */
exp2:a/2+b/2+c/3+d/3;
combine(exp2);
rncombine(exp2);