开发人员: Tomohide NANIWA (6)
价格: $1.00
排名: 0 
评价: 0 我要评价
列表: 0 + 0
积分: 0 + 0 ¡
Google Play

说明

frtm
Frtm (FoRTh Modoki) is a software that simulates the programming language FORTH. However it is not intended to reproduce the strict FORTH. There is no compiler, but the words and the constants in a user-defined word are interpreted when it is registered.

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. frtm (Android) 来自: Tomohide NANIWA
#2. frtm (Android) 来自: Tomohide NANIWA
#3. frtm (Android) 来自: Tomohide NANIWA
#4. frtm (Android) 来自: Tomohide NANIWA
#5. frtm (Android) 来自: Tomohide NANIWA
#6. frtm (Android) 来自: Tomohide NANIWA
#7. frtm (Android) 来自: Tomohide NANIWA
#8. frtm (Android) 来自: Tomohide NANIWA
#9. frtm (Android) 来自: Tomohide NANIWA

新版变化

  • 版本: 1.7.2
  • 已更新:
  • New application bundle are released under API 33.

价格

  • 今天: $1.00
  • 最小值: $1.00
  • 最大值: $1.00
可选

开发人员

积分

0 ☹️

排名

0 ☹️

列表

0 ☹️

评价

抢先评价一下吧 🌟

其他信息

frtmfrtm 短网址: 已复制!
  • 🌟 分享
  • Google Play

您可能还喜欢

    • ChatGPT
    • Android 应用: 效率  来自: OpenAI
    • * 免费  
    • 列表: 3 + 1  排名: 0  评价: 0
    • 积分: 16 + 31,473,010 (4.7)  版本: 1.2025.308   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,018,575 (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,725,801 (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
    • 积分: 5 + 14,662,611 (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,564,806 (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,388,916 (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,777,721 (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,613,724 (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 ...
        ⥯ 

您可能还喜欢

AppAgg 中可使用的搜索运算符
添加到 AppAgg
AppAgg
立即免费加入AppAgg
注册
登录