[sage-support] Re: Trying to create a vector of rounded floats

2008-04-11 Thread Carl Witty
On Apr 11, 7:40 pm, Jason Grout <[EMAIL PROTECTED]> wrote: > Is making an _integer_ method in the RDF class the right method to write? Yes, that will work. > Also, round(RR(3.0)) returns an Integer...should RDF behave the same > way? (currently round(RDF(3.0)) returns an RDF). We recently chang

[sage-support] Re: Trying to create a vector of rounded floats

2008-04-11 Thread Jason Grout
William Stein wrote: > On Fri, Apr 11, 2008 at 3:49 PM, Jason Grout > <[EMAIL PROTECTED]> wrote: >> William Stein wrote: >> > On Fri, Apr 11, 2008 at 10:43 AM, Ryan Hinton <[EMAIL PROTECTED]> wrote: >> >> Sorry, I meant to. One problem is that the Sage pre-parsing results >> >> in different

[sage-support] Re: Use Sage, not PowerPoint

2008-04-11 Thread Hector Villafuerte
2008/4/11 William Stein <[EMAIL PROTECTED]>: [...] > Please click on "Edit" instead of "Text", then paste the result > into an Email so we can more easily try out your demo. [...] Sorry about that. I published it in sagenb.org instead: https://www.sagenb.org/home/pub/1781/ Best, -- Hector

[sage-support] Re: Use Sage, not PowerPoint

2008-04-11 Thread William Stein
2008/4/11 Hector Villafuerte <[EMAIL PROTECTED]>: > > Hi, > just today I came up with an idea that, I'm sure some of you had > already thought of. Anyway, it could be publicized more: to use Sage > instead of PowerPoint! > In Sage Notebook, use [Action/One cell mode] and use LaTex for nicely

[sage-support] Use Sage, not PowerPoint

2008-04-11 Thread Hector Villafuerte
Hi, just today I came up with an idea that, I'm sure some of you had already thought of. Anyway, it could be publicized more: to use Sage instead of PowerPoint! In Sage Notebook, use [Action/One cell mode] and use LaTex for nicely typeset text and formulas. One can also embed images by attaching t

[sage-support] Re: Trying to create a vector of rounded floats

2008-04-11 Thread William Stein
On Fri, Apr 11, 2008 at 3:49 PM, Jason Grout <[EMAIL PROTECTED]> wrote: > > William Stein wrote: > > On Fri, Apr 11, 2008 at 10:43 AM, Ryan Hinton <[EMAIL PROTECTED]> wrote: > >> Sorry, I meant to. One problem is that the Sage pre-parsing results > >> in different behavior than I am seeing,

[sage-support] Re: Trying to create a vector of rounded floats

2008-04-11 Thread Jason Grout
William Stein wrote: > On Fri, Apr 11, 2008 at 10:43 AM, Ryan Hinton <[EMAIL PROTECTED]> wrote: >> Sorry, I meant to. One problem is that the Sage pre-parsing results >> in different behavior than I am seeing, so pasting code into a Sage >> session will not exhibit the problem I am seeing. >

[sage-support] Re: Trying to create a vector of rounded floats

2008-04-11 Thread Lars Fischer
Hello Ryan, are you looking for map? map(function, sequence[, sequence, ...]) -> list Return a list of the results of applying the function to the items of the argument sequence(s). If more than one sequence is given, the function is called with an argument list consisting of the c

[sage-support] Umlauts in Notebook cells do not work (encoding problem)

2008-04-11 Thread Lars Fischer
Hello, it is me again. Again with an encoding problem. This time inside a notebook-worksheet. The problem is: I cannot use unicodes in Strings and comments. So I am asking: Is there anybody out there, who can use non ascii characters inside a worksheet? If yes: What Sage-version do you use and

[sage-support] Re: Trying to create a vector of rounded floats

2008-04-11 Thread William Stein
On Fri, Apr 11, 2008 at 10:43 AM, Ryan Hinton <[EMAIL PROTECTED]> wrote: > > Sorry, I meant to. One problem is that the Sage pre-parsing results > in different behavior than I am seeing, so pasting code into a Sage > session will not exhibit the problem I am seeing. Include sage: preparse(Fa

[sage-support] Re: Trying to create a vector of rounded floats

2008-04-11 Thread Ryan Hinton
Sorry, I meant to. One problem is that the Sage pre-parsing results in different behavior than I am seeing, so pasting code into a Sage session will not exhibit the problem I am seeing. Let me see if I can cajole Sage into giving similar behavior from the prompt. sage: import __builtin__ sage:

[sage-support] Re: Trying to create a vector of rounded floats

2008-04-11 Thread William Stein
On Fri, Apr 11, 2008 at 9:58 AM, Ryan Hinton <[EMAIL PROTECTED]> wrote: > > There must be an easier way to do this. In a Python class I have a list > of RealNumber elements, "fracs_list". I want to multiply them by a > common scalar "length" and round them to get a vector of integers. I > h

[sage-support] Trying to create a vector of rounded floats

2008-04-11 Thread Ryan Hinton
There must be an easier way to do this. In a Python class I have a list of RealNumber elements, "fracs_list". I want to multiply them by a common scalar "length" and round them to get a vector of integers. I have tried many permutations of the following code, most of which fail. This works

[sage-support] Re: Transverse wave and animate in 3D

2008-04-11 Thread David Joyner
These look awesome Hector. Can you add them to the wiki somewhere? On Fri, Apr 11, 2008 at 2:42 AM, Hector Villafuerte <[EMAIL PROTECTED]> wrote: > On Thu, Apr 10, 2008 at 6:33 PM, William Stein <[EMAIL PROTECTED]> wrote: > [...] > > > Basically, the above would work and look good, but would re

[sage-support] Re: fft from matlab

2008-04-11 Thread David Joyner
On Fri, Apr 11, 2008 at 4:30 AM, Nicoo <[EMAIL PROTECTED]> wrote: > > thx for theses examples, but now i don't found how to scale my plot, i > used list_plot I'm not sure that you mean by scale but in any case, list_plot, and its options, is described here http://www.sagemath.org/doc/html/ref/m

[sage-support] Re: fft from matlab

2008-04-11 Thread Nicoo
thx for theses examples, but now i don't found how to scale my plot, i used list_plot On 10 avr, 18:38, Joshua Kantor <[EMAIL PROTECTED]> wrote: > This should work for you > > sage: import numpy > sage: a=numpy.loadtxt('my_file.txt') > sage: x_vals=a[:,1] > sage: y_vals=a[:,2] > > note that now x