This section gives the solution to a specific system of linear equations.
Chinese source text: Version A, Version B, Version C, Version D.
Unless noted otherwise, I follow the text from Version D, 《知不足齋叢書》本.
Source text | Target text | Notes |
---|---|---|
今有雉兔同籠、上有三十五頭、下有九十四足。問雉兔各幾何。 | Suppose there be pheasants [and] rabbits [in the] same cage: above be there thirty-five heads; below be there ninety-four feet. [We] ask, how many each [be the] pheasants [and the] rabbits? |
|
答曰、雉二十三、兔一十二。 | Answer saith: [the] pheasants twenty-three, [and the] rabbits twelve. | |
術曰、上置三十五頭、下置九十四足。半其足、得四十七。 | Method saith: put above [the] thirty-five heads, [and] put below [the] ninety-four feet. Halving [the] feet, resulteth in forty-seven. |
|
以少減多、再命之、 | Subtracting of [the] greater by [the] lesser, [and] again commanding it: | |
上三除下三、上五除下五、下有一除上一、下有二除上二、即得。 | [for the] three above removing three below, [and for the] five above removing five below; [for] there being one below removing one above, [and for] there being two below removing two above: [we] are done. |
|
又術曰、上置頭、下置足。半其足、以頭除足、以足除頭、即得。 | Also method saith: put above [the] heads, [and] put below [the] feet. Halve [the] feet; removing from [the] feet by [the] heads, [and] removing from [the] heads by [the] feet, [we] are done. |
|
Conway (2023). "Sun Tzŭ's Computational Classic: Volume III §31". <https://yawnoc.github.io/sun-tzu/iii/31> Accessed yyyy-mm-dd.