Previous Page Next Page Contents

Type::Equation -- a type representing equations

Introduction

Type::Equation represents equations. The types of the left hand side and the right hand side can be specified.

Call(s)

testtype(obj, Type::Equation( <lhs_type <, rhs_type>>))

Parameters

obj - any MuPAD object
lhs_type - the type of the left hand side; a type can be an object of the library Type or one of the possible return values of domtype and type
rhs_type - the type of the right hand side

Returns

see testtype

Related Functions

testtype

Details

Example 1

The following object is an equation:

>> testtype(x = 3, Type::Equation())
                                   TRUE

The following calls test, whether the object is an equation with an unknown on the left hand side and a positive integer on the right hand side:

>> testtype(x = 3, Type::Equation(Type::Unknown, Type::PosInt)),
   testtype(x = 0, Type::Equation(Type::Unknown, Type::PosInt))
                                TRUE, FALSE

Changes




Do you have questions or comments?


Copyright © SciFace Software GmbH & Co. KG 2000