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.
DOM_RAT is the data type of rational numbers.
The operands of a rational number are its numerator and denominator:
When substituting an operand, the resulting
Using a rational number as a function returns that number unchanged. The function arguments are not evaluated.
Rational numbers are arithmetical expressions and therefore valid inputs to most MuPAD® functions.
DOM_RAT are always normalized,
cf. Example 1.
A rational number has two operands, which are integers: Its numerator and its denominator.
The division of two integers results in an integer or a rational number.