IsPeriod - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.
Our website is currently undergoing maintenance, which may result in occasional errors while browsing. We apologize for any inconvenience this may cause and are working swiftly to restore full functionality. Thank you for your patience.

Online Help

All Products    Maple    MapleSim


StringTools

  

IsPeriod

  

test whether a number is a period of a word

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

IsPeriod( w, p )

Parameters

w

-

Maple string

p

-

positive integer; candidate period of w

Description

• 

The IsPeriod(w,p) command tests whether the positive integer p is a period of the string w. A positive integer p is said to be a period of a string s if, for all integers i with , one has . If p is a period of w, then the value true is returned; otherwise, false is returned.

• 

All of the StringTools package commands treat strings as (null-terminated) sequences of -bit (ASCII) characters.  Thus, there is no support for multibyte character encodings, such as unicode encodings.

Examples

(1)

(2)

(3)

(4)

(5)

(6)

(7)

(8)

(9)

(10)

(11)

See Also

curry

select

string

StringTools

StringTools[Period]

 


Download Help Document