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

吾有一數。曰三。名之曰「甲」应更为 “置三为甲 #21

Open
alluleia opened this issue Dec 17, 2019 · 4 comments
Open
Labels
syntax Suggestions to improve the syntax

Comments

@alluleia
Copy link

alluleia commented Dec 17, 2019

<九章算术> 云
〔一一〕今有惡粟二十斗,舂之,得糲米九斗。今欲求粺米十斗,問︰惡粟幾何?

荅曰:二十四斗六升、八十一分升之七十四。
術曰:置糲米九斗,以九乘之,為法。亦置粺米十斗,以十乘之,又以惡粟二十斗乘之,為實。實如法得一斗。

@LingDong-
Copy link
Member

Hi there,
Thanks for the suggestion! I'll consider about adding it as an alternative to the current syntax. Will update here if I do.

@shawyunz
Copy link

感觉准备的意思,可以考虑用在其他关键字。

这个如何:
吾有一數。其名为「甲」。曰三

北冥有鱼,其名为鲲

anyway,两个曰总觉得不妥

@satouriko
Copy link

为什么不说

吾有一數「甲」曰三
吾有三數「甲」「乙」「丙」。曰一。曰三。曰五。

@melop
Copy link

melop commented Dec 18, 2019

“吾有一數”,"昔之「戌」者。今其是矣". 可能太長了。可否簡略為
有數甲值三 int a = 3;
有數乙值百萬 int b = 1e6;
有率丙者甲除以乙也 float c = (float)a/(float)b;
此处以“数”代表整型,以“率”代表浮点型。也可以不给初值
有率丙 int c;
丙者甲除以乙也 c = (float)a/(float)b;

胡言亂語,不要見怪。

@LingDong- LingDong- added the syntax Suggestions to improve the syntax label Dec 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
syntax Suggestions to improve the syntax
Projects
None yet
Development

No branches or pull requests

5 participants