author Christian Bauer Fri, 20 Apr 2001 23:06:55 +0000 (23:06 +0000) committer Christian Bauer Fri, 20 Apr 2001 23:06:55 +0000 (23:06 +0000) commit e58f5808a2d0fe6cb9d60370ede700d97a8bb702 tree 5669888b40ac24c53ef31a0e1b74e64dd8a80127 tree | snapshot parent 2e13bfeb92ce55b3ee7e24cc6041f70c7a0eff4e commit | diff
- color/clifford objects have representation label to distinguish elements
of different algebras; objects with different labels commute with each
other
- dirac_one() -> dirac_ONE()
- added gamma5 clifford objects which is constructed by dirac_gamma5()
- clifford::simplify_ncmul() anticommutes gamma5's to the front and removes
squares of gamma5
- the argument to collect() can be a list of objects in which case the
result is either a recursively collected polynomial, or a polynomial in
a distributed form with terms like coeff*x1^e1*...*xn^en, as specified by
the second argument to collect(). For example (ginsh):
> f=a*x-x+a*x*y+x*y+a*x*y^2-2*x*y^2+y^2;
a*x+y*a*x+y^2*a*x+y^2-x+y*x-2*y^2*x
> collect(f,x);
(-1+y+y^2*a+y*a+a-2*y^2)*x+y^2
> collect(f,y);
a*x-x+y^2*(1+a*x-2*x)+y*(a*x+x)
> collect(f,[x,y]);
(-1+y*(1+a)+y^2*(-2+a)+a)*x+y^2
> collect(f,[y,x]);
(-1+a)*x+y*(1+a)*x+(1+(-2+a)*x)*y^2
> collect_distributed(f,[x,y]);
(-1+a)*x+y^2*(-2+a)*x+y*(1+a)*x+y^2
 ginac/basic.cpp diff | blob | history ginac/basic.h diff | blob | history ginac/clifford.cpp diff | blob | history ginac/clifford.h diff | blob | history ginac/color.cpp diff | blob | history ginac/color.h diff | blob | history ginac/ex.cpp diff | blob | history ginac/ex.h diff | blob | history ginac/pseries.cpp diff | blob | history ginac/pseries.h diff | blob | history ginac/tinfos.h diff | blob | history