[sage-support] On best way to use plot() with functions...

2009-04-04 Thread Chris Seberino


def g(x):
return numerical_integral(sin(t),0,x)[0]

For the function g, this works:

sage: plot(g,x,2,4)

but not this

sage:plot(g(x), x, 2, 4)

If I'm not mistaken, the first form of plot above works with ALL
functions right?  So is there any reason to ever bother with second
form just because I *can* use it with symbolic functions?

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: Plotting from linux console mode?

2009-04-04 Thread Alasdair

It turned out not to be a Sage issue at all, but a file association
issue.  My desktop (xfce) associated images with gqview; I changed the
association to ImageMagick's display, and got what I wanted.

-Alasdair


On Apr 4, 4:26 pm, William Stein wst...@gmail.com wrote:
 2009/4/3 Alasdair amc...@gmail.com:



  Thanks - in which file in the sage tree is this variable set?

 You might have been asking how to set it yourself.  In linux (well,
 bash) do e.g.,

  export SAGE_BROWSER=firefox

  -- 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] Security problem...

2009-04-04 Thread Thierry Dumont
I am always preparing me Sage University wide server..

I think I have a big security problem:

Sage create users (looking for this in my ldap server, but this changes 
nothing from a public server where every one can create an account).
One an account is created, I can access and *destroy* all other 
accounts; it is sufficient for this to log in  on the notebook, then  to 
launch the python interpreter; at is point I can do:

system('ls -l  /scratch/sage/.sage/sage_notebook/worksheets/')

and worse:

system('rm -rf  /scratch/sage/.sage/sage_notebook/worksheets/foo')

Mmmpf...

Is there any way to avoid this ?

Yours
t.d.



--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---

begin:vcard
fn:Thierry  Dumont
n:Dumont;Thierry 
org;quoted-printable;quoted-printable:Universit=C3=A9 Lyon 1  CNRS.;Institut Camille Jordan -- Math=C3=A9matiques / Mathematics.
adr:;;43 Bd du 11 Novembre.;Villeurbanne;;69621;France
email;internet:tdum...@math.univ-lyon1.fr
title;quoted-printable:Ing=C3=A9nieur de Recherche / Research Engineer.
tel;work:04 72 44 85 23.
tel;fax:04 72 44 80 53
x-mozilla-html:FALSE
url:http://math.univ-lyon1.fr/~tdumont
version:2.1
end:vcard



[sage-support] Re: Security problem...

2009-04-04 Thread William Stein

2009/4/4 Thierry Dumont tdum...@math.univ-lyon1.fr:
 I am always preparing me Sage University wide server..

 I think I have a big security problem:

 Sage create users (looking for this in my ldap server, but this changes
 nothing from a public server where every one can create an account).
 One an account is created, I can access and *destroy* all other
 accounts; it is sufficient for this to log in  on the notebook, then  to
 launch the python interpreter; at is point I can do:

 system('ls -l  /scratch/sage/.sage/sage_notebook/worksheets/')

 and worse:

 system('rm -rf  /scratch/sage/.sage/sage_notebook/worksheets/foo')

 Mmmpf...

 Is there any way to avoid this ?

Type

sage: notebook?

and read:

-

server_pool   -- (default: None) list; this option specifies that
 worksheet processes run as a separate user (chosen
 from the list in the server_pool -- see below).

4. I want to create a Sage notebook server that is open to anybody in
   the world to create new accounts. To run the Sage notebook publically
   (1) at a minimum run it from a chroot jail or inside a virtual
   machine (see wiki.sagemath.org/StartingTheNotebook and the Sage
   install guide) and (2) use a command like

   notebook(address='', server_pool=['sa...@localhost'],
   ulimit='-v 50', accounts=True)

   The server_pool option specifies that worksheet processes run as a
   separate user.  The ulimit option restricts the memory available to
   each worksheet processes to 500MB.  See help on the `accounts' option
   above.

   Be sure to make that the sage_notebook/nb.sobj and contents of
   sage_notebook/backups is chmod og-rwx, i.e., only readable by the
   notebook process, since otherwise any user can read nb.sobj, which
   contains user email addresses and account information (password are
   stored hashed, so fewer worries there). You will need to use the
   `directory' option to accomplish this.

-

To make things more secure you should have a bunch (e.g., 100)
accounts in the server_pool and not just one as it shows above.

We currently don't have something to 1:1 map users to accounts in the
server pool, but this would make it so nobody could touch anybody
else's files at all.   Nobody has found the time to implement this,
though I think it would be quite easy.

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: Security problem...

2009-04-04 Thread Robert Bradshaw

On Apr 4, 2009, at 12:43 AM, Thierry Dumont wrote:

 I am always preparing me Sage University wide server..

 I think I have a big security problem:

 Sage create users (looking for this in my ldap server, but this  
 changes
 nothing from a public server where every one can create an account).
 One an account is created, I can access and *destroy* all other
 accounts; it is sufficient for this to log in  on the notebook,  
 then  to
 launch the python interpreter; at is point I can do:

 system('ls -l  /scratch/sage/.sage/sage_notebook/worksheets/')

 and worse:

 system('rm -rf  /scratch/sage/.sage/sage_notebook/worksheets/foo')

 Mmmpf...

 Is there any way to avoid this ?

See the server_pool option, which can be used to mitigate this kind  
of abuse. I think the only real security will come by assigning a one- 
to-one correspondence between notebook users and unix accounts, but  
as of yet there's not a way to do that. Or it would be cool if one  
could create restricted ephemeral uids to run the worksheets  
processes under.

We mostly rely on the benevolence of 99% of the users out there, and  
the fact that there's little to gain by taking the notebook down.  
(Also, as it's in a VMware image, it's easy to restore so it's not  
like you can seriously hurt us).

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



[sage-support] plotjoined='True'

2009-04-04 Thread Jose Guzman

I am learning how to plot in sage and tried the following example:


x=srange(0, 4, 0.2)
y=srange(0, 4, 0.2)
xy = zip(x,y)

list_plot(xy,pointsize=40,faceted='True',rgbcolor='white')


This works perfect, but if I add the option plotjoined='True' I got a 
mistake and then I have to plot this option as unique parameter:


list_plot(xy,plotjoined='True')

Is there any way to plot the points joined with the line with an unique 
plot_list function?

I guess I could use matplotlib, but I have to get use to the easy way to 
plot just before start with

PS: list_plot()

--~--~-~--~~~---~--~~
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] How to test?

2009-04-04 Thread Mikie

I have have uploaded and installed Sage(the CentOS version) on my
Linux server.  I have configured the sage script to point at the sage
directory.  Should it now start from a browser?  If so how? The docs
talk about ./sage to start.  Is this in Linux.  I am a novice.  I
have the Windows version on my PC and works great.  What do I have to
do to get it functioning on the server.
Thanks

--~--~-~--~~~---~--~~
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] Install on CentOS

2009-04-04 Thread Mikie

I have put all the files on the Linux server(CentOSv4.7).  Modified
the sage script to point to the sage dir.  Now what?  What does ./
sage mean.  I am a novice.

--~--~-~--~~~---~--~~
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] Printing a worksheet with plots does not work

2009-04-04 Thread adrian

Hi,

I don't know if I am doing something wrong, but if a worksheet has a
command like

show(plot(cos(x),x,-3,3))

And then I try to print (say to a file), the output shows nothing
starting at the plot.

Any ideas?
Am I the only one?

Peace.
-Adrian.
--~--~-~--~~~---~--~~
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: How to test?

2009-04-04 Thread Jaap Spies

Mikie wrote:
 I have have uploaded and installed Sage(the CentOS version) on my
 Linux server.  I have configured the sage script to point at the sage
 directory.  Should it now start from a browser?  If so how? The docs
 talk about ./sage to start.  Is this in Linux.  I am a novice.  I
 have the Windows version on my PC and works great.  What do I have to
 do to get it functioning on the server.
 Thanks

I suppose you can login to the server. In order to run sage
the script has to be in your $PATH.

One way to test this is to 'cd' (chdir) to the directory you installed
sage in. Now type ./sage
and sage will start up in command line mode:

[j...@paix sage-3.4]$ ./sage
--
| Sage Version 3.4, Release Date: 2009-03-10 |
| Type notebook() for the GUI, and license() for information.|
--

sage: 1+1
  2

sage:

(exit with cntrl-D)

To run sage as notebook you can type from the sage prompt:
sage: notebook()

or from the shell
./sage -notebook

Good luck!

Jaap


--~--~-~--~~~---~--~~
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] Is newton-raphson already in SAGE?

2009-04-04 Thread Brian

Is newton-raphson already in SAGE?

Thanks, Brian
--~--~-~--~~~---~--~~
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: How to test?

2009-04-04 Thread Mikie

How do I test if from a browser?

On Apr 4, 11:07 am, Jaap Spies j.sp...@hccnet.nl wrote:
 Mikie wrote:
  I have have uploaded and installed Sage(the CentOS version) on my
  Linux server.  I have configured the sage script to point at the sage
  directory.  Should it now start from a browser?  If so how? The docs
  talk about ./sage to start.  Is this in Linux.  I am a novice.  I
  have the Windows version on my PC and works great.  What do I have to
  do to get it functioning on the server.
  Thanks

 I suppose you can login to the server. In order to run sage
 the script has to be in your $PATH.

 One way to test this is to 'cd' (chdir) to the directory you installed
 sage in. Now type ./sage
 and sage will start up in command line mode:

 [j...@paix sage-3.4]$ ./sage
 --
 | Sage Version 3.4, Release Date: 2009-03-10                         |
 | Type notebook() for the GUI, and license() for information.        |
 --

 sage: 1+1
   2

 sage:

 (exit with cntrl-D)

 To run sage as notebook you can type from the sage prompt:
 sage: notebook()

 or from the shell
 ./sage -notebook

 Good luck!

 Jaap
--~--~-~--~~~---~--~~
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: Is newton-raphson already in SAGE?

2009-04-04 Thread David Joyner

Sort of. Look in the examples/calculus subdirectory.


On Sat, Apr 4, 2009 at 1:57 PM, Brian medo...@gmail.com wrote:

 Is newton-raphson already in SAGE?

 Thanks, Brian
 


--~--~-~--~~~---~--~~
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: How to test?

2009-04-04 Thread Jaap Spies

Mikie wrote:
 How do I test if from a browser?


Which browser? From where?

We definitely need more info.

Jaap



 On Apr 4, 11:07 am, Jaap Spies j.sp...@hccnet.nl wrote:
 Mikie wrote:
 I have have uploaded and installed Sage(the CentOS version) on my
 Linux server.  I have configured the sage script to point at the sage
 directory.  Should it now start from a browser?  If so how? The docs
 talk about ./sage to start.  Is this in Linux.  I am a novice.  I
 have the Windows version on my PC and works great.  What do I have to
 do to get it functioning on the server.
 Thanks
 I suppose you can login to the server. In order to run sage
 the script has to be in your $PATH.

 One way to test this is to 'cd' (chdir) to the directory you installed
 sage in. Now type ./sage
 and sage will start up in command line mode:

 [j...@paix sage-3.4]$ ./sage
 --
 | Sage Version 3.4, Release Date: 2009-03-10 |
 | Type notebook() for the GUI, and license() for information.|
 --

 sage: 1+1
   2

 sage:

 (exit with cntrl-D)

 To run sage as notebook you can type from the sage prompt:
 sage: notebook()

 or from the shell
 ./sage -notebook

 Good luck!

 Jaap
  
 


--~--~-~--~~~---~--~~
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] configuring y-axis in plot

2009-04-04 Thread Brian

How can I set things like ymax, ymin, and ystep in my plot?  Also,
sometimes my plots have ticks on the y axis but only 1 and sometimes
ZERO labels.  I'd like to configure that too.

Thanks in advance for the tips,
Brian
--~--~-~--~~~---~--~~
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: Is newton-raphson already in SAGE?

2009-04-04 Thread Robert Bradshaw

On Apr 4, 2009, at 11:24 AM, David Joyner wrote:

 Sort of. Look in the examples/calculus subdirectory.

The algorithm is used all over--e.g. square roots of power series are  
computed via newton-raphson. I am pretty sure many of the numerical  
optimization/root finding algorithms use it as well. What are you  
trying to use it for?



 On Sat, Apr 4, 2009 at 1:57 PM, Brian medo...@gmail.com wrote:

 Is newton-raphson already in SAGE?

 Thanks, Brian



 


--~--~-~--~~~---~--~~
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: How to test?

2009-04-04 Thread Mikie

FireFox.  I host is BlueHost.  Can't I enter a url to start Sage?

On Apr 4, 12:21 pm, Jaap Spies j.sp...@hccnet.nl wrote:
 Mikie wrote:
  How do I test if from a browser?

 Which browser? From where?

 We definitely need more info.

 Jaap



  On Apr 4, 11:07 am, Jaap Spies j.sp...@hccnet.nl wrote:
  Mikie wrote:
  I have have uploaded and installed Sage(the CentOS version) on my
  Linux server.  I have configured the sage script to point at the sage
  directory.  Should it now start from a browser?  If so how? The docs
  talk about ./sage to start.  Is this in Linux.  I am a novice.  I
  have the Windows version on my PC and works great.  What do I have to
  do to get it functioning on the server.
  Thanks
  I suppose you can login to the server. In order to run sage
  the script has to be in your $PATH.

  One way to test this is to 'cd' (chdir) to the directory you installed
  sage in. Now type ./sage
  and sage will start up in command line mode:

  [j...@paix sage-3.4]$ ./sage
  --
  | Sage Version 3.4, Release Date: 2009-03-10                         |
  | Type notebook() for the GUI, and license() for information.        |
  --

  sage: 1+1
    2

  sage:

  (exit with cntrl-D)

  To run sage as notebook you can type from the sage prompt:
  sage: notebook()

  or from the shell
  ./sage -notebook

  Good luck!

  Jaap- Hide quoted text -

 - Show quoted text -
--~--~-~--~~~---~--~~
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: How to test?

2009-04-04 Thread Timothy Clemans

On Sat, Apr 4, 2009 at 3:18 PM, Mikie thephantom6...@hotmail.com wrote:

 FireFox.  I host is BlueHost.  Can't I enter a url to start Sage?


You should not be using a shared inexpensive web host to run the
notebook. BlueHost has low cpu limits and their firewall may prevent
you from accessing your notebook. You might want to look into virtual
private servers from slicehost.com and linode.com

 On Apr 4, 12:21 pm, Jaap Spies j.sp...@hccnet.nl wrote:
 Mikie wrote:
  How do I test if from a browser?

 Which browser? From where?

 We definitely need more info.

 Jaap



  On Apr 4, 11:07 am, Jaap Spies j.sp...@hccnet.nl wrote:
  Mikie wrote:
  I have have uploaded and installed Sage(the CentOS version) on my
  Linux server.  I have configured the sage script to point at the sage
  directory.  Should it now start from a browser?  If so how? The docs
  talk about ./sage to start.  Is this in Linux.  I am a novice.  I
  have the Windows version on my PC and works great.  What do I have to
  do to get it functioning on the server.
  Thanks
  I suppose you can login to the server. In order to run sage
  the script has to be in your $PATH.

  One way to test this is to 'cd' (chdir) to the directory you installed
  sage in. Now type ./sage
  and sage will start up in command line mode:

  [j...@paix sage-3.4]$ ./sage
  --
  | Sage Version 3.4, Release Date: 2009-03-10                         |
  | Type notebook() for the GUI, and license() for information.        |
  --

  sage: 1+1
    2

  sage:

  (exit with cntrl-D)

  To run sage as notebook you can type from the sage prompt:
  sage: notebook()

  or from the shell
  ./sage -notebook

  Good luck!

  Jaap- Hide quoted text -

 - Show quoted text -
 


--~--~-~--~~~---~--~~
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: Is newton-raphson already in SAGE?

2009-04-04 Thread Brian

Finding the yield of a bond given a price.  You can see a
demonstration here:
http://www.sagenb.org/home/pub/423/

The newton-raphson usage starts after the 3d plot.
Brian

On Apr 4, 1:06 pm, Robert Bradshaw rober...@math.washington.edu
wrote:
 On Apr 4, 2009, at 11:24 AM, David Joyner wrote:

  Sort of. Look in the examples/calculus subdirectory.

 The algorithm is used all over--e.g. square roots of power series are  
 computed via newton-raphson. I am pretty sure many of the numerical  
 optimization/root finding algorithms use it as well. What are you  
 trying to use it for?



  On Sat, Apr 4, 2009 at 1:57 PM, Brian medo...@gmail.com wrote:

  Is newton-raphson already in SAGE?

  Thanks, Brian
--~--~-~--~~~---~--~~
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: How to test?

2009-04-04 Thread Jaap Spies

Mikie wrote:
 FireFox.  I host is BlueHost.  Can't I enter a url to start Sage?
 

Type notebook? at the sage prompt to get more documentation.

sage: notebook?


Jaap


--~--~-~--~~~---~--~~
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: jmol problem

2009-04-04 Thread Brian

My jmol plot at sagenb.org is working for me now:
http://www.sagenb.org/home/pub/423/

On Apr 3, 11:14 pm, William Stein wst...@gmail.com wrote:
 2009/4/3 Timothy Clemans timothy.clem...@gmail.com:



  I get the same. This historically has been a problem with the public
  notebook(s).

 I 100% disagree.   This has *not* historically been a problem with the
 public notebooks. I have used them millions of times with numerous
 browsers from many places to draw 3d plots using jmol.

 I just did the same plot on another public notebook server (on the
 same machine) and it works fine:

    http://demo2.sagenb.org/home/pub/3/

 There is a serious problem with the Linux install (or vmware virtual
 machine) that currently hosts sagenb.org, which manifest itself about
 2 days ago -- for some reason the OS is randomly killing processes.
 This could be the result of some sort of attack, or just some other
 problem; I don't know.   That's probably what is responsible for your
 graph at sagenb.org to not work.  I'm actually very 
 surprisedhttp://sagenb.orgis working at all.

 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] Inverse in integer mod ring

2009-04-04 Thread Kwankyu

Hi,

I get this:

sage: R=IntegerModRing(8)
sage: m=matrix(R,2,[2,1,3,3]);m.det()
sage: m.inverse()
Traceback (most recent call last):
...
TypeError: self must be an integral domain.
sage: m^-1
Traceback (most recent call last):
...
TypeError: self must be an integral domain.

Actually, R(3)^-1 produces an error message. I use Sage 3.4. Is
someone implementing the inverse operation in integer mod rings?
--~--~-~--~~~---~--~~
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: Inverse in integer mod ring

2009-04-04 Thread Robert Bradshaw

On Apr 4, 2009, at 12:55 PM, Kwankyu wrote:

 Hi,

 I get this:

 sage: R=IntegerModRing(8)
 sage: m=matrix(R,2,[2,1,3,3]);m.det()
 sage: m.inverse()
 Traceback (most recent call last):
 ...
 TypeError: self must be an integral domain.
 sage: m^-1
 Traceback (most recent call last):
 ...
 TypeError: self must be an integral domain.

 Actually, R(3)^-1 produces an error message. I use Sage 3.4. Is
 someone implementing the inverse operation in integer mod rings?

You could try lifting, computing the inverse there, then reducing.

sage: m.change_ring(ZZ).inverse().change_ring(R)
[1 5]
[7 6]
sage: m.change_ring(ZZ).inverse().change_ring(R) * m
[1 0]
[0 1]

The problem is that the inverse is typically defined over the  
fraction field, and so it must be an integral domain to have one.

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



[sage-support] Re: How to test?

2009-04-04 Thread Mikie

I am in linux on BlueHost.  ./sage and I get error shar libraies:
requires glibc 2.5 or later.


On Apr 4, 1:29 pm, Jaap Spies j.sp...@hccnet.nl wrote:
 Mikie wrote:
  FireFox.  I host is BlueHost.  Can't I enter a url to start Sage?

 Type notebook? at the sage prompt to get more documentation.

 sage: notebook?

 Jaap
--~--~-~--~~~---~--~~
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: Inverse in integer mod ring

2009-04-04 Thread Kwankyu

Thanks Robert. But inverse operation in non integral domain is not
supposed to be implemented in Sage? or is it just a missing feature
yet?
--~--~-~--~~~---~--~~
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: Inverse in integer mod ring

2009-04-04 Thread William Stein

On Sat, Apr 4, 2009 at 1:12 PM, Kwankyu ekwan...@gmail.com wrote:

 Thanks Robert. But inverse operation in non integral domain is not
 supposed to be implemented in Sage? or is it just a missing feature
 yet?

Missing feature.  Somebody should *definitely* implement this.  A
first reasonable thing would be lift to ZZ, invert, reduce.   Make 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: How to test?

2009-04-04 Thread Jaap Spies

Mikie wrote:
 I am in linux on BlueHost.  ./sage and I get error shar libraies:
 requires glibc 2.5 or later.
 

I'm sorry. Here you are on your own. See the answer of Timothy.

Cheers,

Jaap


--~--~-~--~~~---~--~~
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] Server for Sage

2009-04-04 Thread Mikie

Is anyone running Sage a non-dedicated server such as BlueHost,
Godaddy, etc?

--~--~-~--~~~---~--~~
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: Server for Sage

2009-04-04 Thread Mikie

I am not using the notebooks.  I want it to check answers to math
problems in Moodle.

On Apr 4, 2:35 pm, Jaap Spies j.sp...@hccnet.nl wrote:
 Mikie wrote:
  Is anyone running Sage a non-dedicated server such as BlueHost,
  Godaddy, etc?

 As far as I know: no!

 This is probably a bad idea.

 Jaap


--~--~-~--~~~---~--~~
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: Server for Sage

2009-04-04 Thread Jaap Spies

Mikie wrote:
 I am not using the notebooks.  I want it to check answers to math
 problems in Moodle.
 

I'm very sorry. Can't help you.

Jaap


--~--~-~--~~~---~--~~
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: Inverse in integer mod ring

2009-04-04 Thread Kwankyu

In the example above, R(3)^-1 produces the right answer (my mistake).
Anyway the ticket for inverse operation for matrices over integer mod
ring is now in Ticket #5683.

Kwankyu
--~--~-~--~~~---~--~~
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: Server for Sage

2009-04-04 Thread Timothy Clemans

On Sat, Apr 4, 2009 at 4:57 PM, Jaap Spies j.sp...@hccnet.nl wrote:

 Mikie wrote:
 I am not using the notebooks.  I want it to check answers to math
 problems in Moodle.


 I'm very sorry. Can't help you.

 Jaap

You're welcome to use sagenb.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: How to test?

2009-04-04 Thread Timothy Clemans

On Sat, Apr 4, 2009 at 4:27 PM, Jaap Spies j.sp...@hccnet.nl wrote:

 Mikie wrote:
 I am in linux on BlueHost.  ./sage and I get error shar libraies:
 requires glibc 2.5 or later.


 I'm sorry. Here you are on your own. See the answer of Timothy.

You're likely stuck. I'm sure if you try to build Sage on their server
that your account will get automatically suspended due to cpu load
limits.

 Cheers,

 Jaap


 


--~--~-~--~~~---~--~~
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: Server for Sage

2009-04-04 Thread Jaap Spies

Timothy Clemans wrote:
 On Sat, Apr 4, 2009 at 4:57 PM, Jaap Spies j.sp...@hccnet.nl wrote:
 Mikie wrote:
 I am not using the notebooks.  I want it to check answers to math
 problems in Moodle.

 I'm very sorry. Can't help you.

 Jaap
 
 You're welcome to use sagenb.org

I know :)! But maybe your words were for Mikie.

Jaap

--~--~-~--~~~---~--~~
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: How to test?

2009-04-04 Thread Jaap Spies

Timothy Clemans wrote:
 On Sat, Apr 4, 2009 at 4:27 PM, Jaap Spies j.sp...@hccnet.nl wrote:
 Mikie wrote:
 I am in linux on BlueHost.  ./sage and I get error shar libraies:
 requires glibc 2.5 or later.

 I'm sorry. Here you are on your own. See the answer of Timothy.
 
 You're likely stuck. I'm sure if you try to build Sage on their server
 that your account will get automatically suspended due to cpu load
 limits.

Please be careful in your answers :)! I'm not stuck.

Jaap


--~--~-~--~~~---~--~~
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: jmol problem

2009-04-04 Thread Carl Witty

On Apr 3, 10:14 pm, William Stein wst...@gmail.com wrote:
 2009/4/3 Timothy Clemans timothy.clem...@gmail.com:



  I get the same. This historically has been a problem with the public
  notebook(s).

 I 100% disagree.   This has *not* historically been a problem with the
 public notebooks. I have used them millions of times with numerous
 browsers from many places to draw 3d plots using jmol.

 I just did the same plot on another public notebook server (on the
 same machine) and it works fine:

    http://demo2.sagenb.org/home/pub/3/

 There is a serious problem with the Linux install (or vmware virtual
 machine) that currently hosts sagenb.org, which manifest itself about
 2 days ago -- for some reason the OS is randomly killing processes.
 This could be the result of some sort of attack, or just some other
 problem; I don't know.   That's probably what is responsible for your
 graph at sagenb.org to not work.  I'm actually very 
 surprisedhttp://sagenb.orgis working at all.

One reason for the OS to randomly kill processes is the Linux out-of-
memory killer (OOM killer for short).  Is there any chance that
sagenb.org is running out of RAM?  Are there any interesting messages
if you log in and type dmesg?

Actually, I just realized I could check this for myself, so I did... I
don't see anything about the OOM killer, but there is a recurring,
strange error message about BUG: soft lockup - CPU#0 stuck for 11s!
[python:8525].  I don't know what this means, or if it has anything
to do with this problem.

Carl
--~--~-~--~~~---~--~~
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: jmol problem

2009-04-04 Thread mabshoff



On Apr 4, 3:12 pm, Carl Witty carl.wi...@gmail.com wrote:
 On Apr 3, 10:14 pm, William Stein wst...@gmail.com wrote:

SNIP

 Actually, I just realized I could check this for myself, so I did... I
 don't see anything about the OOM killer, but there is a recurring,
 strange error message about BUG: soft lockup - CPU#0 stuck for 11s!
 [python:8525].  I don't know what this means, or if it has anything
 to do with this problem.

Looks like a bug in the Ubuntu kernel. According to

  
http://muffinresearch.co.uk/archives/2008/08/20/ubuntu-bug-soft-lockup-cpu0-stuck-for-11s/

updating to the latest kernel for 8.04LTS should make this go away.

 Carl

Cheers,

Michael
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---