D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
Complex
/
Filename :
rectangular-i.ri
back
Copy
U:RDoc::AnyMethod[iI"rectangular:ETI"Complex#rectangular;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"7Returns the array <tt>[self.real, self.imag]</tt>:;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I")Complex.rect(1, 2).rect # => [1, 2] ;T:@format0o; ; [I"MSee {Rectangular Coordinates}[rdoc-ref:Complex@Rectangular+Coordinates].;T@o; ; [I" If +self+ was created with ;TI"Q{polar coordinates}[rdoc-ref:Complex@Polar+Coordinates], the returned value ;TI"%is computed, and may be inexact:;T@o;; [I"PComplex.polar(1.0, 1.0).rect # => [0.5403023058681398, 0.8414709848078965] ;T; 0o; ; [I"6Complex#rectangular is an alias for Complex#rect.;T: @fileI"complex.c;T:0@omit_headings_from_table_of_contents_below0I"rect -> array ;T0[[I" rect;To;; [ o; ; [ I">Returns a new \Complex object formed from the arguments, ;TI"3each of which must be an instance of Numeric, ;TI".or an instance of one of its subclasses: ;TI")\Complex, Float, Integer, Rational; ;TI"Msee {Rectangular Coordinates}[rdoc-ref:Complex@Rectangular+Coordinates]:;T@o;; [I"-Complex.rect(3) # => (3+0i) ;TI"=Complex.rect(3, Math::PI) # => (3+3.141592653589793i) ;TI">Complex.rect(-3, -Math::PI) # => (-3-3.141592653589793i) ;T; 0o; ; [I"8\Complex.rectangular is an alias for \Complex.rect.;T;@ ;0[I" rect;T@ I"();T@ FI"Complex;TcRDoc::NormalClass00