home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: Science / Science.zip / icalc100.zip / icalc.txt < prev   
Text File  |  1996-08-14  |  4KB  |  109 lines

  1.  
  2. ICalc v1.00
  3. Copyright (C) 1996 by Ian Prest
  4. All rights reserved.
  5.  
  6.  
  7. What is ICalc?
  8. --------------
  9.  ICalc is a small, fast, FREE!, calculator-type program.  How often have you
  10.  wanted to make simple calculations, and not had a calculator handy?  And
  11.  how often have you resorted to starting QBasic or the Windows Calculator
  12.  to make these simple calculations?
  13.  
  14.  ICalc has two modes - command-line mode and interactive mode.  If you don't
  15.  enter any command-line parameters, ICalc automatically enters interactive
  16.  mode.
  17.  
  18.  ICalc is very simple, and was written in a couple of hours while I was
  19.  trying to learn how to use YACC.  Some of the code was stolen from HTML-Ed,
  20.  and some was stolen from another project of mine, so I don't have too much
  21.  time invested in it.  So, I've decided to make it freeware.  It's still
  22.  very useful, however; I use it all the time.
  23.  
  24. How to use ICalc:
  25. -----------------
  26.  From the command-line:
  27.  
  28.      ICalc <expression>
  29.  
  30.      where <expression> is any mathematical expression recognized by ICalc
  31.      (whitespace is not allowed on the command line).
  32.  
  33.  From interactive mode:
  34.  
  35.      At the '>' prompt, enter any mathematical expression recognized by ICalc
  36.      and press enter (whitespace is allowed in interactive mode).  The result
  37.      will be displayed.
  38.  
  39.      To access the command-line history, use the up and down arrows from the
  40.      ICalc '>' prompt.
  41.  
  42.      To exit interactive mode, press enter at a blank '>' prompt.
  43.  
  44. Recognized Expressions
  45. ----------------------
  46.   ICalc recognized the following operators:
  47.  
  48.      '+' and '-' for addition and subtraction
  49.      '*' and '/' for multiplication and division
  50.      '(' and '[' parentheses (the square brackets are merely for convenience)
  51.      '%' for the remainder of a division
  52.      '=' for variable assignment
  53.  
  54.   A variable name can be any combination of alpha-numeric characters (with
  55.   the exception that it can't start with a number).  Variables are _not_
  56.   case sensitive.
  57.  
  58.   The special variable "ans" holds the last answer that ICalc gave.
  59.  
  60.   Examples              ICalc Output
  61.   --------              ------------
  62.      4+4                   = 8
  63.      m=3                   = 3
  64.      6+m                   = 9
  65.      hello=(4*5)+10        = 30
  66.      hello+3               = 33
  67.      7%3                   = 1
  68.      ans+3                 = 4
  69.      ans+3                 = 7
  70.  
  71. Limitations
  72. -----------
  73.  ICalc currently does not handle floating-point math.  It might at some
  74.  point in the future, when/if I feel like adding it.
  75.  
  76.  I may also, at some point, extend its capabilities to include _infinite
  77.  precision_ floating point math, when/if I feel like porting my infinite
  78.  precision math library to C from either Basic or Pascal.
  79.  
  80. License & Disclaimer
  81. --------------------
  82.  ICalc (the program) is supplied as is.  Ian Prest (the author) disclaims
  83.  all warranties, expressed or implied, including, and without limitation
  84.  to, the warranties of merchantability and of fitness for any purpose.
  85.  The author assumes no liability for damages, direct or consequential,
  86.  which may result from the use of the program.
  87.  
  88.  ICalc is a "freeware program."  It is copyrighted, but anyone may use it
  89.  without paying a fee to the author.  Feel free to share it with your
  90.  friends, but please do not give it away altered or as part of another system.
  91.  
  92. Contacting the Author
  93. ---------------------
  94.  Feel free to contact me at ianprest@connect.reach.net.  I cannot provide
  95.  much support for this FREE program, but I will try to help with any problems
  96.  you are having.  Visit my home page at:  http://www.wp.com/ianprest
  97.  
  98.  I will _not_ spend a lot of time fixing bugs and/or adding new features since
  99.  this is a freeware utility.  Most of my free time is already taken up with
  100.  HTML-Ed (my HTML editor - http://www.wp.com/ianprest/htmled.html) and with
  101.  school-work.  Feel free to make requests, but don't expect anything.
  102.  
  103.  
  104. ICalc v1.00
  105. Copyright (C) 1996 by Ian Prest
  106. All rights reserved.
  107.  
  108.  
  109.