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

Permutations in Sage - examples #1

Open
marcinofulus opened this issue Mar 20, 2017 · 0 comments
Open

Permutations in Sage - examples #1

marcinofulus opened this issue Mar 20, 2017 · 0 comments

Comments

@marcinofulus
Copy link

Add some examples of using permutations in Sage:

p1 = Permutation([4,1,3,5,2])
p2 = Permutation([2,5,1,3,4])
show(p2p1)
show((p2
p1).to_cycles())
show(p1.inverse())
show(p1.to_matrix())
p1.show()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant