Message6266
| Author | nobody |
|---|---|
| Recipients | |
| Date | 2001-08-31.01:17:23 |
| SpamBayes Score | |
| Marked as misclassified | |
| Message-id | |
| In-reply-to |
| Content | |
|---|---|
You should be able to raise integers to negative powers mod n. If b<0, pow(a,b,c)==pow(pow(a,-1,c),-b,c) where pow(a,-1,c) is a's multiplicative inverse mod c, computed with the extended Euclid algorithm. This would be in Python's spirit of math completeness and would save people from the trouble of having to figure out the algorithm over and over. I can come up with a patch for this if it's agreed on as desirable. |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2007-08-23 13:56:03 | admin | link | issue457066 messages |
| 2007-08-23 13:56:03 | admin | create | |