Next Page Contents

Type::AlgebraicConstant -- a type representing algebraic constants

Introduction

Type::AlgebraicConstant represents algebraic constants.

Call(s)

testtype(obj, Type::AlgebraicConstant)

Parameters

obj - any MuPAD object

Returns

see testtype

Related Functions

testtype, Type::Constant

Details

Example 1

The following number is composed of radicals involving rational numbers and therefore is an algebraic constant:

>> testtype((3^(1/2)*I + 1/8)^(1/7), Type::AlgebraicConstant)
                                   TRUE

The following objects are not algebraic constants:

>> testtype(2^I, Type::AlgebraicConstant),
   testtype(PI, Type::AlgebraicConstant)
                               FALSE, FALSE

Example 2

Symbolic objects cannot represent algebraic constants:

>> testtype(x, Type::AlgebraicConstant)
                                   FALSE

Example 3

The following call selects the algebraic constants in an expression:

>> select(x + PI + 2^(1/2) + I, testtype, Type::AlgebraicConstant)
                                  1/2
                                 2    + I

Changes




Do you have questions or comments?


Copyright © SciFace Software GmbH & Co. KG 2000