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

  Intersection of intervals

Simply the following union and /or intersection of intervals: (-••,5]Π[5,10)

  Describe joint and marginal probability distributions

Joint and Marginal Probability Distributions, Person takes bus & subway to work. Bus runs every 20 min (X) & subway every 4 min (Y).

  At which percentage rate were the gross annual earnings grow

The gross annual earnings of a certain company A(t)= 0.1t^(2)+10t+ 20 thousand dollars t years after its formation in 2004. At which percentage rate were the gross annual earnings growing with respect to time in 2008?

  Magnitude plot and phase plot

Magnitude plot and phase plot

  How many bacteria n will there be after three hours

A bacteria population starts with 400 bacteria and grows at a rate of r(t) bacteria per hour. How many bacteria n will there be after three hours? (Give your answer to the nearest bacterium.) r(t) = 450.266 e^(1.12567 t)

  Calculus ii assignment for the calculus ii assignment

for the calculus ii assignment provided below can you please provide step by step solutions for

  Find the indicated area under the standard normal curve

Find the indicated area under the standard normal curve.

  Mathematical model of bieber fever

A mathematical model of Bieber Fever: The most infectious disease of our time? Recently, an outbreak of Bieber Fever has blossomed into a full pandemic, primarily among our youth

  When will the object hit the ground

An object is thrown upward from the top of a 112-foot building with initial velocity of 96 feet per second.the height of h of the object after t seconds is given by the quadratic equation h =-16t^2+96t+112 when will the object hit the ground?

  What is the number of cubic centimeters in volume of box

a cardboard box has length y-2 width y+1 and height 2y. if y=8 what is the number of cubic centimeters in the volume of the box.

  Find the equation of the perpendicular bisector of the line

find the equation of the perpendicular bisector of the line segment between (2,6) and (4,-4). Put equation into slope-intercept form.

  What is the percent of increase

Job opportunities for physician's assistants are expected to increase from 58,000 in 2000 to 89,000 in 2010. What is the percent of increase.

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