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

Fix genus 4 prym eigenform printing #233

Open
sfreedman67 opened this issue Jun 3, 2023 · 1 comment
Open

Fix genus 4 prym eigenform printing #233

sfreedman67 opened this issue Jun 3, 2023 · 1 comment

Comments

@sfreedman67
Copy link
Collaborator

sfreedman67 commented Jun 3, 2023

I found some code that improves how the Prym eigenform in genus 4 prints:

def g4_graphical_surface(w, h, t, e):
    s = prym4(w, h, t, e)
    D = e^2 + 4 * w * h
    lmbd = (e + sqrt(D))/2
    from flatsurf.geometry.similarity import SimilarityGroup
    SG = SimilarityGroup(QQbar)
    def pos(n):
        if n == 0:
            return SG((0, 0))
        elif n == 1:
            return SG((-(w/2 - lmbd/2), lmbd/2))
        elif n == 2:
            return SG((-lmbd/2, lmbd/2 + h/2))
        elif n == 3:
            return SG((-lmbd/2, lmbd/2 + h))
        else:
            assert False
    return s.graphical_surface(cached=False, polygon_labels=False, edge_labels=False, default_position_function=pos)

(It wouldn't be hard to improve the printing of the genus 3 eigenform either.)

@saraedum
Copy link
Member

I am changing quite a bit how plotting works in #243. I am wondering about adding a better layouting algorithm to sage-flatsurf. Maybe it's a good idea to discuss how this generalizes to more general surfaces in our weekly call.

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

No branches or pull requests

2 participants