Attachment 'ram.sage'

Download

   1 # Compute the ramified primes in a quadratic number field
   2 def RamifiedPrimes(K):
   3     """
   4     Compute the list of (finite) ramified primes of K.
   5 
   6     Verify that K is a quadratic field.
   7     Compute discriminant
   8     Return a list of prime factors of discriminant.
   9     """
  10     import sage.rings.number_field.number_field as NF
  11     if not isinstance(K,NF.NumberField_quadratic):
  12         return -1
  13     D = K.discriminant()
  14     FL = D.factor()
  15     PL = [FL[i][0] for i in xrange(len(FL))]
  16     return PL

Attached Files

To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.
  • [get | view] (2009-03-12 00:43:42, 1182.6 KB) [[attachment:K3viaSage.pdf]]
  • [get | view] (2009-03-11 03:35:14, 28.2 KB) [[attachment:Resources.pdf]]
  • [get | view] (2009-03-12 00:45:44, 44.8 KB) [[attachment:SD14PolytopeDemo.sws]]
  • [get | view] (2009-03-10 23:47:20, 35.6 KB) [[attachment:SD14__Algebraic_schemes.sws]]
  • [get | view] (2009-03-10 23:47:40, 11.1 KB) [[attachment:SD14__Curves.sws]]
  • [get | view] (2009-03-10 23:47:47, 48.5 KB) [[attachment:SD14__Elliptic_curves.sws]]
  • [get | view] (2009-03-10 23:47:55, 14.0 KB) [[attachment:SD14__Morphisms_and_points.sws]]
  • [get | view] (2009-03-10 23:48:05, 5014.2 KB) [[attachment:SD14__Visualisation_1.sws]]
  • [get | view] (2009-03-10 23:48:13, 4609.0 KB) [[attachment:SD14__Visualisation_2.sws]]
  • [get | view] (2009-03-10 23:48:20, 4487.6 KB) [[attachment:SD14__Visualisation_3.sws]]
  • [get | view] (2009-03-11 03:26:40, 46.7 KB) [[attachment:Tut.pdf]]
  • [get | view] (2009-03-10 19:12:16, 3.3 KB) [[attachment:cubicsurface.m2]]
  • [get | view] (2009-03-10 19:29:34, 37.6 KB) [[attachment:cubicsurface.sws]]
  • [get | view] (2009-03-10 23:48:36, 119.8 KB) [[attachment:main.pdf]]
  • [get | view] (2009-03-11 17:40:43, 33.0 KB) [[attachment:polytope.png]]
  • [get | view] (2009-03-11 03:37:11, 0.5 KB) [[attachment:ram.sage]]
  • [get | view] (2009-01-31 23:05:25, 866.5 KB) [[attachment:sd14.pdf]]
  • [get | view] (2009-01-31 23:05:45, 11.3 KB) [[attachment:sd14.svg]]
  • [get | view] (2009-03-11 03:36:39, 2.4 KB) [[attachment:stuff.sage]]
 All files | Selected Files: delete move to page copy to page

You are not allowed to attach a file to this page.