EBK MATLAB: AN INTRODUCTION WITH APPLIC
EBK MATLAB: AN INTRODUCTION WITH APPLIC
5th Edition
ISBN: 8220102007642
Author: GILAT
Publisher: YUZU
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:

EBK MATLAB: AN INTRODUCTION WITH APPLIC, 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:

EBK MATLAB: AN INTRODUCTION WITH APPLIC, 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:

EBK MATLAB: AN INTRODUCTION WITH APPLIC, 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:

EBK MATLAB: AN INTRODUCTION WITH APPLIC, 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
A biologist is investigating the effect of potential plant hormones by treating 20 stem segments. At the end of the observation period he computes the following length averages: Compound X = 1.18 Compound Y = 1.17 Based on these mean values he concludes that there are no treatment differences. 1) Are you satisfied with his conclusion? Why or why not? 2) If he asked you for help in analyzing these data, what statistical method would you suggest that he use to come to a meaningful conclusion about his data and why? 3) Are there any other questions you would ask him regarding his experiment, data collection, and analysis methods?
Business
What is the solution and answer to question?
Knowledge Booster
Background pattern image
Electrical Engineering
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, electrical-engineering 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