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...
-
The table below shows the retail price and sales for instant coffee and roasted coffee for two years. a. Using these data alone, estimate the short-run price elasticity of demand for roasted coffee....
-
Finley Educational Products started and finished job number B67 during June. The job required $4,600 of direct material and 40 hours of direct labor at $17 per hour. The predetermined overhead rate...
-
Draw a cash flow diagram of any investment that exhibits both of the following properties: 1. The investment has a 4-year life. 2. The investment has a 10 percent/year internal rate of return.
-
The investment manager of 4th National Bank invests some of the banks financial resources in trading securities. During the last quarter of 2007 the following transactions occurred in regard to these...
-
Brae Industries Inc. purchased a machine on January 2, 2020, with a cost of $175,000, with an expected useful life of five (5) years, and an estimated salvage value of $8,000. Brae depreciates all...
-
I need help on this read from bottom to top. Image transcription text 7"} The second ?nancial statement to prepare is the statement of retained earnings. To determine the ending balance of...
-
3. Transform the following nondeterministic finite automata into deterministic finite automata accepting the same languages: (Each 1 Point, Total 3 Points) a. b. a a b b 9 a a a a
-
A) What is the above organisational structure? Justify giving 2 characteristics. B) Identify two advantages and two disadvantages of using this structure. Act Go
-
Killer Kitchen- The Case An unfortunate case of food poison has occurred right here in our peaceful little town of Harrison, AR. As Northark's premiere biology class, you have been asked to assist in...
-
Marijuana The use, sale, and possession of marijuana (defined by United States federal law as cannabisover 0.3% THC) isillegal under federal law.As a Schedule I drug under the federalControlled...
-
For help on how to brief a case, visit Program Resources and click the Legal Writing Tab. Read Shackford & Gooch, Inc. et al v. The Town of Kennebunk, et al , whichis located inChapter4of your...
-
In 2012, Mary purchased five (5) acres of land in Lakeland, Florida, including a house, upon which Florida Southern Railroad had an easement. Many years ago, it had built massive hills, or berms,...
-
Matt wants to invest 100,000 in preferred stock that will pay qualified dividend income of 7%. Matt has the following personal and business debt: - Personal credit card with annual interest rate of...
-
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?
-
Santinis new contract for 2019 indicates the following compensation and benefits: Santini is 54 years old at the end of 2019. He is single and has no dependents. Assume that the employer matches $1...
-
In 2019, Nina contributes 10 percent of her $100,000 annual salary to her 401(k) account. She expects to earn a 7 percent before-tax rate of return. Assuming she leaves this (and any employer...
-
In 2019, Nitai (age 40) contributes 10 percent of his $100,000 annual salary to a Roth 401(k) account sponsored by his employer, AY Inc. AY Inc. matches employee contributions to the employees...
Study smarter with the SolutionInn App