Reference no: EM131065796
1.
a. Create a row vector v1 consisting of the numbers in the ordered set (2, 5, 4, 12, 22) using the square bracket operator.
b. Create a row vector v2 consisting of the numbers in the ordered set (1, 3, 5, 7, 9) using the colon operator.
c. Create a row vector v3 starting with the element 1, ending with the element 9, with five equally spaced points in the vector. Use linspace.
2. Suppose you know all the side lengths of a triangle. You can find the triangle area using Heron's formula:
TriangleArea = √{S (S - a) (S - b) (S - c)}
where S is the semi-perimeter and is calculated using the formula:
S = (a + b + c) / 2
Using SciNotes, set variables 'a', 'b' and 'c', to be 6 feet, 7 feet, and 4 feet, respectively. Continue building the script file that computes the area of the triangle as defined above, and stores the result in a variable called TriangleArea. Include comments that explain the script's purpose and units of variables where appropriate.
Save the script file with the name ComputerTriangleArea. Run your script file and test your results. Change 'a', 'b' and 'c' to 12 feet, 10 feet, and 8 feet, respectively. Run your script file again, and test your results.
3. Make a table that represents the change in area of a circle (AREA = π*r2) and the volume of a sphere (VOLUME = 4/3*π*r3) with respect to the change in radius, 'r'. Range the value of 'r' from 0 to 3 in increments of 0.25.
Premature or inappropriate discharge by petitioning
: Through discharge planning, hospitals help assure that safe and appropriate post-hospital accommodations are arranged for each patient. Medicare patients may appeal what they believe to be premature or inappropriate discharge by petitioning which ..
|
Major concerns in an actively used fleet of aircraft
: According to the text there are numerous "Service Life" issues that can lead to progressive failures in structures. What are those issues and what are the two that are major concerns in an actively used fleet of aircraft? Explain the concerns.
|
What will share of stock sell for today
: Storico Co. just paid a dividend of $1.45 per share. The company will increase its dividend by 24 percent next year and will then reduce its dividend growth rate by 6 percentage points per year until it reaches the industry average of 6 percent divid..
|
Human resources training professional
: As the human resources training professional, you have been asked to train hiring managers about the importance of knowledge of employment laws in creating a fair and safe work environment. These laws protect the company and its employees. The law..
|
Find the triangle area using herons formula
: Suppose you know all the side lengths of a triangle. You can find the triangle area using Heron's formula: TriangleArea = √{S (S - a) (S - b) (S - c)} where S is the semi-perimeter and is calculated using the formula.
|
When might it be a bad idea to use ppp theory in this way
: When might it be a bad idea to use the PPP theory in this way?
|
Calculate the new bond price
: Consider a 8.20 percent coupon bond with ten years to maturity and a current price of $949.30. Suppose the yield on the bond suddenly increases by 2 percent. Use duration to estimate the new price of the bond, Calculate the new bond price.
|
What is the percentage change in the price of bond
: Both bond A and bond B have 8.4 percent coupons and are priced at par value. Bond A has 7 years to maturity, while bond B has 18 years to maturity. Assume if interest rates suddenly rise by 1.2 percent, what is the percentage change in the price of b..
|
Instructions for second productivity and management paper
: Objective: Performance measurement is used by leaders and managers to ensure that organizations are functioning to their optimal ability. The techniques are many and varied, as you will see from your readings in Hatry. For your second paper I wan..
|