residue number system in MATLAB

2 views (last 30 days)
Hana
Hana on 2 Dec 2022
Commented: Hana on 4 Dec 2022
Hi,
I wanted to ask if it is possible to use rns in MATLAB?
If it is possible to use the residue number system in MATLAB, please guide me.

Accepted Answer

Walter Roberson
Walter Roberson on 2 Dec 2022
MATLAB can be used to program any deterministic calculation that can fit into your computer memory. MATLAB is Turing-complete: you could use it to write a Turing Machine to perform any deterministic calculation that you can fit. It might take a long time, but it can be done.
Residue Number System is deterministic, so YES you can program it in MATLAB.
MATLAB does not supply any functions for rns so you will need to write them yourself.
  12 Comments
Walter Roberson
Walter Roberson on 4 Dec 2022
All three of the operations listed, are implimented in RNS by doing that same element-by-element operation on the RNS vectors (mod the appropriate prime), so basically that is the flow chart.
Note: at the moment I do not know any efficient method to convert an RNS vector to decimal.
Hana
Hana on 4 Dec 2022
Thank you for your answer.

Sign in to comment.

More Answers (0)

Products


Release

R2022a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!