mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2026-03-06 13:54:12 +08:00
语法高亮,滚动条美化,设置页面调整
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user