Unix and Linux Discussions Tagged with amp |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
1 |
10,006 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
3,744 |
UNIX for Beginners Questions & Answers |
|
|
|
6 |
3,717 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
10,853 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
2,901 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
2,933 |
UNIX for Beginners Questions & Answers |
|
|
|
8 |
41,347 |
Solaris |
|
|
|
5 |
2,810 |
UNIX for Beginners Questions & Answers |
|
|
|
0 |
1,246 |
What is on Your Mind? |
|
|
|
33 |
34,661 |
Solaris |
|
|
|
2 |
3,645 |
Solaris |
|
|
|
2 |
3,542 |
IP Networking |
|
|
|
2 |
3,109 |
AIX |
|
|
|
0 |
1,881 |
Software Releases - RSS News |
|
|
|
2 |
7,530 |
Solaris |
|
|
|
2 |
2,160 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
3,028 |
Programming |
|
|
|
0 |
2,344 |
OS X Support RSS |
|
|
|
1 |
29,293 |
Shell Programming and Scripting |
|
|
|
0 |
1,975 |
Solaris BigAdmin RSS |
|
|
|
7 |
12,313 |
Ubuntu |
|
|
|
0 |
1,335 |
Complex Event Processing RSS News |
|
|
|
0 |
1,880 |
Cartoons for Geeks |
|
|
|
0 |
1,268 |
Software Releases - RSS News |
|
|
|
6 |
4,728 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
1,485 |
UNIX for Dummies Questions & Answers |
|
|
|
0 |
2,427 |
Cartoons for Geeks |
|
|
|
0 |
1,756 |
Complex Event Processing RSS News |
|
|
|
0 |
2,376 |
Cartoons for Geeks |
|
|
|
0 |
3,082 |
HP Server News and Podcasts RSS |
|
|
|
0 |
1,669 |
MySQL DevZone RSS |
|
|
|
5 |
6,425 |
UNIX for Advanced & Expert Users |
|
|
|
0 |
1,695 |
Complex Event Processing RSS News |
|
|
|
3 |
5,795 |
UNIX and Linux Applications |
|
|
|
6 |
10,000 |
Solaris |
|
|
|
0 |
2,301 |
Cartoons for Geeks |
|
|
|
0 |
1,785 |
Cartoons for Geeks |
|
|
|
2 |
5,061 |
OS X (Apple) |
|
|
|
3 |
2,207 |
Shell Programming and Scripting |
|
|
|
0 |
1,042 |
Software Releases - RSS News |
combinatorics(n) Tcl Math Library combinatorics(n)
NAME
combinatorics - Combinatorial functions in the Tcl Math Library
SYNOPSIS
package require Tcl 8.2
package require math ?1.2?
::math::ln_Gamma z
::math::factorial x
::math::choose n k
::math::Beta z w
DESCRIPTION
The math package contains implementations of several functions useful in combinatorial problems.
COMMANDS
::math::ln_Gamma z
Returns the natural logarithm of the Gamma function for the argument z.
The Gamma function is defined as the improper integral from zero to positive infinity of
t**(x-1)*exp(-t) dt
The approximation used in the Tcl Math Library is from Lanczos, ISIAM J. Numerical Analysis, series B, volume 1, p. 86. For "x >
1", the absolute error of the result is claimed to be smaller than 5.5*10**-10 -- that is, the resulting value of Gamma when
exp( ln_Gamma( x) )
is computed is expected to be precise to better than nine significant figures.
::math::factorial x
Returns the factorial of the argument x.
For integer x, 0 <= x <= 12, an exact integer result is returned.
For integer x, 13 <= x <= 21, an exact floating-point result is returned on machines with IEEE floating point.
For integer x, 22 <= x <= 170, the result is exact to 1 ULP.
For real x, x >= 0, the result is approximated by computing Gamma(x+1) using the ::math::ln_Gamma function, and the result is
expected to be precise to better than nine significant figures.
It is an error to present x <= -1 or x > 170, or a value of x that is not numeric.
::math::choose n k
Returns the binomial coefficient C(n, k)
C(n,k) = n! / k! (n-k)!
If both parameters are integers and the result fits in 32 bits, the result is rounded to an integer.
Integer results are exact up to at least n = 34. Floating point results are precise to better than nine significant figures.
::math::Beta z w
Returns the Beta function of the parameters z and w.
Beta(z,w) = Beta(w,z) = Gamma(z) * Gamma(w) / Gamma(z+w)
Results are returned as a floating point number precise to better than nine significant digits provided that w and z are both at
least 1.
math 4.2 combinatorics(n)