[sympy] Re: printing exponential format vs float numbers

2009-12-02 Thread Vinzent Steinberg
On 1 déc, 16:45, archeryguru2000 wrote: > I was wondering, is there a way to tell sympy NOT to use exponential > format when printing numbers? > > For example: > > In [2]: N(pi/(2*E),4) > Out[2]: 5.779e-1  #But I'd rather see 0.5779 > > If I choose a larger number, say 7, for the number of decimal

[sympy] Re: printing exponential format vs float numbers

2009-12-02 Thread archeryguru2000
Is there any way to convert a sympy Matrix (or even numpy array, etc) to an mpmath matrix? I have tried patching sympy.mpmath, but now I get errors trying to convert sympy to mpmath! Actually, is there a way to tell N(x, n=15, **options) to NOT print exponential format? I will take a look at thi

[sympy] Re: printing exponential format vs float numbers

2009-12-03 Thread Vinzent Steinberg
On 2 déc, 22:37, archeryguru2000 wrote: > Is there any way to convert a sympy Matrix (or even numpy array, etc) > to an mpmath matrix?  I have tried patching sympy.mpmath, but now I > get errors trying to convert sympy to mpmath! > Actually, is there a way to tell N(x, n=15, **options) to NOT p

[sympy] Re: printing exponential format vs float numbers

2009-12-03 Thread Vinzent Steinberg
Sorry for double-posting, sent previous message by mistake. On 2 déc, 22:37, archeryguru2000 wrote: > Is there any way to convert a sympy Matrix (or even numpy array, etc) > to an mpmath matrix?  I have tried patching sympy.mpmath, but now I > get errors trying to convert sympy to mpmath! Normal

[sympy] Re: printing exponential format vs float numbers

2009-12-03 Thread archeryguru2000
Ok, I think I have it. I have (hopefully) compiled a set of patches that implements what I've done. I have modified the following files: .../sympy/mpmath/mptypes.py .../sympy/mpmath/matrices.py .../sympy.mpmath/libmpf.py Basically I've just modified the patch that is found on the aforementioned

[sympy] Re: printing exponential format vs float numbers

2009-12-04 Thread archeryguru2000
I have created an issue for this. Hopefully this is successful, and I also hope other will benefit from this. ~~archery~~ On Dec 3, 4:28 pm, "Aaron S. Meurer" wrote: > We use the Google Code issues page > athttp://code.google.com/p/sympy/is

Re: [sympy] Re: printing exponential format vs float numbers

2009-12-03 Thread Aaron S. Meurer
We use the Google Code issues page at http://code.google.com/p/sympy/issues/list. Create an issue and upload the patch to it. Aaron Meurer On Dec 3, 2009, at 1:06 PM, archeryguru2000 wrote: > Ok, I think I have it. I have (hopefully) compiled a set of patches > that implements what I've done.