Skip to content

Implement .real and .imag attributes on complex numbers #229

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

Closed
certik opened this issue Mar 14, 2022 · 0 comments · Fixed by #256
Closed

Implement .real and .imag attributes on complex numbers #229

certik opened this issue Mar 14, 2022 · 0 comments · Fixed by #256

Comments

@certik
Copy link
Contributor

certik commented Mar 14, 2022

Implement .real and .imag attributes on complex numbers:

>>> y = 3+3j
>>> y
(3+3j)
>>> y.real
3.0
>>> y.imag
3.0

Then use this to implement #230.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant