语法高亮,滚动条美化,设置页面调整

This commit is contained in:
fofolee
2019-04-19 02:41:09 +08:00
parent 1e8f76c000
commit 359d29ee0b
1590 changed files with 12328 additions and 11441 deletions

View File

@@ -3,7 +3,7 @@
<p><strong><code>Math.atanh()</code></strong> 函数返回一个数值反双曲正切值, 即:</p>
<p><math display="block"><semantics><mrow><mo></mo><mi>x</mi><mo></mo><mrow><mo>(</mo><mrow><mo>-</mo><mn>1</mn><mo>,</mo><mn>1</mn></mrow><mo>)</mo></mrow><mo>,</mo><mstyle mathvariant="monospace"><mrow><mo lspace="0em" rspace="thinmathspace">Math.atanh</mo><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo></mrow></mstyle><mo>=</mo><mo lspace="0em" rspace="thinmathspace">arctanh</mo><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo><mo>=</mo><mtext> the unique </mtext><mspace width="thickmathspace"></mspace><mi>y</mi><mspace width="thickmathspace"></mspace><mtext>such that</mtext><mspace width="thickmathspace"></mspace><mo lspace="0em" rspace="0em">tanh</mo><mo stretchy="false">(</mo><mi>y</mi><mo stretchy="false">)</mo><mo>=</mo><mi>x</mi></mrow><annotation encoding="TeX">\forall x \in \left( -1, 1 \right), \mathtt{\operatorname{Math.atanh}(x)} = \operatorname{arctanh}(x) = \text{ the unique } \; y \; \text{such that} \; \tanh(y) = x</annotation></semantics></math></p>
<h2 id="语法">语法</h2>
<pre class="syntaxbox"><code>Math.atanh(<var>x</var>)</code></pre>
<pre><code class="language-javascript"><code>Math.atanh(<var>x</var>)</code></code></pre>
<h3 id="参数">参数</h3>
<dl>
<dt><code>x</code></dt>
@@ -13,20 +13,20 @@
<p>由于 <code>atanh()</code> 是 <code>Math 的静态方法</code>,所以应该像这样使用:<code>Math.atanh()</code>,而不是作为你创建的 <code>Math</code> 实例的方法(<code>Math 不是一个构造函数</code>)。 </p>
<h2 id="示例">示例</h2>
<h3 id="使用_Math.atanh()"><code>使用 Math.atanh()</code></h3>
<pre class="brush: js">Math.atanh(-2); // NaN
<pre><code class="language-javascript">Math.atanh(-2); // NaN
Math.atanh(-1); // -Infinity
Math.atanh(0); // 0
Math.atanh(0.5); // 0.5493061443340548
Math.atanh(1); // Infinity
Math.atanh(2); // NaN
</pre>
</code></pre>
<p>对于大于1或是小于1的值函数返回 <a href="Reference/Global_Objects/NaN" title="全局属性 NaN 的值表示不是一个数字Not-A-Number。"><code>NaN</code></a></p>
<h2 id="Polyfill">Polyfill</h2>
<p>For \left|x\right| &lt; 1, we have \operatorname {artanh} (x) = \frac{1}{2}\ln \left( \frac{1 + x}{1 - x} \right) so this can be emulated by the following function:</p>
<pre class="brush: js">Math.atanh = Math.atanh || function(x) {
<pre><code class="language-javascript">Math.atanh = Math.atanh || function(x) {
return Math.log((1+x)/(1-x)) / 2;
};
</pre>
</code></pre>
<h2 id="规范">规范</h2>
<table class="standard-table">
<tbody>