<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/complex.c, branch v3_2_11</title>
<subtitle>The Ruby Programming Language</subtitle>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/'/>
<entry>
<title>merge revision(s) dc146babf47a84bbd1f176d766637d4a40327019, f23d5028059078a346efc977287b669d494a5a3f, a0f7de814ae5c299d6ce99bed5fb308a05d50ba0: [Backport #20296]</title>
<updated>2024-07-15T00:50:14+00:00</updated>
<author>
<name>nagachika</name>
<email>nagachika@ruby-lang.org</email>
</author>
<published>2024-07-15T00:50:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=90f4c5dc73af3fff76500dd4223792a6d9f58636'/>
<id>90f4c5dc73af3fff76500dd4223792a6d9f58636</id>
<content type='text'>
	[Bug #20296] Clear errinfo when `exception: false`

	[Bug #20296] Refine the test

	[Bug #20296] Fix the default assertion message
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
	[Bug #20296] Clear errinfo when `exception: false`

	[Bug #20296] Refine the test

	[Bug #20296] Fix the default assertion message
</pre>
</div>
</content>
</entry>
<entry>
<title>[Bug #19087] Disallow successive underscores in Complex string</title>
<updated>2022-12-01T16:35:45+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2022-10-28T10:28:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=c0dc717c45fc3abc64a337c3481bc4555b675d87'/>
<id>c0dc717c45fc3abc64a337c3481bc4555b675d87</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Using UNDEF_P macro</title>
<updated>2022-11-16T09:58:33+00:00</updated>
<author>
<name>S-H-GAMELINKS</name>
<email>gamelinks007@gmail.com</email>
</author>
<published>2022-11-15T04:24:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=1f4f6c9832d83e7ebd65ccf4e95cef358b3512c6'/>
<id>1f4f6c9832d83e7ebd65ccf4e95cef358b3512c6</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Improve performance some `Integer` and `Float` methods [Feature #19085] (#6638)</title>
<updated>2022-10-27T16:13:16+00:00</updated>
<author>
<name>S.H</name>
<email>gamelinks007@gmail.com</email>
</author>
<published>2022-10-27T16:13:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=c6f439a6a8df582416e756d7511aa4d9c72071a9'/>
<id>c6f439a6a8df582416e756d7511aa4d9c72071a9</id>
<content type='text'>
* Improve some Integer and Float methods

* Using alias and Remove unnecessary code

* Remove commentout code</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Improve some Integer and Float methods

* Using alias and Remove unnecessary code

* Remove commentout code</pre>
</div>
</content>
</entry>
<entry>
<title>Reduce type check of arguments at Complex creation</title>
<updated>2022-10-23T07:44:43+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2022-10-23T04:42:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=86450d03a8c1570571c20452578cb923060e1d1f'/>
<id>86450d03a8c1570571c20452578cb923060e1d1f</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[Bug #19004] `Complex.polar` handles complex singular `abs` argument</title>
<updated>2022-10-23T03:59:06+00:00</updated>
<author>
<name>Stephen Ierodiaconou</name>
<email>stevegeek@gmail.com</email>
</author>
<published>2022-10-23T03:59:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=54cad3123a07583c90e85bcfc55ebd87124c1250'/>
<id>54cad3123a07583c90e85bcfc55ebd87124c1250</id>
<content type='text'>
`Complex.polar` accepts Complex values as arguments for the polar form as long
as the value of the complex has no imaginary part (ie it is 'real'). In
`f_complex_polar` this is handled by extracting the real part of the arguments.
However in the case `polar` is called with only a single argument, the absolute
value (abs), then the Complex is created without applying a check on the type
of abs, meaning it is possible to create a Complex where the real part is itself
an instance of a Complex. This change removes the short circuit for the single
argument case meaning the real part extraction is performed correctly
(by f_complex_polar).

Also adds an example to `spec/ruby/core/complex/polar_spec.rb` to check that
the real part of a complex argument is correctly extracted and used in the
resulting Complex real and imaginary parts.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
`Complex.polar` accepts Complex values as arguments for the polar form as long
as the value of the complex has no imaginary part (ie it is 'real'). In
`f_complex_polar` this is handled by extracting the real part of the arguments.
However in the case `polar` is called with only a single argument, the absolute
value (abs), then the Complex is created without applying a check on the type
of abs, meaning it is possible to create a Complex where the real part is itself
an instance of a Complex. This change removes the short circuit for the single
argument case meaning the real part extraction is performed correctly
(by f_complex_polar).

Also adds an example to `spec/ruby/core/complex/polar_spec.rb` to check that
the real part of a complex argument is correctly extracted and used in the
resulting Complex real and imaginary parts.
</pre>
</div>
</content>
</entry>
<entry>
<title>[DOC] Add the polar form in String#to_c</title>
<updated>2022-10-17T03:02:34+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2022-10-17T03:00:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=7cf37a57221c085aaf29e260060ea0e709af1e93'/>
<id>7cf37a57221c085aaf29e260060ea0e709af1e93</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Consider Complex from Complex cases</title>
<updated>2022-09-02T05:33:23+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2022-08-31T04:20:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=b5cf3564471af6e11760bf381251f918cdcd7398'/>
<id>b5cf3564471af6e11760bf381251f918cdcd7398</id>
<content type='text'>
The assertions that "an argument of a Complex constructor must not be
a Complex" may not hold for some Numeric objects.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The assertions that "an argument of a Complex constructor must not be
a Complex" may not hold for some Numeric objects.
</pre>
</div>
</content>
</entry>
<entry>
<title>[Bug #18937] Coerce non-real non-Numeric into Complex at comparisons</title>
<updated>2022-09-02T05:33:23+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2022-08-31T02:01:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=9212d963070612e669c40e5fde7954f19d648002'/>
<id>9212d963070612e669c40e5fde7954f19d648002</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Turn `f_zero_p` to `bool`</title>
<updated>2022-09-02T05:33:23+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2022-08-31T01:59:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=a9b59e24f49f669f6ad2f3238c4c518027a7f72d'/>
<id>a9b59e24f49f669f6ad2f3238c4c518027a7f72d</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
