File tree Expand file tree Collapse file tree 2 files changed +53
-0
lines changed
Expand file tree Collapse file tree 2 files changed +53
-0
lines changed Original file line number Diff line number Diff line change @@ -105,6 +105,10 @@ export default defineConfig({
105105 text : "精五真言生成(四)編譯若語句" ,
106106 link : "/零.二版/精五真言生成(四)編譯若語句.md" ,
107107 } ,
108+ {
109+ text : "階段成果展示" ,
110+ link : "/零.二版/階段成果展示.md" ,
111+ } ,
108112 ] ,
109113 } ,
110114 {
Original file line number Diff line number Diff line change 1+ 有了遞迴與決策能力,音界咒已經能計算不少東西了。試寫了幾個有代表性又常見的術。
2+
3+ ## 輾轉相除法
4+
5+ ``` 音界
6+ 術.輾轉相除(甲、乙)【
7+ 若(乙==0)【
8+ 歸.甲
9+ 】
10+ 歸.輾轉相除(乙、甲%乙)
11+ 】
12+ ```
13+
14+ ## 冪次
15+
16+ ``` 冪次
17+ 術.冪(數、次方)【
18+ 若(次方==0)【
19+ 歸.1
20+ 】
21+ 歸.數*冪(數、次方-1)
22+ 】
23+ ```
24+
25+ ## 印出費氏數列前十項
26+
27+ ``` 音界
28+ 術.費氏數(項)【
29+ 若(項<=1)【
30+ 歸.1
31+ 】
32+ 歸.費氏數(項-2)+費氏數(項-1)
33+ 】
34+
35+ 術.打印數列(項)【
36+ 若(項>1)【
37+ 打印數列(項-1)
38+ 】
39+ 曰(費氏數(項))
40+ 】
41+
42+ 術.初()【
43+ 打印數列(10)
44+ 歸.0
45+ 】
46+ ```
47+
48+ ## 更多範例
49+ 更多範例可以參考[ 音界咒範例幕目錄] ( https://github.com/MROS/yinjie-lang/tree/611271b2b935f41c720f12191d1432da5d6b4e9d/%E9%9B%B6%E8%99%9F%E7%B7%A8%E8%AD%AF%E5%99%A8/%E7%AF%84%E4%BE%8B ) 。
You can’t perform that action at this time.
0 commit comments