Part1 (Numpy) : Write a Python program as Jupyter Notebook to accomplish the following tasks: Create a random Matrix of 10x10 using numpy.random.rand function, and store this Matrix into Variable name W1. Create a random Matrix of 10x1 using numpy.random.rand function, and store this vector into Variable name b1. Create a random Matrix of 10x10 using numpy.random.rand function, and store this Matrix into Variable name W2. Create a random vector of 10x1 using numpy.random.rand function, and store this vector into Variable name b2. Perform matrix multiplication: output =W1 × b1 using for loops to iterate through the column and rows. Do not use any built-in NumPy functions. Perform matrix multiplication: output =W1 × b1 using built-in NumPy function numpy.dot. Repeat step 5 and step 6 for W2, and b2. Part2 (Matplotlib and Numpy) : Write a Python program as Jupyter Notebook to accomplish the following tasks: Use linspace function in numpy to create 400 points from (-4π) to (4π) , and store them in variable x. Use sin function to compute y1. Use cos function to compute y2. Use plot function to plot x vs y1, and x vs y2 in the same plot. Make the title of the plot as your name. Using subplot to plot two subplots, the first one x vs y1, and the second one is x vs y2. Make the title of the first subplot as your full name, and title of the second subplot as your z number. You have to label x axis and y axis in all graphes.
Part1 (Numpy) : Write a Python program as Jupyter Notebook to accomplish the following tasks: Create a random Matrix of 10x10 using numpy.random.rand function, and store this Matrix into Variable name W1. Create a random Matrix of 10x1 using numpy.random.rand function, and store this vector into Variable name b1. Create a random Matrix of 10x10 using numpy.random.rand function, and store this Matrix into Variable name W2. Create a random vector of 10x1 using numpy.random.rand function, and store this vector into Variable name b2. Perform matrix multiplication: output =W1 × b1 using for loops to iterate through the column and rows. Do not use any built-in NumPy functions. Perform matrix multiplication: output =W1 × b1 using built-in NumPy function numpy.dot. Repeat step 5 and step 6 for W2, and b2. Part2 (Matplotlib and Numpy) : Write a Python program as Jupyter Notebook to accomplish the following tasks: Use linspace function in numpy to create 400 points from (-4π) to (4π) , and store them in variable x. Use sin function to compute y1. Use cos function to compute y2. Use plot function to plot x vs y1, and x vs y2 in the same plot. Make the title of the plot as your name. Using subplot to plot two subplots, the first one x vs y1, and the second one is x vs y2. Make the title of the first subplot as your full name, and title of the second subplot as your z number. You have to label x axis and y axis in all graphes.
Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
Related questions
Question
Part1 (Numpy) : Write a Python
- Create a random Matrix of 10x10 using numpy.random.rand function, and store this Matrix into Variable name W1.
- Create a random Matrix of 10x1 using numpy.random.rand function, and store this
vector into Variable name b1. - Create a random Matrix of 10x10 using numpy.random.rand function, and store this Matrix into Variable name W2.
- Create a random vector of 10x1 using numpy.random.rand function, and store this vector into Variable name b2.
- Perform matrix multiplication: output =W1 × b1 using for loops to iterate through the column and rows. Do not use any built-in NumPy functions.
- Perform matrix multiplication: output =W1 × b1 using built-in NumPy function numpy.dot.
- Repeat step 5 and step 6 for W2, and b2.
Part2 (Matplotlib and Numpy) : Write a Python program as Jupyter Notebook to accomplish the following tasks:
- Use linspace function in numpy to create 400 points from (-4π) to (4π) , and store them in variable x.
- Use sin function to compute y1.
- Use cos function to compute y2.
- Use plot function to plot x vs y1, and x vs y2 in the same plot.
- Make the title of the plot as your name.
- Using subplot to plot two subplots, the first one x vs y1, and the second one is x vs y2.
- Make the title of the first subplot as your full name, and title of the second subplot as your z number.
- You have to label x axis and y axis in all graphes.
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 5 steps with 4 images
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-engineering and related others by exploring similar questions and additional content below.Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY