Previous Page Next Page Contents

Type::PolyOf -- type for testing polynomials

Introduction

With Type::PolyOf, polynomials can be identified.

Call(s)

testtype(obj, Type::PolyOf(coeff_type <, num_ind>))

Parameters

obj - any MuPAD object
coeff_type - the type of the coefficientes; a type can be an object of the library Type or one of the possible return values of domtype and type
num_ind - the number of indeterminates

Returns

see testtype

Related Functions

testtype, poly, indets

Details

Example 1

Is the object a polynomial with integer coefficients?

>> P := poly(-x^2 - x + 3):
   testtype(P, Type::PolyOf(Type::Integer))
                                   TRUE

Is the object a polynomial with integer coefficients and two indets?

>> P := poly(-x^2 - x + 3, [x, y]):
   testtype(P, Type::PolyOf(Type::Integer, 2))
                                   TRUE
>> delete P:

Changes




Do you have questions or comments?


Copyright © SciFace Software GmbH & Co. KG 2000