This section gives a worked example of the two-point method of false position for determining the input to an affine function that produces a given output.
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 [an] hundred deer entering [a] city. [Each] family taking one deer, [there be a] remainder; [each] three families together again [taking] one deer, just exhausteth [them]. [We] ask, how many [be the] families admist [the] city? |
|
答曰、七十五家。 | Answer saith: seventy-five families. | |
術曰、以盈不足取之。 | Method saith: take it by [the method of] the excess [and] the not sufficient. | |
假令七十二家、鹿盈四。令之九十家、鹿不足二十。 | Supposing that [there be] seventy-two families, [the] deer excess [be] four. Supposing them ninety families, [be the] deer twenty not sufficient. |
|
置七十二於右上、盈四於右下。置九十於左上、不足二十於左下。 | Put seventy-two upon [the] upper right, [and the] excess four upon [the] lower right. Put ninety upon [the] upper left, [and the] twenty not sufficient upon [the] lower left. |
|
維乘之、所得、并為實。并盈不足為法。 | [In] linkage multiply them; [of] those which result, combine [them] as [the] dividend. Combine [the] excess [and the] not sufficient as [the] divisor. | |
除之、即得。 | Dividing them, [we] are done. |
|
Conway (2023). "Sun Tzŭ's Computational Classic: Volume III §29". <https://yawnoc.github.io/sun-tzu/iii/29> Accessed yyyy-mm-dd.