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.
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
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 =
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
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.
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
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.
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
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
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
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]
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):
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
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
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
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
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
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
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
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)
20 matches
Mail list logo