Sha256: 10b4deea8263b512f6f8f6dab0af9b534066dba45fdd2a831ef595fc85c7d901

Contents?: true

Size: 1.4 KB

Versions: 12

Compression:

Stored size: 1.4 KB

Contents

o:$YARD::CodeObjects::MethodObject:@scope:
instance:@visibility:public:
@pathI"Complex#magnitude:EF:@parameters[:@files[[I"complex.c;T0:@current_file_has_commentsF:
@name:magnitude:@source_type:c:
@tags[:@docstringIC:YARD::Docstring"1Returns the absolute part of its polar form.;F:@objectIu:YARD::StubProxyComplex#magnitude;F:
@summary0:@ref_tags[;[o:YARD::Tags::OverloadTag
:@tag_nameI"
overload;F:
@text0;:abs:@types0:@signatureI"abs;F;IC;";F;Iu;Complex#magnitude;F;0;[;[:	@allI";F;[;Iu;Complex#magnitude;Fo;
;I"
overload;F;0;;;0;I"magnitude;F;IC;";F;Iu;Complex#magnitude;F;0;[;[; I";F;[;Iu;Complex#magnitude;F; I"UReturns the absolute part of its polar form.


@overload abs
@overload magnitude;F:@namespaceIu;Complex;F:@docstring_extra0:@sourceI"+/*
 * call-seq:
 *    cmp.abs        ->  real
 *    cmp.magnitude  ->  real
 *
 * Returns the absolute part of its polar form.
 */
static VALUE
nucomp_abs(VALUE self)
{
    get_dat1(self);

    if (f_zero_p(dat->real)) {
    VALUE a = f_abs(dat->imag);
    if (k_float_p(dat->real) && !k_float_p(dat->imag))
        a = f_to_f(a);
    return a;
    }
    if (f_zero_p(dat->imag)) {
    VALUE a = f_abs(dat->real);
    if (!k_float_p(dat->real) && k_float_p(dat->imag))
        a = f_to_f(a);
    return a;
    }
    return m_hypot(dat->real, dat->imag);
};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/Complex/magnitude_i.dat
pry-doc-0.4.3 lib/pry-doc/core_docs_19/objects/Complex/magnitude_i.dat
pry-doc-0.4.2 lib/pry-doc/core_docs_19/objects/Complex/magnitude_i.dat
pry-doc-0.4.1 lib/pry-doc/core_docs_19/objects/Complex/magnitude_i.dat
pry-doc-0.4.0 lib/pry-doc/core_docs_19/objects/Complex/magnitude_i.dat
pry-doc-0.3.0 lib/pry-doc/core_docs_19/objects/Complex/magnitude_i.dat
pry-doc-0.2.4pre1 lib/pry-doc/core_docs_19/objects/Complex/magnitude_i.dat
pry-doc-0.2.3pre1 lib/pry-doc/core_docs_19/objects/Complex/magnitude_i.dat
pry-doc-0.2.1 lib/pry-doc/core_docs_19/objects/Complex/magnitude_i.dat
pry-doc-0.2.0 lib/pry-doc/core_docs_19/objects/Complex/magnitude_i.dat
pry-doc-0.1.5pre1 lib/pry-doc/core_docs_19/objects/Complex/magnitude_i.dat
pry-0.6.9pre1-i386-mingw32 lib/pry/core_docs_19/objects/Complex/magnitude_i.dat