home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1997 February / PCWK0297.iso / technika / formcalc / science / scifrnum.equ < prev    next >
Text File  |  1994-01-14  |  2KB  |  14 lines

  1. "AST3CAL3 EQUATION VARIABLE |D 4 4D|","01-14-1994","22:24:32"
  2. "RAND_NUM=X_MEAN+ABS(X_MEAN-OFFSET)*RAND(A)*SIGN(-.5+RAND(A)) N=(N+1)*(1-UIF(A+1)) X_AVE=(RAND_NUM+X_AVE)/NZE(N)*(1-UIF(A+1))"
  3. "RANDOM NUMBER GENERATOR. Centered about X_MEAN with range from X_MEAN-OFFSET to X_MEAN+OFFSET.  Set A=-1 to initialize, Then set A=1 to        generate sequential random numbers as RAND_NUM by typing C repeatedly.  N is thenumber of values used to calculate X_AVE.  Ideally, as N increases X_AVE        approaches X_MEAN.                                                                                                                                                                                               (c) Copyright PCSCC, Inc., 1993*** Answer(s) to problem ***                                                    (a) Set OFFSET=15, X_MEAN=0.0 and then A=-1 to initialize. Next set A=1 and     type C to generate new numbers.  First five numbers are: -14.061, 9.176, 12.275,6.286, 14.987. (b) Continue to type C until average X_AVE is less than 0.1 for 5or so additions.  The number is about 150.      Type any key to exit.                                                                                                                                                                                          ||Calculate 5 random numbers with offsets of ±15 about a mean    value of 0.0. (b) How many random numbers with this offset and mean must be     added together such that their average value is within 10% of the mean of 0.0?        Type comma key to see answer.  Type (F2) to return to application file.  "
  4. 6
  5. 6.201175153255463,0,""
  6. 156,0,""
  7. 3.982529951532017D-02,0,""
  8. 0,0,""
  9. 15,0,""
  10. 1,0,""
  11. 1
  12. 0
  13. 0
  14.