[sage-support] Bug in canonical_height for dynamical systems?

2023-06-06 Thread dkrumm
The following few lines lead to a crash in Sage 10.0, with error message "TypeError: Not an element of the order." Is this an error on my part? K. = NumberField(3*x^2 + 1) P. = ProjectiveSpace(K, 1) phi = DynamicalSystem_projective([a*(z^2 + w^2),z*w]) phi.canonical_height(P(a,1)) -- David --

[sage-support] Subgroups of class group

2012-01-25 Thread dkrumm
How can one create a subgroup of the ideal class group of a number field by specifying a list of ideals to use as generators? I've tried using the subgroup commands, with no success. Any help would be much appreciated. -- To post to this group, send email to sage-support@googlegroups.com To unsub

[sage-support] Re: Indexing by elements of a list

2011-09-03 Thread dkrumm
The dictionary is exactly what I needed. Thanks! On Sep 3, 3:56 am, Simon King wrote: > Hi dkrumm, > > On 3 Sep., 09:33, dkrumm wrote: > > > Is there a data structure in Python that would allow me to do the > > following: > > > I have a list of positive integ

[sage-support] Indexing by elements of a list

2011-09-03 Thread dkrumm
Is there a data structure in Python that would allow me to do the following: I have a list of positive integer pairs, say [[1,2], [1,3], [2,5]]. For each pair [i,j] in my list I need to store in memory a number c[i,j] which is a floating point number with some large precision. I'd like to create s

[sage-support] Re: Can't build sage library

2011-09-01 Thread dkrumm
Great! So it looks like maybe it'll be working soon. On Aug 31, 11:00 pm, Maarten Derickx wrote: > Ok, I re asked the question on sage devel. > Seehttps://groups.google.com/forum/#!forum/sage-develfor the most recent > status. -- To post to this group, send email to sage-support@googlegroups.co

[sage-support] Re: Bug in global_height

2011-08-31 Thread dkrumm
Unfortunately, I can't do these sorts of tests because I can't rebuild the sage library on my machine right now. However, the only change I made to the height function was a couple of parentheses, so the functionality should not be affected in any way, only the output. On Aug 31, 6:19 pm, Maarten

[sage-support] Re: Bug in global_height

2011-08-31 Thread dkrumm
After many difficulties and confusions, I think I understood enough about Mercurial queues to upload a patch. Thanks for your help! On Aug 31, 2:08 pm, William Stein wrote: > On Wed, Aug 31, 2011 at 10:39 AM, Maarten Derickx > > wrote: > > > On Tuesday, August 30, 2011 11:51:1

[sage-support] Re: Can't build sage library

2011-08-31 Thread dkrumm
OK, yes, I'm running Lion with Xcode 4. On Aug 31, 1:29 pm, Maarten Derickx wrote: > Is it on a OS X lion machine or is the xcode version 4? Because it is known > currently that building sage does not work well with those yet. > > Search sage-devel for xcode 4 and lion or lionizing for the proble

[sage-support] Re: Can't build sage library

2011-08-31 Thread dkrumm
nterpreters/ wrapper_rr.so In file included from sage/misc/darwin_memory_usage.c:4: /usr/include/mach/task_info.h:252: error: expected specifier-qualifier- list before ‘vm_extmod_statistics_data_t’ error: command 'gcc' failed with exit status 1 sage: There was an error installing modified sage l

[sage-support] Re: Can't build sage library

2011-08-31 Thread dkrumm
Thanks! I did that and it's working now. On Aug 31, 3:37 am, Robert Bradshaw wrote: > On Tue, Aug 30, 2011 at 3:08 PM, dkrumm wrote: > > I just made a new installation of Sage 4.7.1 and I tried to build the > > library (although I haven't made any changes to it). I g

[sage-support] Can't build sage library

2011-08-30 Thread dkrumm
I just made a new installation of Sage 4.7.1 and I tried to build the library (although I haven't made any changes to it). I get this error message: Building Sage on OS X in 64-bit mode Creating SAGE_LOCAL/lib/sage-64.txt since it does not exist Detected SAGE64 flag Building Sage on OS X in 64-bit

[sage-support] Re: Bug in global_height

2011-08-30 Thread dkrumm
Thanks, Maarten. I'm getting stuck when I run hg_sage.commit() . I do not get a text editor to open as described in the links you gave me. Instead, I get the same info as when I ran hg_sage.diff(), just a list of the changes I made. Any idea of why this might happen? On Aug 30, 8:47 am, Maarten D

[sage-support] Re: Bug in global_height

2011-08-30 Thread dkrumm
it yet. Thanks, David On Aug 29, 10:59 pm, Maarten Derickx wrote: > Dear dkrumm, > > Thanks for your very detailed bug report. I saw you also created a tract > ticket for this athttp://trac.sagemath.org/sage_trac/ticket/11758 > Would you also be interested in writing a patch? The ot

[sage-support] Bug in global_height

2011-08-29 Thread dkrumm
There is a problem with the global_height function for elements of number fields. The fix would be very simple, just need to add two parentheses to the code. Below is an example of the problem. I'm running Sage version 4.7 on Mac OS X version 10.6.8. sage: K. = QuadraticField(2) sage: s.global_hei