-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: update grammer to address recent changes, LingDong-/wenyan-lang#35
- Loading branch information
Showing
8 changed files
with
113 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
吾有一術。名之曰「听天由命」。欲行是術。必先得一數。曰「a」。乃行是術曰。 | ||
乃得 Math.floor(Math.random()*a); | ||
是謂「听天由命」之術也。 | ||
|
||
吾有一術。名之曰「春秋古筮法」。欲行是術。必先得一數。曰「现余策」。乃行是術曰。 | ||
吾有一數。曰零。名之曰「左余策」。 | ||
吾有一數。曰零。名之曰「左剩策」。 | ||
吾有一數。曰零。名之曰「右余策」。 | ||
吾有一數。曰零。名之曰「右剩策」。 | ||
|
||
減「现余策」以一。名之曰「现余策」。批曰。 | ||
|
||
減「现余策」以一。 | ||
昔之「现余策」者。今其是矣。 | ||
施「听天由命」於「现余策」。 | ||
昔之「左余策」者。今其是矣。 | ||
加「现余策」以一。 | ||
昔之「现余策」者。今其是矣。 | ||
加「左余策」以一。 | ||
昔之「左余策」者。今其是矣。 | ||
|
||
減「现余策」以「左余策」。 | ||
昔之「右余策」者。今其是矣。= | ||
批曰。「「分而为二以象两」」 | ||
|
||
除「左余策」以四。所餘幾何。批曰。「「揲之以四象四时」」 | ||
昔之「左剩策」者。今其是矣。 | ||
若「左剩策」等於零者。 | ||
昔之「左剩策」者。今四是矣。 | ||
云云。 | ||
除「右余策」以四。所餘幾何。 | ||
昔之「右剩策」者。今其是矣。 | ||
若「右剩策」等於零者。 | ||
昔之「右剩策」者。今四是矣。 | ||
云云。 | ||
|
||
減「现余策」以「左剩策」。 | ||
昔之「现余策」者。今其是矣。 | ||
減「现余策」以「右剩策」。 | ||
昔之「现余策」者。今其是矣。 | ||
乃得 「现余策」。 | ||
|
||
是謂「春秋古筮法」之術也。 | ||
|
||
吾有一列。名之曰「爻基」。 | ||
吾有一數。曰六。名之曰「甲」。 | ||
恆為是。 | ||
若「甲」等於零者。乃止。云云。 | ||
吾有一數。曰五十。名之曰「余策」。批曰。「「大衍之数五十」」 | ||
減「余策」以一。昔之「余策」者。今其是矣。批曰。「「其用四十有九」」 | ||
為是三遍。批曰。「「三变成一爻」」 | ||
施「春秋古筮法」於「余策」 | ||
昔之「余策」者。今其是矣。 | ||
云云。 | ||
充「爻基」以「余策」。 | ||
減「甲」以一。 | ||
昔之「甲」者。今其是矣。 | ||
云云。 | ||
|
||
昔之「甲」者。今六是矣。 | ||
吾有一數。曰零。名之曰「判據」。 | ||
恆為是。 | ||
若「甲」等於零者。乃止。云云。 | ||
|
||
夫「爻基」之「甲」。除其以四。 | ||
除其以二。所餘幾何。 | ||
昔之「判據」者。今其是矣。 | ||
|
||
若「判據」等於零者。 | ||
吾有一言。曰「"-- --"」。書之。 | ||
若非 | ||
吾有一言。曰「"-----"」。書之。 | ||
云云。 | ||
|
||
減「甲」以一。 | ||
昔之「甲」者。今其是矣。 | ||
云云。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
吾有一術。名之曰「斐氏列」。 | ||
|
||
欲行是術。必先得一數。曰「因」。乃行是術曰。 | ||
有數零。名之曰「頭」。 | ||
有數一。名之曰「尾」。 | ||
有數一。名之曰「計」。 | ||
有數零。名之曰「果」。 | ||
|
||
若「因」等於零者。昔之「果」者。今「因」是矣云云。 | ||
若「因」等於一者。昔之「果」者。今「因」是矣云云。 | ||
|
||
恆為是。若「計」不小於「因」者乃止也。 | ||
加「頭」以「尾」。昔之「果」者。今其是矣。 | ||
昔之「頭」者。今「尾」是矣。 | ||
昔之「尾」者。今「果」是矣。 | ||
加「計」以一。昔之「計」者。今其是矣。 | ||
云云。 | ||
|
||
乃得「果」 | ||
是謂「斐氏列」之術也。 | ||
|
||
施「斐氏列」於十。書之。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,4 +42,4 @@ | |
|
||
有數四。名之曰「盤數」 | ||
施「漢諾塔」於「盤數」。於一。於二。於三。名之曰「史」。 | ||
施「畫塔法」於「盤數」。於「史」。 | ||
施「畫塔法」於「盤數」。於「史」。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
吾有一術。名之曰「快排」。欲行是術。必先得一列。曰「甲」。乃行是術曰。 | ||
若「甲」之長弗大於一者。 | ||
若「甲」之長不大於一者。 | ||
乃得「甲」 | ||
也。 | ||
吾有三列。名之曰「首」。曰「頷」。曰「尾」。 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters