[sage-support] Re: scipy binomial pmf

2009-07-10 Thread Mikie
If it works don't fix. I like 3.2.2 because of the output in a textarea is nicer than 4.0. I will leave it along. On Jul 10, 10:19 am, Robert Bradshaw wrote: > On Jul 10, 2009, at 9:13 AM, Mikie wrote: > > > I am using 3.2.2 sage.  Will this fix work? > > No idea, but it might. You can try it

[sage-support] Re: scipy binomial pmf

2009-07-10 Thread Robert Bradshaw
On Jul 10, 2009, at 9:13 AM, Mikie wrote: > I am using 3.2.2 sage. Will this fix work? No idea, but it might. You can try it out. > The work around is > working for me and I would like not to damage the 40 stat functions I > have created. Are you talking about modifications to the library it

[sage-support] Re: scipy binomial pmf

2009-07-10 Thread Mikie
I am using 3.2.2 sage. Will this fix work? The work around is working for me and I would like not to damage the 40 stat functions I have created. Thanks On Jul 10, 3:10 am, Robert Bradshaw wrote: > On Jul 9, 2009, at 1:57 PM, Kevin Horton wrote: > > > > > > > On 9 Jul 2009, at 15:02, William

[sage-support] Re: scipy binomial pmf

2009-07-10 Thread Robert Bradshaw
On Jul 9, 2009, at 1:57 PM, Kevin Horton wrote: > > On 9 Jul 2009, at 15:02, William Stein wrote: > >> On Thu, Jul 9, 2009 at 11:31 AM, Mikie >> wrote: >>> >>> Robert, how do I update my sage installation when you create a >>> patch. Do I have to reinstall Sage? >>> Thanx >> >> I just did >> >>

[sage-support] Re: scipy binomial pmf

2009-07-09 Thread Kevin Horton
On 9 Jul 2009, at 15:02, William Stein wrote: > On Thu, Jul 9, 2009 at 11:31 AM, Mikie > wrote: >> >> Robert, how do I update my sage installation when you create a >> patch. Do I have to reinstall Sage? >> Thanx > > I just did > > sage: > hg_sage.apply('http://trac.sagemath.org/sage_trac/at

[sage-support] Re: scipy binomial pmf

2009-07-09 Thread William Stein
On Thu, Jul 9, 2009 at 12:12 PM, William Stein wrote: > On Thu, Jul 9, 2009 at 12:02 PM, William Stein wrote: >> On Thu, Jul 9, 2009 at 11:31 AM, Mikie wrote: >>> >>> Robert,  how do I update my sage installation when you create a >>> patch.  Do I have to reinstall Sage? >>> Thanx >> >> I just did

[sage-support] Re: scipy binomial pmf

2009-07-09 Thread William Stein
On Thu, Jul 9, 2009 at 12:02 PM, William Stein wrote: > On Thu, Jul 9, 2009 at 11:31 AM, Mikie wrote: >> >> Robert,  how do I update my sage installation when you create a >> patch.  Do I have to reinstall Sage? >> Thanx > > I just did > > sage: > hg_sage.apply('http://trac.sagemath.org/sage_trac

[sage-support] Re: scipy binomial pmf

2009-07-09 Thread William Stein
On Thu, Jul 9, 2009 at 11:31 AM, Mikie wrote: > > Robert,  how do I update my sage installation when you create a > patch.  Do I have to reinstall Sage? > Thanx I just did sage: hg_sage.apply('http://trac.sagemath.org/sage_trac/attachment/ticket/5081/5081-numpy-types.patch') sage: quit sage -

[sage-support] Re: scipy binomial pmf

2009-07-09 Thread Mikie
Robert, how do I update my sage installation when you create a patch. Do I have to reinstall Sage? Thanx On Jul 9, 5:37 am, Ahmed Fasih wrote: > Jason, Robert, I'm trying to understand the patch, but it looks like > this is a fix for *all* Numpy/Scipy-Sage type issues? If so---oh happy > day!

[sage-support] Re: scipy binomial pmf

2009-07-09 Thread Ahmed Fasih
Jason, Robert, I'm trying to understand the patch, but it looks like this is a fix for *all* Numpy/Scipy-Sage type issues? If so---oh happy day! On Jul 9, 5:53 am, Jason Grout wrote: > Ahmed Fasih wrote: > > Writing your own is a good way to understand the implementation issues > > that we somet

[sage-support] Re: scipy binomial pmf

2009-07-09 Thread Jason Grout
Ahmed Fasih wrote: > Writing your own is a good way to understand the implementation issues > that we sometimes unthinkingly rely on, but for production code, it's > always a good idea to default to the pre-packaged implementation. > > In this case, I think it's the standard issue with Scipy not

[sage-support] Re: scipy binomial pmf

2009-07-07 Thread Robert Bradshaw
On Jul 6, 2009, at 2:21 PM, Mikie wrote: > 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. An example, including the error message, would be

[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: 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: 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] Re: scipy binomial pmf

2009-07-03 Thread Ahmed Fasih
This is also an excellent resource: "How To Ask Questions The Smart Way," by the peerless Eric Steven Raymond: http://catb.org/esr/faqs/smart-questions.html On Jul 3, 8:17 pm, Ahmed Fasih wrote: > Writing your own is a good way to understand the implementation issues > that we sometimes unthinki

[sage-support] Re: scipy binomial pmf

2009-07-03 Thread Ahmed Fasih
Writing your own is a good way to understand the implementation issues that we sometimes unthinkingly rely on, but for production code, it's always a good idea to default to the pre-packaged implementation. In this case, I think it's the standard issue with Scipy not understanding Sage types. Thi

[sage-support] Re: scipy binomial pmf

2009-07-03 Thread Mikie
I am trying to use the binomial pmf function in Scipy. Forget the question I will write my own. Thanx On Jul 3, 9:32 am, William Stein wrote: > On Fri, Jul 3, 2009 at 5:27 PM, Mikie wrote: > > > What is the syntax to get the binomial function in Scipy to calculate? > > I have tried stats.binom.

[sage-support] Re: scipy binomial pmf

2009-07-03 Thread William Stein
On Fri, Jul 3, 2009 at 5:27 PM, Mikie wrote: > > What is the syntax to get the binomial function in Scipy to calculate? > I have tried stats.binom.pmf(1,10,.56,0) etc. > Thanks  for the help. (1) I don't understand the question. What does your question mean? (2) Possibly you should also ask on