[sage-support] substitution with callable symbolic functions

2008-09-18 Thread Alex Raichev
Hey all: I'm back with a follow up question on the topic of substitution in Sage. How can i work the following example? I have an expression that involves the derivative of a function, and into that expression i want to substitute the value of the derivative. Simple, eh? I tried Mike's ** tri

[sage-support] Re: why isn't QQ a FractionField?

2008-09-18 Thread John H Palmieri
On Sep 18, 1:01 am, "John Cremona" <[EMAIL PROTECTED]> wrote: > 2008/9/18 John H Palmieri <[EMAIL PROTECTED]>: > > Right, I saw that in the source code. How about we change it, in this > > case, from > > >    return isinstance(x, FractionField_generic) > > > to > > >    return isinstance(x, (Fract

[sage-support] Re: can't run a script on when using SAGE on Milnix.org server

2008-09-18 Thread pong
Thanks for the explanation. It does work in server 2. -Pong On Sep 18, 6:05 pm, "Mike Hansen" <[EMAIL PROTECTED]> wrote: > On Thu, Sep 18, 2008 at 6:02 PM, pong <[EMAIL PROTECTED]> wrote: > > > I have written an animation which runs fine in SAGE on my PC. > > However, when I run the same script

[sage-support] Re: bug in limit()

2008-09-18 Thread Alex Raichev
Sweet! Thanks, Mike. On Sep 19, 11:56 am, "Mike Hansen" <[EMAIL PROTECTED]> wrote: > On Thu, Sep 18, 2008 at 4:54 PM, Alex Raichev <[EMAIL PROTECTED]> wrote: > > > Now, with the above in mind, how do you write a function to evaluate > > that sine limit given a variable from the user?  We know th

[sage-support] Re: can't run a script on when using SAGE on Milnix.org server

2008-09-18 Thread Mike Hansen
On Thu, Sep 18, 2008 at 6:02 PM, pong <[EMAIL PROTECTED]> wrote: > > I have written an animation which runs fine in SAGE on my PC. > However, when I run the same script on Milnix.org server, I got an > error message: > > sh: convert: command not found > > what's the problem? any help? This is bec

[sage-support] can't run a script on when using SAGE on Milnix.org server

2008-09-18 Thread pong
I have written an animation which runs fine in SAGE on my PC. However, when I run the same script on Milnix.org server, I got an error message: sh: convert: command not found what's the problem? any help? Thanks in advance --~--~-~--~~~---~--~~ To post to this g

[sage-support] Re: bug in limit()

2008-09-18 Thread Mike Hansen
On Thu, Sep 18, 2008 at 4:54 PM, Alex Raichev <[EMAIL PROTECTED]> wrote: > > Now, with the above in mind, how do you write a function to evaluate > that sine limit given a variable from the user? We know the following > does not work. > > sage: var('x') > x > sage: def limmy(w): > : retur

[sage-support] Re: bug in limit()

2008-09-18 Thread Alex Raichev
Now, with the above in mind, how do you write a function to evaluate that sine limit given a variable from the user? We know the following does not work. sage: var('x') x sage: def limmy(w): : return limit(sin(w)/w,w=0) sage: limmy(x) sin(x)/x More generally, how do you execute function

[sage-support] Re: why isn't QQ a FractionField?

2008-09-18 Thread William Stein
On Thu, Sep 18, 2008 at 12:12 PM, John H Palmieri <[EMAIL PROTECTED]> wrote: > > > > On Sep 18, 9:51 am, "William Stein" <[EMAIL PROTECTED]> wrote: >> On Thu, Sep 18, 2008 at 9:49 AM, John Cremona <[EMAIL PROTECTED]> wrote: >> >> > This looks a bit like an additive version of what we already do wi

[sage-support] Re: bug in limit()

2008-09-18 Thread Alex Raichev
Thanks for clarifying that issue, Mike. Alex On Sep 18, 3:38 pm, "Mike Hansen" <[EMAIL PROTECTED]> wrote: > Hi Alex, > > > sage: limit(sin(y[0])/y[0],y[0]=0) > > > >   File "", line 1 > > SyntaxError: keyword can't be an expression (,

[sage-support] Re: why isn't QQ a FractionField?

2008-09-18 Thread John H Palmieri
On Sep 18, 9:51 am, "William Stein" <[EMAIL PROTECTED]> wrote: > On Thu, Sep 18, 2008 at 9:49 AM, John Cremona <[EMAIL PROTECTED]> wrote: > > > This looks a bit like an additive version of what we already do with > > factorizations.   I wonder if you could clever use the factorization > > class

[sage-support] Re: Using Fourier transform in sage.

2008-09-18 Thread William Stein
On Thu, Sep 18, 2008 at 10:19 AM, Sand Wraith <[EMAIL PROTECTED]> wrote: > > Hi all! > > Does anyone know where to find guide or example how to use Fourier > transform and inverse Fourier transform in sage? > Here's an example: sage: v = vector(CDF,[1..10]); v (1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0

[sage-support] Using Fourier transform in sage.

2008-09-18 Thread Sand Wraith
Hi all! Does anyone know where to find guide or example how to use Fourier transform and inverse Fourier transform in sage? Thanks. --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email

[sage-support] Re: why isn't QQ a FractionField?

2008-09-18 Thread William Stein
On Thu, Sep 18, 2008 at 9:49 AM, John Cremona <[EMAIL PROTECTED]> wrote: > > This looks a bit like an additive version of what we already do with > factorizations. I wonder if you could clever use the factorization > class for it? It's possible somebody might find this useful: sage: FormalSum

[sage-support] Re: why isn't QQ a FractionField?

2008-09-18 Thread John Cremona
This looks a bit like an additive version of what we already do with factorizations. I wonder if you could clever use the factorization class for it? John PS I didn't really mean to suggest that you were stuck on the mathematics of this! 2008/9/18 John H Palmieri <[EMAIL PROTECTED]>: > > On S

[sage-support] Re: Help with a least-squares fit routine

2008-09-18 Thread Matthew Miller
As much as I hate to reply to myself :) I've almost got a solution using Polynomial Rings. Using lambda, and of course closures, seemed to be the problem. Back to work! --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To uns

[sage-support] Re: Questions about parallel sage, i.e. dsage

2008-09-18 Thread Robert Miller
> The callback function gets called as soon as a job finishes, which > answers: > > > 5/ What test can I apply to a dsage job to see if it's finished ? Say a > > job outputs a list, and I want to plot it, can I say something like "If > > there is some output, plot it, otherwise wait." ? To be mor

[sage-support] Re: Questions about parallel sage, i.e. dsage

2008-09-18 Thread Robert Miller
On Sep 16, 12:16 pm, Yann Le Du <[EMAIL PROTECTED]> wrote: > I use sage, v. 3.1.1, and am trying to build an application (Monte Carlo > stuff) and use dsage to parallelize the code : very easy stuff, just do a > series of jobs, done normally in sequence on a single computer, in > parallel on many.

[sage-support] Help with a least-squares fit routine

2008-09-18 Thread Matthew Miller
Hello, I'm working on a least-squares fit routine and I'm having a bit of trouble. The method that I'm using involves finding a series of orthogonal polynomials that have coefficients based on the input data. Most of the structure is worked out, the polynomials are stored in a list named phi and

[sage-support] Re: why isn't QQ a FractionField?

2008-09-18 Thread John H Palmieri
On Sep 18, 7:41 am, John H Palmieri <[EMAIL PROTECTED]> wrote: > > It wasn't the mathematics I was looking for, but how to output the > answer once I find it. If Sage computes that 1/20 = 1/4 - 1/5, how do > I get it to print the expression 1/4 - 1/5 without simplifying it to > 1/20?  For example,

[sage-support] Re: why isn't QQ a FractionField?

2008-09-18 Thread John H Palmieri
On Sep 18, 1:01 am, "John Cremona" <[EMAIL PROTECTED]> wrote: > 2008/9/18 John H Palmieri <[EMAIL PROTECTED]>: > > > On Sep 17, 9:09 pm, "William Stein" <[EMAIL PROTECTED]> wrote: > >> On Wed, Sep 17, 2008 at 8:59 PM, John H Palmieri <[EMAIL PROTECTED]> wrote: > > >> > Along the same lines, partia

[sage-support] Re: why isn't QQ a FractionField?

2008-09-18 Thread John H Palmieri
On Sep 18, 5:31 am, Burcin Erocal <[EMAIL PROTECTED]> wrote: > On Wed, 17 Sep 2008 21:48:37 -0700 (PDT) > John H Palmieri <[EMAIL PROTECTED]> wrote: > > > On Sep 17, 9:09 pm, "William Stein" <[EMAIL PROTECTED]> wrote: > > > On Wed, Sep 17, 2008 at 8:59 PM, John H Palmieri > > > <[EMAIL PROTECTED]>

[sage-support] Re: why isn't QQ a FractionField?

2008-09-18 Thread Burcin Erocal
On Wed, 17 Sep 2008 21:48:37 -0700 (PDT) John H Palmieri <[EMAIL PROTECTED]> wrote: > > On Sep 17, 9:09 pm, "William Stein" <[EMAIL PROTECTED]> wrote: > > On Wed, Sep 17, 2008 at 8:59 PM, John H Palmieri > > <[EMAIL PROTECTED]> wrote: > > > > > Along the same lines, partial fraction decompositi

[sage-support] Re: Questions about parallel sage, i.e. dsage

2008-09-18 Thread Serge Salamanka
Yann, If you find any good docs on dsage please let me know. I'll devote some of my spare time to dsage. It will be good to get it running in Grid. Serge [EMAIL PROTECTED] пишет: > On 17 sep, 12:36, Serge Salamanka <[EMAIL PROTECTED]> wrote: >> Hi, >> >> I'm also interested in using dsage. >> I'

[sage-support] Re: Small Scale Variants of the AES (SR)

2008-09-18 Thread Martin Albrecht
Hi vpv, you can certainly post-process the first option to get an equation system in the plaintext and key variables alone. You'll need an appropriate term ordering where each layer's head term is bigger than the previous layer's head term. You'll also replace the S-Box equations by direct equ

[sage-support] Re: Questions about parallel sage, i.e. dsage

2008-09-18 Thread yann-ledu
Thanks for your answers, this will probably solve all my problems. And writing to a file sounds good, since I can always read it's tail and do whatever I want. Yann On 17 sep, 22:03, John Voight <[EMAIL PROTECTED]> wrote: > Hello! > > It is a pity that Yi has moved on (at least for the moment),

[sage-support] Re: Questions about parallel sage, i.e. dsage

2008-09-18 Thread yann-ledu
On 17 sep, 12:36, Serge Salamanka <[EMAIL PROTECTED]> wrote: > Hi, > > I'm also interested in using dsage. > I'm involved in international collaboration project developing Grid > technologies (http://balticgrid.org/). > I have one supercomputer at my disposal > (http://supercomp.basnet.by/index_e

[sage-support] Re: Small Scale Variants of the AES (SR)

2008-09-18 Thread vpv
Thanks for your replies, Martin. Yes, indeed I'd like to encrypt variables rather than constants. Maybe still I can use your first reply to achieve somehow my goal. You say that encrypting variables is not supported and should be added, right? For my own needs I have developed an implementation i

[sage-support] Re: why isn't QQ a FractionField?

2008-09-18 Thread John Cremona
2008/9/18 John H Palmieri <[EMAIL PROTECTED]>: > > On Sep 17, 9:09 pm, "William Stein" <[EMAIL PROTECTED]> wrote: >> On Wed, Sep 17, 2008 at 8:59 PM, John H Palmieri <[EMAIL PROTECTED]> wrote: >> >> > sage: is_FractionField(FractionField(ZZ)) >> > False >> >> > Oy. This seems to be intentional: th