Mathematica 9 is now available
Student Support Forum
Student Support Forum: 'Using "Permutations" in a Do loop.....' topicStudent Support Forum > General > Archives > "Using "Permutations" in a Do loop....."

Next Comment >Help | Reply To Topic
Author Comment/Response
Felipe S. Salinas
05/15/01 09:45am


I'm trying to calculate evergy levels in a laser system. In order to get a good fit for these levels, I have to arrange the known energies which we have measured in such a way that there is a minimum deviation between my measurements.

To obtain all of the combinations possible, I used the ''Permutations'' command. Here my problem:

In order to see if the combination of numbers I have used has a low standard deviation, I need to each particular value obtained from the ''Permutations'' command into a series of ''If'' statements. Thus, when my desired std. dev. occurs, I will know the exact combination of numbers that its at.

Is there a way to call out each value obtained through the ''Permutations'' command sequentially (possibly in a ''Do'' loop), so that I could see which combinations work and which ones do not?

Any help would be greatly appreciated and duly noted. Thanks!


URL: ,

Subject (listing for 'Using "Permutations" in a Do loop.....')
Author Date Posted
Using "Permutations" in a Do loop..... Felipe S. Sa... 05/15/01 09:45am
Re: Using Forum Modera... 05/15/01 11:39am
Next Comment >Help | Reply To Topic