blockcosineRulesBlock
Information
<!DOCTYPE html><html> <p>According to the cosine rules, the length <i><b>c</b> </i>of the side of a triangle is calculated. The two sides <i><b>a</b></i> and <i><b>b</b></i> and the angle beta between them are given.</p> </html>
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Real | pi | Modelica.Constants.pi |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Interfaces.RealInput | a | length of side a of a triangle | |
| Modelica.Blocks.Interfaces.RealInput | b | length of side b of a triangle | |
| Modelica.Blocks.Interfaces.RealInput | beta | angle between side a and side b | |
| Modelica.Blocks.Interfaces.RealOutput | c | length of side c of a triangle |