[sage-support] Re: problem in running sage example.sage

2008-12-21 Thread Dan Drake
On Sun, 21 Dec 2008 at 05:56PM -0800, Mike Hansen wrote: > > However when I then run sage example.sage, it compliants: > > > > Plot 6 > > Code block begin... > > Error in Sage code on line 158 of example.tex! Traceback follows. > > Traceback (most recent call last): > > File "example.py", lin

[sage-support] Re: Arbitrary precision in cython

2008-12-21 Thread William Stein
On Sun, Dec 21, 2008 at 1:44 PM, M. Yurko wrote: > > I have recently been experimenting with converting some simple python > functions that I have made into cython. I have been quite impressed by > how simple it is for the massive speed increases that I have seen. > However, one thing that is mil

[sage-support] Re: power_mod problem

2008-12-21 Thread William Stein
On Sun, Dec 21, 2008 at 10:14 PM, Alasdair wrote: > > These seem to be the offending lines from power_mod: > > apow = a >while n&1 == 0: >apow = (apow*apow) % m >n = n >> 1 >power = apow > > Maybe the final line should be changed to > > power = apow % m Possibly, since t

[sage-support] Re: power_mod problem

2008-12-21 Thread Alasdair
These seem to be the offending lines from power_mod: apow = a while n&1 == 0: apow = (apow*apow) % m n = n >> 1 power = apow Maybe the final line should be changed to power = apow % m - Alasdair On Dec 22, 3:19 pm, "William Stein" wrote: > On Sun, Dec 21, 2008 at 5:

[sage-support] Re: power_mod problem

2008-12-21 Thread William Stein
On Sun, Dec 21, 2008 at 5:03 PM, almis wrote: > > -- > | SAGE Version 3.1.4, Release Date: 2008-10-16 | > | Type notebook() for the GUI, and license() for information.| >

[sage-support] Re: problem in running sage example.sage

2008-12-21 Thread pong
I see. Thanks Well, I hope my post at least let people aware of this if they do a search of sagetex in sage-support. On Dec 21, 5:56 pm, "Mike Hansen" wrote: > Hi, > > > > On Sun, Dec 21, 2008 at 5:47 PM, pong wrote: > > > I have recently switch to running SAGE on a linux system > > > I tried

[sage-support] Re: problem in running sage example.sage

2008-12-21 Thread Mike Hansen
Hi, On Sun, Dec 21, 2008 at 5:47 PM, pong wrote: > > I have recently switch to running SAGE on a linux system > > I tried to see if sagetex work by running latex on the example.tex > (come with the current distribution sage-3.2.2) > > However when I then run sage example.sage, it compliants: > >

[sage-support] problem in running sage example.sage

2008-12-21 Thread pong
I have recently switch to running SAGE on a linux system I tried to see if sagetex work by running latex on the example.tex (come with the current distribution sage-3.2.2) However when I then run sage example.sage, it compliants: Plot 6 Code block begin... Error in Sage code on line 158 of

[sage-support] power_mod problem

2008-12-21 Thread almis
-- | SAGE Version 3.1.4, Release Date: 2008-10-16 | | Type notebook() for the GUI, and license() for information.| -- sage: power_m

[sage-support] Arbitrary precision in cython

2008-12-21 Thread M. Yurko
I have recently been experimenting with converting some simple python functions that I have made into cython. I have been quite impressed by how simple it is for the massive speed increases that I have seen. However, one thing that is mildly annoying at times is the limitation to double precision

[sage-support] dSage howto?

2008-12-21 Thread calcp...@aol.com
Hi Everyone! I've been playing with MATLAB and Octave for a while now to introduce my students (AP Computer Science and AP Calculus) to the world of Scientific Computing. Our computer lab has just undergone a significant upgrade and my students are now interested in learning to program a cluster

[sage-support] Re: Closed form sums, difference equations?

2008-12-21 Thread Harald Schilly
On Dec 21, 6:23 am, Alasdair wrote: > Does Sage have the ability to find the closed form of a finite sum... besides maxima, i think you can also try sympy. http://wiki.sympy.org/wiki/Quick_examples#Calculate_a_sum http://fredrik-j.blogspot.com/2008/07/hypergeometric-series-with-sympy.html but i