Ask Your Question

kcrisman's profile - activity

2020-09-03 21:35:27 -0500 received badge  Nice Answer (source)
2020-08-07 08:29:56 -0500 commented answer Projection of vector

Much belated note to @etb - you don't have to have an account to use the Sage cell server, you can just type right into it!

2020-07-11 08:08:31 -0500 received badge  Popular Question (source)
2020-06-04 18:33:55 -0500 received badge  Famous Question (source)
2020-05-30 15:50:26 -0500 commented answer Sage 9.0 installation issues on macOS 10.15.2 Catalina

See also https://trac.sagemath.org/ticket/29710 - eventually this should all be coordinated, but for now piecemeal is fine.

2020-05-30 15:38:28 -0500 commented answer Sage 9.0 installation issues on macOS 10.15.2 Catalina

If someone thinks we should just update https://doc.sagemath.org/html/en/inst... that is great. I am currently submitting a pull request to the website, at any rate, for some warning.

2020-05-30 15:34:13 -0500 answered a question Sage 9.0 installation issues on macOS 10.15.2 Catalina

For the purposes of recording some additional instructions in a semi-permanent place (since the Wiki seems to be deemphasized as a location for such instructions), here are some instructions combining Samuel's answer, some on Google groups (https://groups.google.com/forum/#!top...), and a writeup kindly provided by sarah-marie belcastro. DO NOT UPVOTE.


To run Sage binaries on Mac OS 10.15 (Catalina) and above, extra steps may be necessary. Here are some possibilities; see the other answers on this post for much more detail and other, perhaps better, possibilities.

  • Most of this will require a small amount of Terminal access, and assumes you have installed Sage in /Applications/SageMath-9.0 (or whatever version you have), but have not run it yet.

  • First, to re-enable your Mac to allow applications unknown to Apple on a case-by-case basis, run this command. You will need to have superuser abilities (but don't log in as root, if you know what that is):

    sudo spctl --master-disable

  • Go to System Preferences->Security->Privacy to allow this application to run. You will want to Grant Full Disk Access in addition to allowing it to run.

  • Launch Sage from the command line in the executable's installed directory. In a Terminal window, run the following for Sage to rewrite all paths to match their location on your computer (and then open a Jupyter window):

    cd /Applications/SageMath-9.0.app

    ./sage -n

  • When you see the Jupyter tab in your default browser (probably Safari), click the Quit button. This will stop the Jupyter Server, but that's ok.

  • Launch Sage using Applications->SageMath-9.0.

2020-05-30 15:23:39 -0500 commented answer pandas in sage notebook in virtual box?

That would happen with a binary, perhaps. You may have to install Sage from source. I would recommend starting a new question with all details, though, since this one is seven years old.

2020-04-25 17:29:06 -0500 received badge  Good Answer (source)
2020-04-12 12:20:12 -0500 received badge  Popular Question (source)
2020-02-27 11:12:51 -0500 received badge  Notable Question (source)
2020-02-27 11:12:51 -0500 received badge  Popular Question (source)
2020-02-03 22:09:50 -0500 commented question Condition of type: STORAGE-EXHAUSTED
2020-01-08 04:03:16 -0500 received badge  Necromancer (source)
2020-01-07 14:12:11 -0500 answered a question sagemath 8.6 could not work normally on mac 10.14.3

Sometimes if you right-click a file for all options, and then use Option, it reveals additional options. You could try to use the version of "Open" that appears then. Another option could be to use the answer here regarding Apple's (relatively) new security regime. I'm not sure if this is what you were experiencing, but having this answer may help if others land on this question due to the Apple security checking issue.

2020-01-06 09:08:25 -0500 commented answer DeprecationWarning on SageCell (Python 3)

Regarding your last comment, probably you should open a different question about that, otherwise it will confuse people coming to this question who will also have the same question you have - I predict many!

2019-11-21 20:37:48 -0500 commented answer Does sagemath move asterisks down?

Jim, as you know another possibility would be to write this in PreTeXt which has some people developing it who are actively thinking about the listings and other packages and font issues. If you are at the NES/MAA meeting this weekend I will be glad to chat briefly. Unfortunately I agree with Emmanuel that some very useful LaTeX packages end up sort of in limbo.

2019-11-07 20:20:56 -0500 commented answer Does sagemath move asterisks down?

Yes, I agree that this should be put on the ST page if it can be confirmed. By the way, did you mean minted in your option 2?

2019-11-02 10:26:49 -0500 received badge  Good Answer (source)
2019-10-28 09:33:20 -0500 commented answer How to iterate over symbolic coefficients

@tmonteil Oh yeah, the TreeWalkeris phenomenally useful but unfortunately not documented everywhere. See for instance my nearly decade-old ticket https://trac.sagemath.org/ticket/9329 :-)

2019-10-27 07:11:16 -0500 received badge  Notable Question (source)
2019-10-18 06:47:27 -0500 commented question How to iterate over symbolic coefficients

Are you using the "symbolic ring" or the more specific polynomial rings? It's unclear from your code, though the use of full_simplify indicates you are just using var() to create new variables - making a polynomial ring in b_s might help, I'm not sure.

2019-10-18 06:45:20 -0500 commented answer Looking for musical exercises using sage

See also https://trac.sagemath.org/ticket/12673 and there is also a ticket I cannot find about "playing" certain functions.

2019-10-18 06:39:29 -0500 commented question Problems with AMS symbols in Sage, Jupyter
2019-10-18 06:38:54 -0500 commented answer Problems with AMS symbols in Sage, Jupyter

That is a very interesting answer. Should this maybe be reported as a bug in Sage so that people can pass more options to plot?

2019-09-16 10:27:33 -0500 received badge  Notable Question (source)
2019-09-16 10:27:33 -0500 received badge  Popular Question (source)
2019-08-05 12:31:40 -0500 received badge  Good Answer (source)
2019-07-02 21:25:53 -0500 commented question Is it possible to subclass a sage class?

Note that the question linked above has an accepted answer now, so people should go there if they find this question.

2019-07-02 21:24:30 -0500 answered a question Calculating Cauchy Integrals in Sage

Identical answer (not full, unfortunately) to what I posted on SO.


You're probably going to have to parametrize your integration domain (circle, here). Or use a Cauchy residue type theorem, as here.

Here is an interesting Sage cell instance by Jason Grout and Ben Woodruff that might help you get started on how to calculate some of them; unfortunately, sometimes these integrals are very tricky to do exactly. See this sage-support thread for an easier example, though I don't think in the end it fully worked because of a Maxima bug.

Relevant code:

f(x,y)=9-x^2-y^2
r(t)=(2*cos(t), 3*sin(t))
trange=(t,0,2*pi)

ds=r.diff(t).norm()
dA=f(*r(t))*ds(t)

def line_integral(integrand):
    return RR(numerical_integral(integrand, trange[1], trange[2])[0])

A = line_integral(dA)
integrate(dA, trange)

The last two lines do a numerical and exact (if possible) result, respectively.

2019-07-02 21:23:37 -0500 commented question Calculating Cauchy Integrals in Sage

Also posted at Stackoverflow.

2019-06-06 08:45:18 -0500 received badge  Famous Question (source)
2019-05-15 10:46:10 -0500 received badge  Good Answer (source)
2019-05-08 15:15:07 -0500 commented answer How do I adjust the size of axes labels and figure titles in plots?

Unfortunately, "major" is basically the same as "default". Since open source projects tend to go with what "scratches the itch" of developers, it does depend on whether someone with know-how, time, and interest converges on a given ticket.

2019-05-08 15:14:07 -0500 commented answer Issue Printing Tables in Jupyter Notebook

@slelievre thanks! In fact I think it has been closed :)

2019-04-11 21:12:49 -0500 commented answer function parameters as sum limits

Probably not at this point, since then we would have to update all the answers.

2019-04-10 18:06:10 -0500 answered a question function parameters as sum limits

I will elaborate on the other answer, which is correct; you could use

sage: def N(d,n):
....:  if n==1:
....:         return 1
....:  else:
....:         return sum(N(d,i) for i in range(1,n))

Ordinarily, this should have just returned some sort of evident error that you couldn't do it (such as below). But because of a subtlety in how you defined your function, instead you never actually discovered this in your sum. Your sum instead kept returning itself when n=2, so you got a RuntimeError about infinite recursion.

If you do sum? in the terminal or notebook, you should get documentation that includes this:

   Warning: This function only works with symbolic expressions. To
     sum any other objects like list elements or function return
     values, please use python summation, see
     http://docs.python.org/library/functions.html#sumIn particular,
     this does not work:

        sage: n = var('n')
        sage: mylist = [1,2,3,4,5]
        sage: sum(mylist[n], n, 0, 3)
        Traceback (most recent call last):
        ...
        TypeError: unable to convert n to an integer

     Use python "sum()" instead:

        sage: sum(mylist[n] for n in range(4))
        10

Also, where does d occur in your function? It seems to be a dummy variable in the truest sense of the word - completely silent, that is.

2019-04-09 12:42:45 -0500 commented answer Issue Printing Tables in Jupyter Notebook

That said, table has a long and distinguished history in Sage, so that should definitely be fixed in Jupyter.

2019-03-22 20:13:41 -0500 commented answer interactive tutorial?

If you have a Trac account, yes it is a very good idea to open a ticket for this. Unfortunately I don't think we have a live documentation viewer for Jupyter as we did for sagenb. That has probably been mentioned on sage-devel but could be worth bringing up again.

2019-03-07 12:22:43 -0500 commented answer Updating Sage

You do have to have the various compiler tools installed. I recommend pursuing this on sage-support Google group, though, because a Q&A forum is a bad place to receive help on compiling.

2019-03-01 12:29:07 -0500 commented question Solutions step by step in sagemath with maxima

Apparently the reference to step by step is to https://www.integral-calculator.com

2019-03-01 12:28:55 -0500 commented question Solutions step by step in sagemath with maxima

Note this was also asked at this SO question.

2019-02-20 12:08:48 -0500 received badge  Nice Answer (source)
2019-02-19 18:37:37 -0500 received badge  Popular Question (source)
2019-02-19 18:37:37 -0500 received badge  Notable Question (source)
2019-02-08 22:10:22 -0500 commented question replace fraction by decimal value in expression

This is something that the simplification mechanism (Maxima) does do in these situations. There is a Maxima flag to unset that, though I cannot find it currently on http://maxima.sourceforge.net/docs/ma...

2019-02-08 22:03:33 -0500 commented answer sagemath 8.6 could not work normally on mac 10.14.3

Also, the Sage icon on the menu bar should have a way to view the console of the log as one of the options. That is weird that it doesn't allow this any more. Do you find this in all browsers? (You can set the default browser with some env var, I think 'SAGE_BROWSER` but I am not 100% sure.)