simple reverse poland calculator in fortran.
Please note that stringmod.f90 and precmod.f90 are not my own work. Unfortunatly, I have lost the source for these files.
- Clone latest source with
git clone https://github.com/jake-87/fortran-calcor stable source withgit clone https://github.com/jake-87/fortran-calc/tree/stable - Run
bmakein top directory, which will output an executable namedfcalc.
Requirements:
gfortranbmake
+-*/.sin.cos.tan- ^ Self Explanitory
#- ^ Inverse square, works the same as a square root
.rsin.rcos.rtan- ^ Same as sin, cos, tan but with radians instead of degrees.
.asin.acos.atan- ^ Arc versions of sin, cos, tan.
.rasin.racos.ratan- ^ Same as arcsin, cos, tan but in radians.
.loge.log10.log- ^ Calculates logs. The
.logcommand works like this:2 8 log, calculating log 2 (8). .pi.tau.gr(Golden Ratio).e- ^ Pushes the corresponding irrational number onto the stack.
p- Print current top of stack
r- Reset stack
pop- Remove top of stack
pp- Print current pointer to top of stack
q- Quits
help- Prints help message.