Question

1.1 (20 points) Set the data format to be short. Calculate the following problems in the Matlab Command Window. Show (14.8 +6
0 0
Add a comment Improve this question Transcribed image text
Answer #1

----part 1.1---Command Window Editor-main.m >> format short >> (14.8^2 + 6.5^2) / 3.8^2 + 55^(1/3) / (sqrt (2) + 14) ans = 18.3416 >> (-3.5)

----part 1.2---

Command Window Editor - main.m >> format short >> 43 * (250^(1/4) + 23)^2 / exp (45 - 342) ans = 7.2583e-12 >> cos (5*pi/6)^2

----part 1.3---

Command Window Editor-main.m >> format short >> a = 13; >> b = 4.2; >> c = 4*b / a; >> d = a * b* c/ (a + b + c); >> a*b / (c

----part 1.4---

Command Window Editor-main.m >> format short >> a = 20; >> b = 3; >> P = 2*pi * sqrt((a^2 + b^2)/2) P = 89.8517 fx >> |

----part 1.5---

Command Window Editor - main.m >> oak = 54.95; >> pine = 39.95; >> format bank >> 36 * oak + 20 * pine ans 2777.20 >> 36 * oa

MATLAB CODE AND THE RESULTING VALUE:

% ----part 1.1---

format short
(14.8^2 + 6.5^2) / 3.8^2 + 55^(1/3) / (sqrt(2) + 14)

% ans = 18.3416

(-3.5)^3 + exp(6) / log(524) + 206^(1/3)

% ans = 27.4611

% ----part 1.2---

format short
43 * (250^(1/4) + 23)^2 / exp(45 - 3^2)

% ans = 7.2583e-12

cos(5*pi/6)^2 * sin(7*pi/8)^3 + tan(pi/6 * log(8)) / sqrt(7)

% ans = 0.7645

% ----part 1.3---
format short
a = 13;
b = 4.2;
c = 4*b / a;
d = a * b * c / (a + b + c);
a * b / (c + d) + d * a / (c * b) - (a - b^2) * (c + d)

% ans = 43.5290

sqrt(a^2 + b^2) / (d - c) + log(abs(b - a + c - d))

% ans = 7.8410

% ----part 1.4---

format short
a = 20;
b = 3;
P = 2*pi * sqrt((a^2 + b^2)/2)

% P = 89.8517

% ----part 1.5---
oak = 54.95;
pine = 39.95;
format bank
36 * oak + 20 * pine

% ans = 2777.20

36 * oak + 20 * pine + 6.25/100 * (36 * oak + 20 * pine)

% ans = 2950.77

round(36 * oak + 20 * pine + 6.25/100 * (36 * oak + 20 * pine))

% ans = 2951.00


  
  

------------------------------------------------------------------------------
COMMENT DOWN FOR ANY QUERY RELATED TO THIS ANSWER,

IF YOU'RE SATISFIED, GIVE A THUMBS UP
~yc~

Add a comment
Know the answer?
Add Answer to:
1.1 (20 points) Set the data format to be short. Calculate the following problems in the...
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
  • Problem (A1) (20 points): Huffman Coding Consider a message having the 5 symbols (A,B,C,D,E) with probabilities...

    Problem (A1) (20 points): Huffman Coding Consider a message having the 5 symbols (A,B,C,D,E) with probabilities (0.1,0.1,0.2 ,0.2, 0.4), respectively. For such data, two different sets of Huffman codes can result from a different tie breaking during the construction of the Huffman trees. • Construct the two Huffman trees. (8 points) Construct the Huffman codes for the given symbols for each tree. (4 points) Show that both trees will produce the same average code length. (4 points) For data transmission...

  • Consider the plot below. Use this plot to answer the following questions. Data set I Data...

    Consider the plot below. Use this plot to answer the following questions. Data set I Data set 20 30 35 45 50 60 d) Which of the following can't be justified? The range of data set I equals the range of data set Il The IQR of data set I equals the IQR of data set ll The median of data set is less than the median of data set ll -〉 . o Data set I and data set...

  • Solve the following problems in the MATLAB Command Window. Show all of your work and add...

    Solve the following problems in the MATLAB Command Window. Show all of your work and add comments to distinguish each problem. Include your name as a comment at the top of the MATLAB Command Window. Copy the solutions from the MATLAB Command Window into Microsoft Word. Submit your Microsoft Word file in Blackboard by the due date. 1. (5-20/7+2.53)2 2. 6 x 3.1+ 120/5-155/3 3. 8+80/2.6+ e3.5 4. [sin(0.2T)]/[cos(n/6)] + tan 72° 5. Set t-3.2 and evaluate 0.5e3t+3.82t3 6. Define...

  • Question II - Graph Traversal and Minimum Spanning Trees [40 Points] Consider the following graph: B...

    Question II - Graph Traversal and Minimum Spanning Trees [40 Points] Consider the following graph: B 10 1 4 1 H 9 4 a) Traverse the graph starting from vertex A, and using the Breadth-First Search algorithm. Show the traversal result and the data structure you are using. [10 Points] b) Traverse the graph starting from vertex A, and using the Depth-First Search (Post-order) algorithm. Show the traversal result and the data structure you are using. [10 Points] c) Apply...

  • 1. Short Questions Given the following data: 30 20 s0 40 10 60 28 Which method...

    1. Short Questions Given the following data: 30 20 s0 40 10 60 28 Which method will perform better: Binary Search or Binary Search Tree? a) Give explanation as well S pts) b) Draw a binary search tree using the following data (5 pts) (No need to show the steps) 24 60 17 40 S0 20 22 21 c) Give the In-onder, pre-order and post-order search ordering from the tree constructed in part (b) (5 pts) d) Give definition of...

  • Use matlab a) Create a simulated data set b) Create a set of plots to determine...

    Use matlab a) Create a simulated data set b) Create a set of plots to determine the best transformation to linearize the data c) Fit a first order polynomial (y mx + b) to the linearized data to find the constants m and b d) Reconstruct the original equation from m and b in the linear fitted polynomial e) Plot the fitted equation. Radioactive decay is modeled by the equation: rt where A the amount of mass as a function...

  • please write code in MATLAB as well 5. (12 points) Create the following signal in Matlab:...

    please write code in MATLAB as well 5. (12 points) Create the following signal in Matlab: x[n] = u(n) - u[n-6] a. Mathematically compute yi[n] = x[n] * x[n] where * means convolution. Now use the conv command to perform the convolution. Graph x[n) and the resulting y(n), both over the interval Osns 20. How many non-zero terms does y(n) have? Does your computational result agree with the Matlab result? b. Repeat a. but this time with yz[n] = x[n]*h[n)...

  • Consider the following short time series data set: t1234 5 6789101112 13 14 15 16 17...

    Consider the following short time series data set: t1234 5 6789101112 13 14 15 16 17 1819 20 x13 25 20 2 4 12 8 7 19 71 20 5 12 18 12 20 85 Evaluate each of the following expressions (i.e., give a numerical answer): a. ▽x13 c. ▽2x13 d. Vx13 e. 1-B1)x1 f. (1-0.7B +0.5B2)1-B)x13

  • 12. (10 pts) The following data set is randomly collected from 20 professional NFL players. The...

    12. (10 pts) The following data set is randomly collected from 20 professional NFL players. The data set indicates their weight in pounds. You may find the following helpful. += 1186606, (+) 4794 189 254 235 225 190 305 195 202 190 252 305 309 200 293 331 231 235 203 255 185 (a) Calculate the mean of the sample. (b) Calculate the standard deviation and the variance of the sample. (c) Assuming that the weight of professional NFL players...

  • Use Random number generator (under Data Analysis) to simulate the following data set. Create 10 columns, each 20 points...

    Use Random number generator (under Data Analysis) to simulate the following data set. Create 10 columns, each 20 points long and use the following parameters: Number of variables (10), number of data point (20), Distribution (Normal), Mean (40), Standard Deviation (10), Random seed (1234). The data should be in columns: A,B,C,….,I,J. Randomly pick two columns (say Column B and Column H) and perform 2-sided t-test on these two data columns. Record the P-value and repeat this procedure several times (at...

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
ADVERTISEMENT