Re: [sage-support] Re: Point-set topology in sage?

2010-07-28 Thread Alec Battles
I actually think that computers are very healthy for mathematicians in that regard. What's the use of a branch of mathematics whose functions don't take user-defined numbers/shapes as their domain?? But given a user-defined set of points and a bunch of topological transformations, I don't see why

Re: [sage-support] Re: sum(.., n) doesn't work if n is a loop iterator.

2010-07-28 Thread Sriram Srinivasan
Ah, that solves the mystery. Thanks, Nils. As kcrisman suggested, functions should be able to automatically coerce ints to Sage Integers. --sriram. -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@go

[sage-support] Re: sum(.., n) doesn't work if n is a loop iterator.

2010-07-28 Thread Nils Bruin
On Jul 28, 10:20 pm, sriram srinivasan wrote: > Thanks much for your note. > > What surprises me is that sum() doesn't need coercion to sage integers > when working with int-typed variables and numbers: That is because the sage shell and notebook preprocess input such that integer literals are ma

[sage-support] Re: sum(.., n) doesn't work if n is a loop iterator.

2010-07-28 Thread sriram srinivasan
Thanks much for your note. What surprises me is that sum() doesn't need coercion to sage integers when working with int-typed variables and numbers: sum(k, k, 1, 10) # ok n = 10; sum(k, k, 1, n)# ok I couldn't figure out the code path that looks for this difference. How does the sum 'kno

[sage-support] Re: sum(.., n) doesn't work if n is a loop iterator.

2010-07-28 Thread kcrisman
> > /Users/s/sw/sage/local/lib/python2.6/site-packages/sage/calculus/ > calculus.pyc in symbolic_sum(expression, v, a, b, algorithm) >     499 >     500     if algorithm == 'maxima': > --> 501         sum  = "'sum(%s, %s, %s, %s)" % > tuple([repr(expr._maxima_()) for expr in (expression, v, a, b)]

Re: [sage-support] Solaris installation problems

2010-07-28 Thread DWL
Dear Dr. Kirkby, After taking the suggested actions, I still have errors as shown here: % which ranlib /usr/ccs/bin/ranlib % ./sage -- | Sage Version 4.5.1, Release Date: 2010-07-19 | | Type notebook() for t

[sage-support] Re: sum(.., n) doesn't work if n is a loop iterator.

2010-07-28 Thread sriram srinivasan
I forgot to add: This too works OK. k, n = var('k n') sum(k, k, 1, n) # gives 1/2*n^2 + 1/2*n It fails only when n is a loop iterator. -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com F

[sage-support] sum(.., n) doesn't work if n is a loop iterator.

2010-07-28 Thread sriram srinivasan
Can someone please shed light on this? The following works OK: k, n = var ('k n') sum(k, k, 1, 10) # ok. Gives 55 n = 10 sum(k, k, 1, n) # ok. Gives 55 But this gives an exception: for n in range(1,10): sum(k, k, 1, n) /Users/s/sw/sage/local/lib/python2.6/site-packages/sag

[sage-support] Re: passing coefficient ring and indeterminant to a function to return a polynomial in the intended polynomialRing

2010-07-28 Thread Nils Bruin
On Jul 28, 1:58 pm, Simon King wrote: > Anyway. While differential rings are certainly nice algebraic > structures, I feel uncomfortable to think of a derivation as some > calculus stuff. The theory of Kaehler differentials does a pretty good job providing differential calculus with sound algebrai

[sage-support] Re: Point-set topology in sage?

2010-07-28 Thread Kenny Brown
What sort of computations are you looking to do? Point-set topology is by nature a rather un-computational area of mathematics. On Jul 28, 5:22 am, Alec Battles wrote: > I've tried to find info about this. Can't find anything... Any > suggestions/help? > > Alec -- To post to this group, send e

Re: [sage-support] Solaris installation problems

2010-07-28 Thread DWL
Dear Dr. Kirkby, Yes, the architecture is SPARC. I will try your suggestions from your previous post and let you know what I find. Thanks, dan From: Dr. David Kirkby To: sage-support@googlegroups.com Sent: Wed, July 28, 2010 2:20:28 PM Subject: Re: [sage-su

Re: [sage-support] Solaris installation problems

2010-07-28 Thread Dr. David Kirkby
On 07/28/10 07:54 PM, DWL wrote: If this isn't the forum for asking install questions, by all means, stop reading and tell me where to direct this question. ImportError: ld.so.1: python: fatal: /user/hilbert/bin/sage-4.5.1-Solaris_10_SPARC-sun4u-SunOS/local/lib//libgmp.so.3: bad ELF flags va

Re: [sage-support] Solaris installation problems

2010-07-28 Thread Dr. David Kirkby
On 07/28/10 07:54 PM, DWL wrote: If this isn't the forum for asking install questions, by all means, stop reading and tell me where to direct this question. This is the place to ask about install questions. I've downloaded and unpacked the .7z binaries for Solaris according to the instruction

[sage-support] Recucing equatoins

2010-07-28 Thread Johannes
Hi list, i have a questoin about the handling of (mathematical) functoins in sage. i have a function f : k^n \times (k^m)^n -> k for some Field k. with f(q_1,\dots,q_n,x_1,\dots,x_n) -> \sum\limits_{i=1}^n q_i * x_i for a given n,m. and i want to create a family (f_i)_{i=1\dots l} of functions fro

[sage-support] Re: passing coefficient ring and indeterminant to a function to return a polynomial in the intended polynomialRing

2010-07-28 Thread Simon King
Hi Nils! On 28 Jul., 19:48, Nils Bruin wrote: > Actually, differentiation of polynomials (just as a formal operation) > has a lot of algebraic meaning, Sure. But certainly you agree that there is a difference between the non-zero polynomial x^2+x in GF(2)['x'] and the function GF(2) --> GF(2)

[sage-support] Re: SageTeX compiling errors in TeXShop

2010-07-28 Thread Katie Johnson
I used Dan's minimal example. I copied his code into a file, ran it in TexShop and got no errors, but did get a warning: ** This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009) \write18 e

[sage-support] Solaris installation problems

2010-07-28 Thread DWL
If this isn't the forum for asking install questions, by all means, stop reading and tell me where to direct this question. I've downloaded and unpacked the .7z binaries for Solaris according to the instructions on this page: http://wiki.sagemath.org/solaris-binaries I've done everything thro

Re: [sage-support] scipy v0.8

2010-07-28 Thread Mike Hansen
Hello, On Wed, Jul 28, 2010 at 5:58 AM, maldun wrote: > When will the 0.8 release of scipy come into sage, the new fft > features would come quite in handy for me :) My guess maybe in about a month. We need to upgrade to Numpy 1.4.1 first and resolve and potential problems with both numpy and s

Re: [sage-support] Re: Graphics

2010-07-28 Thread Alec Battles
That's great info. Thanks. A On Wed, Jul 28, 2010 at 5:58 PM, kcrisman wrote: > > > On Jul 28, 11:51 am, Alec Battles wrote: >> Sorry if there's some good reason why this would be redundant, but I >> have an idea. It's a bit scary  that you can't simply draw a triangle >> with sage given a set

[sage-support] Re: passing coefficient ring and indeterminant to a function to return a polynomial in the intended polynomialRing

2010-07-28 Thread Nils Bruin
On Jul 28, 10:35 am, Simon King wrote: > The point is that some people (including myself) believe that > polynomials belong to algebra, whereas differentiation is calculus. A > polynomial and a polynomial function are two very different things. > So, how (and why) would one differentiate a polyno

[sage-support] Re: passing coefficient ring and indeterminant to a function to return a polynomial in the intended polynomialRing

2010-07-28 Thread Simon King
Hi! On Jul 28, 5:29 pm, eggartmumie wrote: > I read the reference, I followed Your advice, all I get is a > polynomial of type > 'sage.rings.polynomial.polynomial_zz_pex.Polynomial_ZZ_pEX' > which I connot coerce to the intended data type (I tried e.g. And what data type do you want? In your ori

[sage-support] Re: Graphics

2010-07-28 Thread kcrisman
On Jul 28, 11:51 am, Alec Battles wrote: > Sorry if there's some good reason why this would be redundant, but I > have an idea. It's a bit scary  that you can't simply draw a triangle > with sage given a set of three coordinates... > You can do that very easily. sage: polygon? Returns e

[sage-support] Re: passing coefficient ring and indeterminant to a function to return a polynomial in the intended polynomialRing

2010-07-28 Thread eggartmumie
Dear Simon, On Jul 20, 11:53 pm, Simon King wrote: > Hi! > > On 20 Jul., 22:58, eggartmumie wrote: > > > def goppapolynomial(F,z): # return a Goppa polynomial in z over ring > > or field F > >     X = str(z); R. = PolynomialRing(F); > >     return R(X^(N-K)); > > First of all, the notation R. =

[sage-support] Re: [sage-combinat-devel] Adding dictionaries pointwise using cython

2010-07-28 Thread Vincent Delecroix
I think that this kind of question is more dedicated to sage-support because it does not deal about combinatorics (http://groups.google.com/group/sage-support) 2010/7/28 Christian Stump : > Salut cython specialists, > > I would like to implement a routine adding dictionaries with possibly > differ

[sage-support] save plot to file with a size given in pixels

2010-07-28 Thread Sebastian Ramacher
Hey, I'm looking for a way to save a plot with a specific width and height in pixels. My code basically looks like this: E = EllipticCurve([a, b]) p = plot(E) p.save('foo.png', ...) I tried to change figsize and dpi in the save call but without any success. Is there even a way to do that? Thank

Re: [sage-support] Re: Graphics

2010-07-28 Thread Alec Battles
Sorry if there's some good reason why this would be redundant, but I have an idea. It's a bit scary that you can't simply draw a triangle with sage given a set of three coordinates... Why doesn't sage make some sort of interface to KIG? It can be scripted in python (using pykig.py), and draws geo

[sage-support] Re: Graphics

2010-07-28 Thread kcrisman
On Jul 28, 1:16 am, Santanu Sarkar wrote: > Let a, b,c be the  length of three sides of a triangle. > How can I draw the triangle using Sage? Of course one issue is that there are infinitely many triangles with these sides, when it comes to the coordinate plane. I guess, assuming a>b>c (isocel

[sage-support] scipy v0.8

2010-07-28 Thread maldun
When will the 0.8 release of scipy come into sage, the new fft features would come quite in handy for me :) If it is not planed, whatever reasons there are for, is it possible to update the current scipy version from 0.7 to 0.8 manually, I didn"t find any resources for that... greets -- To post

[sage-support] Re: complexity of computations in Z/n*Z

2010-07-28 Thread Luis Finotti
On Jul 27, 5:54 pm, Robert Bradshaw wrote: > For anything that doesn't fit inside a single word, Sage uses the > mpz functions in MPIR to do arithmetic. There are a variety of > algorithms used--from the classical O(n^2) to various > Karatsuba/Toom-Cook ones to Schönhage–Strassen for large value

[sage-support] Point-set topology in sage?

2010-07-28 Thread Alec Battles
I've tried to find info about this. Can't find anything... Any suggestions/help? Alec -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://group

[sage-support] Re: bug in computing Sylow p-subgroups

2010-07-28 Thread Simon King
On 28 Jul., 10:01, Simon King wrote: > I think a solution would be to use gap.eval("Print(gens[1]);") > instead. I'll try this, and create a trac ticket for it. One more issue: The method creates quite common variable names (gens, G, N) in the GAP interface. This can have very nasty side effects,

[sage-support] Re: bug in computing Sylow p-subgroups

2010-07-28 Thread Simon King
Hi Kenny, On 28 Jul., 04:36, Kenny Brown wrote: > ... > sage: G.sylow_subgroup(3) > >    File "", line 1 >      [(1,344,246,148,50,393,295,197,99,), > (2,345,247,149,51,394,296,198,100,), > ... > (22,365,267,169,71,414,316,218,120,), >

[sage-support] Re: Define an action

2010-07-28 Thread drenwal
Hello, Thanks for your answers. > > On 25 Jul., 10:52, drenwal wrote: > >> But, I would prefer to use a more mathematical notation, like Y[k] or > >> y...@k or whatever non already used symbol instead of Ac(y,k). > > Talking about generators: There is a decorator that allows to define a > > cust

[sage-support] bug in computing Sylow p-subgroups

2010-07-28 Thread Kenny Brown
I seem to have discovered an error with the wrapper to the GAP function SylowSubgroup. sage: n = 3^2 * 7^2 sage: G = CyclicPermutationGroup(n) So far, so good. However, sage: G.sylow_subgroup(3) File "", line 1 [(1,344,246,148,

Re: [sage-support] SageTeX compiling errors in TeXShop

2010-07-28 Thread Dan Drake
On Tue, 27 Jul 2010 at 02:45PM -0700, Katie Johnson wrote: > Another brief question I have is: why does sagetex put files needed > for a tex file (like graphics files) in my root directory (Macintosh > HD)? It seems like a really odd place to have all of these files > piling up, and what if I have