IsConjugate - Maple Help

StringTools

 IsConjugate
 test whether two strings are conjugate

 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

 > $\mathrm{with}\left(\mathrm{StringTools}\right):$
 > $\mathrm{IsConjugate}\left("abc","bca"\right)$
 ${\mathrm{true}}$ (1)
 > $\mathrm{IsConjugate}\left("abc","acb"\right)$
 ${\mathrm{false}}$ (2)
 > $\mathrm{IsConjugate}\left("abc","abcd"\right)$
 ${\mathrm{false}}$ (3)