big x^y modulo function
by Michael Neve
15 Oct 2001
(Updated 16 Oct 2001)
provide the solution when the normal mod function can't because the input is to big
|
Watch this File
|
| File Information |
| Description |
In some fields as cryptology (RAS-cryption), there is a need of doing x^y mod m where x, y and n are huge. The build-in maltab function can't achieve the result because it first calculate x^y and found it is equals to inf. The hereunder function provides a performent solution to this problem and gives the right answer... |
| Acknowledgements |
This submission has inspired the following:
big modulo function
|
| MATLAB release |
MATLAB 6.0 (R12)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Comments and Ratings (4) |
| 03 Jun 2004 |
Muhammet UNAL
|
|
|
| 08 May 2005 |
bennyboss n/a
|
|
|
| 11 Nov 2007 |
Pavel Stepanek
|
|
|
| 11 Nov 2007 |
Pavel Stepanek
|
|
|
|
Contact us at files@mathworks.com