aboutsummaryrefslogtreecommitdiff
path: root/files/ca/web/javascript/reference/global_objects/math/log2
diff options
context:
space:
mode:
authorRyan Johnson <rjohnson@mozilla.com>2021-04-29 16:16:42 -0700
committerGitHub <noreply@github.com>2021-04-29 16:16:42 -0700
commit95aca4b4d8fa62815d4bd412fff1a364f842814a (patch)
tree5e57661720fe9058d5c7db637e764800b50f9060 /files/ca/web/javascript/reference/global_objects/math/log2
parentee3b1c87e3c8e72ca130943eed260ad642246581 (diff)
downloadtranslated-content-95aca4b4d8fa62815d4bd412fff1a364f842814a.tar.gz
translated-content-95aca4b4d8fa62815d4bd412fff1a364f842814a.tar.bz2
translated-content-95aca4b4d8fa62815d4bd412fff1a364f842814a.zip
remove retired locales (#699)
Diffstat (limited to 'files/ca/web/javascript/reference/global_objects/math/log2')
-rw-r--r--files/ca/web/javascript/reference/global_objects/math/log2/index.html128
1 files changed, 0 insertions, 128 deletions
diff --git a/files/ca/web/javascript/reference/global_objects/math/log2/index.html b/files/ca/web/javascript/reference/global_objects/math/log2/index.html
deleted file mode 100644
index 9877f863b8..0000000000
--- a/files/ca/web/javascript/reference/global_objects/math/log2/index.html
+++ /dev/null
@@ -1,128 +0,0 @@
----
-title: Math.log2()
-slug: Web/JavaScript/Reference/Global_Objects/Math/log2
-translation_of: Web/JavaScript/Reference/Global_Objects/Math/log2
-original_slug: Web/JavaScript/Referencia/Objectes_globals/Math/log2
----
-<div>{{JSRef}}</div>
-
-<p>La funció <strong><code>Math.log2()</code></strong> retorna el logaritme en base 2 d'un nombre, és a dir</p>
-
-<p><math display="block"><semantics><mrow><mo>∀</mo><mi>x</mi><mo>&gt;</mo><mn>0</mn><mo>,</mo><mstyle mathvariant="monospace"><mrow><mo lspace="0em" rspace="thinmathspace">Math.log2</mo><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo></mrow></mstyle><mo>=</mo><msub><mo lspace="0em" rspace="0em">log</mo><mn>2</mn></msub><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo><mo>=</mo><mtext>la única</mtext><mspace width="thickmathspace"></mspace><mi>y</mi><mspace width="thickmathspace"></mspace><mtext>tal que</mtext><mspace width="thickmathspace"></mspace><msup><mn>2</mn><mi>y</mi></msup><mo>=</mo><mi>x</mi></mrow><annotation encoding="TeX">\forall x &gt; 0, \mathtt{\operatorname{Math.log2}(x)} = \log_2(x) = \text{the unique} \; y \; \text{such that} \; 2^y = x</annotation></semantics></math></p>
-
-<h2 id="Sintaxi">Sintaxi</h2>
-
-<pre class="syntaxbox"><code>Math.log2(<var>x</var>)</code></pre>
-
-<h3 id="Paràmetres">Paràmetres</h3>
-
-<dl>
- <dt><code>x</code></dt>
- <dd>Un nombre.</dd>
-</dl>
-
-<h2 id="Descripció">Descripció</h2>
-
-<p>Si el valor de <code>x</code> és menor que 0, el valor retornat sempre serà {{jsxref("NaN")}}.</p>
-
-<p>Com que <code>log2()</code> és un mètode estàtic de <code>Math</code>, sempre s'utilitza com <code>Math.log2()</code> en comptes de com un mètode d'un objecte <code>Math</code> creat (<code>Math</code> no és un constructor).</p>
-
-<h2 id="Exemples">Exemples</h2>
-
-<h3 id="Utilitzar_Math.log2()">Utilitzar <code>Math.log2()</code></h3>
-
-<pre class="brush: js">Math.log2(3); // 1.584962500721156
-Math.log2(2); // 1
-Math.log2(1); // 0
-Math.log2(0); // -Infinit
-Math.log2(-2); // NaN
-Math.log2(1024); // 10
-</pre>
-
-<h2 id="Polyfill">Polyfill</h2>
-
-<p>Aquest Polyfill emula la funció <code>Math.log2</code>. Cal destacar que retorna valors imprecisos per a algunes entrades (com ara 1 &lt;&lt; 29), embolcalleu-la amb {{jsxref("Math.round()")}} si esteu treballant amb màscares de bits.</p>
-
-<pre class="brush: js">Math.log2 = Math.log2 || function(x) {
- return Math.log(x) / Math.LN2;
-};
-</pre>
-
-<h2 id="Especificacions">Especificacions</h2>
-
-<table class="standard-table">
- <tbody>
- <tr>
- <th scope="col">Especificació</th>
- <th scope="col">Estat</th>
- <th scope="col">Comentaris</th>
- </tr>
- <tr>
- <td>{{SpecName('ES6', '#sec-math.log2', 'Math.log2')}}</td>
- <td>{{Spec2('ES6')}}</td>
- <td>Definició inicial.</td>
- </tr>
- </tbody>
-</table>
-
-<h2 id="Compatibilitat_amb_navegadors">Compatibilitat amb navegadors</h2>
-
-<div>{{CompatibilityTable}}</div>
-
-<div id="compat-desktop">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Característica</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Suport bàsic</td>
- <td>{{CompatChrome("38")}}</td>
- <td>{{CompatGeckoDesktop("25")}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatOpera("25")}}</td>
- <td>{{CompatSafari("7.1")}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div id="compat-mobile">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Característica</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Suport bàsic</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatGeckoMobile("25")}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>8</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<h2 id="Vegeu_també">Vegeu també</h2>
-
-<ul>
- <li>{{jsxref("Math.exp()")}}</li>
- <li>{{jsxref("Math.log()")}}</li>
- <li>{{jsxref("Math.log10()")}} {{experimental_inline}}</li>
- <li>{{jsxref("Math.log1p()")}} {{experimental_inline}}</li>
- <li>{{jsxref("Math.pow()")}}</li>
-</ul>