[sage-support] Graphics

2010-07-27 Thread Santanu Sarkar
Let a, b,c be the length of three sides of a triangle. How can I draw the triangle using Sage? -- 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 htt

[sage-support] Re: SageTeX compiling errors in TeXShop

2010-07-27 Thread ma...@mendelu.cz
On 27 čnc, 23:45, Katie Johnson wrote: > The problem comes from when I try to add the simple command $ > \sage{2+2}$ to the beginning of the document (right after \maketitle, > for example).  Then I get a very strange error: > > ! Missing \endgroup inserted. > >                \endgroup > l.417

Re: [sage-support] complexity of computations in Z/n*Z

2010-07-27 Thread Robert Bradshaw
On Tue, Jul 27, 2010 at 1:58 PM, Luis Finotti wrote: > Hi, > > I have an algorithm that has pieces that perform computations on Z/ > p^i*Z for different values of i.  I can count the operations for each > piece, but to have an overall complexity, I need to know how the > difference pieces compare.

[sage-support] SageTeX compiling errors in TeXShop

2010-07-27 Thread Katie Johnson
I've spent most of two days trying to get SageTeX to integrate properly with TeXShop (including re-installing all of Sage), but I'm still having some trouble. I haven't gotten farther than compiling the example that comes with SageTeX (in the texmf -> tex -> generic -> sagetex folder). Without ch

[sage-support] complexity of computations in Z/n*Z

2010-07-27 Thread Luis Finotti
Hi, I have an algorithm that has pieces that perform computations on Z/ p^i*Z for different values of i. I can count the operations for each piece, but to have an overall complexity, I need to know how the difference pieces compare. So, can anyone tell me how many bit operations are performed, i

Re: [sage-support] Re: How to deal with wrapper_descriptor / slot wrapper

2010-07-27 Thread Robert Bradshaw
On Tue, Jul 27, 2010 at 1:25 PM, Simon King wrote: > On 27 Jul., 21:30, Simon King wrote: >> Is there no workaround? Say, defining the "method" (or slot method >> wrapper envelop whatever) and explicitly assign an attribute __doc__ >> to it? > > For the record: > AttributeError: attribute '__doc_

[sage-support] Re: How to deal with wrapper_descriptor / slot wrapper

2010-07-27 Thread Simon King
On 27 Jul., 21:30, Simon King wrote: > Is there no workaround? Say, defining the "method" (or slot method > wrapper envelop whatever) and explicitly assign an attribute __doc__ > to it? For the record: AttributeError: attribute '__doc__' of 'method-wrapper' objects is not writable -- To post to

[sage-support] Re: How to deal with wrapper_descriptor / slot wrapper

2010-07-27 Thread Simon King
Hi Robert, On 27 Jul., 21:55, Robert Bradshaw wrote: > While I > would like to be able to introspect functions such as __pow__, I don't > think it's always the best place to put documentation (only power > users will know to check  there) and not worth significant performance > penalties for all

Re: [sage-support] Re: How to deal with wrapper_descriptor / slot wrapper

2010-07-27 Thread Robert Bradshaw
On Tue, Jul 27, 2010 at 12:30 PM, Simon King wrote: > Dear Robert, > > On 27 Jul., 19:55, Robert Bradshaw > wrote: >> This is actually very related to >> >> http://groups.google.com/group/sage-devel/browse_thread/thread/c97d36... > > So, the fact that RingElement uses the category framework means

[sage-support] Re: How to deal with wrapper_descriptor / slot wrapper

2010-07-27 Thread Simon King
Dear Robert, On 27 Jul., 19:55, Robert Bradshaw wrote: > This is actually very related to > > http://groups.google.com/group/sage-devel/browse_thread/thread/c97d36... So, the fact that RingElement uses the category framework means that both the code *and* the documentation are hidden behind laye

Re: [sage-support] How to deal with wrapper_descriptor / slot wrapper

2010-07-27 Thread Robert Bradshaw
On Tue, Jul 27, 2010 at 9:24 AM, Simon King wrote: > Hi! > > I have a Cython class COCH that inherits from RingElement. I define a > method __pow__ for it, and it gets some doc string (which means > tests). > > I thought that such method would be a class_method or whatever. > Instead, I get > sage

[sage-support] How to deal with wrapper_descriptor / slot wrapper

2010-07-27 Thread Simon King
Hi! I have a Cython class COCH that inherits from RingElement. I define a method __pow__ for it, and it gets some doc string (which means tests). I thought that such method would be a class_method or whatever. Instead, I get sage: COCH.__pow__ sage: type(COCH.__pow__) And what's worse, I seem

[sage-support] Re: help defining latex macros

2010-07-27 Thread John H Palmieri
On Jul 26, 4:42 pm, Mike Witt wrote: > On 07/26/2010 04:17:05 PM, John H Palmieri wrote: > > > > > > > On Jul 26, 3:45 pm, Mike Witt wrote: > > > On 07/26/2010 01:24:34 PM, John H Palmieri wrote: > > > > > On Jul 26, 12:59 pm, Mike Witt wrote: > > > > > sage: version() > > > > > 'Sage Version

Re: [sage-support] Building Sage causes

2010-07-27 Thread Dan Drake
On Tue, 27 Jul 2010 at 03:05AM -0700, Daniel Woodhouse wrote: > I have installed Sage4.5 binaries onto my 64bit Ubuntu10.04LTS, > following the instructions given: https://help.ubuntu.com/community/SAGE. > I am going to be using it for development, but when I rebuild sage > using $sage -b I get th

Re: [sage-support] Re: Does sage have support for category theory?

2010-07-27 Thread Alec Battles
Simon Thanks for sending so much great info. Alec -- 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

[sage-support] Re: Does sage have support for category theory?

2010-07-27 Thread Simon King
Hi Alec! Sage has categories, to some extent. But by far not enough! For instance, currently there is no framework to construct an actual functor: The existing functors in Sage take an object and create a new object out of it -- but they do *not* take a morphism and create a new morphism out of i

[sage-support] Building Sage causes

2010-07-27 Thread Daniel Woodhouse
I have installed Sage4.5 binaries onto my 64bit Ubuntu10.04LTS, following the instructions given: https://help.ubuntu.com/community/SAGE. I am going to be using it for development, but when I rebuild sage using $sage -b I get the following error: $ sage ---

Re: [sage-support] Re: VectorSpace with labelled elements ?

2010-07-27 Thread Nathann Cohen
> It sounds like you are just wanting an order on the edges.  If you can > easily compute the index of an edge, you're set (that's the coordinate of > the edge).  However, if your problem does not lend itself to that, it sounds > like the easiest thing to do is to maintain dicts to map between an e

[sage-support] Re: is animate so slow?

2010-07-27 Thread Jason Grout
On 7/25/10 3:49 PM, Maurizio wrote: hi all, I was trying to animate a plot, with only few frames (50). I get a very slow animate: from numpy import linspace t_vec = linspace(0,Tn,50) L = Graphics() v = [] tp = [] Xp = [] Yp = [] for tn in t_vec: tp.append(tn) Xp.append(X.subs(val_dict)

[sage-support] Re: VectorSpace with labelled elements ?

2010-07-27 Thread Jason Grout
On 7/27/10 1:41 AM, Nathann Cohen wrote: Hello everybody I have a small problems with graphs => I would like to be able to talk about a Z/2Z vector space defined over its edges (any set of edges is independent) Of course I can just create a Z/2Z vector space of dimension G.size() (number

Re: [sage-support] Re: Define an action

2010-07-27 Thread Robert Bradshaw
On Tue, Jul 27, 2010 at 12:50 AM, Simon King wrote: > Hi Drenwal, > > On 25 Jul., 10:52, drenwal wrote: >> But, I would prefer to use a more mathematical notation, like Y[k] or >> y...@k or whatever non already used symbol instead of Ac(y,k). > > As Johannes has pointed out, Y[k] is already used,

[sage-support] VectorSpace with labelled elements ?

2010-07-27 Thread Nathann Cohen
Hello everybody I have a small problems with graphs => I would like to be able to talk about a Z/2Z vector space defined over its edges (any set of edges is independent) Of course I can just create a Z/2Z vector space of dimension G.size() (number of edges), but this would later mean that I

[sage-support] Re: Define an action

2010-07-27 Thread Simon King
Hi Drenwal, On 25 Jul., 10:52, drenwal wrote: > But, I would prefer to use a more mathematical notation, like Y[k] or > y...@k or whatever non already used symbol instead of Ac(y,k). As Johannes has pointed out, Y[k] is already used, so, this might not be what you want. But, if it is, overwrite