Re: [sage-support] converting RealLiteral to str without trailing zero's

2010-07-22 Thread Mitesh Patel
On 07/22/2010 04:41 PM, Martin Albrecht wrote: > On 22 July 2010 22:26, tvn wrote: >> is there a trick to convert RealLiteral numbers to strings without >> the trailing zeros? e.g., 2. and 0.050 become 2 >> and 0.05 respectively -- > > sage: str(0.53253453425).rstrip(".

Re: [sage-support] how to use jsmath in notebook

2010-07-22 Thread Mitesh Patel
On 07/22/2010 03:34 PM, 3DRaven wrote: > How to use jsmath and what need this button in the sage-notebook? > Please show a screenshot with the correct work jsmath. JSMath is the in-browser JavaScript library the Sage notebook uses to render typeset mathematics. To see it in action, check the "Typ

Re: [sage-support] Re: how to use jsmath in notebook

2010-07-23 Thread Mitesh Patel
On 07/23/2010 01:15 AM, 3DRaven wrote: > Yes. I was referring to an interactive equation editor. Is there a > possibility? > I would like to write expressions such as x ^ 2 and see the in cell > mathematical formula or At least this way as: > http://www.math.union.edu/ ~ dpvc/talks/2006-12-08.IMA/e

Re: [sage-support] Using css in sage notebook

2010-07-23 Thread Mitesh Patel
On 07/21/2010 09:01 AM, Sven wrote: > Entering the follwing string in the notebook yields the words Hello > World colored in red: > ' Hello World html>' > > Entering the following string in the notebook yields the words Hello > World colored in the default notebook color: > ' h1{color:#FF000}

Re: [sage-support] Re: passing coefficient ring and indeterminant to a function to return a polynomial in the intended polynomialRing

2010-07-29 Thread Mitesh Patel
On 07/29/2010 11:10 AM, Simon King wrote: > On Jul 29, 3:45 pm, eggartmumie wrote: >>> sage: p>>1 >>> -x + 4/9 >> >> sorry, in reading reference.pdf I never came across this operation, > > Sorry, I don't know if the shift operator for polynomials is explained > somewhere. > >> I just did not k

Re: [sage-support] Re: passing coefficient ring and indeterminant to a function to return a polynomial in the intended polynomialRing

2010-07-29 Thread Mitesh Patel
On 07/29/2010 05:14 PM, Mitesh Patel wrote: > On 07/29/2010 11:10 AM, Simon King wrote: >> On Jul 29, 3:45 pm, eggartmumie wrote: >>>> sage: p>>1 >>>> -x + 4/9 >>> >>> sorry, in reading reference.pdf I never came across this opera

Re: [sage-support] Re: Mac OS install observation

2010-07-29 Thread Mitesh Patel
> On Jul 29, 12:55 pm, DWL wrote: >> This is an observation about the pre-compiled binaries for Mac OS. >> >> If the (unpacked) sage disk image directory is saved in a folder that has a >> space character in its name, for example: >> >> $HOME/Applications/my folder >> >> Then sage will not load pr

Re: [sage-support] Re: Point-set topology in sage?

2010-08-06 Thread Mitesh Patel
On Thu, Jul 29, 2010 at 8:12 AM, Alec Battles wrote: > Not specifically, no, but orms.mfo.de (an excellent list with frequent > updates) lists 9 projects under topology. I will do some digging > later, but feel free to help me search. > Although it appears to be mostly a list of software for alge

Re: [sage-support] Building 4.5.2 Fails at Docbuild

2010-08-08 Thread Mitesh Patel
On 08/08/2010 02:17 PM, Richard wrote: > I am trying to build Sage 4.5.2 and the build dies near the end: > >sage: install_scripts('/usr/local/bin') > at the Sage command prompt. > > To build the documentation, run >make doc > > Sage build/upgrade complete! > ./sage -docbuild all html

Re: [sage-support] Bad Gateway

2010-08-09 Thread Mitesh Patel
On 08/08/2010 05:43 AM, Rolandb wrote: > I used dowload all, and thereafter I tried to upload the file > download_worksheets. The following message appears: > > Bad Gateway > > The proxy server received an invalid response from an upstream server. > Apache/2.2.12 (Ubuntu) Server at 192.168.231.12

Re: [sage-support] Cannot upgrade for 4.5.1 to 4.5.2

2010-08-10 Thread Mitesh Patel
On 08/10/2010 10:47 AM, Daniel Harris wrote: > I just had the same error but a make clean and then make again solved > the problem > Dan > > On Tue, Aug 10, 2010 at 10:06 AM, samrat > wrote: > > Hi, > > I installed 4.5.1 from source. Now i am unable to upgr

Re: [sage-support] Re: Bad Gateway

2010-08-10 Thread Mitesh Patel
On 08/10/2010 12:56 PM, Rolandb wrote: > On 10 aug, 07:45, Mitesh Patel wrote: >> On 08/08/2010 05:43 AM, Rolandb wrote: >> >>> I used dowload all, and thereafter I tried to upload the file >>> download_worksheets. The following message appears: >> >>&

Re: [sage-support] Building 4.5.2 Fails at Docbuild

2010-08-10 Thread Mitesh Patel
On 08/09/2010 12:50 PM, Richard Ruth wrote: >>Also, which Linux distribution and version are you running? > > Gentoo Base System release 1.12.13 > Kernel: 2.6.34.2 > > Here are links to two files: > > install.log: http://sharesend.com/kpcvl > > What I get when I try to start sage: > sage-st

Re: [sage-support] Re: Cannot upgrade for 4.5.1 to 4.5.2

2010-08-11 Thread Mitesh Patel
on/httplib.py", line > 723, in send > self.connect() > File "/usr/local/pkgs/sage_4.5/local/lib/python/httplib.py", line > 704, in connect > self.timeout) > File "/usr/local/pkgs/sage_4.5/local/lib/python/socket.py", line > 516, in create_connec

Re: [sage-support] Re: Cannot upgrade for 4.5.1 to 4.5.2

2010-08-13 Thread Mitesh Patel
age-4.5.2 sage_scripts-4.5.2 sagenb-0.8.2 ** WARNING: This is a source-based upgrade, which could take hours, ** fail, and render your Sage install useless!! Do you want to continue [y/N]? I'm surprised that you don't see the mirror test, but the urllib problem seems more fundamental. C

Re: [sage-support] Re: Cannot upgrade for 4.5.1 to 4.5.2

2010-08-13 Thread Mitesh Patel
On 08/13/2010 04:37 AM, Mitesh Patel wrote: > On 08/11/2010 04:40 AM, samrat wrote: >> ---> SELinux in in 'enforcing' mode. Initially (after installing) i >> had some problem with SELinux and so as root i had run: chcon -t >> textrel_shlib_t /usr/local/pkgs/s

Re: [sage-support] Bad Request Maximum length of 102400 bytes exceeded.

2010-08-27 Thread Mitesh Patel
On 08/27/2010 09:54 AM, didier deshommes wrote: > My guess is that the web server has a limit on the size of a POST > request and that you have reached it. Typically this is 1024kb. The > solution is to increase this limit. I'm not sure how to do that for a > wsgi application (which I assume sage i

Re: [sage-support] Error message

2010-08-27 Thread Mitesh Patel
On 08/27/2010 02:57 PM, Rolandb wrote: > VMware 3.1.1 with 4.5.1: > > 2010-08-16 13:01:46-0700 [-] Log opened. > 2010-08-16 13:01:46-0700 [-] twistd 9.0.0 (/home/sage/sage/local/bin/ > python 2.6.4) starting up. > 2010-08-16 13:01:46-0700 [-] reactor class: > twisted.internet.selectreactor.SelectR

Re: [sage-support] Bad Request Maximum length of 102400 bytes exceeded.

2010-08-28 Thread Mitesh Patel
On 08/27/2010 06:19 PM, Mitesh Patel wrote: > On 08/27/2010 09:54 AM, didier deshommes wrote: >> My guess is that the web server has a limit on the size of a POST >> request and that you have reached it. Typically this is 1024kb. The >> solution is to increase this limit. I

Re: [sage-support] Re: Error message

2010-08-28 Thread Mitesh Patel
On 08/28/2010 12:42 AM, Rolandb wrote: > On 28 aug, 02:31, Mitesh Patel wrote: >> On 08/27/2010 02:57 PM, Rolandb wrote: >>> VMware 3.1.1 with 4.5.1: >> >>> 2010-08-16 13:01:46-0700 [-] Log opened. >>> 2010-08-16 13:01:46-0700 [-] twistd 9.0.0 (/

Re: [sage-support] How do I doctest this KeyboardInterrupt?

2010-08-30 Thread Mitesh Patel
On 08/30/2010 05:48 AM, Simon King wrote: > I try to write a doctest for a method that, under certain conditions, > is supposed to raise a KeyboardInterrupt with a specific error message > ("simulation" in this case). I understood that in order to doctest an > error, one would do something like >

Re: [sage-support] Re: Custom GUI or updating interact widgets?

2010-09-01 Thread Mitesh Patel
> On Sep 1, 12:21 pm, HMark wrote: >> One thing I'm missing is a way to change interact widget rendering in >> the browser, from within the code. >> >> So, in the simple example athttp://www.sagenb.org/home/pub/2409/(and >> also below), what I'd like to see is that the n_points_local input_box >>

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

2010-09-04 Thread Mitesh Patel
On 09/04/2010 04:11 AM, Minh Nguyen wrote: > On Sat, Sep 4, 2010 at 7:01 PM, sps 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.htm

Re: [sage-support] installation of Sage

2010-09-05 Thread Mitesh Patel
On 09/05/2010 07:57 AM, Michael wrote: > Since yesterday I have been trying to Install Sage 4.5.2 on my > netbook. After many years of using Windows I just changed to Linux (32 > Bit, Opensuse 11), so I'm not yet used to working with this operating > system. So I downloaded the binary installation

Re: [sage-support] Re: Custom GUI or updating interact widgets?

2010-09-09 Thread Mitesh Patel
/ ? > On Sep 2, 10:17 am, HMark wrote: >> Thank you, Mitesh. >> >> On Sep 1, 3:59 pm, Mitesh Patel wrote: >> >>> If we added a unique HTML 'id' attribute to the input element, perhaps >>> we could wrap >> >>> html('jQuery(&

Re: [sage-support] Re: installation of Sage

2010-09-11 Thread Mitesh Patel
On 09/06/2010 05:58 AM, Simon King wrote: > On Sep 6, 10:03 am, Dan Drake wrote: >> ... >> Googling "sh: undefined symbol: rl_filename_rewrite_hook" immediately >> led me to this thread: >> >> http://www.mail-archive.com/sage-support@googlegroups.com/msg16822.html I found http://groups.google.co

Re: [sage-support] Re: Test if p(x) is in a ring generated by polynomials

2010-09-12 Thread Mitesh Patel
On 09/11/2010 11:30 PM, john_perry_usm wrote: > I would try this: > > 1. Let M be an augmented matrix over the *integer* ring whose entries > in the left block are (as you state) the coefficients of p_1*p_2, ... > p_i*p_j. You can create a matrix over the integer ring using M = > matrix(ZZ,...). >

Re: [sage-support] Cannot upgrade from 4.5.2 to 4.5.3

2010-09-12 Thread Mitesh Patel
On 09/12/2010 07:52 AM, samrat wrote: > I installed 4.5.2 from source but i am unable to upgrade from 4.5.2 to > 4.5.3 using sage -upgrade. > > i am using CentOS 5.5 with SELinux in permissive mode. I get the > errors: > > [r...@localhost Desktop]# sage -upgrade > Downloading packages from http:/

Re: [sage-support] Re: installation of Sage

2010-09-12 Thread Mitesh Patel
On 09/12/2010 09:18 AM, Michael wrote: > On 12 Sep., 00:19, Mitesh Patel wrote: >> Michael, is your system fully updated to the latest stable packages for >> your openSUSE version? Also, how much RAM does your computer have? > > I am afraid I don't know what stable pac

Re: [sage-support] Re: installation of Sage

2010-09-12 Thread Mitesh Patel
On 09/12/2010 09:16 AM, Michael wrote: > On 12 Sep., 00:15, John H Palmieri wrote: >> Have you tried building from the source distribution? Download it, >> unpack the tar file, and type "make". Then wait a few hours. (I >> suppose there may be some incompatibility between the binary >> distribu

Re: [sage-support] Re: Cannot upgrade from 4.5.2 to 4.5.3

2010-09-12 Thread Mitesh Patel
On 09/13/2010 12:28 AM, Jan Groenewald wrote: > Hi Mitesh > > Does your firefox have a proxy set up under > Edit > Preferences > Advanced > Network ? Good idea! Samrat's upgrade problem may well stem from the local networking setup. Can you check the firewall, too? -- To post to this group, s

Re: [sage-support] Re: installation of Sage

2010-09-13 Thread Mitesh Patel
ash error here because this is where your system's bash first finds a newly-built but incompatible Readline library under SAGE_ROOT. > On 12 Sep., 23:34, Mitesh Patel wrote: >> On 09/12/2010 09:16 AM, Michael wrote: >> >>> On 12 Sep., 00:15, John H Palmieri wrote: >

Re: [sage-support] Re: installation of Sage

2010-09-15 Thread Mitesh Patel
On 09/15/2010 02:12 PM, Michael wrote: > On 14 Sep., 03:05, Mitesh Patel wrote: >> On 09/13/2010 01:57 PM, Michael wrote: >>> sqlite-3.6.22 >>> [...] >>> bash: symbol lookup error: bash: undefined symbol: >>> rl_filename_rewrite_hook >>> [...]

Re: [sage-support] Re: integral

2010-09-18 Thread Mitesh Patel
On 09/18/2010 08:31 PM, kcrisman wrote: > On Sep 18, 12:52 pm, "ma...@mendelu.cz" wrote: >> x does not need declaration, it is declared automatically > > It's still good practice to do it, just in case x was defined in some > other way earlier in the session :) Or with 'sage -c', where x is not

Re: [sage-support] Using wavfile.write() in sage generates error message

2010-09-20 Thread Mitesh Patel
On 09/20/2010 10:37 AM, j wade wrote: > I am attempting to create a .wav file from an array in sage using the > package wavfile. I am importing a .wav file using the package > wavfile, and then using the python wavelets package 'pywt' to create > the array. Here are the commands: > > import pywt

Re: [sage-support] Re: Using wavfile.write() in sage generates error message

2010-09-20 Thread Mitesh Patel
On 09/20/2010 08:17 PM, Marshall Hampton wrote: > I think the scipy wavefile function doesn't like Sage ints. So if Oops. Thanks, Marshall! -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups

Re: [sage-support] Can't compute modular degree for elliptic curves in 4.5.2

2010-10-17 Thread Mitesh Patel
On 10/17/2010 07:50 PM, gagan wrote: > sage: E=EllipticCurve('11a1'); > sage: E.modular_degree(); > /Applications/sage/local/bin/sympow: line 3: 9922 Segmentation > fault ./sympow $* > > --- > RuntimeError

Re: [sage-support] Re: how to change numpy datatype

2010-10-19 Thread Mitesh Patel
On 10/19/2010 09:41 PM, 李季 wrote: > Thanks! > But it does't work well. > > import numpy as np > a = np.array([[1.1, 2, 3], [4, 5, 6]]) > a.astype(int) > b = a[0,0] / a[1,0] > print b > print a > > the result is as follow: > > 0.275 > [[ 1.1 2. 3. ] > [ 4. 5. 6. ]] According to http://w

Re: [sage-support] Re: eigenvalues bug?

2010-11-05 Thread Mitesh Patel
On 11/03/2010 09:32 PM, Jason Grout wrote: > On 11/3/10 3:30 PM, David Joyner wrote: >> Sage seems to be reporting eigenvalues incorrectly. Can this bug been >> reported before? > > It's well known that serious numerical issues come up when doing > eigenvalues of CC or RR matrices. That's why the

Re: [sage-support] problems installing mayavi2/ets

2010-11-09 Thread Mitesh Patel
On 11/09/2010 08:42 PM, Jorge E. ´Sanchez Sanchez wrote: > I opened the ticket No. 10196, but could not attach the spkg in the > corresponding e-mail because only accepts files not larger than 2Mb, and > it has 50.3Mb. My suggestion was to upload it to the SPKGS/ETS original > directory, but accor

Re: [sage-support] Version of java used by the Sage command line

2010-11-12 Thread Mitesh Patel
On 11/12/2010 05:48 PM, Mike Witt wrote: > After a new Fedora 14 installation, I ended up with the "default" > version of Java they use (IdedTea?) -- This didn't work for > Sage/JMOL, either on the command line or in the Notebook. So, I > installed the Oracle version. But both versions are now inst

Re: [sage-support] Version of java used by the Sage command line

2010-11-12 Thread Mitesh Patel
On 11/12/2010 06:43 PM, Mike Witt wrote: > On 11/12/2010 04:14:29 PM, Mitesh Patel wrote: >> On 11/12/2010 05:48 PM, Mike Witt wrote: >> > After a new Fedora 14 installation, I ended up with the "default" >> > version of Java they use (IdedTea?) -- This didn

Re: [sage-support] Version of java used by the Sage command line

2010-11-12 Thread Mitesh Patel
On 11/12/2010 08:29 PM, Mike Witt wrote: > On 11/12/2010 05:49:49 PM, Mitesh Patel wrote: >> On 11/12/2010 06:43 PM, Mike Witt wrote: >> > On 11/12/2010 04:14:29 PM, Mitesh Patel wrote: >> >> On 11/12/2010 05:48 PM, Mike Witt wrote: >> >> > After a ne

Re: [sage-support] On .inputrc

2010-11-17 Thread Mitesh Patel
On 11/18/2010 01:45 AM, Kwankyu wrote: > If I put the following line > > "\C-k": kill-whole-line > > into "~/.inputrc", Sage does not recognize it, that is, ctrl-k always > does "kill-line" On the other hand, in IPython invoked by "sage - > ipython", ctril-k does "kill-whole-line" as expected. >

Re: [sage-support] Notebook access

2010-11-25 Thread Mitesh Patel
On 11/25/2010 03:04 AM, Prof. Dr. Ulrich Tipp wrote: > I would like to make worksheets with some interaction available to > students in such a way that they can change values in the interaction > part but are not able to change/edit the code. How is this possible? > When I use "publish", interactio