WeBWorK Main Forum

Best practices for randomization

Re: Best practices for randomization

by Andrew Parker -
Number of replies: 0
LOL, yes. I did some last-minute rearranging of the variables, and must have missed that line. (It should be `until ( $v . $w == 0 );` right there at the beginning...)

I've not written any linear algebra problems (except this one, of course), so I can't speak to the available contexts or macros - but if all you want is a check for independence, then checking that the cross product of the $sVec variables is not a zero vector would be all you'd need. (e.g. `norm($sVec1 x $sVec2) != 0` etc)