Re: [sage-support] Re: Problem finding numeric eigenvectors

2010-06-07 Thread Dr. David Kirkby
On 06/ 7/10 06:43 AM, Rob Beezer wrote: On Jun 6, 9:05 am, Mike Wittmsg...@gmail.com wrote: This does kind of reinforce the concept, which I guess I've heard expressed before here, that you have to be prepared to update your sage build very frequently in order to keep up with things.

[sage-support] basic line through two variable points

2010-06-07 Thread dbjohn
I wanted to place a line through two points represented as variables. I can do it when explicitly giving coordinates. I wanted to do something like this example: pointA = point((1,1)) pointB = point((2,2,)) myline = line([pointA, pointB]) Though I am getting errors like: ValueError: need more

Re: [sage-support] basic line through two variable points

2010-06-07 Thread William Stein
On Mon, Jun 7, 2010 at 3:05 AM, dbjohn johndbren...@gmail.com wrote: I wanted to place a line through two points represented as variables. I can do it when explicitly giving coordinates. I wanted to do something like this example: pointA = point((1,1)) pointB = point((2,2,)) myline =

[sage-support] Re: basic line through two variable points

2010-06-07 Thread dbjohn
Yes that code works in a single cell for me. When I put it in an interact and plot I get an error. Below is a simplified part of the program I am working on. I am using the online notebook. I find when I comment out the lines with myTangent the plot will display correctly, so there is something

Re: [sage-support] Re: Problem finding numeric eigenvectors

2010-06-07 Thread Mike Witt
On 06/06/2010 10:43:38 PM, Rob Beezer wrote: On Jun 6, 9:05 am, Mike Witt msg...@gmail.com wrote: This does kind of reinforce the concept, which I guess I've heard expressed before here, that you have to be prepared to update your sage build very frequently in order to keep up with things.

[sage-support] Re: basic line through two variable points

2010-06-07 Thread kcrisman
On Jun 7, 10:26 am, dbjohn johndbren...@gmail.com wrote: Yes that code works in a single cell for me. When I put it in an interact and plot I get an error. Below is a simplified part of the program I am working on. I am using the online notebook. I find when I comment out the lines with

[sage-support] Cython and static data

2010-06-07 Thread Rolandb
Hi, Using cython, I want to make optimal use of static data. The reason is that lookup is (often) much faster than recalulating. I now use: cdef list nice_list_name=[3 , 3 , 3 , 3 , 3 , 3 , 4 , 4 , 4 , 4 , 4 , 4 , 4 , 4 , 4 , 5 , 5 , 5 , et cetera] But this didn't increase the speed.

[sage-support] Re: basic line through two variable points

2010-06-07 Thread dbjohn
Notice that William's pointA is just (1,1), whereas yours is point((1,1)).The reason for the unusual error message is that sage: line?? shows that if we get any error from trying to make a 2D line, it assumes you want a 3D line. Okay it works when I define a point with just the

[sage-support] Re: basic line through two variable points

2010-06-07 Thread kcrisman
On Jun 7, 11:39 am, dbjohn johndbren...@gmail.com wrote: Notice that William's pointA is just (1,1), whereas yours is point((1,1)).    The reason for the unusual error message is that sage: line?? shows that if we get any error from trying to make a 2D line, it assumes you want a 3D

Re: [sage-support] Re: Problem finding numeric eigenvectors

2010-06-07 Thread Robert Bradshaw
On Jun 7, 2010, at 7:46 AM, Mike Witt wrote: On 06/06/2010 10:43:38 PM, Rob Beezer wrote: On Jun 6, 9:05 am, Mike Witt msg...@gmail.com wrote: This does kind of reinforce the concept, which I guess I've heard expressed before here, that you have to be prepared to update your sage build very

Re: [sage-support] Cython and static data

2010-06-07 Thread Robert Bradshaw
On Jun 7, 2010, at 8:04 AM, Rolandb wrote: Hi, Using cython, I want to make optimal use of static data. The reason is that lookup is (often) much faster than recalulating. I now use: cdef list nice_list_name=[3 , 3 , 3 , 3 , 3 , 3 , 4 , 4 , 4 , 4 , 4 , 4 , 4 , 4 , 4 , 5 , 5 , 5 , et cetera]

[sage-support] Re: Cython and static data

2010-06-07 Thread Rolandb
Tnx! int* did the tric. Maybe an idea to mention this in the Cython manual. Look at the amazing difference in speed sage: timeit('for x in xrange(1,10): is_square(x,True)',number=25) 25 loops, best of 3: 1.35 s per loop sage: timeit('for x in xrange(1,10):

[sage-support] Using functions and classes from other worksheets in online notebook

2010-06-07 Thread dbjohn
Are there any examples of using functions and classes from other worksheets in online notebook? Would it be a case of getting importing the worksheet or calling a specific function with the full path on the server/or url. I tried the load and attach like: attach myWorksheet.sage but didn't

[sage-support] Re: Support for elliptic curves over rings?

2010-06-07 Thread John Cremona
Good! The patch has been merged in 4.4.4.alpha0, so from the next release you'll be able to use this without the need to apply any patches. John On Jun 7, 1:02 am, Alasdair amc...@gmail.com wrote: I haven't put the patch through all possible tests, but for my purposes: defining an elliptic

[sage-support] Login problems

2010-06-07 Thread Brion Keagle
Hello - I'm the IT guy trying to get Sage up and running for our Math department. I downloaded the VMWare virtual appliance and got it set up on the network properly. Now I would like to make sure that the passwords have been changed before deploying it. I figured I'd SSH into it and run passwd

Re: [sage-support] Login problems

2010-06-07 Thread William Stein
On Mon, Jun 7, 2010 at 1:37 PM, Brion Keagle bpkea...@gmail.com wrote: Hello - I'm the IT guy trying to get Sage up and running for our Math department.  I downloaded the VMWare virtual appliance and got it set up on the network properly.  Now I would like to make sure that the passwords have

[sage-support] Re: Cython and static data

2010-06-07 Thread Yann
You migth also try this: timeit('for x in sxrange(1,10): x.is_square()', number=25) On Jun 7, 6:59 pm, Rolandb rola...@planet.nl wrote: Tnx! int* did the tric. Maybe an idea to mention this in the Cython manual. Look at the amazing difference in speed sage: timeit('for x in

[sage-support] Re: basic line through two variable points

2010-06-07 Thread Jason Grout
On 6/7/10 10:39 AM, dbjohn wrote: Notice that William's pointA is just (1,1), whereas yours is point((1,1)).The reason for the unusual error message is that sage: line?? shows that if we get any error from trying to make a 2D line, it assumes you want a 3D line. Okay it works when I

[sage-support] Re: Using functions and classes from other worksheets in online notebook

2010-06-07 Thread Jason Grout
On 6/7/10 12:40 PM, dbjohn wrote: Are there any examples of using functions and classes from other worksheets in online notebook? Would it be a case of getting importing the worksheet or calling a specific function with the full path on the server/or url. I tried the load and attach like: attach

[sage-support] Re: Cython and static data

2010-06-07 Thread Jason Grout
On 6/8/10 1:16 AM, Rolandb wrote: sage: timeit('for x in sxrange(1,10): x.is_square()', number=25) 25 loops, best of 3: 46.3 ms per loop Still 25% gain What if your c_is_square code merely does what is_square does: cdef is_c_square(Integer x): return mpz_perfect_square_p(x.value)