Thanks for your email.  Unfortunately, Piecewise functions were
implemented very early in the history of Sage, and so do not support
tons of newer Sage functionality.  Although there are a number of us
interested in improving  this situation, thus far time and expertise
has not been there.  Unless a Sage Days devoted to this magically
happens :) I don't see that changing in the near future, as ideally
such Piecewise functions would come from Pynac/Ginac, but I don't
think they support this (and see http://wiki.sagemath.org/symbolics/pynac_todo
for a long-term wishlist, much of which will definitely eventually be
implemented).

I'm sorry that this is the current situation.  To do this particular
examples, you could probably do four separate parametric plots, I
think?  Please let us know if that doesn't work!

- kcrisman

On May 14, 5:51 am, bourbabis <[email protected]> wrote:
> Hello folks !
>
> Look at this :
>
> > var('a')
> > f = Piecewise([[(0, 1), a], [(1, 2), 2*a]])
> > g = Piecewise([[(0, 1), 3*a], [(1, 2), 4*a]])
> > parametric_plot((f, g), (0, 2))
>
> I get the following error message :
>
> < Traceback (click to the left of this block for traceback)
> <. ..
> < AttributeError: PiecewisePolynomial instance has no attribute
> < '__float__'
>
> "parametric_plot" isn't implemented yet for sliced function ?
>
> Thanks.
>
> --
> 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 
> athttp://groups.google.com/group/sage-support
> URL:http://www.sagemath.org

-- 
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

Reply via email to