[sage-support] Re: why isn't QQ a FractionField?

2008-09-18 Thread John H Palmieri
On Sep 18, 7:41 am, John H Palmieri [EMAIL PROTECTED] wrote: It wasn't the mathematics I was looking for, but how to output the answer once I find it. If Sage computes that 1/20 = 1/4 - 1/5, how do I get it to print the expression 1/4 - 1/5 without simplifying it to 1/20?  For example, if I

[sage-support] Re: why isn't QQ a FractionField?

2008-09-18 Thread John H Palmieri
On Sep 18, 9:51 am, William Stein [EMAIL PROTECTED] wrote: On Thu, Sep 18, 2008 at 9:49 AM, John Cremona [EMAIL PROTECTED] wrote: This looks a bit like an additive version of what we already do with factorizations.   I wonder if you could clever use the factorization class for it?

[sage-support] Re: why isn't QQ a FractionField?

2008-09-18 Thread John H Palmieri
On Sep 18, 1:01 am, John Cremona [EMAIL PROTECTED] wrote: 2008/9/18 John H Palmieri [EMAIL PROTECTED]: Right, I saw that in the source code. How about we change it, in this case, from    return isinstance(x, FractionField_generic) to    return isinstance(x, (FractionField_generic

[sage-support] bug? with plot3d

2008-09-23 Thread John H Palmieri
When passing a python function to plot3d, specifying the variable names and including 'adaptive=True' makes plot3d fail, with the message AttributeError: 'function' object has no attribute 'subs' In more detail: sage: def f(x,y): return sin(x+y) Then the following work and produce the same

[sage-support] a different bug? with plot3d

2008-09-23 Thread John H Palmieri
Is the following a bug? I don't really know what 'adaptive=True' means -- the documentation isn't very helpful -- so maybe it's not supposed to work for functions like this... def g(x,y): if y = 0 or y = x**2: return 0 else: return 1 Then plot3d(g, (-3, 3), (-3, 3),

[sage-support] problem with animate on OS X 10.5, Sage 3.1.2

2008-09-27 Thread John H Palmieri
Can anyone else reproduce this? sage: a = animate([sin(x + float(k)) for k in srange(0,2*pi,0.3)], xmin=0, xmax=2*pi, figsize=[2,1]) sage: a Animation with 21 frames sage: a.show() dyld: Symbol not found: __cg_png_create_info_struct Referenced from:

[sage-support] Re: problem with animate on OS X 10.5, Sage 3.1.2

2008-09-29 Thread John H Palmieri
On Sep 29, 7:40 am, Jason Grout [EMAIL PROTECTED] wrote: See http://trac.sagemath.org/sage_trac/ticket/975for a solution that is already put in place.  Basically, use $SAGE_ROOT/local/bin/sage-native-execute, which does exactly what mabshoff says above. So like the following?

[sage-support] aspect_ratio in 3d

2008-09-29 Thread John H Palmieri
I don't understand aspect_ratio for 3d plots, or maybe there are bugs. If I do (from the notebook interface) sage: var('x y') sage: Q = plot3d(sin(x+y), (-3,3), (-2,2)) sage: Q.show() then I get a nice picture, with a labeled frame showing x going from -3 to 3, y from -2 to 2, z from -1 to 1.

[sage-support] Re: Questions about Matrices and Solving Linear Systems

2008-10-01 Thread John H Palmieri
On Oct 1, 9:15 am, Jason Grout [EMAIL PROTECTED] wrote: Stephen Hartke wrote: Martin and Jason: Thanks for your responses!  They were exactly what I looking for.  I knew there had to be easy ways of changing matrices, but none of these things are listed in the documentation on the web

[sage-support] Re: simplify

2009-09-11 Thread John H Palmieri
On Sep 11, 3:21 pm, Laurent moky.m...@gmail.com wrote: lastras ha scritto: Help will be appreciated. Tanks! By the way, I have a question which is far away from Sage : in the sentence Help will be appreciated. Is appreciated a false-friend for the French expression appréciée ? I'm

[sage-support] Re: list_plot3d

2009-09-11 Thread John H Palmieri
On Sep 11, 11:02 am, Ranjit rjcha...@gmail.com wrote: Yeah, the sample code works for me too. I'm not sure I see what's different about what I'm doing. Here's an example of something that doesn't work for me: var(rho_X rho_Y R) R=6 rho=sqrt(rho_X^2+rho_Y^2) EE(rho_X,rho_Y)=exp(-rho/R)

[sage-support] Re: latex/jsmath error

2009-09-14 Thread John H Palmieri
On Sep 14, 12:38 pm, Mikie thephantom6...@hotmail.com wrote: Put from sage.misc.latex import JSMath Why? This is imported into the notebook by default, so you don't need to do this. into the notebook. Then %latex $x^2-x$ Then I get the

[sage-support] Re: latex/jsmath error

2009-09-14 Thread John H Palmieri
On Sep 14, 1:21 pm, Mikie thephantom6...@hotmail.com wrote:  Sage Version 3.2. This is almost a year old, which is getting pretty old, especially given the fast pace of Sage development. Later versions of Sage should give better error messages if convert (from the ImageMagick suite) and/or

[sage-support] Re: Symbolic Matrix as a Latex Object

2009-09-27 Thread John H Palmieri
On Sep 27, 5:55 am, louie louferville...@hotmail.com wrote: Hello, my platform is: - W. Vista 64 - Firefox 3.0.10 - Sage Version 4.1.1 (VMWare) Last night I tried this Matlab exercise in the notebook (without Typeset activated): x,y,z,a,b,c=var('x,y,z,a,b,c')

[sage-support] Re: Symbolic Matrix as a Latex Object

2009-09-28 Thread John H Palmieri
On Sep 27, 3:57 pm, John H Palmieri jhpalmier...@gmail.com wrote: On Sep 27, 5:55 am, louie louferville...@hotmail.com wrote: [snip] Is this behaviour normal? No, it's a bug.  Note that when you execute type(A), you're not asking for the matrix to be typeset, but for its type

[sage-support] Re: Steenrod algebra multiplication KeyError

2009-10-14 Thread John H Palmieri
On Oct 14, 10:54 am, mrotsliah mrotsl...@gmail.com wrote: I have Sage 4.1.1 install on a server, and I run the following code, which outputs the following error: sage: A3=SteenrodAlgebra(3) sage: A3.P(36,6)*A3.P(27,9,81)

[sage-support] Re: Typeset problem with sech(x)

2009-10-25 Thread John H Palmieri
On Oct 25, 7:37 pm, Marshall Hampton hampto...@gmail.com wrote: Latex doesn't actually support \sech, so this can't really be considered an error on Sage's part. Note that sage: latex('sech(x)') gives \text{sech(x)} On the other hand, sage: latex(sech) gives \sech I think the

[sage-support] Re: Tex fonts in JSMATH OS X

2009-11-13 Thread John H Palmieri
On Nov 13, 4:04 pm, Jaasiel Ornelas jrodri1...@gmail.com wrote: I'm not quite sure I understand the jsmath Part of sage. Am I supposed to be able to see nice mathematical symbols and not just code? i.e. not sqrt(x) but the actual symbol for the square root. Because if I am... I'm not. I

[sage-support] Re: Tab completion problem: sage 4.2 in Ubuntu 9.10

2009-11-18 Thread John H Palmieri
On Nov 18, 7:31 pm, Minh Nguyen nguyenmi...@gmail.com wrote: Hi Alasdair, On Wed, Nov 18, 2009 at 10:18 PM, Alasdair amc...@gmail.com wrote: I'm using, as far as I know, the newest sage on the newest Ubuntu. However, tab completion of a command moves the cursor back towards the beginning

[sage-support] Re: gcd bug?

2009-11-19 Thread John H Palmieri
On Nov 19, 9:44 pm, Rolandb rola...@planet.nl wrote: Hi. Look at: R.A,B=QQ[] expr=(A,B) (a,b)=sorted([abs(expr[n]([2,16])) for n in [0,1]]) print a,b,a.gcd(b) I got: 2 16 1 I expected: 2 16 2 Reason? Because a and b are rational numbers here: they're elements of QQ. Type a.gcd? and

[sage-support] Re: numerical approximation in sage.

2009-11-27 Thread John H Palmieri
On Nov 27, 10:03 am, Yotam Avital yota...@gmail.com wrote: Hello. In the tutorials there is an example for numerical approximation: var('x y p q') (x, y, p, q) eq1 = p+q==9 eq2 = q*y+p*x==-6 eq3 = q*y^2+p*x^2==24 solns = solve([eq1,eq2,eq3,p==1],p,q,x,y, solution_dict=True)

[sage-support] Re: How to plot tree-dimensional array?

2009-12-09 Thread John H Palmieri
On Dec 9, 11:05 am, Jason Grout jason-s...@creativetrax.com wrote: Eugene Goldberg wrote: Hello, Could you please advice the way to plot three-dimensional array? Something like plot3d or counter_plot, but in case the data are already calculated in array and there is no way to call

[sage-support] Re: An abbreviation for lambda?

2009-12-14 Thread John H Palmieri
On Dec 14, 11:43 am, Carlos Córdoba ccordob...@gmail.com wrote: I have to agree with Marshall, because it could be confusing for new sage users that come from python to see such a different syntax meaning. But what about the Mathematica syntax? Could it be adopted by sage? The problem is

[sage-support] Re: Can SAGE perform raising to a p^th power quicker in char p?

2009-12-31 Thread John H Palmieri
On Dec 30, 9:46 pm, Alex P alexvpetr...@gmail.com wrote: I was trying to figure out if SAGE can raise to the pth power quickly in characteristic p. It seems that it doesn't. Am I right to think that or am I missing something? Here is what led me to this See

[sage-support] Re: 'subprocess must have crashed' ....

2010-01-05 Thread John H Palmieri
On Jan 5, 9:16 am, William Stein wst...@gmail.com wrote: On Tue, Jan 5, 2010 at 7:03 AM, jeff_kantor jeff.kan...@gmail.com wrote: Deleting .matplotlib and then running sage yields the same problem as before.  I've updated EPD to the new distribution that was released this morning, version

[sage-support] Re: non conventional displays of sage objects

2010-01-15 Thread John H Palmieri
On Jan 15, 5:57 pm, Oscar Gerardo Lazo Arjona algebraicame...@gmail.com wrote: [snip] A related issue is the imposibility of using variable name 'lambda' due to it being a python keyword. That variable name is very often needed. But then, if the variable name-display association option was

[sage-support] can I solve this using Sage?

2010-01-22 Thread John H Palmieri
I have an equation T = integral from a to b of sqrt(1+A*sin^2(x)) dx where I know T, a, and b, but I don't know A. Can I use Sage to solve this? (I happen to know that A is close to zero, so I can replace the integrand by a Taylor polynomial (in terms of A) and then integrate that, but is

[sage-support] Re: can I solve this using Sage?

2010-01-23 Thread John H Palmieri
On Jan 23, 3:55 am, ma...@mendelu.cz ma...@mendelu.cz wrote: On 23 led, 12:39, ma...@mendelu.cz ma...@mendelu.cz wrote: Hello, I have a partial answer and perhaps you found a bug in elliptic_e in Sage (read below). To evaluate the integral do something like this (note replacing A by

[sage-support] Re: can I solve this using Sage?

2010-01-23 Thread John H Palmieri
On Jan 23, 1:42 pm, ma...@mendelu.cz ma...@mendelu.cz wrote: On 23 led, 05:48, John H Palmieri jhpalmier...@gmail.com wrote: I have an equation   T = integral from a to b of sqrt(1+A*sin^2(x)) dx where I know T, a, and b, but I don't know A. Can I use Sage to solve this? (I happen

[sage-support] Re: installation problems for Sage binary on Mac

2010-01-27 Thread John H Palmieri
On Jan 27, 3:29 pm, marktmueller mark.t.muel...@mac.com wrote: OK -- I read some of the later comments and I think the solution is to download an earlier version of Sage compatible with OSX 10.5.8 It doesn't have to be an earlier version of Sage. The downloads page that I see lists

[sage-support] Re: newbie -- defining a multivariate polynomial

2010-03-08 Thread John H Palmieri
On Mar 8, 7:59 am, lesshaste drr...@gmail.com wrote: I am having problems simply defining a multivariate polynomial. I have a slightly modified excerpt from a very helpful python script I was given that looks like #!/opt/sage-4.3.3-linux-32bit-ubuntu_9.10-i686-Linux/sage -python import sys

[sage-support] Re: 3D plot in sage

2010-03-10 Thread John H Palmieri
On Mar 10, 9:39 am, wxu...@sohu.com wrote: Hi everyone,I want do this thing as follows in sage, is that OK?var('x,y,z')f=cos(x)*cos(y)+cos(y)*cos(z)+cos(z)*cos(x)and then I want to plot f. how can do it in sage?Thanks in advance!regards,YC Isn't this a 4d plot? Or do you want to plot

[sage-support] Re: Can I factor x^2 - 2 and get (x-sqrt(2))*(x+sqrt(2)) ?

2010-03-10 Thread John H Palmieri
On Mar 10, 3:23 am, slabbe sla...@gmail.com wrote: Hi, A friend of mine wants to factorize symbolicly x^2 - 2 : sage: p = x^2 - 2 sage: p.factor() x^2 - 2 Apparently p.roots() gives almost what he wants : sage: p.roots() [(-sqrt(2), 1), (sqrt(2), 1)] Or sage:

[sage-support] Re: possible error in manual

2010-03-12 Thread John H Palmieri
On Mar 12, 9:18 am, Michael Beeson profbee...@gmail.com wrote: On the pagehttp://www.sagemath.org/doc/reference/sage/symbolic/expression.html the first example has eqn.subs(x==5)  and I think it should be eqn.subs(x=5) It seems to work either way, and there are examples in the documentation

[sage-support] Re: subprocess in SAGE

2010-04-22 Thread John H Palmieri
I find that it sometimes helps to add shell=True to a call to subprocess.Popen. (I'm not sure why, but you could try that.) On Apr 22, 10:21 am, VictorMiller victorsmil...@gmail.com wrote: I should say that my call is subprocess.Popen(myargs,stdin=subprocess.PIPE,stdout=subprocess.PIPE,stderr

[sage-support] linear transformations between vector spaces with named bases?

2010-05-12 Thread John H Palmieri
I have some (hashable) Sage objects, elements of a particular algebra, and I want to view them as the basis of a vector space. Call the objects a, b, c. I think the way to do this in Sage is sage: V = CombinatorialFreeModule(QQ, [a,b,c]) Suppose I have another such vector space: sage: W =

[sage-support] Re: Animation

2010-06-17 Thread John H Palmieri
On Jun 16, 7:34 pm, Jaasiel Ornelas jrodri1...@gmail.com wrote: Hi! I'm trying to animate a fourier series in terms of time. I use the animate command, but it won't take a free variable (in my case x). Here is my code: q(n,x,t,v,L) = (4/pi)* cos((2*n+1)*pi/8)*sin((2*n+1)*pi*x/L)*cos((2*n

[sage-support] Re: Animation

2010-06-19 Thread John H Palmieri
On Jun 19, 7:18 am, jrodri1...@gmail.com wrote: I'm on os X Snow Leopard Are you using the notebook interface or the command line? I don't think this will work from the command line: the OS X preview command doesn't seem to deal with animated gif's very well. Try saving it: a = animate(...)

[sage-support] Re: help defining latex macros

2010-07-26 Thread John H Palmieri
On Jul 26, 3:45 pm, Mike Witt msg...@gmail.com wrote: On 07/26/2010 01:24:34 PM, John H Palmieri wrote: On Jul 26, 12:59 pm, Mike Witt msg...@gmail.com wrote: sage: version() 'Sage Version 4.5.1, Release Date: 2010-07-19' I'd like to to define a latex macro, in a worksheet, so

[sage-support] Re: help defining latex macros

2010-07-27 Thread John H Palmieri
On Jul 26, 4:42 pm, Mike Witt msg...@gmail.com wrote: On 07/26/2010 04:17:05 PM, John H Palmieri wrote: On Jul 26, 3:45 pm, Mike Witt msg...@gmail.com wrote: On 07/26/2010 01:24:34 PM, John H Palmieri wrote: On Jul 26, 12:59 pm, Mike Witt msg...@gmail.com wrote: sage

[sage-support] Re: http://ask.sagemath.org

2010-08-18 Thread John H Palmieri
On Aug 18, 3:28 pm, William Stein wst...@gmail.com wrote: Hi, I've createdhttp://ask.sagemath.org  (I added this to DNS an hour ago, so depending on where you are, you may have to wait a while), and will be constantly trying to convince people to use this.          http://ask.sagemath.org

[sage-support] Re: Number of CPUs?

2010-09-03 Thread John H Palmieri
On Sep 3, 10:47 am, Simon King simon.k...@nuigalway.ie wrote: Hi! I have a list of computations (in fact, a test suite), and I'd like to do them in parallel. Of course, I could use @parallel, but:   1) each computation uses 3 processes (Sage, GAP, Singular)   2) it is probably not nice to

[sage-support] Re: creating variables in Polynomial Ring

2010-09-07 Thread John H Palmieri
On Sep 7, 10:47 am, tvn nguyenthanh...@gmail.com wrote: Hi, given a list of variable names as strings (e.g.,  l = ['a','b','c','d'])  I try to make those become variables in a Polynomial Ring.  One way is to do something like R.a,b,c,d=CC['a','b','c','d'] ,  after this the type of a or b or c

[sage-support] Re: installation of Sage

2010-09-11 Thread John H Palmieri
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 distribution and your system.) On Sep 11, 2:25 pm, Michael michael.helmut.mert...@rwth-aachen.de wrote:

[sage-support] Re: How to plot X array versus Y array

2010-10-17 Thread John H Palmieri
On Oct 17, 12:27 pm, Jose Guzman n...@neurohost.org wrote: Hi everybody, I want to plot a x versus y plot in Sage. Unfortunately , i do not know if plot() or list_plot() can do it. The documentation for list_plot contains this: If you have separate lists of x values and y values

[sage-support] Re: Casting from type rational functions to type polynomials

2010-10-23 Thread John H Palmieri
On Oct 23, 7:20 pm, Cary Cherng cche...@gmail.com wrote: R.g17,g19,g27,g28,g38,g39,g47,g49,g57,g58,g68,g69 = PolynomialRing(QQ) Eventually I compute a polynomial p with something like p = p1 / q.determinant() Sage gives p with type fraction field. How do I cast p back to the polynomial

[sage-support] Re: factor() behaving badly

2010-12-19 Thread John H Palmieri
On Dec 19, 7:01 pm, Alex Raichev tortoise.s...@gmail.com wrote: Hi all: I get differently formatted answers using factor() multiple times on the same polynomial.  I wouldn't call it a bug, but it sure is annoying when doctesting. Alex

[sage-support] Re: Error Compiling Sage-4.6.1: Error testing package ** python-2.6.4.p9 **

2011-01-14 Thread John H Palmieri
On Jan 14, 7:22 am, Richard richj...@pacbell.net wrote: I am trying to compile Sage from the sage-4.6.1.tar source file.  I am running gentoo linux with the latest stable packages. My system: gcc version 4.4.4 (Gentoo 4.4.4-r2 p1.2, pie-0.4.5)    (includes g++) m4   1.4.15 ranlib   GNU

[sage-support] Re: Finite Group Homomorphism question

2011-01-18 Thread John H Palmieri
On Jan 18, 7:30 pm, D. M. Monarres dmmonar...@gmail.com wrote: Hello all, Running into an issue with something. I must be missing something. Say I construct two groups that I know are isomorphic.         sage: G = SymmetricGroup(5) sage: r = G('(1,2,5,4,3)') sage: s = G('(1,5),(3,4)')

[sage-support] Re: Errors When Starting Sage-4.6.1

2011-01-19 Thread John H Palmieri
On Jan 19, 4:16 pm, Volker Braun vbraun.n...@gmail.com wrote: In my experience and everyone I talked to recently, setting SAGE_PARALLEL_SPKG_BUILD=yes works correctly. So parallel building is most likely not the culprit. But having the log cluttered by multiple compilations in parallel is an

Re: [sage-support] error while building Sage

2011-02-04 Thread John H Palmieri
On Friday, February 4, 2011 8:50:38 AM UTC-8, jaapspies wrote: Mate Kosor wrote: I am trying to build Sage 4.6.1. on Ubuntu 10.10 notebook with Intel(R) Core(TM) i5 CPU M 430 @ 2.27GHz. I installed all prerequisites, and did export MAKE=make -j5 export SAGE_CHECK=yes make

[sage-support] Re: how to declare that one variable depends on another for differentiation

2011-02-08 Thread John H Palmieri
On Tuesday, February 8, 2011 11:03:27 AM UTC-8, Ryan Krauss wrote: I am a Python user who has made minor use of Maxima on occasion. I am trying to make the switch to Sage. I have a piece of Maxima functionality that I am struggling to make work in Sage. I need to declare that two

[sage-support] Re: How can I reconstruct the reference manual?

2011-02-18 Thread John H Palmieri
If you're really missing files from SAGE_ROOT/devel/sage/doc/en/reference, then you could just manually copy them from an old installation of Sage (maybe just copy over the whole directory), or copy them from the main Sage spkg (sage-4.6.2.spkg), or you could revert those files from a

Re: [sage-support] Re: prime ideals in Z_n

2011-03-14 Thread John H Palmieri
On Monday, March 14, 2011 11:29:20 AM UTC-7, avishek wrote: I fully agree with you. But it will not certainly give all prime ideals! On Sun, Mar 13, 2011 at 9:30 PM, John Cremona john.c...@gmail.com wrote: This is not a computational question at all but an easy exercise. There is one

Re: [sage-support] linear algebra: populating a matrix

2011-03-14 Thread John H Palmieri
On Monday, March 14, 2011 9:02:48 PM UTC-7, Justin C. Walker wrote: Hi, and Welcome, On Mar 14, 2011, at 20:14 , Ben123 wrote: Hello. I'm a new user to Sage. I am trying to create a matrix without knowing the values when it is initialized. All the examples I see have static matrices

[sage-support] Re: Polynomial input as product of factors without * between them

2011-03-25 Thread John H Palmieri
On Friday, March 25, 2011 9:35:13 PM UTC-7, Surendran Karippadath wrote: If the multiplication sign * is absent ( say by mistake!) what is SAGE evaluating? For example: x=var('x');f=1/((x-1)(x-3)); f.limit(x=1) returns -1/3 diff(f,x) returns -1/(x - 4)^2 plot(f,(x,0,10)) plots a

[sage-support] Re: Absolute value of matrices

2011-04-04 Thread John H Palmieri
On Monday, April 4, 2011 3:00:20 PM UTC-7, pong wrote: By that I simply mean a function that on input a real matrix M returns the matrix N such that n[i][j] = abs(m[i][j]). This can be achieve by something like: n = len(M.rows()); m =len(M.columns()); N = matrix(n,m,lambda i,j:

[sage-support] Re: Plotting Python functions of two variables

2011-04-08 Thread John H Palmieri
On Friday, April 8, 2011 11:03:14 AM UTC-7, ObsessiveMathsFreak wrote: I have a python type function taking two variables is defined in such a say that accidental evaluation is a possibility. Here is a simplified version def h(x,n): if x2: return n-x else:

[sage-support] Re: Plotting Python functions of two variables

2011-04-08 Thread John H Palmieri
On Friday, April 8, 2011 3:59:23 PM UTC-7, ObsessiveMathsFreak wrote: This notation isn't very flexible though. For example, suppose I wanted to plot h(-x,n) over the same range. Can this be done without calling the symbolic engine? Is there a way to bypass symbolic plots altogether?

[sage-support] Re: Saving/Showing large animation consumes vast resources

2011-04-10 Thread John H Palmieri
On Sunday, April 10, 2011 6:36:08 AM UTC-7, Marshall Hampton wrote: Finally, what I do currently is to use ffmpeg. Because of patent and license issues I think this cannot be part of the standard Sage, but it does a great job and is very flexible. For larger movies this is crucial,

[sage-support] Re: Saving/Showing large animation consumes vast resources

2011-04-10 Thread John H Palmieri
On Sunday, April 10, 2011 8:46:51 AM UTC-7, John H Palmieri wrote: On Sunday, April 10, 2011 6:36:08 AM UTC-7, Marshall Hampton wrote: Finally, what I do currently is to use ffmpeg. Because of patent and license issues I think this cannot be part of the standard Sage, but it does

[sage-support] Re: Integrals of trigonometric functions

2011-04-14 Thread John H Palmieri
On Thursday, April 14, 2011 5:39:27 PM UTC-7, Michael Orlitzky wrote: Am I going crazy? sage: integrate(cos(2*x)*cos(x), x, 0, pi) 4/3 I get zero when I compute it. What version of Sage is this? -- John -- To post to this group, send email to sage-support@googlegroups.com To

[sage-support] Re: Graphs in Sage: vertex labels?

2011-04-17 Thread John H Palmieri
On Saturday, April 16, 2011 1:52:50 PM UTC-7, nkulmati wrote: Hello All, I have a simple script: G = graphs.RandomNGP(20, 0.05) centralities = G.centrality_closeness() I can not figure out how to plot the graph G so that no only the labels (1,2,3) are shown but also the

[sage-support] Re: Print huge matrix - notebook: WARNING: Output truncated!

2011-05-10 Thread John H Palmieri
On Tuesday, May 10, 2011 8:26:42 AM UTC-7, Jakob Lombacher wrote: Hi, I've got a ugly matrix, that elements consists of huge symbolic expressions. When I try to print it via view(H) I get the message WARNING: Output truncated! full_output.txt By clicking on full_output.txt I get

[sage-support] Re: imposing commutation relation

2011-05-22 Thread John H Palmieri
On Sunday, May 22, 2011 10:44:50 PM UTC-7, Simon King wrote: Hi Rajeev, On 22 Mai, 20:25, Rajeev rajs...@gmail.com wrote: I wish to simplify some calculation that appear in quantum mechanics. To begin we use non-commutative variables as - sage: R.a,b = FreeAlgebra(QQ, 2)

[sage-support] Re: error installing Kash

2011-05-26 Thread John H Palmieri
On Thursday, May 26, 2011 5:41:24 PM UTC-7, jtyard wrote: Hi, I'm having trouble installing the optional kash package with sage-4.7. I'm using a recent issue macbook pro running 10.6.7. Any help would be appreciated. It certainly looks like that spkg is broken. In fact, this was

[sage-support] Re: error installing Kash

2011-05-27 Thread John H Palmieri
On Thursday, May 26, 2011 9:47:19 PM UTC-7, John H Palmieri wrote: On Thursday, May 26, 2011 5:41:24 PM UTC-7, jtyard wrote: Hi, I'm having trouble installing the optional kash package with sage-4.7. I'm using a recent issue macbook pro running 10.6.7. Any help would be appreciated

[sage-support] Re: Strange error using R pexpect interface?

2011-06-06 Thread John H Palmieri
On Monday, June 6, 2011 10:54:57 AM UTC-7, kcrisman wrote: I'm using R matrices to use an R program and then do things with it in Sage. For some reason Sage doesn't get the right answer for matrices above a certain size. The first one is right (it gives the space that is in the

[sage-support] Re: Strange error using R pexpect interface?

2011-06-06 Thread John H Palmieri
On Monday, June 6, 2011 12:55:49 PM UTC-7, kcrisman wrote: So I feel like pexpect must be doing something naughty. Does anyone have any ideas what might be going on so I can use more data? I tried this experiment: I added spaces to the first string to be evaluated. When the

[sage-support] Re: latex_extra_preamble

2011-06-20 Thread John H Palmieri
On Monday, June 20, 2011 6:30:07 PM UTC-7, pong wrote: In notebook, I want to define \floor{x} as \lfloor x \rfloor so I tried from sage.misc.latex import latex_extra_preamble latex_extra_preamble() '\\newcommand{\\floor}[1]{ \\lfloor #1 \\rfloor}' %latex $\floor{x}, \lfloor x

[sage-support] Re: latex_extra_preamble

2011-06-21 Thread John H Palmieri
On Monday, June 20, 2011 7:22:32 PM UTC-7, pong wrote: Thank you for your tips. I use SAGE 4.7 %latex_debug shows that latex complains about \floor is an undefined control sequence (as if the latex_extra_preamble() has no effect) ! Undefined control sequence. recently read \floor

[sage-support] Re: latex_extra_preamble

2011-06-21 Thread John H Palmieri
On Tuesday, June 21, 2011 9:17:14 AM UTC-7, pong wrote: Thanks. Yours command work :) I used from sage.misc.latex import latex_extra_preamble latex_extra_preamble() '\\newcommand{\\floor}[1]{ \\lfloor #1 \\rfloor}' Do you mean you executed this in a Sage cell? That would explain

[sage-support] Re: sage ignores lines.color value in matplotlibrc

2011-08-01 Thread John H Palmieri
On Saturday, July 30, 2011 9:16:10 PM UTC-7, andres.ordonez wrote: Hi, there's something weird going on with my matplotlibrc file. Are you talking about the file $HOME/.matplotlibrc? Sage doesn't actually use that file, as far as I know. Try putting a copy in $HOME/.sage/matplotlib-1.0.1/

[sage-support] Re: sage ignores lines.color value in matplotlibrc

2011-08-01 Thread John H Palmieri
On Monday, August 1, 2011 9:22:58 AM UTC-7, andres.ordonez wrote: I have these matplotlibrc files: /etc/matplotlibrc /home/andres/.matplotlib/matplotlibrc /home/andres/.sage/matplotlibrc /usr/local/sage-4.6/local/lib/python2.6/site-packages/matplotlib/mpl- data/matplotlibrc I

[sage-support] Re: Use latex tags in variable names?

2011-08-01 Thread John H Palmieri
On Monday, August 1, 2011 8:28:57 PM UTC-7, Joon wrote: Hi, I just started using Sage, and I have a question about variable names. I skimmed through the documentation but could not find any answers. Is it possible to used latex tags in variable names so when I do show(var) I get the

[sage-support] Re: Sage 4.7 Python build fails on Fedora 15

2011-08-03 Thread John H Palmieri
On Wednesday, August 3, 2011 5:18:02 PM UTC-7, Volker Braun wrote: Don't set SAGE_CHECK. Or at least don't set it when building the Python spkg. -- John -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to

Re: [sage-support] Where are the environment variables in Sage.

2011-08-09 Thread John H Palmieri
On Tuesday, August 9, 2011 12:28:03 AM UTC-7, Minh Nguyen wrote: Hi Jose, On Tue, Aug 9, 2011 at 5:21 PM, Jose Guzman sjm.g...@googlemail.com wrote: I would like to change my $SAGE_BROWSER environment variable but do not know where it is. Where are the environment variables ? See

Re: [sage-support] Bug: Finding kernel of a matrix over GF(2) seems to be broken.

2011-08-19 Thread John H Palmieri
On Friday, August 19, 2011 2:32:18 PM UTC-7, Alastair Irving wrote: On 19/08/2011 18:57, Sucharit wrote: I am using Sage to compute homologies of large chain complexes. For this, I need to compute kernels of matrices over GF(2). The attached file testmatrix.sage contains the 128 X 120

[sage-support] Re: Bug: Finding kernel of a matrix over GF(2) seems to be broken.

2011-08-19 Thread John H Palmieri
On Friday, August 19, 2011 3:28:48 PM UTC-7, Simon King wrote: Hi! On 19 Aug., 23:32, Alastair Irving alastai...@sjc.ox.ac.uk wrote: I get the same result as you so it does look like a bug. I also tried putting algorithm=generic into the call and got a different, but also wrong,

[sage-support] Re: sage-ipython fails for newbie due to unset environment

2011-09-13 Thread John H Palmieri
On Tuesday, September 13, 2011 11:58:44 AM UTC-7, iboardman wrote: I just installed sage on an Ubuntu 10.4 64 bit machine. I thought I was supposed to be able to just run sage-ipython, but when I do it fails due to missing environment variables. I didn't see in the basic instructions

[sage-support] Re: for loop in 3d image

2011-09-14 Thread John H Palmieri
Try adding a colon at the end of for k in range(20)? -- John -- 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 options, visit this group at

[sage-support] Re: no math module!

2011-09-21 Thread John H Palmieri
On Wednesday, September 21, 2011 8:15:49 PM UTC-7, kodda wrote: so Id better not use mac I guess... Plenty of people here build Sage on Macs. OS X 10.7 is not supported, but 10.6.7 should be. I don't know if there are significant differences between Mac OS X 10.6.7 and Mac OS X Server

[sage-support] Re: error: C preprocessor /lib/cpp fails sanity check (installing sage-4.7.1 from source)

2011-09-25 Thread John H Palmieri
On Sunday, September 25, 2011 9:03:23 AM UTC-7, Maarten Derickx wrote: You should not neet to run installing as root. The error seems to be caused by the fact that your C preprosessor as located in /lib/cpp is behaving different from what sage expects. Can you show what is in config.log

[sage-support] Re: How to simplify a sum of fractions?

2011-09-27 Thread John H Palmieri
Those lists aren't the same. (1/4)*pi + 1 is equal to (pi+4)/4, not 5*pi/4. So I sure hope there's no way to simplify your first list into your second one. If I add in one more term at beginning so that Sage can tell what the difference is between consecutive terms, I get something perhaps

[sage-support] Re: Strange behaviour in a simple function

2011-09-29 Thread John H Palmieri
Note that 439+584 = 1023 = 2^10-1, so -439 and 584 are congruent mod M=2^10-1. (While B, M, and N are integers, x is element of Z/MZ, so comparisons like x==B are done mod M. Any printing of numbers involving x are done mod M.) -- John -- To post to this group, send email to

[sage-support] Re: Question about Plot

2011-10-04 Thread John H Palmieri
On Tuesday, October 4, 2011 3:28:59 PM UTC-7, juaninf wrote: Hi everyone I am have 4 vectors, and I want plot 2 graphics in the same place, vector1 vs vector2 color = red vector3 vs vector4 color = yelow I'm not quite sure what you mean by plotting one vector against another. Does

[sage-support] Re: jsMath typeset long eq

2011-10-18 Thread John H Palmieri
Instead of using jsMath, you could type latex(a) to get the LaTeX code for the object a. Then you can paste it into a LaTeX document and edit it as you please for viewing or printing. Or you can do this: sage: from sage.misc.latex import _latex_file_ sage: _latex_file_(a) This will

[sage-support] Re: Emacs support for visiting spkg files?

2011-11-12 Thread John H Palmieri
On Saturday, November 12, 2011 5:47:38 PM UTC-8, Bill Janssen wrote: You can visit a .tar.bz2 file with GNU Emacs 23, and it works. If I rename the .spkg file to .tar.bz2, it works. But I don't see how to tell Emacs that .spkg == .tar.bz2... The following seems to work for me to open

Re: [sage-support] Re: Can't install experimental packages

2011-11-14 Thread John H Palmieri
On Monday, November 14, 2011 10:05:44 AM UTC-8, William wrote: Does the user doing sage -optional have write permission to the directory /local/sage-4.7.2/tmp/ ? I just opened a ticket for this a few days ago: http://trac.sagemath.org/sage_trac/ticket/12018 -- John -- To post to

[sage-support] Re: problems launching Sage on a Mac

2011-11-17 Thread John H Palmieri
On Thursday, November 17, 2011 1:25:47 PM UTC-8, Raymond N. Greenwell wrote: I got XCode 3.2.6 downloaded and running. Now what? Download the Sage source tarball from http://sagemath.org/download-source.html. Pick a location to unpack the tarball and build Sage (say, your home

Re: [sage-support] Re: Sage problem

2011-11-27 Thread John H Palmieri
On Sunday, November 27, 2011 11:16:10 AM UTC-8, Artur wrote: 2+2 Work, Hurah!!! Thank You very much! Tell me how to find integral points on elliptic curve x^3-y^2=-297 Im start E=EllipticCurve([0,297]) E Elliptic Curve defined by y^2 = x^3 + 297 over Rational Field Now type E.

[sage-support] Re: Problem with integrals and assumptions

2011-11-28 Thread John H Palmieri
On Monday, November 28, 2011 10:01:54 AM UTC-8, kcrisman wrote: By the way, sympy seems to be a lot faster than maxima. Is there any It shouldn't be too much faster once Maxima is started up - the first integral will be longer because the Maxima library has to initialize, but after that

[sage-support] Re: computing the cup-product in the cohomology of a simplicial complex

2011-12-03 Thread John H Palmieri
On Saturday, December 3, 2011 6:15:03 PM UTC-8, Felix Breuer wrote: Hello everyone! I would like to compute the cup-product of two chains in the cohomology of a simplicial complex. Me too. What I have so far, is that I have the simplicial complex realized as a SimplicialComplex in

[sage-support] Re: computing the cup-product in the cohomology of a simplicial complex

2011-12-04 Thread John H Palmieri
On Sunday, December 4, 2011 7:47:13 PM UTC-8, Felix Breuer wrote: Hello again! I have followed your instructions and come up with the following: X = simplicial_complexes.Torus() C = X.chain_complex(cochain=True) print C._chomp_repr_() H = C.homology(generators=True) gen1 = H[1][1][0]

[sage-support] Re: Typesetting arbitrary LaTeX

2011-12-14 Thread John H Palmieri
On Wednesday, December 14, 2011 5:28:25 AM UTC-8, Jeroen Demeyer wrote: How can I typeset arbitrary LaTeX code? I.e. If s is the string $x^2+1$, how can I get a nicely typeset x^2+1 out of this? That is, I dont want to typeset \verb|$x^2 + 1$| but I want to typeset $x^2 + 1$. This

[sage-support] Re: Typesetting arbitrary LaTeX

2011-12-14 Thread John H Palmieri
On Wednesday, December 14, 2011 9:56:34 AM UTC-8, John H Palmieri wrote: On Wednesday, December 14, 2011 5:28:25 AM UTC-8, Jeroen Demeyer wrote: How can I typeset arbitrary LaTeX code? I.e. If s is the string $x^2+1$, how can I get a nicely typeset x^2+1 out of this? That is, I dont

[sage-support] Re: computing the cup-product in the cohomology of a simplicial complex

2012-01-04 Thread John H Palmieri
On Monday, December 5, 2011 6:07:56 PM UTC-8, Felix Breuer wrote: Here is a first implementation of the cup product. [snip] If there is interest, I would be willing to put in the additional work to add this function to Sage. But for that I would need to learn about the all the other

[sage-support] Re: List of operations on vector functions?

2012-01-10 Thread John H Palmieri
On Tuesday, January 10, 2012 2:03:23 PM UTC-8, LFS wrote: Hi I looked around quite a bit but probably not in the right places? I found I can define a vector function and how to get its derivative vector function. Is there a way to get at the component functions and/or a way to

[sage-support] Re: issue with sage -t (sage 4.8)

2012-01-24 Thread John H Palmieri
On Tuesday, January 24, 2012 12:07:16 AM UTC-8, Simon King wrote: Hi! On 24 Jan., 08:22, tvn nguyent...@gmail.com wrote: I have this file 'myclass.py' that contains the following class MyClass(object): @staticmethod def myt(l): sage: from

[sage-support] Re: Unexplained doctest error

2012-01-31 Thread John H Palmieri
On Tuesday, January 31, 2012 3:17:51 PM UTC-8, JStarx wrote: Hi, I am running OS X 10.6.8 and I just upgraded to 4.8 from 4.7.2. Some code I've been working on all of a sudden started failing it's doctests. Most of the failures have been easy to track down and fix, I only have one left to

<    1   2   3   4   5   >