Law of Cosines Calculator
Law of Cosines is evaluated from Side a, Side b and Side c. The calculation reports Side a, Side b and Side c.
Results
About the Law of Cosines Calculator
The Law of Cosines calculator is a valuable tool for solving problems that involve finding the length of a side of a triangle when the lengths of the other two sides and the included angle are known, or finding an angle when all three sides are known. This calculator is particularly useful in various real-world applications, such as determining the distance between two points on the Earth's surface given their GPS coordinates, calculating the length of diagonal bracing in structural engineering, and solving problems in trigonometry and geometry. By using the Law of Cosines calculator, users can quickly and accurately find the solutions to these types of problems, which can be time-consuming and prone to error when done manually.
### History of the Law of Cosines Calculator
The Law of Cosines has its roots in ancient Greek mathematics, specifically in the works of Euclid and Aristarchus of Samos. However, the modern formula and its application to solve triangles were developed over time through the contributions of many mathematicians. The formula itself, c² = a² + b² - 2ab * cos(C), where c is the length of the side opposite angle C, and a and b are the lengths of the other two sides, is a fundamental principle in trigonometry. The use of this formula in calculators and computational tools is a more recent development, dating back to the advent of electronic computers and calculators in the mid-20th century. With the advancement of technology, the Law of Cosines calculator has become an indispensable tool for students, engineers, and professionals who need to solve triangular problems efficiently and accurately.
### The Science Behind the Calculations
The Law of Cosines calculator is based on the mathematical formula c² = a² + b² - 2ab * cos(C), where a, b, and c are the lengths of the sides of a triangle, and C is the angle opposite side c. This formula allows users to find the length of a side when the lengths of the other two sides and the included angle are known. Conversely, if all three sides are known, the calculator can find the angles of the triangle using the same formula rearranged to solve for the angle: cos(C) = (a² + b² - c²) / (2ab). The calculator also uses Heron's formula to calculate the area of the triangle when all three sides are known: Area = sqrt(s(s-a)(s-b)(s-c)), where s is the semi-perimeter, s = (a + b + c) / 2. By applying these mathematical principles, the Law of Cosines calculator provides accurate and reliable solutions to a wide range of triangular problems.
### Real-Life Application and Examples
Consider a structural engineer designing a bridge with a triangular support system. The engineer knows the lengths of two sides of the triangle (let's say 10 meters and 15 meters) and the included angle (60 degrees). To determine the length of the third side (the diagonal bracing), the engineer can use the Law of Cosines calculator. By inputting the known values (side a = 10, side b = 15, and angle C = 60 degrees), the calculator will output the length of the third side (side c). Let's say the calculator returns a value of 12.165 meters for side c. This information is critical for the engineer to ensure the structural integrity and safety of the bridge. Additionally, the calculator can also provide the angles of the triangle (angle A, angle B, and angle C) and other useful metrics such as the area and perimeter of the triangle, which can be used in further design and analysis. By leveraging the Law of Cosines calculator, the engineer can efficiently and accurately solve complex triangular problems, saving time and reducing the risk of human error.
Formula & How It Works
The calculation applies the following relations exactly as recorded in the metadata: c^2 = a^2 + b^2 - 2ab·cos(C) C = arccos((a^2+b^2 - c^2)/(2ab)) Area = sqrt(s(s - a)(s - b)(s - c)) Each output field is produced by substituting the supplied inputs into the relevant relation and then applying the declared rounding or text format.
Worked Examples
Example 1: SAS — Diagonal Brace Length
Inputs
With Side a = 8, Side b = 6 and Angle C = 120 as the stated inputs, the result is Side a = 8, Side b = 6 and Side c = 12.165525. Each value corresponds to the declared output fields.
Example 2: SSS — Find Angle for GPS Navigation
Inputs
With Side a = 120, Side b = 80 and Side c = 150 as the stated inputs, the result is Side a = 120, Side b = 80 and Side c = 150. Each value corresponds to the declared output fields.
Example 3: SSS — Heron's Formula Area
Inputs
With Side a = 5, Side b = 7 and Side c = 9 as the stated inputs, the result is Side a = 5, Side b = 7 and Side c = 9. Each value corresponds to the declared output fields.
Example 4: SAS — Baseball Diamond Diagonal
Inputs
With Side a = 90, Side b = 90 and Angle C = 90 as the stated inputs, the result is Side a = 90, Side b = 90 and Side c = 127.279221. Each value corresponds to the declared output fields.
Common Use Cases
- Find a side given two sides and included angle
- Find an angle given all three sides
- Calculate GPS distance between coordinates
- Structural engineering diagonal bracing