math - Tcl Math Library
The math package provides utility math functions.
Besides a set of basic commands, available via the package math, there are more specialised packages:
math::bigfloat - Arbitrary-precision floating-point arithmetic
math::bignum - Arbitrary-precision integer arithmetic
math::calculus::romberg - Robust integration methods for functions of one variable, using Romberg integration
math::calculus - Integration of functions, solving ordinary differential equations
math::combinatorics - Procedures for various combinatorial functions (for instance the Gamma function and "k out of n")
math::complexnumbers - Complex number arithmetic
math::constants - A set of well-known mathematical constants, such as Pi, E, and the golden ratio
math::fourier - Discrete Fourier transforms
math::fuzzy - Fuzzy comparisons of floating-point numbers
math::geometry - 2D geometrical computations
math::interpolate - Various interpolation methods
math::linearalgebra - Linear algebra package
math::optimize - Optimization methods
math::polynomials - Polynomial arithmetic (includes families of classical polynomials)
math::rationalfunctions - Arithmetic of rational functions
math::roman - Manipulation (including arithmetic) of Roman numerals
math::special - Approximations of special functions from mathematical physics
math::statistics - Statistical operations and tests
Return the coefficient of variation expressed as percent of two or more numeric values.
Return the area under a "curve" defined by a set of x,y pairs and the error bound as a list.
Return the n'th Fibonacci number.
Return the maximum of one or more numeric values.
Return the mean, or "average" of one or more numeric values.
Return the minimum of one or more numeric values.
Return the product of one or more numeric values.
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 arguments are given, the number is an integer value between value1 and value2.
Return the population standard deviation of two or more numeric values.
Return the mean, standard deviation, and coefficient of variation (as percent) as a list.
Return the sum of one or more numeric values.
This document, and the package it describes, will undoubtedly contain bugs and other problems. Please report such in the category math of the Tcllib Trackers. Please also report any ideas for enhancements you may have for either package and/or documentation.