Suppose you know all the side lengths of a triangle you can


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.

Request for Solution File

Ask an Expert for Answer!!
Mathematics: Suppose you know all the side lengths of a triangle you can
Reference No:- TGS01411617

Expected delivery within 24 Hours