| Author |
Comment/Response |
Bobby
|
06/17/12 2:41pm
I'm using PowerMod to compute inverses mod n. If n isn't prime inverses don't always exist so sometimes the function returns an integer sometimes it doesn't. How can I test in a module if the function is being used on a element that is invertible?
Ie a = PowerMod[2,-1,6] returns an error and when evaluating a I get PowerMod[2,-1,6]. While a = PowerMod[2,-1,5] returns 3.
URL: , |
|