-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Le 03/04/2015 11:23, Jori Mantysalo a écrit :
> On Thu, 2 Apr 2015, Guillaume CONNAN wrote:
> 
>> is there a library to do some symbolic calculations over integer
>> but with bitwise operations ? I need to work on symbolic
>> polynomials mixing arithmetic + and * and bitwise >> << & | ^ .
> 
> I don't know about a library. But in any case, isn't it quite easy
> to make some functions? Do I understand correctly that you mean
> something like
> 
> P.<a>=ZZ[] P1=10*a^2-7*a+3 P2=11*a^2-15*a+4 
> P3=(P1.coefficients()[0] | P2.coefficients()[0]) +
> (P1.coefficients()[1] | P2.coefficients()[1])*a +
> (P1.coefficients()[2] | P2.coefficients()[2])*a^2 P3
> 
Thanks,

it's to do something like ( P1 * P2 | a ) & P3 + 2

I'll try to do some coercion to make it as easily as P3 * P1 + P2 + 5...

- --
Guillaume

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.14 (GNU/Linux)

iF4EAREIAAYFAlUewjkACgkQ3evBxNNLf8i+aQD7BQ42+HkoIm8ng3T3jqggMJ/6
2eNFP5v10A6i6Bg7fvYBAIKm952yyugxdn7oSWi5zD1rPYes3ZkvntJlXHZG7jnX
=RwFC
-----END PGP SIGNATURE-----

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

Reply via email to