diff options
Diffstat (limited to 'files/pl/web/javascript/referencje/obiekty/math/sin/index.html')
| -rw-r--r-- | files/pl/web/javascript/referencje/obiekty/math/sin/index.html | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/files/pl/web/javascript/referencje/obiekty/math/sin/index.html b/files/pl/web/javascript/referencje/obiekty/math/sin/index.html deleted file mode 100644 index 56d31ef74c..0000000000 --- a/files/pl/web/javascript/referencje/obiekty/math/sin/index.html +++ /dev/null @@ -1,51 +0,0 @@ ---- -title: Math.sin() -slug: Web/JavaScript/Referencje/Obiekty/Math/sin -tags: - - JavaScript - - Math - - Method -translation_of: Web/JavaScript/Reference/Global_Objects/Math/sin ---- -<p>{{JSRef}}</p> - -<h2 id="Podsumowanie" name="Podsumowanie">Podsumowanie</h2> - -<p>Zwraca sinus danej liczby.</p> - -<h2 id="Sk.C5.82adnia" name="Sk.C5.82adnia">Składnia</h2> - -<pre class="syntaxbox"><code>Math.sin(<var>x</var>)</code></pre> - -<h3 id="Parametry" name="Parametry">Parametry</h3> - -<dl> - <dt><code>x</code> </dt> - <dd>liczba.</dd> -</dl> - -<h2 id="Opis" name="Opis">Opis</h2> - -<p>Metoda <code>sin</code> zwraca wartość numeryczną większą lub równą -1 i mniejszą lub równą 1, stanowiącą sinus argumentu.</p> - -<p>Ponieważ <code>sin</code> jest statyczną metodą obiektu {{jsxref("Math")}}, zawsze odwołujemy się do niej poprzez <code>Math.sin()</code>, a nie jak do metody instancji obiektu {{jsxref("Math")}} utworzonej przez użytkownika.</p> - -<h2 id="Przyk.C5.82ady" name="Przyk.C5.82ady">Przykłady</h2> - -<h3 id="Przyk.C5.82ad:_Zastosowanie_Math.sin" name="Przyk.C5.82ad:_Zastosowanie_Math.sin">Przykład: Zastosowanie <code>Math.sin()</code></h3> - -<pre class="brush: js language-js"><code class="language-js">Math<span class="token punctuation">.</span><span class="token function">sin<span class="token punctuation">(</span></span><span class="token number">0</span><span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token comment"> // 0 -</span>Math<span class="token punctuation">.</span><span class="token function">sin<span class="token punctuation">(</span></span><span class="token number">1</span><span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token comment"> // 0.8414709848078965 -</span> -Math<span class="token punctuation">.</span><span class="token function">sin<span class="token punctuation">(</span></span>Math<span class="token punctuation">.</span>PI <span class="token operator">/</span> <span class="token number">2</span><span class="token punctuation">)</span><span class="token punctuation">;</span><span class="token comment"> // 1</span></code></pre> - -<h2 id="Zobacz_tak.C5.BCe" name="Zobacz_tak.C5.BCe">Zobacz także</h2> - -<ul> - <li>{{jsxref("Math.acos()")}}</li> - <li>{{jsxref("Math.asin()")}}</li> - <li>{{jsxref("Math.atan()")}}</li> - <li>{{jsxref("Math.atan2()")}}</li> - <li>{{jsxref("Math.cos()")}}</li> - <li>{{jsxref("Math.tan()")}}</li> -</ul> |
