File: rducon.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 (28 lines) | stat: -rw-r--r-- 1,217 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
   REDUCE_CONSTS(exp) replaces constant subexpressions of EXP with
constructed constant ATOMs, saving the definition of all these
constructed constants in the list of equations CONST_EQNS, and
returning the modified EXP.  Those parts of EXP are constant which
return TRUE when operated on by the function CONSTANTP.  Hence,
before invoking REDUCE_CONSTS, one should do

DECLARE([<list of objects to be given the constant property>],CONSTANT)$

to set up a database of the constant quantities occurring in your
expressions.

   If you are planning to generate FORTRAN output after these symbolic
calculations, one of the first code sections should be the calculation
of all constants.  To generate this code segment, do

MAP('FORTRAN,CONST_EQNS)$

   Variables besides CONST_EQNS which affect REDUCE_CONSTS are:

      CONST_PREFIX['xx] is the string of characters used to prefix all
symbols generated by REDUCE_CONSTS to represent constant subexpressions.

      CONST_COUNTER[1] is the integer index used to generate unique
symbols to represent each constant subexpression found by REDUCE_CONSTS.

   To use REDUCE_CONSTS, do LOAD(RDUCON)$ .  A demonstration is given
in SHARE1;RDUCON DEMO .  Bugs to GCOOK@MIT-MC .