type/zppoly - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Programming : Data Types : Type Checking : Types : type/zppoly

type/zppoly

check for a modp1 or modp2 polynomial

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

type(a, zppoly)

Parameters

a

-

expression

Description

• 

The  type(a, zppoly) calling sequence checks that a is a modp1 or a modp2 polynomial.

• 

The modp1 function provides efficient arithmetic and other operations for univariate polynomials modulo a prime.  The modp2 function provides similar efficiency for bivariate polynomials modulo a prime. They achieve this efficiency by using a dedicated data structure.

Examples

ax4x2+2 mod 11

ax4+10x2+2 mod 11

(1)

typea,zppoly

true

(2)

bx4y21 mod 17

by2x4+16 mod 17

(3)

typeb,zppoly

true

(4)

typemodp2Diffb,1,17,zppoly

true

(5)

typex2+2y,zppoly

false

(6)

See Also

modp1

modp2

type

type/algebraic

type/polynom