number formats in matrices | topic started 9/28/2005; 6:44:48 PM last post 9/29/2005; 1:39:33 AM |
|
John Jones - Re: number formats in matrices 9/29/2005; 1:39:33 AM (reads: 443, responses: 0) |
Hi, The rochester cvs contains the file's history along with the changes for it over the years. From that, it looks like the same person who started to implement something along these lines then took it out. The comment when it was taken out was that "It seems as though the way I tried to fix long decimals isn't working the way I wanted it too, so I've commented it out for now." That was 2 years ago; I don't really know what was good/bad in the result. You could always uncomment the lines and try different matricies to see if it really does work the way you like. I think the reason this hasn't drawn much attention in the mean time is that most matricies in webwork problems are set up to look nicely to start with, e.g., but using integer entries. Problems which display matricies with non-integer decimals are probably unusual, and they may format the numbers in the problem itself so that display_matrix gets strings for the entries rather than variables holding real numbers. John |