2023-07-02 11:55:23 +0100 | received badge | ● Notable Question (source) |
2023-07-02 11:55:23 +0100 | received badge | ● Popular Question (source) |
2023-06-29 00:29:52 +0100 | asked a question | Getting Tietze Representation in Original Group Getting Tietze Representation in Original Group I've got a free group with relators: sage: H.<a,b,c,d>=FreeGroup( |
2023-01-23 03:15:30 +0100 | received badge | ● Notable Question (source) |
2023-01-23 03:15:30 +0100 | received badge | ● Popular Question (source) |
2022-07-11 13:48:30 +0100 | received badge | ● Notable Question (source) |
2022-06-15 19:22:00 +0100 | marked best answer | If statement to avoid running GAP structure_description I am using the operation structure_description to see if a finitely presented group can be recognized and labeled by Sage. Sometimes, this works fine, for example: However, in other cases it fails, for example: So the fact that this happens is very understandable - I understand it as being somehow related to the word problem. But I am running this script for many finite groups, and if this information is available, I want Sage to find it and print it - otherwise skip it. Right now, every time the script hits a case, it just fails and exits. Is there some kind of if ...structure_description=TRUE I could wrap this line in, so that it only executes if it's going to actually work? |
2022-06-14 16:02:06 +0100 | commented question | If statement to avoid running GAP structure_description Ohhh python magic :-) Yes, this worked - I just had to use ValueError instead of GAPError: https://doc.sagemath.org/html |
2022-06-13 16:26:01 +0100 | asked a question | If statement to avoid running GAP structure_description If statement to avoid running GAP structure_description I am using the operation structure_description to see if a finit |
2022-05-24 15:04:06 +0100 | commented answer | Firefox not launching jupyter session properly I am having this same issue, and this solution does not work. I installed with apt (apt list --installed | grep "sage" g |
2022-04-02 02:57:07 +0100 | edited question | Action of Permutations on Points, maybe with GAP? Action of Permutations on Points, maybe with GAP? I cannot seem to figure out how to make Sage act on a point with a per |
2022-04-02 02:35:19 +0100 | edited question | Action of Permutations on Points, maybe with GAP? Action of Permutations on Points, maybe with GAP? I cannot seem to figure out how to make Sage act on a point with a per |
2022-04-02 02:31:40 +0100 | asked a question | Action of Permutations on Points, maybe with GAP? Action of Permutations on Points, maybe with GAP? I cannot seem to figure out how to make Sage act on a point with a per |
2021-05-09 04:29:17 +0100 | received badge | ● Famous Question (source) |
2021-04-11 08:35:43 +0100 | received badge | ● Notable Question (source) |
2021-03-26 19:15:48 +0100 | received badge | ● Popular Question (source) |
2020-10-17 21:58:29 +0100 | received badge | ● Popular Question (source) |
2020-05-01 19:14:11 +0100 | received badge | ● Famous Question (source) |
2020-03-18 14:36:58 +0100 | commented answer | SageMath is not solving this inequality Right, so we can kind of do it ourselves (finding the zeros, if they exist, and then determining the sign of the function around them), but that seems "simple" enough that Sage should be able to do it. Is this a Sage thing, or algebra systems in general? |
2020-03-17 21:51:29 +0100 | asked a question | SageMath is not solving this inequality I have the following inequality: $$-\kappa m^{4} + 8 \pi m^{3} r - 4 \pi r^{2} > 0$$ So it's a quadratic, but I would imagine it's solveable. Find the zeros, check the sign on either side of them, and tell me where it's positive. If you need more info, yell at me about assumptions. But instead: $$\left[\left[-\kappa m^{4} + 8 \pi m^{3} r - 4 \pi r^{2} > 0\right]\right]$$ Sometimes I can trick it into behaving with some expand() or simplify_full(), but that seems not to be working here. Any ideas? |
2020-03-09 17:15:10 +0100 | received badge | ● Popular Question (source) |
2020-03-09 17:15:10 +0100 | received badge | ● Notable Question (source) |
2020-03-03 00:08:29 +0100 | commented question | Getting LaTeX code from Sage when running %display latex I marked below as answer, but this totally works as well. |
2020-03-03 00:07:24 +0100 | commented answer | Getting LaTeX code from Sage when running %display latex I see the reproducibility argument, and have never seen not one single paper in my field that comes even remotely close to that. Maybe I will be the first! |
2020-03-03 00:04:40 +0100 | commented answer | Getting LaTeX code from Sage when running %display latex Nope, this just spits back the exact same thing as "eq" by itself (pretty rendered latex) |
2020-02-28 18:40:02 +0100 | asked a question | Getting LaTeX code from Sage when running %display latex I typically use at the beginning of all of my worksheets, so that the equations are rendered in LaTeX (when using .display(), for example). However, now I want to copy some of these equations into a LaTeX document, and I can't figure out how to "revert" them back to code. All my view(eq), print(eq), latex(eq.display()) all seem to spit out the rendered tex, or sometimes information about the object, like "rank 2 tensor g". Is there a way I can do this without removing the display command at the beginning and re-running the sheet? EDIT: Maybe more info is needed. I'm running Jupyter notebooks, Sage 8.7 on a linux machine. I'm pretty sure I used the Ubuntu binaries in this case to install. |
2020-02-19 05:45:02 +0100 | commented question | sage 9.0 docs fails to compile on Slackware @vdelecroix: As far as I can tell, this is the first instance of the problem, since the make fails at that point. Since "moebius" is also known as "m\"obius" (Umlaut over the o), I'm guessing that's the character fail. |
2020-02-19 05:42:20 +0100 | commented question | sage 9.0 docs fails to compile on Slackware @FredericC: I agree, this seems to be the only substantial change, but I don't see anything referring to the character set in any of the 2->3 readme. |
2020-02-01 00:21:05 +0100 | asked a question | sage 9.0 docs fails to compile on Slackware I am packaging up SageMath for Slackware (via SlackBuilds), but I am running into a compilation error. I've tried this in two different ways - first just by a straight compile from source, and then I also tried running the SlackBuild script from Sage 8.0 (which works fine) and changing the version from 8 to 9. (that is certainly not guaranteed to work, but I thought maybe this was a known problem in Slackware, and the script from the 8.0 version might have a fix - it did not). The problem is the following: So it seems there is a strange character in the doc files for the algebras packages. I can imagine a few work-arounds - is there some way the OS can be told how to handle it? I could probably figure out how to build it without the documentation, but I would rather provide the documentation with the sources. |
2020-01-17 22:33:24 +0100 | asked a question | Unable to use substitute_function in SageManifolds I'm trying to do a function substitution into one of the Einstein Field equations, using tools from SageManifolds. I am doing nearly the same thing as the tutorial on the Lemaitre-Tolman equations (https://nbviewer.jupyter.org/github/e...). However, using substitute_function does not seem to achive the result. The MWE is below. The setup is the following: Obviously, on my sheet I run all these and they display what's expected - let me know if you think more info is needed here, and I'll attach the sheet as well (sorry, turns out I don't have the rep for that). So now I define the Einstein equations and try to make a trivial substitution: The result is Cool, so what I really want to do is make some assumptions about the scalar field, but I can't even figure out how to substitute a different, equivalent function. My first try: Results in e.g. exactly the same thing (specifically, phi is not replaced with F1). Here are bunch of other tries that also return the same thing: Anyone have any insight into what is happening? |
2019-06-20 16:27:40 +0100 | received badge | ● Scholar (source) |
2019-06-20 16:27:39 +0100 | received badge | ● Supporter (source) |
2019-06-20 15:30:24 +0100 | received badge | ● Editor (source) |
2019-06-20 08:45:02 +0100 | received badge | ● Student (source) |
2019-06-19 23:35:20 +0100 | asked a question | SageManifolds: Equations of motion for scalar field The following code illustrates the problem I'm having: I want to determine the equations of motion for a scalar field $\phi$ on a 4-manifold with potential $V(\phi)$. However, Sage can't seem to associate an algebra with those objects. This is a pretty standard thing to do in field theory / GR - study the inflaton field, or dark energy, for example. Is there a correct way to write to get the behavior we expect? EDIT: Eventually, this function needs to be added to other scalar quantities, constructed from tensors: |
2019-06-19 23:35:17 +0100 | commented answer | best way to convert many notebooks from sagenb to jupyter? I'm not sure I believe this answer. I'm running 8.7, and when I try that command I get So I can't quite figure out what the correct commands are. |
2019-06-19 23:35:17 +0100 | asked a question | Opening "old" Sage Notebooks in Jupyter: not UTF-8 encoded I've decided to pay attention to the "Sage Notebook is Deprecated" message at the top of all of my Notebooks, and convert everything into Jupyter. So it seems that I'm got Jupyter running on my system (through Anaconda), but when I save all my SageMath notebooks (as .sws files, since that seems to happen by default), and open them in Jupyter, (I'm running Jupyter with "sage -n jupyter"), I get the message in the notebook that the file is not UTF-8 encoded, and nothing else (sorry, I can't for the life of me seem to cut and paste this exact message from the Jupyter notebook...). I did a little searching and at least discovered this: So this file (and all my Sage Notebook Files) have "binary" listed as the character set. That seems bad to me - if it's a character set, shouldn't it be ASCII at least, or something? Anyone know how I can get these notebooks into Jupyter? I can go back and save them as something different if I knew what I needed to do. |