Differences between revisions 13 and 28 (spanning 15 versions)
Revision 13 as of 2010-02-05 05:57:25
Size: 30251
Editor: newacct
Comment:
Revision 28 as of 2012-05-09 13:09:01
Size: 30464
Editor: chapoton
Comment: fixed "A Charpoly and Hecke Operator Graph" ?
Deletions are marked like this. Additions are marked like this.
Line 7: Line 7:
{{{ {{{#!sagecell
Line 18: Line 18:
{{{ {{{#!sagecell
Line 72: Line 72:
{{{ {{{#!sagecell
Line 86: Line 86:
{{{ {{{#!sagecell
Line 94: Line 94:
== Prime Spiral - Square == == Prime Spiral - Square FIXME ==
Line 96: Line 96:
{{{ {{{#!sagecell
Line 145: Line 145:
        N = M.copy()         N = copy(M)
Line 233: Line 233:
{{{ {{{#!sagecell
Line 307: Line 307:
{{{
j = 0
{{{#!sagecell
Line 313: Line 312:
    print j; global j; j += 1
Line 330: Line 328:
{{{ {{{#!sagecell
Line 343: Line 341:
{{{ {{{#!sagecell
Line 351: Line 349:
    G = Graph(T, multiedges=True, loops=not three_d)     G = DiGraph(T, multiedges=not three_d)
    if three_d:
        G.remove_loops()
Line 364: Line 364:
== Quadratic Residue Table == == Quadratic Residue Table FIXME ==
Line 366: Line 366:
{{{ {{{#!sagecell
Line 417: Line 417:
== Cubic Residue Table == == Cubic Residue Table FIXME ==
Line 419: Line 419:
{{{ {{{#!sagecell
Line 500: Line 500:
{{{ {{{#!sagecell
Line 549: Line 549:
    S = circle((0,0),1,rgbcolor='yellow')  \
    +
line([e_pt,e_gs_pt], rgbcolor='red', thickness=4) \
    +
line([f_pt,f_gs_pt], rgbcolor='blue', thickness=3) \
    +
line([ef_pt,ef_gs_pt], rgbcolor='purple',thickness=2) \
    +
point(e_pt,pointsize=50, rgbcolor='red')  \
    +
point(f_pt,pointsize=50, rgbcolor='blue') \
    +
point(ef_pt,pointsize=50,rgbcolor='purple') \
    +
point(f_gs_pt,pointsize=75, rgbcolor='black') \
    +
point(e_gs_pt,pointsize=75, rgbcolor='black') \
    +
point(ef_gs_pt,pointsize=75, rgbcolor='black') \
    +
point(js_pt,pointsize=100,rgbcolor='green')
    S = circle((0,0),1,rgbcolor='yellow')
    S +=
line([e_pt,e_gs_pt], rgbcolor='red', thickness=4)
    S +=
line([f_pt,f_gs_pt], rgbcolor='blue', thickness=3)
    S +=
line([ef_pt,ef_gs_pt], rgbcolor='purple',thickness=2)
    S +=
point(e_pt,pointsize=50, rgbcolor='red')
    S +=
point(f_pt,pointsize=50, rgbcolor='blue')
    S +=
point(ef_pt,pointsize=50,rgbcolor='purple')
    S +=
point(f_gs_pt,pointsize=75, rgbcolor='black')             S += point(e_gs_pt,pointsize=75, rgbcolor='black')
    S +=
point(ef_gs_pt,pointsize=75, rgbcolor='black')
    S +=
point(js_pt,pointsize=100,rgbcolor='green')
Line 561: Line 561:
        S += text('$J(%s,%s) = %s$'%(latex2(e),latex2(f),latex(js)), \         S += text('$J(%s,%s) = %s$'%(latex2(e),latex2(f),latex(js)),
Line 580: Line 580:
{{{ {{{#!sagecell
Line 629: Line 629:
    S = circle((0,0),1,rgbcolor='yellow')  \
    +
line([e_pt,e_gs_pt], rgbcolor='red', thickness=4) \
    +
line([f_pt,f_gs_pt], rgbcolor='blue', thickness=3) \
    +
line([ef_pt,ef_gs_pt], rgbcolor='purple',thickness=2) \
    +
point(e_pt,pointsize=50, rgbcolor='red')  \
    +
point(f_pt,pointsize=50, rgbcolor='blue') \
    +
point(ef_pt,pointsize=50,rgbcolor='purple') \
    +
point(f_gs_pt,pointsize=75, rgbcolor='black') \
    +
point(e_gs_pt,pointsize=75, rgbcolor='black') \
    +
point(ef_gs_pt,pointsize=75, rgbcolor='black') \
    +
point(js_pt,pointsize=100,rgbcolor='green')
    S = circle((0,0),1,rgbcolor='yellow')
    S +=
line([e_pt,e_gs_pt], rgbcolor='red', thickness=4)
    S +=
line([f_pt,f_gs_pt], rgbcolor='blue', thickness=3)
    S +=
line([ef_pt,ef_gs_pt], rgbcolor='purple',thickness=2)
    S +=
point(e_pt,pointsize=50, rgbcolor='red')
    S +=
point(f_pt,pointsize=50, rgbcolor='blue')
    S +=
point(ef_pt,pointsize=50,rgbcolor='purple')
    S +=
point(f_gs_pt,pointsize=75, rgbcolor='black')
    S +=
point(e_gs_pt,pointsize=75, rgbcolor='black')
    S +=
point(ef_gs_pt,pointsize=75, rgbcolor='black')
    S +=
point(js_pt,pointsize=100,rgbcolor='green')
Line 641: Line 641:
        S += text('$J(%s,%s) = %s$'%(latex2(e),latex2(f),latex(js)), \         S += text('$J(%s,%s) = %s$'%(latex2(e),latex2(f),latex(js)),
Line 653: Line 653:
        ga[i].save('j%d.PNG'%i,figsize=4,aspect_ratio=1, \         ga[i].save('j%d.png'%i,figsize=4,aspect_ratio=1,
Line 659: Line 659:
    html('<table bgcolor=lightgrey cellpadding=2>')     s='<table bgcolor=lightgrey cellpadding=2>'
Line 661: Line 661:
        html('<tr><td align="center"><img src="cell://j%d.PNG"></td>'%(2*i))
        html('<td align="center"><img src="cell://j%d.PNG"></td></tr>'%(2*i+1))
    html('</table>')
}}}
        s+='<tr><td align="center"><img src="cell://j%d.png"></td>'%(2*i)
        s+='<td align="center"><img src="cell://j%d.png"></td></tr>'%(2*i+1)
    s+='</table>'

    html(s)}}}
Line 670: Line 670:
== Adding points on an elliptic curve == == Adding points on an elliptic curve FIXME ==
Line 672: Line 672:
{{{ {{{#!sagecell
Line 748: Line 748:
{{{ {{{#!sagecell
Line 763: Line 763:
{{{ {{{#!sagecell
Line 777: Line 777:
    print """
<
html>
    html("""
Line 802: Line 801:
</ol></html> </ol>
Line 804: Line 803:
       (g^ b)^a, g^a, b, p, (g^a)^b)        (g^ b)^a, g^a, b, p, (g^a)^b))
Line 812: Line 811:
== Continued Fraction Plotter == == Continued Fraction Plotter FIXME ==
Line 814: Line 813:
{{{ {{{#!sagecell
Line 824: Line 823:
{{{ {{{#!sagecell
Line 845: Line 844:
{{{ {{{#!sagecell
Line 853: Line 852:
def _(gen = selector(['t+1', 't-1', '-1/t'], nrows=1)): def _(gen = selector(['t+1', 't-1', '-1/t'], buttons=True,nrows=1)):

Integer Factorization

Divisibility Poset

by William Stein

divposet.png

Factor Trees

by William Stein

factortree.png

More complicated demonstration using Mathematica: http://demonstrations.wolfram.com/FactorTrees/

Factoring an Integer

by Timothy Clemans

Sage implementation of the Mathematica demonstration of the same name. http://demonstrations.wolfram.com/FactoringAnInteger/

Prime Numbers

Illustrating the prime number theorem

by William Stein

primes.png

Prime Spiral - Square FIXME

by David Runde

SquareSpiral.PNG

Prime Spiral - Polar

by David Runde

PolarSpiral.PNG

Modular Forms

Computing modular forms

by William Stein

modformbasis.png

Computing the cuspidal subgroup

by William Stein

cuspgroup.png

A Charpoly and Hecke Operator Graph

by William Stein

heckegraph.png

Modular Arithmetic

Quadratic Residue Table FIXME

by Emily Kirkman

quadres.png

quadresbig.png

Cubic Residue Table FIXME

by Emily Kirkman

cubres.png

Cyclotomic Fields

Gauss and Jacobi Sums in Complex Plane

by Emily Kirkman

jacobising.png

Exhaustive Jacobi Plotter

by Emily Kirkman

jacobiexh.png

Elliptic Curves

Adding points on an elliptic curve FIXME

by David Møller Hansen

PointAddEllipticCurve.png

Plotting an elliptic curve over a finite field

ellffplot.png

Cryptography

The Diffie-Hellman Key Exchange Protocol

by Timothy Clemans and William Stein

dh.png

Other

Continued Fraction Plotter FIXME

by William Stein

contfracplot.png

Computing Generalized Bernoulli Numbers

by William Stein (Sage-2.10.3)

bernoulli.png

Fundamental Domains of SL_2(ZZ)

by Robert Miller

fund_domain.png

interact/number_theory (last edited 2020-06-14 09:10:48 by chapoton)