Create a program that produces the three (3) plots described below. Each plot should have the plotted data, a meaningful title to describe the data, labels for the x- and y- axes, and a legend when plotting two (2) or more things. Useful hint: to establish an array of x-values, check out numpy.linspace (). 1. One equation for a parabola is given below in terms of its focal length (f): www t w 1 y = X x² 4f Write the Python code to plot two parabolas as lines on the same plot for the domain -2.0 < x < 2.0 for f = 2 and f = 6. Choose different colors for each line. Make the line for f = 6 width of 4.0 and the line for f = 2 width of 2.0. %3D Parabola Plots with Varying Focal Length 0.5 0.4 0.3- 0.2 0.1 f=2 0.0 f=6 -2.0 -1.5 -1.0 -0.5 0.0 0.5 1.0 1.5 2.0
Create a program that produces the three (3) plots described below. Each plot should have the plotted data, a meaningful title to describe the data, labels for the x- and y- axes, and a legend when plotting two (2) or more things. Useful hint: to establish an array of x-values, check out numpy.linspace (). 1. One equation for a parabola is given below in terms of its focal length (f): www t w 1 y = X x² 4f Write the Python code to plot two parabolas as lines on the same plot for the domain -2.0 < x < 2.0 for f = 2 and f = 6. Choose different colors for each line. Make the line for f = 6 width of 4.0 and the line for f = 2 width of 2.0. %3D Parabola Plots with Varying Focal Length 0.5 0.4 0.3- 0.2 0.1 f=2 0.0 f=6 -2.0 -1.5 -1.0 -0.5 0.0 0.5 1.0 1.5 2.0
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
100%
Lab10act2. Please help me code in python programming.

Transcribed Image Text:Create a program that produces the three (3) plots described below. Each plot should have the
plotted data, a meaningful title to describe the data, labels for the x- and y- axes, and a legend
when plotting two (2) or more things. Useful hint: to establish an array of x-values, check out
numpy.linspace ().
1. One equation for a parabola is given below in terms of its focal length (f):
1
y =
4f
Write the Python code to plot two parabolas as lines on the same plot for the domain
-2.0 < x < 2.0 for f = 2 and f
line for f
6. Choose different colors for each line. Make the
= 6 width of 4.0 and the line for f = 2 width of 2.0.
Parabola Plots with Varying Focal Length
0.5
0.4
0.3
0.2 -
0.1
f=2
0.0
f=6
-1.0
-2.0
-1.5
-0.5
0.0
0.5
1.0
1.5
2.0
X

Transcribed Image Text:Third-order polynomials of the form given below:
y = Ax³ + Bx² + Cx + D
2.
I|
Write the Python code to plot (x, y) points for for the following set of coefficients for
2, B = 3, C = -11, and D = –6. Twenty-five (25)
the domain –4.0 < x < 4.0. Let A
data points were used for the plot below.
Plot of Cubic Polynomical
125
100
75
50
25
0-
-25
-50
-4
-2
1
2
3
4
x values
Write the Python code to plot sin(x) and cos(x) on the same plot with different color
lines for the domain -2n < x< 2n.
3.
Plot of cos(x) and sin(x)
1.00
0.75 -
0.50
0.25
0.00 -
-0.25
-0.50
-0.75
cos(x)
-1.00
sin(x)
6
x values
Put your code for all three plots in the same ".py file named Lab10a_Act2.py.
sənjen A
y values
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 4 images

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