Re: [sympy] Sympy change of base?

2010-06-22 Thread John Connor
It's not so much a printing issue as an ease of manipulation issue. In base 16 I can go: In [30]: hex = ee36 In [31]: int(hex, 16) Out[31]: 60982 In [32]: int(hex[0], 16) Out[32]: 14 In [34]: int(hex[2], 16) Out[34]: 3 I would like to be able to do that with any base, so I could say: base1000

[sympy] Sympy change of base?

2010-06-21 Thread John Connor
Hello all, I was wondering how sympy handles numbers with different bases (positional notation)? I would like to be able to convert a number from any base to any base, but because 'base' means so many different things in different contexts searching the docs / source has been fruitless. I am