Activities/Turtle Art/Tutorials/Stack Programming: Difference between revisions
Appearance
Tonyforster (talk | contribs) No edit summary |
Tonyforster (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
The Forth programming language uses a stack for computations. | The Forth programming language uses a stack for computations. | ||
On the right of the screen, the Forth words + - x / DUP and SWAP | On the right of the screen, the Forth words + - x / DUP and SWAP are implemented with blocks. | ||
On the left, a Forth like program to compute 3^2 +4^2 = 25 | On the left, a Forth like program to compute 3^2 +4^2 = 25 |
Revision as of 04:18, 22 September 2011
The Forth programming language uses a stack for computations.
On the right of the screen, the Forth words + - x / DUP and SWAP are implemented with blocks.
On the left, a Forth like program to compute 3^2 +4^2 = 25
What computations can you make with this set of words?
Make additional words with Turtle blocks