Lines Matching refs:Complex
6129 return $$$('Complex').$new(0, 0)
11608 …send__,raise,equal?,-,*,div,<,-@,ceil,to_f,denominator,to_r,==,floor,/,%,Complex,zero?,numerator,a…
11754 return $Kernel.$Complex(0, self)
11971 return $Kernel.$Complex(self, 0)
16442 return $$$('Complex').$new(self, 0)['$**'](other.$to_f())
19790 return $def(self, '$Complex', function $$Complex(real, imag) {
19795 return $$('Complex').$new(real, imag)
19797 return $$('Complex').$new(real, 0)
19808 return $$('Complex').$from_string(self)
19816 …uire,real?,===,raise,new,*,cos,sin,attr_reader,freeze,class,==,real,imag,Complex,-@,+,__coerced__,…
19821 var self = $klass($base, $super, 'Complex');
19860 if ($eqeqeq($$$('Complex'), other)) {
19863 return [$$$('Complex').$new(other, 0), self]
19865 … return $Kernel.$raise($$$('TypeError'), "" + (other.$class()) + " can't be coerced into Complex")
19872 if ($eqeqeq($$$('Complex'), other)) {
19892 return $Kernel.$Complex(self.real['$-@'](), self.imag['$-@']())
19898 if ($eqeqeq($$$('Complex'), other)) {
19899 … return $Kernel.$Complex($rb_plus(self.real, other.$real()), $rb_plus(self.imag, other.$imag()))
19901 return $Kernel.$Complex($rb_plus(self.real, other), self.imag)
19910 if ($eqeqeq($$$('Complex'), other)) {
19911 … return $Kernel.$Complex($rb_minus(self.real, other.$real()), $rb_minus(self.imag, other.$imag()))
19913 return $Kernel.$Complex($rb_minus(self.real, other), self.imag)
19922 if ($eqeqeq($$$('Complex'), other)) {
19923 …return $Kernel.$Complex($rb_minus($rb_times(self.real, other.$real()), $rb_times(self.imag, other.…
19925 return $Kernel.$Complex($rb_times(self.real, other), $rb_times(self.imag, other))
19934 if ($eqeqeq($$$('Complex'), other)) {
19936 return $$$('Complex').$new($$$($$$('Float'), 'NAN'), $$$($$$('Float'), 'NAN'))
19941 return $Kernel.$Complex(self.real.$quo(other), self.imag.$quo(other))
19952 return $$$('Complex').$new(1, 0)
19953 } if ($eqeqeq($$$('Complex'), other)) {
19960 return $$$('Complex').$polar(nr, ntheta);
19972 …x = $Kernel.$Complex($rb_minus($rb_times(x.$real(), x.$real()), $rb_times(x.$imag(), x.$imag())), …
19984 return $$$('Complex').$polar(r['$**'](other), $rb_times(theta, other));
20010 return $Kernel.$Complex(self.real, self.imag['$-@']())
20022 …if ($truthy(($ret_or_1 = ($truthy(($ret_or_2 = $$('Complex')['$==='](other))) ? (self.real.$class(…
20034 $Kernel.$raise($$$('TypeError'), "" + (other.$class()) + " can't be coerced into Complex");
20051 return "Complex:" + (self.real) + ":" + (self.imag)
20075 …return $Kernel.$Complex($rb_times(self.real.$numerator(), $rb_divide(d, self.real.$denominator()))…
20190 // i => Complex(0, 1)
20191 return $Kernel.$Complex(0, 1);
20194 // -i => Complex(0, -1)
20195 return $Kernel.$Complex(0, -1);
20198 // +i => Complex(0, 1)
20199 return $Kernel.$Complex(0, 1);
20201 // anything => Complex(0, 0)
20202 return $Kernel.$Complex(0, 0);
20208 // 3i => Complex(0, 3)
20209 return $Kernel.$Complex(0, real);
20211 // 3 => Complex(3, 0)
20212 return $Kernel.$Complex(real, 0);
20215 // 3+2i => Complex(3, 2)
20216 return $Kernel.$Complex(real, imag);
20306 …($eqeqeq($$$('Float'), num) || ($eqeqeq($$$('String'), num))) || ($eqeqeq($$$('Complex'), num)))) {
20308 …($eqeqeq($$$('Float'), den) || ($eqeqeq($$$('String'), den))) || ($eqeqeq($$$('Complex'), den)))) {
23349 $Object.$autoload("Complex", "corelib/complex");