Re: [sage-devel] Anything like Mathematica's TrigReduce?

2010-04-25 Thread Mike Hansen
On Sun, Apr 25, 2010 at 1:39 PM, Dr. David Kirkby wrote: > I can do the following in Mathematica. > > In[1]:= TrigReduce[ Sin[x] Cos[y]] > >        Sin[x - y] + Sin[x + y] > Out[1]= --- >                   2 > > Is there a way to get the same result in Sage? There is a trig_re

[sage-devel] Anything like Mathematica's TrigReduce?

2010-04-25 Thread Dr. David Kirkby
I can do the following in Mathematica. In[1]:= TrigReduce[ Sin[x] Cos[y]] Sin[x - y] + Sin[x + y] Out[1]= --- 2 Is there a way to get the same result in Sage? I'm trying to model and RF mixer, which basically multiples two sinusoids. It creates p

Re: [sage-devel] Sage Tutorial at Amazon.com

2010-04-25 Thread Dr. David Kirkby
David Joyner wrote: The new version is available on amazon.com. (Search for "stein sage 4.3.5" and you'll get it.) It does not seem to be on amazon.co.uk (yet?). I'm pretty sure it will not be on Amazon UK - full stop. This is one of the regular grips of people on the Create Space forums. Da

Re: [sage-devel] Sage Tutorial at Amazon.com

2010-04-25 Thread John Cremona
On 25 April 2010 20:34, David Joyner wrote: > The new version is available on amazon.com. > (Search for "stein sage 4.3.5" and you'll get it.) > It does not seem to be on amazon.co.uk (yet?). > No -- though I was offered instead "Sage Stein www.CafePress.co.uk - Show Your Sage Pride with U

[sage-devel] Re: Sage relocation (bug?)

2010-04-25 Thread Nathan O'Treally
On 25 Apr., 21:53, "Georg S. Weber" wrote: > Hi Gonzalo, > > quick answer: > this is known, and short-term, few to nothing will be done about it. > > Long answer: > The usage of dynamic libraries has its advantages --- and the one > disadvantage, that parts of the code have to be able to "find" ot

[sage-devel] Re: help with Sage release

2010-04-25 Thread Dr. David Kirkby
Minh Nguyen wrote: Hi John, On Mon, Apr 26, 2010 at 2:06 AM, John Palmieri wrote: Hi Minh and Harald, I would like some help with the last parts of the Sage release process for Sage 4.4: producing binaries and updating the web page. First, binaries: I've produced a sage.math binary, and I wi

[sage-devel] Re: Sage relocation (bug?)

2010-04-25 Thread Georg S. Weber
Hi Gonzalo, quick answer: this is known, and short-term, few to nothing will be done about it. Long answer: The usage of dynamic libraries has its advantages --- and the one disadvantage, that parts of the code have to be able to "find" other parts of the code during runtime dynamically. There ar

Re: [sage-devel] Sage Tutorial at Amazon.com

2010-04-25 Thread David Joyner
The new version is available on amazon.com. (Search for "stein sage 4.3.5" and you'll get it.) It does not seem to be on amazon.co.uk (yet?). On Fri, Apr 9, 2010 at 10:03 PM, William Stein wrote: > Hi, > > Who is responsible for the Sage Tutorial being at Amazon.com?  I was > giving a workshop t

[sage-devel] Re: Sage relocation (bug?)

2010-04-25 Thread Nathan O'Treally
On 25 Apr., 20:26, Gonzalo Tornaria wrote: > >> I hope that somebody has a better idea of how to fix this bug. > > > At least chmod og-r on all binaries, too (on a multiuser/open system). > > I don't see how that fixes anything (that isn't fixed by just moving > away the build directory or buildin

Re: [sage-devel] Re: Sage relocation (bug?)

2010-04-25 Thread Gonzalo Tornaria
On Sun, Apr 25, 2010 at 2:59 PM, Nathan O'Treally wrote: > On 25 Apr., 19:07, Gonzalo Tornaria wrote: > This is actually a security issue, too. (Imagine e.g. a Sage bdist was > compiled in /tmp: Everybody could place arbitrary code in a fake > library there. Or he could even look into the Sage bi

Re: [sage-devel] Re: Translation of "coercion"

2010-04-25 Thread Gonzalo Tornaria
On Sun, Apr 25, 2010 at 1:26 PM, Nathan O'Treally wrote: > On 25 Apr., 17:11, Gonzalo Tornaria wrote: >> I'd rather have >> >>     sage: 1/3 == GF(3)(1) >> >> raise a ZeroDivisionError, and > > I'd prefer TypeError (or coercion error, "incompatible types", not yet > existent I guess) I think you

[sage-devel] Re: Sage relocation (bug?)

2010-04-25 Thread Gonzalo Tornaria
On Sun, Apr 25, 2010 at 2:07 PM, Gonzalo Tornaria wrote: > I'm having an issue with sage relocation, and wonder if this is known or not. > [...] > Moreover, if I move the directory /scratch/tornaria/sage-4.3.3 away, > and restart sage, it works perfectly, and sqlite and freetype are > loaded from

[sage-devel] Re: Sage relocation (bug?)

2010-04-25 Thread Nathan O'Treally
On 25 Apr., 19:07, Gonzalo Tornaria wrote: > For starters, it means that compilation meant to create a -bdist > should be done on a *randomly named* directory which is moved away > after the compilation/bdist is finished. Otherwise, we risk that the > user has old stuff in a directory matching th

[sage-devel] Re: Sage 4.4.rc0 released

2010-04-25 Thread Nathan O'Treally
On 25 Apr., 03:30, John H Palmieri wrote: > On Apr 24, 3:20 pm, John H Palmieri wrote: > > On Apr 24, 9:46 am, "Nathan O'Treally" wrote: > > > What about > > >   - tickets *not* merged though reviewed positive [since N days/ > > > weeks...] > > >   - tickets not merged because currently still ne

[sage-devel] Sage relocation (bug?)

2010-04-25 Thread Gonzalo Tornaria
I'm having an issue with sage relocation, and wonder if this is known or not. My setup is as follows: I have a fast filesystem mounted on /scratch (two 15k sas disks on hardware raid0). I compiled sage 4.3.3 on this scratch filesystem (it's noticeable faster). Then I created a binary tarball usin

[sage-devel] Re: Translation of "coercion"

2010-04-25 Thread Nathan O'Treally
On 25 Apr., 17:11, Gonzalo Tornaria wrote: > Also, the "== doesn't fail" part seems to force this, since it would > be even more awkward to hide the coercion failure. See my last two posts. In addition, Sage behaves different to Python in many other cases. (I'd say it is *necessary* to break Pyth

[sage-devel] Re: [sage-release] Sage 4.4.rc0 released

2010-04-25 Thread Minh Nguyen
Hi folks, I have wrapped up a binary for t2.math. It's up at http://sage.math.washington.edu/home/mvngu/t2.math-bin/sage-4.4.rc0-t2.math.tar.gz -- 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 s

[sage-devel] Re: Where to add a section to the tutorial?

2010-04-25 Thread Nathan O'Treally
On 25 Apr., 09:30, Simon King wrote: > * Other users may believe that a rose is a rose is a rose, and 1 is 1 > is 1. Such users would find it gross that GF(2)(1)==1 and 1==GF(3)(1), > but GF(3)(1)!=GF(2)(1). Btw, a rose might be a rose in Python, but not in Sage: >>> 1 is 1 # Python True sage:

[sage-devel] Re: Where to add a section to the tutorial?

2010-04-25 Thread Nathan O'Treally
On 25 Apr., 07:30, Robert Bradshaw wrote: > Are you looking for something > likehttp://www.sagemath.org/doc/reference/sage/structure/coerce.html >   ? It could probably be written up better, but we don't want too much   > redundancy. There's also http://www.sagemath.org/doc/reference/coercion.ht

Re: [sage-devel] Re: Translation of "coercion"

2010-04-25 Thread Gonzalo Tornaria
On Fri, Apr 23, 2010 at 11:07 PM, Nathan O'Treally wrote: > "[...] A coercion from one parent to another must be defined on the > whole domain, and always succeeds. As it may be invoked implicitly, it > should be obvious and natural (in both the mathematically rigorous and > colloquial sense of th

[sage-devel] Re: Translation of "coercion"

2010-04-25 Thread Nathan O'Treally
On 25 Apr., 08:10, Robert Bradshaw wrote: > On Apr 23, 2010, at 7:07 PM, Nathan O'Treally wrote: > > The Tutorial (http://www.sagemath.org/doc/tutorial/ > > programming.html#loops-functions-control-statements-and-comparisons) > > gives another example: > > sage: GF(5)(1) == QQ(1); QQ(1) == GF(5)(1

[sage-devel] Re: Translation of "coercion"

2010-04-25 Thread Nathan O'Treally
On 25 Apr., 08:10, Robert Bradshaw wrote: > On Apr 23, 2010, at 7:07 PM, Nathan O'Treally wrote: > > Though e.g. C and C++ do have automatic (or implicit) conversion, it > > is usually referred to as (different kinds of) type *casts*. > > C++ does have additional explicitly stated kinds of convers

Re: [sage-devel] Re: weird bug in mod()

2010-04-25 Thread John Cremona
Problem solved. I found that using // to divide polynomials (univariate, over a number field) yields an element of the fraction field when done in .py. In order to get the quotient in the ring itself I now use quo_rem(). Patch up at #8378 shortly, as soon as I have added a couple of doctests. J

Re: [sage-devel] Re: Sage 4.4.rc0 released

2010-04-25 Thread John Cremona
On 24 April 2010 23:04, William Stein wrote: > On Sat, Apr 24, 2010 at 12:27 PM, John Cremona wrote: >> Successful build and testall on 32-bit ubuntu. >> My test did not include long; trying again... John >> John > > I get a repeated segfault on 32-bit ubuntu (and some other 32-bit > linux's

[sage-devel] Re: Where to add a section to the tutorial?

2010-04-25 Thread Simon King
Hi Robert! On 25 Apr., 07:30, Robert Bradshaw wrote: > Are you looking for something > likehttp://www.sagemath.org/doc/reference/sage/structure/coerce.html >   ? It could probably be written up better, but we don't want too much   > redundancy. This is why I asked whether there should be a sect