On Tue, Apr 28, 2009 at 12:35 PM, William Stein <wst...@gmail.com> wrote:
> On Tue, Apr 28, 2009 at 12:29 PM, Alden <alden.wal...@gmail.com> wrote:
>>
>> On two different computers running Ubuntu 9.04, I downloaded and built
>> from source sage 3.4.1.  I also downloaded scipy using the synaptic
>> package manager.  I am under the impression that python and scipy in
>> sage lead completely separate lives from python and scipy outside
>> sage.
>
> True.
>
>>  In normal python (i.e. running python from the command line),
>> the following works fine:
>
> This will evidently get fixed when we upgrade the version of scipy
> included in Sage, which we
> hope to do soon.
>

Mike's solution is right and my remark isn't.  I had tested resetting
Integer by doing the following
in a notebook cell:

{{{
RealNumber=float; Integer=int
import scipy.stats
scipy.stats.poisson.pmf(5,1)
}}}

However, stupidly Integer=int gets evaluated after the constant 5 gets
factored out.  This would have worked

{{{
RealNumber=float; Integer=int
}}}

{{{
import scipy.stats
scipy.stats.poisson.pmf(5,1)
}}}

We *really* need to patch scipy.stats so that this fixed...

 -- William

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to