Using the cosine rules, the length c of the side of a triangle is calculated. The two sides a and b and the angle beta between them are given.
function cosineRules input Real a "length of side a of a triangle"; input Real b "length of side b of a triangle"; input Real beta "angle between side a and side b"; output Real c "length of side c of a triangle"; constant Real pi = Modelica.Constants.pi; end cosineRules;