Previous Page Next Page Contents

Dom::Expression -- the domain of all MuPAD objects of basic type

Introduction

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

Creating Elements

Dom::Expression(x)

Parameters

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

Categories

Cat::BaseCategory

Related Domains

Dom::ExpressionField

Details

Entries

randomIdent

an identifier used for creating random elements

Method convert: conversion of objects

Method convert_to: conversion to other domains

Method expr: just return the argument

Method testtype: tests whether its argument is an expression

Method float: convert numbers to floats

Method subs: substitution

Method subsex: extended substitution

Method random: create random expression

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))])
                --    +-          -+                    --
                |  3, | ?[1], ?[2] |, cos(1) + I sin(1)  |
                --    +-          -+                    --

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

>> Dom::Expression((3, x))                              
      Error: expecting one argument [Dom::Expression::convert]

Super-Domain

Dom::BaseDomain

Axioms

Ax::systemRep

, Ax::efficientOperation("_divide"), Ax::efficientOperation("_mult"), Ax::efficientOperation("_invert")

Changes




Do you have questions or comments?


Copyright © SciFace Software GmbH & Co. KG 2000