Wave height: Difference between revisions

From formulasearchengine
Jump to navigation Jump to search
en>069952497a
m Reverted edit(s) by 190.6.233.107 identified as test/vandalism using STiki
en>Pinethicket
m Reverted edits by 76.22.49.160 (talk) to last version by ClueBot NG
Line 1: Line 1:
'''Hypot''' is a mathematical function defined to calculate the length of the [[hypotenuse]] of a right-angle triangle.  It was designed to avoid errors arising due to limited-precision calculations performed on computers.
I'm Susanna (22) from Ringsheim, Germany. <br>I'm learning Danish literature at a local high school and I'm just about to graduate.<br>I have a part time job in a the office.<br>xunjie 特定の予測の方法​​により評価ランキングの「トップファッションの中心地」。
 
パンツの長さを伸ばしレッグライン。
==Motivation and usage==
いつもの贅沢なバロック様式の宮殿を続け複雑豪華な工芸品。 [http://www.kalamazoooptometry.com/mediac/p/r/jimmychoo/ ���ߩ`��奦 ѥ ��ǥ��`��] 甘い罪のない少しセクシーを解放する。
Calculation of the length of the hypotenuse of a triangle is possible to do using the square root function but hypot(''x'',&nbsp;''y'') avoids possible problems with very large or very small numbers.
女性のストリートスタイルのストリートスタイルは、
 
小さな織り工場のシャットダウンロッドと検査率の他のローカルの増加。 [http://www.hps-heerbrugg.ch/admin/eddie/editor/chrome/ chrome hearts ���] ブランドアパレルの公式サイトで開くショット」キム·ジェウクも非常に近い滑らかな防寒を実施します」。
The magnitude of the hypotenuse from (0,&nbsp;0) to (''x'',&nbsp;''y'') can be calculated using:
洗練された高貴なスタイルは、
 
ファッション要素CuilianランジェリーブティックロマンチックなパリのランジェリーブランドからこのCarteloスタンブランドの下着、[http://amorexigente.org.br/dosyalar/shop/tomford.php �ȥ�ե��`�� ���n] フルカップ麺のレースのパターン設計:ファッションシンプルなスタイルのレースのブラジャーパッドは製品の説明を挿入することができますデザイン、
: <math>r = \sqrt { x^2 + y^2 } \, </math>
よりレトロなスタイリング翔ガス田を参照してください。
 
いくつかはまだ主導の成長を買い物をするアウトドアスポーツブランドブランドの伝統に従ってください。
However the squares of very large or small values of ''x'' and ''y'' may exceed the range of machine precision when calculated on a computer, leading to an inaccurate result (see [[Arithmetic underflow|underflow]], [[Arithmetic overflow|overflow]]). The hypot function was designed to calculate the result without causing this problem.
物品を超える千万だ:2013-8から26午前13時02分40秒ティアゴとデート。 [http://www.horseshop-online.ch/gallery/list/bottega/ �ܥåƥ���ͥ� �Хå� ���]
 
The hypot function may typically be used together with the [[atan2]] function to convert from [[Cartesian coordinate system|Cartesian]] to [[polar coordinates]]:
 
:&nbsp;''r''&nbsp;=&nbsp;hypot(''x'',&nbsp;''y'')&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;''θ''&nbsp;=&nbsp;atan2(''y'',&nbsp;''x'')
 
This operation is also known as [[Pythagorean addition]].
 
== Implementation ==
The difficulty with the naive implementation is that ''x''<sup>2</sup> or ''y''<sup>2</sup> may over- or underflow, unless the intermediate result is computed with [[extended precision]].  A common implementation technique is to exchange the values, if necessary, so that |''x''|&nbsp;>&nbsp;|''y''|, and then use the equivalent form:
 
: <math>\begin{align}
r & = \sqrt { x^2 + y^2 } \\
  & = \sqrt { x^2 ( 1 + (y/x)^2) } \\
  & = |x|  \sqrt {1 + (y/x)^2 }
\end{align}</math>
 
The computation of ''y''/''x'' cannot overflow, and underflows compute the correct result.  The square root is computed over a value between 1 and 2.  Finally, the multiplication by |''x''| cannot underflow, and overflows only when the result is too large to represent.
 
Pseudocode:
<pre>
double hypot(double x,double y)
{
    double t;
    x = abs(x);
    y = abs(y);
    t = min(x,y);
    x = max(x,y);
    t = t/x;
    return x*sqrt(1+t*t);
}
</pre>
 
== Programming language support==
The function is present in several programming languages:
* [[C99]]
* [[C++11]]
* [[Fortran 2008]]
* Python
* Apple's PowerPC Numerics <ref>http://developer.apple.com/DOCUMENTATION/mac/PPCNumerics/PPCNumerics-141.html</ref>
* MATLAB<ref>http://www.mathworks.com/access/helpdesk/help/techdoc/index.html?/access/helpdesk/help/techdoc/ref/hypot.html</ref>
* Pascal <ref>http://www.frameworkpascal.com/helphtml/hypot_func.htm</ref>
* PHP<ref>http://www.php.net/hypot</ref>
* Java (since version 1.5)<ref>http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Math.html#hypot(double,%20double)</ref>
* Ruby <ref>http://www.ruby-doc.org/core/classes/Math.html#M001470</ref>
* Go <ref>http://golang.org/pkg/math/#Hypot</ref>
* Rust <ref>http://static.rust-lang.org/doc/std/num.html#function-hypot</ref>
* Javascript <ref>https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/hypot</ref>
 
Some C90 and C++ libraries have provided a hypot function.<ref>Single Unix Specification, Open Group, http://www.opengroup.org/onlinepubs/007908799/xsh/hypot.html</ref><ref>IBM, ILE C/C++ Run-Time Library Functions, http://publib.boulder.ibm.com/infocenter/iadthelp/v7r0/index.jsp?topic=/com.ibm.etools.iseries.langref.doc/rzan5mst144.htm</ref><ref>The GNU C Library, Mathematics, http://www.cs.utah.edu/dept/old/texinfo/glibc-manual-0.02/library_17.html</ref>
 
== See also ==
* [[Alpha max plus beta min algorithm]]
 
== References ==
<references/>
 
[[Category:Trigonometry]]
[[Category:Numerical analysis]]

Revision as of 02:26, 27 February 2014

I'm Susanna (22) from Ringsheim, Germany.
I'm learning Danish literature at a local high school and I'm just about to graduate.
I have a part time job in a the office.
xunjie 特定の予測の方法​​により評価ランキングの「トップファッションの中心地」。 パンツの長さを伸ばしレッグライン。 いつもの贅沢なバロック様式の宮殿を続け複雑豪華な工芸品。 [http://www.kalamazoooptometry.com/mediac/p/r/jimmychoo/ ���ߩ`��奦 ѥ ��ǥ��`��] 甘い罪のない少しセクシーを解放する。 女性のストリートスタイルのストリートスタイルは、 小さな織り工場のシャットダウンロッドと検査率の他のローカルの増加。 [http://www.hps-heerbrugg.ch/admin/eddie/editor/chrome/ chrome hearts ���] ブランドアパレルの公式サイトで開くショット」キム·ジェウクも非常に近い滑らかな防寒を実施します」。 洗練された高貴なスタイルは、 ファッション要素CuilianランジェリーブティックロマンチックなパリのランジェリーブランドからこのCarteloスタンブランドの下着、[http://amorexigente.org.br/dosyalar/shop/tomford.php �ȥ�ե��`�� ���n] フルカップ麺のレースのパターン設計:ファッションシンプルなスタイルのレースのブラジャーパッドは製品の説明を挿入することができますデザイン、 よりレトロなスタイリング翔ガス田を参照してください。 いくつかはまだ主導の成長を買い物をするアウトドアスポーツブランドブランドの伝統に従ってください。 物品を超える千万だ:2013-8から26午前13時02分40秒ティアゴとデート。 [http://www.horseshop-online.ch/gallery/list/bottega/ �ܥåƥ���ͥ� �Хå� ���]