[sage-devel] Bug in module_morphism

2016-08-23 Thread VictorMiller
I just tried the following code on sagemath cloud. Note the last line in the error message -- clearly not correct! Victor sage> V = VectorSpace(QQ,12) sage> C = ModulesWithBasis(V.base_ring()) sage> C0 = C.FiniteDimensional() sage> V in C0 False sage> v = V.random_element() sage> V0 =

Re: [sage-devel] matrix rational_form

2016-03-31 Thread VictorMiller
On Thursday, March 31, 2016, VictorMiller <victor...@gmail.com > > wrote: > >> The method rational_form for matrices just returns the class >> representative of the conjugacy class of a matrix by other rational >> matrices. A similar function PrimaryRationalForm

[sage-devel] matrix rational_form

2016-03-31 Thread VictorMiller
The method rational_form for matrices just returns the class representative of the conjugacy class of a matrix by other rational matrices. A similar function PrimaryRationalForm in magma returns 3 things -- the class representative, a rational matrix which, when conjugated by the input, gives

[sage-devel] Problems installing package qepcad

2015-05-20 Thread VictorMiller
I have Sage-6.6 on my macbook. At first I tried to install the package qepcad and got Not Found: '//www.sagemath.org/spkg/optional/list. When I tried to have my browser go to http://www.sagemath.org/spkg and clicked on Optional I got 404. I then went to the MIT mirror, and downloaded the

[sage-devel] Very global variable

2011-07-15 Thread VictorMiller
I'd like to have a python very global variable -- i.e. one which will be unique, not only across all worksheets in a notebook, but across ALL notebook sessions on a server, even those with different log in ids. How can I do this? -- To post to this group, send an email to

[sage-devel] error doing install_package('glpk')

2011-04-06 Thread VictorMiller
I got a cython error. On on a Mac book pro running OSX 10.6 with sage 4.6.2 64 bit: cythoning patch/mipGlpk.pyx to patch/mipGlpk.cpp Error converting Pyrex file to C: ... # Builds the GLPK version of the problem

[sage-devel] Re: Adding a new type

2010-10-28 Thread VictorMiller
to the axioms). This also extends in standard ways to power series. Victor On Oct 27, 5:07 pm, Florent Hivert florent.hiv...@univ-rouen.fr wrote:       Hi Victor, On Wed, Oct 27, 2010 at 01:55:21PM -0700, VictorMiller wrote: I would like to experiment with adding some new types.  One

[sage-devel] Adding a new type

2010-10-27 Thread VictorMiller
I would like to experiment with adding some new types. One of the is SemiRing (this is an algebraic structure which is like a ring except that there might not be an additive inverse -- think of the nonnegative integers). I would like to insert it in the class hierarchy so that every Ring is a

[sage-devel] A sage development utility?

2010-08-05 Thread VictorMiller
I find that in writing python code for inclusion into SAGE that I always need to add lines like: from foo import baz,faz,buz to the top of my file, in order to get standard SAGE things such as ZZ, QQ, factor, randint, etc. etc. known to the code. The way I've been doing that is to look at my

[sage-devel] Moving to a new SAGE version

2010-03-29 Thread VictorMiller
I'm in the process of developing some SAGE packages, so I've made my own private copy of the whole SAGE tree, and have added/modified some files in that. I'd like to upgrade to a new SAGE version. What's the proper procedure for doing this? That is how do I get my changes installed into it. I

[sage-devel] Build problem with sage 4.3

2009-12-14 Thread VictorMiller
When trying to build sage 4.3 on a 64 bit Redhat system, the first error that I get is: Failed to find the necessary bits to build these modules: bsddb185 dl imageop sunaudiodev To find the necessary bits, look in setup.py in detect_modules() for the module's name.

[sage-devel] Re: Build problem with sage 4.3

2009-12-14 Thread VictorMiller
that anything involving sudo is out. Victor On Dec 14, 2:49 pm, VictorMiller victorsmil...@gmail.com wrote: When trying to build sage 4.3 on a 64 bit Redhat system, the first error that I get is: Failed to find the necessary bits to build these modules: bsddb185           dl

[sage-devel] Re: Build problem with sage 4.3

2009-12-14 Thread VictorMiller
that error message might just be warning, but its hard to tell. -Marshall On Dec 14, 3:22 pm, VictorMiller victorsmil...@gmail.com wrote: More data.  I downloaded the Python-2.6.4 source from python.org and tried to build it.  I get the same sort of errors mentioning bsddb185 and sunaudiodev

[sage-devel] Re: Build problem with sage 4.3

2009-12-14 Thread VictorMiller
This is the last error that's in the sage install.log, before it quits: 'import site' failed; use -v for traceback Traceback (most recent call last): File string, line 1, in ? File /east/u/victor/sage-4.3.rc0/local/lib/python/hashlib.py, line 136, in ? md5 =

[sage-devel] Old SAGE sources

2009-12-11 Thread VictorMiller
Can someone tell me where I can get SAGE sources for old (possibly very old) versions? The reason that I ask is that I've been unable to build SAGE from sources on my 32 bit redhat system since version 4. The error that keeps happening is first the following: *** WARNING: renaming readline since

[sage-devel] Class Design

2009-12-10 Thread VictorMiller
This is a question about class design in SAGE. I'm going to implement classes for various flavors of decision diagrams using the outside package CUDD. It turns out that Cudd and its library is already part of SAGE -- it's included as part of Polybori (which uses it under the covers). The

[sage-devel] Re: Multiplying inequality by negative number

2009-12-10 Thread VictorMiller
To do this correctly in full generality one needs to get into cyclindrical algebraic decomposition -- a set in R^n has a cylindrical algebraic decomposition if it is written as a finite union of sets of the form { x : f(x) 0 } where f is a polynomial. There is an algorithm due to Tarski for

[sage-devel] Re: Error building sage 4.2.1

2009-12-09 Thread VictorMiller
1m40.578s sys 0m34.178s Error building Sage. ld these modules: dbmreadline On Nov 19, 6:01 pm, William Stein wst...@gmail.com wrote: On Thu, Nov 19, 2009 at 2:29 PM, VictorMiller victorsmil...@gmail.com wrote: (cd /u/victor/sage-4.2.1/local/bin; ln python2.6 python) rm

[sage-devel] Error building sage 4.2.1

2009-11-19 Thread VictorMiller
(cd /u/victor/sage-4.2.1/local/bin; ln python2.6 python) rm -f /u/victor/sage-4.2.1/local/bin/python-config (cd /u/victor/sage-4.2.1/local/bin; ln -s python2.6-config python- config) /usr/bin/install -c -m 644 ./Misc/python.man \ /u/victor/sage-4.2.1/local/share/man/man1/python.1

[sage-devel] Re: Accessing CUDD

2009-11-12 Thread VictorMiller
...@informatik.uni-bremen.de wrote: On Tuesday 10 November 2009, VictorMiller wrote: The package CUDD is part of Polybori, which uses it for some internal manipulation.  I'm interested in accessing some CUDD functions directly, but I'm not sure where to find the library.  More specifically, if I wanted

[sage-devel] Accessing CUDD

2009-11-10 Thread VictorMiller
The package CUDD is part of Polybori, which uses it for some internal manipulation. I'm interested in accessing some CUDD functions directly, but I'm not sure where to find the library. More specifically, if I wanted to write some Cython to access these functions what path should I use? It's

[sage-devel] Re: Performances in Sage

2009-09-08 Thread VictorMiller
Yes, this is a great idea. The benchmarks should be contained in some sort of database, and, the previous values on the same machine should be compared to the new values, and significant departures (both positively and negatively) listed. If performance degrades significantly on one test, it

[sage-devel] Re: Sage Air Defense System

2009-08-28 Thread VictorMiller
This brings back memories -- my father went to work for the Rand Corporation (System Development Division -- later spun off as SDC) in 1956 to join project SAGE. He was later the site leader of one of the SAGE installations at Stewart AFB in Newburgh, NY. The SAGE computer -- the ANFSQ7 (or Q7)

[sage-devel] Failed build of sage 4.1 on redhat

2009-08-07 Thread VictorMiller
I just downloaded the source of sage 4.1 from sagemath.org, and tried to build it (using make). It failed. Here are some relevant parts of the install.log building 'dbm' extension gcc -pthread -fPIC -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall - Wstrict-prototypes -DHAVE_GDBM_NDBM_H -I.

[sage-devel] Re: Failed build of sage 4.1 on redhat

2009-08-07 Thread VictorMiller
: On Fri, Aug 7, 2009 at 3:35 PM, VictorMiller victorsmil...@gmail.comwrote: I just downloaded the source of sage 4.1 from sagemath.org, and tried to build it (using make).  It failed. Here are some relevant parts of the install.log What compiler?  What operating system (i.e., which redhat

[sage-devel] Re: Failed build of sage 4.1 on redhat

2009-08-07 Thread VictorMiller
bogomips: 5985.03 clflush size: 64 cache_alignment : 64 address sizes : 38 bits physical, 48 bits virtual power management: On Aug 7, 7:53 pm, William Stein wst...@gmail.com wrote: On Fri, Aug 7, 2009 at 4:47 PM, VictorMiller victorsmil...@gmail.comwrote: gcc (GCC) 4.1.2 20080704

[sage-devel] Re: Failed build of sage 4.1 on redhat

2009-08-07 Thread VictorMiller
, William Stein wst...@gmail.com wrote: On Fri, Aug 7, 2009 at 4:47 PM, VictorMiller victorsmil...@gmail.comwrote: gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-44)  uname -a Linux manley 2.6.18-128.1.10.el5 #1 SMP Wed Apr 29 13:55:17 EDT 2009 i686 i686 i386 GNU/Linux What is the output of  cat

[sage-devel] Re: Failed build of sage 4.1 on redhat

2009-08-07 Thread VictorMiller
No, installing or upgrading Linux isn't an option. Victor On Aug 7, 9:40 pm, William Stein wst...@gmail.com wrote: On Fri, Aug 7, 2009 at 6:37 PM, VictorMiller victorsmil...@gmail.comwrote: Here's the cpuinfo: processor       : 0 vendor_id       : GenuineIntel cpu family

[sage-devel] Re: Getting started with my own branch

2009-08-06 Thread VictorMiller
On Aug 6, 7:02 am, gsw georgswe...@googlemail.com wrote: On 5 Aug., 19:15, VictorMiller victorsmil...@gmail.com wrote: Ok, I think I've found the problem.  Perhaps this should point to the need for making clear and complete instructions about creating your own copy. I found that in my

[sage-devel] Re: Getting started with my own branch

2009-08-05 Thread VictorMiller
: On Tue, Aug 4, 2009 at 12:12 PM, VictorMiller victorsmil...@gmail.comwrote: More info.  When I type notebook() after typing the banner telling me to open my web browser it prints a path to a system files copy of sob.py  (not my local copy!) and a deprecation warning about

[sage-devel] Re: Getting started with my own branch

2009-08-05 Thread VictorMiller
On Aug 4, 5:57 pm, William Stein wst...@gmail.com wrote: On Tue, Aug 4, 2009 at 2:50 PM, VictorMiller victorsmil...@gmail.comwrote: It isn't.  Systemwide SAGE is only in my path if I run a particular script.  I tried this in a fresh shell and checked that the systemwide SAGE wasn't

[sage-devel] Re: Getting started with my own branch

2009-08-05 Thread VictorMiller
? Victor On Aug 5, 12:50 pm, VictorMiller victorsmil...@gmail.com wrote: First, when I run mysage -sh and look at the environment variables involving the string SAGE, I find they the all point to my local copy.  There is a SAGE_SERVER variable which has the valuehttp://www.sagemath.org

[sage-devel] Getting started with my own branch

2009-08-04 Thread VictorMiller
I have a copy of SAGE 4.1 installed in our system files, and I want to work on changing some code. So, I copied sage and its subdirectories into my home directory: cp -p -R sage-system-directory ~/sage I also copied the sage script into my ~/bin, renaming it mysage and then edited the

[sage-devel] Re: Getting started with my own branch

2009-08-04 Thread VictorMiller
More details. When I invoke mysage from the command line, and I type sys.path it prints paths pointing to my local branch. However, if I fire up the notebook server by notebook() start a new notebook and type sys.path it points to the system wide directory. If I type

[sage-devel] Re: Getting started with my own branch

2009-08-04 Thread VictorMiller
Thanks for the suggestions. I checked -- my local copies are all writeable, and sage-current-location.txt contains my local path. As I said in the previous post, everything works ok in command line. It's just when I work from the notebook that I get pointed back at the system files. Could my

[sage-devel] Re: Getting started with my own branch

2009-08-04 Thread VictorMiller
More info. When I type notebook() after typing the banner telling me to open my web browser it prints a path to a system files copy of sob.py (not my local copy!) and a deprecation warning about the md5 module. Victor On Aug 4, 2:46 pm, gsw georgswe...@googlemail.com wrote: Guess 2: You

[sage-devel] Re: Getting started with my own branch

2009-08-04 Thread VictorMiller
, VictorMiller victorsmil...@gmail.comwrote: More info.  When I type notebook() after typing the banner telling me to open my web browser it prints a path to a system files copy of sob.py  (not my local copy!) and a deprecation warning about the md5 module. Why don't you try editing your

[sage-devel] multiplicative_order in finite fields

2009-07-31 Thread VictorMiller
I was just looking at the code for multiplicative_order in finite_field_element.py, and noticed that it factors the group order, and find the cofactors corresponding to each prime power dividing the order (which is really the only algorithm that I know to do this). To avoid repeating this

[sage-devel] Re: multiplicative_order in finite fields

2009-07-31 Thread VictorMiller
and prime associated with them, and then change multiplicative order to use that method. Victor On Jul 31, 11:16 am, Simon King simon.k...@nuigalway.ie wrote: Hi Victor, On Jul 31, 3:59 pm, VictorMiller victorsmil...@gmail.com wrote: I was just looking at the code for multiplicative_order

[sage-devel] sage -clone permission denied

2009-07-22 Thread VictorMiller
I just tried to run sage -clone on our local SAGE installation and got back the following error. Is there something wrong with the SAGE installation? How can it be fixed? Victor Now cloning the current Sage library branch... hg clone sage sage-victor Not trusting file

[sage-devel] Re: Sage 3.4.2.rc0 release!

2009-05-05 Thread VictorMiller
As a comparison I just ran my old C program (implementing the algorithm in my paper with Lagarias and Odlyzko) on my workstation which is a fast Dell '86 box (sorry I don't have more details) running Red Hat: time ./findn 249 n=249_999_999_999_999

[sage-devel] SAGE bug report: a SIGSEGV

2008-03-06 Thread VictorMiller
The following code causes a crash: R = BooleanPolynomialRing(2) f = 1 + R.gens()[0] s = f.set() t = set(s) # this happened on sagenb.org, as well as the latest SAGE version installed locally. Unhandled SIGSEGV: A segmentation fault

[sage-devel] Problem installing Cython

2008-01-09 Thread VictorMiller
I just tried downloading sage-2.9.3 and building it on my system (value of uname -a is below): Linux runner 2.6.9-55.0.9.ELsmp #1 SMP Tue Sep 25 02:17:24 EDT 2007 i686 i686 i386 GNU/Linux I got an error. As requested, I'm posting the relevant lines. Victor sage-spkg cython-0.9.6.9 21