Pythagoras - MapleSim Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

Pythagoras

Determines the hypotenuse or leg of a right triangle

 

Description

Equations

Connections

Parameters

Modelica Standard Library

Description

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.

Equations

Connections

Name

Description

Modelica ID

Real input signal

u1

Real input signal

u2

Real output signal

y

Boolean output signal; true when y is a valid result

valid

Parameters

Name

Default

Units

Description

Modelica ID

u1 is hypotenuse

 

If true,  is the hypotenuse and y is one leg

u1IsHypotenuse

Modelica Standard Library

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