|
Size: 1653
Comment:
|
Size: 1131
Comment:
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 6: | Line 6: |
################################################################################ # Worksheet: _scratch_ ################################################################################ {{{a = 5 |
{{{#!python sage: a = 5 |
| Line 16: | Line 10: |
| {{{a # 5}}} {{{sage.server.notebook.worksheet.Cell.worksheet.im_class.files_html() # Traceback (most recent call last): sage.server.notebook.worksheet.Cell.worksheet.im_class.files_html() # File "/home/dorian/sage/sage-1.4/local/lib/python2.5/", line 1, in <module> # TypeError: unbound method files_html() must be called with Cell instance as first argument (got nothing instead)}}} {{{_scratch___plain__ # Traceback (most recent call last): _scratch___plain__ # File "/home/dorian/sage/sage-1.4/local/lib/python2.5/", line 1, in <module> # NameError: name '_scratch___plain__' is not defined}}} ################################################################################ # Wiki form worksheet: _scratch_ ################################################################################ {{{sage: a = 5 }}} {{{sage: a |
{{{#!python sage: a |
| Line 43: | Line 14: |
| {{{sage: sage.server.notebook.worksheet.Cell.worksheet.im_class.files_html() Traceback (most recent call last): ... TypeError: unbound method files_html() must be called with Cell instance as first argument (got nothing instead)}}} {{{sage: _scratch___plain__ Traceback (most recent call last): ... NameError: name '_scratch___plain__' is not defined}}} {{{sage: for i in range(10): |
{{{#!python sage: for i in range(10): |
| Line 66: | Line 28: |
| {{{ | {{{#!python sage: c=0 sage: for i in range(20): ... a = 2^i -1 ... if a.is_prime(): ... print str(c + 1)+': ' ... print a 1: 3 1: 7 1: 31 1: 127 1: 8191 1: 131071 1: 524287}}} {{{#!python sage: a.is_prime() True}}} {{{#!python |
| Line 68: | Line 57: |
{{{#!python sage: a = 5 }}} {{{#!python sage: a 5}}} {{{#!python sage: sage.server.notebook.worksheet.Cell.worksheet.im_class.files_html() Traceback (most recent call last): ... TypeError: unbound method files_html() must be called with Cell instance as first argument (got nothing instead)}}} {{{#!python sage: _scratch___plain__ Traceback (most recent call last): ... NameError: name '_scratch___plain__' is not defined}}} {{{#!python sage: for i in range(10): ... print i*i - 2 -2 -1 2 7 14 23 34 47 62 79}}} {{{#!python }}} |
