Re: [sage-support] Re: Sage Installation help

2011-03-26 Thread Hemanth G
Still not successfuly installed. But I am still trying. On Fri, Mar 25, 2011 at 4:47 AM, Vasudev vadie.thes...@gmail.com wrote: Also, there are 32 and 64 bit versions of linux. Double-Check what you have actually installed ;) yeah ..., ,that may be the cause of trouble ... but i think he

[sage-support] accented characters

2011-03-26 Thread clodemil
Hi All, Sage does not accept accented characters like: é è à give a syntax error. If in a string it is accepted but coded like: après becomes 'apr \xc3\xa8s' I suppose it is a question of font encoding. What can I do ? Of course, my keyboard layout in Ubuntu 10.10 is properly set to belgian

Re: [sage-support] accented characters

2011-03-26 Thread Mike Hansen
On Sat, Mar 26, 2011 at 10:53 AM, clodemil ollie...@scarlet.be wrote: Hi All, Sage does not accept accented characters like: é è à give a syntax error. In Python 2.x, you can only use the following characters for identifiers (things like function names, variable names, etc.): the uppercase

[sage-support] list updating

2011-03-26 Thread clodemil
Hi All, Measurements are taken for blood pressure and entered as 3-tuples: [P_systolic,P_diastolic,Pulse_rate] and put in a list mesures=[[172,91,57],[181,88,58],[146,88,56],[191,85,59],[171,92,50], [157,93,55],[180,84,48],[142,77,60],[169,80,45],[162,76,59],

[sage-support] Re: accented characters

2011-03-26 Thread clodemil
Mike, Thanks for your response. How are you trying to use these characters? My mother tongue is french ! Claude. -- 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] Re: accented characters

2011-03-26 Thread clodemil
Mike, But that can't be used in: [Mar 15h30 apres 2 h d'effort] Claude. -- 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] Re: function output to list

2011-03-26 Thread Alastair Irving
On 26/03/2011 08:52, clodemil wrote: Alastair, Thanks a lot. the Pytonic way: def Ppulse(mesures): return [N((l[0]-l[1]),12) for l in mesures] works(I shall need to understand/study why!!) Its a list comprehension. The other solution: def Ppulse(mesures): result=[] for k,l

[sage-support] Re: function output to list

2011-03-26 Thread clodemil
Alastair, Everything sorted. Many thanks. Claude. -- 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

[sage-support] Deprecated syntax warnings for piecewise functions

2011-03-26 Thread Michael Orlitzky
Is there an easy way to avoid these? Preferably one that works in a standalone python file? sage: f = piecewise([[(0,1), x^2]]) sage: f(0.5) /home/mjo/src/sage-4.6.2/local/bin/sage-ipython:1: DeprecationWarning: Substitution using function-call syntax and unnamed arguments is

[sage-support] Volumes of polyhedra

2011-03-26 Thread Alastair Irving
Hi I've created a polyhedron with the Polyhedron function. Is there any way I can find its volume?What about its surface area? Many thanks Alastair -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to

[sage-support] Re: Deprecated syntax warnings for piecewise functions

2011-03-26 Thread achrzesz
sage: f0(x)=x^2 sage: f = piecewise([[(0,1), f0]]) sage: f(0.5) 0.250 -- 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

[sage-support] Re: accented characters

2011-03-26 Thread kcrisman
On Mar 26, 6:39 am, clodemil ollie...@scarlet.be wrote: Mike, Thanks for your response. How are you trying to use these characters? My mother tongue is french ! I think he means in what context. For instance, for URLs there is a Python module that allows using utf-8 encodings for

[sage-support] Re: Volumes of polyhedra

2011-03-26 Thread Marshall Hampton
If p is your Polyhedron, you can use p.lrs_volume() to get the volume, but this requires the optional lrs package to be installed. It should be very easy to install lrs, just do sage -i lrs (or path/to/sage/ sage -i lrs if sage is not in your path). I have been hoping to make lrs a standard

[sage-support] Re: Polynomial input as product of factors without * between them

2011-03-26 Thread Surendran Karippadath
The Deprecation warning was absent in 4.3.3 but is there in 4.6.2. Does this mean consecutive brackets are treated as Lamda expressions scoping to the right? Like: sage : y=1/((x-1)(x-3)(x-5)) sage : y 1/(x-9) sage : y=1/((x-1)(x-3)(x^2-5)) sage : y 1/(x^2-9) sage :