| LawofCosines | R Documentation |
Use of the ancient law of cosines to determine the angle between two sides of a triangle, given lengths of all three sides. This is a generalization of Pythagoras' Theorem.
LawofCosines(sides)
sides |
a numeric vector of length 3, containing the side lengths. |
a numeric constant giving the angle in between the sides corresponding to the
first two components in sides. Result is expressed in degrees.
LawofCosines(c(3, 4, 5))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.