Residue Arithmetic in Digital Computers

Total Page:16

File Type:pdf, Size:1020Kb

Residue Arithmetic in Digital Computers r* 6 l't ¡r "RESIDUT ARITHMETIC IN DIGITAL COIIPUTERS" RAMESH CHANDRA DEBNATH/ M.SC. BEING A THESIS SUBMITTED FOR THE DEGREE OF DOCTOR OF PHILOSOPHY IN THE DEPARTMENT OF ELECTRICAL ENGINEERING THE UNIVERSITY OF ADELAIDE IVIARCl-i I979 SUIq¡4ARY The number systems used have great impact on the speed of a computer, At present at least 4 number systems (binary, negabinary, ternary and residue) are in use either for general purposes or for special purposes. The calîry plîopagation delay which j-s inherent to all weighted systems (binary, negabi-nary and ternary) is a limiting factor on the speed of computations. tlnlike the weighted system, the residue system is carry free which is the m¿rln attractj-ve feature of this system and therefore its potentiality in a general purpose computer, in the light of present day tech- nology, has been investigated. As the background of the investigation the binary and negabinary arithmetic have been thoroughly studied. A ne',r method for fractional negabinary division, and a correction on negabinary multiplì-cation have been proposed. It has been observed that the binary arithmetic operations are fas- ter thair thcse ir. negabinary syslem. The residue system has got. problems too. The sign detectj-on, operations j-nvolving sign detection (comparison, overflow detection, division) and the resj-due-to--decimal- con- version are difficult. Moreover, the residue systemT being an i.nteger: systetn, makes floati-ng poinc arithmetic operatlcns very difficult. The def:ails of the existing algorithms,/ methods to solve those problems have been thoroughly inves- tigated and drawbacks of those algoritlrms/methods have been di scussed. This thesis proposes a new method on multiplj-cative overflow detect-ion in the residue system, a technique for the determination of the first approximation for residue integer division, algorithms for floating point arithmetic operations in the residue system and a method for the res- idue--to-decimal conv.rsion. In order to verify those proposed methods and algor- ithms a 16-15 moduli- residue arithmetic unit has been designed using LS1 components. The unit together with (in this case) an SDK-80 microcomputer can perform all the integer and floating poi-nt arithmetic operations. It has been obse::ved that t'he binary system still- main- tains its predominance over the residue system in general purpose digital computers. However, the residue system is faster where there is no operation involvi-ng sign detection, and also the carry free property, in very large systems, is of great i-mportance j-n minimj-sing the chip connectíons and inter chip delays. In future, investigation should be carried out on the possibility of using VLS1 components which may up- set the present conclusions which are generally in favour of the binary system. ACKNOWI,EDGEMENT The autholî likes t'o acknowledge the contributions of those who have, directly or indlrectly, assisted in this research and preparat-i-on of this t.hesis. The author is pleased to thank Dr D.A. Pucknell, the project supervisor, for his invaluabÌe grlid"rr." and encouragement. The author likes to thank the Radio Research Board of Australia and the Col-ombo Plan Authority for their financial assistance for this project. The author would like to thank t.he technical staff of the Department of Electrical Engineering, University of Adelaide and specially Mr R.C. Nash for his helping hand in the computer laboratory. The author is pleased to thank Mr D.C. Pawsey, senior lecturer and Mr C.K. Linke, laboratory manager, of the Department of Electrj-cal Engineerirg, universj-ty of Adelaide, for their positive help in making a pleasant stay in Ausf:ra1ia. The author likes to thank Mrs Mercaa Fuss for her excellent typing. Fina1ly, the author wislies to thank his wife, Mrs Asha Rani Debnath, for her encouragement 'Ehroughout the research. PAPER WRITTEN BY THE AUTHOR with D.A. Pucknell, "Orr multiplicatlve overflow detection in residue number system". Electronics Letters, Vol.L4, No.5, March 1.978, Þp. L29-130. ERRATA: "On multiplicative overflor^¡ detection i-n residue number system", Electronj-cs Letters, Vol.14, No.l-2, June L978, p. 385. NOTATIONS [x] The highest integer value of X, but less than X. (X may be an arithmetic expressi-on also. ) Fr (ArB) Floating point au].dition/ subtraction with operands A and B. rr (a. e) Floating point multiplicat1on with operands A and B. Fr (AlB) Floating point division with operands À and B. r (n) Shift T to n positions left. (_ Pol (r (n) ) Pol-arÍse r (n) . X+V Replace the value of X with V. (/ may be an arithmetic or a logical expression. ) rn( x, v,....) fnputs X, Y , SX or S (X) Sign of X. x V Swap the values of X and Y. - (X) E F"n, ,t,] E(X ) G (X) 2 lx l* or [x ]* Residue of X with respect to module m. lxl Absotute value of X. Gate (qb,c,...Þ,L) Gate with inputs b, c, . .lz ano output ,L at the location 4. on the residue arithmetic unit (net-t) board. Coef f (a) :> d2 t a-7 0,2 and G.7 are the co-efficients of A. Exp (X) Exponent of X. Mnr (x) MantÍssa of X. :l Contains. CONTBNTS Page L/ INTRODUCTION 1 1.1 Introductory Note 1 1.2 Number Systems an overview 2 2/ ÏNTRODUCTÏON TO BINARY AND NEGABINARY NUMBER SYSTEMS, B 2.L Binary Arithmetic B 2.I.1 Binary Addition and Subtraction 9 2.I.2 Binary Multiplication l_1 2.t.3 Binary Division t4 2.2 The Negabinary Number System 15 2.2.1 Negabinary Number Representation 15 ( lnreger) 2.2.2 Negabinary Number Representation (fraction) 15 2.2.3 Polarisation of Negabinary Number 16 2.2.4 Negabinary Addition/Subrraction l_6 2.2.5 Negabinary Multiplication 20 2.2.6 Negabinary Divislon 20 2.2.7 A Correction Proposed on Varrable Shift Ncgabinary Multiplication 22 2.2.8 Method Proposed on Negabinary Fracti-onal Divisicn 23 2.3 Concl-usion 27 3/ RESIDUE ARITHMETTC LITERATURE REVTEW 2B 3.1 Introduction 2B 3.2 Integer Residue ArithmetÍc an outl j-ne 29 3.2.1 Addition, Subl-raction and Multipl j-cation 29 3.2.2 Division 2c) 3.3 Overflow 33 3.3.1 Overflow due to Addition/ Sul:traction 34 3.3.2 Mul-tiplicative Overf low 34 3.4 Floating Poj.nt Arithmetic in a Residue Number System 35 3.4 1 The Representation of Floating Point Numbers 36 3.4.2 Floating Point Arithmetic 36 3 5 Transl-ation of Residue Numbers to Decimal Numbers 40 3.6 Conclusion 40 4/ RESIDUE ARTTHMETTC ALGORITHMS AND 43 TECHNIQUE PROPOSED 4.L Tntroducti-on 43 4.2 Multiplicative Overf l-ow Theoretical- Aspects 43 4 .2.L Logarithmj-c Distribution of Residue Numbers 44 4.2.2 Design Ideas for Overflow Detection 50 4.2.3 Desi-gn Example on Overflow Detection 52 4 3 General- Division 59 4.3.1 A Division Process 59 4.3.2 How to find the first approx- imation and successive approxJ-m- 61 ations 4.4 Floating Point Ari--hmetic 65 4.4.L Theoretical Concept 65 4.4.2 Floating Point Representation of a Number 66 4.4.3 Floatiug Point Arithmetic with Zero Exponent 66 ¿.Á.a Float-ing Point Ar:j thmetic with Non-zero Exponent 71, 4.4.5 How to find the co-eff-tcient of a mantissa 73 4.4.6 Error in the Proposed Floating Point Arithmetic Operations 73 4.5 Output Translation 74 4.5. 1 Theoretical- Aspects 74 4.5.2 Conversion Prrccedure 75 4.6 Conclusion 77 5/ DESIGN OF A REÀL TIME RESTDUE ARITHMETIC COIVIPUTER 79 5 1 Introduction 79 5 2 Addition, Subtraction and Multiplicat.ion 90 ( rnteger ) 5 3 Comparison 9B 5 4 Overflow Detection 108 5.5 Integer Division 118 5.6 Floating Point Arithmetic r26 5.7 Output Circuit of the RAU t44 5 I Conversion of Residue Numbers to Deci-mal Numbers L47 9 How the Residue Arithmetic Computer Works L49 5. 10 FIow to Operate the RAC 151 5.11 Conclusion 153 6/ CONCLUSTON 155 BIBLIOGRÀPHY L70 Appendix- 1 Some fmportant Proofs A1 .T Appendix-2 Floating Point Val-ue otB A7 Appendl x-3 Table of mantlssa and A9 exponent 1 "f B Appen<lix-4 Error Analysis of Floating Point Àddi-tion and Multiptication A16 Appendix-5 Mixed Radix Conversion A24 Appendix-6 Program Listings A26 À 1 INTRODUCTION 1.1 Introductory Note The number system has a great impact on the speed of computer arithmetic which, together wÍth other factors access ti-¡ne of memories, memory hierarchy and computer architecture, inflüence the speed of a computer as a whole. scientific probrems such as the solution of rarge sets of linear equations, problems embracing the field of structural design, traffic f-icw, signal processing etc. are associated- with a great deal of computation. A number system with its associated arithmetic algori-thms can greatly effect the speed of computat j-on. The choice of a number system depends on the availab- ility of efficient arithmetic algorithms. Technology also influences the choice a great deal. For example, a decimar system would be preferable to a binary system if technology could provide low cost reliable ten valued logic circuits. one nuirrber system can offer advantages on a particular cper- ation, but may be unsuitable from the consideration of over- all s;peed of computatl-on. For example, in a resi_due system, mu]-tiplication is faster, however, other operations such as si-gn detection, comparison and overflow detection are slow processes" rt is, therefore, worthwhile to investigate which of the existing number systems can offer the greatest overall 1 2 speed advantage in computer arithmetic for general purpose computers.
Recommended publications
  • Numeration 2016
    Numeration 2016 Prague, Czech Republic, May 23–27 2016 Department of Mathematics FNSPE Czech Technical University in Prague Numeration 2016 Prague, Czech Republic, May 23–27 2016 Department of Mathematics FNSPE Czech Technical University in Prague Print: Česká technika — nakladatelství ČVUT Editor: Petr Ambrož [email protected] Katedra matematiky Fakulta jaderná a fyzikálně inženýrská České vysoké učení technické v Praze Trojanova 13 120 00 Praha 2 List of Participants Rafael Alcaraz Barrera [email protected] IME, University of São Paulo Karam Aloui [email protected] Institut Elie Cartan de Nancy / Faculté des Sciences de Sfax Petr Ambrož petr.ambroz@fjfi.cvut.cz FNSPE, Czech Technical University in Prague Hamdi Ammar [email protected] Sfax University Myriam Amri [email protected] Sfax University Hamdi Aouinti [email protected] Université de Tunis Simon Baker [email protected] University of Reading Christoph Bandt [email protected] University of Greifswald Attila Bérczes [email protected] University of Debrecen Anne Bertrand-Mathis [email protected] University of Poitiers Dávid Bóka [email protected] Eötvös Loránd University Horst Brunotte [email protected] Marta Brzicová [email protected] FNSPE, Czech Technical University in Prague Péter Burcsi [email protected] Eötvös Loránd University Francesco Dolce [email protected] Université Paris-Est Art¯urasDubickas [email protected] Vilnius University Lubomira Dvořáková [email protected] FNSPE, Czech
    [Show full text]
  • **4************ from the Original Document
    DoCUMENT/ RESUME ED 220 67)9 CE 033 642 TITLE Military Curriculum Materials for Vocational and (14Technical Educaticin. Fundamentals of Digital Logic, 7-1. INSTITUTION Marine Corps, Washington, D.C.; Ohio State Univ., Columbus. National Center for Research in Vocational Education, SPONS AGENCY Office of Education (DHEW), Washington, D.C4. PUB DATE (76) NOTE 146p. EDR's PRICE MF01/P606 PlusPostase. DESCRIPTORS Arithmetic; *Digital'IComputers; *Electric Circuits; *Electronic Technicians; !Equipment Maintenance; Individualized Instruction; Instructional Materials; *Mathematical Lpgic; Mathematics; Military Personnel; Military TrainVng; Postsecondary Educationp Secondary Education; *Technical Education IDENTIFIERS Binary Arithmetic; Boolean Algebra; *Computer Logic; Military Curriculum Project ABSTRACT 'Tarqeted for grades0'through adult, these military-developed curriculum mater als consist ofa student lesson book with text readings and review pierVes designed to prepare electronic.per,sonnel for further trainin in digital'techniques. Covered,in the five lessons are binary arithmeti8 (number systems, decimal systemi, the mathematical form of notation, number system conversion, matheinatical operat4ons, specially coded systems); Boolean.a,lgebra (basic 'functions, signal levels, application of L Boolean algebra, Boolean equations, drawing logic diagrams, theorems and truth tables, simplifying Boolean equations); logic gates (diode logic circuits, transistor logic ,ci.rcuits, NOT circuits, EXCLUSIVE OR circu0s, operational analysis); logic
    [Show full text]
  • Appendix: the Cost of Computing: Big-O and Recursion
    Appendix: The Cost of Computing: Big-O and Recursion Big-O otation In the previous section we have seen a chart comparing execution times for various sorting algorithms. The chart, however, did not show any absolute numbers to tell us the actual time it took, say, to sort an array of 10,000 double numbers using the insertion sort algorithm. That is because the actual time depends, among other things, on the processor of the machine the program is running on, not only on the algorithm used. For example, the worst possible sorting algorithm executing on a Pentium II 450 MHz chip may finish a lot quicker in some situations than the best possible sorting algorithm running on an old Intel 386 chip. Even when two algorithms execute on the same machine, other processes that are running on the system can considerably skew the results one way or another. Therefore, execution time is not really an adequate measurement of the "goodness" of an algorithm. We need a more mathematical way to determine how good an algorithm is, and which of two algorithms is better. In this section, we will introduce the "big-O" notation, which does provide just that: a mathematical description that allows you to rate an algorithm. The Math behind Big-O There is a little background mathematics required to work with this concept, but it is not much, and you should quickly understand the major concepts involved. The most important concept you may need to review is that of the limit of a function. Definition: Limit of a Function We say that a function f converges to a limit L as x approaches a number c if f(x) gets closer and closer to L if x gets closer and closer to c, and we use the notation lim f (x) = L x→c Similarly, a function f converges to a limit L as x approaches positive (negative) infinity if f(x) gets closer and closer to L as x is positive (negative) and gets bigger (smaller) and bigger (smaller).
    [Show full text]
  • On Expansions in Non-Integer Base
    SAPIENZA UNIVERSITA` DI ROMA DOTTORATO DI RICERCA IN “MODELLI E METODI MATEMATICI PER LA TECNOLOGIA E LA SOCIETA` ” XXII CICLO AND UNIVERSITE´ PARIS 7-PARIS DIDEROT DOCTORAT D’INFORMATIQUE On expansions in non-integer base Anna Chiara Lai Dipartimento di Metodi e Modelli Matematici per le Scienze applicate Via Antonio Scarpa, 16 - 00161 Roma. and Laboratoire d’Informatique Algorithmique: Fondements et Applications CNRS UMR 7089, Universit´eParis Diderot - Paris 7, Case 7014 75205 Paris Cedex 13 A. A. 2008-2009 Contents Introduction 3 Chapter 1. Background results on expansions in non-integer base 6 1. Our toolbox 6 2. Positional number systems 10 3. Positional numeration systems with positive integer base 11 4. Expansions in non-integer bases 12 Chapter 2. Expansions in complex base 17 1. Introduction 17 2. Geometrical background 18 3. Characterization of the convex hull of representable numbers 24 4. Representability in complex base 35 5. Overview of original contributions, conclusions and further developments 37 Chapter 3. Expansions in negative base 40 1. Introduction 40 2. Preliminaries on expansions in non-integer negative base 41 3. Symbolic dynamical systems and the alternate order 44 4. A characterization of sofic ( q)-shifts and ( q)-shifts of finite type 46 − − 5. Entropy of the ( q)-shift 47 − 6. The Pisot case 49 7. A conversion algorithm from positive to negative base 52 8. Overview of original contributions, conclusions and further developments 56 Chapter4. GeneralizedGoldenMeanforternaryalphabets 58 1. Introduction 58 2. Expansions in non-integer base with alphabet with deleted digits 58 3. Critical bases 60 4. Normal ternary alphabets 62 5.
    [Show full text]
  • 3958 Weird Numbers
    3958 Weird Numbers Binary numbers form the principal basis of computer science. Most of you have heard of other systems, such as ternary, octal, or hexadecimal. You probably know how to use these systems and how to convert numbers between them. But did you know that the system base (radix) could also be negative? One assistant professor at the Czech Technical University has recently met negabinary numbers and other systems with a negative base. Will you help him to convert numbers to and from these systems? A number N written in the system with a positive base R will always appear as a string of digits between 0 and R − 1, inclusive. A digit at the position P (positions are counted from right to left and starting with zero) represents a value of RP . This means the value of the digit is multiplied by RP and values of all positions are summed together. For example, if we use the octal system (radix R = 8), a number written as 17024 has the following value: 1 ∗ 84 + 7 ∗ 83 + 0 ∗ 82 + 2 ∗ 81 + 4 ∗ 80 = 1 ∗ 4096 + 7 ∗ 512 + 2 ∗ 8 + 4 ∗ 1 = 7700 With a negative radix −R, the principle remains the same: each digit will have a value of (−R)P . For example, a negaoctal (radix R = −8) number 17024 counts as: 1 ∗ (−8)4 + 7 ∗ (−8)3 + 0 ∗ (−8)2 + 2 ∗ (−8)1 + 4 ∗ (−8)0 = 1 ∗ 4096 − 7 ∗ 512 − 2 ∗ 8 + 4 ∗ 1 = 500 One big advantage of systems with a negative base is that we do not need a minus sign to express negative numbers.
    [Show full text]
  • 1 Introduction 2 Place Value Representation
    Exotic Arithmetic, 2019 Fusing Dots, Antidots, and Black Holes 1 Introduction This paper discusses several methods of representing numbers, and several ways to understand these methods of representation.1 We begin with what is called decimal representation, the ordinary method we use to represent integers and fractions. Because the method of representation is an important starting point in learning the arithmetic of integers and decimals, we shall explore alternative methods of representation, that is, representation using bases other than our usual base 10 ten. This is roughly akin to the idea that one does not really understand one's own language until we learn a second language. Instead of trying to develop representation in an arbitrary base b, we select a specific base for the sake of clarity. This is base 5 representation. Also, we'll spend some time learning Martian numeration, base 6. Later we will discuss other representation including those for which the base b is not a positive integer. We also explore the system of enumeration when b is a rational number but not an integer, and then when b is a negative integer. Finally, we'll also see that it is even possible for b to be irrational. 2 Place Value Representation The place value interpretation of 4273 is 4000 + 200 + 70 + 3, which is a sum of multiples of powers of 10. The relevant powers of 10 are 103 = 1000; 102 = 100; 101 = 10; and 100 = 1. Each one has a coefficient or multiplier, 4; 2; 7; and 3, respectively. Thus 4 · 103; 2 · 102; 7 · 101; and 3 · 100 are multiples of powers of 10 and therefore 4273 is a sum of multiples of powers of 10.
    [Show full text]
  • On Expansions in Non-Integer Base
    SAPIENZA UNIVERSITA` DI ROMA DOTTORATO DI RICERCA IN “MODELLI E METODI MATEMATICI PER LA TECNOLOGIA E LA SOCIETA` ” XXII CICLO AND UNIVERSITE´ PARIS 7 - PARIS DIDEROT DOCTORAT D’INFORMATIQUE Abstract of the thesis On expansions in non-integer base Anna Chiara Lai Dipartimento di Metodi e Modelli Matematici per le Scienze applicate Via Antonio Scarpa, 16 - 00161 Roma. and Laboratoire d’Informatique Algorithmique: Fondements et Applications CNRS UMR 7089, Universit´eParis Diderot - Paris 7, Case 7014 75205 Paris Cedex 13 1 CONTENTS Introduction 1 1. Expansions in complex base 4 1.1. Introduction 4 1.2. Characterization of the convex hull of representable numbers 4 1.3. Representability in complex base 6 1.4. Conclusions and further developments 7 2. Expansions in negative base 7 2.1. Introduction 7 2.2. Symbolic dynamical systems and the alternate order 7 2.3. A characterization of sofic (¡q)-shifts and (¡q)-shifts of finite type 8 2.4. Entropy of the (¡q)-shift 8 2.5. The Pisot case 8 2.6. A conversion algorithm from positive to negative base 8 2.7. Conclusions and further developments 8 3. Generalized Golden Mean for ternary alphabets 8 3.1. Introduction 8 3.2. Critical bases 9 3.3. Normal ternary alphabets 9 3.4. Critical bases for ternary alphabets 9 3.5. Critical base and m-admissible sequences 10 3.6. Conclusions and further developments 10 4. Univoque sequences for ternary alphabets 10 Conclusions and further developments 11 References 11 INTRODUCTION This dissertation is devoted to the study of developments in series in the form ¥ x (1) i ∑ i i=1 q with the coefficients xi belonging to a finite set of positive real values named alphabet and the ratio q, named base, being either a real or a complex number.
    [Show full text]
  • Inquiry Based Learning with CLASSWIZ
    Inquiry Based Learning With CLASSWIZ ODIPO.P.O. CASIO GAKUHAN – KENYA 1 Preface This booklet aims to demonstrate that the scientific calculator can support inquiry based learning (IBL) over and above its traditional use in basic computation and recall. The approach adopted refers to Casio fx-82EX (CLASSWIZ) whose features and functions are considered adequate for facilitating such experiential learning activities as observation, recording, manipulation and analysis. The booklet is intended not only for mathematics but the entire STEM education. Instructors are encouraged to expand on the ideas, within the curriculum, to supplement course books. There could not be a better opportunity to pioneer approaches to instruction that are consistent with the realities of the 21st Century. It is advisable to take learners through Chapter 1 for them to attain proficiency with the calculator’s functions before proceeding to Chapter 2. An emulator that is downloadable from www.casio.edu for use with a projector will be of great help. The advanced models (CASIO fx-991EX and fx-570EX) mentioned in the last chapter are for teacher efficiency enhancement and will be found particularly useful in testing, assessment and evaluation exercises. They are also recommended for certain post-secondary education STEM courses. Acknowledgement This booklet was conceived out of a synergy between ideas advanced by the Center for Mathematics, Science and Technology Education in Africa (CEMASTEA) and CASIO GAKUHAN PROJECT. Lots of thanks for your efforts towards ‘modernizing’ STEM education. Not forgetting CASIO TEAM at SANGYUG ENTERPRISES Ltd. for enabling the project. 2 Contents 1. How to operate CLASSWIZ 1.1.
    [Show full text]
  • Imaginary Number Bases
    Imaginary Number Bases Philip Herd January 18, 2017 Abstract An expansion upon Donald Kunth’s quarter-imaginary base system is introduced to handle any imaginary number base where its real part is zero and the absolute value of its imaginary part is greater than one. A brief overview on number bases is given as well as conversion to both positive and negative bases. Additionally gives examples for addition, subtraction, multiplication for imaginary bases and adds a division method for imaginary bases as well as mentions possible uses. arXiv:1701.04506v1 [math.HO] 17 Jan 2017 1 Introduction A number base (or radix) is a positional number system that uses a set of digits to represent numbers. This takes the form of (...d4d3d2d1d0.d−1d−2d−3 ...)b where the symbol between d1 and d−1 is the radix point, used to denote the whole and fractional parts of a number. This may also be either a comma or a raised dot depending on culture [5]. The most familiar base is base 10 (decimal) which uses ten digits, 0 through 9, to represent any value. The form mentioned above may be rewritten as i X diB (1) where di are the digits and B is the base. This is the definition of a base. For values in a base other than ten, the base will be subscribed to it. Bases will also be bolded in this text. Twelve in base 2 for example is 11002. The first thirty-six digits that are used in this paper are in Table 1. History Numbers represented in a positional system can be traced to an- Digit Value Digit Value tiquity.
    [Show full text]
  • Numeration 2017 Argiletum in Madonna Dei Monti Rome, June 5 – 9, 2017
    Numeration 2017 Argiletum in Madonna dei Monti Rome, June 5 – 9, 2017 Contributions to Numeration Systems, Ergodic Theory, Number Theory and Combinatorics Department of Mathematics and Physics Conference Chairs: Vilmos Komornik and Marco Pedicini Conference Organisers: Valerio Talamanca, Corrado Falcolini, Anna Chiara Lai, Roberto Maieli Acknowledgements This conference was made possible through the generous support of • Istituto Nazionale di Alta Matematica “Francesco Severi”, Gruppo GNSAGA; • Department of Mathematics and Physics, Roma Tre University; • Laboratory Ypatia of Mathematical Sciences; • MIUR-PRIN2011 Metodi Logici per il Trattamento delle Informazioni. Special thanks to the Department of Architecture which hosted the Conference at the Argiletum. v Contents Expansions of quadratic numbers in a p-adic continued fraction. :::::::: 1 Umberto Zannier Around discretized rotation :::::::::::::::::::::::::::::::::::::::: 3 Shigeki Akiyama A Numeration System and a Gray Code Given by a Variant of the Tower of Hanoi :::::::::::::::::::::::::::::::::::::::::::::::::::::::: 5 Benoˆıt Rittaud Substitutions, coding prescriptions and Numeration ::::::::::::::::::: 11 Paul Surer On the sum of digits of the factorial ::::::::::::::::::::::::::::::::: 13 Carlo Sanna On the semi-random Luroth¨ map ::::::::::::::::::::::::::::::::::: 17 Marta Maggioni k-regular Sequences & Mellin–Perron Summation for Analyzing Fluctuations in Pascal’s Rhombus ::::::::::::::::::::::::::::::::::: 19 Daniel Krenn (based on a joint work with C. Heuberger and H.
    [Show full text]
  • Fx-991EX Learning Mathematics with Classwiz.Pdf
    PREFACE Over 40 years, the scientific calculator has evolved from being a computational device for scientists and engineers to becoming an important educational tool. What began as an instrument to answer numerical questions has evolved to become an affordable, powerful and flexible environment for students and their teachers to explore a wide range of mathematical ideas and relationships. The significant calculator developments of recent years, together with advice from experienced teachers, have culminated in the advanced scientific calculators, the CASIO fx-991 EX and the CASIO fx-570 EX, with substantial mathematical capabilities, including a spreadsheet, and extensive use of natural displays of mathematical notation. This publication comprises a series of modules to help make best use of the opportunities for mathematics education afforded by these developments. The focus of the modules is on the use of the ClassWiz in the development of students’ understanding of mathematical concepts and relationships, as an integral part of the development of mathematical meaning for the students. While meeting the computational needs of students throughout secondary school, and beyond, the ClassWiz can also be used to advantage by students to support their initial learning of the mathematical ideas involved; the calculator is not only a device to be used to undertake or to check computations, after the mathematics has been understood. The mathematics involved in the modules spans a wide range from the early years of secondary school to the early undergraduate years, from early ideas of number and algebra through to the study of calculus, probability and statistics, as well as advanced topics such as vectors, matrices and complex numbers.
    [Show full text]
  • Towards Formulation of a Complex Binary Number System
    Science and Technology, 7 (2002) 199-209 © 2002 Sultan Qaboos University Towards Formulation of a Complex Binary Number System Tariq Jamil*, David Blest** and Amer Al-Habsi* *Department of Information Engineering, College of Engineering, Sultan Qaboos University, P.O. Box 33, Al Khod 123, Muscat, Sultanate of Oman. **School of Mathematics and Physics, University of Tasmania, Launceston, TAS 7250, Australia. ﻨﺤﻭ ﻨﻅﺎﻡ ﻟﻸﺭﻗﺎﻡ ﺍﻟﻤﺭﻜﺒﺔ ﺍﻟﺜﻨﺎﺌﻴﺔ ﻁﺎﺭﻕ ﺠﻤﻴل ، ﺩﻴﻔﻴﺩ ﺒﻠﺴﺕ ﻭﻋﺎﻤﺭ ﺍﻟﺤﺒﺴﻲ ﺨﻼﺼﺔ : ﻟﺴﻨﻭﺍﺕ ﻋﺩﻴﺩﺓ ﻤﺎ ﺯﺍﻟﺕ ﺍﻷﺭﻗﺎﻡ ﺍﻟﻤﺭﻜﺒﺔ (ﺍﻟﻤﻌﻘﺩﺓ) ﺘﻌﺎﻤل ﺒﺸﻲ ﻤﻥ ﻋﺩﻡ ﺍﻻﻟﻔﺔ ﻨﺴﺒﺔ ﺍﻟﻰ ﺍﻷﺭﻗﺎﻡ ﺍﻟﺤﻘﻴﻘﺔ ﺒﻐﺽ ﺍﻟﻨﻅﺭ ﻋﻥ ﺍﻨﺘﺸﺎﺭ ﺍﺴﺘﻌﻤﺎﻻﺘﻬﺎ ﻓﻲ ﺘﻁﺒﻴﻘﺎﺕ ﻋﺩﻴﺩﺓ ﻓﻲ ﻤﺠﺎﻻﺕ ﺍﻟﻬﻨﺩﺴﺔ ﺍﻟﻜﻬﺭﺒﺎﺌﻴﺔ ﻭﺍﻟﺤﺎﺴﻭﺒﻴﺔ. ﻓﻲ ﻫﺫﻩ ﺍﻷﻴﺎﻡ ﻋﻤﻠﻴﺎﺕ ﺍﻟﺤﺎﺴﻭﺏ ﺍﻟﺘﻲ ﺘﺸﻤل ﺃﺭﻗﺎﻡ ﻤﺭﻜﺒﺔ (ﻤﻌﻘﺩﺓ) ﺘﻨﻔﺫ ﻓﻲ ﻜﺜﻴﺭ ﻤﻥ ﺍﻷﺤﻴﺎﻥ ﺒﻭﺍﺴﻁﺔ ﺘﻁﺒﻴﻕ ﻁﺭﻴﻘﺔ ﺘﻘﺴﻴﻡ ﺃﺠﺯﺍﺀ ﺍﻟﺭﻗﻡ ﺍﻟﻤﺭﻜﺏ ﺇﻟﻰ ﻤﻜﻭﻨﺎﺘﻪ ﻭﺘﻨﻔﻴﺫ ﺍﻟﻌﻤﻠﻴﺎﺕ ﺍﻟﺤﺴﺎﺒﻴﺔ ﻋﻠﻰ ﻜل ﺠﺯﺀ ﻋﻠﻰ ﺤﺩﻯ . ﻓﺎﻟﺠﺯﺀ ﺍﻟﺤﻘﻴﻘﻲ ﻭﺍﻟﺨﻴﺎﻟﻲ ﻤﻥ ﺍﻟﺭﻗﻡ ﺍﻟﻤﺭﻜﺏ ﻴﻔﺼﻠﻭﺍ ﻋﻥ ﺒﻌﺽ ﻭﺘﻨﻔﺫ ﺍ ﻟﻌﻤﻠﻴﺎﺕ ﺍﻟﺤﺴﺎﺒﻴﺔ ﻋﻠﻰ ﻜل ﺠﺯﺀ ﺜﻡ ﺘﺠﻤﻊ ﺍﻟﻨﺘﺎﺌﺞ ﻟﻜل ﺠﺯﺀ ﻟﺘﺭﻜﻴﺏ ﺍﻟﻨﺘﻴﺠﺔ ﺍﻟﻨﻬﺎﺌﻴﺔ ﻟﻠﻌﻤﻠﻴﺔ ﺍﻟﻤﺭﻜﺒﺔ . ﻫﺫﻩ ﺍﻟﻁﺭﻴﻘﺔ ﻓﻲ ﺘﻌﻘﻴﺩ ﺍﻟﻌﻤﻠﻴﺎﺕ ﺍﻟﺤﺴﺎﺒﻴﺔ ﻋﻠﻰ ﺍﻷﺭﻗﺎﻡ ﺍﻟﻤﺭﻜﺒﺔ ﺘﺤﺙ ﻋﻠﻰ ﺇﻴﺠﺎﺩ ﻁﺭﻴﻘﺔ ﻟﻤﻌﺎﻤﻠﺔ ﺍﻷﺭﻗﺎﻡ ﺍﻟﻤﺭﻜﺒﺔ ﺘﺤﺙ ﻋﻠﻰ ﺇﻴﺠﺎﺩ ﻁﺭﻴﻘﺔ ﻟﻤﻌﺎﻤﻠﺔ ﺍﻷﺭﻗﺎﻡ ﺍﻟﻤﺭﻜﺒﺔ ﻜﻭﺤﺩﺓ ﻭﺍﺤﺩﺓ ﻭﺘﻨﻔ ﻴﺫ ﺍﻟﻌﻤﻠﻴﺎﺕ ﺍﻟﺤﺴﺎﺒﻴﺔ ﻋﻠﻴﻬﺎ ﺒﻁﺭﻴﻘﺔ ﻤﺒﺎﺸﺭﺓ . ﻓﻲ ﻫﺫﺍ ﺍﻟﺒﺤﺙ ﻗﻤﻨﺎ ﺒﺘﺤﻠﻴل ﻭﺍﻗﺘﺭﺍﺡ ﺍﻟﻨﻅﺎﻡ ﺍﻟﺭﻗﻤﻲ ﺍﻟﺜﻨﺎﺌﻲ ﺍﻟﻤﺭﻜﺏ ﺒﺄﺴﺎﺱ (j-1-) . ﻨﺎﻗﺸﻨﺎ ﺍﻟﻌﻤﻠﻴﺎﺕ ﺍﻟﺤﺴﺎﺒﻴﺔ ﻋﻠﻰ ﻋﺩﺩﻴﻥ ﻓﻲ ﻫﺫﺍ ﺍﻟﻨﻅﺎﻡ ﻭﺍﻭﻀﺤﻨﺎ ﺍﻟﺩﺭﺍﺴﺎﺕ ﺍﻟﻘﺎﺌﻤﺔ ﺤﺎﻟﻴﺎ ﻓﻲ ﻤﺠﺎل ﺍﻟﺤﺎﺴﻭﺏ. ABSTRACT: For years complex numbers have been treated as distant relatives of real numbers despite their widespread applications in the fields of electrical and computer engineering. These days computer operations involving complex numbers are most commonly performed by applying divide- and-conquer technique whereby each complex number is separated into its real and imaginary parts, operations are carried out on each group of real and imaginary components, and then the final result of the operation is obtained by accumulating the individual results of the real and imaginary components.
    [Show full text]