[sage-support] Re: plots in 3d are not published?

2012-01-17 Thread david.guichard
It does seem that this should be happening more or less automatically. I do notice that sage uses jmol_applet, which doesn't appear to be part of jmol, so I assume it should be loaded from sagenb.org. My javascript console for a published page shows an error, that jmol_applet is not defined. The

[sage-support] Question about scoping

2012-01-17 Thread Ed Scheinerman
I'm confused by the fact that variables defined inside functions can leak out and become global variables. Here's what I've noticed. (1) I create a file called steiner.py for finding the Steiner point given three points in the plane. Here's my code: def dist(p,q): Eulidean distance

[sage-support] Sage build readline error (Mac)

2012-01-17 Thread Jan Vonk
Hey all, I'm trying to install Sage from source on a MacBook Pro 2.2 GHz Intel Core i7 4GB running Mac OS X 10.7.2 The error has something to do with deadline not installing during the 'make'-ing. I have XCode 3.2.1 installed (weirdly (stupidly?) that was the version I got through the App Store

[sage-support] Attribute error when multiplying elements of a quotient free algebra

2012-01-17 Thread Starx
The following code generates an attribute error: kQ = FreeAlgebra(QQ ,2 , 'x') mons = [kQ.gens()[0], kQ.gens()[1], kQ.gens()[0]*kQ.gens()[1]] mats = [Matrix(QQ,3,[1, 0, 0, 0, 1, 0, 0, 0, 0]), Matrix(QQ, 3, [0, 0, 0, 0, 0, 0, 0, 0, 1])] A = FreeAlgebraQuotient(kQ, mons, mats, 'x')

[sage-support] Building failure (Mac)

2012-01-17 Thread Jan Vonk
Hey all, I'm trying to install Sage from source on a MacBook Pro 2.2 GHz 4GB running OS X Lion. I have a fresh XCode install (gcc 4.2.1) During the make-ing, I get spkg/logs/readline-6.1.log:sage: An error occurred while installing readline-6.1 and the build stops. I seem not to have the latest

[sage-support] Re: Question about scoping

2012-01-17 Thread luisfe
On Jan 16, 5:53 pm, Ed Scheinerman edward.scheiner...@gmail.com wrote: I'm confused by the fact that variables defined inside functions can leak out and become global variables. Here's what I've noticed. The problem is twith the function var. According to its documentation: (var?) The new

Re: [sage-support] Building failure (Mac)

2012-01-17 Thread Jeroen Demeyer
On 2012-01-16 15:26, Jan Vonk wrote: Hey all, I'm trying to install Sage from source on a MacBook Pro 2.2 GHz 4GB running OS X Lion. I think Sage on OS X Lion is not supported (yet). But I have heard that using the OS X 10.6 binary works. -- To post to this group, send email to

Re: [sage-support] Factors of an integer

2012-01-17 Thread Santanu Sarkar
Sorry. I get the function. On 17 January 2012 18:58, Santanu Sarkar sarkar.santanu@gmail.com wrote: Thanks. But this function gives only prime factors. Is there any function which gives all divisor? On 17 January 2012 00:39, Renan Birck Pinheiro renan.ee.u...@gmail.com wrote:

[sage-support] Re: Building failure (Mac)

2012-01-17 Thread Jan Vonk
Aww that's unfortunate... Thanks Jeroen. On Jan 17, 1:29 pm, Jeroen Demeyer jdeme...@cage.ugent.be wrote: On 2012-01-16 15:26, Jan Vonk wrote: Hey all, I'm trying to install Sage from source on a MacBook Pro 2.2 GHz 4GB running OS X Lion. I think Sage on OS X Lion is not supported (yet).  

[sage-support] Re: Question about scoping

2012-01-17 Thread Keshav Kini
OK, but that only explains why it injects things into a scope. Why does it inject them into the *global* scope, and not the local scope? Or is this not possible? -Keshav Join us in #sagemath on irc.freenode.net ! -- To post to this group, send email to sage-support@googlegroups.com To

[sage-support] Re: Building failure (Mac)

2012-01-17 Thread kcrisman
On Jan 17, 9:19 am, Jan Vonk jan.vonk...@gmail.com wrote: Aww that's unfortunate... Thanks Jeroen. But if you want to help test the nearly-there port, try http://trac.sagemath.org/sage_trac/ticket/11881 . We've definitely had people build a functioning Sage there. - kcrisman -- To post to

[sage-support] Re: plots in 3d are not published?

2012-01-17 Thread kcrisman
On Jan 3, 10:34 am, LFS lfahlb...@gmail.com wrote: Thank-you for all the replies! I appreciate all the help. == 2d plots are generated with jmol in the published worksheets; == 3d plots are NOT generated. == (If possible) I want my user/viewer to be able to view the published worksheet

[sage-support] Re: Possible change in behavior for function involving infinities?

2012-01-17 Thread kcrisman
Basically, I have a function F(a, b) that is real for all positive values of a and b (where a b). When b-oo one of the terms in the equation tends to zero. Depending how this original function F was calculated this either caused sage to successfully take the limit and Only because it's

[sage-support] Re: plots in 3d are not published?

2012-01-17 Thread LFS
Thanks so much everyone for working on this. 1. Tested again at sagenb with newly published worksheet: http://sagenb.org/home/pub/4060/ The 3d plots are still NOT being published. They publish on both the 4.7 http://sage.math.canterbury.ac.nz/home/pub/141/ and 4.7.1

[sage-support] Re: plots in 3d are not published?

2012-01-17 Thread Jason Grout
On 1/17/12 12:48 PM, LFS wrote: Thanks so much everyone for working on this. 1. Tested again at sagenb with newly published worksheet: http://sagenb.org/home/pub/4060/ The 3d plots are still NOT being published. The change is live on test.sagenb.org, not on sagenb.org. Thanks, Jason --

[sage-support] Re: plots in 3d are not published?

2012-01-17 Thread Jason Grout
On 1/17/12 3:02 PM, LFS wrote: Hiya Jason, Yes, it works - that is, 3d plots are published. http://test.sagenb.org/home/pub/23/ However, I am confused; is this a stable version of sage? Should I work on this notebook? Sorry, I don't really understand all these different websites.

[sage-support] Re: plots in 3d are not published?

2012-01-17 Thread LFS
Hiya Jason. That is what I assumed. But I need the 3d plots to publish :) So back to canterbury and 4.7. BTW: I cannot get mesh=True, dots=True or plot_points=[n,m] to work with plot3d. There is no sample at the documentation: http://www.sagemath.org/doc/reference/sage/plot/plot3d/plot3d.html

[sage-support] Re: plots in 3d are not published?

2012-01-17 Thread Jason Grout
On 1/17/12 5:36 PM, LFS wrote: Hiya Jason. That is what I assumed. But I need the 3d plots to publish :) So back to canterbury and 4.7. Considering there haven't been any bug reports about that feature, I'll try to move it into sagenb.org soon. BTW: I cannot get mesh=True, dots=True or

[sage-support] Re: Attribute error when multiplying elements of a quotient free algebra

2012-01-17 Thread Maarten Derickx
Dear Jim, The problem is that kQ.gens()[0] is not an element of the kQ.monoid() as is required as said in the documentation and the examples. To fix your problem: sage: kQ = FreeAlgebra(QQ ,2 , 'x') sage: gens=kQ.monoid().gens() sage: mons = [gens[0], gens[1], gens[0]*gens[1]] sage: mats =

[sage-support] Re: plots in 3d are not published?

2012-01-17 Thread kcrisman
BTW: I cannot get mesh=True, dots=True or plot_points=[n,m] to work with plot3d. I'm not sure what is going on there, and can't look at it right now. Sadly, this is (at least) http://trac.sagemath.org/sage_trac/ticket/9708 and has been open for a while :( -- To post to this group, send

Re: [sage-support] Factors of an integer

2012-01-17 Thread Keshav Kini
For anyone who found this thread by Google, or anyone else who is interested, the function is divisors(). -Keshav Join us in #sagemath on irc.freenode.net ! -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to

[sage-support] Just published a short matplotlib tutorial

2012-01-17 Thread Jason
Just thought I'd put this out there in case it can help someone. It's located here: http://sagenb.org/home/pub/4075/ If anyone would like to expand it, go ahead and republish it. By the way, I've got a sage server set up on my company's network, and we use it for engineering. I can provide

[sage-support] Re: Just published a short matplotlib tutorial

2012-01-17 Thread Jason Grout
On 1/18/12 12:14 AM, Jason wrote: Just thought I'd put this out there in case it can help someone. It's located here: http://sagenb.org/home/pub/4075/ If anyone would like to expand it, go ahead and republish it. By the way, I've got a sage server set up on my company's network, and we use it