Re: [sage-support] Why factor(6*x+3) doesn't give 3*(2*x+1) in SageCell?

2017-04-07 Thread Christophe BAL (via GMAIL)
Just try : - Z_T, t = ZZ['x'].objgen() print factor(6*t+3) print factor(6*x+3) - You will se that you need to use the right ring of polynomials. C. -- You received this message because you are subscribed to the Google Groups

Re: [sage-support] Why factor(6*x+3) doesn't give 3*(2*x+1) in SageCell?

2017-04-06 Thread Christophe Bal
Hello Havr you try to work with ZZ[X] ? Le 6 avr. 2017 17:47, "Chris Seberino" a écrit : > Why factor(6*x+3) doesn't give 3*(2*x+1) ? > > Thanks! > > cs > > -- > You received this message because you are subscribed to the Google Groups > "sage-support" group. > To

Re: [sage-support] Quadratic form polynomial

2017-02-02 Thread Christophe Bal
Hello. Who is the author of the quote "I would like to die. ..." ? Le 3 févr. 2017 01:40, "Justin C. Walker" a écrit : On Feb 2, 2017, at 12:51 , Watson Ladd wrote: > Dear all, > > I believe the q.polynomial() routine where q is a quadratic form is off by > a factor of 2. Or

Re: [sage-support] Re: (William Stein) "my top priority right now is to **make a lot of money**"

2016-08-27 Thread Christophe Bal
Thanks a lot. *Christophe BAL* *Enseignant de mathématiques en Lycée **et développeur Python amateur* *---* *French teacher of **math** in a high school **and **amateur **Python * *developer* 2016-08-27 19:27 GMT+02:00 Dima Pasechnik <dimp...@gmail.com>: > > > On Saturday, Augus

Re: [sage-support] Re: (William Stein) "my top priority right now is to **make a lot of money**"

2016-08-27 Thread Christophe Bal
Thanks. Do you have a link to that ? Le 27 août 2016 01:12, "kcrisman" a écrit : > > > On Thursday, August 25, 2016 at 3:43:44 AM UTC-4, projetmbc wrote: >> >> That is not a problem. You can still use your own server to use SMC . >> That will be my choice because in France

Re: [sage-support] (William Stein) "my top priority right now is to **make a lot of money**"

2016-08-25 Thread Christophe Bal
C'est clair. Je ne vois pas où est le problème car le projet reste open source avec en 0lus une volonté de proposer une utilisation sur un serveur local. Le 25 août 2016 10:29, "Henri Girard" a écrit : > Certains on la dent longue ! lol > > > Le 25/08/2016 à 10:14,

Re: [sage-support] Re: (William Stein) "my top priority right now is to **make a lot of money**"

2016-08-25 Thread Christophe Bal
That is not a problem. You can still use your own server to use SMC . That will be my choice because in France we cannot pay a lot for tools in HighSchool. *Christophe BAL* *Enseignant de mathématiques en Lycée **et développeur Python amateur* *---* *French teacher of **math** in a high school

Re: [sage-support] Solving a system of polynomial equations

2015-12-22 Thread Christophe Bal
Hello. What is your problem ? Defining variables using indexes ? Solving a multivariate polynomial equation ? Le 22 déc. 2015 22:19, "Theodore-Alexander Karagkioules" < theodore.karagkiou...@gmail.com> a écrit : > Hello guys, > > I was wondering if you could help me solve this system of

Re: [sage-support] help plotting graphs

2015-11-19 Thread Christophe Bal
William talks about D3.js. Le 19 nov. 2015 18:53, "John Cremona" a écrit : > Thanks -- I was half-expecting Nathann to be the first to reply! I > don't (or rather, did not) know what D3 is...and I think I will wait > for someone else to do that for the LMFDB & isogeny

Re: [sage-support] Re: recursion

2015-11-13 Thread Christophe Bal
Hello. I think also that the problem comes from the fact that liste are copiez by reference. Le 13 nov. 2015 06:25, "Nils Bruin" a écrit : > On Thursday, November 12, 2015 at 6:09:26 PM UTC-8, Roberto La Scala wrote: > >> It happens that the value of the list l changes for

RE: [sage-support] Re: keyboard shortcuts

2015-10-30 Thread Christophe Bal
Hello. Can you share with us your image ? Le 30 oct. 2015 09:42, "Anthony Wickstead" a écrit : > I think that part of the problem being highlighted here is that the OVA’s > that are provided all open a virtual linux browser to access Sage. I use > Sage for undergraduate

Re: [sage-support] A problem with doing integrations on cloud.sagemath.com

2015-10-13 Thread Christophe Bal
ssumptions.py", line 157, in assume maxima.eval("declare(%s, %s)" % (self._var._maxima_init_(), self._assumption)) AttributeError: 'function' object has no attribute '_maxima_init_' *Christophe BAL* *Enseignant de mathématiques en Lycée **et développeur Python amateur* *---* *Fren

Re: [sage-support] Sage on Mac OS X 10.11

2015-10-06 Thread Christophe Bal
Hello. The developers of MacTeX hasard indiçâtes in the last days that the folder usr is not longer usable by applications. Maybe this can help in fixing problems. Le 6 oct. 2015 17:33, "Thomas Judson" a écrit : > Has anyone been able to get Sage running on El Capitan? The

Re: [sage-support] What is wrong with this SAGE function?

2015-06-04 Thread Christophe Bal
Use range(n-1) instead of range [n-1]. *Christophe BAL* *Enseignant de mathématiques en Lycée **et développeur Python amateur* *---* *French math teacher in a Lycée **and **Python **amateur developer* 2015-06-04 23:44 GMT+02:00 Phoenix anirbit.mukher...@gmail.com: I am trying to define

[sage-support] Counting the number of square roots in an expression

2015-03-09 Thread Christophe Bal
Hello. Lets suppose that I have *sqrt(6)*(sqrt(3)+5)*. How can I count the number of square root in this expression ? *Christophe BAL* *Enseignant de mathématiques en Lycée **et développeur Python amateur* *---* *French math teacher in a Lycée **and **Python **amateur developer* -- You

Re: [sage-support] Re: Counting the number of square roots in an expression

2015-03-09 Thread Christophe Bal
The string trick would do the job, but maybe the tree method would be nicer. How can I walk in the tree ? Is the tree the one of simply or another one ? *Christophe BAL* *Enseignant de mathématiques en Lycée **et développeur Python amateur* *---* *French math teacher in a Lycée **and **Python

[sage-support] How Sage compares expressions containing square roots ?

2015-02-26 Thread Christophe Bal
Hello. How Sage do to evaluate *bool(sqrt(2) + sqrt(6) == 2*sqrt(sqrt(3)+2))* ? *Christophe BAL* *Enseignant de mathématiques en Lycée **et développeur Python amateur* *---* *French math teacher in a Lycée **and **Python **amateur developer* -- You received this message because you

Re: [sage-support] How Sage compares expressions containing square roots ?

2015-02-26 Thread Christophe Bal
Thanks a lot for you answer and the explanations about the method you've used. *Christophe BAL* *Enseignant de mathématiques en Lycée **et développeur Python amateur* *---* *French math teacher in a Lycée **and **Python **amateur developer* 2015-02-26 23:25 GMT+01:00 Vincent Delecroix 20100

[sage-support] matrix Matrix ?

2015-02-12 Thread Christophe Bal
Hello. What is the difference between matrix and Matrix ? *Christophe BAL* *Enseignant de mathématiques en Lycée **et développeur Python amateur* *---* *French math teacher in a Lycée **and **Python **amateur developer* -- You received this message because you are subscribed to the Google

Re: [sage-support] matrix Matrix ?

2015-02-12 Thread Christophe Bal
Thanks. *Christophe BAL* *Enseignant de mathématiques en Lycée **et développeur Python amateur* *---* *French math teacher in a Lycée **and **Python **amateur developer* 2015-02-12 13:06 GMT+01:00 Vincent Delecroix 20100.delecr...@gmail.com: Hello, There is none and that can be tested

Re: [sage-support] Re: Real symbolic variable

2015-01-30 Thread Christophe Bal
Sorry for m'y repeated mails. I do not want to do that. I beg your pardon. Le 30 janv. 2015 20:05, Lee Worden worden@gmail.com a écrit : On Thursday, January 29, 2015 at 10:17:32 PM UTC-8, Vegard Lima wrote: But I think that was my point... If you do something like this sage: a =

[sage-support] Re: Real symbolic variable

2015-01-29 Thread Christophe Bal
I've just tried *a = var(a)assume(a, real)* *print a.is_real()* This prints *False*. Why ? *Christophe BAL* *Enseignant de mathématiques en Lycée **et développeur Python amateur* *---* *French math teacher in a Lycée **and **Python **amateur developer* 2015-01-28 21:56 GMT+01:00

Re: [sage-support] Re: Real symbolic variable

2015-01-29 Thread Christophe Bal
Thanks for the argument domain. For the end of the code, this sounds like a bug. *Christophe BAL* *Enseignant de mathématiques en Lycée **et développeur Python amateur* *---* *French math teacher in a Lycée **and **Python **amateur developer* 2015-01-29 13:04 GMT+01:00 Vegard Lima vegard.l

Re: [sage-support] Re: Real symbolic variable

2015-01-29 Thread Christophe Bal
sage: a.is_real() False *sage: a = var('a') sage: a.is_real() True* *Christophe BAL* *Enseignant de mathématiques en Lycée **et développeur Python amateur* *---* *French math teacher in a Lycée **and **Python **amateur developer* 2015-01-29 23:55 GMT+01:00 William Stein wst...@gmail.com

Re: [sage-support] Real symbolic variable

2015-01-29 Thread Christophe Bal
Hello. Indeed, I just want to define complex number via the algebraic form z=a+i*b. expr.simplify_real() will be a great tool. I will be patient... *Christophe BAL* *Enseignant de mathématiques en Lycée **et développeur Python amateur* *---* *French math teacher in a Lycée **and **Python

Re: [sage-support] Re: Real symbolic variable

2015-01-29 Thread Christophe Bal
I also think that the 2nd use if var should erase the 2nd. Le 30 janv. 2015 07:17, Vegard Lima vegard.l...@gmail.com a écrit : On Thu, Jan 29, 2015 at 11:55 PM, William Stein wst...@gmail.com wrote: This is because Python is a *dynamically* typed language.Thinking that doing something like

[sage-support] Real symbolic variable

2015-01-28 Thread Christophe Bal
Hello. How can I define a symbolic variable that is a real number ? Therer is an optional argument real in the latest versions of Sympy but this not work in Sage. *Christophe BAL* *Enseignant de mathématiques en Lycée **et développeur Python amateur* *---* *French math teacher in a Lycée

[sage-support]

2014-12-09 Thread Christophe Bal
Hello. Is there an easy way to load a picture into an array so as to apply a matrix transformation to all the xy-corrdinates ? If a solution without using numpy exists, this would be cool. *Christophe BAL* *Enseignant de mathématiques en Lycée **et développeur Python amateur* *---* *French math

Re: [sage-support] Re: Porting one Python code to a Sage one

2014-11-28 Thread Christophe Bal
and in this case, do not speak of importation will be an error. In my work, for the moment I have student doing math and not programmation. *Christophe BAL* *Enseignant de mathématiques en Lycée **et développeur Python amateur* *---* *French math teacher in a Lycée **and amateur developer

[sage-support] Porting one Python code to a Sage one

2014-11-27 Thread Christophe Bal
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

Re: [sage-support] Re: Porting one Python code to a Sage one

2014-11-27 Thread Christophe Bal
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 sympy import binomial

Re: [sage-support] Re: Porting one Python code to a Sage one

2014-11-27 Thread Christophe Bal
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

Re: [sage-support] Re: Porting one Python code to a Sage one

2014-11-27 Thread Christophe Bal
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 projet...@gmail.com

[sage-support] Formal methods are not human one

2014-10-29 Thread Christophe Bal
Hello. I'm looking for formal outputs that are not calculated as a human can do (this is for a free french book). Do you know such kind of examples ? Christophe BAL PS : this questions has been posted on both Sage and Sympy lists. -- You received this message because you are subscribed

[sage-support] Looking for wrong results

2014-10-28 Thread Christophe Bal
the following one. Try it, it is funny even if I know what is is the reason of the unexpected result. *--* *u = 1.0/3* *for i in range(100):* *u = 4*u - 1* *print u* *--* Christophe BAL -- You received this message because you are subscribed

Re: [sage-support] Looking for wrong results

2014-10-28 Thread Christophe Bal
Thanks for this trick. 2014-10-28 16:36 GMT+01:00 William Stein wst...@gmail.com: On Tue, Oct 28, 2014 at 8:19 AM, Christophe Bal projet...@gmail.com wrote: Hello. I'm writing a french book about SageMathCloud and I'm looking for known wrong results given by Sage due to floats

Re: [sage-support] Re: [sage-cloud] Histogram

2014-10-09 Thread Christophe Bal
Thanks for all this informations. C. 2014-10-09 17:47 GMT+02:00 kcrisman kcris...@gmail.com: This is http://trac.sagemath.org/ticket/9671 And in my review queue, but I'm not quite there yet. I have also had to show people how to do this by hand many times, using at least one of *

[sage-support] Problem with color and plot

2014-09-28 Thread Christophe Bal
Hello. What am I doing wrong in the following code that display everything in blue ? Christophe -- graphic = plot(x**2-3, xmin=0, xmax=4, ymin=-3, ymax=13) graphic += plot(line([(0, 0), (0, -3)]), color='red', linestyle=--) graphic += plot(line([(4, 0), (4, 13)]), color='red',

Re: [sage-support] Problem with color and plot

2014-09-28 Thread Christophe Bal
([(0,0),(3,4)], color='red') sage: graphics.show() Vincent 2014-09-28 12:43 UTC+02:00, Christophe Bal projet...@gmail.com: Hello. What am I doing wrong in the following code that display everything in blue ? Christophe -- graphic = plot(x**2-3, xmin=0, xmax=4, ymin=-3

Re: [sage-support] Problem with color and plot

2014-09-28 Thread Christophe Bal
Yes you're right but indeed I was thinking like a matplotlib. Le 28 sept. 2014 19:34, William A Stein wst...@uw.edu a écrit : On Sun, Sep 28, 2014 at 3:43 AM, Christophe Bal projet...@gmail.com wrote: Hello. What am I doing wrong in the following code that display everything in blue

Re: [sage-support] How to paste code for quick rather than type code in terminal in sage cloud

2014-09-26 Thread Christophe Bal
Hello. You can use .sagews file. Christophe 2014-09-26 13:45 GMT+02:00 martinchan2...@gmail.com: How to paste code for quick rather than type code in terminal in sage cloud -- You received this message because you are subscribed to the Google Groups sage-support group. To unsubscribe

[sage-support] Formula for simple recursive sequences

2014-09-25 Thread Christophe Bal
Hello. Is it possible to ask to sage to give formulas for simple recursive sequences ? For example, *w_{n+1} = (n+1)/n*w_n + 1/n* with *w_0 = 1* , we have *w_n = 2 n + 1* . More simple example could be arithmetico-geometrical sequences *w_{n+1} = a*w_n + b* . Christophe BAL -- You

Re: [sage-support] Re: Formula for simple recursive sequences

2014-09-25 Thread Christophe Bal
* . More simple example could be arithmetico-geometrical sequences *w_{n+1} = a*w_n + b* . Christophe BAL Brief answer which I think others can expand upon - I believe both Maxima and Sympy can do so inside Sage, though I don't know that we have a good interface to those capabilities yet

Re: [sage-support] Formula for simple recursive sequences

2014-09-25 Thread Christophe Bal
This examples gives value for known n, what I'm looking for is a general formula with a symbolic n. For arithmetico-geometrical sequences, my purpose is more pedagogical than practical. 2014-09-25 22:38 GMT+02:00 Jorge Garcia calcp...@gmail.com: Also, geometric and arithmetic sequences need

Re: [sage-support] Formula for simple recursive sequences

2014-09-25 Thread Christophe Bal
a formula to a serie sum(k=0 ; n ; w_k) where w_k is at least hypergeometric. 2014-09-25 22:46 GMT+02:00 Christophe Bal projet...@gmail.com: This examples gives value for known n, what I'm looking for is a general formula with a symbolic n. For arithmetico-geometrical sequences, my purpose is more

[sage-support] Share piece of Sage code

2014-09-16 Thread Christophe Bal
Hello, I used a long time ago a website where I can put piece of Sage code that could be visible by anyone without having to open an account. The problem is that I do not remember the url of this website. Dos someone sees which website I'm talking about ? Christophe BAL -- You received

Re: [sage-support] Re: Share piece of Sage code

2014-09-16 Thread Christophe Bal
The problem with gist is that you can't play with the code. The website I used allow external user to play with the code like in http://sagecell.sagemath.org/ . 2014-09-16 12:17 GMT+02:00 Dima Pasechnik dimp...@gmail.com: On 2014-09-16, Christophe Bal projet...@gmail.com wrote: Hello, I

[sage-support] Understanding precisely why 0.1 + 0.2 = 0.30000000000000004

2014-09-15 Thread Christophe Bal
of the approximation of 0.1 + 0.2. What I'm doing wrong in my investigations ? Christophe BAL -- 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

Re: [sage-support] Understanding precisely why 0.1 + 0.2 = 0.30000000000000004

2014-09-15 Thread Christophe Bal
No need to go deeper in a technical article. I will give a very elementary explanation later here (now I do not have the time to type this). -- You received this message because you are subscribed to the Google Groups sage-support group. To unsubscribe from this group and stop receiving emails

[sage-support] Infinite representation in base 2 of a decimal number

2014-09-14 Thread Christophe Bal
Hello. Is there a ready ti use function that can give a truncated version of the representation in base 2 of a decimal number ? This is only to explain why print(0.1 + 0.3) fails with Python3. Christophe -- You received this message because you are subscribed to the Google Groups

Re: [sage-support] Infinite representation in base 2 of a decimal number

2014-09-14 Thread Christophe Bal
Sometime the monkey looks at the moon instead of the finger. Sorry for this not-a-question of the weekend. Thanks. 2014-09-14 16:13 GMT+02:00 William A Stein wst...@uw.edu: On Sun, Sep 14, 2014 at 3:01 AM, Christophe Bal projet...@gmail.com wrote: Hello. Is there a ready ti use

[sage-support] Very basic questions - Number of digits in floats

2014-09-10 Thread Christophe Bal
Hello. I would to do two thinks. 1. Know the number of decimal digits that Sage uses in a program. 2. Choose the number of decimal digits displayed. Sorry for this unformal question. Christophe BAL -- You received this message because you are subscribed to the Google Groups sage

Re: [sage-support] Very basic questions - Number of digits in floats

2014-09-10 Thread Christophe Bal
Thanks for all !!! Christophe BAL 2014-09-10 17:38 GMT+02:00 William A Stein wst...@uw.edu: On Wed, Sep 10, 2014 at 8:24 AM, Jeroen Demeyer jdeme...@cage.ugent.be wrote: On 2014-09-10 17:18, William A Stein wrote: RR is pre-defined to be RealField(53), and overwriting that might cause

Re: [sage-support] Re: promote Sage on python success stories

2014-08-27 Thread Christophe Bal
A failure ? Why ? Le 27 août 2014 13:37, Nathann Cohen nathann.co...@gmail.com a écrit : Please consider adding on Python mainstream webpage some info about Sage project. It was a great idea to choose Python as a main programming language to implement Sage project. So I think that python and

[sage-support] BUG - Sage Version 6.3, Release Date: 2014-08-10

2014-08-16 Thread Christophe Bal
Hello. Under Ubuntu 14, the latest version 6.3 contains some files not goood EOF. Best regards. Christophe BAL PS : Here is the error message with all the files concerned. --- EOFError

Re: [sage-support] Re: BUG - Sage Version 6.3, Release Date: 2014-08-10

2014-08-16 Thread Christophe Bal
Yes, that's it. Christophe BAL Le 16 août 2014 14:58, Dima Pasechnik dimp...@gmail.com a écrit : On 2014-08-16, Christophe Bal projet...@gmail.com wrote: --089e013cba22d420490500bb2fa6 Content-Type: text/plain; charset=UTF-8 Hello. Under Ubuntu 14, the latest version 6.3 contains

Re: [sage-support] Why Sage is called Sage ?

2014-08-15 Thread Christophe Bal
Thanks fo this link that I have not yet read by laziness. I will do it soon. Christophe BAL 2014-08-15 5:30 GMT+02:00 Robert Bradshaw rober...@gmail.com: http://sagemath.blogspot.com/2009/12/mathematical-software-and-me-very.html On Thu, Aug 14, 2014 at 1:14 AM, John Cremona john.crem

Re: [sage-support] Why Sage is called Sage ?

2014-08-14 Thread Christophe Bal
Thanks a lot. Christophe BAL 2014-08-14 10:14 GMT+02:00 John Cremona john.crem...@gmail.com: When William Stein first started the project it was an acronym SAGE for (I think) System for Algebra and Geometry Experimentation. But soon it became a much wider project (mathematically) than

Re: [sage-support] Getting started with SMC

2014-05-05 Thread Christophe Bal
Hello. I do not think this is necessary for Sage sheets and IPython. Indeed, for more advanced features, there is a real need but this problem has been already evokated in this mailing list. Best regards. Christophe Le 5 mai 2014 16:52, kcrisman kcris...@gmail.com a écrit : On Monday, May

Re: [sage-support] if I input 1.1, why is it real not rational?

2014-03-28 Thread Christophe Bal
Hello. I do not think that is really a convention, but it is very logical because 1.1 can also be a float result given by Python. But floats and decimals are not the same due to the ways operators act on them. Christophe BAL Le 28 mars 2014 10:34, Ralf Stephan gtrw...@gmail.com a écrit : I

Re: [sage-support] if I input 1.1, why is it real not rational?

2014-03-28 Thread Christophe Bal
Your last comment is good. Maybe you can use Decimal(1.1) to avoid confusion. Le 28 mars 2014 10:57, Ralf Stephan gtrw...@gmail.com a écrit : On Friday, March 28, 2014 10:39:10 AM UTC+1, projetmbc wrote: I do not think that is really a convention, but it is very logical because 1.1 can also

Re: [sage-support] extension de corps

2014-03-19 Thread Christophe Bal
Hello, this is an english list. Christophe BAL French PS: il va falloir traduire en anglais votre question. 2014-03-19 21:26 GMT+01:00 ghammamlou...@gmail.com: Bonsoir SVP, j'ai besoin de definir sur Sage 3 extensions de corps, mais je n'arrive pas. Je peux definir que deux extensions

Re: [sage-support] extension de corps

2014-03-19 Thread Christophe Bal
Indeed you are talking about field extensions and not about bubonic body extensions. This is just French humor. ;-) Le 20 mars 2014 01:13, Anton Sherwood bro...@pobox.com a écrit : On 2014-3-19 13:26, ghammamlou...@gmail.com wrote: Bonsoir SVP, j'ai besoin de definir sur Sage 3 extensions de

Re: [sage-support] what is the syntax of the repeat loop ?

2014-03-18 Thread Christophe Bal
Hello, you have to learn Python a little before using Sage. In Python you just have while and for loops. What kind of repeat loop do you want to do ? Christophe BAL 2014-03-18 21:57 GMT+01:00 etienne mann etienne.m...@gmail.com: Hi, I did not find a reference for programing a repeat loop

Re: [sage-support] what is the syntax of the repeat loop ?

2014-03-18 Thread Christophe Bal
==[]; Le mardi 18 mars 2014 22:01:17 UTC+1, projetmbc a écrit : Hello, you have to learn Python a little before using Sage. In Python you just have while and for loops. What kind of repeat loop do you want to do ? Christophe BAL 2014-03-18 21:57 GMT+01:00 etienne mann etienn...@gmail.com

Re: [sage-support] what is the syntax of the repeat loop ?

2014-03-18 Thread Christophe Bal
Instead of *not(S == [])*, Python allows to simply use *not S*, and instead of *not(r == 0)* you can use *r != 0*, and lastly instead of *S = S + [r]* you can use *S.append(r)*, or *S += [r]* if you do not want to use OOP. Christophe BAL -- You received this message because you are subscribed

Re: [sage-support] creating a graph from a graph with one edge removed

2014-03-12 Thread Christophe Bal
Hello. This is certainly due to the way Python manages unhashable variables. If you type p6 is c6, you will obtain True, in other words, p6 and c6 are two references to the same object. Using p6=c6.copy() will do the job. Best regards. Christophe BAL 2014-03-12 21:42 GMT+01:00 Ken Levasseur

Re: [sage-support] Re: Best strategy for exporting/importing big lists or tuples to human-readable files?

2014-03-06 Thread Christophe Bal
Hello, if you want to work with long table-array, it could be useful to use numpy. 2014-03-06 22:19 GMT+01:00 geo909 gtzana...@gmail.com: I finally decided to use the csv goodies of python as described here: http://docs.python.org/2/library/csv.html On Thursday, March 6, 2014 11:56:22 AM

Re: [sage-support] Re: checking if two matrices are permutation similar

2014-02-27 Thread Christophe Bal
Hello. Can you give a small example of your matrices ? Christophe. 2014-02-27 20:40 GMT+01:00 Volker Braun vbraun.n...@gmail.com: Its not clear what you mean by permutation, row? column? both? In any case, sorting is faster than trying all permutations. On Thursday, February 27, 2014

[sage-support] SageMathCloud - Printing

2014-01-14 Thread Christophe Bal
Hello, I've just tried to print one code using the print option and I have some suggestions about this. 1. The formatting should be a little enhance so as to be print in black and white. Simple captions can do this job. 2. Indicates the code with line numbered can be useful so as to

Re: [sage-support] SageMathCloud - Printing

2014-01-14 Thread Christophe Bal
I do not know that there is such a list. Thanks for pointing this. C. 2014/1/14 John Cremona john.crem...@gmail.com Perhaps you meant to email the sage-cloud mailing list? John Cremona On 14 January 2014 09:55, Christophe Bal projet...@gmail.com wrote: Hello, I've just tried to print

Re: [sage-support] Factorial Carry Value in Python

2013-11-14 Thread Christophe Bal
Hello, I would do it like that. I think that in the question the 0! must be change to 1!. _ = S = u_1*(n - 1)! + u_2*(n - 2)! + ... + u_{n - 2}*2! + u_{n - 1}*1! S = [[ ... [[u_1*(n - 1) + u_2]*(n - 2)] + ... + u_{n - 2}] ... ]]*2 + u_{n - 1} def factrep(S): ans = [] d = 2

Re: [sage-support] Re: Comment in python code [[cloud.sagemath.com]]

2013-11-04 Thread Christophe Bal
Indeed there are small security problems and big ones. The use of eval or exec can cause real big problems. I'll try to show that in private. Not here... I'm not sure to do such a hack but if the actual version uses exec or eval, it would be possible. My remark is just to help and not to

Re: [sage-support] Re: Comment in python code [[cloud.sagemath.com]]

2013-11-04 Thread Christophe Bal
Thanks. Where all of this I'd implemented ? Le 4 nov. 2013 15:20, William Stein wst...@gmail.com a écrit : On Mon, Nov 4, 2013 at 6:04 AM, Christophe Bal projet...@gmail.com wrote: Indeed there are small security problems and big ones. The use of eval or exec can cause real big problems

Re: [sage-support] Plot is maybe too good :)

2013-11-03 Thread Christophe Bal
Hello, I think also that there is a problem. More simply, something like -- var('a') plot(a^2==3,a,1,7) -- should work like --- var('a') plot(bool(a^2==3),a,1,7) --- But the plot

[sage-support] Plot several functions in the same graphic - A stack like method

2013-11-03 Thread Christophe Bal
Hello, here is a way to draw several functions on the same graphic. myFamily = plot(0, x, 1, 7) for a in range(1, 10): myFamily += plot(a*x^2+2, x, 1, 7) show(myFamily) I find this

[sage-support] Comment in python code [[cloud.sagemath.com]]

2013-11-03 Thread Christophe Bal
Hello. I think that is not good to have an error with the following code. for i in range(10): # Here is a basic comment... print i, --, i**2 The error due to the comment is the following one. Error in lines

Re: [sage-support] Re: Plot several functions in the same graphic - A stack like method

2013-11-03 Thread Christophe Bal
Indeed, I'm french with a more or less knowledge of english... ;-) I was just thinking of stacking one curve upon another. Your proposition is the one I was looking for. Thanks. Christophe 2013/11/3 Nils Bruin nbr...@sfu.ca On Sunday, November 3, 2013 2:22:05 AM UTC-8, projetmbc wrote:

Re: [sage-support] Re: Comment in python code [[cloud.sagemath.com]]

2013-11-03 Thread Christophe Bal
Thanks for the reactivity. I have no time today to implement this but indeed it is a very simple task to do. If no one gives you something, I can try to adapt your code. Just tell us in this discussion if someone has done the job. For my part, I could only look at this this french thursday. Best

Re: [sage-support] Re: Comment in python code [[cloud.sagemath.com]]

2013-11-03 Thread Christophe Bal
Quickly, what are the functions to change ? What is the feature wanted for parsing.py ? This will help me to try to improve your code. 2013/11/3 Christophe Bal projet...@gmail.com Thanks for the reactivity. I have no time today to implement this but indeed it is a very simple task to do

Re: [sage-support] Re: Comment in python code [[cloud.sagemath.com]]

2013-11-03 Thread Christophe Bal
at that thursday. 2013/11/3 Christophe Bal projet...@gmail.com Quickly, what are the functions to change ? What is the feature wanted for parsing.py ? This will help me to try to improve your code. 2013/11/3 Christophe Bal projet...@gmail.com Thanks for the reactivity. I have no time today

Re: [sage-support] Re: Comment in python code [[cloud.sagemath.com]]

2013-11-03 Thread Christophe Bal
an optional parameter. 2013/11/3 Christophe Bal projet...@gmail.com Sorry for my question because William wrote : *The relevant function is divide_into_blocks in parsing.py, which I've attached to this email, in case anybody wants to fix it for me, since people like Robert Bradshaw and you

Re: [sage-support] Re: Comment in python code [[cloud.sagemath.com]]

2013-11-03 Thread Christophe Bal
Hello. The use of AST is a pretty way BUT you must not use *eval* or *exec*because of real security issues. It's easy to find explanations about that on the web. Christophe 2013/11/3 Nils Bruin nbr...@sfu.ca On Sunday, November 3, 2013 12:42:04 PM UTC-8, Nils Bruin wrote: Note that you

Re: [sage-support] is_polynomial with symbolic coefficient returns wrong answer ? Bug ?

2013-10-19 Thread Christophe Bal
Hello, this is certainly a bug. The error comes from (a/s**2).is_polynomial(s). Christophe 2013/10/17 Alessandro Bernardini alessandro.bernardini@gmail.com sage: s, a, b= var('s a b') sage: (1/s^2 + s).is_polynomial(s) False sage: (a/s^2 + b*s).is_polynomial(s) True sage:

Re: [sage-support] Suggestion about Sagemath Cloud

2013-10-10 Thread Christophe Bal
Thanks for the way to translate the pseudo url to a real one. That is exactly wath I'm looking for. Christophe. PS : it's a real pleasure to use the interface of SageMath Cloud ! :-) 2013/9/27 William Stein wst...@gmail.com On Fri, Sep 27, 2013 at 9:37 AM, Christophe Bal projet...@gmail.com

Re: [sage-support] Sagemath Cloud - Bugs and Suggestions

2013-10-05 Thread Christophe Bal
even if it is not preceded by a print function, but I do not see a reason to print all intermediate alone strings. Best regards. Christophe BAL -- You received this message because you are subscribed to the Google Groups sage-support group. To unsubscribe from this group and stop receiving emails

Re: [sage-support] Sagemath Cloud - Bugs and Suggestions

2013-10-05 Thread Christophe Bal
All of this looks good. Thanks. Christophe Le 6 oct. 2013 01:03, William Stein wst...@gmail.com a écrit : On Sat, Oct 5, 2013 at 3:51 PM, Christophe Bal projet...@gmail.com wrote: Hello. I will try to be clearer. Sorry for my english, I'm a french frog

[sage-support] Unwanted factorization...

2013-10-04 Thread Christophe Bal
Hello, the following code prints *21**(x^2 + 2*x)/(28*x^2 - 3*x - 40) but I would simply like to have (21*x^2 + 42*x)/(28*x^2 - 3*x - 40) Can I acheive this ? Best regards. C. === CODE === param = [] for i in range(8): param.append(randint(-10,10)) num(x) = (param[0]*x -

[sage-support] Sagemath Cloud - Bugs and Suggestions

2013-10-04 Thread Christophe Bal
*Hello,* *here are some bugs and suggestions.* * * *Best regards.* *Christophe which is a real fan of Sagemath Cloud.* *=* *BUG 1* *=* * * *When I rename a Sage worksheet, its content is erased.* * * *=* *BUG 2* *=* * * *I can't download directly all the content of one fold.* *

[sage-support] Sagemath Cloud

2013-09-27 Thread Christophe Bal
Hello, how can I share my project to other persons ? Christophe -- 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

Re: [sage-support] Re: Sagemath Cloud

2013-09-27 Thread Christophe Bal
Indeed, I would like to show my codes to my students in read-only mode. I hope that will be possible soon. Christophe Le 27 sept. 2013 17:35, Harald Schilly harald.schi...@gmail.com a écrit : On Friday, September 27, 2013 2:07:37 PM UTC+2, projetmbc wrote: Hello, how can I share my

Re: [sage-support] Re: Sagemath Cloud

2013-09-27 Thread Christophe Bal
Great fro the future. 2013/9/27 William Stein wst...@gmail.com On Fri, Sep 27, 2013 at 9:22 AM, Christophe Bal projet...@gmail.com wrote: Indeed, I would like to show my codes to my students in read-only mode. I hope that will be possible soon. It will be. I've just had

[sage-support] Suggestion about Sagemath Cloud

2013-09-27 Thread Christophe Bal
Hello, when I download a Sage sheet containing one plot, I do not have the picture output corresponding to the plot. Indeed, I will type one Python code so as to build a LaTeX from my Sage codes. Without the picture output, I will have to recall the Sage code locally. No so hard to do but it will

[sage-support] About cloud sagemath

2013-09-24 Thread Christophe Bal
Hello, I would like to know if it is safe to use https://cloud.sagemath.com with high school students. Christophe -- 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

Re: [sage-support] About cloud sagemath

2013-09-24 Thread Christophe Bal
My question is more technical than pedagogical because I already use the old Sage site. I will try this year hoping that I will not found big bug. 2013/9/24 William Stein wst...@gmail.com On Sep 24, 2013 10:46 AM, Christophe Bal projet...@gmail.com wrote: Hello, I would like to know

Re: [sage-support] About cloud sagemath

2013-09-24 Thread Christophe Bal
I'll be happy to contribute this way. I have a security issue question. Why do you accept creation of of new account simply by giving an email address ? Are you not afraid of web-robots attack ? 2013/9/24 William Stein wst...@gmail.com On Sep 24, 2013 11:11 AM, Christophe Bal projet

Re: [sage-support] Strange behaviour for two similar functions

2013-06-07 Thread Christophe BAL
+1 2013/6/7 John Cremona john.crem...@gmail.com I think you need to read a python intro to see the difference between mutable / immutable lists and similar. This is a python question, not really a Sage question. John Cremona On 7 June 2013 09:24, B. Zhang yangtz...@gmail.com wrote:

[sage-support] Best site to use Sage online

2013-04-03 Thread Christophe BAL
Hello, what is the best solution(s) to use Sage online ? Christophe -- 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

Re: [sage-support] sage pdf document

2013-02-27 Thread Christophe BAL
Unsatisfied people can join the project and proposes one patch. Anyone can be agressive with one commercial project but not with a free one. That's not correct. Christophe. On Monday, February 25, 2013 10:56:31 AM UTC-5, projetmbc wrote: Please, don't be so agressive. Indeed. So, it

Re: [sage-support] Re: Extract only some elements from a set

2013-02-26 Thread Christophe BAL
Hello, this is more a python question that a sympy question If L is the list [{x0:1, x1: 0, y0: 1}], then L[0] is the dictionnary {x0:1, x1: 0, y0: 1}. Than you can try something like L[0][x0] or L[0][x0]. Hoping that this will help you. Best regards. Christophe. 2013/2/26 Santanu Sarkar

  1   2   >