add mathematical function to string function for braille and block characters

This commit is contained in:
2019-11-15 16:05:54 +01:00
parent 0041abe8f3
commit 1de007a285
48 changed files with 6987 additions and 82 deletions

View File

@@ -174,6 +174,19 @@
<span class="sd"> :returns: arithmetic bounded sequence</span>
<span class="sd"> :rtype: list</span>
<span class="sd"> &quot;&quot;&quot;</span>
<span class="c1"># example of seq(4, 0, -0.4)</span>
<span class="c1"># without round:</span>
<span class="c1"># [4.0, 3.6, 3.2, 2.8, 2.4, 2.0, 1.5999999999999996,</span>
<span class="c1"># 1.1999999999999997, 0.7999999999999998, 0.3999999999999999]</span>
<span class="c1"># with round:</span>
<span class="c1"># [4.0, 3.6, 3.2, 2.8, 2.4, 2.0, 1.6, 1.2, 0.8, 0.4]</span>
<span class="c1"># example of seq(4, 0, -0.41)</span>
<span class="c1"># without round:</span>
<span class="c1"># [4.0, 3.59, 3.18, 2.77, 2.3600000000000003,</span>
<span class="c1"># 1.9500000000000002, 1.54, 1.1300000000000003,</span>
<span class="c1"># 0.7200000000000002, 0.31000000000000005]</span>
<span class="c1"># with round:</span>
<span class="c1"># [4.0, 3.59, 3.18, 2.77, 2.36, 1.95, 1.54, 1.13, 0.72, 0.31]</span>
<span class="k">if</span> <span class="n">stop</span> <span class="ow">is</span> <span class="kc">None</span><span class="p">:</span>
<span class="k">return</span> <span class="n">seq</span><span class="p">(</span><span class="mi">0</span><span class="p">,</span> <span class="n">start</span><span class="p">,</span> <span class="n">step</span><span class="p">)</span>
@@ -280,7 +293,7 @@
&copy;2019, Daniel Weschke.
|
Powered by <a href="http://sphinx-doc.org/">Sphinx 2.2.0</a>
Powered by <a href="http://sphinx-doc.org/">Sphinx 2.2.1</a>
&amp; <a href="https://github.com/bitprophet/alabaster">Alabaster 0.7.12</a>
</div>