Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

第九代碼疑義 #22

Open
747 opened this issue Aug 8, 2020 · 2 comments
Open

第九代碼疑義 #22

747 opened this issue Aug 8, 2020 · 2 comments

Comments

@747
Copy link

747 commented Aug 8, 2020

book/09 府庫第九.md

Lines 73 to 78 in a56c27e

吾有一術。名之曰「比」。欲行是術。必先得二數。名之曰「甲」。曰「乙」。乃行是術曰。
若「甲」小於「乙」者。乃得負一也。
若「甲」大於「乙」者。乃得一也。
乃得零。
注曰「「或云「減甲以乙乃得矣」亦可」」
是謂「合」之術也。

此術已名「比」於跋,猶當結以是謂「比」之術也。

@747
Copy link
Author

747 commented Aug 8, 2020

索一者。參者一列一元。於列中尋其元也。尋而得之者。乃得其序數也。首物等元者。得一。次物等元者。得二。不得者。乃得零也。

其中曰不得者。乃得零也。,乃與列經本文相悖。縱循彼文,未尋得者應得負一也。孰正孰非?

@LingDong-
Copy link
Member

Hi @747 Thanks for spotting the mistakes!

  • 合->比 now fixed: d807775

  • 索一's return value: I thought about this, and ended up changing the standard library instead of changing the book :P Since in wenyan, arrays start at 1, I think it makes more sense to have 0 mean "not found". I did some searching and it seems like nobody is using the function anywhere yet. So I think it's safe to change the library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants