[sage-support] Re: Bug (inconsistent behaviour) of graph6_string/sparse6_string

2019-11-05 Thread Robert Samal
r 5, 2019 at 1:43:23 AM UTC-8, Robert Samal wrote: > > I noticed the following strange behavior of > graph6_string()/sparse6_string() functions of graphs: > > sage: K2=graphs.CompleteGraph(2) > sage: P=K2.cartesian_product(K2) > > sage: print(P.sparse6_string()) > sage

[sage-support] Bug (weird behaviour) of graph6_string/sparse6_string

2019-11-05 Thread Robert Samal
I noticed the following strange behavior of graph6_string()/sparse6_string() functions of graphs: sage: K2=graphs.CompleteGraph(2) sage: P=K2.cartesian_product(K2) sage: print(P.sparse6_string()) sage: print(Graph(P.graph6_string()).sparse6_string()) :CoKN :Cci To explain: I understand,

[sage-support] symbolic manipulation -- insufficient simplification

2019-11-01 Thread Robert Samal
I observed the following weird behavior of the symbolic engine. sage: x/x 1 sage: x^2/x x sage: (x^2+x)/x (x^2 + x)/x sage: assume(x>0) sage: assume(x,'real') sage: assumptions() [x > 0, x is real] sage: (x^2+x)/x (x^2 + x)/x To clarify: first, I consider the first two simplifications slightly

Re: [sage-support] Re: solving a linear system of GF(3) -- strange TypeError

2019-10-09 Thread Robert Samal
Indeed it works in Sage 8.4. Thanks! On Wednesday, October 9, 2019 at 8:34:41 AM UTC-7, Dima Pasechnik wrote: > > This got broken in Sage 8.5. > (still works in 8.4) > > > > On Wed, Oct 9, 2019 at 6:09 AM David Joyner > wrote: > >> >> >> On Wed,

[sage-support] Re: solving a linear system of GF(3) -- strange TypeError

2019-10-08 Thread Robert Samal
Sorry, F=GF(3), I made my original example shorter and didn't read it properly. So the full problematic code is B=matrix(GF(3), 2,2,[1,0,1,0], sparse=True) v=vector(GF(3), [1,1]) B.solve_right(v) Thanks, Robert On Tuesday, October 8, 2019 at 5:17:59 PM UTC-7, Robert Samal wrote: > >

[sage-support] solving a linear system of GF(3) -- strange TypeError

2019-10-08 Thread Robert Samal
I am trying to solve a rather large linear systems of equations of GF(3). As the matrices are sparse, I thought that adding "sparse=True" to the constructor of the matrix could be of help. However, I ran to a strange error message. B=matrix(GF(3), 2,2,[1,0,1,0], sparse=True) v=vector(F,

[sage-support] Sage Crash Report

2016-12-27 Thread Robert Samal
-- 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 post to this group, send email to sage-support@googlegroups.com.

[sage-support] Re: External viewer

2016-01-07 Thread Robert Samal
f627fec5000) On Thursday, January 7, 2016 at 6:38:53 PM UTC+1, Volker Braun wrote: > > Can you tell us more about what eog links to? > > $ sage -sh command -v eog > /usr/bin/eog > $ sage -sh ldd /usr/bin/eog # adjust path as necessary > > Also, are you overridin

[sage-support] Multivariate polynomials: libsingular vs. polydict

2012-09-05 Thread Robert Samal
Hi, I'm trying to compute something using multivariate polynomials, and am struggling to understand the relation between polynomials of type type 'sage.rings.polynomial.multi_polynomial_libsingular.MPolynomial_libsingular' and of type class

[sage-support] Re: Linear programming in sage

2012-08-30 Thread Robert Samal
Thanks John! Your suggestion sage: p.solver_parameter(simplex_or_intopt, simplex_then_intopt) Works nicely also on sage v5.2. It would be worth to document it though. p.solve? doesn't mention anything (p = MixedIntegerLinearProgram() ), p.solver_parameter says that GLPK specific

[sage-support] Linear programming in sage

2012-08-28 Thread Robert Samal
way how to distinguish these two cases? I suppose I could use cvxopt, but I fear it would be too slow for the real program I want to use it for. Thanks in advance, Robert Samal -- You received this message because you are subscribed to the Google Groups sage-support group. To post

[sage-support] error in comparison of pi

2012-05-11 Thread Robert Samal
Hi! By some random experiments I discovered the following weirdness: sage: bool(piInfinity) False sage: bool(piInfinity) True So far it seems that pi Infinity is the only misbehaving comparison: sage: bool(pi2*pi) True sage: bool(2*piInfinity) True sage: bool(eInfinity) True sage:

[sage-support] Re: semidefinite programming using csdp -- python import errors

2012-04-07 Thread Robert Samal
Thanks a lot, Dmitrii! It works for me now. (Actually for quite some time, but now I can happily report, that compared to cvxopt that I was using before, using csdp is about 10-times faster!) I didn't know about sage -sh , that is a very useful trick (perhaps it should be documented more, or

[sage-support] Solving a simple equation

2012-03-27 Thread Robert Samal
disagrees. Who is right? :-) What can I do to get the solution automatically, without substituting tan manually? Thanks, Robert Samal -- 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

[sage-support] Re: semidefinite programming using csdp -- python import errors

2012-03-23 Thread Robert Samal
Can you post the logs from doing sage -python setup.py instasll, as well as explicit instructions (where to download, etc.) for how to duplicate the error? Sure. It's rather long, but I suppose if it works it would be useful for other people, too. I was hoping someone could spot the

[sage-support] Re: solve -- an easy issue with solution_dict=True)

2010-10-19 Thread Robert Samal
Speaking about solve(), is there a place to report equations it cannot solve (and I believe it should?). I suppose putting it on the same Trac ticket is wrong practice? But should it be another ticket, or some yet other place? Robert Yup.  solve() probably needs a general overhaul (and has for

[sage-support] Graph drawing has issues with edge labels

2010-10-12 Thread Robert Samal
The following code should produce a drawing of the Frucht graph with edges labeled 0 upto 17. However, labels 16 and 17 are missing, while 15 is misplaced. The edge labels are set correctly (as the last line shows), they only don't show up. The weird thing is that other graphs work OK (at least

[sage-support] solve -- an easy issue with solution_dict=True)

2010-10-12 Thread Robert Samal
I observed that solve behaves inconsistently in the following regards: sage: solve([x==1,x==-1],x) [] (this is as expected) However: solve([x==1,x==-1],x, solution_dict=True) produces an error message. Easy to live with, but I was scared when I first saw it :-). It should be easy to correct,

[sage-support] Re: Wrong limit

2008-11-11 Thread Robert Samal
Hi Minh, I think this issue has been fixed in sage-3.1.4. Under sage-3.1.4, the command sage: lim ( x*(sqrt(x^2)-sqrt(x))/sqrt(x^2 -x), x=oo) +Infinity returns what you'd expect. That's great news, perhaps I should update more frequently. By any chance, does somebody know what was the