StringTools[IsPeriod] - test whether a number is a period of a word
|
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.
|
|
|
Examples
|
|
>
|
|
>
|
|
| (1) |
>
|
|
| (2) |
>
|
|
| (3) |
>
|
|
| (4) |
>
|
|
| (5) |
>
|
|
| (6) |
>
|
|
| (7) |
>
|
|
| (8) |
>
|
|
| (9) |
>
|
|
| (10) |
>
|
|
| (11) |
|
|
Download Help Document
Was this information helpful?