forked frompython/cpython
- Notifications
You must be signed in to change notification settings - Fork0
Commit2585bce
pythongh-69639: Add mixed-mode rules for complex arithmetic (C-like) (pythonGH-124829)
"Generally, mixed-mode arithmetic combining real and complex variables shouldbe performed directly, not by first coercing the real to complex, lest the signof zero be rendered uninformative; the same goes for combinations of pureimaginary quantities with complex variables." (c) Kahan, W: Branch cuts forcomplex elementary functions.This patch implements mixed-mode arithmetic rules, combining real andcomplex variables as specified by C standards since C99 (in particular,there is no special version for the true division with real lhsoperand). Most C compilers implementing C99+ Annex G have only thesespecial rules (without support for imaginary type, which is going to bedeprecated in C2y).1 parent6d5f544 commit2585bce
File tree
0 file changed
+0
-0
lines changed0 file changed
+0
-0
lines changed0 commit comments
Comments
(0)