[sage-support] Re: Sage log in problem

2013-12-21 Thread Minh Nguyen
Hi,

Sorry for the late reply.  My guess is that you're having problem with
your SageMath cloud account at

https://cloud.sagemath.com/

In that case, I'm not the right person to contact.  You should contact
either William Stein at wst...@uw.edu or the sage-support mailing
list.

On Tue, Dec 17, 2013 at 12:38 AM, Kriti Shrestha kshres...@brynmawr.edu wrote:
 Hi,

 I have a problem logging in to my Sage account.

 I had been using my email address kshres...@brynmawr.edu for my account. My 
 password was saved in my browser and I had been able to log in without 
 problems until last night. Now, I get an error saying my User name is not in 
 the system.

 I was wondering if there is any way I can log back in and retrieve my file.

 Thank you,
 Kriti
-- 
Regards,
Minh Van Nguyen
http://bit.ly/mvngu

-- 
You received this message because you are subscribed to the Google Groups 
sage-support group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [sage-support] Google Group sage-support Daily Summary Email Bomb

2013-06-27 Thread Minh Nguyen
Hi,

On Thu, Jun 27, 2013 at 2:13 PM, rickhg12hs rickhg1...@gmail.com wrote:

 All of a sudden the Google Group sage-support Daily Summary Email is huge
 ( 350kB) and more often than daily.

 Here's the latest subject:
 subject: [sage-support] Abridged summary of sage-support@googlegroups.com
 - 250 Messages in 58 Topics
 I've received three of these in the last 5 hours (not completely
 identical, but nearly).  I've verified my settings and they seem fine and
 unchanged.

 Is this a Google problem or is something wrong/different with this group?

I don't see anything wrong with your settings and I don't see anything
wrong with the settings for the whole group.

--
Regards,
Minh Van Nguyen
http://bit.ly/mvngu

-- 
You received this message because you are subscribed to the Google Groups 
sage-support group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [sage-support] Google Group sage-support Daily Summary Email Bomb

2013-06-27 Thread Minh Nguyen
On Thu, Jun 27, 2013 at 5:28 PM, rickhg12hs rickhg1...@gmail.com wrote:
 Am I the only one getting _daily_ abridged summaries every 45-120 minutes?

Maybe.  Ten hours ago, I changed my settings to abridged summaries. So
far I have only one abridged email. It's more likely something is
wrong with Google Group.

-- 
Regards,
Minh Van Nguyen
http://bit.ly/mvngu

-- 
You received this message because you are subscribed to the Google Groups 
sage-support group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/groups/opt_out.




[sage-support] Re: sage sw for office

2013-06-11 Thread Minh Nguyen
Hi,

I'm not an expert on Sage worksheet.  You need to ask on the
sage-support mailing list.

On Tue, Jun 11, 2013 at 5:49 PM, Vo Duy Quy duy...@vucico.com wrote:

 Dear Mr Minh



 I know about Sage from partner in France last week

 They said that Sage can supply the sw for office application to manage as
 human, project, quotation,…



 Please let me more information on it



 Kind regards

 Quy



 www.vucico.com



 Vo Duy Quy

 Vice general director

 Mobile: +84919149565

 Tel: +84-8-39330822

 Fax: +84-8-39330821

 Skype : quy.voduy

 http://www.vucico.com

 Email: duy...@vucico.com

--
Regards,
Minh Van Nguyen
http://bit.ly/mvngu

-- 
You received this message because you are subscribed to the Google Groups 
sage-support group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [sage-support] Build sage without documentation

2013-01-02 Thread Minh Nguyen
Hi Daniel,

On Thu, Jan 3, 2013 at 8:51 AM, Daniel M. danielmeji...@gmail.com wrote:
 Can i build sage without the documentation, and do the build with many
 threads?

In the file SAGE_ROOT/Makefile, change the line

all: start doc

to

all: start build

From the command line, execute this:

MAKE='make -j3'; export MAKE

followed by the command

make

-- 
Regards,
Minh Van Nguyen
http://bit.ly/mvngu

-- 
You received this message because you are subscribed to the Google Groups 
sage-support group.
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.
Visit this group at http://groups.google.com/group/sage-support?hl=en.




[sage-support] Re: Problem with sage building from source code

2012-11-18 Thread Minh Nguyen
Hi,

On Sun, Nov 18, 2012 at 10:50 PM, WM Chung wmch...@alumni.cuhk.edu.hk wrote:
 Is the only way to post message to the group is by sending email to
 sage-support@googlegroups.com ?

Not really.  You could also post to the group by logging in with your
Google account and reply to any post you want.  This means that you
would most likely need to have a Google account and register your
email address with the group as your Gmail address.  However, if you
are a member of the group (and you are now a member) then it's usually
OK to post to the group by just sending an email to
sage-support@googlegroups.com.


 If so, should I send from my registered
 email wmch...@alumni.cuhk.net ?

In your membership details, I register your email address as
wmch...@alumni.cuhk.edu.hk.  This means that you should post to the
group from wmch...@alumni.cuhk.edu.hk and new posts (yours and all
other posts) will be sent to wmch...@alumni.cuhk.edu.hk.  I have set
your membership option to receive each new post as it arrive to the
group.  This means that you would most likely receive more than one
post per day.  If this is not what you want, I can modify how mails
are delivered to your registered email address.  Below are the options
on how mails are delivered to members:

( ) No email: web-only participation (Need Google account.)
( ) Abridged Email: one summary email of new activity per day
( ) Digest Email: up to 25 full new messages in a single email
(*) All Email: send each message as it arrives

The option with the asterisk (i.e. *) is the option with which I
have registered you.  I can change your setting if you want.


 Or can anyone post message by sending the
 email to the group ?

Only members can post.  Anyone can read posts.  Someone needs to
approve your membership.  In your case, I approved your membership.


 Sorry that I am a bit confused in this. Actually my
 registered email wmch...@alumni.cuhk.net is just an auto-forward email to
 my account and I cannot send email by it. I can receive email which is sent
 to wmch...@alumni.cuhk.net and I send email by
 wmch...@alumni.cuhk.edu.hk. Actually I find my reply posting can reach the
 group, and that posting is sent by wmch...@alumni.cuhk.edu.hk.

That's because I have registered you with the email address
wmch...@alumni.cuhk.edu.hk.

-- 
Regards,
Minh Van Nguyen
http://bit.ly/mvngu

-- 
You received this message because you are subscribed to the Google Groups 
sage-support group.
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.
Visit this group at http://groups.google.com/group/sage-support?hl=en.




[sage-support] Re: Problem with sage building from source code

2012-11-17 Thread Minh Nguyen
Hi,

On Sat, Nov 17, 2012 at 11:36 PM, WM Chung wmch...@alumni.cuhk.edu.hk wrote:
 I am trying to build Sage from source code but unfortunately I meet with
 errors during the build. I try to post a message to the Sage support forum
 but I do not know the way. It seems posting problem to the group require a
 login account but I do not know exactly how to create one. I would be much
 grateful if you can help me on this.

I have added you as a member of the sage-support mailing list.  You
should be receiving mail from that list and be able to post to the
list.


 I also attach details of the problem I met.

 In file included from /usr/include/stdio.h:28:0,
  from ../../../src/libgcc/../gcc/tsystem.h:87,
  from ../../../src/libgcc/../gcc/libgcc2.c:29:
 /usr/include/features.h:324:26: fatal error: bits/predefs.h: No such file
 or directory

You get this error because you don't have the C headers of the GNU C
library.  On Ubuntu 12.10, you can install the headers as follows:

sudo apt-get install libc6-dev

Then compile Sage again.


 I am a beginner to Sage and I am interested in participating in the
 development work of Sage. As you are an expert in Sage, if you do not mind,
 I would be grateful if you can also give some valuable advice to me as a
 beginner, e.g. what resources I need to get, what level of mathematics I
 need to attain, etc.

As you want to get into developing Sage, perhaps the Sage Developer's
Guide is what you should read, in particular this section:

http://www.sagemath.org/doc/developer/walk_through.html

Note that the Developer's Guide requires you to use Mercurial (or hg).
 Mercurial (http://mercurial.selenic.com) is currently used to manage
the source code of the Sage library.  However, the current plan of the
Sage project is to transition to using Git (http://git-scm.com) to
manage source code.  For now you don't need to worry about Git, as the
transition would not take place for another few months.


 For the time being, my interest is in linear
 programming and graph theory.

You might want to look through the graph theory module

http://www.sagemath.org/doc/reference/graphs.html

or the linear programming tutorial

http://www.sagemath.org/doc/thematic_tutorials/linear_programming.html

to see if anything catches your interest.

In any case, just send an email to sage-support if you want help.

-- 
Regards,
Minh Van Nguyen
http://bit.ly/mvngu

-- 
You received this message because you are subscribed to the Google Groups 
sage-support group.
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.
Visit this group at http://groups.google.com/group/sage-support?hl=en.




Re: [sage-support] Using HillCryptosystem() with more characters than the 26 capital letters from AlphabeticStrings()

2012-09-29 Thread Minh Nguyen
Hi Bernhard,

On Mon, Sep 24, 2012 at 7:18 AM, be bernhard.esslin...@db.com wrote:
 I'd like to get help how to either enhance AlphabeticStrings() or how to
 make HillCryptosystem() more flexible.

This is now ticket #13548:

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

I have created an account for you on the Sage trac server, and have
sent the login details to you.

-- 
Regards,
Minh Van Nguyen
http://bit.ly/mvngu

-- 
You received this message because you are subscribed to the Google Groups 
sage-support group.
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.
Visit this group at http://groups.google.com/group/sage-support?hl=en.




Re: [sage-support] Healpy

2012-09-25 Thread Minh Nguyen
Hi,

On Tue, Sep 25, 2012 at 6:24 PM, Jesús TC jesu...@gmail.com wrote:
 I have managed to install healpy (Nasa's Healpix python wrapper) and make it
 work in sage 5.1 (the current version in the AIMS ppa).

 It is somehow trivial, but would it be interesting to publich somewhere the
 instructions and a worksheet with the tutorial section in the documentation?

That would be nice.  You are welcome to write up something on the Sage wiki at

http://wiki.sagemath.org

-- 
Regards,
Minh Van Nguyen
http://bit.ly/mvngu

-- 
You received this message because you are subscribed to the Google Groups 
sage-support group.
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.
Visit this group at http://groups.google.com/group/sage-support?hl=en.




Re: [sage-support] Faster sage command line startup?

2012-06-28 Thread Minh Nguyen
Hi Pen,

On Thu, Jun 28, 2012 at 4:26 PM, Peng Yu pengyu...@gmail.com wrote:
 sage command line usage is kind of slow. Is there a way to speed it up?

There has been some work on this issue.  See

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

-- 
Regards,
Minh Van Nguyen
http://bit.ly/mvngu

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] See also field in the document

2012-06-28 Thread Minh Nguyen
Hi Peng,

On Fri, Jun 29, 2012 at 10:08 AM, Peng Yu pengyu...@gmail.com wrote:
 In Mathematica, I can SEE ALSO section in each help page. But this is not
 available in Sage's document, which makes harder to find a function.

It is available in Sage's reference manual.  See for example

http://sagemath.org/doc/reference/sage/combinat/posets/poset_examples.html

http://sagemath.org/doc/reference/sage/rings/complex_number.html#sage.rings.complex_number.ComplexNumber.norm

It's just that there are not many of these cross referencing in the
reference manual.


 Could sage developer add SEE ALSO for each function.

It's a matter of people putting in the effort to write cross
references between functions.  You don't need to be a developer to do
this; in fact, anyone is welcome to make a suggestion for cross
referencing.  The Sage documentation uses Sphinx and the following
contains documentation about how to do cross referencing in the Sage
documentation:

http://sphinx.pocoo.org/markup/para.html#directive-seealso

-- 
Regards,
Minh Van Nguyen
http://bit.ly/mvngu

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] split() function for lists

2012-06-24 Thread Minh Nguyen
Hi,

On Sun, Jun 24, 2012 at 11:41 PM, Ruslan Kiianchuk zores...@gmail.com wrote:
 Is there any built-in function I don't know of? And if
 not, why not implement it, so the user wouldn't have to reinvent the wheel
 each time since such functionality is simple and often needed?

The recipe at the link below might solve your problem:

http://code.activestate.com/recipes/577061-nest-a-flat-list/

-- 
Regards,
Minh Van Nguyen
http://bit.ly/mvngu

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: Will Sage software draw graphs of algebraic equations?

2012-04-19 Thread Minh Nguyen
Hi,

On Fri, Apr 20, 2012 at 6:54 AM, Theodore J Sheskin
t.shes...@csuohio.edu wrote:
 Will Sage software draw graphs of algebraic equations? I am making up the
 equations. I do not have data which I want to plot. I do not have data to
 which I want to fit a curve. I plan to paste the graphs into a Word 2007
 document.

I have forwarded your question to the sage-support mailing list, where
you should get better support than what I can provide.

-- 
Regards,
Minh Van Nguyen
http://bit.ly/mvngu

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support]

2012-03-29 Thread Minh Nguyen
Hi William,

On Thu, Mar 29, 2012 at 5:47 PM, William Stein wst...@gmail.com wrote:
 I've removed this dmbroline spammer from the Google group.  However,
 it seems like there is no way to ban them, or report them as a spammer
 or anything else, with the new Google groups, like there used to be.

I've already flagged/reported dmbroline's message as spam and banned
that account.

-- 
Regards,
Minh Van Nguyen
http://boxen.math.washington.edu/home/mvngu/

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] colouring documents about SAGE, written using sphinx

2012-02-19 Thread Minh Nguyen
Hi Avril,

On Sun, Feb 19, 2012 at 6:30 AM, Avril Coghlan
avril.cogh...@googlemail.com wrote:
 I'd like to write a little document about using SAGE, using sphinx to write
 it, and host my document at readthedocs.org

 I'm wondering how can I get the beautiful colouring of sphinx documentation
 on SAGE, which I see at http://www.sagemath.org/doc/ ?

The colouring that you see at http://www.sagemath.org/doc/ is produced
using a custom theme.  Essentially, we customized the default Sphinx
theme.  Our colouring theme can be found in this file:

http://hg.sagemath.org/sage-main/file/c239be1054e0/doc/common/themes/sage/theme.conf


 As far as I can see, there is no specific 'sage' formatting available in
 sphinx (like there is for R, python, and many other languages), is that
 true?

You should be able to produce your own theme using Sphinx.  In fact,
Sphinx has been known to be used to produce websites, not just
documentation, due to its versatility.  But a cost is that sometimes
it can be very difficult for beginners to figure out how to do so.

-- 
Regards,
Minh Van Nguyen
http://sage.math.washington.edu/home/mvngu/

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] Re: Bug in Minimum Spanning Tree

2011-12-21 Thread Minh Nguyen
Hi Albert,

On Thu, Dec 22, 2011 at 5:30 AM, Albert albert.hei...@googlemail.com wrote:
 Now my other
 question: Why is this implemented like this?

For performance reason.


 A minimum spanning tree
 does not make sense in a not weighted Graph

The default is to turn off sanity checks and use a weight function
that returns unity for each edge.


 and as far as I read the
 documentation, Is G weighted is part of the sanity checks that is
 performed in the kruskal Algorithm if check = True. Maybe I am not
 seeing something elementary here, but I think that it should by
 default take the weight-function into account.

The functions min_spanning_tree() and kruskal() do take the weight
function into account.  Assuming that you don't want to toggle on
sanity checks and you don't want unity weight for each edge, then
supply your own weight function to the keyword weight_function in
min_spanning_tree(), or to the keyword wfunction in kruskal().  See
the documentation of min_spanning_tree() [1] for an example of passing
in your own weight function.

[1] 
http://www.sagemath.org/doc/reference/sage/graphs/generic_graph.html#sage.graphs.generic_graph.GenericGraph.min_spanning_tree

-- 
Regards,
Minh Van Nguyen

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] questions about books on Sage

2011-10-21 Thread Minh Nguyen
On Sat, Oct 22, 2011 at 2:38 AM, WVNicholson
william_v_nichol...@yahoo.com wrote:
 I was wondering what books there are on Sage like Sage Beginner's
 Guide by Craig Finch that are about as general but maybe covering
 slightly more advanced maths?

There's a Sage and algorithmic graph theory book:

http://code.google.com/p/graph-theory-algorithms-book/

This is a work in progress.

-- 
Regards
Minh Van Nguyen

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] inverse function

2011-09-28 Thread Minh Nguyen
Hi,

On Thu, Sep 29, 2011 at 2:17 AM, globaljavaprogrammer
saintlaurenceinvestme...@gmail.com wrote:
 how can I use sage to compute the inverse of a function like f(x) = (x
 +1)^2?

sage: f = (x + 1)^2
sage: g = 1 / f
sage: h = f^(-1)
sage: f*g
1
sage: g*f
1
sage: f*h
1
sage: h*f
1

-- 
Regards
Minh Van Nguyen

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] sage days announcements?

2011-09-13 Thread Minh Nguyen
Hi Ursula,

On Wed, Sep 14, 2011 at 9:06 AM, Ursula Whitcher urs...@math.hmc.edu wrote:
 Is there a place I can sign up to receive announcements about upcoming
 Sage Days and Sage Education Days?

I'm not aware of any such place. However, the Sage wiki [1] has an
updated list of upcoming Sage Days events. People who organize or
participate in Sage Days use the Sage wiki as an organization tool.

[1] http://wiki.sagemath.org

-- 
Regards
Minh Van Nguyen

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] Where are the environment variables in Sage.

2011-08-09 Thread Minh Nguyen
Hi Jose,

On Tue, Aug 9, 2011 at 5:21 PM, Jose Guzman sjm.guz...@googlemail.com wrote:
 I would like to change my $SAGE_BROWSER environment variable but do not know
 where it is. Where are the environment variables ?

See this thread:

http://groups.google.com/group/sage-support/browse_thread/thread/a2fac6ef05e24074


 would it be nice to have
 this question in the Sage FAQ? (see ticket #8464)

Yes, you're right. Would you like to open a ticket and post a patch? I
promise to review the patch.

-- 
Regards
Minh Van Nguyen

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] Re: Sage does not work properly after compilation in ubuntu 11.04

2011-07-31 Thread Minh Nguyen
Hi Nikos,

On Sun, Jul 31, 2011 at 9:51 PM, Nikos Tzanakis ntzana...@gmail.com wrote:
 So, how do I make this permanent? I thought I set the
 permissions correctly,
 everything is readable, writable and executable in the sage directory:

You should never, ever build Sage as root. If you just want to build
Sage from source and use the resulting binary for yourself, just
compile Sage from under your home directory using your normal user
account. If you want a system-wide installation, see this section of
the installation guide:

http://www.sagemath.org/doc/installation/source.html#installation-in-a-multiuser-environment

-- 
Regards
Minh Van Nguyen

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: [sagemath-support] calculate execution time

2011-07-06 Thread Minh Nguyen
Hi siham,

On Wed, Jul 6, 2011 at 9:28 PM, siham ezzouak sezzo...@gmail.com wrote:
 Hi;
 I want to compare execution time for two programs in sage I see that we can
 use function time but this one return many things I want just time
 processors.
 do you know function that allow us  to do this?
 thanks you in advance

Pick one that you want from below:

sage: time 2**128
340282366920938463463374607431768211456
Time: CPU 0.00 s, Wall: 0.00 s
sage: %time 2**128
CPU times: user 0.00 s, sys: 0.00 s, total: 0.00 s
Wall time: 0.00 s
340282366920938463463374607431768211456
sage: %timeit 2**128
625 loops, best of 3: 539 ns per loop


 --
 Siham Ezzouak
 Doctorante à la faculté des science
  Oujda

-- 
Regards
Minh Van Nguyen

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: [sagemath-support] calculate execution time

2011-07-06 Thread Minh Nguyen
Hi Siham,

On Wed, Jul 6, 2011 at 9:54 PM, siham ezzouak sezzo...@gmail.com wrote:
 thanks you for your answers but this one return many thanks I want to
 compare execution time for two programs and at the end calculate (time
 program1)/(time program2). time return many things I want to select just CPU
 time it's possible?

Please send your questions to the sage-support list. There are people
there more knowledgeable than I am.


 regards
 Siham

-- 
Regards
Minh Van Nguyen

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Fwd: [sage-notebook] Sage and latex

2011-07-05 Thread Minh Nguyen
Hi,

I'm forwarding this to sage-support, where it properly belongs.


-- Forwarded message --
From: arshpreet singh arsh...@gmail.com
Date: Wed, Jul 6, 2011 at 10:23 AM
Subject: [sage-notebook] Sage and latex
To: sage-noteb...@googlegroups.com


Good morning sage users..
Please suggest me any link of tutorial that will be helpful for using
sage and latex together.I am new to latex as well as sage-math.in the
sage documentation I have read all the stuff about sage it is very
effective and helped me alot but I am unable to understand the the
page under title sage,latex and friends. :(.
So please suggest me another tutorial for sage+latex.I shall be very
thankful to you for this
Thnaks
Arshpreet singh



-- 
Regards
Minh Van Nguyen

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] trac account

2011-05-18 Thread Minh Nguyen
Hi Claudio,

On Thu, May 19, 2011 at 12:06 AM, claudio virili
claudiovir...@gmail.com wrote:
 my name is Claudio Virili, I would like to have a trac account to contribute
 to Sage with the translation to Italian of the Sage tutorials.

Let's talk over email.

-- 
Regards
Minh Van Nguyen

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] Unable to Solve Simple Problem

2011-04-09 Thread Minh Nguyen
Hi,

On Sun, Apr 10, 2011 at 3:41 PM, The_Fool masterfu...@gmail.com wrote:
 For some reason, Sage is unable to solve x=sqrt(1+x).

Yes, I can confirm this in the following way:

sage: solve(x == sqrt(1+x), x)
[x == sqrt(x + 1)]


 It should be
 fairly easy to solve and has a solution being the golden ratio.

Yes, the above problem should be simple to solve. See for example the
following equivalent way to express the above expression and the
corresponding solution you seek:

sage: solve(x^2 - x - 1, x)
[x == -1/2*sqrt(5) + 1/2, x == 1/2*sqrt(5) + 1/2]


 Unfortunately, Sage simply returns the same equation.  If it fails to
 solve this, I imagine it cannot solve more equations similar to this.

Try different reformulations of your problem and obtain different but
equivalent expressions. Then solve for each of those equivalent
expressions. You never know what you'll get.

-- 
Regards
Minh Van Nguyen

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] Link missing

2011-02-26 Thread Minh Nguyen
Hi Roland,

On Tue, Feb 15, 2011 at 2:19 PM, Rolandb rola...@planet.nl wrote:
 Hi, link missing

 Indices and tables

* Index
* Module Index
* Search Page

 Requested page /doc/numerical_sage/py-modindex.html  could not be
 found.

The above is expected because the links Index and Module Index are
only valid for the reference manual. But how to turn off these links
for the other documents is another problem.

-- 
Regards
Minh Van Nguyen

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] simplify and sqrt

2011-01-26 Thread Minh Nguyen
Hi,

On Wed, Jan 26, 2011 at 6:41 PM,  xl...@free.fr wrote:
 sage: sqrt(2)*sqrt(3)
 sqrt(2)*sqrt(3)
 sage: sqrt(2)*sqrt(3)-sqrt(6)
 sqrt(2)*sqrt(3)-sqrt(6)

 I would expect results sqrt(6) and 0...

In the above Sage session, you declared two symbolic expressions. So
it is possible to use methods defined on symbolic expressions other
than simplify(). In the present case, you want to use the
simplify_radical() method to simplify radicals:

sage: E = sqrt(2)*sqrt(3) - sqrt(6); E
sqrt(2)*sqrt(3) - sqrt(6)
sage: type(E)
type 'sage.symbolic.expression.Expression'
sage: E.simplify_radical()
0


 I try with the command simplify() but it doesn't do anything.

For more methods defined on symbolic expressions, do

sage: E.

and press the Tab key. That should allow you to view a list of methods
you could use on the symbolic expression E.

-- 
Regards
Minh Van Nguyen

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] Doumentation bug at http://www.sagemath.org/doc/thematic_tutorials/linear_programming.html

2011-01-26 Thread Minh Nguyen
Hi Keith,

On Thu, Jan 27, 2011 at 4:09 AM,  keith.bri...@bt.com wrote:
 http://www.sagemath.org/doc/thematic_tutorials/linear_programming.html says:

 The Knapsack problem is the following: given a collection of items having
 both a weight and a usefulness, we would like to fill a bag whose capacity
 is constrained through maximizing the usefulness of the items it contains

 This doesn't make sense.  Should through be though (or while)?

Thank you for your bug report. A patch is up at ticket #10697:

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

-- 
Regards
Minh Van Nguyen

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] Re: basic import question

2011-01-24 Thread Minh Nguyen
Hi Ryan,

On Tue, Jan 25, 2011 at 3:10 PM, Ryan Krauss ryanwkra...@gmail.com wrote:
 but I am assuming there has to be a better way.

When you import anything from within a Sage session, it's assumed that
the module to be imported is within the Python path local to your Sage
installation. So your system's PYTHONPATH is ignored, unless you set
it to include Sage's Python path.

-- 
Regards
Minh Van Nguyen

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] problem with from sage.all import *

2011-01-24 Thread Minh Nguyen
Hi Ryan,

On Tue, Jan 25, 2011 at 12:11 PM, Ryan Krauss ryanwkra...@gmail.com wrote:
 I am trying to import sage into a python script and am getting this error:

 ValueError: numpy.dtype has the wrong size, try recompiling

 Is there an easy way around this?

The following might not help at all, but is worth pointing out:

http://www.sagemath.org/doc/faq/faq-usage.html#how-do-i-import-sage-into-a-python-script

-- 
Regards
Minh Van Nguyen

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] Re: About Sphinx in Sage

2011-01-24 Thread Minh Nguyen
Hi,

On Tue, Jan 25, 2011 at 6:10 PM, Garfield garfield.fatcat1...@gmail.com wrote:
 Could you help me figure out how I can complie the Sage tutorial
  Sphinx version (located in $SAGE_ROOT/devel/sage-main/doc/en/tutorial)
 using my own Sphinx (ver 1.0.7) rather than the older version  (1.0.4)
 included in Sage.

Upgrade Sage's Sphinx package to the latest upstream from
sphinx.pocoo.org. To compile the tutorial, from your terminal navigate
to the top-level directory where your Sage lives and build the
tutorial as follows:

$ ./sage -docbuild tutorial pdf

To get the HTML version, do

$ ./sage -docbuild tutorial html

For more information on building the Sage standard documentation, read
the output of the following command:

$ ./sage -docbuild


 What files do I need to complie without using Sphinx included in Sage?

That is a nontrivial task, i.e. compiling the Sage tutorial without
using the version of Sphinx as shipped with Sage. You can save a lot
of hassle by upgrading the version of Sphinx as shipped with Sage to
the latest upstream and then compile the tutorial from there. For more
information on upgrading a Sage package, see

http://www.sagemath.org/doc/developer/patching_spkgs.html

All documentation files are under

SAGE_ROOT/devel/sage-main/doc/


 And can someone give an ansswer for the case if I want to complie only some
 small part of the Sage reference.

That is not possible as far as I know. You better ask on the Sphinx
mailing list.

-- 
Regards
Minh Van Nguyen

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: stack with sage

2011-01-16 Thread Minh Nguyen
Hi,

On Mon, Jan 17, 2011 at 12:43 AM, siham ezzouak sezzo...@gmail.com wrote:
 hellow
 can you answer me about possibility to use stack with sage if yes how
 thanks in advance

Would you please be more specific? By stack, what are you referring to?

-- 
Regards
Minh Van Nguyen

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: stack with sage

2011-01-16 Thread Minh Nguyen
Hi Siham,

On Mon, Jan 17, 2011 at 8:01 AM, siham ezzouak sezzo...@gmail.com wrote:
 Hi,
 yes of course In C/C++ language we can use empty stack and after push
 element in the stack to store element and we can pop element from the stack.
 if you want more explanation you can see
 link http://en.wikipedia.org/wiki/Stack_(data_structure)
 In my project I want to use elliptic curve with stack to stock all Points.
 I hope we understand my idea.
 thank you very much for you help

The main language you use to interface with Sage is Python [1]. Python
doesn't have stacks per se as a built-in data structure. However you
can use Python lists to simulate stacks. See the following section of
the Python reference manual for more information:

http://docs.python.org/library/stdtypes.html#mutable-sequence-types

[1] http://www.python.org

-- 
Regards
Minh Van Nguyen

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] Any way to organize notebooks in folders?

2010-12-12 Thread Minh Nguyen
Hi Jose,

On Sun, Dec 12, 2010 at 11:38 PM, Nin n...@neurohost.org wrote:
 I am starting to collect lots of sage notebooks and I was wondering if is
 there any way to store the in different directories.

Short answer: no.

Long answer: 
http://groups.google.com/group/sage-notebook/browse_thread/thread/d9ca4981b2214e94

-- 
Regards
Minh Van Nguyen

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] Minimum Spanning Trees

2010-12-09 Thread Minh Nguyen
Hi Graham,

On Mon, Dec 6, 2010 at 4:57 AM, Graham Enos graham.e...@gmail.com wrote:
 I wasn't sure if I should submit a ticket on this or not, since it
 seems to fall under unexpected behavior rather than software bug.
 I've been working through some small graph theory problems and was
 computing minimum spanning trees on graphs with weighted edges (where
 edges were assigned a weight as their label). I was getting completely
 unexpected behavior; after some digging, I found that
 G.min_spanning_tree() defaults to setting all edge weights to 1, even
 if the edges have weights assigned.

The patch at ticket #10433

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

should fix the problem you were experiencing, at least for the case
where you use Kruskal's algorithm to find a minimum spanning tree.

-- 
Regards
Minh Van Nguyen

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] user vacancies on sage-trac

2010-12-02 Thread Minh Nguyen
Hi David,

On Fri, Dec 3, 2010 at 6:00 AM, David Joyner wdjoy...@gmail.com wrote:
 Hi:

 Does anyone know how to stop to fake tickets form being created
 on sage-trac by vacancies?

I just checked the trac server; some admin has deleted the user
account vacancies. This is the easiest way to prevent some user from
creating/editing any tickets.

-- 
Regards
Minh Van Nguyen

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] Labeled Graphs

2010-11-24 Thread Minh Nguyen
Hi Johannes,

On Thu, Nov 25, 2010 at 1:51 AM, Johannes dajo.m...@web.de wrote:
 Hi list,
 how do i create a graph where i have a label for each vertex and each
 edge? Precisely I need to labels for each vertex (like a name and a value).

I'm guessing you want a weighted graph such as the following:

sage: version()
'Sage Version 4.6, Release Date: 2010-10-30'
sage: edge_dict = {
: New York: {London: 5586, Paris: 5851, Berlin: 6402},
: London: {Paris: 341, Madrid: 1264},
: Sydney: {Beijing: 8923, Bangkok: 7524}
: }
sage: G = Graph(edge_dict, weighted=True)
sage: G.vertices()
['Bangkok', 'Beijing', 'Berlin', 'London', 'Madrid', 'New York',
'Paris', 'Sydney']
sage: G.edges()
[('Bangkok', 'Sydney', 7524), ('Beijing', 'Sydney', 8923), ('Berlin',
'New York', 6402), ('London', 'Madrid', 1264), ('London', 'New York',
5586), ('London', 'Paris', 341), ('New York', 'Paris', 5851)]

But I can't figure out how to get G.show() to display the edge weights.

-- 
Regards
Minh Van Nguyen

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Fwd: [sage-edu] frobenius solve... how to do it in Sage

2010-11-23 Thread Minh Nguyen
I'm forwarding the post below to sage-support where it properly belongs.

-- 
Regards
Minh Van Nguyen


-- Forwarded message --
From: SVCitian emailsrvr-svcit...@yahoo.com
Date: Wed, Nov 24, 2010 at 1:12 AM
Subject: [sage-edu] frobenius solve... how to do it in Sage
To: sage-edu sage-...@googlegroups.com


In mathematica..
http://reference.wolfram.com/mathematica/ref/FrobeniusSolve.html

one can solve in mathematical easily for questions like this:

---
In England the currency is made up of pound, £, and pence, p, and
there are eight coins in general circulation:
   1p, 2p, 5p, 10p, 20p, 50p, £1 (100p) and £2 (200p).

It is possible to make £2 in the following way:
   1×£1 + 1×50p + 2×20p + 1×5p + 1×2p + 3×1p
How many different ways can £2 be made using any number of coins?
---

How can I solve this question using Sage... Thanks for your
assistance..

It is something to do with Integer Partitions or Frobenius Solve.

Please help

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


Re: [sage-support] Idea for Sage notebooks ( question on getting funding to write these)

2010-11-12 Thread Minh Nguyen
Hi Chris,

On Fri, Nov 12, 2010 at 5:15 AM, Chris Seberino cseber...@gmail.com wrote:
 Does there exist Sage notebooks for high school subjects like algebra,
 geometry and precalculus that are so thorough that they are basically
 like interactive textbooks?

The book High School Sage [1] is an ongoing project to write
curriculum materials for high school mathematics that uses Sage. Once
there is enough materials, the next step would be to convert the
materials to an interactive book.


 CalculusMathematica seems to be an innovative program to create
 similar interactive textbooks for Mathematica for calculus.

Open source projects have a very high turn over with respect to human
resource; someone may be working on one part of the project one day,
and then would stop contributing altogether the next. Thus it's not
surprising that some part of a project receives attention and
innovative work, while other aspects are left to wither on the vine.


 Anyone know of such a project or if NSF or anyone else would be
 interested in funding development of such Sage interactive textbooks?

I don't know of a specific grant to fund the development of an
interactive calculus book. However, I'm aware of the ongoing book
Integral Calculus and Sage [2], whose goal is to produce a book on
integral calculus that incorporates calculus features of Sage. It's
conceivable that once the whole book is fully fleshed out, there is
scope to convert it into an interactive textbook.

[1] http://code.google.com/p/high-school-sage/

[2] http://code.google.com/p/intcalc-book/

-- 
Regards
Minh Van Nguyen

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] Display all XXXX possibilities? Problem

2010-11-08 Thread Minh Nguyen
Hi John,

On Tue, Nov 9, 2010 at 2:27 AM, JJBWebb johnjackw...@gmail.com wrote:
 I'm trying to build a power series, and when I call the function to
 build it, sage responds Display all  possiblities? (y or n).

 I hit n, then the same command pops up and then computes the power
 series correctly.

It works fine for me with Sage 4.6:

sage: version()
'Sage Version 4.6, Release Date: 2010-10-30'
sage: P = 79; m = 2
sage: upbound= integer_floor(P^m * (P-1) / 10) + 10
sage: R.q = PowerSeriesRing(IntegerModRing(P^m), upbound)
sage: def EEbuild(bound):
: EE = 1 - q - q^2 + O(q^upbound)
: for i in range(2,bound+1):
: EE=EE+(-1)^i*(q^((1/2)*i*(3*i+1))+q^((1/2)*i*(3*i-1)))
: return EE
:
sage: lil = integer_floor(sqrt(upbound*4/3)) + 10
sage: ee = EEbuild(lil)+O(q^upbound)
sage: ee = EEbuild(lil)+O(q^upbound)


 Is there some way to get it so I don't have to hit n (i.e. avoid the
 Display all ... completely) so I can automate this process?

Ensure you don't use tabs.

-- 
Regards
Minh Van Nguyen

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] union of lists and remove an element from a list

2010-10-27 Thread Minh Nguyen
Hi Marusia,

On Thu, Oct 28, 2010 at 7:02 AM, m.rebolledo
marusia.reboll...@gmail.com wrote:
 Hello,
 how to do the union of several lists (more than two)?

Lists are multisets, so I assume you mean to combine several lists
into one, while retaining duplicate elements. You could do so using
the list concatenation operator +:

sage: L1 = [2, 3, 5, 7, 11]
sage: L2 = [a, b, c, 13]
sage: L3 = [1/2, 1/3, 1/4]
sage: L1 + L2 + L3
[2, 3, 5, 7, 11, 'a', 'b', 'c', 13, 1/2, 1/3, 1/4]

Via the list method extend():

sage: L = []
sage: L.extend(L1)
sage: L.extend(L2)
sage: L.extend(L3)
sage: L
[2, 3, 5, 7, 11, 'a', 'b', 'c', 13, 1/2, 1/3, 1/4]

Or use the Sage built-in function flatten():

sage: flatten([L1, L2, L3])
[2, 3, 5, 7, 11, 'a', 'b', 'c', 13, 1/2, 1/3, 1/4]

If you really want to remove duplicate elements in the final combined
list, use Set():

sage: L1 = [1, 2]
sage: L2 = [2, 3, 4]
sage: L3 = [a, b]
sage: Set(L1 + L2 + L3)
{'a', 1, 2, 3, 4, 'b'}
sage: list(Set(L1 + L2 + L3))
['a', 1, 2, 3, 4, 'b']


 and how to
 remove some elements of the lists?

Use the operator del:

sage: L
[2, 3, 5, 7, 11, 'a', 'b', 'c', 13, 1/2, 1/3, 1/4]
sage: L[0]
2
sage: del L[0]; L
[3, 5, 7, 11, 'a', 'b', 'c', 13, 1/2, 1/3, 1/4]
sage: L[-1]
1/4
sage: del L[-1]; L
[3, 5, 7, 11, 'a', 'b', 'c', 13, 1/2, 1/3]


 I know that it is probably
 elementary but I did not find it in the help... :(

See the Python tutorial [1] for some introductory materials on using
lists. This page [2] and this page [3] provide detailed information on
operations on lists.


[1] http://docs.python.org/tutorial/introduction.html#lists

[2] 
http://docs.python.org/library/stdtypes.html#sequence-types-str-unicode-list-tuple-buffer-xrange

[3] http://docs.python.org/library/stdtypes.html#typesseq-mutable

-- 
Regards
Minh Van Nguyen

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] Converting StringMonoidElement to Integer

2010-10-16 Thread Minh Nguyen
Hi duro,

On Sat, Oct 16, 2010 at 11:39 PM, duro hereweg...@gmail.com wrote:
 Hello.

 Is there a possibility to convert type class
 'sage.monoids.string_monoid_element.StringMonoidElement' to Integer
 in efficient way?

Yes, there two ways to do what you want.


 I've generated some random bits by calling
 blum_blum_shub(length,lbound,ubound) but I need the binary result (or
 rather the StringMonoidElement) to be represented as a decimal number.

Here are two ways, assuming that you want the bits in little-endian
order, i.e. you read the bits from right to left in increasing order
of powers of 2.

sage: version()
'Sage Version 4.5.3, Release Date: 2010-09-04'
sage: from sage.crypto.stream import blum_blum_shub
sage: b = blum_blum_shub(length=6, lbound=10**4, ubound=10**5); b
100110
sage: type(b)
class 'sage.monoids.string_monoid_element.StringMonoidElement'
sage: # read in little-endian order
sage: # conversion using Python's built-in int()
sage: int(str(b), base=2)
38
sage: # conversion using Sage's built-in Integer()
sage: Integer(str(b), base=2)
38

Now assume you read the bitstring as output by blum_blum_shub() in
big-endian order, i.e. from left to right in increasing order of
powers of 2. You simply convert the bitstring to a string, reverse
that string, and apply any of the above two methods.

sage: # reversing a string
sage: str(b)
'100110'
sage: str(b)[::-1]
'011001'
sage: # read in big-endian order
sage: int(str(b)[::-1], base=2)
25
sage: Integer(str(b)[::-1], base=2)
25

-- 
Regards
Minh Van Nguyen

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] Graph Theory

2010-10-16 Thread Minh Nguyen
Hi Bill,

On Sun, Oct 17, 2010 at 12:00 AM, Bill wode...@iun.edu wrote:
 When I run

 g4=Graph({'H':['G','L','L','D'],'L':['G','D']})
 g4.eulerian_circuit()

 I get the error message

 Traceback (click to the left of this block for traceback)
 ...
 RuntimeError: Vertex (L) not in the graph.


 This seems to be an error in the routine.

I think you just discovered that eulerian_circuit() can't handle
multiple edges. If you convert g4 to an undirected graph without
multiple edges, then everything's fine (I hope):

sage: version()
'Sage Version 4.5.3, Release Date: 2010-09-04'
sage: g4 = Graph({'H':['G','L','L','D'], 'L':['G','D']}); g4
Multi-graph on 4 vertices
sage: g4.allow_multiple_edges(False); g4
Graph on 4 vertices
sage: g4.eulerian_circuit(labels=False)
[('H', 'D'), ('D', 'L'), ('L', 'G'), ('G', 'H'), ('H', 'L')]

Thank you for your bug report. This is now ticket #10135:

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

-- 
Regards
Minh Van Nguyen

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] emacs mode for sage

2010-10-11 Thread Minh Nguyen
Hi Martin,

On Tue, Oct 12, 2010 at 12:21 AM, Martin Rubey
martin.ru...@math.uni-hannover.de wrote:
 Dear all,

 I'm currently looking at sage-mode for emacs, but fail to find
 documentation.  C-h m doesn't really reveil much.

 (or is there another canonical choice to use sage from within emacs?)

I haven't heard from Nick Alexander (the Emacs sage-mode writer and
maintainer) for months now. Let me try forwarding your email to him.


 I should add: this is mainly for a course I'm going to give this term...

-- 
Regards
Minh Van Nguyen

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] emacs mode for sage

2010-10-11 Thread Minh Nguyen
Hi Nick,

On Tue, Oct 12, 2010 at 3:06 PM, Nick Alexander ncalexan...@gmail.com wrote:
 Start with `run-sage' and `sage-send-buffer'.  Everything else is gravy :)

I note that sage-mode is up on the Sage wiki [1]. But is there a
repository of sage-mode somewhere that I can fork? Say I want to have
my own fork of sage-mode and host that forked repository on
bitbucket.org, github.com or Google code. Which files from
sage-mode-0.6.spkg should I put under revision control and pushed to
the repository hosting provider? I take it that I should not put
everything in sage-mode-0.6.spkg under revision control and pushed to
my forked repository.

[1] http://wiki.sagemath.org/sage-mode

-- 
Regards
Minh Van Nguyen

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Fwd: [sage-edu] display problem

2010-10-06 Thread Minh Nguyen
Hi Nicolas,

I have forwarded your question to the sage-support list, where it
should receive a much wider audience. Please reply to that list and
not the sage-edu list.

-- 
Regards
Minh Van Nguyen


-- Forwarded message --
From: billerey bille...@gmail.com
Date: Thu, Oct 7, 2010 at 7:40 AM
Subject: [sage-edu] display problem
To: sage-edu sage-...@googlegroups.com


Hello,
I'm trying to install a notebook server for my undergraduate students
and everything works fine, except that I cannot display any output in
my worksheets... (of course I have already tried to click on 'show all
output')
Any idea?
Many thanks in advance!
Nicolas B.

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] Exclusive-or of hexadecimal strings?

2010-09-23 Thread Minh Nguyen
Hi Alasdair,

On Thu, Sep 23, 2010 at 11:40 PM, Alasdair amc...@gmail.com wrote:
 Is there a more direct way?  In python, the operator ^ is supposed to
 implement x-or on strings, but of course in Sage that operator is
 recognized as an exponential, and so gives an error.

You could try turning the preparser and using hexadecimal notation:

sage: version()
'Sage Version 4.5.3, Release Date: 2010-09-04'
sage: preparser(False)
sage: hex(0x2bd5427c ^ 0x65ef24ab)
'0x4e3a66d7'

-- 
Regards
Minh Van Nguyen

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] Exclusive-or of hexadecimal strings?

2010-09-23 Thread Minh Nguyen
Hi Alasdair,

On Thu, Sep 23, 2010 at 11:40 PM, Alasdair amc...@gmail.com wrote:
 Is there a more direct way?  In python, the operator ^ is supposed to
 implement x-or on strings, but of course in Sage that operator is
 recognized as an exponential, and so gives an error.

Maybe fiddling with the preparser is not what you want. You could use
the xor() function built into Python without toggling the preparsing:

sage: from operator import xor
sage: hex(xor(0x2bd5427c, 0x65ef24ab))
'4e3a66d7'

-- 
Regards
Minh Van Nguyen

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] default browser for notebook

2010-09-23 Thread Minh Nguyen
Hi Johannes,

On Fri, Sep 24, 2010 at 5:47 AM, Johannes dajo.m...@web.de wrote:
 hi list,
 how can i change the browser, which is started after i started sage
 notebook by `sage -notebook`
 I want to use firefox, but i always get a new instance of konquer.

You could set the Sage environment variable SAGE_BROWSER:

$ export SAGE_BROWSER=/path/to/firefox
$ load Sage notebook

For more environment variables, see the file

sage/misc/viewer.py

-- 
Regards
Minh Van Nguyen

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] Using PyWavelets in Sage

2010-09-16 Thread Minh Nguyen
Hi,

On Fri, Sep 17, 2010 at 12:07 PM, j wade wade.jer...@gmail.com wrote:
 I would like to use PyWavelets (http://www.pybytes.com/pywavelets/) in
 Sage.

 I am running Sage 4.3.4 on Ubuntu 9.10.

 I have installed python-pywt using Synaptic File Manager, but I am not
 sure what to do beyond this.  I have refreshed the libraries, and
 tried

 import scipy
 from scipy import pywt

 and

 import scipy
 import pywt

 but neither command recognizes pywt.

The above steps failed because by default Sage doesn't recognize
Python packages that you have installed system-wide. That is, the
package manager Synaptic installs packages system-wide, whereas the
packages (including Python ones) in Sage are installed specifically
under the SAGE_ROOT top-level directory. So when you issued

import pywt

from within a Sage session, Sage couldn't find pywt because PyWavelets
was not installed under a place where Sage would by default recognize.


 If someone out there is using pywavelets with Sage, I'd appreciate it
 if you could let me know how you were able to get it to work.

Here are the steps that should allow you to install and use PyWavelets
from within Sage.

(1) Download a source release of PyWavelets from
http://pypi.python.org/pypi/PyWavelets/. I downloaded
PyWavelets-0.2.0.tar.bz2 and uncompressed it.

(2) Get the absolute path to your local Sage installation. In my case, it's

/dev/shm/mvngu/sage-4.5.3

(3) Navigate to the top-level directory of the uncompressed PyWavelets
package and install it:

$ cd /path/to/PyWavelets-0.2.0/
$ /dev/shm/mvngu/sage-4.5.3/sage -python setup.py install
installation messages

(4) Load Sage and start using PyWavelets:

$ /dev/shm/mvngu/sage-4.5.3/sage
--
| Sage Version 4.5.3, Release Date: 2010-09-04   |
| Type notebook() for the GUI, and license() for information.|
--
sage: import pywt
sage: pywt.families()
['haar', 'db', 'sym', 'coif', 'bior', 'rbio', 'dmey']
sage: w = pywt.Wavelet('db3')
sage: print w
Wavelet db3
  Family name:Daubechies
  Short name: db
  Filters length: 6
  Orthogonal: True
  Biorthogonal:   True
  Symmetry:   asymmetric

-- 
Regards
Minh Van Nguyen

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] Operations for analysis and design of feedback control systems

2010-09-15 Thread Minh Nguyen
Hi pepe,

On Mon, Sep 13, 2010 at 6:56 PM, pepe balazovic.pe...@gmail.com wrote:
 Is there support for operations for analysis and design of feedback
 control systems, kind of MATLAB Control Systems Toolbox?

I'm not aware of any such thing currently in Sage.


 Up to now I found only python-control package
 https://sourceforge.net/apps/mediawiki/python-control and some
 extension http://linux3.dti.supsi.ch/~bucher/

 Does SAGE provide something control engineering purposes?

Not that I know of. But if you find the python-control package useful,
you could make it into a contributed package.

-- 
Regards
Minh Van Nguyen

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] Machine Learning Py

2010-09-13 Thread Minh Nguyen
Hi Pere,

On Mon, Sep 13, 2010 at 5:49 PM, Pere  Quintana Seguí
p...@illadelaire.org wrote:
 Hello,

 Do you know if there are any plans to integrate the mlpy library
 (https://mlpy.fbk.eu/) in sage?

I'm not aware of any such plans. But a few months ago, there was some
discussion about having support vector machine functionalities in
Sage. If you would like to use mlpy [1] from within Sage, you could
produce an optional package or a contributed package. A contributed
package (otherwise known as an experimental package) is something you
produce and maintain yourself. The Sage project take no responsibility
in maintaining a contributed package. However, we offer hosting space
for your contributed spkg.

An optional package needs to pass some minimum requirements in order
for it to become an optional package. For example, an optional spkg
must be tested and work on most of the operating systems that Sage
runs on. The Sage project takes minimum responsibility vis-a-vis
maintaining an optional package. That is, we don't do all the work of
maintaining an optional package; you need to commit yourself to
sharing that task. A reason is that there are many standard packages
currently distributed by default with Sage, and the effort required to
maintain those standard spkg's is huge. There are not enough human
resource and volunteers to maintain the standard packages, so the Sage
project needs to prioritize its effort. If you would like to produce
and maintain an optional or contributed spkg, we can provide hosting
space.

[1] https://mlpy.fbk.eu

-- 
Regards
Minh Van Nguyen

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] Mathematica

2010-09-09 Thread Minh Nguyen
Hi Jan,

On Thu, Sep 9, 2010 at 7:47 PM, Jan Groenewald j...@aims.ac.za wrote:
 Does anyone have anything to add,

Here's a section from the Sage FAQ that raises some ethical issues in
mathematics research:

http://www.sagemath.org/doc/faq/faq-general.html#why-is-sage-free-open-source

-- 
Regards
Minh Van Nguyen

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] Sage2LaTeX: is it an error?

2010-09-06 Thread Minh Nguyen
Hi,

On Mon, Sep 6, 2010 at 7:16 PM, adriatikus adriati...@gmail.com wrote:
 Shouldn't it be instead
 \frac{-(l + r)}{l - r}

Thank you for your bug report. I can confirm this problem with Sage 4.5.2:

sage: version()
'Sage Version 4.5.2, Release Date: 2010-08-05'
sage: var('l'); var('r');
sage: x = (r+l)/(r-l)
sage: latex(x)
\frac{-l + r}{l - r}
sage: x
-(l + r)/(l - r)

The relevant bug tracking tickets are #9394 [1] and #9834 [2].

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

[2] http://trac.sagemath.org/sage_trac/ticket/9834

-- 
Regards
Minh Van Nguyen

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] netcdf error in sage-4.5.2

2010-09-06 Thread Minh Nguyen
Hi,

On Fri, Sep 3, 2010 at 8:03 PM, samrat samluvs...@gmail.com wrote:
 When i recompile netcdf-4.1.1 with CFLAGS=-fPIC i no longer get this
 error. It this a bug in sage or what i have done is correct?

Many standard packages that are shipped by default with Sage are
usually compiled with CFLAGS=-fPIC. So what you did was OK. Thank you
for sharing your workaround.


 Will
 there be any further problems in the netcdf-4.1.1 installation?

It's hard to say. The package netcdf is not maintained in any way by
any Sage contributor. Also, the package itself is not listed on any of
the standard, optional, or contributed (formerly experimental) package
repositories [1].

[1] http://www.sagemath.org/download-packages.html

-- 
Regards
Minh Van Nguyen

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] how does one read rational numbers in Sage?

2010-09-06 Thread Minh Nguyen
Hi Dima,

On Mon, Sep 6, 2010 at 11:26 PM, Dima Pasechnik dimp...@gmail.com wrote:
 What is going on? This is with
  Sage Version 4.5.3.rc0, Release Date: 2010-08-30

The problem lies with typing in Python. Any file with the extension
.py is interpreted by Sage as a Python module and is loaded in/read
as such without any preparsing. Note that at the Python shell you
would get this:

sage: version()
'Sage Version 4.5.2, Release Date: 2010-08-05'
sage: !python
Python 2.6.4 (r264:75706, Aug 13 2010, 15:30:25)
[GCC 4.2.4 (Ubuntu 4.2.4-1ubuntu4)] on linux2
Type help, copyright, credits or license for more information.
 3 / 2
1


 Any tips how to fix this?

One way to overcome the above problem is to rename your file to have
the extension .sage. That way, such a file would be read in and
preparsed. Here's an example:

sage: !cat demo.py
dat = [[6,3,3,4,1,3/2], [6,3,3,4,1,1]]
print dat
sage: load(demo.py)
[[6, 3, 3, 4, 1, 1], [6, 3, 3, 4, 1, 1]]
sage:
sage: !cat demo2.sage
dat = [[6,3,3,4,1,3/2], [6,3,3,4,1,1]]
print dat
sage: load(demo2.sage)
[[6, 3, 3, 4, 1, 3/2], [6, 3, 3, 4, 1, 1]]

-- 
Regards
Minh Van Nguyen

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] Re: plot 3d complex function

2010-09-04 Thread Minh Nguyen
Hi,

On Sat, Sep 4, 2010 at 7:01 PM, sps debernasave...@libero.it wrote:
 But what is fast_callable function ? Where can I find adaguate
 documentation?

See this page in the reference manual

http://www.sagemath.org/doc/reference/sage/symbolic/expression_conversions.html#sage.symbolic.expression_conversions.fast_callable

-- 
Regards
Minh Van Nguyen

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] Symbolic expression and complex number

2010-07-16 Thread Minh Nguyen
Hi Cyrille,

On Fri, Jul 16, 2010 at 5:42 PM, sweedler ospe...@gmail.com wrote:
  I don't understand where is my mistake.

You didn't make any mistakes. It's a bug in the version of Sage you
were using. The bug has been fixed in the latest version of Sage:

sage: version()
'Sage Version 4.4.4, Release Date: 2010-06-23'
sage: P = (1 + I)*x
sage: Q = -P; Q
(-I - 1)*x
sage: P + Q
0

-- 
Regards
Minh Van Nguyen

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] Sage-mode in Emacs

2010-07-14 Thread Minh Nguyen
Hi Vasu,

On Thu, Jul 15, 2010 at 4:58 AM, vasu tewari.v...@gmail.com wrote:
 I am relatively new to this, so does anybody have a clue how to get
 the thing working!

Don't copy the code from the Sage mode page. Use the code that is
printed to your terminal after you have successfully installed
sage-mode. And make sure you know where your local Sage installation
is. For example, here is my local Sage installation:

[mv...@sage ~]$ /scratch/mvngu/usr/bin/sage/sage --version
| Sage Version 4.4.4, Release Date: 2010-06-23   |

Here is my downloaded sage-mode:

[mv...@sage ~]$ ls sage-mode-0.6.spkg
sage-mode-0.6.spkg

Now install sage-mode:

[mv...@sage ~]$ /scratch/mvngu/usr/bin/sage/sage -f sage-mode-0.6.spkg
SNIP
A basic install might include the following Emacs Lisp in your .emacs:

(add-to-list 'load-path (expand-file-name
/mnt/usb1/scratch/mvngu/usr/bin/sage/data/emacs))
(require 'sage sage)
(setq sage-command /mnt/usb1/scratch/mvngu/usr/bin/sage/sage)

;; If you want sage-view to typeset all your output and have plot()
;; commands inline, uncomment the following line and configure sage-view:
;; (require 'sage-view sage-view)
;; (add-hook 'sage-startup-hook 'sage-view)
;; You can use commands like
;; (add-hook 'sage-startup-hook 'sage-view
;; 'sage-view-disable-inline-output 'sage-view-disable-inline-plots)
;; to have some combination of features.  In future, the customize interface
;; will make this simpler... hint, hint!
SNIP

And I copy the above code to my .emacs file.

-- 
Regards
Minh Van Nguyen

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] Data list

2010-06-10 Thread Minh Nguyen
Hi Marco,

On Fri, Jun 11, 2010 at 5:03 AM, Marco Boretto marco.b...@gmail.com wrote:
 I'm tryng to to simple thing like this:

 m=[0.6158, 0.5893, 0.5682, 0.51510, 0.4980, 0.4750, 0.5791,
 0.5570,0.5461, 0.4970, 0.4920, 0.4358, 0.422, 0.420]
 m.count

 i want to know the number of the object but the answer is

 built-in method count of list object at 0x3f31a28

 Want does it mean?

It means that the m.count is located at the memory address 0x3f31a28.
To get the number of elements in a list, do

sage: m = [0.6158, 0.5893, 0.5682, 0.51510, 0.4980, 0.4750, 0.5791,
0.5570,0.5461, 0.4970, 0.4920, 0.4358, 0.422, 0.420]
sage: # how many elements in m
sage: len(m)
14


 Another similar thing, i want to multiply the all the elements for
 10^-6

 so i try:
 m= (10^-6)*[0.6158, 0.5893, 0.5682, 0.51510, 0.4980, 0.4750, 0.5791,
 0.5570,0.5461, 0.4970, 0.4920, 0.4358, 0.422, 0.420]

 but is not the rigth way.. how i can do it?

Try this

sage: # multiply each element by 10^(-6)
sage: [i*10^(-6) for i in m]
[6.158000e-7, 5.893000e-7, 5.682000e-7,
5.151000e-7, 4.98e-7, 4.75e-7,
5.791000e-7, 5.57e-7, 5.461000e-7,
4.97e-7, 4.92e-7, 4.358000e-7,
4.22e-7, 4.20e-7]

-- 
Regards
Minh Van Nguyen

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] Does d1, d2 have special meanings in solve?

2010-05-29 Thread Minh Nguyen
Hi Kiran,

On Sun, May 30, 2010 at 4:27 AM, km kiran.ma...@googlemail.com wrote:

SNIP

 This happens only with d1 and d2. a1 or what ever works well.

d2 has special meaning in Maxima and the solve() command uses Maxima
for its backend. This is the same problem as reported at this [1]
sage-devel thread. That thread explains the reasoning for why you are
having the problem you're reporting.

[1] 
http://groups.google.com/group/sage-devel/browse_thread/thread/67f0a63d00b8d835

-- 
Regards
Minh Van Nguyen

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] One more math document citing Sage

2010-05-20 Thread Minh Nguyen
Hi Laurent,

On Fri, May 21, 2010 at 1:12 AM, Laurent moky.m...@gmail.com wrote:
 Ciao tutti !


 I remember to have read somewhere that the Sage's community has a list of
 math documents using or citing Sage.

A list of publications citing Sage is available here [1]. The bottom
of that page is a section on how to cite Sage in any published work.


 So, here is my contribution (in French) :
 http://student.ulb.ac.be/~lclaesse/geog.pdf

 This is ~200 exercise and corrections about general mathematics : vector
 spaces, matrices, eigenvectors, quadratic form, optimization on R^2,
 integration, ...

 I indicate and furnish full code in order to solve some of the exercises
 using Sage. I also developed a _ad hoc_ module for solving the most typical
 exercises.

My knowledge of the French language being next to nothing, I don't
know where within the Sage website to link to your document. On the
other hand, this page [2] links to documents such as reference cards
(cheat sheets), screencasts, tutorials, blogs, etc. Do you think your
document could be linked to from that page?


 The LaTeX/Sage/Python sources are on the git repository :
 http://gitorious.org/math-gene-ulb

A big thank you to you for opening up your content and allowing others
to build upon your work.


[1] http://www.sagemath.org/library-publications.html

[2] http://www.sagemath.org/help.html#furtherResources

-- 
Regards
Minh Van Nguyen

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] How to Reverse an Binary Array

2010-05-15 Thread Minh Nguyen
Hi,

On Sat, May 15, 2010 at 5:58 PM, Santanu Sarkar
sarkar.santanu@gmail.com wrote:
 Suppose A=[0,0,1,1,0,1]. How one can reverse this array using commend only?

If A is a list, then the command A.reverse() would reverse your list
in place, meaning that it would actually change your list A. On the
other hand, there are times when you don't want to change your list,
but to get the reverse of the list. In that case, you could use the
slice operation [::-1]. Here are some examples to demonstrate what I
mean:

[mv...@sage ~]$ sage
--
| Sage Version 4.4.1, Release Date: 2010-05-02   |
| Type notebook() for the GUI, and license() for information.|
--
sage: A = [0,0,1,1,0,1]; B = copy(A); A; B
[0, 0, 1, 1, 0, 1]
[0, 0, 1, 1, 0, 1]
sage: A == B
True
sage: A.reverse(); A
[1, 0, 1, 1, 0, 0]
sage: A == B
False
sage:
sage: reset()
sage:
sage: A = [0,0,1,1,0,1]; B = copy(A); A; B
[0, 0, 1, 1, 0, 1]
[0, 0, 1, 1, 0, 1]
sage: A == B
True
sage: C = A[::-1]; C
[1, 0, 1, 1, 0, 0]
sage: A == B == C
False
sage: A == B
True
sage: A == C
False
sage: A; C
[0, 0, 1, 1, 0, 1]
[1, 0, 1, 1, 0, 0]

-- 
Regards
Minh Van Nguyen

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] generate oriented graphs at random

2010-05-13 Thread Minh Nguyen
Hi,

On Fri, May 14, 2010 at 11:21 AM, vivek freewill1...@gmail.com wrote:
 Hi

 I need to generate oriented graphs at random or possibly create one
 from the graph generated by the function randomGNP.

I think here's a rough way to do what you want:

* Generate a random graph G with RanomGNP, i.e. G is undirected.

* Let D be the digraph version of G, i.e. if uv is an edge of D, then
vu is also an edge.

* Let P be the edge removal probability.

* For each edge uv in G, generate a cutoff probability p. If p = P,
remove uv from the digraph D. Otherwise p  P, so we remove vu from D.

For concreteness, here is some code:

[mv...@sage ~]$ sage
--
| Sage Version 4.4.1, Release Date: 2010-05-02   |
| Type notebook() for the GUI, and license() for information.|
--
sage: G = graphs.RandomGNP(10, random())
sage: G.edges(labels=False)
[(0, 8), (0, 9), (1, 2), (1, 3), (2, 7), (3, 9), (4, 8), (5, 6), (7, 9)]
sage: D = G.to_directed()
sage: D.edges(labels=False)
[(0, 8), (0, 9), (1, 2), (1, 3), (2, 1), (2, 7), (3, 1), (3, 9), (4,
8), (5, 6), (6, 5), (7, 2), (7, 9), (8, 0), (8, 4), (9, 0), (9, 3),
(9, 7)]
sage: D.size()
18
sage: P = random(); P
0.46551086400827191
sage: for u, v in G.edge_iterator(labels=False):
: p = random()
: if p = P:
: D.delete_edge(u, v)
: else:
: D.delete_edge(v, u)
:
sage: D.edges(labels=False)
[(0, 8), (0, 9), (1, 2), (1, 3), (3, 9), (5, 6), (7, 2), (8, 4), (9, 7)]
sage: D.size()
9

-- 
Regards
Minh Van Nguyen

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] OT: slicing an interval in python

2010-05-10 Thread Minh Nguyen
Hi Renato,

On Tue, May 11, 2010 at 9:09 AM, Renato renn...@gmail.com wrote:

SNIP

 In python (I'd like to know it in python, not sage), how can I get an
 ordered array of n random values, all in the interval (a,b), such that
 any two consecutives differ more than h? Of course first thing would be
 checking that b - a  n*h

You could use the Python random package, which has a function called
uniform(a,b) to find a pseudorandom number uniformly distributed
between a and b. Here's an example of what I think you want to do:

[mv...@sage ~]$ sage -ipython
Python 2.6.4 (r264:75706, Mar 31 2010, 08:31:30)
Type copyright, credits or license for more information.

IPython 0.9.1 -- An enhanced Interactive Python.
? - Introduction and overview of IPython's features.
%quickref - Quick reference.
help  - Python's own help system.
object?   - Details about 'object'. ?object also works, ?? prints more.

In [1]: from random import uniform

In [2]: def my_rand(prev, delta, start, end):
   ...: next = uniform(start, end)
   ...: while abs(prev - next) = delta:
   ...: next = uniform(start, end)
   ...: return next
   ...:

In [3]: a = -100

In [4]: b = 100

In [5]: d = 3.145

In [6]: n = 10

In [7]: A = [uniform(a, b)]

In [8]: for i in range(n - 1):
   ...: prev = A[-1]
   ...: A.append(my_rand(prev, d, a, b))
   ...:
   ...:

In [9]: A
Out[9]:
[-50.561356080352084,
 16.45084767625751,
 44.410150328421139,
 94.061257664210132,
 62.878963867176395,
 13.150190877114596,
 44.929991848023548,
 8.7017092842752959,
 4.4325842110072244,
 -3.1168123962670222]

In [10]: for i in range(len(A) - 1):
   : print A[i], A[i+1], abs(A[i] - A[i+1])
   :
   :
-50.5613560804 16.4508476763 67.0122037566
16.4508476763 44.4101503284 27.9593026522
44.4101503284 94.0612576642 49.6511073358
94.0612576642 62.8789638672 31.182293797
62.8789638672 13.1501908771 49.7287729901
13.1501908771 44.929991848 31.7798009709
44.929991848 8.70170928428 36.2282825637
8.70170928428 4.43258421101 4.26912507327
4.43258421101 -3.11681239627 7.54939660727

-- 
Regards
Minh Van Nguyen

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: [sage-edu] representation theory

2010-05-09 Thread Minh Nguyen
Hi,

On Mon, May 10, 2010 at 8:03 AM, sage_newbie aliaj...@gmail.com wrote:
 Hello ,
 is there a package about representation theory ,
 I looking for method to check if a representation reducible or not ?

I'm forwarding your query to the sage-support mailing list. That list
is where you should ask support questions and you are more likely to
get a response to your query on that list.


 best regards .

-- 
Regards
Minh Van Nguyen

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] problem with viroable 2D arrays

2010-05-03 Thread Minh Nguyen
Hi,

On Mon, May 3, 2010 at 11:17 PM, hamed akhavan
hamedakha...@mecheng.iust.ac.ir wrote:

SNIP

 Please guide me, how can I do that in Sage?

These threads from sage-support [1] and sage-devel [2] might be relevant.

[1] 
http://groups.google.com/group/sage-support/browse_thread/thread/aa3f2adb5c2befed/

[2] 
http://groups.google.com/group/sage-devel/browse_thread/thread/a47f6ee0309c1cef

-- 
Regards
Minh Van Nguyen

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] New sage version?

2010-05-02 Thread Minh Nguyen
Hi Victor,

On Mon, May 3, 2010 at 5:52 AM, VictorMiller victorsmil...@gmail.com wrote:
 I just downloaded, what I thought, was SAGE 4.4 (I went to
 sagemath.org, download, and clicked on the server from Boston) for Mac
 OS X 64 bit intel.  After installing it, and running it the banner
 says version 4.3.5.

Somehow the Sage 4.4 binary for Intel OS X 64-bit is named

sage-4.3.5-OSX-64bit-10.6-i386-Darwin.dmg

This suggests to me that you really did download a binary for Sage 4.3.5.


 Has the new version not made it out to all the
 servers?

The Sage 4.4 source and binaries have made it to 77% of mirrors around
the world [1]. I think there was some mishap that results in a Sage
4.3.5 binary still being mirrored.

[1] http://www.sagemath.org/download.html

-- 
Regards
Minh Van Nguyen

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] Binary Tree

2010-04-29 Thread Minh Nguyen
Hi Santanu,

On Thu, Apr 29, 2010 at 4:19 PM, Santanu Sarkar
sarkar.santanu@gmail.com wrote:
 Hi,
  How one can create a binary tree

There is as yet no class for representing binary trees in Sage.
However, you could use either the classes Graph or DiGraph to
construct a graph T and then use the method T.is_tree() to determine
whether or not T is a tree. Also missing is a method to determine
whether or not a tree is binary. That can be remedied by defining your
own function to test the number of children a vertex has. Using Graph
to construct a tree, and then test that tree to see that it is binary,
is rather difficult because unless you label the vertices to indicate
their parents, you don't know which vertex is a child of which other
vertex.

In general, I prefer using DiGraph to construct a tree T and then use
the method T.neighbors_out() in testing whether or not T is a binary
tree. The reason is that in a digraph that represents a tree, you can
think of the out-neighbors of a vertex as being the children of that
vertex. Here is an example demonstrating the construction of a binary
tree rooted at vertex v. By definition, a vertex in a binary tree
has at most 2 children. The session below uses this definition to test
whether or not a tree is binary.

[mv...@sage ~]$ sage
--
| Sage Version 4.4, Release Date: 2010-04-24 |
| Type notebook() for the GUI, and license() for information.|
--
sage: T = DiGraph({v: [a, w],
: w: [x, y],
: x: [c, b],
: y: [z, d],
: z: [f, e]})
sage: T.vertices()
['a', 'b', 'c', 'd', 'e', 'f', 'v', 'w', 'x', 'y', 'z']
sage: T.edges(labels=None)
[('v', 'a'), ('v', 'w'), ('w', 'x'), ('w', 'y'), ('x', 'b'), ('x',
'c'), ('y', 'd'), ('y', 'z'), ('z', 'e'), ('z', 'f')]
sage: T.is_tree()
True
sage: def is_binary_tree(tree):
: for v in tree.vertex_iterator():
: if len(tree.neighbors_out(v))  2:
: return False
: return True
:
sage: is_binary_tree(T)
True


 and cut some of its branches
 under some conditions continuously in Sage?

The some conditions you refer to is up to you to decide. Once you
have determined the root vertex of a branch that satisfies your
condition(s), you could use breadth-first search (or depth-first
search) to determine all vertices in that branch. Again, assume that
your binary tree T is represented using the DiGraph class and V is a
list of vertices in the branch to want to cut off. You can use the
method T.delete_vertices() to cut off that branch. Deleting a vertex v
not only deletes v, but also all edges incident on that vertex. Say
you have constructed your tree as in the above session and you have
determined that the vertex y is the root of the branch you want to
cut off. Here is how you can cut off that branch:

sage: V = list(T.breadth_first_search(y))
sage: V
['y', 'd', 'z', 'e', 'f']
sage: T.delete_vertices(V)
sage: T.vertices()
['a', 'b', 'c', 'v', 'w', 'x']
sage: T.edges(labels=None)
[('v', 'a'), ('v', 'w'), ('w', 'x'), ('x', 'b'), ('x', 'c')]

-- 
Regards
Minh Van Nguyen

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: I can't get start: ¡RuntimeError : Unable to determine branch?!

2010-04-24 Thread Minh Nguyen
Hi,

On Sun, Apr 25, 2010 at 11:33 AM, Yonatan yzuletaoc...@gmail.com wrote:
 *Debian lenny 5.0.4
 *Linux kernel  2.6.26-2-686
 *gnome 2.22.3

 *sage-4.3.5-linux-32bit-debian_5.0-i686-Linux (version that i have. I
 downloaded it form official page: sage-4.3.5-linux-32bit-debian_5.0-
 i686-Linux.tar.lzma)


 I can't to load any library of sage (i am a new user of sage). i
 write ./sage and:

 ***
 ***
 sh: -c: line 0: unexpected EOF while looking for matching ``'
 sh: -c: line 1: syntax error: unexpected end of file
 ---
 RuntimeError                              Traceback (most recent call
 last)

 /home/kinichi/Deb`s/sage-4.3.5-linux-32bit-debian_5.0-i686-Linux/local/
 lib/python2.6/site-packages/IPython/ipmaker.pyc in
 force_import(modname)
     64         reload(sys.modules[modname])
     65     else:
 --- 66         __import__(modname)
     67
     68

 /home/kinichi/Deb`s/sage-4.3.5-linux-32bit-debian_5.0-i686-Linux/
 ipy_profile_sage.py in module()
     14     from sage.misc.interpreter import attached_files
     15
 --- 16     branch =
 sage.misc.misc.branch_current_hg_notice(sage.misc.misc.branch_current_hg())
     17     if branch:
     18         print branch

 /home/kinichi/Deb`s/sage-4.3.5-linux-32bit-debian_5.0-i686-Linux/local/
 lib/python2.6/site-packages/sage/misc/misc.pyc in branch_current_hg()
   1872     i = s.rfind('-')
   1873     if i == -1:
 - 1874         raise RuntimeError, unable to determine branch?!
   1875     s = s[i+2:]
   1876     i = s.find('-')

 RuntimeError: unable to determine branch?!
 Error importing ipy_profile_sage - perhaps you should run %upgrade?
 WARNING: Loading of ipy_profile_sage failed.

 *
 *

 if i write version(), happen this:

 *
 *

 sage: version()
 ---
 NameError                                 Traceback (most recent call
 last)

 /home/kinichi/Deb`s/sage-4.3.5-linux-32bit-debian_5.0-i686-Linux/
 ipython console in module()

 NameError: name 'version' is not defined

 *
 

 Please help me.
 Thanks

Please subscribe to the sage-support mailing list and post your query there.

-- 
Regards
Minh Van Nguyen

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] revion of tour-de.html

2010-04-22 Thread Minh Nguyen
Hi Bernhard,

2010/4/22 bb bblo...@arcor.de

 I did some changes in the format.

Could you please attach the relevant html file?

--
Regards
Minh Van Nguyen

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: Which Sage-math versions do you recommend for Fedora 12?

2010-04-22 Thread Minh Nguyen
Hi Phil,

On Fri, Apr 23, 2010 at 10:28 AM, Philip Vetter
pvet...@math.princeton.edu wrote:
 Also, is there any hope for me to use
 http://modular.fas.harvard.edu/sage/linux/64bit/sage-4.3.3-linux-64bit-fedora_release_11_leonidas-x86_64-Linux.tar.gz

 on Fedora 12  instead of 11?

I don't know. You could give it a try. I usually compile my Sage
version from source on Ubuntu 8.04.4 LTS. Perhaps you could try
compiling from source as well.


 Phil

 On Thu, 22 Apr 2010, Philip Vetter wrote:

 I note your successes at

 http://wiki.sagemath.org/devel/BuildFarm/sage-4.3

 but also there are notes in the email logs suggesting  that 4.3.3 and
 4.3.4 don't work.

 also, any idea whether they should work on CentOS (RH derivative)?

I cannot be certain that a binary release of Sage would work for your
specific CentOS or Red Hat machine. However, I have successfully
compiled all Sage releases since 4.3 on Red Hat Enterprise Linux 5.4.


 Thank you,

 Phil

I'm CC'ing this email to sage-support where many more people would be
able to help you.

-- 
Regards
Minh Van Nguyen

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: Which Sage-math versions do you recommend for Fedora 12?

2010-04-22 Thread Minh Nguyen
Hi Phil,

On Fri, Apr 23, 2010 at 11:09 AM, Philip Vetter
pvet...@math.princeton.edu wrote:
 Thank you for writing back; my question was unclear.
 The entries made under your name at

 http://wiki.sagemath.org/devel/BuildFarm/sage-4.3

 suggest that you have compiled some 4.3.X version on Fedora 12
 successfully.

 Is that true?

Yes.


 Which version(s) were successful on Fedora 12?

The ones I listed on the wiki page for the build farm.

I no longer do release management of Sage. These days, I don't attempt
to build Sage on as wide a range of platforms as possible.


 Phil

-- 
Regards
Minh Van Nguyen

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] Re: How do I solve several equations for some variables eliminating some other variables?

2010-04-21 Thread Minh Nguyen
Hi,

On Wed, Apr 21, 2010 at 4:48 PM, eric948470 eric948...@gmail.com wrote:
 Am I asking this question in the wrong group? If so, please direct me
 to where I can get help.

You are asking in the right group. This is a group for support
questions relating to Sage. I guess people are busy at the moment.
Give the question another few hours for people to consider and post a
response.

-- 
Regards
Minh Van Nguyen

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] A Tour of Sage german translation

2010-04-17 Thread Minh Nguyen
Hi Bernhard,

I have updated the patch on ticket #8698 [1]. I have also built the
HTML version [2] of your translated document. You could look over that
to check for any errors.

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

[2] http://sage.math.washington.edu/home/mvngu/8698-tour-de/

-- 
Regards
Minh Van Nguyen

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] Re: A Tour of Sage german translation

2010-04-17 Thread Minh Nguyen
Hi Simon,

On Sat, Apr 17, 2010 at 10:48 PM, Simon King simon.k...@nuigalway.ie wrote:
 Hi Bernhard, hi Minh,

 I made some proof reading for the text.

Thank you.


 Since German Umlauts have been mentioned above: I wonder how one can
 produce an Umlaut for the Sage reference manual. The reference manual
 is essentially built from the doc strings, and I thought that the doc
 strings may contain any LaTeX code. So, I thought that 'Gröbner' would
 result, if the doc string contains 'Gr\obner'. But it doesn't, IIRC.

That usually works in LaTeX mode. So to render Gr\obner with the
Umlaut, you do

`Gr\obner`

Notice the delimiting back ticks.


 Is there another way to produce Umlaut?

Specify the character encoding at the top of the corresponding ReST
file. For example, in the ReST file for the German translation of the
document A Tour of Sage, I put the following as the very first line:

.. -*- coding: utf-8 -*-

From there on, you can include characters in the UTF-8 character set
as is without using any special escape sequence. To see what I mean,
use a UTF-8 capable text editor to view the patch at ticket #8698.

-- 
Regards
Minh Van Nguyen

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] Re: A Tour of Sage german translation

2010-04-17 Thread Minh Nguyen
Hi Simon,

On Sat, Apr 17, 2010 at 11:35 PM, Simon King simon.k...@nuigalway.ie wrote:

SNIP

 Wouldn't this result in LaTeX *maths* mode?

Yes. But you don't want that because the rendered text would look out of place.


 OK, but this wouldn't work for doc strings, or would it? Is it
 possible to have unicode doc strings?

It would work for docstrings as well. Just make sure you have the
following line at the very top of your ReST file:

.. -*- coding: utf-8 -*-

For the case of a Python file, use the following comment to declare
character encoding:

# -*- coding: utf-8 -*-

-- 
Regards
Minh Van Nguyen

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] Re: A Tour of Sage german translation

2010-04-17 Thread Minh Nguyen
Hi Simon,

On Sun, Apr 18, 2010 at 12:04 AM, Simon King simon.k...@nuigalway.ie wrote:

SNIP

 Do you mean *once* on top of the file? Or is it something that I have
 to insert in (or in front of) any doc string?

Some files in the Sage library have character declarations. For
example, see the following files:

sage/misc/interpreter.py
sage/rings/polynomial/multi_polynomial_ideal.py
sage/schemes/elliptic_curves/padic_lseries.py
sage/schemes/elliptic_curves/ell_rational_field.py
sage/schemes/elliptic_curves/modular_parametrization.py
sage/schemes/elliptic_curves/BSD.py
sage/schemes/elliptic_curves/gal_reps.py
sage/schemes/elliptic_curves/sha_tate.py
sage/server/notebook/colorize.py
sage/server/notebook/template.py


 And actually I doubt that Sage would swallow the Umlaut. This is what
 I just got on Sage-math, entering a line from the last example of
 http://www.sagemath.org/doc/reference/sagenb/notebook/template.html :
  sage: u = unicode('Are Gröbner bases awesome?','utf-8')

That works OK for me:

[mv...@sage ~]$ sage
--
| Sage Version 4.3.5, Release Date: 2010-03-28   |
| Type notebook() for the GUI, and license() for information.|
--
sage: from sagenb.notebook.template import template
sage: u = unicode('Are Gröbner bases awesome?','utf-8')
sage: s = template(os.path.join('html', 'yes_no.html'), message=u)
sage: 'Gröbner' in s.encode('utf-8')
True

-- 
Regards
Minh Van Nguyen

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] A Tour of Sage german translation

2010-04-17 Thread Minh Nguyen
Hi Bernhard,

On Sun, Apr 18, 2010 at 3:18 AM, bb bblo...@arcor.de wrote:

SNIP

 Following the headline


   Sage als Rechner¶

 http://sage.math.washington.edu/home/mvngu/8698-tour-de/#sage-als-rechner

 Die Eingabezeile von Sage hat eine Eingabeaufforderung „sage:“. Sie müssen
 also „sage;“ nicht ...

 there is a Semikolon instead of a colon at the second sage:. And the ReST
 markup is wrong compared to the original, please set it to ``sage:``. I
 think that was my mistake. And if you want to know: The german Umlaute are
 correct in this version!

The patch on ticket #8698 has been updated accordingly. The HTML [1]
version has also been rebuilt.


 It would be helpful, if you tell me which of the
 versions I posted you used as asource for the web page version?

I used the last ODF version you posted in this email thread.


[1] http://sage.math.washington.edu/home/mvngu/8698-tour-de/

-- 
Regards
Minh Van Nguyen

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] Re: How convert sage matrix to numpy array?

2010-04-17 Thread Minh Nguyen
Hi Bastian,

On Sat, Apr 17, 2010 at 11:20 PM, Bastian Weber
bastian.we...@gmx-topmail.de wrote:

SNIP

 (Where should I have looked in the documentation to find out by myself?,
 Maybe there are more useful hints.)

The numpy() method you are referring to is in the file

SAGE_ROOT/devel/sage-main/sage/matrix/matrix_real_double_dense.pyx

Unfortunately, at the moment that file is not in the reference manual
[1] so you can't find documentation for numpy() in the reference
manual. However, you could still get the relevant documentation as
demonstrated in the following command line transcript. Notice that the
question mark ? means to get the documentation of the relevant
method, function, or class.

[mv...@sage ~]$ sage
--
| Sage Version 4.3.5, Release Date: 2010-03-28   |
| Type notebook() for the GUI, and license() for information.|
--
sage: m = matrix()
sage: m.numpy?
Type:   builtin_function_or_method
Base Class: type 'builtin_function_or_method'
String Form:built-in method numpy of
sage.matrix.matrix_integer_dense.Matrix_integer_dense object at
0x8fa320
Namespace:  Interactive
Definition: m.numpy(self, dtype=None)
Docstring:

   Return the Numpy matrix associated to this matrix.

   INPUT:

   * ``dtype`` - The desired data-type for the array. If not given,
 then the type will be determined as the minimum type required to
 hold the objects in the sequence.

   EXAMPLES:

  sage: a = matrix(3,range(12))
  sage: a.numpy()
  array([[ 0,  1,  2,  3],
 [ 4,  5,  6,  7],
 [ 8,  9, 10, 11]])
  sage: a.numpy('f')
  array([[  0.,   1.,   2.,   3.],
 [  4.,   5.,   6.,   7.],
 [  8.,   9.,  10.,  11.]], dtype=float32)
  sage: a.numpy('d')
  array([[  0.,   1.,   2.,   3.],
 [  4.,   5.,   6.,   7.],
 [  8.,   9.,  10.,  11.]])
  sage: a.numpy('B')
  array([[ 0,  1,  2,  3],
 [ 4,  5,  6,  7],
 [ 8,  9, 10, 11]], dtype=uint8)

   Type ``numpy.typecodes`` for a list of the possible typecodes:

  sage: import numpy
  sage: sorted(numpy.typecodes.items())
  [('All', '?bhilqpBHILQPfdgFDGSUVO'), ('AllFloat', 'fdgFDG'),
('AllInteger', 'bBhHiIlLqQpP'), ('Character', 'c'), ('Complex',
'FDG'), ('Float', 'fdg'), ('Integer', 'bhilqp'), ('UnsignedInteger',
'BHILQP')]

Class Docstring:
attribute '__doc__' of 'builtin_function_or_method' objects

[1] http://www.sagemath.org/doc/reference/

-- 
Regards
Minh Van Nguyen

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] A Tour of Sage german translation

2010-04-16 Thread Minh Nguyen
Hi Bernhard,

2010/4/16 bb bblo...@arcor.de:
 Attached please find my german translation of A Tour of Sage with some
 minor changes.

Again, allow me to thank you for your initiative in translating Sage
documentation to German and making that translation available to
everyone.


 I hope that you find it useful and I hope that Minh Van Nguyen again lends a
 helping hand to compile it and check it.

See ticket #8698 [1] for tracking this issue and a patch to the Sage
library. Someone who knows German is needed to review that ticket.

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

-- 
Regards
Minh Van Nguyen

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


Re: [sage-support] Invoking Lisp from within Sage

2010-04-14 Thread Minh Nguyen
Hi Adam,

On Wed, Apr 14, 2010 at 6:20 AM, Adam Getchell adam.getch...@gmail.com wrote:

SNIP

 Anyways, help, advice, flames appreciated.

You can find some responses to your questions in this thread:

http://groups.google.com/group/sage-support/browse_thread/thread/36120295b1e3f0e7

-- 
Regards
Minh Van Nguyen

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

To unsubscribe, reply using remove me as the subject.


Re: [sage-support] Installation Guide - german translation

2010-04-12 Thread Minh Nguyen
Hi Bernhard,

I have converted your ODT document to Sphinx. You can view the patch
at ticket #8660 [1]. My knowledge of the German language is
non-existent so someone apart from me needs to review that patch. In
the meantime, you can browse the German version of the Installation
Guide here [2].

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

[2] http://sage.math.washington.edu/home/mvngu/8660-installation-de/

-- 
Regards
Minh Van Nguyen

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

To unsubscribe, reply using remove me as the subject.


Re: [sage-support] Installation Guide - german translation

2010-04-08 Thread Minh Nguyen
Hi,

On Fri, Apr 9, 2010 at 1:02 AM, bb bblo...@arcor.de wrote:

SNIP

 If you mean the Sphinx source of the translation, there is`nt any. But in
 a mail from 02.04.2010 22:24 Minh Van Nguyen wrote that he is willing to
 copy/paste it to Sphinx - if it is positively reviewed and etc

I apologize for the confusion. I have spent too much time on writing
other stuff so I haven't taken the time to translate your ODF to use
Sphinx. So here is the situation with respect to your German
translation of the Sage installation guide.

* You have kindly translated the installation guide to German. Many
thanks for your hard work!

* You have posted an ODF of that guide to this mailing list. Thank you
for making your translation public!

* I have volunteered to turn that ODF document to use Sphinx.

* I haven't had time to start the translation to Sphinx.

I have created ticket #8660 [1] to keep track of the issue of using
Sphinx markup for your German translation.

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

-- 
Regards
Minh Van Nguyen

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

To unsubscribe, reply using remove me as the subject.


Re: [sage-support] Installation Guide - german translation

2010-04-08 Thread Minh Nguyen
Hi,

On Fri, Apr 9, 2010 at 1:49 AM, bb bblo...@arcor.de wrote:

SNIP

 In the attachement I send a HTML-transformed ODT-Text, where I have
 replaced all critical german characters by save HTML-expressions. I hope to
 prevent some frustrations! I kindly ask you add this to ticket #8660.

Done.


 I f you need any help with that exotic signs or have other issues with the
 translations, please give a message!

Thank you in advance.

-- 
Regards
Minh Van Nguyen

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

To unsubscribe, reply using remove me as the subject.


Re: [sage-support] errrors in the prime function complex?

2010-04-05 Thread Minh Nguyen
Hi,

On Tue, Apr 6, 2010 at 12:34 AM, bb bblo...@arcor.de wrote:
 I am a simple minded user and have some questions concerning Sage functions.
 May be I misunderstand the docu at
 http://sage.math.washington.edu/home/mhansen/sage-epydoc/sage.rings.arith-module.html#primes?

Scroll down to the very end of that HTML document and you would see
the time and date stamps:

Generated by Epydoc 3.0beta1 on Thu Jul 17 04:23:28 2008

This means that the documentation you are referring to is nearly 2
years old. So you should not expect it to be a good reflection of the
current state of Sage. I encourage you to refer to the official
reference manual [1] on the Sage website.


 I also did some syntactic variations without success. I argue that prange()
 and primerange should be identic, but there is a link or an alias  missing?

Many, many versions of Sage ago, prange() and prime_range() were one
and the same function. But now, prange() has been removed so you only
need to use prime_range(). You also have the choice of using primes().
Both prime_range() and primes() achieve the same result. However,
prime_range() can use more memory than primes(). To read their
documentation, from the Sage command line, do

sage: prime_range??
sage: primes?


[1] http://www.sagemath.org/doc/reference/

-- 
Regards
Minh Van Nguyen

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

To unsubscribe, reply using remove me as the subject.


Re: [sage-support] How to define a function in command line mode?

2010-04-04 Thread Minh Nguyen
Hi Jose,

On Sun, Apr 4, 2010 at 8:50 PM, Jose Guzman n...@neurohost.org wrote:

SNIP

 For example, if I do:

 $./sage -ipython -nobanner
 from sage.all import *
 f(x) = x**2

 I found the following error:

That's because when you define a function on the Sage command line,
the function definition is first preparsed using the Sage preparser.

[mv...@sage ~]$ sage -ipython -nobanner

In [1]: from sage.all import *

In [2]: preparse(f(x) = x**2)
Out[2]: '__tmp__=var(x); f = symbolic_expression(x**Integer(2)).function(x)'

In [3]: x = var(x)

In [4]: f  = symbolic_expression(x**Integer(2)).function(x)

In [5]: f(3)
Out[5]: 9


 By the way, I did not find much documentation regarding the use of the Sage
 in command-line mode, or about how to call Sage as a Python library. If this
 is not already present, I will try to add this (after reading the developers
 guide) to the standard Sage documentation.

See a blog post [1] about this topic. If you would like to add such
information to the Sage standard documentation, maybe we could
collaborate on writing such a document.

When you are using Sage as a Python library, be careful not to do
anything that relies on the Sage preparser. Try to expect Python
behaviour. For example, on the Sage command line, the caret notation
^ for exponentiation is preparsed to the double asterisks notation
**, before carrying out any simplification. So you should use **
in Python scripts that uses the Sage library, and avoid using ^.

[1] http://mvngu.wordpress.com/2009/10/08/how-to-use-sage-as-a-python-library/

-- 
Regards
Minh Van Nguyen

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

To unsubscribe, reply using remove me as the subject.


Re: [sage-support] Installation Guide - german translation

2010-04-02 Thread Minh Nguyen
Hi,

On Sat, Apr 3, 2010 at 6:11 AM, bb bblo...@arcor.de wrote:
 I have done a german translation of the Installation guide. I did some and
 changes to meet some german peculiarities and some minor extensions. I
 actually commited the text to a professional translator for checking and
 proofreading. It will be (hopefully) finished about the weekend of the next
 week.

Thank you for your interest and initiative in translating the
Installation Guide [1] to German. Translation of any documents in the
Sage standard documentation [2] to another language is very welcome.
The currently translated documents are available on the Help page [3]
of the Sage website.


 Concerning to the license Creative Commons Attribution-ShareAlike 3.0
 I kindly ask you if you have some interest to publish that text to the
 public in any proper way?

I understand that your German translation is licensed under the
Creative Commons Attribution-Share Alike 3.0 License. The Sage
community is essentially an international community. Having more
documents translated to another language is very welcome. As far as I
can see, you could release your whole German translated document
including its source code to ease the process of integrating your
translation into the Sage standard documentation. This has the big
advantage that your translated document is distributed with every
release of Sage as part of the Sage standard documentation. There is
also a minimal German version [4] of the Sage website on which your
German translation could be linked to.


 I have the text in .odt (OpenOffice.org - not such easy to read because the
 Sage-code and teh rest of the text is not marked-off in the Sphinx-way of
 the original text on the Sage-page) or any other format OpenOffice will
 offer. There is an easy to read .pdf format with proper Sage code
 separation, comparable to the Sphinx-format. I might compile a postscript
 version as well. I never worked with  Sphinx, so I cannot deliver in
 Sphinx-format. May be you have a secretary or a student for to copy/paste if
 you desire a Sphinx-version?

If you provide your document in both ODT and PDF versions, the
document could be copied and pasted in order to get it to use Sphinx
markup. However, the conversion from ODT to Sphinx markup is really
just the first step. To actually be part of the Sage standard
documentation, the Sphinxified version (i.e. the version of the German
translation that uses Sphinx markup) must also be reviewed by someone
competent in the German language. Only when at least one reviewer has
approved the Sphinxified version that your documentation would be
integrated into the Sage standard documentation. I can volunteer to
take care of the conversion to Sphinx and produce a patch that
integrates that Sphinxified version into the Sage source tree. But I
also would like others who are fluent in German to help out with the
reviewing process.


 If you indicate interest, please tell me where to send it (e-mail
 attachement) and in which format.

Not only are we interested, but we also welcome contribution of any
kind. You could open a new ticket on trac [5] and upload your German
translation to that newly opened ticket. An easier way is to email the
ODF and PDF versions of your document to this mailing list and I would
take care of converting it to Sphinx.


[1] http://www.sagemath.org/doc/installation/

[2] http://www.sagemath.org/doc/

[3] http://www.sagemath.org/help.html

[4] http://www.sagemath.org/de/

[5] http://trac.sagemath.org/sage_trac/

-- 
Regards
Minh Van Nguyen

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

To unsubscribe, reply using remove me as the subject.


[sage-support] Re: groebner fan with sage

2010-04-01 Thread Minh Nguyen
Hi Andrea,

On Thu, Apr 1, 2010 at 6:05 PM, Andrea Gobbi andreamat...@gmail.com wrote:
  Good morning.
  I'm using sage for my thesis, and I have a question. How can I use
 the function grobnerfan(ideal)? I have to reduce a polynomial
 f(x_1,,x_n) using all possible grobner basis in F_p. This is too
 long, and so i decided to take only the grobner fan. But I can go
 over...i have a list (of what???) given by grobnerfan, and also a list
 of weight...but i don't understand how i can reduce the polynomial.
 I means, if i have a term order, degrvlex for exmaple, i calculate the
 grobner fan (the term order is not important). With the function
 grobnerfan i obtain a lot of possible generators of the ideal,
 depending for the term order...but if i want to reduce a polynomial
 seems that i'm using the base term order, in my case degrevlex...or
 not?
  I hope I was clear ( I'm italian and my english is very bad)...
  Thanks!!!
  Andrea

I don't know how to help you as your questions are out of my expertise
range. I suggest that you subscribe to the sage-support mailing list
and post your queries there.

-- 
Regards
Minh Van Nguyen

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

To unsubscribe, reply using remove me as the subject.


Re: [sage-support] Is there an efficient method of producing indexed variables?

2010-04-01 Thread Minh Nguyen
Hi,

On Fri, Apr 2, 2010 at 12:36 PM, scott.h scott.he...@gmail.com wrote:

SNIP

 It seems like this should be simple but for the life of me I can't
 figure out how to do it.

Here I'm taking a guess at what you really want to do. See the
following Sage session:

[mv...@sage ~]$ sage
--
| Sage Version 4.3.5, Release Date: 2010-03-28   |
| Type notebook() for the GUI, and license() for information.|
--
sage: n = 3
sage: M = random_matrix(ZZ, nrows=n); M
[ 2  2 -2]
[ 4  2 -7]
[ 2 -1  1]
sage: # create a list of unknown constants; these are actually
symbolic variables
sage: C = [var(C_%s % i) for i in range(n)]; C
[C_0, C_1, C_2]
sage: X = [randint(1, 10) for i in range(n)]; X
[2, 3, 2]
sage: F = [C[i] * exp(M[i,i] * x) for i in range(n)]; F
[C_0*e^(2*x), C_1*e^(2*x), C_2*e^x]
sage: [F[i].substitute(x=X[i]) for i in range(n)]
[C_0*e^4, C_1*e^6, C_2*e^2]

-- 
Regards
Minh Van Nguyen

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

To unsubscribe, reply using remove me as the subject.


Re: [sage-support] type error when using numerical integration.

2010-03-30 Thread Minh Nguyen
Hi Jared,

On Wed, Mar 31, 2010 at 12:31 AM, Jared Schlieper
dr.schlie...@gmail.com wrote:

SNIP

 Am I missing something?

 Mathematica gives 3954.63 using the NIntegrate command.

Is the following what you want?

[mv...@sage ~]$ sage
--
| Sage Version 4.3.3, Release Date: 2010-02-21   |
| Type notebook() for the GUI, and license() for information.|
--
sage: x, y = var(x, y)
sage: density = e^(sqrt(x)) + e^(y^2/2)
sage: g1 = e^(2*x) - 1
sage: g2 = 5 - 5*(x-1)^2
sage: a = (g2 - g1).find_root(-0.1, 0.2, x)
sage: b = (g2 - g1).find_root(.7, 1.0, x)
sage: f = integral(density, y, g1, g2)
sage: f.nintegral(x, a, b)
(3954.6341726670939, 2.7847910517020398e-06, 105, 0)

-- 
Regards
Minh Van Nguyen

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

To unsubscribe from this group, send email to 
sage-support+unsubscribegooglegroups.com or reply to this email with the words 
REMOVE ME as the subject.


Re: [sage-support] Re: scipy+sympy=?

2010-03-26 Thread Minh Nguyen
Hi,

On Sat, Mar 27, 2010 at 3:47 AM, dabu pallabb...@gmail.com wrote:

SNIP

 It would be somehow more helpful if important sage components like
 simpy and scipy are compatible by default and one does not have to
 play with namespaces.

See PEP 20 for a reason to use namespaces:

http://www.python.org/dev/peps/pep-0020/

-- 
Regards
Minh Van Nguyen

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

To unsubscribe from this group, send email to 
sage-support+unsubscribegooglegroups.com or reply to this email with the words 
REMOVE ME as the subject.


Re: [sage-support] Refer in Paper

2010-03-25 Thread Minh Nguyen
Hi,

On Fri, Mar 26, 2010 at 5:53 AM, Santanu Sarkar
sarkar.santanu@gmail.com wrote:
 How can I refer SAGE 4.1.1  in my  research paper?

It would be nice if you could tell us where your preprint is located
(e.g. arXiv) or when your paper is published. That way, the paper
could be added to the list of publications at

http://www.sagemath.org/library-publications.html

-- 
Regards
Minh Van Nguyen

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

To unsubscribe from this group, send email to 
sage-support+unsubscribegooglegroups.com or reply to this email with the words 
REMOVE ME as the subject.


Re: [sage-support] computations in parallel

2010-03-23 Thread Minh Nguyen
Hi Luis,

On Wed, Mar 24, 2010 at 6:40 AM, finotti luis.fino...@gmail.com wrote:

SNIP

 Any suggestions?

If you don't want to use the decorator @parallel, you could also try
Parallel Python:

http://www.parallelpython.com

-- 
Regards
Minh Van Nguyen

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

To unsubscribe from this group, send email to 
sage-support+unsubscribegooglegroups.com or reply to this email with the words 
REMOVE ME as the subject.


Re: [sage-support] No banking Component Defined Question

2010-03-22 Thread Minh Nguyen
Hi,

On Tue, Mar 23, 2010 at 2:35 AM, cantfindanythingleft
cantfindanythingl...@googlemail.com wrote:
 Hi,

 I have a problem that's driving me crazy and would love to know if
 anyone had a solution.

 When I try to complete bank reconcilliation in Sage Line 50 v 15.01, I
 select my account (1200) and click E Reconciliation to get the error
 No banking Component Defined for this account

 Can anyone help?

You are confusing this mailing list with that for the Sage accounting
software. This mailing list is for the Sage mathematics software at

http://www.sagemath.org

-- 
Regards
Minh Van Nguyen

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

To unsubscribe from this group, send email to 
sage-support+unsubscribegooglegroups.com or reply to this email with the words 
REMOVE ME as the subject.


Re: [sage-support] Wrong documentation for sum() function?

2010-03-22 Thread Minh Nguyen
Hi Michael,

On Tue, Mar 23, 2010 at 4:25 AM, Michael michaelbacht...@gmail.com wrote:

SNIP

 So I'm assuming that the documentation is outdated. Maybe this
 is well know, but I hope it is ok to post this here.

Could you try the examples in the documentation at [1] and see if it's
what you wanted?

[1] 
http://www.sagemath.org/doc/reference/sage/misc/functional.html#sage.misc.functional.symbolic_sum

-- 
Regards
Minh Van Nguyen

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

To unsubscribe from this group, send email to 
sage-support+unsubscribegooglegroups.com or reply to this email with the words 
REMOVE ME as the subject.


Re: [sage-support] Re: Wrong documentation for sum() function?

2010-03-22 Thread Minh Nguyen
Hi Juan,

On Tue, Mar 23, 2010 at 10:43 AM, Juan Luis Varona
juanluis.var...@gmail.com wrote:

SNIP

 OK, I understand that sage do not kown how to evaluate
 sum(1/(1+k^2), k, -oo, oo)

 But it answer 0  , that is wrong!!!

Both Sage 4.3.3 and 4.3.4 give the same wrong answer:

[mv...@sage sage-4.3.4]$ sage
--
| Sage Version 4.3.3, Release Date: 2010-02-21   |
| Type notebook() for the GUI, and license() for information.|
--
sage: k = var(k)
sage: sum(1/(1+k^2), k, -oo, oo)
0

[mv...@sage sage-4.3.4]$ ./sage
--
| Sage Version 4.3.4, Release Date: 2010-03-19   |
| Type notebook() for the GUI, and license() for information.|
--
sage: k = var(k)
sage: sum(1/(1+k^2), k, -oo, oo)
0

Here is the answer from Maple:

[mv...@sage ~]$ maple
|\^/| Maple 12 (X86 64 LINUX)
._|\|   |/|_. Copyright (c) Maplesoft, a division of Waterloo Maple Inc. 2008
 \  MAPLE  /  All rights reserved. Maple is a trademark of
    Waterloo Maple Inc.
  |   Type ? for help.
 sum(1 / (1 + k^2), k=-infinity..infinity);
  Pi coth(Pi)

And the answer from Mathematica:

[mv...@sage ~]$ math
Mathematica 6.0 for Linux x86 (64-bit)
Copyright 1988-2007 Wolfram Research, Inc.

In[1]:= Sum[1 / (1 + k^2), {k, -Infinity, Infinty}]

I
Out[1]= - (PolyGamma[0, -I - Infinty] - PolyGamma[0, I - Infinty])
2


 (I have yet 4.3.1; I'm waiting 4.3.4 to update my sage)

Unfortunately, updating to Sage 4.3.4 won't even fix the above issue
with the sum() command. The above issue with the sum() command is now
tracked at ticket #8582:

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

-- 
Regards
Minh Van Nguyen

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

To unsubscribe from this group, send email to 
sage-support+unsubscribegooglegroups.com or reply to this email with the words 
REMOVE ME as the subject.


Re: [sage-support] Seeking Cython-101 lesson

2010-03-21 Thread Minh Nguyen
Hi Robert,

On Sat, Mar 20, 2010 at 4:40 AM, Robert Bradshaw
rober...@math.washington.edu wrote:

SNIP

 I would be happy to do this, I'm just in crunch time with my thesis as you
 know :). Get a working Python version, and I'll help you translate it into
 Cython the first week or two next quarter (I'll be out of town until then.)

It is such face-to-face assistance like this that makes you a mentor.
There was a recent discussion [1] about Sage having a mentor program.

[1] 
http://groups.google.com/group/sage-devel/browse_thread/thread/39e427b24ca7a39e

-- 
Regards
Minh Van Nguyen

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

To unsubscribe from this group, send email to 
sage-support+unsubscribegooglegroups.com or reply to this email with the words 
REMOVE ME as the subject.


Re: [sage-support] sage on slitaz linux?

2010-03-19 Thread Minh Nguyen
Hi,

On Fri, Mar 19, 2010 at 7:51 PM, bb bblo...@arcor.de wrote:

SNIP

 env: bash: No such file or directory
 The the process will finish.

From the command line, issue this command:

$ which bash

If you have the Bash shell installed, the result would be something like

[mv...@sage ~]$ which bash
/bin/bash

The relevant script assumes that the system you are on has the Bash shell.

-- 
Regards
Minh Van Nguyen

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

To unsubscribe from this group, send email to 
sage-support+unsubscribegooglegroups.com or reply to this email with the words 
REMOVE ME as the subject.


  1   2   3   4   >