Sha256: 4a51349852b4bdf6905a4b1f4372137a578ccac079252c8fb379c2277b09dcb4

Contents?: true

Size: 1.29 KB

Versions: 12

Compression:

Stored size: 1.29 KB

Contents

o:$YARD::CodeObjects::MethodObject:@scope:
class:@visibility:public:
@pathI"Math.hypot:EF:@parameters[:@files[[I"math.c;T0:@current_file_has_commentsF:
@name:
hypot:@source_type:c:
@tags[:@docstringIC:YARD::Docstring"…Returns sqrt(x**2 + y**2), the hypotenuse of a right-angled triangle
with sides <i>x</i> and <i>y</i>.

   Math.hypot(3, 4)   #=> 5.0;F:@objectIu:YARD::StubProxyMath.hypot;F:
@summary0:@ref_tags[;[o:YARD::Tags::OverloadTag
:@tag_nameI"
overload;F:
@text0;;:@types0:@signatureI"hypot(x, y);F;IC;";F;Iu;Math.hypot;F;0;[;[o:YARD::Tags::Tag
;I"return;F;I";F;0;[I"
Float;F;0:	@allI"@return [Float];F;[[:x0[:y0;Iu;Math.hypot;F; I"¯Returns sqrt(x**2 + y**2), the hypotenuse of a right-angled triangle
with sides <i>x</i> and <i>y</i>.

   Math.hypot(3, 4)   #=> 5.0


@overload hypot(x, y)
  @return [Float];F:@namespaceIu;	Math;F:@docstring_extra0:@sourceI"]/*
 *  call-seq:
 *     Math.hypot(x, y)    -> float
 *
 *  Returns sqrt(x**2 + y**2), the hypotenuse of a right-angled triangle
 *  with sides <i>x</i> and <i>y</i>.
 *
 *     Math.hypot(3, 4)   #=> 5.0
 */

static VALUE
math_hypot(VALUE obj, VALUE x, VALUE y)
{
    Need_Float2(x, y);
    return DBL2NUM(hypot(RFLOAT_VALUE(x), RFLOAT_VALUE(y)));
};F

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
pry-doc-0.4.4 lib/pry-doc/core_docs_19/objects/Math/hypot_c.dat
pry-doc-0.4.3 lib/pry-doc/core_docs_19/objects/Math/hypot_c.dat
pry-doc-0.4.2 lib/pry-doc/core_docs_19/objects/Math/hypot_c.dat
pry-doc-0.4.1 lib/pry-doc/core_docs_19/objects/Math/hypot_c.dat
pry-doc-0.4.0 lib/pry-doc/core_docs_19/objects/Math/hypot_c.dat
pry-doc-0.3.0 lib/pry-doc/core_docs_19/objects/Math/hypot_c.dat
pry-doc-0.2.4pre1 lib/pry-doc/core_docs_19/objects/Math/hypot_c.dat
pry-doc-0.2.3pre1 lib/pry-doc/core_docs_19/objects/Math/hypot_c.dat
pry-doc-0.2.1 lib/pry-doc/core_docs_19/objects/Math/hypot_c.dat
pry-doc-0.2.0 lib/pry-doc/core_docs_19/objects/Math/hypot_c.dat
pry-doc-0.1.5pre1 lib/pry-doc/core_docs_19/objects/Math/hypot_c.dat
pry-0.6.9pre1-i386-mingw32 lib/pry/core_docs_19/objects/Math/hypot_c.dat