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

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.asinh()</code></strong> 函数返回给定数字的反双曲正弦值, 即:</p>
<p><math display="block"><semantics><mrow><mstyle mathvariant="monospace"><mrow><mo lspace="0em" rspace="thinmathspace">Math.asinh</mo><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo></mrow></mstyle><mo>=</mo><mo lspace="0em" rspace="thinmathspace">arsinh</mo><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo><mo>=</mo><mtext> 特定的 </mtext><mspace width="thickmathspace"></mspace><mi>y</mi><mspace width="thickmathspace"></mspace><mtext>满足</mtext><mspace width="thickmathspace"></mspace><mo lspace="0em" rspace="0em">sinh</mo><mo stretchy="false">(</mo><mi>y</mi><mo stretchy="false">)</mo><mo>=</mo><mi>x</mi></mrow><annotation encoding="TeX">\mathtt{\operatorname{Math.asinh}(x)} = \operatorname{arsinh}(x) = \text{ the unique } \; y \; \text{such that} \; \sinh(y) = x</annotation></semantics></math></p>
<h2 id="语法">语法</h2>
<pre class="syntaxbox"><code>Math.asinh(<var>x</var>)</code></pre>
<pre><code class="language-javascript"><code>Math.asinh(<var>x</var>)</code></code></pre>
<h3 id="参数">参数</h3>
<dl>
<dt><code>x</code></dt>
@@ -15,19 +15,19 @@
<p><code>由于asinh()是</code><code>Math的静态方法</code>, <code>用户应该直接通过Math.asinh()来使用</code>, 而不是先创建出Math对象再调用该方法<code>Math</code>不是一个构造器)。</p>
<h2 id="示例">示例</h2>
<h3 id="使用Math.asinh()"><code>使用Math.asinh()</code></h3>
<pre class="brush: js">Math.asinh(1); // 0.881373587019543
<pre><code class="language-javascript">Math.asinh(1); // 0.881373587019543
Math.asinh(0); // 0
</pre>
</code></pre>
<h2 id="其他实现方式">其他实现方式</h2>
<p>由于<math><semantics><mrow><mo lspace="0em" rspace="thinmathspace">arsinh</mo><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo><mo>=</mo><mo lspace="0em" rspace="0em">ln</mo><mrow><mo>(</mo><mrow><mi>x</mi><mo>+</mo><msqrt><mrow><msup><mi>x</mi><mn>2</mn></msup><mo>+</mo><mn>1</mn></mrow></msqrt></mrow><mo>)</mo></mrow></mrow><annotation encoding="TeX">\operatorname {arsinh} (x) = \ln \left(x + \sqrt{x^{2} + 1} \right)</annotation></semantics></math> ,因此该函数可以被如下的函数所模拟:</p>
<pre class="brush: js">Math.asinh = Math.asinh || function(x) {
<pre><code class="language-javascript">Math.asinh = Math.asinh || function(x) {
if (x === -Infinity) {
return x;
} else {
return Math.log(x + Math.sqrt(x * x + 1));
}
};
</pre>
</code></pre>
<h2 id="规范">规范</h2>
<table class="standard-table">
<tbody>