(), looping over a string and so
on. But they are another story.)
--
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
some assumptions.
--
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
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
- -
Done this. (#18541)
--
Jori Mäntysalo
Plotting a graph has option vertex_shape. Where is the list of possible
values?
--
Jori Mäntysalo
] [fig-2-here]
[fig-1-here] [fig-2-here]
sin cos
?
--
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
nothing about generating graphics in general. Same
with sage internals about graphics.
--
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
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
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
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
welcome.
--
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
done that. (On port 443 with authbind.)
--
Jori Mäntysalo
ted, but it seems that Sage sends only first certificate.
--
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
sed as a proxy to locally running
sagenb.
--
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
that in future we could just give a link as an answer.
--
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
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
.)
(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
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
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
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
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 "
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
.
Not a bug from a technical viewpoint. But unexpected for a new user, and
worth mentioning.
--
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
()
G.add(g.plot(), position=(2,3))
G.add_primitive(Arrow(...))
. . .
--
Jori Mäntysalo
sage -i) really works."?
--
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
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
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
.
OK. But what has changed, as now the pictures does not come one-by-one?
--
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
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
of 495028
--
Jori Mäntysalo
) does not.
--
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
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
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
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
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
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
.
r.eval(...something...) maybe?
--
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
oth Ubuntu and Fedora have it in standard
repository.
So I suggest you to install local R.
--
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
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
(SR, ...).
But is there a default setting to change output type of AlgebraicNumber?
--
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
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
, but Sage
has not that many available.
--
Jori Mäntysalo
99).
What to do?
--
Jori Mäntysalo
http://arxiv.org/abs/1403.5389 (publication
information
http://dl.acm.org/citation.cfm?id=2801897=662122917=12870255)
--
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
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
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
1) ) and check for isomorphism.
--
Jori Mäntysalo
should just expose more Bliss and Nauty features to
Sage.
--
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
ing like SageNB above process level does this even
more complicated.
--
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
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
: 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
PairwiseCompatibleSubsets, see the last example in page
http://doc.sagemath.org/html/en/reference/combinat/sage/combinat/subsets_hereditary.html
--
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
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
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
ome/SWAPFILE
swapon /home/SWAPFILE
--
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
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
structures between Python and C.
--
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
ix
computation to a .sage file having some try-except -structure on them?
--
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
, finite field elements...?
Symbolics?
--
Jori Mäntysalo
in understanding these things.
See http://abstract.ups.edu/sage-aata.html
--
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
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
implement that some day.
--
Jori Mäntysalo
85 matches
Mail list logo