WOLFRAM SYSTEM MODELER
'sign()'sign() |
SystemModel["ModelicaReference.Operators.'sign()'"]
This information is part of the Modelica Standard Library maintained by the Modelica Association.
Sign function of a Real or Integer number
sign(v)
Is expanded into "noEvent(if v > 0 then 1 else if v < 0 then -1 else 0)". Argument v needs to be an Integer or Real expression.
sign({-3, 0, 3}) = {-1, 0, 1}