1 | initial version |
Do you mean printing (instead of plotting) the matrices? (Not sure what it would mean to plot a matrix.) If you're just trying to get a floating point number to display with fewer digits, you might try something like
foo.n(digits = 3)
Unfortunately, this simple approach doesn't always give expressions of a uniform "width", in terms of the number of characters. For example:
print (pi).n(digits = 3)
print (pi*100000).n(digits = 3)
print (pi*100000000).n(digits = 3)
print (pi/100000).n(digits = 3)
print (pi/100000000).n(digits = 3)
returns
3.14
314000.
3.14e8
0.0000314
3.14e-8
2 | No.2 Revision |
Do you mean printing (instead of plotting) the matrices? (Not sure what it would mean to plot a matrix.) If you're just trying to get a floating point number to display with fewer digits, you might try something like
foo.n(digits = 3)
Unfortunately, this simple approach doesn't always give expressions of a uniform "width", in terms of the number of characters. For example:
print (pi).n(digits pi.n(digits = 3)
print (pi*100000).n(digits = 3)
print (pi*100000000).n(digits = 3)
print (pi/100000).n(digits = 3)
print (pi/100000000).n(digits = 3)
returns
3.14
314000.
3.14e8
0.0000314
3.14e-8