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 <[email protected]>
wrote:
> 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"
> sage: [EllipticCurve(ss) for ss in s.split('|')]
> [Elliptic Curve defined by y^2 + y = x^3 - x over Rational Field,
>   Elliptic Curve defined by y^2 + x*y + y = x^3 + x^2 - 10*x - 10  
> over Rational Field,
>   Elliptic Curve defined by y^2 + y = x^3 + x^2 - 2*x over Rational  
> Field]
>
> You can do the same or integers, real numbers, symbolic equations  
> (use SR(ss)), with any separator, etc. Python has a lot of  
> documentation on string processing.
>
>
>
> > 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 <[email protected]> wrote:
> >> On Tue, Jun 30, 2009 at 12:13 AM,  
> >> Mikie<[email protected]> 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 <[email protected]> wrote:
> >>>> On Mon, Jun 29, 2009 at 11:44 PM,  
> >>>> Mikie<[email protected]> 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 Professor of Mathematics
> >>>> University of Washingtonhttp://wstein.org
>
> >> --
> >> William Stein
> >> Associate Professor of Mathematics
> >> University of Washingtonhttp://wstein.org-Hide quoted text -
>
> >> - Show quoted text -- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to