|Links to HEAD:||(view) (download) (as text) (annotate)|
Fixed conceptual error in compare_vec_solution. This should fix bug #670. In my opinion the entire concept of vec_solution_cmp should be reconsidered. In solving an underdetermined linear equation of the form Ax-b=0 it seems to me that the solutions answer in the form: x= a +bt+cu+ds where a,b,c,d are vectors should simply be evaluated to see if it satisfies Ax-b=0 for 5 or six values of a,b,c,d -- checking the solution should use a vector valued version of fun_cmp. As it is, the student's coefficients for a,b,c,d are compared with the instructors to see if they span the same space. This is quite a bit more complicated -- and indeed the method came up with the wrong answer. I believe I have the method corrected, but I would suggest that this answer evaluator be replaced with one which operates more directly and is therefore easier to maintain. Am I missing something in this analysis? Has someone else created answer evaluators for this type of problem? -- Mike
This commit was manufactured by cvs2svn to create branch 'rel-2-1-patches'.
Changed the naming of arrays from ArRaY[0,0,0] to ArRaY__0:0:0:__ This involved changes in PG.pl and PGmorematrixmacros (ans_array_filter) Made other cosmetic fixes to code. Added names to many filters to help with debugging. It seems to work for now.
removed unneeded #! line
fixed #! line
Removed the last change, it's now handled in display_matrix.
Added a pretty_matrix sub routine to fix some rounding problems.
Added a vec_solution_cmp. Used for problems where the answer needs to be v1_s*v2+t*v3 where v1,v2,and v3 are vectors. v1 has to be a linear combination of the professors answer where the first one has a nonzero coefficient. The others are a basis, and are compared with compare_basis.
Matrices now displayed in previewer.
committed the wrong thing
fixed a bug
Made the code more object-oriented
Matrices now take math constants.
Student answer now displayed in a html table given by jones's display matrix method in PGmatrixmacros. The braces were giving me headaches so I set the option to none, at least for now.
Was not accepting negative answers, the sign problem is fixed now.
Ok, there is the ans_array_filter added which allows for the answer to be coming from the ans_array.
remove unneccsary shebang lines Arnie
Bringing these files in sync with the latest versions in the courseScripts CVS --Mike
Adding recent macro files to the pg collection --Mike
This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, enter a numeric revision.
|aubreyja at gmail dot com||ViewVC Help|
|Powered by ViewVC 1.0.9|