Does anyone know how to access the Npr and Ncr functions with Emacs
calc?
Thanks very much,
Dan
Hi Daniel,
> Does anyone know how to access the Npr and Ncr functions with Emacs
> calc?
What are those functions?
Anyway, there are quite a few functions bound to prefix keys. For
example, to list all functions bound to the prefix key `k' (those are
combinatorial functions) by typing
k C-h
in the *Calculator* buffer.
HTH,
Tassilo
>> Does anyone know how to access the Npr and Ncr functions with Emacs
>> calc?
>
> What are those functions?
Combinatorics, Binomial coefficients, permutations, combinations. Some desk or pocket calculators provide such functions.
I think nPr is n!/(n-k)! and nCr is n!/k!(n-k)!...
--
Mit friedvollen Grüßen
Pete
Well begun is half done.
– Optimist.
Half done is well begun.
– Realist.
Half begun is well done.
– Australian.
> Am 20.07.2011 um 12:54 schrieb Tassilo Horn:
>
>>> Does anyone know how to access the Npr and Ncr functions with Emacs
>>> calc?
>>
>> What are those functions?
>
> Combinatorics, Binomial coefficients, permutations, combinations. Some
> desk or pocket calculators provide such functions.
>
> I think nPr is n!/(n-k)! and nCr is n!/k!(n-k)!...
>
Try `k c', `H k c' ...
--
Alberto
Hi Peter,
>>> Does anyone know how to access the Npr and Ncr functions with Emacs
>>> calc?
>>
>> What are those functions?
>
> Combinatorics, Binomial coefficients, permutations, combinations. Some
> desk or pocket calculators provide such functions.
>
> I think nPr is n!/(n-k)! and nCr is n!/k!(n-k)!...
Ok, so the functions and keys are:
,----[ (info "(calc)Combinatorial Functions") ]
| The `k c' (`calc-choose') [`choose'] command computes the binomial
| coefficient `N'-choose-`M', where `M' is the number on the top of the
| stack and `N' is second-to-top. If both arguments are integers, the
| result is an exact integer. Otherwise, the result is a floating-point
| approximation. The binomial coefficient is defined for all real
| numbers by `N! / M! (N-M)!'.
`----
,----[ (info "(calc)Combinatorial Functions") ]
| The `H k c' (`calc-perm') [`perm'] command computes the
| number-of-permutations function `N! / (N-M)!'.
`----
Bye,
Tassilo
Is it possible to use these from quick calc? (c-x * q)
Thanks very much.
Dan
On Wed, Jul 20, 2011 at 05:55:57PM +0200, Alberto Luaces wrote:
> Peter Dyballa writes:
>
> > Am 20.07.2011 um 12:54 schrieb Tassilo Horn:
> >
> >>> Does anyone know how to access the Npr and Ncr functions with Emacs
> >>> calc?
> >>
> >> What are those functions?
> >
> > Combinatorics, Binomial coefficients, permutations, combinations. Some
> > desk or pocket calculators provide such functions.
> >
> > I think nPr is n!/(n-k)! and nCr is n!/k!(n-k)!...
> >
>