Lines Matching refs:Complex

6138       return $$$('Complex').$new(0, 0)
11617 …send__,raise,equal?,-,*,div,<,-@,ceil,to_f,denominator,to_r,==,floor,/,%,Complex,zero?,numerator,a…
11763 return $Kernel.$Complex(0, self)
11980 return $Kernel.$Complex(self, 0)
16451 return $$$('Complex').$new(self, 0)['$**'](other.$to_f())
19799 return $def(self, '$Complex', function $$Complex(real, imag) {
19804 return $$('Complex').$new(real, imag)
19806 return $$('Complex').$new(real, 0)
19817 return $$('Complex').$from_string(self)
19825 …uire,real?,===,raise,new,*,cos,sin,attr_reader,freeze,class,==,real,imag,Complex,-@,+,__coerced__,…
19830 var self = $klass($base, $super, 'Complex');
19869 if ($eqeqeq($$$('Complex'), other)) {
19872 return [$$$('Complex').$new(other, 0), self]
19874 … return $Kernel.$raise($$$('TypeError'), "" + (other.$class()) + " can't be coerced into Complex")
19881 if ($eqeqeq($$$('Complex'), other)) {
19901 return $Kernel.$Complex(self.real['$-@'](), self.imag['$-@']())
19907 if ($eqeqeq($$$('Complex'), other)) {
19908 … return $Kernel.$Complex($rb_plus(self.real, other.$real()), $rb_plus(self.imag, other.$imag()))
19910 return $Kernel.$Complex($rb_plus(self.real, other), self.imag)
19919 if ($eqeqeq($$$('Complex'), other)) {
19920 … return $Kernel.$Complex($rb_minus(self.real, other.$real()), $rb_minus(self.imag, other.$imag()))
19922 return $Kernel.$Complex($rb_minus(self.real, other), self.imag)
19931 if ($eqeqeq($$$('Complex'), other)) {
19932 …return $Kernel.$Complex($rb_minus($rb_times(self.real, other.$real()), $rb_times(self.imag, other.…
19934 return $Kernel.$Complex($rb_times(self.real, other), $rb_times(self.imag, other))
19943 if ($eqeqeq($$$('Complex'), other)) {
19945 return $$$('Complex').$new($$$($$$('Float'), 'NAN'), $$$($$$('Float'), 'NAN'))
19950 return $Kernel.$Complex(self.real.$quo(other), self.imag.$quo(other))
19961 return $$$('Complex').$new(1, 0)
19962 } if ($eqeqeq($$$('Complex'), other)) {
19969 return $$$('Complex').$polar(nr, ntheta);
19981 …x = $Kernel.$Complex($rb_minus($rb_times(x.$real(), x.$real()), $rb_times(x.$imag(), x.$imag())), …
19993 return $$$('Complex').$polar(r['$**'](other), $rb_times(theta, other));
20019 return $Kernel.$Complex(self.real, self.imag['$-@']())
20031 …if ($truthy(($ret_or_1 = ($truthy(($ret_or_2 = $$('Complex')['$==='](other))) ? (self.real.$class(…
20043 $Kernel.$raise($$$('TypeError'), "" + (other.$class()) + " can't be coerced into Complex");
20060 return "Complex:" + (self.real) + ":" + (self.imag)
20084 …return $Kernel.$Complex($rb_times(self.real.$numerator(), $rb_divide(d, self.real.$denominator()))…
20199 // i => Complex(0, 1)
20200 return $Kernel.$Complex(0, 1);
20203 // -i => Complex(0, -1)
20204 return $Kernel.$Complex(0, -1);
20207 // +i => Complex(0, 1)
20208 return $Kernel.$Complex(0, 1);
20210 // anything => Complex(0, 0)
20211 return $Kernel.$Complex(0, 0);
20217 // 3i => Complex(0, 3)
20218 return $Kernel.$Complex(0, real);
20220 // 3 => Complex(3, 0)
20221 return $Kernel.$Complex(real, 0);
20224 // 3+2i => Complex(3, 2)
20225 return $Kernel.$Complex(real, imag);
20315 …($eqeqeq($$$('Float'), num) || ($eqeqeq($$$('String'), num))) || ($eqeqeq($$$('Complex'), num)))) {
20317 …($eqeqeq($$$('Float'), den) || ($eqeqeq($$$('String'), den))) || ($eqeqeq($$$('Complex'), den)))) {
23358 $Object.$autoload("Complex", "corelib/complex");