Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Formulas for Permutation and Combination??

Former Member
0 Likes
1,023

Hi All,

I got a requirement to develop a Simulator for a chemical process.. In which ther will be some inputs given by the user for a process.. the output must be Optimus result or best result...

I need to know.. is ther any standard for using Permutation and Combinations..

Also is ther any feature to develop a simulation process??

Thanks and Regards

Aravindh Mani

Hi All,

I got a requirement to develop a Simulator for a chemical process.. In which ther will be some inputs given by the user for a process.. the output must be Optimus result or best result...

I need to know.. is ther any standard for using Permutation and Combinations..

Also is ther any feature to develop a simulation process??

Thanks and Regards

Aravindh Mani

2 REPLIES 2
Read only

Former Member
0 Likes
679

hi,



_*FORMULA*_
Permutation = nPr = n! / (n-r)! 
Combination = nCr = nPr / r! 
where,
              n, r are non negative integers and r<=n.
              r is the size of each permutation.
              n is the size of the set from which elements are permuted.
              ! is the factorial operator.

Example:
Example:Find the number of permutations and combinations: n=6; r=4.


  Step 1: Find the factorial of 6.
            6! = 6×5×4×3×2×1 = 720

  Step 2: Find the factorial of 6-4.
            (6-4)! = 2! = 2

  Step 3: Divide 720 by 2.
            Permutation = 720/2 = 360

  Step 4: Find the factorial of 4.
            4! = 4×3×2×1 = 24

  Step 5:Divide 360 by 24.
            Combination = 360/24 = 15


The above example will help you to find the Permutation and Combination manually.

hope this helps

Regards

RItesh J

Read only

Former Member
0 Likes
679

Hi Ritesh,

Thanks for your reply.

I m ok with the formulas and all..

I m asking is ther any standard functionality for these formulas..

and my query is like .. these formulas gives u no of possiblities.

But i want to know which is best probability..

Eg:

i m mixing water some amount(say input from user) and some amount of heat(this too from user like 100 degrees..)..

so when the amount changes wat are the results... and ther is a standard like wat will be the boiling point of water..

U got my requirement???

Thanks n Regards

Aravindh Mani