Skip to content
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

Feature request: Plotting complex number functions #176

Open
withjak opened this issue Jun 1, 2024 · 0 comments
Open

Feature request: Plotting complex number functions #176

withjak opened this issue Jun 1, 2024 · 0 comments

Comments

@withjak
Copy link

withjak commented Jun 1, 2024

Clojure functions to plot functions with complex input and complex output.

For each function there should be two 2-D plots. One showing the inputs. And another showing the outputs. This is sometimes referred to as z-w planes method.

It would be helpful to see what transformations are happening if we carefully select the inputs to be points on grid lines. Probably providing each line a distinct color

## Example inputs:
# parallel to x-axis
(0, 0), (1, 0), (2, 0), (3, 0), (4, 0), (5, 0), (6, 0), (7, 0), (8, 0), (9, 0)
(0, 1), (1, 1), (2, 1), (3, 1), (4, 1), (5, 1), (6, 1), (7, 1), (8, 1), (9, 1)
(0, 2), (1, 2), (2, 2), (3, 2), (4, 2), (5, 2), (6, 2), (7, 2), (8, 2), (9, 2)

# parallel to y-axis
line x = 0 
line x = 1
line x = 2
Screenshot 2024-06-01 at 3 10 11 PM

More details here: Complex Functions as Mappings

@sritchie Your initial try Error: complex is not defined

Maybe for later investigations:
Another interesting visualisation technique
Plot on 3-D Cartesian coordinate system only three variables out of the below 4 variables:
Re(input), Im(input), Re(output), Im(output)
Visualizing Complex Functions
More on this later once i actually understand it.

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

No branches or pull requests

1 participant