Math Is Fun Forum

  Discussion about math, puzzles, games and fun.   Useful symbols: ÷ × ½ √ ∞ ≠ ≤ ≥ ≈ ⇒ ± ∈ Δ θ ∴ ∑ ∫ • π ƒ -¹ ² ³ °

You are not logged in.

#76 2013-04-14 10:19:45

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: The new dice pdf is out!

What part of the question? a, b?


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#77 2013-04-14 10:20:53

anonimnystefy
Real Member
From: Harlan's World
Registered: 2011-05-23
Posts: 16,049

Re: The new dice pdf is out!

a, for starters.


“Here lies the reader who will never open this book. He is forever dead.
“Taking a new step, uttering a new word, is what people fear most.” ― Fyodor Dostoyevsky, Crime and Punishment
The knowledge of some things as a function of age is a delta function.

Offline

#78 2013-04-14 10:26:22

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: The new dice pdf is out!

Know how to simulate or enumerate it?


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#79 2013-04-14 10:30:31

anonimnystefy
Real Member
From: Harlan's World
Registered: 2011-05-23
Posts: 16,049

Re: The new dice pdf is out!

I would try a simulation, but I'm on my phone. I do not have access to a CAS.


“Here lies the reader who will never open this book. He is forever dead.
“Taking a new step, uttering a new word, is what people fear most.” ― Fyodor Dostoyevsky, Crime and Punishment
The knowledge of some things as a function of age is a delta function.

Offline

#80 2013-04-14 10:34:45

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: The new dice pdf is out!

What do you want me to do then?


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#81 2013-04-14 10:40:49

anonimnystefy
Real Member
From: Harlan's World
Registered: 2011-05-23
Posts: 16,049

Re: The new dice pdf is out!

I was just asking if you've seen it and if you have any ideas for it...


“Here lies the reader who will never open this book. He is forever dead.
“Taking a new step, uttering a new word, is what people fear most.” ― Fyodor Dostoyevsky, Crime and Punishment
The knowledge of some things as a function of age is a delta function.

Offline

#82 2013-04-14 10:43:20

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: The new dice pdf is out!

I have not looked at it but first I would run a simulation. As soon as I write it of course.


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#83 2013-04-14 10:56:30

anonimnystefy
Real Member
From: Harlan's World
Registered: 2011-05-23
Posts: 16,049

Re: The new dice pdf is out!

Hm, what name did he use for you in that pdf?


“Here lies the reader who will never open this book. He is forever dead.
“Taking a new step, uttering a new word, is what people fear most.” ― Fyodor Dostoyevsky, Crime and Punishment
The knowledge of some things as a function of age is a delta function.

Offline

#84 2013-04-14 10:58:25

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: The new dice pdf is out!

That is the name he took from the email I sent him!


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#85 2013-04-14 11:02:34

anonimnystefy
Real Member
From: Harlan's World
Registered: 2011-05-23
Posts: 16,049

Re: The new dice pdf is out!

How many email accounts do you have?


“Here lies the reader who will never open this book. He is forever dead.
“Taking a new step, uttering a new word, is what people fear most.” ― Fyodor Dostoyevsky, Crime and Punishment
The knowledge of some things as a function of age is a delta function.

Offline

#86 2013-04-14 11:10:12

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: The new dice pdf is out!

2 for everyday use. 1 for sites that I do not trust.


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#87 2013-04-14 11:24:54

anonimnystefy
Real Member
From: Harlan's World
Registered: 2011-05-23
Posts: 16,049

Re: The new dice pdf is out!

Which one do you email me from? The last one?


“Here lies the reader who will never open this book. He is forever dead.
“Taking a new step, uttering a new word, is what people fear most.” ― Fyodor Dostoyevsky, Crime and Punishment
The knowledge of some things as a function of age is a delta function.

Offline

#88 2013-04-14 11:29:29

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: The new dice pdf is out!

One of them has no storage capability so I have clean out the spam frequently. I use the Lycos for you.

Simulation checks out his answer.


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#89 2013-04-17 08:21:09

anonimnystefy
Real Member
From: Harlan's World
Registered: 2011-05-23
Posts: 16,049

Re: The new dice pdf is out!

bobbym wrote:

Know how to simulate or enumerate it?

How do I simulate it?


“Here lies the reader who will never open this book. He is forever dead.
“Taking a new step, uttering a new word, is what people fear most.” ― Fyodor Dostoyevsky, Crime and Punishment
The knowledge of some things as a function of age is a delta function.

Offline

#90 2013-04-17 12:54:28

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: The new dice pdf is out!

That quote was written over a thousand years ago, please refresh my memory.


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#91 2013-04-17 21:45:10

anonimnystefy
Real Member
From: Harlan's World
Registered: 2011-05-23
Posts: 16,049

Re: The new dice pdf is out!

Drop dead, the game from the dice PDF. How do I simulate it?


“Here lies the reader who will never open this book. He is forever dead.
“Taking a new step, uttering a new word, is what people fear most.” ― Fyodor Dostoyevsky, Crime and Punishment
The knowledge of some things as a function of age is a delta function.

Offline

#92 2013-04-18 01:58:14

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: The new dice pdf is out!

s=0;

fubar[L_]:=Module[{s=0,ans=L},
While[ans!={},
ans = RandomChoice[{1,2,3,4,5,6},Length[ans]];
If[Count[ans,2|5]==0,s+=Total[ans],ans=DeleteCases[ans,2|5]];
];
s]

Table[fubar[ RandomChoice[{1,2,3,4,5,6},5]],{100000}]//Mean//N

16.08264

All indentations for readability taken out.

This is a really poor effort and you should avoid programming in this manner.


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#93 2013-04-28 03:54:11

gAr
Member
Registered: 2011-01-09
Posts: 3,482

Re: The new dice pdf is out!

Hi,

Using the technique from http://mathisfunforum.com/viewtopic.php … 63#p265663, we can utilize a table instead, since recursion in this case is prohibitive.

k = 3 # a face appears k times 
n = 10
throws = [[[[[[0]*n for _ in xrange(n)] for _ in xrange(n)] for _ in xrange(n)] for _ in xrange(n)] for _ in xrange(n)]  # a 6-dimensional list
for a in range(k+1):
    for b in range(k+1):
        for c in range(k+1):
            for d in range(k+1):
                for e in range(k+1):
                    for f in range(k+1):
                        if (a == 0 or b == 0 or c == 0 or d == 0 or e == 0 or f == 0):
                            throws[a][b][c][d][e][f] =  6*k - (a+b+c+d+e+f)
                        else:
                            throws[a][b][c][d][e][f] = float(throws[a-1][b][c][d][e][f]+throws[a][b-1][c][d][e][f]+throws[a][b][c-1][d][e][f]+throws[a][b][c][d-1][e][f]+throws[a][b][c][d][e-1][f]+throws[a][b][c][d][e][f-1])/6
    
print throws[k][k][k][k][k][k]

Perhaps we can solve more problems involving trees this way.


"Believe nothing, no matter where you read it, or who said it, no matter if I have said it, unless it agrees with your own reason and your own common sense"  - Buddha?

"Data! Data! Data!" he cried impatiently. "I can't make bricks without clay."

Offline

Board footer

Powered by FluxBB