![]() ![]() It firstĬomputes the sum and places the results on the stack. This command demonstrates the power of using a stack for calculations. You can string together an arbitrarily long calculation on a single line: 0: 4 5 + 6 7 + * X-register, which is generally the final result from the previous command. This command first pushes 4 onto the stack, then it pushes 5 on the stack, andįinally runs the addition operator, which pulls 4 and 5 off the stack and then Any intermediate results are stored on the stack until The operations are performed immediately and there is no use of parentheses to Operators then take numbers from the stack and replace them with the result. In particular, as you enter the numbers they are pushed onto the stack. To perform operations in EC, you first enter the numbers, then the operators. Once installed, you can get access the man page using: man ec A Brief Tour of Engineering Calculator Otherwise, you can install the latest version of the manpage on GitHub using: curl | bash. If you have installed from source, you can install the manpage with: cd doc To install: $ python setup.py install -user Once cloned, you can get the latest updates using: $ cd ec More information on both ec can be found on ReadTheDocs. Supports man pages, however you can download it from GitHub. This installs ec into ~/.local/bin, which should be added to your path. Install with: pip3 install -user engineering-calculator ![]()
0 Comments
Leave a Reply. |