help-gsl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-gsl] changing combination/demo.c


From: Jorge Barros de Abreu
Subject: Re: [Help-gsl] changing combination/demo.c
Date: Mon, 17 Dec 2012 00:50:20 +0000
User-agent: Mutt/1.5.21 (2010-09-15)

On Mon, Dec 17, 2012 at 12:46:13AM +0000, Jorge Barros de Abreu wrote:
>
> I'm not sure I understand.
>
> Are you looking to use your own labels for the elements?  For example,
> instead of 0, 1, 2, 3, 4, 5, 6 you want to use a, b, c, d, e, f, g?
> Or are you looking to reformat the output in some other way?  Either
> way, could you give a more complete sample output that you would like
> to achieve?
>
> - Rhys

Instead of 0, 1, 2, 3, 4, 5, 6 may be red, green, blue, yellow, black, white.

Instead of 0, 1, 2, 3, 4, 5, 6 may be 0, 1, 33, 57, 100, 104.

Replacing 0, 1, 2, 3, 4, 5, 6 by a general list of anything.

But. . .

Reformat the output is the first solution (using sed or C code).

I search on the internet and find only (in C language) the numerical
value of binomial(n,p)=(n!)/((n-p)!p!).
Not generating the list of elements.

The gold is generating a combination list of anythig.
Not only combination but also permutation, etc.
-- 
Data Estelar 2456278,658727
http://sites.google.com/site/ficmatinf
Desejo-lhe Paz, Vida Longa e Prosperidade.
São Bem Vindas Mensagens no Formato texto UTF-8 com Acentos.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]