### [sage-support] Re: Convert a string (python) into a function (sage)

**3 var('x') f = eval(s) t = f(x).replace(3,hello) print t The expected result was x^hello or x**hello or, better : x^(hello) Have a good day Laurent --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from

### [sage-support] Re: Convert a string (python) into a function (sage)

David Joyner a écrit : Maybe this then? sage: from sympy import * sage: Symbol(x) x sage: f = 3*x^2 sage: str(f.as_basic()) '3*x**2' Yes !! :):) Thanks a lot. Laurent --~--~-~--~~~---~--~~ To post to this group, send email to sage-support

### [sage-support] matrix times variable

results when I try slight differences. Any help is much welcome. Thanks Have a good day Laurent --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr

### [sage-support] Re: matrix times variable

in that release is *completely* broken - don't use that version. As Simon suggested either upgrade to the binary provided by Sage or build from source. Yes, this is the one from Ubuntu-Jaunty. I try to update. Thanks Laurent Best regards, Simon Cheers, Michael

### [sage-support] Re: Simplification

On May 14, 12:57 pm, Laurent moky.m...@gmail.com wrote: Btw, the function simplify_full does not exist ... so I suppose that I *do* miss something. Yes. simplify_full is not a function but a method (after all, python is object oriented). Thanks all. Indeed, simplify_all(s

### [sage-support] Re: Personnal module, pythonpath and all that ...

Errata in my question : 3. I try to fix the second problem by adding the following in .bashrc : export SAGE_PATH=\$PYTHONPATH source \$HOME/Sage/sage-envCorrection : \$HOME/Sage/local/bin/sage-env --~--~-~--~~~---~--~~ To post to this group, send email

### [sage-support] Re: A lot of execfile and print \x01r\x01e266 in notebook output

/script/modules export SAGE_PATH=\$PYTHONPATH and then, I creates links to the Sage module repertory : for f in `ls --color=never ~/script/modules/*.py`;do ln \$f \$PYTHONPATH;done I really hates to install something otherwise than via the package manager :( Have a nice day Laurent

### [sage-support] Re: Can I write a sage program and run it from command line?

().Evaluation(3) print f.Evaluation(8) -- Copy-paste it in a text file, make it executable, and enjoy ! Laurent --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group

### [sage-support] Re: Can I write a sage program and run it from command line?

starting. I suppose that the line from sage.all import * takes ages. Is there a way to import less ? Have a good afternoon Laurent --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email

### [sage-support] Re: Can I write a sage program and run it from command line?

named PyQt4 ... well. Good to know. Laurent --~--~-~--~~~---~--~~ 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

### [sage-support] Re: How to define a constant function

in a personal module which is imported in my principal script ... which can itself be called from a bash script. So I prefer, as far as possible to write regular python and use Sage as a module imported. Have a nice afternoon Laurent --~--~-~--~~~---~--~~ To post

### [sage-support] Convert imaginary exponentials into sine and cosine

Sage produce an output under a real form, i.e. using cos(x) and sin(x) instead of combinations of imaginary exponentials ? I already tried to add this : assume(imag_part(x)==0) Any ideas ? Thanks and have a good WE Laurent --~--~-~--~~~---~--~~ To post

### [sage-support] Re: Save our Souls

, so that you can solve problem by ssh. Laurent --~--~-~--~~~---~--~~ 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

### [sage-support] Re: Is it possible to replace the list built-in type in Sage?

(a/9), sin(a/9)] for a in [b+3 for b in [2*c for c in list ]]] It makes your main code much more readable, even if you use it only once. Good afternoon Laurent [1] What's the right word in English ? --~--~-~--~~~---~--~~ To post to this group, send email to sage

### [sage-support] Re: primitive k-th root of unity

(x))*cos(real_part(x)) but : sage: var('x') x sage: assume(imag_part(x)==0) sage: real_part(e^(I*x)) e^(-imag_part(x))*cos(real_part(x)) seems strange to me. Does someone know how to make Sage understand that x is real and that e^(i*x) = cos(x)+I*sin(x) ?? Good afternoon Laurent

### [sage-support] Re: compatibility mode in sage 4.x?

== 1/2*(I*sqrt(3) - 1)*(y + 2)^(1/3), x == 1/2*(-I*sqrt(3) - 1)*(y + 2)^(1/3), x == (y + 2)^(1/3) ] 1/2*(-I*sqrt(3) - 1)*(y + 2)^(1/3) Have a good afternoon Laurent --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com

### [sage-support] Re: Piecewise function definition

of a function and an interval, and then a piecewise function as a list of pieces of functions. I'm far from being sure that it is an optimal way, but as far as I understand your problem, I would do like that. Have a good day Laurent --~--~-~--~~~---~--~~ To post

### [sage-support] Re: breaking out of double for loops

the function (in particular the two loops). Hope that it helps Laurent --~--~-~--~~~---~--~~ 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

### [sage-support] Y axis non at y=0.

that the value of y on the X axis should be explicitly written when it is not zero. Have a good afternoon Laurent --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support

### [sage-support] Re: Y axis non at y=0.

strange the first time. Laurent --~--~-~--~~~---~--~~ 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

### [sage-support] Re: ubuntu 9.04 sage notebook LaTeX does not work : kpdf not availabe

are good viewer. (Magritte would say that this is not a troll Gnome Vs KDE ;) ) Have a nice day Laurent --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr

### [sage-support] Re: simplify

have a question which is far away from Sage : in the sentence Help will be appreciated. Is appreciated a false-friend for the French expression appréciée ? Can one use appreciated in English in that context ? Have a good night Laurent --~--~-~--~~~---~--~~ To post

### [sage-support] Re: How run file code in Sage notebook?

my_module This is not as direct as the other solutions, but in some case, it can be a good solution. Have a good night Laurent --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email

### [sage-support] Re: [sage-support]how to simply the equation

had to add ** by hand. The second point could, however, be seen as a bug in thunderbird... Have a good day Laurent --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support

### [sage-support] Re: slope function

http://www.ctan.org/tex-archive/macros/latex/contrib/sagetex/ [1] One says to take a look at or to have a look at ?? I'm not sure... Have a good night Laurent --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe

### [sage-support] Defining a function including numerical_integral

] --- I got the following error message. Traceback (click to the left for traceback) ... TypeError: float() argument must be a string or a number My aim is to do solve(g(x)=0.5) for example. Any ideas ? Have a good night Laurent --~--~-~--~~~---~--~~ To post

### [sage-support] Re: Polynomial approximation of a function

, it is implemented in Sage, but I don't remember the exact names. (searching for Taylor in the documentation) have a good afternoon Laurent --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage

### [sage-support] Re: Ubuntu 9.10

davier2 ha scritto: Is the binary for Ubuntu 9.04 also to be used under Ubuntu 9.10 or will a new one be posted? I'm running Sage 4.2 under Karmic, using the file sage-4.2-linux-Ubuntu_9.04-i686-Linux.tar.gz Seems to work for me. Laurent

### [sage-support] smoothness in plot3d

can I ask for a finer sampling, or to compute more intermediate points ? I'm sure there is an option to add, but I don't see in the documentation which one. (I'm reading the Sage reference manual, version 4.1.1, Agust 14 2009). Thanks for any help have a good noon Laurent -- To post

### Re: [sage-support] smoothness in plot3d

of integers for a surface. Note that the documentation output by plot3d? doesn't even mention the plot_points option, which is why you're confused. Exact. Tanks all for your answers ! It works fine now. Laurent PS : A ticket within 10 minutes, this is incredible efficiently ! :-) -- To post

### [sage-support] publishing a program written with Sage in complement of a scientific article

that module which computes most of the results I derive in my paper. Thus I have two files .py (using Sage) to publish and add to my bibliography. Does one knows where and how I have to publish them ? Some website for sharing the code ? Have a good night Laurent -- To post to this group, send email

### Re: [sage-support] Re: publishing a program written with Sage in complement of a scientific article

for anybody. If someone think that Sage will be improved by knowing 10 matrices of so(2,3), ok, I will think about making it well. If not, I will follow the way of Carlo, and register myself in the list of article that cite Sage :) have a good night, and thanks for the advices Laurent -- To post

### Re: [sage-support] Re: Finding a maximum value of a function on an interval?

for that. For symbolic answers you could do sage: solve(diff(f,x)==0,x) but of course that is more limited in what it can answer. In particular, it does not solve correctly trigonometric equations : it finds only one solution and looses if a higher local maximum exists at another place. Laurent

### Re: [sage-support] plot3d doesn't display.

computer this (or one of its dependencies) makes plot3d work on Firefox. (Jaunty and Karmic) Hope that helps have a good night Laurent -- 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

### Re: [sage-support] Plotting....

are wrong. Chuck Norris can plot that function on a interval which contains 1, but Sage cannot. Laurent -- 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

### Re: [sage-support] synchronizing local Sage worksheets

in order to mount my external drive into /home. I'm sure it is possible to do the same with OSX. The point is only to see if that method fits your personal constraints. Have a good afternoon Laurent -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from

### Re: [sage-support] Simplify trig and sin(0.500000000000000*pi)

(numerical_approx(1/2)) print type(1/2) type 'sage.rings.real_mpfr.RealNumber' type 'sage.rings.rational.Rational' My two cents Laurent -- 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

### Re: [sage-support] Re: list vs. integer instances

as it can be usefull in some circumstances. However, you should not try to do in python the same as you should do in C. In many cases, it turns out to be better to think your program differently. Have a nice trip into python Laurent -- To post to this group, send email to sage-support

### [sage-support] Eigenvectors in radical format

: the result will never contain more than one easy radical, so the length of the display will not be an issue. Many thanks Have a nice WE Laurent -- 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] Eigenvectors in radical format

This would probably do what you want, but it still has some issues before it can go in: http://trac.sagemath.org/sage_trac/ticket/8626 Sounds good. Waiting for the release, I'll try to automatize the way Simon did. Have a nice day Laurent -- To post to this group, send email to sage

### [sage-support] One more math document citing Sage

repository : http://gitorious.org/math-gene-ulb Have a nice afternoon Laurent -- 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

### Re: [sage-support] One more math document citing Sage

/Teaching_with_SAGE Unfortunately, I cannot change the page myself. The information to be filled are Semester 2008-2010 Title/URL http://student.ulb.ac.be/~lclaesse/geog.pdf Teacher Laurent Delicatessens University Université libre de Bruxelles and Université catholique de Louvain Info Algèbre linéaire

### Re: [sage-support] Possible bug?

('x,a,b,c') You have to declare the mathematical variables before to use them. Laurent -- 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

### [sage-support] Real exponential of a matrix (rotations with sine/cosine)

(x) How can automatize it ? Is it a way to perform this simplification to each element of the matrix at once ? Have a good afternoon Laurent -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr

### Re: [sage-support] Re: Real exponential of a matrix (rotations with sine/cosine)

working on, but it would have been cool :) Have a nice afternoon Laurent -- 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] multivariable limits ?

Hello I want to use Sage in order to check some of my computations in preparing a first year course of math. It seems that the method f.limit does not compute limits for two variables functions. How can I do ? thanks Have a good night Laurent -- To post to this group, send email

### [sage-support] problem with a limit containing a fraction of square roots

is said to be fixed in Sage 4.3.1 while I have Sage 4.5.3 [1] http://trac.sagemath.org/sage_trac/ticket/4142 Have a good afternoon Laurent -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr

### Re: [sage-support] Re: Set and real intervals

working on intersections and I plan to be able to test inclusion. doctest of the working methods are included in the code. Up to writing better documentation and finishing the work, do one think that it can be included in some place in Sage ? Have a good day Laurent -- To post to this group, send

### Re: [sage-support] plotting box function

plot(lambda x: box(x,1), (x, -3, 3)) but why does this way the execution of the function get delayed? because lambda is a way to define a function. This works more or less like the following : def MyFunction(x) return box(x,1) plot(MyFunction,(x,-3,3)) See for example

### Re: [sage-support] abs(pi*i) Bug

suppose that some Sage gurus will explain why abs(pi*I)=pi*I. However as far as my knowledge in math is concerned, the good generalization of abs to the complex plane is the norm. sage: (pi*I).norm() pi^2 This is the correct answer. Hope it helps ... Have a good afternoon Laurent

### Re: [sage-support] converting expression with real coefficient to rational coefficient

' Laurent -- 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: http://www.sagemath.org

### Re: [sage-support] exp(I*x) -- cos(x)+I*sin(x)

is real. return (t.real_part()+I*t.imag_part()).simplify_trig() Hope that helps Laurent -- 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

### Re: [sage-support] accented characters

more than once ! Have a nice day Laurent -- 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: http

### Re: [sage-support] Integrals of trigonometric functions

by hand shows that a primitive of cos(2x)cos(x) is (-2/3)*sin(x)^3+sin(x) The correct answer is thus zero and sage is wrong. My two cents Laurent -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr

### Re: [sage-support] solve() exception when variable names contain brackets

it hels in some way Laurent -- 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: http://www.sagemath.org

### Re: [sage-support] Re: exact vs approximate values

If you prefer functions: There is also an n function. sage: n(r) 1.77241469651904 Since the symbol n is often override, I prefer to use the explicit name: sage: numerical_approx(r) Just my SR(2) cents Laurent -- To post to this group, send email to sage-support@googlegroups.com

### Re: [sage-support] exp(I*pi*n).simplify_exp() doesn't work well

*A.imag_part() --- this is the stupid part !! sage: Abis.simplify_trig() (-1)^n Have a nice day Laurent -- 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

### [sage-support] Mixing tab and spaces on the LiveCD

configuration of the default editor on the live cd should make spaces when the TAB key is pressed. What do you think about ? Laurent [1] I don't want to denounce in which university you can boot public computers on a live cd. -- To post to this group, send email to sage-support@googlegroups.com

### Re: [sage-support] Re: Mixing tab and spaces on the LiveCD

-Advanced_Setup.html#Remaster_the_Live_CD_ Thanks, I'll do that next time. Laurent -- 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

### Re: [sage-support] Re: Evaluating Symbolic Expressions

Laurent -- 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: http://www.sagemath.org

### Re: [sage-support] import .sage file [was : Evaluating Symbolic Expressions]

understood how to use it because if my file is named hello.sage, I cannot do import hello.sage in an other file. But if it is named hello.py, I can write import hello I admit I never got trough the doc about that issue ;) Laurent -- To post to this group, send email to sage-support@googlegroups.com

### Re: [sage-support] import .sage file [was : Evaluating Symbolic Expressions]

why some pieces of code was working in a context and nonworking in an other. Have a good afternoon, Laurent -- 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

### Re: [sage-support] unsupported operand type(s) ????????

list and with a method __sub__ that makes the job. I don't believe you really want to be able to subtract *any* pair of lists ;) Hope it helps Laurent the answer I want is b-a=[3,2] but in sage i come up with a type Error: unsupported operand type(s) for -: 'list' and 'list

### Re: [sage-support] Interrupted Sphinx docstrings

def function2(): rthe function's documentation With a # that indicates a comment instead of a docstring ? Or the idea behind the question is how to create a docstring that is seen by doctests but not by sphinx ? Laurent -- To post to this group, send email to sage-support

### Re: [sage-support] assumption in symbolic solve

==1 cx+cy==2 and there are no assumptions about 1/a = 2/c or not. Hope it helps have a good night Laurent I am new to sage (converting from mathcad), so please forgive my basic question. I am trying to solve system of equations in a symbolic way, as a simple example: var('a,b,c,d,d1,d2,d3,x,x1

### Re: [sage-support] Dependence set of a symbolic expression

() () thus one has to be somewhat careful. Laurent -- 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: http

### Re: [sage-support] Low order digits from thin air

it somewhat answer the question have a good afternoon Laurent -- 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

### Re: [sage-support] full_output.txt

will not be passed because the errors are passed to sys.stderr.write() instead of sys.stdour.write(). Hope it helps Laurent How do I make that file automatically displayed/ refreshed in a pop-up browser window? -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe

### [sage-support] sage -t has changed recently ?

, Release Date: 2012-01-20 Is it normal ? With older versions of sage the same docstring was working. Thanks Laurent -- 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

### Re: [sage-support] Re: sage -t has changed recently ?

. But what if I don't want to add from ... import * at the beginning of each docstring ? Thanks Laurent -- 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

### Re: [sage-support] docstring for submodules [was sage -t has changed recently ?]

and which is only used in file1.py (so it is not imported by 'import test', not even by 'from test import *'). Should I begin my docstring by sage: from test.file1 import * ? Is it the right-advised-by-gurus thing to do ? Thanks Laurent [1] working in the sense that it was failing on actual

### [sage-support] France : Sage is now available at l'agrégation

Hi all This is a news that will be relevant only for French guys but I guess there are some of them here. Sage 4.7.2 is available for the agrégation en mathématique[1] this year : http://agreg.org/Agreg/installation.html#applicatifs Good news :) Have a good week-end Laurent Claessens

### [sage-support] __call__() much slower than a real sage function ?

? Thanks Laurent -- 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: http://www.sagemath.org

### Re: [sage-support] [Characteristic function of an interval] Heaveside too slow ?

Il 14/03/2012 08:09, Vegard Lima ha scritto: Hi, On Wed, Mar 14, 2012 at 7:56 AM, Laurentmoky.m...@gmail.com wrote: I'm searching for a function f(x)=1 if x in [a,b], =0 otherwise how about using the Heaviside step function? oh yes, of course it works. Thanks. ... well My residual

### [sage-support] How to test if something is integer ?

(A,sage.rings.integer.Integer) I've missed something ? Thanks Laurent -- 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

### Re: [sage-support] Re: How to test if something is integer ?

in order to guess if the user is thinking about degrees or radian. Laurent -- 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

### Re: [sage-support] Re: How to test if something is integer ?

* 180/pi (result of a conversion) But well, up to now my function works :) Thanks Laurent -- 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

### Re: [sage-support] Re: How to test if something is integer ?

function if I see a border effect. Laurent -- 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: http

### [sage-support] docstring of scipy.stats.expon

/scipy/reference/generated/scipy.stats.expon.html The presence of lambda in that docstring is crucial ! Is it a bug somewhere ? Have a nice day Laurent -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr

### [sage-support] Convert a string (python) into a function (sage)

Hello everybody I wrote the following : ++ #! /usr/bin/sage -python # -*- coding: utf8 -*- from sage.all import * s = x**2 var('x') f = sage_eval(s) print f(2) ++ I would have expected the result to print 4. Since I'm using Sage from

### [sage-support] Re: Convert a string (python) into a function (sage)

method in order to produce strings that are valid code for pstricks). s = x**3 var('x') f = eval(s) print f(3) g = diff(f,x) print g I would like to get the string 3*(x**2) or something like that. Thanks for any ideas Laurent --~--~-~--~~~---~--~~ To post

### [sage-support] Set and real intervals

to consider parts of R as sets. How can I build an interval ? Have a good day Laurent Claessens PS : I send this message by email on December, 4. Since I did not even saw my message appearing, I decided to repost it from the GoogleGroup online interface. I'm wrong in doing that ? -- To post

### [sage-support] Random sum of functions

Hi everyone, say I have a function of both an integer n and a complex z def f(n,z): return z**n For any tuple of integer (a_1,a_2, ..., a_k), (actually, k and a_i are random), I want to form the function z - sum_{i=1}^k |f(a_i, z)|^2 The result must still be a function. I guess it is

### [sage-support] Pb with shared notebooks

help? basilic:sage Laurent\$ ./sage ┌┐ │ Sage Version 5.12, Release Date: 2013-10-07│ │ Type notebook() for the browser-based notebook interface.│ │ Type help() for help

### [sage-support] Bug in integrate

Hi everybody, here is the result of my session on Sage 7.2 beta0 (but I guess the problem is not specific to that version) > sage: var('t') > t > sage: integrate(exp(-2*t)/(1-exp(-2*t)),t) > 1/2*log(e^(-2*t) - 1) What does mean log(-1+e^(-2*t)) since the argument is negative ? -- You

### [sage-support] Re: Seaborn in sage

Thanks. I tried to do it in the command line on a fresh install of Sage 7.2 and I got this error message (the full log is attached) : [snip] In file included from /Users/Laurent/Downloads/sage-7.2/local/lib/python2.7/site-packages/numpy-1.11.0-py2.7-macosx-10.9-x86_64.egg/numpy/core

### [sage-support] Re: Seaborn in sage

, Laurent Decreusefond a écrit : > > I will try this one since I'm already working on a fresh, compiled from > source, version of Sage. > > > > Le mercredi 27 juillet 2016 19:45:55 UTC+2, leif a écrit : >> >> Dima Pasechnik wrote: >> > errors like

### [sage-support] Re: Seaborn in sage

with '-q' added to the options; see the following trac > tickets for more details: > > https://trac.sagemath.org/ticket/20779 > > https://trac.sagemath.org/ticket/20563 (same issue, i.e. with movq) > > (Both a bit stalled at the moment, but give more info on the general > prob

### [sage-support] Re: Seaborn in sage

My version is on El Capitan 10.11.6 Le mercredi 27 juillet 2016 22:08:55 UTC+2, leif a écrit : > > Laurent Decreusefond wrote: > > Thanks to your remarks, I realized that I had an old beta-version of > > Xcode (7.1) which was in conflict with the actual version (7.3.1).

### [sage-support] Seaborn in sage

I recently discovered Seaborn, which is a visualization library on top of matplotlib. It doesn't seem to be included in sage 7.2. Is there any projet to do so ? or is there something equivalent ? Best, -- You received this message because you are subscribed to the Google Groups "sage-support"

### [sage-support] Sage crash report 7.0

stallation', 'default_encoding': 'UTF-8', 'ipython_path': '/home/laurent/sage-7.0/local/lib/python2.7/site-packages/IPython', 'ipython_version': '4.0.0', 'os_name': 'posix', 'platform': 'Linux-4.8.0-2-amd64-x86_64-with-debian-stretch-sid', 'sys_executable': '/home/laurent/sage-7.0/local/

### [sage-support] Re: Sage crash report 7.0

pinion ? Thanks a lot <https://groups.google.com/forum/#!searchin/sage-support/-no\$20pie|sort:relevance/sage-support/gmwCLho2cNs/OjmTIE8pFgAJ> Le mercredi 14 décembre 2016 14:28:09 UTC+1, Laurent Bakri a écrit : > > > > Hi all, > I am using sage on Debian (sid) > Sagema

### [sage-support] Re: Sage crash report 7.0

Yep that did the trick Thanks a lot Le mercredi 14 décembre 2016 14:28:09 UTC+1, Laurent Bakri a écrit : > > > > Hi all, > I am using sage on Debian (sid) > Sagemath 7.0 was working fine until an upgrade of python to version 3 > Then it stop working with an syntax

### [sage-support] BUG report

.rings.polynomial.polynomial_element.Polynomial.__pari__ (build/cythonized/sage/rings/polynomial/polynomial_element.c:53869)() sage/rings/polynomial/polynomial_element.pyx in sage.rings.polynomial.polynomial_element.Polynomial._pari_with_name (build/cythonized/sage/rings/polynomial/polynomial_element.c:5