add sequence function seq
This commit is contained in:
33
docs/build/html/data.html
vendored
33
docs/build/html/data.html
vendored
@@ -34,10 +34,10 @@
|
||||
|
||||
<div class="section" id="module-data">
|
||||
<span id="data-module"></span><h1>data module<a class="headerlink" href="#module-data" title="Permalink to this headline">¶</a></h1>
|
||||
<p>Read and write data to or from file.</p>
|
||||
<p>Read and write data to or from file and manipulate data structures.</p>
|
||||
<dl class="field-list simple">
|
||||
<dt class="field-odd">Date</dt>
|
||||
<dd class="field-odd"><p>2019-07-29</p>
|
||||
<dd class="field-odd"><p>2019-10-11</p>
|
||||
</dd>
|
||||
</dl>
|
||||
<span class="target" id="module-data"></span><dl class="function">
|
||||
@@ -125,6 +125,35 @@ array. m = k / n</p>
|
||||
</dl>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="function">
|
||||
<dt id="data.seq">
|
||||
<code class="sig-name descname">seq</code><span class="sig-paren">(</span><em class="sig-param">start</em>, <em class="sig-param">stop=None</em>, <em class="sig-param">step=1</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/data.html#seq"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#data.seq" title="Permalink to this definition">¶</a></dt>
|
||||
<dd><p>Create an arithmetic bounded sequence.</p>
|
||||
<p>The sequence is one of the following;</p>
|
||||
<ul class="simple">
|
||||
<li><p>empty <span class="math notranslate nohighlight">\(\{\}=\emptyset\)</span>, if start and stop are the same</p></li>
|
||||
<li><p>degenerate <span class="math notranslate nohighlight">\(\{a\}\)</span>, if the sequence has only one element.</p></li>
|
||||
<li><p>left-close and right-open <span class="math notranslate nohighlight">\([a, b)\)</span></p></li>
|
||||
</ul>
|
||||
<dl class="field-list simple">
|
||||
<dt class="field-odd">Parameters</dt>
|
||||
<dd class="field-odd"><ul class="simple">
|
||||
<li><p><strong>start</strong> (<em>int</em><em> or </em><em>float</em>) – start of the sequence, the lower bound. If only start
|
||||
is given than it is interpreted as stop and start will be 0.</p></li>
|
||||
<li><p><strong>stop</strong> (<em>int</em><em> or </em><em>float</em>) – stop of sequence, the upper bound.</p></li>
|
||||
<li><p><strong>step</strong> (<em>int</em><em> or </em><em>float</em>) – step size, the common difference (constant difference
|
||||
between consecutive terms).</p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
<dt class="field-even">Returns</dt>
|
||||
<dd class="field-even"><p>arithmetic bounded sequence</p>
|
||||
</dd>
|
||||
<dt class="field-odd">Return type</dt>
|
||||
<dd class="field-odd"><p>list</p>
|
||||
</dd>
|
||||
</dl>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="function">
|
||||
<dt id="data.store">
|
||||
<code class="sig-name descname">store</code><span class="sig-paren">(</span><em class="sig-param">file_name</em>, <em class="sig-param">object_data</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/data.html#store"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#data.store" title="Permalink to this definition">¶</a></dt>
|
||||
|
||||
Reference in New Issue
Block a user