mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2025-12-18 08:54:32 +08:00
语法高亮,滚动条美化,设置页面调整
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
<p><code><strong>Math.asin()</strong></code> 方法返回一个数值的反正弦(单位为弧度),即:</p>
|
||||
<p><math display="block"><semantics><mrow><mo>∀</mo><mi>x</mi><mo>∊</mo><mo stretchy="false">[</mo><mrow><mo>-</mo><mn>1</mn></mrow><mo>;</mo><mn>1</mn><mo stretchy="false">]</mo><mo>,</mo><mspace width="thickmathspace"></mspace><mstyle mathvariant="monospace"><mrow><mo lspace="0em" rspace="thinmathspace">Math.asin</mo><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo></mrow></mstyle><mo>=</mo><mo lspace="0em" rspace="0em">arcsin</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><mo>∊</mo><mrow><mo>[</mo><mrow><mo>-</mo><mfrac><mi>π</mi><mn>2</mn></mfrac><mo>;</mo><mfrac><mi>π</mi><mn>2</mn></mfrac></mrow><mo>]</mo></mrow><mspace width="thinmathspace"></mspace><mtext>such that</mtext><mspace width="thickmathspace"></mspace><mo lspace="0em" rspace="0em">sin</mo><mo stretchy="false">(</mo><mi>y</mi><mo stretchy="false">)</mo><mo>=</mo><mi>x</mi></mrow><annotation encoding="TeX">\forall x \in [{-1};1],\;\mathtt{\operatorname{Math.asin}(x)} = \arcsin(x) = \text{ the unique } \; y \in \left[-\frac{\pi}{2}; \frac{\pi}{2}\right] \, \text{such that} \; \sin(y) = x</annotation></semantics></math></p>
|
||||
<h2 id="Syntax" name="Syntax">语法</h2>
|
||||
<pre class="syntaxbox">Math.asin(<em>x</em>)</pre>
|
||||
<pre><code class="language-javascript">Math.asin(<em>x</em>)</code></pre>
|
||||
<h3 id="Parameters" name="Parameters">参数</h3>
|
||||
<dl>
|
||||
<dt>
|
||||
@@ -18,12 +18,12 @@
|
||||
<p>由于 <code>asin</code> 是 <code>Math</code> 的静态方法,所有应该像这样使用:<code>Math.asin()</code>,而不是作为你创建的 <code>Math</code> 实例的方法。</p>
|
||||
<h2 id="Examples" name="Examples">示例</h2>
|
||||
<h3 id="Example:_Using_Math.asin" name="Example:_Using_Math.asin">例子:使用 <code>Math.asin()</code></h3>
|
||||
<pre class="brush:js">Math.asin(-2); // NaN
|
||||
<pre><code class="language-js">Math.asin(-2); // NaN
|
||||
Math.asin(-1); // -1.5707963267948966 (-pi/2)
|
||||
Math.asin(0); // 0
|
||||
Math.asin(0.5); // 0.5235987755982989
|
||||
Math.asin(1); // 1.570796326794897 (pi/2)
|
||||
Math.asin(2); // NaN</pre>
|
||||
Math.asin(2); // NaN</code></pre>
|
||||
<p>对于小于 -1 或大于 1 的参数值,<code>Math.asin</code> 返回 <code>NaN</code>。</p>
|
||||
<h2 id="规范">规范</h2>
|
||||
<table class="standard-table">
|
||||
|
||||
Reference in New Issue
Block a user