Re: [sage-support] Re: Sage's running too slowly

2012-08-31 Thread Alex Ghitza
 I have installed Sage (with the file sage-5.0-disk1.vmdk) on my
 Windows 64-bits (4 GB RAM, and processor of 2.4 GHz), and it is
 already running in my Virtual Box. But it's way too slow, even for
 the simplest commands, does anyone have any idea of what could be the
 reason for this? My virtual machine is running Sage in Fedora with
 512 MB of memory and 16 MB of video memory.

Are you using the command line interface or the Sage notebook?  Also,
can you have a look at the memory situation inside the virtual machine
(for instance, using top from the command line)?  It could be that
you are running out of RAM and are using the swap a lot, which makes
things very slow.  Of course, in that case doing *anything* inside the
virtual machine would feel quite slow.

-- 
Best,
Alex

--
Alex Ghitza -- Lecturer in Mathematics -- The University of Melbourne
http://aghitza.org

-- 
You received this message because you are subscribed to the Google Groups 
sage-support group.
To post to this group, send email to sage-support@googlegroups.com.
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support?hl=en.




Re: [sage-support] Calling up pi to nth decimal place.

2012-08-17 Thread Alex Ghitza
On Sat, Aug 18, 2012 at 9:06 AM, Robert Bradshaw rober...@gmail.com wrote:
 BBP won't help you compute the decimal digits of pi.

And this has nothing to do with pi: knowing some of the hexadecimal
digits of a number does not allow you to find some of the decimal
digits.  Base conversion requires you to know all the digits from the
fraction point to the part you are interested in.

(Try it yourself: I have a number N whose hexadecimal expansion is
*3A*, where I don't know the * digits.  What information does this
give you about the decimal expansion?)


-- 
Best,
Alex

--
Alex Ghitza -- Lecturer in Mathematics -- The University of Melbourne
http://aghitza.org

-- 
-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org





Re: [sage-support] random problem

2012-07-26 Thread Alex Ghitza
Hi,

On Thu, Jul 26, 2012 at 7:40 PM, robin hankin hankin.ro...@gmail.com wrote:
 I am trying to generate random numbers and am running into roundoff
 problems:

 RealDistribution('uniform', [1,1+1/10^16]).get_random_element()-1

 This returns zero every time for me, something that is almost surely wrong.
 I would expect a number chosen from the interval (0,1e-16).

 How do I make sage do what I want?

Does this help?

sage: R = RealField(100)
sage: R.random_element(1, 1+1/10^16)
1.745276341034
sage: R.random_element(1, 1+1/10^16)
1.899962307929

and so on.  Note that if you try to use RR (which is the same as
RealField(53)) you run into the same precision/roundoff problem as you
had before.  Hence the need to increase the working precision.

Also note that R.random_element() can only do uniform distribution, so
if you were hoping for something fancier this won't help.


-- 
Best,
Alex

--
Alex Ghitza -- Lecturer in Mathematics -- The University of Melbourne
http://aghitza.org

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] Generator of Finite Field

2012-05-29 Thread Alex Ghitza
Hi,

On Mon, May 21, 2012 at 9:29 AM, Oleksandr Kazymyrov
vrona.aka.ham...@gmail.com wrote:
 I have encountered the following problem In Sage 5.0:
 sage: R.x=ZZ[]
 sage: k=GF(2^8,name='a',modulus=x^8+x^4+x^3+x+1)
 sage: k(ZZ(3).digits(2))
 a + 1
 sage: k.gen()^ZZ(k(ZZ(3).digits(2)).log_repr())
 a
 sage:  k.gen()^ZZ(k(ZZ(3).digits(2)).log_repr()) == k(ZZ(3).digits(2))
 False
 sage: k(a+1)^ZZ(k(ZZ(3).digits(2)).log_repr()) == k(ZZ(3).digits(2))
 True

 It easy see that k.gen() or k.multiplicative_generator() is not a generator
 of the finite field:
 sage: k.multiplicative_generator()
 a^4 + a + 1

Why is it clear that a^4+a+1 is not a multiplicative generator?  I think it is:

sage: k.a = GF(2^8, names='a', name='a', modulus=x^8+x^4+x^3+x+1)
sage: (a^4+a+1).multiplicative_order()
255

Indeed, so is a+1:
sage: (a+1).multiplicative_order()
255

The docs for multiplicative_generator() say: return a generator of
the multiplicative group, then add Warning: This generator might
change from one version of Sage to another.


-- 
Best,
Alex

--
Alex Ghitza -- Lecturer in Mathematics -- The University of Melbourne
http://aghitza.org

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] exact vs approximate values

2011-08-27 Thread Alex Ghitza
Hi,

On Sat, Aug 27, 2011 at 11:29 PM, Dan Aldrich daldr...@earthlink.net wrote:
 Can the user control either to print an approximate value or an exact value?
 I tried to print the value of an integral under a bell curve:

  integrate(e^((-x^2)), x, -3, 3)

In addition to Simon's response, if you just want to perform a
numerical integral (instead of a symbolic one, from which you then try
to extract a number), you can use:

sage: numerical_integral(e^(-x^2), -3, 3)
(1.7724146965190428, 1.9677756052594506e-14)

It returns a pair of real numbers.  The first is a numerical
approximation to the value of the integral, and the second is an upper
bound on the error of this approximation.  Type

sage: numerical_integral?

to find out more about this.


Best,
Alex


--
Alex Ghitza -- Lecturer in Mathematics -- The University of Melbourne
-- http://aghitza.org

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] Testing if polynomial is in ideal

2010-09-06 Thread Alex Ghitza
On Mon, 6 Sep 2010 20:42:43 -0700 (PDT), Cary Cherng cche...@gmail.com wrote:
 Given p_i and q in Q[x_1,...,x_n] I want to see if q is in the ideal
 (p1,...,pm). Does sage have easy support for this?

Is this what you're looking for:

sage: R.x, y = QQ[]
sage: I = R.ideal(x^2, y)
sage: x^2*y+y^2 in I
True
sage: x in I
False


Best,
Alex


-- 
Alex Ghitza -- http://aghitza.org/
Lecturer in Mathematics -- The University of Melbourne -- Australia

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] Those cookies again...

2010-08-23 Thread Alex Ghitza
On Sat, 21 Aug 2010 19:12:49 -0700 (PDT), kcrisman kcris...@gmail.com wrote:
 Sysadmin has found possible workaround of deleting history of the
 browser.  This is fine in a lab, but potentially very crippling for
 those of us who rely on auto-completion of often-visited sites.
 Sysadmin is also very unlikely to try 4.5.2 VMWare image after recent
 reports of it not being so hot, though I think those may have been
 exaggerated - and anyhow he has a lot to do with the start of classes.

I'd say the only way you will know whether 4.5.2 works for you is to try
it out.  The vmware image gets downloaded *a lot* (200 times in the
first 5 days), and as far as I know there were only two problems
reported with it:
* unable to access the notebook from the host machine on Windows
  (this works for me on Mac OS X, and I don't have a Windows machine to
  test on -- someone suggested a workaround on the list but we haven't
  heard the original poster confirm that it fixed his problem)
* request for having R installed with image support; I will look into
  this for 4.5.3, but if this is likely to be important to you, you can
  just install the ubuntu libraries in your copy of the virtual machine

So, I'm not saying that the 4.5.2 vmware image is perfect, but I'm not
convinced it's any worse than 4.3, and once again, you can find out
whether it works for you by trying it out.  Try it out on your computer
first and see if the cookies issue is fixed, and then see if your system
administrator is willing to give it a shot.


Best,
Alex




-- 
Alex Ghitza -- http://aghitza.org/
Lecturer in Mathematics -- The University of Melbourne -- Australia

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] Error installing cadabra.spkg

2010-08-20 Thread Alex Ghitza

On Fri, 20 Aug 2010 17:29:52 -0500, Oscar Gerardo Lazo Arjona 
algebraicame...@gmail.com wrote:
 Hello people! I came across this problem while trying to install an spkg:
 
 checking pcre.h presence... no
 checking for pcre.h... no
 configure: error: Need the pcre library; get it from 
 http://www.pcre.org/ . Make sure to set CPPFLAGS if necessary.
 make: *** No se especificó ningún objetivo y no se encontró ningún 
 makefile.  Alto.
 make: *** No hay ninguna regla para construir el objetivo `install'.  Alto.
 
 real0m5.867s
 user0m2.736s
 sys0m2.916s
 sage: An error occurred while installing cadabra-0.115
 Please email sage-devel http://groups.google.com/group/sage-devel
 explaining the problem and send the relevant part of
 of /home/oscar/sage-4.5.2/install.log.  Describe your computer, 
 operating system, etc.
 If you want to try to fix the problem yourself, *don't* just cd to
 /home/oscar/sage-4.5.2/spkg/build/cadabra-0.115 and type 'make check' or 
 whatever is appropriate.
 Instead, the following commands setup all environment variables
 correctly and load a subshell for you to debug the error:
 (cd '/home/oscar/sage-4.5.2/spkg/build/cadabra-0.115'  
 '/home/oscar/sage-4.5.2/sage' -sh)
 When you are done debugging, you can type exit to leave the
 subshell.

 But I do have pcre installed on my ubuntu 10.04 system. If I type man 
 pcre I get a man page for perl compatible regular expressions, but if I 
 type pcre I get a pcre: command not found

I don't have a way to test this right now, but it looks very much like
the usual Ubuntu package thing where the header files are in the *-dev
package.  In your case, I would try installing libpcre3-dev and see if
it helps (it does include pcre.h, for instance).

Note also that pcre is a library so there is no pcre executable to run.


Best,
Alex

-- 
Alex Ghitza -- http://aghitza.org/
Lecturer in Mathematics -- The University of Melbourne -- Australia

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] Sheaf Cohomology Calculations

2010-08-11 Thread Alex Ghitza

Hi,

On Tue, 10 Aug 2010 13:52:09 -0700 (PDT), abak anthony@gmail.com wrote:
 How do I do sheaf cohomology calculations on a variety described as a
 complete (or local complete) intersection in P^n.  I can define the
 variety by (for example):
 
 P5, x = ProjectiveSpace(5, QQ).objgens()
 X = P5.subscheme([x[0]^2 + x[1]^2 + x[2]^2 + x[3]^2 + x[4]^2, 2*x[0]^2
 + x[1]^2 + 3*x[2]^2 + 4*x[3]^2 + 5*x[4]^2])
 
 What comes next?

Unfortunately, Sage does not do sheaf cohomology yet.  Macaulay2 should
be able to do this; you can have a look at 

http://www.math.uiuc.edu/Macaulay2/doc/Macaulay2-1.3.1/share/doc/Macaulay2/Macaulay2Doc/html/_coherent_spsheaves.html

and related pages, and if that does not help, ask on the Macaulay2
mailing list, see

http://groups.google.com/group/macaulay2


Best,
Alex



-- 
Alex Ghitza -- http://aghitza.org/
Lecturer in Mathematics -- The University of Melbourne -- Australia

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] VMware memory allocation: how to change it with version 4.5.2?

2010-08-11 Thread Alex Ghitza

Hi,

On Wed, 11 Aug 2010 10:02:03 -0700 (PDT), Rolandb rola...@planet.nl wrote:
 But there is a difference with (for instance) Sage 4.1.
 With Sage 4.1 I could change the memory allocation via the option VM
 Settings.
 
 With Sage 4.5.2. the allocation is only 512Mb, and can't be changed.
 Any solution at hand? Thanks in advance!

Here is a little experiment I ran: I just tried to change the RAM
allocation for the latest vmware image, and could not.  At the top of
the corresponding settings window, vmware tells me: Disabled items
cannot be changed until the virtual machine is powered off.  To make
these changes, first resume the virtual machine and then shut it down.

In other words, one cannot change the RAM allocation for a virtual
machine that is currently running or suspended, but only for machines
that are powered off.  I powered mine off and was able to change the
settings.


Best,
Alex


-- 
Alex Ghitza -- http://aghitza.org/
Lecturer in Mathematics -- The University of Melbourne -- Australia

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] Re: 4.5.1 or 4.5.2 for win?

2010-08-08 Thread Alex Ghitza

Hi,

On Sun, 8 Aug 2010 00:16:34 -0700 (PDT), Rolandb rola...@planet.nl wrote:
 
 There is a (huge) difference between win version 4.5.1 and 4.5.2.
 In version 4.5.1 an external network was setup, so I can use Sage via
 Windows Firefox using the address 192.168.236.128.
 The 4.5.2 version gives the warning that an external network was not
 setup.
 Is there an easy way to solve this? Thanks in advance!

The short answer is: I don't know.

Going from 4.5.1 to 4.5.2, I made no changes to either the Ubuntu
operating system that powers the virtual machine, nor to the settings of
the virtual machine itself.  The only thing that changed was the folder
sage, which now contains sage-4.5.2 instead of sage-4.5.1.

I also tested the image on my laptop (which runs Mac OS X, not Windows,
but that should not matter), and I can use the host's web browser to
access the virtual machine's Sage notebook without any problems.

So that's why I don't know what's going on at your end.  The best I can
do at the moment is to suggest renaming the sage-vmware folder and
starting over from sage-vmware-4.5.2.zip (if you still have it).


Best,
Alex




-- 
Alex Ghitza -- http://aghitza.org/
Lecturer in Mathematics -- The University of Melbourne -- Australia

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] 4.5.1 or 4.5.2 for win?

2010-08-07 Thread Alex Ghitza

Hi,

On Sat, 7 Aug 2010 12:37:16 -0700 (PDT), Rolandb rola...@planet.nl wrote:
 I'm thrilled that a new VMware version is out. But looking at
 METALINK, I found version 4.5.2 for win while other versions are
 4.5.1? See www.sagemath.org/mirror/win/meta/sage-vmware-4.5.2.zip.

Sage 4.5.2 was just released.  I had some insider information and
obtained the final tar while it was still being tested on some
platforms, and built it into vmware.  Thus the somewhat unusual
situation of sage-vmware-4.5.2 preceeding the official release by half a
day or so.

So it should be fine to use the sage-vmware-4.5.2 that's up now.


Best,
Alex


-- 
Alex Ghitza -- http://aghitza.org/
Lecturer in Mathematics -- The University of Melbourne -- Australia

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] Re: why does constructing this ring take forever?

2010-07-07 Thread Alex Ghitza
On Wed, 7 Jul 2010 01:56:29 -0700 (PDT), Simon King simon.k...@nuigalway.ie 
wrote:
 On 7 Jul., 09:48, luisfe lftab...@yahoo.es wrote:
  ...
  So, the
  time in constructing the PolynomialRing is in fact checking if
  16219299585*2^16612 - 1 is a proven prime.
 
 ... which means that the user should be given the opportunity to
 *assert* that the number is prime (or non-prime).
 

... and Ctrl-C should be allowed to stop this.  I tried this out, then
pressed Ctrl-C and had to go to the office.  It was still going more
than 6 hours later.


Best,
Alex


-- 
Alex Ghitza -- http://aghitza.org/
Lecturer in Mathematics -- The University of Melbourne -- Australia

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] Is there any way to get old VMware versions?

2010-06-21 Thread Alex Ghitza
On Mon, 19 Apr 2010 18:04:13 -0700, William Stein wst...@gmail.com wrote:
 I have now posted a brand new VMWare Sage-4.4 image:
 
 
 http://boxen.math.washington.edu/home/wstein/binaries/sage-vmware-4.4.alpha0.zip
 
 It's something I made from scratch using a different approach than before.
 Please try it out and let me know if it works at all for you.


Hi William,

I'd like to know what's involved in making a VMWare Sage image like the
one you mentioned above (and which is available for download from the
Sage web page).  I'm asking because we'll have to install Sage in our
computer labs (Windows only) and I'd like to use something more recent
than 4.4.alpha0.


Thanks,
Alex

 
-- 
Alex Ghitza -- http://aghitza.org/
Lecturer in Mathematics -- The University of Melbourne -- Australia

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] Re: zeros of the Riemann zeta function

2010-06-08 Thread Alex Ghitza
On Tue, 8 Jun 2010 12:33:38 +0100, Anne Driver annedrive...@gmail.com wrote:
 Yes, I did read the documentation. It says it returns the imaginary part.
 But there is no I - just a real number. As such I believe at the *very least
 * the documentation should say it returns the imaginary part as a real
 number. Better still is to return the imaginary part with an I in front of
 it.

I don't have strong opinions about the matter, but I'd like to point out
that the imaginary part of a complex number *is* just a real number 
(if z = x + i*y, the imaginary part is y, without the i).  So the
documentation is correct about this. 


Best,
Alex

-- 
Alex Ghitza -- http://aghitza.org/
Lecturer in Mathematics -- The University of Melbourne -- Australia

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] Re: Testing if something is an instance of FreeModule

2010-05-29 Thread Alex Ghitza
On Sat, 29 May 2010 04:26:31 -0700 (PDT), John Cremona john.crem...@gmail.com 
wrote:
 Does the function is_FreeModule() do what you want by any chance?

And if it does and you don't want to see the deprecation warnings all
the time:

sage: from sage.modules.all import is_FreeModule
sage: is_FreeModule(x)
False


Best,
Alex

-- 
Alex Ghitza -- http://aghitza.org/
Lecturer in Mathematics -- The University of Melbourne -- Australia

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] Re: power series bug?

2010-05-18 Thread Alex Ghitza
On Tue, 18 May 2010 12:21:57 -0700 (PDT), John Cremona john.crem...@gmail.com 
wrote:
 
 I think it is a bug.
 sage: p.prec()
 1
 sage: p(t).prec()
 +Infinity
 sage: p(t^2).prec()
 +Infinity
 
 The precision of the composite is not being computed correctly.  I
 hope someone more familiar with the power series code will jump in at
 this point.

This type of thing has been noticed before (a couple of times!), see

 http://trac.sagemath.org/sage_trac/ticket/3979
 http://trac.sagemath.org/sage_trac/ticket/5367

I guess it might be time to fix these :)


Best,
Alex


-- 
Alex Ghitza -- http://aghitza.org/
Lecturer in Mathematics -- The University of Melbourne -- Australia

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] projective duality for plane curves?

2010-04-28 Thread Alex Ghitza
On Tue, 27 Apr 2010 21:11:58 -0700, Ursula Whitcher urs...@math.hmc.edu wrote:
 
 I'm playing with a family of plane curves with rational coefficients in 
 the complex projective plane.  So rational or complex numbers would be 
 enough for me to test examples.  In a perfect world I'd be able to 
 specify a family using rational functions of arbitrary constants 
 (something like a x^2 + b/(a-1) y^2), and compute the projective dual in 
 terms of those constants.
 

That sounds good.  This request is being tracked at:

 http://trac.sagemath.org/sage_trac/ticket/8801


P.S.: The example you gave is a conic.  Is the family of plane curves you
are working with a family of conics?  If so, you might be able to use
the explicit formula for the dual of a general conic from page 712 in

Bashelor, Ksir, Traves - Enumerative algebraic geometry of conics, The
American Mathematical Monthly, vol. 115, no. 8, October 2008, pages 701--728.

Otherwise, we'll hopefully get a chance to implement the general case
soon.



Best,
Alex



 UAW
 
 -- 
 To post to this group, send email to sage-support@googlegroups.com
 To unsubscribe from this group, send email to 
 sage-support+unsubscr...@googlegroups.com
 For more options, visit this group at 
 http://groups.google.com/group/sage-support
 URL: http://www.sagemath.org

-- 
Alex Ghitza -- http://aghitza.org/
Lecturer in Mathematics -- The University of Melbourne -- Australia

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] projective duality for plane curves?

2010-04-27 Thread Alex Ghitza
On Tue, 27 Apr 2010 16:15:24 -0700 (PDT), Ursula Whitcher urs...@math.hmc.edu 
wrote:
 Can Sage compute the projective dual of a plane curve?

Not at the moment.  I'll open an enhancement ticket for this as a
requested feature.  It looks like an interesting problem.  What kind of
base rings do you care about?


Best,
Alex



-- 
Alex Ghitza -- http://aghitza.org/
Lecturer in Mathematics -- The University of Melbourne -- Australia

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] ¡RuntimeError: Unable to determi ne branch?!

2010-04-24 Thread Alex Ghitza

Hi,


On Sat, 24 Apr 2010 20:26:33 -0700 (PDT), Yonatan yzuletaoc...@gmail.com 
wrote:
  *Debian lenny 5.0.4
  *Linux kernel  2.6.26-2-686
  *gnome 2.22.3
 
  *sage-4.3.5-linux-32bit-debian_5.0-i686-Linux (version that i have. I
  downloaded it form official page: sage-4.3.5-linux-32bit-debian_5.0-
  i686-Linux.tar.lzma)
 
 
  I can't to load any library of sage (i am a new user of sage). i
 write ./sage and:
 
  ***
  ***
  sh: -c: line 0: unexpected EOF while looking for matching ``'
  sh: -c: line 1: syntax error: unexpected end of file
  
 ---
  RuntimeError  Traceback (most recent call
 last)
 
  /home/kinichi/Deb`s/sage-4.3.5-linux-32bit-debian_5.0-i686-Linux/
 local/

This is just a shot in the dark, but I think the problem might be that
the directory where you put sage has a ` character in it.  Can you 
try to rename the directory Deb`s to something else like Debs and
try again?


Best,
Alex



-- 
Alex Ghitza -- http://aghitza.org/
Lecturer in Mathematics -- The University of Melbourne -- Australia

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] Re: reset()

2010-04-19 Thread Alex Ghitza
On Mon, 19 Apr 2010 13:09:34 +0200, bb bblo...@arcor.de wrote:
 Tnx!
 
 Is there any explanation why the magic ends with del ?
 
 sage: del x
 sage: x
 ---
 NameError Traceback (most recent call last)
 
 /home/bb/sage-4.3.5/local/lib/python2.6/site-packages/sage/all_cmdline.pyc 
 in module()
 
 NameError: name 'x' is not defined
 sage:
 
 
 So the feature theses fits like a glove?

A very popular feature is introspection.  In this particular case, doing

sage: reset?

would tell you what reset does:

Delete all user defined variables, reset all globals variables back to
their default state, and reset all interfaces to other computer algebra
systems.

The feature that Harald was referring to is that x is a predefined
global variable.  You know this by doing

sage: globals()['x']
x

So now we know what the Sage function reset does.  del, on the other
hand, is a Python builtin function.  Googling del python gives that
del can also be used to delete entire variables.

So del x deletes the global variable from globals():

sage: del x
sage: globals()['x']
---
KeyError  Traceback (most recent call last)

/home/ghitza/ipython console in module()

KeyError: 'x'


But if you reset again, x is back:

sage: reset
sage: globals()['x']
x


And everything is behaving exactly as the docstrings indicate.


Alex


-- 
Alex Ghitza -- http://aghitza.org/
Lecturer in Mathematics -- The University of Melbourne -- Australia

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] Yamanouchi words

2010-04-13 Thread Alex Ghitza

I'm cc-ing this to sage-combinat-devel since they might have a better
idea about this.

Alex


On Tue, 13 Apr 2010 21:47:09 -0700 (PDT), Drini pdsanc...@gmail.com wrote:
 I'm confused about
 http://www.sagemath.org/doc/reference/sage/combinat/yamanouchi.html
 it's documentation for 4.3.5 but it's been the same since 4.3.1
 
 Is there a class?
 functions?
 or is it just a random note about those words?
 

-- 
Alex Ghitza -- http://aghitza.org/
Lecturer in Mathematics -- The University of Melbourne -- Australia

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

To unsubscribe, reply using remove me as the subject.


Re: [sage-support] strange n()

2010-04-10 Thread Alex Ghitza
On Sat, 10 Apr 2010 01:08:12 -0700, Mike Hansen mhan...@gmail.com wrote:
 On Sat, Apr 10, 2010 at 1:02 AM, bb bblo...@arcor.de wrote:
  Is there any explanation?
 
 Could you be more specific in your question?  Everything there looks
 normal to me.  n(pi, 20) means to compute using 20 bits of precision.

... which you can figure out from the first two lines of the docstring
for n, by typing n? at the Sage prompt :).


Best,
Alex


-- 
Alex Ghitza -- http://aghitza.org/
Lecturer in Mathematics -- The University of Melbourne -- Australia

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

To unsubscribe, reply using remove me as the subject.


Re: [sage-support] Why does my little program bring my department's server to its knees?

2010-03-03 Thread Alex Ghitza

Hi,

On Wed, 3 Mar 2010 08:08:13 -0800 (PST), Ben Linowitz 
benjamin.linow...@gmail.com wrote:
 I wrote a little program which almost brought my department's server
 down and would like to know why. Here is a brief description of the
 program [I can reproduce the actual code if necessary]:

That would indeed be helpful.

 By the way, the version of sage on the server is: SAGE Version 3.1.2,
 Release Date: 2008-09-19

My computer tells me that today's date is 2010-03-04.  The latest
version of Sage is 4.3.3.  That could very well be the issue :)

If you can, try to get sage-4.3.3 and run your code again.  Judging from
your email, I guess that your department's server runs Debian or Ubuntu,
and it has the distribution's (very very old) version of Sage
installed.  You could try to convince your system administrator to get
the latest version of Sage and install it (it would have to be a binary
from sagemath.org or building from source, since there isn't a more
recent Debian package).  If that's difficult, you can always put Sage
into your own home directory (if your disk quota allows it).

If you post your full code here then someone else could run it on
sage-4.3.3 and report on their findings.  Either it will work well,
which would give you a good argument to get your sysadmin to upgrade; or
it will bring somebody else's server down, in which case there's
probably some bug to fix.


Best,
Alex


-- 
Alex Ghitza -- http://aghitza.org/
Lecturer in Mathematics -- The University of Melbourne -- Australia

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] Re: Solve fails for a cubic

2010-03-02 Thread Alex Ghitza
On Tue, 2 Mar 2010 05:27:45 -0800 (PST), Sharpie ch...@sharpsteen.net wrote:
 Thanks for the reply Alex. I think I understand that by choosing a
 variable of the appropriate type, in this case one that is restricted
 to the real numbers, the roots can be determined in a straight-forward
 manner.

The way I see it, it is not actually a question about the variable
representing a real number; it is more a question of using polynomials
and their specialised built-in roots() method rather than symbolic
functions and the general-purpose solve().

 I had some more problems, but finally figured out how to coerce a
 expression of type symbolic to the real ring through a somewhat
 convoluted application of multiplication, full_simplify() and
 polynomial().
 
 The cubic is the result of balancing a system of conservation
 equations and then substituting in known information:
 
 y2 = var( 'y2' )
 
 f  =  1.54027132807289 == y2 + 0.0906104881640050/y2^2 +
 0.150
 
 # Multiply to eliminate fractions.
 f  = f * y2^2
 
 f.full_simplify().polynomial(RR).roots()
 
 [(-0.236040904804615, 1), (0.286518993973450, 1), (1.33979323890405,
 1)]

There might be an elegant way of doing this with symbolics, but I don't
know it.  However, if I move everything to one side of the == sign, your
f is a rational function (quotient of polynomials with real
coefficients).  So my approach would be:

sage: R.y2 = RR[]   # polynomials in y2 with real coefficients
sage: f = y2 + 0.0906104881640050/y2^2 + 0.150 - 1.54027132807289
sage: f.numerator().roots()
[(-0.236040904804615, 1), (0.286518993973450, 1), (1.33979323890405, 1)]

Note that the first line tells Sage what y2 is: the variable in a
polynomial ring with real coefficients.  Then when you define f, Sage
automatically knows that f is a rational function (in particular, it's
not an element of R, but of the fraction field of R:
sage: parent(f)
Fraction Field of Univariate Polynomial Ring in y2 over Real Field with 53 bits 
of precision
)

Anyway, I think it would make perfect sense to be able to just do
f.roots() for a rational function and have this return the roots of the
numerator, so that would make this a bit nicer.  For that matter, I
think that for a rational function f we should have both f.zeroes() and
f.poles() (and maybe also f.divisor()), and have f.roots() be an alias
for f.zeroes().

And again, maybe there should be a nice way of doing this within
symbolics and somebody else can comment on this.


Best,
Alex

-- 
Alex Ghitza -- http://aghitza.org/
Lecturer in Mathematics -- The University of Melbourne -- Australia

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] Solve fails for a cubic

2010-03-01 Thread Alex Ghitza
On Sun, 28 Feb 2010 23:02:08 -0800 (PST), Sharpie ch...@sharpsteen.net wrote:
 However, tonight I have been trying to solve an open channel flow
 problem which requires me to find the roots of:
 
   y^3 - 1.39027132807289 * y^2 + 0.090610488164005 == 0
 
 find_root() does return the correct answers-- but in this case both
 positive roots are of interest so it would be nice to recover them
 both at the same time.

Hi,

How about this:

sage: R.y = RR[]
sage: f = y^3 - 1.39027132807289 * y^2 + 0.090610488164005
sage: f.roots()
[(-0.236040904804615, 1), (0.286518993973450, 1), (1.33979323890405, 1)]


Is this what you were hoping for?


Best,
Alex



-- 
Alex Ghitza -- http://aghitza.org/
Lecturer in Mathematics -- The University of Melbourne -- Australia

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] Re: WTF

2010-02-17 Thread Alex Ghitza
On Wed, 17 Feb 2010 19:44:52 -0800 (PST), D.C. Ernst ernst.tr...@gmail.com 
wrote:
 If anyone is interested, they are welcome to see (and use) the
 finished product which is linked to from here:
 
 http://ma4140.wikidot.com/sage:sage-lab-1
 
 The lab is meant to be an introduction to Sage for my abstract algebra
 students.  If you take a look and notice an error or if you have any
 suggestions, please let me know.
 

Dear Dana,

Thanks for posting this, and I'm happy to hear that your worksheets are
safe.  I had a quick look at the intro, which is quite nice.  Here are a
few random comments:

* Under What is Sage: take should be taken
* one should also avoid using i and I as variables for the same
  obvious reason as for e
* just a comment: I never used del(); in fact, I didn't know it existed
  before reading your intro (thanks!); I normally just define f to be
  the next thing I'm interested in.  Actually, I don't know how to get
  information about del() in Sage; trying del? is not successful.
* when I get to plot(1/t, ...) I get a NameError because t has not yet
  been defined; did you do this on purpose to get them to fix it?
* for Divisibility of integers, you can also do something like
q, r = 4357.quo_rem(3754)
  and get the quotient and the remainder in one go.
* in Extended gcd, I think saying *the* values of r and s might
  mislead people into thinking that these values are uniquely
  determined; I would drop the the.


Best,
Alex

--
Alex Ghitza -- Lecturer in Mathematics -- The University of Melbourne
-- Australia -- http://www.ms.unimelb.edu.au/~aghitza/

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] Re: Sage Live CD (Alternativ based on Puppy Linux)

2010-02-17 Thread Alex Ghitza
On Wed, 17 Feb 2010 21:06:51 -0800, Jeff Post j_p...@pacbell.net wrote:
 I'd love to test it. Please let us know when and from where the iso file can 
 be downloaded anonymously.

Yes, that's pretty annoying.  I've gone through it, downloaded it and
posted it at

http://aghitza.org/misc/SageLivePupv02.iso

Here is the md5sum to check if the download is ok:
359f63129d4f3993bd890e4029b4d98f

I'll leave this up until a copy makes it onto the official Sage pages.


Best,
Alex


-- 
Alex Ghitza -- Lecturer in Mathematics -- The University of Melbourne
-- Australia -- http://www.ms.unimelb.edu.au/~aghitza/

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] Re: sagemath installs on ubuntu karmic, but abends on simple problem

2010-02-15 Thread Alex Ghitza
On Mon, 15 Feb 2010 10:50:18 -0800, William Stein wst...@gmail.com wrote:
  -1 to the phone home idea. It might be good to warn of releases that are
  really old, but this won't help with the one already in Debian.
 
  - Robert
 
 Since we're voting,
 
   +1 to the phone home idea
 
 simply because I've received requests for this feature *frequently*
 when I give talks.  It's really standard in just about all major
 software these days.  People really want some easy automatic way to
 find out when a new version has been released and is ready for them to
 upgrade to.

Note that some of the major software that does this also allows you to
turn it off (I'm thinking of Firefox here).


Best,
Alex

-- 
Alex Ghitza -- Lecturer in Mathematics -- The University of Melbourne
-- Australia -- http://www.ms.unimelb.edu.au/~aghitza/

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] sagemath installs on ubuntu karmic, but abends on simple problem

2010-02-13 Thread Alex Ghitza
On Sat, 13 Feb 2010 16:27:22 -0800 (PST), Tom Roche tlro...@gmail.com wrote:
 summary: I installed ubuntu package=sagemath (and dependencies) using
 aptitude on 2 previously-sage-clean ubuntu karmic boxes. Sage appeared
 to install cleanly on both boxes, but a simple problem (that works on
 sagenb.org) causes sage to abend similarly on both boxes. How to fix
 the current installs, or reinstall more appropriately?
 

The version of Sage that's currently packaged in Debian (and hence
Ubuntu) is really really old (think: dinosaur).  I suggest that you
download an Ubuntu binary from 

www.sagemath.org

This will give you Sage 4.3.2, the latest release.  Another option is to
download the sources and build it yourself.



Best,
Alex


-- 
Alex Ghitza -- Lecturer in Mathematics -- The University of Melbourne
-- Australia -- http://www.ms.unimelb.edu.au/~aghitza/

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] using n.factor()

2010-02-07 Thread Alex Ghitza
On Sun, 7 Feb 2010 15:17:08 -0800 (PST), davedo2 dave...@gmail.com wrote:
 I want to run a range of numbers through the factor() function and if
 I run a loop through a list as in:
 for i in [25,37,205]:
 print i.factor()
 it works fine, but if I try
 for i in range(1,5):
 print i.factor()
 I get the error message 'int' object has no attribute 'factor' - how
 do I get
 factor() to work with a range? Thanks...Dave
 

range() returns Python integers, which do not have a factor() method.
You need to get Sage integers instead, so use srange() or xsrange():

sage: srange(5)
[0, 1, 2, 3, 4]
sage: type(srange(5)[2])
type 'sage.rings.integer.Integer'
sage: for i in srange(1, 5):
  print i.factor()
1
2
3
2^2


Best,
Alex


-- 
Alex Ghitza -- Lecturer in Mathematics -- The University of Melbourne
-- Australia -- http://www.ms.unimelb.edu.au/~aghitza/

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] Re: polygon from list of points

2010-02-04 Thread Alex Ghitza
On Thu, 4 Feb 2010 00:43:10 -0800 (PST), Nathann Cohen 
nathann.co...@gmail.com wrote:
 Could you be by any chance trying to compute the convex hull of a set
 of points ?

In which case you would want to do for example:

sage: poly = Polyhedron(vertices=[(0, 0), (3, 0), (0, 3), (1, 1)])
sage: poly
A 2-dimensional polyhedron in QQ^2 defined as the convex hull of 3 vertices.
sage: poly.vertices()
[[0, 0], [3, 0], [0, 3]]

Note that Sage realised that (1, 1) was in the interior and ignored it.
There are a bunch of things you can do with your shiny new polygon now,
here is what tab-completion gives me:

sage: poly.
poly.Hrep_generator  poly.field   
poly.projection
poly.Hrepresentation poly.gale_transform  
poly.pyramid
poly.Vrep_generator  poly.graph   
poly.radius
poly.Vrepresentation poly.ieqs
poly.radius_square
poly.adjacency_matrixpoly.incidence_matrix
poly.ray_generator
poly.ambient_dim poly.inequalities
poly.rays
poly.bipyramid   poly.inequality_generator
poly.rename
poly.bounded_edges   poly.intersection
poly.render_solid
poly.categorypoly.is_compact  
poly.render_wireframe
poly.cdd_Hrepresentation poly.is_simple   
poly.reset_name
poly.cdd_Vrepresentation poly.line_generator  
poly.save
poly.center  poly.linearities 
poly.schlegel_projection
poly.db  poly.lines   
poly.show
poly.dim poly.lrs_volume  
poly.simplicial_complex
poly.dumppoly.n_Hrepresentation   
poly.triangulated_facial_incidences
poly.dumps   poly.n_Vrepresentation   
poly.union
poly.edge_truncation poly.n_equations 
poly.version
poly.equation_generator  poly.n_facets
poly.vertex_adjacencies
poly.equations   poly.n_inequalities  
poly.vertex_adjacency_matrix
poly.f_vectorpoly.n_lines 
poly.vertex_generator
poly.face_latticepoly.n_rays  
poly.vertex_graph
poly.facet_adjacency_matrix  poly.n_vertices  
poly.vertex_incidences
poly.facial_adjacencies  poly.polar   
poly.vertices
poly.facial_incidences   poly.prism   


Feel free to explore these and ask more questions.


Best,
Alex


-- 
Alex Ghitza -- Lecturer in Mathematics -- The University of Melbourne
-- Australia -- http://www.ms.unimelb.edu.au/~aghitza/

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] Re: Cannot run Sage

2010-02-02 Thread Alex Ghitza
On Tue, 2 Feb 2010 09:16:52 -0800 (PST), Drini pdsanc...@gmail.com wrote:
 
 Is it still up? If not, a fix is available somewhere? I just ran into
 this problem (arch 32bit also) today
 

Yes, try

http://modular.math.jmu.edu/linux/32bit/sage-4.3.1-fat-archlinux-i686-Linux.tar.lzma

(Other mirrors might have it as well by now.)


Best,
Alex

-- 
Alex Ghitza -- Lecturer in Mathematics -- The University of Melbourne
-- Australia -- http://www.ms.unimelb.edu.au/~aghitza/

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] Cannot run Sage

2010-01-30 Thread Alex Ghitza
On Sat, 30 Jan 2010 18:01:45 +1100, Alex Ghitza aghi...@gmail.com wrote:
 
 I will make a new binary distribution and upload it somewhere, and I'll
 send you the link when that's done.
 

It's basically done; I am getting it compressed with lzma right now, so
it should be ready in about 30 minutes, and available at

http://sage.math.washington.edu/home/ghitza/sage-archlinux-32bit-4.3.1-i686-Linux-gcc-4.4.3.tar.lzma


Best,
Alex


 
 On Sat, 30 Jan 2010 10:21:45 +0700, A. Akbar Hidayat keri...@gmail.com 
 wrote:
  Hi guyz...
  
  im using the binary version of sage for Arch Linux. However, when i run
  sage, i got a long error message. I post the error message on the
  attachment.
  
  I was able to use sage before, without any error. But the error occured this
  morning. so im actually confused why i got the error.
  


-- 
Alex Ghitza -- Lecturer in Mathematics -- The University of Melbourne
-- Australia -- http://www.ms.unimelb.edu.au/~aghitza/

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] Cannot run Sage

2010-01-29 Thread Alex Ghitza
  18 
  19 def is_RingHomset(H):   
 
 /media/data/sage-4.3.1-archlinux-32bit-i686-Linux/local/lib/python2.6/site-packages/sage/rings/quotient_ring.pyc
  in module()  
  30 import commutative_ring 
  31 import ideal
 --- 32 import sage.rings.polynomial.multi_polynomial_ideal 
  33 import sage.structure.parent_gens   
  34 from sage.interfaces.all import singular as singular_default, 
 is_SingularElement
 
 
 /media/data/sage-4.3.1-archlinux-32bit-i686-Linux/local/lib/python2.6/site-packages/sage/rings/polynomial/multi_polynomial_ideal.py
  in module()   
 227 from __future__ import with_statement   
 228 
 -- 229 from sage.interfaces.all import (singular as singular_default,  
 230  macaulay2 as macaulay2_default,
 231  magma as magma_default)
 
 /media/data/sage-4.3.1-archlinux-32bit-i686-Linux/local/lib/python2.6/site-packages/sage/interfaces/all.py
  in module()
   6 
   7 from expect import is_ExpectElement 
  8 from gap import gap, gap_reset_workspace, gap_console, gap_version, 
 is_GapElement, Gap  
   9 from genus2reduction import genus2reduction, Genus2reduction
  10 from gfan import gfan,  Gfan
 
 /media/data/sage-4.3.1-archlinux-32bit-i686-Linux/local/lib/python2.6/site-packages/sage/interfaces/gap.py
  in module()
 985 #print Automatically updating the cached Gap workspace:   
 
 986 #print WORKSPACE
 
 -- 987 gap_reset_workspace(verbose=False)
 988   
 989 # Delete all gap workspaces that haven't been used in at least 1
 
 
 /media/data/sage-4.3.1-archlinux-32bit-i686-Linux/local/lib/python2.6/site-packages/sage/interfaces/gap.py
  in gap_reset_workspace(max_workspace_size, verbose)  
 
 976 pass
 977 # end for   
 
 -- 978 g.eval('SaveWorkspace(%s);'%WORKSPACE)
 979 
 980 
 
 /media/data/sage-4.3.1-archlinux-32bit-i686-Linux/local/lib/python2.6/site-packages/sage/interfaces/gap.py
  in eval(self, x, newlines, strip, **kwds)
 478 input_line += ';'
 479
 -- 480 result = Expect.eval(self, input_line, **kwds)
 481
 482 if not newlines:
 
 /media/data/sage-4.3.1-archlinux-32bit-i686-Linux/local/lib/python2.6/site-packages/sage/interfaces/expect.pyc
  in eval(self, code, strip, synchronize, locals, **kwds)
 981 try:
 982 with gc_disabled():
 -- 983 return '\n'.join([self._eval_line(L, **kwds) for L in 
 code.split('\n') if L != ''])
 984 except KeyboardInterrupt:
 985 # DO NOT CATCH KeyboardInterrupt, as it is being caught
 
 
 /media/data/sage-4.3.1-archlinux-32bit-i686-Linux/local/lib/python2.6/site-packages/sage/interfaces/gap.py
  in _eval_line(self, line, allow_use_file, wait_for_prompt)
 683 try:
 684 if self._expect is None:
 -- 685 self._start()
 686 E = self._expect
 687 #import pdb; pdb.set_trace()
 
 
 /media/data/sage-4.3.1-archlinux-32bit-i686-Linux/local/lib/python2.6/site-packages/sage/interfaces/gap.py
  in _start(self)
 360 self._session_number = n
 361 return
 -- 362 raise RuntimeError, msg
 363
 364 if self.__use_workspace_cache and self.__make_workspace:
 
 RuntimeError: Unable to start gap
 Error importing ipy_profile_sage - perhaps you should run %upgrade?
 WARNING: Loading of ipy_profile_sage failed.

-- 
Alex Ghitza -- Lecturer in Mathematics -- The University of Melbourne
-- Australia -- http://www.ms.unimelb.edu.au/~aghitza/

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] NIST elliptic curves in the Cremona database?

2010-01-21 Thread Alex Ghitza
Hi Alasdair,

My initial reaction is to point out that the NIST elliptic curves are
over finite fields, while the Cremona database contains elliptic curves
over the rational numbers.

I don't see why we couldn't have a database with the NIST recommended
elliptic curves available in Sage, though.


Best,
Alex



On Thu, 21 Jan 2010 16:13:38 -0800 (PST), Alasdair amc...@gmail.com wrote:
 I'm trying to find out if the NIST recommended elliptic curves
 (appendix to http://csrc.nist.gov/publications/fips/fips186-3/fips_186-3.pdf)
 are in the Cremona database.  I can't seem to find anything online;
 does anybody here know?
 
 Thanks,
 Alasdair
 
 -- 
 To post to this group, send email to sage-support@googlegroups.com
 To unsubscribe from this group, send email to 
 sage-support+unsubscr...@googlegroups.com
 For more options, visit this group at 
 http://groups.google.com/group/sage-support
 URL: http://www.sagemath.org

-- 
Alex Ghitza -- Lecturer in Mathematics -- The University of Melbourne
-- Australia -- http://www.ms.unimelb.edu.au/~aghitza/

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] NIST elliptic curves in the Cremona database?

2010-01-21 Thread Alex Ghitza
On Thu, 21 Jan 2010 16:36:47 -0800, William Stein wst...@gmail.com wrote:
 Aren't those curves owned by some company though, and one can't use
 them without paying license fees?   I can't believe I just wrote that
 sentence.
 

There's some info at

http://en.wikipedia.org/wiki/ECC_patents

It doesn't seem to indicate that the curves themselves are under patent,
and it would seem wrong for a government institution such as NIST to
recommend curves for which license fees must be paid.  (Of course just
because it seems wrong doesn't mean that it's not the case.)

The ECC algorithms themselves are a more contentious matter.  RSA
thinks that the original algorithms due to Koblitz-Miller are not under
patent, but that certain implementation techniques and newer algorithms
are, see 

http://www.rsa.com/rsalabs/node.asp?id=2325


Best,
Alex


-- 
Alex Ghitza -- Lecturer in Mathematics -- The University of Melbourne
-- Australia -- http://www.ms.unimelb.edu.au/~aghitza/

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: Problem installing sage on ArchLinux.

2010-01-04 Thread Alex Ghitza
On Mon, 4 Jan 2010 03:03:32 -0800 (PST), Harald Schilly 
harald.schi...@gmail.com wrote:
 On Jan 4, 1:16 am, Alex Ghitza aghi...@gmail.com wrote:
  I finished creating binaries for 32-bit and 64-bit Archlinux...
 
 Hi, should I upload these to the mirror or do you try again with the
 fat binaries option?
 

I'll try the fat binaries option, and if that works I'll upload the two
files to sage.math.  It might take 12 hours or so because I'm about to
go to bed now, so if something goes wrong I won't know until the
morning.  Anyway, I'll email you when I'm done.

Best,
Alex


-- 
Alex Ghitza -- Lecturer in Mathematics -- The University of Melbourne
-- Australia -- http://www.ms.unimelb.edu.au/~aghitza/

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: Problem installing sage on ArchLinux.

2010-01-04 Thread Alex Ghitza
On Mon, 4 Jan 2010 03:03:32 -0800 (PST), Harald Schilly 
harald.schi...@gmail.com wrote:
 On Jan 4, 1:16 am, Alex Ghitza aghi...@gmail.com wrote:
  I finished creating binaries for 32-bit and 64-bit Archlinux...
 
 Hi, should I upload these to the mirror or do you try again with the
 fat binaries option?
 

OK, the fat binaries are now on sage.math:

   
http://sage.math.washington.edu/home/ghitza/sage-4.3-linux-archlinux-fat-i686-Linux.tar.lzma

   and

   
http://sage.math.washington.edu/home/ghitza/sage-4.3-linux-archlinux-fat-x86_64-Linux.tar.lzma


Thanks,
Alex


-- 
Alex Ghitza -- Lecturer in Mathematics -- The University of Melbourne
-- Australia -- http://www.ms.unimelb.edu.au/~aghitza/

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] Problem installing sage on ArchLinux.

2010-01-03 Thread Alex Ghitza
On Sun, 3 Jan 2010 01:09:00 -0800 (PST), Eugene Goldberg omegat...@gmail.com 
wrote:
 I've got two computers with archlinux (i686 and x86_64 versions) and
 on both machines there is same problem installing sage:
 
 $make
 
   File /home/ajunta/Binary/sage-4.3-linux-Ubuntu_9.10-x86_64-Linux/
 local/lib/python2.6/site-packages/sage/interfaces/gap.py, line 362,
 in _start
 raise RuntimeError, msg
 RuntimeError: Unable to start gap
 
 could you please advice what is wrong with it?
 

Hi,

It looks like you're trying to install from the binaries for Ubuntu, is
that correct?  I have never tried that, but I wouldn't be suprised if it
didn't work, since archlinux and ubuntu aren't really that close.

One of these days I will find out how to make binaries and I'll produce
32 and 64 bit binaries for archlinux.  Until then, I suggest you
download the source code for Sage and build it yourself.  It is a bit on
the long side (a few hours), but it should work pretty well.  After you
download sage-4.3.tar, untar it and look at the README.txt file.  It's
not quite up to date, but it's pretty good.  In particular, Arch Linux
is listed as unsupported, but several people have been building Sage on
it for a while and it works fine.

Before you start the build, make sure you have the prerequisites -- to
those listed in README.txt, you have to add gcc-fortran.  You also need
to set the environment variables SAGE_FORTRAN and SAGE_FORTRAN_LIB as
described in README.txt.

Good luck, and let us know if you have any more problems.


PS: After writing the above, I noticed that Sage 4.3 is actually
packaged in AUR, both as source (sage-mathematics) and as binary
(sage-mathematics-bin).  So that could be another option.  (But I still
think that the easiest and most robust way is to build from source.)



Best,
Alex

-- 
Alex Ghitza -- Lecturer in Mathematics -- The University of Melbourne
-- Australia -- http://www.ms.unimelb.edu.au/~aghitza/

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] Problem installing sage on ArchLinux.

2010-01-03 Thread Alex Ghitza
On Sun, 03 Jan 2010 20:47:37 +1100, Alex Ghitza aghi...@gmail.com wrote:
 
 One of these days I will find out how to make binaries and I'll produce
 32 and 64 bit binaries for archlinux.


Sorry to be replying to myself.  I read through the rest of README.txt
(for the first time ever, I guess), and saw the section on creating
binaries for redistribution.  I'll try that and report back.

Best,
Alex


-- 
Alex Ghitza -- Lecturer in Mathematics -- The University of Melbourne
-- Australia -- http://www.ms.unimelb.edu.au/~aghitza/

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] Modular Symbols and irregular cusps

2010-01-03 Thread Alex Ghitza

Hi Kilian,

I am forwarding this to the sage-nt mailing list as well since you might
get a larger audience.


Best,
Alex


On Sun, 3 Jan 2010 13:51:19 -0800 (PST), Kilian kkil...@googlemail.com wrote:
 Hello,
 
 i have a problem with sage and modular symbols for Gamma1(4) and odd
 weight k, where the cusp 1/2 is irregular.
 
 According to Merel, there is (for k2) an exact sequence:
 
 0- S_k - M_k - B_k - 0
 
 Here B_k is the boundary space and S_k is the cuspidal subspace.
 
 Let the weight k be 7.
 
 If I compute the appropriate dimensions with SAGE,  I get 4,6 and 3
 which can't be.  Furthermore, computing the boundary map, gives a
 matrix which is definitely _not_ surjective.
 
 On the other hand, Merel explicitely states that the dimension of B_k
 is the number of cusps, i.e. 3, so the failure must already be in
 Merel's paper, or am I missing something?
 
 I assume that 4 and 6 are correct, as a comparison with the usual
 dimension tables for modular forms suggest.
 
 What is even more confusing is that Merel states that the isomorphism
 between the boundary space and the space B_k(Gamma) is an
 _isomorphism_, whereas in the SAGE sourcecode and in William Stein's
 book it is only stated that it's injective.
 
 Thanks in advance,
 Kilian.
 


-- 
Alex Ghitza -- Lecturer in Mathematics -- The University of Melbourne
-- Australia -- http://www.ms.unimelb.edu.au/~aghitza/

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] Re: Problem installing sage on ArchLinux.

2010-01-03 Thread Alex Ghitza
On Sun, 3 Jan 2010 06:30:15 -0800 (PST), Eugene Goldberg omegat...@gmail.com 
wrote:
 Thanks for the advice, I had some problems building previous version
 of sage, and like that one - it solved by building sage from source. I
 guess building from source is the best way to avoid many problems.
 

Glad to hear it worked.

I finished creating binaries for 32-bit and 64-bit Archlinux, and they
are now at

http://sage.math.washington.edu/home/ghitza/sage-4.3-linux-archlinux-i686-Linux.tar.lzma

and

http://sage.math.washington.edu/home/ghitza/sage-4.3-linux-archlinux-x86_64-Linux.tar.lzma


Harald, can you put these on the Linux binaries page?  I will try to
keep producing these for the next releases.


Best,
Alex


-- 
Alex Ghitza -- Lecturer in Mathematics -- The University of Melbourne
-- Australia -- http://www.ms.unimelb.edu.au/~aghitza/

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] Re: Problem installing sage on ArchLinux.

2010-01-03 Thread Alex Ghitza
On Sun, 3 Jan 2010 16:46:07 -0800, William Stein wst...@gmail.com wrote:

 1. I already produce 64-bit binaries (which should be posted).

OK.  They're not appearing in the binary-Linux-64 bit directory, at
least on the mirrors that I looked at.

 2. Did you set
 
  export  SAGE_FAT_BINARY=yes

No, I didn't because of the warning in README.txt.  I can do it in the
future, though.
 

Best,
Alex


-- 
Alex Ghitza -- Lecturer in Mathematics -- The University of Melbourne
-- Australia -- http://www.ms.unimelb.edu.au/~aghitza/

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] Fwd: sage q

2009-12-31 Thread Alex Ghitza

Note also that there is not just one but many embeddings of GL(8, GF(2))
into GL(10, GF(2)), and I'm not convinced that any of them is more
natural than the others -- there is even more than one diagonal
embedding.  So I'm not sure this is a well-defined question (but maybe
I'm misinterpreting what Ciaran was saying). 

Best,
Alex


-- 
Alex Ghitza -- Lecturer in Mathematics -- The University of Melbourne
-- Australia -- http://www.ms.unimelb.edu.au/~aghitza/

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] Re: Running Sage remotely via a web browser: How?

2009-12-22 Thread Alex Ghitza
On Tue, 22 Dec 2009 10:26:41 -0800 (PST), rvaug...@gmail.com 
rvaug...@gmail.com wrote:
 
 However: I'm obviously not crazy about running
 my machine w/ the firewall disabled.
 Is there a way to config the firewall such that
 the firewall is enabled AND Sage can be run remotely?
 Possibly specify WWW (HTTP) and/ or Secure WWW (HTTPS)
 as Trusted Services?
 

System-level configuration is not uniform across Linux distributions, so
without knowing what particular distribution you are using it is hard to
give you precise advice.

For instance, my distribution is Archlinux, and I just use the simple
host access control specified by /etc/hosts.allow and /etc/hosts.deny.
The syntax of these is fairly simple and man hosts.allow tells me all
about it.  I would for instance put

in /etc/hosts.deny:
  ALL: ALL

to deny all requests by default, together with

in /etc/hosts.allow:
  SSHD: ALL

to let all ssh login requests through.  

I don't need an elaborate firewall setup because this is just my laptop
sitting on my behind a router that also only allows ssh through.
Someone running a Linux server might use iptables to set up a proper
firewall with more complicated rules.  So what I would do in your
situation is to find out what firewall software is enabled on your
machine and then google XYZ ABC configuration, where XYZ is your Linux
distribution and ABC is the firewall software.


Best,
Alex

-- 
Alex Ghitza -- Lecturer in Mathematics -- The University of Melbourne
-- Australia -- http://www.ms.unimelb.edu.au/~aghitza/

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] Re: An abbreviation for lambda?

2009-12-14 Thread Alex Ghitza
On Mon, Dec 14, 2009 at 10:31:14PM +0100, Jaap Spies wrote:
 Martin Rubey wrote:
  Carlos Córdobaccordob...@gmail.com  writes:
 
  Anyway, the use of anonymous functions is mostly useful on constructs
  that operate over lists, like map and reduce. In 10 years of using
  Mathematica I've ever needed to derive this kind functions, but
  nevertheless I've checked if it's possible, and indeed it is, for
  example
 
  D[(#^2)[x], x]
 
  gives 2*x.
 
  I don't think that this implies that anonymous functions are symbolic,
  since (#^2)[x] gives already x^2.  MMA's evaluation rules are tricky
  though, I do not know whether D evaluates all it's arguments before
  calling.
 
 
 I truly hope this 'hocus pocus' will never make it in Sage!
 
 Jaap
 

The whole discussion started with a suggestion for making the lambda
notation more mathematician-friendly (by making it closer to
mathematical notation).  Based on this, two comments:

1. I agree with Jaap that Mathematica's notation is by far less
human-friendly than the Python lambda.  It's really obscure.  Maybe it
makes sense when viewed as part of Mathematica's syntax, but it would
look really ugly and weird in Sage.  So, please no!

2. Going back to the original suggestion, which was to use -: that's
not actually correct mathematical notation.  The right one is closer
to what Sage outputs (as Jason pointed out), i.e.

x |- x^2

So if we're going to do anything in this direction, I would much
prefer this to x - x^2 which is just plain wrong.



Best,
Alex


-- 
Alex Ghitza -- Lecturer in Mathematics -- The University of Melbourne
-- Australia -- http://www.ms.unimelb.edu.au/~aghitza/

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] Re: Integer points of an elliptic curve

2009-12-06 Thread Alex Ghitza
On Sun, Dec 06, 2009 at 04:23:35PM -0800, Jaakko Seppälä wrote:
 I tried this. Do I need include some package in Sage. I have
 sage3.0.5dfsg-4ubuntu1 installed via apt-get. I got this output

Hi Jaakko,

The version of Sage that's packaged in Debian in Ubuntu (3.0.5) is
quite old by now.  The current stable version is 4.2.1, and in the
meantime there have been a lot of changes and additions, including to
elliptic curves.  I suggest that you download a recent Ubuntu binary
from sagemath.org, or that you download the source code and build Sage
yourself (this takes some time though). 

Definitely let us know if you're having any trouble installing a
recent version, or if there are other features that you would like to
have regarding elliptic curves.


Best,
Alex


-- 
Alex Ghitza -- Lecturer in Mathematics -- The University of Melbourne
-- Australia -- http://www.ms.unimelb.edu.au/~aghitza/

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] weird error after starting Sage 4.2.1 in terminal

2009-11-27 Thread Alex Ghitza

When I start sage-4.2.1, about 5 seconds after the sage: prompt
appears, I get this:

--
| Sage Version 4.2.1, Release Date: 2009-11-14   |
| Type notebook() for the GUI, and license() for information.|
--
sage: Traceback (most recent call last):
  File /home/ghitza/sage-devel/local/bin/sage-cleaner, line 108, in module
while cleanup()  0:
  File /home/ghitza/sage-devel/local/bin/sage-cleaner, line 53, in cleanup
if not e or (e and kill_spawned_jobs(spawned_processes, parent_pid)):
  File /home/ghitza/sage-devel/local/bin/sage-cleaner, line 75, in 
kill_spawned_jobs
os.killpg(int(pid), 9)
ValueError: invalid literal for int() with base 10: 'Cl\xd9\x02\x1f\x7fl'


I have not run into this in previous versions.  Has anyone else seen
this?


Best,
Alex


-- 
Alex Ghitza -- Lecturer in Mathematics -- The University of Melbourne
-- Australia -- http://www.ms.unimelb.edu.au/~aghitza/

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] weird error after starting Sage 4.2.1 in terminal

2009-11-27 Thread Alex Ghitza
On Fri, Nov 27, 2009 at 03:53:39PM -0800, William Stein wrote:
 
 I've never heard of this.   The above could be caused by some file
 being corrupted.
 
 Delete $HOME/.sage/temp to get rid of this problem.
 

Thanks, that did it.


-- 
Alex Ghitza -- Lecturer in Mathematics -- The University of Melbourne
-- Australia -- http://www.ms.unimelb.edu.au/~aghitza/

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] [sage-edu] Re: Advice on adopting Sage in undergrad teaching?

2009-11-17 Thread Alex Ghitza

On Tue, Nov 17, 2009 at 09:23:40PM +0100, Francois Maltey wrote:
 This calculus is maple-right but is user-discourteous.
 
 M = matrix ([[a,b],[c,d]])
 0*M = 0 with maple, and all other systems answer matrix([[0,0],[0,0]])
 
 Even if you explain that for maple syntax, it's normal to get 0*A = 0 
 because the right way is evalm(0*M), I repeat : everyone thinks that 
 0*M = matrix 0, not number 0. This 0*XYZ=0 rule isn't fine.
 Only(?) an object language (as python) can treat this multi-sens of zero.

I'm not sure I understand this paragraph.  Mathematically, 0*M is
always the zero matrix and never the number 0.  So it seems to me that
maple screws up if it returns the number 0.  In Sage:

sage: var(a b c d)
(a, b, c, d)
sage: M = matrix([[a,b],[c,d]])
sage: 0*M

[0 0]
[0 0]



 I have an other question : how can you easily verify this  theorem in 
 sage ?
 
 M = matrix([[a,b],[c,d]])# or an nxn matrix with any parameters...
 P = det (M - x*matrix ONE) # Call Cayley-Hamilton therem in France
 eval (P with x=M) answers matrix([[0,0],[0,0]]).


Here is one way, I don't know if there's an easier one:

sage: var(a b c d)
(a, b, c, d)
sage: M = matrix([[a,b],[c,d]])
sage: I = M.parent()(1)
sage: P = lambda x: det(M - x*I)
sage: P(M)
0

 
 The two first methods I don't find in sage was :
 
 1/ Sum as sum(q^k, k=0..N)=(1-q^(n+1))/(1-q) and sum(x^k/k!, k=0..+oo)=e^x

This is in the works presently, wrapping Maxima's symbolic summation.
It's ticket 3587, and might make it into sage-4.3:

http://trac.sagemath.org/sage_trac/ticket/3587

 
 2/ kernel over matrix is right, but I don't find the maple intbasis and 
 sumbasis which build a basis for F cap G and F+G where the F and G 
 subspaces are described by a list of vectors.
 

You have to work with the objects in Sage (which in my opinion is good
because students are forced to think about subspaces rather than lists
of vectors):

sage: V = VectorSpace(QQ, 5)
sage: F = V.subspace([(0,1,2,3,4), (1,2,3,4,6), (0,1,0,1,0)])
sage: G = V.subspace([(1, 1, 0, 0, 0), (0, 1, 1, 2, 2), (5, 4, 3, 2, 1)])
sage: I = F.intersection(G)
sage: I.basis()

[
(1, 0, -1, -2, -2),
(0, 1, 1, 2, 2)
]

sage: S = F + G
sage: S.basis()

[
(1, 0, 0, -1, 0),
(0, 1, 0, 1, 0),
(0, 0, 1, 1, 0),
(0, 0, 0, 0, 1)
]


Best,
Alex


-- 
Alex Ghitza -- Lecturer in Mathematics -- The University of Melbourne
-- Australia -- http://www.ms.unimelb.edu.au/~aghitza/

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: Advice on adopting Sage in undergrad teaching?

2009-11-17 Thread Alex Ghitza
On Tue, Nov 17, 2009 at 01:52:58PM -0800, Simon King wrote:
 Hi Alex!
 
 On 17 Nov., 22:12, Alex Ghitza aghi...@gmail.com wrote:
 ...
  I'm not sure I understand this paragraph.  Mathematically, 0*M is
  always the zero matrix and never the number 0.  So it seems to me that
  maple screws up if it returns the number 0.  
 
 I don't know whether maple returns the number 0. But even in Sage,
 although 0*M is a matrix and not a number, this matrix is equal to the
 number 0:
 
 sage: M = Matrix([[1,2],[3,4]])
 sage: 0*M==0
 True
 sage: type(0*M)
 type 'sage.matrix.matrix_integer_dense.Matrix_integer_dense'
 

This is most likely because __cmp__ first coerces the right hand side
(0) into the matrix space that the left hand side (0*M) lives in.  I
think that's fine, though?


Alex

-- 
Alex Ghitza -- Lecturer in Mathematics -- The University of Melbourne
-- Australia -- http://www.ms.unimelb.edu.au/~aghitza/

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: Sage upgrade

2009-11-10 Thread Alex Ghitza

On Tue, Nov 10, 2009 at 01:27:18PM -0800, Mikie wrote:
 
 Simon,
 
 No, I haven't any upgrade.
 Could you tell explicitly what to do for the upgrade?
 

Just type

sage -upgrade

and see what happens.


Alex



-- 
Alex Ghitza -- Lecturer in Mathematics -- The University of Melbourne
-- Australia -- http://www.ms.unimelb.edu.au/~aghitza/

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Arch Linux and Sage

2009-11-09 Thread Alex Ghitza

On Mon, Nov 09, 2009 at 05:49:40PM -0800, Josh wrote:
 
 I got the error when it attempted to compile R, 113 minutes into the
 process.  Is this why I would have had to copy libgcc.so to the
 appropriate directory and if so, what directory?
 

Here is where you have two options:

1. As William wrote in a previous message, do

  export SAGE_FORTRAN=/usr/bin/gfortran 
   
  export  SAGE_FORTRAN_LIB=/usr/lib/libgfortran.so
 

This assumes you have gfortran installed on your system.  If not, do 

pacman -S gcc-fortran

Now if you run make there should be no problems with R any more.
(Note that I haven't tried this option yet, but it should be the right
way to go.  It also has the advantage that you can do it at the very
beginning, instead of having to wait until R fails.)

2. The other option (more of a hackish workaround) is to do

cp /usr/lib/libgcc_s.so /opt/sage-4.2/local/lib/gcc-lib/i686-pc-linux-gnu/4.0.3/

and try make again.


Best,
Alex


-- 
Alex Ghitza -- Lecturer in Mathematics -- The University of Melbourne
-- Australia -- http://www.ms.unimelb.edu.au/~aghitza/

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Arch Linux and Sage

2009-11-08 Thread Alex Ghitza

On Sun, Nov 08, 2009 at 03:57:12PM -0800, William Stein wrote:
 
 On Sun, Nov 8, 2009 at 3:55 PM, Josh chaotixmonju...@gmail.com wrote:
 
  I was wondering what I am suppose to do with libreadline to get it to
  compile.
 
 Quoting from Tim's email: * Incompatible libreadline.so.6 -- the
 libreadline in Sage is dynamically linked to libtermcap. Arch Linux
 disables libtermcap, so one needs to copy the system's libreadline to
 $SAGE_ROOT/local/lib. This is also the case in binary distributions.
 

Yep.  On my system, when I get the sqlite error, I type

cp /usr/lib/libreadline.so /opt/sage-4.2/local/lib/

and then make again.


Best,
Alex



-- 
Alex Ghitza -- Lecturer in Mathematics -- The University of Melbourne
-- Australia -- http://www.ms.unimelb.edu.au/~aghitza/

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Arch Linux and Sage

2009-11-07 Thread Alex Ghitza


I've been building Sage on 32-bit Archlinux for at least one year now.

With 4.2, I only have two problems: the sqlite issue and the R issue.
Thanks to previous threads on this sort of thing, I work around them
by copying the system libreadline.so and libgcc.so to the appropriate
places in the sage build directory.

It's a bit annoying because as far as I can tell I have to wait for
sqlite to fail before copying libreadline, and then for R to fail
before copying libgcc.  So the whole thing needs a bit too much of my
attention.

On the other hand, after that I have sage-4.2-goodness with longtests
passing.  There are no problems with Singular on my system.


Best,
Alex


On Sat, Nov 07, 2009 at 09:06:36PM -0800, William Stein wrote:
 
  * Build hangs while building libfplll, which is worked around by copying the
  system's libfplll, and editing the $SAGE_ROOT/local/installed/ to make the
  build system think that libfplll is installed.
 
 I didn't see this at all.
 
  * Finally, after the build is done, starting Sage or running the doctests
  fails with a message about a function in the Singular interface not being
  implemented. I do not know any workarounds to this.
 
 I didn't see this at all either.
 
[...]

-- 
Alex Ghitza -- Lecturer in Mathematics -- The University of Melbourne
-- Australia -- http://www.ms.unimelb.edu.au/~aghitza/

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: subclass of hyperelliptic curve class

2009-11-05 Thread Alex Ghitza


Hi David,

If you type

sage: X = test(H)

you notice that doesn't give an error.  So the problem occurs when
Sage tries to print your object X.  Since you haven't defined a
_repr_() method for your class, Sage tries to use the one inherited
from the hyperelliptic curve class.  You can see the code for that by
typing

sage: H._repr_?

The first line of code wants to get the hyperelliptic polynomials,
and that's where things break down.  I guess you have to write your
own _repr_() method for your inherited class.  It can be as simple as


class test
(sage.schemes.hyperelliptic_curves.hyperelliptic_rational_field.HyperellipticCurve_rational_field):
def __init__(self,C):
self.C = C

def _repr_(self):
return self.C._repr_()


Disclaimer: I haven't actually tried this out, but I'd be surprised if
it didn't work :)

Of course, if you will eventually have more info that you want printed
about your class, you can customise _repr_() to your liking.



Best,
Alex



On Thu, Nov 05, 2009 at 01:09:25PM -0800, David Holmes wrote:
 
 Hi,
 
 I am trying to write a subclass of the class of hypereliptic curves
 over QQ, for example:
 
 class test
 (sage.schemes.hyperelliptic_curves.hyperelliptic_rational_field.HyperellipticCurve_rational_field):
 def __init__(self,C):
 self.C = C
 
 
 then in sage I type
 
 R.x = QQ[]
 H = HyperellipticCurve(x^9+1)
 test(H)
 
 the last lline gives a long string of error traceback ending
 ...
 /usr/local/sage/sage-4.2/local/lib/python/pprint.pyc in _safe_repr
 (object, context, maxlevels, level)
 318 return format % _commajoin(components), readable,
 recursive
 319
 -- 320 rep = repr(object)
 321 return rep, (rep and not rep.startswith('')), False
 322
 
 /usr/local/sage/sage-4.2/local/lib/python2.6/site-packages/sage/
 structure/sage_object.so in
 sage.structure.sage_object.SageObject.__repr__ (sage/structure/
 sage_object.c:1416)()
 
 /usr/local/sage/sage-4.2/local/lib/python2.6/site-packages/sage/
 schemes/hyperelliptic_curves/hyperelliptic_generic.pyc in _repr_(self)
  93 
  94
 --- 95 f, h = self._hyperelliptic_polynomials
  96 R = self.base_ring()
  97 y = self._printing_ring.gen()
 
 AttributeError: 'test' object has no attribute
 '_hyperelliptic_polynomials'
 
 
 I am not sure what to do about this, any help will be much
 appreciated.
 
 Thank you,
 
 David Holmes
 
  

-- 
Alex Ghitza -- Lecturer in Mathematics -- The University of Melbourne
-- Australia -- http://www.ms.unimelb.edu.au/~aghitza/

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: symbolic/expression.pyx documentation patch

2009-10-22 Thread Alex Ghitza

On Thu, Oct 22, 2009 at 01:11:18PM -0400, Mariah Lenox wrote:
 
 Would a sage developer please check in this (very minor)
 patch to the symbolic/expression.pyx documentation.
 
[...]

Up at

http://trac.sagemath.org/sage_trac/ticket/7265

-- 
Alex Ghitza -- Lecturer in Mathematics -- The University of Melbourne
-- Australia -- http://www.ms.unimelb.edu.au/~aghitza/

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: ubuntu 9.04 sage notebook LaTeX does not work : kpdf not availabe

2009-09-04 Thread Alex Ghitza

On Fri, Sep 4, 2009 at 7:59 PM, Fredericfrederic.duro...@googlemail.com wrote:
 Which alternative package to kpdf should I use and should I
 recompile/reconfigure Sage ?

Hi Frederic,

I regularly use evince or xpdf to view pdf files in Ubuntu.  There
shouldn't be any need for you to recompile Sage.


Best,
Alex


-- 
Alex Ghitza -- Lecturer in Mathematics -- The University of Melbourne
-- Australia -- http://www.ms.unimelb.edu.au/~aghitza/

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: English grammar of numbers

2009-08-29 Thread Alex Ghitza

 And I have a similar aversion against an Unix machine (without
 intention to offend Unix, but I would say a Unix machine). What do
 natives think? So, isn't it only about the vowels a,e,i, after all?

For words that start with u, if the initial sound is like a you,
one uses a instead of an, e.g. a university, or a Unix
machine, or a unicorn.  If the initial sound is closer to an ah
(damn it's hard to write this down), one uses an, e.g. an unusual
circumstance versus a usual circumstance.

I hope this makes sense.  Also, disclaimer: IANANES (I am not a native
English speaker :)


-- 
Alex Ghitza -- Lecturer in Mathematics -- The University of Melbourne
-- Australia -- http://www.ms.unimelb.edu.au/~aghitza/

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Jocobi Symbol

2009-07-19 Thread Alex Ghitza

Try

sage: kronecker_symbol(a, N)

with a and N your favourite integers.

Best,
Alex



On Sun, Jul 19, 2009 at 4:28 PM, Santanu
Sarkarsarkar.santanu@gmail.com wrote:
 How Jacobi Symbol (a/N) can be calculate in Sage 4.1

 





-- 
Alex Ghitza -- Lecturer in Mathematics -- The University of Melbourne
-- Australia -- http://www.ms.unimelb.edu.au/~aghitza/

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Bits problem

2009-07-18 Thread Alex Ghitza

It's now N.nbits()


Best,
Alex



On Sat, Jul 18, 2009 at 10:53 PM, Santanu
Sarkarsarkar.santanu@gmail.com wrote:
 How can find the number of bits of an integer in Sage 4.1 ?
 Say, N=1234.
 In Sage 3.1.1 it was N.bits() .
 





-- 
Alex Ghitza -- Lecturer in Mathematics -- The University of Melbourne
-- Australia -- http://www.ms.unimelb.edu.au/~aghitza/

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: cube roots

2009-05-13 Thread Alex Ghitza

On Thu, May 14, 2009 at 1:19 PM, Bill Page bill.p...@newsynthesis.org wrote:

 On Wed, May 13, 2009 at 10:46 PM, Mike Hansen wrote:

 On Wed, May 13, 2009 at 6:58 PM, Bill Page wrote:

 Can someone explain this apparently inconsistent result?

 It's just operator precedence:

 sage: -(2.0^(1/3))
 -1.25992104989487
 sage: (-2.0)^(1/3)
 0.629960524947437 + 1.09112363597172*I


 Clear. Thanks. Why this particular root?


I believe that it is the real 3rd root of 2 times the natural
primitive 6th root of 1, i.e. exp(2*pi*i/6).













-- 
Alex Ghitza -- Lecturer in Mathematics -- The University of Melbourne
-- Australia -- http://www.ms.unimelb.edu.au/~aghitza/

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: memory leak?

2009-05-03 Thread Alex Ghitza

On Sun, May 3, 2009 at 6:33 PM, mabshoff
michael.absh...@mathematik.uni-dortmund.de wrote:

 FYI: Simon's patch doesn't make any difference for the amount of
 memory used for


 sage: while p2^20:
 :     p=next_prime(p)
 :     g=FindGroupOrder(p,11)
 :

 In both cases about 2046MB more were used after the loop :(.

Note however that running just a loop where the polynomial ring is
created does benefit from the change in Simon's patch: doing it for p
up to 2^17, this used to eat up 272MB, and after the patch it's only
taking 10MB.

I did experience the same phenomenon that Michael is describing when
running loops where elliptic curves (or even just plane curves) are
created.  The patch seems to have no effect on those loops.


Alex

-- 
Alex Ghitza -- Lecturer in Mathematics -- The University of Melbourne
-- Australia -- http://www.ms.unimelb.edu.au/~aghitza/

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: memory leak?

2009-05-02 Thread Alex Ghitza

   When an elliptic curve is created the code in the __init__ function in
   ell_generic.py (lines 164-5) do cause a multivariate polynomial ring
   to be created.  In this case it's a new ring each time as the base
   field is always a new field.

  How is the multivariate polynomial ring created?

 First the projective plane is constructed, effectively by
 PP=ProjectiveSpace(2,K), and then the ring by PP.coordinate_ring(),
 which calls
  PolynomialRing(self.base_ring(),
                                self.variable_names(),
 self.dimension_relative()+1)
 so in effect we call PolynomialRing(K).

 John

 Well, is there any way to avoid this? It seems like a bad thing to
 waste a couple GB on rings that in the end aren't used any more once
 the curve E is delete.


I can confirm (if there was any doubt) that one can try

{{{
for p in prime_range(upper):
R.x, y, z = PolynomialRing(GF(p), 3)
}}}

and watch it eat 800MB of RAM.

I can see good reasons why we want the current behaviour of
uniqueness of parents, and what we just saw here is a good reason
why we might *not* want it.  How can we reconcile this?  Can we make
it easy to turn off uniqueness of parents in some situations?


Best,
Alex

-- 
Alex Ghitza -- Lecturer in Mathematics -- The University of Melbourne
-- Australia -- http://www.ms.unimelb.edu.au/~aghitza/

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Sage in an xterm - some queries

2009-05-01 Thread Alex Ghitza

Hi,

On Sat, May 2, 2009 at 10:53 AM, Alasdair amc...@gmail.com wrote:

 I generally use my CAS's (Maple, Maxima, Sage at the moment) in an
 xterm, unless I have some application which requires graphics.  But
 there are one or two interface issues which would make xterm/console
 mode much more  pleasant to use.  In no particular order:

 * Different colours (user specified) for prompt, input and output
 * Output automatically pretty-printed and centered

Can you give some specific examples of what you would like to see?

 * (This is a more general Sage issue): when a variable is defined, as
 in x=sqrt(y^2+1) it is automatically printed to the screen, unless
 the user requests otherwise (say, with a semi-colon)

If this can be done, I hope it would be optional or easy to turn off
-- I'm quite fond of the current behaviour.

 Is there any easy way of coercing Sage to act like this?

You would probably need to tweak the preparser and play with ipython,
but I don't know enough about this to actually do it...


Best,
Alex

-- 
Alex Ghitza -- Lecturer in Mathematics -- The University of Melbourne
-- Australia -- http://www.ms.unimelb.edu.au/~aghitza/

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Sage for Gentoo Linux

2009-03-31 Thread Alex Ghitza

Hi,

I don't know the answer to your question, however: when I was using
Gentoo, I had no trouble installing Sage from source.  So if neither
of the two binaries works for you, that might be the way to go.

Best,
Alex


On Wed, Apr 1, 2009 at 5:03 AM, John P. Burkett burk...@uri.edu wrote:

 The installation instructions in README.txt at
 http://modular.fas.harvard.edu/sage/linux/32bit/index.html
 state that the Debian version will likely work on many other Linux
 distributions,since it was built on a minimal Debian install.  At
 the same site, I see two Debian versions: 5.0_lenny and 4.0_etch.  Is
 one or the other of these a better choice for installing on a Gentoo
 Linux box?
 -John

 --
 John P. Burkett
 Department of Economics
 University of Rhode Island
 Kingston, RI 02881-0808
 USA

 phone (401) 874-9195

 




-- 
Alex Ghitza -- Lecturer in Mathematics -- The University of Melbourne
-- Australia -- http://www.ms.unimelb.edu.au/~aghitza/

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: 3-D plots of affine varieties

2009-03-22 Thread Alex Ghitza

On Sun, Mar 22, 2009 at 4:43 PM, Mike Hansen mhan...@gmail.com wrote:

 Hello,

 On Mar 21, 10:13 pm, Minh Nguyen nguyenmi...@gmail.com wrote:
 Hi folk,

 I may be missing something here, but when I tried to plot 0 = x^2 +
 y^2 - z^2 I received an error:

 What you want is implicit 3d plotting which is not in Sage (yet).  See
 http://trac.sagemath.org/sage_trac/ticket/5249 for preliminary work by
 Carl Witty and Bill Cauchois.

shameless self-referral
Also, if you apply those patches, you can then try out the worksheets
attached under Tuesday March 10 at

http://wiki.sagemath.org/days14

(check out the ones named SD14__Visualisation*, they have a bunch of
examples of plots of varieties)
/shameless self-referral


Best,
Alex

-- 
Alex Ghitza -- Lecturer in Mathematics -- The University of Melbourne
-- Australia -- http://www.ms.unimelb.edu.au/~aghitza/

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Special linear group on finite field

2009-03-15 Thread Alex Ghitza
Judging from the error message unable to coerce from a finite field other
than the prime subfield, it seems that in Martin's examples a coercion is
attempted from GF(p^a) to GF(p^b) where a1.  In David's example, the larger
field is GF(3^2) so any coercion would be coming from GF(3), hence not
covered by the error message.

So I don't think it has to do with trac #5491.  It is either a problem with
Sage finite fields, or with translating between Gap finite fields and Sage
finite fields.  I'll have a closer look later today and open a ticket.

Best,
Alex


On Mon, Mar 16, 2009 at 8:19 AM, David Joyner wdjoy...@gmail.com wrote:


 This doesn't seem to happen for smaller values,

 sage: n = 2; q = 3
 sage: H = PSL(n,q^2)
 sage: H.center()
 Permutation Group with generators [()]
 sage: n = 2; q = 2
 sage: H = PSL(n,q^2)
 sage: H.center()
 Permutation Group with generators [()]

 so maybe the problem is related to
 http://trac.sagemath.org/sage_trac/ticket/5491?



 On Sun, Mar 15, 2009 at 3:07 PM, Martin Mereb mme...@gmail.com wrote:
 
  and
  also got this problem
 
  n=3;q=4;
 
  H = SL(n,q^2);
  H.center()
 
  Traceback (most recent call last):
   File stdin, line 1, in module
   File /home/sage/sagenb/sage_notebook/worksheets/Tincho/3/code/3.py,
  line 10, in module
 H.center()
   File
 /home/sage/sage_install/sage-a/local/lib/python2.5/site-packages/SQLAlchemy-0.4.6-py2.5.egg/,
  line 1, in module
 
   File
 /home/sage/sage_install/sage-a/local/lib/python2.5/site-packages/sage/groups/matrix_gps/matrix_group.py,
  line 678, in center
 self.__center = MatrixGroup([g._matrix_(F) for g in G])
   File
 /home/sage/sage_install/sage-a/local/lib/python2.5/site-packages/sage/interfaces/gap.py,
  line 1131, in _matrix_
 entries = [[R(self[r,c]) for c in range(1,m+1)] for r in range(1,n+1)]
   File finite_field_givaro.pyx, line 586, in
  sage.rings.finite_field_givaro.FiniteField_givaro.__call__
  (sage/rings/finite_field_givaro.cpp:4680)
   File
 /home/sage/sage_install/sage-a/local/lib/python2.5/site-packages/sage/interfaces/gap.py,
  line 1248, in gfq_gap_to_sage
 return F(K(g**e))
   File finite_field_givaro.pyx, line 530, in
  sage.rings.finite_field_givaro.FiniteField_givaro.__call__
  (sage/rings/finite_field_givaro.cpp:4005)
  TypeError: unable to coerce from a finite field other than the prime
 subfield
 
  
 

 



-- 
Alex Ghitza -- Lecturer in Mathematics -- The University of Melbourne --
Australia -- http://www.ms.unimelb.edu.au/~aghitza/

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Substitution

2009-03-13 Thread Alex Ghitza
Hi,

On Fri, Mar 13, 2009 at 7:09 PM, hpon peter.norli...@gmail.com wrote:


 Hi,

 What is the easiest way to make a mathematical substitution in Sage?

 For example:  We have

 eqn1 = F == a + b


I'm not sure I understand what you are trying to do in this line.  If you
just want to define F as the sum of a and b, use

var('a b')  # to tell Sage that a and b are symbolic
variables
F = a + b



 and would like to use a = 0 and b = 3 to calculate F.


Now F is a symbolic expression, and you can perform substitutions easily as
follows:

F.substitute(a=0, b=3)  # and Sage will answer: 3

If you do F.substitute?  you will get the documentation for the substitution
method, with more examples of usage.

Best,
Alex


-- 
Alex Ghitza -- Lecturer in Mathematics -- The University of Melbourne --
Australia -- http://www.ms.unimelb.edu.au/~aghitza/

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] two questions about sage-mode

2009-03-11 Thread Alex Ghitza
Hi folks,

Quite a few people at Sage Days 14 are fans of emacs and therefore trying to
use sage-mode.  In particular, Mike Stillman had two questions that I didn't
know how to answer.  It might be that these are not implemented as of yet
and should be, in which case I'll make enhancement trac tickets for them:

1. suppose you run doctests on a file from inside emacs, and that you get a
failure with a line number; is there a sage-mode way of jumping to that line
in the source file?

2. is there an easy way of restarting sage in emacs?  or even to rebuild and
restart?  this would come in handy when making changes to the sage library

Best,
Alex


-- 
Alex Ghitza -- Lecturer in Mathematics -- The University of Melbourne --
Australia -- http://www.ms.unimelb.edu.au/~aghitza/

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Fwd: two questions about sage-mode

2009-03-11 Thread Alex Ghitza
-- Forwarded message --
From: Nick Alexander ncalexan...@gmail.com
Date: Thu, Mar 12, 2009 at 10:08 AM
Subject: Re: two questions about sage-mode
To: Alex Ghitza aghi...@gmail.com



On 11-Mar-09, at 3:48 PM, Alex Ghitza wrote:

 Hi folks,

 Quite a few people at Sage Days 14 are fans of emacs and therefore trying
 to use sage-mode.  In particular, Mike Stillman had two questions that I
 didn't know how to answer.  It might be that these are not implemented as of
 yet and should be, in which case I'll make enhancement trac tickets for
 them:

 1. suppose you run doctests on a file from inside emacs, and that you get a
 failure with a line number; is there a sage-mode way of jumping to that line
 in the source file?


Are you using sage-test?  (I have it bound to C-c C-t).  Then you can use
the standard emacs C-x ` (next-error) to jump around.  I could improve this
if necessary.

 2. is there an easy way of restarting sage in emacs?  or even to rebuild
 and restart?  this would come in handy when making changes to the sage
 library


Yes, newer versions have rerun-sage (which kills and restarts an existing
session), sage-build (which builds) and C-u sage-build which builds and
reruns.  sage-build is bound to C-c C-b for me -- I don't think I bind them
by default.  Sorry that the documentation is scant, sounds like that really
needs work.  Try them out!

Thanks for the feedback,
Nick



-- 
Alex Ghitza -- Lecturer in Mathematics -- The University of Melbourne --
Australia -- http://www.ms.unimelb.edu.au/~aghitza/

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: question on modular curves in Sage

2009-02-14 Thread Alex Ghitza
Hi David,

I believe that the answer is yes.  There is an optional package called
database_kohel, which is a database of various types of modular polynomials,
gathered by David Kohel.  You can add it to your Sage install as usual by
doing

sage -i database_kohel-20060803

After that, you get access to these polynomials as follows:

Classical modular polynomials:

sage: C = ClassicalModularPolynomialDatabase()
sage: f = C[29]
sage: f.degree()
58
sage: f.coefficient([28, 28])
400152899204646997840260839128


Atkin modular polynomials:

sage: A = AtkinModularPolynomialDatabase()
sage: f = A[29]
sage: f.degree()
30
sage: f
x^30 - x^29*j + 714*x^29 + 29*x^28*j + 175653*x^28 - 319*x^27*j +
16216684*x^27 + 1421*x^26*j + 340795182*x^26 + 580*x^25*j + 3339922344*x^25
- 26680*x^24*j + 18681529256*x^24 + 53679*x^23*j + 65190964932*x^23 +
189399*x^22*j + 145746939921*x^22 - 622398*x^21*j + 193096339978*x^21 -
853818*x^20*j + 79225176183*x^20 + 3427365*x^19*j - 213842083608*x^19 +
3592085*x^18*j - 434696047201*x^18 - 10954634*x^17*j - 278856446718*x^17 -
14041394*x^16*j + 154093039581*x^16 + 18871083*x^15*j + 391233115204*x^15 +
37142939*x^14*j + 212930064261*x^14 - 9216142*x^13*j - 78041237118*x^13 -
54103270*x^12*j - 159006324329*x^12 - 19207947*x^11*j - 71430269112*x^11 +
38397537*x^10*j + 10575486927*x^10 + 31795426*x^9*j + 31231369098*x^9 -
9708910*x^8*j + 17209092681*x^8 - 19103721*x^7*j + 1339615908*x^7 -
2357613*x^6*j - 3310173216*x^6 + 5229135*x^5*j - 2067026040*x^5 +
1754181*x^4*j - 591595650*x^4 - 570024*x^3*j + 73993500*x^3 - 281880*x^2*j +
118918125*x^2 + 12150*x*j + j^2 + 41006250*x + 6750*j + 11390625

There is also a DedekindEtaModularPolynomialDatabase, with the same syntax
as the others.  If I read the Magma documentation correctly, this is what
they call canonical modular polynomials (maybe David Kohel can correct me
here, if I'm wrong).  In fact, Magma's commands also use databases, and I
think they are the same as the ones in Sage's optional package.

Best,
Alex



On Sun, Feb 15, 2009 at 9:37 AM, David Joyner wdjoy...@gmail.com wrote:


 Hi:

 I'm wondering if the analog of the following Magma commands
 exist in Sage yet:

 ClassicalModularPolynomial, CanonicalModularPolynomial,
 AtkinModularPolynomial.

 The modular polynomil $H_N$ has the property that
 $H_N(x,y)= 0$ describes (an affine patch of) $X_0(N)$.
 (I'm trying to remove all mention of Magma from a paper
 I wrote long ago http://arxiv.org/abs/math.NT/0403548
 and this question arose from that.)

 Thanks,
 David JOyner

 



-- 
Alex Ghitza -- Lecturer in Mathematics -- The University of Melbourne --
Australia -- http://www.ms.unimelb.edu.au/~aghitza/

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: server shutdown

2009-01-23 Thread Alex Ghitza
This is more of a workaround than a straight answer, but you can use the
gnu screen terminal multiplexer to get a process started, log off, then
come back and regain console access to it.  Then you can, for instance, use
ctrl-c to kill the server from within your sage session.

Best,
Alex


On Sat, Jan 24, 2009 at 5:08 AM, Nathan Carter nathancart...@gmail.comwrote:



 Yes, but I'm running it in the background (and then logging off).  So
 that process is not in the foreground anymore.  (Furthermore, the sage
 process actually starts lots of others, in a linear chain, so ps ax
 lists lots of sage- and sage-wiki-related stuff.)

 Nathan


 On Jan 23, 2009, at 1:02 PM, Luiz Felipe Martins wrote:

 
  Ctrl-c will shut down the server
 
  On Fri, Jan 23, 2009 at 9:25 AM, Nathan Carter nathancart...@gmail.com
   wrote:
 
 
  This may seem like a basic question, but how should I shut down the
  sage server?  And the wiki? That is, I have a script that does this:
 
  /path/to/sage-3.2.3/sage start_notebook.sage # on port 8000
  /path/to/sage-3.2.3/sage start_wiki.sage # on port 9000
 
  and so I run it and log off, and voila! sage and the wiki are all
  set.  Then later I want to restart it for one reason or another (or
  just add a nice shutdown script to the machine's shutdown scripts)
  and
  all I know to do is kill -9 a whole bunch of processes, which is (I
  hope) not the official solution.
 
  This seems like a basic question, so I apologize if it's in the docs,
  but I did Google sagemath.org and didn't see anything under server
  shutdown or server shut down.
 
  Thank you!
 
  Nathan
 
  PS: Is that how I should be starting the wiki...in its own separate
  sage run?  Since notebook() doesn't return, I don't know how to do it
  in one session.
 
 
 
 
 
 
  --
  The main things which seem to me important on their own account, and
  not merely as means to other things, are knowledge, art, instinctive
  happiness, and relations of friendship or affection.
-Bertrand Russell
 
  L. Felipe Martins
  Department of Mathematics
  Cleveland State University
  luizfelipe.mart...@gmail.com
 
  


 



-- 
Alex Ghitza -- Lecturer in Mathematics -- The University of Melbourne --
Australia -- http://www.ms.unimelb.edu.au/~aghitza/

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Error in abc.n(digits=5)

2008-12-26 Thread Alex Ghitza
Hello,

I am unable to reproduce the error you obtained.  Here is what I get in
3.2.2:


--
| Sage Version 3.2.2, Release Date: 2008-12-18   |
| Type notebook() for the GUI, and license() for information.|
--
sage: proofStrain,f_y,gamma_ms = 0.002, 250, 1.1499
sage: abc = 3150/(2000*(proofStrain + 5.00e-6*f_y/gamma_ms) + 7)
sage: abc
239.108910891089
sage: abc.n(digits=5)
239.11


Best,
Alex





-- 
Alex Ghitza -- Lecturer in Mathematics -- The University of Melbourne --
Australia -- http://www.ms.unimelb.edu.au/~aghitza/

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Perhaps a bug

2008-12-13 Thread Alex Ghitza

 On Sat, Dec 13, 2008 at 6:52 PM, Kwankyu ekwan...@gmail.com wrote:
 
  Hi,
 
  --
  | Sage Version 3.2.1, Release Date: 2008-12-01   |
  | Type notebook() for the GUI, and license() for information.|
  --
  sage: 2.2*exp(3)
  2.2*e^3
  sage:
 
  This result is not expected. Is it? I think exp(3) should be converted
  to an approximate real.


In case you're wondering how to achieve the result you're after:

sage: RR(2.2*exp(3))
44.1881812310129

Best,
Alex


-- 
Alex Ghitza -- Lecturer in Mathematics -- The University of Melbourne --
Australia -- http://www.ms.unimelb.edu.au/~aghitza/

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: no plotting

2008-10-18 Thread Alex Ghitza
The correct syntax is sin(x), not sin x.  And so the following works:

sage: plot(sin(x), (-1,1))

Best,
Alex


-- 
Alex Ghitza -- Lecturer in Mathematics -- The University of Melbourne --
Australia -- http://www.ms.unimelb.edu.au/~aghitza/

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: no plotting

2008-10-18 Thread Alex Ghitza
Sorry Martin, I completely missed the second sage: prompt in your original
email.

It's very likely that the problem is due to sage -upgrade.  I don't know
enough about these things to give you better advice than start over with a
fresh download of Sage, and you've mentioned that this might not be an
option for a while.  Hopefully someone else on this list will know some
magic to fix this.

Note, however, that sage -upgrade is *not* recommended practice, precisely
because this sort of problem keeps popping up over and over again.
The recommended way of getting a new version is downloading the new binaries
or source.

Good luck,
Alex

On Sat, Oct 18, 2008 at 6:27 PM, Martin Rubey [EMAIL PROTECTED]wrote:


 I should have added: I did a sage -upgrade before.

 Doing sage -upgrade again I now get:

 Finished extraction
 There is no spkg-install script, no setup.py, and no configure script,
 so I do not know how to install
 /home/martin/sage-3.1.1/spkg/standard/sage-3.1.2.spkg.
 make: *** [installed/sage-3.1.2] Fehler 1
 Command exited with non-zero status 2
 1.54user 0.14system 0:02.16elapsed 78%CPU (0avgtext+0avgdata 0maxresident)k
 200inputs+4736outputs (0major+7366minor)pagefaults 0swaps

 Martin


 



-- 
Alex Ghitza -- Lecturer in Mathematics -- The University of Melbourne --
Australia -- http://www.ms.unimelb.edu.au/~aghitza/

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: multiply a list by a constant

2008-10-18 Thread Alex Ghitza
Hmmm.  As far as I know you can use _ as a placeholder for a variable, and
it's meant for this kind of use (where you don't really want to introduce a
new variable name).  It's strange that it doesn't work for you.  Can you
post the error message that you get?

I guess it's not a big deal since you can always use x as you did, but if
it's really not working it might be a sign of other trouble.

Alex


On Sun, Oct 19, 2008 at 3:31 PM, pong [EMAIL PROTECTED] wrote:


 Hi Alex

Thanks for the quick reply. By _ you mean a variable? I tried your
 syntax but it does not work.
However, [2*x for x in [3,4]] does work.


-- 
Alex Ghitza -- Lecturer in Mathematics -- The University of Melbourne --
Australia -- http://www.ms.unimelb.edu.au/~aghitza/

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Sage server on a gentoo system

2008-04-19 Thread Alex Ghitza

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

I don't think you need to do anything special.  Just install sage the
normal way (either from binaries or building from source), then run

sage -notebook

This can be run either as root or as a normal user (probably
preferable).  You do not need to install or configure apache, since sage
comes with its own web server, twisted.

It's probably a good idea, before you start a notebook, to type
notebook? in sage and read the documentation.

BTW, for mysterious reasons I can only get sage-2.10.2 and earlier to
serve the notebook for outside connections; I've been having trouble
with the newer versions.  So if you cannot get sage-2.11 or so to work,
you might want to try an earlier version.

Best,
Alex


gerhard wrote:
| Does anybody have some hints on how to
| get a sage server up and running on a gentoo system?
|
| I have never tried it on any system, and the guidelines
| in the sage docs do not readily apply in this case.
|
| I presume I need to configure apache somehow,
| create subdirectories with the sage code,
| and ??
|
| Thanks,
| -gerhard
| |
|


- --
Alexandru Ghitza
Assistant Professor
Department of Mathematics
Colby College
Waterville, ME 04901
http://bayes.colby.edu/~ghitza/
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkgKICIACgkQdZTaNFFPILgXkACff7zJ83HRcoT7XyQ7useaDwaF
aJEAn0z6al6tQaDJPi+mCEaTBxJ3Myw/
=nrvO
-END PGP SIGNATURE-

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Sage server on a gentoo system

2008-04-19 Thread Alex Ghitza

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

William Stein wrote:
| On Sat, Apr 19, 2008 at 9:38 AM, Alex Ghitza [EMAIL PROTECTED] wrote:
| The mysterious reason is that we enhanced the security of
| the notebook for local users.  Namely, you now *must* do
|
|   sage -c notebook(address='the.address.of.your.computer')
|
| in order to have the notebook listen on anything other than localhost.
| In 2.10.2 and some earlier versions we temporarily had a *bug* that
| made the notebook listen on all addresses by default.  This is less
| secure since people using the notebook locally are exposing themselves
| to the possibility of somebody not logged into their computer attempting
| to hack into the notebook.This behavior is documented a tiny bit
| in the address section of notebook?, though it's not very detailed!
|
| address-- (default: 'localhost'), address to listen on
|

Excellent!  Gerhard, this now works for me with sage-3.0.alpha5:

sage -c notebook(address='137.146.194.57', open_viewer=False,
directory='/home/ghitza/notebooks/ma311')

The same command with address='bayes.colby.edu' instead of the ip
address did not work.  Also, before issuing this command I had created
the various user accounts (see notebook? for details on how to do that).

Best,
Alex


- --
Alexandru Ghitza
Assistant Professor
Department of Mathematics
Colby College
Waterville, ME 04901
http://bayes.colby.edu/~ghitza/
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkgKJOUACgkQdZTaNFFPILgfzwCeMnZVqC4u3NqC5RNNBPRsIOLQ
rtoAn2RHTVRfj++tqZB12wcv1iQAlPSe
=fbuo
-END PGP SIGNATURE-

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] trouble starting publicly-accessible notebook

2008-04-16 Thread Alex Ghitza

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi folks,

I run a notebook server for one of the classes I'm teaching.  It works
fine with sage-2.10.2, but I have trouble with more recent versions.  It
might have something to do with the new version of twistd, but I really
don't know anything about this.

So here's what happens.  Under sage-2.10.2, I get


- --
| SAGE Version 2.10.2, Release Date: 2008-02-22  |
| Type notebook() for the GUI, and license() for information.|
- --

sage: notebook(directory='/home/ghitza/notebooks/ma311/',
address='bayes.colby.edu', accounts=False, open_viewer=False)
The notebook files are stored in: /home/ghitza/notebooks/ma311
**
**
* Open your web browser to https://bayes.colby.edu:8000  *
**
**
There is an admin account.  If you do not remember the password,
quit the notebook and type notebook(reset=True).
Removing stale pidfile /home/ghitza/notebooks/ma311/twistd.pd
2008/04/16 09:19 -0400 [-] Log opened.
2008/04/16 09:19 -0400 [-] twistd 2.5.0
(/opt/sage-2.10.2-linux-32bit-debian-i686-Linux/local/bin/python 2.5.1)
starting up
2008/04/16 09:19 -0400 [-] reactor class: class
'twisted.internet.selectreactor.SelectReactor'
2008/04/16 09:19 -0400 [-] Loading ma311/twistedconf.tac...
2008/04/16 09:19 -0400 [-] Loaded.
2008/04/16 09:19 -0400 [-] twisted.web2.channel.http.HTTPFactory
starting on 8000
2008/04/16 09:19 -0400 [-] Starting factory
twisted.web2.channel.http.HTTPFactory instance at 0x941fc0c



And then if I go to https://bayes.colby.edu:8000/ I see the login page.
~ Everything is great.  Now if I try the same thing, say with
sage-3.0.alpha5:

- --
| SAGE Version 3.0.alpha5, Release Date: 2008-04-15  |
| Type notebook() for the GUI, and license() for information.|
- --

sage: notebook(directory='/home/ghitza/notebooks/ma311/',
address='bayes.colby.edu', accounts=False, open_viewer=False)
The notebook files are stored in: /home/ghitza/notebooks/ma311
**
**
* Open your web browser to https://bayes.colby.edu:8000  *
**
**
There is an admin account.  If you do not remember the password,
quit the notebook and type notebook(reset=True).
Removing stale pidfile /home/ghitza/notebooks/ma311/twistd.pd
2008-04-16 09:27:24-0400 [-] Log opened.
2008-04-16 09:27:24-0400 [-] twistd 8.0.1
(/opt/sage-3.0.alpha5/local/bin/python 2.5.1) starting up
2008-04-16 09:27:24-0400 [-] reactor class: class
'twisted.internet.selectreactor.SelectReactor'
2008-04-16 09:27:24-0400 [-] twisted.web2.channel.http.HTTPFactory
starting on 8000
2008-04-16 09:27:24-0400 [-] Starting factory
twisted.web2.channel.http.HTTPFactory instance at 0x92edd6c



I now try https://bayes.colby.edu:8000 and get refused the connection
with Epiphany and unable to connect, can't establish a connection with
Firefox.  I have no idea what's wrong.  One clear difference that I
notice is that in the working version there are two lines saying

2008/04/16 09:19 -0400 [-] Loading ma311/twistedconf.tac...
2008/04/16 09:19 -0400 [-] Loaded.

and this is missing in the non-working version.

By the way, the machine's specs are
Linux bayes 2.6.22-gentoo-r5 #1 SMP Tue Aug 28 21:27:16 UTC 2007 i686
Intel(R) Xeon(TM) CPU 3.20GHz GenuineIntel GNU/Linux


Thanks,
Alex



- --
Alexandru Ghitza
Assistant Professor
Department of Mathematics
Colby College
Waterville, ME 04901
http://bayes.colby.edu/~ghitza/
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIBgC9dZTaNFFPILgRAuCaAJ4jXfANTd368/5L86GypKaAYYz3AwCeOszl
E/ykc5SKTGzQKuf+e8og9nk=
=ws5O
-END PGP SIGNATURE-

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: trouble starting publicly-accessible notebook

2008-04-16 Thread Alex Ghitza

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

William Stein wrote:
| On Wed, Apr 16, 2008 at 6:35 AM, Alex Ghitza [EMAIL PROTECTED] wrote:
| Hi folks,
|
| I run a notebook server for one of the classes I'm teaching.  It works
| fine with sage-2.10.2, but I have trouble with more recent versions.  It
| might have something to do with the new version of twistd, but I really
| don't know anything about this.
|
| So here's what happens.  Under sage-2.10.2, I get
|
| Just as a test could you try with running the notebook command
| with secure=False and let us know what happens?

Yes, here we go:

sage: notebook(address='bayes.colby.edu', open_viewer=False, secure=False)
The notebook files are stored in: /home/ghitza/.sage//sage_notebook
WARNING: Running the notebook insecurely may be dangerous.
Make sure you know what you are doing.
**
WARNING: Insecure notebook server listening on external address.
Unless you are running this via ssh port forwarding, you are
**crazy**!  You should run the notebook with the option secure=True.
**

*  *
* Open your web browser to http://bayes.colby.edu:8000 *
*  *

Removing stale pidfile /home/ghitza/.sage/sage_notebook/twistd.pd
2008-04-16 09:43:58-0400 [-] Log opened.
2008-04-16 09:43:58-0400 [-] twistd 8.0.1
(/opt/sage-3.0.alpha5/local/bin/python 2.5.1) starting up
2008-04-16 09:43:58-0400 [-] reactor class: class
'twisted.internet.selectreactor.SelectReactor'
2008-04-16 09:43:58-0400 [-] twisted.web2.channel.http.HTTPFactory
starting on 8000
2008-04-16 09:43:58-0400 [-] Starting factory
twisted.web2.channel.http.HTTPFactory instance at 0x8ab434c


And trying http://bayes.colby.edu:8000 fails in the same way as before
refused the connection.


Alex


- --
Alexandru Ghitza
Assistant Professor
Department of Mathematics
Colby College
Waterville, ME 04901
http://bayes.colby.edu/~ghitza/
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIBgMPdZTaNFFPILgRAgwuAKCGc2xZzMw0NxkNvSUUTpvgifWdwwCeIbZE
9IBMtru+fLFFh5qWvyxIyuU=
=P76i
-END PGP SIGNATURE-

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Trying to graph cubic function f(x)=x^(1/3)

2008-02-22 Thread Alex Ghitza

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi Andy,

I had the exact same question a few days ago.  There are
many issues involved here, but the short answer to your
question (provided by Carl Witty) is:

you can plot x^(1/3) with

show(plot(lambda x : RR(x).nth_root(3), -10, 10), figsize=[5,5], 
ymin=-10, ymax=10)

You don't need to specify xmin and xmax in show since they're
given in the plot command.

Best,
Alex



Andy wrote:
| I am interested in the use of Sage as a teaching tool at all grade
| levels.  At the moment, I'm trying to weave Sage into an introductory
| algebra curriculum.
|
| I can graph all the basic functions with plot(x), replacing x with
| x^2, x^3, 1/x, etc.  The one I can't get to work is x^(1/3).  I've
| tried to express the cube root function several different ways.  The
| expression I'm using now is:
|
| sage:
| show(plot(x^(1/3),-10,10),figsize=[5,5],xmin=-10,xmax=10,ymin=-10,ymax=10)
|
| I receive the error message  TypeError: 'float' object is
| unsubscriptable
|
| Also, is the expression above the most succinct way to generate a
| graph with this kind of view, x and y ranging -10 to 10?
|
| Thanks for any advice.
|
| Andy
| |
|


- --
Alexandru Ghitza
Assistant Professor
Department of Mathematics
Colby College
Waterville, ME 04901
http://bayes.colby.edu/~ghitza/
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHvtngdZTaNFFPILgRAvbjAJ9qlM5R2UnmCHwOMV2HOlhg+LcwZACcC21K
Mrx/wRMSjGXeYz2KpkXN0Xo=
=O3v+
-END PGP SIGNATURE-


--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] desolve

2008-02-18 Thread Alex Ghitza

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

I'm trying the following:

~sage: t = var('t')
~sage: x = function('x', t)
~sage: de = lambda y: diff(y,t) - y^4
~sage: desolve(de(x(t)),[x,t])

I get: 't+%c'

But x(t)=t is clearly not a solution of diff(y,t) = y^4.  So either I'm
doing something very silly, or I should report this as a bug.

Best,
Alex




- --
Alexandru Ghitza
Assistant Professor
Department of Mathematics
Colby College
Waterville, ME 04901
http://bayes.colby.edu/~ghitza/
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHukbrdZTaNFFPILgRAmLWAJ9A5hS51LLOn6x+kZitBQnrr1rRewCgiXlu
NrGLOHJ5M+yY6YuEJ8q2TPE=
=+BAW
-END PGP SIGNATURE-

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: desolve

2008-02-18 Thread Alex Ghitza

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Thanks, David, that does indeed explain it.  How hard would
it be to have Sage figure out if the ODE is nonlinear and
return an error instead of a fake solution?

Alex



David Joyner wrote:
| The DE is not linear. The docstring (type ?desolve) says:
| Solves a 1st or 2nd order linear ODE via maxima. 
|
| On Feb 18, 2008 10:03 PM, Alex Ghitza [EMAIL PROTECTED] wrote:
| Hi,
|
| I'm trying the following:
|
| ~sage: t = var('t')
| ~sage: x = function('x', t)
| ~sage: de = lambda y: diff(y,t) - y^4
| ~sage: desolve(de(x(t)),[x,t])
|
| I get: 't+%c'
|
| But x(t)=t is clearly not a solution of diff(y,t) = y^4.  So either I'm
| doing something very silly, or I should report this as a bug.
|
| Best,
| Alex
|
|
|
|
|

| 



- --
Alexandru Ghitza
Assistant Professor
Department of Mathematics
Colby College
Waterville, ME 04901
http://bayes.colby.edu/~ghitza/
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHuklMdZTaNFFPILgRAuruAJwMc9nZS0FZaGfEchN6eRtt7T4B2wCgoQTD
k+clWC5glNvb8t1Rmz04V1M=
=GSFn
-END PGP SIGNATURE-


--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Another possible bug in parametric_plot/show

2008-02-16 Thread Alex Ghitza

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

bill.p wrote:
| Sorry, Carl, it's
|   http://www.billp.org/Fermat_1729.sws
|
| Here's my transcript of the notebook for David. Firefox wouldn't let
| me copy/paste from the notebook!
| Ended up pressing the 'print' link, then doing File/save-as on that
| and then editing out
| all the HTML junk.
Hi Bill,

Sorry I don't have any feedback on your actual question, but
there is an easier way to get the contents of your worksheet
than what you describe: on the upper right side of the page
there are 6 blue buttons.  The third one is called Text; if
you press that, you get a plain text version of your worksheet,
which you can then copy/paste/etc.

Best,
Alex

- --
Alexandru Ghitza
Assistant Professor
Department of Mathematics
Colby College
Waterville, ME 04901
http://bayes.colby.edu/~ghitza/
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHtwATdZTaNFFPILgRAm+dAJ0ffl2bse+abrMeuOdU6po2XpXFywCfaG55
MRkz/XxY51TaVxl6dnNEdd4=
=U3Ed
-END PGP SIGNATURE-


--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] problems with modular symbols over finite fields

2007-11-20 Thread Alex Ghitza

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

I've been playing with spaces of modular symbols over finite fields, and
I ran into two issues that seem to be separate (they're tickets #1231
and #1232 now):

1. doing

ModularSymbols(1,8,0,GF(3)).simple_factors()

gives

- 
Unhandled SIGSEGV: A segmentation fault occured in SAGE.
This probably occured because a *compiled* component
of SAGE has a bug in it (typically accessing invalid memory)
or is not properly wrapped with _sig_on, _sig_off.
You might want to run SAGE under gdb with 'sage -gdb' to debug this.
SAGE will now terminate (sorry).
- 

The same phenomenon occurs over other finite fields.

2. doing

ModularSymbols(1,6,0,GF(2)).simple_factors()

gives

-
---
type 'exceptions.AssertionError'Traceback (most recent call last)

/home/ghitza/sage/ipython console in module()

/opt/sage/local/lib/python2.5/site-packages/sage/modular/modsym/space.py
in simple_factors(self)
996 ASSUMPTION: self is a module over the anemic Hecke algebra.
997 
- -- 998 return [S for S,_ in self.factorization()]
999
   1000 def star_eigenvalues(self):

/opt/sage/local/lib/python2.5/site-packages/sage/modular/modsym/ambient.py
in factorization(self)
   1064 D = sage.structure.all.Factorization(D, cr=True)
   1065 assert r == s, bug in factorization --  self has
dimension %s, but sum of dimensions of factors is %s\n%s%(
- - 1066 r, s, D)
   1067 self._factorization = D
   1068 return self._factorization

type 'exceptions.AssertionError': bug in factorization --  self has
dimension 2, but sum of dimensions of factors is 3
(Modular Symbols subspace of dimension 1 of Modular Symbols space of
dimension 2 for Gamma_0(1) of weight 6 with sign 0 over Finite Field of
size 2) *
(Modular Symbols subspace of dimension 1 of Modular Symbols space of
dimension 2 for Gamma_0(1) of weight 6 with sign 0 over Finite Field of
size 2) *
(Modular Symbols subspace of dimension 1 of Modular Symbols space of
dimension 2 for Gamma_0(1) of weight 6 with sign 0 over Finite Field of
size 2)
- -


I have not looked at the implementation, but as far as I know the
algorithms with modular symbols work directly over the field of
definition, so it seems unlikely that this is related to the problem
that Ifti raised a few days ago, about reduction of coefficients modulo
prime ideals.

Best,
Alex
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHQ6xYdZTaNFFPILgRAgzMAJ9UhL4+sB/aX4KkTGCMuhKzbpJ1VwCfScqU
sbMU91l2mRWyVMLdtYEu4vM=
=7Moa
-END PGP SIGNATURE-

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~--~~~~--~~--~--~---



[sage-support] Re: sage-2.8.5

2007-09-21 Thread Alex Ghitza

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Success on Intel Core 2 running Gentoo:

Machine: Linux latitude 2.6.21-gentoo-r4 #1 SMP Wed Jul 18 15:19:23 EDT
2007 i686 Genuine Intel(R) CPU T2400 @ 1.83GHz GenuineIntel GNU/Linux

real66m23.913s
user64m31.750s
sys 4m40.942s
To install gap, gp, singular, etc., scripts
in a standard bin directory, start sage and
type something like
   sage: install_scripts('/usr/local/bin')
at the SAGE command prompt.

SAGE build/upgrade complete!


All tests passed!
Total time for all tests: 1286.0 seconds


Excellent,
Alex



William Stein wrote:
 Hi,
 
 SAGE 2.8.5 has been released at http://sagemath.org/.
 
 This is a *MAJOR* new Sage release, which includes many bugfixes (some
 quite important to usability), and substantial new features and
 functionality.  Sage 2.8.5 includes Mike Hansen's massive new
 combinatorics packages along with the Symmetrica C library, much new
 multivariate polynomial code by Martin Albrecht along with bug fixes
 and sparse mod-p linear algebra via Linobx, new algebraic number
 fields code by William Stein and Robert Bradshaw, a major refactoring
 of NTL by Joel Mohler, Craig Citro, David Harvey and Robert Bradshaw,
 Bill Hart and David Harvey's the long-awaited FLINT library for
 super-fast polynomial arithmetic is now included standard in SAGE
 (though currently it is not used by anything by default, and can only
 multiply polynomials), a very nice new global proof option by David
 Roe, Robert Bradshaw's complete and fully optimized implementation of
 sequence notation [1..5], (2..7), [1,3,5,..19], and updates to MPFR,
 IML, and Linbox thanks to Michael Abshoff and Martin Albrecht.  PPC32
 Linux should now also be officially supported (thanks to Michael
 Abshoff).  John Cremona also updated mwrank. Finally, Gonzalo Tornaria
 and William Stein fixed a major bug in the Sage signal handling
 system, so control-c, should now be much more robust.
 
 We closed 43 tickets, which are listed here:
 
 http://trac.sagemath.org/sage_trac/query?status=closedmilestone=sage-2.8.5order=id
 
 or, by category, here:
 
   http://trac.sagemath.org/sage_trac/milestone/sage-2.8.5
 
 Thanks to the many people who contributed to this release, and anybody
 I forgot to mention above.  There were dozens of people not listed
 above who made important contributions.
 
 
 NOTE: Since this is such a major release, there will likely be problems
 and a 2.8.5.1 release shortly to fix them.  Please report!
 

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFG876zdZTaNFFPILgRAictAJ9dW5YoQoAGnrr5U2SwhNFGTvRlOgCfQVA8
9D7I8mkQXc+1iPoVWzbLc4c=
=6r2Q
-END PGP SIGNATURE-

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~--~~~~--~~--~--~---



[sage-support] Re: trouble compiling sage-2.8

2007-08-14 Thread Alex Ghitza

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

Yes, everything went fine, thanks to Michael Abshoff's advice.  In
summary, here's what I did:

cd /opt/sage-2.8/spkg/standard
tar xvf linbox-20070812.spkg
cd linbox-20070812/linbox_wrap
libtoolize --copy --force
cd ../..
tar cjf linbox-20070812.spkg linbox-20070812
cd /opt/sage-2.8
make

You can of course get rid of the directory linbox-20070812 that got
created in the process.

Cheers,
Alex



Joel B. Mohler wrote:
 Alex,
 
 Did you find a solution for this?  I got the same error on my gentoo as well. 
  
 I see you have later posts which make it appear that you have sage-2.8 
 installed.
 
 --
 Joel
 
 On Monday 13 August 2007 11:47, Alex Ghitza wrote:
 Hi,

 I'm trying to compile sage-2.8 and it breaks down on linbox_wrap, with
 the message:


checking for correct ltmain.sh version... no
configure: error:

*** [Gentoo] sanity check failed! ***
*** libtool.m4 and ltmain.sh have a version mismatch! ***
*** (libtool.m4 = 1.5.22, ltmain.sh = 1.5.22 Debian 1.5.22-4) ***

Please run:

  libtoolize --copy --force

if appropriate, please contact the maintainer of this
package (or your distribution) for help.


 I'm running Gentoo on a standard Dell laptop.  I tried the libtoolize
 command in the linbox_wrap subdirectory, and after that make in that
 directory works, but when I come back down to the sage-2.8 directory and
 try make again, it tries to compile linbox again and fails with the
 same message.  Is there an easy way to fix this?

 I run into the same problem if I try to just update from sage-2.7.3.

 Cheers,
 Alex


 
  
 

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGwiPXdZTaNFFPILgRAiGXAJ9c/OEX080xXX1uCBYEUkXQAaNEIQCgjbWo
SIRA//dkF0UAzgiw2RvthSU=
=WM6n
-END PGP SIGNATURE-

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~--~~~~--~~--~--~---



[sage-support] Re: trouble compiling sage-2.8

2007-08-14 Thread Alex Ghitza

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Yes, it worked for me as well.

Alex


William Stein wrote:
 Does using the linbox package posted here work?
 
 http://sage.math.washington.edu/home/was/lj/
 
 Download that and do
sage -f linbox-20070814.spkg
 
  -- William
 
 
 On 8/14/07, Alex Ghitza [EMAIL PROTECTED] wrote:
 Hi,
 
 Yes, everything went fine, thanks to Michael Abshoff's advice.  In
 summary, here's what I did:
 
 cd /opt/sage-2.8/spkg/standard
 tar xvf linbox-20070812.spkg
 cd linbox-20070812/linbox_wrap
 libtoolize --copy --force
 cd ../..
 tar cjf linbox-20070812.spkg linbox-20070812
 cd /opt/sage-2.8
 make
 
 You can of course get rid of the directory linbox-20070812 that got
 created in the process.
 
 Cheers,
 Alex
 
 
 
 Joel B. Mohler wrote:
 Alex,

 Did you find a solution for this?  I got the same error on my gentoo as 
 well.
 I see you have later posts which make it appear that you have sage-2.8
 installed.

 --
 Joel

 On Monday 13 August 2007 11:47, Alex Ghitza wrote:
 Hi,

 I'm trying to compile sage-2.8 and it breaks down on linbox_wrap, with
 the message:


checking for correct ltmain.sh version... no
configure: error:

*** [Gentoo] sanity check failed! ***
*** libtool.m4 and ltmain.sh have a version mismatch! ***
*** (libtool.m4 = 1.5.22, ltmain.sh = 1.5.22 Debian 1.5.22-4) ***

Please run:

  libtoolize --copy --force

if appropriate, please contact the maintainer of this
package (or your distribution) for help.


 I'm running Gentoo on a standard Dell laptop.  I tried the libtoolize
 command in the linbox_wrap subdirectory, and after that make in that
 directory works, but when I come back down to the sage-2.8 directory and
 try make again, it tries to compile linbox again and fails with the
 same message.  Is there an easy way to fix this?

 I run into the same problem if I try to just update from sage-2.7.3.

 Cheers,
 Alex




-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGwliPdZTaNFFPILgRAkUsAJ0VUFKh6XPSCzCgbZnqy8ls8ySiAgCghTlT
iSsJM85ZWrlDcMcU9JlkGhw=
=Blav
-END PGP SIGNATURE-

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~--~~~~--~~--~--~---