Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Introduce the magic method __pow__ #3

Closed
VascoSch92 opened this issue Apr 29, 2024 · 0 comments · Fixed by #65
Closed

[FEATURE] Introduce the magic method __pow__ #3

VascoSch92 opened this issue Apr 29, 2024 · 0 comments · Fixed by #65
Assignees
Labels
feature New feature or request

Comments

@VascoSch92
Copy link
Owner

VascoSch92 commented Apr 29, 2024

Introduce the magic method __pow__ for all the subclasses of _Element.

The power of a permutation can be defined just for integer (positive and negative).

To define a negative power of a permutation, we need to be able to compute its inverse. See issue #4 .

Note that a $\sigma^0=\sigma$ for every permutation $\sigma$ in $S_n$ and every $n \in \mathbb{N}$

@VascoSch92 VascoSch92 added the enhancement Make something existing better label Apr 29, 2024
@VascoSch92 VascoSch92 changed the title Introduce the magic method __pow__ [FEATURE] Introduce the magic method __pow__ May 7, 2024
@VascoSch92 VascoSch92 added feature New feature or request and removed enhancement Make something existing better labels May 10, 2024
@VascoSch92 VascoSch92 self-assigned this May 27, 2024
@VascoSch92 VascoSch92 linked a pull request May 28, 2024 that will close this issue
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant