⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.133
Server IP:
185.119.109.197
Server:
Linux managedhosting.chostar.me 5.15.0-160-generic #170-Ubuntu SMP Wed Oct 1 10:06:56 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.1.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
ri
/
3.0.0
/
system
/
Complex
/
View File Name :
cdesc-Complex.ri
U:RDoc::NormalClass[iI"Complex:ET@I"Numeric;To:RDoc::Markup::Document:@parts[o;;[o:RDoc::Markup::Paragraph;[ I"FA complex number can be represented as a paired real number with ;TI"Fimaginary unit; a+bi. Where a is real part, b is imaginary part ;TI":and i is imaginary unit. Real a equals complex a+0i ;TI"mathematically.;To:RDoc::Markup::BlankLine o; ;[I"AComplex object can be created as literal, and also by using ;TI"BKernel#Complex, Complex::rect, Complex::polar or to_c method.;T@o:RDoc::Markup::Verbatim;[ I"%2+1i #=> (2+1i) ;TI"%Complex(1) #=> (1+0i) ;TI"%Complex(2, 3) #=> (2+3i) ;TI"HComplex.polar(2, 3) #=> (-1.9799849932008908+0.2822400161197344i) ;TI"%3.to_c #=> (3+0i) ;T:@format0o; ;[I"GYou can also create complex object from floating-point numbers or ;TI" strings.;T@o;;[I"'Complex(0.3) #=> (0.3+0i) ;TI")Complex('0.3-0.5i') #=> (0.3-0.5i) ;TI".Complex('2/3+3/4i') #=> ((2/3)+(3/4)*i) ;TI"HComplex('1@2') #=> (-0.4161468365471424+0.9092974268256817i) ;TI" ;TI"'0.3.to_c #=> (0.3+0i) ;TI")'0.3-0.5i'.to_c #=> (0.3-0.5i) ;TI".'2/3+3/4i'.to_c #=> ((2/3)+(3/4)*i) ;TI"H'1@2'.to_c #=> (-0.4161468365471424+0.9092974268256817i) ;T;0o; ;[I">A complex object is either an exact or an inexact number.;T@o;;[I".Complex(1, 1) / 2 #=> ((1/2)+(1/2)*i) ;TI"(Complex(1, 1) / 2.0 #=> (0.5+0.5i);T;0: @fileI"complex.c;T:0@omit_headings_from_table_of_contents_below0o;;[ ; I"*ext/bigdecimal/lib/bigdecimal/util.rb;T;0o;;[ ; I"%ext/json/lib/json/add/complex.rb;T;0; 0;0[ [U:RDoc::Constant[i I"I;TI"Complex::I;T:public0o;;[o; ;[I"The imaginary unit.;T; @5;0@5@cRDoc::NormalClass0[ [[I" class;T[[;[ [I"json_create;TI"%ext/json/lib/json/add/complex.rb;T[I" polar;TI"complex.c;T[I" rect;T@T[I"rectangular;T@T[:protected[ [:private[ [I" instance;T[[;[-[I"*;T@T[I"**;T@T[I"+;T@T[I"-;T@T[I"-@;T@T[I"/;T@T[I"<=>;T@T[I"==;T@T[I"abs;T@T[I" abs2;T@T[I" angle;T@T[I"arg;T@T[I"as_json;T@Q[I" conj;T@T[I"conjugate;T@T[I"denominator;T@T[I" fdiv;T@T[I"finite?;T@T[I" hash;T@T[I" imag;T@T[I"imaginary;T@T[I"infinite?;T@T[I"inspect;T@T[I"magnitude;T@T[I"numerator;T@T[I" phase;T@T[I" polar;T@T[I"quo;T@T[I"rationalize;T@T[I" real;T@T[I" real?;T@T[@V@T[I"rectangular;T@T[I" to_c;T@T[I" to_d;TI"*ext/bigdecimal/lib/bigdecimal/util.rb;T[I" to_f;T@T[I" to_i;T@T[I"to_json;T@Q[I" to_r;T@T[I" to_s;T@T[;[ [;[ [ [U:RDoc::Context::Section[i 0o;;[ ; 0;0[@5@8@;@;cRDoc::TopLevel