On Sunday, January 9, 2011 8:21:28 PM UTC+1, Zuker wrote: > > I was unable to find much elaboration on how user-defined functions...
Sage is an extension of Python, therefore I strongly recommend you to learn a litte bit of Python first! Here your example in the sage shell (but it is just plain Python anyways) sage: CurrentPrices = [4, 6, 11 ] sage: def BidIsLower(x): ....: return all((_ < x for _ in CurrentPrices)) ....: sage: BidIsLower(7) False sage: BidIsLower(16) True sage: CurrentPrices = [4, 6, 11, 77 ] sage: BidIsLower(16) False H -- 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 URL: http://www.sagemath.org
