RationalNormalForms
AreSimilar
test if two hypergeometric terms are similar
Calling Sequence
Parameters
Description
Examples
AreSimilar(S, T, n)
S
-
hypergeometric term in n
T
n
variable
The AreSimilar(S,T,n) function returns true if S⁡n and T⁡n are similar. Otherwise, false is returned.
Two hypergeometric terms S⁡n and T⁡n are similar if their ratio is a rational function of n.
This function is part of the RationalNormalForms package, and so it can be used in the form AreSimilar(..) only after executing the command with(RationalNormalForms). However, it can always be accessed through the long form of the command by using RationalNormalForms[AreSimilar](..).
with⁡RationalNormalForms:
S1≔n2;S2≔2n;T≔1
S1≔n2
S2≔2n
T≔1
AreSimilar⁡S1,T,n
true
AreSimilar⁡S2,T,n
false
T1≔1n+3!⁢2⁢n+7!⁢3⁢n+1!
T1≔3⁢n+1!n+3!⁢2⁢n+7!
T2≔n2−1⁢3⁢n+1!n+3!⁢2⁢n+7!
AreSimilar⁡T1,T2,n
See Also
RationalNormalForms[IsHypergeometricTerm]
Download Help Document