MATLAB: An Introduction with Applications
MATLAB: An Introduction with Applications
5th Edition
ISBN: 9781118629864
Author: Amos Gilat
Publisher: WILEY
bartleby

Concept explainers

bartleby

Videos

Question
Book Icon
Chapter 11, Problem 1P
To determine

(a)

The interpretation of x and y as symbolic variables and create the two symbolic expressions: S1=x2(x6)+4(3x2) and S2=(x+2)28x; the simplest form of S1S2 using symbolic operation.

Expert Solution
Check Mark

Answer to Problem 1P

Solution:

The program is stated as follows.

Explanation of Solution

The given expressions are,

S1=x2(x6)+4(3x2)

S2=(x+2)28x

Multiply the above expressions.

S1S2=[x2(x6)+4(3x2)][(x+2)28x]=12x+x2(x6)8[(x+2)28x]=(x2)5

Write the MATLAB code to determine the interpretation of x and y as symbolic variables and create the two symbolic expressions: S1=x2(x6)+4(3x2) and S2=(x+2)28x. Determine the simplest form of S1S2 using symbolic operation.

MATLAB Code:

syms x

S1 = x^2*(x-6)+4*(3*x-2)

%Define the expression S1.

S2 = (x+2)^2-8*x

%Define the expression S2.

result = simplify(S1.*S2)

%Multiply the given expression

Save the MATLAB script with name, Chapter11_29864_11_1Pa.m in the current folder. Execute the script by typing the script name at the command window to get the code that determinestheinterpretation of x and y as symbolic variables and creates the two symbolic expressions: S1=x2(x6)+4(3x2) and S2=(x+2)28x. Determine the simplest form of S1S2 using symbolic operation.

Result:

MATLAB: An Introduction with Applications, Chapter 11, Problem 1P , additional homework tip  1

Conclusion:

Therefore, the required program is executed above.

To determine

(b)

The interpretation of x and y as symbolic variables and create the two symbolic expressions: S1=x2(x6)+4(3x2) and S2=(x+2)28x; the simplest form of S1S2 using symbolic operation.

Expert Solution
Check Mark

Answer to Problem 1P

Solution:

The program is stated as follows.

Explanation of Solution

The given expressions are,

S1=x2(x6)+4(3x2)

S2=(x+2)28x

Divide the above expressions.

S1S2=x2(x6)+4(3x2)[(x+2)28x]=12x+x2(x6)8[(x+2)28x]=x2

Write the MATLAB code to determine the interpretation of x and y as symbolic variables and create the two symbolic expressions: S1=x2(x6)+4(3x2) and S2=(x+2)28x. Determine the simplest form of S1S2 using symbolic operation.

MATLAB Code:

syms x

S1 = x^2*(x-6)+4*(3*x-2)

%Define the expression S1.

S2 = (x+2)^2-8*x

%Define the expression S2.

result = simplify(S1./S2)

%Divide the given expression

Save the MATLAB script with name, Chapter11_29864_11_1Pb.m in the current folder. Execute the script by typing the script name at the command window to get the code that determinestheinterpretation of x and y as symbolic variables and creates the two symbolic expressions: S1=x2(x6)+4(3x2) and S2=(x+2)28x. Determine the simplest form of S1S2 using symbolic operation.

Result:

MATLAB: An Introduction with Applications, Chapter 11, Problem 1P , additional homework tip  2

Conclusion:

Therefore, the required program is executed above.

To determine

(c)

The interpretation of x and y as symbolic variables and create the two symbolic expressions: S1=x2(x6)+4(3x2) and S2=(x+2)28x; the simplest form of S1+S2 using symbolic operation.

Expert Solution
Check Mark

Answer to Problem 1P

Solution:

The program is stated as follows.

Explanation of Solution

The given expressions are,

S1=x2(x6)+4(3x2)

S2=(x+2)28x

Add the above expressions.

S1+S2=[x2(x6)+4(3x2)]+=[12x+x2(x6)8]+[(x+2)28x]=(x1)(x2)2

Write the MATLAB code to determine the interpretation of x and y as symbolic variables and create the two symbolic expressions: S1=x2(x6)+4(3x2) and S2=(x+2)28x. Determine the simplest form of S1+S2 using symbolic operation.

MATLAB Code:

syms x

S1 = x^2*(x-6)+4*(3*x-2)

%Define the expression S1.

S2 = (x+2)^2-8*x

%Define the expression S2.

result = simplify(S1+S2)

%Add the given expression

Save the MATLAB script with name, Chapter11_29864_11_1Pc.m in the current folder. Execute the script by typing the script name at the command window to get the code that determinestheinterpretation of x and y as symbolic variables and creates the two symbolic expressions: S1=x2(x6)+4(3x2) and S2=(x+2)28x. Determine the simplest form of S1+S2 using symbolic operation.

Result:

MATLAB: An Introduction with Applications, Chapter 11, Problem 1P , additional homework tip  3

Conclusion:

Therefore, the required program is executed above.

To determine

(d)

The numerical value of the result from part (c) for x=5 using subs command.

Expert Solution
Check Mark

Answer to Problem 1P

Solution:

The program is stated as follows.

Explanation of Solution

The given expressions are,

S1=x2(x6)+4(3x2)

S2=(x+2)28x

Add the above expressions.

S1+S2=[x2(x6)+4(3x2)]+=[12x+x2(x6)8]+[(x+2)28x]=(x1)(x2)2

Substitute x=5 in the above equation.

f(5)=(51)(52)2=36

Write the MATLAB code to determine the numerical value of the result from part (c) for x=5 using subs command.

MATLAB Code:

syms x

S1 = x^2*(x-6)+4*(3*x-2);

%Define the expression S1.

S2 = (x+2)^2-8*x;

%Define the expression S2.

result = simplify(S1+S2);

%Add the given expression

result_at_5 = subs(result,5)

Save the MATLAB script with name, Chapter11_29864_11_1Pd.m in the current folder. Execute the script by typing the script name at the command window to get the code that determinesthenumerical value of the result from part (c) for x=5 using subs command.

Result:

MATLAB: An Introduction with Applications, Chapter 11, Problem 1P , additional homework tip  4

Conclusion:

Therefore, the required program is executed above.

Want to see more full solutions like this?

Subscribe now to access step-by-step solutions to millions of textbook problems written by subject matter experts!
Students have asked these similar questions
14 A survey is conducted to determine whether would prefer to work at home, if given the 20 office employees of a certain company chance. The overall results are shown in the first bar graph, and the results broken down by gender are presented in the second. a. Interpret the results of each graph. b. Discuss the added value in including gen- der in the second bar graph. (The second bar graph in this problem is called a side by side bar graph and is often used to show results broken down by two or more variables.) c. Compare the side by side bar graph with the two pie charts that you made for Question 6. Which of the two methods is best for comparing two groups, in your opinion? A Would you prefer to work at home? (n=20) 60 50 40 Percent 20 30 20 30 10 0 No Yes Prefer to work at home? (10 males, 10 females) 80 Percent 60 00 40 40 20- No Yes No Yes Female Male
Frequency 12 Suppose that a random sample of 270 gradu- ating seniors are asked what their immediate priorities are, including whether buying a house is a priority. The results are shown in the following bar graph. a. The bar graph is misleading; explain why. b. Make a new bar graph that more fairly presents the results. Is Buying a House a Priority? 300 250 200 150 100 50 0 Yes No Undecided
Frequency 11 A polling organization wants to find out what voters think of Issue X. It chooses a random sample of voters and asks them for their opinions of Issue X: yes, no, or no opinion. I organize the results in the following bar graph. a. Make a frequency table of these results (including the total number). brocb. Evaluate the bar graph as to whether it biz s b fairly represents the results. of beau no STORE TO OW! vd wob spind 550 540 500 vd 480 420 360 300 250 240 Yes No Undecided Opinion on Issue X
Knowledge Booster
Background pattern image
Statistics
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, statistics and related others by exploring similar questions and additional content below.
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
MATLAB: An Introduction with Applications
Statistics
ISBN:9781119256830
Author:Amos Gilat
Publisher:John Wiley & Sons Inc
Text book image
Probability and Statistics for Engineering and th...
Statistics
ISBN:9781305251809
Author:Jay L. Devore
Publisher:Cengage Learning
Text book image
Statistics for The Behavioral Sciences (MindTap C...
Statistics
ISBN:9781305504912
Author:Frederick J Gravetter, Larry B. Wallnau
Publisher:Cengage Learning
Text book image
Elementary Statistics: Picturing the World (7th E...
Statistics
ISBN:9780134683416
Author:Ron Larson, Betsy Farber
Publisher:PEARSON
Text book image
The Basic Practice of Statistics
Statistics
ISBN:9781319042578
Author:David S. Moore, William I. Notz, Michael A. Fligner
Publisher:W. H. Freeman
Text book image
Introduction to the Practice of Statistics
Statistics
ISBN:9781319013387
Author:David S. Moore, George P. McCabe, Bruce A. Craig
Publisher:W. H. Freeman
Logical Arguments - Modus Ponens & Modus Tollens; Author: Dr. Trefor Bazett;https://www.youtube.com/watch?v=NTSZMdGlo4g;License: Standard YouTube License, CC-BY