[sage-support] Re: Infinite sum

2008-08-29 Thread tkeller
I asked this question myself a few months ago, and the easiest 2 solutions seem to be utilizing sympy or maxima. Via sympy it is: import sympy sympy.var('x') print sympy.sum(2**(-x), (x, 1, oo)) I'm taking this from a question I posed on the sympy message list: http://groups.google.com/group/sym

[sage-support] Re: convert string to sage expression

2008-08-29 Thread William Stein
On Fri, Aug 29, 2008 at 5:12 PM, Simon King <[EMAIL PROTECTED]> wrote: > > Hi Geir, > > If you really want to use strings, it may work like that: > sage: var('x y') > (x, y) > sage: EqL=['y==x**%d-%d'%(i,i) for i in range(10)] > sage: for X in EqL: > : print X > : print solve(eval(

[sage-support] Re: convert string to sage expression

2008-08-29 Thread Simon King
Hi Geir, If you really want to use strings, it may work like that: sage: var('x y') (x, y) sage: EqL=['y==x**%d-%d'%(i,i) for i in range(10)] sage: for X in EqL: : print X : print solve(eval(X)) : y==x**0-0 [ y == 1 ] y==x**1-1 [

[sage-support] Re: convert string to sage expression

2008-08-29 Thread Mike Hansen
Hello, On Fri, Aug 29, 2008 at 4:00 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I want to construct a set of equations using strings. For example: > > for i in range(0,10): > eq1="eq=x^"+str(i)+"-"+str(i) Is there a reason why you wanted to do it using strings? It's a bit cleaner/easier

[sage-support] convert string to sage expression

2008-08-29 Thread [EMAIL PROTECTED]
Hi, I want to construct a set of equations using strings. For example: for i in range(0,10): eq1="eq=x^"+str(i)+"-"+str(i) Is there a way to convert the string eq1 to a sage expression that can be used by the sage solver ? geir --~--~-~--~~~---~--~~ To post

[sage-support] Infinite sum

2008-08-29 Thread Raouf
Hi, I am a newbie in sage and i want to compute an infinite sum with parameter m, like sum(1/(k+m)^3) k=1 to infinity. Can you please help me? thanks --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this g

[sage-support] Re: saving as C code?

2008-08-29 Thread Robert Bradshaw
On Fri, 29 Aug 2008, Martin Albrecht wrote: > > On Friday 29 August 2008, Jason Grout wrote: >> Martin Albrecht wrote: For various objects and various software systems (like mathematica, magma, maxima, etc.), we have a _mathematica_init_, _magma_init_, etc, which convert an express

[sage-support] Re: Inert Integrals and Derivatives?

2008-08-29 Thread Robert Bradshaw
On Fri, 29 Aug 2008, Jason Grout wrote: > > Jason Merrill wrote: >> On Aug 29, 3:07 am, Burcin Erocal <[EMAIL PROTECTED]> wrote: >>> On Thu, 28 Aug 2008 15:28:03 -0400 >>> >>> >>> >>> Tim Lahey <[EMAIL PROTECTED]> wrote: Hi, Maple has a really useful feature of inert integrals and

[sage-support] Re: failed to download cddlib-094b.p1

2008-08-29 Thread mabshoff
On Aug 29, 7:33 am, Thierry Dumont <[EMAIL PROTECTED]> wrote: > Trying to install polymake in sage 3.1, I got the message: > Hi Thierry, this is a known issue and I have a fixed spkg-install that should once and for all resolve the issue. We are tracking this at #3640 and I need to put up a sp

[sage-support] Re: saving as C code?

2008-08-29 Thread Jason Grout
Martin Albrecht wrote: > On Friday 29 August 2008, Jason Grout wrote: >> Martin Albrecht wrote: > >> We could have _c_NTL_init_ or _c_blas_init_, etc., for variants if >> people want. Another thought is to pass options to the systems, like >> _c_init_('blas','NTL','singular'). > > That looks l

[sage-support] Re: [GAP Forum] GAP console frozen

2008-08-29 Thread William Stein
On Fri, Aug 29, 2008 at 8:53 AM, David Joyner <[EMAIL PROTECTED]> wrote: > > Let me get this straight. Please correct me if I am wrong. > > You sarted GAP within Sage (using sage -gap?) and then > started a long computation, whcih caused you to run out of memory. > Then GAP and Sage froze, so you

[sage-support] Re: [GAP Forum] GAP console frozen

2008-08-29 Thread David Joyner
Let me get this straight. Please correct me if I am wrong. You sarted GAP within Sage (using sage -gap?) and then started a long computation, whcih caused you to run out of memory. Then GAP and Sage froze, so you rebooted and restarted Sage. (Since you rebooted, I guess you are using windows?) Di

[sage-support] Re: saving as C code?

2008-08-29 Thread Martin Albrecht
On Friday 29 August 2008, Jason Grout wrote: > Martin Albrecht wrote: > >> For various objects and various software systems (like mathematica, > >> magma, maxima, etc.), we have a _mathematica_init_, _magma_init_, etc, > >> which convert an expression into syntax for the target system. A lot of >

[sage-support] Re: Inert Integrals and Derivatives?

2008-08-29 Thread Jason Grout
Jason Merrill wrote: > On Aug 29, 3:07 am, Burcin Erocal <[EMAIL PROTECTED]> wrote: >> On Thu, 28 Aug 2008 15:28:03 -0400 >> >> >> >> Tim Lahey <[EMAIL PROTECTED]> wrote: >>> Hi, >>> Maple has a really useful feature of inert integrals >>> and derivatives. Basically, the integrals and derivatives

[sage-support] Re: saving as C code?

2008-08-29 Thread Jason Grout
Martin Albrecht wrote: >> For various objects and various software systems (like mathematica, >> magma, maxima, etc.), we have a _mathematica_init_, _magma_init_, etc, >> which convert an expression into syntax for the target system. A lot of >> these are defined in calculus.py for converting sym

[sage-support] Re: solve() fails to produce a solution

2008-08-29 Thread Jason Grout
Jason Grout wrote: > William Stein wrote: >> On Thu, Aug 28, 2008 at 11:06 PM, Robert Dodier <[EMAIL PROTECTED]> wrote: >>> On 8/28/08, William Stein <[EMAIL PROTECTED]> wrote: >>> Sage uses Maxima's solve command, and Maxima's solve command is pretty wimpy, and we (Sage developers) in

[sage-support] Re: solve() fails to produce a solution

2008-08-29 Thread Jason Grout
William Stein wrote: > On Thu, Aug 28, 2008 at 11:06 PM, Robert Dodier <[EMAIL PROTECTED]> wrote: >> On 8/28/08, William Stein <[EMAIL PROTECTED]> wrote: >> >>> Sage uses Maxima's solve command, and Maxima's solve >>> command is pretty wimpy, and we (Sage developers) intend >>> to write our own

[sage-support] failed to download cddlib-094b.p1

2008-08-29 Thread Thierry Dumont
Trying to install polymake in sage 3.1, I got the message: ** * Unable to download cddlib-094b.p1 * Please see http://www.sagemath.org//packages for a list of valid * packages or check the package name. *

[sage-support] Re: Inert Integrals and Derivatives?

2008-08-29 Thread Tim Lahey
On Aug 29, 2008, at 8:17 AM, David Joyner wrote: I like this! (I assume you meant integral, not Integral?) But could you implement it in such a way that sage: A = integral(x,x,0,1, evaluate=False) sage: eval(A) 1/2 sage: latex(A) \int_0^1 x\, dx +1 I like this approach and is relatively c

[sage-support] Re: Hall-Senior number vs. Small Groups library

2008-08-29 Thread Simon King
Hi David! On Aug 29, 2:11 pm, "David Joyner" <[EMAIL PROTECTED]> wrote: > I doubt it - I've never even heard of the Hall-Senior number. See: Hall, Marshall, Jr.; Senior, James K. The groups of order 2n (n ≤ 6). The Macmillan Co., New York; Collier-Macmillan, Ltd., London 1964 225 pp. > How h

[sage-support] Re: Find_root bug

2008-08-29 Thread kcrisman
> This is actually a problem with how the symbolic functions/expressions > are handled. The find_root function cannot recognize that 1/z is a > function. This works: > > sage: z = 1/tan > sage: f = lambda x: z(x) > sage: find_root(f,1, 2) > 1.5707963267948968 > > and this: > > sage: find_root(z(x)

[sage-support] Re: Inert Integrals and Derivatives?

2008-08-29 Thread Jason Merrill
On Aug 29, 3:07 am, Burcin Erocal <[EMAIL PROTECTED]> wrote: > On Thu, 28 Aug 2008 15:28:03 -0400 > > > > Tim Lahey <[EMAIL PROTECTED]> wrote: > > Hi, > > > Maple has a really useful feature of inert integrals > > and derivatives. Basically, the integrals and derivatives > > show up in the equatio

[sage-support] Re: Inert Integrals and Derivatives?

2008-08-29 Thread David Joyner
On Fri, Aug 29, 2008 at 8:01 AM, Robert Bradshaw <[EMAIL PROTECTED]> wrote: > ... > I like the concept, though I'm also -1 on the capital/lowercase > syntax. Perhaps integral could take an extra argument, so one would have > > sage: integral(x,x,0,1) > 1/2 > sage: Integral(x,x,0,1, evaluate=False

[sage-support] Re: Hall-Senior number vs. Small Groups library

2008-08-29 Thread David Joyner
On Fri, Aug 29, 2008 at 7:56 AM, Simon King <[EMAIL PROTECTED]> wrote: > > Dear all, > > finite 2-groups of appropriate size can be identified either by their > number in the Small Groups library or by their Hall-Senior number. > > The Small Groups library is an optional part of Sage (via gap). Bu

[sage-support] Re: Inert Integrals and Derivatives?

2008-08-29 Thread Robert Bradshaw
On Aug 29, 2008, at 4:53 AM, Tim Lahey wrote: > > On Aug 29, 2008, at 6:24 AM, William Stein wrote: > >> >> On Fri, Aug 29, 2008 at 2:46 AM, David Joyner <[EMAIL PROTECTED]> >> wrote: >>> >>> On Fri, Aug 29, 2008 at 3:07 AM, Burcin Erocal >>> <[EMAIL PROTECTED]> wrote: This is not s

[sage-support] Hall-Senior number vs. Small Groups library

2008-08-29 Thread Simon King
Dear all, finite 2-groups of appropriate size can be identified either by their number in the Small Groups library or by their Hall-Senior number. The Small Groups library is an optional part of Sage (via gap). But is there also some function available in Sage that translates between Hall-Senior

[sage-support] Re: Inert Integrals and Derivatives?

2008-08-29 Thread Tim Lahey
On Aug 29, 2008, at 6:24 AM, William Stein wrote: On Fri, Aug 29, 2008 at 2:46 AM, David Joyner <[EMAIL PROTECTED]> wrote: On Fri, Aug 29, 2008 at 3:07 AM, Burcin Erocal <[EMAIL PROTECTED]> wrote: This is not supported in Sage at the moment, but it is definitely planned. It should be f

[sage-support] Re: Inert Integrals and Derivatives?

2008-08-29 Thread David Joyner
On Fri, Aug 29, 2008 at 6:24 AM, William Stein <[EMAIL PROTECTED]> wrote: > > On Fri, Aug 29, 2008 at 2:46 AM, David Joyner <[EMAIL PROTECTED]> wrote: >> >> On Fri, Aug 29, 2008 at 3:07 AM, Burcin Erocal <[EMAIL PROTECTED]> wrote: >>> >>> On Thu, 28 Aug 2008 15:28:03 -0400 >>> Tim Lahey <[EMAIL PR

[sage-support] Re: using latex packages

2008-08-29 Thread Maike
Hi William, That sounds great to me. As long as it'll allow me to load the ngerman package in the notebook version of Sage, that'll do. Thanks! Maike P.S. And thanks Stan for the hint! I didn't know sagetex. As I'm using the notebook to combine latex typesetting with the interact functionality

[sage-support] Re: saving as C code?

2008-08-29 Thread Martin Albrecht
> For various objects and various software systems (like mathematica, > magma, maxima, etc.), we have a _mathematica_init_, _magma_init_, etc, > which convert an expression into syntax for the target system. A lot of > these are defined in calculus.py for converting symbolic expressions to > synt

[sage-support] Re: Inert Integrals and Derivatives?

2008-08-29 Thread William Stein
On Fri, Aug 29, 2008 at 2:46 AM, David Joyner <[EMAIL PROTECTED]> wrote: > > On Fri, Aug 29, 2008 at 3:07 AM, Burcin Erocal <[EMAIL PROTECTED]> wrote: >> >> On Thu, 28 Aug 2008 15:28:03 -0400 >> Tim Lahey <[EMAIL PROTECTED]> wrote: >> >>> Hi, >>> >>> Maple has a really useful feature of inert inte

[sage-support] Re: using latex packages

2008-08-29 Thread William Stein
On Fri, Aug 29, 2008 at 1:22 AM, Maike <[EMAIL PROTECTED]> wrote: > > Hello again, > > is there any way to use latex packages within sage? I'd like to write > a german text, and that will be a pain if > > %latex > \usepackage{ngerman} > > doen't work. Maybe I first have to install the package some

[sage-support] Re: Inert Integrals and Derivatives?

2008-08-29 Thread David Joyner
On Fri, Aug 29, 2008 at 3:07 AM, Burcin Erocal <[EMAIL PROTECTED]> wrote: > > On Thu, 28 Aug 2008 15:28:03 -0400 > Tim Lahey <[EMAIL PROTECTED]> wrote: > >> Hi, >> >> Maple has a really useful feature of inert integrals >> and derivatives. Basically, the integrals and derivatives >> show up in the

[sage-support] Re: using latex packages

2008-08-29 Thread Stan Schymanski
Hi Maike, Have you heard of sagetex? This allows sage computations as part of the compilation of a latex file. From my experience, this is not very good for interactive work because all the code within the latex file is compiled every time you run sage over your document, but it's great for g

[sage-support] using latex packages

2008-08-29 Thread Maike
Hello again, is there any way to use latex packages within sage? I'd like to write a german text, and that will be a pain if %latex \usepackage{ngerman} doen't work. Maybe I first have to install the package somewhere?? Maike --~--~-~--~~~---~--~~ To post to thi

[sage-support] Re: Find_root bug

2008-08-29 Thread Burcin Erocal
On Thu, 28 Aug 2008 13:36:53 -0700 (PDT) kcrisman <[EMAIL PROTECTED]> wrote: > > The reciprocal of tangent is not a constant function, but Sage says > otherwise. This is now http://trac.sagemath.org/sage_trac/ticket/3980 > . > > (Incidentally, using z(x)=tan(x) also doesn't work, as it yields

[sage-support] Re: Inert Integrals and Derivatives?

2008-08-29 Thread Burcin Erocal
On Thu, 28 Aug 2008 15:28:03 -0400 Tim Lahey <[EMAIL PROTECTED]> wrote: > Hi, > > Maple has a really useful feature of inert integrals > and derivatives. Basically, the integrals and derivatives > show up in the equations, but aren't evaluated until > a command to evaluate them is explicitly giv