csage.server.notebook.notebook Notebook q)q}q(U_Notebook__worksheetsq}q(U cnta - galoisq(csage.server.notebook.worksheet Worksheet qoq}q (U_Worksheet__filenameq U cnta___galoisq U_Worksheet__cellsq ]q ((csage.server.notebook.cell Cell qoq}q(U _Cell__inqUMV = NumberField(x^2+17).composite_fields(NumberField(x^3-2)) print V K = V[0]qU_Cell__introspect_htmlqU!
qU_Cell__worksheetqhU_Cell__completionsqU_Cell__introspectqU_Cell__out_htmlqUU	_Cell__idqMU_before_preparseqUos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___galois/cells/0")
V = NumberField(x^2+17).composite_fields(NumberField(x^3-2))
print V
K = V[0]qU
_Cell__dirqU.sage_notebook/worksheets/cnta___galois/cells/0qU
_Cell__outqUZ[Number Field in a with defining polynomial x^6 + 51*x^4 - 4*x^3 + 867*x^2 + 204*x + 4917]qUhas_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*(hUG = K.galois_group()q+hU!
q,hhhhhUhMU_word_being_completedq-UK.galois_grq.hUoos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___galois/cells/1")
G = K.galois_group()q/hU.sage_notebook/worksheets/cnta___galois/cells/1q0hUh h!h"h$h%h&h'h(ub(hoq1}q2(hUGhU!
q3hhhhhUhMhU\os.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___galois/cells/2")
Gq4hU.sage_notebook/worksheets/cnta___galois/cells/2q5hU%Transitive group number 3 of degree 6q6h h!h"h$h%h&h'h(ub(hoq7}q8(hU	G.order()q9hU!
q:hhhhhUhMhUdos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___galois/cells/7")
G.order()q;hU.sage_notebook/worksheets/cnta___galois/cells/7q}q?(hU%G.conjugacy_classes_representatives()q@hU!
qAhhhhhUhMh-UG.conjqBhUos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___galois/cells/3")
G.conjugacy_classes_representatives()qChU.sage_notebook/worksheets/cnta___galois/cells/3qDhUQ[(), (2,6)(3,5), (1,2)(3,6)(4,5), (1,2,3,4,5,6), (1,3,5)(2,4,6), (1,4)(2,5)(3,6)]qEh h!h"h$h%h&h'h(ub(hoqF}qG(hUgg = gap(G)qHhU!
qIhhhhhUhMhUfos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___galois/cells/4")
gg = gap(G)qJhU.sage_notebook/worksheets/cnta___galois/cells/4qKhUh h!h"h$h%h&h'h(ub(hoqL}qM(hUgg.NormalSubgroups()qNhU!
qOhhhhhUhMh-Ugg.NormalSubqPhUoos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___galois/cells/5")
gg.NormalSubgroups()qQhU.sage_notebook/worksheets/cnta___galois/cells/5qRhU[ Group(()), Group([ (1,4)(2,5)(3,6) ]), Group([ (1,3,5)(2,4,6) ]), 
  Group([ (1,3,5)(2,4,6), (1,2)(3,6)(4,5) ]), 
  Group([ (1,3,5)(2,4,6), (2,6)(3,5) ]), 
  Group([ (1,2,3,4,5,6), (1,3,5)(2,4,6) ]), D(6) = S(3)[x]2 ]qSh h!h"h$h%h&h'h(ub(hoqT}qU(hUK.class_group()qVhU!
qWhhhhhUhMh-U
K.class_grqXhUjos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___galois/cells/6")
K.class_group()qYhU.sage_notebook/worksheets/cnta___galois/cells/6qZhU-Multiplicative Abelian Group isomorphic to C4q[h h!h"h$h%h&h'h(ub(hoq\}q](hUU_Cell__introspect_htmlq^U!
q_hhhU_Cell__introspectq`hUhM	U_before_preparseqaU[os.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___galois/cells/9")
qbhU.sage_notebook/worksheets/cnta___galois/cells/9qchUh U_Cell__is_htmlqdU_Cell__sageqeh$h%h&U_Cell__timeqfh(ub(hoqg}qh(U	_Cell__inqiUU_Cell__worksheetqjhU_Cell__completionsqkU_Cell__out_htmlqlUU	_Cell__idqmM
U
_Cell__dirqnU/sage_notebook/worksheets/cnta___galois/cells/10qoU
_Cell__outqpUUhas_new_outputqqU_Cell__typeqrh&U_Cell__interruptedqsubeU_Worksheet__synchroqtKDU_Worksheet__namequU
cnta - galoisqvU_Worksheet__dirqwU&sage_notebook/worksheets/cnta___galoisqxU_Worksheet__attachedqy}qzU/home/was/.sage/init.sageq{J7DsU_Worksheet__queueq|]q}U_Worksheet__next_idq~MU_Worksheet__comp_is_runningqU_Worksheet__notebookqhU_Worksheet__systemqNU_Worksheet__next_block_idqK	U_Worksheet__idqK
ubUcnta - ec - bsdq(hoq}q(U_Worksheet__filenameqUcnta___ec___bsdqU_Worksheet__cellsq]q((hoq}q(U	_Cell__inqUE = EllipticCurve('681b')
EqU_Cell__introspect_htmlqU!
qU_Cell__worksheetqhU_Cell__completionsqU_Cell__introspectqU_Cell__out_htmlqUU	_Cell__idqMU_before_preparseqUxos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___ec___bsd/cells/0")
E = EllipticCurve('681b')
EqU
_Cell__dirqU0sage_notebook/worksheets/cnta___ec___bsd/cells/0qU
_Cell__outqUUElliptic Curve defined by y^2 + x*y  = x^3 + x^2 - 1154*x - 15345 over Rational FieldqUhas_new_outputqU_Cell__is_htmlqU_Cell__sageqh$U_Cell__typeqUwrapqU_Cell__timeqU_Cell__interruptedqub(hoq}q(U	_Cell__inqUprint E.mwrank()qU_Cell__introspect_htmlqU!
qU_Cell__worksheetqhU_Cell__completionsqU_Cell__introspectqU_Cell__out_htmlqUU	_Cell__idqMU_before_preparseqUnos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___ec___bsd/cells/24")
print E.mwrank()qU
_Cell__dirqU1sage_notebook/worksheets/cnta___ec___bsd/cells/24qU
_Cell__outqTCurve [1,1,0,-1154,-15345] :	
3 points of order 2:
[-18:9:1], [-22:11:1], [310:-155:8]

****************************
* Using 2-isogeny number 1 *
****************************

Using 2-isogenous curve [0,422,0,59049,0]
-------------------------------------------------------
First step, determining 1st descent Selmer groups
-------------------------------------------------------
After first local descent, rank bound = 0
rk(S^{phi}(E'))=	2
rk(S^{phi'}(E))=	0

-------------------------------------------------------
Second step, determining 2nd descent Selmer groups
-------------------------------------------------------
...skipping since we already know rank=0
After second local descent, rank bound = 0
rk(phi'(S^{2}(E)))=	2
rk(phi(S^{2}(E')))=	0
rk(S^{2}(E))=	2
rk(S^{2}(E'))=	1

Third step, determining E(Q)/phi(E'(Q)) and E'(Q)/phi'(E(Q))
-------------------------------------------------------
1. E(Q)/phi(E'(Q))
-------------------------------------------------------
(c,d)  =(-211,-3632)
(c',d')=(422,59049)
This component of the rank is 0
-------------------------------------------------------
2. E'(Q)/phi'(E(Q))
-------------------------------------------------------
This component of the rank is 0

-------------------------------------------------------
Summary of results:
-------------------------------------------------------
	rank(E) = 0
	#E(Q)/2E(Q) = 4

Information on III(E/Q):
	#III(E/Q)[phi']    = 1
	#III(E/Q)[2]       = 1

Information on III(E'/Q):
	#phi'(III(E/Q)[2]) = 1
	#III(E'/Q)[phi]    = 1
	#III(E'/Q)[2]      = 1

Rank = 0

Regulator (before saturation) = 1
Searching for points (bound = 10)...done
Regulator (after searching) = 1
Saturating (bound = 100)...finished saturation (index was 0)
Regulator (after saturation) = 1


Regulator = 1

The rank and full Mordell-Weil basis have been determined unconditionally.
 (0.288 seconds)qUhas_new_outputqU_Cell__is_htmlqU_Cell__sageqh$U_Cell__typeqUwrapqU_Cell__timeqU_Cell__interruptedqub(hoq}q(hUE.analytic_rank()qhU!
qhhhhhUhMhUnos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___ec___bsd/cells/1")
E.analytic_rank()qhU0sage_notebook/worksheets/cnta___ec___bsd/cells/1qhU0hhhh$hUwrapqhhub(hoq}q(hU
E.sha_an()qhU!
qhhhhhUhMhUgos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___ec___bsd/cells/2")
E.sha_an()qhU0sage_notebook/worksheets/cnta___ec___bsd/cells/2qhU9hhhh$hUwrapqhhub(hoq}q(U	_Cell__inqUE.Lseries(1)qU_Cell__introspect_htmlqU!
qU_Cell__worksheetqhU_Cell__completionsqЉU_Cell__introspectqщU_Cell__out_htmlqUU	_Cell__idqMU_before_preparseqUjos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___ec___bsd/cells/14")
E.Lseries(1)qU
_Cell__dirqU1sage_notebook/worksheets/cnta___ec___bsd/cells/14qU
_Cell__outqU1.8448152061268208qUhas_new_outputqډU_Cell__is_htmlqۉU_Cell__sageqh$U_Cell__typeqUwrapqU_Cell__timeq߉U_Cell__interruptedqub(hoq}q(hU	E.omega()qhU!
qhhhЉhщhUhMU_word_being_completedqUE.omegqhUgos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___ec___bsd/cells/15")
E.omega()qhU1sage_notebook/worksheets/cnta___ec___bsd/cells/15qhU0.81991786938969809641267899116qhډhۉhh$hUwrapqh߉hub(hoq}q(hUE.tamagawa_number(3)qhU!
qhhhЉhщhUhMhU
E.tamagawa_nuqhUros.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___ec___bsd/cells/16")
E.tamagawa_number(3)qhU1sage_notebook/worksheets/cnta___ec___bsd/cells/16qhU2hډhۉhh$hhh߉hub(hoq}q(hUE.non_surjective()qhU!
qhhhhhUhMhUoos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___ec___bsd/cells/3")
E.non_surjective()qhU0sage_notebook/worksheets/cnta___ec___bsd/cells/3qhU[(2, '2-torsion')]qhhhh$hUwrapqhhub(hoq}q(hU E.heegner_discriminants_list(10)qhU!
qhhhhhUhMhU}os.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___ec___bsd/cells/4")
E.heegner_discriminants_list(10)qhU0sage_notebook/worksheets/cnta___ec___bsd/cells/4qhU4[-8, -20, -35, -56, -68, -83, -95, -107, -119, -143]rhhhh$hUwraprhhub(hor}r(hUn = E.heegner_index(-20); nrhU!
rhhhhhUhMhUxos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___ec___bsd/cells/5")
n = E.heegner_index(-20); nrhU0sage_notebook/worksheets/cnta___ec___bsd/cells/5rhU[8.99999215656, 9.00000831615]rhhhh$hUwrapr	hhub(hor
}r(hUE.shabound_kato()rhU!
r
hhhЉhщhUhMhUE.sharhUoos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___ec___bsd/cells/19")
E.shabound_kato()rhU1sage_notebook/worksheets/cnta___ec___bsd/cells/19rhU[2, 3]rhډhۉhh$hUwraprh߉hub(hor}r(hUE.shabound_kolyvagin()rhU!
rhhhЉhщhUhMhUE.shabound_kolyrhUtos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___ec___bsd/cells/20")
E.shabound_kolyvagin()rhU1sage_notebook/worksheets/cnta___ec___bsd/cells/20rhU([2, 3], 9)rhډhۉhh$hUwraprh߉hub(hor}r(hUF = EllipticCurve('681c')rhU!
rhhhhhUhMhUvos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___ec___bsd/cells/6")
F = EllipticCurve('681c')r hU0sage_notebook/worksheets/cnta___ec___bsd/cells/6r!hUhhhh$hhhhub(hor"}r#(hU\Eap = E.aplist(100)
Fap = F.aplist(100)
[(Eap[n][1] - Fap[n][1])%3 for n in range(len(Eap))]r$hU!
r%hhhЉhщhUhMhUos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___ec___bsd/cells/8")
Eap = E.aplist(100)
Fap = F.aplist(100)
[(Eap[n][1] - Fap[n][1])%3 for n in range(len(Eap))]r&hU0sage_notebook/worksheets/cnta___ec___bsd/cells/8r'hUK[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]r(hډhۉhh$hhh߉hub(hor)}r*(hU(E.isogeny_class()   # written by Cremonar+hU!
r,hhhЉhщhUhMhUE.isogenr-hUos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___ec___bsd/cells/11")
E.isogeny_class()   # written by Cremonar.hU1sage_notebook/worksheets/cnta___ec___bsd/cells/11r/hT([Elliptic Curve defined by y^2 + x*y  = x^3 + x^2 - 1154*x - 15345 over Rational Field, Elliptic Curve defined by y^2 + x*y  = x^3 + x^2 - 19*x - 42812 over Rational Field, Elliptic Curve defined by y^2 + x*y  = x^3 + x^2 - 2369*x + 20862 over Rational Field, Elliptic Curve defined by y^2 + x*y  = x^3 + x^2 - 1149*x - 15480 over Rational Field], [0 2 2 2]
[2 0 0 0]
[2 0 0 0]
[2 0 0 0])r0hډhۉhh$hUwrapr1h߉hub(hor2}r3(hUf = E.modular_form()
fr4hU!
r5hhhЉhщhUhM
hUE.modular_for6hUtos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___ec___bsd/cells/13")
f = E.modular_form()
fr7hU1sage_notebook/worksheets/cnta___ec___bsd/cells/13r8hU$q + q^2 - q^3 - q^4 + 2*q^5 + O(q^6)r9hډhۉhh$hhh߉hub(hor:}r;(hU
f.parent()r<hU!
r=hhhЉhщhUhMhUhos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___ec___bsd/cells/17")
f.parent()r>hU1sage_notebook/worksheets/cnta___ec___bsd/cells/17r?hUgModular Forms space of dimension 78 for Congruence Subgroup Gamma0(681) of weight 2 over Rational Fieldr@hډhۉhh$hhh߉hub(horA}rB(hUE = EllipticCurve('389a')rChU!
rDhhhЉhhUhMU_word_being_completedrEUE.padrFhUwos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___ec___bsd/cells/18")
E = EllipticCurve('389a')rGhU1sage_notebook/worksheets/cnta___ec___bsd/cells/18rHhUhډhhh$hhhhub(horI}rJ(hUUE.padic_regulator(5)      # makes a call to MAGMA for part of the algorithm (for now)rKhU!
rLhhhhhUhMjEUF.padic_regrMhUos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___ec___bsd/cells/21")
E.padic_regulator(5)      # makes a call to MAGMA for part of the algorithm (for now)rNhU1sage_notebook/worksheets/cnta___ec___bsd/cells/21rOhU1 + 2*5 + 2*5^2 + 4*5^3 + 3*5^4 + 4*5^5 + 3*5^6 + 5^7 + 2*5^10 + 4*5^11 + 5^12 + 4*5^13 + 4*5^14 + 5^15 + 5^17 + 4*5^18 + O(5^20)rPhhhh$hUwraprQhhub(horR}rS(hUh^U!
rThhhh`hUhMhaU^os.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___ec___bsd/cells/23")
rUhU1sage_notebook/worksheets/cnta___ec___bsd/cells/23rVhUhhdheh$hh&hfhub(horW}rX(hiUhjhhkhlUhmMhnU1sage_notebook/worksheets/cnta___ec___bsd/cells/25rYhpUhqhrh&hsubeU_Worksheet__synchrorZKyU_Worksheet__comp_is_runningr[U_Worksheet__attachedr\}r]U/home/was/.sage/init.sager^J7DsU_Worksheet__dirr_U(sage_notebook/worksheets/cnta___ec___bsdr`U_Worksheet__queuera]rbU_Worksheet__next_idrcMU_Worksheet__namerdUcnta - ec - bsdreU_Worksheet__notebookrfhU_Worksheet__idrgKU_Worksheet__next_block_idrhKU_Worksheet__systemriNubUcnta - ec - plotrj(hork}rl(U_Worksheet__filenamermUcnta___ec___plotrnU_Worksheet__cellsro]rp((horq}rr(hUrthjkhЉhщhUhMhUos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___ec___plot/cells/0")
E = EllipticCurve('37a')
P = plot(E, thickness=3, hue=0.1)
PruhU1sage_notebook/worksheets/cnta___ec___plot/cells/0rvhU3Graphics object consisting of 2 graphics primitivesrwhډhۉhh$hh&h߉hub(horx}ry(hUP.show()rzhU!
r{hjkhЉhщhUIr|hMhUfos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___ec___plot/cells/1")
P.show()r}hU1sage_notebook/worksheets/cnta___ec___plot/cells/1r~hUhډhۉhh$hh&h߉hub(hor}r(hTP = []
k = int(4)
v = [(E.cremona_label(), E) for E in cremona_optimal_curves(range(1,25))]
v.sort()
for lbl, E in v:
    P.append(text(lbl[:-1],(0,0)) + \
     plot(E,xmin=-1, xmax=3, plot_points=80,thickness=5,rgbcolor=hue(random())))
    print lbl,
Q = [[P[k*i+j] for j in range(k)] for i in range(len(P)/k)]
Q.append(P[k*i+j+1:] + [Graphics()]*(k - len(P[k*i+j+1:])))
show(graphics_array(Q), axes=False,figsize=[4,4])rhU!
rhjkhЉhщhUIrhMhTos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___ec___plot/cells/2")
P = []
k = int(4)
v = [(E.cremona_label(), E) for E in cremona_optimal_curves(range(1,25))]
v.sort()
for lbl, E in v:
    P.append(text(lbl[:-1],(0,0)) +      plot(E,xmin=-1, xmax=3, plot_points=80,thickness=5,rgbcolor=hue(random())))
    print lbl,
Q = [[P[k*i+j] for j in range(k)] for i in range(len(P)/k)]
Q.append(P[k*i+j+1:] + [Graphics()]*(k - len(P[k*i+j+1:])))
show(graphics_array(Q), axes=False,figsize=[4,4])rhU1sage_notebook/worksheets/cnta___ec___plot/cells/2rhU'11a1 14a1 15a1 17a1 19a1 20a1 21a1 24a1rhډhۉhh$hh&h߉hub(hor}r(hUE = EllipticCurve('389a')
def f(p):
   return plot(E.change_ring(GF(p)),pointsize=40,hue=0.9) 
F = [[f(5), f(7)], [f(11),f(997)]]
show(graphics_array(F))rhU!
rhjkhЉhщhUIrhMhUos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___ec___plot/cells/3")
E = EllipticCurve('389a')
def f(p):
   return plot(E.change_ring(GF(p)),pointsize=40,hue=0.9) 
F = [[f(5), f(7)], [f(11),f(997)]]
show(graphics_array(F))rhU1sage_notebook/worksheets/cnta___ec___plot/cells/3rhUhډhۉhh$hUwraprh߉hub(hor}r(hT[def sato_tate(E, N):
    return [acos(E.ap(p)/(2*sqrt(p))) for p in prime_range(N+1) if N%p != 0]

def dist(E, N, digits=1):
    t = verbose('computing st values...')
    v = sato_tate(E, N)
    t = verbose('finished computing st values:',t)
    w = [round(x, digits) for x in v]
    w.sort()
    vals = {}
    for a in w:
        if a in vals.keys():
            vals[a] += 1
        else:
            vals[a] = 1
    g = vals.items()
    g.sort()
    verbose('finished post processing:',t)
    return g

def graph(label, num=5000):
    d = dist(EllipticCurve(label),num,2)
    m = max(y for _, y in d)
    #m = 2.0 * pi * prime_pi(num)/num
    s = Graphics()
    for x, y in d:
        s += line([(x,0),(x,y)], hue=0.05, thickness=4)
    s += plot(lambda x: m*sin(x)^2, 0,pi, plot_points=200, 
              rgbcolor=(0.3,0.1,0.1), thickness=2)
    return srhU!
rhjkhЉhщhUhMhTos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___ec___plot/cells/4")
def sato_tate(E, N):
    return [acos(E.ap(p)/(2*sqrt(p))) for p in prime_range(N+1) if N%p != 0]

def dist(E, N, digits=1):
    t = verbose('computing st values...')
    v = sato_tate(E, N)
    t = verbose('finished computing st values:',t)
    w = [round(x, digits) for x in v]
    w.sort()
    vals = {}
    for a in w:
        if a in vals.keys():
            vals[a] += 1
        else:
            vals[a] = 1
    g = vals.items()
    g.sort()
    verbose('finished post processing:',t)
    return g

def graph(label, num=5000):
    d = dist(EllipticCurve(label),num,2)
    m = max(y for _, y in d)
    #m = 2.0 * pi * prime_pi(num)/num
    s = Graphics()
    for x, y in d:
        s += line([(x,0),(x,y)], hue=0.05, thickness=4)
    s += plot(lambda x: m*sin(x)^2, 0,pi, plot_points=200, 
              rgbcolor=(0.3,0.1,0.1), thickness=2)
    return srhU1sage_notebook/worksheets/cnta___ec___plot/cells/4rhUhډhۉhh$hh&h߉hub(hor}r(hUUshow(graphics_array([[graph('37a'), graph('389a')],[ graph('5077a'), graph('32a')]]))rhU!
rhjkhЉhщhUJrhMhUos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___ec___plot/cells/5")
show(graphics_array([[graph('37a'), graph('389a')],[ graph('5077a'), graph('32a')]]))rhU1sage_notebook/worksheets/cnta___ec___plot/cells/5rhUhډhۉhh$hUwraprh߉hub(hor}r(hU|show(graphics_array([[graph('37a',100), graph('37a',1000)],
                     [ graph('37a',5000), graph('37a',20000)]]))rhU!
rhjkhЉhщhUJrhMhUos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___ec___plot/cells/7")
show(graphics_array([[graph('37a',100), graph('37a',1000)],
                     [ graph('37a',5000), graph('37a',20000)]]))rhU1sage_notebook/worksheets/cnta___ec___plot/cells/7rhUhډhۉhh$hUwraprh߉hub(hor}r(U	_Cell__inrU!show(plot(EllipticCurve([-1,0])))rU_Cell__introspect_htmlrU!
rU_Cell__worksheetrjkU_Cell__completionsrU_Cell__introspectrU_Cell__out_htmlrUJrU	_Cell__idrM
U_before_preparserUos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___ec___plot/cells/10")
show(plot(EllipticCurve([-1,0])))rU
_Cell__dirrU2sage_notebook/worksheets/cnta___ec___plot/cells/10rU
_Cell__outrUUhas_new_outputrU_Cell__is_htmlrU_Cell__sagerh$U_Cell__typerUwraprU_Cell__timerU_Cell__interruptedrub(hor}r(hUtdef f(x,y):
    z = x+I*y
    return (sqrt(z^3-z)).imag()

P = plot3dsoya(f, (0,0), 3.0, res=32)
P.show(step=0.04)

rh^U!
rhjkhЉh`hUhMU_word_being_completedrUP.shrhaUos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___ec___plot/cells/8")
def f(x,y):
    z = x+I*y
    return (sqrt(z^3-z)).imag()

P = plot3dsoya(f, (0,0), 3.0, res=32)
P.show(step=0.04)rhU1sage_notebook/worksheets/cnta___ec___plot/cells/8rhTL[>                                                            ] 0%[-------->                                                    ] 14%[---------------->                                            ] 27%[-------------------------------->                            ] 53%[------------------------------------------------->           ] 82%[------------------------------------------------------------>] 100%
* Soya * Using 8 bits stencil buffer

* Soya * version 0.11.2
* Using OpenGL 2.0.5755 (8.24.8)
*   - renderer :  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            : 2048 pixels

* Soya Pudding * Version: 0.1-0
* Soya * Using 16 bits stencil buffer
* Soya3D * Quit...rhډhdheh$hUwraprhfhub(hor}r(hiUdef f(x,y):
    z = x+I*y
    return (sqrt(z^3-z)).real()

P = plot3dsoya(f, (0,0), 3.0, res=32)
P.show(step=0.04,pointer=True)
rjU!
rhjjkhkjhlUhmM	jUos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___ec___plot/cells/9")
def f(x,y):
    z = x+I*y
    return (sqrt(z^3-z)).real()

P = plot3dsoya(f, (0,0), 3.0, res=32)
P.show(step=0.04,pointer=True)rhnU1sage_notebook/worksheets/cnta___ec___plot/cells/9rhpT	[>                                                            ] 0%[---------->                                                  ] 17%[--------------------->                                       ] 36%[------------------------------------------>                  ] 70%[------------------------------------------------------------>] 100%
* Soya * Using 8 bits stencil buffer

* Soya * version 0.11.2
* Using OpenGL 2.0.5755 (8.24.8)
*   - renderer :  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            : 2048 pixels

* Soya Pudding * Version: 0.1-0
* Soya * Using 16 bits stencil buffer
* Soya3D * Quit...rhqjjh$hrUwraprjhsub(hor}r(jUjjkjjUjMjU2sage_notebook/worksheets/cnta___ec___plot/cells/11rjUjjhjubeU_Worksheet__synchrorKQU_Worksheet__namerUcnta - ec - plotrU_Worksheet__dirrU)sage_notebook/worksheets/cnta___ec___plotrU_Worksheet__attachedr}rU/home/was/.sage/init.sagerJ7DsU_Worksheet__queuer]rU_Worksheet__next_idrMU_Worksheet__comp_is_runningrU_Worksheet__notebookrhU_Worksheet__idrK	U_Worksheet__next_block_idrKU_Worksheet__systemrNubUcnta - db - cremonar(hor}r(U_Worksheet__filenamerUcnta___db___cremonarU_Worksheet__cellsr]r((hor}r(U	_Cell__inrU"C = CremonaDatabase()
C.allcurves?rU_Cell__introspect_htmlrT
C.allcurves
File:        /home/was/s/local/lib/python2.4/site-packages/sage/databases/cremona.py
Type:        <type 'instancemethod'>
Definition:  C.allcurves(N)
Docstring:

        Returns the allcurves table of curves of conductor N. 

        INPUT:
            N -- int, the conductor
        OUTPUT:
            dict -- {id:[ainvs, rank, tor], ...}
rU_Cell__worksheetrjU_Cell__completionsrU_Cell__introspectr]r(jUeU_Cell__out_htmlrUU _Cell__idrM@jUC.rU_before_preparserUos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___db___cremona/cells/0") C = CremonaDatabase() C.allcurves?rU _Cell__dirrU4sage_notebook/worksheets/cnta___db___cremona/cells/0rU _Cell__outrU%Cremona's database of elliptic curvesrUhas_new_outputrU_Cell__is_htmlrU _Cell__sagerh$U _Cell__typerhU _Cell__timerU_Cell__interruptedrub(hor}r(jUC.number_of_curves()rjU!
rjjjjjUjM@jUuos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___db___cremona/cells/1")
C.number_of_curves()rjU4sage_notebook/worksheets/cnta___db___cremona/cells/1rjU782493rjjjh$jUwrapr	jjub(hor
}r(jUC.number_of_isogeny_classes()rjU!
r
jjjjjUjM@jUC.number_of_isrjUos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___db___cremona/cells/11")
C.number_of_isogeny_classes()rjU5sage_notebook/worksheets/cnta___db___cremona/cells/11rjU524169rjjjh$jUwraprjjub(hor}r(jUC.largest_conductor()rjU!
rjjjjjUjM@jUvos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___db___cremona/cells/2")
C.largest_conductor()rjU4sage_notebook/worksheets/cnta___db___cremona/cells/2rjU120000rjjjh$jhjjub(hor}r(jUC[11]rjU!
rjjjjjUjM@jUfos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___db___cremona/cells/3")
C[11]rjU4sage_notebook/worksheets/cnta___db___cremona/cells/3rjT{'a': {'a1': [[0, -1, 1, -10, -20], 0, 5], 'a3': [[0, -1, 1, 0, 0], 0, 5], 'a2': [[0, -1, 1, -7820, -263580], 0, 1]}, 'c': {'a1': ['5', '1.2692093042795534217', '0.25384186085591068434', '1', '1.00000000000000000000'], 'a3': ['1', '6.3460465213977671084', '0.25384186085591068434', '1', '1'], 'a2': ['1', '0.25384186085591068434', '0.25384186085591068434', '1', '1.00000000000000000000']}, 'b': {'a1': 1}, 'd': {}}r jjjh$jUwrapr!jjub(hor"}r#(jU#list(cremona_curves([11, 37, 389]))r$jU!
r%jjjjjUjM@jUos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___db___cremona/cells/4")
list(cremona_curves([11, 37, 389]))r&jU4sage_notebook/worksheets/cnta___db___cremona/cells/4r'jT`[Elliptic Curve defined by y^2 + y = x^3 - x^2 - 10*x - 20 over Rational Field, Elliptic Curve defined by y^2 + y = x^3 - x^2 - 7820*x - 263580 over Rational Field, Elliptic Curve defined by y^2 + y = x^3 - x^2 over Rational Field, Elliptic Curve defined by y^2 + y = x^3 - x over Rational Field, Elliptic Curve defined by y^2 + y = x^3 + x^2 - 23*x - 50 over Rational Field, Elliptic Curve defined by y^2 + y = x^3 + x^2 - 1873*x - 31833 over Rational Field, Elliptic Curve defined by y^2 + y = x^3 + x^2 - 3*x +1 over Rational Field, Elliptic Curve defined by y^2 + y = x^3 + x^2 - 2*x over Rational Field]r(jjjh$jUwrapr)jjub(hor*}r+(jU0E = EllipticCurve([1,2,3,4,5])
E.cremona_label()r,hU!
r-jjjhjUjM@hUos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___db___cremona/cells/5")
E = EllipticCurve([1,2,3,4,5])
E.cremona_label()r.jU4sage_notebook/worksheets/cnta___db___cremona/cells/5r/jU	'10351a1'r0jhhh$jUwrapr1hjub(hor2}r3(hU0E = EllipticCurve([0,2,0,0,6])
E.cremona_label()r4hU!
r5hjhhhUhM@hUos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___db___cremona/cells/6")
E = EllipticCurve([0,2,0,0,6])
E.cremona_label()r6hU4sage_notebook/worksheets/cnta___db___cremona/cells/6r7hU
'18624bj1'r8hhhh$hUwrapr9hhub(hor:}r;(hUhU!
r<hjhhhUhM@hUaos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___db___cremona/cells/8")
r=hU4sage_notebook/worksheets/cnta___db___cremona/cells/8r>hUhhhh$hUhiddenr?hhub(hor@}rA(hiUhjjhkhlUhmM
@hnU5sage_notebook/worksheets/cnta___db___cremona/cells/10rBhpUhqhrj?hsubeU_Worksheet__synchrorCK!U_Worksheet__namerDUcnta - db - cremonarEU_Worksheet__dirrFU,sage_notebook/worksheets/cnta___db___cremonarGU_Worksheet__attachedrH}rIU/home/was/.sage/init.sagerJJ7DsU_Worksheet__queuerK]rLU_Worksheet__next_idrMM@U_Worksheet__comp_is_runningrNU_Worksheet__notebookrOhU_Worksheet__idrPKU_Worksheet__next_block_idrQKU_Worksheet__systemrRNubUcnta - db - sloanerS(horT}rU(hUcnta___db___sloanerVh]rW((horX}rY(hUS = SloaneEncyclopedia
SrZhU!
r[hjThhhUhMpU_word_being_completedr\USlor]hUxos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___db___sloane/cells/0")
S = SloaneEncyclopedia
Sr^hU3sage_notebook/worksheets/cnta___db___sloane/cells/0r_hU/Sloane Online Encyclopedia of Integer Sequencesr`hhhh$hhhhub(hora}rb(hUv = S.find(prime_range(2,100))rchU!
rdhjThhhUhMpj\US.finrehU~os.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___db___sloane/cells/1")
v = S.find(prime_range(2,100))rfhU3sage_notebook/worksheets/cnta___db___sloane/cells/1rghUhhhh$hUwraprhhhub(hori}rj(hUlen(v)rkhU!
rlhjThhhUhMphUfos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___db___sloane/cells/2")
len(v)rmhU3sage_notebook/worksheets/cnta___db___sloane/cells/2rnhU30rohhhh$hhhhub(horp}rq(hUv[0]rrhU!
rshjThhhUhMphUdos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___db___sloane/cells/3")
v[0]rthU3sage_notebook/worksheets/cnta___db___sloane/cells/3ruhT(40, [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, 113, 127, 131, 137, 139, 149, 151, 157, 163, 167, 173, 179, 181, 191, 193, 197, 199, 211, 223, 227, 229, 233, 239, 241, 251, 257, 263, 269, 271])rvhhhh$hhhhub(horw}rx(hUv[1]ryhU!
rzhjThhhUhMphUdos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___db___sloane/cells/4")
v[1]r{hU3sage_notebook/worksheets/cnta___db___sloane/cells/4r|hT(8578, [1, 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, 113, 127, 131, 137, 139, 149, 151, 157, 163, 167, 173, 179, 181, 191, 193, 197, 199, 211, 223, 227, 229, 233, 239, 241, 251, 257, 263, 269, 271])r}hhhh$hhhhub(hor~}r(hUCw = [len(str(numerator(abs(bernoulli(10^n))))) for n in range(5)]
wrhU!
rhjThhhUhMpj\UbernrhUos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___db___sloane/cells/5")
w = [len(str(numerator(abs(bernoulli(10^n))))) for n in range(5)]
wrhU3sage_notebook/worksheets/cnta___db___sloane/cells/5rhU[1, 1, 83, 1779, 27691]rhhhh$hUwraprhhub(hor}r(hU	S.find(w)rhU!
rhjThhhUhMphUios.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___db___sloane/cells/6")
S.find(w)rhU3sage_notebook/worksheets/cnta___db___sloane/cells/6rhU4[(103233, [1, 1, 83, 1779, 27691, 376772, 4767554])]rhhhh$hUwraprhhub(hor}r(hUh^U!
rhjThh`hUhMphaU`os.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___db___sloane/cells/7")
rhU3sage_notebook/worksheets/cnta___db___sloane/cells/7rhUhhdheh$hh&hfhub(hor}r(hiUhjjThkhlUhmMphnU3sage_notebook/worksheets/cnta___db___sloane/cells/8rhpUhqhrh&hsubejZK)j[j\}rU/home/was/.sage/init.sagerJ7Dsj_U+sage_notebook/worksheets/cnta___db___sloanerja]rjcM	pjdUcnta - db - sloanerjfhjgKjhKjiNubUcnta - db - jonesr(hor}r(jUcnta___db___jonesrj]r((hor}r(jUJ = JonesDatabase()
JrjU!
rjjjjjUjMPU_word_being_completedrUJonerjUtos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___db___jones/cells/0")
J = JonesDatabase()
JrjU2sage_notebook/worksheets/cnta___db___jones/cells/0rjUMJohn Jones's table of number fields with bounded ramification and degree <= 6rjjjh$jhjjub(hor}r(jU0for K in J.unramified_outside([11]):
    print KrjU!
rjjjjjUjMPjUJ.unramrjUos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___db___jones/cells/1")
for K in J.unramified_outside([11]):
    print KrjU2sage_notebook/worksheets/cnta___db___jones/cells/1rjUNumber Field in a with defining polynomial x - 1
Number Field in a with defining polynomial x^2 - x + 3
Number Field in a with defining polynomial x^5 - x^4 - 4*x^3 + 3*x^2 + 3*x - 1rjjjh$jUwraprjjub(hor}r(jUV# CAN also get direct access to underlying data, which may be faster. 
D = J.as_dict()rhU!
rjjjhjUjMPj\U	J.as_dictrhUos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___db___jones/cells/2")
# CAN also get direct access to underlying data, which may be faster. 
D = J.as_dict()rjU2sage_notebook/worksheets/cnta___db___jones/cells/2rjUjhhh$jUwraprhjub(hor}r(hU	D[(5,31)]rhU!
rhjhhhUhMPhUhos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___db___jones/cells/3")
D[(5,31)]rhU2sage_notebook/worksheets/cnta___db___jones/cells/3rhU[x^2 + 155, x^4 + 2*x^3 + 4*x^2 + 3*x - 9, x^4 + x^3 + 3*x - 1, x^4 + 2*x^3 + 2*x^2 + x + 8, x^4 + 5*x^2 + 45, x^4 + 13*x^2 + 81, x^4 + x^3 - 39*x^2 - 39*x + 281]rhhhh$hhhhub(hor}r(hiUhjjhkhlUhmMPhnU2sage_notebook/worksheets/cnta___db___jones/cells/6rhpUhqhrh&hsubejCK'jDUcnta - db - jonesrjFU*sage_notebook/worksheets/cnta___db___jonesrjH}rU/home/was/.sage/init.sagerJ7DsjK]rjMMPjNjOhjPKjQKjRNubUcnta - save / loadr(hor}r(U_Worksheet__filenamerUcnta___save___loadrU_Worksheet__cellsr]r((hor}r(hU?R. = PolynomialRing(QQ,2)
f = y^2 + y - x^3 - 17/3*x + 2/3rhU!
rhjhhhUhMhUos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___save___load/cells/0")
R. = PolynomialRing(QQ,2)
f = y^2 + y - x^3 - 17/3*x + 2/3rhU3sage_notebook/worksheets/cnta___save___load/cells/0rhUhhhh$hh&hhub(hor}r(hUsave frhU!
rhjhhhUhMhUfos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___save___load/cells/1")
save frhU3sage_notebook/worksheets/cnta___save___load/cells/1rhUhhhh$hh&hhub(hor}r(hUload frhU!
rhjhhhUhMhUfos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___save___load/cells/2")
load frhU3sage_notebook/worksheets/cnta___save___load/cells/2rhUhhhh$hh&hhub(hor}r(hU	load('f')rhU!
rhjhhhUhMhUios.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___save___load/cells/3")
load('f')rhU3sage_notebook/worksheets/cnta___save___load/cells/3rhU2/3 + y + y^2 - 17/3*x - x^3rhhhh$hh&hhub(hor}r(hU'A = MatrixSpace(QQ,50).random_element()rhU!
rhjhhhUhMhUos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___save___load/cells/4")
A = MatrixSpace(QQ,50).random_element()rhU3sage_notebook/worksheets/cnta___save___load/cells/4rhUhhhh$hh&hhub(hor}r(hUA.save('amat')rhU!
rhjhhhUhMhUnos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___save___load/cells/5")
A.save('amat')rhU3sage_notebook/worksheets/cnta___save___load/cells/5rhUhhhh$hh&hhub(hor}r(hUload('amat')rhU!
rhjhhhUhMhUlos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___save___load/cells/6")
load('amat')rhU3sage_notebook/worksheets/cnta___save___load/cells/6rhT[-1 -2  2  2 -1 -1  1  1 -2 -2  1  2  1 -1  1 -2  2  2 -1 -2  2  1  1  2  2 -1  1 -2  2  2  1  1 -1  1 -1  2 -1  1 -2  2  2 -2  2 -1  2 -2 -2  2 -1  2]
[-1 -2 -2 -2  2 -1  1 -2  2  1  1 -2 -1 -1 -2 -2 -2 -1  2 -1 -2 -2 -2 -2 -1 -2 -2 -1 -2  1  2  2 -2 -1  2  1  2 -1 -1  1 -1  1 -2 -1 -2 -2 -1 -1  1  1]
[-1  1 -2 -1 -2  2 -2  1 -1 -2  1 -1 -1  2 -2 -1  2  1 -2  2 -2 -1  2  2 -1 -2  1 -2 -2  1  1 -1 -2 -2  1  2  2 -1  2  1  1 -2  2 -2  2  1  2 -2  2 -2]
[ 2  2 -2 -2  1  2  1  2 -2 -1 -1 -2  2  2 -1  2  1  1  1  1 -1 -2  2  2  1 -2 -1 -1  1  1 -1  2  2 -1 -1  2  1  1 -2  1  2  2 -2 -1 -1 -1 -2 -1 -2 -2]
[ 1 -2  1  1 -1  2  1  2 -2 -2  2  1 -2  2  2  2  1  2 -2  2  2 -1 -2  1 -1  2 -2  2  2  2  1 -1 -2  1  2  1  2 -1  1 -2 -2 -1  1  2  1 -2  1  2  1 -1]
[-2  1 -1 -2  2 -1 -2 -2 -2 -1 -2 -1  1 -2  1 -1  1 -1 -2 -1 -2  2 -1 -2 -1  1  1 -1  1 -2  1  1  1 -1  1 -2 -2 -2  2  2 -2  2 -2 -1 -2 -1 -1 -2  1 -1]
[-2  1 -1 -1  2 -1 -2  1 -1  1 -2 -2  2  2  1  1 -2  2 -1  2 -2  1 -2 -1 -2 -2  2  1  1  2  2 -2 -2 -1 -1 -1 -1  2 -2  2  1  2 -1  2  2 -1  2 -2  2 -1]
[ 1  1  2  2  1 -2  2 -1  2  2  1  1 -2  1  1 -1 -1  1  2  1  1  1 -2  1 -2  2  2  2  1  1  1  1 -2  2 -2  1  1 -1  2 -2  2  1 -2 -1  1 -1  1 -2  2 -1]
[-2  2  1 -2  1  1 -2  1 -2  1 -1  1 -2  2  2 -1  2 -1 -1 -2 -2  1  1  2  2  2  2  2  1  1  2 -1  1 -1 -2  1 -2  1  1 -1  2 -2 -2 -2  1 -1  1  1 -2 -2]
[-1 -1 -1 -1  2  1  1 -2 -1 -2  2 -2 -2  1  2  1  2 -2 -1 -1 -2  1 -1 -2  1  1  2 -2  2  2 -1 -2  1  2 -2  1  1  1  2  2 -2  1 -2  2  2  2  1  2  1 -2]
[ 2 -1  2 -2 -1 -2  2 -2 -2  1  1  1  1  1  1  1 -1  1  1 -2  1 -1  2 -1  1 -2 -2  1  2 -1  1  2  2  1  1 -2 -1  1  1  2  2  2  2  1 -1  2 -2 -2 -1  1]
[ 2  1 -2  2  2  1 -2 -2 -2 -1 -1  2  1 -1  2  2  1  2  2 -2  2 -2 -2  2 -2 -2  2 -2 -2  2  2 -2  2 -2  1  2  1 -1 -1  2 -2 -2  1  1  1  1  1  1 -2  1]
[-2 -1  2  2 -2  2  2 -2  1 -2 -2 -1  2 -1 -1  1 -2  2  1 -2  1 -2  1 -2 -1 -1  1 -2 -2  1 -2 -1 -1  1  1 -2  2 -1  1 -1 -1  1 -2  2 -1  1 -1 -1 -2  1]
[-2 -2 -1  1  1 -2  1  1  2  1 -1  1  1  1 -2 -2 -1  2  1 -1  2  1  2  2  2 -1  2  2 -2 -2  2  1  2  2 -2  1 -1  1 -2 -2  2 -2  1 -1  1  2 -2  1  2  1]
[ 2 -2 -1 -2 -2  2 -2  1 -2  2 -1  1 -2  1 -2  2  1 -1 -2  2  2  2  2  1  2 -2 -2  2 -2 -1  2 -1  1  2  2  1  2 -2 -1  1  2  2  1  1  1 -1  2 -1  2  2]
[-2  2  2  2  2  1 -2  1  1  1 -1  2 -2 -2 -2  2 -1 -2 -2 -2 -1 -2 -2  2  1  2 -2 -1 -2 -1  2  1  2 -2 -2 -2  1  1  2 -1  1 -1 -1 -1  2  1  2  1 -1 -2]
[ 1 -1 -2 -2 -2 -1  2  2 -2  2 -2 -1 -2 -2 -2 -1  1  2 -1 -2 -1 -2  2 -2  2 -1  2 -2 -2 -1  2 -2 -1 -2  2 -2 -1  2  2 -1 -1 -1  1  2  1  1 -1 -2  2 -1]
[-1  2 -1 -1 -2  1 -1 -2 -1 -1 -1 -2 -2 -2 -2 -1  2 -1 -2  1  2 -2 -1  1  1  1 -2 -1  1  2 -2 -1 -2 -2  1  2 -2 -1 -2  1 -2 -2 -2 -1  2 -1  2 -2  2  2]
[-2 -1  2 -1 -2  2 -2  1  2 -1 -1  1  2  1 -2  2  1 -1  2  1  1 -1 -1  1 -2  2 -2  2  2  2 -2 -2  1 -2  2  2  1 -2  1  1  1  1  2 -1 -1  1 -2 -1 -2 -2]
[ 2  1 -1  1 -1  2 -1  1  2 -1 -2 -2 -1 -1 -1  2 -2 -2 -1 -1  2 -1 -1  1  2  1  2 -2 -2  1  2  2  2  2  1 -1  2 -2 -2  1 -1 -1  1 -2 -1 -1  2 -2 -2  1]
[-2  2  2 -2 -1 -2 -1  2 -1  2  1 -1 -2 -2  2 -1 -2  2 -2  1  2  1  1 -1  1  1 -1  2  2 -1 -2 -2  2 -2 -2  2  2 -1  2  1  1  1  1 -2  1 -1 -1 -1 -2 -1]
[ 2  2  2 -1 -1  1 -2  2 -2  2  2 -2 -2  1  1 -2 -2  1 -2 -2  2  2 -1  2 -2  1  1 -2  2 -1  2  2 -1  1  1  2  2  2 -1  1 -2  2  1  1 -1  1 -1  2 -2  1]
[ 1  2  2 -2 -1 -1 -2 -2 -1 -2 -2  1  1 -2  1 -1  1  2 -2 -2  2 -2 -1 -1 -2  2  1 -2 -2 -2  1 -2  2  1 -1 -2 -2 -1 -1  1 -1  2 -2  1  1 -1  1 -1  1  2]
[ 1  2 -2  2  1  1  1  2 -1  2 -1 -1 -1  2 -2  1 -2  1  1 -1 -2 -1 -1  2 -2  2  2  2 -1 -1 -2  2 -2  2 -2  2  1 -2  2  1  2 -2 -1 -2 -2  1  1 -1  1 -2]
[-1  1 -2 -2  1 -1 -2 -2 -1 -1 -1  2 -1  1  1  1  1  2  1 -1 -2  2  1 -1 -2 -2  1  1  2 -2 -1  2 -1  2  2  1  2  1 -1  1 -1 -2 -1  2 -2 -1 -2 -1 -1 -2]
[-2 -2  2  2  2 -1 -2 -1 -2  1  1 -1  2 -2 -2 -2 -2 -2  2  2 -2  2 -2 -1 -1 -1 -2  2 -2  1 -2 -2  1  2 -1 -2 -1 -2  1 -1  2 -1 -2  1  2  1 -1 -2 -1 -2]
[-1  1 -2 -1  2 -1 -2  1  1  1 -1  2 -1 -2  1 -1  1  2 -1 -1 -1  1 -2 -2  2 -1  2  2 -1 -2 -2 -1 -1 -1  1  2 -2  2 -1 -1 -2 -2  2  2 -1  1 -2  2  2 -2]
[-2  2  2  2 -2  2  1 -2  1  2  2 -1 -2  1 -2 -2 -1 -2  2 -1 -1 -2  1  2  2 -2  2 -1 -2 -1 -2  2 -2 -1  2  2  2  2 -2 -1 -2 -2 -2  2 -2  2  2 -2 -1  1]
[-2 -1  1 -2  1 -1 -1  1 -2 -2  1  1 -2  1  1 -2  2  2  1  2 -2 -2 -2 -2  1  1  2  2 -1 -1  2 -1 -1 -1  1  1  2  1 -2  1 -2 -2  1 -1 -2  1  1 -2  1  2]
[ 1  1 -2 -2 -1  1  1 -2 -1 -2  1 -1 -1 -2  1 -2 -2  2 -2  2  1  1  2 -1  2  1  2 -1 -1 -1  2  1  1  2 -2  1 -1 -2  1 -1 -1  1 -2 -2 -1  1 -2  2 -2  1]
[ 1 -1 -2 -1 -2  2  1 -1  2 -1  1  1 -1  2  1 -2  2 -1 -2  2 -2 -2 -2 -1 -1 -2 -1  1 -1 -2 -1  1 -2  1 -1  2 -1 -1  2 -1 -1 -1  1 -1  1  2 -2 -2 -2 -1]
[ 2  2  1 -1 -2  2 -2 -1  1  2 -2 -2 -2  1 -2 -2 -2 -1 -1  2  1 -2  1  1  1 -1  1 -1 -2  2 -1 -2 -2  2  2  2 -2 -1  2 -1 -1 -2 -1 -1  1 -1 -1 -1  2  2]
[ 2  2 -1  1 -2  1  2 -1  1 -2 -1  2  2  1  2 -2 -1 -1  1 -2  2  2 -1  1  2  2  2 -1 -1  1 -2  2 -1 -1  1  1 -1  2 -2 -2 -1 -1 -2  1  1 -2  1  2  2 -2]
[-2 -1 -1  2 -1 -1  2  1  2  2 -2  2 -1  1  1  1 -1 -1  2  2  2 -1 -2  2 -2  2 -2  1  1  1  1  2 -1  1 -2  1  1 -1  1 -1 -1  1  1 -2 -2  1 -1  1  2  1]
[-1 -2  1  2 -2  2 -1  2 -1  2  1  2 -1  2 -1 -1 -1 -1  1 -1 -2  2  1  1 -2  1  2 -2 -1 -2 -1 -2  2  1 -2  1  1 -2  2  1  2 -2 -1  1 -2  2  2  2  2 -1]
[ 2  1  1 -2 -1  1 -1  2  1 -2 -2 -1  1 -1  2  2  1  2 -1  1 -1  1 -2 -1  1  1  2 -2 -1  1 -2  1  1  1 -2  2  1  2  2  2 -1  1 -2  1  2 -1 -2 -2  1  2]
[ 1  2  1  1 -2  1  1  1  2 -1 -2  2  1  1  2 -2 -2  1  2  2  1  2  1  1 -2 -2 -1 -2 -2 -1 -1 -2 -1  1  2  1  1 -2  2  1 -2  1 -1 -2 -1  1  1 -2  1  1]
[-2  2  1 -2 -2  2  2 -1  1 -2 -1  2  2  1  2  1  2 -1 -1  1  2  1  2  1 -1 -1  2  1  2  1  1  1  1 -2 -2 -2 -2 -2 -2 -1  2 -1  2  2  1  2  1 -1  1  1]
[ 2  2 -2  2 -1  2  2  2 -2 -2  2 -1 -2 -2 -2  2  2  2 -1  2 -2  1 -1 -1  1 -1 -1  2  2 -2  1 -2 -2 -1 -2  1 -1  2  1 -1  1  2 -2  2  1  1  1 -1  2  1]
[-2 -2 -1 -2 -1  1 -2 -2  1  2  2  2  2  1 -1 -1 -2  2 -2  2 -2  2  2  1 -1 -1  1  2 -2  2  1  1  1 -1  2 -2  1 -1 -1  1 -2  2 -2 -1  1 -1  1  1 -2 -2]
[ 2 -1 -1 -1 -1  2  1 -1  2  2  2  1 -2 -2 -1 -2  1  1 -1 -2  1 -1 -2  2  1  2  2  1 -1 -1  2  2  2  2 -2 -1  1  1  2 -1 -1  2 -2 -2  1 -2 -1  1 -2 -1]
[ 2  1 -1 -2  1  2  1 -1  2  2 -2 -2 -1 -2  1 -1  1 -2 -1  2  1 -1  2  1  2  1  1  1 -2  2  2 -1 -2  1 -1 -2  1 -1 -2  1  2  1  1  1  2  1 -2 -1  2  2]
[ 2 -1 -2 -1  1 -2  2  2 -1 -2 -1  1 -2 -1  2 -2  2  2  2 -2 -1 -1 -2  2  1 -2 -2 -1 -1  2  2  2  2  1  2  2 -1 -2 -2  2 -1  1 -1 -2 -2  2  2 -1 -1  2]
[-1  2 -2  2  2 -2 -2  1 -2 -1 -1 -1 -1 -1 -1  1  2 -2  1  2  1 -1  1  1  1 -2 -1 -2 -1  2 -1  2  1 -1  2 -1 -1  2  2  1  1 -2  1 -2  1 -1  2  2 -2 -1]
[ 2 -1  2 -1  2 -2  2  2 -2  2  2  1  1 -2 -2 -1 -2 -1 -2  2  1  2  1 -2  2  1 -2  1 -1  2  1 -2  2  2  2  2 -2 -1 -1  1 -2 -1  1 -1 -2  1  2 -1 -2 -1]
[-2 -2 -1  1 -1 -1  2  2  2  1 -2  1 -2 -1 -2  2 -1  2 -1  1 -1 -2  2 -2 -1  1 -2 -1  2 -2 -2 -2  1  1 -2  2  2  2 -1  2 -1 -1  1 -1  2  1 -1  2 -2  2]
[ 2  2  2 -2 -1  2  2  2  1 -1 -1  2  2 -2 -2 -2 -1 -2 -1 -1  1  1  2  1 -2 -2 -2  2 -1 -1  2  1  2 -1 -1  2 -1  1  2  1  2 -1  1 -1 -1 -1  2 -2 -2 -2]
[ 1  2 -2  1  2 -1  2  1  2  2 -1 -1 -1 -1  1  1 -2 -1  1 -1 -1  2 -1  2  2 -2 -2  1 -1  2  2 -1 -2  1 -2 -2 -2  1 -2 -1 -1  1  1  1 -1 -1 -2  2  1  1]
[ 2  1  2 -2 -1  2  2  2  1  2 -1 -2  1 -2 -2 -2  1  1 -1  1 -2  2  2  1  2  2  1  2 -2 -2 -2  1 -2  2 -1 -2 -2  1  1  1 -2  2 -2 -2 -2 -1  1  2  1 -2]
[ 2  2 -1  1 -1  1 -1 -2 -2 -2 -1  1  1 -2  1 -1 -1 -2 -1  1 -2 -2  1 -1 -2  2 -2 -2  2 -1  2 -2 -1  2 -2 -1  2 -1  2 -1  1  1  2  2 -1  2 -2  1  1 -2]rhhhh$hh&hhub(hor}r(hU#M = ModularSymbols(Gamma1(13),2); MrU_Cell__introspect_htmlrU!
rhjhU_Cell__introspectrhUhMU_before_preparserUos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___save___load/cells/17")
M = ModularSymbols(Gamma1(13),2); MrhU4sage_notebook/worksheets/cnta___save___load/cells/17rhUeModular Symbols space of dimension 15 for Gamma_1(13) of weight 2 with sign 0 and over Rational FieldrhU_Cell__is_htmlrU_Cell__sagerh$hh&U_Cell__timer	hub(hor
}r(U	_Cell__inrUM == loads(dumps(M))r
jU!
rU_Cell__worksheetrjU_Cell__completionsrjU_Cell__out_htmlrUU	_Cell__idrMjUuos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___save___load/cells/20")
M == loads(dumps(M))rU
_Cell__dirrU4sage_notebook/worksheets/cnta___save___load/cells/20rU
_Cell__outrUTruerUhas_new_outputrjjh$U_Cell__typerh&j	U_Cell__interruptedrub(hor}r(hUD = M.decomposition(2)rhU!
rhjhhhUhM-h-UM.decomrhUwos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___save___load/cells/45")
D = M.decomposition(2)r hU4sage_notebook/worksheets/cnta___save___load/cells/45r!hUh h!h"h$h%h&h'h(ub(hor"}r#(hUDhU!
r$hjhhhUhM.hUbos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___save___load/cells/46")
Dr%hU4sage_notebook/worksheets/cnta___save___load/cells/46r&hT[
Modular Symbols subspace of dimension 1 of Modular Symbols space of dimension 15 for Gamma_1(13) of weight 2 with sign 0 and over Rational Field,
Modular Symbols subspace of dimension 1 of Modular Symbols space of dimension 15 for Gamma_1(13) of weight 2 with sign 0 and over Rational Field,
Modular Symbols subspace of dimension 1 of Modular Symbols space of dimension 15 for Gamma_1(13) of weight 2 with sign 0 and over Rational Field,
Modular Symbols subspace of dimension 2 of Modular Symbols space of dimension 15 for Gamma_1(13) of weight 2 with sign 0 and over Rational Field,
Modular Symbols subspace of dimension 2 of Modular Symbols space of dimension 15 for Gamma_1(13) of weight 2 with sign 0 and over Rational Field,
Modular Symbols subspace of dimension 2 of Modular Symbols space of dimension 15 for Gamma_1(13) of weight 2 with sign 0 and over Rational Field,
Modular Symbols subspace of dimension 2 of Modular Symbols space of dimension 15 for Gamma_1(13) of weight 2 with sign 0 and over Rational Field,
Modular Symbols subspace of dimension 4 of Modular Symbols space of dimension 15 for Gamma_1(13) of weight 2 with sign 0 and over Rational Field
]r'h h!h"h$h%h&h'h(ub(hor(}r)(hUsave Dr*hU!
r+hjhhhUhM/hUgos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___save___load/cells/47")
save Dr,hU4sage_notebook/worksheets/cnta___save___load/cells/47r-hUh h!h"h$h%h&h'h(ub(hor.}r/(hU	load('D')r0hU!
r1hjhhhUhM0hUjos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___save___load/cells/48")
load('D')r2hU4sage_notebook/worksheets/cnta___save___load/cells/48r3hT[
Modular Symbols subspace of dimension 1 of Modular Symbols space of dimension 15 for Gamma_1(13) of weight 2 with sign 0 and over Rational Field,
Modular Symbols subspace of dimension 1 of Modular Symbols space of dimension 15 for Gamma_1(13) of weight 2 with sign 0 and over Rational Field,
Modular Symbols subspace of dimension 1 of Modular Symbols space of dimension 15 for Gamma_1(13) of weight 2 with sign 0 and over Rational Field,
Modular Symbols subspace of dimension 2 of Modular Symbols space of dimension 15 for Gamma_1(13) of weight 2 with sign 0 and over Rational Field,
Modular Symbols subspace of dimension 2 of Modular Symbols space of dimension 15 for Gamma_1(13) of weight 2 with sign 0 and over Rational Field,
Modular Symbols subspace of dimension 2 of Modular Symbols space of dimension 15 for Gamma_1(13) of weight 2 with sign 0 and over Rational Field,
Modular Symbols subspace of dimension 2 of Modular Symbols space of dimension 15 for Gamma_1(13) of weight 2 with sign 0 and over Rational Field,
Modular Symbols subspace of dimension 4 of Modular Symbols space of dimension 15 for Gamma_1(13) of weight 2 with sign 0 and over Rational Field
]r4h h!h"h$h%h&h'h(ub(hor5}r6(hUh^U!
r7hjhh`hUhM1haUaos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___save___load/cells/49")
r8hU4sage_notebook/worksheets/cnta___save___load/cells/49r9hUh hdheh$h%h&hfh(ub(hor:}r;(hiUhjjhkhlUhmM2hnU4sage_notebook/worksheets/cnta___save___load/cells/50r<hpUhqhrh&hsubeU_Worksheet__synchror=MU_Worksheet__comp_is_runningr>U_Worksheet__dirr?U+sage_notebook/worksheets/cnta___save___loadr@U_Worksheet__attachedrA}rBU/home/was/.sage/init.sagerCJ7DsU_Worksheet__queuerD]rEU_Worksheet__next_idrFM3U_Worksheet__namerGUcnta - save / loadrHU_Worksheet__notebookrIhU_Worksheet__idrJKU_Worksheet__next_block_idrKKU_Worksheet__systemrLNubUcnta - combinatorial geomrM(horN}rO(h
Ucnta___combinatorial_geomrPh]rQ((horR}rS(hUSP. = ProjectiveSpace(3,QQ)
C = P.subscheme([y^2-x*z, z^2-y*w, x*w-y*z]) 
CrThU!
rUhjNhhhUhMhUos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___combinatorial_geom/cells/0")
P. = ProjectiveSpace(3,QQ)
C = P.subscheme([y^2-x*z, z^2-y*w, x*w-y*z]) 
CrVhU:sage_notebook/worksheets/cnta___combinatorial_geom/cells/0rWhU}Closed subscheme of Projective Space of dimension 3 over Rational Field defined by:
  y^2 - x*z
  z^2 - y*w
  -1*y*z + x*wrXh h!h"h$h%h&h'h(ub(horY}rZ(hU1len(C.irreducible_components())   # twisted cubicr[hU!
r\hjNhhhUhMhUos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___combinatorial_geom/cells/1")
len(C.irreducible_components())   # twisted cubicr]hU:sage_notebook/worksheets/cnta___combinatorial_geom/cells/1r^hU1h h!h"h$h%h&h'h(ub(hor_}r`(hUJ = C.defining_ideal()
JrahU!
rbhjNhhhUhMhUos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___combinatorial_geom/cells/2")
J = C.defining_ideal()
JrchU:sage_notebook/worksheets/cnta___combinatorial_geom/cells/2rdhU_Ideal (z^2 - y*w, -1*y*z + x*w, y^2 - x*z) of Polynomial Ring in x, y, z, w over Rational Fieldreh h!h"h$h%h&h'h(ub(horf}rg(hUG = J.groebner_fan()
GrhhU!
rihjNhhhUhMhU}os.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___combinatorial_geom/cells/3")
G = J.groebner_fan()
GrjhU:sage_notebook/worksheets/cnta___combinatorial_geom/cells/3rkhU{Groebner fan of the ideal:
Ideal (z^2 - y*w, -1*y*z + x*w, y^2 - x*z) of Polynomial Ring in x, y, z, w over Rational Fieldrlh h!h"h$h%h&h'h(ub(horm}rn(hUG.reduced_groebner_bases()rohU!
rphjNhhhUhMhUos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___combinatorial_geom/cells/4")
G.reduced_groebner_bases()rqhU:sage_notebook/worksheets/cnta___combinatorial_geom/cells/4rrhTs[[-1*z^2 + y*w, -1*y*z + x*w, -1*y^2 + x*z], [z^2 - y*w, -1*y*z + x*w, -1*y^2 + x*z], [z^2 - y*w, y*z - x*w, -1*y^2 + x*z, -1*y^3 + x^2*w], [z^2 - y*w, y*z - x*w, y^3 - x^2*w, -1*y^2 + x*z], [z^2 - y*w, y*z - x*w, y^2 - x*z], [-1*z^2 + y*w, y^2 - x*z, -1*y*z + x*w], [-1*z^2 + y*w, y*z - x*w, y^2 - x*z, -1*z^3 + x*w^2], [z^3 - x*w^2, -1*z^2 + y*w, y*z - x*w, y^2 - x*z]]rsh h!h"h$h%h&h'h(ub(hort}ru(hUG.fvector()rvhU!
rwhjNhhhUhMhUros.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___combinatorial_geom/cells/6")
G.fvector()rxhU:sage_notebook/worksheets/cnta___combinatorial_geom/cells/6ryhU	(1, 8, 8)rzh h!h"h$h%h&h'h(ub(hor{}r|(hUf = prod(J.gens())r}hU!
r~hjNhhhUhMhUyos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___combinatorial_geom/cells/5")
f = prod(J.gens())rhU:sage_notebook/worksheets/cnta___combinatorial_geom/cells/5rhUh h!h"h$h%h&h'h(ub(hor}r(hU@NP = polymake.convex_hull(f.exponents())    # -- newton polytoperhU!
rhjNhhhUhMhUos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___combinatorial_geom/cells/7")
NP = polymake.convex_hull(f.exponents())    # -- newton polytoperhU:sage_notebook/worksheets/cnta___combinatorial_geom/cells/7rhUh h!h"h$h%h&h'h(ub(hor}r(hUNP.facets()rhU!
rhjNhhhUhMhUros.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___combinatorial_geom/cells/8")
NP.facets()rhU:sage_notebook/worksheets/cnta___combinatorial_geom/cells/8rhU_[(3/2, 5/2, -1, 0), (3, 1, -1, 0), (1, 0, 0, 0), (-3/2, 2, 1, 0), (3, -1, 4, 0), (-3, 1, 5, 0)]rh h!h"h$h%h&h'h(ub(hor}r(hUh^U!
rhjNhh`hUhM	haUgos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___combinatorial_geom/cells/9")
rhU:sage_notebook/worksheets/cnta___combinatorial_geom/cells/9rhUh hdheh$h%h&hfh(ub(hor}r(hiUhjjNhkhlUhmMhnU;sage_notebook/worksheets/cnta___combinatorial_geom/cells/11rhpUhqhrh&hsubehtK)huUcnta - combinatorial geomrhwU2sage_notebook/worksheets/cnta___combinatorial_geomrhy}rU/home/was/.sage/init.sagerJ7Dsh|]rh~MhhhhNhKhKubUcnta - ec - lserr(hor}r(jmUcnta___ec___lserrjo]r((hor}r(hUE = EllipticCurve('37a')
ErhU!
rhjhЉhщhUhMhUE.LserierhUxos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___ec___lser/cells/0")
E = EllipticCurve('37a')
ErhU1sage_notebook/worksheets/cnta___ec___lser/cells/0rhU?Elliptic Curve defined by y^2 + y = x^3 - x over Rational Fieldrhډhۉhh$hh&h߉hub(hor}r(hUtime v = E.anlist(100000)rhU!
rhjhhhUhMjEUE.anlirhUos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___ec___lser/cells/21")
__SAGE_t__=cputime()
__SAGE_w__=walltime()
v = E.anlist(100000)rhU2sage_notebook/worksheets/cnta___ec___lser/cells/21rhU$CPU time: 1.43 s,  Wall time: 1.49 srhhhh$hh&hhub(hor}r(hU(time v = E.anlist(100000,pari_ints=True)rhU!
rhjhhhUhMhUos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___ec___lser/cells/22")
__SAGE_t__=cputime()
__SAGE_w__=walltime()
v = E.anlist(100000,pari_ints=True)rhU2sage_notebook/worksheets/cnta___ec___lser/cells/22rhU$CPU time: 0.31 s,  Wall time: 0.30 srhhhh$hUwraprhhub(hor}r(hUCE.Lseries_at1()   # directly and with proved error bound if nonzerorhU!
rhjhЉhщhUhMhU	E.LseriesrhUos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___ec___lser/cells/1")
E.Lseries_at1()   # directly and with proved error bound if nonzerorhU1sage_notebook/worksheets/cnta___ec___lser/cells/1rhU0hډhۉhh$hh&h߉hub(hor}r(hUE.Lseries(1)      # via PARIrhU!
rhjhЉhщhUhMhUE.LserrhUzos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___ec___lser/cells/2")
E.Lseries(1)      # via PARIrhU1sage_notebook/worksheets/cnta___ec___lser/cells/2rhU0.00000000000000000rhډhۉhh$hh&h߉hub(hor}r(hUGE.Lseries_sympow(2,16)  # Watkins C program -- symmetric square L-valuerhU!
rhjhЉhщhUhMhUE.Lseries_syrhUos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___ec___lser/cells/3")
E.Lseries_sympow(2,16)  # Watkins C program -- symmetric square L-valuerhU1sage_notebook/worksheets/cnta___ec___lser/cells/3rhU'2.492262044273650E+00'rhډhۉhh$hh&h߉hub(hor}r(hU:L = E.Lseries_dokchitser()   # Tim Dokchitser's GP packagerhU!
rhjhЉhщhUhMhU
E.Lseries_dokrhUos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___ec___lser/cells/4")
L = E.Lseries_dokchitser()   # Tim Dokchitser's GP packagerhU1sage_notebook/worksheets/cnta___ec___lser/cells/4rhUhډhۉhh$hh&h߉hub(hor}r(hUL(1)rhU!
rhjhЉhщhUhMhUbos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___ec___lser/cells/5")
L(1)rhU1sage_notebook/worksheets/cnta___ec___lser/cells/5rhU0hډhۉhh$hh&h߉hub(hor}r(hUL.derivative(1)rhU!
rhjhЉhщhUhMhUL.derrhUmos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___ec___lser/cells/7")
L.derivative(1)rhU1sage_notebook/worksheets/cnta___ec___lser/cells/7rhU0.30599977383405230rhډhۉhh$hh&h߉hub(hor}r(hU>L(1+I)                   # works very well for arbitrary inputrhU!
rhjhЉhщhUhMhUos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___ec___lser/cells/8")
L(1+I)                   # works very well for arbitrary inputrhU1sage_notebook/worksheets/cnta___ec___lser/cells/8rhU,-0.15892526330137721 + 0.45791106676511545*Irhډhۉhh$hh&h߉hub(hor}r(hUrhjhЉhщhUhM	hUos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___ec___lser/cells/9")
set_verbose(-2)
v = [tuple(L(1 + t/8*I)) for t in range(75)]rhU1sage_notebook/worksheets/cnta___ec___lser/cells/9rhUhډhۉhh$hUwraprh߉hub(hor}r(hUshow(line(v, hue=0.8))rhU!
rhjhЉhщhUJrhM
hUuos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___ec___lser/cells/10")
show(line(v, hue=0.8))rhU2sage_notebook/worksheets/cnta___ec___lser/cells/10rhUhډhۉhh$hh&h߉hub(hor}r(U	_Cell__inrUVfor P in E.Lseries_zeros_in_interval(0,10,0.3):     # Mike Rubinstein's
    print P[0]rhU!
rU_Cell__worksheetrjU_Cell__completionsrhU_Cell__out_htmlrUU	_Cell__idrMjEUE.Lseries_zeros_irhUos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___ec___lser/cells/19")
for P in E.Lseries_zeros_in_interval(0,10,0.3):     # Mike Rubinstein's
    print P[0]rU
_Cell__dirrU2sage_notebook/worksheets/cnta___ec___lser/cells/19rU
_Cell__outrU65.0031700134
6.8703912161
8.0143308081
9.9330983534rUhas_new_outputrhhh$U_Cell__typer	h&hU_Cell__interruptedr
ub(hor}r(hU}%time

# Christophe Doche and Sylvain Duquesne implemented SEA, which is
# included with SAGE

print E.sea(next_prime(10^50))r
hU!
rhjhhhUhMjEUE.serhTos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___ec___lser/cells/20")
__SAGE_t__=cputime()
__SAGE_w__=walltime()
# Christophe Doche and Sylvain Duquesne implemented SEA, which is
# included with SAGE

print E.sea(next_prime(10^50))rhU2sage_notebook/worksheets/cnta___ec___lser/cells/20rhU(52
CPU time: 0.00 s,  Wall time: 0.13 srhhhh$hh&hhub(hor}r(hUh^U!
rhjhh`hUhMhaU_os.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___ec___lser/cells/26")
rhU2sage_notebook/worksheets/cnta___ec___lser/cells/26rhUhhdheh$hh&hfhub(hor}r(hiUhjjhkhlUhmMhnU2sage_notebook/worksheets/cnta___ec___lser/cells/27rhpUhqhrh&hsubejKjUcnta - ec - lserrjU)sage_notebook/worksheets/cnta___ec___lserrj}rU/home/was/.sage/init.sagerJ7Dsj]rjMjjhjK
jKjNubUcnta - modformr (hor!}r"(U_Worksheet__filenamer#Ucnta___modformr$U_Worksheet__cellsr%]r&((hor'}r((hiU!M = ModularForms(1, 12)
M.basis()r)h^U!
r*hjj!hkh`hlUhmMhaU}os.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___modform/cells/0")
M = ModularForms(1, 12)
M.basis()r+hnU/sage_notebook/worksheets/cnta___modform/cells/0r,hpU[
q - 24*q^2 + 252*q^3 - 1472*q^4 + 4830*q^5 + O(q^6),
1 + 65520/691*q + 134250480/691*q^2 + 11606736960/691*q^3 + 274945048560/691*q^4 + 3199218815520/691*q^5 + O(q^6)
]r-hqhdheh$hrUwrapr.hfhsub(hor/}r0(hiU$S = M.cuspidal_submodule()
S.basis()r1h^U!
r2hjj!hkh`hlUhmMU_word_being_completedr3UM.cuspidal_submor4haUos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___modform/cells/1")
S = M.cuspidal_submodule()
S.basis()r5hnU/sage_notebook/worksheets/cnta___modform/cells/1r6hpU9[
q - 24*q^2 + 252*q^3 - 1472*q^4 + 4830*q^5 + O(q^6)
]r7hqhdheh$hrUwrapr8hfhsub(hor9}r:(hiU(M = ModularForms(Gamma0(23),2)
M.basis()r;h^U!
r<hjj!hkh`hlUhmMhaUos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___modform/cells/2")
M = ModularForms(Gamma0(23),2)
M.basis()r=hnU/sage_notebook/worksheets/cnta___modform/cells/2r>hpU[
q - q^3 - q^4 + O(q^6),
q^2 - 2*q^3 - q^4 + 2*q^5 + O(q^6),
1 + 12/11*q + 36/11*q^2 + 48/11*q^3 + 84/11*q^4 + 72/11*q^5 + O(q^6)
]r?hqhdheh$hrUwrapr@hfhsub(horA}rB(hiU0M = ModularForms(Gamma1(13),2,prec=20)
M.basis()rCh^U!
rDhjj!hkh`hlUhmMhaUos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___modform/cells/3")
M = ModularForms(Gamma1(13),2,prec=20)
M.basis()rEhnU/sage_notebook/worksheets/cnta___modform/cells/3rFhpTt[
q - 4*q^3 - q^4 + 3*q^5 + 6*q^6 - 3*q^8 + q^9 - 6*q^10 - 2*q^12 + 2*q^13 + 10*q^16 - 3*q^17 - 3*q^18 - 6*q^19 + O(q^20),
q^2 - 2*q^3 - q^4 + 2*q^5 + 2*q^6 - 2*q^8 + q^9 - 3*q^10 + 3*q^13 - 2*q^15 + 5*q^16 - 3*q^17 - 2*q^18 - 2*q^19 + O(q^20),
1 + 21060/19*q^11 - 36504/19*q^12 - 10270/19*q^13 - 388440/19*q^14 + 595140/19*q^15 + 89856/19*q^16 - 323856/19*q^17 - 939120/19*q^18 + 617760/19*q^19 + O(q^20),
q + 11709/19*q^11 - 20687/19*q^12 - 17570/57*q^13 - 219842/19*q^14 + 336765/19*q^15 + 50783/19*q^16 - 183429/19*q^17 - 532306/19*q^18 + 350304/19*q^19 + O(q^20),
q^2 + 262*q^11 - 467*q^12 - 386/3*q^13 - 4779*q^14 + 7306*q^15 + 1097*q^16 - 3974*q^17 - 11550*q^18 + 7608*q^19 + O(q^20),
q^3 + 918/19*q^11 - 1215/19*q^12 - 1115/57*q^13 - 15203/19*q^14 + 23529/19*q^15 + 3666/19*q^16 - 12783/19*q^17 - 36661/19*q^18 + 23964/19*q^19 + O(q^20),
q^4 - 882/19*q^11 + 2095/19*q^12 + 1607/57*q^13 + 18130/19*q^14 - 27230/19*q^15 - 4014/19*q^16 + 14916/19*q^17 + 43745/19*q^18 - 29064/19*q^19 + O(q^20),
q^5 - 1287/19*q^11 + 2607/19*q^12 + 2114/57*q^13 + 25201/19*q^14 - 38200/19*q^15 - 5761/19*q^16 + 20878/19*q^17 + 60950/19*q^18 - 40260/19*q^19 + O(q^20),
q^6 - 1080/19*q^11 + 2024/19*q^12 + 1637/57*q^13 + 20053/19*q^14 - 30520/19*q^15 - 4608/19*q^16 + 16608/19*q^17 + 48445/19*q^18 - 31908/19*q^19 + O(q^20),
q^7 - 675/19*q^11 + 1056/19*q^12 + 940/57*q^13 + 12355/19*q^14 - 19075/19*q^15 - 2880/19*q^16 + 10380/19*q^17 + 29872/19*q^18 - 19553/19*q^19 + O(q^20),
q^8 - 360/19*q^11 + 453/19*q^12 + 419/57*q^13 + 5975/19*q^14 - 9350/19*q^15 - 1403/19*q^16 + 5042/19*q^17 + 14489/19*q^18 - 9420/19*q^19 + O(q^20),
q^9 - 153/19*q^11 + 98/19*q^12 + 44/19*q^13 + 2290/19*q^14 - 3665/19*q^15 - 592/19*q^16 + 2007/19*q^17 + 5575/19*q^18 - 3576/19*q^19 + O(q^20),
q^10 - 54/19*q^11 - 9/19*q^12 + 22/57*q^13 + 597/19*q^14 - 994/19*q^15 - 143/19*q^16 + 534/19*q^17 + 1420/19*q^18 - 900/19*q^19 + O(q^20)
]rGhqhdheh$hrUnowraprHhfhsub(horI}rJ(hiU#S = M.cuspidal_subspace()
S.basis()rKh^U!
rLhjj!hkh`hlUhmMhaUos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___modform/cells/4")
S = M.cuspidal_subspace()
S.basis()rMhnU/sage_notebook/worksheets/cnta___modform/cells/4rNhpU[
q - 4*q^3 - q^4 + 3*q^5 + 6*q^6 - 3*q^8 + q^9 - 6*q^10 - 2*q^12 + 2*q^13 + 10*q^16 - 3*q^17 - 3*q^18 - 6*q^19 + O(q^20),
q^2 - 2*q^3 - q^4 + 2*q^5 + 2*q^6 - 2*q^8 + q^9 - 3*q^10 + 3*q^13 - 2*q^15 + 5*q^16 - 3*q^17 - 2*q^18 - 2*q^19 + O(q^20)
]rOhqhdheh$hrUnowraprPhfhsub(horQ}rR(hiU%E = M.eisenstein_subspace()
E.basis()rSh^U!
rThjj!hkh`hlUhmMj3UM.eisenstein_subsprUhaUos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___modform/cells/5")
E = M.eisenstein_subspace()
E.basis()rVhnU/sage_notebook/worksheets/cnta___modform/cells/5rWhpT[
1 + 21060/19*q^11 - 36504/19*q^12 - 10270/19*q^13 - 388440/19*q^14 + 595140/19*q^15 + 89856/19*q^16 - 323856/19*q^17 - 939120/19*q^18 + 617760/19*q^19 + O(q^20),
q + 11709/19*q^11 - 20687/19*q^12 - 17570/57*q^13 - 219842/19*q^14 + 336765/19*q^15 + 50783/19*q^16 - 183429/19*q^17 - 532306/19*q^18 + 350304/19*q^19 + O(q^20),
q^2 + 262*q^11 - 467*q^12 - 386/3*q^13 - 4779*q^14 + 7306*q^15 + 1097*q^16 - 3974*q^17 - 11550*q^18 + 7608*q^19 + O(q^20),
q^3 + 918/19*q^11 - 1215/19*q^12 - 1115/57*q^13 - 15203/19*q^14 + 23529/19*q^15 + 3666/19*q^16 - 12783/19*q^17 - 36661/19*q^18 + 23964/19*q^19 + O(q^20),
q^4 - 882/19*q^11 + 2095/19*q^12 + 1607/57*q^13 + 18130/19*q^14 - 27230/19*q^15 - 4014/19*q^16 + 14916/19*q^17 + 43745/19*q^18 - 29064/19*q^19 + O(q^20),
q^5 - 1287/19*q^11 + 2607/19*q^12 + 2114/57*q^13 + 25201/19*q^14 - 38200/19*q^15 - 5761/19*q^16 + 20878/19*q^17 + 60950/19*q^18 - 40260/19*q^19 + O(q^20),
q^6 - 1080/19*q^11 + 2024/19*q^12 + 1637/57*q^13 + 20053/19*q^14 - 30520/19*q^15 - 4608/19*q^16 + 16608/19*q^17 + 48445/19*q^18 - 31908/19*q^19 + O(q^20),
q^7 - 675/19*q^11 + 1056/19*q^12 + 940/57*q^13 + 12355/19*q^14 - 19075/19*q^15 - 2880/19*q^16 + 10380/19*q^17 + 29872/19*q^18 - 19553/19*q^19 + O(q^20),
q^8 - 360/19*q^11 + 453/19*q^12 + 419/57*q^13 + 5975/19*q^14 - 9350/19*q^15 - 1403/19*q^16 + 5042/19*q^17 + 14489/19*q^18 - 9420/19*q^19 + O(q^20),
q^9 - 153/19*q^11 + 98/19*q^12 + 44/19*q^13 + 2290/19*q^14 - 3665/19*q^15 - 592/19*q^16 + 2007/19*q^17 + 5575/19*q^18 - 3576/19*q^19 + O(q^20),
q^10 - 54/19*q^11 - 9/19*q^12 + 22/57*q^13 + 597/19*q^14 - 994/19*q^15 - 143/19*q^16 + 534/19*q^17 + 1420/19*q^18 - 900/19*q^19 + O(q^20)
]rXhqhdheh$hrUnowraprYhfhsub(horZ}r[(hiUM.eisenstein_series()r\h^U!
r]hjj!hkh`hlUhmMj3UM.eisenstein_ser^haUqos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___modform/cells/6")
M.eisenstein_series()r_hnU/sage_notebook/worksheets/cnta___modform/cells/6r`hpT[
1/2 + q + 3*q^2 + 4*q^3 + 7*q^4 + 6*q^5 + 12*q^6 + 8*q^7 + 15*q^8 + 13*q^9 + 18*q^10 + 12*q^11 + 28*q^12 + q^13 + 24*q^14 + 24*q^15 + 31*q^16 + 18*q^17 + 39*q^18 + 20*q^19 + O(q^20),
-7/13*zeta6 - 11/13 + q + (2*zeta6 + 1)*q^2 + (-3*zeta6 + 1)*q^3 + (6*zeta6 - 3)*q^4 + -4*q^5 + O(q^6),
q + (zeta6 + 2)*q^2 + (-zeta6 + 3)*q^3 + (3*zeta6 + 3)*q^4 + 4*q^5 + O(q^6),
-zeta6 + q + (2*zeta6 - 1)*q^2 + (3*zeta6 - 2)*q^3 + (-2*zeta6 - 1)*q^4 + 6*q^5 + O(q^6),
q + (zeta6 + 1)*q^2 + (zeta6 + 2)*q^3 + (zeta6 + 2)*q^4 + 6*q^5 + O(q^6),
-1 + q - q^2 + 4*q^3 + 3*q^4 - 4*q^5 - 4*q^6 - 6*q^7 - 5*q^8 + 13*q^9 + 4*q^10 - 10*q^11 + 12*q^12 + 6*q^14 - 16*q^15 + 11*q^16 + 18*q^17 - 13*q^18 - 18*q^19 + O(q^20),
q + q^2 + 4*q^3 + 3*q^4 + 4*q^5 + 4*q^6 + 6*q^7 + 5*q^8 + 13*q^9 + 4*q^10 + 10*q^11 + 12*q^12 + 6*q^14 + 16*q^15 + 11*q^16 + 18*q^17 + 13*q^18 + 18*q^19 + O(q^20),
zeta6 - 1 + q + (-2*zeta6 + 1)*q^2 + (-3*zeta6 + 1)*q^3 + (2*zeta6 - 3)*q^4 + 6*q^5 + O(q^6),
q + (-zeta6 + 2)*q^2 + (-zeta6 + 3)*q^3 + (-zeta6 + 3)*q^4 + 6*q^5 + O(q^6),
7/13*zeta6 - 18/13 + q + (-2*zeta6 + 3)*q^2 + (3*zeta6 - 2)*q^3 + (-6*zeta6 + 3)*q^4 + -4*q^5 + O(q^6),
q + (-zeta6 + 3)*q^2 + (zeta6 + 2)*q^3 + (-3*zeta6 + 6)*q^4 + 4*q^5 + O(q^6)
]rahqhdheh$hrUnowraprbhfhsub(horc}rd(hiU:M = ModularForms(Gamma0(11),6)
S = M.cuspidal_subspace()
Sreh^U!
rfhjj!hkh`hlUhmM	haUos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___modform/cells/9")
M = ModularForms(Gamma0(11),6)
S = M.cuspidal_subspace()
SrghnU/sage_notebook/worksheets/cnta___modform/cells/9rhhpUCuspidal subspace of dimension 4 of Modular Forms space of dimension 6 for Congruence Subgroup Gamma0(11) of weight 6 over Rational Fieldrihqhdheh$hrUwraprjhfhsub(hork}rl(hiUt2 = S.hecke_operator(2); t2rmh^U!
rnhjj!hkh`hlUhmM
j3U
S.hecke_oprohaUyos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___modform/cells/10")
t2 = S.hecke_operator(2); t2rphnU0sage_notebook/worksheets/cnta___modform/cells/10rqhpUHecke operator T_2 on Cuspidal subspace of dimension 4 of Modular Forms space of dimension 6 for Congruence Subgroup Gamma0(11) of weight 6 over Rational Fieldrrhqhdheh$hrUwraprshfhsub(hort}ru(hiUt2.matrix()rvh^U!
rwhjj!hkh`hlUhmMhaUhos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___modform/cells/11")
t2.matrix()rxhnU0sage_notebook/worksheets/cnta___modform/cells/11ryhpUJ[  0  32  10   4]
[  1   0   3  38]
[  0   0  -2 -12]
[  0   1  -2  -2]rzhqhdheh$hrUwrapr{hfhsub(hor|}r}(hiUfactor(charpoly(t2.matrix()))r~h^U!
rhjj!hkh`hlUhmMhaUzos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___modform/cells/12")
factor(charpoly(t2.matrix()))rhnU0sage_notebook/worksheets/cnta___modform/cells/12rhpU(x + 4) * (x^3 - 90*x + 188)rhqhdheh$hrUwraprhfhsub(hor}r(hiUJModularSymbols(Gamma0(11),6, sign=1).cuspidal_submodule().decomposition(2)rh^U!
rhjj!hkh`hlUhmMhaUos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___modform/cells/14")
ModularSymbols(Gamma0(11),6, sign=1).cuspidal_submodule().decomposition(2)rhnU0sage_notebook/worksheets/cnta___modform/cells/14rhpT[
Modular Symbols subspace of dimension 1 of Modular Symbols space of dimension 6 for Gamma_0(11) of weight 6 with sign 1 over Rational Field,
Modular Symbols subspace of dimension 3 of Modular Symbols space of dimension 6 for Gamma_0(11) of weight 6 with sign 1 over Rational Field
]rhqhdheh$hrUwraprhfhsub(hor}r(hiUhjj!hkhlUhmMhnU0sage_notebook/worksheets/cnta___modform/cells/15rhpUhqhrh&hsubeU_Worksheet__synchrorK!U_Worksheet__namerUcnta - modformrU_Worksheet__dirrU'sage_notebook/worksheets/cnta___modformrU_Worksheet__attachedr}rU/home/was/.sage/init.sagerJ7DsU_Worksheet__queuer]rU_Worksheet__next_idrMU_Worksheet__comp_is_runningrU_Worksheet__notebookrhU_Worksheet__systemrNU_Worksheet__next_block_idrK"U_Worksheet__idrKubUcnta - db - stein-watkinsr(hor}r(hUcnta___db___stein_watkinsrh]r((hor}r(hUD = SteinWatkinsPrimeData(0)
DrhU!
rhjhhhUhM`j\USteinWatkinsPrimrhUos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___db___stein_watkins/cells/0")
D = SteinWatkinsPrimeData(0)
DrhU:sage_notebook/worksheets/cnta___db___stein_watkins/cells/0rhU3Stein-Watkins Prime Conductor Database p.0 Iteratorrhhhh$hUwraprhhub(hor}r(hUC = D.next()
CrhU!
rhjhhhUhM`hUuos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___db___stein_watkins/cells/1")
C = D.next()
CrhU:sage_notebook/worksheets/cnta___db___stein_watkins/cells/1rhU+Stein-Watkins isogeny class of conductor 11rhhhh$hUwraprhhub(hor}r(hUlist(C)rhU!
rhjhhhUhM`hUnos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___db___stein_watkins/cells/5")
list(C)rhU:sage_notebook/worksheets/cnta___db___stein_watkins/cells/5rhU}[[[0, -1, 1, 0, 0], '(1)', '1', '5'], [[0, -1, 1, -10, -20], '(5)', '1', '5'], [[0, -1, 1, -7820, -263580], '(1)', '1', '1']]rhhhh$hhhhub(hor}r(hUD.next()rhU!
rhjhhhUhM`hUoos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___db___stein_watkins/cells/2")
D.next()rhU:sage_notebook/worksheets/cnta___db___stein_watkins/cells/2rhU+Stein-Watkins isogeny class of conductor 17rhhhh$hUwraprhhub(hor}r(hUD.next()rhU!
rhjhhhUhM`hUoos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___db___stein_watkins/cells/3")
D.next()rhU:sage_notebook/worksheets/cnta___db___stein_watkins/cells/3rhU+Stein-Watkins isogeny class of conductor 19rhhhh$hh&hhub(hor}r(hUh^U!
rhjhh`hUhM`haUgos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___db___stein_watkins/cells/4")
rhU:sage_notebook/worksheets/cnta___db___stein_watkins/cells/4rhUhhdheh$hh&hfhub(hor}r(hiUhjjhkhlUhmM`hnU:sage_notebook/worksheets/cnta___db___stein_watkins/cells/7rhpUhqhrh&hsubejZK%j[j\}rU/home/was/.sage/init.sagerJ7Dsj_U2sage_notebook/worksheets/cnta___db___stein_watkinsrja]rjcM`jdUcnta - db - stein-watkinsrjfhjgKjhK	jiNubU	_scratch_r(hor}r(U_Worksheet__filenamerU	_scratch_rU_Worksheet__cellsr]r((hor}r(hiU2+3rh^U!
rhjjhkh`hlUhmKhaUZos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/_scratch_/cells/4")
2+3rhnU*sage_notebook/worksheets/_scratch_/cells/4rhpU5hqhdheh$hrh&hfhsub(hor}r(hiUGshow(plot(EllipticCurve('37a'), rgbcolor=(1,0,1), thickness=3),dpi=100)rh^U!
rhjjhkh`hlUBrhmKhaUos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/_scratch_/cells/5")
show(plot(EllipticCurve('37a'), rgbcolor=(1,0,1), thickness=3),dpi=100)rhnU*sage_notebook/worksheets/_scratch_/cells/5rhpUhqhdheh$hrh&hfhsub(hor}r(hiUhjjhkhlUhmKhnU*sage_notebook/worksheets/_scratch_/cells/7rhpUhqhrh&hsubeU_Worksheet__synchrorKU_Worksheet__namerU	_scratch_rU_Worksheet__dirrU"sage_notebook/worksheets/_scratch_rU_Worksheet__attachedr}rU/home/was/.sage/init.sagerJ7DsU_Worksheet__queuer]rU_Worksheet__next_idrKU_Worksheet__comp_is_runningrU_Worksheet__notebookrhU_Worksheet__idrKU_Worksheet__next_block_idrKU_Worksheet__systemrNubUcnta - using other systemsr(hor}r(jUcnta___using_other_systemsrj]r((hor}r(hU*n = -2007
print n.factor()
print factor(n)rhU!
rhjhhhUhMhUos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___using_other_systems/cells/0")
n = -2007
print n.factor()
print factor(n)rhU;sage_notebook/worksheets/cnta___using_other_systems/cells/0r	hU-1 * 3^2 * 223
-1 * 3^2 * 223r
hhhh$hh&hhub(hor}r(hUn.factor(algorithm="kash")r
hU!
rhjhhhUhMhUos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___using_other_systems/cells/1")
n.factor(algorithm="kash")rhU;sage_notebook/worksheets/cnta___using_other_systems/cells/1rhU-1 * 3^2 * 223rhhhh$hUwraprhhub(hor}r(hUgap(n).FactorsInt()rhU!
rhjhhhUhMhU{os.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___using_other_systems/cells/2")
gap(n).FactorsInt()rhU;sage_notebook/worksheets/cnta___using_other_systems/cells/2rhU[ -3, 3, 223 ]rhhhh$hh&hhub(hor}r(hUpari(n).factor()rhU!
rhjhhhUhMhUxos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___using_other_systems/cells/3")
pari(n).factor()rhU;sage_notebook/worksheets/cnta___using_other_systems/cells/3rhU[-1, 1; 3, 2; 223, 1]r hhhh$hh&hhub(hor!}r"(hUgp(n).factor()r#hU!
r$hjhhhUhM
hUwos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___using_other_systems/cells/10")
gp(n).factor()r%hUr+hjhhhUhMhUzos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___using_other_systems/cells/4")
maxima(n).factor()r,hU;sage_notebook/worksheets/cnta___using_other_systems/cells/4r-hU-3^2*223r.hhhh$hh&hhub(hor/}r0(hUkash(n).Factorization()r1hU!
r2hjhhhUhMhUos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___using_other_systems/cells/5")
kash(n).Factorization()r3hU;sage_notebook/worksheets/cnta___using_other_systems/cells/5r4hUE[ <3, 2>, <223, 1> ], extended by:
  ext1 := -1,
  ext2 := Unassignr5hhhh$hh&hhub(hor6}r7(hU!magma(n).Factorization(nvals = 2)r8hU!
r9hjhhhUhMhUos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___using_other_systems/cells/6")
magma(n).Factorization(nvals = 2)r:hU;sage_notebook/worksheets/cnta___using_other_systems/cells/6r;hU([ <3, 2>, <223, 1> ], -1)r<hhhh$hh&hhub(hor=}r>(hUmaple(n).ifactor()r?hU!
r@hjhhhUhMhUzos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___using_other_systems/cells/7")
maple(n).ifactor()rAhU;sage_notebook/worksheets/cnta___using_other_systems/cells/7rBhU-``(3)^2*``(223)rChhhh$hh&hhub(horD}rE(hUmathematica(n).FactorInteger()rFhU!
rGhjhhhUhMhUos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___using_other_systems/cells/8")
mathematica(n).FactorInteger()rHhU;sage_notebook/worksheets/cnta___using_other_systems/cells/8rIhU{{-1, 1}, {3, 2}, {223, 1}}rJhhhh$hh&hhub(horK}rL(hU<%magma

n := -2007;
F, s := Factorization(-2007);
print F, srMhU!
rNhjhhhUhM	hUos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___using_other_systems/cells/9")
%magma

n := -2007;
F, s := Factorization(-2007);
print F, srOhU;sage_notebook/worksheets/cnta___using_other_systems/cells/9rPhU[ <3, 2>, <223, 1> ]
-1rQhhhh$hh&hhub(horR}rS(hU
magma('F')rThU!
rUhjhhhUhMhUsos.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___using_other_systems/cells/11")
magma('F')rVhU, <223, 1> ]rXhhhh$hh&hhub(horY}rZ(hUh^U!
r[hjhh`hUhMhaUios.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___using_other_systems/cells/12")
r\hUjA}raU/home/was/.sage/init.sagerbJ7Dsj?U3sage_notebook/worksheets/cnta___using_other_systemsrcjD]rdjFMjGUcnta - using other systemsrejIhjLNjKK
jJKubuU_Notebook__historyrf]rg(UG# Worksheet 'cnta - save / load' (2006-07-12 at 07:33)
sage: A.lksajd
5rhTD# Worksheet 'cnta - save / load' (2006-07-12 at 07:35)
sage: search_sage('helper for pickle')
--------------------------------------------------------
| SAGE Version 1.3.5.2, Build Date: 2006-07-08-0825    |
| Distributed under the GNU General Public License V2. |
--------------------------------------------------------riT=# Worksheet 'cnta - save / load' (2006-07-12 at 07:35)
sage: search_sage('for pickle')
--------------------------------------------------------
| SAGE Version 1.3.5.2, Build Date: 2006-07-08-0825    |
| Distributed under the GNU General Public License V2. |
--------------------------------------------------------rjUd# Worksheet 'cnta - save / load' (2006-07-12 at 07:39)
sage: A = MatrixSpace(QQ,2).random_element()
rkT # Worksheet 'cnta - save / load' (2006-07-12 at 07:39)
sage: loads(dumps(A))
Traceback (most recent call last):
    loads(dumps(A))
...
cPickle.PicklingError: Second element of tuple returned by  must be a tuplerlUd# Worksheet 'cnta - save / load' (2006-07-12 at 07:40)
sage: A = MatrixSpace(QQ,2).random_element()
rmT # Worksheet 'cnta - save / load' (2006-07-12 at 07:40)
sage: loads(dumps(A))
Traceback (most recent call last):
    loads(dumps(A))
...
cPickle.PicklingError: Second element of tuple returned by  must be a tuplernUd# Worksheet 'cnta - save / load' (2006-07-12 at 07:41)
sage: A = MatrixSpace(QQ,2).random_element()
roU# Worksheet 'cnta - save / load' (2006-07-12 at 07:41)
sage: loads(dumps(A))
Traceback (most recent call last):
    loads(dumps(A))
...
NotImplementedErrorrpUQ# Worksheet 'cnta - save / load' (2006-07-12 at 07:41)
sage: b = loads(dumps(A))
rqUH# Worksheet 'cnta - save / load' (2006-07-12 at 07:41)
sage: b.nrows()
2rrUx# Worksheet 'cnta - save / load' (2006-07-12 at 07:41)
sage: A = MatrixSpace(QQ,2).random_element()
sage: A.lkasjdf = 5
rsUQ# Worksheet 'cnta - save / load' (2006-07-12 at 07:41)
sage: b = loads(dumps(A))
rtU# Worksheet 'cnta - save / load' (2006-07-12 at 07:41)
sage: b.lkasjdf
Traceback (most recent call last):
    b.lkasjdf
...
AttributeError: 'matrix_pyx.Matrix' object has no attribute 'lkasjdf'ruUr# Worksheet 'cnta - save / load' (2006-07-12 at 07:41)
sage: A = MatrixSpace(QQ,2).random_element()
sage: A.l = 5
rvUQ# Worksheet 'cnta - save / load' (2006-07-12 at 07:41)
sage: b = loads(dumps(A))
rwU# Worksheet 'cnta - save / load' (2006-07-12 at 07:41)
sage: b.l
Traceback (most recent call last):
    b.l
...
AttributeError: 'matrix_pyx.Matrix' object has no attribute 'l'rxUr# Worksheet 'cnta - save / load' (2006-07-12 at 07:44)
sage: A = MatrixSpace(QQ,2).random_element()
sage: A.l = 5
ryU# Worksheet 'cnta - save / load' (2006-07-12 at 07:44)
sage: b = loads(dumps(A))
Traceback (most recent call last):
    b = loads(dumps(A))
...
IOError: invalid data streamrzTW# Worksheet 'cnta - save / load' (2006-07-12 at 07:45)
sage: dumps(A)
'x\x9cuP\xcbN\xc30\x10\x14\x01ZH)\xef\x97\xc4\x01\x89S\xb8\xe43\xb8T\xf8P\xe4\xf3\xcaq\x96\
\xc8R\x9at\xbd\x8e\x08\x87Jp\xe4\xafq\x14S\nJ}\xf1\xeejgvf>"\xcd\xaa\xc0t\xa1\x9c5m\xf8`\x\
f9\xde\xc6\x00\x16\xf3F#\xc0\xf3\xef\x90v\x92\xa1}^*\x8dq\xbf\xf7\xd2\xd5\xf0j\xb0\xcc...r{U# Worksheet 'cnta - save / load' (2006-07-12 at 07:45)
sage: loads(dumps(A))
Traceback (most recent call last):
    loads(dumps(A))
...
IOError: invalid data streamr|Ur# Worksheet 'cnta - save / load' (2006-07-12 at 07:46)
sage: A = MatrixSpace(QQ,2).random_element()
sage: A.l = 5
r}U# Worksheet 'cnta - save / load' (2006-07-12 at 07:46)
sage: loads(dumps(A))
Traceback (most recent call last):
    loads(dumps(A))
...
NotImplementedErrorr~UQ# Worksheet 'cnta - save / load' (2006-07-12 at 07:46)
sage: B = loads(dumps(A))
rU# Worksheet 'cnta - save / load' (2006-07-12 at 07:46)
sage: B.l
Traceback (most recent call last):
    B.l
...
AttributeError: 'matrix_pyx.Matrix' object has no attribute 'l'rU# Worksheet 'cnta - save / load' (2006-07-12 at 07:46)
sage: B.nrows
rUH# Worksheet 'cnta - save / load' (2006-07-12 at 07:46)
sage: B.nrows()
2rU# Worksheet 'cnta - save / load' (2006-07-12 at 07:46)
sage: B[1,1]
Traceback (most recent call last):
    B[1,1]
...
NotImplementedErrorrU_# Worksheet 'cnta - save / load' (2006-07-12 at 07:46)
sage: type(B)
rUw# Worksheet 'cnta - save / load' (2006-07-12 at 07:46)
sage: type(A)
rUM# Worksheet 'cnta - save / load' (2006-07-12 at 07:47)
sage: c = A.__class__
rU# Worksheet 'cnta - save / load' (2006-07-12 at 07:47)
sage: new(c)
Traceback (most recent call last):
    new(c)
...
NameError: name 'new' is not definedrU# Worksheet 'cnta - save / load' (2006-07-12 at 07:47)
sage: c.__new__()
Traceback (most recent call last):
    c.__new__()
...
TypeError: matrix_pyx.Matrix.__new__(): not enough argumentsrU# Worksheet 'cnta - save / load' (2006-07-12 at 07:47)
sage: c.__new__(A.parent())
Traceback (most recent call last):
    c.__new__(A.parent())
...
TypeError: matrix_pyx.Matrix.__new__(X): X is not a type object (MatrixSpace_field)rU# Worksheet 'cnta - save / load' (2006-07-12 at 07:47)
sage: c.__new__(type(A))
Traceback (most recent call last):
    c.__new__(type(A))
...
TypeError: int() argument must be a string or a numberrU# Worksheet 'cnta - save / load' (2006-07-12 at 07:48)
sage: c.__new__(type(A),2,3)
Traceback (most recent call last):
    c.__new__(type(A),2,3)
...
TypeError: int() argument must be a string or a numberrUX# Worksheet 'cnta - save / load' (2006-07-12 at 07:48)
sage: d = c.__new__(type(A),2,3)
rUw# Worksheet 'cnta - save / load' (2006-07-12 at 07:48)
sage: type(d)
rUr# Worksheet 'cnta - save / load' (2006-07-12 at 07:48)
sage: A = MatrixSpace(QQ,2).random_element()
sage: A.l = 5
rUM# Worksheet 'cnta - save / load' (2006-07-12 at 07:48)
sage: c = A.__class__
rUq# Worksheet 'cnta - save / load' (2006-07-12 at 07:48)
sage: c
rUX# Worksheet 'cnta - save / load' (2006-07-12 at 07:48)
sage: d = c.__new__(type(A),2,3)
rUr# Worksheet 'cnta - save / load' (2006-07-12 at 07:50)
sage: A = MatrixSpace(QQ,2).random_element()
sage: A.l = 5
rUr# Worksheet 'cnta - save / load' (2006-07-12 at 07:50)
sage: A = MatrixSpace(QQ,2).random_element()
sage: A.l = 5
rU# Worksheet 'cnta - save / load' (2006-07-12 at 07:50)
sage: B = loads(dumps(A))
Traceback (most recent call last):
    B = loads(dumps(A))
...
AttributeError: 'Matrix_dense_rational' object has no attribute '__type__'rUM# Worksheet 'cnta - save / load' (2006-07-12 at 07:50)
sage: c = A.__class__
rU\# Worksheet 'cnta - save / load' (2006-07-12 at 07:51)
sage: d = c.__new__(A.__class__,2,3)
rUw# Worksheet 'cnta - save / load' (2006-07-12 at 07:51)
sage: type(d)
rUX# Worksheet 'cnta - save / load' (2006-07-12 at 07:51)
sage: d = c.__new__(A.__class__)
rUw# Worksheet 'cnta - save / load' (2006-07-12 at 07:51)
sage: type(d)
rUr# Worksheet 'cnta - save / load' (2006-07-12 at 07:51)
sage: A = MatrixSpace(QQ,2).random_element()
sage: A.l = 5
rUQ# Worksheet 'cnta - save / load' (2006-07-12 at 07:51)
sage: B = loads(dumps(A))
rUG# Worksheet 'cnta - save / load' (2006-07-12 at 07:51)
sage: B.nrows()
rUw# Worksheet 'cnta - save / load' (2006-07-12 at 07:51)
sage: type(B)
rUG# Worksheet 'cnta - save / load' (2006-07-12 at 07:52)
sage: B.nrows()
rU# Worksheet 'cnta - save / load' (2006-07-12 at 07:52)
sage: B.parent()
Full MatrixSpace of 2 by 2 dense matrices over Rational FieldrUr# Worksheet 'cnta - save / load' (2006-07-12 at 07:54)
sage: A = MatrixSpace(QQ,2).random_element()
sage: A.l = 5
rU# Worksheet 'cnta - save / load' (2006-07-12 at 07:54)
sage: B = loads(dumps(A))
Traceback (most recent call last):
    B = loads(dumps(A))
...
cPickle.PicklingError: Can't pickle : import of module mutability_pyx failedrUr# Worksheet 'cnta - save / load' (2006-07-12 at 07:55)
sage: A = MatrixSpace(QQ,2).random_element()
sage: A.l = 5
rUQ# Worksheet 'cnta - save / load' (2006-07-12 at 07:55)
sage: B = loads(dumps(A))
rU# Worksheet 'cnta - save / load' (2006-07-12 at 07:55)
sage: B.parent()
Full MatrixSpace of 2 by 2 dense matrices over Rational FieldrUH# Worksheet 'cnta - save / load' (2006-07-12 at 07:55)
sage: B.nrows()
2rUK# Worksheet 'cnta - save / load' (2006-07-12 at 07:55)
sage: B
[1 2]
[1 1]rUV# Worksheet 'cnta - save / load' (2006-07-12 at 07:55)
sage: A == loads(dumps(A))
TruerUW# Worksheet 'cnta - save / load' (2006-07-12 at 07:55)
sage: A is loads(dumps(A))
FalserU{# Worksheet 'cnta - save / load' (2006-07-12 at 07:55)
sage: A = MatrixSpace(Integers(8),2).random_element()
sage: A.l = 5
rUW# Worksheet 'cnta - save / load' (2006-07-12 at 07:55)
sage: A is loads(dumps(A))
FalserUU# Worksheet 'cnta - save / load' (2006-07-12 at 07:55)
sage: A ==loads(dumps(A))
TruerUY# Worksheet 'cnta - save / load' (2006-07-12 at 07:55)
sage: loads(dumps(A))
[7 6]
[2 1]rU{# Worksheet 'cnta - save / load' (2006-07-12 at 08:00)
sage: A = MatrixSpace(Integers(8),2).random_element()
sage: A.l = 5
rU{# Worksheet 'cnta - save / load' (2006-07-12 at 08:01)
sage: A = MatrixSpace(Integers(8),2).random_element()
sage: A.l = 5
rU# Worksheet 'cnta - save / load' (2006-07-12 at 08:01)
sage: A ==loads(dumps(A))
Traceback (most recent call last):
    A ==loads(dumps(A))
...
NameError: sagerU{# Worksheet 'cnta - save / load' (2006-07-12 at 08:01)
sage: A = MatrixSpace(Integers(8),2).random_element()
sage: A.l = 5
rU# Worksheet 'cnta - save / load' (2006-07-12 at 08:01)
sage: A ==loads(dumps(A))
Traceback (most recent call last):
    A ==loads(dumps(A))
...
cPickle.PicklingError: Can't pickle : import of module mutability_pyx failedrU{# Worksheet 'cnta - save / load' (2006-07-12 at 08:03)
sage: A = MatrixSpace(Integers(8),2).random_element()
sage: A.l = 5
rU# Worksheet 'cnta - save / load' (2006-07-12 at 08:03)
sage: A ==loads(dumps(A))
Traceback (most recent call last):
    A ==loads(dumps(A))
...
NameError: sagerU{# Worksheet 'cnta - save / load' (2006-07-12 at 08:04)
sage: A = MatrixSpace(Integers(8),2).random_element()
sage: A.l = 5
rUU# Worksheet 'cnta - save / load' (2006-07-12 at 08:04)
sage: A ==loads(dumps(A))
TruerUB# Worksheet 'cnta - save / load' (2006-07-12 at 08:04)
sage: A.l
5rU# Worksheet 'cnta - save / load' (2006-07-12 at 08:04)
sage: A.charpoly()
Traceback (most recent call last):
    A.charpoly()
...
NotImplementedErrorrUf# Worksheet 'cnta - save / load' (2006-07-12 at 08:04)
sage: A = MatrixSpace(QQ,100).random_element()
rUe# Worksheet 'cnta - save / load' (2006-07-12 at 08:05)
sage: A = MatrixSpace(QQ,50).random_element()
rUL# Worksheet 'cnta - save / load' (2006-07-12 at 08:05)
sage: A.save('amat')
rT[# Worksheet 'cnta - save / load' (2006-07-12 at 08:05)
sage: load('amat')
[ 2 -1  2  2  2 -2 -1 -2  2  2 -2  1 -1 -1  2 -2  1 -1 -1 -1  1 -1  1 -1  2  1  1 -1 -1  2
-1 -1 -2  1 -2 -1  1  2 -2  2  2 -1 -2  1 -1  1 -2  2  2 -1]
[ 2 -1  1  2  2 -2  2  1  2 -2  1  1 -1 -1 -1 -2 -1  2  1  2  1 -2 -1  1  1  1  1 -2  2  1
-2  1 -1  1  1 -1 -2 -2  1...rUN# Worksheet 'cnta - save / load' (2006-07-12 at 08:05)
sage: f = A.charpoly()
rTY# Worksheet 'cnta - save / load' (2006-07-12 at 08:05)
sage: f.factor()
(x^50 + 4*x^49 - 17*x^48 + 223*x^47 - 3175*x^46 + 39419*x^45 + 178933*x^44 + 6721023*x^43
+ 62309197*x^42 + 686595910*x^41 + 9869795996*x^40 - 115422131577*x^39 - 180040202922*x^38
+ 2496681744386*x^37 + 137615943938023*x^36 + 945174540623537*x^35 - 8597542011686976*x^3...rTg# Worksheet 'cnta - save / load' (2006-07-12 at 08:05)
sage: f = A.charpoly()
sage: f
x^50 + 4*x^49 - 17*x^48 + 223*x^47 - 3175*x^46 + 39419*x^45 + 178933*x^44 + 6721023*x^43 +
62309197*x^42 + 686595910*x^41 + 9869795996*x^40 - 115422131577*x^39 - 180040202922*x^38 +
2496681744386*x^37 + 137615943938023*x^36 + 945174540623537*x^35 - 8597542011686976*x^34...rU# Worksheet 'cnta - save / load' (2006-07-12 at 08:06)
sage: M = ModularSymbols(Gamma1(13),2); M
Modular Symbols space of dimension 15 for Gamma_1(13) of weight 2 with sign 0 and over
Rational FieldrU# Worksheet 'cnta - save / load' (2006-07-12 at 08:07)
sage: A = Matrix(Integer(8),3,range(9))
Traceback (most recent call last):
    A = Matrix(Integer(8),3,range(9))
...
TypeError: R (=8) must be a ring.rU`# Worksheet 'cnta - save / load' (2006-07-12 at 08:07)
sage: A = Matrix(Integers(8),3,range(9))
rU# Worksheet 'cnta - save / load' (2006-07-12 at 08:07)
sage: A = Matrix(Integer(8),3,range(9))
sage: loads(dumps(A)) == A
Traceback (most recent call last):
    A = Matrix(Integer(8),3,range(9))
...
TypeError: R (=8) must be a ring.rU# Worksheet 'cnta - save / load' (2006-07-12 at 08:07)
sage: A = Matrix(Integers(8),3,range(9))
sage: loads(dumps(A)) == A
TruerUN# Worksheet 'cnta - save / load' (2006-07-12 at 08:08)
sage: A.determinant()
0rUH# Worksheet 'cnta - save / load' (2006-07-12 at 08:08)
sage: A[0,0] = 5
rUN# Worksheet 'cnta - save / load' (2006-07-12 at 08:08)
sage: A.determinant()
7rUH# Worksheet 'cnta - save / load' (2006-07-12 at 08:08)
sage: A[0,0] = 5
rUO# Worksheet 'cnta - save / load' (2006-07-12 at 08:08)
sage: A.set_immutable()
rU# Worksheet 'cnta - save / load' (2006-07-12 at 08:08)
sage: A[0,0] = 5
Traceback (most recent call last):
    A[0,0] = 5
...
ValueError: object is immutable; please change a copy instead.rU# Worksheet 'cnta - save / load' (2006-07-12 at 08:11)
sage: latex(A)
Traceback (most recent call last):
...
NameError: name 'A' is not definedrU# Worksheet 'cnta - save / load' (2006-07-12 at 08:11)
sage: A = Matrix(Integers(8),3,range(9))
sage: loads(dumps(A)) == A
TruerUN# Worksheet 'cnta - save / load' (2006-07-12 at 08:11)
sage: A.determinant()
0rU# Worksheet 'cnta - save / load' (2006-07-12 at 08:11)
sage: latex(A)
\left(\begin{array}{rrr}
0&1&2\\
3&4&5\\
6&7&0
\end{array}\right)rUc# Worksheet 'cnta - save / load' (2006-07-12 at 08:14)
sage: M=ntl.mat_ZZ(3,3,[1,2,3,4,5,6,7,8,9])
rUL# Worksheet 'cnta - save / load' (2006-07-12 at 08:14)
sage: M.LLL()
(2, 54)rUS# Worksheet 'cnta - save / load' (2006-07-12 at 08:15)
sage: 2/3 == pari(2/3)
FalserUN# Worksheet 'cnta - save / load' (2006-07-12 at 08:15)
sage: 1 == pari(1)
TruerU# Worksheet 'cnta - save / load' (2006-07-12 at 08:15)
sage: QQ._coerce_(pari(2/3))
Traceback (most recent call last):
    QQ._coerce_(pari(2/3))
...
TypeErrorrU# Worksheet 'cnta - save / load' (2006-07-12 at 08:15)
sage: pari.__coerce__(2/3)
Traceback (most recent call last):
    pari.__coerce__(2/3)
...
AttributeError: 'gen.PariInstance' object has no attribute '__coerce__'rU# Worksheet 'cnta - save / load' (2006-07-12 at 08:15)
sage: pari._coerce_(2/3)
Traceback (most recent call last):
    pari._coerce_(2/3)
...
TypeError: x must be a PARI objectrU_# Worksheet 'cnta - save / load' (2006-07-12 at 08:16)
sage: type(pari(1) + 1)
rUe# Worksheet 'cnta - save / load' (2006-07-12 at 08:16)
sage: type(1+pari(1))
rUe# Worksheet 'cnta - save / load' (2006-07-12 at 08:16)
sage: type(2/3 + 1)
rUc# Worksheet 'cnta - save / load' (2006-07-12 at 08:16)
sage: type(1+2/3)
rUa# Worksheet 'cnta - save / load' (2006-07-12 at 08:17)
sage: canonical_coercion(1,pari(1))
(1, 1)rU_# Worksheet 'cnta - save / load' (2006-07-12 at 08:17)
sage: a,b=canonical_coercion(1,pari(1))
rU# Worksheet 'cnta - save / load' (2006-07-12 at 08:17)
sage: type(a), type(b)
(, )rU_# Worksheet 'cnta - save / load' (2006-07-12 at 08:17)
sage: a,b=canonical_coercion(pari(1),1)
rU# Worksheet 'cnta - save / load' (2006-07-12 at 08:17)
sage: type(a), type(b)
(, )rUB# Worksheet 'cnta - save / load' (2006-07-12 at 08:17)
sage: a+b
2rU_# Worksheet 'cnta - save / load' (2006-07-12 at 08:17)
sage: type(a+b)
rU# Worksheet 'cnta - save / load' (2006-07-12 at 08:17)
sage: type(pari(1),1)
Traceback (most recent call last):
    type(pari(1),1)
...
TypeError: type() takes 1 or 3 argumentsrU]# Worksheet 'cnta - save / load' (2006-07-12 at 08:17)
sage: type(pari(1)+1)
rUe# Worksheet 'cnta - save / load' (2006-07-12 at 08:17)
sage: type(1+pari(1))
rU]# Worksheet 'cnta - save / load' (2006-07-12 at 08:17)
sage: type(pari(1)+1)
rU# Worksheet 'cnta - save / load' (2006-07-12 at 08:20)
sage: type(pari(1)+1)
Traceback (most recent call last):
    os.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___save___load/cells/34")
...
NameError: name 'os' is not definedrU# Worksheet 'cnta - save / load' (2006-07-12 at 08:20)
sage: type(pari(1)+1)
Traceback (most recent call last):
    os.chdir("/home/was/talks/2006-07-09-cnta/sage_notebook/worksheets/cnta___save___load/cells/34")
...
NameError: name 'os' is not definedrUe# Worksheet 'cnta - save / load' (2006-07-12 at 08:21)
sage: type(pari(1)+1)
rUe# Worksheet 'cnta - save / load' (2006-07-12 at 08:21)
sage: type(1+pari(1))
rT# Worksheet 'cnta - save / load' (2006-07-12 at 08:21)
sage: type(1+pari(1/3))
Traceback (most recent call last):
    type(1+pari(1/3))
...
TypeError: unable to find a common parent for 1 (parent: Integer Ring) and 1/3 (parent: Interface to the PARI C library)rUN# Worksheet 'cnta - save / load' (2006-07-12 at 08:21)
sage: pari(1) + gp(1)
2rUy# Worksheet 'cnta - save / load' (2006-07-12 at 08:21)
sage: type(pari(1) + gp(1))
rU# Worksheet 'cnta - save / load' (2006-07-12 at 08:22)
sage: print type(pari(1) + gp(1)), type(gp(1) + pari(1))
 rU# Worksheet 'cnta - save / load' (2006-07-12 at 08:24)
sage: print type(pari(1) + gp(1)), type(gp(1) + pari(1))
 rU# Worksheet 'cnta - save / load' (2006-07-12 at 08:24)
sage: print type(pari(1) + gp(1)), type(gp(1) + pari(1))
 rU# Worksheet 'cnta - save / load' (2006-07-12 at 08:25)
sage: pari(gp(1))
Traceback (most recent call last):
    pari(gp(1))
...
AttributeErrorrU# Worksheet 'cnta - save / load' (2006-07-12 at 08:26)
sage: print type(pari(1) + gp(1)), type(gp(1) + pari(1))
 rU# Worksheet 'cnta - save / load' (2006-07-12 at 08:26)
sage: pari(gp(1))
Traceback (most recent call last):
    pari(gp(1))
...
AttributeErrorrU# Worksheet 'cnta - save / load' (2006-07-12 at 08:26)
sage: pari(gp(1))
Traceback (most recent call last):
...
AttributeErrorrU# Worksheet 'cnta - save / load' (2006-07-12 at 08:27)
sage: pari._coerce_(gp(1))
Traceback (most recent call last):
    pari._coerce_(gp(1))
...
TypeError: no canonical coercion of 1 into PARIrU# Worksheet 'cnta - save / load' (2006-07-12 at 08:27)
sage: print type(pari(1) + gp(1)), type(gp(1) + pari(1))
 rU# Worksheet 'cnta - save / load' (2006-07-12 at 08:27)
sage: pari(gp(1))
Traceback (most recent call last):
    pari(gp(1))
...
AttributeErrorrUJ# Worksheet 'cnta - save / load' (2006-07-12 at 08:29)
sage: pari(gp(1))
1rTQ# Worksheet 'cnta - save / load' (2006-07-12 at 08:29)
sage: print type(pari(1) + gp(1)), type(gp(1) + pari(1))
Traceback (most recent call last):
    print type(pari(1) + gp(1)), type(gp(1) + pari(1))
...
TypeError: unable to find an unambiguous parent for 1 (parent: Interface to the PARI C library) and 1 (parent: GP/PARI interpreter)rTE# Worksheet 'cnta - save / load' (2006-07-12 at 08:29)
sage: print type(pari(1) + gap(1)), type(gap(1) + pari(1))
Traceback (most recent call last):
    print type(pari(1) + gap(1)), type(gap(1) + pari(1))
...
TypeError: unable to find an unambiguous parent for 1 (parent: Interface to the PARI C library) and 1 (parent: Gap)rT1# Worksheet 'cnta - save / load' (2006-07-12 at 08:29)
sage: print type(gp(1) + gap(1)), type(gap(1) + gp(1))
Traceback (most recent call last):
    print type(gp(1) + gap(1)), type(gap(1) + gp(1))
...
TypeError: unable to find an unambiguous parent for 1 (parent: GP/PARI interpreter) and 1 (parent: Gap)rUJ# Worksheet 'cnta - save / load' (2006-07-12 at 08:29)
sage: pari(gp(1))
1rU# Worksheet 'cnta - save / load' (2006-07-12 at 08:29)
sage: pari(ModularSymbols(37))
Traceback (most recent call last):
    pari(ModularSymbols(37))
...
gen.PariError: unknown function or error in formal parameters (3)rU# Worksheet 'cnta - save / load' (2006-07-12 at 08:31)
sage: pari(ModularSymbols(37))
Traceback (most recent call last):
...
gen.PariError: unknown function or error in formal parameters (3)rU# Worksheet 'cnta - save / load' (2006-07-12 at 08:31)
sage: pari(ModularSymbols(37))
Traceback (most recent call last):
...
gen.PariError: unknown function or error in formal parameters (3)rTg# Worksheet 'cnta - save / load' (2006-07-12 at 08:32)
sage: pari(ModularSymbols(37))
1
2
3
1
2
3
1
2
3
1
2
3
1
2
3
1
2
3
1
2
3
1
2
3
1
2
3
1
2
3
1
2
3
1
2
3
1
2
3
1
2
3
1
2
3
1
2
3
1
2
3
1
2
3
1
2
3
1
2
3
1
2
3
1
2
3
1
2
3
1
2
3
1
2
3
1
2
3
1
2
3
1
2
3
1
2
3
1
2
3
...rTI# Worksheet 'cnta - save / load' (2006-07-12 at 08:32)
sage: pari(ModularSymbols(37))
1
Traceback (most recent call last):
    pari(ModularSymbols(37))
  File "/home/was/talks/2006-07-09-cnta/", line 1, in ?
    
  File "gen.pyx", line 5645, in gen._pari_trap
gen.PariError: unknown function or error in formal parameters (3)rTM# Worksheet 'cnta - save / load' (2006-07-12 at 08:32)
sage: pari('ModularSymbols(37)')
1
Traceback (most recent call last):
    pari('ModularSymbols(37)')
  File "/home/was/talks/2006-07-09-cnta/", line 1, in ?
    
  File "gen.pyx", line 5645, in gen._pari_trap
gen.PariError: unknown function or error in formal parameters (3)rT# Worksheet 'cnta - save / load' (2006-07-12 at 08:32)
sage: pari('2/0')
1
Traceback (most recent call last):
    pari('2/0')
  File "/home/was/talks/2006-07-09-cnta/", line 1, in ?
    
  File "gen.pyx", line 5645, in gen._pari_trap
gen.PariError: division by zero (46)rUJ# Worksheet 'cnta - save / load' (2006-07-12 at 08:35)
sage: pari(gp(1))
1rU# Worksheet 'cnta - save / load' (2006-07-12 at 08:35)
sage: pari('2/0')
Traceback (most recent call last):
    pari('2/0')
...
gen.PariError: division by zero (46)rT1# Worksheet 'cnta - save / load' (2006-07-12 at 08:36)
sage: print type(gp(1) + gap(1)), type(gap(1) + gp(1))
Traceback (most recent call last):
    print type(gp(1) + gap(1)), type(gap(1) + gp(1))
...
TypeError: unable to find an unambiguous parent for 1 (parent: GP/PARI interpreter) and 1 (parent: Gap)rTQ# Worksheet 'cnta - save / load' (2006-07-12 at 08:36)
sage: print type(gp(1) + pari(1)), type(pari(1) + gp(1))
Traceback (most recent call last):
    print type(gp(1) + pari(1)), type(pari(1) + gp(1))
...
TypeError: unable to find an unambiguous parent for 1 (parent: GP/PARI interpreter) and 1 (parent: Interface to the PARI C library)rU# Worksheet 'cnta - save / load' (2006-07-12 at 08:36)
sage: pari(1) + 1
Traceback (most recent call last):
    pari(1) + 1
...
TypeError: unable to find an unambiguous parent for 1 (parent: Interface to the PARI C library) and 1 (parent: Integer Ring)rU# Worksheet 'cnta - save / load' (2006-07-12 at 08:36)
sage: 1 + pari(1)
Traceback (most recent call last):
    1 + pari(1)
...
TypeError: unable to find an unambiguous parent for 1 (parent: Integer Ring) and 1 (parent: Interface to the PARI C library)rU# Worksheet 'cnta - save / load' (2006-07-12 at 08:36)
sage: pari(GF(3)(2))
Traceback (most recent call last):
    pari(GF(3)(2))
...
TypeError: instance exception may not have a separate valuerU# Worksheet 'cnta - save / load' (2006-07-12 at 08:36)
sage: pari(1) + GF(3)(2)
Traceback (most recent call last):
    pari(1) + GF(3)(2)
...
TypeError: instance exception may not have a separate valuerU# Worksheet 'cnta - save / load' (2006-07-12 at 08:37)
sage: pari(1) + GF(3)(2)
Traceback (most recent call last):
...
TypeError: no way to coerce 1 into this ring.r	U# Worksheet 'cnta - save / load' (2006-07-12 at 08:37)
sage: pari(1) + GF(3)(2)
Traceback (most recent call last):
...
TypeError: no way to coerce 1 of type  into Finite Field of size 3.r
U# Worksheet 'cnta - save / load' (2006-07-12 at 08:38)
sage: GF(3)(int(1))
Traceback (most recent call last):
    GF(3)(int(1))
...
TypeError: no way to coerce 1 of type  into Finite Field of size 3.rU# Worksheet 'cnta - save / load' (2006-07-12 at 08:38)
sage: GF(3)(int(1))
Traceback (most recent call last):
...
TypeError: 
no way to coerce 1 of type  into Finite Field of size 3.rU# Worksheet 'cnta - save / load' (2006-07-12 at 08:38)
sage: GF(3)(1)
Traceback (most recent call last):
    GF(3)(1)
...
TypeError: 
no way to coerce 1 of type  into Finite Field of size 3.r
U# Worksheet 'cnta - save / load' (2006-07-12 at 08:38)
sage: GF(3)(1)
Traceback (most recent call last):
    GF(3)(1)
...
TypeError: 
no way to coerce 1 of type  into Finite Field of size 3.rU# Worksheet 'cnta - save / load' (2006-07-12 at 08:39)
sage: GF(3)(1)
Traceback (most recent call last):
...
TypeError: no way to coerce 1 of type  into Finite Field of size 3.rUz# Worksheet 'cnta - save / load' (2006-07-12 at 08:39)
sage: GF(3)(1)
Traceback (most recent call last):
...
RuntimeErrorrUG# Worksheet 'cnta - save / load' (2006-07-12 at 08:40)
sage: GF(3)(1)
1rUY# Worksheet 'cnta - save / load' (2006-07-12 at 08:40)
sage: pari(1) + GF(3)(2)
Mod(0, 3)rUU# Worksheet 'cnta - save / load' (2006-07-12 at 08:40)
sage: pari(GF(3)(1))
Mod(1, 3)rUY# Worksheet 'cnta - save / load' (2006-07-12 at 08:41)
sage: GF(3)(2) + pari(2)
Mod(1, 3)rT# Worksheet 'cnta - save / load' (2006-07-12 at 08:41)
sage: gap(1) + gp(1) + magma(1)
Traceback (most recent call last):
    gap(1) + gp(1) + magma(1)
...
TypeError: unable to find an unambiguous parent for 1 (parent: Gap) and 1 (parent: GP/PARI interpreter)rU# Worksheet 'cnta - save / load' (2006-07-12 at 08:42)
sage: R. = PolynomialRing(QQ,2)
sage: f = y^2 + y - x^3 - 17/3*x + 2/3
rUD# Worksheet 'cnta - save / load' (2006-07-12 at 08:42)
sage: save f
rU# Worksheet 'cnta - save / load' (2006-07-12 at 08:42)
sage: A = Matrix(Integers(8),3,range(9))
sage: loads(dumps(A)) == A
True
rU# Worksheet 'cnta - save / load' (2006-07-12 at 08:42)
sage: M.LLL()
Traceback (most recent call last):
    M.LLL()
...
NameError: name 'M' is not definedrU8# Worksheet 'cnta - save / load' (2006-07-12 at 08:43)

rU# Worksheet 'cnta - save / load' (2006-07-12 at 08:43)
sage: view(A)
\left(\begin{array}{rrr}
0&1&2\\
3&4&5\\
6&7&0
\end{array}\right)rU# Worksheet 'cnta - save / load' (2006-07-12 at 08:43)
sage: A = Matrix(Integers(8),3,range(9))
sage: view(A)
sage: loads(dumps(A)) == A
TruerU# Worksheet 'cnta - save / load' (2006-07-12 at 08:43)
sage: A = Matrix(Integers(8),3,range(9))
sage: view(A)
sage: loads(dumps(A)) == A
TruerU# Worksheet 'cnta - save / load' (2006-07-12 at 08:43)
sage: A = Matrix(Integers(8),3,range(9))
sage: show(A)
sage: loads(dumps(A)) == A
\left(\begin{array}{rrr} 0&1&2\\ 3&4&5\\ 6&7&0 \end{array}\right)
TruerUN# Worksheet 'cnta - save / load' (2006-07-12 at 08:43) sage: A.determinant() 0rTa# Worksheet 'cnta - save / load' (2006-07-12 at 08:43) sage: view(load('amat')) \left(\begin{array}{rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr} 2&-1&2&2&2&-2&-1&-2&2&2&-2&1&-1&-1&2&-2&1&-1&-1&-1&1&-1&1&-1&2&1&1&-1&-1&2&-1&-1&-2&1&-2&-\ 1&1&2&-2&2&2&-1&-2&1&-1&1&-2&2&2&-1\\ 2&-1&1&2&2&-2&2&1&2&-2&1&1&-1&-1&-1&-2&-1...r T[# Worksheet 'cnta - save / load' (2006-07-12 at 08:43) sage: load('amat') [ 2 -1 2 2 2 -2 -1 -2 2 2 -2 1 -1 -1 2 -2 1 -1 -1 -1 1 -1 1 -1 2 1 1 -1 -1 2 -1 -1 -2 1 -2 -1 1 2 -2 2 2 -1 -2 1 -1 1 -2 2 2 -1] [ 2 -1 1 2 2 -2 2 1 2 -2 1 1 -1 -1 -1 -2 -1 2 1 2 1 -2 -1 1 1 1 1 -2 2 1 -2 1 -1 1 1 -1 -2 -2 1...r!U# Worksheet 'cnta - save / load' (2006-07-12 at 08:44) sage: M = ModularSymbols(Gamma1(13),2); M Modular Symbols space of dimension 15 for Gamma_1(13) of weight 2 with sign 0 and over Rational Fieldr"TW# Worksheet 'cnta - save / load' (2006-07-12 at 08:44) sage: dumps(M) 'x\x9c\xad\x9bw|\x14\xd5\xd7\xc6C&u\x13D\x10\x0b\xa2\x12\x1b\x065\xc8&\xa1Y\xb1\xa2.D\x01\\ xd7\x82\xe2\xba\tK6\x97\x14fv#\xa0\xae\x8aJ\x16\xb0\xa3`\x05A\x14{\xef\xbd\xf7\xde{\xef\xb\ d\xf7\xf6{\xce\xb9[\xce\xd9]\xd0\xf7\xf3y\xfd\x83\x87y\xe6;\xcf\xdc\xb9g\xe6\xce\x9d\x...r#U# Worksheet 'cnta - save / load' (2006-07-12 at 08:44) sage: loads(dumps(M)) Modular Symbols space of dimension 15 for Gamma_1(13) of weight 2 with sign 0 and over Rational Fieldr$UV# Worksheet 'cnta - save / load' (2006-07-12 at 08:44) sage: M == loads(dumps(M)) Truer%UV# Worksheet 'cnta - save / load' (2006-07-12 at 08:44) sage: M == loads(dumps(M)) Truer&UT# Worksheet 'cnta - save / load' (2006-07-12 at 08:44) sage: D = M.decomposition(2) r'TP# Worksheet 'cnta - save / load' (2006-07-12 at 08:44) sage: D [ Modular Symbols subspace of dimension 1 of Modular Symbols space of dimension 15 for Gamma_1(13) of weight 2 with sign 0 and over Rational Field, Modular Symbols subspace of dimension 1 of Modular Symbols space of dimension 15 for Gamma_1(13) of weight 2 with sign 0...r(UD# Worksheet 'cnta - save / load' (2006-07-12 at 08:44) sage: save D r)TX# Worksheet 'cnta - save / load' (2006-07-12 at 08:44) sage: load('D') [ Modular Symbols subspace of dimension 1 of Modular Symbols space of dimension 15 for Gamma_1(13) of weight 2 with sign 0 and over Rational Field, Modular Symbols subspace of dimension 1 of Modular Symbols space of dimension 15 for Gamma_1(13) of weight 2 with sign 0...r*U# Worksheet 'cnta - galois' (2006-07-12 at 08:51) sage: K = NumberField(x^7 - 3*x + 2) Traceback (most recent call last): ... ValueError: defining polynomial (x^7 - 3*x + 2) must be irreducibler+UW# Worksheet 'cnta - galois' (2006-07-12 at 08:51) sage: K = NumberField(x^7 - 3*x + 1) r,UM# Worksheet 'cnta - galois' (2006-07-12 at 08:51) sage: G = K.galois_group() r-U_# Worksheet 'cnta - galois' (2006-07-12 at 08:51) sage: G Transitive group number 7 of degree 7r.T,# Worksheet 'cnta - galois' (2006-07-12 at 08:51) sage: G.conjugacy_classes_representatives() [(), (1,2), (1,2)(3,4), (1,2)(3,4)(5,6), (1,2,3), (1,2,3)(4,5), (1,2,3)(4,5)(6,7), (1,2,3)(4,5,6), (1,2,3,4), (1,2,3,4)(5,6), (1,2,3,4)(5,6,7), (1,2,3,4,5), (1,2,3,4,5)(6,7), (1,2,3,4,5,6), (1,2,3,4,5,6,7)]r/UD# Worksheet 'cnta - galois' (2006-07-12 at 08:51) sage: gg = gap(G) r0Uq# Worksheet 'cnta - galois' (2006-07-12 at 08:52) sage: gg.NormalSubgroups() [ Group(()), Alt( [ 1 .. 7 ] ), S7 ]r1UF# Worksheet 'cnta - galois' (2006-07-12 at 08:53) sage: G.order() 5040r2U[# Worksheet 'cnta - galois' (2006-07-12 at 08:53) sage: factor(G.order()) 2^4 * 3^2 * 5 * 7r3Un# Worksheet 'cnta - galois' (2006-07-12 at 08:53) sage: G.order(), factor(G.order()) (5040, 2^4 * 3^2 * 5 * 7)r4U# Worksheet 'cnta - galois' (2006-07-12 at 08:53) sage: G.order(), factor(G.order()), factorial(7) (5040, 2^4 * 3^2 * 5 * 7, 5040)r5U# Worksheet 'cnta - galois' (2006-07-12 at 08:54) sage: G.order(), factor(G.order()), factorial(7) # It's just S_7 (5040, 2^4 * 3^2 * 5 * 7, 5040)r6T# Worksheet 'cnta - galois' (2006-07-12 at 08:56) sage: K = NumberField(x^2+17).compositum(NumberField(x^2-19)) Traceback (most recent call last): K = NumberField(x^2+17).compositum(NumberField(x^2-19)) ... AttributeError: 'NumberField_quadratic' object has no attribute 'compositum'r7Uv# Worksheet 'cnta - galois' (2006-07-12 at 08:56) sage: K = NumberField(x^2+17).composite_fields(NumberField(x^2-19)) r8U# Worksheet 'cnta - galois' (2006-07-12 at 08:56) sage: V = NumberField(x^2+17).composite_fields(NumberField(x^2-19)) sage: print V [Number Field in a with defining polynomial x^4 - 4*x^2 + 1296]r9U# Worksheet 'cnta - galois' (2006-07-12 at 08:56) sage: V = NumberField(x^2+17).composite_fields(NumberField(x^2-19)) sage: print V sage: K = V[0] [Number Field in a with defining polynomial x^4 - 4*x^2 + 1296]r:UM# Worksheet 'cnta - galois' (2006-07-12 at 08:56) sage: G = K.galois_group() r;U_# Worksheet 'cnta - galois' (2006-07-12 at 08:56) sage: G Transitive group number 2 of degree 4r<U# Worksheet 'cnta - galois' (2006-07-12 at 08:56) sage: G.order(), factor(G.order()), factorial(7) # It's just S_7 (4, 2^2, 5040)r=Uk# Worksheet 'cnta - galois' (2006-07-12 at 08:56) sage: G.order(), factor(G.order()) # It's just (4, 2^2)r>U# Worksheet 'cnta - galois' (2006-07-12 at 08:56) sage: G.order(), factor(G.order()) # It's just Z/2 x Z/2 of course (4, 2^2)r?U# Worksheet 'cnta - galois' (2006-07-12 at 08:56) sage: G.conjugacy_classes_representatives() [(), (1,2)(3,4), (1,3)(2,4), (1,4)(2,3)]r@UD# Worksheet 'cnta - galois' (2006-07-12 at 08:56) sage: gg = gap(G) rAU# Worksheet 'cnta - galois' (2006-07-12 at 08:56) sage: gg.NormalSubgroups() [ Group(()), Group([ (1,3)(2,4) ]), Group([ (1,2)(3,4) ]), Group([ (1,4)(2,3) ]), E(4) = 2[x]2 ]rBU# Worksheet 'cnta - galois' (2006-07-12 at 08:57) sage: V = NumberField(x^2+17).composite_fields(NumberField(x^3-19)) sage: print V sage: K = V[0] [Number Field in a with defining polynomial x^6 + 51*x^4 - 38*x^3 + 867*x^2 + 1938*x + 5274]rCU# Worksheet 'cnta - galois' (2006-07-12 at 08:57) sage: V = NumberField(x^2+17).composite_fields(NumberField(x^3-2)) sage: print V sage: K = V[0] [Number Field in a with defining polynomial x^6 + 51*x^4 - 4*x^3 + 867*x^2 + 204*x + 4917]rDUM# Worksheet 'cnta - galois' (2006-07-12 at 08:57) sage: G = K.galois_group() rEU_# Worksheet 'cnta - galois' (2006-07-12 at 08:57) sage: G Transitive group number 3 of degree 6rFU# Worksheet 'cnta - galois' (2006-07-12 at 08:57) sage: G.order(), factor(G.order()) # It's just Z/2 x Z/2 of course (12, 2^2 * 3)rGUb# Worksheet 'cnta - galois' (2006-07-12 at 08:57) sage: G.order(), factor(G.order()) (12, 2^2 * 3)rHU# Worksheet 'cnta - galois' (2006-07-12 at 08:57) sage: G.conjugacy_classes_representatives() [(), (2,6)(3,5), (1,2)(3,6)(4,5), (1,2,3,4,5,6), (1,3,5)(2,4,6), (1,4)(2,5)(3,6)]rIUG# Worksheet 'cnta - galois' (2006-07-12 at 08:57) sage: G.identity() ()rJUF# Worksheet 'cnta - galois' (2006-07-12 at 08:57) sage: G.id() [12, 4]rKUb# Worksheet 'cnta - galois' (2006-07-12 at 08:57) sage: G.order(), factor(G.order()) (12, 2^2 * 3)rLU# Worksheet 'cnta - galois' (2006-07-12 at 08:57) sage: G.conjugacy_classes_representatives() [(), (2,6)(3,5), (1,2)(3,6)(4,5), (1,2,3,4,5,6), (1,3,5)(2,4,6), (1,4)(2,5)(3,6)]rMUD# Worksheet 'cnta - galois' (2006-07-12 at 08:57) sage: G.order() 12rNU# Worksheet 'cnta - galois' (2006-07-12 at 08:57) sage: G.conjugacy_classes_representatives() [(), (2,6)(3,5), (1,2)(3,6)(4,5), (1,2,3,4,5,6), (1,3,5)(2,4,6), (1,4)(2,5)(3,6)]rOUD# Worksheet 'cnta - galois' (2006-07-12 at 08:57) sage: gg = gap(G) rPT+# Worksheet 'cnta - galois' (2006-07-12 at 08:57) sage: gg.NormalSubgroups() [ Group(()), Group([ (1,4)(2,5)(3,6) ]), Group([ (1,3,5)(2,4,6) ]), Group([ (1,3,5)(2,4,6), (1,2)(3,6)(4,5) ]), Group([ (1,3,5)(2,4,6), (2,6)(3,5) ]), Group([ (1,2,3,4,5,6), (1,3,5)(2,4,6) ]), D(6) = S(3)[x]2 ]rQUu# Worksheet 'cnta - galois' (2006-07-12 at 08:58) sage: K.class_group() Multiplicative Abelian Group isomorphic to C4rRU# Worksheet 'cnta - combinatorial geom' (2006-07-12 at 09:00) sage: P. = ProjectiveSpace(3,QQ) sage: C = P.subscheme([y^2-x*z, z^2-y*w, x*w-y*z]) rSU# Worksheet 'cnta - combinatorial geom' (2006-07-12 at 09:00) sage: P. = ProjectiveSpace(3,QQ) sage: C = P.subscheme([y^2-x*z, z^2-y*w, x*w-y*z]) rTT!# Worksheet 'cnta - combinatorial geom' (2006-07-12 at 09:00) sage: P. = ProjectiveSpace(3,QQ) sage: C = P.subscheme([y^2-x*z, z^2-y*w, x*w-y*z]) sage: C Closed subscheme of Projective Space of dimension 3 over Rational Field defined by: y^2 - x*z z^2 - y*w -1*y*z + x*wrUUw# Worksheet 'cnta - combinatorial geom' (2006-07-12 at 09:00) sage: len(C.irreducible_components()) # twisted cubic 1rVU[# Worksheet 'cnta - combinatorial geom' (2006-07-12 at 09:00) sage: J = C.defining_ideal() rWU# Worksheet 'cnta - combinatorial geom' (2006-07-12 at 09:00) sage: J = C.defining_ideal() sage: J Ideal (z^2 - y*w, -1*y*z + x*w, y^2 - x*z) of Polynomial Ring in x, y, z, w over Rational FieldrXUY# Worksheet 'cnta - combinatorial geom' (2006-07-12 at 09:00) sage: G = J.groebner_fan() rYU# Worksheet 'cnta - combinatorial geom' (2006-07-12 at 09:00) sage: G = J.groebner_fan() sage: G Groebner fan of the ideal: Ideal (z^2 - y*w, -1*y*z + x*w, y^2 - x*z) of Polynomial Ring in x, y, z, w over Rational FieldrZTp# Worksheet 'cnta - combinatorial geom' (2006-07-12 at 09:00) sage: G.reduced_groebner_bases() [[-1*z^2 + y*w, -1*y*z + x*w, -1*y^2 + x*z], [z^2 - y*w, -1*y*z + x*w, -1*y^2 + x*z], [z^2 - y*w, y*z - x*w, -1*y^2 + x*z, -1*y^3 + x^2*w], [z^2 - y*w, y*z - x*w, y^3 - x^2*w, -1*y^2 + x*z], [z^2 - y*w, y*z - x*w, y^2 - x*z], [-1*z^2 + y*w, y^2 - x*z, -1*y*z + x*w], [-1...r[U# Worksheet 'cnta - combinatorial geom' (2006-07-12 at 09:00) sage: K.class_group() Multiplicative Abelian Group isomorphic to C4 Traceback (most recent call last): sage: K.class_group() ... NameError: name 'K' is not definedr\UY# Worksheet 'cnta - combinatorial geom' (2006-07-12 at 09:00) sage: G.fvector() (1, 8, 8)r]Ur# Worksheet 'cnta - combinatorial geom' (2006-07-12 at 09:01) sage: f = prod(J.gens()) # \/-- newton polytope r^Ur# Worksheet 'cnta - combinatorial geom' (2006-07-12 at 09:01) sage: f = prod(J.gens()) # \/-- newton polytope r_Ur# Worksheet 'cnta - combinatorial geom' (2006-07-12 at 09:01) sage: f = prod(J.gens()) # \/-- newton polytope r`Um# Worksheet 'cnta - combinatorial geom' (2006-07-12 at 09:01) sage: NP = polymake.convex_hull(f.exponents()) raU# Worksheet 'cnta - combinatorial geom' (2006-07-12 at 09:01) sage: NP.facets() [(3/2, 5/2, -1, 0), (3, 1, -1, 0), (1, 0, 0, 0), (-3/2, 2, 1, 0), (3, -1, 4, 0), (-3, 1, 5, 0)]rbU# Worksheet 'cnta - combinatorial geom' (2006-07-12 at 09:01) sage: NP = polymake.convex_hull(f.exponents()) # -- newton polytope rcU# Worksheet 'cnta - combinatorial geom' (2006-07-12 at 09:01) sage: NP.facets() [(3/2, 5/2, -1, 0), (3, 1, -1, 0), (1, 0, 0, 0), (-3/2, 2, 1, 0), (3, -1, 4, 0), (-3, 1, 5, 0)]rdUW# Worksheet 'cnta - combinatorial geom' (2006-07-12 at 09:02) sage: f = prod(J.gens()) reU# Worksheet 'cnta - combinatorial geom' (2006-07-12 at 09:04) sage: NP.facets() Traceback (most recent call last): ... NameError: name 'NP' is not definedrfT!# Worksheet 'cnta - combinatorial geom' (2006-07-12 at 09:04) sage: P. = ProjectiveSpace(3,QQ) sage: C = P.subscheme([y^2-x*z, z^2-y*w, x*w-y*z]) sage: C Closed subscheme of Projective Space of dimension 3 over Rational Field defined by: y^2 - x*z z^2 - y*w -1*y*z + x*wrgUw# Worksheet 'cnta - combinatorial geom' (2006-07-12 at 09:04) sage: len(C.irreducible_components()) # twisted cubic 1rhU# Worksheet 'cnta - combinatorial geom' (2006-07-12 at 09:04) sage: J = C.defining_ideal() sage: J Ideal (z^2 - y*w, -1*y*z + x*w, y^2 - x*z) of Polynomial Ring in x, y, z, w over Rational FieldriU# Worksheet 'cnta - combinatorial geom' (2006-07-12 at 09:04) sage: G = J.groebner_fan() sage: G Groebner fan of the ideal: Ideal (z^2 - y*w, -1*y*z + x*w, y^2 - x*z) of Polynomial Ring in x, y, z, w over Rational FieldrjTp# Worksheet 'cnta - combinatorial geom' (2006-07-12 at 09:04) sage: G.reduced_groebner_bases() [[-1*z^2 + y*w, -1*y*z + x*w, -1*y^2 + x*z], [z^2 - y*w, -1*y*z + x*w, -1*y^2 + x*z], [z^2 - y*w, y*z - x*w, -1*y^2 + x*z, -1*y^3 + x^2*w], [z^2 - y*w, y*z - x*w, y^3 - x^2*w, -1*y^2 + x*z], [z^2 - y*w, y*z - x*w, y^2 - x*z], [-1*z^2 + y*w, y^2 - x*z, -1*y*z + x*w], [-1...rkUY# Worksheet 'cnta - combinatorial geom' (2006-07-12 at 09:04) sage: G.fvector() (1, 8, 8)rlUW# Worksheet 'cnta - combinatorial geom' (2006-07-12 at 09:04) sage: f = prod(J.gens()) rmU# Worksheet 'cnta - combinatorial geom' (2006-07-12 at 09:04) sage: NP = polymake.convex_hull(f.exponents()) # -- newton polytope rnU# Worksheet 'cnta - combinatorial geom' (2006-07-12 at 09:04) sage: NP.facets() [(3/2, 5/2, -1, 0), (3, 1, -1, 0), (1, 0, 0, 0), (-3/2, 2, 1, 0), (3, -1, 4, 0), (-3, 1, 5, 0)]roU?# Worksheet 'cnta - combinatorial geom' (2006-07-12 at 09:04) rpUW# Worksheet 'cnta - combinatorial geom' (2006-07-12 at 09:04) sage: f = prod(J.gens()) rqUW# Worksheet 'cnta - combinatorial geom' (2006-07-12 at 09:04) sage: f = prod(J.gens()) rrUQ# Worksheet '_scratch_' (2006-07-12 at 09:10) sage: M = ModularForms(Gamma0(23)) rsU# Worksheet '_scratch_' (2006-07-12 at 09:10) sage: M Modular Forms space of dimension 3 for Congruence Subgroup Gamma0(23) of weight 2 over Rational FieldrtU# Worksheet '_scratch_' (2006-07-12 at 09:10) sage: M.basis() [ q - q^3 - q^4 + O(q^6), q^2 - 2*q^3 - q^4 + 2*q^5 + O(q^6), 1 + 12/11*q + 36/11*q^2 + 48/11*q^3 + 84/11*q^4 + 72/11*q^5 + O(q^6) ]ruT# Worksheet 'cnta - modform' (2006-07-12 at 09:10) sage: M = ModularForms(1, 12) sage: M.basis() [ q - 24*q^2 + 252*q^3 - 1472*q^4 + 4830*q^5 + O(q^6), 1 + 65520/691*q + 134250480/691*q^2 + 11606736960/691*q^3 + 274945048560/691*q^4 + 3199218815520/691*q^5 + O(q^6) ]rvU# Worksheet 'cnta - modform' (2006-07-12 at 09:10) sage: S = M.cuspidal_submodule() sage: S.basis() [ q - 24*q^2 + 252*q^3 - 1472*q^4 + 4830*q^5 + O(q^6) ]rwU# Worksheet 'cnta - modform' (2006-07-12 at 09:10) sage: M = ModularForms(Gamma0(23),2) sage: M.basis() [ q - q^3 - q^4 + O(q^6), q^2 - 2*q^3 - q^4 + 2*q^5 + O(q^6), 1 + 12/11*q + 36/11*q^2 + 48/11*q^3 + 84/11*q^4 + 72/11*q^5 + O(q^6) ]rxUd# Worksheet 'cnta - modform' (2006-07-12 at 09:11) sage: M = ModularForms(DirichletGroup(13).0^2,2) ryU# Worksheet 'cnta - modform' (2006-07-12 at 09:11) sage: M = ModularForms(DirichletGroup(13).0^2,2) sage: M.basis() Traceback (most recent call last): M.basis() ... NotImplementedError: must restrict scalars down correctly.rzT6# Worksheet 'cnta - modform' (2006-07-12 at 09:11) sage: M = ModularForms(Gamma1(13),2) sage: M.basis() [ q - 4*q^3 - q^4 + 3*q^5 + O(q^6), q^2 - 2*q^3 - q^4 + 2*q^5 + O(q^6), 1 + O(q^6), q + O(q^6), q^2 + O(q^6), q^3 + O(q^6), q^4 + O(q^6), q^5 + O(q^6), O(q^6), O(q^6), O(q^6), O(q^6), O(q^6) ]r{T# Worksheet 'cnta - modform' (2006-07-12 at 09:11) sage: M = ModularForms(Gamma1(13),2,prec=10) sage: M.basis() [ q - 4*q^3 - q^4 + 3*q^5 + 6*q^6 - 3*q^8 + q^9 + O(q^10), q^2 - 2*q^3 - q^4 + 2*q^5 + 2*q^6 - 2*q^8 + q^9 + O(q^10), 1 + O(q^10), q + O(q^10), q^2 + O(q^10), q^3 + O(q^10), q^4 + O(q^10), q^5 + O(q^10), q^6 + O(q^10), q^7 + O(q^10), q^8 + O(q^10), q^9 + O(q...r|T# Worksheet 'cnta - modform' (2006-07-12 at 09:11) sage: M = ModularForms(Gamma1(13),2,prec=20) sage: M.basis() [ q - 4*q^3 - q^4 + 3*q^5 + 6*q^6 - 3*q^8 + q^9 - 6*q^10 - 2*q^12 + 2*q^13 + 10*q^16 - 3*q^17 - 3*q^18 - 6*q^19 + O(q^20), q^2 - 2*q^3 - q^4 + 2*q^5 + 2*q^6 - 2*q^8 + q^9 - 3*q^10 + 3*q^13 - 2*q^15 + 5*q^16 - 3*q^17 - 2*q^18 - 2*q^19 + O(q^20), 1 + 21060/19*q^11 - 36...r}T[# Worksheet 'cnta - modform' (2006-07-12 at 09:12) sage: S = M.cuspidal_subspace() sage: S.basis() [ q - 4*q^3 - q^4 + 3*q^5 + 6*q^6 - 3*q^8 + q^9 - 6*q^10 - 2*q^12 + 2*q^13 + 10*q^16 - 3*q^17 - 3*q^18 - 6*q^19 + O(q^20), q^2 - 2*q^3 - q^4 + 2*q^5 + 2*q^6 - 2*q^8 + q^9 - 3*q^10 + 3*q^13 - 2*q^15 + 5*q^16 - 3*q^17 - 2*q^18 - 2*q^19 + O(q^20) ]r~Tv# Worksheet 'cnta - modform' (2006-07-12 at 09:12) sage: E = M.eisenstein_subspace() sage: E.basis() [ 1 + 21060/19*q^11 - 36504/19*q^12 - 10270/19*q^13 - 388440/19*q^14 + 595140/19*q^15 + 89856/19*q^16 - 323856/19*q^17 - 939120/19*q^18 + 617760/19*q^19 + O(q^20), q + 11709/19*q^11 - 20687/19*q^12 - 17570/57*q^13 - 219842/19*q^14 + 336765/19*q^15 + 50783/19*q^16 - 18...rT`# Worksheet 'cnta - modform' (2006-07-12 at 09:12) sage: M.eisenstein_series() [ 1/2 + q + 3*q^2 + 4*q^3 + 7*q^4 + 6*q^5 + 12*q^6 + 8*q^7 + 15*q^8 + 13*q^9 + 18*q^10 + 12*q^11 + 28*q^12 + q^13 + 24*q^14 + 24*q^15 + 31*q^16 + 18*q^17 + 39*q^18 + 20*q^19 + O(q^20), -7/13*zeta6 - 11/13 + q + (2*zeta6 + 1)*q^2 + (-3*zeta6 + 1)*q^3 + (6*zeta6 - 3)*q^...rU# Worksheet 'cnta - modform' (2006-07-12 at 09:12) sage: t2 = M.T(2) sage: t2 Hecke operator T_2 on Modular Forms space of dimension 13 for Congruence Subgroup Gamma1(13) of weight 2 over Rational FieldrU# Worksheet 'cnta - modform' (2006-07-12 at 09:12) sage: t2.matrix() Traceback (most recent call last): t2.matrix() ... NotImplementedErrorrU# Worksheet 'cnta - modform' (2006-07-12 at 09:12) sage: t2 = S.T(2) sage: t2 Hecke operator T_2 on Cuspidal subspace of dimension 2 of Modular Forms space of dimension 13 for Congruence Subgroup Gamma1(13) of weight 2 over Rational FieldrU# Worksheet 'cnta - modform' (2006-07-12 at 09:12) sage: t2.matrix() Traceback (most recent call last): t2.matrix() ... NotImplementedErrorrUx# Worksheet 'cnta - modform' (2006-07-12 at 09:13) sage: M = ModularForms(Gamma0(11),6) sage: S = M.cuspidal_subspace() rT # Worksheet 'cnta - modform' (2006-07-12 at 09:13) sage: M = ModularForms(Gamma0(11),6) sage: S = M.cuspidal_subspace() sage: S Cuspidal subspace of dimension 4 of Modular Forms space of dimension 6 for Congruence Subgroup Gamma0(11) of weight 6 over Rational FieldrU# Worksheet 'cnta - modform' (2006-07-12 at 09:13) sage: t2 = S.hecke_operator(2); t2 Hecke operator T_2 on Cuspidal subspace of dimension 4 of Modular Forms space of dimension 6 for Congruence Subgroup Gamma0(11) of weight 6 over Rational FieldrU# Worksheet 'cnta - modform' (2006-07-12 at 09:13) sage: t2.matrix() [ 0 32 10 4] [ 1 0 3 38] [ 0 0 -2 -12] [ 0 1 -2 -2]rUs# Worksheet 'cnta - modform' (2006-07-12 at 09:13) sage: factor(charpoly(t2.matrix())) (x + 4) * (x^3 - 90*x + 188)rU# Worksheet 'cnta - modform' (2006-07-12 at 09:14) sage: S.decomposition() Traceback (most recent call last): S.decomposition() ... NotImplementedErrorrUs# Worksheet 'cnta - modform' (2006-07-12 at 09:14) sage: factor(charpoly(t2.matrix())) (x + 4) * (x^3 - 90*x + 188)rTx# Worksheet 'cnta - modform' (2006-07-12 at 09:14) sage: ModularSymbols(Gamma0(11),6).decomposition(2) [ Modular Symbols subspace of dimension 2 of Modular Symbols space of dimension 10 for Gamma_0(11) of weight 6 with sign 0 over Rational Field, Modular Symbols subspace of dimension 2 of Modular Symbols space of dimension 10 for Gamma_0(11) of weight 6 with sign 0 ove...rT# Worksheet 'cnta - modform' (2006-07-12 at 09:14) sage: ModularSymbols(Gamma0(11),6).cuspidal_submodule().decomposition(2) [ Modular Symbols subspace of dimension 2 of Modular Symbols space of dimension 10 for Gamma_0(11) of weight 6 with sign 0 over Rational Field, Modular Symbols subspace of dimension 6 of Modular Symbols space of dimension 10 for Gamma_0(11) of weight 6 with sign 0 ove...rT# Worksheet 'cnta - modform' (2006-07-12 at 09:14) sage: ModularSymbols(Gamma0(11),6, sign=1).cuspidal_submodule().decomposition(2) [ Modular Symbols subspace of dimension 1 of Modular Symbols space of dimension 6 for Gamma_0(11) of weight 6 with sign 1 over Rational Field, Modular Symbols subspace of dimension 3 of Modular Symbols space of dimension 6 for Gamma_0(11) of weight 6 with sign 1 over ...rU9# Worksheet '_scratch_' (2006-07-12 at 09:16) sage: 2+3 5rU# Worksheet '_scratch_' (2006-07-12 at 09:16) sage: plot(EllipticCurve('11a')) Graphics object consisting of 1 graphics primitiverUU# Worksheet '_scratch_' (2006-07-12 at 09:16) sage: show(plot(EllipticCurve('11a'))) rU]# Worksheet '_scratch_' (2006-07-12 at 09:16) sage: show(plot(EllipticCurve('37a')),dpi=100) rUo# Worksheet '_scratch_' (2006-07-12 at 09:17) sage: show(plot(EllipticCurve('37a'), rgbcolor=(1,0,1)),dpi=100) rU|# Worksheet '_scratch_' (2006-07-12 at 09:17) sage: show(plot(EllipticCurve('37a'), rgbcolor=(1,0,1), thickness=3),dpi=100) rU9# Worksheet '_scratch_' (2006-07-12 at 09:19) sage: 2+3 5rU|# Worksheet '_scratch_' (2006-07-12 at 09:19) sage: show(plot(EllipticCurve('37a'), rgbcolor=(1,0,1), thickness=3),dpi=100) rU/# Worksheet '_scratch_' (2006-07-12 at 09:20) rU# Worksheet 'cnta - db - cremona' (2006-07-12 at 09:20) sage: C = CremonaDatabase() sage: C Cremona's database of elliptic curvesrUY# Worksheet 'cnta - db - cremona' (2006-07-12 at 09:20) sage: C.number_of_curves() 782493rUZ# Worksheet 'cnta - db - cremona' (2006-07-12 at 09:20) sage: C.largest_conductor() 120000rTU# Worksheet 'cnta - db - cremona' (2006-07-12 at 09:20) sage: C[11] {'a': {'a1': [[0, -1, 1, -10, -20], 0, 5], 'a3': [[0, -1, 1, 0, 0], 0, 5], 'a2': [[0, -1, 1, -7820, -263580], 0, 1]}, 'c': {'a1': ['5', '1.2692093042795534217', '0.25384186085591068434', '1', '1.00000000000000000000'], 'a3': ['1', '6.3460465213977671084', '0.25384186085...rTs# Worksheet 'cnta - db - cremona' (2006-07-12 at 09:20) sage: list(cremona_curves([11, 37, 389])) [Elliptic Curve defined by y^2 + y = x^3 - x^2 - 10*x - 20 over Rational Field, Elliptic Curve defined by y^2 + y = x^3 - x^2 - 7820*x - 263580 over Rational Field, Elliptic Curve defined by y^2 + y = x^3 - x^2 over Rational Field, Elliptic Curve defined by y^2 + y = x^...rU~# Worksheet 'cnta - db - cremona' (2006-07-12 at 09:20) sage: E = EllipticCurve([1,2,3,4,5]) sage: E.cremona_label() '10351a1'rU# Worksheet 'cnta - db - cremona' (2006-07-12 at 09:20) sage: E = EllipticCurve([0,2,0,0,6]) sage: E.cremona_label() '18624bj1'rU9# Worksheet 'cnta - db - cremona' (2006-07-12 at 09:20) rU# Worksheet 'cnta - db - jones' (2006-07-12 at 09:20) sage: J = JonesDatabase() sage: J Traceback (most recent call last): ... TypeError: _load() takes exactly 3 arguments (1 given)rU# Worksheet 'cnta - db - jones' (2006-07-12 at 09:20) sage: for K in J.unramified_outside([11]): ... print K Traceback (most recent call last): for K in J.unramified_outside([11]): ... NameError: name 'J' is not definedrU# Worksheet 'cnta - db - jones' (2006-07-12 at 09:20) sage: # CAN also get direct access to underlying data, which may be faster. sage: D = J.as_dict() Traceback (most recent call last): D = J.as_dict() ... NameError: name 'J' is not definedrU# Worksheet 'cnta - db - jones' (2006-07-12 at 09:20) sage: D[(5,31)] Traceback (most recent call last): D[(5,31)] ... NameError: name 'D' is not definedrU7# Worksheet 'cnta - db - jones' (2006-07-12 at 09:20) rU# Worksheet 'cnta - db - jones' (2006-07-12 at 09:21) sage: J = JonesDatabase() sage: J John Jones's table of number fields with bounded ramification and degree <= 6rU# Worksheet 'cnta - db - jones' (2006-07-12 at 09:21) sage: J = JonesDatabase() sage: J John Jones's table of number fields with bounded ramification and degree <= 6rT(# Worksheet 'cnta - db - jones' (2006-07-12 at 09:21) sage: for K in J.unramified_outside([11]): ... print K Number Field in a with defining polynomial x - 1 Number Field in a with defining polynomial x^2 - x + 3 Number Field in a with defining polynomial x^5 - x^4 - 4*x^3 + 3*x^2 + 3*x - 1rU# Worksheet 'cnta - db - jones' (2006-07-12 at 09:21) sage: # CAN also get direct access to underlying data, which may be faster. sage: D = J.as_dict() rU# Worksheet 'cnta - db - jones' (2006-07-12 at 09:21) sage: D[(5,31)] [x^2 + 155, x^4 + 2*x^3 + 4*x^2 + 3*x - 9, x^4 + x^3 + 3*x - 1, x^4 + 2*x^3 + 2*x^2 + x + 8, x^4 + 5*x^2 + 45, x^4 + 13*x^2 + 81, x^4 + x^3 - 39*x^2 - 39*x + 281]rU7# Worksheet 'cnta - db - jones' (2006-07-12 at 09:21) rU7# Worksheet 'cnta - db - jones' (2006-07-12 at 09:21) rU# Worksheet 'cnta - db - stein-watkins' (2006-07-12 at 09:21) sage: D = SteinWatkinsPrimeData(0) sage: D Stein-Watkins Prime Conductor Database p.0 IteratorrU# Worksheet 'cnta - db - stein-watkins' (2006-07-12 at 09:21) sage: C = D.next() sage: C Stein-Watkins isogeny class of conductor 11rU# Worksheet 'cnta - db - stein-watkins' (2006-07-12 at 09:21) sage: list(C) [[[0, -1, 1, 0, 0], '(1)', '1', '5'], [[0, -1, 1, -10, -20], '(5)', '1', '5'], [[0, -1, 1, -7820, -263580], '(1)', '1', '1']]rUx# Worksheet 'cnta - db - stein-watkins' (2006-07-12 at 09:21) sage: D.next() Stein-Watkins isogeny class of conductor 17rUx# Worksheet 'cnta - db - stein-watkins' (2006-07-12 at 09:21) sage: D.next() Stein-Watkins isogeny class of conductor 19rU?# Worksheet 'cnta - db - stein-watkins' (2006-07-12 at 09:21) rU# Worksheet 'cnta - db - sloane' (2006-07-12 at 09:21) sage: S = SloaneEncyclopedia sage: S Sloane Online Encyclopedia of Integer SequencesrU\# Worksheet 'cnta - db - sloane' (2006-07-12 at 09:21) sage: v = S.find(prime_range(2,100)) rUF# Worksheet 'cnta - db - sloane' (2006-07-12 at 09:21) sage: len(v) 30rTM# Worksheet 'cnta - db - sloane' (2006-07-12 at 09:21) sage: v[0] (40, [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, 113, 127, 131, 137, 139, 149, 151, 157, 163, 167, 173, 179, 181, 191, 193, 197, 199, 211, 223, 227, 229, 233, 239, 241, 251, 257, 263, 269, 271])rTS# Worksheet 'cnta - db - sloane' (2006-07-12 at 09:21) sage: v[1] (8578, [1, 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, 113, 127, 131, 137, 139, 149, 151, 157, 163, 167, 173, 179, 181, 191, 193, 197, 199, 211, 223, 227, 229, 233, 239, 241, 251, 257, 263, 269, 271...rU# Worksheet 'cnta - db - sloane' (2006-07-12 at 09:21) sage: w = [len(str(numerator(abs(bernoulli(10^n))))) for n in range(5)] sage: w [1, 1, 83, 1779, 27691]rU{# Worksheet 'cnta - db - sloane' (2006-07-12 at 09:21) sage: S.find(w) [(103233, [1, 1, 83, 1779, 27691, 376772, 4767554])]rU8# Worksheet 'cnta - db - sloane' (2006-07-12 at 09:21) rU# Worksheet 'cnta - ec - bsd' (2006-07-12 at 09:21) sage: E = EllipticCurve('681b') sage: E Elliptic Curve defined by y^2 + x*y = x^3 + x^2 - 1154*x - 15345 over Rational FieldrT\# Worksheet 'cnta - ec - bsd' (2006-07-12 at 09:21) sage: print E.mwrank() Curve [1,1,0,-1154,-15345] : 3 points of order 2: [-18:9:1], [-22:11:1], [310:-155:8] **************************** * Using 2-isogeny number 1 * **************************** Using 2-isogenous curve [0,422,0,59049,0] -------------------------------------------...rUM# Worksheet 'cnta - ec - bsd' (2006-07-12 at 09:21) sage: E.analytic_rank() 0rUF# Worksheet 'cnta - ec - bsd' (2006-07-12 at 09:21) sage: E.sha_an() 9rUY# Worksheet 'cnta - ec - bsd' (2006-07-12 at 09:22) sage: E.Lseries(1) 1.8448152061268208rUc# Worksheet 'cnta - ec - bsd' (2006-07-12 at 09:22) sage: E.omega() 0.81991786938969809641267899116rUP# Worksheet 'cnta - ec - bsd' (2006-07-12 at 09:22) sage: E.tamagawa_number(3) 2rU_# Worksheet 'cnta - ec - bsd' (2006-07-12 at 09:22) sage: E.non_surjective() [(2, '2-torsion')]rU# Worksheet 'cnta - ec - bsd' (2006-07-12 at 09:22) sage: E.heegner_discriminants_list(10) [-8, -20, -35, -56, -68, -83, -95, -107, -119, -143]rUt# Worksheet 'cnta - ec - bsd' (2006-07-12 at 09:22) sage: n = E.heegner_index(-20); n [8.99999215656, 9.00000831615]rUR# Worksheet 'cnta - ec - bsd' (2006-07-12 at 09:22) sage: E.shabound_kato() [2, 3]rU\# Worksheet 'cnta - ec - bsd' (2006-07-12 at 09:22) sage: E.shabound_kolyvagin() ([2, 3], 9)rUT# Worksheet 'cnta - ec - bsd' (2006-07-12 at 09:22) sage: F = EllipticCurve('681c') rU# Worksheet 'cnta - ec - bsd' (2006-07-12 at 09:22) sage: Eap = E.aplist(100) sage: Fap = F.aplist(100) sage: [(Eap[n][1] - Fap[n][1])%3 for n in range(len(Eap))] [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]rTt# Worksheet 'cnta - ec - bsd' (2006-07-12 at 09:22) sage: E.isogeny_class() # written by Cremona ([Elliptic Curve defined by y^2 + x*y = x^3 + x^2 - 1154*x - 15345 over Rational Field, Elliptic Curve defined by y^2 + x*y = x^3 + x^2 - 19*x - 42812 over Rational Field, Elliptic Curve defined by y^2 + x*y = x^3 + x^2 - 2369*x + 20862 over Rational Field, Elliptic ...rU{# Worksheet 'cnta - ec - bsd' (2006-07-12 at 09:22) sage: f = E.modular_form() sage: f q + q^2 - q^3 - q^4 + 2*q^5 + O(q^6)rU# Worksheet 'cnta - ec - bsd' (2006-07-12 at 09:22) sage: f.parent() Modular Forms space of dimension 78 for Congruence Subgroup Gamma0(681) of weight 2 over Rational FieldrUT# Worksheet 'cnta - ec - bsd' (2006-07-12 at 09:22) sage: E = EllipticCurve('389a') rT# Worksheet 'cnta - ec - bsd' (2006-07-12 at 09:22) sage: E.padic_regulator(5) # makes a call to MAGMA for part of the algorithm (for now) 1 + 2*5 + 2*5^2 + 4*5^3 + 3*5^4 + 4*5^5 + 3*5^6 + 5^7 + 2*5^10 + 4*5^11 + 5^12 + 4*5^13 + 4*5^14 + 5^15 + 5^17 + 4*5^18 + O(5^20)rU5# Worksheet 'cnta - ec - bsd' (2006-07-12 at 09:22) rU# Worksheet 'cnta - ec - lser' (2006-07-12 at 09:22) sage: E = EllipticCurve('37a') sage: E Elliptic Curve defined by y^2 + y = x^3 - x over Rational FieldrU# Worksheet 'cnta - ec - lser' (2006-07-12 at 09:22) sage: time v = E.anlist(100000,pari_ints=True) CPU time: 0.31 s, Wall time: 0.30 srUy# Worksheet 'cnta - ec - lser' (2006-07-12 at 09:22) sage: time v = E.anlist(100000) CPU time: 1.43 s, Wall time: 1.49 srU# Worksheet 'cnta - ec - lser' (2006-07-12 at 09:22) sage: E.Lseries_at1() # directly and with proved error bound if nonzero 0rUk# Worksheet 'cnta - ec - lser' (2006-07-12 at 09:22) sage: E.Lseries(1) # via PARI 0.00000000000000000rU# Worksheet 'cnta - ec - lser' (2006-07-12 at 09:22) sage: E.Lseries_sympow(2,16) # Watkins C program -- symmetric square L-value '2.492262044273650E+00'rUv# Worksheet 'cnta - ec - lser' (2006-07-12 at 09:22) sage: L = E.Lseries_dokchitser() # Tim Dokchitser's GP package rUA# Worksheet 'cnta - ec - lser' (2006-07-12 at 09:22) sage: L(1) 0rU^# Worksheet 'cnta - ec - lser' (2006-07-12 at 09:22) sage: L.derivative(1) 0.30599977383405230rU# Worksheet 'cnta - ec - lser' (2006-07-12 at 09:22) sage: L(1+I) # works very well for arbitrary input -0.15892526330137721 + 0.45791106676511545*IrU~# Worksheet 'cnta - ec - lser' (2006-07-12 at 09:22) sage: set_verbose(-2) sage: v = [tuple(L(1 + t/8*I)) for t in range(75)] rUR# Worksheet 'cnta - ec - lser' (2006-07-12 at 09:22) sage: show(line(v, hue=0.8)) rU# Worksheet 'cnta - ec - lser' (2006-07-12 at 09:22) sage: for P in E.Lseries_zeros_in_interval(0,10,0.3): # Mike Rubinstein's ... print P[0] 5.0031700134 6.8703912161 8.0143308081 9.9330983534rU# Worksheet 'cnta - ec - lser' (2006-07-12 at 09:22) time> # Christophe Doche and Sylvain Duquesne implemented SEA, which is time> # included with SAGE time> print E.sea(next_prime(10^50)) 52 CPU time: 0.00 s, Wall time: 0.13 srU6# Worksheet 'cnta - ec - lser' (2006-07-12 at 09:22) rU# Worksheet 'cnta - ec - plot' (2006-07-12 at 09:22) sage: E = EllipticCurve('37a') sage: P = plot(E, thickness=3, hue=0.1) sage: P Graphics object consisting of 2 graphics primitivesrUD# Worksheet 'cnta - ec - plot' (2006-07-12 at 09:22) sage: P.show() rT?# Worksheet 'cnta - ec - plot' (2006-07-12 at 09:22) sage: P = [] sage: k = int(4) sage: v = [(E.cremona_label(), E) for E in cremona_optimal_curves(range(1,25))] sage: v.sort() sage: for lbl, E in v: ... P.append(text(lbl[:-1],(0,0)) + \ ... plot(E,xmin=-1, xmax=3, plot_points=80,thickness=5,rgbcolor=hue(random()))) ... print lbl, ... sage: Q = [[P[k*i+j] for j in range(k)] for i in range(len(P)/k)] sage: Q.append(P[k*i+j+1:] + [Graphics()]*(k - len(P[k*i+j+1:]))) sage: show(graphics_array(Q), axes=False,figsize=[4,4]) 11a1 14a1 15a1 17a1 19a1 20a1 21a1 24a1rU# Worksheet 'cnta - ec - plot' (2006-07-12 at 09:22) sage: E = EllipticCurve('389a') sage: def f(p): ... return plot(E.change_ring(GF(p)),pointsize=40,hue=0.9) ... sage: F = [[f(5), f(7)], [f(11),f(997)]] sage: show(graphics_array(F)) rT# Worksheet 'cnta - ec - plot' (2006-07-12 at 09:22) sage: def sato_tate(E, N): ... return [acos(E.ap(p)/(2*sqrt(p))) for p in prime_range(N+1) if N%p != 0] ... sage: def dist(E, N, digits=1): ... t = verbose('computing st values...') ... v = sato_tate(E, N) ... t = verbose('finished computing st values:',t) ... w = [round(x, digits) for x in v] ... w.sort() ... vals = {} ... for a in w: ... if a in vals.keys(): ... vals[a] += 1 ... else: ... vals[a] = 1 ... g = vals.items() ... g.sort() ... verbose('finished post processing:',t) ... return g ... sage: def graph(label, num=5000): ... d = dist(EllipticCurve(label),num,2) ... m = max(y for _, y in d) ... #m = 2.0 * pi * prime_pi(num)/num ... s = Graphics() ... for x, y in d: ... s += line([(x,0),(x,y)], hue=0.05, thickness=4) ... s += plot(lambda x: m*sin(x)^2, 0,pi, plot_points=200, ... rgbcolor=(0.3,0.1,0.1), thickness=2) ... return s rU# Worksheet 'cnta - ec - plot' (2006-07-12 at 09:22) sage: show(graphics_array([[graph('37a'), graph('389a')],[ graph('5077a'), graph('32a')]])) rU# Worksheet 'cnta - ec - plot' (2006-07-12 at 09:22) sage: show(graphics_array([[graph('37a',100), graph('37a',1000)], ... [ graph('37a',5000), graph('37a',20000)]])) rU6# Worksheet 'cnta - ec - plot' (2006-07-12 at 09:22) rU# Worksheet 'cnta - using other systems' (2006-07-12 at 09:22) sage: n = -2007 sage: print n.factor() sage: print factor(n) -1 * 3^2 * 223 -1 * 3^2 * 223rUn# Worksheet 'cnta - using other systems' (2006-07-12 at 09:22) sage: n.factor(algorithm="kash") -1 * 3^2 * 223rUg# Worksheet 'cnta - using other systems' (2006-07-12 at 09:22) sage: gap(n).FactorsInt() [ -3, 3, 223 ]rUk# Worksheet 'cnta - using other systems' (2006-07-12 at 09:22) sage: pari(n).factor() [-1, 1; 3, 2; 223, 1]rUi# Worksheet 'cnta - using other systems' (2006-07-12 at 09:23) sage: gp(n).factor() [-1, 1; 3, 2; 223, 1]rU`# Worksheet 'cnta - using other systems' (2006-07-12 at 09:23) sage: maxima(n).factor() -3^2*223rU# Worksheet 'cnta - using other systems' (2006-07-12 at 09:23) sage: kash(n).Factorization() [ <3, 2>, <223, 1> ], extended by: ext1 := -1, ext2 := UnassignrU# Worksheet 'cnta - using other systems' (2006-07-12 at 09:23) sage: magma(n).Factorization(nvals = 2) ([ <3, 2>, <223, 1> ], -1)rUh# Worksheet 'cnta - using other systems' (2006-07-12 at 09:23) sage: maple(n).ifactor() -``(3)^2*``(223)rU# Worksheet 'cnta - using other systems' (2006-07-12 at 09:23) sage: mathematica(n).FactorInteger() {{-1, 1}, {3, 2}, {223, 1}}rU# Worksheet 'cnta - using other systems' (2006-07-12 at 09:23) magma> n := -2007; magma> F, s := Factorization(-2007); magma> print F, s [ <3, 2>, <223, 1> ] -1rUd# Worksheet 'cnta - using other systems' (2006-07-12 at 09:23) sage: magma('F') [ <3, 2>, <223, 1> ]rU@# Worksheet 'cnta - using other systems' (2006-07-12 at 09:23) rU# Worksheet 'cnta - save / load' (2006-07-12 at 09:23) sage: R. = PolynomialRing(QQ,2) sage: f = y^2 + y - x^3 - 17/3*x + 2/3 rUD# Worksheet 'cnta - save / load' (2006-07-12 at 09:23) sage: save f rUD# Worksheet 'cnta - save / load' (2006-07-12 at 09:23) sage: load f rUc# Worksheet 'cnta - save / load' (2006-07-12 at 09:23) sage: load('f') 2/3 + y + y^2 - 17/3*x - x^3rUe# Worksheet 'cnta - save / load' (2006-07-12 at 09:23) sage: A = MatrixSpace(QQ,50).random_element() rUL# Worksheet 'cnta - save / load' (2006-07-12 at 09:23) sage: A.save('amat') rT[# Worksheet 'cnta - save / load' (2006-07-12 at 09:23) sage: load('amat') [-1 -2 2 2 -1 -1 1 1 -2 -2 1 2 1 -1 1 -2 2 2 -1 -2 2 1 1 2 2 -1 1 -2 2 2 1 1 -1 1 -1 2 -1 1 -2 2 2 -2 2 -1 2 -2 -2 2 -1 2] [-1 -2 -2 -2 2 -1 1 -2 2 1 1 -2 -1 -1 -2 -2 -2 -1 2 -1 -2 -2 -2 -2 -1 -2 -2 -1 -2 1 2 2 -2 -1 2 1 2 -1 -1 ...rU# Worksheet 'cnta - save / load' (2006-07-12 at 09:23) sage: M = ModularSymbols(Gamma1(13),2); M Modular Symbols space of dimension 15 for Gamma_1(13) of weight 2 with sign 0 and over Rational FieldrUV# Worksheet 'cnta - save / load' (2006-07-12 at 09:23) sage: M == loads(dumps(M)) TruerUT# Worksheet 'cnta - save / load' (2006-07-12 at 09:23) sage: D = M.decomposition(2) rTP# Worksheet 'cnta - save / load' (2006-07-12 at 09:23) sage: D [ Modular Symbols subspace of dimension 1 of Modular Symbols space of dimension 15 for Gamma_1(13) of weight 2 with sign 0 and over Rational Field, Modular Symbols subspace of dimension 1 of Modular Symbols space of dimension 15 for Gamma_1(13) of weight 2 with sign 0...rUD# Worksheet 'cnta - save / load' (2006-07-12 at 09:23) sage: save D rTX# Worksheet 'cnta - save / load' (2006-07-12 at 09:23) sage: load('D') [ Modular Symbols subspace of dimension 1 of Modular Symbols space of dimension 15 for Gamma_1(13) of weight 2 with sign 0 and over Rational Field, Modular Symbols subspace of dimension 1 of Modular Symbols space of dimension 15 for Gamma_1(13) of weight 2 with sign 0...rU8# Worksheet 'cnta - save / load' (2006-07-12 at 09:23) rU# Worksheet 'cnta - galois' (2006-07-12 at 09:23) sage: V = NumberField(x^2+17).composite_fields(NumberField(x^3-2)) sage: print V sage: K = V[0] [Number Field in a with defining polynomial x^6 + 51*x^4 - 4*x^3 + 867*x^2 + 204*x + 4917]rUM# Worksheet 'cnta - galois' (2006-07-12 at 09:23) sage: G = K.galois_group() rU_# Worksheet 'cnta - galois' (2006-07-12 at 09:23) sage: G Transitive group number 3 of degree 6rUD# Worksheet 'cnta - galois' (2006-07-12 at 09:23) sage: G.order() 12rU# Worksheet 'cnta - galois' (2006-07-12 at 09:23) sage: G.conjugacy_classes_representatives() [(), (2,6)(3,5), (1,2)(3,6)(4,5), (1,2,3,4,5,6), (1,3,5)(2,4,6), (1,4)(2,5)(3,6)]rUD# Worksheet 'cnta - galois' (2006-07-12 at 09:23) sage: gg = gap(G) rT+# Worksheet 'cnta - galois' (2006-07-12 at 09:23) sage: gg.NormalSubgroups() [ Group(()), Group([ (1,4)(2,5)(3,6) ]), Group([ (1,3,5)(2,4,6) ]), Group([ (1,3,5)(2,4,6), (1,2)(3,6)(4,5) ]), Group([ (1,3,5)(2,4,6), (2,6)(3,5) ]), Group([ (1,2,3,4,5,6), (1,3,5)(2,4,6) ]), D(6) = S(3)[x]2 ]rUu# Worksheet 'cnta - galois' (2006-07-12 at 09:23) sage: K.class_group() Multiplicative Abelian Group isomorphic to C4rU3# Worksheet 'cnta - galois' (2006-07-12 at 09:23) rT!# Worksheet 'cnta - combinatorial geom' (2006-07-12 at 09:23) sage: P. = ProjectiveSpace(3,QQ) sage: C = P.subscheme([y^2-x*z, z^2-y*w, x*w-y*z]) sage: C Closed subscheme of Projective Space of dimension 3 over Rational Field defined by: y^2 - x*z z^2 - y*w -1*y*z + x*wr Uw# Worksheet 'cnta - combinatorial geom' (2006-07-12 at 09:23) sage: len(C.irreducible_components()) # twisted cubic 1r U# Worksheet 'cnta - combinatorial geom' (2006-07-12 at 09:23) sage: J = C.defining_ideal() sage: J Ideal (z^2 - y*w, -1*y*z + x*w, y^2 - x*z) of Polynomial Ring in x, y, z, w over Rational Fieldr U# Worksheet 'cnta - combinatorial geom' (2006-07-12 at 09:23) sage: G = J.groebner_fan() sage: G Groebner fan of the ideal: Ideal (z^2 - y*w, -1*y*z + x*w, y^2 - x*z) of Polynomial Ring in x, y, z, w over Rational Fieldr Tp# Worksheet 'cnta - combinatorial geom' (2006-07-12 at 09:23) sage: G.reduced_groebner_bases() [[-1*z^2 + y*w, -1*y*z + x*w, -1*y^2 + x*z], [z^2 - y*w, -1*y*z + x*w, -1*y^2 + x*z], [z^2 - y*w, y*z - x*w, -1*y^2 + x*z, -1*y^3 + x^2*w], [z^2 - y*w, y*z - x*w, y^3 - x^2*w, -1*y^2 + x*z], [z^2 - y*w, y*z - x*w, y^2 - x*z], [-1*z^2 + y*w, y^2 - x*z, -1*y*z + x*w], [-1...r UY# Worksheet 'cnta - combinatorial geom' (2006-07-12 at 09:23) sage: G.fvector() (1, 8, 8)rUW# Worksheet 'cnta - combinatorial geom' (2006-07-12 at 09:23) sage: f = prod(J.gens()) rU# Worksheet 'cnta - combinatorial geom' (2006-07-12 at 09:23) sage: NP = polymake.convex_hull(f.exponents()) # -- newton polytope rU# Worksheet 'cnta - combinatorial geom' (2006-07-12 at 09:23) sage: NP.facets() [(3/2, 5/2, -1, 0), (3, 1, -1, 0), (1, 0, 0, 0), (-3/2, 2, 1, 0), (3, -1, 4, 0), (-3, 1, 5, 0)]rU?# Worksheet 'cnta - combinatorial geom' (2006-07-12 at 09:23) rT# Worksheet 'cnta - ec - plot' (2006-07-12 at 09:49) sage: plot3dsoya(lambda x,y : y^2 - x^3 - x, (0,0), 2.0).show() [> ] 1%[-----------------------------------------------------------> ] 100% * Soya * Using 8 bits stencil buffer * Soya * version 0.11.2 * Using OpenGL 2.0.5755 (8.24.8) * - renderer : Generic * - ve...rT/# Worksheet 'cnta - ec - plot' (2006-07-12 at 09:49) sage: plot3dsoya(lambda x,y : y^2 - x^2 - 2 (0,0), 2.0).show() Traceback (most recent call last): plot3dsoya(lambda x,y : y^2 - x^2 - 2 (0,0), 2.0).show() ... TypeError: p (=2.0000000000000000) must be a point, i.e., a 2-tuple or list of length 2rT# Worksheet 'cnta - ec - plot' (2006-07-12 at 09:49) sage: plot3dsoya(lambda x,y : y^2 - x^2 - 2, (0,0), 2.0).show() [> ] 1%[-----------------------------------------------------------> ] 100% * Soya * Using 8 bits stencil buffer * Soya * version 0.11.2 * Using OpenGL 2.0.5755 (8.24.8) * - renderer : Generic * - ve...rT# Worksheet 'cnta - ec - plot' (2006-07-12 at 09:50) sage: plot3dsoya(lambda x,y : y^2 - x^3 - 2, (0,0), 2.0).show() [> ] 1%[-----------------------------------------------------------> ] 100% * Soya * Using 8 bits stencil buffer * Soya * version 0.11.2 * Using OpenGL 2.0.5755 (8.24.8) * - renderer : Generic * - ve...rT# Worksheet 'cnta - ec - plot' (2006-07-12 at 09:50) sage: plot3dsoya(lambda x,y : sqrt(x^3 - 2), (2,2), 2.0).show() [> ] 1%[-----------------------------------------------------------> ] 100% * Soya * Using 8 bits stencil buffer * Soya * version 0.11.2 * Using OpenGL 2.0.5755 (8.24.8) * - renderer : Generic * - ve...rT# Worksheet 'cnta - ec - plot' (2006-07-12 at 09:51) sage: def f(x,y): ... z = x+I*y ... return abs(sqrt(x^3 - x)) ... sage: plot3dsoya(f, (0,0), 2.0).show() [> ] 1%[-----------------------------------------------------------> ] 100% * Soya * Using 8 bits stencil buffer * Soya * version 0.11.2 * Using OpenGL 2.0.5755 (8.24.8) * - renderer : Generic * - ve...rT# Worksheet 'cnta - ec - plot' (2006-07-12 at 09:51) sage: def f(x,y): ... z = x+I*y ... return abs(sqrt(z^3-z)) ... sage: plot3dsoya(f, (0,0), 2.0).show() [> ] 1%[-----------------------------------------------------------> ] 100% * Soya * Using 8 bits stencil buffer * Soya * version 0.11.2 * Using OpenGL 2.0.5755 (8.24.8) * - renderer : Generic * - ve...rT# Worksheet 'cnta - ec - plot' (2006-07-12 at 09:51) sage: def f(x,y): ... z = x+I*y ... return abs(sqrt(z^3-z)) ... sage: plot3dsoya(f, (0,0), 1.0).show() [> ] 1%[-----------------------------------------------------------> ] 100% * Soya * Using 8 bits stencil buffer * Soya * version 0.11.2 * Using OpenGL 2.0.5755 (8.24.8) * - renderer : Generic * - ve...rU]# Worksheet 'cnta - ec - plot' (2006-07-12 at 09:51) sage: show(plot(EllipticCurve([-1,0]))) rT# Worksheet 'cnta - ec - plot' (2006-07-12 at 09:52) sage: def f(x,y): ... z = x+I*y ... return abs(sqrt(z^3-z)) ... sage: plot3dsoya(f, (0,0), 2.0).show() [> ] 1%[-----------------------------------------------------------> ] 100% * Soya * Using 8 bits stencil buffer * Soya * version 0.11.2 * Using OpenGL 2.0.5755 (8.24.8) * - renderer : Generic * - ve...rT# Worksheet 'cnta - ec - plot' (2006-07-12 at 09:52) sage: def f(x,y): ... z = x+I*y ... return (sqrt(z^3-z)).real() ... sage: plot3dsoya(f, (0,0), 2.0).show() [> ] 1%[-----------------------------------------------------------> ] 100% * Soya * Using 8 bits stencil buffer * Soya * version 0.11.2 * Using OpenGL 2.0.5755 (8.24.8) * - renderer : Generic * - ve...rU# Worksheet 'cnta - ec - plot' (2006-07-12 at 09:53) sage: def f(x,y): ... z = x+I*y ... return (sqrt(z^3-z)).real() ... sage: P = plot3dsoya(f, (0,0), 2.0) rT# Worksheet 'cnta - ec - plot' (2006-07-12 at 09:53) sage: def f(x,y): ... z = x+I*y ... return (sqrt(z^3-z)).real() ... sage: P = plot3dsoya(f, (0,0), 2.0) sage: P.show(step=0.01) [> ] 1%[-----------------------------------------------------------> ] 100% * Soya * Using 8 bits stencil buffer * Soya * version 0.11.2 * Using OpenGL 2.0.5755 (8.24.8) * - renderer : Generic * - ve...rTT# Worksheet 'cnta - ec - plot' (2006-07-12 at 09:53) sage: def f(x,y): ... z = x+I*y ... return (sqrt(z^3-z)).real() ... sage: P = plot3dsoya(f, (0,0), 2.0, rez=16) sage: P.show(step=0.01) Traceback (most recent call last): P = plot3dsoya(f, (0,0), 2.0, rez=16) ... TypeError: plot3dsoya() got an unexpected keyword argument 'rez'r T# Worksheet 'cnta - ec - plot' (2006-07-12 at 09:53) sage: def f(x,y): ... z = x+I*y ... return (sqrt(z^3-z)).real() ... sage: P = plot3dsoya(f, (0,0), 2.0, res=16) sage: P.show(step=0.01) [> ] 0%[---------------------------------------> ] 66%[------------------------------------------------------------>] 100% * Soya * Using 8 bits stencil buffer * Soya * version 0.11.2 * ...r!T# Worksheet 'cnta - ec - plot' (2006-07-12 at 09:55) sage: def f(x,y): ... z = x+I*y ... return (sqrt(z^3-z)).real() ... sage: P = plot3dsoya(f, (0,0), 3.0, res=16) sage: P.show(step=0.04) [> ] 0%[-----------------------------------> ] 59%[------------------------------------------------------------>] 100% * Soya * Using 8 bits stencil buffer * Soya * version 0.11.2 * ...r"T# Worksheet 'cnta - ec - plot' (2006-07-12 at 09:56) sage: def f(x,y): ... z = x+I*y ... return (sqrt(z^3-z)).imag() ... sage: P = plot3dsoya(f, (0,0), 3.0, res=16) sage: P.show(step=0.04) [> ] 0%[---------------------------------------> ] 65%[------------------------------------------------------------>] 100% * Soya * Using 8 bits stencil buffer * Soya * version 0.11.2 * ...r#T# Worksheet 'cnta - ec - plot' (2006-07-12 at 09:56) sage: def f(x,y): ... z = x+I*y ... return (sqrt(z^3-z)).real() ... sage: P = plot3dsoya(f, (0,0), 3.0, res=16) sage: P.show(step=0.04) [> ] 0%[-------------------------------------> ] 62%[------------------------------------------------------------>] 100% * Soya * Using 8 bits stencil buffer * Soya * version 0.11.2 * ...r$T# Worksheet 'cnta - ec - plot' (2006-07-12 at 09:57) sage: def f(x,y): ... z = x+I*y ... return (sqrt(z^3-z)).imag() ... sage: P = plot3dsoya(f, (0,0), 3.0, res=32) sage: P.show(step=0.04) [> ] 0%[---------> ] 16%[-------------------> ] 32%[-----------------------------> ] 49%[---------------------------------------...r%T# Worksheet 'cnta - ec - plot' (2006-07-12 at 09:57) sage: def f(x,y): ... z = x+I*y ... return (sqrt(z^3-z)).imag() ... sage: P = plot3dsoya(f, (0,0), 3.0, res=32) sage: P.show(step=0.04) [> ] 0%[----------> ] 17%[--------------------> ] 34%[----------------------------------> ] 57%[---------------------------------------...r&T# Worksheet 'cnta - ec - plot' (2006-07-12 at 09:58) sage: def f(x,y): ... z = x+I*y ... return (sqrt(z^3-z)).real() ... sage: P = plot3dsoya(f, (0,0), 3.0, res=32) sage: P.show(step=0.04) [> ] 0%[----------> ] 17%[----------------------> ] 37%[----------------------------------------> ] 67%[---------------------------------------...r'T# Worksheet 'cnta - ec - plot' (2006-07-12 at 09:58) sage: def f(x,y): ... z = x+I*y ... return (sqrt(z^3-z)).real() ... sage: P = plot3dsoya(f, (0,0), 3.0, res=32) sage: P.show(step=0.04,pointer=True) [> ] 0%[----------> ] 17%[---------------------> ] 36%[------------------------------------------> ] 70%[---------------------------------------...r(T# Worksheet 'cnta - ec - plot' (2006-07-12 at 09:58) sage: def f(x,y): ... z = x+I*y ... return (sqrt(z^3-z)).imag() ... sage: P = plot3dsoya(f, (0,0), 3.0, res=32) sage: P.show(step=0.04) [> ] 0%[----------> ] 17%[--------------------> ] 34%[------------------------------> ] 50%[---------------------------------------...r)T# Worksheet 'cnta - ec - plot' (2006-07-12 at 10:01) sage: def f(x,y): ... z = x+I*y ... return (sqrt(z^3-z)).imag() ... sage: P = plot3dsoya(f, (0,0), 3.0, res=32) sage: P.show(step=0.04) [> ] 0%[--------> ] 14%[----------------> ] 27%[--------------------------------> ] 53%[---------------------------------------...r*U# Worksheet 'cnta - db - cremona' (2006-07-12 at 10:09) sage: C = CremonaDatabase() sage: C Cremona's database of elliptic curvesr+UY# Worksheet 'cnta - db - cremona' (2006-07-12 at 10:10) sage: C.number_of_curves() 782493r,Ub# Worksheet 'cnta - db - cremona' (2006-07-12 at 10:10) sage: C.number_of_isogeny_classes() 524169r-UZ# Worksheet 'cnta - db - cremona' (2006-07-12 at 10:10) sage: C.largest_conductor() 120000r.TU# Worksheet 'cnta - db - cremona' (2006-07-12 at 10:10) sage: C[11] {'a': {'a1': [[0, -1, 1, -10, -20], 0, 5], 'a3': [[0, -1, 1, 0, 0], 0, 5], 'a2': [[0, -1, 1, -7820, -263580], 0, 1]}, 'c': {'a1': ['5', '1.2692093042795534217', '0.25384186085591068434', '1', '1.00000000000000000000'], 'a3': ['1', '6.3460465213977671084', '0.25384186085...r/Ts# Worksheet 'cnta - db - cremona' (2006-07-12 at 10:10) sage: list(cremona_curves([11, 37, 389])) [Elliptic Curve defined by y^2 + y = x^3 - x^2 - 10*x - 20 over Rational Field, Elliptic Curve defined by y^2 + y = x^3 - x^2 - 7820*x - 263580 over Rational Field, Elliptic Curve defined by y^2 + y = x^3 - x^2 over Rational Field, Elliptic Curve defined by y^2 + y = x^...r0U~# Worksheet 'cnta - db - cremona' (2006-07-12 at 10:10) sage: E = EllipticCurve([1,2,3,4,5]) sage: E.cremona_label() '10351a1'r1U# Worksheet 'cnta - db - cremona' (2006-07-12 at 10:10) sage: E = EllipticCurve([0,2,0,0,6]) sage: E.cremona_label() '18624bj1'r2U# Worksheet 'cnta - db - jones' (2006-07-12 at 10:10) sage: J = JonesDatabase() sage: J John Jones's table of number fields with bounded ramification and degree <= 6r3T(# Worksheet 'cnta - db - jones' (2006-07-12 at 10:10) sage: for K in J.unramified_outside([11]): ... print K Number Field in a with defining polynomial x - 1 Number Field in a with defining polynomial x^2 - x + 3 Number Field in a with defining polynomial x^5 - x^4 - 4*x^3 + 3*x^2 + 3*x - 1r4U# Worksheet 'cnta - db - jones' (2006-07-12 at 10:10) sage: # CAN also get direct access to underlying data, which may be faster. sage: D = J.as_dict() r5U# Worksheet 'cnta - db - jones' (2006-07-12 at 10:10) sage: D[(5,31)] [x^2 + 155, x^4 + 2*x^3 + 4*x^2 + 3*x - 9, x^4 + x^3 + 3*x - 1, x^4 + 2*x^3 + 2*x^2 + x + 8, x^4 + 5*x^2 + 45, x^4 + 13*x^2 + 81, x^4 + x^3 - 39*x^2 - 39*x + 281]r6U# Worksheet 'cnta - db - stein-watkins' (2006-07-12 at 10:10) sage: D = SteinWatkinsPrimeData(0) sage: D Stein-Watkins Prime Conductor Database p.0 Iteratorr7U# Worksheet 'cnta - db - stein-watkins' (2006-07-12 at 10:10) sage: C = D.next() sage: C Stein-Watkins isogeny class of conductor 11r8U# Worksheet 'cnta - db - stein-watkins' (2006-07-12 at 10:10) sage: list(C) [[[0, -1, 1, 0, 0], '(1)', '1', '5'], [[0, -1, 1, -10, -20], '(5)', '1', '5'], [[0, -1, 1, -7820, -263580], '(1)', '1', '1']]r9U# Worksheet 'cnta - db - stein-watkins' (2006-07-12 at 10:10) sage: D = SteinWatkinsPrimeData(1) sage: D Stein-Watkins Prime Conductor Database p.1 Iteratorr:U# Worksheet 'cnta - db - stein-watkins' (2006-07-12 at 10:10) sage: C = D.next() sage: C Traceback (most recent call last): C = D.next() ... IOError: The Stein-Watkins data file /home/was/s/data/stein-watkins-ecdb/p.01.bz2 must be installed.r;U# Worksheet 'cnta - db - stein-watkins' (2006-07-12 at 10:10) sage: D = SteinWatkinsPrimeData(0) sage: D Stein-Watkins Prime Conductor Database p.0 Iteratorr<U# Worksheet 'cnta - db - stein-watkins' (2006-07-12 at 10:10) sage: C = D.next() sage: C Stein-Watkins isogeny class of conductor 11r=U# Worksheet 'cnta - db - stein-watkins' (2006-07-12 at 10:10) sage: list(C) [[[0, -1, 1, 0, 0], '(1)', '1', '5'], [[0, -1, 1, -10, -20], '(5)', '1', '5'], [[0, -1, 1, -7820, -263580], '(1)', '1', '1']]r>Ux# Worksheet 'cnta - db - stein-watkins' (2006-07-12 at 10:10) sage: D.next() Stein-Watkins isogeny class of conductor 17r?U# Worksheet 'cnta - db - sloane' (2006-07-12 at 10:10) sage: S = SloaneEncyclopedia sage: S Sloane Online Encyclopedia of Integer Sequencesr@U\# Worksheet 'cnta - db - sloane' (2006-07-12 at 10:11) sage: v = S.find(prime_range(2,100)) rAUF# Worksheet 'cnta - db - sloane' (2006-07-12 at 10:11) sage: len(v) 30rBTM# Worksheet 'cnta - db - sloane' (2006-07-12 at 10:11) sage: v[0] (40, [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, 113, 127, 131, 137, 139, 149, 151, 157, 163, 167, 173, 179, 181, 191, 193, 197, 199, 211, 223, 227, 229, 233, 239, 241, 251, 257, 263, 269, 271])rCTS# Worksheet 'cnta - db - sloane' (2006-07-12 at 10:11) sage: v[1] (8578, [1, 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, 113, 127, 131, 137, 139, 149, 151, 157, 163, 167, 173, 179, 181, 191, 193, 197, 199, 211, 223, 227, 229, 233, 239, 241, 251, 257, 263, 269, 271...rDU# Worksheet 'cnta - db - sloane' (2006-07-12 at 10:11) sage: w = [len(str(numerator(abs(bernoulli(10^n))))) for n in range(5)] sage: w [1, 1, 83, 1779, 27691]rEU{# Worksheet 'cnta - db - sloane' (2006-07-12 at 10:11) sage: S.find(w) [(103233, [1, 1, 83, 1779, 27691, 376772, 4767554])]rFU# Worksheet 'cnta - ec - bsd' (2006-07-12 at 10:11) sage: E = EllipticCurve('681b') sage: E Elliptic Curve defined by y^2 + x*y = x^3 + x^2 - 1154*x - 15345 over Rational FieldrGT\# Worksheet 'cnta - ec - bsd' (2006-07-12 at 10:11) sage: print E.mwrank() Curve [1,1,0,-1154,-15345] : 3 points of order 2: [-18:9:1], [-22:11:1], [310:-155:8] **************************** * Using 2-isogeny number 1 * **************************** Using 2-isogenous curve [0,422,0,59049,0] -------------------------------------------...rHT[# Worksheet 'cnta - ec - bsd' (2006-07-12 at 10:11) sage: time E.mwrank() "\nCurve [1,1,0,-1154,-15345] :\t\n3 points of order 2:\n[-18:9:1], [-22:11:1], [310:-155:8]\n\n****************************\n* Using 2-isogeny number 1 *\n****************************\n\nUsing 2-isogenous curve [0,422,0,59049,0]\n---------------------------------------...rIT\# Worksheet 'cnta - ec - bsd' (2006-07-12 at 10:11) sage: print E.mwrank() Curve [1,1,0,-1154,-15345] : 3 points of order 2: [-18:9:1], [-22:11:1], [310:-155:8] **************************** * Using 2-isogeny number 1 * **************************** Using 2-isogenous curve [0,422,0,59049,0] -------------------------------------------...rJUM# Worksheet 'cnta - ec - bsd' (2006-07-12 at 10:11) sage: E.analytic_rank() 0rKUF# Worksheet 'cnta - ec - bsd' (2006-07-12 at 10:11) sage: E.sha_an() 9rLUY# Worksheet 'cnta - ec - bsd' (2006-07-12 at 10:12) sage: E.Lseries(1) 1.8448152061268208rMUc# Worksheet 'cnta - ec - bsd' (2006-07-12 at 10:12) sage: E.omega() 0.81991786938969809641267899116rNUP# Worksheet 'cnta - ec - bsd' (2006-07-12 at 10:12) sage: E.tamagawa_number(3) 2rOU_# Worksheet 'cnta - ec - bsd' (2006-07-12 at 10:12) sage: E.non_surjective() [(2, '2-torsion')]rPU# Worksheet 'cnta - ec - bsd' (2006-07-12 at 10:12) sage: E.heegner_discriminants_list(10) [-8, -20, -35, -56, -68, -83, -95, -107, -119, -143]rQUt# Worksheet 'cnta - ec - bsd' (2006-07-12 at 10:12) sage: n = E.heegner_index(-20); n [8.99999215656, 9.00000831615]rRUR# Worksheet 'cnta - ec - bsd' (2006-07-12 at 10:12) sage: E.shabound_kato() [2, 3]rSU\# Worksheet 'cnta - ec - bsd' (2006-07-12 at 10:12) sage: E.shabound_kolyvagin() ([2, 3], 9)rTUT# Worksheet 'cnta - ec - bsd' (2006-07-12 at 10:12) sage: F = EllipticCurve('681c') rUU# Worksheet 'cnta - ec - bsd' (2006-07-12 at 10:12) sage: Eap = E.aplist(100) sage: Fap = F.aplist(100) sage: [(Eap[n][1] - Fap[n][1])%3 for n in range(len(Eap))] [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]rVTt# Worksheet 'cnta - ec - bsd' (2006-07-12 at 10:12) sage: E.isogeny_class() # written by Cremona ([Elliptic Curve defined by y^2 + x*y = x^3 + x^2 - 1154*x - 15345 over Rational Field, Elliptic Curve defined by y^2 + x*y = x^3 + x^2 - 19*x - 42812 over Rational Field, Elliptic Curve defined by y^2 + x*y = x^3 + x^2 - 2369*x + 20862 over Rational Field, Elliptic ...rWU{# Worksheet 'cnta - ec - bsd' (2006-07-12 at 10:12) sage: f = E.modular_form() sage: f q + q^2 - q^3 - q^4 + 2*q^5 + O(q^6)rXU# Worksheet 'cnta - ec - bsd' (2006-07-12 at 10:12) sage: f.parent() Modular Forms space of dimension 78 for Congruence Subgroup Gamma0(681) of weight 2 over Rational FieldrYUT# Worksheet 'cnta - ec - bsd' (2006-07-12 at 10:12) sage: E = EllipticCurve('389a') rZT# Worksheet 'cnta - ec - bsd' (2006-07-12 at 10:12) sage: E.padic_regulator(5) # makes a call to MAGMA for part of the algorithm (for now) 1 + 2*5 + 2*5^2 + 4*5^3 + 3*5^4 + 4*5^5 + 3*5^6 + 5^7 + 2*5^10 + 4*5^11 + 5^12 + 4*5^13 + 4*5^14 + 5^15 + 5^17 + 4*5^18 + O(5^20)r[eU_Notebook__defaultsr\}r](Ucell_output_colorr^U#0000EEr_Umax_history_lengthr`MUcell_input_colorraU#0000000rbUword_wrap_colsrcKduU_Notebook__worksheet_dirrdUsage_notebook/worksheetsreU_Notebook__filenamerfUsage_notebook/nb.sobjrgU_Notebook__default_worksheetrhjU_Notebook__next_worksheet_idriKU_default_filenamerjU5/home/was/talks/2006-07-09-cnta/sage_notebook/nb.sobjrkU_Notebook__systemrlNU_Notebook__dirrmU sage_notebookrnU_Notebook__authroU:U_Notebook__colorrpNU_Notebook__object_dirrqUsage_notebook/objectsrrub.