[sage-support] Re: feature request - worksheets labels.

2010-02-01 Thread Kakaz


On 1 Lut, 00:34, William Stein wst...@gmail.com wrote:
 2010/1/31 Kakaz kazimierz.k...@gmail.com:

  I have several worksheets in my sage, and when I have some new ideas I
  create other one, somethimes just for fun. So there are worksheets
  named: Idea 1, Matrices, 'FFT, FFT3 etc. After a month I do not
  remember what is inside. Of course I may open them and check, but I
  thing that there should be something better to depict my worksheets.
  Folders would be interesting in order to do that, but in fact I mean
  something like labels.

  Like comments in Excel - something what You see, when You point with
  mouse cursor to worksheet name, and what normally is not visible, You
  only see it, when You stay with cursor on worksheet name for example
  for 1 second, without clicking, or entering workseet.
  I thought it would be useful, because You do not have to open
  worksheet in order to have an idea what is inside...

 As a temporary workaround you might note the following:

  (1) From the home screen (the list of all worksheets), you can do a
 fulltext search of the *contents* of all worksheets by typing a list
 of words in the upper right text box and clicking Search Worksheets.

 (2) You could put text in the worksheets themselves such as
 label:foo or something, then search for label:foo to find only such
 worksheets.

 William
Thanks a lot!
 I have a habit to name worksheet with long names, which is enough for
me right now. But I suppose, when You have several fields of activity,
some examples imported from web etc. having labels would be very
useful feature, and I suppose developing effort would be not so high
to get this.
Best Regards
Kazek

-- 
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://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: resultant

2010-02-01 Thread Simon King
Hi Michael,

On Feb 1, 2:37 am, Michael Beeson profbee...@gmail.com wrote:
 I let Mathematica run a similar problem for 36 hours with no reply;
 but I don't understand why it's too difficult.

Indeed, not easy.

By the way, in your first example, you defined
sage: R.z,p,q = QQ[]
sage: a = z^2 - z^-2
sage: f = z^2 *(p-a)

At that point, f is not considered a polynomial, although f does not
contain negative powers. You asked how to make Sage know that f is a
polynomial. Here you are:

sage: f = R(f)
sage: f.resultant(z-p)
-p^4 + p^3 + 1

Cheers,
Simon

-- 
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://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: Sage in calculators

2010-02-01 Thread Harald Schilly
On Feb 1, 4:59 am, Cal Armstrong sig...@gmail.com wrote:
 I would rather see it ported to a device that students already have, their
 smartphones, instead of saddling them with the purchase of another device.

I just want to add that it is already possible to run sympy (pure
python) inside android's python scripting environment. Hence, you can
already do some symbolics in ipython, which is quite nice ;)

H

-- 
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://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: sage blog

2010-02-01 Thread Harald Schilly
On Feb 1, 3:12 am, Minh Nguyen nguyenmi...@gmail.com wrote:
 In its current state, there is
 no automatic way for me to configure Planet Sage to automatically get
 Sage specific topics from your blog.

I tried to create a yahoo pipe with filtering by item.title, but it
doesn't work. I think the rss feed is a bit broken? ...

http://pipes.yahoo.com/pipes/pipe.info?_id=a4c8fae514255ed80b8b08190bf381f6

h

-- 
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://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Listing all k-minors of a matrix?

2010-02-01 Thread janwil
Hi all,

Is there a way to get all the k-minors of a matrix as a list of
matrices? Currently there is a method M.minors(2), but this only
produces the list of determinants. What about the matrices themselves?
Obviously, Sage must have them somewhere internally to compute the
determinants, but how to get access to them?

Best regards,
Jan

-- 
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://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: Listing all k-minors of a matrix?

2010-02-01 Thread javier
You can see the source of the minors method using

sage: M.minors??

(you need to have defined M beforehand).

By browsing at that source one can easily find the general way of
doing it:

sage: A = Matrix(QQ, 3, [1,2,3,4,5,6,7,8,9])
sage: [A.matrix_from_rows_and_columns(rows, cols) for cols in
combinations_iterator(range(A.ncols()), 2) for rows in
combinations_iterator(range(A.nrows()),2)]
[
[1 2]  [1 2]  [4 5]  [1 3]  [1 3]  [4 6]  [2 3]  [2 3]  [5 6]
[4 5], [7 8], [7 8], [4 6], [7 9], [7 9], [5 6], [8 9], [8 9]
]

Cheers
J

On Feb 1, 12:10 pm, janwil jan.willem...@gmail.com wrote:
 Hi all,

 Is there a way to get all the k-minors of a matrix as a list of
 matrices? Currently there is a method M.minors(2), but this only
 produces the list of determinants. What about the matrices themselves?
 Obviously, Sage must have them somewhere internally to compute the
 determinants, but how to get access to them?

 Best regards,
 Jan

-- 
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://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] exponential and simplify

2010-02-01 Thread Simon
Hi, this is hopefully an easy question:

As a simple exercise, I'm trying to show that \int_0^{2\pi} e^{i (m-n)
x}dx = 2\pi\delta_{mn} for integer m, n.
Here's how I did it:

sage: var('m,n'); w = SR.wild(0);
sage: assume(n, 'integer');assume(m, 'integer')
sage: int = integrate(e^(i*(m-n)*x),x,0,2*pi)
sage: print int.limit(m=n)
sage: print int.subs({e^(w):cosh(w)+sinh(w)}).simplify_trig()
2*pi
0

The bit I don't like is using the substitution... it should not be
nesc.  The problem, I think, lies at

sage: sin(2*pi*n).simplify_trig()  # this works
sage: e^(i*2*pi*m).simplify_full() # this doesn't work
0
e^(2*I*pi*m)

Any suggestions?

-- 
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://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Sage Virtualbox missing vboxfs

2010-02-01 Thread PKHG
I am running (Vista) the Virtualbox with sange appliance
(sage-virtualbox-4.2.1.p1.zip) and it works nicely.
But I would like to use a local Vista-directory to exchange files.

Now the problem, ONCE I succeeded to use c:\01sage to save a picture
using sudo mount -t vboxfs ...

But a second time I allways get a FATAL error vboxfs module not found.
Installing the Guestaddition (gives advice not to run) but I did
nevertheless
did not help

I have a workaround: ftp to my website and back ... but the direct
possibility is so much more comfort ;-)

Ideas are apreciated
  Peter (=PKHG)

-- 
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://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: exponential and simplify

2010-02-01 Thread kcrisman


On Feb 1, 10:47 am, Simon simonjty...@gmail.com wrote:
 Hi, this is hopefully an easy question:

 As a simple exercise, I'm trying to show that \int_0^{2\pi} e^{i (m-n)
 x}dx = 2\pi\delta_{mn} for integer m, n.
 Here's how I did it:

 sage: var('m,n'); w = SR.wild(0);
 sage: assume(n, 'integer');assume(m, 'integer')
 sage: int = integrate(e^(i*(m-n)*x),x,0,2*pi)
 sage: print int.limit(m=n)
 sage: print int.subs({e^(w):cosh(w)+sinh(w)}).simplify_trig()
 2*pi
 0

 The bit I don't like is using the substitution... it should not be
 nesc.  The problem, I think, lies at

 sage: sin(2*pi*n).simplify_trig()  # this works
 sage: e^(i*2*pi*m).simplify_full() # this doesn't work
 0
 e^(2*I*pi*m)

 Any suggestions?

Our assumption framework is directly from Maxima.  Perhaps Maxima does
not simplify exponentials in these cases?  It would be worth checking
whether there is another simplification routine there we have missed,
though perhaps Maxima intentionally does not have this simplification.

Unfortunately, progress on this in Sage has stopped until people can
agree on a way to reorganize the simplification wrappers from Maxima.

- kcrisman

-- 
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://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Runtime error: Unable to start gap (as user nobody with xgrid)

2010-02-01 Thread jplab
Hi,

I'm currently using xgrid for my computations... Here is the setup:

We have multiple imac OS 10.6, a intel server with mac OS 10.5 and two
G5 mac (10.5). All of them have sage4.3 (or 4.3.1) binary build.

In order for us to make xgrid work with sage, we gave some more rights
for user nobody. (We copied /usr/share/sandbox/
xgridagentd_task_somebody.sb over xgridagentd_task_nobody.sb. So now
xgrid can execute sage anywhere on the disk)

We created a batch job ( a .plist file) to send to xgrid. The tasks
are .sh files containing the lines:

--
#!/bin/bash

export HOME=`pwd`

/usr/local/bin/sage Script.sage
--

and Script.sage contains the line:
--
load My_module.py

Fonction(int1,int2,int3)
--

The Script.py generated file (located on the agent's disk) is then:
--
# This file was *autogenerated* from the file Script.sage.
from sage.all_cmdline import *   # import sage library
_sage_const_int1 = Integer(int1); _sage_const_int2 = Integer(int2);
_sage_const_int3 = Integer(int3)
execfile(My_module.py)

Fonction(_sage_const_int1 ,_sage_const_int2 ,_sage_const_int3 )
--

Now, we send the batch job to xgrid. The intel server does everything
OK, so as the G5. But all the imac give the following error:

WARNING: There is one major unsolved bug in some versions of
Sage on OS X 10.6 that causes an 'Abort trap' crash when
doing certain symbolic computations.
See http://trac.sagemath.org/sage_trac/ticket/7095/.
Setting permissions of DOT_SAGE directory so only you can read and
write it.
Traceback (most recent call last):
  File Script.py, line 2, in module
from sage.all_cmdline import *   # import sage library
  File /Library/sage/local/lib/python2.6/site-packages/sage/
all_cmdline.py, line 14, in module
from sage.all import *
  File /Library/sage/local/lib/python2.6/site-packages/sage/all.py,
line 64, in module
from sage.misc.all   import * # takes a while
  File /Library/sage/local/lib/python2.6/site-packages/sage/misc/
all.py, line 70, in module
from sage_input import sage_input
  File /Library/sage/local/lib/python2.6/site-packages/sage/misc/
sage_input.py, line 163, in module
from sage.misc.functional import parent
  File /Library/sage/local/lib/python2.6/site-packages/sage/misc/
functional.py, line 37, in module
from sage.rings.complex_double import CDF
  File complex_double.pyx, line 88, in init
sage.rings.complex_double (sage/rings/complex_double.c:13660)
  File /Library/sage/local/lib/python2.6/site-packages/sage/rings/
complex_field.py, line 86, in ComplexField
C = ComplexField_class(prec)
  File /Library/sage/local/lib/python2.6/site-packages/sage/rings/
complex_field.py, line 177, in __init__
self._populate_coercion_lists_(coerce_list=[complex_number.RRtoCC
(self._real_field(), self)])
  File complex_number.pyx, line 2003, in
sage.rings.complex_number.RRtoCC.__init__ (sage/rings/complex_number.c:
12936)
  File map.pyx, line 41, in sage.categories.map.Map.__init__ (sage/
categories/map.c:1962)
  File /Library/sage/local/lib/python2.6/site-packages/sage/
categories/homset.py, line 152, in Hom
H = category.hom_category().parent_class(X, Y, category =
category)
  File /Library/sage/local/lib/python2.6/site-packages/sage/
categories/rings.py, line 117, in __new__
from sage.rings.homset import RingHomset
  File /Library/sage/local/lib/python2.6/site-packages/sage/rings/
homset.py, line 17, in module
import quotient_ring
  File /Library/sage/local/lib/python2.6/site-packages/sage/rings/
quotient_ring.py, line 32, in module
import sage.rings.polynomial.multi_polynomial_ideal
  File /Library/sage/local/lib/python2.6/site-packages/sage/rings/
polynomial/multi_polynomial_ideal.py, line 229, in module
from sage.interfaces.all import (singular as singular_default,
  File /Library/sage/local/lib/python2.6/site-packages/sage/
interfaces/all.py, line 8, in module
from gap import gap, gap_reset_workspace, gap_console,
gap_version, is_GapElement, Gap
  File /Library/sage/local/lib/python2.6/site-packages/sage/
interfaces/gap.py, line 987, in module
gap_reset_workspace(verbose=False)
  File /Library/sage/local/lib/python2.6/site-packages/sage/
interfaces/gap.py, line 978, in gap_reset_workspace
g.eval('SaveWorkspace(%s);'%WORKSPACE)
  File /Library/sage/local/lib/python2.6/site-packages/sage/
interfaces/gap.py, line 480, in eval
result = Expect.eval(self, input_line, **kwds)
  File /Library/sage/local/lib/python2.6/site-packages/sage/
interfaces/expect.py, line 983, in eval
return '\n'.join([self._eval_line(L, **kwds) for L in code.split
('\n') if L != ''])
  File /Library/sage/local/lib/python2.6/site-packages/sage/
interfaces/gap.py, line 685, in _eval_line
self._start()
  File /Library/sage/local/lib/python2.6/site-packages/sage/
interfaces/gap.py, line 362, in _start

Re: [sage-support] Runtime error: Unable to start gap (as user nobody with xgrid)

2010-02-01 Thread Minh Nguyen
Hi,

On Tue, Feb 2, 2010 at 5:29 AM, jplab jeanphilippela...@gmail.com wrote:

SNIP

 My computation are considerably slowed down by this bug and I would be
 very happy to find a solution! Help! If you need more info, let me
 know!

My best guess is that mixing Sage 4.3 and 4.3.1 with Mac OS X 10.5 and
10.6 can be problematic. As you know, Sage versions prior to 4.3.1
were unstable on Mac OS X 10.6 due to how Python was compiled on that
platform. As of Sage 4.3.1, Python is now configured to properly
compile on Mac OS X 10.6, which got rid of the annoying bug tracked at
ticket #7095 [1]. One solution would be to use Sage 4.3.1 for all your
Mac OS X 10.6 machines, or indeed for all your Mac OS X machines. Hope
that helps.

[1] http://trac.sagemath.org/sage_trac/ticket/7095

-- 
Regards
Minh Van Nguyen

-- 
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://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: ubuntu 9.1 installation trouble

2010-02-01 Thread kitz
Thanks to all who helped yesterday, MS in particular.
Using sudo aptitude install build-essential (instead of apt-get or
synaptic manager) downgraded the gcc and libraries to 4.4.1-4ubuntu8
so the dependencies all worked. Then gfortran came in without a hitch
and Sage is running from a pre-compiled binary.

Thank you all again. Sage on.
(Is there a way to mark this thread as solved?)
--kitz

On Jan 31, 5:37 pm, kitz kmphi...@gmail.com wrote:
 Thank you William (Dr. Stein?)

 I seem to have a particular snag here. Not sure why.

 k...@bart:~$ sudo apt-get install gfortran
 [sudo] password for kitz:
 Reading package lists... Done
 Building dependency tree
 Reading state information... Done
 Some packages could not be installed. This may mean that you have
 requested an impossible situation or if you are using the unstable
 distribution that some required packages have not yet been created
 or been moved out of Incoming.
 The following information may help to resolve the situation:

 The following packages have unmet dependencies:
   gfortran: Depends: gfortran-4.4 (= 4.4.1-1) but it is not going to
 be installed
 E: Broken packages
 k...@bart:~$

 When I try to install gfortran-4.4 I get another Broken packages
 result.

 The following packages have unmet dependencies:
   gfortran-4.4: Depends: gcc-4.4-base (= 4.4.1-4ubuntu8) but
 4.4.1-4ubuntu9 is to be installed
                 Depends: gcc-4.4 (= 4.4.1-4ubuntu8) but 4.4.1-4ubuntu9
 is to be installed
                 Depends: libgfortran3 (= 4.4.1-4ubuntu8) but it is
 not going to be installed
 E: Broken packages

 So it seems I am in a loop.

 Glad to know it works for your systems...I would like to have installs
 predictable (easy) for teaching purposes.

 --kitz

 On Jan 31, 3:40 pm, William Stein wst...@gmail.com wrote:



  On 1/31/10, kitz kmphi...@gmail.com wrote:

   Hello,

   The old ubuntu apt-get packages are broken (I would help if I knew
   how...if I can donate time am happy to do so, but would need
   instruction as will be evident from my problem.)

   The gfortran packages are also broken on Ubuntu repositories.

  apt-get install gfortran

  Works fine for me on all my (many!) ubuntu 9.10 installs.

   Downloaded sage-4.3.1-linux-Ubuntu_9.10-x86_64-Linux.tar.lzma from JMU-
   VA. Checked md5sum. Unpacked to home folder. Renamed to sage. From
   terminal ./sage gives error:

   k...@bart:~/sage$ ./sage
   --
   | Sage Version 4.3.1, Release Date: 2010-01-20                       |
   | Type notebook() for the GUI, and license() for information.        |
   --
   /home/kitz/sage/local/bin/python: 1: Syntax error: word unexpected
   (expecting ))
   k...@bart:~/sage$

   So I can not run Sage at all. Thanks for any guidance.

   kitz

   --
   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://groups.google.com/group/sage-support
   URL:http://www.sagemath.org

  --
  William Stein
  Associate Professor of Mathematics
  University of Washingtonhttp://wstein.org

-- 
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://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: Runtime error: Unable to start gap (as user nobody with xgrid)

2010-02-01 Thread jplab
Hi,

On 1 fév, 14:01, Minh Nguyen nguyenmi...@gmail.com wrote:
 Hi,

 On Tue, Feb 2, 2010 at 5:29 AM, jplab jeanphilippela...@gmail.com wrote:

 SNIP

  My computation are considerably slowed down by this bug and I would be
  very happy to find a solution! Help! If you need more info, let me
  know!

 My best guess is that mixing Sage 4.3 and 4.3.1 with Mac OS X 10.5 and
 10.6 can be problematic. As you know, Sage versions prior to 4.3.1
 were unstable on Mac OS X 10.6 due to how Python was compiled on that
 platform. As of Sage 4.3.1, Python is now configured to properly
 compile on Mac OS X 10.6, which got rid of the annoying bug tracked at
 ticket #7095 [1]. One solution would be to use Sage 4.3.1 for all your
 Mac OS X 10.6 machines, or indeed for all your Mac OS X machines. Hope
 that helps.

Good, we will try that by changing the image on all the Mac...

But what is annoying is that on the intel server with 10.5 and sage
4.3, it does work!

But I hope 10.6  sage4.3.1 will solve the problem!


 [1]http://trac.sagemath.org/sage_trac/ticket/7095

 --
 Regards
 Minh Van Nguyen

Thanks!
I will keep you posted on that.

JP Labbé

-- 
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://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] Re: ubuntu 9.1 installation trouble

2010-02-01 Thread Minh Nguyen
Hi kitz,

On Tue, Feb 2, 2010 at 6:35 AM, kitz kmphi...@gmail.com wrote:

SNIP

 Thank you all again. Sage on.

Glad to know it works out for you.


 (Is there a way to mark this thread as solved?)

I'm not aware of anything like that for email threads on Google groups.

-- 
Regards
Minh Van Nguyen

-- 
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://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] Re: Runtime error: Unable to start gap (as user nobody with xgrid)

2010-02-01 Thread Minh Nguyen
Hi,

2010/2/2 jplab jeanphilippela...@gmail.com:

SNIP

 But what is annoying is that on the intel server with 10.5 and sage
 4.3, it does work!

I think that is expected. The bug at

http://trac.sagemath.org/sage_trac/ticket/7095

only affects Mac OS X 10.6. You should have no trouble using Sage 4.3
on Mac OS X 10.5.

-- 
Regards
Minh Van Nguyen

-- 
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://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: Runtime error: Unable to start gap (as user nobody with xgrid)

2010-02-01 Thread jplab
Greetings,

On 1 fév, 14:44, Minh Nguyen nguyenmi...@gmail.com wrote:

SNIP
 I think that is expected. The bug at

 http://trac.sagemath.org/sage_trac/ticket/7095

 only affects Mac OS X 10.6. You should have no trouble using Sage 4.3
 on Mac OS X 10.5.

Oh, I see! Great!

Thanks again!

JP Labbé

-- 
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://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] Cython Installation Problem with suse 10.1

2010-02-01 Thread Robert Bradshaw

On Jan 31, 2010, at 2:23 PM, ulrich.t...@hsnr.de wrote:


Hi,

I got a problem with the insatllation of sage-4.3.1. I am using Suse  
10.1

on a
Dell Latitude Laptop. Excerpt from the install.log:

building 'Cython.Compiler.Parsing' extension
gcc -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes - 
fPIC

-I/root/software/Mathematik/sage-4.3.1/local/include/python2.6
-c
/root/software/Mathematik/sage-4.3.1/spkg/build/cython-0.12/src/ 
Cython/Compi

ler/Parsing.c
-o
build/temp.linux-i686-2.6/root/software/Mathematik/sage-4.3.1/spkg/ 
build/cyt

hon-0.12/src/Cython/Compiler/Parsing.o
/root/software/Mathematik/sage-4.3.1/spkg/build/cython-0.12/src/ 
Cython/Compi

ler/Parsing.c:49486:
warning:
‘__pyx_pf_6Cython_8Compiler_8Scanning_12PyrexScanner_14included_files___get_
_’
defined but not used
/root/software/Mathematik/sage-4.3.1/spkg/build/cython-0.12/src/ 
Cython/Compi

ler/Parsing.c:49502:
warning:
‘__pyx_pf_6Cython_8Compiler_8Scanning_12PyrexScanner_14included_files___set_
_’
defined but not used
/root/software/Mathematik/sage-4.3.1/spkg/build/cython-0.12/src/ 
Cython/Compi

ler/Parsing.c:49531:
warning:
‘__pyx_pf_6Cython_8Compiler_8Scanning_12PyrexScanner_17indentation_stack___g
et__’
defined but not used
/root/software/Mathematik/sage-4.3.1/spkg/build/cython-0.12/src/ 
Cython/Compi

ler/Parsing.c:49547:
warning:
‘__pyx_pf_6Cython_8Compiler_8Scanning_12PyrexScanner_17indentation_stack___s
et__’
defined but not used
/root/software/Mathematik/sage-4.3.1/spkg/build/cython-0.12/src/ 
Cython/Compi

ler/Parsing.c:49576:
warning: ‘__pyx_pf_6Cython_4Plex_8Scanners_7Scanner_5queue___get__’  
defined

but not used
/root/software/Mathematik/sage-4.3.1/spkg/build/cython-0.12/src/ 
Cython/Compi

ler/Parsing.c:49592:
warning: ‘__pyx_pf_6Cython_4Plex_8Scanners_7Scanner_5queue___set__’  
defined

but not used
/root/software/Mathematik/sage-4.3.1/spkg/build/cython-0.12/src/ 
Cython/Compi

ler/Parsing.c:
In function
‘__pyx_f_6Cython_8Compiler_7Parsing_p_positional_and_keyword_args’:
/root/software/Mathematik/sage-4.3.1/spkg/build/cython-0.12/src/ 
Cython/Compi

ler/Parsing.c:31519:




internal compiler error: in merge_alias_info, at tree-ssa-copy.c:235



Please submit a full bug report,
with preprocessed source if appropriate.
See URL:http://www.suse.de/feedback for instructions.
error: command 'gcc' failed with exit status 1
Error installing Cython

How can the problem be fixed? What further information is
needed?


What compiler version are you using? (gcc -v) Is it possible to upgrade?

- Robert

--
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://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Singular-nc_algebra-question

2010-02-01 Thread Kakaz
I try to define some noncommutative structures in Sage, but I do not
know exactly how. I found this thread:
http://groups.google.com/group/sage-support/browse_thread/thread/73ea537d657a3654/ebdc76a97a0b1ea6?lnk=gstq=noncommutative#ebdc76a97a0b1ea6
and I check examples, but unfortunately I do not know how use
substitute function from singular when I am in sage.

So I wrote this worksheet:  http://www.sagenb.org/home/pub/1474/
maybe someone could help me to explain how to do the same not in
singular environment, when of course it works pretty, but in sage, as
usual.

Best Regards
Kazek

-- 
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://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] Sage in calculators

2010-02-01 Thread calcpage
I was uin my kid's iPod Touch the other day to edit my sage notebook 
files at www.sagenb.org using safari no problem!


HTH,
A. Jorge Garcia
http://calcpage.tripod.com

Teacher  Professor
Applied Mathematics, Physics  Computer Science
Baldwin Senior High School  Nassau Community College

--
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://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] Re: sage blog

2010-02-01 Thread calcpage
OK, thanx for trying.

Regards,
A. Jorge Garcia
http://calcpage.tripod.com

Teacher  Professor
Applied Mathematics, Physics  Computer Science
Baldwin Senior High School  Nassau Community College

-- 
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://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: [sage-edu] dSage, where for art thou, dSage?

2010-02-01 Thread Minh Nguyen
Hi,

On Tue, Feb 2, 2010 at 9:00 AM,  calcp...@aol.com wrote:
 Oh, OK, so to use dSage I need to install an spkg locally.

Yes, if there's an spkg for dsage. However, note that dsage is not in
any of the spkg repositories. It's not in the standard repository [1],
nor the optional repository [2], nor the experimental repository [3].
If there's a demand for dsage, someone needs to step up and volunteer
to maintain a dsage spkg.


[1] http://www.sagemath.org/packages/standard

[2] http://www.sagemath.org/packages/optional

[3] http://www.sagemath.org/packages/experimental

-- 
Regards
Minh Van Nguyen

-- 
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://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] Re: sage blog

2010-02-01 Thread calcpage
OOPs, I'm sorry, I am a total noob wrt rss.  How do I enable this?

HTH,
A. Jorge Garcia
http://calcpage.tripod.com

Teacher  Professor
Applied Mathematics, Physics  Computer Science
Baldwin Senior High School  Nassau Community College

-- 
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://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: [sage-edu] dSage, where for art thou, dSage?

2010-02-01 Thread Minh Nguyen
Hi,

On Tue, Feb 2, 2010 at 9:04 AM,  calcp...@aol.com wrote:

SNIP

 BTW, how does the @parallel decorator
 work? Is this part of pp?

See the file

SAGE_ROOT/devel/sage-main/sage/parallel/decorate.py

especially the function parallel() in that module.

-- 
Regards
Minh Van Nguyen

-- 
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://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: exponential and simplify

2010-02-01 Thread andrejv
On Feb 1, 4:47 pm, Simon simonjty...@gmail.com wrote:
 Hi, this is hopefully an easy question:

 As a simple exercise, I'm trying to show that \int_0^{2\pi} e^{i (m-n)
 x}dx = 2\pi\delta_{mn} for integer m, n.
 Here's how I did it:

 sage: var('m,n'); w = SR.wild(0);
 sage: assume(n, 'integer');assume(m, 'integer')
 sage: int = integrate(e^(i*(m-n)*x),x,0,2*pi)
 sage: print int.limit(m=n)
 sage: print int.subs({e^(w):cosh(w)+sinh(w)}).simplify_trig()
 2*pi
 0

 The bit I don't like is using the substitution... it should not be
 nesc.  The problem, I think, lies at

 sage: sin(2*pi*n).simplify_trig()  # this works
 sage: e^(i*2*pi*m).simplify_full() # this doesn't work
 0
 e^(2*I*pi*m)

In Maxima you would use rectform to convert the expression from polar
to rect form:

sage: int._maxima_().rectform()
0
sage: e^(i*2*pi*m)._maxima_().rectform()
e^(2*I*pi*m)
sage: exp(i*2*pi*m)._maxima_().rectform()
1

HTH, Andrej

-- 
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://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] Re: Sage in calculators

2010-02-01 Thread Jaap Spies

Harald Schilly wrote:

On Feb 1, 4:59 am, Cal Armstrongsig...@gmail.com  wrote:

I would rather see it ported to a device that students already have, their
smartphones, instead of saddling them with the purchase of another device.


I just want to add that it is already possible to run sympy (pure
python) inside android's python scripting environment. Hence, you can
already do some symbolics in ipython, which is quite nice ;)



How do you do that? Can't find python on my android :(

Jaap



H



--
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://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: [sage-edu] dSage, where for art thou, dSage?

2010-02-01 Thread Minh Nguyen
Hi,

On Tue, Feb 2, 2010 at 11:01 AM,  calcp...@aol.com wrote:
 OK, let me get this straight - if I download SAGE binaries (or source files
 to compile) to install locally on my linux boxes on my LAN, I can use
 parallel python to run a cluster?

I'm not sure about that. See the website of Parallel Python [1] for
what it has to offer. There are many other Python packages that might
do what you want. See the Python website [2] for more information.


 In other words, is pp included when
 installing SAGE locally?

Third-party Python packages can be installed under the following
directory of your Sage installation:

SAGE_ROOT/local/lib/python/site-packages/

A Python package usually comes with a file called setup.py, located at
its top-level directory. To install, say, pp under the above directory
of your Sage installation, cd to the top-level directory of pp and
issue the command

/path/to/sage-x.y.z/sage -python setup.py install

This would install pp under SAGE_ROOT/local/lib/python/site-packages/.
Once pp is installed you can use it from the Sage command line
interface by importing pp as a module. For more information on using
pp, please refer to its website.

[1] http://www.parallelpython.com

[2] http://wiki.python.org/moin/ParallelProcessing

-- 
Regards
Minh Van Nguyen

-- 
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://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: Sage in calculators

2010-02-01 Thread Harald Schilly
On Feb 1, 11:57 pm, Jaap Spies j.sp...@hccnet.nl wrote:

 How do you do that? Can't find python on my android :(

I don't have android, but i think
1. http://code.google.com/p/android-scripting/
2. http://ondrejcertik.blogspot.com/2009/08/sympy-on-google-phone.html

if it works - blog it ;)

H

-- 
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://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: exponential and simplify

2010-02-01 Thread kcrisman

 In Maxima you would use rectform to convert the expression from polar
 to rect form:

 sage: int._maxima_().rectform()
 0
 sage: e^(i*2*pi*m)._maxima_().rectform()
 e^(2*I*pi*m)
 sage: exp(i*2*pi*m)._maxima_().rectform()
 1

Thanks, Andrej, that is very helpful.  Am I correct in assuming that
all e^foo with %i in foo are considered to be polar and would not
simplify otherwise?  Is there a way to tell whether a given (a priori
unknown) Maxima expression is in a form such that rectform would be
useful (that is, does rectform only apply to things in the form e^foo
or (r,theta), if there is such an alternate polar form)?

- kcrisman

-- 
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://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: installation problems for Sage binary on Mac

2010-02-01 Thread bazzoola
I am seeing the same problem

I have a 32-bit core duo CPU. a i386 32-bit kernel and I downloaded
sage-4.3.1-OSX-10.6-i386-Darwin.dmg but whenever I run sage I get the
infamous bad cpu type error

On Jan 27, 8:22 pm, Andri Egilsson andri.egils...@gmail.com wrote:
 Update: No, the 10.5 version does not appear to work (Bad CPU type
 error).

 On Jan 28, 12:48 am, Andri Egilsson andri.egils...@gmail.com wrote:



   Why don't you use the 10.5 version?

  Well, I assumed that the 10.5 version was only for 64 bit systems (the
  filename is sage-4.3.1-OSX-10.5-i386-64bit-i386-Darwin.dmg) but now
  that you mention it, it can be construed as being for i386 _and_ 64bit-
  i386, so I'll try that.

  Best,
  Andri

To avoid this confusion (and perhaps save a little wasted bandwidth),
shouldn't the file be called sage-4.3.1-OSX-10.6-i386-64bit-
Darwin.dmg?

   That's a good idea...

    -- William

Regards,
Andri

On Jan 26, 7:54 pm, gsw georgswe...@googlemail.com wrote:
On 24 Jan., 15:38, davidgal...@gmail.com davidgal...@gmail.com
wrote:

 I downloaded

 sage-4.3.1-OSX-10.6-i386-Darwin.dmg

 copied the contents to my disk and tried to execute sage.
 I received the messages

 --
 | Sage Version 4.3.1, Release Date: 2010-01-20                       
 |
 | Type notebook() for the GUI, and license() for information.        
 |
 --
 env: python: Bad CPU type in executable
 logout

MacMini 1.66GHz Core 2
 MacOSX10.6.2

Hi,

it seems that there are two different people reporting two different
problems here.

 - OnMacOSX10.5.8, the respective 10.5 dmg of Sage should be
used (do not expect the 10.6 one to work, sorry).

 - On aMacMini with 1.66GHz, I presume you haven't got a Core 2
CPU, but instead a 1.66 GHz Intel Core Duo (T2300) CPU.

Sorry, we don't have access to an old Core Duo machine (as opposed
to the newer Core 2 Duo machines, which are not only faster, but
have an enhanced command set). So in the latter case, I fear you'll
have to download a Sage source distribution and build Sage yourself
(type make, wait a few hours, but that's it).

Cheers,
Georg

--
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 
athttp://groups.google.com/group/sage-support
URL:http://www.sagemath.org

   --
   William Stein
   Associate Professor of Mathematics
   University of Washingtonhttp://wstein.org

-- 
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://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: Profiling code in Sage

2010-02-01 Thread Stefan
Ah! Running cp.run('Problem3A()') did the job.  Nevermind!

On Feb 1, 9:07 pm, Stefan stefan.louis.no...@gmail.com wrote:
 Hi guys,

 After searching through the newsgroup for any posts on profiling code
 in Sage, I thought I'd make a post asking about what possible methods
 are available.

 (I did come across a post that utilized 'prun', but I couldn't figure
 out how to get it to work.)

 Anyway, after running the code:

 import cProfile as cp
 cp.run('Problem3A')

 Where Problem3A is a function that was previously defined, the result
 is:

 2 function calls in 0.000 CPU seconds

    Ordered by: standard name

    ncalls  tottime  percall  cumtime  percall filename:lineno
 (function)
         1    0.000    0.000    0.000    0.000
 string:1(module)
         1    0.000    0.000    0.000    0.000 {method 'disable' of
 '_lsprof.Profiler' objects}

 (This was done on the Sagenb.org site)

 Can anyone point me in the right direction for profiling a Python
 function in Sage?

-- 
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://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] Profiling code in Sage

2010-02-01 Thread Minh Nguyen
Hi Stefan,

On Tue, Feb 2, 2010 at 1:07 PM, Stefan stefan.louis.no...@gmail.com wrote:

SNIP

 Can anyone point me in the right direction for profiling a Python
 function in Sage?

Here's an example on using prun from within Sage:

sage: %prun next_prime(10)
 4 function calls in 0.000 CPU seconds

   Ordered by: internal time

   ncalls  tottime  percall  cumtime  percall filename:lineno(function)
10.0000.0000.0000.000 {method 'next_prime' of
'sage.rings.integer.Integer' objects}
10.0000.0000.0000.000 arith.py:772(next_prime)
10.0000.0000.0000.000 string:1(module)
10.0000.0000.0000.000 {method 'disable' of
'_lsprof.Profiler' objects}


For more information on the command prun(), see its doctring by
issuing the command prun?.

-- 
Regards
Minh Van Nguyen

-- 
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://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: Listing all k-minors of a matrix?

2010-02-01 Thread Jason Grout

On 02/01/2010 08:12 AM, javier wrote:

You can see the source of the minors method using

sage: M.minors??

(you need to have defined M beforehand).

By browsing at that source one can easily find the general way of
doing it:

sage: A = Matrix(QQ, 3, [1,2,3,4,5,6,7,8,9])
sage: [A.matrix_from_rows_and_columns(rows, cols) for cols in
combinations_iterator(range(A.ncols()), 2) for rows in
combinations_iterator(range(A.nrows()),2)]
[
[1 2]  [1 2]  [4 5]  [1 3]  [1 3]  [4 6]  [2 3]  [2 3]  [5 6]
[4 5], [7 8], [7 8], [4 6], [7 9], [7 9], [5 6], [8 9], [8 9]
]




Or slightly easier to read:

sage: A = Matrix(QQ, 3, [1,2,3,4,5,6,7,8,9])
sage: [A[rows,cols] for cols in Combinations(A.ncols(),2) for rows in 
Combinations(A.nrows(),2)]

[
[1 2]  [1 2]  [4 5]  [1 3]  [1 3]  [4 6]  [2 3]  [2 3]  [5 6]
[4 5], [7 8], [7 8], [4 6], [7 9], [7 9], [5 6], [8 9], [8 9]
]



Thanks,

Jason

--
Jason Grout

--
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://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: exponential and simplify

2010-02-01 Thread Simon
Thank you both for your replies.
It's interesting that in Andrej's examples, the e^x and exp(x) form do
not yield the same result,
since in maxima (which I know next to nothing about) we have
(%i1) declare(m, integer);
(%o1)done
(%i2)  rectform(exp(2*m*%i*%pi));
(%o2)  1
(%i3)  rectform(%e^(2*m*%i*%pi));
(%o3)  1

Is this a problem with the sage conversion?
Note these two different behaviours:

sage: var('m'); assume(m, 'integer')
m
sage: e^(i*2*pi*m)._maxima_().rectform()
e^(2*I*pi*m)
sage: exp(i*2*pi*m)._maxima_().rectform()
1

but (this was tested in a new sage/maxima session)

sage: var('m'); maxima('declare(m, integer)')
m
done
sage: maxima(e^(i*2*pi*m)).rectform()
1
sage: maxima(exp(i*2*pi*m)).rectform()
1






-- 
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://groups.google.com/group/sage-support
URL: http://www.sagemath.org