[sage-support] Re: 3-D plots of affine varieties

2009-03-21 Thread Mike Hansen
Hello, On Mar 21, 10:13 pm, Minh Nguyen wrote: > Hi folk, > > I may be missing something here, but when I tried to plot 0 = x^2 + > y^2 - z^2 I received an error: What you want is implicit 3d plotting which is not in Sage (yet). See http://trac.sagemath.org/sage_trac/ticket/5249 for preliminar

[sage-support] 3-D plots of affine varieties

2009-03-21 Thread Minh Nguyen
Hi folk, I may be missing something here, but when I tried to plot 0 = x^2 + y^2 - z^2 I received an error: *** begin Sage session *** sage: var("x,y,z"); sage: f = x^2 + y^2 - z^2 sage: plot3d(f == 0, (x,-4,4), (y,-4,4), (z,-4,4)); ERROR: An unexpected error occurred while tokenizing input The

[sage-support] Re: python's list comprehension

2009-03-21 Thread Craig Citro
> Note that you're skipping the last conductor in the database, I > think... DB.conductor_range? indicates that the returned values > represent an inclusive range, but range/xrange/etc. take their second > argument as an exclusive bound.  (This is easy to fix with the above > xrange expression, bu

[sage-support] Re: Bad patch for unicode chars in TinyMCE?

2009-03-21 Thread Jason Grout
ma...@mendelu.cz wrote: > Hello, this is related to the thread at > http://groups.google.cz/group/sage-support/browse_thread/thread/2a699360a3847bab > > I think that installation of > http://trac.sagemath.org/sage_trac/attachment/ticket/5564/trac_5564-2.patch > causes that TinyMCE cannot be used

[sage-support] Re: Bad patch for unicode chars in TinyMCE?

2009-03-21 Thread Jason Grout
ma...@mendelu.cz wrote: > Hello, this is related to the thread at > http://groups.google.cz/group/sage-support/browse_thread/thread/2a699360a3847bab > > I think that installation of > http://trac.sagemath.org/sage_trac/attachment/ticket/5564/trac_5564-2.patch > causes that TinyMCE cannot be used

[sage-support] Re: OS X Clickable application

2009-03-21 Thread Minh Nguyen
Hi, On Thu, Mar 19, 2009 at 1:46 PM, Byungchul Cha wrote: > > > I must misunderstand something very trivial. I followed the steps > described at the release tour of Sage 3.3, except that I replaced 3.3 > with 3.4, since I thought I was compiling sage-3.4. Compiling was > successful and when I di

[sage-support] Re: ImportError starting Sage 3.4 in Mac OS X 10.4.11

2009-03-21 Thread Minh Nguyen
Hi John, On Sun, Mar 22, 2009 at 2:28 AM, John G wrote: > > I just downloaded Sage 3.4 for Mac OSX (sage-3.4-Intel-OSX10.5-i386- > Darwin.dmg). I installed it without trouble, but trying to run it I > get the errors below. I'm running Mac OS X 10.4.11 on an Intel Core > Duo Mac Mini. What am I

[sage-support] Re: ImportError starting Sage 3.4 in Mac OS X 10.4.11

2009-03-21 Thread Robert Bradshaw
On Mar 21, 2009, at 7:28 PM, John G wrote: > I just downloaded Sage 3.4 for Mac OSX (sage-3.4-Intel-OSX10.5-i386- > Darwin.dmg). I installed it without trouble, but trying to run it I > get the errors below. I'm running Mac OS X 10.4.11 on an Intel Core > Duo Mac Mini. What am I doing wrong? I

[sage-support] ImportError starting Sage 3.4 in Mac OS X 10.4.11

2009-03-21 Thread John G
I just downloaded Sage 3.4 for Mac OSX (sage-3.4-Intel-OSX10.5-i386- Darwin.dmg). I installed it without trouble, but trying to run it I get the errors below. I'm running Mac OS X 10.4.11 on an Intel Core Duo Mac Mini. What am I doing wrong? Is there a different version of Sage specifically for

[sage-support] Re: Number of operands in an expression

2009-03-21 Thread Robert Bradshaw
On Mar 21, 2009, at 6:05 PM, William Stein wrote: > > On Sat, Mar 21, 2009 at 5:42 PM, Alasdair wrote: >> >> Is pynac still being actively developed? > > Yes. > >> From its web pages it seems >> not; anyway I would have thought that most of its functionality would >> have found a better and bet

[sage-support] Re: Bad patch for unicode chars in TinyMCE?

2009-03-21 Thread Jason Grout
Rob Beezer wrote: > Robert, > > I'm not having this problem. 3.4 and Firefox 3.0.5 (ubuntu). > > When I double-click to get back into TinyMCE, I do get a small grey > box with "int x dx" (no quotes, no dollar signs) and a small square > that closes the box, overlaid on the editor. I've not not

[sage-support] Re: Bad patch for unicode chars in TinyMCE?

2009-03-21 Thread Rob Beezer
Robert, I'm not having this problem. 3.4 and Firefox 3.0.5 (ubuntu). When I double-click to get back into TinyMCE, I do get a small grey box with "int x dx" (no quotes, no dollar signs) and a small square that closes the box, overlaid on the editor. I've not not seen that before, but it goes a

[sage-support] Re: OS X Clickable application

2009-03-21 Thread meitnik
Hey, I would like that script too, thanks. btw, can you have it do a notebook too? andrew On Mar 21, 11:17 am, adam wrote: > You can use AppleScript to create a launcher for Sage: > Here is the AppleScript code: > > tell application "Terminal" >         do script "/Applications/sage/sage" > end

[sage-support] Re: Disabled person using SAGE

2009-03-21 Thread meitnik
On Mar 21, 7:54 pm, William Stein wrote: > On Sat, Mar 21, 2009 at 3:47 PM, meitnik wrote: > > > Sorry for my confusion and misunderstanding. Thought the whole Gui was > > all in Javascript. > > The client part, which runs in the web browser, is written in > javascript.  The server part is a Pyt

[sage-support] Re: Number of operands in an expression

2009-03-21 Thread William Stein
On Sat, Mar 21, 2009 at 5:42 PM, Alasdair wrote: > > Is pynac still being actively developed? Yes. >  From its web pages it seems > not; anyway I would have thought that most of its functionality would > have found a better and better-maintained home in Sage. Pynac exists only as a part of sag

[sage-support] Re: Number of operands in an expression

2009-03-21 Thread Alasdair
Is pynac still being actively developed? From its web pages it seems not; anyway I would have thought that most of its functionality would have found a better and better-maintained home in Sage. Anyway, I've just discovered that all of this can be done using Maxima: p=expand((1+x+1/y)^10) maxim

[sage-support] Re: python's list comprehension

2009-03-21 Thread William Stein
On Sat, Mar 21, 2009 at 5:24 PM, Carl Witty wrote: > > On Mar 20, 5:52 pm, Nils Bruin wrote: >> sage: DB = CremonaDatabase() >> sage: L = [ N.str()+c[0] for N in (lambda l: xrange(l[0],l[1])) >> (DB.conductor_range()) for c in DB.allbsd(N).items() if >>                  round(RDF(c[1][4]))%81 ==

[sage-support] Re: python's list comprehension

2009-03-21 Thread Carl Witty
On Mar 20, 5:52 pm, Nils Bruin wrote: > sage: DB = CremonaDatabase() > sage: L = [ N.str()+c[0] for N in (lambda l: xrange(l[0],l[1])) > (DB.conductor_range()) for c in DB.allbsd(N).items() if >                  round(RDF(c[1][4]))%81 == 0] ... >  - the whole lambda expression to make the pair ou

[sage-support] Re: Disabled person using SAGE

2009-03-21 Thread William Stein
On Sat, Mar 21, 2009 at 3:47 PM, meitnik wrote: > > Sorry for my confusion and misunderstanding. Thought the whole Gui was > all in Javascript. The client part, which runs in the web browser, is written in javascript. The server part is a Python program (a web server). > Thanks for explaining.

[sage-support] Re: Disabled person using SAGE

2009-03-21 Thread meitnik
Sorry for my confusion and misunderstanding. Thought the whole Gui was all in Javascript. Thanks for explaining. Please, is there a document that explains well how the Gui front end works. I really would like to try to get help and add to the gui for my needs. Is there an RTF version of the Ref gu

[sage-support] Re: Coercion problem

2009-03-21 Thread Jason Bandlow
Robert Bradshaw wrote: > On Mar 21, 2009, at 9:06 AM, Jason Bandlow wrote: > >> Hi all, >> >> Is the following missing coercion known? I couldn't find anything on >> trac, but there's a lot there related to coercion, so I may have >> missed it. >> >> sage: a = float(1.0) >> sage: QQ(

[sage-support] Re: Coercion problem

2009-03-21 Thread Robert Bradshaw
On Mar 21, 2009, at 9:06 AM, Jason Bandlow wrote: > > Hi all, > > Is the following missing coercion known? I couldn't find anything on > trac, but there's a lot there related to coercion, so I may have > missed it. > > sage: a = float(1.0) > sage: QQ(a) > TypeError: Unable to

[sage-support] Re: scipy.constants

2009-03-21 Thread Jason Grout
Hernan wrote: > Hello, > > Is there any way to use scipy.constants in sage? > When was it made part of scipy? We may have a version in Sage that is too old: sage: import scipy sage: scipy.__version__ '0.6.0' sage: import scipy.constants ---

[sage-support] Re: Number of operands in an expression

2009-03-21 Thread Burcin Erocal
On Sat, 21 Mar 2009 03:02:57 -0700 Robert Bradshaw wrote: > > On Mar 21, 2009, at 2:01 AM, Craig Citro wrote: > > >> I think that better way is to use maxima commands op, args, length, > >> atomp > >> > > > > I think that for objects which come from Maxima, this is the right > > thing to do. H

[sage-support] Re: Disabled person using SAGE

2009-03-21 Thread William Stein
On Sat, Mar 21, 2009 at 7:56 AM, meitnik wrote: > > I  hate to ask the obvious. Why was the gui front end not created in > Python in the first place or replaced by a Py make over?? Despite being obvious, I don't understand the question. The GUI front end is written in Python and Javascript, whi

[sage-support] Re: The preparser and nested loads

2009-03-21 Thread William Stein
On Sat, Mar 21, 2009 at 9:06 AM, Jason Bandlow wrote: > > Hi all, > > I ran into the following unexpected behavior, which I assume is because > the preparser does not work with nested loads.  I have two files, > foo.sage and bar.sage.  Their contents are as follows: > > foo.sage > > def

[sage-support] Bad patch for unicode chars in TinyMCE?

2009-03-21 Thread ma...@mendelu.cz
Hello, this is related to the thread at http://groups.google.cz/group/sage-support/browse_thread/thread/2a699360a3847bab I think that installation of http://trac.sagemath.org/sage_trac/attachment/ticket/5564/trac_5564-2.patch causes that TinyMCE cannot be used to edit mathematical formulas If I

[sage-support] Re: How do I deal with this message.

2009-03-21 Thread Rob Beezer
The thread linked to below begins the same way. Maybe it has the answer you need. http://groups.google.com/group/sage-support/browse_thread/thread/6fc59581c9ed1af1 On Mar 21, 8:14 am, nerak99 wrote: > Having played with Sage on a desktop PC I wanted to set it up as a > school wide service. I

[sage-support] The preparser and nested loads

2009-03-21 Thread Jason Bandlow
Hi all, I ran into the following unexpected behavior, which I assume is because the preparser does not work with nested loads. I have two files, foo.sage and bar.sage. Their contents are as follows: foo.sage def foo(): return (-1)**(-1) bar.sage load foo.sage The follow

[sage-support] Coercion problem

2009-03-21 Thread Jason Bandlow
Hi all, Is the following missing coercion known? I couldn't find anything on trac, but there's a lot there related to coercion, so I may have missed it. sage: a = float(1.0) sage: QQ(a) TypeError: Unable to coerce 1.0 () to Rational Note that the following works:

[sage-support] Re: showing graphs with multiple edges

2009-03-21 Thread Robert Miller
> No, the format for multiple edges in a dict of dicts is {u : {v : > [label1, label2]} }. Since you don't have the innermost list, the > graph is assumed to have one edge 1 --> 2 labeled by "2." My bad, I misread your complaint. That's definitely a bug. --~--~-~--~~~-

[sage-support] Re: showing graphs with multiple edges

2009-03-21 Thread Robert Miller
> > sage: G = DiGraph({1:{2: 2}, 2:{1:1}}) > > sage: G.show() > > I'm surprised by the output of this.  There are clearly two edges in the > graph: 1->2 and 2->1, but only one edge is shown. No, the format for multiple edges in a dict of dicts is {u : {v : [label1, label2]} }. Since you don't hav

[sage-support] How do I deal with this message.

2009-03-21 Thread nerak99
Having played with Sage on a desktop PC I wanted to set it up as a school wide service. I set it up on a server but got this message. sage-3.4-linux-Fedora_release_10_Cambridge-x86_64-Linux# ./sage -- | Sage Version 3.4, Release

[sage-support] Re: OS X Clickable application

2009-03-21 Thread adam
You can use AppleScript to create a launcher for Sage: Here is the AppleScript code: tell application "Terminal" do script "/Applications/sage/sage" end tell Note: It assumes that Sage is located in the Applications folder. If you would like I can email you my Sage launcher for which I

[sage-support] Re: Disabled person using SAGE

2009-03-21 Thread meitnik
I hate to ask the obvious. Why was the gui front end not created in Python in the first place or replaced by a Py make over?? Surely, Someone with advanced Javascript skills can come up with something better? I dont mean to step on toes but Gui is often everything to me to use software well. --

[sage-support] Re: Disabled person using SAGE

2009-03-21 Thread meitnik
Nope, worksheet barfed trying this. I suspect the huge text info was just too much. Cant this be rerouted to a text file while its loops through. If so, how? On Mar 21, 12:21 am, Marshall Hampton wrote: > There might be a better way of doing this, but one way to get the > docstrings that show up

[sage-support] Re: Disabled person using SAGE

2009-03-21 Thread meitnik
nope that code snippet failed to work too in a worksheet. see my comment in above posting of mine. I am surprised its this hard to suck out all the keywords/functions with their docstring stuff. How was the PDF produced? Cant that code be shared so I can hack it to get just what I need. On Mar 21

[sage-support] scipy.constants

2009-03-21 Thread Hernan
Hello, Is there any way to use scipy.constants in sage? Thanks, Hernan --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more opti

[sage-support] Re: Number of operands in an expression

2009-03-21 Thread Robert Bradshaw
On Mar 21, 2009, at 2:01 AM, Craig Citro wrote: >> I think that better way is to use maxima commands op, args, length, >> atomp >> > > I think that for objects which come from Maxima, this is the right > thing to do. However, not all symbolic objects in Sage are wrappers > for Maxima objects -- i

[sage-support] Re: Number of operands in an expression

2009-03-21 Thread Craig Citro
> I think that better way is to use maxima commands op, args, length, > atomp > I think that for objects which come from Maxima, this is the right thing to do. However, not all symbolic objects in Sage are wrappers for Maxima objects -- in the case of expressions using pynac, the code above actua

[sage-support] Re: Unexpected behavior of remove

2009-03-21 Thread Robert Bradshaw
On Mar 21, 2009, at 1:31 AM, Rolandb wrote: > Hi, I didn't expect that whole M would be effected. > > M=[[0..9]]*3 > print M[0] > [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] > > M[1].remove(9) > print M > [[0, 1, 2, 3, 4, 5, 6, 7, 8], [0, 1, 2, 3, 4, 5, 6, 7, 8], [0, 1, 2, > 3, > 4, 5, 6, 7, 8]] This is due

[sage-support] Unexpected behavior of remove

2009-03-21 Thread Rolandb
Hi, I didn't expect that whole M would be effected. M=[[0..9]]*3 print M[0] [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] M[1].remove(9) print M [[0, 1, 2, 3, 4, 5, 6, 7, 8], [0, 1, 2, 3, 4, 5, 6, 7, 8], [0, 1, 2, 3, 4, 5, 6, 7, 8]] Rolandb --~--~-~--~~~---~--~~ To post to this

[sage-support] Re: Number of operands in an expression

2009-03-21 Thread ma...@mendelu.cz
On 21 Bře, 07:05, Craig Citro wrote: > > That works well, but what about when the expression is multivariate, > > such as: > > > expand((1+x+1/y)^10) > > > It would be nice to have a general command to count the number of > > summands in such an expression. > > Yep, I agree. Here is a *terrible*

[sage-support] Re: Disabled person using SAGE

2009-03-21 Thread Thierry Dumont
meitnik a écrit : > Hi all, > > I am legally blind, legally deaf, some limited finger mobility, and > some learning disabilities too (all from Rubella). I enjoy mathematics > and programming but due to my limited income Mathematica is just out > of my reach even for the Home edition. A friend told