วันเสาร์ที่ 31 ตุลาคม พ.ศ. 2552

[sage-devel] Re: problem compiling polybori (sage-4.2)[solved]

I found the problem. I had an old of version of m4ri installed on my system
(20090105) and it was picked up by polybori. This version of m4ri lacks
mzd_t which lead to the error.

By the way it looks like the sage version of polybori doesn't depend on
libm4ri which means the internal copy is used (unless you perform an upgrade
which include a polybori version change). I thought the plan was to switch to
using the libm4ri spkg for polybori in sage long ago?

Francois

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

[sage-devel] Re: of Google Groups and spam

On Fri, Oct 30, 2009 at 3:09 AM, Minh Nguyen <nguyenminh2@gmail.com> wrote:
>
> Hi folks,
>
> Just in case you're wondering why spam mails got through occasionally,
> here are some stories that present the moderator's side:
>
>

I can only second that --- the admin interface is terrible. Sometimes
the spam goes through even though both me and Mateusz who are
moderators of the sympy list think that we *didn't* let it through.

Once I accidentally clicked always allow instead of spam, so it went
through. Let me know if you know something better than google groups.

Ondrej

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

[sage-devel] Re: new mathematics plot jmol primitive

Jason,
I think this is a great idea. As I use Sage a bit in my teaching,
it would be nice to have a primitive with separate items for axes,
axes' labels, axes scale (the numbers on the axes). Then buttons
could be added to turn these on and off at the user request. If some
things can be passed to Jmol as functions, they will render well at
any zoom level. It would also be easier to use the slab function for
slicing 3-D objects.
That said there are some serious problems with how the notebook/
plot3D uses Jmol presently, that have little to do with whether a
primitive exists or not. I'm willing to help fix them, but need to
understand where in the code the html and javascript for Jmol is
generated. The way it is presently done the following things are a
problem:

1) It does not work in Firefox on Macs. Since I never have trouble
with this, I'm assuming something abnormal is being done with the
javascript that controls Jmol. Again, I bet I can help with this, but
I could not easily find where the code was generated. All I can do is
look at a web page.
2) Since people are running into memory problems, I suggest that only
a limited number of live Jmols (present default JavaVM configurations
support about 8 - 10 per page) be allowed in any given notebook. I
provided some example code that does not require any server
intervention that does this. I could help fold this in, if I could
figure out how you are generating the javascript to control Jmol.
3) Since there is room next to Jmol in the notebook, I suggest that
simple instructions on what Jmol can do and how to access the pop-up
be added and maybe a link to more extensive documentation (the Jmol
Site?). I'm an expert with Jmol and found it difficult to do anything
but rotate the image without significant experimentation.
4) It also might be worth loading only a static image first with a
link to make live. This saves a lot of bandwidth and will decrease
the time users have to wait to see their plots.
5) It would probably be a good idea to upgrade Jmol to the latest
stable release 11.8. I will try slipping that into a copy of 4.2 I

These are just some thoughts. The key thing is I think I could help,
but do not have time to wade through the code to figure out how
everything is connected. Can someone just tell me were to look?

Jonathan

On Oct 22, 2:01 am, Jason Grout <jason-s...@creativetrax.com> wrote:
> Jason Grout wrote:
> > A few days ago I posted a query to thejmolmailing list about getting
> > nice mesh lines injmolthat we could make pretty arbitrary, like in
> >http://trac.sagemath.org/sage_trac/attachment/ticket/5511/mesh_functi...
> > (see trac #5511 for the code for that figure).  Two people have
> > responded and it looks like we may be making progress; we are now
> > looking for people with ideas about how to make everything work.  If you
> > would like to join the discussion (or comment here and I can forward it
> > to thejmollist), please see:
>
> > http://www.mail-archive.com/jmol-us...@lists.sourceforge.net/msg13044.html
>
> In fact, Bob Hanson suggests creating a new mathematics plot type that
> has things like arbitrary meshes, annotations, and whatever else we want:
>
> What you suggest might be possible -- even now -- but I suggest
> we start talking about a new object type. Maybe a "plot3d" that
> is an extended isosurface. We already have that for molecular
> orbitals, LCAO cartoons, and pmesh. The way it works is that the
> extended object has more capabilities -- in this case, to map
> more than just contours onto an isosurface. Like you say, a
> totally variable mesh, which would just be a set of lines of
> variable width, color, and translucency. Possibly annotations. In
> addition, possibly, automatic scaling. Right now you have to do
> some transforms that are oblivious toJmol. I'd like the
> oblivious part to be in the use interface and letJmoltake care
> of anisotropic scaling.
>
> So, now is the time to dream about the perfectjmolprimitive for our
> graphics.  Any ideas?  People that have worked on the 3d graphics in
> Sage are especially encouraged to reply.
>
> Thanks,
>
> Jason
>
> --
> Jason Grout
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to sage-devel-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

[sage-devel] Re: sqrt(2) is real or not

Florent Hivert wrote:
> sage: x = sqrt(2)
> sage: x in RR
> True
> sage: x > 1
> sqrt(2) > 1
> sage: bool(x > 1)
> True

I think it's kind of weird that:

sqrt(2)>1

does not return True automatically. I realize it's because symbolic
expressions do not automatically do comparisons, but maybe we ought to
make an exception for symbolic constants?

Jason

--
Jason Grout

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

[sage-devel] Re: sqrt(2) is real or not

Hi Vincent,

> I'm just in trouble with the behavior of sqrt(n) when n is an integer,
> because of the following:
> {{{
> sage: x = sqrt(2)
> sage: x in RR
> True
> sage: x > 1 # a boolean expected
> x > 1 # a symbolic expression obtained
> }}}
>
> It could be avoided by forcing the interpretation of the boolean
> expression:
> {{{
> sage: bool(x > 1)
> False
> }}}

Is False really sage answer :-) ??? If you really got this one it is my
scarier than an unevaluated comparison. Fortunately, It seems that this is
only a bad copy paste :

----------------------------------------------------------------------
| Sage Version 4.2, Release Date: 2009-10-24 |
| Type notebook() for the GUI, and license() for information. |
----------------------------------------------------------------------
sage: x = sqrt(2)
sage: x in RR
True
sage: x > 1
sqrt(2) > 1
sage: bool(x > 1)
True

Cheers,

Florent

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

[sage-devel] Re: Iterating over finite fields

Thanks, Martin! That was simple. ;-)

I'll give the patch a review later this evening.

Rob

On Oct 31, 5:11 pm, Martin Albrecht <m...@informatik.uni-bremen.de>
wrote:
> FiniteField_givaro_iterator should have an __iter__() function which just
> returns itself:
>
> def __iter__(self):
>    return self
>
> This fixes the problem, see:
>
>    http://trac.sagemath.org/sage_trac/ticket/7366
>
> Cheers,
> Martin
>
> --
> name: Martin Albrecht
> _pgp:http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x8EF0DC99
> _otr: 47F43D1A 5D68C36F 468BAEBA 640E8856 D7951CCF
> _www:http://www.informatik.uni-bremen.de/~malb
> _jab: martinralbre...@jabber.ccc.de
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to sage-devel-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

[sage-devel] Re: Iterating over finite fields

FiniteField_givaro_iterator should have an __iter__() function which just
returns itself:

def __iter__(self):
return self

This fixes the problem, see:

Cheers,
Martin

--
name: Martin Albrecht
_pgp: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x8EF0DC99
_otr: 47F43D1A 5D68C36F 468BAEBA 640E8856 D7951CCF
_www: http://www.informatik.uni-bremen.de/~malb
_jab: martinralbrecht@jabber.ccc.de

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

[sage-devel] sqrt(2) is real or not

Hello,

I'm just in trouble with the behavior of sqrt(n) when n is an integer,
because of the following:
{{{
sage: x = sqrt(2)
sage: x in RR
True
sage: x > 1 # a boolean expected
x > 1 # a symbolic expression obtained
}}}

It could be avoided by forcing the interpretation of the boolean
expression:
{{{
sage: bool(x > 1)
False
}}}

But, couldn't it be automatic in this case ?
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to sage-devel-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

[sage-devel] Re: Reviews needed in Graph Theory !

On Sat, Oct 31, 2009 at 5:24 PM, Nathann Cohen <nathann.cohen@gmail.com> wrote:
> Hello everybody !!
>
> I am writing about two tickets in Graph Theory that really need reviews...
> They have been standing there for some time (something like 3 months !!!),
> and I wouldn't mind so much if it was not for the fact that these two
> tickets contains very fundamental functions that block the implementation of
> many others ones...
>
>
> Flow, Matching, Connectivity, and some Hard problems
> -----------------------------------------------------------------------------------
> URL : http://trac.sagemath.org/sage_trac/ticket/6680
>
> Contents :
> Minimum dominating Set
> Minimum Independent Dominating Set
> Minimum Vertex Cover
> Maximum weighted matching
> Maximum Flow
> Minimum Edge cut
> Minimum Vertex Cut
> Edge Connectivity
> Vertex Connectivity
>
> Vertex Coloring, Edge Coloring
> ----------------------------------------------------------------------------------
> URL : http://trac.sagemath.org/sage_trac/ticket/6679
>
> Contents :
> Vertex Coloring
> Edge Coloring

I'm definitely not a graph-theorist by any stretch. However,
some colleagues at work talked me into lecturing on abelian sandpiles
(David Perkinson's sandpiles page: http://people.reed.edu/~davidp/sand/,
with Sage code:-) in a department seminar, so I am getting very
interest in vertex
colors as they seem very closely related to "chip configurations"
(associating an integer >=0 to a non-sink vertex).

Can your "colored" graphs be plotted in black and white but in
such a way that the "colors" appear as weights besides the labels in the plot?

These look like excellent patches! I think I will have time to try to review
some towards the end of November, when we have a Thanksgiving break.

>
> All these functions are documented and explained, first because the user
> could be interested in them, but also to ease reviews.  I also tried to add
> comments to the code when necessary.
>
> of Sage :-)
>
> Nathann
>
> >
>

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

[sage-devel] Reviews needed in Graph Theory !

Hello everybody !!

I am writing about two tickets in Graph Theory that really need reviews... They have been standing there for some time (something like 3 months !!!), and I wouldn't mind so much if it was not for the fact that these two tickets contains very fundamental functions that block the implementation of many others ones...

Flow, Matching, Connectivity, and some Hard problems
-----------------------------------------------------------------------------------
URL : http://trac.sagemath.org/sage_trac/ticket/6680

Contents :
Minimum dominating Set
Minimum Independent Dominating Set
Minimum Vertex Cover
Maximum weighted matching
Maximum Flow
Minimum Edge cut
Minimum Vertex Cut
Edge Connectivity
Vertex Connectivity

Vertex Coloring, Edge Coloring
----------------------------------------------------------------------------------
URL : http://trac.sagemath.org/sage_trac/ticket/6679

Contents :
Vertex Coloring
Edge Coloring

All these functions are documented and explained, first because the user could be interested in them, but also to ease reviews.  I also tried to add comments to the code when necessary.

If you have some time to review them, please help the Graph Theory section of Sage :-)

Nathann

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

[sage-devel] Re: Some Design Theory in Sage

On Sat, Oct 31, 2009 at 5:06 PM, Rob Beezer <google@beezer.cotse.net> wrote:
>
> On Oct 31, 3:06 am, Carlo Hamalainen <carlo.hamalai...@gmail.com>
> wrote:
>> I've used Nauty on Linux for a few years with no problems. It's a bit
>> of a shame that the license isn't BSD/GPL because it's a great
>> package.
>
> Robert Miller has implemented the functionality of nauty as his NICE
> package, within Sage (thus with a GPL license ).
>
> A place to start is
>
> sage/groups/perm_gps/partn_ref/automorphism_group_canonical_label.pyx
>
> and this also gives ride to a canonical labeling routine for graphs,
> which could easily be extended to apply to designs.

sage: D = BlockDesign(7,[[0,1,2],[0,3,4],[0,5,6],[1,3,5],[1,4,6],[2,3,6],[2,4,5]],
name="Fano plane")
sage: D.automorphism_group()
Permutation Group with generators [(4,5)(6,7), (4,6)(5,7), (2,3)(6,7),
(2,4)(3,5), (1,2)(5,6)]

And yes this uses Robert Miller's NICE.

>
> Rob
> >
>

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

[sage-devel] Re: Some Design Theory in Sage

On Oct 31, 3:06 am, Carlo Hamalainen <carlo.hamalai...@gmail.com>
wrote:
> I've used Nauty on Linux for a few years with no problems. It's a bit
> of a shame that the license isn't BSD/GPL because it's a great
> package.

Robert Miller has implemented the functionality of nauty as his NICE
package, within Sage (thus with a GPL license ).

A place to start is

sage/groups/perm_gps/partn_ref/automorphism_group_canonical_label.pyx

and this also gives ride to a canonical labeling routine for graphs,
which could easily be extended to apply to designs.

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

Re: [Polybori-discuss] Fwd: [sage-devel] problem compiling polybori (sage-4.2)

On Sat, 31 Oct 2009 23:52:14 you wrote:
> I'm somewhat intrigued why there were so many options given to gcc when it
> was built. It's anyones guess if one of those is causing the problem.
>
> There are numerous repeated options given to the g++ command which makes
> me think the build process is not working well. I'm personally not
> impressed with SCons used in PolyBoRi. -fPIC for example is added three
> times.
>
> Perhaps it's me, but I prefer to compile code with as few options as
> possible. Of nothing else, it means the code is more portable, as half
> those options would not be acceptable to the Sun compiler for example.
>
Hi David,

While it is annoying it is not likely to be the problem here.
Interest in including sage on Gentoo has picked up again and
I get some build logs from other people. I am the only one with
this issue so far,
From the error I was thinking it could be some enforcement of strictness
from the compiler but I get the same thing with gcc-4.3.4 and some
other people do fine with gcc-4.3.4 so there is something more subtle at
play. glibc-2.10.1 may be?

Francois

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

[sage-devel] Iterating over finite fields

The list() method does not seem to work properly for (givaro) finite
fields:

sage: K.<a>=GF(4)
sage: [x for x in K]
[0, a, a + 1, 1]
sage: hasattr(K, '__iter__')
True
sage: K.list()
...
TypeError:
'sage.rings.finite_field_givaro.FiniteField_givaro_iterator' object is
not iterable

The culprit looks to me to be in sage/rings/finite_field_givaro.pyx
starting at:

cdef class FiniteField_givaro_iterator:

With some guidance I can probably fix this. Does the iterator need to
inherit from some more general iterator object? Should it be a Python
generator (ie w/ a yield) and then not cdef'ed? Or?

For example, the iterator for a ring of integers mod n seems to be off
in its own pure Python file with a true Python generator.

Suggestions on the nature of a fix (ie the "right" way to do this)
would be appreciated.

Thanks,
Rob

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

[sage-devel] Re: Fine-grained verbosity

On Oct 31, 2009, at 8:32 AM, Pat LeSmithe wrote:

> On 10/31/2009 03:45 AM, Burcin Erocal wrote:
>> What about writing a simpler interface to the Python logging
>> facilities
>> instead of trying to fix verbose?
>>
>> http://docs.python.org/library/logging.html
>
> To WSGI cognoscenti: How difficult would it be to adapt FireLogger's
>
> http://firelogger.binaryage.com/
>
> firepython module
>
> http://github.com/darwin/firepython
>
> for the notebook server? Note: We could direct the logs to a notebook
> div element (a "console"), instead of a Firebug
>
> http://getfirebug.com/

What's the performance like on these two projects? If we're going to
be using it internally, calling it a thousand times a second, it
better be fast.

- Robert

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

[sage-devel] Re: Fine-grained verbosity

On 10/31/2009 03:45 AM, Burcin Erocal wrote:
> What about writing a simpler interface to the Python logging facilities
> instead of trying to fix verbose?
>
> http://docs.python.org/library/logging.html

To WSGI cognoscenti: How difficult would it be to adapt FireLogger's

http://firelogger.binaryage.com/

firepython module

http://github.com/darwin/firepython

for the notebook server? Note: We could direct the logs to a notebook
div element (a "console"), instead of a Firebug

http://getfirebug.com/

panel.

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

[sage-devel] Re: simplification of expressions

Burcin Erocal wrote:

> I will try this when I find time and see how it works. Feel free to
> open a ticket so I don't forget. :)
>

Okay:

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

--
Jason Grout

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

[sage-devel] Re: simplification of expressions

On Fri, 30 Oct 2009 07:21:45 -0700 (PDT)
kcrisman <kcrisman@gmail.com> wrote:

> On Oct 29, 11:23 pm, Jason Grout <jason-s...@creativetrax.com> wrote:
> > I'm working with someone in a college algebra.  They were
> > temporarily confused when they typed:
> >
> > 2/(x+2)
> >
> > and the worksheet printed back out (in Typeset mode) the equivalent
> > of:
> >
> > 2 (1/(x+2))
> >
> > Is there a reason the 2 was pulled off the top of the fraction?
> >  Does it have to be?
>
> Looks like a Pynac thing. Check out
<snip code segment looking at the representation of the expression>

Yes, this is implemented in Pynac.

> So Pynac treats fractions fundamentally as negative powers, not as
> division.

Here is a link to the GiNaC tutorial explaining the data
representation:

http://www.ginac.de/tutorial/Internal-representation-of-products-and-sums.html

As a summary, products and sums are represented as vectors of tuples,
and a numeric coefficient. For products, the tuples encode a base and
an exponent.

When printing products, we print the numeric coefficient first. Then
separate the elements in the vector to a numerator and denominator part
according to their exponents and print these parts in order.

Here is the code:

http://pynac.sagemath.org/hg/file/e569b1a9a6a5/ginac/mul.cpp#l230

> sage: b = 2*(x+2)^-1
> sage: bool(b==a)
> True
> Here you would want the typesetting to have the 2 out front, right?

> This doesn't suggest a solution, just diagnoses the issue. I'm not
> sure whether there would be a consistent way to do this. Note,
> however, that
> sage: latex(1/(2*(x+2)))
> also pulls the 2 out, so you get 1/2 "out front".

One way to get the representation Jason wants is to ask for the
numerator and denominator of the numeric coefficient, and set these to
be the coefficients of the mul objects created when separating the
vector into a numerator and denominator.

I will try this when I find time and see how it works. Feel free to
open a ticket so I don't forget. :)

Thanks.

Burcin

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

[sage-devel] Re: Fine-grained verbosity

Hi,

On Sat, 31 Oct 2009 01:41:07 -0700 (PDT)
Kwankyu Lee <ekwankyu@gmail.com> wrote:

> I am experiencing the problem exactly that David raised
>
> Then it seems the original idea is good that we add "tag" (or "flag"?,
> I don't like "component" as Robert proposed) parameter to verbose
> commands. It will default to "internal" (or "system" or "library" or
> "builtin"?) This will not break or change behavior of existing codes.
>
> Then in a user program, typically we may do
>
> set_verbose(1,"user")
>
> get_verbose("user")
>
> verbose("...",level=1,tag="user")

What about writing a simpler interface to the Python logging facilities
instead of trying to fix verbose?

http://docs.python.org/library/logging.html

Cheers,
Burcin

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

[sage-devel] Re: Some Design Theory in Sage

I did not know there was some already... Actually, yhe first thing I
wanted to see in Sage being Steiner Systems, I looked for this string
in search_doc and found nothing... As they are the easiest to
implement, I ( wrongly ) deduced there was nothing yet ^^;

As there are some desings already in Sage, i'll give it a look and
just post patches when I think something else is missing :-)

Thank youuuuuuuu !!!

Nathann

On Oct 31, 10:40 am, Carlo Hamalainen <carlo.hamalai...@gmail.com>
wrote:
> On Sat, Oct 31, 2009 at 9:35 AM, Nathann Cohen <nathann.co...@gmail.com> wrote:
> > I would like to see some design theory in Sage, and I looked for the
> > softwares that were already around....
>
> We already have some design theory stuff in Sage:
>
> http://sagemath.org/doc/reference/combinat/designs.html
>
> What do you think is missing? (e.g. classes of designs, calculations
> on some type of design, etc).
>
> --
> Carlo Hamalainenhttp://carlo-hamalainen.net
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to sage-devel-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

[sage-devel] Re: Some Design Theory in Sage

On Sat, Oct 31, 2009 at 10:48 AM, Simon King <simon.king@nuigalway.ie> wrote:
> And, if I am not mistaken, Nauty only works on Unix, not on Linux.

I've used Nauty on Linux for a few years with no problems. It's a bit
of a shame that the license isn't BSD/GPL because it's a great
package.

--
Carlo Hamalainen
http://carlo-hamalainen.net

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

[sage-devel] Re: Some Design Theory in Sage

Hi!

On 31 Okt., 09:35, Nathann Cohen <nathann.co...@gmail.com> wrote:
> Hello everybody !!!!
>
> I would like to see some design theory in Sage, and I looked for the
> softwares that were already around....
>
> I found :
>
> DESIGN ( a Gap package ) :http://designtheory.org/software/gap_design/htm/chapters.htm
> This software needs Nauty, which is not free, and is a GAP package so it can
> not be used independently

And, if I am not mistaken, Nauty only works on Unix, not on Linux.

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

[sage-devel] Re: Some Design Theory in Sage

On Sat, Oct 31, 2009 at 9:35 AM, Nathann Cohen <nathann.cohen@gmail.com> wrote:
> I would like to see some design theory in Sage, and I looked for the
> softwares that were already around....

We already have some design theory stuff in Sage:

http://sagemath.org/doc/reference/combinat/designs.html

What do you think is missing? (e.g. classes of designs, calculations
on some type of design, etc).

--
Carlo Hamalainen
http://carlo-hamalainen.net

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

[sage-devel] Re: Fine-grained verbosity

Hi,

I am experiencing the problem exactly that David raised

Then it seems the original idea is good that we add "tag" (or "flag"?,
I don't like "component" as Robert proposed) parameter to verbose
commands. It will default to "internal" (or "system" or "library" or
"builtin"?) This will not break or change behavior of existing codes.

Then in a user program, typically we may do

set_verbose(1,"user")

get_verbose("user")

verbose("...",level=1,tag="user")

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

[sage-devel] Some Design Theory in Sage

Hello everybody !!!!

I would like to see some design theory in Sage, and I looked for the softwares that were already around....

I found :

DESIGN ( a Gap package ) : http://designtheory.org/software/gap_design/htm/chapters.htm
This software needs Nauty, which is not free, and is a GAP package so it can not be used independently

Gosset : http://www.research.att.com/~njas/gosset/
This software seems to be quite good, but does not seem to be under development anymore, and seems to have been licensed under some AT&T license...

So all in all, I do not think this qualifies as a good haul... Do you know of any other Design Theory software around ? What do you like in those two ?

Should we then try to integrate some parts of them, or just try to rewrite the functions in Sage ?

Nathann

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

วันศุกร์ที่ 30 ตุลาคม พ.ศ. 2552

[sage-devel] Japanese Girls Wear Bikinis Dancing Show on the Road.. Watch Video about Sexy,Girls,Bikinis by ... How To Draw a Nude Woman 03:10 · How To Draw a Nude Woman ...ot Webcam Girl Dancing [13+]. Rated 4.54 | 340200 Views. Affiliate Submitter: INTROPICS

Japanese Girls Wear Bikinis Dancing Show on the Road.. Watch Video
about Sexy,Girls,Bikinis by ... How To Draw a Nude Woman 03:10 · How
To Draw a Nude Woman ...ot Webcam Girl Dancing [13+]. Rated 4.54 |
340200 Views. Affiliate Submitter: INTROPICS. Sex Porn Black Sexy Porn
Hot Nude Girls Big Booty 00:14 ...

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

[sage-devel] problem compiling polybori (sage-4.2)

Hi,

I have a problem compiling polybori in sage-4.2.
I get the following:
g++ -o groebner/src/randomset.o -c -O3 -Wno-long-long -Wreturn-type -g -fPIC -
ftemplate-depth-100 -g -fPIC -O3 -Wno-long-long -Wreturn-type -g -fPIC -
DNDEBUG -DHAVE_GD -DHAVE_TR1_UNORDERED_MAP -DPACKED -DHAVE_M4RI -DHAVE_GD -
DHAVE_IEEE_754 -DBSD -I/media/anthill/portage/sci-
mathematics/sage-4.2/work/sage-4.2/spkg/build/polybori-0.6.3-20090827/src/boost_1_34_1.cropped
-I/media/anthill/portage/sci-mathematics/sage-4.2/work/sage-4.2/local/include
-I/media/anthill/portage/sci-
mathematics/sage-4.2/work/sage-4.2/local/include/python2.6 -Ipolybori/include
-ICudd/obj -ICudd/util -ICudd/cudd -ICudd/mtr -ICudd/st -ICudd/epd
groebner/src/randomset.cc
In file included from groebner/src/randomset.cc:12:
groebner/src/nf.h:23: error: variable or field 'drawmatrix' declared void
groebner/src/nf.h:23: error: 'mzd_t' was not declared in this scope
groebner/src/nf.h:23: error: 'mat' was not declared in this scope
groebner/src/nf.h:23: error: expected primary-expression before 'const'
scons: *** [groebner/src/randomset.o] Error 1
scons: building terminated because of errors.
Error building PolyBoRi.

Not sure why it happens. I am on gentoo on x86,
I tried with gcc-4.4.2 and gcc-3.4.3 with the same result,
Other info:
Host system
uname -a:
Linux vrooom 2.6.30-gentoo-r5 #1 Mon Aug 31 21:06:06 NZST 2009 i686 AMD
Athlon(tm) XP 2600+ AuthenticAMD GNU/Linux
****************************************************
****************************************************
CC Version
gcc -v
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: /media/anthill/portage/sys-
devel/gcc-4.4.2/work/gcc-4.4.2/configure --prefix=/usr --bindir=/usr/i686-pc-
linux-gnu/gcc-bin/4.4.2 --includedir=/usr/lib/gcc/i686-pc-linux-
mandir=/usr/share/gcc-data/i686-pc-linux-gnu/4.4.2/man --
infodir=/usr/share/gcc-data/i686-pc-linux-gnu/4.4.2/info --with-gxx-include-
dir=/usr/lib/gcc/i686-pc-linux-gnu/4.4.2/include/g++-v4 --host=i686-pc-linux-
gnu --build=i686-pc-linux-gnu --disable-altivec --disable-fixed-point --with-
ppl --with-cloog --enable-nls --without-included-gettext --with-system-zlib --
disable-checking --disable-werror --enable-secureplt --disable-multilib --
enable-libmudflap --disable-libssp --disable-libgomp --enable-cld --with-
python-dir=/share/gcc-data/i686-pc-linux-gnu/4.4.2/python --disable-libgcj --
with-arch=i686 --enable-languages=c,c++,fortran --enable-shared --enable-
bugurl=http://bugs.gentoo.org/ --with-pkgversion='Gentoo 4.4.2 p1.0'
gcc version 4.4.2 (Gentoo 4.4.2 p1.0)
****************************************************

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

[sage-devel] Re: Fwd: [cython-users] Cython tutorial slides

On Oct 30, 11:21 am, Jason Grout <jason-s...@creativetrax.com> wrote:
> Wow, in addition to the content, I'm very impressed with the
> presentation. What did you (he) use for generating his slides?

Hi Jason,

Looks like this is an "S5" slideshow, apparently a standard for
presentations for web pages. Of interest here, you can begin with
ReST and get S5 out from a translator or Sphinx or something:

http://docutils.sourceforge.net/docs/user/slide-shows.html

Also, with plasTeX it appears you can convert a Beamer presentation to
S5:

http://www.tug.org/pracjourn/2008-3/arnold/arnold.pdf

Disclaimer: I have no experience with any of this. Yet.

Rob

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

[sage-devel] Re: PPA for Sage in Ubuntu

On Fri, Oct 30, 2009 at 6:39 PM, Jason Grout
<jason-sage@creativetrax.com> wrote:
>
> Ondrej Certik wrote:
>
>>
>> I solve this problem by using gmail, filtering all messages into the
>> "sage" label (folder) and then when I want to check threads, which I
>> am involved in, I click on the "sent emails" link and gmail will
>> highlight those threads that contain new emails. So it's super easy
>> for me to see if someone has said anything. The only disadvantage is
>> that sometimes someone replies a week later, and thus the highlighted
>> thread will be on some older page in the "sent emails" view in gmail.
>> So some button "show unread" would be cool.
>>
>
> I use Thunderbird to read the newsgroup from the gmane mirror of the
> list (gmane.comp.mathematics.sage.devel).  It's not in my regular email,
> and newsreaders have all sorts of tools for tagging, filtering,
> prioritizing messages, threading, etc.  That's worked out to be a
> wonderful solution for me.

Does this approach also work if you work on several computers? I
usually just use 2 computers.

Ondrej

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

[sage-devel] Re: PPA for Sage in Ubuntu

Ondrej Certik wrote:

>
> I solve this problem by using gmail, filtering all messages into the
> "sage" label (folder) and then when I want to check threads, which I
> am involved in, I click on the "sent emails" link and gmail will
> highlight those threads that contain new emails. So it's super easy
> for me to see if someone has said anything. The only disadvantage is
> that sometimes someone replies a week later, and thus the highlighted
> thread will be on some older page in the "sent emails" view in gmail.
> So some button "show unread" would be cool.
>

I use Thunderbird to read the newsgroup from the gmane mirror of the
list (gmane.comp.mathematics.sage.devel). It's not in my regular email,
and newsreaders have all sorts of tools for tagging, filtering,
prioritizing messages, threading, etc. That's worked out to be a
wonderful solution for me.

Thanks,

Jason

--
Jason Grout

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

[sage-devel] Re: PPA for Sage in Ubuntu

On Fri, Oct 30, 2009 at 10:54 PM, Ondrej Certik <ondrej@certik.cz> wrote:
> I solve this problem by using gmail, filtering all messages into the
> "sage" label (folder) and then when I want to check threads, which I
> am involved in, I click on the "sent emails" link and gmail will
> highlight those threads that contain new emails. So it's super easy
> for me to see if someone has said anything. The only disadvantage is
> that sometimes someone replies a week later, and thus the highlighted
> thread will be on some older page in the "sent emails" view in gmail.
> So some button "show unread" would be cool.

Try "label:sent label:unread" in the gmail search box.

Gonzalo

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

[sage-devel] Re: PPA for Sage in Ubuntu

On Fri, Oct 30, 2009 at 7:25 AM, Tim Abbott <tabbott@mit.edu> wrote:
> On Thu, 29 Oct 2009, William Stein wrote:
>
>> On Thu, Oct 29, 2009 at 6:10 PM, Tim Abbott <tabbott@mit.edu> wrote:
>> > (Note that I'm not directly subscribed to this list and do not have
>> > the time to read it regularly, so you may want to CC me directly if
>> > you want to ensure I see your replies.  I continue to wish that sage-
>> > devel was managed like the LKML.)
>> >
>> Do tell.    I don't know anything about how the Linux Kernel Mailing
>> list is managed or what advantage it has over the sage-devel mailing
>> list.
>
> (this may be configurable).
>
> The LKML has really high traffic, and so a lot of people who contribute
> don't directly subscribe.  Instead, it's standard practice to send an
> email to the LKML, and people are supposed to reply-all so that they CC
> both the people who've actually contributed to the thread and the list
> itself.  It's policy when emailing a patch to the LKML to CC, you need to
> CC the people who work on the relevant subsystem; they have a file called
> MAINTAINERS in the root of the source tree that encodes this information,
> and a script that will print out the list of people you're supposed to CC
> based on what files your patch touches.
>
> So, this way the guy who maintains the r8169 driver doesn't actually need
> to read the entire (basically unbearable) load of the LKML; he just needs
> to read the emails that CC him directly.  There are still a lot of people
> who subscribe to the LKML and read random emails sent to the list, but
> that's not required in order to be a useful contributor or even a
> subsystem maintainer.
>
>
> With sage-devel, if I send an email to the list and then someone replies,
> will go to the list, but most mail clients will send the email to _only_
> the list.  Thus I end up having to periodically check back to see whether
> anyone replied to threads I'm involved in.
>
> There's a tradeoff here -- the LKML way requires teaching people to
> reply-all, and that has its costs.  But I always find high-traffic lists
> that munge reply-to to be frustrating to contribute to without a
> significant minimum time commitment to read the mailing list.

I solve this problem by using gmail, filtering all messages into the
"sage" label (folder) and then when I want to check threads, which I
am involved in, I click on the "sent emails" link and gmail will
highlight those threads that contain new emails. So it's super easy
for me to see if someone has said anything. The only disadvantage is
that sometimes someone replies a week later, and thus the highlighted
thread will be on some older page in the "sent emails" view in gmail.
So some button "show unread" would be cool.

Ondrej

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

[sage-devel] Wordpress, XMLRPC, Notebook

A few months back there were some discussions about XMLRPC in the Sage
notebook server, and there was an implementation in XMLRPC of a Sage
server to send computed notebooks to Wordpress. There was also an
XMLRPC Wordpress plugin that could take the Sage results and format
them for Wordpress.

It looked like a great idea, but I never tried it, in part because of
similar discussions about improvements/rewrites in the notebook code,
which have been works in progress. I'm interested in whether anyone
has recently used XMLRPC in Sage, either with the Wordpress plugin or
with some other app. I really liked that demonstration with WP and it
jibes with some of my interests with other platforms, and making them
Sage-aware. I would be interested in working on such related code, so
give a holler here if you're interested in this functionality too.
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to sage-devel-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

[sage-devel] sage-open sage-osx-open and sage-native-execute

Is there a reason to have two files that are functionally equivalent
namely

local/bin/sage-open
local/bin/sage-osx-open

and why are they slightly different than

local/bin/sage-native-execute

namely sage-native-execute replaces the variables whereas sage-open
merely unsets them. Also they unset LIBRARY_PATH whereas sage-native-
execute does not. If it causes problems for open shouldn't we have
the same change in sage-native-execute?

It seems as if calling sage-native-execute open ... would be nearly
as easy as calling sage-open ... and cut down on maintenance
assuming of course that they should be equivalent with regard to
environment variables.

I'd be happy to open a ticket and make the changes etc., but I'm not
sure exactly what changes are safe to make.

-Ivan

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

[sage-devel] Re: Fwd: [cython-users] Cython tutorial slides

William Stein wrote:
> Hi,
>
> Sage devs might want to read this new talk:
>
> http://behnel.de/cython200910/talk.html
>

Wow, in addition to the content, I'm very impressed with the
presentation. What did you (he) use for generating his slides?

Thanks,

Jason

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

[sage-devel] Re: Fwd: [cython-users] Cython tutorial slides

William Stein wrote:
> Hi,
>
> Sage devs might want to read this new talk:
>
> http://behnel.de/cython200910/talk.html
>

Wow, in addition to the content, I'm very impressed with the
presentation. What did you (he) use for generating his slides?

Thanks,

Jason

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

[sage-devel] Re: View images from sage over ssh

M. Yurko wrote:
> Hi all,
>
> I'm looking at a patch right now that changes graph layout and I have
> applied it to my install on sage.math. Is there anyway to see the
> image that is created when viewing a graph over ssh?
>

to look at that file (since all home directories on sage.math are
accessible over the web).

Jason

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

[sage-devel] Re: View images from sage over ssh

X-forwarding works great if you have a unix. If you've got Windows,
maybe cygwin is the easiest?

But... I'd take a different approach altogether: use the notebook.

secure=True, port=????)

where ???? is an integer > 1000

On Fri, Oct 30, 2009 at 10:18 AM, M. Yurko <myurko@gmail.com> wrote:
>
> Hi all,
>
> I'm looking at a patch right now that changes graph layout and I have
> applied it to my install on sage.math. Is there anyway to see the
> image that is created when viewing a graph over ssh?
>
> Thanks,
> Michael Yurko
> >
>

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

[sage-devel] Re: Fwd: [cython-users] Cython tutorial slides

On Oct 30, 2009, at 2:37 AM, William Stein wrote:

>
> Hi,
>
> Sage devs might want to read this new talk:
>
> http://behnel.de/cython200910/talk.html
>
> It's Cython _not_ from Robert Bradshaw's perspective.

I'll second the recommendation--it's always enlightening to read stuff
from a different perspective.

One other thing that he doesn't mention that might be of interest is http://wiki.cython.org/enhancements/compilerdirectives

> I learned a
> few things I didn't know. For example, it is trivial to create a
> standalone binary executable that links in Sage (on OS X):
>
> 1. Create hw.py:
>
> import sage.all
> def hello_world():
> import sys
> print "Welcome to Sage - ", sage.all.factor(89392)
>
> if __name__ == '__main__':
> hello_world()
>
> 2. Do "sage -sh", then

Note that you need to pass the --embed flag here to create the main()
method, as in

sage subshell$cython --embed hw.py > sage subshell$ gcc -I$SAGE_LOCAL/include/python2.6/ >$SAGE_LOCAL/lib/libpython2.6.a -o hw hw.c
> sage subshell$./hw > Welcome to Sage - 2^4 * 37 * 151 > > sage subshell$ ls -lh hw
> -rwxr-xr-x 1 wstein staff 1.9M Oct 30 02:36 hw
>
> -- William
>
> ---------- Forwarded message ----------
> From: Stefan Behnel <stefan_ml@behnel.de>
> Date: Fri, Oct 30, 2009 at 2:08 AM
> Subject: [cython-users] Cython tutorial slides
>
>
>
> Hi,
>
> I just uploaded the slides from a recent tutorial talk I gave about
> Cython.
>
> http://behnel.de/cython200910/talk.html
>
> Have fun,
>
> Stefan
>
>
>
> --
> William Stein
> Associate Professor of Mathematics
> University of Washington
> http://wstein.org
>
> >

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

[sage-devel] View images from sage over ssh

Hi all,

I'm looking at a patch right now that changes graph layout and I have
applied it to my install on sage.math. Is there anyway to see the
image that is created when viewing a graph over ssh?

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

[sage-devel] Re: of Google Groups and spam

On 30-Oct-09, at 3:09 AM, Minh Nguyen wrote:

>
> Hi folks,
>
> Just in case you're wondering why spam mails got through occasionally,
> here are some stories that present the moderator's side:

As a frequent denigrator of Google Groups, I read these, followed some
-- it seems to, you know, use Google-style search algorithms to comb
our beloved mailing list.

Nick

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

[sage-devel] Re: Fwd: [libsingular-devel] Riemann-Roch computations in the Brill-Noether routines

On Fri, Oct 30, 2009 at 9:17 AM, Martin Albrecht
<malb@informatik.uni-bremen.de> wrote:
>
> Hi,
>
> this e-mail by Frank on libsingular-devel leads to the following question: do
> we want to set the random seed of Singular by default at Sage/Singular start-
> up? From what I gather from randstate.pyx we don't do that even for NTL.
>
> I would vote for setting the random seed to all 'subsystems' by default by
> Sage's randstate whenever these 'subsystems' are initialised.

+1
I agree with you.

Thank you for following up with this Martin. I very much want
a Riemann-Roch space basis computation to work in Sage!

>
> Cheers,
> Martin
>
>
> ----------  Forwarded Message  ----------
> Subject: [libsingular-devel] Riemann-Roch computations in the Brill-Noether
> routines
> Date: Friday 30 October 2009
> From: Frank Seelisch <seelisch@mathematik.uni-kl.de>
>
>
>
> Hi everybody,
>
> this deals with the problem in SINGULAR's "brnoeth.lib" you have
> reported some time ago; see the below snippet from a mail from William
> Stein to David Joyner.
>
> As far as we understand correctly, the problem seems to be that SAGE
> wants to have stable results when calling this piece of SINGULAR code?
> But "brnoeth.lib" uses randomly chosen points; so there is some kind of
> indeterminacy in there. (I hope that is what your problem really is about.)
>
> We suggest to use a random seed, e.g., to pass on the random seed that
> you use in SAGE to SINGULAR. This can either be done via the SINGULAR
> command
>   system("random", mySeedAsAnInt);
> or directly in C by assigning the SINGULAR-internal variable
>   siseed = mySeedAsAnInt;
>
> When providing the random seed this way, SINGULAR will procude the same
> sequence of random numbers on all platforms.
>
> I hope this resolves your problem!
>
> Regards,
> Frank
>
> =========================================================================
>
> Thanks for the Singular-ish version via evals. I wrote the following
> pure-Singular version, which you can put in a file "rrbasis.lib" and
>
>     < "rrbasis.lib";
>
> (or you can just paste it in):
>
> LIB "brnoeth.lib";
> kill X, X2,R,G,LG;
> ring R=11,(x,y),lp;
> list X = Adj_div(x^7 + y^7 - 1);
> def  X2 = NSplaces(1,X);
> def  X3 = extcurve(1,X2);
> def RR =X3[1][5];
> setring RR;
> print("POINTS");
> print(POINTS);
> /* PROBLEM -- this G defined a different divisor every time the
>    this code is run!!!  Need a way to compute G from a list of points */
> intvec G=(10,-1,0,0,9,0,0,0,0,0,0,0,0,0);
> def R = X2[1][2];
> setring R;
> list LG = BrillNoether(G,X2);
> print(LG);
>
> It gives random answers since the G has a different meaning every time
> the function is run.
>
>
>
>
> --
> name: Martin Albrecht
> _pgp: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x8EF0DC99
> _otr: 47F43D1A 5D68C36F 468BAEBA 640E8856 D7951CCF
> _www: http://www.informatik.uni-bremen.de/~malb
> _jab: martinralbrecht@jabber.ccc.de
>
>
> >
>

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

[sage-devel] Re: latex representation for expresions like 1.42531324e-41

marik@mendelu.cz wrote:
> Hello all
>
> The latex representation of numbers in scientific notation works as
> excepted, unless we have these numbers as results from numerical
> integral. Compare the last two outputs i nthe session below. Why is
>
> sage: latex(A[1])
> 1.66533453694e-14
>
> and not
>
> sage: latex(A[1])
> 1.66533453694 \times 10^{-14}
>
> ?
>

There is a positive review for a patch to fix this. It should be in the
next version of Sage.

Thanks,

Jason

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

[sage-devel] Re: PPA for Sage in Ubuntu

On Thu, 29 Oct 2009, William Stein wrote:

> On Thu, Oct 29, 2009 at 6:10 PM, Tim Abbott <tabbott@mit.edu> wrote:
> > (Note that I'm not directly subscribed to this list and do not have
> > the time to read it regularly, so you may want to CC me directly if
> > you want to ensure I see your replies.  I continue to wish that sage-
> > devel was managed like the LKML.)
> >
> Do tell. I don't know anything about how the Linux Kernel Mailing
> list is managed or what advantage it has over the sage-devel mailing
> list.

(this may be configurable).

The LKML has really high traffic, and so a lot of people who contribute
don't directly subscribe. Instead, it's standard practice to send an
email to the LKML, and people are supposed to reply-all so that they CC
both the people who've actually contributed to the thread and the list
itself. It's policy when emailing a patch to the LKML to CC, you need to
CC the people who work on the relevant subsystem; they have a file called
MAINTAINERS in the root of the source tree that encodes this information,
and a script that will print out the list of people you're supposed to CC
based on what files your patch touches.

So, this way the guy who maintains the r8169 driver doesn't actually need
to read the entire (basically unbearable) load of the LKML; he just needs
to read the emails that CC him directly. There are still a lot of people
who subscribe to the LKML and read random emails sent to the list, but
that's not required in order to be a useful contributor or even a
subsystem maintainer.

With sage-devel, if I send an email to the list and then someone replies,
will go to the list, but most mail clients will send the email to _only_
the list. Thus I end up having to periodically check back to see whether
anyone replied to threads I'm involved in.

There's a tradeoff here -- the LKML way requires teaching people to
reply-all, and that has its costs. But I always find high-traffic lists
that munge reply-to to be frustrating to contribute to without a
significant minimum time commitment to read the mailing list.

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

[sage-devel] Re: simplification of expressions

On Oct 29, 11:23 pm, Jason Grout <jason-s...@creativetrax.com> wrote:
> I'm working with someone in a college algebra.  They were temporarily
> confused when they typed:
>
> 2/(x+2)
>
> and the worksheet printed back out (in Typeset mode) the equivalent of:
>
> 2 (1/(x+2))
>
> Is there a reason the 2 was pulled off the top of the fraction?  Does it
> have to be?

Looks like a Pynac thing. Check out
sage: a=2/(x+2)
sage: a.operands()
sage: a.operands()[0].operands()
sage: a.operands()[0].operator()
So Pynac treats fractions fundamentally as negative powers, not as
division.
sage: b = 2*(x+2)^-1
sage: bool(b==a)
True
Here you would want the typesetting to have the 2 out front, right?

This doesn't suggest a solution, just diagnoses the issue. I'm not
sure whether there would be a consistent way to do this. Note,
however, that
sage: latex(1/(2*(x+2)))
also pulls the 2 out, so you get 1/2 "out front".

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

[sage-devel] Re: latex representation for expresions like 1.42531324e-41

Hold up, this is already IN trac and Jason Grout submitted a patch

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

[sage-devel] Re: maxima-init.lisp file

> Or will we suppose that only experienced users have maxima-init.lisp
> file and they should know what they are doing?

I think this is a likely assumption, and is also the case with things
like matplotlibrc etc., where we usually just recommend people dump
them if they get weird error messages and didn't personally create
them.

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

[sage-devel] Fwd: [libsingular-devel] Riemann-Roch computations in the Brill-Noether routines

Hi,

this e-mail by Frank on libsingular-devel leads to the following question: do
we want to set the random seed of Singular by default at Sage/Singular start-
up? From what I gather from randstate.pyx we don't do that even for NTL.

I would vote for setting the random seed to all 'subsystems' by default by
Sage's randstate whenever these 'subsystems' are initialised.

Cheers,
Martin

---------- Forwarded Message ----------
Subject: [libsingular-devel] Riemann-Roch computations in the Brill-Noether
routines
Date: Friday 30 October 2009
From: Frank Seelisch <seelisch@mathematik.uni-kl.de>

Hi everybody,

this deals with the problem in SINGULAR's "brnoeth.lib" you have
reported some time ago; see the below snippet from a mail from William
Stein to David Joyner.

As far as we understand correctly, the problem seems to be that SAGE
wants to have stable results when calling this piece of SINGULAR code?
But "brnoeth.lib" uses randomly chosen points; so there is some kind of
indeterminacy in there. (I hope that is what your problem really is about.)

We suggest to use a random seed, e.g., to pass on the random seed that
you use in SAGE to SINGULAR. This can either be done via the SINGULAR
command
system("random", mySeedAsAnInt);
or directly in C by assigning the SINGULAR-internal variable
siseed = mySeedAsAnInt;

When providing the random seed this way, SINGULAR will procude the same
sequence of random numbers on all platforms.

I hope this resolves your problem!

Regards,
Frank

=========================================================================

Thanks for the Singular-ish version via evals. I wrote the following
pure-Singular version, which you can put in a file "rrbasis.lib" and

< "rrbasis.lib";

(or you can just paste it in):

LIB "brnoeth.lib";
kill X, X2,R,G,LG;
ring R=11,(x,y),lp;
list X = Adj_div(x^7 + y^7 - 1);
def X2 = NSplaces(1,X);
def X3 = extcurve(1,X2);
def RR =X3[1][5];
setring RR;
print("POINTS");
print(POINTS);
/* PROBLEM -- this G defined a different divisor every time the
this code is run!!! Need a way to compute G from a list of points */
intvec G=(10,-1,0,0,9,0,0,0,0,0,0,0,0,0);
def R = X2[1][2];
setring R;
list LG = BrillNoether(G,X2);
print(LG);

It gives random answers since the G has a different meaning every time
the function is run.

--
name: Martin Albrecht
_pgp: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x8EF0DC99
_otr: 47F43D1A 5D68C36F 468BAEBA 640E8856 D7951CCF
_www: http://www.informatik.uni-bremen.de/~malb
_jab: martinralbrecht@jabber.ccc.de

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

[sage-devel] Re: why sobject? adds 4 spaces to the left whereas sobject?? doesn't ?

Well, the sage-devel google group editor broke the wrapping of my
lines, so that all my examples are incomprehensible... Sorry. To see
what I mean, type

sage: Partition??
sage: Partition?
sage: sage.graphs.graph?

in a 80-character wide terminal.

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

[sage-devel] why sobject? adds 4 spaces to the left whereas sobject?? doesn't ?

Hi,

The double ?? is fine to me : it prints the documentation as in the
file :

sage: Partition??
...
Sage follows the usual python conventions when dealing with
partitions,
so that the first part of the partition mu=Partition([4,3,2,2])
 is
mu[0], the second part is mu[1] and so on. As is usual,
Sage ignores
trailing zeros at the end of partitions.
...

But, the single ? adds a tabulation (4 spaces) to the left, which is
not nice to me :

sage: Partition?
...
Sage follows the usual python conventions when dealing with
partitions,
mu[0], the second part is mu[1] and so on. As is
usual, Sage ign
ores
trailing zeros at the end of partitions.
...

Where can I see the code of the single '?' printing-doc function? Was
there a reason for adding those 4 spaces? Do you agree with me for
removing those 4 spaces? I know I can enlarge my terminal horizontaly,
but I think it would be nice if it would behave nicely for the
standard 80.

Nothing is said about that in the

http://sagemath.org/doc/developer/conventions.html

but every lines in the given examples contains at most 70 characters,
which suggests that sage is actually suggesting something but what!? I
think some developer are already aware of the 4 added spaces (or maybe
is it for other esthetical reasons?) and now write lines of at most 76
(or even at most 70) characters so that no lines get broken uglyly in
both ways :

sage: sage.graphs.graph?

Graph Theory

This module implements many graph theoretic operations and
concepts.

AUTHORS:

- Robert L. Miller (2006-10-22): initial version

- William Stein (2006-12-05): Editing

- Robert L. Miller (2007-01-13): refactoring, adjusting for
NetworkX-0.33, fixed plotting bugs (2007-01-23): basic
tutorial,
edge labels, loops, multiple edges and arcs (2007-02-07):
graph6
and sparse6 formats, matrix input

- Emily Kirkmann (2007-02-11): added graph_border option to plot
and show

- Robert L. Miller (2007-02-12): vertex color-maps, graph
boundaries, graph6 helper functions in Cython

- Robert L. Miller Sage Days 3 (2007-02-17-21): 3d plotting in
Tachyon

...

What do you think about that?

Sébastien Labbé
PhD Student
UQAM - Montellier 2
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to sage-devel-unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

[sage-devel] maxima-init.lisp file

Hello all,

I wondered for longer time, why I got error which nobody reported (see
the bottom of this message).

Now I found the explanation: I have ~/.maxima/maxima-init.lisp file
with the following line:

:lisp(setf (get '%sin 'tex) nil)

The reason for this file is to get "sin(x)" instead of "sin x" when
exporting sine function from Maxima to TeX.

This file caused the error in tests. Removing this file solves the
problem.

So my question is: Is it O.K. to use user's own (or system's) maxima-
init.lisp file in Sage? The user may have some nonstadard settings in
this file, which could cause unexpected behavior of Sage.

Or will we suppose that only experienced users have maxima-init.lisp
file and they should know what they are doing?

Robert Marik

[marik@um-bc107 /opt/sage-4.2]\$ ./sage -t "devel/sage/sage/interfaces/
maxima.py"
sage -t "devel/sage/sage/interfaces/maxima.py"
**********************************************************************
File "/opt/sage-4.2/devel/sage/sage/interfaces/maxima.py", line 383:
sage: latex(maxima('sin(u) + sinh(v^2)'))
Expected:
\sinh v^2+\sin u
Got:
\sinh v^2+\sin \left(u\right)
**********************************************************************

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

[sage-devel] Re: of Google Groups and spam

Thanks for posting these. Very interesting, IMHO.

On Fri, Oct 30, 2009 at 6:09 AM, Minh Nguyen <nguyenminh2@gmail.com> wrote:
>
> Hi folks,
>
> Just in case you're wondering why spam mails got through occasionally,
> here are some stories that present the moderator's side:
>
>
>
> --
> Regards
> Minh Van Nguyen
>
> >
>

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

[sage-devel] horizontal bar chart

Dear developers,

I found a very easy way of creating a horizontal bar chart, which can
also be easily animated. I wondered if this could be useful for anyone
else, so here is the code:

def hbarplot(a,b):
y1 = 0
y2 = -b[0]
P = polygon([[0,y1],[0,y2],[a[0],y2],[a[0],y1]])
for i in srange(1,len(a)):
y1 = y2
y2 = y2 - b[i]
P += polygon([[0,y1],[0,y2],[a[i],y2],[a[i],y1]])
return P

The first argument is a list of values for the horizontal bar lenghts
and the second is a list of bar thicknesses. The plot will start at
the top and stack the bars negatively to illustrate e.g. soil
profiles, but this could be changed easily.

Example animation:
animate(hbarplot([i,6],[0.5,0.5]) for i in srange(5)).show()

It took me 15 minutes to code this up, while it took me a lot longer
to try out pylab's animations and bar charts before giving up on that.

Cheers
Stan

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

[sage-devel] of Google Groups and spam

Hi folks,

Just in case you're wondering why spam mails got through occasionally,
here are some stories that present the moderator's side:

--
Regards
Minh Van Nguyen

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

[sage-devel] Re: Fine-grained verbosity

On Fri, Oct 30, 2009 at 2:43 AM, daveloeffler <dave.loeffler@gmail.com> wrote:
>
>
>
> On Oct 30, 8:56 am, Kwankyu Lee <ekwan...@gmail.com> wrote:
>> Oh... I missed the parameter "files" of set_verbose(). The parameter
>> already fulfills my wish as in
>>
>> set_verbose(1,files="myprogram.py")
>>
>> Sorry for noise...
>>
>> Kwankyu
>
> There is a serious issue with the "files" parameter though. When
> "verbose" is called, the code tries to work out which file it was
> called from; but its approach to detecting this doesn't spot Cython
> files. If you have per-file verbosity set for file A, and file A calls
> a routine in Cython file B, then you get verbose output from B as well
> even if you don't want it.

Yep, that's a problem. When I wrote the verbose functions, Cython
didn't exist, and I don't think I even used Pyrex then either (I was
using I think SWIG + C++ then).

I don't know whether this problem can be fixed or not. At least the default
could be changed so Cython code does *not* get shown when files!='ALL'.

William

>
> Since the matrix code is mostly Cython and has lots of verbose() calls
> in it, this means that any attempt to run (for example) modular
> symbols code with verbosity on means you drown in messages about
> multimodular echelon form, which makes it next to impossible to spot
> what's wrong with the code you're actually interested in. I've been
> meaning for a while to ask if this can be fixed, but Kwankyu's post
> reminded me.

>
> David
> >
>

--
William Stein
Associate Professor of Mathematics
University of Washington
http://wstein.org

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