powered by
Computes angle between two segments of a triangle using law of cosines.
cosine.ang(l, r, o)
Numeric; length of segment to the left
Numeric; length of segment to the right
Numeric; length of opposite segment
A single value of the angle in radians
# NOT RUN { #a right triangle L=3 R=3 O=sqrt(L^2+R^2) cosine.ang(L,R,O) # }
Run the code above in your browser using DataLab