File: rncomb.dem

package info (click to toggle)
maxima 5.49.0-1~exp1
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 128,980 kB
  • sloc: lisp: 437,854; fortran: 14,665; tcl: 10,143; sh: 4,598; makefile: 2,204; ansic: 447; java: 374; python: 262; perl: 201; xml: 60; awk: 28; sed: 15; javascript: 2
file content (13 lines) | stat: -rw-r--r-- 369 bytes parent folder | download | duplicates (19)
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);