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
The managing director of a consulting group has the accompanying monthly data on total overhead costs and professional labor hours to bill to clients. Complete parts a through c   Overhead Costs    Billable Hours345000    3000385000    4000410000    5000462000    6000530000    7000545000    8000
Using the accompanying Home Market Value data and associated regression​ line, Market ValueMarket Valueequals=​$28,416plus+​$37.066×Square ​Feet, compute the errors associated with each observation using the formula e Subscript ieiequals=Upper Y Subscript iYiminus−ModifyingAbove Upper Y with caret Subscript iYi and construct a frequency distribution and histogram. Square Feet    Market Value1813    911001916    1043001842    934001814    909001836    1020002030    1085001731    877001852    960001793    893001665    884001852    1009001619    967001690    876002370    1139002373    1131001666    875002122    1161001619    946001729    863001667    871001522    833001484    798001589    814001600    871001484    825001483    787001522    877001703    942001485    820001468    881001519    882001518    885001483    765001522    844001668    909001587    810001782    912001483    812001519    1007001522    872001684    966001581    86200
a. Find the value of A.b. Find pX(x) and py(y).c. Find pX|y(x|y) and py|X(y|x)d. Are x and y independent? Why or why not?
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