diff options
| author | Ryan Johnson <rjohnson@mozilla.com> | 2021-04-29 16:16:42 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-29 16:16:42 -0700 |
| commit | 95aca4b4d8fa62815d4bd412fff1a364f842814a (patch) | |
| tree | 5e57661720fe9058d5c7db637e764800b50f9060 /files/it/web/javascript/reference/global_objects/math/index.html | |
| parent | ee3b1c87e3c8e72ca130943eed260ad642246581 (diff) | |
| download | translated-content-95aca4b4d8fa62815d4bd412fff1a364f842814a.tar.gz translated-content-95aca4b4d8fa62815d4bd412fff1a364f842814a.tar.bz2 translated-content-95aca4b4d8fa62815d4bd412fff1a364f842814a.zip | |
remove retired locales (#699)
Diffstat (limited to 'files/it/web/javascript/reference/global_objects/math/index.html')
| -rw-r--r-- | files/it/web/javascript/reference/global_objects/math/index.html | 208 |
1 files changed, 0 insertions, 208 deletions
diff --git a/files/it/web/javascript/reference/global_objects/math/index.html b/files/it/web/javascript/reference/global_objects/math/index.html deleted file mode 100644 index 69cd2ec012..0000000000 --- a/files/it/web/javascript/reference/global_objects/math/index.html +++ /dev/null @@ -1,208 +0,0 @@ ---- -title: Math -slug: Web/JavaScript/Reference/Global_Objects/Math -translation_of: Web/JavaScript/Reference/Global_Objects/Math ---- -<div>{{JSRef}}</div> - -<p>Math è un oggetto precostruito che possiede proprietà e metodi per restituire i risultati di costanti e funzioni matematiche. Math non è una funzione.</p> - -<h2 id="Descrizione">Descrizione</h2> - -<p>Diversamente dagli altri oggetti globali, Math non è un costruttore. Tutte le proprietà e i metodi di Math sono statici. Per riferirsi alla costante Pi si usa Math.PI e per chiamare la funzione Seno si usa Math.sin(x) , dove x è l'argomento del metodo. Le costanti sono definite con la piena precisione dei numeri reali in JavaScript.</p> - -<h2 id="Proprietà">Proprietà</h2> - -<dl> - <dt>{{jsxref("Math.E")}}</dt> - <dd>Costante di Eulero e base dei logaritmi naturali, approssimativamente 2.718.</dd> - <dt>{{jsxref("Math.LN2")}}</dt> - <dd>Logaritmo naturale di 2, approssimativamente 0.693.</dd> - <dt>{{jsxref("Math.LN10")}}</dt> - <dd>Logaritmo naturale di 10, approssimativamente 0.693.</dd> - <dt>{{jsxref("Math.LOG2E")}}</dt> - <dd>Logaritmo a base 2 di E, approssimativamente 1.443.</dd> - <dt>{{jsxref("Math.LOG10E")}}</dt> - <dd>Logaritmo a base 10 di E, approssimativamente 1.443.</dd> - <dt>{{jsxref("Math.PI")}}</dt> - <dd>Rapporto tra la circonferenza di un cerchio ed il suo diametro, approssimativamente 3.14159.</dd> - <dt>{{jsxref("Math.SQRT1_2")}}</dt> - <dd>Radice quadrata di 1/2 ; equivale a 1 fratto la radice quadrata di 2, approsimativamente 0.707.</dd> - <dt>{{jsxref("Math.SQRT2")}}</dt> - <dd>Radice quadrata di 2, approssimativamente 1.414.</dd> -</dl> - -<h2 id="Metodi">Metodi</h2> - -<div class="note"> -<p>Ricorda che le funzioni trigonometriche (<code>sin()</code>, <code>cos()</code>, <code>tan()</code>, <code>asin()</code>, <code>acos()</code>, <code>atan()</code>, <code>atan2()</code>) si aspettano e restituiscono gli angoli in radianti. To convert radians to degrees, divide by <code>(Math.PI / 180)</code>, and multiply by this to convert the other way.</p> -</div> - -<div class="note"> -<p>Ricorda che la precisione di molte delle funzioni matematiche è dipendente dall'sistema di implementazione. questo significa che browser differenti possono dare risultati diversi, e anche lo stessomotore JS su un differente sistema operativo o architettura può dare risultati discordi.</p> -</div> - -<dl> - <dt>{{jsxref("Global_Objects/Math/abs", "Math.abs(x)")}}</dt> - <dd>Returns the absolute value of a number.</dd> - <dt>{{jsxref("Global_Objects/Math/acos", "Math.acos(x)")}}</dt> - <dd>Returns the arccosine of a number.</dd> - <dt>{{jsxref("Global_Objects/Math/acosh", "Math.acosh(x)")}}</dt> - <dd>Returns the hyperbolic arccosine of a number.</dd> - <dt>{{jsxref("Global_Objects/Math/asin", "Math.asin(x)")}}</dt> - <dd>Returns the arcsine of a number.</dd> - <dt>{{jsxref("Global_Objects/Math/asinh", "Math.asinh(x)")}}</dt> - <dd>Returns the hyperbolic arcsine of a number.</dd> - <dt>{{jsxref("Global_Objects/Math/atan", "Math.atan(x)")}}</dt> - <dd>Returns the arctangent of a number.</dd> - <dt>{{jsxref("Global_Objects/Math/atanh", "Math.atanh(x)")}}</dt> - <dd>Returns the hyperbolic arctangent of a number.</dd> - <dt>{{jsxref("Global_Objects/Math/atan2", "Math.atan2(y, x)")}}</dt> - <dd>Returns the arctangent of the quotient of its arguments.</dd> - <dt>{{jsxref("Global_Objects/Math/cbrt", "Math.cbrt(x)")}}</dt> - <dd>Returns the cube root of a number.</dd> - <dt>{{jsxref("Global_Objects/Math/ceil", "Math.ceil(x)")}}</dt> - <dd>Returns the smallest integer greater than or equal to a number.</dd> - <dt>{{jsxref("Global_Objects/Math/clz32", "Math.clz32(x)")}}</dt> - <dd>Returns the number of leading zeroes of a 32-bit integer.</dd> - <dt>{{jsxref("Global_Objects/Math/cos", "Math.cos(x)")}}</dt> - <dd>Returns the cosine of a number.</dd> - <dt>{{jsxref("Global_Objects/Math/cosh", "Math.cosh(x)")}}</dt> - <dd>Returns the hyperbolic cosine of a number.</dd> - <dt>{{jsxref("Global_Objects/Math/exp", "Math.exp(x)")}}</dt> - <dd>Returns E<sup>x</sup>, where <var>x</var> is the argument, and E is Euler's constant (2.718…), the base of the natural logarithm.</dd> - <dt>{{jsxref("Global_Objects/Math/expm1", "Math.expm1(x)")}}</dt> - <dd>Returns subtracting 1 from <code>exp(x)</code>.</dd> - <dt>{{jsxref("Global_Objects/Math/floor", "Math.floor(x)")}}</dt> - <dd>Returns the largest integer less than or equal to a number.</dd> - <dt>{{jsxref("Global_Objects/Math/fround", "Math.fround(x)")}}</dt> - <dd>Returns the nearest <a href="http://en.wikipedia.org/wiki/Single-precision_floating-point_format" title="link to the wikipedia page on single precision">single precision</a> float representation of a number.</dd> - <dt>{{jsxref("Global_Objects/Math/hypot", "Math.hypot([x[, y[, …]]])")}}</dt> - <dd>Returns the square root of the sum of squares of its arguments.</dd> - <dt>{{jsxref("Global_Objects/Math/imul", "Math.imul(x, y)")}}</dt> - <dd>Returns the result of a 32-bit integer multiplication.</dd> - <dt>{{jsxref("Global_Objects/Math/log", "Math.log(x)")}}</dt> - <dd>Returns the natural logarithm (log<sub>e</sub>, also ln) of a number.</dd> - <dt>{{jsxref("Global_Objects/Math/log1p", "Math.log1p(x)")}}</dt> - <dd>Returns the natural logarithm of <code>1 + x</code> (log<sub>e</sub>, also ln) of a number.</dd> - <dt>{{jsxref("Global_Objects/Math/log10", "Math.log10(x)")}}</dt> - <dd>Returns the base 10 logarithm of a number.</dd> - <dt>{{jsxref("Global_Objects/Math/log2", "Math.log2(x)")}}</dt> - <dd>Returns the base 2 logarithm of a number.</dd> - <dt>{{jsxref("Global_Objects/Math/max", "Math.max([x[, y[, …]]])")}}</dt> - <dd>Returns the largest of zero or more numbers.</dd> - <dt>{{jsxref("Global_Objects/Math/min", "Math.min([x[, y[, …]]])")}}</dt> - <dd>Returns the smallest of zero or more numbers.</dd> - <dt>{{jsxref("Global_Objects/Math/pow", "Math.pow(x, y)")}}</dt> - <dd>Returns base to the exponent power, that is, <code>base<sup>exponent</sup></code>.</dd> - <dt>{{jsxref("Global_Objects/Math/random", "Math.random()")}}</dt> - <dd>Returns a pseudo-random number between 0 and 1.</dd> - <dt>{{jsxref("Global_Objects/Math/round", "Math.round(x)")}}</dt> - <dd>Returns the value of a number rounded to the nearest integer.</dd> - <dt>{{jsxref("Global_Objects/Math/sign", "Math.sign(x)")}}</dt> - <dd>Returns the sign of the x, indicating whether x is positive, negative or zero.</dd> - <dt>{{jsxref("Global_Objects/Math/sin", "Math.sin(x)")}}</dt> - <dd>Returns the sine of a number.</dd> - <dt>{{jsxref("Global_Objects/Math/sinh", "Math.sinh(x)")}}</dt> - <dd>Returns the hyperbolic sine of a number.</dd> - <dt>{{jsxref("Global_Objects/Math/sqrt", "Math.sqrt(x)")}}</dt> - <dd>Returns the positive square root of a number.</dd> - <dt>{{jsxref("Global_Objects/Math/tan", "Math.tan(x)")}}</dt> - <dd>Returns the tangent of a number.</dd> - <dt>{{jsxref("Global_Objects/Math/tanh", "Math.tanh(x)")}}</dt> - <dd>Returns the hyperbolic tangent of a number.</dd> - <dt><code>Math.toSource()</code> {{non-standard_inline}}</dt> - <dd>Returns the string <code>"Math"</code>.</dd> - <dt>{{jsxref("Global_Objects/Math/trunc", "Math.trunc(x)")}}</dt> - <dd>Returns the integral part of the number x, removing any fractional digits.</dd> -</dl> - -<h2 id="Specifications">Specifications</h2> - -<table class="standard-table"> - <tbody> - <tr> - <th scope="col">Specification</th> - <th scope="col">Status</th> - <th scope="col">Comment</th> - </tr> - <tr> - <td>{{SpecName('ES1')}}</td> - <td>{{Spec2('ES1')}}</td> - <td>Initial definition. Implemented in JavaScript 1.1.</td> - </tr> - <tr> - <td>{{SpecName('ES5.1', '#sec-15.8', 'Math')}}</td> - <td>{{Spec2('ES5.1')}}</td> - <td> </td> - </tr> - <tr> - <td>{{SpecName('ES6', '#sec-math-object', 'Math')}}</td> - <td>{{Spec2('ES6')}}</td> - <td>New methods {{jsxref("Math.log10()", "log10()")}}, {{jsxref("Math.log2()", "log2()")}}, {{jsxref("Math.log1p()", "log1p()")}}, {{jsxref("Math.expm1()", "expm1()")}}, {{jsxref("Math.cosh()", "cosh()")}}, {{jsxref("Math.sinh()", "sinh()")}}, {{jsxref("Math.tanh()", "tanh()")}}, {{jsxref("Math.acosh()", "acosh()")}}, {{jsxref("Math.asinh()", "asinh()")}}, {{jsxref("Math.atanh()", "atanh()")}}, {{jsxref("Math.hypot()", "hypot()")}}, {{jsxref("Math.trunc()", "trunc()")}}, {{jsxref("Math.sign()", "sign()")}}, {{jsxref("Math.imul()", "imul()")}}, {{jsxref("Math.fround()", "fround()")}}, {{jsxref("Math.cbrt()", "cbrt()")}} and {{jsxref("Math.clz32()", "clz32()")}} added.</td> - </tr> - <tr> - <td>{{SpecName('ESDraft', '#sec-math-object', 'Math')}}</td> - <td>{{Spec2('ESDraft')}}</td> - <td> </td> - </tr> - </tbody> -</table> - -<h2 id="Browser_compatibility">Browser compatibility</h2> - -<div>{{CompatibilityTable}}</div> - -<div id="compat-desktop"> -<table class="compat-table"> - <tbody> - <tr> - <th>Feature</th> - <th>Chrome</th> - <th>Firefox (Gecko)</th> - <th>Internet Explorer</th> - <th>Opera</th> - <th>Safari</th> - </tr> - <tr> - <td>Basic support</td> - <td>{{CompatVersionUnknown}}</td> - <td>{{CompatVersionUnknown}}</td> - <td>{{CompatVersionUnknown}}</td> - <td>{{CompatVersionUnknown}}</td> - <td>{{CompatVersionUnknown}}</td> - </tr> - </tbody> -</table> -</div> - -<div id="compat-mobile"> -<table class="compat-table"> - <tbody> - <tr> - <th>Feature</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>Basic support</td> - <td>{{CompatVersionUnknown}}</td> - <td>{{CompatVersionUnknown}}</td> - <td>{{CompatVersionUnknown}}</td> - <td>{{CompatVersionUnknown}}</td> - <td>{{CompatVersionUnknown}}</td> - <td>{{CompatVersionUnknown}}</td> - </tr> - </tbody> -</table> -</div> - -<h2 id="See_also">See also</h2> - -<ul> - <li>{{jsxref("Number")}}</li> -</ul> |
