|
||||||
How to Calculate Sohcahtoa in SpreadsheetsThe Trigonometry of Right Angled Triangles in Excel and Calc
Sohcahtoa has been used by generations of teachers with generations of school children; it can now be made much easier by using spreadsheets.
When it comes to trigonometry one of the most useful shapes is the right angled triangle - especially when used with that age old acronym sohcahtoa; and a spreadsheet's formulae can help bring everything together. What Does Sohcahtoa Mean?Sohcahtoa is a simple acronym passed on by many a teacher to help school children remember the trigonometric relationships built into any right angled triangle:
Spreadsheets and Trigonometric FunctionsIt is important to note that Spreadsheets such as Excel and Calc use radians, and not degrees, when calculating trigonometric functions; therefore: =ASIN(0.5)
will not return 30 degrees (as every schoolchild would expect), it actually returns 0.52 radians, and so this must be converted from radians to degrees: =DEGREES(ASIN(0.5))
So, to calculate the Sine of a an angle in degrees it must first be converted to radians: =SIN(RADIANS(30))
The result from this would, of course, then be 0.5. Trigonometry, Right Angled Triangles, Spreadsheets and SinesThe starting point is to input the length of the sides of the right angled triangle so that:
Now from the soh from sohcahtoa the following is deduced: sine = opposite / hypotenuse
And then that can be turned into a spreadsheet formula: =C1/A1
Trigonometry, Right Angled Triangles, Spreadsheets and CosinesJust like Sines Cosines can be found sohcahtoa: cosine = adjacent / hypotenuse
And again, this can be turned into a formula: =B1/A1
Trigonometry, Right Angled Triangles, Spreadsheets and TangentsThe final step is to take the toa from sohcahtoa: tangent = opposite / adjacent
And produce another (but very similar) formula: =C1/B1
A Simple ExampleIn this simple example one of the inside angles of a 3-4-5 right angled triangle is calcualted: A1: 5
B1: 4
C1: 3
D1: =B1/A1
E1: =DEGREES(ASIN(D1))
The end result is 53.13 degrees. SummaryThe trigonometric relationships from a right angled triangle can easily be worked out by using the acronym sohcahtoa; and sohcahtoa can be broken down into:
If the lengths of the side of a right angled triangle are entered into a spreadsheet (such as Microsoft Excel or OpenOffice.org Calc) so that:
Then the trigonometric functions can be found from:
It must also be remembered that spreadsheets work in radians and not degrees.
The copyright of the article How to Calculate Sohcahtoa in Spreadsheets in Computer Programming is owned by Mark Alexander Bain. Permission to republish How to Calculate Sohcahtoa in Spreadsheets in print or online must be granted by the author in writing.
|
||||||
|
|
||||||
|
|
||||||