NAME

       math - Tcl math library


SYNOPSIS

       package require math ?1.0?

       ::math::cov value value ?value? ?value ...?

       ::math::fibonacci n

       ::math::max value ?value? ?value ...?

       ::math::mean value ?value? ?value ...?

       ::math::min value ?value? ?value ...?

       ::math::prod value ?value ...?

       ::math::random ?value? ?value?

       ::math::sigma value value ?value? ?value ...?

       ::math::stats value value ?value? ?value ...?

       ::math::sum value ?value ...?

       ::math::dot values rows cols

       ::math::cross values rows cols

       ::math::det values rows cols

       ::math::integrate list of xy value pairs

_________________________________________________________________


DESCRIPTION

       The math package provides utility math functions.


COMMANDS

       ::math::cov value value ?value? ?value ...?
              Return  the  coefficient  of variation expressed as
              percent of two or more numeric values.

       ::math::integrate list of xy value pairs
              Return the area under a "curve" defined by a set of
              x,y   pairs   and   the  error  bound  as  a  list.
              ::math::fibonacci n Return the n'th Fibonacci  num­
              ber.  ::math::max value ?value? ?value ...?  Return
              the maximum of one or more numeric values.

              Return the  mean,  or  "average"  of  one  or  more
              numeric values.

       ::math::min value ?value? ?value ...?
              Return the minimum of one or more numeric values.

       ::math::prod value ?value ...?
              Return the product of one or more numeric values.

       ::math::random ?value1? ?value2?
              Return a random number.  If no arguments are given,
              the number is a floating point value between 0  and
              1.   If  one  argument  is  given, the number is an
              integer value between 0 and value1.  If  two  argu­
              ments  are  given,  the  number is an integer value
              between value1 and value2.

       ::math::sigma value value ?value? ?value ...?
              Return the population standard deviation of two  or
              more numeric values.

       ::math::stats value value ?value? ?value ...?
              Return  the  mean,  standard deviation, and coeffi­
              cient of variation as percent as a list.

       ::math::sum value ?value ...?
              Return the sum of one or more numeric values.


KEYWORDS

       math statistics


Man(1) output converted with man2html