2021-07-06 01:34:30 +0200 | received badge | ● Notable Question (source) |
2021-05-02 15:05:59 +0200 | received badge | ● Great Question (source) |
2020-02-01 13:36:58 +0200 | received badge | ● Good Answer (source) |
2019-12-14 12:43:12 +0200 | received badge | ● Nice Answer (source) |
2019-07-02 14:19:22 +0200 | received badge | ● Nice Answer (source) |
2019-02-16 16:33:43 +0200 | received badge | ● Notable Question (source) |
2019-02-16 16:33:43 +0200 | received badge | ● Popular Question (source) |
2019-02-16 16:18:49 +0200 | received badge | ● Popular Question (source) |
2017-11-09 14:55:49 +0200 | received badge | ● Guru (source) |
2017-11-09 14:55:49 +0200 | received badge | ● Great Answer (source) |
2017-01-03 04:30:32 +0200 | received badge | ● Good Answer (source) |
2016-12-19 10:37:29 +0200 | received badge | ● Nice Answer (source) |
2016-07-26 00:12:30 +0200 | received badge | ● Nice Answer (source) |
2016-06-13 14:56:22 +0200 | received badge | ● Nice Answer (source) |
2016-04-23 19:01:42 +0200 | received badge | ● Nice Answer (source) |
2016-04-05 13:30:08 +0200 | received badge | ● Good Question (source) |
2016-04-04 21:52:32 +0200 | received badge | ● Famous Question (source) |
2015-10-23 03:50:36 +0200 | received badge | ● Taxonomist |
2015-09-13 16:50:31 +0200 | received badge | ● Good Answer (source) |
2015-02-16 15:01:31 +0200 | received badge | ● Nice Answer (source) |
2014-06-29 03:14:58 +0200 | marked best answer | Creating plots in parallel Ok, even though my last question about @parallel was foolish, here is another one. I want to create a simple animation that consists of many plots. It takes a minute or two on my computer to produce. But it would be nice if I could harness the idle CPU's I have and create the frames for the animation in parellel. I thought this would be easy like this: and what I get back (in the Sage notebook) is: Any idea what is going wrong here? |
2014-06-29 03:14:56 +0200 | marked best answer | Why does @parallel change my outputs? Can someone explain this behavior to me: I expected to get the factorizations of 1 .. 10, not the numbers 1 .. 10. It seems like the output of |
2014-06-29 03:14:48 +0200 | marked best answer | Plotting arrows at the edges of a curve How could I plot a plane curve (either the graph of a function or an implicit plot) so that where the curve leaves the bounds of the plot, an arrow in the tangent direction is added? I'm trying to produce plots for quiz and exam questions that are similar to ones you see in many calculus books where arrows are added to the ends of the curve to indicate that the curve continues in a certain direction "off the screen". I've searched sage-support, the manual, and the documentation without much success. Perhaps I'm searching for the wrong term. Searching for "arrow" and "plot" or "curve" hasn't gotten me anywhere. I've also looked through examples in the matplotlib gallery, but I don't see any examples of what I want there. I can imagine writing code myself to add such arrows to a plot, but I'm sure someone has thought about and implemented this before. |
2014-06-02 11:50:55 +0200 | received badge | ● Good Answer (source) |
2013-11-19 02:19:35 +0200 | received badge | ● Famous Question (source) |
2013-10-18 21:13:45 +0200 | received badge | ● Nice Answer (source) |
2013-10-07 12:45:19 +0200 | received badge | ● Notable Question (source) |
2013-08-30 15:08:04 +0200 | marked best answer | Plotting arrows at the edges of a curve Here's a quick hack. With the code given by example (I'm not the best sage/python programmer) Replace EditHere's a similar method for an implicit plot |
2013-08-08 04:46:31 +0200 | received badge | ● Good Answer (source) |
2013-06-16 07:37:03 +0200 | received badge | ● Good Answer (source) |
2013-03-06 13:44:51 +0200 | received badge | ● Nice Answer (source) |
2013-03-06 13:09:49 +0200 | answered a question | numerically integrating an expression containing 'i' The integrand isn't a real for all (complex) values of x, though. If you wrap the symbolic part in an anonymous function that just does the evaluation (at real values of x in this integral) it will work: |
2013-03-05 14:43:51 +0200 | received badge | ● Good Answer (source) |
2013-02-27 23:03:05 +0200 | commented question | c++ cython in the notebook 1) How did you install Sage? (compiling from source, downloading a binary, on a notebook server) 2) Do you have a c++ compiler installed on your system? |
2013-02-22 13:03:51 +0200 | received badge | ● Necromancer (source) |
2013-02-22 03:08:06 +0200 | answered a question | simplify coefficients of laurent series? Yep, see the --- edit Sorry, I answered the wrong question. If you want to simplify the coefficients, you can map the But, if you look at the resulting list you'll see that it's identical to If you're curious about other powerful list operations, check out |
2013-02-22 03:05:25 +0200 | answered a question | Saving compiled expressions I believe that On the other hand, you can have Sage (via sympy) generate C code for a function that provides evaluation of your expression on C doubles. I gave a short example of this on this question: http://ask.sagemath.org/question/366/... It may also be possible to convert your expression into a python function and send that through the Cython compiler to produce compiled C code with a direct interface in Sage... I don't know if that's possible in your situation or not. |
2013-02-22 02:58:00 +0200 | answered a question | Export to C code Just to chime in here on this long abandoned question, the code generation module that DSM mentions is now included in Sage. Here's a short example: |
2013-02-21 11:31:57 +0200 | received badge | ● Nice Answer (source) |
2013-02-20 20:53:32 +0200 | answered a question | doubly indexed variables in a non-commutative ring Symbolic variables don't have a notion of index directly, just a name. You can create a list of variables to send to the ... and they even typeset correctly: |
2013-02-20 20:49:07 +0200 | answered a question | Extracting numerical value from a symbolic expression I don't think there is a built-in solution that does exactly what you want, but it's easy enough to extract a vector solution: |
2013-02-15 16:59:43 +0200 | answered a question | Locally-Dihedral 2-group If you can construct your "2-prufer" group somehow (as a permutation group, as a finitely presented group, etc..) there are functions for forming semi-direct products. Check out the group theory part of the Sage manual. |
2013-02-06 07:52:49 +0200 | received badge | ● Nice Answer (source) |
2013-02-05 02:04:17 +0200 | edited answer | How to get the list of user defined variables That's a good question. You can inspect the global variables that have been defined at any given point in a session, but most of those will be defined when various modules load on Sage startup. You can look just at those globals whose type is Anything not on that list is a global symbolic expression that is defined in your loaded session. Variables will be among these. |