[sage-support] Re: CPU flags PNI and "SSSE3" for Ubuntu binaries

2009-07-06 Thread William Stein
On Tue, Jul 7, 2009 at 4:57 AM, Minh Nguyen wrote: > > Hi folks, > > In IRC, there was a report about the "SSSE3" and PNI flags for the > following Ubuntu binary: > > sage-4.0.2-linux-Ubuntu_9.04-i686-Linux.tar.gz > > Here's the IRC log: > > 15:39 < nifgraup> Hi,I would like to report a packaging/

[sage-support] CPU flags PNI and "SSSE3" for Ubuntu binaries

2009-07-06 Thread Minh Nguyen
Hi folks, In IRC, there was a report about the "SSSE3" and PNI flags for the following Ubuntu binary: sage-4.0.2-linux-Ubuntu_9.04-i686-Linux.tar.gz Here's the IRC log: 15:39 < nifgraup> Hi,I would like to report a packaging/build bug in sage 4.0.2, can someone guide me? 15:4

[sage-support] Re: How to extend homomorphisms from the base ring to the polynomial ring?

2009-07-06 Thread William Stein
On Mon, Jul 6, 2009 at 11:31 PM, mmarco wrote: > > Let me give some more details about my question: i have a number field > K, and a ring of polynomials over it, R1. I also have a ring > homomorphism from K to QQbar (which actually makes all sense from a > mathematical point of view), and a ring o

[sage-support] Re: scipy binomial pmf

2009-07-06 Thread Mikie
Yes, I am calling Scipy functions from a standard Python, thus no preparser. It does not recognize 1r, 10r, etc. Is there anyway to get it to work? I have also tried R, but r.binom does not work. On Jul 6, 3:16 pm, Ahmed Fasih wrote: > If you're calling Scipy functions from a standard Python e

[sage-support] Re: How to extend homomorphisms from the base ring to the polynomial ring?

2009-07-06 Thread mmarco
Let me give some more details about my question: i have a number field K, and a ring of polynomials over it, R1. I also have a ring homomorphism from K to QQbar (which actually makes all sense from a mathematical point of view), and a ring of polynomials R2 over QQbar. All this should give a map

[sage-support] Re: scipy binomial pmf

2009-07-06 Thread Kevin Horton
Maybe you can use: sage: RealNumber=float; Integer=int or, explicitly define the number type when calling the scipy function. Good luck, Kevin Horton On 6 Jul 2009, at 15:57, Mikie wrote: > > Ahmed, > > Looks good, but I am creating a function in python that is called. > And 1r, .56r ,etc. d

[sage-support] Re: scipy binomial pmf

2009-07-06 Thread Ahmed Fasih
If you're calling Scipy functions from a standard Python environment, you won't have the pre-processor issues, so I may be misunderstanding what your underlying problem is. Assuming you are in Sage (since this is a Sage mailing list) and calling Scipy, other options that achieve the same effect a

[sage-support] Re: scipy binomial pmf

2009-07-06 Thread Mikie
Kevin, It worked. Thanks, a lot. On Jul 6, 3:33 pm, Kevin Horton wrote: > Maybe you can use: > > sage: RealNumber=float; Integer=int > > or, explicitly define the number type when calling the scipy function. > > Good luck, > > Kevin Horton > > On 6 Jul 2009, at 15:57, Mikie wrote: > > > > > > >

[sage-support] Re: show "buffer"

2009-07-06 Thread William Stein
On Mon, Jul 6, 2009 at 7:28 PM, Ethan Van Andel wrote: > > When I show() a graphics object such as plot(x,-1,1), it plots it in > the desired range, but also adds a sort "buffer" around the image, the > axes extend beyond the region I told it to show, in the case of plot > (x) instead of [-1,1],[-

[sage-support] Re: scipy binomial pmf

2009-07-06 Thread Mikie
Ahmed, Looks good, but I am creating a function in python that is called. And 1r, .56r ,etc. does not pass. I am taking these parameters from a form and then using the function. Is there a work-a-round? Thanks On Jul 3, 6:19 pm, Ahmed Fasih wrote: > This is also an excellent resource: "How To

[sage-support] show "buffer"

2009-07-06 Thread Ethan Van Andel
When I show() a graphics object such as plot(x,-1,1), it plots it in the desired range, but also adds a sort "buffer" around the image, the axes extend beyond the region I told it to show, in the case of plot (x) instead of [-1,1],[-1,1] its more like [-1.5,1.5]. This persists if I specify the sho

[sage-support] Re: complex logs

2009-07-06 Thread Marshall Hampton
Perhaps working in the symbolic ring is causing something you don't like. In David's example above, you might want to convert things to CDF, which gives: sage: a = CDF(1 + 3*I) sage: z = log(a) sage: z 1.1512925465 + 1.2490457724*I ...instead of sage: a = 1 + 3*I sage: z = log(a) sage: z log(3*

[sage-support] Re: complex logs

2009-07-06 Thread David Joyner
On Mon, Jul 6, 2009 at 12:25 PM, mac8090 wrote: > > when I try to take logarithms of a complex number sage version 3.5 > doesn't like it. How do I find/use a multiplication preserving > embedding to make it work? I don't understand the question. In the latest version you get this: sage: a = 1 +

[sage-support] complex logs

2009-07-06 Thread mac8090
when I try to take logarithms of a complex number sage version 3.5 doesn't like it. How do I find/use a multiplication preserving embedding to make it work? --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from

[sage-support] How to extend homomorphisms from the base ring to the polynomial ring?

2009-07-06 Thread mmarco
I have a polynomial ring over an algebraic field, and a polynomial ring over the algebraic numbers. I have defined a ring homomorphism from the number field to QQbar, but i don't know how to build a morphism that does the extension of scalars. ¿How can that be achieved? --~--~-~--~~-