Hi Ingo, On Thu, Jun 3, 2010 at 1:08 AM, Ingo <[email protected]> wrote: > I often use very large matrices with floating point numbers but find > it very hard to see whats going on because by default both print and > pprint display all numbers to ten decimals. > I was wondering if there was any way to limit the display to three or > four significant figures? > I've spent days searching the but haven't found anything.
The way to do it that I know of is to subclass let's say the StrPrinter and redefine the _print_Real() method to print the numbers the way you want. And then it should just work. It's described here how to use your custom printer: http://docs.sympy.org/modules/printing.html let me know if you have any problems implementing this. Ondrej -- You received this message because you are subscribed to the Google Groups "sympy" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/sympy?hl=en.
