On Sun, Aug 26, 2012 at 6:21 AM, Chris Smith <[email protected]> wrote:

...

> conjugate has already been defined as ~p, so that's covered
> p**i is defined for i and integer
>
> I can try making the p**p to be RL multiplication. I had another idea,
> however: I could enhance instantiation to accept the Mul syntax and
> make that R to L by default so Permutation([(1,2),(2,3)]) gives
> Permutation([0, 3, 1, 2]). If I did that, would the overloading of
> power be necessary? Instantiation could even take a list of
> Permutations and, again, return the R to L-computed permutation, e.g.
> Permutation([a,b,c]) would give a(b(c)).

That sounds okay with me too.
Offhand, I slightly prefer the other suggestion, as I'd expect some sort of
error message returned if the cycles are not disjoint. Say I mistakenly
enter a non-disjoint cycle (making a typo, say). I'd expect to see an error
rather than an unexpected error.
Which ever is easier to implement and others are happy with.


>
> --
> You received this message because you are subscribed to the Google Groups 
> "sympy" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/sympy?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sympy?hl=en.

Reply via email to