Forum archive 2000-2006

Thomas Hagedorn - display_matrix problem with decimals

Thomas Hagedorn - display_matrix problem with decimals

by Arnold Pizer -
Number of replies: 0
inactiveTopicdisplay_matrix problem with decimals topic started 4/13/2004; 3:03:34 PM
last post 4/15/2004; 1:27:38 PM
userThomas Hagedorn - display_matrix problem with decimals  blueArrow
4/13/2004; 3:03:34 PM (reads: 804, responses: 3)

Has anyone else had this problem?   We're running Webwork 1.9 and
I have a problem, where the command

display_matrix([[$a, -.5], [$c, $d]])

does not display the -.5 value of the matrix.  Instead, that value is rounded to 0.

The entire command is :

{ mbox( 'Let (A=)', display_matrix([[$a, -.5], [$c, $d]]), '.') }$BR

Any suggestions on what is going on?

-Tom

<| Post or View Comments |>


userJohn Jones - Re: display_matrix problem with decimals  blueArrow
4/13/2004; 3:18:48 PM (reads: 946, responses: 0)
I just tried this (in ww1.9 and ww2) and it comes out fine.  Maybe updating the matrix related files from cvs will solve the problem. This would be files with matrix in their name (you don't actually need all of those, but they shouldn't hurt), and PGbasicmacros.

The one caveat I can think of is that the most recent versions of the matrix commands need recent copies of files related to the problem translator.  I don't know if all versions of 1.9 are ok with the most recent matrix producing files.  Unless someone suggests otherwise, I would make copies of the files before replacing them.

John

<| Post or View Comments |>


userMichael Gage - Re: display_matrix problem with decimals  blueArrow
4/13/2004; 3:19:17 PM (reads: 979, responses: 0)
What happens if you use -0.5? (Remembering the old FORTRAN days. :-) )

-- Mike

<| Post or View Comments |>


userThomas Hagedorn - Re: display_matrix problem with decimals  blueArrow
4/15/2004; 1:27:38 PM (reads: 985, responses: 0)
Unfortunately -0.5 doesn't fix it!!

It seems that we have some local issues here and some of our macros may be
of different  update versions.   We're intending to upgrade to WebWork 2.0 in about
2 weeks, when the semester is over, so if others aren't having this problem, I'm
content to wait and see if it still exists once we do the upgrade.

Thanks!

-Tom

<| Post or View Comments |>