algebraic

Navigation:  Language Reference > Functions > Arithmetic >

algebraic

Previous pageReturn to chapter overviewNext page

Syntax

y = algebraic(x);

Description

y becomes equal to x. This function forces the integration algorithm to find a solution by using the algebraic loop solver. Normally when algebraic loops occur in a model, 20-sim will itself will break the algebraic loop using the algebraic loop solver internally. You can use this function to break an algebraic loop at a user-defined position.

Examples

u = sin(time);

a = algebraic(y);

y = K*(u - a);

 

Note

Be very careful with this function. In most cases the symbolic engine of 20-sim will find and exact solution which will lead to much faster simulation!