On Thu, 27 Nov 2014, Vincent Delecroix wrote:
Could you tell more precisely what failed on the test machine?
Already did, but there is it again:
sage -pip said
Traceback (most recent call last):
File "/home/staff/jm58660/sage-6.4/local/bin/pip", line 9, in
load_entry_point('pip==1.5
On Thu, Nov 27, 2014 at 3:12 PM, Simon King wrote:
> Hi Christophe,
>
> On 2014-11-27, Christophe Bal wrote:
>> Indeed, my question is related to pedagogical reasons. Even if my code is
>> simple, it uses the import machinery that I would like to not use.
>
> Why not? Isn't it a good thing to tea
Hi Christophe,
On 2014-11-27, Christophe Bal wrote:
> Indeed, my question is related to pedagogical reasons. Even if my code is
> simple, it uses the import machinery that I would like to not use.
Why not? Isn't it a good thing to teach students that polluting the
global name space is bad and th
Thanks also to Vincent Lacroix with the "only" PIL solution.
*Christophe BAL*
*Enseignant de mathématiques en Lycée **et développeur Python amateur*
*---*
*French math teacher in a "Lycée" **and amateur developer in Python*
2014-11-27 23:10 GMT+01:00 Christophe Bal :
> The solution of Volker Br
The solution of Volker Braun does the job in a very Sage way. I like that a
lot ! Thanks.
nmax = 150
m = matrix(nmax, nmax, lambda i, j: binomial(i,j)%2)
m.plot()
*Christophe BAL*
*Enseignant de mathématiques en Lycée*
*et développeur Python a
Indeed, my question is related to pedagogical reasons. Even if my code is
simple, it uses the import machinery that I would like to not use.
Le 27 nov. 2014 22:31, "Nils Bruin" a écrit :
> On Thursday, November 27, 2014 1:08:30 PM UTC-8, projetmbc wrote:
>>
>> Hello.
>>
>> Is it possible to do th
Not really more "Sage" way but
sage: from PIL import Image
sage: nmax = 256
sage: I = Image.new('1', (nmax,nmax))
sage: I.putdata([int(binomial(n,k)%2 == 1) for n in range(nmax) for k
in range(nmax)])
sage: I.save('/tmp/tmp.png')
Anyway, any Python is good to be used in Sage. You should be more
p
Not exactly the same but shows the gist:
sage: m = matrix(5, 5, lambda i, j: binomial(i,j))
sage: m.plot()
On Thursday, November 27, 2014 9:08:30 PM UTC, projetmbc wrote:
>
> Hello.
>
> Is it possible to do the same thing as the following code in "pure" Sage
> coding ?
>
> *Christophe BAL*
> *
On Thursday, November 27, 2014 1:08:30 PM UTC-8, projetmbc wrote:
>
> Hello.
>
> Is it possible to do the same thing as the following code in "pure" Sage
> coding ?
>
> *Christophe BAL*
> *Enseignant de mathématiques en Lycée*
> *et développeur Python amateur*
>
> *--**--**--**--- **CODE *
Hello.
Is it possible to do the same thing as the following code in "pure" Sage
coding ?
*Christophe BAL*
*Enseignant de mathématiques en Lycée*
*et développeur Python amateur*
*--**--**--**--- **CODE **---**--**--**--*
*import matplotlib.pyplot as plt*
*import numpy as np*
*from
Hi Jori,
2014-11-27 6:10 UTC−06:00, Jori Mantysalo :
> For some reason ./sage -pip didn't work on test machine, but there was no
> problems on production server. What I did was
Could you tell more precisely what failed on the test machine?
Vincent
--
You received this message because you are
Just for others maybe wondering this: I got this working.
For some reason ./sage -pip didn't work on test machine, but there was no
problems on production server. What I did was
$ ./sage -i pip
$ ./sage -pip install nltk
$ ./sage
sage: import nltk
sage: nltk.download()
and last as root
# chm
The elliptic curve in your example is not integral, but can be made so
by scaling with u=2^4 * 306280853 *
830500407109015815207935972981995995737.
The reason why "algorithm='sage'" is not finishing is that it is
factoring the discriminant of the integral model, which is 1034
digits:
sage: E.integ
13 matches
Mail list logo