[sage-support] Graph class method .lovasz_theta is broken

2021-07-19 Thread Craig E Larson
Lovasz' theta function used to work. Now it is broken for a wide variety of graphs. Here's one example: g=graphs.CompleteGraph(20) g.lovasz_theta() In this case the produced error is: Error in lines 2-2 Traceback (most recent call last): File "/cocalc/lib/python3.8/site-packages/smc_sagews/sag

[sage-support] Linear Programming - loading LP or MPS file?

2015-09-01 Thread Craig E Larson
I see that there are methods for saving a LP as and LP or MPS file in Sage. Is it possible to *load* an LP from one of these file types? The online help that I've found doesn't mention this or give examples of how to do it. Thanks! Craig -- You received this message because you are subscribed

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

2015-06-09 Thread Craig E Larson
Thanks! On Tue, Jun 9, 2015 at 1:03 PM, Vincent Delecroix <20100.delecr...@gmail.com > wrote: > You need to close the parenthesis > > sage: t = ( > : 1, > : 2) > sage: t > (1, 2) > > Vincent > > On 09/06/15 18:58, Craig E Larson wrote: > >&

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

2015-06-09 Thread Craig E Larson
Sometimes I forget a parenthesis, etc, and I get a colon input prompt. Double-enter won't escape the colon. Correcting the syntax also isn't enough. Control-Z will exit Sage totally and I lose my data and history. Is there another way to escape the colon besides Control-Z? Here's an example. s

[sage-support] bug in Graph is_subgraph method

2015-05-02 Thread Craig E Larson
Graph("E`oo") is the disjoint union of 2 triangles. Graph("ExSW") is two triangles with 2 more edges connecting them. So the first graph is a subgraph (a non-induced subgraph) of the second graph. But Sage reports that it is not. Both graphs have order 6. sage: h=Graph("E`oo") sage: g=Graph("Ex

[sage-support] Re: Unexplained Integration error message

2014-07-22 Thread Craig E Larson
> This behavior was on Cloud Sage: 'Sage Version 6.2.rc2, Release Date: 2014-05-04' -- 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] Unexplained Integration error message

2014-07-22 Thread Craig E Larson
I am getting an error that I don't understand for the following definite integral. sage: integral(sqrt(1+(9*cos(3*x)^2)),0,pi/2) This is definitely real on its domain and under the square-root is always positive. Nevertheless, I get the error: "RuntimeError: ECL says: Error executing code in M