what's this
Richard B. Kreckel
kreckel at thep.physik.uni-mainz.de
Fri Sep 22 21:29:12 CEST 2000
On Fri, 22 Sep 2000, Do Hoang Son wrote:
> > a=1/(1-x-x^2);
> (1-x-x^2)^(-1)
> > b=series(a,x==0,3);
> 1+1*x+2*x^2+Order(x^3)
> > b/2;
> 1/2*1+1*x+2*x^2+Order(x^3)
> ^^^^^^
> I checked and find out it's not the print() problem so maybe it comes from
> the expand()?
Of course it is a pseries::print() problem! There were two mistakes:
1) It didn't check precedence against upper_precedence (blame me) and
2) pseries was inheriting it's precedence from basic (blame christian).
I have committed the patches to CVS.
Cheers
-richy.
--
Richard Kreckel
<Richard.Kreckel at Uni-Mainz.DE>
<http://wwwthep.physik.uni-mainz.de/~kreckel/>
More information about the GiNaC-devel
mailing list