Search
Code Directory
 ASP
 ASP.NET
 C/C++
 CFML
 CGI/PERL
 Delphi
 Development
 Flash
 HTML
 Java
 JavaScript
 Pascal
 PHP
 Python
 SQL
 Tools
 Visual Basic & VB.NET
 XML
New Code
Vue Injector 3.3
Spectrum Analyzer pro Live 2019
Devart Excel Add-in for HubSpot 2.1
RentALLScript - Airbnb clone 2.2
SuiteCRM Theme Customization 7.11.6
iScripts NetMenus 3.1
iScripts EasyIndex 2.2
iScripts EasySnaps 2.0
Australia MyPost shipping For Magento 2 1.0.0
Australia Post eParcel For Magento 1.1.1
Source Control for SQL Server 2.0
Answers phpSoftPro 3.12
Exlcart 2.0
School College ERP 1.3.2
White-label Grocery Delivery App Solution 2.0
Top Code
iScripts EasySnaps 1
iScripts EasyIndex 1
iScripts NetMenus 2.0
ATN Site Builder 3.0
IcrediBB Bulletin Board System 1.0
Azizi search engine script PHP 4.1.10
Simple Comments Script 0.930
Vue Injector 3.3
Guestbook PHP Script 1.1
DBForms from MSAccess to PHP+PostgreSQL 1.0.0
Devart Excel Add-in for HubSpot 2.1
White-label Grocery Delivery App Solution 2.0
EV Widget Post 0.3
Stepping stone algorithum for solving the transhipment problem
GuestBook PHP 2 Script 1.10
Top Rated
phpEnter 5.1.
Quick Maps For Dynamics CRM 3.1
Single Leg MLM 1.2.1
Azizi search engine script PHP 4.1.10
Paste phpSoftPro 1.4.1
Extreme Injector 3.7
Deals and Discounts Website Script 1.0.2
Solid File System OS edition 5.1
Classified Ad Lister 1.0
Aglowsoft SQL Query Tools 8.2
Invoice Manager by PHPJabbers 3.0
ICPennyBid Penny Auction Script 4.0
PHP Review Script 1.0
ATN Resume Finder 2.0
ATN Site Builder 3.0
Coin Combinations 1.0
File ID: 80095






Coin Combinations 1.0
Download Coin Combinations 1.0http://www.mathworks.comReport Error Link
License: Freeware
File Size: 10.0 KB
Downloads: 5
Submit Rating:
Coin Combinations 1.0 Description
Description: For small number of coins, and a listing of all combinations, a better program to use is John's program "Partitions of an Integer" (see discussion below)

If you have a huge set of coins, and just want the number of combinations; this might be a good program as it doesn't list the combinations and just gives the final number.

EXAMPLES
Number of ways to make change for a dollar
coins=[1 5 10 25 50 100];
amount=100;
CoinComb(coins, amount)
293

Number of ways to make change for $10 and $20 using only
quarters, $1 bill, and $2 bill
coins=[25 100 200];
amount=[1000 2000];
CoinComb(coins, amount)
[36 121]

Number of ways to sum to 20 using a collection of ten 1's, twenty 2's, and ten 3's:
coins=[ones(1,10) 2*ones(1,20) 3*ones(1,10)];
amount=20;
CoinComb(coins,amount)
46,647,269,031

License: Freeware

Related: 2039s and, amount coincombcoins, amount coincombcoinsamount, scoins dones, amount number, combinations, coincombcoins amount, 20 using, Number, twenty, 10 and, amount, amount coincombcoins amount number, integerquot

O/S:BSD, Linux, Solaris, Mac OS X

File Size: 10.0 KB

Downloads: 5



More Similar Code

Coin Slider 4 WP is Wordpress plugin for creating image gallery with unique transition effects of featured posts. You can choose between three types of transition effects: random, swirl and rain. Also, you can set width, height, delay time, number of posts etc.



This script provides you a quick way to flip a coin - in other words, to randomly choose between 2 options. The script is made in PHP and can be easily customized.

It provides compatibility with all operating systems having support for...



Allows you to host a free 'coin tossing' contest where players guess the outcome of the computer's random coin tosses. You award the player(s) with the highest weekly score with your choice of prize(s). This script was designed to encourage repeat...



This will give a result that is more than a permutation, but all possible combinations. An example is when input is 'abc', the output would be:
a,ab,abc,ac,acb,b,ba,bac,bc,bca,c,ca,cab,cb,cba



This recipe is yet another combination generator, with an extra twist: the generated combinations can be yielded in blocks of a given size. This comes useful (or necessary) when processing arbitrarily long or infinite iterables in bounded-size...



The function combine takes multiple sequences and creates a list in which each item is constructed from items from each input sequence, and all possible combinations are created. If that description is confusing, look at the example in the...



Permutations and combinations are often required in algorithms that do a complete search of the solution space. They are typically rather large so it's best not to compute them entirely but better to lazily generate them.
This recipe uses...



The combination function seems to be missing from MATLAB so this rendition fills the gap.

MYCOMBNK returns combinatorial of n choose k i.e all unique combinations of n elements taken k at a time.

EX: >> mycombnk(6,2)



Compute the estimated average number of coin tosses (or dice throws) to get a given sequence of Heads-and-Tails (or a sequence of intergers ranging from 1 to 6)

The inputs are:
- The Sequence (row vector)
- The Number of...



This function evaluates all possible combinations of N elements
taken by sets of S. Tested under MATLAB 4.2b and 5.2.

User Review for Coin Combinations
- required fields
     

Please enter text on the image