Opened 13 years ago

Closed 13 years ago

#227 closed bug (wontfix)

missing cast: constant poly to bigint

Reported by: gorzel Owned by: hannes
Priority: minor Milestone: 3-1-2 and higher
Component: singular-kernel Version: 3-1-1
Keywords: Cc:

Description

The cast bigint from a constant poly to bigint is not implemented.

Compare with the cast int(constant poly) -> int

ring r =(0,a),x,dp;

poly f = x+1;

int(f); OK

? poly must be constant ? error occurred in or before STDIN line 138: int(f); ? wrong type declaration. type 'help int;'

poly g = 1;

int(g);

1 OK, cast int converts constant poly to int

poly h = a;

int(h); OK

0

----- Now the same with bigint ------------------------------

bigint(f); Message OK

? poly must be constant ? error occurred in or before STDIN line 141: bigint(f);

bigint(g); Fails here

? cannot convert to bigint ? error occurred in or before STDIN line 142: bigint(g);

bigint(h); This should give 0 as int(h); above

? cannot convert to bigint ? error occurred in or before STDIN line 148: bigint(h);

Change History (1)

comment:1 Changed 13 years ago by hannes

Resolution: wontfix
Status: newclosed

conversion to bigint only for simple (coefficient) fields. May be extended in future releases.

Note: See TracTickets for help on using tickets.