]> www.ginac.de Git - ginac.git/commit
degree(), ldegree(), coeff(), lcoeff(), tcoeff() and collect() can now
authorChristian Bauer <Christian.Bauer@uni-mainz.de>
Mon, 2 Apr 2001 20:57:32 +0000 (20:57 +0000)
committerChristian Bauer <Christian.Bauer@uni-mainz.de>
Mon, 2 Apr 2001 20:57:32 +0000 (20:57 +0000)
commita40b470aeccc76b9a6055dc5191805e0bb6f7df2
treeaceccf012e3415cb4b0e37ca6c6b2d5ba24c6a09
parentd1f1d71f9cb477a1931ecf47d9fe78d020bb0dfa
degree(), ldegree(), coeff(), lcoeff(), tcoeff() and collect() can now
be used with constants and indexed expressions as well, so you can use
it to collect by powers of Pi or find the coefficient of gamma~0.
Limitations:
 - it only works with symbols, constants and indexed expressions;
   trying to find the coefficient of, e.g., "x^2" or "x+y" won't work
 - it does not know about dummy index summations; the coefficient of
   gamma~0 in p.mu*gamma~mu should be p.0 but is returned as 0
 - using the functions on elements of noncommutative products might
   return wrong or surprising results
22 files changed:
NEWS
doc/tutorial/ginac.texi
ginac/add.cpp
ginac/add.h
ginac/basic.cpp
ginac/basic.h
ginac/constant.cpp
ginac/constant.h
ginac/ex.cpp
ginac/ex.h
ginac/indexed.cpp
ginac/indexed.h
ginac/mul.cpp
ginac/mul.h
ginac/ncmul.cpp
ginac/ncmul.h
ginac/power.cpp
ginac/power.h
ginac/pseries.cpp
ginac/pseries.h
ginac/symbol.cpp
ginac/symbol.h