Board index » delphi » could someone help me? (mostly math problem)
Eli{*word*106}ins
Delphi Developer 
Sun, 14 Mar 1999 03:00:00 GMT

Eli{*word*106}ins
Delphi Developer 
Sun, 14 Mar 1999 03:00:00 GMT
could someone help me? (mostly math problem)I'm trying to write a D2 app and need it to list every combination of a A formula that could do strings as well as integers would be nice, but not example: i don't care what order the letters are in as long as i get all of them I know there must be a formula for this, but i can't seem to figure it out. BTW there should be 120 different combonations of 4 letters (4! = 120). Eli{*word*106}inson 
Frank Mikals
Delphi Developer 
Sun, 14 Mar 1999 03:00:00 GMT
Re:could someone help me? (mostly math problem)Quoteel...@nyc.pipeline.com(Eli{*word*106}inson) wrote: with your math: 4! = 24 not 120. This will probably help in the debuging process ;) Best regards, 
Mark Vaugh
Delphi Developer 
Sun, 14 Mar 1999 03:00:00 GMT
Re:could someone help me? (mostly math problem)In article <52a2p4$...@news1.t1.usa.pipeline.com>, check with SimTel or Garbo, and download the latest update if you want a thoroughly documented solution, check Chapter 6, Mark Vaughan 
CFC
Delphi Developer 
Sun, 14 Mar 1999 03:00:00 GMT
Re:could someone help me? (mostly math problem)QuoteFrank Mikalsen wrote: Where did you learn about factorials? 4 * 1 = 4 Lawrence C. Thurman Jr. 
David Ullric
Delphi Developer 
Sun, 14 Mar 1999 03:00:00 GMT
Re:could someone help me? (mostly math problem)QuoteEli{*word*106}inson wrote: A followed by all possible permutations of BCD, B followed by all possible permutations of ACD, C followed by all possible permutations of ABD, D followed by all possible permutations of ABC. Seems like some sort of recursive gizmo is called for  the exact  ?his ?s ?avid ?llrich's ?ig ?ile 
Steven C. Neuman
Delphi Developer 
Sun, 14 Mar 1999 03:00:00 GMT
Re:could someone help me? (mostly math problem)CFC <cfis...@mail.idt.net> wrote in article <3249722A.4...@mail.idt.net>... Quote>Frank said (essentially): x! = x * (x1) * (x2) * ... * 1 ergo, 4! = 4 * 3 * 2 * 1 = 24 Verify with the Calculator that comes with Windows if you don't believe me! Where did *you* learn about factorials? ;)  
Eli{*word*106}ins
Delphi Developer 
Sun, 14 Mar 1999 03:00:00 GMT
Re:could someone help me? (mostly math problem)On Sep 25, 1996 15:11:18 in article <Re: could someone help me? (mostly Quote>>> 4! = 24 my mistake :)  Eli{*word*106}inson 
Al Ha
Delphi Developer 
Sun, 14 Mar 1999 03:00:00 GMT
Re:could someone help me? (mostly math problem)Quoteel...@nyc.pipeline.com(Eli{*word*106}inson) wrote: Sorry, but 4! = 24. I didn't give this much thought. There is probably a Here is one possible way: Good Luck, 
cih
Delphi Developer 
Sun, 14 Mar 1999 03:00:00 GMT
Re:could someone help me? (mostly math problem). QuoteCFC wrote: > Frank Mikalsen wrote: > > > > el...@nyc.pipeline.com(Eli{*word*106}inson) wrote: > > > > >BTW there should be 120 different combonations of 4 letters (4! = 120). > > > > Sorry, I have no algorithm for you, but perhaps a little help > > with your math: 4! = 24 not 120. > > > > This will probably help in the debuging process ;) > > > > Best regards, > > Frank > >  > > // Frank Mikalsen, System Developer, Finale a.s > > // Homepage: http://home.sol.no/frankm > > // Author of ShareWare: Silent Partner Backup Screensaver v2.60 > > // Download: http://www.winsite.com/pc/win3/desktop/spbck260.zip > Quote> Frank, school than you did. A factorial is the product of numbers from 1 to n. So 4! = 24 and 5! =  
Alain Toutan
Delphi Developer 
Mon, 15 Mar 1999 03:00:00 GMT
Re:could someone help me? (mostly math problem)QuoteAl Hall wrote: Here is a little Pascal function I made up that will return the Nth Function Shuffle(S:String; N:Longint):String To use the function call it several times with your original string and Here is an example calling loop: S0:='ABCDE'; {S0 and S1 are strings. SO is the original} Hope this helps... BTW feel free to submit more little problems like this. Alain Toutant. 
Alain Toutan
Delphi Developer 
Mon, 15 Mar 1999 03:00:00 GMT
Re:could someone help me? (mostly math problem)Hello, Here is a little Pascal function I made up that will return the Nth Function Shuffle(S:String; N:Longint):String To use the function call it several times with your original string and Here is an example calling loop: S0:='ABCDE'; {S0 and S1 are strings. SO is the original} Hope this helps... BTW feel free to submit more little problems like this. Alain Toutant. 
Alain Toutan
Delphi Developer 
Mon, 15 Mar 1999 03:00:00 GMT
Re:could someone help me? (mostly math problem)QuoteAl Hall wrote: Here is a little Pascal function I made up that will return the Nth Function Shuffle(S:String; N:Longint):String To use the function call it several times with your original string and Here is an example calling loop: S0:='ABCDE'; {S0 and S1 are strings. SO is the original} Hope this helps... BTW feel free to submit more little problems like this. Alain Toutant. 
Alain Toutan
Delphi Developer 
Mon, 15 Mar 1999 03:00:00 GMT
Re:could someone help me? (mostly math problem)QuoteAl Hall wrote: Here is a little Pascal function I made up that will return the Nth Function Shuffle(S:String; N:Longint):String To use the function call it several times with your original string and Here is an example calling loop: S0:='ABCDE'; {S0 and S1 are strings. SO is the original} Hope this helps... BTW feel free to submit more little problems like this. Alain Toutant. 
Will
Delphi Developer 
Mon, 15 Mar 1999 03:00:00 GMT
Re:could someone help me? (mostly math problem)Here's something I found in PC Magazine's Tutbo Pascal 6.0 Techniques and type function Factorial( B : byte ) : extended; procedure XChg( var A, B : char ) function PermOf( Org : PermString; L : longint ) : PermString; Nump := round( Factorial( length( Org ))); dec( L ); To use: var N : longint; Eli{*word*106}inson <el...@nyc.pipeline.com> wrote in article Quote> I'm trying to write a D2 app and need it to list every combination of a 
Frank Mikals
Delphi Developer 
Mon, 15 Mar 1999 03:00:00 GMT
Re:could someone help me? (mostly math problem)QuoteCFC <cfis...@mail.idt.net> wrote: Go ahead and find 120 different permutations of ABCD, and Best regards, 
2. N: Math routines/Math CDROMs/Math sites for Delphi (2.0)
3. MATH GURU's  I need some help with an AVERAGE problem
4. MATH GURU's  I need some help with an AVERAGE problem
5. can someone help me with my delphi problems???
6. problem drawing and bitmaps, can someone help me?
7. Could someone spare a few moments to help solve problem with string sorting