D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
Math
/
Filename :
hypot-c.ri
back
Copy
U:RDoc::AnyMethod[iI" hypot:ETI"Math::hypot;TT:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I")Returns <tt>sqrt(a**2 + b**2)</tt>, ;TI"Bwhich is the length of the longest side +c+ (the hypotenuse) ;TI"Fof the right triangle whose other sides have lengths +a+ and +b+.;To:RDoc::Markup::BlankLine o:RDoc::Markup::List: @type:BULLET:@items[o:RDoc::Markup::ListItem:@label0; [o; ; [I"3Domain of +a+: <tt>[-INFINITY, INFINITY]</tt>.;To;;0; [o; ; [I"3Domain of +ab: <tt>[-INFINITY, INFINITY]</tt>.;To;;0; [o; ; [I"#Range: <tt>[0, INFINITY]</tt>.;T@o; ; [I"Examples:;T@o:RDoc::Markup::Verbatim; [ I"$hypot(0.0, 1.0) # => 1.0 ;TI"?hypot(1.0, 1.0) # => 1.4142135623730951 # sqrt(2.0) ;TI"$hypot(3.0, 4.0) # => 5.0 ;TI"%hypot(5.0, 12.0) # => 13.0 ;TI">hypot(1.0, sqrt(3.0)) # => 1.9999999999999998 # Near 2.0 ;T:@format0o; ; [I"GNote that if either argument is +INFINITY+ or <tt>-INFINITY</tt>, ;TI"the result is +Infinity+.;T: @fileI"math.c;T:0@omit_headings_from_table_of_contents_below0I"Math.hypot(a, b) -> float ;T0[ I" (p1, p2);T@0FI" Math;TcRDoc::NormalModule00