Re: [sage-support] Re: Something like Mathematica's `Interact`?

2016-12-08 Thread Emmanuel Charpentier
Still for the record, the current ipywidgets can be used in the current Jupyter notebook (see also the rest of the thread, which gives useful advice). Note that, since ipywidgets does not know anything about Sage types, you

Re: [sage-support] Development process

2016-12-08 Thread Dima Pasechnik
On Thursday, December 8, 2016 at 9:22:19 PM UTC, Volker Braun wrote: > > In the current release process I never rebase tickets, fyi. Generally, its > a bad idea to rebase published branches (unless you hate your > collaborators). > on the other hand, reviewers won't hate you as much if you do

Re: [sage-support] Development process

2016-12-08 Thread Volker Braun
In the current release process I never rebase tickets, fyi. Generally, its a bad idea to rebase published branches (unless you hate your collaborators). The convoluted worktree process saves some recompilation because the original worktree is never rewound to the original ticket state, only to

Re: [sage-support] Re: Problem with the minus sign in symbolic expression

2016-12-08 Thread slelievre
P.S. The original question was also asked on Ask Sage: https://ask.sagemath.org/question/35947/problem-with-the-minus-sign-in-symbolic-expression/ -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receivin

Re: [sage-support] Re: Problem with the minus sign in symbolic expression

2016-12-08 Thread slelievre
Thu 2016-12-08 13:06:23 UTC+1, John Cremona: > I think that trying to combine symbolic variables (x1 and x2) with > modular arithmetic is known to create difficulties. If you want to do > the computation mod 101 then something like > > F = GF(101) > R. = F[] > > # The above 2 lines tell Sage tha

Re: [sage-support] Development process

2016-12-08 Thread Dima Pasechnik
On Thursday, December 8, 2016 at 10:45:30 AM UTC, Dima Pasechnik wrote: > > I also do not see why the released tree should not be rebased. After all, > it is merely cleaning after yourself; looks like a good idea. > moreover, as far as we talk specifically about developing Sage library, what g

Re: [sage-support] Re: Problem with the minus sign in symbolic expression

2016-12-08 Thread John Cremona
On 8 December 2016 at 10:35, Anastasia Theodouli wrote: > UPDATE: The problem was that I was working modulo 101 when I was defining a1 > and b1. I think that trying to combine symbolic variables (x1 and x2) with modular arithmetic is known to create difficulties. If you want to do the computatio

Re: [sage-support] Development process

2016-12-08 Thread Dima Pasechnik
I don't understand how the worktree procedure you describe reduces recompilation in merge/. (although combining this with the merge way I advocate looks like a good idea) I also do not see why the released tree should not be rebased. After all, it is merely cleaning after yourself; looks like a

[sage-support] Re: Has not installed properly, crashes

2016-12-08 Thread Dima Pasechnik
this has been reported, the other problem of this binary is that it requires a new CPU to run. -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsu

[sage-support] Re: Problem with the minus sign in symbolic expression

2016-12-08 Thread Anastasia Theodouli
*UPDATE:* The problem was that I was working modulo 101 when I was defining a1 and b1. On Thursday, December 8, 2016 at 11:49:04 AM UTC+2, Anastasia Theodouli wrote: > > Hi all! > > In my code, I have a multivariate polynomial with a sign symbol which > doesn't return the correct result. I.e.

[sage-support] Re: Problem with the minus sign in symbolic expression

2016-12-08 Thread Anastasia Theodouli
On Thursday, December 8, 2016 at 12:08:21 PM UTC+2, Anastasia Theodouli wrote: > > My Sage version is 6.9 > > The exact code I use is as follows: > > A1 = [(', '.join('x%i'%i for i in [1.. n]))]; ### construct a suitable > multivariate ring > V = var(A1[0]) #

[sage-support] Re: Problem with the minus sign in symbolic expression

2016-12-08 Thread Anastasia Theodouli
My Sage version is 6.9 The exact code I use is as follows: A1 = [(', '.join('x%i'%i for i in [1.. n]))]; ### construct a suitable multivariate ring V = var(A1[0]) ### define a str variable x=vector(list(V)) ### convert to ve

Re: [sage-support] Problem with the minus sign in symbolic expression

2016-12-08 Thread John Cremona
You should say which Sage version you are using, and also give the complete code. In Sage 7.4 I get this: sage: var('x1','x2') (x1, x2) sage: a1=vector([76,83]) sage: b1=62 sage: x=vector([x1,x2]) sage: f1=b1-a1.dot_product(x) sage: f1 -76*x1 - 83*x2 + 62 which looks good. Perhaps you mistyped

[sage-support] Problem with the minus sign in symbolic expression

2016-12-08 Thread Anastasia Theodouli
Hi all! In my code, I have a multivariate polynomial with a sign symbol which doesn't return the correct result. I.e. The code snippet is as follows: sage: f1=b1-a1.dot_product(x) a1 is a vector with values (76, 83), b1 is scalar with value 62, x is a vecto