invalid expression in content|unit|...()

Richard B. Kreckel kreckel at thep.physik.uni-mainz.de
Sat Dec 8 14:55:16 CET 2001


Hi,

On Thu, 22 Nov 2001, Christian Bauer wrote:
> On Thu, Nov 22, 2001 at 08:10:56PM +0200, Pearu Peterson wrote:
> > Ok then, but how about the following solution: remove constant
> > class altogether and put its current initnumber/efun stuff into symbol
> > class.
> 
> This is what I had in mind.
> 
> > simplify_indexed(p.i^2*q.j^2-p.n^2*q.j^2)-0 erroneously returned
> > p.i^2*q.j^2-q.i^2*p.j^2 instead of 0
> 
> Interesting. Maybe this is one of those checks that were never guaranteed
> to always work... :-)

Indeed.  It is sensitive to the serial number of the symbols involved.  I
have attached a testsuite for this particular problem.  Am wondering what
"never guaranteed to always work" was supposed to mean...

Cheers
    -richy.
-- 
Richard B. Kreckel
<Richard.Kreckel at Uni-Mainz.DE>
<http://wwwthep.physik.uni-mainz.de/~kreckel/>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: indextest.cc
Type: text/x-c++src
Size: 1455 bytes
Desc: indextest.cc
Url : http://www.cebix.net/pipermail/ginac-devel/attachments/20011208/799839d9/indextest.bin


More information about the GiNaC-devel mailing list