Closed jolyonb closed 5 years ago
Sounds good. How about:
vector_parallel_comparer
checks that student's input is a nonzero vector parallel to given vector.vector_phase_comparer
checks that two vectors are parallel and have the same magnitudeAnd if it was useful, also could have
vector_span_comparer
check that student's vector is in the span of of a bunch of other vectors.With appropriate tolerances for everything (nonzeroness, smallness of orthogonal projection, ...)
I could do at least 1 and 2 later tonight if you want.
I don't have a use for 3 presently, but 1 and 2 would definitely be helpful!
Resolved by #175
I'd really, really like a vector comparer that can ignore phases and/or normalization. I know we have one that requires an actual matrix, but I think we should be able to do it independently of a matrix...