2020-01-15 07:13:59 -0600 | received badge | ● Necromancer (source) |

2020-01-13 06:05:17 -0600 | commented answer | Working with units astropy also has a very powerful units and quantities package which took much of its original inspiration from Pint. Actually, lately they've been converging more and more again on shared functionality (thanks in part to recent updates to Numpy making propagation of units easier)--I wonder if one day it will be possible for them to converge, rather than maintaining separate projects. Though |

2020-01-13 06:00:59 -0600 | edited question | Generating and evaluating a polynomial I woud like to create a polynomial P(x) = 1 + x + x^2 + ...... + x^50 and evaluate it for different values of x. What would be a good way to do this without entering it by hand. Thank you! I am very new to Sage. I would like to create a polynomial and evaluate it for a certain x say x=1.00001 The polynomial is: P(x) = 1 + x + x^2 + ..... + x^50 Thank you for the help! |

2020-01-09 07:58:21 -0600 | commented answer | Problem importing Sage library in Python script on Windows If you can be more specific about what |

2020-01-09 07:57:57 -0600 | commented answer | Problem importing Sage library in Python script on Windows SageMath is really two things: There's what's referred to sometimes as "sagelib": the actual |

2020-01-09 05:10:57 -0600 | answered a question | Problem importing Sage library in Python script on Windows I'm not sure what you mean exactly by "using Sage in a Python script". You didn't really provide any details. Sage has always traditionally included its own Python interpreter, and so using Sage meant you'd have to run the Python interpreter that comes with Sage (if you're at all familiar with conda as you say, this is a little like having its own conda environment). The folks who've packaged Sage for conda make that a little more transparent, since you can now install sage directly in a conda environment. But either way it's effectively similar.
You will need to run it with the Python interpreter that comes with Sage. If you have additional dependencies, as I wrote, this is a complete Python environment so you can pip install them using Sage's Python.
Because Sage on Windows depends on Cygwin, and there is no official Cygwin target for conda. There
Not necessarily but it is a little tricky. Search this site for other questions like this one where I explain how to use Sage in PyCharm--again it's not all that different from using a virtualenv; still just a little trickier. If you have any good ideas for how to make this easier I'm all for it.
I noticed also there were some problems with some connection problems with some of the mirrors yesterday. Try just running Sage is a complex beast: Its large set of non-standard and/or tightly-pinned dependencies makes it non-trivial to install and use compared to a normal Python package. People have been working hard for years to make that easier (see, again, your success with conda) but this is not easy. You're welcome to lend a hand if you have any insights. |

2020-01-09 04:56:17 -0600 | commented answer | Should I avoid using unicode in names of variables? IPython on Python 3, yes. |

2020-01-08 12:14:35 -0600 | received badge | ● Nice Answer (source) |

2020-01-08 11:29:10 -0600 | commented answer | Should I avoid using unicode in names of variables? @dsejas I agree, it might be good to have a module defining unicode aliases for different globals. It can be made to load on Python 3 only (which is now the default anyways). |

2020-01-08 11:27:28 -0600 | commented answer | Should I avoid using unicode in names of variables? I meant to add; I opened a ticket for this. I suggest following up there with suggestions: https://trac.sagemath.org/ticket/28966 |

2020-01-08 09:18:59 -0600 | commented question | Rotate a parametric plot As in just, rotating all the pixels of the image, including axes? I'm still not sure why you would want to do that. And also the question is: rotate by an arbitrary amount, or just by 90 degrees? Since rotating images by arbitrary angles means you need some way to deal with clipping. Perhaps you could just add some example images of what results you're trying to obtain... |

2020-01-08 09:16:36 -0600 | commented answer | ask.sagemath.org Y2k20 bug I'm impressed that you bothered to track it down :) |

2020-01-08 09:13:59 -0600 | commented answer | Should I avoid using unicode in names of variables? Of course--this is an IPython feature. |

2020-01-07 10:54:30 -0600 | commented answer | Should I avoid using unicode in names of variables? You would have to look into what unicode completion plugins exist for emacs (I'm sure there are several). |

2020-01-07 10:52:08 -0600 | commented question | Rotate a parametric plot I don't know Maple so I don't know exactly how to interpret that example. But what do you mean by "rotate a plot"? That could have several different interpretations. In the example you gave in Sage you didn't rotate the plot so much as you rotated a vector field and that plotted the rotated vector field. Do you want to rotate the axes? The entire image? |

2020-01-07 10:40:31 -0600 | received badge | ● Good Question (source) |

2020-01-07 10:39:03 -0600 | received badge | ● Nice Question (source) |

2020-01-07 09:25:53 -0600 | commented question | TypeError: 'sage.rings.integer.Integer' object is not iterable What do you mean by "When I try to compile it" Do you mean when you run it? I can't reproduce the problem because your code sample has several presumably custom-written functions. What does the |

2020-01-07 09:21:41 -0600 | commented question | Sage error from module `typing` and python 3.8 I'm not exactly clear how you're installing Sage. Sage doesn't support Python 3.8 yet. |

2020-01-07 09:19:44 -0600 | edited question | Sage @fork Parallel Decorator Breaking Interface to Singular Exception raised by child process with pid=1704: I've been implementing parallelism on a program built in Sage MATH using its interface to Singular. I am attempting to use Sage's @fork parallel decorator, which seems to cause issues with Singular (this error does not occur if the decorator is not present). I'm very new to parallelism and am unsure what the issue here could be. Thanks for any and all help! :D |

2020-01-07 09:16:27 -0600 | asked a question | ask.sagemath.org Y2k20 bug It seems ask.sagemath.org (or rather Askbot) has fallen prey to the Y2k20 bug, just in its date format. Just look at how the dates of some posts or comments are formatted: Previously they would be displayed like "Dec 31 '19" and now they display "Jan 7 '0" with the year formatted as "'0" instead of "'20". I don't know if it's worth doing anything about; I just found it amusing. |

2020-01-07 08:41:29 -0600 | answered a question | Should I avoid using unicode in names of variables? In Python 3 you can do some nice things like: and so on. For Python 3 builds of Sage it would be nice to have a few of these built-in. Per my comment on Nil's answer, special characters can be input fairly easily by using tab-completion. |

2020-01-07 08:35:44 -0600 | commented answer | Should I avoid using unicode in names of variables? Ah, I figured it out, you can type |

2020-01-07 08:33:33 -0600 | commented answer | Should I avoid using unicode in names of variables? I'm all for it--in fact I've been hoping that Sage will start to come with more unicode variables built-in (e.g. for pi). Also; neat trick available in Python 3 only that most people don't know: You can tab-complete unicode characters e.g. by typing |

2020-01-07 08:18:28 -0600 | commented question | Rotate a parametric plot What do you mean by "without drawing it again"? If you just want to perform the rotation then just perform the rotation: |

2020-01-07 08:14:27 -0600 | edited question | Rotate a parametric plot Hi, I am trying to rotate a plot given by .
I can rotate P by using the rotation matrix
But is there a way to rotate it without drawing it again? |

2020-01-07 08:11:40 -0600 | commented question | Writing the Bubble Sort on the GAP Perhaps. We may never know... |

2019-12-31 04:35:45 -0600 | commented question | why sagemath says 1.0 is integer? I should note, when you write "in sympy" none of what you demonstrate actually has anything to do with SymPy and is just plain Python behavior w.r.t. the types of objects, which is an entirely language-level statement and has basically no mathematical meaning. In Python |

2019-12-31 04:29:34 -0600 | commented answer | Confusion about integrating a string. IMO the string should be parsed into a generic symbolic expression and converted into some backend-agnostic representation, but I'm still not 100% sure how symbolic expressions really work in Sage and if something like that is exactly possible... |

2019-12-31 04:27:10 -0600 | commented answer | Confusion about integrating a string. OTOH I think |

2019-12-31 04:23:17 -0600 | commented answer | Confusion about integrating a string. I generally agree with this: If you engage in undefined behavior (passing a string as the argument to |

2019-12-31 04:11:12 -0600 | commented question | Writing the Bubble Sort on the GAP What have you tried? Bubble sort is fairly easy to write |

2019-12-31 04:09:49 -0600 | commented answer | Running sage (8.9) from command line (Windows) It should be enough unless there's something specific about your |

2019-12-24 01:56:24 -0600 | received badge | ● Necromancer (source) |

2019-12-23 10:01:51 -0600 | answered a question | import error on debian I recently answered this on the debian-science-sagemath mailing list: https://alioth-lists.debian.net/piper... It seems you are using Debian testing, which currently has a version mismatch between Sage and GAP which needs to be fixed. |

2019-12-23 09:58:49 -0600 | edited question | What does it mean that the relative discriminant is generated by a unit? Does it mean that there is no relative integral basis? |

2019-12-23 09:56:46 -0600 | commented answer | unicode coding In what way does it "not work" for you? I just tested in this on Sage 8.9 with Python 2.7 on Windows and it works as expected. On Python 3 it's not necessary because all files are treated as UTF-8 encoded by default unless specified otherwise. |

2019-12-23 09:55:18 -0600 | commented answer | can you programmatically define a [mathematical] function? I feel like there ought to be an easy to to create a polynomial from a list of coefficients (and possibly a specified order). Built-in, I mean. But if it exists I can't find it.... |

2019-12-23 09:46:43 -0600 | commented question | Condition of type: STORAGE-EXHAUSTED Depends. What are you trying to calculate? Maybe you simply don't have enough system memory to perform that computation, either in the way it's being computed, or in general. |

2019-12-23 09:42:55 -0600 | commented answer | unicode coding See my answer |

2019-12-23 09:42:00 -0600 | commented answer | unicode coding Since you cited PEP-263, read carefully the regular expression it gives for what the coding line should match:
specifically, the string The most common way to write this is: Note: Since this is just a standard Python feature it is not specific to Sage, so you could also likely find answers to your problem on StackOverflow or any other source for Python help. |

Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.