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
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(
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
[
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
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
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
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
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
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
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
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
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
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
>
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
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
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
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
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.
*
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
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
> 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)
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
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
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
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
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
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
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
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
> 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
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
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
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
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
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
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
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
37 matches
Mail list logo