all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Emacs Calc - Npr and NCR functions
@ 2011-07-20  8:47 Daniel Dalton
  2011-07-20 10:54 ` Tassilo Horn
  0 siblings, 1 reply; 6+ messages in thread
From: Daniel Dalton @ 2011-07-20  8:47 UTC (permalink / raw
  To: help-gnu-emacs

Hi, 

Does anyone know how to access the Npr and Ncr functions with Emacs
calc? 

Thanks very much, 
Dan



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Emacs Calc - Npr and NCR functions
  2011-07-20  8:47 Emacs Calc - Npr and NCR functions Daniel Dalton
@ 2011-07-20 10:54 ` Tassilo Horn
  2011-07-20 13:00   ` Peter Dyballa
  0 siblings, 1 reply; 6+ messages in thread
From: Tassilo Horn @ 2011-07-20 10:54 UTC (permalink / raw
  To: help-gnu-emacs

Daniel Dalton <d.dalton@iinet.net.au> writes:

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




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Emacs Calc - Npr and NCR functions
  2011-07-20 10:54 ` Tassilo Horn
@ 2011-07-20 13:00   ` Peter Dyballa
  2011-07-20 14:49     ` Tassilo Horn
  2011-07-20 15:55     ` Alberto Luaces
  0 siblings, 2 replies; 6+ messages in thread
From: Peter Dyballa @ 2011-07-20 13:00 UTC (permalink / raw
  To: Tassilo Horn; +Cc: help-gnu-emacs


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)!...

--
Mit friedvollen Grüßen

  Pete

Well begun is half done.
			– Optimist.
Half done is well begun.
			– Realist.
Half begun is well done.
			– Australian.





^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Emacs Calc - Npr and NCR functions
  2011-07-20 13:00   ` Peter Dyballa
@ 2011-07-20 14:49     ` Tassilo Horn
  2011-07-20 15:55     ` Alberto Luaces
  1 sibling, 0 replies; 6+ messages in thread
From: Tassilo Horn @ 2011-07-20 14:49 UTC (permalink / raw
  To: Peter Dyballa; +Cc: help-gnu-emacs

Peter Dyballa <Peter_Dyballa@Web.DE> writes:

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



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Emacs Calc - Npr and NCR functions
  2011-07-20 13:00   ` Peter Dyballa
  2011-07-20 14:49     ` Tassilo Horn
@ 2011-07-20 15:55     ` Alberto Luaces
  2011-07-21 11:45       ` Daniel Dalton
  1 sibling, 1 reply; 6+ messages in thread
From: Alberto Luaces @ 2011-07-20 15:55 UTC (permalink / raw
  To: help-gnu-emacs

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)!...
>

Try `k c', `H k c' ...

-- 
Alberto




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Emacs Calc - Npr and NCR functions
  2011-07-20 15:55     ` Alberto Luaces
@ 2011-07-21 11:45       ` Daniel Dalton
  0 siblings, 0 replies; 6+ messages in thread
From: Daniel Dalton @ 2011-07-21 11:45 UTC (permalink / raw
  To: help-gnu-emacs

Thank you. 

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)!...
> >
> 
> Try `k c', `H k c' ...



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-07-21 11:45 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-20  8:47 Emacs Calc - Npr and NCR functions Daniel Dalton
2011-07-20 10:54 ` Tassilo Horn
2011-07-20 13:00   ` Peter Dyballa
2011-07-20 14:49     ` Tassilo Horn
2011-07-20 15:55     ` Alberto Luaces
2011-07-21 11:45       ` Daniel Dalton

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.