Re: [sage-support] How to use sage's macaulay2 interface in jupyter

2019-01-20 Thread Chris Brav
OK, thanks. I've just added alias sage="/Applications/SageMath-8.5.app/sage" to .bash_profile, and everything is working smoothly. Sorry that this turned out to be not a sage question but a pseudo-Unix question. On Sunday, January 20, 2019 at 12:41:55 PM UTC+3, Chris Brav

Re: [sage-support] How to use sage's macaulay2 interface in jupyter

2019-01-20 Thread Chris Brav
with error -43. So somehow it wants to find Sage.app, rather than SageMath-8.5.app. On Sunday, January 20, 2019 at 12:19:54 PM UTC+3, Dima Pasechnik wrote: > > On Sun, Jan 20, 2019 at 9:16 AM Chris Brav > wrote: > > > > Thanks! Now it works with macaulay2. >

Re: [sage-support] How to use sage's macaulay2 interface in jupyter

2019-01-20 Thread Chris Brav
Thanks! Now it works with macaulay2. As for ln, I was following the directions in the install directions. I'll sort that out separately. On Sunday, January 20, 2019 at 12:12:32 PM UTC+3, Dima Pasechnik wrote: > > > > On Sat, 19 Jan 2019 21:08 Chris Brav > wrote: >

Re: [sage-support] How to use sage's macaulay2 interface in jupyter

2019-01-19 Thread Chris Brav
ill get exactly the same Sage environment in > Jupyter as you get at Sage's prompt. > > > On Sat, 19 Jan 2019 18:10 Chris Brav > wrote: > >> I like to use a jupyter notebook for sage, but also want to use a bit of >> macaulay2 at the same, using the sage interface

[sage-support] How to use sage's macaulay2 interface in jupyter

2019-01-19 Thread Chris Brav
I like to use a jupyter notebook for sage, but also want to use a bit of macaulay2 at the same, using the sage interface. In a sage terminal, macaulay2('2+2') returns 4 as expected, but in a jupyter notebook I get an error, the end of which reads TypeError: unable to start macaulay2 because t

[sage-support] Re: Term order in Singular interface

2017-05-23 Thread Chris Brav
I know how to set the term order in Sage. But this is a somewhat different issue, and maybe I am not explaining it well. What I mean is that I create a matrix A over S with respect to a basis e_1,...,e_n in Sage and then pass it to Singular, where I compute the symmetric power. But when it compu

[sage-support] Term order in Singular interface

2017-05-23 Thread Chris Brav
Given a Sage matrix A over a polynomial ring S.=QQ[] , I can make it into a Singular matrix via A._singular_(). Call the result AA. I can then do various operations on AA, for example symmetricPower(AA,d). In this case, the default order for the basis of the symmetric power seems to be 'dp', but

[sage-support] Re: Interface to Singular, symmetric powers

2017-05-23 Thread Chris Brav
Caution to those who want to use this: Singular produces a symmetric power matrix in a basis that is the reverse of what you (or at least I) might expect. Which basis Singular chooses is clear if you test it on a diagonal matrix with variables as entries. -- You received this message because

[sage-support] Re: Interface to Singular, symmetric powers

2017-05-23 Thread Chris Brav
Thanks. It seems that indeed some rings, such as ZZ and QQ, are too exotic for Singular, and that you really have to base change to a polynomial ring over a field. Here is a little function definition which seems to work for any matrix defined over a domain: def sympow(A,d): R=A.base_ring()

[sage-support] Interface to Singular, symmetric powers

2017-05-22 Thread Chris Brav
I'd like to be able to compute symmetric powers of matrices in Sage. Singular has a function for the kth symmetric power of a matrix A, namely symmetricPower(A,k) (https://www.singular.uni-kl.de/Manual/4-0-3/sing_1107.htm#SEC1182). So it seems one should just take a Sage matrix, convert it to a