Polybench® Reference
Results in 1 - S, or the inversion of a pseudo-boolean input signal

1 - S

Overview

Use this operator to invert a pseudo-boolean input value, where 0.0 means false, and 1.0 means true.

Operator ports

Input S: Floating point values

Output 1-S: Floating point values

Properties

Find more information about changing properties here: link

Caption
type: Word or phrase
The name of the object in the project. This name must not contain '.' or '$' characters.

Every object has the Caption property. This property is very important, because it is the name by which Polybench recognizes this object.
It is allowed to give multiple objects the same name, as long as the objects are of the same type. In that case, a reference to this caption includes all the objects with the same caption.
In Polybench, every object can be addressed by an Address specifier, which starts with the dollar sign, for example: $My Page.My Object. 'My Page' would be the Caption of a page, and 'My Object' the Caption of an object on that page.

Documentation
type: See description
Optional documentation of this object.

It is good practice to write in short notes why you have used this object, and why its properties are set the way they are set. If this object is an operator, the Documentation text is displayed below the operator symbol.

Details

This operator is especially useful for calculations on pseudo-boolean control signals. Pseudo-boolen signal values are values that are defined to be boolean False if they are 0, and boolean True if they are greater than or equal to 1. If boolean values are defined this way, a logical AND operation equals multiplication, and a logical OR operation equals addition. The operator described here (1 - S) then equals a logical Inverter (True becomes False, and False becomes True).

Of course, this operator can also be used in other situations, and is not limited to do calculations on pseudo-booleans.