Dec 092017
 
A utility I wrote recently in generic 'C' as part of a larger home project. It converts an algebraic expression , entered at the prompt, to a sequence of RPN operands/operators.
File ALG2RPN.ZIP from The Programmer’s Corner in
Category Science and Education
A utility I wrote recently in generic ‘C’ as part of a larger home project. It converts an algebraic expression , entered at the prompt, to a sequence of RPN operands/operators.
File Name File Size Zip Size Zip Type
ALG2RPN.C 6087 2155 deflated
ALG2RPN.DOC 646 400 deflated
ALG2RPN.EXE 23521 13653 deflated
ALG2RPN.OBJ 6249 4029 deflated

Download File ALG2RPN.ZIP Here

Contents of the ALG2RPN.DOC file


ALG2RPN.DOC -- UTILITY BY
Daniel W. Moore,
4 Hoffield Ct,
Baltimore MD 21228
(410)744-6024.

Make what you will of it..... (please.)

This utility accepts a single argument at the command line: an algebraic
expression WITHOUT SPACES.

It parses the expression and converts it to RPN.

Arguments can be alphabetic variable names, or numbers (normal or scientific
notation).

Function calls (only single-argument are accepted: eg SIN,COS) are emitted
in the proper sequence, ie after the operand, prefaced with a '@'

Run the file DEMO.BAT to try it out.




 December 9, 2017  Add comments

Leave a Reply