Done.
I posted both prog.tex and prog-bundle2.hg to
http://modular.math.washington.edu/home/wdj/patches
It passes sage -t and compiles correctly. I had to add a
lot of %skip commands to avoid sage -t picking up
each "time ..." and "hg_sage ..." command. Also,
I added the "note" as you suggested and fixed several
sage_hg (which was a typo for hg_sage I think).
+++++++++++++++++++++++++++++
On 10/24/06, William Stein <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> Woah, hold on. There's nothing wrong with the code I wrote. It's just
> that
> it uses the new (as in "next week") plain text version of worksheets. You
> could add a note at the top of the section that we use the notation:
>
> {{{
> INPUT TEXT
> ///
> OUTPUT TEXT
> }}}
>
> to denote cells in the notebook.
>
> - William
>
> On Tue, 24 Oct 2006 17:12:44 -0500, David Joyner <[EMAIL PROTECTED]>
> wrote:
>
> >
> > If there is no objection, I will fix prog.tex to reflect this
> > new code and send a patch to William.
> >
> > +++++++++++++++++++++++++++++++++++++++++++
> >
> > On 10/24/06, alex clemesha <[EMAIL PROTECTED]> wrote:
> >> Hi,
> >>
> >> It looks as though that example is a little messed up!
> >>
> >> #do this in a cell
> >> %pyrex
> >> def sumsquares(int n):
> >> cdef int i, j
> >> j = 0
> >> for i from 1 <= i <= n:
> >> j = j + i*i
> >> return j
> >>
> >> #do this in the next cell to test *pyrex* function:
> >> time v=[sumsquares(100) for _ in xrange(10000)]
> >>
> >>
> >> #in another cell do this:
> >> two = int(2)
> >> def sumsquarespy(n):
> >> return sum(i**two for i in xrange(1,n+1))
> >>
> >> #do this in the next cell to test *python* function:
> >> time v=[sumsquarespy(100) for _ in xrange(10000)]
> >>
> >> Hope that helps
> >> -Alex
> >>
> >>
> >>
> >>
> >> >
> >>
> >
> > >
>
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-forum
URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~----------~----~----~----~------~----~------~--~---