1math(n)                        Tcl Math Library                        math(n)
2
3
4
5______________________________________________________________________________
6

NAME

8       math - Tcl Math Library
9

SYNOPSIS

11       package require Tcl  8.2
12
13       package require math  ?1.2.4?
14
15       ::math::cov value value ?value ...?
16
17       ::math::integrate list of xy value pairs
18
19       ::math::fibonacci n
20
21       ::math::max value ?value ...?
22
23       ::math::mean value ?value ...?
24
25       ::math::min value ?value ...?
26
27       ::math::product value ?value ...?
28
29       ::math::random ?value1? ?value2?
30
31       ::math::sigma value value ?value ...?
32
33       ::math::stats value value ?value ...?
34
35       ::math::sum value ?value ...?
36
37_________________________________________________________________
38

DESCRIPTION

40       The math package provides utility math functions.
41
42       Besides  a set of basic commands, available via the package math, there
43       are more specialised packages:
44
45       ·      math::bigfloat - Arbitrary-precision floating-point arithmetic
46
47       ·      math::bignum - Arbitrary-precision integer arithmetic
48
49       ·      math::calculus::romberg - Robust integration methods  for  func‐
50              tions of one variable, using Romberg integration
51
52       ·      math::calculus - Integration of functions, solving ordinary dif‐
53              ferential equations
54
55       ·      math::combinatorics - Procedures for various combinatorial func‐
56              tions (for instance the Gamma function and "k out of n")
57
58       ·      math::complexnumbers - Complex number arithmetic
59
60       ·      math::constants  -  A  set of well-known mathematical constants,
61              such as Pi, E, and the golden ratio
62
63       ·      math::fourier - Discrete Fourier transforms
64
65       ·      math::fuzzy - Fuzzy comparisons of floating-point numbers
66
67       ·      math::geometry - 2D geometrical computations
68
69       ·      math::interpolate - Various interpolation methods
70
71       ·      math::linearalgebra - Linear algebra package
72
73       ·      math::optimize - Optimization methods
74
75       ·      math::polynomials - Polynomial arithmetic (includes families  of
76              classical polynomials)
77
78       ·      math::rationalfunctions - Arithmetic of rational functions
79
80       ·      math::roman  -  Manipulation  (including  arithmetic)  of  Roman
81              numerals
82
83       ·      math::special - Approximations of special functions from  mathe‐
84              matical physics
85
86       ·      math::statistics - Statistical operations and tests
87

BASIC COMMANDS

89       ::math::cov value value ?value ...?
90              Return  the coefficient of variation expressed as percent of two
91              or more numeric values.
92
93       ::math::integrate list of xy value pairs
94              Return the area under a "curve" defined by a set  of  x,y  pairs
95              and the error bound as a list.
96
97       ::math::fibonacci n
98              Return the n'th Fibonacci number.
99
100       ::math::max value ?value ...?
101              Return the maximum of one or more numeric values.
102
103       ::math::mean value ?value ...?
104              Return the mean, or "average" of one or more numeric values.
105
106       ::math::min value ?value ...?
107              Return the minimum of one or more numeric values.
108
109       ::math::product value ?value ...?
110              Return the product of one or more numeric values.
111
112       ::math::random ?value1? ?value2?
113              Return  a  random number.  If no arguments are given, the number
114              is a floating point value between 0 and 1.  If one  argument  is
115              given,  the number is an integer value between 0 and value1.  If
116              two arguments are given, the number is an integer value  between
117              value1 and value2.
118
119       ::math::sigma value value ?value ...?
120              Return  the population standard deviation of two or more numeric
121              values.
122
123       ::math::stats value value ?value ...?
124              Return the mean, standard deviation, and coefficient  of  varia‐
125              tion (as percent) as a list.
126
127       ::math::sum value ?value ...?
128              Return the sum of one or more numeric values.
129

BUGS, IDEAS, FEEDBACK

131       This  document,  and the package it describes, will undoubtedly contain
132       bugs and other problems.  Please report such in the  category  math  of
133       the          Tcllib         SF         Trackers         [http://source
134       forge.net/tracker/?group_id=12883].  Please also report any  ideas  for
135       enhancements you may have for either package and/or documentation.
136

KEYWORDS

138       math, statistics
139
140
141
142math                                 1.2.4                             math(n)
Impressum