
Fed up with the awful bc and dc commands supplied with every UNIX system? Try version 2.00 of this program - calc. At long last - you can type expressions in a "natural" BASIC-style syntax and get your answers out quickly without having to learn Reverse Polish Notation or some other clumsy syntax! This code is freely re-distributable and modifiable. Richard K. Lloyd <richard.lloyd@connectinternetsolutions.com> To compile: [Edit Makefile for your site, particularly the TREE setting] gmake To test: ./calc -t [should pass all the tests] To install: gmake install Notes: * This package has no "original" URL other than the HP-UX archive one because one of its porters is the author. * calc 2.00 had the following changes compared to 1.02: - Switched on maximum compiler warnings. - Compiler warnings/errors for HP's ANSI C and gcc were fixed. - gets() replaced with custom safe_gets() function that calls fgets() instead. - tan(90) now displays a bad tangent error message. - Include <getopt.h> on non-HP-UX systems. - If malloc() fails, a warning message is displayed instead of trying to use a non-existent buffer. - Overflowed calculations (e.g. 1000^1000) now display "overflow" rather than the dubious "inf" string (it's not infinity!). - Added ABS function (absolute value). - Added DEG function (radian -> degrees conversion). - Added RAD function (degrees -> radian conversion). - Added SGN function (sign of value). - Square root function can be called SQRT or SQR now. - Added a few functions/values to the HELP output that weren't previously documented. - Added -t option to run a test suite.