Re: [sage-support] Re: Default charset problem?

2015-04-28 Thread Jori Mäntysalo
(), looping over a string and so on. But they are another story.) -- Jori Mäntysalo

[sage-support] Default charset problem?

2015-04-28 Thread Jori Mäntysalo
On sagenb worksheet, Sage version 6.6 print Direct translation of 'Mäntysalo' is 'Pine forest'. works as expected, but x=Direct translation of 'Mäntysalo' is 'Pine forest'; x outputs Direct translation of 'M\xc3\xa4ntysalo' is 'Pine forest' Can this be changed? -- Jori Mäntysalo

Re: [sage-support] find_root for systems

2015-05-06 Thread Jori Mäntysalo
some assumptions. -- Jori Mäntysalo

[sage-support] Simplifying binomials

2015-05-07 Thread Jori Mäntysalo
I was asked where f(n,k)=(binomial(2*n + 2, n + 1) / 2 - binomial(2*n, n) - sum(binomial(n, k) * binomial(n, k-1), k,1,n)) f.full_simplify() got magic constant sqrt(pi). Right answer is zero. -- Jori Mäntysalo

Re: [sage-support] find_root for systems

2015-05-07 Thread Jori Mäntysalo
On Thu, 7 May 2015, Dima Pasechnik wrote: nobody really knows how to solve systems of (non-polynomial) equations in general. There are heuristics implemented in various systems... What of those are built-in in Sage? -- Jori Mäntysalo

Re: [sage-support] Re: List of values for vertex_shape

2015-05-29 Thread Jori Mäntysalo
- - Done this. (#18541) -- Jori Mäntysalo

[sage-support] List of values for vertex_shape

2015-05-28 Thread Jori Mäntysalo
Plotting a graph has option vertex_shape. Where is the list of possible values? -- Jori Mäntysalo

[sage-support] graphics_array() and titles

2015-05-22 Thread Jori Mäntysalo
] [fig-2-here] [fig-1-here] [fig-2-here] sin cos ? -- Jori Mäntysalo

Re: [sage-support] Re: graphics_array() and titles

2015-05-24 Thread Jori Mäntysalo
graphics_array work something like decorator pattern, so that it would have .plot() function and one could even combine arrays to bigger ones? -- Jori Mäntysalo

Re: [sage-support] Re: graphics_array() and titles

2015-05-26 Thread Jori Mäntysalo
nothing about generating graphics in general. Same with sage internals about graphics. -- Jori Mäntysalo

Re: [sage-support] Plotting a q analogue function as a challenge?

2015-08-14 Thread Jori Mäntysalo
on sage-devel, maybe a year ago? Or some graph theory question that is easy to do in Sage? -- Jori Mäntysalo

[sage-support] Server and certificate chain

2015-11-11 Thread Jori Mäntysalo
Can Sagenb send certificate chain instead of just certificate of the server itself? If yes, how? If not, what do you use as a frontend? Apache? -- Jori Mäntysalo

Re: [sage-support] Installation using VMare Workstation on Windows 7 64-bit

2015-11-08 Thread Jori Mäntysalo
xx xx xx xx xx  GUID: PXE-E53: No boot filename received OK. For this I can not help. Sorry. Maybe someone else. -- Jori Mäntysalo

Re: [sage-support] Same Matrix Construction gives two different results

2015-11-08 Thread Jori Mäntysalo
the error. I tried in two system, about 500,000 tests together. If there is a real heisenbug, it must depend on architechture etc. So Linux or Mac, what processor...? -- Jori Mäntysalo

[sage-support] Re: Server and certificate chain

2015-11-12 Thread Jori Mäntysalo
welcome. -- Jori Mäntysalo

Re: [sage-support] Re: Server and certificate chain

2015-11-12 Thread Jori Mäntysalo
, I'll try Apache. Now, do anyone have ready-to-go configuration for lazy IT admins? I tried basically just RewriteRule ^(.*)$ http://localhost:1234/$1 [P] (where 1234 is the port that Sage listens), and it has at least the error with logout link. -- Jori Mäntysalo

Re: [sage-support] Re: Server and certificate chain

2015-11-12 Thread Jori Mäntysalo
done that. (On port 443 with authbind.) -- Jori Mäntysalo

Re: [sage-support] Re: Server and certificate chain

2015-11-12 Thread Jori Mäntysalo
ted, but it seems that Sage sends only first certificate. -- Jori Mäntysalo

Re: [sage-support] Re: Server and certificate chain

2015-11-16 Thread Jori Mäntysalo
/mod/mod_proxy.html#proxypass Context:server config, virtual host, directory vs. Note: This directive cannot be used within a context. -- Jori Mäntysalo

Re: [sage-support] Re: Server and certificate chain

2015-11-17 Thread Jori Mäntysalo
sed as a proxy to locally running sagenb. -- Jori Mäntysalo

Re: [sage-support] How to hide output when opening a sagemath worksheet

2015-11-17 Thread Jori Mäntysalo
On Tue, 17 Nov 2015, Gabriel Cardona wrote: I evaluate it and hide the output, but when I open the worksheet again the '2' is not hidden (I want my students to open the worksheet and evaluate the expression themselves). Can you just use Action / Delete All Output? -- Jori Mäntysalo

Re: [sage-support] Same Matrix Construction gives two different results

2015-11-08 Thread Jori Mäntysalo
that in future we could just give a link as an answer. -- Jori Mäntysalo

Re: [sage-support] Installation using VMare Workstation on Windows 7 64-bit

2015-11-07 Thread Jori Mäntysalo
://en.wikipedia.org/wiki/Open_Virtualization_Format . 2. How to access the command prompt? See http://wiki.sagemath.org/SageAppliance#Using_the_Sage_shell . You need to know what is your "host key" on virtual machine manager. -- Jori Mäntysalo

[sage-support] "Factoring" cartesian product of posets

2015-11-07 Thread Jori Mäntysalo
ferentiate situations where P1 might be Poset({0:[1, 2]}) or Poset({0: [1], 1: [2]})? They have isomorphic cover relations graph. -- Jori Mäntysalo

Re: [sage-support] \leq converted to <=, can't we use unicode?

2015-10-07 Thread Jori Mäntysalo
.) (Perhaps not for input, but for output for sure) Can this be a problem? I guess no, but theoretically one might want information about Möbius function without being able to write it. -- Jori Mäntysalo

Re: [sage-support] \leq converted to <=, can't we use unicode?

2015-10-05 Thread Jori Mäntysalo
ave corrected M\"obius function to Möbius function in docs. I hope that it is OK for everyone. (Linux has used US keyboard layout as a default from 0.03 I think. Before it was finnish layout. :=) ) -- Jori Mäntysalo

Re: [sage-support] The sage notebook does not show results

2015-09-01 Thread Jori Mäntysalo
you tried it with accounts sage1, sage2 and so on? I would also, for a start, change server_pool=['sage%d@localhost'%i for i in range(10)] to just server_pool=['sage0@localhost'] -- Jori Mäntysalo

Re: [sage-support] Building Sage on Ubuntu 14.04 LTS 3

2015-10-04 Thread Jori Mäntysalo
On Sun, 4 Oct 2015, Dmitrij Moreinis wrote: unfortunatelly the command: make doesnt work. I have added the install.log. As it says: "You cannot build Sage as root" -- Jori Mäntysalo

Re: [sage-support] CGI through sagemath

2015-09-24 Thread Jori Mäntysalo
On Thu, 24 Sep 2015, avi kaur wrote: How to use sage through CGI? CGI in year 2015... I am calling sage inside CGI script but it is not executing. What I want to do is to get data through CGI and run sage. Permissions problem? Maybe try with "bash sage" instead of just "

Re: [sage-support] Re: correct derivative command returns syntax error

2015-09-21 Thread Jori Mäntysalo
On Mon, 21 Sep 2015, Simon King wrote: What computer algebra systems (or pocket calculators) would understand that 5x means 5*x? Mathematica understand at least "5 x". Or at least understood in version 4. -- Jori Mäntysalo

Re: [sage-support] Re: Where is possible to view the code of one command? for example: lagrange_polynomial?

2015-10-06 Thread Jori Mäntysalo
. Not a bug from a technical viewpoint. But unexpected for a new user, and worth mentioning. -- Jori Mäntysalo

Re: [sage-support] Relabel vertices

2015-12-07 Thread Jori Mäntysalo
On Mon, 7 Dec 2015, Selva Raja S wrote: Suppose I want to draw the graph. Coding is Can i change the relabel vertices? g = Graph({1:[2,3],2:[3]}) g.relabel(lambda x: chr(ord('a')+x), inplace=False).show() -- Jori Mäntysalo

[sage-support] Using graphic object as a sub-figure

2015-12-17 Thread Jori Mäntysalo
() G.add(g.plot(), position=(2,3)) G.add_primitive(Arrow(...)) . . . -- Jori Mäntysalo

Re: [sage-support] Packages needed for self-compiled Sage on Ubuntu

2016-01-06 Thread Jori Mäntysalo
sage -i) really works."? -- Jori Mäntysalo

[sage-support] Packages needed for self-compiled Sage on Ubuntu

2016-01-06 Thread Jori Mäntysalo
Is there a list somewhere on Ubuntu packages that are needed to install fully working Sage from source? For example now I have a machine where view() does not work as LaTeX has no tikz. Instead of every admin to do the same job it would be nice to have a copy-and-paste help. -- Jori

Re: [sage-support] For loop difference between sage in the cloud and local instalation

2015-12-26 Thread Jori Mäntysalo
of Sage I was able to say P = Poset({1: [2]}) print "Original:" P.show() print "Reversed:" P.dual().show() in the notebook and got expected result. It just does not work that way anymore. -- Jori Mäntysalo

Re: [sage-support] For loop difference between sage in the cloud and local instalation

2015-12-26 Thread Jori Mäntysalo
tation goes on? I am quite sure that I was able to do something like for x in SomeObjects(n): if x.foo() and not x.bar(): x.show() and see pictures coming as the loop is running. -- Jori Mäntysalo

Re: [sage-support] For loop difference between sage in the cloud and local instalation

2015-12-26 Thread Jori Mäntysalo
.  OK. But what has changed, as now the pictures does not come one-by-one? -- Jori Mäntysalo

Re: [sage-support] How to hide output when opening a sagemath worksheet

2015-11-24 Thread Jori Mäntysalo
On Tue, 17 Nov 2015, Gabriel Cardona wrote: I am sorry but cannot find that setting... where is the Action menu? Sorry, on SageNB. I.e. not in cloud version(?) of Sage GUI, I guess. -- Jori Mäntysalo

Re: [sage-support] Writing 'n' variables in Sagemath linux ubuntu

2016-01-26 Thread Jori Mäntysalo
If I understood this, isn't var(['a'+str(i) for i in range(1,4)]) what is wanted? It will make a1, a2 and a3 to variables. -- Jori Mäntysalo

[sage-support] %latex and no output

2016-02-25 Thread Jori Mäntysalo
of 495028 -- Jori Mäntysalo

Re: [sage-support] Re: %latex and no output

2016-02-25 Thread Jori Mäntysalo
) does not. -- Jori Mäntysalo

Re: [sage-support] Re: %latex and no output

2016-02-26 Thread Jori Mäntysalo
On Thu, 25 Feb 2016, Henri Girard wrote: In sagenb you don't need to write %latex ? Just click on the box latex to mark it ? What box? But now I tested "Typeset" box. It works, so LaTeX installation is OK. And for example %timeit works, so %-string works. Strange. -- Jori Mäntysalo

Re: [sage-support] redirecting input and output to Sage

2016-01-23 Thread Jori Mäntysalo
output=L ./sage tmp.sage > tmp.out Also check if the command "tee" fits your purpose. -- Jori Mäntysalo -- 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, s

Re: [sage-support] redirecting input and output to Sage

2016-01-23 Thread Jori Mäntysalo
ite a short text for Linux commands maybe useful for advanced Sage users. -- Jori Mäntysalo -- 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

Re: [sage-support] Re: %latex and no output

2016-03-10 Thread Jori Mäntysalo
On Thu, 10 Mar 2016, William Stein wrote: The real bug is that we have no guide to installing Sage server. https://wiki.sagemath.org/SageServer I stand corrected. I guess I will go throught that after Ubuntu 16.04 LTS is out. -- Jori Mäntysalo

Re: [sage-support] Re: %latex and no output

2016-03-10 Thread Jori Mäntysalo
and see how they get used; sometimes I think they do start up new processes, whereas plot() is a "Sage native" process. OK, so there is some difference coming from system() vs. some other functin. Duh. I will look this at monday, when we have a service break. -- Jori Mäntysalo

Re: [sage-support] graph plotting: heights option

2016-03-11 Thread Jori Mäntysalo
difference. For example after t = Posets.PentagonPoset().hasse_diagram() the height-option makes nothing. Except that it does, if you use option layout='acyclic'. I am afraid that you must directly use .set_pos() on the graph. -- Jori Mäntysalo

[sage-support] Weber point

2016-04-05 Thread Jori Mäntysalo
. r.eval(...something...) maybe? -- Jori Mäntysalo

Re: [sage-support] Re: Weber point

2016-04-07 Thread Jori Mäntysalo
? Installation ends with message "Please restart Sage in order to use 'orloca'.". However, even restarting worksheet was not needed. -- Jori Mäntysalo

Re: [sage-support] Re: Weber point

2016-04-07 Thread Jori Mäntysalo
oth Ubuntu and Fedora have it in standard repository. So I suggest you to install local R. -- Jori Mäntysalo

Re: [sage-support] Re: %latex and no output

2016-03-02 Thread Jori Mäntysalo
to /tmp, the process running computation as uid 'sagecalc' reads it and makes a picture file that 'sagegui' can read. But for %latex it does not work: file written by 'sagecalc' gets permissions that do not allow 'sagegui' to read it. Why so? -- Jori Mäntysalo

[sage-support] Matrix over SR, reduced row echelon form

2016-04-28 Thread Jori Mäntysalo
What is the logic behind this: var('a b c d') M = Matrix(SR, [[a, b], [c, d]]) M.rref() --> [1 0] [0 1] ? -- Jori Mäntysalo

[sage-support] Default output form for AlgebraicNumber

2016-04-19 Thread Jori Mäntysalo
(SR, ...). But is there a default setting to change output type of AlgebraicNumber? -- Jori Mäntysalo

Re: [sage-support] how to display graph legend with colored digraph

2016-07-27 Thread Jori Mäntysalo
s(), 'blue': G.sources()}) graphics_array([gr, text("Some colors\nto show special vertices.", (0,0))]) does something that you don't want. I guess that LaTeX (with, say, Tikz) is needed for production quality pictures. Sage's graphics works for demonstration in classroom. -- Jori Mäntysalo

Re: [sage-support] how to display graph legend with colored digraph

2016-07-27 Thread Jori Mäntysalo
f Sage will make it possible to say G.show(vertex_color='red', vertex_colors={'blue': [0, 1], 'green': [2, 3, 4]}) so that you can have a default color for vertices not listed in vertex_colors. Same will be available for edge colors. -- Jori Mäntysalo -- You received this message because yo

Re: [sage-support] Re: Installing the optional python3 package seems to break Sage

2016-08-11 Thread Jori Mäntysalo
, but Sage has not that many available. -- Jori Mäntysalo

[sage-support] Installing GAP packages & SageNB

2017-01-26 Thread Jori Mäntysalo
99). What to do? -- Jori Mäntysalo

Re: [sage-support] Paper citing sagemath

2016-08-31 Thread Jori Mäntysalo
http://arxiv.org/abs/1403.5389 (publication information http://dl.acm.org/citation.cfm?id=2801897=662122917=12870255) -- Jori Mäntysalo

Re: [sage-support] Is it possible to add methods to an existing class at runtime ?

2016-10-08 Thread Jori Mäntysalo
classes not defined in C, like type(Graph()).is_eulerian_and_hamiltonian = lambda self: self.is_eulerian() and self.is_hamiltonian() but that won't work for example to Sage integers. -- Jori Mäntysalo

Re: [sage-support] Re: Element vs UniqueRepresentation

2016-10-08 Thread Jori Mäntysalo
On Sat, 8 Oct 2016, Nils Bruin wrote: What are all of the drawbacks? The ones I am aware of: Also random testing for a hypotheses is hard. I can generate infinitely many random graphs in a loop and try to found a counterexample, but the same does not apply to posets. -- Jori

Re: [sage-support] Re: plotting ln(x) graph on sagemath

2016-09-19 Thread Jori Mäntysalo
ter that fgrep tmp_ log-f shows open(".../.sage/temp/j-op7010/12072/tmp_n3Sn3X.png", ...) = 11 etc. and fgrep EACCESS log-f finds nothing. -- Jori Mäntysalo

Re: [sage-support] Meta question: How do I best specify graphs in sage-support?

2016-08-22 Thread Jori Mäntysalo
1) ) and check for isomorphism. -- Jori Mäntysalo

Re: [sage-support] How should I determine if two strongly regular graphs are isomorphic?

2016-08-23 Thread Jori Mäntysalo
should just expose more Bliss and Nauty features to Sage. -- Jori Mäntysalo

Re: [sage-support] Meta question: How do I best specify graphs in sage-support?

2016-08-23 Thread Jori Mäntysalo
On Tue, 23 Aug 2016, Paul Leopardi wrote: Is there a particular reason why you prefer DiGraph(g).dig6_string() to g.graph6_string() even though it likely to give a string that is twice as long? No. I just didn't know that. (TODO: Add seealso-links to documentation.) -- Jori Mäntysalo

Re: [sage-support] Re: How to limit heavy computations

2016-11-27 Thread Jori Mäntysalo
ing like SageNB above process level does this even more complicated. -- Jori Mäntysalo

Re: [sage-support] Re: How to limit heavy computations

2016-11-27 Thread Jori Mäntysalo
resources for some users. And that is much harder when the resource use comes through SageNB or some similar system. I won't except to see good solutions to this in near future. -- Jori Mäntysalo

Re: [sage-support] Randomness test

2016-11-04 Thread Jori Mäntysalo
know if it will eventually produce other 990 numbers. So, do you have some kind of guess about those numbers, something that they might be produced from a -- Jori Mäntysalo

Re: [sage-support] Re: How to limit heavy computations

2016-11-26 Thread Jori Mäntysalo
: 7589c and in that file I can see a line like DATA = . . . /sage_notebook.sagenb/home/jm58660 and hence user jm58660 is behind the process #7589. This could be scripted of course, but I would like to have better NB made as admin viewpoint in mind. -- Jori Mäntysalo

Re: [sage-support] Well covered graph

2017-09-19 Thread Jori Mäntysalo
PairwiseCompatibleSubsets, see the last example in page http://doc.sagemath.org/html/en/reference/combinat/sage/combinat/subsets_hereditary.html -- Jori Mäntysalo

[sage-support] Data structure for partition refinement

2017-08-31 Thread Jori Mäntysalo
Sage has a static data structure SetPartition, and a dynamic structure DisjointSet that can *combine* blocks. Is there a "dual" structure of latter, something that would start from one big block and would have functions to *split* block? -- Jori Mäntysalo

Re: [sage-support] Random connected poset on n elements

2017-11-30 Thread Jori Mäntysalo
On Thu, 30 Nov 2017, Christian Stump wrote: Is there a way to obtain a random connected poset on n unlabelled elements in sage? How big is your n? "Almost all" finite posets are connected, so uniform distribution of all posets would work too for bigger n. -- Jori Mäntysalo

Re: [sage-support] Random connected poset on n elements

2017-11-30 Thread Jori Mäntysalo
ely it has not been integrated to Sage. I just tested and it takes about 2,2 seconds to generate 11-element posets (there are 46749427 of those) and 38 seconds for 12-element posets. I guess you could use that up to 14 elements. -- Jori Mäntysalo

Re: [sage-support] Re: gap: cannot extend the workspace any more! with tons of free memory.

2018-05-30 Thread Jori Mäntysalo
ome/SWAPFILE swapon /home/SWAPFILE -- Jori Mäntysalo

Re: [sage-support] Generation of graphs where all maximal cliques have the same size

2017-10-19 Thread Jori Mäntysalo
, check=False) from .graph_input import from_graph6 from_graph6(self, data) I think that doing import in a loop might take some time in Python. This won't help much, but maybe a little. -- Jori Mäntysalo

Re: [sage-support] Generation of graphs where all maximal cliques have the same size

2017-10-20 Thread Jori Mäntysalo
On Thu, 19 Oct 2017, Jori Mantysalo wrote: Might be worth trying to use from_graph6 directly. Tested. Don't bother, does not give really speedup that would mean something. -- Jori Mäntysalo

Re: [sage-support] avoiding startup time cost with multiple invocations

2018-01-11 Thread Jori Mäntysalo
structures between Python and C. -- Jori Mäntysalo

Re: [sage-support] avoiding startup time cost with multiple invocations

2018-01-10 Thread Jori Mäntysalo
cho quit > thepipe Or maybe use Sage as controller part, i.e. call C++-program from Sage instead of calling Sage from C++-program? -- Jori Mäntysalo

Re: [sage-support] avoiding startup time cost with multiple invocations

2018-01-10 Thread Jori Mäntysalo
ix computation to a .sage file having some try-except -structure on them? -- Jori Mäntysalo

[sage-support] Combinatorics: Listing minimal subset covers(?)

2018-07-23 Thread Jori Mäntysalo
, 5} would not cover all (sub)lists of L, even if it is not minimun ({2, 4} and {2, 5} are). I suppose that this is NP-complete but can be done in small cases. Might be that this could be formulated as a graph theory problem. -- Jori Mäntysalo

Re: [sage-support] Parallel computation in Sage

2018-07-16 Thread Jori Mäntysalo
, finite field elements...? Symbolics? -- Jori Mäntysalo

Re: [sage-support] Abstract Algebra tutorial ?

2018-07-11 Thread Jori Mäntysalo
in understanding these things. See http://abstract.ups.edu/sage-aata.html -- Jori Mäntysalo

Re: [sage-support] Are they equivalent ?

2018-03-31 Thread Jori Mäntysalo
family Sage also knows some "nice" way to draw it. For other graphs it tries to found a "nice" drawing by partly randomized algorithm. You can also try H.show(layout='planar') -- Jori Mäntysalo

[sage-support] Route inspection problem

2018-04-01 Thread Jori Mäntysalo
I was walking at https://kintulammi.fi/wp-content/uploads/Kintulammi_Opaskartta.jpg and hence wondered if Sagemath has a function to solve https://en.wikipedia.org/wiki/Route_inspection_problem . Didn't found any, is it hidden with some other name or module? -- Jori Mäntysalo

Re: [sage-support] Route inspection problem

2018-04-01 Thread Jori Mäntysalo
implement that some day. -- Jori Mäntysalo