On 02/18/2010 08:45 AM, Dana Ernst wrote:
* just a comment: I never used del(); in fact, I didn't know it existed
before reading your intro (thanks!); I normally just define f to be
the next thing I'm interested in. Actually, I don't know how to get
information about del() in Sage; trying del? is not successful.
That's because del is not a function, but is a keyword in Python:
http://docs.python.org/reference/simple_stmts.html#the-del-statement
I think the pythonic way of using it is without the parentheses, as shown in
the manual above. Dana, I'd suggest you change the example to not use
parentheses.
OK. I think I copied this from one of Ben Woodruff's worksheets, but I could
be wrong (I borrowed it from somewhere).
Yes, it was from Ben's worksheets. I mentioned it to him too a while
ago, but he probably hasn't had time to change it.
On a related note, I just sort of got bit by the problem you describe.
I just wrote a little worksheet talking about Lagrange polynomials for
my numerical analysis class. In editing this worksheet on a Sage 4.3.1
notebook, at one point, I edited a paragraph of TinyMCE text and when I
saved the changes, the cell was replaced with a code cell containing my
new text in <p></p> markers. I deleted the code cell and created a new
text cell with the new text, so the text now looks like I want.
Just now, I saved the worksheet and uploaded it to sagenb.org. To my
surprise, that text cell that gave me problems was the *old* version of
the text, and the new version of the text is down at the very bottom of
the worksheet! The sagenb.org worksheet is here:
http://sagenb.org/home/pub/1629. The paragraph in question is the
paragraph talking about Sage evaluates polynomials using an extension of
Horner's form (just search for "Horner" to see the old and new paragraph).
Nothing else in the worksheet was amiss.
Unfortunately, I reloaded the page on my local sage notebook, so now it
shows the corrupted version too, before I could do some javascript
debugging to find out where it thought the cells were.
Thanks,
Jason
--
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-support
URL: http://www.sagemath.org