2023-07-28 16:54:37 +0200 | received badge | ● Nice Question (source) |
2022-06-06 17:55:34 +0200 | received badge | ● Good Answer (source) |
2021-08-27 21:55:32 +0200 | received badge | ● Nice Answer (source) |
2021-02-25 03:05:41 +0200 | received badge | ● Taxonomist |
2019-02-06 22:33:20 +0200 | received badge | ● Famous Question (source) |
2018-11-03 00:52:26 +0200 | received badge | ● Notable Question (source) |
2018-06-18 21:53:34 +0200 | commented question | syllables on symbolic expression What exactly do you mean by syllable? The definition I'm familiar with is linguistic / phonological and on the face of it has nothing to do with symbolic expressions. |
2018-06-16 18:51:28 +0200 | commented answer | RecursionError when installing SageMath 8.2 Note that this path issue only seems to be a problem when running Sage for the first time. You should be able to reinstall python3 again with homebrew and use Sage without any problem (until you upgrade versions). |
2018-06-13 12:00:51 +0200 | answered a question | Algorithm for finding a defining polynomial for an unramified extension? The short answer is that this will depend on the way you defined your unramified extension. If, for instance, you defined it using If there's some other specific case you're interested in, perhaps you can edit your question to include the code that constructs that particular extension. What follows is "the long answer", or how I found this out, starting from knowing essentially nothing about algebraic number theory or any of SageMath's ANT functionality. Hopefully the description of the steps I took in diving into SageMath's source code will be helpful for you in finding the answers to any similar questions you might have in the future. Suppose we've defined R as follows: Then we can type to look at the docstring for this particular function. The resulting output, while somewhat helpful, does not explain what algorithm SageMath is using to compute it. However, it does contain a line pointing to the source code, something like: Now, it's a bit more convenient to look at this file online in e.g. the github mirror of the SageMath source code. I've linked to the specific line where the definition of In this case, it appears that this code simply returns We find that
In fact, we could have skipped some of the code-diving above as SageMath's reference site has a thematic tutorial on p-adics, see the documentation of However, to find the details of the "generator chosen for $\mathbb{F}_q$", we must return to the code: The code implementing this can be found here, which uses the Looking at the relevant part of that code, we see that If we look at the code for the class |
2018-06-13 10:01:54 +0200 | received badge | ● Enthusiast |
2018-06-11 22:21:29 +0200 | commented answer | What is the SAGE command for calculating a Frobenius number @eric_g Thanks for linking the ticket. I see that it links the same MO question. |
2018-06-11 17:59:40 +0200 | received badge | ● Popular Question (source) |
2018-06-11 17:58:28 +0200 | answered a question | What is the SAGE command for calculating a Frobenius number It appears that this functionality has not been implemented in SageMath. This comment and the associated answer by Stan Wagon at MathOverflow state that the Mathematica function uses the algorithm described here: A15: Frobenius Numbers by Lattice Point Enumeration by David Einstein, Daniel Lichtblau, Adam Strzebonski, and Stan Wagon. Here is another paper describing an algorithm by Dale Beihoffer, Jemimah Hendry, Albert Nijenhuis, and Stan Wagon with different properties. This algorithm of Böcker and Lipták is described in Beihoffer et al as "very elegant and simple", so perhaps that might be something easier to try to code, depending on your needs. |
2018-06-11 11:01:37 +0200 | commented answer | RecursionError when installing SageMath 8.2 Given the path shown in the post |
2018-06-11 10:58:40 +0200 | answered a question | RecursionError when installing SageMath 8.2 On the off-chance you're using Anaconda, try commenting out the You can uncomment it again after sage successfully runs (until you have to rebuild or upgrade Sage). |
2018-06-07 16:58:08 +0200 | answered a question | pdflatex not available from Jupyter in SageMath-8.1.app There are some suggestions in this question. However, the easiest thing to do might be to create a sagerc file per this page (I guess the default location is |
2018-06-07 16:53:33 +0200 | commented answer | How to add path on sage startup The first reference link should now point here http://doc.sagemath.org/html/en/refer... |
2018-06-07 02:20:30 +0200 | commented answer | preparser state for regexs Here is the ticket https://trac.sagemath.org/ticket/25522 |
2018-06-06 20:54:26 +0200 | commented answer | preparser state for regexs Thanks, I'll see if I can figure out how to do that later tonight. |
2018-06-06 20:09:23 +0200 | received badge | ● Nice Answer (source) |
2018-06-06 15:49:46 +0200 | received badge | ● Necromancer (source) |
2018-06-06 12:43:46 +0200 | answered a question | preparser state for regexs I had a similar issue dealing with the preparser so I wrote an IPython extension which adds a cell magic Save this code as If you like, you can copy this to to load the extension. Now the following works: which yields: instead of: |
2018-05-31 05:40:04 +0200 | commented answer | Starting Sage from precompiled binary You ought to be able to add back the conda path after first run of sage without trouble. At least, that's always worked for me on my macOS system. |
2018-05-24 17:13:53 +0200 | answered a question | graphs.planar_graphs To check the type of |
2018-04-11 11:55:10 +0200 | commented question | How to plot implicit3d plot with level sets in SageMath? I agree that it is not clear what level sets you're seeking to plot. However, the answers to these questions could be helpful https://ask.sagemath.org/question/919... https://ask.sagemath.org/question/896... |
2018-04-11 11:36:45 +0200 | answered a question | Map a matrix to a block matrix Here's another way to do it: However, from testing with your approach: my above approach: I also tried using |
2018-04-10 13:18:05 +0200 | received badge | ● Civic Duty (source) |
2018-03-13 22:59:49 +0200 | received badge | ● Nice Answer (source) |
2018-03-05 17:12:12 +0200 | received badge | ● Commentator |
2018-03-05 17:12:12 +0200 | commented answer | Can we read local file from Sagecell This is a way to read local files into a SageMath notebook on your own computer, but it won't work on SageMathCell: https://sagecell.sagemath.org/ |
2018-03-05 17:09:27 +0200 | commented question | How to plot similarity of two data sets in Sage? I suppose your example figure shows |
2018-03-03 14:05:53 +0200 | commented answer | Right click options not showing up for jsmol for completeness, the issue is here https://trac.sagemath.org/ticket/19529 |
2018-03-03 12:41:59 +0200 | answered a question | Get variable of polynomial ring
|
2018-03-02 20:28:04 +0200 | commented question | Sagemath 8.1 windows: Impossible to export jmol figure from Jupyter while it works with former notebook. Yes, I was mistaken about what your problem was initially. |
2018-03-02 19:02:56 +0200 | commented question | Sagemath 8.1 windows: Impossible to export jmol figure from Jupyter while it works with former notebook. I now believe you're running into this issue: https://ask.sagemath.org/question/399... |
2018-03-02 18:51:03 +0200 | edited answer | Sagemath 8.1 windows: Impossible to export jmol figure from Jupyter while it works with former notebook. I can confirm that there is an issue here with SageMath and jupyter but I don't have any solution, unfortunately. I just tested jmol in the following is probably not relevant You could also try installing the SageMath kernel into jupyter by following the instructions here, with appropriate modifications for Windows. Note that this requires more fiddling and you might find that interact elements don't work by default. |
2018-03-02 18:48:19 +0200 | commented question | Sagemath 8.1 windows: Impossible to export jmol figure from Jupyter while it works with former notebook. Do you know what kernel you're running in jupyter? There should be a label in the top right of the window. |
2018-03-02 17:24:10 +0200 | commented answer | SageMath and interact / ipywidgets with jupyter Thanks for the info. I wasn't able to accept my own answer previously since I didn't have 50 points, but now I can. |
2018-03-02 17:22:20 +0200 | marked best answer | SageMath and interact / ipywidgets with jupyter I got the SageMath kernel working well inside my anaconda distribution's copy of jupyter, following these instructions, so I can open SageMath notebooks using anaconda jupyter and they run perfectly fine -- almost. I would like to get interact elements / ipywidgets working when I use SageMath as a kernel in anaconda jupyter, but with my current configuration (hopefully described in sufficient detail below), I get the following error message in the console
and the notebook simply outputs the initial value of the function with no interactivity. I'm running SageMath 8.1 on macOS. I've been able to get interact elements and ipywidgets with SageMath code running in the SageMath jupyter notebook interface (not sure if this was necessary, but I ran
in the SageMath directory.) Everything works as expected, i.e. if I run
I get a slider widget which works. Similarly, examples from this interact tutorial on the SageMath wiki run perfectly fine in SageMath jupyter. I also have an up-to-date anaconda install of jupyter where the ipywidgets nbextension has been enabled; the above ipywidgets code can be run in anaconda jupyter with the ordinary python kernel and works fine. [The real reason I am asking this question is I would like to figure out how to get interactive widgets working in jupyterlab with the SageMath kernel, but I'm guessing that if the above question can be answered, I can get everything else working as well.] |
2018-03-02 17:22:20 +0200 | received badge | ● Scholar (source) |
2018-03-02 15:14:14 +0200 | received badge | ● Student (source) |