home *** CD-ROM | disk | FTP | other *** search
/ Current Shareware 1994 January / SHAR194.ISO / calculat / fca30.zip / FCA.DOC next >
Text File  |  1993-06-30  |  34KB  |  802 lines

  1.  
  2.                                FCA 3.0
  3.  
  4.              Resident Floating Point Scientific Calculator
  5.  
  6.                                   by
  7.                                Bob Eyer
  8.                              [73230,2620]
  9.  
  10.                              July 1, 1993
  11.  
  12.      ┌────────────────────────────────────────────────────────────────┐
  13.      │                                                                │
  14.      │     Like the idea of a BBS program that works  at  a  basic    │
  15.      │     level  with  no  configuration  at all--a miniature BBS    │
  16.      │     which can be made as sophisticated  as  you  like,  but    │
  17.      │     which  can be run as a simple utility if you forget how    │
  18.      │     to use it?  Try HOSP.  Lots of people like it.  And you    │
  19.      │     can have a copy  for  only  $25  (the  basic  shareware    │
  20.      │     charge  plus  $5).   That contribution pays for HOSP as    │
  21.      │     well as some four dozen other utilities.  See SHARE.TXT    │
  22.      │     for details.  For preview, see HOST3.ZIP in IBMBBS.        │
  23.      │                                                                │
  24.      └────────────────────────────────────────────────────────────────┘
  25.  
  26.      Syntax
  27.      ------
  28.      FCA [/U]   Hotkey: Rightshift-/
  29.  
  30.      Modes
  31.      -----
  32.      places  COLOR y  RAD/DEG  TWO/NAP/TEN  STUF/D  DMS/NODMS
  33.  
  34.      Review
  35.      ------
  36.      ST    Registers:    E PI   A B C F I K L M N Q R S X Y Z
  37.  
  38.      Data entry areas
  39.      ----------------
  40.      ADD  MEAN  REGRESSION
  41.  
  42.      Binary ops
  43.      ----------
  44.      +  -  *  /  ^  CO  PE
  45.  
  46.      Unary operations
  47.      ----------------
  48.      SQ/SQRT  EXP/LOG  SIN/ASN  COS/ACS  TAN/ATN  SINH COSH
  49.      TANH  !  HEX/DEC  X= Y=
  50.  
  51.  
  52.      Probability
  53.      -----------
  54.      BIN  NORM  POIS  STUD
  55.  
  56.      Finance
  57.      -------
  58.      PMT
  59.  
  60.  
  61.      See the note about Errors below.
  62.  
  63.      Changes in FCA 3.0
  64.      ------------------
  65.      - Added I register
  66.      - Added PMT function
  67.  
  68.      Changes in FCA 2.8
  69.      ------------------
  70.      - Addition of Hex, decimal conversions.
  71.      - Bug in data entry areas which affected the sign of entered
  72.        numbers now removed.
  73.      - Exponential notation now uses 'D' rather than 'e'.
  74.      - FCA 2.8 is essentially FCAP 1.3; latter pgm no longer offered
  75.        as retail enhancement of FCA.
  76.  
  77.  
  78.      INTRODUCTORY NOTE: FCA is a floating point  companion  alternative
  79.      to  CA  (see  program listing in Shareware Notice above), which is
  80.      restricted to four function fixed point arithmetic.  FCA  supports
  81.      at  least  30  functions.   CA  uses about 12K of memory; FCA uses
  82.      about 40K.  In the 40K class, competing floating-point calculators
  83.      offer far fewer functions.
  84.  
  85.      FCA is not a general formula evaluator.  If you need  to  do  many
  86.      different  kinds  of calculations on the same text in one shot, it
  87.      may be more appropriate to  use  Lotus  1-2-3  or  similar,  print
  88.      results  as  a  file,  edit, and then insert into your text.  FCA,
  89.      however, does provide a simple means of re-using  input  data  for
  90.      subsequent   calculations   (see  section  below  about  Automatic
  91.      Store/Recall and also the discussion about  register  operations).
  92.      Also,  FCA  provides  a  method  of  adding  many  numbers  before
  93.      injecting the sum to text (See Special Accumulator section below).
  94.  
  95.      FCA's  floating  point  emulator  will  take  advantage   of   the
  96.      coprocessor,  if  one  is installed.  This advantage is noticeable
  97.      primarily with regard to the probability functions.   The  slowest
  98.      and  least  accurate function is the Student probability integral,
  99.      which may require up to 8  seconds  and  beyond  to  find  results
  100.      arising from certain rare combinations of input variables on a 386
  101.      machine  WITH installed 80387.  This function works up to 60 times
  102.      more slowly when run on a machine lacking  a  coprocessor.   While
  103.      the  transcendentals generally have an accuracy of the order of 12
  104.      decimal places, Gosset's Student t is generally accurate  to  only
  105.      5.  See below about the STUD function.
  106.  
  107.      FCA's real number range,  apart  from  sign,  is  roughly  between
  108.      1D-294  and 1.7D+308.  This is much larger than is possible in the
  109.      companion program CA, and is also larger than the usual range  for
  110.      many scientific calculators.
  111.  
  112.      FCA  does not provide a menu or picture of a calculator - so as to
  113.      avoid obscuring portions of the  underlying  editing  application,
  114.      and  to  avoid  requiring  the user to employ only 25 x 80 screens
  115.      (some TSR calculators require this, to make use  of  Line  25  for
  116.      calculator  monitoring).   FCA responds equally well in 50 x 80 or
  117.      44 x 132 video environments; generally, it is indifferent  to  the
  118.      manner in which the video raster is defined.
  119.  
  120.      FCA  is  designed  to  respond  just to the hotkey, which provides
  121.      merely a 'calculation  window',  in  which  the  user  enters  his
  122.      calculations  or  mode  changes.   Hitting ENTER after supplying a
  123.      calculation or mode change to the window, simply executes the  job
  124.      and  returns  to the application.  Where a result is generated, it
  125.      is pasted directly to the underlying application where the  cursor
  126.      was last located.
  127.  
  128.      In  examples  seen  below,  EACH  calculation  or  mode  change is
  129.      preceded by invoking the hotkey.  This, however, does not apply to
  130.      special areas dealing with more complex problems, such as MEAN and
  131.      REGRESSION.
  132.  
  133.      FCA  is also designed to return the cursor to the initial position
  134.      in the main calculation window, to permit making mode  adjustments
  135.      without line skipping.  Once a task is completed, you may exit the
  136.      window merely by hitting ENTER one additional time or by using the
  137.      spacebar  to  delete the window.  The old window always disappears
  138.      in an editing environment after the  result  is  injected  to  the
  139.      text, but mode change information will, in general, remain.
  140.  
  141.      Modes/review
  142.      ------------
  143.      FCA  provides  6  groups  of  mode  selections - number of decimal
  144.      places to which to round results, colour  of  calculation  window,
  145.      whether  to use Radian or Degree measure, what base to use for the
  146.      EXP and LOG operations, whether to echo the result to  display  or
  147.      paste to text, and whether to use DMS format in trig calculations.
  148.  
  149.      The  current mode situation may be viewed simply by entering ST in
  150.      the calculation window (ST is short for 'status').
  151.  
  152.      Mode changes are entered directly in the  calculation  window  and
  153.      the  new  mode  specs  are resummarised in the calculation window,
  154.      just as though ST had been issued.
  155.  
  156.      x
  157.      Entry merely of a number, such as 5, will cause FCA to operate  so
  158.      as  to round all results to, say, five decimal places.  Entry of 0
  159.      means that no formatting will occur.  The default value is 0.
  160.  
  161.      COLOR y:
  162.      Entry  of  'COLOR  30' will cause the calculation window to have a
  163.      bright yellow  foreground  and  a  blue  background.   For  colour
  164.      details  see  below.   The default colour scheme is black on white
  165.      (112).  Color 0 automatically converts to  112,  so  as  to  avoid
  166.      black on black.
  167.  
  168.      RAD/DEG:
  169.      Entry of RAD in the window causes FCA to assume all angles entered
  170.      as arguments in trig functions are in radian  measure.   Entry  of
  171.      DEG puts FCA into Degree mode.  The default is Degree mode.
  172.  
  173.      TWO/NAP/TEN:
  174.      FCA supports three bases for use with the LOG  or  EXP  functions.
  175.      TWO  means  base  2; NAP is short for the Napierian base or base e
  176.      (e=2.718...); and TEN means base 10.  The default is base e.
  177.  
  178.      STUF/D:
  179.      STUF means stuff the result to the underlying application,  and  D
  180.      means display only at TSR video level.
  181.  
  182.      Register operations
  183.      -------------------
  184.      FCA supports pasting 11 registers direct to  text.   For  example,
  185.      after invoking the hotkey, we simply enter
  186.  
  187.      e                  [= 2.7182818284590
  188.  
  189.      (the use of the left bracket here merely signifies that the result
  190.      appears at the underlying application, not at TSR level)
  191.  
  192.      In  addition,  the user may simply enter A, B, or C to examine the
  193.      last value stored in FCA's "store/recall" facilities (see  below),
  194.      as  well  as  the  general  storage register X, and the statistics
  195.      registers.
  196.  
  197.      Binary operations
  198.      -----------------
  199.      FCA  supports  seven two-variable ('binary') operations: + - * / ^
  200.      CO PE, or add, subtract,  multiply,  divide,  raise  to  a  power,
  201.      combinations and permutations, respectively.  For example,
  202.  
  203.      1991-1917          [= 74
  204.  
  205.      7D-6+3D-4          [= 0.000307
  206.  
  207.      When  entering  exponentially formatted numbers one must specify a
  208.      sign (+ or -) immediately after the 'D' symbol.  FCA automatically
  209.      distinguishes between the sign of an exponent and an  addition  or
  210.      subtraction operation between two numbers.
  211.  
  212.      Additional examples:
  213.  
  214.      35/34              [= 1.0294117647058
  215.      35*34              [= 1190
  216.  
  217.      35^34              [= 3.150021D+52         (6 places)
  218.  
  219.      10 CO 4            [= 210         (210 combinations of 10 things
  220.                                         taken 4 at a time)
  221.  
  222.      Unary operations
  223.      ----------------
  224.      FCA  also  supports  10 unary transcendental functions, grouped by
  225.      inverses, as well as three hyperbolic functions, and the factorial
  226.      function.  Here, a blank must separate the name of  the  operation
  227.      and  the  number  which  the  operation  takes  as  its  argument.
  228.      Examples,
  229.  
  230.      ! 6                [= 720         (factorial 6)
  231.  
  232.      HEX 12000          [= 2EE0
  233.      DEC 2EE0           [= 12000
  234.  
  235.      SIN 45             [= 0.7071067811865
  236.      COS 1              [= 0.9998476951563
  237.  
  238.      LOG 2              [= 0.6931471805599
  239.      EXP 1              [= 2.7182818284590
  240.  
  241.      SQRT 2             [= 1.4142135623731
  242.  
  243.      If you wish to use Base 10  logarithms,  just  enter  TEN  in  the
  244.      window, and then
  245.  
  246.      LOG 2              [= 0.3010299956639
  247.  
  248.      Note: the EXP function is in fact an antilog function, since it is
  249.      subject to the same range of base changes as is the LOG  function.
  250.      This  may  be  inconvenient  to  some  users  who  assume that the
  251.      exponential function must always have base e, but  implementing  a
  252.      separate  antilog function seemed, in the circumstances, merely to
  253.      be useless duplication of what is, essentially, a  quite  flexible
  254.      function.
  255.  
  256.      The internal setup for the hyperbolic functions is the same as for
  257.      the  trig  functions.  If you select DEGree mode, FCA will convert
  258.      your degree measure into the radian equivalent before  calculating
  259.      the  function.   If  you  select  RADian mode, FCA will do no such
  260.      conversion,  but  will  inject  your  argument  directly  to   the
  261.      function.
  262.  
  263.      If DMS is selected, FCA will convert decimal degrees  to  degrees,
  264.      minutes and seconds and set places to 6.
  265.  
  266.  
  267.      Automatic store/recall
  268.      ----------------------
  269.      If  you  are  doing  several calculations which involve use of the
  270.      same term, you may  reduce  typing  further  by  using  variables.
  271.      Calculation  window variables are A, B, and C.  The first time you
  272.      execute a calculation with numbers, the  first  number  is  always
  273.      stored  into  A,  the second number into B, and the result into C.
  274.      These values can be re-used, simply by employing  these  variables
  275.      in  subsequent calculations [except, of course, for the fact that,
  276.      as each new calculation is done, the value of C  will  be  updated
  277.      with the new result].
  278.  
  279.      Example (after entering 3 in the window):
  280.  
  281.      Suppose we wish to perform the following calculations -
  282.  
  283.      34.21102 x 435, and
  284.      34.21102 / 355.5
  285.  
  286.      Here, each calculation uses the same initial term.  We proceed  as
  287.      follows,  each  time by hitting Rightshift-slash, and entering the
  288.      calculation shown:
  289.  
  290.      34.21102 * 435     [= 14881.794
  291.      a/355.5            [= 9.623D-02
  292.  
  293.      The second calculation above could be repeated merely by entering
  294.  
  295.      a/b
  296.  
  297.      The user may also proceed to obtain results for  the  other  three
  298.      operations, using the same numbers, as follows:
  299.  
  300.      a*b                [= 12162.018
  301.      a+b                [= 389.711
  302.      a-b                [= -321.289
  303.  
  304.      The  output  C-variable  can  also  be  used in calculations.  For
  305.      example, we may first calculate with no scientific notation
  306.  
  307.      2/3                [= 0.667
  308.  
  309.      Here, A = 2, B = 3, and C is the result in brackets.  Now,  if  we
  310.      multiply the result C by 3, we should get back the numerator A:
  311.  
  312.      C * 3              [= 2.000
  313.  
  314.      This   example  illustrates  the  fact  that  FCA,  like  handheld
  315.      calculators with the store/recall function, stores  results  in  a
  316.      separate  register  before rounding.  It is this separate register
  317.      that  is  used  for  input,  when  the  user  employs   C   in   a
  318.      calculation.  [otherwise, the user might get back 2.001].
  319.  
  320.      This  type  of  'result protection' on use of a previous result is
  321.      not, however, found in most TSR calculators.
  322.  
  323.      All these  remarks  apply  also  to  FCA's  trig  functions.   For
  324.      example (using 5 decimal places),
  325.  
  326.      SIN 89             [= 0.99985
  327.  
  328.      We  may  now  get  back  the  value  of  the  argument,  simply by
  329.      performing the inverse (ARCSINE or ASN) on the result:
  330.  
  331.      ASN C              [= 89.00000
  332.  
  333.  
  334.      The same principle also works with  squares  and  squareroots,  as
  335.      well as logs and exponentials.  For example,
  336.  
  337.      LOG 2              [= 0.69315
  338.  
  339.      but  the  argument '2' may be had by performing the inverse on the
  340.      result:
  341.  
  342.      EXP C              [= 2.00000
  343.  
  344.      You may also store a previous input or result into either  of  the
  345.      extra storage registers X or Y.  Just use, for example,
  346.  
  347.      X= C   or Y = B
  348.  
  349.      to store the value of C into X or B into  Y.   Note  that  FCA  is
  350.      indifferent  on  whether the entry formula is 'X=C' or 'X = C'.  X
  351.      may be recalled simply by entering X by itself, or by using it  as
  352.      an argument in any function.
  353.  
  354.  
  355.      MEAN (Total, Mean and Standard deviation)
  356.      -----------------------------------------
  357.      Entry  of the keyword MEAN in the calculation window will transfer
  358.      control to a special area of FCA which displays the following type
  359.      of prompt:
  360.  
  361.      X>
  362.  
  363.      Numbers entered at this prompt are totalled  and  in  passing  FCA
  364.      also  computes  the  mean  and  standard deviation for all numbers
  365.      entered, displaying these results in the stated order to the  left
  366.      of the prompt.
  367.  
  368.      If the next number in the series is the same as the previous  one,
  369.      you may simply enter X at the prompt; FCA interprets X in the MEAN
  370.      window  as  the  value  last  entered.  The same principle applies
  371.      where the user wishes merely add the previous total to itself: use
  372.      the result register C.
  373.  
  374.      The  data  displayed  to  the  left of the prompt are displayed as
  375.      rounded to a minimum of 3 places.
  376.  
  377.      When finished entering data, simply hit the Esc key to  paste  the
  378.      Total to the underlying application.  The other data are available
  379.      by entering the following variable names:
  380.  
  381.       C   - Total
  382.       M   - Mean
  383.       S   - Standard deviation
  384.       N   - Number of data entered.
  385.       F   - Degrees of freedom (for MEAN calculations this will be
  386.             N - 1).
  387.  
  388.      The main result, the total, may be accessed by using register C.
  389.  
  390.      The  values  listed  above may be used, for example, in the Normal
  391.      distribution to obtain automatic calculation  of  a  z-score  (see
  392.      below).
  393.  
  394.      For  the interest of statistics people, the definition of standard
  395.      deviation used in FCA assumes the "n - 1" basis.  That is,  it  is
  396.      based  on  multiplying the the root mean square of the data by the
  397.      square root of the ratio of N to N - 1.  The purpose  of  the  n-1
  398.      basis  is  to  obtain  a  more  realistic  value  for the standard
  399.      deviation in small sample applications than  is  possible  with  a
  400.      mere variance calculation.
  401.  
  402.      The  value of this routine is primarily to obtain quick results on
  403.      small amounts  of  data  found  directly  on  the  screen  in  the
  404.      underlying  application.  If you have a large job to do, involving
  405.      many points, your best bet is to use a large program such as LOTUS
  406.      1-2-3, not a small program like FCA.
  407.  
  408.  
  409.      REGRESSION (regression analysis)
  410.      --------------------------------
  411.      Entry of the keyword REGRESSION in  the  calculation  window  will
  412.      transfer control to the REGRESSION area of FCA.
  413.  
  414.      Here, the prompt will change between
  415.  
  416.      X>
  417.  
  418.      and
  419.  
  420.      Y>
  421.  
  422.      and FCA will issue a beep to the speaker each time a  Y  value  is
  423.      entered.   Three  running results are displayed to the left of the
  424.      prompt:  The   Galton-Edgeworth   correlation   coefficient,   the
  425.      y-intercept  of  the  regression line, and the slope of that line.
  426.      The previous value of X may be entered at either prompt  by  using
  427.      X,  and the previous value of Y may be entered at either prompt by
  428.      using Y.  If  you  enter  C  (the  result  register)  the  current
  429.      correlation   coefficient   will  be  entered  at  the  prompt  in
  430.      question.  Avoid, unless you really want to do that.
  431.  
  432.      But otherwise, operation of the REGRESSION area is similar to that
  433.      in MEAN.
  434.  
  435.      On use of Esc to exit, FCA will paste the correlation  coefficient
  436.      to  the  underlying application.  To paste the y-intercept, use K;
  437.      and to paste the slope,  use  L.   The  regression  line  has  the
  438.      standard form,
  439.  
  440.      Y = K + LX
  441.  
  442.      As  usual,  N  is  the  number  of  pairs  of  data entered in the
  443.      REGRESSION window.  The correlation coefficient may be obtained by
  444.      entering R.
  445.  
  446.      F,  the  number  of degrees of freedom, is also calculated by FCA,
  447.      and in the REGRESSION window, will always be set to N - 2.
  448.  
  449.  
  450.      BIN
  451.      ---
  452.      This function returns the cumulative binomial probability  of  the
  453.      occurrence  of  X or fewer events in a sample of size N, where the
  454.      probability of  a  single  event  is  Q,  as  well  as  the  point
  455.      probability in register Y.  The syntax is
  456.  
  457.      BIN X N Q
  458.  
  459.      corresponding  to  the  summation  of  all  values of the binomial
  460.      frequency distribution for occurrences ranging between 0 and X.
  461.  
  462.      Taking  an  example  from  Spiegel's  Statistics  (Schaum  Outline
  463.      Series,  p  127),  find the probability that at most 2 bolts (i.e.
  464.      either 0, 1, or 2) will be defective in a sample of 4 taken from a
  465.      production  process  in  which  20%  of  all  bolts  produced  are
  466.      defective.  Here, we use
  467.  
  468.      BIN 2 4 0.2        [= 0.9728
  469.  
  470.      the same answer given by Spiegel.
  471.  
  472.      The  probability  that  exactly  2 bolts will be defective in this
  473.      problem is obtained merely by entering the Y register
  474.  
  475.      Y                  [= 0.1536
  476.  
  477.  
  478.      POIS
  479.      ----
  480.      This  is the Poisson cumulative probability of the occurrence of X
  481.      or fewer events in a sample of size N, where the probability of  a
  482.      single event is Q - using same syntax as BIN:
  483.  
  484.      POIS X N Q
  485.  
  486.      The 'integration' logic used by FCA here is the same  as  for  the
  487.      binomial distribution.  That is, the result found is the summation
  488.      of  the  individual  Poisson probabilities from 0 to X.  The point
  489.      probability is found in register Y.
  490.  
  491.      The primary reason why this distribution is needed  to  supplement
  492.      the  Binomial, is that the latter has a restricted range, owing to
  493.      the fact that it uses the factorial function  to  operate  on  the
  494.      sample  size.   This  function  explodes  beyond  the number range
  495.      intelligible to FCA for arguments larger than  170.   The  Poisson
  496.      distribution  also  uses  the  factorial function, but only on the
  497.      value of X.  It is therefore capable of dealing  with  very  large
  498.      sample  sizes.  The disadvantage of the Poisson is that it is only
  499.      an approximation to the Binomial.
  500.  
  501.      Using another example out of  Spiegel's  text,  we  may  find  the
  502.      probability  that  more than 2 individuals out of a sample of 2000
  503.      will suffer a bad  reaction  from  a  certain  injection,  if  the
  504.      probability  that  any  individual  will  suffer  is  0.001.  This
  505.      problem  is  clearly  beyond  the  capabilities  of  the  binomial
  506.      distribution.    The  problem  is  solved  first  by  finding  the
  507.      probability that at least 2 will suffer.  This is:
  508.  
  509.      POIS 2 2000 0.001  [= 0.6767
  510.  
  511.      The probability that more than 2 will suffer is obviously 1  minus
  512.      this result:
  513.  
  514.      1 - C              [= 0.3233
  515.  
  516.      which is the same as Spiegel's result.
  517.  
  518.      The probability that exactly 2 persons will suffer in this problem
  519.      is found in register Y:
  520.  
  521.      Y                  [= 0.2707
  522.  
  523.  
  524.      NORM
  525.      ----
  526.      The syntax for the normal probability is
  527.  
  528.      NORM [X M S F] | [Z]
  529.  
  530.      The  form  here  indicates  two  modes  of  data  entry; one which
  531.      involves inputting the sample mean X, the population mean  M,  the
  532.      sample  standard  deviation  S,  and  the  degrees  of  freedom  F
  533.      associated with that sample - or simply the z-score.  The value of
  534.      F should be equal to N - 1; that is, it should be  one  minus  the
  535.      sample  size.   FCA  will  automatically calculate the appropriate
  536.      z-score if the first data entry method is  used.   The  result  is
  537.      found in register Z.
  538.  
  539.      The  terminology used here is compatible with the terminology used
  540.      in the MEAN section of FCA.  Since  FCA  only  uses  the  absolute
  541.      value  of  the  z-score  to  calculate the probability of the null
  542.      hypothesis, it does not matter whether MEAN  is  used  to  compute
  543.      population or sample means.
  544.  
  545.      Thus,  after  entering  the  sample in MEAN, the user may exit and
  546.      test a particular value of X, say  5,  against  those  results  by
  547.      entering
  548.  
  549.      NORM 5 M S F
  550.  
  551.      FCA  will  pick  up the values of M, S, F and proceed to calculate
  552.      the z-score for the X-value 5.  The  result  returned  in  C  (and
  553.      pasted  to text, if STUF mode is active) is the probability of the
  554.      null hypothesis - that  is,  the  'one-tailed'  cumulative  Normal
  555.      probability  associated  with values of X equal to or greater than
  556.      5.
  557.  
  558.      If only one parameter is entered, NORM assumes that this value  is
  559.      the  raw  z-score.  For example, the one-tailed Normal probability
  560.      for a z-score of 1.96 is:
  561.  
  562.      NORM 1.96          [= 2.500D-02
  563.  
  564.      which  checks  exactly  with  any   standard   table   of   Normal
  565.      probabilities.   1.96  will  be recognised by statisticians as the
  566.      usual z-score associated with defining a two-tailed 95% confidence
  567.      interval about a mean [2.500e-02 = 1 - 0.95/2].
  568.  
  569.      The Normal ordinate for the input value of 1.96 is available in Y:
  570.  
  571.      Y
  572.  
  573.  
  574.  
  575.      STUD
  576.      ----
  577.      The Normal  distribution  is  not  very  useful  except  on  large
  578.      samples,  for  which reason the Student distribution was developed
  579.      earlier this century by Gosset.  The syntax is -
  580.  
  581.      STUD [X M S F] | [Z F]
  582.  
  583.      Same remarks for these variables and their purpose as given  above
  584.      for NORM.  Note that, if the calculation of the t-score is avoided
  585.      and  direct  entry  is  desired,  the  user  must enter degrees of
  586.      freedom F along with the score.
  587.  
  588.      For example, if the t-score is 12.706 based on a sample size  only
  589.      two  data,  so  that  there  is only 1 degree of freedom, then the
  590.      probability of the null hypothesis is
  591.  
  592.      STUD 12.706 1      [= 2.500D-02
  593.  
  594.      which agrees  exactly  with  statistical  tables  on  the  Student
  595.      distribution.
  596.  
  597.      FCA does not yet support recovery of the Student ordinate values.
  598.  
  599.  
  600.      The  point  about  the  importance of large samples for the Normal
  601.      distribution may be seen by noting how many degrees of freedom are
  602.      necessary to bring the Student  probability  into  line  with  the
  603.      Normal,  using  a constant score of 1.96.  This can be seen in the
  604.      following brief chart:
  605.  
  606.                            Z = 1.96
  607.  
  608.           Degrees of freedom     Student probability
  609.           ------------------     -------------------
  610.                            1     0.150
  611.                           10     3.922D-02
  612.                           30     2.967D-02
  613.                          100     2.639D-02
  614.                          500     2.528D-02
  615.                         5000     2.503D-02
  616.  
  617.      Note how the Student probability converges to the Normal  as  very
  618.      large amounts of data are used to calculate the sample mean.  Note
  619.      also  the probability with a sample size of 31 (F = 30): the value
  620.      there is close enough to the Normal value of 2.500D-02 to let  the
  621.      Normal  present  a reasonably accurate picture of a two-tailed 95%
  622.      confidence interval on that sample size.  This is the  reason  why
  623.      most  statisticians don't consider a Normal test to be good unless
  624.      the sample is based on at least 30 pieces of data.
  625.  
  626.      In text editing applications, where the user is evaluating a small
  627.      number of results, say, sample sizes of  the  order  of  3  to  12
  628.      pieces   of   data,   and  wants  a  quick  analysis,  the  Normal
  629.      distribution will not be helpful at all: The Student  distribution
  630.      will  be  required.   And  it  is  quite  handy  to  have  such  a
  631.      distribution immediately accessible at the touch of a hotkey.
  632.  
  633.      I have referred here to the "t-score"; but the syntax of the  STUD
  634.      function  uses  the  variable Z.  This is due to the fact that FCA
  635.      uses the same definition for the standard deviation throughout all
  636.      its statistics routines, resulting in the fact  that  the  z-score
  637.      and  the  t-score  use the same formulas.  This being the case, it
  638.      was not necessary to distinguish a "T" variable for  separate  use
  639.      with the Student distribution.
  640.  
  641.      Wait time
  642.      ---------
  643.      The Student integral is a relatively complex and slowly converging
  644.      infinite series, and so, certain combinations of values will cause
  645.      FCA to display the message
  646.  
  647.      Wait ...
  648.  
  649.      for  an  appreciable length of time.  This means that the integral
  650.      is being calculated.  As stated above in the introductory  portion
  651.      of   this  file,  FCA  will  take  full  advantage  of  a  numeric
  652.      coprocessor, if one is installed.  Experiment shows  that  Student
  653.      probability  calculations  run between 30 and 60 times faster when
  654.      there is an installed coprocessor.
  655.  
  656.      Normally, this wait time problem is not significant.  But for very
  657.      large t-scores and small values  of  F,  execution  time  for  the
  658.      Student  probability  may  prove  to be substantial, even for fast
  659.      machines.  For example,
  660.  
  661.      STUD 64 1          [= 4.973D-03
  662.  
  663.      requires 8 seconds on a 20 Mhz 386/387 machine.  On a 486 machine,
  664.      the expectation is that this result would  require  somewhat  less
  665.      than  3  seconds, since all such machines have numeric coprocessor
  666.      capability built-in.
  667.  
  668.      On a 6 MHz AT without coprocessor, however, this calculation  will
  669.      require more than 22 MINUTES.
  670.  
  671.      So,  if  you  see  'Wait ...' just wait: your machine is NOT hung.
  672.      And avoid Z values substantially larger than 10, unless you have a
  673.      coprocessor, or are prepared to wait for  the  result.   Execution
  674.      time  rises  about  as  the  square of Z and drops in rough linear
  675.      proportion to the value of F.
  676.  
  677.      Nearly always, however, the user  will  not  be  considering  such
  678.      large  t-scores  and  will have samples which are larger than just
  679.      two pieces of data (1 degree of freedom).  For example, a  t-score
  680.      of 2.78 based on a calculated mean of a sample of size 5 -
  681.  
  682.      STUD 2.78 4        [= 2.491D-02
  683.  
  684.      executes  virtually  instantaneously  on  a  386/387, and requires
  685.      about 3 seconds on a 6 MHz AT without coprocessor.
  686.  
  687.  
  688.      PMT
  689.      ---
  690.      This  is  the  standard payment function for loans at given annual
  691.      interest rates and number of payback years.  The syntax is -
  692.  
  693.      PMT X I N
  694.  
  695.      where X is the present value of the loan, I is the annual interest
  696.      rate expressed in percentage terms, and  N  the  number  of  years
  697.      during which monthly payments are to be made.
  698.  
  699.      Example:
  700.      Find the monthly payment due on a $100,000 30-year mortgage at the
  701.      fixed interest rate of 6%:
  702.  
  703.      PMT 100000 6 30    [= 599.55
  704.  
  705.      As with the other special functions above, the user may employ the
  706.      old  values simply by stating their variable names in the formula.
  707.      Thus to obtain the monthly  payments  in  the  above  example  for
  708.      shorter periods of 5, 10, and 15 years, one simply uses -
  709.  
  710.      PMT X I 5          [= 1933.28
  711.  
  712.      PMT X I 10         [= 1110.21
  713.  
  714.      PMT X I 15         [=  843.86
  715.  
  716.  
  717.  
  718.      Prompt Colour
  719.      -------------
  720.      As  stated  above, to change the colour of the calculation window,
  721.      simply enter
  722.  
  723.      COLOR x
  724.  
  725.      in the window, where x is a COLOR number.   The  default  is  112,
  726.      which  describes  black  foreground  on  a white background.  0 is
  727.      impossible (black on black), and so FCA converts  that  number  to
  728.      112  automatically.   Foreground  and  Background  colours  may be
  729.      determined by using the following table:
  730.  
  731.                   Back     Fore   Bright Fore
  732.                   ----     ----   -----------
  733.      Black           0        0    8
  734.      Blue           16        1    9
  735.      Green          32        2   10
  736.      Cyan           48        3   11
  737.      Red            64        4   12
  738.      Magenta        80        5   13
  739.      Brown          96        6   14
  740.      White         112        7   15
  741.  
  742.  
  743.      The correct COLOR number is found merely by adding the  Foreground
  744.      number  to  the  Background  number  desired.  For example, Bright
  745.      Green on Blue background is 10 + 16 = 26.
  746.  
  747.      Avoid setting COLOR above  127.   Values  above  that  limit  will
  748.      produce blinking displays.
  749.  
  750.      In  my  estimation the COLORs best for the eye are 10, 11, 14, 15,
  751.      26, 27, 30, 31, 74, 75, 78, 79 and 112.  But you  may  have  other
  752.      ideas.  Example,
  753.  
  754.      COLOR 75
  755.  
  756.      sets the window to Bright Cyan on a Red background.
  757.  
  758.  
  759.      Errors
  760.      ------
  761.      FCA supports error reports as follows -
  762.  
  763.      xyz: illegal            - This message  occurs  where your entered
  764.                                instruction, 'xyz', is not recognised by
  765.                                FCA.   For  example, 'TAN89' is illegal;
  766.                                should be 'TAN 89'.
  767.  
  768.                                Read examples in documentation above  to
  769.                                be  sure  you  understand  how  to enter
  770.                                expressions.
  771.  
  772.      Illegal X setting       - This means that you have tried  to  save
  773.                                the  value  of unsupported register into
  774.                                X.  The supported registers  are  listed
  775.                                on the help screen.
  776.  
  777.      Zero divide error       - Attempt to divide by zero.  This can  be
  778.                                an explicit mistake, like '5 / 0', or it
  779.                                may be an attempt to calculate the value
  780.                                of  a  unary  function which divides two
  781.                                other functions to  obtain  its  result.
  782.                                For  example,  the TAN, or Tangent of an
  783.                                angle, is really the ratio of  the  Sine
  784.                                and  the  Cosine  of that angle; but the
  785.                                Cosine of 90 degrees is zero, so  trying
  786.                                to  find the Tangent of 90 will generate
  787.                                this error.
  788.  
  789.      Negative base error     - You tried raising a negative number to a
  790.                                power (cannot be done on real numbers).
  791.  
  792.      Negative argument error - You tried taking the LOG of  a  negative
  793.                                number (cannot be done on real numbers).
  794.  
  795.      FCA  also  adds  numerous  other  specific error message readouts,
  796.      providing diagnostics on values of special  variables,  especially
  797.      in reference to the probility and statistics functions.  These are
  798.      all self-explanatory.
  799.  
  800.      ----------------------
  801.      End of documentation
  802.