Numbers

Data types representing various kinds of numbers

Note

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

To convert a MuPAD notebook file to a MATLAB live script file, see convertMuPADNotebook. MATLAB live scripts support most MuPAD functionality, although there are some differences. For more information, see Convert MuPAD Notebooks to MATLAB Live Scripts.

MuPAD Functions

Type::NegIntType and property representing negative integers
Type::NegRatType and property representing negative rational numbers
Type::NegativeType and property representing negative numbers
Type::NonNegIntType and property representing nonnegative integers
Type::NonNegRatType and property representing nonnegative rational numbers
Type::NonNegativeType and property representing nonnegative numbers
Type::PosIntType and property representing positive integers
Type::PosRatType and property representing positive rational numbers
Type::PositiveType and property representing positive numbers
Type::NonZeroType and property representing “unequal to zero”
Type::ZeroType and property representing zero
Type::ComplexType and property representing complex numbers
Type::ImaginaryType and property representing imaginary numbers
Type::RealType and property representing real numbers
Type::EvenType and property representing even integers
Type::IntegerType and property representing integers
Type::NumericType representing numerical objects
Type::OddType and property representing odd integers
Type::PrimeType representing prime numbers
Type::RationalType and property representing rational numbers
Type::ResidueProperty representing a residue class

Examples and How To

Choose Appropriate Data Structures

When you create a new MuPAD object, you choose the domain type of that object either explicitly or implicitly.

Concepts

Data Type Definition

MuPAD stores all objects as elements of particular domains.

Type Checking and Mathematical Properties

Use only in the MuPAD Notebook Interface.