Open Wattsy2020 opened 4 years ago
Another few ideas test rotation of vectors by the fact that rotating a vector A by 360 degrees shouldn't change it test finding the length of the vector by the fact that the length of a vector A = length of A rotated by any amount
We also need to test edge cases e.g. Division by 0 is not possible, Matrix inversion should fail for non-square matrices or matrices with a determinant of 0
I've assigned myself to come up with more linear algebra ideas. Also May to come up with trigonometry ideas e.g. sin(2x) = 2sin(x)cos(x) could be used in a test, as could many other trigonometric identities
Here's the full list of functionality we need to do to cover most linear algebra
strikethrough means completed
Matrices
Vectors
Coming up with ideas to test numpy's implementation of mathematical functions. Given numpy implements most of practical mathematics this is simply "come up with an interesting mathematical relation". This can latter be implemented in python code as automated tests.
Some examples of the metamorphic relations required:
This can be done by anyone with mathematical knowledge even without knowledge of numpy itself