[sage-support] Re: Bug in genus of an ideal

2010-11-21 Thread JamesHDavenport
The fact that the number of singularities quoted is precisely 2^32-1
makes me suspect a faulty return fo -1 from somewhere.

On Nov 21, 5:22 am, VictorMiller victorsmil...@gmail.com wrote:
 sage: T.t1,t2,u1,u2 = QQ[]
 sage: TJ = Ideal([t1^2 + u1^2 - 1,t2^2 + u2^2 - 1, (t1-t2)^2 + (u1-
 u2)^2 -1])
 sage: TJ.genus()
 4294967295
 sage: TJ.dimension()
 1

-- 
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: Specializing a base ring

2010-11-21 Thread John Cremona


 This is exactly the problem that the patch here solves:

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

 It's evidently not in Sage yet though.   So you *have* to try it out
 and report on that ticket.

  -- William

Note that #8807 very nearly got a positive review (from me) but there
were some trivial issues, and then the patch author (Simon King) moved
house and has not had time to fix them yet.

John Cremona

-- 
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: Specializing a base ring

2010-11-21 Thread Simon King
Hi!

On 21 Nov., 19:09, John Cremona john.crem...@gmail.com wrote:
 Note that #8807 very nearly got a positive review (from me) but there
 were some trivial issues, and then the patch author (Simon King) moved
 house and has not had time to fix them yet.

Sorry...

-- 
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] SageTeX encoding issue?

2010-11-21 Thread Maxim
Hi everyone,

I've toyed a bit with SageTeX now that it supports XeLaTeX (that's
really nice), and stumbled on some encoding problem, when I try to use
french accentuation in comments.

For example, this works as intended:

\begin{sagecommandline}
sage: # This is a comment
sage: 2+2
\end{sagecommandline}

But as soon as a try to use french accents (é è à ô ë, etc.) it fails:

\begin{sagecommandline}
sage: # à â ô é ù ï ë ö
\end{sagecommandline}

When running sage on this, I will get:
SyntaxError: Non-ASCII character '\xc3' in file test.sagetex.py on
line 20, but no encoding declared; see http://www.python.org/peps/pep-0263.html
for details.

Following that link to Python's pep-0263, I tried adding something
like # encoding=utf-8 at the head of the file test.sagetex.sagetex,
but the error persisted.

This does not only happens in the sagecommandline environment, but
also in sageblock, in any of Sagetex's environment, I would believe.
Sage's notebook works fine, as is Sage in command line (tested with
comments: # é à ô ù).

Any ideas?

Thanks.

-- 
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] the experimental wxpython package

2010-11-21 Thread adrian
I am using an asus EEE1000 (Intel atom), 32 bit with Ubuntu 110.10,
Maverick Meercat

I edited the file
/media/sage/sage-4.6-linux-32bit-ubuntu_10.04_lts-i686-Linux/local/lib/
pkgconfig/libpng.pc

since SAGE_ROOT was defined twice and while installing it complained
about that.

I installed the packages
libglu1-mesa-dev
libgl1-mesa-dev
libgtk2.0-dev
libwxgtk2.8-dev

and their dependencies.

But after compiling for a while it gave the error message:
In file included from ../include/wx/gsocket.h:179,
 from ../src/gtk/gsockgtk.cpp:21:
../include/wx/unix/gsockunx.h:40: error: using typedef-name ‘GSocket’
after ‘class’
/usr/include/glib-2.0/gio/giotypes.h:132: error: ‘GSocket’ has a
previous declaration here
../src/gtk/gsockgtk.cpp: In function ‘void _GSocket_GDK_Input(void*,
gint, GdkInputCondition)’:
../src/gtk/gsockgtk.cpp:34: error: ‘struct _GSocket’ has no member
named ‘Detected_Read’

Any ideas how to make the experimental package compile or have sage
use the wxpython that I have in my system?

-- 
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