€csage.server.notebook.notebook Notebook q)q}q(U_Notebook__worksheetsq}qU _scratch_q(csage.server.notebook.worksheet Worksheet qoq}q (U_Worksheet__filenameq U _scratch_q U_Worksheet__cellsq ]q ((csage.server.notebook.cell Cell qoq}q(U _Cell__inqU2^3qU_Cell__introspect_htmlqU!
qU_Cell__worksheetqhU_Cell__completionsq‰U_Cell__introspectq‰U_Cell__out_htmlqUU	_Cell__idqKU_before_preparseqU[os.chdir("/home/was/talks/2006-08-17-scipy/sage_notebook/worksheets/_scratch_/cells/0")
2^3qU
_Cell__dirqU*sage_notebook/worksheets/_scratch_/cells/0qU
_Cell__outqU8Uhas_new_outputq‰U_Cell__is_htmlq ‰U_Cell__sageq!csage.interfaces.sage0
reduce_load_Sage
q")Rq#U_Cell__typeq$Uwrapq%U_Cell__timeq&‰U_Cell__interruptedq'‰ub(hoq(}q)(U	_Cell__inq*U2/3q+U_Cell__introspect_htmlq,U!
q-U_Cell__worksheetq.hU_Cell__completionsq/‰U_Cell__introspectq0‰U_Cell__out_htmlq1UU	_Cell__idq2KU_before_preparseq3U\os.chdir("/home/was/talks/2006-08-17-scipy/sage_notebook/worksheets/_scratch_/cells/18")
2/3q4U
_Cell__dirq5U+sage_notebook/worksheets/_scratch_/cells/18q6U
_Cell__outq7U2/3q8Uhas_new_outputq9‰U_Cell__is_htmlq:‰U_Cell__sageq;h#U_Cell__typeq‰ub(hoq?}q@(U	_Cell__inqAU%python

print(2^3)
print(2/3)qBU_Cell__introspect_htmlqCU!
qDU_Cell__worksheetqEhU_Cell__completionsqF‰U_Cell__introspectqG‰U_Cell__out_htmlqHUU	_Cell__idqIKU_before_preparseqJUwos.chdir("/home/was/talks/2006-08-17-scipy/sage_notebook/worksheets/_scratch_/cells/21")
%python

print(2^3)
print(2/3)qKU
_Cell__dirqLU+sage_notebook/worksheets/_scratch_/cells/21qMU
_Cell__outqNU1
0qOUhas_new_outputqP‰U_Cell__is_htmlqQ‰U_Cell__sageqRh#U_Cell__typeqSh%U_Cell__timeqT‰U_Cell__interruptedqU‰ub(hoqV}qW(hUfactor(2007)qXhU!
qYhhh‰h‰hUhKhUdos.chdir("/home/was/talks/2006-08-17-scipy/sage_notebook/worksheets/_scratch_/cells/1")
factor(2007)qZhU*sage_notebook/worksheets/_scratch_/cells/1q[hU	3^2 * 223q\h‰h ‰h!h#h$h%h&‰h'‰ub(hoq]}q^(hU5factor(2^997-1)    # you can hit escape and it works!q_hU!
q`hhh‰h‰hUhKhUos.chdir("/home/was/talks/2006-08-17-scipy/sage_notebook/worksheets/_scratch_/cells/5")
factor(2^997-1)    # you can hit escape and it works!qahU*sage_notebook/worksheets/_scratch_/cells/5qbhUh‰h ‰h!Nh$h%h&‰h'ˆub(hoqc}qd(h*U3M = MatrixSpace(QQ,3)([1,2,3,1/3,17,-2/3,1,5,-5])
Mqeh,U!
qfh.hh/‰h0‰h1Uh2Kh3UŒos.chdir("/home/was/talks/2006-08-17-scipy/sage_notebook/worksheets/_scratch_/cells/12")
M = MatrixSpace(QQ,3)([1,2,3,1/3,17,-2/3,1,5,-5])
Mqgh5U+sage_notebook/worksheets/_scratch_/cells/12qhh7U4[   1    2    3]
[ 1/3   17 -2/3]
[   1    5   -5]qih9‰h:‰h;h#h‰ub(hoqj}qk(hAU
M.parent()qlhCU!
qmhEhhF‰hG‰hHUhIKhJUcos.chdir("/home/was/talks/2006-08-17-scipy/sage_notebook/worksheets/_scratch_/cells/24")
M.parent()qnhLU+sage_notebook/worksheets/_scratch_/cells/24qohNU=Full MatrixSpace of 3 by 3 dense matrices over Rational FieldqphP‰hQ‰hRh#hSh%hT‰hU‰ub(hoqq}qr(h*Uview(M)qsh,U!
qth.hh/‰h0‰h1Uh2K
h3U`os.chdir("/home/was/talks/2006-08-17-scipy/sage_notebook/worksheets/_scratch_/cells/13")
view(M)quh5U+sage_notebook/worksheets/_scratch_/cells/13qvh7Uƒ\left(\begin{array}{rrr}
1&2&3\\
\frac{1}{3}&17&-\frac{2}{3}\\
1&5&-5
\end{array}\right)qwh9‰h:‰h;h#h‰ub(hoqx}qy(hAUview(M.echelon_form())qzhCU!
q{hEhhF‰hG‰hHUhIKU_word_being_completedq|UM.echq}hJUoos.chdir("/home/was/talks/2006-08-17-scipy/sage_notebook/worksheets/_scratch_/cells/20")
view(M.echelon_form())q~hLU+sage_notebook/worksheets/_scratch_/cells/20qhNUl\left(\begin{array}{rrr}
1&0&0\\
0&1&0\\
0&0&1
\end{array}\right)q€hP‰hQ‰hRh#hSh%hT‰hU‰ub(hoq}q‚(h*UG = AlternatingGroup(5)qƒh,U!
q„h.hh/‰h0‰h1Uh2KU_word_being_completedq…USymmetriq†h3Upos.chdir("/home/was/talks/2006-08-17-scipy/sage_notebook/worksheets/_scratch_/cells/14")
G = AlternatingGroup(5)q‡h5U+sage_notebook/worksheets/_scratch_/cells/14qˆh7Uh9‰h:‰h;h#h‰ub(hoq‰}qŠ(h*U%G.conjugacy_classes_representatives()q‹h,U!
qŒh.hh/‰h0‰h1Uh2Kh…UG.conjugqh3U~os.chdir("/home/was/talks/2006-08-17-scipy/sage_notebook/worksheets/_scratch_/cells/15")
G.conjugacy_classes_representatives()qŽh5U+sage_notebook/worksheets/_scratch_/cells/15qh7U3[(), (1,2)(3,4), (1,2,3), (1,2,3,4,5), (1,2,3,5,4)]qh9‰h:‰h;h#h‰ub(hoq‘}q’(h*UG%time 
f = x^389 + 17/3*x + 2
g = x^397 - 18*x + 15
h = f*g^10 + f^10*gq“h,U!
q”h.hh/‰h0‰h1Uh2Kh3UÄos.chdir("/home/was/talks/2006-08-17-scipy/sage_notebook/worksheets/_scratch_/cells/16")
__SAGE_t__=cputime()
__SAGE_w__=walltime()
f = x^389 + 17/3*x + 2
g = x^397 - 18*x + 15
h = f*g^10 + f^10*gq•h5U+sage_notebook/worksheets/_scratch_/cells/16q–h7U$CPU time: 0.02 s,  Wall time: 0.02 sq—h9‰h:‰h;h#h‰ub(hoq˜}q™(U	_Cell__inqšUh[:50]q›U_Cell__introspect_htmlqœU!
qU_Cell__worksheetqžhU_Cell__completionsqŸ‰U_Cell__introspectq ‰U_Cell__out_htmlq¡UU	_Cell__idq¢KU_before_preparseq£U_os.chdir("/home/was/talks/2006-08-17-scipy/sage_notebook/worksheets/_scratch_/cells/28")
h[:50]q¤U
_Cell__dirq¥U+sage_notebook/worksheets/_scratch_/cells/28q¦U
_Cell__outq§Tv[1153300796610, -10571923411357, 35521669089060, -82207173890380/3, -1578378351911680/9, 6297739398214880/9, -107392893078774688/81, 377409713492725760/243, -287199547816076060/243, 3757883697935134460/6561, -3178137624289098691/19683, 132742369030852798/6561, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]q¨Uhas_new_outputq©‰U_Cell__is_htmlqª‰U_Cell__sageq«h#U_Cell__typeq¬h%U_Cell__timeq­‰U_Cell__interruptedq®‰ub(hoq¯}q°(h*Uview(f)q±h,U!
q²h.hh/‰h0‰h1Uh2Kh3U`os.chdir("/home/was/talks/2006-08-17-scipy/sage_notebook/worksheets/_scratch_/cells/17")
view(f)q³h5U+sage_notebook/worksheets/_scratch_/cells/17q´h7UBx^{389} + \frac{17}{3}x + 2qµh9‰h:‰h;h#h‰ub(hoq¶}q·(U	_Cell__inq¸Ug%hide%html

You can embed HTML

It can even include math: \prod(1-q^n)q¹U_Cell__introspect_htmlqºU!
q»U_Cell__worksheetq¼hU_Cell__completionsq½‰U_Cell__introspectq¾‰U_Cell__out_htmlq¿UU	_Cell__idqÀK	U_before_preparseqÁU¿os.chdir("/home/was/talks/2006-08-17-scipy/sage_notebook/worksheets/_scratch_/cells/9")
%hide%html

You can embed HTML

It can even include math: \prod(1-q^n)qÂU _Cell__dirqÃU*sage_notebook/worksheets/_scratch_/cells/9qÄU _Cell__outqÅUj

You can embed HTML

It can even include math: \prod(1-q^n)qÆUhas_new_outputqljU_Cell__is_htmlqȈU _Cell__sageqÉh#U _Cell__typeqÊh%U _Cell__timeqˉU_Cell__interruptedq̉ub(hoqÍ}qÎ(h¸Uu%latex Cells can be written in latex, which can refer to SAGE objects. For example, consider $E$ given by $\sage{E}$.qÏhºU!
qÐh¼hh½‰h¾‰h¿UEqÑhÀKhÁUÎos.chdir("/home/was/talks/2006-08-17-scipy/sage_notebook/worksheets/_scratch_/cells/11")
%latex
Cells can be written in latex, which can refer to SAGE objects.
For example, consider $E$ given by $\sage{E}$.qÒhÃU+sage_notebook/worksheets/_scratch_/cells/11qÓhÅUhljhȉhÉh#hÊh%hˉh̉ub(hoqÔ}qÕ(hUtime n=factorial(10^6)qÖhU!
q×hhh‰h‰hUhKhU”os.chdir("/home/was/talks/2006-08-17-scipy/sage_notebook/worksheets/_scratch_/cells/3")
__SAGE_t__=cputime()
__SAGE_w__=walltime()
n=factorial(10^6)qØhU*sage_notebook/worksheets/_scratch_/cells/3qÙhU$CPU time: 3.31 s,  Wall time: 3.34 sqÚh‰h ‰h!h#h$h%h&ˆh'‰ub(hoqÛ}qÜ(hU0f = maxima('x*sin(x)*cos(x)^2')
print f, type(f)qÝhU!
qÞhhh‰h‰hUhKhUˆos.chdir("/home/was/talks/2006-08-17-scipy/sage_notebook/worksheets/_scratch_/cells/4")
f = maxima('x*sin(x)*cos(x)^2')
print f, type(f)qßhU*sage_notebook/worksheets/_scratch_/cells/4qàhU@x*cos(x)^2*sin(x) qáh‰h ‰h!h#h$h%h&‰h'‰ub(hoqâ}qã(hAU
f.integrate()qähCU!
qåhEhhF‰hG‰hHUhIKh|Uf.qæhJUfos.chdir("/home/was/talks/2006-08-17-scipy/sage_notebook/worksheets/_scratch_/cells/22")
f.integrate()qçhLU+sage_notebook/worksheets/_scratch_/cells/22qèhNU4(sin(3*x) - 3*x*cos(3*x) + 9*sin(x) - 9*x*cos(x))/36qéhP‰hQ‰hRh#hSh%hT‰hU‰ub(hoqê}që(hAUf.name()qìhCU!
qíhEhhF‰hG‰hHUhIKhJUaos.chdir("/home/was/talks/2006-08-17-scipy/sage_notebook/worksheets/_scratch_/cells/23")
f.name()qîhLU+sage_notebook/worksheets/_scratch_/cells/23qïhNU'sage0'qðhP‰hQ‰hRh#hSUhiddenqñhT‰hU‰ub(hoqò}qó(hTº# Many random spheres:
        sage: t = Tachyon(xres=512,yres=512, camera_center=(2,0.5,0.5), look_at=(0.5,0.5,0.5), raydepth=4)
        sage: t.light((4,3,2), 0.2, (1,1,1))
        sage: t.texture('t0', ambient=0.1, diffuse=0.9, specular=0.5, opacity=1.0, color=(1.0,0,0))
        sage: t.texture('t1', ambient=0.1, diffuse=0.9, specular=0.3, opacity=1.0, color=(0,1.0,0))
        sage: t.texture('t2', ambient=0.2, diffuse=0.7, specular=0.5, opacity=0.7, color=(0,0,1.0))
        sage: k=0
        sage: for i in range(100):
        ...    k += 1
        ...    t.sphere((random(),random(), random()), random()/10, 't%s'%(k%3))
        ...
        sage: t.save()         # long (several seconds)qôhCU!
qõhhh‰hG‰hUAqöhKhJTos.chdir("/home/was/talks/2006-08-17-scipy/sage_notebook/worksheets/_scratch_/cells/6")
# Many random spheres:
        sage: t = Tachyon(xres=512,yres=512, camera_center=(2,0.5,0.5), look_at=(0.5,0.5,0.5), raydepth=4)
        sage: t.light((4,3,2), 0.2, (1,1,1))
        sage: t.texture('t0', ambient=0.1, diffuse=0.9, specular=0.5, opacity=1.0, color=(1.0,0,0))
        sage: t.texture('t1', ambient=0.1, diffuse=0.9, specular=0.3, opacity=1.0, color=(0,1.0,0))
        sage: t.texture('t2', ambient=0.2, diffuse=0.7, specular=0.5, opacity=0.7, color=(0,0,1.0))
        sage: k=0
        sage: for i in range(100):
        ...    k += 1
        ...    t.sphere((random(),random(), random()), random()/10, 't%s'%(k%3))
        ...
        sage: t.save()         # long (several seconds)q÷hU*sage_notebook/worksheets/_scratch_/cells/6qøhUh‰hQ‰hRh#h$h%hT‰h'‰ub(hoqù}qú(U	_Cell__inqûUEplot3dsoya(lambda x,y: abs(zeta(x+I*y)),(1,0), side=4, res=32).show()qüU_Cell__introspect_htmlqýU!
qþU_Cell__worksheetqÿhU_Cell__completionsr‰U_Cell__introspectr‰U_Cell__out_htmlrUU	_Cell__idrKU_before_preparserUžos.chdir("/home/was/talks/2006-08-17-scipy/sage_notebook/worksheets/_scratch_/cells/26")
plot3dsoya(lambda x,y: abs(zeta(x+I*y)),(1,0), side=4, res=32).show()rU
_Cell__dirrU+sage_notebook/worksheets/_scratch_/cells/26rU
_Cell__outrTR[>                                                            ] 0%[------>                                                      ] 10%[---------------->                                            ] 27%[------------------------------>                              ] 51%[----------------------------------------------->             ] 78%[------------------------------------------------------------>] 100%
* Soya * Using 8 bits stencil buffer

* Soya * version 0.11.2
* Using OpenGL 2.0.5879 (8.26.18)
*   - renderer : ATI Mobility Radeon X1600 Generic
*   - vendor   : ATI Technologies Inc.
*   - maximum number of lights        : 8
*   - maximum number of clip planes   : 6
*   - maximum number of texture units : 8
*   - maximum texture size            : 4096 pixels

* Soya Pudding * Version: 0.1-0
* Soya * Using 16 bits stencil bufferr	Uhas_new_outputr
‰U_Cell__is_htmlr‰U_Cell__sagerNU_Cell__typer
h%U_Cell__timer‰U_Cell__interruptedr‰ub(hor}r(hûUhÿhj‰jUjKjU+sage_notebook/worksheets/_scratch_/cells/25rjUj
‰j
hñj‰ubeU_Worksheet__synchrorKÒU_Worksheet__namerU	_scratch_rU_Worksheet__attachedr}rU_Worksheet__dirrU"sage_notebook/worksheets/_scratch_rU_Worksheet__queuer]rU_Worksheet__next_idrKU_Worksheet__comp_is_runningr‰U_Worksheet__notebookrhU_Worksheet__next_block_idrKU_Worksheet__idr KU_Worksheet__systemr!NubsU_Notebook__historyr"]r#(U9# Worksheet '_scratch_' (2006-08-15 at 00:38)
sage: 2^3
8r$UL# Worksheet '_scratch_' (2006-08-15 at 00:38)
sage: factor(2006)
2 * 17 * 59r%UJ# Worksheet '_scratch_' (2006-08-15 at 00:38)
sage: factor(2007)
3^2 * 223r&Th# Worksheet '_scratch_' (2006-08-15 at 00:39)
sage: ModularSymbols(43).decomposition()
[
Modular Symbols subspace of dimension 1 of Modular Symbols space of dimension 7 for Gamma_0(43) of weight 2 with sign 0 over Rational Field,
Modular Symbols subspace of dimension 2 of Modular Symbols space of dimension 7 for Gamma_0(43) of weight 2 with sign 0 over ...r'To# Worksheet '_scratch_' (2006-08-15 at 00:39)
sage: ModularSymbols(43,sign=1).decomposition()
[
Modular Symbols subspace of dimension 1 of Modular Symbols space of dimension 4 for Gamma_0(43) of weight 2 with sign 1 over Rational Field,
Modular Symbols subspace of dimension 1 of Modular Symbols space of dimension 4 for Gamma_0(43) of weight 2 with sign 1 over ...r(Uo# Worksheet '_scratch_' (2006-08-15 at 00:39)
sage: time n=factorial(10^6)
CPU time: 3.61 s,  Wall time: 3.63 sr)U{# Worksheet '_scratch_' (2006-08-15 at 00:40)
sage: show(factor(2007))
3^{2} \cdot 223
r*U}# Worksheet '_scratch_' (2006-08-15 at 00:40) sage: view(factor(2007)) 3^{2} \cdot 223r+Tj# Worksheet '_scratch_' (2006-08-15 at 00:40) sage: view(maxima('sin(x^2)').integrate()) \frac{\sqrt{\pi} \left(\left(\sqrt{2} i+\sqrt{2}\right) \mathrm{erf}\left(\frac{\left(\sqrt{2} i+\sqrt{2}\right) x}{2} \right)+\left(\sqrt{2} i-\sqrt{2}\right) \mathrm{erf}\left(\frac{ \left(\sqrt{2} i-\sqrt{2}\right) x}{2}\right)\right)}{8}...r,Tj# Worksheet '_scratch_' (2006-08-15 at 00:40) sage: view(maxima('cos(x^2)').integrate()) -\frac{\sqrt{\pi} \left(\left(\sqrt{2} i-\sqrt{2}\right) \mathrm{erf}\left(\frac{\left(\sqrt{2} i+\sqrt{2}\right) x}{2} \right)+\left(\sqrt{2} i+\sqrt{2}\right) \mathrm{erf}\left(\frac{ \left(\sqrt{2} i-\sqrt{2}\right) x}{2}\right)\right)}{8...r-U•# Worksheet '_scratch_' (2006-08-15 at 00:40) sage: view(maxima('tan(x^2)').integrate()) \int {\tan x^2}{\;dx}r.U‰# Worksheet '_scratch_' (2006-08-15 at 00:41) sage: view(maxima('tan(x)').integrate()) \log \sec xr/Uª# Worksheet '_scratch_' (2006-08-15 at 00:41) sage: view(maxima('tan(1/x)').integrate()) \int {\tan \left(\frac{1}{x}\right)}{\;dx}r0UÖ# Worksheet '_scratch_' (2006-08-15 at 00:41) sage: view(maxima('sin(1/x)').integrate()) \sin \left(\frac{1}{x}\right) x+\int {\frac{\cos \left(\frac{1}{x} \right)}{x}}{\;dx}r1UÙ# Worksheet '_scratch_' (2006-08-15 at 00:41) sage: view(maxima('x*sin(x)*cos(x)^2').integrate()) \frac{\sin \left(3 x\right)-3 x \cos \left(3 x\right)+9 \sin x-9 x \cos x}{36}r2U×# Worksheet '_scratch_' (2006-08-15 at 00:41) sage: show(maxima('x*sin(x)*cos(x)^2').integrate())
\frac{\sin \left(3 x\right)-3 x \cos \left(3 x\right)+9 \sin x-9 x \cos x}{36}
r3U\# Worksheet 'interfaces' (2006-08-15 at 00:42) sage: E = magma.EllipticCurve('[1,2,3,4,5]') r4UŒ# Worksheet 'interfaces' (2006-08-15 at 00:42) sage: E Elliptic Curve defined by y^2 + x*y + 3*y = x^3 + 2*x^2 + 4*x + 5 over Rational Fieldr5U†# Worksheet 'interfaces' (2006-08-15 at 00:43) sage: E.MordellWeilGroup() Abelian Group isomorphic to Z Defined on 1 generator (free)r6Te# Worksheet 'interfaces' (2006-08-15 at 00:43) sage: E.MordellWeilGroup(bound = 10) ... TypeError: Error evaluation Magma code. IN:_sage_[18] := MordellWeilGroup(_sage_[17] : bound:=10); OUT: >> _sage_[18] := MordellWeilGroup(_sage_[17] : bound:=10); ^ Runtime error in 'MordellWeilGroup': Parameter 'bound' is not d...r7U# Worksheet 'interfaces' (2006-08-15 at 00:43) sage: E.MordellWeilGroup(Bound = 10) Abelian Group isomorphic to Z Defined on 1 generator (free)r8Ui# Worksheet 'interfaces' (2006-08-15 at 00:43) sage: type(E) r9UD# Worksheet 'interfaces' (2006-08-15 at 00:43) sage: parent(E) Magmar:UI# Worksheet 'interfaces' (2006-08-15 at 00:43) sage: E.name() '_sage_[2]'r;T]# Worksheet 'coverage' (2006-08-15 at 01:05) sage: buzzard_tpslopes(2,1,50) [[], [], [], [], [], [], [], [], [], [], [], [], [3], [], [], [], [3], [], [4], [], [3], [], [5], [], [3, 7], [], [4], [], [3, 8], [], [6, 6], [], [3, 7], [], [4, 8], [], [3, 9, 9], [], [5, 8], [], [3, 7, 11], [], [4, 9, 12], [], [3, 8, 11], [], [6, 6, 13], [], [3, 7, 1...r<U~# Worksheet 'coverage' (2006-08-15 at 01:06) sage: factor(genus2reduction(x^3 - 2*x^2 - 2*x + 1, -5*x^5).conductor) 5^4 * 2267r=U¼# Worksheet 'coverage' (2006-08-15 at 01:07) sage: ECM.factor(2007) ... TypeError: unbound method factor() must be called with ECM instance as first argument (got Integer instance instead)r>U€# Worksheet 'coverage' (2006-08-15 at 01:07) sage: ECM().factor(next_prime(10^10)*next_prime(10^11)) [10000000019, 100000000003]r?U“# Worksheet 'coverage' (2006-08-15 at 01:07) sage: ECM().factor(next_prime(10^10)*next_prime(10^30)) [10000000019, 1000000000000000000000000000057]r@Uà# Worksheet 'coverage' (2006-08-15 at 01:07) sage: ecm = ECM(); print ecm sage: ecm.factor(next_prime(10^10)*next_prime(10^30)) [10000000019, 1000000000000000000000000000057]rAU¥# Worksheet 'coverage' (2006-08-15 at 01:07) sage: ecm = ECM(); sage: ecm.factor(next_prime(10^10)*next_prime(10^30)) [10000000019, 1000000000000000000000000000057]rBTy# Worksheet 'coverage' (2006-08-15 at 01:08) sage: factor(ModularSymbols(389,2,sign=1).T(2).charpoly()) (x - 3) * (x + 2) * (x^2 - 2) * (x^3 - 4*x - 2) * (x^6 + 3*x^5 - 2*x^4 - 8*x^3 + 2*x^2 + 4*x - 1) * (x^20 - 3*x^19 - 29*x^18 + 91*x^17 + 338*x^16 - 1130*x^15 - 2023*x^14 + 7432*x^13 + 6558*x^12 - 28021*x^11 - 10909*x^10 + 61267*x^9 + 6954*x^8 - 74752*x^7 + 1407*x^6 + 46...rCU[# Worksheet 'coverage' (2006-08-15 at 01:09) sage: A. = QuaternionAlgebra(QQ,-1,-1) rDUA# Worksheet 'coverage' (2006-08-15 at 01:09) sage: i^2 + j -1 + jrEU£# Worksheet 'coverage' (2006-08-15 at 01:09) sage: A. = QuaternionAlgebra(QQ,-1,-1) sage: A Quaternion algebra with generators (i, j, k) over Rational FieldrFUî# Worksheet 'coverage' (2006-08-15 at 01:09) sage: SupersingularModule(37).T(2) Supersingular Module -- work in progress; use at own risk. (2006-08-08) Hecke operator T_2 on Module of supersingular points on X_0(1)/F_37 over Integer RingrGU»# Worksheet 'coverage' (2006-08-15 at 01:09) sage: SupersingularModule(37).T(2).matrix() Supersingular Module -- work in progress; use at own risk. (2006-08-08) [1 1 1] [1 0 2] [1 2 0]rHU# Worksheet '_scratch_' (2006-08-15 at 08:56) sage: def f(x): ... return dimension_cusp_forms(Gamma0(int(x))) ... sage: show(plot(f,1,100)) rIU# Worksheet '_scratch_' (2006-08-15 at 08:57) sage: E = EllipticCurve('37a'); E Elliptic Curve defined by y^2 + y = x^3 - x over Rational FieldrJU‹# Worksheet '_scratch_' (2006-08-15 at 08:58) sage: L = E.Lseries_dokchitser(5) sage: show(plot(L,-1,1, plot_points=50, plot_division=50)) rKUi# Worksheet '_scratch_' (2006-08-15 at 08:59) sage: L = E.Lseries_dokchitser(5) sage: show(plot(L,-1,2)) rLUj# Worksheet '_scratch_' (2006-08-15 at 08:59) sage: L = E.Lseries_dokchitser(20) sage: show(plot(L,-1,2)) rMU€# Worksheet '_scratch_' (2006-08-15 at 09:00) sage: L = E.Lseries_dokchitser(20) sage: show(plot(L,-1,2, thickness=2, hue=0.6)) rNU–# Worksheet '_scratch_' (2006-08-15 at 09:00) sage: L = E.Lseries_dokchitser(20) sage: show(plot(L,-1,2, thickness=2, hue=0.6, ymin=-0.25, ymax=0.5)) rOU–# Worksheet '_scratch_' (2006-08-15 at 09:01) sage: L = E.Lseries_dokchitser(20) sage: show(plot(L,-1,2, thickness=2, hue=0.6), ymin=-0.25, ymax=0.5) rPU\# Worksheet 'interfaces' (2006-08-15 at 09:01) sage: E = magma.EllipticCurve('[1,2,3,4,5]') rQT# Worksheet '_scratch_' (2006-08-15 at 09:03) html>

You can embed HTML

html> It can even include math: \prod(1-q^n)

You can embed HTML

It can even include math: \prod(1-q^n)rRUÊ# Worksheet '_scratch_' (2006-08-15 at 09:03) html%hide>

You can embed HTML

html%hide> It can even include math: \prod(1-q^n) ... NameError: name 'hide' is not definedrST # Worksheet '_scratch_' (2006-08-15 at 09:03) hide%html>

You can embed HTML

hide%html> It can even include math: \prod(1-q^n)

You can embed HTML

It can even include math: \prod(1-q^n)rTU«# Worksheet '_scratch_' (2006-08-15 at 09:04) latex> Cells can be written in latex, which can refer to SAGE objects. latex> For example, consider $E$ given by $\sage{E}$. rUUA# Worksheet 'interfaces' (2006-08-15 at 09:04) sage: gap('2^3') 8rVU´# Worksheet 'interfaces' (2006-08-15 at 09:05) sage: E = magma.EllipticCurve('[1,2,3,4,5]'); E Elliptic Curve defined by y^2 + x*y + 3*y = x^3 + 2*x^2 + 4*x + 5 over Rational FieldrWUF# Worksheet 'interfaces' (2006-08-15 at 09:05) sage: singular('2^3') 8rXU@# Worksheet 'interfaces' (2006-08-15 at 09:05) sage: gp('2^3') 8rYU×# Worksheet 'interfaces' (2006-08-15 at 09:05) sage: gap('Factorization(2007)') ... TypeError: Gap produced error output Function: number of arguments must be 2 (not 1) executing $sage1:=Factorization(2007);;rZUÉ# Worksheet 'interfaces' (2006-08-15 at 09:05) sage: gap('Factorize(2007)') ... TypeError: Gap produced error output Variable: 'Factorize' must have a value executing $sage2:=Factorize(2007);;r[UÀ# Worksheet 'interfaces' (2006-08-15 at 09:05) sage: gap('Factor(2007)') ... TypeError: Gap produced error output Variable: 'Factor' must have a value executing $sage3:=Factor(2007);;r\UA# Worksheet 'interfaces' (2006-08-15 at 09:05) sage: gap('2^3') 8r]UÄ# Worksheet 'cnta - using other systems' (2006-08-15 at 09:08) sage: E = magma.EllipticCurve('[1,2,3,4,5]'); E Elliptic Curve defined by y^2 + x*y + 3*y = x^3 + 2*x^2 + 4*x + 5 over Rational Fieldr^U # Worksheet 'cnta - using other systems' (2006-08-15 at 09:08) sage: E.MordellWeilGroup(Bound = 10) Abelian Group isomorphic to Z Defined on 1 generator (free)r_Uy# Worksheet 'cnta - using other systems' (2006-08-15 at 09:08) sage: type(E) r`U¾# Worksheet 'cnta - using other systems' (2006-08-15 at 09:09) sage: mathematica('BernoulliB[100]') -94598037819122125295227433069493721872702841533066936133385696204311395415197247711/33330raU9# Worksheet '_scratch_' (2006-08-16 at 00:02) sage: 2^3 8rbU9# Worksheet '_scratch_' (2006-08-16 at 00:02) sage: 2^3 8rcUn# Worksheet 'sys' (2006-08-16 at 00:02) sage: import sys; sys.path.append('/usr/lib/python2.4/site-packages') rdUa# Worksheet 'sys' (2006-08-16 at 00:02) sage: import scipy ... ImportError: No module named scipyreU<# Worksheet 'sys' (2006-08-16 at 00:05) sage: import Crypto rfTL# Worksheet 'sys' (2006-08-16 at 00:05) sage: help(Crypto) Help on package Crypto: NAME Crypto - Python Cryptography Toolkit FILE /usr/lib/python2.4/site-packages/Crypto/__init__.py DESCRIPTION A collection of cryptographic modules implementing various algorithms and protocols. Subpackage...rgU9# Worksheet '_scratch_' (2006-08-16 at 18:58) sage: 2^3 8rhUJ# Worksheet '_scratch_' (2006-08-16 at 18:58) sage: factor(2007) 3^2 * 223riU}# Worksheet '_scratch_' (2006-08-16 at 18:58) sage: view(factor(2007)) 3^{2} \cdot 223rjT # Worksheet '_scratch_' (2006-08-16 at 18:58) hide%html>

You can embed HTML

hide%html> It can even include math: \prod(1-q^n)

You can embed HTML

It can even include math: \prod(1-q^n)rkU# Worksheet '_scratch_' (2006-08-16 at 18:58) sage: E = EllipticCurve('37a'); E Elliptic Curve defined by y^2 + y = x^3 - x over Rational FieldrlU«# Worksheet '_scratch_' (2006-08-16 at 18:58) latex> Cells can be written in latex, which can refer to SAGE objects. latex> For example, consider $E$ given by $\sage{E}$. rmU–# Worksheet '_scratch_' (2006-08-16 at 18:59) sage: L = E.Lseries_dokchitser(20) sage: show(plot(L,-1,2, thickness=2, hue=0.6), ymin=-0.25, ymax=0.5) rnUO# Worksheet 'cnta - using other systems' (2006-08-16 at 19:00) sage: n = -2007 roUm# Worksheet 'cnta - using other systems' (2006-08-16 at 19:00) sage: n = -2007 sage: factor(n) -1 * 3^2 * 223rpUn# Worksheet 'cnta - using other systems' (2006-08-16 at 19:00) sage: n.factor(algorithm="kash") -1 * 3^2 * 223rqUg# Worksheet 'cnta - using other systems' (2006-08-16 at 19:00) sage: gap(n).FactorsInt() [ -3, 3, 223 ]rrUk# Worksheet 'cnta - using other systems' (2006-08-16 at 19:00) sage: pari(n).factor() [-1, 1; 3, 2; 223, 1]rsUi# Worksheet 'cnta - using other systems' (2006-08-16 at 19:00) sage: gp(n).factor() [-1, 1; 3, 2; 223, 1]rtU`# Worksheet 'cnta - using other systems' (2006-08-16 at 19:00) sage: maxima(n).factor() -3^2*223ruU¢# Worksheet 'cnta - using other systems' (2006-08-16 at 19:00) sage: kash(n).Factorization() [ <3, 2>, <223, 1> ], extended by: ext1 := -1, ext2 := UnassignrvU# Worksheet 'cnta - using other systems' (2006-08-16 at 19:00) sage: magma(n).Factorization(nvals = 2) ([ <3, 2>, <223, 1> ], -1)rwUh# Worksheet 'cnta - using other systems' (2006-08-16 at 19:00) sage: maple(n).ifactor() -``(3)^2*``(223)rxUn# Worksheet 'sys' (2006-08-16 at 19:01) sage: import sys; sys.path.append('/usr/lib/python2.4/site-packages') ryU<# Worksheet 'sys' (2006-08-16 at 19:01) sage: import Crypto rzUa# Worksheet 'sys' (2006-08-16 at 19:01) sage: import scipy ... ImportError: No module named scipyr{Tu# Worksheet 'cnta - using other systems' (2006-08-16 at 19:01) sage: mathematica(n).FactorInteger() Timeout exceeded in read_nonblocking(). version: 2.0 ($Revision: 1.151 $) command: /home/was/bin/math args: ['/home/was/bin/math'] patterns: In[[0-9]+]:= buffer (last 100 chars): before (last 100 chars): Mathematica 5....r|U¡# Worksheet 'cnta - using other systems' (2006-08-16 at 19:01) magma> n := -2007; magma> F, s := Factorization(-2007); magma> print F, s [ <3, 2>, <223, 1> ] -1r}Ud# Worksheet 'cnta - using other systems' (2006-08-16 at 19:01) sage: magma('F') [ <3, 2>, <223, 1> ]r~U9# Worksheet '_scratch_' (2006-08-17 at 10:44) sage: 2^3 8rUJ# Worksheet '_scratch_' (2006-08-17 at 10:44) sage: factor(2007) 3^2 * 223r€U}# Worksheet '_scratch_' (2006-08-17 at 10:44) sage: view(factor(2007)) 3^{2} \cdot 223rT # Worksheet '_scratch_' (2006-08-17 at 10:44) hide%html>

You can embed HTML

hide%html> It can even include math: \prod(1-q^n)

You can embed HTML

It can even include math: \prod(1-q^n)r‚U# Worksheet '_scratch_' (2006-08-17 at 10:44) sage: E = EllipticCurve('37a'); E Elliptic Curve defined by y^2 + y = x^3 - x over Rational FieldrƒU«# Worksheet '_scratch_' (2006-08-17 at 10:44) latex> Cells can be written in latex, which can refer to SAGE objects. latex> For example, consider $E$ given by $\sage{E}$. r„Uo# Worksheet '_scratch_' (2006-08-17 at 10:44) sage: time n=factorial(10^6) CPU time: 3.27 s, Wall time: 4.28 sr…U×# Worksheet '_scratch_' (2006-08-17 at 10:44) sage: show(maxima('x*sin(x)*cos(x)^2').integrate())
\frac{\sin \left(3 x\right)-3 x \cos \left(3 x\right)+9 \sin x-9 x \cos x}{36}
r†U}# Worksheet '_scratch_' (2006-08-17 at 10:54) sage: view(factor(2007)) 3^{2} \cdot 223r‡Uu# Worksheet '_scratch_' (2006-08-17 at 10:57) sage: M = MatrixSpace(QQ,3)(range(9)) sage: M [0 1 2] [3 4 5] [6 7 8]rˆU¨# Worksheet '_scratch_' (2006-08-17 at 10:57) sage: view(M) \left(\begin{array}{rrr} 0&1&2\\ 3&4&5\\ 6&7&8 \end{array}\right)r‰Un# Worksheet '_scratch_' (2006-08-17 at 10:57) sage: view(M^(-1)) ... ZeroDivisionError: self is not invertiblerŠU¨# Worksheet '_scratch_' (2006-08-17 at 10:57) sage: view(M) \left(\begin{array}{rrr} 0&1&2\\ 3&4&5\\ 6&7&8 \end{array}\right)r‹Uw# Worksheet '_scratch_' (2006-08-17 at 10:59) sage: G = PermutationGroup(5) ... TypeError: gens must be a tuple or listrŒUJ# Worksheet '_scratch_' (2006-08-17 at 10:59) sage: G = SymmetricGroup(5) rU # Worksheet '_scratch_' (2006-08-17 at 11:00) sage: G.conjugacy_classes_representatives() [(), (1,2), (1,2)(3,4), (1,2,3), (1,2,3)(4,5), (1,2,3,4), (1,2,3,4,5)]rŽU# Worksheet '_scratch_' (2006-08-17 at 11:00) sage: G = AlternativeGroup(5) ... NameError: name 'AlternativeGroup' is not definedrUL# Worksheet '_scratch_' (2006-08-17 at 11:00) sage: G = AlternatingGroup(5) rU# Worksheet '_scratch_' (2006-08-17 at 11:00) sage: G.conjugacy_classes_representatives() [(), (1,2)(3,4), (1,2,3), (1,2,3,4,5), (1,2,3,5,4)]r‘UL# Worksheet '_scratch_' (2006-08-17 at 11:00) sage: G = AlternatingGroup(5) r’U# Worksheet '_scratch_' (2006-08-17 at 11:00) sage: G.conjugacy_classes_representatives() [(), (1,2)(3,4), (1,2,3), (1,2,3,4,5), (1,2,3,5,4)]r“T # Worksheet '_scratch_' (2006-08-17 at 11:00) hide%html>

You can embed HTML

hide%html> It can even include math: \prod(1-q^n)

You can embed HTML

It can even include math: \prod(1-q^n)r”Ut# Worksheet '_scratch_' (2006-08-17 at 11:02) sage: f = x^389 + 17/3*x + 2 sage: g = x^97 - 18*x + 15 sage: h = f*g r•U˜# Worksheet '_scratch_' (2006-08-17 at 11:02) time> f = x^389 + 17/3*x + 2 time> g = x^97 - 18*x + 15 time> h = f*g CPU time: 0.00 s, Wall time: 0.00 sr–U˜# Worksheet '_scratch_' (2006-08-17 at 11:03) time> f = x^389 + 17/3*x + 2 time> g = x^97 - 18*x + 15 time> h = f*g CPU time: 0.00 s, Wall time: 0.00 sr—U|# Worksheet '_scratch_' (2006-08-17 at 11:03) sage: show(f)
x^{389} + \frac{17}{3}x + 2
r˜U~# Worksheet '_scratch_' (2006-08-17 at 11:03) sage: view(f) x^{389} + \frac{17}{3}x + 2r™U9# Worksheet '_scratch_' (2006-08-17 at 11:03) sage: 2^3 8ršU;# Worksheet '_scratch_' (2006-08-17 at 11:03) sage: 2/3 2/3r›UJ# Worksheet '_scratch_' (2006-08-17 at 11:03) sage: factor(2007) 3^2 * 223rœU9# Worksheet '_scratch_' (2006-08-17 at 11:04) sage: 2^3 8rU;# Worksheet '_scratch_' (2006-08-17 at 11:04) sage: 2/3 2/3ržUJ# Worksheet '_scratch_' (2006-08-17 at 11:04) sage: factor(2007) 3^2 * 223rŸU}# Worksheet '_scratch_' (2006-08-17 at 11:04) sage: view(factor(2007)) 3^{2} \cdot 223r Uu# Worksheet '_scratch_' (2006-08-17 at 11:04) sage: M = MatrixSpace(QQ,3)(range(9)) sage: M [0 1 2] [3 4 5] [6 7 8]r¡U¨# Worksheet '_scratch_' (2006-08-17 at 11:04) sage: view(M) \left(\begin{array}{rrr} 0&1&2\\ 3&4&5\\ 6&7&8 \end{array}\right)r¢UL# Worksheet '_scratch_' (2006-08-17 at 11:04) sage: G = AlternatingGroup(5) r£U# Worksheet '_scratch_' (2006-08-17 at 11:04) sage: G.conjugacy_classes_representatives() [(), (1,2)(3,4), (1,2,3), (1,2,3,4,5), (1,2,3,5,4)]r¤U˜# Worksheet '_scratch_' (2006-08-17 at 11:04) time> f = x^389 + 17/3*x + 2 time> g = x^97 - 18*x + 15 time> h = f*g CPU time: 0.00 s, Wall time: 0.00 sr¥U~# Worksheet '_scratch_' (2006-08-17 at 11:04) sage: view(f) x^{389} + \frac{17}{3}x + 2r¦T # Worksheet '_scratch_' (2006-08-17 at 11:04) hide%html>

You can embed HTML

hide%html> It can even include math: \prod(1-q^n)

You can embed HTML

It can even include math: \prod(1-q^n)r§U«# Worksheet '_scratch_' (2006-08-17 at 11:04) latex> Cells can be written in latex, which can refer to SAGE objects. latex> For example, consider $E$ given by $\sage{E}$. r¨Uo# Worksheet '_scratch_' (2006-08-17 at 11:04) sage: time n=factorial(10^6) CPU time: 3.11 s, Wall time: 3.14 sr©U×# Worksheet '_scratch_' (2006-08-17 at 11:04) sage: show(maxima('x*sin(x)*cos(x)^2').integrate())
\frac{\sin \left(3 x\right)-3 x \cos \left(3 x\right)+9 \sin x-9 x \cos x}{36}
rªTž# Worksheet '_scratch_' (2006-08-17 at 11:48) Sphere's along the twisted cubic. sage: t = Tachyon(xres=512,yres=512, camera_center=(3,0.3,0)) sage: t.light((4,3,2), 0.2, (1,1,1)) sage: t.texture('t0', ambient=0.1, diffuse=0.9, specular=0.5, opacity=1.0, color=(1.0,0,0)) sage: t.texture('t1', ambient=0.1, diffuse=0.9, specular=0.3, opacity=1.0, color=(0,1.0,0)) sage: t.texture('t2', ambient=0.2,diffuse=0.7, specular=0.5, opacity=0.7, color=(0,0,1.0)) sage: k=0 sage: for i in srange(-1,1,0.05): ... k += 1 ... t.sphere((i,i^2-0.5,i^3), 0.1, 't%s'%(k%3)) ... sage: t.save() r«T# Worksheet '_scratch_' (2006-08-17 at 11:49) # Many random spheres: sage: t.save() sage: t = Tachyon(xres=512,yres=512, camera_center=(2,0.5,0.5), look_at=(0.5,0.5,0.5), raydepth=4) sage: t.light((4,3,2), 0.2, (1,1,1)) sage: t.texture('t0', ambient=0.1, diffuse=0.9, specular=0.5, opacity=1.0, color=(1.0,0,0)) sage: t.texture('t1', ambient=0.1, diffuse=0.9, specular=0.3, opacity=1.0, color=(0,1.0,0)) sage: t.texture('t2', ambient=0.2, diffuse=0.7, specular=0.5, opacity=0.7, color=(0,0,1.0)) sage: k=0 sage: for i in range(100): ... k += 1 ... t.sphere((random(),random(), random()), random()/10, 't%s'%(k%3)) ... sage: t.save() # long (several seconds) r¬Uu# Worksheet '_scratch_' (2006-08-17 at 11:50) sage: M = MatrixSpace(QQ,3)(range(9)) sage: M [0 1 2] [3 4 5] [6 7 8]r­U¨# Worksheet '_scratch_' (2006-08-17 at 11:50) sage: view(M) \left(\begin{array}{rrr} 0&1&2\\ 3&4&5\\ 6&7&8 \end{array}\right)r®Ug# Worksheet '_scratch_' (2006-08-17 at 11:50) sage: M.echelon_form() [ 1 0 -1] [ 0 1 2] [ 0 0 0]r¯U¢# Worksheet '_scratch_' (2006-08-17 at 11:50) sage: M = MatrixSpace(QQ,3)([1,2,3,1/3,17,-2/3,1,5,-5]) sage: M [ 1 2 3] [ 1/3 17 -2/3] [ 1 5 -5]r°U¿# Worksheet '_scratch_' (2006-08-17 at 11:50) sage: view(M) \left(\begin{array}{rrr} 1&2&3\\ \frac{1}{3}&17&-\frac{2}{3}\\ 1&5&-5 \end{array}\right)r±U^# Worksheet '_scratch_' (2006-08-17 at 11:50) sage: M.echelon_form() [1 0 0] [0 1 0] [0 0 1]r²U;# Worksheet '_scratch_' (2006-08-17 at 11:51) python> 2/3 0r³UX# Worksheet '_scratch_' (2006-08-17 at 11:51) python> print(2^3) python> print(2/3) 1 0r´U# Worksheet '_scratch_' (2006-08-17 at 11:55) sage: f = maxima('x*sin(x)*cos(x)^2') sage: type(f) rµU«# Worksheet '_scratch_' (2006-08-17 at 11:55) sage: f = maxima('x*sin(x)*cos(x)^2') sage: print f, type(f) x*cos(x)^2*sin(x) r¶Uv# Worksheet '_scratch_' (2006-08-17 at 11:55) sage: f.integrate() (sin(3*x) - 3*x*cos(3*x) + 9*sin(x) - 9*x*cos(x))/36r·Uv# Worksheet '_scratch_' (2006-08-17 at 11:55) sage: f.integrate() (sin(3*x) - 3*x*cos(3*x) + 9*sin(x) - 9*x*cos(x))/36r¸UD# Worksheet '_scratch_' (2006-08-17 at 11:56) sage: f.name() 'sage1'r¹T# Worksheet '_scratch_' (2006-08-17 at 11:56) # Many random spheres: sage: t.save() sage: t = Tachyon(xres=512,yres=512, camera_center=(2,0.5,0.5), look_at=(0.5,0.5,0.5), raydepth=4) sage: t.light((4,3,2), 0.2, (1,1,1)) sage: t.texture('t0', ambient=0.1, diffuse=0.9, specular=0.5, opacity=1.0, color=(1.0,0,0)) sage: t.texture('t1', ambient=0.1, diffuse=0.9, specular=0.3, opacity=1.0, color=(0,1.0,0)) sage: t.texture('t2', ambient=0.2, diffuse=0.7, specular=0.5, opacity=0.7, color=(0,0,1.0)) sage: k=0 sage: for i in range(100): ... k += 1 ... t.sphere((random(),random(), random()), random()/10, 't%s'%(k%3)) ... sage: t.save() # long (several seconds) rºU|# Worksheet '_scratch_' (2006-08-17 at 11:56) sage: M.parent() Full MatrixSpace of 3 by 3 dense matrices over Rational Fieldr»T‚# Worksheet '_scratch_' (2006-08-17 at 13:45) sage: plot3dsoya(lambda x,y: sin(x^2+y^2), side=8, res=128).show() [> ] 0%[---> ] 5%[-------> ] 11%[------------> ] 20%[---...r¼U_# Worksheet '_scratch_' (2006-08-17 at 13:45) sage: def f(x,y): ... return abs(zeta(x+I*y)) r½U_# Worksheet '_scratch_' (2006-08-17 at 13:45) sage: def z(x,y): ... return abs(zeta(x+I*y)) r¾Tb# Worksheet '_scratch_' (2006-08-17 at 13:46) sage: plot3dsoya(z, (1,0) ).show() [> ] 1%[-----------------------------------------------------------> ] 100% * Soya * Using 8 bits stencil buffer * Soya * version 0.11.2 * Using OpenGL 2.0.5879 (8.26.18) * - renderer : ATI Mobility Rade...r¿T‹# Worksheet '_scratch_' (2006-08-17 at 13:47) sage: plot3dsoya(lambda x,y: abs(zeta(x+I*y)),(1,0), side=4, res=32).show() [> ] 0%[------> ] 10%[------------> ] 21%[-------------------> ] 32%[--...rÀU9# Worksheet '_scratch_' (2006-08-17 at 13:48) sage: 2^3 8rÁU9# Worksheet '_scratch_' (2006-08-17 at 13:48) sage: 2^3 8rÂU9# Worksheet '_scratch_' (2006-08-17 at 13:48) sage: 2^3 8rÃU/# Worksheet '_scratch_' (2006-08-17 at 13:50) rÄU9# Worksheet '_scratch_' (2006-08-17 at 13:50) sage: 2^3 8rÅU9# Worksheet '_scratch_' (2006-08-17 at 13:50) sage: 2^3 8rÆU9# Worksheet '_scratch_' (2006-08-17 at 13:50) sage: 2^3 8rÇU9# Worksheet '_scratch_' (2006-08-17 at 13:50) sage: 2^3 8rÈU9# Worksheet '_scratch_' (2006-08-17 at 15:14) sage: 2^3 8rÉU;# Worksheet '_scratch_' (2006-08-17 at 15:14) sage: 2/3 2/3rÊUX# Worksheet '_scratch_' (2006-08-17 at 15:14) python> print(2^3) python> print(2/3) 1 0rËUJ# Worksheet '_scratch_' (2006-08-17 at 15:14) sage: factor(2007) 3^2 * 223rÌU¢# Worksheet '_scratch_' (2006-08-17 at 15:14) sage: M = MatrixSpace(QQ,3)([1,2,3,1/3,17,-2/3,1,5,-5]) sage: M [ 1 2 3] [ 1/3 17 -2/3] [ 1 5 -5]rÍU|# Worksheet '_scratch_' (2006-08-17 at 15:14) sage: M.parent() Full MatrixSpace of 3 by 3 dense matrices over Rational FieldrÎU¿# Worksheet '_scratch_' (2006-08-17 at 15:14) sage: view(M) \left(\begin{array}{rrr} 1&2&3\\ \frac{1}{3}&17&-\frac{2}{3}\\ 1&5&-5 \end{array}\right)rÏU^# Worksheet '_scratch_' (2006-08-17 at 15:14) sage: M.echelon_form() [1 0 0] [0 1 0] [0 0 1]rÐUL# Worksheet '_scratch_' (2006-08-17 at 15:14) sage: G = AlternatingGroup(5) rÑU˜# Worksheet '_scratch_' (2006-08-17 at 15:14) time> f = x^389 + 17/3*x + 2 time> g = x^97 - 18*x + 15 time> h = f*g CPU time: 0.00 s, Wall time: 0.00 srÒU˜# Worksheet '_scratch_' (2006-08-17 at 15:14) time> f = x^389 + 17/3*x + 2 time> g = x^97 - 18*x + 15 time> h = f*g CPU time: 0.00 s, Wall time: 0.00 srÓU# Worksheet '_scratch_' (2006-08-17 at 15:14) sage: G.conjugacy_classes_representatives() [(), (1,2)(3,4), (1,2,3), (1,2,3,4,5), (1,2,3,5,4)]rÔU™# Worksheet '_scratch_' (2006-08-17 at 15:14) time> f = x^389 + 17/3*x + 2 time> g = x^397 - 18*x + 15 time> h = f*g CPU time: 0.00 s, Wall time: 0.00 srÕU~# Worksheet '_scratch_' (2006-08-17 at 15:14) sage: view(f) x^{389} + \frac{17}{3}x + 2rÖT # Worksheet '_scratch_' (2006-08-17 at 15:14) hide%html>

You can embed HTML

hide%html> It can even include math: \prod(1-q^n)

You can embed HTML

It can even include math: \prod(1-q^n)r×U«# Worksheet '_scratch_' (2006-08-17 at 15:14) latex> Cells can be written in latex, which can refer to SAGE objects. latex> For example, consider $E$ given by $\sage{E}$. rØUœ# Worksheet '_scratch_' (2006-08-17 at 15:14) time> f = x^389 + 17/3*x + 2 time> g = x^397 - 18*x + 15 time> h = f*g^10 CPU time: 0.01 s, Wall time: 0.01 srÙU¢# Worksheet '_scratch_' (2006-08-17 at 15:14) time> f = x^389 + 17/3*x + 2 time> g = x^397 - 18*x + 15 time> h = f*g^10 + f*g CPU time: 0.01 s, Wall time: 0.01 srÚU¤# Worksheet '_scratch_' (2006-08-17 at 15:14) time> f = x^389 + 17/3*x + 2 time> g = x^397 - 18*x + 15 time> h = f*g^10 + f^5*g CPU time: 0.01 s, Wall time: 0.01 srÛU¥# Worksheet '_scratch_' (2006-08-17 at 15:14) time> f = x^389 + 17/3*x + 2 time> g = x^397 - 18*x + 15 time> h = f*g^10 + f^10*g CPU time: 0.02 s, Wall time: 0.02 srÜU¥# Worksheet '_scratch_' (2006-08-17 at 15:15) time> f = x^389 + 17/3*x + 2 time> g = x^397 - 18*x + 15 time> h = f*g^10 + f^10*g CPU time: 0.01 s, Wall time: 0.01 srÝTL# Worksheet '_scratch_' (2006-08-17 at 15:15) sage: h[:50] [1153300796610, -10571923411357, 35521669089060, -82207173890380/3, -1578378351911680/9, 6297739398214880/9, -107392893078774688/81, 377409713492725760/243, -287199547816076060/243, 3757883697935134460/6561, -3178137624289098691/19683, 132742369030852798/6561, 0, 0, 0, ...rÞU9# Worksheet '_scratch_' (2006-08-17 at 17:00) sage: 2^3 8rßU;# Worksheet '_scratch_' (2006-08-17 at 17:00) sage: 2/3 2/3ràUX# Worksheet '_scratch_' (2006-08-17 at 17:00) python> print(2^3) python> print(2/3) 1 0ráUJ# Worksheet '_scratch_' (2006-08-17 at 17:00) sage: factor(2007) 3^2 * 223râU¢# Worksheet '_scratch_' (2006-08-17 at 17:00) sage: M = MatrixSpace(QQ,3)([1,2,3,1/3,17,-2/3,1,5,-5]) sage: M [ 1 2 3] [ 1/3 17 -2/3] [ 1 5 -5]rãU|# Worksheet '_scratch_' (2006-08-17 at 17:00) sage: M.parent() Full MatrixSpace of 3 by 3 dense matrices over Rational FieldräU¿# Worksheet '_scratch_' (2006-08-17 at 17:00) sage: view(M) \left(\begin{array}{rrr} 1&2&3\\ \frac{1}{3}&17&-\frac{2}{3}\\ 1&5&-5 \end{array}\right)råU^# Worksheet '_scratch_' (2006-08-17 at 17:00) sage: M.echelon_form() [1 0 0] [0 1 0] [0 0 1]ræUL# Worksheet '_scratch_' (2006-08-17 at 17:00) sage: G = AlternatingGroup(5) rçU# Worksheet '_scratch_' (2006-08-17 at 17:00) sage: G.conjugacy_classes_representatives() [(), (1,2)(3,4), (1,2,3), (1,2,3,4,5), (1,2,3,5,4)]rèU¥# Worksheet '_scratch_' (2006-08-17 at 17:00) time> f = x^389 + 17/3*x + 2 time> g = x^397 - 18*x + 15 time> h = f*g^10 + f^10*g CPU time: 0.01 s, Wall time: 0.01 sréTL# Worksheet '_scratch_' (2006-08-17 at 17:00) sage: h[:50] [1153300796610, -10571923411357, 35521669089060, -82207173890380/3, -1578378351911680/9, 6297739398214880/9, -107392893078774688/81, 377409713492725760/243, -287199547816076060/243, 3757883697935134460/6561, -3178137624289098691/19683, 132742369030852798/6561, 0, 0, 0, ...rêU~# Worksheet '_scratch_' (2006-08-17 at 17:00) sage: view(f) x^{389} + \frac{17}{3}x + 2rëT # Worksheet '_scratch_' (2006-08-17 at 17:00) hide%html>

You can embed HTML

hide%html> It can even include math: \prod(1-q^n)

You can embed HTML

It can even include math: \prod(1-q^n)rìU«# Worksheet '_scratch_' (2006-08-17 at 17:00) latex> Cells can be written in latex, which can refer to SAGE objects. latex> For example, consider $E$ given by $\sage{E}$. ríUo# Worksheet '_scratch_' (2006-08-17 at 17:00) sage: time n=factorial(10^6) CPU time: 3.25 s, Wall time: 3.28 srîU«# Worksheet '_scratch_' (2006-08-17 at 17:00) sage: f = maxima('x*sin(x)*cos(x)^2') sage: print f, type(f) x*cos(x)^2*sin(x) rïUv# Worksheet '_scratch_' (2006-08-17 at 17:00) sage: f.integrate() (sin(3*x) - 3*x*cos(3*x) + 9*sin(x) - 9*x*cos(x))/36rðUD# Worksheet '_scratch_' (2006-08-17 at 17:00) sage: f.name() 'sage0'rñTé# Worksheet '_scratch_' (2006-08-17 at 17:00) # Many random spheres: sage: t = Tachyon(xres=512,yres=512, camera_center=(2,0.5,0.5), look_at=(0.5,0.5,0.5), raydepth=4) sage: t.light((4,3,2), 0.2, (1,1,1)) sage: t.texture('t0', ambient=0.1, diffuse=0.9, specular=0.5, opacity=1.0, color=(1.0,0,0)) sage: t.texture('t1', ambient=0.1, diffuse=0.9, specular=0.3, opacity=1.0, color=(0,1.0,0)) sage: t.texture('t2', ambient=0.2, diffuse=0.7, specular=0.5, opacity=0.7, color=(0,0,1.0)) sage: k=0 sage: for i in range(100): ... k += 1 ... t.sphere((random(),random(), random()), random()/10, 't%s'%(k%3)) ... sage: t.save() # long (several seconds) ròT‹# Worksheet '_scratch_' (2006-08-17 at 17:00) sage: plot3dsoya(lambda x,y: abs(zeta(x+I*y)),(1,0), side=4, res=32).show() [> ] 0%[----------> ] 17%[--------------------> ] 34%[------------------------------------> ] 60%[--...róU9# Worksheet '_scratch_' (2006-08-17 at 17:23) sage: 2^3 8rôU;# Worksheet '_scratch_' (2006-08-17 at 17:23) sage: 2/3 2/3rõUX# Worksheet '_scratch_' (2006-08-17 at 17:24) python> print(2^3) python> print(2/3) 1 0röUJ# Worksheet '_scratch_' (2006-08-17 at 17:24) sage: factor(2007) 3^2 * 223r÷U¢# Worksheet '_scratch_' (2006-08-17 at 17:25) sage: M = MatrixSpace(QQ,3)([1,2,3,1/3,17,-2/3,1,5,-5]) sage: M [ 1 2 3] [ 1/3 17 -2/3] [ 1 5 -5]røU|# Worksheet '_scratch_' (2006-08-17 at 17:25) sage: M.parent() Full MatrixSpace of 3 by 3 dense matrices over Rational FieldrùU¿# Worksheet '_scratch_' (2006-08-17 at 17:25) sage: view(M) \left(\begin{array}{rrr} 1&2&3\\ \frac{1}{3}&17&-\frac{2}{3}\\ 1&5&-5 \end{array}\right)rúU^# Worksheet '_scratch_' (2006-08-17 at 17:27) sage: M.echelon_form() [1 0 0] [0 1 0] [0 0 1]rûU·# Worksheet '_scratch_' (2006-08-17 at 17:27) sage: view(M.echelon_form()) \left(\begin{array}{rrr} 1&0&0\\ 0&1&0\\ 0&0&1 \end{array}\right)rüUL# Worksheet '_scratch_' (2006-08-17 at 17:27) sage: G = AlternatingGroup(5) rýU# Worksheet '_scratch_' (2006-08-17 at 17:27) sage: G.conjugacy_classes_representatives() [(), (1,2)(3,4), (1,2,3), (1,2,3,4,5), (1,2,3,5,4)]rþU¥# Worksheet '_scratch_' (2006-08-17 at 17:28) time> f = x^389 + 17/3*x + 2 time> g = x^397 - 18*x + 15 time> h = f*g^10 + f^10*g CPU time: 0.02 s, Wall time: 0.02 srÿTL# Worksheet '_scratch_' (2006-08-17 at 17:28) sage: h[:50] [1153300796610, -10571923411357, 35521669089060, -82207173890380/3, -1578378351911680/9, 6297739398214880/9, -107392893078774688/81, 377409713492725760/243, -287199547816076060/243, 3757883697935134460/6561, -3178137624289098691/19683, 132742369030852798/6561, 0, 0, 0, ...rU~# Worksheet '_scratch_' (2006-08-17 at 17:28) sage: view(f) x^{389} + \frac{17}{3}x + 2rT # Worksheet '_scratch_' (2006-08-17 at 17:28) hide%html>

You can embed HTML

hide%html> It can even include math: \prod(1-q^n)

You can embed HTML

It can even include math: \prod(1-q^n)rU«# Worksheet '_scratch_' (2006-08-17 at 17:29) latex> Cells can be written in latex, which can refer to SAGE objects. latex> For example, consider $E$ given by $\sage{E}$. rUo# Worksheet '_scratch_' (2006-08-17 at 17:31) sage: time n=factorial(10^6) CPU time: 3.31 s, Wall time: 3.34 srU«# Worksheet '_scratch_' (2006-08-17 at 17:31) sage: f = maxima('x*sin(x)*cos(x)^2') sage: print f, type(f) x*cos(x)^2*sin(x) rUv# Worksheet '_scratch_' (2006-08-17 at 17:32) sage: f.integrate() (sin(3*x) - 3*x*cos(3*x) + 9*sin(x) - 9*x*cos(x))/36rTé# Worksheet '_scratch_' (2006-08-17 at 17:32) # Many random spheres: sage: t = Tachyon(xres=512,yres=512, camera_center=(2,0.5,0.5), look_at=(0.5,0.5,0.5), raydepth=4) sage: t.light((4,3,2), 0.2, (1,1,1)) sage: t.texture('t0', ambient=0.1, diffuse=0.9, specular=0.5, opacity=1.0, color=(1.0,0,0)) sage: t.texture('t1', ambient=0.1, diffuse=0.9, specular=0.3, opacity=1.0, color=(0,1.0,0)) sage: t.texture('t2', ambient=0.2, diffuse=0.7, specular=0.5, opacity=0.7, color=(0,0,1.0)) sage: k=0 sage: for i in range(100): ... k += 1 ... t.sphere((random(),random(), random()), random()/10, 't%s'%(k%3)) ... sage: t.save() # long (several seconds) reU_Notebook__defaultsr}r (Ucell_output_colorr U#0000EEr Umax_history_lengthr MôUcell_input_colorr U#0000000rUword_wrap_colsrKduU_Notebook__worksheet_dirrUsage_notebook/worksheetsrU_Notebook__filenamerUsage_notebook/nb.sobjrU_Notebook__default_worksheetrhU_Notebook__next_worksheet_idrKU_default_filenamerU6/home/was/talks/2006-08-17-scipy/sage_notebook/nb.sobjrU_Notebook__systemrNU_Notebook__show_debugr‰U_Notebook__dirrU sage_notebookrU_Notebook__authrU:U_Notebook__colorrNU_Notebook__object_dirrUsage_notebook/objectsrub.