Re: [sage-support] is_prime() error

2016-04-05 Thread Justin C. Walker
> On Apr 5, 2016, at 09:54 , Harald Schilly wrote: > > the division changes the type to a rational number. I.e. > > type(q) > > > and > > is_prime(Integer(q)) > True > > fixes this. Not sure if that's a bug. It's certainly not obvious why this > happens. I’m not sure this will help, but i

Re: [sage-support] Re: Reflexive polytope facets broken in sage 7.1?

2016-04-05 Thread tortischi
Perfect, thank you! :) On Tuesday, April 5, 2016 at 8:34:05 PM UTC+2, vdelecroix wrote: > > I do > > $ sage-7.1 > ┌┐ > │ SageMath Version 7.1, Release Date: 2016-03-20 │ > │ Type "notebook()" for the browse

Re: [sage-support] Re: is_prime() error

2016-04-05 Thread William Stein
On Tue, Apr 5, 2016 at 12:01 PM, Michael Orlitzky wrote: > On 04/05/2016 01:03 PM, William Stein wrote: >> >> I think we should change is_prime for rational numbers, since people >> get confused by this so much. >> >> How? Pretty much any change at all would be better than the current >> situatio

Re: [sage-support] Re: is_prime() error

2016-04-05 Thread Michael Orlitzky
On 04/05/2016 01:03 PM, William Stein wrote: > > I think we should change is_prime for rational numbers, since people > get confused by this so much. > > How? Pretty much any change at all would be better than the current > situation. Options I can think of: > > - make is_prime([rational]) rai

Re: [sage-support] Re: Reflexive polytope facets broken in sage 7.1?

2016-04-05 Thread Vincent Delecroix
I do $ sage-7.1 ┌┐ │ SageMath Version 7.1, Release Date: 2016-03-20 │ │ Type "notebook()" for the browser-based notebook interface.│ │ Type "help()" for help.

[sage-support] Re: Reflexive polytope facets broken in sage 7.1?

2016-04-05 Thread tortischi
Thank you for checking it. Can anyone confirm that it works in his or her 7.1 installation? On Sunday, April 3, 2016 at 8:05:03 PM UTC+2, Dima Pasechnik wrote: > > this works for me on Linux, Sage 7.2.beta2 > > On Sunday, April 3, 2016 at 6:59:26 PM UTC+1, tort...@gmail.com wrote: >> >> Hey, >>

Re: [sage-support] Re: is_prime() error

2016-04-05 Thread William Stein
On Tue, Apr 5, 2016 at 9:56 AM, Nils Bruin wrote: > Hi everyone, >> >> I was just doing a routine check for a Chaum-van Antwerpen Signature >> Scheme public parameter set(p=2q+1, p,q both odd primes) and in checking a >> small prime, it told me that it was composite. I'm not sure if it's just my >

[sage-support] Re: is_prime() error

2016-04-05 Thread Nils Bruin
Hi everyone, > > I was just doing a routine check for a Chaum-van Antwerpen Signature > Scheme public parameter set(p=2q+1, p,q both odd primes) and in checking a > small prime, it told me that it was composite. I'm not sure if it's just my > build, but obviously I can't have this happening wit

[sage-support] Re: is_prime() error

2016-04-05 Thread Harald Schilly
the division changes the type to a rational number. I.e. type(q) and is_prime(Integer(q)) True fixes this. Not sure if that's a bug. It's certainly not obvious why this happens. -- harald -- You received this message because you are subscribed to the Google Groups "sage-support" group. T

[sage-support] is_prime() error

2016-04-05 Thread cap2102
Hi everyone, I was just doing a routine check for a Chaum-van Antwerpen Signature Scheme public parameter set(p=2q+1, p,q both odd pri

[sage-support] upload .sobj files

2016-04-05 Thread Afonso Henriques Silva Leite
Hi guys! Is there a way to upload .sobj files in sagecloud? -- 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+unsubscr...@googlegroups.com. To post to

[sage-support] Re: Weber point

2016-04-05 Thread kcrisman
> > > If you get a NO from the sage devel, then you can try code here : > https://gist.github.com/endolith/2837160 > > https://gist.github.com/endolith/2837160 > > The Weber point has other names : > https://en.wikipedia.org/wiki/Geometric_median > > Or Mediancentre (not center, apparently). R

[sage-support] Re: Weber point

2016-04-05 Thread Dominique Laurain
I asked myself the same question, some months ago. If you get a NO from the sage devel, then you can try code here : https://gist.github.com/endolith/2837160 https://gist.github.com/endolith/2837160 The Weber point has other names : https://en.wikipedia.org/wiki/Geometric_median Dominique --

[sage-support] Weber point

2016-04-05 Thread Jori Mäntysalo
[ Not important, I am just curious. ] Does SageMath have a function that takes a set of points in a plane as an argument and return an approximation of the point that has shortest distance to given points in average? The point is called the Weber point if I have understood this right. r.eval