StringTools - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Programming : Names and Strings : StringTools Package : Combinatorics on Words : StringTools/IsConjugate

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.

Examples

withStringTools:

IsConjugateabc,bca

true

(1)

IsConjugateabc,acb

false

(2)

IsConjugateabc,abcd

false

(3)

See Also

string

StringTools

 


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam