VBForums - Maths Forum
http://www.vbforums.com/
By popular request, a place for you to discuss Maths of all forms. Somewhere to think about algorithms and the applications of maths to programming too.enMon, 22 Dec 2014 18:41:06 GMTvBulletin60http://www.vbforums.com/images/misc/rss.pngVBForums - Maths Forum
http://www.vbforums.com/
<![CDATA[[RESOLVED] Average from percentage?]]>
http://www.vbforums.com/showthread.php?783997-RESOLVED-Average-from-percentage&goto=newpost
Mon, 22 Dec 2014 18:02:54 GMTI'm feeling dumb right now.
I have a loop, and each iteration there's an effect that shows up N% of the time. If it fails to show up a total of M times, the effect goes away (is no longer checked for). I'm looking for the average number of times the effect will actually show up before the effect goes away. Obviously if N is 100 or more, the answer is infinity, but if it helps N is not allowed to be more than 99 or less than 0 (at 0, the answer is also 0).
]]>Maths ForumOddGamerhttp://www.vbforums.com/showthread.php?783997-RESOLVED-Average-from-percentageMaximum Yards Returned
http://www.vbforums.com/showthread.php?783593-Maximum-Yards-Returned&goto=newpost
Wed, 17 Dec 2014 15:49:38 GMTI'm creating a football(American) game and I need some help with returning the amount of yards returned from a method based on different properties. For example, there are 2 key properties for a kicker when it comes to yards kicked:

Power

KickingPower

KickingPower's property maximum is 100 and determines the maximum amount of yards that can possibly be return. The Power property is the percentage used of it's KickingPower.

Now the NFL's record for field goal made is 64 yards. Therefore if the KickingPower's value is 100 and the Power property is 100 then the value returned would be 64. However, what expression can I use to return the amount of yards no matter what the KickingPower and Power values are?

Edit: To throw a curve ball in this whole thing, if the KickingPower's value is 0 and the Power property is anything then the value returned would need to be 5.

Edit #2: I found that I could make a visual representation of what I want:

]]>Maths Forumdday9http://www.vbforums.com/showthread.php?783593-Maximum-Yards-ReturnedThree guys rent a room for $30
http://www.vbforums.com/showthread.php?782381-Three-guys-rent-a-room-for-30&goto=newpost
Tue, 02 Dec 2014 16:37:27 GMTThree guys rent a room for $30
They walk to their room
The Hotel manager realized a mistake was made
Informs the bell hop to return $5 to the three guys
While walking to the room, the bell hop, thinks, how will they split $5
I'll keep $2, they will never know
Gives them the $3
This means, each guys paid $9 each times 3 equal $27
Plus the $2 the bell hop kept..9 x 3 + 2 = 29
Where is the other dollar ?
]]>Maths Forumsessi4mlhttp://www.vbforums.com/showthread.php?782381-Three-guys-rent-a-room-for-30<![CDATA[[RESOLVED] Permutations on 6 decks of cards.]]>
http://www.vbforums.com/showthread.php?782023-RESOLVED-Permutations-on-6-decks-of-cards&goto=newpost
Fri, 28 Nov 2014 08:17:35 GMTThe number of ways a single deck of cards can be arranged is easy. 52!. Or 8x10^67. But how would I get the number for six decks together? It won't be 310! as it doesn't matter which of the six versions of each card is in a particular spot.

Also, if you happen to have the answer as well as the method that would be awesome.
]]>Maths ForumOddGamerhttp://www.vbforums.com/showthread.php?782023-RESOLVED-Permutations-on-6-decks-of-cards