**Cheng Dawei**is also known as

**Da Wei Cheng**or

**Ch'eng Ta-wei.**He published the

*Suanfa tong zong*(General source of computational methods) in 1592 and almost all that is known about his life is contained in a passage written in the Preface of the book by one of his descendents when the book was being reprinted. We reproduce it here (see [7] and also [1] and [2]):-

What can we deduce from this description? Firstly we know Cheng Da Wei lived in the latter half of the Ming dynasty which was a period of prosperity with increasing trade and commerce. It was also a period of relatively good stable government. A complex system of land tax led to a farmer's tax bill involving complicated reckoning of many different tax items. This resulted in both a need for mathematical skills by many people, and also led to efforts by local officials to simplify land-tax. Cheng Da Wei was probably directly involved in such efforts but, if not, he was certainly indirectly involved. The need for arithmetical skills led to the invention of the abacus and Cheng Da Wei's bookIn his youth my ancestor Cheng Da Wei was academically gifted, but although he was well versed in scholarly matters, he continued to carry out his profession as a sincere Local Agent, without becoming a scholar. He never lagged behind either on the classics or on ancient writings with old style characters, but was particularly gifted in arithmetic. In the prime of his life he visited the fairs of Wu and Chu. When he came across books that talked about "square fields" or "grain with the husk removed" ... he never looked at the price before purchasing them. He questioned respectable old men who were experienced in the practice of arithmetic and gradually and indefatigably formed his own collection of difficult problems.

*General source of computational methods*was an arithmetic book for the abacus. It is not an academic work on mathematics, rather it is a practical book aimed at assisting those who need to calculate.

That Cheng Da Wei was not a professional mathematician is typical of what one would expect from this period in China. His occupation in local government is also typical of the type of profession which contained highly skilled mathematicians. Although mathematics did not rate highly as an academic discipline, as we indicated above it was essential for many people to posses arithmetical skills. From the fairs which it is recorded that he attended, which were far apart in the Jiansu province and the Hubei province, all we can deduce is that he travelled widely. Also we can deduce that he was well off since he purchased books without asking the price and certainly these were not cheap items. Again we see that he was an avid collector of books on mathematics and this is borne out by the *General source of computational methods* which is not particularly original, but is important for the compilation of problems from earlier works which it contains.

Cheng Da Wei wrote the *General source of computational methods* in 1592. By this time he was quite old and making use of the large collection of works which he had collected throughout his younger days. It is written in the style of the Nine Chapters on the Mathematical Art and contains 595 problems in 12 chapters. Martzloff writes:-

Let us give examples of the problems. First one which appears in Chapter 10.... unlike the authors of the venerable classic, Cheng Dawei was not afraid of superfluity or verbosity. His book is an encyclopaedic hotch-potch of ideas which contains everything from A to Z relating to the Chinese mystique of numbers(magic squares, ... generation of the eight trigrams, musical tubes), how computation should be taught and studied, the meaning of technical arithmetical terms, computation on the abacus with its tables which must be learnt by heart, the history of Chinese mathematics, mathematical recreations and mathematical curiosities of all types.

We have to find how many sheep is in shepherd A's flock.Boy shepherd B with his one sheep behind him asked shepherd A "Are there100sheep in your flock?". Shepherd A replies "Yet add the same flock, the same flock again, half, one quarter flock and your sheep. There are then100sheep altogether."

Here is a modern solution. Let x be the number of sheep in shepherd A's flock. Then

*x*+

*x*+

*x*/2 +

*x*/4 + 1 = 100 so 11

*x*/4 = 99 giving

*x*= 36.

^{5}/

_{2}=

^{55}/

_{2}sheep. This should have given the answer 99, not

^{55}/

_{2}, so the correct number is not 10 but

^{55}/

_{2}) × 99 = 36.

Cheng Da Wei goes on to explain what one expects the altitude of grain for a given base circumference to be. Of course in practice it will depend on how coarse the grain is, but Cheng Da Wei's values are quite close to what experimental evidence suggests. He writes:-Now a pile of rice is against the wall with a base circumference60chi and an altitude of12chi. What is the volume? Another pile is at an inner corner, with a base circumference of30chi and an altitude of12chi. What is the volume? Another pile is at an outer corner, with base circumference of90chi and an altitude of12chi. What is the volume?

As we see by looking at the problem, these are precisely the values that Cheng Da Wei uses in it. Here is another two of the problems ofIn problems of piles on the ground, against a wall, at an inner corner or an outer corner, the ancients always measured their altitude and then calculated. Instead of measuring the altitude we now take^{1}/_{10}the base circumference as the altitude for a pile on the ground; take^{1}/_{5}base circumference as the altitude for a pile against a wall, for it is half a cone; take^{10}/_{25}base circumference as the altitude for a pile at an inner corner, for it is quarter of a cone; take^{10}/_{75}base circumference as the altitude for a pile at an outer corner, for it is three quarters of a cone.

*General source of computational methods:-*

A descendant of Cheng Da Wei wrote in 1716 about the reputation ofA small river cuts right across a circular field whose area is unknown. Given the diameter of the field and the breadth of the river find the area of the non-flooded part of the field.

In the right-angled triangle with sides of length a, b and c with a > b > c, we know that a + b =81ken and a + c =72ken. Find a, b, and c.

[Answer: a =45ken, b =36ken, c =27ken]

*General source of computational methods:-*

Even in 1964 two authors of a book on the history of Chinese mathematics wrote:-A century and several decades have passed since the first edition of "Suanfa tong zong" during which period this work has remained in vogue. Practically all those involved in mathematics have a copy and consider it a classic ...

Nowadays, various editions of the "Suanfa tong zong" can still be found throughout China and some old people still recite the versified formulas and talk to each other about its difficult problems.

**Article by:** *J J O'Connor* and *E F Robertson*