Hi Pablo,

Thanks for the report.  If you want this fixed, please send William or
me a patch.  You can find information about patching on the SAGE
website, if it's back up.  If you're not interested in patching this,
I'll try to remember to get it into the TRAC at some point.

Nick

On Mar 25, 11:40 am, "Pablo De Napoli" <[EMAIL PROTECTED]> wrote:
> I've found an inconsistency in Picewise doc string:
>
> Currently Picewise? shows the following docstring
>
> Docstring:
>
>             list_of_pairs is a list of pairs (fcn,I), where fcn is
>             a SAGE function (such as a polynomial over RR, or functions
>             using the lambda notation), and I is an interval such as I =
> (1,3).
>             Two consecutive intervals must share a common endpoint.
>
>             We assume that these definitions are consistent (ie, no checking
> is
>             done).
>
> Howver, the examples show that the list of pairs should be
> the other way round, ie. of the form (I,fcn)
>
> This means that the the syntax
>
>  f = Piecewise([[(0,1),f1],[(1,2),f2]])
>
> is correct, whereas
>
> g = Piecewise([[f1,(0,1)],[f2,(1,2)]])
>
> is not.
>
> best regards
> Pablo


--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~----------~----~----~----~------~----~------~--~---

Reply via email to