Subversion Repositories wimsdev

Rev

Rev 38 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
20 reyssat 1
# Standardized expression simplification.
2
# Input are lines.
3
# Output are lines, in $out.
4
 
5
I__=!nonempty lines $wims_read_parm
6
n__=!linecnt $I__
7
!reset out,p__
8
!for i__=1 to $n__
16136 bpr 9
  l__=!line $i__ of $I__
10
  l__=$maximasimp($l__)
11
  !if expand iswordof $m_options
12
    l__=expand($l__)
13
  !endif
14
  !if factor iswordof $m_options
15
    l__=factor($l__)
16
  !endif
17
  p__=!append line $l__; to $p__
20 reyssat 18
!next i__
19
 
20
out=!exec maxima $p__