IsConjugate - Maple Help

Online Help

All Products    Maple    MapleSim


StringTools

  

IsConjugate

  

test whether two strings are conjugate

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

IsConjugate( s, t )

Parameters

s

-

string

t

-

string

Description

• 

The IsConjugate(s,t) command tests whether its arguments are conjugate strings. Two strings are conjugate if one is a cyclic permutation of the other.

• 

If s and t are empty strings, the command returns true.

• 

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

Examples

withStringTools:

IsConjugateabc,bca

true

(1)

IsConjugateabc,acb

false

(2)

IsConjugateabc,abcd

false

(3)

See Also

string

StringTools