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
Additional functionality for Farey symbols #15265
Comments
This comment has been minimized.
This comment has been minimized.
comment:3
Pedantic comments: you need a proper commit message on the patch, or the release manager will complain; and there is a failing doctest in the |
Reviewer: David Loeffler |
comment:4
OK, here's something a bit more important. The LaTeX display for Farey symbols doesn't work in the notebook: instead of rendering the Farey symbol it prints a little box with the raw LaTeX code in it. The problem is that the notebook uses MathJax for its latex rendering, and xypic is not supported by MathJax. I did warn you about this some while back. Other than that the new code looks fine. |
Work Issues: LaTeX display doesn't work |
comment:5
I do understand that the notebook (mathjax) currently does not support xymatrix. There are some attempts to make xymatrix also work for mathjax which would cure this problem. For the time being the situation is not very different from the one for using tikz with graphs. So the usual story:
Then
does produce a latex view of the Farey symbol. I would hope that xymatrix would be included in in mathjax sooner than later. Please have a look at http://sonoisa.github.io/xyjax/xyjax.html. One could of course check wether the latex is produced in a notebook or I'll fix the (minor) problems tomorrow. Thanks for the prompt review. |
comment:6
|
comment:7
I'm not sure that the comparison with using tikz for graphs is a fair one. There's clearly no hope of getting standard LaTeX to render graphs, so it's reasonable to require an extra package. On the other hand, one can produce a viable approximation to a Farey symbol without using any extra packages, as in my recent ticket #14971; this may not look quite so nice as your version, but it avoids these compatibility issues. Can you add a doctest illustrating your changes to arithgroup_element.acton? |
comment:8
I have added two doctests to arithgroup_element.acton. I do understand your concern about the latex. The question here is: I have modified the The only other alternative I see is to add yet another property to the Farey symbol like graph() or the like to keep the nice |
latex as would produced by my new latex version |
Attachment: test latex for Farey symbols.tiff.gz use in sage worksheet |
Attachment: test new Farey symbols -- Sage.pdf.gz Attachment: farey.patch.gz Farey symbol enhancement |
comment:9
Just so that I understand correctly, there are two potential LaTeX outputs, one with (here) and one without xy (at #14971)? How about you do
Since xy is in the default latex preamble we should probably add it to the avoid list by default, but that would be for another ticket... |
Branch: u/hmonien/ticket/15265 |
comment:11
Added modified version of David's latex for FareySymbol. |
Commit: |
Branch pushed to git repo; I updated commit sha1. New commits:
|
Changed branch from u/hmonien/ticket/15265 to u/mraum/ticket/15265 |
comment:15
Sorry for that, I'm not yet used to the new Trac system. I'm now changing the branch. |
Branch pushed to git repo; I updated commit sha1. New commits:
|
Changed reviewer from David Loeffler to David Loeffler, Martin Raum |
comment:17
Hartmut, could you review the few changes that I made to your code? I have the following questions/comments, which you could help me with: reference for rademacher_matrix in farey.cpp? I still need to test the code, but hopefully I'll have time for this tomorrow. |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:19
Martin,
all the changes seem to be okay. I think there was one more test for odd and even groups which try to remember ... . |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:21
Ok, I made all necessary changes. Can you have a look? Just one, last question: Why do you actually use extern "C"? farey_symbols.pyx is translated to a C++ file, so that shouldn't be necessary. |
comment:22
This was added by somebody - not me - in some previous version of SAGE to have it working on some particular machine. Otherwise everything looks fine now. |
Changed work issues from LaTeX display doesn't work to none |
comment:23
It's not wrong, and so let's keep it so that we don't break any architecture. |
comment:25
See #15719 for a documentation issue |
The additional functionality included in this patch are:
Added tests for LLT algorithm and reduction to cusp.
CC: @vbraun @loefflerd
Component: modular forms
Keywords: Farey symbol, arithmetic subgroups
Author: Hartmut Monien
Branch/Commit: u/mraum/ticket/15265 @
f24bf98
Reviewer: David Loeffler, Martin Raum
Issue created by migration from https://trac.sagemath.org/ticket/15265
The text was updated successfully, but these errors were encountered: