<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://crawl.chaosforge.org/index.php?action=history&amp;feed=atom&amp;title=Module%3AFailure_rate_table</id>
		<title>Module:Failure rate table - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://crawl.chaosforge.org/index.php?action=history&amp;feed=atom&amp;title=Module%3AFailure_rate_table"/>
		<link rel="alternate" type="text/html" href="http://crawl.chaosforge.org/index.php?title=Module:Failure_rate_table&amp;action=history"/>
		<updated>2026-05-14T10:58:48Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://crawl.chaosforge.org/index.php?title=Module:Failure_rate_table&amp;diff=37443&amp;oldid=prev</id>
		<title>Edsrzf: Show only certain rows</title>
		<link rel="alternate" type="text/html" href="http://crawl.chaosforge.org/index.php?title=Module:Failure_rate_table&amp;diff=37443&amp;oldid=prev"/>
				<updated>2015-07-01T03:09:57Z</updated>
		
		<summary type="html">&lt;p&gt;Show only certain rows&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 03:09, 1 July 2015&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l36&quot; &gt;Line 36:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 36:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;function p.table(frame)&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;function p.table(frame)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; return table._table(frame.args[1], &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;27&lt;/del&gt;, {format = format}, &amp;quot;Failure rate(%)&amp;quot;, success_func(frame.args[2], frame.args[3]))&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;#160; local inputs = {0, 1, 3, 5, 7, 10, 15, 20, 25, 27}&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; return table._table(frame.args[1], &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;10&lt;/ins&gt;, {&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;inputs = inputs, &lt;/ins&gt;format = format}, &amp;quot;Failure rate(%)&amp;quot;, success_func(frame.args[2], frame.args[3]))&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;end&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;end&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;return p&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;return p&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Edsrzf</name></author>	</entry>

	<entry>
		<id>http://crawl.chaosforge.org/index.php?title=Module:Failure_rate_table&amp;diff=37440&amp;oldid=prev</id>
		<title>Edsrzf: Edsrzf moved page Module:Success rate table to Module:Failure rate table without leaving a redirect</title>
		<link rel="alternate" type="text/html" href="http://crawl.chaosforge.org/index.php?title=Module:Failure_rate_table&amp;diff=37440&amp;oldid=prev"/>
				<updated>2015-07-01T02:54:10Z</updated>
		
		<summary type="html">&lt;p&gt;Edsrzf moved page &lt;a href=&quot;/index.php?title=Module:Success_rate_table&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Module:Success rate table (page does not exist)&quot;&gt;Module:Success rate table&lt;/a&gt; to &lt;a href=&quot;/Module:Failure_rate_table&quot; title=&quot;Module:Failure rate table&quot;&gt;Module:Failure rate table&lt;/a&gt; without leaving a redirect&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 02:54, 1 July 2015&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; style=&quot;text-align: center;&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Edsrzf</name></author>	</entry>

	<entry>
		<id>http://crawl.chaosforge.org/index.php?title=Module:Failure_rate_table&amp;diff=37439&amp;oldid=prev</id>
		<title>Edsrzf: Module to calculate failure rates for evocations and invocations</title>
		<link rel="alternate" type="text/html" href="http://crawl.chaosforge.org/index.php?title=Module:Failure_rate_table&amp;diff=37439&amp;oldid=prev"/>
				<updated>2015-07-01T02:52:45Z</updated>
		
		<summary type="html">&lt;p&gt;Module to calculate failure rates for evocations and invocations&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;local table = require(&amp;quot;Module:Calculated table&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
-- translated from spl-cast.cc&lt;br /&gt;
local function tetrahedral_number(n)&lt;br /&gt;
  return math.floor(n * (n+1) * (n+2) / 6)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- translated from spl-cast.cc&lt;br /&gt;
local function true_fail_rate(raw_fail)&lt;br /&gt;
  local outcomes = 101 * 101 * 100&lt;br /&gt;
  local target = raw_fail * 3&lt;br /&gt;
  if target &amp;lt;= 100 then&lt;br /&gt;
    return tetrahedral_number(target) / outcomes&lt;br /&gt;
  elseif target &amp;lt;= 200 then&lt;br /&gt;
    return (tetrahedral_number(target) - 2 * tetrahedral_number(target - 101) - tetrahedral_number(target - 100)) / outcomes&lt;br /&gt;
  end&lt;br /&gt;
  return (outcomes - tetrahedral_number(300 - target)) / outcomes&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function success_func(base_fail, scale)&lt;br /&gt;
  return function(env)&lt;br /&gt;
    local skill = env.x&lt;br /&gt;
    local fail = base_fail - scale*skill&lt;br /&gt;
    if fail &amp;lt;= 0 then&lt;br /&gt;
      return 0&lt;br /&gt;
    end&lt;br /&gt;
    return true_fail_rate(base_fail - scale*skill)&lt;br /&gt;
  end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function format(n)&lt;br /&gt;
  return (&amp;quot;%.2f%%&amp;quot;):format(100*n)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.table(frame)&lt;br /&gt;
  return table._table(frame.args[1], 27, {format = format}, &amp;quot;Failure rate(%)&amp;quot;, success_func(frame.args[2], frame.args[3]))&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Edsrzf</name></author>	</entry>

	</feed>