Re: [sage-support] Re: Highlight code

2011-07-02 Thread Christophe BAL
Hello. You're more than welcome to try replacing code cells with the current CodeMirror, for example, and evaluating how fast/reliable the notebook is then. Then please report your findings here, of course. Where I can do that ? Which file in

Re: [sage-support] Re: Highlight code

2011-07-02 Thread Christophe BAL
Thanks. I'll try to do this as soon as possible. C. 2011/7/2 Jason Grout jason-s...@creativetrax.com On 7/2/11 4:28 AM, Christophe BAL wrote: Hello. You're more than welcome to try replacing code cells with the current CodeMirror, for example, and evaluating how fast/reliable

[sage-support] Python question about rafters used in ring

2011-07-14 Thread Christophe BAL
Hello, how do Sage analyse the rafters in ratpoly.t = PolynomialRing(QQ) ? Where I could find the method used in the source of Sage ? -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For

[sage-support] How Maxima is called from Python ?

2011-07-19 Thread Christophe BAL
Hello, I would like to know how Sage calls Maxima from Python ? Which files have I to look for in the source ? Best regards. Christophe -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com

Re: [sage-support] How Maxima is called from Python ?

2011-07-19 Thread Christophe BAL
Thanks a lot for this informations. Christophe. -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL:

[sage-support] Trigonometric linearization

2011-12-13 Thread Christophe BAL
Hello, what is the easiest way to linearize cos(x)^3 ? -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support

Re: [sage-support] Re: Trigonometric linearization

2011-12-13 Thread Christophe BAL
Thanks a lot. Christophe 2011/12/13 achrzesz achrz...@wp.pl sage: (cos(x)^3).reduce_trig() 1/4*cos(3*x) + 3/4*cos(x) On Dec 13, 7:45 pm, Christophe BAL projet...@gmail.com wrote: Hello, what is the easiest way to linearize cos(x)^3 ? -- To post to this group, send email to sage

[sage-support] Problem for plotting sqrt((x - 2)*(x - 1))

2011-12-31 Thread Christophe BAL
Hello, the following command has a very bad output. plot(sqrt((x - 2)*(x - 1)), (-4, 5)) + plot(-sqrt((x - 2)*(x - 1)), (-4, 5)) How can I ameliorate this ? Best regards. Christophe -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send

Re: [sage-support] Re: Problem for plotting sqrt((x - 2)*(x - 1))

2011-12-31 Thread Christophe BAL
Thanks for this. This kind of example should appear in the tutorial of the documentation. Best regards. Christophe. 2011/12/31 achrzesz achrz...@wp.pl On Dec 31, 11:21 am, Christophe BAL projet...@gmail.com wrote: Hello, the following command has a very bad output. plot(sqrt((x - 2

Re: [sage-support] Customising latex() output

2012-05-05 Thread Christophe BAL
Hello. You could try to do one substitution before the printing. Christophe. 2012/5/5 TNick nicu.to...@gmail.com Hello! I see that is possible to rename() a symbol. But is it possible to customise the (latex) output? say: sage: x = PolynomialRing(QQ, 'x', sparse=True).gen() sage: g =

Re: [sage-support] Calling up pi to nth decimal place.

2012-08-17 Thread Christophe BAL
Hello, have you see this page : http://mathworld.wolfram.com/PiDigits.html ? -- -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at

Re: [sage-support] Calling up pi to nth decimal place.

2012-08-17 Thread Christophe BAL
Sorry for the link, indeed I not really read the page. Indeed, there is one algorithm for the 2 base case : http://en.wikipedia.org/wiki/Bailey%E2%80%93Borwein%E2%80%93Plouffe_formula. I don't know any kind of this algorithm for the 10 base case. I really think that your question will need a

Re: [sage-support] randint - Maybe one bug !

2012-09-19 Thread Christophe BAL
What I think very confusing is that 1/4 is the Sage division and not the Python standard one, so why it would be different for randint ? I'm a teacher and the problem is not from my point of view but it will be a tricky thing to explain to my students which are in french lycée (sorry, I don't

Re: [sage-support] Re: Folders in sagenb

2012-09-23 Thread Christophe BAL
Hello, what is the way to implement folder ? Is it only a JS-HTML feature, or not ? Christophe -- You received this message because you are subscribed to the Google Groups sage-support group. To post to this group, send email to sage-support@googlegroups.com. To unsubscribe from this group,

[sage-support] Share my worksheet

2012-10-03 Thread Christophe BAL
Hello, I would like to share my worksheet with mys students so as then can copy or use my codes. But I do not want that they can change my codes. Is it possible ? Christophe. -- You received this message because you are subscribed to the Google Groups sage-support group. To post to this group,

Re: [sage-support] Are there problems with the www.sagenb.org server? is down?

2012-10-16 Thread Christophe BAL
Hello. I've met the same problem today. Christophe. 2012/10/16 Alberto Fernandez alb...@gmail.com Hi Since yesterday we are trying to work with sage on the www.sagenb.org server and don´t performs calculations. Is this server down? Are our PC´s wrong? Thanks -- You received this

Re: [sage-support] Are there problems with the www.sagenb.org server? is down?

2012-10-16 Thread Christophe BAL
For my part, evaluation always freezes. 2012/10/16 kcrisman kcris...@gmail.com On Tuesday, October 16, 2012 8:07:38 AM UTC-4, projetmbc wrote: Hello. I've met the same problem today. Christophe. 2012/10/16 Alberto Fernandez alb...@gmail.com Hi Since yesterday we are trying to

[sage-support] Upper convex hull (inverse Newton polygon)

2012-10-17 Thread Christophe BAL
Hello, I would like to draw a kind of inverse Newton polygon for points. How can I achieve this ? Christophe -- You received this message because you are subscribed to the Google Groups sage-support group. To post to this group, send email to sage-support@googlegroups.com. To unsubscribe from

Re: [sage-support] Re: Upper convex hull (inverse Newton polygon)

2012-10-18 Thread Christophe BAL
Ok, there is an applet showing on example of the Newton polygon here : http://www.math.sc.edu/~filaseta/newton/newton.html Don't focus on the definition of the Newton polygon but only on the graphic. What I need to obtain is a similar result but from the upper point of viex, and the lower one.

Re: [sage-support] Re: Upper convex hull (inverse Newton polygon)

2012-10-22 Thread Christophe BAL
Hello. One method could be the following one where *L* is a list of points. We note *xMin* and *xMax* the smallest and biggest abscissa respectively. 1. Add two extra points *(xMin , -inf)* and *(xMax , -inf)* to the list * L*. We obtain the list *L**L*. 2. Compute the convex hull of

Re: [sage-support] Re: Upper convex hull (inverse Newton polygon)

2012-10-22 Thread Christophe BAL
Tanks. I don't like the output produced via *q.plot()*. Is there a way to obtain one basic line like *line* does ? Christophe -- You received this message because you are subscribed to the Google Groups sage-support group. To post to this group, send email to sage-support@googlegroups.com. To

Re: [sage-support] Re: Upper convex hull (inverse Newton polygon)

2012-10-23 Thread Christophe BAL
Thanks for this. [?] 2012/10/22 Volker Braun vbraun.n...@gmail.com You can always roll your own if you don't like it. You can also try to take apart the pieces that do the plot, for example, sage: proj = sage.geometry.polyhedron.plot.Projection(q) sage: proj.render_outline_2d(color='red')

[sage-support] What's wrong with sagenb ?

2012-10-29 Thread Christophe BAL
Hello, the following code takes more than one minute to acheive its job. Is there some technical problem with the server ? Christophe Simple code = def pgcdBoucle(a, b): n = 0 if b a: a, b = b, a while(b != 0): a, b = b, a%b n += 1 return

Re: [sage-support] Re: What's wrong with sagenb ?

2012-10-29 Thread Christophe BAL
Happy to find one bug. [?] Christophe 2012/10/29 Jason Grout jason-s...@creativetrax.com On 10/29/12 2:41 PM, William Stein wrote: On Mon, Oct 29, 2012 at 12:26 PM, Christophe BAL projet...@gmail.com wrote: Hello, the following code takes more than one minute to acheive its job

Re: [sage-support] solving Diophantine equations in Sage

2012-12-08 Thread Christophe BAL
Hello. There is no general method : see this page http://mathworld.wolfram.com/DiophantineEquation.html Best regards. C. 2012/12/8 Robert Dodier robert.dod...@gmail.com Hello, is there a way to solve Diophantine equations in Sage? If not a general method, perhaps at least some special

[sage-support] Replace variable of one polynomial with one matrix

2012-12-18 Thread Christophe BAL
Hello, in the following code I would like to replace x with T in Delta_X so as to illustrate the Cayley Hamilton theorem by doing everything by hands. Is it possible ? Best regards. Christophe BAL = var('a b c d e f') T = matrix([ [a, b, c], [0, d, e], [0, 0

[sage-support] Maximal number of worksheets

2012-12-24 Thread Christophe BAL
Hello, I would like to know if there is one maximal number of worksheets. It seems to be the case for active worksheets not archived. Isn't it ? What about the archived worksheets. Best regards. Christophe -- You received this message because you are subscribed to the Google Groups

Re: [sage-support] Re: Replace variable of one polynomial with one matrix

2012-12-24 Thread Christophe BAL
by hands. Is it possible ? Best regards. Christophe BAL = var('a b c d e f') T = matrix([ [a, b, c], [0, d, e], [0, 0, f] ]) T_X = T - x*identity_matrix(3) Delta_X = det(T_X) I can't get that to work. However, this does: treat the variables

[sage-support] Formal power of one matrix

2013-01-24 Thread Christophe BAL
Hello, I would like, if it is possible, to calculate the formal power of one matrix ? My attempt is after but it doesn't work... :-( Christophe == var('n') assume(n, 'integer') E = matrix([ [0 , 1 , 0 , 0 , 0 ], [1/4 , 0 , 3/4 , 0 , 0 ], [0 ,

Re: [sage-support] Re: Formal power of one matrix

2013-01-24 Thread Christophe BAL
You're right ! Sorry for my spam. Christophe -- You received this message because you are subscribed to the Google Groups sage-support group. To post to this group, send email to sage-support@googlegroups.com. To unsubscribe from this group, send email to

Re: [sage-support] Re: Formal power of one matrix

2013-01-24 Thread Christophe BAL
@Jason : thanks for the trick ! 2013/1/24 Christophe BAL projet...@gmail.com You're right ! Sorry for my spam. Christophe -- You received this message because you are subscribed to the Google Groups sage-support group. To post to this group, send email to sage-support@googlegroups.com

Re: [sage-support] Formal power of one matrix

2013-01-24 Thread Christophe BAL
I'm curious to see this output. Can you send it ? 2013/1/24 Stephen Montgomery-Smith step...@missouri.edu On 01/24/13 08:57, Christophe BAL wrote: Hello, I would like, if it is possible, to calculate the formal power of one matrix ? My attempt is after but it doesn't work

[sage-support] Light version of sage for undergraduate students

2013-02-06 Thread Christophe BAL
Hello, it could be very useful for undergraduate students to have a light version of sage so as to not have such a huge program to install. Is there anything planed around this ? Christophe BAL -- You received this message because you are subscribed to the Google Groups sage-support group

Re: [sage-support] Re: Light version of sage for undergraduate students

2013-02-06 Thread Christophe BAL
Can I use Python with this ? Do you have one link ? 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 post

Re: [sage-support] Re: Light version of sage for undergraduate students

2013-02-06 Thread Christophe BAL
This solution is not an off line one but it is still a good option to play with Sage? 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] How to know which module or program is used in backstage ?

2013-02-23 Thread Christophe BAL
Hello, is it possible to know which module or program is used in backstage. Why ? As a french teacher, I'm sometimes tortured so as to inevitably use Windows. [?] So I would like to directly use Python packages rather than a virtual machine if it is possible. Best regards. Christophe BAL

Re: [sage-support] sage pdf document

2013-02-25 Thread Christophe BAL
Please, don't be so agressive. Best regards. Christophe 2013/2/25 Alimuddin Sheikh alimuddins...@gmail.com pg 154 of reference ver 5.4. expand(( u + v + a + b + c)^2) pl check the expansion. in html it's ok, but in pdf ?. a software of this quality. this kind of print mistake all over the

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

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

[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] 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] 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

[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] 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.* *

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

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] 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] 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] 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] 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

[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] 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

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] 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] 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] 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] 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] 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] 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] 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

[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] 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] 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

[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] 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] 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] 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

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] 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

  1   2   >