DOM_BOOL

Boolean constants

Description

DOM_BOOL is the data type of the truth values TRUE, FALSE, and UNKNOWN.

MuPAD® uses a three-valued logic system, with these values (constants) TRUE, FALSE, and UNKNOWN.

Function Calls

Using a Boolean constant as a function returns that constant unchanged. The arguments of the call are not evaluated.

Operations

The most important operations on Boolean values are the logical operators and, not, or, xor, ==>, <=>, and using them in conditions of if or piecewise.

Operands

Boolean constants are atomic.

Output

TRUE is displayed as TRUE, FALSE is displayed as FALSE, and UNKNOWN is shown as UNKNOWN.

Element Creation

The three constants can be types in as shown above. Additionally, many MuPAD functions returns Boolean values, the most generic/prominent two being bool and is.

See Also

MuPAD Functions

Was this topic helpful?