<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://stockhub.co/index.php?action=history&amp;feed=atom&amp;title=Module%3ASandbox%2FTheTruthCreator%2FBankruptcy</id>
	<title>Module:Sandbox/TheTruthCreator/Bankruptcy - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://stockhub.co/index.php?action=history&amp;feed=atom&amp;title=Module%3ASandbox%2FTheTruthCreator%2FBankruptcy"/>
	<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:Sandbox/TheTruthCreator/Bankruptcy&amp;action=history"/>
	<updated>2026-08-11T07:25:38Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://stockhub.co/index.php?title=Module:Sandbox/TheTruthCreator/Bankruptcy&amp;diff=146301&amp;oldid=prev</id>
		<title>imported&gt;TheTruthCreator at 00:31, 13 July 2016</title>
		<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:Sandbox/TheTruthCreator/Bankruptcy&amp;diff=146301&amp;oldid=prev"/>
		<updated>2016-07-13T00:31:14Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;local p = {}&lt;br /&gt;
&lt;br /&gt;
function p.pow(b,e)&lt;br /&gt;
	local n = 1&lt;br /&gt;
	for i = 1, e, 1 do&lt;br /&gt;
		n = n * b&lt;br /&gt;
	end&lt;br /&gt;
	return n&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.bankruptcy(frame)&lt;br /&gt;
	local chance = frame.args[1]&lt;br /&gt;
	local iter = frame.args[2]&lt;br /&gt;
	local n = 0&lt;br /&gt;
	if iter == nil then&lt;br /&gt;
		iter = 10&lt;br /&gt;
	end&lt;br /&gt;
	for i = 1, iter, 1 do&lt;br /&gt;
		n = n + ((p.pow(1 - chance, i - 1) * chance) * (2 * i))&lt;br /&gt;
	end&lt;br /&gt;
	return n&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>imported&gt;TheTruthCreator</name></author>
	</entry>
</feed>