Skip to content

Complex numbers: access to real and imag #64

@martin-henz

Description

@martin-henz

In Python, this works with

my_complex . real
my_complex . imag

To be consistent with Source and SICP, we will not include the dot notation in Python §1-4. Instead, I suggest we introduce primitive functions.

real(my_complex)
imag(my_complex)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions