declaring 'number'^'bigint'
vkrao100 · Thu Jul 25, 2019 8:17 pm
Dear forum members,
I am looking to declare a number whose exponent can be a bigint instead of int (required for my experiments).
for ex: number beta = (alpha)^(2^33).
I have worked around the Singular source code to allow exponents up to (2^63)-1.
Understandably, Singular complains about the following error due to its limitations on number declaration:
`number` ^ `bigint` failed
expected `number` ^ `int`
I am working over a polynomial ring with variables whose coefficients are in the finite field F_q (q=2^k extension) and variables take values in F_2.
I also saw the feature to typecast a given 'number' to 'bigint' as shown in the manual in bigint declaration (Manual/4-0-3/sing_74.htm#SEC113), but Singular errors out saying it cannot typecast a number to bigint.
So, my question is:
1. Is there a restriction on typecasting a number to bigint? The manual clearly says that a number can be typecasted to bigint.
2. If this typecasting cannot be done, Is there a way around to declare a number^bigint by altering some part of the source code?
3. If 1. and 2. are not feasible, is there any other way to tackle this problem as it is a must-do experiment?
Appreciate all the help I can get on this.
thanks in advance,
-Vikas
I am looking to declare a number whose exponent can be a bigint instead of int (required for my experiments).
for ex: number beta = (alpha)^(2^33).
I have worked around the Singular source code to allow exponents up to (2^63)-1.
Understandably, Singular complains about the following error due to its limitations on number declaration:
`number` ^ `bigint` failed
expected `number` ^ `int`
I am working over a polynomial ring with variables whose coefficients are in the finite field F_q (q=2^k extension) and variables take values in F_2.
I also saw the feature to typecast a given 'number' to 'bigint' as shown in the manual in bigint declaration (Manual/4-0-3/sing_74.htm#SEC113), but Singular errors out saying it cannot typecast a number to bigint.
So, my question is:
1. Is there a restriction on typecasting a number to bigint? The manual clearly says that a number can be typecasted to bigint.
2. If this typecasting cannot be done, Is there a way around to declare a number^bigint by altering some part of the source code?
3. If 1. and 2. are not feasible, is there any other way to tackle this problem as it is a must-do experiment?
Appreciate all the help I can get on this.
thanks in advance,
-Vikas