home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1994 #1 / monster.zip / monster / MATH / C.ZIP / C.DOC next >
Text File  |  1994-02-13  |  6KB  |  235 lines

  1.                       ****************************
  2.                   c : the Cool Command-line CalCulator
  3.                       ****************************
  4.                                     
  5.                          F  R  E  E  W  A  R  E
  6.                                     
  7.                                    by
  8.                                     
  9.                                Tom Wilson
  10.                                     
  11.      <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
  12.                                                       
  13.                                                       
  14.  
  15.      I bet you've spent most of last week wondering when you'd
  16. get a chance to use an idiotic program written by a 15 year-old
  17. in his first year of computer science.  Well, here it is....
  18.  
  19.      Actually, this program, unlike most of the others I've
  20. written, is fairly useful.  I gave it to a whole bunch (6) of my
  21. friends, and most (4) of them said that they used it quite a lot.
  22.  
  23. Coincidentally, these four happened to be friends that are
  24. smaller and weaker than me.   But really, its a neat program.  
  25.  
  26.      It's very simple to use.  At your DOS prompt, type in <c>,
  27. and press <ENTER>.  You'll see a fairly moronic bunch of
  28. characters come on the screen to tell you how its used (I got
  29. this idea for Pkzip; if they can do it, so can I).  In a
  30. nutshell, the Cool CalCulator uses neat command-line parameters
  31. to figure out what the hell its supposed to be doing.  For
  32. instance, if your computer literate but mathematically challenged
  33. child (brother?  sister?) wanted to add four and four, he (she?)
  34. would type:
  35.       
  36.                         c 4 + 4
  37.  
  38.      Get the idea?  It's real easy.  c recognizes 5 operators:
  39. +, -, *, /, and ^.  Respectively, these stand for: addition,
  40. subtraction, multiplication, and x to the nth (?).  If you're a
  41. complete moron, and put something else in there, it will give you
  42. an error message.
  43.  
  44.      c also uses cool control parameters.  These allow you to
  45. control how the results of the operation you used are presented. 
  46. By default, c shows you the result round off to the nearest
  47. hundredth.  You can tell the program to show you the answer to 5
  48. decimal places, 10 decimal places, rounded to the nearest
  49. integer, and with the decimal value truncated.  The control
  50. parameters to do this are as follows:
  51.  
  52.            +L  : show answer to 5 decimal places
  53.            +E  : show answer to 10 decimal places
  54.            +R  : round answer to nearest whole integer
  55.            +T  : truncate the decimal value of the answer
  56.  
  57. For example:
  58.  
  59.      C:\>c 2.9 / 1.9
  60.      Result of operation: 1.526
  61.  
  62.      C:\>c 2.9 / 1.9 +L
  63.      Result of operation: 1.52632
  64.  
  65.      C:\>c 2.9 / 1.9 +E
  66.      Result of operation: 1.5263157895
  67.  
  68.      C:\>c 2.9 / 1.9 +R
  69.      Result of operation: 2.000
  70.  
  71.      C:\>c 2.9 / 1.9 +T
  72.      Result of operation: 1.000
  73.  
  74.      c allows you to handle so really B I G numbers with relative
  75. ease.  It allows input values that are up to 18 digits long, but,
  76. unless you have a numeric coprocessor, these can be a little
  77. quirky.  But, as long as you stick to numbers that are, say, 14
  78. digits (I mean, what are you using this program for, the federal
  79. debt?) long, you'll be fine.
  80.  
  81.      What makes this program good is that it is so small.  And
  82. its pretty fast.  And it uses an almost undetectable amount of
  83. RAM.  So all you people who still have 286s with 20 MB harddrives
  84. and 640 K of memory (like my parents), may find this appealing.
  85.  
  86.      Also, it's F R E E!  In case you didn't know, that's why I
  87. put that big F R E E W A R E sign at the front of this document. 
  88. I would desperately LOVE to charge people for this 'cause I'm
  89. gonna need to go to college sometime in the near future, but I
  90. figure nobody would pay for this stuff.  Ah well....
  91.  
  92.      Anyway, I can be contacted on Prodigy (XDKP09E) or
  93. CompuServe(72732,152).  If you're on the internet, that's
  94. XDKP09E@prodigy.com.  Send me a message.  Even better, send me
  95. some money.  If you want the next version of this, or want some
  96. other program of mine (some are quite good, actually), then write
  97. me, and either give me some improvements for this program, or
  98. some logical and scientific evidence that shows God exists
  99. (Obviously, I don't need to worry about the latter).  If you like
  100. this program, then P L E A S E tell me!  Thank you.....
  101.  
  102. NOTES:
  103. ~~~~~
  104.  
  105. Just a few things to consider-
  106.  
  107.      Some people I originally gave this to said that they
  108. couldn't figure out how to use the ^ function, so I thought I'd
  109. better clear this up.  You use ^ to raise the first operand to
  110. the power of the second.  So two to the fourth would be
  111.                        
  112.   c 2 ^ 4
  113.  
  114.      Get it?  By the way, the ^ function does not work with
  115. non-integer numbers on the second operand.  So if you enter a
  116. number with a decimal value, c automatically rounds it to the
  117. nearest integer.  So:
  118.  
  119. c 2 ^ 2.6 = c 2 ^ 3
  120.  
  121.      c does not need a numeric coproccessor.  Far be it from me
  122. to needlessly shove money to Intel's pocket by requiring users to
  123. have one (you'd go buy one if this program needed it, wouldn't
  124. you?  Wouldn't you?!). However, without one, it may make mistakes
  125. when handling REALLY big numbers, like
  126. 4762591540092687.47601128372.  Okay....?
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.  
  137.  
  138.  
  139.  
  140.  
  141.  
  142.  
  143.  
  144.  
  145.  
  146.  
  147.  
  148.  
  149.  
  150.  
  151.  
  152.  
  153.  
  154.  
  155.  
  156.  
  157.  
  158.  
  159.  
  160.  
  161.  
  162.  
  163.  
  164.  
  165.  
  166.  
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178.  
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.  
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.  
  203.  
  204.  
  205.  
  206.  
  207.  
  208.  
  209.  
  210.  
  211.  
  212.  
  213.  
  214.  
  215.  
  216.  
  217.  
  218.  
  219.  
  220.  
  221.  
  222.  
  223.  
  224.  
  225.  
  226.  
  227.  
  228.  
  229.  
  230.  
  231.  
  232.  
  233.  
  234.  
  235.