Zhu Yiwen

Tang Dynasty

Karine Chemla

Different Cultures of Computation in Seventh Century China from the Viewpoint of Square Root Extraction

Keywords: Cultures of computation, Jia Gongyan, Li Chunfeng, square root extraction, seventh century, Tang dynasty, mathematical practices, counting rods, geometrical diagrams, mathematical cultures, Rites

The aim of this paper is to bring to light a previously unknown geometrical method for extracting the square root in seventh century China. In order to achieve this goal, a seventh century commentary by the scholar Jia Gongyan, 賈公彥, on a Confucian canon, the Rites of Zhou Dynasty [Zhouli 周禮], is analysed. This is compared with the commentary by his contemporary Li Chunfeng,李淳風, which is referred to in another mathematical book, the Mathematical Procedures of the Five Canons, [Wujing Suanshu 五經筭術]. Although these two scholars probably knew each other, they used very different methods to solve the same problem in relation to square root extraction. It is argued that the differences mainly lie in two aspects: firstly, Jia Gongyan mostly made use of geometry while Li Chunfeng used counting rods; secondly, the two methods had different geometrical interpretations. Given the fact that the method of square root extraction Jia Gongyan uses is one among many other methods he employed in mathematics, and it has the same features as the others; moreover, other commentators on the Confucian Canons use similar mathematical methods, this paper closes with a general discussion on mathematical cultures. It is suggested that there were three elements to mathematical practice in seventh century China: geometry, counting rods, and written texts. The interplay and structure between the three elements is seen to influence mathematical practices.

needs further clarification. 11 The problems seem to stem from different elements of mathematical practice. In the case of square root extraction, the procedures were written in ancient Chinese characters on slips of paper or bamboo, while the procedures were carried out in their entirety with counting rods on a computational surface. These elements suggest different facets of the same topic, but raise the question as to how these different elements inter--relate. The question is difficult to answer. Recently discovered sources may provide new insights and thus be useful in answering part of the question. It has become apparent, at least for seventh century China, that the historical picture is incomplete. Other procedures for square root extraction existed besides those historians have addressed so far. The new source is the commentaries on the Confucian Canons by seventh century scholars.

Aims

On the basis of previous studies, various procedures have been seen to refer to the same operation, that is, square root extraction. A geometrical interpretation can also be seen, which seems parallel to the arithmetical procedures and refers to the same operation. That is, there are different elements of mathematical practice related to the execution of the same operation. What were the practitioners' intentions in extracting the square root? What did the operation actually mean during those times? 12 The aim of this paper is to present a new historical perspective on square root extraction and on mathematics from Confucian Canons in seventh century China.

we know in the Yonghui period [650--655], he was an Erudite of the National University. His commentary shows approach to square root extraction and another way of doing the operation that was different from the procedure using counting rods, both of which are related to geometry in a specific way and not seen before. These sources will help us answer the questions raised above. This paper is in four sections. The first two will give a translation and analysis of two excerpts from Jia Gongyan's commentary, both concerning square root extraction. In the third part, Li Chunfeng, who was Jia Gongyan's colleague in the Tang court, is introduced, 16 along with his mathematical method of square root extraction. A comparison will be made between the two methods, with a general discussion on the different cultures of computation from the point of view of root extraction. 17

Jia Gongyan's procedure

In two excerpts of commentaries from the Rites of Zhou Dynasty 18 , there are two examples of the execution of square root extraction. The procedures, which the two examples present, are very similar. Both examples relate to the construction of a carriage. The first analysis focuses on curved canopy ribs. The same problem is dealt with in one of the Ten Mathematical Books, that is Mathematical Procedures of the Five Canons edited by Li Chunfeng and his colleagues.

The problem of "one trisects the length of rib"

The structure of the text has three layers: the text of the Classic 19 , Zheng Xuan's 鄭 ⽞玄 20 [127--200 C.E.] commentary, and Jia Gongyan's further commentary. It explains how a rib is articulated so as to obtain the curve of the canopy. According to the Rites of Zhou Dynasty, each canopy has twenty--eight ribs. Here the general idea of the problem is given, followed by an analysis of the layers of the text. Looking from above, the twenty--eight ribs supporting the canopy look like a claw and are called "the claw" in this text, diagram 1. Picture 1 is of the carriage 16 We don't have direct evidence that Li Chunfeng and Jia Gongyan knew each other. One important piece of indirect evidence that led me to make this statement is that Wang Zhenru 王真儒 who worked with Jia Gongyan on Confucian canons (Ouyang Xiu, Song Qi, Xintangshu, 1975, 1428. Quantangwen, 1983, 1375.), also worked with Li Chunfeng on mathematical canons. (Liu Xu, Jiu Tangshu, 2719. Ouyang Xiu, Song Qi, Xin Tangshu, 5798.). 17 The concept of "cultures of computation" used in the title comes from seminars organized by Karine Chemla, Christine Proust, and Agathe Keller. Moreover, Karine Chemla describes Chinese mathematical culture mainly from the viewpoint of counting rods in many articles. Karine Chemla, 2010b. I hope this paper will help to enrich this concept of "cultures of computation" and mathematical cultures in the history of China. 18 In this paper, I quote Rites of Zhou Dynasty and Jia Gongyan's commentary from Ruan Yuan's edition, that is in the Shisanjing zhushu ⼗十三經注疏 (Commentary on Thirteen Canons). Ruan Yuan 阮元 (ed.). Photocopied by Zhonghua Book Company, Beijing, 1979, 631--940. 19 That is the original text of the Rites of Zhou Dynasty. 20 The line segment bd is sought. Therefore, the problem involves the computation of the length of one side of a right angle triangle when the length of the hypotenuse and the other side [in this case, the short side] are known, diagram 3. The reason this problem is raised is that one wants to know the scale of the canopy and how much area the canopy can cover. We shall see the canopy is required to cover the axletree of the carriage.

Diagrams 1 to 3

1: the claw 21 The Terracotta Army is a collection of terracotta sculptures depicting the armies of the first emperor of China. 22 According to the excavation report, the total length of this carriage and horse is 2.25 m; the total height of the carriage is 1.56 m. The carriage is not exactly the same as the one described in the Rites of Zhou Dynasty. However, it is usually used to compare the excavated carriage to the records in texts handed down by the written tradition. I add this carriage because it illustrates the type described in the source using an archeological artifact. See: Qinshihuang bingmayong bowuguan 秦始皇兵馬俑博物館 (Museum of Qin Shi Huang's Terracotta Warriors), 1998. The text will be translated sentence by sentence with the original Chinese text given underneath. Each sentence will be given an ordinal number for easier identification and analysis. The measurement units for length are: 1 zhang=10 chi, 1 chi = 10 cun, 1 cun = 10 fen. 1 chi is approximately equal to 23.1 cm in the Han dynasty, and 29.6 cm in the Tang dynasty. The text of the Classic says23 :

1. One trisects the length of the rib, taking one of the thirds as the Zun. 24 參分弓長,以其⼀一爲之尊。 Zheng Xuan's commentary says: 2. Zun means height. 注:尊,髙也。 3. For a rib of six chi, the higher horizontal part near the centre of the canopy is two chi, hence one extremity of the claw is lower than the centre of the canopy by two chi. 六尺之弓,上近部平者⼆二尺,爪末下於部⼆二尺。 4. Two chi being taken as the short side, four chi being taken as the hypotenuse, one looks for the corresponding long side. ⼆二尺爲句,四尺爲弦。求其股。 5. The [square of the] long side is twelve [chi]. 股⼗十⼆二。 6. One divides it25 , which makes the sides [of the square of its long side] three chi and nearly half [a chi]. 除之,面三尺幾半也。 The text of the Classic is simple, only giving the general idea of the articulated rib. In 2 Zheng Xuan explains the meaning of zun. In 3 he shows how the rib was articulated. Sentence 4 reformulates the question as a mathematical problem with a right--angle triangle. In 5 Zheng Xuan gives the square of the long side. In 6, the final sentence, he mentions the execution of a kind of division, and gets an approximate result, which is 3 chi and nearly a half, that is nearly 3½ chi. However, Zheng Xuan does not give any details about how he computed the square root. Jia Gongyan's commentary addresses precisely this point. Jia Gongyan's commentary says: 7. When [the Rites of Zhou Dynasty] says "taking one of the thirds as zun", this means [the articulation in the rib is], two chi from the centre of the canopy, with respect to the extremity, the four chi being made to go downwards, [the articulation] is two chi higher. 云「以其⼀一爲之尊」者,正謂近部⼆二尺者,對末頭四尺者爲下,以⼆二尺者爲髙。 8. When [Zheng Xuan] says "the extremity of the claw is lower by two chi than the centre of the canopy", this means that, the height of the lower part, [the gai jiang], and the higher part, [the da chang], of the canopy handle being one zhang, and [from the extremity of the claw to the extremity of the lower part] being eight chi, thus the ribs on the four directions are /articulated so as to hang down by two chi. 云「爪末下於部⼆二尺」者,正謂蓋杠并達常髙⼀一丈,⼋八尺,故四面宇曲,垂⼆二尺 也。 9. When he says "two chi being taken as the short side, four chi being taken as the hypotenuse, one looks for the corresponding long side", Zheng Xuan wants to explain the decrease due to the articulation in the ribs, which means the width the decreased canopy was able to cover the axletree, [called Zhi], less than the net width [that is, the width of the un--articulated canopy].

云「⼆二尺爲句,四尺爲弦,求其股」者,鄭欲解宇曲之減,減蓋之寛覆軹,不及 幹之意。

Jia Gongyan makes a much longer commentary. In 7, he comments on 1, 2 and 3. In 8 he clarifies the reason why the rib is articulated downward by 2 chi in relation to the structure of the canopy handle. In 9 Jia Gongyan explains that Zheng Xuan's commentary is to compute the area the canopy covers. In the following, Jia Gongyan's procedure can be divided into two parts, one of which is to compute the square of the long side. Jia Gongyan continues by saying: 10. For all these computation procedures26 : one takes two chi, by which the extremity of the claw is lower [than the centre of the canopy], that is one takes the two chi by which it is lower, as the short side. 筭法:以句除弦,餘爲股。 16. When one removes the four chi of the [square of] short side from the [square of the] hypotenuse, which is to remove four chi from one zhang six chi, there still remains one zhang two chi. 將句之四尺除弦,丈六尺中除四尺,仍有丈⼆二尺在。 In 10 and 11 Jia Gongyan repeats that the hypotenuse is 6 chi long, and the short side is 4 chi long. In 12 and 13 he respectively squares the hypotenuse and the short side. In 12 he shows: using "four times four is sixteen", one gets 4 chi x 4 chi = 1 zhang 6 chi, the meaning will soon be made clear by the following procedure, diagrams 4 and 5. That is, Jia Gongyan interprets 1 zhang 6 chi as a rectangle whose width is 1 chi and length is 1 zhang 6 chi. 4 chi × 4 chi refers to a square whose sides are 4 chi, diagrams 4 and 5. It will be shown that Jia Gongyan's calculation relies on the relation between a quantity and its geometrical meaning.

Diagram 4 Diagram 5

The key principle needs some explanation. This principle was first observed and analysed by Li Jimin 27 , that is to say, the ancients used a linear quantity to express length, area and volume. When the linear quantity is used for length, it just means a given quantity of length units. When used for area, it means a given quantity of length units and a unit for the width. When it is for volume, it refers to a given quantity of length units, and a cross section whose sides are a unit. Diagrams 6 to 8 show the use of the same quantity, 3 chi, to express length, area, and volume respectively. However, whether the quantity refers to the length, area or volume, depends on the context in which the quantity was used. 28 3 chi for length 3 chi for area 3 chi for volume Diagrams 6--8 Thus, Jia Gongyan views the calculation 4 chi × 4 chi as a geometrical problem in which one knows the sides of a square and one looks for the length of a rectangle Having the same area [as the aforementioned square] but whose width is 1 chi. "Four times four is sixteen" comes from a multiplication table, namely the Nine--Nine table, in which there are a series of multiplication calculations starting from nine times nine. 29 It gives the length of the rectangle. Perhaps with another sentence "chi times chi is chi", one could find the unit of the result. 30 One further uses "1 zhang = 10 chi" to get the result, which is 1 zhang 6 chi. In 13, by the same method, Jia Gongyan gives " ". This 4 chi also refers to a rectangle whose length is 4 chi and width is 1 chi. In 14 to 16 Jia Gongyan subtracts the square of the short side from the square of the hypotenuse, and finds the square of the long side, making . . Hence, the geometrical operation is based on computation. However, Jia Gongyan doesn't show how he does the computation. Specifically, he doesn't state why he takes a 9 chi long rectangle and not another rectangle from the original rectangle; he doesn't explain why he cuts this rectangle into three pieces. These two questions are related and there are two possible reasons. One is that since there is already the sentence "three times three is nine", Jia Gongyan just needs to look at the multiplication table to find the biggest square number smaller than 12. Another possibility is that, since Zheng Xuan 31 The character 約 yue means to simplify or to make simple, usually in relation to the simplification of fractions. Karine Chemla, Guo Shuchun, 2004, 1028. In the Mathematical Canon of Xia Houyang, the operation of reduction of fractions was named yue chu 約除, literally to divide by simplifying. Moreover, the operation of yue chu was one of the fives divisions. Jia Gongyan uses this term to comment on Zheng xuan's chu. Therefore, this character has a similar meaning to chu [that is to divide]. In this context, the operation of yue refers to square root extraction. On the other hand, chu can be also used for describing the square root extraction. This fact further shows the close relation between yue and chu.

3chi × 3chi = 9chi mentions "three chi and near half [a chi]", Jia Gongyan aims to account for this amount, therefore the integer, 3 chi, is obtained first. Perhaps these two possibilities could both be true. In 21 Jia Gongyan brings them together to make a square of 3 chi sides, diagram 10. In what follows, Jia Gongyan deals with the remaining piece, which is a rectangle 3 chi long and 1 chi wide: 22. There still remains three chi. 仍有三尺在。 23. One cuts it in the middle into two portions, 中破之爲兩段, 24. Each [being a rectangle] five cun wide and three chi long. 各廣五⼨寸,長三尺。 25. One complements them to two sides of the previous square whose sides are three chi. 裨於前三尺⽅方兩畔。 26. On each of these sides there are five cun. 畔有五⼨寸。 27. Adding [them] on the two sides to the previous three chi makes [the sides of square] three chi and half [a chi]. 兩畔并前三尺,爲三尺半。 Thus, in 22 to 24, Jia Gongyan divides the remaining piece into two parts; each part is a rectangle 3 chi long and 5 cun wide, the rectangles d and e in diagram 6. In 25 to 27, he brings them to the two sides of the previous square, diagram 10. He doesn't give the reason for this operation. Based on this analysis of the structure and his commentary, the reason possibly lies in that Jia Gongyan wanted to follow Zheng Xuan's commentary, which gives a quantity that is "three chi and nearly a half. Therefore, Jia Gongyan looks for the half chi, which is equal to 5 cun. In order to account for Zheng Xuan's value, he needs two rectangles whose lengths are 3 chi and widths are half a chi, that is 5 cun. Cutting the remaining piece into two parts makes two rectangles half a chi wide. Adding these two rectangles to the two sides of the previous square makes the geometrical figure, diagram 10. 28. In the tip of the angle, there still lacks a square of five cun sides. Jia Gongyan states that the resulting figure lacks a small square in the tip of the angle, therefore, the sides of the square cannot be three and a half chi. This means a rectangle whose length is 12 chi and width is 1 chi cannot be transformed into a square whose sides are 3 and a half chi, but can be transformed into a square whose sides are 3 chi and nearly half a chi. Thus Jia Gongyan finished his commentary on Zheng Xuan's quantity.

Procedure of "ten chi in front of a board"

The second piece of the commentary in which Jia Gongyan discusses square root extraction is also related to a carriage. Specifically, it deals with the length of the shaft extending from the fan, which is a board used in front of a carriage, diagram 11. The Rites of Zhou Dynasty says the length of the shaft in front of the fan should be 10 chi; Zheng Xuan says in some editions, one uses "7 chi" instead of "10 chi". The computation is used here to answer the question as to which of the two versions is correct. In the Rites of Zhou Dynasty, three kinds of horse are mentioned and differentiated by their height: the national horse [guo ma 國馬] 8 chi, the campestral horse [tian ma 田馬] 7 chi, and the tardy horse [nu ma 弩馬] 6 chi. This means the length of the horse here should be more than 8 chi. 35 For a national horse, the depth of shaft is 4 chi 7 cun. 36 Zheng Xuan finds the long side would be shorter than 6 chi by computation if the length in front of the fan was 7 chi. The data added by Zheng Xuan is that of the length of a horse. Thus, the quantity should be "ten chi" and the "seven chi" figure is wrong. Similar to the previous commentator's analysis, Zheng Xuan only shapes the problem in terms of a right angle triangle, diagram 12, and gives a final statement 37 and, except for this, he doesn't add any details, see the following sentences 31 and 32. Diagrams 11--12 11: [The length] in front of the fan, [a board used at the front of a carriage] is ten chi. The sketch of a carriage is borrowed from Kaogongji tu 考 12: Suppose one takes seven [chi] as the hypotenuse, four chi seven cun as the short side, and one looks for the corresponding long side. Hence, the 35 It is reasonable to assume ancient people know the length of a horse is usually more than its height. 36 The depth of shaft of national horse is four chi and seven cun. 國馬之輈深四尺七⼨寸。Shisanjing zhushu, 1979, 913. 37 The difference lies in that Zheng Xuan doesn't give the exact quantity of the long side.

⼯工記圖 (Record Inspecting Public Works). Dai Zhen 戴震.

Block--printed edition, 1746. The dotted lines and words are added by the author of this article. long side is shorter than the (expected) length of the horse. The text of the Classic says: 31. [The length] in front of the fan, [a board used at the front of a carriage], being ten chi, for [the length of the] horse whip, [called ce], one halves this. 軓前⼗十尺,⽽而䇿半之。 32. [Zheng Xuan's] Commentary: this means the length of the shaft attached to the front of the fan. Ce means the horse whip of the person who drives the horses. Another edition has "seven" instead of "ten". Suppose if one takes seven [chi] as the hypotenuse, four chi seven cun as the short side, and one looks for the corresponding long side, then the long side will be shorter [than the length of a horse], thus "seven" is wrong. 注:謂輈軓以前之長也。䇿,御者之䇿也。⼗十,或作七。令七爲弦,四尺七⼨寸爲 鉤,以求其股。股則短矣。七,非也。 Like the previous commentary, Jia Gongyan comments on both the text of the Classic and Zheng Xuan's commentary. 33. [Jia Gongyan's] Explanation: when [the Rites of Zhou Dynasty] says "fan", this refers to the shape of the carriage. 釋曰:云「軓」,謂車式。 34. When [the Rites of Zhou Dynasty] says ": [The length] in front of the shi [the railing at the top of the fan] being ten chi", this means the middle line in the curved part of the shaft. 式前⼗十尺,謂轅曲中。 35. When [the Rites of Zhou Dynasty] says "for [the length of] the horse whip one halves this", halving it, the horse whip is thus five chi. 「軓䇿半之」,半之策則五尺矣。 36. The reason why [the Rites of Zhou Dynasty] speaks of the whip being used to drive the horses, is that it aims to take the combined measure of the lengths of the whip and the shaft to be estimated with respect to each other. ⾔言策者,策以禦馬,欲取策與輈長短相准合度之意也。 In 33 to 36 Jia Gongyan comments on classic and Zheng Xuan's commentary. 37. When [Zheng Xuan] says, "Another edition has "seven" instead of "ten". Suppose if one takes seven [chi] as the hypotenuse, four chi seven cun as the short side, and one looks for the corresponding long side, then the long side will be shorter", 云「⼗十,或作七。令七爲弦,四尺七⼨寸爲鈎,以求其股。股則短矣」者。 38. [This means:] seven times seven being forty--nine makes four zhang nine chi. 七七四⼗十九,四丈九尺。 39. Four times four being sixteen makes one zhang six chi. 四四⼗十六,丈六尺。 40. Seven times seven being forty--nine further yields four chi nine cun. 七七四⼗十九,又得四尺九⼨寸。 41. Adding them together, [one zhang six chi and four chi nine cun] [makes] two zhang nine cun. 并之,⼆二丈九⼨寸。 From 37 to 41, Jia Gongyan squares the hypotenuse and the short side respectively. In 38, he calculates , which is the square of hypotenuse. This is the same principle as in 12. In 39, 40, and 41, he calculates the square of the short side. Since the short side is 4 chi 7 cun, Jia Gongyan should have squared this quantity, that is (4chi + 7cun) 2 = (4chi) 2 + 2 × 4chi × 7cun + (7cun) [START_REF] Chi | Zhen Luan has to adopt the method of "adding the borrowed counting rods[END_REF] . Jia Gongyan makes two mistakes here. One mistake is that he only calculated (4chi) 2 + (7cun) [START_REF] Chi | Zhen Luan has to adopt the method of "adding the borrowed counting rods[END_REF] . This means the 2 × 4chi × 7cun is missing. Another mistake Jia Gongyan made is that he computes , and by the same principle, and then he adds them together directly. In fact, according to Jia Gongyan's own idea in the previous commentary, 1 zhang 6 chi refers to a rectangle whose length is 1 zhang 6 chi and width is 1 chi, diagram 13, and 4 chi 9 cun refers to a rectangle whose length is 4 chi 9 cun and width is 1 cun, diagram 14. The lengths of these two rectangles cannot be added together directly because their widths are not equal. When he actually does this, as 1 chi = 10 cun, he multiplies the area of the very thin (4 chi 9 cun long and 1 cun wide) rectangle by ten. 38 In other words, what he does is transform this thin rectangle into a new rectangle, which is 4 chi 9 cun long and 1 chi wide, in order to be added to the rectangle, which is 1 zhang 6 chi long and 1 chi wide.

Diagram 13 Diagram 14 However, due to the mistake Jia Gongyan made, missing , leads to a smaller result, and while the another mistake he made, multiplying 4 chi 9 cun by 10 leads to a bigger result. As a consequence, the answer doesn't deviate too much from the correct answer. The correct answer for is 2 zhang 2 chi 9 fen 39 , and Jia Gongyan obtains 2 zhang 9 cun in 41. The deviation is only 1 chi 1 cun 9 fen. This is probably why he does not notice this deviation. Jia Gongyan then goes on with the computation as follows: 38 Another possibility is that he makes the large rectangle ten times smaller, so he can add these two rectangles together. From his own commentary later, we know he actually makes the small rectangle ten times larger. 39 This statement of the result is based on the ancient meaning. Since , and , 22.09chi=2zhang2chi9fen, which refers to a rectangle with 2zhang2chi9fen long and 1chi side.

7chi × 7chi = 4zhang9chi 4chi × 4chi = 1zhang6chi 7cun × 7cun = 4chi9cun 2 × 4chi × 7cun

⼀一廂得三⼨寸。

In 48 to 55 Jia Gongyan deals with the remaining part of the rectangle, which corresponds to that of 22 to 27. But the way in which the detailed procedure is carried out is slightly different. As a square whose sides are five chi was obtained in the previous procedure, Jia Gongyan now transforms the remaining part into rectangles 5 chi long. In 49 Jia Gongyan first transforms the remaining rectangle, which is 3 chi 1 cun long and 1 chi wide into a new rectangle, which is 310 cun long and 1 cun wide. The reason he does so is to make it easier to find the part of the result, which is measured in cun. Since 5 chi is equal to 50 cun, the first number of the result of the division is 6. In 50, therefore, Jia Gongyan takes 300 cun, which refers to a rectangle whose length is 5 chi and width is 6 cun. Sentences 51 and 52 are the same operation as in 23 to 27. 53. The tip of the angle is a square whose sides are three cun, 3 times 3 is 9, which further takes nine squares whose sides are one cun. 角頭⽅方三⼨寸,三三⽽而九,又用⼀一⼨寸之⽅方九。 54. There remains one square whose sides are one cun [which has not been taken] yet. 餘有⼀一⼨寸之⽅方⼀一在。 55. In total, this yields a square with sides of three chi five cun, leaving a square with one cun sides.

總得⽅方五尺三⼨寸,餘⽅方⼀一⼨寸。

In 53 Jia Gongyan further takes nine cun from three hundred and ten cun to fill the tip of the corner. This leaves one cun in 54. Therefore, in 55 "this yields a square with sides of three chi five cun, leaving a square with one cun sides". Jia Gongyan doesn't continue with the computation to obtain the part of the result corresponding to a smaller unit as the result is possibly enough for his commentary. 56. Seen from this angle, there would be only five chi three cun in the front of the fan, which would be too short for a horse. 以此⾔言之,則軓前惟有五尺三⼨寸,不容馬。 57. So [Zheng Xuan] says, "Then the long side will be shorter. "Seven" thus is wrong". 故云「股則短矣,七非也」。 In 56 and 57, since the horse is 6 chi long, the long side of 5 chi 3 cun would be too short for a horse. Thus, Jia Gongyan finishes his commentary. 310cun ÷ 50cun

Summary of the previous analysis

In the commentary on the Rites of Zhou Dynasty and Ceremonies and Rites, Jia Gongyan uses much mathematical knowledge. The method of square root extraction he uses above is one among many other methods he employed in mathematics, and it has the same features as the others. 40 Moreover, other commentators on the Confucian Canons use similar mathematical methods. For instance, in the seventh century, the Tang government had a huge project writing commentaries on the Five Confucian Classics 41 , and many scholars took part. 42 In the Records of Rites edited by Kong Yinda and his colleagues, methods for the calculations of the thickness of bands and quantity of grains eaten in death rites are similar to Jia Gongyan's methods in Ceremonies and Rites. 43 The above fact indicates that Jia Gongyan did have a geometrical method for square root extraction, 44 which looks for the sides of a square equal to the area of a given rectangle with known length and width. The geometrical operation can be divided into many steps. Based on the previous analysis, the method has three main points: 1. The procedure is based on the geometrical interpretation of a quantity, that can represent a length, an area or a volume depending on the context, diagrams 6 to 8. The principle of the relation between a quantity and its geometrical meaning is important because the numbers Jia Gongyan computes are used with measuring units. This principle makes it possible to give a geometrical meaning to square root extraction, diagrams 9 and 10. 2. The procedure is a geometrical operation based on a correlated computation table and a table of measuring units. When Jia Gongyan executed his procedure, he needed to do calculations using tables. For example, when he calculated 4 chi × 4 chi = 1 zhang 6 chi in sentence 12, he needed "four times four is sixteen", "chi times chi is chi", and "one zhang is ten chi", which came from multiplication tables and tables of measuring units. 3. The procedure is general, and the executions and the results can be different depending on the different radicands. This statement is on the modern mathematical analysis of Jia Gongyan's method. 45 Moreover, there are two possibilities for approximation for the results: approximations by excess and by 44 The referee asked a question: why is the more straightforward explanation false? Jia Gongyan was not schooled in mathematics, and was unable to extract a square root by any method at all. The above fact answers this question. 45 We can use modern mathematical notations to analyse Jia Gongyan's method, and it's not difficult to give the generalization of it. However, since we only have two cases of square root extraction in documents, it's better not to go too far with this.

defect. That is, the result is an approximation by excess in the first case, [START_REF] Gongyan | result of the square root of 12 chi. The result is more than the actual square root[END_REF] while it is by defect in the second case. [START_REF]Jia Gongyan obtains 5 chi and 3 cun as the result of extracting the square root of 2 zhang 8 chi 1 cun[END_REF] The phrase "nearly half" shows Jia Gongyan understood the difference.

Analysis of Zhen Luan's and Li Chunfeng's procedures

While Jia Gongyan commented on the Rites of Zhou Dynasty, Li Chunfeng and his colleagues [START_REF] Chunfeng | [END_REF] did similar work on the Ten Mathematical Books. [START_REF] Chunfeng | his colleagues carried out their work in 656[END_REF] One of Li's colleagues, Wang Zhenru, commented Step 2: Estimate the first digit of the result is 3, then place 3 on the uppermost line and 3 on the line of the divisor of the square.

Step 3: Compute , which makes the remainder.

Step 4: Double the divisor of the square, which makes 6.

Step 5: Add the nethermost divisor to the divisor of the square, which gives . Diagram 5 is the result of the whole operation, 3+3/7. [START_REF] Fang | [END_REF] This casts light on different ideas for Zheng Xuan's statement. Jia Gongyan wants to prove the result is smaller than three and half a chi by using a geometrical operation. Zhen Luan wants to get the value by an arithmetical operation, and then to prove this value is nearly three and half a chi. 59 That is to say, 3+3/7 is actually less than both the square root of 12 and 3+1/2, and this cannot prove that the square root of 12 is less than 3+1/2. Zhen Luan is only able to make his statement if he believes 3+3/7 is the exact result of the square root of 12. multiplied by itself. Dividing the remainder by extracting the square root thus yields the long side. 臣淳風等謹按:其問宜云:車葢之弓長六尺,近上⼆二尺連部⽽而平爲⾼高。四尺邪下 宇曲爲弦,爪末下于部⼆二尺爲句,欲求其股。問股幾何?曰:三尺七分尺之三。 術曰:句自乘以減弦自乘,其餘開⽅方除之,即得股也。 In this paragraph, Li Chunfeng obtains the same result as Zhen Luan. This implies that Li Chunfeng's procedure is the same as Zhen Luan's, and he further confirms Zheng Xuan's procedure. What is noteworthy is that Li Chunfeng reorganizes the struture, and makes it look like a mathematical problem. That is to say, Li Chunfeng reshapes the Confucian Canon texts into Mathematical Canon texts. 60

Geometrical bases of square root extraction

A primary comparison makes it clear that Jia Gongyan's and Li Chunfeng's procedures are different. On the one hand, Jia's method is geometrical, in which geometrical figures 61 are to be cut for computation. The operation on figures uses multiplication and measuring--unit tables, on the basis of the geometrical interpretation of a quantity. Jia doesn't use counting rods. On the other hand, Li's method is arithmetical, and relies on the use of counting rods. That is to say, different mathematical instruments are used in both their procedures. Besides computations, there are geometrical bases. In order to address the original question, the bases need to be discussed further. Karine Chemla has argued that Liu Hui's computation based on the formula for the calculation of the area of a circle has two facets: one is the meaning of the magnitude and another is to interpret the meaning of the value. 62 For the operation of square root extraction, the radicand similarly has two facets: a rectangle for computation, and a square for geometrical interpretation. 63 Li Chunfeng especially distinguishes two characters: Ji 積 and Mi 冪. Ji refers to the magnitude that is a rectangle, while Mi refers to the meaning of value that is a square. Therefore, Li Chunfeng's point is similar to Liu Hui's. However, for Jia Gongyan, the two facets are the same. To make a square from a rectangle is not only for computation, it also has a geometrical meaning. In Tables 2 and3, the meanings 60 My statement on this is that by reshaping canon texts into a mathematical form, Li Chunfeng makes mathematical writings become canons. Further discussion will be shown in my other paper, "Another Culture of Computation from Seventh Century China". 61 Karine Chemla has argued that diagrams are not ideal materials for early times [3 rd century]. I agree with this point. See: Karine Chemla, 2010b. 62 Using this example, she proves that the two facets are different. For where A is the area of a circle; C, the circumference; and, D the diameter, the result will be exact. However the magnitude will always be an approximation unless the procedures can continue indefinitely. Her analysis for the case of squares and square root extraction are similar. See: Karine Chemla, 2005. 63 This can also be witnessed in Liu Hui's case. In the Nine Chapters, in his comments on texts ,the commentator Liu Hui says, "The short side being multiplied by itself makes the vermilion square, the long side multiplied by itself makes the blue square" [句自乘爲朱⽅方,股自乘爲青⽅方。Karine Chemla, Guo Shuchun, 2004, 706.] Liu Hui gives the geometrical meaning to the square [operation] that is to obtain a square [area]. However, for computation, Liu Hui needs another facet for the operation in order to make the quantity meaningful and to obtain a rectangle.

A = C 2 ⋅ D 2
of magnitude and value for squares and square roots for each commentator are compared.

Conclusion and Discussion

At the beginning of this paper, several questions were raised: what did ancient practitioners view as the operation of square root extraction? What is the relationship between the operation and its various procedures? What is the relationship between the arithmetical procedures and the geometrical procedures? Which terminology was involved in the procedures? Such questions are all, in part, related to the mathematical philosophy of the time and are not easy to answer. However, based on previous analyses and comparisons between Jia Gongyan's and Li Chunfeng's procedures, there have already been opportunities to address this issue.

It is shown that in seventh century China, two scholars, Jia Gongyan and Li Chunfeng, had different ideas and procedures for the same problem given in the Confucian Canons. Their differences lie in many aspects and their aims for commentating are different. Jia Gongyan wants to prove Zheng Xuan's Commentary, as does Li Chunfeng. Moreover he wants to shape the problem into a mathematical form in order to show the special role of mathematics in commentating on the Confucian Canons. Jia Gongyan seldomly uses counting rods, which were the typical instruments for doing mathematics at that time. Key terms used for square root extraction are different in the mathematical texts and the Confucian texts. 64 This means the way the procedures are written are different. Zheng Xuan uses the term "Chu 除" to refer to the operation of square root extraction. Jia Gongyan comments on "Yue 約" which has a very close meaning to "Chu 除". Zhen Luan and Li Chunfeng both use "Kai Fang Chu 開⽅方除", the same term as in the Nine Chapters. For the procedures, "Kai Fang Chu 開⽅方除" is used by Zhen Luan and Li Chunfeng. On the other hand, Jia Gongyan interprets the aim of the operation as being the making of a square, namely the procedure "Fang Zhi ⽅方 64 Karine Chemla gave me suggestions, to differentiate between the operation and its different procedures.

the result of different interpretations of the interplay between these elements of mathematical practice. Moreover, the interplay among cultures of computation is very complex and needs to be studied more in the future.

  Zheng Xuan was an official and scholar in the Eastern Han dynasty [25--220 C.E.]. He was a very important scholar for the study of Confucian canons. He commented on the Three Rites during 169--183 C.E. In the Commentary on the Rites of Zhou Dynasty handed down through the written tradition, Zheng Xuan and Jia Gongyan are the only two commentators on this book whose commentaries exist today. excavated along with the Terracotta Army 21 . Its canopy is similar to the one discussed here. 22 According to the text, each rib is 6 chi long and articulated. The articulation, point c in diagram 2, is at 1/3 of the length of the rib from the centre point of the claw, point a. As a result, each rib has two parts: 2 chi, [ac in diagram 2], and 4 chi, [bc in diagram 2]. The 2 chi part is horizontal, and the 4 chi part slopes downward. The difference in height between the highest and lowest part of the 4 chi part is exactly equal to 1/3 the length of the rib, which is 2 chi, [cd in diagram 2]. In the text corresponding to diagram 2, point a is the centre of the canopy; point b is the outer extremity of the claw; point c is the articulation point; the line segment ac is the horizontal part of the rib near the centre of the canopy; the line segment bc is the sloping outer part of the rib; and, the line segment cd is the height. The handle of the canopy is 10 chi long and divided into two parts: the 2 chi part "da chang" 達常 and the 8 chi "gai jiang" 蓋杠, diagram 2.

  horizontal part [of the rib] connected to the centre of the canopy bc: the sloping outer part [of the rib] cd: the height bd: to be looked for 3: Two chi being taken as the short side, four chi being taken as the hypotenuse, one looks for the corresponding long side. Picture 1: The excavated carriage of the Terracotta Army Source: Qinshihuang bingmayong bowuguan 秦始皇兵馬俑博物館 (Museum of Qin Shi Huang's Terracotta Warriors), 1998. Qinshihuangling tongchema fajue baogao 秦始皇陵銅車馬發掘報告 (Excavation Report for the Copper Carriages in Qin Shi Huang's Tomb). Culture Relic Press, Beijing. Colorplate 6.

  凡筭法:以蚤低⼆二尺,即以低⼆二尺者爲句。 11. One further takes the length of four chi of the supporting part [of the rib] as the hypotenuse, and further takes the length of the straight and flat [line segment] from the extremity of the claw [to the point directly below the articulation in the rib, as the long side. 又以持長四尺爲弦,又蚤末直平者爲股。 12. The [length of the] hypotenuse is four chi, four times four is sixteen, making one zhang six chi. 弦者四尺,四四⼗十六,爲丈六尺。 13. The [length of] the short side is two chi, two times two is four, making four chi. 句者⼆二尺,⼆二⼆二⽽而四,爲四尺。 14. One wants to look for the length of the corresponding long side, which is the straight and flat [line segment] [from the extremity of the claw to the point just below the articulation in the rib]. 欲求其股之直平者。 15. Computation procedure: removing the [square of the] short side from the [square of the] hypotenuse, what remains makes the [square of the] long side.

  Now Jia Gongyan had to compute the length of the short side, and thus had to extract a square root. He continues by saying: 17. Then one divides 31 it by the procedure of computation. 然後以筭法約之。 18. [The rectangle is] one chi wide and one zhang two chi long; make a square of it. 廣⼀一尺,長丈⼆二尺, ⽅方之。 Sentences 17 and 18 appear essential, since Jia Gongyan reveals how he perceives the meaning of the operation of square root extraction. In 18 he states that in his view, the previous result of 12 chi refers to a rectangle whose length is 12 chi and width is 1 chi. Then he says, in transforming this rectangle into a square of the same area, he has to calculate the sides of the square. Diagrams 9 and 10 illustrate this procedure. One takes nine chi from one zhang two chi; 丈⼆二尺,取九尺, 20. Each three chi, one cuts once. 三尺⼀一截, 21. Complementing them with each other yields a square with sides of three chi. 相裨得⽅方三尺。 Jia Gongyan takes a rectangle whose length is 9 chi and width is 1 chi from the original 12 chi x 1 chi rectangle. He then cuts this rectangle into three pieces, [rectangles a, b, and c in diagram 9], each of which is 3 chi long and 1 chi wide. In 21 he reorganizes the three pieces, [a, b and c], to make a square whose sides are 3 chi. Jia Gongyan takes 9 chi as

  角頭仍少⽅方五⼨寸。 29. [The quantity] 32 doesn't fit [the problem raised] and does not complete three chi and half [a chi]. 33 不合不整三尺半。 30. Ji means nearly. So [Zheng Xuan] says nearly half [a chi]. 34 幾,近也,⾔言近半。

The rectangle is one chi wide and] two zhang eight chi one cun [long]; make a square

  Computation procedure: one removes the [square of the] short side from the [square of the] hypotenuse. 筭法:以句除弦。 43. If one removes two zhang nine cun from four zhang nine chi, leaving two zhang eight chi one cun. 以⼆二丈九⼨寸除四丈九尺,仍有⼆二丈⼋八尺⼀一⼨寸在。 In 42 and 43 Jia Gongyan subtracts the square of the short side from the square of the hypotenuse, yielding 2 zhang 8 chi 1 cun, which is the square of the long side. Sentences 42 and 43 have the same reasoning as 15 and 16. 44. Then one looks for the corresponding long side.

	然後以求其股。
	45. [
	4chi7cun × 4chi7cun

4.7 × 4.7 = 22.09 4chi7cun × 4chi7cun = 4.7chi × 4.7chi = 22.09chi 42. of it. 以⼆二丈⼋八尺⼀一⼨寸,⽅方之。 Sentences 44 and 45 are also the same as 17 and 18, in which Jia Gongyan reveals his idea on how he perceives the extraction of the square root. 46. One makes a square whose sides are five chi. 爲五尺之⽅方。 47. Five times five being twenty five, one uses two zhang five chi to make a square with sides of five chi. 五五⼆二⼗十五,用⼆二丈五尺,爲⽅方五尺也。

Table 1 : comparison between two texts on the first step in square root extraction

 1 As illustrated in Table1, the procedures in 46 and 47 are different from the previous case. In 19 to 21 Jia Gongyan firstly takes 9 chi and then makes a square with sides of 3 chi In 46 and 47 Jia Gongyan first makes a square with sides of 5 chi, and then uses 2 zhang 5 chi. There is a minor difference between the two. One computes all of these, [chi and cun], using a square whose sides are one cun, Taking three hundred cun yields [a rectangle which is] six cun wide and five chi long. 三百⼨寸,得廣六⼨寸,長五尺。 51. One divides it in the middle and joins the [resulting pieces] to the previous square whose sides are five chi. 中分之。裨前五尺之⽅方。 52. Three cun is added to each side.

	21. Complementing them with each
	other yields a square with sides of
	three chi.
	48. There remains [a length of/rectangle which is one chi wide and] three chi one
	cun [long].
	餘有三尺⼀一⼨寸。
	49.

19. One takes nine chi from one zhang two chi; 46. One makes a square whose sides are five chi. 20. Each three chi, one cuts once. 47. Five times five being twenty five, one uses two zhang five chi to make a square with sides of five chi. yielding [a rectangle which is one cun wide and] three hundred ten cun [long]; one brings it to the previous square [whose sides are five chi] to make a [larger] square of it. 皆以⽅方⼀一⼨寸乗之,得三百⼀一⼗十⼨寸,⽅方之。 50.

  40 I have done some research on this issue. For example, this article analyses Jia Gongyan's computation in a comparison between volume and capacity of a vessel: A Preliminary Research on the Mathematical Knowledge in Confucian Classics--Take a Excerpt of Jia Gongyan's commentary on the Rites of Zhou Dynasty as an example, Studies in the Natural Sciences, forthcoming.41 The Five canons in early the Tang period refer to Odes [Shi 詩], Documents [Shu 書], Records of Rites [Li Ji 禮 記], Changes [Yi 易], and Spring and Autumn [Chun Qiu 春秋]. For further information, see: Michael Nylan, 2010.

	42 Simply speaking, this project had two phases: 633--642 and 651--653, respectively under the leadership of
	Kong Yingda [孔穎達 576--648] and Zhangsun Wuji [長孫無忌 ?-695]. Jia Gongyan assisted in both phases of
	the project.
	43 I have analyzed the two cases in another paper, see: Another Culture of Computation from Seventh Century
	China, forthcoming.

  on the Confucian Canons with Jia Gongyan,[START_REF] Xiu | [END_REF] and later commented on mathematical books with Li Chunfeng.[START_REF] Wang | [END_REF] Furthermore, in one of the Ten Mathematical Books, namely the Mathematical Procedure of the Five Canons [Wujing Suanshu 五經筭術], the same problem as discussed in the first case of Jia Gongyan's procedure was raised. The author of the book, Zhen Luan [甄鸞, 6 th century], gave a procedure for square root extraction, which is carried out using counting rods. Li Chunfeng commented on the Classic and Zhen Luan's method. He confirms Zhen Luan's method and further rearranges the structure of the problem. Thus, it is necessary to present this text, and compare the mathematical knowledge in the Confucian Canons and the Ten Mathematical Books. The text of the Classic says: 58. One trisects the length of the rib, taking one of them [the pieces obtained] as zun. 參分弓長,以其⼀一爲之尊。 52 59. [Zheng Xuan's] Commentary says: Zun means height. For a rib of six chi, the higher horizontal part near the centre of the canopy is two chi, hence one extremity of the claw is lower by two chi than the centre of the canopy. Two chi being taken as the short side, four chi being taken as the hypotenuse, one looks for the corresponding long side. The [square of the] long side is twelve[chi]. One divides it by extracting the square root, which makes the sides, [of the square of its long side] three chi and nearly half [a chi]. Place 12 [the radicand] and 1 [the nethermost] on the computational surface.

	1	2	3 4 5
	Step 1:
	注云:尊,⾼高也。六尺之弓,上近部平者⼆二尺,爪末下於部⼆二尺。⼆二尺爲句,四
	尺爲弦,求其股。股⼗十⼆二。開⽅方除之,面三尺幾半。

Table 2 : the meanings of magnitude for geometrical interpretation

 2

	Operations	Square	Square root extraction
	Jia Gongyan	è	è
	Liu Hui and Li Chunfeng	è	è

Table 3 : the meanings of value for computations

 3

	Operations	Square	Square root extraction
	Jia Gongyan	è	è
	Liu Hui and Li Chunfeng	è	è

Shisanjing zhushu, 1979, 910. acb 

It's clear that the commentator Zheng Xuan perceives the term "Zun" requires a gloss.

According to Mathematical Procedures by Xia Houyang, square root extraction is a kind of division.

The referee suggests the literal meaning of Suanfa is "procedure using counting rods". The literal translation is correct, but here "computation procedure " is a more correct translation for two reasons: 1. Jia Gongyan didn't use counting rods to execute his procedure. He used geometrical figures as the tool. 2. Jia Gongyan said in the Rites of Zhou Dynasty, "Computation is Suanfa, where names of multiplication and division come from." 計者 筭法,乘除之名處於此也。Shisanjing zhushu, 1979, 656. This shows Jia Gongyan built a relation between suanfa and computation, which is different from Li Chunfeng's.

Li Jimin, 1990, 768--778.

This is the point I develop Li Jimin's viewpoint.

The Nine--Nine table was used as early as the Warring States period in China. It is named after and starts with its the highest value, "nine times nine".

In the first mathematical bamboo slips excavated from an ancient tomb dated 186 BCE, namely the Book of Mathematics [Suan Shu Shu 筭數書] we find this sentence, which relates to the multiplication of units.2chi × 2chi = 4chi 16chi -4chi = 12chi

This quantity refers to what Jia Gongyan obtained above, which is a little smaller than 3 chi and half.

This "three chi and half" comes from Zheng Xuan.

The referee suggests Ji has a meaning "approximately". That's correct. However, Ji Ban is usually used for something is approximately but a little smaller than half. For example, "Li Bai's footmark covers almost half of the world."其⾜足跡幾半天下 Litaibai quanji, 1977其⾜足跡幾半天下 Litaibai quanji, , 1633. .

Acknowledgements

The research leading to these results has received funding from the European Research Council under the European Union's Seventh Framework Programme (FP7/2007--2013) / ERC Grant agreement n. 269804. I also thank my university, Sun Yat--sen University for supporting funding on this research. In writing and revising of this article, Karine Chemla, Tom Archibald, and Niccolo Guicciardini helped me a lot. Julia Legh--Smith and Richard Kennedy polished my English, and gave good suggestions. Reviewers gave me help suggestions as well. I thank all of them for their contributions to this article.

Sentence 58 is the same as 1. Sentence 59 is almost the same as 2 to 6. A slight difference is that in 6 it says, "one divides it" whereas here it is "one divides it by extracting the square root". Since the earliest edition of the Mathematical Procedure of the Five Canons is an 18th edition, that is the edition in the Complete Works in the Four Treasuries [Siku Quanshu 四庫全書], the difference may be caused by collation.

Zhen Luan's method

60. Zhen Luan's Note: [According to] the Gou Gu method 53 , the horizontal [line] is taken as gou [the short side]; the vertical [line] is taken as gu [the long side]; and, the oblique [line] is taken as xian [the hypotenuse]. If the short side is three and [the corresponding] long side is four, then the [corresponding] hypotenuse is five. These [numbers] are lü 54 [conform to] nature. If now in the canopy of this carriage, the short side is two; the hypotenuse is four; then the [integer of] the long side is three. These [numbers] are equally lü [corresponding] to nature. The procedure for looking for [the answer] is: One multiplies the short side and the long side respectively by themselves, adding them [the results] together, then dividing this [the result] by extracting the square root, thus makes the hypotenuse. The long side multiplied by itself being subtracted from the hypotenuse being multiplied by itself, one thus divides this [the result] by extracting the square root, which makes the short side. The short side being multiplied by itself being subtracted from the hypotenuse multiplied by itself, one then divides this [the result] by extracting the square root, which makes the long side.

61. Suppose: one multiplies the three of the short side by itself, which yields nine; one multiplies the four of the long side by itself, which yields sixteen; adding them together yields twenty--five. One divides this by extracting the square root, which makes five that is the hypotenuse. One multiplies the four of the long side by itself, which makes sixteen; one multiplies the five of the hypotenuse by itself, which makes twenty--five; subtracting sixteen from twenty--five, leaves nine. One divides this by extracting the square root, which yields three that is the short side. One multiplies the three of the short side by itself, which yields nine; one multiplies the five of the hypotenuse by itself, which yields twenty--five; subtracting nine from twenty--five, leaves sixteen. One divides this by extracting the square root, which makes four, that is the short side.

53 Gou refers to the short side in a right angle triangle. Gu refers to the long side in a right angle triangle. The Gou Gu method was given in the Nine Chapters on Mathematical Procedures. It is for finding the unknown side of a right angle triangle from two known sides. 54 Lü 率 was a complex concept in Chinese mathematics. See: Karine Chemla, Guo Shuchun, 2004, 956. In 60 Zheng Luan introduces the Gou Gu method. By saying, "If now in the canopy of this carriage, the short side is two, the hypotenuse is four, and then the [integer of the] long side is three", he connects the canopy problem to the Gu Gu method. In 61 he gives further explanation in three examples. 61. Now the height of the centre of the carriage canopy is two chi and the rib is four chi. Two chi [by which the extremity of the claw is] lower than the centre [of the canopy of the carriage], being taken as the short side and, four chi for the rib being taken as the hypotenuse, one looks for the corresponding long side. The method of looking for the long side is: multiplying two chi of the short side by itself yields four; multiplying four chi of the hypotenuse by itself yields sixteen; subtracting four from sixteen, leaves twelve. 今車葢崇⼆二尺,弓四尺。以崇下⼆二尺爲句,弓四尺爲弦,爲之求股。求股之法, 句⼆二尺自乘得四,弦四尺自乘得⼗十六,以四減⼗十六,餘⼗十⼆二。 In this paragraph, Zhen Luan first obtains the squares of the long side and the hypotenuse. His computations " , " are different from Jia Gongyan's, which can be expressed as " , ". One obvious difference is that the results of Zhen Luan's computations have no measuring units. The reason maybe that using counting rods means the numbers are usually without measuring units and are nearly abstract numbers. 55 62. Dividing it by extracting the square root 56 yields three, which means the long side has three chi, with remainder three. Doubling the divisor of the square, three, called fang fa, yields six. One further adds the nethermost divisor, one, called xia fa, to it, making seven. That is three and three parts in a chi that is divided into seven chi 57 of the long side. This is why [Zheng Xuan] says "nearly half [a chi]".

開⽅方除之,得三,即股三尺也。餘三。倍⽅方法三,得六。又以下法⼀一從之,得七。 即股三、七分尺之三,故曰幾半也。

The terms Zhen Luan used in this paragraph reveal he relies on counting rods to execute the procedure. On the basis of previous research, the procedure is shown in diagram 15.

Diagram 15

The result The radicand The divisor of the square The nethermost divisor 55 This is my argument. When one uses counting rods, it there are two possibilities: either it means the use abstract numbers since rods represent numbers, or it refers to quantities with a measuring unit of rods. For the first possibility, we have evidence from Chinese mathematical writings. Calendric calculations bear witness to the second possibility. 56 Reference to Karine Chemla's translation. And I further borrow " divisor of square", "nethermost divisor" from her. 57 This refers to the value 3/7 chi.

之". They actually establish two different links between the operation and the procedures, "Fang Zhi" and "Kai Fang Chu" respectively. 65 The uses of geometrical figures are different in the two kinds of texts. Li Chunfeng and other scholars of mathematics use geometry as an instrument to illustrate and interpret the arithmetical procedure carried out with counting rods. This is the geometrical basis for "Kai Fang". For Jia Gongyan, geometrical figures are not only used to interpret the procedure, but are also necessary for the execution of the procedure. Jia Gongyan and Li Chunfeng have different geometrical interpretations for the operation of square root extraction and, the instruments used are different, Tables 2 and3. Furthermore, three layers of mathematical practices appear in the texts under discussion. The basic layer is the geometrical interpretation of the operation of square root extraction, Tables 2 and3. Secondly, a procedure to execute the operation is needed. For Jia Gongyan, the procedure is geometrical, using tables. For Li Chunfeng, the procedure is arithmetical, relying on counting rods. Finally, the procedure is written in texts with technical terms. The key terms are different in the two kinds of texts. It is seen that geometry, counting rods, and written texts are three elements used in different layers of mathematical practice and they have different roles. They can exist individually, or two or all three can co--exist, depending on different cultures of computation. Geometry, and written texts are used by Jia Gongyan and scholars of Confucianism. Geometry, counting rods, and written texts usually exist simultaneously, and have a close relationship for Li Chunfeng and scholars of mathematics.

To sum up, it is possible to say that in seventh century China there was a divergence on Zheng Xuan's commentary about square root extraction. There was no uniform understanding of this operation. 66 Jia Gongyan's and Li Chunfeng's methods represent different cultures of computation. These two cultures, in which the elements of mathematical practice interact, structured mathematics in different ways. The overlap of the cultures lays in the general terminology, tables and systems of measurement, and reveals the common mathematical feature shared by scholars at that time. Returning to the issue of square root extraction, the different ways of carrying out square root extraction used by two colleagues in the Tang dynasty have been seen. These methods are based on geometry, counting rods and written texts, which imply that the relationships between the operation and procedures, and between geometry and arithmetic, depended on the different ways these elements were structured by the cultures. These cultures of computation, in turn, were probably 65 In the Confucian Canons, when scholars use "Kai Fang", this term has a different meaning. 66 It is true Jia Gongyan and Li Chunfeng shared some common ground on square root extraction. Both aimed to prove Zheng xuan's commentary correct. Also, some general terms for operations are the same, for example, Cheng 乘, which means "to multiply". They both use the Nine--Nine table and the same system of measuring units and, they both accept the key relation between a quantity and its geometrical interpretation, however, the different ways they use them show the diversity of ancient Chinese computational cultures.