8. Write a Python Numpy program to obtain the product of two matrixes, a and b with complex number.
The output is:
a = [1+2j, 3+4j]
b = [5+6j, 7+8j]
Expected Answer:
First matrix:
[1.+2.j 3.+4.j]
Second matrix:
[5.+6.j 7.+8.j]
Product of two matrixes:
(70-8j)
Sample Answer:
First matrix: [1.+2.j 3.+4.j] Second matrix: [5.+6.j 7.+8.j] Product of two matrixes: (70-8j)
More Exercises:
Python String ExercisesMore Numpy Exercises:
Numpy String ExercisesMore Pandas Exercises:
Pandas Series ExercisesMore Tutorials:
Python Installation - Linux (Ubuntu)