Question

Do exercise 8.4 on page 194 of the textbook but do not create tables and do not sketch the results by hand. Instead, save the computed values in vectors and plot the results as indicated at the end of the description of the exercise.

NOTE: The temptation for the average programmer (especially in the context of a chapter titled ‘Loops") is to do this exercise using FOR loops. DON'T DO IT! Use MATLAB®'s vectorization capability to make this exercise very simple.

Name your program "ex8p4_LastName.m".


8.4 Winte a program to compute a table of the function xsin 2 over the (closed) interval using increments in x of (a) 0.2, (b) 0.1, and (c) 0.01. Use your tables to sketch graphs of f(x) for the three cases (by hand), and observe that the tables for (a) and (b) give totally the wrong picture of fx) Cet your program to draw the graph of f(x) for the three cases, superimposed


Write a program to compute a table of the function:

f (x) = x sin ­= [(pi(1 + 20x))/2]

over the (closed) interval [−1, 1] using increments in x of (a) 0.2, (b) 0.1, and (c) 0.01. Use your tables to sketch graphs of f(x) for the three cases (by hand), and observe that the tables for (a) and (b) give totally the wrong picture of f(x).
Get your program to draw the graph of f(x) for the three cases, superimposed.

0 0
Add a comment Improve this question Transcribed image text
Know the answer?
Add Answer to:
Do exercise 8.4 on page 194 of the textbook but do not create tables and do...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Rules for using a Table within a scientific report: 1. Tables within scientific reports contain s...

    Rules for using a Table within a scientific report: 1. Tables within scientific reports contain summary information, not the raw data collected during an experiment 2. The table caption is located at the top of the table. 3. The table caption should define all abbreviations used in the table and the sample size of the data represented. Table 1. Mean turbidity scores t S.E. for spontancous generation of life from inorganic material trials using nutrient agar as a growth environment....

  • MATLAB EXERCISE 5 This exercise focuses on the Jacobian matrix and determinant, simulated resolved-rate control, and...

    MATLAB EXERCISE 5 This exercise focuses on the Jacobian matrix and determinant, simulated resolved-rate control, and inverse statics for the planar 3-DOF, 3R robot. (See Figures 3.6 and 3.7; the DH parameters are given in Figure 3.8.) The resolved-rate control method [9] is based on the manipulator velocity equation x = kve, where ky is the Jacobian matrix, is the vector of relative joint rates, X is the vector of commanded Cartesian velocities (both translational and rotational), and k is...

  • ficant energy. Closing it may improve the responsiveness of your Mac. st DATA TABLES Table 1...

    ficant energy. Closing it may improve the responsiveness of your Mac. st DATA TABLES Table 1 Distance between charpes 5 m 91(C) 92 (C) Force (N) DO LE 3-6 0.107 E-6 190 0252 E-6 906 0.224 INE-6 E-6 SA 50E-6 DEK DE-5 4350 58E- NIE- 1:03 E-6 972 90€ -6 HD - 6 3.559 FLYK 4.29 Table 2 91 STEC 92 50E6C Distance (m) Force (N 2 3.615 A 4 5 164 -7 70 D-351 0.222 D (tore pend) =...

  • Need help with implementing a While, Do-while and for loops in a program. UML: - scnr...

    Need help with implementing a While, Do-while and for loops in a program. UML: - scnr : Scanner - rows : int - MAX_ASCII : int ------------------------------------------------------------------------------- + CharacterTables() : + CharacterTables(rows : int) : - getStartingValue() : int -displayTable(startValue : int) : void - userContinue() : boolean + main(args : String[]) : void In Section 5.10 we saw that there is a close relationship between char and int. Variables of type char store numbers. (Actually, variables of all types...

  • ADVANCE STUDY ASSIGNMENT: COULOMB'S LAW PURPOSE of tl of this exercise is to become familiar with...

    ADVANCE STUDY ASSIGNMENT: COULOMB'S LAW PURPOSE of tl of this exercise is to become familiar with the force between electric point charges which is descrbed by Coulomb's law. In particular, we will investigate the force's inverse-square dependence on separation distance between charges. DISCUSSION A basic characteristic of electric charge is that charges exert forces on each other, like charges positive-positive and negative-negative) repel each other while opposite charges (positive- and constitute a Newton's third-law pair; that is, they are equal...

  • Using C programming language Question 1 a) through m) Exercise #1: Write a C program that...

    Using C programming language Question 1 a) through m) Exercise #1: Write a C program that contains the following steps (make sure all variables are int). Read carefully each step as they are not only programming steps but also learning topics that explain how functions in C really work. a. Ask the user for a number between 10 and 99. Write an input validation loop to make sure it is within the prescribed range and ask again if not. b....

  • Experiment Sd 2. Use the data in Table 1 to calculate the percent change in amplitude...

    Experiment Sd 2. Use the data in Table 1 to calculate the percent change in amplitude (Am ) activity that occurs between the 0-20 sand 60-80 intervals. Do the same for What accounts for the difference in the percent change observed in grip streng the two time intervals? change in amplitude (AmV) in electrical intervals. Do the same for grip strength. age observed in grip strength and Am V for 3. Compare mean grip strengths and Am V for the...

  • Create graphs for Figures 1-4 (circled on pages 111 & 114) based on the data given in Tables ...

    Create graphs for Figures 1-4 (circled on pages 111 & 114) based on the data given in Tables 2 & 4. Lab # 8 Cellular Respiration and Fermentation I. Goals and Objectives At the completion of this laboratory exercise, students will be able to: A Differentiate between the intermediates and products of fermentation versus acrobic cellular respiration in yeast. Relate rates of fermentation with sugar availability in yeast. Utilize a reduction-oxidation dye to determine the effect of varying yeast concentration...

  • 1. Define heat release rate (HRR) and explain its importance, in your own words. Specifically, what...

    1. Define heat release rate (HRR) and explain its importance, in your own words. Specifically, what clements affect the HRR of a single fuel package? What is the mathematical formula for determining the HRR, and what does each element of the equation represent? Write your answers in your own words. Provide all references. Determine the peak HRR of the following items in Review Questions 2-5 (provide refer- ences for your answers): 2. Bunk bed 3. Sofa 4. Mattress 5. Kiosk...

  • lab topic 13 watch on colony in the margin of your loba characteristics observed Repeat steps...

    lab topic 13 watch on colony in the margin of your loba characteristics observed Repeat steps to with two additional species You partnerid e three dillerent species Observe Color Plates 15, 17. und 18. Describe the shape ang face, and color of these bacterial species c Results Labo 1. Complete Table 13.1 at the bottom of the pagesger F 1 to describe the three bacterial cultures you observed Ahora Discussion surfact characteristics found in the lab partner barved by you...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT