IsPrimitive - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


StringTools

  

IsPrimitive

  

test whether a string is primitive

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

IsPrimitive( s )

Parameters

s

-

string

Description

• 

The IsPrimitive(s) command returns the value true if s is primitive, and the value false otherwise. A string is primitive if it cannot be written as a proper power of another string. In other words, s is primitive if  implies that either  or  and .

• 

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)

See Also

string

StringTools

StringTools[LyndonFactors]

StringTools[Random]

StringTools[ThueMorse]

 


Download Help Document