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

Imaginary part to 4D and 3D graphes [Enhancement] #2

Open
Mysticpasta1 opened this issue Jul 6, 2023 · 7 comments
Open

Imaginary part to 4D and 3D graphes [Enhancement] #2

Mysticpasta1 opened this issue Jul 6, 2023 · 7 comments
Assignees
Labels
enhancement New feature or request

Comments

@Mysticpasta1
Copy link

I want to introduce an imaginary part to the 4d graphs as a black and white gradient
that can be switched to show only real, only imaginary, or both with keybind i

@Mysticpasta1
Copy link
Author

useful for graphes like the sqrt(x) and can be done for y, z, and w too

@Mysticpasta1
Copy link
Author

talk to me on discord, I'm one of your friends on there

@SerrpentDagger SerrpentDagger added the enhancement New feature or request label Jul 6, 2023
@SerrpentDagger SerrpentDagger self-assigned this Jul 6, 2023
@Mysticpasta1
Copy link
Author

I wanted imaginary numbers to be represented on the same graph as real but using a black and white gradient
the graph numbers and look could change via a new keybind i for imaginary, switching between real R, imaginary I, and complex I + R
in case of 0 it would look like, R -> 0, I -> 0i, and complex -> 0i + 0
same for all number on all axes

1 similar comment
@Mysticpasta1
Copy link
Author

I wanted imaginary numbers to be represented on the same graph as real but using a black and white gradient
the graph numbers and look could change via a new keybind i for imaginary, switching between real R, imaginary I, and complex I + R
in case of 0 it would look like, R -> 0, I -> 0i, and complex -> 0i + 0
same for all number on all axes

@Mysticpasta1
Copy link
Author

better layer imaginary as a black and white gradient on top of a complex number graph f: (xi + x, yi + y, zi + z, wi + w)
i = imaginary component, with a real layer with it, this layer only shows with complex component plots or imaginary component plots! func[][][][] can be used with this, and []i = imaginary component of a function.

https://www.wolframalpha.com/input?i=%5B%2F%2FMATH%3Asqrt%28n%29%2F%2F%5D
sqrt of z looking toward positive x

@SerrpentDagger
Copy link
Owner

Discord-based clarification:
The request is for increased feasibility of graphing complex-valued functions of Cartesian space.
This will be implemented through enhancements to the multi-value system already in place, namely colouring of individual layers.

@SerrpentDagger
Copy link
Owner

SerrpentDagger commented Oct 28, 2023

I've decided to overhaul the graphing system to allow for more flexibility, which could then properly support complex numbers and vector fields, etc. That will take a while, but I'm making progress. In the meantime, it's worth noting that you can already calculate complex values with func[][][] blocks, and render them with []layer[] blocks or as modulus. The only problem here is a lack of distinct colouring for the different layers. I've attached an example workspace for those interested.

Complex Numbers Demo.zip

(Edit: Just unzip the archive and place the folder with the workspace.gcws file into your workspaces folder.)

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

No branches or pull requests

2 participants