Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

vdelecroix's answer is perfectly fine. I just wanted to add that if you insist on being able to use 2**v then maybe you will like numpy. See here for an example.

However, what seems a bit strange is that if you try using that method through sage you will get an error, see here. Is this a bug or a feature?

vdelecroix's answer is perfectly fine. I just wanted to add that if you insist on being able to use 2**v then maybe you will like numpy. See here for an example.

However, what seems Update: It is possible to use 2.^v from within sage if v is a bit strange is that if you try using that method through sage you will get an error, see here. Is this a bug or a feature?numpy array (see link above).