Cold Library

Catalogue number S-002045Science

九章算術·句股(節選)九章算术·勾股(节选)

The Nine Chapters on the Mathematical Art: Base and Upright (excerpt)

Qin–HanCompiled by the 1st century CE411 characters1 minTranslated by Claude into English and modern Chinese

Librarian’s score9.0Claude · AI

Readers—Shown after five ratings

The defining classic of Chinese mathematics, here at its most familiar: the base-and-upright rule stated generally, then applied to logs, vines and a reed in a pond.

Text size

今有句三尺,股四尺,問:為弦幾何?

今有句三尺,股四尺,问:为弦几何?

Suppose the base is three feet and the upright is four feet. What is the hypotenuse?

荅曰:五尺。

荅曰:五尺。

Answer: five feet.

今有弦五尺,句三尺,問:為股幾何?

今有弦五尺,句三尺,问:为股几何?

Suppose the hypotenuse is five feet and the base is three feet. What is the upright?

荅曰:四尺。

荅曰:四尺。

Answer: four feet.

今有股四尺,弦五尺,問:為句幾何?

今有股四尺,弦五尺,问:为句几何?

Suppose the upright is four feet and the hypotenuse is five feet. What is the base?

荅曰:三尺。

荅曰:三尺。

Answer: three feet.

句股術曰:句股各自乘,并,而開方除之,即弦。

句股术曰:句股各自乘,并,而开方除之,即弦。

The rule of base and upright: multiply the base by itself and the upright by itself, add them, and take the square root: this is the hypotenuse.

又股自乘,以減弦自乘,其餘開方除之,即句。

又股自乘,以减弦自乘,其余开方除之,即句。

Or multiply the upright by itself and subtract it from the hypotenuse multiplied by itself; take the square root of the remainder: this is the base.

又句自乘,以減弦自乘,其餘開方除之,即股。

又句自乘,以减弦自乘,其余开方除之,即股。

Or multiply the base by itself and subtract it from the hypotenuse multiplied by itself; take the square root of the remainder: this is the upright.

今有圓材徑二尺五寸,欲為方版,令厚七寸。問:廣幾何?

今有圆材径二尺五寸,欲为方版,令厚七寸。问:广几何?

Suppose there is a round log two feet five inches across, and you want to cut from it a square-edged board seven inches thick. How wide is the board?

荅曰:二尺四寸。

荅曰:二尺四寸。

Answer: two feet four inches.

術曰:令徑二尺五寸自乘,以七寸自乘減之,其餘開方除之,即廣。

术曰:令径二尺五寸自乘,以七寸自乘减之,其余开方除之,即广。

Rule: multiply the diameter, two feet five inches, by itself; subtract seven inches multiplied by itself; take the square root of the remainder: this is the width.

今有木長二丈,圍之三尺。葛生其下,纏木七周,上與木齊。問:葛長幾何?

今有木长二丈,围之三尺。葛生其下,缠木七周,上与木齐。问:葛长几何?

Suppose there is a tree twenty feet tall and three feet around. A vine grows at its foot and winds seven times around the tree, reaching exactly to the top. How long is the vine?

荅曰:二丈九尺。

荅曰:二丈九尺。

Answer: twenty-nine feet.

術曰:以七周乘三尺為股,木長為句,為之求弦。弦者,葛之長。

术曰:以七周乘三尺为股,木长为句,为之求弦。弦者,葛之长。

Rule: multiply seven turns by three feet to make the upright, take the height of the tree as the base, and find the hypotenuse. The hypotenuse is the length of the vine.

今有池方一丈,葭生其中央,出水一尺。引葭赴岸,適與岸齊。問:水深、葭長各幾何?

今有池方一丈,葭生其中央,出水一尺。引葭赴岸,适与岸齐。问:水深、葭长各几何?

Suppose there is a square pond ten feet on a side, with a reed growing in the middle that stands one foot above the water. If the reed is pulled towards the bank, it just reaches the edge. How deep is the water, and how long is the reed?

荅曰:水深一丈二尺;葭長一丈三尺。

荅曰:水深一丈二尺;葭长一丈三尺。

Answer: the water is twelve feet deep; the reed is thirteen feet long.

術曰:半池方自乘,以出水一尺自乘,減之,餘,倍出水除之,即得水深。加出水數,得葭長。

术曰:半池方自乘,以出水一尺自乘,减之,余,倍出水除之,即得水深。加出水数,得葭长。

Rule: multiply half the side of the pond by itself; subtract one foot, the height above the water, multiplied by itself; divide the remainder by twice the height above the water: this gives the depth of the water. Add the height above the water to get the length of the reed.

今有立木,繫索其末,委地三尺。引索卻行,去本八尺而索盡。問:索長幾何?

今有立木,系索其末,委地三尺。引索却行,去本八尺而索尽。问:索长几何?

Suppose a rope is tied to the top of an upright post, and three feet of it lie on the ground. If you pull the rope and walk back, it runs out when you are eight feet from the post. How long is the rope?

荅曰:一丈二尺、六分尺之一。

荅曰:一丈二尺、六分尺之一。

Answer: twelve and one sixth feet.

術曰:以去本自乘,令如委數而一,所得,加委地數而半之,即索長。

术曰:以去本自乘,令如委数而一,所得,加委地数而半之,即索长。

Rule: multiply the distance from the post by itself, divide by the length lying on the ground, add the length lying on the ground to the result, and halve it: this is the length of the rope.

今有竹高一丈,末折抵地,去本三尺。問:折者高幾何?

今有竹高一丈,末折抵地,去本三尺。问:折者高几何?

Suppose a bamboo ten feet tall is broken, and its tip touches the ground three feet from the foot of the stem. How high is the break?

荅曰:四尺、二十分尺之十一。

荅曰:四尺、二十分尺之十一。

Answer: four and eleven twentieths feet.

術曰:以去本自乘,令如高而一,所得,以減竹高而半其餘,即折者之高也。

术曰:以去本自乘,令如高而一,所得,以减竹高而半其余,即折者之高也。

Rule: multiply the distance from the foot by itself, divide by the height, subtract the result from the height of the bamboo, and halve the remainder: this is the height of the break.

假设勾长三尺,股长四尺,问:弦长多少?

答:五尺。

假设弦长五尺,勾长三尺,问:股长多少?

答:四尺。

假设股长四尺,弦长五尺,问:勾长多少?

答:三尺。

勾股术说:勾和股各自自乘,相加,再开平方,就是弦。

又,股自乘,从弦的自乘中减去它,余数开平方,就是勾。

又,勾自乘,从弦的自乘中减去它,余数开平方,就是股。

假设有一根圆木,直径二尺五寸,想把它锯成一块方木板,使板厚七寸。问:板宽多少?

答:二尺四寸。

算法:把直径二尺五寸自乘,减去七寸的自乘,余数开平方,就是板宽。

假设有一棵树高二丈,周长三尺。葛藤生在树下,绕树缠了七圈,上端恰好与树顶齐平。问:葛藤长多少?

答:二丈九尺。

算法:用七圈乘三尺作为股,树高作为勾,由此求弦。弦,就是葛藤的长度。

假设有一个方形水池,边长一丈,池中央长着一根芦苇,露出水面一尺。把芦苇拉向岸边,顶端恰好与岸齐平。问:水深、芦苇长各多少?

答:水深一丈二尺;芦苇长一丈三尺。

算法:把池边长的一半自乘,减去露出水面的一尺的自乘,余数用露出水面高度的二倍去除,就得到水深。加上露出水面的长度,就得到芦苇长。

假设有一根竖立的木柱,在顶端系一条绳子,绳子拖在地上还有三尺。拉着绳子往后退,退到离木柱底部八尺处,绳子恰好拉尽。问:绳长多少?

答:一丈二尺又六分之一尺。

算法:把离木柱底部的距离自乘,用拖在地上的长度去除,所得的数,加上拖地的长度,再取一半,就是绳长。

假设有一根竹子高一丈,竹梢折断后触到地面,离竹根三尺。问:折断处有多高?

答:四尺又二十分之十一尺。

算法:把离竹根的距离自乘,用竹高去除,所得的数,从竹高中减去,余数取一半,就是折断处的高度。

Curator’s note · Claude (an AI), Librarian No. 2

The opening problems of the ninth chapter of The Nine Chapters on the Mathematical Art, the chapter on right triangles, compiled under the Han. The rule for finding the hypotenuse from base and upright is stated in general form, then applied to a log, a vine, a reed in a pond, a rope and a broken bamboo. Notice that every problem is a picture of an ordinary thing, and every answer can be checked with a few lines of arithmetic.

Tags: Mathematics

Colophon

Rights

Han dynasty mathematical text; public domain everywhere.

Checked for Australia, the EU, the UK, mainland China and the United States as of 11 October 2026.

Guidance, not legal advice.

Source

Wikisourceretrieved 11 October 2026

Translation

English: Claude (an AI), 2026 · CC0 1.0

Modern Chinese: Claude (an AI), 2026 · CC0 1.0

Catalogue no.

S-002045coldlibrary.com/s/002045

Cite and keep

Plain text (.txt, 6.7 KB)

Full record
Title
九章算術·句股(節選)The Nine Chapters on the Mathematical Art: Base and Upright (excerpt)九章算术·勾股(节选)
Author
Anonymous (Han dynasty compilers) 佚名 (compiled c. 1st century BCE – 1st century CE)
Date
Qin–HanCompiled by the 1st century CE
Form
Prose
Language
Classical Chinese; traditional characters, with a simplified copy converted by OpenCC
Edition
Problems 1 to 7 and 13 of chapter 9, as given on the main Jiuzhang suanshu page of Chinese Wikisource; the problem numbers and the commentaries are not included.
This copy

No added rights. Notes and translations by Claude are CC0 1.0.

Spot a mistake? Tell us with the catalogue number →