[sage-support] Re: Get the number of variables of multivariate polynomial

2009-04-01 Thread domingo.domingogo...@gmail.com

Thanks again!!
Best regards,
Domingo


On 31 mar, 22:12, William Stein  wrote:
> On Tue, Mar 31, 2009 at 12:24 PM, domingo.domingogo...@gmail.com
>
>  wrote:
>
> > Thank you very much Martin and William.
> > Domingo,
>
> > P. d. One question, for the next time,
> > how I see the api of the multivariate polynomials?
>
> If f is any object you can do
>
> f.
>
>
>
>
>
> > On 31 mar, 18:47, William Stein  wrote:
> >> On Tue, Mar 31, 2009 at 9:34 AM, Martin Albrecht
>
> >>  wrote:
>
> >> > On Tuesday 31 March 2009, William Stein wrote:
> >> >> R.ngens()
>
> >> >> On Tue, Mar 31, 2009 at 7:58 AM, domingo.domingogo...@gmail.com
>
> >> >>  wrote:
> >> >> > Dear all,
> >> >> > I am new to Sage and after reading the help, I couldn't find a
> >> >> > function that from a multivariate polynomial
> >> >> > returns the number of variables.
> >> >> > if
> >> >> > R=PolynomialRing(ZZ, 20, "z",order="deglex")
> >> >> > f=R.0*R.1
>
> >> > I think he wants:
>
> >> >   f.nvariables()
>
> >> Ah, that works.  Also one has:
>
> >> sage: R=PolynomialRing(ZZ, 20, "z",order="deglex")
> >> sage: f = R.0
> >> sage: f.nvariables()
> >> 1
> >> sage: f.parent().ngens()
> >> 20
>
> >> William
>
> --
> 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
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: range endpoints

2009-04-01 Thread zieglerk

Hi,

>
> Even better, of course, is [a..b] and (a...b).
>

this seems quite intuitive and handy, but I haven't found the
documentation for both anywhere.  Neither among the topic "lists" nor
when searching for "intervals".

Can you give me a hint.

Konstantin

--~--~-~--~~~---~--~~
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
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Groebner Basis question

2009-04-01 Thread Martin Albrecht

> Martin, since this is a frequently asked question, do you think
> something about this
> should be added to the groebner_basis docstring?  The groebner_basis
> docstring is
> 3 pages right now, so this shouldn't be too far down there.   Thanks
> for such extensive
> documentation for that command already.
>
> William

This is now:

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

I'll have a patch ready once I updated to the current alpha (docstrings in 
multi_polynomial_ideal.py changed too much since 3.4.0 to provide a patch on 
its basis).

Cheers,
Martin

-- 
name: Martin Albrecht
_pgp: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x8EF0DC99
_otr: 47F43D1A 5D68C36F 468BAEBA 640E8856 D7951CCF
_www: http://www.informatik.uni-bremen.de/~malb
_jab: martinralbre...@jabber.ccc.de


--~--~-~--~~~---~--~~
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
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Installation problem

2009-04-01 Thread Mathieu Dutour
>
> On Tue, Mar 31, 2009 at 7:10 AM, mathieu  wrote:
> >
> > Dear all,
> >
> > I experienced program installing version 3.4 of sage.
> > The system is linux Fedora 8.
>
> Post a link to the *complete* log.
> Which gcc version?

gcc version 4.1.2 20070925 (Red Hat 4.1.2-33)

Precisely which sage tarball (sage-3.4.tar I guess)?

sage-3.4.tar

Precisely what kinds of hardware?

Linux neptun.irb.hr 2.6.26.8-57.fc8PAE #1 SMP Thu Dec 18 19:09:47 EST 2008
i686 i686 i386 GNU/Linux
4 processors Intel Xeon 5120 at 1.86GHz

Have you ever built Sage before on that computer?

no


> Do any of the binaries work?

Binaries of 3.1 works but not binaries of 3.4

>
> > Here is the output:
> > checking whether we are using the GNU C compiler... (cached) yes
> > checking whether gcc accepts -g... (cached) yes
> > checking for gcc option to accept ISO C89... (cached) none needed
> > checking dependency style of gcc... (cached) gcc3
> > checking for string.h... (cached) yes
> > checking for gmp.h... yes
> > checking for valid GMP... yes
> > checking for mpfr.h... yes
> > checking MPFR library... configure: error: /users/mathieu/opt/sage-3.4/
> > local/lib/libmpfr.so or libmpfr.dylib not found
> > Error configuring mpfi
> >
> > real0m11.538s
> > user0m2.578s
> > sys 0m5.651s
> > sage: An error occurred while installing mpfi-1.3.4-cvs20071125.p7
> > Please email sage-devel http://groups.google.com/group/sage-devel
> > explaining the problem and send the relevant part of
> > of /users/mathieu/opt/sage-3.4/install.log.  Describe your computer,
> > operating system, etc.
> > If you want to try to fix the problem, yourself *don't* just cd to
> > /users/mathieu/opt/sage-3.4/spkg/build/mpfi-1.3.4-cvs20071125.p7 and
> > type 'make'.
> > Instead type "/users/mathieu/opt/sage-3.4/sage -sh"
> > in order to set all environment variables correctly, then cd to
> > /users/mathieu/opt/sage-3.4/spkg/build/mpfi-1.3.4-cvs20071125.p7
> > (When you are done debugging, you can type "exit" to leave the
> > subshell.)
> > make[1]: *** [installed/mpfi-1.3.4-cvs20071125.p7] Error 1
> > make[1]: Leaving directory `/home/remsen/home/mathieu/opt/sage-3.4/
> > spkg'
>

--~--~-~--~~~---~--~~
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
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: range endpoints

2009-04-01 Thread William Stein

On Wed, Apr 1, 2009 at 3:30 AM, zieglerk  wrote:
>
> Hi,
>
>>
>> Even better, of course, is [a..b] and (a...b).
>>
>
> this seems quite intuitive and handy, but I haven't found the
> documentation for both anywhere.  Neither among the topic "lists" nor
> when searching for "intervals".
>
> Can you give me a hint.

This is a Sage-specific feature that isn't in Python.  It was proposed
in a Python PEP but that didn't get into Python for some reason.
Below is the very minimal docstring and the actual source code.   I
recommend you just try it out.  In short [a..b] makes a list from a to
b,
[a,a+eps,..,b] makes a list in steps of eps, and (a..b),
(a,a+eps,..,b) are similar, but give a generator (lazy list) instead
of a list.


def parse_ellipsis(code, preparse_step=True):
"""
Preparse [0,2,..,n] notation.

EXAMPLES:
sage: from sage.misc.preparser import parse_ellipsis
sage: parse_ellipsis("[1,2,..,n]")
'(ellipsis_range(1,2,Ellipsis,n))'
sage: parse_ellipsis("for i in (f(x) .. L[10]):")
'for i in (ellipsis_iter(f(x) ,Ellipsis, L[10])):'
"""
ix = code.find('..')
while ix != -1:
if ix == 0:
raise SyntaxError, "Cannot start line with ellipsis."
elif code[ix-1]=='.':
# '...' be valid Python in index slices
code = code[:ix-1] + "Ellipsis" + code[ix+2:]
elif len(code) >= ix+3 and code[ix+2]=='.':
# '...' be valid Python in index slices
code = code[:ix] + "Ellipsis" + code[ix+3:]
else:
start_list, end_list = containing_block(code, ix, ['()','[]'])
arguments = code[start_list+1:end_list-1].replace('...',
',Ellipsis,').replace('..', ',Ellipsis,')
arguments = re.sub(r',\s*,', ',', arguments)
if preparse_step:
arguments = arguments.replace(';', ', step=')
range_or_iter = 'range' if code[start_list]=='[' else 'iter'
code = "%s(ellipsis_%s(%s))%s" %  (code[:start_list],
   range_or_iter,
   arguments,
   code[end_list:])
ix = code.find('..')
return code

--~--~-~--~~~---~--~~
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
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Installation problem

2009-04-01 Thread William Stein

On Wed, Apr 1, 2009 at 5:51 AM, Mathieu Dutour  wrote:
>> On Tue, Mar 31, 2009 at 7:10 AM, mathieu  wrote:
>> >
>> > Dear all,
>> >
>> > I experienced program installing version 3.4 of sage.
>> > The system is linux Fedora 8.
>>
>> Post a link to the *complete* log.

You didn't post a link to the log, so...

>> Which gcc version?
>
> gcc version 4.1.2 20070925 (Red Hat 4.1.2-33)
>
>> Precisely which sage tarball (sage-3.4.tar I guess)?
>
> sage-3.4.tar
>
>> Precisely what kinds of hardware?
>
> Linux neptun.irb.hr 2.6.26.8-57.fc8PAE #1 SMP Thu Dec 18 19:09:47 EST 2008
> i686 i686 i386 GNU/Linux
> 4 processors Intel Xeon 5120 at 1.86GHz
>
>> Have you ever built Sage before on that computer?
>
> no
>
>>
>> Do any of the binaries work?
>
> Binaries of 3.1 works but not binaries of 3.4

So the CentOS binaries failed?

William

>
>> >
>> > Here is the output:
>> > checking whether we are using the GNU C compiler... (cached) yes
>> > checking whether gcc accepts -g... (cached) yes
>> > checking for gcc option to accept ISO C89... (cached) none needed
>> > checking dependency style of gcc... (cached) gcc3
>> > checking for string.h... (cached) yes
>> > checking for gmp.h... yes
>> > checking for valid GMP... yes
>> > checking for mpfr.h... yes
>> > checking MPFR library... configure: error: /users/mathieu/opt/sage-3.4/
>> > local/lib/libmpfr.so or libmpfr.dylib not found
>> > Error configuring mpfi
>> >
>> > real    0m11.538s
>> > user    0m2.578s
>> > sys     0m5.651s
>> > sage: An error occurred while installing mpfi-1.3.4-cvs20071125.p7
>> > Please email sage-devel http://groups.google.com/group/sage-devel
>> > explaining the problem and send the relevant part of
>> > of /users/mathieu/opt/sage-3.4/install.log.  Describe your computer,
>> > operating system, etc.
>> > If you want to try to fix the problem, yourself *don't* just cd to
>> > /users/mathieu/opt/sage-3.4/spkg/build/mpfi-1.3.4-cvs20071125.p7 and
>> > type 'make'.
>> > Instead type "/users/mathieu/opt/sage-3.4/sage -sh"
>> > in order to set all environment variables correctly, then cd to
>> > /users/mathieu/opt/sage-3.4/spkg/build/mpfi-1.3.4-cvs20071125.p7
>> > (When you are done debugging, you can type "exit" to leave the
>> > subshell.)
>> > make[1]: *** [installed/mpfi-1.3.4-cvs20071125.p7] Error 1
>> > make[1]: Leaving directory `/home/remsen/home/mathieu/opt/sage-3.4/
>> > spkg'
>
>
> >
>



-- 
William Stein
Associate Professor of Mathematics
University of Washington
http://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
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Sage Days 16 : Barcelona

2009-04-01 Thread Enrique Gonzalez Jimenez
Sage Days 16 will take place June 22-27, 2009, and will take place at the
FME, in the campus of the UPC, in Barcelona.

More info:

http://www.uam.es/enrique.gonzalez.jimenez/sagedays16/*
http://wiki.sagemath.org/days16
*

--~--~-~--~~~---~--~~
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
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Installation problems

2009-04-01 Thread MR

Terve all,
I tried to install sage-3.4-PowerPC-OSX10.5-PowerMacintosh-Darwin.dmg
to my G5 with mac os 10.5.6

It installed OK but the GUI does not start.

Here's the Terminal text:

[dsl-hkibrasgw2-ffd4c000-241:~] mrahikka% /Applications/sage/sage/
sage ; exit;
--
| Sage Version 3.4, Release Date: 2009-03-11 |
| Type notebook() for the GUI, and license() for information.|
--
The SAGE install tree may have moved.
Regenerating Python.pyo and .pyc files that hardcode the install PATH
(please wait at
most a few minutes)...
Do not interrupt this.
sage: notebook()
The notebook files are stored in: /Volumes/Uusi_kovalevy/Users/
mrahikka/.sage//sage_notebook
**
**
* Open your web browser to http://localhost:8000 *
**
**
Traceback (most recent call last):
  File "/Applications/sage/sage/local/lib/python2.5/site-packages/
twisted/application/app.py", line 614, in run
runApp(config)
  File "/Applications/sage/sage/local/lib/python2.5/site-packages/
twisted/scripts/twistd.py", line 23, in runApp
_SomeApplicationRunner(config).run()
  File "/Applications/sage/sage/local/lib/python2.5/site-packages/
twisted/application/app.py", line 330, in run
self.application = self.createOrGetApplication()
  File "/Applications/sa
 and lots of error

Please help.

MR

--~--~-~--~~~---~--~~
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
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] reading from clipboard

2009-04-01 Thread ggrafendorfer

Hi,
this is a pure python question:

can anybody tell me how to read (and maybe also write) the content of
the system clipboard,(i.e. the last string which was copied or
cuttet),

thanks, 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 at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Comparing generated subgroups

2009-04-01 Thread jerome.p.lefeb...@gmail.com

I have a problem in comparing subgroups.
I'm building a list of all cyclic subgroups of a group, but I can't
seem to do a simple "in" look up to see if I've already generated a
particular subgroups.

So, I'm wondering what is the better way to compare two subgroups.

This is some test code to figure out what is going on.

G = SymmetricGroup(4)
H = G.subgroup([G((1,2,3))])
K = G.subgroup([G((2,3,1))])

print H
# Subgroup of SymmetricGroup(4) generated by [(1,2,3)]
print K
# Subgroup of SymmetricGroup(4) generated by [(1,2,3)]

# Yet the following returns false
print H == K
# And this one returns true
print H.list() == K.list()

# As well both the following are true
print H.is_subgroup(K)
print K.is_subgroup(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
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: reading from clipboard

2009-04-01 Thread Jason Grout

ggrafendorfer wrote:
> Hi,
> this is a pure python question:
> 
> can anybody tell me how to read (and maybe also write) the content of
> the system clipboard,(i.e. the last string which was copied or
> cuttet),
> 

The following thread was the first result of a google search for "python 
system clipboard".  Note that it needs TK (and python bindings) 
installed, so I don't know if it will work with Sage.


http://mail.python.org/pipermail/python-list/2003-March/192906.html

You might ask on the python mailing list.  That's where the answer above 
comes from.

Jason


--~--~-~--~~~---~--~~
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
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Installation problem

2009-04-01 Thread Mathieu Dutour
>
> On Wed, Apr 1, 2009 at 5:51 AM, Mathieu Dutour 
> wrote:
> >> On Tue, Mar 31, 2009 at 7:10 AM, mathieu 
> wrote:
> >> >
> >> > Dear all,
> >> >
> >> > I experienced program installing version 3.4 of sage.
> >> > The system is linux Fedora 8.
> >>
> >> Post a link to the *complete* log.
>
> You didn't post a link to the log, so...

The full result of make > RESULT_compilation_sage3.4 is available from
http://www.liga.ens.fr/~dutour/Sending/RESULT_compilation_sage3.4

>> Do any of the binaries work?
> >
> > Binaries of 3.1 works but not binaries of 3.4
>
> So the CentOS binaries failed?
>
I am using Fedora 8 and the binaries for fedora 9 do not work on
fedora 9 because of a library issue.

But the CentOS binaries work. Thank you very much.

  Mathieu

--~--~-~--~~~---~--~~
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
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Solver (Is 40*sqrt(10)-x positive, negative, or zero?)

2009-04-01 Thread mikkelbue

Can anyone tell me why this syntax will not work (I keep getting: "Is
40*sqrt(10)-x  positive, negative, or zero?")?

h=maxima.de_solve('diff(y,x) = -0.05 * sqrt(y)', ['x','y'],[0,10])
assume(40*sqrt(10)-x>0)
y=var('y')
solve(h,y)

Regards, Mikkel

--~--~-~--~~~---~--~~
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
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Solver (Is 40*sqrt(10)-x positive, negative, or zero?)

2009-04-01 Thread David Joyner

I don't know the answer to your question (it has something to do
with the Maxima-Sage interface) but the following might help
provide a work-around:


sage: soln = maxima.de_solve('diff(y,x) = -0.05 * sqrt(y)', ['x','y'])
sage: ssoln = str(soln).replace("%c","c").replace("40 ","40*").replace("=","==")
sage: solve(sol,c)
[c == -40*sqrt(y) - x]
sage: solve(sol,c)[0].rhs()
-40*sqrt(y) - x
sage: cxy = solve(sol,c)[0].rhs()
sage: cxy(0,10)
-40*sqrt(10)
sage:



On Wed, Apr 1, 2009 at 12:46 PM, mikkelbue  wrote:
>
> Can anyone tell me why this syntax will not work (I keep getting: "Is
> 40*sqrt(10)-x  positive, negative, or zero?")?
>
> h=maxima.de_solve('diff(y,x) = -0.05 * sqrt(y)', ['x','y'],[0,10])
> assume(40*sqrt(10)-x>0)
> y=var('y')
> solve(h,y)
>
> Regards, Mikkel
>
> >
>

--~--~-~--~~~---~--~~
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
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Solver (Is 40*sqrt(10)-x positive, negative, or zero?)

2009-04-01 Thread William Stein

On Wed, Apr 1, 2009 at 9:46 AM, mikkelbue  wrote:
>
> Can anyone tell me why this syntax will not work (I keep getting: "Is
> 40*sqrt(10)-x  positive, negative, or zero?")?
>
> h=maxima.de_solve('diff(y,x) = -0.05 * sqrt(y)', ['x','y'],[0,10])
> assume(40*sqrt(10)-x>0)
> y=var('y')
> solve(h,y)
>
> Regards, Mikkel

You have to tell *maxima* to make the assumption, not Sage:

h=maxima.de_solve('diff(y,x) = -0.05 * sqrt(y)', ['x','y'],[0,10])
maxima.assume(40*sqrt(10)-x>0)
y=var('y')
solve(h,y)

--~--~-~--~~~---~--~~
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
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Sage Days 16 : Barcelona

2009-04-01 Thread Jose Guzman

Enrique Gonzalez Jimenez wrote:
> Sage Days 16 will take place June 22-27, 2009, and will take place at 
> the FME, in the campus of the UPC, in Barcelona.
>
> More info:
>
> http://www.uam.es/enrique.gonzalez.jimenez/sagedays16/*
> http://wiki.sagemath.org/days16
> *
> >
Dear Enrique,

I would found very interesting to attend to these sage days. 
Unfortunately, there is no much information regarding the content of the 
meeting in the web.  I would like to ask you if this meeting is 
exclusively oriented for developers or if it is possible (or 
interesting) for users attend to specialized sage workshops (ie . in 
numerical analysis, statistics, stochastic processes, etc.. ). As 
researcher in biomedical sciences these topics are my strong interest, 
and I think this would be a  good opportunity to get involved with sage.

You can contact me in jose.guzman(at)physiologie.uni-freiburg.de any 
time (in Spanish if you want).

Thank you very much in advance.

Jose Guzmán.



--~--~-~--~~~---~--~~
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
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Installation problems

2009-04-01 Thread William Stein

On Wed, Apr 1, 2009 at 7:35 AM, MR  wrote:
>
> Terve all,
> I tried to install sage-3.4-PowerPC-OSX10.5-PowerMacintosh-Darwin.dmg
> to my G5 with mac os 10.5.6
>
> It installed OK but the GUI does not start.
>
> Here's the Terminal text:
>
> [dsl-hkibrasgw2-ffd4c000-241:~] mrahikka% /Applications/sage/sage/
> sage ; exit;
> --
> | Sage Version 3.4, Release Date: 2009-03-11                         |
> | Type notebook() for the GUI, and license() for information.        |
> --
> The SAGE install tree may have moved.
> Regenerating Python.pyo and .pyc files that hardcode the install PATH
> (please wait at
> most a few minutes)...
> Do not interrupt this.
> sage: notebook()
> The notebook files are stored in: /Volumes/Uusi_kovalevy/Users/
> mrahikka/.sage//sage_notebook
> **
> *                                                *
> * Open your web browser to http://localhost:8000 *
> *                                                *
> **
> Traceback (most recent call last):
>  File "/Applications/sage/sage/local/lib/python2.5/site-packages/
> twisted/application/app.py", line 614, in run
>    runApp(config)
>  File "/Applications/sage/sage/local/lib/python2.5/site-packages/
> twisted/scripts/twistd.py", line 23, in runApp
>    _SomeApplicationRunner(config).run()
>  File "/Applications/sage/sage/local/lib/python2.5/site-packages/
> twisted/application/app.py", line 330, in run
>    self.application = self.createOrGetApplication()
>  File "/Applications/sa
>  and lots of error
>
> Please help.

Actually the "lots of error" that you deleted above is the only thing
that could possibly help somebody debug your problem...

--~--~-~--~~~---~--~~
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
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Solver (Is 40*sqrt(10)-x positive, negative, or zero?)

2009-04-01 Thread mikkelbue

Yay! Thanks.

On 1 Apr., 19:33, William Stein  wrote:
> On Wed, Apr 1, 2009 at 9:46 AM, mikkelbue  wrote:
>
> > Can anyone tell me why this syntax will not work (I keep getting: "Is
> > 40*sqrt(10)-x  positive, negative, or zero?")?
>
> > h=maxima.de_solve('diff(y,x) = -0.05 * sqrt(y)', ['x','y'],[0,10])
> > assume(40*sqrt(10)-x>0)
> > y=var('y')
> > solve(h,y)
>
> > Regards, Mikkel
>
> You have to tell *maxima* to make the assumption, not Sage:
>
> h=maxima.de_solve('diff(y,x) = -0.05 * sqrt(y)', ['x','y'],[0,10])
> maxima.assume(40*sqrt(10)-x>0)
> y=var('y')
> solve(h,y)
--~--~-~--~~~---~--~~
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
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Comparing generated subgroups

2009-04-01 Thread simon . king

Dear Jerome,

On 1 Apr., 10:48, "jerome.p.lefeb...@gmail.com"
 wrote:
> G = SymmetricGroup(4)
> H = G.subgroup([G((1,2,3))])
> K = G.subgroup([G((2,3,1))])

You can see how subgroups are compared: type 'K.__cmp__??' and you'll
see the source code. It is:

def __cmp__(self, other):
if self is other:
return 0
if not isinstance(other, PermutationGroup_generic):
return -1
c = cmp(self.ambient_group(), other.ambient_group())
if c: return c
if self.is_subgroup(other):
return -1
else:
return 1

'K==H' just tests whether 'K.__cmp__(H)' returns zero. As you can see
from the code, this is the case if and *only* if K is the same object
(in computer's memory) as H.

Unfortunately, the output of G.subgroup(...) is not cached. Hence,
even though G((1,2,3))==G((2,3,1)), the two subgroups are not
considered being equal.

I think this is a bug. Before returning -1 if self.is_subgroup(other),
it should be tested whether other.is_subgroup(self), in which case 0
should be returned. Do people agree?

Yours,
 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
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Comparing generated subgroups

2009-04-01 Thread William Stein

2009/4/1 simon.king :
>
> Dear Jerome,
>
> On 1 Apr., 10:48, "jerome.p.lefeb...@gmail.com"
>  wrote:
>> G = SymmetricGroup(4)
>> H = G.subgroup([G((1,2,3))])
>> K = G.subgroup([G((2,3,1))])
>
> You can see how subgroups are compared: type 'K.__cmp__??' and you'll
> see the source code. It is:
>
> def __cmp__(self, other):
>        if self is other:
>            return 0
>        if not isinstance(other, PermutationGroup_generic):
>            return -1
>        c = cmp(self.ambient_group(), other.ambient_group())
>        if c: return c
>        if self.is_subgroup(other):
>            return -1
>        else:
>            return 1
>
> 'K==H' just tests whether 'K.__cmp__(H)' returns zero. As you can see
> from the code, this is the case if and *only* if K is the same object
> (in computer's memory) as H.
>
> Unfortunately, the output of G.subgroup(...) is not cached. Hence,
> even though G((1,2,3))==G((2,3,1)), the two subgroups are not
> considered being equal.
>
> I think this is a bug. Before returning -1 if self.is_subgroup(other),
> it should be tested whether other.is_subgroup(self), in which case 0
> should be returned. Do people agree?
>

This is absolutely definitely, without any question, a huge bug.  Open
a trac ticket!

William

--~--~-~--~~~---~--~~
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
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Sage Days 16 : Barcelona

2009-04-01 Thread Enrique Gonzalez Jimenez
Hola Jose:

I think that William will answer better than me.

All the best,

Enrique

On Wed, Apr 1, 2009 at 7:55 PM, Jose Guzman  wrote:

>
> Enrique Gonzalez Jimenez wrote:
> > Sage Days 16 will take place June 22-27, 2009, and will take place at
> > the FME, in the campus of the UPC, in Barcelona.
> >
> > More info:
> >
> > http://www.uam.es/enrique.gonzalez.jimenez/sagedays16/*
> > http://wiki.sagemath.org/days16
> > *
> > >
> Dear Enrique,
>
> I would found very interesting to attend to these sage days.
> Unfortunately, there is no much information regarding the content of the
> meeting in the web.  I would like to ask you if this meeting is
> exclusively oriented for developers or if it is possible (or
> interesting) for users attend to specialized sage workshops (ie . in
> numerical analysis, statistics, stochastic processes, etc.. ). As
> researcher in biomedical sciences these topics are my strong interest,
> and I think this would be a  good opportunity to get involved with sage.
>
> You can contact me in jose.guzman(at)physiologie.uni-freiburg.de any
> time (in Spanish if you want).
>
> Thank you very much in advance.
>
> Jose Guzmán.
>
>
>
> >
>

--~--~-~--~~~---~--~~
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
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Sage Days 16 : Barcelona

2009-04-01 Thread William Stein

2009/4/1 Jose Guzman :
>
> Enrique Gonzalez Jimenez wrote:
>> Sage Days 16 will take place June 22-27, 2009, and will take place at
>> the FME, in the campus of the UPC, in Barcelona.
>>
>> More info:
>>
>> http://www.uam.es/enrique.gonzalez.jimenez/sagedays16/*
>> http://wiki.sagemath.org/days16
>> *
>> >
> Dear Enrique,
>
> I would found very interesting to attend to these sage days.
> Unfortunately, there is no much information regarding the content of the
> meeting in the web.  I would like to ask you if this meeting is
> exclusively oriented for developers or if it is possible (or
> interesting) for users attend to specialized sage workshops (ie . in
> numerical analysis, statistics, stochastic processes, etc.. ). As
> researcher in biomedical sciences these topics are my strong interest,
> and I think this would be a  good opportunity to get involved with sage.

It's definitely not exclusively for developers.  However, the Sage
Days will be aimed at number theory, rather than those areas of
biomedical sciences that you list above.

william

>
> You can contact me in jose.guzman(at)physiologie.uni-freiburg.de any
> time (in Spanish if you want).
>
> Thank you very much in advance.
>
> Jose Guzmán.
>
>
>
> >
>



-- 
William Stein
Associate Professor of Mathematics
University of Washington
http://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
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] sage on my machine

2009-04-01 Thread nerak99

This is the second compile of sage and when runnig notebook() I get a
error message even though sage appears to be working OK. The message I
am talking of is the xprop line.


*  *
* Open your web browser to https://localhost:8000  *
*  *

There is an admin account.  If you do not remember the password,
quit the notebook and type notebook(reset=True).
2009-04-01 21:11:08+0100 [-] Log opened.
2009-04-01 21:11:08+0100 [-] twistd 8.1.0 (/opt/sage-3.4/local/bin/
python 2.5.2) starting up
2009-04-01 21:11:08+0100 [-] reactor class: 
2009-04-01 21:11:08+0100 [-] twisted.web2.channel.http.HTTPFactory
starting on 8000
2009-04-01 21:11:08+0100 [-] Starting factory

xprop:  unable to open display ''
usage:  xprop [-options ...] [[format [dformat]] atom] ...

where options include:
-grammar   print out full grammar for command
line
-display host:dpy  the X server to contact
-id id resource id of window to examine
-name name name of window to examine
-font name name of font to examine
-remove propname   remove a property
-set propname valueset a property to a given value
-root  examine the root window
-len n display at most n bytes of any
property
-notypedo not display the type field
-fs filename   where to look for formats for
properties
-frame don't ignore window manager frames
-f propname format [dformat]   formats to use for property of
given name
-spy   examine window properties forever

Error: no display specified
/usr/bin/xdg-open: line 388: mozilla: command not found
/usr/bin/xdg-open: line 388: netscape: command not found
/usr/bin/xdg-open: line 388: links: command not found
xdg-open: no method available for opening 'https://:8000/?
startup_token=e8faa2927e6d20f765e60f3000bc4d6'
2009-04-01 21:11:58+0100 [HTTPChannel,5,10.10.10.10]




processor   : 0
vendor_id   : AuthenticAMD
cpu family  : 6
model   : 8
model name  : AMD Athlon(tm) XP 2000+
stepping: 1
cpu MHz : 1665.854
cache size  : 256 KB
fdiv_bug: no
hlt_bug : no
f00f_bug: no
coma_bug: no
fpu : yes
fpu_exception   : yes
cpuid level : 1
wp  : yes
flags   : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca
cmov pat pse36 mmx fxsr sse syscall mmxext 3dnowext 3dnow up
bogomips: 3331.70
clflush size: 32
power management: ts

--~--~-~--~~~---~--~~
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
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Why plot() won't plot this function?

2009-04-01 Thread Chris Seberino



On Mar 31, 11:06 am, Jason Grout  wrote:
> Oh, right.  Duh.  I should have seen that.

Since you nor I did see that, should we ask if there is a way to unify
the syntax for symbolic expressions and python functions to make
plotting more "idiot proof" so to speak?  Or maybe there is a good
reason not to that I'm missing?

Chris


--~--~-~--~~~---~--~~
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
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Sage Days 16 : Barcelona

2009-04-01 Thread Jose Guzman

William Stein wrote:
> 2009/4/1 Jose Guzman :
>   
>> Enrique Gonzalez Jimenez wrote:
>> 
>>> Sage Days 16 will take place June 22-27, 2009, and will take place at
>>> the FME, in the campus of the UPC, in Barcelona.
>>>
>>> More info:
>>>
>>> http://www.uam.es/enrique.gonzalez.jimenez/sagedays16/*
>>> http://wiki.sagemath.org/days16
>>> *
>>>   
>> Dear Enrique,
>>
>> I would found very interesting to attend to these sage days.
>> Unfortunately, there is no much information regarding the content of the
>> meeting in the web.  I would like to ask you if this meeting is
>> exclusively oriented for developers or if it is possible (or
>> interesting) for users attend to specialized sage workshops (ie . in
>> numerical analysis, statistics, stochastic processes, etc.. ). As
>> researcher in biomedical sciences these topics are my strong interest,
>> and I think this would be a  good opportunity to get involved with sage.
>> 
>
> It's definitely not exclusively for developers.  However, the Sage
> Days will be aimed at number theory, rather than those areas of
> biomedical sciences that you list above.
>
> william
>
>   
>> You can contact me in jose.guzman(at)physiologie.uni-freiburg.de any
>> time (in Spanish if you want).
>>
>> Thank you very much in advance.
>>
>> Jose Guzmán.
>>
>>
>>
>> 
>
>
>
>   
thank you both for your rapid answer!

Regards!

Jose.

--~--~-~--~~~---~--~~
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
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Why plot() won't plot this function?

2009-04-01 Thread Jason Grout

Chris Seberino wrote:
> 
> 
> On Mar 31, 11:06 am, Jason Grout  wrote:
>> Oh, right.  Duh.  I should have seen that.
> 
> Since you nor I did see that, should we ask if there is a way to unify
> the syntax for symbolic expressions and python functions to make
> plotting more "idiot proof" so to speak?  Or maybe there is a good
> reason not to that I'm missing?
>

Good point.  I don't think there's an easy way to do that.  The 
confusion was about a rather fundamental thing in the python language 
(indeed, any language) about how a function works.  I don't think there 
would be any clear way to make an arbitrary python function take a 
symbolic object and produce meaningful output in a way that would 
consistently make sense to plot.  The function is called and evaluated 
before plot ever sees it; plot has no idea that you called a function, 
rather than just passing whatever the function output.  Yes, I suppose 
you could do something with the preparser, but my intuition is that that 
is asking for trouble.

On the other hand, I can correct the big lack of sleep that I'm blaming 
for my embarrassing oversight :).

Thanks,

Jason


--~--~-~--~~~---~--~~
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
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: sage on my machine

2009-04-01 Thread domingo.domingogo...@gmail.com

And what happens if you put in your browser https://localhost:8000
?
I mean, firefox of course, it doesn't work with konqueror


On 1 abr, 22:31, nerak99  wrote:
> This is the second compile of sage and when runnig notebook() I get a
> error message even though sage appears to be working OK. The message I
> am talking of is the xprop line.
>
> 
> *                                                  *
> * Open your web browser tohttps://localhost:8000 *
> *                                                  *
> 
> There is an admin account.  If you do not remember the password,
> quit the notebook and type notebook(reset=True).
> 2009-04-01 21:11:08+0100 [-] Log opened.
> 2009-04-01 21:11:08+0100 [-] twistd 8.1.0 (/opt/sage-3.4/local/bin/
> python 2.5.2) starting up
> 2009-04-01 21:11:08+0100 [-] reactor class:  'twisted.internet.selectreactor.SelectReactor'>
> 2009-04-01 21:11:08+0100 [-] twisted.web2.channel.http.HTTPFactory
> starting on 8000
> 2009-04-01 21:11:08+0100 [-] Starting factory
> 
> xprop:  unable to open display ''
> usage:  xprop [-options ...] [[format [dformat]] atom] ...
>
> where options include:
>     -grammar                       print out full grammar for command
> line
>     -display host:dpy              the X server to contact
>     -id id                         resource id of window to examine
>     -name name                     name of window to examine
>     -font name                     name of font to examine
>     -remove propname               remove a property
>     -set propname value            set a property to a given value
>     -root                          examine the root window
>     -len n                         display at most n bytes of any
> property
>     -notype                        do not display the type field
>     -fs filename                   where to look for formats for
> properties
>     -frame                         don't ignore window manager frames
>     -f propname format [dformat]   formats to use for property of
> given name
>     -spy                           examine window properties forever
>
> Error: no display specified
> /usr/bin/xdg-open: line 388: mozilla: command not found
> /usr/bin/xdg-open: line 388: netscape: command not found
> /usr/bin/xdg-open: line 388: links: command not found
> xdg-open: no method available for opening 'https://:8000/?
> startup_token=e8faa2927e6d20f765e60f3000bc4d6'
> 2009-04-01 21:11:58+0100 [HTTPChannel,5,10.10.10.10]
>
> processor       : 0
> vendor_id       : AuthenticAMD
> cpu family      : 6
> model           : 8
> model name      : AMD Athlon(tm) XP 2000+
> stepping        : 1
> cpu MHz         : 1665.854
> cache size      : 256 KB
> fdiv_bug        : no
> hlt_bug         : no
> f00f_bug        : no
> coma_bug        : no
> fpu             : yes
> fpu_exception   : yes
> cpuid level     : 1
> wp              : yes
> flags           : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca
> cmov pat pse36 mmx fxsr sse syscall mmxext 3dnowext 3dnow up
> bogomips        : 3331.70
> clflush size    : 32
> power management: ts
--~--~-~--~~~---~--~~
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
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: sage on my machine

2009-04-01 Thread nerak99

I am using a remote host.

On 1 Apr, 22:47, "domingo.domingogo...@gmail.com"
 wrote:
> And what happens if you put in your browserhttps://localhost:8000
> ?
> I mean, firefox of course, it doesn't work with konqueror
>
> On 1 abr, 22:31, nerak99  wrote:
>
> > This is the second compile of sage and when runnig notebook() I get a
> > error message even though sage appears to be working OK. The message I
> > am talking of is the xprop line.
>
> > 
> > *                                                  *
> > * Open your web browser tohttps://localhost:8000 *
> > *                                                  *
> > 
> > There is an admin account.  If you do not remember the password,
> > quit the notebook and type notebook(reset=True).
> > 2009-04-01 21:11:08+0100 [-] Log opened.
> > 2009-04-01 21:11:08+0100 [-] twistd 8.1.0 (/opt/sage-3.4/local/bin/
> > python 2.5.2) starting up
> > 2009-04-01 21:11:08+0100 [-] reactor class:  > 'twisted.internet.selectreactor.SelectReactor'>
> > 2009-04-01 21:11:08+0100 [-] twisted.web2.channel.http.HTTPFactory
> > starting on 8000
> > 2009-04-01 21:11:08+0100 [-] Starting factory
> > 
> > xprop:  unable to open display ''
> > usage:  xprop [-options ...] [[format [dformat]] atom] ...
>
> > where options include:
> >     -grammar                       print out full grammar for command
> > line
> >     -display host:dpy              the X server to contact
> >     -id id                         resource id of window to examine
> >     -name name                     name of window to examine
> >     -font name                     name of font to examine
> >     -remove propname               remove a property
> >     -set propname value            set a property to a given value
> >     -root                          examine the root window
> >     -len n                         display at most n bytes of any
> > property
> >     -notype                        do not display the type field
> >     -fs filename                   where to look for formats for
> > properties
> >     -frame                         don't ignore window manager frames
> >     -f propname format [dformat]   formats to use for property of
> > given name
> >     -spy                           examine window properties forever
>
> > Error: no display specified
> > /usr/bin/xdg-open: line 388: mozilla: command not found
> > /usr/bin/xdg-open: line 388: netscape: command not found
> > /usr/bin/xdg-open: line 388: links: command not found
> > xdg-open: no method available for opening 'https://:8000/?
> > startup_token=e8faa2927e6d20f765e60f3000bc4d6'
> > 2009-04-01 21:11:58+0100 [HTTPChannel,5,10.10.10.10]
>
> > processor       : 0
> > vendor_id       : AuthenticAMD
> > cpu family      : 6
> > model           : 8
> > model name      : AMD Athlon(tm) XP 2000+
> > stepping        : 1
> > cpu MHz         : 1665.854
> > cache size      : 256 KB
> > fdiv_bug        : no
> > hlt_bug         : no
> > f00f_bug        : no
> > coma_bug        : no
> > fpu             : yes
> > fpu_exception   : yes
> > cpuid level     : 1
> > wp              : yes
> > flags           : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca
> > cmov pat pse36 mmx fxsr sse syscall mmxext 3dnowext 3dnow up
> > bogomips        : 3331.70
> > clflush size    : 32
> > power management: ts
--~--~-~--~~~---~--~~
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
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: sage on my machine

2009-04-01 Thread William Stein

2009/4/1 nerak99 :
>
> I am using a remote host.
>
> On 1 Apr, 22:47, "domingo.domingogo...@gmail.com"
>  wrote:
>> And what happens if you put in your browserhttps://localhost:8000
>> ?
>> I mean, firefox of course, it doesn't work with konqueror

You should type

 sage:  notebook?

and read the documentation carefully.

william

>>
>> On 1 abr, 22:31, nerak99  wrote:
>>
>> > This is the second compile of sage and when runnig notebook() I get a
>> > error message even though sage appears to be working OK. The message I
>> > am talking of is the xprop line.
>>
>> > 
>> > *                                                  *
>> > * Open your web browser tohttps://localhost:8000 *
>> > *                                                  *
>> > 
>> > There is an admin account.  If you do not remember the password,
>> > quit the notebook and type notebook(reset=True).
>> > 2009-04-01 21:11:08+0100 [-] Log opened.
>> > 2009-04-01 21:11:08+0100 [-] twistd 8.1.0 (/opt/sage-3.4/local/bin/
>> > python 2.5.2) starting up
>> > 2009-04-01 21:11:08+0100 [-] reactor class: > > 'twisted.internet.selectreactor.SelectReactor'>
>> > 2009-04-01 21:11:08+0100 [-] twisted.web2.channel.http.HTTPFactory
>> > starting on 8000
>> > 2009-04-01 21:11:08+0100 [-] Starting factory
>> > 
>> > xprop:  unable to open display ''
>> > usage:  xprop [-options ...] [[format [dformat]] atom] ...
>>
>> > where options include:
>> >     -grammar                       print out full grammar for command
>> > line
>> >     -display host:dpy              the X server to contact
>> >     -id id                         resource id of window to examine
>> >     -name name                     name of window to examine
>> >     -font name                     name of font to examine
>> >     -remove propname               remove a property
>> >     -set propname value            set a property to a given value
>> >     -root                          examine the root window
>> >     -len n                         display at most n bytes of any
>> > property
>> >     -notype                        do not display the type field
>> >     -fs filename                   where to look for formats for
>> > properties
>> >     -frame                         don't ignore window manager frames
>> >     -f propname format [dformat]   formats to use for property of
>> > given name
>> >     -spy                           examine window properties forever
>>
>> > Error: no display specified
>> > /usr/bin/xdg-open: line 388: mozilla: command not found
>> > /usr/bin/xdg-open: line 388: netscape: command not found
>> > /usr/bin/xdg-open: line 388: links: command not found
>> > xdg-open: no method available for opening 'https://:8000/?
>> > startup_token=e8faa2927e6d20f765e60f3000bc4d6'
>> > 2009-04-01 21:11:58+0100 [HTTPChannel,5,10.10.10.10]
>>
>> > processor       : 0
>> > vendor_id       : AuthenticAMD
>> > cpu family      : 6
>> > model           : 8
>> > model name      : AMD Athlon(tm) XP 2000+
>> > stepping        : 1
>> > cpu MHz         : 1665.854
>> > cache size      : 256 KB
>> > fdiv_bug        : no
>> > hlt_bug         : no
>> > f00f_bug        : no
>> > coma_bug        : no
>> > fpu             : yes
>> > fpu_exception   : yes
>> > cpuid level     : 1
>> > wp              : yes
>> > flags           : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca
>> > cmov pat pse36 mmx fxsr sse syscall mmxext 3dnowext 3dnow up
>> > bogomips        : 3331.70
>> > clflush size    : 32
>> > power management: ts
> >
>



-- 
William Stein
Associate Professor of Mathematics
University of Washington
http://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
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Cython and Matrices over Finite Fields

2009-04-01 Thread Tom


I want to write a Cython version of a Python function f(m) where the
input is a sage matrix of the form

m= matrix(GF(p), n, k)

How can I pass m to the .spyx function?  I couldn't find any examples
online.

My only idea is to convert m to a matrix over Z, and then to a list,
but I'm assuming there must be a better way.

-Tom



--~--~-~--~~~---~--~~
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
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---