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

算例:增乘開平方術 #550

Merged
merged 8 commits into from
Jan 17, 2020
Merged

算例:增乘開平方術 #550

merged 8 commits into from
Jan 17, 2020

Conversation

jingkecn
Copy link
Contributor

@jingkecn jingkecn commented Jan 16, 2020

增乘開平方法乃北宋數學家賈憲所創,原作已佚,幸由南宋數學家楊輝引於《永樂大典》得傳。

增乘開平方法,以商數乘下法遞增求之。
商第一位。上商得數以乘下法為乘方。命上商除實。上商得數以乘下法入乘方。一退為廉,下法再退。
商第二位。商得數以乘下法為隅。命上商除實訖。以上商乘下法入隅,皆名曰廉。一退,下法再退,以求第三位商。
商第三位。用法如第二位求之。

參見楊輝算草
另有現代代數直式開方圖解

圖解

[1] 增乘開平方法——維基百科
[2] 力扣(LeetCode)第六十九題: | (附題解

examples/zh_sqrt.wy Outdated Show resolved Hide resolved
examples/zh_sqrt.wy Outdated Show resolved Hide resolved
examples/zh_sqrt.wy Outdated Show resolved Hide resolved
examples/zh_sqrt.wy Outdated Show resolved Hide resolved
examples/zh_sqrt.wy Outdated Show resolved Hide resolved
@LingDong-
Copy link
Member

Thanks for fixing, let me know when it is ready :)

@jingkecn
Copy link
Contributor Author

Thanks for fixing, let me know when it is ready :)

It should be ready now :)

@LingDong-
Copy link
Member

LingDong- commented Jan 16, 2020

@jingkecn It seems to be causing an infinite loop... Did it work for you? It hangs for me in both browser and the command-line.

@jingkecn
Copy link
Contributor Author

@jingkecn It seems to be causing an infinite loop... Did it work on you? It hangs for me in both browser and the command-line.

Strange. I'll check it and tell you when it's ready.

@LingDong- LingDong- mentioned this pull request Jan 16, 2020
@jingkecn
Copy link
Contributor Author

jingkecn commented Jan 16, 2020

@jingkecn It seems to be causing an infinite loop... Did it work for you? It hangs for me in both browser and the command-line.

It should really be OK, now. I forgot to retrieve from the result of 取底除 to update my , which causes an infinite loop...😂

@LingDong- LingDong- merged commit bcf71c8 into wenyan-lang:master Jan 17, 2020
@LingDong-
Copy link
Member

Looks good! Thanks for the new example!

@antfu antfu mentioned this pull request Jan 17, 2020
LingDong- pushed a commit that referenced this pull request Jan 20, 2020
LingDong- added a commit that referenced this pull request Jan 20, 2020
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

Successfully merging this pull request may close these issues.

2 participants