Programming Team Mathematics Lecture 10/9/04
Women’s Programming Team Mathematics and Geometry Lecture 10/23/12
I. Base Conversion
To convert from base A to base 10: If the base A value is dndn-1dn-2... d0, we simply compute the polynomial dnAn + dn-1An-1 + ... + d1A + d0.
To convert from base 10 to base A: assume we are storing the converted value in an array newVal and that this array is "big enough" to store the converted value. Then we convert the base ten value Val as follows:
// Compute the successive digits in the converted value in reverse order.
place = 0;
while (Val > 0) {
newVal[place] = Val%A;
Val = Val/A;
place++;
}
// Reverse the contents of newVal.
for (i=0; i ................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related searches
- grade 9 mathematics exam papers
- mathematics grade 10 exam papers
- mathematics grade 10 question papers
- grade 9 mathematics past papers
- grade 9 mathematics books pdf
- mathematics for grade 9 pdf
- mathematics grade 10 past papers
- tc 3 04 9 pdf
- 2016 year end grade 9 mathematics paper
- channel 9 i team cincinnati
- lecture notes in mathematics springer
- grade 9 mathematics june 2021