Re: [sage-support] Re: sage textbook goes GitHub; don't confuse it with the good one ;-)

2021-06-23 Thread john_perry_usm
On Monday, June 21, 2021 at 1:32:07 PM UTC-5 wst...@gmail.com wrote: > On Mon, Jun 21, 2021 at 10:08 AM john_perry_usm wrote: > >> Hello! >> >> > Is this also published on CoCalc? >> >> Not at the present time. I do mean to talk to someone about

[sage-support] Re: sage textbook goes GitHub; don't confuse it with the good one ;-)

2021-06-21 Thread john_perry_usm
eat and I am looking forward to reading it more in detail. > Just two quick questions to get started. > Is this also published on CoCalc? > Why do you prefer the use of Sage Worksheets over Jupyter Notebook? > Best wishes > Ingo > john_perry_usm schrieb am Sonntag, 20. Juni 2021

[sage-support] sage textbook goes GitHub; don't confuse it with the good one ;-)

2021-06-19 Thread john_perry_usm
Greetings Five years ago, a couple of colleagues and I began writing a Sage-based textbook to serve a class we teach at our institution. When we announced it to Sage users, we received an encouraging reception and excellent feedback. If that was meant to discourage us, it failed completely. ;-)

[sage-support] Re: Install of sage on macOS

2020-12-03 Thread john_perry_usm
Have you tried this? sudo xattr -r -d com.apple.quarantine It removes the "quarantine" signal on files. I used it to get Sage running on Catalina. I've had to use this with some other things, too. I learned of it through one of the StackOverflow sites, and it may also be in Sage's document

[sage-support] Re: recovering the last Sage command while it is still running

2020-08-20 Thread john_perry_usm
On Linux (bash) I use the less command, tell it that yes I want to read the binary file, then press >. That takes me to the end of the history, and I can read what's there. However, it doesn't seem to have the most recent commands. -- You received this message because you are subscribed to the

[sage-support] Re: Problems opening Sage binary on MacOS 10.15

2020-08-07 Thread john_perry_usm
Thanks to everyone for the help, BTW. -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To view this discussion on the w

[sage-support] Re: Problems opening Sage binary on MacOS 10.15

2020-08-07 Thread john_perry_usm
On Friday, August 7, 2020 at 12:45:23 PM UTC-5, kcrisman wrote: > > The first problem is the Apple "quarantine". I found the fix to that >> (thanks!) but perhaps a note should be added to the download webpage, just >> as there's a note about MacOS 10.11? I mean this: "On OS X version 10.11 >> (E

[sage-support] Re: Problems opening Sage binary on MacOS 10.15

2020-08-07 Thread john_perry_usm
OK, the problem seems to have been quarantine; as in, I knew I needed to remove the quarantine bit on 8.7, but I didn't realize that I had to remove it on 9.1 as well. At least, I *think* that's what went wrong. Here's what I did: - Removed the old (nonworking) SageMath 9.1. - Re-mounted

[sage-support] Problems opening Sage binary on MacOS 10.15

2020-08-06 Thread john_perry_usm
Hello I recently upgraded to MacOS 10.15. I can get Sage 8.7 to work (more on that in a moment) but Sage 9.1 doesn't. The first problem is the Apple "quarantine". I found the fix to that (thanks!) but perhaps a note should be added to the download webpage, just as there's a note about MacOS 10

[sage-support] Re: Reduction over Ideal

2020-08-05 Thread john_perry_usm
On Wednesday, August 5, 2020 at 6:28:42 AM UTC-5, Santanu wrote: > > Dear all, > Consider ideal I= over the binary field GF(2). > Then (x2).reduce(I) gives x2. I want it to be x0*x1. > In fact , I want this kind of reduction always should give quadratic > polynomial > (I know that this is p

[sage-support] Re: A case of immaculate conception...

2019-03-20 Thread john_perry_usm
To follow up on Simon King's mostly correct answer: 1) The joke I was trying to make is that it's "immaculate" only if it's free of all bugs. 2) In Catholic theology it is not actually "necessary" for Mary to be free of original sin; rather, it is "fitting". john perry On Wednesday, March 20,

[sage-support] Re: A case of immaculate conception...

2019-03-19 Thread john_perry_usm
Apologies for the pedantry, but unless the indeterminates so generated are free of all bugs, then strictly speaking this is not immaculate conception; it is spontaneous generation, or perhaps virginal conception. ;-) john perry On Tuesday, March 19, 2019 at 6:52:19 AM UTC-5, Emmanuel Charpentie

[sage-support] Re: linear transformations (by jason Grout)

2017-09-08 Thread john_perry_usm
This doesn't work for me at all on CoCalc; it gets stuck in an infinite loop because of the matrix A. If I move the definition of A into the body of the loop, it seems to work. Like so: @interact def linear_transformation(theta=slider(0, 2*pi, .1), r=slider(0.1, 2, .1, default=1)): A=matrix

[sage-support] Creating & editing HTML cells

2017-01-30 Thread john_perry_usm
Hello This is about SageMathCloud. Sorry if this is now the wrong place for this. Not too long ago, to edit a Sage HTML cell you could just shift+click on the line above a cell. This opened up a kind of WYSIWYG editor with some helpful buttons & the like. I'm quite sure this used to work in Sa

[sage-support] Re: (William Stein) "my top priority right now is to **make a lot of money**"

2016-08-26 Thread john_perry_usm
On Friday, August 26, 2016 at 6:57:22 AM UTC-5, Nathann Cohen wrote: > > Then accept that I see it as rather misleading when William say that his > objective to make **a lot of money** to "fund Sage development", and that > by that he includes "earn himself money". His message hinted at a kind of

[sage-support] Re: substituting into a Sage/Python function

2016-06-16 Thread john_perry_usm
Actually, your answer stimulated a much better solution (IMHO). def test_subs(f, a, x=x): f(x) = f print f(a) Thanks for the stimulating thought. -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop re

[sage-support] Re: substituting into a Sage/Python function

2016-06-16 Thread john_perry_usm
> I am not sure why you didn't try: > sage: test_subs(f(t),1,t) > 3 > > I know that works! Part of the point is to demonstrate that we can't always count on a parameter having the type we assume. If the answer is simply, "Use functions. Period." then I would pass that advice on. -- You recei

[sage-support] substituting into a Sage/Python function

2016-06-14 Thread john_perry_usm
Hi! When demonstrating stuff in class, I often want the variable to be an argument to a function: def test_subs(f, a, x=x): print f(a) This works if f is a function. If f is not a function, Sage issues a DeprecationWarning (rightly, IMHO). So we could try this: def test_subs(f, a, x=x): p

[sage-support] Re: Speed comparison to Mathematica

2016-05-03 Thread john_perry_usm
On Monday, May 2, 2016 at 1:56:55 PM UTC-5, Ralf Stephan wrote: > > That you can't trace Cython is fortunately not true. > I do it from time to time using gdb when I trace pynac code. > Can you trace Cython *in Sage*? If so, I was genuinely unaware of that (or forgot). -- You received this mess

[sage-support] Re: Speed comparison to Mathematica

2016-05-01 Thread john_perry_usm
> If you want speed to study it, implementing it yourself in Sage is (IMHO) > a good idea because Sage has fairly good debugging facilities like a trace > function, and you can compile parts of it via Cython. > Oops. Speaking of wrong impressions, I should qualify this statement: last I check

[sage-support] Re: Speed comparison to Mathematica

2016-05-01 Thread john_perry_usm
On Friday, April 29, 2016 at 1:07:31 PM UTC-5, saad khalid wrote: > > However, what are other things? And do you think it would actually be > worthwhile? It's an algorhythm for calculating groebner bases. I don't know > if that matter. I just didn't know if the language would give any sizable >

[sage-support] Re: cf_gmp.h fails on Cython file in sage-beta

2015-06-08 Thread john_perry_usm
Whoops! I have to walk that back: I was attaching the wrong file! (Ended up in the wrong directory, tab-completion did the rest.) The "include" command *does* still work. Sorry for the false alarm, john perry On Monday, June 8, 2015 at 3:27:46 PM UTC-5, john_perry_usm wrote: > &

[sage-support] Re: cf_gmp.h fails on Cython file in sage-beta

2015-06-08 Thread john_perry_usm
Hello Volker (& others with interest) I get the same error in Sage 6.7, but this time adding the recommended include directive to the Cython file doesn't work. Error message below, but I note that a workaround (however temporary) is to modify the offending file, si_gmp.h, so that # include

Re: [sage-support] symmetric functions, unexpanded

2015-01-29 Thread john_perry_usm
Gentlemen! I only returned to this today, but I get it now. Thanks! I'm not sure whom to mark as "best answer", though; both seem equally good. john perry On Saturday, January 24, 2015 at 2:54:22 PM UTC-6, Andrew Ohana wrote: > > > > On Fri, Jan 23, 2015 at 8:13

[sage-support] Re: symmetric functions, unexpanded

2015-01-24 Thread john_perry_usm
> You can do e[3,2,1,1].expand(3) to get it expanded in x0, x1, and x2. > (more generally, x[i1,i2,...,im].expand(k) will give the expansion in > x0,x1,...,x(k-1). > I *don't* want it in the x's, though; I want it the e's. I wrote e1=x1+x2+x3 merely to illustrate what I meant by e1. Look ba

Re: [sage-support] symmetric functions, unexpanded

2015-01-23 Thread john_perry_usm
> Try the following: > > sage: e = SymmetricFunctions(QQ).e() # construct the symmetric functions > with the e basis > sage: m = SymmetricFunctions(QQ).m() # ditto but with the monomial basis > sage: m421 = m[4, 2, 1] # create the monomial you care about > sage: e(m421) # coerce the monomial in

[sage-support] symmetric functions, unexpanded

2015-01-23 Thread john_perry_usm
Hello! In the manual ( www.sagemath.org/doc/reference/combinat/sage/combinat/sf/monomial.html) there is a nice example of enumerating and expanding symmetric functions in terms of x's. Is there a way to write the monomial symmetric functions in terms of the elementary symmetric polynomials, *w

[sage-support] Re: 3d plot without axes

2015-01-15 Thread john_perry_usm
Duh. It's the 'frame' option. Hadn't seen that before; sorry for the noise. john perry -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@

[sage-support] Re: 3d plot without axes / bounding box

2015-01-15 Thread john_perry_usm
Actually, maybe it's the bounding box I'm seeing. Either way, I want just the object itself (e.g., a sphere), not any lines or boxes added by Sage or the viewers. john perry -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from

[sage-support] 3d plot without axes

2015-01-15 Thread john_perry_usm
Hello! In 2d, it's easy to create a plot without axes: either show(p,axes=False) or p.axes(False). In 3d, this fails silently with the show command, while the dot-command is rejected outright. I would like to produce 3d plots without axes. Is there a way to suppress the generation of axes in

[sage-support] Re: #include fails in recent sage beta when attaching Cython file

2014-12-23 Thread john_perry_usm
14 6:41:09 PM UTC+3, john_perry_usm wrote: > > Hello > > This was a little unwelcome: > sage: %attach dynamic_algorithm_with_skeleton.pyx > Compiling ./dynamic_algorithm_with_skeleton.pyx... > ...deleted a lot of stuff you don't want to see... > > In file included

[sage-support] #include fails in recent sage beta when attaching Cython file

2014-12-23 Thread john_perry_usm
Hello This was a little unwelcome: sage: %attach dynamic_algorithm_with_skeleton.pyx Compiling ./dynamic_algorithm_with_skeleton.pyx... ...deleted a lot of stuff you don't want to see... In file included from /Applications/sage-6.5.beta1/local/include/singular/structs.h:15:0, fr

[sage-support] cf_gmp.h fails on Cython file in sage-beta

2014-12-23 Thread john_perry_usm
Hello I tried to attach a Cython file that worked in previous versions of Sage (incl Sage beta 6.4.1) to Sage beta 6.5.1, but it fails: sage: %attach dynamic_algorithm_with_skeleton.pyx Compiling ./dynamic_algorithm_with_skeleton.pyx... Error compiling cython file: Error compiling ./dynamic_algor

[sage-support] Re: How to check Mixed Integer Linear Program has no solution

2014-12-15 Thread john_perry_usm
Hello Is there anyway to check is a linear program which has been implemented by > MixedIntegerLinearprogram > has a solution or not. > Try creating & solving your program. If it has no solution, Sage will throw an exception. The exception will contain a message with some information, though

[sage-support] Re: Formal methods are not human one

2014-10-29 Thread john_perry_usm
> > I'm looking for formal outputs that are not calculated as a human can do > (this is for a free french "book"). Do you know such kind of examples ? Like Simon, I'm no sure if this is what you mean, but Bruno Buchberger was for a while working on a proof-generating system called *Theorema,*

[sage-support] gfan, reduced bases, and weight vectors

2014-10-27 Thread john_perry_usm
Hello! Try this sequence of commands: sage: R = PolynomialRing(GF(32003), 'x', 4) > sage: I = sage.rings.ideal.Cyclic(R,4).homogenize() > sage: GF = I.groebner_fan() > sage: GBs = GF.reduced_groebner_bases() > sage: [g.lm() for g in GBs[0]] > [x2^2*x3^6, x2^3*x3^2, x1*x3^4, x2^2*x3^4, x1*x2*

[sage-support] rationalizing fractions

2014-06-10 Thread john_perry_usm
Suppose I have 2/sqrt(5). Is there a straightforward way of rationalizing it? regards john perry -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+u

[sage-support] missing limits.h on OSX

2014-06-10 Thread john_perry_usm
I didn't find this answered clearly when searching other people's questions on this topic yesterday, but: I encountered this yesterday, and in my case (OSX Mavericks, Xcode 5.1.1) the problem is fixed by building from source, rather than using a binary. regards john perry -- You received this

[sage-support] Re: add_constraint becomes slow in presence of many constraints

2014-04-21 Thread john_perry_usm
> > And I guess it does not like to never know how many constraints there will > be, and I fear that it does a lot of useless copies when you add a > constraint (perhaps it copies the whole matrix just to add one line ?). I think this is right. Allocating & copying such a huge matrix repeatedl

[sage-support] Re: system of nonlinear equations

2014-03-18 Thread john_perry_usm
It looks as if there are infinitely many solutions. If you clear the denominators, you get polynomials, with which you can compute a lexicographical Gröbner basis of 15 elements (given below). The dimension of the corresponding ideal is 4, which is admittedly the dimension of the set of complex

[sage-support] Re: groebner bases of polynomials with complex coefficients

2014-02-17 Thread john_perry_usm
The actual computation I had in mind requires a somewhat more convoluted: sage: R = QQ[sqrt(-1)] sage: RI = R.gens()[0] # necessary, since Sage's I is symbolic, and causes issues sage: S. = PolynomialRing(R,order='lex') sage: SI = S.ideal((1+RI)*x+y,x+(1-RI)*y-(1-RI)) sage: SI.groebner_basis() [x

[sage-support] Re: groebner bases of polynomials with complex coefficients

2014-02-17 Thread john_perry_usm
ACK! Make sure I=sqrt(-1) first! john perry On Monday, February 17, 2014 10:37:30 AM UTC-6, sahi...@gmail.com wrote: > > Hi: > > I am trying to obtain solution of a system of polynomial equations with > complex coefficients without success. For example, when I try > > S. = PolynomialRing(CC,ord

[sage-support] Re: groebner bases of polynomials with complex coefficients

2014-02-17 Thread john_perry_usm
Instead of CC, try using QQ[i]. That works for me, giving the basis [x + 4/25, y - 24/25] john perry On Monday, February 17, 2014 10:37:30 AM UTC-6, sahi...@gmail.com wrote: > > Hi: > > I am trying to obtain solution of a system of polynomial equations with > complex coefficients without su

[sage-support] Re: MixedIntegerLinearProgram: warm restart possible?

2014-02-13 Thread john_perry_usm
> my posts about the dual simplex method and warm restart here are met > with deafening silnce... Actually, I'm very interested in it, and that's one of the reasons I was suggesting this. Although I believe its possible to run dual simplex in GPLK with the current implementation (it's a solv

[sage-support] Re: MixedIntegerLinearProgram: warm restart possible?

2014-02-12 Thread john_perry_usm
be appealing -- what do you guys think? john perry On Monday, February 10, 2014 4:53:38 PM UTC-6, Dima Pasechnik wrote: > > On 2014-02-10, Erik Quaeghebeur > > wrote: > > op 09-02-14 19:12, john_perry_usm schreef: > >> > >> Actually, I was thinking of d

Re: [sage-support] Re: MixedIntegerLinearProgram: warm restart possible?

2014-02-09 Thread john_perry_usm
On Sunday, February 9, 2014 7:15:02 AM UTC-6, Nathann Cohen wrote: > > > For my purpose of learning Cython, this approach was more useful and > certainly faster. > > > > As for this works usefulness for Sage: the numerical module is far more > than just a wrapper for GLPK (also, but not limited t

[sage-support] Re: MixedIntegerLinearProgram: warm restart possible?

2014-01-17 Thread john_perry_usm
> Then (by GLPK default), presolving is turned off, and then a warm start > will be performed when the basis still present in the solver object is > still valid. So this should work when only changing the objective > function. Otherwise (for constraint add/remove or for bound change), the > "

[sage-support] Re: MixedIntegerLinearProgram: warm restart possible?

2014-01-16 Thread john_perry_usm
On Thursday, January 16, 2014 9:24:05 AM UTC-6, Erik Quaeghebeur wrote: > Hi, > > > Does MixedIntegerLinearProgram allow for warm restarts, meaning that > after solving a first time one changes the objective and resolve, > starting from the feasible solution of the previous solver run? > It's

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

2013-12-12 Thread john_perry_usm
Does the zorder option do what you want? On Wednesday, December 11, 2013 4:20:51 PM UTC-6, 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 w

[sage-support] Re: notebook refresh problem

2013-11-12 Thread john_perry_usm
The only time I remember seeing something similar to this was when the Javascript interpreter broke on my web browser (not Safari -- I use some experimental browsers from time to time, like Midori, Rekonq, etc.). What fixed it for me was restarting the web browser. I would suggest that, if noth

[sage-support] Re: how to keep up to a certain degree of a multivariate polynomial?

2013-06-04 Thread john_perry_usm
Here's a different approach, which is more efficient, but poses its own challenges: sage: I = R.ideal(x^2) sage: Q = R.quo(I) sage: f = Q(x^3*y^3 + x^2*y^4 + x*y + x + y + 1) sage: f xbar*ybar + xbar + ybar + 1 So, the variables look different, and with reason. But: sage: %timeit g*

[sage-support] Re: Adding constraints to MixedIntegerLinearProgram

2013-03-26 Thread john_perry_usm
Dima & Nathann What he's facing is an annoyance. Would it be feasible (ha ha) to rewrite the creation of constraints so that variables are automatically created in the LP if they're not there? That is, rather than looking for a workaround for the user, should we see this as an opportunity for e

[sage-support] Unable to connect to server from external machines

2013-03-06 Thread john_perry_usm
Hello On several recent flavors of Linux, I am unable to get Sage's server to talk to clients on other machines. For instance, sage: > notebook(accounts=True,port=8080,interface='atlas.st.usm.edu',secure=True) > starts a server successfully, and I can bring up the notebook interface using a w

[sage-support] Re: "Don't know a PDF representation for" alpha in graphics?

2013-02-09 Thread john_perry_usm
I have uploaded a patch to the trac, ticket 13732, which fixes this for all the plot commands that seem to accept alpha. (To find them, I performed a grep alpha sage/plot/*py and looked at those files.) The doctests in sage/plot pass for me, though I had to make some changes to older doctests be

[sage-support] Re: Adomian polynomials

2013-02-07 Thread john_perry_usm
Out of curiosity, how is F defined? I don't know if this is the cause, but when I try something similar, I get a problem with y[n]: 'sage.symbolic.expression.Expression' does not support indexing. Since it's a different error, you're probably encountering something else. john perry On Thursda

[sage-support] Re: levels of implicit_multiplication

2013-01-16 Thread john_perry_usm
PS If anyone in the future has the same question & comes across this: this can be fixed easily with sage: from sage.misc.preparser import implicit_mul -- You received this message because you are subscribed to the Google Groups "sage-support" group. To post to this group, send email to sage-s

[sage-support] Re: levels of implicit_multiplication

2013-01-16 Thread john_perry_usm
Found the issue: implicit_mul is not visible in iPython. Is that correct documentation, then? Kind of embarrassing that after 5 years using Sage, I still don't know... john perry On Wednesday, January 16, 2013 9:41:59 AM UTC-6, john_perry_usm wrote: > > Help! > > The

[sage-support] levels of implicit_multiplication

2013-01-16 Thread john_perry_usm
Help! The documentation for implicit_multiplication states, INPUT: > >* "level" - an integer (default: None); see "implicit_mul()" for a > list > Being the curious sort, I wanted to see the list. These are the results: sage: implicit_mul? > Object `implicit_mul

[sage-support] Re: why am i forced to open the viewer on the notebook?

2012-12-20 Thread john_perry_usm
Jason On Wednesday, December 19, 2012 8:50:45 PM UTC-6, Jason Grout wrote: > > Does this message not appear when you use the open_viewer option? > Yes, but did you read it? The only clear interpretation is that the open_viewer option has been dropped completely, not that a value of admin_login

[sage-support] Re: why am i forced to open the viewer on the notebook?

2012-12-19 Thread john_perry_usm
On Wednesday, December 19, 2012 12:08:40 PM UTC-6, P Purkayastha wrote: > > It changed and got merged with another option - use > "automatic_login=False" instead. > Thanks. Do we not have a deprecation policy? Sage 5.0 from May of this year allows the option open_viewer with no warning whatsoe

[sage-support] why am i forced to open the viewer on the notebook?

2012-12-19 Thread john_perry_usm
Hello Why does the notebook no longer allow the open_viewer=False option? It's really annoying to have another web browser pop up, when I already have one open. (Yes, I could reconfigure my desktop if I really had to, but think of all the poor chumps out there who can't, or won't.) john perry

Re: [sage-support] Re: Solve system of non linear equations

2012-12-08 Thread john_perry_usm
On Saturday, December 8, 2012 11:07:31 AM UTC-6, Santanu wrote: > > Thank you. But when I try to solve > f1=x1 + x2 + x4 + x10 + x31 + x43 + x56 , > f2=x2 + x3 + x5 + x11 + x32 +x44 + x57, > > it becomes very slow. Is there any faster approach like > F4 algorithm available in Sage? > F4 is not

[sage-support] Re: Sage VM: Googe Chrome should NOT run in kiosk mode

2012-12-03 Thread john_perry_usm
On Monday, December 3, 2012 1:24:38 PM UTC-6, Volker Braun wrote: > > Really I see the browser running inside the VM as a crutch for those that > can't use their host browser because of a misconfigured firewall. Pshaw. For some reason I was under the impression that this wasn't working anymore

[sage-support] Sage VM: Googe Chrome should NOT run in kiosk mode

2012-12-03 Thread john_perry_usm
Hello Sage VM runs Chrome in kiosk mode, and refuses to get out of kiosk mode (I can press F11 to my heart's content; it doesn't change anything), therefore won't allow any changes to its settings. The settings certainly need to change for non-trivial work, as when I'd like to save a worksheet

[sage-support] Re: "Don't know a PDF representation for" alpha in graphics?

2012-11-26 Thread john_perry_usm
Dima + Jason The "easy" fix I have in mind is the following. In the file local/lib/python2.7/site-packages/matplotlib/backends/backend_pdf.py, add after line 16 from sage.rings.real_mpfr import RealLiteral and then, in the function pdfRepr, change the line elif isinstance(obj, float): to

[sage-support] Re: "Don't know a PDF representation for" alpha in graphics?

2012-11-20 Thread john_perry_usm
Okay, does anyone know how I change files in the library in such a way that mercurial actually notices? I can modify the matplotlib backend for PDF's so that this works, but those files don't show up in the source directory, so hg doesn't pick up on the changes. How do I supply a patch for this

[sage-support] Re: "Don't know a PDF representation for" alpha in graphics?

2012-11-20 Thread john_perry_usm
Jason On Thursday, November 15, 2012 12:01:02 PM UTC-6, Jason Grout wrote: > > Can you get a small test case for us to play with? > sage: p = disk((0,0),5,(0,pi/4),color='red') sage: p += disk((0,0),5,(pi/4,pi/2),color='red',alpha=0.5) sage: p.save("test.pdf") This fails for me. If I change th

[sage-support] Re: "Don't know a PDF representation for" alpha in graphics?

2012-11-20 Thread john_perry_usm
Hello Finally got round to it. On Thursday, November 15, 2012 11:44:36 AM UTC-6, Volker Braun wrote: > > I think I saw that before. Maybe converting coordinates to RDF works? > Please open a ticket if you can isolate a test case. RDF doesn't work, either. float does. I'm trying to write up a

[sage-support] Re: "Don't know a PDF representation for" alpha in graphics?

2012-11-15 Thread john_perry_usm
I will try that, thanks. I'll also open a ticket in coming days. 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 this group, send email to sage-suppor

[sage-support] "Don't know a PDF representation for" alpha in graphics?

2012-11-15 Thread john_perry_usm
Hello I have created a nice graphic with some alpha. I try to save it. As a Sage object, I have no problem. The EPS representation doesn't preserve the alpha. The PNG does, but I'd prefer vector graphics. The PDF representation chokes on it. I get the error, TypeError: Don't know a PDF represe

[sage-support] Re: Linear programming in sage

2012-08-29 Thread john_perry_usm
Argh, I just realized that this statement: Otherwise, the documentation does actually suggest a fix... ...is true only if p were a GLPK_backend instance. It's not true for an instance of MixedIntegerLinearProgram. Kindly disregard the request about checking the documentation. I will wonder alo

[sage-support] Re: Linear programming in sage

2012-08-29 Thread john_perry_usm
Hello If your version of sage is older than 5.0, then I'm afraid you need to upgrade. :-( Otherwise, the documentation does actually suggest a fix, though since I wrote the documentation based on my experience of the error, it might not be clear. After reading the rest of this reply, please typ

[sage-support] Re: Built documents can be found in...

2012-05-29 Thread john_perry_usm
On Tuesday, May 29, 2012 5:51:24 PM UTC-5, John H Palmieri wrote: > > Probably because the top level of your file system is named "atlas", and > Atlas stands somewhere in Africa with the world on his shoulders. Sage > builds its documentation partially based on aspects of Greek mythology. > LOL

[sage-support] Built documents can be found in...

2012-05-29 Thread john_perry_usm
Hello When I finished building Sage on my Ubuntu 10.0something, I got the message, Build finished. The built documents can be found in /atlas/sage-5.0/devel/sage/doc/output/html/tr/a_tour_of_sage I went to that page, and the first thing I saw was, Hesap Makinesi Olarak Sage Funny. Ho

[sage-support] Re: How do I down Sage?

2012-05-20 Thread john_perry_usm
On Saturday, May 19, 2012 4:51:56 PM UTC-5, Kermit Rose wrote: > > I came to the sage web page in order to download Sage. I expected to see > a link labeled "download", and be done with it. Are you talking about the webpage, www.sagemath.org ? When I go there, I see a prominent link labeled, "

[sage-support] Re: Making a copy of a MixedIntegerLinearProgram

2012-05-15 Thread john_perry_usm
On Monday, May 14, 2012 7:32:25 PM UTC-5, Emil wrote: > > lp = MixedIntegerLinearProgram(maximization=True) > x = lp.new_variable() > > Then I do: > > nlp = copy(lp) > x = nlp.new_variable() > > The variable 'x' now seems to contain different variables. So I cannot > add any constraints that

[sage-support] Re: "divides" method for generic dense polynomials?

2012-03-12 Thread john_perry_usm
I checked 4.6.2 (I still have a copy!) b/c I was wondering if the massive patch we recently did might have affected it. Unfortunately, it doesn't work there, either. john On Mar 12, 2:18 pm, Simon King wrote: > Hi John, > > On 12 Mrz., 18:39, john_perry_usm wrote: > > >

[sage-support] Re: "divides" method for generic dense polynomials?

2012-03-12 Thread john_perry_usm
It was certainly broken as of 4.7.2, which is not quite far enough back to test. john perry -- 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 http:/

[sage-support] Re: Coefficients of multivariate polynomials along with degrees

2012-02-20 Thread john_perry_usm
On Feb 19, 6:38 am, ObsessiveMathsFreak wrote: > Basically, I want to restrict the variables of a multivariate > polynomial to a certain set of symbols. > > B.variables() should return > [x,y] > instead of > [a,x,y] > > How can this be done. Maybe I misunderstand you, but this approach works fine

[sage-support] Re: discard and quit

2012-01-25 Thread john_perry_usm
> > On Wed, Jan 25, 2012 at 10:45 AM, Jason Grout > > > IIRC, if you have been editing a cell, but have not yet evaluated it, or > > > if > > > you have edited a text cell but not yet saved it, then Discard will throw > > > away those changes, and Save will save them.  Note that if you evaluate a

[sage-support] discard and quit

2012-01-25 Thread john_perry_usm
Hi In the notebook, what is the difference between "Discard & quit" and "Save & quit"? regards john perry -- 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 g

[sage-support] Re: sagenb down

2011-12-05 Thread john_perry_usm
On Dec 5, 11:54 am, William Stein wrote: > On Dec 5, 2011 9:47 AM, "john_perry_usm" wrote: > > > sagenb doesn't seem to be working. A student of mine is about to > > defenestrate herself (her words) because it's not working. > > ... > > I have

[sage-support] sagenb down

2011-12-05 Thread john_perry_usm
Hi sagenb doesn't seem to be working. A student of mine is about to defenestrate herself (her words) because it's not working. If this is expected downtime; my apologies -- she wasn't supposed to be using sagenb in the first place, but that's life. :-) regards john perry -- To post to this gro

[sage-support] memory leak when copying Coin linear program

2011-11-08 Thread john_perry_usm
The following code quickly consumes all available memory on the machine: sage: P = MixedIntegerLinearProgram(solver="Coin") sage: P.add_constraint(P[0]+P[1]==1) sage: while True: : P = copy(P) : w = solve(P) A ticket has been opened, #12004. If the solver is GLPK, however, this issue

[sage-support] Re: Solving systems of inequalities - what is possible?

2011-10-21 Thread john_perry_usm
On Oct 21, 10:17 am, Urs Hackstein wrote: > I wonder what kind of systems of inequalities can be solved using sage > and whether there are other routines than solve? You can solve linear programs using several different packages, such as cvxopt and MixedIntegerLinearProgram. I don't know enough

[sage-support] cython & cvxopt

2011-10-14 Thread john_perry_usm
hi I can't seem to get away with this: from cvxopt.base import matrix as opt_matrix cdef opt_matrix i_rock I can't cimport it, either; there is no cvxopt.pxd. (a) I think I understand why; cvxopt is a Python extension. Is that right? (b) Is there any way to get cython to recognize this

[sage-support] Re: reducing ideal wrt another ideal

2011-09-28 Thread john_perry_usm
Try this: sage: I3_red_I2 = R.ideal([p.reduce(I2gb) for p in I3gb]) regards john perry On Sep 28, 12:24 am, Vinay Wagh wrote: > Suppose I have two ideals I & J in k[X_1,\cdots,x_n], where k is a > field. How do I reduce an ideal I wrt ideal J. > > e.g. Singular provides me a command > > singula

[sage-support] Re: how does one do this in Cython?

2011-09-01 Thread john_perry_usm
On Sep 1, 4:50 am, Martin Albrecht wrote: > Funny you should ask because this was just fixed at SD32 where we ran > into each other: > > http://trac.sagemath.org/sage_trac/ticket/11680 I actually read part of that ticket when I was there, though a lot more took place after that. > once it is mer

[sage-support] Re: how does one do this in Cython?

2011-08-31 Thread john_perry_usm
gt; Hi John, > > see attachment. You'll have to change the cinclude path for it to work on your > machine. > > On Monday 25 July 2011, john_perry_usm wrote: > > > On Jul 25, 6:46 am, Martin Albrecht > > > wrote: > > > You'll need to compile your ex

[sage-support] Re: Inverse of a polynomial

2011-08-25 Thread john_perry_usm
Should this be a feature of an element of a finite field? As you point out, it doesn't seem too hard to implement, and would seem to be an important feature. john perry On Aug 25, 12:32 pm, Simon King wrote: > Hi Santanu! > > On 25 Aug., 18:03, Santanu Sarkar > wrote: > > > How to calculate inv

[sage-support] Re: how to import locally defined extension types?

2011-08-01 Thread john_perry_usm
Simon's solution looks like it would solve what I wanted at the time, but right now I think I will return to one file, debug everything (since things are still in a state of flux) then separate it into several files & use a setup.py. Thanks for the suggestions and insight! john -- To post to th

[sage-support] how to import locally defined extension types?

2011-07-29 Thread john_perry_usm
Hi I have a file type1.pyx that defines an extension type Type1, and a file type2.pyx that defines an extension type Type2. Some attributes of Type2 are of type Type1. If I have the types in one file, everything runs fine; I'd like to separate them into different files. I placed these files in a

[sage-support] Re: how does one do this in Cython?

2011-07-25 Thread john_perry_usm
On Jul 25, 6:46 am, Martin Albrecht wrote: > You'll need to compile your extension module (i.e. your pyx file) with C++ > instead of C. See > > http://sagemath.org/doc/developer/coding_in_cython.html#special-pragmas >From that link, I understood that I need to prepend # clang: C++ to the f

[sage-support] Re: how does one do this in Cython?

2011-07-25 Thread john_perry_usm
/include/templates/ftmpl_array.h:43: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘<’ token - then more of other types. john On Jul 24, 10:34 pm, William Stein wrote: > On Sunday, July 24, 2011, john_perry_usm wrote: > > What about not-th

[sage-support] Re: how does one do this in Cython?

2011-07-24 Thread john_perry_usm
.pyx:8:6: 'Rational' is not a type identifier I get the same error with from sage.rings.rational import Rational cpdef Rational add(a, b): cdef Rational c c = a + b return c john On Jul 24, 7:53 pm, William Stein wrote: > On Sun, Jul 24, 2011 at 5:47 PM, j

[sage-support] how does one do this in Cython?

2011-07-24 Thread john_perry_usm
I want to declare c to be of the type defined by the class Rational. I'm sure this is easy, but what I want to do is this: from sage.rings.rational import Rational cdef Rational c but that doesn't work. Neither does cimport (which I found in a file somewhere, albeit commented out, and now

[sage-support] Re: Problem to find the common positive solutions of two polynomials

2011-06-23 Thread john_perry_usm
Sorry -- I meant, they don't seem to have common intersections in the *positive* quadrant. On Jun 23, 12:44 pm, john_perry_usm wrote: > Are you sure there is a solution? I've plotted a few of them, and they > don't seem to have common intersections. I didn't check them

[sage-support] Re: Problem to find the common positive solutions of two polynomials

2011-06-23 Thread john_perry_usm
Are you sure there is a solution? I've plotted a few of them, and they don't seem to have common intersections. I didn't check them all, though. regards john perry -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+un

[sage-support] Re: Ideal and Groebner Basis

2011-01-28 Thread john_perry_usm
Of course, with 100 polynomials, any computer algebra system might cry uncle when trying to compute the Groebner basis... depends on the system. regards john perry On Jan 28, 8:34 am, Simon King wrote: > Hi, > > On 28 Jan., 15:19, Santanu Sarkar > wrote: > > > Suppose in an array A[100], I have

[sage-support] Re: Fourier–Motzkin elimination

2011-01-24 Thread john_perry_usm
sage: search_src('motzkin') sage: Looks to me like it isn't, but that may not be the best approach. :-) I could use this at some point myself, so if knowledgeable people can confirm that it isn't, then perhaps a ticket should be created. regards john perry On Jan 24, 12:47 am, tvn wrote: >

  1   2   >