perm(N, k, exact=False)
It's also known as "partial permutations".
Array arguments accepted only for exact=False case.
If k > N, N < 0, or k < 0, then a 0 is returned.
Number of things.
Number of elements taken.
If :None:None:`exact`
is False, then floating point precision is used, otherwise exact long integer is computed.
The number of k-permutations of N.
Permutations of N things taken k at a time, i.e., k-permutations of N.
>>> from scipy.special import perm
... k = np.array([3, 4])
... n = np.array([10, 10])
... perm(n, k) array([ 720., 5040.])
>>> perm(10, 3, exact=True) 720See :
The following pages refer to to this document either explicitly or contain code examples using this.
scipy.special._basic.perm
Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.
Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)
SVG is more flexible but power hungry; and does not scale well to 50 + nodes.
All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them