home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 1 / 1618 < prev    next >
Internet Message Format  |  1990-12-28  |  3KB

  1. From: hvm6034@ux.acs.umn.edu (hvm6034)
  2. Newsgroups: alt.sources,alt.sources.d
  3. Subject: Infix Calculator for Un*x, VAX/VMS, PC/MS-DOS available.
  4. Message-ID: <1874@ux.acs.umn.edu>
  5. Date: 24 Jul 90 06:23:32 GMT
  6.  
  7. ICALC, a simple and portable Infix Calculator for Un*x, VAX/VMS, PC/MS-DOS,
  8. etc. is now available via Anonymous FTP from moose.cccs.umn.edu (Internet
  9. Address 128.101.107.53).  Get the file ICALC.TXT (in ASCII mode), read it and
  10. follow the instructions contained therein.
  11.  
  12. If you do not have FTP access, please contact me somehow with some form of
  13. e-mail/paper-mail address, and I'll post it to you personally.
  14.  
  15. ICALC has the following features:
  16.     1) Addition (+), Subtraction (-), Multiplication (*), Division (/)
  17.     2) Modulo (%), Powers (^)
  18.     3) Bitwise logical operators: bitwise AND (&), bitwise inclusive OR (|),
  19.        unary one's complement (~)
  20.     4) 17 Math/Trigonometric functions: sin, cos, tan, asin, acos, atan,
  21.        sinh, cosh, tanh, exp (exponential), ln (natural log),
  22.        log (base 10 log), sqrt (square root), ceil (ceiling), floor, int, abs.
  23.     5) Temporary variables (as many as you want, with names as long as you
  24.        want) to store intermediate computations.
  25.     6) This is a "portable" calculator in the sense that it's not specific to
  26.        any operating system.  The program should be compilable by any C
  27.        compiler; this program has been tested on Unix, VAX/VMS and PC/MS-DOS,
  28.        and has required NO changes to compile.
  29.     7) This program uses the simplest of input and output formats, and is in
  30.        no way hardware dependent.  So, as long as it compiles without any
  31.        problems, there are no other requirements for it to work properly.
  32.     8) All numbers are of the C floating-point type "double".
  33.  
  34. I'm not posting the source so as to keep the bandwidth down, and because I'm
  35. not sure the world needs Yet Another Calculator program :-)
  36.  
  37. /****************************************************************************/
  38. /*  Rao Akella, Research Asst., CCCS, University of Minnesota, Minneapolis  */
  39. /*  Internet: rao@moose.cccs.umn.edu, hvm6034@ux.acs.umn.edu                */
  40. /*  BITNET:   RAO%MOOSE@UMNACVX.BITNET, CCCSRAO@UMNHSNVE.BITNET             */
  41. /*  Phone:    (W) (612) 627-4151    (H) (612) 339-9982                      */
  42. /*  "Most novices picture themselves as masters - and are content with the  */
  43. /*   picture.  This is why there are so few masters."  -- Jean Toomer       */
  44. /****************************************************************************/
  45.