[sage-devel] Sage: Very suitable for rapid prototyping

2010-09-28 Thread Carl Witty
I am proud to report that Sage has been officially recognized as very suitable for rapid prototyping. Also, Sage is a fine tool for many applications. This recognition is because I won the lightning round (for the rapid prototyping recognition) and got second place in the main contest (for the

[sage-devel] ICMS 2010 video; Sage demo

2010-09-13 Thread Carl Witty
-u.ac.jp/Movies/ms/icms2010/icms2010-video.html . Carl Witty -- 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 http://groups.google.com/group/sage-devel

Re: [sage-devel] Re: ICMS 2010 video; Sage demo

2010-09-13 Thread Carl Witty
On Mon, Sep 13, 2010 at 5:32 AM, Nathann Cohen nathann.co...@gmail.com wrote: I've posted the .sws tohttp://wiki.sagemath.org/Talks.  You can see video of my demo, and (eventually) of all the talks at ICMS 2010, athttp://fe.math.kobe-u.ac.jp/Movies/ms/icms2010/icms2010-video.html. Looks like

Re: [sage-devel] Anyway able to check two lines of inline assembler?

2010-08-23 Thread Carl Witty
On Mon, Aug 23, 2010 at 3:45 PM, Dr. David Kirkby david.kir...@onetel.net wrote: I've created a patch for sympow, which the release manager has agreed to merge in 4.5.3 - in fact, he has kindly made it a blocker!! He is happy with it, but wants someone able to comment on the changes I made to

Re: [sage-devel] Floating point on Intel based OS X systems.

2010-08-20 Thread Carl Witty
On Fri, Aug 20, 2010 at 9:26 PM, Dr. David Kirkby david.kir...@onetel.net wrote: Unless OS X rounds by default to 64-bits, I can't understand how this would have ever worked. Why was it not necessary to change the rounding behavior of an Intel based OS X system? Modern x86 family chips

Re: [sage-devel] How much RAM is needed to build Sage?

2010-08-19 Thread Carl Witty
On Thu, Aug 19, 2010 at 10:35 AM, Dr. David Kirkby david.kir...@onetel.net wrote: Of course I know it depends on swap space, operating system, lots of things, so nobody can give an exact answer, but I'd be interested to know if building Sage on a machine with only 1 GB of RAM is likely to be

[sage-devel] Re: Longest and most pointless Sage build ever?

2010-08-19 Thread Carl Witty
On Tue, Feb 17, 2009 at 8:52 PM, Carl Witty carl.wi...@gmail.com wrote: I have compiled and run Sage 3.2.3 on my T-Mobile G1 cell phone, and large portions of it actually work. Two people have asked me for a copy of my build. Let me emphasize that many doctests failed, and you'd need an ARM

Re: [sage-devel] Sage on Android

2010-08-18 Thread Carl Witty
On Wed, Aug 18, 2010 at 6:47 AM, tuxiano tuxi...@gmail.com wrote: Hi everybody I've tried to search in the archive but couldn't find if Sage is available or will ever available on Android operating system. As far as I know, Android is Linux-based so I was wondering if porting Sage to Android

Re: [sage-devel] Re: sage+bpython

2010-08-17 Thread Carl Witty
On Mon, Aug 16, 2010 at 1:22 PM, Jay jul...@grayvines.com wrote: Hi! Yes, bpython is quite wonderful :). If I try to `easy_install bpython` from within a sage subshell I get ... (Full traceback if you'd like) ImportError: /opt/sage/local/lib/python2.6/lib-dynload/operator.so: undefined

Re: [sage-devel] It is reasonable to change doctest from asinh(1.0) to asinh(2.0)?

2010-08-13 Thread Carl Witty
On Fri, Aug 13, 2010 at 12:08 AM, Dr. David Kirkby david.kir...@onetel.net wrote: How can I add a comment to the doc test, which will not be printed in the documentation? I'd like to add the result from a high-precision computation, so anyone looking at the doctest in future could see what's a

Re: [sage-devel] Next version of alglib.spkg (and some thoughts about debugging)

2010-08-09 Thread Carl Witty
On Mon, Aug 9, 2010 at 1:42 AM, Sergey Bochkanov sergey.bochka...@alglib.net wrote: It  is  somehow connected to patch by Carl Witty which adds ability to work  with  Sage matrices/vectors. This patch works OK when package is used  from  Sage.  But  when  we  run  test suite from spkg-check

Re: [sage-devel] Re: doctest failure with leading zero not printing

2010-08-05 Thread Carl Witty
On Thu, Aug 5, 2010 at 9:44 AM, David Kirkby david.kir...@onetel.net wrote: With all the numerical noise issues I've seen in Sage, the three dots solves its. So if we expect 1.00 but get 1.01 we can change that to 1.0... and the test will pass.

Re: [sage-devel] Re: doctest failure with leading zero not printing

2010-08-05 Thread Carl Witty
On Thu, Aug 5, 2010 at 10:23 AM, David Kirkby david.kir...@onetel.net wrote: BTW, do you have any ideas why the second failure at #9099 might occur sage -t  -long devel/sage/sage/symbolic/expression.pyx ** File

Re: [sage-devel] Re: doctest failure with leading zero not printing

2010-08-05 Thread Carl Witty
On Thu, Aug 5, 2010 at 2:59 PM, Dr. David Kirkby david.kir...@onetel.net wrote: On 08/ 5/10 06:17 PM, Sergey Bochkanov wrote: Hello, Hmmm... Didn't thought about this situation yet. Definitely we can't solve  this  problem  with  any  kind  of  regular  expressions. One possible  solution  

Re: [sage-devel] ALGLIB spkg is released (second version)

2010-08-02 Thread Carl Witty
On Wed, Jul 28, 2010 at 11:38 PM, Sergey Bochkanov sergey.bochka...@alglib.net wrote: My suggestion would be to support Sage vectors and matrices over GF(2), RDF, and CDF (machine floats and complex numbers), as well as numpy arrays and matrices of appropriate types. +1 My proposal is to

Re: [sage-devel] ALGLIB spkg is released (second version)

2010-08-02 Thread Carl Witty
On Wed, Jul 28, 2010 at 11:38 PM, Sergey Bochkanov sergey.bochka...@alglib.net wrote: My proposal is to make * boolean vector/matrix = GF(2), RDF (non-zero = True) * integer vector/matrix = RDF * real = RDF * complex = CDF I've attached a patch to make alglib allow input in the following

Re: [sage-devel] ALGLIB spkg is released (second version)

2010-07-29 Thread Carl Witty
On Thu, Jul 29, 2010 at 10:25 AM, Sergey Bochkanov sergey.bochka...@alglib.net wrote: Hello, Carl. Here  is  some  documentation  about  Python-ALGLIB  interface (called X-interface in this document): http://www.alglib.net/share/2010-07-26-alglib-for-sage/x-interface.pdf Thanks. It  is  

Re: [sage-devel] ALGLIB spkg is released (second version)

2010-07-28 Thread Carl Witty
On Mon, Jul 26, 2010 at 4:43 AM, Sergey Bochkanov sergey.bochka...@alglib.net wrote: Hello! Second  beta  of  ALGLIB.spkg  is  ready.  It  can  be downloaded from http://www.alglib.net/share/2010-07-26-alglib-for-sage/ Cool. Compiles for me, but I didn't try any tests. -- SAGE INTEGRATION

Re: [sage-devel] is and python integers

2010-07-28 Thread Carl Witty
On Wed, Jul 28, 2010 at 7:07 PM, William Stein wst...@gmail.com wrote: On Wednesday, July 28, 2010, kcrisman kcris...@gmail.com wrote: But for True and False, we would rather have if n is True: not if n==True: correct?  I've seen that cause some problems in code I've reviewed, where

Re: [sage-combinat-devel] Python, Sage, categories

2010-07-27 Thread Carl Witty
On Mon, Jul 26, 2010 at 5:03 PM, Carl Witty carl.wi...@gmail.com wrote: I think I've tracked down the underlying problem; it's a subtle Cython performance bug. In VERY limited testing, the following procedure fixes the __getattr__ -related performance issues that I've noticed.  Nicolas

Re: [sage-devel] Making 32-bit PARI pretend to be 64-bit

2010-07-27 Thread Carl Witty
On Tue, Jul 27, 2010 at 2:22 PM, Jeroen Demeyer jdeme...@cage.ugent.be wrote: My working on the big PARI-upgrade (#9343) has sprouted many ideas.  One of these (possibly crazy) ideas is the following: we might manage to some extent to make 32-bit PARI behave like 64-bit PARI.  Because right

Re: [sage-combinat-devel] Python, Sage, categories

2010-07-26 Thread Carl Witty
On Mon, Jul 26, 2010 at 11:53 AM, William Stein wst...@gmail.com wrote: Ironically, extension types are far less affected, if at all: Without:    sage: timeit('ZZ._list',number=10^6)    sage: timeit('ZZ.gens',number=10^6)    sage: timeit('ZZ.an_element',number=10^6)    100 loops, best

Re: [sage-combinat-devel] Python, Sage, categories

2010-07-26 Thread Carl Witty
On Mon, Jul 26, 2010 at 3:36 PM, Nicolas M. Thiery nicolas.thi...@u-psud.fr wrote: I just had a look at the Python sources (in Object/typeobject.c), and it's all about the difference between slot_tp_getattro and slot_tp_getattr_hook, the later being a bit more complicated than the former. I

Re: [sage-devel] Re: Cython and #define

2010-07-26 Thread Carl Witty
On Mon, Jul 26, 2010 at 2:52 AM, Simon King simon.k...@nuigalway.ie wrote: Nonetheless, Cython needs to know what argument type and type of output to expect. Therefore, one has long lgefint(GEN x) in the Cython header. It works (at least for me). I admit that it somehow looks wrong, and

Re: [sage-devel] Re: Scary things in Sage's Digraphs

2010-07-25 Thread Carl Witty
On Sun, Jul 25, 2010 at 10:27 AM, Robert Miller r...@rlmiller.org wrote: On Sun, Jul 25, 2010 at 2:01 PM, Nathann Cohen nathann.co...@gmail.com wrote: Nononon, I understood why there are two copies of what appears to be a zero, and I think it's fine like that ! This is definitely *not*

Re: [sage-devel] doctests for hashes

2010-07-25 Thread Carl Witty
On Sun, Jul 25, 2010 at 6:33 PM, Dan Drake dr...@kaist.edu wrote: Hello, Ticket #9590 fixes a problem with hashing; it looks like the hash value in the doctest is 32- or 64-bit specific, and of course it fails on systems that don't match. The solution there is to change a doctest like      

Re: [sage-devel] doctests for hashes

2010-07-25 Thread Carl Witty
On Sun, Jul 25, 2010 at 8:11 PM, Dan Drake dr...@kaist.edu wrote: On Sun, 25 Jul 2010 at 07:11PM -0700, Carl Witty wrote: Hmm... looks like the current state of affairs is a mess.  Looking through the 'def __hash__' grep hits in sage/rings, there are quite a few of each of the following: 1

Re: [sage-combinat-devel] Python, Sage, categories

2010-07-24 Thread Carl Witty
On Fri, Jul 23, 2010 at 1:05 PM, William Stein wst...@gmail.com wrote: The categories implementation as it is in Sage must be changed or removed.  There, I got your attention. A few months ago some code was added to Sage by the combinat folks called categories.  I recently learned ObjectiveC,

Re: [sage-devel] Re: Sorting vertices of a graph

2010-07-24 Thread Carl Witty
On Sat, Jul 24, 2010 at 11:54 AM, Rob Beezer goo...@beezer.cotse.net wrote: So it is a verb.  ;-) Looks like similar comments apply to   edges(). I'm thinking that optionally passing in a comparison function would be a nice thing to add - a minor convenience, but also it would drive home

Re: [sage-devel] arithmetic with True and False

2010-07-24 Thread Carl Witty
On Sat, Jul 24, 2010 at 2:29 PM, Burcin Erocal bur...@erocal.org wrote: Hi, At Sage Days 24, I learned that Python allows the user to do arithmetic with bools: In [1]: 5+True Out[1]: 6 In [2]: True + False Out[2]: 1 In [3]: 5+False Out[3]: 5 Sage seems to follow this convention as

Re: [sage-devel] What went wrong with this build of IML?

2010-07-23 Thread Carl Witty
On Fri, Jul 23, 2010 at 3:45 AM, Dr. David Kirkby david.kir...@onetel.net wrote: I just tried to build Sage, and got a failure with building IML. See log here. http://boxen.math.washington.edu/home/kirkby/iml-1.0.1.p12.log As soon as I restarted make again, so the build completed ok. Well,

Re: [sage-devel] strange symbolics/import problem: cannot import SR with #9502

2010-07-22 Thread Carl Witty
On Thu, Jul 22, 2010 at 5:20 PM, Dan Drake dr...@kaist.edu wrote: Hello, Ticket #9502, when applied to 4.5.2.alpha0, prevents Sage from even starting -- the result is ImportError: cannot import name SR, even though the patch at #9502 barely touches the symbolics code, and does so in a way

Re: [sage-devel] sage -pkg ?

2010-07-20 Thread Carl Witty
On Tue, Jul 20, 2010 at 7:37 AM, John Cremona john.crem...@gmail.com wrote: I am having trouble with sage -pkg to make a new spkg from a directory my-spkg/.  (I have done this before).  Am I doing something stupid? After typing sage -pkg my-spkg nothing apparently happens (no new prompt)

Re: [sage-devel] Re: Suggested spkg: Modelica

2010-07-20 Thread Carl Witty
On Tue, Jul 20, 2010 at 2:46 PM, Vincent D 20100.delecr...@gmail.com wrote: Jmodelica seems to be very interesting... but from http://www.jmodelica.org/page/14 (or see the copy below) they argue that the software is their property (is that a problem for inclusion in Sage?). On the other hand

Re: [sage-devel] sage -b in parallel?

2010-07-20 Thread Carl Witty
On Tue, Jul 20, 2010 at 9:46 PM, Dan Drake dr...@kaist.edu wrote: Hello all, When building from source, I can set MAKE and have the Sage library build in parallel. Is there a way I can do the same thing when using sage -b? In analogy to sage -t and sage -tp, it would be nice to have sage

Re: [sage-devel] graph_plot.py : Image width or height is zero in IHDR

2010-07-17 Thread Carl Witty
On Sat, Jul 17, 2010 at 5:57 AM, Robert Miller r...@rlmiller.org wrote: Although http://trac.sagemath.org/sage_trac/ticket/5906 was supposed to eliminate this problem for good, sometimes random (i.e. spring-layout) algorithms seem to trigger it, in particular when a short path happens to

Re: [sage-devel] ATLAS - proposal to allow a threaded build.

2010-07-16 Thread Carl Witty
On Fri, Jul 16, 2010 at 4:34 PM, Dr. David Kirkby david.kir...@onetel.net wrote: How does this sound. 1) We add an environment variable SAGE_ATLAS_THREADS 2) If unset, then the behavior is unchanged, so we build an unthreaded ATLAS. 3) If set to auto: $ export SAGE_ATLAS_THREADS=auto

Re: [sage-devel] Should there be some *good* examples on notebook?

2010-07-15 Thread Carl Witty
On Tue, Feb 23, 2010 at 1:14 PM, Robert Bradshaw rober...@math.washington.edu wrote: On Feb 23, 2010, at 8:39 AM, Dr. David Kirkby wrote: If one sets up a Sage server for public use, there is the opportunity for someone to publish worksheets, there is a section: Browse published Sage

Re: [sage-devel] Should there be some *good* examples on notebook?

2010-07-15 Thread Carl Witty
On Thu, Jul 15, 2010 at 1:27 PM, Carl Witty carl.wi...@gmail.com wrote: One very simple change might be easier to implement/use.  How about if there were both a share button and a publish button, and these went in to separate sections?  I'm guessing that people asking for help with an error

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

2010-07-15 Thread Carl Witty
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-main$ hg qapplied trac_9502_basis_parent_bug_in_FreeModule.patch

Re: [sage-devel] global options for python

2010-07-14 Thread Carl Witty
On Wed, Jul 14, 2010 at 2:43 PM, Mike Hansen mhan...@gmail.com wrote: On Wed, Jul 14, 2010 at 2:31 PM, Johannes dajo.m...@web.de wrote: i want to check which part of the sagecode makes problems when trying to port it to python 3.x. For that, I want want to build it with the '-3' option, but i

Re: [sage-devel] Re: Vote on making GNU patch a standard package

2010-07-14 Thread Carl Witty
On Sat, Jul 3, 2010 at 6:27 AM, Volker Braun vbraun.n...@gmail.com wrote: I would propose a mercurial patch queue in the spgk root directory. Then sage -pkg simply checks that either all patches in the queue are applied or that there exists an old-style /patches directory and no queue. Since

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

2010-07-13 Thread Carl Witty
set_random_seed(0) before testing every docstring, so this shouldn't be necessary. Carl Witty -- 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 http

Re: [sage-devel] Re: R graphics on the command line

2010-07-13 Thread Carl Witty
On Thu, Jul 1, 2010 at 8:36 AM, kcrisman kcris...@gmail.com wrote: On Jul 1, 10:30 am, Jason Grout jason-s...@creativetrax.com wrote: Is there an easy way to make this work? % sage -R R version 2.10.1 (2009-12-14) Copyright (C) 2009 The R Foundation for Statistical Computing ISBN

Re: [sage-devel] Re: The Sage Nagbot

2010-07-13 Thread Carl Witty
On Sun, Jul 11, 2010 at 5: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. It

Re: [sage-devel] Re: Randomised testing against Mathematica

2010-07-12 Thread Carl Witty
I realize this thread is 4 months old, but let me respond to this one technical question: On Thu, Mar 4, 2010 at 2:10 AM, Simon King simon.k...@nuigalway.ie wrote: Hi! On Mar 4, 8:24 am, Robert Bradshaw rober...@math.washington.edu wrote: I believe there is also some randomized testing that

Re: [sage-devel] Re: Multiplying inequality by negative number

2010-07-11 Thread Carl Witty
help us decide how to represent and print a*(xy). sage: qepcad('[a /= 0 == [x y == [ [a x a y /\ a 0] \/ [a x a y /\ a 0] ] ] ]', vars=('a','x','y')) TRUE Carl Witty has (unreleased) Sage code for doing such things.  We also have an optional spkg for qepcadb, which computes such things

Re: [sage-devel] Re: Default representation of intervals

2010-07-10 Thread Carl Witty
Sorry to be so late (10 months late!) in responding to this; I'm getting back to Sage development and I'm reading through my sage-devel archives. Dirk, I don't know if you still care about this... I'm the original author of the code (and documentation) in question. I basically made up the

Re: [sage-devel] Re: bool() on an inequality

2010-07-10 Thread Carl Witty
(Yes, I realize I'm responding to an 8-month-old email.) On Wed, Nov 11, 2009 at 12:38 PM, kcrisman kcris...@gmail.com wrote: It would be worth trying this out in Maxima.  If Maxima can do it, we can try to expose more stuff; if not, we'll have to return to other things if people really need

[sage-devel] Re: Typesetting regression in Sage-4.0

2009-06-10 Thread Carl Witty
On Tue, Jun 9, 2009 at 6:08 PM, Golam Mortuza Hossaingmhoss...@gmail.com wrote: Hi, On Tue, Jun 9, 2009 at 9:45 PM, Jason Groutjason-s...@creativetrax.com wrote: (4) Should we switch to old maxima format for diff? Can you clarify with an example what you mean?  In other words, can you

[sage-devel] Re: change_ring returns self or a copy of self, depending on R

2009-06-04 Thread Carl Witty
On Thu, Jun 4, 2009 at 4:36 PM, Jason Grout jason-s...@creativetrax.com wrote: It seems confusing and inconsisent that for a matrix m, m.change_ring(R) returns m when R==self.base_ring(), but otherwise returns a copy of m (coerced to the right ring). If you always just do new_mat =

[sage-devel] Re: Sage 4.0 release plan ; categories

2009-05-26 Thread Carl Witty
On Mon, May 25, 2009 at 7:06 PM, Nicolas M. Thiery nicolas.thi...@u-psud.fr wrote: Adding a couple calls like:        register_unpickle_override('sage.categories.category', 'Sets', Sets) did the trick (thanks Carl!).  By the way, where in the Sage source tree should I put those? Well,

[sage-devel] Re: sage-4.0.rc0 - division bug on second and subsequent evaluation of cell?

2009-05-24 Thread Carl Witty
On Fri, May 22, 2009 at 2:00 PM, Nick Alexander ncalexan...@gmail.com wrote: We do this to avoid the (large) overhead of re-creating constants in the bodies of loops, functions, etc. Perhaps we need to detect the Integer=xxx line explicitly? Doing this accurately is equivalent to the

[sage-devel] Re: Complex interval fields

2009-05-13 Thread Carl Witty
On Wed, May 13, 2009 at 11:02 AM, Robert Bradshaw rober...@math.washington.edu wrote: I recently noticed that complex interval fields have a very different notion of equality than real interval fields. For RIF, a != b if a is *definitely* not equal to b, but CIF just compares endpoints. I

[sage-devel] Re: loads(dumps(G)) for G a graphics object

2009-05-07 Thread Carl Witty
On Thu, May 7, 2009 at 7:01 AM, kcrisman kcris...@gmail.com wrote: I am hoping to help the push to 75% by adding some doctests to some of the plotting primitives.  But for some reason, the following always occurs: sage: G = some graphics object sage: G == loads(dumps(G)) False

[sage-devel] Re: strange rounding with SymbolicArithmetic

2009-05-06 Thread Carl Witty
On Wed, May 6, 2009 at 2:20 AM, Yann yannlaiglecha...@gmail.com wrote: Just for the record, isn't the following a bug? sage: p=RealIntervalField(4)(3.1) sage: p.str(style='brackets') '[3.00 .. 3.25]' sage: p 4.? It's a deliberate design decision. To quote from real_mpfi.pyx:

[sage-devel] Re: strange rounding with SymbolicArithmetic

2009-05-06 Thread Carl Witty
On Wed, May 6, 2009 at 1:46 PM, Yann yannlaiglecha...@gmail.com wrote: In other words, sage: RealIntervalField(4)(0, 1) 1.? prints as the interval [0 .. 2], rather than [-1 .. 1], because IMHO it is useful to be able to know that an interval is nonnegative; and we do this by always picking

[sage-devel] Re: strange rounding with SymbolicArithmetic

2009-05-06 Thread Carl Witty
On Wed, May 6, 2009 at 2:16 PM, Yann yannlaiglecha...@gmail.com wrote: or print the error digit 4.?1 (expicit is better than implicit, etc :) ) Well, again this was an explicit decision; the thinking was that if somebody saw 1.234567? they might be able to guess approximately what it means

[sage-devel] Re: documentation issues

2009-04-24 Thread Carl Witty
On Fri, Apr 24, 2009 at 5:36 AM, Pat LeSmithe qed...@gmail.com wrote: chris wuthrich wrote:  * In one of my files i have a line power_series = series. This produces the full docstring of series to appear twice in the documentation, once under series and once under power_series. How can I

[sage-devel] Re: documentation issues

2009-04-23 Thread Carl Witty
On Thu, Apr 23, 2009 at 9:19 PM, Jason Grout jason-s...@creativetrax.com wrote: Anyone know where the CSS file is?  The color is set in a default.css file, but the only default.css files I see are in _static directories, which sounds like they are automatically generated somehow. It comes

[sage-devel] Re: programming: define a new function

2009-04-22 Thread Carl Witty
On Wed, Apr 22, 2009 at 3:35 PM, Tim Lahey tim.la...@gmail.com wrote: The problem arises with all the different integration systems. Usually some kind of simplification is needed on the integral returned, even if there aren't multiple solutions. This complicates the testing procedure since

[sage-devel] Re: programming: define a new function

2009-04-22 Thread Carl Witty
On Wed, Apr 22, 2009 at 3:59 PM, Tim Lahey tim.la...@gmail.com wrote: On Wed, Apr 22, 2009 at 6:54 PM, Carl Witty carl.wi...@gmail.com wrote: Would it be better to test the results numerically?  (For instance, evaluate the integral returned and the desired result at 100 random points

[sage-devel] Re: programming: define a new function

2009-04-19 Thread Carl Witty
On Sun, Apr 19, 2009 at 7:44 AM, Maurizio maurizio.gran...@gmail.com wrote: Carl, I took advantage of your suggestion, even though I assume I can't still go through the whole process with the current gcd capabilities in Pynac. But before than that, I'd like to point out something strange I

[sage-devel] Re: programming: define a new function

2009-04-18 Thread Carl Witty
On Thu, Apr 16, 2009 at 3:43 PM, Maurizio maurizio.gran...@gmail.com wrote: Finally, even assuming that I can get the right answer from this, which is the recommended way to get the roots of an equation given by a univariate polynomials == 0? This is supposed to be the next step of the

[sage-devel] Re: Adding a trivial docstring confuses testing

2009-04-18 Thread Carl Witty
On Tue, Apr 14, 2009 at 11:57 AM, John H Palmieri jhpalmier...@gmail.com wrote: I figured out how to fix the problem, although I still don't know why adding a docstring should cause it. To fix it: the docstring for print_or_typeset contains the lines ... Well, I can tell you why adding a

[sage-devel] Re: Adding a trivial docstring confuses testing

2009-04-18 Thread Carl Witty
On Sat, Apr 18, 2009 at 2:46 PM, William Stein wst...@gmail.com wrote: I posted a patch so that (1) doctests are ran in the same order as the file (2) doctests can be run in random order (3) doctests can be run in random order specified by a seed Carl, maybe you can referee it:  

[sage-devel] Re: programming: define a new function

2009-04-18 Thread Carl Witty
On Sat, Apr 18, 2009 at 2:46 PM, Maurizio maurizio.gran...@gmail.com wrote: Could you be clearer? As I told, I'm not familiar with rings. I don't even know the meaning of the argument of GF (I took the number 5 from an example I see in sage-support group, I think). Do you think that QQ []

[sage-devel] Re: programming: define a new function

2009-04-18 Thread Carl Witty
On Sat, Apr 18, 2009 at 6:04 PM, Maurizio maurizio.gran...@gmail.com wrote: QQ is the rational numbers (fractions).  QQbar is the algebraic closure of QQ; this means it includes every complex number which is the root of a polynomial with rational coefficients.  So it includes things like

[sage-devel] Re: programming: define a new function

2009-04-18 Thread Carl Witty
On Sat, Apr 18, 2009 at 6:55 PM, William Stein wst...@gmail.com wrote: First problem with QQbar: it seems that resultant() doesn't like it, because it is not able to convert it to a Singular ring (this is the error, I'm not attaching all the output, tell me if you need it) TypeError: no

[sage-devel] Re: .subs(locals()) causes problems

2009-04-17 Thread Carl Witty
On Thu, Apr 9, 2009 at 12:22 AM, Stan Schymanski schym...@gmail.com wrote: Dear all, I encountered some mysterious problems earlier when I used .subs(locals ()), where some global variables such as pi and e were lost (see. e.g. thread

[sage-devel] Re: Notebook problem with sympy

2009-04-07 Thread Carl Witty
On Tue, Apr 7, 2009 at 12:16 PM, Brian Granger ellisonbg@gmail.com wrote: Ahh, that makes sense.  It is the sympy.python thing that causes the problem.  This hack seems to work fix the issue in the notebook: import sympy sympy.sage_python = sympy.python del sympy.python from sympy

[sage-devel] Re: approximation of pi bug

2009-04-05 Thread Carl Witty
On Sun, Apr 5, 2009 at 12:33 AM, jeffblakeslee jeffb...@gmail.com wrote: Here's how I got it.  Ctrl-c after a couple seconds on the first one, and then try the next. -- | SAGE Version 3.0.6, Release Date: 2008-07-30          

[sage-devel] Re: Sage's trac dead slow or completely unresponsive

2009-04-04 Thread Carl Witty
On Sat, Apr 4, 2009 at 6:53 PM, mabshoff mabsh...@googlemail.com wrote: Hello folks, for the last couple hours Sage's trac has been very slow or completely unresponsive. This is caused by the MS as well as Yahoo search engines hammering the website (as can be seen by the proxy error log as

[sage-devel] Re: syntax for creating symbolic functions

2009-03-29 Thread Carl Witty
On Sun, Mar 29, 2009 at 5:27 AM, Burcin Erocal bur...@erocal.org wrote:    * We raise an error whenever a function object is specified without      variables. Comments? +1 for raising an error. Carl --~--~-~--~~~---~--~~ To post to this group, send email to

[sage-devel] Re: pynac switch todo list

2009-03-29 Thread Carl Witty
On Sun, Mar 29, 2009 at 4:13 PM, Rob Beezer goo...@beezer.cotse.net wrote: So is the following *hypothetical* behavior not possible (or not desirable)? sage: preparse(  'differentiate(y^3, y)' ) '_ = var(y); differentiate(y**Integer(3), y)' If such a thing were indeed possible, I think it

[sage-devel] Re: Custom inline operators in python

2009-03-28 Thread Carl Witty
On Sat, Mar 28, 2009 at 5:28 AM, Jason Grout jason-s...@creativetrax.com wrote: Aha, the one custom infix operator that I know of in Sage. In the backslash operator and in the article posted, the rmul only stored the argument and the __mul__ only performed the operation.  Are you always

[sage-devel] Re: Custom inline operators in python

2009-03-28 Thread Carl Witty
On Sat, Mar 28, 2009 at 10:37 AM, Florent Hivert florent.hiv...@univ-rouen.fr wrote: I also like the following one because it has a very high precedence and also because it reminds XML tags   [1,2,3]  foo  [1,2,3] That one is nice; it's very pretty. Unfortunately, it doesn't work with the

[sage-devel] Re: rich comparision for elements

2009-03-28 Thread Carl Witty
On Sat, Mar 28, 2009 at 10:50 AM, Martin Raum martin.r...@matha.rwth-aachen.de wrote: Are you aware of any discussion about what should be comparable? Otherwise I will work our something and post it to Trac. I think this is the way to do it, isn't it? People have specifically complained about

[sage-devel] Re: quick reference

2009-03-28 Thread Carl Witty
On Sat, Mar 28, 2009 at 7:59 PM, William Stein wst...@gmail.com wrote: Hi, I created a new 2-page Sage quick reference based on the one Peter Jipsen made a while ago. http://sage.math.washington.edu/home/wstein/patches/quickref.pdf It's different than Peter's because it has some pictures

[sage-devel] Re: Python Performance Improvement

2009-03-27 Thread Carl Witty
On Fri, Mar 27, 2009 at 4:35 PM, Bill Hart goodwillh...@googlemail.com wrote: Not to press the point, but isn't: Our long-term proposal is to replace CPython's custom virtual machine with a JIT built on top of LLVM, while leaving the rest of the Python runtime relatively intact. the

[sage-devel] Re: sage-4.0

2009-03-26 Thread Carl Witty
On Wed, Mar 25, 2009 at 10:13 PM, William Stein wst...@gmail.com wrote: 3. I would also like to see the default symbolics switch from maxima-based to pynac, which would I think really clearly justify the switch to 4.0, since it will have a *dramatic* impact on the usability of Sage by many

[sage-devel] Re: ambiguous binomial

2009-03-25 Thread Carl Witty
On Wed, Mar 25, 2009 at 4:42 PM, Dan Drake dr...@kaist.edu wrote: On Wed, 25 Mar 2009 at 03:05PM -0700, Henryk Trappmann wrote: I just encountered the ambiguouty: binomial(-1.0,2) == 1.0 binomial(-1,2) == 0 do we need 2 diferent names? I think the second form is also needed somewhere.

[sage-devel] Re: plot float arguments

2009-03-22 Thread Carl Witty
On Sun, Mar 22, 2009 at 3:55 AM, Henryk Trappmann bo198...@googlemail.com wrote: Another evil example: parametric_plot((lambda x: arctan(x),lambda x: arctan(x)**2), (-1000,1000)) It seems that the plot algorithm is somehow deficient in those cases. In both cases, it's plotting points

[sage-devel] Re: local html documentation missing trailing /index.html

2009-03-19 Thread Carl Witty
On Wed, Mar 18, 2009 at 11:40 PM, Jan Groenewald j...@aims.ac.za wrote: Hi I did sage -docbuild all html to provide local documentation on each of 100 PCs on which I image from a central server. It is a nice way to provide a lab in a low-bandwidth environment with sage and sage docs

[sage-devel] Re: SAGE possible improvement

2009-03-19 Thread Carl Witty
On Thu, Mar 19, 2009 at 3:45 PM, Maurizio maurizio.gran...@gmail.com wrote: For example, how does SAGE generate an instance of sage.rings.integer.Integer? I hope this can help me. Well, I can at least answer this question. When you type at the sage: prompt, or in the notebook, the input is

[sage-devel] Re: completing the doc changeover

2009-03-18 Thread Carl Witty
On Wed, Mar 18, 2009 at 5:35 AM, John Cremona john.crem...@gmail.com Therefore (if I am right)  there needs to be a planned procedure for completing the ReSTification of Sage.  For a start, is there anywhere a list showing which files have not yet been converted? You can generate such a list

[sage-devel] Re: what TeX macros should be available for docstrings? [was Re: LaTeX in docstrings]

2009-03-18 Thread Carl Witty
On Wed, Mar 18, 2009 at 6:28 PM, John H Palmieri jhpalmier...@gmail.com wrote: This is a very interesting idea, and I think I can do it for ZZ, QQbar, etc., but I don't know how to deal with GF(p).  That is, in docstrings, you presumably want GF(p) to appear as is, while to evaluate

[sage-devel] Re: Introduction with Time

2009-03-17 Thread Carl Witty
On Mon, Mar 16, 2009 at 9:58 PM, J Elaych microsc...@gmail.com wrote: Also, I built sage-3.4 from source on 64bit Ubuntu 8.10 AMD XP2 with 'export MAKE=make -j2' and I have to say that you folks have done an amazing job in that it all just built.   Not so lucky with some 'sage - i' commands,

[sage-devel] Re: LaTeX in docstrings

2009-03-17 Thread Carl Witty
On Tue, Mar 17, 2009 at 9:35 AM, John H Palmieri jhpalmier...@gmail.com wrote: Do we have any conventions or standards for the use of LaTeX in docstrings?  Consider this:    r    This computes the integral homology `H_d(X, ZZ)` of `X` in dimension `d`.     versus    r    This

[sage-devel] Re: LaTeX in docstrings

2009-03-17 Thread Carl Witty
On Tue, Mar 17, 2009 at 9:59 AM, Martin Albrecht m...@informatik.uni-bremen.de wrote: On Tuesday 17 March 2009, Carl Witty wrote: My vote would be for `H_d(X, \ZZ)` (for easier typing), combined with some sort of LaTeX-to-plain-text processing to change \ZZ to Z or ZZ (I'm not sure which

[sage-devel] Re: LaTeX in docstrings

2009-03-17 Thread Carl Witty
On Tue, Mar 17, 2009 at 11:10 AM, John H Palmieri jhpalmier...@gmail.com wrote: I think \ZZ is a good option, too.  Does anyone know if the file $SAGE_ROOT/devel/sage/doc/common/macros.tex has any role, currently? I'm pretty sure it doesn't. (I searched through the whole sage/doc tree for the

[sage-devel] Re: aftermath of Sage Days 14 (was: hyperelliptic curve constructor)

2009-03-17 Thread Carl Witty
On Tue, Mar 17, 2009 at 11:28 AM, Justin Walker jus...@mac.com wrote: On Mar 17, 2009, at 10:07 AM, Nicolas M. Thiery wrote: Just a mini-warning so that we don't stomp on each other's foot: I made a couple very minor changes in the schemes code for the categories (essentially in the

[sage-devel] Re: what TeX macros should be available for docstrings? [was Re: LaTeX in docstrings]

2009-03-17 Thread Carl Witty
On Tue, Mar 17, 2009 at 4:46 PM, William Stein wst...@gmail.com wrote: On Tue, Mar 17, 2009 at 4:41 PM, John H Palmieri jhpalmier...@gmail.com wrote: So I think it's easy to implement TeX macros into Sage: see http:// trac.sagemath.org/sage_trac/ticket/. What macros should we

[sage-devel] Re: Compiling the doc...

2009-03-16 Thread Carl Witty
On Mon, Mar 16, 2009 at 10:46 AM, mabshoff mabsh...@googlemail.com wrote: On Mar 16, 10:37 am, mabshoff mabsh...@googlemail.com wrote: SNIP But strangely enough when I run the documentation build I run into the same issue you described. I am poking around to see what is happening ...

Re: [sage-combinat-devel] Re: [sage-devel] Re: Algebras with several bases, aka abstract parents with several concrete representations

2009-03-15 Thread Carl Witty
On Sat, Mar 14, 2009 at 11:42 PM, Nicolas M. Thiery nicolas.thi...@u-psud.fr wrote: In fact, I'd love to be able to do: from SymmetricFunctions(QQ).shorthands import * Furthermore, providing the user with (optional but easy to load) shorthands promotes their standardization among all

[sage-devel] Fedora 10 binary of Sage 3.4 doesn't work

2009-03-14 Thread Carl Witty
The tar file http://www.sagemath.org/bin/linux/64bit/sage-3.4-linux-Fedora_release_10_Cambridge-x86_64-Linux.tar.gz is missing big chunks of Sage (for instance, there's nothing in local/lib/python2.5/site-packages/Jinja*). (The tar file is about 40MB smaller than other 64-bit Linux builds, so

[sage-devel] deprecating calling of symbolic expressions without variable names

2009-03-14 Thread Carl Witty
As discussed at http://groups.google.com/group/sage-devel/browse_thread/thread/b1a03f8fc8ae8fcd/553773d7ba600ae7#553773d7ba600ae7 , I'm writing a patch to deprecate calling symbolic expressions without variable names. In the course of writing the patch, and subsequent discussions with Jason and

[sage-devel] Re: deprecating calling of symbolic expressions without variable names

2009-03-14 Thread Carl Witty
On Sat, Mar 14, 2009 at 10:49 AM, William Stein wst...@gmail.com wrote: On Sat, Mar 14, 2009 at 10:29 AM, Carl Witty carl.wi...@gmail.com wrote: 1) Piecewise functions: With my initial patch,  sage: f = Piecewise([[(-1,1),1/2+x-x^3]]) doesn't work (that is, you get deprecation errors when

[sage-devel] Re: deprecating calling of symbolic expressions without variable names

2009-03-14 Thread Carl Witty
On Sat, Mar 14, 2009 at 11:18 AM, Jason Grout jason-s...@creativetrax.com wrote: William Stein wrote: Well then we disagree.  There is a very standard convention in math to have the x axis in one spot, then the y-axis. What happens when you have variables u and v?  Or a and b?  Or t and s

[sage-devel] Re: SAGE possible improvement

2009-03-14 Thread Carl Witty
On Sat, Mar 14, 2009 at 1:21 AM, Jason Grout jason-s...@creativetrax.com wrote: Maurizio wrote: With this, I'm not proposing this package over others (for example, Unum looks very mature, but outdated), I'm just asking if one of you can spend some minutes to review our trac ticket about

  1   2   3   >