No BSD License
-
[equations,answers]=numbersga...
function [equations,answers]=numbersgame(target,numbers,[maxerror],[allowfractions])
-
[equations,answers]=numbersga...
function [equations,answers]=numbersgame(target,numbers,[maxerror],[allowfractions])
-
matches=lettersgame(letters,n...
function matches=lettersgame(letters,[nletters])
-
View all files
Countdown Tools
by Murphy O'Brien
19 Apr 2005
(Updated 26 Apr 2005)
Tools to find all the solutions to the countdown letters and numbers games.
|
Watch this File
|
| File Information |
| Description |
Tools to find all the solutions to the countdown letters and numbers games.
The letters game includes a large public domain dictionary from the Moby project.
See http://www.dcs.shef.ac.uk/research/ilash/Moby/
Here is an example of the use of each.
lettersgame('plainersz')
Found 139 x 4 letters
Found 146 x 5 letters
Found 62 x 6 letters
Found 14 x 7 letters
plainer
praline
alpines
spaniel
splenia
aliners
nailers
renails
paniers
rapines
planers
replans
panzers
pilsner
Found 1 x 8 letters
pralines
Found 0 x 9 letters
ans =
[] [] [] [139x4 char] [146x5 char] [62x6 char] [14x7 char] 'pralines' ''
>> [e,a]=numbersgame(929,[3 7 75 8 6 1])
e =
'(((7+3)x8+75)x6-1)'
'(((75-3)x(7+6)+1)-8)'
'(((75-3)x(7+6)-8)+1)'
'((75-3)x((8+6)-1)-7)'
'((75-3)x((8-1)+6)-7)'
'((75-3)x(7+6)-(8-1))'
'((75-3)x(8+(6-1))-7)'
a =
929 |
| MATLAB release |
MATLAB 7 (R14)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Updates |
| 25 Apr 2005 |
Faster letters game (Still want to have a faster numbers game though). |
| 26 Apr 2005 |
Now uses a text file instead of m file as the dictionary for portability. |
|
Contact us at files@mathworks.com