[sage-support] Re: Fwd: Bug in ploting odd roots?

2008-10-29 Thread Minh Nguyen
-- Forwarded message -- From: Minh Nguyen <[EMAIL PROTECTED]> Date: Wed, Oct 29, 2008 at 4:04 PM Subject: Re: [sage-support] Fwd: Bug in ploting odd roots? To: sage-support@googlegroups.com Cc: pong <[EMAIL PROTECTED]> Hi Pong, William Stein wrote: > -

[sage-support] Re: Apostrophe in docstring?

2008-10-29 Thread Minh Nguyen
Hi kcrisman, kcrisman wrote: > Hello support, > > I came across some very strange behavior recently regarding docstrings > in functions. In the notebook in 3.2.alpha0 and 3.0.6, putting an > apostrophe in the docstring causes various bugs. It doesn't have to > be in any particular spot, as far

[sage-support] Re: Apostrophe in docstring?

2008-10-30 Thread Minh Nguyen
Hi kcrisman, On Fri, Oct 31, 2008 at 12:22 AM, kcrisman <[EMAIL PROTECTED]> wrote: > >> >> Yes. Could you please post the said link. I really want to know what >> caused the problem you're describing. > > http://math.uchicago.edu/~crisman/Weird_Notebook_Behavior.sws > > I would try it out sagenb.

[sage-support] Re: Apostrophe in docstring?

2008-10-30 Thread Minh Nguyen
On Fri, Oct 31, 2008 at 6:10 AM, William Stein <[EMAIL PROTECTED]> wrote: > [...] > Can you make a trac ticket with the above info? It should be enough to > make it "easy" for somebody to fix the problem, which is surely a bug > in the Sage preparser (and is surely my fault). Your wish is my com

[sage-support] Re: small observation on range(i,j)

2008-11-10 Thread Minh Nguyen
Hi Nasser, Nasser Abbasi wrote: > Hello; > > I was just browsing something to learn about sage, and noticed this on > this web site > http://wiki.sagemath.org/sage_mathematica > > where it says: > > "sage: [f(i) for i in range(1, 11)] > [g(1), g(2), g(3), g(4), g(5), g(6), g(7), g(8), g(9), g(

[sage-support] Re: Wrong limit

2008-11-11 Thread Minh Nguyen
Hi Robert, Robert Samal wrote: > (I'm not sure if this group is the right place to report bugs, but I'm > afraid I'd forgot about the issue > before I find the right place ...) > > sage: lim ( x*(sqrt(x^2)-sqrt(x))/sqrt(x^2 -x), x=oo) > 0 > > (The right answer is +Infinity, of course.) > > aft

[sage-support] Re: Groups, Rings, Fields?

2008-11-30 Thread Minh Nguyen
On Mon, Dec 1, 2008 at 8:44 AM, David Joyner <[EMAIL PROTECTED]> wrote: > > A couple of sources over the web: > (a) http://wdjoyner.com/teach/book/ > and (a bit harder and for group theory only) > (b) http://www.opensourcemath.org/books/gaglione-gp-thry/ > (pdf: http://www.opensourcemath.org/books

[sage-support] Fwd: A sage question

2008-11-30 Thread Minh Nguyen
Hi folks, Perhaps someone can give a better answer to the question below? I haven't explored enough with random matrices and finite fields in Sage to competently answer the question. -- Forwarded message -- From: Alasdair McAndrew <[EMAIL PROTECTED]> Date: Mon, Dec 1, 2008 at 12:

[sage-support] Re: wiki ban?

2008-12-01 Thread Minh Nguyen
On Tue, Dec 2, 2008 at 8:41 AM, kcrisman <[EMAIL PROTECTED]> wrote: > > Upon following a routine link from sagemath.org: > > "Warning: > You triggered the wiki's surge protection by doing too many requests > in a short time. > Please make a short break reading the stuff you already got. > When you

[sage-support] Re: wiki ban?

2008-12-01 Thread Minh Nguyen
On Tue, Dec 2, 2008 at 9:32 AM, William Stein <[EMAIL PROTECTED]> wrote: > > Hi, > > Try using http://sagemath.org:9001/ and let me know if that helps. Thanks, William. It works for me. I can now visit the wiki as well as edit pages. -- Regards Minh Van Nguyen Web: http://nguyenminh2.googlepag

[sage-support] Re: [sage-devel] Subject: Application for SD 12 Funding - Deadline 5pm PST, December 12th, 2009

2008-12-05 Thread Minh Nguyen
Hi Michael, On Fri, Dec 5, 2008 at 6:38 PM, mabshoff <[EMAIL PROTECTED]> wrote: > > Hello, > > Sage Days 12 San Diego will be held January 21st-24th, 2009 at UCSD. [...] > The deadline for applications is December 12th, 2009, 5pm PST. The I think you mean that the deadline is December 12th, 2008

[sage-support] problem building numpy under sage-3.2.3

2009-01-21 Thread Minh Nguyen
Hi folks, I'm trying to build sage-3.2.3 under SLES 10 with the following system information: $ uname -a: Linux burnet-usr 2.6.16.27-0.9-bigsmp #1 SMP Tue Feb 13 09:35:18 UTC 2007 i686 i686 i386 GNU/Linux The GCC version is 4.1.0. But when it comes to building the numpy version that's packaged

[sage-support] Re: problem building numpy under sage-3.2.3

2009-01-25 Thread Minh Nguyen
Hi Michael, On Mon, Jan 26, 2009 at 2:15 AM, mabshoff wrote: [...] >> from math import log as _log, exp as _exp, pi as _pi, e as _e, ceil as >> _ceil >> ImportError: No module named math >> Error building numpy. > > This looks like a problem with Python. Can you verify that Python > works,

[sage-support] Re: read very large integer matrix from file

2009-02-01 Thread Minh Nguyen
Hi John, On Sun, Feb 1, 2009 at 3:18 PM, John Matrix wrote: [...] > I'd like to read a very large integer dense square matrix into sage > from a file, in order to determine its rank. I could not find much > information on what format I should store the matrix in, and what > commands to use to re

[sage-support] installing optional R package without Internet connection

2009-02-05 Thread Minh Nguyen
Hi folks, I want to install an optional R package from source that I've downloaded from CRAN, say the package /home/mvngu/sna_1.5.tar.gz. Here's my first attempt on Sage 3.2.3: sage: r.install_packages("/home/mvngu/sna_1.5.tar.gz") R version 2.6.1 (2007-11-26) Copyright (C) 2007 The R Foundat

[sage-support] Re: How can I import a .py -file to Sage?

2009-02-05 Thread Minh Nguyen
Hi, On Fri, Feb 6, 2009 at 9:45 AM, Fall In Love with Sage wrote: > > I tried the code unsuccessfully: > a = open([x.replace(',',' ').split() for x in open('/Applications/ > sage/test.py').readlines()] > a > > Similarly, the next code too: > a = open(for x in open('/Applications/sage/test.

[sage-support] Re: recent unanswered sage-support posts

2009-02-10 Thread Minh Nguyen
] >> If you go tohttp://groups.google.com/group/sage-support/topics >> and look for those posts with only 1 message in the thread then you get: >> the following (I only went back 20 days or so): >> >> installing optional R package without Internet connection

[sage-support] Re: [sage-announce] Sage 3.3 released

2009-02-23 Thread Minh Nguyen
Hi folks, On Sun, Feb 22, 2009 at 7:23 PM, mabshoff wrote: > [...] > For all the details of what else changed in Sage 3.3 please see the > release > tour in the Sage wiki at > > http://wiki.sagemath.org/sage-3.3 And here's a nicely formatted version of the release tour: http://mvngu.wordpre

[sage-support] Re: Sage 3.3 released

2009-02-23 Thread Minh Nguyen
Hi Paul, On Mon, Feb 23, 2009 at 9:58 AM, Paul Zimmermann wrote: > >> And here's a nicely formatted version of the release tour: >> http://mvngu.wordpress.com/2009/02/23/sage-33-released > > this is very nice! I wonder how much time it took you to write this page. I had been working on the rele

[sage-support] Re: Sage 3.3 released

2009-02-23 Thread Minh Nguyen
Hi Michael, On Mon, Feb 23, 2009 at 10:27 AM, mabshoff wrote: > > Note that everybody is welcome to help Minh out with this and Martin > Albrecht did do so for the Sage 3.3 release tour as seen in > > http://wiki.sagemath.org/sage-3.3?action=info > > I think that any "big feature" or importa

[sage-support] Re: Sage 3.3 released

2009-02-23 Thread Minh Nguyen
Hi Georg, On Mon, Feb 23, 2009 at 2:45 PM, ggrafendorfer wrote: > > Dear Minh, > This is really a great page, thank you for this, > just your link to Pynac is wrong, the project you are linking to is an > old one which has nothing to do with this one here. Thank you very much for pointing that

[sage-support] Re: Sage 3.3 released

2009-02-23 Thread Minh Nguyen
On Tue, Feb 24, 2009 at 7:07 AM, Minh Nguyen wrote: > Hi Georg, > > On Mon, Feb 23, 2009 at 2:45 PM, ggrafendorfer > wrote: >> >> Dear Minh, >> This is really a great page, thank you for this, >> just your link to Pynac is wrong, the project you are linking t

[sage-support] Re: Expand an expression and a notebook problem

2009-02-25 Thread Minh Nguyen
Hi, On Wed, Feb 25, 2009 at 10:24 AM, Fall In Love with Sage wrote: > > 1. How can I expand (a + b + c + d)^4 in Sage? Using Sage 3.3 you can do this: sage: a, b, c, d = var("a b c d") sage: expand((a + b + c + d)^4) d^4 + 4*c*d^3 + 4*b*d^3 + 4*a*d^3 + 6*c^2*d^2 + 12*b*c*d^2 + 12*a*c*d^2 + 6*b

[sage-support] Re: Sage 3.4 on SuSE Enterprise Server

2009-03-16 Thread Minh Nguyen
Hi Miron, On Tue, Mar 17, 2009 at 5:20 AM, Miron wrote: > > Hello Michael, > > The output from gcc -v is: > > Using built-in specs. > Target: x86_64-suse-linux > Configured with: ../configure --enable-threads=posix --prefix=/usr -- > with-local-prefix=/usr/local --infodir=/usr/share/info --man

[sage-support] Sage 3.4: error when installing experimental spkg surf-1.1.spkg

2009-03-18 Thread Minh Nguyen
Hi folks, Under Sage 3.4, when installing the experimental package surf-1.1.spkg, the installation failed. The relevant full installation log file is at http://sage.math.washington.edu/home/mvngu/misc/install.log.bz2 I'm pretty sure that surf-1.1.spkg is the "latest" version of the surf experim

[sage-support] Re: OS X Clickable application

2009-03-18 Thread Minh Nguyen
Hi, On Thu, Mar 19, 2009 at 1:43 AM, Byungchul Cha wrote: > > I remember reading something about making a clickable sage application > for mac os X. Can I now do such a thing with sage 3.4? If so, where I > can find the instruction? The release tour of Sage 3.3 at http://mvngu.wordpress.com/20

[sage-support] Re: creating symbolic variables.

2009-03-19 Thread Minh Nguyen
Hi Jose, On Thu, Mar 19, 2009 at 7:49 AM, Jose Guzman wrote: > > This is apparently a very easy question, but I am new to the mathematics > computing environment and it will take me some time to become familiar > with Sage. The question is the following; Are these two expressions > similar? > >

[sage-support] Re: determinants of matrix polynomials

2009-03-19 Thread Minh Nguyen
Hi Chris, On Thu, Mar 19, 2009 at 8:17 AM, Chris Godsil wrote: > > I want to compute determinants of matrix polynomials, for matrices up > to 20 x 20, say. > The attached transcript seems to indicate 9 or 10 might be my limit. > (Or it's late > and I am being stupd?) > >

[sage-support] Re: Error message installing sage 3.4 on G4 iBook

2009-03-19 Thread Minh Nguyen
On Thu, Mar 19, 2009 at 11:20 PM, William Stein wrote: > > On Thu, Mar 19, 2009 at 3:58 PM, jlvm wrote: >> >> Dear friends, >> >> (Sorry for my bad english) >> >> I'm trying to install sage 3.4 on a G4 iBook with Mac OS X 10.5.6. >> >> I download sage-3.4-PowerPC-OSX10.5-PowerMacintosh-Darwin.dm

[sage-support] Re: determinants of matrix polynomials

2009-03-19 Thread Minh Nguyen
Hi Chris, On Fri, Mar 20, 2009 at 1:54 AM, Chris Godsil wrote: > > As the Reference Manual suggests, I > entered > M.determinant? to see what algorithm was being used, but did not get > any useful information. For the specified matrix M as defined above in your original email, I entered this

[sage-support] Re: ImportError starting Sage 3.4 in Mac OS X 10.4.11

2009-03-21 Thread Minh Nguyen
Hi John, On Sun, Mar 22, 2009 at 2:28 AM, John G wrote: > > I just downloaded Sage 3.4 for Mac OSX (sage-3.4-Intel-OSX10.5-i386- > Darwin.dmg). I installed it without trouble, but trying to run it I > get the errors below. I'm running Mac OS X 10.4.11 on an Intel Core > Duo Mac Mini. What am I

[sage-support] Re: OS X Clickable application

2009-03-21 Thread Minh Nguyen
Hi, On Thu, Mar 19, 2009 at 1:46 PM, Byungchul Cha wrote: > > > I must misunderstand something very trivial. I followed the steps > described at the release tour of Sage 3.3, except that I replaced 3.3 > with 3.4, since I thought I was compiling sage-3.4. Compiling was > successful and when I di

[sage-support] 3-D plots of affine varieties

2009-03-21 Thread Minh Nguyen
Hi folk, I may be missing something here, but when I tried to plot 0 = x^2 + y^2 - z^2 I received an error: *** begin Sage session *** sage: var("x,y,z"); sage: f = x^2 + y^2 - z^2 sage: plot3d(f == 0, (x,-4,4), (y,-4,4), (z,-4,4)); ERROR: An unexpected error occurred while tokenizing input The

[sage-support] Re: 3-D plots of affine varieties

2009-03-23 Thread Minh Nguyen
On Sun, Mar 22, 2009 at 11:17 AM, Alex Ghitza wrote: > > > Also, if you apply those patches, you can then try out the worksheets > attached under Tuesday March 10 at > > http://wiki.sagemath.org/days14 > > (check out the ones named SD14__Visualisation*, they have a bunch of > examples of plot

[sage-support] Re: Fwd: import of commands

2009-03-23 Thread Minh Nguyen
On Mon, Mar 23, 2009 at 4:30 PM, Martin Albrecht wrote: > > This belongs on [sage-support] and thus I'm CCing my answer there (also, David > Kohel reads [sage-support] IIRC) > > This seems to be the right way of doing it: > > sage: S = AlphabeticStrings() > sage: E = SubstitutionCryptosystem(S) >

[sage-support] Re: How to use Sage with Linux Ubuntu or Mandriva

2009-03-25 Thread Minh Nguyen
Hi Christophe, On Wed, Mar 25, 2009 at 9:08 PM, christophe van der putten wrote: > > Hi, > I install Linux Ubuntu in my PC (Intel Pentium Dual Core, 2Gega RAM), > after that i extract the version sage3.4 on this OS. And when i click > the sage icone in order to use, i have the message: > > "Do

[sage-support] Re: Installation problems

2009-03-25 Thread Minh Nguyen
Hi Nick, On Wed, Mar 25, 2009 at 8:48 PM, kickniko wrote: > > Hi Robert! > >> What OS/processor are you running this on? Which binary did you >> download? (Sounds like a mismatch.) >> >> - Robert > > OS: Mac OS X 10.5.6 > Machine: iBook G4, PowerPC G4 (1.2) > Sage package: sage-3.4-PowerPC-OSX1

[sage-support] Re: Newbie question. How do you get Sage to show a plot?

2009-03-30 Thread Minh Nguyen
Hi, On Tue, Mar 31, 2009 at 3:17 AM, WLC wrote: > > > I just installed Sage and I am going through a few examples from the > http://www.sagemath.org/doc/tutorial site. when I enter "circle((0,0), > 1, rgbcolor=(1,1,0))" or "plot(cos, (-5,5))" there is a delay and then > the comand prompt returns

[sage-support] Re: sage tutorial on amazon

2009-04-05 Thread Minh Nguyen
Hi David, On Thu, Apr 2, 2009 at 2:37 PM, David Joyner wrote: > > Hi: > > The Sage tutorial on amazon is a bit out of date. > Amazon requires the online publisher createspace, > which uses an extremely finiky automated web-based > program to process the manuscript. Any overfull > box, if memory

[sage-support] Re: sage tutorial on amazon

2009-04-05 Thread Minh Nguyen
Hi David, On Mon, Apr 6, 2009 at 12:29 AM, David Joyner wrote: > > 4. I can look at this more Tuesday. Also, while writing this, Minh posted to > this thread, so I will wait until he has done whatever he wants to do fisrt. I just skimmed through the Sage tutorial to get some ideas on section

[sage-support] Re: Desperately in need of help...

2009-04-20 Thread Minh Nguyen
Hi, On Tue, Apr 21, 2009 at 5:44 AM, Yo-Yo wrote: > > Hello all. > hope everything is well w/ you all. I am in need of help. I have > downloaded the newest version of sage and haven't been able to use it. > I am getting an error which reads "The server is taking too long to > respond." I am assu

[sage-support] Re: shift-return, shift-enter, click-mouse-on-evaluate. on evaluating a cell in a notebook

2009-04-21 Thread Minh Nguyen
Hi Nasser, On Tue, Apr 21, 2009 at 8:21 AM, Nasser Abbasi wrote: > > > Hello; > > It is a bit annoying having to hit 2 keys (i.e. reach out and use both > hands) each time in order to evaluate a cell in sage notebook. > > I am using windows, and I have to hit SHIFT-ENTER, or SHIFT-RETURN, or > I

[sage-support] Re: shift-return, shift-enter, click-mouse-on-evaluate. on evaluating a cell in a notebook

2009-04-21 Thread Minh Nguyen
Hi Nasser, On Tue, Apr 21, 2009 at 10:05 AM, Nasser Abbasi wrote: > > > > On Apr 21, 1:40 am, Minh Nguyen wrote: > >> >> > But it would be much easier to have ONE key. In Maple, the RETURN key >> > will cause evaluation, and in Mathematica the

[sage-support] Re: shift-return, shift-enter, click-mouse-on-evaluate. on evaluating a cell in a notebook

2009-04-21 Thread Minh Nguyen
Hi kcrisman, On Tue, Apr 21, 2009 at 2:09 PM, kcrisman wrote: > >> >> Yes. SHIFT-RETURN could be done with one hand because as you said, the >> RETURN key is in a very close proximity to the SHIFT key (on my >> keyboard at least). >> >> The problem though, to do this with one hand, one must twis

[sage-support] Re: Slackware/Zenwalk package

2009-04-23 Thread Minh Nguyen
Hi Markus, On Fri, Apr 24, 2009 at 12:41 AM, littlemathteacher wrote: > > Dear Michael, > > thanks. > > When I returned home this evening the process and the whole system > seemed to be frozen as if by memory overload. I slowly tried to close > some applications and among them accidentally was t

[sage-support] Re: A problem with the simplify command

2009-04-23 Thread Minh Nguyen
Hi Dylan, On Fri, Apr 24, 2009 at 4:32 AM, drupel wrote: > > Hi all: > I am using Sage Version 3.4, Release Date: 2009-03-11. I asked Sage > to simplify the following expression: >-q^(5/2)*(q^2*x2^4 + q*x2^2) + q^(9/2)*x2^4 + q^(3/2)*(q^2 + 1) > *x2^2 + sqrt(q) > by calling the simplify com

[sage-support] Re: A problem with the simplify command

2009-04-23 Thread Minh Nguyen
On Fri, Apr 24, 2009 at 4:37 AM, Minh Nguyen wrote: > Hi Dylan, > > On Fri, Apr 24, 2009 at 4:32 AM, drupel wrote: >> >> Hi all: >> I am using Sage Version 3.4, Release Date: 2009-03-11. I asked Sage >> to simplify the following expression: >>-q^(5/2)

[sage-support] Re: RSACryptosystem in Cryptography book (by Kohel) is ghost :? + small typo

2009-04-30 Thread Minh Nguyen
Hi, On Tue, Apr 28, 2009 at 7:09 PM, Jurgis Pralgauskis wrote: > > Hello, > > just trying to follow examples of http://www.sagemath.org/library/crypto.pdf > Exercise 8.5 solution: page nr 124 (or 127 for file) has suspicious > code > > sage: E := RSACryptosystem(128) > sage: m = E.encoding(’The

[sage-support] Re: RSACryptosystem in Cryptography book (by Kohel) is ghost :? + small typo

2009-04-30 Thread Minh Nguyen
On Fri, May 1, 2009 at 12:39 AM, mabshoff wrote: > >> There are many typos and errors in Kohel's crypto book. Though the >> book is licensed under a Creative Commons license, it seems that I'm >> unable to find the LaTeX source in order to fix typos. Not sure if >> Kohel has released the LaTeX

[sage-support] click on Sage icon to get terminal session

2009-05-04 Thread Minh Nguyen
Hi folks, I received the following question from my blog post at http://mvngu.wordpress.com/2009/03/22/clickable-mac-os-x-app-for-sage-34/ I thought it's more appropriate as a sage-support question. > I have built the dmg package as described. Everything is ok. When I double > click on > sage

[sage-support] Re: How can I open the program?

2009-05-15 Thread Minh Nguyen
Hi, On Fri, May 15, 2009 at 8:02 AM, me wrote: > > I did download the sage thing and also the player. then I read the > instruction to make the program actually but it does not do what i > want. In detail when I login with: login and sage. and write down > "notebook" nothing happening although I

[sage-support] Re: Unable to install Sage

2009-05-20 Thread Minh Nguyen
On Wed, May 20, 2009 at 3:01 PM, ccandide wrote: > > I try to install Sage on my computer by means of the pre-compiled > binaries : i downloaded the the tar.gz file from > http://www.sagemath.fr/linux/32bit/ > for the 32 bits Ubuntu distribution and then I ran the sage script > file within a she

[sage-support] Re: notebook dont function

2009-05-20 Thread Minh Nguyen
Hi Kjetil, On Wed, May 20, 2009 at 11:54 PM, Kjetil Halvorsen wrote: > Hola! > > I installed sage 3.4.1 from source on ubuntu 9.04 GNU linux. > To start sage I do: > > kje...@familien:~/sage-3.4.1$ ./sage > -- > | Sage Version 3

[sage-support] Re: notebook dont function

2009-05-20 Thread Minh Nguyen
Hi Kjetil, On Thu, May 21, 2009 at 3:53 AM, Kjetil Halvorsen wrote: > SEE below. >> This has very likely nothing to do with the build from source, etc, >> but most likely is due to local proxy settings or a firewall >> interfering. > >Maybe. (I also run all the tests, and no problems were

[sage-support] Re: Unable to install Sage

2009-05-21 Thread Minh Nguyen
On Thu, May 21, 2009 at 8:23 AM, ccandide wrote: > > > > On 21 mai, 01:39, Minh Nguyen wrote: > >> You don't need to run as root or using sudo. Try >> >> ./sage >> >> in the Sage root directory. > > > I still get the same error mess

[sage-support] Re: sage scripts

2009-05-21 Thread Minh Nguyen
Hi Florian, On Thu, May 21, 2009 at 12:14 PM, flori wrote: > > the ls -lah command gives > > flor...@base:~/sage/sage-3.4$ ls -lah > total 16M > drwxr-xr-x 9 florian florian 4.0K 2009-05-21 20:09 . > drwxr-xr-x 3 florian florian 4.0K 2009-04-19 15:38 .. > -rw-r--r-- 1 florian florian 71K 200

[sage-support] Re: notebook dont function

2009-05-21 Thread Minh Nguyen
On Thu, May 21, 2009 at 7:45 PM, Jason Grout wrote: > > Bruce Cohen wrote: >> I believe the problem is Firefox and not Sage. I run Ubuntu 8.04 and >> can only use Sage notebooks on Firefox when I have a working internet >> connection. When I use Opera (http://www.opera.com/) as the web >> brows

[sage-support] Re: notebook dont function

2009-05-21 Thread Minh Nguyen
On Fri, May 22, 2009 at 12:58 AM, Kjetil Halvorsen wrote: >> Can you try installing Sage 3.4.2 from source and then run the notebook >> again? > >Did so. Same , exact, problem. Is there some alternative interfaces to > run sage? In Firefox under the menu "File", there's an option called "

[sage-support] a list of all key combinations for the notebook

2009-05-31 Thread Minh Nguyen
Hi folks, A Sage user recently asked me about a list of all key combinations that one can use during a notebook session. After some digging, I found the file SAGE_ROOT/devel/sage-main/sage/server/notebook/config.py Is it correct for me to assume that this file contains all the key combinations

[sage-support] Re: How to define a constant function

2009-06-03 Thread Minh Nguyen
Hi Laurent, On Thu, Jun 4, 2009 at 3:51 AM, moky wrote: > >    Hello > > >   I would like to define a constant function in a script. You might want to try just putting the code in a some text file whose extension is ".sage". For example, I put the following code in a file called "demo.sage", no

[sage-support] Re: Sage 4.0 can be installed on ubuntu 8.04?

2009-06-06 Thread Minh Nguyen
Hi, On Sat, Jun 6, 2009 at 10:55 PM, Hobus wrote: > > Sage 4.0 can be installed on ubuntu 8.04? > > I had this error: > /home/jluxtux/sage-4.0-linux-Ubuntu_9.04-sse2-i686-Linux/local/bin/ > sage-sage: line 198:  7984 Instrucción ilegal     sage-ipython "$@" -i A similar problem has come up befor

[sage-support] Re: Can I delete the "devel" folder?

2009-06-09 Thread Minh Nguyen
Hi Márcio, On Wed, Jun 10, 2009 at 5:31 AM, msvar...@uol.com.br wrote: > > Hello everybody. > > I have a problem wiht space in my HD and a would like to know if I can > delete the "devel" folder, which is located inside SAGE main folder, > without affecting Sage functionality. It seems that this

[sage-support] Re: Inheritance from sage.symbolic.expression.Expression

2009-06-12 Thread Minh Nguyen
Hi Nicolas, On Fri, Jun 12, 2009 at 7:09 PM, Nicolas wrote: > > Dear Burcin, > > Just one quick question about patches, I have just changed the > expression.pyx file and ran another make (which took not so much > time). But it does not seem to work. Is this simple way of applying > patch enough o

[sage-support] Re: Optimization Resources

2009-06-12 Thread Minh Nguyen
Hi Ethan, On Fri, Jun 12, 2009 at 11:33 PM, evlu...@gmail.com wrote: > > I'm working on some code that is very computationally intensive. I'm > pretty sure my algorithm is good, but I know that tiny differences in > wording in sage can make a huge runtime difference. Is there any site/ > blog/wha

[sage-support] Re: Mac OS X 10.4 32bit G4 Support

2009-06-12 Thread Minh Nguyen
On Fri, Jun 12, 2009 at 2:38 AM, paramaniac wrote: > > Please don't forget to release a OS X 10.4 / 32bit G4 version of sage > 4.0.1. There are poor students amongst the users who can not afford > new hardware every fortnight :-) Just to let folks know that binaries for OS X 10.4 32-bit G4 and OS

[sage-support] Re: Optimization Resources

2009-06-13 Thread Minh Nguyen
On Sat, Jun 13, 2009 at 5:27 PM, William Stein wrote: > > 2009/6/12 evlu...@gmail.com : >> >> I'm working on some code that is very computationally intensive. I'm >> pretty sure my algorithm is good, but I know that tiny differences in >> wording in sage can make a huge runtime difference. Is ther

[sage-support] Re: Help! Why the polynomial is not generated for "Multivariate Polynomial Ring in y0, y1, y2, y3, y4, y5, y6, y7, x0, x1, x2, x3, x4, x5, x6, x7 over Finite Field of size 2"

2009-06-13 Thread Minh Nguyen
Hi Saj, On Sat, Jun 13, 2009 at 9:32 PM, Saj wrote: First, you should create another copy of the main Sage library. This is called "cloning". Here, I switch to the main Sage repository, then clone it, naming my clone "6139" to reflect the ticket number that I'm dealing with: {{{ [mv...@darksta

[sage-support] Re: string conversion

2009-06-17 Thread Minh Nguyen
Hi Mikie, On Thu, Jun 18, 2009 at 1:17 AM, William Stein wrote: > > On Wed, Jun 17, 2009 at 5:14 PM, Mikie wrote: >> >> I taking a string from a form.  How do I convert it to polynomial type? > > sage: R. = ZZ[] > sage: R > Univariate Polynomial Ring in x over Integer Ring > sage: R(s) > x^3 + 3*

[sage-support] Re: error finding the units of a number field

2009-06-17 Thread Minh Nguyen
On Thu, Jun 18, 2009 at 2:30 AM, bonzerpotato wrote: > > sorry, my typo: L should be K in all instances. Which version of Sage are you using? Here's what I get on Sage 4.0.1: [mv...@sage sage-4.0.2.rc2]$ sage -- | Sage Version 4

[sage-support] Re: error finding the units of a number field

2009-06-17 Thread Minh Nguyen
Hi, On Thu, Jun 18, 2009 at 2:09 AM, bonzerpotato wrote: > > After creating a number field A as below, when I try to find the units > it tells me I need to use either the relative or absolute polynomial. > I want the relative, but how do I implement this? This should do the trick: [mv...@sage

[sage-support] Re: Sages progress and its development timescale

2009-06-25 Thread Minh Nguyen
On Thu, Jun 25, 2009 at 10:23 PM, Simon King wrote: > > As far as I understand, this documents the changes since the last > version. There certainly exist release tours for older versions, too > (I don't know where). Release tours for older Sage releases can be found at http://wiki.sagemath.o

[sage-support] Re: Matrix assignment oddity

2009-07-04 Thread Minh Nguyen
Hi Alex, On Sat, Jul 4, 2009 at 6:07 PM, Alex wrote: > > Hi, > > The following assignment behaves unexpectedly: > > a=matrix(2) #makes a zero matrix > b=a > b[0,1]=2 > > One would expect a to stay zero, and only b to change to [0 2 0 0], > but a changes as well! That is expected, as it is a Pyth

[sage-support] Re: Simple error message in sage command line

2009-07-05 Thread Minh Nguyen
On Sun, Jul 5, 2009 at 5:46 PM, Kwankyu wrote: > > Thank you. It is good to know the location of ipythonrc file. I could > change the color scheme too. The following site http://mvngu.wordpress.com/2009/05/21/add-colour-to-your-sage-session/ offers some tips on adding colour to your Sage comm

[sage-support] CPU flags PNI and "SSSE3" for Ubuntu binaries

2009-07-06 Thread Minh Nguyen
Hi folks, In IRC, there was a report about the "SSSE3" and PNI flags for the following Ubuntu binary: sage-4.0.2-linux-Ubuntu_9.04-i686-Linux.tar.gz Here's the IRC log: 15:39 < nifgraup> Hi,I would like to report a packaging/build bug in sage 4.0.2, can someone guide me? 15:4

[sage-support] Re: 2D plotting with arrays

2009-07-08 Thread Minh Nguyen
Hi, On Wed, Jul 8, 2009 at 8:43 PM, somertime wrote: > > Hi all, > i have a problem with 2D plotting. > Given two arrays a,b, both contain real numbers. > I need a graphic with Point = (a[i] , b[i]), 0 < i < len (a), > len(a) = len(b) You mean something like this: --

[sage-support] Re: Communication with Sage

2009-07-09 Thread Minh Nguyen
Hi Aleksey, On Thu, Jul 9, 2009 at 5:33 PM, Aleksey Gogolev wrote: > > Hello! > > Advise needed. > > I have a PHP site and I have a Sage server. I want to add a new > feature to the site, where user can perform some calculations: enter > formula, data and then submit the form. Then PHP receives t

[sage-support] Re: Sage binary vs source on Windows

2009-07-09 Thread Minh Nguyen
Hi, On Thu, Jul 9, 2009 at 3:35 PM, DigDug_the_2nd wrote: > > I installed Sage binary under WINDOWs Vista using the VM Player > as described in the Installation Manual . . . so far so good . . . but > I'm a little unsure what the VM Player is actually doing. Sage is not > installed in the ord

[sage-support] Re: Sage binary vs source on Windows

2009-07-09 Thread Minh Nguyen
gone, will I still be able to install extra > packages to Sage? Won't extra packages be Python code that will get > installed > through Sage's iPython shell? What if there are extra packages that > are in c or c++ . . . once Sage is installed will it handle the > compil

[sage-support] Re: Sum of four square

2009-07-10 Thread Minh Nguyen
Hi On Sat, Jul 11, 2009 at 12:30 AM, Santanu Sarkar wrote: > Is the algorithm for sum of four square i,e every positive integer > can be expressed as the sum of four square is implemented in > Sage If you're referring to Lagrange's four-square theorem, then Sage probably doesn't have it yet:

[sage-support] Re: Resolved: LaTeX output for Graph Theory

2009-07-10 Thread Minh Nguyen
On Sat, Jul 11, 2009 at 2:36 PM, Taxman wrote: > >> That is exactly what you should expect, since the tikzpicture >> environment is only defined when you are using the tikz package. >> >> Perhaps we should update the documentation on the Sage graphs stuff to >> make it (more?) clear that the outpu

[sage-support] Re: assume()

2009-07-11 Thread Minh Nguyen
On Sun, Jul 12, 2009 at 9:12 AM, Neal wrote: > > Hi everyone, > > I thought I'd share the following: > > sage: assume(x>0) > sage: solve([x^2-1],x) > [x == -1, x == 1] > > Shouldn't it not give me the negative solution? Also: > > sage: assume(x == 1) > sage: bool(x == 1) > False We have been rec

[sage-support] Re: Cannot connect to sage notebook

2009-07-12 Thread Minh Nguyen
Hi David, On Sun, Jul 12, 2009 at 9:27 PM, Dr. David Kirkby wrote: > I'm not a Sage user and don't use Windows any more than I need to - I'm > interested in porting Sage to Solaris. But if I recall correctly, when I > did build Sage on my own Solaris machine, the URL needed was not a > simple

[sage-support] Re: install R packages

2009-07-14 Thread Minh Nguyen
Hi Aleksey, On Tue, Jul 14, 2009 at 6:41 PM, Aleksey Gogolev wrote: > > Hello! > > I tried to install package "cluster" for R and got this: > > -- > | Sage Version 4.0.2, Release Date: 2009-06-18 | > | Type

[sage-support] Re: install R packages

2009-07-14 Thread Minh Nguyen
Hi Aleksey, On Tue, Jul 14, 2009 at 7:46 PM, Aleksey Gogolev wrote: > > Hi Minh, > > Thank you! > I entered the command and got the same output as yours, but still no luck :( > After I restarted Sage and tried to load library I got the ImportError: > > sage:r.library("cluster") >

[sage-support] Re: install R packages

2009-07-14 Thread Minh Nguyen
Hi David, On Tue, Jul 14, 2009 at 9:00 PM, David Joyner wrote: > I'm no expert on R by any means but if I'm understanding this thread, > and your (Minh's) comments on #6379 correctly, a new ticket > should be opened up separate from > http://www.sagetrac.org/sage_trac/ticket/6379. > If you agr

[sage-support] Re: Polynomial

2009-07-15 Thread Minh Nguyen
Hi Santanu, On Wed, Jul 15, 2009 at 9:46 PM, Santanu Sarkar wrote: > Suppose f=2*x^2+3*x+1 is a polynomial in x. How efficiently we > can calculate f^10 modulo 24? For the ring of polynomials with coefficients over ZZ: -- | Sa

[sage-support] Re: sort a list

2009-07-15 Thread Minh Nguyen
Hi Mikie, On Thu, Jul 16, 2009 at 5:14 AM, Mikie wrote: > > How does one sort a list in Sage? I have tried > > L1=[56,2,4,10] > Sort_ = L1.sort() > > and nothing is produced. Try this: -- | Sage Version 4.1, Release Date: 2009

[sage-support] Re: Problem with larger sws files

2009-07-16 Thread Minh Nguyen
On Thu, Jul 16, 2009 at 10:57 PM, kcrisman wrote: > 2) .sws files are really just some kind of zip file. So unzipping it > will reveal the folder for the worksheet, and you can then manually > remove the snapshots (assuming you don't need them currently) and then > rezip it. I can't remember i

[sage-support] Re: Problem with larger sws files

2009-07-16 Thread Minh Nguyen
On Thu, Jul 16, 2009 at 11:23 PM, kcrisman wrote: >> Sage worksheets are compressed using tar and bzip2. Say your worksheet >> is called myworksheet.sws, then this would uncompress it: >> >> $ tar -jxf myworksheet.sws >> >> You then get a directory containing the worksheet data. >> > > Probably

[sage-support] Re: Save our Souls

2009-07-16 Thread Minh Nguyen
On Fri, Jul 17, 2009 at 1:01 AM, Simon King wrote: > > Hi! > > On 16 Jul., 10:51, "Dr. David Kirkby" wrote: > ... >> I've also found 'nohup' useful if running a program from a remote >> location, as the session does not abort if the connection dies. > > "nohup" keeps your process alive if the con

[sage-support] Re: keyboard shortcuts

2009-07-18 Thread Minh Nguyen
Hi Chris, On Sun, Jul 19, 2009 at 6:18 AM, Chris Chiasson wrote: > > I just want to add that I (eventually) found the following keyboard > shortcuts I was looking for in another thread on the developer's list > and that they should probably be added under the notebook section of > the page shown

[sage-support] Re: Problems in Compiling Sage in OLPC-XO

2009-07-20 Thread Minh Nguyen
Hi Elizabeth, On Tue, Jul 21, 2009 at 3:22 PM, Elizabeth Yip wrote: > > Hello > > I installed a customized version of Ubuntu Intrepid for my OLPC-XO > using a 2G USB drive and tried to make SAGE for the XO on another 2G > USB drive under Ubuntu. > > Previously, I've successfully installed sage-4

[sage-support] Re: changeing sage -b (cython)

2009-07-22 Thread Minh Nguyen
On Thu, Jul 23, 2009 at 4:27 AM, William Stein wrote: > > On Wed, Jul 22, 2009 at 11:21 AM, Michael > Madison wrote: >> >> Robert, Thanks for the feedback. I don't want to wait for 4.1.1 so I >> will attempt to follow the Sage Days 16 "How to get started with >> developing Sage" to apply the patch

[sage-support] Re: changeing sage -b (cython)

2009-07-22 Thread Minh Nguyen
On Thu, Jul 23, 2009 at 4:36 AM, Robert Bradshaw wrote: > > On Jul 22, 2009, at 11:27 AM, William Stein wrote: > >> On Wed, Jul 22, 2009 at 11:21 AM, Michael >> Madison wrote: >>> >>> Robert, Thanks for the feedback. I don't want to wait for 4.1.1 so I >>> will attempt to follow the Sage Days 16 "

[sage-support] Re: changeing sage -b (cython)

2009-07-22 Thread Minh Nguyen
Hi Michael, On Thu, Jul 23, 2009 at 6:55 AM, Michael Madison wrote: > All, I decided to try hg and I created a clone and added a ~/.hrgc to the > /develope/sage directory with my infomation. However, the last patch put me > into the hg_editor-DwDTEO.txt and says the following: > > HG: Enter com

[sage-support] Re: numerical eigenforms

2009-07-23 Thread Minh Nguyen
On Thu, Jul 23, 2009 at 5:13 PM, rje wrote: > p.s. Just to make sure there is at least one thing useful in this > post, I point out a misprint after the word "polynomial" at > http://www.sagemath.org/doc/bordeaux_2008/level_one_forms.html You're invited to upload a patch to the trac server. I

[sage-support] Re: breaking out of double for loops

2009-07-23 Thread Minh Nguyen
On Thu, Jul 23, 2009 at 8:41 PM, Carlo Hamalainen wrote: > > On Thu, Jul 23, 2009 at 12:31 PM, mac8090 wrote: >> How does one break from a double for loop, or a loop of two variables? > > One way is to use an exception: > > > class GetOut(Exception): pass > > try: >for x in range(10): >

[sage-support] Re: numerical eigenforms

2009-07-23 Thread Minh Nguyen
Hi Ron, On Thu, Jul 23, 2009 at 5:13 PM, rje wrote: > p.s. Just to make sure there is at least one thing useful in this > post, I point out a misprint after the word "polynomial" at > http://www.sagemath.org/doc/bordeaux_2008/level_one_forms.html This is now ticket #6600 http://trac.sagemat

[sage-support] Re: doctests and the long flag

2009-07-24 Thread Minh Nguyen
Hi Ethan, On Sat, Jul 25, 2009 at 12:55 AM, Ethan Van Andel wrote: > > My code has doctests that look like this: >EXAMPLES: >:: >sage: m = Riemann_Map([e^(I*t)],[I*e^(I*t)],0) #long time > (4 sec) >sage: points = m.get_theta_points() >sage: list

[sage-support] Re: side-effect when evaluating a function

2009-07-25 Thread Minh Nguyen
Hi Pierre, On Sun, Jul 26, 2009 at 5:31 AM, pca wrote: > > Dear all, > > I have been puzzled, and annoyed, by an unexpected side-effect. It > can be demonstrated in the notebook by the following example. It > models the speed as distance / time, then solve for the distance, then > evaluate the

  1   2   3   4   >