This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mark.dickinson
Recipients NathanFallet, mark.dickinson, serhiy.storchaka, steven.daprano
Date 2021-04-13.13:48:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1618321686.11.0.431968211267.issue43830@roundup.psfhosted.org>
In-reply-to
Content
FWIW, if you're specifically interested in complex square roots rather than powers in general, I'd recommend using `cmath.sqrt(value)` rather than `value**0.5` - there are fewer intermediate steps involved in computing `cmath.sqrt`, and the returned value will in general be a bit more accurate, and better defined in corner cases. (And probably slightly faster too, in the rare situations where that matters.)
History
Date User Action Args
2021-04-13 13:48:06mark.dickinsonsetrecipients: + mark.dickinson, steven.daprano, serhiy.storchaka, NathanFallet
2021-04-13 13:48:06mark.dickinsonsetmessageid: <1618321686.11.0.431968211267.issue43830@roundup.psfhosted.org>
2021-04-13 13:48:06mark.dickinsonlinkissue43830 messages
2021-04-13 13:48:05mark.dickinsoncreate