[sage-combinat-devel] Re: Bug with the has_coerce_map_from method

2010-07-09 Thread Andrey Novoseltsev
Hi Viviane, I am not a professional in the coercion framework, but I think this it how it is supposed to behave. Coercion morphisms are cached for efficiency, so if you try to define a coercion morphism after the framework has already determined that it does not exist - it gives an error.

Re: [sage-combinat-devel] Re: Question about LatticePolytopeClass

2010-07-10 Thread Andrey Novoseltsev
to #8989 and then look at sage.geometry.cone, since it was modified significantly). Am 09.07.2010 19:35, schrieb Andrey Novoseltsev: [..] I don't agree that elements of LatticePolytope are its integer points. As a set it is a subset of some real space, so usually it is infinite. i don't agree

Re: [sage-combinat-devel] Re: Question about LatticePolytopeClass

2010-07-11 Thread Andrey Novoseltsev
Hi Johannes! On Sun, Jul 11, 2010 at 9:11 AM, Johannes dajo.m...@web.de wrote: I want to derive a new class from latticePolytopes, because i did not want to change the code and i needed the __eq__  (and some more methods) on simplices and i don't want to use external methods using two

[sage-combinat-devel] Incomplete posets

2011-02-13 Thread Andrey Novoseltsev
Hello, While writing an enhancement proposal on http://trac.sagemath.org/sage_trac/ticket/10777 I thought that it could be convenient to create a (finite) poset without specifying its elements but perhaps adding them one-by-one as/ if they are created later. It seems to me that it is not

[sage-combinat-devel] Re: Incomplete posets

2011-02-14 Thread Andrey Novoseltsev
On Feb 14, 9:10 am, Niles nil...@gmail.com wrote: Could one work around this by simply creating a new poset with the elements from the old one and also the new elements?  I guess this would be problematic if there is a lot of overhead in creating the poset in the first place -- is that the

[sage-combinat-devel] Re: Incomplete posets

2011-02-14 Thread Andrey Novoseltsev
OK, I made a ticket: http://trac.sagemath.org/sage_trac/ticket/10783 Andrey -- You received this message because you are subscribed to the Google Groups sage-combinat-devel group. To post to this group, send email to sage-combinat-devel@googlegroups.com. To unsubscribe from this group, send

[sage-combinat-devel] Overriding cartesian_product

2011-03-02 Thread Andrey Novoseltsev
Hello everybody, I would appreciate some input on the following ticket http://trac.sagemath.org/sage_trac/ticket/10809 which constructs Cartesian products of toric varieties as a new toric variety (without remembering the product structure). Currently patches use Cartesian_product for this

[sage-combinat-devel] Re: Incomplete posets

2011-03-03 Thread Andrey Novoseltsev
Hi Nicolas, On Mar 3, 7:00 am, Nicolas M. Thiery nicolas.thi...@u-psud.fr wrote:         Hi Andrey, On Sun, Feb 13, 2011 at 01:30:03PM -0800, Andrey Novoseltsev wrote: While writing an enhancement proposal on http://trac.sagemath.org/sage_trac/ticket/10777 I thought that it could

[sage-combinat-devel] Re: Overriding cartesian_product

2011-03-03 Thread Andrey Novoseltsev
Hi Nicolas, On Mar 3, 6:44 am, Nicolas M. Thiery nicolas.thi...@u-psud.fr wrote:         Hi Andrey, On Wed, Mar 02, 2011 at 09:56:45AM -0800, Andrey Novoseltsev wrote: I would appreciate some input on the following ticket http://trac.sagemath.org/sage_trac/ticket/10809 which constructs

[sage-combinat-devel] Re: Incomplete posets

2011-03-04 Thread Andrey Novoseltsev
On Mar 4, 3:04 am, Nicolas M. Thiery nicolas.thi...@u-psud.fr wrote: I am glad to see that we have the same need and can share the efforts in this direction :-) Btw: are you planning to come to Sage Days 30?        http://wiki.sagemath.org/days30 Cheers,                                

[sage-combinat-devel] Should a one-element poset have a top?

2011-03-05 Thread Andrey Novoseltsev
Hello, I have discovered that a fan consisting only of the origin cannot compute its cone lattice due to the following behaviour: sage: G = DiGraph(1) sage: print G Digraph on 1 vertex sage: P = Poset(G) sage: print P Finite poset containing 1 elements sage: print P.bottom() 0 sage: print

[sage-combinat-devel] Should cones preserve the given ray order?

2011-03-18 Thread Andrey Novoseltsev
Hello! We have a heated debate on http://trac.sagemath.org/sage_trac/ticket/10140 regarding the following issue. When a user writes Cone(rays=[(1,0), (0,1)]) and the internal framework that eliminates unnecessary generators comes up with a cone generated by (0,1) and (1,0) (i.e. same rays but

[sage-combinat-devel] Re: Should cones preserve the given ray order?

2011-06-14 Thread Andrey Novoseltsev
On Jun 14, 9:46 am, Christian Stump christian.st...@gmail.com wrote: Thanks, Nicolas! With three opinions the majority is much more obvious than with two ;-) I recently used cones and got a little confused when my (obviously equal) cones where not equal with C1 == C2, but only isomorphic. I

[sage-combinat-devel] Re: Sage Days in Bobo-Dioulasso debriefing; Sage in developping countries

2012-11-11 Thread Andrey Novoseltsev
Dear Nicolas, Thanks a lot for such a detailed report! Is it possible to have step-by-step instructions for self-replicating USB sticks posted somewhere? I think these may be a great way to use Sage even in developed countries. Last summer I used USB sticks for our summer school, with a hope

[sage-combinat-devel] Re: Russian

2014-01-21 Thread Andrey Novoseltsev
On Monday, 20 January 2014 22:20:10 UTC-7, Anna Clawson wrote: Here is the translation of the document. Anyone who knows Russian is welcome to proofread it! https://drive.google.com/file/d/0B87aVe10sJDAUU8wUjg5Vmo3UDg/edit?usp=sharing Cheers, Anna Awesome! Although I would translate

[sage-combinat-devel] Re: Russian

2014-01-31 Thread Andrey Novoseltsev
On Friday, 31 January 2014 14:39:00 UTC-7, Dima Pasechnik wrote: On 2014-01-19, Christian Stump christi...@gmail.com javascript: wrote: Below my office mate's term for lattice polytope: lattice polytope is целочисленный многогранник (by the way, both polytope and polyhedron

[sage-devel] dynkin_diagram module

2008-01-22 Thread Andrey Novoseltsev
Why the module sage.combinat.dynkin_diagram is not listed on the module index page http://sagemath.org/doc/html/ref/modindex.html ? Andrey --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send

[sage-devel] Re: Summing up a list only *linear*?

2008-03-31 Thread Andrey Novoseltsev
I was also totally confused by the idea to make sum faster than linear, but I think I know where it came from. If you have infinitely (or at least n/2) processors, you can do n/2 additions in one step. Then repeat it with the result and this gives you log_2(n) steps, but on any partucular machine

[sage-devel] Cell splitting/merging in notebook

2008-04-02 Thread Andrey Novoseltsev
Is it possible to realize some convenient and fast (in the sense of keyboard use) cell splitting/merging? It seems to me that now it involves manual copying of a part of code and creating/removing a cell, or editing the text representation. I really liked the ability to do it in Maple (back when

[sage-devel] Re: Cell splitting/merging in notebook

2008-04-02 Thread Andrey Novoseltsev
current (braindead) state.  What hotkeys do you want? On Wed, 2 Apr 2008, Andrey Novoseltsev wrote: Is it possible to realize some convenient and fast (in the sense of keyboard use) cell splitting/merging? It seems to me that now it involves manual copying of a part of code and creating

[sage-devel] Re: Cell splitting/merging in notebook

2008-04-03 Thread Andrey Novoseltsev
I'm fine with these, but actually any fast way will work for me. On Apr 3, 9:17 am, [EMAIL PROTECTED] wrote: What do people think of ctrl-enter to split, and ctrl-backspace to join with previous? --~--~-~--~~~---~--~~ To post to this group, send email to

[sage-devel] Re: notebook features discussion

2008-04-19 Thread Andrey Novoseltsev
How about syntax highlighting in code cells? Also, I think that default line truncation can be improved: sometimes even if a line fits my screen without horizontal scrolling it gets truncated and I need to click on the output (twice) to make it look better. Is it possible to determine the width

[sage-devel] Re: Question about typeset in notebook

2008-05-13 Thread Andrey Novoseltsev
Please try refresh rather than left click (or in addition).  If that fixes the problem, then it might have something to do with trouble getting jsmath to parse the output (i.e., some sort of javascript timing issue). The fix I used before was creating a new cell with the same content and it

[sage-devel] Re: New Sage website

2008-05-13 Thread Andrey Novoseltsev
1) I think that completely white background would be the best. 2) Going to the download page, the first sentence I read is Sage for Microsoft Windows is currently not native available, (and at the first read I actually missed the word native). I don't think it is good to start describing

[sage-devel] Re: The Symbolics Feature Request thread

2008-05-22 Thread Andrey Novoseltsev
Actually, yesterday was the first time I really tried to use Sage for symbolic computations and it was quite frustrating for me. 1) It would be really nice if it was faster. 2) It seems to me that ((x+y)*y).coeff(y^2) and ((x+y)*y).expand().coeff(y^2) should return the same coefficient 1 (while

[sage-devel] Cubic to Weierstrass

2008-05-22 Thread Andrey Novoseltsev
I tried to convert 2*x*y^2 + 2*a5*t*x*y - x^2 + (2*a4 - 8*t^3)*x - 1, where a4, a5, and t are some complex parameters (which I would like to keep as undetermined parameters), to Weierstrass normal form using Nagell's algorithm and was not quite successful since some steps near the end do not

[sage-devel] Re: The Symbolics Feature Request thread

2008-05-22 Thread Andrey Novoseltsev
 pm, Robert Bradshaw [EMAIL PROTECTED] wrote: It almost sounds to me like you'd rather be working in a multivariate   polynomial ring (which will be much, much faster). - Robert On May 22, 2008, at 12:48 PM, Andrey Novoseltsev wrote: Actually, yesterday was the first time I really tried

[sage-devel] Re: New Sage website

2008-05-31 Thread Andrey Novoseltsev
I looked at the new site the second time and liked it much more! Some other ideas/comments: 1) I think that the main page would look better if Our mission is in bold and starts a separate paragraph. 2) Navigation buttons and their labels look great, but sublabels are very small (smaller than

[sage-devel] Re: Fwd: Localization as marketing

2009-12-17 Thread Andrey Novoseltsev
I am also strictly against translating command names. In addition to the above comments, I think that English is better for keywords than some other languages. For example, in Russian words are usually longer, meaning more typing and less stuff fitting one line, and have end-parts linking words in

[sage-devel] Notebook inserts extra stuff - bug?

2009-12-23 Thread Andrey Novoseltsev
Hello, I am not sure if this is something well-known or experienced by others, since I am not sure what to search for in topics or tickets. When I press Shift+Enter in notebook cells, then sometimes (without any system that I can notice) it inserts some extra stuff like keywords, function names,

[sage-devel] Re: Notebook inserts extra stuff - bug?

2009-12-23 Thread Andrey Novoseltsev
, Andrey Novoseltsev novos...@gmail.com wrote: Hello, I am not sure if this is something well-known or experienced by others, since I am not sure what to search for in topics or tickets. When I press Shift+Enter in notebook cells, then sometimes (without any system that I can notice

[sage-devel] Can someone update developers guide?

2010-01-09 Thread Andrey Novoseltsev
Hello, It seems to me that developers guide is a bit out of date (e.g. it has guidelines about adding [with patch, needs review] to tickets on trac) and misses some things that would be nice to have there. I would appreciate if someone can describe how to do the following (in the guide or as a

[sage-devel] Re: Plea for review

2010-01-21 Thread Andrey Novoseltsev
I'll look over the referee patch. Andrey On Jan 21, 10:50 am, mhampton hampto...@gmail.com wrote: OK, I added a referee patch. -Marshall On Jan 21, 9:38 am, William Stein wst...@gmail.com wrote: On Thu, Jan 21, 2010 at 7:32 AM, mhampton hampto...@gmail.com wrote: I would like to

[sage-devel] Re: What is needed to build Sage ?

2010-01-22 Thread Andrey Novoseltsev
I think it would be nice also to have a list (or lists) of stuff necessary to build documentation and have no problems in the notebook. Latex should be present for documentation - what package exactly should be installed on Ubuntu? It is also necessary to install Java for using Jmol, fonts for

[sage-devel] Re: dream machine ideas

2010-01-22 Thread Andrey Novoseltsev
I also think that it would be nice to get the same machines - it is convenient to be able to switch to another machine when another has problems or is heavily loaded. Also, it seems that there are regular fast disk problems - is it possible to get analogs of sage.math /scratch on all machines?

[sage-devel] show and view

2010-02-08 Thread Andrey Novoseltsev
Hello, As of now show and view seem to do the same thing, yet show used to produce displayed equations and I liked it mainly for bigger size of fractions, but also for centering the output. Is there still a possibility to get the old-style behaviour? There was some discussion that show does not

[sage-devel] Re: show and view

2010-02-08 Thread Andrey Novoseltsev
Positive review, thank you! Andrey On Feb 8, 9:52 pm, William Stein wst...@gmail.com wrote: On Mon, Feb 8, 2010 at 8:21 PM, Andrey Novoseltsev novos...@gmail.com wrote: Hello, As of now show and view seem to do the same thing, yet show used to produce displayed equations and I liked

[sage-devel] Parent, ParentWithGens etc.

2010-02-12 Thread Andrey Novoseltsev
Hello, I have started writing a class for Fano toric varieties, and as I understand it should inherit from AmbientSpace. Going further, AmbientSpace derives from ParentWithGens and in the beginning of the corresponding file we see .. note:: This class is being deprecated, see

[sage-devel] Proposed changes for normalize_names in CategoryObject

2010-02-14 Thread Andrey Novoseltsev
Hello, I happened to write a function for producing a list of names for variables before I have found CategoryObject.normalize_names. Naturally, I liked my own function more because it was doing exactly what I wanted. However, it seems to me that some features of my code may be objectively

[sage-devel] Re: Protecting special names against assignation

2010-02-20 Thread Andrey Novoseltsev
I am against such restrictions, what if I don't care about complex numbers and want to use i as an index variable? What if I want e to stand for an edge? When I do want to have i^2=-1, I will write the code appropriately, and if I manage to use the same name for two objects I am working with - I

[sage-devel] Re: Wolfram Research have trademarked Alpha

2010-02-20 Thread Andrey Novoseltsev
to list. Some trademarks associated with this website and service are Wolfram Alpha , Wolfram|Alpha , Wolfram , Alpha , Computational Knowledge Engine , Spikey , Wolfram Mathematica , Mathematica . If trademarking a letter is acceptable, maybe Sage should trademark S, a, g, and e... -- To

[sage-devel] Typeset-LaTeX-Hide broken or changed?

2010-02-24 Thread Andrey Novoseltsev
Hello, Clicking on the left of a cell in the notebook used to cycle wrapped- unwrapped-hidden output for text and typeset-LaTeX code-hidden for typeset output. After upgrade to 4.3.3 in the second case I get typeset-typeset-hidden cycle. Is it a bug or a design decision? I personally liked this

[sage-devel] Re: Proposal for inclusion of lrs as a standard package in Sage

2009-01-17 Thread Andrey Novoseltsev
I would be glad to have standard functions for triangulations! Andrey --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to sage-devel-unsubscr...@googlegroups.com For more options,

[sage-devel] Re: Faster matrix input

2010-03-23 Thread Andrey Novoseltsev
I agree that such a thing would be very convenient. I have found myself always using something like lattice_polytope.read_palp_matrix(r4 5 1 0 0 0 1 0 1 0 0 1 0 0 1 0 1 0 0 0 1 1) for entering matrices since it involves much less typing than usual matrix constructors (except for the function

[sage-devel] Re: pointsize - size : anyone opposed?

2010-03-25 Thread Andrey Novoseltsev
Are the decorators used in these patches (rename_keyword and options) documented somewhere? I cannot find their description. In general, it could be good to have a list of all the decorators available in Sage somewhere (like in the Developer's Guide, perhaps). Thank you, Andrey -- To post to

[sage-devel] Re: 5 times faster latex/view

2010-04-17 Thread Andrey Novoseltsev
Done! On Apr 17, 4:16 pm, Nicolas M. Thiery nicolas.thi...@u-psud.fr wrote:         Hi! I finally found out one of the main reason why latex/view was s slow when displaying graphs with dot2tex and #7004. latex was calling _latex_ twice, and view five times! Now, e.g.     sage: g =

[sage-devel] Returned value introspection

2010-04-18 Thread Andrey Novoseltsev
Suppose I have a scheme S. Then I can type sage: S.ambTAB to get sage: S.ambient_space Then I can do sage: A = S.ambient_space() sage: A.cooTAB to get sage: A.coordinate_ring Is it at all possible to make sage: S.ambient_space().cooTAB yield sage: S.ambient_space().coordinate_ring ? For example,

[sage-devel] __new__ wants more arguments - please help!

2010-04-27 Thread Andrey Novoseltsev
Hello, As a follow-up to http://trac.sagemath.org/sage_trac/ticket/8609, I tried to switch scheme homsets to new Parent. As I understand, since SchemeHomset_generic in schemes/generic/homset.py inherits from HomsetWithBase which inherits from new Parent, everything should already be fine. So I

[sage-devel] Re: __new__ wants more arguments - please help!

2010-04-27 Thread Andrey Novoseltsev
On Apr 27, 10:46 am, Robert Miller r...@rlmiller.org wrote: On Tue, Apr 27, 2010 at 9:40 AM, Andrey Novoseltsev novos...@gmail.com wrote:    sage: loads(X.dumps()) == X      File sage_object.pyx, line 915, in sage.structure.sage_object.loads (sage/structure/sage_object.c:9175

[sage-devel] Is Sage 4.4 released?

2010-04-27 Thread Andrey Novoseltsev
The source for 4.4 is available on sagemath.org and upgrade from 4.4rc0 also finds the new version. However, the upgrade didn't finish successfully and trying to build from scratch on sage.math I get abort: unresolved merge conflicts (see hg

[sage-devel] Re: Is Sage 4.4 released?

2010-04-27 Thread Andrey Novoseltsev
Sorry, looks like I have messed up with copying/moving files. Andrey -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at

[sage-devel] Re: Sage's algorithm names in relation to MATLAB's

2010-05-05 Thread Andrey Novoseltsev
I think that one of the reasons for this difference is absence of a real reason for copying MATLAB names, since Sage is not a free MATLAB. I also don't think that all commercial software package use always the same names for the same things, so making it easier to transition from MATLAB would not

[sage-devel] Re: Help text doesn't wrap

2010-05-07 Thread Andrey Novoseltsev
I think that if the doc-string includes exceptions, the output gets cutoff, but you can see the whole version if you click to the left from the output (which triggers wrap-unwrap-hide cycle with the usual text output). I have also seen cases when the output of something? looks weird with some

[sage-devel] Toric varieties in Sage

2010-05-09 Thread Andrey Novoseltsev
Hi Volker (and sage-devel), I guess face_lattice trac ticket is not the best place for this discussion ;-) What are your goals for toric varieties, at what stage is your work, and when do you want/need to finish it? My answers to these questions. GOAL: have a nice framework for doing all the

[sage-devel] Re: Toric varieties in Sage

2010-05-09 Thread Andrey Novoseltsev
From http://trac.sagemath.org/sage_trac/ticket/8656#comment:6 Comment(by vbraun): I've implemented all the fan/lattice basics, cohomology and Chern clases, Chow ring, divisors, Mori cone. The current status is at [http://www.stp.dias.ie/~vbraun/Sage/], documentation is at

[sage-devel] Re: Toric varieties in Sage

2010-05-09 Thread Andrey Novoseltsev
I've posted my current files on http://sage.math.washington.edu/home/novoselt/toric_varieties/ From a glance at Volker's code above, the most apparent difference in approaches is that I was designing cones and fans to be standalone (with the plan that they should go to sage/geometry eventually),

[sage-devel] How is self handled in the documentation?

2010-05-15 Thread Andrey Novoseltsev
Hello, What exactly does happen to self in docstrings or rather what exactly *should* happen? Is it documented somewhere? It seems to me that in instances of self. (with the dot) self (without the dot) is somehow smartly replaced using context. That is great, but why not change standalone self

[sage-devel] Help needed with TestSuite

2010-05-16 Thread Andrey Novoseltsev
Hello, If I add a new file into Sage without TestSuite(...).run(), then sage -coverage shows an ERROR for this file. Does this mean that a patch without such a test has no chances to be merged? I really hope this is not the case yet... I think that TestSuite is an awesome idea and it did help me

[sage-devel] Re: Help needed with TestSuite

2010-05-16 Thread Andrey Novoseltsev
to be some better instruction on what to do. John On 16 May 2010 17:52, Andrey Novoseltsev novos...@gmail.com wrote: Hello, If I add a new file into Sage without TestSuite(...).run(), then sage -coverage shows an ERROR for this file. Does this mean that a patch without such a test has

[sage-devel] Toric varieties - ready for review (please!)

2010-05-18 Thread Andrey Novoseltsev
Dear developers, I have just posted a series of patches implementing toric varieties in Sage and will be very grateful if someone (or maybe even somemany!) could help reviewing them. There are 3 patches in algebraic geometry slightly modifying schemes modules, 3 small patches for lattice

[sage-devel] Re: Toric varieties - ready for review (please!)

2010-05-18 Thread Andrey Novoseltsev
To add to the previous post, my future plans are: - Make sure that faces enumeration is the same everywhere, especially for vertices and facets. This is relevant for lattice polytopes, polyhedra, cones, and fans. We have had recently to fix some doctests in Polyhedra because of random sorting and

[sage-devel] Re: Toric varieties - ready for review (please!)

2010-05-18 Thread Andrey Novoseltsev
I am confused with the google-group - I posted the second message last night, but I don't see it. And it shows 5 message on the top, but I can only see 4. I don't know if others can see it, but (it seems no, so I'll copy it from a saved file: --- To add to the

[sage-devel] Re: Toric varieties - ready for review (please!)

2010-05-18 Thread Andrey Novoseltsev
On May 18, 11:46 am, Volker Braun vbraun.n...@gmail.com wrote: Hi Andrey, Why not allow arbitrary polytopal toric varieties instead of the resolution of singular fano ones? The larger class still benefits from the lattice polytope description and you can still talk about the anticanonical

Re: [sage-devel] Re: Toric varieties - ready for review (please!)

2010-05-19 Thread Andrey Novoseltsev
of combinatorial formulas to compute Hodge numbers. On May 19, 4:03 am, Andrey Novoseltsev novos...@gmail.com wrote: [...] we can add PCR in the beginning or the end (corresponding to PartialCrepantResolution). Batyrev already defined the abbreviation MPCP resolution = (maximal projective crepant

Re: [sage-devel] Re: Toric varieties - ready for review (please!)

2010-05-19 Thread Andrey Novoseltsev
On Wed, May 19, 2010 at 4:24 AM, Volker Braun vbraun.n...@gmail.com wrote: Hi Andrey, I've looked over your code and I think it would be good to extend the class hierarchy of cones. I'm thinking about Cone Cone_of_fan(Cone)  keeps reference of fan Cone_of_ToricVariety(Cone_of_fan)  keeps

[sage-devel] Re: Toric varieties - design discussion

2010-05-20 Thread Andrey Novoseltsev
Hi Volker, That definitely makes sense, let me think a bit about it and then post the comments/agreements. You cannot pickle functions, so you cannot pass a factory to construct cones (because you may need to have more cones later, so you need to store it). If you apply my cone patch and remove

[sage-devel] Re: Toric varieties - design discussion

2010-05-20 Thread Andrey Novoseltsev
Hi Volker, Fine, I am now convinced that you are right - we do need more subclasses of cones ;-) And probably the same for fans? Since I am still a bit paranoid about speed and memory consumption, what do you think of the following scheme: Make classes EnhancedFan and Enhanced Cone (not exposed

[sage-devel] Re: Toric varieties - design discussion

2010-05-21 Thread Andrey Novoseltsev
On May 21, 5:24 am, Volker Braun vbraun.n...@gmail.com wrote: Hi Andrey, Just to clarify, I only wanted to subclass Cones, but not Fans. The fan is a container class for cones and that doesn't change. In particular, I never felt the need to add any functionality at that level in my code.

[sage-devel] Re: Toric varieties - design discussion

2010-05-21 Thread Andrey Novoseltsev
it would help with the future maintenance. Good point, that would be cleaner and easier! On May 21, 5:13 pm, Andrey Novoseltsev novos...@gmail.com wrote: I especially worry about cone/fan computations that trigger calls to associated lattice polytopes and polyhedra In the long run we

[sage-devel] Can LaTeX of strings be improved?

2010-05-22 Thread Andrey Novoseltsev
Hello, When strings or objects with only _repr_ are typeset, they are just wrapped as a chunk of text. The main problem with it is removing line breaks. Another one - removing indentation. For example, if 123\n 23 is printed, we get 123 23 with 23 right under 23. The typeset version gives 123

[sage-devel] Re: Can LaTeX of strings be improved?

2010-05-22 Thread Andrey Novoseltsev
this makes more sense ;-) Andrey On May 22, 10:07 pm, Minh Nguyen nguyenmi...@gmail.com wrote: Hi Andrey, On Sun, May 23, 2010 at 8:06 AM, Andrey Novoseltsev novos...@gmail.com wrote: Hello, Just so that we are clear... When strings or objects with only _repr_ are typeset, they are just

[sage-devel] Re: Can LaTeX of strings be improved?

2010-05-22 Thread Andrey Novoseltsev
On May 22, 10:17 pm, Robert Bradshaw rober...@math.washington.edu wrote: Though in Sage we use _repr_, which is used by __str__, __repr__ and   _latex_. I think this is a question about the default _latex_ which   does some postprocessing of _repr_. sage: class A(SageObject): :     def

[sage-devel] Re: Make Cephes a standard spkg

2010-05-26 Thread Andrey Novoseltsev
It seems to me that the argument use the right OS was quite often in discussions about Windows port, pointing out also that many people have an old computer where they can put Linux keeping Windows on the main one, if they are so addicted. Well, I never agreed with this approach. Windows is

[sage-devel] Re: Toric varieties - design discussion

2010-05-26 Thread Andrey Novoseltsev
Hi Volker, The first version (already documented and doctested) of toric lattices is on trac: http://trac.sagemath.org/sage_trac/ticket/9062 so you can take a look and comment if something is very bad. It is not quite ready for review yet, but I don't anticipate changing existing code - only

[sage-devel] Re: Toric varieties - design discussion

2010-05-27 Thread Andrey Novoseltsev
Hi Volker, I put a new version of toric lattices patch. Now it should work nicely with plain vectors and matrices, in particular homomorphisms seem to do what they should (there is a simple example in the end of module level documentation). I don't think anymore that there is any need for a

[sage-devel] Re: minimizing time spent in pexpect for Gap interface, vs. #6391

2010-05-28 Thread Andrey Novoseltsev
On May 28, 1:02 pm, Dima Pasechnik dimp...@gmail.com wrote: Another question I would like to know the answer to, what are extra costs of   for i in range(n):      P[i]=gap('BigMat[1+'+str(i)+']') over  P=gap('BigMat') ? I.e. is it much more expensive to get many small chunks as opposed to

[sage-devel] Re: reviews

2010-06-02 Thread Andrey Novoseltsev
As I understand, http://trac.sagemath.org/sage_trac/ticket/3304 should be just closed, not reviewed, since another ticket took care of the issue. Since only release managers should close tickets, I am leaving the ticket as is and posting here. Thank you, Andrey -- To post to this group, send

[sage-devel] Re: Sphinx target search...

2010-06-02 Thread Andrey Novoseltsev
While I have no ideas/suggestions on how to implement it, I think that it is highly desirable to have such a functionality. In addition to simplifying life of those who write doctests with links, it will help to make documentation more stable - if some classes/functions were moved around modules

[sage-devel] Re: Sphinx target search...

2010-06-03 Thread Andrey Novoseltsev
On Jun 3, 6:02 am, Florent Hivert florent.hiv...@univ-rouen.fr wrote: - Should we search the link in all.py or in the local module ? In the latter solution we can only link what is imported in the current module, keeping the doc coherent with the module. Hi Florent, I think it would be better

[sage-devel] Re: sage windows instructions

2010-06-07 Thread Andrey Novoseltsev
Also the file name indicates that it is not only an old version of Sage, but even an alpha-version... On Jun 7, 6:58 am, Jason Grout jason-s...@creativetrax.com wrote: On the website:http://sagemath.org/download-windows.html it says that we need VirtualBox, which is old information, as the

[sage-devel] Re: pushing towards 90% doctest coverage for Sage 5.0

2010-06-10 Thread Andrey Novoseltsev
On Jun 10, 9:41 pm, Jason Grout jason-s...@creativetrax.com wrote: I imagine that after doctest coverage is up to 100% function coverage that there will be a new push to then get the statement coverage up to 100%.  It would be interesting even now to see how much statement coverage lagged

[sage-devel] Re: pushing towards 90% doctest coverage for Sage 5.0

2010-06-11 Thread Andrey Novoseltsev
On Jun 11, 2:46 am, Florent Hivert florent.hiv...@univ-rouen.fr wrote: They can go in separate files, files which, for example, are not included in the reference manual.  The file sage/homology/tests.py is an example.  Each function should have doctests (so the goal is still 100%

[sage-devel] Re: Call for vote: make top-level identity_matrix and zero_matrix constructors return mutable matrices again

2010-06-12 Thread Andrey Novoseltsev
I vote YES, because I think that in most cases when these functions are used the intention is to end up with something similar but not equal to the identity or zero matrix. Andrey -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an

[sage-devel] Unreasonable docfails in symbolic/random_tests.py

2010-06-17 Thread Andrey Novoseltsev
Hello everybody, A while ago I noticed that my *new independent module* on toric varieties causes an error in a really obscure long output for one of the tests in symbolic/random_tests.py. Volker Braun pointed in http://trac.sagemath.org/sage_trac/ticket/8988#comment:9 I think the change in the

[sage-devel] Re: Sage crossref...

2010-06-18 Thread Andrey Novoseltsev
Is it actually possible to build local Python documentation in addition to Sage one and link to it? Because even if all links are correct and everything is working nicely, it means that one has to have an active internet connection for *browsing* the documentation and I think it would be good to

[sage-devel] Re: notebook from sage.math, geom.math

2010-06-23 Thread Andrey Novoseltsev
I have no idea what is wrong, but I have had the same problem for a while (but was too lazy to report it, since I usually use geom anyway). Andrey On Jun 23, 2:36 pm, Robert Miller r...@rlmiller.org wrote: I have an installation of sage-4.4.4.alpha1 on geom.math for which the following command

[sage-devel] Opinions needed - method names for cones and fans

2010-06-23 Thread Andrey Novoseltsev
Hello everybody, Volker and I have some disagreement on names used in http://trac.sagemath.org/sage_trac/ticket/9296 and it would be VERY nice to get other people opinions. I'll try to be short. In toric geometry it is important/convenient to distinguish a lattice and its dual. Standard names

[sage-devel] Re: Opinions needed - method names for cones and fans

2010-06-23 Thread Andrey Novoseltsev
My general two cents: explicit (=long) is better than implicit (=short). However it should be easy for the user to define its own short names. My proposal in the ticket was to add a function that will create short synonims for all such methods, if a user so desires. Of course, if this is done,

Re: [sage-devel] Re: Opinions needed - method names for cones and fans

2010-06-25 Thread Andrey Novoseltsev
On Fri, Jun 25, 2010 at 2:48 AM, Volker Braun vbraun.n...@gmail.com wrote: Ewald's book Combinatorial convexity and algebraic geometry defines the cospan of a (not strictly convex) cone to be its maximal linear subspace. I think we should stick to dual when it comes to lattices since this in

[sage-devel] Re: Need help with coercion

2010-07-10 Thread Andrey Novoseltsev
On Jul 7, 2:51 pm, Simon King simon.k...@nuigalway.ie wrote: Hi Volker! On 7 Jul., 20:30, Volker Braun vbraun.n...@gmail.com wrote: sage: FF = FiniteField(7) sage: P.x = PolynomialRing(FiniteField(7)) sage: x+1 Apparently the problem is in the _element_constructor_: sage: P(1) ...

[sage-devel] Re: The Sage Nagbot

2010-07-11 Thread Andrey Novoseltsev
On Jul 11, 6:38 am, William Stein wst...@gmail.com wrote: Cool.  There are numerous parameters one could imagine a nagbot having.  E.g,. max emails per week, how often messages sent, etc., which should be easily customized by each recipient.   Ideas?  Please suggest them. Wiliam Hi William,

[sage-devel] Re: Scheme extends Parent

2010-07-12 Thread Andrey Novoseltsev
On Jul 12, 10:20 am, Marco Streng marco.str...@gmail.com wrote: Hi all, I'm getting a bit confused about Parent objects and why sage.schemes.generic.scheme.Scheme extends Parent. Schemes are not really containers of anything, right? Calling S.an_element() currently gives a

[sage-devel] Re: Unreasonable docfails in symbolic/random_tests.py

2010-07-13 Thread Andrey Novoseltsev
On Jul 13, 3:37 am, Carl Witty carl.wi...@gmail.com wrote: On Thu, Jun 17, 2010 at 2:18 PM, Volker Braun vbraun.n...@gmail.com wrote: Unsurprisingly, setting the random seed makes the random_expr() always return the same value: sage: set_random_seed(0xdeadbeef) sage: random_expr(5)

[sage-devel] Is symbolic ring a field?

2010-07-15 Thread Andrey Novoseltsev
I guess so: sage: type(SR^3) class 'sage.modules.free_module.FreeModule_ambient_field_with_category' However sage: isinstance(SR, sage.rings.principal_ideal_domain.PrincipalIdealDomain) False and this creates problems in FreeModule_generic_pid constructor. I am working on #9502 and when I

[sage-devel] Re: Is symbolic ring a field?

2010-07-15 Thread Andrey Novoseltsev
...@gmail.com wrote: Hello, On Wed, Jul 14, 2010 at 11:10 PM, Andrey Novoseltsev novos...@gmail.com wrote: sage: isinstance(SR, sage.rings.principal_ideal_domain.PrincipalIdealDomain) False sage: SR.is_field() True and this creates problems in FreeModule_generic_pid constructor. I am

[sage-devel] Re: Unreasonable docfails in symbolic/random_tests.py

2010-07-15 Thread Andrey Novoseltsev
if you could fix this issue, as I have no idea what's going on... Thank you, Andrey On Jul 15, 2:05 pm, Carl Witty carl.wi...@gmail.com wrote: On Tue, Jul 13, 2010 at 6:39 AM, Andrey Novoseltsev novos...@gmail.com wrote: On Jul 13, 3:37 am, Carl Witty carl.wi...@gmail.com wrote: On Thu, Jun

Re: [sage-devel] Re: Unreasonable docfails in symbolic/random_tests.py

2010-07-16 Thread Andrey Novoseltsev
Thank you!!! Andrey On Thu, Jul 15, 2010 at 10:36 PM, Carl Witty carl.wi...@gmail.com wrote: On Thu, Jul 15, 2010 at 1:38 PM, Andrey Novoseltsev novos...@gmail.com wrote: Hi Carl, For example this installation of sage-4.5.alpha1 novos...@sage:/scratch/novoselt/sage-4.5.alpha1/devel/sage

[sage-devel] Re: finding out if something is a valid keyword argument

2010-07-20 Thread Andrey Novoseltsev
Somewhat related to this subject - is it possible to automatically put into documentation parameters that were defined and documented in the base method'? E.g. if I have class A(): def f(self, a=1): INPUT: - ``a`` -- integer ... class B(A): def f(self, b=2, *args, **kwds):

[sage-devel] Citing used Sage components automatically

2011-07-27 Thread Andrey Novoseltsev
I have just looked over PARI citing discussion and recently I had a talk with a developer of a software package X who was concerned that inclusion of X into Sage will mean that people will stop giving credit to X (and this developer in particular ;-)) Sometime ago there were suggestions to somehow

[sage-devel] Re: Using sagetex for large blocks of code

2011-10-25 Thread Andrey Novoseltsev
I think you should put sage: in front of all complete commands and ... in front of continuation lines. I was making multi-line cycles this way. Triple quotes may conflict with the way how SageTeX produces its files. Did you try triple single quotes? ( ' + ' + ' instead of + + ) Andrey On Oct

  1   2   3   4   5   >