Documentation

## Mathematical Constants Available in MuPAD

MuPAD® notebooks will be removed in a future release. Use MATLAB® live scripts instead.

MATLAB live scripts support most MuPAD functionality, though there are some differences. For more information, see Convert MuPAD Notebooks to MATLAB Live Scripts.

### Special Real Numbers

MuPAD® provides symbolic representations of the following commonly used special real numbers. You can perform exact computations that include the constants. Also, you can get floating-point approximations with the current precision `DIGITS` by using the `float` function.

 `E` Euler number (exponential constant, base of natural logarithm) `PI` π ≈ 3.141592653 `EULER` Euler-Mascheroni constant `CATALAN` Catalan constant ### Infinities

MuPAD provides the symbolic representations for real and complex infinities. Many functions accept infinities as their arguments. For example, you can use infinities when computing sums, limits, integrals, and so on. Also, you can perform arithmetical operations with infinities. MuPAD can return infinities as results of computations:

 `infinity` Real positive infinity `complexInfinity` Infinite point of the complex plane `RD_INF` Real positive infinity used in floating-point `intervals` `RD_NINF` Real negative infinity used in floating-point `intervals`

### Boolean Constants

MuPAD uses a three-state logic with the Boolean constants `TRUE`, `FALSE`, and `UNKNOWN`. You can use these constants in computations. MuPAD can return these constants as a result of computations.

### Special Values

The following objects in MuPAD represent special values. You can use these special values in computations. MuPAD can return these values as a result of computations:

 `I` Imaginary unit . `NIL` Null object of the domain `DOM_NIL`. MuPAD uses this object to indicate missing objects explicitly. `null()` Null (void) object of the domain `DOM_NULL`. This object does not produce any visible output. MuPAD removes this object from data structures (such as sequences, lists, sets, and so on). `undefined` Undefined value. `RD_NAN` Undefined value used in floating-point `intervals`. If you use typeset mode, MuPAD displays this value as in output regions. `FAIL` Failure object of the domain `DOM_FAIL`.

### Special Sets

MuPAD provides the following predefined sets and lets you use them in computations. For example, you can use these predefined sets to compute intersections, differences, and unions, or to make assumptions. MuPAD can use these sets to return results of computations:

 `C_` The set of complex numbers `N_` The set of positive integers: `Q_` The set of rational numbers `R_` The set of real numbers `Z_` The set of integers

#### Mathematical Modeling with Symbolic Math Toolbox

Get examples and videos