mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2025-12-20 18:45:52 +08:00
语法高亮,滚动条美化,设置页面调整
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
<p><code><strong>Math.acos()</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.acos</mo><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo></mrow></mstyle><mo>=</mo><mo lspace="0em" rspace="0em">arccos</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><mo stretchy="false">[</mo><mn>0</mn><mo>;</mo><mi>π</mi><mo stretchy="false">]</mo><mspace width="thinmathspace"></mspace><mtext>such that</mtext><mspace width="thickmathspace"></mspace><mo lspace="0em" rspace="0em">cos</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.acos}(x)} = \arccos(x) = \text{ the unique } \; y \in [0; \pi] \, \text{such that} \; \cos(y) = x</annotation></semantics></math></p>
|
||||
<h2 id="Syntax" name="Syntax">语法</h2>
|
||||
<pre class="syntaxbox">Math.acos(<em>x</em>) </pre>
|
||||
<pre><code class="language-javascript">Math.acos(<em>x</em>) </code></pre>
|
||||
<h2 id="Parameters" name="Parameters">参数</h2>
|
||||
<dl>
|
||||
<dt>
|
||||
@@ -18,13 +18,13 @@
|
||||
<p>由于 <code>acos</code> 是 <code>Math</code> 的静态方法,所以应该像这样使用:<code>Math.acos()</code>,而不是作为你创建的 <code>Math</code> 实例的属性(<code>Math</code> 不是一个构造函数)。</p>
|
||||
<h2 id="Examples" name="Examples">示例</h2>
|
||||
<h3 id="Example:_Using_Math.acos" name="Example:_Using_Math.acos">例子:使用 <code>Math.acos</code></h3>
|
||||
<pre class="brush:js">Math.acos(-2); // NaN
|
||||
<pre><code class="language-js">Math.acos(-2); // NaN
|
||||
Math.acos(-1); // 3.141592653589793
|
||||
Math.acos(0); // 1.5707963267948966
|
||||
Math.acos(0.5); // 1.0471975511965979
|
||||
Math.acos(1); // 0
|
||||
Math.acos(2); // NaN
|
||||
</pre>
|
||||
</code></pre>
|
||||
<p>对于小于 -1 或大于 1 的值,<code>Math.acos</code> 返回 <code>NaN</code>。</p>
|
||||
<h2 id="规范">规范</h2>
|
||||
<table class="standard-table">
|
||||
|
||||
Reference in New Issue
Block a user