Find the triangle area using herons formula

Assignment Help Mathematics
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.

Reference no: EM131065796

Questions Cloud

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

Reviews

Write a Review

Mathematics Questions & Answers

  Find the probability that a randomly selected cr-v

Find the probability that a randomly selected CR-V has a gas mileage below 27 miles per gallon and if the distribution of the gas mileage of the CR-V is approximately normal with a standard deviation of 4 miles per gallon.

  How many of each type of calculator was ordered

the everton college store paid $1688 for an order of 44 calculators the store paid 10 dollars for each scientific calculator the others all graphing calculators cost $58 each how many of each type of calculator was ordered.

  Develop a hypothetical 95 confidence interval for a

construct a hypothetical 95 confidence interval for a hypothetical case of your choosing. use your own unique choice of

  Distribution of diameters of cylindrical blocks

A company is producing cylindrical blocks for a children's toy. The average diameter of a block is 3.5 inches. Sixteen blocks are inspected and the diameters are measured. The standard deviation is estimated to be 0.02 inches.

  Horizontal and an oblique asymptote

Why can't a rational function have both a horizontal and an oblique asymptote? Construct your own rational functions to give examples.

  A 1 5 and b 4 9 are two adjacent vertices of a square find

question a 1 5 and b 4 9 are two adjacent vertices of a square. find the equation of the line on which the side bc of

  The length of vector x is 14

If I have one cost function f(x) and I have 3 subject function (nonlinear function), the length of vector x is 14. Can I solve it using matlab function (fmincon)? And if I can, can you show me example?

  Write a paragraph or two comparing and contrasting

Write a paragraph or two comparing and contrasting all methods of solving systems of linear equations with two variables. Explain which method you prefer and why. Support your answer by appropriate examples.

  Find whether the given information results in one triangle

Find whether the given information results in one triangle.

  Determine whether the birth weights of full-term babies

What sample size is needed for this study? There is a trick in this question!! note that 3200 and 3800 are equally distant from 3500, so think two-sided!

  What is the derivative of the function

What is the derivative of the function? Use the quotient rule and show all steps. r/(r^2+1)^1/2

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd