[sage-support] Re: Package to Draw Geometrical Figures

2012-07-07 Thread John H Palmieri
On Saturday, July 7, 2012 10:54:41 AM UTC-7, ObsessiveMathsFreak wrote: > > Is there a sage package that allows quick and simple drawing of > geometrical (esp. euclidean) figures. Just a way to draw points, lines, > circles, and to mark angles and lengths in a shorthand way. > > Something like

Re: [sage-support] Re: Notebook & ldap: crypto missing etc.

2012-08-02 Thread John H Palmieri
On Thursday, August 2, 2012 8:20:11 AM UTC-7, Jan Groenewald wrote: > > Hi > > On 2 August 2012 17:17, Jori Mantysalo wrote: > >> On Thu, 2 Aug 2012, Jan Groenewald wrote: >> >> - - I also think your problem is dependencies not 5.1. How did you >>> install? Source or Binary? If a source compile

Re: [sage-support] Re: ask for guidance

2012-08-20 Thread John H Palmieri
On Monday, August 20, 2012 10:36:54 AM UTC-7, David Joyner wrote: > > On Mon, Aug 20, 2012 at 12:58 PM, bsmile > > wrote: > > > > > > On Monday, August 20, 2012 11:30:17 AM UTC-5, David Joyner wrote: > >> > >> On Mon, Aug 20, 2012 at 11:46 AM, bsmile wrote: > >> > Thanks, Volker, This is

Re: [sage-support] Re: ask for guidance

2012-08-20 Thread John H Palmieri
On Monday, August 20, 2012 11:21:04 AM UTC-7, bsmile wrote: > > > > On Monday, August 20, 2012 12:56:07 PM UTC-5, John H Palmieri wrote: >> >> >> >> I don't know much about this aspect of Sage, but you can also try this: >> >> sage: rep =

[sage-support] Re: format for output to file to be used by fortran

2012-08-20 Thread John H Palmieri
On Monday, August 20, 2012 4:21:57 PM UTC-7, bsmile wrote: > > With you kind help from the community, I am able to finish the first stage > work with SAGE. I am really appreciated to that! Now I am wondering how I > could possibly output and control the format of the irreducible matrices to >

[sage-support] aleph: turn the preparser off?

2012-08-30 Thread John H Palmieri
Is it possible to turn off the preparser for a few lines when using http://aleph.sagemath.org? -- John -- You received this message because you are subscribed to the Google Groups "sage-support" group. To post to this group, send email to sage-support@googlegroups.com. To unsubscribe from thi

[sage-support] Re: cannot display graphs

2012-10-16 Thread John H Palmieri
On Tuesday, October 16, 2012 10:38:34 AM UTC-7, fomalhauty wrote: > > Hi Volker, > > All the programs were installed by the university, and I cannot install a > program myself as I am not the administrator. I asked the computer facility > help center, but they have not figured out a solution.

[sage-support] Re: cannot display graphs

2012-10-16 Thread John H Palmieri
On Tuesday, October 16, 2012 10:45:08 AM UTC-7, John H Palmieri wrote: > > > > On Tuesday, October 16, 2012 10:38:34 AM UTC-7, fomalhauty wrote: >> >> Hi Volker, >> >> All the programs were installed by the university, and I cannot install a >> progr

[sage-support] Re: cannot display graphs

2012-10-17 Thread John H Palmieri
On Wednesday, October 17, 2012 11:03:10 AM UTC-7, fomalhauty wrote: > > Sorry for the late reply. > > I did this and I think it is in sagerc now. But Sage is still not able to > show the graphs.. > > Thanks again for your help. > > On Tuesday, October 16, 2012 5:12:27 PM UTC-4, Volker Braun wro

[sage-support] Re: AttributeError: 'sage.rings.polynomial.pbori.BooleanPolynomial' object has no attribute 'lc'

2012-10-31 Thread John H Palmieri
On Wednesday, October 31, 2012 9:39:11 AM UTC-7, V wrote: > > Hello, > > I try to execute one of the examples for computing the variety of a system > of Boolean polynomials from the Sage reference manual: > > http://www.sagemath.org/doc/reference/sage/rings/polynomial/pbori.html > > and I get t

Re: [sage-support] i *want* to use X11 under macosx -- can i?

2012-12-17 Thread John H Palmieri
On Monday, December 17, 2012 8:40:18 AM UTC-8, Greg Minshall wrote: > > Ivan, > > yes, downloading and installing the two patches for trac_11795 and then > configuring appropriately seems to work for DVI, PDF, and PNG. (in case it > isn't obvious, i'm a sage newbie, so i'm not sure how to get

[sage-support] Re: Replace variable of one polynomial with one matrix

2012-12-18 Thread John H Palmieri
On Tuesday, December 18, 2012 11:45:47 AM UTC-8, projetmbc wrote: > > Hello, > in the following code I would like to replace x with T in Delta_X so as to > illustrate > the Cayley Hamilton theorem by doing everything by hands. > > Is it possible ? > > Best regards. > Christophe BAL > > =

[sage-support] Re: Sage 5.5 : error while trying to install the GAP database

2012-12-30 Thread John H Palmieri
On Sunday, December 30, 2012 12:56:08 PM UTC-8, Emmanuel Charpentier wrote: > > This happens on my self-compiled Sage 5.5 installation on Debian wheezy 64 > bits : > > | Sage Version 5.5, Release Date: 2012-12-22 | > > I tried to follow the README's recommendation : > ---

[sage-support] Re: Build sage without documentation

2013-01-02 Thread John H Palmieri
On Wednesday, January 2, 2013 1:51:21 PM UTC-8, Daniel M. wrote: > > Hi, i have an innocent question: > > Can i build sage without the documentation, and do the build with many > threads? > > I mena, doing something like > > MAKE= "make -j3 build" > > > or > > MAKE="make build -j3" > > > which o

[sage-support] Re: sage crashes on this input

2013-01-14 Thread John H Palmieri
On Monday, January 14, 2013 2:31:46 PM UTC-8, Michael Beeson wrote: > > sage: K. = FractionField(PolynomialRing(QQ,4,'pdeN')) > Why not just sage: K. = PolynomialRing(QQ,4,'pdeN') > With this change, sage doesn't hang (for me). Oh, I see, later you need field coefficients. sage: R. = K[]

[sage-support] Re: matplotlib & animations

2013-01-19 Thread John H Palmieri
On Wednesday, January 16, 2013 9:41:14 PM UTC-8, David Morawski wrote: > > I'm having some troubles figuring out matplotlib from within Sage. I'm > interested in doing some animations, so I started with the first > exampleon > matplo

[sage-support] Re: line of intersection of two planes

2013-02-05 Thread John H Palmieri
On Tuesday, February 5, 2013 8:24:31 PM UTC-8, Asad Akhlaq wrote: > > Hi, > > If anyone can help me to find the line of intersection of two planes. I > can plot two planes in sage as follows: > > plane1 = plot3d((6 - 3*x - 2*y)/6, (x, -5, 5), (y, -6, 6)) > plane2 = plot3d((2 + 2*x + 9*y)/11, (x

Re: [sage-support] Re: How to refer to the reference manual when writing a tutorial?

2013-02-08 Thread John H Palmieri
On Friday, February 8, 2013 11:25:15 AM UTC-8, Jeroen Demeyer wrote: > > Maybe #6495 would make this possible? Just a guess. > Yes, I just check this. With #6495 in place, I added this to some random file in the developer's guide, rebuilt it, and the link worked: Testing a link :class:`sage

[sage-support] Re: Clearing the Terminal when running Sage

2013-02-08 Thread John H Palmieri
On Friday, February 8, 2013 6:56:26 PM UTC-8, KnS wrote: > > Hello! > > Sage versions: 5.6, 5.7beta3... > > I'd be glad if someone can help me here: I'd like to clear the terminal > sometimes when I run Sage. > > -- For instance on Octave, Ctrl + L works [1]. Here is what surprises me: > in the

Re: [sage-support] Re: Clearing the Terminal when running Sage

2013-02-08 Thread John H Palmieri
On Friday, February 8, 2013 7:40:52 PM UTC-8, KnS wrote: > > I think that "clear" (with no parentheses) clears the screen. "reset('a')" >>> is probably the command you're looking for. >>> >> > No, I wanted to clear the screen. I brought in Octave for want of an > anology and to say the fact tha

[sage-support] Re: Retrieving Sage source-code for reviewing not for building

2013-02-11 Thread John H Palmieri
On Monday, February 11, 2013 8:31:23 AM UTC-8, ccandide wrote: > > I have downloaded Sage 5.6 source-code at > http://www.sagemath.org/download-source.html in order to review the > Python code written to implement the graph theory module. After > decompressing, I have been surprised to see tha

[sage-support] Re: zn_poly-09.p09 error on Mac during upgrade to 5.7.

2013-02-23 Thread John H Palmieri
On Saturday, February 23, 2013 5:57:48 PM UTC-8, kcrisman wrote: > > > > On Saturday, February 23, 2013 4:00:54 PM UTC-5, Robert Gross wrote: >> >> Hi, >> >> I upgraded to 5.7, and I get an error from zn_poly-0.9.p9 when running >> the quick self-test: nuss_mul()... FAIL!. >> >> This is on a

[sage-support] Re: ipythonrc and Sage 5.7

2013-02-25 Thread John H Palmieri
On Monday, February 25, 2013 9:59:32 AM UTC-8, Luis Finotti wrote: > > Dear all, > > I've compiled 5.7 from source (64 bit, linux) and noticed I lost colors > and output numbering I had set in "~/.sage/ipython/ipythonrc" (for the > command line). Although quite minor, I thought I should make sur

[sage-support] Re: ipythonrc and Sage 5.7

2013-02-26 Thread John H Palmieri
On Tuesday, February 26, 2013 8:52:39 AM UTC-8, Luis Finotti wrote: > > > > On Monday, February 25, 2013 2:09:48 PM UTC-5, John H Palmieri wrote: >> >> >> Sage 5.7 included an upgrade to IPython, and the old IPython files were >> no longer compatible with t

[sage-support] Re: ipythonrc and Sage 5.7

2013-02-26 Thread John H Palmieri
On Tuesday, February 26, 2013 9:32:03 AM UTC-8, John H Palmieri wrote: > > > > On Tuesday, February 26, 2013 8:52:39 AM UTC-8, Luis Finotti wrote: >> >> >> >> On Monday, February 25, 2013 2:09:48 PM UTC-5, John H Palmieri wrote: >>> >>> &g

Re: [sage-support] Importing a Python file

2013-03-08 Thread John H Palmieri
On Friday, March 8, 2013 8:46:19 AM UTC-8, tvn wrote: > > Still same problem after doing that. This makes me think that it won't > work when SAGE_PATH is set to anything other than empty (By default > SAGE_PATH is not set to anything at all) > This is not a general problem; I'm guessing that

Re: [sage-support] matchings bipartite graphs

2013-03-20 Thread John H Palmieri
On Wednesday, March 20, 2013 2:16:47 PM UTC-7, Nathann Cohen wrote: > > H... If you want to enumerate all "partial permutations then you have > much better to do. If you have a n x m matrix with n it take all subsets of n elements of n, and enumerate all permutations > using those n columns

[sage-support] Re: Math Processing Error

2013-04-08 Thread John H Palmieri
On Monday, April 8, 2013 12:06:37 PM UTC-7, Rolandb wrote: > > Hi, after a few day all cores active, I suddenly received the following > message: > > > > > Any idea what this means? Windows 7 6

[sage-support] Re: assume doesn't assume the first time (with limit)

2013-04-17 Thread John H Palmieri
On Wednesday, April 17, 2013 8:58:15 AM UTC-7, Francois Maltey wrote: > > Hello everyone, > > I must declare "assume" twice. First time, I get an unevalued form. > After the second assume, I get the fine result : > I use Sage 5.7 > > sage: forget () ; var('n') > n > sage: assume ((x<1) and

[sage-support] Re: assume doesn't assume the first time (with limit)

2013-04-17 Thread John H Palmieri
On Wednesday, April 17, 2013 11:01:47 AM UTC-7, Maarten Derickx wrote: > > > > Le mercredi 17 avril 2013 18:07:04 UTC+2, John H Palmieri a écrit : >> >> >> >> On Wednesday, April 17, 2013 8:58:15 AM UTC-7, Francois Maltey wrote: >>> >>>

Re: [sage-support] Solve Binary Linear System

2013-04-18 Thread John H Palmieri
On Thursday, April 18, 2013 8:01:38 AM UTC-7, juaninf wrote: > > Thanks, > > But if the matrix A is non-square How I will be able to solve?. I am > trying but I get number of rows of self must equal degree of B > This is a math question now. If A is n x k, and if you want to solve Ax = b, the

[sage-support] Re: sage is filling up my directory with files

2013-04-24 Thread John H Palmieri
On Wednesday, April 24, 2013 8:53:56 AM UTC-7, davidp wrote: > > I just installed Sage 5.8 and am running it from the command line. For > some reason, it is filling up my directory with what looks like temporary > files, e.g., threshold.sageJmarTS.py, threshold.sageR9Gfg9, and on and > on.

[sage-support] Re: Mak file error.

2013-05-10 Thread John H Palmieri
On Friday, May 10, 2013 11:17:07 AM UTC-7, Jeremy Daugherty wrote: > > I'm working on a project that is using an old version because the updates > since then take some necessary functionality out of it. We could update, > but we would have to re-factor a fairly large program to do it. > This i

[sage-support] Re: problem applying patches

2013-05-15 Thread John H Palmieri
On Wednesday, May 15, 2013 12:08:57 PM UTC-7, Ben wrote: > > I am trying to help someone install patches on their sage and it has gone > beyond my ability to diagnose. The system is Ubuntu 12.04 with sage 5.8 > built from source. Mercurial is version 2.0.2. > > The behavior is that a patch can be

[sage-support] Re: c++'s "map" equivalent in sage/python

2013-07-03 Thread John H Palmieri
On Wednesday, July 3, 2013 4:58:34 PM UTC-7, Sam Math wrote: > > I'm looking for an equivalent to the 'map' function in C++, > http://www.cplusplus.com/reference/map/map/. > > Essentially, I want an associative array. Specifically, I want the array > to be indexed by floats. > > I'm aware of di

[sage-support] Re: Small multivariate rational functions, computation runs forever ...

2013-07-10 Thread John H Palmieri
On Wednesday, July 10, 2013 9:31:25 AM UTC-7, Peter Mueller wrote: > > In the following code the computation seems to run forever, even hitting > Ctrl-C doesn't stop that. > > k. = QQ[] > l = k.fraction_field() > r. = l[] > A = 2*(x^4+x^40)+b*(x^8+x^36)+c*(x^12+x^32) > B = A.subs(1/x) > > If I d

[sage-support] Re: Small multivariate rational functions, computation runs forever ...

2013-07-10 Thread John H Palmieri
On Wednesday, July 10, 2013 10:14:52 AM UTC-7, John H Palmieri wrote: > > > > On Wednesday, July 10, 2013 9:31:25 AM UTC-7, Peter Mueller wrote: >> >> In the following code the computation seems to run forever, even hitting >> Ctrl-C doesn't stop that. >

[sage-support] Re: How to build documentation for separate files?

2013-08-14 Thread John H Palmieri
On Wednesday, August 14, 2013 8:50:54 AM UTC-7, Oleksandr Kazymyrov wrote: > > Thanks, it should work. > > However, it would be great to add such functionality to sage. > See . I put a patch there months ago, and it works partially but not completely. If

Re: [sage-support] Another infelicity in sagetex : example.tex does not run with tikz prts uncommented (they did...)

2013-08-15 Thread John H Palmieri
On Thursday, August 15, 2013 2:44:38 PM UTC-7, Emmanuel Charpentier wrote: > > Hah ! So my compilation was not the source of *this* problem... > > One more datapoint : trying to compile this example with the *first* tikz > fragment (which tries to plot a graph) commented out but keeping > uncom

[sage-support] Re: Can sage solve non-homogeneous linear differential equations?

2013-09-18 Thread John H Palmieri
On Wednesday, September 18, 2013 7:03:56 AM UTC-7, jorges wrote: > > Hi, > I guess the answer is no, as I can't seem to find any reference to > non-homogeneous DE neither in the reference nor searching the web. > What sort of equation do you want to solve? Here's a simple example; there is al

[sage-support] Re: There is bug with init.sage (and how to resolve it)

2013-10-19 Thread John H Palmieri
On Saturday, October 19, 2013 11:46:17 AM UTC-7, Андрей Ширшов wrote: > > > Hello! >> Sage 5.12 doesn't see init.sage file in $DOT_SAGE >> > I don't see this behavior: Sage 5.12 sees my init.sage file perfectly, at least from the command line. > I found this bug in such way: >> >> >>import os

[sage-support] Re: exact eigenvalues

2013-11-07 Thread John H Palmieri
On Thursday, November 7, 2013 9:00:36 AM UTC-8, ccandide wrote: > > I dont' understand why Sage is unable to give an exact expression for the > eigenvalues of the following matrix : > > sage: A= matrix([[0,1],[1,-2]]) > sage: [a for a,_,_ in A.eigenvectors_right()] > [-2.414213562373095?, 0.414213

[sage-support] Re: I was not expecting this ... (sqrt bug)

2013-11-30 Thread John H Palmieri
For a bug report to be useful, you should tell us how to reproduce this. I can reproduce it, but not in a way which makes this a bug: evaluating sage: sqrt = 3 sage: sqrt? leads to your output. This is not a bug, of course, because I redefined sqrt on the first line. So how did you get this?

[sage-support] Re: URGENT: Putting a 2d circle into my animation

2013-12-11 Thread John H Palmieri
On Wednesday, December 11, 2013 2:20:51 PM UTC-8, willg...@hotmail.co.uk wrote: > > Please help, my coursework deadline is tomorrow. > I'm doing a piece on circular motion, I have a simple animation of a point > moving in a circle, and a static circle I want the point to move around on > but I

Re: [sage-support] Re: cpu time

2013-12-21 Thread John H Palmieri
According to the docstring for timeit, This method prints the timing information and does not return anything, except if the option "seconds=True" was passed, in which case the wall time in seconds is returned. So timeit('...', seconds=True) might do what you want. On Saturday, Decembe

Re: [sage-support] How to cancel a pending alarm() ? (Why did you kill alarm(0)?)

2014-01-27 Thread John H Palmieri
On Monday, January 27, 2014 9:35:55 AM UTC-8, Georgi Guninski wrote: > > On Mon, Jan 27, 2014 at 06:19:34PM +0100, Jeroen Demeyer wrote: > > On 2014-01-27 15:13, Georgi Guninski wrote: > > >On Mon, Jan 27, 2014 at 03:07:00PM +0100, Jeroen Demeyer wrote: > > >>On 2014-01-27 14:35, Jeroen Demeye

Re: [sage-support] How to cancel a pending alarm() ? (Why did you kill alarm(0)?)

2014-01-27 Thread John H Palmieri
On Monday, January 27, 2014 10:00:38 PM UTC-8, Georgi Guninski wrote: > > On Mon, Jan 27, 2014 at 11:17:50AM -0800, John H Palmieri wrote: > > > > First, please try to be more polite. > > > > Dear sir or madam, > > Observe that in sage 5.12 there is

[sage-support] Re: How to cancel alarm() IN BOTH 5.12 AND 5.13

2014-01-27 Thread John H Palmieri
On Monday, January 27, 2014 10:13:28 PM UTC-8, Georgi Guninski wrote: > > Dear sir or madam, > > How to cancel alarm in BOTH sage 5.12 AND 5.13? > > cancel_alarm() works only in 5.13 > alarm(0) works only in 5.12 (and maybe earlier) > I believe that from sage.misc.misc import cancel_ala

Re: [sage-support] Change color in command line

2014-03-09 Thread John H Palmieri
The colors are controlled by IPython. You should be able to create a file $HOME/.sage/ipython-0.12/profile_sage/ipython_config.py with the lines c = get_config() # Set the color scheme (NoColor, Linux, or LightBG). c.TerminalInteractiveShell.colors = 'Linux' for example, to change th

Re: [sage-support] Change color in command line

2014-03-09 Thread John H Palmieri
would be a bit redundant. Did you have any other color schemes in mind? > > Thanks, > > Nitin Prasad > > On Sunday, March 9, 2014 1:46:59 PM UTC-5, John H Palmieri wrote: >> >> The colors are controlled by IPython. You should be able to create a file >> $HOME

Re: [sage-support] Change color in command line

2014-03-11 Thread John H Palmieri
on in sage that will modify this upon >>> request? Also, when you mentioned >>> >>> "It might not be a bad idea to have several of our own pre-defined color >>> schemes" >>> >>> I noticed that the preset values of Linux and LightBG

Re: [sage-support] Change color in command line

2014-03-12 Thread John H Palmieri
ere's an error if there's an invalid option, but it > appears the valid options are handled at some time before. > > Thanks again for all your help, > > Nitin > > On Tuesday, March 11, 2014 5:52:34 PM UTC-5, John H Palmieri wrote: >> >> I'm so

[sage-support] Re: xlrd, xlwt, xlutils with sage

2014-03-24 Thread John H Palmieri
Here's the answer I just posted to your question on Stack Overflow (http://stackoverflow.com/questions/22612301/xlrd-xlwt-with-sagemath): Rather than installing them with the system Python, install them with Sage's Python: you can either do sage --sh: this starts a subshell with various environ

[sage-support] Re: effective ways to use the documentation (get help)

2014-04-03 Thread John H Palmieri
On Wednesday, April 2, 2014 1:41:06 PM UTC-7, Szabolcs Horvát wrote: > > Hello, > > I'm new to Sage and I am still struggling with finding what I need in the > documentation. I'm writing because maybe I'm not approaching this the > right way, and I'm looking for advice. I am using the noteboo

[sage-support] Re: [GAP] did I install the small groups package incorrectly?

2014-04-07 Thread John H Palmieri
On Monday, April 7, 2014 3:44:40 PM UTC-7, Will wrote: > > Firstly, I'm using a mac (mavericks), and I'm getting the small groups > package from: > http://www.icm.tu-bs.de/ag_algebra/software/small/#small > I think that the recommended way to install the GAP small groups package in Sage is to d

[sage-support] Re: [GAP] did I install the small groups package incorrectly?

2014-04-07 Thread John H Palmieri
nks, > > - will > > > On Monday, April 7, 2014 7:02:37 PM UTC-4, John H Palmieri wrote: >> >> >> On Monday, April 7, 2014 3:44:40 PM UTC-7, Will wrote: >>> >>> Firstly, I'm using a mac (mavericks), and I'm getting the small groups >&g

[sage-support] Re: cut-and-paste file into sage session gives different answers to loading file with execfile??

2014-04-09 Thread John H Palmieri
The problem is the line Gamma=DirichletGroup(p^e) The file 'test.py' is treated as pure Python, and the '^' operator is not exponentation in Python: it's bitwise exclusive or. Sage uses slightly modified Python syntax: see http://www.sagemath.org/doc/tutorial/programming.html#loading-and-a

[sage-support] Re: Integral result discrepancy between SAGE and MAPLE

2014-04-15 Thread John H Palmieri
I'm guessing that the issue is that your integrand simplifies when q=1 -- at least one term becomes zero -- but you do the integral before doing this simplification. Maybe the symbolic integration is not valid when q=1. If you plug in the parameters before integrating, you get something very di

[sage-support] Re: Integral result discrepancy between SAGE and MAPLE

2014-04-15 Thread John H Palmieri
On Tuesday, April 15, 2014 9:58:51 PM UTC-7, jorges wrote: > > On Wednesday, 16 April 2014 01:24:25 UTC-3, John H Palmieri wrote: >> >> I'm guessing that the issue is that your integrand simplifies when q=1 -- >> at least one term becomes zero -- but you do t

[sage-support] Re: Integral result discrepancy between SAGE and MAPLE

2014-04-15 Thread John H Palmieri
On Tuesday, April 15, 2014 10:36:20 PM UTC-7, John H Palmieri wrote: > > > > On Tuesday, April 15, 2014 9:58:51 PM UTC-7, jorges wrote: >> >> On Wednesday, 16 April 2014 01:24:25 UTC-3, John H Palmieri wrote: >>> >>> I'm guessing that the i

[sage-support] Re: Computational geometry in the plane: in Sage?

2014-04-22 Thread John H Palmieri
On Sunday, April 20, 2014 12:46:39 PM UTC-7, Ed Scheinerman wrote: > > Does Sage have, or is there a package I can add, that implements basic > plane geometry objects and operations. The sort of thing I'd like to do is, > given two points, construct the line that contains them. Or given two > ci

[sage-support] Re: How to see (1,1,1,1) as an element of Z/3Z x Z/2Z x Z/2Z x Z/2Z ?

2014-04-26 Thread John H Palmieri
On Saturday, April 26, 2014 8:16:58 AM UTC-7, Nathann Cohen wrote: > > Hello everybody ! > > I am back again with my group problems. I need to see 4-uples as elements > of the additive group Z/3Z x Z/2Z x Z/2Z x Z/2Z, how can I do that ? My > problem is that Sage converts the group I want in

Re: [sage-support] How to see (1,1,1,1) as an element of Z/3Z x Z/2Z x Z/2Z x Z/2Z ?

2014-04-28 Thread John H Palmieri
Here's something I find really confusing about additive abelian groups: sage: H = AdditiveAbelianGroup([0,2]) sage: H((2,0)) (0, 0) sage: H(vector((2,0))) (2, 0) sage: H((1,0)).order() 2 sage: H(vector((1,0))).order() +Infinity This is terrible, and a symptom of what Nathann wants to fix. It sho

Re: [sage-support] Re: [sage-edu] intersection of subspase

2014-05-13 Thread John H Palmieri
On Tuesday, May 13, 2014 12:50:41 PM UTC-7, David Joyner wrote: > > On Tue, May 13, 2014 at 2:19 PM, > > wrote: > > It is known that a polynomial x^2 +x +1= 0 has a solution in Zp if and > only > > if -3 is a square root > > in Zp, which is if and only if p=1.mod 6. the splitting field Zp(y

[sage-support] Re: [sage-edu] intersection of subspase

2014-05-13 Thread John H Palmieri
I think you should do a Sage tutorial before asking more questions. The message is "NameError: name 'p' is not defined", which means precisely what it says: p is not defined. You can't define GF(p) in general, you need to specify a prime (for example 17) and construct GF(17). Or sage: p=17

[sage-support] Re: terminal color in 6.2

2014-05-20 Thread John H Palmieri
On Tuesday, May 20, 2014 11:41:24 AM UTC-7, Luis Finotti wrote: > > > > It seems that 6.2 does not recognize the old way of configuring colors in > the terminal. It defaults to light background which makes it hard to read > the prompt in light background. Can anyone tell me how to change it? >

[sage-support] Re: caret interpreted as bitwise operator not power

2014-05-26 Thread John H Palmieri
By the way, this page: http://www.sagemath.org/doc/tutorial/afterword.html#the-pre-parser-differences-between-sage-and-python from the tutorial is also relevant. John On Monday, May 26, 2014 6:04:04 PM UTC-7, robin wrote: > > brilliant, thanks Leif. > > It'd be nice to have an explicit "

Re: [sage-support] Re: Can't import matplotlib.pyplot in Sage 6.2

2014-05-28 Thread John H Palmieri
On Wednesday, May 28, 2014 10:03:32 AM UTC-7, Jim wrote: > > On May 28, 2014, at 5:11 AM, kcrisman > > wrote: > > In fact, one test you could do is to test that one file. You'd have to cd > into the actual Sage-6.2-... directory and then do > > ./sage -t src/sage/plot/plot.py > > > Fails the

Re: [sage-support] Re: Can't import matplotlib.pyplot in Sage 6.2

2014-05-28 Thread John H Palmieri
On Wednesday, May 28, 2014 10:15:53 AM UTC-7, John H Palmieri wrote: > > > > On Wednesday, May 28, 2014 10:03:32 AM UTC-7, Jim wrote: >> >> On May 28, 2014, at 5:11 AM, kcrisman wrote: >> >> In fact, one test you could do is to test that one file. You'

Re: [sage-support] Re: Can't import matplotlib.pyplot in Sage 6.2

2014-05-28 Thread John H Palmieri
On Wednesday, May 28, 2014 10:52:07 AM UTC-7, Jim wrote: > > On May 28, 2014, at 10:42 AM, Jim Clark > > > wrote: > > Also… > ~/.matplotlib/matplotlibrc contains > backend: TkAgg > > I’ll try moving this out of the way… > > > Found the culprit! Renamed matplotlibrc to matplotlibrc.bak, > start

[sage-support] Re: Clifford Algebras, grrrrrr

2014-08-01 Thread John H Palmieri
On Saturday, July 26, 2014 12:21:38 PM UTC-7, Stephen Kauffman wrote: > > I attempted to create a Clifford Algebra for space-time with the gamma > matrices using the FreeAlgebraQuotient in analogy to the example for > constructing a quarternion algebra from the documentation with the code: > H

[sage-support] how to cancel a multi-line incomplete Sage command at the command-line?

2014-08-04 Thread John H Palmieri
Suppose I'm at the Sage command line and I type sage: V = QQ^4 sage: V.basis I am immediately returned to the Sage prompt, with a "KeyboardInterrupt" message. Great, just what I want. Now suppose I do sage: V = QQ^4 sage: V.basis(0 and then I hit return. (I meant to type ")"

[sage-support] Re: how to cancel a multi-line incomplete Sage command at the command-line?

2014-08-09 Thread John H Palmieri
On Monday, August 4, 2014 7:22:45 PM UTC-7, Nils Bruin wrote: > > On Monday, August 4, 2014 1:49:42 PM UTC-7, John H Palmieri wrote: >> >> >> I can complete the command (by typing ")" then RET), and it will execute >> and give me an error because &quo

[sage-support] Re: Displaying a simple table

2015-01-22 Thread John H Palmieri
On Thursday, January 22, 2015 at 12:10:13 PM UTC-8, CR wrote: > > The assignment is to construct a two-column table that starts at x= -4 and > ends with x= 5 with one unit increments between consecutive x values. It > should have column headings ‘x’ and ‘f(x)’. I can't find anything helpful >

[sage-support] Re: Extract matrix from output of right_kernel()

2015-02-10 Thread John H Palmieri
On Tuesday, February 10, 2015 at 12:52:45 PM UTC-8, slelievre wrote: > > sage: M = matrix([[1, 1, 1],[0, 0, -1]]) > sage: M > [ 1 1 1] > [ 0 0 -1] > sage: M.right_kernel() > Free module of degree 3 and rank 1 over Integer Ring > Echelon basis matrix: > [ 1 -1 0] > sage: k = M.right_kernel() >

[sage-support] running a .spyx file?

2015-03-22 Thread John H Palmieri
Did running a .spyx file break? If I have a file "testing.spyx' containing import sage.all sage.all.ZZ and then I run 'sage testing.spyx', I get an error: AttributeError: 'module' object has no attribute 'all' I think this ought to work. Should 'from sage.all import *' work also? It does

[sage-support] Re: Whats wrong with my function syntax?

2015-04-01 Thread John H Palmieri
If I copy and paste your code, I also get an error. The reason is that the first symbol you use for subtraction is not a hyphen, but some other symbol which looks very much like a hyphen, but which Sage does not recognize. (The second subtraction symbol seems to be okay.) Try using hyphens inste

[sage-support] Re: How do I backup my notebook files? The SAGE notebook will not open...

2015-04-06 Thread John H Palmieri
On Monday, April 6, 2015 at 12:53:45 PM UTC-7, manrique.m...@gmail.com wrote: > > Actually, maybe I am misunderstanding something... > > I get this when I try to retrieve my notebook files: > > user@debian:~$ cd /.sage/sage_notebook.sagenb/home/admin/ > bash: cd: /.sage/sage_notebook.sagenb/hom

[sage-support] Re: Differential graded algebras with homological indexing

2015-05-01 Thread John H Palmieri
On Friday, May 1, 2015 at 3:04:45 AM UTC-7, John Wiltshire-Gordon wrote: > > According to the documentation for commutative_dga, a differential graded > algebra is graded by integers. However, if I attempt to give a generator > negative degree, I get an error. For example, > > A = GradedCommu

[sage-support] Re: Problem with roots

2015-05-13 Thread John H Palmieri
On Wednesday, May 13, 2015 at 7:22:55 AM UTC-7, Phoenix wrote: > > > Why does this not work? > > p = 331776*x^36 - 11943936*x^34 + 195747840*x^32 - 1932263424*x^30 + > 12809871360*x^28 - 60216016896*x^26 + 206610186240*x^24 - > 524928024576*x^22 + 991718940672*x^20 - 1386996203520*x^18 + > 14159

[sage-support] How to define module multiplication?

2023-09-19 Thread John H Palmieri
The mod 2 cohomology of a simplicial complex has the structure of a module over the mod 2 Steenrod algebra. I would like to be able to do this in Sage: sage: x = (some element in a cohomology ring) sage: a = (some element of SteenrodAlgebra(2)) sage: a * x I have tried telling Sage

[sage-support] Re: How to define module multiplication?

2023-09-20 Thread John H Palmieri
e function field. You > may consult the code there. > > On Wednesday, September 20, 2023 at 6:08:15 PM UTC+9 Kwankyu wrote: > >> Is you element in the cohomology ring an instance of ModuleElement? >> >> On Wednesday, September 20, 2023 at 8:34:05 AM UTC+9 John H Palmie

[sage-support] Canonical divisor help

2023-10-27 Thread John H Palmieri
If anyone here knows anything about canonical divisors and their implementation in Sage, please see https://ask.sagemath.org/question/74034/converting-algebraic-geometry-magmas-code-to-sage/. The setup: sage: P2. = ProjectiveSpace(QQ, 2) sage: f = 2*x^5 - 4*x^3*y*z + x^2*y*z^2 + 2*x*y^3*z + 2*

Re: [sage-support] Re: Canonical divisor help

2023-10-27 Thread John H Palmieri
> adjoint ideal code (or by Baker's theorem in cases where it applies). For > this curve the canonical class is of degree -2, so there are no effective > representatives in this case. > > > > On Friday, 27 October 2023 at 15:14:00 UTC-7 John H Palmieri wrote: > >>

Re: [sage-support] Re: Canonical divisor help

2023-10-28 Thread John H Palmieri
t implement it). I think, the gist of the matter is to >>> convert an element of the function field to a rational function of the >>> coordinate ring of P2. I have no idea how to do this now... Once you >>> construct the morphism, Sage can also compute the image of t

Re: [sage-support] Re: Canonical divisor help

2023-10-28 Thread John H Palmieri
Nils, thanks to you, too, for your responses. On Saturday, October 28, 2023 at 11:16:39 AM UTC-7 Nils Bruin wrote: > On Saturday, 28 October 2023 at 05:39:26 UTC-7 Kwankyu wrote: > > I looked the Magma code in ask.sagemath. There's no problem in computing a > canonical divisor for the curve (thr

[sage-support] Computing the kernel of a map between polynomial algebras

2023-10-29 Thread John H Palmieri
Does anyone have any tips for how to compute the kernel of a map between polynomial algebras, or for checking whether the map is injective? I have families of such maps involving algebras with many generators. I'm working over GF(2), if that matters. In one example I defined the map phi: R -> S

Re: [sage-support] Computing the kernel of a map between polynomial algebras

2023-10-30 Thread John H Palmieri
1 > > one can split the problem into cases > 1) xi1=0 > 2) h21=h20=0 > (but perhaps it's only specific to this particular example) > > > > > On Monday, October 30, 2023 at 6:08:16 PM UTC+9 Dima Pasechnik wrote: > >> > >> > >> > >&

Re: [sage-support] Computing the kernel of a map between polynomial algebras

2023-10-30 Thread John H Palmieri
e way, using > h30 |--> h20*xi1^4 + h21*xi1 + h30 > h31 |--> h21*xi1^8 + h31 > > one can split the problem into cases > 1) xi1=0 > 2) h21=h20=0 > (but perhaps it's only specific to this particular example) > > > > > On Monday, October 30, 2023 at 6:08:16

Re: [sage-support] Computing the kernel of a map between polynomial algebras

2023-10-30 Thread John H Palmieri
On Monday, October 30, 2023 at 12:28:18 PM UTC-7 Dima Pasechnik wrote: On Mon, Oct 30, 2023 at 5:04 PM John H Palmieri wrote: > > Are endomorphisms better to work with? I might be able to extend my map to an endomorphism of the larger ring, if that would make the computation

Re: [sage-support] Computing the kernel of a map between polynomial algebras

2023-10-30 Thread John H Palmieri
-t 4 -e 10 > > On Mon, Oct 30, 2023 at 9:02 PM Dima Pasechnik wrote: > > > > > > > > On Mon, 30 Oct 2023, 20:50 Dima Pasechnik, wrote: > >> > >> > >> > >> On Mon, 30 Oct 2023, 20:25 John H Palmieri, > wrote: >

[sage-support] Re: Integral result differ from Wolfram|Alpha

2023-11-13 Thread John H Palmieri
Isn't log(log(x)^2) = 2 * log(log(x))? Is this your concern, or is it the absolute value? On Monday, November 13, 2023 at 1:32:11 PM UTC-8 Bùi Gia Nghĩa wrote: > Hi! > I have used Sage Cell Server to integrate the function (ln(x)^2 - 1) / (x > * ln(x)). It should resulted in (ln(x)^2) / 2 - |ln

[sage-support] Re: Problems viewing crystals from sage

2023-12-12 Thread John H Palmieri
Could this be related to https://github.com/sagemath/sage/pull/36529? On Tuesday, December 12, 2023 at 3:50:55 PM UTC-8 Andrew wrote: > Playing around with this a little more, I think that this is a bug/timing > issue in sage.misc.latex.py (or in subprocess.run, or a mac oddity since > it only

[sage-support] Re: Problems viewing crystals from sage

2023-12-12 Thread John H Palmieri
to add a comment on the ticket? > > Andrew > > > On Wednesday 13 December 2023 at 12:30:03 pm UTC+11 John H Palmieri wrote: > >> Could this be related to https://github.com/sagemath/sage/pull/36529? >> >> >> On Tuesday, December 12, 2023 at 3:50:55 PM UTC-8 Andrew

[sage-support] Re: sage 10.3.b2 build problem on OSX 12.7.1

2023-12-15 Thread John H Palmieri
In sage-release, Matthias pointed to missing dependencies for editables, fixed in https://github.com/sagemath/sage/pull/36885. Maybe you can just do "make flit_core" (to build the missing dependency) and then "make". On Friday, December 15, 2023 at 10:52:10 AM UTC-8 David Joyner wrote: > Hi: >

Re: [sage-support] Re: sage 10.3.b2 build problem on OSX 12.7.1

2023-12-16 Thread John H Palmieri
#sha256=e5b2a84881cf1f40eb5b0115e1d3a429765e0f43743b79e871352bb8e0c95952> > from https://www.piwheels.org/project/flit-core/ to > local/var/lib/sage/venv-python3.9/var/lib/sage/wheels. Then compiling sage > works and flit_core-3.9.0 is installed. > > - Heiko > > Davi

Re: [sage-support] Errors building Sage 10.3 in Sonoma 14.3.1

2024-03-27 Thread John H Palmieri
I'm having the same problem (I think) with Sage 10.4.beta0 on two different Apple Silicon machines. On Wednesday, March 27, 2024 at 9:58:10 AM UTC-7 Dima Pasechnik wrote: > I've cut out the interesting part of the log. > It's a linker error (IMHO the linking should be done with C++, not > with C

[sage-support] Re: Question re : ./sage -upgrade

2008-10-20 Thread John H Palmieri
On Oct 20, 12:57 am, Simon King <[EMAIL PROTECTED]> wrote: > Dear William, > > On Oct 20, 5:47 am, "William Stein" <[EMAIL PROTECTED]> wrote: > > > Just do sage -upgrade again. > > Should this work already? Wasn't there some posts on Sage devel that > for some reason upgrade to 3.1.3 or 3.1.4 was

[sage-support] Re: Question re : ./sage -upgrade

2008-10-20 Thread John H Palmieri
On Oct 20, 7:50 am, "William Stein" <[EMAIL PROTECTED]> wrote: > > Sorry, my answer above was from an airport via my iphone, Now you're just showing off... John --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscr

[sage-support] why is this so slow?

2008-10-23 Thread John H Palmieri
The setup: sage: var('x y') sage: F = sin(x^2 + y^2) * cos(y) * exp(-0.5*(x^2+y^2)) sage: G=F.derivative(x,x); G -3.00*x^2*e^(-(0.500*(y^2 + x^2)))*cos(y)*sin(y^2 + x^2) - 1.00*e^(-(0.500*(y^2 + x^2)))*cos(y)*sin(y^2 + x^2) - 4.00*x^2*e^

<    1   2   3   4   5   6   >