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 places
it produces a leading zero followed by 7 digits.  Why not smaller
numbers such as 3 or 4?

I understand that for computation, there is no difference.  But
eventually I plan to use these numbers (copy/paste, redirect to LaTeX
output, etc) in my thesis (I'm a PhD student).  It seems easy enough
to just edit each number that I use.  However, I will have numerous
tables (matrices) with literally hundreds of values.  I would much
prefer a simpler way to approach this.

I've found such a patch for mpmath<http://code.google.com/p/mpmath/
issues/detail?id=158>, but have since switched to sympy for the beauty
of its symbolic visualisation.

Any help would be greatly appreciated.

Thanks,
~~archery~~

--

You received this message because you are subscribed to the Google Groups 
"sympy" group.
To post to this group, send email to sy...@googlegroups.com.
To unsubscribe from this group, send email to 
sympy+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sympy?hl=en.


Reply via email to