I want to create rings of the form {-(p-1)/2, ... , 0, ... , (p-1)/2} , but Zmod(p) gives {0, ... , p-1}. How can this be done? Is there a way I could create custom-rings from lists? Like range(-d. d+1)
?
1 | initial version |
I want to create rings of the form {-(p-1)/2, ... , 0, ... , (p-1)/2} , but Zmod(p) gives {0, ... , p-1}. How can this be done? Is there a way I could create custom-rings from lists? Like range(-d. d+1)
?