File: rncomb.dem

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 (13 lines) | stat: -rw-r--r-- 369 bytes parent folder | download | duplicates (2)
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);