cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X

Combinations without repetition!

jkowalski
1-Newbie

Combinations without repetition!

I am trying to write a program but it did not work out. Actually, I do not know the programming in Mathcad. Black magic for me.

I want to have the program written in Mathcad because I would have to export a file from the Internet websites and later imported into Mathcad. Too much of this work.

Example of what I want to get on this page:http://www.mathsisfun.com/combinatorics/combinations-permutations-calculator.html


Please see the attached file for more info. Thanks! JK

1 ACCEPTED SOLUTION

Accepted Solutions

Something like the attached?

Still playing lotto?

View solution in original post

5 REPLIES 5

Do you mean something like the attached?

Alan

I'm sorry but this is not the solution to my problem....

see a *.gif file.

I have a vector(array) of numbers:


Vec:=[5,8,17,33,80]


and I would like to enumerate all the combinations of a subset of three of element.

The result is:

5,8,17

5,8,33

5,8,80

........

........

17,33,80


Total to be 10.

============================================================


Of course, I also want the program to solve various possibilities depending on the vector(array).

An example:

Vec:=[20,31,41,45,65,78,80] to subset of 4 of element.

result is:


20,31,41,45

20,31,41,65

20,31,41,78

................

................

45,65,78,80

Combin(7,4)=35 possibilities

Something like the attached?

Still playing lotto?

This worked perfectly well. 🙂

I play lotto purely theoretical.

Thanks again. for your time(a lot of time) and help

I play lotto purely theoretical.

Sure the best way to save money anyway 😉

Top Tags