Pythagoras
Determines the hypotenuse or leg of a right triangle
Description
Equations
Connections
Parameters
Modelica Standard Library
The Pythagoras component computes the length of the third side of a right angle triangle.
If parameter u1 is hypotenuse is false, then y is the length of the hypotenuse, otherwise is the length of the hypotenuse.
Name
Modelica ID
Real input signal
u1
u2
Real output signal
y
Boolean output signal; true when y is a valid result
valid
Default
Units
u1 is hypotenuse
If true, is the hypotenuse and y is one leg
u1IsHypotenuse
The component described in this topic is from the Modelica Standard Library. To view the original documentation, which includes author and copyright information, click here.
See Also
Math Functions
Math Operators
Signal Blocks
Download Help Document