test for the global function axpy(...) (operation)
(self)
| 92 | self.assertEqual(unitBasisVector(3, 1).__str__(), "(0,1,0)") |
| 93 | |
| 94 | def test_axpy(self): |
| 95 | """ |
| 96 | test for the global function axpy(...) (operation) |
| 97 | """ |
| 98 | x = Vector([1, 2, 3]) |
| 99 | y = Vector([1, 0, 1]) |
| 100 | self.assertEqual(axpy(2, x, y).__str__(), "(3,4,7)") |
| 101 | |
| 102 | def test_copy(self): |
| 103 | """ |