[sage-support] Re: stat functions

2009-07-01 Thread Mikie
Thanks, Marshall. I figured it out. My API is really starting to look good. I have algebra, calculus, DE's, Laplace, and now stats. Almost as good as WolframAlpha. Ha! On Jul 1, 10:21 am, Marshall Hampton wrote: > I'm not sure what you meant; are you saying that Kevin's suggestion > does not

[sage-support] Re: stat functions

2009-07-01 Thread Marshall Hampton
I'm not sure what you meant; are you saying that Kevin's suggestion does not work? I.e. something like: import scipy.stats as S def Mean_(exp1): v=[RDF(x) for x in list(exp1)] R1=S.mean(v) return R1 Which works for me in the following way: sage: Mean_('1234') 2.5 Seems like you'd w

[sage-support] Re: stat functions

2009-07-01 Thread Mikie
I don't what else I can say. Look at the articles about. On Jul 1, 8:38 am, Kevin Horton wrote: > On 1 Jul 2009, at 10:26, Mikie wrote: > > > Yes, I am calling one of the functions in scipy, but it will not me to > > do it.  If I use the scipy mean function it works, but not from a > > created

[sage-support] Re: stat functions

2009-07-01 Thread Kevin Horton
On 1 Jul 2009, at 10:26, Mikie wrote: > Yes, I am calling one of the functions in scipy, but it will not me to > do it. If I use the scipy mean function it works, but not from a > created function. > The example you showed attempted to call a module, so it was sure to fail. We cannot guess w

[sage-support] Re: stat functions

2009-07-01 Thread Mikie
Yes, I am calling one of the functions in scipy, but it will not me to do it. If I use the scipy mean function it works, but not from a created function. On Jul 1, 8:21 am, Kevin Horton wrote: > On 1 Jul 2009, at 09:56, Mikie wrote: > > > > > I have create a function using scipy.  Here it is >

[sage-support] Re: stat functions

2009-07-01 Thread Kevin Horton
On 1 Jul 2009, at 09:56, Mikie wrote: > > I have create a function using scipy. Here it is > Import scipy > def Mean_(exp1) >v=list(exp1) >R1=scipy.stats(v) >return R1 > > > I have done all this in the notebook and get the same error. 'module' > obj. is not callable. My docs claim t

[sage-support] Re: stat functions

2009-07-01 Thread Mikie
I have create a function using scipy. Here it is Import scipy def Mean_(exp1) v=list(exp1) R1=scipy.stats(v) return R1 I have done all this in the notebook and get the same error. 'module' obj. is not callable. I am trying to add some stat functions to my API, since Sage does not h

[sage-support] Re: stat functions

2009-06-30 Thread Robert Bradshaw
On Jun 30, 2009, at 9:26 AM, Mikie wrote: > OK, I have the string to list created. I have created the function to > calculate a mean of a list. This is in the python script. Using > spipy I am getting " 'module' obj. is not callable' There is really not enough information here to answer your

[sage-support] Re: stat functions

2009-06-30 Thread Mikie
OK, I have the string to list created. I have created the function to calculate a mean of a list. This is in the python script. Using spipy I am getting " 'module' obj. is not callable' On Jun 30, 10:04 am, Robert Bradshaw wrote: > On Jun 30, 2009, at 8:23 AM, Mikie wrote: > > > How does one

[sage-support] Re: stat functions

2009-06-30 Thread Robert Bradshaw
On Jun 30, 2009, at 8:23 AM, Mikie wrote: > How does one convert a string to a list? There are lots of ways to do that in Python--depends on what kind of a list you have. For example, if I have a string list of elliptic curve labels, and want a list of curves... sage: s = "37a|15a|389a" sag

[sage-support] Re: stat functions

2009-06-30 Thread Mikie
How does one convert a string to a list? Try my new API pirsqrt.com:1843. Try to break it. If you put something bad into it use the back arrow on the browser. On Jun 29, 4:14 pm, William Stein wrote: > On Tue, Jun 30, 2009 at 12:13 AM, Mikie wrote: > > > Before I get too excited can use Scipy

[sage-support] Re: stat functions

2009-06-29 Thread William Stein
On Tue, Jun 30, 2009 at 12:13 AM, Mikie wrote: > > Before I get too excited can use Scipy in a python script(My twisted > API) Yes. > Thanks William > > On Jun 29, 3:54 pm, William Stein wrote: >> On Mon, Jun 29, 2009 at 11:44 PM, Mikie wrote: >> >> > I have looked a lot.  Any docs on the stat(

[sage-support] Re: stat functions

2009-06-29 Thread Mikie
Before I get too excited can use Scipy in a python script(My twisted API) Thanks William On Jun 29, 3:54 pm, William Stein wrote: > On Mon, Jun 29, 2009 at 11:44 PM, Mikie wrote: > > > I have looked a lot.  Any docs on the stat(mean, stdev, median, etc) > > functions?  Does Sage have any stat fu

[sage-support] Re: stat functions

2009-06-29 Thread William Stein
On Mon, Jun 29, 2009 at 11:44 PM, Mikie wrote: > > I have looked a lot.  Any docs on the stat(mean, stdev, median, etc) > functions?  Does Sage have any stat functions? You might find the worksheets from week 6 here useful: http://wiki.wstein.org/09/480b/schedule William Stein Associate Profess