def conjugadoM(m1): """ Ingresa una matriz MxN, retorna el conjugado de la matriz. """ total=[] fila=[] for i in range(len(m1)): for j in range(len(m1[0])): fila.append(c.conjugado(m1[i][j])) total.append(fila) fila=[] return total
def conjuMatrix(a): return [[comp.conjugado(a[i][j]) for j in range(len(a[0]))] for i in range(len(a))]
def test_conjugado(self): c1=(-6,-9) self.assertEqual(cpl.conjugado(c1),(-6,9))
def test_conjugado(): assert c.conjugado([4, 3]) == [4, -3], 'Debe ser 4-3i'
def testdeberiacalconjugado(self): self.assertEqual(lib.conjugado((-5, -10)), (-5, 10))
def test_conjugado(): assert c.conjugado([3, 5]) == [3, -5], "DeberiaSer 3-5i"