Chapter 3: The Ardhaccheda of Virasena

Chapter 3: The Ardhaccheda of Virasena

Professor Antal Fekete

Mathematicsscholarly

Editorial Note

Chapter 3 of the Rainbow Slide Rule book (c. 2010), tracing the history of binary representations from ancient India through Leibniz to modern computing — situating Fekete's Rainbow digit system in a long mathematical tradition.

Chapter 3: ARDHACCHEDA OF VIRASENA (816 A.D.)

By a hair’s breadth the Romans missed inventing logarithms. As we have seen in Chapter 2, if you want to multiply any number by a power of two, say 2n, you just double that number n times. The desired product is the result of the last doubling. You may just forget about the adding part of the Roman method of multiplication. The exponent n actually tells you how many times you have to double the given number. It also tells you how many times you can halve 2n to get 1.

You can actually extend this result to the general case when the other factor of the product is not a power of two, by introducing the concept of “fractional doubling”. At any rate, that is what the Indian mathematician Acharya Virasena did. He considered 2x for fractional values of x to yield the number which, when halved x times, results in 1. In modern terminology we would say x = log2 2x (read: logarithm with base 2 of 2x).

In other words, the Romans could have introduced the definition: log2 n = the number of times n must be halved in order to get 1

This definition would have led them to compile the table: n

1 2 4 8 16 32 64 128 256 512 1024 log2 n 0 1 2 3

With pro-rating of the increases in that table (or, to use the technical term, applying interpolation), they would have extended their table to cover all integers:

1 2 3 4 5

7 8 9 n log2 n 0 1 1.59 2 2.32 2.59 2.81 3 3.17 3.32

The fractional part of the value of log2n indicates that the last halving overshot the target 1, so it had to be reduced to “fractional halving” to put it back on target. In the same way they could have extended their table to fractional values of n > 1. Such a table can be found on the Internet, see: Base 2 Logarithms Table, http://webcache.googleusercontent.com. The 2-decimal place value, of course, is only an approximation. For a 16-decimal place value, see the website: www.rapidtables.com. It is understandable that the Romans missed their chance to become the inventors of logarithms two thousand years ago. Their number system was just too clumsy. Virasena was enormously helped by the Hindu decimal number system that came into use in India at about the same time, between 800 and 825 A.D. Thus it took eight and one half of a century before the idea of counting the number of halvings in finding a product resurfaced.

Acharya Virasena was also an orator and a poet, and a student of the Jain sage Elacharya. He introduced the concept ardhaccheda, the number of times n could be halved before we reach 1 (or, if 0 < n < 1, the number of times n could be doubled before we reach 1, in which case the ardhaccheda of n is distinguished by giving it the negative signature). As we mentioned already, nowadays we call ardhaccheda “logarithm to base 2”. Virasena also worked out trakacheda and caturthacheda that nowadays would be called logarithms to base 3 and 4, denoted log3 n and log4 n, respectively.

Virasena knew how the tables above could be used to simplify calculations, e.g., multiply two numbers m and n by adding their logarithms and taking the “antilogarithm” of the sum, which means finding log2 m + log2 n in the second row of the table and pass to the corresponding value of n in the first.

For example, in finding 4 × 8 we write: log2(4 × 8) = log2 4 + log2 8 = 2 + 3 = 5 which we find in the second row just under n = 32, confirming that 4 × 8 = 32. “Taking the antilogarithm of log2 n ” is a perfectly superfluous term, as its meaning coincides with that of “taking 2 to the power of log2n”: 2log n = n . The two equalities 5 = log232 and 25 = 32 have exactly the same meaning, namely, x = 5 is the solution to the equation 2x = 32. To distinguish between the two expressions we call the first logarithmic form, the second the exponential form.

The contents of either one is that 2 must be raised to the power of 5 in order to get 32. Moreover, 5 is called the exponent or logarithm; 2 is the base; and 32 is the power.

In general, let the base be b (b > 0, b ≠ 1), the exponent x, and the power y (y > 0). Then x = logb y is the solution of the exponential equation bx = y. In this general case we can also see that logarithm is the exponent to which the base has to be raised in order to get the power. The logarithm satisfies the following identities: x blog x = x , logb b = x b logb (x1x2) = logb x1 + logb x2 logb ⎛⎜ ⎞⎟ = – logb x

⎝x⎠

(x ≠ 0) logb xn = n logb x logb ( n x ) = log b x n

The special cases logb b = 1 and logb 1 = 0 deserve special mention.

Exercises:

Write in logarithmic form the following:

(a) 25 = 32, (b) 52 = 25, (c) 104 = 10000, (d) 2–3 = 0.125

Write in exponential form the following:

(a) log10 100 = 2, (b) log2 0.0625 = – 4, (c) log5 0.0064 = –6,

(d) log5 3125 = 5, (e) log2 2048 = 11

Evaluate and provide reasons: (a) log2 128, (b) log5 0.00128,

(c) log10 0.0001, (d) log10 1000, (e) log2 0.25, (f) log5 0.16,

(g) logb bn

Evaluate and provide reasons: (a) log2 (¼), (b) log5 (1/25),

(c) log5 25, (d) log2 512, (e) log10 0.01, (f) logb bn, (g) logb( 3 b ),

(h) log6( 3 6 ), (i) logb(x/y), (j) logb( x ), (k) logb ( m x n )

Solve the exponential equations and check:

(a) 2x = 32, (b) 5x = 0.032, (d) 2x = 16, (e) 5x = 0.16,

(f) 10x = 1/1000, (g) 22x – 1 = 1024

Solve the logarithmic equations and check:

(a) log10 10x = 1/10, (b) log2 x = 128; (c) log5 x = 0.00128,

(d) log10 (log10 x) = 1, (e) log2 53x+1 = 2

Fill the blanks in the following tables:

(a) n

1 0.2 0.4 0.8 0.16 log2 n

(b) n

1 0.5 0.25 0.125 log5 n

(c) n

1 10 102 103 log10 n

(d) n

1 0.1 0.01 0.001 log10 n

(e) n

1 5 25 log5 n 0 1

3 4 5 6 7 8 9

Change of basis

There are direct and inverse operations. Direct operations are addition, multiplication, and raising one number to the power of another. Each of these have inverse operations. The inverse operation of addition is subtraction: given x + a = b, for the unknown x the solution is given by the difference x = b – a.

The inverse operation of multiplication is division: given ax = b (a ≠ 0), for the unknown x the solution is given by the fraction x = b/a. Addition and multiplication are commutative operations, and therefore there is just one inverse operation for either. This is no longer the case for the third direct operation which is not commutative (23 = 8 ≠ 9 = 32) and, therefore, in the equation bn = m either b or n can be unknown, and the choice gives us two indirect operations. If the unknown is b, then the inverse operation yielding it is root extraction, b = n m . If the unknown is n then, as we know, we have an exponential equation whose solution can be obtained by finding logarithm: n = logb m. We conclude that the direct operation of raising one number to the power of another has two inverse operations: root extraction and finding logarithm.

We have seen that logarithms simplify the operations multiplication, division, raising to powers, and root extraction by reducing them to addition, subtraction, multiplication and division, respectively. We now face the question: is the other inverse operation of the power operation also simplified, and if so, how. The answer to this question is that the other inverse operation is also simplified, namely, it is reduced to division as well.

This fact is usually stated in a different form, namely, as the problem of changing the basis of logarithms. Suppose we want to change the basis of logarithms from b to a (a > 0, a ≠ 1). It can be done by using the simple formula: loga x = log b x log b a

This rule is paraphrased by saying that logarithms to the bases a and b are proportional, the factor of proportionality is constant and is equal to 1/logb a. It follows that if we have the logarithm table for base b, then we can easily get the one for base a. We multiply every logarithm with base b by the proportionality factor 1/logb a.

Example. Given the logarithm table for base 4, n

16 32 64 128 256 512 1024 log4 n 0 1/2 1 3/2

5/2

7/2

9/2 obtain the corresponding logarithm table for base 2.

We calculate the proportionality factor:

= 1/½ = 2 and multiply log 4 2 all the entries in the second row of the above table to get

1 2 4 8 16 32 64 128 256 512 1024 n log2 n 0 1 2 3

Note that the table for 2n in Chapter 2 is the same as the table above for log2n, except the two rows are interchanged.

Exercise 8: Given the logarithm table for base 10: n

1 10 100 1000 10000 100000 1000000 10000000 100000000 log10 n 0 find the proportionality factor for base 5, given that log10 2 = 0.301 and log 10 5 fill the blanks in the table n

100 1000 log5 n 0 1.43

With the help of your table calculate 100×1000; 1,000,000/10,000; 1003;

1, 000, 000 ; 3 1, 000, 000 .

new-austrian-economics