- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add NEWS.md entry re. raising one or negative one to a negative integer power #21836
Conversation
NEWS.md
Outdated
@@ -337,6 +337,9 @@ Library improvements | |||
* A new `Dates.Time` type was added that supports representing the time of day | |||
with up to nanosecond resolution ([#12274]). | |||
* Raising one or negative one to a negative integer power no longer | |||
throws a `DomainError` ([#18342]). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems like it could use a little more elaboration – i.e. what does it now do instead of throwing an error?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Better? :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Beautiful!
1334a6b
to
b1d60fb
Compare
NEWS.md
Outdated
@@ -337,6 +337,12 @@ Library improvements | |||
* A new `Dates.Time` type was added that supports representing the time of day | |||
with up to nanosecond resolution ([#12274]). | |||
* Raising one or negative one to a negative integer power formerly threw a `DomainError`. | |||
One raised to any negative integer power now yields one, negative one raised to any | |||
negative even integer power now yields one, and negative one raise to any negative |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
raised to any
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed on push. Thanks!
Clears #18342 from #21475 (comment). Best!