strange behavior of ex constructor from string
I'm currently testing the latest version of the Z-factorization code and found some weierd results that I believe show there is a bug in the ex constructor from a string. You can reproduce this bug the following way: compile the latest ftp://fourier.ujf-grenoble.fr/pub/hp48/giac.tgz (make install then make factor) Try ./factor zimmer7 answer is 0 Looking in my code, it seems that the call args.push_back(ex(string(ss2),lst(sym))); line 480 of polygauss.cc pushes a 0 instead of the correct expression (i.e. what's in the zimmer7 file) (you can check this by putting a breakpoint in factor.cc, l.27, p it->dbgprint() prints 0) The same call works when applied to zimmer1, zimmer2, zimmer3. Any ideas? Bye, Bernard
Hi! On Thu, Oct 19, 2000 at 11:00:35AM +0200, Parisse Bernard wrote:
Looking in my code, it seems that the call args.push_back(ex(string(ss2),lst(sym))); line 480 of polygauss.cc pushes a 0 instead of the correct expression (i.e. what's in the zimmer7 file)
That's probably because the zimmer7 file is syntactically incorrect, containing terms like 20734047820658568988275936059402711947017728*^286 and 604703470567171052x^32 Bye, Christian -- / Coding on PowerPC and proud of it \/ http://www.uni-mainz.de/~bauec002/
That's probably because the zimmer7 file is syntactically incorrect, containing terms like
20734047820658568988275936059402711947017728*^286
and
604703470567171052x^32
Sorry! I didn't check for a correct syntax since every time I had something incorrect, I got Abort. I will look more carefully in the futur... Thank you very much! Bernard
Hi! On Tue, Oct 24, 2000 at 05:08:09PM +0200, Bernard Parisse wrote:
I didn't check for a correct syntax since every time I had something incorrect, I got Abort.
The input parser throws an exception when it encounters a syntax error. Printing that exception might give a clue on what's wrong (OK, not in this case because the expression is very long and all it says is 'parse error at ^'). Bye, Christian -- / Coding on PowerPC and proud of it \/ http://www.uni-mainz.de/~bauec002/
participants (3)
-
Bernard Parisse
-
Christian Bauer
-
Parisse Bernard