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...

  • 3 Programming Question (45 points) 3.1 Instructions You need to write the code by yourself. Your...

    3 Programming Question (45 points) 3.1 Instructions You need to write the code by yourself. Your implementation must use C/C++ and your code must run on the Linux machine general.asu.edu. Please refer to the programming guide (available under the Assignments folder on Blackboard) for using the general.asu.edu server, as well as compiling and running C/C++ code under Linux For this question, you need to provide a Makefile that compiles your program to an executable named a3 that runs on the...

  • please answer abc show your work figure 6.1 7.31 Tree diameter confidence interval. A study of...

    please answer abc show your work figure 6.1 7.31 Tree diameter confidence interval. A study of 584 longleaf pine trees in the Wade Tract in Thomas County, Georgia, is described in Example 6.1 (page 352). For each tree in the tract, the researchers measured the diameter at breast height (DBH). This is the diameter of the tree at a height of 4.5 feet, and the units are centimeters (cm). Only trees with DBH greater than 1.5 cm were sampled. Here...

  • 4 [20 Points] Derive the Huffman tree for the symbols with probabilities given below. Show the...

    4 [20 Points] Derive the Huffman tree for the symbols with probabilities given below. Show the codewords for the symbols and compute the average code length. A: 0.18, B: 0.2, C: 0.05, D: 0.36, E: 0.09, F: 0.12

  • 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)...

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