Re: [sage-support] subtraction with dates?

2010-08-24 Thread Dr. David Kirkby
On 08/25/10 12:58 AM, Mike Hansen wrote: On Tue, Aug 24, 2010 at 3:44 PM, Dr. David Kirkby wrote: I was thinking of suggesting they use Sage to find out the number of days between two dates, and so would realise that there is more than a month between 5th Jan and the 16th Feb! sage: from dat

Re: [sage-support] subtraction with dates?

2010-08-24 Thread Mike Hansen
On Tue, Aug 24, 2010 at 3:44 PM, Dr. David Kirkby wrote: > I was thinking of suggesting they use Sage to find out the number of days > between two dates, and so would realise that there is more than a month > between 5th Jan and the 16th Feb! sage: from datetime import date sage: date(day=16, mon

[sage-support] Re: subtraction with dates?

2010-08-24 Thread Jason Grout
On 8/24/10 5:44 PM, Dr. David Kirkby wrote: I'd like to find the number of days between two dates - is there any simple way to do this in Sage. I'm sure python's datetime module can help: http://docs.python.org/library/datetime.html See the example "Example of counting days to an event" Th

[sage-support] subtraction with dates?

2010-08-24 Thread Dr. David Kirkby
I'd like to find the number of days between two dates - is there any simple way to do this in Sage. The reason for wanting this is quite funny, but I thought I'd use it to plug Sage! Our car got damaged by a pothole. We made a claim to the council. We finally receiving a letter from their leg

Re: [sage-support] Disabling the "sage: " prompt

2010-08-24 Thread William Stein
On Tue, Aug 24, 2010 at 1:57 PM, Jeroen Demeyer wrote: > Hello, > > I would like to disable the "sage: " prompt from within Sage. I would > like to call Sage from a script (using pipes) and the prompt makes it > harder to parse the output. > > The best approximation that I found was > sage.misc.in

[sage-support] update on http://ask.sagemath.org

2010-08-24 Thread William Stein
Hi, This is a quick update on the new http://ask.sagemath.org site. 1. There are now 77 registered users. 2. There have been 55 questions asked (with over 90 tags), and all were answered (one is technically unanswered). The top tag categories are "Cython" and "Notebook". 3. The perso

[sage-support] Disabling the "sage: " prompt

2010-08-24 Thread Jeroen Demeyer
Hello, I would like to disable the "sage: " prompt from within Sage. I would like to call Sage from a script (using pipes) and the prompt makes it harder to parse the output. The best approximation that I found was sage.misc.interpreter.set_sage_prompt("") which reduces the prompt to ": " I'm su

Re: [sage-support] Fixed Point arithmetic

2010-08-24 Thread Robert Bradshaw
On Tue, Aug 24, 2010 at 1:27 PM, William Stein wrote: > Did you do this once for something... Yes, see http://trac.sagemath.org/sage_trac/ticket/9180 > -- Forwarded message -- > From: Mike Hansen > Date: Tue, Aug 24, 2010 at 12:21 PM > Subject: Re: [sage-support] Fixed Point ari

Re: [sage-support] Fixed Point arithmetic

2010-08-24 Thread Mike Hansen
On Tue, Aug 24, 2010 at 12:14 PM, Jeroen Demeyer wrote: > Is there any support in Sage for fixed point arithmetic?  That is, > computing with real numbers with a fixed number of bits after the > decimal point? Fredrik Johansson has done some work in this area -- see http://code.google.com/p/fastf

[sage-support] Fixed Point arithmetic

2010-08-24 Thread Jeroen Demeyer
Hello, Is there any support in Sage for fixed point arithmetic? That is, computing with real numbers with a fixed number of bits after the decimal point? If it doesn't exist, it probably wouldn't be too hard to implement on top of MPIR. Jeroen. -- To post to this group, send email to sage-sup

[sage-support] Re: How can I make implicit_multiplication default?

2010-08-24 Thread Jason Grout
On 8/24/10 11:45 AM, Oscar Lazo wrote: On Aug 23, 8:54 am, Simon King wrote: 1. If you write a little program on the command line and it does something, but simply it doesn't do the right thing or you get strange error messages about missing attributes -- it would be very hard to find out th

[sage-support] Re: How can I make implicit_multiplication default?

2010-08-24 Thread Oscar Lazo
On Aug 23, 8:54 am, Simon King wrote: > 1. If you write a little program on the command line and it does > something, but simply it doesn't do the right thing or you get strange > error messages about missing attributes -- it would be very hard to > find out that you forgot to define some objec

[sage-support] Re: iteration from previous terms

2010-08-24 Thread Simon King
Hi Andrew! On 24 Aug., 15:35, andrew ewart wrote: > suppose we define a function f(x)=x^3+1 > and define a_0=1 > and then had the iteration a_n=f(a_n-1)/(a_n-1) > how would one go about writing this in sage? You can use the fact that Sage is built on Python. So, you can define a Python iterator

[sage-support] iteration from previous terms

2010-08-24 Thread andrew ewart
suppose we define a function f(x)=x^3+1 and define a_0=1 and then had the iteration a_n=f(a_n-1)/(a_n-1) how would one go about writing this in sage? -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googl

Re: [sage-support] Re: tab on an iPad

2010-08-24 Thread Calcpage
I tried that link on my iPod Touch and got an error; "no wedgl context found ." Regards, A. Jorge Garcia Applied Math & CS Baldwin SHS & Nassau CC http://shadowfaxrant.blogspot.com http://www.youtube.com/calcpage2009 Sent from my iPod On Aug 23, 2010, at 6:36 PM, Jason Grout wrote: On 8/

[sage-support] Random banter about Sage standards

2010-08-24 Thread kcrisman
I've put this on sage-devel where it belongs. On Aug 24, 5:14 am, "Dr. David Kirkby" wrote: > On 08/23/10 04:20 PM, kcrisman wrote: > > > Well, in general it seems to me that most Sage bugs come from things/ > > functionality that didn't exist before, and once they exist people > > want to start

Re: [sage-support] Re: Those cookies again...

2010-08-24 Thread Dr. David Kirkby
On 08/23/10 04:20 PM, kcrisman wrote: Well, in general it seems to me that most Sage bugs come from things/ functionality that didn't exist before, and once they exist people want to start using them. Well, there are an alful lot of open-bugs in trac. Some have been open a very long time. The