Re: [sage-support] Apparently Sage lost Python

2020-04-03 Thread Dima Pasechnik
On Sat, 4 Apr 2020, 12:25 Anita Rojas,  wrote:

> Thanks. I did:
>
> sudo spctl --master-disable
>
> and it worked. I have a question: Did I leave my computer vulnerable by
> doing so?
>

it depends upon settings of your usual account. If it allows password-less
automatic installation of random stuff from the net, then yes...


> Second: I was used to use notebook() but it did not work. .
>
start Sage in the terminal as

sage -n

to get Jupyter notebook - or a convertor from sagenb (which is Python 2
only, so it is being retired)

>
> Deep thanks for your help
> Anita
>
>
>
>
>
> On Sat, Apr 4, 2020 at 12:54 AM Dima Pasechnik  wrote:
>
>> yes, this is an issue due to Apple "improving" their security in the
>> latest MacOS.
>>
>> I believe there are instructions on
>>
>> https://ask.sagemath.org/question/49568/new-sagemath-90-installation-not-running-on-catalina-sagemath-87-worked-fine/
>>
>> and perhaps other posts there.
>>
>> On Sat, 4 Apr 2020, 11:47 Anita Rojas,  wrote:
>>
>>> Thanks a lot!
>>> I am installing a new version of sage. I have received several times
>>> (more than 20) a message like
>>>
>>> macOS no puede verificar el desarrollador de la app “_
>>> sha3.cpython-37m-darwin.so”. ¿Seguro que quieres abrirla?
>>>
>>> Which means that the developer is unknown and it asks me if I want to
>>> open it. It is a warning of malware. I have authorize its installation, but
>>> I have been doing this one by one...is it ok? or usual?
>>>
>>> Thanks, and I am sorry for bothering you but I use sage regularly and I
>>> do not want to lose it.
>>> Best,
>>> Anita
>>>
>>>
>>>
>>> On Sat, Apr 4, 2020 at 12:13 AM Dima Pasechnik 
>>> wrote:
>>>


 On Sat, 4 Apr 2020, 11:11 Anita Rojas,  wrote:

> Hi! I am far away of being a OSX guru, but I managed to get my SAGE
> working.
>
> It use to work properly but now I got the following message:
>
>
> Error: Tried to use Sage's Python which was not yet installed.
>
> If this was called from an spkg-install script for another
>
> package you should add $(PYTHON) as a dependency in
>
> build/pkgs//dependencies
>
>
> I looked for solutions but I could not find answers. I would
> appreciate help.
>

 Probably a MacOS update broke your Sage installation.

 If so, reinstalling might be the only  known way to fix this.


> Best,
>
> Anita
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/sage-support/e7c84768-c030-425a-b78b-aa1a378e757e%40googlegroups.com
> 
> .
>
 --
 You received this message because you are subscribed to a topic in the
 Google Groups "sage-support" group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/sage-support/NletjrinNhM/unsubscribe.
 To unsubscribe from this group and all its topics, send an email to
 sage-support+unsubscr...@googlegroups.com.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/sage-support/CAAWYfq0h61z4n-xV2yT6-CB_-izF5ZkOtF%3DXUu%2Bq_h%2BDekYCZw%40mail.gmail.com
 
 .

>>>
>>>
>>> --
>>> Anita M. Rojas
>>> Departamento de Matemáticas
>>> Facultad de Ciencias
>>> Universidad de Chile
>>>
>>> https://sites.google.com/a/u.uchile.cl/mat-ciencias-prof-anita-rojas/
>>>
>>> --
>>> 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 view this discussion on the web visit
>>> https://groups.google.com/d/msgid/sage-support/CAFV-Ve0zGwCJBrLGAVPncfc7XerfgP9iWxb8Z1bkjgpVs1czLg%40mail.gmail.com
>>> 
>>> .
>>>
>> --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "sage-support" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/sage-support/NletjrinNhM/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to
>> sage-support+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> 

Re: [sage-support] Apparently Sage lost Python

2020-04-03 Thread Anita Rojas
Thanks. I did:

sudo spctl --master-disable

and it worked. I have a question: Did I leave my computer vulnerable by
doing so?

Second: I was used to use notebook() but it did not work.

Deep thanks for your help
Anita





On Sat, Apr 4, 2020 at 12:54 AM Dima Pasechnik  wrote:

> yes, this is an issue due to Apple "improving" their security in the
> latest MacOS.
>
> I believe there are instructions on
>
> https://ask.sagemath.org/question/49568/new-sagemath-90-installation-not-running-on-catalina-sagemath-87-worked-fine/
>
> and perhaps other posts there.
>
> On Sat, 4 Apr 2020, 11:47 Anita Rojas,  wrote:
>
>> Thanks a lot!
>> I am installing a new version of sage. I have received several times
>> (more than 20) a message like
>>
>> macOS no puede verificar el desarrollador de la app “_
>> sha3.cpython-37m-darwin.so”. ¿Seguro que quieres abrirla?
>>
>> Which means that the developer is unknown and it asks me if I want to
>> open it. It is a warning of malware. I have authorize its installation, but
>> I have been doing this one by one...is it ok? or usual?
>>
>> Thanks, and I am sorry for bothering you but I use sage regularly and I
>> do not want to lose it.
>> Best,
>> Anita
>>
>>
>>
>> On Sat, Apr 4, 2020 at 12:13 AM Dima Pasechnik  wrote:
>>
>>>
>>>
>>> On Sat, 4 Apr 2020, 11:11 Anita Rojas,  wrote:
>>>
 Hi! I am far away of being a OSX guru, but I managed to get my SAGE
 working.

 It use to work properly but now I got the following message:


 Error: Tried to use Sage's Python which was not yet installed.

 If this was called from an spkg-install script for another

 package you should add $(PYTHON) as a dependency in

 build/pkgs//dependencies


 I looked for solutions but I could not find answers. I would appreciate
 help.

>>>
>>> Probably a MacOS update broke your Sage installation.
>>>
>>> If so, reinstalling might be the only  known way to fix this.
>>>
>>>
 Best,

 Anita

 --
 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 view this discussion on the web visit
 https://groups.google.com/d/msgid/sage-support/e7c84768-c030-425a-b78b-aa1a378e757e%40googlegroups.com
 
 .

>>> --
>>> You received this message because you are subscribed to a topic in the
>>> Google Groups "sage-support" group.
>>> To unsubscribe from this topic, visit
>>> https://groups.google.com/d/topic/sage-support/NletjrinNhM/unsubscribe.
>>> To unsubscribe from this group and all its topics, send an email to
>>> sage-support+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/sage-support/CAAWYfq0h61z4n-xV2yT6-CB_-izF5ZkOtF%3DXUu%2Bq_h%2BDekYCZw%40mail.gmail.com
>>> 
>>> .
>>>
>>
>>
>> --
>> Anita M. Rojas
>> Departamento de Matemáticas
>> Facultad de Ciencias
>> Universidad de Chile
>>
>> https://sites.google.com/a/u.uchile.cl/mat-ciencias-prof-anita-rojas/
>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/sage-support/CAFV-Ve0zGwCJBrLGAVPncfc7XerfgP9iWxb8Z1bkjgpVs1czLg%40mail.gmail.com
>> 
>> .
>>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "sage-support" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/sage-support/NletjrinNhM/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> sage-support+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sage-support/CAAWYfq0%3DR-2EVm5U%2BTgTn%3DRbORNDF_GTyUn4JcrQgWqjxm3bUA%40mail.gmail.com
> 
> .
>


-- 
Anita M. Rojas
Departamento de Matemáticas
Facultad de Ciencias
Universidad de Chile

https://sites.google.com/a/u.uchile.cl/mat-ciencias-prof-anita-rojas/

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop 

Re: [sage-support] Apparently Sage lost Python

2020-04-03 Thread Dima Pasechnik
yes, this is an issue due to Apple "improving" their security in the latest
MacOS.

I believe there are instructions on
https://ask.sagemath.org/question/49568/new-sagemath-90-installation-not-running-on-catalina-sagemath-87-worked-fine/

and perhaps other posts there.

On Sat, 4 Apr 2020, 11:47 Anita Rojas,  wrote:

> Thanks a lot!
> I am installing a new version of sage. I have received several times (more
> than 20) a message like
>
> macOS no puede verificar el desarrollador de la app “_
> sha3.cpython-37m-darwin.so”. ¿Seguro que quieres abrirla?
>
> Which means that the developer is unknown and it asks me if I want to open
> it. It is a warning of malware. I have authorize its installation, but I
> have been doing this one by one...is it ok? or usual?
>
> Thanks, and I am sorry for bothering you but I use sage regularly and I do
> not want to lose it.
> Best,
> Anita
>
>
>
> On Sat, Apr 4, 2020 at 12:13 AM Dima Pasechnik  wrote:
>
>>
>>
>> On Sat, 4 Apr 2020, 11:11 Anita Rojas,  wrote:
>>
>>> Hi! I am far away of being a OSX guru, but I managed to get my SAGE
>>> working.
>>>
>>> It use to work properly but now I got the following message:
>>>
>>>
>>> Error: Tried to use Sage's Python which was not yet installed.
>>>
>>> If this was called from an spkg-install script for another
>>>
>>> package you should add $(PYTHON) as a dependency in
>>>
>>> build/pkgs//dependencies
>>>
>>>
>>> I looked for solutions but I could not find answers. I would appreciate
>>> help.
>>>
>>
>> Probably a MacOS update broke your Sage installation.
>>
>> If so, reinstalling might be the only  known way to fix this.
>>
>>
>>> Best,
>>>
>>> Anita
>>>
>>> --
>>> 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 view this discussion on the web visit
>>> https://groups.google.com/d/msgid/sage-support/e7c84768-c030-425a-b78b-aa1a378e757e%40googlegroups.com
>>> 
>>> .
>>>
>> --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "sage-support" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/sage-support/NletjrinNhM/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to
>> sage-support+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/sage-support/CAAWYfq0h61z4n-xV2yT6-CB_-izF5ZkOtF%3DXUu%2Bq_h%2BDekYCZw%40mail.gmail.com
>> 
>> .
>>
>
>
> --
> Anita M. Rojas
> Departamento de Matemáticas
> Facultad de Ciencias
> Universidad de Chile
>
> https://sites.google.com/a/u.uchile.cl/mat-ciencias-prof-anita-rojas/
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/sage-support/CAFV-Ve0zGwCJBrLGAVPncfc7XerfgP9iWxb8Z1bkjgpVs1czLg%40mail.gmail.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/CAAWYfq0%3DR-2EVm5U%2BTgTn%3DRbORNDF_GTyUn4JcrQgWqjxm3bUA%40mail.gmail.com.


Re: [sage-support] Apparently Sage lost Python

2020-04-03 Thread Anita Rojas
Thanks a lot!
I am installing a new version of sage. I have received several times (more
than 20) a message like

macOS no puede verificar el desarrollador de la app “_
sha3.cpython-37m-darwin.so”. ¿Seguro que quieres abrirla?

Which means that the developer is unknown and it asks me if I want to open
it. It is a warning of malware. I have authorize its installation, but I
have been doing this one by one...is it ok? or usual?

Thanks, and I am sorry for bothering you but I use sage regularly and I do
not want to lose it.
Best,
Anita



On Sat, Apr 4, 2020 at 12:13 AM Dima Pasechnik  wrote:

>
>
> On Sat, 4 Apr 2020, 11:11 Anita Rojas,  wrote:
>
>> Hi! I am far away of being a OSX guru, but I managed to get my SAGE
>> working.
>>
>> It use to work properly but now I got the following message:
>>
>>
>> Error: Tried to use Sage's Python which was not yet installed.
>>
>> If this was called from an spkg-install script for another
>>
>> package you should add $(PYTHON) as a dependency in
>>
>> build/pkgs//dependencies
>>
>>
>> I looked for solutions but I could not find answers. I would appreciate
>> help.
>>
>
> Probably a MacOS update broke your Sage installation.
>
> If so, reinstalling might be the only  known way to fix this.
>
>
>> Best,
>>
>> Anita
>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/sage-support/e7c84768-c030-425a-b78b-aa1a378e757e%40googlegroups.com
>> 
>> .
>>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "sage-support" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/sage-support/NletjrinNhM/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> sage-support+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sage-support/CAAWYfq0h61z4n-xV2yT6-CB_-izF5ZkOtF%3DXUu%2Bq_h%2BDekYCZw%40mail.gmail.com
> 
> .
>


-- 
Anita M. Rojas
Departamento de Matemáticas
Facultad de Ciencias
Universidad de Chile

https://sites.google.com/a/u.uchile.cl/mat-ciencias-prof-anita-rojas/

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/CAFV-Ve0zGwCJBrLGAVPncfc7XerfgP9iWxb8Z1bkjgpVs1czLg%40mail.gmail.com.


Re: [sage-support] Apparently Sage lost Python

2020-04-03 Thread Dima Pasechnik
On Sat, 4 Apr 2020, 11:11 Anita Rojas,  wrote:

> Hi! I am far away of being a OSX guru, but I managed to get my SAGE
> working.
>
> It use to work properly but now I got the following message:
>
>
> Error: Tried to use Sage's Python which was not yet installed.
>
> If this was called from an spkg-install script for another
>
> package you should add $(PYTHON) as a dependency in
>
> build/pkgs//dependencies
>
>
> I looked for solutions but I could not find answers. I would appreciate
> help.
>

Probably a MacOS update broke your Sage installation.

If so, reinstalling might be the only  known way to fix this.


> Best,
>
> Anita
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/sage-support/e7c84768-c030-425a-b78b-aa1a378e757e%40googlegroups.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/CAAWYfq0h61z4n-xV2yT6-CB_-izF5ZkOtF%3DXUu%2Bq_h%2BDekYCZw%40mail.gmail.com.


[sage-support] Apparently Sage lost Python

2020-04-03 Thread Anita Rojas


Hi! I am far away of being a OSX guru, but I managed to get my SAGE 
working. 

It use to work properly but now I got the following message:


Error: Tried to use Sage's Python which was not yet installed.

If this was called from an spkg-install script for another 

package you should add $(PYTHON) as a dependency in 

build/pkgs//dependencies


I looked for solutions but I could not find answers. I would appreciate 
help.


Best,

Anita

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/e7c84768-c030-425a-b78b-aa1a378e757e%40googlegroups.com.


[sage-support] Different ways of rounding

2020-04-03 Thread Simon King
Hi!

According to IEEE 754, the default rounding mode for floating-point
operations is "round half to even". However, if one calls "round" on
elements of RR, the rounding apparently is "round half away from zero if
the total number of digits in the result is odd and towards zero if
the total number of digits of the result is even":

sage: round(3.5, ndigits=0)
4
sage: round(3.55, ndigits=1)
3.5
sage: round(3.555, ndigits=2)
3.56
sage: round(-3.5, ndigits=0)
-4
sage: round(-3.55, ndigits=1)
-3.5
sage: round(-3.555, ndigits=2)
-3.56
sage: round(-13.555, ndigits=2)
-13.55
sage: round(13.555, ndigits=2)
13.55
sage: builtins.round(13.555)
---
TypeError Traceback (most recent call last)
 in ()
> 1 builtins.round(RealNumber('13.555'))

TypeError: type sage.rings.real_mpfr.RealLiteral doesn't define __round__ method


This gives rise to loads of questions:

1. Is the rule that I formulated really what is used?
2. Is it documented somewhere? It is neither documented in the round()
   function nor in the .round() method of sage.rings.real_mpfr.RealLiteral.
3. Is there some "official" standard (similar to IEEE 754) supporting
   Sage's rounding?
4. Shouldn't the rounding be defined in a .__round__() method rather
   than in a .round() method?
5. Is it possible to explicitly request "half to even" rounding?

Best regards,
Simon


-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/r67qsf%24hha%241%40ciao.gmane.io.


[sage-support] Slow Computations in Quotient Rings

2020-04-03 Thread finotti
A student of mine is trying to use Sage to prove the commutativity of the 
group law of elliptic curves.  Below is the code used when trying to show 
(P + Q) + R = P + (Q + R), when R = P + Q.  I let it run for almost 4 hours 
with no result.  The same code translated to Magma was instantaneous.  Am I 
doing something wrong with Sage?  Or is just that the implementation in 
Magma is more efficient?  (We can use Magma, but it made me curious.)

def add_EC(vE, P, Q):
if P == 0:
return Q
if Q == 0:
return P
a = vE[0]
b = vE[1]
x1 = P[0]
y1 = P[1]
x2 = Q[0]
y2 = Q[1]
if P == Q:
if y1 == 0:
return 0
else:
m = (3*x1^2 + a)/(2*y1)
else:
if x1 == x2:
return 0
else:
m = (y2 - y1)/(x2 - x1)
c = y1 - m*x1
x3 = m^2 - x1 - x2
y3 = m*x3 + c
return [x3, -y3]

R. = PolynomialRing(QQ)

eq1 = b^2 - a^3 - A*a - B
eq2 = d^2 - c^3 - A*c - B

S = R.quo([eq1, eq2])
F = FractionField(S)

vE = [F(A), F(B)]
P = [F(a), F(b)]
Q = [F(c), F(d)]
R = add_EC(vE, P, Q)

LHS = add_EC(vE, add_EC(vE, P, Q), R)
RHS = add_EC(vE, P, add_EC(vE, Q, R))
LHS == RHS





-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/fb86fbb5-55ed-49d4-af33-a3c3c3c2f759%40googlegroups.com.