These two programs are based on a Java program published by Craig Lindley
here.
I have replaced the Integer operations with Long operations and added Double operations and Byte and String file operations. In the standalone version I have implemented a console with keyboard editing and history.