Re: [sage-support] nonlinear equation system

2022-02-27 Thread cyrille.piate...@univ-orleans.fr
I am not a mathematician but what seems obvious is that you have 8 equations 
with 8 variables. You could conjecture there is at least a real solution even 
if there could be 8. But, your system is highly nonlinear. So you can not 
expect a solution by quadrature. You must try to solve you system numerically.

- Mail d’origine -
De: Scott Wilson 
À: sage-support 
Envoyé: Sun, 27 Feb 2022 20:40:43 +0100 (CET)
Objet: [sage-support] nonlinear equation system

Hello, I am new to sage math and tried to get the solution to the following 
nonlinear equation system. Sage has been working on this since yesterday and I 
am wondering how long I should typically wait. All comments are appreciated. 
Thanks in advance.
var('A B E F I J R T')

eq1 = A*E-B^2-B*F+E^2==1
eq4 = A*I-B*J+I^2+R^2==-1/2
eq5 = A*R-B*T+2*R*I==0
eq6 = B*I-E*J+I*J+R*T==0
eq8 = -B*R+E*T-R*J-I*T==0
eq9 = E*I-F*J+J^2+T^2==1/2
eq11 = -E*R+F*T-2*T*J==0
eq12 = I^2-R^2-J^2+T^2==-1

solve([eq1,eq4,eq5,eq6,eq8,eq9,eq11,eq12],A,B,E,F,I,J,R,T)



-- 

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/47695a04-777d-4fbb-af5d-7371db01a31an%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/599338425.36980299.1646033057570.JavaMail.zimbra%40univ-orleans.fr.


Re: [sage-support] Re: SageMath on Microsoft Windows

2022-02-27 Thread Dima Pasechnik
On Sun, Feb 27, 2022 at 11:21 PM Fernando Gouvea  wrote:
>
> Ubuntu includes python3, but not python without a number. I guess I could 
> make a symlink?

yes, this will solve this problem.

I presume the installer comes from Python2 times, where there was
always python available,
(python2, normally speaking)


>
> Fernando
>
> On Sun, Feb 27, 2022 at 5:57 PM Dima Pasechnik  wrote:
>>
>> On Sun, Feb 27, 2022 at 9:59 PM Fernando Gouvea  wrote:
>> >
>> > I was trying to install SageMath using WSL, mostly to learn how it is 
>> > done. Alas, the latest available Ubuntu distribution for WSL seems to be 
>> > 20.04, which comes with SageMath 9.0. I have 9.2 running on Windows, so no 
>> > advantage to that.
>> >
>> > I did find Ubuntu 20.04 binaries for SageMath 9.4 in 
>> > http://mirrors.mit.edu/sage/linux/64bit/index.html. I downloaded and 
>> > unpacked without problems, at which time the instructions say to switch to 
>> > the SageMath directory and type ./sage. That gives an error:
>> >
>> > /usr/bin/env: ‘python’: No such file or directory
>> > Error running the script 'relocate-once.py'.
>> >
>> > Now what?
>>
>> Do you have Python installed on that Ununtu 20.04 ? Yes, you need it
>> to run the installer
>> (which could be more user-friendly)
>>
>> Actually, probably the easiest is to use Conda installer, and not one
>> of these Sage binaries:
>> https://doc.sagemath.org/html/en/installation/conda.html#sec-installation-conda
>>
>>
>> >
>> > Fernando
>> >
>> > On 2/27/2022 3:46 PM, Matthias Koeppe wrote:
>> >
>> > +1 on adding info on how to install Linux distributions with up-to-date 
>> > binary packages of Sage to our installation guide. See 
>> > https://trac.sagemath.org/ticket/31485
>> >
>> > (The updated installation guide, preview at 
>> > https://6212659123a9467b3cb0cd07--sagemath-tobias.netlify.app/installation/index.html
>> >  already covers WSL but does not mention specific distributions.)
>> >
>> > On Sunday, February 27, 2022 at 10:11:40 AM UTC-8 fqgo...@colby.edu wrote:
>> >>
>> >> I don’t see archlinux in the Microsoft store.
>> >>
>> >> Fernando
>> >>
>> >> On Sun, Feb 27, 2022 at 10:05 AM Dima Pasechnik  wrote:
>> >>>
>> >>>
>> >>>
>> >>> On Sun, 27 Feb 2022, 14:37 G. M.-S.,  wrote:
>> 
>> 
>>  Thanks, Samuel.
>> 
>>  I think it is a pity there is nothing more straightforward…
>> 
>>  But you will tell me (to look for somebody) to do it.
>> >>>
>> >>>
>> >>> some Linux distributions have pretty much up to date Sage binary 
>> >>> packages.
>> >>>
>> >>> E.g. archlinux has Sage 9.5. Thus, having it installed as WSL2 (cf 
>> >>> https://gist.github.com/ld100/3376435a4bb62ca0906b0cff9de4f94b)   should 
>> >>> be getting you Sage 9.5 quite quickly.
>> >>>
>> >>>
>> 
>>  Guillermo
>> 
>>  On Sun, 27 Feb 2022 at 15:28, slelievre  wrote:
>> >
>> > The Cygwin-based Sage-Windows installer has not been released
>> > for SageMath 9.4 or SageMath 9.5 yet.
>> >
>> > To get the latest version of Sage running on Windows, one option
>> > is to activate Windows Subsystem for Linux (also known as WSL),
>> > select WSL2, and install any Linux distribution there, then follow
>> > the Linux installation guide.
>> 
>> 
>> 
>>  --
>>  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...@googlegroups.com.
>>  To view this discussion on the web visit 
>>  https://groups.google.com/d/msgid/sage-support/CANnG188whX6fJTbj1qdPvB-rdeNVm3H_mNmpC3mohE%2B7tM9rMw%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...@googlegroups.com.
>> >>>
>> >>> To view this discussion on the web visit 
>> >>> https://groups.google.com/d/msgid/sage-support/CAAWYfq00MjiCDk9Dd8WHDc55%2Bc%3D84PFQLEmyN8VwaD2TiiEVcg%40mail.gmail.com.
>> >>
>> >> --
>> >> ==
>> >> Fernando Q. Gouvea
>> >> Dept of Mathematics and Statistics 
>> >> http://www.colby.edu/~fqgouvea
>> >> Colby College
>> >> Mayflower Hill 5836
>> >> Waterville, ME 04901
>> >>
>> >> A training in mathematics is a prerequisite today for work in almost
>> >> any scientific field, but even for those who are not going to become
>> >> scientists, it is essential because, if it is only through speech that
>> >> we can understand what freedom means, only through mathematics
>> >> can we understand what necessity means.
>> >>   -- W. H. Auden
>> >>
>> >>
>> > --
>> > 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 

Re: [sage-support] Re: SageMath on Microsoft Windows

2022-02-27 Thread Fernando Gouvea
Ubuntu includes python3, but not python without a number. I guess I could
make a symlink?

Fernando

On Sun, Feb 27, 2022 at 5:57 PM Dima Pasechnik  wrote:

> On Sun, Feb 27, 2022 at 9:59 PM Fernando Gouvea 
> wrote:
> >
> > I was trying to install SageMath using WSL, mostly to learn how it is
> done. Alas, the latest available Ubuntu distribution for WSL seems to be
> 20.04, which comes with SageMath 9.0. I have 9.2 running on Windows, so no
> advantage to that.
> >
> > I did find Ubuntu 20.04 binaries for SageMath 9.4 in
> http://mirrors.mit.edu/sage/linux/64bit/index.html. I downloaded and
> unpacked without problems, at which time the instructions say to switch to
> the SageMath directory and type ./sage. That gives an error:
> >
> > /usr/bin/env: ‘python’: No such file or directory
> > Error running the script 'relocate-once.py'.
> >
> > Now what?
>
> Do you have Python installed on that Ununtu 20.04 ? Yes, you need it
> to run the installer
> (which could be more user-friendly)
>
> Actually, probably the easiest is to use Conda installer, and not one
> of these Sage binaries:
>
> https://doc.sagemath.org/html/en/installation/conda.html#sec-installation-conda
>
>
> >
> > Fernando
> >
> > On 2/27/2022 3:46 PM, Matthias Koeppe wrote:
> >
> > +1 on adding info on how to install Linux distributions with up-to-date
> binary packages of Sage to our installation guide. See
> https://trac.sagemath.org/ticket/31485
> >
> > (The updated installation guide, preview at
> https://6212659123a9467b3cb0cd07--sagemath-tobias.netlify.app/installation/index.html
> already covers WSL but does not mention specific distributions.)
> >
> > On Sunday, February 27, 2022 at 10:11:40 AM UTC-8 fqgo...@colby.edu
> wrote:
> >>
> >> I don’t see archlinux in the Microsoft store.
> >>
> >> Fernando
> >>
> >> On Sun, Feb 27, 2022 at 10:05 AM Dima Pasechnik 
> wrote:
> >>>
> >>>
> >>>
> >>> On Sun, 27 Feb 2022, 14:37 G. M.-S.,  wrote:
> 
> 
>  Thanks, Samuel.
> 
>  I think it is a pity there is nothing more straightforward…
> 
>  But you will tell me (to look for somebody) to do it.
> >>>
> >>>
> >>> some Linux distributions have pretty much up to date Sage binary
> packages.
> >>>
> >>> E.g. archlinux has Sage 9.5. Thus, having it installed as WSL2 (cf
> https://gist.github.com/ld100/3376435a4bb62ca0906b0cff9de4f94b)   should
> be getting you Sage 9.5 quite quickly.
> >>>
> >>>
> 
>  Guillermo
> 
>  On Sun, 27 Feb 2022 at 15:28, slelievre  wrote:
> >
> > The Cygwin-based Sage-Windows installer has not been released
> > for SageMath 9.4 or SageMath 9.5 yet.
> >
> > To get the latest version of Sage running on Windows, one option
> > is to activate Windows Subsystem for Linux (also known as WSL),
> > select WSL2, and install any Linux distribution there, then follow
> > the Linux installation guide.
> 
> 
> 
>  --
>  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...@googlegroups.com.
>  To view this discussion on the web visit
> https://groups.google.com/d/msgid/sage-support/CANnG188whX6fJTbj1qdPvB-rdeNVm3H_mNmpC3mohE%2B7tM9rMw%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...@googlegroups.com.
> >>>
> >>> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sage-support/CAAWYfq00MjiCDk9Dd8WHDc55%2Bc%3D84PFQLEmyN8VwaD2TiiEVcg%40mail.gmail.com
> .
> >>
> >> --
> >> ==
> >> Fernando Q. Gouvea
> >> Dept of Mathematics and Statistics
> http://www.colby.edu/~fqgouvea
> >> Colby College
> >> Mayflower Hill 5836
> >> Waterville, ME 04901
> >>
> >> A training in mathematics is a prerequisite today for work in almost
> >> any scientific field, but even for those who are not going to become
> >> scientists, it is essential because, if it is only through speech that
> >> we can understand what freedom means, only through mathematics
> >> can we understand what necessity means.
> >>   -- W. H. Auden
> >>
> >>
> > --
> > 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/c5091c41-9776-4efe-9c6f-321217ed62d0n%40googlegroups.com
> .
> >
> > --
> > =
> > Fernando Q. Gouvea http://www.colby.edu/~fqgouvea
> > Carter Professor of Mathematics
> > Dept. of Mathematics
> > Colby College
> > 

Re: [sage-support] nonlinear equation system

2022-02-27 Thread Dima Pasechnik
On Sun, Feb 27, 2022 at 9:08 PM Scott Wilson
 wrote:
>
> Hello, I am new to sage math and tried to get the solution to the following 
> nonlinear equation system. Sage has been working on this since yesterday and 
> I am wondering how long I should typically wait. All comments are 
> appreciated. Thanks in advance.
>
> var('A B E F I J R T')
>
> eq1 = A*E-B^2-B*F+E^2==1
> eq4 = A*I-B*J+I^2+R^2==-1/2
> eq5 = A*R-B*T+2*R*I==0
> eq6 = B*I-E*J+I*J+R*T==0
> eq8 = -B*R+E*T-R*J-I*T==0
> eq9 = E*I-F*J+J^2+T^2==1/2
> eq11 = -E*R+F*T-2*T*J==0
> eq12 = I^2-R^2-J^2+T^2==-1
>
> solve([eq1,eq4,eq5,eq6,eq8,eq9,eq11,eq12],A,B,E,F,I,J,R,T)

One should not use a generic solver for polynomial equations.
One can set this up easily:

sage: P.=QQ[]
sage: eq1 = A*E-B^2-B*F+E^2-1
: eq4 = A*I-B*J+I^2+R^2+1/2
: eq5 = A*R-B*T+2*R*I
: eq6 = B*I-E*J+I*J+R*T
: eq8 = -B*R+E*T-R*J-I*T
: eq9 = E*I-F*J+J^2+T^2-1/2
: eq11 = -E*R+F*T-2*T*J
: eq12 = I^2-R^2-J^2+T^2+1
sage: sy=P.ideal(eq1,eq4,eq5,eq6,eq8,eq9,eq11,eq12)

and see that this ideal contains 1, i.e. your system has no solutions,
even no complex solutions, assuming I didn't make an error while
converting:

sage: sy.groebner_basis()
[1]


HTH,
Dima

> --
> 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/47695a04-777d-4fbb-af5d-7371db01a31an%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/CAAWYfq1AmZC-UOOOdHVa-B2xW2nv9EVtpGLtYKp3sqDcr_%2B_ag%40mail.gmail.com.


Re: [sage-support] Re: SageMath on Microsoft Windows

2022-02-27 Thread Dima Pasechnik
On Sun, Feb 27, 2022 at 9:59 PM Fernando Gouvea  wrote:
>
> I was trying to install SageMath using WSL, mostly to learn how it is done. 
> Alas, the latest available Ubuntu distribution for WSL seems to be 20.04, 
> which comes with SageMath 9.0. I have 9.2 running on Windows, so no advantage 
> to that.
>
> I did find Ubuntu 20.04 binaries for SageMath 9.4 in 
> http://mirrors.mit.edu/sage/linux/64bit/index.html. I downloaded and unpacked 
> without problems, at which time the instructions say to switch to the 
> SageMath directory and type ./sage. That gives an error:
>
> /usr/bin/env: ‘python’: No such file or directory
> Error running the script 'relocate-once.py'.
>
> Now what?

Do you have Python installed on that Ununtu 20.04 ? Yes, you need it
to run the installer
(which could be more user-friendly)

Actually, probably the easiest is to use Conda installer, and not one
of these Sage binaries:
https://doc.sagemath.org/html/en/installation/conda.html#sec-installation-conda


>
> Fernando
>
> On 2/27/2022 3:46 PM, Matthias Koeppe wrote:
>
> +1 on adding info on how to install Linux distributions with up-to-date 
> binary packages of Sage to our installation guide. See 
> https://trac.sagemath.org/ticket/31485
>
> (The updated installation guide, preview at 
> https://6212659123a9467b3cb0cd07--sagemath-tobias.netlify.app/installation/index.html
>  already covers WSL but does not mention specific distributions.)
>
> On Sunday, February 27, 2022 at 10:11:40 AM UTC-8 fqgo...@colby.edu wrote:
>>
>> I don’t see archlinux in the Microsoft store.
>>
>> Fernando
>>
>> On Sun, Feb 27, 2022 at 10:05 AM Dima Pasechnik  wrote:
>>>
>>>
>>>
>>> On Sun, 27 Feb 2022, 14:37 G. M.-S.,  wrote:


 Thanks, Samuel.

 I think it is a pity there is nothing more straightforward…

 But you will tell me (to look for somebody) to do it.
>>>
>>>
>>> some Linux distributions have pretty much up to date Sage binary packages.
>>>
>>> E.g. archlinux has Sage 9.5. Thus, having it installed as WSL2 (cf 
>>> https://gist.github.com/ld100/3376435a4bb62ca0906b0cff9de4f94b)   should be 
>>> getting you Sage 9.5 quite quickly.
>>>
>>>

 Guillermo

 On Sun, 27 Feb 2022 at 15:28, slelievre  wrote:
>
> The Cygwin-based Sage-Windows installer has not been released
> for SageMath 9.4 or SageMath 9.5 yet.
>
> To get the latest version of Sage running on Windows, one option
> is to activate Windows Subsystem for Linux (also known as WSL),
> select WSL2, and install any Linux distribution there, then follow
> the Linux installation guide.



 --
 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...@googlegroups.com.
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/sage-support/CANnG188whX6fJTbj1qdPvB-rdeNVm3H_mNmpC3mohE%2B7tM9rMw%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...@googlegroups.com.
>>>
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/sage-support/CAAWYfq00MjiCDk9Dd8WHDc55%2Bc%3D84PFQLEmyN8VwaD2TiiEVcg%40mail.gmail.com.
>>
>> --
>> ==
>> Fernando Q. Gouvea
>> Dept of Mathematics and Statistics 
>> http://www.colby.edu/~fqgouvea
>> Colby College
>> Mayflower Hill 5836
>> Waterville, ME 04901
>>
>> A training in mathematics is a prerequisite today for work in almost
>> any scientific field, but even for those who are not going to become
>> scientists, it is essential because, if it is only through speech that
>> we can understand what freedom means, only through mathematics
>> can we understand what necessity means.
>>   -- W. H. Auden
>>
>>
> --
> 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/c5091c41-9776-4efe-9c6f-321217ed62d0n%40googlegroups.com.
>
> --
> =
> Fernando Q. Gouvea http://www.colby.edu/~fqgouvea
> Carter Professor of Mathematics
> Dept. of Mathematics
> Colby College
> 5836 Mayflower Hill
> Waterville, ME 04901
>
> The reason I never liked being called Professor is that it is
> synonymous with academic, a word that over the past forty years has
> become synonymous with ridiculous.
>   -- Joseph Epstein, in "Don't Call Me Ishmael"
>
> --
> You received this message because you are subscribed 

Re: [sage-support] Re: SageMath on Microsoft Windows

2022-02-27 Thread Henri Girard

Well... A little hacking if I dare say :)

Install wls2 with ubuntu 20.04 then install gwls2 with microsoft store 
verify it's working (it should) and then do-release-upgrade and it 
should install a kind of 22.04. I got it working with sagemath-9.4 (i 
don't know why it' not sage 9.5 as I have it working on a dual boot with 
ubuntu .


Why I do this ? because I have windows 11 and many softs like anaconda 
sage-math windows but yet I didn't success to install wolfram engine on 
windows but in gwls2 jupyter notebook mathematica works well only few 
backdraw but only cosmetic.


It's not too difficult but it needs patience because it can be tricky, 
but the result is good with mate-desktop I use. I even compiled amber20, 
sagemath but needs time.


Best

Henri

Le 27/02/2022 à 22:59, Fernando Gouvea a écrit :


I was trying to install SageMath using WSL, mostly to learn how it is 
done. Alas, the latest available Ubuntu distribution for WSL seems to 
be 20.04, which comes with SageMath 9.0. I have 9.2 running on 
Windows, so no advantage to that.


I did find Ubuntu 20.04 binaries for SageMath 9.4 in 
http://mirrors.mit.edu/sage/linux/64bit/index.html. I downloaded and 
unpacked without problems, at which time the instructions say to 
switch to the SageMath directory and type ./sage. That gives an error:


/usr/bin/env: ‘python’: No such file or directory
Error running the script 'relocate-once.py'.

Now what?

Fernando

On 2/27/2022 3:46 PM, Matthias Koeppe wrote:
+1 on adding info on how to install Linux distributions with 
up-to-date binary packages of Sage to our installation guide. See 
https://trac.sagemath.org/ticket/31485


(The updated installation guide, preview at 
https://6212659123a9467b3cb0cd07--sagemath-tobias.netlify.app/installation/index.html 
already covers WSL but does not mention specific distributions.)


On Sunday, February 27, 2022 at 10:11:40 AM UTC-8 fqgo...@colby.edu 
wrote:


I don’t see archlinux in the Microsoft store.

Fernando

On Sun, Feb 27, 2022 at 10:05 AM Dima Pasechnik
 wrote:



On Sun, 27 Feb 2022, 14:37 G. M.-S.,  wrote:


Thanks, Samuel.

I think it is a pity there is nothing more straightforward…

But you will tell me (to look for somebody) to do it.


some Linux distributions have pretty much up to date Sage
binary packages.

E.g. archlinux has Sage 9.5. Thus, having it installed as
WSL2 (cf
https://gist.github.com/ld100/3376435a4bb62ca0906b0cff9de4f94b)
 should be getting you Sage 9.5 quite quickly.



Guillermo

On Sun, 27 Feb 2022 at 15:28, slelievre
 wrote:

The Cygwin-based Sage-Windows installer has not been
released
for SageMath 9.4 or SageMath 9.5 yet.

To get the latest version of Sage running on Windows,
one option
is to activate Windows Subsystem for Linux (also
known as WSL),
select WSL2, and install any Linux distribution
there, then follow
the Linux installation guide.

-- 
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...@googlegroups.com.
To view this discussion on the web visit

https://groups.google.com/d/msgid/sage-support/CANnG188whX6fJTbj1qdPvB-rdeNVm3H_mNmpC3mohE%2B7tM9rMw%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...@googlegroups.com.

To view this discussion on the web visit

https://groups.google.com/d/msgid/sage-support/CAAWYfq00MjiCDk9Dd8WHDc55%2Bc%3D84PFQLEmyN8VwaD2TiiEVcg%40mail.gmail.com

.

-- 
==

Fernando Q. Gouvea
Dept of Mathematics and Statistics http://www.colby.edu/~fqgouvea
Colby College
Mayflower Hill 5836
Waterville, ME 04901

A training in mathematics is a prerequisite today for work in almost
any scientific field, but even for those who are not going to become
scientists, it is essential because, if it is only through speech
that
we can understand what freedom means, only through mathematics
can we understand what necessity means.
  -- 

Re: [sage-support] Re: SageMath on Microsoft Windows

2022-02-27 Thread Fernando Gouvea
I was trying to install SageMath using WSL, mostly to learn how it is 
done. Alas, the latest available Ubuntu distribution for WSL seems to be 
20.04, which comes with SageMath 9.0. I have 9.2 running on Windows, so 
no advantage to that.


I did find Ubuntu 20.04 binaries for SageMath 9.4 in 
http://mirrors.mit.edu/sage/linux/64bit/index.html. I downloaded and 
unpacked without problems, at which time the instructions say to switch 
to the SageMath directory and type ./sage. That gives an error:


/usr/bin/env: ‘python’: No such file or directory
Error running the script 'relocate-once.py'.

Now what?

Fernando

On 2/27/2022 3:46 PM, Matthias Koeppe wrote:
+1 on adding info on how to install Linux distributions with 
up-to-date binary packages of Sage to our installation guide. See 
https://trac.sagemath.org/ticket/31485


(The updated installation guide, preview at 
https://6212659123a9467b3cb0cd07--sagemath-tobias.netlify.app/installation/index.html 
already covers WSL but does not mention specific distributions.)


On Sunday, February 27, 2022 at 10:11:40 AM UTC-8 fqgo...@colby.edu wrote:

I don’t see archlinux in the Microsoft store.

Fernando

On Sun, Feb 27, 2022 at 10:05 AM Dima Pasechnik 
wrote:



On Sun, 27 Feb 2022, 14:37 G. M.-S.,  wrote:


Thanks, Samuel.

I think it is a pity there is nothing more straightforward…

But you will tell me (to look for somebody) to do it.


some Linux distributions have pretty much up to date Sage
binary packages.

E.g. archlinux has Sage 9.5. Thus, having it installed as WSL2
(cf
https://gist.github.com/ld100/3376435a4bb62ca0906b0cff9de4f94b)
 should be getting you Sage 9.5 quite quickly.



Guillermo

On Sun, 27 Feb 2022 at 15:28, slelievre
 wrote:

The Cygwin-based Sage-Windows installer has not been
released
for SageMath 9.4 or SageMath 9.5 yet.

To get the latest version of Sage running on Windows,
one option
is to activate Windows Subsystem for Linux (also known
as WSL),
select WSL2, and install any Linux distribution there,
then follow
the Linux installation guide.

-- 
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...@googlegroups.com.
To view this discussion on the web visit

https://groups.google.com/d/msgid/sage-support/CANnG188whX6fJTbj1qdPvB-rdeNVm3H_mNmpC3mohE%2B7tM9rMw%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...@googlegroups.com.

To view this discussion on the web visit

https://groups.google.com/d/msgid/sage-support/CAAWYfq00MjiCDk9Dd8WHDc55%2Bc%3D84PFQLEmyN8VwaD2TiiEVcg%40mail.gmail.com

.

-- 
==

Fernando Q. Gouvea
Dept of Mathematics and Statistics http://www.colby.edu/~fqgouvea
Colby College
Mayflower Hill 5836
Waterville, ME 04901

A training in mathematics is a prerequisite today for work in almost
any scientific field, but even for those who are not going to become
scientists, it is essential because, if it is only through speech that
we can understand what freedom means, only through mathematics
can we understand what necessity means.
  -- W. H. Auden


--
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/c5091c41-9776-4efe-9c6f-321217ed62d0n%40googlegroups.com 
.


--
=
Fernando Q. Gouveahttp://www.colby.edu/~fqgouvea
Carter Professor of Mathematics
Dept. of Mathematics
Colby College
5836 Mayflower Hill
Waterville, ME 04901

The reason I never liked being called Professor is that it is
synonymous with 

[sage-support] Re: Compiling Sage on Ubuntu 20.05

2022-02-27 Thread Eric Gourgoulhon
A quick way to install Sage 9.5 from sources on Ubuntu 20.04 is decribed at
https://sagemanifolds.obspm.fr/install_ubuntu.html
HTH.

Eric.

Le dimanche 27 février 2022 à 13:08:36 UTC+1, iitds...@gmail.com a écrit :

> Hi all, 
>
> I have been trying to install sage 9.5 from source on Ubuntu. 
>
> After running the following command i get an error.
>
> CC=gcc-7 CXX=g++ FC=gfortran-7 ./configure
>
> The error that i get is. 
>
> configure: error: 
>
> Given --with-system-gcc=force, but no system package could be used.
> That's an error.  Please install the indicated package to continue.
> (To override this error, use ./configure --without-system-gcc)
>
> Does anyone have a solution for this ? (using -without-system-gcc does fix 
> this error but why could system package not be used)
>
> Thanks,
> Saksham.
>

-- 
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/4ddfbed9-22df-463f-b11b-6ef21b63db71n%40googlegroups.com.


[sage-support] nonlinear equation system

2022-02-27 Thread Scott Wilson
Hello, I am new to sage math and tried to get the solution to the following 
nonlinear equation system. Sage has been working on this since yesterday 
and I am wondering how long I should typically wait. All comments are 
appreciated. Thanks in advance.

var('A B E F I J R T')

eq1 = A*E-B^2-B*F+E^2==1
eq4 = A*I-B*J+I^2+R^2==-1/2
eq5 = A*R-B*T+2*R*I==0
eq6 = B*I-E*J+I*J+R*T==0
eq8 = -B*R+E*T-R*J-I*T==0
eq9 = E*I-F*J+J^2+T^2==1/2
eq11 = -E*R+F*T-2*T*J==0
eq12 = I^2-R^2-J^2+T^2==-1

solve([eq1,eq4,eq5,eq6,eq8,eq9,eq11,eq12],A,B,E,F,I,J,R,T)

-- 
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/47695a04-777d-4fbb-af5d-7371db01a31an%40googlegroups.com.


Re: [sage-support] Re: SageMath on Microsoft Windows

2022-02-27 Thread Matthias Koeppe
+1 on adding info on how to install Linux distributions with up-to-date 
binary packages of Sage to our installation guide. 
See https://trac.sagemath.org/ticket/31485

(The updated installation guide, preview at 
https://6212659123a9467b3cb0cd07--sagemath-tobias.netlify.app/installation/index.html
 
already covers WSL but does not mention specific distributions.)

On Sunday, February 27, 2022 at 10:11:40 AM UTC-8 fqgo...@colby.edu wrote:

> I don’t see archlinux in the Microsoft store.
>
> Fernando
>
> On Sun, Feb 27, 2022 at 10:05 AM Dima Pasechnik  wrote:
>
>>
>>
>> On Sun, 27 Feb 2022, 14:37 G. M.-S.,  wrote:
>>
>>>
>>> Thanks, Samuel.
>>>
>>> I think it is a pity there is nothing more straightforward…
>>>
>>> But you will tell me (to look for somebody) to do it.
>>>
>>
>> some Linux distributions have pretty much up to date Sage binary packages.
>>
>> E.g. archlinux has Sage 9.5. Thus, having it installed as WSL2 (cf 
>> https://gist.github.com/ld100/3376435a4bb62ca0906b0cff9de4f94b)   should 
>> be getting you Sage 9.5 quite quickly.
>>
>>
>>
>>> Guillermo
>>>
>>> On Sun, 27 Feb 2022 at 15:28, slelievre  wrote:
>>>
 The Cygwin-based Sage-Windows installer has not been released
 for SageMath 9.4 or SageMath 9.5 yet.

 To get the latest version of Sage running on Windows, one option
 is to activate Windows Subsystem for Linux (also known as WSL),
 select WSL2, and install any Linux distribution there, then follow
 the Linux installation guide.

>>>  
>>>
>> -- 
>>> 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...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/sage-support/CANnG188whX6fJTbj1qdPvB-rdeNVm3H_mNmpC3mohE%2B7tM9rMw%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...@googlegroups.com.
>>
> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/sage-support/CAAWYfq00MjiCDk9Dd8WHDc55%2Bc%3D84PFQLEmyN8VwaD2TiiEVcg%40mail.gmail.com
>>  
>> 
>> .
>>
> -- 
> ==
> Fernando Q. Gouvea  
> Dept of Mathematics and Statistics 
> http://www.colby.edu/~fqgouvea
> Colby College
> Mayflower Hill 5836   
> Waterville, ME 04901  
>
> A training in mathematics is a prerequisite today for work in almost
> any scientific field, but even for those who are not going to become
> scientists, it is essential because, if it is only through speech that
> we can understand what freedom means, only through mathematics 
> can we understand what necessity means.
>   -- W. H. Auden
>
>
>

-- 
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/c5091c41-9776-4efe-9c6f-321217ed62d0n%40googlegroups.com.


Re: [sage-support] Re: SageMath on Microsoft Windows

2022-02-27 Thread Fernando Gouvea
I don’t see archlinux in the Microsoft store.

Fernando

On Sun, Feb 27, 2022 at 10:05 AM Dima Pasechnik  wrote:

>
>
> On Sun, 27 Feb 2022, 14:37 G. M.-S.,  wrote:
>
>>
>> Thanks, Samuel.
>>
>> I think it is a pity there is nothing more straightforward…
>>
>> But you will tell me (to look for somebody) to do it.
>>
>
> some Linux distributions have pretty much up to date Sage binary packages.
>
> E.g. archlinux has Sage 9.5. Thus, having it installed as WSL2 (cf
> https://gist.github.com/ld100/3376435a4bb62ca0906b0cff9de4f94b)   should
> be getting you Sage 9.5 quite quickly.
>
>
>
>> Guillermo
>>
>> On Sun, 27 Feb 2022 at 15:28, slelievre 
>> wrote:
>>
>>> The Cygwin-based Sage-Windows installer has not been released
>>> for SageMath 9.4 or SageMath 9.5 yet.
>>>
>>> To get the latest version of Sage running on Windows, one option
>>> is to activate Windows Subsystem for Linux (also known as WSL),
>>> select WSL2, and install any Linux distribution there, then follow
>>> the Linux installation guide.
>>>
>>
>>
> --
>> 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/CANnG188whX6fJTbj1qdPvB-rdeNVm3H_mNmpC3mohE%2B7tM9rMw%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/CAAWYfq00MjiCDk9Dd8WHDc55%2Bc%3D84PFQLEmyN8VwaD2TiiEVcg%40mail.gmail.com
> 
> .
>
-- 
==
Fernando Q. Gouvea
Dept of Mathematics and Statistics
http://www.colby.edu/~fqgouvea
Colby College
Mayflower Hill 5836
Waterville, ME 04901

A training in mathematics is a prerequisite today for work in almost
any scientific field, but even for those who are not going to become
scientists, it is essential because, if it is only through speech that
we can understand what freedom means, only through mathematics
can we understand what necessity means.
  -- W. H. Auden

-- 
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/CAPON7s_Sbm6_G3-hL%2Bvn4rh9PTSgLPO5fSuymdLS8BLy7_KshQ%40mail.gmail.com.


Re: [sage-support] Re: SageMath on Microsoft Windows

2022-02-27 Thread G. M.-S.
Thanks Dima.

However, this is for students to get SageMath on their PCs working quickly,
so I think we will install SageMath 9.3 for the time being (they are not
very savvy).

Guillermo

On Sun, 27 Feb 2022 at 16:05, Dima Pasechnik  wrote:

>
> On Sun, 27 Feb 2022, 14:37 G. M.-S.,  wrote:
>
>>
>> Thanks, Samuel.
>>
>> I think it is a pity there is nothing more straightforward…
>>
>> But you will tell me (to look for somebody) to do it.
>>
>
> some Linux distributions have pretty much up to date Sage binary packages.
>
> E.g. archlinux has Sage 9.5. Thus, having it installed as WSL2 (cf
> https://gist.github.com/ld100/3376435a4bb62ca0906b0cff9de4f94b) should be
> getting you Sage 9.5 quite quickly.
>
> Guillermo
>>
>> On Sun, 27 Feb 2022 at 15:28, slelievre 
>> wrote:
>>
>>> The Cygwin-based Sage-Windows installer has not been released
>>> for SageMath 9.4 or SageMath 9.5 yet.
>>>
>>> To get the latest version of Sage running on Windows, one option
>>> is to activate Windows Subsystem for Linux (also known as WSL),
>>> select WSL2, and install any Linux distribution there, then follow
>>> the Linux installation guide.
>>>
>>

-- 
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/CANnG189CiOcWn%3D10VgXnuv%2B14sarFPxS9ZY21HsR2oD0-B%2BAFQ%40mail.gmail.com.


Re: [sage-support] Re: SageMath on Microsoft Windows

2022-02-27 Thread Dima Pasechnik
On Sun, 27 Feb 2022, 14:37 G. M.-S.,  wrote:

>
> Thanks, Samuel.
>
> I think it is a pity there is nothing more straightforward…
>
> But you will tell me (to look for somebody) to do it.
>

some Linux distributions have pretty much up to date Sage binary packages.

E.g. archlinux has Sage 9.5. Thus, having it installed as WSL2 (cf
https://gist.github.com/ld100/3376435a4bb62ca0906b0cff9de4f94b)   should be
getting you Sage 9.5 quite quickly.



> Guillermo
>
> On Sun, 27 Feb 2022 at 15:28, slelievre  wrote:
>
>> The Cygwin-based Sage-Windows installer has not been released
>> for SageMath 9.4 or SageMath 9.5 yet.
>>
>> To get the latest version of Sage running on Windows, one option
>> is to activate Windows Subsystem for Linux (also known as WSL),
>> select WSL2, and install any Linux distribution there, then follow
>> the Linux installation guide.
>>
>
>
> --
> 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/CANnG188whX6fJTbj1qdPvB-rdeNVm3H_mNmpC3mohE%2B7tM9rMw%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/CAAWYfq00MjiCDk9Dd8WHDc55%2Bc%3D84PFQLEmyN8VwaD2TiiEVcg%40mail.gmail.com.


Re: [sage-support] Re: SageMath on Microsoft Windows

2022-02-27 Thread G. M.-S.
Thanks, Samuel.

I think it is a pity there is nothing more straightforward…

But you will tell me (to look for somebody) to do it.

Guillermo

On Sun, 27 Feb 2022 at 15:28, slelievre  wrote:

> The Cygwin-based Sage-Windows installer has not been released
> for SageMath 9.4 or SageMath 9.5 yet.
>
> To get the latest version of Sage running on Windows, one option
> is to activate Windows Subsystem for Linux (also known as WSL),
> select WSL2, and install any Linux distribution there, then follow
> the Linux installation guide.
>

-- 
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/CANnG188whX6fJTbj1qdPvB-rdeNVm3H_mNmpC3mohE%2B7tM9rMw%40mail.gmail.com.


[sage-support] Re: SageMath on Microsoft Windows

2022-02-27 Thread slelievre
The Cygwin-based Sage-Windows installer has not been released
for SageMath 9.4 or SageMath 9.5 yet.

To get the latest version of Sage running on Windows, one option
is to activate Windows Subsystem for Linux (also known as WSL),
select WSL2, and install any Linux distribution there, then follow
the Linux installation guide.

-- 
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/1b7cd011-8b2c-4d15-baad-4060964d849en%40googlegroups.com.


[sage-support] Re: Compiling Sage on Ubuntu 20.05

2022-02-27 Thread slelievre
2022-02-27 13:08:36 UTC+1, Saksham:
>
> CC=gcc-7 CXX=g++ FC=gfortran-7 ./configure

What do the following give?
```
$ which gcc-7
$ which g++
$ which gfortran-7
$ gcc-7 --version
$ g++ --version
$ gfortran-7 --version
```

-- 
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/35d3e4b6-7a6d-4bc1-b67e-78ef7a50a88en%40googlegroups.com.


[sage-support] SageMath on Microsoft Windows

2022-02-27 Thread G. M.-S.
What is the recommended way to install SageMath on Microsoft Windows?

In
https://www.sagemath.org/download-windows.html
it says to go to
https://github.com/sagemath/sage-windows/releases
where I only see
SageMath 9.3 (Windows installer 0.6.3)

Guillermo

-- 
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/CANnG18-3vdJKM1MH-0EwFQsVHXuQuz%3DUW3_%3DU8nFQyhfKMXKOA%40mail.gmail.com.


Re: [sage-support] Compiling Sage on Ubuntu 20.05

2022-02-27 Thread Thierry Dumont
You should start by installing "build-essential" and gfortran. To do 
this you have to do:


sudo apt update
sudo apt install build-essential gfortran

sudo is mandatory (rivileged (root) access).

build-essential contains gcc and g++ compilers as well as some libraries 
and tools, but not the fortran compiler (gfortran).


You will certainly have to install other tools and libraries. Follow 
sage installation procedure, you will get the list of what too install.


Yours,
t.d.

Le 27/02/2022 à 12:22, Saksham a écrit :

Hi all,

I have been trying to install sage 9.5 from source on Ubuntu.

After running the following command i get an error.

CC=gcc-7 CXX=g++ FC=gfortran-7 ./configure

The error that i get is.

configure: error:

     Given --with-system-gcc=force, but no system package could be used.
     That's an error.  Please install the indicated package to continue.
     (To override this error, use ./configure --without-system-gcc)

Does anyone have a solution for this ? (using -without-system-gcc does 
fix this error but why could system package not be used)


Thanks,
Saksham.

--
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/54776375-dc6c-46a5-91d8-ace3d5681ca0n%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/a3d08d4e-a3a3-2787-8379-96e3cb4bceb0%40math.univ-lyon1.fr.


[sage-support] Compiling Sage on Ubuntu 20.05

2022-02-27 Thread Saksham
Hi all, 

I have been trying to install sage 9.5 from source on Ubuntu. 

After running the following command i get an error.

CC=gcc-7 CXX=g++ FC=gfortran-7 ./configure

The error that i get is. 

configure: error: 

Given --with-system-gcc=force, but no system package could be used.
That's an error.  Please install the indicated package to continue.
(To override this error, use ./configure --without-system-gcc)

Does anyone have a solution for this ? (using -without-system-gcc does fix 
this error but why could system package not be used)

Thanks,
Saksham.

-- 
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/54776375-dc6c-46a5-91d8-ace3d5681ca0n%40googlegroups.com.