[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

[sage-support] Re: installing optional packages

2015-05-19 Thread John H Palmieri
On Tuesday, May 19, 2015 at 2:14:59 AM UTC-7, Emmanuel Charpentier wrote: Something is definitely out of joint in packages management. Thanks to the current migration of sagemath.org, I rebuilt from scratch (= from the tarball) sage 6.7 on a slow machine. The resultant system :

Re: [sage-support] Re: Make doc error

2015-06-03 Thread John H Palmieri
Earlier in the docbuilding, I see this: [combinat ] building [inventory]: targets for 2 source files that are out of date [combinat ] updating environment: 0 added, 2 changed, 0 removed [combinat ] reading sources... [ 50%] sage/combinat/cluster_algebra_quiver/cluster_seed [combinat ] Encoding

[sage-support] Re: How to get Sage back from a colon?

2015-06-09 Thread John H Palmieri
Control-C will cancel the current command and return you to the sage: prompt. John On Tuesday, June 9, 2015 at 9:58:46 AM UTC-7, Craig E Larson wrote: Sometimes I forget a parenthesis, etc, and I get a colon input prompt. Double-enter won't escape the colon. Correcting the syntax also

Re: [sage-support] confirm sagenb live doc behavior

2015-06-29 Thread John H Palmieri
On my Mac using Safari or Firefox, if I run sage and then start the notebook, live cells in the documentation work just fine. (On the other hand, if I go to sagenb.org, log in, click Help and open up a live reference manual page, I get a green block cursor after I evaluate a cell, but it never

[sage-support] Re: Building SageMath 6.8 from source on 32-bit Ubuntu 15.04

2015-07-27 Thread John H Palmieri
Did you try this: Note: incremental documentation builds sometimes cause spurious error messages. To be certain that these are real errors, run make doc-clean first and try again. John On Monday, July 27, 2015 at 2:57:08 AM UTC-7, Brenton wrote: Hi, I've been downloading the latest

[sage-support] Re: building sage from source on OSX 10.11 El Capitan

2015-10-22 Thread John H Palmieri
On Thursday, October 22, 2015 at 12:57:08 PM UTC-7, Karl Rubin wrote: > > I upgraded to El Capitan OSX 10.11 on my iMac before I knew that this > would kill my sage installation. I see that there was a ticket about this > (#19370) that is now closed/fixed. How can I get the corrected source

[sage-support] Re: How can one recompile a standard package (without rebuilding the whole thing) ?

2015-10-28 Thread John H Palmieri
On Wednesday, October 28, 2015 at 10:19:51 AM UTC-7, Emmanuel Charpentier wrote: > > Case in point : Trac#19469 . This > ticket will solve an annoying quirk un the Ipython notebook. > > I tested it successfully on one installation, by recompiling the

[sage-support] Re: How can one recompile a standard package (without rebuilding the whole thing) ?

2015-10-28 Thread John H Palmieri
o that it knows to build the new one instead of the old one. John > > Thanks, John ! > > Le mercredi 28 octobre 2015 18:32:06 UTC+1, John H Palmieri a écrit : >> >> >> >> On Wednesday, October 28, 2015 at 10:19:51 AM UTC-7, Emmanuel Charpentier >> w

[sage-support] Re: How to save the output of view locally (and not open the output)?

2015-11-07 Thread John H Palmieri
On Saturday, November 7, 2015 at 1:34:49 PM UTC-8, slabbe wrote: > > This opens a pdf: > > sage: g = graphs.PetersenGraph() > sage: s = latex(g) > sage: view(s, tightpage=True) > > But is there a way to just save that pdf file locally and not open it? > Until you quite the Sage session, the

Re: [sage-support] TAB completion

2015-11-05 Thread John H Palmieri
On Thursday, November 5, 2015 at 3:40:01 PM UTC-8, William wrote: > > On Thu, Nov 5, 2015 at 3:29 PM, Justin C. Walker > wrote: > > Hi, > > > > In the distant past, I knew how to configure Sage to handle TAB > completion this way: > > - one TAB: complete if unique

Re: [sage-support] TAB completion

2015-11-05 Thread John H Palmieri
On Thursday, November 5, 2015 at 5:03:27 PM UTC-8, William wrote: > > On Thu, Nov 5, 2015 at 4:02 PM, John H Palmieri <jhpalm...@gmail.com > > wrote: > > > > > > On Thursday, November 5, 2015 at 3:40:01 PM UTC-8, William wrote: > >> > >> On

[sage-support] Re: Graph.clique_complex()

2015-10-02 Thread John H Palmieri
On Friday, October 2, 2015 at 8:50:12 PM UTC-7, Selva Raja S wrote: > > > clique_complex() does not shows facets > > > > *for example*sage: > g=Graph({1:[2,5,6,3,4],2:[7,3,5,4],3:[8,4,5],4:[9,5],5:[10]}) > sage: g.clique_complex() > Simplicial complex with 10 vertices and 6 facets > You have

[sage-support] Re: view(g) where g is graph: does not respect colors

2015-12-01 Thread John H Palmieri
On Tuesday, December 1, 2015 at 9:40:18 AM UTC-8, Pedro Cruz wrote: > > The following code (sage 6.9): > > sage: g = graphs.PetersenGraph() > sage: g.set_latex_options(vertex_color='green') > sage: view(g) > > > produces a black-and-white graph. > Can you use "g.plot()" instead? If so, "g.plot?"

[sage-support] Re: how to Choose Applications, then select "All Applications"

2016-04-12 Thread John H Palmieri
In your first message (with the old version of Sage) you had: students-MacBook-Pro:~ student$ /Users/student/sage/sage/sage It should look like this. In your more recent message (with a good version of Sage), though, you had: students-MacBook-Pro:~ student$

[sage-support] Re: how to Choose Applications, then select "All Applications"

2016-04-12 Thread John H Palmieri
On Tuesday, April 12, 2016 at 4:00:51 PM UTC-7, Dima Pasechnik wrote: > > > > On Tuesday, April 12, 2016 at 11:51:15 PM UTC+1, Dima Pasechnik wrote: >> >> >> >> On Tuesday, April 12, 2016 at 11:08:54 PM UTC+1, ana...@g.uky.edu wrote: >>> >>> Sorry, I do not quite understand what you wrote. >>> I

[sage-support] Re: about vector subspace

2016-03-26 Thread John H Palmieri
On Saturday, March 26, 2016 at 7:13:57 AM UTC-7, Александр Шевченко wrote: > > Hello. > > I have next problem, when I write next strings. > > V = VectorSpace(F,n)S = V.subspace(basis) > > Does "S = V.subspace_with_basis(basis)" do what you want? -- John -- You received this message because

[sage-support] Re: Issue build sagemath 7.2 from source.

2016-05-17 Thread John H Palmieri
On Tuesday, May 17, 2016 at 9:25:23 AM UTC-7, Pietro Liguori wrote: > > > gcc version is 4.9.3 ! > That is the version Sage is trying to build, but it needs some version to get started. Early in the log file, it says "gcc version 3.4.3" This is the version installed on your machine, and it

[sage-support] How do I define a morphism/function/map of sets?

2016-04-18 Thread John H Palmieri
How do I define a function between finite sets within the category framework? Should the following work? sage: S = Set([1,2,3]) sage: T = Set([4,5,6,7]) sage: f = S.hom(lambda x: 3+x, T) sage: f Generic morphism: From: {1, 2, 3} To: {4, 5, 6, 7} sage: f(2)

Re: [sage-support] How do I define a morphism/function/map of sets?

2016-04-18 Thread John H Palmieri
ncent Delecroix wrote: > > It should... but Sage does not recognize that 2 belongs to S. Note that > > the following works > > > > sage: S = FiniteEnumeratedSet([1,2,3]) > > sage: T = FiniteEnumeratedSet([4,5,6,7]) > > sage: f = S.hom(lambda x: 3+x, T)

Re: [sage-support] How do I build Sage 7.2 on ubuntu 16.04? Build fails in atlas-3.10.2.p2

2016-07-21 Thread John H Palmieri
On Thursday, July 21, 2016 at 4:38:38 AM UTC-7, Paul Leopardi wrote: > > On Thursday, 21 July 2016 08:57:55 UTC+10, Paul Leopardi wrote: >> >> >> The build now gets past the point where it failed previously. >> >> > The build now fails in dochtml with a problem that looks like this WONTFIX >

Re: [sage-support] Re: [sage 7.4] Error building OpenBlas

2017-02-02 Thread John H Palmieri
On Thursday, February 2, 2017 at 1:53:43 PM UTC-8, João Alberto Ferreira wrote: > > Well, I read somewhere about this procedure of moving the directory before > starting sage, but the Installation Manual seems to tell the same thing. > > "The directory where you built Sage is *NOT* hardcoded.

[sage-support] Re: Properly importing Python modules in Sage

2017-01-24 Thread John H Palmieri
If you are editing a file in the Sage library, you need to run 'sage -b' to incorporate your changes. On Tuesday, January 24, 2017 at 12:58:26 AM UTC-8, pp wrote: > > Hi all, > I'm trying to import one Python module in Sage 7.3 (using `import`). It is > properly working. The problem arises when

[sage-support] Re: tab-completion in new IPython-command line

2016-09-02 Thread John H Palmieri
I found one way to view more methods: hit Ctrl-L to clear the screen first, and/or use a larger terminal window. If your "sage:" prompt is at the very bottom of a terminal window, it will only include a few lines of methods when you hit the TAB key, but if the prompt is at the top of the

[sage-support] Re: Calculating with homology classes, getting coordinates

2016-09-09 Thread John H Palmieri
If you're willing to work with field coefficients, there is the method "homology_with_basis": sage: T = simplicial_complexes.Torus() sage: H = T.homology_with_basis() sage: H Homology module of Minimal triangulation of the torus over Rational Field sage: H.basis() Finite family {(2, 0): h_{2,0},

[sage-support] Element vs UniqueRepresentation

2016-10-07 Thread John H Palmieri
Can I define a class which inherits from both Element and UniqueRepresentation? It doesn't seem like it: sage: from sage.structure.element import Element sage: class A(Element, UniqueRepresentation): pass --- TypeError

[sage-support] Re: Sage 7.2 not starting up under Mac OS X ver. 10.12

2016-10-07 Thread John H Palmieri
On Friday, October 7, 2016 at 9:51:21 AM UTC-7, slelievre wrote: > > > > Le vendredi 7 octobre 2016 10:14:34 UTC+2, Samuel Dupree a écrit : >> >> I'm attempting to run Sage 7.2 on a MacBook Pro running Mac OS X ver. >> 10.12 (Sierra). Sage won't start up and it gives me the following messages:

[sage-support] Re: Element vs UniqueRepresentation

2016-10-08 Thread John H Palmieri
On Friday, October 7, 2016 at 6:21:45 PM UTC-7, Nils Bruin wrote: > > On Friday, October 7, 2016 at 10:47:55 AM UTC-7, John H Palmieri wrote: >> >> TypeError: Error when calling the metaclass bases >> metaclass conflict: the metaclass of a derived class must be a

[sage-support] Re: How do I count the number of simple cycles in a graph?

2016-10-04 Thread John H Palmieri
On Tuesday, October 4, 2016 at 8:39:38 PM UTC-7, Kristaps Balodis wrote: > > > > I seem to be confused about the language here. For instance when asking > about simple cycles in the Peterson graph it gives things like [0,4,0] but > the petersen graph doesn't have any cycles shorter than

[sage-support] Re: tab-completion in new IPython-command line

2016-08-28 Thread John H Palmieri
I have exactly the same question. Anyone? Is it some IPython setting that we can change? John On Thursday, August 25, 2016 at 9:17:01 AM UTC-7, Daniel Krenn wrote: > > Pressing TAB after a dot on some object gives (in the recent 7.4.beta1) > this: > > sage: M = Matrix([1]) > sage: M. >

[sage-support] Re: SSL module not available

2016-11-11 Thread John H Palmieri
On Friday, November 11, 2016 at 2:31:38 AM UTC-8, Dima Pasechnik wrote: > > Could you try first > > sage -i openssl > > and only then > > sage -i pyopenssl > > Do you need to run "sage -f python2" in between these, to make sure Python builds its ssl module? > > > On Monday, November 7, 2016

[sage-support] Summation bug in Sage? In Maxima?

2016-11-02 Thread John H Palmieri
Sage is not computing a particular infinite sum correctly. sage: sum(1/((n+1)*(2*n-1)), n, 0, 1000).n() -0.205068171626375 sage: sum(1/((n+1)*(2*n-1)), n, 0, 1).n() -0.204618542543703 sage: sum(1/((n+1)*(2*n-1)), n, 0, 10).n() # seems to be converging -0.204573546255870 sage:

[sage-support] Re: Summation bug in Sage? In Maxima?

2016-11-02 Thread John H Palmieri
rom 1, not from 0, it correctly >> outputs (2 log(2)+1)/3. >> >> Dima >> >> On Wednesday, November 2, 2016 at 7:09:13 PM UTC, John H Palmieri wrote: >>> >>> Sage is not computing a particular infinite sum correctly. >>> >>>

Re: [sage-support] Displaying graphics from a Sage script

2017-01-13 Thread John H Palmieri
On Friday, January 13, 2017 at 4:05:59 PM UTC-8, John H Palmieri wrote: > > > > On Friday, January 13, 2017 at 3:55:24 PM UTC-8, William wrote: >> >> On Fri, Jan 13, 2017 at 3:50 PM, John H Palmieri <jhpalm...@gmail.com> >> wrote: >> > This quest

Re: [sage-support] Displaying graphics from a Sage script

2017-01-13 Thread John H Palmieri
On Friday, January 13, 2017 at 4:12:44 PM UTC-8, John H Palmieri wrote: > > > > On Friday, January 13, 2017 at 4:05:59 PM UTC-8, John H Palmieri wrote: >> >> >> >> On Friday, January 13, 2017 at 3:55:24 PM UTC-8, William wrote: >>> >>> On

[sage-support] Displaying graphics from a Sage script

2017-01-13 Thread John H Palmieri
This question comes from http://stackoverflow.com/questions/41638257/graphics-in-sage-script: if I have a file "foo.sage" and I want to run "sage foo.sage" and have it pop up a window displaying a plot, how do I do this? For example, if foo.sage contains P = plot(sin(x)) P.show()

Re: [sage-support] Displaying graphics from a Sage script

2017-01-13 Thread John H Palmieri
On Friday, January 13, 2017 at 3:55:24 PM UTC-8, William wrote: > > On Fri, Jan 13, 2017 at 3:50 PM, John H Palmieri <jhpalm...@gmail.com > > wrote: > > This question comes from > > http://stackoverflow.com/questions/41638257/graphics-in-sage-script: if > I &g

[sage-support] Re: Development process

2016-12-06 Thread John H Palmieri
On Tuesday, December 6, 2016 at 1:41:22 PM UTC-8, Nils Bruin wrote: > > On Tuesday, December 6, 2016 at 1:03:46 PM UTC-8, Justin C. Walker wrote: >> >> Hi, all, >> >> I have not done any real Sage development for a while (the last time, I >> think, there were wolves in Wales). >> >> I want to

[sage-support] Re: Multivariate polynomial coefficients including zeros

2017-03-15 Thread John H Palmieri
As I posted at http://stackoverflow.com/questions/42812634/multivariate-polynomial-coefficients-including-zeros, you could use lcm(f.monomials()) to get the least common multiple of the monomials in f, and then plug that into P.monomial_all_divisors(lcm(...)) to get all monomials which

[sage-support] Re: OS X 10.12

2017-03-31 Thread John H Palmieri
Is is also possible that a homebrew installation is interfering? I have seen claims that it can interfere with building Sage from scratch, but I don't see why it would cause problems with installing from a pre-built binary. John On Friday, March 31, 2017 at 4:09:05 PM UTC-7, Volker Braun

[sage-support] Re: OS X 10.12

2017-03-31 Thread John H Palmieri
This looks strange. It ought to look like this the first time you run Sage, and this is what happens when I download and install from that file: Rewriting paths for your new installation directory === This might take a few minutes but only has to

Re: [sage-support] Re: OS X 10.12

2017-04-01 Thread John H Palmieri
binary package. Or recompile Sage from scratch in the new location > ("make distclean && make") > > snapdragon:~ joshua$ > > > > > > On Mar 31, 2017, at 5:49 PM, John H Palmieri <jhpalm...@gmail.com > > wrote: > > Thi

[sage-support] Re: Sage Crash Report. appears to have loaded, failed to run.

2017-03-07 Thread John H Palmieri
Just about the last line in your crash report says ImportError: libgfortran.so.3: cannot open shared object file: No such file or directory So you need to install gfortran, however that is done with Fedora. An internet search suggests something like "yum install gcc-gfortran". -- John

[sage-support] Re: Calling java classes from Sage using Py4J

2017-08-02 Thread John H Palmieri
In Sage, "10" is a Sage integer, not a Python int. I am guessing that gateway.jvm.java.util.Random.nextInt expects a Python int for its input, and when it gets a Sage Integer, that causes a problem. What happens if you replace "random.nextInt(10)" with "random.nextInt(int(10))"? On

[sage-support] Re: Sage Crash Report

2017-08-15 Thread John H Palmieri
One of the very last lines of the report says > > ImportError: libgfortran.so.3: cannot open shared object file: No such file > or directory > > You need to install gfortran on your computer. On Tuesday, August 15, 2017 at 6:15:01 PM UTC-7, kats...@gmail.com wrote: > > Sage Crash Report > --

Re: [sage-support] Re: Sage Crash Report

2017-08-16 Thread John H Palmieri
On Tuesday, August 15, 2017 at 9:49:35 PM UTC-7, William wrote: > > On Tue, Aug 15, 2017 at 7:47 PM John H Palmieri <jhpalm...@gmail.com > > wrote: > >> One of the very last lines of the report says >> >>> >>> ImportError: libgfortran.so

[sage-support] Re: sage installation on kubuntu 16.04

2017-07-23 Thread John H Palmieri
One of the last lines in the crash report: ImportError: libgfortran.so.3: cannot open shared object file: No such file or directory It looks like you need to install gfortran. -- John On Sunday, July 23, 2017 at 2:54:43 AM UTC-7, Santosh Pattanayak wrote: > > Hello, > I tried

[sage-support] Re: numerical semigroup in sagemath

2017-07-26 Thread John H Palmieri
On Tuesday, July 25, 2017 at 5:53:37 AM UTC-7, springfield .gion wrote: > > Hi, I need to create and manipulate the additive semigroups generated by > integers (such as those generated by tuples of coprime integers), but I am > struggling with the syntax; is there an easy way to create

[sage-support] Re: vars() gives me an error message

2017-05-03 Thread John H Palmieri
See #22941 for a separate approach (independent of #22933, each ticket fixes a different problem). John On Tuesday, May 2, 2017 at 2:33:27 PM UTC-7, Dima Pasechnik wrote: > > this is now #22933, ready for review. > > Note that it's not a complete fix; > > sage: vars() > > still fails > >

[sage-support] Re: persistent homology?

2017-05-12 Thread John H Palmieri
Sage has no interface to any persistent homology software. Please write one! -- John On Friday, May 12, 2017 at 4:20:14 AM UTC-7, Dima Pasechnik wrote: > > > > On Friday, May 12, 2017 at 9:49:20 AM UTC+1, Pierre wrote: >> >> Is there any interface between Sage and persistent homology software?

[sage-support] Re: typo in simplicial complex documentation?

2017-06-08 Thread John H Palmieri
On Thursday, June 8, 2017 at 5:16:15 PM UTC-7, David Joyner wrote: > > Hi all: > > This is kind of a newbie question, as I'm not an expert on simplicial > complexes. It's also a minor technical issue on the documentation, not > the code. > > I'm trying to debug some code of mine and, on

[sage-support] Re: Sage Crash Report

2017-06-05 Thread John H Palmieri
"ImportError: libgfortran.so.3: cannot open shared object file: No such file or directory" It looks like you need to install fortran on your machine. On Monday, June 5, 2017 at 10:12:12 AM UTC-7, Vincent HERBERT wrote: > > > -- You received this message because you are subscribed to the

Re: [sage-support] Re: typo in simplicial complex documentation?

2017-06-11 Thread John H Palmieri
On Sunday, June 11, 2017 at 10:13:52 AM UTC-7, David Joyner wrote: > > On Sun, Jun 11, 2017 at 11:30 AM, John H Palmieri > <jhpalm...@gmail.com > wrote: > > > > > > On Saturday, June 10, 2017 at 7:05:49 PM UTC-7, David Joyner wrote: > >> > >&g

[sage-support] Re: Sage Crash Report

2017-06-18 Thread John H Palmieri
On Sunday, June 18, 2017 at 4:41:22 AM UTC-7, Dima Pasechnik wrote: > > git repo is not relevant, but a python module that shadows a Sage python > module would be a problem. For example, if you have your own file "parser.py", it would interfere with the standard Python module "parser". --

Re: [sage-support] Re: typo in simplicial complex documentation?

2017-06-11 Thread John H Palmieri
On Saturday, June 10, 2017 at 7:05:49 PM UTC-7, David Joyner wrote: > > On Thu, Jun 8, 2017 at 10:49 PM, John H Palmieri <jhpalm...@gmail.com > > wrote: > > > > > > On Thursday, June 8, 2017 at 5:16:15 PM UTC-7, David Joyner wrote: > >> > &g

[sage-support] Re: Use of \Bold in latex methods, and SageTeX

2017-05-08 Thread John H Palmieri
Hi John, Within Sage, you can get the appropriate command with sage: from sage.misc.latex_macros import sage_configurable_latex_macros sage: sage_configurable_latex_macros ['\\newcommand{\\Bold}[1]{\\mathbf{#1}}'] sage: print(sage_configurable_latex_macros[0]) \newcommand{\Bold}[1]{\mathbf{#1}}

[sage-support] Re: Problem installing sage on High Sierra (Mac OS 10.13)

2017-10-08 Thread John H Palmieri
Are you trying to install Sage 6.2 (as your log seems to indicate)? That is extremely old. Try with a fresh source installation: either http://www.sagemath.org/download-source.html for stable source or http://www.sagemath.org/download-latest.html for the latest development version. Also, do

[sage-support] Re: Problem installing sage on High Sierra (Mac OS 10.13)

2017-10-08 Thread John H Palmieri
Also, if you have problems with the curl package, try https://trac.sagemath.org/ticket/23991 On Sunday, October 8, 2017 at 10:02:36 AM UTC-7, John H Palmieri wrote: > > Are you trying to install Sage 6.2 (as your log seems to indicate)? That > is extremely old. Try with a fre

[sage-support] Re: Problem installing sage on High Sierra (Mac OS 10.13)

2017-10-16 Thread John H Palmieri
You have at least two choices. For both, start by downloading (http://www.sagemath.org/download-source.html) and unpacking sage-8.0.tar.gz wherever you plan to build it. Choice 1: install git-trac-config: see

[sage-support] Re: Problem installing sage on High Sierra (Mac OS 10.13)

2017-10-16 Thread John H Palmieri
his point, I don't even understand what the error is... Any > suggestions? > > > On Monday, October 16, 2017 at 5:11:15 PM UTC-4, John H Palmieri wrote: >> >> You have at least two choices. For both, start by downloading ( >> http://www.sagemath.org/download-source.ht

[sage-support] Re: Problem with upgrade on OS X

2017-09-07 Thread John H Palmieri
Sage will build its own gcc, so as long as you have some functioning version of gcc, you shouldn't need to worry about upgrading that. Just try installing a new version of Sage (from scratch, not by upgrading 6.7) and see what happens. John On Thursday, September 7, 2017 at 8:56:03 AM

[sage-support] Re: which browser

2017-10-20 Thread John H Palmieri
Have you tried setting the BROWSER environment variable? If that doesn't work, what about SAGE_BROWSER? John On Friday, October 20, 2017 at 7:38:58 AM UTC-7, John Cremona wrote: > > On 20 October 2017 at 15:34, John Cremona > wrote: > > I am running Sage on a linux

[sage-support] Re: coxeter3 Package installed, but cannot use it

2018-05-09 Thread John H Palmieri
After installing coxeter, did you run `./sage -b`? This might be necessary to rebuild the parts of the Sage library that use coxeter. On Wednesday, May 9, 2018 at 2:08:26 PM UTC-7, zhang...@gmail.com wrote: > > Platform: Mac > Version: 8.1 > > I installed the package coxeter3 using > !sage

[sage-support] Re: I tried plotting the recent equation of sin and it does not let me execute it

2018-01-26 Thread John H Palmieri
If you tried "-4sin(2x-pi)", maybe try instead "-4*sin(2*x-pi)" -- include * for multiplication. On Friday, January 26, 2018 at 1:11:51 PM UTC-8, benjamin gonzalezjr wrote: > > Good afternoon, my name is Benjamin Gonzalez Jr. > I need help on how to graph -4sin(2x-pi) on cocalc/sage. I tried >

[sage-support] Plotting question: use higher precision when evaluating the function?

2018-08-31 Thread John H Palmieri
The question https://ask.sagemath.org/question/43517/conflicting-sage-vs-wolfram-evaluation-of-a-limit/ brought the following question to mind: can you specify the precision to which a function is evaluated when plotting it? The particular ask.sagemath.org question involves a function

Re: [sage-support] Plotting question: use higher precision when evaluating the function?

2018-08-31 Thread John H Palmieri
On Friday, August 31, 2018 at 11:44:37 AM UTC-7, William wrote: > > On Fri, Aug 31, 2018 at 11:15 AM, John H Palmieri > > wrote: > > The question > > > > > > > https://ask.sagemath.org/question/43517/conflicting-sage-vs-wolfram-evaluation-of-a-li

[sage-support] Re: SIGILL Trouble?

2018-08-31 Thread John H Palmieri
Please tell us your platform (OS X, I presume, but which version of the operating system?) and how you installed Sage. On Friday, August 31, 2018 at 9:39:31 AM UTC-7, Ron Bannon wrote: > > appleadminsimac:~ appleadmin$ > /Applications/SageMath-8.3.app/Contents/Resources/sage/sage; exit > >

[sage-support] Re: SIGILL Trouble?

2018-09-01 Thread John H Palmieri
On Saturday, September 1, 2018 at 3:40:08 AM UTC-7, Dima Pasechnik wrote: > > SIGILL is an indicator of trying to run code compliled for a CPU that has > commands your CPU does not have. > > Please provide details of your CPU. > And also the precise name of the app that you downloaded. --

[sage-support] Re: [sage-cell] Where Oh Where is my Divide By Zero Error?

2018-03-20 Thread John H Palmieri
On Friday, March 16, 2018 at 7:29:30 PM UTC-7, A. Jorge Garcia wrote: > > Thanks! > > On Fri, Mar 16, 2018, 10:27 PM Andrey Novoseltsev > wrote: > >> On Fri, Mar 16, 2018 at 4:18 PM, Jorge Garcia > > wrote: >> > Dear Hive Mind: >> > >> > Why is there

[sage-support] Re: Error compiling : patch-2-7-5

2018-03-02 Thread John H Palmieri
On Friday, March 2, 2018 at 2:51:17 AM UTC-8, Viviane Pons wrote: > > Dear all, > > I already have a sage installed from binaries (from the debian package) > and I'm trying to compile a dev version from source. > > I'm getting this error (log attached) after less than 1 minute. Does > someone

Re: [sage-support] Help with getting the python code

2018-09-30 Thread John H Palmieri
On Sunday, September 30, 2018 at 9:58:33 AM UTC-7, Dima Pasechnik wrote: > > On Sun, Sep 30, 2018 at 5:35 PM Nataliya Demyanenko > > wrote: > > Please, let me know if I can gain access to the python code displayed on > this page > > >

Re: [sage-support] plot3d doesn't work in jupyterlab / jupyter notebook

2018-11-17 Thread John H Palmieri
b instance that has the sagemath kernel installed. > > On Saturday, November 17, 2018 at 7:21:02 PM UTC-8, John H Palmieri wrote: >> >> This is on OS X? How did you install Sage? (It works for me with Sage >> built from scratch on both OS X 10.13.6 and OS X 10.14.1.) >>

[sage-support] Obtaining the factors in a tensor product

2018-12-09 Thread John H Palmieri
1. Suppose I have a tensor product X = V tensor W of appropriate objects (instances of CombinatorialFreeModule, for example). How can I retrieve V and W from X? 2. Suppose I have a basic tensor x = v tenor w in V tensor W. How can retrieve v and w from x? For example, if A is your favorite

Re: [sage-support] Quaternions, how to speed up computation

2018-11-19 Thread John H Palmieri
On Monday, November 19, 2018 at 5:32:39 AM UTC-8, Kolen Cheung wrote: > > And if anyone has language issue it surely is OP. hijack vs shut up, which > one is more serious? Accusing someone hijacking something is a very serious > accusation. Since you asked what kind of community this is,

Re: [sage-support] plot3d doesn't work in jupyterlab / jupyter notebook

2018-11-17 Thread John H Palmieri
This is on OS X? How did you install Sage? (It works for me with Sage built from scratch on both OS X 10.13.6 and OS X 10.14.1.) John On Saturday, November 17, 2018 at 5:32:34 PM UTC-8, Kolen Cheung wrote: > > I tried both > > plot3d(sin(pi * sqrt(x**2 + y**2)) / sqrt(x**2 + y**2), (x, -5,

Re: [sage-support] Print statement vs function in Sage-py3

2019-04-03 Thread John H Palmieri
On Wednesday, April 3, 2019 at 10:11:19 AM UTC-7, kcrisman wrote: > > > > On Tuesday, April 2, 2019 at 6:03:23 PM UTC-4, Dima Pasechnik wrote: >> >> On Tue, Apr 2, 2019 at 10:47 PM > >> wrote: >> > >> > Hello, Sage community. >> > With the upcoming migration of Sage from Python2 to Python3,

[sage-support] Re: Sage options not recognized.

2019-03-29 Thread John H Palmieri
What does "sage --version" say? On Friday, March 29, 2019 at 12:47:44 PM UTC-7, Jose Garcia wrote: > > Hi All, > > I'm trying to install a package to sage math, and I can't get sage to > recognize specific options. > > Ex > > $ sage --package fix-checksum conjecturing > sage-run received

Re: [sage-support] Preferred way to navigate through documentation

2019-04-07 Thread John H Palmieri
You should also look at the Sage tutorial (http://doc.sagemath.org/html/en/tutorial/). The 2nd page of the "guided tour" talks about "?", and there may be other things that you would find useful. On Sunday, April 7, 2019 at 5:36:18 PM UTC-7, Fan Zhang wrote: > > Thanks a lot! "?" is the

[sage-support] Re: solution of a 4th degree equation is real despite containing I but causes trouble

2019-02-20 Thread John H Palmieri
Or range(abs(t))? Then if there is some numerical noise leading to a tiny imaginary part (your t might be evaluated to 2.573037896825689 - 4.365411232224172e-17*I for example), abs(t) won't care. On Wednesday, February 20, 2019 at 10:42:32 AM UTC-8, John H Palmieri wrote: > > How about

[sage-support] Re: solution of a 4th degree equation is real despite containing I but causes trouble

2019-02-20 Thread John H Palmieri
How about range(0, RR(t))? On Wednesday, February 20, 2019 at 10:11:14 AM UTC-8, Michael Beeson wrote: > > Oh, and range(0,n(t)) also crashes. > > -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop

[sage-support] Re: How to find coordinate vector

2019-02-22 Thread John H Palmieri
I would define the span over the integers differently, using "span_of_basis" to make sure it uses the basis you specify: sage: V = ZZ^2 sage: W = V.span_of_basis(R) sage: W Free module of degree 2 and rank 2 over Integer Ring User basis matrix: [1 3] [1 0] sage: W.coordinates([0,3]) [1, -1]

Re: [sage-support] yasm can not be installed/compiled

2019-03-18 Thread John H Palmieri
What are the modification dates and times for the files in the directory /apps/srv01/pmt/pmtfh/sage/sage-8.6/local/var/tmp/sage/build/yasm-1.3.0.p0 Maybe you should run 'make' again, which will regenerate this directory, and then check the times on the files. Are any of them in the future?

[sage-support] Re: solve() behavior

2019-02-19 Thread John H Palmieri
On Tuesday, February 19, 2019 at 8:56:50 AM UTC-8, Michael Beeson wrote: > > When I try to reproduce Eric's post, I get an error message about an > unexpected keyword argument > (maybe my version of Sage is too old.) But look at this: > > sage:

[sage-support] Re: how to do ?

2019-05-25 Thread John H Palmieri
On Saturday, May 25, 2019 at 3:31:00 AM UTC-7, HG wrote: > > sage -i database_odlyzko_zeta > > doesn't work in sagemath-8.8beta6 ? > > How can I do it ? > > Please provide more details: what platform? What went wrong. It worked for me, by the way: $ ./sage -i database_odlyzko_zeta ...

[sage-support] Re: A genuine bug in numerical evaluation ?

2019-06-06 Thread John H Palmieri
I can confirm that it works for me on OS X with Python 3, gives the error you described with Python 2. On Thursday, June 6, 2019 at 2:57:08 PM UTC-7, Emmanuel Charpentier wrote: > > According to Serge Lelièvre, the proble doesn't occur when ran under a > Python3-based Sage. He advises to run

[sage-support] Re: A genuine bug in numerical evaluation ?

2019-06-06 Thread John H Palmieri
Oh, and Sage with Python 3 is in pretty good shape these days. Still some doctest failures, but I think it is mostly very functional. John On Thursday, June 6, 2019 at 3:20:25 PM UTC-7, John H Palmieri wrote: > > I can confirm that it works for me on OS X with Python 3, gives the

Re: [sage-support] The behavior of empty sums

2019-06-25 Thread John H Palmieri
On Tuesday, June 25, 2019 at 3:10:29 AM UTC-7, Peter Luschny wrote: > > Am Di., 25. Juni 2019 um 10:49 Uhr 'luisfe' : > > | When n =0, k ranges from 0 to -1 so there is no k and the list > constructed in ib(n,m) > | is just the empty list. Not an empty list of polynomials, just an empty >

[sage-support] Re: installation on OSX Mojave, Sage V. 8.7

2019-05-24 Thread John H Palmieri
On Friday, May 24, 2019 at 9:03:39 AM UTC-7, frank wessel wrote: > > downloaded the sage-8.7-OSX_10.11.6-x86_64.dmg (hopefully the latest) > installed the package into Applications/SageMath folder > set the SAGE_ROOT env variable in /etc/profile > You should not need to set the SAGE_ROOT

Re: [sage-support] Re: parent of permutation

2019-05-04 Thread John H Palmieri
On Friday, May 3, 2019 at 11:18:40 PM UTC-7, Daniel Krenn wrote: > > On 04.05.19 06:04, Andrew wrote: > > The `Permutation` function is more general. For example, the folllowing > > all work: [...] > > Thank you. But sorry, this does not answer my question. Maybe I should > be more precise:

Re: [sage-support] Re: Sorting a list of variables

2019-04-22 Thread John H Palmieri
On Monday, April 22, 2019 at 11:03:48 AM UTC-7, slelievre wrote: > > Having defined > > sage: x = SR.var('x', 20) > sage: a = [x[11], x[8], x[10], x[9]] > > sorting by repr or by str is disappointing: > > sage: sorted(a, key=repr) > [x10, x11, x8, x9] > > sage: sorted(a,

[sage-support] Re: reconnect to remote sagemath jupyter notebook?

2019-04-22 Thread John H Palmieri
If you're willing to use the Sage command-line interface rather than the notebook, then you might try the "screen" program, which should already be installed on linux or Mac OS X. You might remotely log in to the machine running Sage and then do "screen sage". Then you type in whatever commands

[sage-support] debian virtual machine numerical noise

2019-08-09 Thread John H Palmieri
In order to try to track down the problem with Python 3 and polynomial_rational_flint.pyx on Debian (see https://trac.sagemath.org/ticket/28334 — help wanted!), I installed VirtualBox and a Debian 10 virtual machine on my iMac. Most doctests pass, but I am getting some numerical noise. Did I

Re: [sage-support] Is there a binary version of SageMath .app.dmg compatiable with Mac OS X ver. 10.14.6

2019-07-26 Thread John H Palmieri
On Friday, July 26, 2019 at 12:32:06 AM UTC-7, Dima Pasechnik wrote: > > > > On Fri, 26 Jul 2019 at 06:26, Samuel Dupree > wrote: > >> >> >> I'm attempting to update SageMath-8.7.app on an iMacPro running Mac OS X >> ver. 10.14.6 tp SageMath-8.8.app. The problem for the moment occurs when I

Re: [sage-support] Is there a binary version of SageMath .app.dmg compatiable with Mac OS X ver. 10.14.6

2019-07-26 Thread John H Palmieri
On Friday, July 26, 2019 at 9:33:25 AM UTC-7, John H Palmieri wrote: > > > > On Friday, July 26, 2019 at 12:32:06 AM UTC-7, Dima Pasechnik wrote: >> >> >> >> On Fri, 26 Jul 2019 at 06:26, Samuel Dupree wrote: >> >>> >>> >>> I

Re: [sage-support] Re: sage building with python3

2019-11-04 Thread John H Palmieri
If you want to build Sage for use with Python 3, you should do $ make distclean $ ./configure --with-python=3 $ make Where does this fail for you? On Monday, November 4, 2019 at 8:21:04 AM UTC-8, Александр Ватузов wrote: > > No, I am building sage only for using it with python3. So I need to

Re: [sage-support] Re: sage building with python3

2019-11-03 Thread John H Palmieri
Since trac #28426 (merged pretty recently), when building with Python 3, we do not build Python 2. Before that, we always built both. On Sunday, November 3, 2019 at 12:57:02 PM UTC-8, Dima Pasechnik wrote: > > I am surprised we still even build python2 by default. Isn't it an > optional

[sage-support] Re: failure to re-install ipython

2019-10-25 Thread John H Palmieri
On Friday, October 25, 2019 at 2:59:36 AM UTC-7, Dima Pasechnik wrote: > > in the Sage 9.0.beta2 I get > > [ipython-5.8.0] Successfully installed ipython-5.8.0 > [ipython-5.8.0] Cleaning up... > [ipython-5.8.0] Removed build tracker '/tmp/pip-req-tracker-h6h22jg5' > [ipython-5.8.0] >

Re: [sage-support] SageMath installation in macOS Catalina

2019-10-09 Thread John H Palmieri
On Wednesday, October 9, 2019 at 4:51:48 AM UTC-7, David Joyner wrote: > > > > On Wed, Oct 9, 2019 at 7:42 AM Dima Pasechnik > wrote: > >> >> >> On Wed, Oct 9, 2019 at 6:34 AM David Joyner > > wrote: >> >>> >>> >>> On Wed, Oct 9, 2019 at 7:14 AM Dima Pasechnik >> > wrote: >>> Hi,

Re: [sage-support] sage with python3, mpmath

2020-01-14 Thread John H Palmieri
Just to confirm: everything works with Sage 9.0.beta1, built with Python 2. Fails with Sage built with Python 3. On Tuesday, January 14, 2020 at 5:55:51 AM UTC-8, Александр Ватузов wrote: > > https://trac.sagemath.org/ticket/29009#ticket > > вторник, 14 января 2020 г., 16:36:27 UTC+3

Re: [sage-support] sage with python3, mpmath

2020-01-14 Thread John H Palmieri
Sorry, I meant Sage *9.1.beta0*. On Tuesday, January 14, 2020 at 10:18:41 AM UTC-8, John H Palmieri wrote: > > Just to confirm: everything works with Sage 9.0.beta1, built with Python > 2. Fails with Sage built with Python 3. > > > On Tuesday, January 14, 2020 at 5:55:51 A

<    1   2   3   4   5   >