[sage-support] How to do it in cython?

2010-06-12 Thread Rolandb
Hi, I have a small (nonsense) example of a program I would like to be able to convert to cython. But I don't know how to convert: R.A,B,C=QQ[], .factor(), .unit() and .factor(proof=False,limit=10^5). I could not find anything in the documentation about for instance handling elements of

Re: [sage-support] How to do it in cython?

2010-06-12 Thread Robert Bradshaw
On Jun 11, 2010, at 11:23 PM, Rolandb wrote: Hi, I have a small (nonsense) example of a program I would like to be able to convert to cython. But I don't know how to convert: R.A,B,C=QQ[], .factor(), .unit() and .factor(proof=False,limit=10^5). I could not find anything in the documentation

Re: [sage-support] Re: XPPAUT and Sage

2010-06-12 Thread Jan Groenewald
Hi On Fri, Jun 11, 2010 at 10:30:04AM -0700, Rob wrote: I guess an XPPAUT wrapper and having xppaut included in sage is first prize. As a long-time user of XPP and python I disagree strongly. I don't think wrapping that software would be a smart way to proceed for Sage. OK. Your

Re: [sage-support] loading files

2010-06-12 Thread Tobias Katz
Hi Amelia, How did you try to load the file? I guess you are using the notebook. There it is possible to load a file with load('absolute_path'). If you are using the command line version you can also use run absolute or relative path or run -i absolute or relative path for running your script in

[sage-support] Re: How to do it in cython?

2010-06-12 Thread Simon King
On 12 Jun., 08:56, Robert Bradshaw rober...@math.washington.edu wrote: Sage is preparsed. ... ... and the preparser is not used on .pyx and .py files. So, when you write 3 in a .pyx file, it becomes a python int, but if you write 3 on the Sage command line, it is interpreted (by the preparser)

Re: [sage-support] Re: Building from source sage 4.4.3 under Debian lenny amd64: gcc and g++ versions do not match

2010-06-12 Thread David Kirkby
On 12 June 2010 06:56, Jan Groenewald j...@aims.ac.za wrote: Hi On Fri, Jun 11, 2010 at 03:30:54PM -0700, orca wrote: Furthermore, if I type $ sudo update-alternatives --config java I get a list of java systems I can choose from. I think you might get a similar list for gcc and g++? I

[sage-support] Re: loading files

2010-06-12 Thread ataylor
Tobias, We are using the notebook, but knowing how to do it command line is also helpful. So it is true that we did not know to use . However, I'm still doing something wrong. I entered load /Users/ataylor/research/Students/EliseAndrew/sageprogram.sage and I know this is closer because my

Re: [sage-support] Re: loading files

2010-06-12 Thread Tobias Katz
Hi, x has been only a placeholder. In your case you probably would have to enter load('/Users/ataylor/research/Students/EliseAndrew/sageprogram.sage') Good luck with it! Tobi On 06/12/2010 04:06 PM, ataylor wrote: Tobias, We are using the notebook, but knowing how to do it command line

[sage-support] Re: Building from source sage 4.4.3 under Debian lenny amd64: gcc and g++ versions do not match

2010-06-12 Thread ma...@mendelu.cz
Hi, I do not understand the suggestion in this thread, but Sage compiles fine on Debian Lenny The compiled Sage is at http://user.mendelu.cz/marik/temp/sage-4.4.3-x86_64-Linux.tar.gz My configuration: ma...@um-bc107:/opt$ uname -a Linux um-bc107 2.6.26-2-amd64 #1 SMP Wed May 12 18:03:14 UTC

[sage-support] Re: loading files

2010-06-12 Thread ataylor
Got It. Success. Thanks! I'm surprised at my syntax troubles with this, but it all makes sense now. Appreciated, Amelia On Jun 12, 8:21 am, Tobias Katz tobi...@web.de wrote: Hi, x has been only a placeholder. In your case you probably would have to enter

[sage-support] Re: Building from source sage 4.4.3 under Debian lenny amd64: gcc and g++ versions do not match

2010-06-12 Thread orca
Sorry Marik and Bradshaw, but I use Debian for some five years now and I just have a plain vanilla Debian lenny (current stable) and the NORMAL gcc, g++ and gfortran, as I have suggested in my first post in this thread, and as I state categorically now, sure do not all match: the stock lenny gcc

[sage-support] Re: Building from source sage 4.4.3 under Debian lenny amd64: gcc and g++ versions do not match

2010-06-12 Thread ma...@mendelu.cz
On 12 čvn, 23:10, orca mocal...@gmail.com wrote: Sorry Marik and Bradshaw, but I use Debian for some five years now and I just have a plain vanilla Debian lenny (current stable) and the I have the same version of gcc and g++, see also http://packages.debian.org/lenny/g++ and

[sage-support] strange behavior in matrix substitution

2010-06-12 Thread Byungchul Cha
Please tell me if this is a bug, or, I'm missing something obvious... sage: a = 3 # Assign a value to a variable a sage: b = a # Create a copy of a sage: b = 2 # Change the value of b sage: b 2 sage: a # The value of a remains unchanged, as expected. 3 So far, it looks good to me. But, when I

Re: [sage-support] strange behavior in matrix substitution

2010-06-12 Thread Justin C. Walker
On Jun 12, 2010, at 17:27 , Byungchul Cha wrote: Please tell me if this is a bug, or, I'm missing something obvious... sage: a = 3 # Assign a value to a variable a sage: b = a # Create a copy of a sage: b = 2 # Change the value of b sage: b 2 sage: a # The value of a remains unchanged, as

Re: [sage-support] strange behavior in matrix substitution

2010-06-12 Thread Mike Hansen
Hello, On Sat, Jun 12, 2010 at 5:27 PM, Byungchul Cha cha3...@gmail.com wrote: Please tell me if this is a bug, or, I'm missing something obvious... sage: a = 3 # Assign a value to a variable a sage: b = a # Create a copy of a This does not create a copy of a. When you do a = 3, this

Re: [sage-support] strange behavior in matrix substitution

2010-06-12 Thread William Stein
On Saturday, June 12, 2010, Justin C. Walker jus...@mac.com wrote: On Jun 12, 2010, at 17:27 , Byungchul Cha wrote: Please tell me if this is a bug, or, I'm missing something obvious... sage: a = 3 # Assign a value to a variable a sage: b = a # Create a copy of a sage: b = 2 # Change the

Re: [sage-support] strange behavior in matrix substitution

2010-06-12 Thread Justin C. Walker
On Jun 12, 2010, at 19:07 , William Stein wrote: On Saturday, June 12, 2010, Justin C. Walker jus...@mac.com wrote: On Jun 12, 2010, at 17:27 , Byungchul Cha wrote: [snip] Shouldn't the value of v remain the same? Why does the change in u (or, a row of u) affect v? [snip] For, e.g.,

Re: [sage-support] strange behavior in matrix substitution

2010-06-12 Thread William Stein
On Saturday, June 12, 2010, Justin C. Walker jus...@mac.com wrote: On Jun 12, 2010, at 19:07 , William Stein wrote: On Saturday, June 12, 2010, Justin C. Walker jus...@mac.com wrote: On Jun 12, 2010, at 17:27 , Byungchul Cha wrote: [snip] Shouldn't the value of v remain the same? Why

Re: [sage-support] strange behavior in matrix substitution

2010-06-12 Thread Justin C. Walker
On Jun 12, 2010, at 20:30 , William Stein wrote: On Saturday, June 12, 2010, Justin C. Walker jus...@mac.com wrote: On Jun 12, 2010, at 19:07 , William Stein wrote: On Saturday, June 12, 2010, Justin C. Walker jus...@mac.com wrote: On Jun 12, 2010, at 17:27 , Byungchul Cha wrote: [snip]

Sage on iPhone - Re: [sage-support] strange behavior in matrix substitution

2010-06-12 Thread William Stein
On Saturday, June 12, 2010, Justin C. Walker jus...@mac.com wrote: On Jun 12, 2010, at 20:30 , William Stein wrote: On Saturday, June 12, 2010, Justin C. Walker jus...@mac.com wrote: On Jun 12, 2010, at 19:07 , William Stein wrote: On Saturday, June 12, 2010, Justin C. Walker