{"title":"A unified approach in manipulation with modular arithmetic","authors":"M. Stojcev, E. Milovanovic, I. Milovanovic","doi":"10.1109/MIEL.2012.6222892","DOIUrl":null,"url":null,"abstract":"Modular arithmetic lets us carry out algebraic calculations on integers with a systematic disregard for terms divisible by a certain number (called the modulus). This kind of reduced algebra is essential background for the mathematics of computer science, coding theory, primality testing, and much more. In this paper we propose a unique approach for calculating “mod” operation, regardless of the signs of operands by which all ambiguities present in high level languages, such as C, Java, C++, Mathematica, Matlab, are overcome. Modular arithmetic is quite a useful tool in number theory. In particular, it can be used to obtain information about the solutions (or lack thereof) of a specific equation. In order to reduce the number of iteration steps during the calculation of g.c.d. and solving linear diophantine equations in two variables, based on Euclidian and extended Euclidian algorithm, we propose the usage of mod and mod operations.","PeriodicalId":396356,"journal":{"name":"2012 28th International Conference on Microelectronics Proceedings","volume":"9 2","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2012-05-13","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"2","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2012 28th International Conference on Microelectronics Proceedings","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/MIEL.2012.6222892","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 2
Abstract
Modular arithmetic lets us carry out algebraic calculations on integers with a systematic disregard for terms divisible by a certain number (called the modulus). This kind of reduced algebra is essential background for the mathematics of computer science, coding theory, primality testing, and much more. In this paper we propose a unique approach for calculating “mod” operation, regardless of the signs of operands by which all ambiguities present in high level languages, such as C, Java, C++, Mathematica, Matlab, are overcome. Modular arithmetic is quite a useful tool in number theory. In particular, it can be used to obtain information about the solutions (or lack thereof) of a specific equation. In order to reduce the number of iteration steps during the calculation of g.c.d. and solving linear diophantine equations in two variables, based on Euclidian and extended Euclidian algorithm, we propose the usage of mod and mod operations.