| 開發人員: | Tomohide NANIWA (6) | ||
| 價錢: | $1.00 | ||
| 排名: | 0 | ||
| 評測: | 0 寫評論 | ||
| 清單: | 0 + 0 | ||
| 點數: | 0 + 0 ¡ | ||
| Google Play | |||
描述
There are also some aspects unlike FORTH: frtm does not have the words to manipulate the return stack, whereas frtm allows the recursive definition of the word.
Frtm also supports the calculation of real numbers. It has mathematical functions like exponential, square root, trigonometric functions, hyperbolic functions, bitwise operations. So frtm can be the alternative software of scientific calculator.
Interpretation of the expression will be conducted in accordance with Reverse Polish Notation (RPN). Frtm has conditional branch "if", structure for a loop "do-while" and "for-loop". You can also make a new word by combining the word.
On the Android OS, the configuration of the initial size of the dictionary and the stack, the ability to save the word in the dictionary to the "word book" have been added. The number of "word book" is limited to up to three.
For a more detailed specification of the language, please refer to the Web page in Japanese for support.
If you want to test frtm freely, please try Java applet version of frtm at following web page:
http://www.rbt.his.u-fukui.ac.jp/~naniwa/comp/frtma.html
*** EXAMPLES of words ***
* Average of two numbers
: ave + 2.0 / ;
* Average of N numbers
: nave swap over 1 for rot + loop swap 1.0 * / ;
2 4 6 8 10 5 nave . cr
0 1 2 3 4 5 6 7 8 9 10 SP nave . cr
* Population variance of N numbers
: nvarp dup 1+ copy nave SP nrotr swap dup * over 1 for rot dup * + loop swap 1.0 * / SP nrot dup * - ;
2 4 6 8 10 5 nvarp . cr
* Unbiased variance of N numbers
: nvar dup 1+ copy nave SP nrotr swap dup * over 1 for rot dup * + loop SP nrot dup * 3 ndup * - swap 1- 1.0 * / ;
2 4 6 8 10 5 nvar . cr
* Greatest common divisor of 2 numbers
: gcd do swap over % dup 0 > while drop ;
1001 819 gcd . cr
* Factorial [fact(1) = 1, fact(n) = n*fact(n-1)]
** Recursion
: factr dup 1 = if else dup 1- factr * endif ;
10 factr . cr
** Iteration
: facti 1 swap 1+ 1 for I * loop ;
10 facti . cr
* Fibonacci sequence [fib(0) = 0, fib(1) = 1, fib(n) = fib(n-1) + fib(n-2)]
** Recursion
: fib dup 0= if else dup 1 = if else dup 1- fib swap 2 - fib + endif endif ;
30 fib . cr
** Iteration
: fibi dup 0= if else 0 1 rot 1 for swap over + loop swap drop endif ;
30 fibi . cr
* Graphics
** Fill rectangle
: boxes 16 0 for I setcol 10 20 I * + dup 100 100 rectf loop ;
gm boxes
: hls 16 0 for I 45 * 2 / 50 100 setHLS 10 20 I * + dup 100 100 rectf loop ;
gm hls
** Recursive Drawing (Koch curve)
: pre 5 copy drop ;
: genx 3 ndup 6 ndup - * minus 100 / swap 4 ndup 7 ndup - * 100 / + 5 ndup +
5 nrotr 4 ndrop ;
: geny swap 3 ndup 6 ndup - * 100 / swap 4 ndup 7 ndup - * 100 / + 4 ndup +
5 nrotr 4 ndrop ;
: gen 6 copy genx 7 nrotr geny ;
: keep 7 nrotr 7 nrotr pre ;
: post 9 nrot 9 nrot 4 nrot 4 nrot 5 ndup 1- ;
: line moveto lineto ;
: koch dup 0= if drop line else
pre 0 0 gen keep 33 0 gen post koch
pre 33 0 gen keep 50 -28 gen post koch
pre 50 -28 gen keep 66 0 gen post koch
pre 66 0 gen keep 100 0 gen post koch
5 ndrop
endif ;
: kochs 10 setcol 89 440 551 440 4 koch
11 setcol 551 440 320 40 4 koch
12 setcol 320 40 89 440 4 koch ;
gm kochs
** Direct use of ReGIS graphics terminal like escape sequence
gm
(W\(I15\)P[50,50]C\(S\)[][+40,+40][+40,-40][+40,+40][+40,-40][+40,+40][+40,-40][]\(E\)) .
(W\(I12\)P[50,150]F\(C\(B\)[200,+200][+200,-150]\(E\)\)) .
(W\(I11\)P[70,170]T\(S16\)[16,12]'Hello World') .
// By using the word 'grdemo', some words for examples of graphics will be registered in to the dictionary.
螢幕擷取畫面









價錢
- 今天: $1.00
- 最小值: $1.00
- 最大值: $1.00
追蹤票價
開發人員
- Tomohide NANIWA
- 平台: Android 應用程式 (6)
- 清單: 0 + 0
- 點數: 0 + 0 ¡
- 排名: 0
- 評測: 0
- 折扣: 0
- 影片: 0
- RSS: 訂閱
點數
0 ☹️
排名
0 ☹️
清單
0 ☹️
評測
成為第一個評論 🌟
其他資訊
- 版本: 1.7.2
- 類別 :
Android 應用程式›生產應用 - OS:
Android 4.0 - 大小:
14 Mb - 內容分級:
Everyone - Google Play 評分:
0 - 發佈日期:
- 發行日期:
- 🌟 分享
- Google Play
你可能還喜歡
-
- ChatGPT
- Android 應用程式: 生產應用 由: OpenAI
- * 免費
- 清單: 3 + 1 排名: 0 評測: 0
- 點數: 16 + 31,155,551 (4.7) 版本: 1.2025.302 Introducing ChatGPT for Android: OpenAI s latest advancements at your fingertips. This official app is free, syncs your history across devices, and brings you the latest from OpenAI, ... ⥯
-
- MyJio: For Everything Jio
- Android 應用程式: 生產應用 由: Jio Platforms Limited
- * 免費
- 清單: 6 + 1 排名: 5 (1) 評測: 0
- 點數: 10 + 27,007,638 (4.4) 版本: 8.0.13 MyJio is your one stop destination for recharges, UPI & payments, managing Jio devices, entertainment, news, games & a lot more! MyJio Home: A snapshot to your Jio Digital Life; from ... ⥯
-
- Google Gemini
- Android 應用程式: 生產應用 由: Google LLC
- 免費
- 清單: 3 + 1 排名: 0 評測: 0
- 點數: 5 + 20,348,036 (4.6) 版本: 1.0.795460806 Supercharge your creativity and productivity with Gemini, your AI assistant from Google. Gemini gives you direct access to Google s best family of AI models on your phone so you can: - ⥯
-
- Microsoft Word: Edit Documents
- Android 應用程式: 生產應用 由: Microsoft Corporation
- * 免費
- 清單: 7 + 3 排名: 5 (1) 評測: 0
- 點數: 4 + 14,629,288 (4.8) 版本: New The document editor that you can take with you on the go Microsoft Word. Write and create documents on your mobile device much like you do on your PC. Edit docs, share notes, convert ... ⥯
-
- Samsung Notes
- Android 應用程式: 生產應用 由: Samsung Electronics Co., Ltd.
- 免費
- 清單: 1 + 0 排名: 0 評測: 0
- 點數: 6 + 12,525,464 (4.8) 版本: New Samsung Notes can create and edit documents on mobile, tablet, or PC and collaborate with others. User can add annotations to the PDF using S Pen and create documents with images or ... ⥯
-
- Adobe Acrobat Reader: Edit PDF
- Android 應用程式: 生產應用 由: Adobe
- * * 免費
- 清單: 6 + 3 排名: 4.5 (2) 評測: 0
- 點數: 10 + 7,374,915 (4.5) 版本: New Major new updateMajor new update: The new Adobe Acrobat AI Assistant makes it easier than ever to do more with PDFs. Adobe Acrobat AI Assistant Work across multiple files in one place ... ⥯
-
- WPS Office-PDF, Word, Sheet
- Android 應用程式: 生產應用 由: WPS SOFTWARE PTE. LTD.
- * * 免費
- 清單: 2 + 2 排名: 5 (1) 評測: 0
- 點數: 7 + 5,773,200 (4.6) 版本: 18.21.2 WPS Office-Free Office suite for Word, PDF, Sheet, is an all-in-one office suite integrates Word docs, PDF, Sheet spreadsheets, PowerPoint slides, WPS AI, Forms, Cloud Storage, Online ... ⥯
-
- Vi: Recharge, Payments & Games
- Android 應用程式: 生產應用 由: Vodafone Idea Ltd.
- 免費
- 清單: 1 + 0 排名: 5 (1) 評測: 0
- 點數: 3 + 5,604,304 (4.6) 版本: 10.21.1 Recharge, Net Packs, Set Caller Tunes, Get E Sim & Explore Movies, Games Stay connected effortlessly with the Vi Recharge App, your one-stop solution for mobile recharge, net pack ... ⥯