Contents

Dom::Expression

Domain of all objects of basic type

Use only in the MuPAD Notebook Interface.

This functionality does not run in MATLAB.

Syntax

Dom::Expression(x)

Description

Dom::Expression comprises all objects only consisting of operands of built-in types.

Dom::Expression is a façade domain: it has no domain elements, but uses system representation.

Unlike Dom::ExpressionField, Dom::Expression does not belong to any arithmetical category, and its elements need not be arithmetical expressions.

Dom::Expression mainly serves as a super-domain to Dom::ArithmeticalExpression; it rarely makes sense to use it directly.

Superdomain

Dom::BaseDomain

Examples

Example 1

Almost every MuPAD® object can be converted to an expression. Objects of basic type are expressions.

Dom::Expression([3, array(1..2), rectform(exp(I))])

The convert method flattens its argument: hence expression sequences are not allowed.

Dom::Expression((3, x))
Error: The number of arguments is incorrect. [expr]
  Evaluating: Dom::Expression::new

Parameters

x

An object of basic type consisting only of operands of built-in types, or any other object convertible to such using expr.

Entries

"randomIdent"

an identifier used for creating random elements

Methods

expand all

Conversion Methods

testtype — Test whether its argument is an expression

testtype(x, Dom::Expression)

This method overloads testtype; since Dom::Expression has no domain elements, the overloading can only be caused by the second argument.

Technical Methods

subs — Substitution

subs(x, s, …)

See Also

MuPAD Domains

Was this topic helpful?