Forth Calculator (RPN) final version

edited November 2017 in Share Your Work

I am learning Forth with "Starting Forth" and "Thinking in Forth" books by Leo Brodie.
I need to visualize how works the stack...and then write a processing sketch.
Scientific Calculator (RPN/Forth)
- 75 mathematical functions
- 8 cells display
- 4096 cells stack
- 5 memories
- Forth words to manage the stack (DUP, DROP, SWAP, ecc.)
- GDC, MCM, Factorize number
- Solve proportion
- Solve Linear System
- Solve quadratic and cubic equation (real and complex roots)
- Complex arithmetic
- Vector arithmetic
- Fraction arithmetic
- Polar Coord <-> Rect coord
- Number to Fraction Generator
- Combinations, Permutations
- Factorial, Fibonacci (BigInteger)
- Degrees Minutes Seconds <-> Decimal Degrees
- Sequence generator
- Statistical parameters of a serie
- Linear Regression
- Slope
- Time arithmetic
- Copy and Paste stack numbers
- Save and Load stack numbers
- Edit stack numbers with external text editor
- Infinity and NaN numbers
- Italian and English manual (60 pages)
- ...
Fast Fibonacci routine
Copyright (c) 2017 Project Nayuki
All rights reserved. Contact Nayuki for licensing.

Press 'TAB' to see shortcuts.
Hints and bugs report are welcome.


  • Are you trying to create a Forth emulator?

  • edited October 2017

    No. It is only a calculator with an unlimited (almost) stack manipulable with Forth WORDS (dup, drop,...).

  • New functions:
    - complex arithmetic
    - time arithmetic
    I'm working to solve some small bugs :)

  • The sketch is complete :)
    I use it in my daily work.
    Thanks for watching.

Sign In or Register to comment.