ASKSAGE: Sage Q&A Forum - Latest question feedhttp://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Fri, 24 May 2019 12:43:09 -0500installing the kohel databasehttp://ask.sagemath.org/question/46654/installing-the-kohel-database/ I'm trying to work with modular polynomials and Hilbert class polynomials in sage, and I would try the code
Phi = ClassicalModularPolynomialDatabase()
print(Phi[2])
The resulting error is a "LookupError: filename /opt/sagemath-8.6/local/share/kohel/PolMod/Cls/pol.002.dbz does not exist"
Okay, no big deal, I just need to download the right database follow the path that sage is looking for the file at and put it there right? The problem is, when I went to download the database, from the sage website (http://ftp.yz.yamagata-u.ac.jp/pub/math/sage/spkg/upstream/database_kohel/index.html) I get a strange .gz document, that doesn't let me use the classical modular polynomial database like I need to. I'm I doing this right? If not, where can I download the required package, and if I am, what's the next step to be able to use this database in sage? I'm using version 8.6.JRHalesFri, 24 May 2019 12:43:09 -0500http://ask.sagemath.org/question/46654/How to use modular polynomials in Sage?http://ask.sagemath.org/question/41271/how-to-use-modular-polynomials-in-sage/I want to perform some calculations using modular polynomials, and I saw that Sage already offers some databases for this. Most notably, I came across [this](https://doc.sagemath.org/html/en/reference/databases/sage/databases/db_modular_polynomials.html#sage.databases.db_modular_polynomials.ClassicalModularPolynomialDatabase). But, I couldn't find any documentation or tutorial as how this database is actually used, or what it actually includes. I can do something like this, but it doesn't give much information:
db = ClassicalModularPolynomialDatabase()
print db
Is there any tutorial or documentation as how to use modular polynomials in Sage?ninhoMon, 26 Feb 2018 14:41:17 -0600http://ask.sagemath.org/question/41271/Stein-Watkins Database of Elliptic Curveshttp://ask.sagemath.org/question/40721/stein-watkins-database-of-elliptic-curves/With the Cremona database, sage can list ranks of elliptic curves of conductor in an interval [a,b]. For instance,
[(E.ainvs(), E.rank()) for E in cremona_curves(srange(a,b))]
Can the same be done on sage with the Stein-Watkins database?ajbSat, 20 Jan 2018 22:08:37 -0600http://ask.sagemath.org/question/40721/Cannot install Cremona databasehttp://ask.sagemath.org/question/25566/cannot-install-cremona-database/ Tried to install big Cremona database via !Sage command. Syntax error was returned. bweinfachMon, 19 Jan 2015 21:02:45 -0600http://ask.sagemath.org/question/25566/How can I plot matrices from Database into different sage cells?http://ask.sagemath.org/question/24056/how-can-i-plot-matrices-from-database-into-different-sage-cells/ How can I plot multiple matrices from a sqlite Database into different sage cells?
My first intention was iterate over the SQL result set with python in sage and plot every result into a different sage cell.
But I do not know how I could plot them into different sage cells?
Why I would do that? Thats simple I have between two and over 20 Matrices and every matrix has the dimension of 91x365!balduinMon, 08 Sep 2014 12:10:24 -0500http://ask.sagemath.org/question/24056/Nomenclature and Methods: Networkxhttp://ask.sagemath.org/question/10156/nomenclature-and-methods-networkx/I am looking for what to call the features I am looking for and tools to implement them.
My work process (industrial chemical processing) is a refinement of block diagrams indicating high level functions, then more detailed block diagrams. Then the block are broken down into a network of unit operations. The unit operations are then further broken down into detailed pieces of equipment.
Is there a termonology for this refinement process and associated graphs?
I would like to store this information in a database. The components (nodes) and the connection (edges) characterizations are straight forward. I see two immediate challenges:
1) How to record (and subsequently carry over) the relationships of the upper level components and connections with the lower level components and connections.
2) How to keep track of changes/versions at different levels.
At each level, there may be a number of alternatives that will need to be studied and compared. As any one design progresses, new finding will be uncovered which will be brought back into potentially all alternatives and levles. These changes will need to be tracked to assure complete implementation and comparisons.
Each level and alternative will have associated design artifacts.It would be valuable to be able to keep track of the relationships between the alternative designs.
Of course all of this suggests there is also a meta graph of what has been done, none the less that a doe, design of experiment may be necessary to plan this and then track the development.
I am looking for help in how to define a shema to facilitate all of this and what databases may be well suited to use with Networkx.
Ray
rayWed, 29 May 2013 01:51:55 -0500http://ask.sagemath.org/question/10156/Database Connectionhttp://ask.sagemath.org/question/8747/database-connection/I have an Oracle database that contains my data. I would like Sage to connect to it and read from there and when done I would like Sage to write back to the database. Is there a way to do that?zjah-2Tue, 19 Feb 2013 01:45:11 -0600http://ask.sagemath.org/question/8747/Graph databasehttp://ask.sagemath.org/question/9501/graph-database/I know there is a built-in [graph database](http://www.sagemath.org/doc/reference/sage/graphs/graph_database.html). So, if I wanted to know the value of many different graph parameters for some small graph, I could just use the database to find them instead of having Sage calculate them. (or, at least in one case, Sage is actually unable to calculate them, e.g., Lovasz number).
But, I would like a similar thing for many of the named graphs built in to Sage (single graphs and families). Does anything exist? For example, if you try to calculate the chromatic number of the Higman Sims graph, it will take a very long time or may never finish. But, the value is likely known and it would be sweet if it were just built-in. Similarly, maybe the chromatic number of a complete multipartite graph. That is an obvious calculation but one that could take a very long time in Sage if there are many vertices. Is such a thing already built in? Or, is any one working on such things?G-SageMon, 05 Nov 2012 08:14:47 -0600http://ask.sagemath.org/question/9501/Iterating over all non isomorphic connected graphs of given orderhttp://ask.sagemath.org/question/9112/iterating-over-all-non-isomorphic-connected-graphs-of-given-order/Hello!
I would like to iterate over all connected non isomorphic graphs and test some properties. For all the graphs on less than 11 vertices I've used the data available in graph6 format [here](http://cs.anu.edu.au/~bdm/data/graphs.html).
Now I would like to test the results on at least all connected graphs on 11 vertices.
Looking at the documentation I've found that there is a [graph database](http://www.sagemath.org/doc/reference/sage/graphs/graph_database.html) in sage. However, trying just the first example resulted in some errors :
> RuntimeError
> Traceback (most recent call last)
>
> /home/a/<ipython console> in
> <module>()
>
> /usr/lib/sage/local/lib/python2.7/site-packages/sage/databases/sql_db.pyc
> in show(self, **kwds)
> 664 cur.execute(self.__query_string__,
> self.__param_tuple__)
> 665 except:
> --> 666 raise RuntimeError('Failure to fetch
> query.')
> 667
> 668 print _create_print_table(cur, [des[0] for des in cur.description], \
>
> RuntimeError: Failure to fetch query.
What I would like to ask is the following:
1. Is there a way to iterate over all connected (nonisomorphic) graphs of order 11?
2. Is there a databse for these graphs already present in sage?
3. Has anyone considered integrating (and extending) the data from McKay's site into sage?
JernejMon, 25 Jun 2012 23:33:20 -0500http://ask.sagemath.org/question/9112/Writing data to filehttp://ask.sagemath.org/question/8332/writing-data-to-file/This is all in the Sage Notebook:
I want to store some data in a file, Excel or Access or something, because that's what I know. I am using statements like o.write("something" + ", " + "something" + "\r") and I'm doing this in a loop. I'm writing it to a txt file. So, Sage does its thing and there's the little "stuff.txt" link I can click on afterward. I click on it and it looks just how I want it. Then, using Firefox 6.whatever is out these days, I do file save as and save it as stuff.txt. I open it and there are no line breaks at all and the data is pretty much useless. I also tried "\n" and same thing.
I found a sort of solution, because I could use "stuff.csv" instead and it mostly works right. The problem there is, I have data which has commas in it. So, I was hoping to do a .txt file using tab delimited so the commas in the data didn't cause problems. But, the above problem for .txt files exists and I don't know how to fix it.
Oh, also just copying and pasting the data from the file Sage creates (before saving it using Firefox) didn't work today when I had nearly 300,000 lines of data. Excel/Access have the "[Not responding]" message, even though Excel and Access can easily handle 300,000 lines of data. Perhaps it is the clipboard is not big enough for that? I don't know.
Any ideas? Thanks for your help!G-SageMon, 19 Sep 2011 16:01:20 -0500http://ask.sagemath.org/question/8332/Database Schemas?http://ask.sagemath.org/question/7602/database-schemas/There are a number of [databases][1] in sage, for curves or graphs or what have you. Where can I find the [schemas][2] for these?
[1]: http://www.sagemath.org/doc/reference/databases.html
[2]: http://en.wikipedia.org/wiki/Database_schemaWilliam LaffinFri, 20 Aug 2010 11:04:37 -0500http://ask.sagemath.org/question/7602/