Write a local function called cosLineWidths that will plot cos (x) for x values ranging from...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Write a local function called cosLineWidths that will plot cos (x) for x values ranging from - pi to pi in steps of 0.1, using black *'s. It will do this three times across in one Figure Window, with varying line widths (Note: even if individual points are plotted rather than a solid line, the line width property will change the size of these points.). If no arguments are passed to the function, the line widths will be 1, 2, and 3. If, on the other hand, an argument is passed to the function, it is a multiplier for these values (e.g., if 3 is passed, the line widths will be 3, 6, and 9). The line widths will be printed in the titles on the plots. Test your function with: cosLineWidths Line Width 1.00 Line Width 2.00 Line Width 3.00 1 1 0.8 0.8 0.8 0.6 0.6 0.6 0.4 0.4 0.4 0.2 0.2 0.2 -0.2 -0.2 -0.2 -0.4 -0.4 -0.4 -0.6 -0.6 -0.6 -0.8 -0.8 -0.8 -1 -4 -1 -4 -2 2 -4 -2 0. 4. -2 2 4 X cosLineWidths (0.5) Line Width 0.50 Line Width 1.00 Line Width 1.50 0.8 0.8 0.8 0.6 0.6 0.6 0.4 0.4 0.4 0.2 0.2 0.2 -0.2 -0.2 -0.2 -0.4 -0.4 -0.4 -0.6 -0.6 -0.6 -0.8 -0.8 -0.8 -1 -4 -1 -4 -2 4 -2 2 4 -4 -2 2 X X (x)soɔ (x)soɔ (x)soɔ (x)soɔ (x)soɔ cos(x) Write a local function called cosLineWidths that will plot cos (x) for x values ranging from - pi to pi in steps of 0.1, using black *'s. It will do this three times across in one Figure Window, with varying line widths (Note: even if individual points are plotted rather than a solid line, the line width property will change the size of these points.). If no arguments are passed to the function, the line widths will be 1, 2, and 3. If, on the other hand, an argument is passed to the function, it is a multiplier for these values (e.g., if 3 is passed, the line widths will be 3, 6, and 9). The line widths will be printed in the titles on the plots. Test your function with: cosLineWidths Line Width 1.00 Line Width 2.00 Line Width 3.00 1 1 0.8 0.8 0.8 0.6 0.6 0.6 0.4 0.4 0.4 0.2 0.2 0.2 -0.2 -0.2 -0.2 -0.4 -0.4 -0.4 -0.6 -0.6 -0.6 -0.8 -0.8 -0.8 -1 -4 -1 -4 -2 2 -4 -2 0. 4. -2 2 4 X cosLineWidths (0.5) Line Width 0.50 Line Width 1.00 Line Width 1.50 0.8 0.8 0.8 0.6 0.6 0.6 0.4 0.4 0.4 0.2 0.2 0.2 -0.2 -0.2 -0.2 -0.4 -0.4 -0.4 -0.6 -0.6 -0.6 -0.8 -0.8 -0.8 -1 -4 -1 -4 -2 4 -2 2 4 -4 -2 2 X X (x)soɔ (x)soɔ (x)soɔ (x)soɔ (x)soɔ cos(x)
Expert Answer:
Related Book For
Discovering Advanced Algebra An Investigative Approach
ISBN: 978-1559539845
1st edition
Authors: Jerald Murdock, Ellen Kamischke, Eric Kamischke
Posted Date:
Students also viewed these programming questions
-
Consider the diode bridge rectifier shown below with the voltage regulating capacitor in parallel with the load resistor. 60Hz 120V 10:1 C-470F IL R=1kQ a) For the input signal, sketch waveforms of...
-
In Figure particles 1 and 2 are fixed in place on an x axis, at a separation of L = 8.00cm. Their charges are q1 = + e and q2 = ?? 27e.Particle 3 with charge q3 = + 4e is to be placed on the line...
-
Write a user-defined function that plots an ellipse with axes that are parallel to the x and y axes, given the coordinates of its center and the length of the axes. For the function name and...
-
Suppose that 1 8 E1 1 E2 1 4 and E, E A = I. Express A as a product of elementary matrices. 1 1 -8 8 () A 1 -8 (A) A (C) A = 4 1 -4 -4 1 1 (D) A = 1 1 1 1 -8 1 1 1 -8 (E) A = 4 (F) A (G) A 4 4 1 1 1...
-
Roland Corp. had the following production information for August: Beginning work in process ...... 0 Units started and completed .... 40,000 Ending work in process ..... 8,000 Rolands ending work in...
-
\((90-101)^{3}\) Perform the indicated calculation.
-
Use the following information for Ryder Co. to compute inventory turnover for 2005 and 2004, and its days sales in inventory at December 31, 2005 and 2004. (Round answers to the tenths place.)...
-
Briefly explain mortgage securitization and how it contributed to the global economic crisis. Assume that you recently graduated and have just reported to work as an investment advisor at the...
-
Find the quotient Z1 22 Z =5+5i - Z2 of the complex numbers. Leave your answer in polar form. Z2=1+i
-
For the network of Fig. 5.158: a. Determine re. b. Find Zi, and Av o 22 V 5.6 k2 330 k =80 1.2k 0.47 k
-
1. List the point coordinates for all atoms that are associated with the FCC unit cell. Define all symbols that you use. Solution 12 Na+ 10 2. List the point coordinates of both the sodium (Na) and...
-
The variable Z has a standard Normal distribution 1. Find the number z that has cumulative proportion 0.78. 2. Find the number z such that the event Z>z has proportion 0.22.
-
Find the derivative of the function using the definition of derivative. f(t) = 5.5t + 8t f'(t) = State the domain of the function. (Enter your answer using interval notation.) State the domain of its...
-
Click on this link : http://botit.botany.wisc.edu/Resources/Botany/Chlorophyta/Spirogyra/ and download image of vegetative structure and conjugation. Spirogyra has unique chloroplast. What is the...
-
Program in JAVA a game To pass the time during long winters, the ancient Nordic people would play the two-player game of Lagkapten . In this assignment, you'll implement the game, but play will be...
-
(a) Write function definitions to do the following tasks: i. Function calcLatest Balance () will receive the account balance, calculate the latest account balance after 5% dividend and return the...
-
List withi P Flounder Woods, PSC is an architectural firm that uses activity-based costing. The three activity cost pools used by Flounder Woods are: Salaries and Wages, Travel Expense, and Plan...
-
DC has unused FTC carryover from 2017 in the separate category for GC income as the result of income generated by a foreign branch. The income was foreign source general category income. In 2018 the...
-
Write an equation for each graph. a. b. c. d. 24
-
The half-life of radium-226 is 1620 yr. a. Write a function that relates the amount s of a sample of radium-226 remaining after t years. b. After 1000 yr, how much of a 500 g sample of radium-226...
-
What is the slope of the line that passes through the point (4, 7) and is parallel to the line y = 12(x - 5) + 21?
-
What are the motivational opportunities of alternative work schedules?
-
How do job designs influence motivation?
-
In the integrated model of motivation, what predicts effort? (a) rewards (b) organizational support (c) ability (d) motivation
Study smarter with the SolutionInn App