home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS - Coast to Coast / simteldosarchivecoasttocoast2.iso / calculat / sm30a.zip / SYMBMATH.H42 < prev    next >
Text File  |  1993-11-07  |  552b  |  24 lines

  1.         4.10    Statistics
  2.     The functions:
  3.         average(x), max(x), min(x), listsum(x), length(x)
  4. do statistical operations.
  5.     A list of numbers can be calculation on staticstics.
  6.     
  7.     Example 4.10.1.
  8.  
  9. IN:  p := [1, 2, 3]
  10. IN:  average(p), max(p), min(p), length(p)
  11. OUT: 2, 3, 1, 3
  12.  
  13.     Not only a list of number but also a list of symbolic data can be
  14. operated by some statistic functions to show how to do the statistic 
  15. operation.
  16.  
  17. IN:  p := [a, b, c]
  18. IN:  average(p)
  19. OUT: 1/3*(a + b + c)
  20. IN:  listsum(p)
  21. OUT: a + b + c
  22. IN:  length(p)
  23. OUT: 3
  24.