2018-10-11 15:20:46 +0100 | received badge | ● Taxonomist |

2012-09-07 07:12:16 +0100 | received badge | ● Famous Question (source) |

2011-09-14 02:04:29 +0100 | received badge | ● Notable Question (source) |

2011-03-09 10:01:20 +0100 | received badge | ● Popular Question (source) |

2010-10-14 23:11:12 +0100 | received badge | ● Student (source) |

2010-10-14 23:11:11 +0100 | received badge | ● Scholar (source) |

2010-09-29 18:26:01 +0100 | marked best answer | Changing number of decimal digits displayed in output Here's one idea: pass the matrix to a low-precision ring before printing it -- this won't change the original matrix, just the printed version: There is also a Trac ticket for this, with a patch, but work on it seems to have stalled . . . if you decide you need to use it, you can check the developer guide for how to apply patches to Sage. |

2010-09-29 16:37:13 +0100 | asked a question | Changing number of decimal digits displayed in output I am doing some computations with large matrices over the complex numbers. When these matrices are outputted, the entries appear, for example, as [ 0.03661165235? - 0.08838834765? I would like to change it so that the output only displays each entry to 3 decimal places, so that they are easier to see. Is there a way to do this? Is there a way to do this that doesn't alter the number of digits stored? For reference, my input is P8 = diagonal_matrix([1,1,1,0,0,0,0,1,1,0,0,0, 0,1,1,1]) U where U is a previously defined matrix with complex entries. Thanks! |

Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.