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

Better syntax for x,y = first.(xy),last.(xy) #82

Open
dlfivefifty opened this issue Jun 3, 2021 · 2 comments
Open

Better syntax for x,y = first.(xy),last.(xy) #82

dlfivefifty opened this issue Jun 3, 2021 · 2 comments

Comments

@dlfivefifty
Copy link
Member

Right now we can construct the basic monomials via e.g.

P = Zernike()
xy = axes(P,1)
x,y = first.(xy),last.(xy)

which already isn't very nice but even worse if we do 3D do we really want to write:

P = ZernikeBall()
xyz = axes(P,1)
x,y,z = first.(xyz),getindex.(xyz,2),last.(xyz)

The catch: what's a good name???? Best I could come up with is

P = Zernike()
x,y,z = coordinateaxes(P,1)
@MikaelSlevinsky
Copy link
Member

What about cartesianaxes? That generalizes: polaraxes, parabolicaxes.

@TSGut
Copy link
Member

TSGut commented Jun 3, 2021

I was also thinking about options involving "cartesian", so I like cartesianaxes.

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

3 participants