2020-11-29 17:10:39 +0200 | received badge | ● Notable Question (source) |
2019-09-08 23:51:37 +0200 | commented answer | Error computing curvature of graph submanifold Awesome! Thanks for pointing out the error in my code too. |
2019-09-08 06:15:18 +0200 | asked a question | Error computing curvature of graph submanifold The following appears to be a bug in sagemanifolds curvature. I see the error running it in cocalc.com. Other things like computing the induced_metric() and normal() and fine. Am I doing something wrong?
|
2019-07-30 09:05:42 +0200 | received badge | ● Popular Question (source) |
2019-01-21 23:03:27 +0200 | received badge | ● Famous Question (source) |
2018-05-30 08:30:45 +0200 | asked a question | LaTeX macros in Markdown on Cocalc I'm trying to use some custom macros in sage worksheets and Markdown files. How do I include my own custom macros in a Markdown file? I thought the markdown conversion used pandoc so I tried adding YAML front matter: but cocalc just tries to render it rather than treating it as YAML front matter. I would also like to do something similar in Sage worksheets. It works okay with LaTeX. I have a cell like this Then I can access my macros (such as "\Rm") in LaTeX cells: Everything works fine there. If I try to use my macros in Markdown cells however, they do not render properly. just produces "\Rm" in red. Does anyone know how I can use my own custom macros in Markdown? |
2018-02-26 12:46:03 +0200 | received badge | ● Notable Question (source) |
2017-11-06 09:25:20 +0200 | commented answer | Programmatically setting ticks Okay. thanks. Seems like a thorny issue. |
2017-11-06 09:23:43 +0200 | commented answer | Best practice SageMath workflow? Absolutely git is the way, or at least some version control software. I personally use github but I don't think that matters much. I think to pull into a CoCalc project, you'll need to use a terminal with internet access and so it won't work on a free plan. But I could be wrong. |
2017-10-30 16:22:03 +0200 | received badge | ● Nice Question (source) |
2017-10-30 09:59:18 +0200 | asked a question | Programmatically setting ticks I currently generate an array of plots by something like: Then I can set the axes of individual plots by I plot it via This produces a plot with three graphs where the second graph has no axes. Great. I can set ticks when showing a plot: But I can't seem to find how to set them programmatically as with the axes above. I have tried accessing the underlying matplotlib object by I don't see how to set the ticks there.
|
2017-10-27 08:25:54 +0200 | received badge | ● Popular Question (source) |
2017-09-07 13:42:11 +0200 | commented answer | Infinite initial conditions in ODE and arbitrary constant Excellent. That does the job, thank you. |
2017-02-09 02:38:50 +0200 | received badge | ● Editor (source) |
2017-02-09 02:37:45 +0200 | asked a question | Infinite initial conditions in ODE and arbitrary constant Is it possible to include infinite initial conditions in an ODE? For example, throws and error. Alternatively, I can leave the initial condition blank: Then output Includes an arbitrary constant written C $$ q\left(t\right) = -\frac{p}{C {\left(p + 1\right)} + {\left(p + 1\right)} t} $$ I tried to set a value for $C$ via, but it made no difference. Here $p$ I declared as a variable, and I can do things like to produce the expected output $$ q\left(t\right) = -\frac{1}{2 {\left(C + t\right)}} $$ So it seems that I need to refer to the arbitrary constant by some other name than $C$. How can I do this? |
2016-11-19 21:50:35 +0200 | commented answer | Rotate a 2d plot cool, thanks :) |
2016-11-18 15:24:00 +0200 | commented answer | Rotate a 2d plot Actually, although this solution answers the example in the question, it does not seem to solve my general problem. I have other kinds of graphics objects such as lines, polygons, text labels etc. and some of the vectors will not be based at the same point. I want to be able to rotate the entire scene including such objects. So I essentially need to be able to rotate the entire viewport about a point. At this stage, my solution is to save the image and rotate it using an external editor, but it would certainly by preferable to be able to perform transformations on entire plots from within sage. I think matplotlib has this kind of functionality, but I don't yet know how to achieve it. |
2016-11-18 14:56:20 +0200 | received badge | ● Supporter (source) |
2016-11-16 15:15:37 +0200 | received badge | ● Popular Question (source) |
2016-11-16 15:15:02 +0200 | received badge | ● Scholar (source) |
2016-11-16 15:14:59 +0200 | commented answer | Rotate a 2d plot Thanks! That's effectively what I have done - rotate each object, and it's not so bad if you do it the way you have. |
2016-11-16 14:35:41 +0200 | asked a question | Rotate a 2d plot I have a 2d plot with multiple arrows, lines etc. and I would like to rotate the entire thing. Here's a simple example without rotation. The real example has more objects on it so I'd rather rotate the entire plot than each individual object. How can I go about rotating the entire plot by a fixed angle? I have only been able to find information about rotations for 3d plots. |
2013-03-15 17:18:37 +0200 | received badge | ● Taxonomist |
2010-12-04 05:10:14 +0200 | answered a question | New Project Looking for Help: Plotting great circles I don't know if you can do it using plot3d via a spherical transform, but you can just do a 3 dimensional parametric plot directly providing the transformation as follows: Then as above, you can create a function and show many circles |
2010-11-15 15:27:03 +0200 | received badge | ● Student (source) |
2010-11-11 19:45:56 +0200 | asked a question | multi-symmetric functions and multi-partitions Does sage support manipulating multi-symmetric functions/polynomials and/or multi-partitions? Multi-symmetric functions are like the usual symmetric ones, except the symmetric group acts by permuting "vectors" of variables simultaneously, e.g. for an two vectors $x=(x_1,x_2\dotsc), y=(y_1,y_2,\dotsc)$, $\Sigma_2$, acts by permuting $x,y$. A multi-partition of a $n$-tuple $B=(b_1,\dotsc,b_n)$ of natural numbers is a unordered set of $n$-tuples $A_1,\dotsc,A_l$ with $A_1 + \dotsm + A_l = B$. I'd like to have a combinatorial class of multi-partitions with similar functionality as partitions, e.g. If the code needs to be written, I'm quite keen to make it my first (hopefully of many) contribution to sage... |